deepline 0.3.533 → 0.3.535

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 (173) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +68 -7
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/call-requeue-state-machine.ts +420 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +677 -26
  5. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +26 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/durable-retry-policy.ts +624 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +26 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +32 -14
  9. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +51 -1
  10. package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +9 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/map-memory-limits.ts +245 -1
  12. package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +21 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/provider-no-progress.ts +6 -2
  14. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +10 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +55 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +8 -0
  17. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +21 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +12 -1
  19. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +6 -0
  20. package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
  21. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +101 -0
  22. package/dist/bundling-sources/shared_libs/plays/share/static-pipeline-summary.ts +63 -13
  23. package/dist/cli/auth-VDCU3T6A.js +43 -0
  24. package/dist/cli/{auth-2TZNPIJQ.mjs → auth-ZCTMB5RA.mjs} +5 -5
  25. package/dist/cli/{billing-HQYTRIV3.js → billing-GVFKZQH3.js} +82 -82
  26. package/dist/cli/{billing-LR4WJIHO.mjs → billing-OU2ZHL72.mjs} +7 -7
  27. package/dist/cli/{chunk-HOTJSXLY.js → chunk-243O3FH5.js} +5 -5
  28. package/dist/cli/{chunk-TU56J4OV.js → chunk-2D6SWQTK.js} +13 -13
  29. package/dist/cli/{chunk-4YP2YAIZ.js → chunk-4NLRWKZB.js} +26 -26
  30. package/dist/cli/{chunk-NW736SOD.mjs → chunk-4QELPWUW.mjs} +2 -2
  31. package/dist/cli/{chunk-LTF2J3JM.js → chunk-5EKNDNFQ.js} +2 -2
  32. package/dist/cli/{chunk-VPQDKL5O.js → chunk-6LHX33VN.js} +6 -6
  33. package/dist/cli/{chunk-LZMRCUVD.mjs → chunk-6TYRRNXY.mjs} +2 -2
  34. package/dist/cli/{chunk-YZK5RSUL.mjs → chunk-7CWSAEYS.mjs} +1 -1
  35. package/dist/cli/{chunk-A4JP6RPX.js → chunk-7PXP2FQK.js} +2 -2
  36. package/dist/cli/{chunk-2TMNRF5R.mjs → chunk-7R5DAANG.mjs} +1 -1
  37. package/dist/cli/{chunk-NKVW552R.mjs → chunk-AUEUAPVS.mjs} +1 -1
  38. package/dist/cli/{chunk-3KQBV2CG.mjs → chunk-BF65LB7X.mjs} +3 -3
  39. package/dist/cli/{chunk-33SNTG5F.js → chunk-CIDATNTY.js} +16 -16
  40. package/dist/cli/{chunk-O7RSUW75.js → chunk-D4MHCCIR.js} +4 -4
  41. package/dist/cli/{chunk-5XTXC45Z.js → chunk-DAPKLYST.js} +41 -41
  42. package/dist/cli/{chunk-USAQ42OG.mjs → chunk-DFJODFMC.mjs} +5 -5
  43. package/dist/cli/{chunk-KKUOIVQO.mjs → chunk-DWPY6ZID.mjs} +1 -1
  44. package/dist/cli/{chunk-MNAEALPG.js → chunk-DYIWDUY4.js} +182 -127
  45. package/dist/cli/{chunk-EVXRQXNV.mjs → chunk-E3CLOVG5.mjs} +47 -0
  46. package/dist/cli/{chunk-SVVUC3B4.js → chunk-FGN75ZN6.js} +138 -104
  47. package/dist/cli/{chunk-XZN3DBTP.mjs → chunk-FZKPPB5P.mjs} +40 -6
  48. package/dist/cli/{chunk-NFDYVMGC.mjs → chunk-G2DLG32W.mjs} +68 -13
  49. package/dist/cli/{chunk-LZ3PBEQH.mjs → chunk-H6SWS5CG.mjs} +2 -2
  50. package/dist/cli/{chunk-EYWES7F5.js → chunk-HWPOXCCK.js} +3 -3
  51. package/dist/cli/{chunk-425ERNBL.js → chunk-HYBZWSSH.js} +44 -44
  52. package/dist/cli/{chunk-CANHB6DH.mjs → chunk-J75DANZY.mjs} +2 -2
  53. package/dist/cli/{chunk-CWIGRIIX.mjs → chunk-JQQG4QL4.mjs} +3 -3
  54. package/dist/cli/{chunk-2UYERVXF.mjs → chunk-JWWYLGUT.mjs} +2 -2
  55. package/dist/cli/{chunk-735ZOYQN.js → chunk-K3IPGMGP.js} +11 -11
  56. package/dist/cli/{chunk-VKGNQC2S.mjs → chunk-K53NKWZO.mjs} +5 -5
  57. package/dist/cli/{chunk-3O3AL5RI.mjs → chunk-K76AEBFY.mjs} +4 -4
  58. package/dist/cli/{chunk-BWZHMWM5.js → chunk-KA6ZERJL.js} +6 -6
  59. package/dist/cli/{chunk-4CYNH47Y.js → chunk-KOZBZPRM.js} +53 -53
  60. package/dist/cli/{chunk-QZWURUBP.js → chunk-KWGXHPHL.js} +7 -7
  61. package/dist/cli/{chunk-XUX5KGCQ.mjs → chunk-LVISZFYO.mjs} +2 -2
  62. package/dist/cli/{chunk-B4ZNWXUW.js → chunk-OM732MGV.js} +9 -9
  63. package/dist/cli/{chunk-352XVCGE.js → chunk-PHLNYBAA.js} +5 -5
  64. package/dist/cli/{chunk-ZH5HCAN3.js → chunk-PI5R65OQ.js} +1 -1
  65. package/dist/cli/{chunk-JZ7LJS3P.mjs → chunk-QYBAHYP4.mjs} +6 -6
  66. package/dist/cli/{chunk-G3GJ3IGU.mjs → chunk-R2KKEHJN.mjs} +5 -5
  67. package/dist/cli/{chunk-R7YDZSN7.js → chunk-RFQWSH6I.js} +3 -3
  68. package/dist/cli/{chunk-MKUYZ7LR.mjs → chunk-RKY4LBX3.mjs} +1 -1
  69. package/dist/cli/{chunk-WF652G74.js → chunk-T7RBM2WX.js} +14 -14
  70. package/dist/cli/{chunk-G3RVDRYL.mjs → chunk-TCVCFZP6.mjs} +1 -1
  71. package/dist/cli/{chunk-E4VWBU2E.js → chunk-UUQ2OXMH.js} +16 -16
  72. package/dist/cli/{chunk-IETLUG4C.mjs → chunk-W5YJYU4G.mjs} +1 -1
  73. package/dist/cli/{chunk-HPOVAUQF.mjs → chunk-W6T23EUC.mjs} +1 -1
  74. package/dist/cli/{chunk-BSI7UHQZ.mjs → chunk-WAIBM6KX.mjs} +5 -5
  75. package/dist/cli/{chunk-4UADZTU5.js → chunk-WNNA4L6Z.js} +22 -22
  76. package/dist/cli/{chunk-V6LUMGVI.js → chunk-XSOTEVOB.js} +47 -0
  77. package/dist/cli/{chunk-PIACHLYY.mjs → chunk-YFZLZNTH.mjs} +2 -2
  78. package/dist/cli/{chunk-274Y66HP.js → chunk-ZUVE63Y7.js} +2 -2
  79. package/dist/cli/command-docs.js +2 -2
  80. package/dist/cli/command-docs.mjs +1 -1
  81. package/dist/cli/{csv-MBSCHS4H.js → csv-CD55KEIO.js} +13 -13
  82. package/dist/cli/{csv-CJKKHGNQ.mjs → csv-CLPVMIRF.mjs} +4 -4
  83. package/dist/cli/{db-EAFR6N45.mjs → db-AU4SMWUN.mjs} +6 -6
  84. package/dist/cli/{db-45HNPCY3.js → db-MQKLDAEO.js} +27 -27
  85. package/dist/cli/describe-5BFNHT5V.js +50 -0
  86. package/dist/cli/{describe-IXW3LDGC.mjs → describe-AWJUXE2U.mjs} +18 -18
  87. package/dist/cli/describe-core.d.mts +3 -3
  88. package/dist/cli/describe-core.d.ts +3 -3
  89. package/dist/cli/{executions-SZAES2S4.js → executions-77GOLWRM.js} +8 -8
  90. package/dist/cli/{executions-ZATZV7O6.mjs → executions-TFIJPUX7.mjs} +6 -6
  91. package/dist/cli/{feedback-NY63KEK2.mjs → feedback-2WRSZ5WL.mjs} +6 -6
  92. package/dist/cli/{feedback-KXLF4GR4.js → feedback-OV5YAL3A.js} +14 -14
  93. package/dist/cli/git-HGMX52XU.js +25 -0
  94. package/dist/cli/{git-BSSSTR6N.mjs → git-VNS4ATLZ.mjs} +5 -5
  95. package/dist/cli/index.js +145 -145
  96. package/dist/cli/index.mjs +44 -44
  97. package/dist/cli/{legacy-noops-CYF6DJBF.mjs → legacy-noops-C732QDCY.mjs} +6 -6
  98. package/dist/cli/{legacy-noops-XQANGML3.js → legacy-noops-HDOB5C6F.js} +9 -9
  99. package/dist/cli/{monitors-ABJVLWIP.mjs → monitors-2LYEFXOU.mjs} +7 -7
  100. package/dist/cli/{monitors-F3PTNP45.js → monitors-5IUMHH3E.js} +100 -100
  101. package/dist/cli/{org-WQAPZI5Q.js → org-ADW2EVAC.js} +86 -86
  102. package/dist/cli/{org-BHF6Y5R7.mjs → org-G4YGZPHS.mjs} +6 -6
  103. package/dist/cli/{pages-W4HWVJUG.mjs → pages-KXKWSCEV.mjs} +6 -6
  104. package/dist/cli/{pages-U3EJ2NPL.js → pages-VTJGAI2D.js} +18 -18
  105. package/dist/cli/{play-3T4X3ZKH.mjs → play-7GQ56C2D.mjs} +69 -22
  106. package/dist/cli/{play-2UHKONON.js → play-EHSOSSHT.js} +367 -320
  107. package/dist/cli/{providers-LUK5LIUA.js → providers-PWCF6OOO.js} +9 -9
  108. package/dist/cli/{providers-2G2VTNDG.mjs → providers-WL3YTCSV.mjs} +6 -6
  109. package/dist/cli/{quickstart-XP4PJZ7N.mjs → quickstart-323XOPGI.mjs} +4 -4
  110. package/dist/cli/{quickstart-76P6PGID.js → quickstart-ZKI5MURA.js} +6 -6
  111. package/dist/cli/{run-S2KHGBCM.js → run-XZPWA6JS.js} +41 -41
  112. package/dist/cli/{run-ACIHA53A.mjs → run-ZCNZU3K2.mjs} +23 -23
  113. package/dist/cli/{search-VFIJCUZL.mjs → search-CVLVSFMJ.mjs} +8 -8
  114. package/dist/cli/search-J6EY7DQN.js +33 -0
  115. package/dist/cli/{search-output-2KFLZS5F.mjs → search-output-6PY6RN2R.mjs} +4 -4
  116. package/dist/cli/{search-output-GV7NNB4X.js → search-output-7HRSSRBS.js} +6 -6
  117. package/dist/cli/{secrets-MAQLBVC4.mjs → secrets-6S2ZWDIM.mjs} +6 -6
  118. package/dist/cli/{secrets-KJSFEW2F.js → secrets-IYD5VKY4.js} +15 -15
  119. package/dist/cli/sessions-7HPIVSQ4.js +22 -0
  120. package/dist/cli/{sessions-G5MWNJ75.mjs → sessions-GVEX5TUJ.mjs} +6 -6
  121. package/dist/cli/{settings-MR6UFOK5.mjs → settings-BN5MJZ3C.mjs} +13 -13
  122. package/dist/cli/{settings-VXGRPFXP.js → settings-CANK4HJQ.js} +86 -86
  123. package/dist/cli/{setup-ZOBXMONM.mjs → setup-JNMSCCU4.mjs} +10 -10
  124. package/dist/cli/{setup-C74BRK7N.js → setup-YSGKGLSJ.js} +50 -50
  125. package/dist/cli/{skills-4CG3MHOY.mjs → skills-QCQN2UM2.mjs} +8 -8
  126. package/dist/cli/skills-WDGSSKJZ.js +37 -0
  127. package/dist/cli/{tools-YXCXZ4ZD.mjs → tools-CDPOID7V.mjs} +17 -17
  128. package/dist/cli/tools-URNVXSTZ.js +57 -0
  129. package/dist/cli/{update-Z3C5W3I4.mjs → update-D3ZERUQ3.mjs} +10 -10
  130. package/dist/cli/update-Q6JW32IA.js +35 -0
  131. package/dist/cli/{views-XGP2GZ52.js → views-4NV2KQKA.js} +18 -18
  132. package/dist/cli/{views-45B2FZQT.mjs → views-RDZRWQBQ.mjs} +6 -6
  133. package/dist/cli/{workflow-KQRWSNBH.mjs → workflow-2CG3TVCG.mjs} +7 -7
  134. package/dist/cli/{workflow-DWO35XHZ.js → workflow-RABJCAZC.js} +17 -17
  135. package/dist/{client-Bd2meveV.d.mts → client-DhSvMO3A.d.mts} +1 -1
  136. package/dist/{client-core-CGj8V9mw.d.mts → client-core-CVG1Et-4.d.mts} +41 -2
  137. package/dist/{client-core-CsRRWCFy.d.ts → client-core-CdWH6Sii.d.ts} +41 -2
  138. package/dist/{client-CBCVhL8U.d.ts → client-oGNJMQFd.d.ts} +1 -1
  139. package/dist/{compiler-manifest-DsxsQP-T.d.ts → compiler-manifest-D2ZlBGxj.d.mts} +44 -0
  140. package/dist/{compiler-manifest-DsxsQP-T.d.mts → compiler-manifest-D2ZlBGxj.d.ts} +44 -0
  141. package/dist/{errors-qdJUVQ3g.d.mts → errors-B-gOQdj-.d.mts} +1 -1
  142. package/dist/{errors-Bk5h1D-C.d.ts → errors-CB0KAmmV.d.ts} +1 -1
  143. package/dist/{index-PaupwX1B.d.mts → index-BbJADro4.d.mts} +1 -1
  144. package/dist/{index-bL66eHYz.d.ts → index-c3nvUGCS.d.ts} +1 -1
  145. package/dist/index.d.mts +7 -7
  146. package/dist/index.d.ts +7 -7
  147. package/dist/index.js +9 -9
  148. package/dist/index.mjs +6 -6
  149. package/dist/install-integrity.json +118 -116
  150. package/dist/plays/bundle-play-file.d.mts +3 -3
  151. package/dist/plays/bundle-play-file.d.ts +3 -3
  152. package/dist/plays/bundle-play-file.mjs +52 -0
  153. package/dist/plays/play-description.d.mts +2 -2
  154. package/dist/plays/play-description.d.ts +2 -2
  155. package/dist/plays/run-request.d.mts +2 -2
  156. package/dist/plays/run-request.d.ts +2 -2
  157. package/dist/release.d.mts +1 -1
  158. package/dist/release.d.ts +1 -1
  159. package/dist/release.js +2 -2
  160. package/dist/release.mjs +1 -1
  161. package/dist/server.d.mts +4 -4
  162. package/dist/server.d.ts +4 -4
  163. package/dist/server.js +5 -5
  164. package/dist/server.mjs +3 -3
  165. package/package.json +1 -1
  166. package/dist/cli/auth-KE6RFHUE.js +0 -43
  167. package/dist/cli/describe-PYLZAVRI.js +0 -50
  168. package/dist/cli/git-T5JTVBYZ.js +0 -25
  169. package/dist/cli/search-5MD65V43.js +0 -33
  170. package/dist/cli/sessions-FDMO7PAA.js +0 -22
  171. package/dist/cli/skills-KRUL7QCT.js +0 -37
  172. package/dist/cli/tools-CGHOSCPS.js +0 -57
  173. package/dist/cli/update-S2TILEHZ.js +0 -35
@@ -1,22 +1,22 @@
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
- var _chunkHOTJSXLYjs = require('./chunk-HOTJSXLY.js');
4
- require('./chunk-SVVUC3B4.js');
3
+ var _chunk243O3FH5js = require('./chunk-243O3FH5.js');
4
+ require('./chunk-FGN75ZN6.js');
5
5
  require('./chunk-E4CABWXL.js');
6
6
  require('./chunk-2KHUFWTK.js');
7
7
  require('./chunk-PMH4GLMD.js');
8
8
  require('./chunk-XDVT3GOM.js');
9
9
 
10
10
 
11
- var _chunkQZWURUBPjs = require('./chunk-QZWURUBP.js');
11
+ var _chunkKWGXHPHLjs = require('./chunk-KWGXHPHL.js');
12
12
 
13
13
 
14
- var _chunkEYWES7F5js = require('./chunk-EYWES7F5.js');
15
- require('./chunk-O7RSUW75.js');
14
+ var _chunkHWPOXCCKjs = require('./chunk-HWPOXCCK.js');
15
+ require('./chunk-D4MHCCIR.js');
16
16
  require('./chunk-T2N3B7IQ.js');
17
17
  require('./chunk-XNYIZMNQ.js');
18
18
  require('./chunk-SQWET4SL.js');
19
- require('./chunk-ZH5HCAN3.js');
19
+ require('./chunk-PI5R65OQ.js');
20
20
  require('./chunk-OG64RBAC.js');
21
21
  require('./chunk-COGTRVWW.js');
22
22
 
@@ -73,7 +73,7 @@ function linkLine(link) {
73
73
  return `${link.id} ${expiry}${link.label ? ` ${link.label}` : ""}`;
74
74
  }
75
75
  function print(command, json, data, lines) {
76
- _chunkQZWURUBPjs.printCommandEnvelope.call(void 0,
76
+ _chunkKWGXHPHLjs.printCommandEnvelope.call(void 0,
77
77
  { command, ...data, render: { sections: [{ title: command, lines }] } },
78
78
  { json: Boolean(json), text: `${lines.join("\n")}
79
79
  ` }
@@ -89,7 +89,7 @@ async function run(action) {
89
89
  }
90
90
  var HOSTED_PAGES_FEATURE = "hosted-pages";
91
91
  function registerPagesCommands(program) {
92
- const pages = program.command("pages", { hidden: !_chunkEYWES7F5js.cliFeatureEnabled.call(void 0, HOSTED_PAGES_FEATURE) }).description(
92
+ const pages = program.command("pages", { hidden: !_chunkHWPOXCCKjs.cliFeatureEnabled.call(void 0, HOSTED_PAGES_FEATURE) }).description(
93
93
  "Publish documents at stable URLs on deepline.page and share them."
94
94
  ).addHelpText(
95
95
  "after",
@@ -115,7 +115,7 @@ Examples:
115
115
  throw new Error("Pass exactly one of --public or --private.");
116
116
  }
117
117
  const content = await _promises.readFile.call(void 0, options.file);
118
- const result = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().writePage(name, {
118
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().writePage(name, {
119
119
  public: Boolean(options.public),
120
120
  contentBase64: content.toString("base64"),
121
121
  contentType: _nullishCoalesce(options.contentType, () => ( inferPageContentType(options.file))),
@@ -138,7 +138,7 @@ Examples:
138
138
  `
139
139
  ).action(
140
140
  async (options) => run(async () => {
141
- const result = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().listPages({
141
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().listPages({
142
142
  cursor: options.cursor,
143
143
  limit: options.limit
144
144
  });
@@ -152,7 +152,7 @@ Examples:
152
152
  );
153
153
  pages.command("get <name>").description("Show one page's details.").option("--json", "Emit raw JSON response").action(
154
154
  async (name, options) => run(async () => {
155
- const page = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().getPage(name);
155
+ const page = await new (0, _chunk243O3FH5js.DeeplineClient)().getPage(name);
156
156
  print("pages get", options.json, page, pageLines(page));
157
157
  })
158
158
  );
@@ -160,7 +160,7 @@ Examples:
160
160
  "Replace the HTTPS origins that can read a public page. Omit origins to clear the list."
161
161
  ).option("--json", "Emit raw JSON response").action(
162
162
  async (name, origins, options) => run(async () => {
163
- const result = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().setPageAllowedOrigins(
163
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().setPageAllowedOrigins(
164
164
  name,
165
165
  origins
166
166
  );
@@ -179,7 +179,7 @@ Notes:
179
179
  `
180
180
  ).action(
181
181
  async (name, options) => run(async () => {
182
- const page = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().setPageVisibility(name, true);
182
+ const page = await new (0, _chunk243O3FH5js.DeeplineClient)().setPageVisibility(name, true);
183
183
  print("pages set-public", options.json, page, [
184
184
  `${page.name} is now visible to anyone with its URL.`,
185
185
  page.url
@@ -194,7 +194,7 @@ Notes:
194
194
  `
195
195
  ).action(
196
196
  async (name, options) => run(async () => {
197
- const page = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().setPageVisibility(name, false);
197
+ const page = await new (0, _chunk243O3FH5js.DeeplineClient)().setPageVisibility(name, false);
198
198
  print("pages set-private", options.json, page, [
199
199
  `${page.name} is now visible to workspace members only.`
200
200
  ]);
@@ -210,7 +210,7 @@ Notes:
210
210
  `
211
211
  ).action(
212
212
  async (name, options) => run(async () => {
213
- const result = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().deletePage(name);
213
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().deletePage(name);
214
214
  print("pages delete", options.json, result, [`Deleted ${name}.`]);
215
215
  })
216
216
  );
@@ -227,7 +227,7 @@ Examples:
227
227
  if (Boolean(options.expiresIn) === Boolean(options.permanent)) {
228
228
  throw new Error("Pass exactly one of --expires-in or --permanent.");
229
229
  }
230
- const link = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().createPageLink(name, {
230
+ const link = await new (0, _chunk243O3FH5js.DeeplineClient)().createPageLink(name, {
231
231
  expiresInSeconds: options.expiresIn ? parseExpiresIn(options.expiresIn) : void 0,
232
232
  permanent: options.permanent ? true : void 0,
233
233
  label: options.label
@@ -241,7 +241,7 @@ Examples:
241
241
  );
242
242
  links.command("list <name>").description("List a page's links. Their URLs cannot be shown again.").option("--json", "Emit raw JSON response").action(
243
243
  async (name, options) => run(async () => {
244
- const result = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().listPageLinks(name);
244
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().listPageLinks(name);
245
245
  print(
246
246
  "pages links list",
247
247
  options.json,
@@ -252,7 +252,7 @@ Examples:
252
252
  );
253
253
  links.command("revoke <name> <link-id>").description("Stop a link working.").option("--json", "Emit raw JSON response").action(
254
254
  async (name, linkId, options) => run(async () => {
255
- const result = await new (0, _chunkHOTJSXLYjs.DeeplineClient)().revokePageLink(name, linkId);
255
+ const result = await new (0, _chunk243O3FH5js.DeeplineClient)().revokePageLink(name, linkId);
256
256
  print("pages links revoke", options.json, result, [
257
257
  `Revoked ${linkId}.`
258
258
  ]);
@@ -5,7 +5,7 @@ import {
5
5
  parsePlayRunHeaderFlag,
6
6
  parsePlayRunOptions,
7
7
  resolvePlayRunCliOptions
8
- } from "./chunk-PIACHLYY.mjs";
8
+ } from "./chunk-YFZLZNTH.mjs";
9
9
  import {
10
10
  ExecutionOutputError,
11
11
  TABLE_EXPORT_ERROR_COLUMN,
@@ -18,15 +18,15 @@ import {
18
18
  underscoreKeysLast,
19
19
  writeExecutionOutput,
20
20
  writeRunDatasetCsv
21
- } from "./chunk-G3RVDRYL.mjs";
21
+ } from "./chunk-TCVCFZP6.mjs";
22
22
  import {
23
23
  registerDeprecatedSearchCommand
24
- } from "./chunk-VKGNQC2S.mjs";
24
+ } from "./chunk-K53NKWZO.mjs";
25
25
  import "./chunk-5AEDYVB6.mjs";
26
26
  import {
27
27
  handleDeploymentGet,
28
28
  handleDeploymentsList
29
- } from "./chunk-LZ3PBEQH.mjs";
29
+ } from "./chunk-H6SWS5CG.mjs";
30
30
  import {
31
31
  buildPlayDashboardUrl,
32
32
  buildPlayRunUrl
@@ -51,10 +51,10 @@ import {
51
51
  import {
52
52
  pinLocalPlayImports,
53
53
  planLocalPlayExecution
54
- } from "./chunk-LZMRCUVD.mjs";
54
+ } from "./chunk-6TYRRNXY.mjs";
55
55
  import {
56
56
  DeeplineClient
57
- } from "./chunk-XUX5KGCQ.mjs";
57
+ } from "./chunk-LVISZFYO.mjs";
58
58
  import {
59
59
  RUN_EVENT_SEARCH_KIND_VALUES,
60
60
  RunEventQueryInputError,
@@ -67,7 +67,7 @@ import {
67
67
  normalizePlayStatus,
68
68
  normalizeRunEventOperationRequest,
69
69
  parseLogLevel
70
- } from "./chunk-XZN3DBTP.mjs";
70
+ } from "./chunk-FZKPPB5P.mjs";
71
71
  import "./chunk-L2VKAASU.mjs";
72
72
  import {
73
73
  CSV_DATA_INPUT_KEY,
@@ -91,19 +91,19 @@ import "./chunk-UBKA33KY.mjs";
91
91
  import {
92
92
  checkPlayRunCompatibility,
93
93
  usesCliPlayAdmission
94
- } from "./chunk-CANHB6DH.mjs";
94
+ } from "./chunk-J75DANZY.mjs";
95
95
  import {
96
96
  isCliTraceEnabled,
97
97
  recordCliTrace,
98
98
  resolveCliMaintenancePolicy,
99
99
  traceCliSpan
100
- } from "./chunk-KKUOIVQO.mjs";
101
- import "./chunk-USAQ42OG.mjs";
100
+ } from "./chunk-DWPY6ZID.mjs";
101
+ import "./chunk-DFJODFMC.mjs";
102
102
  import {
103
103
  createCliProgress,
104
104
  getActiveCliProgress
105
- } from "./chunk-2TMNRF5R.mjs";
106
- import "./chunk-NW736SOD.mjs";
105
+ } from "./chunk-7R5DAANG.mjs";
106
+ import "./chunk-4QELPWUW.mjs";
107
107
  import {
108
108
  formatNonStandardSandboxRuntimeWarning
109
109
  } from "./chunk-5LUF4LAR.mjs";
@@ -123,17 +123,17 @@ import {
123
123
  printJsonError,
124
124
  renderCommandEnvelopeText,
125
125
  shouldEmitJson
126
- } from "./chunk-2UYERVXF.mjs";
127
- import "./chunk-IETLUG4C.mjs";
126
+ } from "./chunk-JWWYLGUT.mjs";
127
+ import "./chunk-W5YJYU4G.mjs";
128
128
  import {
129
129
  fetchWithDeploymentProtection
130
- } from "./chunk-MKUYZ7LR.mjs";
130
+ } from "./chunk-RKY4LBX3.mjs";
131
131
  import "./chunk-QNHHZ63P.mjs";
132
132
  import "./chunk-DLIRSHV6.mjs";
133
133
  import {
134
134
  DeeplineError
135
135
  } from "./chunk-ZPGGW27Q.mjs";
136
- import "./chunk-YZK5RSUL.mjs";
136
+ import "./chunk-7CWSAEYS.mjs";
137
137
  import "./chunk-WZYKRD7T.mjs";
138
138
  import {
139
139
  __commonJS,
@@ -12193,7 +12193,7 @@ ${PLAY_PUBLISH_USAGE}`
12193
12193
  jsonOutput: argsWantJson(args)
12194
12194
  };
12195
12195
  }
12196
- var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
12196
+ var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--watch-play <play-reference>] [--dry-run] [--json]\nUse --watch-play to show invalid source on your own open working canvas while keeping the last valid diagram.";
12197
12197
  function parsePlaySaveOptions(args) {
12198
12198
  const target = args[0];
12199
12199
  if (!target) throw new Error(PLAY_SAVE_USAGE);
@@ -12202,9 +12202,16 @@ function parsePlaySaveOptions(args) {
12202
12202
  The Play file is positional.`);
12203
12203
  }
12204
12204
  let expectedArtifactHash;
12205
+ let watchPlay;
12205
12206
  let dryRun = false;
12206
12207
  for (let index = 1; index < args.length; index += 1) {
12207
12208
  const arg = args[index];
12209
+ if (arg === "--watch-play" || arg.startsWith("--watch-play=")) {
12210
+ watchPlay = arg === "--watch-play" ? args[++index] : arg.slice("--watch-play=".length);
12211
+ if (!watchPlay || watchPlay.startsWith("-"))
12212
+ throw new Error("--watch-play requires an existing Play reference.");
12213
+ continue;
12214
+ }
12208
12215
  if (arg === "--expected-artifact") {
12209
12216
  expectedArtifactHash = args[++index];
12210
12217
  if (!expectedArtifactHash) {
@@ -12230,6 +12237,7 @@ ${PLAY_SAVE_USAGE}`);
12230
12237
  return {
12231
12238
  target,
12232
12239
  expectedArtifactHash,
12240
+ watchPlay,
12233
12241
  dryRun,
12234
12242
  jsonOutput: argsWantJson(args)
12235
12243
  };
@@ -15574,6 +15582,29 @@ async function handlePlaySave(args) {
15574
15582
  );
15575
15583
  return 2;
15576
15584
  }
15585
+ const watchPlay = options.dryRun ? void 0 : options.watchPlay;
15586
+ const client = watchPlay ? new DeeplineClient() : void 0;
15587
+ let attempt;
15588
+ if (watchPlay && client) {
15589
+ try {
15590
+ attempt = await client.beginWorkingPlaySave(watchPlay);
15591
+ } catch (error) {
15592
+ console.error(
15593
+ `Could not open the Play save status: ${error instanceof Error ? error.message : String(error)}`
15594
+ );
15595
+ return 5;
15596
+ }
15597
+ }
15598
+ const reportSave = async (action) => {
15599
+ if (!watchPlay || !client || !attempt) return;
15600
+ try {
15601
+ await client.finishWorkingPlaySave(watchPlay, attempt.attemptId, action);
15602
+ } catch (error) {
15603
+ console.error(
15604
+ `Could not update the Play save status: ${error instanceof Error ? error.message : String(error)}`
15605
+ );
15606
+ }
15607
+ };
15577
15608
  let graph;
15578
15609
  try {
15579
15610
  graph = await traceCliSpan(
@@ -15583,10 +15614,17 @@ async function handlePlaySave(args) {
15583
15614
  );
15584
15615
  assertPlayGraphAuthoring(graph);
15585
15616
  } catch (error) {
15617
+ await reportSave("invalid_source");
15586
15618
  console.error(error instanceof Error ? error.message : String(error));
15587
15619
  return 7;
15588
15620
  }
15589
15621
  const playName = graph.root.playName ?? await extractPlayName(graph.root.sourceCode, graph.root.filePath);
15622
+ if (watchPlay && parseReferencedPlayTarget(watchPlay).unqualifiedPlayName !== playName) {
15623
+ console.error(
15624
+ `The file defines ${playName}, which does not match --watch-play ${watchPlay}.`
15625
+ );
15626
+ return 7;
15627
+ }
15590
15628
  const artifactHash = graph.root.artifact.artifactHash;
15591
15629
  if (options.expectedArtifactHash && options.expectedArtifactHash !== artifactHash) {
15592
15630
  const result = {
@@ -15629,17 +15667,17 @@ async function handlePlaySave(args) {
15629
15667
  }
15630
15668
  return 0;
15631
15669
  }
15632
- const client = new DeeplineClient();
15670
+ const saveClient = client ?? new DeeplineClient();
15633
15671
  try {
15634
15672
  await traceCliSpan(
15635
15673
  "cli.play_save_compile_manifests",
15636
15674
  { targetKind: "file", nodeCount: graph.nodes.size },
15637
- () => compileBundledPlayGraphManifests(client, graph)
15675
+ () => compileBundledPlayGraphManifests(saveClient, graph)
15638
15676
  );
15639
15677
  const saved = await traceCliSpan(
15640
15678
  "cli.play_save_register_draft",
15641
15679
  { targetKind: "file", playName, artifactHash },
15642
- () => client.registerPlayArtifact({
15680
+ () => saveClient.registerPlayArtifact({
15643
15681
  name: playName,
15644
15682
  sourceCode: graph.root.sourceCode,
15645
15683
  sourceFiles: graph.root.sourceFiles,
@@ -15649,6 +15687,7 @@ async function handlePlaySave(args) {
15649
15687
  publish: false
15650
15688
  })
15651
15689
  );
15690
+ await reportSave("saved");
15652
15691
  const result = {
15653
15692
  success: true,
15654
15693
  name: playName,
@@ -15677,6 +15716,9 @@ async function handlePlaySave(args) {
15677
15716
  }
15678
15717
  return 0;
15679
15718
  } catch (error) {
15719
+ if (extractPlayValidationErrors(error).length > 0) {
15720
+ await reportSave("invalid_source");
15721
+ }
15680
15722
  console.error(error instanceof Error ? error.message : String(error));
15681
15723
  return 5;
15682
15724
  }
@@ -16662,7 +16704,7 @@ Examples:
16662
16704
  process.exitCode = await ownView();
16663
16705
  return;
16664
16706
  }
16665
- const { describeAnything } = await import("./describe-IXW3LDGC.mjs");
16707
+ const { describeAnything } = await import("./describe-AWJUXE2U.mjs");
16666
16708
  process.exitCode = await describeAnything(
16667
16709
  name,
16668
16710
  {
@@ -16706,16 +16748,21 @@ Notes:
16706
16748
 
16707
16749
  Examples:
16708
16750
  deepline plays save ./company-research.play.ts
16751
+ deepline plays save ./company-research.play.ts --watch-play company-research
16709
16752
  deepline plays save ./company-research.play.ts --dry-run
16710
16753
  deepline plays publish ./company-research.play.ts
16711
16754
  `
16712
16755
  ).option("--expected-artifact <hash>", "Require the checked artifact hash").option(
16756
+ "--watch-play <reference>",
16757
+ "Show rejected saves on your open working canvas"
16758
+ ).option(
16713
16759
  "--dry-run",
16714
16760
  "Bundle and show the planned draft save without mutation"
16715
16761
  ).option("--json", "Emit JSON output").action(async (file, options) => {
16716
16762
  process.exitCode = await handlePlaySave([
16717
16763
  file,
16718
16764
  ...options.expectedArtifact ? ["--expected-artifact", options.expectedArtifact] : [],
16765
+ ...options.watchPlay ? ["--watch-play", options.watchPlay] : [],
16719
16766
  ...options.dryRun ? ["--dry-run"] : [],
16720
16767
  ...options.json ? ["--json"] : []
16721
16768
  ]);
@@ -17000,7 +17047,7 @@ Examples:
17000
17047
  new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
17001
17048
  ).action(async (runId, options) => {
17002
17049
  if (TOOL_EXECUTION_ID.test(runId)) {
17003
- const { getToolExecutionReceipt } = await import("./tools-YXCXZ4ZD.mjs");
17050
+ const { getToolExecutionReceipt } = await import("./tools-CDPOID7V.mjs");
17004
17051
  process.exitCode = await getToolExecutionReceipt(runId, {
17005
17052
  receiptJson: options.json !== void 0
17006
17053
  });