@rex_koh/subagent-budget-guard 0.5.0 → 0.5.1

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.
@@ -2,7 +2,7 @@
2
2
  "name": "subagent-cap",
3
3
  "displayName": "Subagent Cap",
4
4
  "description": "Hard-deny subagent launches, record verified subagent usage, and enforce a session budget against Claude Code's 5-hour rate-limit percentage.",
5
- "version": "0.5.0",
5
+ "version": "0.5.1",
6
6
  "author": {
7
7
  "name": "ClaudeSubAgentSuppressor"
8
8
  },
package/README.md CHANGED
@@ -10,10 +10,13 @@ Recommended Claude Code install:
10
10
  /plugin marketplace add rexkoh425/ClaudeSubAgentSuppressor
11
11
  /plugin install subagent-cap@subagent-tools
12
12
  /subagent-cap:init
13
+ /sub-agent-view
13
14
  ```
14
15
 
15
16
  After `/subagent-cap:init`, fully exit and reopen Claude Code so the statusLine bridge from `settings.json` is active. Some Claude Code builds do not provide an in-session plugin reload command.
16
17
 
18
+ `/sub-agent-view` can be run after a session to display how many subagents were spawned, the verified token total, total duration, and each saved subagent run with its token count, duration, model, and tool-call count.
19
+
17
20
  ## NPM Package
18
21
 
19
22
  This package is npm-ready as `@rex_koh/subagent-budget-guard`.
@@ -27,7 +30,7 @@ subagent-cap status
27
30
  sub-agent-view
28
31
  ```
29
32
 
30
- `sub-agent-view` prints the latest session's recorded subagents with per-subagent status, type, description, verified token count, duration, model, and tool-call count. Use `sub-agent-view --session <session-id>` for a specific saved session, or `sub-agent-view --json` for machine-readable output. The same view is also available as `subagent-cap view`.
33
+ `sub-agent-view` prints the latest session's recorded subagents with per-subagent status, type, description, verified token count, duration, model, and tool-call count. Use `sub-agent-view --session <session-id>` for a specific saved session, or `sub-agent-view --json` for machine-readable output. The same view is also available as the Claude command `/sub-agent-view` and the npm alias `subagent-cap view`.
31
34
 
32
35
  Maintainer publish command:
33
36
 
@@ -0,0 +1,17 @@
1
+ ---
2
+ description: Show recorded subagent count, verified tokens, and duration for saved sessions.
3
+ argument-hint: "[--session <session-id>] [--json]"
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # View Recorded Subagents
8
+
9
+ Run this command:
10
+
11
+ ```bash
12
+ node "${CLAUDE_PLUGIN_ROOT}/bin/view.js" $ARGUMENTS
13
+ ```
14
+
15
+ Show the command output verbatim.
16
+
17
+ If the command fails, show the error output and say that `/subagent-cap:init` must be run before saved session data is available.
package/lib/verifier.js CHANGED
@@ -111,7 +111,7 @@ export async function runOfflineVerification({
111
111
  entry.source?.package === '@rex_koh/subagent-budget-guard',
112
112
  'marketplace npm package mismatch'
113
113
  );
114
- assert(entry.source?.version === '0.5.0', 'marketplace npm version mismatch');
114
+ assert(entry.source?.version === '0.5.1', 'marketplace npm version mismatch');
115
115
  return marketplacePath;
116
116
  });
117
117
  } else {
@@ -176,6 +176,7 @@ export async function runOfflineVerification({
176
176
  'bin/verify.js',
177
177
  'lib/guard.js',
178
178
  'lib/verifier.js',
179
+ 'commands/sub-agent-view.md',
179
180
  'skills/init/SKILL.md'
180
181
  ];
181
182
  for (const script of scripts) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rex_koh/subagent-budget-guard",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Claude Code plugin that blocks subagents by default, records verified subagent usage, and enforces 5-hour usage budgets.",
5
5
  "license": "MIT",
6
6
  "author": "ClaudeSubAgentSuppressor",
@@ -24,6 +24,7 @@
24
24
  "type": "module",
25
25
  "files": [
26
26
  ".claude-plugin/",
27
+ "commands/",
27
28
  "hooks/",
28
29
  "skills/",
29
30
  "bin/",