@rex_koh/subagent-budget-guard 0.5.2 → 0.5.3

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.2",
5
+ "version": "0.5.3",
6
6
  "author": {
7
7
  "name": "ClaudeSubAgentSuppressor"
8
8
  },
package/bin/hook.js CHANGED
@@ -16,7 +16,7 @@ async function readStdin() {
16
16
  for await (const chunk of process.stdin) {
17
17
  input += chunk;
18
18
  }
19
- return input ? JSON.parse(input) : {};
19
+ return input ? JSON.parse(input.replace(/^\uFEFF/, '')) : {};
20
20
  }
21
21
 
22
22
  function emit(result) {
package/bin/statusline.js CHANGED
@@ -13,7 +13,7 @@ async function readStdin() {
13
13
  for await (const chunk of process.stdin) {
14
14
  input += chunk;
15
15
  }
16
- return input ? JSON.parse(input) : {};
16
+ return input ? JSON.parse(input.replace(/^\uFEFF/, '')) : {};
17
17
  }
18
18
 
19
19
  async function main() {
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.2', 'marketplace npm version mismatch');
114
+ assert(entry.source?.version === '0.5.3', '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.5.2",
3
+ "version": "0.5.3",
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",