30 lines
1.7 KiB
JSON
30 lines
1.7 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(npm install)",
|
|
"Bash(node database/init.js)",
|
|
"Bash(timeout 3 cmd /c \"type C:\\\\Users\\\\admin\\\\AppData\\\\Local\\\\Temp\\\\claude\\\\G--website\\\\tasks\\\\b65f3f2.output\")",
|
|
"Bash(timeout 3 cmd /c \"type C:\\\\Users\\\\admin\\\\AppData\\\\Local\\\\Temp\\\\claude\\\\G--website\\\\tasks\\\\b04f030.output\")",
|
|
"Bash(netstat -ano)",
|
|
"Bash(findstr :3000)",
|
|
"Bash(findstr LISTENING)",
|
|
"Bash(taskkill /F /PID 32)",
|
|
"Bash(cmd /c \"taskkill /F /PID 32\")",
|
|
"Bash(tasklist)",
|
|
"Bash(findstr \" 32 \")",
|
|
"Bash(powershell -Command \"Stop-Process -Id 32 -Force\")",
|
|
"Bash(node verify-password.js)",
|
|
"Bash(node update-admin-password.js)",
|
|
"Bash(node add-videos-tables.js)",
|
|
"Bash(npm install tencentcloud-sdk-nodejs --save)",
|
|
"Bash(npm install cos-nodejs-sdk-v5 --save)",
|
|
"Bash(node -e \"const mysql = require\\(''mysql2/promise''\\); const fs = require\\(''fs''\\); require\\(''dotenv''\\).config\\(\\); \\(async \\(\\) => { const conn = await mysql.createConnection\\({ host: process.env.DB_HOST || ''localhost'', user: process.env.DB_USER || ''root'', password: process.env.DB_PASSWORD || ''1464576565..'', database: ''website_admin'', port: process.env.DB_PORT || 3306 }\\); const sql = fs.readFileSync\\(''database/add-cos-config.sql'', ''utf8''\\); await conn.query\\(sql\\); console.log\\(''✓ COS配置字段添加成功''\\); await conn.end\\(\\); }\\)\\(\\)\")",
|
|
"WebSearch",
|
|
"WebFetch(domain:cloud.tencent.com)",
|
|
"Bash(npm search vod-js-sdk)",
|
|
"Bash(npm view vod-js-sdk-v6 version)",
|
|
"Bash(node backend/database/fix-videos-simple.js)"
|
|
]
|
|
}
|
|
}
|