deepline 0.3.455 → 0.3.457
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client.ts +23 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +1 -1
- package/dist/cli/{auth-BGPCPVHW.mjs → auth-MZG5NF5U.mjs} +4 -4
- package/dist/cli/auth-O3XJDECG.js +40 -0
- package/dist/cli/{billing-6BLEXHCR.mjs → billing-DWKZIL66.mjs} +4 -4
- package/dist/cli/{billing-FCC2YOKB.js → billing-RG3LF5OU.js} +73 -73
- package/dist/cli/{chunk-VMGTYM3A.js → chunk-5TIASNUT.js} +20 -20
- package/dist/cli/{chunk-R2GLGLDR.mjs → chunk-77Z5BO7D.mjs} +21 -0
- package/dist/cli/{chunk-RYGDM5BG.mjs → chunk-7IIRZXCO.mjs} +1 -1
- package/dist/cli/{chunk-LQH2KJ53.js → chunk-7JW4WIWU.js} +81 -81
- package/dist/cli/{chunk-NMJ4D2WO.js → chunk-AQFHU3DW.js} +21 -0
- package/dist/cli/{chunk-YIFCV77L.mjs → chunk-BD5A242C.mjs} +2 -2
- package/dist/cli/{chunk-DPTEABFU.mjs → chunk-CHBYYJ7Q.mjs} +1 -1
- package/dist/cli/{chunk-LRA5YJVV.mjs → chunk-CQHTN3RY.mjs} +1 -1
- package/dist/cli/{chunk-SMZUU4NY.js → chunk-CTWD4ZHP.js} +2 -2
- package/dist/cli/{chunk-3E4WSS35.mjs → chunk-E5BGIERY.mjs} +1 -1
- package/dist/cli/{chunk-6TOMXZX3.js → chunk-EHEBXARN.js} +1 -1
- package/dist/cli/{chunk-IUSGWMGK.mjs → chunk-EXOCQILY.mjs} +2 -2
- package/dist/cli/{chunk-3RQY2OG7.mjs → chunk-F64XBZ3A.mjs} +2 -2
- package/dist/cli/{chunk-EXZOUJCD.js → chunk-GLXYOSEL.js} +3 -3
- package/dist/cli/{chunk-MFKTYIBJ.js → chunk-J2ZS4PEC.js} +51 -51
- package/dist/cli/{chunk-4Z3X5CWI.mjs → chunk-JANCYPKP.mjs} +1 -1
- package/dist/cli/{chunk-RQMEYYN4.js → chunk-JCWEQQGE.js} +35 -35
- package/dist/cli/{chunk-2SN2EEQW.js → chunk-JL5DCH37.js} +16 -16
- package/dist/cli/{chunk-J7WYWQF4.js → chunk-KKPKLLNB.js} +6 -6
- package/dist/cli/{chunk-CZREA5NE.js → chunk-KTAVYWYI.js} +8 -8
- package/dist/cli/{chunk-BCB2QNG4.js → chunk-KVXBMYRY.js} +2 -2
- package/dist/cli/{chunk-WBULEVM4.mjs → chunk-L7WE7Q63.mjs} +1 -1
- package/dist/cli/{chunk-FCQ52RUB.mjs → chunk-LHHJATXY.mjs} +2 -2
- package/dist/cli/{chunk-YKEWDVZC.js → chunk-LKAITV2M.js} +26 -26
- package/dist/cli/{chunk-PQ4JU2MV.mjs → chunk-LVGCJZ5S.mjs} +12 -1
- package/dist/cli/{chunk-B7K3QD5W.mjs → chunk-MU4ZDVQK.mjs} +8 -8
- package/dist/cli/{chunk-6F7TD4M4.js → chunk-MWRPRDHW.js} +6 -6
- package/dist/cli/{chunk-VIGEE67Z.mjs → chunk-NMVLO3JM.mjs} +3 -3
- package/dist/cli/{chunk-4BZFRLKU.mjs → chunk-QGLFBQ43.mjs} +5 -5
- package/dist/cli/{chunk-W3DIXRDT.js → chunk-SFCNYJ4B.js} +21 -10
- package/dist/cli/{chunk-2R7JD2NY.js → chunk-TTBQOHG4.js} +4 -4
- package/dist/cli/{chunk-UVJLG5KD.js → chunk-US3SZ7VQ.js} +50 -50
- package/dist/cli/{chunk-MCMLQ7GD.js → chunk-VLL6RRIA.js} +8 -8
- package/dist/cli/{chunk-2VHR5DXQ.mjs → chunk-W3IZ55XS.mjs} +3 -3
- package/dist/cli/{chunk-WVGPAP7A.mjs → chunk-X4XNGIPL.mjs} +3 -3
- package/dist/cli/{chunk-R5VMRVRN.mjs → chunk-YVQVS7SF.mjs} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-27T3L4RC.mjs → csv-27M4PREP.mjs} +3 -3
- package/dist/cli/{csv-TEAA2YV5.js → csv-QSAAPCYE.js} +12 -12
- package/dist/cli/{db-N3NRYYI4.mjs → db-H73PJID6.mjs} +4 -4
- package/dist/cli/{db-J3PPU7GX.js → db-LYPTNAPX.js} +25 -25
- package/dist/cli/{describe-PX7XBLZF.js → describe-KYLGQSMO.js} +17 -17
- package/dist/cli/{describe-SJBCCTR7.mjs → describe-Y5BHLZLH.mjs} +13 -13
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/{executions-WXIL4C5M.js → executions-DHGYCPFO.js} +6 -6
- package/dist/cli/{executions-XN376RR4.mjs → executions-ZGQEWS2X.mjs} +4 -4
- package/dist/cli/{feedback-LG5NWE3R.js → feedback-3YQPYCMT.js} +7 -7
- package/dist/cli/{feedback-KHJXJ2K7.mjs → feedback-EBXU4ANA.mjs} +3 -3
- package/dist/cli/git-4ACVGA4W.js +24 -0
- package/dist/cli/{git-726A5HHA.mjs → git-CFPU33DJ.mjs} +4 -4
- package/dist/cli/index.js +136 -136
- package/dist/cli/index.mjs +38 -38
- package/dist/cli/{legacy-noops-QI6VN34P.js → legacy-noops-CDKZ7RYT.js} +7 -7
- package/dist/cli/{legacy-noops-V4WS63SD.mjs → legacy-noops-TFGIWA5C.mjs} +4 -4
- package/dist/cli/{monitors-AAWRYPHY.mjs → monitors-6ED5RJYG.mjs} +5 -5
- package/dist/cli/{monitors-ICQ2Q4XT.js → monitors-PCMAB7NP.js} +89 -89
- package/dist/cli/{org-5JV6KYY2.js → org-KAARC2XN.js} +66 -66
- package/dist/cli/{org-7VJKBTZX.mjs → org-V4QYXLOL.mjs} +4 -4
- package/dist/cli/{play-2D6ZIJEV.mjs → play-OTTJ6S2G.mjs} +11 -11
- package/dist/cli/{play-HDI2MLJL.js → play-PPWCRYME.js} +284 -284
- package/dist/cli/{providers-GIE2W4ZG.js → providers-ICY74FM5.js} +50 -8
- package/dist/cli/{providers-KSKVBQFP.mjs → providers-ULL5EJHY.mjs} +46 -4
- package/dist/cli/{quickstart-7OGLDF3M.mjs → quickstart-QLVS53TD.mjs} +3 -3
- package/dist/cli/{quickstart-JKNKNDXG.js → quickstart-YOUCGJQP.js} +5 -5
- package/dist/cli/{search-CPKXOGV4.mjs → search-AGYQR6YQ.mjs} +5 -5
- package/dist/cli/search-XNU6FOOH.js +30 -0
- package/dist/cli/{secrets-LFQXTVIE.js → secrets-OA3HHNHP.js} +13 -13
- package/dist/cli/{secrets-QHGLI7O6.mjs → secrets-PJFO3RZW.mjs} +4 -4
- package/dist/cli/{sessions-HVMTS7N5.js → sessions-OYTROOOG.js} +5 -5
- package/dist/cli/{sessions-M4OT6NPP.mjs → sessions-WNRZQEBL.mjs} +4 -4
- package/dist/cli/{settings-BJBOMHL2.mjs → settings-JIYDWBPM.mjs} +10 -10
- package/dist/cli/{settings-42WLEHAZ.js → settings-RXGOZAZI.js} +77 -77
- package/dist/cli/{setup-6TZ4L5LT.js → setup-VXNSUQYT.js} +43 -43
- package/dist/cli/{setup-ILUF7GCP.mjs → setup-YAYE7KQM.mjs} +8 -8
- package/dist/cli/skills-5UCGZVCN.js +30 -0
- package/dist/cli/{skills-7RIWQDD6.mjs → skills-XYDBLLRK.mjs} +6 -6
- package/dist/cli/{tools-J3VDLDF2.mjs → tools-TRDYMDPL.mjs} +13 -13
- package/dist/cli/tools-UMSFNX5B.js +45 -0
- package/dist/cli/update-K5AOROYI.js +32 -0
- package/dist/cli/{update-GMXJF4WT.mjs → update-KH36JGLK.mjs} +8 -8
- package/dist/cli/{workflow-LVVK2N3T.js → workflow-CQZBGIQ2.js} +15 -15
- package/dist/cli/{workflow-W7NQS26K.mjs → workflow-EYWCMD4D.mjs} +5 -5
- package/dist/{client-BbU5_j7n.d.mts → client-BX2EVlPo.d.mts} +14 -0
- package/dist/{client-CYqG23K1.d.ts → client-CRz2laoR.d.ts} +14 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +84 -84
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-SRR4DW75.js +0 -40
- package/dist/cli/git-PXYOFDQH.js +0 -24
- package/dist/cli/search-LOWDQS5X.js +0 -30
- package/dist/cli/skills-I5OWZZ2Z.js +0 -30
- package/dist/cli/tools-Y4SPWXFJ.js +0 -45
- package/dist/cli/update-HQ5WT3G6.js +0 -32
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
var _chunkPQUUWFXYjs = require('./chunk-PQUUWFXY.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKTAVYWYIjs = require('./chunk-KTAVYWYI.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkLKAITV2Mjs = require('./chunk-LKAITV2M.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 _chunkSFCNYJ4Bjs = require('./chunk-SFCNYJ4B.js');
|
|
53
53
|
require('./chunk-E4CABWXL.js');
|
|
54
54
|
|
|
55
55
|
|
|
@@ -70,18 +70,18 @@ require('./chunk-XDVT3GOM.js');
|
|
|
70
70
|
|
|
71
71
|
|
|
72
72
|
|
|
73
|
-
var
|
|
73
|
+
var _chunkMWRPRDHWjs = require('./chunk-MWRPRDHW.js');
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
80
|
-
require('./chunk-
|
|
79
|
+
var _chunkCTWD4ZHPjs = require('./chunk-CTWD4ZHP.js');
|
|
80
|
+
require('./chunk-J2ZS4PEC.js');
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
|
|
84
|
-
var
|
|
84
|
+
var _chunkGLXYOSELjs = require('./chunk-GLXYOSEL.js');
|
|
85
85
|
|
|
86
86
|
|
|
87
87
|
|
|
@@ -96,16 +96,16 @@ var _chunkEXZOUJCDjs = require('./chunk-EXZOUJCD.js');
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
var
|
|
99
|
+
var _chunkKKPKLLNBjs = require('./chunk-KKPKLLNB.js');
|
|
100
100
|
|
|
101
101
|
|
|
102
|
-
var
|
|
102
|
+
var _chunkTTBQOHG4js = require('./chunk-TTBQOHG4.js');
|
|
103
103
|
require('./chunk-ALJJRZNJ.js');
|
|
104
104
|
require('./chunk-XNYIZMNQ.js');
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
108
|
-
require('./chunk-
|
|
108
|
+
require('./chunk-EHEBXARN.js');
|
|
109
109
|
require('./chunk-OG64RBAC.js');
|
|
110
110
|
|
|
111
111
|
|
|
@@ -2087,7 +2087,7 @@ function resolveField(key, command) {
|
|
|
2087
2087
|
function printSettings(result, json, name) {
|
|
2088
2088
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2089
2089
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2090
|
-
|
|
2090
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
2091
2091
|
{
|
|
2092
2092
|
...result,
|
|
2093
2093
|
settings: Object.fromEntries(
|
|
@@ -2131,7 +2131,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2131
2131
|
valueSyntax: field.cli.valueSyntax,
|
|
2132
2132
|
examples: field.cli.examples
|
|
2133
2133
|
}));
|
|
2134
|
-
|
|
2134
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
2135
2135
|
{
|
|
2136
2136
|
fields: descriptions,
|
|
2137
2137
|
render: {
|
|
@@ -2156,7 +2156,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2156
2156
|
async (options, command) => {
|
|
2157
2157
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2158
2158
|
printSettings(
|
|
2159
|
-
await new (0,
|
|
2159
|
+
await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2160
2160
|
options.json,
|
|
2161
2161
|
options.name
|
|
2162
2162
|
);
|
|
@@ -2187,7 +2187,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2187
2187
|
);
|
|
2188
2188
|
}
|
|
2189
2189
|
if (options.dryRun) {
|
|
2190
|
-
|
|
2190
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
2191
2191
|
{
|
|
2192
2192
|
dryRun: true,
|
|
2193
2193
|
play,
|
|
@@ -2208,7 +2208,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2208
2208
|
return;
|
|
2209
2209
|
}
|
|
2210
2210
|
printSettings(
|
|
2211
|
-
await new (0,
|
|
2211
|
+
await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2212
2212
|
options.json
|
|
2213
2213
|
);
|
|
2214
2214
|
};
|
|
@@ -2234,13 +2234,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2234
2234
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2235
2235
|
{ exitCode: 2 }
|
|
2236
2236
|
);
|
|
2237
|
-
const page = await new (0,
|
|
2237
|
+
const page = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2238
2238
|
root: options.root,
|
|
2239
2239
|
limit,
|
|
2240
2240
|
cursor: options.cursor
|
|
2241
2241
|
});
|
|
2242
2242
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2243
|
-
|
|
2243
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
2244
2244
|
{
|
|
2245
2245
|
...page,
|
|
2246
2246
|
nextCommand,
|
|
@@ -2291,7 +2291,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2291
2291
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2292
2292
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2293
2293
|
};
|
|
2294
|
-
const client = new (0,
|
|
2294
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
2295
2295
|
const paths = [];
|
|
2296
2296
|
let cursor;
|
|
2297
2297
|
do {
|
|
@@ -2353,7 +2353,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2353
2353
|
moved.push(move.playName);
|
|
2354
2354
|
}
|
|
2355
2355
|
}
|
|
2356
|
-
|
|
2356
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
2357
2357
|
{
|
|
2358
2358
|
dryRun: Boolean(options.dryRun),
|
|
2359
2359
|
from: options.from,
|
|
@@ -2481,7 +2481,7 @@ function triggerLines(view) {
|
|
|
2481
2481
|
return lines;
|
|
2482
2482
|
}
|
|
2483
2483
|
function printView(view, json) {
|
|
2484
|
-
|
|
2484
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
2485
2485
|
{
|
|
2486
2486
|
...view,
|
|
2487
2487
|
render: {
|
|
@@ -2494,7 +2494,7 @@ function printView(view, json) {
|
|
|
2494
2494
|
);
|
|
2495
2495
|
}
|
|
2496
2496
|
function printResult(result, json) {
|
|
2497
|
-
|
|
2497
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
2498
2498
|
{
|
|
2499
2499
|
...result,
|
|
2500
2500
|
render: {
|
|
@@ -2524,7 +2524,7 @@ async function mutate(command, options, build) {
|
|
|
2524
2524
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2525
2525
|
}
|
|
2526
2526
|
if (options.dryRun) {
|
|
2527
|
-
|
|
2527
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
2528
2528
|
{
|
|
2529
2529
|
dryRun: true,
|
|
2530
2530
|
play: options.play,
|
|
@@ -2543,7 +2543,7 @@ async function mutate(command, options, build) {
|
|
|
2543
2543
|
return;
|
|
2544
2544
|
}
|
|
2545
2545
|
printResult(
|
|
2546
|
-
await new (0,
|
|
2546
|
+
await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2547
2547
|
options.json
|
|
2548
2548
|
);
|
|
2549
2549
|
}
|
|
@@ -2576,7 +2576,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2576
2576
|
}).addHelpText("after", help2);
|
|
2577
2577
|
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) => {
|
|
2578
2578
|
printView(
|
|
2579
|
-
await new (0,
|
|
2579
|
+
await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2580
2580
|
options.json
|
|
2581
2581
|
);
|
|
2582
2582
|
});
|
|
@@ -2620,7 +2620,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2620
2620
|
if (options.auth === void 0) {
|
|
2621
2621
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2622
2622
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2623
|
-
const current = await new (0,
|
|
2623
|
+
const current = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2624
2624
|
options.play
|
|
2625
2625
|
);
|
|
2626
2626
|
return {
|
|
@@ -2697,7 +2697,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2697
2697
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2698
2698
|
"runtime.event": "Other event."
|
|
2699
2699
|
};
|
|
2700
|
-
var RUN_LOGS_KIND_HELP =
|
|
2700
|
+
var RUN_LOGS_KIND_HELP = _chunkSFCNYJ4Bjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2701
2701
|
kind,
|
|
2702
2702
|
description: KIND_DESCRIPTIONS[kind]
|
|
2703
2703
|
}));
|
|
@@ -2834,9 +2834,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2834
2834
|
const args = program.args;
|
|
2835
2835
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2836
2836
|
error.exitCode = 2;
|
|
2837
|
-
if (
|
|
2838
|
-
|
|
2839
|
-
Object.assign(new (0,
|
|
2837
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2838
|
+
_chunkKKPKLLNBjs.printJsonError.call(void 0,
|
|
2839
|
+
Object.assign(new (0, _chunkSFCNYJ4Bjs.RunEventQueryInputError)(error.message), {
|
|
2840
2840
|
exitCode: 2,
|
|
2841
2841
|
retryable: false
|
|
2842
2842
|
})
|
|
@@ -2880,14 +2880,14 @@ function parseQuery(args, resource) {
|
|
|
2880
2880
|
if (VALUE_FLAGS.has(flag)) {
|
|
2881
2881
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2882
2882
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2883
|
-
throw new (0,
|
|
2883
|
+
throw new (0, _chunkSFCNYJ4Bjs.RunEventQueryInputError)(
|
|
2884
2884
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2885
2885
|
);
|
|
2886
2886
|
}
|
|
2887
2887
|
if (flag === "--sum") sums.push(value);
|
|
2888
2888
|
else {
|
|
2889
2889
|
if (values[flag] !== void 0) {
|
|
2890
|
-
throw new (0,
|
|
2890
|
+
throw new (0, _chunkSFCNYJ4Bjs.RunEventQueryInputError)(
|
|
2891
2891
|
`${flag} may only be supplied once.`
|
|
2892
2892
|
);
|
|
2893
2893
|
}
|
|
@@ -2901,12 +2901,12 @@ function parseQuery(args, resource) {
|
|
|
2901
2901
|
}
|
|
2902
2902
|
if (arg.startsWith("-")) {
|
|
2903
2903
|
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.";
|
|
2904
|
-
throw new (0,
|
|
2904
|
+
throw new (0, _chunkSFCNYJ4Bjs.RunEventQueryInputError)(
|
|
2905
2905
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2906
2906
|
);
|
|
2907
2907
|
}
|
|
2908
2908
|
if (runId !== void 0) {
|
|
2909
|
-
throw new (0,
|
|
2909
|
+
throw new (0, _chunkSFCNYJ4Bjs.RunEventQueryInputError)(
|
|
2910
2910
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2911
2911
|
);
|
|
2912
2912
|
}
|
|
@@ -2914,7 +2914,7 @@ function parseQuery(args, resource) {
|
|
|
2914
2914
|
}
|
|
2915
2915
|
if (switches.has("--fields")) {
|
|
2916
2916
|
if (runId !== void 0) {
|
|
2917
|
-
throw new (0,
|
|
2917
|
+
throw new (0, _chunkSFCNYJ4Bjs.RunEventQueryInputError)(
|
|
2918
2918
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2919
2919
|
);
|
|
2920
2920
|
}
|
|
@@ -2927,18 +2927,18 @@ function parseQuery(args, resource) {
|
|
|
2927
2927
|
)
|
|
2928
2928
|
];
|
|
2929
2929
|
if (incompatible.length) {
|
|
2930
|
-
throw new (0,
|
|
2930
|
+
throw new (0, _chunkSFCNYJ4Bjs.RunEventQueryInputError)(
|
|
2931
2931
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2932
2932
|
);
|
|
2933
2933
|
}
|
|
2934
2934
|
}
|
|
2935
2935
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2936
|
-
throw new (0,
|
|
2936
|
+
throw new (0, _chunkSFCNYJ4Bjs.RunEventQueryInputError)(
|
|
2937
2937
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2938
2938
|
);
|
|
2939
2939
|
}
|
|
2940
2940
|
if (sums.length && switches.has("--count")) {
|
|
2941
|
-
throw new (0,
|
|
2941
|
+
throw new (0, _chunkSFCNYJ4Bjs.RunEventQueryInputError)(
|
|
2942
2942
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2943
2943
|
);
|
|
2944
2944
|
}
|
|
@@ -2946,7 +2946,7 @@ function parseQuery(args, resource) {
|
|
|
2946
2946
|
if (operation === "count") {
|
|
2947
2947
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2948
2948
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2949
|
-
throw new (0,
|
|
2949
|
+
throw new (0, _chunkSFCNYJ4Bjs.RunEventQueryInputError)(
|
|
2950
2950
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2951
2951
|
);
|
|
2952
2952
|
}
|
|
@@ -2981,16 +2981,16 @@ function parseQuery(args, resource) {
|
|
|
2981
2981
|
];
|
|
2982
2982
|
}
|
|
2983
2983
|
}
|
|
2984
|
-
const request =
|
|
2984
|
+
const request = _chunkSFCNYJ4Bjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2985
2985
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2986
2986
|
const backend = values["--runtime-backend"];
|
|
2987
2987
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2988
|
-
throw new (0,
|
|
2988
|
+
throw new (0, _chunkSFCNYJ4Bjs.RunEventQueryInputError)(
|
|
2989
2989
|
"--runtime-backend must be daytona or modal."
|
|
2990
2990
|
);
|
|
2991
2991
|
}
|
|
2992
2992
|
if (backend && !namespace) {
|
|
2993
|
-
throw new (0,
|
|
2993
|
+
throw new (0, _chunkSFCNYJ4Bjs.RunEventQueryInputError)(
|
|
2994
2994
|
"--runtime-backend requires --runtime-namespace."
|
|
2995
2995
|
);
|
|
2996
2996
|
}
|
|
@@ -3037,12 +3037,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3037
3037
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3038
3038
|
const record3 = failure;
|
|
3039
3039
|
const status = record3.statusCode;
|
|
3040
|
-
const exitCode = error instanceof
|
|
3040
|
+
const exitCode = error instanceof _chunkSFCNYJ4Bjs.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;
|
|
3041
3041
|
const diagnostic = Object.assign(failure, {
|
|
3042
3042
|
exitCode,
|
|
3043
3043
|
retryable: exitCode === 5
|
|
3044
3044
|
});
|
|
3045
|
-
if (
|
|
3045
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) _chunkKKPKLLNBjs.printJsonError.call(void 0, diagnostic);
|
|
3046
3046
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3047
3047
|
return exitCode;
|
|
3048
3048
|
}
|
|
@@ -3057,7 +3057,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3057
3057
|
...criteria
|
|
3058
3058
|
} = request;
|
|
3059
3059
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3060
|
-
const client = new (0,
|
|
3060
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
3061
3061
|
let result;
|
|
3062
3062
|
if (request.operation === "fields") {
|
|
3063
3063
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3123,13 +3123,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3123
3123
|
lines.push(`Next page: ${nextPage}`);
|
|
3124
3124
|
}
|
|
3125
3125
|
}
|
|
3126
|
-
|
|
3126
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
3127
3127
|
{
|
|
3128
3128
|
...result,
|
|
3129
3129
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3130
3130
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3131
3131
|
},
|
|
3132
|
-
{ json:
|
|
3132
|
+
{ json: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3133
3133
|
` }
|
|
3134
3134
|
);
|
|
3135
3135
|
return 0;
|
|
@@ -4048,7 +4048,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4048
4048
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4049
4049
|
);
|
|
4050
4050
|
}
|
|
4051
|
-
const response = await new (0,
|
|
4051
|
+
const response = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4052
4052
|
keys
|
|
4053
4053
|
});
|
|
4054
4054
|
const failed = response.receipts.filter(
|
|
@@ -4060,7 +4060,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4060
4060
|
JSON.stringify(response, null, 2) + "\n",
|
|
4061
4061
|
{ flag: "wx", mode: 384 }
|
|
4062
4062
|
);
|
|
4063
|
-
|
|
4063
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
4064
4064
|
{
|
|
4065
4065
|
runId,
|
|
4066
4066
|
out: options.out,
|
|
@@ -4070,7 +4070,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4070
4070
|
{ json: true }
|
|
4071
4071
|
);
|
|
4072
4072
|
} else {
|
|
4073
|
-
|
|
4073
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4074
4074
|
}
|
|
4075
4075
|
if (failed)
|
|
4076
4076
|
process.exitCode = response.receipts.some(
|
|
@@ -4109,7 +4109,7 @@ includes nextCommand when another page is available.
|
|
|
4109
4109
|
{ exitCode: 2 }
|
|
4110
4110
|
);
|
|
4111
4111
|
}
|
|
4112
|
-
const page = await new (0,
|
|
4112
|
+
const page = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4113
4113
|
launchKey: options.launchKey,
|
|
4114
4114
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4115
4115
|
limit
|
|
@@ -4124,7 +4124,7 @@ includes nextCommand when another page is available.
|
|
|
4124
4124
|
"--limit",
|
|
4125
4125
|
String(limit)
|
|
4126
4126
|
].join(" ") : null;
|
|
4127
|
-
|
|
4127
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
4128
4128
|
{
|
|
4129
4129
|
parentRunId,
|
|
4130
4130
|
launchKey: options.launchKey,
|
|
@@ -4160,7 +4160,7 @@ async function handleRunsHistory(options) {
|
|
|
4160
4160
|
throw new Error("--limit must be a positive integer.");
|
|
4161
4161
|
}
|
|
4162
4162
|
}
|
|
4163
|
-
const page = await new (0,
|
|
4163
|
+
const page = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().runs.history({
|
|
4164
4164
|
cursor: options.cursor,
|
|
4165
4165
|
orgId: options.org,
|
|
4166
4166
|
search: options.search,
|
|
@@ -4176,7 +4176,7 @@ async function handleRunsHistory(options) {
|
|
|
4176
4176
|
);
|
|
4177
4177
|
}
|
|
4178
4178
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4179
|
-
|
|
4179
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
4180
4180
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4181
4181
|
options.json ? { json: true } : {}
|
|
4182
4182
|
);
|
|
@@ -4228,12 +4228,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4228
4228
|
return 1;
|
|
4229
4229
|
}
|
|
4230
4230
|
}
|
|
4231
|
-
const result = await new (0,
|
|
4231
|
+
const result = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().runs.rerun(runId, {
|
|
4232
4232
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4233
4233
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4234
4234
|
});
|
|
4235
|
-
if (
|
|
4236
|
-
|
|
4235
|
+
if (_chunkKKPKLLNBjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4236
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4237
4237
|
} else {
|
|
4238
4238
|
console.log(
|
|
4239
4239
|
result.deduplicated === true ? `
|
|
@@ -4501,7 +4501,7 @@ function projectRunDatasetCell(value) {
|
|
|
4501
4501
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
4502
4502
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
4503
4503
|
if (typeof logicalValue === "object") {
|
|
4504
|
-
return
|
|
4504
|
+
return _chunkKKPKLLNBjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
4505
4505
|
}
|
|
4506
4506
|
return logicalValue;
|
|
4507
4507
|
}
|
|
@@ -6972,7 +6972,7 @@ function renderOutcome(outcome) {
|
|
|
6972
6972
|
function printResult2(input) {
|
|
6973
6973
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6974
6974
|
if (failed) process.exitCode = 1;
|
|
6975
|
-
|
|
6975
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
6976
6976
|
{
|
|
6977
6977
|
deployment: { ...input.deployment, status: input.status },
|
|
6978
6978
|
plays: input.outcomes,
|
|
@@ -6997,7 +6997,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6997
6997
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6998
6998
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6999
6999
|
});
|
|
7000
|
-
const { http, config } =
|
|
7000
|
+
const { http, config } = _chunkKKPKLLNBjs.getAuthedHttpClient.call(void 0, );
|
|
7001
7001
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
7002
7002
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
7003
7003
|
deliveryId,
|
|
@@ -7024,7 +7024,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
7024
7024
|
},
|
|
7025
7025
|
{
|
|
7026
7026
|
bundle: bundleDeployPlayFile,
|
|
7027
|
-
fetchImpl:
|
|
7027
|
+
fetchImpl: _chunkTTBQOHG4js.fetchWithDeploymentProtection,
|
|
7028
7028
|
// The plays are already here: "opening" the source is naming it.
|
|
7029
7029
|
openSource: async () => ({
|
|
7030
7030
|
open: async () => ({ repoRoot: root })
|
|
@@ -7592,7 +7592,7 @@ function parseInputFlagValue(raw) {
|
|
|
7592
7592
|
return raw;
|
|
7593
7593
|
}
|
|
7594
7594
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
7595
|
-
const selection =
|
|
7595
|
+
const selection = _chunkKKPKLLNBjs.parseJsonFields.call(void 0, args, "run");
|
|
7596
7596
|
args = selection.args;
|
|
7597
7597
|
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.";
|
|
7598
7598
|
let filePath = null;
|
|
@@ -7604,7 +7604,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7604
7604
|
let revisionSelector = null;
|
|
7605
7605
|
const watch = !args.includes("--no-wait");
|
|
7606
7606
|
const dryRun = args.includes("--dry-run");
|
|
7607
|
-
let jsonOutput = dryRun ?
|
|
7607
|
+
let jsonOutput = dryRun ? _chunkKKPKLLNBjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkKKPKLLNBjs.argsWantJson.call(void 0, args);
|
|
7608
7608
|
const fullJson = args.includes("--full");
|
|
7609
7609
|
const force = args.includes("--force");
|
|
7610
7610
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -7667,7 +7667,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7667
7667
|
"--log-level requires one of: debug, info, warn, error."
|
|
7668
7668
|
);
|
|
7669
7669
|
}
|
|
7670
|
-
const parsed =
|
|
7670
|
+
const parsed = _chunkSFCNYJ4Bjs.parseLogLevel.call(void 0, value);
|
|
7671
7671
|
if (!parsed) {
|
|
7672
7672
|
throw new Error(
|
|
7673
7673
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -7985,7 +7985,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
7985
7985
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
7986
7986
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
7987
7987
|
);
|
|
7988
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
7988
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkSFCNYJ4Bjs.parseLogLevel.call(void 0, options.logLevel);
|
|
7989
7989
|
if (!logLevel)
|
|
7990
7990
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
7991
7991
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -7999,13 +7999,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
7999
7999
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
8000
8000
|
logLevel = "debug";
|
|
8001
8001
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
8002
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
8003
|
-
[...fullJson ? ["--full"] : [], ...
|
|
8002
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkKKPKLLNBjs.parseJsonFields.call(void 0,
|
|
8003
|
+
[...fullJson ? ["--full"] : [], ..._chunkKKPKLLNBjs.jsonFieldArgs.call(void 0, options.json)],
|
|
8004
8004
|
"run"
|
|
8005
8005
|
).fields;
|
|
8006
8006
|
const watch = options.wait === false ? false : base.watch;
|
|
8007
8007
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
8008
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
8008
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkKKPKLLNBjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
8009
8009
|
const verboseLogs = Boolean(
|
|
8010
8010
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
8011
8011
|
);
|
|
@@ -8126,7 +8126,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
8126
8126
|
// src/cli/renderers/local-play-execution.ts
|
|
8127
8127
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
8128
8128
|
if (options.dryRun) {
|
|
8129
|
-
|
|
8129
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
8130
8130
|
return;
|
|
8131
8131
|
}
|
|
8132
8132
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -8298,7 +8298,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
8298
8298
|
const startedAt = Date.now();
|
|
8299
8299
|
try {
|
|
8300
8300
|
const result = run();
|
|
8301
|
-
|
|
8301
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
8302
8302
|
phase,
|
|
8303
8303
|
ms: Date.now() - startedAt,
|
|
8304
8304
|
ok: true,
|
|
@@ -8306,7 +8306,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
8306
8306
|
});
|
|
8307
8307
|
return result;
|
|
8308
8308
|
} catch (error) {
|
|
8309
|
-
|
|
8309
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
8310
8310
|
phase,
|
|
8311
8311
|
ms: Date.now() - startedAt,
|
|
8312
8312
|
ok: false,
|
|
@@ -9095,7 +9095,7 @@ function playStatusErrorText(status) {
|
|
|
9095
9095
|
function isRetryablePendingStartFailure(status) {
|
|
9096
9096
|
if (status.status !== "failed") return false;
|
|
9097
9097
|
if (status.runId && status.runId !== "pending") return false;
|
|
9098
|
-
return
|
|
9098
|
+
return _chunkSFCNYJ4Bjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
9099
9099
|
}
|
|
9100
9100
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
9101
9101
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -9144,13 +9144,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
9144
9144
|
}, _class);
|
|
9145
9145
|
function watchSurfaceReaches(state, provenance, level) {
|
|
9146
9146
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
9147
|
-
if (!
|
|
9147
|
+
if (!_chunkSFCNYJ4Bjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
9148
9148
|
return false;
|
|
9149
9149
|
}
|
|
9150
|
-
if (
|
|
9150
|
+
if (_chunkSFCNYJ4Bjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
9151
9151
|
return true;
|
|
9152
9152
|
}
|
|
9153
|
-
return state.verbose === true &&
|
|
9153
|
+
return state.verbose === true && _chunkSFCNYJ4Bjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
9154
9154
|
}
|
|
9155
9155
|
function getEventPayload(event) {
|
|
9156
9156
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9652,7 +9652,7 @@ function resolveRunPlayName(status, runId) {
|
|
|
9652
9652
|
}
|
|
9653
9653
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
9654
9654
|
if (open2 && dashboardUrl) {
|
|
9655
|
-
|
|
9655
|
+
_chunkKKPKLLNBjs.openInBrowser.call(void 0, dashboardUrl);
|
|
9656
9656
|
}
|
|
9657
9657
|
}
|
|
9658
9658
|
function printPlayLogLines(input) {
|
|
@@ -9729,7 +9729,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9729
9729
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
9730
9730
|
});
|
|
9731
9731
|
} catch (error) {
|
|
9732
|
-
if (
|
|
9732
|
+
if (_chunkSFCNYJ4Bjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9733
9733
|
return null;
|
|
9734
9734
|
}
|
|
9735
9735
|
throw error;
|
|
@@ -9809,9 +9809,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9809
9809
|
signal: controller.signal,
|
|
9810
9810
|
deferLogs: !input.emitLogs,
|
|
9811
9811
|
omitTerminalLogs: !input.emitLogs,
|
|
9812
|
-
...
|
|
9812
|
+
..._chunkCTWD4ZHPjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
9813
9813
|
onPoll: (observation) => {
|
|
9814
|
-
|
|
9814
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
9815
9815
|
phase: "play_watch_poll",
|
|
9816
9816
|
workflowId: input.workflowId,
|
|
9817
9817
|
ms: observation.durationMs,
|
|
@@ -9825,7 +9825,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9825
9825
|
full: input.fullJson,
|
|
9826
9826
|
billing: false,
|
|
9827
9827
|
onStatus: async (status) => {
|
|
9828
|
-
|
|
9828
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
9829
9829
|
phase: "play_watch_terminal_status",
|
|
9830
9830
|
workflowId: input.workflowId,
|
|
9831
9831
|
full: input.fullJson === true
|
|
@@ -9895,7 +9895,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9895
9895
|
});
|
|
9896
9896
|
} catch (error) {
|
|
9897
9897
|
if (!(error instanceof _chunkJKVRBCZLjs.CliPlayAdmissionUnsupportedError)) throw error;
|
|
9898
|
-
await
|
|
9898
|
+
await _chunkMWRPRDHWjs.checkPlayRunCompatibility.call(void 0,
|
|
9899
9899
|
input.client.baseUrl,
|
|
9900
9900
|
input.maintenancePolicy
|
|
9901
9901
|
);
|
|
@@ -9941,7 +9941,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9941
9941
|
}
|
|
9942
9942
|
openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
|
|
9943
9943
|
input.progress.phase("running");
|
|
9944
|
-
|
|
9944
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
9945
9945
|
phase: "cli.play_start_admitted",
|
|
9946
9946
|
ms: Date.now() - startedAt,
|
|
9947
9947
|
ok: true,
|
|
@@ -9958,7 +9958,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9958
9958
|
startedAt,
|
|
9959
9959
|
waitTimeoutMs: input.waitTimeoutMs
|
|
9960
9960
|
});
|
|
9961
|
-
const initialStatus =
|
|
9961
|
+
const initialStatus = _chunkSFCNYJ4Bjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
9962
9962
|
const status2 = await resolvePlayRunOutputStatus({
|
|
9963
9963
|
client: input.client,
|
|
9964
9964
|
status: initialStatus,
|
|
@@ -9966,7 +9966,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9966
9966
|
jsonOutput: input.jsonOutput,
|
|
9967
9967
|
fromDurableStatus: true
|
|
9968
9968
|
});
|
|
9969
|
-
|
|
9969
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
9970
9970
|
phase: "play_watch_terminal_status",
|
|
9971
9971
|
workflowId,
|
|
9972
9972
|
full: true,
|
|
@@ -10010,7 +10010,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
10010
10010
|
status = await startAndWaitForPlayCompletionByStreamOnce(pinnedInput);
|
|
10011
10011
|
} catch (error) {
|
|
10012
10012
|
if (error instanceof _chunkJKVRBCZLjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
10013
|
-
await
|
|
10013
|
+
await _chunkMWRPRDHWjs.checkPlayRunCompatibility.call(void 0,
|
|
10014
10014
|
input.client.baseUrl,
|
|
10015
10015
|
input.maintenancePolicy
|
|
10016
10016
|
);
|
|
@@ -10037,7 +10037,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
10037
10037
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
10038
10038
|
);
|
|
10039
10039
|
}
|
|
10040
|
-
|
|
10040
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
10041
10041
|
phase: "cli.play_start_stream_retry",
|
|
10042
10042
|
ms: 0,
|
|
10043
10043
|
ok: true,
|
|
@@ -10058,7 +10058,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
10058
10058
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
10059
10059
|
);
|
|
10060
10060
|
}
|
|
10061
|
-
|
|
10061
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
10062
10062
|
phase: "cli.play_start_stream_retry",
|
|
10063
10063
|
ms: 0,
|
|
10064
10064
|
ok: true,
|
|
@@ -10102,7 +10102,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10102
10102
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
10103
10103
|
launchConfirmed = true;
|
|
10104
10104
|
await _optionalChain([input, 'access', _319 => _319.onRunAdmitted, 'optionalCall', _320 => _320(runId)]);
|
|
10105
|
-
|
|
10105
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
10106
10106
|
phase: "cli.play_start_admitted",
|
|
10107
10107
|
ms: Date.now() - startedAt,
|
|
10108
10108
|
ok: true,
|
|
@@ -10136,7 +10136,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10136
10136
|
full: input.fullJson
|
|
10137
10137
|
});
|
|
10138
10138
|
} catch (error) {
|
|
10139
|
-
if (
|
|
10139
|
+
if (_chunkSFCNYJ4Bjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
10140
10140
|
return null;
|
|
10141
10141
|
}
|
|
10142
10142
|
throw error;
|
|
@@ -10269,7 +10269,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10269
10269
|
};
|
|
10270
10270
|
}
|
|
10271
10271
|
if (!canonicalTerminal) {
|
|
10272
|
-
|
|
10272
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
10273
10273
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
10274
10274
|
ms: Date.now() - startedAt,
|
|
10275
10275
|
ok: true,
|
|
@@ -10290,14 +10290,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10290
10290
|
fromDurableStatus
|
|
10291
10291
|
}) : canonicalTerminal;
|
|
10292
10292
|
if (input.fullJson === true) {
|
|
10293
|
-
|
|
10293
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
10294
10294
|
phase: "play_watch_terminal_status",
|
|
10295
10295
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
10296
10296
|
full: true,
|
|
10297
10297
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
10298
10298
|
});
|
|
10299
10299
|
}
|
|
10300
|
-
|
|
10300
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
10301
10301
|
phase: "cli.play_start_stream_terminal",
|
|
10302
10302
|
ms: Date.now() - startedAt,
|
|
10303
10303
|
ok: true,
|
|
@@ -10317,7 +10317,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10317
10317
|
clearTimeout(timeout);
|
|
10318
10318
|
}
|
|
10319
10319
|
controller.abort();
|
|
10320
|
-
|
|
10320
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
10321
10321
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
10322
10322
|
ms: Date.now() - startedAt,
|
|
10323
10323
|
ok: true,
|
|
@@ -10348,7 +10348,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10348
10348
|
if (timedOut) {
|
|
10349
10349
|
const terminal = await fetchKnownTerminalStatus();
|
|
10350
10350
|
if (terminal) {
|
|
10351
|
-
|
|
10351
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
10352
10352
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
10353
10353
|
ms: Date.now() - startedAt,
|
|
10354
10354
|
ok: true,
|
|
@@ -10368,7 +10368,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10368
10368
|
lastPhase
|
|
10369
10369
|
});
|
|
10370
10370
|
}
|
|
10371
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
10371
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkSFCNYJ4Bjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
10372
10372
|
if (timeout) {
|
|
10373
10373
|
clearTimeout(timeout);
|
|
10374
10374
|
}
|
|
@@ -10379,7 +10379,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10379
10379
|
`
|
|
10380
10380
|
);
|
|
10381
10381
|
}
|
|
10382
|
-
|
|
10382
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
10383
10383
|
phase: "cli.play_start_stream_reconnect",
|
|
10384
10384
|
ms: Date.now() - startedAt,
|
|
10385
10385
|
ok: true,
|
|
@@ -10406,7 +10406,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10406
10406
|
});
|
|
10407
10407
|
}
|
|
10408
10408
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
10409
|
-
|
|
10409
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
10410
10410
|
phase: "cli.play_start_stream_transient_failure",
|
|
10411
10411
|
ms: Date.now() - startedAt,
|
|
10412
10412
|
ok: false,
|
|
@@ -10434,7 +10434,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10434
10434
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
10435
10435
|
);
|
|
10436
10436
|
}
|
|
10437
|
-
|
|
10437
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
10438
10438
|
phase: "cli.play_start_stream_reconnect",
|
|
10439
10439
|
ms: Date.now() - startedAt,
|
|
10440
10440
|
ok: true,
|
|
@@ -10514,7 +10514,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10514
10514
|
"logs"
|
|
10515
10515
|
]);
|
|
10516
10516
|
function formatPlayLogLine(rawLine, state) {
|
|
10517
|
-
const classified =
|
|
10517
|
+
const classified = _chunkSFCNYJ4Bjs.classifyLogLine.call(void 0, rawLine);
|
|
10518
10518
|
const line = classified.line;
|
|
10519
10519
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10520
10520
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _323 => _323[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10529,14 +10529,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10529
10529
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10530
10530
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10531
10531
|
if (providerWait && !state.verbose) {
|
|
10532
|
-
return
|
|
10532
|
+
return _chunkSFCNYJ4Bjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10533
10533
|
}
|
|
10534
10534
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10535
10535
|
if (mapProgress && !state.verbose) {
|
|
10536
|
-
return
|
|
10536
|
+
return _chunkSFCNYJ4Bjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10537
10537
|
}
|
|
10538
10538
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10539
|
-
if (!
|
|
10539
|
+
if (!_chunkSFCNYJ4Bjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10540
10540
|
return null;
|
|
10541
10541
|
}
|
|
10542
10542
|
if (state.emittedRunnerStarted) {
|
|
@@ -10549,7 +10549,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10549
10549
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10550
10550
|
);
|
|
10551
10551
|
if (mapStart) {
|
|
10552
|
-
if (!
|
|
10552
|
+
if (!_chunkSFCNYJ4Bjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10553
10553
|
return null;
|
|
10554
10554
|
}
|
|
10555
10555
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10559,7 +10559,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10559
10559
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10560
10560
|
);
|
|
10561
10561
|
if (mapDone) {
|
|
10562
|
-
if (!
|
|
10562
|
+
if (!_chunkSFCNYJ4Bjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10563
10563
|
return null;
|
|
10564
10564
|
}
|
|
10565
10565
|
const [, results, executed, cached] = mapDone;
|
|
@@ -11848,7 +11848,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11848
11848
|
(line) => typeof line === "string"
|
|
11849
11849
|
);
|
|
11850
11850
|
if (tail.length === 0) return [];
|
|
11851
|
-
const shown = tail.map((line) =>
|
|
11851
|
+
const shown = tail.map((line) => _chunkSFCNYJ4Bjs.classifyLogLine.call(void 0, line)).filter(
|
|
11852
11852
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11853
11853
|
).slice(-8);
|
|
11854
11854
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -12131,7 +12131,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12131
12131
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _404 => _404.hits]), () => ( null));
|
|
12132
12132
|
if (jsonOutput) {
|
|
12133
12133
|
const payload2 = _optionalChain([options, 'optionalAccess', _405 => _405.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
12134
|
-
|
|
12134
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
12135
12135
|
hits ? { ...payload2, hits } : payload2,
|
|
12136
12136
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _406 => _406.jsonFields]) }
|
|
12137
12137
|
);
|
|
@@ -12147,7 +12147,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12147
12147
|
...buildPlayCompletionTextLines(status),
|
|
12148
12148
|
...formatRunHitsLines(hits)
|
|
12149
12149
|
];
|
|
12150
|
-
|
|
12150
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
12151
12151
|
json: false,
|
|
12152
12152
|
text: `${lines2.join("\n")}
|
|
12153
12153
|
`
|
|
@@ -12198,7 +12198,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12198
12198
|
lines.push(...buildBillingRollupTextLines(status));
|
|
12199
12199
|
const compact = compactPlayStatus(status);
|
|
12200
12200
|
const payload = _optionalChain([options, 'optionalAccess', _408 => _408.fullJson]) ? status : compact;
|
|
12201
|
-
|
|
12201
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
12202
12202
|
{
|
|
12203
12203
|
...payload,
|
|
12204
12204
|
render: {
|
|
@@ -12968,7 +12968,7 @@ function writeStartedPlayRun(input) {
|
|
|
12968
12968
|
dashboardUrl: input.dashboardUrl,
|
|
12969
12969
|
package: input.package
|
|
12970
12970
|
};
|
|
12971
|
-
|
|
12971
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12972
12972
|
json: true,
|
|
12973
12973
|
fields: input.jsonFields
|
|
12974
12974
|
});
|
|
@@ -12990,7 +12990,7 @@ function writeStartedPlayRun(input) {
|
|
|
12990
12990
|
input.progress.writeLine(output2, process.stdout);
|
|
12991
12991
|
return;
|
|
12992
12992
|
}
|
|
12993
|
-
|
|
12993
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12994
12994
|
json: false,
|
|
12995
12995
|
text: `${output2}
|
|
12996
12996
|
`
|
|
@@ -13019,7 +13019,7 @@ function writeStartedPlayRun(input) {
|
|
|
13019
13019
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
13020
13020
|
];
|
|
13021
13021
|
if (input.jsonOutput) {
|
|
13022
|
-
|
|
13022
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
13023
13023
|
return;
|
|
13024
13024
|
}
|
|
13025
13025
|
if (input.dashboardUrl) {
|
|
@@ -13030,7 +13030,7 @@ function writeStartedPlayRun(input) {
|
|
|
13030
13030
|
input.progress.writeLine(output, process.stdout);
|
|
13031
13031
|
return;
|
|
13032
13032
|
}
|
|
13033
|
-
|
|
13033
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
13034
13034
|
{
|
|
13035
13035
|
...payload,
|
|
13036
13036
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -13040,7 +13040,7 @@ function writeStartedPlayRun(input) {
|
|
|
13040
13040
|
);
|
|
13041
13041
|
}
|
|
13042
13042
|
function parsePlayCheckOptions(args) {
|
|
13043
|
-
const selection =
|
|
13043
|
+
const selection = _chunkKKPKLLNBjs.parseJsonFields.call(void 0, args, "check");
|
|
13044
13044
|
args = selection.args;
|
|
13045
13045
|
const target = args[0];
|
|
13046
13046
|
if (!target || target.startsWith("-")) {
|
|
@@ -13052,7 +13052,7 @@ function parsePlayCheckOptions(args) {
|
|
|
13052
13052
|
if (arg !== "--json" && arg !== "--full")
|
|
13053
13053
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
13054
13054
|
}
|
|
13055
|
-
const jsonOutput =
|
|
13055
|
+
const jsonOutput = _chunkKKPKLLNBjs.argsWantJson.call(void 0, args);
|
|
13056
13056
|
return {
|
|
13057
13057
|
target,
|
|
13058
13058
|
jsonOutput,
|
|
@@ -13128,7 +13128,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
13128
13128
|
useLatest,
|
|
13129
13129
|
expectedArtifactHash,
|
|
13130
13130
|
dryRun,
|
|
13131
|
-
jsonOutput:
|
|
13131
|
+
jsonOutput: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args)
|
|
13132
13132
|
};
|
|
13133
13133
|
}
|
|
13134
13134
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -13169,7 +13169,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
13169
13169
|
target,
|
|
13170
13170
|
expectedArtifactHash,
|
|
13171
13171
|
dryRun,
|
|
13172
|
-
jsonOutput:
|
|
13172
|
+
jsonOutput: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args)
|
|
13173
13173
|
};
|
|
13174
13174
|
}
|
|
13175
13175
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -13380,7 +13380,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
13380
13380
|
async function handlePlayCheck(args) {
|
|
13381
13381
|
const options = parsePlayCheckOptions(args);
|
|
13382
13382
|
if (!isFileTarget2(options.target)) {
|
|
13383
|
-
const client = new (0,
|
|
13383
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
13384
13384
|
try {
|
|
13385
13385
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
13386
13386
|
command: "check"
|
|
@@ -13409,7 +13409,7 @@ async function handlePlayCheck(args) {
|
|
|
13409
13409
|
},
|
|
13410
13410
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
13411
13411
|
};
|
|
13412
|
-
|
|
13412
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, result, {
|
|
13413
13413
|
json: options.jsonOutput,
|
|
13414
13414
|
fields: options.jsonFields,
|
|
13415
13415
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -13419,7 +13419,7 @@ async function handlePlayCheck(args) {
|
|
|
13419
13419
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
13420
13420
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
13421
13421
|
if (options.jsonOutput) {
|
|
13422
|
-
|
|
13422
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
13423
13423
|
{
|
|
13424
13424
|
kind: "play_check",
|
|
13425
13425
|
checked: "named_contract",
|
|
@@ -13461,7 +13461,7 @@ async function handlePlayCheck(args) {
|
|
|
13461
13461
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
13462
13462
|
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
|
|
13463
13463
|
});
|
|
13464
|
-
|
|
13464
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, output, {
|
|
13465
13465
|
json: options.jsonOutput,
|
|
13466
13466
|
fields: options.jsonFields,
|
|
13467
13467
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -13515,7 +13515,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13515
13515
|
}
|
|
13516
13516
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13517
13517
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13518
|
-
const client = new (0,
|
|
13518
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
13519
13519
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13520
13520
|
const checked = await checkLocalPlayGraph({
|
|
13521
13521
|
client,
|
|
@@ -13568,11 +13568,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13568
13568
|
throw new Error("Expected a file-backed play run target.");
|
|
13569
13569
|
}
|
|
13570
13570
|
let client;
|
|
13571
|
-
let cliAdmission =
|
|
13571
|
+
let cliAdmission = _chunkMWRPRDHWjs.usesInlinePlayAdmission.call(void 0,
|
|
13572
13572
|
"plays run",
|
|
13573
13573
|
process.argv.slice(2)
|
|
13574
13574
|
);
|
|
13575
|
-
const progress = _nullishCoalesce(
|
|
13575
|
+
const progress = _nullishCoalesce(_chunkGLXYOSELjs.getActiveCliProgress.call(void 0, ), () => ( _chunkGLXYOSELjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13576
13576
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
13577
13577
|
progress.phase("compiling play");
|
|
13578
13578
|
const sourceCode = traceCliSync(
|
|
@@ -13589,7 +13589,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13589
13589
|
}
|
|
13590
13590
|
let graph;
|
|
13591
13591
|
try {
|
|
13592
|
-
graph = await
|
|
13592
|
+
graph = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
13593
13593
|
"cli.play_file_bundle_graph",
|
|
13594
13594
|
{ targetKind: "file" },
|
|
13595
13595
|
() => collectBundledPlayGraph(
|
|
@@ -13608,9 +13608,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13608
13608
|
);
|
|
13609
13609
|
return 0;
|
|
13610
13610
|
}
|
|
13611
|
-
client = new (0,
|
|
13611
|
+
client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)(playRunClientOptions(options));
|
|
13612
13612
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
13613
|
-
await
|
|
13613
|
+
await _chunkMWRPRDHWjs.checkPlayRunCompatibility.call(void 0,
|
|
13614
13614
|
client.baseUrl,
|
|
13615
13615
|
options.maintenancePolicy
|
|
13616
13616
|
);
|
|
@@ -13623,7 +13623,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13623
13623
|
});
|
|
13624
13624
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
13625
13625
|
if (canDeferCompilerManifest) {
|
|
13626
|
-
|
|
13626
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
13627
13627
|
phase: "cli.play_file_compile_manifests",
|
|
13628
13628
|
ms: 0,
|
|
13629
13629
|
ok: true,
|
|
@@ -13632,7 +13632,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13632
13632
|
reason: "validated_by_run_route"
|
|
13633
13633
|
});
|
|
13634
13634
|
} else {
|
|
13635
|
-
await
|
|
13635
|
+
await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
13636
13636
|
"cli.play_file_compile_manifests",
|
|
13637
13637
|
{ targetKind: "file", skipped: false },
|
|
13638
13638
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -13656,7 +13656,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13656
13656
|
_chunkQWRHGGUHjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
13657
13657
|
);
|
|
13658
13658
|
progress.phase("pinning imported plays");
|
|
13659
|
-
graph = await
|
|
13659
|
+
graph = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
13660
13660
|
"cli.play_file_pin_imports",
|
|
13661
13661
|
{ targetKind: "file" },
|
|
13662
13662
|
() => _chunkQWRHGGUHjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
@@ -13675,7 +13675,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13675
13675
|
const fileInputBindings = _chunkJKVRBCZLjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
13676
13676
|
_optionalChain([compilerManifest, 'optionalAccess', _468 => _468.staticPipeline])
|
|
13677
13677
|
);
|
|
13678
|
-
const stagedFileInputs = await
|
|
13678
|
+
const stagedFileInputs = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
13679
13679
|
"cli.play_stage_inputs",
|
|
13680
13680
|
{
|
|
13681
13681
|
targetKind: "file",
|
|
@@ -13722,7 +13722,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13722
13722
|
};
|
|
13723
13723
|
if (options.watch) {
|
|
13724
13724
|
progress.phase("starting run");
|
|
13725
|
-
const finalStatus = await
|
|
13725
|
+
const finalStatus = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
13726
13726
|
"cli.play_start_watch",
|
|
13727
13727
|
{ targetKind: "file", playName },
|
|
13728
13728
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13778,7 +13778,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13778
13778
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13779
13779
|
}
|
|
13780
13780
|
progress.phase("starting run");
|
|
13781
|
-
const started = await
|
|
13781
|
+
const started = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
13782
13782
|
"cli.play_start_unwatched",
|
|
13783
13783
|
{ targetKind: "file", playName },
|
|
13784
13784
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _474 => _474.onSubmission]) }).catch(async (error) => {
|
|
@@ -13825,12 +13825,12 @@ async function handleNamedRun(options, hooks) {
|
|
|
13825
13825
|
if (options.target.kind !== "name") {
|
|
13826
13826
|
throw new Error("Expected a named play run target.");
|
|
13827
13827
|
}
|
|
13828
|
-
const client = new (0,
|
|
13829
|
-
let cliAdmission =
|
|
13828
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)(playRunClientOptions(options));
|
|
13829
|
+
let cliAdmission = _chunkMWRPRDHWjs.usesInlinePlayAdmission.call(void 0,
|
|
13830
13830
|
"plays run",
|
|
13831
13831
|
process.argv.slice(2)
|
|
13832
13832
|
);
|
|
13833
|
-
const progress = _nullishCoalesce(
|
|
13833
|
+
const progress = _nullishCoalesce(_chunkGLXYOSELjs.getActiveCliProgress.call(void 0, ), () => ( _chunkGLXYOSELjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13834
13834
|
const playName = options.target.name;
|
|
13835
13835
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13836
13836
|
try {
|
|
@@ -13845,14 +13845,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13845
13845
|
});
|
|
13846
13846
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13847
13847
|
progress.phase("loading play definition");
|
|
13848
|
-
return
|
|
13848
|
+
return _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
13849
13849
|
"cli.play_load_definition",
|
|
13850
13850
|
{ targetKind: "name", playName, skipped: false },
|
|
13851
13851
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13852
13852
|
command: "run"
|
|
13853
13853
|
})
|
|
13854
13854
|
);
|
|
13855
|
-
})() : (
|
|
13855
|
+
})() : (_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
13856
13856
|
phase: "cli.play_load_definition",
|
|
13857
13857
|
ms: 0,
|
|
13858
13858
|
ok: true,
|
|
@@ -13861,7 +13861,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13861
13861
|
skipped: true
|
|
13862
13862
|
}), null);
|
|
13863
13863
|
progress.phase("selecting revision");
|
|
13864
|
-
const selectedRevisionId = await
|
|
13864
|
+
const selectedRevisionId = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
13865
13865
|
"cli.play_select_revision",
|
|
13866
13866
|
{
|
|
13867
13867
|
targetKind: "name",
|
|
@@ -13886,10 +13886,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13886
13886
|
..._chunkJKVRBCZLjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13887
13887
|
] : [];
|
|
13888
13888
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13889
|
-
await
|
|
13889
|
+
await _chunkMWRPRDHWjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13890
13890
|
cliAdmission = false;
|
|
13891
13891
|
}
|
|
13892
|
-
const stagedFileInputs = await
|
|
13892
|
+
const stagedFileInputs = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
13893
13893
|
"cli.play_stage_inputs",
|
|
13894
13894
|
{
|
|
13895
13895
|
targetKind: "name",
|
|
@@ -13933,7 +13933,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13933
13933
|
});
|
|
13934
13934
|
if (options.watch) {
|
|
13935
13935
|
progress.phase("starting run");
|
|
13936
|
-
const finalStatus = await
|
|
13936
|
+
const finalStatus = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
13937
13937
|
"cli.play_start_watch",
|
|
13938
13938
|
{ targetKind: "name", playName },
|
|
13939
13939
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13992,7 +13992,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13992
13992
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13993
13993
|
}
|
|
13994
13994
|
progress.phase("starting run");
|
|
13995
|
-
const started = await
|
|
13995
|
+
const started = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
13996
13996
|
"cli.play_start_unwatched",
|
|
13997
13997
|
{ targetKind: "name", playName },
|
|
13998
13998
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _485 => _485.onSubmission]) }).catch(async (error) => {
|
|
@@ -14041,7 +14041,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
14041
14041
|
JSON.stringify({
|
|
14042
14042
|
version: 1,
|
|
14043
14043
|
admissionState: "submitted_unknown",
|
|
14044
|
-
baseUrl: new (0,
|
|
14044
|
+
baseUrl: new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().baseUrl,
|
|
14045
14045
|
...intent
|
|
14046
14046
|
})
|
|
14047
14047
|
);
|
|
@@ -14270,7 +14270,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
14270
14270
|
);
|
|
14271
14271
|
return `${lines.join("\n")}
|
|
14272
14272
|
|
|
14273
|
-
${
|
|
14273
|
+
${_chunkKKPKLLNBjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
14274
14274
|
}
|
|
14275
14275
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
14276
14276
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -14294,7 +14294,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
14294
14294
|
}
|
|
14295
14295
|
}
|
|
14296
14296
|
async function handleRunGet(args) {
|
|
14297
|
-
const selection =
|
|
14297
|
+
const selection = _chunkKKPKLLNBjs.parseJsonFields.call(void 0,
|
|
14298
14298
|
args,
|
|
14299
14299
|
args.includes("--config") ? "config" : "get"
|
|
14300
14300
|
);
|
|
@@ -14307,7 +14307,7 @@ async function handleRunGet(args) {
|
|
|
14307
14307
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14308
14308
|
return 1;
|
|
14309
14309
|
}
|
|
14310
|
-
const client = new (0,
|
|
14310
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
14311
14311
|
const timing = args.includes("--timing");
|
|
14312
14312
|
if (args.includes("--web-url")) {
|
|
14313
14313
|
const status2 = await withRunReadTiming(
|
|
@@ -14322,7 +14322,7 @@ async function handleRunGet(args) {
|
|
|
14322
14322
|
return 1;
|
|
14323
14323
|
}
|
|
14324
14324
|
const dashboardUrl2 = _chunkZ2XUZC34js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
14325
|
-
|
|
14325
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
14326
14326
|
{ dashboardUrl: dashboardUrl2 },
|
|
14327
14327
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
14328
14328
|
` }
|
|
@@ -14347,7 +14347,7 @@ async function handleRunGet(args) {
|
|
|
14347
14347
|
"This server does not support recorded configuration reads."
|
|
14348
14348
|
);
|
|
14349
14349
|
}
|
|
14350
|
-
|
|
14350
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
14351
14351
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
14352
14352
|
{ json: true, fields: selection.fields }
|
|
14353
14353
|
);
|
|
@@ -14360,7 +14360,7 @@ async function handleRunGet(args) {
|
|
|
14360
14360
|
timing,
|
|
14361
14361
|
() => client.getRunInput(runId)
|
|
14362
14362
|
);
|
|
14363
|
-
|
|
14363
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
14364
14364
|
return 0;
|
|
14365
14365
|
}
|
|
14366
14366
|
const full = args.includes("--full");
|
|
@@ -14386,8 +14386,8 @@ async function handleRunGet(args) {
|
|
|
14386
14386
|
) : status;
|
|
14387
14387
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
14388
14388
|
const legacyDashboardUrl = legacyPlayName ? _chunkZ2XUZC34js.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
14389
|
-
if (
|
|
14390
|
-
|
|
14389
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
14390
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
14391
14391
|
{
|
|
14392
14392
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
14393
14393
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -14397,7 +14397,7 @@ async function handleRunGet(args) {
|
|
|
14397
14397
|
} else {
|
|
14398
14398
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
14399
14399
|
if (legacyDashboardUrl)
|
|
14400
|
-
|
|
14400
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
14401
14401
|
{ dashboardUrl: legacyDashboardUrl },
|
|
14402
14402
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
14403
14403
|
` }
|
|
@@ -14427,10 +14427,10 @@ async function handleRunGet(args) {
|
|
|
14427
14427
|
)
|
|
14428
14428
|
]);
|
|
14429
14429
|
const hitLines = formatRunHitsLines(hits);
|
|
14430
|
-
const json =
|
|
14430
|
+
const json = _chunkKKPKLLNBjs.argsWantJson.call(void 0, args);
|
|
14431
14431
|
const playName = resolveRunPlayName(status, runId);
|
|
14432
14432
|
const dashboardUrl = playName ? _chunkZ2XUZC34js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
14433
|
-
|
|
14433
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
14434
14434
|
{
|
|
14435
14435
|
...overview,
|
|
14436
14436
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -14534,9 +14534,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
14534
14534
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14535
14535
|
return 1;
|
|
14536
14536
|
}
|
|
14537
|
-
const status = await new (0,
|
|
14538
|
-
if (
|
|
14539
|
-
|
|
14537
|
+
const status = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().runs.status(runId);
|
|
14538
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
14539
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
14540
14540
|
return 0;
|
|
14541
14541
|
}
|
|
14542
14542
|
if (!status.available) {
|
|
@@ -14576,7 +14576,7 @@ async function handleRunsRerun(args) {
|
|
|
14576
14576
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14577
14577
|
return 1;
|
|
14578
14578
|
}
|
|
14579
|
-
const options = { json:
|
|
14579
|
+
const options = { json: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args) };
|
|
14580
14580
|
for (let index = 0; index < args.length; index += 1) {
|
|
14581
14581
|
if (args[index] === "--idempotency-key") {
|
|
14582
14582
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14642,8 +14642,8 @@ ${usage2}
|
|
|
14642
14642
|
Discover Plays: ${next.discover}
|
|
14643
14643
|
Active runs: ${next.running}`
|
|
14644
14644
|
);
|
|
14645
|
-
if (
|
|
14646
|
-
|
|
14645
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
14646
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
14647
14647
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14648
14648
|
{ json: true }
|
|
14649
14649
|
);
|
|
@@ -14658,7 +14658,7 @@ Active runs: ${next.running}`
|
|
|
14658
14658
|
console.error("--offset requires --play.");
|
|
14659
14659
|
return 1;
|
|
14660
14660
|
}
|
|
14661
|
-
const client = new (0,
|
|
14661
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
14662
14662
|
const page = await withRunReadTiming(
|
|
14663
14663
|
"runs list",
|
|
14664
14664
|
"run inventory",
|
|
@@ -14725,14 +14725,14 @@ Active runs: ${next.running}`
|
|
|
14725
14725
|
return lines2.join("\n");
|
|
14726
14726
|
});
|
|
14727
14727
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14728
|
-
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}${
|
|
14728
|
+
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}${_chunkKKPKLLNBjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14729
14729
|
if (page.hasMore) {
|
|
14730
14730
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14731
14731
|
lines.push(
|
|
14732
14732
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14733
14733
|
);
|
|
14734
14734
|
}
|
|
14735
|
-
|
|
14735
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
14736
14736
|
{
|
|
14737
14737
|
runs,
|
|
14738
14738
|
count: runs.length,
|
|
@@ -14746,7 +14746,7 @@ Active runs: ${next.running}`
|
|
|
14746
14746
|
},
|
|
14747
14747
|
render: { sections: [{ title: "runs", lines }] }
|
|
14748
14748
|
},
|
|
14749
|
-
{ json:
|
|
14749
|
+
{ json: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args) }
|
|
14750
14750
|
);
|
|
14751
14751
|
return 0;
|
|
14752
14752
|
}
|
|
@@ -14776,7 +14776,7 @@ async function handleRunTail(args) {
|
|
|
14776
14776
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14777
14777
|
return 1;
|
|
14778
14778
|
}
|
|
14779
|
-
const parsed =
|
|
14779
|
+
const parsed = _chunkSFCNYJ4Bjs.parseLogLevel.call(void 0, value);
|
|
14780
14780
|
if (!parsed) {
|
|
14781
14781
|
console.error(
|
|
14782
14782
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14814,9 +14814,9 @@ async function handleRunTail(args) {
|
|
|
14814
14814
|
);
|
|
14815
14815
|
return 1;
|
|
14816
14816
|
}
|
|
14817
|
-
const client = new (0,
|
|
14817
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
14818
14818
|
const jsonLines = args.includes("--jsonl");
|
|
14819
|
-
const jsonOutput = !jsonLines &&
|
|
14819
|
+
const jsonOutput = !jsonLines && _chunkKKPKLLNBjs.argsWantJson.call(void 0, args);
|
|
14820
14820
|
const compact = args.includes("--compact");
|
|
14821
14821
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14822
14822
|
const compactState = {
|
|
@@ -14897,7 +14897,7 @@ async function handleRunLogs(args) {
|
|
|
14897
14897
|
]);
|
|
14898
14898
|
const cursorIndex = args.indexOf("--cursor");
|
|
14899
14899
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14900
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14900
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkSFCNYJ4Bjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14901
14901
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14902
14902
|
return handleRunEventSearch(args);
|
|
14903
14903
|
}
|
|
@@ -14931,7 +14931,7 @@ async function handleRunLogs(args) {
|
|
|
14931
14931
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14932
14932
|
return 1;
|
|
14933
14933
|
}
|
|
14934
|
-
const parsed =
|
|
14934
|
+
const parsed = _chunkSFCNYJ4Bjs.parseLogLevel.call(void 0, value);
|
|
14935
14935
|
if (!parsed) {
|
|
14936
14936
|
console.error(
|
|
14937
14937
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14978,12 +14978,12 @@ async function handleRunLogs(args) {
|
|
|
14978
14978
|
);
|
|
14979
14979
|
return 1;
|
|
14980
14980
|
}
|
|
14981
|
-
const client = new (0,
|
|
14981
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
14982
14982
|
if (outPath) {
|
|
14983
14983
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14984
|
-
const logs = result2.entries.filter((line) =>
|
|
14984
|
+
const logs = result2.entries.filter((line) => _chunkSFCNYJ4Bjs.logLevelReaches.call(void 0, _chunkSFCNYJ4Bjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkSFCNYJ4Bjs.classifyLogLine.call(void 0, line).line);
|
|
14985
14985
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14986
|
-
|
|
14986
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
14987
14987
|
{
|
|
14988
14988
|
runId: result2.runId,
|
|
14989
14989
|
log_path: outPath,
|
|
@@ -15006,7 +15006,7 @@ async function handleRunLogs(args) {
|
|
|
15006
15006
|
]
|
|
15007
15007
|
}
|
|
15008
15008
|
},
|
|
15009
|
-
{ json:
|
|
15009
|
+
{ json: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args) }
|
|
15010
15010
|
);
|
|
15011
15011
|
return 0;
|
|
15012
15012
|
}
|
|
@@ -15037,7 +15037,7 @@ async function handleRunLogs(args) {
|
|
|
15037
15037
|
}
|
|
15038
15038
|
};
|
|
15039
15039
|
const text = buildRunLogsText(filteredResult);
|
|
15040
|
-
|
|
15040
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
15041
15041
|
{
|
|
15042
15042
|
runId: result.runId,
|
|
15043
15043
|
totalCount: result.totalCount,
|
|
@@ -15061,7 +15061,7 @@ async function handleRunLogs(args) {
|
|
|
15061
15061
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
15062
15062
|
},
|
|
15063
15063
|
{
|
|
15064
|
-
json:
|
|
15064
|
+
json: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args),
|
|
15065
15065
|
text
|
|
15066
15066
|
}
|
|
15067
15067
|
);
|
|
@@ -15085,7 +15085,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15085
15085
|
);
|
|
15086
15086
|
}
|
|
15087
15087
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
15088
|
-
(entry) =>
|
|
15088
|
+
(entry) => _chunkSFCNYJ4Bjs.logLevelReaches.call(void 0, _chunkSFCNYJ4Bjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
15089
15089
|
);
|
|
15090
15090
|
const selected = matching.slice(-limit);
|
|
15091
15091
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -15095,7 +15095,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15095
15095
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _513 => _513.at, 'call', _514 => _514(-1), 'optionalAccess', _515 => _515.seq]), () => ( null)),
|
|
15096
15096
|
truncated: result.truncated || olderMatchesExist,
|
|
15097
15097
|
hasMore: olderMatchesExist,
|
|
15098
|
-
nextCursor: olderMatchesExist ?
|
|
15098
|
+
nextCursor: olderMatchesExist ? _chunkSFCNYJ4Bjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
15099
15099
|
};
|
|
15100
15100
|
}
|
|
15101
15101
|
async function handleRunEventSearch(args) {
|
|
@@ -15162,7 +15162,7 @@ ${usage2}`);
|
|
|
15162
15162
|
namespace,
|
|
15163
15163
|
...backend ? { backend } : {}
|
|
15164
15164
|
} : void 0;
|
|
15165
|
-
const client = new (0,
|
|
15165
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
15166
15166
|
const result = await client.runs.searchEvents({
|
|
15167
15167
|
...runId ? { runId } : {},
|
|
15168
15168
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -15234,7 +15234,7 @@ ${renderedDetails}` : ""}`;
|
|
|
15234
15234
|
"--limit",
|
|
15235
15235
|
String(limit)
|
|
15236
15236
|
].join(" ") : null;
|
|
15237
|
-
|
|
15237
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
15238
15238
|
{
|
|
15239
15239
|
events,
|
|
15240
15240
|
nextCursor: result.nextCursor,
|
|
@@ -15245,14 +15245,14 @@ ${renderedDetails}` : ""}`;
|
|
|
15245
15245
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
15246
15246
|
},
|
|
15247
15247
|
{
|
|
15248
|
-
json:
|
|
15248
|
+
json: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args),
|
|
15249
15249
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
15250
15250
|
}
|
|
15251
15251
|
);
|
|
15252
15252
|
return 0;
|
|
15253
15253
|
}
|
|
15254
15254
|
function buildRunLogsText(result) {
|
|
15255
|
-
const lines = result.entries.map((line) =>
|
|
15255
|
+
const lines = result.entries.map((line) => _chunkSFCNYJ4Bjs.classifyLogLine.call(void 0, line).line);
|
|
15256
15256
|
if (result.warning) {
|
|
15257
15257
|
if (lines.length > 0) lines.push("");
|
|
15258
15258
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -15286,7 +15286,7 @@ async function handleRunStop(args) {
|
|
|
15286
15286
|
reason = args[++index];
|
|
15287
15287
|
}
|
|
15288
15288
|
}
|
|
15289
|
-
const client = new (0,
|
|
15289
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
15290
15290
|
const result = await client.runs.stop(runId, { reason });
|
|
15291
15291
|
const state = resolveRunStopState(result);
|
|
15292
15292
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -15301,7 +15301,7 @@ async function handleRunStop(args) {
|
|
|
15301
15301
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
15302
15302
|
`inspect: deepline runs get ${runId} --full`
|
|
15303
15303
|
];
|
|
15304
|
-
|
|
15304
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
15305
15305
|
{
|
|
15306
15306
|
...cancelling,
|
|
15307
15307
|
state,
|
|
@@ -15316,7 +15316,7 @@ async function handleRunStop(args) {
|
|
|
15316
15316
|
]
|
|
15317
15317
|
}
|
|
15318
15318
|
},
|
|
15319
|
-
{ json:
|
|
15319
|
+
{ json: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args) }
|
|
15320
15320
|
);
|
|
15321
15321
|
return 0;
|
|
15322
15322
|
}
|
|
@@ -15333,7 +15333,7 @@ async function handleRunStop(args) {
|
|
|
15333
15333
|
];
|
|
15334
15334
|
process.stderr.write(`${lines2.join("\n")}
|
|
15335
15335
|
`);
|
|
15336
|
-
|
|
15336
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
15337
15337
|
{
|
|
15338
15338
|
...result,
|
|
15339
15339
|
render: {
|
|
@@ -15348,7 +15348,7 @@ async function handleRunStop(args) {
|
|
|
15348
15348
|
]
|
|
15349
15349
|
}
|
|
15350
15350
|
},
|
|
15351
|
-
{ json:
|
|
15351
|
+
{ json: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args) }
|
|
15352
15352
|
);
|
|
15353
15353
|
return 1;
|
|
15354
15354
|
}
|
|
@@ -15359,12 +15359,12 @@ async function handleRunStop(args) {
|
|
|
15359
15359
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
15360
15360
|
] : []
|
|
15361
15361
|
];
|
|
15362
|
-
|
|
15362
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
15363
15363
|
{
|
|
15364
15364
|
...result,
|
|
15365
15365
|
render: { sections: [{ title: "run stop", lines }] }
|
|
15366
15366
|
},
|
|
15367
|
-
{ json:
|
|
15367
|
+
{ json: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args) }
|
|
15368
15368
|
);
|
|
15369
15369
|
return 0;
|
|
15370
15370
|
}
|
|
@@ -15414,18 +15414,18 @@ async function handleRunStopAll(args) {
|
|
|
15414
15414
|
reason = args[++index];
|
|
15415
15415
|
}
|
|
15416
15416
|
}
|
|
15417
|
-
const client = new (0,
|
|
15417
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
15418
15418
|
if (dryRun) {
|
|
15419
15419
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
15420
15420
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
15421
|
-
|
|
15421
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
15422
15422
|
{
|
|
15423
15423
|
...result2,
|
|
15424
15424
|
render: {
|
|
15425
15425
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
15426
15426
|
}
|
|
15427
15427
|
},
|
|
15428
|
-
{ json:
|
|
15428
|
+
{ json: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
15429
15429
|
` }
|
|
15430
15430
|
);
|
|
15431
15431
|
return 0;
|
|
@@ -15438,17 +15438,17 @@ async function handleRunStopAll(args) {
|
|
|
15438
15438
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
15439
15439
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
15440
15440
|
];
|
|
15441
|
-
|
|
15441
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
15442
15442
|
{
|
|
15443
15443
|
...result,
|
|
15444
15444
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
15445
15445
|
},
|
|
15446
|
-
{ json:
|
|
15446
|
+
{ json: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args) }
|
|
15447
15447
|
);
|
|
15448
15448
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
15449
15449
|
}
|
|
15450
15450
|
async function handleRunExport(args) {
|
|
15451
|
-
const selection =
|
|
15451
|
+
const selection = _chunkKKPKLLNBjs.parseJsonFields.call(void 0, args, "export");
|
|
15452
15452
|
args = selection.args;
|
|
15453
15453
|
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]";
|
|
15454
15454
|
let runId;
|
|
@@ -15507,17 +15507,17 @@ async function handleRunExport(args) {
|
|
|
15507
15507
|
"INVALID_ARGUMENT"
|
|
15508
15508
|
);
|
|
15509
15509
|
}
|
|
15510
|
-
const client = new (0,
|
|
15510
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
15511
15511
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
15512
15512
|
assertRunExportStatusIdentity(status, runId);
|
|
15513
15513
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
15514
|
-
const progress =
|
|
15514
|
+
const progress = _chunkGLXYOSELjs.createCliProgress.call(void 0, !_chunkKKPKLLNBjs.argsWantJson.call(void 0, args));
|
|
15515
15515
|
try {
|
|
15516
15516
|
await waitForPlayCompletionByWatch({
|
|
15517
15517
|
client,
|
|
15518
15518
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
15519
15519
|
workflowId: runId,
|
|
15520
|
-
jsonOutput:
|
|
15520
|
+
jsonOutput: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args),
|
|
15521
15521
|
emitLogs: false,
|
|
15522
15522
|
waitTimeoutMs,
|
|
15523
15523
|
startedAt: Date.now(),
|
|
@@ -15618,8 +15618,8 @@ async function handleRunExport(args) {
|
|
|
15618
15618
|
"utf-8"
|
|
15619
15619
|
);
|
|
15620
15620
|
}
|
|
15621
|
-
|
|
15622
|
-
json:
|
|
15621
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, payload, {
|
|
15622
|
+
json: _chunkKKPKLLNBjs.argsWantJson.call(void 0, args),
|
|
15623
15623
|
fields: selection.fields,
|
|
15624
15624
|
text: `${lines.join("\n")}
|
|
15625
15625
|
`
|
|
@@ -15653,10 +15653,10 @@ async function handlePlayGet(args) {
|
|
|
15653
15653
|
);
|
|
15654
15654
|
return 2;
|
|
15655
15655
|
}
|
|
15656
|
-
const client = new (0,
|
|
15656
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
15657
15657
|
const explicitJson = args.includes("--json");
|
|
15658
15658
|
const sourceOutput = args.includes("--source");
|
|
15659
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
15659
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkKKPKLLNBjs.argsWantJson.call(void 0, args);
|
|
15660
15660
|
const requestedRevisionFlags = [
|
|
15661
15661
|
args.includes("--working"),
|
|
15662
15662
|
args.includes("--live"),
|
|
@@ -15716,7 +15716,7 @@ async function handlePlayGet(args) {
|
|
|
15716
15716
|
}
|
|
15717
15717
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15718
15718
|
if (jsonOutput) {
|
|
15719
|
-
|
|
15719
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, {
|
|
15720
15720
|
...detail,
|
|
15721
15721
|
...materializedFile ? {
|
|
15722
15722
|
message: loadedMessage,
|
|
@@ -15808,8 +15808,8 @@ async function handlePlayVersions(args) {
|
|
|
15808
15808
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15809
15809
|
return 1;
|
|
15810
15810
|
}
|
|
15811
|
-
const client = new (0,
|
|
15812
|
-
const jsonOutput =
|
|
15811
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
15812
|
+
const jsonOutput = _chunkKKPKLLNBjs.argsWantJson.call(void 0, args);
|
|
15813
15813
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15814
15814
|
command: "versions"
|
|
15815
15815
|
});
|
|
@@ -15817,7 +15817,7 @@ async function handlePlayVersions(args) {
|
|
|
15817
15817
|
parseReferencedPlayTarget2(playName).playName
|
|
15818
15818
|
);
|
|
15819
15819
|
if (jsonOutput) {
|
|
15820
|
-
|
|
15820
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, { versions });
|
|
15821
15821
|
return 0;
|
|
15822
15822
|
}
|
|
15823
15823
|
if (versions.length === 0) {
|
|
@@ -15855,9 +15855,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
15855
15855
|
"signals"
|
|
15856
15856
|
];
|
|
15857
15857
|
async function handlePlayList(args) {
|
|
15858
|
-
const jsonOutput =
|
|
15858
|
+
const jsonOutput = _chunkKKPKLLNBjs.argsWantJson.call(void 0, args);
|
|
15859
15859
|
const showCost = args.includes("--show-cost");
|
|
15860
|
-
const client = new (0,
|
|
15860
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
15861
15861
|
const categoriesIndex = args.indexOf("--categories");
|
|
15862
15862
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _552 => _552[categoriesIndex + 1], 'optionalAccess', _553 => _553.trim, 'call', _554 => _554()]) : void 0;
|
|
15863
15863
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15954,7 +15954,7 @@ async function handlePlayList(args) {
|
|
|
15954
15954
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15955
15955
|
lines.push(`Next page: ${nextPage}`);
|
|
15956
15956
|
}
|
|
15957
|
-
|
|
15957
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
15958
15958
|
{
|
|
15959
15959
|
plays,
|
|
15960
15960
|
count: plays.length,
|
|
@@ -15972,7 +15972,7 @@ async function handlePlayList(args) {
|
|
|
15972
15972
|
}
|
|
15973
15973
|
async function handlePlayPin(args, pinned) {
|
|
15974
15974
|
const target = _optionalChain([args, 'access', _563 => _563.find, 'call', _564 => _564((arg) => !arg.startsWith("-")), 'optionalAccess', _565 => _565.trim, 'call', _566 => _566()]);
|
|
15975
|
-
const jsonOutput =
|
|
15975
|
+
const jsonOutput = _chunkKKPKLLNBjs.argsWantJson.call(void 0, args);
|
|
15976
15976
|
const dryRun = args.includes("--dry-run");
|
|
15977
15977
|
if (!target) {
|
|
15978
15978
|
console.error(
|
|
@@ -15990,11 +15990,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15990
15990
|
const name = parsedTarget.playName;
|
|
15991
15991
|
const plan = { name, pinned, dryRun };
|
|
15992
15992
|
if (dryRun) {
|
|
15993
|
-
|
|
15993
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, plan);
|
|
15994
15994
|
return 0;
|
|
15995
15995
|
}
|
|
15996
|
-
const result = await new (0,
|
|
15997
|
-
if (jsonOutput)
|
|
15996
|
+
const result = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15997
|
+
if (jsonOutput) _chunkKKPKLLNBjs.printCompactJson.call(void 0, result);
|
|
15998
15998
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15999
15999
|
return 0;
|
|
16000
16000
|
}
|
|
@@ -16120,12 +16120,12 @@ async function handlePlayGrep(args) {
|
|
|
16120
16120
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
16121
16121
|
return 1;
|
|
16122
16122
|
}
|
|
16123
|
-
const client = new (0,
|
|
16123
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
16124
16124
|
const results = (await client.listPlays({ grep: query })).map(
|
|
16125
16125
|
summarizePlayGrepResult
|
|
16126
16126
|
);
|
|
16127
|
-
if (
|
|
16128
|
-
|
|
16127
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
16128
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, {
|
|
16129
16129
|
plays: results,
|
|
16130
16130
|
count: results.length,
|
|
16131
16131
|
query,
|
|
@@ -16148,7 +16148,7 @@ async function handlePlayGrep(args) {
|
|
|
16148
16148
|
return 0;
|
|
16149
16149
|
}
|
|
16150
16150
|
async function handlePlayDescribe(args) {
|
|
16151
|
-
const selection =
|
|
16151
|
+
const selection = _chunkKKPKLLNBjs.parseJsonFields.call(void 0, args, "describe");
|
|
16152
16152
|
args = selection.args;
|
|
16153
16153
|
const playName = args[0];
|
|
16154
16154
|
if (!playName) {
|
|
@@ -16182,8 +16182,8 @@ async function handlePlayDescribe(args) {
|
|
|
16182
16182
|
`deepline plays check ${playName}`,
|
|
16183
16183
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
16184
16184
|
];
|
|
16185
|
-
if (
|
|
16186
|
-
|
|
16185
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
16186
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, {
|
|
16187
16187
|
ok: false,
|
|
16188
16188
|
error: { message },
|
|
16189
16189
|
next
|
|
@@ -16197,7 +16197,7 @@ async function handlePlayDescribe(args) {
|
|
|
16197
16197
|
}
|
|
16198
16198
|
return 2;
|
|
16199
16199
|
}
|
|
16200
|
-
const client = new (0,
|
|
16200
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
16201
16201
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16202
16202
|
command: "describe"
|
|
16203
16203
|
});
|
|
@@ -16207,9 +16207,9 @@ async function handlePlayDescribe(args) {
|
|
|
16207
16207
|
compact: args.includes("--compact")
|
|
16208
16208
|
}
|
|
16209
16209
|
);
|
|
16210
|
-
if (
|
|
16211
|
-
if (selection.fields)
|
|
16212
|
-
else
|
|
16210
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
16211
|
+
if (selection.fields) _chunkKKPKLLNBjs.printJson.call(void 0, play, selection.fields);
|
|
16212
|
+
else _chunkKKPKLLNBjs.printCompactJson.call(void 0, play);
|
|
16213
16213
|
return 0;
|
|
16214
16214
|
}
|
|
16215
16215
|
printPlayDescription(play);
|
|
@@ -16231,7 +16231,7 @@ async function handlePlaySave(args) {
|
|
|
16231
16231
|
}
|
|
16232
16232
|
let graph;
|
|
16233
16233
|
try {
|
|
16234
|
-
graph = await
|
|
16234
|
+
graph = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
16235
16235
|
"cli.play_save_bundle_graph",
|
|
16236
16236
|
{ targetKind: "file" },
|
|
16237
16237
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -16253,7 +16253,7 @@ async function handlePlaySave(args) {
|
|
|
16253
16253
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
16254
16254
|
};
|
|
16255
16255
|
if (options.jsonOutput) {
|
|
16256
|
-
|
|
16256
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, result);
|
|
16257
16257
|
} else {
|
|
16258
16258
|
console.error(result.message);
|
|
16259
16259
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -16275,7 +16275,7 @@ async function handlePlaySave(args) {
|
|
|
16275
16275
|
};
|
|
16276
16276
|
if (options.dryRun) {
|
|
16277
16277
|
if (options.jsonOutput) {
|
|
16278
|
-
|
|
16278
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, dryRun);
|
|
16279
16279
|
} else {
|
|
16280
16280
|
console.log(`Dry run: ${playName}`);
|
|
16281
16281
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16284,14 +16284,14 @@ async function handlePlaySave(args) {
|
|
|
16284
16284
|
}
|
|
16285
16285
|
return 0;
|
|
16286
16286
|
}
|
|
16287
|
-
const client = new (0,
|
|
16287
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
16288
16288
|
try {
|
|
16289
|
-
await
|
|
16289
|
+
await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
16290
16290
|
"cli.play_save_compile_manifests",
|
|
16291
16291
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16292
16292
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
16293
16293
|
);
|
|
16294
|
-
const saved = await
|
|
16294
|
+
const saved = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
16295
16295
|
"cli.play_save_register_draft",
|
|
16296
16296
|
{ targetKind: "file", playName, artifactHash },
|
|
16297
16297
|
() => client.registerPlayArtifact({
|
|
@@ -16320,7 +16320,7 @@ async function handlePlaySave(args) {
|
|
|
16320
16320
|
}
|
|
16321
16321
|
};
|
|
16322
16322
|
if (options.jsonOutput) {
|
|
16323
|
-
|
|
16323
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, result);
|
|
16324
16324
|
} else {
|
|
16325
16325
|
console.log(
|
|
16326
16326
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -16346,7 +16346,7 @@ async function handlePlayPublish(args) {
|
|
|
16346
16346
|
}
|
|
16347
16347
|
const { target: playName, useLatest } = options;
|
|
16348
16348
|
let revisionId = options.revisionId;
|
|
16349
|
-
const client = new (0,
|
|
16349
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
16350
16350
|
if (isFileTarget2(playName)) {
|
|
16351
16351
|
if (revisionId || useLatest) {
|
|
16352
16352
|
console.error(
|
|
@@ -16356,7 +16356,7 @@ async function handlePlayPublish(args) {
|
|
|
16356
16356
|
}
|
|
16357
16357
|
let graph;
|
|
16358
16358
|
try {
|
|
16359
|
-
graph = await
|
|
16359
|
+
graph = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
16360
16360
|
"cli.play_publish_bundle_graph",
|
|
16361
16361
|
{ targetKind: "file" },
|
|
16362
16362
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -16378,7 +16378,7 @@ async function handlePlayPublish(args) {
|
|
|
16378
16378
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
16379
16379
|
};
|
|
16380
16380
|
if (options.jsonOutput) {
|
|
16381
|
-
|
|
16381
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, result3);
|
|
16382
16382
|
} else {
|
|
16383
16383
|
console.error(result3.message);
|
|
16384
16384
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -16401,7 +16401,7 @@ async function handlePlayPublish(args) {
|
|
|
16401
16401
|
};
|
|
16402
16402
|
if (options.dryRun) {
|
|
16403
16403
|
if (options.jsonOutput) {
|
|
16404
|
-
|
|
16404
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, dryRun);
|
|
16405
16405
|
} else {
|
|
16406
16406
|
console.log(`Dry run: ${rootPlayName}`);
|
|
16407
16407
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16420,12 +16420,12 @@ async function handlePlayPublish(args) {
|
|
|
16420
16420
|
}
|
|
16421
16421
|
}
|
|
16422
16422
|
try {
|
|
16423
|
-
await
|
|
16423
|
+
await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
16424
16424
|
"cli.play_publish_compile_manifests",
|
|
16425
16425
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16426
16426
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
16427
16427
|
);
|
|
16428
|
-
await
|
|
16428
|
+
await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
16429
16429
|
"cli.play_publish_imports",
|
|
16430
16430
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16431
16431
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -16434,7 +16434,7 @@ async function handlePlayPublish(args) {
|
|
|
16434
16434
|
console.error(error instanceof Error ? error.message : String(error));
|
|
16435
16435
|
return 1;
|
|
16436
16436
|
}
|
|
16437
|
-
const published = await
|
|
16437
|
+
const published = await _chunkCTWD4ZHPjs.traceCliSpan.call(void 0,
|
|
16438
16438
|
"cli.play_publish_register_root",
|
|
16439
16439
|
{
|
|
16440
16440
|
targetKind: "file",
|
|
@@ -16469,7 +16469,7 @@ async function handlePlayPublish(args) {
|
|
|
16469
16469
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
16470
16470
|
};
|
|
16471
16471
|
if (options.jsonOutput) {
|
|
16472
|
-
|
|
16472
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, result2);
|
|
16473
16473
|
} else {
|
|
16474
16474
|
printPublishReceipt({
|
|
16475
16475
|
name: rootPlayName,
|
|
@@ -16500,7 +16500,7 @@ async function handlePlayPublish(args) {
|
|
|
16500
16500
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
16501
16501
|
latest: useLatest
|
|
16502
16502
|
};
|
|
16503
|
-
|
|
16503
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, result2);
|
|
16504
16504
|
return 0;
|
|
16505
16505
|
}
|
|
16506
16506
|
const resolvedName = parseReferencedPlayTarget2(playName).playName;
|
|
@@ -16524,7 +16524,7 @@ async function handlePlayPublish(args) {
|
|
|
16524
16524
|
revisionId ? { revisionId } : {}
|
|
16525
16525
|
);
|
|
16526
16526
|
if (options.jsonOutput) {
|
|
16527
|
-
|
|
16527
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, result);
|
|
16528
16528
|
} else {
|
|
16529
16529
|
printPublishReceipt({
|
|
16530
16530
|
name: result.name,
|
|
@@ -16564,7 +16564,7 @@ async function handlePlayDelete(args) {
|
|
|
16564
16564
|
);
|
|
16565
16565
|
return 2;
|
|
16566
16566
|
}
|
|
16567
|
-
const client = new (0,
|
|
16567
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
16568
16568
|
let detail;
|
|
16569
16569
|
try {
|
|
16570
16570
|
detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
|
|
@@ -16588,8 +16588,8 @@ async function handlePlayDelete(args) {
|
|
|
16588
16588
|
name: resolvedName,
|
|
16589
16589
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
16590
16590
|
};
|
|
16591
|
-
if (
|
|
16592
|
-
|
|
16591
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
16592
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, result2);
|
|
16593
16593
|
} else {
|
|
16594
16594
|
process.stdout.write(
|
|
16595
16595
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16599,8 +16599,8 @@ async function handlePlayDelete(args) {
|
|
|
16599
16599
|
return 0;
|
|
16600
16600
|
}
|
|
16601
16601
|
const result = await client.deletePlay(resolvedName);
|
|
16602
|
-
if (
|
|
16603
|
-
|
|
16602
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
16603
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, result);
|
|
16604
16604
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16605
16605
|
}
|
|
16606
16606
|
if (result.alreadyArchived) {
|
|
@@ -16639,13 +16639,13 @@ async function handlePlayRestore(args) {
|
|
|
16639
16639
|
);
|
|
16640
16640
|
return 2;
|
|
16641
16641
|
}
|
|
16642
|
-
const client = new (0,
|
|
16642
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
16643
16643
|
try {
|
|
16644
16644
|
const result = await client.restorePlay(
|
|
16645
16645
|
parseReferencedPlayTarget2(playName).playName
|
|
16646
16646
|
);
|
|
16647
|
-
if (
|
|
16648
|
-
|
|
16647
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
16648
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, result);
|
|
16649
16649
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16650
16650
|
}
|
|
16651
16651
|
if (result.alreadyActive) {
|
|
@@ -16773,21 +16773,21 @@ Common commands:
|
|
|
16773
16773
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16774
16774
|
}
|
|
16775
16775
|
};
|
|
16776
|
-
|
|
16776
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0, result2, {
|
|
16777
16777
|
json: options.json,
|
|
16778
16778
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16779
16779
|
`
|
|
16780
16780
|
});
|
|
16781
16781
|
return;
|
|
16782
16782
|
}
|
|
16783
|
-
const client = new (0,
|
|
16783
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
16784
16784
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16785
16785
|
throw new Error(
|
|
16786
16786
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16787
16787
|
);
|
|
16788
16788
|
}
|
|
16789
16789
|
const result = await client.startPlayRun(saved.request);
|
|
16790
|
-
|
|
16790
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
16791
16791
|
{ ...result },
|
|
16792
16792
|
{
|
|
16793
16793
|
json: options.json,
|
|
@@ -16823,7 +16823,7 @@ Examples:
|
|
|
16823
16823
|
).action(async (target, options) => {
|
|
16824
16824
|
process.exitCode = await handlePlayCheck([
|
|
16825
16825
|
target,
|
|
16826
|
-
...
|
|
16826
|
+
..._chunkKKPKLLNBjs.jsonFieldArgs.call(void 0, options.json),
|
|
16827
16827
|
...options.full ? ["--full"] : []
|
|
16828
16828
|
]);
|
|
16829
16829
|
});
|
|
@@ -17031,10 +17031,10 @@ JSON field selection:
|
|
|
17031
17031
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
17032
17032
|
options,
|
|
17033
17033
|
passthroughArgs,
|
|
17034
|
-
|
|
17034
|
+
_chunkCTWD4ZHPjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
17035
17035
|
)
|
|
17036
17036
|
);
|
|
17037
|
-
|
|
17037
|
+
_chunkCTWD4ZHPjs.recordCliTrace.call(void 0, {
|
|
17038
17038
|
phase: "cli.play_command_exit",
|
|
17039
17039
|
exitCode
|
|
17040
17040
|
});
|
|
@@ -17083,9 +17083,9 @@ Examples:
|
|
|
17083
17083
|
const limit = Number(options.historyLimit);
|
|
17084
17084
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
17085
17085
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
17086
|
-
const client = new (0,
|
|
17086
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
17087
17087
|
if (options.binding) {
|
|
17088
|
-
|
|
17088
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0,
|
|
17089
17089
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
17090
17090
|
);
|
|
17091
17091
|
return;
|
|
@@ -17093,7 +17093,7 @@ Examples:
|
|
|
17093
17093
|
const result = await client.listPlayTriggerInventory({
|
|
17094
17094
|
cursor: options.cursor
|
|
17095
17095
|
});
|
|
17096
|
-
|
|
17096
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, {
|
|
17097
17097
|
...result,
|
|
17098
17098
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
17099
17099
|
});
|
|
@@ -17140,7 +17140,7 @@ Examples:
|
|
|
17140
17140
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
17141
17141
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
17142
17142
|
}
|
|
17143
|
-
const result = await new (0,
|
|
17143
|
+
const result = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().getPlaysActivity({
|
|
17144
17144
|
timeZone: options.timeZone,
|
|
17145
17145
|
days,
|
|
17146
17146
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -17154,7 +17154,7 @@ Examples:
|
|
|
17154
17154
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
17155
17155
|
);
|
|
17156
17156
|
}
|
|
17157
|
-
|
|
17157
|
+
_chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
|
|
17158
17158
|
{ ...result },
|
|
17159
17159
|
{
|
|
17160
17160
|
json: Boolean(options.json),
|
|
@@ -17183,7 +17183,7 @@ Examples:
|
|
|
17183
17183
|
false
|
|
17184
17184
|
);
|
|
17185
17185
|
});
|
|
17186
|
-
|
|
17186
|
+
_chunkKTAVYWYIjs.registerDeprecatedSearchCommand.call(void 0,
|
|
17187
17187
|
play,
|
|
17188
17188
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
17189
17189
|
);
|
|
@@ -17226,7 +17226,7 @@ Examples:
|
|
|
17226
17226
|
);
|
|
17227
17227
|
_chunkPQUUWFXYjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
17228
17228
|
async (target, options) => {
|
|
17229
|
-
const ownView = () => handlePlayDescribe(
|
|
17229
|
+
const ownView = () => handlePlayDescribe(_chunkKKPKLLNBjs.describeArgs.call(void 0, target, options));
|
|
17230
17230
|
const [flagText] = [options.json].filter(
|
|
17231
17231
|
(value) => typeof value === "string"
|
|
17232
17232
|
);
|
|
@@ -17237,7 +17237,7 @@ Examples:
|
|
|
17237
17237
|
process.exitCode = await ownView();
|
|
17238
17238
|
return;
|
|
17239
17239
|
}
|
|
17240
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
17240
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-KYLGQSMO.js")));
|
|
17241
17241
|
process.exitCode = await describeAnything(
|
|
17242
17242
|
name,
|
|
17243
17243
|
{
|
|
@@ -17355,7 +17355,7 @@ Examples:
|
|
|
17355
17355
|
deepline plays deployments <deployment-id>
|
|
17356
17356
|
`
|
|
17357
17357
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
17358
|
-
async (id, options) => id ?
|
|
17358
|
+
async (id, options) => id ? _chunkLKAITV2Mjs.handleDeploymentGet.call(void 0, id, options) : _chunkLKAITV2Mjs.handleDeploymentsList.call(void 0, options)
|
|
17359
17359
|
);
|
|
17360
17360
|
addPublishHelp(
|
|
17361
17361
|
play.command("publish <target>").description(
|
|
@@ -17490,14 +17490,14 @@ Examples:
|
|
|
17490
17490
|
const limit = Number(options.limit);
|
|
17491
17491
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
17492
17492
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
17493
|
-
const result = await new (0,
|
|
17493
|
+
const result = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().runs.rowHistory({
|
|
17494
17494
|
playName: options.play,
|
|
17495
17495
|
runId,
|
|
17496
17496
|
tableNamespace: options.dataset,
|
|
17497
17497
|
limit,
|
|
17498
17498
|
cursor: options.cursor
|
|
17499
17499
|
});
|
|
17500
|
-
|
|
17500
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, {
|
|
17501
17501
|
...result,
|
|
17502
17502
|
...result.nextCursor ? {
|
|
17503
17503
|
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`
|
|
@@ -17567,7 +17567,7 @@ Examples:
|
|
|
17567
17567
|
).action(async (runId, options) => {
|
|
17568
17568
|
process.exitCode = await handleRunGet([
|
|
17569
17569
|
runId,
|
|
17570
|
-
...
|
|
17570
|
+
..._chunkKKPKLLNBjs.jsonFieldArgs.call(void 0, options.json),
|
|
17571
17571
|
...options.webUrl ? ["--web-url"] : [],
|
|
17572
17572
|
...options.full ? ["--full"] : [],
|
|
17573
17573
|
...options.input ? ["--input"] : [],
|
|
@@ -17853,7 +17853,7 @@ Examples:
|
|
|
17853
17853
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17854
17854
|
...options.wait ? ["--wait"] : [],
|
|
17855
17855
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17856
|
-
...
|
|
17856
|
+
..._chunkKKPKLLNBjs.jsonFieldArgs.call(void 0, options.json)
|
|
17857
17857
|
]);
|
|
17858
17858
|
});
|
|
17859
17859
|
const share = play.command("share").description(
|
|
@@ -18019,10 +18019,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18019
18019
|
return 2;
|
|
18020
18020
|
}
|
|
18021
18021
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18022
|
-
const status = await new (0,
|
|
18022
|
+
const status = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().getSharePage(name);
|
|
18023
18023
|
const outputStatus = shareStatusForOutput(status);
|
|
18024
|
-
if (
|
|
18025
|
-
|
|
18024
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
18025
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, outputStatus);
|
|
18026
18026
|
return 0;
|
|
18027
18027
|
}
|
|
18028
18028
|
if (!outputStatus.share) {
|
|
@@ -18061,7 +18061,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18061
18061
|
return 2;
|
|
18062
18062
|
}
|
|
18063
18063
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18064
|
-
const client = new (0,
|
|
18064
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
18065
18065
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18066
18066
|
let resolvedVersion;
|
|
18067
18067
|
if (!revisionId) {
|
|
@@ -18092,8 +18092,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18092
18092
|
);
|
|
18093
18093
|
if (!hasCompleted) {
|
|
18094
18094
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18095
|
-
if (
|
|
18096
|
-
|
|
18095
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
18096
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, {
|
|
18097
18097
|
ok: false,
|
|
18098
18098
|
code: "NO_SUCCESSFUL_RUN",
|
|
18099
18099
|
message,
|
|
@@ -18117,8 +18117,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18117
18117
|
};
|
|
18118
18118
|
if (args.includes("--dry-run")) {
|
|
18119
18119
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
18120
|
-
if (
|
|
18121
|
-
|
|
18120
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
18121
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, plan);
|
|
18122
18122
|
} else {
|
|
18123
18123
|
console.log(
|
|
18124
18124
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -18128,8 +18128,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18128
18128
|
}
|
|
18129
18129
|
const status = await client.publishSharePage(name, request);
|
|
18130
18130
|
const outputStatus = shareStatusForOutput(status);
|
|
18131
|
-
if (
|
|
18132
|
-
|
|
18131
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
18132
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, outputStatus);
|
|
18133
18133
|
return 0;
|
|
18134
18134
|
}
|
|
18135
18135
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18160,9 +18160,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
18160
18160
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
18161
18161
|
...seoIndexing ? { seoIndexing } : {}
|
|
18162
18162
|
};
|
|
18163
|
-
const status = await new (0,
|
|
18164
|
-
if (
|
|
18165
|
-
|
|
18163
|
+
const status = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().updateSharePage(name, request);
|
|
18164
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
18165
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, status);
|
|
18166
18166
|
return 0;
|
|
18167
18167
|
}
|
|
18168
18168
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -18177,7 +18177,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18177
18177
|
return 2;
|
|
18178
18178
|
}
|
|
18179
18179
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18180
|
-
const client = new (0,
|
|
18180
|
+
const client = new (0, _chunkSFCNYJ4Bjs.DeeplineClient)();
|
|
18181
18181
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18182
18182
|
const versionFlag = shareFlagValue(args, "--version");
|
|
18183
18183
|
if (!revisionId && versionFlag) {
|
|
@@ -18194,8 +18194,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18194
18194
|
revisionId ? { revisionId } : {}
|
|
18195
18195
|
);
|
|
18196
18196
|
const outputStatus = shareStatusForOutput(status);
|
|
18197
|
-
if (
|
|
18198
|
-
|
|
18197
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
18198
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, outputStatus);
|
|
18199
18199
|
return 0;
|
|
18200
18200
|
}
|
|
18201
18201
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18220,9 +18220,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
18220
18220
|
return 2;
|
|
18221
18221
|
}
|
|
18222
18222
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18223
|
-
const status = await new (0,
|
|
18224
|
-
if (
|
|
18225
|
-
|
|
18223
|
+
const status = await new (0, _chunkSFCNYJ4Bjs.DeeplineClient)().unpublishSharePage(name);
|
|
18224
|
+
if (_chunkKKPKLLNBjs.argsWantJson.call(void 0, args)) {
|
|
18225
|
+
_chunkKKPKLLNBjs.printCompactJson.call(void 0, status);
|
|
18226
18226
|
return 0;
|
|
18227
18227
|
}
|
|
18228
18228
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|