@pushary/agent-hooks 0.83.2 → 0.84.0

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 (64) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/dist/bin/pushary-bell-hook.js +5 -5
  3. package/dist/bin/pushary-bell.js +15 -14
  4. package/dist/bin/pushary-claude.js +72 -131
  5. package/dist/bin/pushary-clean.js +13 -12
  6. package/dist/bin/pushary-codex-bridge.d.ts +1 -0
  7. package/dist/bin/pushary-codex-bridge.js +348 -0
  8. package/dist/bin/pushary-codex-hook.js +15 -14
  9. package/dist/bin/pushary-codex.js +7 -7
  10. package/dist/bin/pushary-connect.js +13 -12
  11. package/dist/bin/pushary-daemon.js +313 -41
  12. package/dist/bin/pushary-doctor.js +48 -25
  13. package/dist/bin/pushary-gemini-bridge.d.ts +1 -0
  14. package/dist/bin/pushary-gemini-bridge.js +298 -0
  15. package/dist/bin/pushary-gemini-hook.js +24 -20
  16. package/dist/bin/pushary-hook.js +14 -13
  17. package/dist/bin/pushary-login.js +15 -14
  18. package/dist/bin/pushary-logout.js +12 -11
  19. package/dist/bin/pushary-mode.js +10 -9
  20. package/dist/bin/pushary-notification-hook.js +5 -5
  21. package/dist/bin/pushary-permission-denied-hook.js +9 -9
  22. package/dist/bin/pushary-permission-hook.js +9 -9
  23. package/dist/bin/pushary-post-hook.js +5 -5
  24. package/dist/bin/pushary-prompt-hook.js +5 -5
  25. package/dist/bin/pushary-session-end-hook.js +5 -5
  26. package/dist/bin/pushary-session-start-hook.js +5 -5
  27. package/dist/bin/pushary-setup.js +42 -36
  28. package/dist/bin/pushary-stats.js +6 -5
  29. package/dist/bin/pushary-status.js +17 -16
  30. package/dist/bin/pushary-stop-hook.js +5 -5
  31. package/dist/bin/pushary-stopfailure-hook.js +5 -5
  32. package/dist/bin/pushary-suggestions.js +7 -6
  33. package/dist/bin/pushary-upgrade.js +18 -17
  34. package/dist/bin/pushary-wait.js +10 -9
  35. package/dist/bin/pushary.js +8 -6
  36. package/dist/{chunk-4QQOKEOS.js → chunk-37AD5K7W.js} +6 -6
  37. package/dist/{chunk-SAA3VBDK.js → chunk-437T77TY.js} +3 -3
  38. package/dist/{chunk-U27BZWFT.js → chunk-6LC4WSCL.js} +1 -1
  39. package/dist/{chunk-7WWZPII5.js → chunk-7PZPJSWI.js} +1 -1
  40. package/dist/chunk-CCH775Y6.js +343 -0
  41. package/dist/chunk-DINDL2CF.js +45 -0
  42. package/dist/{chunk-TXF4QZSQ.js → chunk-DOXSWT4Q.js} +1 -1
  43. package/dist/chunk-EVJ6ULHN.js +153 -0
  44. package/dist/{chunk-QR6MVVQ7.js → chunk-F52SIIDG.js} +4 -4
  45. package/dist/{chunk-26D2YMDU.js → chunk-FBGBJXVC.js} +1 -1
  46. package/dist/{chunk-QF7WTF2C.js → chunk-HZNOAJGB.js} +2 -2
  47. package/dist/{chunk-RRZZ7TFJ.js → chunk-J4KFVOCQ.js} +4 -2
  48. package/dist/{chunk-WDRRULBH.js → chunk-K7CSRGKZ.js} +4 -4
  49. package/dist/{chunk-ZUKH2NPJ.js → chunk-MGJBC6DD.js} +1 -44
  50. package/dist/{chunk-GQLB2GBJ.js → chunk-MHBC2XUP.js} +1 -1
  51. package/dist/{chunk-YWRJGYUH.js → chunk-MQMPG5X4.js} +28 -2
  52. package/dist/{chunk-3AGM3TDM.js → chunk-NJ7JT26G.js} +1 -1
  53. package/dist/chunk-NRGRUOAR.js +25 -0
  54. package/dist/chunk-NWYGW7HY.js +117 -0
  55. package/dist/{chunk-7PO2VEA4.js → chunk-OPMSMF5R.js} +38 -33
  56. package/dist/{chunk-DHAZ6SOT.js → chunk-QNBA5OXQ.js} +81 -25
  57. package/dist/{chunk-EHLTWCDZ.js → chunk-SEAHGHCE.js} +1 -1
  58. package/dist/{chunk-NDC3TBHI.js → chunk-UKSQWTBH.js} +1 -1
  59. package/dist/{chunk-UVAC2KHH.js → chunk-UXWEE3QI.js} +1 -1
  60. package/dist/{chunk-MUEW424A.js → chunk-VT4IVERX.js} +50 -3
  61. package/dist/chunk-YJCMI5GF.js +133 -0
  62. package/dist/src/index.d.ts +6 -3
  63. package/dist/src/index.js +9 -9
  64. package/package.json +3 -1
@@ -0,0 +1,348 @@
1
+ #!/usr/bin/env node
2
+ import "../chunk-NRGRUOAR.js";
3
+ import {
4
+ LiveTranscriptRelay,
5
+ liveSessionSleep,
6
+ postLiveSession,
7
+ postLiveSessionUntilAccepted,
8
+ startLiveSessionHeartbeat
9
+ } from "../chunk-YJCMI5GF.js";
10
+ import "../chunk-NWYGW7HY.js";
11
+ import {
12
+ startProcessOwnership
13
+ } from "../chunk-EVJ6ULHN.js";
14
+ import {
15
+ spawnClaude
16
+ } from "../chunk-XHKBHWLX.js";
17
+ import {
18
+ resolveBinary
19
+ } from "../chunk-VT4IVERX.js";
20
+ import "../chunk-SEAHGHCE.js";
21
+ import {
22
+ getMachineId
23
+ } from "../chunk-RN3NOEJF.js";
24
+ import "../chunk-6MTNS63X.js";
25
+ import {
26
+ getApiKey,
27
+ getBaseUrl
28
+ } from "../chunk-2UMNXADU.js";
29
+ import "../chunk-MQMPG5X4.js";
30
+
31
+ // bin/pushary-codex-bridge.ts
32
+ import { existsSync } from "fs";
33
+
34
+ // src/codex-bridge.ts
35
+ import { spawn } from "child_process";
36
+ import { basename } from "path";
37
+ var MAX_RPC_LINE = 1024 * 1024;
38
+ var MAX_PENDING_RPC = 8;
39
+ var MAX_TRANSCRIPT_TEXT = 32 * 1024;
40
+ var MAX_MESSAGE_BUFFERS = 16;
41
+ var JsonRpcClient = class {
42
+ child;
43
+ pending = /* @__PURE__ */ new Map();
44
+ notifications = /* @__PURE__ */ new Set();
45
+ nextId = 1;
46
+ buffer = "";
47
+ closed = false;
48
+ constructor(command, cwd, timeoutMs) {
49
+ const options = { cwd, env: process.env, stdio: ["pipe", "pipe", "pipe"] };
50
+ this.child = process.platform === "win32" ? spawnClaude(command.command, command.args ?? [], options) : spawn(command.command, command.args ?? [], options);
51
+ this.child.stdout?.setEncoding("utf8");
52
+ this.child.stdout?.on("data", (chunk) => this.read(String(chunk)));
53
+ this.child.stderr?.resume();
54
+ this.child.once("error", (error) => this.fail(error));
55
+ this.child.once("exit", () => this.fail(new Error("Codex app-server exited")));
56
+ this.timeoutMs = timeoutMs;
57
+ }
58
+ timeoutMs;
59
+ get isClosed() {
60
+ return this.closed;
61
+ }
62
+ onNotification(listener) {
63
+ this.notifications.add(listener);
64
+ return () => this.notifications.delete(listener);
65
+ }
66
+ notify(method) {
67
+ this.write({ method });
68
+ }
69
+ request(method, params) {
70
+ if (this.closed) return Promise.reject(new Error("Codex app-server is closed"));
71
+ if (this.pending.size >= MAX_PENDING_RPC) return Promise.reject(new Error("Codex app-server request limit reached"));
72
+ const id = this.nextId++;
73
+ return new Promise((resolve, reject) => {
74
+ const timer = setTimeout(() => {
75
+ this.pending.delete(id);
76
+ reject(new Error(`${method} timed out`));
77
+ }, this.timeoutMs);
78
+ this.pending.set(id, { resolve, reject, timer });
79
+ this.write({ id, method, params });
80
+ });
81
+ }
82
+ async close() {
83
+ if (this.closed) return;
84
+ this.closed = true;
85
+ this.child.stdin?.end();
86
+ if (this.child.exitCode != null) return;
87
+ await Promise.race([
88
+ new Promise((resolve) => this.child.once("exit", () => resolve())),
89
+ new Promise((resolve) => setTimeout(resolve, 1e3))
90
+ ]);
91
+ if (this.child.exitCode == null) this.child.kill();
92
+ this.rejectPending(new Error("Codex app-server closed"));
93
+ }
94
+ write(value) {
95
+ this.child.stdin?.write(`${JSON.stringify(value)}
96
+ `);
97
+ }
98
+ read(chunk) {
99
+ this.buffer += chunk;
100
+ if (this.buffer.length > MAX_RPC_LINE && !this.buffer.includes("\n")) {
101
+ this.fail(new Error("Codex app-server sent an oversized message"));
102
+ return;
103
+ }
104
+ let newline = this.buffer.indexOf("\n");
105
+ while (newline >= 0) {
106
+ const line = this.buffer.slice(0, newline);
107
+ this.buffer = this.buffer.slice(newline + 1);
108
+ if (line.length > MAX_RPC_LINE) {
109
+ this.fail(new Error("Codex app-server sent an oversized message"));
110
+ return;
111
+ }
112
+ this.handle(line);
113
+ newline = this.buffer.indexOf("\n");
114
+ }
115
+ }
116
+ handle(line) {
117
+ let message;
118
+ try {
119
+ message = JSON.parse(line);
120
+ } catch {
121
+ return;
122
+ }
123
+ if (typeof message.id === "number" && message.method) {
124
+ const result = message.method === "item/commandExecution/requestApproval" || message.method === "item/fileChange/requestApproval" ? { decision: "decline" } : message.method === "applyPatchApproval" || message.method === "execCommandApproval" ? { decision: { denied: { rejection: "No interactive Codex client is attached" } } } : message.method === "item/tool/requestUserInput" ? { answers: {} } : null;
125
+ this.write(result ? { id: message.id, result } : { id: message.id, error: { code: -32601, message: "Unsupported server request" } });
126
+ return;
127
+ }
128
+ if (typeof message.id === "number") {
129
+ const pending = this.pending.get(message.id);
130
+ if (!pending) return;
131
+ this.pending.delete(message.id);
132
+ clearTimeout(pending.timer);
133
+ if (message.error) pending.reject(new Error(message.error.message ?? "Codex app-server request failed"));
134
+ else pending.resolve(message.result);
135
+ return;
136
+ }
137
+ if (message.method) {
138
+ for (const listener of this.notifications) listener(message);
139
+ }
140
+ }
141
+ fail(error) {
142
+ if (this.closed) return;
143
+ this.closed = true;
144
+ this.rejectPending(error);
145
+ if (this.child.exitCode == null) this.child.kill();
146
+ }
147
+ rejectPending(error) {
148
+ for (const pending of this.pending.values()) {
149
+ clearTimeout(pending.timer);
150
+ pending.reject(error);
151
+ }
152
+ this.pending.clear();
153
+ }
154
+ };
155
+ var object = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : null;
156
+ var string = (value) => typeof value === "string" && value.length > 0 ? value : null;
157
+ var input = (text) => [{ type: "text", text, text_elements: [] }];
158
+ var rpcThreadId = (result) => string(object(object(result)?.thread)?.id);
159
+ var rpcTurnId = (result) => {
160
+ const response = object(result);
161
+ return string(object(response?.turn)?.id) ?? string(response?.turnId);
162
+ };
163
+ var runCodexBridge = async (options) => {
164
+ const timeoutMs = options.requestTimeoutMs ?? 1e4;
165
+ const rpc = new JsonRpcClient(options.appServer, options.cwd, timeoutMs);
166
+ let threadId = options.resumeThreadId ?? null;
167
+ let activeTurnId = null;
168
+ let relay = null;
169
+ let linked = false;
170
+ let stopHeartbeat = () => {
171
+ };
172
+ let ownership = null;
173
+ const messages = /* @__PURE__ */ new Map();
174
+ const reportBody = (event, action) => ({
175
+ event,
176
+ action,
177
+ agentType: "codex",
178
+ agentName: `Codex - ${basename(options.cwd)}`,
179
+ sessionId: threadId,
180
+ codexThreadId: threadId,
181
+ spawnId: options.spawnId,
182
+ machineId: options.machineId,
183
+ pid: process.pid,
184
+ cwd: options.cwd
185
+ });
186
+ const report = (event, action) => postLiveSession(options, "/api/agent/event", reportBody(event, action));
187
+ const removeNotification = rpc.onNotification((message) => {
188
+ const params = message.params ?? {};
189
+ if (message.method === "turn/started") activeTurnId = string(object(params.turn)?.id);
190
+ if (message.method === "turn/completed") {
191
+ activeTurnId = null;
192
+ void report("stop", "Turn completed").catch(() => {
193
+ });
194
+ }
195
+ if (message.method === "item/agentMessage/delta") {
196
+ const itemId = string(params.itemId);
197
+ const delta = string(params.delta);
198
+ if (!itemId || !delta) return;
199
+ if (!messages.has(itemId) && messages.size === MAX_MESSAGE_BUFFERS) {
200
+ const oldest = messages.keys().next().value;
201
+ if (typeof oldest === "string") messages.delete(oldest);
202
+ }
203
+ messages.set(itemId, `${messages.get(itemId) ?? ""}${delta}`.slice(0, MAX_TRANSCRIPT_TEXT));
204
+ }
205
+ if (message.method === "item/completed") {
206
+ const itemId = string(object(params.item)?.id);
207
+ const text = itemId ? messages.get(itemId) : null;
208
+ if (!itemId || !text) return;
209
+ messages.delete(itemId);
210
+ relay?.add({ type: "assistant", uuid: itemId, message: { role: "assistant", content: text } });
211
+ }
212
+ });
213
+ try {
214
+ await rpc.request("initialize", {
215
+ clientInfo: { name: "pushary", title: "Pushary", version: "1" },
216
+ capabilities: { experimentalApi: false, requestAttestation: false }
217
+ });
218
+ rpc.notify("initialized");
219
+ const thread = options.resumeThreadId ? await rpc.request("thread/resume", { threadId: options.resumeThreadId, cwd: options.cwd, excludeTurns: true }) : await rpc.request("thread/start", { cwd: options.cwd, model: options.model ?? null });
220
+ threadId = rpcThreadId(thread);
221
+ if (!threadId) throw new Error("Codex app-server did not return a thread id");
222
+ ownership = startProcessOwnership({ sessionId: threadId, pid: process.pid, spawnId: options.spawnId });
223
+ await ownership.ready;
224
+ relay = options.transcripts === false ? null : new LiveTranscriptRelay(options, threadId);
225
+ await postLiveSessionUntilAccepted(
226
+ options,
227
+ "/api/agent/event",
228
+ reportBody("session_start", options.resumeThreadId ? "Session resumed" : "Session started")
229
+ );
230
+ linked = true;
231
+ stopHeartbeat = startLiveSessionHeartbeat(options, reportBody("heartbeat", "Session online"));
232
+ const startTurn = async (text, commandId) => {
233
+ relay?.add({ type: "user", uuid: commandId, message: { role: "user", content: text } });
234
+ const result = activeTurnId ? await rpc.request("turn/steer", {
235
+ threadId,
236
+ expectedTurnId: activeTurnId,
237
+ input: input(text),
238
+ clientUserMessageId: commandId
239
+ }) : await rpc.request("turn/start", {
240
+ threadId,
241
+ input: input(text),
242
+ cwd: options.cwd,
243
+ model: options.model ?? null,
244
+ clientUserMessageId: commandId
245
+ });
246
+ activeTurnId = rpcTurnId(result) ?? activeTurnId;
247
+ };
248
+ if (options.prompt) await startTurn(options.prompt, `spawn-${options.spawnId}`);
249
+ let pendingAck = null;
250
+ while (!options.signal.aborted && !rpc.isClosed) {
251
+ try {
252
+ if (pendingAck) {
253
+ const acknowledged = await postLiveSession(options, "/api/agent/command/ack", pendingAck);
254
+ if (acknowledged.ok) pendingAck = null;
255
+ }
256
+ if (pendingAck) {
257
+ await liveSessionSleep(options.pollIntervalMs ?? 2e3, options.signal);
258
+ continue;
259
+ }
260
+ const response = await postLiveSession(options, "/api/agent/command/drain", { sessionId: threadId, ackMode: true });
261
+ if (response.ok) {
262
+ const command = object((await response.json()).command);
263
+ const commandId = string(command?.id);
264
+ const text = string(command?.text);
265
+ if (commandId && text) {
266
+ try {
267
+ await startTurn(text, commandId);
268
+ pendingAck = { commandId, state: "delivered" };
269
+ } catch {
270
+ pendingAck = {
271
+ commandId,
272
+ state: "failed",
273
+ failureCode: "codex_rejected"
274
+ };
275
+ }
276
+ }
277
+ }
278
+ } catch {
279
+ }
280
+ await relay?.flush();
281
+ await liveSessionSleep(options.pollIntervalMs ?? 2e3, options.signal);
282
+ }
283
+ if (rpc.isClosed && !options.signal.aborted) throw new Error("Codex app-server exited");
284
+ if (activeTurnId) {
285
+ await rpc.request("turn/interrupt", { threadId, turnId: activeTurnId }).catch(() => null);
286
+ }
287
+ await relay?.flush();
288
+ await report("session_closed", "Session stopped").catch(() => null);
289
+ return "stopped";
290
+ } catch (error) {
291
+ if (!linked && options.claimId) {
292
+ const message = error instanceof Error ? error.message : String(error);
293
+ for (let attempt = 0; attempt < 3; attempt++) {
294
+ const acknowledged = await postLiveSession(options, "/api/agent/spawn/ack", {
295
+ spawnId: options.spawnId,
296
+ claimId: options.claimId,
297
+ machineId: options.machineId,
298
+ state: "failed",
299
+ failure: {
300
+ code: "bridge_failed",
301
+ message: message.slice(0, 240),
302
+ retryable: false
303
+ }
304
+ }).catch(() => null);
305
+ if (acknowledged?.ok) break;
306
+ await liveSessionSleep(200 * (attempt + 1), options.signal);
307
+ }
308
+ }
309
+ await report("error", "Live bridge failed").catch(() => null);
310
+ return "failed";
311
+ } finally {
312
+ stopHeartbeat();
313
+ ownership?.stop();
314
+ removeNotification();
315
+ await rpc.close();
316
+ }
317
+ };
318
+
319
+ // bin/pushary-codex-bridge.ts
320
+ var spawnId = process.env.PUSHARY_SPAWN_ID?.trim();
321
+ var requestedCwd = process.env.PUSHARY_BRIDGE_CWD?.trim();
322
+ if (!spawnId || !requestedCwd || !existsSync(requestedCwd)) {
323
+ process.stderr.write("[pushary] Codex bridge received an invalid launch request\n");
324
+ process.exit(1);
325
+ }
326
+ var abort = new AbortController();
327
+ var signals = process.platform === "win32" ? ["SIGINT", "SIGTERM"] : ["SIGINT", "SIGTERM", "SIGHUP"];
328
+ var stop = () => abort.abort();
329
+ for (const signal of signals) process.on(signal, stop);
330
+ var outcome = await runCodexBridge({
331
+ apiKey: getApiKey(),
332
+ baseUrl: getBaseUrl(),
333
+ machineId: getMachineId(),
334
+ spawnId,
335
+ claimId: process.env.PUSHARY_SPAWN_CLAIM_ID?.trim() || void 0,
336
+ cwd: requestedCwd,
337
+ prompt: process.env.PUSHARY_BRIDGE_PROMPT?.trim() || void 0,
338
+ model: process.env.PUSHARY_BRIDGE_MODEL?.trim() || void 0,
339
+ resumeThreadId: process.env.PUSHARY_BRIDGE_RESUME_SESSION_ID?.trim() || void 0,
340
+ appServer: {
341
+ command: process.env.PUSHARY_CODEX_COMMAND?.trim() || resolveBinary("codex") || "codex",
342
+ args: ["app-server", "--stdio"]
343
+ },
344
+ signal: abort.signal,
345
+ transcripts: process.env.PUSHARY_TRANSCRIPTS === "1"
346
+ });
347
+ for (const signal of signals) process.off(signal, stop);
348
+ process.exit(outcome === "stopped" ? 0 : 1);
@@ -2,13 +2,13 @@
2
2
  import {
3
3
  isGatingMoment,
4
4
  recordKeylessMoment
5
- } from "../chunk-3AGM3TDM.js";
5
+ } from "../chunk-NJ7JT26G.js";
6
6
  import {
7
7
  KILL_REASON,
8
8
  denyReasonFrom,
9
9
  isDeferAnswer,
10
10
  resolveGate
11
- } from "../chunk-4QQOKEOS.js";
11
+ } from "../chunk-37AD5K7W.js";
12
12
  import {
13
13
  CODEX_AGENT,
14
14
  DEFAULT_SESSION,
@@ -39,24 +39,24 @@ import {
39
39
  toPolicyLookup,
40
40
  toPolicyLookups,
41
41
  waitForAnswer
42
- } from "../chunk-7PO2VEA4.js";
42
+ } from "../chunk-OPMSMF5R.js";
43
+ import {
44
+ getMachineId
45
+ } from "../chunk-RN3NOEJF.js";
43
46
  import "../chunk-BSZYIAZL.js";
44
47
  import "../chunk-SAF6HGAA.js";
45
- import "../chunk-SAA3VBDK.js";
48
+ import "../chunk-437T77TY.js";
46
49
  import "../chunk-7QLSKOSU.js";
50
+ import "../chunk-KZERVKTD.js";
51
+ import {
52
+ getApiKey
53
+ } from "../chunk-2UMNXADU.js";
47
54
  import {
48
55
  DECISION_LINE_MAX,
49
56
  effectiveWaitSeconds,
50
57
  hookWaitClamped,
51
58
  hookWaitDeadline
52
- } from "../chunk-YWRJGYUH.js";
53
- import {
54
- getMachineId
55
- } from "../chunk-RN3NOEJF.js";
56
- import {
57
- getApiKey
58
- } from "../chunk-2UMNXADU.js";
59
- import "../chunk-KZERVKTD.js";
59
+ } from "../chunk-MQMPG5X4.js";
60
60
 
61
61
  // bin/pushary-codex-hook.ts
62
62
  import { basename, join } from "path";
@@ -179,7 +179,7 @@ var codexGate = async (apiKey, input) => {
179
179
  const modeState = await fetchModeState(apiKey, input.session_id);
180
180
  const lookup = toPolicyLookup(input.tool_name ?? "", input.tool_input ?? {}, input.cwd);
181
181
  const lookups = toPolicyLookups(input.tool_name ?? "", input.tool_input ?? {}, input.cwd);
182
- const config = await getPolicy(apiKey, modeState.policyVersion, "codex");
182
+ const config = await getPolicy(apiKey, modeState.policyVersion, "codex", false, input.session_id);
183
183
  const verdict = resolveGate({
184
184
  modeState,
185
185
  config,
@@ -189,7 +189,8 @@ var codexGate = async (apiKey, input) => {
189
189
  // session. A multi-file patch contributes one path per file.
190
190
  scopePaths: modeState.scope ? lookups.inputs.map((entry) => scopePathFor(lookups.tool, entry, input.cwd)).filter((path) => typeof path === "string") : [],
191
191
  cwd: input.cwd,
192
- repoKey: repoKeyFor(input.cwd)
192
+ repoKey: repoKeyFor(input.cwd),
193
+ sessionId: input.session_id
193
194
  });
194
195
  return { verdict, lookup };
195
196
  };
@@ -3,19 +3,19 @@ import {
3
3
  askUser,
4
4
  reportEvent,
5
5
  waitForAnswer
6
- } from "../chunk-7PO2VEA4.js";
7
- import "../chunk-BSZYIAZL.js";
8
- import "../chunk-SAF6HGAA.js";
9
- import "../chunk-SAA3VBDK.js";
10
- import "../chunk-7QLSKOSU.js";
11
- import "../chunk-YWRJGYUH.js";
6
+ } from "../chunk-OPMSMF5R.js";
12
7
  import {
13
8
  getMachineId
14
9
  } from "../chunk-RN3NOEJF.js";
10
+ import "../chunk-BSZYIAZL.js";
11
+ import "../chunk-SAF6HGAA.js";
12
+ import "../chunk-437T77TY.js";
13
+ import "../chunk-7QLSKOSU.js";
14
+ import "../chunk-KZERVKTD.js";
15
15
  import {
16
16
  getApiKey
17
17
  } from "../chunk-2UMNXADU.js";
18
- import "../chunk-KZERVKTD.js";
18
+ import "../chunk-MQMPG5X4.js";
19
19
 
20
20
  // bin/pushary-codex.ts
21
21
  import { basename } from "path";
@@ -3,40 +3,41 @@ import {
3
3
  confirmAppConnection,
4
4
  connectDevice,
5
5
  printConnectInstructions
6
- } from "../chunk-U27BZWFT.js";
6
+ } from "../chunk-6LC4WSCL.js";
7
7
  import "../chunk-3EGEA4KH.js";
8
8
  import {
9
9
  printKeyCheck
10
- } from "../chunk-26D2YMDU.js";
10
+ } from "../chunk-FBGBJXVC.js";
11
11
  import {
12
12
  checkApiKey
13
- } from "../chunk-QR6MVVQ7.js";
13
+ } from "../chunk-F52SIIDG.js";
14
14
  import {
15
15
  createIo
16
16
  } from "../chunk-5RUIFDTP.js";
17
17
  import {
18
18
  readKeySource
19
- } from "../chunk-WDRRULBH.js";
20
- import "../chunk-6MTNS63X.js";
19
+ } from "../chunk-K7CSRGKZ.js";
21
20
  import {
22
21
  parseFlags
23
22
  } from "../chunk-GMXKITVA.js";
23
+ import {
24
+ exitOnHelpFlag
25
+ } from "../chunk-J4KFVOCQ.js";
26
+ import "../chunk-MGJBC6DD.js";
24
27
  import "../chunk-BC3VCZ3E.js";
28
+ import "../chunk-DINDL2CF.js";
29
+ import "../chunk-6MTNS63X.js";
25
30
  import "../chunk-BSZYIAZL.js";
26
31
  import "../chunk-SAF6HGAA.js";
27
- import "../chunk-SAA3VBDK.js";
32
+ import "../chunk-437T77TY.js";
28
33
  import {
29
34
  UsageError
30
35
  } from "../chunk-7QLSKOSU.js";
31
- import "../chunk-YWRJGYUH.js";
32
- import {
33
- exitOnHelpFlag
34
- } from "../chunk-RRZZ7TFJ.js";
35
- import "../chunk-ZUKH2NPJ.js";
36
- import "../chunk-2UMNXADU.js";
37
36
  import {
38
37
  EXIT
39
38
  } from "../chunk-KZERVKTD.js";
39
+ import "../chunk-2UMNXADU.js";
40
+ import "../chunk-MQMPG5X4.js";
40
41
 
41
42
  // bin/pushary-connect.ts
42
43
  exitOnHelpFlag("connect");