@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
@@ -1,14 +1,34 @@
1
+ import {
2
+ OPENCLAW_PLUGIN_ID,
3
+ OPENCLAW_PLUGIN_PACKAGE,
4
+ currentOpenClawEnvironment,
5
+ enableOpenClawPlugin,
6
+ findOpenClawLauncher,
7
+ inspectOpenClawPlugin,
8
+ installOpenClawPluginFrom,
9
+ isOursToRemove,
10
+ openClawPathsNow,
11
+ openClawWiringState,
12
+ readOpenClawEntry,
13
+ uninstallOpenClawPlugin,
14
+ unsetOpenClawEntry,
15
+ writeOpenClawEntry
16
+ } from "./chunk-T2CR5REM.js";
1
17
  import {
2
18
  needsShell
3
19
  } from "./chunk-H6CL3T2S.js";
4
20
  import {
21
+ OPENCLAW_ENVIRONMENT_KEYS,
5
22
  hermesAppWiringRecord,
6
23
  hermesConfigReceipt,
7
- hermesSetupReceipt
8
- } from "./chunk-72LP4RPC.js";
24
+ hermesSetupReceipt,
25
+ openClawDirectoriesToLookIn,
26
+ openClawPluginFolder,
27
+ openClawSetupReceiptDirectory
28
+ } from "./chunk-GJV5RVUU.js";
9
29
  import {
10
30
  resolvePathBinary
11
- } from "./chunk-VTJ4WZOC.js";
31
+ } from "./chunk-BU2J4P7P.js";
12
32
  import {
13
33
  readJsonSafe,
14
34
  writeJsonAtomic
@@ -19,7 +39,7 @@ import {
19
39
  } from "./chunk-WIIMW5YO.js";
20
40
  import {
21
41
  isRecord
22
- } from "./chunk-LQXUWXQP.js";
42
+ } from "./chunk-6JBX55K4.js";
23
43
 
24
44
  // src/hermes/plugin-payload.ts
25
45
  import { createHash } from "crypto";
@@ -3513,6 +3533,284 @@ var removeHermesWiring = async (request) => {
3513
3533
  return { kind: "removed", pluginRemoved: folder.kind === "pushary", settingsRestored, dryRun: false };
3514
3534
  };
3515
3535
 
3536
+ // src/openclaw/install.ts
3537
+ import { createHash as createHash3 } from "crypto";
3538
+ import { existsSync as existsSync4, readdirSync as readdirSync2, rmSync as rmSync4 } from "fs";
3539
+ import { join as join3 } from "path";
3540
+
3541
+ // src/openclaw/bundled-plugin.ts
3542
+ import { createHash as createHash2 } from "crypto";
3543
+ import { cpSync, existsSync as existsSync3, mkdirSync as mkdirSync2, readdirSync, readFileSync as readFileSync2, renameSync as renameSync2, rmSync as rmSync3, statSync as statSync2, writeFileSync as writeFileSync2 } from "fs";
3544
+ import { dirname as dirname2, join as join2, relative } from "path";
3545
+ import { fileURLToPath } from "url";
3546
+ var OPENCLAW_BUNDLE_DIRECTORY = "openclaw-plugin";
3547
+ var OPENCLAW_MANIFEST_FILE = "openclaw.plugin.json";
3548
+ var OPENCLAW_PACKAGE_FILE = "package.json";
3549
+ var OPENCLAW_ENTRY_FILE = join2("dist", "index.js");
3550
+ var OPENCLAW_INSTALL_MARKER_FILE = ".pushary-install.json";
3551
+ var INSTALL_MARKER_OWNER = "pushary";
3552
+ var parsedJsonFile = (path) => {
3553
+ try {
3554
+ return JSON.parse(readFileSync2(path, "utf-8"));
3555
+ } catch {
3556
+ return null;
3557
+ }
3558
+ };
3559
+ var filesUnder = (root, directory = root) => readdirSync(directory, { withFileTypes: true }).flatMap((entry) => {
3560
+ const path = join2(directory, entry.name);
3561
+ if (entry.name === OPENCLAW_INSTALL_MARKER_FILE) return [];
3562
+ return entry.isDirectory() ? filesUnder(root, path) : [relative(root, path)];
3563
+ }).sort();
3564
+ var digestOfPluginFolder = (directory) => {
3565
+ const hash = createHash2("sha256");
3566
+ for (const file of filesUnder(directory)) {
3567
+ hash.update(file.split("\\").join("/"));
3568
+ hash.update("\0");
3569
+ hash.update(readFileSync2(join2(directory, file)));
3570
+ hash.update("\0");
3571
+ }
3572
+ return `sha256:${hash.digest("hex")}`;
3573
+ };
3574
+ var readPluginBundle = (directory) => {
3575
+ const manifest = parsedJsonFile(join2(directory, OPENCLAW_MANIFEST_FILE));
3576
+ const pkg = parsedJsonFile(join2(directory, OPENCLAW_PACKAGE_FILE));
3577
+ if (!isRecord(manifest) || manifest.id !== OPENCLAW_PLUGIN_ID) return null;
3578
+ if (!isRecord(pkg) || pkg.name !== OPENCLAW_PLUGIN_PACKAGE || typeof pkg.version !== "string") return null;
3579
+ if (!existsSync3(join2(directory, OPENCLAW_ENTRY_FILE))) return null;
3580
+ return { directory, version: pkg.version, digest: digestOfPluginFolder(directory) };
3581
+ };
3582
+ var bundledPluginCandidates = (moduleDirectory) => [
3583
+ join2(moduleDirectory, "..", "..", "data", OPENCLAW_BUNDLE_DIRECTORY),
3584
+ join2(moduleDirectory, "..", "data", OPENCLAW_BUNDLE_DIRECTORY)
3585
+ ];
3586
+ var findBundledOpenClawPlugin = () => {
3587
+ const moduleDirectory = dirname2(fileURLToPath(import.meta.url));
3588
+ for (const candidate of bundledPluginCandidates(moduleDirectory)) {
3589
+ const bundle = readPluginBundle(candidate);
3590
+ if (bundle !== null) return bundle;
3591
+ }
3592
+ return null;
3593
+ };
3594
+ var readInstallMarker = (directory) => {
3595
+ const marker = parsedJsonFile(join2(directory, OPENCLAW_INSTALL_MARKER_FILE));
3596
+ if (!isRecord(marker) || marker.owner !== INSTALL_MARKER_OWNER) return null;
3597
+ return typeof marker.version === "string" && typeof marker.digest === "string" ? { owner: INSTALL_MARKER_OWNER, version: marker.version, digest: marker.digest } : null;
3598
+ };
3599
+ var ownedFolderIsCurrent = (directory, bundle) => readInstallMarker(directory)?.digest === bundle.digest;
3600
+ var isDirectory = (path) => {
3601
+ try {
3602
+ return statSync2(path).isDirectory();
3603
+ } catch {
3604
+ return false;
3605
+ }
3606
+ };
3607
+ var writeOwnedPluginFolder = (bundle, target) => {
3608
+ const staging = `${target}.staging-${process.pid}`;
3609
+ const previous = `${target}.previous-${process.pid}`;
3610
+ rmSync3(staging, { recursive: true, force: true });
3611
+ mkdirSync2(dirname2(target), { recursive: true });
3612
+ cpSync(bundle.directory, staging, { recursive: true, filter: (path) => !path.endsWith(OPENCLAW_INSTALL_MARKER_FILE) });
3613
+ const marker = { owner: INSTALL_MARKER_OWNER, version: bundle.version, digest: bundle.digest };
3614
+ writeFileSync2(join2(staging, OPENCLAW_INSTALL_MARKER_FILE), `${JSON.stringify(marker, null, 2)}
3615
+ `);
3616
+ rmSync3(previous, { recursive: true, force: true });
3617
+ const hadTarget = isDirectory(target);
3618
+ if (hadTarget) renameSync2(target, previous);
3619
+ try {
3620
+ renameSync2(staging, target);
3621
+ } catch (error) {
3622
+ if (hadTarget) renameSync2(previous, target);
3623
+ rmSync3(staging, { recursive: true, force: true });
3624
+ throw error;
3625
+ }
3626
+ rmSync3(previous, { recursive: true, force: true });
3627
+ };
3628
+
3629
+ // src/openclaw/setup-receipt.ts
3630
+ var OPENCLAW_RECEIPT_VERSION = 1;
3631
+ var CONFIG_FIELD = "config";
3632
+ var ENABLED_FIELD = "enabled";
3633
+ var environmentFrom = (value) => {
3634
+ if (!isRecord(value)) return null;
3635
+ const entries = Object.entries(value);
3636
+ const known = new Set(OPENCLAW_ENVIRONMENT_KEYS);
3637
+ if (!entries.every(([key, setting]) => known.has(key) && typeof setting === "string")) return null;
3638
+ return Object.fromEntries(entries.flatMap(([key, setting]) => typeof setting === "string" ? [[key, setting]] : []));
3639
+ };
3640
+ var entryBeforeFrom = (value) => {
3641
+ if (!isRecord(value) || typeof value.present !== "boolean") return null;
3642
+ return value.present ? { present: true, value: value.value } : { present: false };
3643
+ };
3644
+ var parseOpenClawSetupReceipt = (value) => {
3645
+ if (!isRecord(value) || value.version !== OPENCLAW_RECEIPT_VERSION) return null;
3646
+ const environment = environmentFrom(value.environment);
3647
+ const entryBefore = entryBeforeFrom(value.entryBefore);
3648
+ return environment === null || entryBefore === null ? null : { version: OPENCLAW_RECEIPT_VERSION, environment, entryBefore };
3649
+ };
3650
+ var userConfigOf = (entry) => {
3651
+ if (!isRecord(entry)) return null;
3652
+ const config = entry[CONFIG_FIELD];
3653
+ return isRecord(config) && Object.keys(config).length > 0 ? config : null;
3654
+ };
3655
+ var entryToRestore = (before, now) => {
3656
+ const userConfig = userConfigOf(now);
3657
+ if (before.present) {
3658
+ return userConfig !== null && isRecord(before.value) ? { kind: "set", value: { ...before.value, [CONFIG_FIELD]: userConfig } } : { kind: "set", value: before.value };
3659
+ }
3660
+ return userConfig === null ? { kind: "unset" } : { kind: "set", value: { [ENABLED_FIELD]: false, [CONFIG_FIELD]: userConfig } };
3661
+ };
3662
+
3663
+ // src/openclaw/install.ts
3664
+ var FAILURE_DETAIL_MAX_LENGTH = 300;
3665
+ var RECEIPT_MODE2 = 384;
3666
+ var RECEIPT_EXTENSION = ".json";
3667
+ var RECEIPT_NAME_LENGTH = 16;
3668
+ var openClawFilesNow = () => ({ ownedFolder: openClawPluginFolder(), receiptDirectory: openClawSetupReceiptDirectory() });
3669
+ var lastLineOf = (output) => output.trim().split(/\r?\n/).map((line) => line.trim()).filter((line) => line.length > 0).at(-1)?.slice(0, FAILURE_DETAIL_MAX_LENGTH) ?? "";
3670
+ var failureDetail = (result) => lastLineOf(result.output);
3671
+ var readReceipt = (path) => {
3672
+ const read = readJsonSafe(path);
3673
+ if (read.kind === "missing") return { kind: "missing" };
3674
+ const receipt = read.kind === "ok" ? parseOpenClawSetupReceipt(read.value) : null;
3675
+ return receipt === null ? { kind: "invalid" } : { kind: "ok", receipt };
3676
+ };
3677
+ var receiptPathFor = (files, environment) => {
3678
+ const stateDirectory = openClawPathsNow(environment).stateDirectory;
3679
+ return join3(files.receiptDirectory, `${createHash3("sha256").update(stateDirectory, "utf8").digest("hex").slice(0, RECEIPT_NAME_LENGTH)}${RECEIPT_EXTENSION}`);
3680
+ };
3681
+ var recordedSetups = (files) => {
3682
+ if (!existsSync4(files.receiptDirectory)) return [];
3683
+ return readdirSync2(files.receiptDirectory).filter((name) => name.endsWith(RECEIPT_EXTENSION)).sort().map((name) => join3(files.receiptDirectory, name)).map((path) => ({ path, read: readReceipt(path) }));
3684
+ };
3685
+ var openClawLivesHere = (environment) => openClawDirectoriesToLookIn(openClawPathsNow(environment)).some(existsSync4);
3686
+ var sessionFor = (launcher, environment) => ({ launcher, environment });
3687
+ var launcherFor = (launcher, lookUp) => launcher === void 0 ? lookUp() : launcher;
3688
+ var inspectWith = async (session, runtime) => {
3689
+ const facts = await inspectOpenClawPlugin(session, { runtime });
3690
+ return { kind: "inspected", session, facts, state: openClawWiringState(facts) };
3691
+ };
3692
+ var launcherWhereOpenClawLives = (environment, receipt) => receipt.kind === "ok" || openClawLivesHere(environment) ? findOpenClawLauncher() : null;
3693
+ var inspectOpenClawWiring = async (files, launcher) => {
3694
+ const environment = currentOpenClawEnvironment();
3695
+ const receipt = readReceipt(receiptPathFor(files, environment));
3696
+ const found = launcherFor(launcher, () => launcherWhereOpenClawLives(environment, receipt));
3697
+ return found === null ? { kind: "no_launcher" } : inspectWith(sessionFor(found, environment), true);
3698
+ };
3699
+ var pluginIdTakenBySomeoneElse = (facts) => facts.kind === "installed" && !isOursToRemove(facts);
3700
+ var ensureReceipt = async (session, receiptPath) => {
3701
+ const existing = readReceipt(receiptPath);
3702
+ if (existing.kind === "ok") return { kind: "ok" };
3703
+ if (existing.kind === "invalid") return { kind: "failed", reason: "receipt_invalid" };
3704
+ const entry = await readOpenClawEntry(session);
3705
+ if (entry.kind === "unreadable") return { kind: "failed", reason: "config_unreadable" };
3706
+ const receipt = {
3707
+ version: OPENCLAW_RECEIPT_VERSION,
3708
+ environment: session.environment,
3709
+ entryBefore: entry.kind === "present" ? { present: true, value: entry.value } : { present: false }
3710
+ };
3711
+ writeJsonAtomic(receiptPath, receipt, RECEIPT_MODE2);
3712
+ return { kind: "ok" };
3713
+ };
3714
+ var writeOwnedFolder = (bundle, folder) => {
3715
+ try {
3716
+ writeOwnedPluginFolder(bundle, folder);
3717
+ return true;
3718
+ } catch {
3719
+ return false;
3720
+ }
3721
+ };
3722
+ var installOpenClawPlugin = async (request) => {
3723
+ const launcher = launcherFor(request.launcher, findOpenClawLauncher);
3724
+ if (launcher === null) return { kind: "no_launcher" };
3725
+ const bundle = request.bundle === void 0 ? findBundledOpenClawPlugin() : request.bundle;
3726
+ if (bundle === null) return { kind: "failed", reason: "bundle_missing", detail: "" };
3727
+ const environment = currentOpenClawEnvironment();
3728
+ const session = sessionFor(launcher, environment);
3729
+ const before = await inspectOpenClawPlugin(session, { runtime: false });
3730
+ if (before.kind === "unreadable") return { kind: "failed", reason: "inspect_unreadable", detail: "" };
3731
+ if (pluginIdTakenBySomeoneElse(before)) {
3732
+ return { kind: "failed", reason: "plugin_id_taken", detail: before.kind === "installed" ? before.packageName ?? "" : "" };
3733
+ }
3734
+ const receipt = await ensureReceipt(session, receiptPathFor(request.files, environment));
3735
+ if (receipt.kind === "failed") return { kind: "failed", reason: receipt.reason, detail: "" };
3736
+ if (!writeOwnedFolder(bundle, request.files.ownedFolder)) return { kind: "failed", reason: "plugin_write_failed", detail: "" };
3737
+ const installed = await installOpenClawPluginFrom(session, request.files.ownedFolder);
3738
+ if (installed.kind === "failed") {
3739
+ return { kind: "failed", reason: installed.timedOut ? "install_timed_out" : "install_failed", detail: failureDetail(installed) };
3740
+ }
3741
+ const enabled = await enableOpenClawPlugin(session);
3742
+ if (enabled.kind === "failed") return { kind: "failed", reason: "enable_failed", detail: failureDetail(enabled) };
3743
+ return { kind: "installed", inspection: await inspectWith(session, true), version: bundle.version };
3744
+ };
3745
+ var setupsRecordedOk = (files) => recordedSetups(files).flatMap((setup) => setup.read.kind === "ok" ? [setup.read.receipt] : []);
3746
+ var reinstallInto = async (launcher, receipt, folder) => {
3747
+ const session = sessionFor(launcher, receipt.environment);
3748
+ if (!isOursToRemove(await inspectOpenClawPlugin(session, { runtime: false }))) return "skipped";
3749
+ return (await installOpenClawPluginFrom(session, folder)).kind === "ok" ? "refreshed" : "failed";
3750
+ };
3751
+ var refreshOpenClawPlugin = async (request) => {
3752
+ const receipts = setupsRecordedOk(request.files);
3753
+ if (receipts.length === 0) return "not_set_up";
3754
+ const bundle = request.bundle === void 0 ? findBundledOpenClawPlugin() : request.bundle;
3755
+ if (bundle === null) return "failed";
3756
+ if (ownedFolderIsCurrent(request.files.ownedFolder, bundle)) return "current";
3757
+ const launcher = launcherFor(request.launcher, findOpenClawLauncher);
3758
+ if (launcher === null) return "failed";
3759
+ if (!writeOwnedFolder(bundle, request.files.ownedFolder)) return "failed";
3760
+ const results = [];
3761
+ for (const receipt of receipts) results.push(await reinstallInto(launcher, receipt, request.files.ownedFolder));
3762
+ if (results.includes("failed")) return "failed";
3763
+ return results.includes("refreshed") ? "refreshed" : "not_set_up";
3764
+ };
3765
+ var restoreEntry = async (session, receipt, entryNow) => {
3766
+ if (receipt.kind !== "ok") return unsetOpenClawEntry(session);
3767
+ const restore = entryToRestore(receipt.receipt.entryBefore, entryNow);
3768
+ return restore.kind === "unset" ? unsetOpenClawEntry(session) : writeOpenClawEntry(session, restore.value);
3769
+ };
3770
+ var removalTargets = (files) => {
3771
+ const recorded = recordedSetups(files).flatMap((setup) => setup.read.kind === "ok" ? [{ environment: setup.read.receipt.environment, receipt: setup.read, receiptPath: setup.path }] : []);
3772
+ const current = currentOpenClawEnvironment();
3773
+ const currentPath = receiptPathFor(files, current);
3774
+ return recorded.some((target) => target.receiptPath === currentPath) ? recorded : [...recorded, { environment: current, receipt: { kind: "missing" }, receiptPath: currentPath }];
3775
+ };
3776
+ var removeFromOneOpenClaw = async (target, request) => {
3777
+ const { environment, receipt } = target;
3778
+ const launcher = launcherFor(request.launcher, () => launcherWhereOpenClawLives(environment, receipt));
3779
+ if (launcher === null) return receipt.kind === "ok" ? { kind: "runtime_missing" } : { kind: "not_found" };
3780
+ const session = sessionFor(launcher, environment);
3781
+ const facts = await inspectOpenClawPlugin(session, { runtime: false });
3782
+ if (facts.kind === "unreadable") return { kind: "unreadable" };
3783
+ if (facts.kind === "installed" && !isOursToRemove(facts)) return { kind: "not_ours", packageName: facts.packageName };
3784
+ if (facts.kind === "not_installed" && receipt.kind === "missing") return { kind: "not_found" };
3785
+ if (request.dryRun) return { kind: "removed", dryRun: true, settingsRestored: true };
3786
+ const entryNow = await readOpenClawEntry(session);
3787
+ if (entryNow.kind === "unreadable") return { kind: "unreadable" };
3788
+ if (facts.kind === "installed") {
3789
+ const removed = await uninstallOpenClawPlugin(session, false);
3790
+ if (removed.kind === "failed") return { kind: "failed", detail: failureDetail(removed) };
3791
+ }
3792
+ const settingsRestored = await restoreEntry(session, receipt, entryNow.kind === "present" ? entryNow.value : void 0);
3793
+ if (settingsRestored) rmSync4(target.receiptPath, { force: true });
3794
+ return { kind: "removed", dryRun: false, settingsRestored };
3795
+ };
3796
+ var REMOVAL_PRECEDENCE = ["failed", "unreadable", "runtime_missing", "not_ours", "removed", "not_found"];
3797
+ var combinedRemoval = (outcomes) => {
3798
+ const worst = REMOVAL_PRECEDENCE.map((kind) => outcomes.find((outcome) => outcome.kind === kind)).find((outcome) => outcome !== void 0);
3799
+ if (worst === void 0) return { kind: "not_found" };
3800
+ if (worst.kind !== "removed") return worst;
3801
+ const everyRemoval = outcomes.flatMap((outcome) => outcome.kind === "removed" ? [outcome] : []);
3802
+ return { kind: "removed", dryRun: worst.dryRun, settingsRestored: everyRemoval.every((outcome) => outcome.settingsRestored) };
3803
+ };
3804
+ var removeOpenClawPlugin = async (request) => {
3805
+ if (recordedSetups(request.files).some((setup) => setup.read.kind === "invalid")) return { kind: "failed", detail: "setup receipt is unreadable" };
3806
+ const outcomes = [];
3807
+ for (const target of removalTargets(request.files)) outcomes.push(await removeFromOneOpenClaw(target, request));
3808
+ const combined = combinedRemoval(outcomes);
3809
+ if (combined.kind === "removed" && !combined.dryRun && recordedSetups(request.files).length === 0) rmSync4(request.files.ownedFolder, { recursive: true, force: true });
3810
+ return combined;
3811
+ };
3812
+ var openClawRemovalLeavesThePluginInstalled = (outcome) => outcome.kind === "failed" || outcome.kind === "unreadable" || outcome.kind === "runtime_missing";
3813
+
3516
3814
  export {
3517
3815
  HERMES_INSTALL_MARKER_FILE,
3518
3816
  HERMES_APPROVAL_TRANSPORT_KEY,
@@ -3555,5 +3853,11 @@ export {
3555
3853
  writeSetupReceipt,
3556
3854
  installHermesPlugin,
3557
3855
  refreshHermesPluginFiles,
3558
- removeHermesWiring
3856
+ removeHermesWiring,
3857
+ openClawFilesNow,
3858
+ inspectOpenClawWiring,
3859
+ installOpenClawPlugin,
3860
+ refreshOpenClawPlugin,
3861
+ removeOpenClawPlugin,
3862
+ openClawRemovalLeavesThePluginInstalled
3559
3863
  };
@@ -1,20 +1,25 @@
1
+ import {
2
+ openClawLauncherCandidates
3
+ } from "./chunk-T2CR5REM.js";
1
4
  import {
2
5
  openCodeConfigDirFrom
3
- } from "./chunk-GK5X2ZTN.js";
6
+ } from "./chunk-MI7GHNTO.js";
4
7
  import {
5
8
  nativeClaudeInstallPath
6
9
  } from "./chunk-CYTPQDQY.js";
7
10
  import {
8
11
  grokHome
9
- } from "./chunk-R34RWVN2.js";
12
+ } from "./chunk-2I6A34GJ.js";
10
13
  import {
11
14
  claudeConfigDir,
12
15
  clineDataDirectory,
13
- codexHomeFrom
14
- } from "./chunk-72LP4RPC.js";
16
+ codexHomeFrom,
17
+ openClawEnvironmentOf,
18
+ openClawPathsFrom
19
+ } from "./chunk-GJV5RVUU.js";
15
20
  import {
16
21
  HOOK_COMPATIBLE_PROFILES
17
- } from "./chunk-LQXUWXQP.js";
22
+ } from "./chunk-6JBX55K4.js";
18
23
 
19
24
  // src/vscode-config.ts
20
25
  import { homedir } from "os";
@@ -220,6 +225,11 @@ var agentProbes = (home = homedir2(), platform = process.platform) => ({
220
225
  paths: [],
221
226
  configMarkers: [join2(home, ".hermes")]
222
227
  },
228
+ openclaw: {
229
+ binary: "openclaw",
230
+ paths: openClawLauncherCandidates(openClawPathsFrom(openClawEnvironmentOf(process.env), home), home),
231
+ configMarkers: [openClawPathsFrom(openClawEnvironmentOf(process.env), home).stateDirectory]
232
+ },
223
233
  cursor: {
224
234
  // GUI editor. `cursor` on PATH only exists if the user ran "Install 'cursor'
225
235
  // command in PATH" from the command palette, which most never do.
@@ -277,6 +287,7 @@ var detectAllAgents = (deps = defaultDeps, home) => {
277
287
  }));
278
288
  };
279
289
  var isDetected = (result) => result.kind === "installed";
290
+ var detectedAgentChoices = () => detectAllAgents().filter((entry) => isDetected(entry.result)).map((entry) => entry.agent);
280
291
  var shortenHome = (path, home = homedir2()) => home && path.startsWith(home) ? `~${path.slice(home.length)}` : path;
281
292
  var describeDetection = (result, home) => {
282
293
  if (result.kind !== "installed") return null;
@@ -294,6 +305,7 @@ export {
294
305
  agentProbes,
295
306
  detectAllAgents,
296
307
  isDetected,
308
+ detectedAgentChoices,
297
309
  shortenHome,
298
310
  describeDetection
299
311
  };
@@ -2,7 +2,7 @@ import {
2
2
  DISCONNECT_AGENT_IDS,
3
3
  SETUP_AGENT_CHOICES,
4
4
  isApprovalMode
5
- } from "./chunk-LQXUWXQP.js";
5
+ } from "./chunk-6JBX55K4.js";
6
6
 
7
7
  // src/cli/mode-request.ts
8
8
  var parseDuration = (value) => {
@@ -55,7 +55,7 @@ var COMMAND_LIST = [
55
55
  {
56
56
  name: "setup",
57
57
  module: "pushary-setup",
58
- summary: "Configure Claude Code, Codex, Gemini CLI, Hermes, Cursor, VS Code, OpenCode, or fx with Pushary"
58
+ summary: "Configure Claude Code, Codex, Gemini CLI, Hermes, OpenClaw, Cursor, VS Code, OpenCode, or fx with Pushary"
59
59
  },
60
60
  {
61
61
  name: "claude",
@@ -95,7 +95,7 @@ var COMMAND_LIST = [
95
95
  name: "pair",
96
96
  module: "pushary-connect",
97
97
  aliases: ["connect"],
98
- summary: "Pair a phone without re-running setup (--app for the Pushary app; also: connect)"
98
+ summary: "Pair a phone without re-running setup: the Pushary app, or --browser for web push (also: connect)"
99
99
  },
100
100
  {
101
101
  name: "bell",
@@ -159,8 +159,8 @@ var COMMAND_OPTIONS = {
159
159
  ["--force", "Start a new sign-in instead of reusing the saved key"]
160
160
  ],
161
161
  pair: [
162
- ["--app", "Pair with the Pushary app"],
163
- ["--browser", "Pair through a browser (default)"]
162
+ ["--app", "Pair the Pushary app (default)"],
163
+ ["--browser", "Use browser web push instead of the app"]
164
164
  ],
165
165
  cowork: [
166
166
  ["--open", "Also open the setup guide in your browser"],
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  parseSseMessages
3
- } from "./chunk-WPBWJMBZ.js";
3
+ } from "./chunk-2QY2BD4T.js";
4
4
  import {
5
5
  fetchAsCredential
6
- } from "./chunk-S7HGPKCL.js";
6
+ } from "./chunk-UGPNLU4O.js";
7
7
  import {
8
8
  NPX_LATEST_COMMAND
9
- } from "./chunk-6LZ7MXHD.js";
9
+ } from "./chunk-JDIKCM2N.js";
10
10
 
11
11
  // src/mcp-stdio-bridge.ts
12
12
  var MCP_BRIDGE_BINARY = "pushary-mcp";
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  RETRY_ACK,
6
6
  refusedReceiptMessage
7
- } from "./chunk-BYKRAYGD.js";
7
+ } from "./chunk-GGCUXNZN.js";
8
8
 
9
9
  // src/command-receipts.ts
10
10
  import { randomUUID } from "crypto";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-72LP4RPC.js";
3
+ } from "./chunk-GJV5RVUU.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-TODDEIYG.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-LQXUWXQP.js";
9
+ } from "./chunk-6JBX55K4.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-BWREST4F.js";
3
+ } from "./chunk-3NMX4725.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-LQXUWXQP.js";
6
+ } from "./chunk-6JBX55K4.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  CODEX_HOOK_STATUS
3
- } from "./chunk-ZORBUQFG.js";
3
+ } from "./chunk-5II3USXS.js";
4
4
  import {
5
5
  HERMES_ALWAYS_ALLOWED_SHELL_RULE,
6
6
  HERMES_COMMAND_ALLOWLIST_KEY,
7
7
  HERMES_GATE_TOOLS_KEY,
8
8
  HERMES_SHELL_TOOL
9
- } from "./chunk-ZSOCJHL7.js";
9
+ } from "./chunk-ISM6XF3V.js";
10
10
  import {
11
11
  retryAgentCommand
12
- } from "./chunk-2ELNRGNX.js";
12
+ } from "./chunk-FMAIUTVU.js";
13
13
  import {
14
14
  NPX_LATEST_COMMAND
15
- } from "./chunk-6LZ7MXHD.js";
15
+ } from "./chunk-JDIKCM2N.js";
16
16
 
17
17
  // src/setup/codex-trust.ts
18
18
  var CODEX_TRUST_TELEMETRY = {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AGENT_CHOICES
3
- } from "./chunk-ZBMVOMFG.js";
3
+ } from "./chunk-NMUEUDTT.js";
4
4
  import {
5
5
  BELL_HOOK_BINARY
6
- } from "./chunk-SQL5YXUH.js";
6
+ } from "./chunk-OXDKZYBO.js";
7
7
  import {
8
8
  CLAUDE_HOOK_EVENTS,
9
9
  CODEX_HOOK_EVENTS,
@@ -16,13 +16,13 @@ import {
16
16
  isBridgeLocator,
17
17
  isProtectedByScope,
18
18
  registerHookEntry
19
- } from "./chunk-72LP4RPC.js";
19
+ } from "./chunk-GJV5RVUU.js";
20
20
  import {
21
21
  CURSOR_GATE_EVENTS,
22
22
  HOOK_BUDGETS,
23
23
  HOOK_LOCATOR_BINARY,
24
24
  hookCommandHoldBudget
25
- } from "./chunk-LQXUWXQP.js";
25
+ } from "./chunk-6JBX55K4.js";
26
26
 
27
27
  // src/gemini-config.ts
28
28
  var GEMINI_HOOK_BINARY = "pushary-gemini-hook";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  absoluteUrl
3
- } from "./chunk-YRJZF5RG.js";
3
+ } from "./chunk-3TTXOU6G.js";
4
4
  import {
5
5
  KEY_SCOPE
6
- } from "./chunk-LQXUWXQP.js";
6
+ } from "./chunk-6JBX55K4.js";
7
7
 
8
8
  // src/cli/approval-settings-pages.ts
9
9
  var API_KEYS_PATH = "/dashboard/agent/settings";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  compatibleConfigFile
3
- } from "./chunk-R34RWVN2.js";
3
+ } from "./chunk-2I6A34GJ.js";
4
4
  import {
5
5
  hookOwnerOf,
6
6
  hookOwnerOfCommands
7
- } from "./chunk-CUR2DCZN.js";
7
+ } from "./chunk-L6BTSIKF.js";
8
8
  import {
9
9
  AGENT_CHOICES
10
- } from "./chunk-ZBMVOMFG.js";
10
+ } from "./chunk-NMUEUDTT.js";
11
11
  import {
12
12
  bridgeStub,
13
13
  claudeSettings,
@@ -19,7 +19,7 @@ import {
19
19
  resolveBridgeStub,
20
20
  vscodePluginDir,
21
21
  windowsNodeLauncherFor
22
- } from "./chunk-72LP4RPC.js";
22
+ } from "./chunk-GJV5RVUU.js";
23
23
  import {
24
24
  readJsonSafe
25
25
  } from "./chunk-TODDEIYG.js";
@@ -29,7 +29,7 @@ import {
29
29
  OPENCODE_APPROVAL_EVENT,
30
30
  hookCompatibleProfile,
31
31
  isRecord
32
- } from "./chunk-LQXUWXQP.js";
32
+ } from "./chunk-6JBX55K4.js";
33
33
 
34
34
  // src/opencode-plugin.ts
35
35
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-POFBE6ZY.js";
4
4
  import {
5
5
  autoUpdateState
6
- } from "./chunk-72LP4RPC.js";
6
+ } from "./chunk-GJV5RVUU.js";
7
7
  import {
8
8
  readJsonSafe,
9
9
  writeJsonAtomic
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-WIIMW5YO.js";
18
18
  import {
19
19
  isAutoUpdateResult
20
- } from "./chunk-LQXUWXQP.js";
20
+ } from "./chunk-6JBX55K4.js";
21
21
 
22
22
  // src/auto-update.ts
23
23
  import { spawn } from "child_process";
@@ -4,37 +4,37 @@ import {
4
4
  postLiveSession,
5
5
  postLiveSessionUntilAccepted,
6
6
  startLiveSessionHeartbeat
7
- } from "./chunk-4L5WPDTB.js";
7
+ } from "./chunk-57GVGSOQ.js";
8
8
  import {
9
9
  CommandReceipts,
10
10
  controllerCommandSchema
11
- } from "./chunk-LMU6NG2G.js";
11
+ } from "./chunk-KFL7OWLI.js";
12
12
  import {
13
13
  SESSION_IDLE_TIMEOUT_MS,
14
14
  describeIdleWindow,
15
15
  idleDeadlinePassed,
16
16
  startProcessOwnership
17
- } from "./chunk-PXZTCR4M.js";
17
+ } from "./chunk-KH27X5CW.js";
18
18
  import {
19
19
  repositoryScopeFor
20
- } from "./chunk-6UK4K5RS.js";
20
+ } from "./chunk-BYVLAPCF.js";
21
21
  import {
22
22
  isAskUserResponse,
23
23
  isDecisionStopped,
24
24
  isWaitForAnswerResponse,
25
25
  withdrawQuestion,
26
26
  writeDegraded
27
- } from "./chunk-YU5XE6VC.js";
27
+ } from "./chunk-FKGWP4MF.js";
28
28
  import {
29
29
  callMcpTool,
30
30
  isRetryable
31
- } from "./chunk-WPBWJMBZ.js";
31
+ } from "./chunk-2QY2BD4T.js";
32
32
  import {
33
33
  spawnClaude
34
34
  } from "./chunk-H6CL3T2S.js";
35
35
  import {
36
36
  readCommandAck
37
- } from "./chunk-BYKRAYGD.js";
37
+ } from "./chunk-GGCUXNZN.js";
38
38
  import {
39
39
  AGENT_QUESTION_DESCRIPTION_MAX,
40
40
  AGENT_QUESTION_HEADER_MAX,
@@ -55,7 +55,7 @@ import {
55
55
  parseCodexQuestions,
56
56
  planElicitationAsk,
57
57
  readElicitationFields
58
- } from "./chunk-LQXUWXQP.js";
58
+ } from "./chunk-6JBX55K4.js";
59
59
 
60
60
  // src/codex-question-owner.ts
61
61
  import { createHash } from "crypto";