@pushary/agent-hooks 1.9.78 → 1.9.79

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 (125) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/{api-4WCUP47K.js → api-T6DRYZOD.js} +10 -10
  3. package/dist/bin/pushary-bell-hook.js +25 -25
  4. package/dist/bin/pushary-bell.js +10 -10
  5. package/dist/bin/pushary-claude.js +26 -26
  6. package/dist/bin/pushary-clean.js +33 -33
  7. package/dist/bin/pushary-codex-bridge.js +21 -21
  8. package/dist/bin/pushary-codex-hook.js +30 -30
  9. package/dist/bin/pushary-codex-session.js +8 -8
  10. package/dist/bin/pushary-codex.js +13 -13
  11. package/dist/bin/pushary-connect.js +26 -26
  12. package/dist/bin/pushary-cowork.js +5 -5
  13. package/dist/bin/pushary-daemon.js +45 -42
  14. package/dist/bin/pushary-disconnect.js +25 -25
  15. package/dist/bin/pushary-display-hook.js +16 -16
  16. package/dist/bin/pushary-doctor.js +41 -41
  17. package/dist/bin/pushary-elicitation-hook.js +25 -25
  18. package/dist/bin/pushary-gemini-bridge.js +15 -15
  19. package/dist/bin/pushary-gemini-hook.js +27 -27
  20. package/dist/bin/pushary-hook.js +29 -29
  21. package/dist/bin/pushary-login.js +20 -20
  22. package/dist/bin/pushary-logout.js +24 -24
  23. package/dist/bin/pushary-mcp.js +11 -11
  24. package/dist/bin/pushary-mode.js +15 -15
  25. package/dist/bin/pushary-notification-hook.js +24 -24
  26. package/dist/bin/pushary-opencode-hook.js +26 -26
  27. package/dist/bin/pushary-permission-denied-hook.js +29 -29
  28. package/dist/bin/pushary-permission-hook.js +29 -29
  29. package/dist/bin/pushary-post-hook.js +24 -24
  30. package/dist/bin/pushary-prompt-hook.js +24 -24
  31. package/dist/bin/pushary-session-end-hook.js +26 -26
  32. package/dist/bin/pushary-session-start-hook.js +34 -34
  33. package/dist/bin/pushary-setup.js +45 -45
  34. package/dist/bin/pushary-stats.js +5 -5
  35. package/dist/bin/pushary-status.js +31 -31
  36. package/dist/bin/pushary-stop-hook.js +24 -24
  37. package/dist/bin/pushary-stopfailure-hook.js +24 -24
  38. package/dist/bin/pushary-suggestions.js +15 -15
  39. package/dist/bin/pushary-transcript-register.js +16 -16
  40. package/dist/bin/pushary-transcripts.js +18 -18
  41. package/dist/bin/pushary-upgrade.js +39 -39
  42. package/dist/bin/pushary-wait.js +15 -15
  43. package/dist/bin/pushary.js +7 -7
  44. package/dist/{chunk-OFQACQDL.js → chunk-236NGCTH.js} +2 -2
  45. package/dist/{chunk-RCDZ2XZ6.js → chunk-35M6YE6T.js} +1 -1
  46. package/dist/{chunk-VIIQLZJS.js → chunk-3D3L4ULT.js} +3 -3
  47. package/dist/{chunk-ZM3ELQPE.js → chunk-3K67QTMR.js} +29 -20
  48. package/dist/{chunk-FMDP5KWV.js → chunk-4DSCZINL.js} +6 -6
  49. package/dist/{chunk-LXSGNGK5.js → chunk-4NRT3CEF.js} +3 -3
  50. package/dist/{chunk-AOGM34LL.js → chunk-5HA42EV4.js} +1 -1
  51. package/dist/{chunk-74NZ3CJQ.js → chunk-5HMSHKZT.js} +1 -1
  52. package/dist/{chunk-42Y7IZSV.js → chunk-5MKPJ3WR.js} +1 -1
  53. package/dist/{chunk-5YHI2FN4.js → chunk-5NWAWDRM.js} +6 -6
  54. package/dist/{chunk-C5LCOXAC.js → chunk-63JW566T.js} +5 -5
  55. package/dist/{chunk-KJYZXX7X.js → chunk-7BALOMAV.js} +3 -3
  56. package/dist/{chunk-22FLBWJH.js → chunk-7OSGGPBR.js} +2 -2
  57. package/dist/{chunk-6HDYWRCP.js → chunk-7R5ZKOQ4.js} +1 -1
  58. package/dist/{chunk-BE5BA3GF.js → chunk-A2OAJ7CS.js} +1 -1
  59. package/dist/{chunk-Q53QJQLY.js → chunk-AFCKBLEG.js} +1 -1
  60. package/dist/{chunk-NFK5ZCLK.js → chunk-AFNLCEHM.js} +3 -3
  61. package/dist/{chunk-YJK3LBAJ.js → chunk-ANNRW6VU.js} +6 -6
  62. package/dist/{chunk-IVY6LYTO.js → chunk-AVCPF3VS.js} +1 -1
  63. package/dist/{chunk-PYW7VWVZ.js → chunk-BH7XLF5R.js} +5 -5
  64. package/dist/{chunk-MPZFQP6O.js → chunk-BLG7OEX4.js} +1 -1
  65. package/dist/{chunk-3XH4YLCN.js → chunk-C7BK5C6K.js} +4 -4
  66. package/dist/{chunk-7BMBXTN4.js → chunk-CB2Y4GEH.js} +10 -10
  67. package/dist/{chunk-YOPFR22Y.js → chunk-CH3CCVH4.js} +2 -2
  68. package/dist/{chunk-Y4I5YX3L.js → chunk-CLE7EVOW.js} +3 -3
  69. package/dist/{chunk-RJEG3TUZ.js → chunk-CSJD7NN6.js} +6 -6
  70. package/dist/{chunk-TNNB7P6Z.js → chunk-CX6EIW3N.js} +7 -7
  71. package/dist/{chunk-YH3RAWMV.js → chunk-DLPFYJ7G.js} +1 -1
  72. package/dist/{chunk-5F3L3QOO.js → chunk-EKVW5Y23.js} +4 -4
  73. package/dist/{chunk-JLBLEFBK.js → chunk-ERC6QW27.js} +3 -3
  74. package/dist/{chunk-YP35CA5L.js → chunk-GXW43S4A.js} +2 -2
  75. package/dist/{chunk-OFJUHEEG.js → chunk-HGCUZQUL.js} +2 -0
  76. package/dist/{chunk-74R4IZ7N.js → chunk-IEJOZQ7N.js} +5 -5
  77. package/dist/{chunk-WJTUCQ47.js → chunk-IPIJY4TI.js} +1 -1
  78. package/dist/{chunk-JM4WO3JT.js → chunk-IYKY3ZAV.js} +2 -2
  79. package/dist/{chunk-4ZSQPGAU.js → chunk-J3QUMD2E.js} +2 -2
  80. package/dist/{chunk-RDU5HWKU.js → chunk-KLE2ZMSJ.js} +4 -4
  81. package/dist/{chunk-TRTAYW7Z.js → chunk-L7FBI7N7.js} +4 -4
  82. package/dist/{chunk-56POFDRB.js → chunk-LTQJ2IMO.js} +3 -3
  83. package/dist/{chunk-CHBK47DU.js → chunk-LXV53WHO.js} +3 -3
  84. package/dist/{chunk-TQYSBYYZ.js → chunk-MVAP3NRX.js} +3 -3
  85. package/dist/{chunk-TDLK3ZU2.js → chunk-NFRBLMM2.js} +4 -4
  86. package/dist/{chunk-IVBQ5ISS.js → chunk-O7WSNZIR.js} +13 -13
  87. package/dist/{chunk-VZHDSUXK.js → chunk-OJS32QPK.js} +1 -1
  88. package/dist/{chunk-4FYY6YW3.js → chunk-P2PPAW5E.js} +1 -1
  89. package/dist/{chunk-T2MJ5H2V.js → chunk-PZ3OFAZ7.js} +14 -11
  90. package/dist/{chunk-7KMI2G24.js → chunk-Q5J33E43.js} +6 -6
  91. package/dist/{chunk-XCBKGQ6N.js → chunk-Q7J77QL2.js} +3 -3
  92. package/dist/{chunk-MJXP5MFI.js → chunk-QATBJHE6.js} +4 -4
  93. package/dist/{chunk-5WU6534E.js → chunk-QZ5KIX6U.js} +2 -2
  94. package/dist/{chunk-OOODSAHW.js → chunk-RDXNJSXM.js} +3 -3
  95. package/dist/{chunk-DQCQQ2PY.js → chunk-RQOJ23I4.js} +1 -1
  96. package/dist/{chunk-5QOMMZFZ.js → chunk-SNQ5HQHE.js} +1 -1
  97. package/dist/{chunk-EDHOHS3C.js → chunk-TDW5LI6P.js} +3 -3
  98. package/dist/{chunk-RIVCTSYV.js → chunk-TRVJ6MS5.js} +5 -5
  99. package/dist/{chunk-NH7C6QBI.js → chunk-UGP4FYMV.js} +4 -4
  100. package/dist/{chunk-SV2C7PZV.js → chunk-V3EN7LWU.js} +6 -6
  101. package/dist/{chunk-ZFS2Y5GK.js → chunk-VER45SAA.js} +5 -5
  102. package/dist/{chunk-VYELSTZK.js → chunk-WA4S6YAT.js} +3 -3
  103. package/dist/{chunk-B4MQSH3R.js → chunk-WB5PC4TL.js} +5 -5
  104. package/dist/{chunk-BM3AT5AF.js → chunk-WBC2ZXU7.js} +4 -4
  105. package/dist/{chunk-L2S7KWMF.js → chunk-WJVQOAZY.js} +1 -1
  106. package/dist/{chunk-Z6DZHUCO.js → chunk-X7JGHARV.js} +6 -6
  107. package/dist/{chunk-WHTWHHE3.js → chunk-XKJYTP3G.js} +3 -3
  108. package/dist/{chunk-Z5VZWDGL.js → chunk-XU2FL4B6.js} +2 -2
  109. package/dist/{chunk-TKQGDSO4.js → chunk-Z7AIEIM5.js} +2 -2
  110. package/dist/{chunk-4DOJLAGR.js → chunk-ZJGIJDWP.js} +1 -1
  111. package/dist/{chunk-DLOUKVLM.js → chunk-ZU7XS6PN.js} +2 -2
  112. package/dist/{codex-app-cards-switch-GUZ7XMPB.js → codex-app-cards-switch-OWLU462R.js} +11 -11
  113. package/dist/{codex-desktop-launch-Q5UINXU6.js → codex-desktop-launch-G37GNF4B.js} +1 -1
  114. package/dist/{codex-session-launch-4G5AFXXU.js → codex-session-launch-AV2AL64X.js} +18 -18
  115. package/dist/{config-725HOJFK.js → config-PXISW4O5.js} +3 -3
  116. package/dist/{global-upgrade-AXTMEH3I.js → global-upgrade-JWI5XIZP.js} +10 -10
  117. package/dist/{identity-HLIZDGEN.js → identity-JAXJ3FOD.js} +4 -4
  118. package/dist/{live-capabilities-A74OIHWN.js → live-capabilities-7PPQ2HPU.js} +5 -5
  119. package/dist/{paths-ZHDLQD25.js → paths-YV3ZK5LT.js} +3 -3
  120. package/dist/{reapply-RC2AMGCQ.js → reapply-YHJHUTFY.js} +27 -27
  121. package/dist/src/index.d.ts +3 -0
  122. package/dist/src/index.js +28 -28
  123. package/dist/{upgrade-lock-4B3D3OCT.js → upgrade-lock-I4JPC4WG.js} +4 -4
  124. package/dist/{usage-VVPEFYKS.js → usage-FZTPRQRP.js} +3 -3
  125. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  installNetworkDefaults
4
- } from "../chunk-XCBKGQ6N.js";
5
- import "../chunk-4ZSQPGAU.js";
6
- import "../chunk-TQYSBYYZ.js";
7
- import "../chunk-Y4I5YX3L.js";
8
- import "../chunk-Q53QJQLY.js";
4
+ } from "../chunk-Q7J77QL2.js";
5
+ import "../chunk-J3QUMD2E.js";
6
+ import "../chunk-MVAP3NRX.js";
7
+ import "../chunk-CLE7EVOW.js";
8
+ import "../chunk-AFCKBLEG.js";
9
9
  import "../chunk-PPY5N2E6.js";
10
10
  import {
11
11
  EXIT
@@ -14,11 +14,11 @@ import {
14
14
  LISTED_COMMANDS,
15
15
  renderHelp,
16
16
  resolveCommandName
17
- } from "../chunk-RCDZ2XZ6.js";
17
+ } from "../chunk-35M6YE6T.js";
18
18
  import {
19
19
  getPackageVersion
20
20
  } from "../chunk-QTOLNRET.js";
21
- import "../chunk-OFJUHEEG.js";
21
+ import "../chunk-HGCUZQUL.js";
22
22
  import "../chunk-MLKGABMK.js";
23
23
 
24
24
  // src/cli/runtime.ts
@@ -521,7 +521,7 @@ var loadedOnce = (load) => {
521
521
  };
522
522
 
523
523
  // src/codex-desktop-proxy.ts
524
- var loadThePhone = () => import("./api-4WCUP47K.js");
524
+ var loadThePhone = () => import("./api-T6DRYZOD.js");
525
525
  var theFirstCardLoadsAgain = () => {
526
526
  };
527
527
  var APP_SERVER_COMMAND = "app-server";
@@ -1062,7 +1062,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
1062
1062
  return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
1063
1063
  }
1064
1064
  if (args[0] === APP_CARDS_FLAG) {
1065
- const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-GUZ7XMPB.js");
1065
+ const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-OWLU462R.js");
1066
1066
  return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
1067
1067
  }
1068
1068
  if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
@@ -2,7 +2,7 @@ import {
2
2
  DISCONNECT_AGENT_IDS,
3
3
  SETUP_AGENT_CHOICES,
4
4
  isApprovalMode
5
- } from "./chunk-OFJUHEEG.js";
5
+ } from "./chunk-HGCUZQUL.js";
6
6
 
7
7
  // src/cli/mode-request.ts
8
8
  var parseDuration = (value) => {
@@ -3,13 +3,13 @@ import {
3
3
  NpmMissingError,
4
4
  NpmPermissionError,
5
5
  writeFileAtomic
6
- } from "./chunk-Y4I5YX3L.js";
6
+ } from "./chunk-CLE7EVOW.js";
7
7
  import {
8
8
  NPX_LATEST_COMMAND
9
- } from "./chunk-RCDZ2XZ6.js";
9
+ } from "./chunk-35M6YE6T.js";
10
10
  import {
11
11
  readSetupAgentFailures
12
- } from "./chunk-OFJUHEEG.js";
12
+ } from "./chunk-HGCUZQUL.js";
13
13
 
14
14
  // src/setup/config-write.ts
15
15
  var AgentConfigWriteError = class extends Error {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  repoKeyFor
3
- } from "./chunk-6HDYWRCP.js";
3
+ } from "./chunk-7R5ZKOQ4.js";
4
4
  import {
5
5
  cancelQuestion,
6
6
  clientErrorKindOf,
@@ -8,33 +8,33 @@ import {
8
8
  reportClientError,
9
9
  sendNotification,
10
10
  waitForAnswer
11
- } from "./chunk-PYW7VWVZ.js";
11
+ } from "./chunk-BH7XLF5R.js";
12
12
  import {
13
13
  withRetry
14
- } from "./chunk-5F3L3QOO.js";
14
+ } from "./chunk-EKVW5Y23.js";
15
15
  import {
16
16
  getMachineId
17
- } from "./chunk-4ZSQPGAU.js";
17
+ } from "./chunk-J3QUMD2E.js";
18
18
  import {
19
19
  reportedInstallSource
20
- } from "./chunk-YP35CA5L.js";
20
+ } from "./chunk-GXW43S4A.js";
21
21
  import {
22
22
  IDLE_PROMPT_NOTIFICATION,
23
23
  NOTIFICATION_PUSH_TYPES,
24
24
  POSTTOOLUSE_MIRROR_ONLY_TOOLS,
25
25
  canonicalJson,
26
26
  claudeConfigDir
27
- } from "./chunk-TQYSBYYZ.js";
27
+ } from "./chunk-MVAP3NRX.js";
28
28
  import {
29
29
  compareVersion,
30
30
  parseVersion,
31
31
  writeFileAtomic,
32
32
  writeJsonAtomicDurable
33
- } from "./chunk-Y4I5YX3L.js";
33
+ } from "./chunk-CLE7EVOW.js";
34
34
  import {
35
35
  getApiKey,
36
36
  getBaseUrl
37
- } from "./chunk-Q53QJQLY.js";
37
+ } from "./chunk-AFCKBLEG.js";
38
38
  import {
39
39
  ACTION_BODY_MAX,
40
40
  AGENTS,
@@ -59,6 +59,7 @@ import {
59
59
  gateOutputFor,
60
60
  hookCompatibleProfileBySource,
61
61
  isAutoApprove,
62
+ isClaudeWakePrompt,
62
63
  isRecord,
63
64
  isTokenCount,
64
65
  modeStateFromResponse,
@@ -75,7 +76,7 @@ import {
75
76
  toToolLookup,
76
77
  truncateLine,
77
78
  unansweredRefusalReason
78
- } from "./chunk-OFJUHEEG.js";
79
+ } from "./chunk-HGCUZQUL.js";
79
80
 
80
81
  // ../hook-mapping/src/describe.ts
81
82
  import { isAbsolute, relative, resolve } from "path";
@@ -631,7 +632,7 @@ var compactionAction = (hookEvent, trigger) => {
631
632
  };
632
633
  var sessionStartAction = (source) => source === "resume" ? "Session resumed" : "Session started";
633
634
  var sessionEndAction = (reason) => typeof reason === "string" && SESSION_END_ACTIONS[reason] || "Session ended";
634
- var taskTitleFrom = (prompt) => typeof prompt === "string" ? conversationText(prompt).replace(/\s+/g, " ").trim().slice(0, TASK_TITLE_MAX_LENGTH) || void 0 : void 0;
635
+ var taskTitleFrom = (prompt) => typeof prompt === "string" && !isClaudeWakePrompt(prompt) ? conversationText(prompt).replace(/\s+/g, " ").trim().slice(0, TASK_TITLE_MAX_LENGTH) || void 0 : void 0;
635
636
  var asString = (value) => typeof value === "string" && value.length > 0 ? value : void 0;
636
637
  var NOTIFICATION_ACTION_MAX_LENGTH = 200;
637
638
  var STOP_FAILURE_REASON_MAX_LENGTH = 300;
@@ -933,19 +934,25 @@ var readPendingCommand = (sessionId, namespace = "") => {
933
934
  const commands = pruneExpiredCommands(commandDirFor(sessionId, namespace));
934
935
  return commands.find((command) => !command.delivered && !command.failed && !command.attempted) ?? commands[0] ?? null;
935
936
  };
937
+ var writeNewCommandFile = (file, contents) => {
938
+ const descriptor = openSync(file, "wx", 384);
939
+ try {
940
+ writeFileSync(descriptor, contents, "utf-8");
941
+ fsyncSync(descriptor);
942
+ } catch (error) {
943
+ closeSync(descriptor);
944
+ rmSync(file, { force: true });
945
+ throw error;
946
+ }
947
+ closeSync(descriptor);
948
+ };
936
949
  var savePendingCommand = (sessionId, command, namespace = "") => {
937
950
  const dir = commandDirFor(sessionId, namespace);
938
951
  try {
939
952
  mkdirSync(dir, { recursive: true, mode: 448 });
940
953
  pruneExpiredCommandStore();
941
954
  if (readPendingCommandById(sessionId, command.id, namespace)) return false;
942
- writeFileSync(commandFile(sessionId, command.id, namespace), JSON.stringify({ ...command, sessionId }), { encoding: "utf-8", mode: 384, flag: "wx" });
943
- const descriptor = openSync(commandFile(sessionId, command.id, namespace), "r");
944
- try {
945
- fsyncSync(descriptor);
946
- } finally {
947
- closeSync(descriptor);
948
- }
955
+ writeNewCommandFile(commandFile(sessionId, command.id, namespace), JSON.stringify({ ...command, sessionId }));
949
956
  if (process.platform !== "win32") {
950
957
  const directory = openSync(dir, "r");
951
958
  try {
@@ -1339,7 +1346,7 @@ var readLastUserPrompt = (transcriptPath) => {
1339
1346
  }
1340
1347
  if (parsed.type !== "user") continue;
1341
1348
  const text = extractUserText(parsed.message?.content);
1342
- if (text) return text.slice(0, USER_PROMPT_MAX);
1349
+ if (text && !isClaudeWakePrompt(text)) return text.slice(0, USER_PROMPT_MAX);
1343
1350
  }
1344
1351
  return void 0;
1345
1352
  } catch {
@@ -2148,7 +2155,8 @@ var handleUserPrompt = async (input, agent = CLAUDE_CODE_AGENT) => {
2148
2155
  const sessionKey = input.session_id || DEFAULT_SESSION;
2149
2156
  const titlesEnabled = process.env.PUSHARY_TASK_TITLES !== "off";
2150
2157
  const taskTitle = titlesEnabled ? taskTitleFrom(input.prompt) : void 0;
2151
- if (input.prompt) saveLastPrompt(sessionKey, input.prompt);
2158
+ const wakeTurn = isClaudeWakePrompt(input.prompt);
2159
+ if (input.prompt && !wakeTurn) saveLastPrompt(sessionKey, input.prompt);
2152
2160
  const late = await reconcilePendingQuestions(sessionKey, void 0, signal);
2153
2161
  let additionalContext;
2154
2162
  if (late.length > 0 && agent.type === CLAUDE_CODE_AGENT.type) {
@@ -2161,7 +2169,8 @@ var handleUserPrompt = async (input, agent = CLAUDE_CODE_AGENT) => {
2161
2169
  agentType: agent.type,
2162
2170
  agentName: `${agent.label} - ${projectName}`,
2163
2171
  sessionId: input.session_id,
2164
- taskTitle
2172
+ taskTitle,
2173
+ ...wakeTurn ? { driver: PHONE_DRIVER } : {}
2165
2174
  }, { maxAttempts: 1, budgetMs: Math.min(DRAINING_REPORT_BUDGET_MS, Math.max(0, deadline - Date.now())), signal })
2166
2175
  ]);
2167
2176
  if (consumesActivityContext(agent.type)) {
@@ -4,7 +4,7 @@ import {
4
4
  postLiveSession,
5
5
  postLiveSessionUntilAccepted,
6
6
  startLiveSessionHeartbeat
7
- } from "./chunk-AOGM34LL.js";
7
+ } from "./chunk-5HA42EV4.js";
8
8
  import {
9
9
  CommandReceipts,
10
10
  controllerCommandSchema
@@ -14,24 +14,24 @@ import {
14
14
  describeIdleWindow,
15
15
  idleDeadlinePassed,
16
16
  startProcessOwnership
17
- } from "./chunk-CHBK47DU.js";
17
+ } from "./chunk-LXV53WHO.js";
18
18
  import {
19
19
  spawnClaude
20
20
  } from "./chunk-XHKBHWLX.js";
21
21
  import {
22
22
  repoKeyFor
23
- } from "./chunk-6HDYWRCP.js";
23
+ } from "./chunk-7R5ZKOQ4.js";
24
24
  import {
25
25
  isAskUserResponse,
26
26
  isDecisionStopped,
27
27
  isWaitForAnswerResponse,
28
28
  withdrawQuestion,
29
29
  writeDegraded
30
- } from "./chunk-PYW7VWVZ.js";
30
+ } from "./chunk-BH7XLF5R.js";
31
31
  import {
32
32
  callMcpTool,
33
33
  isRetryable
34
- } from "./chunk-5F3L3QOO.js";
34
+ } from "./chunk-EKVW5Y23.js";
35
35
  import {
36
36
  AGENT_QUESTION_DESCRIPTION_MAX,
37
37
  AGENT_QUESTION_HEADER_MAX,
@@ -52,7 +52,7 @@ import {
52
52
  parseCodexQuestions,
53
53
  planElicitationAsk,
54
54
  readElicitationFields
55
- } from "./chunk-OFJUHEEG.js";
55
+ } from "./chunk-HGCUZQUL.js";
56
56
 
57
57
  // src/codex-question-owner.ts
58
58
  import { createHash } from "crypto";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  readJsonSafe,
3
3
  writeJsonAtomic
4
- } from "./chunk-Y4I5YX3L.js";
4
+ } from "./chunk-CLE7EVOW.js";
5
5
  import {
6
6
  configFilePath
7
- } from "./chunk-Q53QJQLY.js";
7
+ } from "./chunk-AFCKBLEG.js";
8
8
  import {
9
9
  readSetupOutcomeProperties
10
- } from "./chunk-OFJUHEEG.js";
10
+ } from "./chunk-HGCUZQUL.js";
11
11
 
12
12
  // src/diagnostics/service-runtime.ts
13
13
  var unescapeXml = (value) => value.replaceAll("&quot;", '"').replaceAll("&apos;", "'").replaceAll("&lt;", "<").replaceAll("&gt;", ">").replaceAll("&amp;", "&");
@@ -7,7 +7,7 @@ import {
7
7
  recordSealerFor,
8
8
  uploadTranscriptRecords,
9
9
  wrapSessionKey
10
- } from "./chunk-Z5VZWDGL.js";
10
+ } from "./chunk-XU2FL4B6.js";
11
11
 
12
12
  // src/live-session.ts
13
13
  var MAX_TRANSCRIPT_QUEUE = 100;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_SESSION
3
- } from "./chunk-ZM3ELQPE.js";
3
+ } from "./chunk-3K67QTMR.js";
4
4
 
5
5
  // src/answer.ts
6
6
  var isDeferAnswer = (value) => value === "defer";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  guardBinary
3
- } from "./chunk-TQYSBYYZ.js";
3
+ } from "./chunk-MVAP3NRX.js";
4
4
 
5
5
  // src/bell/install.ts
6
6
  import { join } from "path";
@@ -2,31 +2,31 @@ import {
2
2
  SIGNED_OUT_ON_MAC_MESSAGE,
3
3
  describeSignedOutKey,
4
4
  readSignedOutDiagnosis
5
- } from "./chunk-YOPFR22Y.js";
5
+ } from "./chunk-CH3CCVH4.js";
6
6
  import {
7
7
  APPROVAL_RULES_PATH
8
- } from "./chunk-DLOUKVLM.js";
8
+ } from "./chunk-ZU7XS6PN.js";
9
9
  import {
10
10
  createIo
11
11
  } from "./chunk-FO3MDD26.js";
12
12
  import {
13
13
  readKeySource
14
- } from "./chunk-NH7C6QBI.js";
14
+ } from "./chunk-UGP4FYMV.js";
15
15
  import {
16
16
  absoluteUrl,
17
17
  checkApiKey,
18
18
  describeKeyCheck,
19
19
  keyCheckFromResponse
20
- } from "./chunk-NFK5ZCLK.js";
20
+ } from "./chunk-AFNLCEHM.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-Q53QJQLY.js";
23
+ } from "./chunk-AFCKBLEG.js";
24
24
  import {
25
25
  EXIT
26
26
  } from "./chunk-KZERVKTD.js";
27
27
  import {
28
28
  KEY_SCOPE
29
- } from "./chunk-OFJUHEEG.js";
29
+ } from "./chunk-HGCUZQUL.js";
30
30
 
31
31
  // src/cli/report-key.ts
32
32
  var { dim, yellow } = createIo();
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  openCodeConfigDirFrom
3
- } from "./chunk-SV2C7PZV.js";
3
+ } from "./chunk-V3EN7LWU.js";
4
4
  import {
5
5
  nativeClaudeInstallPath
6
- } from "./chunk-DQCQQ2PY.js";
6
+ } from "./chunk-RQOJ23I4.js";
7
7
  import {
8
8
  grokHome
9
- } from "./chunk-TDLK3ZU2.js";
9
+ } from "./chunk-NFRBLMM2.js";
10
10
  import {
11
11
  claudeConfigDir,
12
12
  clineDataDirectory,
13
13
  codexHomeFrom
14
- } from "./chunk-TQYSBYYZ.js";
14
+ } from "./chunk-MVAP3NRX.js";
15
15
  import {
16
16
  HOOK_COMPATIBLE_PROFILES
17
- } from "./chunk-OFJUHEEG.js";
17
+ } from "./chunk-HGCUZQUL.js";
18
18
 
19
19
  // src/vscode-config.ts
20
20
  import { homedir } from "os";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  CODEX_HOOK_STATUS
3
- } from "./chunk-5WU6534E.js";
3
+ } from "./chunk-QZ5KIX6U.js";
4
4
  import {
5
5
  retryAgentCommand
6
- } from "./chunk-VIIQLZJS.js";
6
+ } from "./chunk-3D3L4ULT.js";
7
7
  import {
8
8
  NPX_LATEST_COMMAND
9
- } from "./chunk-RCDZ2XZ6.js";
9
+ } from "./chunk-35M6YE6T.js";
10
10
 
11
11
  // src/setup/codex-trust.ts
12
12
  var CODEX_TRUST_TELEMETRY = {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-TQYSBYYZ.js";
3
+ } from "./chunk-MVAP3NRX.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  writeJsonAtomic
8
- } from "./chunk-Y4I5YX3L.js";
8
+ } from "./chunk-CLE7EVOW.js";
9
9
 
10
10
  // src/upgrade-lock.ts
11
11
  import { fork } from "child_process";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  localRepoKey,
3
3
  normalizeRepoRemote
4
- } from "./chunk-OFJUHEEG.js";
4
+ } from "./chunk-HGCUZQUL.js";
5
5
 
6
6
  // src/repo.ts
7
7
  import { existsSync, readFileSync, statSync } from "fs";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-3EGEA4KH.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-Q53QJQLY.js";
12
+ } from "./chunk-AFCKBLEG.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
  NPX_LATEST_COMMAND
3
- } from "./chunk-RCDZ2XZ6.js";
3
+ } from "./chunk-35M6YE6T.js";
4
4
 
5
5
  // src/config.ts
6
6
  import { readFileSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-XCBKGQ6N.js";
3
+ } from "./chunk-Q7J77QL2.js";
4
4
  import {
5
5
  getBaseUrl
6
- } from "./chunk-Q53QJQLY.js";
6
+ } from "./chunk-AFCKBLEG.js";
7
7
  import {
8
8
  NetworkError
9
9
  } from "./chunk-PPY5N2E6.js";
@@ -13,7 +13,7 @@ import {
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-OFJUHEEG.js";
16
+ } from "./chunk-HGCUZQUL.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;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  announceSubscriptionRequired,
3
3
  isDeferAnswer
4
- } from "./chunk-74NZ3CJQ.js";
4
+ } from "./chunk-5HMSHKZT.js";
5
5
  import {
6
6
  AUTO_DECISION_WINDOW_MS,
7
7
  DEFAULT_SESSION,
@@ -10,19 +10,19 @@ import {
10
10
  permissionDeniedAction,
11
11
  releaseThrottle,
12
12
  reportEvent
13
- } from "./chunk-ZM3ELQPE.js";
13
+ } from "./chunk-3K67QTMR.js";
14
14
  import {
15
15
  askUser,
16
16
  isDecisionStopped,
17
17
  isQuestionLimitRefusal,
18
18
  waitForQuestion
19
- } from "./chunk-PYW7VWVZ.js";
19
+ } from "./chunk-BH7XLF5R.js";
20
20
  import {
21
21
  SubscriptionRequiredError
22
- } from "./chunk-5F3L3QOO.js";
22
+ } from "./chunk-EKVW5Y23.js";
23
23
  import {
24
24
  getMachineId
25
- } from "./chunk-4ZSQPGAU.js";
25
+ } from "./chunk-J3QUMD2E.js";
26
26
  import {
27
27
  ASK_CONTEXT_MAX,
28
28
  agentQuestionContext,
@@ -34,7 +34,7 @@ import {
34
34
  questionsShownAsASet,
35
35
  shouldDeferToNativeMode,
36
36
  wireVerdictFor
37
- } from "./chunk-OFJUHEEG.js";
37
+ } from "./chunk-HGCUZQUL.js";
38
38
 
39
39
  // src/machine-decision-audit.ts
40
40
  import { basename } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-NH7C6QBI.js";
3
+ } from "./chunk-UGP4FYMV.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -6,18 +6,18 @@ import {
6
6
  McpToolError,
7
7
  SubscriptionRequiredError,
8
8
  callMcpTool
9
- } from "./chunk-5F3L3QOO.js";
9
+ } from "./chunk-EKVW5Y23.js";
10
10
  import {
11
11
  installNetworkDefaults,
12
12
  isNetworkFailure
13
- } from "./chunk-XCBKGQ6N.js";
13
+ } from "./chunk-Q7J77QL2.js";
14
14
  import {
15
15
  clientReportClaims
16
- } from "./chunk-TQYSBYYZ.js";
16
+ } from "./chunk-MVAP3NRX.js";
17
17
  import {
18
18
  getApiKey,
19
19
  getBaseUrl
20
- } from "./chunk-Q53QJQLY.js";
20
+ } from "./chunk-AFCKBLEG.js";
21
21
  import {
22
22
  ASK_AGENT_NAME_MAX,
23
23
  CLIENT_REPORT_PATH,
@@ -26,7 +26,7 @@ import {
26
26
  TOOL_FAILURE_CODES,
27
27
  degradedLine,
28
28
  truncateLine
29
- } from "./chunk-OFJUHEEG.js";
29
+ } from "./chunk-HGCUZQUL.js";
30
30
 
31
31
  // src/api.ts
32
32
  import { randomUUID } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeJsonAtomicDurable
3
- } from "./chunk-Y4I5YX3L.js";
3
+ } from "./chunk-CLE7EVOW.js";
4
4
 
5
5
  // src/transcript-recipient-pin.ts
6
6
  import { existsSync, mkdirSync, readFileSync, rmSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AGENT_CHOICES
3
- } from "./chunk-4DOJLAGR.js";
3
+ } from "./chunk-ZJGIJDWP.js";
4
4
  import {
5
5
  BELL_HOOK_BINARY
6
- } from "./chunk-42Y7IZSV.js";
6
+ } from "./chunk-5MKPJ3WR.js";
7
7
  import {
8
8
  CLAUDE_HOOK_EVENTS,
9
9
  CODEX_HOOK_EVENTS,
@@ -12,13 +12,13 @@ import {
12
12
  holdBudgetOf,
13
13
  isProtectedByScope,
14
14
  registerHookEntry
15
- } from "./chunk-TQYSBYYZ.js";
15
+ } from "./chunk-MVAP3NRX.js";
16
16
  import {
17
17
  CURSOR_GATE_EVENTS,
18
18
  HOOK_BUDGETS,
19
19
  HOOK_LOCATOR_BINARY,
20
20
  hookCommandHoldBudget
21
- } from "./chunk-OFJUHEEG.js";
21
+ } from "./chunk-HGCUZQUL.js";
22
22
 
23
23
  // src/diagnostics/bridge.ts
24
24
  import { execFileSync } from "child_process";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  ensureCodexTrustsPusharyHooks
3
- } from "./chunk-5WU6534E.js";
3
+ } from "./chunk-QZ5KIX6U.js";
4
4
  import {
5
5
  hermesReceiptPaths,
6
6
  hermesSetupPredatesThePluginFolder,
7
7
  installHermesPlugin,
8
8
  refreshHermesPluginFiles,
9
9
  shippedHermesPlugin
10
- } from "./chunk-WHTWHHE3.js";
10
+ } from "./chunk-XKJYTP3G.js";
11
11
  import {
12
12
  fxIgnoresInstructionsFile,
13
13
  fxInstructionsBody,
@@ -16,7 +16,7 @@ import {
16
16
  macAppFxBridge,
17
17
  refreshClineKey,
18
18
  switchFxHttpEntryToBridge
19
- } from "./chunk-74R4IZ7N.js";
19
+ } from "./chunk-IEJOZQ7N.js";
20
20
  import {
21
21
  OPENCODE_HOOK_BINARY,
22
22
  agentHookOwner,
@@ -28,16 +28,16 @@ import {
28
28
  openCodePluginDir,
29
29
  openCodeWired,
30
30
  withOpenCodeAskRules
31
- } from "./chunk-SV2C7PZV.js";
31
+ } from "./chunk-V3EN7LWU.js";
32
32
  import {
33
33
  detectClaudeVersion
34
- } from "./chunk-VYELSTZK.js";
34
+ } from "./chunk-WA4S6YAT.js";
35
35
  import {
36
36
  addCompatibleHooks,
37
37
  compatibleConfigFile,
38
38
  compatibleInstructionsFile,
39
39
  hasCompatibleHooks
40
- } from "./chunk-TDLK3ZU2.js";
40
+ } from "./chunk-NFRBLMM2.js";
41
41
  import {
42
42
  GEMINI_HOOK_BINARY,
43
43
  addGeminiHooks,
@@ -49,7 +49,7 @@ import {
49
49
  geminiWired,
50
50
  hasGeminiHooks,
51
51
  planHooks
52
- } from "./chunk-3XH4YLCN.js";
52
+ } from "./chunk-C7BK5C6K.js";
53
53
  import {
54
54
  CLAUDE_HOOK_BINARY,
55
55
  CLAUDE_HOOK_EVENTS,
@@ -94,7 +94,7 @@ import {
94
94
  renderAgentInstructions,
95
95
  supportedClaudeEvents,
96
96
  vscodePluginMcp
97
- } from "./chunk-TQYSBYYZ.js";
97
+ } from "./chunk-MVAP3NRX.js";
98
98
  import {
99
99
  formatVersion,
100
100
  readJsonSafe,
@@ -102,12 +102,12 @@ import {
102
102
  resolveGlobalBinary,
103
103
  writeFileAtomic,
104
104
  writeJsonAtomic
105
- } from "./chunk-Y4I5YX3L.js";
105
+ } from "./chunk-CLE7EVOW.js";
106
106
  import {
107
107
  HOOK_COMPATIBLE_PROFILES,
108
108
  isCompatibleAgentType,
109
109
  isRecord
110
- } from "./chunk-OFJUHEEG.js";
110
+ } from "./chunk-HGCUZQUL.js";
111
111
 
112
112
  // src/reapply.ts
113
113
  import { dirname, join } from "path";
@@ -4,10 +4,10 @@ import {
4
4
  keyPrefix,
5
5
  readConfigFileKey,
6
6
  readMacAppKeyPrefix
7
- } from "./chunk-NH7C6QBI.js";
7
+ } from "./chunk-UGP4FYMV.js";
8
8
  import {
9
9
  NPX_LATEST_COMMAND
10
- } from "./chunk-RCDZ2XZ6.js";
10
+ } from "./chunk-35M6YE6T.js";
11
11
 
12
12
  // src/key-signed-out.ts
13
13
  var VERDICT_BY_CHECK = {