happy-imou-cloud 2.1.6 → 2.1.7

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 (25) hide show
  1. package/dist/{BaseReasoningProcessor-CRXr7Axk.mjs → BaseReasoningProcessor-C0A6Jr8V.mjs} +2 -2
  2. package/dist/{BaseReasoningProcessor-C3oDrA4i.cjs → BaseReasoningProcessor-iSuaFeZH.cjs} +2 -2
  3. package/dist/{ProviderSelectionHandler-Drg2Pp1-.cjs → ProviderSelectionHandler-DI9QK1iY.cjs} +2 -2
  4. package/dist/{ProviderSelectionHandler-C3kHFqeq.mjs → ProviderSelectionHandler-WT-tvePy.mjs} +2 -2
  5. package/dist/{api-DF9A136-.mjs → api-BYKV7vX6.mjs} +2 -2
  6. package/dist/{api-CvtU4DI-.cjs → api-CdGT5hsH.cjs} +2 -2
  7. package/dist/{command-hO52qTzQ.mjs → command-C1cKqmsa.mjs} +3 -3
  8. package/dist/{command-UZr1nodh.cjs → command-uyA8cYmL.cjs} +3 -3
  9. package/dist/{index-B5e-MA1d.mjs → index-BAhlFq45.mjs} +8 -8
  10. package/dist/{index-DA-K28E3.cjs → index-D_S_7bqK.cjs} +11 -11
  11. package/dist/index.cjs +3 -3
  12. package/dist/index.mjs +3 -3
  13. package/dist/lib.cjs +1 -1
  14. package/dist/lib.mjs +1 -1
  15. package/dist/{persistence-BsWBBi7E.mjs → persistence-B8Wgn6aN.mjs} +1 -1
  16. package/dist/{persistence-CKgPuZRR.cjs → persistence-CMvrZ4SA.cjs} +1 -1
  17. package/dist/{registerKillSessionHandler-DmG1p8l7.mjs → registerKillSessionHandler-5DVlZaJx.mjs} +3 -3
  18. package/dist/{registerKillSessionHandler-3ytO-yBI.cjs → registerKillSessionHandler-DjxtkGMv.cjs} +3 -3
  19. package/dist/{runClaude-bAlUdUGw.cjs → runClaude-DNZFsQY0.cjs} +31 -9
  20. package/dist/{runClaude-MF34EsCp.mjs → runClaude-WB884iOO.mjs} +31 -9
  21. package/dist/{runCodex-B31D_imZ.mjs → runCodex-MJar-238.mjs} +6 -7
  22. package/dist/{runCodex-CiIbJ1wa.cjs → runCodex-WZ91ZLK7.cjs} +6 -7
  23. package/dist/{runGemini-BJ7PxLyl.mjs → runGemini-BPGpwljp.mjs} +5 -5
  24. package/dist/{runGemini-BZJR84o-.cjs → runGemini-B_wCHgPU.cjs} +5 -5
  25. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { a as createSessionMetadata, p as publishSessionRegistration } from './index-B5e-MA1d.mjs';
2
- import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-DF9A136-.mjs';
1
+ import { a as createSessionMetadata, p as publishSessionRegistration } from './index-BAhlFq45.mjs';
2
+ import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-BYKV7vX6.mjs';
3
3
  import { EventEmitter } from 'node:events';
4
4
  import { randomUUID } from 'node:crypto';
5
5
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DA-K28E3.cjs');
4
- var api = require('./api-CvtU4DI-.cjs');
3
+ var index = require('./index-D_S_7bqK.cjs');
4
+ var api = require('./api-CdGT5hsH.cjs');
5
5
  var node_events = require('node:events');
6
6
  var node_crypto = require('node:crypto');
7
7
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var api = require('./api-CvtU4DI-.cjs');
4
- var registerKillSessionHandler = require('./registerKillSessionHandler-3ytO-yBI.cjs');
3
+ var api = require('./api-CdGT5hsH.cjs');
4
+ var registerKillSessionHandler = require('./registerKillSessionHandler-DjxtkGMv.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 './api-DF9A136-.mjs';
2
- import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-DmG1p8l7.mjs';
1
+ import { l as logger } from './api-BYKV7vX6.mjs';
2
+ import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-5DVlZaJx.mjs';
3
3
 
4
4
  async function runModeLoop(opts) {
5
5
  let currentMode = opts.startingMode;
@@ -16,7 +16,7 @@ import { spawn } from 'node:child_process';
16
16
  import { Expo } from 'expo-server-sdk';
17
17
 
18
18
  var name = "happy-imou-cloud";
19
- var version = "2.1.6";
19
+ var version = "2.1.7";
20
20
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
21
21
  var author = "long.zhu";
22
22
  var license = "MIT";
@@ -431,7 +431,7 @@ async function listDaemonLogFiles(limit = 50) {
431
431
  return { file, path: fullPath, modified: stats.mtime };
432
432
  }).sort((a, b) => b.modified.getTime() - a.modified.getTime());
433
433
  try {
434
- const { readDaemonState } = await import('./persistence-BsWBBi7E.mjs');
434
+ const { readDaemonState } = await import('./persistence-B8Wgn6aN.mjs');
435
435
  const state = await readDaemonState();
436
436
  if (!state) {
437
437
  return logs;
@@ -18,7 +18,7 @@ var node_child_process = require('node:child_process');
18
18
  var expoServerSdk = require('expo-server-sdk');
19
19
 
20
20
  var name = "happy-imou-cloud";
21
- var version = "2.1.6";
21
+ var version = "2.1.7";
22
22
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
23
23
  var author = "long.zhu";
24
24
  var license = "MIT";
@@ -433,7 +433,7 @@ async function listDaemonLogFiles(limit = 50) {
433
433
  return { file, path: fullPath, modified: stats.mtime };
434
434
  }).sort((a, b) => b.modified.getTime() - a.modified.getTime());
435
435
  try {
436
- const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-CKgPuZRR.cjs'); });
436
+ const { readDaemonState } = await Promise.resolve().then(function () { return require('./persistence-CMvrZ4SA.cjs'); });
437
437
  const state = await readDaemonState();
438
438
  if (!state) {
439
439
  return logs;
@@ -1,6 +1,6 @@
1
- import { c as createDefaultRuntimeShell } from './index-B5e-MA1d.mjs';
1
+ import { c as createDefaultRuntimeShell } from './index-BAhlFq45.mjs';
2
2
  import 'chalk';
3
- import './api-DF9A136-.mjs';
3
+ import './api-BYKV7vX6.mjs';
4
4
  import 'axios';
5
5
  import 'fs';
6
6
  import 'node:fs';
@@ -16,7 +16,7 @@ import 'crypto';
16
16
  import 'path';
17
17
  import 'node:child_process';
18
18
  import 'expo-server-sdk';
19
- import './persistence-BsWBBi7E.mjs';
19
+ import './persistence-B8Wgn6aN.mjs';
20
20
  import 'node:fs/promises';
21
21
  import 'os';
22
22
  import 'tmp';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DA-K28E3.cjs');
3
+ var index = require('./index-D_S_7bqK.cjs');
4
4
  require('chalk');
5
- require('./api-CvtU4DI-.cjs');
5
+ require('./api-CdGT5hsH.cjs');
6
6
  require('axios');
7
7
  require('fs');
8
8
  require('node:fs');
@@ -18,7 +18,7 @@ require('crypto');
18
18
  require('path');
19
19
  require('node:child_process');
20
20
  require('expo-server-sdk');
21
- require('./persistence-CKgPuZRR.cjs');
21
+ require('./persistence-CMvrZ4SA.cjs');
22
22
  require('node:fs/promises');
23
23
  require('os');
24
24
  require('tmp');
@@ -1,6 +1,6 @@
1
1
  import{createRequire as _pkgrollCR}from"node:module";const require=_pkgrollCR(import.meta.url);import chalk from 'chalk';
2
- import { l as logger, e as encodeBase64, c as configuration, k as buildAuthenticatedHeaders, S as SigningBootstrapRequiredError, m as SIGNING_BOOTSTRAP_REQUIRED_MESSAGE, n as encodeBase64Url, h as delay, o as buildClientHeaders, p as decodeBase64, q as HAPPY_CLOUD_DAEMON_PORT, r as packageJson, A as ApiClient, t as HeadTailPreviewBuffer, u as getLatestDaemonLog } from './api-DF9A136-.mjs';
3
- import { writeCredentialsLegacy, writeCredentialsDataKey, readCredentials, readSettings, updateSettings, readDaemonState, clearDaemonState, acquireDaemonLock, writeDaemonState, releaseDaemonLock, validateProfileForAgent, getProfileEnvironmentVariables, clearCredentials, clearMachineId } from './persistence-BsWBBi7E.mjs';
2
+ import { l as logger, e as encodeBase64, c as configuration, k as buildAuthenticatedHeaders, S as SigningBootstrapRequiredError, m as SIGNING_BOOTSTRAP_REQUIRED_MESSAGE, n as encodeBase64Url, h as delay, o as buildClientHeaders, p as decodeBase64, q as HAPPY_CLOUD_DAEMON_PORT, r as packageJson, A as ApiClient, t as HeadTailPreviewBuffer, u as getLatestDaemonLog } from './api-BYKV7vX6.mjs';
3
+ import { writeCredentialsLegacy, writeCredentialsDataKey, readCredentials, readSettings, updateSettings, readDaemonState, clearDaemonState, acquireDaemonLock, writeDaemonState, releaseDaemonLock, validateProfileForAgent, getProfileEnvironmentVariables, clearCredentials, clearMachineId } from './persistence-B8Wgn6aN.mjs';
4
4
  import { z } from 'zod';
5
5
  import fs, { writeFile as writeFile$1, rename, unlink as unlink$1 } from 'fs/promises';
6
6
  import os$1, { homedir } from 'os';
@@ -9730,11 +9730,11 @@ var launch = /*#__PURE__*/Object.freeze({
9730
9730
 
9731
9731
  const unifiedProviderExecutors = {
9732
9732
  claude: async (opts) => {
9733
- const { runClaude } = await import('./runClaude-MF34EsCp.mjs');
9733
+ const { runClaude } = await import('./runClaude-WB884iOO.mjs');
9734
9734
  await runClaude(opts.credentials, opts.claudeOptions ?? {});
9735
9735
  },
9736
9736
  codex: async (opts) => {
9737
- const { runCodex } = await import('./runCodex-B31D_imZ.mjs');
9737
+ const { runCodex } = await import('./runCodex-MJar-238.mjs');
9738
9738
  await runCodex({
9739
9739
  credentials: opts.credentials,
9740
9740
  startedBy: opts.startedBy,
@@ -9743,7 +9743,7 @@ const unifiedProviderExecutors = {
9743
9743
  });
9744
9744
  },
9745
9745
  gemini: async (opts) => {
9746
- const { runGemini } = await import('./runGemini-BJ7PxLyl.mjs');
9746
+ const { runGemini } = await import('./runGemini-BPGpwljp.mjs');
9747
9747
  await runGemini({
9748
9748
  credentials: opts.credentials,
9749
9749
  startedBy: opts.startedBy
@@ -9819,7 +9819,7 @@ function shouldRunMainClaudeFlow(opts) {
9819
9819
  return;
9820
9820
  } else if (subcommand === "runtime") {
9821
9821
  if (args[1] === "providers") {
9822
- const { renderRuntimeProviders } = await import('./command-hO52qTzQ.mjs');
9822
+ const { renderRuntimeProviders } = await import('./command-C1cKqmsa.mjs');
9823
9823
  console.log(renderRuntimeProviders());
9824
9824
  return;
9825
9825
  }
@@ -9997,8 +9997,8 @@ function shouldRunMainClaudeFlow(opts) {
9997
9997
  const projectId = args[3];
9998
9998
  try {
9999
9999
  const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
10000
- const { readCredentials: readCredentials2 } = await import('./persistence-BsWBBi7E.mjs');
10001
- const { ApiClient: ApiClient2 } = await import('./api-DF9A136-.mjs').then(function (n) { return n.v; });
10000
+ const { readCredentials: readCredentials2 } = await import('./persistence-B8Wgn6aN.mjs');
10001
+ const { ApiClient: ApiClient2 } = await import('./api-BYKV7vX6.mjs').then(function (n) { return n.v; });
10002
10002
  let userEmail = void 0;
10003
10003
  try {
10004
10004
  const credentials = await readCredentials2();
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var chalk = require('chalk');
4
- var api = require('./api-CvtU4DI-.cjs');
5
- var persistence = require('./persistence-CKgPuZRR.cjs');
4
+ var api = require('./api-CdGT5hsH.cjs');
5
+ var persistence = require('./persistence-CMvrZ4SA.cjs');
6
6
  var z = require('zod');
7
7
  var fs$2 = require('fs/promises');
8
8
  var os$1 = require('os');
@@ -72,7 +72,7 @@ async function openBrowser(url) {
72
72
  }
73
73
  }
74
74
 
75
- 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-DA-K28E3.cjs', document.baseURI).href)));
75
+ 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-D_S_7bqK.cjs', document.baseURI).href)));
76
76
  const QRCode = require$1("qrcode-terminal/vendor/QRCode");
77
77
  const QRErrorCorrectLevel = require$1("qrcode-terminal/vendor/QRCode/QRErrorCorrectLevel");
78
78
  const pendingTempFiles = /* @__PURE__ */ new Set();
@@ -695,7 +695,7 @@ function setupCleanupHandlers() {
695
695
  });
696
696
  }
697
697
 
698
- 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('index-DA-K28E3.cjs', document.baseURI).href))));
698
+ 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('index-D_S_7bqK.cjs', document.baseURI).href))));
699
699
  function projectPath() {
700
700
  const path = path$1.resolve(__dirname$2, "..");
701
701
  return path;
@@ -8482,7 +8482,7 @@ class AbortError extends Error {
8482
8482
  }
8483
8483
  }
8484
8484
 
8485
- const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-DA-K28E3.cjs', document.baseURI).href)));
8485
+ const __filename$1 = node_url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index-D_S_7bqK.cjs', document.baseURI).href)));
8486
8486
  const __dirname$1 = path.join(__filename$1, "..");
8487
8487
  function getGlobalClaudeVersion() {
8488
8488
  try {
@@ -9752,11 +9752,11 @@ var launch = /*#__PURE__*/Object.freeze({
9752
9752
 
9753
9753
  const unifiedProviderExecutors = {
9754
9754
  claude: async (opts) => {
9755
- const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-bAlUdUGw.cjs'); });
9755
+ const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-DNZFsQY0.cjs'); });
9756
9756
  await runClaude(opts.credentials, opts.claudeOptions ?? {});
9757
9757
  },
9758
9758
  codex: async (opts) => {
9759
- const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-CiIbJ1wa.cjs'); });
9759
+ const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-WZ91ZLK7.cjs'); });
9760
9760
  await runCodex({
9761
9761
  credentials: opts.credentials,
9762
9762
  startedBy: opts.startedBy,
@@ -9765,7 +9765,7 @@ const unifiedProviderExecutors = {
9765
9765
  });
9766
9766
  },
9767
9767
  gemini: async (opts) => {
9768
- const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-BZJR84o-.cjs'); });
9768
+ const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-B_wCHgPU.cjs'); });
9769
9769
  await runGemini({
9770
9770
  credentials: opts.credentials,
9771
9771
  startedBy: opts.startedBy
@@ -9841,7 +9841,7 @@ function shouldRunMainClaudeFlow(opts) {
9841
9841
  return;
9842
9842
  } else if (subcommand === "runtime") {
9843
9843
  if (args[1] === "providers") {
9844
- const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-UZr1nodh.cjs'); });
9844
+ const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-uyA8cYmL.cjs'); });
9845
9845
  console.log(renderRuntimeProviders());
9846
9846
  return;
9847
9847
  }
@@ -10019,8 +10019,8 @@ function shouldRunMainClaudeFlow(opts) {
10019
10019
  const projectId = args[3];
10020
10020
  try {
10021
10021
  const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
10022
- const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./persistence-CKgPuZRR.cjs'); });
10023
- const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-CvtU4DI-.cjs'); }).then(function (n) { return n.api; });
10022
+ const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./persistence-CMvrZ4SA.cjs'); });
10023
+ const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-CdGT5hsH.cjs'); }).then(function (n) { return n.api; });
10024
10024
  let userEmail = void 0;
10025
10025
  try {
10026
10026
  const credentials = await readCredentials2();
package/dist/index.cjs CHANGED
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  require('chalk');
4
- require('./api-CvtU4DI-.cjs');
5
- require('./persistence-CKgPuZRR.cjs');
4
+ require('./api-CdGT5hsH.cjs');
5
+ require('./persistence-CMvrZ4SA.cjs');
6
6
  require('zod');
7
- require('./index-DA-K28E3.cjs');
7
+ require('./index-D_S_7bqK.cjs');
8
8
  require('node:child_process');
9
9
  require('node:fs');
10
10
  require('cross-spawn');
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  import 'chalk';
2
- import './api-DF9A136-.mjs';
3
- import './persistence-BsWBBi7E.mjs';
2
+ import './api-BYKV7vX6.mjs';
3
+ import './persistence-B8Wgn6aN.mjs';
4
4
  import 'zod';
5
- import './index-B5e-MA1d.mjs';
5
+ import './index-BAhlFq45.mjs';
6
6
  import 'node:child_process';
7
7
  import 'node:fs';
8
8
  import 'cross-spawn';
package/dist/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var api = require('./api-CvtU4DI-.cjs');
3
+ var api = require('./api-CdGT5hsH.cjs');
4
4
  var types = require('./types-DVk3crez.cjs');
5
5
  require('axios');
6
6
  require('chalk');
package/dist/lib.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ApiClient, a as ApiSessionClient, c as configuration, l as logger } from './api-DF9A136-.mjs';
1
+ export { A as ApiClient, a as ApiSessionClient, c as configuration, l as logger } from './api-BYKV7vX6.mjs';
2
2
  export { R as RawJSONLinesSchema } from './types-CiliQpqS.mjs';
3
3
  import 'axios';
4
4
  import 'chalk';
@@ -1,7 +1,7 @@
1
1
  import { unlink, readFile, mkdir, open, stat, writeFile, rename } from 'node:fs/promises';
2
2
  import { existsSync, unlinkSync, readdirSync, constants, writeFileSync, readFileSync } from 'node:fs';
3
3
  import { join, dirname } from 'node:path';
4
- import { c as configuration, l as logger, e as encodeBase64 } from './api-DF9A136-.mjs';
4
+ import { c as configuration, l as logger, e as encodeBase64 } from './api-BYKV7vX6.mjs';
5
5
  import * as z from 'zod';
6
6
  import 'axios';
7
7
  import 'chalk';
@@ -3,7 +3,7 @@
3
3
  var promises = require('node:fs/promises');
4
4
  var fs = require('node:fs');
5
5
  var path = require('node:path');
6
- var api = require('./api-CvtU4DI-.cjs');
6
+ var api = require('./api-CdGT5hsH.cjs');
7
7
  var z = require('zod');
8
8
  require('axios');
9
9
  require('chalk');
@@ -1,7 +1,7 @@
1
- import { k as initialMachineMetadata, R as RuntimeShell, l as resolveCanonicalToolNameV2, f as formatDisplayMessage } from './index-B5e-MA1d.mjs';
2
- import { readSettings } from './persistence-BsWBBi7E.mjs';
1
+ import { k as initialMachineMetadata, R as RuntimeShell, l as resolveCanonicalToolNameV2, f as formatDisplayMessage } from './index-BAhlFq45.mjs';
2
+ import { readSettings } from './persistence-B8Wgn6aN.mjs';
3
3
  import { randomUUID } from 'node:crypto';
4
- import { H as HAPPY_ORG_TURN_REPORT_TAG, d as HAPPY_ORG_SUMMARY_MAX_LENGTH, f as HAPPY_ORG_REPEAT_THRESHOLD, l as logger } from './api-DF9A136-.mjs';
4
+ import { H as HAPPY_ORG_TURN_REPORT_TAG, d as HAPPY_ORG_SUMMARY_MAX_LENGTH, f as HAPPY_ORG_REPEAT_THRESHOLD, l as logger } from './api-BYKV7vX6.mjs';
5
5
  import { createHash } from 'crypto';
6
6
  import 'axios';
7
7
  import 'node:events';
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-DA-K28E3.cjs');
4
- var persistence = require('./persistence-CKgPuZRR.cjs');
3
+ var index = require('./index-D_S_7bqK.cjs');
4
+ var persistence = require('./persistence-CMvrZ4SA.cjs');
5
5
  var node_crypto = require('node:crypto');
6
- var api = require('./api-CvtU4DI-.cjs');
6
+ var api = require('./api-CdGT5hsH.cjs');
7
7
  var crypto = require('crypto');
8
8
  require('axios');
9
9
  require('node:events');
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var node_crypto = require('node:crypto');
4
- var api = require('./api-CvtU4DI-.cjs');
4
+ var api = require('./api-CdGT5hsH.cjs');
5
5
  require('cross-spawn');
6
6
  require('@agentclientprotocol/sdk');
7
- var index = require('./index-DA-K28E3.cjs');
7
+ var index = require('./index-D_S_7bqK.cjs');
8
8
  require('ps-list');
9
9
  require('fs');
10
10
  require('path');
@@ -15,7 +15,7 @@ var path = require('node:path');
15
15
  var os = require('node:os');
16
16
  var node_child_process = require('node:child_process');
17
17
  require('node:readline');
18
- require('./persistence-CKgPuZRR.cjs');
18
+ require('./persistence-CMvrZ4SA.cjs');
19
19
  var promises = require('node:fs/promises');
20
20
  var fs = require('fs/promises');
21
21
  require('crypto');
@@ -26,9 +26,9 @@ require('tweetnacl');
26
26
  require('open');
27
27
  var React = require('react');
28
28
  var ink = require('ink');
29
- var ProviderSelectionHandler = require('./ProviderSelectionHandler-Drg2Pp1-.cjs');
29
+ var ProviderSelectionHandler = require('./ProviderSelectionHandler-DI9QK1iY.cjs');
30
30
  var types = require('./types-DVk3crez.cjs');
31
- var registerKillSessionHandler = require('./registerKillSessionHandler-3ytO-yBI.cjs');
31
+ var registerKillSessionHandler = require('./registerKillSessionHandler-DjxtkGMv.cjs');
32
32
  require('socket.io-client');
33
33
  require('expo-server-sdk');
34
34
  var node_util = require('node:util');
@@ -1001,6 +1001,7 @@ async function claudeAcpRemoteLauncher(session) {
1001
1001
  let currentModeHash = null;
1002
1002
  let pending = null;
1003
1003
  let accumulatedResponse = "";
1004
+ let accumulatedThinking = "";
1004
1005
  let isResponseInProgress = false;
1005
1006
  let taskStartedSent = false;
1006
1007
  let currentAssistantMessageId = null;
@@ -1051,12 +1052,25 @@ async function claudeAcpRemoteLauncher(session) {
1051
1052
  };
1052
1053
  const resetTurnState = () => {
1053
1054
  accumulatedResponse = "";
1055
+ accumulatedThinking = "";
1054
1056
  isResponseInProgress = false;
1055
1057
  taskStartedSent = false;
1056
1058
  currentAssistantMessageId = null;
1057
1059
  currentThinkingMessageId = null;
1058
1060
  session.onThinkingChange(false);
1059
1061
  };
1062
+ const emitPendingThinkingMessage = () => {
1063
+ const thinking = accumulatedThinking.trim();
1064
+ if (!thinking) {
1065
+ return false;
1066
+ }
1067
+ session.client.sendAgentMessage("claude", {
1068
+ type: "thinking",
1069
+ text: thinking
1070
+ });
1071
+ accumulatedThinking = "";
1072
+ return true;
1073
+ };
1060
1074
  const emitFinalAssistantMessage = (finalMessageText) => {
1061
1075
  const finalMessage = (finalMessageText ?? accumulatedResponse).trim();
1062
1076
  if (!finalMessage) {
@@ -1152,6 +1166,7 @@ async function claudeAcpRemoteLauncher(session) {
1152
1166
  if (!text) {
1153
1167
  return;
1154
1168
  }
1169
+ emitPendingThinkingMessage();
1155
1170
  if (!isResponseInProgress) {
1156
1171
  if (currentThinkingMessageId) {
1157
1172
  messageBuffer.removeMessage(currentThinkingMessageId);
@@ -1184,6 +1199,7 @@ async function claudeAcpRemoteLauncher(session) {
1184
1199
  return;
1185
1200
  }
1186
1201
  if (msg.status === "idle" || msg.status === "stopped") {
1202
+ emitPendingThinkingMessage();
1187
1203
  session.onThinkingChange(false);
1188
1204
  if (msg.status === "stopped" && !turnInFlight) {
1189
1205
  void recoverUnexpectedRuntimeStop(msg.detail);
@@ -1191,11 +1207,13 @@ async function claudeAcpRemoteLauncher(session) {
1191
1207
  return;
1192
1208
  }
1193
1209
  if (msg.status === "error") {
1210
+ emitPendingThinkingMessage();
1194
1211
  messageBuffer.addMessage(`Error: ${normalizeClaudeBackendError(msg.detail)}`, "status");
1195
1212
  }
1196
1213
  return;
1197
1214
  }
1198
1215
  case "tool-call": {
1216
+ emitPendingThinkingMessage();
1199
1217
  const toolArgs = index.truncateDisplayMessage(msg.args, 100);
1200
1218
  messageBuffer.addMessage(
1201
1219
  `Executing: ${msg.toolName}${toolArgs ? ` ${toolArgs}` : ""}`,
@@ -1205,17 +1223,20 @@ async function claudeAcpRemoteLauncher(session) {
1205
1223
  return;
1206
1224
  }
1207
1225
  case "tool-result": {
1226
+ emitPendingThinkingMessage();
1208
1227
  const resultText = index.truncateDisplayMessage(msg.result, 200);
1209
1228
  messageBuffer.addMessage(resultText ? `Result: ${resultText}` : "Tool completed", "result");
1210
1229
  forwardAgentMessage(msg);
1211
1230
  return;
1212
1231
  }
1213
1232
  case "fs-edit": {
1233
+ emitPendingThinkingMessage();
1214
1234
  messageBuffer.addMessage(`File edit: ${msg.description}`, "tool");
1215
1235
  forwardAgentMessage(msg);
1216
1236
  return;
1217
1237
  }
1218
1238
  case "terminal-output": {
1239
+ emitPendingThinkingMessage();
1219
1240
  const output = index.formatDisplayMessage(msg.data);
1220
1241
  messageBuffer.addMessage(output, "result");
1221
1242
  forwardAgentMessage({
@@ -1225,16 +1246,19 @@ async function claudeAcpRemoteLauncher(session) {
1225
1246
  return;
1226
1247
  }
1227
1248
  case "permission-request": {
1249
+ emitPendingThinkingMessage();
1228
1250
  forwardAgentMessage(msg);
1229
1251
  return;
1230
1252
  }
1231
1253
  case "token-count": {
1254
+ emitPendingThinkingMessage();
1232
1255
  forwardAgentMessage(msg);
1233
1256
  return;
1234
1257
  }
1235
1258
  case "exec-approval-request":
1236
1259
  case "patch-apply-begin":
1237
1260
  case "patch-apply-end": {
1261
+ emitPendingThinkingMessage();
1238
1262
  forwardAgentMessage(msg);
1239
1263
  return;
1240
1264
  }
@@ -1243,10 +1267,7 @@ async function claudeAcpRemoteLauncher(session) {
1243
1267
  const payload = msg.payload;
1244
1268
  const thinkingText = typeof payload?.text === "string" ? payload.text : "";
1245
1269
  if (thinkingText) {
1246
- session.client.sendAgentMessage("claude", {
1247
- type: "thinking",
1248
- text: thinkingText
1249
- });
1270
+ accumulatedThinking += thinkingText;
1250
1271
  if (!isResponseInProgress) {
1251
1272
  const preview = `[Thinking] ${thinkingText.substring(0, 100)}...`;
1252
1273
  if (currentThinkingMessageId) {
@@ -1433,6 +1454,7 @@ ${systemPrompt}` : systemPrompt,
1433
1454
  const isAbortError = error instanceof Error && error.name === "AbortError";
1434
1455
  const isExpectedInterruption = isAbortError || abortController.signal.aborted || shouldExit;
1435
1456
  turnStatus = "turn_aborted";
1457
+ emitPendingThinkingMessage();
1436
1458
  session.client.sendAgentMessage("claude", {
1437
1459
  type: "turn_aborted",
1438
1460
  id: node_crypto.randomUUID()
@@ -1,8 +1,8 @@
1
1
  import { randomUUID } from 'node:crypto';
2
- import { l as logger, g as backoff, h as delay, j as AsyncLock, c as configuration, s as startOfflineReconnection, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError } from './api-DF9A136-.mjs';
2
+ import { l as logger, g as backoff, h as delay, j as AsyncLock, c as configuration, s as startOfflineReconnection, b as connectionState, A as ApiClient, i as isAuthenticationRequiredError } from './api-BYKV7vX6.mjs';
3
3
  import 'cross-spawn';
4
4
  import '@agentclientprotocol/sdk';
5
- import { m as getProjectPath, F as Future, n as claudeLocal, E as ExitCodeError, o as trimIdent, q as createClaudeBackend, f as formatDisplayMessage, t as truncateDisplayMessage, u as claudeCheckSession, w as projectPath, x as mapToClaudeMode, P as PushableAsyncIterable, y as query, A as AbortError, e as stopCaffeinate, p as publishSessionRegistration, z as getEnvironmentInfo, a as createSessionMetadata, B as startCaffeinate, b as closeProviderSession } from './index-B5e-MA1d.mjs';
5
+ import { m as getProjectPath, F as Future, n as claudeLocal, E as ExitCodeError, o as trimIdent, q as createClaudeBackend, f as formatDisplayMessage, t as truncateDisplayMessage, u as claudeCheckSession, w as projectPath, x as mapToClaudeMode, P as PushableAsyncIterable, y as query, A as AbortError, e as stopCaffeinate, p as publishSessionRegistration, z as getEnvironmentInfo, a as createSessionMetadata, B as startCaffeinate, b as closeProviderSession } from './index-BAhlFq45.mjs';
6
6
  import 'ps-list';
7
7
  import 'fs';
8
8
  import 'path';
@@ -13,7 +13,7 @@ import { dirname, basename, join, resolve } from 'node:path';
13
13
  import { homedir } from 'node:os';
14
14
  import { execSync } from 'node:child_process';
15
15
  import 'node:readline';
16
- import './persistence-BsWBBi7E.mjs';
16
+ import './persistence-B8Wgn6aN.mjs';
17
17
  import { readFile } from 'node:fs/promises';
18
18
  import { stat, watch, access } from 'fs/promises';
19
19
  import 'crypto';
@@ -24,9 +24,9 @@ import 'tweetnacl';
24
24
  import 'open';
25
25
  import React, { useState, useRef, useEffect, useCallback } from 'react';
26
26
  import { useStdout, useInput, Box, Text, render } from 'ink';
27
- import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-C3kHFqeq.mjs';
27
+ import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-WT-tvePy.mjs';
28
28
  import { R as RawJSONLinesSchema } from './types-CiliQpqS.mjs';
29
- import { B as BasePermissionHandler, d as MessageBuffer, C as ConversationHistory$1, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, i as finalizeHappyOrgTurn, l as launchRuntimeHandleWithFactoryResult, k as forwardAgentMessageToProviderSession, s as syncControlledByUserState, r as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, M as MissingMachineIdError, b as MessageQueue2, h as hashObject, c as registerKillSessionHandler } from './registerKillSessionHandler-DmG1p8l7.mjs';
29
+ import { B as BasePermissionHandler, d as MessageBuffer, C as ConversationHistory$1, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, i as finalizeHappyOrgTurn, l as launchRuntimeHandleWithFactoryResult, k as forwardAgentMessageToProviderSession, s as syncControlledByUserState, r as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, M as MissingMachineIdError, b as MessageQueue2, h as hashObject, c as registerKillSessionHandler } from './registerKillSessionHandler-5DVlZaJx.mjs';
30
30
  import 'socket.io-client';
31
31
  import 'expo-server-sdk';
32
32
  import { isDeepStrictEqual } from 'node:util';
@@ -999,6 +999,7 @@ async function claudeAcpRemoteLauncher(session) {
999
999
  let currentModeHash = null;
1000
1000
  let pending = null;
1001
1001
  let accumulatedResponse = "";
1002
+ let accumulatedThinking = "";
1002
1003
  let isResponseInProgress = false;
1003
1004
  let taskStartedSent = false;
1004
1005
  let currentAssistantMessageId = null;
@@ -1049,12 +1050,25 @@ async function claudeAcpRemoteLauncher(session) {
1049
1050
  };
1050
1051
  const resetTurnState = () => {
1051
1052
  accumulatedResponse = "";
1053
+ accumulatedThinking = "";
1052
1054
  isResponseInProgress = false;
1053
1055
  taskStartedSent = false;
1054
1056
  currentAssistantMessageId = null;
1055
1057
  currentThinkingMessageId = null;
1056
1058
  session.onThinkingChange(false);
1057
1059
  };
1060
+ const emitPendingThinkingMessage = () => {
1061
+ const thinking = accumulatedThinking.trim();
1062
+ if (!thinking) {
1063
+ return false;
1064
+ }
1065
+ session.client.sendAgentMessage("claude", {
1066
+ type: "thinking",
1067
+ text: thinking
1068
+ });
1069
+ accumulatedThinking = "";
1070
+ return true;
1071
+ };
1058
1072
  const emitFinalAssistantMessage = (finalMessageText) => {
1059
1073
  const finalMessage = (finalMessageText ?? accumulatedResponse).trim();
1060
1074
  if (!finalMessage) {
@@ -1150,6 +1164,7 @@ async function claudeAcpRemoteLauncher(session) {
1150
1164
  if (!text) {
1151
1165
  return;
1152
1166
  }
1167
+ emitPendingThinkingMessage();
1153
1168
  if (!isResponseInProgress) {
1154
1169
  if (currentThinkingMessageId) {
1155
1170
  messageBuffer.removeMessage(currentThinkingMessageId);
@@ -1182,6 +1197,7 @@ async function claudeAcpRemoteLauncher(session) {
1182
1197
  return;
1183
1198
  }
1184
1199
  if (msg.status === "idle" || msg.status === "stopped") {
1200
+ emitPendingThinkingMessage();
1185
1201
  session.onThinkingChange(false);
1186
1202
  if (msg.status === "stopped" && !turnInFlight) {
1187
1203
  void recoverUnexpectedRuntimeStop(msg.detail);
@@ -1189,11 +1205,13 @@ async function claudeAcpRemoteLauncher(session) {
1189
1205
  return;
1190
1206
  }
1191
1207
  if (msg.status === "error") {
1208
+ emitPendingThinkingMessage();
1192
1209
  messageBuffer.addMessage(`Error: ${normalizeClaudeBackendError(msg.detail)}`, "status");
1193
1210
  }
1194
1211
  return;
1195
1212
  }
1196
1213
  case "tool-call": {
1214
+ emitPendingThinkingMessage();
1197
1215
  const toolArgs = truncateDisplayMessage(msg.args, 100);
1198
1216
  messageBuffer.addMessage(
1199
1217
  `Executing: ${msg.toolName}${toolArgs ? ` ${toolArgs}` : ""}`,
@@ -1203,17 +1221,20 @@ async function claudeAcpRemoteLauncher(session) {
1203
1221
  return;
1204
1222
  }
1205
1223
  case "tool-result": {
1224
+ emitPendingThinkingMessage();
1206
1225
  const resultText = truncateDisplayMessage(msg.result, 200);
1207
1226
  messageBuffer.addMessage(resultText ? `Result: ${resultText}` : "Tool completed", "result");
1208
1227
  forwardAgentMessage(msg);
1209
1228
  return;
1210
1229
  }
1211
1230
  case "fs-edit": {
1231
+ emitPendingThinkingMessage();
1212
1232
  messageBuffer.addMessage(`File edit: ${msg.description}`, "tool");
1213
1233
  forwardAgentMessage(msg);
1214
1234
  return;
1215
1235
  }
1216
1236
  case "terminal-output": {
1237
+ emitPendingThinkingMessage();
1217
1238
  const output = formatDisplayMessage(msg.data);
1218
1239
  messageBuffer.addMessage(output, "result");
1219
1240
  forwardAgentMessage({
@@ -1223,16 +1244,19 @@ async function claudeAcpRemoteLauncher(session) {
1223
1244
  return;
1224
1245
  }
1225
1246
  case "permission-request": {
1247
+ emitPendingThinkingMessage();
1226
1248
  forwardAgentMessage(msg);
1227
1249
  return;
1228
1250
  }
1229
1251
  case "token-count": {
1252
+ emitPendingThinkingMessage();
1230
1253
  forwardAgentMessage(msg);
1231
1254
  return;
1232
1255
  }
1233
1256
  case "exec-approval-request":
1234
1257
  case "patch-apply-begin":
1235
1258
  case "patch-apply-end": {
1259
+ emitPendingThinkingMessage();
1236
1260
  forwardAgentMessage(msg);
1237
1261
  return;
1238
1262
  }
@@ -1241,10 +1265,7 @@ async function claudeAcpRemoteLauncher(session) {
1241
1265
  const payload = msg.payload;
1242
1266
  const thinkingText = typeof payload?.text === "string" ? payload.text : "";
1243
1267
  if (thinkingText) {
1244
- session.client.sendAgentMessage("claude", {
1245
- type: "thinking",
1246
- text: thinkingText
1247
- });
1268
+ accumulatedThinking += thinkingText;
1248
1269
  if (!isResponseInProgress) {
1249
1270
  const preview = `[Thinking] ${thinkingText.substring(0, 100)}...`;
1250
1271
  if (currentThinkingMessageId) {
@@ -1431,6 +1452,7 @@ ${systemPrompt}` : systemPrompt,
1431
1452
  const isAbortError = error instanceof Error && error.name === "AbortError";
1432
1453
  const isExpectedInterruption = isAbortError || abortController.signal.aborted || shouldExit;
1433
1454
  turnStatus = "turn_aborted";
1455
+ emitPendingThinkingMessage();
1434
1456
  session.client.sendAgentMessage("claude", {
1435
1457
  type: "turn_aborted",
1436
1458
  id: randomUUID()
@@ -1,6 +1,6 @@
1
- import { l as logger, b as connectionState, A as ApiClient } from './api-DF9A136-.mjs';
2
- import { B as BasePermissionHandler, h as hashObject, d as MessageBuffer, C as ConversationHistory$1, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, i as finalizeHappyOrgTurn, c as registerKillSessionHandler, l as launchRuntimeHandleWithFactoryResult, j as inferToolResultError, k as forwardAgentMessageToProviderSession, e as ensureManagedProviderMachine, M as MissingMachineIdError, b as MessageQueue2, r as resolveHappyOrgQueuedTurn, s as syncControlledByUserState } from './registerKillSessionHandler-DmG1p8l7.mjs';
3
- import { f as formatDisplayMessage, v as validateCodexAcpSpawn, h as createCodexBackend, t as truncateDisplayMessage, b as closeProviderSession, e as stopCaffeinate, i as readManagedSessionTag, j as resolveManagedSessionTag } from './index-B5e-MA1d.mjs';
1
+ import { l as logger, b as connectionState, A as ApiClient } from './api-BYKV7vX6.mjs';
2
+ import { B as BasePermissionHandler, h as hashObject, d as MessageBuffer, C as ConversationHistory$1, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, i as finalizeHappyOrgTurn, c as registerKillSessionHandler, l as launchRuntimeHandleWithFactoryResult, j as inferToolResultError, k as forwardAgentMessageToProviderSession, e as ensureManagedProviderMachine, M as MissingMachineIdError, b as MessageQueue2, r as resolveHappyOrgQueuedTurn, s as syncControlledByUserState } from './registerKillSessionHandler-5DVlZaJx.mjs';
3
+ import { f as formatDisplayMessage, v as validateCodexAcpSpawn, h as createCodexBackend, t as truncateDisplayMessage, b as closeProviderSession, e as stopCaffeinate, i as readManagedSessionTag, j as resolveManagedSessionTag } from './index-BAhlFq45.mjs';
4
4
  import 'cross-spawn';
5
5
  import '@agentclientprotocol/sdk';
6
6
  import { randomUUID } from 'node:crypto';
@@ -14,7 +14,7 @@ import 'node:path';
14
14
  import 'node:os';
15
15
  import 'node:child_process';
16
16
  import 'node:readline';
17
- import './persistence-BsWBBi7E.mjs';
17
+ import './persistence-B8Wgn6aN.mjs';
18
18
  import 'node:fs/promises';
19
19
  import 'fs/promises';
20
20
  import 'crypto';
@@ -25,8 +25,8 @@ import 'tweetnacl';
25
25
  import 'open';
26
26
  import React, { useState, useRef, useEffect, useCallback } from 'react';
27
27
  import { useStdout, useInput, Box, Text, render } from 'ink';
28
- import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-C3kHFqeq.mjs';
29
- import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-CRXr7Axk.mjs';
28
+ import { c as createKeepAliveController, P as ProviderSelectionHandler, r as runModeLoop } from './ProviderSelectionHandler-WT-tvePy.mjs';
29
+ import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-C0A6Jr8V.mjs';
30
30
  import 'zod';
31
31
  import 'socket.io-client';
32
32
  import 'expo-server-sdk';
@@ -774,7 +774,6 @@ async function codexRemoteLauncher(session) {
774
774
  return;
775
775
  }
776
776
  if (msg.status === "idle" || msg.status === "stopped") {
777
- emitPendingAssistantMessageDelta();
778
777
  reasoningProcessor.completeCurrent();
779
778
  if (msg.status === "stopped" && !turnInFlight) {
780
779
  void recoverUnexpectedRuntimeStop(msg.detail);
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var api = require('./api-CvtU4DI-.cjs');
4
- var registerKillSessionHandler = require('./registerKillSessionHandler-3ytO-yBI.cjs');
5
- var index = require('./index-DA-K28E3.cjs');
3
+ var api = require('./api-CdGT5hsH.cjs');
4
+ var registerKillSessionHandler = require('./registerKillSessionHandler-DjxtkGMv.cjs');
5
+ var index = require('./index-D_S_7bqK.cjs');
6
6
  require('cross-spawn');
7
7
  require('@agentclientprotocol/sdk');
8
8
  var node_crypto = require('node:crypto');
@@ -16,7 +16,7 @@ require('node:path');
16
16
  require('node:os');
17
17
  require('node:child_process');
18
18
  require('node:readline');
19
- require('./persistence-CKgPuZRR.cjs');
19
+ require('./persistence-CMvrZ4SA.cjs');
20
20
  require('node:fs/promises');
21
21
  require('fs/promises');
22
22
  require('crypto');
@@ -27,8 +27,8 @@ require('tweetnacl');
27
27
  require('open');
28
28
  var React = require('react');
29
29
  var ink = require('ink');
30
- var ProviderSelectionHandler = require('./ProviderSelectionHandler-Drg2Pp1-.cjs');
31
- var BaseReasoningProcessor = require('./BaseReasoningProcessor-C3oDrA4i.cjs');
30
+ var ProviderSelectionHandler = require('./ProviderSelectionHandler-DI9QK1iY.cjs');
31
+ var BaseReasoningProcessor = require('./BaseReasoningProcessor-iSuaFeZH.cjs');
32
32
  require('zod');
33
33
  require('socket.io-client');
34
34
  require('expo-server-sdk');
@@ -776,7 +776,6 @@ async function codexRemoteLauncher(session) {
776
776
  return;
777
777
  }
778
778
  if (msg.status === "idle" || msg.status === "stopped") {
779
- emitPendingAssistantMessageDelta();
780
779
  reasoningProcessor.completeCurrent();
781
780
  if (msg.status === "stopped" && !turnInFlight) {
782
781
  void recoverUnexpectedRuntimeStop(msg.detail);
@@ -1,10 +1,10 @@
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 { l as logger, b as connectionState, A as ApiClient } from './api-DF9A136-.mjs';
5
- import { B as BasePermissionHandler, C as ConversationHistory$1, r as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, M as MissingMachineIdError, s as syncControlledByUserState, b as MessageQueue2, h as hashObject, c as registerKillSessionHandler, d as MessageBuffer, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, i as finalizeHappyOrgTurn, l as launchRuntimeHandleWithFactoryResult, j as inferToolResultError, k as forwardAgentMessageToProviderSession } from './registerKillSessionHandler-DmG1p8l7.mjs';
6
- import { g as getInitialGeminiModel, r as readGeminiLocalConfig, G as GEMINI_MODEL_ENV, b as closeProviderSession, s as saveGeminiModelToConfig, d as createGeminiBackend, e as stopCaffeinate } from './index-B5e-MA1d.mjs';
7
- import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-CRXr7Axk.mjs';
4
+ import { l as logger, b as connectionState, A as ApiClient } from './api-BYKV7vX6.mjs';
5
+ import { B as BasePermissionHandler, C as ConversationHistory$1, r as resolveHappyOrgQueuedTurn, e as ensureManagedProviderMachine, M as MissingMachineIdError, s as syncControlledByUserState, b as MessageQueue2, h as hashObject, c as registerKillSessionHandler, d as MessageBuffer, f as buildHappyOrgTurnPrompt, w as waitForResponseCompleteWithAbort, i as finalizeHappyOrgTurn, l as launchRuntimeHandleWithFactoryResult, j as inferToolResultError, k as forwardAgentMessageToProviderSession } from './registerKillSessionHandler-5DVlZaJx.mjs';
6
+ import { g as getInitialGeminiModel, r as readGeminiLocalConfig, G as GEMINI_MODEL_ENV, b as closeProviderSession, s as saveGeminiModelToConfig, d as createGeminiBackend, e as stopCaffeinate } from './index-BAhlFq45.mjs';
7
+ import { B as BaseReasoningProcessor, b as bootstrapManagedProviderSession } from './BaseReasoningProcessor-C0A6Jr8V.mjs';
8
8
  import 'cross-spawn';
9
9
  import '@agentclientprotocol/sdk';
10
10
  import 'ps-list';
@@ -15,7 +15,7 @@ import 'node:child_process';
15
15
  import 'node:readline';
16
16
  import 'tweetnacl';
17
17
  import 'axios';
18
- import './persistence-BsWBBi7E.mjs';
18
+ import './persistence-B8Wgn6aN.mjs';
19
19
  import 'open';
20
20
  import 'chalk';
21
21
  import 'fs';
@@ -3,10 +3,10 @@
3
3
  var ink = require('ink');
4
4
  var React = require('react');
5
5
  var node_crypto = require('node:crypto');
6
- var api = require('./api-CvtU4DI-.cjs');
7
- var registerKillSessionHandler = require('./registerKillSessionHandler-3ytO-yBI.cjs');
8
- var index = require('./index-DA-K28E3.cjs');
9
- var BaseReasoningProcessor = require('./BaseReasoningProcessor-C3oDrA4i.cjs');
6
+ var api = require('./api-CdGT5hsH.cjs');
7
+ var registerKillSessionHandler = require('./registerKillSessionHandler-DjxtkGMv.cjs');
8
+ var index = require('./index-D_S_7bqK.cjs');
9
+ var BaseReasoningProcessor = require('./BaseReasoningProcessor-iSuaFeZH.cjs');
10
10
  require('cross-spawn');
11
11
  require('@agentclientprotocol/sdk');
12
12
  require('ps-list');
@@ -17,7 +17,7 @@ require('node:child_process');
17
17
  require('node:readline');
18
18
  require('tweetnacl');
19
19
  require('axios');
20
- require('./persistence-CKgPuZRR.cjs');
20
+ require('./persistence-CMvrZ4SA.cjs');
21
21
  require('open');
22
22
  require('chalk');
23
23
  require('fs');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "happy-imou-cloud",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "description": "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI",
5
5
  "author": "long.zhu",
6
6
  "license": "MIT",