@pushary/agent-hooks 1.9.171 → 1.9.174

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 (139) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/{api-WOLCBFMV.js → api-MNYX7TLY.js} +11 -11
  3. package/dist/bin/pushary-audit.js +3 -3
  4. package/dist/bin/pushary-bell-hook.js +28 -28
  5. package/dist/bin/pushary-bell.js +12 -11
  6. package/dist/bin/pushary-calls.js +15 -15
  7. package/dist/bin/pushary-claude.js +32 -34
  8. package/dist/bin/pushary-clean.js +38 -38
  9. package/dist/bin/pushary-codex-bridge.js +23 -23
  10. package/dist/bin/pushary-codex-hook.js +44 -46
  11. package/dist/bin/pushary-codex-session.js +8 -8
  12. package/dist/bin/pushary-codex.js +19 -18
  13. package/dist/bin/pushary-connect.js +34 -34
  14. package/dist/bin/pushary-cowork.js +5 -5
  15. package/dist/bin/pushary-daemon.js +53 -52
  16. package/dist/bin/pushary-disconnect.js +29 -29
  17. package/dist/bin/pushary-doctor.js +46 -46
  18. package/dist/bin/pushary-elicitation-hook.js +31 -30
  19. package/dist/bin/pushary-gemini-bridge.js +21 -19
  20. package/dist/bin/pushary-gemini-hook.js +38 -40
  21. package/dist/bin/pushary-hook.js +36 -36
  22. package/dist/bin/pushary-login.js +22 -22
  23. package/dist/bin/pushary-logout.js +29 -29
  24. package/dist/bin/pushary-mcp.js +12 -12
  25. package/dist/bin/pushary-mode.js +16 -16
  26. package/dist/bin/pushary-notification-hook.js +27 -27
  27. package/dist/bin/pushary-opencode-hook.js +44 -53
  28. package/dist/bin/pushary-permission-denied-hook.js +36 -36
  29. package/dist/bin/pushary-permission-hook.js +36 -36
  30. package/dist/bin/pushary-post-hook.js +28 -28
  31. package/dist/bin/pushary-prompt-hook.js +27 -27
  32. package/dist/bin/pushary-session-end-hook.js +27 -27
  33. package/dist/bin/pushary-session-start-hook.js +38 -38
  34. package/dist/bin/pushary-sessions.js +14 -14
  35. package/dist/bin/pushary-setup.js +61 -59
  36. package/dist/bin/pushary-stats.js +5 -5
  37. package/dist/bin/pushary-status.js +35 -35
  38. package/dist/bin/pushary-stop-hook.js +27 -27
  39. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  40. package/dist/bin/pushary-suggestions.js +16 -16
  41. package/dist/bin/pushary-transcript-register.js +17 -17
  42. package/dist/bin/pushary-transcripts.js +25 -25
  43. package/dist/bin/pushary-upgrade.js +43 -43
  44. package/dist/bin/pushary-wait.js +16 -16
  45. package/dist/bin/pushary.js +7 -7
  46. package/dist/{chunk-EQQOEDQZ.js → chunk-2EHDZOJA.js} +13 -13
  47. package/dist/{chunk-G7U5TFPY.js → chunk-2IEU6RX5.js} +1 -1
  48. package/dist/{chunk-JNVUOEKM.js → chunk-3FOW4K2L.js} +4 -4
  49. package/dist/{chunk-UCND4JHN.js → chunk-3L5DXDPK.js} +1 -1
  50. package/dist/{chunk-XHUR62AQ.js → chunk-4IOCYW6O.js} +3 -3
  51. package/dist/{chunk-CUWHBFBB.js → chunk-4NXEOPXZ.js} +1 -1
  52. package/dist/{chunk-3GIVPZIS.js → chunk-57C45LJT.js} +2 -2
  53. package/dist/{chunk-EGDFXMFK.js → chunk-5JCKVJC6.js} +5 -5
  54. package/dist/{chunk-GVIKF73A.js → chunk-5LIGHRBH.js} +1 -1
  55. package/dist/{chunk-FJF2D32S.js → chunk-6355EUTT.js} +3 -3
  56. package/dist/{chunk-HRUKMGRH.js → chunk-6BZCNKCY.js} +3 -3
  57. package/dist/{chunk-NJNK3ZUC.js → chunk-6HYQSAMW.js} +2 -2
  58. package/dist/{chunk-UHKYKZQ5.js → chunk-76T3UMRC.js} +31 -32
  59. package/dist/{chunk-5EU7V5CT.js → chunk-7VG4JO77.js} +4 -4
  60. package/dist/{chunk-J2CRP5GN.js → chunk-7XALAS43.js} +2 -2
  61. package/dist/{chunk-W4NCWOVL.js → chunk-7YVSQ342.js} +1 -1
  62. package/dist/{chunk-DCYRV2BJ.js → chunk-A3YA4EIY.js} +2 -2
  63. package/dist/{chunk-ZHO263F6.js → chunk-BHBHY35A.js} +4 -4
  64. package/dist/{chunk-JE6NVEOE.js → chunk-C7SKKHMD.js} +7 -5
  65. package/dist/{chunk-WKRKTQLA.js → chunk-CDUTYRXO.js} +4 -4
  66. package/dist/{chunk-DXUPOVJP.js → chunk-CPV25VW5.js} +1 -1
  67. package/dist/{chunk-5HT352IV.js → chunk-CTLI2HJE.js} +5 -5
  68. package/dist/{chunk-CJODSIXH.js → chunk-DJS7W4SC.js} +6 -6
  69. package/dist/{chunk-2TRYSF64.js → chunk-DNJKQHK2.js} +20 -1
  70. package/dist/{chunk-E7ATFUXV.js → chunk-DPHYIJNF.js} +3 -3
  71. package/dist/{chunk-YG3KWXGC.js → chunk-E2WABTIY.js} +7 -7
  72. package/dist/{chunk-KNFZORNH.js → chunk-ET2BWLQX.js} +3 -3
  73. package/dist/{chunk-7ODDR6FA.js → chunk-FPF7ZSH5.js} +2 -2
  74. package/dist/{chunk-U2XCKXBH.js → chunk-FS7WOHFO.js} +5 -5
  75. package/dist/{chunk-D3TNLVVL.js → chunk-GGNKMBCN.js} +4 -4
  76. package/dist/{chunk-SQCW64C2.js → chunk-GPHESUOZ.js} +4 -4
  77. package/dist/{chunk-LABBFTYJ.js → chunk-GTCNACQ2.js} +5 -5
  78. package/dist/{chunk-I72TVBOG.js → chunk-H3MY3EQP.js} +4 -4
  79. package/dist/{chunk-FCNYCY6G.js → chunk-HGVGOGVD.js} +3 -3
  80. package/dist/{chunk-LEAACRFN.js → chunk-HLK3ZELO.js} +2 -2
  81. package/dist/{chunk-CLT4J5N5.js → chunk-HUJWZIQ2.js} +2 -2
  82. package/dist/{chunk-SM65Z6CM.js → chunk-HZGSGLK4.js} +6 -6
  83. package/dist/{chunk-7AENNOGX.js → chunk-IP4NJN6G.js} +1 -1
  84. package/dist/{chunk-Y54VMOE5.js → chunk-IQNM745W.js} +2 -2
  85. package/dist/{chunk-GZZ7XGL5.js → chunk-JG2ZVO5L.js} +1 -1
  86. package/dist/{chunk-7L3MVK44.js → chunk-JXOVA3JW.js} +5 -5
  87. package/dist/{chunk-NWHMER6L.js → chunk-K5NBHOE6.js} +2 -2
  88. package/dist/{chunk-3I3RUJRD.js → chunk-LH5JTAAH.js} +2 -2
  89. package/dist/{chunk-IHNII3GT.js → chunk-LIVVVKIZ.js} +3 -3
  90. package/dist/{chunk-AVN4A4A6.js → chunk-M4KQPSMS.js} +1 -1
  91. package/dist/{chunk-DRRFOQGF.js → chunk-MF6FSDM4.js} +2 -2
  92. package/dist/{chunk-SSKNRWWS.js → chunk-N73CKAC6.js} +1 -1
  93. package/dist/{chunk-MV7NJYJX.js → chunk-O4AAXXXP.js} +3 -3
  94. package/dist/{chunk-IYTTLDB5.js → chunk-OBNVYNPQ.js} +3 -3
  95. package/dist/{chunk-CFZUESTS.js → chunk-OFKKNHYJ.js} +1 -1
  96. package/dist/{chunk-EGPOBJZG.js → chunk-OLKAGHOO.js} +1 -1
  97. package/dist/{chunk-D6OCHPLT.js → chunk-PAYK5BD7.js} +2 -2
  98. package/dist/{chunk-WI2WYKSE.js → chunk-PDIN6FE5.js} +1 -1
  99. package/dist/{chunk-KQXKDF4N.js → chunk-PWJ76P2L.js} +6 -6
  100. package/dist/{chunk-SJDYK47V.js → chunk-PZNVSYIY.js} +5 -5
  101. package/dist/{chunk-KMKU2INV.js → chunk-QCZMBOMF.js} +1 -1
  102. package/dist/{chunk-W46HI6T3.js → chunk-R3EIRYON.js} +5 -5
  103. package/dist/{chunk-BKVQKWLY.js → chunk-R4RL4UDT.js} +5 -5
  104. package/dist/{chunk-FP4W2EI6.js → chunk-RIHIXQAL.js} +11 -11
  105. package/dist/{chunk-FIJPDZIR.js → chunk-RT6FAMIF.js} +26 -25
  106. package/dist/{chunk-IV7WDCKS.js → chunk-S3X6WLW5.js} +1 -1
  107. package/dist/{chunk-3PQWVDW5.js → chunk-SHLAHE46.js} +9 -9
  108. package/dist/{chunk-5GUZJIEL.js → chunk-SNY4ABHS.js} +4 -4
  109. package/dist/{chunk-JUE347Z7.js → chunk-TRXYUOWW.js} +6 -6
  110. package/dist/{chunk-A2DVMIX4.js → chunk-TU5DTA2V.js} +1 -1
  111. package/dist/{chunk-HBJLJHZF.js → chunk-UJ6ZJNHK.js} +2 -2
  112. package/dist/{chunk-L77OIGRB.js → chunk-US4LUIFU.js} +20 -0
  113. package/dist/{chunk-ZLMWP6X4.js → chunk-VCWHZDP3.js} +2 -2
  114. package/dist/{chunk-AUF4BMGA.js → chunk-VH2DDTBE.js} +10 -10
  115. package/dist/{chunk-2SMEEXDR.js → chunk-VLEKL3PF.js} +1 -1
  116. package/dist/{chunk-RPMVO2RJ.js → chunk-WAZIEUIG.js} +7 -5
  117. package/dist/{chunk-V762IZHX.js → chunk-WWVVLMPJ.js} +5 -3
  118. package/dist/{chunk-FFJX6YOQ.js → chunk-X5LTD4VA.js} +1 -1
  119. package/dist/{chunk-2XEZJK7G.js → chunk-XZOYXQ6J.js} +5 -5
  120. package/dist/{chunk-7XSZK4DH.js → chunk-YDYKKSFU.js} +3 -3
  121. package/dist/{chunk-UB5G7ZZN.js → chunk-YE7WPP7M.js} +1 -1
  122. package/dist/{chunk-MJMRJ5ZF.js → chunk-YFOR2JQQ.js} +1 -1
  123. package/dist/{chunk-PQEX64YL.js → chunk-YXLWKFKC.js} +6 -6
  124. package/dist/{chunk-2RN7D6VI.js → chunk-Z6YRFNN3.js} +4 -4
  125. package/dist/{chunk-GTB4MBMU.js → chunk-ZLXN26UD.js} +6 -6
  126. package/dist/{codex-app-cards-switch-TRZKDOVK.js → codex-app-cards-switch-MJA47AZY.js} +11 -11
  127. package/dist/{codex-card-routing-QGOX4RNI.js → codex-card-routing-2MDDCMAO.js} +2 -2
  128. package/dist/{codex-desktop-launch-AI5J526F.js → codex-desktop-launch-7IVPOMSK.js} +1 -1
  129. package/dist/{codex-session-launch-UWD7U2LW.js → codex-session-launch-U6JUH6X6.js} +20 -20
  130. package/dist/{config-QIHLQCEV.js → config-S2OVEI6F.js} +3 -3
  131. package/dist/{global-upgrade-4K5SGI7Q.js → global-upgrade-XGDWDFQN.js} +9 -9
  132. package/dist/{identity-MRXHTKAC.js → identity-7LLNHIP3.js} +4 -4
  133. package/dist/{live-capabilities-PO5JOGZJ.js → live-capabilities-CI46M4XO.js} +4 -4
  134. package/dist/{paths-AXIBD5XG.js → paths-FVQYVHLH.js} +3 -3
  135. package/dist/{reapply-7FJNSGUM.js → reapply-M4DKHUZX.js} +31 -31
  136. package/dist/src/index.js +35 -35
  137. package/dist/{upgrade-lock-G3RQPHYM.js → upgrade-lock-DTWLFPH2.js} +4 -4
  138. package/dist/{usage-GDUDYZSV.js → usage-IHNVIPGZ.js} +3 -3
  139. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ensureCodexTrustsPusharyHooks
3
- } from "./chunk-DCYRV2BJ.js";
3
+ } from "./chunk-A3YA4EIY.js";
4
4
  import {
5
5
  hermesReceiptPaths,
6
6
  hermesSetupPredatesThePluginFolder,
@@ -9,7 +9,7 @@ import {
9
9
  refreshHermesPluginFiles,
10
10
  refreshOpenClawPlugin,
11
11
  shippedHermesPlugin
12
- } from "./chunk-SQCW64C2.js";
12
+ } from "./chunk-GPHESUOZ.js";
13
13
  import {
14
14
  fxIgnoresInstructionsFile,
15
15
  fxInstructionsBody,
@@ -18,7 +18,7 @@ import {
18
18
  macAppFxBridge,
19
19
  refreshClineKey,
20
20
  switchFxHttpEntryToBridge
21
- } from "./chunk-SJDYK47V.js";
21
+ } from "./chunk-PZNVSYIY.js";
22
22
  import {
23
23
  OPENCODE_HOOK_BINARY,
24
24
  agentHookOwner,
@@ -31,16 +31,16 @@ import {
31
31
  openCodePluginDir,
32
32
  openCodeWired,
33
33
  withOpenCodeAskRules
34
- } from "./chunk-KQXKDF4N.js";
34
+ } from "./chunk-PWJ76P2L.js";
35
35
  import {
36
36
  detectClaudeVersion
37
- } from "./chunk-7ODDR6FA.js";
37
+ } from "./chunk-FPF7ZSH5.js";
38
38
  import {
39
39
  addCompatibleHooks,
40
40
  compatibleConfigFile,
41
41
  compatibleInstructionsFile,
42
42
  hasCompatibleHooks
43
- } from "./chunk-W46HI6T3.js";
43
+ } from "./chunk-R3EIRYON.js";
44
44
  import {
45
45
  GEMINI_HOOK_BINARY,
46
46
  addGeminiHooks,
@@ -52,10 +52,10 @@ import {
52
52
  geminiWired,
53
53
  hasGeminiHooks,
54
54
  planHooks
55
- } from "./chunk-5EU7V5CT.js";
55
+ } from "./chunk-7VG4JO77.js";
56
56
  import {
57
57
  KEY_FILE_MODE
58
- } from "./chunk-7XSZK4DH.js";
58
+ } from "./chunk-YDYKKSFU.js";
59
59
  import {
60
60
  CLAUDE_CODE_PUSHARY_PERMISSION_RULES,
61
61
  CLAUDE_HOOK_BINARY,
@@ -102,13 +102,13 @@ import {
102
102
  renderAgentInstructions,
103
103
  supportedClaudeEvents,
104
104
  vscodePluginMcp
105
- } from "./chunk-DRRFOQGF.js";
105
+ } from "./chunk-MF6FSDM4.js";
106
106
  import {
107
107
  formatVersion,
108
108
  hookCommandsUseBareNames,
109
109
  resolveGlobalBinDir,
110
110
  resolveGlobalBinary
111
- } from "./chunk-D3TNLVVL.js";
111
+ } from "./chunk-GGNKMBCN.js";
112
112
  import {
113
113
  readJsonSafe,
114
114
  writeFileAtomic,
@@ -118,7 +118,7 @@ import {
118
118
  HOOK_COMPATIBLE_PROFILES,
119
119
  isCompatibleAgentType,
120
120
  isRecord
121
- } from "./chunk-L77OIGRB.js";
121
+ } from "./chunk-US4LUIFU.js";
122
122
 
123
123
  // src/reapply.ts
124
124
  import { dirname, join } from "path";
@@ -27,11 +27,7 @@ import {
27
27
  toolResultErrorText,
28
28
  transcriptTokensIn,
29
29
  transcriptUsageRequest
30
- } from "./chunk-CFZUESTS.js";
31
- import {
32
- branchFor,
33
- repoKeyFor
34
- } from "./chunk-2TRYSF64.js";
30
+ } from "./chunk-OFKKNHYJ.js";
35
31
  import {
36
32
  cancelQuestion,
37
33
  clientErrorKindOf,
@@ -39,39 +35,44 @@ import {
39
35
  reportClientError,
40
36
  sendNotification,
41
37
  waitForAnswer
42
- } from "./chunk-PQEX64YL.js";
38
+ } from "./chunk-YXLWKFKC.js";
43
39
  import {
44
40
  RETRY_ACK,
45
41
  readCommandAck,
46
42
  refusedReceiptMessage
47
- } from "./chunk-GVIKF73A.js";
43
+ } from "./chunk-5LIGHRBH.js";
48
44
  import {
49
45
  isRetryable,
50
46
  withRetry
51
- } from "./chunk-EGDFXMFK.js";
47
+ } from "./chunk-5JCKVJC6.js";
52
48
  import {
53
49
  fetchAsCredential
54
- } from "./chunk-SSKNRWWS.js";
50
+ } from "./chunk-N73CKAC6.js";
51
+ import {
52
+ branchFor,
53
+ projectNameFor,
54
+ repoKeyFor
55
+ } from "./chunk-DNJKQHK2.js";
55
56
  import {
56
57
  getMachineId
57
- } from "./chunk-MJMRJ5ZF.js";
58
+ } from "./chunk-YFOR2JQQ.js";
58
59
  import {
59
60
  reportedInstallSource
60
- } from "./chunk-3I3RUJRD.js";
61
+ } from "./chunk-LH5JTAAH.js";
61
62
  import {
62
63
  IDLE_PROMPT_NOTIFICATION,
63
64
  NOTIFICATION_PUSH_TYPES,
64
65
  POSTTOOLUSE_MIRROR_ONLY_TOOLS,
65
66
  claudeConfigDir
66
- } from "./chunk-DRRFOQGF.js";
67
+ } from "./chunk-MF6FSDM4.js";
67
68
  import {
68
69
  compareVersion,
69
70
  parseVersion
70
- } from "./chunk-D3TNLVVL.js";
71
+ } from "./chunk-GGNKMBCN.js";
71
72
  import {
72
73
  getApiKey,
73
74
  getBaseUrl
74
- } from "./chunk-A2DVMIX4.js";
75
+ } from "./chunk-TU5DTA2V.js";
75
76
  import {
76
77
  writeFileAtomic,
77
78
  writeJsonAtomicDurable
@@ -102,7 +103,7 @@ import {
102
103
  resolveAutoResolveOrigin,
103
104
  resolvePolicy,
104
105
  unansweredRefusalReason
105
- } from "./chunk-L77OIGRB.js";
106
+ } from "./chunk-US4LUIFU.js";
106
107
 
107
108
  // src/pending.ts
108
109
  import { join } from "path";
@@ -1240,7 +1241,7 @@ var takeGateOutcome = (toolUseId) => {
1240
1241
  };
1241
1242
 
1242
1243
  // src/events.ts
1243
- import { basename, join as join10 } from "path";
1244
+ import { join as join10 } from "path";
1244
1245
  import { existsSync as existsSync5, mkdirSync as mkdirSync7, readFileSync as readFileSync8, statSync as statSync7, writeFileSync as writeFileSync8 } from "fs";
1245
1246
  import { tmpdir as tmpdir9 } from "os";
1246
1247
  var INTENT_DIR = join10(tmpdir9(), "pushary-intent");
@@ -1565,7 +1566,7 @@ var handlePostToolUse = async (input, agent = CLAUDE_CODE_AGENT) => {
1565
1566
  const deadline = Date.now() + HOOK_BUDGET_MS;
1566
1567
  const signal = AbortSignal.timeout(HOOK_BUDGET_MS);
1567
1568
  try {
1568
- const projectName = basename(input.cwd ?? process.cwd());
1569
+ const projectName = projectNameFor(input.cwd);
1569
1570
  const action = describeToolCall(input.tool_name, input.tool_input, "event");
1570
1571
  const lookup = toPolicyLookup(input.tool_name, input.tool_input);
1571
1572
  const toolResult = input.tool_response ?? input.tool_result;
@@ -1635,7 +1636,7 @@ var handleUserPrompt = async (input, agent = CLAUDE_CODE_AGENT) => {
1635
1636
  const deadline = Date.now() + HOOK_BUDGET_MS;
1636
1637
  const signal = AbortSignal.timeout(HOOK_BUDGET_MS);
1637
1638
  try {
1638
- const projectName = basename(input.cwd ?? process.cwd());
1639
+ const projectName = projectNameFor(input.cwd);
1639
1640
  const sessionKey = input.session_id || DEFAULT_SESSION;
1640
1641
  const titlesEnabled = process.env.PUSHARY_TASK_TITLES !== "off";
1641
1642
  const taskTitle = titlesEnabled ? taskTitleFrom(input.prompt) : void 0;
@@ -1675,7 +1676,7 @@ var handleStop = async (input, agent = CLAUDE_CODE_AGENT) => {
1675
1676
  const deadline = Date.now() + HOOK_BUDGET_MS;
1676
1677
  const signal = AbortSignal.timeout(HOOK_BUDGET_MS);
1677
1678
  try {
1678
- const projectName = basename(input.cwd ?? process.cwd());
1679
+ const projectName = projectNameFor(input.cwd);
1679
1680
  const sessionKey = input.session_id || DEFAULT_SESSION;
1680
1681
  noteBackgroundWork(sessionKey, hasRunningBackgroundTasks(input.background_tasks));
1681
1682
  const late = await reconcilePendingQuestions(sessionKey, void 0, signal);
@@ -1717,7 +1718,7 @@ var isSubagentStop = (input) => input.hook_event_name === "SubagentStop" || type
1717
1718
  var SUBAGENT_STOP_REPORT_TIMEOUT_MS = 4e3;
1718
1719
  var handleSubagentStop = async (input, agent = CLAUDE_CODE_AGENT) => {
1719
1720
  try {
1720
- const projectName = basename(input.cwd ?? process.cwd());
1721
+ const projectName = projectNameFor(input.cwd);
1721
1722
  await reportEvent({
1722
1723
  event: "session_end",
1723
1724
  agentType: agent.type,
@@ -1736,7 +1737,7 @@ var isCompactionEvent = (hookEventName) => hookEventName === "PreCompact" || hoo
1736
1737
  var COMPACTION_REPORT_TIMEOUT_MS = 4e3;
1737
1738
  var handleCompaction = async (input, agent = CLAUDE_CODE_AGENT) => {
1738
1739
  try {
1739
- const projectName = basename(input.cwd ?? process.cwd());
1740
+ const projectName = projectNameFor(input.cwd);
1740
1741
  await reportEvent({
1741
1742
  event: "compaction",
1742
1743
  agentType: agent.type,
@@ -1750,7 +1751,7 @@ var handleCompaction = async (input, agent = CLAUDE_CODE_AGENT) => {
1750
1751
  };
1751
1752
  var handleSessionStart = async (input, agent = CLAUDE_CODE_AGENT) => {
1752
1753
  try {
1753
- const projectName = basename(input.cwd ?? process.cwd());
1754
+ const projectName = projectNameFor(input.cwd);
1754
1755
  const action = input.agent_id ? "Subagent started" : sessionStartAction(input.source);
1755
1756
  await reportEvent({
1756
1757
  event: "session_start",
@@ -1765,7 +1766,7 @@ var handleSessionStart = async (input, agent = CLAUDE_CODE_AGENT) => {
1765
1766
  };
1766
1767
  var handleSessionEnd = async (input, agent = CLAUDE_CODE_AGENT, options = {}) => {
1767
1768
  try {
1768
- const projectName = basename(input.cwd ?? process.cwd());
1769
+ const projectName = projectNameFor(input.cwd);
1769
1770
  const action = sessionEndAction(input.reason);
1770
1771
  const sessionKey = input.session_id || DEFAULT_SESSION;
1771
1772
  if (options.reconcile ?? true) {
@@ -1794,7 +1795,7 @@ var pushesNotification = (notifType, sessionKey) => NOTIFICATION_PUSH_TYPES.has(
1794
1795
  var handleNotification = async (input, agent = CLAUDE_CODE_AGENT) => {
1795
1796
  const signal = AbortSignal.timeout(HOOK_BUDGET_MS);
1796
1797
  try {
1797
- const projectName = basename(input.cwd ?? process.cwd());
1798
+ const projectName = projectNameFor(input.cwd);
1798
1799
  const notifType = notificationTypeOf(input) ?? "";
1799
1800
  const sessionKey = input.session_id || DEFAULT_SESSION;
1800
1801
  const teammateIdle = input.hook_event_name === "TeammateIdle";
@@ -1856,7 +1857,7 @@ var handleStopFailure = async (input, agent = CLAUDE_CODE_AGENT) => {
1856
1857
  } catch {
1857
1858
  return;
1858
1859
  }
1859
- const projectName = basename(input.cwd ?? process.cwd());
1860
+ const projectName = projectNameFor(input.cwd);
1860
1861
  const reason = describeStopFailure(input.error);
1861
1862
  await reportEvent({
1862
1863
  event: "turn_error",
@@ -6,7 +6,7 @@ import {
6
6
  DISCONNECT_AGENT_IDS,
7
7
  SETUP_AGENT_CHOICES,
8
8
  isApprovalMode
9
- } from "./chunk-L77OIGRB.js";
9
+ } from "./chunk-US4LUIFU.js";
10
10
 
11
11
  // src/cli/mode-request.ts
12
12
  var parseDuration = (value) => {
@@ -1,33 +1,33 @@
1
1
  import {
2
2
  MANAGED_CLAUDE_SETTINGS_BY_PLATFORM
3
- } from "./chunk-NWHMER6L.js";
3
+ } from "./chunk-K5NBHOE6.js";
4
4
  import {
5
5
  declinedAgentsFile,
6
6
  readDeclinedAgents
7
- } from "./chunk-Y54VMOE5.js";
7
+ } from "./chunk-IQNM745W.js";
8
8
  import {
9
9
  OPENCODE_HOOK_BINARY,
10
10
  openCodeConfigDir,
11
11
  openCodePluginFile
12
- } from "./chunk-KQXKDF4N.js";
12
+ } from "./chunk-PWJ76P2L.js";
13
13
  import {
14
14
  openCodePluginArgv
15
- } from "./chunk-UCND4JHN.js";
15
+ } from "./chunk-3L5DXDPK.js";
16
16
  import {
17
17
  liveCursorGateCoverage
18
- } from "./chunk-I72TVBOG.js";
18
+ } from "./chunk-H3MY3EQP.js";
19
19
  import {
20
20
  compatibleConfigFile,
21
21
  compatibleHookEvents,
22
22
  grokHome,
23
23
  parseConfigDocument
24
- } from "./chunk-W46HI6T3.js";
24
+ } from "./chunk-R3EIRYON.js";
25
25
  import {
26
26
  DEFAULT_HOOKS_KEY_PATH,
27
27
  GEMINI_HOOK_BINARY,
28
28
  GEMINI_HOOK_EVENTS,
29
29
  hooksAt
30
- } from "./chunk-5EU7V5CT.js";
30
+ } from "./chunk-7VG4JO77.js";
31
31
  import {
32
32
  CODEX_EARLIER_APPROVAL_MATCHERS,
33
33
  CODEX_HOOK_BINARY,
@@ -55,7 +55,7 @@ import {
55
55
  parseHookArgv,
56
56
  parseHookCommand,
57
57
  supportedClaudeEvents
58
- } from "./chunk-DRRFOQGF.js";
58
+ } from "./chunk-MF6FSDM4.js";
59
59
  import {
60
60
  readRegularJsonFile,
61
61
  readRegularTextFile
@@ -69,7 +69,7 @@ import {
69
69
  OPENCODE_APPROVAL_EVENT,
70
70
  isRecord,
71
71
  matcherMatchesEveryCall
72
- } from "./chunk-L77OIGRB.js";
72
+ } from "./chunk-US4LUIFU.js";
73
73
 
74
74
  // src/hook-wiring.ts
75
75
  import { createHash } from "crypto";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  CODEX_HOOK_STATUS
3
- } from "./chunk-DCYRV2BJ.js";
3
+ } from "./chunk-A3YA4EIY.js";
4
4
  import {
5
5
  HERMES_ALWAYS_ALLOWED_SHELL_RULE,
6
6
  HERMES_COMMAND_ALLOWLIST_KEY,
7
7
  HERMES_GATE_TOOLS_KEY,
8
8
  HERMES_SHELL_TOOL
9
- } from "./chunk-SQCW64C2.js";
9
+ } from "./chunk-GPHESUOZ.js";
10
10
  import {
11
11
  retryAgentCommand
12
- } from "./chunk-FJF2D32S.js";
12
+ } from "./chunk-6355EUTT.js";
13
13
  import {
14
14
  NPX_LATEST_COMMAND
15
- } from "./chunk-IV7WDCKS.js";
15
+ } from "./chunk-S3X6WLW5.js";
16
16
 
17
17
  // src/setup/codex-trust.ts
18
18
  var CODEX_TRUST_TELEMETRY = {
@@ -4,19 +4,19 @@ import {
4
4
  } from "./chunk-VRNGMRJA.js";
5
5
  import {
6
6
  getMachineId
7
- } from "./chunk-MJMRJ5ZF.js";
7
+ } from "./chunk-YFOR2JQQ.js";
8
8
  import {
9
9
  readControlMode
10
- } from "./chunk-7XSZK4DH.js";
10
+ } from "./chunk-YDYKKSFU.js";
11
11
  import {
12
12
  pusharyDir
13
- } from "./chunk-DRRFOQGF.js";
13
+ } from "./chunk-MF6FSDM4.js";
14
14
  import {
15
15
  resolveGlobalBinary
16
- } from "./chunk-D3TNLVVL.js";
16
+ } from "./chunk-GGNKMBCN.js";
17
17
  import {
18
18
  getApiKey
19
- } from "./chunk-A2DVMIX4.js";
19
+ } from "./chunk-TU5DTA2V.js";
20
20
  import {
21
21
  readJsonSafe,
22
22
  writeFileAtomic,
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-UQTQ6HPO.js";
33
33
  import {
34
34
  isRecord
35
- } from "./chunk-L77OIGRB.js";
35
+ } from "./chunk-US4LUIFU.js";
36
36
 
37
37
  // src/daemon-entry-guard.ts
38
38
  import { mkdirSync, readFileSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  NPX_LATEST_COMMAND
3
- } from "./chunk-IV7WDCKS.js";
3
+ } from "./chunk-S3X6WLW5.js";
4
4
 
5
5
  // src/config.ts
6
6
  import { readFileSync } from "fs";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-POFBE6ZY.js";
4
4
  import {
5
5
  autoUpdateState
6
- } from "./chunk-DRRFOQGF.js";
6
+ } from "./chunk-MF6FSDM4.js";
7
7
  import {
8
8
  readJsonSafe,
9
9
  writeJsonAtomic
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-UQTQ6HPO.js";
18
18
  import {
19
19
  isAutoUpdateResult
20
- } from "./chunk-L77OIGRB.js";
20
+ } from "./chunk-US4LUIFU.js";
21
21
 
22
22
  // src/auto-update.ts
23
23
  import { spawn } from "child_process";
@@ -135,6 +135,24 @@ var isAgentQuestionSet = (value) => {
135
135
  }
136
136
  return true;
137
137
  };
138
+ var CLAUDE_MULTI_SELECT_SEPARATOR = ", ";
139
+ var multiSelectLabelsIn = (answer) => {
140
+ try {
141
+ const parsed = JSON.parse(answer);
142
+ return Array.isArray(parsed) && parsed.every((label) => typeof label === "string") ? parsed : null;
143
+ } catch {
144
+ return null;
145
+ }
146
+ };
147
+ var CLAUDE_QUOTED_LABEL_MARK = '"';
148
+ var claudeLabelText = (label) => label.includes(CLAUDE_MULTI_SELECT_SEPARATOR) || label.includes(CLAUDE_QUOTED_LABEL_MARK) ? JSON.stringify(label) : label;
149
+ var claudeAnswerTo = (question, answer) => {
150
+ const labels = question?.multiSelect ? multiSelectLabelsIn(answer) : null;
151
+ return labels === null ? answer : labels.map(claudeLabelText).join(CLAUDE_MULTI_SELECT_SEPARATOR);
152
+ };
153
+ var claudeQuestionAnswers = (questions, answers) => Object.fromEntries(
154
+ Object.entries(answers).map(([question, answer]) => [question, claudeAnswerTo(questions.find((asked) => asked.question === question), answer)])
155
+ );
138
156
  var parseAgentQuestionAnswers = (questions, value) => {
139
157
  let parsed;
140
158
  try {
@@ -10300,6 +10318,8 @@ export {
10300
10318
  parseAgentQuestions,
10301
10319
  isTypedAnswerQuestion,
10302
10320
  isAgentQuestionSet,
10321
+ multiSelectLabelsIn,
10322
+ claudeQuestionAnswers,
10303
10323
  parseAgentQuestionAnswers,
10304
10324
  CODEX_QUESTION_TOOLS,
10305
10325
  isCodexQuestionTool,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-DRRFOQGF.js";
3
+ } from "./chunk-MF6FSDM4.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  throwIfNpmRefusesInstall
8
- } from "./chunk-D3TNLVVL.js";
8
+ } from "./chunk-GGNKMBCN.js";
9
9
  import {
10
10
  writeJsonAtomic
11
11
  } from "./chunk-PM2NRK6Y.js";
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-WHB622LP.js";
4
4
  import {
5
5
  ensureDaemonRunning
6
- } from "./chunk-JUE347Z7.js";
6
+ } from "./chunk-TRXYUOWW.js";
7
7
  import {
8
8
  hookOwnerOf
9
- } from "./chunk-5EU7V5CT.js";
9
+ } from "./chunk-7VG4JO77.js";
10
10
  import {
11
11
  hookMeaning
12
- } from "./chunk-CFZUESTS.js";
12
+ } from "./chunk-OFKKNHYJ.js";
13
13
  import {
14
14
  buildTranscriptRecords,
15
15
  changedRecipientsMessage,
@@ -24,7 +24,7 @@ import {
24
24
  uploadTranscriptRecords,
25
25
  verifyAnchoredRecipients,
26
26
  wrapSessionKey
27
- } from "./chunk-HRUKMGRH.js";
27
+ } from "./chunk-6BZCNKCY.js";
28
28
  import {
29
29
  external_exports,
30
30
  ownedOnlyByThisUser,
@@ -33,22 +33,22 @@ import {
33
33
  import {
34
34
  transcriptEnvironmentPreference,
35
35
  transcriptsEnabled
36
- } from "./chunk-UB5G7ZZN.js";
36
+ } from "./chunk-YE7WPP7M.js";
37
37
  import {
38
38
  fetchAsCredential
39
- } from "./chunk-SSKNRWWS.js";
39
+ } from "./chunk-N73CKAC6.js";
40
40
  import {
41
41
  readTranscriptPreference
42
- } from "./chunk-7XSZK4DH.js";
42
+ } from "./chunk-YDYKKSFU.js";
43
43
  import {
44
44
  claudeConfigDir,
45
45
  codexHome,
46
46
  pusharyDir
47
- } from "./chunk-DRRFOQGF.js";
47
+ } from "./chunk-MF6FSDM4.js";
48
48
  import {
49
49
  getApiKey,
50
50
  getBaseUrl
51
- } from "./chunk-A2DVMIX4.js";
51
+ } from "./chunk-TU5DTA2V.js";
52
52
  import {
53
53
  writeJsonAtomic,
54
54
  writeJsonAtomicDurable
@@ -60,7 +60,7 @@ import {
60
60
  isHookSource,
61
61
  isRecord,
62
62
  redactSecretsFromContent
63
- } from "./chunk-L77OIGRB.js";
63
+ } from "./chunk-US4LUIFU.js";
64
64
 
65
65
  // src/transcript-registration.ts
66
66
  import { createHash as createHash4 } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-L77OIGRB.js";
3
+ } from "./chunk-US4LUIFU.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";
@@ -13,16 +13,16 @@ import {
13
13
  } from "./chunk-WHB622LP.js";
14
14
  import {
15
15
  keyPrefix
16
- } from "./chunk-7XSZK4DH.js";
16
+ } from "./chunk-YDYKKSFU.js";
17
17
  import {
18
18
  getBaseUrl
19
- } from "./chunk-A2DVMIX4.js";
19
+ } from "./chunk-TU5DTA2V.js";
20
20
  import {
21
21
  NPX_LATEST_COMMAND
22
- } from "./chunk-IV7WDCKS.js";
22
+ } from "./chunk-S3X6WLW5.js";
23
23
  import {
24
24
  isValidApiKey
25
- } from "./chunk-L77OIGRB.js";
25
+ } from "./chunk-US4LUIFU.js";
26
26
 
27
27
  // src/cli/login-ui.ts
28
28
  import { hostname } from "os";
@@ -265,7 +265,8 @@ var REUSED_KEY_SOURCE_LABELS = {
265
265
  var maskKey = (key) => `${key.slice(0, 8)}...${key.slice(-4)}`;
266
266
  var describeFoundKey = (reusable) => `Found ${REUSED_KEY_SOURCE_LABELS[reusable.source]}: ${maskKey(reusable.key)}`;
267
267
  var describeUsedKey = (reusable) => `Using ${REUSED_KEY_SOURCE_LABELS[reusable.source]}: ${maskKey(reusable.key)}`;
268
- var canAskAtTheTerminal = (context) => context.stdoutIsTty && !context.nonInteractive && !context.dryRun;
268
+ var someoneIsAtTheTerminal = (context) => context.stdoutIsTty && !context.nonInteractive;
269
+ var canAskAtTheTerminal = (context) => someoneIsAtTheTerminal(context) && !context.dryRun;
269
270
  var keyReuseConfirmation = (context) => canAskAtTheTerminal(context) && context.canPairWithApp ? "ask" : "announce";
270
271
  var accountHandleOf = (identity) => identity.siteSlug ? `@${identity.siteSlug}` : identity.siteName || null;
271
272
  var keyAccountHandle = (check) => check.kind === "ok" ? accountHandleOf(check.identity) : null;
@@ -314,6 +315,7 @@ export {
314
315
  pickReusableKey,
315
316
  describeFoundKey,
316
317
  describeUsedKey,
318
+ someoneIsAtTheTerminal,
317
319
  canAskAtTheTerminal,
318
320
  keyReuseConfirmation,
319
321
  keyAccountHandle,
@@ -1,6 +1,9 @@
1
+ import {
2
+ projectNameFor
3
+ } from "./chunk-DNJKQHK2.js";
1
4
  import {
2
5
  readConfigFileKey
3
- } from "./chunk-7XSZK4DH.js";
6
+ } from "./chunk-YDYKKSFU.js";
4
7
 
5
8
  // src/bell/fleet.ts
6
9
  import { closeSync, constants, futimesSync, lstatSync, mkdirSync, openSync, readdirSync, unlinkSync } from "fs";
@@ -155,7 +158,6 @@ var upgradeNotice = (context, deps = {}) => {
155
158
  };
156
159
 
157
160
  // src/bell/handler.ts
158
- import { basename } from "path";
159
161
  var FINISHED_NOTIFICATIONS = /* @__PURE__ */ new Set(["agent_completed"]);
160
162
  var BLOCKED_NOTIFICATIONS = /* @__PURE__ */ new Set(["idle_prompt", "agent_needs_input"]);
161
163
  var SUMMARY_MAX = 100;
@@ -165,7 +167,7 @@ var summarize = (message, fallback) => {
165
167
  return collapsed ? collapsed.slice(0, SUMMARY_MAX) : fallback;
166
168
  };
167
169
  var decideBell = (input) => {
168
- const project = basename(input.cwd ?? process.cwd());
170
+ const project = projectNameFor(input.cwd);
169
171
  const notifType = input.notification_type ?? input.type ?? "";
170
172
  if (FINISHED_NOTIFICATIONS.has(notifType)) {
171
173
  return {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  RETRY_ACK,
6
6
  refusedReceiptMessage
7
- } from "./chunk-GVIKF73A.js";
7
+ } from "./chunk-5LIGHRBH.js";
8
8
 
9
9
  // src/command-receipts.ts
10
10
  import { randomUUID } from "crypto";
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  openClawLauncherCandidates
3
- } from "./chunk-MV7NJYJX.js";
3
+ } from "./chunk-O4AAXXXP.js";
4
4
  import {
5
5
  openCodeConfigDirFrom
6
- } from "./chunk-KQXKDF4N.js";
6
+ } from "./chunk-PWJ76P2L.js";
7
7
  import {
8
8
  nativeClaudeInstallPath
9
9
  } from "./chunk-TCE3J44Z.js";
10
10
  import {
11
11
  grokHome
12
- } from "./chunk-W46HI6T3.js";
12
+ } from "./chunk-R3EIRYON.js";
13
13
  import {
14
14
  claudeConfigDir,
15
15
  clineDataDirectory,
16
16
  codexHomeFrom,
17
17
  openClawEnvironmentOf,
18
18
  openClawPathsFrom
19
- } from "./chunk-DRRFOQGF.js";
19
+ } from "./chunk-MF6FSDM4.js";
20
20
  import {
21
21
  HOOK_COMPATIBLE_PROFILES
22
- } from "./chunk-L77OIGRB.js";
22
+ } from "./chunk-US4LUIFU.js";
23
23
 
24
24
  // src/vscode-config.ts
25
25
  import { homedir } from "os";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveInstallSourceFor
3
- } from "./chunk-3I3RUJRD.js";
3
+ } from "./chunk-LH5JTAAH.js";
4
4
  import {
5
5
  configFilePath
6
- } from "./chunk-A2DVMIX4.js";
6
+ } from "./chunk-TU5DTA2V.js";
7
7
  import {
8
8
  backupFile,
9
9
  backupFileInto,
@@ -15,7 +15,7 @@ import {
15
15
  API_KEY_PREFIX_PATTERN,
16
16
  isRecord,
17
17
  isValidApiKey
18
- } from "./chunk-L77OIGRB.js";
18
+ } from "./chunk-US4LUIFU.js";
19
19
 
20
20
  // src/shell-alias.ts
21
21
  import { homedir } from "os";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-7XSZK4DH.js";
3
+ } from "./chunk-YDYKKSFU.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-DRRFOQGF.js";
3
+ } from "./chunk-MF6FSDM4.js";
4
4
  import {
5
5
  writeFileAtomic
6
6
  } from "./chunk-PM2NRK6Y.js";