deepline 0.3.422 → 0.3.424

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 (156) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +15 -8
  2. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/play.ts +227 -184
  4. package/dist/bundling-sources/sdk/src/plays/local-file-discovery.ts +9 -2
  5. package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +1 -1
  6. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  7. package/dist/bundling-sources/sdk/src/tool-calls.ts +3 -1
  8. package/dist/bundling-sources/sdk/src/types.ts +5 -5
  9. package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +11 -1
  10. package/dist/bundling-sources/shared_libs/monitors/inventory-reconciliation.ts +38 -4
  11. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +12 -0
  12. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-control-plane-capability.ts +25 -0
  13. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +10 -0
  14. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-identity-claims.ts +201 -0
  15. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +42 -5
  16. package/dist/bundling-sources/shared_libs/monitors/provider-webhook-monitor-runtime.ts +5 -0
  17. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -36
  18. package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +179 -38
  19. package/dist/bundling-sources/shared_libs/plays/dataset.ts +2 -2
  20. package/dist/bundling-sources/shared_libs/plays/docflow.ts +4 -0
  21. package/dist/bundling-sources/shared_libs/plays/fetch-http-error.ts +1 -1
  22. package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +12 -4
  23. package/dist/bundling-sources/shared_libs/plays/play-exports.ts +27 -5
  24. package/dist/bundling-sources/shared_libs/plays/script-entry.ts +992 -0
  25. package/dist/bundling-sources/shared_libs/plays/source-authoring-edition.ts +63 -0
  26. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +8 -4
  27. package/dist/bundling-sources/shared_libs/plays/ts-ast.ts +2 -0
  28. package/dist/cli/auth-MN7MWTFR.js +40 -0
  29. package/dist/cli/{auth-DMLBSXLV.mjs → auth-QITAQMHF.mjs} +4 -4
  30. package/dist/cli/{billing-IFGFPGJV.js → billing-N5AOFDSU.js} +73 -73
  31. package/dist/cli/{billing-SEXKROBQ.mjs → billing-UX2GH5L2.mjs} +4 -4
  32. package/dist/cli/{chunk-BL3LY54Y.js → chunk-22XGRO2M.js} +8 -8
  33. package/dist/cli/{chunk-AARWVK4C.mjs → chunk-2BQUML3X.mjs} +792 -69
  34. package/dist/cli/{chunk-ERFN2QY4.mjs → chunk-3DNKFH2G.mjs} +1 -1
  35. package/dist/cli/{chunk-QNBHQM5R.mjs → chunk-3FQUUVN2.mjs} +1 -1
  36. package/dist/cli/{chunk-4CAVSRQH.mjs → chunk-3O7KATMQ.mjs} +1 -1
  37. package/dist/cli/{chunk-S4KGXRCV.js → chunk-3VB5DQ7Y.js} +20 -20
  38. package/dist/cli/{chunk-VT6WJ26Y.mjs → chunk-5MD5I4MM.mjs} +1 -1
  39. package/dist/cli/{chunk-W74RDGRL.mjs → chunk-5OBCPN2C.mjs} +2 -2
  40. package/dist/cli/{chunk-LXRDHISW.js → chunk-5YLEB4CL.js} +8 -8
  41. package/dist/cli/{chunk-2JKQORUX.mjs → chunk-7KNBC4RJ.mjs} +2 -2
  42. package/dist/cli/{chunk-MLP4CAY7.mjs → chunk-7VC7STG5.mjs} +4 -4
  43. package/dist/cli/{chunk-KBJP3UAU.js → chunk-7W4N6VRE.js} +35 -35
  44. package/dist/cli/{chunk-3CE3WGKP.mjs → chunk-7Y5M5YE3.mjs} +2 -2
  45. package/dist/cli/{chunk-V4RAH5D6.js → chunk-CJD5QKYK.js} +26 -26
  46. package/dist/cli/{chunk-AYM2KZN3.js → chunk-DD6MM6WX.js} +6 -6
  47. package/dist/cli/{chunk-63ILLN5H.mjs → chunk-DS7Y7X26.mjs} +2 -2
  48. package/dist/cli/{chunk-CTNA5QY2.mjs → chunk-EER67G2B.mjs} +43 -28
  49. package/dist/cli/{chunk-OZHPZCAU.js → chunk-F3MMA7JY.js} +52 -52
  50. package/dist/cli/{chunk-CO3VMH33.mjs → chunk-FJ5U2IZY.mjs} +28 -27
  51. package/dist/cli/{chunk-27GJKC5Q.js → chunk-GXOQRZXG.js} +2 -2
  52. package/dist/cli/{chunk-AXDEH2AM.mjs → chunk-HBW6PEVG.mjs} +2 -2
  53. package/dist/cli/{chunk-PKBPSMOT.js → chunk-INFLI36H.js} +43 -28
  54. package/dist/cli/{chunk-4PG4ARL2.mjs → chunk-KPKU53YO.mjs} +1 -1
  55. package/dist/cli/{chunk-2LVM22ZU.js → chunk-LSZZVHQP.js} +2 -2
  56. package/dist/cli/{chunk-IMZ56EOH.mjs → chunk-LXTSVUZN.mjs} +2 -2
  57. package/dist/cli/{chunk-WGO2DY4L.js → chunk-M2VXDQI2.js} +11 -11
  58. package/dist/cli/{chunk-7OJEYJ6G.mjs → chunk-M67UCQKW.mjs} +3 -3
  59. package/dist/cli/{chunk-KXPIFC5S.mjs → chunk-MFXQVT7P.mjs} +3 -3
  60. package/dist/cli/{chunk-IHG7UAHD.mjs → chunk-MLJBCS3E.mjs} +32 -13
  61. package/dist/cli/{chunk-4EV2FKBI.js → chunk-OSNDC3VF.js} +16 -16
  62. package/dist/cli/{chunk-PXO253DP.mjs → chunk-OWWFCA7A.mjs} +1 -1
  63. package/dist/cli/{chunk-VRI3ABTK.js → chunk-PNGJIAJ3.js} +50 -50
  64. package/dist/cli/{chunk-HCYNAIHZ.js → chunk-QP5ATTMC.js} +4 -4
  65. package/dist/cli/{chunk-GEJDBXXM.js → chunk-QWRHGGUH.js} +1 -1
  66. package/dist/cli/{chunk-AD47BXN2.js → chunk-R2QWSSAG.js} +8 -8
  67. package/dist/cli/{chunk-QADCFSGH.js → chunk-RDIN3NKA.js} +17 -17
  68. package/dist/cli/{chunk-JRSULUPQ.js → chunk-RISEING7.js} +2 -2
  69. package/dist/cli/{chunk-M6SXXFMT.mjs → chunk-UOZCQPD4.mjs} +2 -2
  70. package/dist/cli/{chunk-TP26TAAF.mjs → chunk-UPH6UNUI.mjs} +1 -1
  71. package/dist/cli/{chunk-UQQRMCOL.js → chunk-UTF57UBW.js} +6 -6
  72. package/dist/cli/{chunk-FEKJENBB.mjs → chunk-VC5NKF4B.mjs} +3 -3
  73. package/dist/cli/{chunk-BQR6UN3C.js → chunk-VUYUI35Q.js} +32 -13
  74. package/dist/cli/{chunk-WP7T4BPE.js → chunk-YA3LMTLU.js} +1 -1
  75. package/dist/cli/{chunk-OQQOXSYA.js → chunk-YHRS6XTB.js} +845 -122
  76. package/dist/cli/{chunk-K4X472AT.js → chunk-YMASNIC5.js} +260 -259
  77. package/dist/cli/{chunk-SDCIROIS.mjs → chunk-ZMU2DDID.mjs} +5 -5
  78. package/dist/cli/command-docs.js +2 -2
  79. package/dist/cli/command-docs.mjs +1 -1
  80. package/dist/cli/{csv-J7UVP4KB.mjs → csv-NM5IHLVM.mjs} +3 -3
  81. package/dist/cli/{csv-Y4YWZSLB.js → csv-RL53NPRV.js} +12 -12
  82. package/dist/cli/{db-CQ6NHMLG.mjs → db-FZTIS4QG.mjs} +5 -5
  83. package/dist/cli/{db-SVFCM6YZ.js → db-RJCFUM2J.js} +26 -26
  84. package/dist/cli/{describe-FSDW6LTN.js → describe-A2MGAI3Y.js} +24 -24
  85. package/dist/cli/{describe-Y65BU7ZY.mjs → describe-T77IEILZ.mjs} +16 -16
  86. package/dist/cli/describe-core.d.mts +2 -2
  87. package/dist/cli/describe-core.d.ts +2 -2
  88. package/dist/cli/describe-core.js +4 -4
  89. package/dist/cli/describe-core.mjs +3 -3
  90. package/dist/cli/{executions-IW762OIJ.mjs → executions-AMQK53QX.mjs} +4 -4
  91. package/dist/cli/{executions-SJIKBRHT.js → executions-R6UPRZ5N.js} +6 -6
  92. package/dist/cli/{feedback-VMJIWAMT.mjs → feedback-BA5ZHVCZ.mjs} +3 -3
  93. package/dist/cli/{feedback-RCYSUOB3.js → feedback-JFT536KI.js} +7 -7
  94. package/dist/cli/{git-Q2WY3K6X.mjs → git-5ONARXFO.mjs} +4 -4
  95. package/dist/cli/git-NHQR3NKF.js +24 -0
  96. package/dist/cli/index.js +135 -135
  97. package/dist/cli/index.mjs +37 -37
  98. package/dist/cli/{legacy-noops-JVEE2VHK.mjs → legacy-noops-7J4K6QUX.mjs} +4 -4
  99. package/dist/cli/{legacy-noops-U4YPPYXU.js → legacy-noops-WT7M7WYD.js} +7 -7
  100. package/dist/cli/{monitors-AY4KQRTC.mjs → monitors-N3WDXW7H.mjs} +19 -13
  101. package/dist/cli/{monitors-BMAOQ37R.js → monitors-YH6PKEIW.js} +99 -93
  102. package/dist/cli/{org-ME4X6HWH.mjs → org-2V5ELSYS.mjs} +4 -4
  103. package/dist/cli/{org-G5IURX74.js → org-KGYHMT5P.js} +64 -64
  104. package/dist/cli/{play-X5GSZOKZ.js → play-2JOQQRZI.js} +606 -567
  105. package/dist/cli/{play-WLYU7WQL.mjs → play-CL2LCBAF.mjs} +113 -74
  106. package/dist/cli/{providers-2LBMNB7B.mjs → providers-I7EEPWNW.mjs} +4 -4
  107. package/dist/cli/{providers-AHEUVD3R.js → providers-VIP6MCWC.js} +7 -7
  108. package/dist/cli/{quickstart-DP2SKLIG.js → quickstart-33WC2KWE.js} +5 -5
  109. package/dist/cli/{quickstart-DBLYGHJP.mjs → quickstart-VRBKQODE.mjs} +3 -3
  110. package/dist/cli/{search-YKJHY3ZJ.mjs → search-7TDSKXOO.mjs} +5 -5
  111. package/dist/cli/search-A6RZZ4LK.js +30 -0
  112. package/dist/cli/{secrets-ECLARBO6.mjs → secrets-DGLCIN7Y.mjs} +4 -4
  113. package/dist/cli/{secrets-2P3I3OEZ.js → secrets-TQH5FXAC.js} +13 -13
  114. package/dist/cli/{sessions-MC4ZCTSN.js → sessions-4D4UDPIS.js} +5 -5
  115. package/dist/cli/{sessions-3GDFID7R.mjs → sessions-D6QGKQ2G.mjs} +4 -4
  116. package/dist/cli/{settings-RTPJXMOA.mjs → settings-6HVXBCVR.mjs} +8 -8
  117. package/dist/cli/{settings-7SVR2OVL.js → settings-V3QRG4AO.js} +75 -75
  118. package/dist/cli/{setup-4WLIJX36.js → setup-6WP7D5I3.js} +42 -42
  119. package/dist/cli/{setup-OKAZZGAW.mjs → setup-CSJ3HSL7.mjs} +7 -7
  120. package/dist/cli/{skills-2CVL6RG5.mjs → skills-2MTWP4PS.mjs} +5 -5
  121. package/dist/cli/skills-QOYOARZT.js +29 -0
  122. package/dist/cli/{tools-KAFHP6J4.mjs → tools-GAR3BWB6.mjs} +15 -15
  123. package/dist/cli/tools-MGEKAIOU.js +44 -0
  124. package/dist/cli/update-HMZCLFLZ.js +31 -0
  125. package/dist/cli/{update-3ZV3W7I4.mjs → update-XV3WV3MU.mjs} +7 -7
  126. package/dist/cli/{workflow-DKSUNZXE.mjs → workflow-DTZAWSB2.mjs} +9 -9
  127. package/dist/cli/{workflow-GULDFFP3.js → workflow-WNE7ORMT.js} +19 -19
  128. package/dist/{client-CCWIUnk7.d.mts → client-BcfFWD4Z.d.mts} +19 -15
  129. package/dist/{client-vHqBm-OL.d.ts → client-DH-fmT69.d.ts} +19 -15
  130. package/dist/{compiler-manifest-lzWpbV3w.d.mts → compiler-manifest-DaFuA1ki.d.mts} +35 -32
  131. package/dist/{compiler-manifest-lzWpbV3w.d.ts → compiler-manifest-DaFuA1ki.d.ts} +35 -32
  132. package/dist/{index-CtNK-0nI.d.mts → index-0yS9ihly.d.mts} +10 -3
  133. package/dist/{index-C8Cy-YTm.d.ts → index-CRAScKPg.d.ts} +10 -3
  134. package/dist/index.d.mts +120 -150
  135. package/dist/index.d.ts +120 -150
  136. package/dist/index.js +77 -12
  137. package/dist/index.mjs +74 -9
  138. package/dist/install-integrity.json +99 -98
  139. package/dist/plays/bundle-play-file.d.mts +3 -3
  140. package/dist/plays/bundle-play-file.d.ts +3 -3
  141. package/dist/plays/bundle-play-file.mjs +1 -1
  142. package/dist/plays/play-description.d.mts +2 -2
  143. package/dist/plays/play-description.d.ts +2 -2
  144. package/dist/plays/run-request.d.mts +2 -2
  145. package/dist/plays/run-request.d.ts +2 -2
  146. package/dist/release.d.mts +1 -1
  147. package/dist/release.d.ts +1 -1
  148. package/dist/release.js +2 -2
  149. package/dist/release.mjs +1 -1
  150. package/package.json +1 -1
  151. package/dist/cli/auth-HD5AM2WM.js +0 -40
  152. package/dist/cli/git-JAW3UEGA.js +0 -24
  153. package/dist/cli/search-4K3VSDS5.js +0 -30
  154. package/dist/cli/skills-ZNSQOXO2.js +0 -29
  155. package/dist/cli/tools-W4U4FT3R.js +0 -44
  156. package/dist/cli/update-IE2FPLB5.js +0 -31
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
2
2
 
3
- var _chunkAYM2KZN3js = require('./chunk-AYM2KZN3.js');
3
+ var _chunkDD6MM6WXjs = require('./chunk-DD6MM6WX.js');
4
4
 
5
5
 
6
6
 
@@ -17,13 +17,13 @@ var _chunkAYM2KZN3js = require('./chunk-AYM2KZN3.js');
17
17
 
18
18
 
19
19
 
20
- var _chunkHCYNAIHZjs = require('./chunk-HCYNAIHZ.js');
20
+ var _chunkQP5ATTMCjs = require('./chunk-QP5ATTMC.js');
21
21
 
22
22
 
23
23
  var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
24
24
 
25
25
 
26
- var _chunkWP7T4BPEjs = require('./chunk-WP7T4BPE.js');
26
+ var _chunkYA3LMTLUjs = require('./chunk-YA3LMTLU.js');
27
27
 
28
28
  // src/compat.ts
29
29
  var _crypto = require('crypto');
@@ -58,7 +58,7 @@ function shouldSkipCompatibilityCheck() {
58
58
  return value === "1" || value === "true" || value === "yes";
59
59
  }
60
60
  function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
61
- return _path.join.call(void 0, _chunkHCYNAIHZjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
61
+ return _path.join.call(void 0, _chunkQP5ATTMCjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
62
62
  }
63
63
  function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
64
64
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -66,9 +66,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
66
66
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
67
67
  return JSON.stringify({
68
68
  baseUrl: baseUrl.replace(/\/$/, ""),
69
- version: _chunkHCYNAIHZjs.SDK_VERSION,
70
- apiContract: _chunkHCYNAIHZjs.SDK_API_CONTRACT,
71
- apiMajor: _chunkHCYNAIHZjs.SDK_API_MAJOR,
69
+ version: _chunkQP5ATTMCjs.SDK_VERSION,
70
+ apiContract: _chunkQP5ATTMCjs.SDK_API_CONTRACT,
71
+ apiMajor: _chunkQP5ATTMCjs.SDK_API_MAJOR,
72
72
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
73
73
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
74
74
  });
@@ -76,8 +76,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
76
76
  function legacyCompatibilityCacheKey(baseUrl, command) {
77
77
  return JSON.stringify({
78
78
  baseUrl: baseUrl.replace(/\/$/, ""),
79
- version: _chunkHCYNAIHZjs.SDK_VERSION,
80
- apiContract: _chunkHCYNAIHZjs.SDK_API_CONTRACT,
79
+ version: _chunkQP5ATTMCjs.SDK_VERSION,
80
+ apiContract: _chunkQP5ATTMCjs.SDK_API_CONTRACT,
81
81
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
82
82
  });
83
83
  }
@@ -102,7 +102,7 @@ function isSavedWithin(savedAt, windowMs, now) {
102
102
  }
103
103
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
104
104
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
105
- const path = _path.join.call(void 0, _chunkHCYNAIHZjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
105
+ const path = _path.join.call(void 0, _chunkQP5ATTMCjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
106
106
  try {
107
107
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
108
108
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -186,7 +186,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
186
186
  );
187
187
  try {
188
188
  const url = new URL("/api/v2/sdk/compat", baseUrl);
189
- url.searchParams.set("version", _chunkHCYNAIHZjs.SDK_VERSION);
189
+ url.searchParams.set("version", _chunkQP5ATTMCjs.SDK_VERSION);
190
190
  if (_optionalChain([options, 'access', _27 => _27.command, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) {
191
191
  url.searchParams.set("command", options.command.trim());
192
192
  }
@@ -194,7 +194,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
194
194
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
195
195
  url.searchParams.set(
196
196
  "skills_cli_capability",
197
- String(_chunkWP7T4BPEjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
197
+ String(_chunkYA3LMTLUjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
198
198
  );
199
199
  }
200
200
  if (options.catalog) {
@@ -206,14 +206,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
206
206
  const response = await fetch(url, {
207
207
  method: "GET",
208
208
  headers: {
209
- ..._chunkHCYNAIHZjs.deploymentProtectionHeaders.call(void 0, ),
210
- "User-Agent": `deepline-ts-sdk/${_chunkHCYNAIHZjs.SDK_VERSION}`,
211
- "X-Deepline-SDK-Version": _chunkHCYNAIHZjs.SDK_VERSION,
212
- "X-Deepline-API-Major": String(_chunkHCYNAIHZjs.SDK_API_MAJOR),
213
- "X-Deepline-API-Contract": _chunkHCYNAIHZjs.SDK_API_CONTRACT,
209
+ ..._chunkQP5ATTMCjs.deploymentProtectionHeaders.call(void 0, ),
210
+ "User-Agent": `deepline-ts-sdk/${_chunkQP5ATTMCjs.SDK_VERSION}`,
211
+ "X-Deepline-SDK-Version": _chunkQP5ATTMCjs.SDK_VERSION,
212
+ "X-Deepline-API-Major": String(_chunkQP5ATTMCjs.SDK_API_MAJOR),
213
+ "X-Deepline-API-Contract": _chunkQP5ATTMCjs.SDK_API_CONTRACT,
214
214
  "X-Deepline-CLI-Update-Preferences": "1",
215
215
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
216
- ...options.catalog ? { Authorization: `Bearer ${_chunkHCYNAIHZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
216
+ ...options.catalog ? { Authorization: `Bearer ${_chunkQP5ATTMCjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
217
217
  ..._optionalChain([options, 'access', _30 => _30.catalog, 'optionalAccess', _31 => _31.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
218
218
  },
219
219
  signal: controller.signal
@@ -374,7 +374,7 @@ function skillsSourceUrl(baseUrl) {
374
374
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
375
375
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
376
376
  const [firstSkillName, ...extraSkillNames] = skillNames;
377
- const agents = _nullishCoalesce(options.agents, () => ( _chunkHCYNAIHZjs.DEFAULT_SKILL_AGENTS));
377
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkQP5ATTMCjs.DEFAULT_SKILL_AGENTS));
378
378
  const values = {
379
379
  skills_index_url: skillsIndexUrl(baseUrl),
380
380
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -413,7 +413,7 @@ var CliProgress = (_class = class {
413
413
 
414
414
  // --json output is one JSON document: progress never renders under it.
415
415
  constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);
416
- this.enabled = enabled && !_chunkAYM2KZN3js.isJsonOutputMode.call(void 0, );
416
+ this.enabled = enabled && !_chunkDD6MM6WXjs.isJsonOutputMode.call(void 0, );
417
417
  }
418
418
  phase(message) {
419
419
  if (!this.enabled || this.lastMessage === message) {
@@ -438,7 +438,7 @@ var CliProgress = (_class = class {
438
438
  this.settle("\u2717");
439
439
  }
440
440
  writeLogLine(line) {
441
- if (_chunkAYM2KZN3js.isJsonOutputMode.call(void 0, )) return;
441
+ if (_chunkDD6MM6WXjs.isJsonOutputMode.call(void 0, )) return;
442
442
  if (!this.enabled) {
443
443
  process.stderr.write(`${line}
444
444
  `);
@@ -740,7 +740,7 @@ function buildEnvironmentContext() {
740
740
  node_version: process.version,
741
741
  runtime: "Node.js",
742
742
  hostname: _os.hostname.call(void 0, ),
743
- agent_runtime: _chunkHCYNAIHZjs.detectAgentRuntime.call(void 0, )
743
+ agent_runtime: _chunkQP5ATTMCjs.detectAgentRuntime.call(void 0, )
744
744
  };
745
745
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
746
746
  const normalized = _optionalChain([process, 'access', _60 => _60.env, 'access', _61 => _61[key], 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
@@ -762,15 +762,15 @@ function buildEnvironmentContext() {
762
762
  }
763
763
  function failureReportHeaders(apiKey) {
764
764
  return {
765
- ..._chunkHCYNAIHZjs.deploymentProtectionHeaders.call(void 0, ),
765
+ ..._chunkQP5ATTMCjs.deploymentProtectionHeaders.call(void 0, ),
766
766
  Authorization: `Bearer ${apiKey}`,
767
767
  "Content-Type": "application/json",
768
- "User-Agent": `deepline-ts-sdk/${_chunkHCYNAIHZjs.SDK_VERSION}`,
768
+ "User-Agent": `deepline-ts-sdk/${_chunkQP5ATTMCjs.SDK_VERSION}`,
769
769
  "X-Deepline-Client-Family": "sdk",
770
770
  "X-Deepline-CLI-Family": "sdk",
771
- "X-Deepline-Agent-Runtime": _chunkHCYNAIHZjs.detectAgentRuntime.call(void 0, ),
772
- "X-Deepline-CLI-Version": _chunkHCYNAIHZjs.SDK_VERSION,
773
- "X-Deepline-SDK-Version": _chunkHCYNAIHZjs.SDK_VERSION
771
+ "X-Deepline-Agent-Runtime": _chunkQP5ATTMCjs.detectAgentRuntime.call(void 0, ),
772
+ "X-Deepline-CLI-Version": _chunkQP5ATTMCjs.SDK_VERSION,
773
+ "X-Deepline-SDK-Version": _chunkQP5ATTMCjs.SDK_VERSION
774
774
  };
775
775
  }
776
776
  async function postFailureReport(input) {
@@ -798,7 +798,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
798
798
  if (isFailureReportingDisabled()) return false;
799
799
  let apiKey = "";
800
800
  try {
801
- apiKey = _chunkHCYNAIHZjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
801
+ apiKey = _chunkQP5ATTMCjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
802
802
  } catch (e9) {
803
803
  return false;
804
804
  }
@@ -825,7 +825,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
825
825
  failure_code: failureCode2,
826
826
  failure_stage: failureStage,
827
827
  error_body: "Automatic Deepline skills installation failed.",
828
- cli_version: _chunkHCYNAIHZjs.SDK_VERSION,
828
+ cli_version: _chunkQP5ATTMCjs.SDK_VERSION,
829
829
  context: {
830
830
  environment: buildEnvironmentContext(),
831
831
  skills_sync: {
@@ -945,7 +945,7 @@ function buildFailureReport(input) {
945
945
  failure_kind: failureKind,
946
946
  failure_code: code,
947
947
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
948
- cli_version: _chunkHCYNAIHZjs.SDK_VERSION,
948
+ cli_version: _chunkQP5ATTMCjs.SDK_VERSION,
949
949
  context: {
950
950
  base_url: redactFailureText(input.baseUrl, 400),
951
951
  command_summary: sanitizeCommand(input.argv),
@@ -965,8 +965,8 @@ async function maybeReportSdkCliFailure(input) {
965
965
  if (isServerLoggedPlayRunStartFailure(input)) return false;
966
966
  const exitCode = resolvedExitCode(input);
967
967
  if (!shouldReport({ exitCode, error: input.error })) return false;
968
- const baseUrl = _chunkHCYNAIHZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
969
- const apiKey = _chunkHCYNAIHZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
968
+ const baseUrl = _chunkQP5ATTMCjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
969
+ const apiKey = _chunkQP5ATTMCjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
970
970
  if (!apiKey) return false;
971
971
  return postFailureReport({
972
972
  baseUrl,
@@ -1003,25 +1003,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
1003
1003
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
1004
1004
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
1005
1005
  function shouldSkipSkillsSync() {
1006
- if (_chunkHCYNAIHZjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
1006
+ if (_chunkQP5ATTMCjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
1007
1007
  return true;
1008
1008
  }
1009
1009
  const value = _optionalChain([process, 'access', _84 => _84.env, 'access', _85 => _85.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _86 => _86.trim, 'call', _87 => _87(), 'access', _88 => _88.toLowerCase, 'call', _89 => _89()]);
1010
1010
  return value === "1" || value === "true" || value === "yes" || value === "on";
1011
1011
  }
1012
1012
  function unavailableSkillsNoticePath(baseUrl) {
1013
- return _path.join.call(void 0, _chunkHCYNAIHZjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
1013
+ return _path.join.call(void 0, _chunkQP5ATTMCjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
1014
1014
  }
1015
1015
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
1016
1016
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
1017
- var agentLeaseSegment = _chunkHCYNAIHZjs.skillsAgentPathSegment;
1017
+ var agentLeaseSegment = _chunkQP5ATTMCjs.skillsAgentPathSegment;
1018
1018
  function sortedLeaseAgents(agents) {
1019
- const expanded = agents.includes("*") ? [...agents, ..._chunkHCYNAIHZjs.KNOWN_SKILL_AGENTS] : agents;
1019
+ const expanded = agents.includes("*") ? [...agents, ..._chunkQP5ATTMCjs.KNOWN_SKILL_AGENTS] : agents;
1020
1020
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
1021
1021
  }
1022
1022
  function inProgressSkillsSyncPath(baseUrl, agent) {
1023
1023
  return _path.join.call(void 0,
1024
- _chunkHCYNAIHZjs.sdkCliStateDirPath.call(void 0, baseUrl),
1024
+ _chunkQP5ATTMCjs.sdkCliStateDirPath.call(void 0, baseUrl),
1025
1025
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
1026
1026
  );
1027
1027
  }
@@ -1180,7 +1180,7 @@ var SkillsStateUnavailableError = class extends Error {
1180
1180
  constructor(baseUrl, error) {
1181
1181
  const detail = error instanceof Error ? error.message : String(error);
1182
1182
  super(
1183
- `Could not save skills state in ${_chunkHCYNAIHZjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1183
+ `Could not save skills state in ${_chunkQP5ATTMCjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1184
1184
  );
1185
1185
  this.name = "SkillsStateUnavailableError";
1186
1186
  }
@@ -1265,7 +1265,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1265
1265
  }
1266
1266
  function deferredSkillsNoticePath(baseUrl, agents) {
1267
1267
  return _path.join.call(void 0,
1268
- _chunkHCYNAIHZjs.sdkCliStateDirPath.call(void 0, baseUrl),
1268
+ _chunkQP5ATTMCjs.sdkCliStateDirPath.call(void 0, baseUrl),
1269
1269
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1270
1270
  );
1271
1271
  }
@@ -1299,8 +1299,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1299
1299
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1300
1300
  }
1301
1301
  function flushDeferredSkillsSyncNotices(baseUrl) {
1302
- if (shouldSkipSkillsSync() || _chunkHCYNAIHZjs.hasActivePluginSkills.call(void 0, )) return;
1303
- const agents = _chunkHCYNAIHZjs.resolveAutoSyncSkillAgents.call(void 0, );
1302
+ if (shouldSkipSkillsSync() || _chunkQP5ATTMCjs.hasActivePluginSkills.call(void 0, )) return;
1303
+ const agents = _chunkQP5ATTMCjs.resolveAutoSyncSkillAgents.call(void 0, );
1304
1304
  if (agents.length === 0) return;
1305
1305
  flushDeferredSkillsNotices(baseUrl, agents);
1306
1306
  }
@@ -1316,7 +1316,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1316
1316
  }
1317
1317
  function failedSkillsSyncPath(baseUrl, agents) {
1318
1318
  return _path.join.call(void 0,
1319
- _chunkHCYNAIHZjs.sdkCliStateDirPath.call(void 0, baseUrl),
1319
+ _chunkQP5ATTMCjs.sdkCliStateDirPath.call(void 0, baseUrl),
1320
1320
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1321
1321
  );
1322
1322
  }
@@ -1345,7 +1345,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1345
1345
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1346
1346
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1347
1347
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1348
- const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkHCYNAIHZjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1348
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkQP5ATTMCjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1349
1349
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _94 => _94.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
1350
1350
  notice(
1351
1351
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1433,7 +1433,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1433
1433
  return sortedUniqueSkillNames(v1SkillNames2);
1434
1434
  }
1435
1435
  function isDefaultAgentSet(agents) {
1436
- return agents.length === _chunkHCYNAIHZjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkHCYNAIHZjs.DEFAULT_SKILL_AGENTS[index]);
1436
+ return agents.length === _chunkQP5ATTMCjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkQP5ATTMCjs.DEFAULT_SKILL_AGENTS[index]);
1437
1437
  }
1438
1438
  function safeSkillFilePath(value) {
1439
1439
  if (typeof value !== "string" || !value) return false;
@@ -1590,10 +1590,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1590
1590
  method: "POST",
1591
1591
  headers: { "Content-Type": "application/json" },
1592
1592
  body: JSON.stringify({
1593
- sdk_cli: { version: _chunkHCYNAIHZjs.SDK_VERSION },
1593
+ sdk_cli: { version: _chunkQP5ATTMCjs.SDK_VERSION },
1594
1594
  skills: {
1595
1595
  version: localVersion,
1596
- capability: _chunkWP7T4BPEjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1596
+ capability: _chunkYA3LMTLUjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1597
1597
  }
1598
1598
  }),
1599
1599
  signal: controller.signal
@@ -1632,7 +1632,7 @@ function probeInstallers(timeoutMs) {
1632
1632
  }
1633
1633
  function noInstallerProbePath(baseUrl) {
1634
1634
  return _path.join.call(void 0,
1635
- _chunkHCYNAIHZjs.sdkCliStateDirPath.call(void 0, baseUrl),
1635
+ _chunkQP5ATTMCjs.sdkCliStateDirPath.call(void 0, baseUrl),
1636
1636
  "skills-sync-no-installer-unknown.json"
1637
1637
  );
1638
1638
  }
@@ -1711,7 +1711,7 @@ function temporarySkillsSyncSkipCommand() {
1711
1711
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1712
1712
  return resolveShellSpawn(install.command, install.args, platform2);
1713
1713
  }
1714
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkHCYNAIHZjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1714
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkQP5ATTMCjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1715
1715
  const commands = [];
1716
1716
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1717
1717
  if (probes.bunx === "available") {
@@ -1863,11 +1863,11 @@ function writeSdkSkillsStatusLine(line) {
1863
1863
  }
1864
1864
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1865
1865
  if (shouldSkipSkillsSync()) return;
1866
- const usingPluginSkills = _chunkHCYNAIHZjs.hasActivePluginSkills.call(void 0, );
1866
+ const usingPluginSkills = _chunkQP5ATTMCjs.hasActivePluginSkills.call(void 0, );
1867
1867
  if (usingPluginSkills) {
1868
1868
  return;
1869
1869
  }
1870
- const agents = _chunkHCYNAIHZjs.resolveAutoSyncSkillAgents.call(void 0, );
1870
+ const agents = _chunkQP5ATTMCjs.resolveAutoSyncSkillAgents.call(void 0, );
1871
1871
  if (options.mode === "detached" && agents.length > 0) {
1872
1872
  flushDeferredSkillsNotices(baseUrl, agents);
1873
1873
  }
@@ -1895,7 +1895,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1895
1895
  return;
1896
1896
  }
1897
1897
  try {
1898
- const localVersion = _chunkHCYNAIHZjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1898
+ const localVersion = _chunkQP5ATTMCjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1899
1899
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1900
1900
  needsUpdate: options.update.needs_update,
1901
1901
  remoteVersion: options.update.remote.version
@@ -2061,7 +2061,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
2061
2061
  }
2062
2062
  }
2063
2063
  runLegacySkillsCleanup(agents);
2064
- if (!_chunkHCYNAIHZjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
2064
+ if (!_chunkQP5ATTMCjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
2065
2065
  notice(
2066
2066
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
2067
2067
  );
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse
4
- } from "./chunk-4PG4ARL2.mjs";
4
+ } from "./chunk-KPKU53YO.mjs";
5
5
  import {
6
6
  recentSearchRef,
7
7
  registerDeprecatedSearchCommand
8
- } from "./chunk-7OJEYJ6G.mjs";
8
+ } from "./chunk-M67UCQKW.mjs";
9
9
  import {
10
10
  arrayField,
11
11
  formatModelDescription,
@@ -24,7 +24,7 @@ import {
24
24
  toolInputFieldsForDisplay,
25
25
  toolMetadataJsonForDescribe,
26
26
  toolOutputFieldsForDisplay
27
- } from "./chunk-IMZ56EOH.mjs";
27
+ } from "./chunk-LXTSVUZN.mjs";
28
28
  import {
29
29
  shellQuote
30
30
  } from "./chunk-OVDNJAJN.mjs";
@@ -45,7 +45,7 @@ import {
45
45
  import {
46
46
  DeeplineClient,
47
47
  validateExecutionIdempotencyKey
48
- } from "./chunk-2JKQORUX.mjs";
48
+ } from "./chunk-7KNBC4RJ.mjs";
49
49
  import {
50
50
  stableStringify
51
51
  } from "./chunk-UBKA33KY.mjs";
@@ -55,18 +55,18 @@ import {
55
55
  maybeAutoUpdateAndRelaunch,
56
56
  registerCompatibilityCatalog,
57
57
  runToolExecuteStage
58
- } from "./chunk-MLP4CAY7.mjs";
58
+ } from "./chunk-7VC7STG5.mjs";
59
59
  import {
60
60
  isCliTraceEnabled,
61
61
  recordCliTrace,
62
62
  resolveCliMaintenancePolicy
63
- } from "./chunk-TP26TAAF.mjs";
63
+ } from "./chunk-UPH6UNUI.mjs";
64
64
  import {
65
65
  checkSdkCompatibility,
66
66
  enforceSdkCompatibilityResponse,
67
67
  flushDeferredSkillsSyncNotices,
68
68
  syncSdkSkillsIfNeeded
69
- } from "./chunk-FEKJENBB.mjs";
69
+ } from "./chunk-VC5NKF4B.mjs";
70
70
  import {
71
71
  printCommandEnvelope,
72
72
  printCompactJson,
@@ -74,12 +74,12 @@ import {
74
74
  printJsonError,
75
75
  renderCommandEnvelopeText,
76
76
  shouldEmitJson
77
- } from "./chunk-4CAVSRQH.mjs";
77
+ } from "./chunk-3O7KATMQ.mjs";
78
78
  import {
79
79
  readSdkSkillsLocalVersion,
80
80
  resolveConfig,
81
81
  sdkCliStateDirPath
82
- } from "./chunk-PXO253DP.mjs";
82
+ } from "./chunk-OWWFCA7A.mjs";
83
83
  import {
84
84
  DeeplineError
85
85
  } from "./chunk-E4IXDAZI.mjs";
@@ -878,7 +878,7 @@ Examples:
878
878
  Notes:
879
879
  Shows the compact agent contract by default: what the tool does, cost,
880
880
  required inputs, play getters, input and full Deepline response examples,
881
- and a ctx.tools.execute snippet. Tool responses live at toolResponse.rawV2;
881
+ and a deepline.tools.execute snippet. Tool responses live at toolResponse.rawV2;
882
882
  preserve the nesting shown in the tool's example. Schemas and examples are
883
883
  separate describe fields.
884
884
  get is accepted as a compatibility alias for describe.
@@ -936,7 +936,7 @@ Examples:
936
936
  process.exitCode = await narrowView();
937
937
  return;
938
938
  }
939
- const { describeAnything } = await import("./describe-Y65BU7ZY.mjs");
939
+ const { describeAnything } = await import("./describe-T77IEILZ.mjs");
940
940
  process.exitCode = await describeAnything(
941
941
  toolId,
942
942
  {
@@ -1576,7 +1576,7 @@ function printToolExamplesOnly(tool, requestedToolId) {
1576
1576
  console.log(JSON.stringify(sampleInput, null, 2));
1577
1577
  console.log(`Use in a play:`);
1578
1578
  console.log("```ts");
1579
- console.log("const result = await ctx.tools.execute({");
1579
+ console.log("const result = await deepline.tools.execute({");
1580
1580
  console.log(" staleAfterSeconds: 0,");
1581
1581
  console.log(` id: '${stableStepIdForTool(toolId)}',`);
1582
1582
  console.log(` tool: '${toolId}',`);
@@ -1690,12 +1690,12 @@ function printToolGettersOnly(tool, requestedToolId) {
1690
1690
  function printListGetterConsumption() {
1691
1691
  if (playToolListGetterMode() === "array") {
1692
1692
  console.log(
1693
- "Use the ordinary array directly, or pass it to ctx.dataset to persist row work. No provider pagination is fetched. Lazy or incomplete lists throw; use readList for an explicit dataset read. A missing getter is not an empty list."
1693
+ "Use the ordinary array directly, or pass it to deepline.dataset to persist row work. No provider pagination is fetched. Lazy or incomplete lists throw; use readList for an explicit dataset read. A missing getter is not an empty list."
1694
1694
  );
1695
1695
  return;
1696
1696
  }
1697
1697
  console.log(
1698
- "Pass the handle to ctx.dataset, use first() for one row, or for await...of to stream rows. materialize() loads the complete current list within the memory cap; materialize(n) and peek(n) return only a prefix. None fetch additional provider pagination. A missing getter is not an empty list."
1698
+ "Pass the handle to deepline.dataset, use first() for one row, or for await...of to stream rows. materialize() loads the complete current list within the memory cap; materialize(n) and peek(n) return only a prefix. None fetch additional provider pagination. A missing getter is not an empty list."
1699
1699
  );
1700
1700
  }
1701
1701
  function listGetterHeading() {
@@ -2094,19 +2094,22 @@ function powerShellQuote(value) {
2094
2094
  }
2095
2095
  function seedToolListScript(input) {
2096
2096
  const stem = safeFileStem(input.toolId);
2097
- const fileName = `${stem}-workflow-seed-${Date.now()}.play.ts`;
2097
+ const fileName = `${stem}-workflow.play.ts`;
2098
2098
  const scriptDir = mkdtempSync(join2(tmpdir(), "deepline-workflow-seed-"));
2099
2099
  chmodSync(scriptDir, 448);
2100
2100
  const scriptPath = join2(scriptDir, fileName);
2101
2101
  const projectDir = `deepline/projects/${stem}-workflow`;
2102
- const playName = `${stem}-workflow`;
2103
2102
  const sampleRows = input.rows.length > 0 ? `${JSON.stringify(input.rows.slice(0, 2)).replace(/\]$/, "")}, ...]` : "[]";
2104
2103
  const columns = Object.keys(input.rows[0] ?? {}).join(", ");
2105
2104
  const rowKey = Object.prototype.hasOwnProperty.call(input.rows[0] ?? {}, "id") ? '"id"' : "(row) => JSON.stringify(row)";
2106
- const script = `import { definePlay } from 'deepline';
2105
+ const script = `import deepline from 'deepline';
2107
2106
 
2108
- export default definePlay(${JSON.stringify(playName)}, async (ctx) => {
2109
- const result = await ctx.tools.execute({
2107
+ export const config = {
2108
+ description: ${JSON.stringify(`Seed ${input.toolId} rows into a Deepline workflow-ready dataset.`)},
2109
+ };
2110
+
2111
+ export default async function () {
2112
+ const result = await deepline.tools.execute({
2110
2113
  staleAfterSeconds: 0,
2111
2114
  id: ${JSON.stringify(input.toolId)},
2112
2115
  tool: ${JSON.stringify(input.toolId)},
@@ -2122,11 +2125,11 @@ export default definePlay(${JSON.stringify(playName)}, async (ctx) => {
2122
2125
  // ${sampleRows}
2123
2126
  // columns: ${columns}
2124
2127
  // ${playToolListGetterMode() === "array" ? "extractedLists.<name>.get() returns an ordinary array from this response." : "extractedLists.<name>.get() returns a dataset handle for row-shaped list outputs."}
2125
- // ${playToolListGetterMode() === "array" ? "Use array methods directly; pass rows to ctx.dataset to persist row work." : "Pass it to ctx.dataset; use rows.peek/count/materialize only for deliberate bounded inspection."}
2126
- // .withColumn('email_waterfall', (row, rowCtx) => rowCtx.runPlay('name_domain_email', 'name-and-domain-to-email', { first_name: String(row.first_name ?? ''), last_name: String(row.last_name ?? ''), domain: String(row.domain ?? '') }, { description: 'Resolve email.' }))
2127
- // .withColumn('phone_waterfall', (row, rowCtx) => rowCtx.runPlay('contact_phone', 'contact-to-phone', { first_name: String(row.first_name ?? ''), last_name: String(row.last_name ?? ''), email: String(row.email ?? '') }, { description: 'Resolve phone.' }))
2128
- // ctx.dataset is idempotent for completed rows during same-run recovery. New runs follow each call's freshness.
2129
- const enrichedData = await ctx
2128
+ // ${playToolListGetterMode() === "array" ? "Use array methods directly; pass rows to deepline.dataset to persist row work." : "Pass it to deepline.dataset; use rows.peek/count/materialize only for deliberate bounded inspection."}
2129
+ // .withColumn('email_waterfall', (row) => deepline.runPlay('name_domain_email', 'name-and-domain-to-email', { first_name: String(row.first_name ?? ''), last_name: String(row.last_name ?? ''), domain: String(row.domain ?? '') }, { description: 'Resolve email.' }))
2130
+ // .withColumn('phone_waterfall', (row) => deepline.runPlay('contact_phone', 'contact-to-phone', { first_name: String(row.first_name ?? ''), last_name: String(row.last_name ?? ''), email: String(row.email ?? '') }, { description: 'Resolve phone.' }))
2131
+ // deepline.dataset is idempotent for completed rows during same-run recovery. New runs follow each call's freshness.
2132
+ const enrichedData = await deepline
2130
2133
  .dataset('enriched_data', rows)
2131
2134
  .run({
2132
2135
  key: ${rowKey},
@@ -2137,9 +2140,7 @@ export default definePlay(${JSON.stringify(playName)}, async (ctx) => {
2137
2140
  rows: enrichedData,
2138
2141
  count: await enrichedData.count(),
2139
2142
  };
2140
- }, {
2141
- description: ${JSON.stringify(`Seed ${input.toolId} rows into a Deepline workflow-ready dataset.`)},
2142
- });
2143
+ }
2143
2144
  `;
2144
2145
  writeFileSync2(scriptPath, script, { encoding: "utf-8", mode: 384 });
2145
2146
  return {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkBQR6UN3Cjs = require('./chunk-BQR6UN3C.js');
3
+ var _chunkVUYUI35Qjs = require('./chunk-VUYUI35Q.js');
4
4
 
5
5
  // src/cli/describe-options.ts
6
6
  function addDescribeOptions(command, options = {}) {
@@ -18,7 +18,7 @@ function addDescribeOptions(command, options = {}) {
18
18
  "Show only the in-play example, and explain how it takes inputs and returns outputs"
19
19
  ).option("--no-example", "Hide the run examples").option(
20
20
  "--full-schema",
21
- `Print every field: a long schema unfolded (over ${_chunkBQR6UN3Cjs.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
21
+ `Print every field: a long schema unfolded (over ${_chunkVUYUI35Qjs.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
22
22
  ).option(
23
23
  "--fields <names>",
24
24
  "Show only these fields, comma-separated, plus every required input"
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-4CAVSRQH.mjs";
5
+ } from "./chunk-3O7KATMQ.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-PXO253DP.mjs";
8
+ } from "./chunk-OWWFCA7A.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {