deepline 0.3.553 → 0.3.554

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 (151) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/{auth-I3QAU4RV.mjs → auth-HJUNW7T2.mjs} +5 -5
  3. package/dist/cli/auth-SP6SKZJZ.js +44 -0
  4. package/dist/cli/{billing-YGFFVAIC.js → billing-4TSA5HEC.js} +102 -102
  5. package/dist/cli/{billing-3IC54OQQ.mjs → billing-SJYRJAQ2.mjs} +9 -9
  6. package/dist/cli/{chunk-2B5B5KAW.js → chunk-2HMN5H54.js} +53 -50
  7. package/dist/cli/{chunk-72V4PDH5.mjs → chunk-2ORPFQUA.mjs} +3 -3
  8. package/dist/cli/{chunk-BVDKFS2T.js → chunk-2OVHNHCF.js} +2 -2
  9. package/dist/cli/{chunk-Z7AOIHFE.mjs → chunk-33WRQSQ2.mjs} +4 -0
  10. package/dist/cli/{chunk-HVI55MTK.js → chunk-3IKGZ4CG.js} +20 -10
  11. package/dist/cli/{chunk-INEMTYMT.mjs → chunk-3Z4VFCXO.mjs} +7 -7
  12. package/dist/cli/{chunk-HEBO3XNZ.js → chunk-4DOFGIEJ.js} +12 -12
  13. package/dist/cli/{chunk-LFOERUQY.mjs → chunk-52Q5KETX.mjs} +1 -1
  14. package/dist/cli/{chunk-AGLR6QVN.js → chunk-5CYZHOKI.js} +4 -4
  15. package/dist/cli/{chunk-HSJ6X2AQ.mjs → chunk-62AUAWQV.mjs} +4 -4
  16. package/dist/cli/{chunk-NDNHYONK.mjs → chunk-62HWJXST.mjs} +2 -2
  17. package/dist/cli/{chunk-QI5S5HWB.mjs → chunk-6EXOAT6T.mjs} +2 -2
  18. package/dist/cli/{chunk-Y6SP3JMI.js → chunk-7OWI736E.js} +30 -30
  19. package/dist/cli/{chunk-DZA7RFGL.mjs → chunk-B6HO2XWH.mjs} +13 -13
  20. package/dist/cli/{chunk-A7DLBE5K.mjs → chunk-BOZAP2EM.mjs} +10 -7
  21. package/dist/cli/chunk-BVXIGOBZ.js +32 -0
  22. package/dist/cli/{chunk-QG6JIWUL.mjs → chunk-D6Z6POKE.mjs} +5 -5
  23. package/dist/cli/{chunk-4BFTDNHU.mjs → chunk-DSKSFFK2.mjs} +1 -1
  24. package/dist/cli/{chunk-JLGP5XAJ.js → chunk-DUBXUAAO.js} +5 -5
  25. package/dist/cli/{chunk-IMX7J4DU.js → chunk-E74KGKFZ.js} +5 -5
  26. package/dist/cli/{chunk-YUA6HA6D.js → chunk-ECHKAC7M.js} +2 -2
  27. package/dist/cli/{chunk-IH6GDNKW.js → chunk-EN5NHCCQ.js} +17 -17
  28. package/dist/cli/{chunk-CAEBJOYU.mjs → chunk-F7CMRKSK.mjs} +1 -1
  29. package/dist/cli/{chunk-SBH4CKPN.js → chunk-FBAFX43W.js} +10 -10
  30. package/dist/cli/{chunk-GAVZ4EOD.mjs → chunk-FXQ3JKE3.mjs} +1 -1
  31. package/dist/cli/{chunk-55F6HNOY.mjs → chunk-GA2M3G3Y.mjs} +4 -4
  32. package/dist/cli/{chunk-Q6Z6N3A7.js → chunk-GHT2NDL7.js} +9 -9
  33. package/dist/cli/{chunk-WOCHZCUJ.js → chunk-GRZENGNE.js} +2 -2
  34. package/dist/cli/{chunk-7O6J6A7P.js → chunk-IVZKMJUK.js} +4 -0
  35. package/dist/cli/{chunk-SG3LUONJ.mjs → chunk-KVBQY4ST.mjs} +2 -2
  36. package/dist/cli/{chunk-AGIQDA2T.mjs → chunk-KZHBDMGF.mjs} +2 -2
  37. package/dist/cli/{chunk-TFEXSHPM.js → chunk-LY5MMXFF.js} +28 -14
  38. package/dist/cli/{chunk-RTV4RF7N.js → chunk-M7STM3MZ.js} +26 -26
  39. package/dist/cli/{chunk-7GEMELKI.js → chunk-OPTV7D2V.js} +431 -330
  40. package/dist/cli/{chunk-CACFJODG.js → chunk-OVEYWO4H.js} +8 -8
  41. package/dist/cli/{chunk-4HYNMXXF.mjs → chunk-PC2FTUCP.mjs} +2 -2
  42. package/dist/cli/{chunk-4747TPLV.js → chunk-PQQMPUCZ.js} +3 -3
  43. package/dist/cli/{chunk-45OAVGU6.mjs → chunk-Q7ACILL2.mjs} +2 -2
  44. package/dist/cli/{chunk-RMNOZKRI.mjs → chunk-RBBTCYQB.mjs} +3 -3
  45. package/dist/cli/{chunk-7YRJ5UC4.js → chunk-RTHMGSZX.js} +20 -20
  46. package/dist/cli/{chunk-OTV2UUKW.mjs → chunk-S6W6SJ6E.mjs} +1 -1
  47. package/dist/cli/chunk-STXDSVQZ.mjs +32 -0
  48. package/dist/cli/{chunk-UEVKMZLR.mjs → chunk-TGUQET3O.mjs} +14 -4
  49. package/dist/cli/{chunk-74RES4DS.js → chunk-TJ6HLN56.js} +5 -5
  50. package/dist/cli/{chunk-IUOGII7D.js → chunk-TOO3YM5N.js} +6 -6
  51. package/dist/cli/{chunk-UVQJYV76.mjs → chunk-UBBYHB2B.mjs} +2 -2
  52. package/dist/cli/{chunk-AGICYWGN.mjs → chunk-UC4BDZKI.mjs} +2 -2
  53. package/dist/cli/{chunk-6NE3RRRY.js → chunk-UNNOZKRT.js} +1 -1
  54. package/dist/cli/{chunk-FM7LPUPA.js → chunk-UOT7HPBH.js} +41 -41
  55. package/dist/cli/{chunk-DP2VH7CO.js → chunk-UYCZFQYQ.js} +11 -11
  56. package/dist/cli/{chunk-MLABYI4M.js → chunk-VIUUTEHY.js} +3 -3
  57. package/dist/cli/{chunk-LH5PZKER.mjs → chunk-VLO5NFH2.mjs} +1 -1
  58. package/dist/cli/{chunk-JJGWHITQ.mjs → chunk-VQ75KX7G.mjs} +2 -2
  59. package/dist/cli/{chunk-3NTP2OSG.js → chunk-VV4XGZ24.js} +13 -13
  60. package/dist/cli/{chunk-LRDHPOZW.js → chunk-W6CZDTIR.js} +53 -53
  61. package/dist/cli/{chunk-7SERLBNR.js → chunk-WL7P32PI.js} +20 -20
  62. package/dist/cli/{chunk-4SMCFQ23.mjs → chunk-XD3MFTHA.mjs} +1 -1
  63. package/dist/cli/{chunk-E7WZOX2A.mjs → chunk-XFZX6FNM.mjs} +20 -6
  64. package/dist/cli/{chunk-DP64MD6U.mjs → chunk-XU6QNM4D.mjs} +1 -1
  65. package/dist/cli/{chunk-TN4TY6TT.mjs → chunk-YCOGPOUX.mjs} +2 -2
  66. package/dist/cli/{chunk-XLIHTJVM.js → chunk-YQKCH4R7.js} +20 -20
  67. package/dist/cli/{chunk-Z6XPSHKM.mjs → chunk-YY55NYAH.mjs} +133 -32
  68. package/dist/cli/command-docs.js +2 -2
  69. package/dist/cli/command-docs.mjs +1 -1
  70. package/dist/cli/{concurrent-runs-help-DNV2X5AZ.mjs → concurrent-runs-help-O3Q5IPLF.mjs} +6 -6
  71. package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +22 -0
  72. package/dist/cli/{csv-SA6ELJY6.js → csv-4ZQ2RATI.js} +13 -13
  73. package/dist/cli/{csv-ZXZGHWOM.mjs → csv-Y3BFPEM6.mjs} +4 -4
  74. package/dist/cli/{db-A54SP6AD.mjs → db-3JYY4JNN.mjs} +7 -7
  75. package/dist/cli/{db-JHFEIQBU.js → db-VEIFS4M7.js} +29 -29
  76. package/dist/cli/describe-EVJ4MFVU.mjs +50 -0
  77. package/dist/cli/describe-FG625QPF.js +50 -0
  78. package/dist/cli/describe-core.js +5 -5
  79. package/dist/cli/describe-core.mjs +4 -4
  80. package/dist/cli/{executions-TLFZRHBJ.js → executions-HPZXOOVX.js} +8 -8
  81. package/dist/cli/{executions-HL2M2DFU.mjs → executions-PCXZKEHM.mjs} +6 -6
  82. package/dist/cli/{feedback-QMBTNXVG.mjs → feedback-Y6VKZNY6.mjs} +6 -6
  83. package/dist/cli/{feedback-5UEX5UZK.js → feedback-ZKFHFVL6.js} +14 -14
  84. package/dist/cli/git-RUBMALLH.js +26 -0
  85. package/dist/cli/{git-LKGXVIVC.mjs → git-UMPR2QYC.mjs} +5 -5
  86. package/dist/cli/index.js +147 -147
  87. package/dist/cli/index.mjs +46 -46
  88. package/dist/cli/{integrations-6RUTLMN7.js → integrations-3GQCTRTF.js} +15 -15
  89. package/dist/cli/{integrations-FGGRVUJ7.mjs → integrations-V3TM6XAB.mjs} +7 -7
  90. package/dist/cli/{legacy-noops-YIPRMVXZ.mjs → legacy-noops-JZBUD7ZE.mjs} +6 -6
  91. package/dist/cli/{legacy-noops-J3Z7QRWZ.js → legacy-noops-VYCO7NGW.js} +9 -9
  92. package/dist/cli/{mcp-6LWFP7RW.js → mcp-4OIWTCE6.js} +24 -24
  93. package/dist/cli/{mcp-CHDYFO7F.mjs → mcp-PH4KZ76P.mjs} +4 -4
  94. package/dist/cli/{monitors-STM6A7OU.js → monitors-E2A6VPBY.js} +100 -100
  95. package/dist/cli/{monitors-UGRY2BXI.mjs → monitors-SSMGIDGX.mjs} +7 -7
  96. package/dist/cli/{org-3SYOUQCX.mjs → org-SFDKSK5D.mjs} +6 -6
  97. package/dist/cli/{org-ZOBSNSIB.js → org-WUDZGWBT.js} +121 -121
  98. package/dist/cli/{outcomes-Z3P2JE67.mjs → outcomes-QT7LQBPK.mjs} +6 -6
  99. package/dist/cli/{outcomes-H4YYAT5X.js → outcomes-Y7SZTLSL.js} +14 -14
  100. package/dist/cli/{play-SN5YWLS7.mjs → play-EK7KSFPL.mjs} +21 -21
  101. package/dist/cli/{play-SM4CW2GS.js → play-GDNHCRRR.js} +372 -372
  102. package/dist/cli/{providers-WZ4YBR5Y.mjs → providers-FVZLRXAU.mjs} +6 -6
  103. package/dist/cli/{providers-WZARYMCF.js → providers-ZKOSECLV.js} +9 -9
  104. package/dist/cli/{quickstart-PS4YHQJ6.js → quickstart-KSDKIXYD.js} +6 -6
  105. package/dist/cli/{quickstart-2575BNKA.mjs → quickstart-UJZ6PIQV.mjs} +4 -4
  106. package/dist/cli/{run-ZUHCZOJS.mjs → run-E7MZ7P35.mjs} +30 -28
  107. package/dist/cli/{run-FLZ6OTM7.js → run-PD2BBG6S.js} +51 -49
  108. package/dist/cli/search-TKSPTPHA.js +32 -0
  109. package/dist/cli/{search-HLPPKQEO.mjs → search-VTFUFTOY.mjs} +7 -7
  110. package/dist/cli/{search-output-RXJLU36B.js → search-output-G2AGDCOY.js} +9 -9
  111. package/dist/cli/{search-output-PDAXNOGP.mjs → search-output-PFVXQCWA.mjs} +6 -6
  112. package/dist/cli/{secrets-CGELYQ3H.mjs → secrets-7CIMEMX7.mjs} +6 -6
  113. package/dist/cli/{secrets-QJNG7G2Y.js → secrets-BCOQ4U7U.js} +15 -15
  114. package/dist/cli/sessions-4CO556VD.js +23 -0
  115. package/dist/cli/{sessions-ELMWVR4M.mjs → sessions-IUCQZEF7.mjs} +6 -6
  116. package/dist/cli/{settings-RR3LZXL7.mjs → settings-KZN62UQK.mjs} +12 -12
  117. package/dist/cli/{settings-44I44P5F.js → settings-REL4736M.js} +85 -85
  118. package/dist/cli/{setup-KGWRWH4B.mjs → setup-2P7OG3OU.mjs} +11 -14
  119. package/dist/cli/{setup-KTEYOCJO.js → setup-2XIVBBCS.js} +51 -54
  120. package/dist/cli/skills-JYT5DEY6.js +37 -0
  121. package/dist/cli/{skills-FPRID2I5.mjs → skills-VIGNDJKI.mjs} +7 -7
  122. package/dist/cli/tools-NTVUQ2TG.js +57 -0
  123. package/dist/cli/{tools-PI4WMDLY.mjs → tools-W3QT5EJY.mjs} +20 -20
  124. package/dist/cli/{update-VJOJAZ7B.mjs → update-GZVBVMY3.mjs} +9 -9
  125. package/dist/cli/update-TWJZPUZM.js +37 -0
  126. package/dist/cli/{views-OVPSINZO.mjs → views-BOGEH424.mjs} +6 -6
  127. package/dist/cli/{views-NTUOLNQU.js → views-TOLJNLSV.js} +21 -21
  128. package/dist/cli/{workflow-2UDYDM6F.js → workflow-ENWFRK5M.js} +17 -17
  129. package/dist/cli/{workflow-7OEFNXZC.mjs → workflow-VDG2FDQV.mjs} +7 -7
  130. package/dist/index.js +9 -9
  131. package/dist/index.mjs +6 -6
  132. package/dist/install-integrity.json +122 -122
  133. package/dist/release.d.mts +1 -1
  134. package/dist/release.d.ts +1 -1
  135. package/dist/release.js +2 -2
  136. package/dist/release.mjs +1 -1
  137. package/dist/server.js +5 -5
  138. package/dist/server.mjs +3 -3
  139. package/package.json +1 -1
  140. package/dist/cli/auth-MQCN7WGZ.js +0 -44
  141. package/dist/cli/chunk-AID3OYVJ.js +0 -8
  142. package/dist/cli/chunk-OVDNJAJN.mjs +0 -8
  143. package/dist/cli/concurrent-runs-help-CFJH4KXV.js +0 -22
  144. package/dist/cli/describe-PHQ33AGS.mjs +0 -50
  145. package/dist/cli/describe-RHJ4XRFI.js +0 -50
  146. package/dist/cli/git-4JWOOHBG.js +0 -26
  147. package/dist/cli/search-JJWVHR3N.js +0 -32
  148. package/dist/cli/sessions-DHTBT2GN.js +0 -23
  149. package/dist/cli/skills-EPZPEXI2.js +0 -37
  150. package/dist/cli/tools-IGQQ5TML.js +0 -57
  151. package/dist/cli/update-4RNCVYGE.js +0 -37
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkDP2VH7COjs = require('./chunk-DP2VH7CO.js');
5
+ var _chunkUYCZFQYQjs = require('./chunk-UYCZFQYQ.js');
6
6
 
7
7
 
8
8
 
@@ -11,11 +11,11 @@ var _chunkDP2VH7COjs = require('./chunk-DP2VH7CO.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkHEBO3XNZjs = require('./chunk-HEBO3XNZ.js');
14
+ var _chunk4DOFGIEJjs = require('./chunk-4DOFGIEJ.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkSBH4CKPNjs = require('./chunk-SBH4CKPN.js');
18
+ var _chunkFBAFX43Wjs = require('./chunk-FBAFX43W.js');
19
19
 
20
20
 
21
21
 
@@ -37,13 +37,14 @@ var _chunkSBH4CKPNjs = require('./chunk-SBH4CKPN.js');
37
37
 
38
38
 
39
39
 
40
- var _chunkHVI55MTKjs = require('./chunk-HVI55MTK.js');
40
+ var _chunk3IKGZ4CGjs = require('./chunk-3IKGZ4CG.js');
41
41
 
42
42
 
43
- var _chunkTFEXSHPMjs = require('./chunk-TFEXSHPM.js');
43
+ var _chunkLY5MMXFFjs = require('./chunk-LY5MMXFF.js');
44
44
 
45
45
 
46
- var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
46
+
47
+ var _chunkBVXIGOBZjs = require('./chunk-BVXIGOBZ.js');
47
48
 
48
49
 
49
50
  var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
@@ -56,29 +57,29 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
56
57
  var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
57
58
 
58
59
 
59
- var _chunkJLGP5XAJjs = require('./chunk-JLGP5XAJ.js');
60
+ var _chunkDUBXUAAOjs = require('./chunk-DUBXUAAO.js');
60
61
 
61
62
 
62
- var _chunkCACFJODGjs = require('./chunk-CACFJODG.js');
63
+ var _chunkOVEYWO4Hjs = require('./chunk-OVEYWO4H.js');
63
64
 
64
65
 
65
66
 
66
67
 
67
68
 
68
69
 
69
- var _chunkY6SP3JMIjs = require('./chunk-Y6SP3JMI.js');
70
+ var _chunk7OWI736Ejs = require('./chunk-7OWI736E.js');
70
71
 
71
72
 
72
73
 
73
74
 
74
- var _chunkWOCHZCUJjs = require('./chunk-WOCHZCUJ.js');
75
+ var _chunkGRZENGNEjs = require('./chunk-GRZENGNE.js');
75
76
 
76
77
 
77
78
 
78
79
 
79
80
 
80
81
 
81
- var _chunk2B5B5KAWjs = require('./chunk-2B5B5KAW.js');
82
+ var _chunk2HMN5H54js = require('./chunk-2HMN5H54.js');
82
83
 
83
84
 
84
85
 
@@ -87,12 +88,12 @@ var _chunk2B5B5KAWjs = require('./chunk-2B5B5KAW.js');
87
88
 
88
89
 
89
90
 
90
- var _chunkXLIHTJVMjs = require('./chunk-XLIHTJVM.js');
91
+ var _chunkYQKCH4R7js = require('./chunk-YQKCH4R7.js');
91
92
 
92
93
 
93
94
 
94
95
 
95
- var _chunkMLABYI4Mjs = require('./chunk-MLABYI4M.js');
96
+ var _chunkVIUUTEHYjs = require('./chunk-VIUUTEHY.js');
96
97
 
97
98
 
98
99
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
@@ -201,10 +202,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
201
202
  }
202
203
  };
203
204
  function pendingToolExecutionPath(input) {
204
- const config = _chunkMLABYI4Mjs.resolveConfig.call(void 0, );
205
+ const config = _chunkVIUUTEHYjs.resolveConfig.call(void 0, );
205
206
  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(_chunkCFJFUVX2js.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
206
207
  return _path.join.call(void 0,
207
- _chunkMLABYI4Mjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
208
+ _chunkVIUUTEHYjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
208
209
  `${PENDING_PREFIX}${fingerprint}.json`
209
210
  );
210
211
  }
@@ -349,6 +350,81 @@ function toolConnectionStatusMessage(input) {
349
350
  return null;
350
351
  }
351
352
 
353
+ // src/cli/tool-param-flags.ts
354
+ var NUMBER_TEXT = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;
355
+ function couldBeTyped(value) {
356
+ return value === "true" || value === "false" || NUMBER_TEXT.test(value);
357
+ }
358
+ function parseParamFlags(entries) {
359
+ const params = {};
360
+ for (const entry of entries) {
361
+ const eqIdx = entry.indexOf("=");
362
+ if (eqIdx <= 0) {
363
+ throw new Error(
364
+ `--param ${JSON.stringify(entry)} must be key=value, for example -p email=a@b.com. Use --input for a JSON object.`
365
+ );
366
+ }
367
+ params[entry.slice(0, eqIdx)] = entry.slice(eqIdx + 1);
368
+ }
369
+ return {
370
+ params,
371
+ typedCandidates: Object.entries(params).filter(([, value]) => couldBeTyped(value)).map(([key]) => key)
372
+ };
373
+ }
374
+ function isRecord2(value) {
375
+ return typeof value === "object" && value !== null && !Array.isArray(value);
376
+ }
377
+ function declaredTypes(schema, types = /* @__PURE__ */ new Set()) {
378
+ if (!isRecord2(schema)) return types;
379
+ const { type } = schema;
380
+ if (typeof type === "string") types.add(type);
381
+ if (Array.isArray(type)) {
382
+ for (const entry of type) if (typeof entry === "string") types.add(entry);
383
+ }
384
+ for (const key of ["anyOf", "oneOf", "allOf"]) {
385
+ const variants = schema[key];
386
+ if (Array.isArray(variants)) {
387
+ for (const variant of variants) declaredTypes(variant, types);
388
+ }
389
+ }
390
+ const values = [
391
+ ...Array.isArray(schema.enum) ? schema.enum : [],
392
+ ..."const" in schema ? [schema.const] : []
393
+ ];
394
+ for (const value of values) {
395
+ if (typeof value === "string") types.add("string");
396
+ if (typeof value === "boolean") types.add("boolean");
397
+ if (typeof value === "number") types.add("number");
398
+ }
399
+ return types;
400
+ }
401
+ function typedParamValue(inputSchema, key, text) {
402
+ const wrapped = _optionalChain([inputSchema, 'optionalAccess', _4 => _4.jsonSchema]);
403
+ const root = isRecord2(wrapped) ? wrapped : inputSchema;
404
+ const properties = _optionalChain([root, 'optionalAccess', _5 => _5.properties]);
405
+ if (!isRecord2(properties)) return text;
406
+ const types = declaredTypes(properties[key]);
407
+ if (types.size === 0 || types.has("string")) return text;
408
+ if (types.has("boolean") && (text === "true" || text === "false")) {
409
+ return text === "true";
410
+ }
411
+ if (NUMBER_TEXT.test(text)) {
412
+ const number = Number(text);
413
+ if (!Number.isFinite(number)) return text;
414
+ if (types.has("number")) return number;
415
+ if (types.has("integer") && Number.isInteger(number)) return number;
416
+ }
417
+ return text;
418
+ }
419
+
420
+ // src/cli/json-file-text.ts
421
+ function jsonFileText(bytes) {
422
+ if (bytes[0] === 255 && bytes[1] === 254) {
423
+ return new TextDecoder("utf-16le").decode(bytes.subarray(2));
424
+ }
425
+ return new TextDecoder("utf-8").decode(bytes).replace(/^/, "");
426
+ }
427
+
352
428
  // src/cli/commands/tools.ts
353
429
  var TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS = 750;
354
430
  var TOOL_COMMAND_TEMPLATES = {
@@ -356,13 +432,13 @@ var TOOL_COMMAND_TEMPLATES = {
356
432
  execute: "deepline run <toolId> --input '{...}'"
357
433
  };
358
434
  function toListedTool(tool) {
359
- if (_chunkHVI55MTKjs.isPlayLikeTool.call(void 0, tool)) {
435
+ if (_chunk3IKGZ4CGjs.isPlayLikeTool.call(void 0, tool)) {
360
436
  return {
361
437
  ...tool,
362
438
  description: listedToolDescription(tool),
363
439
  id: tool.toolId,
364
440
  type: "play",
365
- executeCommand: _chunkHVI55MTKjs.playRunCommandForTool.call(void 0, tool, tool.toolId)
441
+ executeCommand: _chunk3IKGZ4CGjs.playRunCommandForTool.call(void 0, tool, tool.toolId)
366
442
  };
367
443
  }
368
444
  return {
@@ -380,12 +456,9 @@ function parseGrepTerms(query, mode) {
380
456
  const matches = _nullishCoalesce(trimmed.match(/"([^"]+)"|'([^']+)'|\S+/g), () => ( []));
381
457
  return matches.map((term) => term.replace(/^["']|["']$/g, "").trim()).filter(Boolean);
382
458
  }
383
- function shellCommandArg(value) {
384
- return `'${value.replace(/'/g, `'\\''`)}'`;
385
- }
386
459
  function zeroMatchToolGuidance(options) {
387
460
  const categories = _nullishCoalesce(options.categories, () => ( []));
388
- const query = _nullishCoalesce(_optionalChain([options, 'access', _4 => _4.query, 'optionalAccess', _5 => _5.trim, 'call', _6 => _6()]), () => ( ""));
461
+ const query = _nullishCoalesce(_optionalChain([options, 'access', _6 => _6.query, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]), () => ( ""));
389
462
  const filterText = [
390
463
  categories.length ? `categories=${categories.join(",")}` : null,
391
464
  query ? `grep=${query}` : null,
@@ -395,12 +468,12 @@ function zeroMatchToolGuidance(options) {
395
468
  ...query ? [
396
469
  {
397
470
  label: "Use ranked semantic search for intent-style queries",
398
- command: `deepline search -- ${shellCommandArg(query)}`
471
+ command: `deepline search -- ${_chunkBVXIGOBZjs.shellArgument.call(void 0, query)}`
399
472
  },
400
473
  ...options.mode === "all" ? [
401
474
  {
402
475
  label: "Relax grep from AND to OR matching",
403
- command: `deepline tools grep --mode any -- ${shellCommandArg(query)}`
476
+ command: `deepline tools grep --mode any -- ${_chunkBVXIGOBZjs.shellArgument.call(void 0, query)}`
404
477
  }
405
478
  ] : []
406
479
  ] : [],
@@ -438,37 +511,37 @@ function firstSentence(text) {
438
511
  return (match ? match[0] : clean).trim();
439
512
  }
440
513
  function requiredInputIds(tool) {
441
- const inputSchema = _chunkHVI55MTKjs.recordField.call(void 0,
514
+ const inputSchema = _chunk3IKGZ4CGjs.recordField.call(void 0,
442
515
  tool,
443
516
  "inputSchema",
444
517
  "input_schema"
445
518
  );
446
- return _chunkHVI55MTKjs.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
519
+ return _chunk3IKGZ4CGjs.toolInputFieldsForDisplay.call(void 0, inputSchema).filter((field) => field.required === true).map((field) => String(_nullishCoalesce(field.name, () => ( "")))).filter(Boolean);
447
520
  }
448
521
  function notConnectedSuffix(tool) {
449
522
  const record = tool;
450
- const status = _chunkHVI55MTKjs.stringField.call(void 0, record, "credentialStatus", "credential_status");
523
+ const status = _chunk3IKGZ4CGjs.stringField.call(void 0, record, "credentialStatus", "credential_status");
451
524
  const connected = record.connected;
452
525
  const message = toolConnectionStatusMessage({
453
526
  connected: connected === false ? false : void 0,
454
527
  credentialStatus: status || void 0,
455
- connectionMessage: _chunkHVI55MTKjs.stringField.call(void 0, record, "connectionMessage", "connection_message") || void 0
528
+ connectionMessage: _chunk3IKGZ4CGjs.stringField.call(void 0, record, "connectionMessage", "connection_message") || void 0
456
529
  });
457
530
  return message ? ` - \u26A0 ${message}` : "";
458
531
  }
459
532
  function shortPricingHint(tool) {
460
- const pricing = _chunkHVI55MTKjs.recordField.call(void 0,
533
+ const pricing = _chunk3IKGZ4CGjs.recordField.call(void 0,
461
534
  tool,
462
535
  "pricing"
463
536
  );
464
537
  const credits = numberField(pricing, "creditsPerUnit", "credits_per_unit");
465
- const unit = _chunkHVI55MTKjs.stringField.call(void 0, pricing, "unit");
538
+ const unit = _chunk3IKGZ4CGjs.stringField.call(void 0, pricing, "unit");
466
539
  if (credits !== null) {
467
540
  return `${formatDecimal(credits)} cr/${unit || "unit"}`;
468
541
  }
469
- const summary = _chunkHVI55MTKjs.stringField.call(void 0, pricing, "summary");
542
+ const summary = _chunk3IKGZ4CGjs.stringField.call(void 0, pricing, "summary");
470
543
  if (summary) return summary;
471
- const displayText = _chunkHVI55MTKjs.stringField.call(void 0, pricing, "displayText", "display_text");
544
+ const displayText = _chunk3IKGZ4CGjs.stringField.call(void 0, pricing, "displayText", "display_text");
472
545
  return displayText || null;
473
546
  }
474
547
  function aggregateCategorySummaries(tools) {
@@ -512,13 +585,13 @@ function categoryEnumerationRender(summaries) {
512
585
  };
513
586
  }
514
587
  async function listToolCategories(emitJson, compact) {
515
- const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
588
+ const client = new (0, _chunkDUBXUAAOjs.DeeplineClient)();
516
589
  if (!emitJson) {
517
590
  const summaries2 = (await client.listToolCategories()).map((category) => ({
518
591
  ...category,
519
592
  description: describeToolCategory(category.name)
520
593
  }));
521
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
594
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
522
595
  { categories: summaries2, render: categoryEnumerationRender(summaries2) },
523
596
  { json: false }
524
597
  );
@@ -528,7 +601,7 @@ async function listToolCategories(emitJson, compact) {
528
601
  const items = rawTools.map(toListedTool);
529
602
  const summaries = aggregateCategorySummaries(rawTools);
530
603
  const outputItems = compact ? items.map(compactTool) : items;
531
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
604
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
532
605
  {
533
606
  tools: outputItems,
534
607
  count: outputItems.length,
@@ -547,7 +620,7 @@ function unknownCategoryError(category, summaries, emitJson) {
547
620
  const known = summaries.map((item) => item.name);
548
621
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
549
622
  if (emitJson) {
550
- _chunkXLIHTJVMjs.printJson.call(void 0, {
623
+ _chunkYQKCH4R7js.printJson.call(void 0, {
551
624
  ok: false,
552
625
  exitCode: 4,
553
626
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -561,13 +634,13 @@ function unknownCategoryError(category, summaries, emitJson) {
561
634
  const render = categoryEnumerationRender(summaries);
562
635
  console.error(message);
563
636
  console.error("");
564
- console.error(_chunkXLIHTJVMjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
637
+ console.error(_chunkYQKCH4R7js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
565
638
  console.error("");
566
639
  console.error(`Valid categories: ${known.join(", ")}`);
567
640
  return 4;
568
641
  }
569
642
  async function listToolsInCategory(category, emitJson) {
570
- const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
643
+ const client = new (0, _chunkDUBXUAAOjs.DeeplineClient)();
571
644
  const { tools: rawTools, categories } = await client.listToolsInCategory(category);
572
645
  const summaries = categories.map((item) => ({
573
646
  ...item,
@@ -576,7 +649,7 @@ async function listToolsInCategory(category, emitJson) {
576
649
  if (!summaries.some((item) => item.name === category)) {
577
650
  return unknownCategoryError(category, summaries, emitJson);
578
651
  }
579
- const rows = rawTools.filter((tool) => _optionalChain([tool, 'access', _7 => _7.categories, 'optionalAccess', _8 => _8.includes, 'call', _9 => _9(category)])).map((tool) => ({
652
+ const rows = rawTools.filter((tool) => _optionalChain([tool, 'access', _9 => _9.categories, 'optionalAccess', _10 => _10.includes, 'call', _11 => _11(category)])).map((tool) => ({
580
653
  id: tool.toolId,
581
654
  provider: tool.provider,
582
655
  required: requiredInputIds(tool),
@@ -603,7 +676,7 @@ async function listToolsInCategory(category, emitJson) {
603
676
  }
604
677
  ]
605
678
  };
606
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
679
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
607
680
  {
608
681
  category,
609
682
  total: rows.length,
@@ -616,7 +689,7 @@ async function listToolsInCategory(category, emitJson) {
616
689
  return 0;
617
690
  }
618
691
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
619
- const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
692
+ const client = new (0, _chunkDUBXUAAOjs.DeeplineClient)();
620
693
  const items = (await client.listTools({
621
694
  categories: requestedCategories.join(","),
622
695
  compact
@@ -645,7 +718,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
645
718
  ]
646
719
  };
647
720
  const outputItems = compact ? items.map(compactTool) : items;
648
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
721
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
649
722
  {
650
723
  tools: outputItems,
651
724
  count: outputItems.length,
@@ -661,16 +734,16 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
661
734
  return 0;
662
735
  }
663
736
  async function listTools(category, options = {}) {
664
- const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
737
+ const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _12 => _12.trim, 'call', _13 => _13()]), () => ( ""));
665
738
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
666
739
  const compact = options.compact !== false;
667
- const emitJson = options.json === true || _chunkXLIHTJVMjs.shouldEmitJson.call(void 0, );
740
+ const emitJson = options.json === true || _chunkYQKCH4R7js.shouldEmitJson.call(void 0, );
668
741
  if (positional && flagCategories.length > 0) {
669
742
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
670
743
  if (!flagIsSameSingle) {
671
744
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
672
745
  if (emitJson) {
673
- _chunkXLIHTJVMjs.printJson.call(void 0, {
746
+ _chunkYQKCH4R7js.printJson.call(void 0, {
674
747
  ok: false,
675
748
  exitCode: 2,
676
749
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -697,7 +770,7 @@ async function grepTools(queryInput, options = {}) {
697
770
  console.error("Usage: deepline tools grep <query> [--json]");
698
771
  return 1;
699
772
  }
700
- const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
773
+ const client = new (0, _chunkDUBXUAAOjs.DeeplineClient)();
701
774
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
702
775
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
703
776
  const jsonOutput = options.json === true;
@@ -721,7 +794,7 @@ async function grepTools(queryInput, options = {}) {
721
794
  query,
722
795
  mode
723
796
  }) : null;
724
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
797
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
725
798
  {
726
799
  tools: outputTools,
727
800
  count: outputTools.length,
@@ -739,7 +812,7 @@ async function grepTools(queryInput, options = {}) {
739
812
  } : {},
740
813
  commandTemplates: TOOL_COMMAND_TEMPLATES
741
814
  },
742
- { json: options.json || _chunkXLIHTJVMjs.shouldEmitJson.call(void 0, ) }
815
+ { json: options.json || _chunkYQKCH4R7js.shouldEmitJson.call(void 0, ) }
743
816
  );
744
817
  return 0;
745
818
  }
@@ -767,7 +840,7 @@ function compactTool(tool) {
767
840
  };
768
841
  }
769
842
  function playIdentifiers(play) {
770
- return [play.name, play.reference, ..._nullishCoalesce(play.aliases, () => ( []))].filter((value) => Boolean(_optionalChain([value, 'optionalAccess', _12 => _12.trim, 'call', _13 => _13()]))).map((value) => value.trim());
843
+ return [play.name, play.reference, ..._nullishCoalesce(play.aliases, () => ( []))].filter((value) => Boolean(_optionalChain([value, 'optionalAccess', _14 => _14.trim, 'call', _15 => _15()]))).map((value) => value.trim());
771
844
  }
772
845
  async function findPlayForToolId(client, toolId, cliInvocationId) {
773
846
  const requested = toolId.trim();
@@ -794,8 +867,8 @@ function printPlayAliasToolError(toolId, play) {
794
867
  console.error(playAliasToolErrorMessage(toolId, play));
795
868
  }
796
869
  function playLikeToolExecuteErrorMessage(toolId, tool) {
797
- const playReference = tool ? _chunkHVI55MTKjs.playReferenceForTool.call(void 0, tool) : null;
798
- const nextStep = playReference ? `Use: deepline run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunkHVI55MTKjs.playSearchCommandForToolId.call(void 0, toolId)}`;
870
+ const playReference = tool ? _chunk3IKGZ4CGjs.playReferenceForTool.call(void 0, tool) : null;
871
+ const nextStep = playReference ? `Use: deepline run ${playReference} --input '{...}'` : `Find the maintained workflow with: ${_chunk3IKGZ4CGjs.playSearchCommandForToolId.call(void 0, toolId)}`;
799
872
  return [
800
873
  `${toolId} is a workflow/play entry, not an atomic provider tool.`,
801
874
  nextStep,
@@ -835,13 +908,13 @@ Output:
835
908
  activity.
836
909
  `
837
910
  );
838
- _chunkHEBO3XNZjs.registerIntegrationBalanceCommand.call(void 0, tools, true);
839
- _chunkHEBO3XNZjs.registerWorkspaceConnectionListCommand.call(void 0, tools, "workspace-connections", true);
840
- _chunkHEBO3XNZjs.registerLegacyHubSpotMembersCommand.call(void 0, tools, true);
841
- _chunkHEBO3XNZjs.registerLegacyWorkspaceConnectionCommand.call(void 0, tools, true);
842
- _chunkHEBO3XNZjs.registerLegacyCalendarDelegationCommand.call(void 0, tools, true);
843
- _chunkHEBO3XNZjs.registerLegacyAvailabilityCalendarsCommand.call(void 0, tools, true);
844
- _chunkHEBO3XNZjs.registerIntegrationConnectCommand.call(void 0, tools, false, true);
911
+ _chunk4DOFGIEJjs.registerIntegrationBalanceCommand.call(void 0, tools, true);
912
+ _chunk4DOFGIEJjs.registerWorkspaceConnectionListCommand.call(void 0, tools, "workspace-connections", true);
913
+ _chunk4DOFGIEJjs.registerLegacyHubSpotMembersCommand.call(void 0, tools, true);
914
+ _chunk4DOFGIEJjs.registerLegacyWorkspaceConnectionCommand.call(void 0, tools, true);
915
+ _chunk4DOFGIEJjs.registerLegacyCalendarDelegationCommand.call(void 0, tools, true);
916
+ _chunk4DOFGIEJjs.registerLegacyAvailabilityCalendarsCommand.call(void 0, tools, true);
917
+ _chunk4DOFGIEJjs.registerIntegrationConnectCommand.call(void 0, tools, false, true);
845
918
  tools.command("list [category]").description("Browse tool categories, or list every tool in a category.").addHelpText(
846
919
  "after",
847
920
  `
@@ -874,7 +947,7 @@ Examples:
874
947
  json: Boolean(options.json)
875
948
  });
876
949
  });
877
- _chunkSBH4CKPNjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
950
+ _chunkFBAFX43Wjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
878
951
  tools.command("grep <query>").description(
879
952
  "Regex grep over tool ids, descriptions, categories, and input fields."
880
953
  ).addHelpText(
@@ -909,7 +982,7 @@ Examples:
909
982
  });
910
983
  const addToolMetadataCommand = (command) => {
911
984
  let compatibilityMetadata;
912
- _chunkY6SP3JMIjs.registerCompatibilityCatalog.call(void 0, command, () => ({
985
+ _chunk7OWI736Ejs.registerCompatibilityCatalog.call(void 0, command, () => ({
913
986
  toolId: command.args[0],
914
987
  acceptMetadata: (metadata) => {
915
988
  compatibilityMetadata = metadata;
@@ -979,7 +1052,7 @@ Examples:
979
1052
  process.exitCode = await narrowView();
980
1053
  return;
981
1054
  }
982
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-RHJ4XRFI.js")));
1055
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FG625QPF.js")));
983
1056
  process.exitCode = await describeAnything(
984
1057
  toolId,
985
1058
  {
@@ -994,7 +1067,7 @@ Examples:
994
1067
  });
995
1068
  };
996
1069
  addToolMetadataCommand(
997
- _chunkDP2VH7COjs.addDescribeOptions.call(void 0,
1070
+ _chunkUYCZFQYQjs.addDescribeOptions.call(void 0,
998
1071
  tools.command("describe <toolId>", { hidden: true }).alias("get"),
999
1072
  { json: false }
1000
1073
  )
@@ -1063,7 +1136,7 @@ Examples:
1063
1136
  options,
1064
1137
  void 0,
1065
1138
  true,
1066
- _chunkWOCHZCUJjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1139
+ _chunkGRZENGNEjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1067
1140
  );
1068
1141
  }
1069
1142
  );
@@ -1071,13 +1144,13 @@ Examples:
1071
1144
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1072
1145
  let metadata;
1073
1146
  const startedAt = performance.now();
1074
- const baseUrl = _chunkMLABYI4Mjs.resolveConfig.call(void 0, ).baseUrl;
1075
- _chunkWOCHZCUJjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1076
- const result = _chunkY6SP3JMIjs.runToolExecuteStage.call(void 0,
1147
+ const baseUrl = _chunkVIUUTEHYjs.resolveConfig.call(void 0, ).baseUrl;
1148
+ _chunkGRZENGNEjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1149
+ const result = _chunk7OWI736Ejs.runToolExecuteStage.call(void 0,
1077
1150
  "SDK compatibility",
1078
- () => _chunk2B5B5KAWjs.checkSdkCompatibility.call(void 0, baseUrl, {
1151
+ () => _chunk2HMN5H54js.checkSdkCompatibility.call(void 0, baseUrl, {
1079
1152
  command: "tools execute",
1080
- skillsVersion: _chunkMLABYI4Mjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1153
+ skillsVersion: _chunkVIUUTEHYjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1081
1154
  persistCache: false,
1082
1155
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1083
1156
  catalog: {
@@ -1091,7 +1164,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1091
1164
  })
1092
1165
  ).then(
1093
1166
  (compatibility) => {
1094
- _chunkWOCHZCUJjs.recordCliTrace.call(void 0, {
1167
+ _chunkGRZENGNEjs.recordCliTrace.call(void 0, {
1095
1168
  phase: "cli.tool_execute_compatibility_ready",
1096
1169
  ms: performance.now() - startedAt,
1097
1170
  ok: compatibility.error === null,
@@ -1100,7 +1173,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1100
1173
  return compatibility;
1101
1174
  },
1102
1175
  (error) => {
1103
- _chunkWOCHZCUJjs.recordCliTrace.call(void 0, {
1176
+ _chunkGRZENGNEjs.recordCliTrace.call(void 0, {
1104
1177
  phase: "cli.tool_execute_compatibility_ready",
1105
1178
  ms: performance.now() - startedAt,
1106
1179
  ok: false
@@ -1115,7 +1188,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1115
1188
  console.error("Usage: deepline tools describe <toolId> [--json]");
1116
1189
  return 1;
1117
1190
  }
1118
- const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
1191
+ const client = new (0, _chunkDUBXUAAOjs.DeeplineClient)();
1119
1192
  let tool;
1120
1193
  try {
1121
1194
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1174,12 +1247,12 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1174
1247
  const lines = toolPricingOnlyLines(tool, toolId);
1175
1248
  if (inferenceQuote)
1176
1249
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1177
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0,
1250
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0,
1178
1251
  {
1179
1252
  toolId: String(tool.toolId || toolId),
1180
- cost: _chunkHVI55MTKjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1253
+ cost: _chunk3IKGZ4CGjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
1181
1254
  ...modelDescription ? { modelOptions: modelDescription } : {},
1182
- ..._chunkHVI55MTKjs.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunkHVI55MTKjs.recordField.call(void 0, tool, "pricing") } : {},
1255
+ ..._chunk3IKGZ4CGjs.isMonitorTypeTool.call(void 0, tool) ? { pricing: _chunk3IKGZ4CGjs.recordField.call(void 0, tool, "pricing") } : {},
1183
1256
  ...inferenceQuote ? { inferenceQuote } : {}
1184
1257
  },
1185
1258
  {
@@ -1190,14 +1263,14 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1190
1263
  );
1191
1264
  return 0;
1192
1265
  }
1193
- if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunkHVI55MTKjs.isMonitorTypeTool.call(void 0, tool) && !_chunkHVI55MTKjs.isMonitorVariantIndex.call(void 0, tool) && !_chunkHVI55MTKjs.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1194
- const contract = _chunkHVI55MTKjs.toolContractJsonForDescribe.call(void 0,
1266
+ if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !_chunk3IKGZ4CGjs.isMonitorTypeTool.call(void 0, tool) && !_chunk3IKGZ4CGjs.isMonitorVariantIndex.call(void 0, tool) && !_chunk3IKGZ4CGjs.isPlayLikeTool.call(void 0, tool) && (options.json || options.contractJson)) {
1267
+ const contract = _chunk3IKGZ4CGjs.toolContractJsonForDescribe.call(void 0,
1195
1268
  tool,
1196
1269
  toolId,
1197
1270
  void 0,
1198
1271
  seedToolListScript
1199
1272
  );
1200
- _chunkXLIHTJVMjs.printCompactJson.call(void 0, {
1273
+ _chunkYQKCH4R7js.printCompactJson.call(void 0, {
1201
1274
  toolId: contract.toolId,
1202
1275
  ...options.schemaOnly ? {
1203
1276
  inputSchema: contract.inputSchema,
@@ -1220,8 +1293,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1220
1293
  return 0;
1221
1294
  }
1222
1295
  if (options.contractJson) {
1223
- _chunkXLIHTJVMjs.printCompactJson.call(void 0, {
1224
- ..._chunkHVI55MTKjs.toolContractJsonForDescribe.call(void 0,
1296
+ _chunkYQKCH4R7js.printCompactJson.call(void 0, {
1297
+ ..._chunk3IKGZ4CGjs.toolContractJsonForDescribe.call(void 0,
1225
1298
  tool,
1226
1299
  toolId,
1227
1300
  void 0,
@@ -1234,8 +1307,8 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1234
1307
  }
1235
1308
  const emitJson = options.json === true;
1236
1309
  if (emitJson) {
1237
- _chunkXLIHTJVMjs.printCompactJson.call(void 0, {
1238
- ..._chunkHVI55MTKjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1310
+ _chunkYQKCH4R7js.printCompactJson.call(void 0, {
1311
+ ..._chunk3IKGZ4CGjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1239
1312
  ...modelDescription ? { modelOptions: modelDescription } : {},
1240
1313
  ...inferenceQuote ? { inferenceQuote } : {}
1241
1314
  });
@@ -1260,7 +1333,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1260
1333
  printCompactToolContract(tool, toolId);
1261
1334
  if (modelDescription) {
1262
1335
  process.stdout.write(`
1263
- ${_chunkHVI55MTKjs.formatModelDescription.call(void 0, modelDescription)}`);
1336
+ ${_chunk3IKGZ4CGjs.formatModelDescription.call(void 0, modelDescription)}`);
1264
1337
  }
1265
1338
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1266
1339
  return 0;
@@ -1268,7 +1341,7 @@ ${_chunkHVI55MTKjs.formatModelDescription.call(void 0, modelDescription)}`);
1268
1341
  printCompactToolContract(tool, toolId);
1269
1342
  if (modelDescription) {
1270
1343
  process.stdout.write(`
1271
- ${_chunkHVI55MTKjs.formatModelDescription.call(void 0, modelDescription)}`);
1344
+ ${_chunk3IKGZ4CGjs.formatModelDescription.call(void 0, modelDescription)}`);
1272
1345
  }
1273
1346
  if (inferenceQuote) printInferenceQuoteSummary(inferenceQuote);
1274
1347
  return 0;
@@ -1285,10 +1358,10 @@ function printInferenceQuoteSummary(quote) {
1285
1358
  for (const line of inferenceQuoteSummaryLines(quote)) console.log(line);
1286
1359
  }
1287
1360
  function printMonitorTypeFilters(tool) {
1288
- const schema = _chunkHVI55MTKjs.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1289
- const properties = _chunkHVI55MTKjs.recordField.call(void 0, schema, "properties");
1361
+ const schema = _chunk3IKGZ4CGjs.recordField.call(void 0, tool, "payload_schema", "payloadSchema");
1362
+ const properties = _chunk3IKGZ4CGjs.recordField.call(void 0, schema, "properties");
1290
1363
  const required = new Set(
1291
- _chunkHVI55MTKjs.arrayField.call(void 0, schema, "required").filter(
1364
+ _chunk3IKGZ4CGjs.arrayField.call(void 0, schema, "required").filter(
1292
1365
  (v) => typeof v === "string"
1293
1366
  )
1294
1367
  );
@@ -1299,24 +1372,24 @@ function printMonitorTypeFilters(tool) {
1299
1372
  }
1300
1373
  console.log("Deploy filters (set in the monitor payload):");
1301
1374
  for (const name of names) {
1302
- const field = _chunkHVI55MTKjs.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1375
+ const field = _chunk3IKGZ4CGjs.isRecord.call(void 0, properties[name]) ? properties[name] : {};
1303
1376
  const star = required.has(name) ? "*" : "";
1304
- const enumVals = _chunkHVI55MTKjs.arrayField.call(void 0, field, "enum").filter(
1377
+ const enumVals = _chunk3IKGZ4CGjs.arrayField.call(void 0, field, "enum").filter(
1305
1378
  (v) => typeof v === "string"
1306
1379
  );
1307
- const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunkHVI55MTKjs.stringField.call(void 0, field, "type") || "string";
1308
- const desc = _chunkHVI55MTKjs.stringField.call(void 0, field, "description");
1380
+ const type = enumVals.length ? `one of [${enumVals.join(", ")}]` : _chunk3IKGZ4CGjs.stringField.call(void 0, field, "type") || "string";
1381
+ const desc = _chunk3IKGZ4CGjs.stringField.call(void 0, field, "description");
1309
1382
  console.log(`- ${name}${star}: ${type}${desc ? ` - ${desc}` : ""}`);
1310
1383
  }
1311
1384
  }
1312
1385
  function printMonitorTypeFilterExamples(tool) {
1313
- const documentation = _chunkHVI55MTKjs.recordField.call(void 0, tool, "documentation");
1314
- const fields = _chunkHVI55MTKjs.recordField.call(void 0, documentation, "fields");
1386
+ const documentation = _chunk3IKGZ4CGjs.recordField.call(void 0, tool, "documentation");
1387
+ const fields = _chunk3IKGZ4CGjs.recordField.call(void 0, documentation, "fields");
1315
1388
  const examples = Object.entries(fields).flatMap(([name, rawField]) => {
1316
- const grammar = _chunkHVI55MTKjs.recordField.call(void 0, _chunkHVI55MTKjs.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1317
- const example = _chunkHVI55MTKjs.stringField.call(void 0, grammar, "example");
1389
+ const grammar = _chunk3IKGZ4CGjs.recordField.call(void 0, _chunk3IKGZ4CGjs.isRecord.call(void 0, rawField) ? rawField : {}, "grammar");
1390
+ const example = _chunk3IKGZ4CGjs.stringField.call(void 0, grammar, "example");
1318
1391
  const values = [
1319
- ..._chunkHVI55MTKjs.arrayField.call(void 0, grammar, "examples").filter(
1392
+ ..._chunk3IKGZ4CGjs.arrayField.call(void 0, grammar, "examples").filter(
1320
1393
  (value) => typeof value === "string" && Boolean(value)
1321
1394
  ),
1322
1395
  ...example ? [example] : []
@@ -1331,21 +1404,21 @@ function printMonitorTypeFilterExamples(tool) {
1331
1404
  }
1332
1405
  }
1333
1406
  function printMonitorTypeStreams(tool) {
1334
- const streams = _chunkHVI55MTKjs.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1335
- _chunkHVI55MTKjs.isRecord
1407
+ const streams = _chunk3IKGZ4CGjs.arrayField.call(void 0, tool, "streams", "output_streams").filter(
1408
+ _chunk3IKGZ4CGjs.isRecord
1336
1409
  );
1337
1410
  if (!streams.length) return;
1338
1411
  console.log("");
1339
1412
  console.log("Filter columns (a play's sqlListeners.where, per stream):");
1340
1413
  for (const stream of streams) {
1341
- const name = _chunkHVI55MTKjs.stringField.call(void 0, stream, "stream");
1342
- const cols = _chunkHVI55MTKjs.arrayField.call(void 0, stream, "columns").filter(_chunkHVI55MTKjs.isRecord).map((col) => _chunkHVI55MTKjs.stringField.call(void 0, col, "name")).filter(Boolean);
1414
+ const name = _chunk3IKGZ4CGjs.stringField.call(void 0, stream, "stream");
1415
+ const cols = _chunk3IKGZ4CGjs.arrayField.call(void 0, stream, "columns").filter(_chunk3IKGZ4CGjs.isRecord).map((col) => _chunk3IKGZ4CGjs.stringField.call(void 0, col, "name")).filter(Boolean);
1343
1416
  console.log(`- ${name}: ${cols.join(", ")}`);
1344
1417
  }
1345
1418
  }
1346
1419
  function monitorTypePricingLines(tool) {
1347
- const pricing = _chunkHVI55MTKjs.recordField.call(void 0, tool, "pricing");
1348
- const byType = _chunkHVI55MTKjs.recordField.call(void 0,
1420
+ const pricing = _chunk3IKGZ4CGjs.recordField.call(void 0, tool, "pricing");
1421
+ const byType = _chunk3IKGZ4CGjs.recordField.call(void 0,
1349
1422
  pricing,
1350
1423
  "pricing_by_radar_type",
1351
1424
  "pricingByRadarType"
@@ -1356,9 +1429,9 @@ function monitorTypePricingLines(tool) {
1356
1429
  }
1357
1430
  const lines = ["Pricing (Deepline credits per accepted event):"];
1358
1431
  for (const key of keys) {
1359
- const entry = _chunkHVI55MTKjs.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1432
+ const entry = _chunk3IKGZ4CGjs.isRecord.call(void 0, byType[key]) ? byType[key] : {};
1360
1433
  const credits = numberField(entry, "deepline_credits", "deeplineCredits");
1361
- const display = _chunkHVI55MTKjs.stringField.call(void 0, entry, "display");
1434
+ const display = _chunk3IKGZ4CGjs.stringField.call(void 0, entry, "display");
1362
1435
  const shown = display || (credits !== null ? `${formatDecimal(credits)} credits/event` : "not listed");
1363
1436
  lines.push(`- ${key}: ${shown}`);
1364
1437
  }
@@ -1368,20 +1441,20 @@ function printMonitorTypePricing(tool) {
1368
1441
  for (const line of monitorTypePricingLines(tool)) console.log(line);
1369
1442
  }
1370
1443
  function printMonitorTypeDeploy(tool) {
1371
- const deploy = _chunkHVI55MTKjs.recordField.call(void 0, tool, "deploy");
1372
- const toolId = _chunkHVI55MTKjs.stringField.call(void 0, tool, "toolId");
1373
- const example = _chunkHVI55MTKjs.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
1444
+ const deploy = _chunk3IKGZ4CGjs.recordField.call(void 0, tool, "deploy");
1445
+ const toolId = _chunk3IKGZ4CGjs.stringField.call(void 0, tool, "toolId");
1446
+ const example = _chunk3IKGZ4CGjs.stringField.call(void 0, deploy, "example") || `deepline monitors deploy '{"key":"...","tool":"${toolId}","payload":{...}}'`;
1374
1447
  console.log("Deploy (a monitor type is deployed, not executed):");
1375
1448
  console.log(` ${example}`);
1376
1449
  }
1377
1450
  function printMonitorTypeContract(tool, requestedToolId) {
1378
- const toolId = _chunkHVI55MTKjs.stringField.call(void 0, tool, "toolId") || requestedToolId;
1451
+ const toolId = _chunk3IKGZ4CGjs.stringField.call(void 0, tool, "toolId") || requestedToolId;
1379
1452
  console.log(toolId);
1380
- const displayName = _chunkHVI55MTKjs.stringField.call(void 0, tool, "displayName");
1453
+ const displayName = _chunk3IKGZ4CGjs.stringField.call(void 0, tool, "displayName");
1381
1454
  if (displayName) console.log(`Best for: ${displayName}`);
1382
- const description = _chunkHVI55MTKjs.stringField.call(void 0, tool, "description");
1455
+ const description = _chunk3IKGZ4CGjs.stringField.call(void 0, tool, "description");
1383
1456
  if (description) console.log(`Description: ${description}`);
1384
- const categories = _chunkHVI55MTKjs.arrayField.call(void 0, tool, "categories").filter(
1457
+ const categories = _chunk3IKGZ4CGjs.arrayField.call(void 0, tool, "categories").filter(
1385
1458
  (v) => typeof v === "string"
1386
1459
  );
1387
1460
  if (categories.length) console.log(`Tags: ${categories.join(", ")}`);
@@ -1401,31 +1474,31 @@ function printMonitorTypeContract(tool, requestedToolId) {
1401
1474
  console.log(`More: deepline describe ${toolId}`);
1402
1475
  }
1403
1476
  function toolGuidanceLines(guidance) {
1404
- const record = _chunkHVI55MTKjs.isRecord.call(void 0, guidance) ? guidance : {};
1405
- const toolGuidance = _chunkHVI55MTKjs.stringField.call(void 0, record, "tool");
1406
- const providerGuidance = _chunkHVI55MTKjs.stringField.call(void 0, record, "provider");
1477
+ const record = _chunk3IKGZ4CGjs.isRecord.call(void 0, guidance) ? guidance : {};
1478
+ const toolGuidance = _chunk3IKGZ4CGjs.stringField.call(void 0, record, "tool");
1479
+ const providerGuidance = _chunk3IKGZ4CGjs.stringField.call(void 0, record, "provider");
1407
1480
  return [
1408
1481
  ...toolGuidance ? [`- This tool: ${toolGuidance}`] : [],
1409
1482
  ...providerGuidance ? [`- Provider: ${providerGuidance}`] : []
1410
1483
  ];
1411
1484
  }
1412
1485
  function printCompactToolContract(tool, requestedToolId) {
1413
- if (_chunkHVI55MTKjs.isMonitorTypeTool.call(void 0, tool)) {
1486
+ if (_chunk3IKGZ4CGjs.isMonitorTypeTool.call(void 0, tool)) {
1414
1487
  printMonitorTypeContract(tool, requestedToolId);
1415
1488
  return;
1416
1489
  }
1417
- const contract = _chunkHVI55MTKjs.toolContractJsonForDescribe.call(void 0,
1490
+ const contract = _chunk3IKGZ4CGjs.toolContractJsonForDescribe.call(void 0,
1418
1491
  tool,
1419
1492
  requestedToolId,
1420
1493
  void 0,
1421
1494
  seedToolListScript
1422
1495
  );
1423
- const cost = _chunkHVI55MTKjs.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1424
- const getters = _chunkHVI55MTKjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1496
+ const cost = _chunk3IKGZ4CGjs.isRecord.call(void 0, contract.cost) ? contract.cost : {};
1497
+ const getters = _chunk3IKGZ4CGjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1425
1498
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1426
1499
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1427
- const inputFields = _chunkHVI55MTKjs.recursiveToolInputFieldsForDisplay.call(void 0,
1428
- _chunkHVI55MTKjs.recordField.call(void 0, contract, "inputSchema")
1500
+ const inputFields = _chunk3IKGZ4CGjs.recursiveToolInputFieldsForDisplay.call(void 0,
1501
+ _chunk3IKGZ4CGjs.recordField.call(void 0, contract, "inputSchema")
1429
1502
  );
1430
1503
  console.log(String(contract.toolId));
1431
1504
  if (contract.displayName) console.log(`Best for: ${contract.displayName}`);
@@ -1442,9 +1515,9 @@ function printCompactToolContract(tool, requestedToolId) {
1442
1515
  printToolOutputArrayShape(contract);
1443
1516
  printToolExecutionHints(contract);
1444
1517
  if (contract.deprecated === true) {
1445
- const deprecation = _chunkHVI55MTKjs.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1446
- const message = _chunkHVI55MTKjs.stringField.call(void 0, deprecation, "message");
1447
- const replacementToolId = _chunkHVI55MTKjs.stringField.call(void 0,
1518
+ const deprecation = _chunk3IKGZ4CGjs.isRecord.call(void 0, contract.deprecation) ? contract.deprecation : {};
1519
+ const message = _chunk3IKGZ4CGjs.stringField.call(void 0, deprecation, "message");
1520
+ const replacementToolId = _chunk3IKGZ4CGjs.stringField.call(void 0,
1448
1521
  deprecation,
1449
1522
  "replacementToolId",
1450
1523
  "replacement_tool_id"
@@ -1467,12 +1540,12 @@ function printCompactToolContract(tool, requestedToolId) {
1467
1540
  console.log("");
1468
1541
  console.log("Inputs:");
1469
1542
  for (const field of inputFields) {
1470
- if (!_chunkHVI55MTKjs.isRecord.call(void 0, field)) continue;
1471
- const name = _chunkHVI55MTKjs.stringField.call(void 0, field, "name");
1543
+ if (!_chunk3IKGZ4CGjs.isRecord.call(void 0, field)) continue;
1544
+ const name = _chunk3IKGZ4CGjs.stringField.call(void 0, field, "name");
1472
1545
  if (!name) continue;
1473
1546
  const required = field.required ? "*" : "";
1474
- const type = _chunkHVI55MTKjs.stringField.call(void 0, field, "type") || "unknown";
1475
- const description = _chunkHVI55MTKjs.stringField.call(void 0, field, "description");
1547
+ const type = _chunk3IKGZ4CGjs.stringField.call(void 0, field, "type") || "unknown";
1548
+ const description = _chunk3IKGZ4CGjs.stringField.call(void 0, field, "description");
1476
1549
  const enumValues = Array.isArray(field.enum) ? field.enum : [];
1477
1550
  const enumSuffix = enumValues.length ? ` enum=${enumValues.map(String).join("|")}` : "";
1478
1551
  const itemBoundsSuffix = arrayItemBoundsSuffix(field);
@@ -1487,8 +1560,8 @@ function printCompactToolContract(tool, requestedToolId) {
1487
1560
  }
1488
1561
  console.log("");
1489
1562
  printToolExamplesOnly(tool, requestedToolId);
1490
- const starterScript = _chunkHVI55MTKjs.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1491
- const starterPath = _chunkHVI55MTKjs.stringField.call(void 0, starterScript, "path");
1563
+ const starterScript = _chunk3IKGZ4CGjs.isRecord.call(void 0, contract.starterScript) ? contract.starterScript : {};
1564
+ const starterPath = _chunk3IKGZ4CGjs.stringField.call(void 0, starterScript, "path");
1492
1565
  if (starterPath) {
1493
1566
  console.log("");
1494
1567
  console.log(`Starter script: ${starterPath}`);
@@ -1499,16 +1572,16 @@ function printCompactToolContract(tool, requestedToolId) {
1499
1572
  console.log("Getters:");
1500
1573
  if (listGetters.length) console.log(listGetterHeading());
1501
1574
  for (const entry of listGetters) {
1502
- if (_chunkHVI55MTKjs.isRecord.call(void 0, entry))
1575
+ if (_chunk3IKGZ4CGjs.isRecord.call(void 0, entry))
1503
1576
  console.log(
1504
- `- ${_chunkHVI55MTKjs.stringField.call(void 0, entry, "name")}: ${_chunkHVI55MTKjs.playResultExpression.call(void 0, entry)}`
1577
+ `- ${_chunk3IKGZ4CGjs.stringField.call(void 0, entry, "name")}: ${_chunk3IKGZ4CGjs.playResultExpression.call(void 0, entry)}`
1505
1578
  );
1506
1579
  }
1507
1580
  if (valueGetters.length) console.log("Values:");
1508
1581
  for (const entry of valueGetters) {
1509
- if (_chunkHVI55MTKjs.isRecord.call(void 0, entry))
1582
+ if (_chunk3IKGZ4CGjs.isRecord.call(void 0, entry))
1510
1583
  console.log(
1511
- `- ${_chunkHVI55MTKjs.stringField.call(void 0, entry, "name")}: ${_chunkHVI55MTKjs.playResultExpression.call(void 0, entry)}`
1584
+ `- ${_chunk3IKGZ4CGjs.stringField.call(void 0, entry, "name")}: ${_chunk3IKGZ4CGjs.playResultExpression.call(void 0, entry)}`
1512
1585
  );
1513
1586
  }
1514
1587
  }
@@ -1519,22 +1592,22 @@ function printCompactToolContract(tool, requestedToolId) {
1519
1592
  console.log(`More: deepline describe ${contract.toolId}`);
1520
1593
  }
1521
1594
  function toolPricingOnlyLines(tool, requestedToolId, options = {}) {
1522
- if (_chunkHVI55MTKjs.isMonitorTypeTool.call(void 0, tool)) {
1595
+ if (_chunk3IKGZ4CGjs.isMonitorTypeTool.call(void 0, tool)) {
1523
1596
  return monitorTypePricingLines(tool);
1524
1597
  }
1525
1598
  const toolId = String(tool.toolId || requestedToolId);
1526
- const cost = _chunkHVI55MTKjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1527
- const pricingModel = _chunkHVI55MTKjs.stringField.call(void 0, cost, "pricingModel") || "unknown";
1528
- const billing = _chunkHVI55MTKjs.stringField.call(void 0, cost, "billingSourceLabel") || _chunkHVI55MTKjs.stringField.call(void 0, cost, "billingSource") || _chunkHVI55MTKjs.stringField.call(void 0, cost, "billingMode") || "unknown";
1529
- const explicitUnit = _chunkHVI55MTKjs.stringField.call(void 0, cost, "unit");
1599
+ const cost = _chunk3IKGZ4CGjs.Capability.fromCatalogEntry(tool).describe().customerCost();
1600
+ const pricingModel = _chunk3IKGZ4CGjs.stringField.call(void 0, cost, "pricingModel") || "unknown";
1601
+ const billing = _chunk3IKGZ4CGjs.stringField.call(void 0, cost, "billingSourceLabel") || _chunk3IKGZ4CGjs.stringField.call(void 0, cost, "billingSource") || _chunk3IKGZ4CGjs.stringField.call(void 0, cost, "billingMode") || "unknown";
1602
+ const explicitUnit = _chunk3IKGZ4CGjs.stringField.call(void 0, cost, "unit");
1530
1603
  const unit = explicitUnit || (pricingModel === "per_page" ? "page" : pricingModel === "per_result" ? "result" : pricingModel === "fixed" ? "call" : pricingModel.replace(/^per_/, "") || "unit");
1531
1604
  const credits = numberField(cost, "deeplineCreditsPerPricingUnit");
1532
1605
  const usd = numberField(cost, "deeplineUsdPerPricingUnit");
1533
- const displayText = _chunkHVI55MTKjs.stringField.call(void 0, cost, "displayText");
1534
- const summary = _chunkHVI55MTKjs.stringField.call(void 0, cost, "summary");
1606
+ const displayText = _chunk3IKGZ4CGjs.stringField.call(void 0, cost, "displayText");
1607
+ const summary = _chunk3IKGZ4CGjs.stringField.call(void 0, cost, "summary");
1535
1608
  const price = displayText || summary || (credits !== null ? `${formatDecimal(credits)} Deepline credits${usd !== null ? ` / ${formatUsd(usd)}` : ""} per ${unit}` : "pricing unavailable");
1536
1609
  const reference = cost.observedReference;
1537
- const observedMax = _chunkHVI55MTKjs.observedMaxText.call(void 0, cost);
1610
+ const observedMax = _chunk3IKGZ4CGjs.observedMaxText.call(void 0, cost);
1538
1611
  return [
1539
1612
  `${_nullishCoalesce(options.heading, () => ( `Pricing: ${toolId}`))}: ${price}`,
1540
1613
  ...observedMax ? [` ${observedMax}`] : [],
@@ -1551,19 +1624,19 @@ function printToolPricingOnly(tool, requestedToolId, options = {}) {
1551
1624
  console.log(line);
1552
1625
  }
1553
1626
  function printToolSchemaOnly(tool, requestedToolId) {
1554
- if (_chunkHVI55MTKjs.isMonitorTypeTool.call(void 0, tool)) {
1627
+ if (_chunk3IKGZ4CGjs.isMonitorTypeTool.call(void 0, tool)) {
1555
1628
  printMonitorTypeFilters(tool);
1556
1629
  printMonitorTypeStreams(tool);
1557
1630
  return;
1558
1631
  }
1559
- const contract = _chunkHVI55MTKjs.toolContractJsonForDescribe.call(void 0,
1632
+ const contract = _chunk3IKGZ4CGjs.toolContractJsonForDescribe.call(void 0,
1560
1633
  tool,
1561
1634
  requestedToolId,
1562
1635
  void 0,
1563
1636
  seedToolListScript
1564
1637
  );
1565
- const inputFields = _chunkHVI55MTKjs.recursiveToolInputFieldsForDisplay.call(void 0,
1566
- _chunkHVI55MTKjs.recordField.call(void 0, contract, "inputSchema")
1638
+ const inputFields = _chunk3IKGZ4CGjs.recursiveToolInputFieldsForDisplay.call(void 0,
1639
+ _chunk3IKGZ4CGjs.recordField.call(void 0, contract, "inputSchema")
1567
1640
  );
1568
1641
  console.log(`Schema: ${contract.toolId}`);
1569
1642
  if (!inputFields.length) {
@@ -1590,37 +1663,37 @@ function printToolSchemaOnly(tool, requestedToolId) {
1590
1663
  }
1591
1664
  printToolOutputArrayShape(contract);
1592
1665
  const declaredSchema = declaredToolJsonSchema(
1593
- _chunkHVI55MTKjs.recordField.call(void 0, contract, "inputSchema")
1666
+ _chunk3IKGZ4CGjs.recordField.call(void 0, contract, "inputSchema")
1594
1667
  );
1595
1668
  if (declaredSchema) {
1596
1669
  console.log("Declared input JSON Schema:");
1597
1670
  console.log(JSON.stringify(declaredSchema, null, 2));
1598
1671
  }
1599
- if (_chunkHVI55MTKjs.isRecord.call(void 0, contract.responseSchema)) {
1672
+ if (_chunk3IKGZ4CGjs.isRecord.call(void 0, contract.responseSchema)) {
1600
1673
  console.log("Deepline execution response JSON Schema:");
1601
1674
  console.log(JSON.stringify(contract.responseSchema, null, 2));
1602
1675
  }
1603
1676
  }
1604
1677
  function printToolExamplesOnly(tool, requestedToolId) {
1605
- if (_chunkHVI55MTKjs.isMonitorTypeTool.call(void 0, tool)) {
1678
+ if (_chunk3IKGZ4CGjs.isMonitorTypeTool.call(void 0, tool)) {
1606
1679
  printMonitorTypeDeploy(tool);
1607
1680
  return;
1608
1681
  }
1609
- if (_chunkHVI55MTKjs.isMonitorVariantIndex.call(void 0, tool)) {
1682
+ if (_chunk3IKGZ4CGjs.isMonitorVariantIndex.call(void 0, tool)) {
1610
1683
  console.log(
1611
1684
  `${requestedToolId} is deployed as one monitor type per radar type. Describe one for its example:`
1612
1685
  );
1613
- for (const variant of _chunkHVI55MTKjs.arrayField.call(void 0, tool, "variants").filter(_chunkHVI55MTKjs.isRecord)) {
1614
- const describeCommand = _chunkHVI55MTKjs.stringField.call(void 0, variant, "describeCommand");
1686
+ for (const variant of _chunk3IKGZ4CGjs.arrayField.call(void 0, tool, "variants").filter(_chunk3IKGZ4CGjs.isRecord)) {
1687
+ const describeCommand = _chunk3IKGZ4CGjs.stringField.call(void 0, variant, "describeCommand");
1615
1688
  if (describeCommand) console.log(` ${describeCommand}`);
1616
1689
  }
1617
1690
  return;
1618
1691
  }
1619
- if (_chunkHVI55MTKjs.isPlayLikeTool.call(void 0, tool)) {
1692
+ if (_chunk3IKGZ4CGjs.isPlayLikeTool.call(void 0, tool)) {
1620
1693
  printPlayLikeToolUsage(tool, requestedToolId);
1621
1694
  return;
1622
1695
  }
1623
- const contract = _chunkHVI55MTKjs.toolContractJsonForDescribe.call(void 0,
1696
+ const contract = _chunk3IKGZ4CGjs.toolContractJsonForDescribe.call(void 0,
1624
1697
  tool,
1625
1698
  requestedToolId,
1626
1699
  void 0,
@@ -1628,9 +1701,9 @@ function printToolExamplesOnly(tool, requestedToolId) {
1628
1701
  );
1629
1702
  const toolId = String(contract.toolId);
1630
1703
  const inputFields = Array.isArray(contract.inputFields) ? contract.inputFields : [];
1631
- const examples = _chunkHVI55MTKjs.arrayField.call(void 0, tool, "examples").filter(_chunkHVI55MTKjs.isRecord);
1704
+ const examples = _chunk3IKGZ4CGjs.arrayField.call(void 0, tool, "examples").filter(_chunk3IKGZ4CGjs.isRecord);
1632
1705
  const firstExample = examples[0];
1633
- const sampleInput = firstExample && _chunkHVI55MTKjs.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunkHVI55MTKjs.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunkHVI55MTKjs.samplePayloadForInputFields.call(void 0, inputFields)));
1706
+ const sampleInput = firstExample && _chunk3IKGZ4CGjs.isRecord.call(void 0, firstExample.input) ? firstExample.input : _nullishCoalesce(samplePayload(_chunk3IKGZ4CGjs.recordField.call(void 0, tool, "samples"), "request"), () => ( _chunk3IKGZ4CGjs.samplePayloadForInputFields.call(void 0, inputFields)));
1634
1707
  console.log("Example input payload:");
1635
1708
  console.log(JSON.stringify(sampleInput, null, 2));
1636
1709
  console.log(`Use in a play:`);
@@ -1644,32 +1717,32 @@ function printToolExamplesOnly(tool, requestedToolId) {
1644
1717
  );
1645
1718
  console.log("});");
1646
1719
  console.log("const response = result.toolResponse.rawV2;");
1647
- const getters = _chunkHVI55MTKjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1720
+ const getters = _chunk3IKGZ4CGjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1648
1721
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1649
1722
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1650
- const firstGetter = valueGetters.find(_chunkHVI55MTKjs.isRecord);
1723
+ const firstGetter = valueGetters.find(_chunk3IKGZ4CGjs.isRecord);
1651
1724
  if (firstGetter) {
1652
- const name = _chunkHVI55MTKjs.stringField.call(void 0, firstGetter, "name") || "value";
1653
- const expression = _chunkHVI55MTKjs.stringField.call(void 0, firstGetter, "expression");
1725
+ const name = _chunk3IKGZ4CGjs.stringField.call(void 0, firstGetter, "name") || "value";
1726
+ const expression = _chunk3IKGZ4CGjs.stringField.call(void 0, firstGetter, "expression");
1654
1727
  if (expression)
1655
1728
  console.log(
1656
1729
  `const ${safeIdentifier(name)} = ${expression.replace(/^toolExecutionResult\./, "result.")};`
1657
1730
  );
1658
1731
  }
1659
1732
  const arrayNames = new Set(
1660
- _chunkHVI55MTKjs.recursiveToolInputFieldsForDisplay.call(void 0,
1661
- _chunkHVI55MTKjs.recordField.call(void 0, tool, "outputSchema", "output_schema")
1733
+ _chunk3IKGZ4CGjs.recursiveToolInputFieldsForDisplay.call(void 0,
1734
+ _chunk3IKGZ4CGjs.recordField.call(void 0, tool, "outputSchema", "output_schema")
1662
1735
  ).filter((field) => String(field.type).split("|").includes("array")).map((field) => String(field.name).split(".").at(-1))
1663
1736
  );
1664
1737
  const firstList = _nullishCoalesce(listGetters.find(
1665
- (entry) => _chunkHVI55MTKjs.isRecord.call(void 0, entry) && arrayNames.has(_chunkHVI55MTKjs.stringField.call(void 0, entry, "name"))
1666
- ), () => ( listGetters.find(_chunkHVI55MTKjs.isRecord)));
1667
- if (_chunkHVI55MTKjs.isRecord.call(void 0, firstList)) {
1668
- const name = safeIdentifier(_chunkHVI55MTKjs.stringField.call(void 0, firstList, "name") || "list");
1738
+ (entry) => _chunk3IKGZ4CGjs.isRecord.call(void 0, entry) && arrayNames.has(_chunk3IKGZ4CGjs.stringField.call(void 0, entry, "name"))
1739
+ ), () => ( listGetters.find(_chunk3IKGZ4CGjs.isRecord)));
1740
+ if (_chunk3IKGZ4CGjs.isRecord.call(void 0, firstList)) {
1741
+ const name = safeIdentifier(_chunk3IKGZ4CGjs.stringField.call(void 0, firstList, "name") || "list");
1669
1742
  if (_chunkJ33TSWO5js.playToolListGetterMode.call(void 0, ) === "array") {
1670
- console.log(`const ${name}_rows = ${_chunkHVI55MTKjs.playResultExpression.call(void 0, firstList)};`);
1743
+ console.log(`const ${name}_rows = ${_chunk3IKGZ4CGjs.playResultExpression.call(void 0, firstList)};`);
1671
1744
  } else {
1672
- console.log(`const ${name}_ds = ${_chunkHVI55MTKjs.playResultExpression.call(void 0, firstList)};`);
1745
+ console.log(`const ${name}_ds = ${_chunk3IKGZ4CGjs.playResultExpression.call(void 0, firstList)};`);
1673
1746
  console.log(
1674
1747
  "// Complete small list from this response; throws above the memory cap."
1675
1748
  );
@@ -1679,7 +1752,7 @@ function printToolExamplesOnly(tool, requestedToolId) {
1679
1752
  console.log("```");
1680
1753
  if (firstList) printListGetterConsumption();
1681
1754
  for (const example of examples) {
1682
- const description = _chunkHVI55MTKjs.stringField.call(void 0, example, "description");
1755
+ const description = _chunk3IKGZ4CGjs.stringField.call(void 0, example, "description");
1683
1756
  if (description) console.log(description);
1684
1757
  console.log("Example Deepline execution response:");
1685
1758
  console.log(JSON.stringify(example.response, null, 2));
@@ -1694,14 +1767,14 @@ function printToolExamplesOnly(tool, requestedToolId) {
1694
1767
  }
1695
1768
  function printPlayLikeToolUsage(tool, requestedToolId) {
1696
1769
  const toolId = String(tool.toolId || requestedToolId);
1697
- const inputFields = _chunkHVI55MTKjs.toolInputFieldsForDisplay.call(void 0,
1698
- _chunkHVI55MTKjs.recordField.call(void 0, tool, "inputSchema", "input_schema")
1770
+ const inputFields = _chunk3IKGZ4CGjs.toolInputFieldsForDisplay.call(void 0,
1771
+ _chunk3IKGZ4CGjs.recordField.call(void 0, tool, "inputSchema", "input_schema")
1699
1772
  );
1700
- const sampleInput = _chunkHVI55MTKjs.samplePayloadForInputFields.call(void 0, inputFields);
1701
- const playReference = _chunkHVI55MTKjs.playReferenceForTool.call(void 0, tool);
1773
+ const sampleInput = _chunk3IKGZ4CGjs.samplePayloadForInputFields.call(void 0, inputFields);
1774
+ const playReference = _chunk3IKGZ4CGjs.playReferenceForTool.call(void 0, tool);
1702
1775
  console.log("Run as a play:");
1703
1776
  console.log(
1704
- _chunkHVI55MTKjs.playRunCommandForTool.call(void 0,
1777
+ _chunk3IKGZ4CGjs.playRunCommandForTool.call(void 0,
1705
1778
  tool,
1706
1779
  toolId,
1707
1780
  Object.keys(sampleInput).length ? sampleInput : void 0
@@ -1712,13 +1785,13 @@ function printPlayLikeToolUsage(tool, requestedToolId) {
1712
1785
  }
1713
1786
  }
1714
1787
  function printToolGettersOnly(tool, requestedToolId) {
1715
- const contract = _chunkHVI55MTKjs.toolContractJsonForDescribe.call(void 0,
1788
+ const contract = _chunk3IKGZ4CGjs.toolContractJsonForDescribe.call(void 0,
1716
1789
  tool,
1717
1790
  requestedToolId,
1718
1791
  void 0,
1719
1792
  seedToolListScript
1720
1793
  );
1721
- const getters = _chunkHVI55MTKjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1794
+ const getters = _chunk3IKGZ4CGjs.isRecord.call(void 0, contract.getters) ? contract.getters : {};
1722
1795
  const listGetters = Array.isArray(getters.extractedLists) ? getters.extractedLists : [];
1723
1796
  const valueGetters = Array.isArray(getters.extractedValues) ? getters.extractedValues : [];
1724
1797
  console.log(`Getters: ${contract.toolId}`);
@@ -1729,9 +1802,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1729
1802
  if (listGetters.length) {
1730
1803
  console.log(listGetterHeading());
1731
1804
  for (const entry of listGetters) {
1732
- if (_chunkHVI55MTKjs.isRecord.call(void 0, entry))
1805
+ if (_chunk3IKGZ4CGjs.isRecord.call(void 0, entry))
1733
1806
  console.log(
1734
- `- ${_chunkHVI55MTKjs.stringField.call(void 0, entry, "name")}: ${_chunkHVI55MTKjs.playResultExpression.call(void 0, entry)}`
1807
+ `- ${_chunk3IKGZ4CGjs.stringField.call(void 0, entry, "name")}: ${_chunk3IKGZ4CGjs.playResultExpression.call(void 0, entry)}`
1735
1808
  );
1736
1809
  }
1737
1810
  printListGetterConsumption();
@@ -1739,9 +1812,9 @@ function printToolGettersOnly(tool, requestedToolId) {
1739
1812
  if (valueGetters.length) {
1740
1813
  console.log("Values:");
1741
1814
  for (const entry of valueGetters) {
1742
- if (_chunkHVI55MTKjs.isRecord.call(void 0, entry))
1815
+ if (_chunk3IKGZ4CGjs.isRecord.call(void 0, entry))
1743
1816
  console.log(
1744
- `- ${_chunkHVI55MTKjs.stringField.call(void 0, entry, "name")}: ${_chunkHVI55MTKjs.playResultExpression.call(void 0, entry)}`
1817
+ `- ${_chunk3IKGZ4CGjs.stringField.call(void 0, entry, "name")}: ${_chunk3IKGZ4CGjs.playResultExpression.call(void 0, entry)}`
1745
1818
  );
1746
1819
  }
1747
1820
  }
@@ -1779,22 +1852,22 @@ function listedToolDescription(tool) {
1779
1852
  }
1780
1853
  function formatListedToolCost(tool) {
1781
1854
  const record = tool;
1782
- if (_chunkHVI55MTKjs.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1855
+ if (_chunk3IKGZ4CGjs.stringField.call(void 0, record, "billingSource", "billing_source") === "free") {
1783
1856
  return "Cost: Free";
1784
1857
  }
1785
- const pricing = _chunkHVI55MTKjs.recordField.call(void 0, record, "pricing");
1786
- const displayText = _chunkHVI55MTKjs.stringField.call(void 0, pricing, "displayText", "display_text");
1858
+ const pricing = _chunk3IKGZ4CGjs.recordField.call(void 0, record, "pricing");
1859
+ const displayText = _chunk3IKGZ4CGjs.stringField.call(void 0, pricing, "displayText", "display_text");
1787
1860
  return displayText ? `Cost: ${displayText}` : "";
1788
1861
  }
1789
1862
  function printToolOutputArrayShape(tool) {
1790
- const outputFields = _chunkHVI55MTKjs.toolOutputFieldsForDisplay.call(void 0,
1791
- _chunkHVI55MTKjs.recordField.call(void 0, _chunkHVI55MTKjs.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1863
+ const outputFields = _chunk3IKGZ4CGjs.toolOutputFieldsForDisplay.call(void 0,
1864
+ _chunk3IKGZ4CGjs.recordField.call(void 0, _chunk3IKGZ4CGjs.isRecord.call(void 0, tool) ? tool : {}, "outputSchema", "output_schema")
1792
1865
  );
1793
1866
  if (outputFields.length === 0) return;
1794
1867
  console.log(" Output array shape (declared schema):");
1795
1868
  for (const field of outputFields.slice(0, 60)) {
1796
1869
  const name = String(field.name);
1797
- const type = _chunkHVI55MTKjs.stringField.call(void 0, field, "type") || "unknown";
1870
+ const type = _chunk3IKGZ4CGjs.stringField.call(void 0, field, "type") || "unknown";
1798
1871
  const itemBounds = arrayItemBoundsSuffix(field);
1799
1872
  console.log(` - ${name}: ${type}${itemBounds}`);
1800
1873
  }
@@ -1803,15 +1876,15 @@ function printToolOutputArrayShape(tool) {
1803
1876
  }
1804
1877
  }
1805
1878
  function declaredToolJsonSchema(inputSchema) {
1806
- if (_chunkHVI55MTKjs.isRecord.call(void 0, inputSchema.jsonSchema)) {
1879
+ if (_chunk3IKGZ4CGjs.isRecord.call(void 0, inputSchema.jsonSchema)) {
1807
1880
  return inputSchema.jsonSchema;
1808
1881
  }
1809
1882
  return Array.isArray(inputSchema.fields) ? null : inputSchema;
1810
1883
  }
1811
1884
  function arrayItemBoundsSuffix(field) {
1812
- const itemSchema = _chunkHVI55MTKjs.isRecord.call(void 0, field.items) ? field.items : null;
1813
- const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunkHVI55MTKjs.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1814
- const itemEnum = Array.isArray(_optionalChain([itemSchema, 'optionalAccess', _14 => _14.enum])) ? ` enum=${itemSchema.enum.map(String).join("|")}` : "";
1885
+ const itemSchema = _chunk3IKGZ4CGjs.isRecord.call(void 0, field.items) ? field.items : null;
1886
+ const itemType = itemSchema ? typeof itemSchema.type === "string" ? itemSchema.type : _chunk3IKGZ4CGjs.isRecord.call(void 0, itemSchema.properties) ? "object" : "unknown" : null;
1887
+ const itemEnum = Array.isArray(_optionalChain([itemSchema, 'optionalAccess', _16 => _16.enum])) ? ` enum=${itemSchema.enum.map(String).join("|")}` : "";
1815
1888
  const itemTypeSuffix = itemType && itemType !== "unknown" ? ` items=${itemType}${itemEnum}` : "";
1816
1889
  const minItems = typeof field.minItems === "number" && Number.isFinite(field.minItems) ? field.minItems : null;
1817
1890
  const maxItems = typeof field.maxItems === "number" && Number.isFinite(field.maxItems) ? field.maxItems : null;
@@ -1823,21 +1896,21 @@ function arrayItemBoundsSuffix(field) {
1823
1896
  return itemTypeSuffix;
1824
1897
  }
1825
1898
  function printToolExecutionHints(value) {
1826
- const batchCapabilityRecord = _chunkHVI55MTKjs.recordField.call(void 0,
1827
- _chunkHVI55MTKjs.isRecord.call(void 0, value) ? value : {},
1899
+ const batchCapabilityRecord = _chunk3IKGZ4CGjs.recordField.call(void 0,
1900
+ _chunk3IKGZ4CGjs.isRecord.call(void 0, value) ? value : {},
1828
1901
  "batchCapability",
1829
1902
  "batch_capability"
1830
1903
  );
1831
1904
  const batchCapability = Object.keys(batchCapabilityRecord).length > 0 ? batchCapabilityRecord : null;
1832
- const executionMetadata = _chunkHVI55MTKjs.recordField.call(void 0,
1833
- _chunkHVI55MTKjs.isRecord.call(void 0, value) ? value : {},
1905
+ const executionMetadata = _chunk3IKGZ4CGjs.recordField.call(void 0,
1906
+ _chunk3IKGZ4CGjs.isRecord.call(void 0, value) ? value : {},
1834
1907
  "executionMetadata",
1835
1908
  "execution_metadata"
1836
1909
  );
1837
1910
  if (batchCapability) {
1838
- const status = _chunkHVI55MTKjs.stringField.call(void 0, batchCapability, "status") || "unknown";
1839
- const surface = _chunkHVI55MTKjs.stringField.call(void 0, batchCapability, "surface");
1840
- const operation = _chunkHVI55MTKjs.stringField.call(void 0,
1911
+ const status = _chunk3IKGZ4CGjs.stringField.call(void 0, batchCapability, "status") || "unknown";
1912
+ const surface = _chunk3IKGZ4CGjs.stringField.call(void 0, batchCapability, "surface");
1913
+ const operation = _chunk3IKGZ4CGjs.stringField.call(void 0,
1841
1914
  batchCapability,
1842
1915
  "batchOperation",
1843
1916
  "batch_operation"
@@ -1847,7 +1920,7 @@ function printToolExecutionHints(value) {
1847
1920
  "maxBatchSize",
1848
1921
  "max_batch_size"
1849
1922
  );
1850
- const notes = _chunkHVI55MTKjs.stringField.call(void 0, batchCapability, "notes");
1923
+ const notes = _chunk3IKGZ4CGjs.stringField.call(void 0, batchCapability, "notes");
1851
1924
  console.log("");
1852
1925
  console.log("Batching:");
1853
1926
  console.log(`- Catalog status: ${status}${surface ? ` (${surface})` : ""}`);
@@ -1866,11 +1939,11 @@ function printToolExecutionHints(value) {
1866
1939
  }
1867
1940
  if (notes) console.log(`- Details: ${notes}`);
1868
1941
  }
1869
- const configuredRateLimits = _chunkHVI55MTKjs.arrayField.call(void 0,
1942
+ const configuredRateLimits = _chunk3IKGZ4CGjs.arrayField.call(void 0,
1870
1943
  executionMetadata,
1871
1944
  "configuredRateLimits",
1872
1945
  "configured_rate_limits"
1873
- ).filter(_chunkHVI55MTKjs.isRecord);
1946
+ ).filter(_chunk3IKGZ4CGjs.isRecord);
1874
1947
  if (configuredRateLimits.length > 0) {
1875
1948
  console.log("");
1876
1949
  console.log(
@@ -1880,7 +1953,7 @@ function printToolExecutionHints(value) {
1880
1953
  const requests = numberField(limit, "requestsPerWindow");
1881
1954
  const windowMs = numberField(limit, "windowMs");
1882
1955
  if (requests === null || windowMs === null) continue;
1883
- const usage = _chunkHVI55MTKjs.stringField.call(void 0, limit, "usage") || "unknown";
1956
+ const usage = _chunk3IKGZ4CGjs.stringField.call(void 0, limit, "usage") || "unknown";
1884
1957
  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;
1885
1958
  const explicitMaxConcurrency = numberField(
1886
1959
  limit,
@@ -1889,11 +1962,11 @@ function printToolExecutionHints(value) {
1889
1962
  );
1890
1963
  const concurrencyText = explicitMaxConcurrency === null ? "no explicit concurrency limit" : `explicit concurrency limit ${explicitMaxConcurrency}`;
1891
1964
  console.log(
1892
- `- ${requests} requests per ${formatRateWindow(windowMs)}${_chunkTFEXSHPMjs.rateLimitQualifier.call(void 0, limit)} (${usageText}; ${concurrencyText})`
1965
+ `- ${requests} requests per ${formatRateWindow(windowMs)}${_chunkLY5MMXFFjs.rateLimitQualifier.call(void 0, limit)} (${usageText}; ${concurrencyText})`
1893
1966
  );
1894
1967
  }
1895
1968
  }
1896
- const queueHint = _chunkHVI55MTKjs.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
1969
+ const queueHint = _chunk3IKGZ4CGjs.recordField.call(void 0, executionMetadata, "queueHint", "queue_hint");
1897
1970
  const requestsPerSecondHint = numberField(
1898
1971
  queueHint,
1899
1972
  "requestsPerSecondHint",
@@ -1919,35 +1992,35 @@ function formatRateWindow(windowMs) {
1919
1992
  }
1920
1993
  function samplePayload(samples, key) {
1921
1994
  const entry = samples[key];
1922
- if (!_chunkHVI55MTKjs.isRecord.call(void 0, entry)) return void 0;
1995
+ if (!_chunk3IKGZ4CGjs.isRecord.call(void 0, entry)) return void 0;
1923
1996
  return Object.prototype.hasOwnProperty.call(entry, "payload") ? entry.payload : entry;
1924
1997
  }
1925
1998
  function commandEnvelopeFromRawResponse(rawResponse) {
1926
- return _chunkHVI55MTKjs.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
1999
+ return _chunk3IKGZ4CGjs.isRecord.call(void 0, rawResponse) ? { ...rawResponse } : { status: "completed", result: rawResponse };
1927
2000
  }
1928
2001
  function toolExecuteExitCode(envelope) {
1929
2002
  return envelope.status === "failed" || envelope.ok === false ? 1 : 0;
1930
2003
  }
1931
2004
  function extractToolExecutionWarningMessages(rawResponse) {
1932
- if (!_chunkHVI55MTKjs.isRecord.call(void 0, rawResponse)) return [];
2005
+ if (!_chunk3IKGZ4CGjs.isRecord.call(void 0, rawResponse)) return [];
1933
2006
  const candidates = [
1934
- _chunkHVI55MTKjs.recordField.call(void 0, _chunkHVI55MTKjs.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
1935
- _chunkHVI55MTKjs.recordField.call(void 0,
1936
- _chunkHVI55MTKjs.recordField.call(void 0, _chunkHVI55MTKjs.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
2007
+ _chunk3IKGZ4CGjs.recordField.call(void 0, _chunk3IKGZ4CGjs.recordField.call(void 0, rawResponse, "toolResponse"), "meta"),
2008
+ _chunk3IKGZ4CGjs.recordField.call(void 0,
2009
+ _chunk3IKGZ4CGjs.recordField.call(void 0, _chunk3IKGZ4CGjs.recordField.call(void 0, rawResponse, "toolResponse"), "raw"),
1937
2010
  "meta"
1938
2011
  ),
1939
- _chunkHVI55MTKjs.recordField.call(void 0, rawResponse, "meta"),
1940
- _chunkHVI55MTKjs.recordField.call(void 0, _chunkHVI55MTKjs.recordField.call(void 0, rawResponse, "result"), "meta")
2012
+ _chunk3IKGZ4CGjs.recordField.call(void 0, rawResponse, "meta"),
2013
+ _chunk3IKGZ4CGjs.recordField.call(void 0, _chunk3IKGZ4CGjs.recordField.call(void 0, rawResponse, "result"), "meta")
1941
2014
  ];
1942
2015
  const messages = [];
1943
2016
  for (const candidate of candidates) {
1944
- const warnings = _optionalChain([candidate, 'optionalAccess', _15 => _15.warnings]);
2017
+ const warnings = _optionalChain([candidate, 'optionalAccess', _17 => _17.warnings]);
1945
2018
  if (!Array.isArray(warnings)) continue;
1946
2019
  for (const warning of warnings) {
1947
2020
  if (typeof warning === "string" && warning.trim()) {
1948
2021
  messages.push(warning.trim());
1949
- } else if (_chunkHVI55MTKjs.isRecord.call(void 0, warning)) {
1950
- const message = _chunkHVI55MTKjs.stringField.call(void 0, warning, "message");
2022
+ } else if (_chunk3IKGZ4CGjs.isRecord.call(void 0, warning)) {
2023
+ const message = _chunk3IKGZ4CGjs.stringField.call(void 0, warning, "message");
1951
2024
  if (message) messages.push(message);
1952
2025
  }
1953
2026
  }
@@ -1955,32 +2028,32 @@ function extractToolExecutionWarningMessages(rawResponse) {
1955
2028
  return [...new Set(messages)];
1956
2029
  }
1957
2030
  function apifySyncRecoveryNext(rawResponse) {
1958
- if (!_chunkHVI55MTKjs.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
1959
- const toolResponse = _chunkHVI55MTKjs.recordField.call(void 0, rawResponse, "toolResponse");
1960
- const raw = _chunkHVI55MTKjs.recordField.call(void 0, toolResponse, "raw");
2031
+ if (!_chunk3IKGZ4CGjs.isRecord.call(void 0, rawResponse) || rawResponse.status !== "running") return null;
2032
+ const toolResponse = _chunk3IKGZ4CGjs.recordField.call(void 0, rawResponse, "toolResponse");
2033
+ const raw = _chunk3IKGZ4CGjs.recordField.call(void 0, toolResponse, "raw");
1961
2034
  if (raw.state !== "awaiting_apify") return null;
1962
- const next = _chunkHVI55MTKjs.recordField.call(void 0, raw, "next");
1963
- const getActorRun = _chunkHVI55MTKjs.recordField.call(void 0, next, "getActorRun");
1964
- const getActorRunTool = _chunkHVI55MTKjs.stringField.call(void 0, getActorRun, "tool");
1965
- const getActorRunPayload = _chunkHVI55MTKjs.recordField.call(void 0, getActorRun, "payload");
2035
+ const next = _chunk3IKGZ4CGjs.recordField.call(void 0, raw, "next");
2036
+ const getActorRun = _chunk3IKGZ4CGjs.recordField.call(void 0, next, "getActorRun");
2037
+ const getActorRunTool = _chunk3IKGZ4CGjs.stringField.call(void 0, getActorRun, "tool");
2038
+ const getActorRunPayload = _chunk3IKGZ4CGjs.recordField.call(void 0, getActorRun, "payload");
1966
2039
  if (!getActorRunTool || Object.keys(getActorRunPayload).length === 0) {
1967
2040
  return null;
1968
2041
  }
1969
- const getDatasetItems = _chunkHVI55MTKjs.recordField.call(void 0, next, "getDatasetItems");
1970
- const getDatasetItemsTool = _chunkHVI55MTKjs.stringField.call(void 0, getDatasetItems, "tool");
1971
- const getDatasetItemsPayload = _chunkHVI55MTKjs.recordField.call(void 0, getDatasetItems, "payload");
2042
+ const getDatasetItems = _chunk3IKGZ4CGjs.recordField.call(void 0, next, "getDatasetItems");
2043
+ const getDatasetItemsTool = _chunk3IKGZ4CGjs.stringField.call(void 0, getDatasetItems, "tool");
2044
+ const getDatasetItemsPayload = _chunk3IKGZ4CGjs.recordField.call(void 0, getDatasetItems, "payload");
1972
2045
  return {
1973
- getActorRun: `deepline run ${getActorRunTool} --input ${_chunkAID3OYVJjs.shellQuote.call(void 0, JSON.stringify(getActorRunPayload))}`,
2046
+ getActorRun: `deepline run ${getActorRunTool} --input ${_chunkBVXIGOBZjs.shellQuote.call(void 0, JSON.stringify(getActorRunPayload))}`,
1974
2047
  ...getDatasetItemsTool && Object.keys(getDatasetItemsPayload).length > 0 ? {
1975
- getDatasetItems: `deepline run ${getDatasetItemsTool} --input ${_chunkAID3OYVJjs.shellQuote.call(void 0, JSON.stringify(getDatasetItemsPayload))}`
2048
+ getDatasetItems: `deepline run ${getDatasetItemsTool} --input ${_chunkBVXIGOBZjs.shellQuote.call(void 0, JSON.stringify(getDatasetItemsPayload))}`
1976
2049
  } : {}
1977
2050
  };
1978
2051
  }
1979
2052
  function listExtractorPathsFromUsageGuidance(tool) {
1980
- const toolExecutionResult = _optionalChain([tool, 'access', _16 => _16.usageGuidance, 'optionalAccess', _17 => _17.toolExecutionResult]);
1981
- const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _18 => _18.extractedLists])) ? toolExecutionResult.extractedLists : _chunkHVI55MTKjs.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _19 => _19.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
2053
+ const toolExecutionResult = _optionalChain([tool, 'access', _18 => _18.usageGuidance, 'optionalAccess', _19 => _19.toolExecutionResult]);
2054
+ const extractedLists = Array.isArray(_optionalChain([toolExecutionResult, 'optionalAccess', _20 => _20.extractedLists])) ? toolExecutionResult.extractedLists : _chunk3IKGZ4CGjs.isRecord.call(void 0, _optionalChain([toolExecutionResult, 'optionalAccess', _21 => _21.extractedLists])) ? Object.values(toolExecutionResult.extractedLists) : [];
1982
2055
  return extractedLists.flatMap((entry) => {
1983
- const paths = _nullishCoalesce(_optionalChain([entry, 'access', _20 => _20.details, 'optionalAccess', _21 => _21.candidatePaths]), () => ( _optionalChain([entry, 'access', _22 => _22.details, 'optionalAccess', _23 => _23.rawToolOutputPaths])));
2056
+ const paths = _nullishCoalesce(_optionalChain([entry, 'access', _22 => _22.details, 'optionalAccess', _23 => _23.candidatePaths]), () => ( _optionalChain([entry, 'access', _24 => _24.details, 'optionalAccess', _25 => _25.rawToolOutputPaths])));
1984
2057
  if (!Array.isArray(paths)) return [];
1985
2058
  return paths.map(
1986
2059
  (path) => path.trim().replace(/^toolExecutionResult\.toolResponse\.raw\.?/, "").replace(/^toolExecutionResult\.toolOutput\.raw\.?/, "").replace(/^\./, "")
@@ -2034,10 +2107,7 @@ function readJsonArgument(raw, flagName) {
2034
2107
  throw new Error(`Invalid ${flagName} value: empty @file path.`);
2035
2108
  }
2036
2109
  try {
2037
- return _fs.readFileSync.call(void 0, resolveAtFilePath(filePath), "utf8").replace(
2038
- /^\uFEFF/,
2039
- ""
2040
- );
2110
+ return jsonFileText(_fs.readFileSync.call(void 0, resolveAtFilePath(filePath)));
2041
2111
  } catch (error) {
2042
2112
  const message = error instanceof Error ? error.message : String(error);
2043
2113
  throw new Error(
@@ -2063,7 +2133,7 @@ function parseJsonObjectArgument(raw, flagName) {
2063
2133
  }
2064
2134
  throw invalidJsonError(flagName, message);
2065
2135
  }
2066
- if (!_chunkHVI55MTKjs.isRecord.call(void 0, parsed)) {
2136
+ if (!_chunk3IKGZ4CGjs.isRecord.call(void 0, parsed)) {
2067
2137
  throw invalidJsonError(flagName, "expected an object.");
2068
2138
  }
2069
2139
  return parsed;
@@ -2081,33 +2151,37 @@ function parseExecuteOptions(toolId, options, output) {
2081
2151
  `Usage: deepline tools execute <toolId> [--param key=value ...] [--input '{"k":"v"}'] [--timeout <duration>] [--recover | --idempotency-key <key>] [--recovery-timeout-ms <ms>] [--out rows.csv] [--output-format auto|csv|csv_file|json|json_file] [--no-preview]`
2082
2152
  );
2083
2153
  }
2084
- const params = {};
2154
+ const paramFlags = parseParamFlags(_nullishCoalesce(options.param, () => ( [])));
2155
+ const jsonParams = {};
2085
2156
  let outputFormat = output.requested ? "json" : "auto";
2086
2157
  let recoveryTimeoutMs;
2087
- for (const kv of _nullishCoalesce(options.param, () => ( []))) {
2088
- const eqIdx = kv.indexOf("=");
2089
- if (eqIdx > 0) params[kv.slice(0, eqIdx)] = kv.slice(eqIdx + 1);
2090
- }
2091
2158
  if (output.legacyInput !== void 0) {
2092
2159
  Object.assign(
2093
- params,
2160
+ jsonParams,
2094
2161
  parseJsonObjectArgument(output.legacyInput, "--json")
2095
2162
  );
2096
2163
  }
2097
2164
  if (options.input !== void 0) {
2098
- Object.assign(params, parseJsonObjectArgument(options.input, "--input"));
2165
+ Object.assign(
2166
+ jsonParams,
2167
+ parseJsonObjectArgument(options.input, "--input")
2168
+ );
2099
2169
  }
2100
2170
  if (options.payload !== void 0) {
2101
2171
  Object.assign(
2102
- params,
2172
+ jsonParams,
2103
2173
  parseJsonObjectArgument(options.payload, "--payload")
2104
2174
  );
2105
2175
  }
2176
+ const params = {
2177
+ ...paramFlags.params,
2178
+ ...jsonParams
2179
+ };
2106
2180
  if (options.outputFormat !== void 0) {
2107
2181
  outputFormat = normalizeOutputFormat(options.outputFormat);
2108
2182
  }
2109
2183
  if (options.idempotencyKey !== void 0) {
2110
- _chunkCACFJODGjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2184
+ _chunkOVEYWO4Hjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2111
2185
  }
2112
2186
  if (options.connection !== void 0 && (options.recover || options.idempotencyKey !== void 0)) {
2113
2187
  throw new Error(
@@ -2124,6 +2198,10 @@ function parseExecuteOptions(toolId, options, output) {
2124
2198
  return {
2125
2199
  toolId,
2126
2200
  params,
2201
+ // -p values a JSON flag did not replace, which may need a typed value.
2202
+ typedParamCandidates: paramFlags.typedCandidates.filter(
2203
+ (key) => !Object.hasOwn(jsonParams, key)
2204
+ ),
2127
2205
  outputFormat,
2128
2206
  noPreview: options.preview === false,
2129
2207
  outPath: options.out !== void 0 ? _path.resolve.call(void 0, options.out) : null,
@@ -2213,13 +2291,13 @@ export default async function () {
2213
2291
  path: scriptPath,
2214
2292
  sourceCode: script,
2215
2293
  projectDir,
2216
- macCopyCommand: `mkdir -p ${_chunkAID3OYVJjs.shellQuote.call(void 0, projectDir)} && cp ${_chunkAID3OYVJjs.shellQuote.call(void 0, scriptPath)} ${_chunkAID3OYVJjs.shellQuote.call(void 0, `${projectDir}/${fileName}`)}`,
2294
+ macCopyCommand: `mkdir -p ${_chunkBVXIGOBZjs.shellQuote.call(void 0, projectDir)} && cp ${_chunkBVXIGOBZjs.shellQuote.call(void 0, scriptPath)} ${_chunkBVXIGOBZjs.shellQuote.call(void 0, `${projectDir}/${fileName}`)}`,
2217
2295
  windowsCopyCommand: `New-Item -ItemType Directory -Force -Path ${powerShellQuote(projectDir.replace(/\//g, "\\"))} | Out-Null; Copy-Item -LiteralPath ${powerShellQuote(scriptPath)} -Destination ${powerShellQuote(`${projectDir.replace(/\//g, "\\")}\\${fileName}`)}`
2218
2296
  };
2219
2297
  }
2220
2298
  function toolExecutionInspection(input) {
2221
2299
  return {
2222
- inspect: input.idempotencyKey !== void 0 ? `deepline executions get --idempotency-key ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.idempotencyKey)}` : `deepline describe ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.toolId)}`,
2300
+ inspect: input.idempotencyKey !== void 0 ? `deepline executions get --idempotency-key ${_chunkBVXIGOBZjs.shellQuote.call(void 0, input.idempotencyKey)}` : `deepline describe ${_chunkBVXIGOBZjs.shellQuote.call(void 0, input.toolId)}`,
2223
2301
  inspectDescription: input.idempotencyKey !== void 0 ? "Read the saved execution without starting new work." : "Read the tool contract; this unkeyed call has no saved recovery identity."
2224
2302
  };
2225
2303
  }
@@ -2242,12 +2320,12 @@ function buildToolExecuteBaseEnvelope(input) {
2242
2320
  kind: summaryEntries.length > 0 ? "object" : "raw",
2243
2321
  summary: input.summary
2244
2322
  };
2245
- const envelopeHasCanonicalOutput = _chunkHVI55MTKjs.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2323
+ const envelopeHasCanonicalOutput = _chunk3IKGZ4CGjs.isRecord.call(void 0, envelope.toolResponse) && Object.prototype.hasOwnProperty.call(envelope.toolResponse, "raw");
2246
2324
  const envelopeHasDeclaredOutput = Object.prototype.hasOwnProperty.call(
2247
2325
  envelope,
2248
2326
  "output"
2249
2327
  );
2250
- const billingLookup = typeof envelope.job_id === "string" && envelope.job_id.trim() ? `deepline billing usage --request-id ${_chunkAID3OYVJjs.shellQuote.call(void 0, envelope.job_id)}` : null;
2328
+ const billingLookup = typeof envelope.job_id === "string" && envelope.job_id.trim() ? `deepline billing usage --request-id ${_chunkBVXIGOBZjs.shellQuote.call(void 0, envelope.job_id)}` : null;
2251
2329
  const inspection = toolExecutionInspection(input);
2252
2330
  const actions = input.listConversion ? [
2253
2331
  {
@@ -2270,7 +2348,7 @@ function buildToolExecuteBaseEnvelope(input) {
2270
2348
  return {
2271
2349
  ...envelope,
2272
2350
  ...input.idempotencyKey ? { idempotency_key: input.idempotencyKey } : {},
2273
- ..._chunkHVI55MTKjs.isRecord.call(void 0, input.rawResponse) && _chunkHVI55MTKjs.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2351
+ ..._chunk3IKGZ4CGjs.isRecord.call(void 0, input.rawResponse) && _chunk3IKGZ4CGjs.isRecord.call(void 0, input.rawResponse.executionRecovery) ? { execution_recovery: input.rawResponse.executionRecovery } : {},
2274
2352
  ...envelopeHasCanonicalOutput || envelopeHasDeclaredOutput ? { output_preview: outputPreview } : { output: outputPreview },
2275
2353
  ...summaryEntries.length > 0 ? { summary: input.summary } : {},
2276
2354
  ...warningMessages.length > 0 ? { warnings: warningMessages } : {},
@@ -2331,7 +2409,7 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2331
2409
  void _render;
2332
2410
  void _next;
2333
2411
  void _local;
2334
- const billingLookup = _chunkHVI55MTKjs.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2412
+ const billingLookup = _chunk3IKGZ4CGjs.isRecord.call(void 0, input.baseEnvelope.next) && typeof input.baseEnvelope.next.billing === "string" ? input.baseEnvelope.next.billing : null;
2335
2413
  const inspection = toolExecutionInspection(input);
2336
2414
  return {
2337
2415
  ...base,
@@ -2413,7 +2491,7 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2413
2491
  };
2414
2492
  }
2415
2493
  function printToolExecutionWarnings(toolId, params, metadata) {
2416
- if (_optionalChain([metadata, 'access', _24 => _24.deprecation, 'optionalAccess', _25 => _25.message])) {
2494
+ if (_optionalChain([metadata, 'access', _26 => _26.deprecation, 'optionalAccess', _27 => _27.message])) {
2417
2495
  console.error(
2418
2496
  `Warning: ${toolId} is deprecated. ${metadata.deprecation.message}`
2419
2497
  );
@@ -2427,7 +2505,7 @@ function printToolExecutionWarnings(toolId, params, metadata) {
2427
2505
  }
2428
2506
  }
2429
2507
  function assertExecutableToolMetadata(toolId, metadata) {
2430
- if (_chunkHVI55MTKjs.isPlayLikeTool.call(void 0, metadata)) {
2508
+ if (_chunk3IKGZ4CGjs.isPlayLikeTool.call(void 0, metadata)) {
2431
2509
  throw new (0, _chunkLFQJW4S2js.DeeplineError)(
2432
2510
  playLikeToolExecuteErrorMessage(
2433
2511
  toolId,
@@ -2445,7 +2523,7 @@ function valueAt(value, path) {
2445
2523
  for (const [index, part] of parts.entries()) {
2446
2524
  const each = part === "*" || part.endsWith("[*]");
2447
2525
  if (part !== "*") {
2448
- at = _chunkHVI55MTKjs.isRecord.call(void 0, at) ? at[each ? part.slice(0, -3) : part] : void 0;
2526
+ at = _chunk3IKGZ4CGjs.isRecord.call(void 0, at) ? at[each ? part.slice(0, -3) : part] : void 0;
2449
2527
  }
2450
2528
  if (!each) continue;
2451
2529
  if (!Array.isArray(at)) return void 0;
@@ -2457,18 +2535,18 @@ function valueAt(value, path) {
2457
2535
  return at;
2458
2536
  }
2459
2537
  function declaredOutputs(metadata, envelope, data) {
2460
- const result = _optionalChain([metadata, 'access', _26 => _26.usageGuidance, 'optionalAccess', _27 => _27.toolExecutionResult]);
2538
+ const result = _optionalChain([metadata, 'access', _28 => _28.usageGuidance, 'optionalAccess', _29 => _29.toolExecutionResult]);
2461
2539
  const getters = ["extractedValues", "extractedLists"].flatMap(
2462
2540
  (kind) => {
2463
- const group = _optionalChain([result, 'optionalAccess', _28 => _28[kind]]);
2464
- return Array.isArray(group) ? group : _chunkHVI55MTKjs.isRecord.call(void 0, group) ? Object.entries(group).map(([name, getter]) => ({
2541
+ const group = _optionalChain([result, 'optionalAccess', _30 => _30[kind]]);
2542
+ return Array.isArray(group) ? group : _chunk3IKGZ4CGjs.isRecord.call(void 0, group) ? Object.entries(group).map(([name, getter]) => ({
2465
2543
  name,
2466
2544
  ...getter
2467
2545
  })) : [];
2468
2546
  }
2469
2547
  );
2470
2548
  return getters.flatMap((getter) => {
2471
- const paths = _nullishCoalesce(_nullishCoalesce(_optionalChain([getter, 'access', _29 => _29.details, 'optionalAccess', _30 => _30.rawToolOutputPaths]), () => ( _optionalChain([getter, 'access', _31 => _31.details, 'optionalAccess', _32 => _32.candidatePaths]))), () => ( []));
2549
+ const paths = _nullishCoalesce(_nullishCoalesce(_optionalChain([getter, 'access', _31 => _31.details, 'optionalAccess', _32 => _32.rawToolOutputPaths]), () => ( _optionalChain([getter, 'access', _33 => _33.details, 'optionalAccess', _34 => _34.candidatePaths]))), () => ( []));
2472
2550
  for (const path of paths) {
2473
2551
  const value = valueAt(envelope, path);
2474
2552
  if (value === void 0) continue;
@@ -2486,13 +2564,13 @@ function declaredOutputs(metadata, envelope, data) {
2486
2564
  }
2487
2565
  function writeToolReceipt(input) {
2488
2566
  const { response, metadata } = input;
2489
- const envelope = _chunkHVI55MTKjs.isRecord.call(void 0, response) ? response : {};
2567
+ const envelope = _chunk3IKGZ4CGjs.isRecord.call(void 0, response) ? response : {};
2490
2568
  const jobId = typeof envelope.job_id === "string" ? envelope.job_id : null;
2491
- const toolResponse = _chunkHVI55MTKjs.recordField.call(void 0, envelope, "toolResponse");
2569
+ const toolResponse = _chunk3IKGZ4CGjs.recordField.call(void 0, envelope, "toolResponse");
2492
2570
  const data = Object.hasOwn(toolResponse, "rawV2") ? toolResponse.rawV2 : Object.hasOwn(toolResponse, "raw") ? toolResponse.raw : Object.hasOwn(envelope, "output") ? envelope.output : Object.hasOwn(envelope, "result") ? envelope.result : response;
2493
2571
  const status = typeof envelope.status === "string" ? envelope.status : "completed";
2494
- const charged = _chunkHVI55MTKjs.recordField.call(void 0, envelope, "billing").credits_charged;
2495
- _chunkDP2VH7COjs.writeExecutionOutput.call(void 0,
2572
+ const charged = _chunk3IKGZ4CGjs.recordField.call(void 0, envelope, "billing").credits_charged;
2573
+ _chunkUYCZFQYQjs.writeExecutionOutput.call(void 0,
2496
2574
  {
2497
2575
  id: _nullishCoalesce(input.key, () => ( jobId)),
2498
2576
  status,
@@ -2509,7 +2587,7 @@ function writeToolReceipt(input) {
2509
2587
  ...apifySyncRecoveryNext(response),
2510
2588
  ...input.key ? { status: `deepline runs get ${input.key}` } : {},
2511
2589
  ...jobId ? {
2512
- billing: `deepline billing usage --request-id ${_chunkAID3OYVJjs.shellQuote.call(void 0, jobId)} --json`
2590
+ billing: `deepline billing usage --request-id ${_chunkBVXIGOBZjs.shellQuote.call(void 0, jobId)} --json`
2513
2591
  } : {}
2514
2592
  }
2515
2593
  },
@@ -2523,14 +2601,14 @@ async function executeToolForReceipt(input) {
2523
2601
  let retryKey = null;
2524
2602
  let received = false;
2525
2603
  try {
2526
- const cliInvocationId = _nullishCoalesce(_chunkY6SP3JMIjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkY6SP3JMIjs.beginToolExecuteCommand.call(void 0, )));
2527
- const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
2604
+ const cliInvocationId = _nullishCoalesce(_chunk7OWI736Ejs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk7OWI736Ejs.beginToolExecuteCommand.call(void 0, )));
2605
+ const client = new (0, _chunkDUBXUAAOjs.DeeplineClient)();
2528
2606
  const metadata = assertExecutableToolMetadata(
2529
2607
  toolId,
2530
2608
  await _asyncNullishCoalesce(input.metadata, async () => ( await client.getTool(toolId, { cliInvocationId })))
2531
2609
  );
2532
2610
  printToolExecutionWarnings(toolId, params, metadata);
2533
- const responseIntent = _optionalChain([output, 'access', _33 => _33.csvOut, 'optionalAccess', _34 => _34.length]) ? "row_artifact" : "raw";
2611
+ const responseIntent = _optionalChain([output, 'access', _35 => _35.csvOut, 'optionalAccess', _36 => _36.length]) ? "row_artifact" : "raw";
2534
2612
  const recovery = ToolCallRecovery.open({
2535
2613
  toolId,
2536
2614
  params,
@@ -2544,11 +2622,11 @@ async function executeToolForReceipt(input) {
2544
2622
  const call = (idempotencyKey) => client.executeTool(toolId, params, {
2545
2623
  responseIntent,
2546
2624
  ...input.timeoutMs !== void 0 ? { timeout: input.timeoutMs } : {},
2547
- ..._optionalChain([metadata, 'access', _35 => _35.executionMetadata, 'optionalAccess', _36 => _36.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
2625
+ ..._optionalChain([metadata, 'access', _37 => _37.executionMetadata, 'optionalAccess', _38 => _38.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {},
2548
2626
  ...idempotencyKey ? { idempotencyKey } : {},
2549
- searchRef: _chunkSBH4CKPNjs.recentSearchRef.call(void 0, toolId),
2627
+ searchRef: _chunkFBAFX43Wjs.recentSearchRef.call(void 0, toolId),
2550
2628
  cliInvocationId,
2551
- onResponseReceived: _chunkDP2VH7COjs.recordApiResponse
2629
+ onResponseReceived: _chunkUYCZFQYQjs.recordApiResponse
2552
2630
  });
2553
2631
  const response = await call(key).catch((error) => {
2554
2632
  if (!key || !refusedRetryKey(error)) throw error;
@@ -2583,12 +2661,12 @@ async function executeToolForReceipt(input) {
2583
2661
  } catch (error) {
2584
2662
  if (received) throw error;
2585
2663
  const outcomeKnown = answeredWithFailure(error);
2586
- if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _37 => _37.discard, 'call', _38 => _38()]);
2587
- _chunkDP2VH7COjs.writeExecutionOutput.call(void 0,
2664
+ if (outcomeKnown) _optionalChain([retryKey, 'optionalAccess', _39 => _39.discard, 'call', _40 => _40()]);
2665
+ _chunkUYCZFQYQjs.writeExecutionOutput.call(void 0,
2588
2666
  {
2589
2667
  id: outcomeKnown ? null : key,
2590
2668
  status: "failed",
2591
- error: _chunkXLIHTJVMjs.errorToJsonPayload.call(void 0, error).error,
2669
+ error: _chunkYQKCH4R7js.errorToJsonPayload.call(void 0, error).error,
2592
2670
  ...key && !outcomeKnown ? {
2593
2671
  next: {
2594
2672
  retry: "Run the same command again: it picks up this call without paying twice."
@@ -2605,7 +2683,7 @@ function refusedRetryKey(error) {
2605
2683
  // The SDK raises the same code locally when a recovery read finds no
2606
2684
  // support after a POST that may have been dispatched; that one must keep
2607
2685
  // its key and report an unknown outcome, never call again.
2608
- serverBodyHasCode(_optionalChain([error, 'access', _39 => _39.details, 'optionalAccess', _40 => _40.response]), "IDEMPOTENCY_NOT_SUPPORTED");
2686
+ serverBodyHasCode(_optionalChain([error, 'access', _41 => _41.details, 'optionalAccess', _42 => _42.response]), "IDEMPOTENCY_NOT_SUPPORTED");
2609
2687
  }
2610
2688
  function serverBodyHasCode(body, code) {
2611
2689
  if (!body || typeof body !== "object") return false;
@@ -2617,14 +2695,14 @@ function answeredWithFailure(error) {
2617
2695
  return error instanceof _chunkLFQJW4S2js.DeeplineError && typeof error.statusCode === "number" && error.statusCode < 500 && // A request timeout says nothing about whether the call went through.
2618
2696
  error.statusCode !== 408 && error.code !== "EXECUTION_OUTCOME_UNKNOWN" && // The SDK's own "no recovery support" after a keyed POST is not the
2619
2697
  // server's answer: that POST may have run, so its key must survive.
2620
- !(error.code === "IDEMPOTENCY_NOT_SUPPORTED" && !serverBodyHasCode(_optionalChain([error, 'access', _41 => _41.details, 'optionalAccess', _42 => _42.response]), "IDEMPOTENCY_NOT_SUPPORTED"));
2698
+ !(error.code === "IDEMPOTENCY_NOT_SUPPORTED" && !serverBodyHasCode(_optionalChain([error, 'access', _43 => _43.details, 'optionalAccess', _44 => _44.response]), "IDEMPOTENCY_NOT_SUPPORTED"));
2621
2699
  }
2622
2700
  async function getToolExecutionReceipt(key, output) {
2623
- const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
2701
+ const client = new (0, _chunkDUBXUAAOjs.DeeplineClient)();
2624
2702
  const execution = await client.executions.getByKey(key);
2625
2703
  output.label = `${execution.toolId} (tool)`;
2626
2704
  if (execution.response === void 0) {
2627
- _chunkDP2VH7COjs.writeExecutionOutput.call(void 0,
2705
+ _chunkUYCZFQYQjs.writeExecutionOutput.call(void 0,
2628
2706
  {
2629
2707
  id: key,
2630
2708
  status: execution.executionRecovery.state,
@@ -2653,19 +2731,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2653
2731
  parsed = parseExecuteOptions(toolId, options, output);
2654
2732
  } catch (error) {
2655
2733
  if (wantsJson) {
2656
- _chunkXLIHTJVMjs.printJsonError.call(void 0, error);
2734
+ _chunkYQKCH4R7js.printJsonError.call(void 0, error);
2657
2735
  } else {
2658
2736
  console.error(error instanceof Error ? error.message : String(error));
2659
2737
  }
2660
2738
  return error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2661
2739
  }
2662
- const cliInvocationId = _nullishCoalesce(_chunkY6SP3JMIjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkY6SP3JMIjs.beginToolExecuteCommand.call(void 0, )));
2740
+ const cliInvocationId = _nullishCoalesce(_chunk7OWI736Ejs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk7OWI736Ejs.beginToolExecuteCommand.call(void 0, )));
2663
2741
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2664
- const tracing = _chunkWOCHZCUJjs.isCliTraceEnabled.call(void 0, );
2742
+ const tracing = _chunkGRZENGNEjs.isCliTraceEnabled.call(void 0, );
2665
2743
  const clientStartedAt = tracing ? performance.now() : void 0;
2666
- const client = new (0, _chunkJLGP5XAJjs.DeeplineClient)();
2744
+ const client = new (0, _chunkDUBXUAAOjs.DeeplineClient)();
2667
2745
  if (clientStartedAt !== void 0) {
2668
- _chunkWOCHZCUJjs.recordCliTrace.call(void 0, {
2746
+ _chunkGRZENGNEjs.recordCliTrace.call(void 0, {
2669
2747
  phase: "cli.tool_execute_client_setup",
2670
2748
  ms: performance.now() - clientStartedAt
2671
2749
  });
@@ -2674,13 +2752,13 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2674
2752
  const readMetadata = async () => {
2675
2753
  if (metadata) return assertExecutableToolMetadata(parsed.toolId, metadata);
2676
2754
  try {
2677
- metadata = await _chunkY6SP3JMIjs.runToolExecuteStage.call(void 0,
2755
+ metadata = await _chunk7OWI736Ejs.runToolExecuteStage.call(void 0,
2678
2756
  "tool metadata lookup",
2679
2757
  () => client.getTool(parsed.toolId, { cliInvocationId })
2680
2758
  );
2681
2759
  } catch (error) {
2682
2760
  if (isMissingToolMetadataError(error)) {
2683
- const play = await _chunkY6SP3JMIjs.runToolExecuteStage.call(void 0,
2761
+ const play = await _chunk7OWI736Ejs.runToolExecuteStage.call(void 0,
2684
2762
  "play alias lookup",
2685
2763
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2686
2764
  );
@@ -2696,6 +2774,28 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2696
2774
  }
2697
2775
  return assertExecutableToolMetadata(parsed.toolId, metadata);
2698
2776
  };
2777
+ const commandParams = { ...parsed.params };
2778
+ if (parsed.typedParamCandidates.length > 0) {
2779
+ let toolMetadata;
2780
+ try {
2781
+ toolMetadata = await readMetadata();
2782
+ } catch (error) {
2783
+ if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2784
+ if (wantsJson) _chunkYQKCH4R7js.printJsonError.call(void 0, error);
2785
+ else console.error(error.message);
2786
+ return 2;
2787
+ }
2788
+ }
2789
+ if (toolMetadata) {
2790
+ for (const key of parsed.typedParamCandidates) {
2791
+ parsed.params[key] = typedParamValue(
2792
+ toolMetadata.inputSchema,
2793
+ key,
2794
+ String(parsed.params[key])
2795
+ );
2796
+ }
2797
+ }
2798
+ }
2699
2799
  let executionWarningsPrinted = false;
2700
2800
  if (deferredCompatibility) {
2701
2801
  let preflightCompatibility;
@@ -2709,19 +2809,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2709
2809
  assertExecutableToolMetadata(parsed.toolId, metadata);
2710
2810
  } catch (error) {
2711
2811
  if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2712
- if (wantsJson) _chunkXLIHTJVMjs.printJsonError.call(void 0, error);
2812
+ if (wantsJson) _chunkYQKCH4R7js.printJsonError.call(void 0, error);
2713
2813
  else console.error(error.message);
2714
2814
  return 2;
2715
2815
  }
2716
2816
  throw error;
2717
2817
  }
2718
2818
  }
2719
- if (!metadata && _optionalChain([preflightCompatibility, 'optionalAccess', _43 => _43.response, 'optionalAccess', _44 => _44.update_required]) !== true && !_optionalChain([preflightCompatibility, 'optionalAccess', _45 => _45.error])) {
2819
+ if (!metadata && _optionalChain([preflightCompatibility, 'optionalAccess', _45 => _45.response, 'optionalAccess', _46 => _46.update_required]) !== true && !_optionalChain([preflightCompatibility, 'optionalAccess', _47 => _47.error])) {
2720
2820
  try {
2721
2821
  metadata = await readMetadata();
2722
2822
  } catch (error) {
2723
2823
  if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2724
- if (wantsJson) _chunkXLIHTJVMjs.printJsonError.call(void 0, error);
2824
+ if (wantsJson) _chunkYQKCH4R7js.printJsonError.call(void 0, error);
2725
2825
  else console.error(error.message);
2726
2826
  return 2;
2727
2827
  }
@@ -2737,7 +2837,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2737
2837
  metadata = await readMetadata();
2738
2838
  } catch (error) {
2739
2839
  if (error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2740
- if (wantsJson) _chunkXLIHTJVMjs.printJsonError.call(void 0, error);
2840
+ if (wantsJson) _chunkYQKCH4R7js.printJsonError.call(void 0, error);
2741
2841
  else console.error(error.message);
2742
2842
  return 2;
2743
2843
  }
@@ -2748,7 +2848,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2748
2848
  const responseIntent = parsed.outPath || parsed.outputFormat === "csv" || parsed.outputFormat === "csv_file" ? "row_artifact" : "raw";
2749
2849
  const recovery = ToolCallRecovery.open({
2750
2850
  toolId: parsed.toolId,
2751
- params: parsed.params,
2851
+ params: commandParams,
2752
2852
  responseIntent,
2753
2853
  recover: parsed.recover,
2754
2854
  idempotencyKey: parsed.idempotencyKey
@@ -2764,11 +2864,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2764
2864
  ...parsed.connection !== void 0 ? { connection: parsed.connection } : {},
2765
2865
  ...idempotencyKey ? { idempotencyKey } : {},
2766
2866
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2767
- searchRef: _chunkSBH4CKPNjs.recentSearchRef.call(void 0, parsed.toolId),
2867
+ searchRef: _chunkFBAFX43Wjs.recentSearchRef.call(void 0, parsed.toolId),
2768
2868
  cliInvocationId,
2769
- onResponseReceived: _chunkDP2VH7COjs.recordApiResponse,
2869
+ onResponseReceived: _chunkUYCZFQYQjs.recordApiResponse,
2770
2870
  ...tracing ? {
2771
- onServerTiming: (serverTiming) => _chunkWOCHZCUJjs.recordCliTrace.call(void 0, {
2871
+ onServerTiming: (serverTiming) => _chunkGRZENGNEjs.recordCliTrace.call(void 0, {
2772
2872
  phase: "tool_execute_server_timing",
2773
2873
  cliInvocationId,
2774
2874
  serverTiming,
@@ -2779,51 +2879,51 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2779
2879
  let rawResponse;
2780
2880
  let successfulCompatibilityResponse;
2781
2881
  try {
2782
- const executeResult = await _chunkY6SP3JMIjs.runToolExecuteStage.call(void 0,
2882
+ const executeResult = await _chunk7OWI736Ejs.runToolExecuteStage.call(void 0,
2783
2883
  "execute request",
2784
2884
  async () => {
2785
2885
  try {
2786
2886
  if (tracing) {
2787
2887
  submissionStartedAt = performance.now();
2788
- _chunkWOCHZCUJjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2888
+ _chunkGRZENGNEjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2789
2889
  }
2790
2890
  return await client.executeTool(parsed.toolId, parsed.params, {
2791
2891
  ...executeOptions,
2792
2892
  atomicToolOnly: true,
2793
- ..._optionalChain([metadata, 'optionalAccess', _46 => _46.executionMetadata, 'optionalAccess', _47 => _47.retrySafeAmbiguousDelivery]) === true ? { retryAmbiguousDelivery: true } : {}
2893
+ ..._optionalChain([metadata, 'optionalAccess', _48 => _48.executionMetadata, 'optionalAccess', _49 => _49.retrySafeAmbiguousDelivery]) === true ? { retryAmbiguousDelivery: true } : {}
2794
2894
  });
2795
2895
  } catch (error) {
2796
2896
  if (parsed.connection !== void 0 || !(error instanceof _chunkLFQJW4S2js.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2797
2897
  throw error;
2798
- const baseUrl = _chunkMLABYI4Mjs.resolveConfig.call(void 0, ).baseUrl;
2898
+ const baseUrl = _chunkVIUUTEHYjs.resolveConfig.call(void 0, ).baseUrl;
2799
2899
  if (maintenancePolicy !== "off") {
2800
- _chunk2B5B5KAWjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2900
+ _chunk2HMN5H54js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2801
2901
  }
2802
2902
  const preflight = deferredCompatibility ? await deferredCompatibility.result.catch(() => null) : null;
2803
- const compatibilityResponse = _optionalChain([preflight, 'optionalAccess', _48 => _48.live]) === true ? preflight.response : await _chunkY6SP3JMIjs.runToolExecuteStage.call(void 0,
2903
+ const compatibilityResponse = _optionalChain([preflight, 'optionalAccess', _50 => _50.live]) === true ? preflight.response : await _chunk7OWI736Ejs.runToolExecuteStage.call(void 0,
2804
2904
  "SDK compatibility",
2805
- () => _chunk2B5B5KAWjs.requireSdkCompatibility.call(void 0, baseUrl, {
2905
+ () => _chunk2HMN5H54js.requireSdkCompatibility.call(void 0, baseUrl, {
2806
2906
  command: "tools execute",
2807
- skillsVersion: _chunkMLABYI4Mjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2907
+ skillsVersion: _chunkVIUUTEHYjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2808
2908
  persistCache: maintenancePolicy !== "off"
2809
2909
  })
2810
2910
  );
2811
- metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _49 => _49.readMetadata, 'call', _50 => _50()]), () => ( metadata));
2812
- if (maintenancePolicy !== "off" && await _chunkY6SP3JMIjs.maybeAutoUpdateAndRelaunch.call(void 0,
2911
+ metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _51 => _51.readMetadata, 'call', _52 => _52()]), () => ( metadata));
2912
+ if (maintenancePolicy !== "off" && await _chunk7OWI736Ejs.maybeAutoUpdateAndRelaunch.call(void 0,
2813
2913
  compatibilityResponse,
2814
2914
  baseUrl,
2815
2915
  maintenancePolicy
2816
2916
  )) {
2817
2917
  return void 0;
2818
2918
  }
2819
- _chunk2B5B5KAWjs.enforceSdkCompatibilityResponse.call(void 0, compatibilityResponse, {
2919
+ _chunk2HMN5H54js.enforceSdkCompatibilityResponse.call(void 0, compatibilityResponse, {
2820
2920
  quietAdvisory: wantsJson
2821
2921
  });
2822
2922
  if (maintenancePolicy !== "off") {
2823
- await _chunkY6SP3JMIjs.runToolExecuteStage.call(void 0,
2923
+ await _chunk7OWI736Ejs.runToolExecuteStage.call(void 0,
2824
2924
  "agent skills sync",
2825
- () => _chunk2B5B5KAWjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2826
- update: _optionalChain([compatibilityResponse, 'optionalAccess', _51 => _51.skills]),
2925
+ () => _chunk2HMN5H54js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2926
+ update: _optionalChain([compatibilityResponse, 'optionalAccess', _53 => _53.skills]),
2827
2927
  mode: "detached"
2828
2928
  })
2829
2929
  );
@@ -2831,11 +2931,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2831
2931
  const legacyMetadata = await readMetadata();
2832
2932
  if (tracing) {
2833
2933
  submissionStartedAt = performance.now();
2834
- _chunkWOCHZCUJjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2934
+ _chunkGRZENGNEjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2835
2935
  }
2836
2936
  return client.executeTool(parsed.toolId, parsed.params, {
2837
2937
  ...executeOptions,
2838
- ..._optionalChain([legacyMetadata, 'access', _52 => _52.executionMetadata, 'optionalAccess', _53 => _53.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {}
2938
+ ..._optionalChain([legacyMetadata, 'access', _54 => _54.executionMetadata, 'optionalAccess', _55 => _55.retrySafeTransientHttp]) === true ? { maxRetries: 2, retryApiErrors: true } : {}
2839
2939
  });
2840
2940
  }
2841
2941
  }
@@ -2854,8 +2954,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2854
2954
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2855
2955
  const updateRequiredBeforeExecution = error instanceof _chunkLFQJW4S2js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2856
2956
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2857
- const baseUrl = _chunkMLABYI4Mjs.resolveConfig.call(void 0, ).baseUrl;
2858
- if (await _chunkY6SP3JMIjs.maybeAutoUpdateAndRelaunch.call(void 0,
2957
+ const baseUrl = _chunkVIUUTEHYjs.resolveConfig.call(void 0, ).baseUrl;
2958
+ if (await _chunk7OWI736Ejs.maybeAutoUpdateAndRelaunch.call(void 0,
2859
2959
  compatibility.response,
2860
2960
  baseUrl,
2861
2961
  maintenancePolicy
@@ -2868,7 +2968,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2868
2968
  throw error;
2869
2969
  let failure = error;
2870
2970
  if (!(failure instanceof _chunkLFQJW4S2js.DeeplineError) || failure.code !== "PLAY_ALIAS_USED_AS_TOOL") {
2871
- const warningPreflightWasAvailable = !deferredCompatibility || !compatibilityReadFailed && !_optionalChain([compatibility, 'optionalAccess', _54 => _54.error]);
2971
+ const warningPreflightWasAvailable = !deferredCompatibility || !compatibilityReadFailed && !_optionalChain([compatibility, 'optionalAccess', _56 => _56.error]);
2872
2972
  if (metadata || warningPreflightWasAvailable) {
2873
2973
  try {
2874
2974
  await readMetadata();
@@ -2879,14 +2979,14 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2879
2979
  }
2880
2980
  }
2881
2981
  if (failure instanceof _chunkLFQJW4S2js.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2882
- if (wantsJson) _chunkXLIHTJVMjs.printJsonError.call(void 0, failure);
2982
+ if (wantsJson) _chunkYQKCH4R7js.printJsonError.call(void 0, failure);
2883
2983
  else console.error(failure.message);
2884
2984
  return 2;
2885
2985
  }
2886
- const guidanceLines = toolGuidanceLines(_optionalChain([metadata, 'optionalAccess', _55 => _55.guidance]));
2986
+ const guidanceLines = toolGuidanceLines(_optionalChain([metadata, 'optionalAccess', _57 => _57.guidance]));
2887
2987
  if (guidanceLines.length > 0) {
2888
2988
  if (wantsJson && failure instanceof Error) {
2889
- Object.assign(failure, { guidance: _optionalChain([metadata, 'optionalAccess', _56 => _56.guidance]) });
2989
+ Object.assign(failure, { guidance: _optionalChain([metadata, 'optionalAccess', _58 => _58.guidance]) });
2890
2990
  } else {
2891
2991
  console.error(
2892
2992
  [`Guidance for ${parsed.toolId}:`, ...guidanceLines].join("\n")
@@ -2902,17 +3002,17 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2902
3002
  } catch (e4) {
2903
3003
  }
2904
3004
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2905
- const compatibilityResponse = _optionalChain([compatibility, 'optionalAccess', _57 => _57.response]);
3005
+ const compatibilityResponse = _optionalChain([compatibility, 'optionalAccess', _59 => _59.response]);
2906
3006
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
2907
- const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _58 => _58.auto_update]);
2908
- if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _59 => _59.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
2909
- await _chunkY6SP3JMIjs.maybeAutoUpdateAndRelaunch.call(void 0,
3007
+ const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _60 => _60.auto_update]);
3008
+ if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _61 => _61.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
3009
+ await _chunk7OWI736Ejs.maybeAutoUpdateAndRelaunch.call(void 0,
2910
3010
  compatibilityResponse,
2911
- _chunkMLABYI4Mjs.resolveConfig.call(void 0, ).baseUrl,
3011
+ _chunkVIUUTEHYjs.resolveConfig.call(void 0, ).baseUrl,
2912
3012
  maintenancePolicy
2913
3013
  );
2914
3014
  }
2915
- if (!metadata && !_optionalChain([compatibility, 'optionalAccess', _60 => _60.error])) {
3015
+ if (!metadata && !_optionalChain([compatibility, 'optionalAccess', _62 => _62.error])) {
2916
3016
  try {
2917
3017
  metadata = await readMetadata();
2918
3018
  } catch (e5) {
@@ -2926,8 +3026,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2926
3026
  );
2927
3027
  }
2928
3028
  }
2929
- const responseMetadata = _chunkHVI55MTKjs.recordField.call(void 0,
2930
- _chunkHVI55MTKjs.recordField.call(void 0, rawResponse, "_metadata"),
3029
+ const responseMetadata = _chunk3IKGZ4CGjs.recordField.call(void 0,
3030
+ _chunk3IKGZ4CGjs.recordField.call(void 0, rawResponse, "_metadata"),
2931
3031
  "tool"
2932
3032
  );
2933
3033
  const listOutputPaths = responseMetadata.listOutputPaths;
@@ -2939,11 +3039,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2939
3039
  await readMetadata()
2940
3040
  );
2941
3041
  }
2942
- if (_chunkHVI55MTKjs.isRecord.call(void 0, rawResponse)) {
3042
+ if (_chunk3IKGZ4CGjs.isRecord.call(void 0, rawResponse)) {
2943
3043
  const { _metadata, ...execution } = rawResponse;
2944
3044
  rawResponse = execution;
2945
3045
  }
2946
- const { listConversion, summary, baseEnvelope } = await _chunkY6SP3JMIjs.runToolExecuteStage.call(void 0,
3046
+ const { listConversion, summary, baseEnvelope } = await _chunk7OWI736Ejs.runToolExecuteStage.call(void 0,
2947
3047
  "result formatting",
2948
3048
  async () => {
2949
3049
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -2963,7 +3063,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2963
3063
  rawResponse,
2964
3064
  listConversion: listConversion2,
2965
3065
  summary: summary2,
2966
- guidance: _optionalChain([metadata, 'optionalAccess', _61 => _61.guidance]),
3066
+ guidance: _optionalChain([metadata, 'optionalAccess', _63 => _63.guidance]),
2967
3067
  listExpected: listExtractorPaths.length > 0
2968
3068
  });
2969
3069
  return { listConversion: listConversion2, summary: summary2, baseEnvelope: baseEnvelope2 };
@@ -2978,9 +3078,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2978
3078
  }
2979
3079
  skillsSyncAttempted = true;
2980
3080
  try {
2981
- await _chunkY6SP3JMIjs.runToolExecuteStage.call(void 0,
3081
+ await _chunk7OWI736Ejs.runToolExecuteStage.call(void 0,
2982
3082
  "agent skills sync",
2983
- () => _chunk2B5B5KAWjs.syncSdkSkillsIfNeeded.call(void 0, _chunkMLABYI4Mjs.resolveConfig.call(void 0, ).baseUrl, {
3083
+ () => _chunk2HMN5H54js.syncSdkSkillsIfNeeded.call(void 0, _chunkVIUUTEHYjs.resolveConfig.call(void 0, ).baseUrl, {
2984
3084
  update: deliveredCompatibilityResponse.skills,
2985
3085
  mode: "detached"
2986
3086
  })
@@ -2991,15 +3091,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2991
3091
  );
2992
3092
  }
2993
3093
  };
2994
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0, envelope, {
3094
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkYQKCH4R7js.printCommandEnvelope.call(void 0, envelope, {
2995
3095
  ...options2,
2996
3096
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
2997
3097
  });
2998
3098
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
2999
3099
  await syncSkillsForDeliveredOutput();
3000
- _chunkXLIHTJVMjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3100
+ _chunkYQKCH4R7js.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
3001
3101
  };
3002
- const delivered = await _chunkY6SP3JMIjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
3102
+ const delivered = await _chunk7OWI736Ejs.runToolExecuteStage.call(void 0, "output delivery", async () => {
3003
3103
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
3004
3104
  await printDeliveredJsonEnvelope(baseEnvelope);
3005
3105
  return true;
@@ -3012,7 +3112,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3012
3112
  await printDeliveredJsonEnvelope({
3013
3113
  ...baseEnvelope,
3014
3114
  local: {
3015
- ..._chunkHVI55MTKjs.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
3115
+ ..._chunk3IKGZ4CGjs.isRecord.call(void 0, baseEnvelope.local) ? baseEnvelope.local : {},
3016
3116
  payload_file: jsonPath
3017
3117
  }
3018
3118
  });
@@ -3028,7 +3128,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
3028
3128
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3029
3129
  );
3030
3130
  if (wantsJson) {
3031
- _chunkXLIHTJVMjs.printJsonError.call(void 0, error);
3131
+ _chunkYQKCH4R7js.printJsonError.call(void 0, error);
3032
3132
  } else {
3033
3133
  console.error(error.message);
3034
3134
  }
@@ -3123,14 +3223,14 @@ inspect: ${inspection.inspect}
3123
3223
  return true;
3124
3224
  });
3125
3225
  if (delivered) {
3126
- await _chunkY6SP3JMIjs.runToolExecuteStage.call(void 0,
3226
+ await _chunk7OWI736Ejs.runToolExecuteStage.call(void 0,
3127
3227
  "acknowledge delivery",
3128
3228
  () => recovery.acknowledgeDelivery()
3129
3229
  );
3130
3230
  }
3131
3231
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
3132
- _chunk2B5B5KAWjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3133
- quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _62 => _62.auto_update, 'optionalAccess', _63 => _63.should_auto_update]) === true
3232
+ _chunk2HMN5H54js.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
3233
+ quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _64 => _64.auto_update, 'optionalAccess', _65 => _65.should_auto_update]) === true
3134
3234
  });
3135
3235
  }
3136
3236
  if (delivered && !skillsSyncAttempted) await syncSkillsForDeliveredOutput();
@@ -3148,4 +3248,5 @@ inspect: ${inspection.inspect}
3148
3248
 
3149
3249
 
3150
3250
 
3151
- exports.registerToolsCommands = registerToolsCommands; exports.printMonitorTypeContract = printMonitorTypeContract; exports.printCompactToolContract = printCompactToolContract; exports.extractToolExecutionWarningMessages = extractToolExecutionWarningMessages; exports.parseToolExecuteTimeout = parseToolExecuteTimeout; exports.seedToolListScript = seedToolListScript; exports.buildToolExecuteBaseEnvelope = buildToolExecuteBaseEnvelope; exports.writeToolReceipt = writeToolReceipt; exports.executeToolForReceipt = executeToolForReceipt; exports.getToolExecutionReceipt = getToolExecutionReceipt;
3251
+
3252
+ exports.jsonFileText = jsonFileText; exports.registerToolsCommands = registerToolsCommands; exports.printMonitorTypeContract = printMonitorTypeContract; exports.printCompactToolContract = printCompactToolContract; exports.extractToolExecutionWarningMessages = extractToolExecutionWarningMessages; exports.parseToolExecuteTimeout = parseToolExecuteTimeout; exports.seedToolListScript = seedToolListScript; exports.buildToolExecuteBaseEnvelope = buildToolExecuteBaseEnvelope; exports.writeToolReceipt = writeToolReceipt; exports.executeToolForReceipt = executeToolForReceipt; exports.getToolExecutionReceipt = getToolExecutionReceipt;