clawdie-ai/package.json
Clawdie AI 0a8f13bed3 feat(phase7c): agent jail secret scoping verification
Adds setup/verify-agent-jails.ts which checks each agent jail's
.env.agent for:
  1. Jail exists and is running (bastille list State=Up)
  2. .env.agent file is present
  3. Domain keys for the specialist are present (warns if missing)
  4. No cross-contamination: keys belonging to OTHER specialists
     are absent — exits with code 2 if any leaks detected
  5. At most one LLM key (shared key) — warns if multiple found

Wire-up:
  - setup/index.ts: added 'verify-agent-jails' step
  - package.json: added 'verify-agent-jails' npm script

Tests: 23 new tests in setup/verify-agent-jails.test.ts covering
parseEnvKeys, jailIsRunning, and verifyJail for all three specialists
with pass/fail/leak scenarios.

Full suite: 70 files, 1185 tests passing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---
Build: pass | Tests: pass — Tests  1185 passed (1185)
2026-04-14 19:00:37 +00:00

56 lines
1.8 KiB
JSON

{
"name": "clawdie",
"version": "0.10.0",
"description": "Personal AI assistant. Lightweight, secure, customizable.",
"license": "BSD-3-Clause",
"type": "module",
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"dev": "tsx src/index.ts",
"doctor": "tsx src/doctor.ts",
"auth": "tsx setup/telegram-auth.ts",
"typecheck": "tsc --noEmit",
"format": "prettier --write \"src/**/*.ts\"",
"format:check": "prettier --check \"src/**/*.ts\"",
"setup": "tsx setup/index.ts",
"wizard": "tsx setup/index.ts --step onboarding",
"preflight-check": "tsx setup/index.ts --step preflight",
"hostd": "sudo node dist/hostd/index.js",
"hostd:dev": "sudo tsx src/hostd/index.ts",
"test": "vitest run",
"test:watch": "vitest",
"gen-changelog": "npx tsx scripts/gen-changelog.ts",
"backup": "tsx scripts/backup.ts",
"install": "tsx setup/install.ts",
"verify-agent-jails": "sudo npx tsx setup/verify-agent-jails.ts",
"install-hooks": "git config core.hooksPath hooks",
"release": "node -e \"const v='v'+require('./package.json').version; require('child_process').execSync('git tag -a '+v+' -m '+v+' && git push origin '+v, {stdio:'inherit'});\""
},
"dependencies": {
"@opentelemetry/api": "^1.9.0",
"better-auth": "^1.6.0",
"cron-parser": "^5.5.0",
"grammy": "^1.41.1",
"openai": "^4.104.0",
"pg": "^8.20.0",
"pino": "^9.6.0",
"pino-pretty": "^13.0.0",
"yaml": "^2.8.2",
"zod": "^4.3.6"
},
"devDependencies": {
"@sinclair/typebox": "^0.34.49",
"@types/node": "^22.10.0",
"@types/pg": "^8.18.0",
"@vitest/coverage-v8": "^4.0.18",
"prettier": "^3.8.1",
"tsx": "^4.19.0",
"typescript": "^5.9.3",
"vitest": "^4.0.18"
},
"engines": {
"node": ">=24"
}
}