@pushary/agent-hooks 1.9.153 → 1.9.155

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 (136) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/{api-CP25UREX.js → api-3C62HQDC.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 +11 -11
  6. package/dist/bin/pushary-claude.js +27 -27
  7. package/dist/bin/pushary-clean.js +37 -37
  8. package/dist/bin/pushary-codex-bridge.js +23 -23
  9. package/dist/bin/pushary-codex-hook.js +35 -35
  10. package/dist/bin/pushary-codex-session.js +8 -8
  11. package/dist/bin/pushary-codex.js +16 -16
  12. package/dist/bin/pushary-connect.js +33 -33
  13. package/dist/bin/pushary-cowork.js +5 -5
  14. package/dist/bin/pushary-daemon.js +44 -44
  15. package/dist/bin/pushary-disconnect.js +28 -28
  16. package/dist/bin/pushary-display-hook.js +56 -42
  17. package/dist/bin/pushary-doctor.js +45 -45
  18. package/dist/bin/pushary-elicitation-hook.js +28 -28
  19. package/dist/bin/pushary-gemini-bridge.js +17 -17
  20. package/dist/bin/pushary-gemini-hook.js +32 -32
  21. package/dist/bin/pushary-hook.js +35 -35
  22. package/dist/bin/pushary-login.js +22 -22
  23. package/dist/bin/pushary-logout.js +28 -28
  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 +31 -31
  28. package/dist/bin/pushary-permission-denied-hook.js +35 -35
  29. package/dist/bin/pushary-permission-hook.js +35 -35
  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 +37 -37
  34. package/dist/bin/pushary-setup.js +61 -70
  35. package/dist/bin/pushary-stats.js +5 -5
  36. package/dist/bin/pushary-status.js +34 -34
  37. package/dist/bin/pushary-stop-hook.js +27 -27
  38. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  39. package/dist/bin/pushary-suggestions.js +16 -16
  40. package/dist/bin/pushary-transcript-register.js +17 -17
  41. package/dist/bin/pushary-transcripts.js +25 -25
  42. package/dist/bin/pushary-upgrade.js +43 -44
  43. package/dist/bin/pushary-wait.js +16 -16
  44. package/dist/bin/pushary.js +7 -7
  45. package/dist/{chunk-3UONQKDQ.js → chunk-25PVMWSM.js} +1 -1
  46. package/dist/{chunk-7MI43W6R.js → chunk-2LTRA6NA.js} +3 -3
  47. package/dist/{chunk-6QVR763H.js → chunk-2N23JFER.js} +3 -3
  48. package/dist/{chunk-TQDJSQTK.js → chunk-3EF7G5EV.js} +4 -4
  49. package/dist/{chunk-N7ADBRB6.js → chunk-3FQJYA76.js} +3 -3
  50. package/dist/{chunk-A5CQZKTQ.js → chunk-3UYTCDDY.js} +11 -9
  51. package/dist/{chunk-6FLI6ZLI.js → chunk-44FDCO7M.js} +8 -8
  52. package/dist/{chunk-HJW4HIGB.js → chunk-4RSJZOKB.js} +1 -1
  53. package/dist/{chunk-44OIS5QI.js → chunk-5C7TFCQH.js} +5 -5
  54. package/dist/{chunk-3PAXV5AO.js → chunk-5TCLBCUO.js} +6 -6
  55. package/dist/{chunk-FOU4YBB6.js → chunk-5Y5ZB5GG.js} +5 -5
  56. package/dist/{chunk-XOBZSFHN.js → chunk-6NRFAP45.js} +1 -1
  57. package/dist/{chunk-ORELODI4.js → chunk-6UGVZTRA.js} +1 -1
  58. package/dist/{chunk-YXR2LIDZ.js → chunk-7HDQUTRK.js} +7 -7
  59. package/dist/{chunk-VZKX3B7B.js → chunk-AKUYCHJU.js} +1 -1
  60. package/dist/{chunk-6BUQ6KQ3.js → chunk-ALRANF2G.js} +12 -12
  61. package/dist/{chunk-5M2AA3G3.js → chunk-ANL74IBU.js} +1 -1
  62. package/dist/{chunk-GJQKDHO3.js → chunk-B2SZN2C7.js} +5 -5
  63. package/dist/{chunk-VBQU3OFQ.js → chunk-BMR66K6T.js} +4 -4
  64. package/dist/{chunk-6FGTTNP4.js → chunk-C3HYWUZE.js} +1 -1
  65. package/dist/{chunk-G6QERYOX.js → chunk-C4K4KYOY.js} +3 -3
  66. package/dist/{chunk-HJDNDZQI.js → chunk-CAZ5FMWP.js} +6 -6
  67. package/dist/{chunk-4DGCCNVG.js → chunk-CHI57HS3.js} +3 -3
  68. package/dist/{chunk-D7DN5DXL.js → chunk-CV6G4IDZ.js} +2 -2
  69. package/dist/{chunk-VBKU5ICI.js → chunk-DDSMTD4W.js} +3 -3
  70. package/dist/{chunk-D5HE7ZE7.js → chunk-DMWKPUAI.js} +2 -2
  71. package/dist/{chunk-UZVU4ZOC.js → chunk-E2KAAKWU.js} +3 -3
  72. package/dist/{chunk-E3P63UWQ.js → chunk-ELF4NIIM.js} +2 -2
  73. package/dist/{chunk-AZ7225CM.js → chunk-EPYNFHCW.js} +3 -3
  74. package/dist/{chunk-6QFTOGXF.js → chunk-EQF6SSQL.js} +2 -2
  75. package/dist/{chunk-TTFJOZZN.js → chunk-F6ZBXV4G.js} +1 -1
  76. package/dist/{chunk-JTB3DC7H.js → chunk-FLY6YDPE.js} +5 -5
  77. package/dist/{chunk-XMJRSL5A.js → chunk-G6SQOGSD.js} +8 -8
  78. package/dist/{chunk-6ZWHFTGD.js → chunk-HNESCLUJ.js} +4 -4
  79. package/dist/{chunk-V7EEPW7U.js → chunk-HXX4EFK3.js} +3 -3
  80. package/dist/{chunk-NGGBXN6M.js → chunk-ICHKAH5Q.js} +6 -6
  81. package/dist/{chunk-KL7LGD57.js → chunk-JBF6A2X5.js} +1 -1
  82. package/dist/{chunk-5EEIROLA.js → chunk-JIH55UHZ.js} +1 -1
  83. package/dist/{chunk-BEYMW4FP.js → chunk-KB7YWU7A.js} +33 -14
  84. package/dist/{chunk-JJYIPQPG.js → chunk-KOBIBSE6.js} +3 -3
  85. package/dist/{chunk-SIEPFBGO.js → chunk-KWHADNCV.js} +4 -4
  86. package/dist/{chunk-ALTCTVBD.js → chunk-M2WLCRMX.js} +1 -1
  87. package/dist/{chunk-A5QLHC5S.js → chunk-MEUAK5BK.js} +2 -2
  88. package/dist/{chunk-RZC7MMY2.js → chunk-MGT2V2AB.js} +1 -1
  89. package/dist/{chunk-MXYCC6TR.js → chunk-MH4O453X.js} +2 -2
  90. package/dist/{chunk-WDO3YKVN.js → chunk-MOX7IOGL.js} +5 -5
  91. package/dist/{chunk-S4GSEFRL.js → chunk-O3NAHPCR.js} +1 -1
  92. package/dist/{chunk-DHA32CH3.js → chunk-OGB4QCB3.js} +5 -5
  93. package/dist/{chunk-VND6AFTY.js → chunk-P2OC7VZZ.js} +4 -4
  94. package/dist/{chunk-K3RPTQGZ.js → chunk-P5JV6YZW.js} +8 -2
  95. package/dist/{chunk-7PKA5C7Z.js → chunk-PBKYOLKX.js} +5 -5
  96. package/dist/{chunk-TVV7NN6T.js → chunk-PKU3WFT5.js} +1 -1
  97. package/dist/{chunk-OEQFFPBU.js → chunk-PMEDJ4WM.js} +22 -23
  98. package/dist/{chunk-HLMDINWY.js → chunk-Q242EVCI.js} +2 -2
  99. package/dist/{chunk-UOJQZ7L5.js → chunk-QEKKOZS3.js} +16 -16
  100. package/dist/{chunk-LPAPVM5J.js → chunk-QONYKXWP.js} +1 -1
  101. package/dist/{chunk-F2XOMBVP.js → chunk-R4DMHIOK.js} +5 -5
  102. package/dist/{chunk-ZMTMAKZI.js → chunk-RALCZD2Z.js} +8 -8
  103. package/dist/{chunk-7GQMN55L.js → chunk-RF35YTIF.js} +2 -2
  104. package/dist/{chunk-FLDVCVHA.js → chunk-RF7HGOBC.js} +2 -2
  105. package/dist/{chunk-OTYRLDKJ.js → chunk-S6DJAYQW.js} +5 -5
  106. package/dist/{chunk-I54ERZRS.js → chunk-T3LSBTWU.js} +2 -2
  107. package/dist/{chunk-6RB6DG5U.js → chunk-TIOQ55VZ.js} +6 -6
  108. package/dist/{chunk-EENGXQP2.js → chunk-TWOSBIAW.js} +1 -1
  109. package/dist/{chunk-KORCPXUS.js → chunk-UAYNQ2IG.js} +4 -4
  110. package/dist/{chunk-IFYBTFGJ.js → chunk-UJJ2OXFA.js} +1 -1
  111. package/dist/{chunk-YM2T76UM.js → chunk-UOVTXOSS.js} +7 -2
  112. package/dist/{chunk-DXCYJHL4.js → chunk-V4OIPLSC.js} +4 -4
  113. package/dist/{chunk-44BHQL5D.js → chunk-WCVANKUD.js} +1 -1
  114. package/dist/{chunk-7BXROUKN.js → chunk-WDCS3RGI.js} +2 -2
  115. package/dist/{chunk-JPXW7CB3.js → chunk-WIOLCW7W.js} +1 -1
  116. package/dist/{chunk-AGZW3MDV.js → chunk-WSPDIT2B.js} +2 -2
  117. package/dist/{chunk-KNXFZWYU.js → chunk-WWDWEVGT.js} +11 -9
  118. package/dist/{chunk-K5QMB6A7.js → chunk-XHPTW6WL.js} +6 -23
  119. package/dist/{chunk-HWUMQCKI.js → chunk-XOZ2IFFU.js} +10 -10
  120. package/dist/{chunk-XMKNE4XR.js → chunk-XZ7AZOUT.js} +11 -11
  121. package/dist/{chunk-AHLKBYZN.js → chunk-Y6OGY2G4.js} +3 -3
  122. package/dist/{chunk-OHKGBJ4O.js → chunk-YPSP7NZI.js} +4 -4
  123. package/dist/{codex-app-cards-switch-FPUS5HGR.js → codex-app-cards-switch-B7GY2ONI.js} +11 -11
  124. package/dist/{codex-card-routing-KAAZTFYE.js → codex-card-routing-6RN4N266.js} +2 -2
  125. package/dist/{codex-desktop-launch-K22UOYK4.js → codex-desktop-launch-K4GU2NFZ.js} +1 -1
  126. package/dist/{codex-session-launch-UALDJWDA.js → codex-session-launch-AVEFGOT7.js} +20 -20
  127. package/dist/{config-37VCCNI3.js → config-YGUXX5GB.js} +4 -3
  128. package/dist/{global-upgrade-P6UR6T67.js → global-upgrade-HLXPTFDU.js} +9 -9
  129. package/dist/{identity-VKL2KE5Y.js → identity-CAC763RQ.js} +4 -4
  130. package/dist/{live-capabilities-YKXXTWIP.js → live-capabilities-WRI22INV.js} +4 -4
  131. package/dist/{paths-P5H3NCEO.js → paths-DNXBDJJH.js} +3 -3
  132. package/dist/{reapply-MLREXGHX.js → reapply-L7QUIQXK.js} +30 -30
  133. package/dist/src/index.js +34 -34
  134. package/dist/{upgrade-lock-HBLAJ7ID.js → upgrade-lock-CRW26OIW.js} +4 -6
  135. package/dist/{usage-6E3PTA6F.js → usage-AWWCZ7H7.js} +3 -3
  136. package/package.json +1 -1
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-UZVU4ZOC.js";
3
+ } from "./chunk-E2KAAKWU.js";
4
4
  import {
5
5
  NetworkError
6
6
  } from "./chunk-YU2EUD7O.js";
7
7
  import {
8
8
  getBaseUrl
9
- } from "./chunk-5M2AA3G3.js";
9
+ } from "./chunk-ANL74IBU.js";
10
10
  import {
11
11
  EXIT
12
12
  } from "./chunk-BG4HHB7E.js";
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-BEYMW4FP.js";
16
+ } from "./chunk-KB7YWU7A.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,19 +1,19 @@
1
1
  import {
2
2
  APPROVAL_RULES_PATH,
3
3
  canChangeApprovalSettings
4
- } from "./chunk-6QFTOGXF.js";
4
+ } from "./chunk-EQF6SSQL.js";
5
5
  import {
6
6
  callMcpTool
7
- } from "./chunk-WDO3YKVN.js";
7
+ } from "./chunk-MOX7IOGL.js";
8
8
  import {
9
9
  absoluteUrl
10
- } from "./chunk-G6QERYOX.js";
10
+ } from "./chunk-C4K4KYOY.js";
11
11
  import {
12
12
  getBaseUrl
13
- } from "./chunk-5M2AA3G3.js";
13
+ } from "./chunk-ANL74IBU.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND
16
- } from "./chunk-K3RPTQGZ.js";
16
+ } from "./chunk-P5JV6YZW.js";
17
17
  import {
18
18
  AGENT_STOP_DEFAULT_SECONDS,
19
19
  APPROVAL_MODE_META,
@@ -21,7 +21,7 @@ import {
21
21
  classifyConfirmResponse,
22
22
  isAnswerSource,
23
23
  roundTripAsk
24
- } from "./chunk-BEYMW4FP.js";
24
+ } from "./chunk-KB7YWU7A.js";
25
25
 
26
26
  // src/reach.ts
27
27
  var PUSHARY_APP_DOWNLOAD_URL = "https://pushary.com/download";
@@ -4,10 +4,10 @@ import {
4
4
  } from "./chunk-352FIVVH.js";
5
5
  import {
6
6
  fetchAsCredential
7
- } from "./chunk-EENGXQP2.js";
7
+ } from "./chunk-TWOSBIAW.js";
8
8
  import {
9
9
  getBaseUrl
10
- } from "./chunk-5M2AA3G3.js";
10
+ } from "./chunk-ANL74IBU.js";
11
11
  import {
12
12
  writeJsonAtomicDurable
13
13
  } from "./chunk-TODDEIYG.js";
@@ -15,7 +15,7 @@ import {
15
15
  compressTranscriptRecord,
16
16
  redactSecretsFromContent,
17
17
  transcriptRecordPlaintext
18
- } from "./chunk-BEYMW4FP.js";
18
+ } from "./chunk-KB7YWU7A.js";
19
19
 
20
20
  // src/transcript-recipient-pin.ts
21
21
  import { createHash } from "crypto";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-MXYCC6TR.js";
3
+ } from "./chunk-MH4O453X.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-TODDEIYG.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-BEYMW4FP.js";
9
+ } from "./chunk-KB7YWU7A.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-WDO3YKVN.js";
3
+ } from "./chunk-MOX7IOGL.js";
4
4
  import {
5
5
  fetchAsCredential
6
- } from "./chunk-EENGXQP2.js";
6
+ } from "./chunk-TWOSBIAW.js";
7
7
  import {
8
8
  NPX_LATEST_COMMAND
9
- } from "./chunk-K3RPTQGZ.js";
9
+ } from "./chunk-P5JV6YZW.js";
10
10
 
11
11
  // src/mcp-stdio-bridge.ts
12
12
  var MCP_BRIDGE_BINARY = "pushary-mcp";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore,
3
3
  identifyingToolInput
4
- } from "./chunk-6BUQ6KQ3.js";
4
+ } from "./chunk-ALRANF2G.js";
5
5
  import {
6
6
  canonicalJson
7
- } from "./chunk-MXYCC6TR.js";
7
+ } from "./chunk-MH4O453X.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash } from "crypto";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  readExistingMachineId
3
- } from "./chunk-HJW4HIGB.js";
3
+ } from "./chunk-4RSJZOKB.js";
4
4
  import {
5
5
  NetworkError
6
6
  } from "./chunk-YU2EUD7O.js";
7
7
  import {
8
8
  getBaseUrl
9
- } from "./chunk-5M2AA3G3.js";
9
+ } from "./chunk-ANL74IBU.js";
10
10
  import {
11
11
  getPackageVersion
12
12
  } from "./chunk-WIIMW5YO.js";
13
13
  import {
14
14
  clientContextHeaders,
15
15
  redactSecretsFromContent
16
- } from "./chunk-BEYMW4FP.js";
16
+ } from "./chunk-KB7YWU7A.js";
17
17
 
18
18
  // src/cli/net.ts
19
19
  import { createRequire } from "module";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-5M2AA3G3.js";
3
+ } from "./chunk-ANL74IBU.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-BEYMW4FP.js";
6
+ } from "./chunk-KB7YWU7A.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -4,15 +4,15 @@ import {
4
4
  claimThrottle,
5
5
  releaseThrottle,
6
6
  reportEvent
7
- } from "./chunk-6BUQ6KQ3.js";
7
+ } from "./chunk-ALRANF2G.js";
8
8
  import {
9
9
  deriveToolTarget,
10
10
  permissionDeniedAction
11
- } from "./chunk-5EEIROLA.js";
11
+ } from "./chunk-JIH55UHZ.js";
12
12
  import {
13
13
  machineDecisionFor,
14
14
  wireVerdictFor
15
- } from "./chunk-BEYMW4FP.js";
15
+ } from "./chunk-KB7YWU7A.js";
16
16
 
17
17
  // src/machine-decision-audit.ts
18
18
  import { basename } from "path";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-G6QERYOX.js";
3
+ } from "./chunk-C4K4KYOY.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-BEYMW4FP.js";
6
+ } from "./chunk-KB7YWU7A.js";
7
7
 
8
8
  // src/cli/approval-settings-pages.ts
9
9
  var API_KEYS_PATH = "/dashboard/agent/settings";
@@ -2,7 +2,7 @@ import {
2
2
  isApprovalMode,
3
3
  isRecord,
4
4
  isTimeoutAction
5
- } from "./chunk-BEYMW4FP.js";
5
+ } from "./chunk-KB7YWU7A.js";
6
6
 
7
7
  // src/cli/settings-response.ts
8
8
  var isFiniteNumber = (value) => typeof value === "number" && Number.isFinite(value);
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  cursorGateOwnsClaudeCall,
3
3
  readCursorGateRegistration
4
- } from "./chunk-TQDJSQTK.js";
4
+ } from "./chunk-3EF7G5EV.js";
5
5
  import {
6
6
  registerTranscript
7
- } from "./chunk-HWUMQCKI.js";
7
+ } from "./chunk-XOZ2IFFU.js";
8
8
  import {
9
9
  namedEvent
10
- } from "./chunk-DHA32CH3.js";
10
+ } from "./chunk-OGB4QCB3.js";
11
11
  import {
12
12
  writeDegraded
13
- } from "./chunk-NGGBXN6M.js";
13
+ } from "./chunk-ICHKAH5Q.js";
14
14
  import {
15
15
  claudeShapedHookInput,
16
16
  hookCompatibleProfileBySource,
17
17
  isGrokHookPayload,
18
18
  isGrokSessionEndStop
19
- } from "./chunk-BEYMW4FP.js";
19
+ } from "./chunk-KB7YWU7A.js";
20
20
 
21
21
  // src/tool-hook-input.ts
22
22
  var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode", "cursor_version"];
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  notificationAnswerStep
3
- } from "./chunk-HJDNDZQI.js";
3
+ } from "./chunk-CAZ5FMWP.js";
4
4
  import {
5
5
  canChangeApprovalSettings
6
- } from "./chunk-6QFTOGXF.js";
6
+ } from "./chunk-EQF6SSQL.js";
7
7
  import {
8
8
  matchMacAccountStep,
9
9
  retryAgentCommand
10
- } from "./chunk-6QVR763H.js";
10
+ } from "./chunk-2N23JFER.js";
11
11
  import {
12
12
  EXIT
13
13
  } from "./chunk-BG4HHB7E.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND,
16
16
  npmExecSetupCommandFor
17
- } from "./chunk-K3RPTQGZ.js";
17
+ } from "./chunk-P5JV6YZW.js";
18
18
 
19
19
  // src/setup/closing.ts
20
20
  var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
@@ -267,10 +267,10 @@ var RETRY_AGENT_LABEL = "Retry just this agent:";
267
267
  var INSTALL_NODE_STEP = "Install the current Node.js LTS, which includes npm, then run setup again.";
268
268
  var NPM_PREFIX_STEP = "npm can't install globally here. Use nvm, or run: npm config set prefix ~/.npm-global, then run setup again.";
269
269
  var NPM_FILE_IN_USE_STEP = "Close other terminals or editors that use Node, then run setup again.";
270
- var nextStepFor = (failure, releaseAgeRefusedAgents) => {
270
+ var nextStepFor = (failure, releaseAgeRefusedAgents, recovery) => {
271
271
  switch (failure.remedy) {
272
272
  case "use-npm-policy":
273
- return { kind: "use-npm-policy", instruction: `Your npm only installs releases older than its min-release-age. Run this instead: ${npmExecSetupCommandFor(process.platform, releaseAgeRefusedAgents)}` };
273
+ return { kind: "use-npm-policy", instruction: `Wait until this exact release meets your npm min-release-age policy. Resolve any unfinished-install warning before retrying, then run: ${npmExecSetupCommandFor(recovery.platform, releaseAgeRefusedAgents, recovery.version)}` };
274
274
  case "install-node":
275
275
  return { kind: "install-node", instruction: INSTALL_NODE_STEP };
276
276
  case "fix-npm-prefix":
@@ -283,9 +283,9 @@ var nextStepFor = (failure, releaseAgeRefusedAgents) => {
283
283
  return { kind: "retry-agent", command: retryAgentCommand(failure.agent) };
284
284
  }
285
285
  };
286
- var describeAgentFailures = (failures, agentName) => failures.map((failure) => ({
286
+ var describeAgentFailures = (failures, agentName, recovery) => failures.map((failure) => ({
287
287
  summary: `${agentName(failure.agent)}: ${failure.detail}`,
288
- next: nextStepFor(failure, agentsRefusedForReleaseAge(failures))
288
+ next: nextStepFor(failure, agentsRefusedForReleaseAge(failures), recovery)
289
289
  }));
290
290
  var agentsRefusedForReleaseAge = (failures) => failures.filter((failure) => failure.remedy === "use-npm-policy").map((failure) => failure.agent);
291
291
  var agentFailureFollowUps = (failures) => [
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-FOU4YBB6.js";
3
+ } from "./chunk-5Y5ZB5GG.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-7MI43W6R.js";
6
+ } from "./chunk-2LTRA6NA.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-MXYCC6TR.js";
9
+ } from "./chunk-MH4O453X.js";
10
10
  import {
11
11
  readJsonSafe
12
12
  } from "./chunk-TODDEIYG.js";
13
13
  import {
14
14
  isRecord,
15
15
  isValidApiKey
16
- } from "./chunk-BEYMW4FP.js";
16
+ } from "./chunk-KB7YWU7A.js";
17
17
 
18
18
  // src/shared-mcp-key.ts
19
19
  var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
@@ -5,13 +5,13 @@ import {
5
5
  OPENCLAW_ENVIRONMENT_KEYS,
6
6
  openClawEnvironmentOf,
7
7
  openClawPathsFrom
8
- } from "./chunk-MXYCC6TR.js";
8
+ } from "./chunk-MH4O453X.js";
9
9
  import {
10
10
  resolvePathBinary
11
- } from "./chunk-OEQFFPBU.js";
11
+ } from "./chunk-PMEDJ4WM.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-BEYMW4FP.js";
14
+ } from "./chunk-KB7YWU7A.js";
15
15
 
16
16
  // src/openclaw/wiring-state.ts
17
17
  var OPENCLAW_PLUGIN_ID = "pushary";
@@ -8,21 +8,21 @@ import {
8
8
  SubscriptionRequiredError,
9
9
  callMcpTool,
10
10
  isRetryable
11
- } from "./chunk-WDO3YKVN.js";
11
+ } from "./chunk-MOX7IOGL.js";
12
12
  import {
13
13
  installNetworkDefaults,
14
14
  isNetworkFailure
15
- } from "./chunk-UZVU4ZOC.js";
15
+ } from "./chunk-E2KAAKWU.js";
16
16
  import {
17
17
  fetchAsCredential
18
- } from "./chunk-EENGXQP2.js";
18
+ } from "./chunk-TWOSBIAW.js";
19
19
  import {
20
20
  clientReportClaims
21
- } from "./chunk-MXYCC6TR.js";
21
+ } from "./chunk-MH4O453X.js";
22
22
  import {
23
23
  getApiKey,
24
24
  getBaseUrl
25
- } from "./chunk-5M2AA3G3.js";
25
+ } from "./chunk-ANL74IBU.js";
26
26
  import {
27
27
  ASK_AGENT_NAME_MAX,
28
28
  CLIENT_REPORT_PATH,
@@ -32,7 +32,7 @@ import {
32
32
  degradedLine,
33
33
  isDecisionStoppedReply,
34
34
  truncateLine
35
- } from "./chunk-BEYMW4FP.js";
35
+ } from "./chunk-KB7YWU7A.js";
36
36
 
37
37
  // src/api.ts
38
38
  import { randomUUID } from "crypto";
@@ -10,7 +10,7 @@ import {
10
10
  uploadTranscriptRecords,
11
11
  verifyAnchoredRecipients,
12
12
  wrapSessionKey
13
- } from "./chunk-4DGCCNVG.js";
13
+ } from "./chunk-CHI57HS3.js";
14
14
 
15
15
  // src/live-session.ts
16
16
  var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
@@ -25,7 +25,7 @@ import {
25
25
  reportableSessionId,
26
26
  toToolLookup,
27
27
  truncateLine
28
- } from "./chunk-BEYMW4FP.js";
28
+ } from "./chunk-KB7YWU7A.js";
29
29
 
30
30
  // ../hook-mapping/src/commit-receipt.ts
31
31
  var COMMIT_OUTPUT_MAX_LENGTH = 65536;
@@ -667,6 +667,10 @@ var POSIX_SHELL_TOOLS = new Set(
667
667
  [...SHELL_DIALECT_BY_TOOL].filter(([, dialect]) => dialect === "posix").map(([toolName]) => toolName)
668
668
  );
669
669
  var toolNameForAPosixReading = (toolName) => shellDialectOf(toolName) === "posix" ? SHELL_TOOL : toolName;
670
+ var SHELL_METACHARACTER = /[\s;&|<>()$`\\"'*?[\]#~{}!]/;
671
+ var SINGLE_QUOTE = "'";
672
+ var ESCAPED_SINGLE_QUOTE = `'\\''`;
673
+ var asOneShellWord = (text3) => SHELL_METACHARACTER.test(text3) ? `${SINGLE_QUOTE}${text3.replaceAll(SINGLE_QUOTE, ESCAPED_SINGLE_QUOTE)}${SINGLE_QUOTE}` : text3;
670
674
 
671
675
  // ../contracts/src/agent-wiring.ts
672
676
  var COMPATIBLE_AGENT_TYPES = ["qwen_code", "codebuddy", "qoder", "droid", "devin", "antigravity_cli", "grok"];
@@ -722,17 +726,24 @@ var taskControlLookup = (control, toolInput) => {
722
726
  return { tool: control.name, input: toolInput, unreadable: false };
723
727
  };
724
728
  var controlsTasks = (profile, toolName) => profile.taskControl?.name === toolName ? profile.taskControl : void 0;
729
+ var runsInlineScript = (profile, toolName) => profile.inlineScript?.name === toolName ? profile.inlineScript : void 0;
730
+ var shellContextOf = (profile, toolInput) => Object.fromEntries(profile.shellContextKeys.flatMap((key) => toolInput[key] === void 0 ? [] : [[key, toolInput[key]]]));
731
+ var inlineScriptLookup = (profile, runner, toolInput) => {
732
+ const script = toolInput[runner.scriptKey];
733
+ if (!typesText(script)) return { tool: SHELL_TOOL, input: toolInput, unreadable: true };
734
+ const command = `${runner.interpreter} -c ${asOneShellWord(script)}`;
735
+ return { tool: SHELL_TOOL, input: { command, ...shellContextOf(profile, toolInput) }, unreadable: false };
736
+ };
725
737
  var toToolLookup = (profile, toolName, toolInput, resolvePath = (path) => path) => {
726
738
  const taskControl = controlsTasks(profile, toolName);
727
739
  if (taskControl) return taskControlLookup(taskControl, toolInput);
740
+ const inlineScript = runsInlineScript(profile, toolName);
741
+ if (inlineScript) return inlineScriptLookup(profile, inlineScript, toolInput);
728
742
  const tool = canonicalToolName(profile, toolName);
729
743
  if (SHELL_TOOLS.has(tool)) {
730
744
  const command = firstString(toolInput, [...profile.shellCommandKeys, ...CANONICAL_COMMAND_KEYS]);
731
745
  if (!command) return { tool, input: toolInput, unreadable: true };
732
- const context = Object.fromEntries(
733
- profile.shellContextKeys.flatMap((key) => toolInput[key] === void 0 ? [] : [[key, toolInput[key]]])
734
- );
735
- return { tool, input: { command, ...context }, unreadable: false };
746
+ return { tool, input: { command, ...shellContextOf(profile, toolInput) }, unreadable: false };
736
747
  }
737
748
  if (!PATH_TOOLS.has(tool)) return { tool, input: toolInput, unreadable: false };
738
749
  const paths2 = pathsNamedIn(toolInput, filePathKeysOf(profile));
@@ -868,6 +879,7 @@ var QWEN_CODE = {
868
879
  configDirIsShared: false,
869
880
  soleGate: null,
870
881
  taskControl: null,
882
+ inlineScript: null,
871
883
  promptFollowsPreToolUseAllow: true,
872
884
  permissionRequestPaths: "shell_escaped"
873
885
  };
@@ -894,6 +906,7 @@ var CODEBUDDY = {
894
906
  configDirIsShared: false,
895
907
  soleGate: null,
896
908
  taskControl: null,
909
+ inlineScript: null,
897
910
  promptFollowsPreToolUseAllow: false,
898
911
  permissionRequestPaths: "as_pre_tool_use"
899
912
  };
@@ -920,6 +933,7 @@ var QODER = {
920
933
  configDirIsShared: false,
921
934
  soleGate: null,
922
935
  taskControl: null,
936
+ inlineScript: null,
923
937
  promptFollowsPreToolUseAllow: false,
924
938
  permissionRequestPaths: "as_pre_tool_use"
925
939
  };
@@ -951,6 +965,7 @@ var DROID = {
951
965
  configDirIsShared: false,
952
966
  soleGate: null,
953
967
  taskControl: null,
968
+ inlineScript: null,
954
969
  promptFollowsPreToolUseAllow: false,
955
970
  permissionRequestPaths: "as_pre_tool_use"
956
971
  };
@@ -987,6 +1002,7 @@ var DEVIN = {
987
1002
  configDirIsShared: false,
988
1003
  soleGate: null,
989
1004
  taskControl: null,
1005
+ inlineScript: null,
990
1006
  promptFollowsPreToolUseAllow: false,
991
1007
  permissionRequestPaths: "as_pre_tool_use"
992
1008
  };
@@ -999,6 +1015,11 @@ var ANTIGRAVITY_TASK_CONTROL = {
999
1015
  outputActions: ["list", "status"],
1000
1016
  stopAction: "kill"
1001
1017
  };
1018
+ var ANTIGRAVITY_WORKFLOW_SCRIPT = {
1019
+ name: "run_workflow",
1020
+ scriptKey: "Script",
1021
+ interpreter: "python3"
1022
+ };
1002
1023
  var ANTIGRAVITY_CLI = {
1003
1024
  agentType: "antigravity_cli",
1004
1025
  source: "antigravity",
@@ -1042,9 +1063,10 @@ var ANTIGRAVITY_CLI = {
1042
1063
  key: "toolPermission",
1043
1064
  value: "always-proceed",
1044
1065
  receipt: [".pushary", "setup", "antigravity-tool-permission.json"],
1045
- coveredTools: [ANTIGRAVITY_TASK_CONTROL.name]
1066
+ coveredTools: [ANTIGRAVITY_TASK_CONTROL.name, ANTIGRAVITY_WORKFLOW_SCRIPT.name]
1046
1067
  },
1047
1068
  taskControl: ANTIGRAVITY_TASK_CONTROL,
1069
+ inlineScript: ANTIGRAVITY_WORKFLOW_SCRIPT,
1048
1070
  promptFollowsPreToolUseAllow: false,
1049
1071
  permissionRequestPaths: "as_pre_tool_use"
1050
1072
  };
@@ -1081,6 +1103,7 @@ var GROK = {
1081
1103
  configDirIsShared: false,
1082
1104
  soleGate: null,
1083
1105
  taskControl: null,
1106
+ inlineScript: null,
1084
1107
  promptFollowsPreToolUseAllow: false,
1085
1108
  permissionRequestPaths: "as_pre_tool_use"
1086
1109
  };
@@ -3045,7 +3068,7 @@ var UNCERTAIN_SQL = { kind: "uncertain" };
3045
3068
  var STRING_PLACEHOLDER = "''";
3046
3069
  var TOKEN_GAP = " ";
3047
3070
  var STATEMENT_SEPARATOR2 = ";";
3048
- var SINGLE_QUOTE = "'";
3071
+ var SINGLE_QUOTE2 = "'";
3049
3072
  var DOUBLE_QUOTE = '"';
3050
3073
  var BACKTICK = "`";
3051
3074
  var BRACKET_IDENTIFIER_OPEN = "[";
@@ -3079,7 +3102,7 @@ var isIdentifierStart = (character) => ASCII_LETTER_OR_UNDERSCORE.test(character
3079
3102
  var isDecimalDigit = (character) => DECIMAL_DIGIT.test(character);
3080
3103
  var isWordCharacter = (character) => isIdentifierStart(character) || isDecimalDigit(character);
3081
3104
  var isIdentifierPart = (character) => isWordCharacter(character) || character === DOLLAR;
3082
- var isQuote = (character) => character === SINGLE_QUOTE || character === DOUBLE_QUOTE || character === BACKTICK;
3105
+ var isQuote = (character) => character === SINGLE_QUOTE2 || character === DOUBLE_QUOTE || character === BACKTICK;
3083
3106
  var isLineCommentTerminator = (character) => character === NEWLINE2 || character === CARRIAGE_RETURN2;
3084
3107
  var isControlOrSpace = (character) => {
3085
3108
  const code = character.charCodeAt(0);
@@ -3141,9 +3164,9 @@ var blockCommentEnd = (source, start, lexicon) => {
3141
3164
  }
3142
3165
  return "uncertain";
3143
3166
  };
3144
- var opensAnEscapeString = (source, start, lexicon) => lexicon.escapeStringPrefix === "backslash-escapes" && source.charAt(start) === SINGLE_QUOTE && ESCAPE_STRING_PREFIX.test(source.charAt(start - 1)) && !isIdentifierPart(source.charAt(start - 2));
3167
+ var opensAnEscapeString = (source, start, lexicon) => lexicon.escapeStringPrefix === "backslash-escapes" && source.charAt(start) === SINGLE_QUOTE2 && ESCAPE_STRING_PREFIX.test(source.charAt(start - 1)) && !isIdentifierPart(source.charAt(start - 2));
3145
3168
  var quotedTextSyntaxOf = (quote, lexicon) => {
3146
- if (quote === SINGLE_QUOTE) return lexicon.singleQuotes;
3169
+ if (quote === SINGLE_QUOTE2) return lexicon.singleQuotes;
3147
3170
  if (quote === DOUBLE_QUOTE) return lexicon.doubleQuotes;
3148
3171
  return lexicon.backticks;
3149
3172
  };
@@ -3160,7 +3183,7 @@ var quotedTextEnd = (source, start, opener, syntax, reading) => {
3160
3183
  if (end !== "uncertain" || syntax.backslashes === "uncertain-before-the-quote") return end;
3161
3184
  return readsBackslashesLiterally(syntax, reading) ? doubledQuoteEnd(source, from, opener, "ordinary") : escapedQuoteEnd(source, from, opener, reading.lexicon);
3162
3185
  };
3163
- var opensAUnicodeEscapedQuote = (source, start) => source.charAt(start) !== SINGLE_QUOTE && UNICODE_ESCAPE_PREFIX.test(source.slice(Math.max(0, start - 2), start));
3186
+ var opensAUnicodeEscapedQuote = (source, start) => source.charAt(start) !== SINGLE_QUOTE2 && UNICODE_ESCAPE_PREFIX.test(source.slice(Math.max(0, start - 2), start));
3164
3187
  var swallowsABacktick = (source, start, end, lexicon) => {
3165
3188
  if (source.charAt(start) !== BACKTICK) return false;
3166
3189
  for (let index = start; index !== -1 && index < end; index = source.indexOf(BACKTICK, index + 1)) {
@@ -5545,10 +5568,6 @@ var invocationTextWith = ({ program, args }, wordText) => {
5545
5568
  return [name, ...kept.map(wordText)].join(" ");
5546
5569
  };
5547
5570
  var normalizedInvocation = (invocation) => invocationTextWith(invocation, (word) => word.text);
5548
- var SHELL_METACHARACTER = /[\s;&|<>()$`\\"'*?[\]#~{}!]/;
5549
- var SINGLE_QUOTE2 = "'";
5550
- var ESCAPED_SINGLE_QUOTE = `'\\''`;
5551
- var asOneShellWord = (text3) => SHELL_METACHARACTER.test(text3) ? `${SINGLE_QUOTE2}${text3.replaceAll(SINGLE_QUOTE2, ESCAPED_SINGLE_QUOTE)}${SINGLE_QUOTE2}` : text3;
5552
5571
  var quotedInvocation = (invocation) => invocationTextWith(invocation, (word) => asOneShellWord(word.text));
5553
5572
  var normalizedCommand = (command) => {
5554
5573
  const segments = readableCommandSegments(command);
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-ORELODI4.js";
3
+ } from "./chunk-6UGVZTRA.js";
4
4
  import {
5
5
  parseFlags
6
6
  } from "./chunk-YPY4YCIZ.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-YU2EUD7O.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-K3RPTQGZ.js";
12
+ } from "./chunk-P5JV6YZW.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-BEYMW4FP.js";
20
+ } from "./chunk-KB7YWU7A.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  UNNAMED_ACTION
3
- } from "./chunk-5EEIROLA.js";
3
+ } from "./chunk-JIH55UHZ.js";
4
4
  import {
5
5
  askUser,
6
6
  isAwayPaused,
7
7
  isLocalQuestionHandoff,
8
8
  unavailableQuestionUnlessRefused,
9
9
  waitForQuestion
10
- } from "./chunk-NGGBXN6M.js";
10
+ } from "./chunk-ICHKAH5Q.js";
11
11
  import {
12
12
  getMachineId
13
- } from "./chunk-HJW4HIGB.js";
13
+ } from "./chunk-4RSJZOKB.js";
14
14
  import {
15
15
  hookWaitClamped,
16
16
  hookWaitDeadline,
17
17
  scopeBreachReasonOf
18
- } from "./chunk-BEYMW4FP.js";
18
+ } from "./chunk-KB7YWU7A.js";
19
19
 
20
20
  // src/pushed-question.ts
21
21
  var scopeQuestionOf = (verdict) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_SESSION
3
- } from "./chunk-6BUQ6KQ3.js";
3
+ } from "./chunk-ALRANF2G.js";
4
4
 
5
5
  // src/answer.ts
6
6
  var isDeferAnswer = (value) => value === "defer";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-CYTPQDQY.js";
4
4
  import {
5
5
  parseVersion
6
- } from "./chunk-OEQFFPBU.js";
6
+ } from "./chunk-PMEDJ4WM.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-BEYMW4FP.js";
9
+ } from "./chunk-KB7YWU7A.js";
10
10
 
11
11
  // src/setup/agent-probe.ts
12
12
  import { execSync } from "child_process";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-BG4HHB7E.js";
4
4
  import {
5
5
  renderCommandHelp
6
- } from "./chunk-K3RPTQGZ.js";
6
+ } from "./chunk-P5JV6YZW.js";
7
7
  import {
8
8
  getPackageVersion
9
9
  } from "./chunk-WIIMW5YO.js";
@@ -3,7 +3,7 @@ import {
3
3
  formatVersion,
4
4
  quoteIfNeeded,
5
5
  shellDoubleQuoted
6
- } from "./chunk-OEQFFPBU.js";
6
+ } from "./chunk-PMEDJ4WM.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-TODDEIYG.js";
@@ -22,7 +22,7 @@ import {
22
22
  PUSHARY_HOSTS,
23
23
  PUSHARY_TOOL_PREFIX,
24
24
  withHookHoldBudget
25
- } from "./chunk-BEYMW4FP.js";
25
+ } from "./chunk-KB7YWU7A.js";
26
26
 
27
27
  // src/setup/paths.ts
28
28
  import { createHash as createHash2 } from "crypto";