deepline 0.3.412 → 0.3.414
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/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +1 -1
- package/dist/cli/auth-5A3Z4LNL.js +40 -0
- package/dist/cli/{auth-5WYYDPSS.mjs → auth-5QG4TOA6.mjs} +4 -4
- package/dist/cli/{billing-W6GVSCH5.mjs → billing-JV3HCOMG.mjs} +4 -4
- package/dist/cli/{billing-Q4IGAZM4.js → billing-W7YO6VXH.js} +73 -73
- package/dist/cli/{chunk-FGSO6IAE.mjs → chunk-3PBK7PHE.mjs} +1 -1
- package/dist/cli/{chunk-YOV67QUS.js → chunk-4CPRZPRQ.js} +6 -6
- package/dist/cli/{chunk-JDIAC2BK.mjs → chunk-5S4QRLRC.mjs} +2 -2
- package/dist/cli/{chunk-GK3JUYPD.js → chunk-BXWLG55T.js} +52 -52
- package/dist/cli/{chunk-NVHWQTA4.mjs → chunk-EFD5CW26.mjs} +1 -1
- package/dist/cli/{chunk-DB3MSMSY.js → chunk-EWDWMTTD.js} +1 -1
- package/dist/cli/{chunk-FOIP7GXL.mjs → chunk-H5GTXEGI.mjs} +4 -4
- package/dist/cli/{chunk-JALHTLZM.mjs → chunk-HSYVA2JK.mjs} +2 -2
- package/dist/cli/{chunk-FHTZ3R4G.js → chunk-J2GD6PDT.js} +50 -50
- package/dist/cli/{chunk-QC32WGLZ.js → chunk-JR4FDOWR.js} +29 -22
- package/dist/cli/{chunk-RH56MSI7.mjs → chunk-L3DLOICI.mjs} +3 -3
- package/dist/cli/{chunk-M6NQSTJM.mjs → chunk-LI2LTEO4.mjs} +2 -2
- package/dist/cli/{chunk-4MGLO7M4.mjs → chunk-M2V34XOG.mjs} +5 -5
- package/dist/cli/{chunk-MBKEAA6L.mjs → chunk-MALNVMG6.mjs} +1 -1
- package/dist/cli/{chunk-TGUN2XDX.js → chunk-MH6H63HF.js} +35 -35
- package/dist/cli/{chunk-6C76C6Y2.js → chunk-N3EF5WQV.js} +10 -10
- package/dist/cli/{chunk-F33BPBKI.mjs → chunk-NOGPMTF5.mjs} +8 -8
- package/dist/cli/{chunk-6RFLMMPH.js → chunk-ODA4AZM3.js} +79 -79
- package/dist/cli/{chunk-FYDJ6NSG.js → chunk-OEHMER3F.js} +16 -16
- package/dist/cli/{chunk-7GHGSZWQ.mjs → chunk-OKKLH4QY.mjs} +2 -2
- package/dist/cli/{chunk-JA7XAQBY.js → chunk-PK55NFM5.js} +2 -2
- package/dist/cli/{chunk-7BSHG3ZS.js → chunk-QVBVSC3M.js} +8 -8
- package/dist/cli/{chunk-DM73SDE2.mjs → chunk-QWLGBYTB.mjs} +1 -1
- package/dist/cli/{chunk-OVLRV3NQ.js → chunk-RHOY4RXI.js} +26 -26
- package/dist/cli/{chunk-UXELXDNZ.mjs → chunk-RYWFCSGX.mjs} +1 -1
- package/dist/cli/{chunk-UYZBTMDO.mjs → chunk-S6ZBXS7N.mjs} +1 -1
- package/dist/cli/{chunk-FIFKM6G3.mjs → chunk-UGQLBLSZ.mjs} +24 -17
- package/dist/cli/{chunk-SYT7RJRI.js → chunk-URBOSCO6.js} +20 -20
- package/dist/cli/{chunk-TZT3V6LW.js → chunk-VJRAFJ6H.js} +2 -2
- package/dist/cli/{chunk-QZAULZCB.mjs → chunk-VOTKMPYY.mjs} +3 -3
- package/dist/cli/{chunk-S5O4LO6W.js → chunk-XPOIHVTN.js} +6 -6
- package/dist/cli/{chunk-PULUIGSP.js → chunk-ZEQ3N6SI.js} +4 -4
- package/dist/cli/{csv-GNFJ6RKP.js → csv-EO2L4TEE.js} +12 -12
- package/dist/cli/{csv-Q7PJOSBH.mjs → csv-HH5HBH2J.mjs} +3 -3
- package/dist/cli/{db-FP6S3MI2.js → db-MUXVX2BC.js} +25 -25
- package/dist/cli/{db-CKW53ES3.mjs → db-Y7CREGF3.mjs} +4 -4
- package/dist/cli/{describe-H75P2IBB.mjs → describe-4P76LT4U.mjs} +12 -12
- package/dist/cli/{describe-QIMJDGX7.js → describe-66HDJGQI.js} +16 -16
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/{executions-KDW4JKCD.js → executions-HKGTLNX5.js} +6 -6
- package/dist/cli/{executions-J45V36FF.mjs → executions-SOEK54UR.mjs} +4 -4
- package/dist/cli/{feedback-5PCSAM2L.mjs → feedback-NX64K5CR.mjs} +3 -3
- package/dist/cli/{feedback-QFLKEJR4.js → feedback-TLABM3DG.js} +7 -7
- package/dist/cli/git-K55QWG6X.js +24 -0
- package/dist/cli/{git-CR7TNVT5.mjs → git-Y25E2ZJC.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-C7I7R5LI.js → legacy-noops-EXFCXCRK.js} +7 -7
- package/dist/cli/{legacy-noops-Z3MKA3CJ.mjs → legacy-noops-RRMXZZ4S.mjs} +4 -4
- package/dist/cli/{monitors-J4CWREBM.mjs → monitors-CCKCBND7.mjs} +4 -4
- package/dist/cli/{monitors-2DXNU4BI.js → monitors-FB75AVWA.js} +84 -84
- package/dist/cli/{org-IQ3QRJKF.mjs → org-KDPXHQPC.mjs} +4 -4
- package/dist/cli/{org-CDAGTXYJ.js → org-SQQG44XI.js} +64 -64
- package/dist/cli/{play-XEP6F74B.js → play-CSKSDDQS.js} +288 -286
- package/dist/cli/{play-M5ENSOBU.mjs → play-HPQEDJEP.mjs} +15 -13
- package/dist/cli/{providers-DQRKIVHT.js → providers-7FDWGH3C.js} +7 -7
- package/dist/cli/{providers-HILDAJMX.mjs → providers-TFVCFP7J.mjs} +4 -4
- package/dist/cli/{quickstart-MCONKXHJ.mjs → quickstart-2J67PING.mjs} +3 -3
- package/dist/cli/{quickstart-ZRQ4AXWU.js → quickstart-JQRTIIIZ.js} +5 -5
- package/dist/cli/{search-UW4Y5XR5.mjs → search-7ZA7UIVM.mjs} +5 -5
- package/dist/cli/search-O3PYDXOZ.js +30 -0
- package/dist/cli/{secrets-LGQIOXNO.js → secrets-J676GB6Q.js} +13 -13
- package/dist/cli/{secrets-V7SPGC2S.mjs → secrets-ZQY5GO4T.mjs} +4 -4
- package/dist/cli/{sessions-N3FBI7JX.js → sessions-AVICKLMK.js} +5 -5
- package/dist/cli/{sessions-B2PAQIKT.mjs → sessions-OP2352DC.mjs} +4 -4
- package/dist/cli/{settings-2X4EYOZI.js → settings-EWKNDCGF.js} +75 -75
- package/dist/cli/{settings-BJCYMO6H.mjs → settings-QNILCEH6.mjs} +8 -8
- package/dist/cli/{setup-X7AN2BVT.mjs → setup-4NDX6UAI.mjs} +7 -7
- package/dist/cli/{setup-C3HP5VZ7.js → setup-IHILOCOK.js} +42 -42
- package/dist/cli/{skills-FNU3JALS.mjs → skills-H73NL3VP.mjs} +5 -5
- package/dist/cli/skills-TDL7SEFT.js +29 -0
- package/dist/cli/tools-GPFPJWWA.js +44 -0
- package/dist/cli/{tools-MYGGTMP3.mjs → tools-ZFPBY4Q2.mjs} +12 -12
- package/dist/cli/update-VR6EWUUT.js +31 -0
- package/dist/cli/{update-OEEMTBYF.mjs → update-XULEC376.mjs} +7 -7
- package/dist/cli/{workflow-6T7PM6BK.js → workflow-JX4WSBYH.js} +15 -15
- package/dist/cli/{workflow-XM3P2CDD.mjs → workflow-OD5XZHCL.mjs} +5 -5
- package/dist/{client-74k4IPh6.d.mts → client-D2A39edb.d.mts} +1 -1
- package/dist/{client-C1IK1f8c.d.ts → client-D6w0_gN1.d.ts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- 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/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/package.json +1 -1
- package/dist/cli/auth-74ZWRI3Y.js +0 -40
- package/dist/cli/git-QITMGUCQ.js +0 -24
- package/dist/cli/search-WE3HU2GC.js +0 -30
- package/dist/cli/skills-PUR6FRM3.js +0 -29
- package/dist/cli/tools-Z2HU65ZF.js +0 -44
- package/dist/cli/update-NG3YIH3A.js +0 -31
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
var _chunk27GJKC5Qjs = require('./chunk-27GJKC5Q.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJR4FDOWRjs = require('./chunk-JR4FDOWR.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkRHOY4RXIjs = require('./chunk-RHOY4RXI.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkBQR6UN3Cjs = require('./chunk-BQR6UN3C.js');
|
|
@@ -47,7 +47,7 @@ require('./chunk-VKKVSFRD.js');
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkN3EF5WQVjs = require('./chunk-N3EF5WQV.js');
|
|
51
51
|
require('./chunk-E4CABWXL.js');
|
|
52
52
|
|
|
53
53
|
|
|
@@ -68,17 +68,17 @@ require('./chunk-XDVT3GOM.js');
|
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
|
|
71
|
-
var
|
|
71
|
+
var _chunkXPOIHVTNjs = require('./chunk-XPOIHVTN.js');
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkPK55NFM5js = require('./chunk-PK55NFM5.js');
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkBXWLG55Tjs = require('./chunk-BXWLG55T.js');
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
|
|
@@ -93,16 +93,16 @@ var _chunkGK3JUYPDjs = require('./chunk-GK3JUYPD.js');
|
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
|
-
var
|
|
96
|
+
var _chunk4CPRZPRQjs = require('./chunk-4CPRZPRQ.js');
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
var
|
|
99
|
+
var _chunkZEQ3N6SIjs = require('./chunk-ZEQ3N6SI.js');
|
|
100
100
|
require('./chunk-NPBJI7RE.js');
|
|
101
101
|
require('./chunk-XNYIZMNQ.js');
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
105
|
-
require('./chunk-
|
|
105
|
+
require('./chunk-EWDWMTTD.js');
|
|
106
106
|
require('./chunk-OG64RBAC.js');
|
|
107
107
|
|
|
108
108
|
|
|
@@ -2084,7 +2084,7 @@ function resolveField(key, command) {
|
|
|
2084
2084
|
function printSettings(result, json, name) {
|
|
2085
2085
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2086
2086
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2087
|
-
|
|
2087
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
2088
2088
|
{
|
|
2089
2089
|
...result,
|
|
2090
2090
|
settings: Object.fromEntries(
|
|
@@ -2128,7 +2128,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2128
2128
|
valueSyntax: field.cli.valueSyntax,
|
|
2129
2129
|
examples: field.cli.examples
|
|
2130
2130
|
}));
|
|
2131
|
-
|
|
2131
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
2132
2132
|
{
|
|
2133
2133
|
fields: descriptions,
|
|
2134
2134
|
render: {
|
|
@@ -2153,7 +2153,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2153
2153
|
async (options, command) => {
|
|
2154
2154
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2155
2155
|
printSettings(
|
|
2156
|
-
await new (0,
|
|
2156
|
+
await new (0, _chunkN3EF5WQVjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2157
2157
|
options.json,
|
|
2158
2158
|
options.name
|
|
2159
2159
|
);
|
|
@@ -2184,7 +2184,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2184
2184
|
);
|
|
2185
2185
|
}
|
|
2186
2186
|
if (options.dryRun) {
|
|
2187
|
-
|
|
2187
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
2188
2188
|
{
|
|
2189
2189
|
dryRun: true,
|
|
2190
2190
|
play,
|
|
@@ -2205,7 +2205,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2205
2205
|
return;
|
|
2206
2206
|
}
|
|
2207
2207
|
printSettings(
|
|
2208
|
-
await new (0,
|
|
2208
|
+
await new (0, _chunkN3EF5WQVjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2209
2209
|
options.json
|
|
2210
2210
|
);
|
|
2211
2211
|
};
|
|
@@ -2231,13 +2231,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2231
2231
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2232
2232
|
{ exitCode: 2 }
|
|
2233
2233
|
);
|
|
2234
|
-
const page = await new (0,
|
|
2234
|
+
const page = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2235
2235
|
root: options.root,
|
|
2236
2236
|
limit,
|
|
2237
2237
|
cursor: options.cursor
|
|
2238
2238
|
});
|
|
2239
2239
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2240
|
-
|
|
2240
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
2241
2241
|
{
|
|
2242
2242
|
...page,
|
|
2243
2243
|
nextCommand,
|
|
@@ -2288,7 +2288,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2288
2288
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2289
2289
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2290
2290
|
};
|
|
2291
|
-
const client = new (0,
|
|
2291
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
2292
2292
|
const paths = [];
|
|
2293
2293
|
let cursor;
|
|
2294
2294
|
do {
|
|
@@ -2350,7 +2350,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2350
2350
|
moved.push(move.playName);
|
|
2351
2351
|
}
|
|
2352
2352
|
}
|
|
2353
|
-
|
|
2353
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
2354
2354
|
{
|
|
2355
2355
|
dryRun: Boolean(options.dryRun),
|
|
2356
2356
|
from: options.from,
|
|
@@ -2478,7 +2478,7 @@ function triggerLines(view) {
|
|
|
2478
2478
|
return lines;
|
|
2479
2479
|
}
|
|
2480
2480
|
function printView(view, json) {
|
|
2481
|
-
|
|
2481
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
2482
2482
|
{
|
|
2483
2483
|
...view,
|
|
2484
2484
|
render: {
|
|
@@ -2491,7 +2491,7 @@ function printView(view, json) {
|
|
|
2491
2491
|
);
|
|
2492
2492
|
}
|
|
2493
2493
|
function printResult(result, json) {
|
|
2494
|
-
|
|
2494
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
2495
2495
|
{
|
|
2496
2496
|
...result,
|
|
2497
2497
|
render: {
|
|
@@ -2521,7 +2521,7 @@ async function mutate(command, options, build) {
|
|
|
2521
2521
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2522
2522
|
}
|
|
2523
2523
|
if (options.dryRun) {
|
|
2524
|
-
|
|
2524
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
2525
2525
|
{
|
|
2526
2526
|
dryRun: true,
|
|
2527
2527
|
play: options.play,
|
|
@@ -2540,7 +2540,7 @@ async function mutate(command, options, build) {
|
|
|
2540
2540
|
return;
|
|
2541
2541
|
}
|
|
2542
2542
|
printResult(
|
|
2543
|
-
await new (0,
|
|
2543
|
+
await new (0, _chunkN3EF5WQVjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2544
2544
|
options.json
|
|
2545
2545
|
);
|
|
2546
2546
|
}
|
|
@@ -2573,7 +2573,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2573
2573
|
}).addHelpText("after", help2);
|
|
2574
2574
|
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
|
|
2575
2575
|
printView(
|
|
2576
|
-
await new (0,
|
|
2576
|
+
await new (0, _chunkN3EF5WQVjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2577
2577
|
options.json
|
|
2578
2578
|
);
|
|
2579
2579
|
});
|
|
@@ -2617,7 +2617,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2617
2617
|
if (options.auth === void 0) {
|
|
2618
2618
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2619
2619
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2620
|
-
const current = await new (0,
|
|
2620
|
+
const current = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2621
2621
|
options.play
|
|
2622
2622
|
);
|
|
2623
2623
|
return {
|
|
@@ -2694,7 +2694,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2694
2694
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2695
2695
|
"runtime.event": "Other event."
|
|
2696
2696
|
};
|
|
2697
|
-
var RUN_LOGS_KIND_HELP =
|
|
2697
|
+
var RUN_LOGS_KIND_HELP = _chunkN3EF5WQVjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2698
2698
|
kind,
|
|
2699
2699
|
description: KIND_DESCRIPTIONS[kind]
|
|
2700
2700
|
}));
|
|
@@ -2831,9 +2831,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2831
2831
|
const args = program.args;
|
|
2832
2832
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2833
2833
|
error.exitCode = 2;
|
|
2834
|
-
if (
|
|
2835
|
-
|
|
2836
|
-
Object.assign(new (0,
|
|
2834
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2835
|
+
_chunk4CPRZPRQjs.printJsonError.call(void 0,
|
|
2836
|
+
Object.assign(new (0, _chunkN3EF5WQVjs.RunEventQueryInputError)(error.message), {
|
|
2837
2837
|
exitCode: 2,
|
|
2838
2838
|
retryable: false
|
|
2839
2839
|
})
|
|
@@ -2877,14 +2877,14 @@ function parseQuery(args, resource) {
|
|
|
2877
2877
|
if (VALUE_FLAGS.has(flag)) {
|
|
2878
2878
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2879
2879
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2880
|
-
throw new (0,
|
|
2880
|
+
throw new (0, _chunkN3EF5WQVjs.RunEventQueryInputError)(
|
|
2881
2881
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2882
2882
|
);
|
|
2883
2883
|
}
|
|
2884
2884
|
if (flag === "--sum") sums.push(value);
|
|
2885
2885
|
else {
|
|
2886
2886
|
if (values[flag] !== void 0) {
|
|
2887
|
-
throw new (0,
|
|
2887
|
+
throw new (0, _chunkN3EF5WQVjs.RunEventQueryInputError)(
|
|
2888
2888
|
`${flag} may only be supplied once.`
|
|
2889
2889
|
);
|
|
2890
2890
|
}
|
|
@@ -2898,12 +2898,12 @@ function parseQuery(args, resource) {
|
|
|
2898
2898
|
}
|
|
2899
2899
|
if (arg.startsWith("-")) {
|
|
2900
2900
|
const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
|
|
2901
|
-
throw new (0,
|
|
2901
|
+
throw new (0, _chunkN3EF5WQVjs.RunEventQueryInputError)(
|
|
2902
2902
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2903
2903
|
);
|
|
2904
2904
|
}
|
|
2905
2905
|
if (runId !== void 0) {
|
|
2906
|
-
throw new (0,
|
|
2906
|
+
throw new (0, _chunkN3EF5WQVjs.RunEventQueryInputError)(
|
|
2907
2907
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2908
2908
|
);
|
|
2909
2909
|
}
|
|
@@ -2911,7 +2911,7 @@ function parseQuery(args, resource) {
|
|
|
2911
2911
|
}
|
|
2912
2912
|
if (switches.has("--fields")) {
|
|
2913
2913
|
if (runId !== void 0) {
|
|
2914
|
-
throw new (0,
|
|
2914
|
+
throw new (0, _chunkN3EF5WQVjs.RunEventQueryInputError)(
|
|
2915
2915
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2916
2916
|
);
|
|
2917
2917
|
}
|
|
@@ -2924,18 +2924,18 @@ function parseQuery(args, resource) {
|
|
|
2924
2924
|
)
|
|
2925
2925
|
];
|
|
2926
2926
|
if (incompatible.length) {
|
|
2927
|
-
throw new (0,
|
|
2927
|
+
throw new (0, _chunkN3EF5WQVjs.RunEventQueryInputError)(
|
|
2928
2928
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2929
2929
|
);
|
|
2930
2930
|
}
|
|
2931
2931
|
}
|
|
2932
2932
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2933
|
-
throw new (0,
|
|
2933
|
+
throw new (0, _chunkN3EF5WQVjs.RunEventQueryInputError)(
|
|
2934
2934
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2935
2935
|
);
|
|
2936
2936
|
}
|
|
2937
2937
|
if (sums.length && switches.has("--count")) {
|
|
2938
|
-
throw new (0,
|
|
2938
|
+
throw new (0, _chunkN3EF5WQVjs.RunEventQueryInputError)(
|
|
2939
2939
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2940
2940
|
);
|
|
2941
2941
|
}
|
|
@@ -2943,7 +2943,7 @@ function parseQuery(args, resource) {
|
|
|
2943
2943
|
if (operation === "count") {
|
|
2944
2944
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2945
2945
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2946
|
-
throw new (0,
|
|
2946
|
+
throw new (0, _chunkN3EF5WQVjs.RunEventQueryInputError)(
|
|
2947
2947
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2948
2948
|
);
|
|
2949
2949
|
}
|
|
@@ -2978,16 +2978,16 @@ function parseQuery(args, resource) {
|
|
|
2978
2978
|
];
|
|
2979
2979
|
}
|
|
2980
2980
|
}
|
|
2981
|
-
const request =
|
|
2981
|
+
const request = _chunkN3EF5WQVjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2982
2982
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2983
2983
|
const backend = values["--runtime-backend"];
|
|
2984
2984
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2985
|
-
throw new (0,
|
|
2985
|
+
throw new (0, _chunkN3EF5WQVjs.RunEventQueryInputError)(
|
|
2986
2986
|
"--runtime-backend must be daytona or modal."
|
|
2987
2987
|
);
|
|
2988
2988
|
}
|
|
2989
2989
|
if (backend && !namespace) {
|
|
2990
|
-
throw new (0,
|
|
2990
|
+
throw new (0, _chunkN3EF5WQVjs.RunEventQueryInputError)(
|
|
2991
2991
|
"--runtime-backend requires --runtime-namespace."
|
|
2992
2992
|
);
|
|
2993
2993
|
}
|
|
@@ -3034,12 +3034,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3034
3034
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3035
3035
|
const record3 = failure;
|
|
3036
3036
|
const status = record3.statusCode;
|
|
3037
|
-
const exitCode = error instanceof
|
|
3037
|
+
const exitCode = error instanceof _chunkN3EF5WQVjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3038
3038
|
const diagnostic = Object.assign(failure, {
|
|
3039
3039
|
exitCode,
|
|
3040
3040
|
retryable: exitCode === 5
|
|
3041
3041
|
});
|
|
3042
|
-
if (
|
|
3042
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) _chunk4CPRZPRQjs.printJsonError.call(void 0, diagnostic);
|
|
3043
3043
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3044
3044
|
return exitCode;
|
|
3045
3045
|
}
|
|
@@ -3054,7 +3054,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3054
3054
|
...criteria
|
|
3055
3055
|
} = request;
|
|
3056
3056
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3057
|
-
const client = new (0,
|
|
3057
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
3058
3058
|
let result;
|
|
3059
3059
|
if (request.operation === "fields") {
|
|
3060
3060
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3120,13 +3120,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3120
3120
|
lines.push(`Next page: ${nextPage}`);
|
|
3121
3121
|
}
|
|
3122
3122
|
}
|
|
3123
|
-
|
|
3123
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
3124
3124
|
{
|
|
3125
3125
|
...result,
|
|
3126
3126
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3127
3127
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3128
3128
|
},
|
|
3129
|
-
{ json:
|
|
3129
|
+
{ json: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3130
3130
|
` }
|
|
3131
3131
|
);
|
|
3132
3132
|
return 0;
|
|
@@ -4044,7 +4044,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4044
4044
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4045
4045
|
);
|
|
4046
4046
|
}
|
|
4047
|
-
const response = await new (0,
|
|
4047
|
+
const response = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4048
4048
|
keys
|
|
4049
4049
|
});
|
|
4050
4050
|
const failed = response.receipts.filter(
|
|
@@ -4056,7 +4056,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4056
4056
|
JSON.stringify(response, null, 2) + "\n",
|
|
4057
4057
|
{ flag: "wx", mode: 384 }
|
|
4058
4058
|
);
|
|
4059
|
-
|
|
4059
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
4060
4060
|
{
|
|
4061
4061
|
runId,
|
|
4062
4062
|
out: options.out,
|
|
@@ -4066,7 +4066,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4066
4066
|
{ json: true }
|
|
4067
4067
|
);
|
|
4068
4068
|
} else {
|
|
4069
|
-
|
|
4069
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4070
4070
|
}
|
|
4071
4071
|
if (failed)
|
|
4072
4072
|
process.exitCode = response.receipts.some(
|
|
@@ -4105,7 +4105,7 @@ includes nextCommand when another page is available.
|
|
|
4105
4105
|
{ exitCode: 2 }
|
|
4106
4106
|
);
|
|
4107
4107
|
}
|
|
4108
|
-
const page = await new (0,
|
|
4108
|
+
const page = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4109
4109
|
launchKey: options.launchKey,
|
|
4110
4110
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4111
4111
|
limit
|
|
@@ -4120,7 +4120,7 @@ includes nextCommand when another page is available.
|
|
|
4120
4120
|
"--limit",
|
|
4121
4121
|
String(limit)
|
|
4122
4122
|
].join(" ") : null;
|
|
4123
|
-
|
|
4123
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
4124
4124
|
{
|
|
4125
4125
|
parentRunId,
|
|
4126
4126
|
launchKey: options.launchKey,
|
|
@@ -4156,7 +4156,7 @@ async function handleRunsHistory(options) {
|
|
|
4156
4156
|
throw new Error("--limit must be a positive integer.");
|
|
4157
4157
|
}
|
|
4158
4158
|
}
|
|
4159
|
-
const page = await new (0,
|
|
4159
|
+
const page = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().runs.history({
|
|
4160
4160
|
cursor: options.cursor,
|
|
4161
4161
|
orgId: options.org,
|
|
4162
4162
|
search: options.search,
|
|
@@ -4172,7 +4172,7 @@ async function handleRunsHistory(options) {
|
|
|
4172
4172
|
);
|
|
4173
4173
|
}
|
|
4174
4174
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4175
|
-
|
|
4175
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
4176
4176
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4177
4177
|
options.json ? { json: true } : {}
|
|
4178
4178
|
);
|
|
@@ -4224,12 +4224,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4224
4224
|
return 1;
|
|
4225
4225
|
}
|
|
4226
4226
|
}
|
|
4227
|
-
const result = await new (0,
|
|
4227
|
+
const result = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().runs.rerun(runId, {
|
|
4228
4228
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4229
4229
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4230
4230
|
});
|
|
4231
|
-
if (
|
|
4232
|
-
|
|
4231
|
+
if (_chunk4CPRZPRQjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4232
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4233
4233
|
} else {
|
|
4234
4234
|
console.log(
|
|
4235
4235
|
result.deduplicated === true ? `
|
|
@@ -4497,7 +4497,7 @@ function projectRunDatasetCell(value) {
|
|
|
4497
4497
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
4498
4498
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
4499
4499
|
if (typeof logicalValue === "object") {
|
|
4500
|
-
return
|
|
4500
|
+
return _chunk4CPRZPRQjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
4501
4501
|
}
|
|
4502
4502
|
return logicalValue;
|
|
4503
4503
|
}
|
|
@@ -6968,7 +6968,7 @@ function renderOutcome(outcome) {
|
|
|
6968
6968
|
function printResult2(input) {
|
|
6969
6969
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6970
6970
|
if (failed) process.exitCode = 1;
|
|
6971
|
-
|
|
6971
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
6972
6972
|
{
|
|
6973
6973
|
deployment: { ...input.deployment, status: input.status },
|
|
6974
6974
|
plays: input.outcomes,
|
|
@@ -6993,7 +6993,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6993
6993
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6994
6994
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6995
6995
|
});
|
|
6996
|
-
const { http, config } =
|
|
6996
|
+
const { http, config } = _chunk4CPRZPRQjs.getAuthedHttpClient.call(void 0, );
|
|
6997
6997
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6998
6998
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6999
6999
|
deliveryId,
|
|
@@ -7020,7 +7020,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
7020
7020
|
},
|
|
7021
7021
|
{
|
|
7022
7022
|
bundle: bundleDeployPlayFile,
|
|
7023
|
-
fetchImpl:
|
|
7023
|
+
fetchImpl: _chunkZEQ3N6SIjs.fetchWithDeploymentProtection,
|
|
7024
7024
|
// The plays are already here: "opening" the source is naming it.
|
|
7025
7025
|
openSource: async () => ({
|
|
7026
7026
|
open: async () => ({ repoRoot: root })
|
|
@@ -7588,7 +7588,7 @@ function parseInputFlagValue(raw) {
|
|
|
7588
7588
|
return raw;
|
|
7589
7589
|
}
|
|
7590
7590
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
7591
|
-
const selection =
|
|
7591
|
+
const selection = _chunk4CPRZPRQjs.parseJsonFields.call(void 0, args, "run");
|
|
7592
7592
|
args = selection.args;
|
|
7593
7593
|
const usage2 = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and ctx.dataset guidance.";
|
|
7594
7594
|
let filePath = null;
|
|
@@ -7600,7 +7600,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7600
7600
|
let revisionSelector = null;
|
|
7601
7601
|
const watch = !args.includes("--no-wait");
|
|
7602
7602
|
const dryRun = args.includes("--dry-run");
|
|
7603
|
-
let jsonOutput = dryRun ?
|
|
7603
|
+
let jsonOutput = dryRun ? _chunk4CPRZPRQjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk4CPRZPRQjs.argsWantJson.call(void 0, args);
|
|
7604
7604
|
const fullJson = args.includes("--full");
|
|
7605
7605
|
const force = args.includes("--force");
|
|
7606
7606
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -7663,7 +7663,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7663
7663
|
"--log-level requires one of: debug, info, warn, error."
|
|
7664
7664
|
);
|
|
7665
7665
|
}
|
|
7666
|
-
const parsed =
|
|
7666
|
+
const parsed = _chunkN3EF5WQVjs.parseLogLevel.call(void 0, value);
|
|
7667
7667
|
if (!parsed) {
|
|
7668
7668
|
throw new Error(
|
|
7669
7669
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -7981,7 +7981,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
7981
7981
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
7982
7982
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
7983
7983
|
);
|
|
7984
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
7984
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkN3EF5WQVjs.parseLogLevel.call(void 0, options.logLevel);
|
|
7985
7985
|
if (!logLevel)
|
|
7986
7986
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
7987
7987
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -7995,13 +7995,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
7995
7995
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
7996
7996
|
logLevel = "debug";
|
|
7997
7997
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
7998
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
7999
|
-
[...fullJson ? ["--full"] : [], ...
|
|
7998
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunk4CPRZPRQjs.parseJsonFields.call(void 0,
|
|
7999
|
+
[...fullJson ? ["--full"] : [], ..._chunk4CPRZPRQjs.jsonFieldArgs.call(void 0, options.json)],
|
|
8000
8000
|
"run"
|
|
8001
8001
|
).fields;
|
|
8002
8002
|
const watch = options.wait === false ? false : base.watch;
|
|
8003
8003
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
8004
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
8004
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunk4CPRZPRQjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
8005
8005
|
const verboseLogs = Boolean(
|
|
8006
8006
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
8007
8007
|
);
|
|
@@ -8122,7 +8122,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
8122
8122
|
// src/cli/renderers/local-play-execution.ts
|
|
8123
8123
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
8124
8124
|
if (options.dryRun) {
|
|
8125
|
-
|
|
8125
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
8126
8126
|
return;
|
|
8127
8127
|
}
|
|
8128
8128
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -8294,7 +8294,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
8294
8294
|
const startedAt = Date.now();
|
|
8295
8295
|
try {
|
|
8296
8296
|
const result = run();
|
|
8297
|
-
|
|
8297
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
8298
8298
|
phase,
|
|
8299
8299
|
ms: Date.now() - startedAt,
|
|
8300
8300
|
ok: true,
|
|
@@ -8302,7 +8302,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
8302
8302
|
});
|
|
8303
8303
|
return result;
|
|
8304
8304
|
} catch (error) {
|
|
8305
|
-
|
|
8305
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
8306
8306
|
phase,
|
|
8307
8307
|
ms: Date.now() - startedAt,
|
|
8308
8308
|
ok: false,
|
|
@@ -9086,7 +9086,7 @@ function playStatusErrorText(status) {
|
|
|
9086
9086
|
function isRetryablePendingStartFailure(status) {
|
|
9087
9087
|
if (status.status !== "failed") return false;
|
|
9088
9088
|
if (status.runId && status.runId !== "pending") return false;
|
|
9089
|
-
return
|
|
9089
|
+
return _chunkN3EF5WQVjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
9090
9090
|
}
|
|
9091
9091
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
9092
9092
|
if (error instanceof _chunkPPDBRJRWjs.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -9135,13 +9135,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkPPDBRJRWjs.Deep
|
|
|
9135
9135
|
}, _class);
|
|
9136
9136
|
function watchSurfaceReaches(state, provenance, level) {
|
|
9137
9137
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
9138
|
-
if (!
|
|
9138
|
+
if (!_chunkN3EF5WQVjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
9139
9139
|
return false;
|
|
9140
9140
|
}
|
|
9141
|
-
if (
|
|
9141
|
+
if (_chunkN3EF5WQVjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
9142
9142
|
return true;
|
|
9143
9143
|
}
|
|
9144
|
-
return state.verbose === true &&
|
|
9144
|
+
return state.verbose === true && _chunkN3EF5WQVjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
9145
9145
|
}
|
|
9146
9146
|
function getEventPayload(event) {
|
|
9147
9147
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9643,7 +9643,7 @@ function resolveRunPlayName(status, runId) {
|
|
|
9643
9643
|
}
|
|
9644
9644
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
9645
9645
|
if (open2 && dashboardUrl) {
|
|
9646
|
-
|
|
9646
|
+
_chunk4CPRZPRQjs.openInBrowser.call(void 0, dashboardUrl);
|
|
9647
9647
|
}
|
|
9648
9648
|
}
|
|
9649
9649
|
function printPlayLogLines(input) {
|
|
@@ -9720,7 +9720,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9720
9720
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
9721
9721
|
});
|
|
9722
9722
|
} catch (error) {
|
|
9723
|
-
if (
|
|
9723
|
+
if (_chunkN3EF5WQVjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9724
9724
|
return null;
|
|
9725
9725
|
}
|
|
9726
9726
|
throw error;
|
|
@@ -9800,9 +9800,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9800
9800
|
signal: controller.signal,
|
|
9801
9801
|
deferLogs: !input.emitLogs,
|
|
9802
9802
|
omitTerminalLogs: !input.emitLogs,
|
|
9803
|
-
...
|
|
9803
|
+
..._chunkPK55NFM5js.isCliTraceEnabled.call(void 0, ) ? {
|
|
9804
9804
|
onPoll: (observation) => {
|
|
9805
|
-
|
|
9805
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
9806
9806
|
phase: "play_watch_poll",
|
|
9807
9807
|
workflowId: input.workflowId,
|
|
9808
9808
|
ms: observation.durationMs,
|
|
@@ -9816,7 +9816,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9816
9816
|
full: input.fullJson,
|
|
9817
9817
|
billing: false,
|
|
9818
9818
|
onStatus: async (status) => {
|
|
9819
|
-
|
|
9819
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
9820
9820
|
phase: "play_watch_terminal_status",
|
|
9821
9821
|
workflowId: input.workflowId,
|
|
9822
9822
|
full: input.fullJson === true
|
|
@@ -9886,7 +9886,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9886
9886
|
});
|
|
9887
9887
|
} catch (error) {
|
|
9888
9888
|
if (!(error instanceof _chunk2H4EY7KHjs.CliPlayAdmissionUnsupportedError)) throw error;
|
|
9889
|
-
await
|
|
9889
|
+
await _chunkXPOIHVTNjs.checkPlayRunCompatibility.call(void 0,
|
|
9890
9890
|
input.client.baseUrl,
|
|
9891
9891
|
input.maintenancePolicy
|
|
9892
9892
|
);
|
|
@@ -9932,7 +9932,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9932
9932
|
}
|
|
9933
9933
|
openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
|
|
9934
9934
|
input.progress.phase("running");
|
|
9935
|
-
|
|
9935
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
9936
9936
|
phase: "cli.play_start_admitted",
|
|
9937
9937
|
ms: Date.now() - startedAt,
|
|
9938
9938
|
ok: true,
|
|
@@ -9949,7 +9949,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9949
9949
|
startedAt,
|
|
9950
9950
|
waitTimeoutMs: input.waitTimeoutMs
|
|
9951
9951
|
});
|
|
9952
|
-
const initialStatus =
|
|
9952
|
+
const initialStatus = _chunkN3EF5WQVjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
9953
9953
|
const status2 = await resolvePlayRunOutputStatus({
|
|
9954
9954
|
client: input.client,
|
|
9955
9955
|
status: initialStatus,
|
|
@@ -9957,7 +9957,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9957
9957
|
jsonOutput: input.jsonOutput,
|
|
9958
9958
|
fromDurableStatus: true
|
|
9959
9959
|
});
|
|
9960
|
-
|
|
9960
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
9961
9961
|
phase: "play_watch_terminal_status",
|
|
9962
9962
|
workflowId,
|
|
9963
9963
|
full: true,
|
|
@@ -10001,7 +10001,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
10001
10001
|
status = await startAndWaitForPlayCompletionByStreamOnce(pinnedInput);
|
|
10002
10002
|
} catch (error) {
|
|
10003
10003
|
if (error instanceof _chunk2H4EY7KHjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
10004
|
-
await
|
|
10004
|
+
await _chunkXPOIHVTNjs.checkPlayRunCompatibility.call(void 0,
|
|
10005
10005
|
input.client.baseUrl,
|
|
10006
10006
|
input.maintenancePolicy
|
|
10007
10007
|
);
|
|
@@ -10028,7 +10028,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
10028
10028
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
10029
10029
|
);
|
|
10030
10030
|
}
|
|
10031
|
-
|
|
10031
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
10032
10032
|
phase: "cli.play_start_stream_retry",
|
|
10033
10033
|
ms: 0,
|
|
10034
10034
|
ok: true,
|
|
@@ -10049,7 +10049,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
10049
10049
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
10050
10050
|
);
|
|
10051
10051
|
}
|
|
10052
|
-
|
|
10052
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
10053
10053
|
phase: "cli.play_start_stream_retry",
|
|
10054
10054
|
ms: 0,
|
|
10055
10055
|
ok: true,
|
|
@@ -10093,7 +10093,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10093
10093
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
10094
10094
|
launchConfirmed = true;
|
|
10095
10095
|
await _optionalChain([input, 'access', _322 => _322.onRunAdmitted, 'optionalCall', _323 => _323(runId)]);
|
|
10096
|
-
|
|
10096
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
10097
10097
|
phase: "cli.play_start_admitted",
|
|
10098
10098
|
ms: Date.now() - startedAt,
|
|
10099
10099
|
ok: true,
|
|
@@ -10127,7 +10127,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10127
10127
|
full: input.fullJson
|
|
10128
10128
|
});
|
|
10129
10129
|
} catch (error) {
|
|
10130
|
-
if (
|
|
10130
|
+
if (_chunkN3EF5WQVjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
10131
10131
|
return null;
|
|
10132
10132
|
}
|
|
10133
10133
|
throw error;
|
|
@@ -10260,7 +10260,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10260
10260
|
};
|
|
10261
10261
|
}
|
|
10262
10262
|
if (!canonicalTerminal) {
|
|
10263
|
-
|
|
10263
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
10264
10264
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
10265
10265
|
ms: Date.now() - startedAt,
|
|
10266
10266
|
ok: true,
|
|
@@ -10281,14 +10281,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10281
10281
|
fromDurableStatus
|
|
10282
10282
|
}) : canonicalTerminal;
|
|
10283
10283
|
if (input.fullJson === true) {
|
|
10284
|
-
|
|
10284
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
10285
10285
|
phase: "play_watch_terminal_status",
|
|
10286
10286
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
10287
10287
|
full: true,
|
|
10288
10288
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
10289
10289
|
});
|
|
10290
10290
|
}
|
|
10291
|
-
|
|
10291
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
10292
10292
|
phase: "cli.play_start_stream_terminal",
|
|
10293
10293
|
ms: Date.now() - startedAt,
|
|
10294
10294
|
ok: true,
|
|
@@ -10308,7 +10308,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10308
10308
|
clearTimeout(timeout);
|
|
10309
10309
|
}
|
|
10310
10310
|
controller.abort();
|
|
10311
|
-
|
|
10311
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
10312
10312
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
10313
10313
|
ms: Date.now() - startedAt,
|
|
10314
10314
|
ok: true,
|
|
@@ -10339,7 +10339,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10339
10339
|
if (timedOut) {
|
|
10340
10340
|
const terminal = await fetchKnownTerminalStatus();
|
|
10341
10341
|
if (terminal) {
|
|
10342
|
-
|
|
10342
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
10343
10343
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
10344
10344
|
ms: Date.now() - startedAt,
|
|
10345
10345
|
ok: true,
|
|
@@ -10359,7 +10359,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10359
10359
|
lastPhase
|
|
10360
10360
|
});
|
|
10361
10361
|
}
|
|
10362
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
10362
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkN3EF5WQVjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
10363
10363
|
if (timeout) {
|
|
10364
10364
|
clearTimeout(timeout);
|
|
10365
10365
|
}
|
|
@@ -10370,7 +10370,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10370
10370
|
`
|
|
10371
10371
|
);
|
|
10372
10372
|
}
|
|
10373
|
-
|
|
10373
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
10374
10374
|
phase: "cli.play_start_stream_reconnect",
|
|
10375
10375
|
ms: Date.now() - startedAt,
|
|
10376
10376
|
ok: true,
|
|
@@ -10397,7 +10397,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10397
10397
|
});
|
|
10398
10398
|
}
|
|
10399
10399
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
10400
|
-
|
|
10400
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
10401
10401
|
phase: "cli.play_start_stream_transient_failure",
|
|
10402
10402
|
ms: Date.now() - startedAt,
|
|
10403
10403
|
ok: false,
|
|
@@ -10425,7 +10425,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10425
10425
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
10426
10426
|
);
|
|
10427
10427
|
}
|
|
10428
|
-
|
|
10428
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
10429
10429
|
phase: "cli.play_start_stream_reconnect",
|
|
10430
10430
|
ms: Date.now() - startedAt,
|
|
10431
10431
|
ok: true,
|
|
@@ -10505,7 +10505,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10505
10505
|
"logs"
|
|
10506
10506
|
]);
|
|
10507
10507
|
function formatPlayLogLine(rawLine, state) {
|
|
10508
|
-
const classified =
|
|
10508
|
+
const classified = _chunkN3EF5WQVjs.classifyLogLine.call(void 0, rawLine);
|
|
10509
10509
|
const line = classified.line;
|
|
10510
10510
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10511
10511
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _326 => _326[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10520,14 +10520,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10520
10520
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10521
10521
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10522
10522
|
if (providerWait && !state.verbose) {
|
|
10523
|
-
return
|
|
10523
|
+
return _chunkN3EF5WQVjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10524
10524
|
}
|
|
10525
10525
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10526
10526
|
if (mapProgress && !state.verbose) {
|
|
10527
|
-
return
|
|
10527
|
+
return _chunkN3EF5WQVjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10528
10528
|
}
|
|
10529
10529
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10530
|
-
if (!
|
|
10530
|
+
if (!_chunkN3EF5WQVjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10531
10531
|
return null;
|
|
10532
10532
|
}
|
|
10533
10533
|
if (state.emittedRunnerStarted) {
|
|
@@ -10540,7 +10540,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10540
10540
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10541
10541
|
);
|
|
10542
10542
|
if (mapStart) {
|
|
10543
|
-
if (!
|
|
10543
|
+
if (!_chunkN3EF5WQVjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10544
10544
|
return null;
|
|
10545
10545
|
}
|
|
10546
10546
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10550,7 +10550,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10550
10550
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10551
10551
|
);
|
|
10552
10552
|
if (mapDone) {
|
|
10553
|
-
if (!
|
|
10553
|
+
if (!_chunkN3EF5WQVjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10554
10554
|
return null;
|
|
10555
10555
|
}
|
|
10556
10556
|
const [, results, executed, cached] = mapDone;
|
|
@@ -11839,7 +11839,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11839
11839
|
(line) => typeof line === "string"
|
|
11840
11840
|
);
|
|
11841
11841
|
if (tail.length === 0) return [];
|
|
11842
|
-
const shown = tail.map((line) =>
|
|
11842
|
+
const shown = tail.map((line) => _chunkN3EF5WQVjs.classifyLogLine.call(void 0, line)).filter(
|
|
11843
11843
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11844
11844
|
).slice(-8);
|
|
11845
11845
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -12122,7 +12122,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12122
12122
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _407 => _407.hits]), () => ( null));
|
|
12123
12123
|
if (jsonOutput) {
|
|
12124
12124
|
const payload2 = _optionalChain([options, 'optionalAccess', _408 => _408.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
12125
|
-
|
|
12125
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
12126
12126
|
hits ? { ...payload2, hits } : payload2,
|
|
12127
12127
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _409 => _409.jsonFields]) }
|
|
12128
12128
|
);
|
|
@@ -12138,7 +12138,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12138
12138
|
...buildPlayCompletionTextLines(status),
|
|
12139
12139
|
...formatRunHitsLines(hits)
|
|
12140
12140
|
];
|
|
12141
|
-
|
|
12141
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
12142
12142
|
json: false,
|
|
12143
12143
|
text: `${lines2.join("\n")}
|
|
12144
12144
|
`
|
|
@@ -12189,7 +12189,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12189
12189
|
lines.push(...buildBillingRollupTextLines(status));
|
|
12190
12190
|
const compact = compactPlayStatus(status);
|
|
12191
12191
|
const payload = _optionalChain([options, 'optionalAccess', _411 => _411.fullJson]) ? status : compact;
|
|
12192
|
-
|
|
12192
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
12193
12193
|
{
|
|
12194
12194
|
...payload,
|
|
12195
12195
|
render: {
|
|
@@ -12959,7 +12959,7 @@ function writeStartedPlayRun(input) {
|
|
|
12959
12959
|
dashboardUrl: input.dashboardUrl,
|
|
12960
12960
|
package: input.package
|
|
12961
12961
|
};
|
|
12962
|
-
|
|
12962
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12963
12963
|
json: true,
|
|
12964
12964
|
fields: input.jsonFields
|
|
12965
12965
|
});
|
|
@@ -12981,7 +12981,7 @@ function writeStartedPlayRun(input) {
|
|
|
12981
12981
|
input.progress.writeLine(output2, process.stdout);
|
|
12982
12982
|
return;
|
|
12983
12983
|
}
|
|
12984
|
-
|
|
12984
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12985
12985
|
json: false,
|
|
12986
12986
|
text: `${output2}
|
|
12987
12987
|
`
|
|
@@ -13010,7 +13010,7 @@ function writeStartedPlayRun(input) {
|
|
|
13010
13010
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
13011
13011
|
];
|
|
13012
13012
|
if (input.jsonOutput) {
|
|
13013
|
-
|
|
13013
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
13014
13014
|
return;
|
|
13015
13015
|
}
|
|
13016
13016
|
if (input.dashboardUrl) {
|
|
@@ -13021,7 +13021,7 @@ function writeStartedPlayRun(input) {
|
|
|
13021
13021
|
input.progress.writeLine(output, process.stdout);
|
|
13022
13022
|
return;
|
|
13023
13023
|
}
|
|
13024
|
-
|
|
13024
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
13025
13025
|
{
|
|
13026
13026
|
...payload,
|
|
13027
13027
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -13031,7 +13031,7 @@ function writeStartedPlayRun(input) {
|
|
|
13031
13031
|
);
|
|
13032
13032
|
}
|
|
13033
13033
|
function parsePlayCheckOptions(args) {
|
|
13034
|
-
const selection =
|
|
13034
|
+
const selection = _chunk4CPRZPRQjs.parseJsonFields.call(void 0, args, "check");
|
|
13035
13035
|
args = selection.args;
|
|
13036
13036
|
const target = args[0];
|
|
13037
13037
|
if (!target || target.startsWith("-")) {
|
|
@@ -13043,7 +13043,7 @@ function parsePlayCheckOptions(args) {
|
|
|
13043
13043
|
if (arg !== "--json" && arg !== "--full")
|
|
13044
13044
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
13045
13045
|
}
|
|
13046
|
-
const jsonOutput =
|
|
13046
|
+
const jsonOutput = _chunk4CPRZPRQjs.argsWantJson.call(void 0, args);
|
|
13047
13047
|
return {
|
|
13048
13048
|
target,
|
|
13049
13049
|
jsonOutput,
|
|
@@ -13119,7 +13119,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
13119
13119
|
useLatest,
|
|
13120
13120
|
expectedArtifactHash,
|
|
13121
13121
|
dryRun,
|
|
13122
|
-
jsonOutput:
|
|
13122
|
+
jsonOutput: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args)
|
|
13123
13123
|
};
|
|
13124
13124
|
}
|
|
13125
13125
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -13160,7 +13160,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
13160
13160
|
target,
|
|
13161
13161
|
expectedArtifactHash,
|
|
13162
13162
|
dryRun,
|
|
13163
|
-
jsonOutput:
|
|
13163
|
+
jsonOutput: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args)
|
|
13164
13164
|
};
|
|
13165
13165
|
}
|
|
13166
13166
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -13371,7 +13371,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
13371
13371
|
async function handlePlayCheck(args) {
|
|
13372
13372
|
const options = parsePlayCheckOptions(args);
|
|
13373
13373
|
if (!isFileTarget2(options.target)) {
|
|
13374
|
-
const client = new (0,
|
|
13374
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
13375
13375
|
try {
|
|
13376
13376
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
13377
13377
|
command: "check"
|
|
@@ -13400,7 +13400,7 @@ async function handlePlayCheck(args) {
|
|
|
13400
13400
|
},
|
|
13401
13401
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
13402
13402
|
};
|
|
13403
|
-
|
|
13403
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, result, {
|
|
13404
13404
|
json: options.jsonOutput,
|
|
13405
13405
|
fields: options.jsonFields,
|
|
13406
13406
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -13410,7 +13410,7 @@ async function handlePlayCheck(args) {
|
|
|
13410
13410
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
13411
13411
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
13412
13412
|
if (options.jsonOutput) {
|
|
13413
|
-
|
|
13413
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
13414
13414
|
{
|
|
13415
13415
|
kind: "play_check",
|
|
13416
13416
|
checked: "named_contract",
|
|
@@ -13452,7 +13452,7 @@ async function handlePlayCheck(args) {
|
|
|
13452
13452
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
13453
13453
|
publishCommand: _optionalChain([primary, 'optionalAccess', _461 => _461.result, 'access', _462 => _462.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
13454
13454
|
});
|
|
13455
|
-
|
|
13455
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, output, {
|
|
13456
13456
|
json: options.jsonOutput,
|
|
13457
13457
|
fields: options.jsonFields,
|
|
13458
13458
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -13506,7 +13506,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13506
13506
|
}
|
|
13507
13507
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13508
13508
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13509
|
-
const client = new (0,
|
|
13509
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
13510
13510
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13511
13511
|
const checked = await checkLocalPlayGraph({
|
|
13512
13512
|
client,
|
|
@@ -13559,11 +13559,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13559
13559
|
throw new Error("Expected a file-backed play run target.");
|
|
13560
13560
|
}
|
|
13561
13561
|
let client;
|
|
13562
|
-
let cliAdmission =
|
|
13562
|
+
let cliAdmission = _chunkXPOIHVTNjs.usesInlinePlayAdmission.call(void 0,
|
|
13563
13563
|
"plays run",
|
|
13564
13564
|
process.argv.slice(2)
|
|
13565
13565
|
);
|
|
13566
|
-
const progress = _nullishCoalesce(
|
|
13566
|
+
const progress = _nullishCoalesce(_chunkBXWLG55Tjs.getActiveCliProgress.call(void 0, ), () => ( _chunkBXWLG55Tjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13567
13567
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
13568
13568
|
progress.phase("compiling play");
|
|
13569
13569
|
const sourceCode = traceCliSync(
|
|
@@ -13580,7 +13580,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13580
13580
|
}
|
|
13581
13581
|
let graph;
|
|
13582
13582
|
try {
|
|
13583
|
-
graph = await
|
|
13583
|
+
graph = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
13584
13584
|
"cli.play_file_bundle_graph",
|
|
13585
13585
|
{ targetKind: "file" },
|
|
13586
13586
|
() => collectBundledPlayGraph(
|
|
@@ -13599,9 +13599,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13599
13599
|
);
|
|
13600
13600
|
return 0;
|
|
13601
13601
|
}
|
|
13602
|
-
client = new (0,
|
|
13602
|
+
client = new (0, _chunkN3EF5WQVjs.DeeplineClient)(playRunClientOptions(options));
|
|
13603
13603
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
13604
|
-
await
|
|
13604
|
+
await _chunkXPOIHVTNjs.checkPlayRunCompatibility.call(void 0,
|
|
13605
13605
|
client.baseUrl,
|
|
13606
13606
|
options.maintenancePolicy
|
|
13607
13607
|
);
|
|
@@ -13614,7 +13614,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13614
13614
|
});
|
|
13615
13615
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
13616
13616
|
if (canDeferCompilerManifest) {
|
|
13617
|
-
|
|
13617
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
13618
13618
|
phase: "cli.play_file_compile_manifests",
|
|
13619
13619
|
ms: 0,
|
|
13620
13620
|
ok: true,
|
|
@@ -13623,7 +13623,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13623
13623
|
reason: "validated_by_run_route"
|
|
13624
13624
|
});
|
|
13625
13625
|
} else {
|
|
13626
|
-
await
|
|
13626
|
+
await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
13627
13627
|
"cli.play_file_compile_manifests",
|
|
13628
13628
|
{ targetKind: "file", skipped: false },
|
|
13629
13629
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -13647,7 +13647,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13647
13647
|
_chunkGEJDBXXMjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
13648
13648
|
);
|
|
13649
13649
|
progress.phase("pinning imported plays");
|
|
13650
|
-
graph = await
|
|
13650
|
+
graph = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
13651
13651
|
"cli.play_file_pin_imports",
|
|
13652
13652
|
{ targetKind: "file" },
|
|
13653
13653
|
() => _chunkGEJDBXXMjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
@@ -13666,7 +13666,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13666
13666
|
const fileInputBindings = _chunk2H4EY7KHjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
13667
13667
|
_optionalChain([compilerManifest, 'optionalAccess', _471 => _471.staticPipeline])
|
|
13668
13668
|
);
|
|
13669
|
-
const stagedFileInputs = await
|
|
13669
|
+
const stagedFileInputs = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
13670
13670
|
"cli.play_stage_inputs",
|
|
13671
13671
|
{
|
|
13672
13672
|
targetKind: "file",
|
|
@@ -13713,7 +13713,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13713
13713
|
};
|
|
13714
13714
|
if (options.watch) {
|
|
13715
13715
|
progress.phase("starting run");
|
|
13716
|
-
const finalStatus = await
|
|
13716
|
+
const finalStatus = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
13717
13717
|
"cli.play_start_watch",
|
|
13718
13718
|
{ targetKind: "file", playName },
|
|
13719
13719
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13769,7 +13769,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13769
13769
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13770
13770
|
}
|
|
13771
13771
|
progress.phase("starting run");
|
|
13772
|
-
const started = await
|
|
13772
|
+
const started = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
13773
13773
|
"cli.play_start_unwatched",
|
|
13774
13774
|
{ targetKind: "file", playName },
|
|
13775
13775
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _477 => _477.onSubmission]) }).catch(async (error) => {
|
|
@@ -13816,12 +13816,12 @@ async function handleNamedRun(options, hooks) {
|
|
|
13816
13816
|
if (options.target.kind !== "name") {
|
|
13817
13817
|
throw new Error("Expected a named play run target.");
|
|
13818
13818
|
}
|
|
13819
|
-
const client = new (0,
|
|
13820
|
-
let cliAdmission =
|
|
13819
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)(playRunClientOptions(options));
|
|
13820
|
+
let cliAdmission = _chunkXPOIHVTNjs.usesInlinePlayAdmission.call(void 0,
|
|
13821
13821
|
"plays run",
|
|
13822
13822
|
process.argv.slice(2)
|
|
13823
13823
|
);
|
|
13824
|
-
const progress = _nullishCoalesce(
|
|
13824
|
+
const progress = _nullishCoalesce(_chunkBXWLG55Tjs.getActiveCliProgress.call(void 0, ), () => ( _chunkBXWLG55Tjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13825
13825
|
const playName = options.target.name;
|
|
13826
13826
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13827
13827
|
try {
|
|
@@ -13836,14 +13836,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13836
13836
|
});
|
|
13837
13837
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13838
13838
|
progress.phase("loading play definition");
|
|
13839
|
-
return
|
|
13839
|
+
return _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
13840
13840
|
"cli.play_load_definition",
|
|
13841
13841
|
{ targetKind: "name", playName, skipped: false },
|
|
13842
13842
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13843
13843
|
command: "run"
|
|
13844
13844
|
})
|
|
13845
13845
|
);
|
|
13846
|
-
})() : (
|
|
13846
|
+
})() : (_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
13847
13847
|
phase: "cli.play_load_definition",
|
|
13848
13848
|
ms: 0,
|
|
13849
13849
|
ok: true,
|
|
@@ -13852,7 +13852,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13852
13852
|
skipped: true
|
|
13853
13853
|
}), null);
|
|
13854
13854
|
progress.phase("selecting revision");
|
|
13855
|
-
const selectedRevisionId = await
|
|
13855
|
+
const selectedRevisionId = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
13856
13856
|
"cli.play_select_revision",
|
|
13857
13857
|
{
|
|
13858
13858
|
targetKind: "name",
|
|
@@ -13877,10 +13877,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13877
13877
|
..._chunk2H4EY7KHjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13878
13878
|
] : [];
|
|
13879
13879
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13880
|
-
await
|
|
13880
|
+
await _chunkXPOIHVTNjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13881
13881
|
cliAdmission = false;
|
|
13882
13882
|
}
|
|
13883
|
-
const stagedFileInputs = await
|
|
13883
|
+
const stagedFileInputs = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
13884
13884
|
"cli.play_stage_inputs",
|
|
13885
13885
|
{
|
|
13886
13886
|
targetKind: "name",
|
|
@@ -13924,7 +13924,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13924
13924
|
});
|
|
13925
13925
|
if (options.watch) {
|
|
13926
13926
|
progress.phase("starting run");
|
|
13927
|
-
const finalStatus = await
|
|
13927
|
+
const finalStatus = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
13928
13928
|
"cli.play_start_watch",
|
|
13929
13929
|
{ targetKind: "name", playName },
|
|
13930
13930
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13983,7 +13983,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13983
13983
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13984
13984
|
}
|
|
13985
13985
|
progress.phase("starting run");
|
|
13986
|
-
const started = await
|
|
13986
|
+
const started = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
13987
13987
|
"cli.play_start_unwatched",
|
|
13988
13988
|
{ targetKind: "name", playName },
|
|
13989
13989
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _488 => _488.onSubmission]) }).catch(async (error) => {
|
|
@@ -14032,7 +14032,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
14032
14032
|
JSON.stringify({
|
|
14033
14033
|
version: 1,
|
|
14034
14034
|
admissionState: "submitted_unknown",
|
|
14035
|
-
baseUrl: new (0,
|
|
14035
|
+
baseUrl: new (0, _chunkN3EF5WQVjs.DeeplineClient)().baseUrl,
|
|
14036
14036
|
...intent
|
|
14037
14037
|
})
|
|
14038
14038
|
);
|
|
@@ -14261,7 +14261,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
14261
14261
|
);
|
|
14262
14262
|
return `${lines.join("\n")}
|
|
14263
14263
|
|
|
14264
|
-
${
|
|
14264
|
+
${_chunk4CPRZPRQjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
14265
14265
|
}
|
|
14266
14266
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
14267
14267
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -14285,7 +14285,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
14285
14285
|
}
|
|
14286
14286
|
}
|
|
14287
14287
|
async function handleRunGet(args) {
|
|
14288
|
-
const selection =
|
|
14288
|
+
const selection = _chunk4CPRZPRQjs.parseJsonFields.call(void 0,
|
|
14289
14289
|
args,
|
|
14290
14290
|
args.includes("--config") ? "config" : "get"
|
|
14291
14291
|
);
|
|
@@ -14298,7 +14298,7 @@ async function handleRunGet(args) {
|
|
|
14298
14298
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14299
14299
|
return 1;
|
|
14300
14300
|
}
|
|
14301
|
-
const client = new (0,
|
|
14301
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
14302
14302
|
const timing = args.includes("--timing");
|
|
14303
14303
|
if (args.includes("--web-url")) {
|
|
14304
14304
|
const status2 = await withRunReadTiming(
|
|
@@ -14313,7 +14313,7 @@ async function handleRunGet(args) {
|
|
|
14313
14313
|
return 1;
|
|
14314
14314
|
}
|
|
14315
14315
|
const dashboardUrl2 = _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
14316
|
-
|
|
14316
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
14317
14317
|
{ dashboardUrl: dashboardUrl2 },
|
|
14318
14318
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
14319
14319
|
` }
|
|
@@ -14338,7 +14338,7 @@ async function handleRunGet(args) {
|
|
|
14338
14338
|
"This server does not support recorded configuration reads."
|
|
14339
14339
|
);
|
|
14340
14340
|
}
|
|
14341
|
-
|
|
14341
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
14342
14342
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
14343
14343
|
{ json: true, fields: selection.fields }
|
|
14344
14344
|
);
|
|
@@ -14351,7 +14351,7 @@ async function handleRunGet(args) {
|
|
|
14351
14351
|
timing,
|
|
14352
14352
|
() => client.getRunInput(runId)
|
|
14353
14353
|
);
|
|
14354
|
-
|
|
14354
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
14355
14355
|
return 0;
|
|
14356
14356
|
}
|
|
14357
14357
|
const full = args.includes("--full");
|
|
@@ -14377,8 +14377,8 @@ async function handleRunGet(args) {
|
|
|
14377
14377
|
) : status;
|
|
14378
14378
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
14379
14379
|
const legacyDashboardUrl = legacyPlayName ? _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
14380
|
-
if (
|
|
14381
|
-
|
|
14380
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
14381
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
14382
14382
|
{
|
|
14383
14383
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
14384
14384
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -14388,7 +14388,7 @@ async function handleRunGet(args) {
|
|
|
14388
14388
|
} else {
|
|
14389
14389
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
14390
14390
|
if (legacyDashboardUrl)
|
|
14391
|
-
|
|
14391
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
14392
14392
|
{ dashboardUrl: legacyDashboardUrl },
|
|
14393
14393
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
14394
14394
|
` }
|
|
@@ -14418,10 +14418,10 @@ async function handleRunGet(args) {
|
|
|
14418
14418
|
)
|
|
14419
14419
|
]);
|
|
14420
14420
|
const hitLines = formatRunHitsLines(hits);
|
|
14421
|
-
const json =
|
|
14421
|
+
const json = _chunk4CPRZPRQjs.argsWantJson.call(void 0, args);
|
|
14422
14422
|
const playName = resolveRunPlayName(status, runId);
|
|
14423
14423
|
const dashboardUrl = playName ? _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
14424
|
-
|
|
14424
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
14425
14425
|
{
|
|
14426
14426
|
...overview,
|
|
14427
14427
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -14525,9 +14525,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
14525
14525
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14526
14526
|
return 1;
|
|
14527
14527
|
}
|
|
14528
|
-
const status = await new (0,
|
|
14529
|
-
if (
|
|
14530
|
-
|
|
14528
|
+
const status = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().runs.status(runId);
|
|
14529
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
14530
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
14531
14531
|
return 0;
|
|
14532
14532
|
}
|
|
14533
14533
|
if (!status.available) {
|
|
@@ -14567,7 +14567,7 @@ async function handleRunsRerun(args) {
|
|
|
14567
14567
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14568
14568
|
return 1;
|
|
14569
14569
|
}
|
|
14570
|
-
const options = { json:
|
|
14570
|
+
const options = { json: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args) };
|
|
14571
14571
|
for (let index = 0; index < args.length; index += 1) {
|
|
14572
14572
|
if (args[index] === "--idempotency-key") {
|
|
14573
14573
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14633,8 +14633,8 @@ ${usage2}
|
|
|
14633
14633
|
Discover Plays: ${next.discover}
|
|
14634
14634
|
Active runs: ${next.running}`
|
|
14635
14635
|
);
|
|
14636
|
-
if (
|
|
14637
|
-
|
|
14636
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
14637
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
14638
14638
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14639
14639
|
{ json: true }
|
|
14640
14640
|
);
|
|
@@ -14649,7 +14649,7 @@ Active runs: ${next.running}`
|
|
|
14649
14649
|
console.error("--offset requires --play.");
|
|
14650
14650
|
return 1;
|
|
14651
14651
|
}
|
|
14652
|
-
const client = new (0,
|
|
14652
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
14653
14653
|
const page = await withRunReadTiming(
|
|
14654
14654
|
"runs list",
|
|
14655
14655
|
"run inventory",
|
|
@@ -14716,14 +14716,14 @@ Active runs: ${next.running}`
|
|
|
14716
14716
|
return lines2.join("\n");
|
|
14717
14717
|
});
|
|
14718
14718
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14719
|
-
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${
|
|
14719
|
+
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunk4CPRZPRQjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14720
14720
|
if (page.hasMore) {
|
|
14721
14721
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14722
14722
|
lines.push(
|
|
14723
14723
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14724
14724
|
);
|
|
14725
14725
|
}
|
|
14726
|
-
|
|
14726
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
14727
14727
|
{
|
|
14728
14728
|
runs,
|
|
14729
14729
|
count: runs.length,
|
|
@@ -14737,7 +14737,7 @@ Active runs: ${next.running}`
|
|
|
14737
14737
|
},
|
|
14738
14738
|
render: { sections: [{ title: "runs", lines }] }
|
|
14739
14739
|
},
|
|
14740
|
-
{ json:
|
|
14740
|
+
{ json: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args) }
|
|
14741
14741
|
);
|
|
14742
14742
|
return 0;
|
|
14743
14743
|
}
|
|
@@ -14767,7 +14767,7 @@ async function handleRunTail(args) {
|
|
|
14767
14767
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14768
14768
|
return 1;
|
|
14769
14769
|
}
|
|
14770
|
-
const parsed =
|
|
14770
|
+
const parsed = _chunkN3EF5WQVjs.parseLogLevel.call(void 0, value);
|
|
14771
14771
|
if (!parsed) {
|
|
14772
14772
|
console.error(
|
|
14773
14773
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14805,9 +14805,9 @@ async function handleRunTail(args) {
|
|
|
14805
14805
|
);
|
|
14806
14806
|
return 1;
|
|
14807
14807
|
}
|
|
14808
|
-
const client = new (0,
|
|
14808
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
14809
14809
|
const jsonLines = args.includes("--jsonl");
|
|
14810
|
-
const jsonOutput = !jsonLines &&
|
|
14810
|
+
const jsonOutput = !jsonLines && _chunk4CPRZPRQjs.argsWantJson.call(void 0, args);
|
|
14811
14811
|
const compact = args.includes("--compact");
|
|
14812
14812
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14813
14813
|
const compactState = {
|
|
@@ -14888,7 +14888,7 @@ async function handleRunLogs(args) {
|
|
|
14888
14888
|
]);
|
|
14889
14889
|
const cursorIndex = args.indexOf("--cursor");
|
|
14890
14890
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14891
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14891
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkN3EF5WQVjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14892
14892
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14893
14893
|
return handleRunEventSearch(args);
|
|
14894
14894
|
}
|
|
@@ -14922,7 +14922,7 @@ async function handleRunLogs(args) {
|
|
|
14922
14922
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14923
14923
|
return 1;
|
|
14924
14924
|
}
|
|
14925
|
-
const parsed =
|
|
14925
|
+
const parsed = _chunkN3EF5WQVjs.parseLogLevel.call(void 0, value);
|
|
14926
14926
|
if (!parsed) {
|
|
14927
14927
|
console.error(
|
|
14928
14928
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14969,12 +14969,12 @@ async function handleRunLogs(args) {
|
|
|
14969
14969
|
);
|
|
14970
14970
|
return 1;
|
|
14971
14971
|
}
|
|
14972
|
-
const client = new (0,
|
|
14972
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
14973
14973
|
if (outPath) {
|
|
14974
14974
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14975
|
-
const logs = result2.entries.filter((line) =>
|
|
14975
|
+
const logs = result2.entries.filter((line) => _chunkN3EF5WQVjs.logLevelReaches.call(void 0, _chunkN3EF5WQVjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkN3EF5WQVjs.classifyLogLine.call(void 0, line).line);
|
|
14976
14976
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14977
|
-
|
|
14977
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
14978
14978
|
{
|
|
14979
14979
|
runId: result2.runId,
|
|
14980
14980
|
log_path: outPath,
|
|
@@ -14997,7 +14997,7 @@ async function handleRunLogs(args) {
|
|
|
14997
14997
|
]
|
|
14998
14998
|
}
|
|
14999
14999
|
},
|
|
15000
|
-
{ json:
|
|
15000
|
+
{ json: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args) }
|
|
15001
15001
|
);
|
|
15002
15002
|
return 0;
|
|
15003
15003
|
}
|
|
@@ -15028,7 +15028,7 @@ async function handleRunLogs(args) {
|
|
|
15028
15028
|
}
|
|
15029
15029
|
};
|
|
15030
15030
|
const text = buildRunLogsText(filteredResult);
|
|
15031
|
-
|
|
15031
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
15032
15032
|
{
|
|
15033
15033
|
runId: result.runId,
|
|
15034
15034
|
totalCount: result.totalCount,
|
|
@@ -15052,7 +15052,7 @@ async function handleRunLogs(args) {
|
|
|
15052
15052
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
15053
15053
|
},
|
|
15054
15054
|
{
|
|
15055
|
-
json:
|
|
15055
|
+
json: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args),
|
|
15056
15056
|
text
|
|
15057
15057
|
}
|
|
15058
15058
|
);
|
|
@@ -15076,7 +15076,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15076
15076
|
);
|
|
15077
15077
|
}
|
|
15078
15078
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
15079
|
-
(entry) =>
|
|
15079
|
+
(entry) => _chunkN3EF5WQVjs.logLevelReaches.call(void 0, _chunkN3EF5WQVjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
15080
15080
|
);
|
|
15081
15081
|
const selected = matching.slice(-limit);
|
|
15082
15082
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -15086,7 +15086,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15086
15086
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _516 => _516.at, 'call', _517 => _517(-1), 'optionalAccess', _518 => _518.seq]), () => ( null)),
|
|
15087
15087
|
truncated: result.truncated || olderMatchesExist,
|
|
15088
15088
|
hasMore: olderMatchesExist,
|
|
15089
|
-
nextCursor: olderMatchesExist ?
|
|
15089
|
+
nextCursor: olderMatchesExist ? _chunkN3EF5WQVjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
15090
15090
|
};
|
|
15091
15091
|
}
|
|
15092
15092
|
async function handleRunEventSearch(args) {
|
|
@@ -15153,7 +15153,7 @@ ${usage2}`);
|
|
|
15153
15153
|
namespace,
|
|
15154
15154
|
...backend ? { backend } : {}
|
|
15155
15155
|
} : void 0;
|
|
15156
|
-
const client = new (0,
|
|
15156
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
15157
15157
|
const result = await client.runs.searchEvents({
|
|
15158
15158
|
...runId ? { runId } : {},
|
|
15159
15159
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -15225,7 +15225,7 @@ ${renderedDetails}` : ""}`;
|
|
|
15225
15225
|
"--limit",
|
|
15226
15226
|
String(limit)
|
|
15227
15227
|
].join(" ") : null;
|
|
15228
|
-
|
|
15228
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
15229
15229
|
{
|
|
15230
15230
|
events,
|
|
15231
15231
|
nextCursor: result.nextCursor,
|
|
@@ -15236,14 +15236,14 @@ ${renderedDetails}` : ""}`;
|
|
|
15236
15236
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
15237
15237
|
},
|
|
15238
15238
|
{
|
|
15239
|
-
json:
|
|
15239
|
+
json: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args),
|
|
15240
15240
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
15241
15241
|
}
|
|
15242
15242
|
);
|
|
15243
15243
|
return 0;
|
|
15244
15244
|
}
|
|
15245
15245
|
function buildRunLogsText(result) {
|
|
15246
|
-
const lines = result.entries.map((line) =>
|
|
15246
|
+
const lines = result.entries.map((line) => _chunkN3EF5WQVjs.classifyLogLine.call(void 0, line).line);
|
|
15247
15247
|
if (result.warning) {
|
|
15248
15248
|
if (lines.length > 0) lines.push("");
|
|
15249
15249
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -15277,7 +15277,7 @@ async function handleRunStop(args) {
|
|
|
15277
15277
|
reason = args[++index];
|
|
15278
15278
|
}
|
|
15279
15279
|
}
|
|
15280
|
-
const client = new (0,
|
|
15280
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
15281
15281
|
const result = await client.runs.stop(runId, { reason });
|
|
15282
15282
|
const state = resolveRunStopState(result);
|
|
15283
15283
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -15292,7 +15292,7 @@ async function handleRunStop(args) {
|
|
|
15292
15292
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
15293
15293
|
`inspect: deepline runs get ${runId} --full`
|
|
15294
15294
|
];
|
|
15295
|
-
|
|
15295
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
15296
15296
|
{
|
|
15297
15297
|
...cancelling,
|
|
15298
15298
|
state,
|
|
@@ -15307,7 +15307,7 @@ async function handleRunStop(args) {
|
|
|
15307
15307
|
]
|
|
15308
15308
|
}
|
|
15309
15309
|
},
|
|
15310
|
-
{ json:
|
|
15310
|
+
{ json: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args) }
|
|
15311
15311
|
);
|
|
15312
15312
|
return 0;
|
|
15313
15313
|
}
|
|
@@ -15324,7 +15324,7 @@ async function handleRunStop(args) {
|
|
|
15324
15324
|
];
|
|
15325
15325
|
process.stderr.write(`${lines2.join("\n")}
|
|
15326
15326
|
`);
|
|
15327
|
-
|
|
15327
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
15328
15328
|
{
|
|
15329
15329
|
...result,
|
|
15330
15330
|
render: {
|
|
@@ -15339,7 +15339,7 @@ async function handleRunStop(args) {
|
|
|
15339
15339
|
]
|
|
15340
15340
|
}
|
|
15341
15341
|
},
|
|
15342
|
-
{ json:
|
|
15342
|
+
{ json: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args) }
|
|
15343
15343
|
);
|
|
15344
15344
|
return 1;
|
|
15345
15345
|
}
|
|
@@ -15350,12 +15350,12 @@ async function handleRunStop(args) {
|
|
|
15350
15350
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
15351
15351
|
] : []
|
|
15352
15352
|
];
|
|
15353
|
-
|
|
15353
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
15354
15354
|
{
|
|
15355
15355
|
...result,
|
|
15356
15356
|
render: { sections: [{ title: "run stop", lines }] }
|
|
15357
15357
|
},
|
|
15358
|
-
{ json:
|
|
15358
|
+
{ json: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args) }
|
|
15359
15359
|
);
|
|
15360
15360
|
return 0;
|
|
15361
15361
|
}
|
|
@@ -15405,18 +15405,18 @@ async function handleRunStopAll(args) {
|
|
|
15405
15405
|
reason = args[++index];
|
|
15406
15406
|
}
|
|
15407
15407
|
}
|
|
15408
|
-
const client = new (0,
|
|
15408
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
15409
15409
|
if (dryRun) {
|
|
15410
15410
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
15411
15411
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
15412
|
-
|
|
15412
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
15413
15413
|
{
|
|
15414
15414
|
...result2,
|
|
15415
15415
|
render: {
|
|
15416
15416
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
15417
15417
|
}
|
|
15418
15418
|
},
|
|
15419
|
-
{ json:
|
|
15419
|
+
{ json: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
15420
15420
|
` }
|
|
15421
15421
|
);
|
|
15422
15422
|
return 0;
|
|
@@ -15429,17 +15429,17 @@ async function handleRunStopAll(args) {
|
|
|
15429
15429
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
15430
15430
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
15431
15431
|
];
|
|
15432
|
-
|
|
15432
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
15433
15433
|
{
|
|
15434
15434
|
...result,
|
|
15435
15435
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
15436
15436
|
},
|
|
15437
|
-
{ json:
|
|
15437
|
+
{ json: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args) }
|
|
15438
15438
|
);
|
|
15439
15439
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
15440
15440
|
}
|
|
15441
15441
|
async function handleRunExport(args) {
|
|
15442
|
-
const selection =
|
|
15442
|
+
const selection = _chunk4CPRZPRQjs.parseJsonFields.call(void 0, args, "export");
|
|
15443
15443
|
args = selection.args;
|
|
15444
15444
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
|
|
15445
15445
|
let runId;
|
|
@@ -15498,17 +15498,17 @@ async function handleRunExport(args) {
|
|
|
15498
15498
|
"INVALID_ARGUMENT"
|
|
15499
15499
|
);
|
|
15500
15500
|
}
|
|
15501
|
-
const client = new (0,
|
|
15501
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
15502
15502
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
15503
15503
|
assertRunExportStatusIdentity(status, runId);
|
|
15504
15504
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
15505
|
-
const progress =
|
|
15505
|
+
const progress = _chunkBXWLG55Tjs.createCliProgress.call(void 0, !_chunk4CPRZPRQjs.argsWantJson.call(void 0, args));
|
|
15506
15506
|
try {
|
|
15507
15507
|
await waitForPlayCompletionByWatch({
|
|
15508
15508
|
client,
|
|
15509
15509
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
15510
15510
|
workflowId: runId,
|
|
15511
|
-
jsonOutput:
|
|
15511
|
+
jsonOutput: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args),
|
|
15512
15512
|
emitLogs: false,
|
|
15513
15513
|
waitTimeoutMs,
|
|
15514
15514
|
startedAt: Date.now(),
|
|
@@ -15609,8 +15609,8 @@ async function handleRunExport(args) {
|
|
|
15609
15609
|
"utf-8"
|
|
15610
15610
|
);
|
|
15611
15611
|
}
|
|
15612
|
-
|
|
15613
|
-
json:
|
|
15612
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, payload, {
|
|
15613
|
+
json: _chunk4CPRZPRQjs.argsWantJson.call(void 0, args),
|
|
15614
15614
|
fields: selection.fields,
|
|
15615
15615
|
text: `${lines.join("\n")}
|
|
15616
15616
|
`
|
|
@@ -15644,10 +15644,10 @@ async function handlePlayGet(args) {
|
|
|
15644
15644
|
);
|
|
15645
15645
|
return 2;
|
|
15646
15646
|
}
|
|
15647
|
-
const client = new (0,
|
|
15647
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
15648
15648
|
const explicitJson = args.includes("--json");
|
|
15649
15649
|
const sourceOutput = args.includes("--source");
|
|
15650
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
15650
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunk4CPRZPRQjs.argsWantJson.call(void 0, args);
|
|
15651
15651
|
const requestedRevisionFlags = [
|
|
15652
15652
|
args.includes("--working"),
|
|
15653
15653
|
args.includes("--live"),
|
|
@@ -15707,7 +15707,7 @@ async function handlePlayGet(args) {
|
|
|
15707
15707
|
}
|
|
15708
15708
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15709
15709
|
if (jsonOutput) {
|
|
15710
|
-
|
|
15710
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, {
|
|
15711
15711
|
...detail,
|
|
15712
15712
|
...materializedFile ? {
|
|
15713
15713
|
message: loadedMessage,
|
|
@@ -15799,8 +15799,8 @@ async function handlePlayVersions(args) {
|
|
|
15799
15799
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15800
15800
|
return 1;
|
|
15801
15801
|
}
|
|
15802
|
-
const client = new (0,
|
|
15803
|
-
const jsonOutput =
|
|
15802
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
15803
|
+
const jsonOutput = _chunk4CPRZPRQjs.argsWantJson.call(void 0, args);
|
|
15804
15804
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15805
15805
|
command: "versions"
|
|
15806
15806
|
});
|
|
@@ -15808,7 +15808,7 @@ async function handlePlayVersions(args) {
|
|
|
15808
15808
|
parseReferencedPlayTarget2(playName).playName
|
|
15809
15809
|
);
|
|
15810
15810
|
if (jsonOutput) {
|
|
15811
|
-
|
|
15811
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, { versions });
|
|
15812
15812
|
return 0;
|
|
15813
15813
|
}
|
|
15814
15814
|
if (versions.length === 0) {
|
|
@@ -15846,9 +15846,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
15846
15846
|
"signals"
|
|
15847
15847
|
];
|
|
15848
15848
|
async function handlePlayList(args) {
|
|
15849
|
-
const jsonOutput =
|
|
15849
|
+
const jsonOutput = _chunk4CPRZPRQjs.argsWantJson.call(void 0, args);
|
|
15850
15850
|
const showCost = args.includes("--show-cost");
|
|
15851
|
-
const client = new (0,
|
|
15851
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
15852
15852
|
const categoriesIndex = args.indexOf("--categories");
|
|
15853
15853
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _555 => _555[categoriesIndex + 1], 'optionalAccess', _556 => _556.trim, 'call', _557 => _557()]) : void 0;
|
|
15854
15854
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15945,7 +15945,7 @@ async function handlePlayList(args) {
|
|
|
15945
15945
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15946
15946
|
lines.push(`Next page: ${nextPage}`);
|
|
15947
15947
|
}
|
|
15948
|
-
|
|
15948
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
15949
15949
|
{
|
|
15950
15950
|
plays,
|
|
15951
15951
|
count: plays.length,
|
|
@@ -15963,7 +15963,7 @@ async function handlePlayList(args) {
|
|
|
15963
15963
|
}
|
|
15964
15964
|
async function handlePlayPin(args, pinned) {
|
|
15965
15965
|
const target = _optionalChain([args, 'access', _564 => _564.find, 'call', _565 => _565((arg) => !arg.startsWith("-")), 'optionalAccess', _566 => _566.trim, 'call', _567 => _567()]);
|
|
15966
|
-
const jsonOutput =
|
|
15966
|
+
const jsonOutput = _chunk4CPRZPRQjs.argsWantJson.call(void 0, args);
|
|
15967
15967
|
const dryRun = args.includes("--dry-run");
|
|
15968
15968
|
if (!target) {
|
|
15969
15969
|
console.error(
|
|
@@ -15981,11 +15981,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15981
15981
|
const name = parsedTarget.playName;
|
|
15982
15982
|
const plan = { name, pinned, dryRun };
|
|
15983
15983
|
if (dryRun) {
|
|
15984
|
-
|
|
15984
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, plan);
|
|
15985
15985
|
return 0;
|
|
15986
15986
|
}
|
|
15987
|
-
const result = await new (0,
|
|
15988
|
-
if (jsonOutput)
|
|
15987
|
+
const result = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15988
|
+
if (jsonOutput) _chunk4CPRZPRQjs.printCompactJson.call(void 0, result);
|
|
15989
15989
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15990
15990
|
return 0;
|
|
15991
15991
|
}
|
|
@@ -16111,12 +16111,12 @@ async function handlePlayGrep(args) {
|
|
|
16111
16111
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
16112
16112
|
return 1;
|
|
16113
16113
|
}
|
|
16114
|
-
const client = new (0,
|
|
16114
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
16115
16115
|
const results = (await client.listPlays({ grep: query })).map(
|
|
16116
16116
|
summarizePlayGrepResult
|
|
16117
16117
|
);
|
|
16118
|
-
if (
|
|
16119
|
-
|
|
16118
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
16119
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, {
|
|
16120
16120
|
plays: results,
|
|
16121
16121
|
count: results.length,
|
|
16122
16122
|
query,
|
|
@@ -16139,7 +16139,7 @@ async function handlePlayGrep(args) {
|
|
|
16139
16139
|
return 0;
|
|
16140
16140
|
}
|
|
16141
16141
|
async function handlePlayDescribe(args) {
|
|
16142
|
-
const selection =
|
|
16142
|
+
const selection = _chunk4CPRZPRQjs.parseJsonFields.call(void 0, args, "describe");
|
|
16143
16143
|
args = selection.args;
|
|
16144
16144
|
const playName = args[0];
|
|
16145
16145
|
if (!playName) {
|
|
@@ -16173,8 +16173,8 @@ async function handlePlayDescribe(args) {
|
|
|
16173
16173
|
`deepline plays check ${playName}`,
|
|
16174
16174
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
16175
16175
|
];
|
|
16176
|
-
if (
|
|
16177
|
-
|
|
16176
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
16177
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, {
|
|
16178
16178
|
ok: false,
|
|
16179
16179
|
error: { message },
|
|
16180
16180
|
next
|
|
@@ -16188,7 +16188,7 @@ async function handlePlayDescribe(args) {
|
|
|
16188
16188
|
}
|
|
16189
16189
|
return 2;
|
|
16190
16190
|
}
|
|
16191
|
-
const client = new (0,
|
|
16191
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
16192
16192
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16193
16193
|
command: "describe"
|
|
16194
16194
|
});
|
|
@@ -16198,9 +16198,9 @@ async function handlePlayDescribe(args) {
|
|
|
16198
16198
|
compact: args.includes("--compact")
|
|
16199
16199
|
}
|
|
16200
16200
|
);
|
|
16201
|
-
if (
|
|
16202
|
-
if (selection.fields)
|
|
16203
|
-
else
|
|
16201
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
16202
|
+
if (selection.fields) _chunk4CPRZPRQjs.printJson.call(void 0, play, selection.fields);
|
|
16203
|
+
else _chunk4CPRZPRQjs.printCompactJson.call(void 0, play);
|
|
16204
16204
|
return 0;
|
|
16205
16205
|
}
|
|
16206
16206
|
printPlayDescription(play);
|
|
@@ -16222,7 +16222,7 @@ async function handlePlaySave(args) {
|
|
|
16222
16222
|
}
|
|
16223
16223
|
let graph;
|
|
16224
16224
|
try {
|
|
16225
|
-
graph = await
|
|
16225
|
+
graph = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
16226
16226
|
"cli.play_save_bundle_graph",
|
|
16227
16227
|
{ targetKind: "file" },
|
|
16228
16228
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -16244,7 +16244,7 @@ async function handlePlaySave(args) {
|
|
|
16244
16244
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
16245
16245
|
};
|
|
16246
16246
|
if (options.jsonOutput) {
|
|
16247
|
-
|
|
16247
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, result);
|
|
16248
16248
|
} else {
|
|
16249
16249
|
console.error(result.message);
|
|
16250
16250
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -16266,7 +16266,7 @@ async function handlePlaySave(args) {
|
|
|
16266
16266
|
};
|
|
16267
16267
|
if (options.dryRun) {
|
|
16268
16268
|
if (options.jsonOutput) {
|
|
16269
|
-
|
|
16269
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, dryRun);
|
|
16270
16270
|
} else {
|
|
16271
16271
|
console.log(`Dry run: ${playName}`);
|
|
16272
16272
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16275,14 +16275,14 @@ async function handlePlaySave(args) {
|
|
|
16275
16275
|
}
|
|
16276
16276
|
return 0;
|
|
16277
16277
|
}
|
|
16278
|
-
const client = new (0,
|
|
16278
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
16279
16279
|
try {
|
|
16280
|
-
await
|
|
16280
|
+
await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
16281
16281
|
"cli.play_save_compile_manifests",
|
|
16282
16282
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16283
16283
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
16284
16284
|
);
|
|
16285
|
-
const saved = await
|
|
16285
|
+
const saved = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
16286
16286
|
"cli.play_save_register_draft",
|
|
16287
16287
|
{ targetKind: "file", playName, artifactHash },
|
|
16288
16288
|
() => client.registerPlayArtifact({
|
|
@@ -16311,7 +16311,7 @@ async function handlePlaySave(args) {
|
|
|
16311
16311
|
}
|
|
16312
16312
|
};
|
|
16313
16313
|
if (options.jsonOutput) {
|
|
16314
|
-
|
|
16314
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, result);
|
|
16315
16315
|
} else {
|
|
16316
16316
|
console.log(
|
|
16317
16317
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -16337,7 +16337,7 @@ async function handlePlayPublish(args) {
|
|
|
16337
16337
|
}
|
|
16338
16338
|
const { target: playName, useLatest } = options;
|
|
16339
16339
|
let revisionId = options.revisionId;
|
|
16340
|
-
const client = new (0,
|
|
16340
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
16341
16341
|
if (isFileTarget2(playName)) {
|
|
16342
16342
|
if (revisionId || useLatest) {
|
|
16343
16343
|
console.error(
|
|
@@ -16347,7 +16347,7 @@ async function handlePlayPublish(args) {
|
|
|
16347
16347
|
}
|
|
16348
16348
|
let graph;
|
|
16349
16349
|
try {
|
|
16350
|
-
graph = await
|
|
16350
|
+
graph = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
16351
16351
|
"cli.play_publish_bundle_graph",
|
|
16352
16352
|
{ targetKind: "file" },
|
|
16353
16353
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -16369,7 +16369,7 @@ async function handlePlayPublish(args) {
|
|
|
16369
16369
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
16370
16370
|
};
|
|
16371
16371
|
if (options.jsonOutput) {
|
|
16372
|
-
|
|
16372
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, result3);
|
|
16373
16373
|
} else {
|
|
16374
16374
|
console.error(result3.message);
|
|
16375
16375
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -16392,7 +16392,7 @@ async function handlePlayPublish(args) {
|
|
|
16392
16392
|
};
|
|
16393
16393
|
if (options.dryRun) {
|
|
16394
16394
|
if (options.jsonOutput) {
|
|
16395
|
-
|
|
16395
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, dryRun);
|
|
16396
16396
|
} else {
|
|
16397
16397
|
console.log(`Dry run: ${rootPlayName}`);
|
|
16398
16398
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16411,12 +16411,12 @@ async function handlePlayPublish(args) {
|
|
|
16411
16411
|
}
|
|
16412
16412
|
}
|
|
16413
16413
|
try {
|
|
16414
|
-
await
|
|
16414
|
+
await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
16415
16415
|
"cli.play_publish_compile_manifests",
|
|
16416
16416
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16417
16417
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
16418
16418
|
);
|
|
16419
|
-
await
|
|
16419
|
+
await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
16420
16420
|
"cli.play_publish_imports",
|
|
16421
16421
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16422
16422
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -16425,7 +16425,7 @@ async function handlePlayPublish(args) {
|
|
|
16425
16425
|
console.error(error instanceof Error ? error.message : String(error));
|
|
16426
16426
|
return 1;
|
|
16427
16427
|
}
|
|
16428
|
-
const published = await
|
|
16428
|
+
const published = await _chunkPK55NFM5js.traceCliSpan.call(void 0,
|
|
16429
16429
|
"cli.play_publish_register_root",
|
|
16430
16430
|
{
|
|
16431
16431
|
targetKind: "file",
|
|
@@ -16460,7 +16460,7 @@ async function handlePlayPublish(args) {
|
|
|
16460
16460
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
16461
16461
|
};
|
|
16462
16462
|
if (options.jsonOutput) {
|
|
16463
|
-
|
|
16463
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, result2);
|
|
16464
16464
|
} else {
|
|
16465
16465
|
printPublishReceipt({
|
|
16466
16466
|
name: rootPlayName,
|
|
@@ -16491,7 +16491,7 @@ async function handlePlayPublish(args) {
|
|
|
16491
16491
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
16492
16492
|
latest: useLatest
|
|
16493
16493
|
};
|
|
16494
|
-
|
|
16494
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, result2);
|
|
16495
16495
|
return 0;
|
|
16496
16496
|
}
|
|
16497
16497
|
const resolvedName = parseReferencedPlayTarget2(playName).playName;
|
|
@@ -16515,7 +16515,7 @@ async function handlePlayPublish(args) {
|
|
|
16515
16515
|
revisionId ? { revisionId } : {}
|
|
16516
16516
|
);
|
|
16517
16517
|
if (options.jsonOutput) {
|
|
16518
|
-
|
|
16518
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, result);
|
|
16519
16519
|
} else {
|
|
16520
16520
|
printPublishReceipt({
|
|
16521
16521
|
name: result.name,
|
|
@@ -16555,7 +16555,7 @@ async function handlePlayDelete(args) {
|
|
|
16555
16555
|
);
|
|
16556
16556
|
return 2;
|
|
16557
16557
|
}
|
|
16558
|
-
const client = new (0,
|
|
16558
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
16559
16559
|
let detail;
|
|
16560
16560
|
try {
|
|
16561
16561
|
detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
|
|
@@ -16579,8 +16579,8 @@ async function handlePlayDelete(args) {
|
|
|
16579
16579
|
name: resolvedName,
|
|
16580
16580
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
16581
16581
|
};
|
|
16582
|
-
if (
|
|
16583
|
-
|
|
16582
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
16583
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, result2);
|
|
16584
16584
|
} else {
|
|
16585
16585
|
process.stdout.write(
|
|
16586
16586
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16590,8 +16590,8 @@ async function handlePlayDelete(args) {
|
|
|
16590
16590
|
return 0;
|
|
16591
16591
|
}
|
|
16592
16592
|
const result = await client.deletePlay(resolvedName);
|
|
16593
|
-
if (
|
|
16594
|
-
|
|
16593
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
16594
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, result);
|
|
16595
16595
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16596
16596
|
}
|
|
16597
16597
|
if (result.alreadyArchived) {
|
|
@@ -16630,13 +16630,13 @@ async function handlePlayRestore(args) {
|
|
|
16630
16630
|
);
|
|
16631
16631
|
return 2;
|
|
16632
16632
|
}
|
|
16633
|
-
const client = new (0,
|
|
16633
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
16634
16634
|
try {
|
|
16635
16635
|
const result = await client.restorePlay(
|
|
16636
16636
|
parseReferencedPlayTarget2(playName).playName
|
|
16637
16637
|
);
|
|
16638
|
-
if (
|
|
16639
|
-
|
|
16638
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
16639
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, result);
|
|
16640
16640
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16641
16641
|
}
|
|
16642
16642
|
if (result.alreadyActive) {
|
|
@@ -16749,21 +16749,21 @@ Common commands:
|
|
|
16749
16749
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16750
16750
|
}
|
|
16751
16751
|
};
|
|
16752
|
-
|
|
16752
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0, result2, {
|
|
16753
16753
|
json: options.json,
|
|
16754
16754
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16755
16755
|
`
|
|
16756
16756
|
});
|
|
16757
16757
|
return;
|
|
16758
16758
|
}
|
|
16759
|
-
const client = new (0,
|
|
16759
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
16760
16760
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16761
16761
|
throw new Error(
|
|
16762
16762
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16763
16763
|
);
|
|
16764
16764
|
}
|
|
16765
16765
|
const result = await client.startPlayRun(saved.request);
|
|
16766
|
-
|
|
16766
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
16767
16767
|
{ ...result },
|
|
16768
16768
|
{
|
|
16769
16769
|
json: options.json,
|
|
@@ -16799,7 +16799,7 @@ Examples:
|
|
|
16799
16799
|
).action(async (target, options) => {
|
|
16800
16800
|
process.exitCode = await handlePlayCheck([
|
|
16801
16801
|
target,
|
|
16802
|
-
...
|
|
16802
|
+
..._chunk4CPRZPRQjs.jsonFieldArgs.call(void 0, options.json),
|
|
16803
16803
|
...options.full ? ["--full"] : []
|
|
16804
16804
|
]);
|
|
16805
16805
|
});
|
|
@@ -16922,9 +16922,11 @@ Examples:
|
|
|
16922
16922
|
).option("--no-wait", "Start the run and return immediately").option(
|
|
16923
16923
|
"--workflow-id <id>",
|
|
16924
16924
|
"Reconcile or replay the same immutable request with its original caller run ID"
|
|
16925
|
-
).
|
|
16926
|
-
|
|
16927
|
-
|
|
16925
|
+
).addOption(
|
|
16926
|
+
new (0, _commander.Option)(
|
|
16927
|
+
"--max-total-credits <credits>",
|
|
16928
|
+
"Require a strict total spend ceiling including compute; unbounded work is refused before admission"
|
|
16929
|
+
).hideHelp()
|
|
16928
16930
|
).option(
|
|
16929
16931
|
"--run-id-file <path>",
|
|
16930
16932
|
"Atomically write the accepted run id to a new JSON file"
|
|
@@ -16988,10 +16990,10 @@ JSON field selection:
|
|
|
16988
16990
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16989
16991
|
options,
|
|
16990
16992
|
passthroughArgs,
|
|
16991
|
-
|
|
16993
|
+
_chunkPK55NFM5js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16992
16994
|
)
|
|
16993
16995
|
);
|
|
16994
|
-
|
|
16996
|
+
_chunkPK55NFM5js.recordCliTrace.call(void 0, {
|
|
16995
16997
|
phase: "cli.play_command_exit",
|
|
16996
16998
|
exitCode
|
|
16997
16999
|
});
|
|
@@ -17041,9 +17043,9 @@ Examples:
|
|
|
17041
17043
|
const limit = Number(options.historyLimit);
|
|
17042
17044
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
17043
17045
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
17044
|
-
const client = new (0,
|
|
17046
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
17045
17047
|
if (options.binding) {
|
|
17046
|
-
|
|
17048
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0,
|
|
17047
17049
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
17048
17050
|
);
|
|
17049
17051
|
return;
|
|
@@ -17051,7 +17053,7 @@ Examples:
|
|
|
17051
17053
|
const result = await client.listPlayTriggerInventory({
|
|
17052
17054
|
cursor: options.cursor
|
|
17053
17055
|
});
|
|
17054
|
-
|
|
17056
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, {
|
|
17055
17057
|
...result,
|
|
17056
17058
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
17057
17059
|
});
|
|
@@ -17098,7 +17100,7 @@ Examples:
|
|
|
17098
17100
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
17099
17101
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
17100
17102
|
}
|
|
17101
|
-
const result = await new (0,
|
|
17103
|
+
const result = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().getPlaysActivity({
|
|
17102
17104
|
timeZone: options.timeZone,
|
|
17103
17105
|
days,
|
|
17104
17106
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -17112,7 +17114,7 @@ Examples:
|
|
|
17112
17114
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
17113
17115
|
);
|
|
17114
17116
|
}
|
|
17115
|
-
|
|
17117
|
+
_chunk4CPRZPRQjs.printCommandEnvelope.call(void 0,
|
|
17116
17118
|
{ ...result },
|
|
17117
17119
|
{
|
|
17118
17120
|
json: Boolean(options.json),
|
|
@@ -17141,7 +17143,7 @@ Examples:
|
|
|
17141
17143
|
false
|
|
17142
17144
|
);
|
|
17143
17145
|
});
|
|
17144
|
-
|
|
17146
|
+
_chunkJR4FDOWRjs.registerDeprecatedSearchCommand.call(void 0,
|
|
17145
17147
|
play,
|
|
17146
17148
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
17147
17149
|
);
|
|
@@ -17184,7 +17186,7 @@ Examples:
|
|
|
17184
17186
|
);
|
|
17185
17187
|
_chunk27GJKC5Qjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
17186
17188
|
async (target, options) => {
|
|
17187
|
-
const ownView = () => handlePlayDescribe(
|
|
17189
|
+
const ownView = () => handlePlayDescribe(_chunk4CPRZPRQjs.describeArgs.call(void 0, target, options));
|
|
17188
17190
|
const [flagText] = [options.json].filter(
|
|
17189
17191
|
(value) => typeof value === "string"
|
|
17190
17192
|
);
|
|
@@ -17195,7 +17197,7 @@ Examples:
|
|
|
17195
17197
|
process.exitCode = await ownView();
|
|
17196
17198
|
return;
|
|
17197
17199
|
}
|
|
17198
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
17200
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-66HDJGQI.js")));
|
|
17199
17201
|
process.exitCode = await describeAnything(
|
|
17200
17202
|
name,
|
|
17201
17203
|
{
|
|
@@ -17313,7 +17315,7 @@ Examples:
|
|
|
17313
17315
|
deepline plays deployments <deployment-id>
|
|
17314
17316
|
`
|
|
17315
17317
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
17316
|
-
async (id, options) => id ?
|
|
17318
|
+
async (id, options) => id ? _chunkRHOY4RXIjs.handleDeploymentGet.call(void 0, id, options) : _chunkRHOY4RXIjs.handleDeploymentsList.call(void 0, options)
|
|
17317
17319
|
);
|
|
17318
17320
|
addPublishHelp(
|
|
17319
17321
|
play.command("publish <target>").description(
|
|
@@ -17448,14 +17450,14 @@ Examples:
|
|
|
17448
17450
|
const limit = Number(options.limit);
|
|
17449
17451
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
17450
17452
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
17451
|
-
const result = await new (0,
|
|
17453
|
+
const result = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().runs.rowHistory({
|
|
17452
17454
|
playName: options.play,
|
|
17453
17455
|
runId,
|
|
17454
17456
|
tableNamespace: options.dataset,
|
|
17455
17457
|
limit,
|
|
17456
17458
|
cursor: options.cursor
|
|
17457
17459
|
});
|
|
17458
|
-
|
|
17460
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, {
|
|
17459
17461
|
...result,
|
|
17460
17462
|
...result.nextCursor ? {
|
|
17461
17463
|
next: `deepline runs rows-history ${_chunkAID3OYVJjs.shellQuote.call(void 0, runId)} --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor)} --json`
|
|
@@ -17525,7 +17527,7 @@ Examples:
|
|
|
17525
17527
|
).action(async (runId, options) => {
|
|
17526
17528
|
process.exitCode = await handleRunGet([
|
|
17527
17529
|
runId,
|
|
17528
|
-
...
|
|
17530
|
+
..._chunk4CPRZPRQjs.jsonFieldArgs.call(void 0, options.json),
|
|
17529
17531
|
...options.webUrl ? ["--web-url"] : [],
|
|
17530
17532
|
...options.full ? ["--full"] : [],
|
|
17531
17533
|
...options.input ? ["--input"] : [],
|
|
@@ -17811,7 +17813,7 @@ Examples:
|
|
|
17811
17813
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17812
17814
|
...options.wait ? ["--wait"] : [],
|
|
17813
17815
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17814
|
-
...
|
|
17816
|
+
..._chunk4CPRZPRQjs.jsonFieldArgs.call(void 0, options.json)
|
|
17815
17817
|
]);
|
|
17816
17818
|
});
|
|
17817
17819
|
const share = play.command("share").description(
|
|
@@ -17977,10 +17979,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17977
17979
|
return 2;
|
|
17978
17980
|
}
|
|
17979
17981
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17980
|
-
const status = await new (0,
|
|
17982
|
+
const status = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().getSharePage(name);
|
|
17981
17983
|
const outputStatus = shareStatusForOutput(status);
|
|
17982
|
-
if (
|
|
17983
|
-
|
|
17984
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
17985
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, outputStatus);
|
|
17984
17986
|
return 0;
|
|
17985
17987
|
}
|
|
17986
17988
|
if (!outputStatus.share) {
|
|
@@ -18019,7 +18021,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18019
18021
|
return 2;
|
|
18020
18022
|
}
|
|
18021
18023
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18022
|
-
const client = new (0,
|
|
18024
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
18023
18025
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18024
18026
|
let resolvedVersion;
|
|
18025
18027
|
if (!revisionId) {
|
|
@@ -18050,8 +18052,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18050
18052
|
);
|
|
18051
18053
|
if (!hasCompleted) {
|
|
18052
18054
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18053
|
-
if (
|
|
18054
|
-
|
|
18055
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
18056
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, {
|
|
18055
18057
|
ok: false,
|
|
18056
18058
|
code: "NO_SUCCESSFUL_RUN",
|
|
18057
18059
|
message,
|
|
@@ -18075,8 +18077,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18075
18077
|
};
|
|
18076
18078
|
if (args.includes("--dry-run")) {
|
|
18077
18079
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
18078
|
-
if (
|
|
18079
|
-
|
|
18080
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
18081
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, plan);
|
|
18080
18082
|
} else {
|
|
18081
18083
|
console.log(
|
|
18082
18084
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -18086,8 +18088,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18086
18088
|
}
|
|
18087
18089
|
const status = await client.publishSharePage(name, request);
|
|
18088
18090
|
const outputStatus = shareStatusForOutput(status);
|
|
18089
|
-
if (
|
|
18090
|
-
|
|
18091
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
18092
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, outputStatus);
|
|
18091
18093
|
return 0;
|
|
18092
18094
|
}
|
|
18093
18095
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18118,9 +18120,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
18118
18120
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
18119
18121
|
...seoIndexing ? { seoIndexing } : {}
|
|
18120
18122
|
};
|
|
18121
|
-
const status = await new (0,
|
|
18122
|
-
if (
|
|
18123
|
-
|
|
18123
|
+
const status = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().updateSharePage(name, request);
|
|
18124
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
18125
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, status);
|
|
18124
18126
|
return 0;
|
|
18125
18127
|
}
|
|
18126
18128
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -18135,7 +18137,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18135
18137
|
return 2;
|
|
18136
18138
|
}
|
|
18137
18139
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18138
|
-
const client = new (0,
|
|
18140
|
+
const client = new (0, _chunkN3EF5WQVjs.DeeplineClient)();
|
|
18139
18141
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18140
18142
|
const versionFlag = shareFlagValue(args, "--version");
|
|
18141
18143
|
if (!revisionId && versionFlag) {
|
|
@@ -18152,8 +18154,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18152
18154
|
revisionId ? { revisionId } : {}
|
|
18153
18155
|
);
|
|
18154
18156
|
const outputStatus = shareStatusForOutput(status);
|
|
18155
|
-
if (
|
|
18156
|
-
|
|
18157
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
18158
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, outputStatus);
|
|
18157
18159
|
return 0;
|
|
18158
18160
|
}
|
|
18159
18161
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18178,9 +18180,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
18178
18180
|
return 2;
|
|
18179
18181
|
}
|
|
18180
18182
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18181
|
-
const status = await new (0,
|
|
18182
|
-
if (
|
|
18183
|
-
|
|
18183
|
+
const status = await new (0, _chunkN3EF5WQVjs.DeeplineClient)().unpublishSharePage(name);
|
|
18184
|
+
if (_chunk4CPRZPRQjs.argsWantJson.call(void 0, args)) {
|
|
18185
|
+
_chunk4CPRZPRQjs.printCompactJson.call(void 0, status);
|
|
18184
18186
|
return 0;
|
|
18185
18187
|
}
|
|
18186
18188
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|