deepline 0.3.422 → 0.3.423

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 (148) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +2 -2
  2. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/play.ts +227 -184
  4. package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +9 -2
  5. package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  7. package/dist/bundling-sources/sdk/src/tool-calls.ts +3 -1
  8. package/dist/bundling-sources/sdk/src/types.ts +5 -5
  9. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -36
  10. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +179 -38
  11. package/dist/bundling-sources/shared_libs/plays/dataset.ts +2 -2
  12. package/dist/bundling-sources/shared_libs/plays/docflow.ts +4 -0
  13. package/dist/bundling-sources/shared_libs/plays/fetch-http-error.ts +1 -1
  14. package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +12 -4
  15. package/dist/bundling-sources/shared_libs/plays/play-exports.ts +27 -5
  16. package/dist/bundling-sources/shared_libs/plays/script-entry.ts +992 -0
  17. package/dist/bundling-sources/shared_libs/plays/source-authoring-edition.ts +63 -0
  18. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +8 -4
  19. package/dist/bundling-sources/shared_libs/plays/ts-ast.ts +2 -0
  20. package/dist/cli/{auth-DMLBSXLV.mjs → auth-L7Q53QKK.mjs} +4 -4
  21. package/dist/cli/auth-SUNY477Y.js +40 -0
  22. package/dist/cli/{billing-SEXKROBQ.mjs → billing-IH7AKDR2.mjs} +4 -4
  23. package/dist/cli/{billing-IFGFPGJV.js → billing-QNP6YGI2.js} +73 -73
  24. package/dist/cli/{chunk-AARWVK4C.mjs → chunk-2BQUML3X.mjs} +792 -69
  25. package/dist/cli/{chunk-WP7T4BPE.js → chunk-2F5ULM2F.js} +1 -1
  26. package/dist/cli/{chunk-BL3LY54Y.js → chunk-2U3AMRHF.js} +8 -8
  27. package/dist/cli/{chunk-ERFN2QY4.mjs → chunk-3DNKFH2G.mjs} +1 -1
  28. package/dist/cli/{chunk-SDCIROIS.mjs → chunk-44US3EL2.mjs} +5 -5
  29. package/dist/cli/{chunk-S4KGXRCV.js → chunk-4WT5RISA.js} +20 -20
  30. package/dist/cli/{chunk-JRSULUPQ.js → chunk-5DGR3TB6.js} +2 -2
  31. package/dist/cli/{chunk-2JKQORUX.mjs → chunk-6FFORGD2.mjs} +2 -2
  32. package/dist/cli/{chunk-QNBHQM5R.mjs → chunk-ARTGL3FM.mjs} +1 -1
  33. package/dist/cli/{chunk-WGO2DY4L.js → chunk-AVOBDFQ5.js} +11 -11
  34. package/dist/cli/{chunk-V4RAH5D6.js → chunk-DRK6FYJU.js} +26 -26
  35. package/dist/cli/{chunk-63ILLN5H.mjs → chunk-DS7Y7X26.mjs} +2 -2
  36. package/dist/cli/{chunk-CTNA5QY2.mjs → chunk-EER67G2B.mjs} +43 -28
  37. package/dist/cli/{chunk-AYM2KZN3.js → chunk-EWWWOKX2.js} +6 -6
  38. package/dist/cli/{chunk-MLP4CAY7.mjs → chunk-FJRFSBWO.mjs} +4 -4
  39. package/dist/cli/{chunk-27GJKC5Q.js → chunk-GXOQRZXG.js} +2 -2
  40. package/dist/cli/{chunk-CO3VMH33.mjs → chunk-H662SHPT.mjs} +28 -27
  41. package/dist/cli/{chunk-PKBPSMOT.js → chunk-INFLI36H.js} +43 -28
  42. package/dist/cli/{chunk-FEKJENBB.mjs → chunk-IW5QK3K6.mjs} +3 -3
  43. package/dist/cli/{chunk-VT6WJ26Y.mjs → chunk-JDAXVQV7.mjs} +1 -1
  44. package/dist/cli/{chunk-4PG4ARL2.mjs → chunk-KPKU53YO.mjs} +1 -1
  45. package/dist/cli/{chunk-IMZ56EOH.mjs → chunk-LXTSVUZN.mjs} +2 -2
  46. package/dist/cli/{chunk-KXPIFC5S.mjs → chunk-MHG3NND4.mjs} +3 -3
  47. package/dist/cli/{chunk-IHG7UAHD.mjs → chunk-MLJBCS3E.mjs} +32 -13
  48. package/dist/cli/{chunk-LXRDHISW.js → chunk-MMI2DXCW.js} +8 -8
  49. package/dist/cli/{chunk-K4X472AT.js → chunk-NA6SGG7X.js} +260 -259
  50. package/dist/cli/{chunk-M6SXXFMT.mjs → chunk-NFIZ5YED.mjs} +2 -2
  51. package/dist/cli/{chunk-OZHPZCAU.js → chunk-OMWO2JLC.js} +52 -52
  52. package/dist/cli/{chunk-TP26TAAF.mjs → chunk-OPI7UCQG.mjs} +1 -1
  53. package/dist/cli/{chunk-UQQRMCOL.js → chunk-OZLMMMZH.js} +6 -6
  54. package/dist/cli/{chunk-W74RDGRL.mjs → chunk-PH4BP6KM.mjs} +2 -2
  55. package/dist/cli/{chunk-4EV2FKBI.js → chunk-PQ4G6MKI.js} +16 -16
  56. package/dist/cli/{chunk-3CE3WGKP.mjs → chunk-QN6DG4JO.mjs} +2 -2
  57. package/dist/cli/{chunk-4CAVSRQH.mjs → chunk-QWJJMQNE.mjs} +1 -1
  58. package/dist/cli/{chunk-GEJDBXXM.js → chunk-QWRHGGUH.js} +1 -1
  59. package/dist/cli/{chunk-AD47BXN2.js → chunk-R2QWSSAG.js} +8 -8
  60. package/dist/cli/{chunk-2LVM22ZU.js → chunk-RAL75ND3.js} +2 -2
  61. package/dist/cli/{chunk-QADCFSGH.js → chunk-RDIN3NKA.js} +17 -17
  62. package/dist/cli/{chunk-AXDEH2AM.mjs → chunk-S6KG7JCR.mjs} +2 -2
  63. package/dist/cli/{chunk-BQR6UN3C.js → chunk-VUYUI35Q.js} +32 -13
  64. package/dist/cli/{chunk-HCYNAIHZ.js → chunk-W42SSVM7.js} +4 -4
  65. package/dist/cli/{chunk-VRI3ABTK.js → chunk-WJO7KIFT.js} +50 -50
  66. package/dist/cli/{chunk-PXO253DP.mjs → chunk-XSERB7H2.mjs} +1 -1
  67. package/dist/cli/{chunk-KBJP3UAU.js → chunk-YCHR57TD.js} +35 -35
  68. package/dist/cli/{chunk-OQQOXSYA.js → chunk-YHRS6XTB.js} +845 -122
  69. package/dist/cli/{chunk-7OJEYJ6G.mjs → chunk-YNT7PJND.mjs} +3 -3
  70. package/dist/cli/command-docs.js +2 -2
  71. package/dist/cli/command-docs.mjs +1 -1
  72. package/dist/cli/{csv-J7UVP4KB.mjs → csv-5KW7M6ZS.mjs} +3 -3
  73. package/dist/cli/{csv-Y4YWZSLB.js → csv-GF7VRES5.js} +12 -12
  74. package/dist/cli/{db-SVFCM6YZ.js → db-AEDXKB4F.js} +26 -26
  75. package/dist/cli/{db-CQ6NHMLG.mjs → db-NN4JQAC4.mjs} +5 -5
  76. package/dist/cli/{describe-FSDW6LTN.js → describe-5RLXW332.js} +24 -24
  77. package/dist/cli/{describe-Y65BU7ZY.mjs → describe-RX6VROHQ.mjs} +16 -16
  78. package/dist/cli/describe-core.d.mts +2 -2
  79. package/dist/cli/describe-core.d.ts +2 -2
  80. package/dist/cli/describe-core.js +4 -4
  81. package/dist/cli/describe-core.mjs +3 -3
  82. package/dist/cli/{executions-IW762OIJ.mjs → executions-EJZ34VUB.mjs} +4 -4
  83. package/dist/cli/{executions-SJIKBRHT.js → executions-PGIGFDDS.js} +6 -6
  84. package/dist/cli/{feedback-VMJIWAMT.mjs → feedback-6MWOKE7H.mjs} +3 -3
  85. package/dist/cli/{feedback-RCYSUOB3.js → feedback-L2ODMANV.js} +7 -7
  86. package/dist/cli/git-2ZDCRTBD.js +24 -0
  87. package/dist/cli/{git-Q2WY3K6X.mjs → git-456RF3AT.mjs} +4 -4
  88. package/dist/cli/index.js +135 -135
  89. package/dist/cli/index.mjs +37 -37
  90. package/dist/cli/{legacy-noops-U4YPPYXU.js → legacy-noops-MDPB3MIS.js} +7 -7
  91. package/dist/cli/{legacy-noops-JVEE2VHK.mjs → legacy-noops-ZPRBXQDE.mjs} +4 -4
  92. package/dist/cli/{monitors-BMAOQ37R.js → monitors-TXKR5XYW.js} +86 -86
  93. package/dist/cli/{monitors-AY4KQRTC.mjs → monitors-ZLP6A7FT.mjs} +6 -6
  94. package/dist/cli/{org-G5IURX74.js → org-73SQ3AT2.js} +64 -64
  95. package/dist/cli/{org-ME4X6HWH.mjs → org-YZ62BIGM.mjs} +4 -4
  96. package/dist/cli/{play-X5GSZOKZ.js → play-M75EBXEV.js} +606 -567
  97. package/dist/cli/{play-WLYU7WQL.mjs → play-VCYQKCKF.mjs} +113 -74
  98. package/dist/cli/{providers-AHEUVD3R.js → providers-GIINJPWQ.js} +7 -7
  99. package/dist/cli/{providers-2LBMNB7B.mjs → providers-JLA6LST3.mjs} +4 -4
  100. package/dist/cli/{quickstart-DBLYGHJP.mjs → quickstart-AHCU75GG.mjs} +3 -3
  101. package/dist/cli/{quickstart-DP2SKLIG.js → quickstart-HHHLYCHT.js} +5 -5
  102. package/dist/cli/{search-YKJHY3ZJ.mjs → search-5GACUIAX.mjs} +5 -5
  103. package/dist/cli/search-W2PGBXQO.js +30 -0
  104. package/dist/cli/{secrets-2P3I3OEZ.js → secrets-PI7IPCOE.js} +13 -13
  105. package/dist/cli/{secrets-ECLARBO6.mjs → secrets-S2NBKAEN.mjs} +4 -4
  106. package/dist/cli/{sessions-MC4ZCTSN.js → sessions-BK4CSRFS.js} +5 -5
  107. package/dist/cli/{sessions-3GDFID7R.mjs → sessions-IBKYGTBD.mjs} +4 -4
  108. package/dist/cli/{settings-7SVR2OVL.js → settings-2G7TUDM7.js} +75 -75
  109. package/dist/cli/{settings-RTPJXMOA.mjs → settings-JY6UN4KO.mjs} +8 -8
  110. package/dist/cli/{setup-OKAZZGAW.mjs → setup-HS5X3OSN.mjs} +7 -7
  111. package/dist/cli/{setup-4WLIJX36.js → setup-R424FIBF.js} +42 -42
  112. package/dist/cli/skills-M3RZAN4A.js +29 -0
  113. package/dist/cli/{skills-2CVL6RG5.mjs → skills-UIBUDTGN.mjs} +5 -5
  114. package/dist/cli/tools-K2GII2PA.js +44 -0
  115. package/dist/cli/{tools-KAFHP6J4.mjs → tools-SB4FREB6.mjs} +15 -15
  116. package/dist/cli/update-C2ORJRXN.js +31 -0
  117. package/dist/cli/{update-3ZV3W7I4.mjs → update-NJSUE2YU.mjs} +7 -7
  118. package/dist/cli/{workflow-GULDFFP3.js → workflow-3AZWZ4J3.js} +19 -19
  119. package/dist/cli/{workflow-DKSUNZXE.mjs → workflow-HBG76XYX.mjs} +9 -9
  120. package/dist/{client-CCWIUnk7.d.mts → client-BTUOYGID.d.mts} +10 -9
  121. package/dist/{client-vHqBm-OL.d.ts → client-C668iUhZ.d.ts} +10 -9
  122. package/dist/{compiler-manifest-lzWpbV3w.d.mts → compiler-manifest-DaFuA1ki.d.mts} +35 -32
  123. package/dist/{compiler-manifest-lzWpbV3w.d.ts → compiler-manifest-DaFuA1ki.d.ts} +35 -32
  124. package/dist/{index-CtNK-0nI.d.mts → index-0yS9ihly.d.mts} +10 -3
  125. package/dist/{index-C8Cy-YTm.d.ts → index-CRAScKPg.d.ts} +10 -3
  126. package/dist/index.d.mts +120 -150
  127. package/dist/index.d.ts +120 -150
  128. package/dist/index.js +77 -12
  129. package/dist/index.mjs +74 -9
  130. package/dist/install-integrity.json +99 -98
  131. package/dist/plays/bundle-play-file.d.mts +3 -3
  132. package/dist/plays/bundle-play-file.d.ts +3 -3
  133. package/dist/plays/bundle-play-file.mjs +1 -1
  134. package/dist/plays/play-description.d.mts +2 -2
  135. package/dist/plays/play-description.d.ts +2 -2
  136. package/dist/plays/run-request.d.mts +2 -2
  137. package/dist/plays/run-request.d.ts +2 -2
  138. package/dist/release.d.mts +1 -1
  139. package/dist/release.d.ts +1 -1
  140. package/dist/release.js +2 -2
  141. package/dist/release.mjs +1 -1
  142. package/package.json +1 -1
  143. package/dist/cli/auth-HD5AM2WM.js +0 -40
  144. package/dist/cli/git-JAW3UEGA.js +0 -24
  145. package/dist/cli/search-4K3VSDS5.js +0 -30
  146. package/dist/cli/skills-ZNSQOXO2.js +0 -29
  147. package/dist/cli/tools-W4U4FT3R.js +0 -44
  148. package/dist/cli/update-IE2FPLB5.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 _chunk27GJKC5Qjs = require('./chunk-27GJKC5Q.js');
4
+ var _chunkGXOQRZXGjs = require('./chunk-GXOQRZXG.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkBL3LY54Yjs = require('./chunk-BL3LY54Y.js');
8
+ var _chunk2U3AMRHFjs = require('./chunk-2U3AMRHF.js');
9
9
 
10
10
 
11
11
 
@@ -24,7 +24,7 @@ var _chunkBL3LY54Yjs = require('./chunk-BL3LY54Y.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkAD47BXN2js = require('./chunk-AD47BXN2.js');
27
+ var _chunkR2QWSSAGjs = require('./chunk-R2QWSSAG.js');
28
28
 
29
29
 
30
30
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
@@ -45,7 +45,7 @@ var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
45
45
 
46
46
 
47
47
 
48
- var _chunkWGO2DY4Ljs = require('./chunk-WGO2DY4L.js');
48
+ var _chunkAVOBDFQ5js = require('./chunk-AVOBDFQ5.js');
49
49
 
50
50
 
51
51
  var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
@@ -55,18 +55,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
55
55
 
56
56
 
57
57
 
58
- var _chunkS4KGXRCVjs = require('./chunk-S4KGXRCV.js');
58
+ var _chunk4WT5RISAjs = require('./chunk-4WT5RISA.js');
59
59
 
60
60
 
61
61
 
62
62
 
63
- var _chunk2LVM22ZUjs = require('./chunk-2LVM22ZU.js');
63
+ var _chunkRAL75ND3js = require('./chunk-RAL75ND3.js');
64
64
 
65
65
 
66
66
 
67
67
 
68
68
 
69
- var _chunkOZHPZCAUjs = require('./chunk-OZHPZCAU.js');
69
+ var _chunkOMWO2JLCjs = require('./chunk-OMWO2JLC.js');
70
70
 
71
71
 
72
72
 
@@ -74,12 +74,12 @@ var _chunkOZHPZCAUjs = require('./chunk-OZHPZCAU.js');
74
74
 
75
75
 
76
76
 
77
- var _chunkAYM2KZN3js = require('./chunk-AYM2KZN3.js');
77
+ var _chunkEWWWOKX2js = require('./chunk-EWWWOKX2.js');
78
78
 
79
79
 
80
80
 
81
81
 
82
- var _chunkHCYNAIHZjs = require('./chunk-HCYNAIHZ.js');
82
+ var _chunkW42SSVM7js = require('./chunk-W42SSVM7.js');
83
83
 
84
84
 
85
85
  var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
@@ -158,10 +158,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
158
158
  }
159
159
  };
160
160
  function pendingToolExecutionPath(input) {
161
- const config = _chunkHCYNAIHZjs.resolveConfig.call(void 0, );
161
+ const config = _chunkW42SSVM7js.resolveConfig.call(void 0, );
162
162
  const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkXDVT3GOMjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
163
163
  return _path.join.call(void 0,
164
- _chunkHCYNAIHZjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
164
+ _chunkW42SSVM7js.sdkCliStateDirPath.call(void 0, config.baseUrl),
165
165
  `pending-tool-execution-${fingerprint}.json`
166
166
  );
167
167
  }
@@ -276,13 +276,13 @@ var TOOL_COMMAND_TEMPLATES = {
276
276
  execute: "deepline tools execute <toolId> --input '{...}'"
277
277
  };
278
278
  function toListedTool(tool) {
279
- if (_chunkAD47BXN2js.isPlayLikeTool.call(void 0, tool)) {
279
+ if (_chunkR2QWSSAGjs.isPlayLikeTool.call(void 0, tool)) {
280
280
  return {
281
281
  ...tool,
282
282
  description: listedToolDescription(tool),
283
283
  id: tool.toolId,
284
284
  type: "play",
285
- executeCommand: _chunkAD47BXN2js.playRunCommandForTool.call(void 0, tool, tool.toolId)
285
+ executeCommand: _chunkR2QWSSAGjs.playRunCommandForTool.call(void 0, tool, tool.toolId)
286
286
  };
287
287
  }
288
288
  return {
@@ -364,16 +364,16 @@ function firstSentence(text) {
364
364
  return (match ? match[0] : clean).trim();
365
365
  }
366
366
  function requiredInputIds(tool) {
367
- const inputSchema = _chunkAD47BXN2js.recordField.call(void 0,
367
+ const inputSchema = _chunkR2QWSSAGjs.recordField.call(void 0,
368
368
  tool,
369
369
  "inputSchema",
370
370
  "input_schema"
371
371
  );
372
- return _chunkAD47BXN2js.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
372
+ return _chunkR2QWSSAGjs.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
373
373
  }
374
374
  function notConnectedSuffix(tool) {
375
375
  const record = tool;
376
- const status = _chunkAD47BXN2js.stringField.call(void 0, record, "credentialStatus", "credential_status");
376
+ const status = _chunkR2QWSSAGjs.stringField.call(void 0, record, "credentialStatus", "credential_status");
377
377
  const connected = record.connected;
378
378
  const message = toolConnectionStatusMessage({
379
379
  connected: connected === false ? false : void 0,
@@ -382,18 +382,18 @@ function notConnectedSuffix(tool) {
382
382
  return message ? ` - \u26A0 ${message}` : "";
383
383
  }
384
384
  function shortPricingHint(tool) {
385
- const pricing = _chunkAD47BXN2js.recordField.call(void 0,
385
+ const pricing = _chunkR2QWSSAGjs.recordField.call(void 0,
386
386
  tool,
387
387
  "pricing"
388
388
  );
389
389
  const credits = numberField(pricing, "creditsPerUnit", "credits_per_unit");
390
- const unit = _chunkAD47BXN2js.stringField.call(void 0, pricing, "unit");
390
+ const unit = _chunkR2QWSSAGjs.stringField.call(void 0, pricing, "unit");
391
391
  if (credits !== null) {
392
392
  return `${formatDecimal(credits)} cr/${unit || "unit"}`;
393
393
  }
394
- const summary = _chunkAD47BXN2js.stringField.call(void 0, pricing, "summary");
394
+ const summary = _chunkR2QWSSAGjs.stringField.call(void 0, pricing, "summary");
395
395
  if (summary) return summary;
396
- const displayText = _chunkAD47BXN2js.stringField.call(void 0, pricing, "displayText", "display_text");
396
+ const displayText = _chunkR2QWSSAGjs.stringField.call(void 0, pricing, "displayText", "display_text");
397
397
  return displayText || null;
398
398
  }
399
399
  function aggregateCategorySummaries(tools) {
@@ -437,13 +437,13 @@ function categoryEnumerationRender(summaries) {
437
437
  };
438
438
  }
439
439
  async function listToolCategories(emitJson, compact) {
440
- const client = new (0, _chunkWGO2DY4Ljs.DeeplineClient)();
440
+ const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
441
441
  if (!emitJson) {
442
442
  const summaries2 = (await client.listToolCategories()).map((category) => ({
443
443
  ...category,
444
444
  description: describeToolCategory(category.name)
445
445
  }));
446
- _chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
446
+ _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
447
447
  { categories: summaries2, render: categoryEnumerationRender(summaries2) },
448
448
  { json: false }
449
449
  );
@@ -453,7 +453,7 @@ async function listToolCategories(emitJson, compact) {
453
453
  const items = rawTools.map(toListedTool);
454
454
  const summaries = aggregateCategorySummaries(rawTools);
455
455
  const outputItems = compact ? items.map(compactTool) : items;
456
- _chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
456
+ _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
457
457
  {
458
458
  tools: outputItems,
459
459
  count: outputItems.length,
@@ -472,7 +472,7 @@ function unknownCategoryError(category, summaries, emitJson) {
472
472
  const known = summaries.map((item) => item.name);
473
473
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
474
474
  if (emitJson) {
475
- _chunkAYM2KZN3js.printJson.call(void 0, {
475
+ _chunkEWWWOKX2js.printJson.call(void 0, {
476
476
  ok: false,
477
477
  exitCode: 4,
478
478
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -486,13 +486,13 @@ function unknownCategoryError(category, summaries, emitJson) {
486
486
  const render = categoryEnumerationRender(summaries);
487
487
  console.error(message);
488
488
  console.error("");
489
- console.error(_chunkAYM2KZN3js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
489
+ console.error(_chunkEWWWOKX2js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
490
490
  console.error("");
491
491
  console.error(`Valid categories: ${known.join(", ")}`);
492
492
  return 4;
493
493
  }
494
494
  async function listToolsInCategory(category, emitJson) {
495
- const client = new (0, _chunkWGO2DY4Ljs.DeeplineClient)();
495
+ const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
496
496
  const { tools: rawTools, categories } = await client.listToolsInCategory(category);
497
497
  const summaries = categories.map((item) => ({
498
498
  ...item,
@@ -528,7 +528,7 @@ async function listToolsInCategory(category, emitJson) {
528
528
  }
529
529
  ]
530
530
  };
531
- _chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
531
+ _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
532
532
  {
533
533
  category,
534
534
  total: rows.length,
@@ -541,7 +541,7 @@ async function listToolsInCategory(category, emitJson) {
541
541
  return 0;
542
542
  }
543
543
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
544
- const client = new (0, _chunkWGO2DY4Ljs.DeeplineClient)();
544
+ const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
545
545
  const items = (await client.listTools({
546
546
  categories: requestedCategories.join(","),
547
547
  compact
@@ -570,7 +570,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
570
570
  ]
571
571
  };
572
572
  const outputItems = compact ? items.map(compactTool) : items;
573
- _chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
573
+ _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
574
574
  {
575
575
  tools: outputItems,
576
576
  count: outputItems.length,
@@ -589,13 +589,13 @@ async function listTools(category, options = {}) {
589
589
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
590
590
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
591
591
  const compact = options.compact !== false;
592
- const emitJson = options.json === true || _chunkAYM2KZN3js.shouldEmitJson.call(void 0, );
592
+ const emitJson = options.json === true || _chunkEWWWOKX2js.shouldEmitJson.call(void 0, );
593
593
  if (positional && flagCategories.length > 0) {
594
594
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
595
595
  if (!flagIsSameSingle) {
596
596
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
597
597
  if (emitJson) {
598
- _chunkAYM2KZN3js.printJson.call(void 0, {
598
+ _chunkEWWWOKX2js.printJson.call(void 0, {
599
599
  ok: false,
600
600
  exitCode: 2,
601
601
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -622,7 +622,7 @@ async function grepTools(queryInput, options = {}) {
622
622
  console.error("Usage: deepline tools grep <query> [--json]");
623
623
  return 1;
624
624
  }
625
- const client = new (0, _chunkWGO2DY4Ljs.DeeplineClient)();
625
+ const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
626
626
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
627
627
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
628
628
  const jsonOutput = options.json === true;
@@ -646,7 +646,7 @@ async function grepTools(queryInput, options = {}) {
646
646
  query,
647
647
  mode
648
648
  }) : null;
649
- _chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
649
+ _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
650
650
  {
651
651
  tools: outputTools,
652
652
  count: outputTools.length,
@@ -664,7 +664,7 @@ async function grepTools(queryInput, options = {}) {
664
664
  } : {},
665
665
  commandTemplates: TOOL_COMMAND_TEMPLATES
666
666
  },
667
- { json: options.json || _chunkAYM2KZN3js.shouldEmitJson.call(void 0, ) }
667
+ { json: options.json || _chunkEWWWOKX2js.shouldEmitJson.call(void 0, ) }
668
668
  );
669
669
  return 0;
670
670
  }
@@ -719,8 +719,8 @@ function printPlayAliasToolError(toolId, play) {
719
719
  console.error(playAliasToolErrorMessage(toolId, play));
720
720
  }
721
721
  function playLikeToolExecuteErrorMessage(toolId, tool) {
722
- const playReference = tool ? _chunkAD47BXN2js.playReferenceForTool.call(void 0, tool) : null;
723
- const nextStep = playReference ? `Use: deepline plays run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunkAD47BXN2js.playSearchCommandForToolId.call(void 0, toolId)}`;
722
+ const playReference = tool ? _chunkR2QWSSAGjs.playReferenceForTool.call(void 0, tool) : null;
723
+ const nextStep = playReference ? `Use: deepline plays run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunkR2QWSSAGjs.playSearchCommandForToolId.call(void 0, toolId)}`;
724
724
  return [
725
725
  `${toolId} is a workflow/play entry, not an atomic provider tool.`,
726
726
  nextStep,
@@ -781,7 +781,7 @@ Output:
781
781
  "--credentials-file must contain a nonempty JSON object of string credential values."
782
782
  );
783
783
  }
784
- const result = await new (0, _chunkWGO2DY4Ljs.DeeplineClient)().setIntegrationCredentials(
784
+ const result = await new (0, _chunkAVOBDFQ5js.DeeplineClient)().setIntegrationCredentials(
785
785
  provider,
786
786
  credentials
787
787
  );
@@ -791,7 +791,7 @@ Output:
791
791
  );
792
792
  }
793
793
  const confirmation = { provider, credential_saved: true };
794
- if (_chunkAYM2KZN3js.shouldEmitJson.call(void 0, options.json))
794
+ if (_chunkEWWWOKX2js.shouldEmitJson.call(void 0, options.json))
795
795
  console.log(JSON.stringify(confirmation));
796
796
  else
797
797
  console.log(
@@ -831,7 +831,7 @@ Examples:
831
831
  json: Boolean(options.json)
832
832
  });
833
833
  });
834
- _chunkBL3LY54Yjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
834
+ _chunk2U3AMRHFjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
835
835
  tools.command("grep <query>").description(
836
836
  "Regex grep over tool ids, descriptions, categories, and input fields."
837
837
  ).addHelpText(
@@ -866,7 +866,7 @@ Examples:
866
866
  });
867
867
  const addToolMetadataCommand = (command) => {
868
868
  let compatibilityMetadata;
869
- _chunkS4KGXRCVjs.registerCompatibilityCatalog.call(void 0, command, () => ({
869
+ _chunk4WT5RISAjs.registerCompatibilityCatalog.call(void 0, command, () => ({
870
870
  toolId: command.args[0],
871
871
  acceptMetadata: (metadata) => {
872
872
  compatibilityMetadata = metadata;
@@ -878,7 +878,7 @@ Examples:
878
878
  Notes:
879
879
  Shows the compact agent contract by default: what the tool does, cost,
880
880
  required inputs, play getters, input and full Deepline response examples,
881
- and a ctx.tools.execute snippet. Tool responses live at toolResponse.rawV2;
881
+ and a deepline.tools.execute snippet. Tool responses live at toolResponse.rawV2;
882
882
  preserve the nesting shown in the tool's example. Schemas and examples are
883
883
  separate describe fields.
884
884
  get is accepted as a compatibility alias for describe.
@@ -936,7 +936,7 @@ Examples:
936
936
  process.exitCode = await narrowView();
937
937
  return;
938
938
  }
939
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FSDW6LTN.js")));
939
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5RLXW332.js")));
940
940
  process.exitCode = await describeAnything(
941
941
  toolId,
942
942
  {
@@ -951,7 +951,7 @@ Examples:
951
951
  });
952
952
  };
953
953
  addToolMetadataCommand(
954
- _chunk27GJKC5Qjs.addDescribeOptions.call(void 0,
954
+ _chunkGXOQRZXGjs.addDescribeOptions.call(void 0,
955
955
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
956
956
  { json: false }
957
957
  )
@@ -1020,7 +1020,7 @@ Examples:
1020
1020
  options,
1021
1021
  void 0,
1022
1022
  true,
1023
- _chunk2LVM22ZUjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1023
+ _chunkRAL75ND3js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1024
1024
  );
1025
1025
  }
1026
1026
  );
@@ -1028,13 +1028,13 @@ Examples:
1028
1028
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1029
1029
  let metadata;
1030
1030
  const startedAt = performance.now();
1031
- const baseUrl = _chunkHCYNAIHZjs.resolveConfig.call(void 0, ).baseUrl;
1032
- _chunk2LVM22ZUjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1033
- const result = _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
1031
+ const baseUrl = _chunkW42SSVM7js.resolveConfig.call(void 0, ).baseUrl;
1032
+ _chunkRAL75ND3js.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1033
+ const result = _chunk4WT5RISAjs.runToolExecuteStage.call(void 0,
1034
1034
  "SDK compatibility",
1035
- () => _chunkOZHPZCAUjs.checkSdkCompatibility.call(void 0, baseUrl, {
1035
+ () => _chunkOMWO2JLCjs.checkSdkCompatibility.call(void 0, baseUrl, {
1036
1036
  command: "tools execute",
1037
- skillsVersion: _chunkHCYNAIHZjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1037
+ skillsVersion: _chunkW42SSVM7js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1038
1038
  persistCache: false,
1039
1039
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1040
1040
  catalog: {
@@ -1048,7 +1048,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1048
1048
  })
1049
1049
  ).then(
1050
1050
  (compatibility) => {
1051
- _chunk2LVM22ZUjs.recordCliTrace.call(void 0, {
1051
+ _chunkRAL75ND3js.recordCliTrace.call(void 0, {
1052
1052
  phase: "cli.tool_execute_compatibility_ready",
1053
1053
  ms: performance.now() - startedAt,
1054
1054
  ok: compatibility.error === null,
@@ -1057,7 +1057,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1057
1057
  return compatibility;
1058
1058
  },
1059
1059
  (error) => {
1060
- _chunk2LVM22ZUjs.recordCliTrace.call(void 0, {
1060
+ _chunkRAL75ND3js.recordCliTrace.call(void 0, {
1061
1061
  phase: "cli.tool_execute_compatibility_ready",
1062
1062
  ms: performance.now() - startedAt,
1063
1063
  ok: false
@@ -1072,7 +1072,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1072
1072
  console.error("Usage: deepline tools describe <toolId> [--json]");
1073
1073
  return 1;
1074
1074
  }
1075
- const client = new (0, _chunkWGO2DY4Ljs.DeeplineClient)();
1075
+ const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
1076
1076
  let tool;
1077
1077
  try {
1078
1078
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1126,12 +1126,12 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1126
1126
  const lines = toolPricingOnlyLines(tool, toolId);
1127
1127
  if (inferenceQuote)
1128
1128
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1129
- _chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
1129
+ _chunkEWWWOKX2js.printCommandEnvelope.call(void 0,
1130
1130
  {
1131
1131
  toolId: String(tool.toolId || toolId),
1132
1132
  cost: _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1133
1133
  ...modelDescription ? { modelOptions: modelDescription } : {},
1134
- ..._chunkAD47BXN2js.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkAD47BXN2js.recordField.call(void 0, tool, "pricing") } : {},
1134
+ ..._chunkR2QWSSAGjs.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkR2QWSSAGjs.recordField.call(void 0, tool, "pricing") } : {},
1135
1135
  ...inferenceQuote ? { inferenceQuote } : {}
1136
1136
  },
1137
1137
  {
@@ -1142,14 +1142,14 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1142
1142
  );
1143
1143
  return 0;
1144
1144
  }
1145
- if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunkAD47BXN2js.isMonitorTypeTool.call(void 0, tool) && !_chunkAD47BXN2js.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1146
- const contract = _chunkAD47BXN2js.toolContractJsonForDescribe.call(void 0,
1145
+ if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunkR2QWSSAGjs.isMonitorTypeTool.call(void 0, tool) && !_chunkR2QWSSAGjs.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1146
+ const contract = _chunkR2QWSSAGjs.toolContractJsonForDescribe.call(void 0,
1147
1147
  tool,
1148
1148
  toolId,
1149
1149
  void 0,
1150
1150
  seedToolListScript
1151
1151
  );
1152
- _chunkAYM2KZN3js.printCompactJson.call(void 0, {
1152
+ _chunkEWWWOKX2js.printCompactJson.call(void 0, {
1153
1153
  toolId: contract.toolId,
1154
1154
  ...options.schemaOnly ? {
1155
1155
  inputSchema: contract.inputSchema,
@@ -1172,8 +1172,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1172
1172
  return 0;
1173
1173
  }
1174
1174
  if (options.contractJson) {
1175
- _chunkAYM2KZN3js.printCompactJson.call(void 0, {
1176
- ..._chunkAD47BXN2js.toolContractJsonForDescribe.call(void 0,
1175
+ _chunkEWWWOKX2js.printCompactJson.call(void 0, {
1176
+ ..._chunkR2QWSSAGjs.toolContractJsonForDescribe.call(void 0,
1177
1177
  tool,
1178
1178
  toolId,
1179
1179
  void 0,
@@ -1186,8 +1186,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1186
1186
  }
1187
1187
  const emitJson = options.json === true;
1188
1188
  if (emitJson) {
1189
- _chunkAYM2KZN3js.printCompactJson.call(void 0, {
1190
- ..._chunkAD47BXN2js.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1189
+ _chunkEWWWOKX2js.printCompactJson.call(void 0, {
1190
+ ..._chunkR2QWSSAGjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1191
1191
  ...modelDescription ? { modelOptions: modelDescription } : {},
1192
1192
  ...inferenceQuote ? { inferenceQuote } : {}
1193
1193
  });
@@ -1212,7 +1212,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1212
1212
  printCompactToolContract(tool, toolId);
1213
1213
  if (modelDescription) {
1214
1214
  process.stdout.write(`
1215
- ${_chunkAD47BXN2js.formatModelDescription.call(void 0, modelDescription)}`);
1215
+ ${_chunkR2QWSSAGjs.formatModelDescription.call(void 0, modelDescription)}`);
1216
1216
  }
1217
1217
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1218
1218
  return 0;
@@ -1220,7 +1220,7 @@ ${_chunkAD47BXN2js.formatModelDescription.call(void 0, modelDescription)}`);
1220
1220
  printCompactToolContract(tool, toolId);
1221
1221
  if (modelDescription) {
1222
1222
  process.stdout.write(`
1223
- ${_chunkAD47BXN2js.formatModelDescription.call(void 0, modelDescription)}`);
1223
+ ${_chunkR2QWSSAGjs.formatModelDescription.call(void 0, modelDescription)}`);
1224
1224
  }
1225
1225
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1226
1226
  return 0;
@@ -1237,10 +1237,10 @@ function printInferenceQuoteSummary(quote) {
1237
1237
  for (const line of inferenceQuoteSummaryLines(quote)) console.log(line);
1238
1238
  }
1239
1239
  function printMonitorTypeFilters(tool) {
1240
- const schema = _chunkAD47BXN2js.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1241
- const properties = _chunkAD47BXN2js.recordField.call(void 0, schema, "properties");
1240
+ const schema = _chunkR2QWSSAGjs.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1241
+ const properties = _chunkR2QWSSAGjs.recordField.call(void 0, schema, "properties");
1242
1242
  const required = new Set(
1243
- _chunkAD47BXN2js.arrayField.call(void 0, schema, "required").filter(
1243
+ _chunkR2QWSSAGjs.arrayField.call(void 0, schema, "required").filter(
1244
1244
  (v) => typeof v === "string"
1245
1245
  )
1246
1246
  );
@@ -1251,24 +1251,24 @@ function printMonitorTypeFilters(tool) {
1251
1251
  }
1252
1252
  console.log("Deploy filters (set in the monitor payload):");
1253
1253
  for (const name of names) {
1254
- const field = _chunkAD47BXN2js.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1254
+ const field = _chunkR2QWSSAGjs.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1255
1255
  const star = required.has(name) ? "*" : "";
1256
- const enumVals = _chunkAD47BXN2js.arrayField.call(void 0, field, "enum").filter(
1256
+ const enumVals = _chunkR2QWSSAGjs.arrayField.call(void 0, field, "enum").filter(
1257
1257
  (v) => typeof v === "string"
1258
1258
  );
1259
- const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunkAD47BXN2js.stringField.call(void 0, field, "type") || "string";
1260
- const desc = _chunkAD47BXN2js.stringField.call(void 0, field, "description");
1259
+ const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunkR2QWSSAGjs.stringField.call(void 0, field, "type") || "string";
1260
+ const desc = _chunkR2QWSSAGjs.stringField.call(void 0, field, "description");
1261
1261
  console.log(`- ${name}${star}: ${type}${desc ? ` - ${desc}` : ""}`);
1262
1262
  }
1263
1263
  }
1264
1264
  function printMonitorTypeFilterExamples(tool) {
1265
- const documentation = _chunkAD47BXN2js.recordField.call(void 0, tool, "documentation");
1266
- const fields = _chunkAD47BXN2js.recordField.call(void 0, documentation, "fields");
1265
+ const documentation = _chunkR2QWSSAGjs.recordField.call(void 0, tool, "documentation");
1266
+ const fields = _chunkR2QWSSAGjs.recordField.call(void 0, documentation, "fields");
1267
1267
  const examples = Object.entries(fields).flatMap(([name, rawField]) => {
1268
- const grammar = _chunkAD47BXN2js.recordField.call(void 0, _chunkAD47BXN2js.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1269
- const example = _chunkAD47BXN2js.stringField.call(void 0, grammar, "example");
1268
+ const grammar = _chunkR2QWSSAGjs.recordField.call(void 0, _chunkR2QWSSAGjs.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1269
+ const example = _chunkR2QWSSAGjs.stringField.call(void 0, grammar, "example");
1270
1270
  const values = [
1271
- ..._chunkAD47BXN2js.arrayField.call(void 0, grammar, "examples").filter(
1271
+ ..._chunkR2QWSSAGjs.arrayField.call(void 0, grammar, "examples").filter(
1272
1272
  (value) => typeof value === "string" && Boolean(value)
1273
1273
  ),
1274
1274
  ...example ? [example] : []
@@ -1283,21 +1283,21 @@ function printMonitorTypeFilterExamples(tool) {
1283
1283
  }
1284
1284
  }
1285
1285
  function printMonitorTypeStreams(tool) {
1286
- const streams = _chunkAD47BXN2js.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1287
- _chunkAD47BXN2js.isRecord
1286
+ const streams = _chunkR2QWSSAGjs.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1287
+ _chunkR2QWSSAGjs.isRecord
1288
1288
  );
1289
1289
  if (!streams.length) return;
1290
1290
  console.log("");
1291
1291
  console.log("Filter columns (a play's sqlListeners.where, per stream):");
1292
1292
  for (const stream of streams) {
1293
- const name = _chunkAD47BXN2js.stringField.call(void 0, stream, "stream");
1294
- const cols = _chunkAD47BXN2js.arrayField.call(void 0, stream, "columns").filter(_chunkAD47BXN2js.isRecord).map((col) => _chunkAD47BXN2js.stringField.call(void 0, col, "name")).filter(Boolean);
1293
+ const name = _chunkR2QWSSAGjs.stringField.call(void 0, stream, "stream");
1294
+ const cols = _chunkR2QWSSAGjs.arrayField.call(void 0, stream, "columns").filter(_chunkR2QWSSAGjs.isRecord).map((col) => _chunkR2QWSSAGjs.stringField.call(void 0, col, "name")).filter(Boolean);
1295
1295
  console.log(`- ${name}: ${cols.join(", ")}`);
1296
1296
  }
1297
1297
  }
1298
1298
  function monitorTypePricingLines(tool) {
1299
- const pricing = _chunkAD47BXN2js.recordField.call(void 0, tool, "pricing");
1300
- const byType = _chunkAD47BXN2js.recordField.call(void 0,
1299
+ const pricing = _chunkR2QWSSAGjs.recordField.call(void 0, tool, "pricing");
1300
+ const byType = _chunkR2QWSSAGjs.recordField.call(void 0,
1301
1301
  pricing,
1302
1302
  "pricing_by_radar_type",
1303
1303
  "pricingByRadarType"
@@ -1308,9 +1308,9 @@ function monitorTypePricingLines(tool) {
1308
1308
  }
1309
1309
  const lines = ["Pricing (Deepline credits per accepted event):"];
1310
1310
  for (const key of keys) {
1311
- const entry = _chunkAD47BXN2js.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1311
+ const entry = _chunkR2QWSSAGjs.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1312
1312
  const credits = numberField(entry, "deepline_credits", "deeplineCredits");
1313
- const display = _chunkAD47BXN2js.stringField.call(void 0, entry, "display");
1313
+ const display = _chunkR2QWSSAGjs.stringField.call(void 0, entry, "display");
1314
1314
  const shown = display || (credits !== null ? `${formatDecimal(credits)} credits/event` : "not listed");
1315
1315
  lines.push(`- ${key}: ${shown}`);
1316
1316
  }
@@ -1320,20 +1320,20 @@ function printMonitorTypePricing(tool) {
1320
1320
  for (const line of monitorTypePricingLines(tool)) console.log(line);
1321
1321
  }
1322
1322
  function printMonitorTypeDeploy(tool) {
1323
- const deploy = _chunkAD47BXN2js.recordField.call(void 0, tool, "deploy");
1324
- const toolId = _chunkAD47BXN2js.stringField.call(void 0, tool, "toolId");
1325
- const example = _chunkAD47BXN2js.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
1323
+ const deploy = _chunkR2QWSSAGjs.recordField.call(void 0, tool, "deploy");
1324
+ const toolId = _chunkR2QWSSAGjs.stringField.call(void 0, tool, "toolId");
1325
+ const example = _chunkR2QWSSAGjs.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
1326
1326
  console.log("Deploy (a monitor type is deployed, not executed):");
1327
1327
  console.log(` ${example}`);
1328
1328
  }
1329
1329
  function printMonitorTypeContract(tool, requestedToolId) {
1330
- const toolId = _chunkAD47BXN2js.stringField.call(void 0, tool, "toolId") || requestedToolId;
1330
+ const toolId = _chunkR2QWSSAGjs.stringField.call(void 0, tool, "toolId") || requestedToolId;
1331
1331
  console.log(toolId);
1332
- const displayName = _chunkAD47BXN2js.stringField.call(void 0, tool, "displayName");
1332
+ const displayName = _chunkR2QWSSAGjs.stringField.call(void 0, tool, "displayName");
1333
1333
  if (displayName) console.log(`Best for: ${displayName}`);
1334
- const description = _chunkAD47BXN2js.stringField.call(void 0, tool, "description");
1334
+ const description = _chunkR2QWSSAGjs.stringField.call(void 0, tool, "description");
1335
1335
  if (description) console.log(`Description: ${description}`);
1336
- const categories = _chunkAD47BXN2js.arrayField.call(void 0, tool, "categories").filter(
1336
+ const categories = _chunkR2QWSSAGjs.arrayField.call(void 0, tool, "categories").filter(
1337
1337
  (v) => typeof v === "string"
1338
1338
  );
1339
1339
  if (categories.length) console.log(`Tags: ${categories.join(", ")}`);
@@ -1353,31 +1353,31 @@ function printMonitorTypeContract(tool, requestedToolId) {
1353
1353
  console.log(`More: deepline describe ${toolId}`);
1354
1354
  }
1355
1355
  function toolGuidanceLines(guidance) {
1356
- const record = _chunkAD47BXN2js.isRecord.call(void 0, guidance) ? guidance : {};
1357
- const toolGuidance = _chunkAD47BXN2js.stringField.call(void 0, record, "tool");
1358
- const providerGuidance = _chunkAD47BXN2js.stringField.call(void 0, record, "provider");
1356
+ const record = _chunkR2QWSSAGjs.isRecord.call(void 0, guidance) ? guidance : {};
1357
+ const toolGuidance = _chunkR2QWSSAGjs.stringField.call(void 0, record, "tool");
1358
+ const providerGuidance = _chunkR2QWSSAGjs.stringField.call(void 0, record, "provider");
1359
1359
  return [
1360
1360
  ...toolGuidance ? [`- This tool: ${toolGuidance}`] : [],
1361
1361
  ...providerGuidance ? [`- Provider: ${providerGuidance}`] : []
1362
1362
  ];
1363
1363
  }
1364
1364
  function printCompactToolContract(tool, requestedToolId) {
1365
- if (_chunkAD47BXN2js.isMonitorTypeTool.call(void 0, tool)) {
1365
+ if (_chunkR2QWSSAGjs.isMonitorTypeTool.call(void 0, tool)) {
1366
1366
  printMonitorTypeContract(tool, requestedToolId);
1367
1367
  return;
1368
1368
  }
1369
- const contract = _chunkAD47BXN2js.toolContractJsonForDescribe.call(void 0,
1369
+ const contract = _chunkR2QWSSAGjs.toolContractJsonForDescribe.call(void 0,
1370
1370
  tool,
1371
1371
  requestedToolId,
1372
1372
  void 0,
1373
1373
  seedToolListScript
1374
1374
  );
1375
- const cost = _chunkAD47BXN2js.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1376
- const getters = _chunkAD47BXN2js.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1375
+ const cost = _chunkR2QWSSAGjs.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1376
+ const getters = _chunkR2QWSSAGjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1377
1377
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1378
1378
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1379
- const inputFields = _chunkAD47BXN2js.recursiveToolInputFieldsForDisplay.call(void 0,
1380
- _chunkAD47BXN2js.recordField.call(void 0, contract, "inputSchema")
1379
+ const inputFields = _chunkR2QWSSAGjs.recursiveToolInputFieldsForDisplay.call(void 0,
1380
+ _chunkR2QWSSAGjs.recordField.call(void 0, contract, "inputSchema")
1381
1381
  );
1382
1382
  console.log(String(contract.toolId));
1383
1383
  if (contract.displayName) console.log(`Best for: ${contract.displayName}`);
@@ -1394,9 +1394,9 @@ function printCompactToolContract(tool, requestedToolId) {
1394
1394
  printToolOutputArrayShape(contract);
1395
1395
  printToolExecutionHints(contract);
1396
1396
  if (contract.deprecated === true) {
1397
- const deprecation = _chunkAD47BXN2js.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1398
- const message = _chunkAD47BXN2js.stringField.call(void 0, deprecation, "message");
1399
- const replacementToolId = _chunkAD47BXN2js.stringField.call(void 0,
1397
+ const deprecation = _chunkR2QWSSAGjs.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1398
+ const message = _chunkR2QWSSAGjs.stringField.call(void 0, deprecation, "message");
1399
+ const replacementToolId = _chunkR2QWSSAGjs.stringField.call(void 0,
1400
1400
  deprecation,
1401
1401
  "replacementToolId",
1402
1402
  "replacement_tool_id"
@@ -1421,12 +1421,12 @@ function printCompactToolContract(tool, requestedToolId) {
1421
1421
  console.log("");
1422
1422
  console.log("Inputs:");
1423
1423
  for (const field of inputFields) {
1424
- if (!_chunkAD47BXN2js.isRecord.call(void 0, field)) continue;
1425
- const name = _chunkAD47BXN2js.stringField.call(void 0, field, "name");
1424
+ if (!_chunkR2QWSSAGjs.isRecord.call(void 0, field)) continue;
1425
+ const name = _chunkR2QWSSAGjs.stringField.call(void 0, field, "name");
1426
1426
  if (!name) continue;
1427
1427
  const required = field.required ? "*" : "";
1428
- const type = _chunkAD47BXN2js.stringField.call(void 0, field, "type") || "unknown";
1429
- const description = _chunkAD47BXN2js.stringField.call(void 0, field, "description");
1428
+ const type = _chunkR2QWSSAGjs.stringField.call(void 0, field, "type") || "unknown";
1429
+ const description = _chunkR2QWSSAGjs.stringField.call(void 0, field, "description");
1430
1430
  const enumValues = Array.isArray(field.enum) ? field.enum : [];
1431
1431
  const enumSuffix = enumValues.length ? ` enum=${enumValues.map(String).join("|")}` : "";
1432
1432
  const itemBoundsSuffix = arrayItemBoundsSuffix(field);
@@ -1441,8 +1441,8 @@ function printCompactToolContract(tool, requestedToolId) {
1441
1441
  }
1442
1442
  console.log("");
1443
1443
  printToolExamplesOnly(tool, requestedToolId);
1444
- const starterScript = _chunkAD47BXN2js.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1445
- const starterPath = _chunkAD47BXN2js.stringField.call(void 0, starterScript, "path");
1444
+ const starterScript = _chunkR2QWSSAGjs.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1445
+ const starterPath = _chunkR2QWSSAGjs.stringField.call(void 0, starterScript, "path");
1446
1446
  if (starterPath) {
1447
1447
  console.log("");
1448
1448
  console.log(`Starter script: ${starterPath}`);
@@ -1453,16 +1453,16 @@ function printCompactToolContract(tool, requestedToolId) {
1453
1453
  console.log("Getters:");
1454
1454
  if (listGetters.length) console.log(listGetterHeading());
1455
1455
  for (const entry of listGetters) {
1456
- if (_chunkAD47BXN2js.isRecord.call(void 0, entry))
1456
+ if (_chunkR2QWSSAGjs.isRecord.call(void 0, entry))
1457
1457
  console.log(
1458
- `- ${_chunkAD47BXN2js.stringField.call(void 0, entry, "name")}: ${_chunkAD47BXN2js.playResultExpression.call(void 0, entry)}`
1458
+ `- ${_chunkR2QWSSAGjs.stringField.call(void 0, entry, "name")}: ${_chunkR2QWSSAGjs.playResultExpression.call(void 0, entry)}`
1459
1459
  );
1460
1460
  }
1461
1461
  if (valueGetters.length) console.log("Values:");
1462
1462
  for (const entry of valueGetters) {
1463
- if (_chunkAD47BXN2js.isRecord.call(void 0, entry))
1463
+ if (_chunkR2QWSSAGjs.isRecord.call(void 0, entry))
1464
1464
  console.log(
1465
- `- ${_chunkAD47BXN2js.stringField.call(void 0, entry, "name")}: ${_chunkAD47BXN2js.playResultExpression.call(void 0, entry)}`
1465
+ `- ${_chunkR2QWSSAGjs.stringField.call(void 0, entry, "name")}: ${_chunkR2QWSSAGjs.playResultExpression.call(void 0, entry)}`
1466
1466
  );
1467
1467
  }
1468
1468
  }
@@ -1473,19 +1473,19 @@ function printCompactToolContract(tool, requestedToolId) {
1473
1473
  console.log(`More: deepline describe ${contract.toolId}`);
1474
1474
  }
1475
1475
  function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1476
- if (_chunkAD47BXN2js.isMonitorTypeTool.call(void 0, tool)) {
1476
+ if (_chunkR2QWSSAGjs.isMonitorTypeTool.call(void 0, tool)) {
1477
1477
  return monitorTypePricingLines(tool);
1478
1478
  }
1479
1479
  const toolId = String(tool.toolId || requestedToolId);
1480
1480
  const cost = _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1481
- const pricingModel = _chunkAD47BXN2js.stringField.call(void 0, cost, "pricingModel") || "unknown";
1482
- const billing = _chunkAD47BXN2js.stringField.call(void 0, cost, "billingSourceLabel") || _chunkAD47BXN2js.stringField.call(void 0, cost, "billingSource") || _chunkAD47BXN2js.stringField.call(void 0, cost, "billingMode") || "unknown";
1483
- const explicitUnit = _chunkAD47BXN2js.stringField.call(void 0, cost, "unit");
1481
+ const pricingModel = _chunkR2QWSSAGjs.stringField.call(void 0, cost, "pricingModel") || "unknown";
1482
+ const billing = _chunkR2QWSSAGjs.stringField.call(void 0, cost, "billingSourceLabel") || _chunkR2QWSSAGjs.stringField.call(void 0, cost, "billingSource") || _chunkR2QWSSAGjs.stringField.call(void 0, cost, "billingMode") || "unknown";
1483
+ const explicitUnit = _chunkR2QWSSAGjs.stringField.call(void 0, cost, "unit");
1484
1484
  const unit = explicitUnit || (pricingModel === "per_page" ? "page" : pricingModel === "per_result" ? "result" : pricingModel === "fixed" ? "call" : pricingModel.replace(/^per_/, "") || "unit");
1485
1485
  const credits = numberField(cost, "deeplineCreditsPerPricingUnit");
1486
1486
  const usd = numberField(cost, "deeplineUsdPerPricingUnit");
1487
- const displayText = _chunkAD47BXN2js.stringField.call(void 0, cost, "displayText");
1488
- const summary = _chunkAD47BXN2js.stringField.call(void 0, cost, "summary");
1487
+ const displayText = _chunkR2QWSSAGjs.stringField.call(void 0, cost, "displayText");
1488
+ const summary = _chunkR2QWSSAGjs.stringField.call(void 0, cost, "summary");
1489
1489
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1490
1490
  return [
1491
1491
  `${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
@@ -1502,19 +1502,19 @@ function printToolPricingOnly(tool, requestedToolId, options = {}) {
1502
1502
  console.log(line);
1503
1503
  }
1504
1504
  function printToolSchemaOnly(tool, requestedToolId) {
1505
- if (_chunkAD47BXN2js.isMonitorTypeTool.call(void 0, tool)) {
1505
+ if (_chunkR2QWSSAGjs.isMonitorTypeTool.call(void 0, tool)) {
1506
1506
  printMonitorTypeFilters(tool);
1507
1507
  printMonitorTypeStreams(tool);
1508
1508
  return;
1509
1509
  }
1510
- const contract = _chunkAD47BXN2js.toolContractJsonForDescribe.call(void 0,
1510
+ const contract = _chunkR2QWSSAGjs.toolContractJsonForDescribe.call(void 0,
1511
1511
  tool,
1512
1512
  requestedToolId,
1513
1513
  void 0,
1514
1514
  seedToolListScript
1515
1515
  );
1516
- const inputFields = _chunkAD47BXN2js.recursiveToolInputFieldsForDisplay.call(void 0,
1517
- _chunkAD47BXN2js.recordField.call(void 0, contract, "inputSchema")
1516
+ const inputFields = _chunkR2QWSSAGjs.recursiveToolInputFieldsForDisplay.call(void 0,
1517
+ _chunkR2QWSSAGjs.recordField.call(void 0, contract, "inputSchema")
1518
1518
  );
1519
1519
  console.log(`Schema: ${contract.toolId}`);
1520
1520
  if (!inputFields.length) {
@@ -1541,27 +1541,27 @@ function printToolSchemaOnly(tool, requestedToolId) {
1541
1541
  }
1542
1542
  printToolOutputArrayShape(contract);
1543
1543
  const declaredSchema = declaredToolJsonSchema(
1544
- _chunkAD47BXN2js.recordField.call(void 0, contract, "inputSchema")
1544
+ _chunkR2QWSSAGjs.recordField.call(void 0, contract, "inputSchema")
1545
1545
  );
1546
1546
  if (declaredSchema) {
1547
1547
  console.log("Declared input JSON Schema:");
1548
1548
  console.log(JSON.stringify(declaredSchema, null, 2));
1549
1549
  }
1550
- if (_chunkAD47BXN2js.isRecord.call(void 0, contract.responseSchema)) {
1550
+ if (_chunkR2QWSSAGjs.isRecord.call(void 0, contract.responseSchema)) {
1551
1551
  console.log("Deepline execution response JSON Schema:");
1552
1552
  console.log(JSON.stringify(contract.responseSchema, null, 2));
1553
1553
  }
1554
1554
  }
1555
1555
  function printToolExamplesOnly(tool, requestedToolId) {
1556
- if (_chunkAD47BXN2js.isMonitorTypeTool.call(void 0, tool)) {
1556
+ if (_chunkR2QWSSAGjs.isMonitorTypeTool.call(void 0, tool)) {
1557
1557
  printMonitorTypeDeploy(tool);
1558
1558
  return;
1559
1559
  }
1560
- if (_chunkAD47BXN2js.isPlayLikeTool.call(void 0, tool)) {
1560
+ if (_chunkR2QWSSAGjs.isPlayLikeTool.call(void 0, tool)) {
1561
1561
  printPlayLikeToolUsage(tool, requestedToolId);
1562
1562
  return;
1563
1563
  }
1564
- const contract = _chunkAD47BXN2js.toolContractJsonForDescribe.call(void 0,
1564
+ const contract = _chunkR2QWSSAGjs.toolContractJsonForDescribe.call(void 0,
1565
1565
  tool,
1566
1566
  requestedToolId,
1567
1567
  void 0,
@@ -1569,14 +1569,14 @@ function printToolExamplesOnly(tool, requestedToolId) {
1569
1569
  );
1570
1570
  const toolId = String(contract.toolId);
1571
1571
  const inputFields = Array.isArray(contract.inputFields) ? contract.inputFields : [];
1572
- const examples = _chunkAD47BXN2js.arrayField.call(void 0, tool, "examples").filter(_chunkAD47BXN2js.isRecord);
1572
+ const examples = _chunkR2QWSSAGjs.arrayField.call(void 0, tool, "examples").filter(_chunkR2QWSSAGjs.isRecord);
1573
1573
  const firstExample = examples[0];
1574
- const sampleInput = firstExample && _chunkAD47BXN2js.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunkAD47BXN2js.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunkAD47BXN2js.samplePayloadForInputFields.call(void 0, inputFields)));
1574
+ const sampleInput = firstExample && _chunkR2QWSSAGjs.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunkR2QWSSAGjs.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunkR2QWSSAGjs.samplePayloadForInputFields.call(void 0, inputFields)));
1575
1575
  console.log("Example input payload:");
1576
1576
  console.log(JSON.stringify(sampleInput, null, 2));
1577
1577
  console.log(`Use in a play:`);
1578
1578
  console.log("```ts");
1579
- console.log("const result = await ctx.tools.execute({");
1579
+ console.log("const result = await deepline.tools.execute({");
1580
1580
  console.log(" staleAfterSeconds: 0,");
1581
1581
  console.log(` id: '${stableStepIdForTool(toolId)}',`);
1582
1582
  console.log(` tool: '${toolId}',`);
@@ -1585,32 +1585,32 @@ function printToolExamplesOnly(tool, requestedToolId) {
1585
1585
  );
1586
1586
  console.log("});");
1587
1587
  console.log("const response = result.toolResponse.rawV2;");
1588
- const getters = _chunkAD47BXN2js.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1588
+ const getters = _chunkR2QWSSAGjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1589
1589
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1590
1590
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1591
- const firstGetter = valueGetters.find(_chunkAD47BXN2js.isRecord);
1591
+ const firstGetter = valueGetters.find(_chunkR2QWSSAGjs.isRecord);
1592
1592
  if (firstGetter) {
1593
- const name = _chunkAD47BXN2js.stringField.call(void 0, firstGetter, "name") || "value";
1594
- const expression = _chunkAD47BXN2js.stringField.call(void 0, firstGetter, "expression");
1593
+ const name = _chunkR2QWSSAGjs.stringField.call(void 0, firstGetter, "name") || "value";
1594
+ const expression = _chunkR2QWSSAGjs.stringField.call(void 0, firstGetter, "expression");
1595
1595
  if (expression)
1596
1596
  console.log(
1597
1597
  `const ${safeIdentifier(name)} = ${expression.replace(/^toolExecutionResult\./, "result.")};`
1598
1598
  );
1599
1599
  }
1600
1600
  const arrayNames = new Set(
1601
- _chunkAD47BXN2js.recursiveToolInputFieldsForDisplay.call(void 0,
1602
- _chunkAD47BXN2js.recordField.call(void 0, tool, "outputSchema", "output_schema")
1601
+ _chunkR2QWSSAGjs.recursiveToolInputFieldsForDisplay.call(void 0,
1602
+ _chunkR2QWSSAGjs.recordField.call(void 0, tool, "outputSchema", "output_schema")
1603
1603
  ).filter((field) => String(field.type).split("|").includes("array")).map((field) => String(field.name).split(".").at(-1))
1604
1604
  );
1605
1605
  const firstList = _nullishCoalesce(listGetters.find(
1606
- (entry) => _chunkAD47BXN2js.isRecord.call(void 0, entry) && arrayNames.has(_chunkAD47BXN2js.stringField.call(void 0, entry, "name"))
1607
- ), () => ( listGetters.find(_chunkAD47BXN2js.isRecord)));
1608
- if (_chunkAD47BXN2js.isRecord.call(void 0, firstList)) {
1609
- const name = safeIdentifier(_chunkAD47BXN2js.stringField.call(void 0, firstList, "name") || "list");
1606
+ (entry) => _chunkR2QWSSAGjs.isRecord.call(void 0, entry) && arrayNames.has(_chunkR2QWSSAGjs.stringField.call(void 0, entry, "name"))
1607
+ ), () => ( listGetters.find(_chunkR2QWSSAGjs.isRecord)));
1608
+ if (_chunkR2QWSSAGjs.isRecord.call(void 0, firstList)) {
1609
+ const name = safeIdentifier(_chunkR2QWSSAGjs.stringField.call(void 0, firstList, "name") || "list");
1610
1610
  if (_chunkJ33TSWO5js.playToolListGetterMode.call(void 0, ) === "array") {
1611
- console.log(`const ${name}_rows = ${_chunkAD47BXN2js.playResultExpression.call(void 0, firstList)};`);
1611
+ console.log(`const ${name}_rows = ${_chunkR2QWSSAGjs.playResultExpression.call(void 0, firstList)};`);
1612
1612
  } else {
1613
- console.log(`const ${name}_ds = ${_chunkAD47BXN2js.playResultExpression.call(void 0, firstList)};`);
1613
+ console.log(`const ${name}_ds = ${_chunkR2QWSSAGjs.playResultExpression.call(void 0, firstList)};`);
1614
1614
  console.log(
1615
1615
  "// Complete small list from this response; throws above the memory cap."
1616
1616
  );
@@ -1620,7 +1620,7 @@ function printToolExamplesOnly(tool, requestedToolId) {
1620
1620
  console.log("```");
1621
1621
  if (firstList) printListGetterConsumption();
1622
1622
  for (const example of examples) {
1623
- const description = _chunkAD47BXN2js.stringField.call(void 0, example, "description");
1623
+ const description = _chunkR2QWSSAGjs.stringField.call(void 0, example, "description");
1624
1624
  if (description) console.log(description);
1625
1625
  console.log("Example Deepline execution response:");
1626
1626
  console.log(JSON.stringify(example.response, null, 2));
@@ -1635,14 +1635,14 @@ function printToolExamplesOnly(tool, requestedToolId) {
1635
1635
  }
1636
1636
  function printPlayLikeToolUsage(tool, requestedToolId) {
1637
1637
  const toolId = String(tool.toolId || requestedToolId);
1638
- const inputFields = _chunkAD47BXN2js.toolInputFieldsForDisplay.call(void 0,
1639
- _chunkAD47BXN2js.recordField.call(void 0, tool, "inputSchema", "input_schema")
1638
+ const inputFields = _chunkR2QWSSAGjs.toolInputFieldsForDisplay.call(void 0,
1639
+ _chunkR2QWSSAGjs.recordField.call(void 0, tool, "inputSchema", "input_schema")
1640
1640
  );
1641
- const sampleInput = _chunkAD47BXN2js.samplePayloadForInputFields.call(void 0, inputFields);
1642
- const playReference = _chunkAD47BXN2js.playReferenceForTool.call(void 0, tool);
1641
+ const sampleInput = _chunkR2QWSSAGjs.samplePayloadForInputFields.call(void 0, inputFields);
1642
+ const playReference = _chunkR2QWSSAGjs.playReferenceForTool.call(void 0, tool);
1643
1643
  console.log("Run as a play:");
1644
1644
  console.log(
1645
- _chunkAD47BXN2js.playRunCommandForTool.call(void 0,
1645
+ _chunkR2QWSSAGjs.playRunCommandForTool.call(void 0,
1646
1646
  tool,
1647
1647
  toolId,
1648
1648
  Object.keys(sampleInput).length ? sampleInput : void 0
@@ -1653,13 +1653,13 @@ function printPlayLikeToolUsage(tool, requestedToolId) {
1653
1653
  }
1654
1654
  }
1655
1655
  function printToolGettersOnly(tool, requestedToolId) {
1656
- const contract = _chunkAD47BXN2js.toolContractJsonForDescribe.call(void 0,
1656
+ const contract = _chunkR2QWSSAGjs.toolContractJsonForDescribe.call(void 0,
1657
1657
  tool,
1658
1658
  requestedToolId,
1659
1659
  void 0,
1660
1660
  seedToolListScript
1661
1661
  );
1662
- const getters = _chunkAD47BXN2js.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1662
+ const getters = _chunkR2QWSSAGjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1663
1663
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1664
1664
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1665
1665
  console.log(`Getters: ${contract.toolId}`);
@@ -1670,9 +1670,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1670
1670
  if (listGetters.length) {
1671
1671
  console.log(listGetterHeading());
1672
1672
  for (const entry of listGetters) {
1673
- if (_chunkAD47BXN2js.isRecord.call(void 0, entry))
1673
+ if (_chunkR2QWSSAGjs.isRecord.call(void 0, entry))
1674
1674
  console.log(
1675
- `- ${_chunkAD47BXN2js.stringField.call(void 0, entry, "name")}: ${_chunkAD47BXN2js.playResultExpression.call(void 0, entry)}`
1675
+ `- ${_chunkR2QWSSAGjs.stringField.call(void 0, entry, "name")}: ${_chunkR2QWSSAGjs.playResultExpression.call(void 0, entry)}`
1676
1676
  );
1677
1677
  }
1678
1678
  printListGetterConsumption();
@@ -1680,9 +1680,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1680
1680
  if (valueGetters.length) {
1681
1681
  console.log("Values:");
1682
1682
  for (const entry of valueGetters) {
1683
- if (_chunkAD47BXN2js.isRecord.call(void 0, entry))
1683
+ if (_chunkR2QWSSAGjs.isRecord.call(void 0, entry))
1684
1684
  console.log(
1685
- `- ${_chunkAD47BXN2js.stringField.call(void 0, entry, "name")}: ${_chunkAD47BXN2js.playResultExpression.call(void 0, entry)}`
1685
+ `- ${_chunkR2QWSSAGjs.stringField.call(void 0, entry, "name")}: ${_chunkR2QWSSAGjs.playResultExpression.call(void 0, entry)}`
1686
1686
  );
1687
1687
  }
1688
1688
  }
@@ -1690,12 +1690,12 @@ function printToolGettersOnly(tool, requestedToolId) {
1690
1690
  function printListGetterConsumption() {
1691
1691
  if (_chunkJ33TSWO5js.playToolListGetterMode.call(void 0, ) === "array") {
1692
1692
  console.log(
1693
- "Use the ordinary array directly, or pass it to ctx.dataset to persist row work. No provider pagination is fetched. Lazy or incomplete lists throw; use readList for an explicit dataset read. A missing getter is not an empty list."
1693
+ "Use the ordinary array directly, or pass it to deepline.dataset to persist row work. No provider pagination is fetched. Lazy or incomplete lists throw; use readList for an explicit dataset read. A missing getter is not an empty list."
1694
1694
  );
1695
1695
  return;
1696
1696
  }
1697
1697
  console.log(
1698
- "Pass the handle to ctx.dataset, use first() for one row, or for await...of to stream rows. materialize() loads the complete current list within the memory cap; materialize(n) and peek(n) return only a prefix. None fetch additional provider pagination. A missing getter is not an empty list."
1698
+ "Pass the handle to deepline.dataset, use first() for one row, or for await...of to stream rows. materialize() loads the complete current list within the memory cap; materialize(n) and peek(n) return only a prefix. None fetch additional provider pagination. A missing getter is not an empty list."
1699
1699
  );
1700
1700
  }
1701
1701
  function listGetterHeading() {
@@ -1720,22 +1720,22 @@ function listedToolDescription(tool) {
1720
1720
  }
1721
1721
  function formatListedToolCost(tool) {
1722
1722
  const record = tool;
1723
- if (_chunkAD47BXN2js.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1723
+ if (_chunkR2QWSSAGjs.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1724
1724
  return "Cost: Free";
1725
1725
  }
1726
- const pricing = _chunkAD47BXN2js.recordField.call(void 0, record, "pricing");
1727
- const displayText = _chunkAD47BXN2js.stringField.call(void 0, pricing, "displayText", "display_text");
1726
+ const pricing = _chunkR2QWSSAGjs.recordField.call(void 0, record, "pricing");
1727
+ const displayText = _chunkR2QWSSAGjs.stringField.call(void 0, pricing, "displayText", "display_text");
1728
1728
  return displayText ? `Cost: ${displayText}` : "";
1729
1729
  }
1730
1730
  function printToolOutputArrayShape(tool) {
1731
- const outputFields = _chunkAD47BXN2js.toolOutputFieldsForDisplay.call(void 0,
1732
- _chunkAD47BXN2js.recordField.call(void 0, _chunkAD47BXN2js.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1731
+ const outputFields = _chunkR2QWSSAGjs.toolOutputFieldsForDisplay.call(void 0,
1732
+ _chunkR2QWSSAGjs.recordField.call(void 0, _chunkR2QWSSAGjs.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1733
1733
  );
1734
1734
  if (outputFields.length === 0) return;
1735
1735
  console.log(" Output array shape (declared schema):");
1736
1736
  for (const field of outputFields.slice(0, 60)) {
1737
1737
  const name = String(field.name);
1738
- const type = _chunkAD47BXN2js.stringField.call(void 0, field, "type") || "unknown";
1738
+ const type = _chunkR2QWSSAGjs.stringField.call(void 0, field, "type") || "unknown";
1739
1739
  const itemBounds = arrayItemBoundsSuffix(field);
1740
1740
  console.log(` - ${name}: ${type}${itemBounds}`);
1741
1741
  }
@@ -1744,14 +1744,14 @@ function printToolOutputArrayShape(tool) {
1744
1744
  }
1745
1745
  }
1746
1746
  function declaredToolJsonSchema(inputSchema) {
1747
- if (_chunkAD47BXN2js.isRecord.call(void 0, inputSchema.jsonSchema)) {
1747
+ if (_chunkR2QWSSAGjs.isRecord.call(void 0, inputSchema.jsonSchema)) {
1748
1748
  return inputSchema.jsonSchema;
1749
1749
  }
1750
1750
  return Array.isArray(inputSchema.fields) ? null : inputSchema;
1751
1751
  }
1752
1752
  function arrayItemBoundsSuffix(field) {
1753
- const itemSchema = _chunkAD47BXN2js.isRecord.call(void 0, field.items) ? field.items : null;
1754
- const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkAD47BXN2js.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1753
+ const itemSchema = _chunkR2QWSSAGjs.isRecord.call(void 0, field.items) ? field.items : null;
1754
+ const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkR2QWSSAGjs.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1755
1755
  const itemEnum = Array.isArray(_optionalChain([itemSchema, 'optionalAccess', _14 => _14.enum])) ? ` enum=${itemSchema.enum.map(String).join("|")}` : "";
1756
1756
  const itemTypeSuffix = itemType && itemType !== "unknown" ? ` items=${itemType}${itemEnum}` : "";
1757
1757
  const minItems = typeof field.minItems === "number" && Number.isFinite(field.minItems) ? field.minItems : null;
@@ -1764,21 +1764,21 @@ function arrayItemBoundsSuffix(field) {
1764
1764
  return itemTypeSuffix;
1765
1765
  }
1766
1766
  function printToolExecutionHints(value) {
1767
- const batchCapabilityRecord = _chunkAD47BXN2js.recordField.call(void 0,
1768
- _chunkAD47BXN2js.isRecord.call(void 0, value) ? value : {},
1767
+ const batchCapabilityRecord = _chunkR2QWSSAGjs.recordField.call(void 0,
1768
+ _chunkR2QWSSAGjs.isRecord.call(void 0, value) ? value : {},
1769
1769
  "batchCapability",
1770
1770
  "batch_capability"
1771
1771
  );
1772
1772
  const batchCapability = Object.keys(batchCapabilityRecord).length > 0 ? batchCapabilityRecord : null;
1773
- const executionMetadata = _chunkAD47BXN2js.recordField.call(void 0,
1774
- _chunkAD47BXN2js.isRecord.call(void 0, value) ? value : {},
1773
+ const executionMetadata = _chunkR2QWSSAGjs.recordField.call(void 0,
1774
+ _chunkR2QWSSAGjs.isRecord.call(void 0, value) ? value : {},
1775
1775
  "executionMetadata",
1776
1776
  "execution_metadata"
1777
1777
  );
1778
1778
  if (batchCapability) {
1779
- const status = _chunkAD47BXN2js.stringField.call(void 0, batchCapability, "status") || "unknown";
1780
- const surface = _chunkAD47BXN2js.stringField.call(void 0, batchCapability, "surface");
1781
- const operation = _chunkAD47BXN2js.stringField.call(void 0,
1779
+ const status = _chunkR2QWSSAGjs.stringField.call(void 0, batchCapability, "status") || "unknown";
1780
+ const surface = _chunkR2QWSSAGjs.stringField.call(void 0, batchCapability, "surface");
1781
+ const operation = _chunkR2QWSSAGjs.stringField.call(void 0,
1782
1782
  batchCapability,
1783
1783
  "batchOperation",
1784
1784
  "batch_operation"
@@ -1788,7 +1788,7 @@ function printToolExecutionHints(value) {
1788
1788
  "maxBatchSize",
1789
1789
  "max_batch_size"
1790
1790
  );
1791
- const notes = _chunkAD47BXN2js.stringField.call(void 0, batchCapability, "notes");
1791
+ const notes = _chunkR2QWSSAGjs.stringField.call(void 0, batchCapability, "notes");
1792
1792
  console.log("");
1793
1793
  console.log("Batching:");
1794
1794
  console.log(`- Catalog status: ${status}${surface ? ` (${surface})` : ""}`);
@@ -1807,11 +1807,11 @@ function printToolExecutionHints(value) {
1807
1807
  }
1808
1808
  if (notes) console.log(`- Details: ${notes}`);
1809
1809
  }
1810
- const configuredRateLimits = _chunkAD47BXN2js.arrayField.call(void 0,
1810
+ const configuredRateLimits = _chunkR2QWSSAGjs.arrayField.call(void 0,
1811
1811
  executionMetadata,
1812
1812
  "configuredRateLimits",
1813
1813
  "configured_rate_limits"
1814
- ).filter(_chunkAD47BXN2js.isRecord);
1814
+ ).filter(_chunkR2QWSSAGjs.isRecord);
1815
1815
  if (configuredRateLimits.length > 0) {
1816
1816
  console.log("");
1817
1817
  console.log(
@@ -1821,7 +1821,7 @@ function printToolExecutionHints(value) {
1821
1821
  const requests = numberField(limit, "requestsPerWindow");
1822
1822
  const windowMs = numberField(limit, "windowMs");
1823
1823
  if (requests === null || windowMs === null) continue;
1824
- const usage = _chunkAD47BXN2js.stringField.call(void 0, limit, "usage") || "unknown";
1824
+ const usage = _chunkR2QWSSAGjs.stringField.call(void 0, limit, "usage") || "unknown";
1825
1825
  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;
1826
1826
  const explicitMaxConcurrency = numberField(
1827
1827
  limit,
@@ -1834,7 +1834,7 @@ function printToolExecutionHints(value) {
1834
1834
  );
1835
1835
  }
1836
1836
  }
1837
- const queueHint = _chunkAD47BXN2js.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
1837
+ const queueHint = _chunkR2QWSSAGjs.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
1838
1838
  const requestsPerSecondHint = numberField(
1839
1839
  queueHint,
1840
1840
  "requestsPerSecondHint",
@@ -1859,25 +1859,25 @@ function formatRateWindow(windowMs) {
1859
1859
  }
1860
1860
  function samplePayload(samples, key) {
1861
1861
  const entry = samples[key];
1862
- if (!_chunkAD47BXN2js.isRecord.call(void 0, entry)) return void 0;
1862
+ if (!_chunkR2QWSSAGjs.isRecord.call(void 0, entry)) return void 0;
1863
1863
  return Object.prototype.hasOwnProperty.call(entry, "payload") ? entry.payload : entry;
1864
1864
  }
1865
1865
  function commandEnvelopeFromRawResponse(rawResponse) {
1866
- return _chunkAD47BXN2js.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
1866
+ return _chunkR2QWSSAGjs.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
1867
1867
  }
1868
1868
  function toolExecuteExitCode(envelope) {
1869
1869
  return envelope.status === "failed" || envelope.ok === false ? 1 : 0;
1870
1870
  }
1871
1871
  function extractToolExecutionWarningMessages(rawResponse) {
1872
- if (!_chunkAD47BXN2js.isRecord.call(void 0, rawResponse)) return [];
1872
+ if (!_chunkR2QWSSAGjs.isRecord.call(void 0, rawResponse)) return [];
1873
1873
  const candidates = [
1874
- _chunkAD47BXN2js.recordField.call(void 0, _chunkAD47BXN2js.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
1875
- _chunkAD47BXN2js.recordField.call(void 0,
1876
- _chunkAD47BXN2js.recordField.call(void 0, _chunkAD47BXN2js.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
1874
+ _chunkR2QWSSAGjs.recordField.call(void 0, _chunkR2QWSSAGjs.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
1875
+ _chunkR2QWSSAGjs.recordField.call(void 0,
1876
+ _chunkR2QWSSAGjs.recordField.call(void 0, _chunkR2QWSSAGjs.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
1877
1877
  "meta"
1878
1878
  ),
1879
- _chunkAD47BXN2js.recordField.call(void 0, rawResponse, "meta"),
1880
- _chunkAD47BXN2js.recordField.call(void 0, _chunkAD47BXN2js.recordField.call(void 0, rawResponse, "result"), "meta")
1879
+ _chunkR2QWSSAGjs.recordField.call(void 0, rawResponse, "meta"),
1880
+ _chunkR2QWSSAGjs.recordField.call(void 0, _chunkR2QWSSAGjs.recordField.call(void 0, rawResponse, "result"), "meta")
1881
1881
  ];
1882
1882
  const messages = [];
1883
1883
  for (const candidate of candidates) {
@@ -1886,8 +1886,8 @@ function extractToolExecutionWarningMessages(rawResponse) {
1886
1886
  for (const warning of warnings) {
1887
1887
  if (typeof warning === "string" && warning.trim()) {
1888
1888
  messages.push(warning.trim());
1889
- } else if (_chunkAD47BXN2js.isRecord.call(void 0, warning)) {
1890
- const message = _chunkAD47BXN2js.stringField.call(void 0, warning, "message");
1889
+ } else if (_chunkR2QWSSAGjs.isRecord.call(void 0, warning)) {
1890
+ const message = _chunkR2QWSSAGjs.stringField.call(void 0, warning, "message");
1891
1891
  if (message) messages.push(message);
1892
1892
  }
1893
1893
  }
@@ -1895,20 +1895,20 @@ function extractToolExecutionWarningMessages(rawResponse) {
1895
1895
  return [...new Set(messages)];
1896
1896
  }
1897
1897
  function apifySyncRecoveryNext(rawResponse) {
1898
- if (!_chunkAD47BXN2js.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
1899
- const toolResponse = _chunkAD47BXN2js.recordField.call(void 0, rawResponse, "toolResponse");
1900
- const raw = _chunkAD47BXN2js.recordField.call(void 0, toolResponse, "raw");
1898
+ if (!_chunkR2QWSSAGjs.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
1899
+ const toolResponse = _chunkR2QWSSAGjs.recordField.call(void 0, rawResponse, "toolResponse");
1900
+ const raw = _chunkR2QWSSAGjs.recordField.call(void 0, toolResponse, "raw");
1901
1901
  if (raw.state !== "awaiting_apify") return null;
1902
- const next = _chunkAD47BXN2js.recordField.call(void 0, raw, "next");
1903
- const getActorRun = _chunkAD47BXN2js.recordField.call(void 0, next, "getActorRun");
1904
- const getActorRunTool = _chunkAD47BXN2js.stringField.call(void 0, getActorRun, "tool");
1905
- const getActorRunPayload = _chunkAD47BXN2js.recordField.call(void 0, getActorRun, "payload");
1902
+ const next = _chunkR2QWSSAGjs.recordField.call(void 0, raw, "next");
1903
+ const getActorRun = _chunkR2QWSSAGjs.recordField.call(void 0, next, "getActorRun");
1904
+ const getActorRunTool = _chunkR2QWSSAGjs.stringField.call(void 0, getActorRun, "tool");
1905
+ const getActorRunPayload = _chunkR2QWSSAGjs.recordField.call(void 0, getActorRun, "payload");
1906
1906
  if (!getActorRunTool || Object.keys(getActorRunPayload).length === 0) {
1907
1907
  return null;
1908
1908
  }
1909
- const getDatasetItems = _chunkAD47BXN2js.recordField.call(void 0, next, "getDatasetItems");
1910
- const getDatasetItemsTool = _chunkAD47BXN2js.stringField.call(void 0, getDatasetItems, "tool");
1911
- const getDatasetItemsPayload = _chunkAD47BXN2js.recordField.call(void 0, getDatasetItems, "payload");
1909
+ const getDatasetItems = _chunkR2QWSSAGjs.recordField.call(void 0, next, "getDatasetItems");
1910
+ const getDatasetItemsTool = _chunkR2QWSSAGjs.stringField.call(void 0, getDatasetItems, "tool");
1911
+ const getDatasetItemsPayload = _chunkR2QWSSAGjs.recordField.call(void 0, getDatasetItems, "payload");
1912
1912
  return {
1913
1913
  getActorRun: `deepline tools execute ${getActorRunTool} --input ${_chunkAID3OYVJjs.shellQuote.call(void 0, JSON.stringify(getActorRunPayload))}`,
1914
1914
  ...getDatasetItemsTool && Object.keys(getDatasetItemsPayload).length > 0 ? {
@@ -1918,7 +1918,7 @@ function apifySyncRecoveryNext(rawResponse) {
1918
1918
  }
1919
1919
  function listExtractorPathsFromUsageGuidance(tool) {
1920
1920
  const toolExecutionResult = _optionalChain([tool, 'access', _16 => _16.usageGuidance, 'optionalAccess', _17 => _17.toolExecutionResult]);
1921
- const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _18 => _18.extractedLists])) ? toolExecutionResult.extractedLists : _chunkAD47BXN2js.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _19 => _19.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
1921
+ const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _18 => _18.extractedLists])) ? toolExecutionResult.extractedLists : _chunkR2QWSSAGjs.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _19 => _19.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
1922
1922
  return extractedLists.flatMap((entry) => {
1923
1923
  const paths = _nullishCoalesce(_optionalChain([entry, 'access', _20 => _20.details, 'optionalAccess', _21 => _21.candidatePaths]), () => ( _optionalChain([entry, 'access', _22 => _22.details, 'optionalAccess', _23 => _23.rawToolOutputPaths])));
1924
1924
  if (!Array.isArray(paths)) return [];
@@ -2003,7 +2003,7 @@ function parseJsonObjectArgument(raw, flagName) {
2003
2003
  }
2004
2004
  throw invalidJsonError(flagName, message);
2005
2005
  }
2006
- if (!_chunkAD47BXN2js.isRecord.call(void 0, parsed)) {
2006
+ if (!_chunkR2QWSSAGjs.isRecord.call(void 0, parsed)) {
2007
2007
  throw invalidJsonError(flagName, "expected an object.");
2008
2008
  }
2009
2009
  return parsed;
@@ -2047,7 +2047,7 @@ function parseExecuteOptions(toolId, options, output) {
2047
2047
  outputFormat = normalizeOutputFormat(options.outputFormat);
2048
2048
  }
2049
2049
  if (options.idempotencyKey !== void 0) {
2050
- _chunkWGO2DY4Ljs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2050
+ _chunkAVOBDFQ5js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2051
2051
  }
2052
2052
  if (options.recoveryTimeoutMs !== void 0) {
2053
2053
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2094,19 +2094,22 @@ function powerShellQuote(value) {
2094
2094
  }
2095
2095
  function seedToolListScript(input) {
2096
2096
  const stem = safeFileStem(input.toolId);
2097
- const fileName = `${stem}-workflow-seed-${Date.now()}.play.ts`;
2097
+ const fileName = `${stem}-workflow.play.ts`;
2098
2098
  const scriptDir = _fs.mkdtempSync.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-workflow-seed-"));
2099
2099
  _fs.chmodSync.call(void 0, scriptDir, 448);
2100
2100
  const scriptPath = _path.join.call(void 0, scriptDir, fileName);
2101
2101
  const projectDir = `deepline/projects/${stem}-workflow`;
2102
- const playName = `${stem}-workflow`;
2103
2102
  const sampleRows = input.rows.length > 0 ? `${JSON.stringify(input.rows.slice(0, 2)).replace(/\]$/, "")}, ...]` : "[]";
2104
2103
  const columns = Object.keys(_nullishCoalesce(input.rows[0], () => ( {}))).join(", ");
2105
2104
  const rowKey = Object.prototype.hasOwnProperty.call(_nullishCoalesce(input.rows[0], () => ( {})), "id") ? '"id"' : "(row) => JSON.stringify(row)";
2106
- const script = `import { definePlay } from 'deepline';
2105
+ const script = `import deepline from 'deepline';
2107
2106
 
2108
- export default definePlay(${JSON.stringify(playName)}, async (ctx) => {
2109
- const result = await ctx.tools.execute({
2107
+ export const config = {
2108
+ description: ${JSON.stringify(`Seed ${input.toolId} rows into a Deepline workflow-ready dataset.`)},
2109
+ };
2110
+
2111
+ export default async function () {
2112
+ const result = await deepline.tools.execute({
2110
2113
  staleAfterSeconds: 0,
2111
2114
  id: ${JSON.stringify(input.toolId)},
2112
2115
  tool: ${JSON.stringify(input.toolId)},
@@ -2122,11 +2125,11 @@ export default definePlay(${JSON.stringify(playName)}, async (ctx) => {
2122
2125
  // ${sampleRows}
2123
2126
  // columns: ${columns}
2124
2127
  // ${_chunkJ33TSWO5js.playToolListGetterMode.call(void 0, ) === "array" ? "extractedLists.<name>.get() returns an ordinary array from this response." : "extractedLists.<name>.get() returns a dataset handle for row-shaped list outputs."}
2125
- // ${_chunkJ33TSWO5js.playToolListGetterMode.call(void 0, ) === "array" ? "Use array methods directly; pass rows to ctx.dataset to persist row work." : "Pass it to ctx.dataset; use rows.peek/count/materialize only for deliberate bounded inspection."}
2126
- // .withColumn('email_waterfall', (row, rowCtx) => rowCtx.runPlay('name_domain_email', 'name-and-domain-to-email', { first_name: String(row.first_name ?? ''), last_name: String(row.last_name ?? ''), domain: String(row.domain ?? '') }, { description: 'Resolve email.' }))
2127
- // .withColumn('phone_waterfall', (row, rowCtx) => rowCtx.runPlay('contact_phone', 'contact-to-phone', { first_name: String(row.first_name ?? ''), last_name: String(row.last_name ?? ''), email: String(row.email ?? '') }, { description: 'Resolve phone.' }))
2128
- // ctx.dataset is idempotent for completed rows during same-run recovery. New runs follow each call's freshness.
2129
- const enrichedData = await ctx
2128
+ // ${_chunkJ33TSWO5js.playToolListGetterMode.call(void 0, ) === "array" ? "Use array methods directly; pass rows to deepline.dataset to persist row work." : "Pass it to deepline.dataset; use rows.peek/count/materialize only for deliberate bounded inspection."}
2129
+ // .withColumn('email_waterfall', (row) => deepline.runPlay('name_domain_email', 'name-and-domain-to-email', { first_name: String(row.first_name ?? ''), last_name: String(row.last_name ?? ''), domain: String(row.domain ?? '') }, { description: 'Resolve email.' }))
2130
+ // .withColumn('phone_waterfall', (row) => deepline.runPlay('contact_phone', 'contact-to-phone', { first_name: String(row.first_name ?? ''), last_name: String(row.last_name ?? ''), email: String(row.email ?? '') }, { description: 'Resolve phone.' }))
2131
+ // deepline.dataset is idempotent for completed rows during same-run recovery. New runs follow each call's freshness.
2132
+ const enrichedData = await deepline
2130
2133
  .dataset('enriched_data', rows)
2131
2134
  .run({
2132
2135
  key: ${rowKey},
@@ -2137,9 +2140,7 @@ export default definePlay(${JSON.stringify(playName)}, async (ctx) => {
2137
2140
  rows: enrichedData,
2138
2141
  count: await enrichedData.count(),
2139
2142
  };
2140
- }, {
2141
- description: ${JSON.stringify(`Seed ${input.toolId} rows into a Deepline workflow-ready dataset.`)},
2142
- });
2143
+ }
2143
2144
  `;
2144
2145
  _fs.writeFileSync.call(void 0, scriptPath, script, { encoding: "utf-8", mode: 384 });
2145
2146
  return {
@@ -2175,7 +2176,7 @@ function buildToolExecuteBaseEnvelope(input) {
2175
2176
  kind: summaryEntries.length > 0 ? "object" : "raw",
2176
2177
  summary: input.summary
2177
2178
  };
2178
- const envelopeHasCanonicalOutput = _chunkAD47BXN2js.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2179
+ const envelopeHasCanonicalOutput = _chunkR2QWSSAGjs.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2179
2180
  const envelopeHasDeclaredOutput = Object.prototype.hasOwnProperty.call(
2180
2181
  envelope,
2181
2182
  "output"
@@ -2203,7 +2204,7 @@ function buildToolExecuteBaseEnvelope(input) {
2203
2204
  return {
2204
2205
  ...envelope,
2205
2206
  ...input.idempotencyKey ? { idempotency_key: input.idempotencyKey } : {},
2206
- ..._chunkAD47BXN2js.isRecord.call(void 0, input.rawResponse) && _chunkAD47BXN2js.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2207
+ ..._chunkR2QWSSAGjs.isRecord.call(void 0, input.rawResponse) && _chunkR2QWSSAGjs.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2207
2208
  ...envelopeHasCanonicalOutput || envelopeHasDeclaredOutput ? { output_preview: outputPreview } : { output: outputPreview },
2208
2209
  ...summaryEntries.length > 0 ? { summary: input.summary } : {},
2209
2210
  ...warningMessages.length > 0 ? { warnings: warningMessages } : {},
@@ -2264,7 +2265,7 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2264
2265
  void _render;
2265
2266
  void _next;
2266
2267
  void _local;
2267
- const billingLookup = _chunkAD47BXN2js.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2268
+ const billingLookup = _chunkR2QWSSAGjs.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2268
2269
  const inspection = toolExecutionInspection(input);
2269
2270
  return {
2270
2271
  ...base,
@@ -2367,19 +2368,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2367
2368
  parsed = parseExecuteOptions(toolId, options, output);
2368
2369
  } catch (error) {
2369
2370
  if (wantsJson) {
2370
- _chunkAYM2KZN3js.printJsonError.call(void 0, error);
2371
+ _chunkEWWWOKX2js.printJsonError.call(void 0, error);
2371
2372
  } else {
2372
2373
  console.error(error instanceof Error ? error.message : String(error));
2373
2374
  }
2374
2375
  return error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2375
2376
  }
2376
- const cliInvocationId = _nullishCoalesce(_chunkS4KGXRCVjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkS4KGXRCVjs.beginToolExecuteCommand.call(void 0, )));
2377
+ const cliInvocationId = _nullishCoalesce(_chunk4WT5RISAjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk4WT5RISAjs.beginToolExecuteCommand.call(void 0, )));
2377
2378
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2378
- const tracing = _chunk2LVM22ZUjs.isCliTraceEnabled.call(void 0, );
2379
+ const tracing = _chunkRAL75ND3js.isCliTraceEnabled.call(void 0, );
2379
2380
  const clientStartedAt = tracing ? performance.now() : void 0;
2380
- const client = new (0, _chunkWGO2DY4Ljs.DeeplineClient)();
2381
+ const client = new (0, _chunkAVOBDFQ5js.DeeplineClient)();
2381
2382
  if (clientStartedAt !== void 0) {
2382
- _chunk2LVM22ZUjs.recordCliTrace.call(void 0, {
2383
+ _chunkRAL75ND3js.recordCliTrace.call(void 0, {
2383
2384
  phase: "cli.tool_execute_client_setup",
2384
2385
  ms: performance.now() - clientStartedAt
2385
2386
  });
@@ -2388,13 +2389,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2388
2389
  const readMetadata = async () => {
2389
2390
  if (metadata) return metadata;
2390
2391
  try {
2391
- metadata = await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
2392
+ metadata = await _chunk4WT5RISAjs.runToolExecuteStage.call(void 0,
2392
2393
  "tool metadata lookup",
2393
2394
  () => client.getTool(parsed.toolId, { cliInvocationId })
2394
2395
  );
2395
2396
  } catch (error) {
2396
2397
  if (isMissingToolMetadataError(error)) {
2397
- const play = await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
2398
+ const play = await _chunk4WT5RISAjs.runToolExecuteStage.call(void 0,
2398
2399
  "play alias lookup",
2399
2400
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2400
2401
  );
@@ -2408,7 +2409,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2408
2409
  }
2409
2410
  throw error;
2410
2411
  }
2411
- if (_chunkAD47BXN2js.isPlayLikeTool.call(void 0, metadata)) {
2412
+ if (_chunkR2QWSSAGjs.isPlayLikeTool.call(void 0, metadata)) {
2412
2413
  throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
2413
2414
  playLikeToolExecuteErrorMessage(
2414
2415
  parsed.toolId,
@@ -2433,7 +2434,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2433
2434
  metadata = await readMetadata();
2434
2435
  } catch (error) {
2435
2436
  if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2436
- if (wantsJson) _chunkAYM2KZN3js.printJsonError.call(void 0, error);
2437
+ if (wantsJson) _chunkEWWWOKX2js.printJsonError.call(void 0, error);
2437
2438
  else console.error(error.message);
2438
2439
  return 2;
2439
2440
  }
@@ -2449,7 +2450,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2449
2450
  metadata = await readMetadata();
2450
2451
  } catch (error) {
2451
2452
  if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2452
- if (wantsJson) _chunkAYM2KZN3js.printJsonError.call(void 0, error);
2453
+ if (wantsJson) _chunkEWWWOKX2js.printJsonError.call(void 0, error);
2453
2454
  else console.error(error.message);
2454
2455
  return 2;
2455
2456
  }
@@ -2475,11 +2476,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2475
2476
  responseIntent,
2476
2477
  ...idempotencyKey ? { idempotencyKey } : {},
2477
2478
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2478
- searchRef: _chunkBL3LY54Yjs.recentSearchRef.call(void 0, ),
2479
+ searchRef: _chunk2U3AMRHFjs.recentSearchRef.call(void 0, ),
2479
2480
  cliInvocationId,
2480
- onResponseReceived: _chunk27GJKC5Qjs.recordApiResponse,
2481
+ onResponseReceived: _chunkGXOQRZXGjs.recordApiResponse,
2481
2482
  ...tracing ? {
2482
- onServerTiming: (serverTiming) => _chunk2LVM22ZUjs.recordCliTrace.call(void 0, {
2483
+ onServerTiming: (serverTiming) => _chunkRAL75ND3js.recordCliTrace.call(void 0, {
2483
2484
  phase: "tool_execute_server_timing",
2484
2485
  cliInvocationId,
2485
2486
  serverTiming,
@@ -2490,13 +2491,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2490
2491
  let rawResponse;
2491
2492
  let successfulCompatibilityResponse;
2492
2493
  try {
2493
- const executeResult = await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
2494
+ const executeResult = await _chunk4WT5RISAjs.runToolExecuteStage.call(void 0,
2494
2495
  "execute request",
2495
2496
  async () => {
2496
2497
  try {
2497
2498
  if (tracing) {
2498
2499
  submissionStartedAt = performance.now();
2499
- _chunk2LVM22ZUjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2500
+ _chunkRAL75ND3js.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2500
2501
  }
2501
2502
  return await client.executeTool(parsed.toolId, parsed.params, {
2502
2503
  ...executeOptions,
@@ -2505,34 +2506,34 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2505
2506
  } catch (error) {
2506
2507
  if (!(error instanceof _chunkPPDBRJRWjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2507
2508
  throw error;
2508
- const baseUrl = _chunkHCYNAIHZjs.resolveConfig.call(void 0, ).baseUrl;
2509
+ const baseUrl = _chunkW42SSVM7js.resolveConfig.call(void 0, ).baseUrl;
2509
2510
  if (maintenancePolicy !== "off") {
2510
- _chunkOZHPZCAUjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2511
+ _chunkOMWO2JLCjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2511
2512
  }
2512
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
2513
+ const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunk4WT5RISAjs.runToolExecuteStage.call(void 0,
2513
2514
  "SDK compatibility",
2514
- () => _chunkOZHPZCAUjs.checkSdkCompatibility.call(void 0, baseUrl, {
2515
+ () => _chunkOMWO2JLCjs.checkSdkCompatibility.call(void 0, baseUrl, {
2515
2516
  command: "tools execute",
2516
- skillsVersion: _chunkHCYNAIHZjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2517
+ skillsVersion: _chunkW42SSVM7js.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2517
2518
  persistCache: maintenancePolicy !== "off"
2518
2519
  })
2519
2520
  );
2520
2521
  if (compatibility.error) throw compatibility.error;
2521
2522
  metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _28 => _28.readMetadata, 'call', _29 => _29()]), () => ( metadata));
2522
- if (maintenancePolicy !== "off" && await _chunkS4KGXRCVjs.maybeAutoUpdateAndRelaunch.call(void 0,
2523
+ if (maintenancePolicy !== "off" && await _chunk4WT5RISAjs.maybeAutoUpdateAndRelaunch.call(void 0,
2523
2524
  compatibility.response,
2524
2525
  baseUrl,
2525
2526
  maintenancePolicy
2526
2527
  )) {
2527
2528
  return void 0;
2528
2529
  }
2529
- _chunkOZHPZCAUjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2530
+ _chunkOMWO2JLCjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2530
2531
  quietAdvisory: wantsJson
2531
2532
  });
2532
2533
  if (maintenancePolicy !== "off") {
2533
- await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
2534
+ await _chunk4WT5RISAjs.runToolExecuteStage.call(void 0,
2534
2535
  "agent skills sync",
2535
- () => _chunkOZHPZCAUjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2536
+ () => _chunkOMWO2JLCjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2536
2537
  update: _optionalChain([compatibility, 'access', _30 => _30.response, 'optionalAccess', _31 => _31.skills]),
2537
2538
  mode: "detached"
2538
2539
  })
@@ -2541,7 +2542,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2541
2542
  const legacyMetadata = await readMetadata();
2542
2543
  if (tracing) {
2543
2544
  submissionStartedAt = performance.now();
2544
- _chunk2LVM22ZUjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2545
+ _chunkRAL75ND3js.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2545
2546
  }
2546
2547
  return client.executeTool(parsed.toolId, parsed.params, {
2547
2548
  ...executeOptions,
@@ -2562,8 +2563,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2562
2563
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2563
2564
  const updateRequiredBeforeExecution = error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2564
2565
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2565
- const baseUrl = _chunkHCYNAIHZjs.resolveConfig.call(void 0, ).baseUrl;
2566
- if (await _chunkS4KGXRCVjs.maybeAutoUpdateAndRelaunch.call(void 0,
2566
+ const baseUrl = _chunkW42SSVM7js.resolveConfig.call(void 0, ).baseUrl;
2567
+ if (await _chunk4WT5RISAjs.maybeAutoUpdateAndRelaunch.call(void 0,
2567
2568
  compatibility.response,
2568
2569
  baseUrl,
2569
2570
  maintenancePolicy
@@ -2582,7 +2583,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2582
2583
  failure = diagnosticError;
2583
2584
  }
2584
2585
  if (failure instanceof _chunkPPDBRJRWjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2585
- if (wantsJson) _chunkAYM2KZN3js.printJsonError.call(void 0, failure);
2586
+ if (wantsJson) _chunkEWWWOKX2js.printJsonError.call(void 0, failure);
2586
2587
  else console.error(failure.message);
2587
2588
  return 2;
2588
2589
  }
@@ -2609,9 +2610,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2609
2610
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
2610
2611
  const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _37 => _37.auto_update]);
2611
2612
  if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _38 => _38.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
2612
- await _chunkS4KGXRCVjs.maybeAutoUpdateAndRelaunch.call(void 0,
2613
+ await _chunk4WT5RISAjs.maybeAutoUpdateAndRelaunch.call(void 0,
2613
2614
  compatibilityResponse,
2614
- _chunkHCYNAIHZjs.resolveConfig.call(void 0, ).baseUrl,
2615
+ _chunkW42SSVM7js.resolveConfig.call(void 0, ).baseUrl,
2615
2616
  maintenancePolicy
2616
2617
  );
2617
2618
  }
@@ -2629,8 +2630,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2629
2630
  );
2630
2631
  }
2631
2632
  }
2632
- const responseMetadata = _chunkAD47BXN2js.recordField.call(void 0,
2633
- _chunkAD47BXN2js.recordField.call(void 0, rawResponse, "_metadata"),
2633
+ const responseMetadata = _chunkR2QWSSAGjs.recordField.call(void 0,
2634
+ _chunkR2QWSSAGjs.recordField.call(void 0, rawResponse, "_metadata"),
2634
2635
  "tool"
2635
2636
  );
2636
2637
  const listOutputPaths = responseMetadata.listOutputPaths;
@@ -2642,11 +2643,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2642
2643
  await readMetadata()
2643
2644
  );
2644
2645
  }
2645
- if (_chunkAD47BXN2js.isRecord.call(void 0, rawResponse)) {
2646
+ if (_chunkR2QWSSAGjs.isRecord.call(void 0, rawResponse)) {
2646
2647
  const { _metadata, ...execution } = rawResponse;
2647
2648
  rawResponse = execution;
2648
2649
  }
2649
- const { listConversion, summary, baseEnvelope } = await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
2650
+ const { listConversion, summary, baseEnvelope } = await _chunk4WT5RISAjs.runToolExecuteStage.call(void 0,
2650
2651
  "result formatting",
2651
2652
  async () => {
2652
2653
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -2681,9 +2682,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2681
2682
  }
2682
2683
  skillsSyncAttempted = true;
2683
2684
  try {
2684
- await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
2685
+ await _chunk4WT5RISAjs.runToolExecuteStage.call(void 0,
2685
2686
  "agent skills sync",
2686
- () => _chunkOZHPZCAUjs.syncSdkSkillsIfNeeded.call(void 0, _chunkHCYNAIHZjs.resolveConfig.call(void 0, ).baseUrl, {
2687
+ () => _chunkOMWO2JLCjs.syncSdkSkillsIfNeeded.call(void 0, _chunkW42SSVM7js.resolveConfig.call(void 0, ).baseUrl, {
2687
2688
  update: deliveredCompatibilityResponse.skills,
2688
2689
  mode: "detached"
2689
2690
  })
@@ -2694,15 +2695,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2694
2695
  );
2695
2696
  }
2696
2697
  };
2697
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkAYM2KZN3js.printCommandEnvelope.call(void 0, envelope, {
2698
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, envelope, {
2698
2699
  ...options2,
2699
2700
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
2700
2701
  });
2701
2702
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
2702
2703
  await syncSkillsForDeliveredOutput();
2703
- _chunkAYM2KZN3js.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
2704
+ _chunkEWWWOKX2js.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
2704
2705
  };
2705
- const delivered = await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
2706
+ const delivered = await _chunk4WT5RISAjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
2706
2707
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
2707
2708
  await printDeliveredJsonEnvelope(baseEnvelope);
2708
2709
  return true;
@@ -2715,7 +2716,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2715
2716
  await printDeliveredJsonEnvelope({
2716
2717
  ...baseEnvelope,
2717
2718
  local: {
2718
- ..._chunkAD47BXN2js.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
2719
+ ..._chunkR2QWSSAGjs.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
2719
2720
  payload_file: jsonPath
2720
2721
  }
2721
2722
  });
@@ -2731,7 +2732,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2731
2732
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
2732
2733
  );
2733
2734
  if (wantsJson) {
2734
- _chunkAYM2KZN3js.printJsonError.call(void 0, error);
2735
+ _chunkEWWWOKX2js.printJsonError.call(void 0, error);
2735
2736
  } else {
2736
2737
  console.error(error.message);
2737
2738
  }
@@ -2826,13 +2827,13 @@ inspect: ${inspection.inspect}
2826
2827
  return true;
2827
2828
  });
2828
2829
  if (delivered) {
2829
- await _chunkS4KGXRCVjs.runToolExecuteStage.call(void 0,
2830
+ await _chunk4WT5RISAjs.runToolExecuteStage.call(void 0,
2830
2831
  "acknowledge delivery",
2831
2832
  () => recovery.acknowledgeDelivery()
2832
2833
  );
2833
2834
  }
2834
2835
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
2835
- _chunkOZHPZCAUjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
2836
+ _chunkOMWO2JLCjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
2836
2837
  quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _40 => _40.auto_update, 'optionalAccess', _41 => _41.should_auto_update]) === true
2837
2838
  });
2838
2839
  }