deepline 0.3.479 → 0.3.481

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 (152) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +35 -1
  2. package/dist/bundling-sources/sdk/src/http-core.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/plays/run-request.ts +54 -31
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/monitors/legacy-radar-forward-routes.ts +569 -0
  6. package/dist/bundling-sources/shared_libs/monitors/legacy-radar-retirement.ts +451 -0
  7. package/dist/bundling-sources/shared_libs/monitors/package.json +5 -1
  8. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/runtime-array-input-receipts.ts +13 -6
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +2 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +125 -22
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +16 -53
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +34 -48
  14. package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +44 -0
  15. package/dist/cli/auth-EQWYBNIE.js +43 -0
  16. package/dist/cli/{auth-D7DYB57R.mjs → auth-FYY65LYD.mjs} +7 -5
  17. package/dist/cli/{billing-DT4JT4QN.mjs → billing-3MELYUTI.mjs} +7 -7
  18. package/dist/cli/{billing-DHGSNM6E.js → billing-TROHWBSE.js} +80 -80
  19. package/dist/cli/{chunk-GQCH6Y7W.js → chunk-27BYXQU4.js} +1 -1
  20. package/dist/cli/{chunk-CK2Q6AWR.js → chunk-4CIVXXSU.js} +26 -26
  21. package/dist/cli/{chunk-G6V34EQ5.js → chunk-5ONCPLWC.js} +16 -16
  22. package/dist/cli/{chunk-27GSBTWD.js → chunk-6VKDKATO.js} +96 -65
  23. package/dist/cli/{chunk-LXYDN5FE.js → chunk-6WWBVWFQ.js} +7 -7
  24. package/dist/cli/{chunk-JNFNNJ75.mjs → chunk-6ZMUAASO.mjs} +4 -4
  25. package/dist/cli/{chunk-6C3QY5JS.mjs → chunk-75LUK4E5.mjs} +1 -1
  26. package/dist/cli/{chunk-JKUFOP7M.mjs → chunk-7VVC4RZX.mjs} +1 -1
  27. package/dist/cli/{chunk-N7E25EU2.mjs → chunk-ASQJUUGB.mjs} +5 -5
  28. package/dist/cli/{chunk-FKEZ5DIJ.mjs → chunk-BJ5UFTWL.mjs} +28 -7
  29. package/dist/cli/{chunk-W4HIOBQQ.js → chunk-BJMEXKZY.js} +2 -2
  30. package/dist/cli/{chunk-YC2QBF2W.mjs → chunk-C7UIUKW6.mjs} +2 -2
  31. package/dist/cli/{chunk-AKVNUNL7.js → chunk-CM3KC74A.js} +3 -3
  32. package/dist/cli/{chunk-JFGOMQW6.mjs → chunk-CS2P3EQS.mjs} +2 -2
  33. package/dist/cli/{chunk-VKBLXJCK.js → chunk-CUSWZTS7.js} +8 -8
  34. package/dist/cli/{chunk-GSULE54L.js → chunk-D3UHG54V.js} +199 -178
  35. package/dist/cli/{chunk-3PHOAUU4.mjs → chunk-EJTU6X6C.mjs} +41 -10
  36. package/dist/cli/{chunk-AFHFZU5V.js → chunk-EPEAQA6O.js} +37 -37
  37. package/dist/cli/{chunk-K5RRY7DJ.mjs → chunk-EPZSX7FZ.mjs} +4 -4
  38. package/dist/cli/{chunk-27PXHD2P.mjs → chunk-FXLMDAAY.mjs} +1 -1
  39. package/dist/cli/chunk-GBAT5NMI.mjs +789 -0
  40. package/dist/cli/{chunk-Y2MVDYV6.js → chunk-GJOKFJ2Y.js} +10 -10
  41. package/dist/cli/{chunk-JDMR33HS.js → chunk-GVAENVIG.js} +28 -19
  42. package/dist/cli/{chunk-NELMCOWK.mjs → chunk-HNRELVCS.mjs} +27 -18
  43. package/dist/cli/{chunk-GICSDK72.mjs → chunk-HXG7TYRS.mjs} +2 -2
  44. package/dist/cli/{chunk-EMVWC5LP.js → chunk-J4D3PCQ2.js} +5 -5
  45. package/dist/cli/{chunk-6QIXWFPO.mjs → chunk-JE27DTQM.mjs} +3 -3
  46. package/dist/cli/{chunk-3GIM7XRH.js → chunk-KDU6TSGE.js} +2 -2
  47. package/dist/cli/{chunk-JMCTNS6S.js → chunk-KPXP2DIY.js} +7 -9
  48. package/dist/cli/chunk-KQSTV4MW.js +789 -0
  49. package/dist/cli/{chunk-RJVUILW4.mjs → chunk-LISZBUA7.mjs} +2 -2
  50. package/dist/cli/{chunk-D6MLXRMQ.mjs → chunk-LTOY2GUJ.mjs} +10 -10
  51. package/dist/cli/{chunk-FBEXJVQL.js → chunk-MKDWU3ZI.js} +93 -93
  52. package/dist/cli/{chunk-UOYA35OT.mjs → chunk-N5267HEH.mjs} +1 -1
  53. package/dist/cli/{chunk-XDFARN7U.mjs → chunk-PDJS6LFI.mjs} +2 -1
  54. package/dist/cli/{chunk-J5VDE42G.js → chunk-R4EFW2I2.js} +3 -3
  55. package/dist/cli/{chunk-GONL4EFT.mjs → chunk-RV2GB7KW.mjs} +2 -2
  56. package/dist/cli/{chunk-GZ43YXHT.mjs → chunk-S5BM6NPJ.mjs} +3 -5
  57. package/dist/cli/{chunk-PUOKABQF.mjs → chunk-S5WXSC3P.mjs} +5 -5
  58. package/dist/cli/{chunk-ZJRVHQSZ.mjs → chunk-SOGLBLMH.mjs} +4 -4
  59. package/dist/cli/{chunk-FV7WGK5X.js → chunk-SVPM2E2U.js} +5 -5
  60. package/dist/cli/{chunk-XBYW5EHY.mjs → chunk-UUGSZZZH.mjs} +1 -1
  61. package/dist/cli/{chunk-3SGA53DX.js → chunk-VBDR2DP6.js} +3 -3
  62. package/dist/cli/{chunk-O5BUFQ2P.mjs → chunk-VRAOWHXJ.mjs} +1 -1
  63. package/dist/cli/{chunk-TZCHXF4R.mjs → chunk-VTKAIGW6.mjs} +3 -3
  64. package/dist/cli/{chunk-33O2JGHE.js → chunk-WF5QE2IW.js} +17 -16
  65. package/dist/cli/{chunk-OVFCPV24.js → chunk-WICQQ7GY.js} +53 -53
  66. package/dist/cli/{chunk-W6N2S5N7.js → chunk-WTWRZ5ZI.js} +8 -8
  67. package/dist/cli/{chunk-N4M6CO5H.js → chunk-X4XZFIK6.js} +14 -14
  68. package/dist/cli/{chunk-VRZXGJXH.js → chunk-X6MEQBAT.js} +21 -21
  69. package/dist/cli/{csv-JXFOD7DJ.mjs → csv-2EG7JW7V.mjs} +4 -4
  70. package/dist/cli/{csv-DQWOZ2BL.js → csv-OUALOZBF.js} +13 -13
  71. package/dist/cli/{db-Q2OAAXRX.js → db-7BTOI6YB.js} +28 -28
  72. package/dist/cli/{db-NOGMZAQE.mjs → db-ECDQWI2Y.mjs} +7 -7
  73. package/dist/cli/describe-EXSH6OZD.js +48 -0
  74. package/dist/cli/{describe-VKZTZLX6.mjs → describe-KO6WKQIB.mjs} +18 -18
  75. package/dist/cli/describe-core.d.mts +2 -2
  76. package/dist/cli/describe-core.d.ts +2 -2
  77. package/dist/cli/{executions-XU3JMNI3.mjs → executions-3VMFBZT4.mjs} +7 -7
  78. package/dist/cli/{executions-B3GDZ4GQ.js → executions-VZSG3F3E.js} +9 -9
  79. package/dist/cli/{feedback-5IW3ZKRP.js → feedback-ASKBWRXR.js} +8 -8
  80. package/dist/cli/{feedback-R5UQXINE.mjs → feedback-SN7AVALN.mjs} +4 -4
  81. package/dist/cli/{git-7B4H7VEL.mjs → git-W2DZXEAY.mjs} +5 -5
  82. package/dist/cli/git-X2XUKYYX.js +25 -0
  83. package/dist/cli/index.js +167 -144
  84. package/dist/cli/index.mjs +73 -50
  85. package/dist/cli/{legacy-noops-AVT6T5QI.js → legacy-noops-6KOC6LV7.js} +8 -8
  86. package/dist/cli/{legacy-noops-KY7JAALE.mjs → legacy-noops-R2SML7ED.mjs} +5 -5
  87. package/dist/cli/{monitors-G7L7AFXR.mjs → monitors-4VGZGJBT.mjs} +8 -8
  88. package/dist/cli/{monitors-GZB6CWK2.js → monitors-OJXDYU4G.js} +92 -92
  89. package/dist/cli/{org-ZHHKAPCE.js → org-AELMZFUT.js} +73 -73
  90. package/dist/cli/{org-QDUBOQTH.mjs → org-UGN5ZG2Y.mjs} +7 -7
  91. package/dist/cli/{pages-5P3SPMN5.js → pages-L26N7MK3.js} +18 -18
  92. package/dist/cli/{pages-Q4WGQCST.mjs → pages-ZYPAAYSS.mjs} +7 -7
  93. package/dist/cli/{play-WRSHD4RE.mjs → play-ENYB7X4S.mjs} +125 -53
  94. package/dist/cli/{play-IRLKESZB.js → play-VTZWB3N5.js} +620 -548
  95. package/dist/cli/{providers-7CQUHS57.mjs → providers-BZQTVAQG.mjs} +7 -7
  96. package/dist/cli/{providers-LKEYLN6D.js → providers-HWBY6MGQ.js} +10 -10
  97. package/dist/cli/{quickstart-KS45M5SR.js → quickstart-D54IJ3PX.js} +6 -6
  98. package/dist/cli/{quickstart-I6NYGMEE.mjs → quickstart-SSQJDWPB.mjs} +4 -4
  99. package/dist/cli/{run-BLMOBNAN.js → run-45NKE7UY.js} +37 -37
  100. package/dist/cli/{run-AZETCL7R.mjs → run-FR3TPYT3.mjs} +23 -23
  101. package/dist/cli/{search-EEKEP67Y.mjs → search-CZCWSR5L.mjs} +8 -8
  102. package/dist/cli/search-V2GJKQQQ.js +32 -0
  103. package/dist/cli/{secrets-M6NU3TD2.js → secrets-KJ5ZEDWT.js} +16 -16
  104. package/dist/cli/{secrets-HAULG2EW.mjs → secrets-KKK55B4Y.mjs} +7 -7
  105. package/dist/cli/{sessions-5MB4XKOK.mjs → sessions-2YKA54PH.mjs} +5 -5
  106. package/dist/cli/{sessions-DSR5AHIA.js → sessions-QCNPUTDZ.js} +6 -6
  107. package/dist/cli/{settings-JUQP4HYQ.mjs → settings-4NI2AS5V.mjs} +12 -12
  108. package/dist/cli/{settings-6US327NQ.js → settings-KM3LCPWD.js} +79 -79
  109. package/dist/cli/{setup-JRH4UC47.mjs → setup-BZF3M54I.mjs} +33 -18
  110. package/dist/cli/{setup-5ZRSEQUD.js → setup-V5MTS2AA.js} +67 -52
  111. package/dist/cli/skills-CRFYW767.js +33 -0
  112. package/dist/cli/{skills-HFOZ5WDH.mjs → skills-NXYNB3LP.mjs} +7 -7
  113. package/dist/cli/{tools-CJEBZNPB.mjs → tools-57MWFRIZ.mjs} +17 -17
  114. package/dist/cli/tools-Q662HPVJ.js +55 -0
  115. package/dist/cli/{update-VQJEPAAK.mjs → update-QM6H677U.mjs} +9 -9
  116. package/dist/cli/update-TYHKF7F5.js +33 -0
  117. package/dist/cli/{workflow-EYWE3T75.mjs → workflow-NHYDIUWY.mjs} +8 -8
  118. package/dist/cli/{workflow-NKPDRZOP.js → workflow-TGEC4ITO.js} +18 -18
  119. package/dist/{client-B9N1bcGc.d.mts → client-DJ3r8VQJ.d.mts} +1 -1
  120. package/dist/{client-Btw075Hq.d.ts → client-JPSNljtj.d.ts} +1 -1
  121. package/dist/{client-core-TulbIeRB.d.mts → client-core-3SJlNsKU.d.mts} +21 -2
  122. package/dist/{client-core-DvGWlwtX.d.ts → client-core-rCoQ5Xz3.d.ts} +21 -2
  123. package/dist/index.d.mts +3 -3
  124. package/dist/index.d.ts +3 -3
  125. package/dist/index.js +10 -10
  126. package/dist/index.mjs +7 -7
  127. package/dist/install-integrity.json +106 -104
  128. package/dist/plays/bundle-play-file.mjs +5426 -12
  129. package/dist/plays/play-description.d.mts +1 -1
  130. package/dist/plays/play-description.d.ts +1 -1
  131. package/dist/plays/run-request.d.mts +1 -1
  132. package/dist/plays/run-request.d.ts +1 -1
  133. package/dist/plays/run-request.js +4 -2
  134. package/dist/plays/run-request.mjs +3 -1
  135. package/dist/release.d.mts +1 -1
  136. package/dist/release.d.ts +1 -1
  137. package/dist/release.js +2 -2
  138. package/dist/release.mjs +1 -1
  139. package/dist/server.d.mts +2 -2
  140. package/dist/server.d.ts +2 -2
  141. package/dist/server.js +6 -6
  142. package/dist/server.mjs +4 -4
  143. package/package.json +1 -1
  144. package/dist/cli/auth-MZDFNRPG.js +0 -41
  145. package/dist/cli/chunk-7UFFWPQ2.js +0 -6188
  146. package/dist/cli/chunk-ZBSUXXZS.mjs +0 -6188
  147. package/dist/cli/describe-THHHNUEA.js +0 -48
  148. package/dist/cli/git-BX27JAW4.js +0 -25
  149. package/dist/cli/search-PEQXXY2B.js +0 -32
  150. package/dist/cli/skills-P67KCVDR.js +0 -33
  151. package/dist/cli/tools-PDBEAI22.js +0 -55
  152. package/dist/cli/update-G6DI3BQW.js +0 -33
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkFBEXJVQLjs = require('./chunk-FBEXJVQL.js');
3
+ var _chunkMKDWU3ZIjs = require('./chunk-MKDWU3ZI.js');
4
4
 
5
5
 
6
- var _chunkJ5VDE42Gjs = require('./chunk-J5VDE42G.js');
6
+ var _chunkR4EFW2I2js = require('./chunk-R4EFW2I2.js');
7
7
 
8
8
 
9
9
 
@@ -14,10 +14,10 @@ var _chunkAK7UKQ5Rjs = require('./chunk-AK7UKQ5R.js');
14
14
  var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
15
15
 
16
16
 
17
- var _chunkEMVWC5LPjs = require('./chunk-EMVWC5LP.js');
17
+ var _chunkJ4D3PCQ2js = require('./chunk-J4D3PCQ2.js');
18
18
 
19
19
 
20
- var _chunkLXYDN5FEjs = require('./chunk-LXYDN5FE.js');
20
+ var _chunk6WWBVWFQjs = require('./chunk-6WWBVWFQ.js');
21
21
 
22
22
  // src/cli/commands/describe.ts
23
23
  var _fs = require('fs');
@@ -26,16 +26,16 @@ function nothingNamed(name) {
26
26
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
27
27
  }
28
28
  function findNamed2(name, options) {
29
- return _chunkAK7UKQ5Rjs.findNamed.call(void 0, name, options, _chunkAK7UKQ5Rjs.describeLookupsFor.call(void 0, new (0, _chunkEMVWC5LPjs.DeeplineClient)()));
29
+ return _chunkAK7UKQ5Rjs.findNamed.call(void 0, name, options, _chunkAK7UKQ5Rjs.describeLookupsFor.call(void 0, new (0, _chunkJ4D3PCQ2js.DeeplineClient)()));
30
30
  }
31
31
  async function describeAnything(name, options, onMissing) {
32
- const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
32
+ const client = new (0, _chunkJ4D3PCQ2js.DeeplineClient)();
33
33
  const lookups = _chunkAK7UKQ5Rjs.describeLookupsFor.call(void 0, client);
34
34
  const outcome = await _chunkAK7UKQ5Rjs.describeName.call(void 0, name, options, {
35
35
  ...lookups,
36
36
  // `tools describe` has already fetched the tool for its compatibility check.
37
37
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
38
- seedStarterScript: _chunkFBEXJVQLjs.seedToolListScript
38
+ seedStarterScript: _chunkMKDWU3ZIjs.seedToolListScript
39
39
  });
40
40
  if (outcome.status === "missing") {
41
41
  if (onMissing) return onMissing();
@@ -60,18 +60,18 @@ function deliver(envelope, lines, { json, out }) {
60
60
  ` : text;
61
61
  _fs.writeFileSync.call(void 0, path, content);
62
62
  const bytes = Buffer.byteLength(content);
63
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
63
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
64
64
  { path, bytes },
65
65
  { json, text: `Wrote ${path} (${bytes} bytes)
66
66
  ` }
67
67
  );
68
68
  return 0;
69
69
  }
70
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, envelope, { json, text });
70
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0, envelope, { json, text });
71
71
  return 0;
72
72
  }
73
73
  function registerDescribeCommand(program) {
74
- _chunkJ5VDE42Gjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
74
+ _chunkR4EFW2I2js.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
75
75
  "Describe anything search returns: a tool, monitor type, or play."
76
76
  ).addHelpText(
77
77
  "after",
@@ -126,24 +126,7 @@ function buildPlayRunStartBody(request) {
126
126
  };
127
127
  }
128
128
  async function preparePlayRunAdmission(http, request, onSubmission, options) {
129
- let capability = null;
130
- if (http.get) {
131
- try {
132
- capability = await http.get(PLAY_RUN_START_PATH, options);
133
- } catch (error) {
134
- if (!(error instanceof _chunkDIAWYWT5js.DeeplineError) || ![404, 405].includes(_nullishCoalesce(error.statusCode, () => ( 0))))
135
- throw error;
136
- }
137
- if (capability && !["caller-intent-v1", "unsupported"].includes(
138
- _nullishCoalesce(capability.admissionContract, () => ( ""))
139
- )) {
140
- throw new (0, _chunkDIAWYWT5js.DeeplineError)(
141
- "The server admission capability response is unknown; execution was not submitted.",
142
- 503,
143
- "PLAY_RUN_ADMISSION_CAPABILITY_UNKNOWN"
144
- );
145
- }
146
- }
129
+ const capability = options && Object.hasOwn(options, "admissionCapability") ? await options.admissionCapability : await readPlayRunAdmissionCapability(http, options);
147
130
  const supportsCallerIntent = _optionalChain([capability, 'optionalAccess', _5 => _5.admissionContract]) === "caller-intent-v1";
148
131
  _optionalChain([options, 'optionalAccess', _6 => _6.signal, 'optionalAccess', _7 => _7.throwIfAborted, 'call', _8 => _8()]);
149
132
  if (supportsCallerIntent && (!_optionalChain([capability, 'optionalAccess', _9 => _9.orgId]) || request.admissionOrgId && request.admissionOrgId !== capability.orgId)) {
@@ -214,6 +197,31 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
214
197
  }
215
198
  return { body: submittedBody, workflowId, supportsCallerIntent };
216
199
  }
200
+ async function readPlayRunAdmissionCapability(http, options) {
201
+ let capability = null;
202
+ if (http.get) {
203
+ try {
204
+ capability = await http.get(
205
+ PLAY_RUN_START_PATH,
206
+ options
207
+ );
208
+ } catch (error) {
209
+ if (!(error instanceof _chunkDIAWYWT5js.DeeplineError) || ![404, 405].includes(_nullishCoalesce(error.statusCode, () => ( 0)))) {
210
+ throw error;
211
+ }
212
+ }
213
+ if (capability && !["caller-intent-v1", "unsupported"].includes(
214
+ _nullishCoalesce(capability.admissionContract, () => ( ""))
215
+ )) {
216
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
217
+ "The server admission capability response is unknown; execution was not submitted.",
218
+ 503,
219
+ "PLAY_RUN_ADMISSION_CAPABILITY_UNKNOWN"
220
+ );
221
+ }
222
+ }
223
+ return capability;
224
+ }
217
225
  async function startPlayRun(http, request, headers, options) {
218
226
  const {
219
227
  body: submittedBody,
@@ -731,4 +739,5 @@ function createSessionPlayRunHttp(fetchImpl = (...args) => fetch(...args)) {
731
739
 
732
740
 
733
741
 
734
- exports.isTerminalPlayRunLifecycleStatus = isTerminalPlayRunLifecycleStatus; exports.decodePlayRunPublicStatus = decodePlayRunPublicStatus; exports.PLAY_RUN_START_PATH = PLAY_RUN_START_PATH; exports.CLI_PLAY_RUN_START_PATH = CLI_PLAY_RUN_START_PATH; exports.CLI_PLAY_RUN_SUPPORTED_HEADER = CLI_PLAY_RUN_SUPPORTED_HEADER; exports.PLAY_RUN_START_STREAM_PATH = PLAY_RUN_START_STREAM_PATH; exports.CLI_PLAY_RUN_START_STREAM_PATH = CLI_PLAY_RUN_START_STREAM_PATH; exports.PLAY_FILES_STAGE_PATH = PLAY_FILES_STAGE_PATH; exports.PLAY_FILES_STAGE_MINT_PATH = PLAY_FILES_STAGE_MINT_PATH; exports.CliPlayAdmissionUnsupportedError = CliPlayAdmissionUnsupportedError; exports.buildPlayRunStartBody = buildPlayRunStartBody; exports.preparePlayRunAdmission = preparePlayRunAdmission; exports.startPlayRun = startPlayRun; exports.isPlayRunPackage = isPlayRunPackage; exports.normalizePlayRunStart = normalizePlayRunStart; exports.buildNamedPlayRunRequest = buildNamedPlayRunRequest; exports.CSV_DATA_INPUT_KEY = CSV_DATA_INPUT_KEY; exports.fileInputBindingsFromPlaySchema = fileInputBindingsFromPlaySchema; exports.fileInputBindingsFromStaticPipeline = fileInputBindingsFromStaticPipeline; exports.playRunFileInputBindings = playRunFileInputBindings; exports.getDottedInputValue = getDottedInputValue; exports.setDottedInputValue = setDottedInputValue; exports.webStagedFileCodec = webStagedFileCodec; exports.stagedFileContentType = stagedFileContentType; exports.createStagedFileUpload = createStagedFileUpload; exports.STAGE_LEGACY_MULTIPART_MAX_BYTES = STAGE_LEGACY_MULTIPART_MAX_BYTES; exports.mintStagedPlayFileUploads = mintStagedPlayFileUploads; exports.stagePlayFiles = stagePlayFiles; exports.stageFileInputs = stageFileInputs; exports.createSessionPlayRunHttp = createSessionPlayRunHttp;
742
+
743
+ exports.isTerminalPlayRunLifecycleStatus = isTerminalPlayRunLifecycleStatus; exports.decodePlayRunPublicStatus = decodePlayRunPublicStatus; exports.PLAY_RUN_START_PATH = PLAY_RUN_START_PATH; exports.CLI_PLAY_RUN_START_PATH = CLI_PLAY_RUN_START_PATH; exports.CLI_PLAY_RUN_SUPPORTED_HEADER = CLI_PLAY_RUN_SUPPORTED_HEADER; exports.PLAY_RUN_START_STREAM_PATH = PLAY_RUN_START_STREAM_PATH; exports.CLI_PLAY_RUN_START_STREAM_PATH = CLI_PLAY_RUN_START_STREAM_PATH; exports.PLAY_FILES_STAGE_PATH = PLAY_FILES_STAGE_PATH; exports.PLAY_FILES_STAGE_MINT_PATH = PLAY_FILES_STAGE_MINT_PATH; exports.CliPlayAdmissionUnsupportedError = CliPlayAdmissionUnsupportedError; exports.buildPlayRunStartBody = buildPlayRunStartBody; exports.preparePlayRunAdmission = preparePlayRunAdmission; exports.readPlayRunAdmissionCapability = readPlayRunAdmissionCapability; exports.startPlayRun = startPlayRun; exports.isPlayRunPackage = isPlayRunPackage; exports.normalizePlayRunStart = normalizePlayRunStart; exports.buildNamedPlayRunRequest = buildNamedPlayRunRequest; exports.CSV_DATA_INPUT_KEY = CSV_DATA_INPUT_KEY; exports.fileInputBindingsFromPlaySchema = fileInputBindingsFromPlaySchema; exports.fileInputBindingsFromStaticPipeline = fileInputBindingsFromStaticPipeline; exports.playRunFileInputBindings = playRunFileInputBindings; exports.getDottedInputValue = getDottedInputValue; exports.setDottedInputValue = setDottedInputValue; exports.webStagedFileCodec = webStagedFileCodec; exports.stagedFileContentType = stagedFileContentType; exports.createStagedFileUpload = createStagedFileUpload; exports.STAGE_LEGACY_MULTIPART_MAX_BYTES = STAGE_LEGACY_MULTIPART_MAX_BYTES; exports.mintStagedPlayFileUploads = mintStagedPlayFileUploads; exports.stagePlayFiles = stagePlayFiles; exports.stageFileInputs = stageFileInputs; exports.createSessionPlayRunHttp = createSessionPlayRunHttp;
@@ -126,24 +126,7 @@ function buildPlayRunStartBody(request) {
126
126
  };
127
127
  }
128
128
  async function preparePlayRunAdmission(http, request, onSubmission, options) {
129
- let capability = null;
130
- if (http.get) {
131
- try {
132
- capability = await http.get(PLAY_RUN_START_PATH, options);
133
- } catch (error) {
134
- if (!(error instanceof DeeplineError) || ![404, 405].includes(error.statusCode ?? 0))
135
- throw error;
136
- }
137
- if (capability && !["caller-intent-v1", "unsupported"].includes(
138
- capability.admissionContract ?? ""
139
- )) {
140
- throw new DeeplineError(
141
- "The server admission capability response is unknown; execution was not submitted.",
142
- 503,
143
- "PLAY_RUN_ADMISSION_CAPABILITY_UNKNOWN"
144
- );
145
- }
146
- }
129
+ const capability = options && Object.hasOwn(options, "admissionCapability") ? await options.admissionCapability : await readPlayRunAdmissionCapability(http, options);
147
130
  const supportsCallerIntent = capability?.admissionContract === "caller-intent-v1";
148
131
  options?.signal?.throwIfAborted();
149
132
  if (supportsCallerIntent && (!capability?.orgId || request.admissionOrgId && request.admissionOrgId !== capability.orgId)) {
@@ -214,6 +197,31 @@ async function preparePlayRunAdmission(http, request, onSubmission, options) {
214
197
  }
215
198
  return { body: submittedBody, workflowId, supportsCallerIntent };
216
199
  }
200
+ async function readPlayRunAdmissionCapability(http, options) {
201
+ let capability = null;
202
+ if (http.get) {
203
+ try {
204
+ capability = await http.get(
205
+ PLAY_RUN_START_PATH,
206
+ options
207
+ );
208
+ } catch (error) {
209
+ if (!(error instanceof DeeplineError) || ![404, 405].includes(error.statusCode ?? 0)) {
210
+ throw error;
211
+ }
212
+ }
213
+ if (capability && !["caller-intent-v1", "unsupported"].includes(
214
+ capability.admissionContract ?? ""
215
+ )) {
216
+ throw new DeeplineError(
217
+ "The server admission capability response is unknown; execution was not submitted.",
218
+ 503,
219
+ "PLAY_RUN_ADMISSION_CAPABILITY_UNKNOWN"
220
+ );
221
+ }
222
+ }
223
+ return capability;
224
+ }
217
225
  async function startPlayRun(http, request, headers, options) {
218
226
  const {
219
227
  body: submittedBody,
@@ -713,6 +721,7 @@ export {
713
721
  CliPlayAdmissionUnsupportedError,
714
722
  buildPlayRunStartBody,
715
723
  preparePlayRunAdmission,
724
+ readPlayRunAdmissionCapability,
716
725
  startPlayRun,
717
726
  isPlayRunPackage,
718
727
  normalizePlayRunStart,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-YC2QBF2W.mjs";
4
+ } from "./chunk-C7UIUKW6.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-XDFARN7U.mjs";
7
+ } from "./chunk-PDJS6LFI.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -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 _chunkGSULE54Ljs = require('./chunk-GSULE54L.js');
3
+ var _chunkD3UHG54Vjs = require('./chunk-D3UHG54V.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk3SGA53DXjs = require('./chunk-3SGA53DX.js');
7
+ var _chunkVBDR2DP6js = require('./chunk-VBDR2DP6.js');
8
8
 
9
9
  // src/client.ts
10
- var DeeplineClient2 = class extends _chunkGSULE54Ljs.DeeplineClient {
10
+ var DeeplineClient2 = class extends _chunkD3UHG54Vjs.DeeplineClient {
11
11
  constructor(options) {
12
- const config = _chunk3SGA53DXjs.resolveConfig.call(void 0, options);
13
- super(config, new (0, _chunk3SGA53DXjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
12
+ const config = _chunkVBDR2DP6js.resolveConfig.call(void 0, options);
13
+ super(config, new (0, _chunkVBDR2DP6js.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
14
14
  }
15
15
  };
16
16
 
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-LJ5747UC.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-RJVUILW4.mjs";
6
+ } from "./chunk-LISZBUA7.mjs";
7
7
  import {
8
8
  printCommandEnvelope,
9
9
  renderCommandEnvelopeText
10
- } from "./chunk-YC2QBF2W.mjs";
10
+ } from "./chunk-C7UIUKW6.mjs";
11
11
  import {
12
12
  resolveConfig,
13
13
  sdkCliStateDirPath
14
- } from "./chunk-O5BUFQ2P.mjs";
14
+ } from "./chunk-VRAOWHXJ.mjs";
15
15
  import {
16
16
  __commonJS,
17
17
  __toESM
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkOVFCPV24js = require('./chunk-OVFCPV24.js');
3
+ var _chunkWICQQ7GYjs = require('./chunk-WICQQ7GY.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkOVFCPV24js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkWICQQ7GYjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -1,30 +1,28 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkW4HIOBQQjs = require('./chunk-W4HIOBQQ.js');
3
+ var _chunkBJMEXKZYjs = require('./chunk-BJMEXKZY.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkOVFCPV24js = require('./chunk-OVFCPV24.js');
8
+ var _chunkWICQQ7GYjs = require('./chunk-WICQQ7GY.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
12
- return command === "plays run" && args.includes("--json") && !args.includes("--no-wait") && !args.some(
13
- (arg) => arg === "--run-id-file" || arg.startsWith("--run-id-file=")
14
- );
12
+ return command === "plays run" && args.includes("--json") && !args.includes("--no-wait");
15
13
  }
16
14
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured") {
17
- if (maintenancePolicy !== "off") _chunkOVFCPV24js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
18
- const compatibility = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
15
+ if (maintenancePolicy !== "off") _chunkWICQQ7GYjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
16
+ const compatibility = await _chunkBJMEXKZYjs.traceCliSpan.call(void 0,
19
17
  "cli.sdk_compatibility",
20
18
  { baseUrl, command: "plays run" },
21
- () => _chunkOVFCPV24js.checkSdkCompatibility.call(void 0, baseUrl, {
19
+ () => _chunkWICQQ7GYjs.checkSdkCompatibility.call(void 0, baseUrl, {
22
20
  command: "plays run",
23
21
  persistCache: maintenancePolicy !== "off"
24
22
  })
25
23
  );
26
24
  if (compatibility.error) throw compatibility.error;
27
- _chunkOVFCPV24js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
25
+ _chunkWICQQ7GYjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
28
26
  quietAdvisory: true
29
27
  });
30
28
  }