pushary 1.9.39 → 1.9.40

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 (100) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/bin/pushary-bell-hook.js +25 -25
  3. package/dist/bin/pushary-bell.js +9 -9
  4. package/dist/bin/pushary-claude.js +24 -24
  5. package/dist/bin/pushary-clean.js +29 -29
  6. package/dist/bin/pushary-codex-bridge.js +135 -30
  7. package/dist/bin/pushary-codex-hook.js +30 -30
  8. package/dist/bin/pushary-codex.js +12 -12
  9. package/dist/bin/pushary-connect.js +24 -24
  10. package/dist/bin/pushary-cowork.js +5 -5
  11. package/dist/bin/pushary-daemon.js +32 -32
  12. package/dist/bin/pushary-disconnect.js +24 -24
  13. package/dist/bin/pushary-doctor.js +33 -33
  14. package/dist/bin/pushary-elicitation-hook.js +25 -25
  15. package/dist/bin/pushary-gemini-bridge.js +13 -13
  16. package/dist/bin/pushary-gemini-hook.js +27 -27
  17. package/dist/bin/pushary-hook.js +29 -29
  18. package/dist/bin/pushary-login.js +12 -12
  19. package/dist/bin/pushary-logout.js +24 -24
  20. package/dist/bin/pushary-mcp.js +9 -9
  21. package/dist/bin/pushary-mode.js +12 -12
  22. package/dist/bin/pushary-notification-hook.js +24 -24
  23. package/dist/bin/pushary-opencode-hook.js +26 -26
  24. package/dist/bin/pushary-permission-denied-hook.js +29 -29
  25. package/dist/bin/pushary-permission-hook.js +28 -28
  26. package/dist/bin/pushary-post-hook.js +24 -24
  27. package/dist/bin/pushary-prompt-hook.js +24 -24
  28. package/dist/bin/pushary-session-end-hook.js +24 -24
  29. package/dist/bin/pushary-session-start-hook.js +28 -28
  30. package/dist/bin/pushary-setup.js +35 -35
  31. package/dist/bin/pushary-stats.js +5 -5
  32. package/dist/bin/pushary-status.js +26 -26
  33. package/dist/bin/pushary-stop-hook.js +24 -24
  34. package/dist/bin/pushary-stopfailure-hook.js +24 -24
  35. package/dist/bin/pushary-suggestions.js +12 -12
  36. package/dist/bin/pushary-transcript-register.js +17 -17
  37. package/dist/bin/pushary-transcripts.js +7 -7
  38. package/dist/bin/pushary-upgrade.js +30 -30
  39. package/dist/bin/pushary-wait.js +12 -12
  40. package/dist/bin/pushary.js +6 -6
  41. package/dist/{chunk-RJDMLAHO.js → chunk-22SNRAZS.js} +3 -3
  42. package/dist/{chunk-BCOS5PVT.js → chunk-2UG5Y6EC.js} +1 -1
  43. package/dist/{chunk-Z2ZPMSJO.js → chunk-2UKEITTN.js} +3 -3
  44. package/dist/{chunk-YHTGLZ3F.js → chunk-3E2P45GK.js} +4 -4
  45. package/dist/{chunk-NBH6KBD4.js → chunk-4YYT4QYH.js} +2 -2
  46. package/dist/{chunk-EBBESQKO.js → chunk-54JZ6GLW.js} +1 -1
  47. package/dist/{chunk-J4FVW55Z.js → chunk-6YJS2IJS.js} +1 -1
  48. package/dist/{chunk-GFPUTOME.js → chunk-7TV7BXIH.js} +2 -2
  49. package/dist/{chunk-6DYR4SX2.js → chunk-ABSVJ3WV.js} +5 -5
  50. package/dist/{chunk-GLGMC25A.js → chunk-ADWW7Y6X.js} +8 -8
  51. package/dist/{chunk-AVCTQB2J.js → chunk-ATMCBW5L.js} +1 -1
  52. package/dist/{chunk-ZEJ4HPXN.js → chunk-AYU4S7RQ.js} +3 -3
  53. package/dist/{chunk-XWG22IUE.js → chunk-AYUCBAIJ.js} +6 -6
  54. package/dist/{chunk-4G4T2EL2.js → chunk-BXPIKJPY.js} +1 -1
  55. package/dist/{chunk-36Y2YAAQ.js → chunk-C7P5VIU6.js} +1 -1
  56. package/dist/{chunk-PP3D2TG6.js → chunk-CCAYCIW4.js} +4 -4
  57. package/dist/{chunk-AX4MCCIQ.js → chunk-CPGW7MMA.js} +1 -1
  58. package/dist/{chunk-Z4IBDCBH.js → chunk-CQ56WBBP.js} +3 -3
  59. package/dist/{chunk-3KWEGRNF.js → chunk-DKJFRVVN.js} +5 -5
  60. package/dist/{chunk-EOULXXHA.js → chunk-E6QJMEQJ.js} +1 -1
  61. package/dist/{chunk-RQN752UC.js → chunk-EK7EOHH5.js} +5 -5
  62. package/dist/{chunk-AWPUBTCU.js → chunk-EPFB6LGF.js} +21 -12
  63. package/dist/{chunk-NEPOKBSG.js → chunk-ESJY5UYZ.js} +1 -1
  64. package/dist/{chunk-L5OCX5EH.js → chunk-FZ5FYVR3.js} +2 -2
  65. package/dist/{chunk-54OESWJ5.js → chunk-GBUAOQ7Q.js} +2 -2
  66. package/dist/{chunk-BXD33IG7.js → chunk-HPZMNWDI.js} +5 -5
  67. package/dist/{chunk-TNGCGQ4R.js → chunk-IKBQRXPQ.js} +4 -4
  68. package/dist/{chunk-RDR4CWVU.js → chunk-KH57L2HF.js} +2 -2
  69. package/dist/{chunk-X7OOLKKT.js → chunk-KPDV6RQL.js} +1 -1
  70. package/dist/{chunk-HYRUW76F.js → chunk-MAEO47WP.js} +10 -10
  71. package/dist/{chunk-WBZEW5RY.js → chunk-MAMQK4I2.js} +2 -2
  72. package/dist/{chunk-A4C6JKIJ.js → chunk-MFGPTJJ3.js} +4 -4
  73. package/dist/{chunk-6UQC6RLE.js → chunk-N2JDDOQS.js} +8 -8
  74. package/dist/{chunk-KLNC2KW5.js → chunk-N7MBQPIF.js} +2 -2
  75. package/dist/{chunk-77HOP22I.js → chunk-P2IT4Y5Q.js} +4 -4
  76. package/dist/{chunk-O4ZDPJU2.js → chunk-P2PWALZL.js} +4 -4
  77. package/dist/{chunk-I2SXJH5G.js → chunk-P7WQCX4D.js} +7 -7
  78. package/dist/{chunk-DMGXWZYC.js → chunk-PFTAURWI.js} +4 -4
  79. package/dist/{chunk-W52MFAWQ.js → chunk-PKNHXBL2.js} +2 -2
  80. package/dist/{chunk-JTHGOW7A.js → chunk-PZTLBH6Z.js} +2 -2
  81. package/dist/{chunk-SSV75WCM.js → chunk-QDC2VGFO.js} +3 -3
  82. package/dist/{chunk-4QAX6YTC.js → chunk-QENU2KIM.js} +1 -1
  83. package/dist/{chunk-LBNXMPQ6.js → chunk-QLV5S2KS.js} +5 -5
  84. package/dist/{chunk-E3ZYXYBV.js → chunk-QWWJWPUV.js} +1 -1
  85. package/dist/{chunk-NNJNN5OL.js → chunk-SGOQGCKJ.js} +2 -2
  86. package/dist/{chunk-XN3DMUWI.js → chunk-THIH3GV7.js} +6 -6
  87. package/dist/{chunk-IL5NWORI.js → chunk-UOMFOMJM.js} +4 -4
  88. package/dist/{chunk-VHGTMFKS.js → chunk-UTJSAOB2.js} +2 -2
  89. package/dist/{chunk-6EVKSX75.js → chunk-V2TZVYXI.js} +4 -4
  90. package/dist/{chunk-BPHAE44X.js → chunk-VMIR56HZ.js} +1 -1
  91. package/dist/{chunk-KBH7AEQK.js → chunk-W6PSSMTV.js} +5 -5
  92. package/dist/{chunk-6FBQLKOJ.js → chunk-WNJW2NFZ.js} +3 -3
  93. package/dist/{chunk-SOPKWVMZ.js → chunk-XJD5H72U.js} +1 -1
  94. package/dist/{chunk-IHP6X4MJ.js → chunk-YVMQGRLS.js} +1 -1
  95. package/dist/{global-upgrade-364SJFGE.js → global-upgrade-KN7W4ULD.js} +6 -6
  96. package/dist/{paths-HRX7TWHU.js → paths-55G5FUXV.js} +2 -2
  97. package/dist/{reapply-3IZIQNEU.js → reapply-MCZ6RY6S.js} +20 -20
  98. package/dist/src/index.js +19 -19
  99. package/dist/{upgrade-lock-PPYGYFVQ.js → upgrade-lock-HNWCOGS6.js} +3 -3
  100. package/package.json +1 -1
@@ -2,7 +2,7 @@ import {
2
2
  DISCONNECT_AGENT_IDS,
3
3
  SETUP_AGENT_CHOICES,
4
4
  isApprovalMode
5
- } from "./chunk-AWPUBTCU.js";
5
+ } from "./chunk-EPFB6LGF.js";
6
6
 
7
7
  // src/cli/mode-request.ts
8
8
  var parseDuration = (value) => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  keyCheckFromResponse
3
- } from "./chunk-SSV75WCM.js";
3
+ } from "./chunk-QDC2VGFO.js";
4
4
  import {
5
5
  installNetworkDefaults
6
- } from "./chunk-ZEJ4HPXN.js";
6
+ } from "./chunk-AYU4S7RQ.js";
7
7
  import {
8
8
  getBaseUrl
9
- } from "./chunk-SOPKWVMZ.js";
9
+ } from "./chunk-XJD5H72U.js";
10
10
 
11
11
  // src/retry.ts
12
12
  var isRetryable = (err) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  APPROVAL_SETTINGS_PATH
3
- } from "./chunk-TNGCGQ4R.js";
3
+ } from "./chunk-IKBQRXPQ.js";
4
4
  import {
5
5
  readMacAppAgentKey
6
- } from "./chunk-77HOP22I.js";
6
+ } from "./chunk-P2IT4Y5Q.js";
7
7
  import {
8
8
  findExportedKeyLines,
9
9
  isAdoptedMacAppKey,
@@ -13,13 +13,13 @@ import {
13
13
  readConfigFileKey,
14
14
  readKeySource,
15
15
  readMacAppKeyPrefix
16
- } from "./chunk-Z2ZPMSJO.js";
16
+ } from "./chunk-2UKEITTN.js";
17
17
  import {
18
18
  absoluteUrl
19
- } from "./chunk-SSV75WCM.js";
19
+ } from "./chunk-QDC2VGFO.js";
20
20
  import {
21
21
  isValidApiKey
22
- } from "./chunk-AWPUBTCU.js";
22
+ } from "./chunk-EPFB6LGF.js";
23
23
 
24
24
  // src/key-revocation.ts
25
25
  var SELF_REVOKE_PATH = "/api/v1/server/keys/self/revoke";
@@ -10,7 +10,7 @@ import {
10
10
  isSetupConnectMode,
11
11
  isValidApiKey,
12
12
  normalizeAgentId
13
- } from "./chunk-AWPUBTCU.js";
13
+ } from "./chunk-EPFB6LGF.js";
14
14
 
15
15
  // src/setup/options.ts
16
16
  var AGENT_CHOICES = SETUP_AGENT_CHOICES;
@@ -4,7 +4,7 @@ import {
4
4
  forkFinishWithUpgradeLock,
5
5
  installWithUpgradeLock,
6
6
  releaseAutoUpdateLock
7
- } from "./chunk-AVCTQB2J.js";
7
+ } from "./chunk-ATMCBW5L.js";
8
8
  import {
9
9
  describeAutoUpdateCheck,
10
10
  globalInstallLocation,
@@ -14,7 +14,7 @@ import {
14
14
  readAutoUpdateState,
15
15
  updateAutoUpdateState,
16
16
  upgradeEntryFor
17
- } from "./chunk-NBH6KBD4.js";
17
+ } from "./chunk-4YYT4QYH.js";
18
18
  import {
19
19
  EXIT
20
20
  } from "./chunk-KZERVKTD.js";
@@ -27,10 +27,10 @@ import {
27
27
  npmErrorMessage,
28
28
  readGlobalCliInstallAt,
29
29
  readGlobalPrefix
30
- } from "./chunk-IL5NWORI.js";
30
+ } from "./chunk-UOMFOMJM.js";
31
31
  import {
32
32
  NPX_LATEST_COMMAND
33
- } from "./chunk-AX4MCCIQ.js";
33
+ } from "./chunk-CPGW7MMA.js";
34
34
  import {
35
35
  commandsPackage,
36
36
  globalUpgradeEntry,
@@ -39,7 +39,7 @@ import {
39
39
  isSameMajorVersion,
40
40
  ownPackageRoot,
41
41
  packageVersionAt
42
- } from "./chunk-AWPUBTCU.js";
42
+ } from "./chunk-EPFB6LGF.js";
43
43
 
44
44
  // src/global-upgrade.ts
45
45
  import { existsSync } from "fs";
@@ -388,9 +388,9 @@ var CANONICAL_COMMAND_KEYS = ["command"];
388
388
  var SHELL_TOOLS = /* @__PURE__ */ new Set([SHELL_TOOL, POWERSHELL_TOOL]);
389
389
  var PATH_TOOLS = /* @__PURE__ */ new Set(["Write", "Edit", "MultiEdit", "NotebookEdit", "Read"]);
390
390
  var PHONE_ANSWERED_TOOLS = /* @__PURE__ */ new Set(["AskUserQuestion", "ExitPlanMode"]);
391
- var firstString = (record, keys) => {
391
+ var firstString = (record2, keys) => {
392
392
  for (const key of keys) {
393
- const value = record[key];
393
+ const value = record2[key];
394
394
  if (typeof value === "string" && value.length > 0) return value;
395
395
  }
396
396
  return void 0;
@@ -2528,6 +2528,12 @@ var ANSWER_DRAFT_TTL_MS = 24 * 60 * 60 * 1e3;
2528
2528
  var DECISION_REMINDER_DELAY_MS = 10 * 60 * 1e3;
2529
2529
  var DECISION_CACHE_TTL_SECONDS = 10 * 60;
2530
2530
 
2531
+ // ../contracts/src/question-continuation.ts
2532
+ var PERSONAL_QUESTION_CAPABILITY = "codex-owned-question-v1";
2533
+ var record = (value) => value !== null && typeof value === "object" && !Array.isArray(value);
2534
+ var identifier = (value) => typeof value === "string" && value.length > 0 && value.length <= 200;
2535
+ var isQuestionOwner = (value) => record(value) && value.capability === PERSONAL_QUESTION_CAPABILITY && identifier(value.machineId) && identifier(value.generation) && identifier(value.threadId) && identifier(value.turnId) && identifier(value.itemId) && (identifier(value.requestId) || typeof value.requestId === "number" && Number.isSafeInteger(value.requestId)) && value.method === "item/tool/requestUserInput" && typeof value.subjectHash === "string" && /^[a-f0-9]{64}$/.test(value.subjectHash) && Object.keys(value).length === 9;
2536
+
2531
2537
  // ../contracts/src/index.ts
2532
2538
  var KEY_SCOPES = ["full_access", "agent", "connector", "bound"];
2533
2539
  var normalizeKeyScope = (value) => typeof value === "string" && KEY_SCOPES.includes(value) ? value : null;
@@ -2599,9 +2605,9 @@ var isAgentQuestionSet = (value) => {
2599
2605
  const labels = /* @__PURE__ */ new Set();
2600
2606
  for (const option of question.options) {
2601
2607
  if (!option || typeof option !== "object" || Array.isArray(option)) return false;
2602
- const record = option;
2603
- const label = record.label;
2604
- if (typeof label !== "string" || label.length === 0 || labels.has(label) || record.description !== void 0 && typeof record.description !== "string") return false;
2608
+ const record2 = option;
2609
+ const label = record2.label;
2610
+ if (typeof label !== "string" || label.length === 0 || labels.has(label) || record2.description !== void 0 && typeof record2.description !== "string") return false;
2605
2611
  labels.add(label);
2606
2612
  }
2607
2613
  questions.add(question.question);
@@ -5329,8 +5335,8 @@ var isBlockedActionRequest = (request) => isBlockedActionEvent(request) && block
5329
5335
  var canonicalJsonText = (value) => {
5330
5336
  if (Array.isArray(value)) return `[${value.map(canonicalJsonText).join(",")}]`;
5331
5337
  if (value !== null && typeof value === "object") {
5332
- const record = value;
5333
- return `{${Object.keys(record).filter((key) => record[key] !== void 0).sort().map((key) => `${JSON.stringify(key)}:${canonicalJsonText(record[key])}`).join(",")}}`;
5338
+ const record2 = value;
5339
+ return `{${Object.keys(record2).filter((key) => record2[key] !== void 0).sort().map((key) => `${JSON.stringify(key)}:${canonicalJsonText(record2[key])}`).join(",")}}`;
5334
5340
  }
5335
5341
  return JSON.stringify(value) ?? "null";
5336
5342
  };
@@ -5710,11 +5716,11 @@ var elicitationEnum = (property) => {
5710
5716
  return members.length === property.enum.length && members.length >= ELICITATION_MIN_OPTIONS ? members : null;
5711
5717
  };
5712
5718
  var readElicitationFields = (schema) => {
5713
- const record = elicitationRecord(schema);
5714
- const properties = elicitationRecord(record?.properties);
5715
- if (!properties || record?.type !== "object") return null;
5716
- if (Object.keys(record).some((key) => !["type", "properties", "required", "$schema"].includes(key))) return null;
5717
- if (record.required !== void 0 && (!Array.isArray(record.required) || !record.required.every((name) => typeof name === "string" && Object.hasOwn(properties, name)))) return null;
5719
+ const record2 = elicitationRecord(schema);
5720
+ const properties = elicitationRecord(record2?.properties);
5721
+ if (!properties || record2?.type !== "object") return null;
5722
+ if (Object.keys(record2).some((key) => !["type", "properties", "required", "$schema"].includes(key))) return null;
5723
+ if (record2.required !== void 0 && (!Array.isArray(record2.required) || !record2.required.every((name) => typeof name === "string" && Object.hasOwn(properties, name)))) return null;
5718
5724
  const entries = Object.entries(properties);
5719
5725
  if (entries.length === 0) return null;
5720
5726
  const fields = [];
@@ -6037,6 +6043,8 @@ export {
6037
6043
  withDeclinedAgent,
6038
6044
  withoutDeclinedAgent,
6039
6045
  isAutoUpdateResult,
6046
+ PERSONAL_QUESTION_CAPABILITY,
6047
+ isQuestionOwner,
6040
6048
  normalizeKeyScope,
6041
6049
  isApprovalMode,
6042
6050
  approvalModeWithoutLocalPrompt,
@@ -6094,6 +6102,7 @@ export {
6094
6102
  questionHandedToTheTerminal,
6095
6103
  CODEX_RESCUE_TOOL_NAME,
6096
6104
  isBlockedActionRequest,
6105
+ canonicalJsonText,
6097
6106
  BLOCKED_ACTION_GRANT_TTL_SECONDS,
6098
6107
  blockedActionIdentity,
6099
6108
  PRETOOLUSE_GATED_TOOLS,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getBaseUrl
3
- } from "./chunk-SOPKWVMZ.js";
3
+ } from "./chunk-XJD5H72U.js";
4
4
 
5
5
  // src/transcript-api.ts
6
6
  var fetchTranscriptRecipients = async (apiKey, baseUrl = getBaseUrl()) => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-IL5NWORI.js";
3
+ } from "./chunk-UOMFOMJM.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-AQFEP65J.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-AWPUBTCU.js";
9
+ } from "./chunk-EPFB6LGF.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-IL5NWORI.js";
3
+ } from "./chunk-UOMFOMJM.js";
4
4
  import {
5
5
  readJsonSafe,
6
6
  writeFileAtomic
@@ -13,7 +13,7 @@ import {
13
13
  serializeDeclinedAgents,
14
14
  withDeclinedAgent,
15
15
  withoutDeclinedAgent
16
- } from "./chunk-AWPUBTCU.js";
16
+ } from "./chunk-EPFB6LGF.js";
17
17
 
18
18
  // src/declined-agents-file.ts
19
19
  import { join } from "path";
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-XHKBHWLX.js";
5
5
  import {
6
6
  readControlMode
7
- } from "./chunk-Z2ZPMSJO.js";
7
+ } from "./chunk-2UKEITTN.js";
8
8
  import {
9
9
  getMachineId
10
- } from "./chunk-E3ZYXYBV.js";
10
+ } from "./chunk-QWWJWPUV.js";
11
11
  import {
12
12
  pusharyDir,
13
13
  resolveGlobalBinary
14
- } from "./chunk-IL5NWORI.js";
14
+ } from "./chunk-UOMFOMJM.js";
15
15
  import {
16
16
  readJsonSafe,
17
17
  writeFileAtomic,
@@ -20,7 +20,7 @@ import {
20
20
  } from "./chunk-AQFEP65J.js";
21
21
  import {
22
22
  getApiKey
23
- } from "./chunk-SOPKWVMZ.js";
23
+ } from "./chunk-XJD5H72U.js";
24
24
  import {
25
25
  CLI_PACKAGE_NAMES,
26
26
  cmdShimTarget,
@@ -28,7 +28,7 @@ import {
28
28
  globalPackageFolder,
29
29
  globalRootFor,
30
30
  isRecord
31
- } from "./chunk-AWPUBTCU.js";
31
+ } from "./chunk-EPFB6LGF.js";
32
32
 
33
33
  // src/daemon-lifecycle.ts
34
34
  import { dirname, join, win32 as win32Path } from "path";
@@ -2,25 +2,25 @@ import {
2
2
  SIGNED_OUT_ON_MAC_MESSAGE,
3
3
  describeSignedOutKey,
4
4
  readSignedOutDiagnosis
5
- } from "./chunk-JTHGOW7A.js";
5
+ } from "./chunk-PZTLBH6Z.js";
6
6
  import {
7
7
  createIo
8
8
  } from "./chunk-FO3MDD26.js";
9
9
  import {
10
10
  readKeySource
11
- } from "./chunk-Z2ZPMSJO.js";
11
+ } from "./chunk-2UKEITTN.js";
12
12
  import {
13
13
  absoluteUrl,
14
14
  checkApiKey,
15
15
  describeKeyCheck,
16
16
  keyCheckFromResponse
17
- } from "./chunk-SSV75WCM.js";
17
+ } from "./chunk-QDC2VGFO.js";
18
18
  import {
19
19
  EXIT
20
20
  } from "./chunk-KZERVKTD.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-SOPKWVMZ.js";
23
+ } from "./chunk-XJD5H72U.js";
24
24
 
25
25
  // src/cli/report-key.ts
26
26
  var { dim, yellow } = createIo();
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-KZERVKTD.js";
4
4
  import {
5
5
  renderCommandHelp
6
- } from "./chunk-AX4MCCIQ.js";
6
+ } from "./chunk-CPGW7MMA.js";
7
7
  import {
8
8
  getPackageVersion
9
- } from "./chunk-AWPUBTCU.js";
9
+ } from "./chunk-EPFB6LGF.js";
10
10
 
11
11
  // src/cli/usage.ts
12
12
  var exitOnHelpFlag = (command) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  guardBinary
3
- } from "./chunk-IL5NWORI.js";
3
+ } from "./chunk-UOMFOMJM.js";
4
4
 
5
5
  // src/bell/install.ts
6
6
  import { join } from "path";
@@ -4,19 +4,19 @@ import {
4
4
  outcomeOfFailedAsk,
5
5
  reportMachineDenial,
6
6
  storedWaitDeadline
7
- } from "./chunk-XN3DMUWI.js";
7
+ } from "./chunk-THIH3GV7.js";
8
8
  import {
9
9
  isGatingMoment,
10
10
  recordKeylessMoment
11
- } from "./chunk-4QAX6YTC.js";
11
+ } from "./chunk-QENU2KIM.js";
12
12
  import {
13
13
  isDeferAnswer,
14
14
  oncePerSession
15
- } from "./chunk-36Y2YAAQ.js";
15
+ } from "./chunk-C7P5VIU6.js";
16
16
  import {
17
17
  activeHookSource,
18
18
  activeIdentity
19
- } from "./chunk-PP3D2TG6.js";
19
+ } from "./chunk-CCAYCIW4.js";
20
20
  import {
21
21
  DEFAULT_SESSION,
22
22
  UNNAMED_ACTION,
@@ -41,7 +41,7 @@ import {
41
41
  reportEvent,
42
42
  scopePathFor,
43
43
  settleQuestionsForToolUse
44
- } from "./chunk-GLGMC25A.js";
44
+ } from "./chunk-ADWW7Y6X.js";
45
45
  import {
46
46
  askUser,
47
47
  cancelQuestion,
@@ -54,17 +54,17 @@ import {
54
54
  sendNotification,
55
55
  waitForQuestion,
56
56
  waitsForThePhone
57
- } from "./chunk-KBH7AEQK.js";
57
+ } from "./chunk-W6PSSMTV.js";
58
58
  import {
59
59
  getMachineId
60
- } from "./chunk-E3ZYXYBV.js";
60
+ } from "./chunk-QWWJWPUV.js";
61
61
  import {
62
62
  getApiKey,
63
63
  getBaseUrl
64
- } from "./chunk-SOPKWVMZ.js";
64
+ } from "./chunk-XJD5H72U.js";
65
65
  import {
66
66
  NPX_LATEST_COMMAND
67
- } from "./chunk-AX4MCCIQ.js";
67
+ } from "./chunk-CPGW7MMA.js";
68
68
  import {
69
69
  AGENT_QUESTION_STRATEGY,
70
70
  AGENT_QUESTION_TOOL,
@@ -109,7 +109,7 @@ import {
109
109
  resolveGate,
110
110
  timeoutActionWithoutLocalPrompt,
111
111
  unansweredRefusalReason
112
- } from "./chunk-AWPUBTCU.js";
112
+ } from "./chunk-EPFB6LGF.js";
113
113
 
114
114
  // src/claude-permission-rules.ts
115
115
  import { readFileSync, statSync } from "fs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  configFilePath
3
- } from "./chunk-SOPKWVMZ.js";
3
+ } from "./chunk-XJD5H72U.js";
4
4
  import {
5
5
  normalizeInstallSource
6
- } from "./chunk-AWPUBTCU.js";
6
+ } from "./chunk-EPFB6LGF.js";
7
7
 
8
8
  // src/install-source.ts
9
9
  import { readFileSync } from "fs";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-PP3D2TG6.js";
4
+ } from "./chunk-CCAYCIW4.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-LBNXMPQ6.js";
7
+ } from "./chunk-QLV5S2KS.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-IL5NWORI.js";
11
+ } from "./chunk-UOMFOMJM.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-AWPUBTCU.js";
14
+ } from "./chunk-EPFB6LGF.js";
15
15
 
16
16
  // src/cursor-config.ts
17
17
  var hookCommandOf = (entry) => {
@@ -6,38 +6,38 @@ import {
6
6
  } from "./chunk-DWQYCOPI.js";
7
7
  import {
8
8
  ensureDaemonRunning
9
- } from "./chunk-BXD33IG7.js";
9
+ } from "./chunk-HPZMNWDI.js";
10
10
  import {
11
11
  buildTranscriptRecords,
12
12
  decodePublicKey,
13
13
  generateSessionKey,
14
14
  wrapSessionKey
15
- } from "./chunk-4G4T2EL2.js";
15
+ } from "./chunk-BXPIKJPY.js";
16
16
  import {
17
17
  fetchTranscriptRecipients,
18
18
  uploadTranscriptRecords
19
- } from "./chunk-NEPOKBSG.js";
19
+ } from "./chunk-ESJY5UYZ.js";
20
20
  import {
21
21
  transcriptEnvironmentPreference,
22
22
  transcriptsEnabled
23
- } from "./chunk-BCOS5PVT.js";
23
+ } from "./chunk-2UG5Y6EC.js";
24
24
  import {
25
25
  hookOwnerOf
26
- } from "./chunk-LBNXMPQ6.js";
26
+ } from "./chunk-QLV5S2KS.js";
27
27
  import {
28
28
  readTranscriptPreference
29
- } from "./chunk-Z2ZPMSJO.js";
29
+ } from "./chunk-2UKEITTN.js";
30
30
  import {
31
31
  codexHome,
32
32
  pusharyDir
33
- } from "./chunk-IL5NWORI.js";
33
+ } from "./chunk-UOMFOMJM.js";
34
34
  import {
35
35
  writeJsonAtomic
36
36
  } from "./chunk-AQFEP65J.js";
37
37
  import {
38
38
  getApiKey,
39
39
  getBaseUrl
40
- } from "./chunk-SOPKWVMZ.js";
40
+ } from "./chunk-XJD5H72U.js";
41
41
 
42
42
  // src/transcript-registration.ts
43
43
  import { createHash } from "crypto";
@@ -3,11 +3,11 @@ import {
3
3
  decodePublicKey,
4
4
  generateSessionKey,
5
5
  wrapSessionKey
6
- } from "./chunk-4G4T2EL2.js";
6
+ } from "./chunk-BXPIKJPY.js";
7
7
  import {
8
8
  fetchTranscriptRecipients,
9
9
  uploadTranscriptRecords
10
- } from "./chunk-NEPOKBSG.js";
10
+ } from "./chunk-ESJY5UYZ.js";
11
11
 
12
12
  // src/live-session.ts
13
13
  var MAX_TRANSCRIPT_QUEUE = 100;
@@ -1,18 +1,18 @@
1
1
  import {
2
2
  macAppBridgeAvailable
3
- } from "./chunk-6DYR4SX2.js";
3
+ } from "./chunk-ABSVJ3WV.js";
4
4
  import {
5
5
  keyPrefix
6
- } from "./chunk-Z2ZPMSJO.js";
6
+ } from "./chunk-2UKEITTN.js";
7
7
  import {
8
8
  bridgeAgentKey
9
- } from "./chunk-IL5NWORI.js";
9
+ } from "./chunk-UOMFOMJM.js";
10
10
  import {
11
11
  readJsonSafe
12
12
  } from "./chunk-AQFEP65J.js";
13
13
  import {
14
14
  isValidApiKey
15
- } from "./chunk-AWPUBTCU.js";
15
+ } from "./chunk-EPFB6LGF.js";
16
16
 
17
17
  // src/shared-mcp-key.ts
18
18
  var asRecord = (value) => value !== null && typeof value === "object" && !Array.isArray(value) ? value : void 0;
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  openCodeConfigDirFrom
3
- } from "./chunk-6DYR4SX2.js";
3
+ } from "./chunk-ABSVJ3WV.js";
4
4
  import {
5
5
  grokHome
6
- } from "./chunk-PP3D2TG6.js";
6
+ } from "./chunk-CCAYCIW4.js";
7
7
  import {
8
8
  codexHomeFrom,
9
9
  resolvePathBinary
10
- } from "./chunk-IL5NWORI.js";
10
+ } from "./chunk-UOMFOMJM.js";
11
11
  import {
12
12
  HOOK_COMPATIBLE_PROFILES
13
- } from "./chunk-AWPUBTCU.js";
13
+ } from "./chunk-EPFB6LGF.js";
14
14
 
15
15
  // src/hermes-config.ts
16
16
  import { execFileSync } from "child_process";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ensureCodexTrustsPusharyHooks
3
- } from "./chunk-VHGTMFKS.js";
3
+ } from "./chunk-UTJSAOB2.js";
4
4
  import {
5
5
  detectClaudeVersion
6
6
  } from "./chunk-RIVNNBEK.js";
@@ -12,7 +12,7 @@ import {
12
12
  openCodeHookArgv,
13
13
  openCodePluginDir,
14
14
  openCodeWired
15
- } from "./chunk-6DYR4SX2.js";
15
+ } from "./chunk-ABSVJ3WV.js";
16
16
  import {
17
17
  addClaudeMcpServer,
18
18
  addCompatibleHooks,
@@ -20,7 +20,7 @@ import {
20
20
  addPusharyToolPermissions,
21
21
  compatibleConfigFile,
22
22
  hasCompatibleHooks
23
- } from "./chunk-PP3D2TG6.js";
23
+ } from "./chunk-CCAYCIW4.js";
24
24
  import {
25
25
  claudeUnprovenHolds,
26
26
  claudeWired,
@@ -28,7 +28,7 @@ import {
28
28
  codexWired,
29
29
  geminiWired,
30
30
  planHooks
31
- } from "./chunk-LBNXMPQ6.js";
31
+ } from "./chunk-QLV5S2KS.js";
32
32
  import {
33
33
  CLAUDE_HOOK_BINARY,
34
34
  CLAUDE_HOOK_EVENTS,
@@ -39,7 +39,7 @@ import {
39
39
  needsReregistration,
40
40
  registrationSignatures,
41
41
  supportedClaudeEvents
42
- } from "./chunk-RJDMLAHO.js";
42
+ } from "./chunk-22SNRAZS.js";
43
43
  import {
44
44
  formatVersion
45
45
  } from "./chunk-6ICPEJY5.js";
@@ -63,7 +63,7 @@ import {
63
63
  resolveGlobalBinDir,
64
64
  resolveGlobalBinary,
65
65
  vscodePluginMcp
66
- } from "./chunk-IL5NWORI.js";
66
+ } from "./chunk-UOMFOMJM.js";
67
67
  import {
68
68
  readJsonSafe,
69
69
  writeFileAtomic,
@@ -73,7 +73,7 @@ import {
73
73
  HOOK_COMPATIBLE_PROFILES,
74
74
  isCompatibleAgentType,
75
75
  isRecord
76
- } from "./chunk-AWPUBTCU.js";
76
+ } from "./chunk-EPFB6LGF.js";
77
77
 
78
78
  // src/reapply.ts
79
79
  import { dirname, join } from "path";
@@ -14,19 +14,19 @@ import {
14
14
  } from "./chunk-FO3MDD26.js";
15
15
  import {
16
16
  callMcpTool
17
- } from "./chunk-Z4IBDCBH.js";
17
+ } from "./chunk-CQ56WBBP.js";
18
18
  import {
19
19
  reportedInstallSource
20
- } from "./chunk-WBZEW5RY.js";
20
+ } from "./chunk-MAMQK4I2.js";
21
21
  import {
22
22
  NPX_LATEST_COMMAND
23
- } from "./chunk-AX4MCCIQ.js";
23
+ } from "./chunk-CPGW7MMA.js";
24
24
  import {
25
25
  NO_PAIRING_COMPUTER,
26
26
  PAIR_TTL_SECONDS,
27
27
  classifyConfirmResponse,
28
28
  isAnswerSource
29
- } from "./chunk-AWPUBTCU.js";
29
+ } from "./chunk-EPFB6LGF.js";
30
30
 
31
31
  // src/reach.ts
32
32
  var reachVerdict = (channels) => {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CODEX_HOOK_STATUS
3
- } from "./chunk-VHGTMFKS.js";
3
+ } from "./chunk-UTJSAOB2.js";
4
4
  import {
5
5
  NPX_LATEST_COMMAND
6
- } from "./chunk-AX4MCCIQ.js";
6
+ } from "./chunk-CPGW7MMA.js";
7
7
 
8
8
  // src/setup/codex-trust.ts
9
9
  var CODEX_TRUST_TELEMETRY = {
@@ -4,10 +4,10 @@ import {
4
4
  keyPrefix,
5
5
  readConfigFileKey,
6
6
  readMacAppKeyPrefix
7
- } from "./chunk-Z2ZPMSJO.js";
7
+ } from "./chunk-2UKEITTN.js";
8
8
  import {
9
9
  NPX_LATEST_COMMAND
10
- } from "./chunk-AX4MCCIQ.js";
10
+ } from "./chunk-CPGW7MMA.js";
11
11
 
12
12
  // src/key-signed-out.ts
13
13
  var VERDICT_BY_CHECK = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyFetch
3
- } from "./chunk-ZEJ4HPXN.js";
3
+ } from "./chunk-AYU4S7RQ.js";
4
4
  import {
5
5
  NetworkError
6
6
  } from "./chunk-7QLSKOSU.js";
@@ -9,11 +9,11 @@ import {
9
9
  } from "./chunk-KZERVKTD.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-SOPKWVMZ.js";
12
+ } from "./chunk-XJD5H72U.js";
13
13
  import {
14
14
  isValidApiKey,
15
15
  normalizeKeyScope
16
- } from "./chunk-AWPUBTCU.js";
16
+ } from "./chunk-EPFB6LGF.js";
17
17
 
18
18
  // src/session.ts
19
19
  var samePusharyAccount = (left, right) => left.kind === "ok" && right.kind === "ok" && left.identity.workspaceId !== "" && left.identity.workspaceId === right.identity.workspaceId && left.identity.siteId === right.identity.siteId;