@pushary/agent-hooks 1.9.28 → 1.9.29

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.
Files changed (100) hide show
  1. package/CHANGELOG.md +5 -0
  2. package/dist/bin/pushary-bell-hook.js +25 -25
  3. package/dist/bin/pushary-bell.js +9 -9
  4. package/dist/bin/pushary-claude.js +26 -25
  5. package/dist/bin/pushary-clean.js +29 -29
  6. package/dist/bin/pushary-codex-bridge.js +17 -17
  7. package/dist/bin/pushary-codex-hook.js +32 -32
  8. package/dist/bin/pushary-codex.js +12 -12
  9. package/dist/bin/pushary-connect.js +24 -24
  10. package/dist/bin/pushary-cowork.js +5 -5
  11. package/dist/bin/pushary-daemon.js +32 -32
  12. package/dist/bin/pushary-disconnect.js +24 -24
  13. package/dist/bin/pushary-doctor.js +33 -33
  14. package/dist/bin/pushary-elicitation-hook.js +25 -25
  15. package/dist/bin/pushary-gemini-bridge.js +13 -13
  16. package/dist/bin/pushary-gemini-hook.js +27 -27
  17. package/dist/bin/pushary-hook.js +29 -29
  18. package/dist/bin/pushary-login.js +12 -12
  19. package/dist/bin/pushary-logout.js +24 -24
  20. package/dist/bin/pushary-mcp.js +9 -9
  21. package/dist/bin/pushary-mode.js +12 -12
  22. package/dist/bin/pushary-notification-hook.js +24 -24
  23. package/dist/bin/pushary-opencode-hook.js +26 -26
  24. package/dist/bin/pushary-permission-denied-hook.js +29 -29
  25. package/dist/bin/pushary-permission-hook.js +28 -28
  26. package/dist/bin/pushary-post-hook.js +24 -24
  27. package/dist/bin/pushary-prompt-hook.js +24 -24
  28. package/dist/bin/pushary-session-end-hook.js +24 -24
  29. package/dist/bin/pushary-session-start-hook.js +28 -28
  30. package/dist/bin/pushary-setup.js +35 -35
  31. package/dist/bin/pushary-stats.js +5 -5
  32. package/dist/bin/pushary-status.js +26 -26
  33. package/dist/bin/pushary-stop-hook.js +24 -24
  34. package/dist/bin/pushary-stopfailure-hook.js +24 -24
  35. package/dist/bin/pushary-suggestions.js +12 -12
  36. package/dist/bin/pushary-transcript-register.js +17 -17
  37. package/dist/bin/pushary-transcripts.js +7 -7
  38. package/dist/bin/pushary-upgrade.js +30 -30
  39. package/dist/bin/pushary-wait.js +12 -12
  40. package/dist/bin/pushary.js +6 -6
  41. package/dist/{chunk-EP425PGA.js → chunk-2FOAQ64R.js} +8 -8
  42. package/dist/{chunk-WIAWMH6T.js → chunk-2XM4TGIM.js} +4 -4
  43. package/dist/{chunk-56U55YDV.js → chunk-35CMXPES.js} +3 -3
  44. package/dist/{chunk-ME2PKG7C.js → chunk-4DTKE3AS.js} +2 -2
  45. package/dist/{chunk-EBO5KWWC.js → chunk-5L7H32JK.js} +1 -1
  46. package/dist/{chunk-IWYBFBRW.js → chunk-62LJB5U3.js} +2 -2
  47. package/dist/{chunk-VYKUGORF.js → chunk-7MYGOFVX.js} +4 -4
  48. package/dist/{chunk-MNHY3EIN.js → chunk-AVQ6ETA7.js} +1 -1
  49. package/dist/{chunk-ZH32OREM.js → chunk-AZMHKUUU.js} +1 -1
  50. package/dist/{chunk-UMTGSFAI.js → chunk-BAVNBGH4.js} +7 -7
  51. package/dist/{chunk-ZX5ISG5O.js → chunk-BJMVQ6D5.js} +4 -4
  52. package/dist/{chunk-S3NAONBN.js → chunk-BKOWTW5P.js} +4 -4
  53. package/dist/{chunk-YW7JQ7Z4.js → chunk-BP3WMLXJ.js} +5 -5
  54. package/dist/{chunk-GXZFDZJG.js → chunk-BUOLA2AM.js} +1 -1
  55. package/dist/{chunk-64LLZV5F.js → chunk-C2ZIVQ6W.js} +6 -6
  56. package/dist/{chunk-TAPGV2YV.js → chunk-CBOHZ6NY.js} +4 -4
  57. package/dist/{chunk-W6MUIG6S.js → chunk-CCI2UBYR.js} +3 -3
  58. package/dist/{chunk-VU6O4P2N.js → chunk-CJQEJWLU.js} +5 -5
  59. package/dist/{chunk-BG7T5MNV.js → chunk-CPZZTS4I.js} +1 -1
  60. package/dist/{chunk-YTCMVHW5.js → chunk-DQGM57ZW.js} +1 -1
  61. package/dist/{chunk-43DOHHZZ.js → chunk-DUVHHQEL.js} +2 -2
  62. package/dist/{chunk-CJTTAF4O.js → chunk-EO2GYHWH.js} +3 -3
  63. package/dist/{chunk-UJZ3KD4E.js → chunk-ETLVZHRG.js} +2 -2
  64. package/dist/{chunk-JOZWN4YI.js → chunk-G4X3Z3YS.js} +4 -4
  65. package/dist/{chunk-IDXEDMWI.js → chunk-GMVZYB3W.js} +3 -3
  66. package/dist/{chunk-ZREXC363.js → chunk-GVIPEBEL.js} +3 -3
  67. package/dist/{chunk-7DXPQW2H.js → chunk-H7QTZTIE.js} +9 -2
  68. package/dist/{chunk-FY2XCYLK.js → chunk-IM73P6JT.js} +5 -5
  69. package/dist/{chunk-AR7XOG6W.js → chunk-IWPEAA2J.js} +1 -1
  70. package/dist/{chunk-ICMVPBRQ.js → chunk-JGDBHB6L.js} +2 -2
  71. package/dist/{chunk-V5BIWNB3.js → chunk-KMTSU366.js} +1 -1
  72. package/dist/{chunk-OQKV3OXH.js → chunk-L7PGUSAU.js} +1 -1
  73. package/dist/{chunk-AXGA3WJI.js → chunk-LRLF6PZ2.js} +1 -1
  74. package/dist/{chunk-3OFFLLSJ.js → chunk-LSB66XQC.js} +4 -4
  75. package/dist/{chunk-7TBCGHJT.js → chunk-M2L4EHYW.js} +2 -2
  76. package/dist/{chunk-FYYWKCPO.js → chunk-NRV5PIPA.js} +2 -2
  77. package/dist/{chunk-FD3QASU3.js → chunk-OSVDGVLL.js} +8 -8
  78. package/dist/{chunk-HRAZMBUX.js → chunk-OUWDJIJF.js} +1 -1
  79. package/dist/{chunk-URZOKMAV.js → chunk-PRVG3COH.js} +2 -2
  80. package/dist/{chunk-ZMWCN3QS.js → chunk-PX4RRHEB.js} +4 -4
  81. package/dist/{chunk-7RKX7WRQ.js → chunk-QOMUEL44.js} +1 -1
  82. package/dist/{chunk-L5ZMZOQL.js → chunk-S3DP6DCZ.js} +2 -2
  83. package/dist/{chunk-7ZWU4BNG.js → chunk-SLKVEJLM.js} +5 -5
  84. package/dist/{chunk-5NXOJ3JG.js → chunk-TILXDMUR.js} +3 -3
  85. package/dist/{chunk-COEOZ2NC.js → chunk-TJXCBTL4.js} +5 -5
  86. package/dist/{chunk-OK4WDRGM.js → chunk-TXKAPRIA.js} +1 -1
  87. package/dist/{chunk-BXUYF5HB.js → chunk-UM2HNUJA.js} +3 -3
  88. package/dist/{chunk-VAJLOCFP.js → chunk-UW37WHVP.js} +2 -2
  89. package/dist/{chunk-SGAQYFGS.js → chunk-WJUYWTNT.js} +1 -1
  90. package/dist/{chunk-YRB2VBKK.js → chunk-WLDFMVRY.js} +2 -2
  91. package/dist/{chunk-74YRZTGP.js → chunk-XH7NMH3Q.js} +2 -2
  92. package/dist/{chunk-3TF5FHAT.js → chunk-Y3OZ3CT6.js} +5 -5
  93. package/dist/{chunk-IWPQBWFN.js → chunk-YFEHKEGQ.js} +1 -1
  94. package/dist/{chunk-A24TEUD6.js → chunk-Z2WS466S.js} +17 -16
  95. package/dist/{global-upgrade-MBW4MRJ2.js → global-upgrade-ZPULZXOY.js} +6 -6
  96. package/dist/{paths-H4XMIYUS.js → paths-Y7ZWWCFK.js} +2 -2
  97. package/dist/{reapply-JFEY77OC.js → reapply-I4YMQP7F.js} +20 -20
  98. package/dist/src/index.js +19 -19
  99. package/dist/{upgrade-lock-2RGMG5ZV.js → upgrade-lock-IDAAFSH2.js} +3 -3
  100. package/package.json +1 -1
@@ -2,7 +2,7 @@ import {
2
2
  autoUpdateLock,
3
3
  installPackageGlobally,
4
4
  npmErrorMessage
5
- } from "./chunk-TAPGV2YV.js";
5
+ } from "./chunk-CBOHZ6NY.js";
6
6
  import {
7
7
  writeJsonAtomic
8
8
  } from "./chunk-AQFEP65J.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CODEX_HOOK_STATUS
3
- } from "./chunk-ME2PKG7C.js";
3
+ } from "./chunk-4DTKE3AS.js";
4
4
  import {
5
5
  NPX_LATEST_COMMAND
6
- } from "./chunk-7RKX7WRQ.js";
6
+ } from "./chunk-QOMUEL44.js";
7
7
 
8
8
  // src/setup/codex-trust.ts
9
9
  var CODEX_TRUST_TELEMETRY = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-SGAQYFGS.js";
3
+ } from "./chunk-WJUYWTNT.js";
4
4
  import {
5
5
  parseFlags
6
6
  } from "./chunk-GMXKITVA.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-7QLSKOSU.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-7RKX7WRQ.js";
12
+ } from "./chunk-QOMUEL44.js";
13
13
  import {
14
14
  CLAUDE_CONNECTOR_GUIDE,
15
15
  CLAUDE_CONNECTOR_STEPS,
@@ -17,7 +17,7 @@ import {
17
17
  CLAUDE_CONNECTOR_URL,
18
18
  COWORK_CONNECTOR_LIMIT,
19
19
  COWORK_STANDING_INSTRUCTIONS
20
- } from "./chunk-7DXPQW2H.js";
20
+ } from "./chunk-H7QTZTIE.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -4,10 +4,10 @@ import {
4
4
  keyPrefix,
5
5
  readConfigFileKey,
6
6
  readMacAppKeyPrefix
7
- } from "./chunk-IDXEDMWI.js";
7
+ } from "./chunk-GMVZYB3W.js";
8
8
  import {
9
9
  NPX_LATEST_COMMAND
10
- } from "./chunk-7RKX7WRQ.js";
10
+ } from "./chunk-QOMUEL44.js";
11
11
 
12
12
  // src/key-signed-out.ts
13
13
  var VERDICT_BY_CHECK = {
@@ -14,19 +14,19 @@ import {
14
14
  } from "./chunk-FO3MDD26.js";
15
15
  import {
16
16
  callMcpTool
17
- } from "./chunk-ZREXC363.js";
17
+ } from "./chunk-GVIPEBEL.js";
18
18
  import {
19
19
  reportedInstallSource
20
- } from "./chunk-L5ZMZOQL.js";
20
+ } from "./chunk-S3DP6DCZ.js";
21
21
  import {
22
22
  NPX_LATEST_COMMAND
23
- } from "./chunk-7RKX7WRQ.js";
23
+ } from "./chunk-QOMUEL44.js";
24
24
  import {
25
25
  NO_PAIRING_COMPUTER,
26
26
  PAIR_TTL_SECONDS,
27
27
  classifyConfirmResponse,
28
28
  isAnswerSource
29
- } from "./chunk-7DXPQW2H.js";
29
+ } from "./chunk-H7QTZTIE.js";
30
30
 
31
31
  // src/reach.ts
32
32
  var reachVerdict = (channels) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-L5ZMZOQL.js";
3
+ } from "./chunk-S3DP6DCZ.js";
4
4
  import {
5
5
  backupFile,
6
6
  readJsonSafe,
@@ -9,11 +9,11 @@ import {
9
9
  } from "./chunk-AQFEP65J.js";
10
10
  import {
11
11
  configFilePath
12
- } from "./chunk-OK4WDRGM.js";
12
+ } from "./chunk-TXKAPRIA.js";
13
13
  import {
14
14
  API_KEY_PREFIX_PATTERN,
15
15
  isRecord
16
- } from "./chunk-7DXPQW2H.js";
16
+ } from "./chunk-H7QTZTIE.js";
17
17
 
18
18
  // src/shell-alias.ts
19
19
  import { homedir } from "os";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  keyCheckFromResponse
3
- } from "./chunk-5NXOJ3JG.js";
3
+ } from "./chunk-TILXDMUR.js";
4
4
  import {
5
5
  installNetworkDefaults
6
- } from "./chunk-56U55YDV.js";
6
+ } from "./chunk-35CMXPES.js";
7
7
  import {
8
8
  getBaseUrl
9
- } from "./chunk-OK4WDRGM.js";
9
+ } from "./chunk-TXKAPRIA.js";
10
10
 
11
11
  // src/retry.ts
12
12
  var isRetryable = (err) => {
@@ -3735,6 +3735,7 @@ var agentPromptsBeforeAnEdit = ({ source, event, permissionMode }) => {
3735
3735
  };
3736
3736
  var editGoesToTheAgentsPrompt = (call, input, verdict) => agentPromptsBeforeAnEdit(call) && editAsksAtTheAgentsPrompt(input, verdict);
3737
3737
  var SCOPE_BATCH_REASON = "This patch exceeds the agreed scope. Split it into single-file edits so each additional path can be approved.";
3738
+ var UNREADABLE_CALL_REASON = "Pushary could not read every target of this call. Use a supported command or a single-file edit.";
3738
3739
  var unapprovedScopeReason = (scopeReason) => `${scopeReason}. Nobody approved this path, so the change was refused.`;
3739
3740
  var NO_RESPONSE_REASON = "No response within timeout";
3740
3741
  var codexRaisesItsOwnPrompts = (permissionMode) => permissionMode !== "bypassPermissions";
@@ -3747,8 +3748,11 @@ var codexUnansweredPreToolUse = (ask) => {
3747
3748
  if (timeoutActionApplies(ask) && ask.timeoutAction === "deny") return CODEX_ASK_UNANSWERED;
3748
3749
  return codexRaisesItsOwnPrompts(ask.permissionMode) ? CODEX_ASK_PASSES : CODEX_ASK_UNANSWERED;
3749
3750
  };
3750
- var CODEX_DEFER_WITHOUT_A_PROMPT = { kind: "deny", reason: NO_AGENT_PROMPT_REASON };
3751
- var codexDeferredPreToolUse = (agentPromptFollows) => agentPromptFollows ? CODEX_ASK_PASSES : CODEX_DEFER_WITHOUT_A_PROMPT;
3751
+ var HANDED_BACK_REASON = "Handling on your machine";
3752
+ var HAND_BACK_WITHOUT_A_PROMPT = { kind: "refuse", reason: NO_AGENT_PROMPT_REASON };
3753
+ var CODEX_HAND_BACK_REASON = "You chose to handle this on your machine, so it did not run. Ask Codex to run it again while you are at your computer, or run it yourself.";
3754
+ var CODEX_PRE_TOOL_USE_HAND_BACK = { kind: "refuse", reason: CODEX_HAND_BACK_REASON };
3755
+ var codexDeferredPreToolUse = () => ({ kind: "deny", reason: CODEX_PRE_TOOL_USE_HAND_BACK.reason });
3752
3756
  var isScopeReason = (scopeReason) => typeof scopeReason === "string" && scopeReason.length > 0;
3753
3757
  var scopeBreachReasonOf = (verdict) => verdict.kind === "gate" && isScopeReason(verdict.scopeReason) ? verdict.scopeReason : void 0;
3754
3758
  var onlyCodexPreToolUseCanAsk = (verdict, permissionMode) => verdict.kind === "gate" && (scopeBreachReasonOf(verdict) !== void 0 || !codexRaisesItsOwnPrompts(permissionMode));
@@ -4405,10 +4409,13 @@ export {
4405
4409
  resolveGate,
4406
4410
  editGoesToTheAgentsPrompt,
4407
4411
  SCOPE_BATCH_REASON,
4412
+ UNREADABLE_CALL_REASON,
4408
4413
  unapprovedScopeReason,
4409
4414
  NO_RESPONSE_REASON,
4410
4415
  codexHasNoPromptOfItsOwn,
4411
4416
  codexUnansweredPreToolUse,
4417
+ HANDED_BACK_REASON,
4418
+ HAND_BACK_WITHOUT_A_PROMPT,
4412
4419
  codexDeferredPreToolUse,
4413
4420
  scopeBreachReasonOf,
4414
4421
  codexCallNeedsAPerson,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  APPROVAL_SETTINGS_PATH
3
- } from "./chunk-VYKUGORF.js";
3
+ } from "./chunk-7MYGOFVX.js";
4
4
  import {
5
5
  readMacAppAgentKey
6
- } from "./chunk-S3NAONBN.js";
6
+ } from "./chunk-BKOWTW5P.js";
7
7
  import {
8
8
  findExportedKeyLines,
9
9
  isAdoptedMacAppKey,
@@ -13,13 +13,13 @@ import {
13
13
  readConfigFileKey,
14
14
  readKeySource,
15
15
  readMacAppKeyPrefix
16
- } from "./chunk-IDXEDMWI.js";
16
+ } from "./chunk-GMVZYB3W.js";
17
17
  import {
18
18
  absoluteUrl
19
- } from "./chunk-5NXOJ3JG.js";
19
+ } from "./chunk-TILXDMUR.js";
20
20
  import {
21
21
  isValidApiKey
22
- } from "./chunk-7DXPQW2H.js";
22
+ } from "./chunk-H7QTZTIE.js";
23
23
 
24
24
  // src/key-revocation.ts
25
25
  var SELF_REVOKE_PATH = "/api/v1/server/keys/self/revoke";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-3EGEA4KH.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-OK4WDRGM.js";
12
+ } from "./chunk-TXKAPRIA.js";
13
13
 
14
14
  // src/cli/login-ui.ts
15
15
  import { hostname } from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-TAPGV2YV.js";
3
+ } from "./chunk-CBOHZ6NY.js";
4
4
  import {
5
5
  readJsonSafe,
6
6
  writeFileAtomic
@@ -13,7 +13,7 @@ import {
13
13
  serializeDeclinedAgents,
14
14
  withDeclinedAgent,
15
15
  withoutDeclinedAgent
16
- } from "./chunk-7DXPQW2H.js";
16
+ } from "./chunk-H7QTZTIE.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PRETOOLUSE_GATED_TOOLS
3
- } from "./chunk-7DXPQW2H.js";
3
+ } from "./chunk-H7QTZTIE.js";
4
4
 
5
5
  // src/claude-tools.ts
6
6
  var POSTTOOLUSE_MIRROR_ONLY_TOOLS = ["TodoWrite", "Task", "WebFetch", "WebSearch"];
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOOK_HOLD_BUDGET_ENV,
3
3
  hookHoldBudgetProof
4
- } from "./chunk-7DXPQW2H.js";
4
+ } from "./chunk-H7QTZTIE.js";
5
5
 
6
6
  // src/hold-budget.ts
7
7
  var takeHookHoldBudget = (args = process.argv.slice(2), env = process.env) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getBaseUrl
3
- } from "./chunk-OK4WDRGM.js";
3
+ } from "./chunk-TXKAPRIA.js";
4
4
 
5
5
  // src/transcript-api.ts
6
6
  var fetchTranscriptRecipients = async (apiKey, baseUrl = getBaseUrl()) => {
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  registerTranscript
3
- } from "./chunk-EP425PGA.js";
3
+ } from "./chunk-2FOAQ64R.js";
4
4
  import {
5
5
  namedEvent
6
- } from "./chunk-ZX5ISG5O.js";
6
+ } from "./chunk-BJMVQ6D5.js";
7
7
  import {
8
8
  writeDegraded
9
- } from "./chunk-3TF5FHAT.js";
9
+ } from "./chunk-Y3OZ3CT6.js";
10
10
  import {
11
11
  claudeShapedHookInput,
12
12
  hookCompatibleProfileBySource
13
- } from "./chunk-7DXPQW2H.js";
13
+ } from "./chunk-H7QTZTIE.js";
14
14
 
15
15
  // src/tool-hook-input.ts
16
16
  var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode"];
@@ -10,10 +10,10 @@ import {
10
10
  resolvePackageVersionFromBinary,
11
11
  resolvePathBinary,
12
12
  resolvePathBinaryAsync
13
- } from "./chunk-TAPGV2YV.js";
13
+ } from "./chunk-CBOHZ6NY.js";
14
14
  import {
15
15
  MANAGED_PROVIDERS
16
- } from "./chunk-7DXPQW2H.js";
16
+ } from "./chunk-H7QTZTIE.js";
17
17
 
18
18
  // src/setup/codex-install.ts
19
19
  var NATIVE_BINARY_MIN_BYTES = 20 * 1024 * 1024;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-ZREXC363.js";
3
+ } from "./chunk-GVIPEBEL.js";
4
4
  import {
5
5
  NPX_LATEST_COMMAND
6
- } from "./chunk-7RKX7WRQ.js";
6
+ } from "./chunk-QOMUEL44.js";
7
7
 
8
8
  // src/mcp-stdio-bridge.ts
9
9
  var MCP_BRIDGE_BINARY = "pushary-mcp";
@@ -2,7 +2,7 @@ import {
2
2
  IDLE_PROMPT_NOTIFICATION,
3
3
  NOTIFICATION_PUSH_TYPES,
4
4
  POSTTOOLUSE_MIRROR_ONLY_TOOLS
5
- } from "./chunk-V5BIWNB3.js";
5
+ } from "./chunk-KMTSU366.js";
6
6
  import {
7
7
  cancelQuestion,
8
8
  clientErrorKindOf,
@@ -10,26 +10,26 @@ import {
10
10
  reportClientError,
11
11
  sendNotification,
12
12
  waitForAnswer
13
- } from "./chunk-3TF5FHAT.js";
13
+ } from "./chunk-Y3OZ3CT6.js";
14
14
  import {
15
15
  withRetry
16
- } from "./chunk-ZREXC363.js";
16
+ } from "./chunk-GVIPEBEL.js";
17
17
  import {
18
18
  getMachineId
19
- } from "./chunk-IWPQBWFN.js";
19
+ } from "./chunk-YFEHKEGQ.js";
20
20
  import {
21
21
  reportedInstallSource
22
- } from "./chunk-L5ZMZOQL.js";
22
+ } from "./chunk-S3DP6DCZ.js";
23
23
  import {
24
24
  canonicalJson
25
- } from "./chunk-TAPGV2YV.js";
25
+ } from "./chunk-CBOHZ6NY.js";
26
26
  import {
27
27
  writeFileAtomic
28
28
  } from "./chunk-AQFEP65J.js";
29
29
  import {
30
30
  getApiKey,
31
31
  getBaseUrl
32
- } from "./chunk-OK4WDRGM.js";
32
+ } from "./chunk-TXKAPRIA.js";
33
33
  import {
34
34
  ACTION_BODY_MAX,
35
35
  AGENT_LABELS_BY_TYPE,
@@ -63,7 +63,7 @@ import {
63
63
  resolvePolicy,
64
64
  toToolLookup,
65
65
  truncateLine
66
- } from "./chunk-7DXPQW2H.js";
66
+ } from "./chunk-H7QTZTIE.js";
67
67
 
68
68
  // ../hook-mapping/src/describe.ts
69
69
  import { isAbsolute, relative, resolve } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  redactSecretsFromContent
3
- } from "./chunk-7DXPQW2H.js";
3
+ } from "./chunk-H7QTZTIE.js";
4
4
 
5
5
  // src/crypto.ts
6
6
  import nacl from "tweetnacl";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-TAPGV2YV.js";
3
+ } from "./chunk-CBOHZ6NY.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-AQFEP65J.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-7DXPQW2H.js";
9
+ } from "./chunk-H7QTZTIE.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-ZX5ISG5O.js";
4
+ } from "./chunk-BJMVQ6D5.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-COEOZ2NC.js";
7
+ } from "./chunk-TJXCBTL4.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-TAPGV2YV.js";
11
+ } from "./chunk-CBOHZ6NY.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-7DXPQW2H.js";
14
+ } from "./chunk-H7QTZTIE.js";
15
15
 
16
16
  // src/cursor-config.ts
17
17
  var hookCommandOf = (entry) => {
@@ -2,7 +2,7 @@ import {
2
2
  DISCONNECT_AGENT_IDS,
3
3
  SETUP_AGENT_CHOICES,
4
4
  isApprovalMode
5
- } from "./chunk-7DXPQW2H.js";
5
+ } from "./chunk-H7QTZTIE.js";
6
6
 
7
7
  // src/cli/mode-request.ts
8
8
  var parseDuration = (value) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-OK4WDRGM.js";
3
+ } from "./chunk-TXKAPRIA.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-7DXPQW2H.js";
6
+ } from "./chunk-H7QTZTIE.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -4,7 +4,7 @@ import {
4
4
  forkFinishWithUpgradeLock,
5
5
  installWithUpgradeLock,
6
6
  releaseAutoUpdateLock
7
- } from "./chunk-YTCMVHW5.js";
7
+ } from "./chunk-DQGM57ZW.js";
8
8
  import {
9
9
  describeAutoUpdateCheck,
10
10
  globalInstallLocation,
@@ -14,7 +14,7 @@ import {
14
14
  readAutoUpdateState,
15
15
  updateAutoUpdateState,
16
16
  upgradeEntryFor
17
- } from "./chunk-IWYBFBRW.js";
17
+ } from "./chunk-62LJB5U3.js";
18
18
  import {
19
19
  EXIT
20
20
  } from "./chunk-KZERVKTD.js";
@@ -27,10 +27,10 @@ import {
27
27
  npmErrorMessage,
28
28
  readGlobalCliInstallAt,
29
29
  readGlobalPrefix
30
- } from "./chunk-TAPGV2YV.js";
30
+ } from "./chunk-CBOHZ6NY.js";
31
31
  import {
32
32
  NPX_LATEST_COMMAND
33
- } from "./chunk-7RKX7WRQ.js";
33
+ } from "./chunk-QOMUEL44.js";
34
34
  import {
35
35
  commandsPackage,
36
36
  globalUpgradeEntry,
@@ -39,7 +39,7 @@ import {
39
39
  isSameMajorVersion,
40
40
  ownPackageRoot,
41
41
  packageVersionAt
42
- } from "./chunk-7DXPQW2H.js";
42
+ } from "./chunk-H7QTZTIE.js";
43
43
 
44
44
  // src/global-upgrade.ts
45
45
  import { existsSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-56U55YDV.js";
3
+ } from "./chunk-35CMXPES.js";
4
4
  import {
5
5
  NetworkError
6
6
  } from "./chunk-7QLSKOSU.js";
@@ -9,11 +9,11 @@ import {
9
9
  } from "./chunk-KZERVKTD.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-OK4WDRGM.js";
12
+ } from "./chunk-TXKAPRIA.js";
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-7DXPQW2H.js";
16
+ } from "./chunk-H7QTZTIE.js";
17
17
 
18
18
  // src/session.ts
19
19
  var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;
@@ -2,23 +2,23 @@ import {
2
2
  CLAUDE_HOOK_EVENTS,
3
3
  GEMINI_HOOK_EVENTS,
4
4
  hasGeminiHooks
5
- } from "./chunk-BXUYF5HB.js";
5
+ } from "./chunk-UM2HNUJA.js";
6
6
  import {
7
7
  AGENT_CHOICES
8
- } from "./chunk-SGAQYFGS.js";
8
+ } from "./chunk-WJUYWTNT.js";
9
9
  import {
10
10
  BELL_HOOK_BINARY
11
- } from "./chunk-GXZFDZJG.js";
11
+ } from "./chunk-BUOLA2AM.js";
12
12
  import {
13
13
  CODEX_HOOK_EVENTS,
14
14
  hasCodexHooks,
15
15
  holdBudgetOf
16
- } from "./chunk-TAPGV2YV.js";
16
+ } from "./chunk-CBOHZ6NY.js";
17
17
  import {
18
18
  CURSOR_GATE_EVENTS,
19
19
  HOOK_LOCATOR_BINARY,
20
20
  hookCommandHoldBudget
21
- } from "./chunk-7DXPQW2H.js";
21
+ } from "./chunk-H7QTZTIE.js";
22
22
 
23
23
  // src/diagnostics/bridge.ts
24
24
  import { execFileSync } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  NPX_LATEST_COMMAND
3
- } from "./chunk-7RKX7WRQ.js";
3
+ } from "./chunk-QOMUEL44.js";
4
4
 
5
5
  // src/config.ts
6
6
  import { readFileSync } from "fs";
@@ -5,16 +5,16 @@ import {
5
5
  import {
6
6
  NOTIFICATION_MATCHED_TYPES,
7
7
  POSTTOOLUSE_MIRRORED_TOOLS
8
- } from "./chunk-V5BIWNB3.js";
8
+ } from "./chunk-KMTSU366.js";
9
9
  import {
10
10
  isProtectedByScope,
11
11
  registerHookEntry
12
- } from "./chunk-TAPGV2YV.js";
12
+ } from "./chunk-CBOHZ6NY.js";
13
13
  import {
14
14
  CLAUDE_PRETOOLUSE_MATCHER,
15
15
  HOOK_BUDGETS,
16
16
  HOOK_LOCATOR_BINARY
17
- } from "./chunk-7DXPQW2H.js";
17
+ } from "./chunk-H7QTZTIE.js";
18
18
 
19
19
  // src/gemini-config.ts
20
20
  var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
@@ -3,11 +3,11 @@ import {
3
3
  decodePublicKey,
4
4
  generateSessionKey,
5
5
  wrapSessionKey
6
- } from "./chunk-HRAZMBUX.js";
6
+ } from "./chunk-OUWDJIJF.js";
7
7
  import {
8
8
  fetchTranscriptRecipients,
9
9
  uploadTranscriptRecords
10
- } from "./chunk-AXGA3WJI.js";
10
+ } from "./chunk-LRLF6PZ2.js";
11
11
 
12
12
  // src/live-session.ts
13
13
  var MAX_TRANSCRIPT_QUEUE = 100;
@@ -10,7 +10,7 @@ import {
10
10
  isSetupConnectMode,
11
11
  isValidApiKey,
12
12
  normalizeAgentId
13
- } from "./chunk-7DXPQW2H.js";
13
+ } from "./chunk-H7QTZTIE.js";
14
14
 
15
15
  // src/setup/options.ts
16
16
  var AGENT_CHOICES = SETUP_AGENT_CHOICES;
@@ -6,12 +6,12 @@ import {
6
6
  permissionDeniedAction,
7
7
  releaseThrottle,
8
8
  reportEvent
9
- } from "./chunk-FD3QASU3.js";
9
+ } from "./chunk-OSVDGVLL.js";
10
10
  import {
11
11
  machineDecisionFor,
12
12
  shouldDeferToNativeMode,
13
13
  wireVerdictFor
14
- } from "./chunk-7DXPQW2H.js";
14
+ } from "./chunk-H7QTZTIE.js";
15
15
 
16
16
  // src/machine-decision-audit.ts
17
17
  import { basename } from "path";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-KZERVKTD.js";
4
4
  import {
5
5
  renderCommandHelp
6
- } from "./chunk-7RKX7WRQ.js";
6
+ } from "./chunk-QOMUEL44.js";
7
7
  import {
8
8
  getPackageVersion
9
- } from "./chunk-7DXPQW2H.js";
9
+ } from "./chunk-H7QTZTIE.js";
10
10
 
11
11
  // src/cli/usage.ts
12
12
  var exitOnHelpFlag = (command) => {
@@ -5,18 +5,18 @@ import {
5
5
  import {
6
6
  SubscriptionRequiredError,
7
7
  callMcpTool
8
- } from "./chunk-ZREXC363.js";
8
+ } from "./chunk-GVIPEBEL.js";
9
9
  import {
10
10
  installNetworkDefaults,
11
11
  isNetworkFailure
12
- } from "./chunk-56U55YDV.js";
12
+ } from "./chunk-35CMXPES.js";
13
13
  import {
14
14
  clientReportClaims
15
- } from "./chunk-TAPGV2YV.js";
15
+ } from "./chunk-CBOHZ6NY.js";
16
16
  import {
17
17
  getApiKey,
18
18
  getBaseUrl
19
- } from "./chunk-OK4WDRGM.js";
19
+ } from "./chunk-TXKAPRIA.js";
20
20
  import {
21
21
  ASK_AGENT_NAME_MAX,
22
22
  ASK_QUESTION_MAX,
@@ -25,7 +25,7 @@ import {
25
25
  GATE_PERMISSION_MODE_MAX_LENGTH,
26
26
  degradedLine,
27
27
  truncateLine
28
- } from "./chunk-7DXPQW2H.js";
28
+ } from "./chunk-H7QTZTIE.js";
29
29
 
30
30
  // src/client-report-claim.ts
31
31
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-TAPGV2YV.js";
3
+ } from "./chunk-CBOHZ6NY.js";
4
4
  import {
5
5
  writeFileAtomic
6
6
  } from "./chunk-AQFEP65J.js";