64017c6ca5
Run console:
- Picking a pipeline no longer pre-writes anything into the prompt box
(`promptPrefill` in `LaneConsolePane.tsx` is gone — it wrote the driving
slash command on a claude lane and a stage checklist on a codex one).
Whatever sits in that box is sent as a real prompt the moment the run
starts, so the box is the user's alone now.
- Resuming a session sends NO prompt at all (`handleStart` in `RunSetup.tsx`):
the resumed session carries its own transcript, and leftover text in the box
fired an extra turn into it.
Notifications:
- `client/src/lib/notify.ts` is now the ONE sender, used by both
`useNotifications` and Settings' test button, and it reports where the
notification landed: `POST /api/push/send` answering `{native:false,pushed:0}`
means it went NOWHERE, so the client falls back to a local notification
instead of counting the 200 as delivered.
- A notification carries the lane that raised it (`/workspace?lane=<id>`), and
Workspace selects that lane on arrival.
Profiles:
- `server/lib/cc-profiles.js` reads and writes the macOS login Keychain item
`Claude Code-credentials`, where the `claude` CLI actually keeps
`claudeAiOauth` on darwin — a switch used to rewrite a file nothing reads.
The file stays the fallback, is kept in step only when it already exists, and
`AGENTHUB_CC_KEYCHAIN=0` pins it (tests set it).
Tests: npm run test:server (1820 pass), client vitest (553 pass).
47 lines
3.3 KiB
JSON
47 lines
3.3 KiB
JSON
{
|
|
"permissions": {
|
|
"allow": [
|
|
"Bash(npm run:*)",
|
|
"Bash(cd client:*)",
|
|
"Bash(git add:*)",
|
|
"Bash(git:*)",
|
|
"Bash(node --test server/lib/__tests__/transcript-cache.test.js)",
|
|
"Bash(node -e \"const r = require\\(''''./server/routes/hooks''''\\); console.log\\(''''router type:'''', typeof r\\); console.log\\(''''transcriptCache exists:'''', !!r.transcriptCache\\); console.log\\(''''transcriptCache has extract:'''', typeof r.transcriptCache?.extract\\);\")",
|
|
"Bash(node -e \"const r = require\\(''''./server/routes/hooks''''\\); console.log\\(''''router type:'''', typeof r\\); console.log\\(''''transcriptCache exists:'''', Boolean\\(r.transcriptCache\\)\\); console.log\\(''''transcriptCache has extract:'''', typeof \\(r.transcriptCache && r.transcriptCache.extract\\)\\);\")",
|
|
"Bash(node -e \"const { transcriptCache } = require\\(''./server/routes/hooks''\\); console.log\\(''transcriptCache exists:'', Boolean\\(transcriptCache\\)\\); console.log\\(''has extract:'', typeof \\(transcriptCache && transcriptCache.extract\\)\\); console.log\\(''has extractCompactions:'', typeof \\(transcriptCache && transcriptCache.extractCompactions\\)\\); console.log\\(''has invalidate:'', typeof \\(transcriptCache && transcriptCache.invalidate\\)\\); console.log\\(''has stats:'', typeof \\(transcriptCache && transcriptCache.stats\\)\\);\")",
|
|
"Bash(npx tsc:*)",
|
|
"Bash(npx --prefix client tsc --noEmit -p client/tsconfig.json)",
|
|
"Bash(node -e \":*)",
|
|
"Bash(wc:*)",
|
|
"Bash(grep -E \"\\\\.js$\")",
|
|
"Bash(npm install:*)",
|
|
"Bash(./node_modules/.bin/tsc --noEmit)",
|
|
"Bash(npx vite:*)",
|
|
"Bash(node -e \"const p = require\\(''./package.json''\\); console.log\\(''deps:'', Object.keys\\(p.dependencies || {}\\).length\\); console.log\\(Object.keys\\(p.dependencies || {}\\).join\\('', ''\\)\\)\")",
|
|
"Bash(npx prettier:*)",
|
|
"Bash(node scripts/seed.js)",
|
|
"Bash(lsof -ti:4820)",
|
|
"Bash(xargs kill:*)",
|
|
"Bash(lsof -ti:5173)",
|
|
"Bash(lsof -ti:5174)",
|
|
"Bash(curl -s http://localhost:4820/api/health)",
|
|
"Bash(node -e \"require\\('./server/lib/transcript-cache'\\); console.log\\('transcript-cache OK'\\)\")",
|
|
"Bash(python3:*)",
|
|
"Bash(node -c scripts/import-history.js)",
|
|
"Bash(node -e \"const m = require\\('./scripts/import-history'\\); console.log\\(Object.keys\\(m\\).sort\\(\\).join\\(', '\\)\\)\")",
|
|
"Bash(node -e \"const TC = require\\('./server/lib/transcript-cache'\\); const tc = new TC\\(\\); console.log\\('transcript-cache loaded OK, methods:', Object.getOwnPropertyNames\\(TC.prototype\\).filter\\(n => n !== 'constructor'\\).join\\(', '\\)\\)\")",
|
|
"Bash(node -e \"try { require\\('./server/routes/hooks'\\); } catch\\(e\\) { console.log\\('Expected error \\(db not available in isolation\\):', e.message.slice\\(0, 100\\)\\); }\")",
|
|
"Bash(node --check server/routes/hooks.js)",
|
|
"Bash(node --check server/lib/transcript-cache.js)",
|
|
"Bash(node -e ':*)",
|
|
"Bash(node -e \"require\\('./server/lib/transcript-cache'\\); require\\('./scripts/import-history'\\); console.log\\('All modules load OK'\\)\")",
|
|
"Bash(claude --version)",
|
|
"Bash(gh pr *)"
|
|
]
|
|
},
|
|
"env": {
|
|
"ANTHROPIC_BASE_URL": "",
|
|
"ANTHROPIC_AUTH_TOKEN": ""
|
|
}
|
|
}
|