pushary 1.9.245 → 1.9.247

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 (145) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +2 -2
  3. package/data/cursor-plugin/README.md +1 -1
  4. package/data/vscode-plugin/README.md +1 -1
  5. package/dist/{api-6L636FFI.js → api-AP7ZKAC4.js} +11 -11
  6. package/dist/bin/pushary-audit.js +3 -3
  7. package/dist/bin/pushary-bell-hook.js +28 -28
  8. package/dist/bin/pushary-bell.js +12 -12
  9. package/dist/bin/pushary-calls.js +15 -15
  10. package/dist/bin/pushary-claude.js +26 -26
  11. package/dist/bin/pushary-clean.js +39 -39
  12. package/dist/bin/pushary-codex-bridge.js +23 -23
  13. package/dist/bin/pushary-codex-hook.js +34 -34
  14. package/dist/bin/pushary-codex-session.js +8 -8
  15. package/dist/bin/pushary-codex.js +16 -16
  16. package/dist/bin/pushary-connect.js +35 -35
  17. package/dist/bin/pushary-cowork.js +5 -5
  18. package/dist/bin/pushary-daemon.js +46 -46
  19. package/dist/bin/pushary-disconnect.js +33 -31
  20. package/dist/bin/pushary-display-hook.js +73 -4
  21. package/dist/bin/pushary-doctor.js +47 -47
  22. package/dist/bin/pushary-elicitation-hook.js +27 -27
  23. package/dist/bin/pushary-gemini-bridge.js +18 -18
  24. package/dist/bin/pushary-gemini-hook.js +31 -31
  25. package/dist/bin/pushary-hook.js +35 -35
  26. package/dist/bin/pushary-login.js +23 -23
  27. package/dist/bin/pushary-logout.js +31 -31
  28. package/dist/bin/pushary-mcp.js +12 -12
  29. package/dist/bin/pushary-mode.js +16 -16
  30. package/dist/bin/pushary-notification-hook.js +27 -27
  31. package/dist/bin/pushary-opencode-bridge.js +22 -22
  32. package/dist/bin/pushary-opencode-hook.js +32 -32
  33. package/dist/bin/pushary-permission-denied-hook.js +34 -34
  34. package/dist/bin/pushary-permission-hook.js +35 -35
  35. package/dist/bin/pushary-post-hook.js +28 -28
  36. package/dist/bin/pushary-prompt-hook.js +27 -27
  37. package/dist/bin/pushary-session-end-hook.js +27 -27
  38. package/dist/bin/pushary-session-start-hook.js +39 -39
  39. package/dist/bin/pushary-sessions.js +12 -12
  40. package/dist/bin/pushary-setup.js +58 -58
  41. package/dist/bin/pushary-stats.js +5 -5
  42. package/dist/bin/pushary-status.js +36 -36
  43. package/dist/bin/pushary-stop-hook.js +27 -27
  44. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  45. package/dist/bin/pushary-suggestions.js +16 -16
  46. package/dist/bin/pushary-transcript-register.js +17 -17
  47. package/dist/bin/pushary-transcripts.js +26 -26
  48. package/dist/bin/pushary-upgrade.js +47 -47
  49. package/dist/bin/pushary-wait.js +16 -16
  50. package/dist/bin/pushary.js +7 -7
  51. package/dist/{chunk-VRDTIJQX.js → chunk-23J7UISJ.js} +49 -6
  52. package/dist/{chunk-IU5EUBFI.js → chunk-2BZECJVP.js} +4 -4
  53. package/dist/{chunk-VNUBOY2Z.js → chunk-2MHP66YE.js} +1 -1
  54. package/dist/{chunk-WXLHDE5H.js → chunk-33D2NTVD.js} +5 -5
  55. package/dist/{chunk-R5LKQNBS.js → chunk-3WVNDX5O.js} +4 -4
  56. package/dist/{chunk-7WIYDCUB.js → chunk-44K7GQQF.js} +1 -1
  57. package/dist/{chunk-BATXVYBR.js → chunk-46IJNC36.js} +1 -1
  58. package/dist/{chunk-IR67OATS.js → chunk-4CU2JKVB.js} +6 -6
  59. package/dist/{chunk-ZFLMWNUJ.js → chunk-4HYHQYHX.js} +7 -5
  60. package/dist/{chunk-7MFLS3LV.js → chunk-4JT2BY7S.js} +4 -4
  61. package/dist/{chunk-DY45DRQQ.js → chunk-534LSPWP.js} +2 -2
  62. package/dist/{chunk-WAUNJPDC.js → chunk-5JLTTZ4A.js} +1 -1
  63. package/dist/{chunk-ZQYH7EKR.js → chunk-5ZV4OJLQ.js} +3 -3
  64. package/dist/{chunk-NQU5VPJ2.js → chunk-64QB6LAZ.js} +1 -1
  65. package/dist/{chunk-NEKEDV5H.js → chunk-6L7SVCL7.js} +2 -2
  66. package/dist/{chunk-CDVHWJPI.js → chunk-6LNSHFHD.js} +253 -15
  67. package/dist/{chunk-JXH56OQJ.js → chunk-7KQL5NR6.js} +1 -1
  68. package/dist/{chunk-CFPHF7TJ.js → chunk-7MZQVWYF.js} +5 -5
  69. package/dist/{chunk-VJGNKY3G.js → chunk-A7OIGKCQ.js} +4 -4
  70. package/dist/{chunk-6EIVM3CN.js → chunk-AABRXBIY.js} +1 -1
  71. package/dist/{chunk-RAK5AKBH.js → chunk-AAM62GRJ.js} +1 -1
  72. package/dist/{chunk-ZICVRFNH.js → chunk-ABEAPF3L.js} +1 -1
  73. package/dist/{chunk-INLOMDYZ.js → chunk-AXCLC72D.js} +8 -8
  74. package/dist/{chunk-TQVA4OWU.js → chunk-B236OY5Z.js} +3 -3
  75. package/dist/{chunk-G2QR2OOD.js → chunk-BXY5XZEI.js} +2 -2
  76. package/dist/{chunk-3C3U43UY.js → chunk-C22UGPRX.js} +1 -1
  77. package/dist/{chunk-BNB7VOJE.js → chunk-CN7P65IZ.js} +2 -2
  78. package/dist/{chunk-DFKAUEKJ.js → chunk-D5PK3FCS.js} +3 -3
  79. package/dist/{chunk-ZELRSKRA.js → chunk-DIVCBKJX.js} +2 -2
  80. package/dist/{chunk-GZ2EWBNW.js → chunk-DVM22JGJ.js} +5 -5
  81. package/dist/{chunk-PGWUHKNZ.js → chunk-F5F7S2JJ.js} +6 -6
  82. package/dist/{chunk-2KJUGUYQ.js → chunk-FFFNHVN6.js} +6 -6
  83. package/dist/{chunk-I46M3FVO.js → chunk-FGDWDPRQ.js} +7 -7
  84. package/dist/{chunk-WMDZB37J.js → chunk-GA6CXG7J.js} +1 -1
  85. package/dist/{chunk-I5QXVNJ6.js → chunk-GRF3ROE7.js} +5 -5
  86. package/dist/{chunk-PEQ3TYLP.js → chunk-GRI3QUPX.js} +3 -3
  87. package/dist/{chunk-HZSTXGMB.js → chunk-GVGLZBOG.js} +3 -3
  88. package/dist/{chunk-7ZIPMIC2.js → chunk-GZBAWH5W.js} +4 -4
  89. package/dist/{chunk-M3EGOLWI.js → chunk-HGWBXD3A.js} +2 -2
  90. package/dist/{chunk-4OMJ2LP2.js → chunk-I5EO46FK.js} +4 -4
  91. package/dist/{chunk-B62INGJG.js → chunk-JJTKHAVD.js} +3 -3
  92. package/dist/{chunk-DZS3JN6U.js → chunk-JS3LOMRQ.js} +3 -3
  93. package/dist/{chunk-332UCKZR.js → chunk-K3KHHIKW.js} +4 -4
  94. package/dist/{chunk-5UZ6VRUA.js → chunk-KO3VP7KV.js} +4 -4
  95. package/dist/{chunk-XWL4ZWTC.js → chunk-L5YCMEOV.js} +1 -1
  96. package/dist/{chunk-VBO4B4PL.js → chunk-LHKIMBJO.js} +10 -10
  97. package/dist/{chunk-IBLORC2W.js → chunk-MJI2OVQQ.js} +12 -12
  98. package/dist/{chunk-6KRO6DQC.js → chunk-MNYCJISM.js} +1 -1
  99. package/dist/{chunk-J7AUOLJD.js → chunk-MOOSK3D3.js} +5 -5
  100. package/dist/{chunk-73I733XY.js → chunk-MZAW27UT.js} +3 -3
  101. package/dist/{chunk-QV6SWMVL.js → chunk-NFCYFGGB.js} +5 -5
  102. package/dist/{chunk-J2FYEMDA.js → chunk-NMBUEXCN.js} +7 -7
  103. package/dist/{chunk-CA2BNB66.js → chunk-O5OPPV2S.js} +11 -11
  104. package/dist/{chunk-6BWATFAV.js → chunk-OQ4MBJEK.js} +2 -2
  105. package/dist/{chunk-JAXA5POJ.js → chunk-OXKDOZH5.js} +4 -4
  106. package/dist/{chunk-RHCDB25U.js → chunk-PCSUSVPL.js} +3 -3
  107. package/dist/{chunk-JEEYHFFF.js → chunk-QCYZY7SM.js} +1 -1
  108. package/dist/{chunk-CKCDYRLT.js → chunk-R7ZFEHXE.js} +1 -1
  109. package/dist/{chunk-F7MIUZU5.js → chunk-RGY5D5KQ.js} +2 -2
  110. package/dist/{chunk-BK7EZIAG.js → chunk-RJKX4FJJ.js} +2 -2
  111. package/dist/{chunk-THBEXOTL.js → chunk-S4N5VZRJ.js} +1 -1
  112. package/dist/{chunk-G57SFOGM.js → chunk-SI642PQX.js} +1 -1
  113. package/dist/{chunk-RY7SLZVY.js → chunk-SNO4Q74P.js} +16 -16
  114. package/dist/{chunk-RX4VUNYO.js → chunk-TIGMJWTH.js} +3 -3
  115. package/dist/{chunk-H75XNDPU.js → chunk-TIT3JTG2.js} +2 -2
  116. package/dist/{chunk-I3TBXGED.js → chunk-U4SM4755.js} +5 -5
  117. package/dist/{chunk-XCR3IXKE.js → chunk-UP4JGKLJ.js} +1 -1
  118. package/dist/{chunk-O2HFH6CO.js → chunk-URI4M2Y7.js} +1 -1
  119. package/dist/{chunk-4H6DCMIK.js → chunk-UTOND6JN.js} +4 -2
  120. package/dist/{chunk-JK2NYF6W.js → chunk-UYI7GNRI.js} +4 -4
  121. package/dist/{chunk-JOOLRMRT.js → chunk-VX54TD6Y.js} +1 -1
  122. package/dist/{chunk-GFNMWJXO.js → chunk-VYGQZDXZ.js} +1 -1
  123. package/dist/{chunk-QRUVYQM5.js → chunk-WDW4F5RB.js} +1 -1
  124. package/dist/{chunk-GTSVMILT.js → chunk-WSNBD56T.js} +2 -2
  125. package/dist/{chunk-KS4N7MUS.js → chunk-XF6LGULK.js} +6 -6
  126. package/dist/{chunk-YTBF2NG7.js → chunk-XRKK7REL.js} +9 -9
  127. package/dist/{chunk-NGABIHSJ.js → chunk-Y7I5JUKB.js} +2 -2
  128. package/dist/{chunk-3DW6IVG5.js → chunk-YTGHV5F3.js} +2 -2
  129. package/dist/{chunk-IHJ37K7X.js → chunk-ZEYB3PCY.js} +5 -5
  130. package/dist/{chunk-HHY574OJ.js → chunk-ZHQ5GDGT.js} +6 -6
  131. package/dist/{chunk-RBQWVGEX.js → chunk-ZPXFKXHV.js} +3 -3
  132. package/dist/{codex-app-cards-switch-I6WJCVY4.js → codex-app-cards-switch-LSUHIBWH.js} +11 -11
  133. package/dist/{codex-card-routing-L4TL5YB4.js → codex-card-routing-UALNWUT7.js} +2 -2
  134. package/dist/{codex-desktop-launch-Y4ODCUFU.js → codex-desktop-launch-NJJP3LOL.js} +3 -3
  135. package/dist/{codex-session-launch-7CS4XAD3.js → codex-session-launch-SV3UAIQN.js} +20 -20
  136. package/dist/{config-77UADC3N.js → config-DIUV6RBG.js} +3 -3
  137. package/dist/{global-upgrade-Q2QSVP7H.js → global-upgrade-432FL35T.js} +9 -9
  138. package/dist/{identity-5EC2OOW7.js → identity-Y4TV3HOR.js} +4 -4
  139. package/dist/{live-capabilities-E23EJXRF.js → live-capabilities-TF5OI6MP.js} +4 -4
  140. package/dist/{paths-TTYM7HYI.js → paths-PUHJCRSZ.js} +3 -3
  141. package/dist/{reapply-77GHMCBD.js → reapply-YF6ZPMSG.js} +34 -34
  142. package/dist/src/index.js +33 -33
  143. package/dist/{upgrade-lock-PH5LW5VB.js → upgrade-lock-KGXKS5S3.js} +4 -4
  144. package/dist/{usage-QZ2S5AGT.js → usage-D7HCNUXP.js} +3 -3
  145. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  autoUpdateLock
3
- } from "./chunk-NGABIHSJ.js";
3
+ } from "./chunk-Y7I5JUKB.js";
4
4
  import {
5
5
  installPackageGlobally,
6
6
  npmErrorMessage,
7
7
  throwIfNpmRefusesInstall
8
- } from "./chunk-IU5EUBFI.js";
8
+ } from "./chunk-2BZECJVP.js";
9
9
  import {
10
10
  writeJsonAtomic
11
11
  } from "./chunk-PM2NRK6Y.js";
@@ -21,6 +21,7 @@ var HOOK_BUDGETS = {
21
21
  qoder: { budgetSeconds: 600, guardSeconds: 10 },
22
22
  droid: { budgetSeconds: 600, guardSeconds: 10 },
23
23
  devin: { budgetSeconds: 600, guardSeconds: 10 },
24
+ openhands: { budgetSeconds: 600, guardSeconds: 10 },
24
25
  antigravity: { budgetSeconds: 600, guardSeconds: 10 },
25
26
  grok: { budgetSeconds: 600, guardSeconds: 10 }
26
27
  };
@@ -598,6 +599,22 @@ var AGENTS = {
598
599
  enforcementDetail: "Shell, edits and MCP calls through native PreToolUse hooks. Grok's own permission checks still apply after a phone approval.",
599
600
  capabilityNote: "Grok's read-only tools (`grep`, `list_dir`, `glob`, `read_file`, `todo_write`, `search_tool`) are never asked about, as Claude Code's reads are not; a rule that denies one still blocks it. Grok fails open if it kills a hook or cannot run it. Setup leaves Grok's permission mode unchanged. Native question and plan dialogs stay in Grok; proactive phone questions use Pushary MCP."
600
601
  },
602
+ openhands: {
603
+ ...defaults,
604
+ label: "OpenHands",
605
+ activationGuide: "/docs/agents/guides/openhands#check-that-it-works",
606
+ hookSource: "openhands",
607
+ bridged: true,
608
+ policyAgent: "openhands",
609
+ repoAware: true,
610
+ disconnectable: true,
611
+ enforcement: "enforced",
612
+ connectVia: "Native hooks + MCP",
613
+ setupCommand: PUSHARY_SETUP_COMMAND,
614
+ setupGuide: "[OpenHands setup](/docs/agents/guides/openhands)",
615
+ enforcementDetail: "terminal, file_editor, apply_patch and the Gemini write_file and edit tools through native PreToolUse hooks in ~/.openhands/hooks.json, answered allow or deny.",
616
+ capabilityNote: "OpenHands hooks answer allow or deny, never ask, so an approval nobody answers is refused with a reason instead of running. Agent Canvas keeps MCP servers in its own encrypted settings, so add Pushary under Customize > MCP Servers, or install the Pushary plugin, to let the agent ask questions and send notifications. OpenHands Cloud reads hooks from the repository, so use the plugin or a .openhands/hooks.json in the repo there."
617
+ },
601
618
  grok_bot: {
602
619
  ...defaults,
603
620
  label: "Grok Bot",
@@ -720,6 +737,53 @@ var grokHookInput = (event, payload) => {
720
737
  return shaped;
721
738
  };
722
739
 
740
+ // ../contracts/src/openhands.ts
741
+ var OPENHANDS_FILE_EDITOR_TOOLS = /* @__PURE__ */ new Set(["file_editor", "planning_file_editor"]);
742
+ var OPENHANDS_ACTION_KIND_KEY = "kind";
743
+ var OPENHANDS_EDITOR_TOOL_BY_COMMAND = {
744
+ view: "Read",
745
+ create: "Write",
746
+ str_replace: "Edit",
747
+ insert: "Edit",
748
+ undo_edit: "Edit"
749
+ };
750
+ var OPENHANDS_EDITOR_FALLBACK_TOOL = "Edit";
751
+ var PROMPT_EVENT = "UserPromptSubmit";
752
+ var nonEmptyString = (value) => typeof value === "string" && value.length > 0 ? value : void 0;
753
+ var isSetActionField = ([key, value]) => key !== OPENHANDS_ACTION_KIND_KEY && value !== null;
754
+ var withSetActionFields = (toolInput) => isRecord(toolInput) ? Object.fromEntries(Object.entries(toolInput).filter(isSetActionField)) : toolInput;
755
+ var OPENHANDS_EVENT_FIELDS = /* @__PURE__ */ new Set(["tool_name", "tool_input", "tool_response", "message"]);
756
+ var isSetEventField = ([key, value]) => value !== null || !OPENHANDS_EVENT_FIELDS.has(key);
757
+ var withoutUnsetEventFields = (payload) => Object.fromEntries(Object.entries(payload).filter(isSetEventField));
758
+ var OPENHANDS_TOOL_ERROR = "OpenHands reported a tool error.";
759
+ var openHandsExitFailure = (exitCode) => typeof exitCode === "number" && exitCode !== 0 ? `Command exited with code ${exitCode}.` : void 0;
760
+ var openHandsToolResult = (value) => {
761
+ if (!isRecord(value) || !("is_error" in value)) return value;
762
+ const { is_error, ...result } = value;
763
+ const failure = is_error === true ? OPENHANDS_TOOL_ERROR : openHandsExitFailure(value.exit_code);
764
+ return failure ? { ...result, error: failure } : result;
765
+ };
766
+ var openHandsEditorTool = (toolInput) => {
767
+ const command = isRecord(toolInput) ? toolInput.command : void 0;
768
+ return typeof command === "string" ? OPENHANDS_EDITOR_TOOL_BY_COMMAND[command] ?? OPENHANDS_EDITOR_FALLBACK_TOOL : OPENHANDS_EDITOR_FALLBACK_TOOL;
769
+ };
770
+ var openHandsToolName = (toolName, toolInput) => typeof toolName === "string" && OPENHANDS_FILE_EDITOR_TOOLS.has(toolName) ? openHandsEditorTool(toolInput) : toolName;
771
+ var openHandsHookInput = (event, payload) => {
772
+ const name = nonEmptyString(payload.event_type) ?? nonEmptyString(payload.hook_event_name) ?? event;
773
+ const cwd = nonEmptyString(payload.working_dir) ?? nonEmptyString(payload.cwd);
774
+ const prompt = name === PROMPT_EVENT ? nonEmptyString(payload.message) : void 0;
775
+ const toolInput = withSetActionFields(payload.tool_input);
776
+ return {
777
+ ...withoutUnsetEventFields(payload),
778
+ ...name ? { hook_event_name: name } : {},
779
+ ...cwd ? { cwd } : {},
780
+ ...prompt ? { prompt } : {},
781
+ ...typeof payload.tool_name === "string" ? { tool_name: openHandsToolName(payload.tool_name, toolInput) } : {},
782
+ ...isRecord(toolInput) ? { tool_input: toolInput } : {},
783
+ ...isRecord(payload.tool_response) ? { tool_response: openHandsToolResult(payload.tool_response) } : {}
784
+ };
785
+ };
786
+
723
787
  // ../contracts/src/shell-tools.ts
724
788
  var SHELL_TOOL = "Bash";
725
789
  var POWERSHELL_TOOL = "PowerShell";
@@ -740,7 +804,7 @@ var ESCAPED_SINGLE_QUOTE = `'\\''`;
740
804
  var asOneShellWord = (text3) => SHELL_METACHARACTER.test(text3) ? `${SINGLE_QUOTE}${text3.replaceAll(SINGLE_QUOTE, ESCAPED_SINGLE_QUOTE)}${SINGLE_QUOTE}` : text3;
741
805
 
742
806
  // ../contracts/src/agent-wiring.ts
743
- var COMPATIBLE_AGENT_TYPES = ["qwen_code", "codebuddy", "qoder", "droid", "devin", "antigravity_cli", "grok"];
807
+ var COMPATIBLE_AGENT_TYPES = ["qwen_code", "codebuddy", "qoder", "droid", "devin", "antigravity_cli", "grok", "openhands"];
744
808
  var isCompatibleAgentType = (value) => typeof value === "string" && COMPATIBLE_AGENT_TYPES.includes(value);
745
809
  var homeJson = (...path) => ({ root: "home", path, format: "json" });
746
810
  var homeFile = (...path) => ({ root: "home", path });
@@ -861,28 +925,28 @@ var refusalOutput = (profile, reason) => JSON.stringify(renderPreToolUseVerdict(
861
925
  }));
862
926
  var ANTIGRAVITY_MCP_TOOL = "call_mcp_tool";
863
927
  var isPayloadRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
864
- var nonEmptyString = (value) => typeof value === "string" && value.length > 0 ? value : void 0;
928
+ var nonEmptyString2 = (value) => typeof value === "string" && value.length > 0 ? value : void 0;
865
929
  var mcpToolCall = (args) => {
866
- const server = nonEmptyString(args.ServerName);
867
- const tool = nonEmptyString(args.ToolName);
930
+ const server = nonEmptyString2(args.ServerName);
931
+ const tool = nonEmptyString2(args.ToolName);
868
932
  if (!server || !tool) return void 0;
869
933
  return { tool_name: `mcp__${server}__${tool}`, tool_input: isPayloadRecord(args.Arguments) ? args.Arguments : {} };
870
934
  };
871
935
  var antigravityToolCall = (toolCall) => {
872
936
  if (!isPayloadRecord(toolCall)) return void 0;
873
- const name = nonEmptyString(toolCall.name);
937
+ const name = nonEmptyString2(toolCall.name);
874
938
  if (!name) return void 0;
875
939
  const args = isPayloadRecord(toolCall.args) ? toolCall.args : {};
876
940
  return (name === ANTIGRAVITY_MCP_TOOL ? mcpToolCall(args) : void 0) ?? { tool_name: name, tool_input: args };
877
941
  };
878
- var firstWorkspace = (payload) => Array.isArray(payload.workspacePaths) ? payload.workspacePaths.map(nonEmptyString).find(Boolean) : void 0;
942
+ var firstWorkspace = (payload) => Array.isArray(payload.workspacePaths) ? payload.workspacePaths.map(nonEmptyString2).find(Boolean) : void 0;
879
943
  var fromAntigravity = (event, payload) => {
880
944
  const { toolCall, ...rest } = payload;
881
945
  const call = antigravityToolCall(toolCall);
882
- const cwd = firstWorkspace(payload) ?? nonEmptyString(call?.tool_input.Cwd);
883
- const sessionId = nonEmptyString(payload.conversationId);
884
- const transcriptPath = nonEmptyString(payload.transcriptPath);
885
- const error = event === "PostToolUse" ? nonEmptyString(payload.error) : void 0;
946
+ const cwd = firstWorkspace(payload) ?? nonEmptyString2(call?.tool_input.Cwd);
947
+ const sessionId = nonEmptyString2(payload.conversationId);
948
+ const transcriptPath = nonEmptyString2(payload.transcriptPath);
949
+ const error = event === "PostToolUse" ? nonEmptyString2(payload.error) : void 0;
886
950
  return {
887
951
  ...rest,
888
952
  ...event ? { hook_event_name: event } : {},
@@ -895,6 +959,7 @@ var fromAntigravity = (event, payload) => {
895
959
  };
896
960
  var claudeShapedHookInput = (dialect, event, payload) => {
897
961
  if (dialect === "grok") return grokHookInput(event, payload);
962
+ if (dialect === "openhands") return openHandsHookInput(event, payload);
898
963
  return dialect === "antigravity" ? fromAntigravity(event, payload) : payload;
899
964
  };
900
965
  var CLAUDE_SHAPED_EVENTS = [
@@ -1182,7 +1247,41 @@ var GROK = {
1182
1247
  promptFollowsPreToolUseAllow: false,
1183
1248
  permissionRequestPaths: "as_pre_tool_use"
1184
1249
  };
1185
- var HOOK_COMPATIBLE_PROFILES = Object.freeze([QWEN_CODE, CODEBUDDY, QODER, DROID, DEVIN, ANTIGRAVITY_CLI, GROK]);
1250
+ var OPENHANDS = {
1251
+ agentType: "openhands",
1252
+ source: "openhands",
1253
+ label: "OpenHands",
1254
+ binary: "agent-canvas",
1255
+ configFile: homeJson(".openhands", "hooks.json"),
1256
+ hooksKeyPath: ["hooks"],
1257
+ toolAliases: {
1258
+ terminal: "Bash",
1259
+ file_editor: "Edit",
1260
+ planning_file_editor: "Edit",
1261
+ apply_patch: "Edit",
1262
+ write_file: "Write",
1263
+ edit: "Edit"
1264
+ },
1265
+ inputKeyAliases: { file_text: "content", old_str: "old_string", new_str: "new_string" },
1266
+ extraMatchers: [],
1267
+ pathInputKeys: [],
1268
+ shellCommandKeys: [],
1269
+ shellContextKeys: [],
1270
+ events: ["PreToolUse", "PostToolUse", "UserPromptSubmit", "Stop", "SessionStart", "SessionEnd"],
1271
+ wire: "allow_deny_decision",
1272
+ payload: "openhands",
1273
+ nonToolEntries: "nested",
1274
+ mcp: null,
1275
+ instructions: null,
1276
+ permissionRuleFile: null,
1277
+ configDirIsShared: false,
1278
+ soleGate: null,
1279
+ taskControl: null,
1280
+ inlineScript: null,
1281
+ promptFollowsPreToolUseAllow: false,
1282
+ permissionRequestPaths: "as_pre_tool_use"
1283
+ };
1284
+ var HOOK_COMPATIBLE_PROFILES = Object.freeze([QWEN_CODE, CODEBUDDY, QODER, DROID, DEVIN, ANTIGRAVITY_CLI, GROK, OPENHANDS]);
1186
1285
  var hookCompatibleProfile = (agentType) => HOOK_COMPATIBLE_PROFILES.find((profile) => profile.agentType === agentType);
1187
1286
  var hookCompatibleProfileBySource = (source) => HOOK_COMPATIBLE_PROFILES.find((profile) => profile.source === source);
1188
1287
  var compatibleProfileFor = (agentType) => HOOK_COMPATIBLE_PROFILES.find((profile) => profile.agentType === agentType);
@@ -3245,6 +3344,12 @@ var AGENT_ENFORCEMENT = {
3245
3344
  gatedTools: [...CLAUDE_SHAPED_GATED_TOOLS, "mcp_call_tool", "write_to_process"],
3246
3345
  notGated: "Any tool outside the matcher, such as reads, searches and web fetches. Devin registers no PermissionRequest, so those never reach a person through Pushary. Its wire turns an ask into a block."
3247
3346
  },
3347
+ openhands: {
3348
+ ...COMPATIBLE_HOOK_AGENT,
3349
+ localPrompt: LOCAL_PROMPT.refusalInstead,
3350
+ gatedTools: ["Bash", "Write", "Edit", "MultiEdit", "NotebookEdit", "PowerShell", "Monitor", "terminal", "file_editor", "planning_file_editor", "apply_patch", "write_file", "edit"],
3351
+ notGated: "Reads (a file_editor view, read_file), browser tools, task_tracker and MCP tools. OpenHands has no ask answer, so an approval nobody answers is refused with a reason. A hook that crashes or times out does not block in OpenHands, so the call goes on to OpenHands' own confirmation step, and runs when confirmation mode is off."
3352
+ },
3248
3353
  antigravity_cli: {
3249
3354
  ...HOOK_DECIDES_BEFORE_THE_CALL,
3250
3355
  localPrompt: LOCAL_PROMPT.refusalInstead,
@@ -5599,7 +5704,8 @@ var hookWaitDeadline = (startMs, policyWaitSeconds, agent, nowMs) => {
5599
5704
  var hookWaitClamped = (startMs, policyWaitSeconds, agent, nowMs) => startMs + hookMaxWaitSeconds(agent) * 1e3 < nowMs + Math.max(policyWaitSeconds, 0) * 1e3;
5600
5705
  var effectiveWaitSeconds = (timeoutAction, policySeconds, agent) => timeoutAction === "wait" ? hookMaxWaitSeconds(agent) : policySeconds;
5601
5706
  var isHookSource = (value) => typeof value === "string" && HOOK_SOURCES.includes(value);
5602
- var hasNativeApprovalPrompt = (source, event) => !(source === "cursor" && event === "preToolUse") && !(source === "antigravity" && event === "PreToolUse");
5707
+ var SOURCES_WITHOUT_A_PRE_TOOL_USE_PROMPT = /* @__PURE__ */ new Set(["antigravity", "openhands"]);
5708
+ var hasNativeApprovalPrompt = (source, event) => !(source === "cursor" && event === "preToolUse") && !(SOURCES_WITHOUT_A_PRE_TOOL_USE_PROMPT.has(source) && event === "PreToolUse");
5603
5709
  var SUPPORT_EMAIL = "business@pushary.com";
5604
5710
  var SUPPORT_DISCORD = "https://discord.gg/9v3VvUByrr";
5605
5711
  var HOOK_VERSION_PATTERN = /^\d+\.\d+\.\d+$/;
@@ -10630,9 +10736,20 @@ var bypassModeCovers = (toolName, toolInput, cwd) => {
10630
10736
  var aChosenRuleGovernsInEitherRepository = (input, counts = everyRule) => aChosenRuleGoverns(input, counts) || input.sharedRepoKey !== void 0 && input.sharedRepoKey !== input.repoKey && aChosenRuleGoverns({ ...input, repoKey: input.sharedRepoKey }, counts);
10631
10737
  var ruleAsksOrRefuses = (rule) => !isAutoApprove(rule);
10632
10738
  var bypassModeCoversEveryInput = (input) => input.deletesFiles !== true && input.toolInputs.every((toolInput) => bypassModeCovers(input.toolName, toolInput, input.cwd)) && !aChosenRuleGovernsInEitherRepository(input);
10633
- var bypassModeApplies = (input) => isBypassPermissionMode(input.permissionMode) && !isModeStateDegraded(input.modeState) && noModeOverrideIsActive(input) && input.toolInputs.length > 0;
10739
+ var editsAFileThatNeedsAPersonEvenWhenAllowed = (input) => input.toolInputs.some((toolInput) => editTargetNeedsAPersonEvenWhenAllowed(input.toolName, toolInput, input.cwd));
10740
+ var aRouteMayHoldAPushOfAnUnreportedBranch = (input) => {
10741
+ if (input.currentBranch !== void 0 || !callMayPushTheCurrentBranch(input.toolName, input.toolInputs)) return false;
10742
+ const routes = approvalRoutesOf(input.config);
10743
+ return routes === null || routes.length > 0;
10744
+ };
10745
+ var cursorKeepsTheStepForAPerson = (input) => editsAFileThatNeedsAPersonEvenWhenAllowed(input) || aRouteMayHoldAPushOfAnUnreportedBranch(input);
10746
+ var cursorRunModeTakesTheStep = (input) => input.cursorRunModeDecides === true && !cursorKeepsTheStepForAPerson(input);
10747
+ var theAgentRunsStepsWithoutAsking = (input) => isBypassPermissionMode(input.permissionMode) || cursorRunModeTakesTheStep(input);
10748
+ var bypassModeApplies = (input) => theAgentRunsStepsWithoutAsking(input) && !isModeStateDegraded(input.modeState) && noModeOverrideIsActive(input) && input.toolInputs.length > 0;
10634
10749
  var bypassModeAllows = (input) => bypassModeApplies(input) && (bypassStopsOf(input.config) === "nothing" ? !aChosenRuleGovernsInEitherRepository(input, ruleAsksOrRefuses) : bypassModeCoversEveryInput(input));
10635
10750
  var PERMISSIONS_OFF_ASK_REASON = "Permissions are off in your agent, so Pushary only stops for risky steps like this one. You can change this in Settings on pushary.com.";
10751
+ var CURSOR_RUN_MODE_ASK_REASON = "Cursor runs routine steps under its own Run Mode, so Pushary only stops for risky steps like this one. You can change this in Settings on pushary.com.";
10752
+ var stopsForRiskyStepsReasonOf = (input) => input.cursorRunModeDecides === true ? CURSOR_RUN_MODE_ASK_REASON : PERMISSIONS_OFF_ASK_REASON;
10636
10753
  var AGENTS_WHOSE_BYPASS_MODE_THE_PERSON_CHOSE = /* @__PURE__ */ new Set(["claude_code", "grok"]);
10637
10754
  var permissionsOffLineAppliesTo = (agentType) => typeof agentType === "string" && AGENTS_WHOSE_BYPASS_MODE_THE_PERSON_CHOSE.has(agentType);
10638
10755
  var PATTERN_PREFIX_WILDCARD = /(?::\*|\*)?\)$/;
@@ -10661,7 +10778,7 @@ var askAtTheRouteOfAPush = (input, repoKey, allowedBy) => {
10661
10778
  }
10662
10779
  return void 0;
10663
10780
  };
10664
- var permissionsOffAskReason = (input, verdict) => verdict.kind === "gate" && !verdict.scopeReason && !isAskedInEveryMode(input.toolName) && bypassModeApplies(input) && bypassStopsOf(input.config) === "consequences" && !aChosenRuleGovernsInEitherRepository(input) ? PERMISSIONS_OFF_ASK_REASON : void 0;
10781
+ var permissionsOffAskReason = (input, verdict) => verdict.kind === "gate" && !verdict.scopeReason && !isAskedInEveryMode(input.toolName) && bypassModeApplies(input) && bypassStopsOf(input.config) === "consequences" && !aChosenRuleGovernsInEitherRepository(input) ? stopsForRiskyStepsReasonOf(input) : void 0;
10665
10782
  var SCOPE_QUESTION_FIRST_WAIT_SECONDS = 30;
10666
10783
  var policyForScopeQuestion = (policy) => policy.timeoutAction === "approve" ? {
10667
10784
  ...policy,
@@ -10766,8 +10883,128 @@ var gateVerdictUnderOneArrowReading = (rawInput) => {
10766
10883
  scopePath: scopeReason && "path" in scopeVerdict ? widenablePath(scopeVerdict.path) : void 0
10767
10884
  };
10768
10885
  };
10886
+ var gateVerdictOfTheCall = (input) => underEachArrowReading(() => gateVerdictUnderOneArrowReading(input)).reduce(strictestGateVerdictOf);
10887
+ var MOST_STEPS_JUDGED_ALONE_IN_A_CALL = 64;
10888
+ var STEP_TEXT_READ_PER_CHARACTER_OF_THE_CALL = 8;
10889
+ var LEAST_STEP_TEXT_READ_IN_A_CALL = 65536;
10890
+ var lengthOfTheCommandIn = (toolName) => (toolInput) => extractPolicyArg(toolName, toolInput)?.length ?? 0;
10891
+ var stepBudgetFor = (input) => {
10892
+ const length = input.toolInputs.map(lengthOfTheCommandIn(input.toolName)).reduce((total, each) => total + each, 0);
10893
+ return {
10894
+ verdicts: /* @__PURE__ */ new Map(),
10895
+ destructive: /* @__PURE__ */ new Map(),
10896
+ charactersLeft: Math.max(LEAST_STEP_TEXT_READ_IN_A_CALL, length * STEP_TEXT_READ_PER_CHARACTER_OF_THE_CALL),
10897
+ judgementsLeft: MOST_STEPS_JUDGED_ALONE_IN_A_CALL
10898
+ };
10899
+ };
10900
+ var isSpent = (budget) => budget.charactersLeft < 0 || budget.judgementsLeft < 0;
10901
+ var readsWithin = (budget, characters) => {
10902
+ budget.charactersLeft -= characters;
10903
+ return !isSpent(budget);
10904
+ };
10905
+ var judgesWithin = (budget) => {
10906
+ budget.judgementsLeft -= 1;
10907
+ return !isSpent(budget);
10908
+ };
10909
+ var totalLengthOf = (texts) => texts.reduce((total, text3) => total + text3.length, 0);
10910
+ var scriptsReadIn = (scripts) => scripts.kind === "readable" ? scripts.scripts : [];
10911
+ var scriptsASegmentHandsToAShell = (segment) => {
10912
+ const innermost = innermostInvocation(segment.invocation);
10913
+ return [...scriptsReadIn(inlineScriptsOf(innermost, segment.heredocs)), ...scriptsReadIn(commandStringsARunnerRuns(innermost))];
10914
+ };
10915
+ var SEVERAL_COMMANDS = 2;
10916
+ var commandsOfAFindThatRunsSeveral = (segment) => {
10917
+ const commands = commandsRunByFind(innermostInvocation(segment.invocation)).map(verbatimInvocationText);
10918
+ return commands.length >= SEVERAL_COMMANDS ? commands : [];
10919
+ };
10920
+ var runsMoreThanOneCommand = (form) => readingWithEachSubstitutionPrintingOneWord(form) !== null || spelledSegmentsOf(form).length >= SEVERAL_COMMANDS;
10921
+ var isAnotherCommandThan = (command) => (step) => step !== command && trimShellWhitespace(step).length > 0;
10922
+ var TOO_MANY_FUNCTIONS_TO_READ_THE_STEPS = { kind: "too_many_functions" };
10923
+ var stepsOf = (command, spellings) => {
10924
+ const functions = bodiesOfFunctionsCalledIn(command, spelledSegmentsOf(command));
10925
+ if (functions.kind === "too_many") return TOO_MANY_FUNCTIONS_TO_READ_THE_STEPS;
10926
+ const substitutions = commandSubstitutionsReadIn(command);
10927
+ const bodies = substitutions.kind === "read" ? substitutions.bodies : [];
10928
+ const segments = spelledSegmentsOf(readingWithEachSubstitutionPrintingOneWord(command) ?? command);
10929
+ const steps = [
10930
+ ...segments.map((segment) => segment.text),
10931
+ ...bodies,
10932
+ ...functions.bodies,
10933
+ ...segments.flatMap(scriptsASegmentHandsToAShell),
10934
+ ...segments.flatMap(commandsOfAFindThatRunsSeveral),
10935
+ ...spellings.forms.filter(runsMoreThanOneCommand)
10936
+ ];
10937
+ return { kind: "read", steps: [...new Set(steps)].filter(isAnotherCommandThan(command)) };
10938
+ };
10939
+ var JUDGED_AS_A_WHOLE = { kind: "the_whole_call" };
10940
+ var NO_STEP_TO_JUDGE = { kind: "each_step", commands: [] };
10941
+ var stepIsDestructive = (toolName, budget) => (step) => {
10942
+ const known = budget.destructive.get(step);
10943
+ if (known !== void 0) return known;
10944
+ const destructive = commandIsDestructive(toolName, step);
10945
+ budget.destructive.set(step, destructive);
10946
+ return destructive;
10947
+ };
10948
+ var hidesWhatItRunsFrom = (toolName, spellings) => !spellingsAreComplete(spellings) || POSIX_SHELL_TOOLS.has(toolName) && spellings.hidesWhatItRuns;
10949
+ var destructiveStepsOf = (toolName, command, budget) => {
10950
+ try {
10951
+ if (!readsWithin(budget, command.length)) return JUDGED_AS_A_WHOLE;
10952
+ const spellings = commandSpellings(command, SPELLS_COMMAND_RUNNERS_TOO);
10953
+ if (hidesWhatItRunsFrom(toolName, spellings)) return JUDGED_AS_A_WHOLE;
10954
+ if (!stepIsDestructive(toolName, budget)(command)) return NO_STEP_TO_JUDGE;
10955
+ if (!readsWithin(budget, totalLengthOf(spellings.forms))) return JUDGED_AS_A_WHOLE;
10956
+ const read = stepsOf(command, spellings);
10957
+ if (read.kind === "too_many_functions" || !readsWithin(budget, totalLengthOf(read.steps))) return JUDGED_AS_A_WHOLE;
10958
+ const destructive = read.steps.filter(stepIsDestructive(toolName, budget));
10959
+ return read.steps.length > 0 && destructive.length === 0 ? JUDGED_AS_A_WHOLE : { kind: "each_step", commands: destructive };
10960
+ } catch {
10961
+ return JUDGED_AS_A_WHOLE;
10962
+ }
10963
+ };
10964
+ var callOfAStep = (input, toolInput) => (command) => ({ command, call: { ...input, toolInputs: [{ ...toolInput, command }] } });
10965
+ var callsOfEachDestructiveStep = (input, depth, budget) => {
10966
+ if (depth >= MAX_SPELLING_DEPTH) return JUDGED_AS_A_WHOLE;
10967
+ const steps = [];
10968
+ for (const toolInput of withExtraReadings(input).toolInputs) {
10969
+ const command = extractPolicyArg(input.toolName, toolInput);
10970
+ if (command === void 0) continue;
10971
+ const destructive = destructiveStepsOf(input.toolName, command, budget);
10972
+ if (destructive.kind === "the_whole_call") return JUDGED_AS_A_WHOLE;
10973
+ steps.push(...destructive.commands.map(callOfAStep(input, toolInput)));
10974
+ }
10975
+ return { kind: "each_step", steps };
10976
+ };
10977
+ var gateMayApproveWithoutAnAnswer = (verdict) => verdict.kind === "gate" && approvesWithoutAnAnswer(verdict.policy);
10978
+ var askThatMayApproveWithoutAnAnswer = (policy) => restricts(policy) && approvesWithoutAnAnswer(policy);
10979
+ var withoutAsksThatMayApproveWithoutAnAnswer = (config) => ({
10980
+ ...config,
10981
+ policies: config.policies.filter((policy) => !askThatMayApproveWithoutAnAnswer(policy))
10982
+ });
10983
+ var verdictsOfEachStep = (steps, depth, budget) => {
10984
+ const verdicts = [];
10985
+ for (const { command, call } of steps) {
10986
+ const known = budget.verdicts.get(command);
10987
+ if (known !== void 0) {
10988
+ verdicts.push(known);
10989
+ continue;
10990
+ }
10991
+ if (!judgesWithin(budget)) return verdicts;
10992
+ const verdict = gateVerdictNoWeakerThanItsSteps(call, depth + 1, budget);
10993
+ budget.verdicts.set(command, verdict);
10994
+ verdicts.push(verdict);
10995
+ }
10996
+ return verdicts;
10997
+ };
10998
+ var gateVerdictNoWeakerThanItsSteps = (input, depth, budget) => {
10999
+ const verdict = gateVerdictOfTheCall(input);
11000
+ if (!gateMayApproveWithoutAnAnswer(verdict) || !SHELL_DIALECT_BY_TOOL.has(input.toolName)) return verdict;
11001
+ const steps = callsOfEachDestructiveStep(input, depth, budget);
11002
+ const verdictsOfTheSteps = steps.kind === "each_step" ? verdictsOfEachStep(steps.steps, depth, budget) : [];
11003
+ const judgedAsAWhole = steps.kind === "the_whole_call" || isSpent(budget) ? [gateVerdictOfTheCall({ ...input, config: withoutAsksThatMayApproveWithoutAnAnswer(input.config) })] : [];
11004
+ return [...verdictsOfTheSteps, ...judgedAsAWhole].reduce(strictestGateVerdictOf, verdict);
11005
+ };
10769
11006
  var resolveGate = (rawInput) => {
10770
- const verdict = underEachArrowReading(() => gateVerdictUnderOneArrowReading(rawInput)).reduce(strictestGateVerdictOf);
11007
+ const verdict = gateVerdictNoWeakerThanItsSteps(rawInput, 0, stepBudgetFor(rawInput));
10771
11008
  return verdict.kind === "gate" ? { ...verdict, policy: withApprovalRouteWait(rawInput, verdict.policy) } : verdict;
10772
11009
  };
10773
11010
  var resolvedToolInputsOf = (input) => input.toolInputs.map((toolInput) => ({
@@ -11253,6 +11490,7 @@ var pendingCommandEvents = (source) => {
11253
11490
  case "droid":
11254
11491
  case "devin":
11255
11492
  case "antigravity":
11493
+ case "openhands":
11256
11494
  return compatiblePendingCommandEvents(source);
11257
11495
  }
11258
11496
  };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  renderCommandHelp
3
- } from "./chunk-JOOLRMRT.js";
3
+ } from "./chunk-VX54TD6Y.js";
4
4
  import {
5
5
  EXIT
6
6
  } from "./chunk-BG4HHB7E.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  questionWindowOf
3
- } from "./chunk-CA2BNB66.js";
3
+ } from "./chunk-O5OPPV2S.js";
4
4
  import {
5
5
  UNNAMED_ACTION
6
- } from "./chunk-4H6DCMIK.js";
6
+ } from "./chunk-UTOND6JN.js";
7
7
  import {
8
8
  ASK_USER_TIMEOUT_MS,
9
9
  WAIT_END_TIMEOUT_MS,
@@ -11,10 +11,10 @@ import {
11
11
  askUser,
12
12
  unavailableQuestionUnlessRefused,
13
13
  waitForQuestion
14
- } from "./chunk-PGWUHKNZ.js";
14
+ } from "./chunk-F5F7S2JJ.js";
15
15
  import {
16
16
  getMachineId
17
- } from "./chunk-JEEYHFFF.js";
17
+ } from "./chunk-QCYZY7SM.js";
18
18
  import {
19
19
  hookMaxWaitSeconds,
20
20
  hookWaitClamped,
@@ -24,7 +24,7 @@ import {
24
24
  refusesWhenUnanswered,
25
25
  ruleApprovesAfterItsFullWindow,
26
26
  scopeBreachReasonOf
27
- } from "./chunk-CDVHWJPI.js";
27
+ } from "./chunk-6LNSHFHD.js";
28
28
 
29
29
  // src/pushed-question.ts
30
30
  var scopeQuestionOf = (verdict) => {
@@ -15,7 +15,7 @@ import {
15
15
  uninstallOpenClawPlugin,
16
16
  unsetOpenClawEntry,
17
17
  writeOpenClawEntry
18
- } from "./chunk-B62INGJG.js";
18
+ } from "./chunk-JJTKHAVD.js";
19
19
  import {
20
20
  needsShell
21
21
  } from "./chunk-3PSNUHC5.js";
@@ -27,10 +27,10 @@ import {
27
27
  openClawDirectoriesToLookIn,
28
28
  openClawPluginFolder,
29
29
  openClawSetupReceiptDirectory
30
- } from "./chunk-NGABIHSJ.js";
30
+ } from "./chunk-Y7I5JUKB.js";
31
31
  import {
32
32
  resolvePathBinary
33
- } from "./chunk-IU5EUBFI.js";
33
+ } from "./chunk-2BZECJVP.js";
34
34
  import {
35
35
  readJsonSafe,
36
36
  writeJsonAtomic
@@ -41,7 +41,7 @@ import {
41
41
  } from "./chunk-CXQWDQCJ.js";
42
42
  import {
43
43
  isRecord
44
- } from "./chunk-CDVHWJPI.js";
44
+ } from "./chunk-6LNSHFHD.js";
45
45
 
46
46
  // src/hermes/plugin-payload.ts
47
47
  import { createHash } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-HZSTXGMB.js";
3
+ } from "./chunk-GVGLZBOG.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HOOK_HOLD_BUDGET_ENV,
3
3
  hookHoldBudgetProof
4
- } from "./chunk-CDVHWJPI.js";
4
+ } from "./chunk-6LNSHFHD.js";
5
5
 
6
6
  // src/hold-budget.ts
7
7
  var takeHookHoldBudget = (args = process.argv.slice(2), env = process.env) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isFinalCommandAckRefusal
3
- } from "./chunk-CDVHWJPI.js";
3
+ } from "./chunk-6LNSHFHD.js";
4
4
 
5
5
  // src/command-ack-outcome.ts
6
6
  var SETTLED_ACK = { outcome: "settled" };
@@ -6,17 +6,17 @@ import {
6
6
  postLiveSession,
7
7
  postLiveSessionUntilAccepted,
8
8
  startLiveSessionHeartbeat
9
- } from "./chunk-WAUNJPDC.js";
9
+ } from "./chunk-5JLTTZ4A.js";
10
10
  import {
11
11
  CommandReceipts,
12
12
  controllerCommandSchema
13
- } from "./chunk-GFNMWJXO.js";
13
+ } from "./chunk-VYGQZDXZ.js";
14
14
  import {
15
15
  SESSION_IDLE_TIMEOUT_MS,
16
16
  describeIdleWindow,
17
17
  idleDeadlinePassed,
18
18
  startProcessOwnership
19
- } from "./chunk-M3EGOLWI.js";
19
+ } from "./chunk-HGWBXD3A.js";
20
20
  import {
21
21
  spawnClaude
22
22
  } from "./chunk-3PSNUHC5.js";
@@ -25,18 +25,18 @@ import {
25
25
  isWaitForAnswerResponse,
26
26
  withdrawQuestion,
27
27
  writeDegraded
28
- } from "./chunk-PGWUHKNZ.js";
28
+ } from "./chunk-F5F7S2JJ.js";
29
29
  import {
30
30
  readCommandAck
31
- } from "./chunk-ZICVRFNH.js";
31
+ } from "./chunk-ABEAPF3L.js";
32
32
  import {
33
33
  callMcpTool,
34
34
  isRetryable
35
- } from "./chunk-IHJ37K7X.js";
35
+ } from "./chunk-ZEYB3PCY.js";
36
36
  import {
37
37
  projectNameFor,
38
38
  repositoryScopeFor
39
- } from "./chunk-CKCDYRLT.js";
39
+ } from "./chunk-R7ZFEHXE.js";
40
40
  import {
41
41
  AGENT_QUESTION_DESCRIPTION_MAX,
42
42
  AGENT_QUESTION_HEADER_MAX,
@@ -58,7 +58,7 @@ import {
58
58
  parseCodexQuestions,
59
59
  planElicitationAsk,
60
60
  readElicitationFields
61
- } from "./chunk-CDVHWJPI.js";
61
+ } from "./chunk-6LNSHFHD.js";
62
62
 
63
63
  // src/codex-question-owner.ts
64
64
  import { createHash } from "crypto";
@@ -3,16 +3,16 @@ import {
3
3
  NpmMissingError,
4
4
  NpmPermissionError,
5
5
  NpmReleaseAgeError
6
- } from "./chunk-IU5EUBFI.js";
6
+ } from "./chunk-2BZECJVP.js";
7
7
  import {
8
8
  writeFileAtomic
9
9
  } from "./chunk-PM2NRK6Y.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-JOOLRMRT.js";
12
+ } from "./chunk-VX54TD6Y.js";
13
13
  import {
14
14
  readSetupAgentFailures
15
- } from "./chunk-CDVHWJPI.js";
15
+ } from "./chunk-6LNSHFHD.js";
16
16
 
17
17
  // src/setup/config-write.ts
18
18
  var AgentConfigWriteError = class extends Error {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-NGABIHSJ.js";
3
+ } from "./chunk-Y7I5JUKB.js";
4
4
  import {
5
5
  readRegularJsonFile,
6
6
  writeFileAtomic
@@ -13,7 +13,7 @@ import {
13
13
  serializeDeclinedAgents,
14
14
  withDeclinedAgent,
15
15
  withoutDeclinedAgent
16
- } from "./chunk-CDVHWJPI.js";
16
+ } from "./chunk-6LNSHFHD.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-CDVHWJPI.js";
3
+ } from "./chunk-6LNSHFHD.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";
@@ -9,7 +9,7 @@ import {
9
9
  installedCodexApp,
10
10
  readCodexAppRuntime,
11
11
  shellQuoted
12
- } from "./chunk-R5LKQNBS.js";
12
+ } from "./chunk-3WVNDX5O.js";
13
13
  import {
14
14
  CODEX_APP_LAUNCH_AT_LOGIN_VERB,
15
15
  CODEX_APP_LAUNCH_VARIABLE
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-QCGNGEGE.js";
20
20
  import {
21
21
  xml
22
- } from "./chunk-2KJUGUYQ.js";
22
+ } from "./chunk-FFFNHVN6.js";
23
23
  import {
24
24
  writeFileAtomic
25
25
  } from "./chunk-PM2NRK6Y.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  pusharyHookExecutable
3
- } from "./chunk-7MFLS3LV.js";
3
+ } from "./chunk-4JT2BY7S.js";
4
4
  import {
5
5
  bridgeResolvesToApp,
6
6
  cursorUserHooks,
7
7
  executableFileName,
8
8
  isBridgeLocator,
9
9
  liveBridgeProbe
10
- } from "./chunk-NGABIHSJ.js";
10
+ } from "./chunk-Y7I5JUKB.js";
11
11
  import {
12
12
  atLeast,
13
13
  parseVersion
@@ -21,7 +21,7 @@ import {
21
21
  isCursorHookPayload,
22
22
  isRecord,
23
23
  toolsCoveredByGateEntry
24
- } from "./chunk-CDVHWJPI.js";
24
+ } from "./chunk-6LNSHFHD.js";
25
25
 
26
26
  // src/cursor-gate-registration.ts
27
27
  import { dirname, isAbsolute, join, resolve } from "path";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-3EGEA4KH.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-BK7EZIAG.js";
12
+ } from "./chunk-RJKX4FJJ.js";
13
13
  import {
14
14
  CLI_LOCAL_BIND_PATH,
15
15
  LOCAL_CONFIRM_HOST,
@@ -20,7 +20,7 @@ import {
20
20
  isLocalConfirmToken,
21
21
  isPhonePass,
22
22
  localTerminalEntryUrl
23
- } from "./chunk-CDVHWJPI.js";
23
+ } from "./chunk-6LNSHFHD.js";
24
24
 
25
25
  // src/cli/login-ui.ts
26
26
  import { hostname } from "os";