@pushary/agent-hooks 1.9.147 → 1.9.149

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 (138) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/data/openclaw-plugin/package.json +8 -2
  3. package/dist/{api-2KDVLXHT.js → api-H7H75ARS.js} +11 -11
  4. package/dist/bin/pushary-audit.js +3 -3
  5. package/dist/bin/pushary-bell-hook.js +29 -30
  6. package/dist/bin/pushary-bell.js +10 -10
  7. package/dist/bin/pushary-claude.js +28 -29
  8. package/dist/bin/pushary-clean.js +36 -36
  9. package/dist/bin/pushary-codex-bridge.js +24 -24
  10. package/dist/bin/pushary-codex-hook.js +36 -37
  11. package/dist/bin/pushary-codex-session.js +8 -8
  12. package/dist/bin/pushary-codex.js +16 -16
  13. package/dist/bin/pushary-connect.js +32 -32
  14. package/dist/bin/pushary-cowork.js +5 -5
  15. package/dist/bin/pushary-daemon.js +45 -46
  16. package/dist/bin/pushary-disconnect.js +28 -28
  17. package/dist/bin/pushary-doctor.js +44 -44
  18. package/dist/bin/pushary-elicitation-hook.js +29 -30
  19. package/dist/bin/pushary-gemini-bridge.js +18 -18
  20. package/dist/bin/pushary-gemini-hook.js +33 -34
  21. package/dist/bin/pushary-hook.js +36 -37
  22. package/dist/bin/pushary-login.js +21 -21
  23. package/dist/bin/pushary-logout.js +27 -27
  24. package/dist/bin/pushary-mcp.js +12 -12
  25. package/dist/bin/pushary-mode.js +15 -15
  26. package/dist/bin/pushary-notification-hook.js +28 -29
  27. package/dist/bin/pushary-opencode-hook.js +32 -33
  28. package/dist/bin/pushary-permission-denied-hook.js +36 -37
  29. package/dist/bin/pushary-permission-hook.js +36 -37
  30. package/dist/bin/pushary-post-hook.js +29 -30
  31. package/dist/bin/pushary-prompt-hook.js +28 -29
  32. package/dist/bin/pushary-session-end-hook.js +28 -29
  33. package/dist/bin/pushary-session-start-hook.js +38 -39
  34. package/dist/bin/pushary-setup.js +58 -74
  35. package/dist/bin/pushary-stats.js +5 -5
  36. package/dist/bin/pushary-status.js +33 -33
  37. package/dist/bin/pushary-stop-hook.js +28 -29
  38. package/dist/bin/pushary-stopfailure-hook.js +28 -29
  39. package/dist/bin/pushary-suggestions.js +15 -15
  40. package/dist/bin/pushary-transcript-register.js +19 -20
  41. package/dist/bin/pushary-transcripts.js +35 -36
  42. package/dist/bin/pushary-upgrade.js +42 -42
  43. package/dist/bin/pushary-wait.js +15 -15
  44. package/dist/bin/pushary.js +7 -7
  45. package/dist/{chunk-I72UU75H.js → chunk-26TXJ35O.js} +16 -16
  46. package/dist/{chunk-NAGF5ZJ2.js → chunk-2CVRVHUQ.js} +8 -8
  47. package/dist/{chunk-EV54ZQ5J.js → chunk-2VPRLAKF.js} +4 -4
  48. package/dist/{chunk-XMSDA5WA.js → chunk-352FIVVH.js} +41 -1
  49. package/dist/{chunk-57GVGSOQ.js → chunk-35IODIBL.js} +17 -2
  50. package/dist/{chunk-MI7GHNTO.js → chunk-3AAQJ75F.js} +5 -5
  51. package/dist/{chunk-RZGR4G5G.js → chunk-3OPXQK4D.js} +5 -5
  52. package/dist/{chunk-5II3USXS.js → chunk-3T7RA7WJ.js} +2 -2
  53. package/dist/{chunk-KH27X5CW.js → chunk-3WD3BEPB.js} +2 -2
  54. package/dist/{chunk-BU2J4P7P.js → chunk-43NHQUCY.js} +24 -3
  55. package/dist/{chunk-UGPNLU4O.js → chunk-4L2IYNLC.js} +1 -1
  56. package/dist/{chunk-A5MSVNFS.js → chunk-5HAA7C4X.js} +68 -186
  57. package/dist/{chunk-6EPTMB7L.js → chunk-5IG3VPHT.js} +4 -4
  58. package/dist/{chunk-T3TVMMXJ.js → chunk-6HO36P3A.js} +1 -1
  59. package/dist/{chunk-4P3ML7HP.js → chunk-6RYJ3XCD.js} +5 -5
  60. package/dist/{chunk-WLKW2TF7.js → chunk-6YX3VB5P.js} +6 -6
  61. package/dist/{chunk-GGCUXNZN.js → chunk-A3URJPYH.js} +1 -1
  62. package/dist/{chunk-CSNG5NQR.js → chunk-ABTQG6XU.js} +1 -1
  63. package/dist/{chunk-GJV5RVUU.js → chunk-AQ7L2E2U.js} +2 -2
  64. package/dist/{chunk-Q6POCQOV.js → chunk-BP5HLKR6.js} +12 -12
  65. package/dist/{chunk-3TTXOU6G.js → chunk-CABBLJD5.js} +3 -3
  66. package/dist/{chunk-NMUEUDTT.js → chunk-CAHULQIO.js} +1 -1
  67. package/dist/{chunk-GPAMD5JG.js → chunk-CBIS7IYQ.js} +5 -5
  68. package/dist/{chunk-2G54YLN3.js → chunk-CDQOARIF.js} +3 -3
  69. package/dist/{chunk-ISM6XF3V.js → chunk-CIRTRWHM.js} +4 -4
  70. package/dist/{chunk-TZ7CBPCD.js → chunk-CMTDMZPV.js} +2 -2
  71. package/dist/{chunk-XQOBM3E6.js → chunk-CU5SYUMK.js} +3 -6
  72. package/dist/{chunk-7WDEJTNX.js → chunk-D3QT4S7U.js} +4 -4
  73. package/dist/{chunk-FKGWP4MF.js → chunk-DHCJDYBT.js} +6 -6
  74. package/dist/{chunk-RZJHCHEA.js → chunk-DLPI45DF.js} +6 -6
  75. package/dist/{chunk-T274HRSR.js → chunk-ENRL4WFD.js} +4 -4
  76. package/dist/{chunk-KFL7OWLI.js → chunk-F6ESGEWU.js} +2 -2
  77. package/dist/{chunk-BYVLAPCF.js → chunk-FQLS37AX.js} +1 -1
  78. package/dist/{chunk-6YVGY2ZX.js → chunk-H6FFNTSR.js} +6 -6
  79. package/dist/{chunk-BHGSNYG5.js → chunk-HEOBF5H6.js} +3 -3
  80. package/dist/{chunk-OSYULPJO.js → chunk-JSZ6LKX5.js} +11 -11
  81. package/dist/{chunk-2RAIG6NF.js → chunk-JUEQUYAT.js} +2 -2
  82. package/dist/{chunk-QGKFDSEO.js → chunk-KP6ERYOA.js} +8 -8
  83. package/dist/{chunk-L2M6D2N4.js → chunk-KWJJYZ3T.js} +4 -4
  84. package/dist/{chunk-FWCECQTY.js → chunk-KXNAB76Z.js} +16 -5
  85. package/dist/{chunk-YOVJOHM5.js → chunk-LC53HRZ6.js} +1 -1
  86. package/dist/{chunk-KDJIDRJS.js → chunk-M7HJZ7HO.js} +3 -3
  87. package/dist/{chunk-7P32YU2M.js → chunk-MT4GBXLM.js} +5 -5
  88. package/dist/{chunk-2QY2BD4T.js → chunk-MUSINFEU.js} +5 -5
  89. package/dist/{chunk-526XSNMS.js → chunk-MUTMXSQZ.js} +131 -5
  90. package/dist/{chunk-2YNAQ5TX.js → chunk-NHZV2H63.js} +1 -1
  91. package/dist/{chunk-5K65H6OO.js → chunk-NLED3JGR.js} +1 -1
  92. package/dist/{chunk-UR55VBLY.js → chunk-NRPQUU3D.js} +2 -2
  93. package/dist/{chunk-6JBX55K4.js → chunk-O5ARO3JM.js} +2 -2
  94. package/dist/{chunk-S4HS6VTI.js → chunk-OJUW7QW2.js} +2 -4
  95. package/dist/{chunk-7TVSWGAV.js → chunk-PH3MVQCQ.js} +17 -9
  96. package/dist/{chunk-FMAIUTVU.js → chunk-PUTX5BBE.js} +7 -4
  97. package/dist/{chunk-2I6A34GJ.js → chunk-PVBDITRS.js} +5 -5
  98. package/dist/{chunk-FHBJJOMF.js → chunk-Q7GZKNMH.js} +1 -1
  99. package/dist/{chunk-72S6PF2I.js → chunk-QSZYHL7Z.js} +2 -2
  100. package/dist/{chunk-L6BTSIKF.js → chunk-QTQRQZIU.js} +4 -4
  101. package/dist/{chunk-OXDKZYBO.js → chunk-R2JRRCZK.js} +1 -1
  102. package/dist/{chunk-2EETRVCZ.js → chunk-RMBY7JGO.js} +1 -1
  103. package/dist/{chunk-P6W2V2AP.js → chunk-RWTH5RYA.js} +2 -2
  104. package/dist/{chunk-T2CR5REM.js → chunk-RYDDLS62.js} +3 -3
  105. package/dist/{chunk-ISOP4ENY.js → chunk-S3MEI2D2.js} +5 -5
  106. package/dist/{chunk-BEDAQAEN.js → chunk-T3CMGGNW.js} +1 -1
  107. package/dist/{chunk-Q767Y4LY.js → chunk-T4PX3DRF.js} +1 -1
  108. package/dist/{chunk-JDIKCM2N.js → chunk-TXXAQRX4.js} +3 -1
  109. package/dist/{chunk-LO52V6WG.js → chunk-UAHBSOO4.js} +2 -2
  110. package/dist/{chunk-37ZBJB2Q.js → chunk-UJUGFLVF.js} +5 -5
  111. package/dist/{chunk-3NMX4725.js → chunk-VPADWVYD.js} +1 -1
  112. package/dist/{chunk-Q3JW44JV.js → chunk-WQEJCDMR.js} +2 -2
  113. package/dist/{chunk-D7ZWJYXB.js → chunk-WQJ5NJ35.js} +1 -1
  114. package/dist/{chunk-WNV3X2VU.js → chunk-X4OEGFOG.js} +3 -3
  115. package/dist/{chunk-YICO6HEW.js → chunk-X4OQ5UMH.js} +5 -5
  116. package/dist/{chunk-KXMIDDUN.js → chunk-XSBW6TUH.js} +2 -2
  117. package/dist/{chunk-GIWI5IHB.js → chunk-XZGQZDFP.js} +6 -6
  118. package/dist/{chunk-7XIJD7NL.js → chunk-YTD7RV6F.js} +3 -3
  119. package/dist/{chunk-ZKAQWXGO.js → chunk-YWSIN7IH.js} +1 -1
  120. package/dist/{chunk-MYJJNLT2.js → chunk-ZCB5SCYM.js} +2 -2
  121. package/dist/{chunk-6C5QRJIH.js → chunk-ZIPPDZ5B.js} +5 -5
  122. package/dist/{chunk-ANLR5G2W.js → chunk-ZOATPL53.js} +4 -4
  123. package/dist/{chunk-ELRZO6A7.js → chunk-ZX2O66NS.js} +3 -3
  124. package/dist/{codex-app-cards-switch-GN65VEKM.js → codex-app-cards-switch-BCM547E6.js} +11 -11
  125. package/dist/{codex-card-routing-JTS75442.js → codex-card-routing-222EKZJR.js} +2 -2
  126. package/dist/{codex-desktop-launch-AQ2HSOQJ.js → codex-desktop-launch-6AFOLMZ7.js} +1 -1
  127. package/dist/{codex-session-launch-QYZZGVSQ.js → codex-session-launch-73EQE6IL.js} +21 -21
  128. package/dist/{config-5ATI6KPI.js → config-GWNPGS47.js} +3 -3
  129. package/dist/{global-upgrade-K4HWVUMI.js → global-upgrade-VRF6OSSU.js} +9 -9
  130. package/dist/{identity-V2GZCPJV.js → identity-PQIM7R2N.js} +4 -4
  131. package/dist/{live-capabilities-PD62FO4K.js → live-capabilities-G3LMKZUB.js} +4 -4
  132. package/dist/{paths-WPJEIHUE.js → paths-TFGIP5PU.js} +3 -3
  133. package/dist/{reapply-ZEWMGDXT.js → reapply-3IRAI6JF.js} +30 -30
  134. package/dist/src/index.js +35 -36
  135. package/dist/{upgrade-lock-7OR6V323.js → upgrade-lock-2G7ANYYO.js} +6 -4
  136. package/dist/{usage-GWZ3UGZG.js → usage-K3EGYCSU.js} +3 -3
  137. package/package.json +1 -1
  138. package/dist/chunk-VAE5JBR5.js +0 -46
@@ -2,37 +2,37 @@ import {
2
2
  forgetPhoneApproval,
3
3
  rememberPhoneApproval,
4
4
  takePhoneApproval
5
- } from "./chunk-72S6PF2I.js";
5
+ } from "./chunk-QSZYHL7Z.js";
6
6
  import {
7
7
  claudeSettingsLocationFor,
8
8
  readClaudePermissionRules
9
- } from "./chunk-TZ7CBPCD.js";
9
+ } from "./chunk-CMTDMZPV.js";
10
10
  import {
11
11
  askAgentQuestions,
12
12
  defersToNativeMode,
13
13
  outcomeOfFailedAsk,
14
14
  storedWaitDeadline
15
- } from "./chunk-37ZBJB2Q.js";
15
+ } from "./chunk-UJUGFLVF.js";
16
16
  import {
17
17
  reportMachineDenial
18
- } from "./chunk-WNV3X2VU.js";
18
+ } from "./chunk-X4OEGFOG.js";
19
19
  import {
20
20
  isGatingMoment,
21
21
  recordKeylessMoment
22
- } from "./chunk-FHBJJOMF.js";
22
+ } from "./chunk-Q7GZKNMH.js";
23
23
  import {
24
24
  isAdmitted,
25
25
  readAdmissionRules
26
- } from "./chunk-6C5QRJIH.js";
26
+ } from "./chunk-ZIPPDZ5B.js";
27
27
  import {
28
28
  isDeferAnswer,
29
29
  oncePerSession
30
- } from "./chunk-5K65H6OO.js";
30
+ } from "./chunk-NLED3JGR.js";
31
31
  import {
32
32
  activeHookSource,
33
33
  activeIdentity,
34
34
  namedSource
35
- } from "./chunk-2I6A34GJ.js";
35
+ } from "./chunk-PVBDITRS.js";
36
36
  import {
37
37
  DEFAULT_SESSION,
38
38
  approvalAwaitingRetry,
@@ -53,7 +53,7 @@ import {
53
53
  settleQuestionsForToolUse,
54
54
  sweepFilesOlderThan,
55
55
  userScope
56
- } from "./chunk-Q6POCQOV.js";
56
+ } from "./chunk-BP5HLKR6.js";
57
57
  import {
58
58
  UNNAMED_ACTION,
59
59
  deriveAction,
@@ -64,12 +64,12 @@ import {
64
64
  patchDeletesFiles,
65
65
  permissionDeniedAction,
66
66
  scopePathFor
67
- } from "./chunk-D7ZWJYXB.js";
67
+ } from "./chunk-WQJ5NJ35.js";
68
68
  import {
69
69
  branchFor,
70
70
  repoKeyFor,
71
71
  repositoryScopeFor
72
- } from "./chunk-BYVLAPCF.js";
72
+ } from "./chunk-FQLS37AX.js";
73
73
  import {
74
74
  askUser,
75
75
  cancelQuestion,
@@ -86,20 +86,20 @@ import {
86
86
  waitForQuestion,
87
87
  waitsForThePhone,
88
88
  withdrawQuestion
89
- } from "./chunk-FKGWP4MF.js";
89
+ } from "./chunk-DHCJDYBT.js";
90
90
  import {
91
91
  getMachineId
92
- } from "./chunk-CSNG5NQR.js";
92
+ } from "./chunk-ABTQG6XU.js";
93
93
  import {
94
94
  getApiKey,
95
95
  getBaseUrl
96
- } from "./chunk-3NMX4725.js";
96
+ } from "./chunk-VPADWVYD.js";
97
97
  import {
98
98
  writeFileAtomic
99
99
  } from "./chunk-TODDEIYG.js";
100
100
  import {
101
101
  NPX_LATEST_COMMAND
102
- } from "./chunk-JDIKCM2N.js";
102
+ } from "./chunk-TXXAQRX4.js";
103
103
  import {
104
104
  AGENT_QUESTION_STRATEGY,
105
105
  AGENT_QUESTION_TOOL,
@@ -168,7 +168,7 @@ import {
168
168
  timeoutActionWithoutLocalPrompt,
169
169
  unansweredRefusalReason,
170
170
  unapprovedScopeReason
171
- } from "./chunk-6JBX55K4.js";
171
+ } from "./chunk-O5ARO3JM.js";
172
172
 
173
173
  // src/terminal-answer-watch.ts
174
174
  import { closeSync, openSync, readSync, statSync } from "fs";
@@ -4,37 +4,37 @@ import {
4
4
  postLiveSession,
5
5
  postLiveSessionUntilAccepted,
6
6
  startLiveSessionHeartbeat
7
- } from "./chunk-57GVGSOQ.js";
7
+ } from "./chunk-35IODIBL.js";
8
8
  import {
9
9
  CommandReceipts,
10
10
  controllerCommandSchema
11
- } from "./chunk-KFL7OWLI.js";
11
+ } from "./chunk-F6ESGEWU.js";
12
12
  import {
13
13
  SESSION_IDLE_TIMEOUT_MS,
14
14
  describeIdleWindow,
15
15
  idleDeadlinePassed,
16
16
  startProcessOwnership
17
- } from "./chunk-KH27X5CW.js";
17
+ } from "./chunk-3WD3BEPB.js";
18
18
  import {
19
19
  repositoryScopeFor
20
- } from "./chunk-BYVLAPCF.js";
20
+ } from "./chunk-FQLS37AX.js";
21
21
  import {
22
22
  isAskUserResponse,
23
23
  isDecisionStopped,
24
24
  isWaitForAnswerResponse,
25
25
  withdrawQuestion,
26
26
  writeDegraded
27
- } from "./chunk-FKGWP4MF.js";
27
+ } from "./chunk-DHCJDYBT.js";
28
28
  import {
29
29
  callMcpTool,
30
30
  isRetryable
31
- } from "./chunk-2QY2BD4T.js";
31
+ } from "./chunk-MUSINFEU.js";
32
32
  import {
33
33
  spawnClaude
34
34
  } from "./chunk-H6CL3T2S.js";
35
35
  import {
36
36
  readCommandAck
37
- } from "./chunk-GGCUXNZN.js";
37
+ } from "./chunk-A3URJPYH.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-6JBX55K4.js";
58
+ } from "./chunk-O5ARO3JM.js";
59
59
 
60
60
  // src/codex-question-owner.ts
61
61
  import { createHash } from "crypto";
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  compatibleConfigFile,
3
3
  hasCompatibleHooks
4
- } from "./chunk-2I6A34GJ.js";
4
+ } from "./chunk-PVBDITRS.js";
5
5
  import {
6
6
  pusharyHookExecutable
7
- } from "./chunk-L6BTSIKF.js";
7
+ } from "./chunk-QTQRQZIU.js";
8
8
  import {
9
9
  isProtectedByScope,
10
10
  registerHookEntry
11
- } from "./chunk-GJV5RVUU.js";
11
+ } from "./chunk-AQ7L2E2U.js";
12
12
  import {
13
13
  isRecord
14
- } from "./chunk-6JBX55K4.js";
14
+ } from "./chunk-O5ARO3JM.js";
15
15
 
16
16
  // src/cursor-config.ts
17
17
  var hookCommandOf = (entry) => {
@@ -1,3 +1,6 @@
1
+ import {
2
+ writeJsonAtomic
3
+ } from "./chunk-TODDEIYG.js";
1
4
  import {
2
5
  __export
3
6
  } from "./chunk-MLKGABMK.js";
@@ -4043,6 +4046,43 @@ var coerce = {
4043
4046
  };
4044
4047
  var NEVER = INVALID;
4045
4048
 
4049
+ // src/transcript-read-positions.ts
4050
+ import { lstatSync, readFileSync } from "fs";
4051
+ var OWNER_ONLY_FILE_MODE = 384;
4052
+ var MAXIMUM_READ_POSITIONS_BYTES = 4 * 1024 * 1024;
4053
+ var transcriptReadPositionSchema = external_exports.object({
4054
+ identity: external_exports.string().nullable(),
4055
+ offset: external_exports.number().int().nonnegative(),
4056
+ startedBeforeEpoch: external_exports.boolean()
4057
+ });
4058
+ var savedReadPositionsSchema = external_exports.object({ positions: external_exports.record(external_exports.string(), transcriptReadPositionSchema) });
4059
+ var ownedOnlyByThisUser = (info) => !process.getuid || info.uid === process.getuid() && (info.mode & 511) === OWNER_ONLY_FILE_MODE;
4060
+ var readOwnerOnlyJson = (path, maximumBytes) => {
4061
+ const info = lstatSync(path);
4062
+ if (!info.isFile() || info.nlink !== 1 || !ownedOnlyByThisUser(info) || info.size > maximumBytes) return null;
4063
+ return JSON.parse(readFileSync(path, "utf8"));
4064
+ };
4065
+ var savedTranscriptReadPositions = (file) => ({
4066
+ load: () => {
4067
+ try {
4068
+ return new Map(Object.entries(savedReadPositionsSchema.parse(readOwnerOnlyJson(file, MAXIMUM_READ_POSITIONS_BYTES)).positions));
4069
+ } catch {
4070
+ return /* @__PURE__ */ new Map();
4071
+ }
4072
+ },
4073
+ save: (positions) => {
4074
+ try {
4075
+ writeJsonAtomic(file, { positions: Object.fromEntries(positions) }, OWNER_ONLY_FILE_MODE);
4076
+ } catch {
4077
+ return;
4078
+ }
4079
+ }
4080
+ });
4081
+
4046
4082
  export {
4047
- external_exports
4083
+ external_exports,
4084
+ transcriptReadPositionSchema,
4085
+ ownedOnlyByThisUser,
4086
+ readOwnerOnlyJson,
4087
+ savedTranscriptReadPositions
4048
4088
  };
@@ -1,13 +1,16 @@
1
1
  import {
2
2
  buildTranscriptRecords,
3
+ changedRecipientsMessage,
3
4
  decodePublicKey,
4
5
  encryptRecord,
5
6
  fetchTranscriptRecipients,
6
7
  generateSessionKey,
7
8
  recordSealerFor,
9
+ savePin,
8
10
  uploadTranscriptRecords,
11
+ verifyAnchoredRecipients,
9
12
  wrapSessionKey
10
- } from "./chunk-526XSNMS.js";
13
+ } from "./chunk-MUTMXSQZ.js";
11
14
 
12
15
  // src/live-session.ts
13
16
  var LIVE_TRANSCRIPT_LIMITS = { queuedRecords: 100, recordCharacters: 32 * 1024 };
@@ -70,6 +73,7 @@ var LiveTranscriptRelay = class {
70
73
  sealRecord = encryptRecord;
71
74
  keyUploaded = false;
72
75
  keyRejected = false;
76
+ warnedAboutRecipients = false;
73
77
  flushing = null;
74
78
  add(value) {
75
79
  if (this.keyRejected) return;
@@ -95,7 +99,7 @@ var LiveTranscriptRelay = class {
95
99
  try {
96
100
  if (!this.sessionKey) {
97
101
  const recipients = await fetchTranscriptRecipients(this.options.apiKey, this.options.baseUrl);
98
- if (!recipients) return false;
102
+ if (!recipients || !this.acceptsRecipients(recipients)) return false;
99
103
  this.sessionKey = generateSessionKey();
100
104
  this.wrappedKey = wrapSessionKey(this.sessionKey, decodePublicKey(recipients.phonePublicKey));
101
105
  this.sealRecord = recordSealerFor(recipients.phoneReadsCompressedRecords);
@@ -133,6 +137,17 @@ var LiveTranscriptRelay = class {
133
137
  return false;
134
138
  }
135
139
  }
140
+ acceptsRecipients(recipients) {
141
+ const verdict = verifyAnchoredRecipients(recipients);
142
+ if (verdict.kind === "match") return true;
143
+ if (verdict.kind === "first-use") return savePin(verdict.pin);
144
+ if (!this.warnedAboutRecipients) {
145
+ this.warnedAboutRecipients = true;
146
+ process.stderr.write(`${changedRecipientsMessage(verdict, recipients)}
147
+ `);
148
+ }
149
+ return false;
150
+ }
136
151
  };
137
152
 
138
153
  export {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  compatibleConfigFile
3
- } from "./chunk-2I6A34GJ.js";
3
+ } from "./chunk-PVBDITRS.js";
4
4
  import {
5
5
  hookOwnerOf,
6
6
  hookOwnerOfCommands
7
- } from "./chunk-L6BTSIKF.js";
7
+ } from "./chunk-QTQRQZIU.js";
8
8
  import {
9
9
  AGENT_CHOICES
10
- } from "./chunk-NMUEUDTT.js";
10
+ } from "./chunk-CAHULQIO.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-GJV5RVUU.js";
22
+ } from "./chunk-AQ7L2E2U.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-6JBX55K4.js";
32
+ } from "./chunk-O5ARO3JM.js";
33
33
 
34
34
  // src/opencode-plugin.ts
35
35
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
@@ -4,13 +4,13 @@ import {
4
4
  configFailureKind,
5
5
  retryAgentCommand,
6
6
  writeSetupConfigFile
7
- } from "./chunk-FMAIUTVU.js";
7
+ } from "./chunk-PUTX5BBE.js";
8
8
  import {
9
9
  MCP_BRIDGE_BINARY
10
- } from "./chunk-KDJIDRJS.js";
10
+ } from "./chunk-M7HJZ7HO.js";
11
11
  import {
12
12
  KEY_FILE_MODE
13
- } from "./chunk-XQOBM3E6.js";
13
+ } from "./chunk-CU5SYUMK.js";
14
14
  import {
15
15
  CLINE_SERVER_NAME_TAKEN,
16
16
  CLINE_SETTINGS_REFUSALS,
@@ -32,10 +32,10 @@ import {
32
32
  withClinePusharyServer,
33
33
  withRefreshedClineKey,
34
34
  withoutClinePusharyServer
35
- } from "./chunk-GJV5RVUU.js";
35
+ } from "./chunk-AQ7L2E2U.js";
36
36
  import {
37
37
  resolveGlobalBinary
38
- } from "./chunk-BU2J4P7P.js";
38
+ } from "./chunk-43NHQUCY.js";
39
39
  import {
40
40
  readJsonSafe,
41
41
  writeFileAtomic,
@@ -7,10 +7,10 @@ import {
7
7
  codexHome,
8
8
  codexHooksJsonIn,
9
9
  isPusharyCodexCommand
10
- } from "./chunk-GJV5RVUU.js";
10
+ } from "./chunk-AQ7L2E2U.js";
11
11
  import {
12
12
  resolvePathBinary
13
- } from "./chunk-BU2J4P7P.js";
13
+ } from "./chunk-43NHQUCY.js";
14
14
  import {
15
15
  getPackageVersion
16
16
  } from "./chunk-WIIMW5YO.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-GJV5RVUU.js";
3
+ } from "./chunk-AQ7L2E2U.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-TODDEIYG.js";
7
7
  import {
8
8
  isRecord
9
- } from "./chunk-6JBX55K4.js";
9
+ } from "./chunk-O5ARO3JM.js";
10
10
 
11
11
  // src/process-ownership.ts
12
12
  import { createHash, randomUUID } from "crypto";
@@ -188,6 +188,12 @@ var NpmInstallError = class extends Error {
188
188
  this.name = "NpmInstallError";
189
189
  }
190
190
  };
191
+ var NpmReleaseAgeError = class extends NpmInstallError {
192
+ constructor(detail) {
193
+ super(`npm refused this release because it is too new for your min-release-age. ${detail}`);
194
+ this.name = "NpmReleaseAgeError";
195
+ }
196
+ };
191
197
  var NPM_PERMISSION_CODE = /\b(EACCES|EPERM)\b/;
192
198
  var ERROR_TEXT_FIELDS = ["code", "stderr", "stdout", "message"];
193
199
  var errorTextOf = (err) => {
@@ -206,11 +212,24 @@ var npmPermissionCodeOf = (err) => {
206
212
  return null;
207
213
  };
208
214
  var npmWasKilledBySignal = (err) => typeof err === "object" && err !== null && typeof Reflect.get(err, "signal") === "string";
215
+ var isNpmReleaseAgeFailure = (error) => {
216
+ const text = errorTextOf(error).join("\n");
217
+ return /\bETARGET\b/.test(text) && /No matching version found for .+ with a date before /i.test(text);
218
+ };
219
+ var npmExitedOnItsOwn = (error) => {
220
+ if (typeof error !== "object" || error === null) return false;
221
+ const status = Reflect.get(error, "status");
222
+ return typeof status === "number" && Number.isSafeInteger(status) && status > 0 && !npmWasKilledBySignal(error);
223
+ };
224
+ var npmExitedOnReleaseAge = (error) => npmExitedOnItsOwn(error) && isNpmReleaseAgeFailure(error);
225
+ var NPM_VERSION_UNAVAILABLE = /\b(ETARGET|E404)\b/;
226
+ var npmExitedBeforeInstalling = (error) => npmExitedOnItsOwn(error) && errorTextOf(error).some((text) => NPM_VERSION_UNAVAILABLE.test(text));
209
227
  var npmExitedOnPermissionDenied = (err, platform) => {
210
228
  const code = npmPermissionCodeOf(err);
211
229
  return code !== null && npmPermissionFailureKind(code, platform) === "global-prefix" && !npmWasKilledBySignal(err);
212
230
  };
213
231
  var npmInstallFailure = (err, platform = process.platform) => {
232
+ if (npmExitedOnReleaseAge(err)) return new NpmReleaseAgeError(npmErrorMessage(err));
214
233
  const code = npmPermissionCodeOf(err);
215
234
  return code === null ? new NpmInstallError(npmErrorMessage(err)) : new NpmPermissionError(npmErrorMessage(err), npmPermissionFailureKind(code, platform));
216
235
  };
@@ -407,9 +426,9 @@ var installGlobally = (options) => {
407
426
  }
408
427
  const started = (async () => {
409
428
  if (!npmIsOnPath()) throw new NpmMissingError();
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");
429
+ const { withUpgradeLock } = await import("./global-upgrade-VRF6OSSU.js");
430
+ const { installWithUpgradeLock, ownsUpgradeLock } = await import("./upgrade-lock-2G7ANYYO.js");
431
+ const { autoUpdateLock } = await import("./paths-TFGIP5PU.js");
413
432
  let result = "skipped";
414
433
  const install = async () => {
415
434
  const platform = process.platform;
@@ -476,6 +495,8 @@ export {
476
495
  NpmMissingError,
477
496
  NpmPermissionError,
478
497
  NpmInstallError,
498
+ NpmReleaseAgeError,
499
+ npmExitedBeforeInstalling,
479
500
  npmExitedOnPermissionDenied,
480
501
  npmInstallFailure,
481
502
  resolveBinary,
@@ -5,7 +5,7 @@ import {
5
5
  MCP_CREDENTIAL_REJECTION_BODY,
6
6
  isRecord,
7
7
  responseRejectsCredential
8
- } from "./chunk-6JBX55K4.js";
8
+ } from "./chunk-O5ARO3JM.js";
9
9
 
10
10
  // src/credential-rejection.ts
11
11
  import { createHash, randomUUID } from "crypto";