deepline 0.3.419 → 0.3.421

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 (102) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/monitors/quickstart-prompts.ts +13 -16
  3. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +20 -30
  4. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  5. package/dist/cli/{auth-S4XGFFWB.mjs → auth-56JTC4Q7.mjs} +4 -4
  6. package/dist/cli/auth-ZQMAF7W5.js +40 -0
  7. package/dist/cli/{billing-WQMBRCK3.js → billing-C5LR6FA7.js} +73 -73
  8. package/dist/cli/{billing-3MM7VKKA.mjs → billing-ZXOOZEUW.mjs} +4 -4
  9. package/dist/cli/{chunk-WHXZGCKE.js → chunk-2WOVAVJ3.js} +26 -26
  10. package/dist/cli/{chunk-GEHD7ZHY.js → chunk-2XKDLS5P.js} +6 -6
  11. package/dist/cli/{chunk-5R3CAKPM.js → chunk-4I26IVFC.js} +35 -35
  12. package/dist/cli/{chunk-LB7PZRYJ.mjs → chunk-4NS4EZHN.mjs} +2 -2
  13. package/dist/cli/{chunk-2ADW356Z.mjs → chunk-5E55HHW3.mjs} +4 -4
  14. package/dist/cli/{chunk-BQIUAAPX.mjs → chunk-5F6W5NWV.mjs} +5 -5
  15. package/dist/cli/{chunk-NJI4U7IR.js → chunk-5KYK4DGY.js} +8 -8
  16. package/dist/cli/{chunk-2MQXRENZ.js → chunk-6UKY4LBW.js} +20 -20
  17. package/dist/cli/{chunk-2Y2RQZRO.js → chunk-7SRVIWGT.js} +1 -1
  18. package/dist/cli/{chunk-3NUJRZN5.mjs → chunk-7TSF7E3B.mjs} +2 -2
  19. package/dist/cli/{chunk-ZCINJS4P.mjs → chunk-AZGJNNNE.mjs} +2 -2
  20. package/dist/cli/{chunk-VZSBJVI4.js → chunk-C25ZYL6U.js} +4 -4
  21. package/dist/cli/{chunk-LFSHGNT2.mjs → chunk-CTNA5QY2.mjs} +7 -6
  22. package/dist/cli/{chunk-IK3XE6GT.mjs → chunk-EKQH4IUU.mjs} +1 -1
  23. package/dist/cli/{chunk-PGHT4ESO.mjs → chunk-F4V4JJED.mjs} +3 -3
  24. package/dist/cli/{chunk-EP5EVGFD.js → chunk-FB5H5OOH.js} +10 -10
  25. package/dist/cli/{chunk-JUBHX5FK.js → chunk-GIJ47TAV.js} +6 -6
  26. package/dist/cli/{chunk-THGNECIR.js → chunk-HP5FD2LI.js} +8 -8
  27. package/dist/cli/{chunk-CKAQIJTU.js → chunk-JJQLBZEW.js} +2 -2
  28. package/dist/cli/{chunk-D4P53G7A.js → chunk-NSJRLP7R.js} +16 -16
  29. package/dist/cli/{chunk-5MLCBXXU.js → chunk-PKBPSMOT.js} +7 -6
  30. package/dist/cli/{chunk-PR5T2MON.js → chunk-QJV2ALPN.js} +2 -2
  31. package/dist/cli/{chunk-6LLEMZL5.mjs → chunk-RJLFCJ23.mjs} +3 -3
  32. package/dist/cli/{chunk-OVMJ57X5.mjs → chunk-RURYN2BE.mjs} +25 -57
  33. package/dist/cli/{chunk-7IXS77PX.mjs → chunk-SPLOMS4N.mjs} +1 -1
  34. package/dist/cli/{chunk-MUVGAGXH.mjs → chunk-UCI4QROZ.mjs} +1 -1
  35. package/dist/cli/{chunk-EPMYNLKZ.mjs → chunk-VC3E5HFO.mjs} +1 -1
  36. package/dist/cli/{chunk-LA7V3VIF.js → chunk-VEYAPBS4.js} +96 -128
  37. package/dist/cli/{chunk-KABBXKFO.mjs → chunk-VYLZS7X4.mjs} +1 -1
  38. package/dist/cli/{chunk-NPXUFHMI.js → chunk-WR4M5VWK.js} +52 -52
  39. package/dist/cli/{chunk-TLGTZ2XN.mjs → chunk-ZLPT2RZ5.mjs} +2 -2
  40. package/dist/cli/{chunk-JKDMQDJD.mjs → chunk-ZOL3CIKN.mjs} +3 -3
  41. package/dist/cli/{chunk-LIZP3TPY.mjs → chunk-ZSVWCV3G.mjs} +1 -1
  42. package/dist/cli/{chunk-WPJBDOVV.js → chunk-ZZBXD5VX.js} +50 -50
  43. package/dist/cli/command-docs.js +2 -2
  44. package/dist/cli/command-docs.mjs +1 -1
  45. package/dist/cli/{csv-JKBKQMJS.mjs → csv-EJ4QRLA2.mjs} +3 -3
  46. package/dist/cli/{csv-SILKSRLY.js → csv-G6H3U4XV.js} +12 -12
  47. package/dist/cli/{db-Y67OZBKB.mjs → db-PBIIALJ5.mjs} +4 -4
  48. package/dist/cli/{db-HUOYJZ2S.js → db-WKQFXUWI.js} +25 -25
  49. package/dist/cli/{describe-7PO235KZ.mjs → describe-DMRK4UNO.mjs} +12 -12
  50. package/dist/cli/{describe-RN25ACS6.js → describe-ZCU36ES2.js} +16 -16
  51. package/dist/cli/{executions-RNAT43OA.mjs → executions-JAHW6GMA.mjs} +4 -4
  52. package/dist/cli/{executions-4NQOE73P.js → executions-SBA3UYMH.js} +6 -6
  53. package/dist/cli/{feedback-WCPPBNAK.mjs → feedback-PKBUYHMD.mjs} +3 -3
  54. package/dist/cli/{feedback-QW2H7PZ7.js → feedback-QAE4V2NY.js} +7 -7
  55. package/dist/cli/git-54INNT33.js +24 -0
  56. package/dist/cli/{git-GLIWIFE3.mjs → git-GAO3SJAQ.mjs} +4 -4
  57. package/dist/cli/index.js +135 -135
  58. package/dist/cli/index.mjs +37 -37
  59. package/dist/cli/{legacy-noops-ADDQUU26.mjs → legacy-noops-5PY2ZZF3.mjs} +4 -4
  60. package/dist/cli/{legacy-noops-HUWR7BMO.js → legacy-noops-JCMVW5BL.js} +7 -7
  61. package/dist/cli/{monitors-ZR5BRAFH.mjs → monitors-GVYAZRMB.mjs} +4 -4
  62. package/dist/cli/{monitors-TBY3OEWL.js → monitors-YPS4LPDG.js} +84 -84
  63. package/dist/cli/{org-4JCEJFF4.js → org-OBVAU6K7.js} +64 -64
  64. package/dist/cli/{org-UBJ2J7I3.mjs → org-R7AKPKUB.mjs} +4 -4
  65. package/dist/cli/{play-WD5JVYPK.mjs → play-3LFM2SV2.mjs} +10 -10
  66. package/dist/cli/{play-X3ULEXAW.js → play-MTHQQHR6.js} +283 -283
  67. package/dist/cli/{providers-FPUQNBZT.js → providers-CTIROUI3.js} +7 -7
  68. package/dist/cli/{providers-5FHAFCKF.mjs → providers-IRICPDKU.mjs} +4 -4
  69. package/dist/cli/{quickstart-XFQSAVDZ.mjs → quickstart-5FBQVZ5B.mjs} +3 -3
  70. package/dist/cli/{quickstart-ARNCLYA5.js → quickstart-OZDVFNF2.js} +5 -5
  71. package/dist/cli/{search-GPFQ7DVB.mjs → search-FYM47QFU.mjs} +5 -5
  72. package/dist/cli/search-XIKHDZJ3.js +30 -0
  73. package/dist/cli/{secrets-X4SI4ODH.js → secrets-43GJUDAE.js} +13 -13
  74. package/dist/cli/{secrets-T4DP2OUW.mjs → secrets-ENBXU3O3.mjs} +4 -4
  75. package/dist/cli/{sessions-S374MOV3.mjs → sessions-7IQJOH5Z.mjs} +4 -4
  76. package/dist/cli/{sessions-CMRGH7VP.js → sessions-RXX5IHG6.js} +5 -5
  77. package/dist/cli/{settings-RGXD3IYO.mjs → settings-EZGDTS3K.mjs} +8 -8
  78. package/dist/cli/{settings-IWEDBHC4.js → settings-Z2CWWV7P.js} +75 -75
  79. package/dist/cli/{setup-PQHKVOYA.js → setup-2ON3TUXP.js} +42 -42
  80. package/dist/cli/{setup-N6UOP274.mjs → setup-N5UMUBBV.mjs} +7 -7
  81. package/dist/cli/skills-2WIHNEOS.js +29 -0
  82. package/dist/cli/{skills-DHOK5DZB.mjs → skills-4MR2Z2M5.mjs} +5 -5
  83. package/dist/cli/{tools-5Q4246NF.mjs → tools-MCEIWE3I.mjs} +12 -12
  84. package/dist/cli/tools-YUUSOKYX.js +44 -0
  85. package/dist/cli/{update-2LQIYQVX.mjs → update-2JDBGLTX.mjs} +7 -7
  86. package/dist/cli/update-PWX4MJ3R.js +31 -0
  87. package/dist/cli/{workflow-LDRMZBCK.js → workflow-7DNBY4WJ.js} +15 -15
  88. package/dist/cli/{workflow-DBIMUE7K.mjs → workflow-7UDXYU5Y.mjs} +5 -5
  89. package/dist/index.js +6 -6
  90. package/dist/index.mjs +3 -3
  91. package/dist/install-integrity.json +80 -80
  92. package/dist/release.d.mts +1 -1
  93. package/dist/release.d.ts +1 -1
  94. package/dist/release.js +2 -2
  95. package/dist/release.mjs +1 -1
  96. package/package.json +1 -1
  97. package/dist/cli/auth-SF265NLP.js +0 -40
  98. package/dist/cli/git-ODPWPPCD.js +0 -24
  99. package/dist/cli/search-TPHG6627.js +0 -30
  100. package/dist/cli/skills-2LO7KAVM.js +0 -29
  101. package/dist/cli/tools-JGBXER7K.js +0 -44
  102. package/dist/cli/update-V7WJDCBC.js +0 -31
@@ -5,7 +5,7 @@ var _chunk27GJKC5Qjs = require('./chunk-27GJKC5Q.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkTHGNECIRjs = require('./chunk-THGNECIR.js');
8
+ var _chunkHP5FD2LIjs = require('./chunk-HP5FD2LI.js');
9
9
 
10
10
 
11
11
 
@@ -45,7 +45,7 @@ var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
45
45
 
46
46
 
47
47
 
48
- var _chunkEP5EVGFDjs = require('./chunk-EP5EVGFD.js');
48
+ var _chunkFB5H5OOHjs = require('./chunk-FB5H5OOH.js');
49
49
 
50
50
 
51
51
  var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
@@ -55,18 +55,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
55
55
 
56
56
 
57
57
 
58
- var _chunk2MQXRENZjs = require('./chunk-2MQXRENZ.js');
58
+ var _chunk6UKY4LBWjs = require('./chunk-6UKY4LBW.js');
59
59
 
60
60
 
61
61
 
62
62
 
63
- var _chunkCKAQIJTUjs = require('./chunk-CKAQIJTU.js');
63
+ var _chunkJJQLBZEWjs = require('./chunk-JJQLBZEW.js');
64
64
 
65
65
 
66
66
 
67
67
 
68
68
 
69
- var _chunkNPXUFHMIjs = require('./chunk-NPXUFHMI.js');
69
+ var _chunkWR4M5VWKjs = require('./chunk-WR4M5VWK.js');
70
70
 
71
71
 
72
72
 
@@ -74,12 +74,12 @@ var _chunkNPXUFHMIjs = require('./chunk-NPXUFHMI.js');
74
74
 
75
75
 
76
76
 
77
- var _chunkJUBHX5FKjs = require('./chunk-JUBHX5FK.js');
77
+ var _chunkGIJ47TAVjs = require('./chunk-GIJ47TAV.js');
78
78
 
79
79
 
80
80
 
81
81
 
82
- var _chunkVZSBJVI4js = require('./chunk-VZSBJVI4.js');
82
+ var _chunkC25ZYL6Ujs = require('./chunk-C25ZYL6U.js');
83
83
 
84
84
 
85
85
  var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
@@ -158,10 +158,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
158
158
  }
159
159
  };
160
160
  function pendingToolExecutionPath(input) {
161
- const config = _chunkVZSBJVI4js.resolveConfig.call(void 0, );
161
+ const config = _chunkC25ZYL6Ujs.resolveConfig.call(void 0, );
162
162
  const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkXDVT3GOMjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
163
163
  return _path.join.call(void 0,
164
- _chunkVZSBJVI4js.sdkCliStateDirPath.call(void 0, config.baseUrl),
164
+ _chunkC25ZYL6Ujs.sdkCliStateDirPath.call(void 0, config.baseUrl),
165
165
  `pending-tool-execution-${fingerprint}.json`
166
166
  );
167
167
  }
@@ -293,32 +293,13 @@ function toListedTool(tool) {
293
293
  executeCommand: `deepline tools execute ${tool.toolId}`
294
294
  };
295
295
  }
296
- function normalizeGrepText(value) {
297
- if (value === null || value === void 0) return "";
298
- if (typeof value === "string") return value.toLowerCase();
299
- if (typeof value === "number" || typeof value === "boolean") {
300
- return String(value).toLowerCase();
301
- }
302
- if (Array.isArray(value)) return value.map(normalizeGrepText).join(" ");
303
- if (typeof value === "object") {
304
- return Object.values(value).map(normalizeGrepText).join(" ");
305
- }
306
- return "";
307
- }
308
296
  function parseGrepTerms(query, mode) {
309
- const trimmed = query.trim().toLowerCase();
297
+ const trimmed = query.trim();
310
298
  if (!trimmed) return [];
311
299
  if (mode === "phrase") return [trimmed];
312
300
  const matches = _nullishCoalesce(trimmed.match(/"([^"]+)"|'([^']+)'|\S+/g), () => ( []));
313
301
  return matches.map((term) => term.replace(/^["']|["']$/g, "").trim()).filter(Boolean);
314
302
  }
315
- function matchesGrepQuery(value, query, mode) {
316
- const terms = parseGrepTerms(query, mode);
317
- if (terms.length === 0) return true;
318
- const haystack = normalizeGrepText(value);
319
- if (mode === "any") return terms.some((term) => haystack.includes(term));
320
- return terms.every((term) => haystack.includes(term));
321
- }
322
303
  function shellCommandArg(value) {
323
304
  return `'${value.replace(/'/g, `'\\''`)}'`;
324
305
  }
@@ -338,7 +319,7 @@ function zeroMatchToolGuidance(options) {
338
319
  },
339
320
  ...options.mode === "all" ? [
340
321
  {
341
- label: "Relax literal grep from AND to OR matching",
322
+ label: "Relax grep from AND to OR matching",
342
323
  command: `deepline tools grep --mode any -- ${shellCommandArg(query)}`
343
324
  }
344
325
  ] : []
@@ -456,13 +437,13 @@ function categoryEnumerationRender(summaries) {
456
437
  };
457
438
  }
458
439
  async function listToolCategories(emitJson, compact) {
459
- const client = new (0, _chunkEP5EVGFDjs.DeeplineClient)();
440
+ const client = new (0, _chunkFB5H5OOHjs.DeeplineClient)();
460
441
  if (!emitJson) {
461
442
  const summaries2 = (await client.listToolCategories()).map((category) => ({
462
443
  ...category,
463
444
  description: describeToolCategory(category.name)
464
445
  }));
465
- _chunkJUBHX5FKjs.printCommandEnvelope.call(void 0,
446
+ _chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
466
447
  { categories: summaries2, render: categoryEnumerationRender(summaries2) },
467
448
  { json: false }
468
449
  );
@@ -472,7 +453,7 @@ async function listToolCategories(emitJson, compact) {
472
453
  const items = rawTools.map(toListedTool);
473
454
  const summaries = aggregateCategorySummaries(rawTools);
474
455
  const outputItems = compact ? items.map(compactTool) : items;
475
- _chunkJUBHX5FKjs.printCommandEnvelope.call(void 0,
456
+ _chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
476
457
  {
477
458
  tools: outputItems,
478
459
  count: outputItems.length,
@@ -491,7 +472,7 @@ function unknownCategoryError(category, summaries, emitJson) {
491
472
  const known = summaries.map((item) => item.name);
492
473
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
493
474
  if (emitJson) {
494
- _chunkJUBHX5FKjs.printJson.call(void 0, {
475
+ _chunkGIJ47TAVjs.printJson.call(void 0, {
495
476
  ok: false,
496
477
  exitCode: 4,
497
478
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -505,13 +486,13 @@ function unknownCategoryError(category, summaries, emitJson) {
505
486
  const render = categoryEnumerationRender(summaries);
506
487
  console.error(message);
507
488
  console.error("");
508
- console.error(_chunkJUBHX5FKjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
489
+ console.error(_chunkGIJ47TAVjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
509
490
  console.error("");
510
491
  console.error(`Valid categories: ${known.join(", ")}`);
511
492
  return 4;
512
493
  }
513
494
  async function listToolsInCategory(category, emitJson) {
514
- const client = new (0, _chunkEP5EVGFDjs.DeeplineClient)();
495
+ const client = new (0, _chunkFB5H5OOHjs.DeeplineClient)();
515
496
  const { tools: rawTools, categories } = await client.listToolsInCategory(category);
516
497
  const summaries = categories.map((item) => ({
517
498
  ...item,
@@ -547,7 +528,7 @@ async function listToolsInCategory(category, emitJson) {
547
528
  }
548
529
  ]
549
530
  };
550
- _chunkJUBHX5FKjs.printCommandEnvelope.call(void 0,
531
+ _chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
551
532
  {
552
533
  category,
553
534
  total: rows.length,
@@ -560,7 +541,7 @@ async function listToolsInCategory(category, emitJson) {
560
541
  return 0;
561
542
  }
562
543
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
563
- const client = new (0, _chunkEP5EVGFDjs.DeeplineClient)();
544
+ const client = new (0, _chunkFB5H5OOHjs.DeeplineClient)();
564
545
  const items = (await client.listTools({
565
546
  categories: requestedCategories.join(","),
566
547
  compact
@@ -589,7 +570,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
589
570
  ]
590
571
  };
591
572
  const outputItems = compact ? items.map(compactTool) : items;
592
- _chunkJUBHX5FKjs.printCommandEnvelope.call(void 0,
573
+ _chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
593
574
  {
594
575
  tools: outputItems,
595
576
  count: outputItems.length,
@@ -608,13 +589,13 @@ async function listTools(category, options = {}) {
608
589
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
609
590
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
610
591
  const compact = options.compact !== false;
611
- const emitJson = options.json === true || _chunkJUBHX5FKjs.shouldEmitJson.call(void 0, );
592
+ const emitJson = options.json === true || _chunkGIJ47TAVjs.shouldEmitJson.call(void 0, );
612
593
  if (positional && flagCategories.length > 0) {
613
594
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
614
595
  if (!flagIsSameSingle) {
615
596
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
616
597
  if (emitJson) {
617
- _chunkJUBHX5FKjs.printJson.call(void 0, {
598
+ _chunkGIJ47TAVjs.printJson.call(void 0, {
618
599
  ok: false,
619
600
  exitCode: 2,
620
601
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -641,7 +622,7 @@ async function grepTools(queryInput, options = {}) {
641
622
  console.error("Usage: deepline tools grep <query> [--json]");
642
623
  return 1;
643
624
  }
644
- const client = new (0, _chunkEP5EVGFDjs.DeeplineClient)();
625
+ const client = new (0, _chunkFB5H5OOHjs.DeeplineClient)();
645
626
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
646
627
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
647
628
  const jsonOutput = options.json === true;
@@ -658,33 +639,14 @@ async function grepTools(queryInput, options = {}) {
658
639
  (item) => requestedCategories.length === 0 || requestedCategories.some(
659
640
  (category) => item.categories.includes(category)
660
641
  )
661
- ).filter(
662
- (item) => apiCompact ? true : matchesGrepQuery(
663
- {
664
- id: item.toolId,
665
- toolId: item.toolId,
666
- provider: item.provider,
667
- displayName: item.displayName,
668
- description: item.description,
669
- categories: item.categories,
670
- operation: item.operation,
671
- operationAliases: item.operationAliases,
672
- inputSchema: item.inputSchema,
673
- outputSchema: item.outputSchema,
674
- inputFields: item.inputFields
675
- },
676
- query,
677
- mode
678
- )
679
642
  );
680
- const shouldCompact = apiCompact;
681
- const outputTools = shouldCompact ? tools.slice(0, 8).map(compactTool) : tools;
643
+ const outputTools = apiCompact ? tools.map(compactTool) : tools;
682
644
  const emptyResult = tools.length === 0 ? zeroMatchToolGuidance({
683
645
  categories: requestedCategories,
684
646
  query,
685
647
  mode
686
648
  }) : null;
687
- _chunkJUBHX5FKjs.printCommandEnvelope.call(void 0,
649
+ _chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
688
650
  {
689
651
  tools: outputTools,
690
652
  count: outputTools.length,
@@ -702,7 +664,7 @@ async function grepTools(queryInput, options = {}) {
702
664
  } : {},
703
665
  commandTemplates: TOOL_COMMAND_TEMPLATES
704
666
  },
705
- { json: options.json || _chunkJUBHX5FKjs.shouldEmitJson.call(void 0, ) }
667
+ { json: options.json || _chunkGIJ47TAVjs.shouldEmitJson.call(void 0, ) }
706
668
  );
707
669
  return 0;
708
670
  }
@@ -714,6 +676,7 @@ function compactTool(tool) {
714
676
  const listed = toListedTool(tool);
715
677
  const searchScore = numericToolField(tool, "searchScore");
716
678
  const search_score = numericToolField(tool, "search_score");
679
+ const matchedFields = tool.matchedFields;
717
680
  return {
718
681
  id: listed.id,
719
682
  toolId: listed.toolId,
@@ -724,7 +687,8 @@ function compactTool(tool) {
724
687
  description: listed.description,
725
688
  categories: listed.categories,
726
689
  type: listed.type,
727
- executeCommand: listed.executeCommand
690
+ executeCommand: listed.executeCommand,
691
+ ...Array.isArray(matchedFields) ? { matchedFields } : {}
728
692
  };
729
693
  }
730
694
  function playIdentifiers(play) {
@@ -817,7 +781,7 @@ Output:
817
781
  "--credentials-file must contain a nonempty JSON object of string credential values."
818
782
  );
819
783
  }
820
- const result = await new (0, _chunkEP5EVGFDjs.DeeplineClient)().setIntegrationCredentials(
784
+ const result = await new (0, _chunkFB5H5OOHjs.DeeplineClient)().setIntegrationCredentials(
821
785
  provider,
822
786
  credentials
823
787
  );
@@ -827,7 +791,7 @@ Output:
827
791
  );
828
792
  }
829
793
  const confirmation = { provider, credential_saved: true };
830
- if (_chunkJUBHX5FKjs.shouldEmitJson.call(void 0, options.json))
794
+ if (_chunkGIJ47TAVjs.shouldEmitJson.call(void 0, options.json))
831
795
  console.log(JSON.stringify(confirmation));
832
796
  else
833
797
  console.log(
@@ -867,22 +831,26 @@ Examples:
867
831
  json: Boolean(options.json)
868
832
  });
869
833
  });
870
- _chunkTHGNECIRjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
834
+ _chunkHP5FD2LIjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
871
835
  tools.command("grep <query>").description(
872
- "Literal grep over tool ids, descriptions, categories, and input fields."
836
+ "Regex grep over tool ids, descriptions, categories, and input fields."
873
837
  ).addHelpText(
874
838
  "after",
875
839
  `
876
840
  Notes:
877
- Literal registry filtering. Terms are matched case-insensitively against tool
878
- ids, provider, display name, description, categories, aliases, and input
879
- fields. Use --mode phrase for exact phrase matching, --mode any for OR, and
880
- the default --mode all for AND.
841
+ Each whitespace-separated term is a case-insensitive regular expression
842
+ (RE2 syntax), tested against each field on its own: tool id, provider,
843
+ display name, categories, aliases, input field names, and descriptions.
844
+ Results list id matches first, and matchedFields says where each tool
845
+ matched. Use --mode any for OR, the default --mode all for AND, and
846
+ --mode phrase to treat the whole query, spaces included, as one pattern.
847
+ A term that is not valid RE2 (for example c++) is matched literally.
881
848
 
882
849
  Examples:
850
+ deepline tools grep '^hubspot_'
851
+ deepline tools grep 'twilio|telesign|vonage'
852
+ deepline tools grep 'hubspot.*(call|engagement)'
883
853
  deepline tools grep email --categories email_finder
884
- deepline tools grep "phone validate" --mode all
885
- deepline tools grep hunter --mode phrase
886
854
  `
887
855
  ).option(
888
856
  "--categories <categories>",
@@ -898,7 +866,7 @@ Examples:
898
866
  });
899
867
  const addToolMetadataCommand = (command) => {
900
868
  let compatibilityMetadata;
901
- _chunk2MQXRENZjs.registerCompatibilityCatalog.call(void 0, command, () => ({
869
+ _chunk6UKY4LBWjs.registerCompatibilityCatalog.call(void 0, command, () => ({
902
870
  toolId: command.args[0],
903
871
  acceptMetadata: (metadata) => {
904
872
  compatibilityMetadata = metadata;
@@ -968,7 +936,7 @@ Examples:
968
936
  process.exitCode = await narrowView();
969
937
  return;
970
938
  }
971
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-RN25ACS6.js")));
939
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-ZCU36ES2.js")));
972
940
  process.exitCode = await describeAnything(
973
941
  toolId,
974
942
  {
@@ -1052,7 +1020,7 @@ Examples:
1052
1020
  options,
1053
1021
  void 0,
1054
1022
  true,
1055
- _chunkCKAQIJTUjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1023
+ _chunkJJQLBZEWjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1056
1024
  );
1057
1025
  }
1058
1026
  );
@@ -1060,13 +1028,13 @@ Examples:
1060
1028
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1061
1029
  let metadata;
1062
1030
  const startedAt = performance.now();
1063
- const baseUrl = _chunkVZSBJVI4js.resolveConfig.call(void 0, ).baseUrl;
1064
- _chunkCKAQIJTUjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1065
- const result = _chunk2MQXRENZjs.runToolExecuteStage.call(void 0,
1031
+ const baseUrl = _chunkC25ZYL6Ujs.resolveConfig.call(void 0, ).baseUrl;
1032
+ _chunkJJQLBZEWjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1033
+ const result = _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
1066
1034
  "SDK compatibility",
1067
- () => _chunkNPXUFHMIjs.checkSdkCompatibility.call(void 0, baseUrl, {
1035
+ () => _chunkWR4M5VWKjs.checkSdkCompatibility.call(void 0, baseUrl, {
1068
1036
  command: "tools execute",
1069
- skillsVersion: _chunkVZSBJVI4js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1037
+ skillsVersion: _chunkC25ZYL6Ujs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1070
1038
  persistCache: false,
1071
1039
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1072
1040
  catalog: {
@@ -1080,7 +1048,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1080
1048
  })
1081
1049
  ).then(
1082
1050
  (compatibility) => {
1083
- _chunkCKAQIJTUjs.recordCliTrace.call(void 0, {
1051
+ _chunkJJQLBZEWjs.recordCliTrace.call(void 0, {
1084
1052
  phase: "cli.tool_execute_compatibility_ready",
1085
1053
  ms: performance.now() - startedAt,
1086
1054
  ok: compatibility.error === null,
@@ -1089,7 +1057,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1089
1057
  return compatibility;
1090
1058
  },
1091
1059
  (error) => {
1092
- _chunkCKAQIJTUjs.recordCliTrace.call(void 0, {
1060
+ _chunkJJQLBZEWjs.recordCliTrace.call(void 0, {
1093
1061
  phase: "cli.tool_execute_compatibility_ready",
1094
1062
  ms: performance.now() - startedAt,
1095
1063
  ok: false
@@ -1104,7 +1072,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1104
1072
  console.error("Usage: deepline tools describe <toolId> [--json]");
1105
1073
  return 1;
1106
1074
  }
1107
- const client = new (0, _chunkEP5EVGFDjs.DeeplineClient)();
1075
+ const client = new (0, _chunkFB5H5OOHjs.DeeplineClient)();
1108
1076
  let tool;
1109
1077
  try {
1110
1078
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1158,7 +1126,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1158
1126
  const lines = toolPricingOnlyLines(tool, toolId);
1159
1127
  if (inferenceQuote)
1160
1128
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1161
- _chunkJUBHX5FKjs.printCommandEnvelope.call(void 0,
1129
+ _chunkGIJ47TAVjs.printCommandEnvelope.call(void 0,
1162
1130
  {
1163
1131
  toolId: String(tool.toolId || toolId),
1164
1132
  cost: _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
@@ -1181,7 +1149,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1181
1149
  void 0,
1182
1150
  seedToolListScript
1183
1151
  );
1184
- _chunkJUBHX5FKjs.printCompactJson.call(void 0, {
1152
+ _chunkGIJ47TAVjs.printCompactJson.call(void 0, {
1185
1153
  toolId: contract.toolId,
1186
1154
  ...options.schemaOnly ? {
1187
1155
  inputSchema: contract.inputSchema,
@@ -1204,7 +1172,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1204
1172
  return 0;
1205
1173
  }
1206
1174
  if (options.contractJson) {
1207
- _chunkJUBHX5FKjs.printCompactJson.call(void 0, {
1175
+ _chunkGIJ47TAVjs.printCompactJson.call(void 0, {
1208
1176
  ..._chunkAD47BXN2js.toolContractJsonForDescribe.call(void 0,
1209
1177
  tool,
1210
1178
  toolId,
@@ -1218,7 +1186,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1218
1186
  }
1219
1187
  const emitJson = options.json === true;
1220
1188
  if (emitJson) {
1221
- _chunkJUBHX5FKjs.printCompactJson.call(void 0, {
1189
+ _chunkGIJ47TAVjs.printCompactJson.call(void 0, {
1222
1190
  ..._chunkAD47BXN2js.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1223
1191
  ...modelDescription ? { modelOptions: modelDescription } : {},
1224
1192
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -2079,7 +2047,7 @@ function parseExecuteOptions(toolId, options, output) {
2079
2047
  outputFormat = normalizeOutputFormat(options.outputFormat);
2080
2048
  }
2081
2049
  if (options.idempotencyKey !== void 0) {
2082
- _chunkEP5EVGFDjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2050
+ _chunkFB5H5OOHjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2083
2051
  }
2084
2052
  if (options.recoveryTimeoutMs !== void 0) {
2085
2053
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2399,19 +2367,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2399
2367
  parsed = parseExecuteOptions(toolId, options, output);
2400
2368
  } catch (error) {
2401
2369
  if (wantsJson) {
2402
- _chunkJUBHX5FKjs.printJsonError.call(void 0, error);
2370
+ _chunkGIJ47TAVjs.printJsonError.call(void 0, error);
2403
2371
  } else {
2404
2372
  console.error(error instanceof Error ? error.message : String(error));
2405
2373
  }
2406
2374
  return error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2407
2375
  }
2408
- const cliInvocationId = _nullishCoalesce(_chunk2MQXRENZjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk2MQXRENZjs.beginToolExecuteCommand.call(void 0, )));
2376
+ const cliInvocationId = _nullishCoalesce(_chunk6UKY4LBWjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk6UKY4LBWjs.beginToolExecuteCommand.call(void 0, )));
2409
2377
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2410
- const tracing = _chunkCKAQIJTUjs.isCliTraceEnabled.call(void 0, );
2378
+ const tracing = _chunkJJQLBZEWjs.isCliTraceEnabled.call(void 0, );
2411
2379
  const clientStartedAt = tracing ? performance.now() : void 0;
2412
- const client = new (0, _chunkEP5EVGFDjs.DeeplineClient)();
2380
+ const client = new (0, _chunkFB5H5OOHjs.DeeplineClient)();
2413
2381
  if (clientStartedAt !== void 0) {
2414
- _chunkCKAQIJTUjs.recordCliTrace.call(void 0, {
2382
+ _chunkJJQLBZEWjs.recordCliTrace.call(void 0, {
2415
2383
  phase: "cli.tool_execute_client_setup",
2416
2384
  ms: performance.now() - clientStartedAt
2417
2385
  });
@@ -2420,13 +2388,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2420
2388
  const readMetadata = async () => {
2421
2389
  if (metadata) return metadata;
2422
2390
  try {
2423
- metadata = await _chunk2MQXRENZjs.runToolExecuteStage.call(void 0,
2391
+ metadata = await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
2424
2392
  "tool metadata lookup",
2425
2393
  () => client.getTool(parsed.toolId, { cliInvocationId })
2426
2394
  );
2427
2395
  } catch (error) {
2428
2396
  if (isMissingToolMetadataError(error)) {
2429
- const play = await _chunk2MQXRENZjs.runToolExecuteStage.call(void 0,
2397
+ const play = await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
2430
2398
  "play alias lookup",
2431
2399
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2432
2400
  );
@@ -2465,7 +2433,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2465
2433
  metadata = await readMetadata();
2466
2434
  } catch (error) {
2467
2435
  if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2468
- if (wantsJson) _chunkJUBHX5FKjs.printJsonError.call(void 0, error);
2436
+ if (wantsJson) _chunkGIJ47TAVjs.printJsonError.call(void 0, error);
2469
2437
  else console.error(error.message);
2470
2438
  return 2;
2471
2439
  }
@@ -2481,7 +2449,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2481
2449
  metadata = await readMetadata();
2482
2450
  } catch (error) {
2483
2451
  if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2484
- if (wantsJson) _chunkJUBHX5FKjs.printJsonError.call(void 0, error);
2452
+ if (wantsJson) _chunkGIJ47TAVjs.printJsonError.call(void 0, error);
2485
2453
  else console.error(error.message);
2486
2454
  return 2;
2487
2455
  }
@@ -2507,11 +2475,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2507
2475
  responseIntent,
2508
2476
  ...idempotencyKey ? { idempotencyKey } : {},
2509
2477
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2510
- searchRef: _chunkTHGNECIRjs.recentSearchRef.call(void 0, ),
2478
+ searchRef: _chunkHP5FD2LIjs.recentSearchRef.call(void 0, ),
2511
2479
  cliInvocationId,
2512
2480
  onResponseReceived: _chunk27GJKC5Qjs.recordApiResponse,
2513
2481
  ...tracing ? {
2514
- onServerTiming: (serverTiming) => _chunkCKAQIJTUjs.recordCliTrace.call(void 0, {
2482
+ onServerTiming: (serverTiming) => _chunkJJQLBZEWjs.recordCliTrace.call(void 0, {
2515
2483
  phase: "tool_execute_server_timing",
2516
2484
  cliInvocationId,
2517
2485
  serverTiming,
@@ -2522,13 +2490,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2522
2490
  let rawResponse;
2523
2491
  let successfulCompatibilityResponse;
2524
2492
  try {
2525
- const executeResult = await _chunk2MQXRENZjs.runToolExecuteStage.call(void 0,
2493
+ const executeResult = await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
2526
2494
  "execute request",
2527
2495
  async () => {
2528
2496
  try {
2529
2497
  if (tracing) {
2530
2498
  submissionStartedAt = performance.now();
2531
- _chunkCKAQIJTUjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2499
+ _chunkJJQLBZEWjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2532
2500
  }
2533
2501
  return await client.executeTool(parsed.toolId, parsed.params, {
2534
2502
  ...executeOptions,
@@ -2537,34 +2505,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2537
2505
  } catch (error) {
2538
2506
  if (!(error instanceof _chunkPPDBRJRWjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2539
2507
  throw error;
2540
- const baseUrl = _chunkVZSBJVI4js.resolveConfig.call(void 0, ).baseUrl;
2508
+ const baseUrl = _chunkC25ZYL6Ujs.resolveConfig.call(void 0, ).baseUrl;
2541
2509
  if (maintenancePolicy !== "off") {
2542
- _chunkNPXUFHMIjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2510
+ _chunkWR4M5VWKjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2543
2511
  }
2544
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunk2MQXRENZjs.runToolExecuteStage.call(void 0,
2512
+ const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
2545
2513
  "SDK compatibility",
2546
- () => _chunkNPXUFHMIjs.checkSdkCompatibility.call(void 0, baseUrl, {
2514
+ () => _chunkWR4M5VWKjs.checkSdkCompatibility.call(void 0, baseUrl, {
2547
2515
  command: "tools execute",
2548
- skillsVersion: _chunkVZSBJVI4js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2516
+ skillsVersion: _chunkC25ZYL6Ujs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2549
2517
  persistCache: maintenancePolicy !== "off"
2550
2518
  })
2551
2519
  );
2552
2520
  if (compatibility.error) throw compatibility.error;
2553
2521
  metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _28 => _28.readMetadata, 'call', _29 => _29()]), () => ( metadata));
2554
- if (maintenancePolicy !== "off" && await _chunk2MQXRENZjs.maybeAutoUpdateAndRelaunch.call(void 0,
2522
+ if (maintenancePolicy !== "off" && await _chunk6UKY4LBWjs.maybeAutoUpdateAndRelaunch.call(void 0,
2555
2523
  compatibility.response,
2556
2524
  baseUrl,
2557
2525
  maintenancePolicy
2558
2526
  )) {
2559
2527
  return void 0;
2560
2528
  }
2561
- _chunkNPXUFHMIjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2529
+ _chunkWR4M5VWKjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2562
2530
  quietAdvisory: wantsJson
2563
2531
  });
2564
2532
  if (maintenancePolicy !== "off") {
2565
- await _chunk2MQXRENZjs.runToolExecuteStage.call(void 0,
2533
+ await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
2566
2534
  "agent skills sync",
2567
- () => _chunkNPXUFHMIjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2535
+ () => _chunkWR4M5VWKjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2568
2536
  update: _optionalChain([compatibility, 'access', _30 => _30.response, 'optionalAccess', _31 => _31.skills]),
2569
2537
  mode: "detached"
2570
2538
  })
@@ -2573,7 +2541,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2573
2541
  const legacyMetadata = await readMetadata();
2574
2542
  if (tracing) {
2575
2543
  submissionStartedAt = performance.now();
2576
- _chunkCKAQIJTUjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2544
+ _chunkJJQLBZEWjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2577
2545
  }
2578
2546
  return client.executeTool(parsed.toolId, parsed.params, {
2579
2547
  ...executeOptions,
@@ -2594,8 +2562,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2594
2562
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2595
2563
  const updateRequiredBeforeExecution = error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2596
2564
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2597
- const baseUrl = _chunkVZSBJVI4js.resolveConfig.call(void 0, ).baseUrl;
2598
- if (await _chunk2MQXRENZjs.maybeAutoUpdateAndRelaunch.call(void 0,
2565
+ const baseUrl = _chunkC25ZYL6Ujs.resolveConfig.call(void 0, ).baseUrl;
2566
+ if (await _chunk6UKY4LBWjs.maybeAutoUpdateAndRelaunch.call(void 0,
2599
2567
  compatibility.response,
2600
2568
  baseUrl,
2601
2569
  maintenancePolicy
@@ -2614,7 +2582,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2614
2582
  failure = diagnosticError;
2615
2583
  }
2616
2584
  if (failure instanceof _chunkPPDBRJRWjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2617
- if (wantsJson) _chunkJUBHX5FKjs.printJsonError.call(void 0, failure);
2585
+ if (wantsJson) _chunkGIJ47TAVjs.printJsonError.call(void 0, failure);
2618
2586
  else console.error(failure.message);
2619
2587
  return 2;
2620
2588
  }
@@ -2641,9 +2609,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2641
2609
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
2642
2610
  const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _37 => _37.auto_update]);
2643
2611
  if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _38 => _38.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
2644
- await _chunk2MQXRENZjs.maybeAutoUpdateAndRelaunch.call(void 0,
2612
+ await _chunk6UKY4LBWjs.maybeAutoUpdateAndRelaunch.call(void 0,
2645
2613
  compatibilityResponse,
2646
- _chunkVZSBJVI4js.resolveConfig.call(void 0, ).baseUrl,
2614
+ _chunkC25ZYL6Ujs.resolveConfig.call(void 0, ).baseUrl,
2647
2615
  maintenancePolicy
2648
2616
  );
2649
2617
  }
@@ -2678,7 +2646,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2678
2646
  const { _metadata, ...execution } = rawResponse;
2679
2647
  rawResponse = execution;
2680
2648
  }
2681
- const { listConversion, summary, baseEnvelope } = await _chunk2MQXRENZjs.runToolExecuteStage.call(void 0,
2649
+ const { listConversion, summary, baseEnvelope } = await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
2682
2650
  "result formatting",
2683
2651
  async () => {
2684
2652
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -2713,9 +2681,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2713
2681
  }
2714
2682
  skillsSyncAttempted = true;
2715
2683
  try {
2716
- await _chunk2MQXRENZjs.runToolExecuteStage.call(void 0,
2684
+ await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
2717
2685
  "agent skills sync",
2718
- () => _chunkNPXUFHMIjs.syncSdkSkillsIfNeeded.call(void 0, _chunkVZSBJVI4js.resolveConfig.call(void 0, ).baseUrl, {
2686
+ () => _chunkWR4M5VWKjs.syncSdkSkillsIfNeeded.call(void 0, _chunkC25ZYL6Ujs.resolveConfig.call(void 0, ).baseUrl, {
2719
2687
  update: deliveredCompatibilityResponse.skills,
2720
2688
  mode: "detached"
2721
2689
  })
@@ -2726,15 +2694,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2726
2694
  );
2727
2695
  }
2728
2696
  };
2729
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkJUBHX5FKjs.printCommandEnvelope.call(void 0, envelope, {
2697
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkGIJ47TAVjs.printCommandEnvelope.call(void 0, envelope, {
2730
2698
  ...options2,
2731
2699
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
2732
2700
  });
2733
2701
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
2734
2702
  await syncSkillsForDeliveredOutput();
2735
- _chunkJUBHX5FKjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
2703
+ _chunkGIJ47TAVjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
2736
2704
  };
2737
- const delivered = await _chunk2MQXRENZjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
2705
+ const delivered = await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
2738
2706
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
2739
2707
  await printDeliveredJsonEnvelope(baseEnvelope);
2740
2708
  return true;
@@ -2763,7 +2731,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2763
2731
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
2764
2732
  );
2765
2733
  if (wantsJson) {
2766
- _chunkJUBHX5FKjs.printJsonError.call(void 0, error);
2734
+ _chunkGIJ47TAVjs.printJsonError.call(void 0, error);
2767
2735
  } else {
2768
2736
  console.error(error.message);
2769
2737
  }
@@ -2858,13 +2826,13 @@ inspect: ${inspection.inspect}
2858
2826
  return true;
2859
2827
  });
2860
2828
  if (delivered) {
2861
- await _chunk2MQXRENZjs.runToolExecuteStage.call(void 0,
2829
+ await _chunk6UKY4LBWjs.runToolExecuteStage.call(void 0,
2862
2830
  "acknowledge delivery",
2863
2831
  () => recovery.acknowledgeDelivery()
2864
2832
  );
2865
2833
  }
2866
2834
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
2867
- _chunkNPXUFHMIjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
2835
+ _chunkWR4M5VWKjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
2868
2836
  quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _40 => _40.auto_update, 'optionalAccess', _41 => _41.should_auto_update]) === true
2869
2837
  });
2870
2838
  }