happy-imou-cloud 2.1.59 → 2.1.61

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 (33) hide show
  1. package/dist/{BaseReasoningProcessor-BSlD8znO.cjs → BaseReasoningProcessor-ClKyULqw.cjs} +1 -1
  2. package/dist/{BaseReasoningProcessor-CCk42d9N.mjs → BaseReasoningProcessor-dDQ0HBLR.mjs} +1 -1
  3. package/dist/{ConversationHistory-DK27K3JQ.mjs → ConversationHistory-BEFQZEC0.mjs} +2 -2
  4. package/dist/{ConversationHistory-DeQgZhJ6.cjs → ConversationHistory-CzD1u1Wq.cjs} +2 -2
  5. package/dist/{ProviderSelectionHandler-BOpj_9DE.mjs → ProviderSelectionHandler-D9nbAKUT.mjs} +1 -1
  6. package/dist/{ProviderSelectionHandler-D8CA-qU2.cjs → ProviderSelectionHandler-zOI_dsgi.cjs} +1 -1
  7. package/dist/{bootstrapManagedProviderSession-CIeuJe8e.cjs → bootstrapManagedProviderSession-CLX0SkFr.cjs} +1 -1
  8. package/dist/{bootstrapManagedProviderSession-CIlq-ugZ.mjs → bootstrapManagedProviderSession-CW2bZO0r.mjs} +1 -1
  9. package/dist/{command-Di3Fzz-y.cjs → command-2gVY5B4R.cjs} +1 -1
  10. package/dist/{command-DwgpAaWb.mjs → command-CfEzcmE7.mjs} +1 -1
  11. package/dist/{index-lyHSYtcT.mjs → index-BlU0IkKg.mjs} +11 -11
  12. package/dist/{index-DxN29QWa.cjs → index-DTXoc9l3.cjs} +12 -12
  13. package/dist/index.cjs +2 -2
  14. package/dist/index.mjs +2 -2
  15. package/dist/{installFatalProcessHandlers-1tGjAPvJ.cjs → installFatalProcessHandlers-DKPQZZmR.cjs} +1 -1
  16. package/dist/{installFatalProcessHandlers-D8bPk4i9.mjs → installFatalProcessHandlers-Di-PXB02.mjs} +1 -1
  17. package/dist/{launch-CtQOCN5k.cjs → launch--N05yJlk.cjs} +1 -1
  18. package/dist/{launch-CZph2kt_.mjs → launch-DBBSPd2F.mjs} +1 -1
  19. package/dist/lib.cjs +1 -1
  20. package/dist/lib.mjs +1 -1
  21. package/dist/{runClaude-Xh_udlwO.mjs → runClaude-CfW2gWVH.mjs} +5 -5
  22. package/dist/{runClaude-CeqPnUbU.cjs → runClaude-D7BEaIox.cjs} +5 -5
  23. package/dist/{runCodex-BSKTTl6d.mjs → runCodex-DVL5Cxkk.mjs} +12 -9
  24. package/dist/{runCodex-Dh9NvwOY.cjs → runCodex-P4VbVAQF.cjs} +12 -9
  25. package/dist/{runCursor-2Q3v6cl1.mjs → runCursor-7va_SgSn.mjs} +5 -5
  26. package/dist/{runCursor-DddNgWaI.cjs → runCursor-CUVz3G9Z.cjs} +5 -5
  27. package/dist/{runGemini-B_4ILaqM.cjs → runGemini-D72Ubvnp.cjs} +6 -6
  28. package/dist/{runGemini-C2xofHuV.mjs → runGemini-DkUZucKy.mjs} +6 -6
  29. package/dist/{sessionControl-Bmadpvu8.mjs → sessionControl-_C1DLVWq.mjs} +2 -2
  30. package/dist/{sessionControl-JLtbfkf2.cjs → sessionControl-f5uyjKLU.cjs} +2 -2
  31. package/dist/{types-CYn-pPZa.cjs → types-B43LoIH9.cjs} +20 -8
  32. package/dist/{types-CotaFNj0.mjs → types-DnqTUpwY.mjs} +17 -5
  33. package/package.json +16 -16
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var node_crypto = require('node:crypto');
4
- var persistence = require('./types-CYn-pPZa.cjs');
4
+ var persistence = require('./types-B43LoIH9.cjs');
5
5
 
6
6
  class BaseReasoningProcessor {
7
7
  accumulator = "";
@@ -1,5 +1,5 @@
1
1
  import { randomUUID } from 'node:crypto';
2
- import { aE as logger } from './types-CotaFNj0.mjs';
2
+ import { aE as logger } from './types-DnqTUpwY.mjs';
3
3
 
4
4
  class BaseReasoningProcessor {
5
5
  accumulator = "";
@@ -1,5 +1,5 @@
1
- import { q as RuntimeShell, ac as formatDisplayMessage, bp as truncateDisplayMessage, aE as logger } from './types-CotaFNj0.mjs';
2
- import { d as renderTerminalOutputPreview } from './sessionControl-Bmadpvu8.mjs';
1
+ import { q as RuntimeShell, ac as formatDisplayMessage, bp as truncateDisplayMessage, aE as logger } from './types-DnqTUpwY.mjs';
2
+ import { d as renderTerminalOutputPreview } from './sessionControl-_C1DLVWq.mjs';
3
3
 
4
4
  async function launchRuntimeHandleWithFactoryResult(opts) {
5
5
  const shell = opts.shell ?? new RuntimeShell();
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./types-CYn-pPZa.cjs');
4
- var sessionControl = require('./sessionControl-JLtbfkf2.cjs');
3
+ var persistence = require('./types-B43LoIH9.cjs');
4
+ var sessionControl = require('./sessionControl-f5uyjKLU.cjs');
5
5
 
6
6
  async function launchRuntimeHandleWithFactoryResult(opts) {
7
7
  const shell = opts.shell ?? new persistence.RuntimeShell();
@@ -1,4 +1,4 @@
1
- import { aE as logger, a3 as delay, ai as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, o as INTERACTION_TIMED_OUT_ERROR } from './types-CotaFNj0.mjs';
1
+ import { aE as logger, a3 as delay, ai as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, o as INTERACTION_TIMED_OUT_ERROR } from './types-DnqTUpwY.mjs';
2
2
  import { stat, watch } from 'fs/promises';
3
3
  import { dirname, basename } from 'node:path';
4
4
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./types-CYn-pPZa.cjs');
3
+ var persistence = require('./types-B43LoIH9.cjs');
4
4
  var fs = require('fs/promises');
5
5
  var path = require('node:path');
6
6
 
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./types-CYn-pPZa.cjs');
3
+ var persistence = require('./types-B43LoIH9.cjs');
4
4
  var node_events = require('node:events');
5
5
 
6
6
  function createOfflineSessionStub(sessionTag) {
@@ -1,4 +1,4 @@
1
- import { bl as startOfflineReconnection, Q as configuration, a0 as createSessionMetadata, aq as isAuthenticationRequiredError, aE as logger, aU as publishSessionRegistration } from './types-CotaFNj0.mjs';
1
+ import { bl as startOfflineReconnection, Q as configuration, a0 as createSessionMetadata, aq as isAuthenticationRequiredError, aE as logger, aU as publishSessionRegistration } from './types-DnqTUpwY.mjs';
2
2
  import { EventEmitter } from 'node:events';
3
3
 
4
4
  function createOfflineSessionStub(sessionTag) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./types-CYn-pPZa.cjs');
3
+ var persistence = require('./types-B43LoIH9.cjs');
4
4
  require('axios');
5
5
  require('chalk');
6
6
  require('fs');
@@ -1,4 +1,4 @@
1
- import { Y as createDefaultRuntimeShell } from './types-CotaFNj0.mjs';
1
+ import { Y as createDefaultRuntimeShell } from './types-DnqTUpwY.mjs';
2
2
  import 'axios';
3
3
  import 'chalk';
4
4
  import 'fs';
@@ -1,5 +1,5 @@
1
1
  import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import chalk from 'chalk';
2
- import { ad as getActionSpec, ap as isActionSpecSurfacedOn, aC as listActionSpecs, $ as createProtocolSchema, aM as objectValue, am as intValue, aN as optionalStringValue, bo as stringValue, a8 as enumValue, aK as normalizeLegacyActionId, ao as isActionId, w as applyVoiceAgentExecutionRunStartDefaults, an as isActionEnabledByActionsSettings, aE as logger, a4 as encodeBase64, Q as configuration, aW as readCredentials, a7 as ensureSigningCredentials, b2 as readSettings, bq as updateSettings, a5 as encodeBase64Url, a3 as delay, y as buildClientHeaders, a2 as decodeBase64, bu as writeCredentialsLegacy, bt as writeCredentialsDataKey, aT as projectPath, aO as packageJson, ae as getDaemonRuntimeStatus, aX as readDaemonState, aa as findAllHappyProcesses, ar as isBun, a0 as createSessionMetadata, aq as isAuthenticationRequiredError, ab as findHappyProcessByPid, g as ConnectedServiceIdSchema, aG as materializeCodexConnectedServiceAuthForRuntime, C as ConnectedServiceCredentialRecordV1Schema, ay as isSessionContinuationRecoveryBlockingPendingDrain, V as createCodexAppServerContinuationRecoveryController, S as SESSION_CONTINUATION_RECOVERY_METADATA_KEY, br as validateCodexAcpSpawn, t as SessionInitialGoalRequestV1Schema, ax as isDaemonRunningCurrentlyInstalledHappyVersion, bm as stopDaemon, u as acquireDaemonLock, z as buildSessionRuntimeIndex, a1 as createSubprocessStderrAppender, H as HAPPY_CLOUD_DAEMON_PORT, b4 as recoverTrackedSessionsFromLocalRegistry, bv as writeDaemonState, c as ApiClient, b7 as removeLocalSessionRegistration, J as cleanupDaemonState, b5 as releaseDaemonLock, bs as validateProfileForAgent, aj as getProfileEnvironmentVariables, K as clearCredentials, L as clearMachineId, a_ as readHappyOrgDispatchTruthSnapshot, aS as processHappyOrgRepoRequests, a$ as readHappyOrgRepoTaskBoard, m as HappyOrgTurnReportSchema, b3 as recordHappyOrgTurnReport, M as MessageContentSchema, E as buildSocketAuth, a6 as encrypt, r as SESSION_RPC_METHODS, R as RPC_METHODS, bn as stopDaemonSession, aD as listDaemonSessions, F as FeaturesResponseSchema, b as ActionsSettingsV1Schema, aB as killRunawayHappyProcesses, ag as getLatestDaemonLog } from './types-CotaFNj0.mjs';
2
+ import { ad as getActionSpec, ap as isActionSpecSurfacedOn, aC as listActionSpecs, $ as createProtocolSchema, aM as objectValue, am as intValue, aN as optionalStringValue, bo as stringValue, a8 as enumValue, aK as normalizeLegacyActionId, ao as isActionId, w as applyVoiceAgentExecutionRunStartDefaults, an as isActionEnabledByActionsSettings, aE as logger, a4 as encodeBase64, Q as configuration, aW as readCredentials, a7 as ensureSigningCredentials, b2 as readSettings, bq as updateSettings, a5 as encodeBase64Url, a3 as delay, y as buildClientHeaders, a2 as decodeBase64, bu as writeCredentialsLegacy, bt as writeCredentialsDataKey, aT as projectPath, aO as packageJson, ae as getDaemonRuntimeStatus, aX as readDaemonState, aa as findAllHappyProcesses, ar as isBun, a0 as createSessionMetadata, aq as isAuthenticationRequiredError, ab as findHappyProcessByPid, g as ConnectedServiceIdSchema, aG as materializeCodexConnectedServiceAuthForRuntime, C as ConnectedServiceCredentialRecordV1Schema, ay as isSessionContinuationRecoveryBlockingPendingDrain, V as createCodexAppServerContinuationRecoveryController, S as SESSION_CONTINUATION_RECOVERY_METADATA_KEY, br as validateCodexAcpSpawn, t as SessionInitialGoalRequestV1Schema, ax as isDaemonRunningCurrentlyInstalledHappyVersion, bm as stopDaemon, u as acquireDaemonLock, z as buildSessionRuntimeIndex, a1 as createSubprocessStderrAppender, H as HAPPY_CLOUD_DAEMON_PORT, b4 as recoverTrackedSessionsFromLocalRegistry, bv as writeDaemonState, c as ApiClient, b7 as removeLocalSessionRegistration, J as cleanupDaemonState, b5 as releaseDaemonLock, bs as validateProfileForAgent, aj as getProfileEnvironmentVariables, K as clearCredentials, L as clearMachineId, a_ as readHappyOrgDispatchTruthSnapshot, aS as processHappyOrgRepoRequests, a$ as readHappyOrgRepoTaskBoard, m as HappyOrgTurnReportSchema, b3 as recordHappyOrgTurnReport, M as MessageContentSchema, E as buildSocketAuth, a6 as encrypt, r as SESSION_RPC_METHODS, R as RPC_METHODS, bn as stopDaemonSession, aD as listDaemonSessions, F as FeaturesResponseSchema, b as ActionsSettingsV1Schema, aB as killRunawayHappyProcesses, ag as getLatestDaemonLog } from './types-DnqTUpwY.mjs';
3
3
  import { z } from 'zod';
4
4
  import fs from 'fs/promises';
5
5
  import os, { homedir as homedir$1 } from 'os';
@@ -12323,14 +12323,14 @@ async function waitForDaemonReady(timeoutMs = DAEMON_STARTUP_TIMEOUT_MS, pollInt
12323
12323
  const unifiedProviderExecutors = {
12324
12324
  claude: async (opts) => {
12325
12325
  const claudeOptions = opts.claudeOptions ?? {};
12326
- const { runClaude } = await import('./runClaude-Xh_udlwO.mjs');
12326
+ const { runClaude } = await import('./runClaude-CfW2gWVH.mjs');
12327
12327
  await runClaude(opts.credentials, {
12328
12328
  ...claudeOptions,
12329
12329
  startingMode: claudeOptions.startingMode ?? (claudeOptions.startedBy === "daemon" ? "remote" : void 0)
12330
12330
  });
12331
12331
  },
12332
12332
  codex: async (opts) => {
12333
- const { runCodex } = await import('./runCodex-BSKTTl6d.mjs');
12333
+ const { runCodex } = await import('./runCodex-DVL5Cxkk.mjs');
12334
12334
  await runCodex({
12335
12335
  credentials: opts.credentials,
12336
12336
  startedBy: opts.startedBy,
@@ -12342,14 +12342,14 @@ const unifiedProviderExecutors = {
12342
12342
  });
12343
12343
  },
12344
12344
  gemini: async (opts) => {
12345
- const { runGemini } = await import('./runGemini-C2xofHuV.mjs');
12345
+ const { runGemini } = await import('./runGemini-DkUZucKy.mjs');
12346
12346
  await runGemini({
12347
12347
  credentials: opts.credentials,
12348
12348
  startedBy: opts.startedBy
12349
12349
  });
12350
12350
  },
12351
12351
  cursor: async (opts) => {
12352
- const { runCursor } = await import('./runCursor-2Q3v6cl1.mjs');
12352
+ const { runCursor } = await import('./runCursor-7va_SgSn.mjs');
12353
12353
  await runCursor({
12354
12354
  credentials: opts.credentials,
12355
12355
  startedBy: opts.startedBy,
@@ -12428,12 +12428,12 @@ function shouldRunMainClaudeFlow(opts) {
12428
12428
  return;
12429
12429
  } else if (subcommand === "runtime") {
12430
12430
  if (args[1] === "providers") {
12431
- const { renderRuntimeProviders } = await import('./command-DwgpAaWb.mjs');
12431
+ const { renderRuntimeProviders } = await import('./command-CfEzcmE7.mjs');
12432
12432
  console.log(renderRuntimeProviders());
12433
12433
  return;
12434
12434
  }
12435
12435
  if (args[1] === "launch" && args[2]) {
12436
- const { isRuntimeProvider, launchRuntimeProvider } = await import('./launch-CZph2kt_.mjs');
12436
+ const { isRuntimeProvider, launchRuntimeProvider } = await import('./launch-DBBSPd2F.mjs');
12437
12437
  const provider = args[2];
12438
12438
  if (!isRuntimeProvider(provider)) {
12439
12439
  console.error(`Unknown runtime provider: ${provider}`);
@@ -12662,9 +12662,9 @@ function shouldRunMainClaudeFlow(opts) {
12662
12662
  if (geminiSubcommand === "project" && args[2] === "set" && args[3]) {
12663
12663
  const projectId = args[3];
12664
12664
  try {
12665
- const { saveGoogleCloudProjectToConfig } = await import('./types-CotaFNj0.mjs').then(function (n) { return n.O; });
12666
- const { readCredentials: readCredentials2 } = await import('./types-CotaFNj0.mjs').then(function (n) { return n.aQ; });
12667
- const { ApiClient: ApiClient2 } = await import('./types-CotaFNj0.mjs').then(function (n) { return n.v; });
12665
+ const { saveGoogleCloudProjectToConfig } = await import('./types-DnqTUpwY.mjs').then(function (n) { return n.O; });
12666
+ const { readCredentials: readCredentials2 } = await import('./types-DnqTUpwY.mjs').then(function (n) { return n.aQ; });
12667
+ const { ApiClient: ApiClient2 } = await import('./types-DnqTUpwY.mjs').then(function (n) { return n.v; });
12668
12668
  let userEmail = void 0;
12669
12669
  try {
12670
12670
  const credentials = await readCredentials2();
@@ -12695,7 +12695,7 @@ function shouldRunMainClaudeFlow(opts) {
12695
12695
  }
12696
12696
  if (geminiSubcommand === "project" && args[2] === "get") {
12697
12697
  try {
12698
- const { readGeminiLocalConfig } = await import('./types-CotaFNj0.mjs').then(function (n) { return n.O; });
12698
+ const { readGeminiLocalConfig } = await import('./types-DnqTUpwY.mjs').then(function (n) { return n.O; });
12699
12699
  const config = readGeminiLocalConfig();
12700
12700
  if (config.googleCloudProject) {
12701
12701
  console.log(`Current Google Cloud Project: ${config.googleCloudProject}`);
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chalk = require('chalk');
4
- var persistence = require('./types-CYn-pPZa.cjs');
4
+ var persistence = require('./types-B43LoIH9.cjs');
5
5
  var z = require('zod');
6
6
  var fs$1 = require('fs/promises');
7
7
  var os$1 = require('os');
@@ -2020,7 +2020,7 @@ async function openBrowser(url) {
2020
2020
  }
2021
2021
  }
2022
2022
 
2023
- const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-DxN29QWa.cjs', document.baseURI).href)));
2023
+ const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-DTXoc9l3.cjs', document.baseURI).href)));
2024
2024
  const QRCode = require$1("qrcode-terminal/vendor/QRCode");
2025
2025
  const QRErrorCorrectLevel = require$1("qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel");
2026
2026
  const pendingTempFiles = /* @__PURE__ */ new Set();
@@ -12326,14 +12326,14 @@ async function waitForDaemonReady(timeoutMs = DAEMON_STARTUP_TIMEOUT_MS, pollInt
12326
12326
  const unifiedProviderExecutors = {
12327
12327
  claude: async (opts) => {
12328
12328
  const claudeOptions = opts.claudeOptions ?? {};
12329
- const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-CeqPnUbU.cjs'); });
12329
+ const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-D7BEaIox.cjs'); });
12330
12330
  await runClaude(opts.credentials, {
12331
12331
  ...claudeOptions,
12332
12332
  startingMode: claudeOptions.startingMode ?? (claudeOptions.startedBy === "daemon" ? "remote" : void 0)
12333
12333
  });
12334
12334
  },
12335
12335
  codex: async (opts) => {
12336
- const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-Dh9NvwOY.cjs'); });
12336
+ const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-P4VbVAQF.cjs'); });
12337
12337
  await runCodex({
12338
12338
  credentials: opts.credentials,
12339
12339
  startedBy: opts.startedBy,
@@ -12345,14 +12345,14 @@ const unifiedProviderExecutors = {
12345
12345
  });
12346
12346
  },
12347
12347
  gemini: async (opts) => {
12348
- const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-B_4ILaqM.cjs'); });
12348
+ const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-D72Ubvnp.cjs'); });
12349
12349
  await runGemini({
12350
12350
  credentials: opts.credentials,
12351
12351
  startedBy: opts.startedBy
12352
12352
  });
12353
12353
  },
12354
12354
  cursor: async (opts) => {
12355
- const { runCursor } = await Promise.resolve().then(function () { return require('./runCursor-DddNgWaI.cjs'); });
12355
+ const { runCursor } = await Promise.resolve().then(function () { return require('./runCursor-CUVz3G9Z.cjs'); });
12356
12356
  await runCursor({
12357
12357
  credentials: opts.credentials,
12358
12358
  startedBy: opts.startedBy,
@@ -12431,12 +12431,12 @@ function shouldRunMainClaudeFlow(opts) {
12431
12431
  return;
12432
12432
  } else if (subcommand === "runtime") {
12433
12433
  if (args[1] === "providers") {
12434
- const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-Di3Fzz-y.cjs'); });
12434
+ const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-2gVY5B4R.cjs'); });
12435
12435
  console.log(renderRuntimeProviders());
12436
12436
  return;
12437
12437
  }
12438
12438
  if (args[1] === "launch" && args[2]) {
12439
- const { isRuntimeProvider, launchRuntimeProvider } = await Promise.resolve().then(function () { return require('./launch-CtQOCN5k.cjs'); });
12439
+ const { isRuntimeProvider, launchRuntimeProvider } = await Promise.resolve().then(function () { return require('./launch--N05yJlk.cjs'); });
12440
12440
  const provider = args[2];
12441
12441
  if (!isRuntimeProvider(provider)) {
12442
12442
  console.error(`Unknown runtime provider: ${provider}`);
@@ -12665,9 +12665,9 @@ function shouldRunMainClaudeFlow(opts) {
12665
12665
  if (geminiSubcommand === "project" && args[2] === "set" && args[3]) {
12666
12666
  const projectId = args[3];
12667
12667
  try {
12668
- const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./types-CYn-pPZa.cjs'); }).then(function (n) { return n.config; });
12669
- const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./types-CYn-pPZa.cjs'); }).then(function (n) { return n.persistence; });
12670
- const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./types-CYn-pPZa.cjs'); }).then(function (n) { return n.api; });
12668
+ const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return require('./types-B43LoIH9.cjs'); }).then(function (n) { return n.config; });
12669
+ const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./types-B43LoIH9.cjs'); }).then(function (n) { return n.persistence; });
12670
+ const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./types-B43LoIH9.cjs'); }).then(function (n) { return n.api; });
12671
12671
  let userEmail = void 0;
12672
12672
  try {
12673
12673
  const credentials = await readCredentials2();
@@ -12698,7 +12698,7 @@ function shouldRunMainClaudeFlow(opts) {
12698
12698
  }
12699
12699
  if (geminiSubcommand === "project" && args[2] === "get") {
12700
12700
  try {
12701
- const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./types-CYn-pPZa.cjs'); }).then(function (n) { return n.config; });
12701
+ const { readGeminiLocalConfig } = await Promise.resolve().then(function () { return require('./types-B43LoIH9.cjs'); }).then(function (n) { return n.config; });
12702
12702
  const config = readGeminiLocalConfig();
12703
12703
  if (config.googleCloudProject) {
12704
12704
  console.log(`Current Google Cloud Project: ${config.googleCloudProject}`);
package/dist/index.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  require('chalk');
4
- require('./types-CYn-pPZa.cjs');
4
+ require('./types-B43LoIH9.cjs');
5
5
  require('zod');
6
- require('./index-DxN29QWa.cjs');
6
+ require('./index-DTXoc9l3.cjs');
7
7
  require('node:child_process');
8
8
  require('node:fs');
9
9
  require('cross-spawn');
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import 'chalk';
2
- import './types-CotaFNj0.mjs';
2
+ import './types-DnqTUpwY.mjs';
3
3
  import 'zod';
4
- import './index-lyHSYtcT.mjs';
4
+ import './index-BlU0IkKg.mjs';
5
5
  import 'node:child_process';
6
6
  import 'node:fs';
7
7
  import 'cross-spawn';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./types-CYn-pPZa.cjs');
3
+ var persistence = require('./types-B43LoIH9.cjs');
4
4
 
5
5
  function normalizeFatalProcessError(error) {
6
6
  if (error instanceof Error) {
@@ -1,4 +1,4 @@
1
- import { aE as logger } from './types-CotaFNj0.mjs';
1
+ import { aE as logger } from './types-DnqTUpwY.mjs';
2
2
 
3
3
  function normalizeFatalProcessError(error) {
4
4
  if (error instanceof Error) {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./types-CYn-pPZa.cjs');
3
+ var persistence = require('./types-B43LoIH9.cjs');
4
4
  require('axios');
5
5
  require('chalk');
6
6
  require('fs');
@@ -1,4 +1,4 @@
1
- import { Y as createDefaultRuntimeShell } from './types-CotaFNj0.mjs';
1
+ import { Y as createDefaultRuntimeShell } from './types-DnqTUpwY.mjs';
2
2
  import 'axios';
3
3
  import 'chalk';
4
4
  import 'fs';
package/dist/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./types-CYn-pPZa.cjs');
3
+ var persistence = require('./types-B43LoIH9.cjs');
4
4
  require('axios');
5
5
  require('chalk');
6
6
  require('fs');
package/dist/lib.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as ApiClient, d as ApiSessionClient, p as RawJSONLinesSchema, Q as configuration, aE as logger } from './types-CotaFNj0.mjs';
1
+ export { c as ApiClient, d as ApiSessionClient, p as RawJSONLinesSchema, Q as configuration, aE as logger } from './types-DnqTUpwY.mjs';
2
2
  import 'axios';
3
3
  import 'chalk';
4
4
  import 'fs';
@@ -1,5 +1,5 @@
1
1
  import { randomUUID } from 'node:crypto';
2
- import { aE as logger, x as backoff, p as RawJSONLinesSchema, h as Future, B as BasePermissionHandler, aP as parseSpecialCommand, U as createClaudeBackend, ac as formatDisplayMessage, bp as truncateDisplayMessage, a3 as delay, aT as projectPath, aF as mapToClaudeMode, P as PushableAsyncIterable, aV as query, A as AbortError, f as AsyncLock, Q as configuration, bl as startOfflineReconnection, aU as publishSessionRegistration, T as connectionState, c as ApiClient, a0 as createSessionMetadata, aq as isAuthenticationRequiredError, ak as hashObject } from './types-CotaFNj0.mjs';
2
+ import { aE as logger, x as backoff, p as RawJSONLinesSchema, h as Future, B as BasePermissionHandler, aP as parseSpecialCommand, U as createClaudeBackend, ac as formatDisplayMessage, bp as truncateDisplayMessage, a3 as delay, aT as projectPath, aF as mapToClaudeMode, P as PushableAsyncIterable, aV as query, A as AbortError, f as AsyncLock, Q as configuration, bl as startOfflineReconnection, aU as publishSessionRegistration, T as connectionState, c as ApiClient, a0 as createSessionMetadata, aq as isAuthenticationRequiredError, ak as hashObject } from './types-DnqTUpwY.mjs';
3
3
  import 'cross-spawn';
4
4
  import '@agentclientprotocol/sdk';
5
5
  import { existsSync, readFileSync, mkdirSync, writeFileSync, unlinkSync } from 'node:fs';
@@ -19,14 +19,14 @@ import { access } from 'fs/promises';
19
19
  import 'crypto';
20
20
  import { execSync } from 'node:child_process';
21
21
  import 'node:readline';
22
- import { f as getProjectPath, d as claudeLocal, E as ExitCodeError, t as trimIdent, b as claudeCheckSession, l as stopCaffeinate, g as getEnvironmentInfo, s as startCaffeinate, e as closeProviderSession } from './index-lyHSYtcT.mjs';
22
+ import { f as getProjectPath, d as claudeLocal, E as ExitCodeError, t as trimIdent, b as claudeCheckSession, l as stopCaffeinate, g as getEnvironmentInfo, s as startCaffeinate, e as closeProviderSession } from './index-BlU0IkKg.mjs';
23
23
  import 'chalk';
24
24
  import 'node:events';
25
25
  import 'axios';
26
26
  import 'open';
27
27
  import React, { useState, useRef, useEffect, useCallback } from 'react';
28
28
  import { useStdout, useInput, Box, Text, render } from 'ink';
29
- import { c as createKeepAliveController, s as startFileWatcher, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-BOpj_9DE.mjs';
29
+ import { c as createKeepAliveController, s as startFileWatcher, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-D9nbAKUT.mjs';
30
30
  import 'socket.io-client';
31
31
  import 'sharp';
32
32
  import 'node:stream';
@@ -34,8 +34,8 @@ import 'node:stream/promises';
34
34
  import 'node:url';
35
35
  import 'node:module';
36
36
  import 'expo-server-sdk';
37
- import { M as MessageBuffer, C as ConversationHistory$1, c as buildTurnResultPushNotification, d as createSessionTranscriptInkRenderer, a as buildReadyPushNotification, l as launchRuntimeHandleWithFactoryResult, b as buildPermissionPushNotification } from './ConversationHistory-DK27K3JQ.mjs';
38
- import { B as BufferedAssistantStreamEmitter, b as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, f as finalizeHappyOrgTurnWithBusinessAck, d as renderTerminalOutputPreview, p as prepareTerminalOutputForForwarding, c as forwardAgentMessageToProviderSession, s as syncControlledByUserState, g as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, a as MissingMachineIdError, M as MessageQueue2, r as registerKillSessionHandler } from './sessionControl-Bmadpvu8.mjs';
37
+ import { M as MessageBuffer, C as ConversationHistory$1, c as buildTurnResultPushNotification, d as createSessionTranscriptInkRenderer, a as buildReadyPushNotification, l as launchRuntimeHandleWithFactoryResult, b as buildPermissionPushNotification } from './ConversationHistory-BEFQZEC0.mjs';
38
+ import { B as BufferedAssistantStreamEmitter, b as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, f as finalizeHappyOrgTurnWithBusinessAck, d as renderTerminalOutputPreview, p as prepareTerminalOutputForForwarding, c as forwardAgentMessageToProviderSession, s as syncControlledByUserState, g as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, a as MissingMachineIdError, M as MessageQueue2, r as registerKillSessionHandler } from './sessionControl-_C1DLVWq.mjs';
39
39
  import { isDeepStrictEqual } from 'node:util';
40
40
  import { createServer } from 'node:http';
41
41
  import 'zod';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var node_crypto = require('node:crypto');
4
- var persistence = require('./types-CYn-pPZa.cjs');
4
+ var persistence = require('./types-B43LoIH9.cjs');
5
5
  require('cross-spawn');
6
6
  require('@agentclientprotocol/sdk');
7
7
  var fs = require('node:fs');
@@ -21,14 +21,14 @@ var fs$1 = require('fs/promises');
21
21
  require('crypto');
22
22
  var node_child_process = require('node:child_process');
23
23
  require('node:readline');
24
- var index = require('./index-DxN29QWa.cjs');
24
+ var index = require('./index-DTXoc9l3.cjs');
25
25
  require('chalk');
26
26
  require('node:events');
27
27
  require('axios');
28
28
  require('open');
29
29
  var React = require('react');
30
30
  var ink = require('ink');
31
- var ProviderSelectionHandler = require('./ProviderSelectionHandler-D8CA-qU2.cjs');
31
+ var ProviderSelectionHandler = require('./ProviderSelectionHandler-zOI_dsgi.cjs');
32
32
  require('socket.io-client');
33
33
  require('sharp');
34
34
  require('node:stream');
@@ -36,8 +36,8 @@ require('node:stream/promises');
36
36
  require('node:url');
37
37
  require('node:module');
38
38
  require('expo-server-sdk');
39
- var ConversationHistory = require('./ConversationHistory-DeQgZhJ6.cjs');
40
- var sessionControl = require('./sessionControl-JLtbfkf2.cjs');
39
+ var ConversationHistory = require('./ConversationHistory-CzD1u1Wq.cjs');
40
+ var sessionControl = require('./sessionControl-f5uyjKLU.cjs');
41
41
  var node_util = require('node:util');
42
42
  var node_http = require('node:http');
43
43
  require('zod');
@@ -1,6 +1,6 @@
1
- import { aR as preserveSessionRuntimeMetadata, aE as logger, ac as formatDisplayMessage, ah as getNotificationsSettingsV1FromAccountSettings, D as DEFAULT_NOTIFICATIONS_SETTINGS_V1, bj as serializeAxiosErrorForLog, Q as configuration, b8 as resolveAgentRequestKind, aT as projectPath, aJ as mergeCodexGoalIntoSessionWorkStateMetadata, b6 as removeCodexGoalFromSessionWorkStateMetadata, aY as readDisplayableSessionWorkStateV1, B as BasePermissionHandler, ak as hashObject, bf as resolveManagedSessionMcpSelectionV1, al as indexSavedSecretsByIdFromAccountSettings, bg as resolveMcpValueRefPlaintext, bb as resolveCodexConnectedServiceCredential, r as SESSION_RPC_METHODS, aw as isCodexAppServerSessionOptionControls, N as codexAppServerUsageLimitRecoveryControlAdapter, s as SESSION_USAGE_LIMIT_RECOVERY_METADATA_KEY, ba as resolveCodexBackendMode, br as validateCodexAcpSpawn, bc as resolveCodexConnectedServiceCredentialFetchCandidates, aG as materializeCodexConnectedServiceAuthForRuntime, b0 as readMcpServersSettingsFromAccountSettings, b1 as readSessionMcpSelectionV1FromMetadata, W as createCodexBackend, a as AcpBackend, as as isCodexAppServerBackendControls, b9 as resolveCodexAppServerNativeReviewRequest, a9 as exportCodexSessionBundle, aI as mergeCodexAppServerSessionControlsMetadata, aH as mergeCodexAppServerRuntimeModelContextWindowMetadata, bp as truncateDisplayMessage, av as isCodexAppServerNativeControls, at as isCodexAppServerCatalogControls, au as isCodexAppServerConnectedServiceAuthControls, bd as resolveCodexExecutable, bh as resolveWindowsCommandInvocation, bk as shouldUseShellForCodex, aA as killProcessTree, be as resolveCodexMcpPolicyForPermissionMode, _ as createKeyedStreamedTranscriptBridge, h as Future, T as connectionState, c as ApiClient } from './types-CotaFNj0.mjs';
2
- import { B as BufferedAssistantStreamEmitter, b as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, f as finalizeHappyOrgTurnWithBusinessAck, r as registerKillSessionHandler, d as renderTerminalOutputPreview, p as prepareTerminalOutputForForwarding, i as inferToolResultError, c as forwardAgentMessageToProviderSession, e as ensureManagedProviderMachine, a as MissingMachineIdError, M as MessageQueue2, s as syncControlledByUserState, g as resolveHappyOrgQueuedTurn } from './sessionControl-Bmadpvu8.mjs';
3
- import { e as closeProviderSession, l as stopCaffeinate, c as classifyChildExit, a as classifySpawnError, h as readManagedSessionTag, r as readDaemonInitialGoalFromEnv, k as resolveManagedSessionTag } from './index-lyHSYtcT.mjs';
1
+ import { aR as preserveSessionRuntimeMetadata, aE as logger, ac as formatDisplayMessage, ah as getNotificationsSettingsV1FromAccountSettings, D as DEFAULT_NOTIFICATIONS_SETTINGS_V1, bj as serializeAxiosErrorForLog, Q as configuration, b8 as resolveAgentRequestKind, aT as projectPath, aJ as mergeCodexGoalIntoSessionWorkStateMetadata, b6 as removeCodexGoalFromSessionWorkStateMetadata, aY as readDisplayableSessionWorkStateV1, B as BasePermissionHandler, ak as hashObject, bf as resolveManagedSessionMcpSelectionV1, al as indexSavedSecretsByIdFromAccountSettings, bg as resolveMcpValueRefPlaintext, bb as resolveCodexConnectedServiceCredential, r as SESSION_RPC_METHODS, aw as isCodexAppServerSessionOptionControls, N as codexAppServerUsageLimitRecoveryControlAdapter, s as SESSION_USAGE_LIMIT_RECOVERY_METADATA_KEY, ba as resolveCodexBackendMode, br as validateCodexAcpSpawn, bc as resolveCodexConnectedServiceCredentialFetchCandidates, aG as materializeCodexConnectedServiceAuthForRuntime, b0 as readMcpServersSettingsFromAccountSettings, b1 as readSessionMcpSelectionV1FromMetadata, W as createCodexBackend, a as AcpBackend, as as isCodexAppServerBackendControls, b9 as resolveCodexAppServerNativeReviewRequest, a9 as exportCodexSessionBundle, aI as mergeCodexAppServerSessionControlsMetadata, aH as mergeCodexAppServerRuntimeModelContextWindowMetadata, bp as truncateDisplayMessage, av as isCodexAppServerNativeControls, at as isCodexAppServerCatalogControls, au as isCodexAppServerConnectedServiceAuthControls, bd as resolveCodexExecutable, bh as resolveWindowsCommandInvocation, bk as shouldUseShellForCodex, aA as killProcessTree, be as resolveCodexMcpPolicyForPermissionMode, _ as createKeyedStreamedTranscriptBridge, h as Future, T as connectionState, c as ApiClient } from './types-DnqTUpwY.mjs';
2
+ import { B as BufferedAssistantStreamEmitter, b as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, f as finalizeHappyOrgTurnWithBusinessAck, r as registerKillSessionHandler, d as renderTerminalOutputPreview, p as prepareTerminalOutputForForwarding, i as inferToolResultError, c as forwardAgentMessageToProviderSession, e as ensureManagedProviderMachine, a as MissingMachineIdError, M as MessageQueue2, s as syncControlledByUserState, g as resolveHappyOrgQueuedTurn } from './sessionControl-_C1DLVWq.mjs';
3
+ import { e as closeProviderSession, l as stopCaffeinate, c as classifyChildExit, a as classifySpawnError, h as readManagedSessionTag, r as readDaemonInitialGoalFromEnv, k as resolveManagedSessionTag } from './index-BlU0IkKg.mjs';
4
4
  import 'cross-spawn';
5
5
  import '@agentclientprotocol/sdk';
6
6
  import { randomUUID, createHash } from 'node:crypto';
@@ -27,7 +27,7 @@ import axios from 'axios';
27
27
  import 'open';
28
28
  import React, { useState, useRef, useEffect, useCallback } from 'react';
29
29
  import { useStdout, useInput, Box, Text, render } from 'ink';
30
- import { c as createKeepAliveController, P as ProviderSelectionHandler, s as startFileWatcher, r as runModeLoop } from './ProviderSelectionHandler-BOpj_9DE.mjs';
30
+ import { c as createKeepAliveController, P as ProviderSelectionHandler, s as startFileWatcher, r as runModeLoop } from './ProviderSelectionHandler-D9nbAKUT.mjs';
31
31
  import 'socket.io-client';
32
32
  import 'sharp';
33
33
  import 'node:stream';
@@ -35,11 +35,11 @@ import 'node:stream/promises';
35
35
  import 'node:url';
36
36
  import 'node:module';
37
37
  import 'expo-server-sdk';
38
- import { a as buildReadyPushNotification, M as MessageBuffer, C as ConversationHistory$1, c as buildTurnResultPushNotification, l as launchRuntimeHandleWithFactoryResult, d as createSessionTranscriptInkRenderer, e as extractPermissionRequestPushContext } from './ConversationHistory-DK27K3JQ.mjs';
39
- import { B as BaseReasoningProcessor } from './BaseReasoningProcessor-CCk42d9N.mjs';
38
+ import { a as buildReadyPushNotification, M as MessageBuffer, C as ConversationHistory$1, c as buildTurnResultPushNotification, l as launchRuntimeHandleWithFactoryResult, d as createSessionTranscriptInkRenderer, e as extractPermissionRequestPushContext } from './ConversationHistory-BEFQZEC0.mjs';
39
+ import { B as BaseReasoningProcessor } from './BaseReasoningProcessor-dDQ0HBLR.mjs';
40
40
  import { StringDecoder } from 'node:string_decoder';
41
- import { b as bootstrapManagedProviderSession } from './bootstrapManagedProviderSession-CIlq-ugZ.mjs';
42
- import { i as installFatalProcessHandlers } from './installFatalProcessHandlers-D8bPk4i9.mjs';
41
+ import { b as bootstrapManagedProviderSession } from './bootstrapManagedProviderSession-CW2bZO0r.mjs';
42
+ import { i as installFatalProcessHandlers } from './installFatalProcessHandlers-Di-PXB02.mjs';
43
43
  import 'zod';
44
44
  import 'util';
45
45
  import 'url';
@@ -1616,6 +1616,9 @@ function normalizeCodexArgsForHappy(options) {
1616
1616
  let resumeSessionId = normalizeResumeSessionId(options.resumeSessionId);
1617
1617
  for (let index = 0; index < sourceArgs.length; index += 1) {
1618
1618
  const arg = sourceArgs[index];
1619
+ if (arg === "--dangerously-bypass-approvals-and-sandbox" || arg === "--yolo") {
1620
+ continue;
1621
+ }
1619
1622
  if (arg === "--resume") {
1620
1623
  const nextArg = sourceArgs[index + 1];
1621
1624
  const normalizedNextArg = normalizeResumeSessionId(nextArg);
@@ -8740,7 +8743,7 @@ async function runCodex(opts) {
8740
8743
  permissionMode: opts.permissionMode,
8741
8744
  startedBy: opts.startedBy,
8742
8745
  startingMode: resolvedStartingMode,
8743
- codexArgs: normalizedArgs.codexArgs
8746
+ codexArgs: opts.codexArgs
8744
8747
  });
8745
8748
  const preserveCurrentPermissionModeForRemoteDefault = opts.startedBy === "daemon" && resolvedStartingMode === "remote";
8746
8749
  const api = await ApiClient.create(opts.credentials);
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./types-CYn-pPZa.cjs');
4
- var sessionControl = require('./sessionControl-JLtbfkf2.cjs');
5
- var index = require('./index-DxN29QWa.cjs');
3
+ var persistence = require('./types-B43LoIH9.cjs');
4
+ var sessionControl = require('./sessionControl-f5uyjKLU.cjs');
5
+ var index = require('./index-DTXoc9l3.cjs');
6
6
  require('cross-spawn');
7
7
  require('@agentclientprotocol/sdk');
8
8
  var node_crypto = require('node:crypto');
@@ -29,7 +29,7 @@ var axios = require('axios');
29
29
  require('open');
30
30
  var React = require('react');
31
31
  var ink = require('ink');
32
- var ProviderSelectionHandler = require('./ProviderSelectionHandler-D8CA-qU2.cjs');
32
+ var ProviderSelectionHandler = require('./ProviderSelectionHandler-zOI_dsgi.cjs');
33
33
  require('socket.io-client');
34
34
  require('sharp');
35
35
  require('node:stream');
@@ -37,11 +37,11 @@ require('node:stream/promises');
37
37
  require('node:url');
38
38
  require('node:module');
39
39
  require('expo-server-sdk');
40
- var ConversationHistory = require('./ConversationHistory-DeQgZhJ6.cjs');
41
- var BaseReasoningProcessor = require('./BaseReasoningProcessor-BSlD8znO.cjs');
40
+ var ConversationHistory = require('./ConversationHistory-CzD1u1Wq.cjs');
41
+ var BaseReasoningProcessor = require('./BaseReasoningProcessor-ClKyULqw.cjs');
42
42
  var node_string_decoder = require('node:string_decoder');
43
- var bootstrapManagedProviderSession = require('./bootstrapManagedProviderSession-CIeuJe8e.cjs');
44
- var installFatalProcessHandlers = require('./installFatalProcessHandlers-1tGjAPvJ.cjs');
43
+ var bootstrapManagedProviderSession = require('./bootstrapManagedProviderSession-CLX0SkFr.cjs');
44
+ var installFatalProcessHandlers = require('./installFatalProcessHandlers-DKPQZZmR.cjs');
45
45
  require('zod');
46
46
  require('util');
47
47
  require('url');
@@ -1618,6 +1618,9 @@ function normalizeCodexArgsForHappy(options) {
1618
1618
  let resumeSessionId = normalizeResumeSessionId(options.resumeSessionId);
1619
1619
  for (let index = 0; index < sourceArgs.length; index += 1) {
1620
1620
  const arg = sourceArgs[index];
1621
+ if (arg === "--dangerously-bypass-approvals-and-sandbox" || arg === "--yolo") {
1622
+ continue;
1623
+ }
1621
1624
  if (arg === "--resume") {
1622
1625
  const nextArg = sourceArgs[index + 1];
1623
1626
  const normalizedNextArg = normalizeResumeSessionId(nextArg);
@@ -8742,7 +8745,7 @@ async function runCodex(opts) {
8742
8745
  permissionMode: opts.permissionMode,
8743
8746
  startedBy: opts.startedBy,
8744
8747
  startingMode: resolvedStartingMode,
8745
- codexArgs: normalizedArgs.codexArgs
8748
+ codexArgs: opts.codexArgs
8746
8749
  });
8747
8750
  const preserveCurrentPermissionModeForRemoteDefault = opts.startedBy === "daemon" && resolvedStartingMode === "remote";
8748
8751
  const api = await persistence.ApiClient.create(opts.credentials);
@@ -1,9 +1,9 @@
1
- import { B as BasePermissionHandler, aE as logger, b8 as resolveAgentRequestKind, T as connectionState, c as ApiClient, ak as hashObject, q as RuntimeShell, X as createCursorBackend } from './types-CotaFNj0.mjs';
1
+ import { B as BasePermissionHandler, aE as logger, b8 as resolveAgentRequestKind, T as connectionState, c as ApiClient, ak as hashObject, q as RuntimeShell, X as createCursorBackend } from './types-DnqTUpwY.mjs';
2
2
  import { randomUUID } from 'node:crypto';
3
- import { e as ensureManagedProviderMachine, a as MissingMachineIdError, M as MessageQueue2, B as BufferedAssistantStreamEmitter, r as registerKillSessionHandler, g as resolveHappyOrgQueuedTurn, s as syncControlledByUserState, b as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, f as finalizeHappyOrgTurnWithBusinessAck, c as forwardAgentMessageToProviderSession } from './sessionControl-Bmadpvu8.mjs';
4
- import { h as readManagedSessionTag, k as resolveManagedSessionTag, l as stopCaffeinate, e as closeProviderSession } from './index-lyHSYtcT.mjs';
5
- import { b as bootstrapManagedProviderSession } from './bootstrapManagedProviderSession-CIlq-ugZ.mjs';
6
- import { i as installFatalProcessHandlers } from './installFatalProcessHandlers-D8bPk4i9.mjs';
3
+ import { e as ensureManagedProviderMachine, a as MissingMachineIdError, M as MessageQueue2, B as BufferedAssistantStreamEmitter, r as registerKillSessionHandler, g as resolveHappyOrgQueuedTurn, s as syncControlledByUserState, b as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, f as finalizeHappyOrgTurnWithBusinessAck, c as forwardAgentMessageToProviderSession } from './sessionControl-_C1DLVWq.mjs';
4
+ import { h as readManagedSessionTag, k as resolveManagedSessionTag, l as stopCaffeinate, e as closeProviderSession } from './index-BlU0IkKg.mjs';
5
+ import { b as bootstrapManagedProviderSession } from './bootstrapManagedProviderSession-CW2bZO0r.mjs';
6
+ import { i as installFatalProcessHandlers } from './installFatalProcessHandlers-Di-PXB02.mjs';
7
7
  import 'axios';
8
8
  import 'chalk';
9
9
  import 'fs';
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./types-CYn-pPZa.cjs');
3
+ var persistence = require('./types-B43LoIH9.cjs');
4
4
  var node_crypto = require('node:crypto');
5
- var sessionControl = require('./sessionControl-JLtbfkf2.cjs');
6
- var index = require('./index-DxN29QWa.cjs');
7
- var bootstrapManagedProviderSession = require('./bootstrapManagedProviderSession-CIeuJe8e.cjs');
8
- var installFatalProcessHandlers = require('./installFatalProcessHandlers-1tGjAPvJ.cjs');
5
+ var sessionControl = require('./sessionControl-f5uyjKLU.cjs');
6
+ var index = require('./index-DTXoc9l3.cjs');
7
+ var bootstrapManagedProviderSession = require('./bootstrapManagedProviderSession-CLX0SkFr.cjs');
8
+ var installFatalProcessHandlers = require('./installFatalProcessHandlers-DKPQZZmR.cjs');
9
9
  require('axios');
10
10
  require('chalk');
11
11
  require('fs');
@@ -3,11 +3,11 @@
3
3
  var ink = require('ink');
4
4
  var React = require('react');
5
5
  var node_crypto = require('node:crypto');
6
- var persistence = require('./types-CYn-pPZa.cjs');
7
- var ConversationHistory$1 = require('./ConversationHistory-DeQgZhJ6.cjs');
8
- var sessionControl = require('./sessionControl-JLtbfkf2.cjs');
9
- var index = require('./index-DxN29QWa.cjs');
10
- var BaseReasoningProcessor = require('./BaseReasoningProcessor-BSlD8znO.cjs');
6
+ var persistence = require('./types-B43LoIH9.cjs');
7
+ var ConversationHistory$1 = require('./ConversationHistory-CzD1u1Wq.cjs');
8
+ var sessionControl = require('./sessionControl-f5uyjKLU.cjs');
9
+ var index = require('./index-DTXoc9l3.cjs');
10
+ var BaseReasoningProcessor = require('./BaseReasoningProcessor-ClKyULqw.cjs');
11
11
  require('cross-spawn');
12
12
  require('@agentclientprotocol/sdk');
13
13
  require('node:fs');
@@ -23,7 +23,7 @@ require('fs/promises');
23
23
  require('crypto');
24
24
  require('node:child_process');
25
25
  require('node:readline');
26
- var bootstrapManagedProviderSession = require('./bootstrapManagedProviderSession-CIeuJe8e.cjs');
26
+ var bootstrapManagedProviderSession = require('./bootstrapManagedProviderSession-CLX0SkFr.cjs');
27
27
  require('axios');
28
28
  require('open');
29
29
  require('chalk');
@@ -1,11 +1,11 @@
1
1
  import { useStdout, useInput, Box, Text, render } from 'ink';
2
2
  import React, { useState, useRef, useEffect, useCallback } from 'react';
3
3
  import { randomUUID } from 'node:crypto';
4
- import { B as BasePermissionHandler, aE as logger, T as connectionState, c as ApiClient, ak as hashObject, af as getInitialGeminiModel, aZ as readGeminiLocalConfig, G as GEMINI_MODEL_ENV, bi as saveGeminiModelToConfig, Z as createGeminiBackend } from './types-CotaFNj0.mjs';
5
- import { C as ConversationHistory$1, M as MessageBuffer, c as buildTurnResultPushNotification, a as buildReadyPushNotification, l as launchRuntimeHandleWithFactoryResult, e as extractPermissionRequestPushContext, b as buildPermissionPushNotification, d as createSessionTranscriptInkRenderer } from './ConversationHistory-DK27K3JQ.mjs';
6
- import { g as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, a as MissingMachineIdError, s as syncControlledByUserState, M as MessageQueue2, B as BufferedAssistantStreamEmitter, r as registerKillSessionHandler, b as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, f as finalizeHappyOrgTurnWithBusinessAck, d as renderTerminalOutputPreview, p as prepareTerminalOutputForForwarding, i as inferToolResultError, c as forwardAgentMessageToProviderSession } from './sessionControl-Bmadpvu8.mjs';
7
- import { e as closeProviderSession, l as stopCaffeinate } from './index-lyHSYtcT.mjs';
8
- import { B as BaseReasoningProcessor } from './BaseReasoningProcessor-CCk42d9N.mjs';
4
+ import { B as BasePermissionHandler, aE as logger, T as connectionState, c as ApiClient, ak as hashObject, af as getInitialGeminiModel, aZ as readGeminiLocalConfig, G as GEMINI_MODEL_ENV, bi as saveGeminiModelToConfig, Z as createGeminiBackend } from './types-DnqTUpwY.mjs';
5
+ import { C as ConversationHistory$1, M as MessageBuffer, c as buildTurnResultPushNotification, a as buildReadyPushNotification, l as launchRuntimeHandleWithFactoryResult, e as extractPermissionRequestPushContext, b as buildPermissionPushNotification, d as createSessionTranscriptInkRenderer } from './ConversationHistory-BEFQZEC0.mjs';
6
+ import { g as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, a as MissingMachineIdError, s as syncControlledByUserState, M as MessageQueue2, B as BufferedAssistantStreamEmitter, r as registerKillSessionHandler, b as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, f as finalizeHappyOrgTurnWithBusinessAck, d as renderTerminalOutputPreview, p as prepareTerminalOutputForForwarding, i as inferToolResultError, c as forwardAgentMessageToProviderSession } from './sessionControl-_C1DLVWq.mjs';
7
+ import { e as closeProviderSession, l as stopCaffeinate } from './index-BlU0IkKg.mjs';
8
+ import { B as BaseReasoningProcessor } from './BaseReasoningProcessor-dDQ0HBLR.mjs';
9
9
  import 'cross-spawn';
10
10
  import '@agentclientprotocol/sdk';
11
11
  import 'node:fs';
@@ -21,7 +21,7 @@ import 'fs/promises';
21
21
  import 'crypto';
22
22
  import 'node:child_process';
23
23
  import 'node:readline';
24
- import { b as bootstrapManagedProviderSession } from './bootstrapManagedProviderSession-CIlq-ugZ.mjs';
24
+ import { b as bootstrapManagedProviderSession } from './bootstrapManagedProviderSession-CW2bZO0r.mjs';
25
25
  import 'axios';
26
26
  import 'open';
27
27
  import 'chalk';
@@ -1,5 +1,5 @@
1
- import { i as initialMachineMetadata, j as resolveCanonicalToolNameV2 } from './index-lyHSYtcT.mjs';
2
- import { b2 as readSettings, ac as formatDisplayMessage, n as HeadTailPreviewBuffer, az as isTerminalReferenceOnlyPayload, aE as logger, j as HAPPY_ORG_REPLY_ACK_VERSION, l as HAPPY_ORG_TURN_REPORT_TAG, k as HAPPY_ORG_SUMMARY_MAX_LENGTH, i as HAPPY_ORG_REPEAT_THRESHOLD, aL as normalizePreviewableArtifactTarget, e as AssistantMessageStream } from './types-CotaFNj0.mjs';
1
+ import { i as initialMachineMetadata, j as resolveCanonicalToolNameV2 } from './index-BlU0IkKg.mjs';
2
+ import { b2 as readSettings, ac as formatDisplayMessage, n as HeadTailPreviewBuffer, az as isTerminalReferenceOnlyPayload, aE as logger, j as HAPPY_ORG_REPLY_ACK_VERSION, l as HAPPY_ORG_TURN_REPORT_TAG, k as HAPPY_ORG_SUMMARY_MAX_LENGTH, i as HAPPY_ORG_REPEAT_THRESHOLD, aL as normalizePreviewableArtifactTarget, e as AssistantMessageStream } from './types-DnqTUpwY.mjs';
3
3
  import { randomUUID } from 'node:crypto';
4
4
  import 'axios';
5
5
  import 'node:events';
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DxN29QWa.cjs');
4
- var persistence = require('./types-CYn-pPZa.cjs');
3
+ var index = require('./index-DTXoc9l3.cjs');
4
+ var persistence = require('./types-B43LoIH9.cjs');
5
5
  var node_crypto = require('node:crypto');
6
6
  require('axios');
7
7
  require('node:events');
@@ -59,7 +59,7 @@ var z__namespace = /*#__PURE__*/_interopNamespaceDefault(z);
59
59
  var fsPromises__namespace = /*#__PURE__*/_interopNamespaceDefault(fsPromises);
60
60
 
61
61
  var name = "happy-imou-cloud";
62
- var version = "2.1.59";
62
+ var version = "2.1.61";
63
63
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Cursor CLI";
64
64
  var author = "long.zhu";
65
65
  var license = "MIT";
@@ -17139,7 +17139,7 @@ function shouldUseShellForCodex(executable) {
17139
17139
  return process.platform === "win32" && /\.(cmd|bat|ps1)$/i.test(executable);
17140
17140
  }
17141
17141
 
17142
- const __dirname$2 = path$1.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('types-CYn-pPZa.cjs', document.baseURI).href))));
17142
+ const __dirname$2 = path$1.dirname(url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('types-B43LoIH9.cjs', document.baseURI).href))));
17143
17143
  function projectPath() {
17144
17144
  const path = path$1.resolve(__dirname$2, "..");
17145
17145
  return path;
@@ -23515,7 +23515,7 @@ class CodexAppServerBackend {
23515
23515
  providerActivityEvidence
23516
23516
  });
23517
23517
  }
23518
- async waitForResponseComplete(timeoutMs = 6e5) {
23518
+ async waitForResponseComplete(timeoutMs) {
23519
23519
  let recoveredAuthAccountChange = false;
23520
23520
  let originalAuthAccountChangeFailure = null;
23521
23521
  let recoveredContextWindow = false;
@@ -23526,15 +23526,16 @@ class CodexAppServerBackend {
23526
23526
  return;
23527
23527
  }
23528
23528
  let timeout = null;
23529
+ const hasTimeout = typeof timeoutMs === "number" && Number.isFinite(timeoutMs) && timeoutMs >= 0;
23529
23530
  try {
23530
- await Promise.race([
23531
+ await (hasTimeout ? Promise.race([
23531
23532
  pendingTurn.promise,
23532
23533
  new Promise((_, reject) => {
23533
23534
  timeout = setTimeout(() => {
23534
23535
  reject(new Error(`Codex app-server response timed out after ${timeoutMs}ms`));
23535
23536
  }, timeoutMs);
23536
23537
  })
23537
- ]);
23538
+ ]) : pendingTurn.promise);
23538
23539
  this.recoverableTurn = null;
23539
23540
  return;
23540
23541
  } catch (error) {
@@ -23570,6 +23571,14 @@ class CodexAppServerBackend {
23570
23571
  if (recoveredContextWindow && originalContextWindowFailure && isCodexAppServerContextWindowExhaustedError(failure)) {
23571
23572
  throw originalContextWindowFailure;
23572
23573
  }
23574
+ if (this.pendingTurn === pendingTurn) {
23575
+ this.pendingTurn = null;
23576
+ this.recoverableTurn = null;
23577
+ pendingTurn.promise.catch(() => void 0);
23578
+ pendingTurn.reject(failure);
23579
+ await this.runTurnTrackerMutation("timeout-or-failure", () => this.failTrackedTurn());
23580
+ this.emit({ type: "status", status: "error", detail: failure.message });
23581
+ }
23573
23582
  throw failure;
23574
23583
  } finally {
23575
23584
  if (timeout) {
@@ -23989,7 +23998,10 @@ class CodexAppServerBackend {
23989
23998
  this.disposed = true;
23990
23999
  const pending = this.pendingTurn;
23991
24000
  this.pendingTurn = null;
23992
- pending?.reject(new Error("Codex app-server backend disposed"));
24001
+ if (pending) {
24002
+ pending.promise.catch(() => void 0);
24003
+ pending.reject(new Error("Codex app-server backend disposed"));
24004
+ }
23993
24005
  await this.client?.dispose().catch((error) => {
23994
24006
  logger.debug("[CodexAppServer] dispose failed", error);
23995
24007
  });
@@ -37550,7 +37562,7 @@ function getRuntime() {
37550
37562
  }
37551
37563
  const isBun = () => getRuntime() === "bun";
37552
37564
 
37553
- const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('types-CYn-pPZa.cjs', document.baseURI).href)));
37565
+ const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('types-B43LoIH9.cjs', document.baseURI).href)));
37554
37566
  const __dirname$1 = path.join(__filename$1, "..");
37555
37567
  function getGlobalClaudeVersion() {
37556
37568
  try {
@@ -57773,7 +57785,7 @@ function isBunRuntime() {
57773
57785
  return typeof globalThis.Bun !== "undefined";
57774
57786
  }
57775
57787
  function openSqliteDatabaseSync(filePath) {
57776
- const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('types-CYn-pPZa.cjs', document.baseURI).href)));
57788
+ const require$1 = node_module.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('types-B43LoIH9.cjs', document.baseURI).href)));
57777
57789
  const moduleName = isBunRuntime() ? "bun:sqlite" : "node:sqlite";
57778
57790
  const mod = require$1(moduleName);
57779
57791
  if (!mod || typeof mod !== "object") {
@@ -38,7 +38,7 @@ import { Expo } from 'expo-server-sdk';
38
38
  import { createRequire } from 'node:module';
39
39
 
40
40
  var name = "happy-imou-cloud";
41
- var version = "2.1.59";
41
+ var version = "2.1.61";
42
42
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Cursor CLI";
43
43
  var author = "long.zhu";
44
44
  var license = "MIT";
@@ -23494,7 +23494,7 @@ class CodexAppServerBackend {
23494
23494
  providerActivityEvidence
23495
23495
  });
23496
23496
  }
23497
- async waitForResponseComplete(timeoutMs = 6e5) {
23497
+ async waitForResponseComplete(timeoutMs) {
23498
23498
  let recoveredAuthAccountChange = false;
23499
23499
  let originalAuthAccountChangeFailure = null;
23500
23500
  let recoveredContextWindow = false;
@@ -23505,15 +23505,16 @@ class CodexAppServerBackend {
23505
23505
  return;
23506
23506
  }
23507
23507
  let timeout = null;
23508
+ const hasTimeout = typeof timeoutMs === "number" && Number.isFinite(timeoutMs) && timeoutMs >= 0;
23508
23509
  try {
23509
- await Promise.race([
23510
+ await (hasTimeout ? Promise.race([
23510
23511
  pendingTurn.promise,
23511
23512
  new Promise((_, reject) => {
23512
23513
  timeout = setTimeout(() => {
23513
23514
  reject(new Error(`Codex app-server response timed out after ${timeoutMs}ms`));
23514
23515
  }, timeoutMs);
23515
23516
  })
23516
- ]);
23517
+ ]) : pendingTurn.promise);
23517
23518
  this.recoverableTurn = null;
23518
23519
  return;
23519
23520
  } catch (error) {
@@ -23549,6 +23550,14 @@ class CodexAppServerBackend {
23549
23550
  if (recoveredContextWindow && originalContextWindowFailure && isCodexAppServerContextWindowExhaustedError(failure)) {
23550
23551
  throw originalContextWindowFailure;
23551
23552
  }
23553
+ if (this.pendingTurn === pendingTurn) {
23554
+ this.pendingTurn = null;
23555
+ this.recoverableTurn = null;
23556
+ pendingTurn.promise.catch(() => void 0);
23557
+ pendingTurn.reject(failure);
23558
+ await this.runTurnTrackerMutation("timeout-or-failure", () => this.failTrackedTurn());
23559
+ this.emit({ type: "status", status: "error", detail: failure.message });
23560
+ }
23552
23561
  throw failure;
23553
23562
  } finally {
23554
23563
  if (timeout) {
@@ -23968,7 +23977,10 @@ class CodexAppServerBackend {
23968
23977
  this.disposed = true;
23969
23978
  const pending = this.pendingTurn;
23970
23979
  this.pendingTurn = null;
23971
- pending?.reject(new Error("Codex app-server backend disposed"));
23980
+ if (pending) {
23981
+ pending.promise.catch(() => void 0);
23982
+ pending.reject(new Error("Codex app-server backend disposed"));
23983
+ }
23972
23984
  await this.client?.dispose().catch((error) => {
23973
23985
  logger.debug("[CodexAppServer] dispose failed", error);
23974
23986
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "happy-imou-cloud",
3
- "version": "2.1.59",
3
+ "version": "2.1.61",
4
4
  "description": "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Cursor CLI",
5
5
  "author": "long.zhu",
6
6
  "license": "MIT",
@@ -57,13 +57,13 @@
57
57
  "bench:report": "node scripts/generate-benchmark-report.js",
58
58
  "// ==== Start & Dev ====": "",
59
59
  "start": "yarn build && node ./bin/happy-cloud.mjs",
60
- "dev": "tsx src/index.ts",
61
- "dev:local-server": "yarn build && tsx --env-file .env.dev-local-server src/index.ts",
62
- "dev:integration-test-env": "yarn build && tsx --env-file .env.integration-test src/index.ts",
63
- "e2e:local-server": "yarn build && node ./scripts/e2e/local-server-session-roundtrip.mjs",
64
- "e2e:codex-app-server-goal": "node ./scripts/e2e/codex-app-server-goal-smoke.mjs",
65
- "e2e:mcp-stdio-real-probe": "node ./scripts/e2e/mcp-stdio-real-server-probe.mjs",
66
- "// ==== Release ====": "",
60
+ "dev": "tsx src/index.ts",
61
+ "dev:local-server": "yarn build && tsx --env-file .env.dev-local-server src/index.ts",
62
+ "dev:integration-test-env": "yarn build && tsx --env-file .env.integration-test src/index.ts",
63
+ "e2e:local-server": "yarn build && node ./scripts/e2e/local-server-session-roundtrip.mjs",
64
+ "e2e:codex-app-server-goal": "node ./scripts/e2e/codex-app-server-goal-smoke.mjs",
65
+ "e2e:mcp-stdio-real-probe": "node ./scripts/e2e/mcp-stdio-real-server-probe.mjs",
66
+ "// ==== Release ====": "",
67
67
  "prepublishOnly": "yarn release:smoke",
68
68
  "release": "yarn install && release-it",
69
69
  "release:smoke": "node ./scripts/release-smoke.mjs",
@@ -89,20 +89,20 @@
89
89
  "test:happy-org-1.2-quality": "node ../../node_modules/vitest/vitest.mjs run --config vitest.happy-org-1.2.config.mjs"
90
90
  },
91
91
  "dependencies": {
92
- "@agentclientprotocol/sdk": "0.21.0",
93
- "@noble/hashes": "^1.8.0",
94
- "@stablelib/base64": "^2.0.1",
95
- "@stablelib/hex": "^2.0.1",
92
+ "@agentclientprotocol/sdk": "0.21.0",
93
+ "@noble/hashes": "^1.8.0",
94
+ "@stablelib/base64": "^2.0.1",
95
+ "@stablelib/hex": "^2.0.1",
96
96
  "@types/cross-spawn": "^6.0.6",
97
97
  "@types/http-proxy": "^1.17.17",
98
98
  "@types/ps-list": "^6.2.1",
99
99
  "@types/qrcode-terminal": "^0.12.2",
100
100
  "@types/react": "^19.2.7",
101
101
  "@types/tmp": "^0.2.6",
102
- "ai": "^5.0.107",
103
- "axios": "^1.13.2",
104
- "base64-js": "^1.5.1",
105
- "chalk": "^5.6.2",
102
+ "ai": "^5.0.107",
103
+ "axios": "^1.13.2",
104
+ "base64-js": "^1.5.1",
105
+ "chalk": "^5.6.2",
106
106
  "cross-spawn": "^7.0.6",
107
107
  "expo-server-sdk": "^3.15.0",
108
108
  "fastify": "^5.6.2",