happy-imou-cloud 2.1.54 → 2.1.56

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 (51) hide show
  1. package/dist/{AcpBackend-BKoNwN5m.mjs → AcpBackend-4InE9FwE.mjs} +49 -3
  2. package/dist/{AcpBackend-BuNk-qy4.cjs → AcpBackend-B3ro_tdV.cjs} +49 -3
  3. package/dist/{BaseReasoningProcessor-DmSegFsE.mjs → BaseReasoningProcessor-Cu129Kvz.mjs} +1 -1
  4. package/dist/{BaseReasoningProcessor-B4Oz-Yxq.cjs → BaseReasoningProcessor-aDwfLWFR.cjs} +1 -1
  5. package/dist/{ConversationHistory-CX0Xn6YY.cjs → ConversationHistory-ChzJu7b_.cjs} +3 -3
  6. package/dist/{ConversationHistory-BkH7fZXi.mjs → ConversationHistory-DghAI90W.mjs} +4 -4
  7. package/dist/{ProviderSelectionHandler-DIKKFrgY.cjs → ProviderSelectionHandler-DzIOnFlp.cjs} +2 -2
  8. package/dist/{ProviderSelectionHandler-C4LEYOuS.mjs → ProviderSelectionHandler-KBda4cGb.mjs} +2 -2
  9. package/dist/{RuntimeShell-BhCsnIuT.cjs → RuntimeShell--T97e4f5.cjs} +2 -2
  10. package/dist/{RuntimeShell-n99ipwsY.mjs → RuntimeShell-DV7j_wJL.mjs} +2 -2
  11. package/dist/{bootstrapManagedProviderSession-CbTJE5fL.cjs → bootstrapManagedProviderSession-BI1uwf00.cjs} +2 -2
  12. package/dist/{bootstrapManagedProviderSession-C_adpQp6.mjs → bootstrapManagedProviderSession-qmnyxNrj.mjs} +2 -2
  13. package/dist/{claude-Dc6KU1EB.mjs → claude-BuBeJMOX.mjs} +3 -3
  14. package/dist/{claude-Cwzjil0b.cjs → claude-s2HCITr6.cjs} +3 -3
  15. package/dist/{codex-DqjqSDDZ.mjs → codex-AnifHbja.mjs} +10 -6
  16. package/dist/{codex-DSM0ym_T.cjs → codex-DPhkIcfb.cjs} +10 -6
  17. package/dist/{command-CvAfG4JD.mjs → command-CYTjKTpW.mjs} +10 -9
  18. package/dist/{command-DvESLNum.cjs → command-NdLWSLXz.cjs} +10 -9
  19. package/dist/{config-GmJj7BqR.mjs → config-B_c2F2bF.mjs} +2 -2
  20. package/dist/{config-qHIk0ts-.cjs → config-NsagnVOI.cjs} +1 -1
  21. package/dist/{createDefaultRuntimeShell-DpGZujqn.mjs → createDefaultRuntimeShell-Bt79Le83.mjs} +6 -6
  22. package/dist/{createDefaultRuntimeShell-DIB2ySwr.cjs → createDefaultRuntimeShell-_a3R9SbY.cjs} +6 -6
  23. package/dist/{cursor-B6y8yztb.cjs → cursor-Csc_nwUR.cjs} +5 -5
  24. package/dist/{cursor-eHC1SBnp.mjs → cursor-ps28W3Y6.mjs} +5 -5
  25. package/dist/{index-C8pG8j68.mjs → index-BkggJHjM.mjs} +13 -12
  26. package/dist/{index-DU2S0N91.cjs → index-D5WM-gNy.cjs} +15 -14
  27. package/dist/index.cjs +3 -2
  28. package/dist/index.mjs +3 -2
  29. package/dist/{installFatalProcessHandlers-Dky3E4WD.cjs → installFatalProcessHandlers-CAogSuf7.cjs} +1 -1
  30. package/dist/{installFatalProcessHandlers-DtICTTB-.mjs → installFatalProcessHandlers-Cklewa02.mjs} +1 -1
  31. package/dist/{launch-BvFUXZ5i.mjs → launch-B0J0joT-.mjs} +10 -9
  32. package/dist/{launch-DZjP5CbM.cjs → launch-C_d8tUSD.cjs} +10 -9
  33. package/dist/lib.cjs +2 -1
  34. package/dist/lib.d.cts +409 -408
  35. package/dist/lib.d.mts +409 -408
  36. package/dist/lib.mjs +2 -1
  37. package/dist/{resolveCommand-fqSS1Vcr.mjs → resolveCommand-CdF591A1.mjs} +4 -3
  38. package/dist/{resolveCommand-Dw_g8jur.cjs → resolveCommand-H8HwprW3.cjs} +4 -2
  39. package/dist/{runClaude-DJqUK48S.cjs → runClaude-C3bk2AkK.cjs} +8 -7
  40. package/dist/{runClaude-Bbr05dka.mjs → runClaude-h5PduXL7.mjs} +8 -7
  41. package/dist/{runCodex-rce8s4u_.mjs → runCodex-BNVkKJhH.mjs} +13 -12
  42. package/dist/{runCodex-BsmWuRE-.cjs → runCodex-bLGp0SYz.cjs} +13 -12
  43. package/dist/{runCursor-DKAGr55S.mjs → runCursor-BcS5NRyz.mjs} +10 -9
  44. package/dist/{runCursor-D8AnG6vO.cjs → runCursor-D4DksmwR.cjs} +10 -9
  45. package/dist/{runGemini-D5tptMKm.mjs → runGemini-DRyHlB7h.mjs} +10 -9
  46. package/dist/{runGemini-vPOCeOUi.cjs → runGemini-DdDwVysh.cjs} +10 -9
  47. package/dist/{sessionControl-CH1ykNpT.cjs → sessionControl-BTPsASVE.cjs} +4 -3
  48. package/dist/{sessionControl-DVCn1vB2.mjs → sessionControl-CQC1ffi5.mjs} +5 -4
  49. package/dist/{types-BaWUTEj9.cjs → types-B6Hka3jh.cjs} +142 -5
  50. package/dist/{types-DDlWccxT.mjs → types-DkfOkkim.mjs} +143 -6
  51. package/package.json +4 -3
@@ -1,9 +1,9 @@
1
1
  import spawn from 'cross-spawn';
2
2
  import { ndJsonStream, ClientSideConnection } from '@agentclientprotocol/sdk';
3
3
  import { randomUUID } from 'node:crypto';
4
- import { l as logger, H as HeadTailPreviewBuffer, p as packageJson, d as delay } from './types-DDlWccxT.mjs';
5
- import { i as isTerminalReferenceOnlyPayload, f as formatDisplayMessage } from './RuntimeShell-n99ipwsY.mjs';
6
- import { D as DefaultTransport, f as resolveAcpSessionPreferences, g as buildAcpSessionConfigPresetPlan, h as resolveAcpPostPromptNoUpdatesTimeoutMs, i as resolveAcpResponseWaitTimeoutMs } from './index-C8pG8j68.mjs';
4
+ import { F as logger, i as HeadTailPreviewBuffer, I as packageJson, v as delay } from './types-DkfOkkim.mjs';
5
+ import { i as isTerminalReferenceOnlyPayload, f as formatDisplayMessage } from './RuntimeShell-DV7j_wJL.mjs';
6
+ import { D as DefaultTransport, q as resolveAcpSessionPreferences, b as buildAcpSessionConfigPresetPlan, n as resolveAcpPostPromptNoUpdatesTimeoutMs, o as resolveAcpResponseWaitTimeoutMs } from './index-BkggJHjM.mjs';
7
7
  import psList from 'ps-list';
8
8
 
9
9
  const DEFAULT_IDLE_TIMEOUT_MS = 500;
@@ -1172,6 +1172,37 @@ async function withRetry(operation, options) {
1172
1172
  }
1173
1173
  throw lastError;
1174
1174
  }
1175
+ function parseVersionParts(version) {
1176
+ const match = version.trim().match(/^(\d+)\.(\d+)\.(\d+)/);
1177
+ if (!match) {
1178
+ return null;
1179
+ }
1180
+ return [Number(match[1]), Number(match[2]), Number(match[3])];
1181
+ }
1182
+ function isVersionAtLeast(actual, expected) {
1183
+ const actualParts = parseVersionParts(actual);
1184
+ const expectedParts = parseVersionParts(expected);
1185
+ if (!actualParts || !expectedParts) {
1186
+ return actual.trim() === expected.trim();
1187
+ }
1188
+ for (let index = 0; index < expectedParts.length; index += 1) {
1189
+ if (actualParts[index] > expectedParts[index]) {
1190
+ return true;
1191
+ }
1192
+ if (actualParts[index] < expectedParts[index]) {
1193
+ return false;
1194
+ }
1195
+ }
1196
+ return true;
1197
+ }
1198
+ function readInitializeAgentInfo(response) {
1199
+ const record = typeof response === "object" && response !== null ? response : {};
1200
+ const info = typeof record.agentInfo === "object" && record.agentInfo !== null ? record.agentInfo : typeof record.serverInfo === "object" && record.serverInfo !== null ? record.serverInfo : {};
1201
+ return {
1202
+ name: typeof info.name === "string" && info.name.trim() ? info.name.trim() : null,
1203
+ version: typeof info.version === "string" && info.version.trim() ? info.version.trim() : null
1204
+ };
1205
+ }
1175
1206
  function formatAcpErrorMessage(error) {
1176
1207
  if (error instanceof Error && error.message && error.message !== "[object Object]") {
1177
1208
  return error.message;
@@ -1469,6 +1500,20 @@ class AcpBackend {
1469
1500
  const capabilities = this.agentCapabilities;
1470
1501
  return capabilities?.sessionCapabilities?.resume != null;
1471
1502
  }
1503
+ assertExpectedAgentVersion(initializeResponse) {
1504
+ const expected = this.options.expectedAgentVersion;
1505
+ if (!expected) {
1506
+ return;
1507
+ }
1508
+ const actual = readInitializeAgentInfo(initializeResponse);
1509
+ if (actual.version && isVersionAtLeast(actual.version, expected.version)) {
1510
+ return;
1511
+ }
1512
+ const actualLabel = actual.version ? `${actual.version}${actual.name ? ` from ${actual.name}` : ""}` : "unknown version";
1513
+ throw new Error(
1514
+ `Codex ACP version mismatch: expected ${expected.packageName} >= ${expected.version}, got ${actualLabel}. Restart the Happy daemon after upgrading, or unset HAPPY_CODEX_ACP_BIN/HAPPY_CODEX_ACP_COMMAND and set HAPPY_CODEX_ACP_NPX_MODE=force so Happy can launch the pinned ACP package.`
1515
+ );
1516
+ }
1472
1517
  syncSessionConfigOptionsFromUpdate(update) {
1473
1518
  const configOptions = update.configOptions;
1474
1519
  if (!Array.isArray(configOptions)) {
@@ -2155,6 +2200,7 @@ Recent stderr: ${recentStderrSummaryLine}` : `Signal: ${signal}`;
2155
2200
  }
2156
2201
  );
2157
2202
  this.agentCapabilities = initializeResponse.agentCapabilities ?? null;
2203
+ this.assertExpectedAgentVersion(initializeResponse);
2158
2204
  logger.debug(`[AcpBackend] Initialize completed`);
2159
2205
  const mcpServers = this.options.mcpServers ? Object.entries(this.options.mcpServers).map(([name, config]) => ({
2160
2206
  name,
@@ -3,9 +3,9 @@
3
3
  var spawn = require('cross-spawn');
4
4
  var sdk = require('@agentclientprotocol/sdk');
5
5
  var node_crypto = require('node:crypto');
6
- var persistence = require('./types-BaWUTEj9.cjs');
7
- var RuntimeShell = require('./RuntimeShell-BhCsnIuT.cjs');
8
- var index = require('./index-DU2S0N91.cjs');
6
+ var persistence = require('./types-B6Hka3jh.cjs');
7
+ var RuntimeShell = require('./RuntimeShell--T97e4f5.cjs');
8
+ var index = require('./index-D5WM-gNy.cjs');
9
9
  var psList = require('ps-list');
10
10
 
11
11
  const DEFAULT_IDLE_TIMEOUT_MS = 500;
@@ -1174,6 +1174,37 @@ async function withRetry(operation, options) {
1174
1174
  }
1175
1175
  throw lastError;
1176
1176
  }
1177
+ function parseVersionParts(version) {
1178
+ const match = version.trim().match(/^(\d+)\.(\d+)\.(\d+)/);
1179
+ if (!match) {
1180
+ return null;
1181
+ }
1182
+ return [Number(match[1]), Number(match[2]), Number(match[3])];
1183
+ }
1184
+ function isVersionAtLeast(actual, expected) {
1185
+ const actualParts = parseVersionParts(actual);
1186
+ const expectedParts = parseVersionParts(expected);
1187
+ if (!actualParts || !expectedParts) {
1188
+ return actual.trim() === expected.trim();
1189
+ }
1190
+ for (let index = 0; index < expectedParts.length; index += 1) {
1191
+ if (actualParts[index] > expectedParts[index]) {
1192
+ return true;
1193
+ }
1194
+ if (actualParts[index] < expectedParts[index]) {
1195
+ return false;
1196
+ }
1197
+ }
1198
+ return true;
1199
+ }
1200
+ function readInitializeAgentInfo(response) {
1201
+ const record = typeof response === "object" && response !== null ? response : {};
1202
+ const info = typeof record.agentInfo === "object" && record.agentInfo !== null ? record.agentInfo : typeof record.serverInfo === "object" && record.serverInfo !== null ? record.serverInfo : {};
1203
+ return {
1204
+ name: typeof info.name === "string" && info.name.trim() ? info.name.trim() : null,
1205
+ version: typeof info.version === "string" && info.version.trim() ? info.version.trim() : null
1206
+ };
1207
+ }
1177
1208
  function formatAcpErrorMessage(error) {
1178
1209
  if (error instanceof Error && error.message && error.message !== "[object Object]") {
1179
1210
  return error.message;
@@ -1471,6 +1502,20 @@ class AcpBackend {
1471
1502
  const capabilities = this.agentCapabilities;
1472
1503
  return capabilities?.sessionCapabilities?.resume != null;
1473
1504
  }
1505
+ assertExpectedAgentVersion(initializeResponse) {
1506
+ const expected = this.options.expectedAgentVersion;
1507
+ if (!expected) {
1508
+ return;
1509
+ }
1510
+ const actual = readInitializeAgentInfo(initializeResponse);
1511
+ if (actual.version && isVersionAtLeast(actual.version, expected.version)) {
1512
+ return;
1513
+ }
1514
+ const actualLabel = actual.version ? `${actual.version}${actual.name ? ` from ${actual.name}` : ""}` : "unknown version";
1515
+ throw new Error(
1516
+ `Codex ACP version mismatch: expected ${expected.packageName} >= ${expected.version}, got ${actualLabel}. Restart the Happy daemon after upgrading, or unset HAPPY_CODEX_ACP_BIN/HAPPY_CODEX_ACP_COMMAND and set HAPPY_CODEX_ACP_NPX_MODE=force so Happy can launch the pinned ACP package.`
1517
+ );
1518
+ }
1474
1519
  syncSessionConfigOptionsFromUpdate(update) {
1475
1520
  const configOptions = update.configOptions;
1476
1521
  if (!Array.isArray(configOptions)) {
@@ -2157,6 +2202,7 @@ Recent stderr: ${recentStderrSummaryLine}` : `Signal: ${signal}`;
2157
2202
  }
2158
2203
  );
2159
2204
  this.agentCapabilities = initializeResponse.agentCapabilities ?? null;
2205
+ this.assertExpectedAgentVersion(initializeResponse);
2160
2206
  persistence.logger.debug(`[AcpBackend] Initialize completed`);
2161
2207
  const mcpServers = this.options.mcpServers ? Object.entries(this.options.mcpServers).map(([name, config]) => ({
2162
2208
  name,
@@ -1,5 +1,5 @@
1
1
  import { randomUUID } from 'node:crypto';
2
- import { l as logger } from './types-DDlWccxT.mjs';
2
+ import { F as logger } from './types-DkfOkkim.mjs';
3
3
 
4
4
  class BaseReasoningProcessor {
5
5
  accumulator = "";
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var node_crypto = require('node:crypto');
4
- var persistence = require('./types-BaWUTEj9.cjs');
4
+ var persistence = require('./types-B6Hka3jh.cjs');
5
5
 
6
6
  class BaseReasoningProcessor {
7
7
  accumulator = "";
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var RuntimeShell = require('./RuntimeShell-BhCsnIuT.cjs');
4
- var sessionControl = require('./sessionControl-CH1ykNpT.cjs');
5
- var persistence = require('./types-BaWUTEj9.cjs');
3
+ var RuntimeShell = require('./RuntimeShell--T97e4f5.cjs');
4
+ var sessionControl = require('./sessionControl-BTPsASVE.cjs');
5
+ var persistence = require('./types-B6Hka3jh.cjs');
6
6
 
7
7
  async function launchRuntimeHandleWithFactoryResult(opts) {
8
8
  const shell = opts.shell ?? new RuntimeShell.RuntimeShell();
@@ -1,6 +1,6 @@
1
- import { R as RuntimeShell, f as formatDisplayMessage, t as truncateDisplayMessage } from './RuntimeShell-n99ipwsY.mjs';
2
- import { j as renderTerminalOutputPreview } from './sessionControl-DVCn1vB2.mjs';
3
- import { l as logger } from './types-DDlWccxT.mjs';
1
+ import { R as RuntimeShell, f as formatDisplayMessage, t as truncateDisplayMessage } from './RuntimeShell-DV7j_wJL.mjs';
2
+ import { j as renderTerminalOutputPreview } from './sessionControl-CQC1ffi5.mjs';
3
+ import { F as logger } from './types-DkfOkkim.mjs';
4
4
 
5
5
  async function launchRuntimeHandleWithFactoryResult(opts) {
6
6
  const shell = opts.shell ?? new RuntimeShell();
@@ -768,4 +768,4 @@ let ConversationHistory$1 = class ConversationHistory {
768
768
  }
769
769
  };
770
770
 
771
- export { ConversationHistory$1 as C, MessageBuffer as M, buildReadyPushNotification as a, buildTurnResultPushNotification as b, buildPermissionPushNotification as c, createSessionTranscriptInkRenderer as d, extractPermissionRequestPushContext as e, launchRuntimeHandleWithFactoryResult as l };
771
+ export { ConversationHistory$1 as C, MessageBuffer as M, buildReadyPushNotification as a, buildPermissionPushNotification as b, buildTurnResultPushNotification as c, createSessionTranscriptInkRenderer as d, extractPermissionRequestPushContext as e, launchRuntimeHandleWithFactoryResult as l };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./types-BaWUTEj9.cjs');
4
- var sessionControl = require('./sessionControl-CH1ykNpT.cjs');
3
+ var persistence = require('./types-B6Hka3jh.cjs');
4
+ var sessionControl = require('./sessionControl-BTPsASVE.cjs');
5
5
 
6
6
  async function runModeLoop(opts) {
7
7
  let currentMode = opts.startingMode;
@@ -1,5 +1,5 @@
1
- import { l as logger } from './types-DDlWccxT.mjs';
2
- import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './sessionControl-DVCn1vB2.mjs';
1
+ import { F as logger } from './types-DkfOkkim.mjs';
2
+ import { h as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, b as INTERACTION_TIMED_OUT_ERROR } from './sessionControl-CQC1ffi5.mjs';
3
3
 
4
4
  async function runModeLoop(opts) {
5
5
  let currentMode = opts.startingMode;
@@ -3,8 +3,8 @@
3
3
  require('cross-spawn');
4
4
  require('@agentclientprotocol/sdk');
5
5
  require('node:crypto');
6
- require('./types-BaWUTEj9.cjs');
7
- require('./index-DU2S0N91.cjs');
6
+ require('./types-B6Hka3jh.cjs');
7
+ require('./index-D5WM-gNy.cjs');
8
8
  require('ps-list');
9
9
  require('fs');
10
10
  require('path');
@@ -1,8 +1,8 @@
1
1
  import 'cross-spawn';
2
2
  import '@agentclientprotocol/sdk';
3
3
  import 'node:crypto';
4
- import './types-DDlWccxT.mjs';
5
- import './index-C8pG8j68.mjs';
4
+ import './types-DkfOkkim.mjs';
5
+ import './index-BkggJHjM.mjs';
6
6
  import 'ps-list';
7
7
  import 'fs';
8
8
  import 'path';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DU2S0N91.cjs');
4
- var persistence = require('./types-BaWUTEj9.cjs');
3
+ var index = require('./index-D5WM-gNy.cjs');
4
+ var persistence = require('./types-B6Hka3jh.cjs');
5
5
  var node_events = require('node:events');
6
6
 
7
7
  function createOfflineSessionStub(sessionTag) {
@@ -1,5 +1,5 @@
1
- import { d as createSessionMetadata, e as publishSessionRegistration } from './index-C8pG8j68.mjs';
2
- import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './types-DDlWccxT.mjs';
1
+ import { e as createSessionMetadata, m as publishSessionRegistration } from './index-BkggJHjM.mjs';
2
+ import { V as startOfflineReconnection, s as configuration, E as isAuthenticationRequiredError, F as logger } from './types-DkfOkkim.mjs';
3
3
  import { EventEmitter } from 'node:events';
4
4
 
5
5
  function createOfflineSessionStub(sessionTag) {
@@ -3,10 +3,10 @@ import { resolve, join } from 'node:path';
3
3
  import { spawn } from 'node:child_process';
4
4
  import { createInterface } from 'node:readline';
5
5
  import { existsSync } from 'node:fs';
6
- import { j as getDefaultClaudeCodePath, k as getCleanEnv, l as logDebug, m as streamToStdin, p as projectPath } from './index-C8pG8j68.mjs';
7
- import { l as logger } from './types-DDlWccxT.mjs';
6
+ import { h as getDefaultClaudeCodePath, g as getCleanEnv, l as logDebug, x as streamToStdin, p as projectPath } from './index-BkggJHjM.mjs';
7
+ import { F as logger } from './types-DkfOkkim.mjs';
8
8
  import { F as Future } from './future-xRdLl3vf.mjs';
9
- import { f as formatDisplayMessage, a as agentRegistry } from './RuntimeShell-n99ipwsY.mjs';
9
+ import { f as formatDisplayMessage, a as agentRegistry } from './RuntimeShell-DV7j_wJL.mjs';
10
10
 
11
11
  class Stream {
12
12
  constructor(returned) {
@@ -5,10 +5,10 @@ var path = require('node:path');
5
5
  var node_child_process = require('node:child_process');
6
6
  var node_readline = require('node:readline');
7
7
  var fs = require('node:fs');
8
- var index = require('./index-DU2S0N91.cjs');
9
- var persistence = require('./types-BaWUTEj9.cjs');
8
+ var index = require('./index-D5WM-gNy.cjs');
9
+ var persistence = require('./types-B6Hka3jh.cjs');
10
10
  var future = require('./future-Dq4Ha1Dn.cjs');
11
- var RuntimeShell = require('./RuntimeShell-BhCsnIuT.cjs');
11
+ var RuntimeShell = require('./RuntimeShell--T97e4f5.cjs');
12
12
 
13
13
  class Stream {
14
14
  constructor(returned) {
@@ -1,8 +1,8 @@
1
- import { A as AcpBackend } from './AcpBackend-BKoNwN5m.mjs';
2
- import { a as agentRegistry } from './RuntimeShell-n99ipwsY.mjs';
3
- import { l as logger } from './types-DDlWccxT.mjs';
4
- import { p as projectPath, C as CodexTransport } from './index-C8pG8j68.mjs';
5
- import { r as resolveCommandOnPath, a as resolveCodexAcpSpawn } from './resolveCommand-fqSS1Vcr.mjs';
1
+ import { A as AcpBackend } from './AcpBackend-4InE9FwE.mjs';
2
+ import { a as agentRegistry } from './RuntimeShell-DV7j_wJL.mjs';
3
+ import { F as logger } from './types-DkfOkkim.mjs';
4
+ import { p as projectPath, C as CodexTransport } from './index-BkggJHjM.mjs';
5
+ import { a as resolveCommandOnPath, r as resolveCodexAcpSpawn, D as DEFAULT_CODEX_ACP_VERSION } from './resolveCommand-CdF591A1.mjs';
6
6
  import fs, { mkdtempSync, mkdirSync, rmSync, readFileSync, existsSync, readdirSync, cpSync, statSync, realpathSync } from 'node:fs';
7
7
  import os, { homedir, tmpdir } from 'node:os';
8
8
  import path, { join, relative, isAbsolute, normalize, dirname, basename } from 'node:path';
@@ -562,7 +562,11 @@ function createCodexBackend(options) {
562
562
  selectionHandler: options.selectionHandler,
563
563
  transportHandler: resolveCodexTransport(spawn.command),
564
564
  resourceCleanup: preparedEnv.cleanup,
565
- resumeSessionId: options.resumeSessionId
565
+ resumeSessionId: options.resumeSessionId,
566
+ expectedAgentVersion: {
567
+ packageName: "@zed-industries/codex-acp",
568
+ version: DEFAULT_CODEX_ACP_VERSION
569
+ }
566
570
  };
567
571
  return {
568
572
  backend: new AcpBackend(backendOptions),
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var AcpBackend = require('./AcpBackend-BuNk-qy4.cjs');
4
- var RuntimeShell = require('./RuntimeShell-BhCsnIuT.cjs');
5
- var persistence = require('./types-BaWUTEj9.cjs');
6
- var index = require('./index-DU2S0N91.cjs');
7
- var resolveCommand = require('./resolveCommand-Dw_g8jur.cjs');
3
+ var AcpBackend = require('./AcpBackend-B3ro_tdV.cjs');
4
+ var RuntimeShell = require('./RuntimeShell--T97e4f5.cjs');
5
+ var persistence = require('./types-B6Hka3jh.cjs');
6
+ var index = require('./index-D5WM-gNy.cjs');
7
+ var resolveCommand = require('./resolveCommand-H8HwprW3.cjs');
8
8
  var fs = require('node:fs');
9
9
  var os = require('node:os');
10
10
  var path = require('node:path');
@@ -564,7 +564,11 @@ function createCodexBackend(options) {
564
564
  selectionHandler: options.selectionHandler,
565
565
  transportHandler: resolveCodexTransport(spawn.command),
566
566
  resourceCleanup: preparedEnv.cleanup,
567
- resumeSessionId: options.resumeSessionId
567
+ resumeSessionId: options.resumeSessionId,
568
+ expectedAgentVersion: {
569
+ packageName: "@zed-industries/codex-acp",
570
+ version: resolveCommand.DEFAULT_CODEX_ACP_VERSION
571
+ }
568
572
  };
569
573
  return {
570
574
  backend: new AcpBackend.AcpBackend(backendOptions),
@@ -1,8 +1,8 @@
1
- import { c as createDefaultRuntimeShell } from './createDefaultRuntimeShell-DpGZujqn.mjs';
1
+ import { c as createDefaultRuntimeShell } from './createDefaultRuntimeShell-Bt79Le83.mjs';
2
2
  import 'cross-spawn';
3
3
  import '@agentclientprotocol/sdk';
4
4
  import 'node:crypto';
5
- import './types-DDlWccxT.mjs';
5
+ import './types-DkfOkkim.mjs';
6
6
  import 'axios';
7
7
  import 'chalk';
8
8
  import 'fs';
@@ -17,9 +17,10 @@ import 'tweetnacl';
17
17
  import 'fs/promises';
18
18
  import 'crypto';
19
19
  import 'path';
20
+ import 'sharp';
20
21
  import 'node:child_process';
21
22
  import 'expo-server-sdk';
22
- import './index-C8pG8j68.mjs';
23
+ import './index-BkggJHjM.mjs';
23
24
  import 'os';
24
25
  import 'qrcode-terminal';
25
26
  import 'node:module';
@@ -35,13 +36,13 @@ import 'node:readline';
35
36
  import 'http';
36
37
  import 'util';
37
38
  import 'node:url';
38
- import './codex-DqjqSDDZ.mjs';
39
- import './AcpBackend-BKoNwN5m.mjs';
40
- import './RuntimeShell-n99ipwsY.mjs';
41
- import './resolveCommand-fqSS1Vcr.mjs';
42
- import './claude-Dc6KU1EB.mjs';
39
+ import './codex-AnifHbja.mjs';
40
+ import './AcpBackend-4InE9FwE.mjs';
41
+ import './RuntimeShell-DV7j_wJL.mjs';
42
+ import './resolveCommand-CdF591A1.mjs';
43
+ import './claude-BuBeJMOX.mjs';
43
44
  import './future-xRdLl3vf.mjs';
44
- import './cursor-eHC1SBnp.mjs';
45
+ import './cursor-ps28W3Y6.mjs';
45
46
 
46
47
  function listRuntimeProviders() {
47
48
  const shell = createDefaultRuntimeShell();
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var createDefaultRuntimeShell = require('./createDefaultRuntimeShell-DIB2ySwr.cjs');
3
+ var createDefaultRuntimeShell = require('./createDefaultRuntimeShell-_a3R9SbY.cjs');
4
4
  require('cross-spawn');
5
5
  require('@agentclientprotocol/sdk');
6
6
  require('node:crypto');
7
- require('./types-BaWUTEj9.cjs');
7
+ require('./types-B6Hka3jh.cjs');
8
8
  require('axios');
9
9
  require('chalk');
10
10
  require('fs');
@@ -19,9 +19,10 @@ require('tweetnacl');
19
19
  require('fs/promises');
20
20
  require('crypto');
21
21
  require('path');
22
+ require('sharp');
22
23
  require('node:child_process');
23
24
  require('expo-server-sdk');
24
- require('./index-DU2S0N91.cjs');
25
+ require('./index-D5WM-gNy.cjs');
25
26
  require('os');
26
27
  require('qrcode-terminal');
27
28
  require('node:module');
@@ -37,13 +38,13 @@ require('node:readline');
37
38
  require('http');
38
39
  require('util');
39
40
  require('node:url');
40
- require('./codex-DSM0ym_T.cjs');
41
- require('./AcpBackend-BuNk-qy4.cjs');
42
- require('./RuntimeShell-BhCsnIuT.cjs');
43
- require('./resolveCommand-Dw_g8jur.cjs');
44
- require('./claude-Cwzjil0b.cjs');
41
+ require('./codex-DPhkIcfb.cjs');
42
+ require('./AcpBackend-B3ro_tdV.cjs');
43
+ require('./RuntimeShell--T97e4f5.cjs');
44
+ require('./resolveCommand-H8HwprW3.cjs');
45
+ require('./claude-s2HCITr6.cjs');
45
46
  require('./future-Dq4Ha1Dn.cjs');
46
- require('./cursor-B6y8yztb.cjs');
47
+ require('./cursor-Csc_nwUR.cjs');
47
48
 
48
49
  function listRuntimeProviders() {
49
50
  const shell = createDefaultRuntimeShell.createDefaultRuntimeShell();
@@ -2,7 +2,7 @@ import { existsSync, readFileSync, mkdirSync, writeFileSync } from 'fs';
2
2
  import { join } from 'path';
3
3
  import { homedir } from 'os';
4
4
  import { execSync } from 'child_process';
5
- import { l as logger } from './types-DDlWccxT.mjs';
5
+ import { F as logger } from './types-DkfOkkim.mjs';
6
6
 
7
7
  const GEMINI_API_KEY_ENV = "GEMINI_API_KEY";
8
8
  const GOOGLE_API_KEY_ENV = "GOOGLE_API_KEY";
@@ -171,4 +171,4 @@ var config = /*#__PURE__*/Object.freeze({
171
171
  saveGoogleCloudProjectToConfig: saveGoogleCloudProjectToConfig
172
172
  });
173
173
 
174
- export { GEMINI_API_KEY_ENV as G, GOOGLE_API_KEY_ENV as a, GEMINI_MODEL_ENV as b, getInitialGeminiModel as c, determineGeminiModel as d, config as e, getGeminiModelSource as g, readGeminiLocalConfig as r, saveGeminiModelToConfig as s };
174
+ export { GEMINI_API_KEY_ENV as G, GEMINI_MODEL_ENV as a, GOOGLE_API_KEY_ENV as b, config as c, determineGeminiModel as d, getInitialGeminiModel as e, getGeminiModelSource as g, readGeminiLocalConfig as r, saveGeminiModelToConfig as s };
@@ -4,7 +4,7 @@ var fs = require('fs');
4
4
  var path = require('path');
5
5
  var os = require('os');
6
6
  var child_process = require('child_process');
7
- var persistence = require('./types-BaWUTEj9.cjs');
7
+ var persistence = require('./types-B6Hka3jh.cjs');
8
8
 
9
9
  const GEMINI_API_KEY_ENV = "GEMINI_API_KEY";
10
10
  const GOOGLE_API_KEY_ENV = "GOOGLE_API_KEY";
@@ -1,17 +1,17 @@
1
1
  import 'cross-spawn';
2
2
  import '@agentclientprotocol/sdk';
3
3
  import 'node:crypto';
4
- import './types-DDlWccxT.mjs';
5
- import './index-C8pG8j68.mjs';
4
+ import './types-DkfOkkim.mjs';
5
+ import './index-BkggJHjM.mjs';
6
6
  import 'ps-list';
7
7
  import 'fs';
8
8
  import 'path';
9
9
  import 'os';
10
10
  import 'child_process';
11
- import { r as registerCodexAgent } from './codex-DqjqSDDZ.mjs';
12
- import { r as registerClaudeAgent } from './claude-Dc6KU1EB.mjs';
13
- import { r as registerCursorAgent } from './cursor-eHC1SBnp.mjs';
14
- import { R as RuntimeShell } from './RuntimeShell-n99ipwsY.mjs';
11
+ import { r as registerCodexAgent } from './codex-AnifHbja.mjs';
12
+ import { r as registerClaudeAgent } from './claude-BuBeJMOX.mjs';
13
+ import { r as registerCursorAgent } from './cursor-ps28W3Y6.mjs';
14
+ import { R as RuntimeShell } from './RuntimeShell-DV7j_wJL.mjs';
15
15
 
16
16
  function initializeAgents() {
17
17
  registerClaudeAgent();
@@ -3,17 +3,17 @@
3
3
  require('cross-spawn');
4
4
  require('@agentclientprotocol/sdk');
5
5
  require('node:crypto');
6
- require('./types-BaWUTEj9.cjs');
7
- require('./index-DU2S0N91.cjs');
6
+ require('./types-B6Hka3jh.cjs');
7
+ require('./index-D5WM-gNy.cjs');
8
8
  require('ps-list');
9
9
  require('fs');
10
10
  require('path');
11
11
  require('os');
12
12
  require('child_process');
13
- var codex = require('./codex-DSM0ym_T.cjs');
14
- var claude = require('./claude-Cwzjil0b.cjs');
15
- var cursor = require('./cursor-B6y8yztb.cjs');
16
- var RuntimeShell = require('./RuntimeShell-BhCsnIuT.cjs');
13
+ var codex = require('./codex-DPhkIcfb.cjs');
14
+ var claude = require('./claude-s2HCITr6.cjs');
15
+ var cursor = require('./cursor-Csc_nwUR.cjs');
16
+ var RuntimeShell = require('./RuntimeShell--T97e4f5.cjs');
17
17
 
18
18
  function initializeAgents() {
19
19
  claude.registerClaudeAgent();
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
- var AcpBackend = require('./AcpBackend-BuNk-qy4.cjs');
4
- var RuntimeShell = require('./RuntimeShell-BhCsnIuT.cjs');
5
- require('./types-BaWUTEj9.cjs');
6
- var index = require('./index-DU2S0N91.cjs');
7
- var resolveCommand = require('./resolveCommand-Dw_g8jur.cjs');
3
+ var AcpBackend = require('./AcpBackend-B3ro_tdV.cjs');
4
+ var RuntimeShell = require('./RuntimeShell--T97e4f5.cjs');
5
+ require('./types-B6Hka3jh.cjs');
6
+ var index = require('./index-D5WM-gNy.cjs');
7
+ var resolveCommand = require('./resolveCommand-H8HwprW3.cjs');
8
8
 
9
9
  const DEFAULT_CURSOR_ACP_ARGS = ["acp"];
10
10
  function readFirstEnv(...names) {
@@ -1,8 +1,8 @@
1
- import { A as AcpBackend } from './AcpBackend-BKoNwN5m.mjs';
2
- import { a as agentRegistry } from './RuntimeShell-n99ipwsY.mjs';
3
- import './types-DDlWccxT.mjs';
4
- import { c as cursorTransport } from './index-C8pG8j68.mjs';
5
- import { r as resolveCommandOnPath } from './resolveCommand-fqSS1Vcr.mjs';
1
+ import { A as AcpBackend } from './AcpBackend-4InE9FwE.mjs';
2
+ import { a as agentRegistry } from './RuntimeShell-DV7j_wJL.mjs';
3
+ import './types-DkfOkkim.mjs';
4
+ import { f as cursorTransport } from './index-BkggJHjM.mjs';
5
+ import { a as resolveCommandOnPath } from './resolveCommand-CdF591A1.mjs';
6
6
 
7
7
  const DEFAULT_CURSOR_ACP_ARGS = ["acp"];
8
8
  function readFirstEnv(...names) {