@rex_koh/subagent-budget-guard 0.2.0 → 0.2.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": "agent-guard",
3
3
  "displayName": "Agent Guard",
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.2.0",
5
+ "version": "0.2.1",
6
6
  "author": {
7
7
  "name": "ClaudeSubAgentSuppressor"
8
8
  },
package/lib/guard.js CHANGED
@@ -676,10 +676,7 @@ export async function handleUserPromptSubmit(input, env = process.env) {
676
676
  const sessionId = input?.session_id || 'unknown-session';
677
677
  const config = loadConfig(env);
678
678
  const state = await readState(sessionId, env);
679
- const tokenBudgetReason = subagentTokenBudgetDecision(state, config, {
680
- includeWarning: false
681
- });
682
- const reason = tokenBudgetReason?.reason || fiveHourBudgetDecision(state, config);
679
+ const reason = fiveHourBudgetDecision(state, config);
683
680
 
684
681
  if (!reason) {
685
682
  return { exitCode: 0, stdout: null, stderr: '' };
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.2.0', 'marketplace npm version mismatch');
114
+ assert(entry.source?.version === '0.2.1', 'marketplace npm version mismatch');
115
115
  return marketplacePath;
116
116
  });
117
117
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rex_koh/subagent-budget-guard",
3
- "version": "0.2.0",
3
+ "version": "0.2.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",