@pushary/agent-hooks 1.9.3 → 1.9.5

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 (98) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/bin/pushary-bell-hook.js +23 -23
  3. package/dist/bin/pushary-bell.js +9 -9
  4. package/dist/bin/pushary-claude.js +26 -26
  5. package/dist/bin/pushary-clean.js +28 -28
  6. package/dist/bin/pushary-codex-bridge.js +18 -18
  7. package/dist/bin/pushary-codex-hook.js +31 -31
  8. package/dist/bin/pushary-codex.js +13 -13
  9. package/dist/bin/pushary-connect.js +13 -13
  10. package/dist/bin/pushary-cowork.js +5 -5
  11. package/dist/bin/pushary-daemon.js +26 -26
  12. package/dist/bin/pushary-disconnect.js +18 -18
  13. package/dist/bin/pushary-doctor.js +30 -30
  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 +28 -28
  17. package/dist/bin/pushary-hook.js +32 -32
  18. package/dist/bin/pushary-login.js +12 -12
  19. package/dist/bin/pushary-logout.js +7 -7
  20. package/dist/bin/pushary-mcp.js +9 -9
  21. package/dist/bin/pushary-mode.js +9 -9
  22. package/dist/bin/pushary-notification-hook.js +28 -28
  23. package/dist/bin/pushary-opencode-hook.js +27 -27
  24. package/dist/bin/pushary-permission-denied-hook.js +32 -32
  25. package/dist/bin/pushary-permission-hook.js +31 -31
  26. package/dist/bin/pushary-post-hook.js +28 -28
  27. package/dist/bin/pushary-prompt-hook.js +28 -28
  28. package/dist/bin/pushary-session-end-hook.js +28 -28
  29. package/dist/bin/pushary-session-start-hook.js +31 -31
  30. package/dist/bin/pushary-setup.js +73 -42
  31. package/dist/bin/pushary-stats.js +5 -5
  32. package/dist/bin/pushary-status.js +15 -15
  33. package/dist/bin/pushary-stop-hook.js +28 -28
  34. package/dist/bin/pushary-stopfailure-hook.js +28 -28
  35. package/dist/bin/pushary-suggestions.js +4 -4
  36. package/dist/bin/pushary-transcript-register.js +19 -19
  37. package/dist/bin/pushary-transcripts.js +7 -7
  38. package/dist/bin/pushary-upgrade.js +21 -21
  39. package/dist/bin/pushary-wait.js +9 -9
  40. package/dist/bin/pushary.js +6 -6
  41. package/dist/{chunk-2UWD2WZC.js → chunk-23R4BMUP.js} +1 -1
  42. package/dist/{chunk-4GTXFYQ7.js → chunk-2DSUVY6R.js} +1 -1
  43. package/dist/{chunk-NGD7H3GZ.js → chunk-2JOP4D2G.js} +2 -2
  44. package/dist/{chunk-AUS3LY4N.js → chunk-2KH5NTKR.js} +2 -2
  45. package/dist/{chunk-G2YXIZZS.js → chunk-2PFD44YK.js} +2 -2
  46. package/dist/{chunk-GB2U4QVF.js → chunk-3Z7NUGXO.js} +4 -4
  47. package/dist/{chunk-FLUECSUC.js → chunk-4LVFBQJ3.js} +2 -2
  48. package/dist/{chunk-ZPTSEJMD.js → chunk-5DU7LJ7L.js} +2 -2
  49. package/dist/{chunk-FANGHYW5.js → chunk-5T65DZBH.js} +1 -1
  50. package/dist/{chunk-AGW7PMMO.js → chunk-6OUATBSK.js} +2 -2
  51. package/dist/{chunk-DEWCUHOY.js → chunk-6WKOOF2H.js} +2 -2
  52. package/dist/{chunk-ZV32QRBR.js → chunk-7AV2KBZC.js} +1 -1
  53. package/dist/{chunk-PPC4FZKJ.js → chunk-CPMVKL6H.js} +4 -4
  54. package/dist/{chunk-SJC5TXK7.js → chunk-CV2IAVD5.js} +3 -3
  55. package/dist/{chunk-WRDMCP4G.js → chunk-ELQAQZNO.js} +3 -3
  56. package/dist/{chunk-BPGATW2F.js → chunk-EYKHHCLA.js} +4 -4
  57. package/dist/{chunk-QVUOPB32.js → chunk-FNOY2K4N.js} +2 -2
  58. package/dist/{chunk-U3DBAX7P.js → chunk-FQKFONAS.js} +2 -2
  59. package/dist/{chunk-Q7KSRRQ4.js → chunk-FYEQSB6N.js} +1 -1
  60. package/dist/{chunk-KO7UOTLD.js → chunk-G3W5GP6O.js} +5 -5
  61. package/dist/{chunk-WEK6US33.js → chunk-G7CZUI4G.js} +1 -1
  62. package/dist/{chunk-7FVC3RGF.js → chunk-GBKM4ULB.js} +6 -6
  63. package/dist/{chunk-IVF3OVR2.js → chunk-GRFV6GPY.js} +2 -2
  64. package/dist/{chunk-EZFE4PC3.js → chunk-HOTK2D2S.js} +1 -1
  65. package/dist/{chunk-Q4RF7EEP.js → chunk-IX5EFNCI.js} +1 -1
  66. package/dist/{chunk-CJFVYYKM.js → chunk-JSVBVV2Q.js} +9 -9
  67. package/dist/{chunk-FSFI2PQL.js → chunk-K2J6OGGN.js} +1 -1
  68. package/dist/{chunk-HBUQ2EQD.js → chunk-KSJCYP4I.js} +1 -1
  69. package/dist/{chunk-WL4YO6CO.js → chunk-KTIY7ZIA.js} +8 -7
  70. package/dist/{chunk-7MO3CNBX.js → chunk-L5XJZKF2.js} +3 -3
  71. package/dist/{chunk-OEMF3KJ3.js → chunk-LBTOB7Z7.js} +5 -5
  72. package/dist/{chunk-HPXFPXW7.js → chunk-LSYSKKWW.js} +1 -1
  73. package/dist/{chunk-552AGATI.js → chunk-M7MMZURA.js} +1 -1
  74. package/dist/{chunk-VRPNTJX3.js → chunk-NH63BTRO.js} +5 -5
  75. package/dist/{chunk-CVVPUVBD.js → chunk-NI2BRIHL.js} +3 -3
  76. package/dist/{chunk-Q7FLA4N3.js → chunk-NUYECJ57.js} +1 -1
  77. package/dist/{chunk-KA2GI53J.js → chunk-ORBTANP2.js} +1 -1
  78. package/dist/{chunk-GOWCPJTP.js → chunk-Q6KNNFGG.js} +2 -2
  79. package/dist/{chunk-NP5RJL34.js → chunk-QEY4SCXT.js} +1 -1
  80. package/dist/{chunk-VRYOALHQ.js → chunk-RKEVFUBN.js} +3 -3
  81. package/dist/{chunk-JM2MCYRZ.js → chunk-TNCINDSF.js} +6 -6
  82. package/dist/{chunk-UWMEY4RS.js → chunk-UM7DXK6V.js} +5 -5
  83. package/dist/{chunk-P3REVSM5.js → chunk-UQBJTGLX.js} +3 -3
  84. package/dist/{chunk-AMFNJPJ5.js → chunk-V3ASMZLF.js} +8 -8
  85. package/dist/{chunk-ZUZKHTPJ.js → chunk-V3TD72QA.js} +3 -3
  86. package/dist/{chunk-HIQNUBWO.js → chunk-VZGCXECP.js} +2 -2
  87. package/dist/{chunk-OXJRUMZT.js → chunk-XEZWDDR5.js} +1 -1
  88. package/dist/{chunk-34JHGOYO.js → chunk-XXBOA4ZL.js} +1 -1
  89. package/dist/{chunk-5IIAUWEJ.js → chunk-ZBF5WAP7.js} +4 -4
  90. package/dist/{chunk-NZJ5LFMX.js → chunk-ZJSII7OP.js} +10 -10
  91. package/dist/{chunk-MH6SJHUE.js → chunk-ZW7KE2GP.js} +1 -1
  92. package/dist/{global-upgrade-VEQ4KQEW.js → global-upgrade-GWD4OADP.js} +6 -6
  93. package/dist/{paths-QTOUBV2V.js → paths-MJGE4UFY.js} +2 -2
  94. package/dist/{reapply-T5PLCAGP.js → reapply-U6BMGCAB.js} +8 -8
  95. package/dist/src/index.js +20 -20
  96. package/dist/{upgrade-lock-KFZBAPNU.js → upgrade-lock-HQP6XCER.js} +3 -3
  97. package/package.json +1 -1
  98. /package/dist/{chunk-JDUWMJDP.js → chunk-SBR2UKUO.js} +0 -0
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-XHKBHWLX.js";
5
5
  import {
6
6
  readControlMode
7
- } from "./chunk-ZPTSEJMD.js";
7
+ } from "./chunk-5DU7LJ7L.js";
8
8
  import {
9
9
  getMachineId
10
- } from "./chunk-FSFI2PQL.js";
10
+ } from "./chunk-K2J6OGGN.js";
11
11
  import {
12
12
  pusharyDir,
13
13
  resolveGlobalBinary
14
- } from "./chunk-5IIAUWEJ.js";
14
+ } from "./chunk-ZBF5WAP7.js";
15
15
  import {
16
16
  readJsonSafe,
17
17
  writeFileAtomic,
@@ -20,14 +20,14 @@ import {
20
20
  } from "./chunk-T7E75EKA.js";
21
21
  import {
22
22
  getApiKey
23
- } from "./chunk-4GTXFYQ7.js";
23
+ } from "./chunk-2DSUVY6R.js";
24
24
  import {
25
25
  CLI_PACKAGE_NAMES,
26
26
  cmdShimTarget,
27
27
  getPackageVersion,
28
28
  globalPackageFolder,
29
29
  globalRootFor
30
- } from "./chunk-JDUWMJDP.js";
30
+ } from "./chunk-SBR2UKUO.js";
31
31
 
32
32
  // src/daemon-lifecycle.ts
33
33
  import { dirname, join, win32 as win32Path } from "path";
@@ -38,6 +38,7 @@ import { execFileSync } from "child_process";
38
38
  var daemonNeedsHandoff = (status) => status.kind === "version-mismatch" || status.kind === "configuration-mismatch" || status.kind === "unresponsive" && status.processAlive === true;
39
39
  var DAEMON_REMOTE_PROOF_MAX_AGE_MS = 18e4;
40
40
  var DAEMON_REMOTE_PROOF_CLOCK_SKEW_MS = 3e4;
41
+ var DAEMON_STARTUP_TIMEOUT_MS = 3e4;
41
42
  var remoteProofIsFresh = (timestamp, now) => {
42
43
  if (timestamp === null) return false;
43
44
  const age = now - Date.parse(timestamp);
@@ -1070,7 +1071,7 @@ var ensureDaemonRunning = async (options = {}) => {
1070
1071
  }
1071
1072
  const sleep = options.sleep ?? wait;
1072
1073
  const pollIntervalMs = options.pollIntervalMs ?? 50;
1073
- const attempts = Math.max(1, Math.ceil((options.waitTimeoutMs ?? 5e3) / pollIntervalMs));
1074
+ const attempts = Math.max(1, Math.ceil((options.waitTimeoutMs ?? DAEMON_STARTUP_TIMEOUT_MS) / pollIntervalMs));
1074
1075
  if (handoffStatus.kind === "running") return { kind: "running", status: handoffStatus };
1075
1076
  if (daemonNeedsHandoff(handoffStatus)) {
1076
1077
  return { kind: "unavailable", status: handoffStatus, detail: "unhealthy daemon did not yield" };
@@ -1095,7 +1096,7 @@ var ensureDaemonRunning = async (options = {}) => {
1095
1096
  var waitForDaemonRemoteProof = async (options = {}) => {
1096
1097
  const sleep = options.sleep ?? wait;
1097
1098
  const pollIntervalMs = options.pollIntervalMs ?? 250;
1098
- const attempts = Math.max(1, Math.ceil((options.waitTimeoutMs ?? 5e3) / pollIntervalMs));
1099
+ const attempts = Math.max(1, Math.ceil((options.waitTimeoutMs ?? DAEMON_STARTUP_TIMEOUT_MS) / pollIntervalMs));
1099
1100
  let status = readDaemonStatus(options);
1100
1101
  for (let attempt = 0; attempt < attempts; attempt++) {
1101
1102
  status = readDaemonStatus(options);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-WRDMCP4G.js";
3
+ } from "./chunk-ELQAQZNO.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-4GTXFYQ7.js";
12
+ } from "./chunk-2DSUVY6R.js";
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-JDUWMJDP.js";
16
+ } from "./chunk-SBR2UKUO.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;
@@ -3,7 +3,7 @@ import {
3
3
  finishWithUpgradeLock,
4
4
  installWithUpgradeLock,
5
5
  releaseAutoUpdateLock
6
- } from "./chunk-HPXFPXW7.js";
6
+ } from "./chunk-LSYSKKWW.js";
7
7
  import {
8
8
  describeAutoUpdateCheck,
9
9
  globalInstallLocation,
@@ -11,7 +11,7 @@ import {
11
11
  readAutoUpdateState,
12
12
  updateAutoUpdateState,
13
13
  upgradeEntryFor
14
- } from "./chunk-GOWCPJTP.js";
14
+ } from "./chunk-Q6KNNFGG.js";
15
15
  import {
16
16
  EXIT
17
17
  } from "./chunk-KZERVKTD.js";
@@ -24,10 +24,10 @@ import {
24
24
  npmErrorMessage,
25
25
  readGlobalCliInstallAt,
26
26
  readGlobalPrefix
27
- } from "./chunk-5IIAUWEJ.js";
27
+ } from "./chunk-ZBF5WAP7.js";
28
28
  import {
29
29
  NPX_LATEST_COMMAND
30
- } from "./chunk-EZFE4PC3.js";
30
+ } from "./chunk-HOTK2D2S.js";
31
31
  import {
32
32
  commandsPackage,
33
33
  globalUpgradeEntry,
@@ -36,7 +36,7 @@ import {
36
36
  isSameMajorVersion,
37
37
  ownPackageRoot,
38
38
  packageVersionAt
39
- } from "./chunk-JDUWMJDP.js";
39
+ } from "./chunk-SBR2UKUO.js";
40
40
 
41
41
  // src/global-upgrade.ts
42
42
  import { existsSync } from "fs";
@@ -2,7 +2,7 @@ import {
2
2
  autoUpdateLock,
3
3
  installPackageGlobally,
4
4
  npmErrorMessage
5
- } from "./chunk-5IIAUWEJ.js";
5
+ } from "./chunk-ZBF5WAP7.js";
6
6
  import {
7
7
  writeJsonAtomic
8
8
  } from "./chunk-T7E75EKA.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-JDUWMJDP.js";
3
+ } from "./chunk-SBR2UKUO.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";
@@ -3,28 +3,28 @@ import {
3
3
  addPusharyToolPermissions,
4
4
  isPusharyHook,
5
5
  removeClaudeMcpServers
6
- } from "./chunk-ZUZKHTPJ.js";
6
+ } from "./chunk-V3TD72QA.js";
7
7
  import {
8
8
  CLAUDE_HOOK_EVENTS,
9
9
  addGeminiMcpServer,
10
10
  removeGeminiMcpServer
11
- } from "./chunk-CVVPUVBD.js";
11
+ } from "./chunk-NI2BRIHL.js";
12
12
  import {
13
13
  CLAUDE_CODE_AGENT,
14
14
  parseApplyPatchFiles
15
- } from "./chunk-CJFVYYKM.js";
15
+ } from "./chunk-JSVBVV2Q.js";
16
16
  import {
17
17
  guardBinary,
18
18
  holdBudgetOf,
19
19
  registerHookEntry
20
- } from "./chunk-5IIAUWEJ.js";
20
+ } from "./chunk-ZBF5WAP7.js";
21
21
  import {
22
22
  PHONE_ANSWERED_TOOLS,
23
23
  hookCompatibleProfile,
24
24
  hookCompatibleProfileBySource,
25
25
  toToolLookup,
26
26
  withHookHoldBudget
27
- } from "./chunk-JDUWMJDP.js";
27
+ } from "./chunk-SBR2UKUO.js";
28
28
 
29
29
  // src/compatible-config.ts
30
30
  import { homedir } from "os";
@@ -5,16 +5,16 @@ import {
5
5
  import {
6
6
  NOTIFICATION_MATCHED_TYPES,
7
7
  POSTTOOLUSE_MIRRORED_TOOLS
8
- } from "./chunk-HBUQ2EQD.js";
8
+ } from "./chunk-KSJCYP4I.js";
9
9
  import {
10
10
  isProtectedByScope,
11
11
  registerHookEntry
12
- } from "./chunk-5IIAUWEJ.js";
12
+ } from "./chunk-ZBF5WAP7.js";
13
13
  import {
14
14
  CLAUDE_PRETOOLUSE_MATCHER,
15
15
  HOOK_BUDGETS,
16
16
  HOOK_LOCATOR_BINARY
17
- } from "./chunk-JDUWMJDP.js";
17
+ } from "./chunk-SBR2UKUO.js";
18
18
 
19
19
  // src/gemini-config.ts
20
20
  var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readConfigFileKey
3
- } from "./chunk-ZPTSEJMD.js";
3
+ } from "./chunk-5DU7LJ7L.js";
4
4
 
5
5
  // src/bell/fleet.ts
6
6
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  describeKeyCheck,
6
6
  keyCheckFromResponse
7
- } from "./chunk-7MO3CNBX.js";
7
+ } from "./chunk-L5XJZKF2.js";
8
8
  import {
9
9
  EXIT
10
10
  } from "./chunk-KZERVKTD.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-POFBE6ZY.js";
4
4
  import {
5
5
  autoUpdateState
6
- } from "./chunk-5IIAUWEJ.js";
6
+ } from "./chunk-ZBF5WAP7.js";
7
7
  import {
8
8
  readJsonSafe,
9
9
  writeJsonAtomic
@@ -14,7 +14,7 @@ import {
14
14
  cliPackagePathSegments,
15
15
  globalUpgradeEntry,
16
16
  ownPackageRoot
17
- } from "./chunk-JDUWMJDP.js";
17
+ } from "./chunk-SBR2UKUO.js";
18
18
 
19
19
  // src/auto-update.ts
20
20
  import { spawn } from "child_process";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOOK_HOLD_BUDGET_ENV,
3
3
  hookHoldBudgetProof
4
- } from "./chunk-JDUWMJDP.js";
4
+ } from "./chunk-SBR2UKUO.js";
5
5
 
6
6
  // src/hold-budget.ts
7
7
  var takeHookHoldBudget = (args = process.argv.slice(2), env = process.env) => {
@@ -2,17 +2,17 @@ import {
2
2
  CLAUDE_HOOK_EVENTS,
3
3
  GEMINI_HOOK_EVENTS,
4
4
  hasGeminiHooks
5
- } from "./chunk-CVVPUVBD.js";
5
+ } from "./chunk-NI2BRIHL.js";
6
6
  import {
7
7
  CODEX_HOOK_EVENTS,
8
8
  hasCodexHooks,
9
9
  holdBudgetOf
10
- } from "./chunk-5IIAUWEJ.js";
10
+ } from "./chunk-ZBF5WAP7.js";
11
11
  import {
12
12
  CURSOR_GATE_EVENTS,
13
13
  HOOK_LOCATOR_BINARY,
14
14
  hookCommandHoldBudget
15
- } from "./chunk-JDUWMJDP.js";
15
+ } from "./chunk-SBR2UKUO.js";
16
16
 
17
17
  // src/diagnostics/wiring.ts
18
18
  var record = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : null;
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  MCP_BRIDGE_BINARY
3
- } from "./chunk-AUS3LY4N.js";
3
+ } from "./chunk-2KH5NTKR.js";
4
4
  import {
5
5
  openCodeConfigDirFrom
6
- } from "./chunk-IVF3OVR2.js";
6
+ } from "./chunk-GRFV6GPY.js";
7
7
  import {
8
8
  KEY_FILE_MODE
9
- } from "./chunk-ZPTSEJMD.js";
9
+ } from "./chunk-5DU7LJ7L.js";
10
10
  import {
11
11
  NpmMissingError,
12
12
  codexHomeFrom,
13
13
  resolvePathBinary
14
- } from "./chunk-5IIAUWEJ.js";
14
+ } from "./chunk-ZBF5WAP7.js";
15
15
  import {
16
16
  readJsonSafe,
17
17
  writeFileAtomic,
@@ -19,10 +19,10 @@ import {
19
19
  } from "./chunk-T7E75EKA.js";
20
20
  import {
21
21
  NPX_LATEST_COMMAND
22
- } from "./chunk-EZFE4PC3.js";
22
+ } from "./chunk-HOTK2D2S.js";
23
23
  import {
24
24
  HOOK_COMPATIBLE_PROFILES
25
- } from "./chunk-JDUWMJDP.js";
25
+ } from "./chunk-SBR2UKUO.js";
26
26
 
27
27
  // src/hermes-config.ts
28
28
  import { execFileSync } from "child_process";
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  clientErrorKindOf,
3
3
  reportClientError
4
- } from "./chunk-PPC4FZKJ.js";
4
+ } from "./chunk-CPMVKL6H.js";
5
5
  import {
6
6
  SubscriptionRequiredError,
7
7
  callMcpTool
8
- } from "./chunk-SJC5TXK7.js";
8
+ } from "./chunk-CV2IAVD5.js";
9
9
  import {
10
10
  installNetworkDefaults
11
- } from "./chunk-WRDMCP4G.js";
11
+ } from "./chunk-ELQAQZNO.js";
12
12
  import {
13
13
  getBaseUrl
14
- } from "./chunk-4GTXFYQ7.js";
14
+ } from "./chunk-2DSUVY6R.js";
15
15
  import {
16
16
  ASK_AGENT_NAME_MAX,
17
17
  ASK_QUESTION_MAX,
18
18
  DECISION_LINE_MAX,
19
19
  truncateLine
20
- } from "./chunk-JDUWMJDP.js";
20
+ } from "./chunk-SBR2UKUO.js";
21
21
 
22
22
  // src/api.ts
23
23
  import { randomUUID } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-MH6SJHUE.js";
3
+ } from "./chunk-ZW7KE2GP.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-EZFE4PC3.js";
12
+ } from "./chunk-HOTK2D2S.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-JDUWMJDP.js";
20
+ } from "./chunk-SBR2UKUO.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -6,38 +6,38 @@ import {
6
6
  } from "./chunk-SGZJ5LYH.js";
7
7
  import {
8
8
  hookOwnerOf
9
- } from "./chunk-GB2U4QVF.js";
9
+ } from "./chunk-3Z7NUGXO.js";
10
10
  import {
11
11
  ensureDaemonRunning
12
- } from "./chunk-WL4YO6CO.js";
12
+ } from "./chunk-KTIY7ZIA.js";
13
13
  import {
14
14
  buildTranscriptRecords,
15
15
  decodePublicKey,
16
16
  generateSessionKey,
17
17
  wrapSessionKey
18
- } from "./chunk-Q4RF7EEP.js";
18
+ } from "./chunk-IX5EFNCI.js";
19
19
  import {
20
20
  fetchTranscriptRecipients,
21
21
  uploadTranscriptRecords
22
- } from "./chunk-ZV32QRBR.js";
22
+ } from "./chunk-7AV2KBZC.js";
23
23
  import {
24
24
  transcriptEnvironmentPreference,
25
25
  transcriptsEnabled
26
- } from "./chunk-34JHGOYO.js";
26
+ } from "./chunk-XXBOA4ZL.js";
27
27
  import {
28
28
  readTranscriptPreference
29
- } from "./chunk-ZPTSEJMD.js";
29
+ } from "./chunk-5DU7LJ7L.js";
30
30
  import {
31
31
  codexHome,
32
32
  pusharyDir
33
- } from "./chunk-5IIAUWEJ.js";
33
+ } from "./chunk-ZBF5WAP7.js";
34
34
  import {
35
35
  writeJsonAtomic
36
36
  } from "./chunk-T7E75EKA.js";
37
37
  import {
38
38
  getApiKey,
39
39
  getBaseUrl
40
- } from "./chunk-4GTXFYQ7.js";
40
+ } from "./chunk-2DSUVY6R.js";
41
41
 
42
42
  // src/transcript-registration.ts
43
43
  import { createHash } from "crypto";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  CLAUDE_HOOK_EVENTS,
3
3
  supportedClaudeEvents
4
- } from "./chunk-CVVPUVBD.js";
4
+ } from "./chunk-NI2BRIHL.js";
5
5
  import {
6
6
  guardBinary,
7
7
  holdBudgetOf,
8
8
  isProtectedByScope,
9
9
  registerHookEntry
10
- } from "./chunk-5IIAUWEJ.js";
10
+ } from "./chunk-ZBF5WAP7.js";
11
11
  import {
12
12
  HOOK_LOCATOR_BINARY,
13
13
  withHookHoldBudget
14
- } from "./chunk-JDUWMJDP.js";
14
+ } from "./chunk-SBR2UKUO.js";
15
15
 
16
16
  // src/claude-config.ts
17
17
  import { join } from "path";
@@ -5,7 +5,7 @@ import {
5
5
  permissionDeniedAction,
6
6
  releaseThrottle,
7
7
  reportEvent
8
- } from "./chunk-CJFVYYKM.js";
8
+ } from "./chunk-JSVBVV2Q.js";
9
9
  import {
10
10
  DEFAULT_SESSION
11
11
  } from "./chunk-N6IOSZOE.js";
@@ -13,7 +13,7 @@ import {
13
13
  machineDecisionFor,
14
14
  shouldDeferToNativeMode,
15
15
  wireVerdictFor
16
- } from "./chunk-JDUWMJDP.js";
16
+ } from "./chunk-SBR2UKUO.js";
17
17
 
18
18
  // src/machine-decision-audit.ts
19
19
  import { basename } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-5IIAUWEJ.js";
3
+ } from "./chunk-ZBF5WAP7.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-T7E75EKA.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-ZPTSEJMD.js";
3
+ } from "./chunk-5DU7LJ7L.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -13,7 +13,7 @@ import {
13
13
  isReleaseVersion,
14
14
  ownPackageName,
15
15
  withHookHoldBudget
16
- } from "./chunk-JDUWMJDP.js";
16
+ } from "./chunk-SBR2UKUO.js";
17
17
 
18
18
  // src/setup/paths.ts
19
19
  import { homedir as homedir2 } from "os";
@@ -365,9 +365,9 @@ var installGlobally = (options) => {
365
365
  }
366
366
  const started = (async () => {
367
367
  if (!npmIsOnPath()) throw new NpmMissingError();
368
- const { withUpgradeLock } = await import("./global-upgrade-VEQ4KQEW.js");
369
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-KFZBAPNU.js");
370
- const { autoUpdateLock: autoUpdateLock2 } = await import("./paths-QTOUBV2V.js");
368
+ const { withUpgradeLock } = await import("./global-upgrade-GWD4OADP.js");
369
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-HQP6XCER.js");
370
+ const { autoUpdateLock: autoUpdateLock2 } = await import("./paths-MJGE4UFY.js");
371
371
  let result = "skipped";
372
372
  const install = async () => {
373
373
  const platform = process.platform;
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  activeHookSource,
3
3
  activeIdentity
4
- } from "./chunk-VRPNTJX3.js";
4
+ } from "./chunk-NH63BTRO.js";
5
5
  import {
6
6
  defersToNativeMode,
7
7
  reportMachineDenial
8
- } from "./chunk-HIQNUBWO.js";
8
+ } from "./chunk-VZGCXECP.js";
9
9
  import {
10
10
  isGatingMoment,
11
11
  recordKeylessMoment
12
- } from "./chunk-552AGATI.js";
12
+ } from "./chunk-M7MMZURA.js";
13
13
  import {
14
14
  announceSubscriptionRequired,
15
15
  denyReasonFrom,
@@ -39,7 +39,7 @@ import {
39
39
  reportEvent,
40
40
  scopePathFor,
41
41
  settleQuestionsForToolUse
42
- } from "./chunk-CJFVYYKM.js";
42
+ } from "./chunk-JSVBVV2Q.js";
43
43
  import {
44
44
  DEFAULT_SESSION
45
45
  } from "./chunk-N6IOSZOE.js";
@@ -55,20 +55,20 @@ import {
55
55
  requestGate,
56
56
  sendNotification,
57
57
  waitForQuestion
58
- } from "./chunk-UWMEY4RS.js";
58
+ } from "./chunk-UM7DXK6V.js";
59
59
  import {
60
60
  SubscriptionRequiredError
61
- } from "./chunk-SJC5TXK7.js";
61
+ } from "./chunk-CV2IAVD5.js";
62
62
  import {
63
63
  getMachineId
64
- } from "./chunk-FSFI2PQL.js";
64
+ } from "./chunk-K2J6OGGN.js";
65
65
  import {
66
66
  getApiKey,
67
67
  getBaseUrl
68
- } from "./chunk-4GTXFYQ7.js";
68
+ } from "./chunk-2DSUVY6R.js";
69
69
  import {
70
70
  NPX_LATEST_COMMAND
71
- } from "./chunk-EZFE4PC3.js";
71
+ } from "./chunk-HOTK2D2S.js";
72
72
  import {
73
73
  AGENT_QUESTION_STRATEGY,
74
74
  GATE_BLOCK_REASON_MAX_LENGTH,
@@ -96,7 +96,7 @@ import {
96
96
  parseAgentQuestions,
97
97
  resolveGate,
98
98
  stoppedOutput
99
- } from "./chunk-JDUWMJDP.js";
99
+ } from "./chunk-SBR2UKUO.js";
100
100
 
101
101
  // src/claude-permission-rules.ts
102
102
  import { readFileSync, statSync } from "fs";
@@ -9,7 +9,7 @@ import {
9
9
  SETUP_CONNECT_MODES,
10
10
  isSetupConnectMode,
11
11
  isValidApiKey
12
- } from "./chunk-JDUWMJDP.js";
12
+ } from "./chunk-SBR2UKUO.js";
13
13
 
14
14
  // src/setup/options.ts
15
15
  var AGENT_CHOICES = SETUP_AGENT_CHOICES;
@@ -5,15 +5,15 @@ import {
5
5
  readGlobalUpgradeSubject,
6
6
  upgradeInstalledPackage,
7
7
  withUpgradeLock
8
- } from "./chunk-OEMF3KJ3.js";
9
- import "./chunk-HPXFPXW7.js";
10
- import "./chunk-GOWCPJTP.js";
8
+ } from "./chunk-LBTOB7Z7.js";
9
+ import "./chunk-LSYSKKWW.js";
10
+ import "./chunk-Q6KNNFGG.js";
11
11
  import "./chunk-POFBE6ZY.js";
12
12
  import "./chunk-KZERVKTD.js";
13
- import "./chunk-5IIAUWEJ.js";
13
+ import "./chunk-ZBF5WAP7.js";
14
14
  import "./chunk-T7E75EKA.js";
15
- import "./chunk-EZFE4PC3.js";
16
- import "./chunk-JDUWMJDP.js";
15
+ import "./chunk-HOTK2D2S.js";
16
+ import "./chunk-SBR2UKUO.js";
17
17
  export {
18
18
  finishGlobalUpgrade,
19
19
  finishUpgradeWithLock,
@@ -32,8 +32,8 @@ import {
32
32
  pusharyDir,
33
33
  vscodePluginDir,
34
34
  vscodePluginMcp
35
- } from "./chunk-5IIAUWEJ.js";
36
- import "./chunk-JDUWMJDP.js";
35
+ } from "./chunk-ZBF5WAP7.js";
36
+ import "./chunk-SBR2UKUO.js";
37
37
  export {
38
38
  autoUpdateLock,
39
39
  autoUpdateLog,
@@ -9,18 +9,18 @@ import {
9
9
  reapplyGeminiSettings,
10
10
  reapplyVsCodePlugin,
11
11
  repairCodexHolds
12
- } from "./chunk-KO7UOTLD.js";
13
- import "./chunk-QVUOPB32.js";
14
- import "./chunk-ZUZKHTPJ.js";
12
+ } from "./chunk-G3W5GP6O.js";
13
+ import "./chunk-FNOY2K4N.js";
14
+ import "./chunk-V3TD72QA.js";
15
15
  import "./chunk-RIVNNBEK.js";
16
- import "./chunk-VRYOALHQ.js";
17
- import "./chunk-CVVPUVBD.js";
16
+ import "./chunk-RKEVFUBN.js";
17
+ import "./chunk-NI2BRIHL.js";
18
18
  import "./chunk-XHKBHWLX.js";
19
19
  import "./chunk-6ICPEJY5.js";
20
- import "./chunk-HBUQ2EQD.js";
21
- import "./chunk-5IIAUWEJ.js";
20
+ import "./chunk-KSJCYP4I.js";
21
+ import "./chunk-ZBF5WAP7.js";
22
22
  import "./chunk-T7E75EKA.js";
23
- import "./chunk-JDUWMJDP.js";
23
+ import "./chunk-SBR2UKUO.js";
24
24
  export {
25
25
  ensureCodexTrustAfterReapply,
26
26
  inspectConfiguredManagedProviders,