deepline 0.3.445 → 0.3.446

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 (105) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/auth-LQFM7AUA.js +40 -0
  3. package/dist/cli/{auth-QNWYRLML.mjs → auth-QS4HFSPI.mjs} +4 -4
  4. package/dist/cli/{billing-3HFPC32I.js → billing-72BVAZ6M.js} +73 -73
  5. package/dist/cli/{billing-ULHQPQ2L.mjs → billing-X7ZJUBJE.mjs} +4 -4
  6. package/dist/cli/{chunk-THZL4XHV.js → chunk-4UD3HIUY.js} +8 -8
  7. package/dist/cli/{chunk-732QWWPG.js → chunk-6PTUA4M7.js} +10 -10
  8. package/dist/cli/{chunk-T7SLOS2J.mjs → chunk-6XL3IIFD.mjs} +4 -4
  9. package/dist/cli/{chunk-YXY6FCRU.mjs → chunk-7HUXIWE2.mjs} +3 -3
  10. package/dist/cli/{chunk-5JJ6JYTL.js → chunk-7X7GEXHC.js} +6 -6
  11. package/dist/cli/{chunk-FC7LS3Y5.js → chunk-BIQCGMZC.js} +50 -50
  12. package/dist/cli/{chunk-6DQTJ3DY.js → chunk-CNIFSBGW.js} +35 -35
  13. package/dist/cli/{chunk-IXJN2NLA.mjs → chunk-D7ES6PAW.mjs} +1 -1
  14. package/dist/cli/{chunk-E5JZH6CI.mjs → chunk-DPVDPJLA.mjs} +1 -1
  15. package/dist/cli/{chunk-TX6F2BB6.js → chunk-EATTWMIB.js} +2 -2
  16. package/dist/cli/{chunk-SSRKG7I5.mjs → chunk-FMUADJJ6.mjs} +3 -3
  17. package/dist/cli/{chunk-HU6PIQDF.mjs → chunk-G7L27KZB.mjs} +2 -2
  18. package/dist/cli/{chunk-6LVOC2HD.mjs → chunk-HBC7PNWS.mjs} +1 -1
  19. package/dist/cli/{chunk-W25OALCJ.mjs → chunk-HDFRJ4IT.mjs} +32 -5
  20. package/dist/cli/{chunk-2L2D2SXH.mjs → chunk-IQREZ6NU.mjs} +2 -2
  21. package/dist/cli/{chunk-BEI6ZL6E.mjs → chunk-ISQLFI2O.mjs} +1 -1
  22. package/dist/cli/{chunk-C54S4QPU.mjs → chunk-JZK7OEG7.mjs} +2 -2
  23. package/dist/cli/{chunk-KNAKCMGJ.js → chunk-KGQNIA37.js} +17 -17
  24. package/dist/cli/{chunk-LBZUIZKQ.mjs → chunk-KUWUIXC7.mjs} +2 -2
  25. package/dist/cli/{chunk-OAVHRVPA.js → chunk-LBZGICM5.js} +2 -2
  26. package/dist/cli/{chunk-CQ3ZZ3RL.js → chunk-MERFSCZL.js} +16 -16
  27. package/dist/cli/{chunk-3OBHZADJ.mjs → chunk-MTRBEEIJ.mjs} +1 -1
  28. package/dist/cli/{chunk-V247SCRQ.js → chunk-MU76KMIL.js} +20 -20
  29. package/dist/cli/{chunk-GGMJ2VTZ.js → chunk-N5CNBKPY.js} +246 -246
  30. package/dist/cli/{chunk-NHWNFLFK.mjs → chunk-PE4GNPHD.mjs} +2 -2
  31. package/dist/cli/{chunk-PP66EATA.js → chunk-PQUUWFXY.js} +2 -2
  32. package/dist/cli/{chunk-FB7VBDA3.mjs → chunk-R4AKASN2.mjs} +3 -3
  33. package/dist/cli/{chunk-3SELRVWB.mjs → chunk-R53NKATP.mjs} +5 -5
  34. package/dist/cli/{chunk-COCZROBN.js → chunk-RZ25NO6A.js} +26 -26
  35. package/dist/cli/{chunk-WQPJQEDE.mjs → chunk-SLEUWLJE.mjs} +4 -3
  36. package/dist/cli/{chunk-H6HZMADG.js → chunk-SSPHVLOF.js} +52 -52
  37. package/dist/cli/{chunk-ZRWX23RQ.mjs → chunk-T56WZU3Q.mjs} +1 -1
  38. package/dist/cli/{chunk-MMMA4OLB.js → chunk-TY6KOFLR.js} +8 -8
  39. package/dist/cli/{chunk-SAN2HUYZ.mjs → chunk-ULGMJRSU.mjs} +11 -11
  40. package/dist/cli/{chunk-TABMEHIP.js → chunk-WX4K4TNG.js} +4 -4
  41. package/dist/cli/{chunk-HFXG7GGH.js → chunk-XK7USWW3.js} +6 -6
  42. package/dist/cli/{chunk-EI2NN6HP.js → chunk-XQSQNS73.js} +1 -1
  43. package/dist/cli/{chunk-FKAHVFPJ.mjs → chunk-YBWAG72P.mjs} +1 -1
  44. package/dist/cli/{chunk-QFXPA2E4.js → chunk-Z2GUFYT6.js} +9 -8
  45. package/dist/cli/{chunk-LRNYRGCN.js → chunk-Z2XUZC34.js} +32 -5
  46. package/dist/cli/{csv-NAATVV3O.js → csv-I2U2XHF2.js} +12 -12
  47. package/dist/cli/{csv-QXMJNWPE.mjs → csv-J2CGPTVS.mjs} +3 -3
  48. package/dist/cli/{db-2ADNWVDN.mjs → db-7ZYN4RSF.mjs} +4 -4
  49. package/dist/cli/{db-IB426AKH.js → db-ID7WE25S.js} +25 -25
  50. package/dist/cli/{describe-6T2HEQ2V.js → describe-6MWB45ZF.js} +24 -24
  51. package/dist/cli/{describe-UM4PAI2I.mjs → describe-KIE5HRU6.mjs} +16 -16
  52. package/dist/cli/describe-core.js +4 -4
  53. package/dist/cli/describe-core.mjs +3 -3
  54. package/dist/cli/{executions-3WVCUBHH.js → executions-NPH4K6V4.js} +6 -6
  55. package/dist/cli/{executions-4NCMXHDI.mjs → executions-UAKS7E5U.mjs} +4 -4
  56. package/dist/cli/{feedback-C4IBRZKH.js → feedback-T65QHRNJ.js} +7 -7
  57. package/dist/cli/{feedback-OKLN3VLD.mjs → feedback-VGRGR5TG.mjs} +3 -3
  58. package/dist/cli/{git-A6XP6LIW.mjs → git-MHBPDHFC.mjs} +4 -4
  59. package/dist/cli/git-YKUQZPWL.js +24 -0
  60. package/dist/cli/index.js +131 -131
  61. package/dist/cli/index.mjs +36 -36
  62. package/dist/cli/{legacy-noops-LCQXCYQY.mjs → legacy-noops-O27BEOS7.mjs} +4 -4
  63. package/dist/cli/{legacy-noops-ALY2PBIT.js → legacy-noops-UWDPM46V.js} +7 -7
  64. package/dist/cli/{monitors-T3YN2RYD.mjs → monitors-OEQ7GQ7Z.mjs} +4 -4
  65. package/dist/cli/{monitors-5C6PSVAT.js → monitors-U4O52KL7.js} +84 -84
  66. package/dist/cli/{org-4V76A3LD.js → org-FKNL42W7.js} +66 -66
  67. package/dist/cli/{org-7WLA42NC.mjs → org-TCP4TADK.mjs} +4 -4
  68. package/dist/cli/{play-WRHGX3WB.mjs → play-3UFJK5TR.mjs} +12 -12
  69. package/dist/cli/{play-UT3TLBM6.js → play-H2XWJ2GR.js} +296 -296
  70. package/dist/cli/{providers-UA2DJLBP.mjs → providers-SYZJQNNL.mjs} +4 -4
  71. package/dist/cli/{providers-ZR4SRGJF.js → providers-ZDLZX6AB.js} +7 -7
  72. package/dist/cli/{quickstart-QN5FXZWS.js → quickstart-GPFZQF5I.js} +5 -5
  73. package/dist/cli/{quickstart-IT46STSN.mjs → quickstart-LLZAA3YH.mjs} +3 -3
  74. package/dist/cli/search-WQ77HY2K.js +30 -0
  75. package/dist/cli/{search-QKK5SGMV.mjs → search-XEZ6YINQ.mjs} +5 -5
  76. package/dist/cli/{secrets-FX3IVBUP.js → secrets-6LG6WSV4.js} +13 -13
  77. package/dist/cli/{secrets-GWXM2FH4.mjs → secrets-GTUPRTIQ.mjs} +4 -4
  78. package/dist/cli/{sessions-G6LCRYTC.js → sessions-6T7GLRAE.js} +5 -5
  79. package/dist/cli/{sessions-FDZ24XY4.mjs → sessions-FCD3L6BO.mjs} +4 -4
  80. package/dist/cli/{settings-6W42BCZE.js → settings-BLS3NVLD.js} +75 -75
  81. package/dist/cli/{settings-77ODFZUE.mjs → settings-TMJK4XRG.mjs} +8 -8
  82. package/dist/cli/{setup-T3FF5IRN.js → setup-CLGJAUHO.js} +42 -42
  83. package/dist/cli/{setup-5OBB5UGB.mjs → setup-XIWCJNVC.mjs} +7 -7
  84. package/dist/cli/{skills-ADG7CBUP.mjs → skills-CAZWF6XW.mjs} +5 -5
  85. package/dist/cli/skills-VRIWFWDM.js +29 -0
  86. package/dist/cli/tools-E4JIROSM.js +44 -0
  87. package/dist/cli/{tools-OBZRYZ7K.mjs → tools-ZW5RKTQD.mjs} +15 -15
  88. package/dist/cli/update-DFQ3SX6R.js +31 -0
  89. package/dist/cli/{update-ODKOYFCA.mjs → update-EEAZY5SI.mjs} +7 -7
  90. package/dist/cli/{workflow-TBLNAOXJ.js → workflow-6WUBJEPO.js} +15 -15
  91. package/dist/cli/{workflow-RGKEVZSP.mjs → workflow-QQW22LYJ.mjs} +5 -5
  92. package/dist/index.js +6 -6
  93. package/dist/index.mjs +3 -3
  94. package/dist/install-integrity.json +86 -86
  95. package/dist/release.d.mts +1 -1
  96. package/dist/release.d.ts +1 -1
  97. package/dist/release.js +2 -2
  98. package/dist/release.mjs +1 -1
  99. package/package.json +1 -1
  100. package/dist/cli/auth-ZA4FRBSX.js +0 -40
  101. package/dist/cli/git-RRZOWDCN.js +0 -24
  102. package/dist/cli/search-INZD56I2.js +0 -30
  103. package/dist/cli/skills-ALCERVAB.js +0 -29
  104. package/dist/cli/tools-FNWIMNNK.js +0 -44
  105. package/dist/cli/update-N7I4MXRK.js +0 -31
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkPP66EATAjs = require('./chunk-PP66EATA.js');
4
+ var _chunkPQUUWFXYjs = require('./chunk-PQUUWFXY.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkMMMA4OLBjs = require('./chunk-MMMA4OLB.js');
8
+ var _chunkTY6KOFLRjs = require('./chunk-TY6KOFLR.js');
9
9
 
10
10
 
11
11
 
@@ -24,10 +24,10 @@ var _chunkMMMA4OLBjs = require('./chunk-MMMA4OLB.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkQFXPA2E4js = require('./chunk-QFXPA2E4.js');
27
+ var _chunkZ2GUFYT6js = require('./chunk-Z2GUFYT6.js');
28
28
 
29
29
 
30
- var _chunkLRNYRGCNjs = require('./chunk-LRNYRGCN.js');
30
+ var _chunkZ2XUZC34js = require('./chunk-Z2XUZC34.js');
31
31
 
32
32
 
33
33
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
@@ -48,7 +48,7 @@ var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
48
48
 
49
49
 
50
50
 
51
- var _chunk732QWWPGjs = require('./chunk-732QWWPG.js');
51
+ var _chunk6PTUA4M7js = require('./chunk-6PTUA4M7.js');
52
52
 
53
53
 
54
54
  var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
@@ -58,18 +58,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
58
58
 
59
59
 
60
60
 
61
- var _chunkV247SCRQjs = require('./chunk-V247SCRQ.js');
61
+ var _chunkMU76KMILjs = require('./chunk-MU76KMIL.js');
62
62
 
63
63
 
64
64
 
65
65
 
66
- var _chunkOAVHRVPAjs = require('./chunk-OAVHRVPA.js');
66
+ var _chunkLBZGICM5js = require('./chunk-LBZGICM5.js');
67
67
 
68
68
 
69
69
 
70
70
 
71
71
 
72
- var _chunkH6HZMADGjs = require('./chunk-H6HZMADG.js');
72
+ var _chunkSSPHVLOFjs = require('./chunk-SSPHVLOF.js');
73
73
 
74
74
 
75
75
 
@@ -77,12 +77,12 @@ var _chunkH6HZMADGjs = require('./chunk-H6HZMADG.js');
77
77
 
78
78
 
79
79
 
80
- var _chunk5JJ6JYTLjs = require('./chunk-5JJ6JYTL.js');
80
+ var _chunk7X7GEXHCjs = require('./chunk-7X7GEXHC.js');
81
81
 
82
82
 
83
83
 
84
84
 
85
- var _chunkTABMEHIPjs = require('./chunk-TABMEHIP.js');
85
+ var _chunkWX4K4TNGjs = require('./chunk-WX4K4TNG.js');
86
86
 
87
87
 
88
88
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -161,10 +161,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
161
161
  }
162
162
  };
163
163
  function pendingToolExecutionPath(input) {
164
- const config = _chunkTABMEHIPjs.resolveConfig.call(void 0, );
164
+ const config = _chunkWX4K4TNGjs.resolveConfig.call(void 0, );
165
165
  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");
166
166
  return _path.join.call(void 0,
167
- _chunkTABMEHIPjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
167
+ _chunkWX4K4TNGjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
168
168
  `pending-tool-execution-${fingerprint}.json`
169
169
  );
170
170
  }
@@ -279,13 +279,13 @@ var TOOL_COMMAND_TEMPLATES = {
279
279
  execute: "deepline tools execute <toolId> --input '{...}'"
280
280
  };
281
281
  function toListedTool(tool) {
282
- if (_chunkQFXPA2E4js.isPlayLikeTool.call(void 0, tool)) {
282
+ if (_chunkZ2GUFYT6js.isPlayLikeTool.call(void 0, tool)) {
283
283
  return {
284
284
  ...tool,
285
285
  description: listedToolDescription(tool),
286
286
  id: tool.toolId,
287
287
  type: "play",
288
- executeCommand: _chunkQFXPA2E4js.playRunCommandForTool.call(void 0, tool, tool.toolId)
288
+ executeCommand: _chunkZ2GUFYT6js.playRunCommandForTool.call(void 0, tool, tool.toolId)
289
289
  };
290
290
  }
291
291
  return {
@@ -367,16 +367,16 @@ function firstSentence(text) {
367
367
  return (match ? match[0] : clean).trim();
368
368
  }
369
369
  function requiredInputIds(tool) {
370
- const inputSchema = _chunkQFXPA2E4js.recordField.call(void 0,
370
+ const inputSchema = _chunkZ2GUFYT6js.recordField.call(void 0,
371
371
  tool,
372
372
  "inputSchema",
373
373
  "input_schema"
374
374
  );
375
- return _chunkQFXPA2E4js.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
375
+ return _chunkZ2GUFYT6js.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
376
376
  }
377
377
  function notConnectedSuffix(tool) {
378
378
  const record = tool;
379
- const status = _chunkQFXPA2E4js.stringField.call(void 0, record, "credentialStatus", "credential_status");
379
+ const status = _chunkZ2GUFYT6js.stringField.call(void 0, record, "credentialStatus", "credential_status");
380
380
  const connected = record.connected;
381
381
  const message = toolConnectionStatusMessage({
382
382
  connected: connected === false ? false : void 0,
@@ -385,18 +385,18 @@ function notConnectedSuffix(tool) {
385
385
  return message ? ` - \u26A0 ${message}` : "";
386
386
  }
387
387
  function shortPricingHint(tool) {
388
- const pricing = _chunkQFXPA2E4js.recordField.call(void 0,
388
+ const pricing = _chunkZ2GUFYT6js.recordField.call(void 0,
389
389
  tool,
390
390
  "pricing"
391
391
  );
392
392
  const credits = numberField(pricing, "creditsPerUnit", "credits_per_unit");
393
- const unit = _chunkQFXPA2E4js.stringField.call(void 0, pricing, "unit");
393
+ const unit = _chunkZ2GUFYT6js.stringField.call(void 0, pricing, "unit");
394
394
  if (credits !== null) {
395
395
  return `${formatDecimal(credits)} cr/${unit || "unit"}`;
396
396
  }
397
- const summary = _chunkQFXPA2E4js.stringField.call(void 0, pricing, "summary");
397
+ const summary = _chunkZ2GUFYT6js.stringField.call(void 0, pricing, "summary");
398
398
  if (summary) return summary;
399
- const displayText = _chunkQFXPA2E4js.stringField.call(void 0, pricing, "displayText", "display_text");
399
+ const displayText = _chunkZ2GUFYT6js.stringField.call(void 0, pricing, "displayText", "display_text");
400
400
  return displayText || null;
401
401
  }
402
402
  function aggregateCategorySummaries(tools) {
@@ -440,13 +440,13 @@ function categoryEnumerationRender(summaries) {
440
440
  };
441
441
  }
442
442
  async function listToolCategories(emitJson, compact) {
443
- const client = new (0, _chunk732QWWPGjs.DeeplineClient)();
443
+ const client = new (0, _chunk6PTUA4M7js.DeeplineClient)();
444
444
  if (!emitJson) {
445
445
  const summaries2 = (await client.listToolCategories()).map((category) => ({
446
446
  ...category,
447
447
  description: describeToolCategory(category.name)
448
448
  }));
449
- _chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
449
+ _chunk7X7GEXHCjs.printCommandEnvelope.call(void 0,
450
450
  { categories: summaries2, render: categoryEnumerationRender(summaries2) },
451
451
  { json: false }
452
452
  );
@@ -456,7 +456,7 @@ async function listToolCategories(emitJson, compact) {
456
456
  const items = rawTools.map(toListedTool);
457
457
  const summaries = aggregateCategorySummaries(rawTools);
458
458
  const outputItems = compact ? items.map(compactTool) : items;
459
- _chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
459
+ _chunk7X7GEXHCjs.printCommandEnvelope.call(void 0,
460
460
  {
461
461
  tools: outputItems,
462
462
  count: outputItems.length,
@@ -475,7 +475,7 @@ function unknownCategoryError(category, summaries, emitJson) {
475
475
  const known = summaries.map((item) => item.name);
476
476
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
477
477
  if (emitJson) {
478
- _chunk5JJ6JYTLjs.printJson.call(void 0, {
478
+ _chunk7X7GEXHCjs.printJson.call(void 0, {
479
479
  ok: false,
480
480
  exitCode: 4,
481
481
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -489,13 +489,13 @@ function unknownCategoryError(category, summaries, emitJson) {
489
489
  const render = categoryEnumerationRender(summaries);
490
490
  console.error(message);
491
491
  console.error("");
492
- console.error(_chunk5JJ6JYTLjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
492
+ console.error(_chunk7X7GEXHCjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
493
493
  console.error("");
494
494
  console.error(`Valid categories: ${known.join(", ")}`);
495
495
  return 4;
496
496
  }
497
497
  async function listToolsInCategory(category, emitJson) {
498
- const client = new (0, _chunk732QWWPGjs.DeeplineClient)();
498
+ const client = new (0, _chunk6PTUA4M7js.DeeplineClient)();
499
499
  const { tools: rawTools, categories } = await client.listToolsInCategory(category);
500
500
  const summaries = categories.map((item) => ({
501
501
  ...item,
@@ -531,7 +531,7 @@ async function listToolsInCategory(category, emitJson) {
531
531
  }
532
532
  ]
533
533
  };
534
- _chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
534
+ _chunk7X7GEXHCjs.printCommandEnvelope.call(void 0,
535
535
  {
536
536
  category,
537
537
  total: rows.length,
@@ -544,7 +544,7 @@ async function listToolsInCategory(category, emitJson) {
544
544
  return 0;
545
545
  }
546
546
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
547
- const client = new (0, _chunk732QWWPGjs.DeeplineClient)();
547
+ const client = new (0, _chunk6PTUA4M7js.DeeplineClient)();
548
548
  const items = (await client.listTools({
549
549
  categories: requestedCategories.join(","),
550
550
  compact
@@ -573,7 +573,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
573
573
  ]
574
574
  };
575
575
  const outputItems = compact ? items.map(compactTool) : items;
576
- _chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
576
+ _chunk7X7GEXHCjs.printCommandEnvelope.call(void 0,
577
577
  {
578
578
  tools: outputItems,
579
579
  count: outputItems.length,
@@ -592,13 +592,13 @@ async function listTools(category, options = {}) {
592
592
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
593
593
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
594
594
  const compact = options.compact !== false;
595
- const emitJson = options.json === true || _chunk5JJ6JYTLjs.shouldEmitJson.call(void 0, );
595
+ const emitJson = options.json === true || _chunk7X7GEXHCjs.shouldEmitJson.call(void 0, );
596
596
  if (positional && flagCategories.length > 0) {
597
597
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
598
598
  if (!flagIsSameSingle) {
599
599
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
600
600
  if (emitJson) {
601
- _chunk5JJ6JYTLjs.printJson.call(void 0, {
601
+ _chunk7X7GEXHCjs.printJson.call(void 0, {
602
602
  ok: false,
603
603
  exitCode: 2,
604
604
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -625,7 +625,7 @@ async function grepTools(queryInput, options = {}) {
625
625
  console.error("Usage: deepline tools grep <query> [--json]");
626
626
  return 1;
627
627
  }
628
- const client = new (0, _chunk732QWWPGjs.DeeplineClient)();
628
+ const client = new (0, _chunk6PTUA4M7js.DeeplineClient)();
629
629
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
630
630
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
631
631
  const jsonOutput = options.json === true;
@@ -649,7 +649,7 @@ async function grepTools(queryInput, options = {}) {
649
649
  query,
650
650
  mode
651
651
  }) : null;
652
- _chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
652
+ _chunk7X7GEXHCjs.printCommandEnvelope.call(void 0,
653
653
  {
654
654
  tools: outputTools,
655
655
  count: outputTools.length,
@@ -667,7 +667,7 @@ async function grepTools(queryInput, options = {}) {
667
667
  } : {},
668
668
  commandTemplates: TOOL_COMMAND_TEMPLATES
669
669
  },
670
- { json: options.json || _chunk5JJ6JYTLjs.shouldEmitJson.call(void 0, ) }
670
+ { json: options.json || _chunk7X7GEXHCjs.shouldEmitJson.call(void 0, ) }
671
671
  );
672
672
  return 0;
673
673
  }
@@ -722,8 +722,8 @@ function printPlayAliasToolError(toolId, play) {
722
722
  console.error(playAliasToolErrorMessage(toolId, play));
723
723
  }
724
724
  function playLikeToolExecuteErrorMessage(toolId, tool) {
725
- const playReference = tool ? _chunkQFXPA2E4js.playReferenceForTool.call(void 0, tool) : null;
726
- const nextStep = playReference ? `Use: deepline plays run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunkQFXPA2E4js.playSearchCommandForToolId.call(void 0, toolId)}`;
725
+ const playReference = tool ? _chunkZ2GUFYT6js.playReferenceForTool.call(void 0, tool) : null;
726
+ const nextStep = playReference ? `Use: deepline plays run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunkZ2GUFYT6js.playSearchCommandForToolId.call(void 0, toolId)}`;
727
727
  return [
728
728
  `${toolId} is a workflow/play entry, not an atomic provider tool.`,
729
729
  nextStep,
@@ -778,7 +778,7 @@ Output:
778
778
  if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
779
779
  throw new Error("Use --preset or individual scopes, not both.");
780
780
  const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
781
- const result2 = await new (0, _chunk732QWWPGjs.DeeplineClient)().startIntegrationOAuth(
781
+ const result2 = await new (0, _chunk6PTUA4M7js.DeeplineClient)().startIntegrationOAuth(
782
782
  provider,
783
783
  {
784
784
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -790,7 +790,7 @@ Output:
790
790
  throw new Error(
791
791
  "The API did not return an OAuth authorization URL."
792
792
  );
793
- if (_chunk5JJ6JYTLjs.shouldEmitJson.call(void 0, options.json))
793
+ if (_chunk7X7GEXHCjs.shouldEmitJson.call(void 0, options.json))
794
794
  console.log(
795
795
  JSON.stringify({ provider, redirect_url: result2.redirect_url })
796
796
  );
@@ -816,7 +816,7 @@ Output:
816
816
  "--credentials-file must contain a nonempty JSON object of string credential values."
817
817
  );
818
818
  }
819
- const result = await new (0, _chunk732QWWPGjs.DeeplineClient)().setIntegrationCredentials(
819
+ const result = await new (0, _chunk6PTUA4M7js.DeeplineClient)().setIntegrationCredentials(
820
820
  provider,
821
821
  credentials
822
822
  );
@@ -826,7 +826,7 @@ Output:
826
826
  );
827
827
  }
828
828
  const confirmation = { provider, credential_saved: true };
829
- if (_chunk5JJ6JYTLjs.shouldEmitJson.call(void 0, options.json))
829
+ if (_chunk7X7GEXHCjs.shouldEmitJson.call(void 0, options.json))
830
830
  console.log(JSON.stringify(confirmation));
831
831
  else
832
832
  console.log(
@@ -866,7 +866,7 @@ Examples:
866
866
  json: Boolean(options.json)
867
867
  });
868
868
  });
869
- _chunkMMMA4OLBjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
869
+ _chunkTY6KOFLRjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
870
870
  tools.command("grep <query>").description(
871
871
  "Regex grep over tool ids, descriptions, categories, and input fields."
872
872
  ).addHelpText(
@@ -901,7 +901,7 @@ Examples:
901
901
  });
902
902
  const addToolMetadataCommand = (command) => {
903
903
  let compatibilityMetadata;
904
- _chunkV247SCRQjs.registerCompatibilityCatalog.call(void 0, command, () => ({
904
+ _chunkMU76KMILjs.registerCompatibilityCatalog.call(void 0, command, () => ({
905
905
  toolId: command.args[0],
906
906
  acceptMetadata: (metadata) => {
907
907
  compatibilityMetadata = metadata;
@@ -971,7 +971,7 @@ Examples:
971
971
  process.exitCode = await narrowView();
972
972
  return;
973
973
  }
974
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-6T2HEQ2V.js")));
974
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-6MWB45ZF.js")));
975
975
  process.exitCode = await describeAnything(
976
976
  toolId,
977
977
  {
@@ -986,7 +986,7 @@ Examples:
986
986
  });
987
987
  };
988
988
  addToolMetadataCommand(
989
- _chunkPP66EATAjs.addDescribeOptions.call(void 0,
989
+ _chunkPQUUWFXYjs.addDescribeOptions.call(void 0,
990
990
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
991
991
  { json: false }
992
992
  )
@@ -1055,7 +1055,7 @@ Examples:
1055
1055
  options,
1056
1056
  void 0,
1057
1057
  true,
1058
- _chunkOAVHRVPAjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1058
+ _chunkLBZGICM5js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1059
1059
  );
1060
1060
  }
1061
1061
  );
@@ -1063,13 +1063,13 @@ Examples:
1063
1063
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1064
1064
  let metadata;
1065
1065
  const startedAt = performance.now();
1066
- const baseUrl = _chunkTABMEHIPjs.resolveConfig.call(void 0, ).baseUrl;
1067
- _chunkOAVHRVPAjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1068
- const result = _chunkV247SCRQjs.runToolExecuteStage.call(void 0,
1066
+ const baseUrl = _chunkWX4K4TNGjs.resolveConfig.call(void 0, ).baseUrl;
1067
+ _chunkLBZGICM5js.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1068
+ const result = _chunkMU76KMILjs.runToolExecuteStage.call(void 0,
1069
1069
  "SDK compatibility",
1070
- () => _chunkH6HZMADGjs.checkSdkCompatibility.call(void 0, baseUrl, {
1070
+ () => _chunkSSPHVLOFjs.checkSdkCompatibility.call(void 0, baseUrl, {
1071
1071
  command: "tools execute",
1072
- skillsVersion: _chunkTABMEHIPjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1072
+ skillsVersion: _chunkWX4K4TNGjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1073
1073
  persistCache: false,
1074
1074
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1075
1075
  catalog: {
@@ -1083,7 +1083,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1083
1083
  })
1084
1084
  ).then(
1085
1085
  (compatibility) => {
1086
- _chunkOAVHRVPAjs.recordCliTrace.call(void 0, {
1086
+ _chunkLBZGICM5js.recordCliTrace.call(void 0, {
1087
1087
  phase: "cli.tool_execute_compatibility_ready",
1088
1088
  ms: performance.now() - startedAt,
1089
1089
  ok: compatibility.error === null,
@@ -1092,7 +1092,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1092
1092
  return compatibility;
1093
1093
  },
1094
1094
  (error) => {
1095
- _chunkOAVHRVPAjs.recordCliTrace.call(void 0, {
1095
+ _chunkLBZGICM5js.recordCliTrace.call(void 0, {
1096
1096
  phase: "cli.tool_execute_compatibility_ready",
1097
1097
  ms: performance.now() - startedAt,
1098
1098
  ok: false
@@ -1107,7 +1107,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1107
1107
  console.error("Usage: deepline tools describe <toolId> [--json]");
1108
1108
  return 1;
1109
1109
  }
1110
- const client = new (0, _chunk732QWWPGjs.DeeplineClient)();
1110
+ const client = new (0, _chunk6PTUA4M7js.DeeplineClient)();
1111
1111
  let tool;
1112
1112
  try {
1113
1113
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1161,12 +1161,12 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1161
1161
  const lines = toolPricingOnlyLines(tool, toolId);
1162
1162
  if (inferenceQuote)
1163
1163
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1164
- _chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0,
1164
+ _chunk7X7GEXHCjs.printCommandEnvelope.call(void 0,
1165
1165
  {
1166
1166
  toolId: String(tool.toolId || toolId),
1167
1167
  cost: _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1168
1168
  ...modelDescription ? { modelOptions: modelDescription } : {},
1169
- ..._chunkQFXPA2E4js.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkQFXPA2E4js.recordField.call(void 0, tool, "pricing") } : {},
1169
+ ..._chunkZ2GUFYT6js.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkZ2GUFYT6js.recordField.call(void 0, tool, "pricing") } : {},
1170
1170
  ...inferenceQuote ? { inferenceQuote } : {}
1171
1171
  },
1172
1172
  {
@@ -1177,14 +1177,14 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1177
1177
  );
1178
1178
  return 0;
1179
1179
  }
1180
- if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunkQFXPA2E4js.isMonitorTypeTool.call(void 0, tool) && !_chunkQFXPA2E4js.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1181
- const contract = _chunkQFXPA2E4js.toolContractJsonForDescribe.call(void 0,
1180
+ if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunkZ2GUFYT6js.isMonitorTypeTool.call(void 0, tool) && !_chunkZ2GUFYT6js.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1181
+ const contract = _chunkZ2GUFYT6js.toolContractJsonForDescribe.call(void 0,
1182
1182
  tool,
1183
1183
  toolId,
1184
1184
  void 0,
1185
1185
  seedToolListScript
1186
1186
  );
1187
- _chunk5JJ6JYTLjs.printCompactJson.call(void 0, {
1187
+ _chunk7X7GEXHCjs.printCompactJson.call(void 0, {
1188
1188
  toolId: contract.toolId,
1189
1189
  ...options.schemaOnly ? {
1190
1190
  inputSchema: contract.inputSchema,
@@ -1207,8 +1207,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1207
1207
  return 0;
1208
1208
  }
1209
1209
  if (options.contractJson) {
1210
- _chunk5JJ6JYTLjs.printCompactJson.call(void 0, {
1211
- ..._chunkQFXPA2E4js.toolContractJsonForDescribe.call(void 0,
1210
+ _chunk7X7GEXHCjs.printCompactJson.call(void 0, {
1211
+ ..._chunkZ2GUFYT6js.toolContractJsonForDescribe.call(void 0,
1212
1212
  tool,
1213
1213
  toolId,
1214
1214
  void 0,
@@ -1221,8 +1221,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1221
1221
  }
1222
1222
  const emitJson = options.json === true;
1223
1223
  if (emitJson) {
1224
- _chunk5JJ6JYTLjs.printCompactJson.call(void 0, {
1225
- ..._chunkQFXPA2E4js.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1224
+ _chunk7X7GEXHCjs.printCompactJson.call(void 0, {
1225
+ ..._chunkZ2GUFYT6js.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1226
1226
  ...modelDescription ? { modelOptions: modelDescription } : {},
1227
1227
  ...inferenceQuote ? { inferenceQuote } : {}
1228
1228
  });
@@ -1247,7 +1247,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1247
1247
  printCompactToolContract(tool, toolId);
1248
1248
  if (modelDescription) {
1249
1249
  process.stdout.write(`
1250
- ${_chunkQFXPA2E4js.formatModelDescription.call(void 0, modelDescription)}`);
1250
+ ${_chunkZ2GUFYT6js.formatModelDescription.call(void 0, modelDescription)}`);
1251
1251
  }
1252
1252
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1253
1253
  return 0;
@@ -1255,7 +1255,7 @@ ${_chunkQFXPA2E4js.formatModelDescription.call(void 0, modelDescription)}`);
1255
1255
  printCompactToolContract(tool, toolId);
1256
1256
  if (modelDescription) {
1257
1257
  process.stdout.write(`
1258
- ${_chunkQFXPA2E4js.formatModelDescription.call(void 0, modelDescription)}`);
1258
+ ${_chunkZ2GUFYT6js.formatModelDescription.call(void 0, modelDescription)}`);
1259
1259
  }
1260
1260
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1261
1261
  return 0;
@@ -1272,10 +1272,10 @@ function printInferenceQuoteSummary(quote) {
1272
1272
  for (const line of inferenceQuoteSummaryLines(quote)) console.log(line);
1273
1273
  }
1274
1274
  function printMonitorTypeFilters(tool) {
1275
- const schema = _chunkQFXPA2E4js.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1276
- const properties = _chunkQFXPA2E4js.recordField.call(void 0, schema, "properties");
1275
+ const schema = _chunkZ2GUFYT6js.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1276
+ const properties = _chunkZ2GUFYT6js.recordField.call(void 0, schema, "properties");
1277
1277
  const required = new Set(
1278
- _chunkQFXPA2E4js.arrayField.call(void 0, schema, "required").filter(
1278
+ _chunkZ2GUFYT6js.arrayField.call(void 0, schema, "required").filter(
1279
1279
  (v) => typeof v === "string"
1280
1280
  )
1281
1281
  );
@@ -1286,24 +1286,24 @@ function printMonitorTypeFilters(tool) {
1286
1286
  }
1287
1287
  console.log("Deploy filters (set in the monitor payload):");
1288
1288
  for (const name of names) {
1289
- const field = _chunkQFXPA2E4js.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1289
+ const field = _chunkZ2GUFYT6js.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1290
1290
  const star = required.has(name) ? "*" : "";
1291
- const enumVals = _chunkQFXPA2E4js.arrayField.call(void 0, field, "enum").filter(
1291
+ const enumVals = _chunkZ2GUFYT6js.arrayField.call(void 0, field, "enum").filter(
1292
1292
  (v) => typeof v === "string"
1293
1293
  );
1294
- const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunkQFXPA2E4js.stringField.call(void 0, field, "type") || "string";
1295
- const desc = _chunkQFXPA2E4js.stringField.call(void 0, field, "description");
1294
+ const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunkZ2GUFYT6js.stringField.call(void 0, field, "type") || "string";
1295
+ const desc = _chunkZ2GUFYT6js.stringField.call(void 0, field, "description");
1296
1296
  console.log(`- ${name}${star}: ${type}${desc ? ` - ${desc}` : ""}`);
1297
1297
  }
1298
1298
  }
1299
1299
  function printMonitorTypeFilterExamples(tool) {
1300
- const documentation = _chunkQFXPA2E4js.recordField.call(void 0, tool, "documentation");
1301
- const fields = _chunkQFXPA2E4js.recordField.call(void 0, documentation, "fields");
1300
+ const documentation = _chunkZ2GUFYT6js.recordField.call(void 0, tool, "documentation");
1301
+ const fields = _chunkZ2GUFYT6js.recordField.call(void 0, documentation, "fields");
1302
1302
  const examples = Object.entries(fields).flatMap(([name, rawField]) => {
1303
- const grammar = _chunkQFXPA2E4js.recordField.call(void 0, _chunkQFXPA2E4js.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1304
- const example = _chunkQFXPA2E4js.stringField.call(void 0, grammar, "example");
1303
+ const grammar = _chunkZ2GUFYT6js.recordField.call(void 0, _chunkZ2GUFYT6js.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1304
+ const example = _chunkZ2GUFYT6js.stringField.call(void 0, grammar, "example");
1305
1305
  const values = [
1306
- ..._chunkQFXPA2E4js.arrayField.call(void 0, grammar, "examples").filter(
1306
+ ..._chunkZ2GUFYT6js.arrayField.call(void 0, grammar, "examples").filter(
1307
1307
  (value) => typeof value === "string" && Boolean(value)
1308
1308
  ),
1309
1309
  ...example ? [example] : []
@@ -1318,21 +1318,21 @@ function printMonitorTypeFilterExamples(tool) {
1318
1318
  }
1319
1319
  }
1320
1320
  function printMonitorTypeStreams(tool) {
1321
- const streams = _chunkQFXPA2E4js.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1322
- _chunkQFXPA2E4js.isRecord
1321
+ const streams = _chunkZ2GUFYT6js.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1322
+ _chunkZ2GUFYT6js.isRecord
1323
1323
  );
1324
1324
  if (!streams.length) return;
1325
1325
  console.log("");
1326
1326
  console.log("Filter columns (a play's sqlListeners.where, per stream):");
1327
1327
  for (const stream of streams) {
1328
- const name = _chunkQFXPA2E4js.stringField.call(void 0, stream, "stream");
1329
- const cols = _chunkQFXPA2E4js.arrayField.call(void 0, stream, "columns").filter(_chunkQFXPA2E4js.isRecord).map((col) => _chunkQFXPA2E4js.stringField.call(void 0, col, "name")).filter(Boolean);
1328
+ const name = _chunkZ2GUFYT6js.stringField.call(void 0, stream, "stream");
1329
+ const cols = _chunkZ2GUFYT6js.arrayField.call(void 0, stream, "columns").filter(_chunkZ2GUFYT6js.isRecord).map((col) => _chunkZ2GUFYT6js.stringField.call(void 0, col, "name")).filter(Boolean);
1330
1330
  console.log(`- ${name}: ${cols.join(", ")}`);
1331
1331
  }
1332
1332
  }
1333
1333
  function monitorTypePricingLines(tool) {
1334
- const pricing = _chunkQFXPA2E4js.recordField.call(void 0, tool, "pricing");
1335
- const byType = _chunkQFXPA2E4js.recordField.call(void 0,
1334
+ const pricing = _chunkZ2GUFYT6js.recordField.call(void 0, tool, "pricing");
1335
+ const byType = _chunkZ2GUFYT6js.recordField.call(void 0,
1336
1336
  pricing,
1337
1337
  "pricing_by_radar_type",
1338
1338
  "pricingByRadarType"
@@ -1343,9 +1343,9 @@ function monitorTypePricingLines(tool) {
1343
1343
  }
1344
1344
  const lines = ["Pricing (Deepline credits per accepted event):"];
1345
1345
  for (const key of keys) {
1346
- const entry = _chunkQFXPA2E4js.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1346
+ const entry = _chunkZ2GUFYT6js.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1347
1347
  const credits = numberField(entry, "deepline_credits", "deeplineCredits");
1348
- const display = _chunkQFXPA2E4js.stringField.call(void 0, entry, "display");
1348
+ const display = _chunkZ2GUFYT6js.stringField.call(void 0, entry, "display");
1349
1349
  const shown = display || (credits !== null ? `${formatDecimal(credits)} credits/event` : "not listed");
1350
1350
  lines.push(`- ${key}: ${shown}`);
1351
1351
  }
@@ -1355,20 +1355,20 @@ function printMonitorTypePricing(tool) {
1355
1355
  for (const line of monitorTypePricingLines(tool)) console.log(line);
1356
1356
  }
1357
1357
  function printMonitorTypeDeploy(tool) {
1358
- const deploy = _chunkQFXPA2E4js.recordField.call(void 0, tool, "deploy");
1359
- const toolId = _chunkQFXPA2E4js.stringField.call(void 0, tool, "toolId");
1360
- const example = _chunkQFXPA2E4js.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
1358
+ const deploy = _chunkZ2GUFYT6js.recordField.call(void 0, tool, "deploy");
1359
+ const toolId = _chunkZ2GUFYT6js.stringField.call(void 0, tool, "toolId");
1360
+ const example = _chunkZ2GUFYT6js.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
1361
1361
  console.log("Deploy (a monitor type is deployed, not executed):");
1362
1362
  console.log(` ${example}`);
1363
1363
  }
1364
1364
  function printMonitorTypeContract(tool, requestedToolId) {
1365
- const toolId = _chunkQFXPA2E4js.stringField.call(void 0, tool, "toolId") || requestedToolId;
1365
+ const toolId = _chunkZ2GUFYT6js.stringField.call(void 0, tool, "toolId") || requestedToolId;
1366
1366
  console.log(toolId);
1367
- const displayName = _chunkQFXPA2E4js.stringField.call(void 0, tool, "displayName");
1367
+ const displayName = _chunkZ2GUFYT6js.stringField.call(void 0, tool, "displayName");
1368
1368
  if (displayName) console.log(`Best for: ${displayName}`);
1369
- const description = _chunkQFXPA2E4js.stringField.call(void 0, tool, "description");
1369
+ const description = _chunkZ2GUFYT6js.stringField.call(void 0, tool, "description");
1370
1370
  if (description) console.log(`Description: ${description}`);
1371
- const categories = _chunkQFXPA2E4js.arrayField.call(void 0, tool, "categories").filter(
1371
+ const categories = _chunkZ2GUFYT6js.arrayField.call(void 0, tool, "categories").filter(
1372
1372
  (v) => typeof v === "string"
1373
1373
  );
1374
1374
  if (categories.length) console.log(`Tags: ${categories.join(", ")}`);
@@ -1388,31 +1388,31 @@ function printMonitorTypeContract(tool, requestedToolId) {
1388
1388
  console.log(`More: deepline describe ${toolId}`);
1389
1389
  }
1390
1390
  function toolGuidanceLines(guidance) {
1391
- const record = _chunkQFXPA2E4js.isRecord.call(void 0, guidance) ? guidance : {};
1392
- const toolGuidance = _chunkQFXPA2E4js.stringField.call(void 0, record, "tool");
1393
- const providerGuidance = _chunkQFXPA2E4js.stringField.call(void 0, record, "provider");
1391
+ const record = _chunkZ2GUFYT6js.isRecord.call(void 0, guidance) ? guidance : {};
1392
+ const toolGuidance = _chunkZ2GUFYT6js.stringField.call(void 0, record, "tool");
1393
+ const providerGuidance = _chunkZ2GUFYT6js.stringField.call(void 0, record, "provider");
1394
1394
  return [
1395
1395
  ...toolGuidance ? [`- This tool: ${toolGuidance}`] : [],
1396
1396
  ...providerGuidance ? [`- Provider: ${providerGuidance}`] : []
1397
1397
  ];
1398
1398
  }
1399
1399
  function printCompactToolContract(tool, requestedToolId) {
1400
- if (_chunkQFXPA2E4js.isMonitorTypeTool.call(void 0, tool)) {
1400
+ if (_chunkZ2GUFYT6js.isMonitorTypeTool.call(void 0, tool)) {
1401
1401
  printMonitorTypeContract(tool, requestedToolId);
1402
1402
  return;
1403
1403
  }
1404
- const contract = _chunkQFXPA2E4js.toolContractJsonForDescribe.call(void 0,
1404
+ const contract = _chunkZ2GUFYT6js.toolContractJsonForDescribe.call(void 0,
1405
1405
  tool,
1406
1406
  requestedToolId,
1407
1407
  void 0,
1408
1408
  seedToolListScript
1409
1409
  );
1410
- const cost = _chunkQFXPA2E4js.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1411
- const getters = _chunkQFXPA2E4js.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1410
+ const cost = _chunkZ2GUFYT6js.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1411
+ const getters = _chunkZ2GUFYT6js.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1412
1412
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1413
1413
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1414
- const inputFields = _chunkQFXPA2E4js.recursiveToolInputFieldsForDisplay.call(void 0,
1415
- _chunkQFXPA2E4js.recordField.call(void 0, contract, "inputSchema")
1414
+ const inputFields = _chunkZ2GUFYT6js.recursiveToolInputFieldsForDisplay.call(void 0,
1415
+ _chunkZ2GUFYT6js.recordField.call(void 0, contract, "inputSchema")
1416
1416
  );
1417
1417
  console.log(String(contract.toolId));
1418
1418
  if (contract.displayName) console.log(`Best for: ${contract.displayName}`);
@@ -1429,9 +1429,9 @@ function printCompactToolContract(tool, requestedToolId) {
1429
1429
  printToolOutputArrayShape(contract);
1430
1430
  printToolExecutionHints(contract);
1431
1431
  if (contract.deprecated === true) {
1432
- const deprecation = _chunkQFXPA2E4js.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1433
- const message = _chunkQFXPA2E4js.stringField.call(void 0, deprecation, "message");
1434
- const replacementToolId = _chunkQFXPA2E4js.stringField.call(void 0,
1432
+ const deprecation = _chunkZ2GUFYT6js.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1433
+ const message = _chunkZ2GUFYT6js.stringField.call(void 0, deprecation, "message");
1434
+ const replacementToolId = _chunkZ2GUFYT6js.stringField.call(void 0,
1435
1435
  deprecation,
1436
1436
  "replacementToolId",
1437
1437
  "replacement_tool_id"
@@ -1456,12 +1456,12 @@ function printCompactToolContract(tool, requestedToolId) {
1456
1456
  console.log("");
1457
1457
  console.log("Inputs:");
1458
1458
  for (const field of inputFields) {
1459
- if (!_chunkQFXPA2E4js.isRecord.call(void 0, field)) continue;
1460
- const name = _chunkQFXPA2E4js.stringField.call(void 0, field, "name");
1459
+ if (!_chunkZ2GUFYT6js.isRecord.call(void 0, field)) continue;
1460
+ const name = _chunkZ2GUFYT6js.stringField.call(void 0, field, "name");
1461
1461
  if (!name) continue;
1462
1462
  const required = field.required ? "*" : "";
1463
- const type = _chunkQFXPA2E4js.stringField.call(void 0, field, "type") || "unknown";
1464
- const description = _chunkQFXPA2E4js.stringField.call(void 0, field, "description");
1463
+ const type = _chunkZ2GUFYT6js.stringField.call(void 0, field, "type") || "unknown";
1464
+ const description = _chunkZ2GUFYT6js.stringField.call(void 0, field, "description");
1465
1465
  const enumValues = Array.isArray(field.enum) ? field.enum : [];
1466
1466
  const enumSuffix = enumValues.length ? ` enum=${enumValues.map(String).join("|")}` : "";
1467
1467
  const itemBoundsSuffix = arrayItemBoundsSuffix(field);
@@ -1476,8 +1476,8 @@ function printCompactToolContract(tool, requestedToolId) {
1476
1476
  }
1477
1477
  console.log("");
1478
1478
  printToolExamplesOnly(tool, requestedToolId);
1479
- const starterScript = _chunkQFXPA2E4js.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1480
- const starterPath = _chunkQFXPA2E4js.stringField.call(void 0, starterScript, "path");
1479
+ const starterScript = _chunkZ2GUFYT6js.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1480
+ const starterPath = _chunkZ2GUFYT6js.stringField.call(void 0, starterScript, "path");
1481
1481
  if (starterPath) {
1482
1482
  console.log("");
1483
1483
  console.log(`Starter script: ${starterPath}`);
@@ -1488,16 +1488,16 @@ function printCompactToolContract(tool, requestedToolId) {
1488
1488
  console.log("Getters:");
1489
1489
  if (listGetters.length) console.log(listGetterHeading());
1490
1490
  for (const entry of listGetters) {
1491
- if (_chunkQFXPA2E4js.isRecord.call(void 0, entry))
1491
+ if (_chunkZ2GUFYT6js.isRecord.call(void 0, entry))
1492
1492
  console.log(
1493
- `- ${_chunkQFXPA2E4js.stringField.call(void 0, entry, "name")}: ${_chunkQFXPA2E4js.playResultExpression.call(void 0, entry)}`
1493
+ `- ${_chunkZ2GUFYT6js.stringField.call(void 0, entry, "name")}: ${_chunkZ2GUFYT6js.playResultExpression.call(void 0, entry)}`
1494
1494
  );
1495
1495
  }
1496
1496
  if (valueGetters.length) console.log("Values:");
1497
1497
  for (const entry of valueGetters) {
1498
- if (_chunkQFXPA2E4js.isRecord.call(void 0, entry))
1498
+ if (_chunkZ2GUFYT6js.isRecord.call(void 0, entry))
1499
1499
  console.log(
1500
- `- ${_chunkQFXPA2E4js.stringField.call(void 0, entry, "name")}: ${_chunkQFXPA2E4js.playResultExpression.call(void 0, entry)}`
1500
+ `- ${_chunkZ2GUFYT6js.stringField.call(void 0, entry, "name")}: ${_chunkZ2GUFYT6js.playResultExpression.call(void 0, entry)}`
1501
1501
  );
1502
1502
  }
1503
1503
  }
@@ -1508,19 +1508,19 @@ function printCompactToolContract(tool, requestedToolId) {
1508
1508
  console.log(`More: deepline describe ${contract.toolId}`);
1509
1509
  }
1510
1510
  function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1511
- if (_chunkQFXPA2E4js.isMonitorTypeTool.call(void 0, tool)) {
1511
+ if (_chunkZ2GUFYT6js.isMonitorTypeTool.call(void 0, tool)) {
1512
1512
  return monitorTypePricingLines(tool);
1513
1513
  }
1514
1514
  const toolId = String(tool.toolId || requestedToolId);
1515
1515
  const cost = _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1516
- const pricingModel = _chunkQFXPA2E4js.stringField.call(void 0, cost, "pricingModel") || "unknown";
1517
- const billing = _chunkQFXPA2E4js.stringField.call(void 0, cost, "billingSourceLabel") || _chunkQFXPA2E4js.stringField.call(void 0, cost, "billingSource") || _chunkQFXPA2E4js.stringField.call(void 0, cost, "billingMode") || "unknown";
1518
- const explicitUnit = _chunkQFXPA2E4js.stringField.call(void 0, cost, "unit");
1516
+ const pricingModel = _chunkZ2GUFYT6js.stringField.call(void 0, cost, "pricingModel") || "unknown";
1517
+ const billing = _chunkZ2GUFYT6js.stringField.call(void 0, cost, "billingSourceLabel") || _chunkZ2GUFYT6js.stringField.call(void 0, cost, "billingSource") || _chunkZ2GUFYT6js.stringField.call(void 0, cost, "billingMode") || "unknown";
1518
+ const explicitUnit = _chunkZ2GUFYT6js.stringField.call(void 0, cost, "unit");
1519
1519
  const unit = explicitUnit || (pricingModel === "per_page" ? "page" : pricingModel === "per_result" ? "result" : pricingModel === "fixed" ? "call" : pricingModel.replace(/^per_/, "") || "unit");
1520
1520
  const credits = numberField(cost, "deeplineCreditsPerPricingUnit");
1521
1521
  const usd = numberField(cost, "deeplineUsdPerPricingUnit");
1522
- const displayText = _chunkQFXPA2E4js.stringField.call(void 0, cost, "displayText");
1523
- const summary = _chunkQFXPA2E4js.stringField.call(void 0, cost, "summary");
1522
+ const displayText = _chunkZ2GUFYT6js.stringField.call(void 0, cost, "displayText");
1523
+ const summary = _chunkZ2GUFYT6js.stringField.call(void 0, cost, "summary");
1524
1524
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1525
1525
  return [
1526
1526
  `${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
@@ -1537,19 +1537,19 @@ function printToolPricingOnly(tool, requestedToolId, options = {}) {
1537
1537
  console.log(line);
1538
1538
  }
1539
1539
  function printToolSchemaOnly(tool, requestedToolId) {
1540
- if (_chunkQFXPA2E4js.isMonitorTypeTool.call(void 0, tool)) {
1540
+ if (_chunkZ2GUFYT6js.isMonitorTypeTool.call(void 0, tool)) {
1541
1541
  printMonitorTypeFilters(tool);
1542
1542
  printMonitorTypeStreams(tool);
1543
1543
  return;
1544
1544
  }
1545
- const contract = _chunkQFXPA2E4js.toolContractJsonForDescribe.call(void 0,
1545
+ const contract = _chunkZ2GUFYT6js.toolContractJsonForDescribe.call(void 0,
1546
1546
  tool,
1547
1547
  requestedToolId,
1548
1548
  void 0,
1549
1549
  seedToolListScript
1550
1550
  );
1551
- const inputFields = _chunkQFXPA2E4js.recursiveToolInputFieldsForDisplay.call(void 0,
1552
- _chunkQFXPA2E4js.recordField.call(void 0, contract, "inputSchema")
1551
+ const inputFields = _chunkZ2GUFYT6js.recursiveToolInputFieldsForDisplay.call(void 0,
1552
+ _chunkZ2GUFYT6js.recordField.call(void 0, contract, "inputSchema")
1553
1553
  );
1554
1554
  console.log(`Schema: ${contract.toolId}`);
1555
1555
  if (!inputFields.length) {
@@ -1576,27 +1576,27 @@ function printToolSchemaOnly(tool, requestedToolId) {
1576
1576
  }
1577
1577
  printToolOutputArrayShape(contract);
1578
1578
  const declaredSchema = declaredToolJsonSchema(
1579
- _chunkQFXPA2E4js.recordField.call(void 0, contract, "inputSchema")
1579
+ _chunkZ2GUFYT6js.recordField.call(void 0, contract, "inputSchema")
1580
1580
  );
1581
1581
  if (declaredSchema) {
1582
1582
  console.log("Declared input JSON Schema:");
1583
1583
  console.log(JSON.stringify(declaredSchema, null, 2));
1584
1584
  }
1585
- if (_chunkQFXPA2E4js.isRecord.call(void 0, contract.responseSchema)) {
1585
+ if (_chunkZ2GUFYT6js.isRecord.call(void 0, contract.responseSchema)) {
1586
1586
  console.log("Deepline execution response JSON Schema:");
1587
1587
  console.log(JSON.stringify(contract.responseSchema, null, 2));
1588
1588
  }
1589
1589
  }
1590
1590
  function printToolExamplesOnly(tool, requestedToolId) {
1591
- if (_chunkQFXPA2E4js.isMonitorTypeTool.call(void 0, tool)) {
1591
+ if (_chunkZ2GUFYT6js.isMonitorTypeTool.call(void 0, tool)) {
1592
1592
  printMonitorTypeDeploy(tool);
1593
1593
  return;
1594
1594
  }
1595
- if (_chunkQFXPA2E4js.isPlayLikeTool.call(void 0, tool)) {
1595
+ if (_chunkZ2GUFYT6js.isPlayLikeTool.call(void 0, tool)) {
1596
1596
  printPlayLikeToolUsage(tool, requestedToolId);
1597
1597
  return;
1598
1598
  }
1599
- const contract = _chunkQFXPA2E4js.toolContractJsonForDescribe.call(void 0,
1599
+ const contract = _chunkZ2GUFYT6js.toolContractJsonForDescribe.call(void 0,
1600
1600
  tool,
1601
1601
  requestedToolId,
1602
1602
  void 0,
@@ -1604,9 +1604,9 @@ function printToolExamplesOnly(tool, requestedToolId) {
1604
1604
  );
1605
1605
  const toolId = String(contract.toolId);
1606
1606
  const inputFields = Array.isArray(contract.inputFields) ? contract.inputFields : [];
1607
- const examples = _chunkQFXPA2E4js.arrayField.call(void 0, tool, "examples").filter(_chunkQFXPA2E4js.isRecord);
1607
+ const examples = _chunkZ2GUFYT6js.arrayField.call(void 0, tool, "examples").filter(_chunkZ2GUFYT6js.isRecord);
1608
1608
  const firstExample = examples[0];
1609
- const sampleInput = firstExample && _chunkQFXPA2E4js.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunkQFXPA2E4js.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunkQFXPA2E4js.samplePayloadForInputFields.call(void 0, inputFields)));
1609
+ const sampleInput = firstExample && _chunkZ2GUFYT6js.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunkZ2GUFYT6js.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunkZ2GUFYT6js.samplePayloadForInputFields.call(void 0, inputFields)));
1610
1610
  console.log("Example input payload:");
1611
1611
  console.log(JSON.stringify(sampleInput, null, 2));
1612
1612
  console.log(`Use in a play:`);
@@ -1620,32 +1620,32 @@ function printToolExamplesOnly(tool, requestedToolId) {
1620
1620
  );
1621
1621
  console.log("});");
1622
1622
  console.log("const response = result.toolResponse.rawV2;");
1623
- const getters = _chunkQFXPA2E4js.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1623
+ const getters = _chunkZ2GUFYT6js.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1624
1624
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1625
1625
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1626
- const firstGetter = valueGetters.find(_chunkQFXPA2E4js.isRecord);
1626
+ const firstGetter = valueGetters.find(_chunkZ2GUFYT6js.isRecord);
1627
1627
  if (firstGetter) {
1628
- const name = _chunkQFXPA2E4js.stringField.call(void 0, firstGetter, "name") || "value";
1629
- const expression = _chunkQFXPA2E4js.stringField.call(void 0, firstGetter, "expression");
1628
+ const name = _chunkZ2GUFYT6js.stringField.call(void 0, firstGetter, "name") || "value";
1629
+ const expression = _chunkZ2GUFYT6js.stringField.call(void 0, firstGetter, "expression");
1630
1630
  if (expression)
1631
1631
  console.log(
1632
1632
  `const ${safeIdentifier(name)} = ${expression.replace(/^toolExecutionResult\./, "result.")};`
1633
1633
  );
1634
1634
  }
1635
1635
  const arrayNames = new Set(
1636
- _chunkQFXPA2E4js.recursiveToolInputFieldsForDisplay.call(void 0,
1637
- _chunkQFXPA2E4js.recordField.call(void 0, tool, "outputSchema", "output_schema")
1636
+ _chunkZ2GUFYT6js.recursiveToolInputFieldsForDisplay.call(void 0,
1637
+ _chunkZ2GUFYT6js.recordField.call(void 0, tool, "outputSchema", "output_schema")
1638
1638
  ).filter((field) => String(field.type).split("|").includes("array")).map((field) => String(field.name).split(".").at(-1))
1639
1639
  );
1640
1640
  const firstList = _nullishCoalesce(listGetters.find(
1641
- (entry) => _chunkQFXPA2E4js.isRecord.call(void 0, entry) && arrayNames.has(_chunkQFXPA2E4js.stringField.call(void 0, entry, "name"))
1642
- ), () => ( listGetters.find(_chunkQFXPA2E4js.isRecord)));
1643
- if (_chunkQFXPA2E4js.isRecord.call(void 0, firstList)) {
1644
- const name = safeIdentifier(_chunkQFXPA2E4js.stringField.call(void 0, firstList, "name") || "list");
1641
+ (entry) => _chunkZ2GUFYT6js.isRecord.call(void 0, entry) && arrayNames.has(_chunkZ2GUFYT6js.stringField.call(void 0, entry, "name"))
1642
+ ), () => ( listGetters.find(_chunkZ2GUFYT6js.isRecord)));
1643
+ if (_chunkZ2GUFYT6js.isRecord.call(void 0, firstList)) {
1644
+ const name = safeIdentifier(_chunkZ2GUFYT6js.stringField.call(void 0, firstList, "name") || "list");
1645
1645
  if (_chunkJ33TSWO5js.playToolListGetterMode.call(void 0, ) === "array") {
1646
- console.log(`const ${name}_rows = ${_chunkQFXPA2E4js.playResultExpression.call(void 0, firstList)};`);
1646
+ console.log(`const ${name}_rows = ${_chunkZ2GUFYT6js.playResultExpression.call(void 0, firstList)};`);
1647
1647
  } else {
1648
- console.log(`const ${name}_ds = ${_chunkQFXPA2E4js.playResultExpression.call(void 0, firstList)};`);
1648
+ console.log(`const ${name}_ds = ${_chunkZ2GUFYT6js.playResultExpression.call(void 0, firstList)};`);
1649
1649
  console.log(
1650
1650
  "// Complete small list from this response; throws above the memory cap."
1651
1651
  );
@@ -1655,7 +1655,7 @@ function printToolExamplesOnly(tool, requestedToolId) {
1655
1655
  console.log("```");
1656
1656
  if (firstList) printListGetterConsumption();
1657
1657
  for (const example of examples) {
1658
- const description = _chunkQFXPA2E4js.stringField.call(void 0, example, "description");
1658
+ const description = _chunkZ2GUFYT6js.stringField.call(void 0, example, "description");
1659
1659
  if (description) console.log(description);
1660
1660
  console.log("Example Deepline execution response:");
1661
1661
  console.log(JSON.stringify(example.response, null, 2));
@@ -1670,14 +1670,14 @@ function printToolExamplesOnly(tool, requestedToolId) {
1670
1670
  }
1671
1671
  function printPlayLikeToolUsage(tool, requestedToolId) {
1672
1672
  const toolId = String(tool.toolId || requestedToolId);
1673
- const inputFields = _chunkQFXPA2E4js.toolInputFieldsForDisplay.call(void 0,
1674
- _chunkQFXPA2E4js.recordField.call(void 0, tool, "inputSchema", "input_schema")
1673
+ const inputFields = _chunkZ2GUFYT6js.toolInputFieldsForDisplay.call(void 0,
1674
+ _chunkZ2GUFYT6js.recordField.call(void 0, tool, "inputSchema", "input_schema")
1675
1675
  );
1676
- const sampleInput = _chunkQFXPA2E4js.samplePayloadForInputFields.call(void 0, inputFields);
1677
- const playReference = _chunkQFXPA2E4js.playReferenceForTool.call(void 0, tool);
1676
+ const sampleInput = _chunkZ2GUFYT6js.samplePayloadForInputFields.call(void 0, inputFields);
1677
+ const playReference = _chunkZ2GUFYT6js.playReferenceForTool.call(void 0, tool);
1678
1678
  console.log("Run as a play:");
1679
1679
  console.log(
1680
- _chunkQFXPA2E4js.playRunCommandForTool.call(void 0,
1680
+ _chunkZ2GUFYT6js.playRunCommandForTool.call(void 0,
1681
1681
  tool,
1682
1682
  toolId,
1683
1683
  Object.keys(sampleInput).length ? sampleInput : void 0
@@ -1688,13 +1688,13 @@ function printPlayLikeToolUsage(tool, requestedToolId) {
1688
1688
  }
1689
1689
  }
1690
1690
  function printToolGettersOnly(tool, requestedToolId) {
1691
- const contract = _chunkQFXPA2E4js.toolContractJsonForDescribe.call(void 0,
1691
+ const contract = _chunkZ2GUFYT6js.toolContractJsonForDescribe.call(void 0,
1692
1692
  tool,
1693
1693
  requestedToolId,
1694
1694
  void 0,
1695
1695
  seedToolListScript
1696
1696
  );
1697
- const getters = _chunkQFXPA2E4js.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1697
+ const getters = _chunkZ2GUFYT6js.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1698
1698
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1699
1699
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1700
1700
  console.log(`Getters: ${contract.toolId}`);
@@ -1705,9 +1705,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1705
1705
  if (listGetters.length) {
1706
1706
  console.log(listGetterHeading());
1707
1707
  for (const entry of listGetters) {
1708
- if (_chunkQFXPA2E4js.isRecord.call(void 0, entry))
1708
+ if (_chunkZ2GUFYT6js.isRecord.call(void 0, entry))
1709
1709
  console.log(
1710
- `- ${_chunkQFXPA2E4js.stringField.call(void 0, entry, "name")}: ${_chunkQFXPA2E4js.playResultExpression.call(void 0, entry)}`
1710
+ `- ${_chunkZ2GUFYT6js.stringField.call(void 0, entry, "name")}: ${_chunkZ2GUFYT6js.playResultExpression.call(void 0, entry)}`
1711
1711
  );
1712
1712
  }
1713
1713
  printListGetterConsumption();
@@ -1715,9 +1715,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1715
1715
  if (valueGetters.length) {
1716
1716
  console.log("Values:");
1717
1717
  for (const entry of valueGetters) {
1718
- if (_chunkQFXPA2E4js.isRecord.call(void 0, entry))
1718
+ if (_chunkZ2GUFYT6js.isRecord.call(void 0, entry))
1719
1719
  console.log(
1720
- `- ${_chunkQFXPA2E4js.stringField.call(void 0, entry, "name")}: ${_chunkQFXPA2E4js.playResultExpression.call(void 0, entry)}`
1720
+ `- ${_chunkZ2GUFYT6js.stringField.call(void 0, entry, "name")}: ${_chunkZ2GUFYT6js.playResultExpression.call(void 0, entry)}`
1721
1721
  );
1722
1722
  }
1723
1723
  }
@@ -1755,22 +1755,22 @@ function listedToolDescription(tool) {
1755
1755
  }
1756
1756
  function formatListedToolCost(tool) {
1757
1757
  const record = tool;
1758
- if (_chunkQFXPA2E4js.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1758
+ if (_chunkZ2GUFYT6js.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1759
1759
  return "Cost: Free";
1760
1760
  }
1761
- const pricing = _chunkQFXPA2E4js.recordField.call(void 0, record, "pricing");
1762
- const displayText = _chunkQFXPA2E4js.stringField.call(void 0, pricing, "displayText", "display_text");
1761
+ const pricing = _chunkZ2GUFYT6js.recordField.call(void 0, record, "pricing");
1762
+ const displayText = _chunkZ2GUFYT6js.stringField.call(void 0, pricing, "displayText", "display_text");
1763
1763
  return displayText ? `Cost: ${displayText}` : "";
1764
1764
  }
1765
1765
  function printToolOutputArrayShape(tool) {
1766
- const outputFields = _chunkQFXPA2E4js.toolOutputFieldsForDisplay.call(void 0,
1767
- _chunkQFXPA2E4js.recordField.call(void 0, _chunkQFXPA2E4js.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1766
+ const outputFields = _chunkZ2GUFYT6js.toolOutputFieldsForDisplay.call(void 0,
1767
+ _chunkZ2GUFYT6js.recordField.call(void 0, _chunkZ2GUFYT6js.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1768
1768
  );
1769
1769
  if (outputFields.length === 0) return;
1770
1770
  console.log(" Output array shape (declared schema):");
1771
1771
  for (const field of outputFields.slice(0, 60)) {
1772
1772
  const name = String(field.name);
1773
- const type = _chunkQFXPA2E4js.stringField.call(void 0, field, "type") || "unknown";
1773
+ const type = _chunkZ2GUFYT6js.stringField.call(void 0, field, "type") || "unknown";
1774
1774
  const itemBounds = arrayItemBoundsSuffix(field);
1775
1775
  console.log(` - ${name}: ${type}${itemBounds}`);
1776
1776
  }
@@ -1779,14 +1779,14 @@ function printToolOutputArrayShape(tool) {
1779
1779
  }
1780
1780
  }
1781
1781
  function declaredToolJsonSchema(inputSchema) {
1782
- if (_chunkQFXPA2E4js.isRecord.call(void 0, inputSchema.jsonSchema)) {
1782
+ if (_chunkZ2GUFYT6js.isRecord.call(void 0, inputSchema.jsonSchema)) {
1783
1783
  return inputSchema.jsonSchema;
1784
1784
  }
1785
1785
  return Array.isArray(inputSchema.fields) ? null : inputSchema;
1786
1786
  }
1787
1787
  function arrayItemBoundsSuffix(field) {
1788
- const itemSchema = _chunkQFXPA2E4js.isRecord.call(void 0, field.items) ? field.items : null;
1789
- const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkQFXPA2E4js.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1788
+ const itemSchema = _chunkZ2GUFYT6js.isRecord.call(void 0, field.items) ? field.items : null;
1789
+ const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkZ2GUFYT6js.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1790
1790
  const itemEnum = Array.isArray(_optionalChain([itemSchema, 'optionalAccess', _14 => _14.enum])) ? ` enum=${itemSchema.enum.map(String).join("|")}` : "";
1791
1791
  const itemTypeSuffix = itemType && itemType !== "unknown" ? ` items=${itemType}${itemEnum}` : "";
1792
1792
  const minItems = typeof field.minItems === "number" && Number.isFinite(field.minItems) ? field.minItems : null;
@@ -1799,21 +1799,21 @@ function arrayItemBoundsSuffix(field) {
1799
1799
  return itemTypeSuffix;
1800
1800
  }
1801
1801
  function printToolExecutionHints(value) {
1802
- const batchCapabilityRecord = _chunkQFXPA2E4js.recordField.call(void 0,
1803
- _chunkQFXPA2E4js.isRecord.call(void 0, value) ? value : {},
1802
+ const batchCapabilityRecord = _chunkZ2GUFYT6js.recordField.call(void 0,
1803
+ _chunkZ2GUFYT6js.isRecord.call(void 0, value) ? value : {},
1804
1804
  "batchCapability",
1805
1805
  "batch_capability"
1806
1806
  );
1807
1807
  const batchCapability = Object.keys(batchCapabilityRecord).length > 0 ? batchCapabilityRecord : null;
1808
- const executionMetadata = _chunkQFXPA2E4js.recordField.call(void 0,
1809
- _chunkQFXPA2E4js.isRecord.call(void 0, value) ? value : {},
1808
+ const executionMetadata = _chunkZ2GUFYT6js.recordField.call(void 0,
1809
+ _chunkZ2GUFYT6js.isRecord.call(void 0, value) ? value : {},
1810
1810
  "executionMetadata",
1811
1811
  "execution_metadata"
1812
1812
  );
1813
1813
  if (batchCapability) {
1814
- const status = _chunkQFXPA2E4js.stringField.call(void 0, batchCapability, "status") || "unknown";
1815
- const surface = _chunkQFXPA2E4js.stringField.call(void 0, batchCapability, "surface");
1816
- const operation = _chunkQFXPA2E4js.stringField.call(void 0,
1814
+ const status = _chunkZ2GUFYT6js.stringField.call(void 0, batchCapability, "status") || "unknown";
1815
+ const surface = _chunkZ2GUFYT6js.stringField.call(void 0, batchCapability, "surface");
1816
+ const operation = _chunkZ2GUFYT6js.stringField.call(void 0,
1817
1817
  batchCapability,
1818
1818
  "batchOperation",
1819
1819
  "batch_operation"
@@ -1823,7 +1823,7 @@ function printToolExecutionHints(value) {
1823
1823
  "maxBatchSize",
1824
1824
  "max_batch_size"
1825
1825
  );
1826
- const notes = _chunkQFXPA2E4js.stringField.call(void 0, batchCapability, "notes");
1826
+ const notes = _chunkZ2GUFYT6js.stringField.call(void 0, batchCapability, "notes");
1827
1827
  console.log("");
1828
1828
  console.log("Batching:");
1829
1829
  console.log(`- Catalog status: ${status}${surface ? ` (${surface})` : ""}`);
@@ -1842,11 +1842,11 @@ function printToolExecutionHints(value) {
1842
1842
  }
1843
1843
  if (notes) console.log(`- Details: ${notes}`);
1844
1844
  }
1845
- const configuredRateLimits = _chunkQFXPA2E4js.arrayField.call(void 0,
1845
+ const configuredRateLimits = _chunkZ2GUFYT6js.arrayField.call(void 0,
1846
1846
  executionMetadata,
1847
1847
  "configuredRateLimits",
1848
1848
  "configured_rate_limits"
1849
- ).filter(_chunkQFXPA2E4js.isRecord);
1849
+ ).filter(_chunkZ2GUFYT6js.isRecord);
1850
1850
  if (configuredRateLimits.length > 0) {
1851
1851
  console.log("");
1852
1852
  console.log(
@@ -1856,7 +1856,7 @@ function printToolExecutionHints(value) {
1856
1856
  const requests = numberField(limit, "requestsPerWindow");
1857
1857
  const windowMs = numberField(limit, "windowMs");
1858
1858
  if (requests === null || windowMs === null) continue;
1859
- const usage = _chunkQFXPA2E4js.stringField.call(void 0, limit, "usage") || "unknown";
1859
+ const usage = _chunkZ2GUFYT6js.stringField.call(void 0, limit, "usage") || "unknown";
1860
1860
  const usageText = usage === "queue_hint" ? "queue hint" : usage === "enforced" ? "Deepline enforced" : usage === "queue_hint_and_enforced" ? "queue hint and Deepline enforced" : usage === "disabled" ? "disabled" : usage;
1861
1861
  const explicitMaxConcurrency = numberField(
1862
1862
  limit,
@@ -1865,11 +1865,11 @@ function printToolExecutionHints(value) {
1865
1865
  );
1866
1866
  const concurrencyText = explicitMaxConcurrency === null ? "no explicit concurrency limit" : `explicit concurrency limit ${explicitMaxConcurrency}`;
1867
1867
  console.log(
1868
- `- ${requests} requests per ${formatRateWindow(windowMs)}${_chunkLRNYRGCNjs.rateLimitQualifier.call(void 0, limit)} (${usageText}; ${concurrencyText})`
1868
+ `- ${requests} requests per ${formatRateWindow(windowMs)}${_chunkZ2XUZC34js.rateLimitQualifier.call(void 0, limit)} (${usageText}; ${concurrencyText})`
1869
1869
  );
1870
1870
  }
1871
1871
  }
1872
- const queueHint = _chunkQFXPA2E4js.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
1872
+ const queueHint = _chunkZ2GUFYT6js.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
1873
1873
  const requestsPerSecondHint = numberField(
1874
1874
  queueHint,
1875
1875
  "requestsPerSecondHint",
@@ -1895,25 +1895,25 @@ function formatRateWindow(windowMs) {
1895
1895
  }
1896
1896
  function samplePayload(samples, key) {
1897
1897
  const entry = samples[key];
1898
- if (!_chunkQFXPA2E4js.isRecord.call(void 0, entry)) return void 0;
1898
+ if (!_chunkZ2GUFYT6js.isRecord.call(void 0, entry)) return void 0;
1899
1899
  return Object.prototype.hasOwnProperty.call(entry, "payload") ? entry.payload : entry;
1900
1900
  }
1901
1901
  function commandEnvelopeFromRawResponse(rawResponse) {
1902
- return _chunkQFXPA2E4js.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
1902
+ return _chunkZ2GUFYT6js.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
1903
1903
  }
1904
1904
  function toolExecuteExitCode(envelope) {
1905
1905
  return envelope.status === "failed" || envelope.ok === false ? 1 : 0;
1906
1906
  }
1907
1907
  function extractToolExecutionWarningMessages(rawResponse) {
1908
- if (!_chunkQFXPA2E4js.isRecord.call(void 0, rawResponse)) return [];
1908
+ if (!_chunkZ2GUFYT6js.isRecord.call(void 0, rawResponse)) return [];
1909
1909
  const candidates = [
1910
- _chunkQFXPA2E4js.recordField.call(void 0, _chunkQFXPA2E4js.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
1911
- _chunkQFXPA2E4js.recordField.call(void 0,
1912
- _chunkQFXPA2E4js.recordField.call(void 0, _chunkQFXPA2E4js.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
1910
+ _chunkZ2GUFYT6js.recordField.call(void 0, _chunkZ2GUFYT6js.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
1911
+ _chunkZ2GUFYT6js.recordField.call(void 0,
1912
+ _chunkZ2GUFYT6js.recordField.call(void 0, _chunkZ2GUFYT6js.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
1913
1913
  "meta"
1914
1914
  ),
1915
- _chunkQFXPA2E4js.recordField.call(void 0, rawResponse, "meta"),
1916
- _chunkQFXPA2E4js.recordField.call(void 0, _chunkQFXPA2E4js.recordField.call(void 0, rawResponse, "result"), "meta")
1915
+ _chunkZ2GUFYT6js.recordField.call(void 0, rawResponse, "meta"),
1916
+ _chunkZ2GUFYT6js.recordField.call(void 0, _chunkZ2GUFYT6js.recordField.call(void 0, rawResponse, "result"), "meta")
1917
1917
  ];
1918
1918
  const messages = [];
1919
1919
  for (const candidate of candidates) {
@@ -1922,8 +1922,8 @@ function extractToolExecutionWarningMessages(rawResponse) {
1922
1922
  for (const warning of warnings) {
1923
1923
  if (typeof warning === "string" && warning.trim()) {
1924
1924
  messages.push(warning.trim());
1925
- } else if (_chunkQFXPA2E4js.isRecord.call(void 0, warning)) {
1926
- const message = _chunkQFXPA2E4js.stringField.call(void 0, warning, "message");
1925
+ } else if (_chunkZ2GUFYT6js.isRecord.call(void 0, warning)) {
1926
+ const message = _chunkZ2GUFYT6js.stringField.call(void 0, warning, "message");
1927
1927
  if (message) messages.push(message);
1928
1928
  }
1929
1929
  }
@@ -1931,20 +1931,20 @@ function extractToolExecutionWarningMessages(rawResponse) {
1931
1931
  return [...new Set(messages)];
1932
1932
  }
1933
1933
  function apifySyncRecoveryNext(rawResponse) {
1934
- if (!_chunkQFXPA2E4js.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
1935
- const toolResponse = _chunkQFXPA2E4js.recordField.call(void 0, rawResponse, "toolResponse");
1936
- const raw = _chunkQFXPA2E4js.recordField.call(void 0, toolResponse, "raw");
1934
+ if (!_chunkZ2GUFYT6js.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
1935
+ const toolResponse = _chunkZ2GUFYT6js.recordField.call(void 0, rawResponse, "toolResponse");
1936
+ const raw = _chunkZ2GUFYT6js.recordField.call(void 0, toolResponse, "raw");
1937
1937
  if (raw.state !== "awaiting_apify") return null;
1938
- const next = _chunkQFXPA2E4js.recordField.call(void 0, raw, "next");
1939
- const getActorRun = _chunkQFXPA2E4js.recordField.call(void 0, next, "getActorRun");
1940
- const getActorRunTool = _chunkQFXPA2E4js.stringField.call(void 0, getActorRun, "tool");
1941
- const getActorRunPayload = _chunkQFXPA2E4js.recordField.call(void 0, getActorRun, "payload");
1938
+ const next = _chunkZ2GUFYT6js.recordField.call(void 0, raw, "next");
1939
+ const getActorRun = _chunkZ2GUFYT6js.recordField.call(void 0, next, "getActorRun");
1940
+ const getActorRunTool = _chunkZ2GUFYT6js.stringField.call(void 0, getActorRun, "tool");
1941
+ const getActorRunPayload = _chunkZ2GUFYT6js.recordField.call(void 0, getActorRun, "payload");
1942
1942
  if (!getActorRunTool || Object.keys(getActorRunPayload).length === 0) {
1943
1943
  return null;
1944
1944
  }
1945
- const getDatasetItems = _chunkQFXPA2E4js.recordField.call(void 0, next, "getDatasetItems");
1946
- const getDatasetItemsTool = _chunkQFXPA2E4js.stringField.call(void 0, getDatasetItems, "tool");
1947
- const getDatasetItemsPayload = _chunkQFXPA2E4js.recordField.call(void 0, getDatasetItems, "payload");
1945
+ const getDatasetItems = _chunkZ2GUFYT6js.recordField.call(void 0, next, "getDatasetItems");
1946
+ const getDatasetItemsTool = _chunkZ2GUFYT6js.stringField.call(void 0, getDatasetItems, "tool");
1947
+ const getDatasetItemsPayload = _chunkZ2GUFYT6js.recordField.call(void 0, getDatasetItems, "payload");
1948
1948
  return {
1949
1949
  getActorRun: `deepline tools execute ${getActorRunTool} --input ${_chunkAID3OYVJjs.shellQuote.call(void 0, JSON.stringify(getActorRunPayload))}`,
1950
1950
  ...getDatasetItemsTool && Object.keys(getDatasetItemsPayload).length > 0 ? {
@@ -1954,7 +1954,7 @@ function apifySyncRecoveryNext(rawResponse) {
1954
1954
  }
1955
1955
  function listExtractorPathsFromUsageGuidance(tool) {
1956
1956
  const toolExecutionResult = _optionalChain([tool, 'access', _16 => _16.usageGuidance, 'optionalAccess', _17 => _17.toolExecutionResult]);
1957
- const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _18 => _18.extractedLists])) ? toolExecutionResult.extractedLists : _chunkQFXPA2E4js.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _19 => _19.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
1957
+ const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _18 => _18.extractedLists])) ? toolExecutionResult.extractedLists : _chunkZ2GUFYT6js.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _19 => _19.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
1958
1958
  return extractedLists.flatMap((entry) => {
1959
1959
  const paths = _nullishCoalesce(_optionalChain([entry, 'access', _20 => _20.details, 'optionalAccess', _21 => _21.candidatePaths]), () => ( _optionalChain([entry, 'access', _22 => _22.details, 'optionalAccess', _23 => _23.rawToolOutputPaths])));
1960
1960
  if (!Array.isArray(paths)) return [];
@@ -2039,7 +2039,7 @@ function parseJsonObjectArgument(raw, flagName) {
2039
2039
  }
2040
2040
  throw invalidJsonError(flagName, message);
2041
2041
  }
2042
- if (!_chunkQFXPA2E4js.isRecord.call(void 0, parsed)) {
2042
+ if (!_chunkZ2GUFYT6js.isRecord.call(void 0, parsed)) {
2043
2043
  throw invalidJsonError(flagName, "expected an object.");
2044
2044
  }
2045
2045
  return parsed;
@@ -2083,7 +2083,7 @@ function parseExecuteOptions(toolId, options, output) {
2083
2083
  outputFormat = normalizeOutputFormat(options.outputFormat);
2084
2084
  }
2085
2085
  if (options.idempotencyKey !== void 0) {
2086
- _chunk732QWWPGjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2086
+ _chunk6PTUA4M7js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2087
2087
  }
2088
2088
  if (options.recoveryTimeoutMs !== void 0) {
2089
2089
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2212,7 +2212,7 @@ function buildToolExecuteBaseEnvelope(input) {
2212
2212
  kind: summaryEntries.length > 0 ? "object" : "raw",
2213
2213
  summary: input.summary
2214
2214
  };
2215
- const envelopeHasCanonicalOutput = _chunkQFXPA2E4js.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2215
+ const envelopeHasCanonicalOutput = _chunkZ2GUFYT6js.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2216
2216
  const envelopeHasDeclaredOutput = Object.prototype.hasOwnProperty.call(
2217
2217
  envelope,
2218
2218
  "output"
@@ -2240,7 +2240,7 @@ function buildToolExecuteBaseEnvelope(input) {
2240
2240
  return {
2241
2241
  ...envelope,
2242
2242
  ...input.idempotencyKey ? { idempotency_key: input.idempotencyKey } : {},
2243
- ..._chunkQFXPA2E4js.isRecord.call(void 0, input.rawResponse) && _chunkQFXPA2E4js.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2243
+ ..._chunkZ2GUFYT6js.isRecord.call(void 0, input.rawResponse) && _chunkZ2GUFYT6js.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2244
2244
  ...envelopeHasCanonicalOutput || envelopeHasDeclaredOutput ? { output_preview: outputPreview } : { output: outputPreview },
2245
2245
  ...summaryEntries.length > 0 ? { summary: input.summary } : {},
2246
2246
  ...warningMessages.length > 0 ? { warnings: warningMessages } : {},
@@ -2301,7 +2301,7 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2301
2301
  void _render;
2302
2302
  void _next;
2303
2303
  void _local;
2304
- const billingLookup = _chunkQFXPA2E4js.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2304
+ const billingLookup = _chunkZ2GUFYT6js.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2305
2305
  const inspection = toolExecutionInspection(input);
2306
2306
  return {
2307
2307
  ...base,
@@ -2404,19 +2404,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2404
2404
  parsed = parseExecuteOptions(toolId, options, output);
2405
2405
  } catch (error) {
2406
2406
  if (wantsJson) {
2407
- _chunk5JJ6JYTLjs.printJsonError.call(void 0, error);
2407
+ _chunk7X7GEXHCjs.printJsonError.call(void 0, error);
2408
2408
  } else {
2409
2409
  console.error(error instanceof Error ? error.message : String(error));
2410
2410
  }
2411
2411
  return error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2412
2412
  }
2413
- const cliInvocationId = _nullishCoalesce(_chunkV247SCRQjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkV247SCRQjs.beginToolExecuteCommand.call(void 0, )));
2413
+ const cliInvocationId = _nullishCoalesce(_chunkMU76KMILjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkMU76KMILjs.beginToolExecuteCommand.call(void 0, )));
2414
2414
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2415
- const tracing = _chunkOAVHRVPAjs.isCliTraceEnabled.call(void 0, );
2415
+ const tracing = _chunkLBZGICM5js.isCliTraceEnabled.call(void 0, );
2416
2416
  const clientStartedAt = tracing ? performance.now() : void 0;
2417
- const client = new (0, _chunk732QWWPGjs.DeeplineClient)();
2417
+ const client = new (0, _chunk6PTUA4M7js.DeeplineClient)();
2418
2418
  if (clientStartedAt !== void 0) {
2419
- _chunkOAVHRVPAjs.recordCliTrace.call(void 0, {
2419
+ _chunkLBZGICM5js.recordCliTrace.call(void 0, {
2420
2420
  phase: "cli.tool_execute_client_setup",
2421
2421
  ms: performance.now() - clientStartedAt
2422
2422
  });
@@ -2425,13 +2425,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2425
2425
  const readMetadata = async () => {
2426
2426
  if (metadata) return metadata;
2427
2427
  try {
2428
- metadata = await _chunkV247SCRQjs.runToolExecuteStage.call(void 0,
2428
+ metadata = await _chunkMU76KMILjs.runToolExecuteStage.call(void 0,
2429
2429
  "tool metadata lookup",
2430
2430
  () => client.getTool(parsed.toolId, { cliInvocationId })
2431
2431
  );
2432
2432
  } catch (error) {
2433
2433
  if (isMissingToolMetadataError(error)) {
2434
- const play = await _chunkV247SCRQjs.runToolExecuteStage.call(void 0,
2434
+ const play = await _chunkMU76KMILjs.runToolExecuteStage.call(void 0,
2435
2435
  "play alias lookup",
2436
2436
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2437
2437
  );
@@ -2445,7 +2445,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2445
2445
  }
2446
2446
  throw error;
2447
2447
  }
2448
- if (_chunkQFXPA2E4js.isPlayLikeTool.call(void 0, metadata)) {
2448
+ if (_chunkZ2GUFYT6js.isPlayLikeTool.call(void 0, metadata)) {
2449
2449
  throw new (0, _chunkDIAWYWT5js.DeeplineError)(
2450
2450
  playLikeToolExecuteErrorMessage(
2451
2451
  parsed.toolId,
@@ -2470,7 +2470,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2470
2470
  metadata = await readMetadata();
2471
2471
  } catch (error) {
2472
2472
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2473
- if (wantsJson) _chunk5JJ6JYTLjs.printJsonError.call(void 0, error);
2473
+ if (wantsJson) _chunk7X7GEXHCjs.printJsonError.call(void 0, error);
2474
2474
  else console.error(error.message);
2475
2475
  return 2;
2476
2476
  }
@@ -2486,7 +2486,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2486
2486
  metadata = await readMetadata();
2487
2487
  } catch (error) {
2488
2488
  if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2489
- if (wantsJson) _chunk5JJ6JYTLjs.printJsonError.call(void 0, error);
2489
+ if (wantsJson) _chunk7X7GEXHCjs.printJsonError.call(void 0, error);
2490
2490
  else console.error(error.message);
2491
2491
  return 2;
2492
2492
  }
@@ -2512,11 +2512,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2512
2512
  responseIntent,
2513
2513
  ...idempotencyKey ? { idempotencyKey } : {},
2514
2514
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2515
- searchRef: _chunkMMMA4OLBjs.recentSearchRef.call(void 0, ),
2515
+ searchRef: _chunkTY6KOFLRjs.recentSearchRef.call(void 0, ),
2516
2516
  cliInvocationId,
2517
- onResponseReceived: _chunkPP66EATAjs.recordApiResponse,
2517
+ onResponseReceived: _chunkPQUUWFXYjs.recordApiResponse,
2518
2518
  ...tracing ? {
2519
- onServerTiming: (serverTiming) => _chunkOAVHRVPAjs.recordCliTrace.call(void 0, {
2519
+ onServerTiming: (serverTiming) => _chunkLBZGICM5js.recordCliTrace.call(void 0, {
2520
2520
  phase: "tool_execute_server_timing",
2521
2521
  cliInvocationId,
2522
2522
  serverTiming,
@@ -2527,13 +2527,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2527
2527
  let rawResponse;
2528
2528
  let successfulCompatibilityResponse;
2529
2529
  try {
2530
- const executeResult = await _chunkV247SCRQjs.runToolExecuteStage.call(void 0,
2530
+ const executeResult = await _chunkMU76KMILjs.runToolExecuteStage.call(void 0,
2531
2531
  "execute request",
2532
2532
  async () => {
2533
2533
  try {
2534
2534
  if (tracing) {
2535
2535
  submissionStartedAt = performance.now();
2536
- _chunkOAVHRVPAjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2536
+ _chunkLBZGICM5js.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2537
2537
  }
2538
2538
  return await client.executeTool(parsed.toolId, parsed.params, {
2539
2539
  ...executeOptions,
@@ -2542,34 +2542,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2542
2542
  } catch (error) {
2543
2543
  if (!(error instanceof _chunkDIAWYWT5js.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2544
2544
  throw error;
2545
- const baseUrl = _chunkTABMEHIPjs.resolveConfig.call(void 0, ).baseUrl;
2545
+ const baseUrl = _chunkWX4K4TNGjs.resolveConfig.call(void 0, ).baseUrl;
2546
2546
  if (maintenancePolicy !== "off") {
2547
- _chunkH6HZMADGjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2547
+ _chunkSSPHVLOFjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2548
2548
  }
2549
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkV247SCRQjs.runToolExecuteStage.call(void 0,
2549
+ const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkMU76KMILjs.runToolExecuteStage.call(void 0,
2550
2550
  "SDK compatibility",
2551
- () => _chunkH6HZMADGjs.checkSdkCompatibility.call(void 0, baseUrl, {
2551
+ () => _chunkSSPHVLOFjs.checkSdkCompatibility.call(void 0, baseUrl, {
2552
2552
  command: "tools execute",
2553
- skillsVersion: _chunkTABMEHIPjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2553
+ skillsVersion: _chunkWX4K4TNGjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2554
2554
  persistCache: maintenancePolicy !== "off"
2555
2555
  })
2556
2556
  );
2557
2557
  if (compatibility.error) throw compatibility.error;
2558
2558
  metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _28 => _28.readMetadata, 'call', _29 => _29()]), () => ( metadata));
2559
- if (maintenancePolicy !== "off" && await _chunkV247SCRQjs.maybeAutoUpdateAndRelaunch.call(void 0,
2559
+ if (maintenancePolicy !== "off" && await _chunkMU76KMILjs.maybeAutoUpdateAndRelaunch.call(void 0,
2560
2560
  compatibility.response,
2561
2561
  baseUrl,
2562
2562
  maintenancePolicy
2563
2563
  )) {
2564
2564
  return void 0;
2565
2565
  }
2566
- _chunkH6HZMADGjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2566
+ _chunkSSPHVLOFjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2567
2567
  quietAdvisory: wantsJson
2568
2568
  });
2569
2569
  if (maintenancePolicy !== "off") {
2570
- await _chunkV247SCRQjs.runToolExecuteStage.call(void 0,
2570
+ await _chunkMU76KMILjs.runToolExecuteStage.call(void 0,
2571
2571
  "agent skills sync",
2572
- () => _chunkH6HZMADGjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2572
+ () => _chunkSSPHVLOFjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2573
2573
  update: _optionalChain([compatibility, 'access', _30 => _30.response, 'optionalAccess', _31 => _31.skills]),
2574
2574
  mode: "detached"
2575
2575
  })
@@ -2578,7 +2578,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2578
2578
  const legacyMetadata = await readMetadata();
2579
2579
  if (tracing) {
2580
2580
  submissionStartedAt = performance.now();
2581
- _chunkOAVHRVPAjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2581
+ _chunkLBZGICM5js.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2582
2582
  }
2583
2583
  return client.executeTool(parsed.toolId, parsed.params, {
2584
2584
  ...executeOptions,
@@ -2599,8 +2599,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2599
2599
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2600
2600
  const updateRequiredBeforeExecution = error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2601
2601
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2602
- const baseUrl = _chunkTABMEHIPjs.resolveConfig.call(void 0, ).baseUrl;
2603
- if (await _chunkV247SCRQjs.maybeAutoUpdateAndRelaunch.call(void 0,
2602
+ const baseUrl = _chunkWX4K4TNGjs.resolveConfig.call(void 0, ).baseUrl;
2603
+ if (await _chunkMU76KMILjs.maybeAutoUpdateAndRelaunch.call(void 0,
2604
2604
  compatibility.response,
2605
2605
  baseUrl,
2606
2606
  maintenancePolicy
@@ -2619,7 +2619,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2619
2619
  failure = diagnosticError;
2620
2620
  }
2621
2621
  if (failure instanceof _chunkDIAWYWT5js.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2622
- if (wantsJson) _chunk5JJ6JYTLjs.printJsonError.call(void 0, failure);
2622
+ if (wantsJson) _chunk7X7GEXHCjs.printJsonError.call(void 0, failure);
2623
2623
  else console.error(failure.message);
2624
2624
  return 2;
2625
2625
  }
@@ -2646,9 +2646,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2646
2646
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
2647
2647
  const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _37 => _37.auto_update]);
2648
2648
  if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _38 => _38.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
2649
- await _chunkV247SCRQjs.maybeAutoUpdateAndRelaunch.call(void 0,
2649
+ await _chunkMU76KMILjs.maybeAutoUpdateAndRelaunch.call(void 0,
2650
2650
  compatibilityResponse,
2651
- _chunkTABMEHIPjs.resolveConfig.call(void 0, ).baseUrl,
2651
+ _chunkWX4K4TNGjs.resolveConfig.call(void 0, ).baseUrl,
2652
2652
  maintenancePolicy
2653
2653
  );
2654
2654
  }
@@ -2666,8 +2666,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2666
2666
  );
2667
2667
  }
2668
2668
  }
2669
- const responseMetadata = _chunkQFXPA2E4js.recordField.call(void 0,
2670
- _chunkQFXPA2E4js.recordField.call(void 0, rawResponse, "_metadata"),
2669
+ const responseMetadata = _chunkZ2GUFYT6js.recordField.call(void 0,
2670
+ _chunkZ2GUFYT6js.recordField.call(void 0, rawResponse, "_metadata"),
2671
2671
  "tool"
2672
2672
  );
2673
2673
  const listOutputPaths = responseMetadata.listOutputPaths;
@@ -2679,11 +2679,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2679
2679
  await readMetadata()
2680
2680
  );
2681
2681
  }
2682
- if (_chunkQFXPA2E4js.isRecord.call(void 0, rawResponse)) {
2682
+ if (_chunkZ2GUFYT6js.isRecord.call(void 0, rawResponse)) {
2683
2683
  const { _metadata, ...execution } = rawResponse;
2684
2684
  rawResponse = execution;
2685
2685
  }
2686
- const { listConversion, summary, baseEnvelope } = await _chunkV247SCRQjs.runToolExecuteStage.call(void 0,
2686
+ const { listConversion, summary, baseEnvelope } = await _chunkMU76KMILjs.runToolExecuteStage.call(void 0,
2687
2687
  "result formatting",
2688
2688
  async () => {
2689
2689
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -2718,9 +2718,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2718
2718
  }
2719
2719
  skillsSyncAttempted = true;
2720
2720
  try {
2721
- await _chunkV247SCRQjs.runToolExecuteStage.call(void 0,
2721
+ await _chunkMU76KMILjs.runToolExecuteStage.call(void 0,
2722
2722
  "agent skills sync",
2723
- () => _chunkH6HZMADGjs.syncSdkSkillsIfNeeded.call(void 0, _chunkTABMEHIPjs.resolveConfig.call(void 0, ).baseUrl, {
2723
+ () => _chunkSSPHVLOFjs.syncSdkSkillsIfNeeded.call(void 0, _chunkWX4K4TNGjs.resolveConfig.call(void 0, ).baseUrl, {
2724
2724
  update: deliveredCompatibilityResponse.skills,
2725
2725
  mode: "detached"
2726
2726
  })
@@ -2731,15 +2731,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2731
2731
  );
2732
2732
  }
2733
2733
  };
2734
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0, envelope, {
2734
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunk7X7GEXHCjs.printCommandEnvelope.call(void 0, envelope, {
2735
2735
  ...options2,
2736
2736
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
2737
2737
  });
2738
2738
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
2739
2739
  await syncSkillsForDeliveredOutput();
2740
- _chunk5JJ6JYTLjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
2740
+ _chunk7X7GEXHCjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
2741
2741
  };
2742
- const delivered = await _chunkV247SCRQjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
2742
+ const delivered = await _chunkMU76KMILjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
2743
2743
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
2744
2744
  await printDeliveredJsonEnvelope(baseEnvelope);
2745
2745
  return true;
@@ -2752,7 +2752,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2752
2752
  await printDeliveredJsonEnvelope({
2753
2753
  ...baseEnvelope,
2754
2754
  local: {
2755
- ..._chunkQFXPA2E4js.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
2755
+ ..._chunkZ2GUFYT6js.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
2756
2756
  payload_file: jsonPath
2757
2757
  }
2758
2758
  });
@@ -2768,7 +2768,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2768
2768
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
2769
2769
  );
2770
2770
  if (wantsJson) {
2771
- _chunk5JJ6JYTLjs.printJsonError.call(void 0, error);
2771
+ _chunk7X7GEXHCjs.printJsonError.call(void 0, error);
2772
2772
  } else {
2773
2773
  console.error(error.message);
2774
2774
  }
@@ -2863,13 +2863,13 @@ inspect: ${inspection.inspect}
2863
2863
  return true;
2864
2864
  });
2865
2865
  if (delivered) {
2866
- await _chunkV247SCRQjs.runToolExecuteStage.call(void 0,
2866
+ await _chunkMU76KMILjs.runToolExecuteStage.call(void 0,
2867
2867
  "acknowledge delivery",
2868
2868
  () => recovery.acknowledgeDelivery()
2869
2869
  );
2870
2870
  }
2871
2871
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
2872
- _chunkH6HZMADGjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
2872
+ _chunkSSPHVLOFjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
2873
2873
  quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _40 => _40.auto_update, 'optionalAccess', _41 => _41.should_auto_update]) === true
2874
2874
  });
2875
2875
  }