@pushary/agent-hooks 1.9.10 → 1.9.11

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 (102) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/dist/bin/pushary-bell-hook.js +25 -21
  4. package/dist/bin/pushary-bell.js +9 -9
  5. package/dist/bin/pushary-claude.js +31 -34
  6. package/dist/bin/pushary-clean.js +35 -37
  7. package/dist/bin/pushary-codex-bridge.js +20 -22
  8. package/dist/bin/pushary-codex-hook.js +33 -36
  9. package/dist/bin/pushary-codex.js +12 -14
  10. package/dist/bin/pushary-connect.js +25 -27
  11. package/dist/bin/pushary-cowork.js +5 -5
  12. package/dist/bin/pushary-daemon.js +31 -33
  13. package/dist/bin/pushary-disconnect.js +29 -29
  14. package/dist/bin/pushary-doctor.js +39 -41
  15. package/dist/bin/pushary-elicitation-hook.js +26 -26
  16. package/dist/bin/pushary-gemini-bridge.js +13 -13
  17. package/dist/bin/pushary-gemini-hook.js +30 -33
  18. package/dist/bin/pushary-hook.js +31 -33
  19. package/dist/bin/pushary-login.js +12 -12
  20. package/dist/bin/pushary-logout.js +10 -10
  21. package/dist/bin/pushary-mcp.js +9 -9
  22. package/dist/bin/pushary-mode.js +12 -12
  23. package/dist/bin/pushary-notification-hook.js +24 -26
  24. package/dist/bin/pushary-opencode-hook.js +29 -32
  25. package/dist/bin/pushary-permission-denied-hook.js +29 -31
  26. package/dist/bin/pushary-permission-hook.js +28 -30
  27. package/dist/bin/pushary-post-hook.js +24 -26
  28. package/dist/bin/pushary-prompt-hook.js +24 -26
  29. package/dist/bin/pushary-session-end-hook.js +24 -26
  30. package/dist/bin/pushary-session-start-hook.js +28 -30
  31. package/dist/bin/pushary-setup.js +47 -44
  32. package/dist/bin/pushary-stats.js +5 -5
  33. package/dist/bin/pushary-status.js +27 -29
  34. package/dist/bin/pushary-stop-hook.js +24 -26
  35. package/dist/bin/pushary-stopfailure-hook.js +24 -26
  36. package/dist/bin/pushary-suggestions.js +12 -12
  37. package/dist/bin/pushary-transcript-register.js +17 -17
  38. package/dist/bin/pushary-transcripts.js +7 -7
  39. package/dist/bin/pushary-upgrade.js +30 -32
  40. package/dist/bin/pushary-wait.js +12 -12
  41. package/dist/bin/pushary.js +6 -6
  42. package/dist/{chunk-IIVZZMSO.js → chunk-2AQ4VZSA.js} +1 -1
  43. package/dist/{chunk-APP43AW7.js → chunk-2GG77ADC.js} +1 -1
  44. package/dist/{chunk-H4F5O3RE.js → chunk-2NAQRPZQ.js} +1 -1
  45. package/dist/{chunk-UJZ7AGSC.js → chunk-4FWWHCYM.js} +4 -4
  46. package/dist/{chunk-ZGADIZDS.js → chunk-4HR2ICME.js} +1 -1
  47. package/dist/{chunk-BOSXFI7L.js → chunk-4RENRBSB.js} +4 -4
  48. package/dist/{chunk-BTFUSQFB.js → chunk-5WAYSUWV.js} +2 -2
  49. package/dist/{chunk-SIHYBIEN.js → chunk-7RWQZQV2.js} +5 -5
  50. package/dist/{chunk-LDQGURCF.js → chunk-A6J5Z2HO.js} +514 -313
  51. package/dist/{chunk-C6QTMWJZ.js → chunk-AIWZRRSK.js} +2 -2
  52. package/dist/{chunk-OL2Z7WI4.js → chunk-BDRXDO25.js} +2 -2
  53. package/dist/{chunk-S2DAKKQQ.js → chunk-BMP2BLIR.js} +3 -3
  54. package/dist/{chunk-QGRENWJL.js → chunk-BZI7EBTB.js} +1 -1
  55. package/dist/{chunk-2HFSKYLN.js → chunk-C6QM5SJR.js} +2 -2
  56. package/dist/{chunk-Q3UMWSE4.js → chunk-CBDJ2X5P.js} +2 -2
  57. package/dist/{chunk-DWO4RLYK.js → chunk-CHDAH4HP.js} +8 -8
  58. package/dist/{chunk-PR2VDVCP.js → chunk-CZYMYM7X.js} +3 -3
  59. package/dist/{chunk-MD4SVNT6.js → chunk-E6YQW43K.js} +1 -1
  60. package/dist/{chunk-UM5WXBKN.js → chunk-EJVYEOKC.js} +3 -3
  61. package/dist/{chunk-5MQYA3YL.js → chunk-ERXY2SIW.js} +19 -16
  62. package/dist/{chunk-2M52CFVO.js → chunk-FJCOOFT7.js} +1 -1
  63. package/dist/{chunk-Y7JM47CI.js → chunk-GA4J6YFN.js} +2 -2
  64. package/dist/{chunk-ZSGJYSF2.js → chunk-GUNZHSTL.js} +136 -8
  65. package/dist/{chunk-T6ZN4TEF.js → chunk-HX5TI6DP.js} +1 -1
  66. package/dist/{chunk-XXLCYKVS.js → chunk-I4I4UH62.js} +3 -3
  67. package/dist/{chunk-I3W7GJ5R.js → chunk-KBN3UP2R.js} +3 -3
  68. package/dist/{chunk-7HGR5GNY.js → chunk-KEV2MOJH.js} +46 -21
  69. package/dist/{chunk-QAGWWDXQ.js → chunk-KIVFWGG6.js} +5 -5
  70. package/dist/{chunk-AKPHYSEL.js → chunk-LBAMPNDM.js} +4 -4
  71. package/dist/{chunk-BVSIM4EF.js → chunk-LUHNNZSH.js} +2 -2
  72. package/dist/{chunk-Z2Q2VH43.js → chunk-LX6EWNRK.js} +15 -3
  73. package/dist/{chunk-TCXL5FQQ.js → chunk-M54ATCOZ.js} +1 -1
  74. package/dist/{chunk-2HXG2QDI.js → chunk-MHHXR7DT.js} +4 -4
  75. package/dist/{chunk-2S34OPHS.js → chunk-MITMDERZ.js} +1 -1
  76. package/dist/{chunk-BVPPYR7B.js → chunk-MJLTABWF.js} +3 -3
  77. package/dist/{chunk-XKMGHVXW.js → chunk-MX3LPP3K.js} +6 -6
  78. package/dist/{chunk-EVC765EO.js → chunk-N6GEI3PK.js} +2 -2
  79. package/dist/{chunk-MISUKJGW.js → chunk-N7HXP4PZ.js} +1 -1
  80. package/dist/{chunk-LXA236ZQ.js → chunk-OKSU74QH.js} +2 -2
  81. package/dist/{chunk-DL6QHS7V.js → chunk-P2EJN7UB.js} +1 -1
  82. package/dist/{chunk-YUQHUGTH.js → chunk-P7N7FJ7W.js} +1 -1
  83. package/dist/{chunk-DAOQT4WK.js → chunk-PRJNUNCV.js} +2 -2
  84. package/dist/{chunk-RPQLZLKC.js → chunk-PTGUJZSD.js} +5 -5
  85. package/dist/{chunk-6KNC6KLL.js → chunk-STUJXZC2.js} +4 -4
  86. package/dist/{chunk-GQYX24UC.js → chunk-TVVUJTUW.js} +1 -1
  87. package/dist/{chunk-5OP5MQI7.js → chunk-V6IW5WMK.js} +1 -1
  88. package/dist/{chunk-5RGA636G.js → chunk-VOP5U2VX.js} +145 -9
  89. package/dist/{chunk-U5FP5JIS.js → chunk-WCELLK4P.js} +2 -2
  90. package/dist/{chunk-SJDMULE7.js → chunk-WHRYW4P2.js} +5 -5
  91. package/dist/{chunk-SMVMLWCD.js → chunk-XYCTS3WP.js} +1 -1
  92. package/dist/{chunk-PNC5ZQFS.js → chunk-YETKAI5Q.js} +6 -6
  93. package/dist/{chunk-GTZ4HIHU.js → chunk-Z4AOR6RZ.js} +2 -2
  94. package/dist/{chunk-CJYM4ZHV.js → chunk-ZTSMQYST.js} +3 -5
  95. package/dist/{global-upgrade-PUM44JUH.js → global-upgrade-VT2JS7DR.js} +6 -6
  96. package/dist/{paths-U2MJGNBT.js → paths-WRBEUNEY.js} +2 -2
  97. package/dist/{reapply-PRKV4EO7.js → reapply-BCR6U7HO.js} +20 -22
  98. package/dist/src/index.js +19 -21
  99. package/dist/{upgrade-lock-QZSVLEM7.js → upgrade-lock-VRYMTPZQ.js} +3 -3
  100. package/package.json +1 -1
  101. package/dist/chunk-N6IOSZOE.js +0 -185
  102. package/dist/chunk-NQ67AF3V.js +0 -142
@@ -3,17 +3,17 @@ import {
3
3
  addGeminiMcpServer,
4
4
  removeGeminiMcpServer,
5
5
  supportedClaudeEvents
6
- } from "./chunk-PR2VDVCP.js";
6
+ } from "./chunk-CZYMYM7X.js";
7
7
  import {
8
8
  CLAUDE_CODE_AGENT,
9
9
  parseApplyPatchFiles
10
- } from "./chunk-LDQGURCF.js";
10
+ } from "./chunk-A6J5Z2HO.js";
11
11
  import {
12
12
  guardBinary,
13
13
  holdBudgetOf,
14
14
  isProtectedByScope,
15
15
  registerHookEntry
16
- } from "./chunk-UJZ7AGSC.js";
16
+ } from "./chunk-4FWWHCYM.js";
17
17
  import {
18
18
  HOOK_LOCATOR_BINARY,
19
19
  PHONE_ANSWERED_TOOLS,
@@ -21,7 +21,7 @@ import {
21
21
  hookCompatibleProfileBySource,
22
22
  toToolLookup,
23
23
  withHookHoldBudget
24
- } from "./chunk-5RGA636G.js";
24
+ } from "./chunk-VOP5U2VX.js";
25
25
 
26
26
  // src/claude-config.ts
27
27
  import { join } from "path";
@@ -197,7 +197,10 @@ import { homedir } from "os";
197
197
  import { isAbsolute, join as join2, resolve } from "path";
198
198
  var AGENT_FLAG = "--agent";
199
199
  var SOURCE_FLAG = "--source";
200
+ var EVENT_FLAG = "--event";
200
201
  var agentArgument = (profile) => `${AGENT_FLAG}=${profile.agentType}`;
202
+ var eventArgument = (event) => `${EVENT_FLAG}=${event}`;
203
+ var payloadNamesItsEvent = (profile) => profile.payload === "claude";
201
204
  var profileFromArgv = (argv) => {
202
205
  const named = namedAgent(argv);
203
206
  if (named !== void 0) return hookCompatibleProfile(named);
@@ -212,6 +215,12 @@ var namedAgent = (argv) => {
212
215
  const prefix = `${AGENT_FLAG}=`;
213
216
  return argv.find((argument) => argument.startsWith(prefix))?.slice(prefix.length);
214
217
  };
218
+ var namedEvent = (argv) => {
219
+ const inline = argv.find((argument) => argument.startsWith(`${EVENT_FLAG}=`));
220
+ if (inline) return inline.slice(EVENT_FLAG.length + 1);
221
+ const index = argv.indexOf(EVENT_FLAG);
222
+ return index === -1 ? void 0 : argv[index + 1];
223
+ };
215
224
  var namedSource = (argv) => {
216
225
  const inline = argv.find((argument) => argument.startsWith(`${SOURCE_FLAG}=`));
217
226
  if (inline) return inline.slice(SOURCE_FLAG.length + 1);
@@ -264,12 +273,17 @@ var pruneEmptyMap = (config, keyPath) => {
264
273
  return true;
265
274
  };
266
275
  var aliasesFor = (profile, canonical) => Object.entries(profile.toolAliases).flatMap(([agentName, target]) => target === canonical ? [agentName] : []);
267
- var carriesPhoneAnswer = (profile, canonical) => profile.wire === "legacy_decision" && PHONE_ANSWERED_TOOLS.has(canonical);
276
+ var carriesPhoneAnswer = (profile, canonical) => profile.wire !== "permission_decision" && PHONE_ANSWERED_TOOLS.has(canonical);
268
277
  var translateMatcher = (profile, matcher) => {
269
278
  const spellings = matcher.split("|").filter((canonical) => !carriesPhoneAnswer(profile, canonical)).flatMap((canonical) => [canonical, ...aliasesFor(profile, canonical)]);
270
279
  return [.../* @__PURE__ */ new Set([...spellings, ...profile.extraMatchers])].join("|");
271
280
  };
272
281
  var TOOL_MATCHED_EVENTS = /* @__PURE__ */ new Set(["PreToolUse", "PostToolUse"]);
282
+ var isPusharyHandler = (entry2, scope) => {
283
+ const record = asRecord2(entry2);
284
+ return record !== void 0 && !Array.isArray(record.hooks) && isPusharyHook({ hooks: [record] }, scope);
285
+ };
286
+ var isPusharyCompatibleEntry = (entry2, scope) => isPusharyHook(entry2, scope) || isPusharyHandler(entry2, scope);
273
287
  var withoutMatcher = ({ matcher, ...hook }) => hook;
274
288
  var compatibleHookEvents = (profile) => CLAUDE_HOOK_EVENTS.filter((hook) => profile.events.includes(hook.event)).map((hook) => {
275
289
  if (!hook.matcher) return hook;
@@ -306,17 +320,20 @@ var addCompatibleToolPermissions = (config) => {
306
320
  addPusharyToolPermissions(config);
307
321
  return WRITTEN;
308
322
  };
309
- var entryFor = (profile, definition, resolve2) => ({
310
- ...definition.matcher ? { matcher: definition.matcher } : {},
311
- hooks: [{
312
- type: "command",
313
- command: withHookHoldBudget(
314
- `${resolve2(definition.binary)} ${agentArgument(profile)}`,
315
- holdBudgetOf(definition)
316
- ),
317
- timeout: definition.timeout
318
- }]
319
- });
323
+ var commandFor = (profile, definition, resolve2) => {
324
+ const named = `${resolve2(definition.binary)} ${agentArgument(profile)}`;
325
+ const command = payloadNamesItsEvent(profile) ? named : `${named} ${eventArgument(definition.event)}`;
326
+ return withHookHoldBudget(command, holdBudgetOf(definition));
327
+ };
328
+ var writesBareHandler = (profile, definition) => profile.nonToolEntries === "handler" && !TOOL_MATCHED_EVENTS.has(definition.event);
329
+ var entryFor = (profile, definition, resolve2) => {
330
+ const handler = { type: "command", command: commandFor(profile, definition, resolve2), timeout: definition.timeout };
331
+ if (writesBareHandler(profile, definition)) return handler;
332
+ return {
333
+ ...definition.matcher ? { matcher: definition.matcher } : {},
334
+ hooks: [handler]
335
+ };
336
+ };
320
337
  var addCompatibleHooks = (config, profile, binDir) => {
321
338
  const conflictAt = hooksShapeConflict(config, profile);
322
339
  if (conflictAt) return { ok: false, conflictAt };
@@ -327,10 +344,10 @@ var addCompatibleHooks = (config, profile, binDir) => {
327
344
  const current = Array.isArray(hooks[known.event]) ? hooks[known.event] : [];
328
345
  const definition = supported.get(known.event);
329
346
  if (definition) {
330
- hooks[known.event] = registerHookEntry(current, isPusharyHook, entryFor(profile, definition, resolve2));
347
+ hooks[known.event] = registerHookEntry(current, isPusharyCompatibleEntry, entryFor(profile, definition, resolve2));
331
348
  continue;
332
349
  }
333
- const others = current.filter((item) => !isPusharyHook(item));
350
+ const others = current.filter((item) => !isPusharyCompatibleEntry(item));
334
351
  if (others.length > 0) hooks[known.event] = others;
335
352
  else delete hooks[known.event];
336
353
  }
@@ -343,7 +360,7 @@ var removeCompatibleHooks = (config, profile, scope) => {
343
360
  for (const { event } of CLAUDE_HOOK_EVENTS) {
344
361
  const entries = hooks[event];
345
362
  if (!Array.isArray(entries)) continue;
346
- const kept = entries.filter((entry2) => !isPusharyHook(entry2, scope));
363
+ const kept = entries.filter((entry2) => !isPusharyCompatibleEntry(entry2, scope));
347
364
  if (kept.length === entries.length) continue;
348
365
  if (kept.length === 0) delete hooks[event];
349
366
  else hooks[event] = kept;
@@ -357,14 +374,14 @@ var hasCompatibleHooks = (config, profile) => {
357
374
  if (!hooks) return false;
358
375
  return compatibleHookEvents(profile).some(({ event }) => {
359
376
  const entries = hooks[event];
360
- return Array.isArray(entries) && entries.some((entry2) => isPusharyHook(entry2));
377
+ return Array.isArray(entries) && entries.some((entry2) => isPusharyCompatibleEntry(entry2));
361
378
  });
362
379
  };
363
380
  var missingCompatibleHookEvents = (config, profile) => {
364
381
  const hooks = findMap(config, profile.hooksKeyPath);
365
382
  return compatibleHookEvents(profile).filter(({ event }) => {
366
383
  const entries = hooks?.[event];
367
- return !Array.isArray(entries) || !entries.some((entry2) => isPusharyHook(entry2));
384
+ return !Array.isArray(entries) || !entries.some((entry2) => isPusharyCompatibleEntry(entry2));
368
385
  }).map(({ event }) => event);
369
386
  };
370
387
  var compatiblePermissionRuleFile = (profile, home) => profile.permissionRuleFile ? underHome(profile.permissionRuleFile, home) : null;
@@ -374,6 +391,13 @@ var addCompatibleMcpServer = (config, profile, apiKey) => {
374
391
  addGeminiMcpServer(config, apiKey);
375
392
  return;
376
393
  }
394
+ if (profile.mcp.shape === "antigravity_http") {
395
+ ensureRecord2(config, "mcpServers").pushary = {
396
+ serverUrl: PUSHARY_MCP_URL,
397
+ headers: { Authorization: `Bearer ${apiKey}` }
398
+ };
399
+ return;
400
+ }
377
401
  addClaudeMcpServer(config, apiKey);
378
402
  if (!profile.mcp.trusted) return;
379
403
  const server = asRecord2(asRecord2(config.mcpServers)?.pushary);
@@ -397,6 +421,7 @@ export {
397
421
  removePusharySettings,
398
422
  profileFromArgv,
399
423
  activeIdentity,
424
+ namedEvent,
400
425
  activeHookSource,
401
426
  normalizeToolCall,
402
427
  compatibleConfigFile,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  compatibleConfigFile
3
- } from "./chunk-7HGR5GNY.js";
3
+ } from "./chunk-KEV2MOJH.js";
4
4
  import {
5
5
  hookOwnerOf,
6
6
  hookOwnerOfCommands,
7
7
  liveBridgeProbe,
8
8
  resolveBridgeStub
9
- } from "./chunk-SIHYBIEN.js";
9
+ } from "./chunk-7RWQZQV2.js";
10
10
  import {
11
11
  AGENT_CHOICES
12
- } from "./chunk-ZGADIZDS.js";
12
+ } from "./chunk-4HR2ICME.js";
13
13
  import {
14
14
  claudeSettings,
15
15
  codexHooksJson,
@@ -18,7 +18,7 @@ import {
18
18
  guardedArgv,
19
19
  pusharyDir,
20
20
  vscodePluginDir
21
- } from "./chunk-UJZ7AGSC.js";
21
+ } from "./chunk-4FWWHCYM.js";
22
22
  import {
23
23
  readJsonSafe
24
24
  } from "./chunk-T7E75EKA.js";
@@ -28,7 +28,7 @@ import {
28
28
  HOOK_LOCATOR_BINARY,
29
29
  OPENCODE_APPROVAL_EVENT,
30
30
  hookCompatibleProfile
31
- } from "./chunk-5RGA636G.js";
31
+ } from "./chunk-VOP5U2VX.js";
32
32
 
33
33
  // src/opencode-plugin.ts
34
34
  var OPENCODE_PLUGIN_MARKER = "pushary-opencode-plugin w1";
@@ -2,25 +2,25 @@ import {
2
2
  SIGNED_OUT_ON_MAC_MESSAGE,
3
3
  describeSignedOutKey,
4
4
  readSignedOutDiagnosis
5
- } from "./chunk-LXA236ZQ.js";
5
+ } from "./chunk-OKSU74QH.js";
6
6
  import {
7
7
  createIo
8
8
  } from "./chunk-U4TMAANR.js";
9
9
  import {
10
10
  readKeySource
11
- } from "./chunk-GTZ4HIHU.js";
11
+ } from "./chunk-Z4AOR6RZ.js";
12
12
  import {
13
13
  absoluteUrl,
14
14
  checkApiKey,
15
15
  describeKeyCheck,
16
16
  keyCheckFromResponse
17
- } from "./chunk-XXLCYKVS.js";
17
+ } from "./chunk-I4I4UH62.js";
18
18
  import {
19
19
  EXIT
20
20
  } from "./chunk-KZERVKTD.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-2M52CFVO.js";
23
+ } from "./chunk-FJCOOFT7.js";
24
24
 
25
25
  // src/cli/report-key.ts
26
26
  var { dim, yellow } = createIo();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  pusharyHookExecutable
3
- } from "./chunk-SIHYBIEN.js";
3
+ } from "./chunk-7RWQZQV2.js";
4
4
  import {
5
5
  isProtectedByScope,
6
6
  registerHookEntry
7
- } from "./chunk-UJZ7AGSC.js";
7
+ } from "./chunk-4FWWHCYM.js";
8
8
 
9
9
  // src/cursor-config.ts
10
10
  var hookCommandOf = (entry) => {
@@ -1,9 +1,16 @@
1
1
  import {
2
2
  registerTranscript
3
- } from "./chunk-DWO4RLYK.js";
3
+ } from "./chunk-CHDAH4HP.js";
4
+ import {
5
+ namedEvent
6
+ } from "./chunk-KEV2MOJH.js";
4
7
  import {
5
8
  writeDegraded
6
- } from "./chunk-NQ67AF3V.js";
9
+ } from "./chunk-GUNZHSTL.js";
10
+ import {
11
+ claudeShapedHookInput,
12
+ hookCompatibleProfileBySource
13
+ } from "./chunk-VOP5U2VX.js";
7
14
 
8
15
  // src/tool-hook-input.ts
9
16
  var OPTIONAL_TEXT_FIELDS = ["hook_event_name", "session_id", "cwd", "transcript_path", "tool_use_id", "permission_mode"];
@@ -80,13 +87,18 @@ var readHookInput = async (source, fallbackEvent = "", stdin = process.stdin, pa
80
87
  return null;
81
88
  }
82
89
  if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return null;
83
- const input = parseInput ? parseInput(parsed) : parsed;
90
+ const shaped = inClaudeShape(source, namedEvent(process.argv) ?? fallbackEvent, parsed);
91
+ const input = parseInput ? parseInput(shaped) : shaped;
84
92
  if (input === null) return null;
85
93
  const event = eventNameOf(input) ?? fallbackEvent;
86
94
  if (!isAdmitted(readAdmissionRules(), source, event)) return null;
87
95
  if (stdin === process.stdin) registerTranscript(source, input);
88
96
  return input;
89
97
  };
98
+ var inClaudeShape = (source, event, parsed) => {
99
+ const profile = hookCompatibleProfileBySource(source);
100
+ return profile ? claudeShapedHookInput(profile.payload, event, parsed) : parsed;
101
+ };
90
102
  var eventNameOf = (input) => {
91
103
  if (!("hook_event_name" in input)) return void 0;
92
104
  const name = input.hook_event_name;
@@ -2,7 +2,7 @@ import {
2
2
  DISCONNECT_AGENT_IDS,
3
3
  SETUP_AGENT_CHOICES,
4
4
  isApprovalMode
5
- } from "./chunk-5RGA636G.js";
5
+ } from "./chunk-VOP5U2VX.js";
6
6
 
7
7
  // src/cli/mode-request.ts
8
8
  var parseDuration = (value) => {
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  MCP_BRIDGE_BINARY
3
- } from "./chunk-OL2Z7WI4.js";
3
+ } from "./chunk-BDRXDO25.js";
4
4
  import {
5
5
  KEY_FILE_MODE
6
- } from "./chunk-GTZ4HIHU.js";
6
+ } from "./chunk-Z4AOR6RZ.js";
7
7
  import {
8
8
  NpmMissingError
9
- } from "./chunk-UJZ7AGSC.js";
9
+ } from "./chunk-4FWWHCYM.js";
10
10
  import {
11
11
  readJsonSafe,
12
12
  writeFileAtomic,
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-T7E75EKA.js";
15
15
  import {
16
16
  NPX_LATEST_COMMAND
17
- } from "./chunk-TCXL5FQQ.js";
17
+ } from "./chunk-M54ATCOZ.js";
18
18
 
19
19
  // src/instruction-file.ts
20
20
  import { existsSync, readFileSync, writeFileSync, mkdirSync, rmSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pusharyDir
3
- } from "./chunk-UJZ7AGSC.js";
3
+ } from "./chunk-4FWWHCYM.js";
4
4
  import {
5
5
  readJsonSafe
6
6
  } from "./chunk-T7E75EKA.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SETUP_FLAGS
3
- } from "./chunk-ZGADIZDS.js";
3
+ } from "./chunk-4HR2ICME.js";
4
4
  import {
5
5
  parseFlags
6
6
  } from "./chunk-GMXKITVA.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-7QLSKOSU.js";
10
10
  import {
11
11
  NPX_LATEST_COMMAND
12
- } from "./chunk-TCXL5FQQ.js";
12
+ } from "./chunk-M54ATCOZ.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-5RGA636G.js";
20
+ } from "./chunk-VOP5U2VX.js";
21
21
 
22
22
  // src/cli/cowork.ts
23
23
  import { readFileSync } from "fs";
@@ -3,27 +3,27 @@ import {
3
3
  expectedLaunchCapabilities,
4
4
  hasSpawnProvider,
5
5
  resolveControlPolicy
6
- } from "./chunk-EVC765EO.js";
6
+ } from "./chunk-N6GEI3PK.js";
7
7
  import {
8
8
  daemonHasRemoteProof,
9
9
  daemonServiceManagerAvailable,
10
10
  hasDaemonServiceDefinition,
11
11
  readDaemonNeedsLogin,
12
12
  readDaemonStatus
13
- } from "./chunk-RPQLZLKC.js";
13
+ } from "./chunk-PTGUJZSD.js";
14
14
  import {
15
15
  readControlMode,
16
16
  readKeySource
17
- } from "./chunk-GTZ4HIHU.js";
17
+ } from "./chunk-Z4AOR6RZ.js";
18
18
  import {
19
19
  getMachineId
20
- } from "./chunk-H4F5O3RE.js";
20
+ } from "./chunk-2NAQRPZQ.js";
21
21
  import {
22
22
  getBaseUrl
23
- } from "./chunk-2M52CFVO.js";
23
+ } from "./chunk-FJCOOFT7.js";
24
24
  import {
25
25
  getPackageVersion
26
- } from "./chunk-5RGA636G.js";
26
+ } from "./chunk-VOP5U2VX.js";
27
27
 
28
28
  // src/machines.ts
29
29
  import { hostname } from "os";
@@ -10,10 +10,10 @@ import {
10
10
  resolvePackageVersionFromBinary,
11
11
  resolvePathBinary,
12
12
  resolvePathBinaryAsync
13
- } from "./chunk-UJZ7AGSC.js";
13
+ } from "./chunk-4FWWHCYM.js";
14
14
  import {
15
15
  MANAGED_PROVIDERS
16
- } from "./chunk-5RGA636G.js";
16
+ } from "./chunk-VOP5U2VX.js";
17
17
 
18
18
  // src/setup/codex-install.ts
19
19
  var NATIVE_BINARY_MIN_BYTES = 20 * 1024 * 1024;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getBaseUrl
3
- } from "./chunk-2M52CFVO.js";
3
+ } from "./chunk-FJCOOFT7.js";
4
4
 
5
5
  // src/transcript-api.ts
6
6
  var fetchTranscriptRecipients = async (apiKey, baseUrl = getBaseUrl()) => {
@@ -3,10 +3,10 @@ import {
3
3
  keyPrefix,
4
4
  readConfigFileKey,
5
5
  readMacAppKeyPrefix
6
- } from "./chunk-GTZ4HIHU.js";
6
+ } from "./chunk-Z4AOR6RZ.js";
7
7
  import {
8
8
  NPX_LATEST_COMMAND
9
- } from "./chunk-TCXL5FQQ.js";
9
+ } from "./chunk-M54ATCOZ.js";
10
10
 
11
11
  // src/key-signed-out.ts
12
12
  var VERDICT_BY_CHECK = {
@@ -2,7 +2,7 @@ import {
2
2
  autoUpdateLock,
3
3
  installPackageGlobally,
4
4
  npmErrorMessage
5
- } from "./chunk-UJZ7AGSC.js";
5
+ } from "./chunk-4FWWHCYM.js";
6
6
  import {
7
7
  writeJsonAtomic
8
8
  } from "./chunk-T7E75EKA.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-3EGEA4KH.js";
10
10
  import {
11
11
  getBaseUrl
12
- } from "./chunk-2M52CFVO.js";
12
+ } from "./chunk-FJCOOFT7.js";
13
13
 
14
14
  // src/cli/login-ui.ts
15
15
  import { hostname } from "os";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CODEX_HOOK_STATUS
3
- } from "./chunk-Y7JM47CI.js";
3
+ } from "./chunk-GA4J6YFN.js";
4
4
  import {
5
5
  NPX_LATEST_COMMAND
6
- } from "./chunk-TCXL5FQQ.js";
6
+ } from "./chunk-M54ATCOZ.js";
7
7
 
8
8
  // src/setup/codex-trust.ts
9
9
  var CODEX_TRUST_TELEMETRY = {
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-XHKBHWLX.js";
5
5
  import {
6
6
  readControlMode
7
- } from "./chunk-GTZ4HIHU.js";
7
+ } from "./chunk-Z4AOR6RZ.js";
8
8
  import {
9
9
  getMachineId
10
- } from "./chunk-H4F5O3RE.js";
10
+ } from "./chunk-2NAQRPZQ.js";
11
11
  import {
12
12
  pusharyDir,
13
13
  resolveGlobalBinary
14
- } from "./chunk-UJZ7AGSC.js";
14
+ } from "./chunk-4FWWHCYM.js";
15
15
  import {
16
16
  readJsonSafe,
17
17
  writeFileAtomic,
@@ -20,14 +20,14 @@ import {
20
20
  } from "./chunk-T7E75EKA.js";
21
21
  import {
22
22
  getApiKey
23
- } from "./chunk-2M52CFVO.js";
23
+ } from "./chunk-FJCOOFT7.js";
24
24
  import {
25
25
  CLI_PACKAGE_NAMES,
26
26
  cmdShimTarget,
27
27
  getPackageVersion,
28
28
  globalPackageFolder,
29
29
  globalRootFor
30
- } from "./chunk-5RGA636G.js";
30
+ } from "./chunk-VOP5U2VX.js";
31
31
 
32
32
  // src/daemon-lifecycle.ts
33
33
  import { dirname, join, win32 as win32Path } from "path";
@@ -14,19 +14,19 @@ import {
14
14
  } from "./chunk-U4TMAANR.js";
15
15
  import {
16
16
  callMcpTool
17
- } from "./chunk-I3W7GJ5R.js";
17
+ } from "./chunk-KBN3UP2R.js";
18
18
  import {
19
19
  reportedInstallSource
20
- } from "./chunk-Q3UMWSE4.js";
20
+ } from "./chunk-CBDJ2X5P.js";
21
21
  import {
22
22
  NPX_LATEST_COMMAND
23
- } from "./chunk-TCXL5FQQ.js";
23
+ } from "./chunk-M54ATCOZ.js";
24
24
  import {
25
25
  NO_PAIRING_COMPUTER,
26
26
  PAIR_TTL_SECONDS,
27
27
  classifyConfirmResponse,
28
28
  isAnswerSource
29
- } from "./chunk-5RGA636G.js";
29
+ } from "./chunk-VOP5U2VX.js";
30
30
 
31
31
  // src/reach.ts
32
32
  var reachVerdict = (channels) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  guardBinary
3
- } from "./chunk-UJZ7AGSC.js";
3
+ } from "./chunk-4FWWHCYM.js";
4
4
 
5
5
  // src/bell/install.ts
6
6
  import { join } from "path";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  DEFAULT_SESSION
3
- } from "./chunk-N6IOSZOE.js";
3
+ } from "./chunk-A6J5Z2HO.js";
4
4
 
5
5
  // src/answer.ts
6
6
  var denyReasonFrom = (value, note) => {