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.
- package/dist/bundling-sources/sdk/src/client-core.ts +35 -1
- package/dist/bundling-sources/sdk/src/http-core.ts +2 -0
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +54 -31
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/legacy-radar-forward-routes.ts +569 -0
- package/dist/bundling-sources/shared_libs/monitors/legacy-radar-retirement.ts +451 -0
- package/dist/bundling-sources/shared_libs/monitors/package.json +5 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-array-input-receipts.ts +13 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +125 -22
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +16 -53
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +34 -48
- package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +44 -0
- package/dist/cli/auth-EQWYBNIE.js +43 -0
- package/dist/cli/{auth-D7DYB57R.mjs → auth-FYY65LYD.mjs} +7 -5
- package/dist/cli/{billing-DT4JT4QN.mjs → billing-3MELYUTI.mjs} +7 -7
- package/dist/cli/{billing-DHGSNM6E.js → billing-TROHWBSE.js} +80 -80
- package/dist/cli/{chunk-GQCH6Y7W.js → chunk-27BYXQU4.js} +1 -1
- package/dist/cli/{chunk-CK2Q6AWR.js → chunk-4CIVXXSU.js} +26 -26
- package/dist/cli/{chunk-G6V34EQ5.js → chunk-5ONCPLWC.js} +16 -16
- package/dist/cli/{chunk-27GSBTWD.js → chunk-6VKDKATO.js} +96 -65
- package/dist/cli/{chunk-LXYDN5FE.js → chunk-6WWBVWFQ.js} +7 -7
- package/dist/cli/{chunk-JNFNNJ75.mjs → chunk-6ZMUAASO.mjs} +4 -4
- package/dist/cli/{chunk-6C3QY5JS.mjs → chunk-75LUK4E5.mjs} +1 -1
- package/dist/cli/{chunk-JKUFOP7M.mjs → chunk-7VVC4RZX.mjs} +1 -1
- package/dist/cli/{chunk-N7E25EU2.mjs → chunk-ASQJUUGB.mjs} +5 -5
- package/dist/cli/{chunk-FKEZ5DIJ.mjs → chunk-BJ5UFTWL.mjs} +28 -7
- package/dist/cli/{chunk-W4HIOBQQ.js → chunk-BJMEXKZY.js} +2 -2
- package/dist/cli/{chunk-YC2QBF2W.mjs → chunk-C7UIUKW6.mjs} +2 -2
- package/dist/cli/{chunk-AKVNUNL7.js → chunk-CM3KC74A.js} +3 -3
- package/dist/cli/{chunk-JFGOMQW6.mjs → chunk-CS2P3EQS.mjs} +2 -2
- package/dist/cli/{chunk-VKBLXJCK.js → chunk-CUSWZTS7.js} +8 -8
- package/dist/cli/{chunk-GSULE54L.js → chunk-D3UHG54V.js} +199 -178
- package/dist/cli/{chunk-3PHOAUU4.mjs → chunk-EJTU6X6C.mjs} +41 -10
- package/dist/cli/{chunk-AFHFZU5V.js → chunk-EPEAQA6O.js} +37 -37
- package/dist/cli/{chunk-K5RRY7DJ.mjs → chunk-EPZSX7FZ.mjs} +4 -4
- package/dist/cli/{chunk-27PXHD2P.mjs → chunk-FXLMDAAY.mjs} +1 -1
- package/dist/cli/chunk-GBAT5NMI.mjs +789 -0
- package/dist/cli/{chunk-Y2MVDYV6.js → chunk-GJOKFJ2Y.js} +10 -10
- package/dist/cli/{chunk-JDMR33HS.js → chunk-GVAENVIG.js} +28 -19
- package/dist/cli/{chunk-NELMCOWK.mjs → chunk-HNRELVCS.mjs} +27 -18
- package/dist/cli/{chunk-GICSDK72.mjs → chunk-HXG7TYRS.mjs} +2 -2
- package/dist/cli/{chunk-EMVWC5LP.js → chunk-J4D3PCQ2.js} +5 -5
- package/dist/cli/{chunk-6QIXWFPO.mjs → chunk-JE27DTQM.mjs} +3 -3
- package/dist/cli/{chunk-3GIM7XRH.js → chunk-KDU6TSGE.js} +2 -2
- package/dist/cli/{chunk-JMCTNS6S.js → chunk-KPXP2DIY.js} +7 -9
- package/dist/cli/chunk-KQSTV4MW.js +789 -0
- package/dist/cli/{chunk-RJVUILW4.mjs → chunk-LISZBUA7.mjs} +2 -2
- package/dist/cli/{chunk-D6MLXRMQ.mjs → chunk-LTOY2GUJ.mjs} +10 -10
- package/dist/cli/{chunk-FBEXJVQL.js → chunk-MKDWU3ZI.js} +93 -93
- package/dist/cli/{chunk-UOYA35OT.mjs → chunk-N5267HEH.mjs} +1 -1
- package/dist/cli/{chunk-XDFARN7U.mjs → chunk-PDJS6LFI.mjs} +2 -1
- package/dist/cli/{chunk-J5VDE42G.js → chunk-R4EFW2I2.js} +3 -3
- package/dist/cli/{chunk-GONL4EFT.mjs → chunk-RV2GB7KW.mjs} +2 -2
- package/dist/cli/{chunk-GZ43YXHT.mjs → chunk-S5BM6NPJ.mjs} +3 -5
- package/dist/cli/{chunk-PUOKABQF.mjs → chunk-S5WXSC3P.mjs} +5 -5
- package/dist/cli/{chunk-ZJRVHQSZ.mjs → chunk-SOGLBLMH.mjs} +4 -4
- package/dist/cli/{chunk-FV7WGK5X.js → chunk-SVPM2E2U.js} +5 -5
- package/dist/cli/{chunk-XBYW5EHY.mjs → chunk-UUGSZZZH.mjs} +1 -1
- package/dist/cli/{chunk-3SGA53DX.js → chunk-VBDR2DP6.js} +3 -3
- package/dist/cli/{chunk-O5BUFQ2P.mjs → chunk-VRAOWHXJ.mjs} +1 -1
- package/dist/cli/{chunk-TZCHXF4R.mjs → chunk-VTKAIGW6.mjs} +3 -3
- package/dist/cli/{chunk-33O2JGHE.js → chunk-WF5QE2IW.js} +17 -16
- package/dist/cli/{chunk-OVFCPV24.js → chunk-WICQQ7GY.js} +53 -53
- package/dist/cli/{chunk-W6N2S5N7.js → chunk-WTWRZ5ZI.js} +8 -8
- package/dist/cli/{chunk-N4M6CO5H.js → chunk-X4XZFIK6.js} +14 -14
- package/dist/cli/{chunk-VRZXGJXH.js → chunk-X6MEQBAT.js} +21 -21
- package/dist/cli/{csv-JXFOD7DJ.mjs → csv-2EG7JW7V.mjs} +4 -4
- package/dist/cli/{csv-DQWOZ2BL.js → csv-OUALOZBF.js} +13 -13
- package/dist/cli/{db-Q2OAAXRX.js → db-7BTOI6YB.js} +28 -28
- package/dist/cli/{db-NOGMZAQE.mjs → db-ECDQWI2Y.mjs} +7 -7
- package/dist/cli/describe-EXSH6OZD.js +48 -0
- package/dist/cli/{describe-VKZTZLX6.mjs → describe-KO6WKQIB.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-XU3JMNI3.mjs → executions-3VMFBZT4.mjs} +7 -7
- package/dist/cli/{executions-B3GDZ4GQ.js → executions-VZSG3F3E.js} +9 -9
- package/dist/cli/{feedback-5IW3ZKRP.js → feedback-ASKBWRXR.js} +8 -8
- package/dist/cli/{feedback-R5UQXINE.mjs → feedback-SN7AVALN.mjs} +4 -4
- package/dist/cli/{git-7B4H7VEL.mjs → git-W2DZXEAY.mjs} +5 -5
- package/dist/cli/git-X2XUKYYX.js +25 -0
- package/dist/cli/index.js +167 -144
- package/dist/cli/index.mjs +73 -50
- package/dist/cli/{legacy-noops-AVT6T5QI.js → legacy-noops-6KOC6LV7.js} +8 -8
- package/dist/cli/{legacy-noops-KY7JAALE.mjs → legacy-noops-R2SML7ED.mjs} +5 -5
- package/dist/cli/{monitors-G7L7AFXR.mjs → monitors-4VGZGJBT.mjs} +8 -8
- package/dist/cli/{monitors-GZB6CWK2.js → monitors-OJXDYU4G.js} +92 -92
- package/dist/cli/{org-ZHHKAPCE.js → org-AELMZFUT.js} +73 -73
- package/dist/cli/{org-QDUBOQTH.mjs → org-UGN5ZG2Y.mjs} +7 -7
- package/dist/cli/{pages-5P3SPMN5.js → pages-L26N7MK3.js} +18 -18
- package/dist/cli/{pages-Q4WGQCST.mjs → pages-ZYPAAYSS.mjs} +7 -7
- package/dist/cli/{play-WRSHD4RE.mjs → play-ENYB7X4S.mjs} +125 -53
- package/dist/cli/{play-IRLKESZB.js → play-VTZWB3N5.js} +620 -548
- package/dist/cli/{providers-7CQUHS57.mjs → providers-BZQTVAQG.mjs} +7 -7
- package/dist/cli/{providers-LKEYLN6D.js → providers-HWBY6MGQ.js} +10 -10
- package/dist/cli/{quickstart-KS45M5SR.js → quickstart-D54IJ3PX.js} +6 -6
- package/dist/cli/{quickstart-I6NYGMEE.mjs → quickstart-SSQJDWPB.mjs} +4 -4
- package/dist/cli/{run-BLMOBNAN.js → run-45NKE7UY.js} +37 -37
- package/dist/cli/{run-AZETCL7R.mjs → run-FR3TPYT3.mjs} +23 -23
- package/dist/cli/{search-EEKEP67Y.mjs → search-CZCWSR5L.mjs} +8 -8
- package/dist/cli/search-V2GJKQQQ.js +32 -0
- package/dist/cli/{secrets-M6NU3TD2.js → secrets-KJ5ZEDWT.js} +16 -16
- package/dist/cli/{secrets-HAULG2EW.mjs → secrets-KKK55B4Y.mjs} +7 -7
- package/dist/cli/{sessions-5MB4XKOK.mjs → sessions-2YKA54PH.mjs} +5 -5
- package/dist/cli/{sessions-DSR5AHIA.js → sessions-QCNPUTDZ.js} +6 -6
- package/dist/cli/{settings-JUQP4HYQ.mjs → settings-4NI2AS5V.mjs} +12 -12
- package/dist/cli/{settings-6US327NQ.js → settings-KM3LCPWD.js} +79 -79
- package/dist/cli/{setup-JRH4UC47.mjs → setup-BZF3M54I.mjs} +33 -18
- package/dist/cli/{setup-5ZRSEQUD.js → setup-V5MTS2AA.js} +67 -52
- package/dist/cli/skills-CRFYW767.js +33 -0
- package/dist/cli/{skills-HFOZ5WDH.mjs → skills-NXYNB3LP.mjs} +7 -7
- package/dist/cli/{tools-CJEBZNPB.mjs → tools-57MWFRIZ.mjs} +17 -17
- package/dist/cli/tools-Q662HPVJ.js +55 -0
- package/dist/cli/{update-VQJEPAAK.mjs → update-QM6H677U.mjs} +9 -9
- package/dist/cli/update-TYHKF7F5.js +33 -0
- package/dist/cli/{workflow-EYWE3T75.mjs → workflow-NHYDIUWY.mjs} +8 -8
- package/dist/cli/{workflow-NKPDRZOP.js → workflow-TGEC4ITO.js} +18 -18
- package/dist/{client-B9N1bcGc.d.mts → client-DJ3r8VQJ.d.mts} +1 -1
- package/dist/{client-Btw075Hq.d.ts → client-JPSNljtj.d.ts} +1 -1
- package/dist/{client-core-TulbIeRB.d.mts → client-core-3SJlNsKU.d.mts} +21 -2
- package/dist/{client-core-DvGWlwtX.d.ts → client-core-rCoQ5Xz3.d.ts} +21 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +106 -104
- package/dist/plays/bundle-play-file.mjs +5426 -12
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/plays/run-request.js +4 -2
- package/dist/plays/run-request.mjs +3 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-MZDFNRPG.js +0 -41
- package/dist/cli/chunk-7UFFWPQ2.js +0 -6188
- package/dist/cli/chunk-ZBSUXXZS.mjs +0 -6188
- package/dist/cli/describe-THHHNUEA.js +0 -48
- package/dist/cli/git-BX27JAW4.js +0 -25
- package/dist/cli/search-PEQXXY2B.js +0 -32
- package/dist/cli/skills-P67KCVDR.js +0 -33
- package/dist/cli/tools-PDBEAI22.js +0 -55
- 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
|
|
3
|
+
var _chunkMKDWU3ZIjs = require('./chunk-MKDWU3ZI.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
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
|
|
17
|
+
var _chunkJ4D3PCQ2js = require('./chunk-J4D3PCQ2.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
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,
|
|
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,
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
70
|
+
_chunk6WWBVWFQjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
71
71
|
return 0;
|
|
72
72
|
}
|
|
73
73
|
function registerDescribeCommand(program) {
|
|
74
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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-
|
|
4
|
+
} from "./chunk-C7UIUKW6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
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
|
|
3
|
+
var _chunkD3UHG54Vjs = require('./chunk-D3UHG54V.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVBDR2DP6js = require('./chunk-VBDR2DP6.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkD3UHG54Vjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
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-
|
|
6
|
+
} from "./chunk-LISZBUA7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope,
|
|
9
9
|
renderCommandEnvelopeText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-C7UIUKW6.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig,
|
|
13
13
|
sdkCliStateDirPath
|
|
14
|
-
} from "./chunk-
|
|
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
|
|
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 =
|
|
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
|
|
3
|
+
var _chunkBJMEXKZYjs = require('./chunk-BJMEXKZY.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
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")
|
|
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")
|
|
18
|
-
const compatibility = await
|
|
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
|
-
() =>
|
|
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
|
-
|
|
25
|
+
_chunkWICQQ7GYjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
28
26
|
quietAdvisory: true
|
|
29
27
|
});
|
|
30
28
|
}
|