@pushary/agent-hooks 1.9.145 → 1.9.147

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 (167) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +5 -4
  3. package/data/SKILL.md +3 -3
  4. package/data/cursor-plugin/scripts/redaction.mjs +2 -1
  5. package/data/cursor-plugin/skills/pushary/SKILL.md +2 -2
  6. package/data/openclaw-plugin/LICENSE +21 -0
  7. package/data/openclaw-plugin/README.md +113 -0
  8. package/data/openclaw-plugin/dist/api-key-shape.js +5 -0
  9. package/data/openclaw-plugin/dist/approval-hook.js +88 -0
  10. package/data/openclaw-plugin/dist/approval-question.js +66 -0
  11. package/data/openclaw-plugin/dist/connection.js +101 -0
  12. package/data/openclaw-plugin/dist/decision-reply.js +6 -0
  13. package/data/openclaw-plugin/dist/gate-result.js +58 -0
  14. package/data/openclaw-plugin/dist/gate.js +173 -0
  15. package/data/openclaw-plugin/dist/hook-budget.js +19 -0
  16. package/data/openclaw-plugin/dist/host-api.js +1 -0
  17. package/data/openclaw-plugin/dist/host-version.js +25 -0
  18. package/data/openclaw-plugin/dist/index.js +32 -0
  19. package/data/openclaw-plugin/dist/openclaw-paths.js +43 -0
  20. package/data/openclaw-plugin/dist/openclaw-write-guard.js +93 -0
  21. package/data/openclaw-plugin/dist/protected-writes.js +217 -0
  22. package/data/openclaw-plugin/dist/pushary-client.js +103 -0
  23. package/data/openclaw-plugin/dist/pushary-hosts.js +3 -0
  24. package/data/openclaw-plugin/dist/redaction.js +53 -0
  25. package/data/openclaw-plugin/dist/replies.js +65 -0
  26. package/data/openclaw-plugin/dist/settings.js +103 -0
  27. package/data/openclaw-plugin/openclaw.plugin.json +32 -0
  28. package/data/openclaw-plugin/package.json +70 -0
  29. package/data/vscode-plugin/scripts/redaction.mjs +2 -1
  30. package/data/vscode-plugin/skills/pushary/SKILL.md +2 -2
  31. package/dist/{api-KWJQMO6G.js → api-2KDVLXHT.js} +11 -11
  32. package/dist/bin/pushary-audit.js +3 -3
  33. package/dist/bin/pushary-bell-hook.js +28 -28
  34. package/dist/bin/pushary-bell.js +11 -11
  35. package/dist/bin/pushary-claude.js +27 -27
  36. package/dist/bin/pushary-clean.js +76 -39
  37. package/dist/bin/pushary-codex-bridge.js +23 -23
  38. package/dist/bin/pushary-codex-hook.js +35 -35
  39. package/dist/bin/pushary-codex-session.js +8 -8
  40. package/dist/bin/pushary-codex.js +16 -16
  41. package/dist/bin/pushary-connect.js +78 -36
  42. package/dist/bin/pushary-cowork.js +5 -5
  43. package/dist/bin/pushary-daemon.js +44 -43
  44. package/dist/bin/pushary-disconnect.js +28 -28
  45. package/dist/bin/pushary-display-hook.js +96 -44
  46. package/dist/bin/pushary-doctor.js +124 -55
  47. package/dist/bin/pushary-elicitation-hook.js +28 -28
  48. package/dist/bin/pushary-gemini-bridge.js +17 -17
  49. package/dist/bin/pushary-gemini-hook.js +32 -32
  50. package/dist/bin/pushary-hook.js +35 -35
  51. package/dist/bin/pushary-login.js +22 -22
  52. package/dist/bin/pushary-logout.js +33 -31
  53. package/dist/bin/pushary-mcp.js +12 -12
  54. package/dist/bin/pushary-mode.js +16 -16
  55. package/dist/bin/pushary-notification-hook.js +27 -27
  56. package/dist/bin/pushary-opencode-hook.js +31 -31
  57. package/dist/bin/pushary-permission-denied-hook.js +35 -35
  58. package/dist/bin/pushary-permission-hook.js +35 -35
  59. package/dist/bin/pushary-post-hook.js +28 -28
  60. package/dist/bin/pushary-prompt-hook.js +27 -27
  61. package/dist/bin/pushary-session-end-hook.js +27 -27
  62. package/dist/bin/pushary-session-start-hook.js +37 -36
  63. package/dist/bin/pushary-setup.js +140 -87
  64. package/dist/bin/pushary-stats.js +5 -5
  65. package/dist/bin/pushary-status.js +38 -36
  66. package/dist/bin/pushary-stop-hook.js +27 -27
  67. package/dist/bin/pushary-stopfailure-hook.js +27 -27
  68. package/dist/bin/pushary-suggestions.js +16 -16
  69. package/dist/bin/pushary-transcript-register.js +17 -17
  70. package/dist/bin/pushary-transcripts.js +25 -25
  71. package/dist/bin/pushary-upgrade.js +42 -41
  72. package/dist/bin/pushary-wait.js +16 -16
  73. package/dist/bin/pushary.js +7 -7
  74. package/dist/{chunk-4KDRT3OA.js → chunk-2EETRVCZ.js} +1 -1
  75. package/dist/{chunk-LJRPWUST.js → chunk-2G54YLN3.js} +3 -3
  76. package/dist/{chunk-R34RWVN2.js → chunk-2I6A34GJ.js} +14 -5
  77. package/dist/{chunk-WPBWJMBZ.js → chunk-2QY2BD4T.js} +5 -5
  78. package/dist/{chunk-RO6EVL5C.js → chunk-2RAIG6NF.js} +2 -2
  79. package/dist/{chunk-LD4R2P6N.js → chunk-2YNAQ5TX.js} +1 -1
  80. package/dist/{chunk-TRV3ETGY.js → chunk-37ZBJB2Q.js} +5 -5
  81. package/dist/{chunk-BWREST4F.js → chunk-3NMX4725.js} +1 -1
  82. package/dist/{chunk-YRJZF5RG.js → chunk-3TTXOU6G.js} +3 -3
  83. package/dist/{chunk-FCSPMSDC.js → chunk-4P3ML7HP.js} +200 -59
  84. package/dist/{chunk-IRPIMQ7U.js → chunk-526XSNMS.js} +3 -3
  85. package/dist/{chunk-4L5WPDTB.js → chunk-57GVGSOQ.js} +1 -1
  86. package/dist/{chunk-ZORBUQFG.js → chunk-5II3USXS.js} +2 -2
  87. package/dist/{chunk-USFZJAB4.js → chunk-5K65H6OO.js} +1 -1
  88. package/dist/{chunk-5TWW7ZUL.js → chunk-6C5QRJIH.js} +5 -5
  89. package/dist/{chunk-KFALRZIN.js → chunk-6EPTMB7L.js} +4 -4
  90. package/dist/{chunk-LQXUWXQP.js → chunk-6JBX55K4.js} +31 -8
  91. package/dist/{chunk-B4JQIH5M.js → chunk-6YVGY2ZX.js} +7 -7
  92. package/dist/{chunk-7LTP2GHO.js → chunk-72S6PF2I.js} +2 -2
  93. package/dist/{chunk-WMBWKPKJ.js → chunk-7P32YU2M.js} +10 -74
  94. package/dist/{chunk-TJXJGMSP.js → chunk-7TVSWGAV.js} +8 -6
  95. package/dist/{chunk-L4OGTRVW.js → chunk-7WDEJTNX.js} +4 -4
  96. package/dist/{chunk-KGFB2LEB.js → chunk-7XIJD7NL.js} +3 -3
  97. package/dist/{chunk-S3A4PCRR.js → chunk-A5MSVNFS.js} +10 -10
  98. package/dist/{chunk-OONMKLUF.js → chunk-ANLR5G2W.js} +4 -4
  99. package/dist/{chunk-HOQH5CLZ.js → chunk-BEDAQAEN.js} +1 -1
  100. package/dist/{chunk-JKWUF776.js → chunk-BHGSNYG5.js} +3 -3
  101. package/dist/{chunk-VTJ4WZOC.js → chunk-BU2J4P7P.js} +3 -3
  102. package/dist/{chunk-6UK4K5RS.js → chunk-BYVLAPCF.js} +1 -1
  103. package/dist/{chunk-KS3PNTRT.js → chunk-CSNG5NQR.js} +1 -1
  104. package/dist/{chunk-JZT2LPRM.js → chunk-D7ZWJYXB.js} +1 -1
  105. package/dist/{chunk-Y7INHH5G.js → chunk-ELRZO6A7.js} +3 -3
  106. package/dist/{chunk-6IWOMXUF.js → chunk-EV54ZQ5J.js} +4 -4
  107. package/dist/{chunk-33BYPZ52.js → chunk-FHBJJOMF.js} +1 -1
  108. package/dist/{chunk-YU5XE6VC.js → chunk-FKGWP4MF.js} +8 -7
  109. package/dist/{chunk-2ELNRGNX.js → chunk-FMAIUTVU.js} +3 -3
  110. package/dist/{chunk-EPWOARGR.js → chunk-FWCECQTY.js} +2 -2
  111. package/dist/{chunk-BYKRAYGD.js → chunk-GGCUXNZN.js} +1 -1
  112. package/dist/{chunk-WH4ODOCE.js → chunk-GIWI5IHB.js} +6 -6
  113. package/dist/{chunk-72LP4RPC.js → chunk-GJV5RVUU.js} +98 -47
  114. package/dist/chunk-GPAMD5JG.js +157 -0
  115. package/dist/{chunk-FNAH3YJC.js → chunk-I72UU75H.js} +16 -16
  116. package/dist/{chunk-ZSOCJHL7.js → chunk-ISM6XF3V.js} +309 -5
  117. package/dist/{chunk-Q6P7G4NY.js → chunk-ISOP4ENY.js} +17 -5
  118. package/dist/{chunk-6LZ7MXHD.js → chunk-JDIKCM2N.js} +5 -5
  119. package/dist/{chunk-52UXNCZG.js → chunk-KDJIDRJS.js} +3 -3
  120. package/dist/{chunk-LMU6NG2G.js → chunk-KFL7OWLI.js} +1 -1
  121. package/dist/{chunk-PXZTCR4M.js → chunk-KH27X5CW.js} +2 -2
  122. package/dist/{chunk-MOC2DN42.js → chunk-KXMIDDUN.js} +2 -2
  123. package/dist/{chunk-QKTF7WS6.js → chunk-L2M6D2N4.js} +4 -4
  124. package/dist/{chunk-CUR2DCZN.js → chunk-L6BTSIKF.js} +4 -4
  125. package/dist/{chunk-YZA3YBHX.js → chunk-LO52V6WG.js} +2 -2
  126. package/dist/{chunk-GK5X2ZTN.js → chunk-MI7GHNTO.js} +5 -5
  127. package/dist/{chunk-MKHVLDMN.js → chunk-MYJJNLT2.js} +2 -2
  128. package/dist/{chunk-WUT3PO33.js → chunk-NAGF5ZJ2.js} +8 -8
  129. package/dist/{chunk-ZBMVOMFG.js → chunk-NMUEUDTT.js} +1 -1
  130. package/dist/{chunk-MNU5N3CQ.js → chunk-OSYULPJO.js} +23 -12
  131. package/dist/{chunk-SQL5YXUH.js → chunk-OXDKZYBO.js} +1 -1
  132. package/dist/chunk-OYIN77HO.js +72 -0
  133. package/dist/{chunk-KKPT7ROP.js → chunk-P6W2V2AP.js} +2 -2
  134. package/dist/{chunk-G3VSMI7K.js → chunk-Q3JW44JV.js} +2 -2
  135. package/dist/{chunk-K2SKUBYY.js → chunk-Q6POCQOV.js} +12 -12
  136. package/dist/{chunk-IIN26HL7.js → chunk-Q767Y4LY.js} +1 -1
  137. package/dist/{chunk-GURIOZE7.js → chunk-QGKFDSEO.js} +8 -8
  138. package/dist/{chunk-YNCVSKUW.js → chunk-RZGR4G5G.js} +5 -5
  139. package/dist/{chunk-2LGDEPVL.js → chunk-RZJHCHEA.js} +6 -6
  140. package/dist/{chunk-ZJZNT2G5.js → chunk-T274HRSR.js} +4 -4
  141. package/dist/chunk-T2CR5REM.js +176 -0
  142. package/dist/{chunk-A2H256WR.js → chunk-T3TVMMXJ.js} +1 -1
  143. package/dist/{chunk-NTMKJRQ3.js → chunk-TZ7CBPCD.js} +2 -2
  144. package/dist/{chunk-S7HGPKCL.js → chunk-UGPNLU4O.js} +1 -1
  145. package/dist/{chunk-DZIZ3XFL.js → chunk-UR55VBLY.js} +2 -2
  146. package/dist/{chunk-PY6CM4NK.js → chunk-WLKW2TF7.js} +19 -12
  147. package/dist/{chunk-63WX5KZN.js → chunk-WNV3X2VU.js} +3 -3
  148. package/dist/{chunk-WOSO4YFQ.js → chunk-XQOBM3E6.js} +3 -3
  149. package/dist/{chunk-RWLNTZK5.js → chunk-YICO6HEW.js} +5 -5
  150. package/dist/{chunk-FO3MDD26.js → chunk-YM2T76UM.js} +27 -0
  151. package/dist/chunk-YOVJOHM5.js +36 -0
  152. package/dist/{chunk-IDLOJIIS.js → chunk-ZKAQWXGO.js} +1 -1
  153. package/dist/{codex-app-cards-switch-F7WQ7Y3I.js → codex-app-cards-switch-GN65VEKM.js} +11 -11
  154. package/dist/{codex-card-routing-EVL5L36G.js → codex-card-routing-JTS75442.js} +2 -2
  155. package/dist/{codex-desktop-launch-PL6Z2ELZ.js → codex-desktop-launch-AQ2HSOQJ.js} +1 -1
  156. package/dist/{codex-session-launch-7NQEAUDU.js → codex-session-launch-QYZZGVSQ.js} +20 -20
  157. package/dist/{config-KFFD4VWH.js → config-5ATI6KPI.js} +3 -3
  158. package/dist/{global-upgrade-L3CY6EFF.js → global-upgrade-K4HWVUMI.js} +9 -9
  159. package/dist/{identity-DPYYIMHL.js → identity-V2GZCPJV.js} +4 -4
  160. package/dist/{live-capabilities-QJEXK6GH.js → live-capabilities-PD62FO4K.js} +4 -4
  161. package/dist/{paths-PEF6C64P.js → paths-WPJEIHUE.js} +7 -3
  162. package/dist/{reapply-7APCQRRK.js → reapply-ZEWMGDXT.js} +30 -29
  163. package/dist/src/index.js +34 -34
  164. package/dist/{upgrade-lock-A7OKXMRW.js → upgrade-lock-7OR6V323.js} +4 -4
  165. package/dist/{usage-HSS33762.js → usage-GWZ3UGZG.js} +3 -3
  166. package/package.json +1 -1
  167. package/dist/chunk-D3UFDCTQ.js +0 -87
@@ -5,6 +5,7 @@ var DISPLAYED_CREDENTIAL_KEY = String.raw`${CREDENTIAL_NAME}(?:[ \t]*:[ \t]*|[ \
5
5
  var SHELL_INERT_UNIT = String.raw`(?:[A-Za-z0-9_\-./+=:@%^!#]|\\[^\s'"])`;
6
6
  var SHELL_INERT_SINGLE_QUOTED_UNIT = String.raw`[A-Za-z0-9_\-./+=:@%^!#\\]`;
7
7
  var SHELL_INERT_URL_PASSWORD_UNIT = String.raw`(?:[A-Za-z0-9_\-.+=:%^!#]|\\[^\s'"@/])`;
8
+ var AUTHORIZATION_SCHEME = String.raw`(?:basic|digest|token|negotiate|ntlm)`;
8
9
  var PEM_LINE_BREAK = String.raw`(?:\r?\n|(?:\\r)?\\n)`;
9
10
  var credentialAssignmentRule = (key, doubleQuoted, singleQuoted, bare) => ({
10
11
  pattern: new RegExp(String.raw`(${key})(?:(")${doubleQuoted}|(')${singleQuoted}|(["']?)${bare})`, "gi"),
@@ -51,7 +52,7 @@ var secretRedactionRules = (shapes) => [
51
52
  { pattern: /\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\b/g, replacement: "[redacted]" },
52
53
  { pattern: new RegExp(String.raw`\b([a-z][a-z0-9+.-]*:\/\/[^\s:/@]+:)${shapes.urlPassword}@`, "gi"), replacement: "$1[redacted]@" },
53
54
  { pattern: new RegExp(String.raw`\bbearer${shapes.separator}+[A-Za-z0-9._~+/=-]+`, "gi"), replacement: "bearer [redacted]" },
54
- { pattern: new RegExp(String.raw`\bauthorization:${shapes.separator}*${shapes.authorizationValue}`, "gi"), replacement: "authorization: [redacted]" },
55
+ { pattern: new RegExp(String.raw`\bauthorization:${shapes.separator}*(?:${AUTHORIZATION_SCHEME}${shapes.separator}+)?${shapes.authorizationValue}`, "gi"), replacement: "authorization: [redacted]" },
55
56
  shapes.credentialAssignment
56
57
  ];
57
58
  var SECRET_REDACTION_RULES = secretRedactionRules(DISPLAYED_SECRET_SHAPES);
@@ -362,6 +363,15 @@ var AGENTS = {
362
363
  enforcementDetail: "Hermes dangerous-command approvals when the Pushary transport is selected; optional PUSHARY_GATE_TOOLS gates named tools.",
363
364
  capabilityNote: "Uses the Pushary plugin in ~/.hermes/plugins/pushary, not a macOS bridge HookSource. CLI disconnect and managed-provider controls are not implemented for Hermes."
364
365
  },
366
+ openclaw: {
367
+ ...defaults,
368
+ label: "OpenClaw",
369
+ enforcement: "enforced",
370
+ connectVia: "Plugin installed by the CLI + before_tool_call hook",
371
+ setupCommand: PUSHARY_SETUP_COMMAND,
372
+ enforcementDetail: "exec calls, the process actions that type into a session, automations and terminal actions that schedule, run or type, the plugins, gateway and openclaw actions that install, disable, reconfigure or restart OpenClaw, file writes into OpenClaw's own state and service files, and any tool named in the plugin's gatedTools setting, through OpenClaw's before_tool_call hook. A gated call runs only after a yes in Pushary; a no, no answer, a cancelled call or an unreachable server blocks it.",
373
+ capabilityNote: "Setup writes the Pushary plugin it carries to ~/.pushary/openclaw-plugin and installs it with openclaw plugins install; it is not a macOS bridge HookSource. Pushary's tool rules are not evaluated on the machine, so every gated call asks. Phone calls are held until a live call test passes. CLI disconnect and managed-provider controls are not implemented for OpenClaw."
374
+ },
365
375
  cursor: {
366
376
  ...defaults,
367
377
  keepsSessionHistory: true,
@@ -1072,6 +1082,12 @@ var compatibleTargetFiles = (profile) => {
1072
1082
  return [...seen.values()];
1073
1083
  };
1074
1084
 
1085
+ // ../contracts/src/decision-reply.ts
1086
+ var APPROVE_ANSWER = "yes";
1087
+ var STOP_HANDOFF_ACTION = "stop";
1088
+ var DECISION_STOP_STATUSES = ["cancelled", "unavailable", "stopped", "missing"];
1089
+ var isDecisionStoppedReply = (reply) => reply.handoffAction === STOP_HANDOFF_ACTION || typeof reply.status === "string" && DECISION_STOP_STATUSES.includes(reply.status);
1090
+
1075
1091
  // ../contracts/src/cursor.ts
1076
1092
  var CURSOR_GATE_EVENTS = ["beforeShellExecution", "beforeMCPExecution", "preToolUse"];
1077
1093
  var CURSOR_GATE_SCRIPT = "pushary-gate.mjs";
@@ -1106,6 +1122,12 @@ var toolsCoveredByGateEntry = (coverage, matcher) => {
1106
1122
  var toolMatches = (match, toolName) => match.kind === "named" ? match.tools.includes(toolName) : toolName.startsWith(match.prefix);
1107
1123
  var cursorGateOwnsToolCall = (registration, toolName) => typeof toolName === "string" && registration.some((match) => toolMatches(match, toolName));
1108
1124
 
1125
+ // ../contracts/src/api-key-shape.ts
1126
+ var API_KEY_PREFIX_SHAPE = "pk_[a-f0-9]+";
1127
+ var API_KEY_PREFIX_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}$`);
1128
+ var API_KEY_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}\\.[a-f0-9]+$`);
1129
+ var isValidApiKey = (value) => API_KEY_PATTERN.test(value);
1130
+
1109
1131
  // ../contracts/src/audit-chain.ts
1110
1132
  var AUDIT_CHAIN_FORMAT = "pushary-audit-chain-v1";
1111
1133
  var AUDIT_CHAIN_GENESIS_HASH = "0".repeat(64);
@@ -3563,6 +3585,9 @@ var degradedPayload = (subsystem, report) => ({
3563
3585
  });
3564
3586
  var degradedLine = (subsystem, report) => `${DEGRADED_PREFIX} ${JSON.stringify(degradedPayload(subsystem, report))}`;
3565
3587
 
3588
+ // ../contracts/src/pushary-hosts.ts
3589
+ var PUSHARY_HOSTS = ["pushary.com", "www.pushary.com"];
3590
+
3566
3591
  // ../contracts/src/key-scope.ts
3567
3592
  var KEY_SCOPES = ["full_access", "agent", "connector", "bound"];
3568
3593
  var KEY_SCOPE = {
@@ -3683,6 +3708,7 @@ var SETUP_AGENT_CHOICES = [
3683
3708
  "codex",
3684
3709
  "gemini_cli",
3685
3710
  "hermes",
3711
+ "openclaw",
3686
3712
  "cursor",
3687
3713
  "vscode",
3688
3714
  "opencode",
@@ -8505,10 +8531,6 @@ var textNeedsAPersonFor = (toolNamesADatabase) => (field, text3) => textNamesAWe
8505
8531
  var mcpToolInputOnlyReads = (toolName, toolInput) => !toolInputTooLargeToRead(toolInput) && !anyToolInputText(toolInput, UNNAMED_TOOL_INPUT_FIELD, 0, textNeedsAPersonFor(mcpToolNamesADatabase(toolName)));
8506
8532
  var allowsSessionToolGrant = (toolName) => SESSION_TOOL_GRANT_TOOLS.has(toolName) || mcpToolOnlyReads(toolName);
8507
8533
  var isSessionToolGrant = (policy) => Boolean(policy.sessionId) && allowsSessionToolGrant(policy.tool) && isAutoApprove(policy);
8508
- var API_KEY_PREFIX_SHAPE = "pk_[a-f0-9]+";
8509
- var API_KEY_PREFIX_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}$`);
8510
- var API_KEY_PATTERN = new RegExp(`^${API_KEY_PREFIX_SHAPE}\\.[a-f0-9]+$`);
8511
- var isValidApiKey = (value) => API_KEY_PATTERN.test(value);
8512
8534
  var ACTION_BODY_MAX = 4e3;
8513
8535
  var DECISION_LINE_MAX = 500;
8514
8536
  var ASK_QUESTION_MAX = 8e3;
@@ -8730,7 +8752,6 @@ var SETTLED_OUTCOME = {
8730
8752
  deny: "deny"
8731
8753
  };
8732
8754
  var isSettledOutcome = (value) => typeof value === "string" && SETTLED_OUTCOMES.includes(value);
8733
- var APPROVE_ANSWER = "yes";
8734
8755
  var DENY_ANSWER = "no";
8735
8756
  var DEFER_ANSWER = "defer";
8736
8757
  var PHONE_DENIAL_PREFIX = "Denied from your phone: ";
@@ -10162,6 +10183,7 @@ export {
10162
10183
  hookCompatibleProfile,
10163
10184
  hookCompatibleProfileBySource,
10164
10185
  compatibleTargetFiles,
10186
+ isDecisionStoppedReply,
10165
10187
  CURSOR_GATE_EVENTS,
10166
10188
  CURSOR_GATE_SCRIPT,
10167
10189
  CURSOR_GATE_COVERAGE,
@@ -10174,6 +10196,9 @@ export {
10174
10196
  PENDING_COMMAND_PREFIX,
10175
10197
  pendingCommandInstruction,
10176
10198
  degradedLine,
10199
+ API_KEY_PREFIX_PATTERN,
10200
+ isValidApiKey,
10201
+ PUSHARY_HOSTS,
10177
10202
  KEY_SCOPE,
10178
10203
  normalizeKeyScope,
10179
10204
  hookWritePath,
@@ -10274,8 +10299,6 @@ export {
10274
10299
  FILE_TARGET_TOOLS,
10275
10300
  MCP_TOOL_PREFIX,
10276
10301
  parseMcpToolName,
10277
- API_KEY_PREFIX_PATTERN,
10278
- isValidApiKey,
10279
10302
  ACTION_BODY_MAX,
10280
10303
  DECISION_LINE_MAX,
10281
10304
  ASK_QUESTION_MAX,
@@ -2,31 +2,31 @@ import {
2
2
  SIGNED_OUT_ON_MAC_MESSAGE,
3
3
  describeSignedOutKey,
4
4
  readSignedOutDiagnosis
5
- } from "./chunk-G3VSMI7K.js";
5
+ } from "./chunk-Q3JW44JV.js";
6
6
  import {
7
7
  APPROVAL_RULES_PATH
8
- } from "./chunk-YZA3YBHX.js";
8
+ } from "./chunk-LO52V6WG.js";
9
9
  import {
10
10
  createIo
11
- } from "./chunk-FO3MDD26.js";
11
+ } from "./chunk-YM2T76UM.js";
12
12
  import {
13
13
  absoluteUrl,
14
14
  checkApiKey,
15
15
  describeKeyCheck,
16
16
  keyCheckFromResponse
17
- } from "./chunk-YRJZF5RG.js";
17
+ } from "./chunk-3TTXOU6G.js";
18
18
  import {
19
19
  readKeySource
20
- } from "./chunk-WOSO4YFQ.js";
20
+ } from "./chunk-XQOBM3E6.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-BWREST4F.js";
23
+ } from "./chunk-3NMX4725.js";
24
24
  import {
25
25
  EXIT
26
26
  } from "./chunk-BG4HHB7E.js";
27
27
  import {
28
28
  KEY_SCOPE
29
- } from "./chunk-LQXUWXQP.js";
29
+ } from "./chunk-6JBX55K4.js";
30
30
 
31
31
  // src/cli/report-key.ts
32
32
  var { dim, yellow } = createIo();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  callDecisionStore,
3
3
  identifyingToolInput
4
- } from "./chunk-K2SKUBYY.js";
4
+ } from "./chunk-Q6POCQOV.js";
5
5
  import {
6
6
  canonicalJson
7
- } from "./chunk-72LP4RPC.js";
7
+ } from "./chunk-GJV5RVUU.js";
8
8
 
9
9
  // src/phone-approval.ts
10
10
  import { createHash } from "crypto";
@@ -1,12 +1,17 @@
1
+ import {
2
+ describeRevokeAttempt,
3
+ keyNoLongerAccepted,
4
+ revokeOwnKey
5
+ } from "./chunk-OYIN77HO.js";
1
6
  import {
2
7
  readMacAppAgentKey
3
- } from "./chunk-KFALRZIN.js";
8
+ } from "./chunk-6EPTMB7L.js";
4
9
  import {
5
10
  API_KEYS_PATH
6
- } from "./chunk-YZA3YBHX.js";
11
+ } from "./chunk-LO52V6WG.js";
7
12
  import {
8
13
  absoluteUrl
9
- } from "./chunk-YRJZF5RG.js";
14
+ } from "./chunk-3TTXOU6G.js";
10
15
  import {
11
16
  findExportedKeyLines,
12
17
  isAdoptedMacAppKey,
@@ -16,76 +21,10 @@ import {
16
21
  readConfigFileKey,
17
22
  readKeySource,
18
23
  readMacAppKeyPrefix
19
- } from "./chunk-WOSO4YFQ.js";
24
+ } from "./chunk-XQOBM3E6.js";
20
25
  import {
21
26
  isValidApiKey
22
- } from "./chunk-LQXUWXQP.js";
23
-
24
- // src/key-revocation.ts
25
- var SELF_REVOKE_PATH = "/api/v1/server/keys/self/revoke";
26
- var DEVICE_KEY_PATH = "/api/agent/device-key";
27
- var FULL_ACCESS_ONLY_STATUS = 403;
28
- var REVOKE_TIMEOUT_MS = 1e4;
29
- var readRevokedCount = async (response) => {
30
- try {
31
- const body = await response.json();
32
- const revoked = typeof body === "object" && body !== null && "revoked" in body ? body.revoked : void 0;
33
- return typeof revoked === "number" && Number.isInteger(revoked) && revoked >= 0 ? revoked : null;
34
- } catch {
35
- return null;
36
- }
37
- };
38
- var revokeAgentKey = async (apiKey, baseUrl, fetchImpl) => {
39
- const response = await fetchImpl(`${baseUrl}${DEVICE_KEY_PATH}`, {
40
- method: "DELETE",
41
- headers: { Authorization: `Bearer ${apiKey}` },
42
- signal: AbortSignal.timeout(REVOKE_TIMEOUT_MS)
43
- });
44
- if (!response.ok) return { kind: "refused", status: response.status };
45
- const revoked = await readRevokedCount(response);
46
- if (revoked === null) return { kind: "unconfirmed", status: response.status };
47
- return revoked > 0 ? { kind: "revoked" } : { kind: "not_accepted" };
48
- };
49
- var revokeOwnKey = async (apiKey, baseUrl, fetchImpl = fetch) => {
50
- try {
51
- const response = await fetchImpl(`${baseUrl}${SELF_REVOKE_PATH}`, {
52
- method: "POST",
53
- headers: { Authorization: `Bearer ${apiKey}`, "Content-Type": "application/json" },
54
- signal: AbortSignal.timeout(REVOKE_TIMEOUT_MS)
55
- });
56
- if (response.status === 401) return { kind: "not_accepted" };
57
- if (response.status === FULL_ACCESS_ONLY_STATUS) return await revokeAgentKey(apiKey, baseUrl, fetchImpl);
58
- if (!response.ok) return { kind: "refused", status: response.status };
59
- return { kind: "revoked" };
60
- } catch (err) {
61
- return { kind: "unreachable", detail: err instanceof Error ? err.message : "network error" };
62
- }
63
- };
64
- var REVOKE_DETAIL = {
65
- revoked: "Revoked the key on pushary.com.",
66
- not_accepted: "pushary.com had already stopped accepting the key.",
67
- refused: "pushary.com refused to revoke the key",
68
- unconfirmed: "pushary.com did not confirm the key was revoked",
69
- unreachable: "Could not reach pushary.com to revoke the key"
70
- };
71
- var describeRevokeAttempt = (attempt) => {
72
- if (attempt.kind === "refused" || attempt.kind === "unconfirmed") return `${REVOKE_DETAIL[attempt.kind]} (HTTP ${attempt.status}).`;
73
- if (attempt.kind === "unreachable") return `${REVOKE_DETAIL.unreachable}: ${attempt.detail}`;
74
- return REVOKE_DETAIL[attempt.kind];
75
- };
76
- var keyNoLongerAccepted = (attempt) => attempt.kind === "revoked" || attempt.kind === "not_accepted";
77
- var keyValidityOf = (check) => {
78
- switch (check.kind) {
79
- case "ok":
80
- case "locked":
81
- return "valid";
82
- case "rejected":
83
- case "malformed":
84
- return "invalid";
85
- case "unreachable":
86
- return "unknown";
87
- }
88
- };
27
+ } from "./chunk-6JBX55K4.js";
89
28
 
90
29
  // src/cli/held-key-revocation.ts
91
30
  var readCliHeldKeys = (profiles) => {
@@ -154,9 +93,6 @@ var describeCliKeyRevocation = (outcome, run) => {
154
93
  };
155
94
 
156
95
  export {
157
- revokeOwnKey,
158
- keyNoLongerAccepted,
159
- keyValidityOf,
160
96
  readCliHeldKeys,
161
97
  planCliKeyRevocations,
162
98
  keysToRevoke,
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  notificationAnswerStep
3
- } from "./chunk-PY6CM4NK.js";
3
+ } from "./chunk-WLKW2TF7.js";
4
4
  import {
5
5
  canChangeApprovalSettings
6
- } from "./chunk-YZA3YBHX.js";
6
+ } from "./chunk-LO52V6WG.js";
7
7
  import {
8
8
  matchMacAccountStep,
9
9
  retryAgentCommand
10
- } from "./chunk-2ELNRGNX.js";
10
+ } from "./chunk-FMAIUTVU.js";
11
11
  import {
12
12
  EXIT
13
13
  } from "./chunk-BG4HHB7E.js";
14
14
  import {
15
15
  NPX_LATEST_COMMAND
16
- } from "./chunk-6LZ7MXHD.js";
16
+ } from "./chunk-JDIKCM2N.js";
17
17
 
18
18
  // src/setup/closing.ts
19
19
  var ACTIVITY_URL = "pushary.com/dashboard/agent/activity";
@@ -24,7 +24,9 @@ var sendAnotherTestLines = (appPlatforms) => {
24
24
  return step === null ? [CHECK_THE_NOTIFICATION_OPENED, SEND_ANOTHER_TEST] : [SEND_ANOTHER_TEST, step];
25
25
  };
26
26
  var TRANSCRIPT_SYNC_NOTICE = `Transcripts sync redacted and encrypted. Your phone can decrypt them; authorized Pushary compliance admins can recover them for documented legal obligations. Turn off: ${NPX_LATEST_COMMAND} transcripts off`;
27
- var PAIR_PHONE_APP_HINT = `${NPX_LATEST_COMMAND} setup --connect app pair the Pushary app on your phone`;
27
+ var PAIR_PHONE_APP_HINT = `${NPX_LATEST_COMMAND} pair pair the Pushary app on your phone`;
28
+ var ALLOW_NOTIFICATIONS_HINT = `${NPX_LATEST_COMMAND} doctor --roundtrip after you allow notifications in the Pushary app`;
29
+ var unreachedPhoneHint = (facts) => facts.phoneAwaitsNotifications === true ? ALLOW_NOTIFICATIONS_HINT : PAIR_PHONE_APP_HINT;
28
30
  var RESTART_AGENTS_LINE = "Restart any open agent sessions so they pick up Pushary.";
29
31
  var TEAM_OFFER_URL = "https://pushary.com/teams?utm_source=cli&utm_medium=setup&utm_campaign=teams";
30
32
  var PLANS_THAT_CAN_MOVE_UP_TO_TEAM = ["agent", "agent_pro"];
@@ -146,7 +148,7 @@ var nextSteps = (facts, reachable) => {
146
148
  lines.push("pushary claude launch a managed Claude Code session");
147
149
  }
148
150
  if (!reachable) {
149
- lines.push(PAIR_PHONE_APP_HINT);
151
+ lines.push(unreachedPhoneHint(facts));
150
152
  }
151
153
  lines.push("pushary doctor re-check everything");
152
154
  return lines;
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  pusharyHookExecutable
3
- } from "./chunk-CUR2DCZN.js";
3
+ } from "./chunk-L6BTSIKF.js";
4
4
  import {
5
5
  bridgeResolvesToApp,
6
6
  cursorUserHooks,
7
7
  executableFileName,
8
8
  isBridgeLocator,
9
9
  liveBridgeProbe
10
- } from "./chunk-72LP4RPC.js";
10
+ } from "./chunk-GJV5RVUU.js";
11
11
  import {
12
12
  atLeast,
13
13
  parseVersion
14
- } from "./chunk-VTJ4WZOC.js";
14
+ } from "./chunk-BU2J4P7P.js";
15
15
  import {
16
16
  CURSOR_GATE_COVERAGE,
17
17
  CURSOR_GATE_SCRIPT,
@@ -21,7 +21,7 @@ import {
21
21
  isCursorHookPayload,
22
22
  isRecord,
23
23
  toolsCoveredByGateEntry
24
- } from "./chunk-LQXUWXQP.js";
24
+ } from "./chunk-6JBX55K4.js";
25
25
 
26
26
  // src/cursor-gate-registration.ts
27
27
  import { dirname, isAbsolute, join, resolve } from "path";
@@ -536,8 +536,8 @@ var loadedOnce = (load) => {
536
536
  };
537
537
 
538
538
  // src/codex-desktop-proxy.ts
539
- var loadThePhone = () => import("./api-KWJQMO6G.js");
540
- var loadTheCardRouting = () => import("./codex-card-routing-EVL5L36G.js");
539
+ var loadThePhone = () => import("./api-2KDVLXHT.js");
540
+ var loadTheCardRouting = () => import("./codex-card-routing-JTS75442.js");
541
541
  var theFirstCardLoadsAgain = () => {
542
542
  };
543
543
  var ASKS_WITHOUT_ROUTING = {};
@@ -1097,7 +1097,7 @@ var codexDesktopCommand = async (args, entry, readAccount) => {
1097
1097
  return runCodexDesktopProxy(engine2, args.slice(3), readAccount, { watchesForCards: layoutIsKnown });
1098
1098
  }
1099
1099
  if (args[0] === APP_CARDS_FLAG) {
1100
- const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-F7WQ7Y3I.js");
1100
+ const { codexAppCardsCommandOnThisMac } = await import("./codex-app-cards-switch-GN65VEKM.js");
1101
1101
  return codexAppCardsCommandOnThisMac(args.slice(1), entry, readAccount);
1102
1102
  }
1103
1103
  if (args.length > 2) throw new Error("Usage: pushary codex --desktop [path/to/Codex.app]");
@@ -8,13 +8,13 @@ import {
8
8
  } from "./chunk-G66WIAST.js";
9
9
  import {
10
10
  ensureDaemonRunning
11
- } from "./chunk-WH4ODOCE.js";
11
+ } from "./chunk-GIWI5IHB.js";
12
12
  import {
13
13
  hookOwnerOf
14
- } from "./chunk-CUR2DCZN.js";
14
+ } from "./chunk-L6BTSIKF.js";
15
15
  import {
16
16
  hookMeaning
17
- } from "./chunk-JZT2LPRM.js";
17
+ } from "./chunk-D7ZWJYXB.js";
18
18
  import {
19
19
  buildTranscriptRecords,
20
20
  decodePublicKey,
@@ -25,29 +25,29 @@ import {
25
25
  recordSealerFor,
26
26
  uploadTranscriptRecords,
27
27
  wrapSessionKey
28
- } from "./chunk-IRPIMQ7U.js";
28
+ } from "./chunk-526XSNMS.js";
29
29
  import {
30
30
  external_exports
31
31
  } from "./chunk-XMSDA5WA.js";
32
32
  import {
33
33
  transcriptEnvironmentPreference,
34
34
  transcriptsEnabled
35
- } from "./chunk-HOQH5CLZ.js";
35
+ } from "./chunk-BEDAQAEN.js";
36
36
  import {
37
37
  fetchAsCredential
38
- } from "./chunk-S7HGPKCL.js";
38
+ } from "./chunk-UGPNLU4O.js";
39
39
  import {
40
40
  readTranscriptPreference
41
- } from "./chunk-WOSO4YFQ.js";
41
+ } from "./chunk-XQOBM3E6.js";
42
42
  import {
43
43
  claudeConfigDir,
44
44
  codexHome,
45
45
  pusharyDir
46
- } from "./chunk-72LP4RPC.js";
46
+ } from "./chunk-GJV5RVUU.js";
47
47
  import {
48
48
  getApiKey,
49
49
  getBaseUrl
50
- } from "./chunk-BWREST4F.js";
50
+ } from "./chunk-3NMX4725.js";
51
51
  import {
52
52
  writeJsonAtomic,
53
53
  writeJsonAtomicDurable
@@ -59,7 +59,7 @@ import {
59
59
  isHookSource,
60
60
  isRecord,
61
61
  redactSecretsFromContent
62
- } from "./chunk-LQXUWXQP.js";
62
+ } from "./chunk-6JBX55K4.js";
63
63
 
64
64
  // src/transcript-recipient-pin.ts
65
65
  import { createHash } from "crypto";
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  UNNAMED_ACTION
3
- } from "./chunk-JZT2LPRM.js";
3
+ } from "./chunk-D7ZWJYXB.js";
4
4
  import {
5
5
  askUser,
6
6
  isAwayPaused,
7
7
  isLocalQuestionHandoff,
8
8
  unavailableQuestionUnlessRefused,
9
9
  waitForQuestion
10
- } from "./chunk-YU5XE6VC.js";
10
+ } from "./chunk-FKGWP4MF.js";
11
11
  import {
12
12
  getMachineId
13
- } from "./chunk-KS3PNTRT.js";
13
+ } from "./chunk-CSNG5NQR.js";
14
14
  import {
15
15
  hookWaitClamped,
16
16
  hookWaitDeadline,
17
17
  scopeBreachReasonOf
18
- } from "./chunk-LQXUWXQP.js";
18
+ } from "./chunk-6JBX55K4.js";
19
19
 
20
20
  // src/pushed-question.ts
21
21
  var scopeQuestionOf = (verdict) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  readTranscriptPreference
3
- } from "./chunk-WOSO4YFQ.js";
3
+ } from "./chunk-XQOBM3E6.js";
4
4
 
5
5
  // src/transcript-setting.ts
6
6
  var transcriptEnvironmentPreference = () => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-ZBMVOMFG.js";
3
+ } from "./chunk-NMUEUDTT.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-6LZ7MXHD.js";
12
+ } from "./chunk-JDIKCM2N.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-LQXUWXQP.js";
20
+ } from "./chunk-6JBX55K4.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -407,9 +407,9 @@ var installGlobally = (options) => {
407
407
  }
408
408
  const started = (async () => {
409
409
  if (!npmIsOnPath()) throw new NpmMissingError();
410
- const { withUpgradeLock } = await import("./global-upgrade-L3CY6EFF.js");
411
- const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-A7OKXMRW.js");
412
- const { autoUpdateLock } = await import("./paths-PEF6C64P.js");
410
+ const { withUpgradeLock } = await import("./global-upgrade-K4HWVUMI.js");
411
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-7OR6V323.js");
412
+ const { autoUpdateLock } = await import("./paths-WPJEIHUE.js");
413
413
  let result = "skipped";
414
414
  const install = async () => {
415
415
  const platform = process.platform;
@@ -2,7 +2,7 @@ import {
2
2
  localRepoKey,
3
3
  normalizeRepoRemote,
4
4
  parseGitBranch
5
- } from "./chunk-LQXUWXQP.js";
5
+ } from "./chunk-6JBX55K4.js";
6
6
 
7
7
  // src/repo.ts
8
8
  import { existsSync, readFileSync, statSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-72LP4RPC.js";
3
+ } from "./chunk-GJV5RVUU.js";
4
4
  import {
5
5
  writeFileAtomic
6
6
  } from "./chunk-TODDEIYG.js";
@@ -25,7 +25,7 @@ import {
25
25
  reportableSessionId,
26
26
  toToolLookup,
27
27
  truncateLine
28
- } from "./chunk-LQXUWXQP.js";
28
+ } from "./chunk-6JBX55K4.js";
29
29
 
30
30
  // ../hook-mapping/src/commit-receipt.ts
31
31
  var COMMIT_OUTPUT_MAX_LENGTH = 65536;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  realpath
3
- } from "./chunk-DZIZ3XFL.js";
3
+ } from "./chunk-UR55VBLY.js";
4
4
  import {
5
5
  findNativeClaudeInstall
6
6
  } from "./chunk-CYTPQDQY.js";
@@ -12,7 +12,7 @@ import {
12
12
  resolvePackageVersionFromBinary,
13
13
  resolvePathBinary,
14
14
  resolvePathBinaryAsync
15
- } from "./chunk-VTJ4WZOC.js";
15
+ } from "./chunk-BU2J4P7P.js";
16
16
  import {
17
17
  CLAUDE_BRIDGE_CAPABILITY,
18
18
  CLAUDE_RESUME_CAPABILITY,
@@ -23,7 +23,7 @@ import {
23
23
  MANAGED_PROVIDERS,
24
24
  SPAWN_CAPABILITY,
25
25
  sessionProvidersAdvertisedBy
26
- } from "./chunk-LQXUWXQP.js";
26
+ } from "./chunk-6JBX55K4.js";
27
27
 
28
28
  // src/live-capabilities.ts
29
29
  import { accessSync, constants, statSync as statSync2 } from "fs";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-R34RWVN2.js";
4
+ } from "./chunk-2I6A34GJ.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-CUR2DCZN.js";
7
+ } from "./chunk-L6BTSIKF.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-72LP4RPC.js";
11
+ } from "./chunk-GJV5RVUU.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-LQXUWXQP.js";
14
+ } from "./chunk-6JBX55K4.js";
15
15
 
16
16
  // src/cursor-config.ts
17
17
  var hookCommandOf = (entry) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isSafeReadOnlyCommand
3
- } from "./chunk-LQXUWXQP.js";
3
+ } from "./chunk-6JBX55K4.js";
4
4
 
5
5
  // src/ledger.ts
6
6
  import { appendFileSync, existsSync, mkdirSync, readFileSync, renameSync, rmSync, statSync } from "fs";
@@ -8,21 +8,21 @@ import {
8
8
  SubscriptionRequiredError,
9
9
  callMcpTool,
10
10
  isRetryable
11
- } from "./chunk-WPBWJMBZ.js";
11
+ } from "./chunk-2QY2BD4T.js";
12
12
  import {
13
13
  installNetworkDefaults,
14
14
  isNetworkFailure
15
- } from "./chunk-LJRPWUST.js";
15
+ } from "./chunk-2G54YLN3.js";
16
16
  import {
17
17
  fetchAsCredential
18
- } from "./chunk-S7HGPKCL.js";
18
+ } from "./chunk-UGPNLU4O.js";
19
19
  import {
20
20
  clientReportClaims
21
- } from "./chunk-72LP4RPC.js";
21
+ } from "./chunk-GJV5RVUU.js";
22
22
  import {
23
23
  getApiKey,
24
24
  getBaseUrl
25
- } from "./chunk-BWREST4F.js";
25
+ } from "./chunk-3NMX4725.js";
26
26
  import {
27
27
  ASK_AGENT_NAME_MAX,
28
28
  CLIENT_REPORT_PATH,
@@ -30,8 +30,9 @@ import {
30
30
  GATE_PERMISSION_MODE_MAX_LENGTH,
31
31
  TOOL_FAILURE_CODES,
32
32
  degradedLine,
33
+ isDecisionStoppedReply,
33
34
  truncateLine
34
- } from "./chunk-LQXUWXQP.js";
35
+ } from "./chunk-6JBX55K4.js";
35
36
 
36
37
  // src/api.ts
37
38
  import { randomUUID } from "crypto";
@@ -197,7 +198,7 @@ var writeDegraded = (subsystem, report) => {
197
198
 
198
199
  // src/api.ts
199
200
  installNetworkDefaults();
200
- var isDecisionStopped = (result) => result.handoffAction === "stop" || ["cancelled", "unavailable", "stopped", "missing"].includes(result.status ?? "");
201
+ var isDecisionStopped = (result) => isDecisionStoppedReply(result);
201
202
  var isAwayPaused = (result) => result.paused === true;
202
203
  var isLocalQuestionHandoff = (result) => !isAwayPaused(result) && (result.suppressed === true || result.noDevices === true || result.status === "terminal" || result.status === "notified");
203
204
  var waitsForThePhone = (result) => result.answered !== true && !isAwayPaused(result) && !isLocalQuestionHandoff(result);