deepline 0.3.524 → 0.3.525

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 (172) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +8 -0
  2. package/dist/bundling-sources/sdk/src/http-core.ts +14 -0
  3. package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -0
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/sdk/src/types.ts +10 -0
  6. package/dist/bundling-sources/shared_libs/observability/dlq.ts +19 -0
  7. package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
  8. package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +38 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +94 -9
  11. package/dist/bundling-sources/shared_libs/play-runtime/run-retry-summary.ts +202 -0
  12. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +60 -8
  13. package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +112 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +39 -1
  15. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +13 -5
  16. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +10 -1
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-retry-facts.ts +62 -0
  18. package/dist/cli/auth-K7PMRXNG.js +43 -0
  19. package/dist/cli/{auth-QXJMVLPN.mjs → auth-TH3VGYBK.mjs} +5 -5
  20. package/dist/cli/{billing-SNSIFM4B.mjs → billing-CMHFI2LN.mjs} +8 -8
  21. package/dist/cli/{billing-N5R4HTHT.js → billing-TWKVUFU2.js} +83 -83
  22. package/dist/cli/{chunk-TZTWH53O.js → chunk-2WFVLOB7.js} +1 -1
  23. package/dist/cli/{chunk-BXVYVIMB.js → chunk-4UWXFXQF.js} +3 -3
  24. package/dist/cli/{chunk-II3BJKCH.mjs → chunk-5BSGWIQD.mjs} +2 -2
  25. package/dist/cli/{chunk-WOEPDSO3.js → chunk-5JFAQUZS.js} +26 -26
  26. package/dist/cli/{chunk-RVHUW4TN.js → chunk-5YAJGRWB.js} +17 -17
  27. package/dist/cli/{chunk-ITJ7NB2D.mjs → chunk-7AOFSZJM.mjs} +3 -1
  28. package/dist/cli/{chunk-RIX26ZJD.mjs → chunk-7C4F4TLR.mjs} +1 -1
  29. package/dist/cli/{chunk-RTDX5NNN.mjs → chunk-7OF3A4KJ.mjs} +3 -3
  30. package/dist/cli/{chunk-2ZWNIS54.js → chunk-AVDEYOVP.js} +269 -269
  31. package/dist/cli/{chunk-GJYLC4JB.mjs → chunk-BNH4Y35W.mjs} +2 -2
  32. package/dist/cli/{chunk-I75VRGQG.js → chunk-CKTRQSRA.js} +22 -22
  33. package/dist/cli/{chunk-R457IMHJ.mjs → chunk-CLTL7ZJI.mjs} +1 -1
  34. package/dist/cli/{chunk-7E6B7VMS.js → chunk-CQSANB3V.js} +5 -5
  35. package/dist/cli/{chunk-7OQGZBDG.js → chunk-CWRL6IQP.js} +13 -6
  36. package/dist/cli/{chunk-HLAFGQPV.mjs → chunk-CZNEQMJR.mjs} +5 -2
  37. package/dist/cli/{chunk-7QM6DNR4.js → chunk-DYS3KWYF.js} +11 -11
  38. package/dist/cli/{chunk-GMO3JDZA.mjs → chunk-EP6YH6QJ.mjs} +2 -2
  39. package/dist/cli/{chunk-V4RJ57MA.js → chunk-ESWM2JW4.js} +2 -2
  40. package/dist/cli/{chunk-YGOI5ZE5.mjs → chunk-ETHVJ2ZE.mjs} +1 -1
  41. package/dist/cli/{chunk-3WWTBQHC.mjs → chunk-GCLNX72G.mjs} +2 -2
  42. package/dist/cli/{chunk-R2VZVHJP.mjs → chunk-GESIFFQX.mjs} +1 -1
  43. package/dist/cli/{chunk-BXIQD2IY.mjs → chunk-IMO3HXWZ.mjs} +1 -1
  44. package/dist/cli/{chunk-2ZX7XSAQ.mjs → chunk-JVWSIA2V.mjs} +4 -4
  45. package/dist/cli/{chunk-YXVYPYIP.js → chunk-KBOSALBI.js} +10 -10
  46. package/dist/cli/{chunk-RUULUCBP.js → chunk-KEZ3KBWW.js} +10 -10
  47. package/dist/cli/{chunk-YCIXY66B.mjs → chunk-KPINGHIF.mjs} +2 -2
  48. package/dist/cli/{chunk-KKPBCB6D.mjs → chunk-LAMGJQDY.mjs} +2 -2
  49. package/dist/cli/{chunk-OCT4SUJA.js → chunk-LE537GBC.js} +13 -6
  50. package/dist/cli/{chunk-HTYT2OHB.js → chunk-LXKH4MKH.js} +6 -6
  51. package/dist/cli/{chunk-EO55Y4QW.mjs → chunk-M43ZYNDA.mjs} +5 -5
  52. package/dist/cli/{chunk-PFKKZVFK.js → chunk-MHBSRNI7.js} +41 -41
  53. package/dist/cli/{chunk-ANKD3AIR.js → chunk-MRUFGOJR.js} +2 -2
  54. package/dist/cli/{chunk-Z4MOEQSY.js → chunk-N4MMU3QF.js} +21 -21
  55. package/dist/cli/{chunk-ATATJNJ6.js → chunk-NB2ECLQE.js} +9 -9
  56. package/dist/cli/{chunk-YKFW3NNA.mjs → chunk-NO4URKKT.mjs} +5 -5
  57. package/dist/cli/{chunk-66N76YZG.js → chunk-NRBCETWL.js} +44 -44
  58. package/dist/cli/{chunk-OQ5G7RFQ.mjs → chunk-OWQF6WVH.mjs} +10 -3
  59. package/dist/cli/{chunk-CH7JVSA7.mjs → chunk-OXFIJYN3.mjs} +8 -8
  60. package/dist/cli/{chunk-EQNAQENZ.js → chunk-P62LON53.js} +2 -2
  61. package/dist/cli/{chunk-NMU3VR5U.js → chunk-PMH4GLMD.js} +1 -0
  62. package/dist/cli/{chunk-S3A4IXBQ.mjs → chunk-PSX3WHIH.mjs} +1 -0
  63. package/dist/cli/{chunk-V7KUBDEB.js → chunk-QR7VYYNM.js} +144 -141
  64. package/dist/cli/{chunk-KSQXBLRW.mjs → chunk-RMZ6CISE.mjs} +3 -3
  65. package/dist/cli/{chunk-GTGJBZVH.js → chunk-S5LUY3KJ.js} +7 -7
  66. package/dist/cli/{chunk-SF4QJVBE.js → chunk-TFEGJEYO.js} +3 -3
  67. package/dist/cli/{chunk-VHTVXS5A.js → chunk-TO72GW5I.js} +16 -16
  68. package/dist/cli/{chunk-WCVIPZWX.mjs → chunk-TXSBPBHB.mjs} +5 -5
  69. package/dist/cli/{chunk-MW3YMPD2.mjs → chunk-U4M32NFS.mjs} +1 -1
  70. package/dist/cli/{chunk-NUC7ZVDG.mjs → chunk-UQYKSOGO.mjs} +5 -5
  71. package/dist/cli/{chunk-536TGWR6.mjs → chunk-UXF3ODJJ.mjs} +2 -2
  72. package/dist/cli/{chunk-LRWDZDBS.js → chunk-V2GN4PLK.js} +5 -5
  73. package/dist/cli/{chunk-SMWFOGUT.js → chunk-V65J64FL.js} +53 -53
  74. package/dist/cli/{chunk-V2YIBBVT.mjs → chunk-VYIAWAKJ.mjs} +1 -1
  75. package/dist/cli/{chunk-JDIQBZ6O.js → chunk-WA3FG7DH.js} +14 -14
  76. package/dist/cli/{chunk-XURWFEXM.mjs → chunk-WEYFSBAD.mjs} +13 -6
  77. package/dist/cli/{chunk-T43FF5PF.mjs → chunk-WGRDOPAK.mjs} +2 -2
  78. package/dist/cli/{chunk-NTLBZUHD.js → chunk-XYIECA7M.js} +4 -2
  79. package/dist/cli/{chunk-FXTV5B3D.mjs → chunk-YC7FKAJ4.mjs} +12 -12
  80. package/dist/cli/{chunk-BN5VKY4X.js → chunk-ZS2WHWWL.js} +7 -7
  81. package/dist/cli/{chunk-PFKWKWUJ.mjs → chunk-ZWFTHEPT.mjs} +2 -2
  82. package/dist/cli/command-docs.js +2 -2
  83. package/dist/cli/command-docs.mjs +1 -1
  84. package/dist/cli/{csv-Q2LWKXAV.js → csv-5JHWVJ5N.js} +13 -13
  85. package/dist/cli/{csv-HT2JBCW2.mjs → csv-OO554TPX.mjs} +4 -4
  86. package/dist/cli/{db-XEV4WEE4.js → db-CYQJ4OXF.js} +28 -28
  87. package/dist/cli/{db-CS3XQ2LX.mjs → db-SQKJ6RKU.mjs} +7 -7
  88. package/dist/cli/describe-N7AKTUQV.mjs +50 -0
  89. package/dist/cli/describe-PASXOL3R.js +50 -0
  90. package/dist/cli/describe-core.d.mts +4 -2
  91. package/dist/cli/describe-core.d.ts +4 -2
  92. package/dist/cli/describe-core.js +5 -5
  93. package/dist/cli/describe-core.mjs +4 -4
  94. package/dist/cli/{executions-L6XFG5MP.mjs → executions-F34DORW6.mjs} +7 -7
  95. package/dist/cli/{executions-JCC34WAD.js → executions-K7EGCRKX.js} +9 -9
  96. package/dist/cli/{feedback-AWBDO5I6.mjs → feedback-GQHKCS66.mjs} +5 -5
  97. package/dist/cli/{feedback-HV2M2G7N.js → feedback-NOQVCA3Q.js} +10 -10
  98. package/dist/cli/{git-S4LRXTRX.mjs → git-2EEITXDB.mjs} +5 -5
  99. package/dist/cli/git-UU4YFJ2Q.js +25 -0
  100. package/dist/cli/index.js +145 -145
  101. package/dist/cli/index.mjs +44 -44
  102. package/dist/cli/{legacy-noops-7MOKBL4O.mjs → legacy-noops-JHMY5XRB.mjs} +6 -6
  103. package/dist/cli/{legacy-noops-RGSZUD6V.js → legacy-noops-RFNHQ7RG.js} +9 -9
  104. package/dist/cli/{monitors-XQNXDZPQ.mjs → monitors-RDMP6SPZ.mjs} +8 -8
  105. package/dist/cli/{monitors-JEFM2C5W.js → monitors-UKRZ4BDK.js} +101 -101
  106. package/dist/cli/{org-GYLA5V32.js → org-OX7TYTHV.js} +87 -87
  107. package/dist/cli/{org-KTMJZGTN.mjs → org-RF3G4KMB.mjs} +7 -7
  108. package/dist/cli/{pages-WOMU2T2O.mjs → pages-FBM3MGSP.mjs} +7 -7
  109. package/dist/cli/{pages-RY4U7OCL.js → pages-MKQT5LFV.js} +19 -19
  110. package/dist/cli/{play-2Q6MWJ3D.js → play-OOVX2DMV.js} +756 -707
  111. package/dist/cli/{play-KOYGGNYS.mjs → play-YWC2UORM.mjs} +151 -102
  112. package/dist/cli/{providers-HOIRHMN2.js → providers-2CGZYLER.js} +10 -10
  113. package/dist/cli/{providers-7YKDITJC.mjs → providers-3PEQESIU.mjs} +7 -7
  114. package/dist/cli/{quickstart-OWCJOSQA.js → quickstart-6AANHKQZ.js} +6 -6
  115. package/dist/cli/{quickstart-RDXHSMVX.mjs → quickstart-KVB36SOW.mjs} +4 -4
  116. package/dist/cli/{run-MT2ABKO5.js → run-NJ7WV5TK.js} +46 -46
  117. package/dist/cli/{run-RT73NDP5.mjs → run-QC23NRKO.mjs} +27 -27
  118. package/dist/cli/{search-CJPKIGSA.mjs → search-7BMFFZI2.mjs} +9 -9
  119. package/dist/cli/search-NH4DTXUK.js +33 -0
  120. package/dist/cli/{search-output-AREMA544.mjs → search-output-CALZ4ZI2.mjs} +4 -4
  121. package/dist/cli/{search-output-OSBZ7WK6.js → search-output-XC2AVBFX.js} +6 -6
  122. package/dist/cli/{secrets-BTIY2FEJ.mjs → secrets-7ZHA57DI.mjs} +7 -7
  123. package/dist/cli/{secrets-OV6KH633.js → secrets-VHU4B2D4.js} +16 -16
  124. package/dist/cli/sessions-2TE5JWVP.js +18 -0
  125. package/dist/cli/{sessions-3CO3ZFOD.mjs → sessions-YYULWFZE.mjs} +6 -6
  126. package/dist/cli/{settings-7BQIC7QN.mjs → settings-AVY4NNHI.mjs} +14 -14
  127. package/dist/cli/{settings-LBIECYDB.js → settings-WV77QJGD.js} +87 -87
  128. package/dist/cli/{setup-XPTSNNES.mjs → setup-AOUJ3RMU.mjs} +10 -10
  129. package/dist/cli/{setup-QZE7QR3F.js → setup-GE5TLTC4.js} +50 -50
  130. package/dist/cli/{skills-TGGKIQLT.mjs → skills-FVWO2G66.mjs} +8 -8
  131. package/dist/cli/skills-OL7LD6QX.js +37 -0
  132. package/dist/cli/{tools-MKIFX2TQ.mjs → tools-URE655B4.mjs} +20 -20
  133. package/dist/cli/tools-VQ5JO6DI.js +57 -0
  134. package/dist/cli/{update-5R3D3WNH.mjs → update-5B4G4345.mjs} +10 -10
  135. package/dist/cli/update-7ZOIOTZN.js +35 -0
  136. package/dist/cli/{views-VHKDHHUP.mjs → views-GSECJ5IK.mjs} +7 -7
  137. package/dist/cli/{views-VPWEINIA.js → views-IC762HEQ.js} +19 -19
  138. package/dist/cli/{workflow-D5DF65N6.mjs → workflow-6UQM565I.mjs} +8 -8
  139. package/dist/cli/{workflow-7K2VEQ4V.js → workflow-EME7ZEOV.js} +18 -18
  140. package/dist/{client-C5_6W8yd.d.mts → client-Bd2meveV.d.mts} +1 -1
  141. package/dist/{client-iXW4TOat.d.ts → client-CBCVhL8U.d.ts} +1 -1
  142. package/dist/{client-core-Dob428Z4.d.mts → client-core-CGj8V9mw.d.mts} +67 -0
  143. package/dist/{client-core-B-GPfmaC.d.ts → client-core-CsRRWCFy.d.ts} +67 -0
  144. package/dist/index.d.mts +3 -3
  145. package/dist/index.d.ts +3 -3
  146. package/dist/index.js +10 -10
  147. package/dist/index.mjs +7 -7
  148. package/dist/install-integrity.json +120 -118
  149. package/dist/plays/play-description.d.mts +1 -1
  150. package/dist/plays/play-description.d.ts +1 -1
  151. package/dist/plays/play-description.js +2 -2
  152. package/dist/plays/play-description.mjs +1 -1
  153. package/dist/plays/run-request.d.mts +1 -1
  154. package/dist/plays/run-request.d.ts +1 -1
  155. package/dist/release.d.mts +1 -1
  156. package/dist/release.d.ts +1 -1
  157. package/dist/release.js +2 -2
  158. package/dist/release.mjs +1 -1
  159. package/dist/server.d.mts +2 -2
  160. package/dist/server.d.ts +2 -2
  161. package/dist/server.js +6 -6
  162. package/dist/server.mjs +4 -4
  163. package/package.json +1 -1
  164. package/dist/cli/auth-OKPHHMMP.js +0 -43
  165. package/dist/cli/describe-5G5NXO5E.js +0 -50
  166. package/dist/cli/describe-OUTXLDGZ.mjs +0 -50
  167. package/dist/cli/git-GDPTG52F.js +0 -25
  168. package/dist/cli/search-7VBA6IGS.js +0 -33
  169. package/dist/cli/sessions-B3WNEWRW.js +0 -18
  170. package/dist/cli/skills-TXBRTWEV.js +0 -37
  171. package/dist/cli/tools-RZJV4X3J.js +0 -57
  172. package/dist/cli/update-YWGGPWUA.js +0 -35
@@ -1,13 +1,13 @@
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; }
2
2
 
3
3
 
4
- var _chunkSF4QJVBEjs = require('./chunk-SF4QJVBE.js');
4
+ var _chunkTFEGJEYOjs = require('./chunk-TFEGJEYO.js');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunkOCT4SUJAjs = require('./chunk-OCT4SUJA.js');
10
+ var _chunkLE537GBCjs = require('./chunk-LE537GBC.js');
11
11
 
12
12
 
13
13
  var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
@@ -150,7 +150,7 @@ function buildEnvironmentContext() {
150
150
  node_version: process.version,
151
151
  runtime: "Node.js",
152
152
  hostname: _os.hostname.call(void 0, ),
153
- agent_runtime: _chunkOCT4SUJAjs.detectAgentRuntime.call(void 0, )
153
+ agent_runtime: _chunkLE537GBCjs.detectAgentRuntime.call(void 0, )
154
154
  };
155
155
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
156
156
  const normalized = _optionalChain([process, 'access', _5 => _5.env, 'access', _6 => _6[key], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);
@@ -171,18 +171,18 @@ function buildEnvironmentContext() {
171
171
  return context;
172
172
  }
173
173
  function failureReportHeaders(apiKey) {
174
- const agentSessionId = _chunkOCT4SUJAjs.agentSessionIdFromEnvironment.call(void 0, );
174
+ const agentSessionId = _chunkLE537GBCjs.agentSessionIdFromEnvironment.call(void 0, );
175
175
  return {
176
- ..._chunkOCT4SUJAjs.deploymentProtectionHeaders.call(void 0, ),
176
+ ..._chunkLE537GBCjs.deploymentProtectionHeaders.call(void 0, ),
177
177
  ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
178
178
  Authorization: `Bearer ${apiKey}`,
179
179
  "Content-Type": "application/json",
180
- "User-Agent": `deepline-ts-sdk/${_chunkOCT4SUJAjs.SDK_VERSION}`,
180
+ "User-Agent": `deepline-ts-sdk/${_chunkLE537GBCjs.SDK_VERSION}`,
181
181
  "X-Deepline-Client-Family": "sdk",
182
182
  "X-Deepline-CLI-Family": "sdk",
183
- "X-Deepline-Agent-Runtime": _chunkOCT4SUJAjs.detectAgentRuntime.call(void 0, ),
184
- "X-Deepline-CLI-Version": _chunkOCT4SUJAjs.SDK_VERSION,
185
- "X-Deepline-SDK-Version": _chunkOCT4SUJAjs.SDK_VERSION
183
+ "X-Deepline-Agent-Runtime": _chunkLE537GBCjs.detectAgentRuntime.call(void 0, ),
184
+ "X-Deepline-CLI-Version": _chunkLE537GBCjs.SDK_VERSION,
185
+ "X-Deepline-SDK-Version": _chunkLE537GBCjs.SDK_VERSION
186
186
  };
187
187
  }
188
188
  async function postFailureReport(input) {
@@ -210,7 +210,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
210
210
  if (isFailureReportingDisabled()) return false;
211
211
  let apiKey = "";
212
212
  try {
213
- apiKey = _chunkSF4QJVBEjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
213
+ apiKey = _chunkTFEGJEYOjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
214
214
  } catch (e2) {
215
215
  return false;
216
216
  }
@@ -237,7 +237,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
237
237
  failure_code: failureCode2,
238
238
  failure_stage: failureStage,
239
239
  error_body: "Automatic Deepline skills installation failed.",
240
- cli_version: _chunkOCT4SUJAjs.SDK_VERSION,
240
+ cli_version: _chunkLE537GBCjs.SDK_VERSION,
241
241
  context: {
242
242
  environment: buildEnvironmentContext(),
243
243
  skills_sync: {
@@ -357,7 +357,7 @@ function buildFailureReport(input) {
357
357
  failure_kind: failureKind,
358
358
  failure_code: code,
359
359
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
360
- cli_version: _chunkOCT4SUJAjs.SDK_VERSION,
360
+ cli_version: _chunkLE537GBCjs.SDK_VERSION,
361
361
  context: {
362
362
  base_url: redactFailureText(input.baseUrl, 400),
363
363
  command_summary: sanitizeCommand(input.argv),
@@ -377,8 +377,8 @@ async function maybeReportSdkCliFailure(input) {
377
377
  if (isServerLoggedPlayRunStartFailure(input)) return false;
378
378
  const exitCode = resolvedExitCode(input);
379
379
  if (!shouldReport({ exitCode, error: input.error })) return false;
380
- const baseUrl = _chunkSF4QJVBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
381
- const apiKey = _chunkSF4QJVBEjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
380
+ const baseUrl = _chunkTFEGJEYOjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
381
+ const apiKey = _chunkTFEGJEYOjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
382
382
  if (!apiKey) return false;
383
383
  return postFailureReport({
384
384
  baseUrl,
@@ -1181,18 +1181,16 @@ Related:
1181
1181
  "plays get": {
1182
1182
  core: `
1183
1183
  Purpose:
1184
- Full metadata for a play: revisions, source, triggers, and latest runs.
1184
+ [[cli:Full metadata for a play: revisions, source, triggers, and latest runs.]][[mcp:List or read the saved source files of one Play revision.]]
1185
1185
  When:
1186
- Only when describe is not enough: reading the source ([[--source]] [[--out]]
1187
- file.play.ts), checking revisions, or auditing a saved play.
1186
+ [[cli:Only when describe is not enough: reading the source (--source --out file.play.ts), checking revisions, or auditing a saved play.]][[mcp:Before editing a saved Play. List its source paths, then read each needed file at the exact returned revision.]]
1188
1187
  [[cli:
1189
1188
  Input:
1190
1189
  The play reference. --source prints or writes the source; --working,
1191
1190
  --live, --revision <n> pick which source.
1192
1191
  ]]
1193
1192
  Output (JSON):
1194
- The play record with revision and trigger metadata; with [[--source]], the
1195
- TypeScript source.
1193
+ [[cli:The play record with revision and trigger metadata; with --source, the TypeScript source.]][[mcp:The revision, entrypoint, and file paths. With a file selected, the source chunk and its next offset.]]
1196
1194
  Cost:
1197
1195
  Free.
1198
1196
  `
@@ -1502,7 +1500,7 @@ Input:
1502
1500
  [[cli:
1503
1501
  Output (JSON):
1504
1502
  kind "run_overview", runUrl (the Play page with this run selected),
1505
- run {id, playName, status, startedAt, finishedAt, durationMs}, steps[] {id, kind, status, label, progress {total, executed,
1503
+ run {id, playName, status, startedAt, finishedAt, durationMs, retries}, steps[] {id, kind, status, label, progress {total, executed,
1506
1504
  reused, failed, completedRows}}, failures.steps[], errorDetails,
1507
1505
  rowOutcomes, warnings[], datasets[] {datasetId, name, rowCount, summary,
1508
1506
  storage {schema, table}, preview {returnedRows, totalRows, partial, rows}},
@@ -1532,6 +1530,15 @@ Output fields:
1532
1530
  run.status queued, running, completed, failed, or stopped. Only
1533
1531
  the last three are terminal.
1534
1532
  run.activity the current step while running, null when finished.
1533
+ run.retries failure-driven retries since the last resume:
1534
+ platformRecoveries {preCode, postCode} and
1535
+ recoveryOutcome (none, recovering, recovered,
1536
+ exhausted), plus resumeEpoch (runs resume count).
1537
+ Durable waits are not retries and are not counted. A
1538
+ retried attempt may repeat earlier work; these are
1539
+ counts, not proof that anything ran once. Provider
1540
+ retries inside one call are not counted; read them
1541
+ with runs logs <run-id> --kind activity.observed.
1535
1542
  steps[].label the step's state in one line, as the dashboard shows
1536
1543
  it.
1537
1544
  datasets[].summary.reportedPopulation {totalRows, persistedRows,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  autoDetectBaseUrl,
3
3
  resolveApiKeyForBaseUrl
4
- } from "./chunk-MW3YMPD2.mjs";
4
+ } from "./chunk-U4M32NFS.mjs";
5
5
  import {
6
6
  SDK_VERSION,
7
7
  agentSessionIdFromEnvironment,
8
8
  deploymentProtectionHeaders,
9
9
  detectAgentRuntime
10
- } from "./chunk-OQ5G7RFQ.mjs";
10
+ } from "./chunk-OWQF6WVH.mjs";
11
11
  import {
12
12
  DeeplineError
13
13
  } from "./chunk-ZPGGW27Q.mjs";
@@ -3,7 +3,7 @@
3
3
  var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
4
4
 
5
5
 
6
- var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
6
+ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
7
7
 
8
8
  // src/cli/described.ts
9
9
  var SHAPE = "{}";
@@ -777,6 +777,7 @@ function describedJson(described, view) {
777
777
  return {
778
778
  kind: described.kind,
779
779
  id: described.id,
780
+ ...described.playId ? { playId: described.playId } : {},
780
781
  ...described.provider ? { provider: described.provider } : {},
781
782
  ...described.displayName ? { displayName: described.displayName } : {},
782
783
  ...described.description ? { description: described.description } : {},
@@ -807,7 +808,7 @@ function buildPlayRunUrl(baseUrl, playName, runId) {
807
808
  }
808
809
  function describedPlay(play) {
809
810
  const reference = play.reference || play.name;
810
- const starter = _nullishCoalesce(play.cloneEditStarter, () => ( _chunkNMU3VR5Ujs.cloneEditStarter.call(void 0, play)));
811
+ const starter = _nullishCoalesce(play.cloneEditStarter, () => ( _chunkPMH4GLMDjs.cloneEditStarter.call(void 0, play)));
811
812
  const csv = _nullishCoalesce(play.csvInput, () => ( {}));
812
813
  const csvField = typeof csv.inputField === "string" ? csv.inputField : "csv";
813
814
  const alongside = /* @__PURE__ */ new Set([
@@ -836,6 +837,7 @@ function describedPlay(play) {
836
837
  ).map((field) => ({ ...field, required: true }));
837
838
  return {
838
839
  kind: play.ownerType === "deepline" ? "prebuilt_play" : "custom_play",
840
+ ...play.playId ? { playId: play.playId } : {},
839
841
  id: reference,
840
842
  ...play.displayName && play.displayName !== play.name ? { displayName: play.displayName } : {},
841
843
  ...play.description ? { description: play.description } : {},
@@ -2,11 +2,11 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-536TGWR6.mjs";
5
+ } from "./chunk-UXF3ODJJ.mjs";
6
6
  import {
7
7
  recentSearchRef,
8
8
  registerDeprecatedSearchCommand
9
- } from "./chunk-NUC7ZVDG.mjs";
9
+ } from "./chunk-UQYKSOGO.mjs";
10
10
  import {
11
11
  Capability,
12
12
  arrayField,
@@ -27,10 +27,10 @@ import {
27
27
  toolInputFieldsForDisplay,
28
28
  toolMetadataJsonForDescribe,
29
29
  toolOutputFieldsForDisplay
30
- } from "./chunk-R2VZVHJP.mjs";
30
+ } from "./chunk-GESIFFQX.mjs";
31
31
  import {
32
32
  rateLimitQualifier
33
- } from "./chunk-ITJ7NB2D.mjs";
33
+ } from "./chunk-7AOFSZJM.mjs";
34
34
  import {
35
35
  shellQuote
36
36
  } from "./chunk-OVDNJAJN.mjs";
@@ -46,10 +46,10 @@ import {
46
46
  } from "./chunk-FIVKWNMT.mjs";
47
47
  import {
48
48
  DeeplineClient
49
- } from "./chunk-YCIXY66B.mjs";
49
+ } from "./chunk-KPINGHIF.mjs";
50
50
  import {
51
51
  validateExecutionIdempotencyKey
52
- } from "./chunk-HLAFGQPV.mjs";
52
+ } from "./chunk-CZNEQMJR.mjs";
53
53
  import {
54
54
  stableStringify
55
55
  } from "./chunk-UBKA33KY.mjs";
@@ -59,18 +59,18 @@ import {
59
59
  maybeAutoUpdateAndRelaunch,
60
60
  registerCompatibilityCatalog,
61
61
  runToolExecuteStage
62
- } from "./chunk-WCVIPZWX.mjs";
62
+ } from "./chunk-TXSBPBHB.mjs";
63
63
  import {
64
64
  isCliTraceEnabled,
65
65
  recordCliTrace,
66
66
  resolveCliMaintenancePolicy
67
- } from "./chunk-R457IMHJ.mjs";
67
+ } from "./chunk-CLTL7ZJI.mjs";
68
68
  import {
69
69
  checkSdkCompatibility,
70
70
  enforceSdkCompatibilityResponse,
71
71
  flushDeferredSkillsSyncNotices,
72
72
  syncSdkSkillsIfNeeded
73
- } from "./chunk-EO55Y4QW.mjs";
73
+ } from "./chunk-M43ZYNDA.mjs";
74
74
  import {
75
75
  printCommandEnvelope,
76
76
  printCompactJson,
@@ -78,12 +78,12 @@ import {
78
78
  printJsonError,
79
79
  renderCommandEnvelopeText,
80
80
  shouldEmitJson
81
- } from "./chunk-3WWTBQHC.mjs";
81
+ } from "./chunk-GCLNX72G.mjs";
82
82
  import {
83
83
  readSdkSkillsLocalVersion,
84
84
  resolveConfig,
85
85
  sdkCliStateDirPath
86
- } from "./chunk-MW3YMPD2.mjs";
86
+ } from "./chunk-U4M32NFS.mjs";
87
87
  import {
88
88
  DeeplineError
89
89
  } from "./chunk-ZPGGW27Q.mjs";
@@ -1066,7 +1066,7 @@ Examples:
1066
1066
  process.exitCode = await narrowView();
1067
1067
  return;
1068
1068
  }
1069
- const { describeAnything } = await import("./describe-OUTXLDGZ.mjs");
1069
+ const { describeAnything } = await import("./describe-N7AKTUQV.mjs");
1070
1070
  process.exitCode = await describeAnything(
1071
1071
  toolId,
1072
1072
  {
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
5
+ var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
6
6
 
7
7
 
8
8
  var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
@@ -280,7 +280,7 @@ function extractorValueType(name) {
280
280
  }
281
281
  const named = NAMED_VALUE_SHAPES[definition.valueKind];
282
282
  if (!named) return { type: "string" };
283
- const { type, fields } = _chunkNTLBZUHDjs.schemaField.call(void 0, name, named.schema, true);
283
+ const { type, fields } = _chunkXYIECA7Mjs.schemaField.call(void 0, name, named.schema, true);
284
284
  return { type, ...fields ? { fields } : {}, shape: named.shape };
285
285
  }
286
286
  function jsonSchemaOf(wrapper) {
@@ -317,7 +317,7 @@ function describedTool(tool, requestedToolId) {
317
317
  description,
318
318
  cost: stringField(recordField(tool, "pricing"), "displayText") || void 0,
319
319
  guidance: [],
320
- inputs: _chunkNTLBZUHDjs.schemaFields.call(void 0,
320
+ inputs: _chunkXYIECA7Mjs.schemaFields.call(void 0,
321
321
  recordField(tool, "payload_schema", "payloadSchema")
322
322
  ),
323
323
  outputs: [],
@@ -354,7 +354,7 @@ function describedTool(tool, requestedToolId) {
354
354
  (path) => path.replace(/^toolResponse\.raw\./, "")
355
355
  );
356
356
  const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
357
- const { fields, ...typed } = _chunkNTLBZUHDjs.schemaField.call(void 0, name, node, true);
357
+ const { fields, ...typed } = _chunkXYIECA7Mjs.schemaField.call(void 0, name, node, true);
358
358
  const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
359
359
  const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
360
360
  const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
@@ -423,7 +423,7 @@ function describedTool(tool, requestedToolId) {
423
423
  ],
424
424
  rateLimit: withPlanRateLimit(
425
425
  recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
426
- _chunkNTLBZUHDjs.rateLimitSummary.call(void 0,
426
+ _chunkXYIECA7Mjs.rateLimitSummary.call(void 0,
427
427
  recordField(contract, "executionMetadata").configuredRateLimits
428
428
  )
429
429
  ),
@@ -431,9 +431,9 @@ function describedTool(tool, requestedToolId) {
431
431
  ...typeof tool.connected === "boolean" ? { connected: tool.connected } : {},
432
432
  ...credentialStatus ? { credentialStatus } : {},
433
433
  ...connectCommand ? { connectCommand } : {},
434
- inputs: _chunkNTLBZUHDjs.schemaFields.call(void 0, inputSchema),
434
+ inputs: _chunkXYIECA7Mjs.schemaFields.call(void 0, inputSchema),
435
435
  outputs: [...lists, ...values].map(({ field }) => field),
436
- rawResponse: _chunkNTLBZUHDjs.schemaFields.call(void 0, outputSchema),
436
+ rawResponse: _chunkXYIECA7Mjs.schemaFields.call(void 0, outputSchema),
437
437
  runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
438
438
  };
439
439
  }
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-R457IMHJ.mjs";
3
+ } from "./chunk-CLTL7ZJI.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-EO55Y4QW.mjs";
8
+ } from "./chunk-M43ZYNDA.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
 
10
- var _chunk7OQGZBDGjs = require('./chunk-7OQGZBDG.js');
10
+ var _chunkCWRL6IQPjs = require('./chunk-CWRL6IQP.js');
11
11
  require('./chunk-R7J7CJPZ.js');
12
12
  require('./chunk-YGCKMI5P.js');
13
13
  require('./chunk-COGTRVWW.js');
@@ -20,4 +20,4 @@ require('./chunk-COGTRVWW.js');
20
20
 
21
21
 
22
22
 
23
- exports.CLI_DOC_SURFACE = _chunk7OQGZBDGjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunk7OQGZBDGjs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunk7OQGZBDGjs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunk7OQGZBDGjs.commandDocKey; exports.helpDetailFromArgv = _chunk7OQGZBDGjs.helpDetailFromArgv; exports.renderActionExplanation = _chunk7OQGZBDGjs.renderActionExplanation; exports.renderCommandExplanation = _chunk7OQGZBDGjs.renderCommandExplanation; exports.renderDocText = _chunk7OQGZBDGjs.renderDocText;
23
+ exports.CLI_DOC_SURFACE = _chunkCWRL6IQPjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkCWRL6IQPjs.COMMAND_DOCS; exports.PLAY_RUNTIME_PRICING_NOTE = _chunkCWRL6IQPjs.PLAY_RUNTIME_PRICING_NOTE; exports.commandDocKey = _chunkCWRL6IQPjs.commandDocKey; exports.helpDetailFromArgv = _chunkCWRL6IQPjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkCWRL6IQPjs.renderActionExplanation; exports.renderCommandExplanation = _chunkCWRL6IQPjs.renderCommandExplanation; exports.renderDocText = _chunkCWRL6IQPjs.renderDocText;
@@ -7,7 +7,7 @@ import {
7
7
  renderActionExplanation,
8
8
  renderCommandExplanation,
9
9
  renderDocText
10
- } from "./chunk-XURWFEXM.mjs";
10
+ } from "./chunk-WEYFSBAD.mjs";
11
11
  import "./chunk-5LUF4LAR.mjs";
12
12
  import "./chunk-7I4B6V2S.mjs";
13
13
  import "./chunk-KRD6H754.mjs";
@@ -4,13 +4,13 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkGTGJBZVHjs = require('./chunk-GTGJBZVH.js');
8
- require('./chunk-SF4QJVBE.js');
9
- require('./chunk-OCT4SUJA.js');
7
+ var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
8
+ require('./chunk-TFEGJEYO.js');
9
+ require('./chunk-LE537GBC.js');
10
10
  require('./chunk-T2N3B7IQ.js');
11
11
  require('./chunk-XNYIZMNQ.js');
12
12
  require('./chunk-SQWET4SL.js');
13
- require('./chunk-TZTWH53O.js');
13
+ require('./chunk-2WFVLOB7.js');
14
14
  require('./chunk-OG64RBAC.js');
15
15
  require('./chunk-COGTRVWW.js');
16
16
 
@@ -128,7 +128,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
128
128
  column.length,
129
129
  ...rows.map((row) => {
130
130
  const value = _nullishCoalesce(row[column], () => ( ""));
131
- return (verbose ? value : _chunkGTGJBZVHjs.clip.call(void 0, value, 42)).length;
131
+ return (verbose ? value : _chunkS5LUY3KJjs.clip.call(void 0, value, 42)).length;
132
132
  })
133
133
  )
134
134
  ])
@@ -138,7 +138,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
138
138
  const body = rows.map(
139
139
  (row) => columns.map((column) => {
140
140
  const raw = _nullishCoalesce(row[column], () => ( ""));
141
- const display = verbose ? raw : _chunkGTGJBZVHjs.clip.call(void 0, raw, 42);
141
+ const display = verbose ? raw : _chunkS5LUY3KJjs.clip.call(void 0, raw, 42);
142
142
  return display.padEnd(widths[column]);
143
143
  }).join(" | ")
144
144
  );
@@ -158,7 +158,7 @@ async function handleCsvShow(path, options, command) {
158
158
  { exitCode: 2 }
159
159
  );
160
160
  }
161
- const allRows = _chunkGTGJBZVHjs.readCsvRows.call(void 0, csvPath);
161
+ const allRows = _chunkS5LUY3KJjs.readCsvRows.call(void 0, csvPath);
162
162
  const [rowStart, rowEnd] = parseRowRange(options.rows);
163
163
  const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
164
164
  const { rows: selected, columns } = selectColumns(
@@ -171,7 +171,7 @@ async function handleCsvShow(path, options, command) {
171
171
  if (options.summary) {
172
172
  const summaries = summarizeColumns(selected, columns);
173
173
  if (format === "json") {
174
- _chunkGTGJBZVHjs.printJson.call(void 0, {
174
+ _chunkS5LUY3KJjs.printJson.call(void 0, {
175
175
  rows: summaries,
176
176
  total_rows: selected.length,
177
177
  source_total_rows: allRows.length
@@ -180,7 +180,7 @@ async function handleCsvShow(path, options, command) {
180
180
  }
181
181
  const displayRows = summaryDisplayRows(summaries);
182
182
  if (format === "csv") {
183
- process.stdout.write(_chunkGTGJBZVHjs.csvStringFromRows.call(void 0, displayRows));
183
+ process.stdout.write(_chunkS5LUY3KJjs.csvStringFromRows.call(void 0, displayRows));
184
184
  return;
185
185
  }
186
186
  process.stdout.write(
@@ -195,7 +195,7 @@ async function handleCsvShow(path, options, command) {
195
195
  return;
196
196
  }
197
197
  if (format === "json") {
198
- _chunkGTGJBZVHjs.printJson.call(void 0, {
198
+ _chunkS5LUY3KJjs.printJson.call(void 0, {
199
199
  rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
200
200
  });
201
201
  return;
@@ -438,7 +438,7 @@ async function handleCsvRenderStart(options) {
438
438
  if (log) {
439
439
  detail = `
440
440
  CSV render log:
441
- ${_chunkGTGJBZVHjs.clip.call(void 0, log, 2e3)}`;
441
+ ${_chunkS5LUY3KJjs.clip.call(void 0, log, 2e3)}`;
442
442
  }
443
443
  } catch (e7) {
444
444
  }
@@ -489,7 +489,7 @@ async function handleCsvRenderStatus(options) {
489
489
  if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
490
490
  if (payload.url) lines.push(`Render URL: ${payload.url}`);
491
491
  lines.push(`Render Health: ${payload.health_status}`);
492
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, payload, {
492
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0, payload, {
493
493
  json: options.json,
494
494
  text: `${lines.join("\n")}
495
495
  `
@@ -525,7 +525,7 @@ async function handleCsvRenderStop(options) {
525
525
  };
526
526
  const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
527
527
  ` : "No running CSV render process found.\n";
528
- _chunkGTGJBZVHjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
528
+ _chunkS5LUY3KJjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
529
529
  }
530
530
  async function handleCsvRender(action, options) {
531
531
  const normalized = _nullishCoalesce(action, () => ( "start"));
@@ -4,13 +4,13 @@ import {
4
4
  printCommandEnvelope,
5
5
  printJson,
6
6
  readCsvRows
7
- } from "./chunk-3WWTBQHC.mjs";
8
- import "./chunk-MW3YMPD2.mjs";
9
- import "./chunk-OQ5G7RFQ.mjs";
7
+ } from "./chunk-GCLNX72G.mjs";
8
+ import "./chunk-U4M32NFS.mjs";
9
+ import "./chunk-OWQF6WVH.mjs";
10
10
  import "./chunk-QNHHZ63P.mjs";
11
11
  import "./chunk-DLIRSHV6.mjs";
12
12
  import "./chunk-ZPGGW27Q.mjs";
13
- import "./chunk-RIX26ZJD.mjs";
13
+ import "./chunk-7C4F4TLR.mjs";
14
14
  import "./chunk-WZYKRD7T.mjs";
15
15
  import "./chunk-KRD6H754.mjs";
16
16