deepline 0.3.582 → 0.4.0

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 (196) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +79 -36
  2. package/dist/bundling-sources/sdk/src/index.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +7 -3
  4. package/dist/bundling-sources/sdk/src/types.ts +37 -0
  5. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +22 -3
  6. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +94 -5
  7. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +66 -12
  8. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +10 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-topology.ts +6 -1
  10. package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-tuple-recovery.ts +9 -3
  11. package/dist/bundling-sources/shared_libs/play-runtime/docflow-node-io.ts +86 -20
  12. package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +17 -6
  13. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +22 -6
  14. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +14 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +54 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/terminal/postgres-adapter.ts +2 -1
  17. package/dist/bundling-sources/shared_libs/play-runtime/row-failure-summary.ts +1 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +4 -1
  19. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +62 -6
  20. package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +14 -0
  21. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +197 -19
  22. package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-writer.ts +25 -1
  23. package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +5 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +140 -1
  25. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-wake-policy.ts +419 -0
  26. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +47 -4
  27. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +24 -0
  28. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +1 -1
  29. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +36 -19
  30. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +380 -51
  31. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +21 -10
  32. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +32 -0
  33. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -0
  34. package/dist/bundling-sources/shared_libs/plays/deploy/api-client.ts +3 -1
  35. package/dist/bundling-sources/shared_libs/plays/deploy/run-deployment.ts +34 -4
  36. package/dist/bundling-sources/shared_libs/plays/docflow-recording-lint.ts +512 -0
  37. package/dist/bundling-sources/shared_libs/plays/docflow-requirement.ts +346 -0
  38. package/dist/bundling-sources/shared_libs/plays/docflow-rule-codes.ts +38 -0
  39. package/dist/bundling-sources/shared_libs/plays/docflow-unreached-reason.ts +42 -2
  40. package/dist/bundling-sources/shared_libs/plays/docflow.ts +223 -32
  41. package/dist/bundling-sources/shared_libs/plays/play-check-compact.ts +14 -1
  42. package/dist/bundling-sources/shared_libs/plays/run-result.ts +35 -0
  43. package/dist/cli/{agents-UAXDG4FS.mjs → agents-AHXB7N7Y.mjs} +68 -4
  44. package/dist/cli/{agents-2L73CJHH.js → agents-KBZ7OUZS.js} +95 -31
  45. package/dist/cli/{auth-3B2QB4UH.mjs → auth-3CACO52T.mjs} +5 -5
  46. package/dist/cli/auth-UOHCO5K6.js +44 -0
  47. package/dist/cli/{billing-E7FO622G.js → billing-5KXPGKMO.js} +105 -105
  48. package/dist/cli/{billing-CPBRWG3M.mjs → billing-TSTK63NB.mjs} +9 -9
  49. package/dist/cli/{chunk-3DVWSTAI.mjs → chunk-2GWKBQJZ.mjs} +1 -1
  50. package/dist/cli/{chunk-PNQVB4UD.mjs → chunk-3DJMPID5.mjs} +11 -11
  51. package/dist/cli/{chunk-FBSPHBAF.js → chunk-3ET6NRXP.js} +7 -3
  52. package/dist/cli/{chunk-NZR5PBNP.mjs → chunk-3MWTAM3F.mjs} +3 -3
  53. package/dist/cli/{chunk-ROUNT4NX.mjs → chunk-4ANDW2OT.mjs} +1 -1
  54. package/dist/cli/{chunk-ZH23XGJO.js → chunk-4BSCSQ6I.js} +4 -4
  55. package/dist/cli/{chunk-7QX5PCHP.mjs → chunk-4UEXAMDU.mjs} +2 -2
  56. package/dist/cli/{chunk-3EOET5UB.js → chunk-5XGLDVSD.js} +100 -100
  57. package/dist/cli/{chunk-MRSYC74T.js → chunk-7XXJJVSI.js} +5 -5
  58. package/dist/cli/{chunk-NJGXYYHN.js → chunk-7ZCD7OPO.js} +5 -5
  59. package/dist/cli/{chunk-JF4DUC2F.mjs → chunk-AJJSKKH4.mjs} +2 -2
  60. package/dist/cli/{chunk-XYQMOXP4.mjs → chunk-BHF5UW34.mjs} +1 -1
  61. package/dist/cli/{chunk-POYADK77.js → chunk-BO2TXH5Y.js} +20 -20
  62. package/dist/cli/{chunk-RNZXMOA6.mjs → chunk-BUC2TNF2.mjs} +2 -2
  63. package/dist/cli/{chunk-EGH4JNJP.js → chunk-BUUAFSSN.js} +68 -50
  64. package/dist/cli/{chunk-GZBXN56A.js → chunk-C45E47KC.js} +23 -23
  65. package/dist/cli/{chunk-HP6A3JCX.js → chunk-D4R3AL4F.js} +5 -5
  66. package/dist/cli/{chunk-ABJZQHON.mjs → chunk-DAZRIAXW.mjs} +4 -4
  67. package/dist/cli/{chunk-SKKRESFB.js → chunk-DNOZQGJF.js} +3 -3
  68. package/dist/cli/{chunk-DPLYQITT.js → chunk-DUL6UQ2T.js} +2 -2
  69. package/dist/cli/{chunk-U2QQQNWW.mjs → chunk-ES3S6UXR.mjs} +2 -2
  70. package/dist/cli/{chunk-4TTEAUZV.mjs → chunk-FDAYUP3M.mjs} +3 -3
  71. package/dist/cli/{chunk-V54YQHPV.js → chunk-FEVUIT2U.js} +6 -6
  72. package/dist/cli/{chunk-KDITCSPN.mjs → chunk-FSPEUU3V.mjs} +68 -6
  73. package/dist/cli/{chunk-OUFOJTEJ.mjs → chunk-FZZMCVOS.mjs} +5 -5
  74. package/dist/cli/{chunk-ISN4F6AY.js → chunk-GHOB72U6.js} +13 -13
  75. package/dist/cli/{chunk-LHA45DNY.mjs → chunk-GLYWRTEL.mjs} +3 -3
  76. package/dist/cli/{chunk-LDMCTV2Z.mjs → chunk-HNTIGYRT.mjs} +1 -1
  77. package/dist/cli/{chunk-EB2YLLZJ.js → chunk-IGPHYKEJ.js} +41 -41
  78. package/dist/cli/{chunk-VA35T3AF.js → chunk-ISSYN3DJ.js} +20 -20
  79. package/dist/cli/{chunk-DSHIB2XQ.mjs → chunk-JKQPITEE.mjs} +54 -36
  80. package/dist/cli/{chunk-ZARGHLZZ.mjs → chunk-KMLACXI2.mjs} +7 -3
  81. package/dist/cli/{chunk-DI5MULNX.js → chunk-KQXACHYA.js} +26 -26
  82. package/dist/cli/{chunk-CPZL6Z7D.js → chunk-LW2GKYZW.js} +2 -2
  83. package/dist/cli/{chunk-G5YU6RJ4.mjs → chunk-O2KSPI2M.mjs} +2 -2
  84. package/dist/cli/{chunk-H3KVMALU.js → chunk-O6GT6JD7.js} +9 -9
  85. package/dist/cli/{chunk-4ZAWRCB6.mjs → chunk-OCXWUWUI.mjs} +5 -5
  86. package/dist/cli/{chunk-YPP436NM.js → chunk-QKRDAJ3T.js} +53 -53
  87. package/dist/cli/{chunk-KQEW3EAU.js → chunk-QQESWF6D.js} +16 -16
  88. package/dist/cli/{chunk-CYZSHD66.js → chunk-REX5SUYU.js} +2 -2
  89. package/dist/cli/{chunk-Z3IAEHID.js → chunk-RXIQWG2N.js} +48 -48
  90. package/dist/cli/{chunk-5436ZJPH.js → chunk-S33BN7GZ.js} +3 -3
  91. package/dist/cli/{chunk-JD7P73ZW.mjs → chunk-SGRJJLNV.mjs} +1 -1
  92. package/dist/cli/{chunk-2K6EIL2D.mjs → chunk-TCNYSNVU.mjs} +1 -1
  93. package/dist/cli/{chunk-I5J6HGVR.mjs → chunk-TFPMVSGK.mjs} +2 -2
  94. package/dist/cli/{chunk-6NEMTKTA.mjs → chunk-V73WDQEA.mjs} +5 -5
  95. package/dist/cli/{chunk-Y36SQMSN.js → chunk-VYERVFGB.js} +68 -6
  96. package/dist/cli/{chunk-SYWLWTWM.mjs → chunk-WBRSVML3.mjs} +4 -4
  97. package/dist/cli/{chunk-NVHICORD.mjs → chunk-WW52ANX4.mjs} +2 -2
  98. package/dist/cli/{chunk-3HIJNXRB.js → chunk-XZS35M3Y.js} +10 -10
  99. package/dist/cli/{chunk-ZL3O7F5J.js → chunk-YNYHYL5C.js} +15 -15
  100. package/dist/cli/{chunk-FWB3QR7W.mjs → chunk-ZHE5E2WJ.mjs} +1 -1
  101. package/dist/cli/{chunk-D7J33HTK.mjs → chunk-ZJ2H77VV.mjs} +5 -5
  102. package/dist/cli/{chunk-JUZIMW4S.js → chunk-ZX6UVPGZ.js} +7 -7
  103. package/dist/cli/command-docs.js +2 -2
  104. package/dist/cli/command-docs.mjs +1 -1
  105. package/dist/cli/concurrent-runs-help-H5SZUA5J.js +22 -0
  106. package/dist/cli/{concurrent-runs-help-UFNYQYU2.mjs → concurrent-runs-help-IYELSCHB.mjs} +6 -6
  107. package/dist/cli/{csv-QSDRGLQH.mjs → csv-ENEC3APZ.mjs} +4 -4
  108. package/dist/cli/{csv-ZI5LYFHF.js → csv-X6CP57R4.js} +13 -13
  109. package/dist/cli/{db-ZDL6Q53U.js → db-6HLRSE2M.js} +27 -27
  110. package/dist/cli/{db-WVWXNNMO.mjs → db-YGKRFK4T.mjs} +6 -6
  111. package/dist/cli/{describe-UUQBKUVL.mjs → describe-4SGQEX7K.mjs} +18 -18
  112. package/dist/cli/describe-Q2OYHDVZ.js +50 -0
  113. package/dist/cli/describe-core.d.mts +2 -2
  114. package/dist/cli/describe-core.d.ts +2 -2
  115. package/dist/cli/{executions-SCGHTWTC.js → executions-IC55YJ67.js} +8 -8
  116. package/dist/cli/{executions-QN3OYJKT.mjs → executions-PO2IOSZ7.mjs} +6 -6
  117. package/dist/cli/{feedback-7QPHLXGU.mjs → feedback-6BUD5F4I.mjs} +6 -6
  118. package/dist/cli/{feedback-6QQ7ONLW.js → feedback-BCGQLZ5T.js} +14 -14
  119. package/dist/cli/git-5X3MLBIP.js +26 -0
  120. package/dist/cli/{git-HFPJX573.mjs → git-IN4IBL2K.mjs} +5 -5
  121. package/dist/cli/index.js +148 -148
  122. package/dist/cli/index.mjs +47 -47
  123. package/dist/cli/{integrations-ND2HULSH.js → integrations-R2Z2MDO3.js} +29 -29
  124. package/dist/cli/{integrations-4SZ5O24P.mjs → integrations-ZMGB6NQA.mjs} +7 -7
  125. package/dist/cli/{legacy-noops-WUP3TBR2.mjs → legacy-noops-GIC5OZKP.mjs} +6 -6
  126. package/dist/cli/{legacy-noops-GQF6AYP5.js → legacy-noops-X4JPRPTJ.js} +9 -9
  127. package/dist/cli/{mcp-3GUFYGCQ.mjs → mcp-G4IRJIKK.mjs} +4 -4
  128. package/dist/cli/{mcp-L3YYVEU6.js → mcp-USZKTVL2.js} +24 -24
  129. package/dist/cli/{monitors-OFCVJSH5.mjs → monitors-SNFZPSCY.mjs} +7 -7
  130. package/dist/cli/{monitors-CVZZN5WG.js → monitors-T7LRP7OB.js} +100 -100
  131. package/dist/cli/{org-MQ5AUN7I.js → org-2L2ZZL2P.js} +121 -121
  132. package/dist/cli/{org-3DTAYA52.mjs → org-YTXLKW52.mjs} +6 -6
  133. package/dist/cli/{outcomes-42W24EXG.mjs → outcomes-CJWBIFTA.mjs} +6 -6
  134. package/dist/cli/{outcomes-MGDUYHUD.js → outcomes-O63F57JF.js} +14 -14
  135. package/dist/cli/{play-PD45RNYZ.mjs → play-6UWPUHC6.mjs} +331 -70
  136. package/dist/cli/{play-IMAD7QTV.js → play-T353SULJ.js} +930 -669
  137. package/dist/cli/{providers-DYKHG7NV.mjs → providers-LZABK2UW.mjs} +6 -6
  138. package/dist/cli/{providers-WONHPTRG.js → providers-XORJH2VW.js} +9 -9
  139. package/dist/cli/{quickstart-5QPGHLEX.mjs → quickstart-O4RF7J55.mjs} +4 -4
  140. package/dist/cli/{quickstart-6AAFULGC.js → quickstart-QBNUNPZR.js} +6 -6
  141. package/dist/cli/{run-WOW7QO3W.js → run-2CPMFC6W.js} +44 -44
  142. package/dist/cli/{run-4K6ZU7H7.mjs → run-GBRPFC6P.mjs} +23 -23
  143. package/dist/cli/{search-CKVFWVXQ.mjs → search-G7TS7OFB.mjs} +7 -7
  144. package/dist/cli/search-M3AHFCKQ.js +32 -0
  145. package/dist/cli/{search-output-WWB25JWA.mjs → search-output-BIIJRUCP.mjs} +4 -4
  146. package/dist/cli/{search-output-B5QE7ZNK.js → search-output-NRKLNWSD.js} +6 -6
  147. package/dist/cli/{secrets-SVZB6TSW.mjs → secrets-DN3XEZNH.mjs} +6 -6
  148. package/dist/cli/{secrets-WKIMR346.js → secrets-FUXYSEL5.js} +15 -15
  149. package/dist/cli/{sessions-P3QENG6T.mjs → sessions-PMUTPCTT.mjs} +6 -6
  150. package/dist/cli/sessions-VMBMBGVJ.js +23 -0
  151. package/dist/cli/{settings-V5ABL6D2.mjs → settings-N6GNS2KA.mjs} +12 -12
  152. package/dist/cli/{settings-UIFRGJW3.js → settings-ZDTWCQ6B.js} +85 -85
  153. package/dist/cli/{setup-E67NJTEF.mjs → setup-LJ3KWPSA.mjs} +9 -9
  154. package/dist/cli/{setup-A5MIJU3S.js → setup-PN5TSSJE.js} +49 -49
  155. package/dist/cli/{skills-WLHOQ4DO.mjs → skills-7J42K6VC.mjs} +7 -7
  156. package/dist/cli/skills-CXDENBLF.js +37 -0
  157. package/dist/cli/{tools-EG4KL3BB.mjs → tools-M3S6D6DA.mjs} +17 -17
  158. package/dist/cli/tools-WY2GMOC7.js +57 -0
  159. package/dist/cli/{update-IPFBE6SA.mjs → update-XTVFG74E.mjs} +9 -9
  160. package/dist/cli/update-ZB2IBGXG.js +37 -0
  161. package/dist/cli/{views-ZIBY2RVB.js → views-B4X2FWTF.js} +21 -21
  162. package/dist/cli/{views-XDN6SEWY.mjs → views-UFYRDO4X.mjs} +6 -6
  163. package/dist/cli/{workflow-BLKPBRBT.js → workflow-I2RM2J2J.js} +53 -29
  164. package/dist/cli/{workflow-O2XPMOVL.mjs → workflow-ZLMS3PDE.mjs} +42 -18
  165. package/dist/{client-QznpkWrk.d.ts → client-2QWMJInp.d.ts} +1 -1
  166. package/dist/{client-CmG8MT0x.d.mts → client-7H8TXmLa.d.mts} +1 -1
  167. package/dist/{client-core-CY0jNW0e.d.mts → client-core-BraEuxbg.d.mts} +67 -4
  168. package/dist/{client-core-CXDqfeiB.d.ts → client-core-DRglY5xa.d.ts} +67 -4
  169. package/dist/index.d.mts +3 -3
  170. package/dist/index.d.ts +3 -3
  171. package/dist/index.js +9 -9
  172. package/dist/index.mjs +6 -6
  173. package/dist/install-integrity.json +125 -120
  174. package/dist/plays/bundle-play-file.mjs +5 -0
  175. package/dist/plays/play-description.d.mts +1 -1
  176. package/dist/plays/play-description.d.ts +1 -1
  177. package/dist/plays/run-request.d.mts +1 -1
  178. package/dist/plays/run-request.d.ts +1 -1
  179. package/dist/release.d.mts +3 -3
  180. package/dist/release.d.ts +3 -3
  181. package/dist/release.js +2 -2
  182. package/dist/release.mjs +1 -1
  183. package/dist/server.d.mts +2 -2
  184. package/dist/server.d.ts +2 -2
  185. package/dist/server.js +5 -5
  186. package/dist/server.mjs +3 -3
  187. package/package.json +1 -1
  188. package/dist/cli/auth-ALBG5LF4.js +0 -44
  189. package/dist/cli/concurrent-runs-help-E3YMAO5Q.js +0 -22
  190. package/dist/cli/describe-QB5T47B3.js +0 -50
  191. package/dist/cli/git-4FXTWHXT.js +0 -26
  192. package/dist/cli/search-YZIJS7QU.js +0 -32
  193. package/dist/cli/sessions-VQPGPXMU.js +0 -23
  194. package/dist/cli/skills-GTBK33MV.js +0 -37
  195. package/dist/cli/tools-GPAIPRPQ.js +0 -57
  196. package/dist/cli/update-QLWS32WR.js +0 -37
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
- var _chunkEGH4JNJPjs = require('./chunk-EGH4JNJP.js');
3
+ var _chunkBUUAFSSNjs = require('./chunk-BUUAFSSN.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk5436ZJPHjs = require('./chunk-5436ZJPH.js');
7
+ var _chunkS33BN7GZjs = require('./chunk-S33BN7GZ.js');
8
8
 
9
9
  // src/client.ts
10
- var DeeplineClient2 = class extends _chunkEGH4JNJPjs.DeeplineClient {
10
+ var DeeplineClient2 = class extends _chunkBUUAFSSNjs.DeeplineClient {
11
11
  constructor(options) {
12
- const config = _chunk5436ZJPHjs.resolveConfig.call(void 0, options);
13
- super(config, new (0, _chunk5436ZJPHjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
12
+ const config = _chunkS33BN7GZjs.resolveConfig.call(void 0, options);
13
+ super(config, new (0, _chunkS33BN7GZjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
14
14
  }
15
15
  };
16
16
 
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
- var _chunkYPP436NMjs = require('./chunk-YPP436NM.js');
3
+ var _chunkQKRDAJ3Tjs = require('./chunk-QKRDAJ3T.js');
4
4
 
5
5
 
6
6
  var _chunkTJCENACZjs = require('./chunk-TJCENACZ.js');
7
7
 
8
8
 
9
9
 
10
- var _chunk5436ZJPHjs = require('./chunk-5436ZJPH.js');
10
+ var _chunkS33BN7GZjs = require('./chunk-S33BN7GZ.js');
11
11
 
12
12
  // src/cli/concurrent-runs-help.ts
13
13
  var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
24
24
  return plans ? `${here} Plan limits: ${plans}.` : here;
25
25
  }
26
26
  async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
27
- const baseUrl = _chunk5436ZJPHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
- const apiKey = _chunk5436ZJPHjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
27
+ const baseUrl = _chunkS33BN7GZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
28
+ const apiKey = _chunkS33BN7GZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
29
29
  if (!apiKey) return "";
30
30
  try {
31
- const { status, data } = await _chunkYPP436NMjs.httpJson.call(void 0,
31
+ const { status, data } = await _chunkQKRDAJ3Tjs.httpJson.call(void 0,
32
32
  "GET",
33
33
  `${baseUrl}/api/v2/billing/entitlements`,
34
34
  apiKey,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  PlayClient
3
- } from "./chunk-DSHIB2XQ.mjs";
3
+ } from "./chunk-JKQPITEE.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-ROUNT4NX.mjs";
7
+ } from "./chunk-4ANDW2OT.mjs";
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-4ZAWRCB6.mjs";
3
+ } from "./chunk-OCXWUWUI.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -1,23 +1,23 @@
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 _chunkDPLYQITTjs = require('./chunk-DPLYQITT.js');
4
+ var _chunkDUL6UQ2Tjs = require('./chunk-DUL6UQ2T.js');
5
5
 
6
6
 
7
- var _chunkEB2YLLZJjs = require('./chunk-EB2YLLZJ.js');
7
+ var _chunkIGPHYKEJjs = require('./chunk-IGPHYKEJ.js');
8
8
 
9
9
 
10
- var _chunkZ3IAEHIDjs = require('./chunk-Z3IAEHID.js');
10
+ var _chunkRXIQWG2Njs = require('./chunk-RXIQWG2N.js');
11
11
 
12
12
 
13
- var _chunkVA35T3AFjs = require('./chunk-VA35T3AF.js');
13
+ var _chunkISSYN3DJjs = require('./chunk-ISSYN3DJ.js');
14
14
 
15
15
 
16
16
 
17
17
 
18
18
 
19
19
 
20
- var _chunk5436ZJPHjs = require('./chunk-5436ZJPH.js');
20
+ var _chunkS33BN7GZjs = require('./chunk-S33BN7GZ.js');
21
21
 
22
22
  // src/cli/commands/update.ts
23
23
  var _child_process = require('child_process');
@@ -499,7 +499,7 @@ function normalizedNpmPrefix(value) {
499
499
  }
500
500
  function resolveNpmGlobalPrefix(env) {
501
501
  try {
502
- const plan = _chunkZ3IAEHIDjs.resolveShellSpawn.call(void 0,
502
+ const plan = _chunkRXIQWG2Njs.resolveShellSpawn.call(void 0,
503
503
  "npm",
504
504
  ["prefix", "-g"],
505
505
  process.platform,
@@ -561,8 +561,8 @@ function resolveUpdatePlan(options = {}) {
561
561
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
562
562
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
563
563
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
564
- const npmVersion = options.npmVersion === void 0 ? _chunkDPLYQITTjs.readNpmVersion.call(void 0, env) : options.npmVersion;
565
- const npmGlobalInstallFlags = _chunkDPLYQITTjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
564
+ const npmVersion = options.npmVersion === void 0 ? _chunkDUL6UQ2Tjs.readNpmVersion.call(void 0, env) : options.npmVersion;
565
+ const npmGlobalInstallFlags = _chunkDUL6UQ2Tjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
566
566
  const args = installPrefix ? [
567
567
  "install",
568
568
  "-g",
@@ -572,7 +572,7 @@ function resolveUpdatePlan(options = {}) {
572
572
  packageSpec
573
573
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
574
574
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
575
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk5436ZJPHjs.autoDetectBaseUrl.call(void 0, )
575
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkS33BN7GZjs.autoDetectBaseUrl.call(void 0, )
576
576
  );
577
577
  return {
578
578
  kind: "npm-global",
@@ -821,7 +821,7 @@ function sidecarInstallFailure(versionDir) {
821
821
  function runCommand(command, args, env = process.env) {
822
822
  return new Promise((resolveResult) => {
823
823
  let output = "";
824
- const plan = _chunkZ3IAEHIDjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
824
+ const plan = _chunkRXIQWG2Njs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
825
825
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
826
826
  windowsHide: true,
827
827
  stdio: ["inherit", "pipe", "pipe"],
@@ -1169,7 +1169,7 @@ function normalizePinnedVersion(value) {
1169
1169
  }
1170
1170
  async function readPinMetadata(registryUrl, version) {
1171
1171
  const controller = new AbortController();
1172
- const timeout = setTimeout(() => controller.abort(), _chunk5436ZJPHjs.DEFAULT_TIMEOUT);
1172
+ const timeout = setTimeout(() => controller.abort(), _chunkS33BN7GZjs.DEFAULT_TIMEOUT);
1173
1173
  try {
1174
1174
  const response = await fetch(
1175
1175
  new URL(
@@ -1185,7 +1185,7 @@ async function readPinMetadata(registryUrl, version) {
1185
1185
  if (!response.ok) {
1186
1186
  return {
1187
1187
  kind: "miss",
1188
- transient: _chunk5436ZJPHjs.TRANSIENT_HTTP_STATUSES.has(response.status),
1188
+ transient: _chunkS33BN7GZjs.TRANSIENT_HTTP_STATUSES.has(response.status),
1189
1189
  error: new Error(`${registryUrl} returned HTTP ${response.status}`)
1190
1190
  };
1191
1191
  }
@@ -1219,8 +1219,8 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl, retry =
1219
1219
  "https://registry.npmjs.org/",
1220
1220
  ...fallbackRegistryUrl ? [fallbackRegistryUrl] : []
1221
1221
  ];
1222
- const maxRetries = _nullishCoalesce(retry.maxRetries, () => ( _chunk5436ZJPHjs.DEFAULT_MAX_RETRIES));
1223
- const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunk5436ZJPHjs.defaultRetryBackoffMs));
1222
+ const maxRetries = _nullishCoalesce(retry.maxRetries, () => ( _chunkS33BN7GZjs.DEFAULT_MAX_RETRIES));
1223
+ const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunkS33BN7GZjs.defaultRetryBackoffMs));
1224
1224
  let lastError = null;
1225
1225
  for (let round = 1; ; round += 1) {
1226
1226
  let transientOnly = true;
@@ -1283,14 +1283,14 @@ async function resolveInstalledVersionIfLatest(plan) {
1283
1283
  return null;
1284
1284
  }
1285
1285
  async function runUpdateCommand(options, dependencies = {}) {
1286
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk5436ZJPHjs.autoDetectBaseUrl));
1286
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkS33BN7GZjs.autoDetectBaseUrl));
1287
1287
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1288
1288
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1289
1289
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1290
1290
  const originalWrite = process.stdout.write.bind(process.stdout);
1291
1291
  process.stdout.write = (() => true);
1292
1292
  try {
1293
- const exitCode = await _chunkEB2YLLZJjs.runSkillsCommand.call(void 0, { json: true });
1293
+ const exitCode = await _chunkIGPHYKEJjs.runSkillsCommand.call(void 0, { json: true });
1294
1294
  if (exitCode !== 0) {
1295
1295
  throw new Error(
1296
1296
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1363,7 +1363,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1363
1363
  };
1364
1364
  if (options.json && !options.executeWithJson) {
1365
1365
  const upToDateVersion2 = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
1366
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1366
+ _chunkISSYN3DJjs.printCommandEnvelope.call(void 0,
1367
1367
  {
1368
1368
  ...plan,
1369
1369
  updated: false,
@@ -1375,7 +1375,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1375
1375
  return 0;
1376
1376
  }
1377
1377
  if (options.printCommand) {
1378
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1378
+ _chunkISSYN3DJjs.printCommandEnvelope.call(void 0,
1379
1379
  {
1380
1380
  ...plan,
1381
1381
  render: {
@@ -1388,7 +1388,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1388
1388
  return 0;
1389
1389
  }
1390
1390
  if (plan.kind === "source" || plan.kind === "homebrew") {
1391
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1391
+ _chunkISSYN3DJjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1392
1392
  return 0;
1393
1393
  }
1394
1394
  const upToDateVersion = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
@@ -1426,7 +1426,7 @@ To retry with full installer output, run: deepline skills install
1426
1426
  );
1427
1427
  }
1428
1428
  if (options.executeWithJson && options.json) {
1429
- _chunkVA35T3AFjs.printCommandEnvelope.call(void 0,
1429
+ _chunkISSYN3DJjs.printCommandEnvelope.call(void 0,
1430
1430
  {
1431
1431
  ok: true,
1432
1432
  pinnedVersion,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-JD7P73ZW.mjs";
3
+ } from "./chunk-SGRJJLNV.mjs";
4
4
  import {
5
5
  enforceSdkCompatibilityResponse,
6
6
  flushDeferredSkillsSyncNotices,
7
7
  requireSdkCompatibility
8
- } from "./chunk-4ZAWRCB6.mjs";
8
+ } from "./chunk-OCXWUWUI.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
37
37
 
38
38
 
39
39
 
40
- var _chunkZH23XGJOjs = require('./chunk-ZH23XGJO.js');
40
+ var _chunk4BSCSQ6Ijs = require('./chunk-4BSCSQ6I.js');
41
41
 
42
42
 
43
43
  var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
@@ -963,7 +963,7 @@ var ToolCalls = class {
963
963
  idempotencyKey,
964
964
  onResponse: (response2) => {
965
965
  lastResponse = null;
966
- atomicToolsSupported = response2.headers.get(_chunkZH23XGJOjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
966
+ atomicToolsSupported = response2.headers.get(_chunk4BSCSQ6Ijs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
967
967
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
968
968
  if (_optionalChain([options, 'optionalAccess', _38 => _38.onServerTiming])) {
969
969
  try {
@@ -1350,15 +1350,15 @@ function runtimeSelectionHeaders(runtime, env) {
1350
1350
  }
1351
1351
  const receivers = _optionalChain([env, 'access', _63 => _63.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65()]);
1352
1352
  return {
1353
- [_chunkZH23XGJOjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1354
- ...receivers ? { [_chunkZH23XGJOjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1353
+ [_chunk4BSCSQ6Ijs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1354
+ ...receivers ? { [_chunk4BSCSQ6Ijs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1355
1355
  };
1356
1356
  }
1357
1357
  function playRunStartHeaders(runtime, env) {
1358
1358
  const headers = runtimeSelectionHeaders(runtime, env);
1359
1359
  const experimentSwitches = _optionalChain([env, 'access', _66 => _66.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _67 => _67.trim, 'call', _68 => _68()]);
1360
1360
  if (!experimentSwitches) return headers;
1361
- return { ...headers, [_chunkZH23XGJOjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
1361
+ return { ...headers, [_chunk4BSCSQ6Ijs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
1362
1362
  }
1363
1363
  function normalizeTestPolicyOverrides(value, source) {
1364
1364
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -1428,7 +1428,7 @@ var PlayClient = class {
1428
1428
  return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
1429
1429
  this.http,
1430
1430
  resolved.request,
1431
- _optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkZH23XGJOjs.SDK_API_MAJOR) } : headers,
1431
+ _optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk4BSCSQ6Ijs.SDK_API_MAJOR) } : headers,
1432
1432
  options
1433
1433
  );
1434
1434
  }
@@ -2802,6 +2802,8 @@ var RUNTIME_SHEET_START_TARGET_BODY_BYTES = 12 * 1024 * 1024;
2802
2802
  var RUNTIME_SHEET_START_TARGET_RESPONSE_BYTES = 1024 * 1024;
2803
2803
  var RUNTIME_RECEIPT_GATEWAY_BATCH_MAX_BYTES = 12 * 1024 * 1024;
2804
2804
  var RUNTIME_RECEIPT_WRITER_TARGET_BATCH_BYTES = 8 * 1024 * 1024;
2805
+ var RUNTIME_RECEIPT_READ_TARGET_RESPONSE_BYTES = 4 * 1024 * 1024;
2806
+ var RUNTIME_RECEIPT_READ_UNKNOWN_OUTPUT_BYTES = 32 * 1024;
2805
2807
  var RUNNER_POST_TERMINAL_DIAGNOSTIC_MAX_BYTES = 64 * 1024;
2806
2808
  var JSON_SIZE_LIMIT_REACHED = Symbol("JSON_SIZE_LIMIT_REACHED");
2807
2809
  var OMIT_JSON_OUTPUT_VALUE = Symbol("OMIT_JSON_OUTPUT_VALUE");
@@ -3546,7 +3548,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3546
3548
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3547
3549
  );
3548
3550
  }
3549
- return { [_chunkZH23XGJOjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3551
+ return { [_chunk4BSCSQ6Ijs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3550
3552
  }
3551
3553
  function sleep(ms) {
3552
3554
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -4485,7 +4487,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4485
4487
  );
4486
4488
  const headers = _optionalChain([options, 'optionalAccess', _201 => _201.cliAdmission]) ? {
4487
4489
  ...runtimeHeaders,
4488
- "X-Deepline-API-Major": String(_chunkZH23XGJOjs.SDK_API_MAJOR)
4490
+ "X-Deepline-API-Major": String(_chunk4BSCSQ6Ijs.SDK_API_MAJOR)
4489
4491
  } : runtimeHeaders;
4490
4492
  const http = this.http;
4491
4493
  let submitted = false;
@@ -4683,6 +4685,14 @@ var DeeplineClient = (_class = class _DeeplineClient {
4683
4685
  * The compiler needs these records before it checks, registers, or runs a Play artifact.
4684
4686
  */
4685
4687
  async compilePlayManifest(input) {
4688
+ return (await this.compilePlayManifestWithIssues(input)).compilerManifest;
4689
+ }
4690
+ /**
4691
+ * {@link compilePlayManifest}, plus the structured check issues the compile
4692
+ * produced, so a publishing client can show the same warnings `plays check`
4693
+ * shows. `issues` is empty from a server that does not return them.
4694
+ */
4695
+ async compilePlayManifestWithIssues(input) {
4686
4696
  const retryDelays = COMPILE_MANIFEST_RETRY_DELAYS_MS.slice(
4687
4697
  0,
4688
4698
  Math.max(0, this.config.maxRetries)
@@ -4690,7 +4700,13 @@ var DeeplineClient = (_class = class _DeeplineClient {
4690
4700
  for (let attempt = 0; ; attempt += 1) {
4691
4701
  try {
4692
4702
  const response = await this.http.post("/api/v2/plays/compile-manifest", input);
4693
- return requireCompileManifestResponse(response, input.name);
4703
+ return {
4704
+ compilerManifest: requireCompileManifestResponse(
4705
+ response,
4706
+ input.name
4707
+ ),
4708
+ issues: Array.isArray(_optionalChain([response, 'optionalAccess', _218 => _218.issues])) ? response.issues : []
4709
+ };
4694
4710
  } catch (error) {
4695
4711
  const delayMs = retryDelays[attempt];
4696
4712
  if (delayMs === void 0 || !isTransientCompileManifestError(error)) {
@@ -4725,48 +4741,39 @@ var DeeplineClient = (_class = class _DeeplineClient {
4725
4741
  return this.http.post("/api/v2/enrich/compile", input);
4726
4742
  }
4727
4743
  /**
4728
- * Register an already-bundled play artifact and start a run from it.
4744
+ * Start a run from an already-bundled play artifact, as `plays run --file`
4745
+ * does: the run registers the artifact; no draft revision is saved.
4729
4746
  *
4730
4747
  * SDK and CLI packaging wrappers use this low-level run method for file-based Plays.
4731
4748
  * Local bundling must produce the runtime artifact first.
4732
4749
  */
4733
4750
  async startPlayRunFromBundle(input) {
4734
4751
  const compilerManifest = await _asyncNullishCoalesce(input.compilerManifest, async () => ( await this.compilePlayManifest({
4752
+ purpose: "run_file",
4735
4753
  name: input.name,
4736
4754
  sourceCode: input.sourceCode,
4737
4755
  sourceFiles: input.sourceFiles,
4738
4756
  artifact: input.artifact
4739
4757
  })));
4740
- const registeredArtifact = await this.registerPlayArtifact({
4741
- name: input.name,
4742
- sourceCode: input.sourceCode,
4743
- sourceFiles: input.sourceFiles,
4744
- description: input.description,
4745
- artifact: input.artifact,
4746
- compilerManifest,
4747
- publish: false
4748
- });
4749
- if (!registeredArtifact.artifactStorageKey) {
4750
- throw new Error(
4751
- "registerPlayArtifact did not return an artifactStorageKey."
4752
- );
4753
- }
4754
4758
  return this.startPlayRun({
4755
4759
  name: input.name,
4756
- artifactStorageKey: registeredArtifact.artifactStorageKey,
4760
+ sourceCode: input.sourceCode,
4761
+ ...input.sourceFiles ? { sourceFiles: input.sourceFiles } : {},
4762
+ runtimeArtifact: input.artifact,
4757
4763
  description: input.description,
4758
4764
  compilerManifest,
4759
4765
  ...input.input ? { input: input.input } : {},
4760
4766
  ...input.inputFile ? { inputFile: input.inputFile } : {},
4761
- ..._optionalChain([input, 'access', _218 => _218.packagedFiles, 'optionalAccess', _219 => _219.length]) ? { packagedFiles: input.packagedFiles } : {},
4767
+ ..._optionalChain([input, 'access', _219 => _219.packagedFiles, 'optionalAccess', _220 => _220.length]) ? { packagedFiles: input.packagedFiles } : {},
4762
4768
  ...input.force ? { force: true } : {},
4763
4769
  ...input.forceToolRefresh ? { forceToolRefresh: true } : {}
4764
4770
  });
4765
4771
  }
4766
4772
  /**
4767
- * Register a bundled play artifact and start a run from the live revision.
4773
+ * Start a run from a bundled play artifact, as `plays run --file` does: the
4774
+ * run registers the artifact; no draft revision is saved.
4768
4775
  *
4769
- * This method wraps {@link registerPlayArtifact} and {@link startPlayRun}.
4776
+ * This method wraps {@link compilePlayManifest} and {@link startPlayRun}.
4770
4777
  * Packaging wrappers use this method for file-based Plays.
4771
4778
  * Pass the returned ID to {@link getPlayStatus}.
4772
4779
  * The method returns the same durable `{ result }` object that `deepline run` saves when it completes.
@@ -4788,44 +4795,30 @@ var DeeplineClient = (_class = class _DeeplineClient {
4788
4795
  * ```
4789
4796
  */
4790
4797
  async submitPlay(code, csvPath, name, options) {
4791
- const runtimeInput = _optionalChain([options, 'optionalAccess', _220 => _220.input]) ? { ...options.input } : {};
4798
+ const runtimeInput = _optionalChain([options, 'optionalAccess', _221 => _221.input]) ? { ...options.input } : {};
4792
4799
  if (csvPath) {
4793
4800
  runtimeInput.file = csvPath;
4794
4801
  }
4795
- const sourceCode = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _221 => _221.sourceCode]), () => ( code));
4796
- const artifact = _optionalChain([options, 'optionalAccess', _222 => _222.artifact]);
4797
- if (!_optionalChain([name, 'optionalAccess', _223 => _223.trim, 'call', _224 => _224()])) {
4802
+ const sourceCode = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _222 => _222.sourceCode]), () => ( code));
4803
+ const artifact = _optionalChain([options, 'optionalAccess', _223 => _223.artifact]);
4804
+ if (!_optionalChain([name, 'optionalAccess', _224 => _224.trim, 'call', _225 => _225()])) {
4798
4805
  throw new Error("submitPlay requires a play name.");
4799
4806
  }
4800
4807
  if (!artifact) {
4801
4808
  throw new Error("submitPlay requires a bundled play artifact.");
4802
4809
  }
4803
- const compilerManifest = await _asyncNullishCoalesce(await _asyncOptionalChain([options, 'optionalAccess', async _225 => _225.compilerManifest]), async () => ( await this.compilePlayManifest({
4810
+ const compilerManifest = await _asyncNullishCoalesce(await _asyncOptionalChain([options, 'optionalAccess', async _226 => _226.compilerManifest]), async () => ( await this.compilePlayManifest({
4811
+ purpose: "run_file",
4804
4812
  name,
4805
4813
  sourceCode,
4806
- sourceFiles: _optionalChain([options, 'optionalAccess', _226 => _226.sourceFiles]),
4814
+ sourceFiles: _optionalChain([options, 'optionalAccess', _227 => _227.sourceFiles]),
4807
4815
  artifact
4808
4816
  })));
4809
- const registeredArtifact = await this.registerPlayArtifact({
4810
- name,
4811
- sourceCode,
4812
- sourceFiles: _optionalChain([options, 'optionalAccess', _227 => _227.sourceFiles]),
4813
- description: _optionalChain([options, 'optionalAccess', _228 => _228.description]),
4814
- artifact,
4815
- compilerManifest,
4816
- publish: false
4817
- });
4818
- if (!registeredArtifact.artifactStorageKey) {
4819
- throw new Error(
4820
- "registerPlayArtifact did not return an artifactStorageKey."
4821
- );
4822
- }
4823
4817
  return this.startPlayRun({
4824
4818
  name,
4825
- artifactStorageKey: registeredArtifact.artifactStorageKey,
4826
4819
  sourceCode,
4820
+ ..._optionalChain([options, 'optionalAccess', _228 => _228.sourceFiles]) ? { sourceFiles: options.sourceFiles } : {},
4827
4821
  description: _optionalChain([options, 'optionalAccess', _229 => _229.description]),
4828
- staticPipeline: _nullishCoalesce(registeredArtifact.staticPipeline, () => ( null)),
4829
4822
  artifactHash: typeof artifact.artifactHash === "string" ? artifact.artifactHash : void 0,
4830
4823
  graphHash: typeof artifact.graphHash === "string" ? artifact.graphHash : void 0,
4831
4824
  runtimeArtifact: artifact,
@@ -6407,6 +6400,31 @@ var DeeplineClient = (_class = class _DeeplineClient {
6407
6400
  async getPlayCostEstimate(name) {
6408
6401
  return this.http.get(`/api/v2/plays/${encodeURIComponent(name)}/cost`);
6409
6402
  }
6403
+ /**
6404
+ * One diagram step's recorded values (bounded input/output previews,
6405
+ * status, attempt) for at most 50 named runs of a Play. Every run is
6406
+ * answered once, in order: `found: false` when it is not this Play's run,
6407
+ * `value: null` when it never settled at the step. Read-only.
6408
+ */
6409
+ async getPlayStepValues(input) {
6410
+ const node = input.node.trim();
6411
+ if (!node) throw new Error("getPlayStepValues requires a node.");
6412
+ if (node.length > 300)
6413
+ throw new Error("getPlayStepValues node must be at most 300 characters.");
6414
+ const runIds = [
6415
+ ...new Set(input.runIds.map((runId) => runId.trim()).filter(Boolean))
6416
+ ];
6417
+ if (runIds.length === 0)
6418
+ throw new Error("getPlayStepValues requires at least one run id.");
6419
+ if (runIds.length > 50)
6420
+ throw new Error(
6421
+ `getPlayStepValues reads at most 50 runs per request; got ${runIds.length}.`
6422
+ );
6423
+ const params = new URLSearchParams({ node, runIds: runIds.join(",") });
6424
+ return this.http.get(
6425
+ `/api/v2/plays/${encodeURIComponent(input.playName)}/step-values?${params}`
6426
+ );
6427
+ }
6410
6428
  /** Read one trigger inventory page without loading run histories. */
6411
6429
  async listPlayTriggerInventory(options) {
6412
6430
  const params = new URLSearchParams({ view: "inventory" });
@@ -4,22 +4,22 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkPOYADK77js = require('./chunk-POYADK77.js');
7
+ var _chunkBO2TXH5Yjs = require('./chunk-BO2TXH5Y.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkZ3IAEHIDjs = require('./chunk-Z3IAEHID.js');
12
+ var _chunkRXIQWG2Njs = require('./chunk-RXIQWG2N.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkVA35T3AFjs = require('./chunk-VA35T3AF.js');
16
+ var _chunkISSYN3DJjs = require('./chunk-ISSYN3DJ.js');
17
17
 
18
18
 
19
- var _chunk5436ZJPHjs = require('./chunk-5436ZJPH.js');
19
+ var _chunkS33BN7GZjs = require('./chunk-S33BN7GZ.js');
20
20
 
21
21
 
22
- var _chunkZH23XGJOjs = require('./chunk-ZH23XGJO.js');
22
+ var _chunk4BSCSQ6Ijs = require('./chunk-4BSCSQ6I.js');
23
23
 
24
24
  // src/cli/compatibility-catalog.ts
25
25
  var readers = /* @__PURE__ */ new WeakMap();
@@ -46,7 +46,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
46
46
  async function reportAutoUpdateEvent(input) {
47
47
  let apiKey = "";
48
48
  try {
49
- apiKey = _chunk5436ZJPHjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
+ apiKey = _chunkS33BN7GZjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
50
50
  } catch (e2) {
51
51
  return;
52
52
  }
@@ -62,15 +62,15 @@ async function reportAutoUpdateEvent(input) {
62
62
  headers: {
63
63
  Authorization: `Bearer ${apiKey}`,
64
64
  "Content-Type": "application/json",
65
- "User-Agent": `deepline-ts-sdk/${_chunkZH23XGJOjs.SDK_VERSION}`,
65
+ "User-Agent": `deepline-ts-sdk/${_chunk4BSCSQ6Ijs.SDK_VERSION}`,
66
66
  "X-Deepline-Client-Family": "sdk",
67
67
  "X-Deepline-CLI-Family": "sdk",
68
- "X-Deepline-CLI-Version": _chunkZH23XGJOjs.SDK_VERSION,
69
- "X-Deepline-SDK-Version": _chunkZH23XGJOjs.SDK_VERSION
68
+ "X-Deepline-CLI-Version": _chunk4BSCSQ6Ijs.SDK_VERSION,
69
+ "X-Deepline-SDK-Version": _chunk4BSCSQ6Ijs.SDK_VERSION
70
70
  },
71
71
  body: JSON.stringify({
72
72
  event: input.event,
73
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkZH23XGJOjs.SDK_VERSION,
73
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk4BSCSQ6Ijs.SDK_VERSION,
74
74
  target_version: input.response.latest,
75
75
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
76
76
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -89,19 +89,19 @@ function envTruthy(name) {
89
89
  return value === "1" || value === "true" || value === "yes";
90
90
  }
91
91
  function shouldSkipSelfUpdate(policy) {
92
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkPOYADK77js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkZ3IAEHIDjs.isCiEnvironment.call(void 0, );
92
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkBO2TXH5Yjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkRXIQWG2Njs.isCiEnvironment.call(void 0, );
93
93
  }
94
94
  function isDowngradeAutoUpdateResponse(response) {
95
95
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
96
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkZH23XGJOjs.SDK_VERSION;
96
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk4BSCSQ6Ijs.SDK_VERSION;
97
97
  if (!target) return false;
98
- return _chunkPOYADK77js.compareUpdateVersions.call(void 0, target, current) < 0;
98
+ return _chunkBO2TXH5Yjs.compareUpdateVersions.call(void 0, target, current) < 0;
99
99
  }
100
100
  function relaunchCurrentCommand(plan, runtime = {}) {
101
101
  return new Promise((resolve) => {
102
102
  const argv = _nullishCoalesce(runtime.argv, () => ( process.argv));
103
103
  const platform = _nullishCoalesce(runtime.platform, () => ( process.platform));
104
- const launch = plan.kind === "python-sidecar" ? _chunkZ3IAEHIDjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
104
+ const launch = plan.kind === "python-sidecar" ? _chunkRXIQWG2Njs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
105
105
  command: _nullishCoalesce(runtime.execPath, () => ( process.execPath)),
106
106
  args: argv.slice(1),
107
107
  shell: false
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
148
148
  }
149
149
  if (isDowngradeAutoUpdateResponse(response)) {
150
150
  const target = response.latest;
151
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkZH23XGJOjs.SDK_VERSION;
151
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk4BSCSQ6Ijs.SDK_VERSION;
152
152
  process.stderr.write(
153
153
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
154
154
  `
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
156
156
  return false;
157
157
  }
158
158
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
159
- const plan = _chunkPOYADK77js.resolveUpdatePlan.call(void 0, {
159
+ const plan = _chunkBO2TXH5Yjs.resolveUpdatePlan.call(void 0, {
160
160
  packageSpec,
161
161
  requireVerifiedNpmOwnership: true,
162
162
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
163
163
  });
164
- if (!_chunkPOYADK77js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
+ if (!_chunkBO2TXH5Yjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
165
165
  return false;
166
166
  }
167
167
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
168
168
  deferredAutoUpdate = async () => {
169
169
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
170
170
  };
171
- if (_chunkVA35T3AFjs.isJsonOutputMode.call(void 0, )) {
171
+ if (_chunkISSYN3DJjs.isJsonOutputMode.call(void 0, )) {
172
172
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
173
- _chunkVA35T3AFjs.addJsonNotice.call(void 0, {
173
+ _chunkISSYN3DJjs.addJsonNotice.call(void 0, {
174
174
  code: "sdk_update_queued",
175
175
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
176
176
  });
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
183
183
  return true;
184
184
  }
185
185
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
186
- if (!_chunkPOYADK77js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
+ if (!_chunkBO2TXH5Yjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
187
187
  const autoUpdate = response.auto_update;
188
188
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
189
189
  process.stderr.write(
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
196
196
  event: "started",
197
197
  installKind: plan.kind
198
198
  });
199
- const updateResult = await _chunkPOYADK77js.runAutomaticUpdatePlan.call(void 0, plan);
199
+ const updateResult = await _chunkBO2TXH5Yjs.runAutomaticUpdatePlan.call(void 0, plan);
200
200
  if (updateResult.status === "skipped_previous_failure") {
201
201
  void reportAutoUpdateEvent({
202
202
  baseUrl,
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
234
234
  exitCode: 0
235
235
  });
236
236
  try {
237
- await _chunkZ3IAEHIDjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
+ await _chunkRXIQWG2Njs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
238
238
  mode: "detached",
239
239
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
240
240
  afterCliUpdate: {
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
261
261
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
262
262
  var activeToolExecuteCommand = null;
263
263
  function progressLine(line) {
264
- if (!_chunkVA35T3AFjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
+ if (!_chunkISSYN3DJjs.isJsonOutputMode.call(void 0, )) console.error(line);
265
265
  }
266
266
  function beginToolExecuteCommand() {
267
267
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;