deepline 0.3.447 → 0.3.448
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/cli/{auth-COGJHSV4.mjs → auth-HAJKEPAE.mjs} +4 -4
- package/dist/cli/auth-HUJ3DIQI.js +40 -0
- package/dist/cli/{billing-LMW3OXJG.mjs → billing-CMA2G5Y4.mjs} +4 -4
- package/dist/cli/{billing-O4VZKEBX.js → billing-ZGQY3GVK.js} +73 -73
- package/dist/cli/{chunk-RTP24G2N.mjs → chunk-2BKTT44A.mjs} +1 -1
- package/dist/cli/{chunk-XQTTO5ZK.mjs → chunk-2GVRS7UB.mjs} +3 -3
- package/dist/cli/{chunk-G3QV4EOW.mjs → chunk-33KZX7WI.mjs} +3 -3
- package/dist/cli/{chunk-BJ5JX32Q.mjs → chunk-5XOPYIT6.mjs} +3 -3
- package/dist/cli/{chunk-DXMNRVCV.js → chunk-6X5G45GR.js} +20 -20
- package/dist/cli/{chunk-7DEPUMTR.js → chunk-7XUVB46D.js} +8 -8
- package/dist/cli/{chunk-SVSWKNUO.js → chunk-CB3Y7THP.js} +1 -1
- package/dist/cli/{chunk-U57YILAD.js → chunk-DBNTO3T4.js} +2 -2
- package/dist/cli/{chunk-VFK2XNEX.js → chunk-DCQP53KU.js} +26 -26
- package/dist/cli/{chunk-LJE4SJYM.js → chunk-DP6CINW2.js} +10 -10
- package/dist/cli/{chunk-JNO7JR6A.mjs → chunk-H54AY3OO.mjs} +2 -2
- package/dist/cli/{chunk-6EQRPWRM.mjs → chunk-HOLESVLX.mjs} +8 -8
- package/dist/cli/{chunk-7Y6TUHBC.mjs → chunk-JETVD7NN.mjs} +2 -2
- package/dist/cli/{chunk-DQJOTP5P.js → chunk-JYZVM2VV.js} +35 -35
- package/dist/cli/{chunk-ETLBBI6B.mjs → chunk-K5M6UG3D.mjs} +1 -1
- package/dist/cli/{chunk-TFFZZSOA.js → chunk-LNBSMAUK.js} +50 -50
- package/dist/cli/{chunk-HTAXXY66.js → chunk-NMJ4D2WO.js} +8 -1
- package/dist/cli/{chunk-POS24KGO.js → chunk-PGE4JW7C.js} +6 -6
- package/dist/cli/{chunk-O2WRDCE6.mjs → chunk-PVG52FJA.mjs} +2 -2
- package/dist/cli/{chunk-GC7P7QC4.js → chunk-PVNPEQCM.js} +52 -52
- package/dist/cli/{chunk-AWV47AZQ.mjs → chunk-QS5BY6FO.mjs} +5 -5
- package/dist/cli/{chunk-CO3S56DX.mjs → chunk-R2GLGLDR.mjs} +8 -1
- package/dist/cli/{chunk-DOTKSF3L.mjs → chunk-R76RSTHC.mjs} +1 -1
- package/dist/cli/{chunk-VN2S5AD7.mjs → chunk-SXPQ4ZSU.mjs} +2 -2
- package/dist/cli/{chunk-3HQHWCXO.js → chunk-TBTIA6U4.js} +81 -81
- package/dist/cli/{chunk-4OGNPUTA.js → chunk-TEPZMKN7.js} +4 -4
- package/dist/cli/{chunk-AZ3I7WXB.js → chunk-TKOVC3AP.js} +6 -6
- package/dist/cli/{chunk-3T74FJWG.mjs → chunk-TOLQMV5C.mjs} +4 -4
- package/dist/cli/{chunk-F4IUMSC6.js → chunk-WYU4UYJN.js} +2 -2
- package/dist/cli/{chunk-XPZVU6DO.mjs → chunk-XM6A4V77.mjs} +1 -1
- package/dist/cli/{chunk-JRQFJMP5.mjs → chunk-XXHLFL3J.mjs} +1 -1
- package/dist/cli/{chunk-H5YDQBLP.mjs → chunk-YTWQ4G4P.mjs} +1 -1
- package/dist/cli/{chunk-QSKHP36B.js → chunk-Z6SRBSI2.js} +16 -16
- package/dist/cli/{chunk-5FRUCHTH.js → chunk-ZNEU3KF2.js} +8 -8
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-THN4ZLUI.mjs → csv-64TF4NDO.mjs} +3 -3
- package/dist/cli/{csv-TKHPVZTQ.js → csv-FTRQZV3H.js} +12 -12
- package/dist/cli/{db-JRFN65AN.js → db-REW2BPP6.js} +25 -25
- package/dist/cli/{db-4OLJNFTE.mjs → db-RZUHE4GB.mjs} +4 -4
- package/dist/cli/{describe-OER7TYUP.js → describe-3X7HQ3JN.js} +16 -16
- package/dist/cli/{describe-PC2VEBPG.mjs → describe-XU7JL4VM.mjs} +12 -12
- package/dist/cli/{executions-UCUKWRNI.mjs → executions-LFDOGILB.mjs} +4 -4
- package/dist/cli/{executions-H4GQTNRL.js → executions-Y42LOK2X.js} +6 -6
- package/dist/cli/{feedback-4N3WCV2J.js → feedback-LIKR4GUV.js} +7 -7
- package/dist/cli/{feedback-GYMC5YZB.mjs → feedback-LRF3UIQM.mjs} +3 -3
- package/dist/cli/git-BH7ZZPCT.js +24 -0
- package/dist/cli/{git-AXXF7WZP.mjs → git-GGJXLHN2.mjs} +4 -4
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-GOH56MJB.mjs → legacy-noops-QW3P53AG.mjs} +4 -4
- package/dist/cli/{legacy-noops-N7OL7HA5.js → legacy-noops-SJMC6NR5.js} +7 -7
- package/dist/cli/{monitors-57FT6XVT.mjs → monitors-Q2UZTDFC.mjs} +4 -4
- package/dist/cli/{monitors-JH63QWM2.js → monitors-VRM5AA7T.js} +84 -84
- package/dist/cli/{org-SWUF6IMF.mjs → org-BIUKWUM4.mjs} +4 -4
- package/dist/cli/{org-2XHVAWMG.js → org-F7OCO7BT.js} +66 -66
- package/dist/cli/{play-ZFOIZD4I.js → play-3WJID2EB.js} +283 -283
- package/dist/cli/{play-5LWJRKWA.mjs → play-HK6V5JO5.mjs} +10 -10
- package/dist/cli/{providers-D4C2JSKB.mjs → providers-RM2PBFPD.mjs} +4 -4
- package/dist/cli/{providers-74MVZVMN.js → providers-X3KZO4PN.js} +7 -7
- package/dist/cli/{quickstart-2UBYYZZ2.mjs → quickstart-L7CAMJUL.mjs} +3 -3
- package/dist/cli/{quickstart-V2VPGBNV.js → quickstart-TKNR4AHF.js} +5 -5
- package/dist/cli/search-65KJJGHQ.js +30 -0
- package/dist/cli/{search-AEF4GNGW.mjs → search-XRVV24KN.mjs} +5 -5
- package/dist/cli/{secrets-HOPL4L2K.js → secrets-K3BXJVSB.js} +13 -13
- package/dist/cli/{secrets-LSA45EST.mjs → secrets-W6IACZAX.mjs} +4 -4
- package/dist/cli/{sessions-ZDW2TWJD.mjs → sessions-CITACQM6.mjs} +4 -4
- package/dist/cli/{sessions-YAO2R3VM.js → sessions-WX6DSVSN.js} +5 -5
- package/dist/cli/{settings-5NVBSJE3.js → settings-MQTTUMWY.js} +75 -75
- package/dist/cli/{settings-L7VDUB4S.mjs → settings-W7JDSM35.mjs} +8 -8
- package/dist/cli/{setup-2SNQ6KRO.mjs → setup-EQ64XDNX.mjs} +7 -7
- package/dist/cli/{setup-E2KCE7JQ.js → setup-OWHEIGVW.js} +42 -42
- package/dist/cli/skills-5AXKZGMJ.js +29 -0
- package/dist/cli/{skills-3AJAHTG3.mjs → skills-5JBRC5OR.mjs} +5 -5
- package/dist/cli/{tools-VSZOCX3I.mjs → tools-DIXBDNAX.mjs} +12 -12
- package/dist/cli/tools-EXCJ2QMK.js +44 -0
- package/dist/cli/{update-ML7WYXTR.mjs → update-EYIS2XVV.mjs} +7 -7
- package/dist/cli/update-KSIVBEIH.js +31 -0
- package/dist/cli/{workflow-PNOMCXFA.js → workflow-OEKRLGWT.js} +15 -15
- package/dist/cli/{workflow-XW3F2T4N.mjs → workflow-YKFU3E2C.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- 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-MHBOTH5I.js +0 -40
- package/dist/cli/git-LHHJFXJL.js +0 -24
- package/dist/cli/search-LT23PNKG.js +0 -30
- package/dist/cli/skills-UOZ4C3PQ.js +0 -29
- package/dist/cli/tools-4QF5UT7T.js +0 -44
- package/dist/cli/update-MQV3ZPDE.js +0 -31
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
var _chunkPQUUWFXYjs = require('./chunk-PQUUWFXY.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk7XUVB46Djs = require('./chunk-7XUVB46D.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkDCQP53KUjs = require('./chunk-DCQP53KU.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkZ2XUZC34js = require('./chunk-Z2XUZC34.js');
|
|
@@ -49,7 +49,7 @@ require('./chunk-VKKVSFRD.js');
|
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var _chunkDP6CINW2js = require('./chunk-DP6CINW2.js');
|
|
53
53
|
require('./chunk-E4CABWXL.js');
|
|
54
54
|
|
|
55
55
|
|
|
@@ -70,17 +70,17 @@ require('./chunk-XDVT3GOM.js');
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _chunkTKOVC3APjs = require('./chunk-TKOVC3AP.js');
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkDBNTO3T4js = require('./chunk-DBNTO3T4.js');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
83
|
-
var
|
|
83
|
+
var _chunkPVNPEQCMjs = require('./chunk-PVNPEQCM.js');
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
@@ -95,16 +95,16 @@ var _chunkGC7P7QC4js = require('./chunk-GC7P7QC4.js');
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
98
|
+
var _chunkPGE4JW7Cjs = require('./chunk-PGE4JW7C.js');
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
var
|
|
101
|
+
var _chunkTEPZMKN7js = require('./chunk-TEPZMKN7.js');
|
|
102
102
|
require('./chunk-ALJJRZNJ.js');
|
|
103
103
|
require('./chunk-XNYIZMNQ.js');
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
107
|
-
require('./chunk-
|
|
107
|
+
require('./chunk-CB3Y7THP.js');
|
|
108
108
|
require('./chunk-OG64RBAC.js');
|
|
109
109
|
|
|
110
110
|
|
|
@@ -2086,7 +2086,7 @@ function resolveField(key, command) {
|
|
|
2086
2086
|
function printSettings(result, json, name) {
|
|
2087
2087
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2088
2088
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2089
|
-
|
|
2089
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
2090
2090
|
{
|
|
2091
2091
|
...result,
|
|
2092
2092
|
settings: Object.fromEntries(
|
|
@@ -2130,7 +2130,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2130
2130
|
valueSyntax: field.cli.valueSyntax,
|
|
2131
2131
|
examples: field.cli.examples
|
|
2132
2132
|
}));
|
|
2133
|
-
|
|
2133
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
2134
2134
|
{
|
|
2135
2135
|
fields: descriptions,
|
|
2136
2136
|
render: {
|
|
@@ -2155,7 +2155,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2155
2155
|
async (options, command) => {
|
|
2156
2156
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2157
2157
|
printSettings(
|
|
2158
|
-
await new (0,
|
|
2158
|
+
await new (0, _chunkDP6CINW2js.DeeplineClient)().getPlaySettings(options.play),
|
|
2159
2159
|
options.json,
|
|
2160
2160
|
options.name
|
|
2161
2161
|
);
|
|
@@ -2186,7 +2186,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2186
2186
|
);
|
|
2187
2187
|
}
|
|
2188
2188
|
if (options.dryRun) {
|
|
2189
|
-
|
|
2189
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
2190
2190
|
{
|
|
2191
2191
|
dryRun: true,
|
|
2192
2192
|
play,
|
|
@@ -2207,7 +2207,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2207
2207
|
return;
|
|
2208
2208
|
}
|
|
2209
2209
|
printSettings(
|
|
2210
|
-
await new (0,
|
|
2210
|
+
await new (0, _chunkDP6CINW2js.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2211
2211
|
options.json
|
|
2212
2212
|
);
|
|
2213
2213
|
};
|
|
@@ -2233,13 +2233,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2233
2233
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2234
2234
|
{ exitCode: 2 }
|
|
2235
2235
|
);
|
|
2236
|
-
const page = await new (0,
|
|
2236
|
+
const page = await new (0, _chunkDP6CINW2js.DeeplineClient)().listPlaySettingsPaths({
|
|
2237
2237
|
root: options.root,
|
|
2238
2238
|
limit,
|
|
2239
2239
|
cursor: options.cursor
|
|
2240
2240
|
});
|
|
2241
2241
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2242
|
-
|
|
2242
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
2243
2243
|
{
|
|
2244
2244
|
...page,
|
|
2245
2245
|
nextCommand,
|
|
@@ -2290,7 +2290,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2290
2290
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2291
2291
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2292
2292
|
};
|
|
2293
|
-
const client = new (0,
|
|
2293
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
2294
2294
|
const paths = [];
|
|
2295
2295
|
let cursor;
|
|
2296
2296
|
do {
|
|
@@ -2352,7 +2352,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2352
2352
|
moved.push(move.playName);
|
|
2353
2353
|
}
|
|
2354
2354
|
}
|
|
2355
|
-
|
|
2355
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
2356
2356
|
{
|
|
2357
2357
|
dryRun: Boolean(options.dryRun),
|
|
2358
2358
|
from: options.from,
|
|
@@ -2480,7 +2480,7 @@ function triggerLines(view) {
|
|
|
2480
2480
|
return lines;
|
|
2481
2481
|
}
|
|
2482
2482
|
function printView(view, json) {
|
|
2483
|
-
|
|
2483
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
2484
2484
|
{
|
|
2485
2485
|
...view,
|
|
2486
2486
|
render: {
|
|
@@ -2493,7 +2493,7 @@ function printView(view, json) {
|
|
|
2493
2493
|
);
|
|
2494
2494
|
}
|
|
2495
2495
|
function printResult(result, json) {
|
|
2496
|
-
|
|
2496
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
2497
2497
|
{
|
|
2498
2498
|
...result,
|
|
2499
2499
|
render: {
|
|
@@ -2523,7 +2523,7 @@ async function mutate(command, options, build) {
|
|
|
2523
2523
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2524
2524
|
}
|
|
2525
2525
|
if (options.dryRun) {
|
|
2526
|
-
|
|
2526
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
2527
2527
|
{
|
|
2528
2528
|
dryRun: true,
|
|
2529
2529
|
play: options.play,
|
|
@@ -2542,7 +2542,7 @@ async function mutate(command, options, build) {
|
|
|
2542
2542
|
return;
|
|
2543
2543
|
}
|
|
2544
2544
|
printResult(
|
|
2545
|
-
await new (0,
|
|
2545
|
+
await new (0, _chunkDP6CINW2js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2546
2546
|
options.json
|
|
2547
2547
|
);
|
|
2548
2548
|
}
|
|
@@ -2575,7 +2575,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2575
2575
|
}).addHelpText("after", help2);
|
|
2576
2576
|
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) => {
|
|
2577
2577
|
printView(
|
|
2578
|
-
await new (0,
|
|
2578
|
+
await new (0, _chunkDP6CINW2js.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2579
2579
|
options.json
|
|
2580
2580
|
);
|
|
2581
2581
|
});
|
|
@@ -2619,7 +2619,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2619
2619
|
if (options.auth === void 0) {
|
|
2620
2620
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2621
2621
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2622
|
-
const current = await new (0,
|
|
2622
|
+
const current = await new (0, _chunkDP6CINW2js.DeeplineClient)().getPlayTriggerConfig(
|
|
2623
2623
|
options.play
|
|
2624
2624
|
);
|
|
2625
2625
|
return {
|
|
@@ -2696,7 +2696,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2696
2696
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2697
2697
|
"runtime.event": "Other event."
|
|
2698
2698
|
};
|
|
2699
|
-
var RUN_LOGS_KIND_HELP =
|
|
2699
|
+
var RUN_LOGS_KIND_HELP = _chunkDP6CINW2js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2700
2700
|
kind,
|
|
2701
2701
|
description: KIND_DESCRIPTIONS[kind]
|
|
2702
2702
|
}));
|
|
@@ -2833,9 +2833,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2833
2833
|
const args = program.args;
|
|
2834
2834
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2835
2835
|
error.exitCode = 2;
|
|
2836
|
-
if (
|
|
2837
|
-
|
|
2838
|
-
Object.assign(new (0,
|
|
2836
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2837
|
+
_chunkPGE4JW7Cjs.printJsonError.call(void 0,
|
|
2838
|
+
Object.assign(new (0, _chunkDP6CINW2js.RunEventQueryInputError)(error.message), {
|
|
2839
2839
|
exitCode: 2,
|
|
2840
2840
|
retryable: false
|
|
2841
2841
|
})
|
|
@@ -2879,14 +2879,14 @@ function parseQuery(args, resource) {
|
|
|
2879
2879
|
if (VALUE_FLAGS.has(flag)) {
|
|
2880
2880
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2881
2881
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2882
|
-
throw new (0,
|
|
2882
|
+
throw new (0, _chunkDP6CINW2js.RunEventQueryInputError)(
|
|
2883
2883
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2884
2884
|
);
|
|
2885
2885
|
}
|
|
2886
2886
|
if (flag === "--sum") sums.push(value);
|
|
2887
2887
|
else {
|
|
2888
2888
|
if (values[flag] !== void 0) {
|
|
2889
|
-
throw new (0,
|
|
2889
|
+
throw new (0, _chunkDP6CINW2js.RunEventQueryInputError)(
|
|
2890
2890
|
`${flag} may only be supplied once.`
|
|
2891
2891
|
);
|
|
2892
2892
|
}
|
|
@@ -2900,12 +2900,12 @@ function parseQuery(args, resource) {
|
|
|
2900
2900
|
}
|
|
2901
2901
|
if (arg.startsWith("-")) {
|
|
2902
2902
|
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.";
|
|
2903
|
-
throw new (0,
|
|
2903
|
+
throw new (0, _chunkDP6CINW2js.RunEventQueryInputError)(
|
|
2904
2904
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2905
2905
|
);
|
|
2906
2906
|
}
|
|
2907
2907
|
if (runId !== void 0) {
|
|
2908
|
-
throw new (0,
|
|
2908
|
+
throw new (0, _chunkDP6CINW2js.RunEventQueryInputError)(
|
|
2909
2909
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2910
2910
|
);
|
|
2911
2911
|
}
|
|
@@ -2913,7 +2913,7 @@ function parseQuery(args, resource) {
|
|
|
2913
2913
|
}
|
|
2914
2914
|
if (switches.has("--fields")) {
|
|
2915
2915
|
if (runId !== void 0) {
|
|
2916
|
-
throw new (0,
|
|
2916
|
+
throw new (0, _chunkDP6CINW2js.RunEventQueryInputError)(
|
|
2917
2917
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2918
2918
|
);
|
|
2919
2919
|
}
|
|
@@ -2926,18 +2926,18 @@ function parseQuery(args, resource) {
|
|
|
2926
2926
|
)
|
|
2927
2927
|
];
|
|
2928
2928
|
if (incompatible.length) {
|
|
2929
|
-
throw new (0,
|
|
2929
|
+
throw new (0, _chunkDP6CINW2js.RunEventQueryInputError)(
|
|
2930
2930
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2931
2931
|
);
|
|
2932
2932
|
}
|
|
2933
2933
|
}
|
|
2934
2934
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2935
|
-
throw new (0,
|
|
2935
|
+
throw new (0, _chunkDP6CINW2js.RunEventQueryInputError)(
|
|
2936
2936
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2937
2937
|
);
|
|
2938
2938
|
}
|
|
2939
2939
|
if (sums.length && switches.has("--count")) {
|
|
2940
|
-
throw new (0,
|
|
2940
|
+
throw new (0, _chunkDP6CINW2js.RunEventQueryInputError)(
|
|
2941
2941
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2942
2942
|
);
|
|
2943
2943
|
}
|
|
@@ -2945,7 +2945,7 @@ function parseQuery(args, resource) {
|
|
|
2945
2945
|
if (operation === "count") {
|
|
2946
2946
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2947
2947
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2948
|
-
throw new (0,
|
|
2948
|
+
throw new (0, _chunkDP6CINW2js.RunEventQueryInputError)(
|
|
2949
2949
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2950
2950
|
);
|
|
2951
2951
|
}
|
|
@@ -2980,16 +2980,16 @@ function parseQuery(args, resource) {
|
|
|
2980
2980
|
];
|
|
2981
2981
|
}
|
|
2982
2982
|
}
|
|
2983
|
-
const request =
|
|
2983
|
+
const request = _chunkDP6CINW2js.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2984
2984
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2985
2985
|
const backend = values["--runtime-backend"];
|
|
2986
2986
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2987
|
-
throw new (0,
|
|
2987
|
+
throw new (0, _chunkDP6CINW2js.RunEventQueryInputError)(
|
|
2988
2988
|
"--runtime-backend must be daytona or modal."
|
|
2989
2989
|
);
|
|
2990
2990
|
}
|
|
2991
2991
|
if (backend && !namespace) {
|
|
2992
|
-
throw new (0,
|
|
2992
|
+
throw new (0, _chunkDP6CINW2js.RunEventQueryInputError)(
|
|
2993
2993
|
"--runtime-backend requires --runtime-namespace."
|
|
2994
2994
|
);
|
|
2995
2995
|
}
|
|
@@ -3036,12 +3036,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3036
3036
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3037
3037
|
const record3 = failure;
|
|
3038
3038
|
const status = record3.statusCode;
|
|
3039
|
-
const exitCode = error instanceof
|
|
3039
|
+
const exitCode = error instanceof _chunkDP6CINW2js.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;
|
|
3040
3040
|
const diagnostic = Object.assign(failure, {
|
|
3041
3041
|
exitCode,
|
|
3042
3042
|
retryable: exitCode === 5
|
|
3043
3043
|
});
|
|
3044
|
-
if (
|
|
3044
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) _chunkPGE4JW7Cjs.printJsonError.call(void 0, diagnostic);
|
|
3045
3045
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3046
3046
|
return exitCode;
|
|
3047
3047
|
}
|
|
@@ -3056,7 +3056,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3056
3056
|
...criteria
|
|
3057
3057
|
} = request;
|
|
3058
3058
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3059
|
-
const client = new (0,
|
|
3059
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
3060
3060
|
let result;
|
|
3061
3061
|
if (request.operation === "fields") {
|
|
3062
3062
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3122,13 +3122,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3122
3122
|
lines.push(`Next page: ${nextPage}`);
|
|
3123
3123
|
}
|
|
3124
3124
|
}
|
|
3125
|
-
|
|
3125
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
3126
3126
|
{
|
|
3127
3127
|
...result,
|
|
3128
3128
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3129
3129
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3130
3130
|
},
|
|
3131
|
-
{ json:
|
|
3131
|
+
{ json: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3132
3132
|
` }
|
|
3133
3133
|
);
|
|
3134
3134
|
return 0;
|
|
@@ -4047,7 +4047,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4047
4047
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4048
4048
|
);
|
|
4049
4049
|
}
|
|
4050
|
-
const response = await new (0,
|
|
4050
|
+
const response = await new (0, _chunkDP6CINW2js.DeeplineClient)().runs.getReceipts(runId, {
|
|
4051
4051
|
keys
|
|
4052
4052
|
});
|
|
4053
4053
|
const failed = response.receipts.filter(
|
|
@@ -4059,7 +4059,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4059
4059
|
JSON.stringify(response, null, 2) + "\n",
|
|
4060
4060
|
{ flag: "wx", mode: 384 }
|
|
4061
4061
|
);
|
|
4062
|
-
|
|
4062
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
4063
4063
|
{
|
|
4064
4064
|
runId,
|
|
4065
4065
|
out: options.out,
|
|
@@ -4069,7 +4069,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4069
4069
|
{ json: true }
|
|
4070
4070
|
);
|
|
4071
4071
|
} else {
|
|
4072
|
-
|
|
4072
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4073
4073
|
}
|
|
4074
4074
|
if (failed)
|
|
4075
4075
|
process.exitCode = response.receipts.some(
|
|
@@ -4108,7 +4108,7 @@ includes nextCommand when another page is available.
|
|
|
4108
4108
|
{ exitCode: 2 }
|
|
4109
4109
|
);
|
|
4110
4110
|
}
|
|
4111
|
-
const page = await new (0,
|
|
4111
|
+
const page = await new (0, _chunkDP6CINW2js.DeeplineClient)().runs.children(parentRunId, {
|
|
4112
4112
|
launchKey: options.launchKey,
|
|
4113
4113
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4114
4114
|
limit
|
|
@@ -4123,7 +4123,7 @@ includes nextCommand when another page is available.
|
|
|
4123
4123
|
"--limit",
|
|
4124
4124
|
String(limit)
|
|
4125
4125
|
].join(" ") : null;
|
|
4126
|
-
|
|
4126
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
4127
4127
|
{
|
|
4128
4128
|
parentRunId,
|
|
4129
4129
|
launchKey: options.launchKey,
|
|
@@ -4159,7 +4159,7 @@ async function handleRunsHistory(options) {
|
|
|
4159
4159
|
throw new Error("--limit must be a positive integer.");
|
|
4160
4160
|
}
|
|
4161
4161
|
}
|
|
4162
|
-
const page = await new (0,
|
|
4162
|
+
const page = await new (0, _chunkDP6CINW2js.DeeplineClient)().runs.history({
|
|
4163
4163
|
cursor: options.cursor,
|
|
4164
4164
|
orgId: options.org,
|
|
4165
4165
|
search: options.search,
|
|
@@ -4175,7 +4175,7 @@ async function handleRunsHistory(options) {
|
|
|
4175
4175
|
);
|
|
4176
4176
|
}
|
|
4177
4177
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4178
|
-
|
|
4178
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
4179
4179
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4180
4180
|
options.json ? { json: true } : {}
|
|
4181
4181
|
);
|
|
@@ -4227,12 +4227,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4227
4227
|
return 1;
|
|
4228
4228
|
}
|
|
4229
4229
|
}
|
|
4230
|
-
const result = await new (0,
|
|
4230
|
+
const result = await new (0, _chunkDP6CINW2js.DeeplineClient)().runs.rerun(runId, {
|
|
4231
4231
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4232
4232
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4233
4233
|
});
|
|
4234
|
-
if (
|
|
4235
|
-
|
|
4234
|
+
if (_chunkPGE4JW7Cjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4235
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4236
4236
|
} else {
|
|
4237
4237
|
console.log(
|
|
4238
4238
|
result.deduplicated === true ? `
|
|
@@ -4500,7 +4500,7 @@ function projectRunDatasetCell(value) {
|
|
|
4500
4500
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
4501
4501
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
4502
4502
|
if (typeof logicalValue === "object") {
|
|
4503
|
-
return
|
|
4503
|
+
return _chunkPGE4JW7Cjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
4504
4504
|
}
|
|
4505
4505
|
return logicalValue;
|
|
4506
4506
|
}
|
|
@@ -6971,7 +6971,7 @@ function renderOutcome(outcome) {
|
|
|
6971
6971
|
function printResult2(input) {
|
|
6972
6972
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6973
6973
|
if (failed) process.exitCode = 1;
|
|
6974
|
-
|
|
6974
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
6975
6975
|
{
|
|
6976
6976
|
deployment: { ...input.deployment, status: input.status },
|
|
6977
6977
|
plays: input.outcomes,
|
|
@@ -6996,7 +6996,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6996
6996
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6997
6997
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6998
6998
|
});
|
|
6999
|
-
const { http, config } =
|
|
6999
|
+
const { http, config } = _chunkPGE4JW7Cjs.getAuthedHttpClient.call(void 0, );
|
|
7000
7000
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
7001
7001
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
7002
7002
|
deliveryId,
|
|
@@ -7023,7 +7023,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
7023
7023
|
},
|
|
7024
7024
|
{
|
|
7025
7025
|
bundle: bundleDeployPlayFile,
|
|
7026
|
-
fetchImpl:
|
|
7026
|
+
fetchImpl: _chunkTEPZMKN7js.fetchWithDeploymentProtection,
|
|
7027
7027
|
// The plays are already here: "opening" the source is naming it.
|
|
7028
7028
|
openSource: async () => ({
|
|
7029
7029
|
open: async () => ({ repoRoot: root })
|
|
@@ -7591,7 +7591,7 @@ function parseInputFlagValue(raw) {
|
|
|
7591
7591
|
return raw;
|
|
7592
7592
|
}
|
|
7593
7593
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
7594
|
-
const selection =
|
|
7594
|
+
const selection = _chunkPGE4JW7Cjs.parseJsonFields.call(void 0, args, "run");
|
|
7595
7595
|
args = selection.args;
|
|
7596
7596
|
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 deepline.dataset guidance.";
|
|
7597
7597
|
let filePath = null;
|
|
@@ -7603,7 +7603,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7603
7603
|
let revisionSelector = null;
|
|
7604
7604
|
const watch = !args.includes("--no-wait");
|
|
7605
7605
|
const dryRun = args.includes("--dry-run");
|
|
7606
|
-
let jsonOutput = dryRun ?
|
|
7606
|
+
let jsonOutput = dryRun ? _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args);
|
|
7607
7607
|
const fullJson = args.includes("--full");
|
|
7608
7608
|
const force = args.includes("--force");
|
|
7609
7609
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -7666,7 +7666,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7666
7666
|
"--log-level requires one of: debug, info, warn, error."
|
|
7667
7667
|
);
|
|
7668
7668
|
}
|
|
7669
|
-
const parsed =
|
|
7669
|
+
const parsed = _chunkDP6CINW2js.parseLogLevel.call(void 0, value);
|
|
7670
7670
|
if (!parsed) {
|
|
7671
7671
|
throw new Error(
|
|
7672
7672
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -7984,7 +7984,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
7984
7984
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
7985
7985
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
7986
7986
|
);
|
|
7987
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
7987
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkDP6CINW2js.parseLogLevel.call(void 0, options.logLevel);
|
|
7988
7988
|
if (!logLevel)
|
|
7989
7989
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
7990
7990
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -7998,13 +7998,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
7998
7998
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
7999
7999
|
logLevel = "debug";
|
|
8000
8000
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
8001
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
8002
|
-
[...fullJson ? ["--full"] : [], ...
|
|
8001
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkPGE4JW7Cjs.parseJsonFields.call(void 0,
|
|
8002
|
+
[...fullJson ? ["--full"] : [], ..._chunkPGE4JW7Cjs.jsonFieldArgs.call(void 0, options.json)],
|
|
8003
8003
|
"run"
|
|
8004
8004
|
).fields;
|
|
8005
8005
|
const watch = options.wait === false ? false : base.watch;
|
|
8006
8006
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
8007
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
8007
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkPGE4JW7Cjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
8008
8008
|
const verboseLogs = Boolean(
|
|
8009
8009
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
8010
8010
|
);
|
|
@@ -8125,7 +8125,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
8125
8125
|
// src/cli/renderers/local-play-execution.ts
|
|
8126
8126
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
8127
8127
|
if (options.dryRun) {
|
|
8128
|
-
|
|
8128
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
8129
8129
|
return;
|
|
8130
8130
|
}
|
|
8131
8131
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -8297,7 +8297,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
8297
8297
|
const startedAt = Date.now();
|
|
8298
8298
|
try {
|
|
8299
8299
|
const result = run();
|
|
8300
|
-
|
|
8300
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
8301
8301
|
phase,
|
|
8302
8302
|
ms: Date.now() - startedAt,
|
|
8303
8303
|
ok: true,
|
|
@@ -8305,7 +8305,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
8305
8305
|
});
|
|
8306
8306
|
return result;
|
|
8307
8307
|
} catch (error) {
|
|
8308
|
-
|
|
8308
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
8309
8309
|
phase,
|
|
8310
8310
|
ms: Date.now() - startedAt,
|
|
8311
8311
|
ok: false,
|
|
@@ -9094,7 +9094,7 @@ function playStatusErrorText(status) {
|
|
|
9094
9094
|
function isRetryablePendingStartFailure(status) {
|
|
9095
9095
|
if (status.status !== "failed") return false;
|
|
9096
9096
|
if (status.runId && status.runId !== "pending") return false;
|
|
9097
|
-
return
|
|
9097
|
+
return _chunkDP6CINW2js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
9098
9098
|
}
|
|
9099
9099
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
9100
9100
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -9143,13 +9143,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
9143
9143
|
}, _class);
|
|
9144
9144
|
function watchSurfaceReaches(state, provenance, level) {
|
|
9145
9145
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
9146
|
-
if (!
|
|
9146
|
+
if (!_chunkDP6CINW2js.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
9147
9147
|
return false;
|
|
9148
9148
|
}
|
|
9149
|
-
if (
|
|
9149
|
+
if (_chunkDP6CINW2js.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
9150
9150
|
return true;
|
|
9151
9151
|
}
|
|
9152
|
-
return state.verbose === true &&
|
|
9152
|
+
return state.verbose === true && _chunkDP6CINW2js.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
9153
9153
|
}
|
|
9154
9154
|
function getEventPayload(event) {
|
|
9155
9155
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9651,7 +9651,7 @@ function resolveRunPlayName(status, runId) {
|
|
|
9651
9651
|
}
|
|
9652
9652
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
9653
9653
|
if (open2 && dashboardUrl) {
|
|
9654
|
-
|
|
9654
|
+
_chunkPGE4JW7Cjs.openInBrowser.call(void 0, dashboardUrl);
|
|
9655
9655
|
}
|
|
9656
9656
|
}
|
|
9657
9657
|
function printPlayLogLines(input) {
|
|
@@ -9728,7 +9728,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9728
9728
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
9729
9729
|
});
|
|
9730
9730
|
} catch (error) {
|
|
9731
|
-
if (
|
|
9731
|
+
if (_chunkDP6CINW2js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9732
9732
|
return null;
|
|
9733
9733
|
}
|
|
9734
9734
|
throw error;
|
|
@@ -9808,9 +9808,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9808
9808
|
signal: controller.signal,
|
|
9809
9809
|
deferLogs: !input.emitLogs,
|
|
9810
9810
|
omitTerminalLogs: !input.emitLogs,
|
|
9811
|
-
...
|
|
9811
|
+
..._chunkDBNTO3T4js.isCliTraceEnabled.call(void 0, ) ? {
|
|
9812
9812
|
onPoll: (observation) => {
|
|
9813
|
-
|
|
9813
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
9814
9814
|
phase: "play_watch_poll",
|
|
9815
9815
|
workflowId: input.workflowId,
|
|
9816
9816
|
ms: observation.durationMs,
|
|
@@ -9824,7 +9824,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9824
9824
|
full: input.fullJson,
|
|
9825
9825
|
billing: false,
|
|
9826
9826
|
onStatus: async (status) => {
|
|
9827
|
-
|
|
9827
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
9828
9828
|
phase: "play_watch_terminal_status",
|
|
9829
9829
|
workflowId: input.workflowId,
|
|
9830
9830
|
full: input.fullJson === true
|
|
@@ -9894,7 +9894,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9894
9894
|
});
|
|
9895
9895
|
} catch (error) {
|
|
9896
9896
|
if (!(error instanceof _chunkJKVRBCZLjs.CliPlayAdmissionUnsupportedError)) throw error;
|
|
9897
|
-
await
|
|
9897
|
+
await _chunkTKOVC3APjs.checkPlayRunCompatibility.call(void 0,
|
|
9898
9898
|
input.client.baseUrl,
|
|
9899
9899
|
input.maintenancePolicy
|
|
9900
9900
|
);
|
|
@@ -9940,7 +9940,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9940
9940
|
}
|
|
9941
9941
|
openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
|
|
9942
9942
|
input.progress.phase("running");
|
|
9943
|
-
|
|
9943
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
9944
9944
|
phase: "cli.play_start_admitted",
|
|
9945
9945
|
ms: Date.now() - startedAt,
|
|
9946
9946
|
ok: true,
|
|
@@ -9957,7 +9957,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9957
9957
|
startedAt,
|
|
9958
9958
|
waitTimeoutMs: input.waitTimeoutMs
|
|
9959
9959
|
});
|
|
9960
|
-
const initialStatus =
|
|
9960
|
+
const initialStatus = _chunkDP6CINW2js.normalizePlayStatus.call(void 0, initialTerminal);
|
|
9961
9961
|
const status2 = await resolvePlayRunOutputStatus({
|
|
9962
9962
|
client: input.client,
|
|
9963
9963
|
status: initialStatus,
|
|
@@ -9965,7 +9965,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9965
9965
|
jsonOutput: input.jsonOutput,
|
|
9966
9966
|
fromDurableStatus: true
|
|
9967
9967
|
});
|
|
9968
|
-
|
|
9968
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
9969
9969
|
phase: "play_watch_terminal_status",
|
|
9970
9970
|
workflowId,
|
|
9971
9971
|
full: true,
|
|
@@ -10009,7 +10009,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
10009
10009
|
status = await startAndWaitForPlayCompletionByStreamOnce(pinnedInput);
|
|
10010
10010
|
} catch (error) {
|
|
10011
10011
|
if (error instanceof _chunkJKVRBCZLjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
10012
|
-
await
|
|
10012
|
+
await _chunkTKOVC3APjs.checkPlayRunCompatibility.call(void 0,
|
|
10013
10013
|
input.client.baseUrl,
|
|
10014
10014
|
input.maintenancePolicy
|
|
10015
10015
|
);
|
|
@@ -10036,7 +10036,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
10036
10036
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
10037
10037
|
);
|
|
10038
10038
|
}
|
|
10039
|
-
|
|
10039
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
10040
10040
|
phase: "cli.play_start_stream_retry",
|
|
10041
10041
|
ms: 0,
|
|
10042
10042
|
ok: true,
|
|
@@ -10057,7 +10057,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
10057
10057
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
10058
10058
|
);
|
|
10059
10059
|
}
|
|
10060
|
-
|
|
10060
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
10061
10061
|
phase: "cli.play_start_stream_retry",
|
|
10062
10062
|
ms: 0,
|
|
10063
10063
|
ok: true,
|
|
@@ -10101,7 +10101,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10101
10101
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
10102
10102
|
launchConfirmed = true;
|
|
10103
10103
|
await _optionalChain([input, 'access', _319 => _319.onRunAdmitted, 'optionalCall', _320 => _320(runId)]);
|
|
10104
|
-
|
|
10104
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
10105
10105
|
phase: "cli.play_start_admitted",
|
|
10106
10106
|
ms: Date.now() - startedAt,
|
|
10107
10107
|
ok: true,
|
|
@@ -10135,7 +10135,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10135
10135
|
full: input.fullJson
|
|
10136
10136
|
});
|
|
10137
10137
|
} catch (error) {
|
|
10138
|
-
if (
|
|
10138
|
+
if (_chunkDP6CINW2js.isTransientPlayRunReadError.call(void 0, error)) {
|
|
10139
10139
|
return null;
|
|
10140
10140
|
}
|
|
10141
10141
|
throw error;
|
|
@@ -10268,7 +10268,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10268
10268
|
};
|
|
10269
10269
|
}
|
|
10270
10270
|
if (!canonicalTerminal) {
|
|
10271
|
-
|
|
10271
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
10272
10272
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
10273
10273
|
ms: Date.now() - startedAt,
|
|
10274
10274
|
ok: true,
|
|
@@ -10289,14 +10289,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10289
10289
|
fromDurableStatus
|
|
10290
10290
|
}) : canonicalTerminal;
|
|
10291
10291
|
if (input.fullJson === true) {
|
|
10292
|
-
|
|
10292
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
10293
10293
|
phase: "play_watch_terminal_status",
|
|
10294
10294
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
10295
10295
|
full: true,
|
|
10296
10296
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
10297
10297
|
});
|
|
10298
10298
|
}
|
|
10299
|
-
|
|
10299
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
10300
10300
|
phase: "cli.play_start_stream_terminal",
|
|
10301
10301
|
ms: Date.now() - startedAt,
|
|
10302
10302
|
ok: true,
|
|
@@ -10316,7 +10316,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10316
10316
|
clearTimeout(timeout);
|
|
10317
10317
|
}
|
|
10318
10318
|
controller.abort();
|
|
10319
|
-
|
|
10319
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
10320
10320
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
10321
10321
|
ms: Date.now() - startedAt,
|
|
10322
10322
|
ok: true,
|
|
@@ -10347,7 +10347,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10347
10347
|
if (timedOut) {
|
|
10348
10348
|
const terminal = await fetchKnownTerminalStatus();
|
|
10349
10349
|
if (terminal) {
|
|
10350
|
-
|
|
10350
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
10351
10351
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
10352
10352
|
ms: Date.now() - startedAt,
|
|
10353
10353
|
ok: true,
|
|
@@ -10367,7 +10367,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10367
10367
|
lastPhase
|
|
10368
10368
|
});
|
|
10369
10369
|
}
|
|
10370
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
10370
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkDP6CINW2js.isTransientPlayRunReadError.call(void 0, error))) {
|
|
10371
10371
|
if (timeout) {
|
|
10372
10372
|
clearTimeout(timeout);
|
|
10373
10373
|
}
|
|
@@ -10378,7 +10378,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10378
10378
|
`
|
|
10379
10379
|
);
|
|
10380
10380
|
}
|
|
10381
|
-
|
|
10381
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
10382
10382
|
phase: "cli.play_start_stream_reconnect",
|
|
10383
10383
|
ms: Date.now() - startedAt,
|
|
10384
10384
|
ok: true,
|
|
@@ -10405,7 +10405,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10405
10405
|
});
|
|
10406
10406
|
}
|
|
10407
10407
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
10408
|
-
|
|
10408
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
10409
10409
|
phase: "cli.play_start_stream_transient_failure",
|
|
10410
10410
|
ms: Date.now() - startedAt,
|
|
10411
10411
|
ok: false,
|
|
@@ -10433,7 +10433,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10433
10433
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
10434
10434
|
);
|
|
10435
10435
|
}
|
|
10436
|
-
|
|
10436
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
10437
10437
|
phase: "cli.play_start_stream_reconnect",
|
|
10438
10438
|
ms: Date.now() - startedAt,
|
|
10439
10439
|
ok: true,
|
|
@@ -10513,7 +10513,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10513
10513
|
"logs"
|
|
10514
10514
|
]);
|
|
10515
10515
|
function formatPlayLogLine(rawLine, state) {
|
|
10516
|
-
const classified =
|
|
10516
|
+
const classified = _chunkDP6CINW2js.classifyLogLine.call(void 0, rawLine);
|
|
10517
10517
|
const line = classified.line;
|
|
10518
10518
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10519
10519
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _323 => _323[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10528,14 +10528,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10528
10528
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10529
10529
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10530
10530
|
if (providerWait && !state.verbose) {
|
|
10531
|
-
return
|
|
10531
|
+
return _chunkDP6CINW2js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10532
10532
|
}
|
|
10533
10533
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10534
10534
|
if (mapProgress && !state.verbose) {
|
|
10535
|
-
return
|
|
10535
|
+
return _chunkDP6CINW2js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10536
10536
|
}
|
|
10537
10537
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10538
|
-
if (!
|
|
10538
|
+
if (!_chunkDP6CINW2js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10539
10539
|
return null;
|
|
10540
10540
|
}
|
|
10541
10541
|
if (state.emittedRunnerStarted) {
|
|
@@ -10548,7 +10548,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10548
10548
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10549
10549
|
);
|
|
10550
10550
|
if (mapStart) {
|
|
10551
|
-
if (!
|
|
10551
|
+
if (!_chunkDP6CINW2js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10552
10552
|
return null;
|
|
10553
10553
|
}
|
|
10554
10554
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10558,7 +10558,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10558
10558
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10559
10559
|
);
|
|
10560
10560
|
if (mapDone) {
|
|
10561
|
-
if (!
|
|
10561
|
+
if (!_chunkDP6CINW2js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10562
10562
|
return null;
|
|
10563
10563
|
}
|
|
10564
10564
|
const [, results, executed, cached] = mapDone;
|
|
@@ -11847,7 +11847,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11847
11847
|
(line) => typeof line === "string"
|
|
11848
11848
|
);
|
|
11849
11849
|
if (tail.length === 0) return [];
|
|
11850
|
-
const shown = tail.map((line) =>
|
|
11850
|
+
const shown = tail.map((line) => _chunkDP6CINW2js.classifyLogLine.call(void 0, line)).filter(
|
|
11851
11851
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11852
11852
|
).slice(-8);
|
|
11853
11853
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -12130,7 +12130,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12130
12130
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _404 => _404.hits]), () => ( null));
|
|
12131
12131
|
if (jsonOutput) {
|
|
12132
12132
|
const payload2 = _optionalChain([options, 'optionalAccess', _405 => _405.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
12133
|
-
|
|
12133
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
12134
12134
|
hits ? { ...payload2, hits } : payload2,
|
|
12135
12135
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _406 => _406.jsonFields]) }
|
|
12136
12136
|
);
|
|
@@ -12146,7 +12146,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12146
12146
|
...buildPlayCompletionTextLines(status),
|
|
12147
12147
|
...formatRunHitsLines(hits)
|
|
12148
12148
|
];
|
|
12149
|
-
|
|
12149
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
12150
12150
|
json: false,
|
|
12151
12151
|
text: `${lines2.join("\n")}
|
|
12152
12152
|
`
|
|
@@ -12197,7 +12197,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12197
12197
|
lines.push(...buildBillingRollupTextLines(status));
|
|
12198
12198
|
const compact = compactPlayStatus(status);
|
|
12199
12199
|
const payload = _optionalChain([options, 'optionalAccess', _408 => _408.fullJson]) ? status : compact;
|
|
12200
|
-
|
|
12200
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
12201
12201
|
{
|
|
12202
12202
|
...payload,
|
|
12203
12203
|
render: {
|
|
@@ -12967,7 +12967,7 @@ function writeStartedPlayRun(input) {
|
|
|
12967
12967
|
dashboardUrl: input.dashboardUrl,
|
|
12968
12968
|
package: input.package
|
|
12969
12969
|
};
|
|
12970
|
-
|
|
12970
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12971
12971
|
json: true,
|
|
12972
12972
|
fields: input.jsonFields
|
|
12973
12973
|
});
|
|
@@ -12989,7 +12989,7 @@ function writeStartedPlayRun(input) {
|
|
|
12989
12989
|
input.progress.writeLine(output2, process.stdout);
|
|
12990
12990
|
return;
|
|
12991
12991
|
}
|
|
12992
|
-
|
|
12992
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12993
12993
|
json: false,
|
|
12994
12994
|
text: `${output2}
|
|
12995
12995
|
`
|
|
@@ -13018,7 +13018,7 @@ function writeStartedPlayRun(input) {
|
|
|
13018
13018
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
13019
13019
|
];
|
|
13020
13020
|
if (input.jsonOutput) {
|
|
13021
|
-
|
|
13021
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
13022
13022
|
return;
|
|
13023
13023
|
}
|
|
13024
13024
|
if (input.dashboardUrl) {
|
|
@@ -13029,7 +13029,7 @@ function writeStartedPlayRun(input) {
|
|
|
13029
13029
|
input.progress.writeLine(output, process.stdout);
|
|
13030
13030
|
return;
|
|
13031
13031
|
}
|
|
13032
|
-
|
|
13032
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
13033
13033
|
{
|
|
13034
13034
|
...payload,
|
|
13035
13035
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -13039,7 +13039,7 @@ function writeStartedPlayRun(input) {
|
|
|
13039
13039
|
);
|
|
13040
13040
|
}
|
|
13041
13041
|
function parsePlayCheckOptions(args) {
|
|
13042
|
-
const selection =
|
|
13042
|
+
const selection = _chunkPGE4JW7Cjs.parseJsonFields.call(void 0, args, "check");
|
|
13043
13043
|
args = selection.args;
|
|
13044
13044
|
const target = args[0];
|
|
13045
13045
|
if (!target || target.startsWith("-")) {
|
|
@@ -13051,7 +13051,7 @@ function parsePlayCheckOptions(args) {
|
|
|
13051
13051
|
if (arg !== "--json" && arg !== "--full")
|
|
13052
13052
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
13053
13053
|
}
|
|
13054
|
-
const jsonOutput =
|
|
13054
|
+
const jsonOutput = _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args);
|
|
13055
13055
|
return {
|
|
13056
13056
|
target,
|
|
13057
13057
|
jsonOutput,
|
|
@@ -13127,7 +13127,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
13127
13127
|
useLatest,
|
|
13128
13128
|
expectedArtifactHash,
|
|
13129
13129
|
dryRun,
|
|
13130
|
-
jsonOutput:
|
|
13130
|
+
jsonOutput: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)
|
|
13131
13131
|
};
|
|
13132
13132
|
}
|
|
13133
13133
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -13168,7 +13168,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
13168
13168
|
target,
|
|
13169
13169
|
expectedArtifactHash,
|
|
13170
13170
|
dryRun,
|
|
13171
|
-
jsonOutput:
|
|
13171
|
+
jsonOutput: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)
|
|
13172
13172
|
};
|
|
13173
13173
|
}
|
|
13174
13174
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -13379,7 +13379,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
13379
13379
|
async function handlePlayCheck(args) {
|
|
13380
13380
|
const options = parsePlayCheckOptions(args);
|
|
13381
13381
|
if (!isFileTarget2(options.target)) {
|
|
13382
|
-
const client = new (0,
|
|
13382
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
13383
13383
|
try {
|
|
13384
13384
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
13385
13385
|
command: "check"
|
|
@@ -13408,7 +13408,7 @@ async function handlePlayCheck(args) {
|
|
|
13408
13408
|
},
|
|
13409
13409
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
13410
13410
|
};
|
|
13411
|
-
|
|
13411
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, result, {
|
|
13412
13412
|
json: options.jsonOutput,
|
|
13413
13413
|
fields: options.jsonFields,
|
|
13414
13414
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -13418,7 +13418,7 @@ async function handlePlayCheck(args) {
|
|
|
13418
13418
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
13419
13419
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
13420
13420
|
if (options.jsonOutput) {
|
|
13421
|
-
|
|
13421
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
13422
13422
|
{
|
|
13423
13423
|
kind: "play_check",
|
|
13424
13424
|
checked: "named_contract",
|
|
@@ -13460,7 +13460,7 @@ async function handlePlayCheck(args) {
|
|
|
13460
13460
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
13461
13461
|
publishCommand: _optionalChain([primary, 'optionalAccess', _458 => _458.result, 'access', _459 => _459.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
13462
13462
|
});
|
|
13463
|
-
|
|
13463
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, output, {
|
|
13464
13464
|
json: options.jsonOutput,
|
|
13465
13465
|
fields: options.jsonFields,
|
|
13466
13466
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -13514,7 +13514,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13514
13514
|
}
|
|
13515
13515
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13516
13516
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13517
|
-
const client = new (0,
|
|
13517
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
13518
13518
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13519
13519
|
const checked = await checkLocalPlayGraph({
|
|
13520
13520
|
client,
|
|
@@ -13567,11 +13567,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13567
13567
|
throw new Error("Expected a file-backed play run target.");
|
|
13568
13568
|
}
|
|
13569
13569
|
let client;
|
|
13570
|
-
let cliAdmission =
|
|
13570
|
+
let cliAdmission = _chunkTKOVC3APjs.usesInlinePlayAdmission.call(void 0,
|
|
13571
13571
|
"plays run",
|
|
13572
13572
|
process.argv.slice(2)
|
|
13573
13573
|
);
|
|
13574
|
-
const progress = _nullishCoalesce(
|
|
13574
|
+
const progress = _nullishCoalesce(_chunkPVNPEQCMjs.getActiveCliProgress.call(void 0, ), () => ( _chunkPVNPEQCMjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13575
13575
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
13576
13576
|
progress.phase("compiling play");
|
|
13577
13577
|
const sourceCode = traceCliSync(
|
|
@@ -13588,7 +13588,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13588
13588
|
}
|
|
13589
13589
|
let graph;
|
|
13590
13590
|
try {
|
|
13591
|
-
graph = await
|
|
13591
|
+
graph = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
13592
13592
|
"cli.play_file_bundle_graph",
|
|
13593
13593
|
{ targetKind: "file" },
|
|
13594
13594
|
() => collectBundledPlayGraph(
|
|
@@ -13607,9 +13607,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13607
13607
|
);
|
|
13608
13608
|
return 0;
|
|
13609
13609
|
}
|
|
13610
|
-
client = new (0,
|
|
13610
|
+
client = new (0, _chunkDP6CINW2js.DeeplineClient)(playRunClientOptions(options));
|
|
13611
13611
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
13612
|
-
await
|
|
13612
|
+
await _chunkTKOVC3APjs.checkPlayRunCompatibility.call(void 0,
|
|
13613
13613
|
client.baseUrl,
|
|
13614
13614
|
options.maintenancePolicy
|
|
13615
13615
|
);
|
|
@@ -13622,7 +13622,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13622
13622
|
});
|
|
13623
13623
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
13624
13624
|
if (canDeferCompilerManifest) {
|
|
13625
|
-
|
|
13625
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
13626
13626
|
phase: "cli.play_file_compile_manifests",
|
|
13627
13627
|
ms: 0,
|
|
13628
13628
|
ok: true,
|
|
@@ -13631,7 +13631,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13631
13631
|
reason: "validated_by_run_route"
|
|
13632
13632
|
});
|
|
13633
13633
|
} else {
|
|
13634
|
-
await
|
|
13634
|
+
await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
13635
13635
|
"cli.play_file_compile_manifests",
|
|
13636
13636
|
{ targetKind: "file", skipped: false },
|
|
13637
13637
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -13655,7 +13655,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13655
13655
|
_chunkQWRHGGUHjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
13656
13656
|
);
|
|
13657
13657
|
progress.phase("pinning imported plays");
|
|
13658
|
-
graph = await
|
|
13658
|
+
graph = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
13659
13659
|
"cli.play_file_pin_imports",
|
|
13660
13660
|
{ targetKind: "file" },
|
|
13661
13661
|
() => _chunkQWRHGGUHjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
@@ -13674,7 +13674,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13674
13674
|
const fileInputBindings = _chunkJKVRBCZLjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
13675
13675
|
_optionalChain([compilerManifest, 'optionalAccess', _468 => _468.staticPipeline])
|
|
13676
13676
|
);
|
|
13677
|
-
const stagedFileInputs = await
|
|
13677
|
+
const stagedFileInputs = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
13678
13678
|
"cli.play_stage_inputs",
|
|
13679
13679
|
{
|
|
13680
13680
|
targetKind: "file",
|
|
@@ -13721,7 +13721,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13721
13721
|
};
|
|
13722
13722
|
if (options.watch) {
|
|
13723
13723
|
progress.phase("starting run");
|
|
13724
|
-
const finalStatus = await
|
|
13724
|
+
const finalStatus = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
13725
13725
|
"cli.play_start_watch",
|
|
13726
13726
|
{ targetKind: "file", playName },
|
|
13727
13727
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13777,7 +13777,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13777
13777
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13778
13778
|
}
|
|
13779
13779
|
progress.phase("starting run");
|
|
13780
|
-
const started = await
|
|
13780
|
+
const started = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
13781
13781
|
"cli.play_start_unwatched",
|
|
13782
13782
|
{ targetKind: "file", playName },
|
|
13783
13783
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _474 => _474.onSubmission]) }).catch(async (error) => {
|
|
@@ -13824,12 +13824,12 @@ async function handleNamedRun(options, hooks) {
|
|
|
13824
13824
|
if (options.target.kind !== "name") {
|
|
13825
13825
|
throw new Error("Expected a named play run target.");
|
|
13826
13826
|
}
|
|
13827
|
-
const client = new (0,
|
|
13828
|
-
let cliAdmission =
|
|
13827
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)(playRunClientOptions(options));
|
|
13828
|
+
let cliAdmission = _chunkTKOVC3APjs.usesInlinePlayAdmission.call(void 0,
|
|
13829
13829
|
"plays run",
|
|
13830
13830
|
process.argv.slice(2)
|
|
13831
13831
|
);
|
|
13832
|
-
const progress = _nullishCoalesce(
|
|
13832
|
+
const progress = _nullishCoalesce(_chunkPVNPEQCMjs.getActiveCliProgress.call(void 0, ), () => ( _chunkPVNPEQCMjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13833
13833
|
const playName = options.target.name;
|
|
13834
13834
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13835
13835
|
try {
|
|
@@ -13844,14 +13844,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13844
13844
|
});
|
|
13845
13845
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13846
13846
|
progress.phase("loading play definition");
|
|
13847
|
-
return
|
|
13847
|
+
return _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
13848
13848
|
"cli.play_load_definition",
|
|
13849
13849
|
{ targetKind: "name", playName, skipped: false },
|
|
13850
13850
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13851
13851
|
command: "run"
|
|
13852
13852
|
})
|
|
13853
13853
|
);
|
|
13854
|
-
})() : (
|
|
13854
|
+
})() : (_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
13855
13855
|
phase: "cli.play_load_definition",
|
|
13856
13856
|
ms: 0,
|
|
13857
13857
|
ok: true,
|
|
@@ -13860,7 +13860,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13860
13860
|
skipped: true
|
|
13861
13861
|
}), null);
|
|
13862
13862
|
progress.phase("selecting revision");
|
|
13863
|
-
const selectedRevisionId = await
|
|
13863
|
+
const selectedRevisionId = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
13864
13864
|
"cli.play_select_revision",
|
|
13865
13865
|
{
|
|
13866
13866
|
targetKind: "name",
|
|
@@ -13885,10 +13885,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13885
13885
|
..._chunkJKVRBCZLjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13886
13886
|
] : [];
|
|
13887
13887
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13888
|
-
await
|
|
13888
|
+
await _chunkTKOVC3APjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13889
13889
|
cliAdmission = false;
|
|
13890
13890
|
}
|
|
13891
|
-
const stagedFileInputs = await
|
|
13891
|
+
const stagedFileInputs = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
13892
13892
|
"cli.play_stage_inputs",
|
|
13893
13893
|
{
|
|
13894
13894
|
targetKind: "name",
|
|
@@ -13932,7 +13932,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13932
13932
|
});
|
|
13933
13933
|
if (options.watch) {
|
|
13934
13934
|
progress.phase("starting run");
|
|
13935
|
-
const finalStatus = await
|
|
13935
|
+
const finalStatus = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
13936
13936
|
"cli.play_start_watch",
|
|
13937
13937
|
{ targetKind: "name", playName },
|
|
13938
13938
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13991,7 +13991,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13991
13991
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13992
13992
|
}
|
|
13993
13993
|
progress.phase("starting run");
|
|
13994
|
-
const started = await
|
|
13994
|
+
const started = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
13995
13995
|
"cli.play_start_unwatched",
|
|
13996
13996
|
{ targetKind: "name", playName },
|
|
13997
13997
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _485 => _485.onSubmission]) }).catch(async (error) => {
|
|
@@ -14040,7 +14040,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
14040
14040
|
JSON.stringify({
|
|
14041
14041
|
version: 1,
|
|
14042
14042
|
admissionState: "submitted_unknown",
|
|
14043
|
-
baseUrl: new (0,
|
|
14043
|
+
baseUrl: new (0, _chunkDP6CINW2js.DeeplineClient)().baseUrl,
|
|
14044
14044
|
...intent
|
|
14045
14045
|
})
|
|
14046
14046
|
);
|
|
@@ -14269,7 +14269,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
14269
14269
|
);
|
|
14270
14270
|
return `${lines.join("\n")}
|
|
14271
14271
|
|
|
14272
|
-
${
|
|
14272
|
+
${_chunkPGE4JW7Cjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
14273
14273
|
}
|
|
14274
14274
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
14275
14275
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -14293,7 +14293,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
14293
14293
|
}
|
|
14294
14294
|
}
|
|
14295
14295
|
async function handleRunGet(args) {
|
|
14296
|
-
const selection =
|
|
14296
|
+
const selection = _chunkPGE4JW7Cjs.parseJsonFields.call(void 0,
|
|
14297
14297
|
args,
|
|
14298
14298
|
args.includes("--config") ? "config" : "get"
|
|
14299
14299
|
);
|
|
@@ -14306,7 +14306,7 @@ async function handleRunGet(args) {
|
|
|
14306
14306
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14307
14307
|
return 1;
|
|
14308
14308
|
}
|
|
14309
|
-
const client = new (0,
|
|
14309
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
14310
14310
|
const timing = args.includes("--timing");
|
|
14311
14311
|
if (args.includes("--web-url")) {
|
|
14312
14312
|
const status2 = await withRunReadTiming(
|
|
@@ -14321,7 +14321,7 @@ async function handleRunGet(args) {
|
|
|
14321
14321
|
return 1;
|
|
14322
14322
|
}
|
|
14323
14323
|
const dashboardUrl2 = _chunkZ2XUZC34js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
14324
|
-
|
|
14324
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
14325
14325
|
{ dashboardUrl: dashboardUrl2 },
|
|
14326
14326
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
14327
14327
|
` }
|
|
@@ -14346,7 +14346,7 @@ async function handleRunGet(args) {
|
|
|
14346
14346
|
"This server does not support recorded configuration reads."
|
|
14347
14347
|
);
|
|
14348
14348
|
}
|
|
14349
|
-
|
|
14349
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
14350
14350
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
14351
14351
|
{ json: true, fields: selection.fields }
|
|
14352
14352
|
);
|
|
@@ -14359,7 +14359,7 @@ async function handleRunGet(args) {
|
|
|
14359
14359
|
timing,
|
|
14360
14360
|
() => client.getRunInput(runId)
|
|
14361
14361
|
);
|
|
14362
|
-
|
|
14362
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
14363
14363
|
return 0;
|
|
14364
14364
|
}
|
|
14365
14365
|
const full = args.includes("--full");
|
|
@@ -14385,8 +14385,8 @@ async function handleRunGet(args) {
|
|
|
14385
14385
|
) : status;
|
|
14386
14386
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
14387
14387
|
const legacyDashboardUrl = legacyPlayName ? _chunkZ2XUZC34js.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
14388
|
-
if (
|
|
14389
|
-
|
|
14388
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
14389
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
14390
14390
|
{
|
|
14391
14391
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
14392
14392
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -14396,7 +14396,7 @@ async function handleRunGet(args) {
|
|
|
14396
14396
|
} else {
|
|
14397
14397
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
14398
14398
|
if (legacyDashboardUrl)
|
|
14399
|
-
|
|
14399
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
14400
14400
|
{ dashboardUrl: legacyDashboardUrl },
|
|
14401
14401
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
14402
14402
|
` }
|
|
@@ -14426,10 +14426,10 @@ async function handleRunGet(args) {
|
|
|
14426
14426
|
)
|
|
14427
14427
|
]);
|
|
14428
14428
|
const hitLines = formatRunHitsLines(hits);
|
|
14429
|
-
const json =
|
|
14429
|
+
const json = _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args);
|
|
14430
14430
|
const playName = resolveRunPlayName(status, runId);
|
|
14431
14431
|
const dashboardUrl = playName ? _chunkZ2XUZC34js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
14432
|
-
|
|
14432
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
14433
14433
|
{
|
|
14434
14434
|
...overview,
|
|
14435
14435
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -14533,9 +14533,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
14533
14533
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14534
14534
|
return 1;
|
|
14535
14535
|
}
|
|
14536
|
-
const status = await new (0,
|
|
14537
|
-
if (
|
|
14538
|
-
|
|
14536
|
+
const status = await new (0, _chunkDP6CINW2js.DeeplineClient)().runs.status(runId);
|
|
14537
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
14538
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
14539
14539
|
return 0;
|
|
14540
14540
|
}
|
|
14541
14541
|
if (!status.available) {
|
|
@@ -14575,7 +14575,7 @@ async function handleRunsRerun(args) {
|
|
|
14575
14575
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14576
14576
|
return 1;
|
|
14577
14577
|
}
|
|
14578
|
-
const options = { json:
|
|
14578
|
+
const options = { json: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args) };
|
|
14579
14579
|
for (let index = 0; index < args.length; index += 1) {
|
|
14580
14580
|
if (args[index] === "--idempotency-key") {
|
|
14581
14581
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14641,8 +14641,8 @@ ${usage2}
|
|
|
14641
14641
|
Discover Plays: ${next.discover}
|
|
14642
14642
|
Active runs: ${next.running}`
|
|
14643
14643
|
);
|
|
14644
|
-
if (
|
|
14645
|
-
|
|
14644
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
14645
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
14646
14646
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14647
14647
|
{ json: true }
|
|
14648
14648
|
);
|
|
@@ -14657,7 +14657,7 @@ Active runs: ${next.running}`
|
|
|
14657
14657
|
console.error("--offset requires --play.");
|
|
14658
14658
|
return 1;
|
|
14659
14659
|
}
|
|
14660
|
-
const client = new (0,
|
|
14660
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
14661
14661
|
const page = await withRunReadTiming(
|
|
14662
14662
|
"runs list",
|
|
14663
14663
|
"run inventory",
|
|
@@ -14724,14 +14724,14 @@ Active runs: ${next.running}`
|
|
|
14724
14724
|
return lines2.join("\n");
|
|
14725
14725
|
});
|
|
14726
14726
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14727
|
-
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}${
|
|
14727
|
+
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}${_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14728
14728
|
if (page.hasMore) {
|
|
14729
14729
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14730
14730
|
lines.push(
|
|
14731
14731
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14732
14732
|
);
|
|
14733
14733
|
}
|
|
14734
|
-
|
|
14734
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
14735
14735
|
{
|
|
14736
14736
|
runs,
|
|
14737
14737
|
count: runs.length,
|
|
@@ -14745,7 +14745,7 @@ Active runs: ${next.running}`
|
|
|
14745
14745
|
},
|
|
14746
14746
|
render: { sections: [{ title: "runs", lines }] }
|
|
14747
14747
|
},
|
|
14748
|
-
{ json:
|
|
14748
|
+
{ json: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args) }
|
|
14749
14749
|
);
|
|
14750
14750
|
return 0;
|
|
14751
14751
|
}
|
|
@@ -14775,7 +14775,7 @@ async function handleRunTail(args) {
|
|
|
14775
14775
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14776
14776
|
return 1;
|
|
14777
14777
|
}
|
|
14778
|
-
const parsed =
|
|
14778
|
+
const parsed = _chunkDP6CINW2js.parseLogLevel.call(void 0, value);
|
|
14779
14779
|
if (!parsed) {
|
|
14780
14780
|
console.error(
|
|
14781
14781
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14813,9 +14813,9 @@ async function handleRunTail(args) {
|
|
|
14813
14813
|
);
|
|
14814
14814
|
return 1;
|
|
14815
14815
|
}
|
|
14816
|
-
const client = new (0,
|
|
14816
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
14817
14817
|
const jsonLines = args.includes("--jsonl");
|
|
14818
|
-
const jsonOutput = !jsonLines &&
|
|
14818
|
+
const jsonOutput = !jsonLines && _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args);
|
|
14819
14819
|
const compact = args.includes("--compact");
|
|
14820
14820
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14821
14821
|
const compactState = {
|
|
@@ -14896,7 +14896,7 @@ async function handleRunLogs(args) {
|
|
|
14896
14896
|
]);
|
|
14897
14897
|
const cursorIndex = args.indexOf("--cursor");
|
|
14898
14898
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14899
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14899
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkDP6CINW2js.isRunLogsCursor.call(void 0, cursorValue));
|
|
14900
14900
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14901
14901
|
return handleRunEventSearch(args);
|
|
14902
14902
|
}
|
|
@@ -14930,7 +14930,7 @@ async function handleRunLogs(args) {
|
|
|
14930
14930
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14931
14931
|
return 1;
|
|
14932
14932
|
}
|
|
14933
|
-
const parsed =
|
|
14933
|
+
const parsed = _chunkDP6CINW2js.parseLogLevel.call(void 0, value);
|
|
14934
14934
|
if (!parsed) {
|
|
14935
14935
|
console.error(
|
|
14936
14936
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14977,12 +14977,12 @@ async function handleRunLogs(args) {
|
|
|
14977
14977
|
);
|
|
14978
14978
|
return 1;
|
|
14979
14979
|
}
|
|
14980
|
-
const client = new (0,
|
|
14980
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
14981
14981
|
if (outPath) {
|
|
14982
14982
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14983
|
-
const logs = result2.entries.filter((line) =>
|
|
14983
|
+
const logs = result2.entries.filter((line) => _chunkDP6CINW2js.logLevelReaches.call(void 0, _chunkDP6CINW2js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkDP6CINW2js.classifyLogLine.call(void 0, line).line);
|
|
14984
14984
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14985
|
-
|
|
14985
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
14986
14986
|
{
|
|
14987
14987
|
runId: result2.runId,
|
|
14988
14988
|
log_path: outPath,
|
|
@@ -15005,7 +15005,7 @@ async function handleRunLogs(args) {
|
|
|
15005
15005
|
]
|
|
15006
15006
|
}
|
|
15007
15007
|
},
|
|
15008
|
-
{ json:
|
|
15008
|
+
{ json: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args) }
|
|
15009
15009
|
);
|
|
15010
15010
|
return 0;
|
|
15011
15011
|
}
|
|
@@ -15036,7 +15036,7 @@ async function handleRunLogs(args) {
|
|
|
15036
15036
|
}
|
|
15037
15037
|
};
|
|
15038
15038
|
const text = buildRunLogsText(filteredResult);
|
|
15039
|
-
|
|
15039
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
15040
15040
|
{
|
|
15041
15041
|
runId: result.runId,
|
|
15042
15042
|
totalCount: result.totalCount,
|
|
@@ -15060,7 +15060,7 @@ async function handleRunLogs(args) {
|
|
|
15060
15060
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
15061
15061
|
},
|
|
15062
15062
|
{
|
|
15063
|
-
json:
|
|
15063
|
+
json: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args),
|
|
15064
15064
|
text
|
|
15065
15065
|
}
|
|
15066
15066
|
);
|
|
@@ -15084,7 +15084,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15084
15084
|
);
|
|
15085
15085
|
}
|
|
15086
15086
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
15087
|
-
(entry) =>
|
|
15087
|
+
(entry) => _chunkDP6CINW2js.logLevelReaches.call(void 0, _chunkDP6CINW2js.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
15088
15088
|
);
|
|
15089
15089
|
const selected = matching.slice(-limit);
|
|
15090
15090
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -15094,7 +15094,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15094
15094
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _513 => _513.at, 'call', _514 => _514(-1), 'optionalAccess', _515 => _515.seq]), () => ( null)),
|
|
15095
15095
|
truncated: result.truncated || olderMatchesExist,
|
|
15096
15096
|
hasMore: olderMatchesExist,
|
|
15097
|
-
nextCursor: olderMatchesExist ?
|
|
15097
|
+
nextCursor: olderMatchesExist ? _chunkDP6CINW2js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
15098
15098
|
};
|
|
15099
15099
|
}
|
|
15100
15100
|
async function handleRunEventSearch(args) {
|
|
@@ -15161,7 +15161,7 @@ ${usage2}`);
|
|
|
15161
15161
|
namespace,
|
|
15162
15162
|
...backend ? { backend } : {}
|
|
15163
15163
|
} : void 0;
|
|
15164
|
-
const client = new (0,
|
|
15164
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
15165
15165
|
const result = await client.runs.searchEvents({
|
|
15166
15166
|
...runId ? { runId } : {},
|
|
15167
15167
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -15233,7 +15233,7 @@ ${renderedDetails}` : ""}`;
|
|
|
15233
15233
|
"--limit",
|
|
15234
15234
|
String(limit)
|
|
15235
15235
|
].join(" ") : null;
|
|
15236
|
-
|
|
15236
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
15237
15237
|
{
|
|
15238
15238
|
events,
|
|
15239
15239
|
nextCursor: result.nextCursor,
|
|
@@ -15244,14 +15244,14 @@ ${renderedDetails}` : ""}`;
|
|
|
15244
15244
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
15245
15245
|
},
|
|
15246
15246
|
{
|
|
15247
|
-
json:
|
|
15247
|
+
json: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args),
|
|
15248
15248
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
15249
15249
|
}
|
|
15250
15250
|
);
|
|
15251
15251
|
return 0;
|
|
15252
15252
|
}
|
|
15253
15253
|
function buildRunLogsText(result) {
|
|
15254
|
-
const lines = result.entries.map((line) =>
|
|
15254
|
+
const lines = result.entries.map((line) => _chunkDP6CINW2js.classifyLogLine.call(void 0, line).line);
|
|
15255
15255
|
if (result.warning) {
|
|
15256
15256
|
if (lines.length > 0) lines.push("");
|
|
15257
15257
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -15285,7 +15285,7 @@ async function handleRunStop(args) {
|
|
|
15285
15285
|
reason = args[++index];
|
|
15286
15286
|
}
|
|
15287
15287
|
}
|
|
15288
|
-
const client = new (0,
|
|
15288
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
15289
15289
|
const result = await client.runs.stop(runId, { reason });
|
|
15290
15290
|
const state = resolveRunStopState(result);
|
|
15291
15291
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -15300,7 +15300,7 @@ async function handleRunStop(args) {
|
|
|
15300
15300
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
15301
15301
|
`inspect: deepline runs get ${runId} --full`
|
|
15302
15302
|
];
|
|
15303
|
-
|
|
15303
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
15304
15304
|
{
|
|
15305
15305
|
...cancelling,
|
|
15306
15306
|
state,
|
|
@@ -15315,7 +15315,7 @@ async function handleRunStop(args) {
|
|
|
15315
15315
|
]
|
|
15316
15316
|
}
|
|
15317
15317
|
},
|
|
15318
|
-
{ json:
|
|
15318
|
+
{ json: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args) }
|
|
15319
15319
|
);
|
|
15320
15320
|
return 0;
|
|
15321
15321
|
}
|
|
@@ -15332,7 +15332,7 @@ async function handleRunStop(args) {
|
|
|
15332
15332
|
];
|
|
15333
15333
|
process.stderr.write(`${lines2.join("\n")}
|
|
15334
15334
|
`);
|
|
15335
|
-
|
|
15335
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
15336
15336
|
{
|
|
15337
15337
|
...result,
|
|
15338
15338
|
render: {
|
|
@@ -15347,7 +15347,7 @@ async function handleRunStop(args) {
|
|
|
15347
15347
|
]
|
|
15348
15348
|
}
|
|
15349
15349
|
},
|
|
15350
|
-
{ json:
|
|
15350
|
+
{ json: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args) }
|
|
15351
15351
|
);
|
|
15352
15352
|
return 1;
|
|
15353
15353
|
}
|
|
@@ -15358,12 +15358,12 @@ async function handleRunStop(args) {
|
|
|
15358
15358
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
15359
15359
|
] : []
|
|
15360
15360
|
];
|
|
15361
|
-
|
|
15361
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
15362
15362
|
{
|
|
15363
15363
|
...result,
|
|
15364
15364
|
render: { sections: [{ title: "run stop", lines }] }
|
|
15365
15365
|
},
|
|
15366
|
-
{ json:
|
|
15366
|
+
{ json: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args) }
|
|
15367
15367
|
);
|
|
15368
15368
|
return 0;
|
|
15369
15369
|
}
|
|
@@ -15413,18 +15413,18 @@ async function handleRunStopAll(args) {
|
|
|
15413
15413
|
reason = args[++index];
|
|
15414
15414
|
}
|
|
15415
15415
|
}
|
|
15416
|
-
const client = new (0,
|
|
15416
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
15417
15417
|
if (dryRun) {
|
|
15418
15418
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
15419
15419
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
15420
|
-
|
|
15420
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
15421
15421
|
{
|
|
15422
15422
|
...result2,
|
|
15423
15423
|
render: {
|
|
15424
15424
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
15425
15425
|
}
|
|
15426
15426
|
},
|
|
15427
|
-
{ json:
|
|
15427
|
+
{ json: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
15428
15428
|
` }
|
|
15429
15429
|
);
|
|
15430
15430
|
return 0;
|
|
@@ -15437,17 +15437,17 @@ async function handleRunStopAll(args) {
|
|
|
15437
15437
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
15438
15438
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
15439
15439
|
];
|
|
15440
|
-
|
|
15440
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
15441
15441
|
{
|
|
15442
15442
|
...result,
|
|
15443
15443
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
15444
15444
|
},
|
|
15445
|
-
{ json:
|
|
15445
|
+
{ json: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args) }
|
|
15446
15446
|
);
|
|
15447
15447
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
15448
15448
|
}
|
|
15449
15449
|
async function handleRunExport(args) {
|
|
15450
|
-
const selection =
|
|
15450
|
+
const selection = _chunkPGE4JW7Cjs.parseJsonFields.call(void 0, args, "export");
|
|
15451
15451
|
args = selection.args;
|
|
15452
15452
|
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]";
|
|
15453
15453
|
let runId;
|
|
@@ -15506,17 +15506,17 @@ async function handleRunExport(args) {
|
|
|
15506
15506
|
"INVALID_ARGUMENT"
|
|
15507
15507
|
);
|
|
15508
15508
|
}
|
|
15509
|
-
const client = new (0,
|
|
15509
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
15510
15510
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
15511
15511
|
assertRunExportStatusIdentity(status, runId);
|
|
15512
15512
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
15513
|
-
const progress =
|
|
15513
|
+
const progress = _chunkPVNPEQCMjs.createCliProgress.call(void 0, !_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args));
|
|
15514
15514
|
try {
|
|
15515
15515
|
await waitForPlayCompletionByWatch({
|
|
15516
15516
|
client,
|
|
15517
15517
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
15518
15518
|
workflowId: runId,
|
|
15519
|
-
jsonOutput:
|
|
15519
|
+
jsonOutput: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args),
|
|
15520
15520
|
emitLogs: false,
|
|
15521
15521
|
waitTimeoutMs,
|
|
15522
15522
|
startedAt: Date.now(),
|
|
@@ -15617,8 +15617,8 @@ async function handleRunExport(args) {
|
|
|
15617
15617
|
"utf-8"
|
|
15618
15618
|
);
|
|
15619
15619
|
}
|
|
15620
|
-
|
|
15621
|
-
json:
|
|
15620
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, payload, {
|
|
15621
|
+
json: _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args),
|
|
15622
15622
|
fields: selection.fields,
|
|
15623
15623
|
text: `${lines.join("\n")}
|
|
15624
15624
|
`
|
|
@@ -15652,10 +15652,10 @@ async function handlePlayGet(args) {
|
|
|
15652
15652
|
);
|
|
15653
15653
|
return 2;
|
|
15654
15654
|
}
|
|
15655
|
-
const client = new (0,
|
|
15655
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
15656
15656
|
const explicitJson = args.includes("--json");
|
|
15657
15657
|
const sourceOutput = args.includes("--source");
|
|
15658
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
15658
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args);
|
|
15659
15659
|
const requestedRevisionFlags = [
|
|
15660
15660
|
args.includes("--working"),
|
|
15661
15661
|
args.includes("--live"),
|
|
@@ -15715,7 +15715,7 @@ async function handlePlayGet(args) {
|
|
|
15715
15715
|
}
|
|
15716
15716
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15717
15717
|
if (jsonOutput) {
|
|
15718
|
-
|
|
15718
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, {
|
|
15719
15719
|
...detail,
|
|
15720
15720
|
...materializedFile ? {
|
|
15721
15721
|
message: loadedMessage,
|
|
@@ -15807,8 +15807,8 @@ async function handlePlayVersions(args) {
|
|
|
15807
15807
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15808
15808
|
return 1;
|
|
15809
15809
|
}
|
|
15810
|
-
const client = new (0,
|
|
15811
|
-
const jsonOutput =
|
|
15810
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
15811
|
+
const jsonOutput = _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args);
|
|
15812
15812
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15813
15813
|
command: "versions"
|
|
15814
15814
|
});
|
|
@@ -15816,7 +15816,7 @@ async function handlePlayVersions(args) {
|
|
|
15816
15816
|
parseReferencedPlayTarget2(playName).playName
|
|
15817
15817
|
);
|
|
15818
15818
|
if (jsonOutput) {
|
|
15819
|
-
|
|
15819
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, { versions });
|
|
15820
15820
|
return 0;
|
|
15821
15821
|
}
|
|
15822
15822
|
if (versions.length === 0) {
|
|
@@ -15854,9 +15854,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
15854
15854
|
"signals"
|
|
15855
15855
|
];
|
|
15856
15856
|
async function handlePlayList(args) {
|
|
15857
|
-
const jsonOutput =
|
|
15857
|
+
const jsonOutput = _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args);
|
|
15858
15858
|
const showCost = args.includes("--show-cost");
|
|
15859
|
-
const client = new (0,
|
|
15859
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
15860
15860
|
const categoriesIndex = args.indexOf("--categories");
|
|
15861
15861
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _552 => _552[categoriesIndex + 1], 'optionalAccess', _553 => _553.trim, 'call', _554 => _554()]) : void 0;
|
|
15862
15862
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15953,7 +15953,7 @@ async function handlePlayList(args) {
|
|
|
15953
15953
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15954
15954
|
lines.push(`Next page: ${nextPage}`);
|
|
15955
15955
|
}
|
|
15956
|
-
|
|
15956
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
15957
15957
|
{
|
|
15958
15958
|
plays,
|
|
15959
15959
|
count: plays.length,
|
|
@@ -15971,7 +15971,7 @@ async function handlePlayList(args) {
|
|
|
15971
15971
|
}
|
|
15972
15972
|
async function handlePlayPin(args, pinned) {
|
|
15973
15973
|
const target = _optionalChain([args, 'access', _563 => _563.find, 'call', _564 => _564((arg) => !arg.startsWith("-")), 'optionalAccess', _565 => _565.trim, 'call', _566 => _566()]);
|
|
15974
|
-
const jsonOutput =
|
|
15974
|
+
const jsonOutput = _chunkPGE4JW7Cjs.argsWantJson.call(void 0, args);
|
|
15975
15975
|
const dryRun = args.includes("--dry-run");
|
|
15976
15976
|
if (!target) {
|
|
15977
15977
|
console.error(
|
|
@@ -15989,11 +15989,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15989
15989
|
const name = parsedTarget.playName;
|
|
15990
15990
|
const plan = { name, pinned, dryRun };
|
|
15991
15991
|
if (dryRun) {
|
|
15992
|
-
|
|
15992
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, plan);
|
|
15993
15993
|
return 0;
|
|
15994
15994
|
}
|
|
15995
|
-
const result = await new (0,
|
|
15996
|
-
if (jsonOutput)
|
|
15995
|
+
const result = await new (0, _chunkDP6CINW2js.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15996
|
+
if (jsonOutput) _chunkPGE4JW7Cjs.printCompactJson.call(void 0, result);
|
|
15997
15997
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15998
15998
|
return 0;
|
|
15999
15999
|
}
|
|
@@ -16119,12 +16119,12 @@ async function handlePlayGrep(args) {
|
|
|
16119
16119
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
16120
16120
|
return 1;
|
|
16121
16121
|
}
|
|
16122
|
-
const client = new (0,
|
|
16122
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
16123
16123
|
const results = (await client.listPlays({ grep: query })).map(
|
|
16124
16124
|
summarizePlayGrepResult
|
|
16125
16125
|
);
|
|
16126
|
-
if (
|
|
16127
|
-
|
|
16126
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
16127
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, {
|
|
16128
16128
|
plays: results,
|
|
16129
16129
|
count: results.length,
|
|
16130
16130
|
query,
|
|
@@ -16147,7 +16147,7 @@ async function handlePlayGrep(args) {
|
|
|
16147
16147
|
return 0;
|
|
16148
16148
|
}
|
|
16149
16149
|
async function handlePlayDescribe(args) {
|
|
16150
|
-
const selection =
|
|
16150
|
+
const selection = _chunkPGE4JW7Cjs.parseJsonFields.call(void 0, args, "describe");
|
|
16151
16151
|
args = selection.args;
|
|
16152
16152
|
const playName = args[0];
|
|
16153
16153
|
if (!playName) {
|
|
@@ -16181,8 +16181,8 @@ async function handlePlayDescribe(args) {
|
|
|
16181
16181
|
`deepline plays check ${playName}`,
|
|
16182
16182
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
16183
16183
|
];
|
|
16184
|
-
if (
|
|
16185
|
-
|
|
16184
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
16185
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, {
|
|
16186
16186
|
ok: false,
|
|
16187
16187
|
error: { message },
|
|
16188
16188
|
next
|
|
@@ -16196,7 +16196,7 @@ async function handlePlayDescribe(args) {
|
|
|
16196
16196
|
}
|
|
16197
16197
|
return 2;
|
|
16198
16198
|
}
|
|
16199
|
-
const client = new (0,
|
|
16199
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
16200
16200
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16201
16201
|
command: "describe"
|
|
16202
16202
|
});
|
|
@@ -16206,9 +16206,9 @@ async function handlePlayDescribe(args) {
|
|
|
16206
16206
|
compact: args.includes("--compact")
|
|
16207
16207
|
}
|
|
16208
16208
|
);
|
|
16209
|
-
if (
|
|
16210
|
-
if (selection.fields)
|
|
16211
|
-
else
|
|
16209
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
16210
|
+
if (selection.fields) _chunkPGE4JW7Cjs.printJson.call(void 0, play, selection.fields);
|
|
16211
|
+
else _chunkPGE4JW7Cjs.printCompactJson.call(void 0, play);
|
|
16212
16212
|
return 0;
|
|
16213
16213
|
}
|
|
16214
16214
|
printPlayDescription(play);
|
|
@@ -16230,7 +16230,7 @@ async function handlePlaySave(args) {
|
|
|
16230
16230
|
}
|
|
16231
16231
|
let graph;
|
|
16232
16232
|
try {
|
|
16233
|
-
graph = await
|
|
16233
|
+
graph = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
16234
16234
|
"cli.play_save_bundle_graph",
|
|
16235
16235
|
{ targetKind: "file" },
|
|
16236
16236
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -16252,7 +16252,7 @@ async function handlePlaySave(args) {
|
|
|
16252
16252
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
16253
16253
|
};
|
|
16254
16254
|
if (options.jsonOutput) {
|
|
16255
|
-
|
|
16255
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, result);
|
|
16256
16256
|
} else {
|
|
16257
16257
|
console.error(result.message);
|
|
16258
16258
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -16274,7 +16274,7 @@ async function handlePlaySave(args) {
|
|
|
16274
16274
|
};
|
|
16275
16275
|
if (options.dryRun) {
|
|
16276
16276
|
if (options.jsonOutput) {
|
|
16277
|
-
|
|
16277
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, dryRun);
|
|
16278
16278
|
} else {
|
|
16279
16279
|
console.log(`Dry run: ${playName}`);
|
|
16280
16280
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16283,14 +16283,14 @@ async function handlePlaySave(args) {
|
|
|
16283
16283
|
}
|
|
16284
16284
|
return 0;
|
|
16285
16285
|
}
|
|
16286
|
-
const client = new (0,
|
|
16286
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
16287
16287
|
try {
|
|
16288
|
-
await
|
|
16288
|
+
await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
16289
16289
|
"cli.play_save_compile_manifests",
|
|
16290
16290
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16291
16291
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
16292
16292
|
);
|
|
16293
|
-
const saved = await
|
|
16293
|
+
const saved = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
16294
16294
|
"cli.play_save_register_draft",
|
|
16295
16295
|
{ targetKind: "file", playName, artifactHash },
|
|
16296
16296
|
() => client.registerPlayArtifact({
|
|
@@ -16319,7 +16319,7 @@ async function handlePlaySave(args) {
|
|
|
16319
16319
|
}
|
|
16320
16320
|
};
|
|
16321
16321
|
if (options.jsonOutput) {
|
|
16322
|
-
|
|
16322
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, result);
|
|
16323
16323
|
} else {
|
|
16324
16324
|
console.log(
|
|
16325
16325
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -16345,7 +16345,7 @@ async function handlePlayPublish(args) {
|
|
|
16345
16345
|
}
|
|
16346
16346
|
const { target: playName, useLatest } = options;
|
|
16347
16347
|
let revisionId = options.revisionId;
|
|
16348
|
-
const client = new (0,
|
|
16348
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
16349
16349
|
if (isFileTarget2(playName)) {
|
|
16350
16350
|
if (revisionId || useLatest) {
|
|
16351
16351
|
console.error(
|
|
@@ -16355,7 +16355,7 @@ async function handlePlayPublish(args) {
|
|
|
16355
16355
|
}
|
|
16356
16356
|
let graph;
|
|
16357
16357
|
try {
|
|
16358
|
-
graph = await
|
|
16358
|
+
graph = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
16359
16359
|
"cli.play_publish_bundle_graph",
|
|
16360
16360
|
{ targetKind: "file" },
|
|
16361
16361
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -16377,7 +16377,7 @@ async function handlePlayPublish(args) {
|
|
|
16377
16377
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
16378
16378
|
};
|
|
16379
16379
|
if (options.jsonOutput) {
|
|
16380
|
-
|
|
16380
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, result3);
|
|
16381
16381
|
} else {
|
|
16382
16382
|
console.error(result3.message);
|
|
16383
16383
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -16400,7 +16400,7 @@ async function handlePlayPublish(args) {
|
|
|
16400
16400
|
};
|
|
16401
16401
|
if (options.dryRun) {
|
|
16402
16402
|
if (options.jsonOutput) {
|
|
16403
|
-
|
|
16403
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, dryRun);
|
|
16404
16404
|
} else {
|
|
16405
16405
|
console.log(`Dry run: ${rootPlayName}`);
|
|
16406
16406
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16419,12 +16419,12 @@ async function handlePlayPublish(args) {
|
|
|
16419
16419
|
}
|
|
16420
16420
|
}
|
|
16421
16421
|
try {
|
|
16422
|
-
await
|
|
16422
|
+
await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
16423
16423
|
"cli.play_publish_compile_manifests",
|
|
16424
16424
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16425
16425
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
16426
16426
|
);
|
|
16427
|
-
await
|
|
16427
|
+
await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
16428
16428
|
"cli.play_publish_imports",
|
|
16429
16429
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16430
16430
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -16433,7 +16433,7 @@ async function handlePlayPublish(args) {
|
|
|
16433
16433
|
console.error(error instanceof Error ? error.message : String(error));
|
|
16434
16434
|
return 1;
|
|
16435
16435
|
}
|
|
16436
|
-
const published = await
|
|
16436
|
+
const published = await _chunkDBNTO3T4js.traceCliSpan.call(void 0,
|
|
16437
16437
|
"cli.play_publish_register_root",
|
|
16438
16438
|
{
|
|
16439
16439
|
targetKind: "file",
|
|
@@ -16468,7 +16468,7 @@ async function handlePlayPublish(args) {
|
|
|
16468
16468
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
16469
16469
|
};
|
|
16470
16470
|
if (options.jsonOutput) {
|
|
16471
|
-
|
|
16471
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, result2);
|
|
16472
16472
|
} else {
|
|
16473
16473
|
printPublishReceipt({
|
|
16474
16474
|
name: rootPlayName,
|
|
@@ -16499,7 +16499,7 @@ async function handlePlayPublish(args) {
|
|
|
16499
16499
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
16500
16500
|
latest: useLatest
|
|
16501
16501
|
};
|
|
16502
|
-
|
|
16502
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, result2);
|
|
16503
16503
|
return 0;
|
|
16504
16504
|
}
|
|
16505
16505
|
const resolvedName = parseReferencedPlayTarget2(playName).playName;
|
|
@@ -16523,7 +16523,7 @@ async function handlePlayPublish(args) {
|
|
|
16523
16523
|
revisionId ? { revisionId } : {}
|
|
16524
16524
|
);
|
|
16525
16525
|
if (options.jsonOutput) {
|
|
16526
|
-
|
|
16526
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, result);
|
|
16527
16527
|
} else {
|
|
16528
16528
|
printPublishReceipt({
|
|
16529
16529
|
name: result.name,
|
|
@@ -16563,7 +16563,7 @@ async function handlePlayDelete(args) {
|
|
|
16563
16563
|
);
|
|
16564
16564
|
return 2;
|
|
16565
16565
|
}
|
|
16566
|
-
const client = new (0,
|
|
16566
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
16567
16567
|
let detail;
|
|
16568
16568
|
try {
|
|
16569
16569
|
detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
|
|
@@ -16587,8 +16587,8 @@ async function handlePlayDelete(args) {
|
|
|
16587
16587
|
name: resolvedName,
|
|
16588
16588
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
16589
16589
|
};
|
|
16590
|
-
if (
|
|
16591
|
-
|
|
16590
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
16591
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, result2);
|
|
16592
16592
|
} else {
|
|
16593
16593
|
process.stdout.write(
|
|
16594
16594
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16598,8 +16598,8 @@ async function handlePlayDelete(args) {
|
|
|
16598
16598
|
return 0;
|
|
16599
16599
|
}
|
|
16600
16600
|
const result = await client.deletePlay(resolvedName);
|
|
16601
|
-
if (
|
|
16602
|
-
|
|
16601
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
16602
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, result);
|
|
16603
16603
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16604
16604
|
}
|
|
16605
16605
|
if (result.alreadyArchived) {
|
|
@@ -16638,13 +16638,13 @@ async function handlePlayRestore(args) {
|
|
|
16638
16638
|
);
|
|
16639
16639
|
return 2;
|
|
16640
16640
|
}
|
|
16641
|
-
const client = new (0,
|
|
16641
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
16642
16642
|
try {
|
|
16643
16643
|
const result = await client.restorePlay(
|
|
16644
16644
|
parseReferencedPlayTarget2(playName).playName
|
|
16645
16645
|
);
|
|
16646
|
-
if (
|
|
16647
|
-
|
|
16646
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
16647
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, result);
|
|
16648
16648
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16649
16649
|
}
|
|
16650
16650
|
if (result.alreadyActive) {
|
|
@@ -16772,21 +16772,21 @@ Common commands:
|
|
|
16772
16772
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16773
16773
|
}
|
|
16774
16774
|
};
|
|
16775
|
-
|
|
16775
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0, result2, {
|
|
16776
16776
|
json: options.json,
|
|
16777
16777
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16778
16778
|
`
|
|
16779
16779
|
});
|
|
16780
16780
|
return;
|
|
16781
16781
|
}
|
|
16782
|
-
const client = new (0,
|
|
16782
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
16783
16783
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16784
16784
|
throw new Error(
|
|
16785
16785
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16786
16786
|
);
|
|
16787
16787
|
}
|
|
16788
16788
|
const result = await client.startPlayRun(saved.request);
|
|
16789
|
-
|
|
16789
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
16790
16790
|
{ ...result },
|
|
16791
16791
|
{
|
|
16792
16792
|
json: options.json,
|
|
@@ -16822,7 +16822,7 @@ Examples:
|
|
|
16822
16822
|
).action(async (target, options) => {
|
|
16823
16823
|
process.exitCode = await handlePlayCheck([
|
|
16824
16824
|
target,
|
|
16825
|
-
...
|
|
16825
|
+
..._chunkPGE4JW7Cjs.jsonFieldArgs.call(void 0, options.json),
|
|
16826
16826
|
...options.full ? ["--full"] : []
|
|
16827
16827
|
]);
|
|
16828
16828
|
});
|
|
@@ -17030,10 +17030,10 @@ JSON field selection:
|
|
|
17030
17030
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
17031
17031
|
options,
|
|
17032
17032
|
passthroughArgs,
|
|
17033
|
-
|
|
17033
|
+
_chunkDBNTO3T4js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
17034
17034
|
)
|
|
17035
17035
|
);
|
|
17036
|
-
|
|
17036
|
+
_chunkDBNTO3T4js.recordCliTrace.call(void 0, {
|
|
17037
17037
|
phase: "cli.play_command_exit",
|
|
17038
17038
|
exitCode
|
|
17039
17039
|
});
|
|
@@ -17082,9 +17082,9 @@ Examples:
|
|
|
17082
17082
|
const limit = Number(options.historyLimit);
|
|
17083
17083
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
17084
17084
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
17085
|
-
const client = new (0,
|
|
17085
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
17086
17086
|
if (options.binding) {
|
|
17087
|
-
|
|
17087
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0,
|
|
17088
17088
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
17089
17089
|
);
|
|
17090
17090
|
return;
|
|
@@ -17092,7 +17092,7 @@ Examples:
|
|
|
17092
17092
|
const result = await client.listPlayTriggerInventory({
|
|
17093
17093
|
cursor: options.cursor
|
|
17094
17094
|
});
|
|
17095
|
-
|
|
17095
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, {
|
|
17096
17096
|
...result,
|
|
17097
17097
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
17098
17098
|
});
|
|
@@ -17139,7 +17139,7 @@ Examples:
|
|
|
17139
17139
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
17140
17140
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
17141
17141
|
}
|
|
17142
|
-
const result = await new (0,
|
|
17142
|
+
const result = await new (0, _chunkDP6CINW2js.DeeplineClient)().getPlaysActivity({
|
|
17143
17143
|
timeZone: options.timeZone,
|
|
17144
17144
|
days,
|
|
17145
17145
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -17153,7 +17153,7 @@ Examples:
|
|
|
17153
17153
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
17154
17154
|
);
|
|
17155
17155
|
}
|
|
17156
|
-
|
|
17156
|
+
_chunkPGE4JW7Cjs.printCommandEnvelope.call(void 0,
|
|
17157
17157
|
{ ...result },
|
|
17158
17158
|
{
|
|
17159
17159
|
json: Boolean(options.json),
|
|
@@ -17182,7 +17182,7 @@ Examples:
|
|
|
17182
17182
|
false
|
|
17183
17183
|
);
|
|
17184
17184
|
});
|
|
17185
|
-
|
|
17185
|
+
_chunk7XUVB46Djs.registerDeprecatedSearchCommand.call(void 0,
|
|
17186
17186
|
play,
|
|
17187
17187
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
17188
17188
|
);
|
|
@@ -17225,7 +17225,7 @@ Examples:
|
|
|
17225
17225
|
);
|
|
17226
17226
|
_chunkPQUUWFXYjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
17227
17227
|
async (target, options) => {
|
|
17228
|
-
const ownView = () => handlePlayDescribe(
|
|
17228
|
+
const ownView = () => handlePlayDescribe(_chunkPGE4JW7Cjs.describeArgs.call(void 0, target, options));
|
|
17229
17229
|
const [flagText] = [options.json].filter(
|
|
17230
17230
|
(value) => typeof value === "string"
|
|
17231
17231
|
);
|
|
@@ -17236,7 +17236,7 @@ Examples:
|
|
|
17236
17236
|
process.exitCode = await ownView();
|
|
17237
17237
|
return;
|
|
17238
17238
|
}
|
|
17239
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
17239
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-3X7HQ3JN.js")));
|
|
17240
17240
|
process.exitCode = await describeAnything(
|
|
17241
17241
|
name,
|
|
17242
17242
|
{
|
|
@@ -17354,7 +17354,7 @@ Examples:
|
|
|
17354
17354
|
deepline plays deployments <deployment-id>
|
|
17355
17355
|
`
|
|
17356
17356
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
17357
|
-
async (id, options) => id ?
|
|
17357
|
+
async (id, options) => id ? _chunkDCQP53KUjs.handleDeploymentGet.call(void 0, id, options) : _chunkDCQP53KUjs.handleDeploymentsList.call(void 0, options)
|
|
17358
17358
|
);
|
|
17359
17359
|
addPublishHelp(
|
|
17360
17360
|
play.command("publish <target>").description(
|
|
@@ -17489,14 +17489,14 @@ Examples:
|
|
|
17489
17489
|
const limit = Number(options.limit);
|
|
17490
17490
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
17491
17491
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
17492
|
-
const result = await new (0,
|
|
17492
|
+
const result = await new (0, _chunkDP6CINW2js.DeeplineClient)().runs.rowHistory({
|
|
17493
17493
|
playName: options.play,
|
|
17494
17494
|
runId,
|
|
17495
17495
|
tableNamespace: options.dataset,
|
|
17496
17496
|
limit,
|
|
17497
17497
|
cursor: options.cursor
|
|
17498
17498
|
});
|
|
17499
|
-
|
|
17499
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, {
|
|
17500
17500
|
...result,
|
|
17501
17501
|
...result.nextCursor ? {
|
|
17502
17502
|
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`
|
|
@@ -17566,7 +17566,7 @@ Examples:
|
|
|
17566
17566
|
).action(async (runId, options) => {
|
|
17567
17567
|
process.exitCode = await handleRunGet([
|
|
17568
17568
|
runId,
|
|
17569
|
-
...
|
|
17569
|
+
..._chunkPGE4JW7Cjs.jsonFieldArgs.call(void 0, options.json),
|
|
17570
17570
|
...options.webUrl ? ["--web-url"] : [],
|
|
17571
17571
|
...options.full ? ["--full"] : [],
|
|
17572
17572
|
...options.input ? ["--input"] : [],
|
|
@@ -17852,7 +17852,7 @@ Examples:
|
|
|
17852
17852
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17853
17853
|
...options.wait ? ["--wait"] : [],
|
|
17854
17854
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17855
|
-
...
|
|
17855
|
+
..._chunkPGE4JW7Cjs.jsonFieldArgs.call(void 0, options.json)
|
|
17856
17856
|
]);
|
|
17857
17857
|
});
|
|
17858
17858
|
const share = play.command("share").description(
|
|
@@ -18018,10 +18018,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18018
18018
|
return 2;
|
|
18019
18019
|
}
|
|
18020
18020
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18021
|
-
const status = await new (0,
|
|
18021
|
+
const status = await new (0, _chunkDP6CINW2js.DeeplineClient)().getSharePage(name);
|
|
18022
18022
|
const outputStatus = shareStatusForOutput(status);
|
|
18023
|
-
if (
|
|
18024
|
-
|
|
18023
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
18024
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, outputStatus);
|
|
18025
18025
|
return 0;
|
|
18026
18026
|
}
|
|
18027
18027
|
if (!outputStatus.share) {
|
|
@@ -18060,7 +18060,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18060
18060
|
return 2;
|
|
18061
18061
|
}
|
|
18062
18062
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18063
|
-
const client = new (0,
|
|
18063
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
18064
18064
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18065
18065
|
let resolvedVersion;
|
|
18066
18066
|
if (!revisionId) {
|
|
@@ -18091,8 +18091,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18091
18091
|
);
|
|
18092
18092
|
if (!hasCompleted) {
|
|
18093
18093
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18094
|
-
if (
|
|
18095
|
-
|
|
18094
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
18095
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, {
|
|
18096
18096
|
ok: false,
|
|
18097
18097
|
code: "NO_SUCCESSFUL_RUN",
|
|
18098
18098
|
message,
|
|
@@ -18116,8 +18116,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18116
18116
|
};
|
|
18117
18117
|
if (args.includes("--dry-run")) {
|
|
18118
18118
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
18119
|
-
if (
|
|
18120
|
-
|
|
18119
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
18120
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, plan);
|
|
18121
18121
|
} else {
|
|
18122
18122
|
console.log(
|
|
18123
18123
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -18127,8 +18127,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18127
18127
|
}
|
|
18128
18128
|
const status = await client.publishSharePage(name, request);
|
|
18129
18129
|
const outputStatus = shareStatusForOutput(status);
|
|
18130
|
-
if (
|
|
18131
|
-
|
|
18130
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
18131
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, outputStatus);
|
|
18132
18132
|
return 0;
|
|
18133
18133
|
}
|
|
18134
18134
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18159,9 +18159,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
18159
18159
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
18160
18160
|
...seoIndexing ? { seoIndexing } : {}
|
|
18161
18161
|
};
|
|
18162
|
-
const status = await new (0,
|
|
18163
|
-
if (
|
|
18164
|
-
|
|
18162
|
+
const status = await new (0, _chunkDP6CINW2js.DeeplineClient)().updateSharePage(name, request);
|
|
18163
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
18164
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, status);
|
|
18165
18165
|
return 0;
|
|
18166
18166
|
}
|
|
18167
18167
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -18176,7 +18176,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18176
18176
|
return 2;
|
|
18177
18177
|
}
|
|
18178
18178
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18179
|
-
const client = new (0,
|
|
18179
|
+
const client = new (0, _chunkDP6CINW2js.DeeplineClient)();
|
|
18180
18180
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18181
18181
|
const versionFlag = shareFlagValue(args, "--version");
|
|
18182
18182
|
if (!revisionId && versionFlag) {
|
|
@@ -18193,8 +18193,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18193
18193
|
revisionId ? { revisionId } : {}
|
|
18194
18194
|
);
|
|
18195
18195
|
const outputStatus = shareStatusForOutput(status);
|
|
18196
|
-
if (
|
|
18197
|
-
|
|
18196
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
18197
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, outputStatus);
|
|
18198
18198
|
return 0;
|
|
18199
18199
|
}
|
|
18200
18200
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18219,9 +18219,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
18219
18219
|
return 2;
|
|
18220
18220
|
}
|
|
18221
18221
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18222
|
-
const status = await new (0,
|
|
18223
|
-
if (
|
|
18224
|
-
|
|
18222
|
+
const status = await new (0, _chunkDP6CINW2js.DeeplineClient)().unpublishSharePage(name);
|
|
18223
|
+
if (_chunkPGE4JW7Cjs.argsWantJson.call(void 0, args)) {
|
|
18224
|
+
_chunkPGE4JW7Cjs.printCompactJson.call(void 0, status);
|
|
18225
18225
|
return 0;
|
|
18226
18226
|
}
|
|
18227
18227
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|