@akasecurity/ai-tc-claude-code 0.9.8 → 0.9.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aka",
3
- "version": "0.9.8",
3
+ "version": "0.9.10",
4
4
  "description": "AI Traffic Control — inspect and govern AI prompts in Claude Code. Detection runs locally; events are recorded to a local SQLite store on your machine.",
5
5
  "homepage": "https://github.com/akasecurity/ai-tc",
6
6
  "author": { "name": "AKA Security" }
package/README.md CHANGED
@@ -43,8 +43,8 @@ The plugin installs Claude Code hooks that run locally with no `node_modules`, a
43
43
 
44
44
  - **SessionStart** — snapshot the session context.
45
45
  - **UserPromptSubmit** — scan prompts before they reach the model.
46
- - **PreToolUse** — scan tool inputs (Bash, Edit, Write, MultiEdit, NotebookEdit, WebFetch, Task, and
47
- any `mcp__*` tool) before they run. Sensitive content in text a tool merely stores is masked in
46
+ - **PreToolUse** — scan tool inputs (Bash, Edit, Write, MultiEdit, NotebookEdit, WebFetch, Agent /
47
+ Task, and any `mcp__*` tool) before they run. Sensitive content in text a tool merely stores is masked in
48
48
  place; in text a tool acts on — a shell command, a URL, an MCP argument — masking would change what
49
49
  runs, so the call is blocked instead.
50
50
  - **PostToolUse** — scan tool outputs and file reads (Bash, Read, WebFetch) after they return.
package/hooks/hooks.json CHANGED
@@ -24,7 +24,7 @@
24
24
  ],
25
25
  "PreToolUse": [
26
26
  {
27
- "matcher": "Bash|Edit|Write|WebFetch|MultiEdit|NotebookEdit|Task|mcp__.*",
27
+ "matcher": "Bash|Edit|Write|WebFetch|MultiEdit|NotebookEdit|Task|Agent|mcp__.*",
28
28
  "hooks": [
29
29
  {
30
30
  "type": "command",
@@ -67,6 +67,28 @@
67
67
  }
68
68
  ]
69
69
  }
70
+ ],
71
+ "PreModelSwitch": [
72
+ {
73
+ "hooks": [
74
+ {
75
+ "type": "command",
76
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/pre-model-switch.js\"",
77
+ "timeout": 10
78
+ }
79
+ ]
80
+ }
81
+ ],
82
+ "PostModelSwitch": [
83
+ {
84
+ "hooks": [
85
+ {
86
+ "type": "command",
87
+ "command": "node \"${CLAUDE_PLUGIN_ROOT}/scripts/post-model-switch.js\"",
88
+ "timeout": 10
89
+ }
90
+ ]
91
+ }
70
92
  ]
71
93
  }
72
94
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akasecurity/ai-tc-claude-code",
3
- "version": "0.9.8",
3
+ "version": "0.9.10",
4
4
  "description": "AI Traffic Control — inspect and govern AI prompts in Claude Code",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -22,19 +22,19 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/node": "^24.13.3",
25
- "@vitest/coverage-v8": "^4.1.10",
25
+ "@vitest/coverage-v8": "^4.1.11",
26
26
  "eslint": "^9.39.5",
27
27
  "tsup": "^8.0.0",
28
28
  "typescript": "^5.8.0",
29
- "vitest": "^4.1.10",
30
- "zod": "^4.0.0",
31
- "@akasecurity/persistence": "0.8.0",
29
+ "vitest": "^4.1.11",
30
+ "zod": "^4.5.4",
31
+ "@akasecurity/plugin-runtime": "0.8.0",
32
32
  "@akasecurity/eslint-config": "0.8.0",
33
+ "@akasecurity/persistence": "0.8.0",
33
34
  "@akasecurity/scanner": "0.8.0",
34
- "@akasecurity/plugin-runtime": "0.8.0",
35
35
  "@akasecurity/plugin-sdk": "0.8.0",
36
- "@akasecurity/schema": "0.8.0",
37
- "@akasecurity/setup-wizard": "0.8.0"
36
+ "@akasecurity/setup-wizard": "0.8.0",
37
+ "@akasecurity/schema": "0.8.0"
38
38
  },
39
39
  "scripts": {
40
40
  "build": "tsup",