nexum-code 0.14.1 → 0.14.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.
@@ -6,7 +6,7 @@ const __dirname = __cjsShimDirname(__filename);
6
6
  import { i as __require, o as __toESM, r as __exportAll, t as __commonJSMin } from "./chunk-D90kvbyJ.mjs";
7
7
  import { C as join$1, D as resolve$1, E as relative$1, S as isAbsolute$1, T as parse$7, a as isSupportedFile, b as basename$1, i as ingestFile, r as ingestDirectory, t as multiSearch, w as normalize, x as dirname$2, y as KnowledgeStore } from "./src-BH9W5k24.mjs";
8
8
  import { t as require_base64_js } from "./base64-js-DzVmk6Nb.mjs";
9
- import { a as setLocale, i as getLocale, n as assertNexumHostIdentity, o as t, r as createNexumDefaultHeaders, t as TextInputDialogComponent } from "./text-input-dialog-9TU2p7Py.mjs";
9
+ import { a as setLocale, i as getLocale, n as assertNexumHostIdentity, o as t, r as createNexumDefaultHeaders, t as TextInputDialogComponent } from "./text-input-dialog-DL5a0FC3.mjs";
10
10
  import { createRequire } from "node:module";
11
11
  import { createHash, randomBytes, randomInt, randomUUID } from "node:crypto";
12
12
  import * as fs$1 from "node:fs/promises";
@@ -9655,7 +9655,7 @@ var require_extend = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9655
9655
  };
9656
9656
  }));
9657
9657
  //#endregion
9658
- //#region ../../node_modules/.pnpm/gaxios@7.1.4_supports-color@8.1.1/node_modules/gaxios/package.json
9658
+ //#region ../../node_modules/.pnpm/gaxios@7.1.4/node_modules/gaxios/package.json
9659
9659
  var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9660
9660
  module.exports = {
9661
9661
  "name": "gaxios",
@@ -9758,12 +9758,12 @@ var require_package$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9758
9758
  };
9759
9759
  }));
9760
9760
  //#endregion
9761
- //#region ../../node_modules/.pnpm/gaxios@7.1.4_supports-color@8.1.1/node_modules/gaxios/build/cjs/src/util.cjs
9761
+ //#region ../../node_modules/.pnpm/gaxios@7.1.4/node_modules/gaxios/build/cjs/src/util.cjs
9762
9762
  var require_util$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9763
9763
  module.exports = { pkg: require_package$1() };
9764
9764
  }));
9765
9765
  //#endregion
9766
- //#region ../../node_modules/.pnpm/gaxios@7.1.4_supports-color@8.1.1/node_modules/gaxios/build/cjs/src/common.js
9766
+ //#region ../../node_modules/.pnpm/gaxios@7.1.4/node_modules/gaxios/build/cjs/src/common.js
9767
9767
  var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
9768
9768
  var __importDefault = exports && exports.__importDefault || function(mod) {
9769
9769
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -9969,7 +9969,7 @@ var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
9969
9969
  }
9970
9970
  }));
9971
9971
  //#endregion
9972
- //#region ../../node_modules/.pnpm/gaxios@7.1.4_supports-color@8.1.1/node_modules/gaxios/build/cjs/src/retry.js
9972
+ //#region ../../node_modules/.pnpm/gaxios@7.1.4/node_modules/gaxios/build/cjs/src/retry.js
9973
9973
  var require_retry = /* @__PURE__ */ __commonJSMin(((exports) => {
9974
9974
  Object.defineProperty(exports, "__esModule", { value: true });
9975
9975
  exports.getRetryConfig = getRetryConfig;
@@ -10059,7 +10059,7 @@ var require_retry = /* @__PURE__ */ __commonJSMin(((exports) => {
10059
10059
  }
10060
10060
  }));
10061
10061
  //#endregion
10062
- //#region ../../node_modules/.pnpm/gaxios@7.1.4_supports-color@8.1.1/node_modules/gaxios/build/cjs/src/interceptor.js
10062
+ //#region ../../node_modules/.pnpm/gaxios@7.1.4/node_modules/gaxios/build/cjs/src/interceptor.js
10063
10063
  var require_interceptor = /* @__PURE__ */ __commonJSMin(((exports) => {
10064
10064
  Object.defineProperty(exports, "__esModule", { value: true });
10065
10065
  exports.GaxiosInterceptorManager = void 0;
@@ -10070,7 +10070,7 @@ var require_interceptor = /* @__PURE__ */ __commonJSMin(((exports) => {
10070
10070
  exports.GaxiosInterceptorManager = GaxiosInterceptorManager;
10071
10071
  }));
10072
10072
  //#endregion
10073
- //#region ../../node_modules/.pnpm/gaxios@7.1.4_supports-color@8.1.1/node_modules/gaxios/build/cjs/src/gaxios.js
10073
+ //#region ../../node_modules/.pnpm/gaxios@7.1.4/node_modules/gaxios/build/cjs/src/gaxios.js
10074
10074
  var require_gaxios = /* @__PURE__ */ __commonJSMin(((exports) => {
10075
10075
  var __importDefault = exports && exports.__importDefault || function(mod) {
10076
10076
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -10413,7 +10413,7 @@ var require_gaxios = /* @__PURE__ */ __commonJSMin(((exports) => {
10413
10413
  * @returns A proxy agent
10414
10414
  */
10415
10415
  static async #getProxyAgent() {
10416
- this.#proxyAgent ||= (await import("./dist-B_OG4w84.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).HttpsProxyAgent;
10416
+ this.#proxyAgent ||= (await import("./dist-CFFnObvk.mjs").then((m) => /* @__PURE__ */ __toESM(m.default))).HttpsProxyAgent;
10417
10417
  return this.#proxyAgent;
10418
10418
  }
10419
10419
  static async #getFetch() {
@@ -10449,7 +10449,7 @@ var require_gaxios = /* @__PURE__ */ __commonJSMin(((exports) => {
10449
10449
  _a = Gaxios;
10450
10450
  }));
10451
10451
  //#endregion
10452
- //#region ../../node_modules/.pnpm/gaxios@7.1.4_supports-color@8.1.1/node_modules/gaxios/build/cjs/src/index.js
10452
+ //#region ../../node_modules/.pnpm/gaxios@7.1.4/node_modules/gaxios/build/cjs/src/index.js
10453
10453
  var require_src$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
10454
10454
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
10455
10455
  if (k2 === void 0) k2 = k;
@@ -12019,7 +12019,7 @@ var require_json_bigint = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12019
12019
  module.exports.stringify = json_stringify;
12020
12020
  }));
12021
12021
  //#endregion
12022
- //#region ../../node_modules/.pnpm/gcp-metadata@8.1.2_supports-color@8.1.1/node_modules/gcp-metadata/build/src/gcp-residency.js
12022
+ //#region ../../node_modules/.pnpm/gcp-metadata@8.1.2/node_modules/gcp-metadata/build/src/gcp-residency.js
12023
12023
  var require_gcp_residency = /* @__PURE__ */ __commonJSMin(((exports) => {
12024
12024
  /**
12025
12025
  * Copyright 2022 Google LLC
@@ -12545,7 +12545,7 @@ var require_src$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
12545
12545
  __exportStar(require_logging_utils(), exports);
12546
12546
  }));
12547
12547
  //#endregion
12548
- //#region ../../node_modules/.pnpm/gcp-metadata@8.1.2_supports-color@8.1.1/node_modules/gcp-metadata/build/src/index.js
12548
+ //#region ../../node_modules/.pnpm/gcp-metadata@8.1.2/node_modules/gcp-metadata/build/src/index.js
12549
12549
  var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
12550
12550
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
12551
12551
  if (k2 === void 0) k2 = k;
@@ -12872,7 +12872,7 @@ var require_src$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
12872
12872
  __exportStar(require_gcp_residency(), exports);
12873
12873
  }));
12874
12874
  //#endregion
12875
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/crypto/shared.js
12875
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/crypto/shared.js
12876
12876
  var require_shared$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
12877
12877
  Object.defineProperty(exports, "__esModule", { value: true });
12878
12878
  exports.fromArrayBufferToHex = fromArrayBufferToHex;
@@ -12888,7 +12888,7 @@ var require_shared$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
12888
12888
  }
12889
12889
  }));
12890
12890
  //#endregion
12891
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/crypto/browser/crypto.js
12891
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/crypto/browser/crypto.js
12892
12892
  var require_crypto$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
12893
12893
  Object.defineProperty(exports, "__esModule", { value: true });
12894
12894
  exports.BrowserCrypto = void 0;
@@ -12971,7 +12971,7 @@ var require_crypto$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
12971
12971
  };
12972
12972
  }));
12973
12973
  //#endregion
12974
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/crypto/node/crypto.js
12974
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/crypto/node/crypto.js
12975
12975
  var require_crypto$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
12976
12976
  Object.defineProperty(exports, "__esModule", { value: true });
12977
12977
  exports.NodeCrypto = void 0;
@@ -13046,7 +13046,7 @@ var require_crypto$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
13046
13046
  }
13047
13047
  }));
13048
13048
  //#endregion
13049
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/crypto/crypto.js
13049
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/crypto/crypto.js
13050
13050
  var require_crypto = /* @__PURE__ */ __commonJSMin(((exports) => {
13051
13051
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
13052
13052
  if (k2 === void 0) k2 = k;
@@ -13230,7 +13230,7 @@ var require_ecdsa_sig_formatter = /* @__PURE__ */ __commonJSMin(((exports, modul
13230
13230
  };
13231
13231
  }));
13232
13232
  //#endregion
13233
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/util.js
13233
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/util.js
13234
13234
  var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
13235
13235
  Object.defineProperty(exports, "__esModule", { value: true });
13236
13236
  exports.LRUCache = void 0;
@@ -13383,7 +13383,7 @@ var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
13383
13383
  }
13384
13384
  }));
13385
13385
  //#endregion
13386
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/package.json
13386
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/package.json
13387
13387
  var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13388
13388
  module.exports = {
13389
13389
  "name": "google-auth-library",
@@ -13474,7 +13474,7 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
13474
13474
  };
13475
13475
  }));
13476
13476
  //#endregion
13477
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/shared.cjs
13477
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/shared.cjs
13478
13478
  var require_shared = /* @__PURE__ */ __commonJSMin(((exports) => {
13479
13479
  Object.defineProperty(exports, "__esModule", { value: true });
13480
13480
  exports.USER_AGENT = exports.PRODUCT_NAME = exports.pkg = void 0;
@@ -13485,7 +13485,7 @@ var require_shared = /* @__PURE__ */ __commonJSMin(((exports) => {
13485
13485
  exports.USER_AGENT = `${PRODUCT_NAME}/${pkg.version}`;
13486
13486
  }));
13487
13487
  //#endregion
13488
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/authclient.js
13488
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/authclient.js
13489
13489
  var require_authclient = /* @__PURE__ */ __commonJSMin(((exports) => {
13490
13490
  Object.defineProperty(exports, "__esModule", { value: true });
13491
13491
  exports.AuthClient = exports.DEFAULT_EAGER_REFRESH_THRESHOLD_MILLIS = exports.DEFAULT_UNIVERSE = void 0;
@@ -13700,7 +13700,7 @@ var require_authclient = /* @__PURE__ */ __commonJSMin(((exports) => {
13700
13700
  };
13701
13701
  }));
13702
13702
  //#endregion
13703
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/loginticket.js
13703
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/loginticket.js
13704
13704
  var require_loginticket = /* @__PURE__ */ __commonJSMin(((exports) => {
13705
13705
  Object.defineProperty(exports, "__esModule", { value: true });
13706
13706
  exports.LoginTicket = void 0;
@@ -13750,7 +13750,7 @@ var require_loginticket = /* @__PURE__ */ __commonJSMin(((exports) => {
13750
13750
  exports.LoginTicket = LoginTicket;
13751
13751
  }));
13752
13752
  //#endregion
13753
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/oauth2client.js
13753
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/oauth2client.js
13754
13754
  var require_oauth2client = /* @__PURE__ */ __commonJSMin(((exports) => {
13755
13755
  Object.defineProperty(exports, "__esModule", { value: true });
13756
13756
  exports.OAuth2Client = exports.ClientAuthentication = exports.CertificateFormat = exports.CodeChallengeMethod = void 0;
@@ -14322,7 +14322,7 @@ var require_oauth2client = /* @__PURE__ */ __commonJSMin(((exports) => {
14322
14322
  };
14323
14323
  }));
14324
14324
  //#endregion
14325
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/computeclient.js
14325
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/computeclient.js
14326
14326
  var require_computeclient = /* @__PURE__ */ __commonJSMin(((exports) => {
14327
14327
  Object.defineProperty(exports, "__esModule", { value: true });
14328
14328
  exports.Compute = void 0;
@@ -14404,7 +14404,7 @@ var require_computeclient = /* @__PURE__ */ __commonJSMin(((exports) => {
14404
14404
  exports.Compute = Compute;
14405
14405
  }));
14406
14406
  //#endregion
14407
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/idtokenclient.js
14407
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/idtokenclient.js
14408
14408
  var require_idtokenclient = /* @__PURE__ */ __commonJSMin(((exports) => {
14409
14409
  Object.defineProperty(exports, "__esModule", { value: true });
14410
14410
  exports.IdTokenClient = void 0;
@@ -14441,7 +14441,7 @@ var require_idtokenclient = /* @__PURE__ */ __commonJSMin(((exports) => {
14441
14441
  exports.IdTokenClient = IdTokenClient;
14442
14442
  }));
14443
14443
  //#endregion
14444
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/envDetect.js
14444
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/envDetect.js
14445
14445
  var require_envDetect = /* @__PURE__ */ __commonJSMin(((exports) => {
14446
14446
  Object.defineProperty(exports, "__esModule", { value: true });
14447
14447
  exports.GCPEnv = void 0;
@@ -14967,7 +14967,7 @@ var require_jws = /* @__PURE__ */ __commonJSMin(((exports) => {
14967
14967
  };
14968
14968
  }));
14969
14969
  //#endregion
14970
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/gtoken/jwsSign.js
14970
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/gtoken/jwsSign.js
14971
14971
  var require_jwsSign = /* @__PURE__ */ __commonJSMin(((exports) => {
14972
14972
  Object.defineProperty(exports, "__esModule", { value: true });
14973
14973
  exports.buildPayloadForJwsSign = buildPayloadForJwsSign;
@@ -15009,7 +15009,7 @@ var require_jwsSign = /* @__PURE__ */ __commonJSMin(((exports) => {
15009
15009
  }
15010
15010
  }));
15011
15011
  //#endregion
15012
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/gtoken/getToken.js
15012
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/gtoken/getToken.js
15013
15013
  var require_getToken = /* @__PURE__ */ __commonJSMin(((exports) => {
15014
15014
  Object.defineProperty(exports, "__esModule", { value: true });
15015
15015
  exports.getToken = getToken;
@@ -15054,7 +15054,7 @@ var require_getToken = /* @__PURE__ */ __commonJSMin(((exports) => {
15054
15054
  }
15055
15055
  }));
15056
15056
  //#endregion
15057
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/gtoken/errorWithCode.js
15057
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/gtoken/errorWithCode.js
15058
15058
  var require_errorWithCode = /* @__PURE__ */ __commonJSMin(((exports) => {
15059
15059
  Object.defineProperty(exports, "__esModule", { value: true });
15060
15060
  exports.ErrorWithCode = void 0;
@@ -15068,7 +15068,7 @@ var require_errorWithCode = /* @__PURE__ */ __commonJSMin(((exports) => {
15068
15068
  exports.ErrorWithCode = ErrorWithCode;
15069
15069
  }));
15070
15070
  //#endregion
15071
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/gtoken/getCredentials.js
15071
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/gtoken/getCredentials.js
15072
15072
  var require_getCredentials = /* @__PURE__ */ __commonJSMin(((exports) => {
15073
15073
  Object.defineProperty(exports, "__esModule", { value: true });
15074
15074
  exports.getCredentials = getCredentials;
@@ -15176,7 +15176,7 @@ var require_getCredentials = /* @__PURE__ */ __commonJSMin(((exports) => {
15176
15176
  }
15177
15177
  }));
15178
15178
  //#endregion
15179
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/gtoken/tokenHandler.js
15179
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/gtoken/tokenHandler.js
15180
15180
  var require_tokenHandler = /* @__PURE__ */ __commonJSMin(((exports) => {
15181
15181
  Object.defineProperty(exports, "__esModule", { value: true });
15182
15182
  exports.TokenHandler = void 0;
@@ -15256,7 +15256,7 @@ var require_tokenHandler = /* @__PURE__ */ __commonJSMin(((exports) => {
15256
15256
  exports.TokenHandler = TokenHandler;
15257
15257
  }));
15258
15258
  //#endregion
15259
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/gtoken/revokeToken.js
15259
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/gtoken/revokeToken.js
15260
15260
  var require_revokeToken = /* @__PURE__ */ __commonJSMin(((exports) => {
15261
15261
  Object.defineProperty(exports, "__esModule", { value: true });
15262
15262
  exports.revokeToken = revokeToken;
@@ -15279,7 +15279,7 @@ var require_revokeToken = /* @__PURE__ */ __commonJSMin(((exports) => {
15279
15279
  }
15280
15280
  }));
15281
15281
  //#endregion
15282
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/gtoken/googleToken.js
15282
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/gtoken/googleToken.js
15283
15283
  var require_googleToken = /* @__PURE__ */ __commonJSMin(((exports) => {
15284
15284
  Object.defineProperty(exports, "__esModule", { value: true });
15285
15285
  exports.GoogleToken = void 0;
@@ -15371,7 +15371,7 @@ var require_googleToken = /* @__PURE__ */ __commonJSMin(((exports) => {
15371
15371
  exports.GoogleToken = GoogleToken;
15372
15372
  }));
15373
15373
  //#endregion
15374
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/jwtaccess.js
15374
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/jwtaccess.js
15375
15375
  var require_jwtaccess = /* @__PURE__ */ __commonJSMin(((exports) => {
15376
15376
  Object.defineProperty(exports, "__esModule", { value: true });
15377
15377
  exports.JWTAccess = void 0;
@@ -15516,7 +15516,7 @@ var require_jwtaccess = /* @__PURE__ */ __commonJSMin(((exports) => {
15516
15516
  };
15517
15517
  }));
15518
15518
  //#endregion
15519
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/jwtclient.js
15519
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/jwtclient.js
15520
15520
  var require_jwtclient = /* @__PURE__ */ __commonJSMin(((exports) => {
15521
15521
  Object.defineProperty(exports, "__esModule", { value: true });
15522
15522
  exports.JWT = void 0;
@@ -15742,7 +15742,7 @@ var require_jwtclient = /* @__PURE__ */ __commonJSMin(((exports) => {
15742
15742
  };
15743
15743
  }));
15744
15744
  //#endregion
15745
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/refreshclient.js
15745
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/refreshclient.js
15746
15746
  var require_refreshclient = /* @__PURE__ */ __commonJSMin(((exports) => {
15747
15747
  Object.defineProperty(exports, "__esModule", { value: true });
15748
15748
  exports.UserRefreshClient = exports.USER_REFRESH_ACCOUNT_TYPE = void 0;
@@ -15847,7 +15847,7 @@ var require_refreshclient = /* @__PURE__ */ __commonJSMin(((exports) => {
15847
15847
  };
15848
15848
  }));
15849
15849
  //#endregion
15850
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/impersonated.js
15850
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/impersonated.js
15851
15851
  var require_impersonated = /* @__PURE__ */ __commonJSMin(((exports) => {
15852
15852
  /**
15853
15853
  * Copyright 2021 Google LLC
@@ -16030,7 +16030,7 @@ var require_impersonated = /* @__PURE__ */ __commonJSMin(((exports) => {
16030
16030
  };
16031
16031
  }));
16032
16032
  //#endregion
16033
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/oauth2common.js
16033
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/oauth2common.js
16034
16034
  var require_oauth2common = /* @__PURE__ */ __commonJSMin(((exports) => {
16035
16035
  Object.defineProperty(exports, "__esModule", { value: true });
16036
16036
  exports.OAuthClientAuthHandler = void 0;
@@ -16179,7 +16179,7 @@ var require_oauth2common = /* @__PURE__ */ __commonJSMin(((exports) => {
16179
16179
  }
16180
16180
  }));
16181
16181
  //#endregion
16182
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/stscredentials.js
16182
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/stscredentials.js
16183
16183
  var require_stscredentials = /* @__PURE__ */ __commonJSMin(((exports) => {
16184
16184
  Object.defineProperty(exports, "__esModule", { value: true });
16185
16185
  exports.StsCredentials = void 0;
@@ -16252,7 +16252,7 @@ var require_stscredentials = /* @__PURE__ */ __commonJSMin(((exports) => {
16252
16252
  };
16253
16253
  }));
16254
16254
  //#endregion
16255
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/baseexternalclient.js
16255
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/baseexternalclient.js
16256
16256
  var require_baseexternalclient = /* @__PURE__ */ __commonJSMin(((exports) => {
16257
16257
  Object.defineProperty(exports, "__esModule", { value: true });
16258
16258
  exports.BaseExternalAccountClient = exports.CLOUD_RESOURCE_MANAGER = exports.EXTERNAL_ACCOUNT_TYPE = exports.EXPIRATION_TIME_OFFSET = void 0;
@@ -16619,7 +16619,7 @@ var require_baseexternalclient = /* @__PURE__ */ __commonJSMin(((exports) => {
16619
16619
  };
16620
16620
  }));
16621
16621
  //#endregion
16622
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.js
16622
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/filesubjecttokensupplier.js
16623
16623
  var require_filesubjecttokensupplier = /* @__PURE__ */ __commonJSMin(((exports) => {
16624
16624
  Object.defineProperty(exports, "__esModule", { value: true });
16625
16625
  exports.FileSubjectTokenSupplier = void 0;
@@ -16672,7 +16672,7 @@ var require_filesubjecttokensupplier = /* @__PURE__ */ __commonJSMin(((exports)
16672
16672
  exports.FileSubjectTokenSupplier = FileSubjectTokenSupplier;
16673
16673
  }));
16674
16674
  //#endregion
16675
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.js
16675
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/urlsubjecttokensupplier.js
16676
16676
  var require_urlsubjecttokensupplier = /* @__PURE__ */ __commonJSMin(((exports) => {
16677
16677
  Object.defineProperty(exports, "__esModule", { value: true });
16678
16678
  exports.UrlSubjectTokenSupplier = void 0;
@@ -16724,7 +16724,7 @@ var require_urlsubjecttokensupplier = /* @__PURE__ */ __commonJSMin(((exports) =
16724
16724
  exports.UrlSubjectTokenSupplier = UrlSubjectTokenSupplier;
16725
16725
  }));
16726
16726
  //#endregion
16727
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/certificatesubjecttokensupplier.js
16727
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/certificatesubjecttokensupplier.js
16728
16728
  var require_certificatesubjecttokensupplier = /* @__PURE__ */ __commonJSMin(((exports) => {
16729
16729
  Object.defineProperty(exports, "__esModule", { value: true });
16730
16730
  exports.CertificateSubjectTokenSupplier = exports.InvalidConfigurationError = exports.CertificateSourceUnavailableError = exports.CERTIFICATE_CONFIGURATION_ENV_VARIABLE = void 0;
@@ -16898,7 +16898,7 @@ var require_certificatesubjecttokensupplier = /* @__PURE__ */ __commonJSMin(((ex
16898
16898
  exports.CertificateSubjectTokenSupplier = CertificateSubjectTokenSupplier;
16899
16899
  }));
16900
16900
  //#endregion
16901
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/identitypoolclient.js
16901
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/identitypoolclient.js
16902
16902
  var require_identitypoolclient = /* @__PURE__ */ __commonJSMin(((exports) => {
16903
16903
  Object.defineProperty(exports, "__esModule", { value: true });
16904
16904
  exports.IdentityPoolClient = void 0;
@@ -16995,7 +16995,7 @@ var require_identitypoolclient = /* @__PURE__ */ __commonJSMin(((exports) => {
16995
16995
  };
16996
16996
  }));
16997
16997
  //#endregion
16998
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/awsrequestsigner.js
16998
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/awsrequestsigner.js
16999
16999
  var require_awsrequestsigner = /* @__PURE__ */ __commonJSMin(((exports) => {
17000
17000
  Object.defineProperty(exports, "__esModule", { value: true });
17001
17001
  exports.AwsRequestSigner = void 0;
@@ -17142,7 +17142,7 @@ var require_awsrequestsigner = /* @__PURE__ */ __commonJSMin(((exports) => {
17142
17142
  }
17143
17143
  }));
17144
17144
  //#endregion
17145
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.js
17145
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/defaultawssecuritycredentialssupplier.js
17146
17146
  var require_defaultawssecuritycredentialssupplier = /* @__PURE__ */ __commonJSMin(((exports) => {
17147
17147
  Object.defineProperty(exports, "__esModule", { value: true });
17148
17148
  exports.DefaultAwsSecurityCredentialsSupplier = void 0;
@@ -17296,7 +17296,7 @@ var require_defaultawssecuritycredentialssupplier = /* @__PURE__ */ __commonJSMi
17296
17296
  exports.DefaultAwsSecurityCredentialsSupplier = DefaultAwsSecurityCredentialsSupplier;
17297
17297
  }));
17298
17298
  //#endregion
17299
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/awsclient.js
17299
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/awsclient.js
17300
17300
  var require_awsclient = /* @__PURE__ */ __commonJSMin(((exports) => {
17301
17301
  Object.defineProperty(exports, "__esModule", { value: true });
17302
17302
  exports.AwsClient = void 0;
@@ -17395,7 +17395,7 @@ var require_awsclient = /* @__PURE__ */ __commonJSMin(((exports) => {
17395
17395
  };
17396
17396
  }));
17397
17397
  //#endregion
17398
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/executable-response.js
17398
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/executable-response.js
17399
17399
  var require_executable_response = /* @__PURE__ */ __commonJSMin(((exports) => {
17400
17400
  Object.defineProperty(exports, "__esModule", { value: true });
17401
17401
  exports.InvalidSubjectTokenError = exports.InvalidMessageFieldError = exports.InvalidCodeFieldError = exports.InvalidTokenTypeFieldError = exports.InvalidExpirationTimeFieldError = exports.InvalidSuccessFieldError = exports.InvalidVersionFieldError = exports.ExecutableResponseError = exports.ExecutableResponse = void 0;
@@ -17529,7 +17529,7 @@ var require_executable_response = /* @__PURE__ */ __commonJSMin(((exports) => {
17529
17529
  exports.InvalidSubjectTokenError = InvalidSubjectTokenError;
17530
17530
  }));
17531
17531
  //#endregion
17532
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js
17532
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/pluggable-auth-handler.js
17533
17533
  var require_pluggable_auth_handler = /* @__PURE__ */ __commonJSMin(((exports) => {
17534
17534
  Object.defineProperty(exports, "__esModule", { value: true });
17535
17535
  exports.PluggableAuthHandler = exports.ExecutableError = void 0;
@@ -17641,7 +17641,7 @@ var require_pluggable_auth_handler = /* @__PURE__ */ __commonJSMin(((exports) =>
17641
17641
  };
17642
17642
  }));
17643
17643
  //#endregion
17644
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js
17644
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/pluggable-auth-client.js
17645
17645
  var require_pluggable_auth_client = /* @__PURE__ */ __commonJSMin(((exports) => {
17646
17646
  Object.defineProperty(exports, "__esModule", { value: true });
17647
17647
  exports.PluggableAuthClient = exports.ExecutableError = void 0;
@@ -17816,7 +17816,7 @@ var require_pluggable_auth_client = /* @__PURE__ */ __commonJSMin(((exports) =>
17816
17816
  exports.PluggableAuthClient = PluggableAuthClient;
17817
17817
  }));
17818
17818
  //#endregion
17819
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/externalclient.js
17819
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/externalclient.js
17820
17820
  var require_externalclient = /* @__PURE__ */ __commonJSMin(((exports) => {
17821
17821
  Object.defineProperty(exports, "__esModule", { value: true });
17822
17822
  exports.ExternalAccountClient = void 0;
@@ -17858,7 +17858,7 @@ var require_externalclient = /* @__PURE__ */ __commonJSMin(((exports) => {
17858
17858
  exports.ExternalAccountClient = ExternalAccountClient;
17859
17859
  }));
17860
17860
  //#endregion
17861
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js
17861
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/externalAccountAuthorizedUserClient.js
17862
17862
  var require_externalAccountAuthorizedUserClient = /* @__PURE__ */ __commonJSMin(((exports) => {
17863
17863
  Object.defineProperty(exports, "__esModule", { value: true });
17864
17864
  exports.ExternalAccountAuthorizedUserClient = exports.EXTERNAL_ACCOUNT_AUTHORIZED_USER_TYPE = void 0;
@@ -18034,7 +18034,7 @@ var require_externalAccountAuthorizedUserClient = /* @__PURE__ */ __commonJSMin(
18034
18034
  exports.ExternalAccountAuthorizedUserClient = ExternalAccountAuthorizedUserClient;
18035
18035
  }));
18036
18036
  //#endregion
18037
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/googleauth.js
18037
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/googleauth.js
18038
18038
  var require_googleauth = /* @__PURE__ */ __commonJSMin(((exports) => {
18039
18039
  Object.defineProperty(exports, "__esModule", { value: true });
18040
18040
  exports.GoogleAuth = exports.GoogleAuthExceptionMessages = void 0;
@@ -18700,7 +18700,7 @@ var require_googleauth = /* @__PURE__ */ __commonJSMin(((exports) => {
18700
18700
  exports.GoogleAuth = GoogleAuth;
18701
18701
  }));
18702
18702
  //#endregion
18703
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/iam.js
18703
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/iam.js
18704
18704
  var require_iam = /* @__PURE__ */ __commonJSMin(((exports) => {
18705
18705
  Object.defineProperty(exports, "__esModule", { value: true });
18706
18706
  exports.IAMAuth = void 0;
@@ -18733,7 +18733,7 @@ var require_iam = /* @__PURE__ */ __commonJSMin(((exports) => {
18733
18733
  exports.IAMAuth = IAMAuth;
18734
18734
  }));
18735
18735
  //#endregion
18736
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/downscopedclient.js
18736
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/downscopedclient.js
18737
18737
  var require_downscopedclient = /* @__PURE__ */ __commonJSMin(((exports) => {
18738
18738
  Object.defineProperty(exports, "__esModule", { value: true });
18739
18739
  exports.DownscopedClient = exports.EXPIRATION_TIME_OFFSET = exports.MAX_ACCESS_BOUNDARY_RULES_COUNT = void 0;
@@ -18924,7 +18924,7 @@ var require_downscopedclient = /* @__PURE__ */ __commonJSMin(((exports) => {
18924
18924
  exports.DownscopedClient = DownscopedClient;
18925
18925
  }));
18926
18926
  //#endregion
18927
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/auth/passthrough.js
18927
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/auth/passthrough.js
18928
18928
  var require_passthrough = /* @__PURE__ */ __commonJSMin(((exports) => {
18929
18929
  Object.defineProperty(exports, "__esModule", { value: true });
18930
18930
  exports.PassThroughClient = void 0;
@@ -18973,7 +18973,7 @@ var require_passthrough = /* @__PURE__ */ __commonJSMin(((exports) => {
18973
18973
  exports.PassThroughClient = PassThroughClient;
18974
18974
  }));
18975
18975
  //#endregion
18976
- //#region ../../node_modules/.pnpm/google-auth-library@10.6.2_supports-color@8.1.1/node_modules/google-auth-library/build/src/index.js
18976
+ //#region ../../node_modules/.pnpm/google-auth-library@10.6.2/node_modules/google-auth-library/build/src/index.js
18977
18977
  var require_src = /* @__PURE__ */ __commonJSMin(((exports) => {
18978
18978
  var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
18979
18979
  if (k2 === void 0) k2 = k;
@@ -70362,7 +70362,7 @@ function renderPrompt(template, vars) {
70362
70362
  }
70363
70363
  //#endregion
70364
70364
  //#region ../../packages/agent-core/src/tools/builtin/collaboration/skill-tool.md
70365
- var skill_tool_default = "Invoke a registered skill from the current skill listing. BLOCKING REQUIREMENT: when a skill from the listing matches the user's request, you MUST call this tool (not free-form text). Do NOT call the same skill repeatedly inside one turn — recursive depth is capped at {{ MAX_SKILL_QUERY_DEPTH }}.\r\n\r\n## Currently model-invocable skills\r\n{{ AVAILABLE_SKILLS }}\r\nThis list is a construction-time snapshot; for the live catalog inspect the skill registry.";
70365
+ var skill_tool_default = "Invoke a registered skill from the current skill listing. BLOCKING REQUIREMENT: when a skill from the listing matches the user's request, you MUST call this tool (not free-form text). Do NOT call the same skill repeatedly inside one turn — recursive depth is capped at {{ MAX_SKILL_QUERY_DEPTH }}.\r\n\r\n## Currently model-invocable skills\r\n{{ AVAILABLE_SKILLS }}\r\nThis list is a construction-time snapshot; for the live catalog inspect the skill registry.\r\n\r\n## Matching guide\r\n\r\n- A skill matches when the user's request involves the scenarios/trigger conditions listed in the skill's \"When to use\" line.\r\n- Look for: (a) keywords in the user's request that match the skill's trigger phrases, (b) the task type or scenario described in the skill's \"When to use\", (c) similar requests the skill was designed for.\r\n- If a skill seems relevant, invoke it first — if it doesn't fit, you can always fall back to doing it yourself.\r\n";
70366
70366
  /** Max skills to list inline in the tool description; rest are summarized. */
70367
70367
  const MAX_INLINE_SKILLS = 15;
70368
70368
  /** Max description length per skill line. */
@@ -70370,7 +70370,7 @@ const MAX_SKILL_DESC_CHARS = 100;
70370
70370
  function buildSkillToolDescription(agent) {
70371
70371
  const skills = agent.skills?.registry.listInvocableSkills() ?? [];
70372
70372
  const lines = skills.slice(0, MAX_INLINE_SKILLS).map((s) => {
70373
- const desc = s.description.trim().replaceAll(/\n/g, " ").slice(0, MAX_SKILL_DESC_CHARS);
70373
+ const desc = s.description.trim().replaceAll("\n", " ").slice(0, MAX_SKILL_DESC_CHARS);
70374
70374
  return `- ${s.name}: ${desc}`;
70375
70375
  });
70376
70376
  if (skills.length > MAX_INLINE_SKILLS) lines.push(`…${String(skills.length - MAX_INLINE_SKILLS)} more (see skill registry)`);
@@ -73331,7 +73331,7 @@ Analyze the conversation transcript and the user's explicit guidance, then produ
73331
73331
  The package must contain:
73332
73332
  - name: kebab-case skill name. Prefer the user's nameHint if it is valid kebab-case; otherwise derive a concise name from the purpose.
73333
73333
  - description: one sentence describing when to use this skill.
73334
- - whenToUse: **required** — 1-2 sentences describing the specific situations or trigger conditions that should make the agent use this skill. Put the same guidance in the generated SKILL.md's \`when-to-use\` frontmatter. This drives the skill listing's "When to use" line. Never leave it empty.
73334
+ - when-to-use: **required** — 1-2 sentences describing the specific situations/trigger conditions that should make the agent use this skill. Must include concrete trigger phrases or keywords, the specific scenario or task type, and avoid vague terms like "when needed". Use "When the user [action/request]..." or "When [task type]..." format. Put the same guidance in the generated SKILL.md's \`when-to-use\` frontmatter. This drives the skill listing's "When to use" line. Never leave it empty.
73335
73335
  - content: the complete Markdown body of SKILL.md, following the MANDATORY structure below.
73336
73336
  - files: optional supporting files (e.g. scripts, data files) relative to the skill directory. Empty array if none.
73337
73337
 
@@ -73462,7 +73462,19 @@ function parsePlanJson(rawText) {
73462
73462
  } catch (error) {
73463
73463
  throw new NexumError(ErrorCodes.REQUEST_INVALID, `The skill plan is not valid JSON: ${error instanceof Error ? error.message : String(error)}`);
73464
73464
  }
73465
- const result = z.object({
73465
+ const normalizeWhenToUse = (raw) => {
73466
+ if (raw !== null && typeof raw === "object" && !Array.isArray(raw)) {
73467
+ const object = raw;
73468
+ if (object["whenToUse"] === void 0) {
73469
+ const hyphenated = object["when-to-use"];
73470
+ const underscored = object["when_to_use"];
73471
+ if (typeof hyphenated === "string") object["whenToUse"] = hyphenated;
73472
+ else if (typeof underscored === "string") object["whenToUse"] = underscored;
73473
+ }
73474
+ }
73475
+ return raw;
73476
+ };
73477
+ const result = z.preprocess(normalizeWhenToUse, z.object({
73466
73478
  name: z.string(),
73467
73479
  description: z.string(),
73468
73480
  whenToUse: z.string(),
@@ -73471,7 +73483,7 @@ function parsePlanJson(rawText) {
73471
73483
  path: z.string(),
73472
73484
  content: z.string()
73473
73485
  })).default([])
73474
- }).safeParse(parsed);
73486
+ })).safeParse(parsed);
73475
73487
  if (!result.success) throw new NexumError(ErrorCodes.REQUEST_INVALID, `The skill plan has an invalid structure: ${result.error.message}`);
73476
73488
  return result.data;
73477
73489
  }
@@ -73481,7 +73493,7 @@ function validateSkillPlan(plan, nameHint) {
73481
73493
  const normalizedHint = sanitizeSkillName(nameHint);
73482
73494
  if (plan.name !== normalizedHint) throw new NexumError(ErrorCodes.REQUEST_INVALID, `Generated skill name "${plan.name}" does not match the user's requested name "${normalizedHint}". Please use the requested name.`);
73483
73495
  }
73484
- if (plan.whenToUse.trim().length === 0) throw new NexumError(ErrorCodes.REQUEST_INVALID, "Generated skill plan is missing the required \"whenToUse\" field. Describe the situations that should trigger this skill.");
73496
+ if (plan.whenToUse.trim().length === 0) throw new NexumError(ErrorCodes.REQUEST_INVALID, "Generated skill plan is missing the required \"whenToUse\" field. Describe the specific situations that should trigger this skill with concrete trigger conditions.");
73485
73497
  let contentWhenToUse;
73486
73498
  try {
73487
73499
  contentWhenToUse = parseSkillText({
@@ -74153,11 +74165,16 @@ var EditTool = class {
74153
74165
  await this.jian.writeText(safePath, materializeModelText(newContent, modelView.lineEndingStyle));
74154
74166
  scanCache.clear();
74155
74167
  const { notice, hasErrors } = await this.appendDiagnostics(safePath);
74156
- const output = `Replaced 1 occurrence in ${args.path}${notice}`;
74168
+ const output = `Replaced 1 occurrence in ${args.path}`;
74169
+ const message = notice.length > 0 ? notice : void 0;
74157
74170
  return hasErrors ? {
74158
74171
  isError: true,
74159
- output
74160
- } : { output };
74172
+ output,
74173
+ message
74174
+ } : {
74175
+ output,
74176
+ message
74177
+ };
74161
74178
  }
74162
74179
  const parts = content.split(args.old_string);
74163
74180
  const replacementCount = parts.length - 1;
@@ -74172,11 +74189,16 @@ var EditTool = class {
74172
74189
  await this.jian.writeText(safePath, materializeModelText(newContent, modelView.lineEndingStyle));
74173
74190
  scanCache.clear();
74174
74191
  const { notice, hasErrors } = await this.appendDiagnostics(safePath);
74175
- const output = `Replaced ${String(replacementCount)} occurrences in ${args.path}${notice}`;
74192
+ const output = `Replaced ${String(replacementCount)} occurrences in ${args.path}`;
74193
+ const message = notice.length > 0 ? notice : void 0;
74176
74194
  return hasErrors ? {
74177
74195
  isError: true,
74178
- output
74179
- } : { output };
74196
+ output,
74197
+ message
74198
+ } : {
74199
+ output,
74200
+ message
74201
+ };
74180
74202
  } catch (error) {
74181
74203
  if (error?.code === "EISDIR") return {
74182
74204
  isError: true,
@@ -79966,11 +79988,16 @@ var WriteTool = class {
79966
79988
  scanCache.clear();
79967
79989
  const bytesWritten = Buffer.byteLength(args.content, "utf8");
79968
79990
  const { notice, hasErrors } = await this.appendDiagnostics(safePath);
79969
- const output = `${mode === "append" ? "Appended" : "Wrote"} ${String(bytesWritten)} bytes to ${args.path}${notice}`;
79991
+ const output = `${mode === "append" ? "Appended" : "Wrote"} ${String(bytesWritten)} bytes to ${args.path}`;
79992
+ const message = notice.length > 0 ? notice : void 0;
79970
79993
  return hasErrors ? {
79971
79994
  isError: true,
79972
- output
79973
- } : { output };
79995
+ output,
79996
+ message
79997
+ } : {
79998
+ output,
79999
+ message
80000
+ };
79974
80001
  } catch (error) {
79975
80002
  if (error?.code === "ENOENT") return {
79976
80003
  isError: true,
@@ -85188,6 +85215,7 @@ var ContextMemory = class {
85188
85215
  ...message,
85189
85216
  role: "tool",
85190
85217
  isError: event.result.isError,
85218
+ toolResultMessage: event.result.message,
85191
85219
  useless: event.result.isError !== true && event.result.useless === true ? true : void 0
85192
85220
  });
85193
85221
  this.pendingToolResultIds.delete(event.toolCallId);
@@ -103235,7 +103263,8 @@ function mapLoopEvent(event, turnId) {
103235
103263
  toolCallId: event.toolCallId,
103236
103264
  output: event.result.output,
103237
103265
  isError: event.result.isError,
103238
- display: event.result.isError === true ? void 0 : event.result.display
103266
+ display: event.result.isError === true ? void 0 : event.result.display,
103267
+ message: event.result.message
103239
103268
  };
103240
103269
  case "turn.interrupted":
103241
103270
  if (event.activeStep === void 0) return void 0;
@@ -109691,8 +109720,10 @@ var SessionSubagentHost = class {
109691
109720
  if (gitContext) childPrompt = `${gitContext}\n\n${childPrompt}`;
109692
109721
  }
109693
109722
  const origin = options.origin ?? {
109694
- kind: "system_trigger",
109695
- name: "subagent"
109723
+ kind: "subagent",
109724
+ parentAgentId: this.ownerAgentId,
109725
+ parentToolCallId: options.parentToolCallId,
109726
+ subagentName: profileName
109696
109727
  };
109697
109728
  child.turn.prompt([{
109698
109729
  type: "text",
@@ -128894,7 +128925,7 @@ function applyCatalogProvider(config, options) {
128894
128925
  config.thinking = {
128895
128926
  ...config.thinking,
128896
128927
  mode: thinkingLevel === "off" ? "off" : "on",
128897
- effort: thinkingLevel
128928
+ effort: thinkingLevel === "off" ? config.thinking?.effort ?? "low" : thinkingLevel
128898
128929
  };
128899
128930
  return { defaultModel };
128900
128931
  }
@@ -130268,6 +130299,7 @@ const DEFAULT_THINKING_LEVELS = [
130268
130299
  "low",
130269
130300
  "medium",
130270
130301
  "high",
130302
+ "xhigh",
130271
130303
  "max"
130272
130304
  ];
130273
130305
  function modelDisplayName$1(alias, model) {
@@ -130529,15 +130561,23 @@ function runModelSelector(host, modelDict) {
130529
130561
  });
130530
130562
  }
130531
130563
  function getWireTypeOptions() {
130532
- return [{
130533
- value: "openai",
130534
- label: t("prompts.wire_openai"),
130535
- description: t("prompts.wire_openai_desc")
130536
- }, {
130537
- value: "anthropic",
130538
- label: t("prompts.wire_anthropic"),
130539
- description: t("prompts.wire_anthropic_desc")
130540
- }];
130564
+ return [
130565
+ {
130566
+ value: "openai",
130567
+ label: t("prompts.wire_openai"),
130568
+ description: t("prompts.wire_openai_desc")
130569
+ },
130570
+ {
130571
+ value: "openai_responses",
130572
+ label: t("prompts.wire_openai_responses"),
130573
+ description: t("prompts.wire_openai_responses_desc")
130574
+ },
130575
+ {
130576
+ value: "anthropic",
130577
+ label: t("prompts.wire_anthropic"),
130578
+ description: t("prompts.wire_anthropic_desc")
130579
+ }
130580
+ ];
130541
130581
  }
130542
130582
  function getThinkingOptions() {
130543
130583
  return [
@@ -130556,6 +130596,14 @@ function getThinkingOptions() {
130556
130596
  {
130557
130597
  value: "high",
130558
130598
  label: t("prompts.thinking_high")
130599
+ },
130600
+ {
130601
+ value: "xhigh",
130602
+ label: t("prompts.thinking_xhigh")
130603
+ },
130604
+ {
130605
+ value: "max",
130606
+ label: t("prompts.thinking_max")
130559
130607
  }
130560
130608
  ];
130561
130609
  }
@@ -130832,16 +130880,29 @@ async function handleDiyConfig(host) {
130832
130880
  if (wire === void 0) return;
130833
130881
  const baseUrl = await promptTextInput$2(host, t("auth.input_api_url"), { subtitle: t("auth.api_url_hint") });
130834
130882
  if (baseUrl === void 0) return;
130883
+ if (!baseUrl.trim()) {
130884
+ host.showError(t("auth.error_empty_base_url"));
130885
+ return;
130886
+ }
130835
130887
  const apiKey = await promptTextInput$2(host, t("auth.input_api_key"), { subtitle: t("auth.api_key_hint") });
130836
130888
  if (apiKey === void 0) return;
130837
130889
  const modelId = await promptTextInput$2(host, t("auth.input_model"), { subtitle: t("auth.model_hint") });
130838
130890
  if (modelId === void 0) return;
130891
+ if (!modelId.trim()) {
130892
+ host.showError(t("auth.error_empty_model_id"));
130893
+ return;
130894
+ }
130839
130895
  const maxContextStr = await promptTextInput$2(host, t("auth.input_context"), {
130840
130896
  subtitle: t("auth.context_hint"),
130841
130897
  placeholder: "131072"
130842
130898
  });
130843
130899
  if (maxContextStr === void 0) return;
130844
- const maxContextTokens = parseInt(maxContextStr, 10) || 131072;
130900
+ const parsed = Number(maxContextStr.trim());
130901
+ if (!Number.isSafeInteger(parsed) || parsed < 4096) {
130902
+ host.showError(t("auth.error_invalid_context_size"));
130903
+ return;
130904
+ }
130905
+ const maxContextTokens = parsed;
130845
130906
  const thinkingLevel = await promptThinkingMode(host);
130846
130907
  if (thinkingLevel === void 0) return;
130847
130908
  const imageEnabled = await promptImageMode(host);
@@ -130866,28 +130927,22 @@ async function handleDiyConfig(host) {
130866
130927
  maxOutputSize: wire === "anthropic" ? 32e3 : void 0
130867
130928
  };
130868
130929
  if ((await host.harness.getConfig()).providers[providerId] !== void 0) await host.harness.removeProvider(providerId);
130869
- const config = await host.harness.getConfig();
130870
- config.providers[providerId] = {
130871
- type: wire,
130930
+ const freshConfig = await host.harness.getConfig();
130931
+ applyCatalogProvider(freshConfig, {
130932
+ providerId,
130933
+ wire,
130872
130934
  baseUrl,
130873
- apiKey
130874
- };
130875
- const models = config.models ?? {};
130876
- models[`${providerId}/${modelId}`] = catalogModelToAlias(providerId, catalogModel);
130877
- config.models = models;
130878
- config.defaultModel = `${providerId}/${modelId}`;
130879
- config.defaultThinking = thinkingLevel !== "off";
130880
- config.thinking = {
130881
- ...config.thinking,
130882
- mode: thinkingLevel === "off" ? "off" : "on",
130883
- effort: thinkingLevel
130884
- };
130935
+ apiKey,
130936
+ models: [catalogModel],
130937
+ selectedModelId: modelId,
130938
+ thinkingLevel
130939
+ });
130885
130940
  await host.harness.setConfig({
130886
- providers: config.providers,
130887
- models: config.models,
130888
- defaultModel: config.defaultModel,
130889
- defaultThinking: config.defaultThinking,
130890
- thinking: config.thinking
130941
+ providers: freshConfig.providers,
130942
+ models: freshConfig.models,
130943
+ defaultModel: freshConfig.defaultModel,
130944
+ defaultThinking: freshConfig.defaultThinking,
130945
+ thinking: freshConfig.thinking
130891
130946
  });
130892
130947
  await host.authFlow.refreshConfigAfterLogin();
130893
130948
  host.showStatus(t("auth.connected", { name: `${providerId} · ${modelId} (${wire})` }));
@@ -133924,6 +133979,7 @@ function getModelCycleLevel(models, alias, current) {
133924
133979
  "low",
133925
133980
  "medium",
133926
133981
  "high",
133982
+ "xhigh",
133927
133983
  "max"
133928
133984
  ];
133929
133985
  const currentIndex = levels.indexOf(current);
@@ -135259,7 +135315,7 @@ async function guidedGoalSetup(host) {
135259
135315
  host.showNotice(t("goal.storm_breaker"), t("goal.conflict_loop"));
135260
135316
  return;
135261
135317
  }
135262
- const { TextInputDialogComponent } = await import("./text-input-dialog-D7p11_lV.mjs");
135318
+ const { TextInputDialogComponent } = await import("./text-input-dialog-BXXydm0u.mjs");
135263
135319
  const initialDesc = await promptText(host, TextInputDialogComponent, {
135264
135320
  title: t("goal.setup_title_initial"),
135265
135321
  subtitle: t("goal.setup_desc_hint"),
@@ -135280,7 +135336,7 @@ async function guidedGoalSetup(host) {
135280
135336
  await showGoalConfigWizard(host, session, confirmed.trim() || objective, false);
135281
135337
  }
135282
135338
  async function showGoalConfigWizard(host, session, objective, replace) {
135283
- const { TextInputDialogComponent } = await import("./text-input-dialog-D7p11_lV.mjs");
135339
+ const { TextInputDialogComponent } = await import("./text-input-dialog-BXXydm0u.mjs");
135284
135340
  const turnInput = await promptNumber(host, TextInputDialogComponent, {
135285
135341
  title: t("goal.wizard_title", { objective }),
135286
135342
  subtitle: t("goal.budget_turns_hint"),
@@ -135748,6 +135804,52 @@ var WelcomeComponent = class {
135748
135804
  }
135749
135805
  };
135750
135806
  //#endregion
135807
+ //#region src/tui/utils/sanitize.ts
135808
+ /** Replace tabs with spaces, keeping column alignment. Default tab width 4. */
135809
+ function replaceTabs(text, tabWidth = 4) {
135810
+ return text.replaceAll(" ", " ".repeat(tabWidth));
135811
+ }
135812
+ /** Replace home directory occurrences, including inline paths, with ~. */
135813
+ function shortenPath(fullPath) {
135814
+ const home = nodeOs.homedir();
135815
+ if (home.length === 0) return fullPath;
135816
+ const variants = new Set([
135817
+ home,
135818
+ home.replaceAll("\\", "/"),
135819
+ home.replaceAll("/", "\\")
135820
+ ]);
135821
+ let shortened = fullPath;
135822
+ for (const variant of [...variants].toSorted((a, b) => b.length - a.length)) {
135823
+ const escaped = variant.replaceAll(/[.*+?^${}()|[\]\\]/g, "\\$&");
135824
+ const flags = /^[A-Za-z]:[\\/]/.test(variant) ? "gi" : "g";
135825
+ shortened = shortened.replace(new RegExp(`${escaped}(?=$|[\\\\/])`, flags), "~");
135826
+ }
135827
+ return shortened;
135828
+ }
135829
+ /** Shared truncation length constants — no ad-hoc numbers in render paths. */
135830
+ const TRUNCATE_LENGTHS = {
135831
+ /** Approval panel file content previews */
135832
+ FILE_CONTENT: 300,
135833
+ /** Error messages (may embed file content) */
135834
+ ERROR: 200,
135835
+ /** Notice / informational text */
135836
+ NOTICE: 120,
135837
+ /** Status bar / one-liners */
135838
+ STATUS: 80
135839
+ };
135840
+ /** Strip escape sequences and non-printing terminal control characters. */
135841
+ function stripTerminalControlSequences(text) {
135842
+ return text.replaceAll(/\u001B\[[0-?]*[ -/]*[@-~]/g, "").replaceAll(/\u001B\][^\u0007\u001B]*(?:\u0007|\u001B\\)/g, "").replaceAll(/\u001B[P^_][^\u0007\u001B]*(?:\u0007|\u001B\\)/g, "").replaceAll(/\u001B[()][0-9A-Za-z]/g, "").replaceAll(/\u001B[=>78DEFHMc]/g, "").replaceAll(/[\u0000-\u0008\u000B-\u001F\u007F-\u009F]/g, "");
135843
+ }
135844
+ /** Sanitize untrusted human-readable metadata for safe TUI rendering. */
135845
+ function sanitizeHumanMetadata(text) {
135846
+ return shortenPath(replaceTabs(stripTerminalControlSequences(text))).split("\n").map((line) => truncateToWidth(line, TRUNCATE_LENGTHS.NOTICE));
135847
+ }
135848
+ /** Strip terminal control sequences from captured shell output. */
135849
+ function sanitizeShellOutput(output) {
135850
+ return stripTerminalControlSequences(output);
135851
+ }
135852
+ //#endregion
135751
135853
  //#region src/tui/components/messages/wrapped-line.ts
135752
135854
  var WrappedLine = class {
135753
135855
  firstPrefix;
@@ -135787,7 +135889,43 @@ var WrappedLine = class {
135787
135889
  }
135788
135890
  };
135789
135891
  //#endregion
135892
+ //#region src/tui/components/messages/tool-result-message.ts
135893
+ /** Safely renders human-only tool-result metadata using the live theme palette. */
135894
+ var ToolResultMessageComponent = class {
135895
+ colors;
135896
+ indent;
135897
+ linePrefix;
135898
+ lines;
135899
+ constructor(message, colors, indent, linePrefix) {
135900
+ this.colors = colors;
135901
+ this.indent = indent;
135902
+ this.linePrefix = linePrefix;
135903
+ this.lines = sanitizeHumanMetadata(message);
135904
+ }
135905
+ render(width) {
135906
+ const tone = chalk.hex(this.colors.textMuted);
135907
+ return this.lines.flatMap((line) => this.linePrefix === void 0 ? new Text(tone(line), this.indent, 0).render(width) : new WrappedLine(this.linePrefix, this.linePrefix, tone(line)).render(width));
135908
+ }
135909
+ invalidate() {}
135910
+ };
135911
+ //#endregion
135790
135912
  //#region src/tui/components/messages/agent-group.ts
135913
+ /**
135914
+ * AgentGroupComponent renders 2+ Agent tool calls from the same step as one group.
135915
+ *
135916
+ * Design:
135917
+ * - State container: each child Agent keeps its real state in its
135918
+ * `ToolCallComponent` (subagent meta, phase, sub-tool calls, tokens, text).
135919
+ * AgentGroup only stores references and does not copy state. Event handlers
135920
+ * still route through `state.pendingToolComponents.get(parent_tool_call_id)`.
135921
+ * - Subscription: `attach` registers a snapshot listener on each child so the
135922
+ * group can refresh when child state changes.
135923
+ * - Throttling: normal changes are coalesced into one render every 200ms.
135924
+ * Phase transitions (spawning -> running -> done/failed) flush immediately.
135925
+ * - Mounting: `NexumTUI` attaches the group to the transcript at the
135926
+ * right time; the group handles `invalidate` plus `ui.requestRender`.
135927
+ * - Ungrouping is not implemented. Once formed, a group stays grouped.
135928
+ */
135791
135929
  const THROTTLE_MS$1 = 200;
135792
135930
  var AgentGroupComponent = class extends Container {
135793
135931
  colors;
@@ -135931,6 +136069,7 @@ var AgentGroupComponent = class extends Container {
135931
136069
  const branchContinuation = isLast ? " " : " │ ";
135932
136070
  this.bodyContainer.addChild(new WrappedLine(branchPrefix, branchContinuation, `${namePart} ${descPart}${stats}${tail}`, { truncate: true }));
135933
136071
  const childPrefix = ` ${isLast ? " " : "│ "} `;
136072
+ for (const message of snap.resultMessages) this.bodyContainer.addChild(new ToolResultMessageComponent(message, colors, 0, childPrefix));
135934
136073
  if (snap.phase === "failed") {
135935
136074
  const errLine = (snap.errorText ?? t("agentgroup.failed")).split(/\r\n|\r|\n/).at(0) ?? t("agentgroup.failed");
135936
136075
  const errStr = chalk.hex(colors.error)(`${t("agentgroup.error")}${errLine}`);
@@ -136467,25 +136606,32 @@ var SpeedTracker = class {
136467
136606
  while (this.observations.length > 0 && this.observations[0].time < threshold) this.observations.shift();
136468
136607
  }
136469
136608
  /**
136470
- * Record one instantaneous tok/s reading, clamped to {@link SPEED_MAX} so a
136471
- * single oversized delta can't poison the windowed average. Non-finite or
136472
- * negative rates are ignored.
136609
+ * Record one delta and its inter-delta duration. Long gaps are stalls and
136610
+ * are ignored so they do not read as a false generation slow-down.
136473
136611
  */
136474
- observe(rate, now = performance.now()) {
136475
- if (!Number.isFinite(rate) || rate < 0) return;
136612
+ observe(tokens, elapsedMs, now = performance.now()) {
136613
+ if (!Number.isFinite(tokens) || tokens < 0) return;
136614
+ if (!Number.isFinite(elapsedMs) || elapsedMs <= 0) return;
136615
+ if (elapsedMs > 3e3) return;
136476
136616
  this.observations.push({
136477
136617
  time: now,
136478
- rate: Math.min(rate, 200)
136618
+ tokens,
136619
+ elapsedMs
136479
136620
  });
136480
136621
  this.prune(now);
136481
136622
  }
136482
- /** Windowed-average tok/s; 0 once observations age out of the window. */
136623
+ /** Windowed generation speed, computed as total tokens / total seconds. */
136483
136624
  getSpeed(now = performance.now()) {
136484
136625
  this.prune(now);
136485
136626
  if (this.observations.length === 0) return 0;
136486
- let sum = 0;
136487
- for (const o of this.observations) sum += o.rate;
136488
- return sum / this.observations.length;
136627
+ let totalTokens = 0;
136628
+ let totalElapsedMs = 0;
136629
+ for (const observation of this.observations) {
136630
+ totalTokens += observation.tokens;
136631
+ totalElapsedMs += observation.elapsedMs;
136632
+ }
136633
+ if (totalElapsedMs <= 0) return 0;
136634
+ return totalTokens / totalElapsedMs * 1e3;
136489
136635
  }
136490
136636
  reset() {
136491
136637
  this.observations = [];
@@ -136507,7 +136653,7 @@ function getSharedSpeedTracker() {
136507
136653
  * from a dim gray toward the theme accent as tok/s rises.
136508
136654
  */
136509
136655
  function lerpHex(from, to, t) {
136510
- const k = t < 0 ? 0 : t > 1 ? 1 : t;
136656
+ const k = t < 0 ? 0 : Math.min(1, t);
136511
136657
  const fr = Number.parseInt(from.slice(1, 3), 16);
136512
136658
  const fg = Number.parseInt(from.slice(3, 5), 16);
136513
136659
  const fb = Number.parseInt(from.slice(5, 7), 16);
@@ -136534,7 +136680,7 @@ function estimateTokens(delta) {
136534
136680
  * makes the color jump toward accent as soon as any tokens flow.
136535
136681
  */
136536
136682
  function easeSpeedRatio(ratio) {
136537
- const t = ratio < 0 ? 0 : ratio > 1 ? 1 : ratio;
136683
+ const t = ratio < 0 ? 0 : Math.min(1, ratio);
136538
136684
  return t * t * (3 - 2 * t);
136539
136685
  }
136540
136686
  //#endregion
@@ -136608,7 +136754,7 @@ var ThinkingComponent = class {
136608
136754
  if (this.mode === "live") {
136609
136755
  const visibleLines = contentLines.length > 2 ? contentLines.slice(contentLines.length - 2) : contentLines;
136610
136756
  const spinner = chalk.hex(this.color)(`${BRAILLE_SPINNER_FRAMES[this.spinnerFrame] ?? BRAILLE_SPINNER_FRAMES[0]} `);
136611
- const rate = Math.min(200, getSharedSpeedTracker().getSpeed());
136757
+ const rate = getSharedSpeedTracker().getSpeed();
136612
136758
  const rateSuffix = rate > .05 ? chalk.hex(lerpHex(this.dimColor, this.accentColor, easeSpeedRatio(rate / 200)))(` · ${rate.toFixed(1)} toks/s`) : "";
136613
136759
  return [
136614
136760
  "",
@@ -136630,7 +136776,7 @@ var ThinkingComponent = class {
136630
136776
  }
136631
136777
  const truncated = rendered.slice(0, 3);
136632
136778
  const remaining = contentLines.length - 2;
136633
- const hint = `... (${String(remaining)} more lines, ctrl+o to expand)`;
136779
+ const hint = t("thinking.more_lines", { count: String(remaining) });
136634
136780
  const hintWidth = Math.max(0, width - 2);
136635
136781
  truncated.push(" " + chalk.dim(truncateToWidth(hint, hintWidth, "…")));
136636
136782
  if (isRenderCacheEnabled()) {
@@ -136705,7 +136851,7 @@ var CachedContainer = class extends Container {
136705
136851
  //#region src/tui/theme/code-highlight-theme.ts
136706
136852
  function createCodeHighlightTheme(colors) {
136707
136853
  const keyword = chalk.hex(colors.mdCodeBlock);
136708
- const str = chalk.hex(colors.error);
136854
+ const str = chalk.hex(colors.mdLink);
136709
136855
  const num = chalk.hex(colors.primary);
136710
136856
  const fn = chalk.hex(colors.warning);
136711
136857
  const builtin = chalk.hex(colors.planMode);
@@ -137324,12 +137470,10 @@ var TruncatedOutputComponent = class {
137324
137470
  expanded;
137325
137471
  maxLines;
137326
137472
  hintFormatter;
137327
- collapseHintFormatter;
137328
137473
  constructor(output, options) {
137329
137474
  this.expanded = options.expanded;
137330
137475
  this.maxLines = options.maxLines ?? PREVIEW_LINES;
137331
137476
  this.hintFormatter = options.hintFormatter;
137332
- this.collapseHintFormatter = options.collapseHintFormatter;
137333
137477
  const tint = options.isError ? chalk.hex(options.colors.error) : chalk.dim;
137334
137478
  const cleaned = trimTrailingEmptyLines(output.split("\n")).join("\n");
137335
137479
  const stripped = options.isError ? cleaned.replaceAll(/\u001B\[[0-9;]*m/g, "") : cleaned;
@@ -137341,15 +137485,11 @@ var TruncatedOutputComponent = class {
137341
137485
  }
137342
137486
  render(width) {
137343
137487
  const contentLines = this.textComponent.render(width);
137344
- if (contentLines.length <= this.maxLines) return contentLines;
137345
- if (this.expanded) {
137346
- const collapseHint = this.collapseHintFormatter ? this.collapseHintFormatter() : t("shell.collapse_hint");
137347
- return [chalk.dim(collapseHint), ...contentLines];
137348
- }
137488
+ if (this.expanded || contentLines.length <= this.maxLines) return contentLines;
137349
137489
  const remaining = contentLines.length - this.maxLines;
137350
- const tail = contentLines.slice(-this.maxLines);
137490
+ const tail = this.maxLines <= 0 ? [] : contentLines.slice(-this.maxLines);
137351
137491
  const expandHint = this.hintFormatter ? this.hintFormatter(remaining) : t("shell.more_lines", { count: String(remaining) });
137352
- return [chalk.dim(expandHint), ...tail];
137492
+ return [...new Text(chalk.dim(expandHint), 2, 0).render(width), ...tail];
137353
137493
  }
137354
137494
  };
137355
137495
  const renderTruncated = (_toolCall, result, ctx) => {
@@ -137385,8 +137525,7 @@ var ShellExecutionComponent = class extends Container {
137385
137525
  colors,
137386
137526
  maxLines: previewLines,
137387
137527
  maxBytes: MAX_SHELL_OUTPUT_BYTES,
137388
- hintFormatter: (remaining) => t("shell.more_lines", { count: String(remaining) }),
137389
- collapseHintFormatter: () => t("shell.collapse_hint")
137528
+ hintFormatter: (remaining) => t("shell.more_lines", { count: String(remaining) })
137390
137529
  }));
137391
137530
  }
137392
137531
  };
@@ -137396,7 +137535,8 @@ const shellExecutionResultRenderer = (toolCall, result, ctx) => [new ShellExecut
137396
137535
  colors: ctx.colors,
137397
137536
  expanded: ctx.expanded,
137398
137537
  showCommand: true,
137399
- commandPreviewLines: ctx.expanded ? void 0 : 3
137538
+ commandPreviewLines: ctx.expanded ? void 0 : 3,
137539
+ resultPreviewLines: ctx.expanded ? void 0 : result.is_error ? void 0 : ctx.isLive ? void 0 : 0
137400
137540
  })];
137401
137541
  //#endregion
137402
137542
  //#region src/tui/components/media/image-thumbnail.ts
@@ -138401,9 +138541,10 @@ var ToolCallComponent = class ToolCallComponent extends CachedContainer {
138401
138541
  args: call.args,
138402
138542
  output: call.result.output,
138403
138543
  isError: call.result.is_error ?? false,
138404
- display: call.result.display
138544
+ display: call.result.display,
138545
+ message: call.result.message
138405
138546
  });
138406
- this.upsertSubToolActivity(call.id, call.name, call.args, call.result.is_error === true ? "failed" : "done");
138547
+ this.upsertSubToolActivity(call.id, call.name, call.args, call.result.is_error === true ? "failed" : "done", call.result.message);
138407
138548
  }
138408
138549
  while (this.finishedSubCalls.length > MAX_SUB_TOOL_CALLS_SHOWN) {
138409
138550
  this.finishedSubCalls.shift();
@@ -138446,7 +138587,8 @@ var ToolCallComponent = class ToolCallComponent extends CachedContainer {
138446
138587
  tokens,
138447
138588
  isError: derivedPhase === "failed",
138448
138589
  errorText,
138449
- latestActivity
138590
+ latestActivity,
138591
+ resultMessages: this.finishedSubCalls.flatMap((call) => call.message === void 0 || call.message.length === 0 ? [] : [call.message])
138450
138592
  };
138451
138593
  }
138452
138594
  /**
@@ -138485,12 +138627,13 @@ var ToolCallComponent = class ToolCallComponent extends CachedContainer {
138485
138627
  notifySnapshotChange() {
138486
138628
  this.onSnapshotChange?.();
138487
138629
  }
138488
- upsertSubToolActivity(id, name, args, phase) {
138630
+ upsertSubToolActivity(id, name, args, phase, message) {
138489
138631
  const existing = this.subToolActivities.get(id);
138490
138632
  if (existing !== void 0) {
138491
138633
  existing.name = name;
138492
138634
  existing.args = args;
138493
138635
  existing.phase = phase;
138636
+ if (message !== void 0) existing.message = message;
138494
138637
  return;
138495
138638
  }
138496
138639
  this.subToolActivities.set(id, {
@@ -138498,7 +138641,8 @@ var ToolCallComponent = class ToolCallComponent extends CachedContainer {
138498
138641
  name,
138499
138642
  args,
138500
138643
  phase,
138501
- orderSeq: ++this.subToolOrderSeq
138644
+ orderSeq: ++this.subToolOrderSeq,
138645
+ message
138502
138646
  });
138503
138647
  }
138504
138648
  getCombinedSubagentText() {
@@ -138740,9 +138884,10 @@ var ToolCallComponent = class ToolCallComponent extends CachedContainer {
138740
138884
  args: ongoing.args,
138741
138885
  output: result.output,
138742
138886
  isError: result.is_error ?? false,
138743
- display: result.display
138887
+ display: result.display,
138888
+ message: result.message
138744
138889
  });
138745
- this.upsertSubToolActivity(result.tool_call_id, ongoing.name, ongoing.args, result.is_error === true ? "failed" : "done");
138890
+ this.upsertSubToolActivity(result.tool_call_id, ongoing.name, ongoing.args, result.is_error === true ? "failed" : "done", result.message);
138746
138891
  while (this.finishedSubCalls.length > MAX_SUB_TOOL_CALLS_SHOWN) {
138747
138892
  this.finishedSubCalls.shift();
138748
138893
  this.hiddenSubCallCount += 1;
@@ -138857,7 +139002,8 @@ var ToolCallComponent = class ToolCallComponent extends CachedContainer {
138857
139002
  is_error: false
138858
139003
  }, {
138859
139004
  expanded: this.expanded,
138860
- colors: this.colors
139005
+ colors: this.colors,
139006
+ isLive: true
138861
139007
  });
138862
139008
  for (const component of components) this.addChild(component);
138863
139009
  }
@@ -138881,6 +139027,7 @@ var ToolCallComponent = class ToolCallComponent extends CachedContainer {
138881
139027
  const nameCol = chalk.hex(this.colors.primary)(sub.name);
138882
139028
  const argCol = keyArg ? dim(` (${keyArg})`) : "";
138883
139029
  this.addChild(new Text(` ${mark} ${t("toolcall.used")} ${nameCol}${argCol}`, 0, 0));
139030
+ if (sub.message !== void 0 && sub.message.length > 0) this.addChild(new ToolResultMessageComponent(sub.message, this.colors, 6));
138884
139031
  }
138885
139032
  for (const [id, call] of this.ongoingSubCalls) {
138886
139033
  const keyArg = extractKeyArgument(call.name, call.args, this.workspaceDir);
@@ -138998,6 +139145,7 @@ var ToolCallComponent = class ToolCallComponent extends CachedContainer {
138998
139145
  const mark = activity.phase === "failed" ? chalk.hex(this.colors.error)("✗") : activity.phase === "done" ? chalk.hex(this.colors.success)("•") : chalk.hex(this.colors.text)("•");
138999
139146
  const verb = activity.phase === "ongoing" ? t("toolcall.in_use") : t("toolcall.used");
139000
139147
  this.addChild(new Text(` ${mark} ${this.formatSubToolActivity(verb, activity)}`, 0, 0));
139148
+ if (activity.message !== void 0 && activity.message.length > 0) this.addChild(new ToolResultMessageComponent(activity.message, this.colors, 4));
139001
139149
  }
139002
139150
  if (this.getDerivedSubagentPhase() === "failed" && this.subagentError !== void 0) {
139003
139151
  const errorLine = tailNonEmptyLines(this.subagentError, 1).at(-1);
@@ -139215,6 +139363,7 @@ var ToolCallComponent = class ToolCallComponent extends CachedContainer {
139215
139363
  colors: this.colors
139216
139364
  });
139217
139365
  for (const component of components) this.addChild(component);
139366
+ if (result.message !== void 0 && result.message.length > 0) this.addChild(new ToolResultMessageComponent(result.message, this.colors, 2));
139218
139367
  }
139219
139368
  /**
139220
139369
  * Render AskUserQuestion's JSON payload as a friendly Q/A list.
@@ -140988,7 +141137,7 @@ function detectNexumPath() {
140988
141137
  return "nexum stream-json";
140989
141138
  }
140990
141139
  function quoteShellPath(path) {
140991
- return `"${path.replaceAll(/"/g, "\\\"")}"`;
141140
+ return `"${path.replaceAll("\"", "\\\"")}"`;
140992
141141
  }
140993
141142
  function parseConfiguredTypes(content) {
140994
141143
  const types = [];
@@ -141031,7 +141180,7 @@ function isVersionAtLeast(version, min) {
141031
141180
  }
141032
141181
  function tomlString(value) {
141033
141182
  if (!value.includes("'")) return `'${value}'`;
141034
- return `"${value.replaceAll(/\\/g, "\\\\").replaceAll(/"/g, "\\\"")}"`;
141183
+ return `"${value.replaceAll("\\", "\\\\").replaceAll("\"", "\\\"")}"`;
141035
141184
  }
141036
141185
  function generateConfig(platform) {
141037
141186
  const dir = dirname$1(CONFIG_PATH);
@@ -141931,7 +142080,13 @@ async function handleExtensionCommand(host, args) {
141931
142080
  }
141932
142081
  function getErrorMessage(error) {
141933
142082
  if (error === null || error === void 0) return String(error);
141934
- return String(error.message ?? error);
142083
+ const value = typeof error === "object" && "message" in error ? error.message : error;
142084
+ if (value === null || typeof value !== "object") return String(value);
142085
+ try {
142086
+ return JSON.stringify(value) ?? "Unknown error";
142087
+ } catch {
142088
+ return "Unknown error";
142089
+ }
141935
142090
  }
141936
142091
  //#endregion
141937
142092
  //#region src/tui/commands/btw.ts
@@ -144966,4 +145121,4 @@ async function handleBuiltInSlashCommand(host, name, args) {
144966
145121
  }
144967
145122
  }
144968
145123
  //#endregion
144969
- export { handleInitCommand as $, formatErrorMessage as $t, renderDiffLinesClustered as A, detectInstallSource as An, DISABLE_TERMINAL_THEME_REPORTING as At, BackgroundAgentStatusComponent as B, resolveNexumHome as Bn, TERMINAL_THEME_DARK as Bt, handleRevokeCommand as C, TuiLikePreferencesSchema as Cn, createMarkdownTheme as Ct, toggleEmptySessionHint as D, getDataDir as Dn, detectTerminalTheme as Dt, isTurnElapsedEnabled as E, detectShellEnvironment as En, getColorPalette as Et, estimateTokens as F, DEFAULT_CATALOG_URL as Fn, OSC11_RESPONSE_PREFIX as Ft, BREATHE_CYCLE_MS as G, isNexumError as Gn, handleTraceCommand as Gt, AgentGroupComponent as H, flushDiagnosticLogs as Hn, isBusy as Ht, getSharedSpeedTracker as I, fetchCatalog as In, OSC11_RESPONSE_PREFIX_NO_ESC as It, clearGoalState as J, NEXUM_ERROR_INFO as Jn, handleLogoutCommand as Jt, getBreathingFrame as K, isOrphanedToolCallError as Kn, handleSearchCommand as Kt, SkillActivationComponent as L, saveCatalogCache as Ln, QUERY_TERMINAL_THEME as Lt, langFromPath as M, CLI_UI_MODE as Mn, ENABLE_TERMINAL_THEME_REPORTING as Mt, CachedContainer as N, CLI_USER_AGENT_PRODUCT as Nn, OSC11_QUERY as Nt, ToolCallComponent as O, getInputHistoryFile as On, parseOsc11BackgroundTheme as Ot, ThinkingComponent as P, PRODUCT_NAME as Pn, OSC11_RESPONSE as Pt, handleForkCommand as Q, argsRecord as Qt, ReadGroupComponent as R, NexumHarness as Rn, TERMINAL_FOCUS_IN as Rt, getDaemonInstructions as S, TuiConfigParseError as Sn, createEditorTheme as St, isEmptySessionHintDismissed as T, saveTuiConfig as Tn, contrastTextHex as Tt, WelcomeComponent as U, log as Un, isStreaming as Ut, AssistantMessageComponent as V, MemoryMemoStore as Vn, TERMINAL_THEME_LIGHT as Vt, NEXUM_CODE_LOGO as W, resolveGlobalLogPath as Wn, FooterComponent as Wt, handleExportDebugZipCommand as X, STATUS_BULLET as Xt, refineGoal as Y, printableChar as Yt, handleExportMdCommand as Z, appendStreamingArgsPreview as Zt, refreshUpdateCache as _, sortSlashCommands as _n, supportsBalance as _t, handleExtensionCommand as a, CHARS_PER_TOKEN as an, handleCompactCommand as at, readJsonlFile as b, PIXEL_PULSE_FRAMES as bn, showUsage as bt, hasDispose as c, MAIN_AGENT_ID$1 as cn, handleModelCommand as ct, formatMemoryMemoForInjection as d, getCtrlCHint as dn, handleWolfpackCommand as dt, isTodoItemShape as en, handleTitleCommand as et, handleMemoryCommand as f, getCtrlDHint as fn, handleYoloCommand as ft, selectUpdateTarget as g, BUILTIN_SLASH_COMMANDS as gn, refreshProviderBalance as gt, handleUpdateCommand as h, buildSkillSlashCommands as hn, showSettingsSelector as ht, buildRoleAdditionalText as i, truncateErrorMessage as in, handleAutoCommand as it, highlightLines as j, CLI_COMMAND_NAME as jn, ENABLE_TERMINAL_FOCUS_REPORTING as jt, renderDiffLines as k, getLogDir as kn, DISABLE_TERMINAL_FOCUS_REPORTING as kt, isPlanExpandable as l, SESSION_TIPS as ln, handlePlanCommand as lt, handleMcpCommand as m, getNoActiveSessionMessage as mn, showPermissionPicker as mt, clearEvalPanelState as n, serializeToolResultOutput as nn, changeThinkingLevel as nt, handleSkillCommand as o, EMPTY_SESSION_HINT_URL as on, handleEditorCommand as ot, handleChannelCommand as p, getLlmNotSetMessage as pn, showModelPicker as pt, resetBreathingClock as q, ErrorCodes as qn, handleConnectCommand as qt, openUrl as r, stringValue as rn, getModelCycleLevel as rt, disposeChildren as s, EXIT_CONFIRM_WINDOW_MS as sn, handleFusionPlanCommand as st, dispatchInput as t, parseStreamingArgs as tn, toTerminalHyperlink as tt, MoonLoader as u, TIP_ROTATION_INTERVAL_MS as un, handleThemeCommand as ut, readUpdateCache as v, isExperimentalFlagEnabled as vn, clearInfoPanelState as vt, UserMessageComponent as w, loadTuiConfig as wn, createThemeStyles as wt, handleCcCommand as x, PULSE_WAVE_FRAMES as xn, resolveThemeSync as xt, appendJsonlLine as y, setExperimentalFlags as yn, showStatusReport as yt, parseReadGroupOutput as z, MCP_OAUTH_AUTHORIZATION_URL_TOOL_UPDATE as zn, TERMINAL_FOCUS_OUT as zt };
145124
+ export { handleExportMdCommand as $, appendStreamingArgsPreview as $t, renderDiffLinesClustered as A, getInputHistoryFile as An, parseOsc11BackgroundTheme as At, BackgroundAgentStatusComponent as B, NexumHarness as Bn, TERMINAL_FOCUS_IN as Bt, handleRevokeCommand as C, PULSE_WAVE_FRAMES as Cn, resolveThemeSync as Ct, toggleEmptySessionHint as D, saveTuiConfig as Dn, contrastTextHex as Dt, isTurnElapsedEnabled as E, loadTuiConfig as En, createThemeStyles as Et, estimateTokens as F, CLI_USER_AGENT_PRODUCT as Fn, OSC11_QUERY as Ft, WelcomeComponent as G, log as Gn, isStreaming as Gt, AgentGroupComponent as H, resolveNexumHome as Hn, TERMINAL_THEME_DARK as Ht, getSharedSpeedTracker as I, PRODUCT_NAME as In, OSC11_RESPONSE as It, getBreathingFrame as J, isOrphanedToolCallError as Jn, handleSearchCommand as Jt, NEXUM_CODE_LOGO as K, resolveGlobalLogPath as Kn, FooterComponent as Kt, SkillActivationComponent as L, DEFAULT_CATALOG_URL as Ln, OSC11_RESPONSE_PREFIX as Lt, langFromPath as M, detectInstallSource as Mn, DISABLE_TERMINAL_THEME_REPORTING as Mt, CachedContainer as N, CLI_COMMAND_NAME as Nn, ENABLE_TERMINAL_FOCUS_REPORTING as Nt, ToolCallComponent as O, detectShellEnvironment as On, getColorPalette as Ot, ThinkingComponent as P, CLI_UI_MODE as Pn, ENABLE_TERMINAL_THEME_REPORTING as Pt, handleExportDebugZipCommand as Q, STATUS_BULLET as Qt, ReadGroupComponent as R, fetchCatalog as Rn, OSC11_RESPONSE_PREFIX_NO_ESC as Rt, getDaemonInstructions as S, PIXEL_PULSE_FRAMES as Sn, showUsage as St, isEmptySessionHintDismissed as T, TuiLikePreferencesSchema as Tn, createMarkdownTheme as Tt, replaceTabs as U, MemoryMemoStore as Un, TERMINAL_THEME_LIGHT as Ut, AssistantMessageComponent as V, MCP_OAUTH_AUTHORIZATION_URL_TOOL_UPDATE as Vn, TERMINAL_FOCUS_OUT as Vt, sanitizeShellOutput as W, flushDiagnosticLogs as Wn, isBusy as Wt, clearGoalState as X, NEXUM_ERROR_INFO as Xn, handleLogoutCommand as Xt, resetBreathingClock as Y, ErrorCodes as Yn, handleConnectCommand as Yt, refineGoal as Z, printableChar as Zt, refreshUpdateCache as _, buildSkillSlashCommands as _n, showSettingsSelector as _t, handleExtensionCommand as a, stringValue as an, getModelCycleLevel as at, readJsonlFile as b, isExperimentalFlagEnabled as bn, clearInfoPanelState as bt, hasDispose as c, EMPTY_SESSION_HINT_URL as cn, handleEditorCommand as ct, formatMemoryMemoForInjection as d, SESSION_TIPS as dn, handlePlanCommand as dt, argsRecord as en, handleForkCommand as et, handleMemoryCommand as f, TIP_ROTATION_INTERVAL_MS as fn, handleThemeCommand as ft, selectUpdateTarget as g, getNoActiveSessionMessage as gn, showPermissionPicker as gt, handleUpdateCommand as h, getLlmNotSetMessage as hn, showModelPicker as ht, buildRoleAdditionalText as i, serializeToolResultOutput as in, changeThinkingLevel as it, highlightLines as j, getLogDir as jn, DISABLE_TERMINAL_FOCUS_REPORTING as jt, renderDiffLines as k, getDataDir as kn, detectTerminalTheme as kt, isPlanExpandable as l, EXIT_CONFIRM_WINDOW_MS as ln, handleFusionPlanCommand as lt, handleMcpCommand as m, getCtrlDHint as mn, handleYoloCommand as mt, clearEvalPanelState as n, isTodoItemShape as nn, handleTitleCommand as nt, handleSkillCommand as o, truncateErrorMessage as on, handleAutoCommand as ot, handleChannelCommand as p, getCtrlCHint as pn, handleWolfpackCommand as pt, BREATHE_CYCLE_MS as q, isNexumError as qn, handleTraceCommand as qt, openUrl as r, parseStreamingArgs as rn, toTerminalHyperlink as rt, disposeChildren as s, CHARS_PER_TOKEN as sn, handleCompactCommand as st, dispatchInput as t, formatErrorMessage as tn, handleInitCommand as tt, MoonLoader as u, MAIN_AGENT_ID$1 as un, handleModelCommand as ut, readUpdateCache as v, BUILTIN_SLASH_COMMANDS as vn, refreshProviderBalance as vt, UserMessageComponent as w, TuiConfigParseError as wn, createEditorTheme as wt, handleCcCommand as x, setExperimentalFlags as xn, showStatusReport as xt, appendJsonlLine as y, sortSlashCommands as yn, supportsBalance as yt, parseReadGroupOutput as z, saveCatalogCache as zn, QUERY_TERMINAL_THEME as zt };