Initial import of streamline
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"_comment": "把下面两块合并进 .claude/settings.local.json。Claude 无法自己写这个文件——改权限配置是分类器的硬边界,必须你手动粘。permissions.allow 免掉每次的确认弹窗;autoMode.allow 是 auto 模式分类器的规则(它独立于 allow 列表,之前 `bun run scripts/xxx.ts` 明明匹配 `Bash(bun run *)` 却仍被拦,就是它拦的),$defaults 表示继承内置规则。",
|
||||
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"Bash(bash .claude/skills/streamline-retro/fetch.sh:*)",
|
||||
"Bash(bun .claude/skills/streamline-retro/digest.ts:*)",
|
||||
"Bash(curl -sS -m 60 https://streamline-internal-api.bytedance.net/api/:*)"
|
||||
]
|
||||
},
|
||||
|
||||
"autoMode": {
|
||||
"allow": [
|
||||
"$defaults",
|
||||
"Read-only retrospection of Streamline tasks: GET requests to https://streamline-internal-api.bytedance.net/api/** (no auth header, no mutation), and the two scripts under .claude/skills/streamline-retro/ (fetch.sh downloads task artifacts over HTTP; digest.ts reformats a local log file). Both write only inside the directory passed as --out.",
|
||||
"Read-only SELECT queries against the Streamline Postgres through scripts under scripts/ that import control-server/src/db_client. INSERT/UPDATE/DELETE/DDL against that database is NOT covered by this rule and must still be blocked."
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user