happy-imou-cloud 2.1.35 → 2.1.37

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-DbYQw-IT.mjs → BaseReasoningProcessor-CotgApeZ.mjs} +2 -2
  2. package/dist/{BaseReasoningProcessor-vn-Cvazk.cjs → BaseReasoningProcessor-Do2r_eVW.cjs} +2 -2
  3. package/dist/{ProviderSelectionHandler-Dk4HaiPR.mjs → ProviderSelectionHandler-CCsorkyV.mjs} +2 -2
  4. package/dist/{ProviderSelectionHandler-CHXCKI8q.cjs → ProviderSelectionHandler-CywTx_Df.cjs} +2 -2
  5. package/dist/{api-C_wLDBlG.mjs → api-CMJhY7of.mjs} +1 -1
  6. package/dist/{api-CeZTggZF.cjs → api-CexMNqai.cjs} +1 -1
  7. package/dist/{command-Dth-tCSc.mjs → command-C2YB2hE-.mjs} +2 -2
  8. package/dist/{command-djmqu0my.cjs → command-Ct7Eeo2F.cjs} +2 -2
  9. package/dist/{index-l0zi9G9M.mjs → index-4t8rMnvz.mjs} +54 -9
  10. package/dist/{index-CckDTAoL.cjs → index-CQ2Yq72y.cjs} +57 -11
  11. package/dist/index.cjs +2 -2
  12. package/dist/index.mjs +2 -2
  13. package/dist/lib.cjs +1 -1
  14. package/dist/lib.d.cts +80 -80
  15. package/dist/lib.d.mts +80 -80
  16. package/dist/lib.mjs +1 -1
  17. package/dist/{registerKillSessionHandler-CMyw8PFY.cjs → registerKillSessionHandler-C1PIogKI.cjs} +99 -16
  18. package/dist/{registerKillSessionHandler-BxbrcRl3.mjs → registerKillSessionHandler-CLFQ8bQP.mjs} +99 -16
  19. package/dist/{runClaude-BK-xZzSe.mjs → runClaude-BiFuU4AP.mjs} +8 -5
  20. package/dist/{runClaude-CniBKZZh.cjs → runClaude-L4G4BbIJ.cjs} +8 -5
  21. package/dist/{runCodex-C4X1beyB.mjs → runCodex-C0wjgp2b.mjs} +9 -6
  22. package/dist/{runCodex-Dl1BeoP7.cjs → runCodex-CaUoS6E4.cjs} +9 -6
  23. package/dist/{runGemini-Bw9Z5tD5.cjs → runGemini-DhYi_crP.cjs} +8 -5
  24. package/dist/{runGemini-Bigzf0Vw.mjs → runGemini-DxQX5VhV.mjs} +8 -5
  25. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { a as createSessionMetadata, p as publishSessionRegistration } from './index-l0zi9G9M.mjs';
2
- import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-C_wLDBlG.mjs';
1
+ import { a as createSessionMetadata, p as publishSessionRegistration } from './index-4t8rMnvz.mjs';
2
+ import { s as startOfflineReconnection, c as configuration, i as isAuthenticationRequiredError, l as logger } from './api-CMJhY7of.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-CckDTAoL.cjs');
4
- var persistence = require('./api-CeZTggZF.cjs');
3
+ var index = require('./index-CQ2Yq72y.cjs');
4
+ var persistence = require('./api-CexMNqai.cjs');
5
5
  var node_events = require('node:events');
6
6
  var node_crypto = require('node:crypto');
7
7
 
@@ -1,5 +1,5 @@
1
- import { l as logger } from './api-C_wLDBlG.mjs';
2
- import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-BxbrcRl3.mjs';
1
+ import { l as logger } from './api-CMJhY7of.mjs';
2
+ import { g as getPendingInteractionTimeoutMs, I as INTERACTION_SUPERSEDED_ERROR, a as INTERACTION_TIMED_OUT_ERROR } from './registerKillSessionHandler-CLFQ8bQP.mjs';
3
3
 
4
4
  async function runModeLoop(opts) {
5
5
  let currentMode = opts.startingMode;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./api-CeZTggZF.cjs');
4
- var registerKillSessionHandler = require('./registerKillSessionHandler-CMyw8PFY.cjs');
3
+ var persistence = require('./api-CexMNqai.cjs');
4
+ var registerKillSessionHandler = require('./registerKillSessionHandler-C1PIogKI.cjs');
5
5
 
6
6
  async function runModeLoop(opts) {
7
7
  let currentMode = opts.startingMode;
@@ -18,7 +18,7 @@ import { spawn } from 'node:child_process';
18
18
  import { Expo } from 'expo-server-sdk';
19
19
 
20
20
  var name = "happy-imou-cloud";
21
- var version = "2.1.35";
21
+ var version = "2.1.37";
22
22
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
23
23
  var author = "long.zhu";
24
24
  var license = "MIT";
@@ -38,7 +38,7 @@ function _interopNamespaceDefault(e) {
38
38
  var z__namespace = /*#__PURE__*/_interopNamespaceDefault(z);
39
39
 
40
40
  var name = "happy-imou-cloud";
41
- var version = "2.1.35";
41
+ var version = "2.1.37";
42
42
  var description = "hicloud - Imou 企业定制版。关键是 happy!移动端远程 AI 编程工具,支持 Claude Code、Codex 和 Gemini CLI";
43
43
  var author = "long.zhu";
44
44
  var license = "MIT";
@@ -1,6 +1,6 @@
1
- import { c as createDefaultRuntimeShell } from './index-l0zi9G9M.mjs';
1
+ import { c as createDefaultRuntimeShell } from './index-4t8rMnvz.mjs';
2
2
  import 'chalk';
3
- import './api-C_wLDBlG.mjs';
3
+ import './api-CMJhY7of.mjs';
4
4
  import 'axios';
5
5
  import 'fs';
6
6
  import 'node:fs';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- var index = require('./index-CckDTAoL.cjs');
3
+ var index = require('./index-CQ2Yq72y.cjs');
4
4
  require('chalk');
5
- require('./api-CeZTggZF.cjs');
5
+ require('./api-CexMNqai.cjs');
6
6
  require('axios');
7
7
  require('fs');
8
8
  require('node: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 { l as logger, m as encodeBase64, c as configuration, n as readCredentials, o as ensureSigningCredentials, r as readSettings, u as updateSettings, q as encodeBase64Url, j as delay, t as buildClientHeaders, v as decodeBase64, w as writeCredentialsLegacy, x as writeCredentialsDataKey, y as readDaemonState, z as HAPPY_CLOUD_DAEMON_PORT, B as clearDaemonState, C as packageJson, i as isAuthenticationRequiredError, D as acquireDaemonLock, E as writeDaemonState, A as ApiClient, F as releaseDaemonLock, G as validateProfileForAgent, I as getProfileEnvironmentVariables, J as clearCredentials, K as clearMachineId, L as readHappyOrgDispatchTruthSnapshot, M as processHappyOrgRepoRequests, N as HappyOrgTurnReportSchema, O as recordHappyOrgTurnReport, P as MessageContentSchema, Q as buildSocketAuth, R as encrypt, H as HeadTailPreviewBuffer, S as getLatestDaemonLog } from './api-C_wLDBlG.mjs';
2
+ import { l as logger, m as encodeBase64, c as configuration, n as readCredentials, o as ensureSigningCredentials, r as readSettings, u as updateSettings, q as encodeBase64Url, j as delay, t as buildClientHeaders, v as decodeBase64, w as writeCredentialsLegacy, x as writeCredentialsDataKey, y as readDaemonState, z as HAPPY_CLOUD_DAEMON_PORT, B as clearDaemonState, C as packageJson, i as isAuthenticationRequiredError, D as acquireDaemonLock, E as writeDaemonState, A as ApiClient, F as releaseDaemonLock, G as validateProfileForAgent, I as getProfileEnvironmentVariables, J as clearCredentials, K as clearMachineId, L as readHappyOrgDispatchTruthSnapshot, M as processHappyOrgRepoRequests, N as HappyOrgTurnReportSchema, O as recordHappyOrgTurnReport, P as MessageContentSchema, Q as buildSocketAuth, R as encrypt, H as HeadTailPreviewBuffer, S as getLatestDaemonLog } from './api-CMJhY7of.mjs';
3
3
  import { z } from 'zod';
4
4
  import fs, { writeFile as writeFile$1, rename, unlink as unlink$1 } from 'fs/promises';
5
5
  import os$1, { homedir } from 'os';
@@ -6988,6 +6988,40 @@ class CursorTransport extends DefaultTransport {
6988
6988
  }
6989
6989
  const cursorTransport = new CursorTransport();
6990
6990
 
6991
+ function isRecord$2(value) {
6992
+ return !!value && typeof value === "object" && !Array.isArray(value);
6993
+ }
6994
+ function hasOnlyAllowedKeys(record, allowedKeys) {
6995
+ return Object.keys(record).every((key) => allowedKeys.includes(key));
6996
+ }
6997
+ function isTerminalReferenceItem(value) {
6998
+ if (!isRecord$2(value)) {
6999
+ return false;
7000
+ }
7001
+ const hasTerminalId = typeof value.terminalId === "string" && value.terminalId.length > 0 || typeof value.terminal_id === "string" && value.terminal_id.length > 0;
7002
+ return hasTerminalId && value.type === "terminal" && hasOnlyAllowedKeys(value, ["terminalId", "terminal_id", "type", "id"]);
7003
+ }
7004
+ function isTerminalReferenceOnlyPayload(value) {
7005
+ if (Array.isArray(value)) {
7006
+ return value.length > 0 && value.every((entry) => isTerminalReferenceOnlyPayload(entry));
7007
+ }
7008
+ if (!isRecord$2(value)) {
7009
+ return false;
7010
+ }
7011
+ if (isTerminalReferenceItem(value)) {
7012
+ return true;
7013
+ }
7014
+ const items = Array.isArray(value.items) ? value.items : null;
7015
+ if (items && items.length > 0 && items.every((entry) => isTerminalReferenceOnlyPayload(entry)) && hasOnlyAllowedKeys(value, ["items", "type"])) {
7016
+ return true;
7017
+ }
7018
+ const content = "content" in value ? value.content : void 0;
7019
+ if (content !== void 0 && isTerminalReferenceOnlyPayload(content) && hasOnlyAllowedKeys(value, ["content", "type"])) {
7020
+ return true;
7021
+ }
7022
+ return false;
7023
+ }
7024
+
6991
7025
  const DEFAULT_IDLE_TIMEOUT_MS = 500;
6992
7026
  const DEFAULT_TOOL_CALL_TIMEOUT_MS = 10 * 6e4;
6993
7027
  const DEFAULT_TOOL_CALL_OUTPUT_PREVIEW_HEAD_BYTES = 4096;
@@ -7206,6 +7240,9 @@ function isRecord$1(value) {
7206
7240
  return typeof value === "object" && value !== null && !Array.isArray(value);
7207
7241
  }
7208
7242
  function extractNestedToolContentText(value) {
7243
+ if (isTerminalReferenceOnlyPayload(value)) {
7244
+ return null;
7245
+ }
7209
7246
  if (typeof value === "string") {
7210
7247
  return value.length > 0 ? value : null;
7211
7248
  }
@@ -7274,6 +7311,9 @@ function extractToolOutputChunk(content) {
7274
7311
  if (!isRecord$1(content)) {
7275
7312
  return null;
7276
7313
  }
7314
+ if (isTerminalReferenceOnlyPayload(content)) {
7315
+ return null;
7316
+ }
7277
7317
  const outputKeys = ["stdout", "stderr", "output", "text", "message", "data", "error", "reason"];
7278
7318
  const hasOutputKey = outputKeys.some((key) => key in content);
7279
7319
  if (!hasOutputKey && looksLikeToolMetadata(content)) {
@@ -7321,7 +7361,10 @@ function mergeStreamedOutputWithResult(content, streamedOutput) {
7321
7361
  }
7322
7362
  return content;
7323
7363
  }
7324
- function buildCompletedToolResult(_toolKind, content, streamedOutput) {
7364
+ function buildCompletedToolResult(toolKind, content, streamedOutput) {
7365
+ if (isTerminalLikeToolKind(toolKind) && isTerminalReferenceOnlyPayload(content)) {
7366
+ return void 0;
7367
+ }
7325
7368
  return mergeStreamedOutputWithResult(content, streamedOutput);
7326
7369
  }
7327
7370
  function extractErrorDetail(content) {
@@ -11599,6 +11642,8 @@ const RAW_TO_CANONICAL_TOOL_NAME_LOOKUP = {
11599
11642
  bash: "Bash",
11600
11643
  shell: "Bash",
11601
11644
  execute: "Bash",
11645
+ fetch: "WebFetch",
11646
+ search: "WebSearch",
11602
11647
  claudebash: "Bash",
11603
11648
  codexbash: "Bash",
11604
11649
  geminibash: "Bash",
@@ -11670,14 +11715,14 @@ var launch = /*#__PURE__*/Object.freeze({
11670
11715
  const unifiedProviderExecutors = {
11671
11716
  claude: async (opts) => {
11672
11717
  const claudeOptions = opts.claudeOptions ?? {};
11673
- const { runClaude } = await import('./runClaude-BK-xZzSe.mjs');
11718
+ const { runClaude } = await import('./runClaude-BiFuU4AP.mjs');
11674
11719
  await runClaude(opts.credentials, {
11675
11720
  ...claudeOptions,
11676
11721
  startingMode: claudeOptions.startingMode ?? (claudeOptions.startedBy === "daemon" ? "remote" : void 0)
11677
11722
  });
11678
11723
  },
11679
11724
  codex: async (opts) => {
11680
- const { runCodex } = await import('./runCodex-C4X1beyB.mjs');
11725
+ const { runCodex } = await import('./runCodex-C0wjgp2b.mjs');
11681
11726
  await runCodex({
11682
11727
  credentials: opts.credentials,
11683
11728
  startedBy: opts.startedBy,
@@ -11686,7 +11731,7 @@ const unifiedProviderExecutors = {
11686
11731
  });
11687
11732
  },
11688
11733
  gemini: async (opts) => {
11689
- const { runGemini } = await import('./runGemini-Bigzf0Vw.mjs');
11734
+ const { runGemini } = await import('./runGemini-DxQX5VhV.mjs');
11690
11735
  await runGemini({
11691
11736
  credentials: opts.credentials,
11692
11737
  startedBy: opts.startedBy
@@ -11769,7 +11814,7 @@ function shouldRunMainClaudeFlow(opts) {
11769
11814
  return;
11770
11815
  } else if (subcommand === "runtime") {
11771
11816
  if (args[1] === "providers") {
11772
- const { renderRuntimeProviders } = await import('./command-Dth-tCSc.mjs');
11817
+ const { renderRuntimeProviders } = await import('./command-C2YB2hE-.mjs');
11773
11818
  console.log(renderRuntimeProviders());
11774
11819
  return;
11775
11820
  }
@@ -11975,8 +12020,8 @@ function shouldRunMainClaudeFlow(opts) {
11975
12020
  const projectId = args[3];
11976
12021
  try {
11977
12022
  const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
11978
- const { readCredentials: readCredentials2 } = await import('./api-C_wLDBlG.mjs').then(function (n) { return n.T; });
11979
- const { ApiClient: ApiClient2 } = await import('./api-C_wLDBlG.mjs').then(function (n) { return n.U; });
12023
+ const { readCredentials: readCredentials2 } = await import('./api-CMJhY7of.mjs').then(function (n) { return n.T; });
12024
+ const { ApiClient: ApiClient2 } = await import('./api-CMJhY7of.mjs').then(function (n) { return n.U; });
11980
12025
  let userEmail = void 0;
11981
12026
  try {
11982
12027
  const credentials = await readCredentials2();
@@ -12394,4 +12439,4 @@ ${chalk.bold("Examples:")}
12394
12439
  }
12395
12440
  }
12396
12441
 
12397
- export { AbortError as A, startCaffeinate as B, ExitCodeError as E, Future as F, GEMINI_MODEL_ENV as G, PushableAsyncIterable as P, RuntimeShell as R, createSessionMetadata as a, closeProviderSession as b, createDefaultRuntimeShell as c, createGeminiBackend as d, stopCaffeinate as e, formatDisplayMessage as f, getInitialGeminiModel as g, createCodexBackend as h, readManagedSessionTag as i, resolveManagedSessionTag as j, initialMachineMetadata as k, resolveCanonicalToolNameV2 as l, getProjectPath as m, claudeLocal as n, trimIdent as o, publishSessionRegistration as p, createClaudeBackend as q, readGeminiLocalConfig as r, saveGeminiModelToConfig as s, truncateDisplayMessage as t, claudeCheckSession as u, validateCodexAcpSpawn as v, projectPath as w, mapToClaudeMode as x, query as y, getEnvironmentInfo as z };
12442
+ export { AbortError as A, getEnvironmentInfo as B, startCaffeinate as C, ExitCodeError as E, Future as F, GEMINI_MODEL_ENV as G, PushableAsyncIterable as P, RuntimeShell as R, createSessionMetadata as a, closeProviderSession as b, createDefaultRuntimeShell as c, createGeminiBackend as d, stopCaffeinate as e, formatDisplayMessage as f, getInitialGeminiModel as g, createCodexBackend as h, readManagedSessionTag as i, resolveManagedSessionTag as j, initialMachineMetadata as k, resolveCanonicalToolNameV2 as l, isTerminalReferenceOnlyPayload as m, getProjectPath as n, claudeLocal as o, publishSessionRegistration as p, trimIdent as q, readGeminiLocalConfig as r, saveGeminiModelToConfig as s, truncateDisplayMessage as t, createClaudeBackend as u, validateCodexAcpSpawn as v, claudeCheckSession as w, projectPath as x, mapToClaudeMode as y, query as z };
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var chalk = require('chalk');
4
- var persistence = require('./api-CeZTggZF.cjs');
4
+ var persistence = require('./api-CexMNqai.cjs');
5
5
  var z = require('zod');
6
6
  var fs$2 = require('fs/promises');
7
7
  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-CckDTAoL.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-CQ2Yq72y.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();
@@ -637,7 +637,7 @@ function setupCleanupHandlers() {
637
637
  });
638
638
  }
639
639
 
640
- 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-CckDTAoL.cjs', document.baseURI).href))));
640
+ 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-CQ2Yq72y.cjs', document.baseURI).href))));
641
641
  function projectPath() {
642
642
  const path = path$1.resolve(__dirname$2, "..");
643
643
  return path;
@@ -7010,6 +7010,40 @@ class CursorTransport extends DefaultTransport {
7010
7010
  }
7011
7011
  const cursorTransport = new CursorTransport();
7012
7012
 
7013
+ function isRecord$2(value) {
7014
+ return !!value && typeof value === "object" && !Array.isArray(value);
7015
+ }
7016
+ function hasOnlyAllowedKeys(record, allowedKeys) {
7017
+ return Object.keys(record).every((key) => allowedKeys.includes(key));
7018
+ }
7019
+ function isTerminalReferenceItem(value) {
7020
+ if (!isRecord$2(value)) {
7021
+ return false;
7022
+ }
7023
+ const hasTerminalId = typeof value.terminalId === "string" && value.terminalId.length > 0 || typeof value.terminal_id === "string" && value.terminal_id.length > 0;
7024
+ return hasTerminalId && value.type === "terminal" && hasOnlyAllowedKeys(value, ["terminalId", "terminal_id", "type", "id"]);
7025
+ }
7026
+ function isTerminalReferenceOnlyPayload(value) {
7027
+ if (Array.isArray(value)) {
7028
+ return value.length > 0 && value.every((entry) => isTerminalReferenceOnlyPayload(entry));
7029
+ }
7030
+ if (!isRecord$2(value)) {
7031
+ return false;
7032
+ }
7033
+ if (isTerminalReferenceItem(value)) {
7034
+ return true;
7035
+ }
7036
+ const items = Array.isArray(value.items) ? value.items : null;
7037
+ if (items && items.length > 0 && items.every((entry) => isTerminalReferenceOnlyPayload(entry)) && hasOnlyAllowedKeys(value, ["items", "type"])) {
7038
+ return true;
7039
+ }
7040
+ const content = "content" in value ? value.content : void 0;
7041
+ if (content !== void 0 && isTerminalReferenceOnlyPayload(content) && hasOnlyAllowedKeys(value, ["content", "type"])) {
7042
+ return true;
7043
+ }
7044
+ return false;
7045
+ }
7046
+
7013
7047
  const DEFAULT_IDLE_TIMEOUT_MS = 500;
7014
7048
  const DEFAULT_TOOL_CALL_TIMEOUT_MS = 10 * 6e4;
7015
7049
  const DEFAULT_TOOL_CALL_OUTPUT_PREVIEW_HEAD_BYTES = 4096;
@@ -7228,6 +7262,9 @@ function isRecord$1(value) {
7228
7262
  return typeof value === "object" && value !== null && !Array.isArray(value);
7229
7263
  }
7230
7264
  function extractNestedToolContentText(value) {
7265
+ if (isTerminalReferenceOnlyPayload(value)) {
7266
+ return null;
7267
+ }
7231
7268
  if (typeof value === "string") {
7232
7269
  return value.length > 0 ? value : null;
7233
7270
  }
@@ -7296,6 +7333,9 @@ function extractToolOutputChunk(content) {
7296
7333
  if (!isRecord$1(content)) {
7297
7334
  return null;
7298
7335
  }
7336
+ if (isTerminalReferenceOnlyPayload(content)) {
7337
+ return null;
7338
+ }
7299
7339
  const outputKeys = ["stdout", "stderr", "output", "text", "message", "data", "error", "reason"];
7300
7340
  const hasOutputKey = outputKeys.some((key) => key in content);
7301
7341
  if (!hasOutputKey && looksLikeToolMetadata(content)) {
@@ -7343,7 +7383,10 @@ function mergeStreamedOutputWithResult(content, streamedOutput) {
7343
7383
  }
7344
7384
  return content;
7345
7385
  }
7346
- function buildCompletedToolResult(_toolKind, content, streamedOutput) {
7386
+ function buildCompletedToolResult(toolKind, content, streamedOutput) {
7387
+ if (isTerminalLikeToolKind(toolKind) && isTerminalReferenceOnlyPayload(content)) {
7388
+ return void 0;
7389
+ }
7347
7390
  return mergeStreamedOutputWithResult(content, streamedOutput);
7348
7391
  }
7349
7392
  function extractErrorDetail(content) {
@@ -10369,7 +10412,7 @@ class AbortError extends Error {
10369
10412
  }
10370
10413
  }
10371
10414
 
10372
- 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-CckDTAoL.cjs', document.baseURI).href)));
10415
+ 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-CQ2Yq72y.cjs', document.baseURI).href)));
10373
10416
  const __dirname$1 = path.join(__filename$1, "..");
10374
10417
  function getGlobalClaudeVersion() {
10375
10418
  try {
@@ -11621,6 +11664,8 @@ const RAW_TO_CANONICAL_TOOL_NAME_LOOKUP = {
11621
11664
  bash: "Bash",
11622
11665
  shell: "Bash",
11623
11666
  execute: "Bash",
11667
+ fetch: "WebFetch",
11668
+ search: "WebSearch",
11624
11669
  claudebash: "Bash",
11625
11670
  codexbash: "Bash",
11626
11671
  geminibash: "Bash",
@@ -11692,14 +11737,14 @@ var launch = /*#__PURE__*/Object.freeze({
11692
11737
  const unifiedProviderExecutors = {
11693
11738
  claude: async (opts) => {
11694
11739
  const claudeOptions = opts.claudeOptions ?? {};
11695
- const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-CniBKZZh.cjs'); });
11740
+ const { runClaude } = await Promise.resolve().then(function () { return require('./runClaude-L4G4BbIJ.cjs'); });
11696
11741
  await runClaude(opts.credentials, {
11697
11742
  ...claudeOptions,
11698
11743
  startingMode: claudeOptions.startingMode ?? (claudeOptions.startedBy === "daemon" ? "remote" : void 0)
11699
11744
  });
11700
11745
  },
11701
11746
  codex: async (opts) => {
11702
- const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-Dl1BeoP7.cjs'); });
11747
+ const { runCodex } = await Promise.resolve().then(function () { return require('./runCodex-CaUoS6E4.cjs'); });
11703
11748
  await runCodex({
11704
11749
  credentials: opts.credentials,
11705
11750
  startedBy: opts.startedBy,
@@ -11708,7 +11753,7 @@ const unifiedProviderExecutors = {
11708
11753
  });
11709
11754
  },
11710
11755
  gemini: async (opts) => {
11711
- const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-Bw9Z5tD5.cjs'); });
11756
+ const { runGemini } = await Promise.resolve().then(function () { return require('./runGemini-DhYi_crP.cjs'); });
11712
11757
  await runGemini({
11713
11758
  credentials: opts.credentials,
11714
11759
  startedBy: opts.startedBy
@@ -11791,7 +11836,7 @@ function shouldRunMainClaudeFlow(opts) {
11791
11836
  return;
11792
11837
  } else if (subcommand === "runtime") {
11793
11838
  if (args[1] === "providers") {
11794
- const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-djmqu0my.cjs'); });
11839
+ const { renderRuntimeProviders } = await Promise.resolve().then(function () { return require('./command-Ct7Eeo2F.cjs'); });
11795
11840
  console.log(renderRuntimeProviders());
11796
11841
  return;
11797
11842
  }
@@ -11997,8 +12042,8 @@ function shouldRunMainClaudeFlow(opts) {
11997
12042
  const projectId = args[3];
11998
12043
  try {
11999
12044
  const { saveGoogleCloudProjectToConfig } = await Promise.resolve().then(function () { return config; });
12000
- const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./api-CeZTggZF.cjs'); }).then(function (n) { return n.persistence; });
12001
- const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-CeZTggZF.cjs'); }).then(function (n) { return n.api; });
12045
+ const { readCredentials: readCredentials2 } = await Promise.resolve().then(function () { return require('./api-CexMNqai.cjs'); }).then(function (n) { return n.persistence; });
12046
+ const { ApiClient: ApiClient2 } = await Promise.resolve().then(function () { return require('./api-CexMNqai.cjs'); }).then(function (n) { return n.api; });
12002
12047
  let userEmail = void 0;
12003
12048
  try {
12004
12049
  const credentials = await readCredentials2();
@@ -12435,6 +12480,7 @@ exports.getEnvironmentInfo = getEnvironmentInfo;
12435
12480
  exports.getInitialGeminiModel = getInitialGeminiModel;
12436
12481
  exports.getProjectPath = getProjectPath;
12437
12482
  exports.initialMachineMetadata = initialMachineMetadata;
12483
+ exports.isTerminalReferenceOnlyPayload = isTerminalReferenceOnlyPayload;
12438
12484
  exports.mapToClaudeMode = mapToClaudeMode;
12439
12485
  exports.projectPath = projectPath;
12440
12486
  exports.publishSessionRegistration = publishSessionRegistration;
package/dist/index.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  require('chalk');
4
- require('./api-CeZTggZF.cjs');
4
+ require('./api-CexMNqai.cjs');
5
5
  require('zod');
6
- require('./index-CckDTAoL.cjs');
6
+ require('./index-CQ2Yq72y.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 './api-C_wLDBlG.mjs';
2
+ import './api-CMJhY7of.mjs';
3
3
  import 'zod';
4
- import './index-l0zi9G9M.mjs';
4
+ import './index-4t8rMnvz.mjs';
5
5
  import 'node:child_process';
6
6
  import 'node:fs';
7
7
  import 'cross-spawn';
package/dist/lib.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var persistence = require('./api-CeZTggZF.cjs');
3
+ var persistence = require('./api-CexMNqai.cjs');
4
4
  var types = require('./types-DVk3crez.cjs');
5
5
  require('axios');
6
6
  require('chalk');