deepline 0.3.487 → 0.3.489
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +7 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/cli/{auth-GIBZFTUJ.mjs → auth-5RIU6GT7.mjs} +5 -5
- package/dist/cli/auth-PSIS3XA6.js +43 -0
- package/dist/cli/{billing-T3SN2T4T.mjs → billing-T4TMPRFS.mjs} +6 -6
- package/dist/cli/{billing-TZINXSTI.js → billing-T5MAGF25.js} +79 -79
- package/dist/cli/{chunk-YVK3WEBE.mjs → chunk-2QUROYZU.mjs} +1 -1
- package/dist/cli/{chunk-76EUEG45.mjs → chunk-35N4S2E6.mjs} +1 -1
- package/dist/cli/{chunk-LE3BAE4T.mjs → chunk-3S5VBG6Z.mjs} +2 -2
- package/dist/cli/{chunk-TY7AFVAC.js → chunk-4EFD6R2V.js} +37 -37
- package/dist/cli/{chunk-IAK7OKDC.mjs → chunk-4GWEZPZR.mjs} +6 -1
- package/dist/cli/{chunk-XVSMWD6E.js → chunk-5DEJ3TLB.js} +7 -7
- package/dist/cli/{chunk-WZQSBYFU.js → chunk-6FMP5XRF.js} +6 -6
- package/dist/cli/{chunk-JH2XVGTM.mjs → chunk-6PHHQDM6.mjs} +1 -1
- package/dist/cli/{chunk-MQYUH3DR.mjs → chunk-7R243PYK.mjs} +15 -1
- package/dist/cli/{chunk-IL5AF6AR.mjs → chunk-A7ZMG2QZ.mjs} +24 -12
- package/dist/cli/{chunk-2EQPUMZG.mjs → chunk-C55LNEUF.mjs} +1 -1
- package/dist/cli/{chunk-6VW4YVWH.mjs → chunk-DHAJSTSH.mjs} +4 -4
- package/dist/cli/{chunk-TDUPHVI2.js → chunk-DY7T6VNT.js} +21 -21
- package/dist/cli/{chunk-BWXQIRPZ.js → chunk-F3TDT57M.js} +5 -5
- package/dist/cli/{chunk-ZJIFSEJS.js → chunk-FFDWL5N2.js} +16 -16
- package/dist/cli/{chunk-NR6ZSXYE.js → chunk-FH7ZABHW.js} +94 -94
- package/dist/cli/{chunk-WFMTJFGG.js → chunk-FL7NHJTS.js} +10 -10
- package/dist/cli/{chunk-O4LTC7S6.js → chunk-FNKSRKTA.js} +22 -8
- package/dist/cli/{chunk-ATEO2Y3W.mjs → chunk-G7POOFBJ.mjs} +2 -2
- package/dist/cli/{chunk-DAXLSR65.js → chunk-GW6HV7Z7.js} +3 -3
- package/dist/cli/{chunk-HK6RIWDN.mjs → chunk-H66YVVT7.mjs} +1 -1
- package/dist/cli/{chunk-JDFYXDDA.js → chunk-I4NWMPT3.js} +53 -53
- package/dist/cli/{chunk-BXOHHCXG.js → chunk-K2RUSHZ7.js} +4 -4
- package/dist/cli/{chunk-4AZFKKGK.mjs → chunk-L2GMFNAO.mjs} +3 -3
- package/dist/cli/{chunk-75LPU4AO.js → chunk-LM5UIDFA.js} +7 -7
- package/dist/cli/{chunk-VHXDX7WY.mjs → chunk-LMUOUIBV.mjs} +5 -5
- package/dist/cli/{chunk-WOG5SFF2.mjs → chunk-NBHCEVWY.mjs} +4 -4
- package/dist/cli/{chunk-OKAZHDYN.js → chunk-O3K22ZC7.js} +24 -12
- package/dist/cli/{chunk-6MRJ3SMS.mjs → chunk-OTQ2CO6M.mjs} +2 -2
- package/dist/cli/{chunk-CEJFXV7R.mjs → chunk-QJ4FWKUU.mjs} +2 -2
- package/dist/cli/{chunk-RXKFJTFH.mjs → chunk-QXWE6PHI.mjs} +2 -2
- package/dist/cli/{chunk-JZNSRGDL.js → chunk-R23HZ6AV.js} +2 -2
- package/dist/cli/{chunk-DJJ2UYSX.mjs → chunk-RACN23LT.mjs} +4 -4
- package/dist/cli/{chunk-WXEAAVBK.js → chunk-RI2PLVD4.js} +7 -7
- package/dist/cli/{chunk-QZ4DVKYU.js → chunk-S4F2R2LO.js} +9 -9
- package/dist/cli/{chunk-VPSK464I.mjs → chunk-S5PMBDY6.mjs} +10 -10
- package/dist/cli/{chunk-6YMPAQEI.js → chunk-SZHNIKTR.js} +26 -26
- package/dist/cli/{chunk-YWRMI4WC.mjs → chunk-TMQ3PCSY.mjs} +2 -2
- package/dist/cli/{chunk-FMN7S7KB.js → chunk-UI67QLIR.js} +53 -53
- package/dist/cli/{chunk-NDUZXNGV.js → chunk-UYZNRLDE.js} +6 -1
- package/dist/cli/{chunk-E2CSKE27.js → chunk-UZ7VPOTA.js} +3 -3
- package/dist/cli/{chunk-ZOENOU2W.js → chunk-VP65YKOA.js} +5 -5
- package/dist/cli/{chunk-YIVYI5XH.js → chunk-WIKIF67Q.js} +8 -8
- package/dist/cli/{chunk-JWTTCWZM.mjs → chunk-WRJ6MEY5.mjs} +1 -1
- package/dist/cli/{chunk-5BWN4XAO.mjs → chunk-Y3SG26KP.mjs} +4 -4
- package/dist/cli/{chunk-4LMPONJM.mjs → chunk-YEX3VNAY.mjs} +2 -2
- package/dist/cli/{chunk-HKK3NTTF.js → chunk-YSB44HZB.js} +2 -2
- package/dist/cli/{chunk-RFBM4KSE.mjs → chunk-ZICPJKMP.mjs} +5 -5
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-42ZQOY2Y.mjs → csv-WAD54M7T.mjs} +4 -4
- package/dist/cli/{csv-IKHCVOV5.js → csv-XTKN255I.js} +13 -13
- package/dist/cli/{db-B3RLPXTA.mjs → db-2ELZMJFC.mjs} +6 -6
- package/dist/cli/{db-3AWAIV6O.js → db-TTS6Y4FI.js} +27 -27
- package/dist/cli/describe-2V7H5LJP.js +49 -0
- package/dist/cli/{describe-NEPMNE33.mjs → describe-Z7GWMGKU.mjs} +17 -17
- package/dist/cli/{executions-W53OBSB6.mjs → executions-2TQH54AB.mjs} +6 -6
- package/dist/cli/{executions-3KJXWIGK.js → executions-WUBVVJXN.js} +8 -8
- package/dist/cli/{feedback-3MSNFC6M.js → feedback-6KAY4LE6.js} +8 -8
- package/dist/cli/{feedback-GJNATGAP.mjs → feedback-QI75ZVF2.mjs} +4 -4
- package/dist/cli/{git-5BWKZFNE.mjs → git-3PI2SXVS.mjs} +5 -5
- package/dist/cli/git-DCADFTQ6.js +25 -0
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-GSW6TMAJ.js → legacy-noops-BNEVRTQT.js} +8 -8
- package/dist/cli/{legacy-noops-A7YMA3NB.mjs → legacy-noops-SIDE3HLT.mjs} +5 -5
- package/dist/cli/{monitors-24QFIRCI.mjs → monitors-BYQ5V5MX.mjs} +7 -7
- package/dist/cli/{monitors-T5RMXFKT.js → monitors-WRWVVXUZ.js} +91 -91
- package/dist/cli/{org-3JJQOXLF.js → org-KWCSSJ3Y.js} +72 -72
- package/dist/cli/{org-ZZPKJOQY.mjs → org-OZNDX3G2.mjs} +6 -6
- package/dist/cli/{pages-ZFCV37XK.mjs → pages-DXU3TNND.mjs} +6 -6
- package/dist/cli/{pages-3GK3SKKB.js → pages-OQVOMVF5.js} +17 -17
- package/dist/cli/{play-4MINBQNW.js → play-6D7U66KO.js} +312 -312
- package/dist/cli/{play-DX36FVSU.mjs → play-ZFG4HDDX.mjs} +17 -17
- package/dist/cli/{providers-Z4EYMZJM.mjs → providers-4RRQIK3Q.mjs} +6 -6
- package/dist/cli/{providers-YDQHY35D.js → providers-H7R3Z5HS.js} +9 -9
- package/dist/cli/{quickstart-OTZVKVIE.js → quickstart-FQ5E5G6O.js} +6 -6
- package/dist/cli/{quickstart-YMI4OECS.mjs → quickstart-TFKRPMCH.mjs} +4 -4
- package/dist/cli/{run-OBU3YFOJ.mjs → run-GRCGGUUM.mjs} +30 -134
- package/dist/cli/{run-P345MQLC.js → run-QRDJTXKB.js} +44 -148
- package/dist/cli/search-2FB7WQUS.js +32 -0
- package/dist/cli/{search-5FBWOI2H.mjs → search-OEVSDE3U.mjs} +7 -7
- package/dist/cli/{search-output-WOTMZA55.js → search-output-F6KBWKT2.js} +6 -6
- package/dist/cli/{search-output-673LGTLF.mjs → search-output-VK5ZDVKL.mjs} +4 -4
- package/dist/cli/{secrets-QX45TZJK.mjs → secrets-DCRVVQV2.mjs} +6 -6
- package/dist/cli/{secrets-IWYY42YD.js → secrets-KKAAZENS.js} +15 -15
- package/dist/cli/{sessions-ZUK654NJ.js → sessions-FDHENJVG.js} +6 -6
- package/dist/cli/{sessions-Z2ZB3EZ7.mjs → sessions-XVBIXCXU.mjs} +5 -5
- package/dist/cli/{settings-ZXXP7DHM.js → settings-36HMWFAP.js} +78 -78
- package/dist/cli/{settings-6VY7HTEE.mjs → settings-OBVR52US.mjs} +11 -11
- package/dist/cli/{setup-SD66A4OE.mjs → setup-KFYQZYP3.mjs} +9 -9
- package/dist/cli/{setup-RE7T3PAE.js → setup-M6OWOPMB.js} +47 -47
- package/dist/cli/{skills-ARPNJ7MN.mjs → skills-AZDPA6IQ.mjs} +7 -7
- package/dist/cli/skills-URCPOKZZ.js +33 -0
- package/dist/cli/tools-4G5J5NQP.js +56 -0
- package/dist/cli/{tools-R3TUCRX3.mjs → tools-F6XEUK7H.mjs} +16 -16
- package/dist/cli/{update-2DPZJQK4.mjs → update-QMGJRICE.mjs} +9 -9
- package/dist/cli/update-UWVL2OYA.js +33 -0
- package/dist/cli/{workflow-2WPRQNRF.mjs → workflow-L5WNCAPB.mjs} +7 -7
- package/dist/cli/{workflow-GIWX7OZC.js → workflow-M4YPUASM.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +100 -100
- package/dist/release.d.mts +5 -1
- package/dist/release.d.ts +5 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-Q4U7IFFV.js +0 -43
- package/dist/cli/describe-HLO35E5Y.js +0 -49
- package/dist/cli/git-WRFBKH6H.js +0 -25
- package/dist/cli/search-IV22OQLS.js +0 -32
- package/dist/cli/skills-ZDKFUVNP.js +0 -33
- package/dist/cli/tools-AUU42AVE.js +0 -56
- package/dist/cli/update-QLF3A6YY.js +0 -33
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkS4F2R2LOjs = require('./chunk-S4F2R2LO.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,15 +17,15 @@ var _chunkQZ4DVKYUjs = require('./chunk-QZ4DVKYU.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkGW6HV7Z7js = require('./chunk-GW6HV7Z7.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkLM5UIDFAjs = require('./chunk-LM5UIDFA.js');
|
|
24
24
|
require('./chunk-D3BCSAN7.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkSZHNIKTRjs = require('./chunk-SZHNIKTR.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
@@ -57,10 +57,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkVP65YKOAjs = require('./chunk-VP65YKOA.js');
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
63
|
+
var _chunkF3TDT57Mjs = require('./chunk-F3TDT57M.js');
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
|
|
@@ -73,7 +73,7 @@ var _chunkBWXQIRPZjs = require('./chunk-BWXQIRPZ.js');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunk5DEJ3TLBjs = require('./chunk-5DEJ3TLB.js');
|
|
77
77
|
require('./chunk-E4CABWXL.js');
|
|
78
78
|
|
|
79
79
|
|
|
@@ -95,18 +95,18 @@ require('./chunk-XDVT3GOM.js');
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
98
|
+
var _chunk6FMP5XRFjs = require('./chunk-6FMP5XRF.js');
|
|
99
99
|
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
var
|
|
105
|
-
require('./chunk-
|
|
104
|
+
var _chunkYSB44HZBjs = require('./chunk-YSB44HZB.js');
|
|
105
|
+
require('./chunk-UI67QLIR.js');
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
|
|
109
|
-
var
|
|
109
|
+
var _chunkFNKSRKTAjs = require('./chunk-FNKSRKTA.js');
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
|
|
@@ -120,17 +120,17 @@ var _chunkO4LTC7S6js = require('./chunk-O4LTC7S6.js');
|
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
|
|
123
|
-
var
|
|
124
|
-
require('./chunk-
|
|
123
|
+
var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
|
|
124
|
+
require('./chunk-UZ7VPOTA.js');
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
var
|
|
127
|
+
var _chunkK2RUSHZ7js = require('./chunk-K2RUSHZ7.js');
|
|
128
128
|
require('./chunk-ALJJRZNJ.js');
|
|
129
129
|
require('./chunk-XNYIZMNQ.js');
|
|
130
130
|
|
|
131
131
|
|
|
132
132
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
133
|
-
require('./chunk-
|
|
133
|
+
require('./chunk-UYZNRLDE.js');
|
|
134
134
|
require('./chunk-OG64RBAC.js');
|
|
135
135
|
|
|
136
136
|
|
|
@@ -2112,7 +2112,7 @@ function resolveField(key, command) {
|
|
|
2112
2112
|
function printSettings(result, json, name) {
|
|
2113
2113
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2114
2114
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2115
|
-
|
|
2115
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
2116
2116
|
{
|
|
2117
2117
|
...result,
|
|
2118
2118
|
settings: Object.fromEntries(
|
|
@@ -2156,7 +2156,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2156
2156
|
valueSyntax: field.cli.valueSyntax,
|
|
2157
2157
|
examples: field.cli.examples
|
|
2158
2158
|
}));
|
|
2159
|
-
|
|
2159
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
2160
2160
|
{
|
|
2161
2161
|
fields: descriptions,
|
|
2162
2162
|
render: {
|
|
@@ -2181,7 +2181,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2181
2181
|
async (options, command) => {
|
|
2182
2182
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2183
2183
|
printSettings(
|
|
2184
|
-
await new (0,
|
|
2184
|
+
await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2185
2185
|
options.json,
|
|
2186
2186
|
options.name
|
|
2187
2187
|
);
|
|
@@ -2212,7 +2212,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2212
2212
|
);
|
|
2213
2213
|
}
|
|
2214
2214
|
if (options.dryRun) {
|
|
2215
|
-
|
|
2215
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
2216
2216
|
{
|
|
2217
2217
|
dryRun: true,
|
|
2218
2218
|
play,
|
|
@@ -2233,7 +2233,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2233
2233
|
return;
|
|
2234
2234
|
}
|
|
2235
2235
|
printSettings(
|
|
2236
|
-
await new (0,
|
|
2236
|
+
await new (0, _chunkF3TDT57Mjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2237
2237
|
options.json
|
|
2238
2238
|
);
|
|
2239
2239
|
};
|
|
@@ -2259,13 +2259,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2259
2259
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2260
2260
|
{ exitCode: 2 }
|
|
2261
2261
|
);
|
|
2262
|
-
const page = await new (0,
|
|
2262
|
+
const page = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2263
2263
|
root: options.root,
|
|
2264
2264
|
limit,
|
|
2265
2265
|
cursor: options.cursor
|
|
2266
2266
|
});
|
|
2267
2267
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2268
|
-
|
|
2268
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
2269
2269
|
{
|
|
2270
2270
|
...page,
|
|
2271
2271
|
nextCommand,
|
|
@@ -2316,7 +2316,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2316
2316
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2317
2317
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2318
2318
|
};
|
|
2319
|
-
const client = new (0,
|
|
2319
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
2320
2320
|
const paths = [];
|
|
2321
2321
|
let cursor;
|
|
2322
2322
|
do {
|
|
@@ -2378,7 +2378,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2378
2378
|
moved.push(move.playName);
|
|
2379
2379
|
}
|
|
2380
2380
|
}
|
|
2381
|
-
|
|
2381
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
2382
2382
|
{
|
|
2383
2383
|
dryRun: Boolean(options.dryRun),
|
|
2384
2384
|
from: options.from,
|
|
@@ -2506,7 +2506,7 @@ function triggerLines(view) {
|
|
|
2506
2506
|
return lines;
|
|
2507
2507
|
}
|
|
2508
2508
|
function printView(view, json) {
|
|
2509
|
-
|
|
2509
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
2510
2510
|
{
|
|
2511
2511
|
...view,
|
|
2512
2512
|
render: {
|
|
@@ -2519,7 +2519,7 @@ function printView(view, json) {
|
|
|
2519
2519
|
);
|
|
2520
2520
|
}
|
|
2521
2521
|
function printResult(result, json) {
|
|
2522
|
-
|
|
2522
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
2523
2523
|
{
|
|
2524
2524
|
...result,
|
|
2525
2525
|
render: {
|
|
@@ -2549,7 +2549,7 @@ async function mutate(command, options, build) {
|
|
|
2549
2549
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2550
2550
|
}
|
|
2551
2551
|
if (options.dryRun) {
|
|
2552
|
-
|
|
2552
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
2553
2553
|
{
|
|
2554
2554
|
dryRun: true,
|
|
2555
2555
|
play: options.play,
|
|
@@ -2568,7 +2568,7 @@ async function mutate(command, options, build) {
|
|
|
2568
2568
|
return;
|
|
2569
2569
|
}
|
|
2570
2570
|
printResult(
|
|
2571
|
-
await new (0,
|
|
2571
|
+
await new (0, _chunkF3TDT57Mjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2572
2572
|
options.json
|
|
2573
2573
|
);
|
|
2574
2574
|
}
|
|
@@ -2601,7 +2601,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2601
2601
|
}).addHelpText("after", help2);
|
|
2602
2602
|
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) => {
|
|
2603
2603
|
printView(
|
|
2604
|
-
await new (0,
|
|
2604
|
+
await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2605
2605
|
options.json
|
|
2606
2606
|
);
|
|
2607
2607
|
});
|
|
@@ -2645,7 +2645,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2645
2645
|
if (options.auth === void 0) {
|
|
2646
2646
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2647
2647
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2648
|
-
const current = await new (0,
|
|
2648
|
+
const current = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2649
2649
|
options.play
|
|
2650
2650
|
);
|
|
2651
2651
|
return {
|
|
@@ -2722,7 +2722,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2722
2722
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2723
2723
|
"runtime.event": "Other event."
|
|
2724
2724
|
};
|
|
2725
|
-
var RUN_LOGS_KIND_HELP =
|
|
2725
|
+
var RUN_LOGS_KIND_HELP = _chunk5DEJ3TLBjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2726
2726
|
kind,
|
|
2727
2727
|
description: KIND_DESCRIPTIONS[kind]
|
|
2728
2728
|
}));
|
|
@@ -2859,9 +2859,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2859
2859
|
const args = program.args;
|
|
2860
2860
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2861
2861
|
error.exitCode = 2;
|
|
2862
|
-
if (
|
|
2863
|
-
|
|
2864
|
-
Object.assign(new (0,
|
|
2862
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2863
|
+
_chunkRI2PLVD4js.printJsonError.call(void 0,
|
|
2864
|
+
Object.assign(new (0, _chunk5DEJ3TLBjs.RunEventQueryInputError)(error.message), {
|
|
2865
2865
|
exitCode: 2,
|
|
2866
2866
|
retryable: false
|
|
2867
2867
|
})
|
|
@@ -2905,14 +2905,14 @@ function parseQuery(args, resource) {
|
|
|
2905
2905
|
if (VALUE_FLAGS.has(flag)) {
|
|
2906
2906
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2907
2907
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2908
|
-
throw new (0,
|
|
2908
|
+
throw new (0, _chunk5DEJ3TLBjs.RunEventQueryInputError)(
|
|
2909
2909
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2910
2910
|
);
|
|
2911
2911
|
}
|
|
2912
2912
|
if (flag === "--sum") sums.push(value);
|
|
2913
2913
|
else {
|
|
2914
2914
|
if (values[flag] !== void 0) {
|
|
2915
|
-
throw new (0,
|
|
2915
|
+
throw new (0, _chunk5DEJ3TLBjs.RunEventQueryInputError)(
|
|
2916
2916
|
`${flag} may only be supplied once.`
|
|
2917
2917
|
);
|
|
2918
2918
|
}
|
|
@@ -2926,12 +2926,12 @@ function parseQuery(args, resource) {
|
|
|
2926
2926
|
}
|
|
2927
2927
|
if (arg.startsWith("-")) {
|
|
2928
2928
|
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.";
|
|
2929
|
-
throw new (0,
|
|
2929
|
+
throw new (0, _chunk5DEJ3TLBjs.RunEventQueryInputError)(
|
|
2930
2930
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2931
2931
|
);
|
|
2932
2932
|
}
|
|
2933
2933
|
if (runId !== void 0) {
|
|
2934
|
-
throw new (0,
|
|
2934
|
+
throw new (0, _chunk5DEJ3TLBjs.RunEventQueryInputError)(
|
|
2935
2935
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2936
2936
|
);
|
|
2937
2937
|
}
|
|
@@ -2939,7 +2939,7 @@ function parseQuery(args, resource) {
|
|
|
2939
2939
|
}
|
|
2940
2940
|
if (switches.has("--fields")) {
|
|
2941
2941
|
if (runId !== void 0) {
|
|
2942
|
-
throw new (0,
|
|
2942
|
+
throw new (0, _chunk5DEJ3TLBjs.RunEventQueryInputError)(
|
|
2943
2943
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2944
2944
|
);
|
|
2945
2945
|
}
|
|
@@ -2952,18 +2952,18 @@ function parseQuery(args, resource) {
|
|
|
2952
2952
|
)
|
|
2953
2953
|
];
|
|
2954
2954
|
if (incompatible.length) {
|
|
2955
|
-
throw new (0,
|
|
2955
|
+
throw new (0, _chunk5DEJ3TLBjs.RunEventQueryInputError)(
|
|
2956
2956
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2957
2957
|
);
|
|
2958
2958
|
}
|
|
2959
2959
|
}
|
|
2960
2960
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2961
|
-
throw new (0,
|
|
2961
|
+
throw new (0, _chunk5DEJ3TLBjs.RunEventQueryInputError)(
|
|
2962
2962
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2963
2963
|
);
|
|
2964
2964
|
}
|
|
2965
2965
|
if (sums.length && switches.has("--count")) {
|
|
2966
|
-
throw new (0,
|
|
2966
|
+
throw new (0, _chunk5DEJ3TLBjs.RunEventQueryInputError)(
|
|
2967
2967
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2968
2968
|
);
|
|
2969
2969
|
}
|
|
@@ -2971,7 +2971,7 @@ function parseQuery(args, resource) {
|
|
|
2971
2971
|
if (operation === "count") {
|
|
2972
2972
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2973
2973
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2974
|
-
throw new (0,
|
|
2974
|
+
throw new (0, _chunk5DEJ3TLBjs.RunEventQueryInputError)(
|
|
2975
2975
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2976
2976
|
);
|
|
2977
2977
|
}
|
|
@@ -3006,16 +3006,16 @@ function parseQuery(args, resource) {
|
|
|
3006
3006
|
];
|
|
3007
3007
|
}
|
|
3008
3008
|
}
|
|
3009
|
-
const request =
|
|
3009
|
+
const request = _chunk5DEJ3TLBjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3010
3010
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3011
3011
|
const backend = values["--runtime-backend"];
|
|
3012
3012
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3013
|
-
throw new (0,
|
|
3013
|
+
throw new (0, _chunk5DEJ3TLBjs.RunEventQueryInputError)(
|
|
3014
3014
|
"--runtime-backend must be daytona or modal."
|
|
3015
3015
|
);
|
|
3016
3016
|
}
|
|
3017
3017
|
if (backend && !namespace) {
|
|
3018
|
-
throw new (0,
|
|
3018
|
+
throw new (0, _chunk5DEJ3TLBjs.RunEventQueryInputError)(
|
|
3019
3019
|
"--runtime-backend requires --runtime-namespace."
|
|
3020
3020
|
);
|
|
3021
3021
|
}
|
|
@@ -3062,12 +3062,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3062
3062
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3063
3063
|
const record3 = failure;
|
|
3064
3064
|
const status = record3.statusCode;
|
|
3065
|
-
const exitCode = error instanceof
|
|
3065
|
+
const exitCode = error instanceof _chunk5DEJ3TLBjs.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;
|
|
3066
3066
|
const diagnostic = Object.assign(failure, {
|
|
3067
3067
|
exitCode,
|
|
3068
3068
|
retryable: exitCode === 5
|
|
3069
3069
|
});
|
|
3070
|
-
if (
|
|
3070
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) _chunkRI2PLVD4js.printJsonError.call(void 0, diagnostic);
|
|
3071
3071
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3072
3072
|
return exitCode;
|
|
3073
3073
|
}
|
|
@@ -3082,7 +3082,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3082
3082
|
...criteria
|
|
3083
3083
|
} = request;
|
|
3084
3084
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3085
|
-
const client = new (0,
|
|
3085
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
3086
3086
|
let result;
|
|
3087
3087
|
if (request.operation === "fields") {
|
|
3088
3088
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3148,13 +3148,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3148
3148
|
lines.push(`Next page: ${nextPage}`);
|
|
3149
3149
|
}
|
|
3150
3150
|
}
|
|
3151
|
-
|
|
3151
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
3152
3152
|
{
|
|
3153
3153
|
...result,
|
|
3154
3154
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3155
3155
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3156
3156
|
},
|
|
3157
|
-
{ json:
|
|
3157
|
+
{ json: _chunkRI2PLVD4js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3158
3158
|
` }
|
|
3159
3159
|
);
|
|
3160
3160
|
return 0;
|
|
@@ -4073,7 +4073,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4073
4073
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4074
4074
|
);
|
|
4075
4075
|
}
|
|
4076
|
-
const response = await new (0,
|
|
4076
|
+
const response = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4077
4077
|
keys
|
|
4078
4078
|
});
|
|
4079
4079
|
const failed = response.receipts.filter(
|
|
@@ -4085,7 +4085,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4085
4085
|
JSON.stringify(response, null, 2) + "\n",
|
|
4086
4086
|
{ flag: "wx", mode: 384 }
|
|
4087
4087
|
);
|
|
4088
|
-
|
|
4088
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
4089
4089
|
{
|
|
4090
4090
|
runId,
|
|
4091
4091
|
out: options.out,
|
|
@@ -4095,7 +4095,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4095
4095
|
{ json: true }
|
|
4096
4096
|
);
|
|
4097
4097
|
} else {
|
|
4098
|
-
|
|
4098
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4099
4099
|
}
|
|
4100
4100
|
if (failed)
|
|
4101
4101
|
process.exitCode = response.receipts.some(
|
|
@@ -4134,7 +4134,7 @@ includes nextCommand when another page is available.
|
|
|
4134
4134
|
{ exitCode: 2 }
|
|
4135
4135
|
);
|
|
4136
4136
|
}
|
|
4137
|
-
const page = await new (0,
|
|
4137
|
+
const page = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4138
4138
|
launchKey: options.launchKey,
|
|
4139
4139
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4140
4140
|
limit
|
|
@@ -4149,7 +4149,7 @@ includes nextCommand when another page is available.
|
|
|
4149
4149
|
"--limit",
|
|
4150
4150
|
String(limit)
|
|
4151
4151
|
].join(" ") : null;
|
|
4152
|
-
|
|
4152
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
4153
4153
|
{
|
|
4154
4154
|
parentRunId,
|
|
4155
4155
|
launchKey: options.launchKey,
|
|
@@ -4185,7 +4185,7 @@ async function handleRunsHistory(options) {
|
|
|
4185
4185
|
throw new Error("--limit must be a positive integer.");
|
|
4186
4186
|
}
|
|
4187
4187
|
}
|
|
4188
|
-
const page = await new (0,
|
|
4188
|
+
const page = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().runs.history({
|
|
4189
4189
|
cursor: options.cursor,
|
|
4190
4190
|
orgId: options.org,
|
|
4191
4191
|
search: options.search,
|
|
@@ -4201,7 +4201,7 @@ async function handleRunsHistory(options) {
|
|
|
4201
4201
|
);
|
|
4202
4202
|
}
|
|
4203
4203
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4204
|
-
|
|
4204
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
4205
4205
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4206
4206
|
options.json ? { json: true } : {}
|
|
4207
4207
|
);
|
|
@@ -4253,12 +4253,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4253
4253
|
return 1;
|
|
4254
4254
|
}
|
|
4255
4255
|
}
|
|
4256
|
-
const result = await new (0,
|
|
4256
|
+
const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().runs.rerun(runId, {
|
|
4257
4257
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4258
4258
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4259
4259
|
});
|
|
4260
|
-
if (
|
|
4261
|
-
|
|
4260
|
+
if (_chunkRI2PLVD4js.shouldEmitJson.call(void 0, options.json)) {
|
|
4261
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4262
4262
|
} else if (result.rateLimited) {
|
|
4263
4263
|
console.log(`
|
|
4264
4264
|
${result.rateLimited.message}`);
|
|
@@ -5082,13 +5082,13 @@ var RunDataset = class _RunDataset {
|
|
|
5082
5082
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5083
5083
|
_fs.writeFileSync.call(void 0,
|
|
5084
5084
|
absolutePath,
|
|
5085
|
-
`${JSON.stringify(
|
|
5085
|
+
`${JSON.stringify(_chunkGW6HV7Z7js.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5086
5086
|
`,
|
|
5087
5087
|
"utf-8"
|
|
5088
5088
|
);
|
|
5089
5089
|
return absolutePath;
|
|
5090
5090
|
}
|
|
5091
|
-
return
|
|
5091
|
+
return _chunkGW6HV7Z7js.writeRunDatasetCsv.call(void 0, {
|
|
5092
5092
|
rows: this.rows,
|
|
5093
5093
|
columns: this.#info.columns,
|
|
5094
5094
|
outPath
|
|
@@ -6785,7 +6785,7 @@ function renderOutcome(outcome) {
|
|
|
6785
6785
|
function printResult2(input) {
|
|
6786
6786
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6787
6787
|
if (failed) process.exitCode = 1;
|
|
6788
|
-
|
|
6788
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
6789
6789
|
{
|
|
6790
6790
|
deployment: { ...input.deployment, status: input.status },
|
|
6791
6791
|
plays: input.outcomes,
|
|
@@ -6810,7 +6810,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6810
6810
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6811
6811
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6812
6812
|
});
|
|
6813
|
-
const { http, config } =
|
|
6813
|
+
const { http, config } = _chunkRI2PLVD4js.getAuthedHttpClient.call(void 0, );
|
|
6814
6814
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6815
6815
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6816
6816
|
deliveryId,
|
|
@@ -6837,7 +6837,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6837
6837
|
},
|
|
6838
6838
|
{
|
|
6839
6839
|
bundle: bundleDeployPlayFile,
|
|
6840
|
-
fetchImpl:
|
|
6840
|
+
fetchImpl: _chunkK2RUSHZ7js.fetchWithDeploymentProtection,
|
|
6841
6841
|
// The plays are already here: "opening" the source is naming it.
|
|
6842
6842
|
openSource: async () => ({
|
|
6843
6843
|
open: async () => ({ repoRoot: root })
|
|
@@ -6963,7 +6963,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6963
6963
|
// src/cli/renderers/local-play-execution.ts
|
|
6964
6964
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6965
6965
|
if (options.dryRun) {
|
|
6966
|
-
|
|
6966
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6967
6967
|
return;
|
|
6968
6968
|
}
|
|
6969
6969
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7135,7 +7135,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7135
7135
|
const startedAt = Date.now();
|
|
7136
7136
|
try {
|
|
7137
7137
|
const result = run();
|
|
7138
|
-
|
|
7138
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
7139
7139
|
phase,
|
|
7140
7140
|
ms: Date.now() - startedAt,
|
|
7141
7141
|
ok: true,
|
|
@@ -7143,7 +7143,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7143
7143
|
});
|
|
7144
7144
|
return result;
|
|
7145
7145
|
} catch (error) {
|
|
7146
|
-
|
|
7146
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
7147
7147
|
phase,
|
|
7148
7148
|
ms: Date.now() - startedAt,
|
|
7149
7149
|
ok: false,
|
|
@@ -7949,7 +7949,7 @@ function playStatusErrorText(status) {
|
|
|
7949
7949
|
function isRetryablePendingStartFailure(status) {
|
|
7950
7950
|
if (status.status !== "failed") return false;
|
|
7951
7951
|
if (status.runId && status.runId !== "pending") return false;
|
|
7952
|
-
return
|
|
7952
|
+
return _chunk5DEJ3TLBjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7953
7953
|
}
|
|
7954
7954
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7955
7955
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -7999,13 +7999,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
7999
7999
|
}, _class);
|
|
8000
8000
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8001
8001
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8002
|
-
if (!
|
|
8002
|
+
if (!_chunk5DEJ3TLBjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8003
8003
|
return false;
|
|
8004
8004
|
}
|
|
8005
|
-
if (
|
|
8005
|
+
if (_chunk5DEJ3TLBjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8006
8006
|
return true;
|
|
8007
8007
|
}
|
|
8008
|
-
return state.verbose === true &&
|
|
8008
|
+
return state.verbose === true && _chunk5DEJ3TLBjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8009
8009
|
}
|
|
8010
8010
|
function getEventPayload(event) {
|
|
8011
8011
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8507,7 +8507,7 @@ function resolveRunPlayName(status, runId) {
|
|
|
8507
8507
|
}
|
|
8508
8508
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
8509
8509
|
if (open2 && dashboardUrl) {
|
|
8510
|
-
|
|
8510
|
+
_chunkRI2PLVD4js.openInBrowser.call(void 0, dashboardUrl);
|
|
8511
8511
|
}
|
|
8512
8512
|
}
|
|
8513
8513
|
function printPlayLogLines(input) {
|
|
@@ -8588,7 +8588,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8588
8588
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8589
8589
|
});
|
|
8590
8590
|
} catch (error) {
|
|
8591
|
-
if (
|
|
8591
|
+
if (_chunk5DEJ3TLBjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8592
8592
|
return null;
|
|
8593
8593
|
}
|
|
8594
8594
|
throw error;
|
|
@@ -8669,9 +8669,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8669
8669
|
signal: controller.signal,
|
|
8670
8670
|
deferLogs: !input.emitLogs,
|
|
8671
8671
|
omitTerminalLogs: !input.emitLogs,
|
|
8672
|
-
...
|
|
8672
|
+
..._chunkYSB44HZBjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8673
8673
|
onPoll: (observation) => {
|
|
8674
|
-
|
|
8674
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
8675
8675
|
phase: "play_watch_poll",
|
|
8676
8676
|
workflowId: input.workflowId,
|
|
8677
8677
|
ms: observation.durationMs,
|
|
@@ -8685,7 +8685,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8685
8685
|
full: input.fullJson,
|
|
8686
8686
|
billing: false,
|
|
8687
8687
|
onStatus: async (status) => {
|
|
8688
|
-
|
|
8688
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
8689
8689
|
phase: "play_watch_terminal_status",
|
|
8690
8690
|
workflowId: input.workflowId,
|
|
8691
8691
|
full: input.fullJson === true
|
|
@@ -8774,7 +8774,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8774
8774
|
signal: controller.signal,
|
|
8775
8775
|
cliAdmission: useCliAdmission
|
|
8776
8776
|
});
|
|
8777
|
-
|
|
8777
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
8778
8778
|
phase: "cli.play_start_admission_attempt",
|
|
8779
8779
|
ms: Date.now() - postStartedAt,
|
|
8780
8780
|
ok: true,
|
|
@@ -8786,7 +8786,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8786
8786
|
});
|
|
8787
8787
|
break;
|
|
8788
8788
|
} catch (error) {
|
|
8789
|
-
|
|
8789
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
8790
8790
|
phase: "cli.play_start_admission_attempt",
|
|
8791
8791
|
ms: Date.now() - postStartedAt,
|
|
8792
8792
|
ok: false,
|
|
@@ -8837,7 +8837,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8837
8837
|
prepared.workflowId
|
|
8838
8838
|
);
|
|
8839
8839
|
}
|
|
8840
|
-
await
|
|
8840
|
+
await _chunk6FMP5XRFjs.checkPlayRunCompatibility.call(void 0,
|
|
8841
8841
|
input.client.baseUrl,
|
|
8842
8842
|
input.maintenancePolicy
|
|
8843
8843
|
);
|
|
@@ -8855,7 +8855,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8855
8855
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
8856
8856
|
);
|
|
8857
8857
|
}
|
|
8858
|
-
|
|
8858
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
8859
8859
|
phase: "cli.play_start_json_retry",
|
|
8860
8860
|
ms: 0,
|
|
8861
8861
|
ok: true,
|
|
@@ -8928,7 +8928,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8928
8928
|
}
|
|
8929
8929
|
openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
|
|
8930
8930
|
input.progress.phase("running");
|
|
8931
|
-
|
|
8931
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
8932
8932
|
phase: "cli.play_start_admitted",
|
|
8933
8933
|
ms: Date.now() - startedAt,
|
|
8934
8934
|
ok: true,
|
|
@@ -8946,7 +8946,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8946
8946
|
startedAt,
|
|
8947
8947
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8948
8948
|
});
|
|
8949
|
-
const initialStatus =
|
|
8949
|
+
const initialStatus = _chunk5DEJ3TLBjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8950
8950
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8951
8951
|
client: input.client,
|
|
8952
8952
|
status: initialStatus,
|
|
@@ -8954,7 +8954,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8954
8954
|
jsonOutput: input.jsonOutput,
|
|
8955
8955
|
fromDurableStatus: true
|
|
8956
8956
|
});
|
|
8957
|
-
|
|
8957
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
8958
8958
|
phase: "play_watch_terminal_status",
|
|
8959
8959
|
workflowId,
|
|
8960
8960
|
full: true,
|
|
@@ -9059,7 +9059,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9059
9059
|
});
|
|
9060
9060
|
}
|
|
9061
9061
|
if (error instanceof _chunkAUQQVDABjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
9062
|
-
await
|
|
9062
|
+
await _chunk6FMP5XRFjs.checkPlayRunCompatibility.call(void 0,
|
|
9063
9063
|
input.client.baseUrl,
|
|
9064
9064
|
input.maintenancePolicy,
|
|
9065
9065
|
admissionDeadline.signal
|
|
@@ -9100,7 +9100,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9100
9100
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9101
9101
|
);
|
|
9102
9102
|
}
|
|
9103
|
-
|
|
9103
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
9104
9104
|
phase: "cli.play_start_stream_retry",
|
|
9105
9105
|
ms: 0,
|
|
9106
9106
|
ok: true,
|
|
@@ -9121,7 +9121,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9121
9121
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9122
9122
|
);
|
|
9123
9123
|
}
|
|
9124
|
-
|
|
9124
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
9125
9125
|
phase: "cli.play_start_stream_retry",
|
|
9126
9126
|
ms: 0,
|
|
9127
9127
|
ok: true,
|
|
@@ -9178,7 +9178,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9178
9178
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9179
9179
|
launchConfirmed = true;
|
|
9180
9180
|
await _optionalChain([input, 'access', _315 => _315.onRunAdmitted, 'optionalCall', _316 => _316(runId)]);
|
|
9181
|
-
|
|
9181
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
9182
9182
|
phase: "cli.play_start_admitted",
|
|
9183
9183
|
ms: Date.now() - startedAt,
|
|
9184
9184
|
ok: true,
|
|
@@ -9212,7 +9212,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9212
9212
|
full: input.fullJson
|
|
9213
9213
|
});
|
|
9214
9214
|
} catch (error) {
|
|
9215
|
-
if (
|
|
9215
|
+
if (_chunk5DEJ3TLBjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9216
9216
|
return null;
|
|
9217
9217
|
}
|
|
9218
9218
|
throw error;
|
|
@@ -9380,7 +9380,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9380
9380
|
};
|
|
9381
9381
|
}
|
|
9382
9382
|
if (!canonicalTerminal) {
|
|
9383
|
-
|
|
9383
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
9384
9384
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9385
9385
|
ms: Date.now() - startedAt,
|
|
9386
9386
|
ok: true,
|
|
@@ -9401,14 +9401,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9401
9401
|
fromDurableStatus
|
|
9402
9402
|
}) : canonicalTerminal;
|
|
9403
9403
|
if (input.fullJson === true) {
|
|
9404
|
-
|
|
9404
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
9405
9405
|
phase: "play_watch_terminal_status",
|
|
9406
9406
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9407
9407
|
full: true,
|
|
9408
9408
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9409
9409
|
});
|
|
9410
9410
|
}
|
|
9411
|
-
|
|
9411
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
9412
9412
|
phase: "cli.play_start_stream_terminal",
|
|
9413
9413
|
ms: Date.now() - startedAt,
|
|
9414
9414
|
ok: true,
|
|
@@ -9428,7 +9428,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9428
9428
|
clearTimeout(timeout);
|
|
9429
9429
|
}
|
|
9430
9430
|
controller.abort();
|
|
9431
|
-
|
|
9431
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
9432
9432
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9433
9433
|
ms: Date.now() - startedAt,
|
|
9434
9434
|
ok: true,
|
|
@@ -9459,7 +9459,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9459
9459
|
if (timedOut) {
|
|
9460
9460
|
const terminal = await fetchKnownTerminalStatus();
|
|
9461
9461
|
if (terminal) {
|
|
9462
|
-
|
|
9462
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
9463
9463
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9464
9464
|
ms: Date.now() - startedAt,
|
|
9465
9465
|
ok: true,
|
|
@@ -9479,7 +9479,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9479
9479
|
lastPhase
|
|
9480
9480
|
});
|
|
9481
9481
|
}
|
|
9482
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9482
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunk5DEJ3TLBjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9483
9483
|
if (timeout) {
|
|
9484
9484
|
clearTimeout(timeout);
|
|
9485
9485
|
}
|
|
@@ -9490,7 +9490,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9490
9490
|
`
|
|
9491
9491
|
);
|
|
9492
9492
|
}
|
|
9493
|
-
|
|
9493
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
9494
9494
|
phase: "cli.play_start_stream_reconnect",
|
|
9495
9495
|
ms: Date.now() - startedAt,
|
|
9496
9496
|
ok: true,
|
|
@@ -9517,7 +9517,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9517
9517
|
});
|
|
9518
9518
|
}
|
|
9519
9519
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9520
|
-
|
|
9520
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
9521
9521
|
phase: "cli.play_start_stream_transient_failure",
|
|
9522
9522
|
ms: Date.now() - startedAt,
|
|
9523
9523
|
ok: false,
|
|
@@ -9545,7 +9545,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9545
9545
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9546
9546
|
);
|
|
9547
9547
|
}
|
|
9548
|
-
|
|
9548
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
9549
9549
|
phase: "cli.play_start_stream_reconnect",
|
|
9550
9550
|
ms: Date.now() - startedAt,
|
|
9551
9551
|
ok: true,
|
|
@@ -9625,7 +9625,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9625
9625
|
"logs"
|
|
9626
9626
|
]);
|
|
9627
9627
|
function formatPlayLogLine(rawLine, state) {
|
|
9628
|
-
const classified =
|
|
9628
|
+
const classified = _chunk5DEJ3TLBjs.classifyLogLine.call(void 0, rawLine);
|
|
9629
9629
|
const line = classified.line;
|
|
9630
9630
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9631
9631
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _338 => _338[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9640,14 +9640,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9640
9640
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9641
9641
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9642
9642
|
if (providerWait && !state.verbose) {
|
|
9643
|
-
return
|
|
9643
|
+
return _chunk5DEJ3TLBjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9644
9644
|
}
|
|
9645
9645
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9646
9646
|
if (mapProgress && !state.verbose) {
|
|
9647
|
-
return
|
|
9647
|
+
return _chunk5DEJ3TLBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9648
9648
|
}
|
|
9649
9649
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9650
|
-
if (!
|
|
9650
|
+
if (!_chunk5DEJ3TLBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9651
9651
|
return null;
|
|
9652
9652
|
}
|
|
9653
9653
|
if (state.emittedRunnerStarted) {
|
|
@@ -9660,7 +9660,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9660
9660
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9661
9661
|
);
|
|
9662
9662
|
if (mapStart) {
|
|
9663
|
-
if (!
|
|
9663
|
+
if (!_chunk5DEJ3TLBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9664
9664
|
return null;
|
|
9665
9665
|
}
|
|
9666
9666
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9670,7 +9670,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9670
9670
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9671
9671
|
);
|
|
9672
9672
|
if (mapDone) {
|
|
9673
|
-
if (!
|
|
9673
|
+
if (!_chunk5DEJ3TLBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9674
9674
|
return null;
|
|
9675
9675
|
}
|
|
9676
9676
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10959,7 +10959,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10959
10959
|
(line) => typeof line === "string"
|
|
10960
10960
|
);
|
|
10961
10961
|
if (tail.length === 0) return [];
|
|
10962
|
-
const shown = tail.map((line) =>
|
|
10962
|
+
const shown = tail.map((line) => _chunk5DEJ3TLBjs.classifyLogLine.call(void 0, line)).filter(
|
|
10963
10963
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10964
10964
|
).slice(-8);
|
|
10965
10965
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11254,11 +11254,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11254
11254
|
}
|
|
11255
11255
|
function writePlayResult(status, jsonOutput, options) {
|
|
11256
11256
|
const packaged = getPlayRunPackage(status);
|
|
11257
|
-
if (status.package)
|
|
11257
|
+
if (status.package) _chunkGW6HV7Z7js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11258
11258
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _421 => _421.hits]), () => ( null));
|
|
11259
11259
|
if (jsonOutput) {
|
|
11260
11260
|
const payload2 = _optionalChain([options, 'optionalAccess', _422 => _422.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11261
|
-
|
|
11261
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
11262
11262
|
hits ? { ...payload2, hits } : payload2,
|
|
11263
11263
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _423 => _423.jsonFields]) }
|
|
11264
11264
|
);
|
|
@@ -11274,7 +11274,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11274
11274
|
...buildPlayCompletionTextLines(status),
|
|
11275
11275
|
...formatRunHitsLines(hits)
|
|
11276
11276
|
];
|
|
11277
|
-
|
|
11277
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11278
11278
|
json: false,
|
|
11279
11279
|
text: `${lines2.join("\n")}
|
|
11280
11280
|
`
|
|
@@ -11325,7 +11325,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11325
11325
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11326
11326
|
const compact = compactPlayStatus(status);
|
|
11327
11327
|
const payload = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status : compact;
|
|
11328
|
-
|
|
11328
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
11329
11329
|
{
|
|
11330
11330
|
...payload,
|
|
11331
11331
|
render: {
|
|
@@ -11549,7 +11549,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11549
11549
|
}
|
|
11550
11550
|
offset += page.rows.length;
|
|
11551
11551
|
}
|
|
11552
|
-
const withError =
|
|
11552
|
+
const withError = _chunkGW6HV7Z7js.tableExportHasFailedRows.call(void 0,
|
|
11553
11553
|
sheetRows.filter(
|
|
11554
11554
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11555
11555
|
)
|
|
@@ -11565,7 +11565,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11565
11565
|
return [
|
|
11566
11566
|
withError ? {
|
|
11567
11567
|
...exported,
|
|
11568
|
-
[
|
|
11568
|
+
[_chunkGW6HV7Z7js.TABLE_EXPORT_ERROR_COLUMN]: _chunkGW6HV7Z7js.tableExportErrorCell.call(void 0,
|
|
11569
11569
|
row
|
|
11570
11570
|
)
|
|
11571
11571
|
} : exported
|
|
@@ -12100,7 +12100,7 @@ function renderServerResultView(value) {
|
|
|
12100
12100
|
function writeStartedPlayRun(input) {
|
|
12101
12101
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12102
12102
|
const run = input.package.run;
|
|
12103
|
-
|
|
12103
|
+
_chunkGW6HV7Z7js.recordPlayTermination.call(void 0, {
|
|
12104
12104
|
id: run.id,
|
|
12105
12105
|
status: run.status,
|
|
12106
12106
|
finishedAt: run.finishedAt
|
|
@@ -12113,7 +12113,7 @@ function writeStartedPlayRun(input) {
|
|
|
12113
12113
|
dashboardUrl: input.dashboardUrl,
|
|
12114
12114
|
package: input.package
|
|
12115
12115
|
};
|
|
12116
|
-
|
|
12116
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12117
12117
|
json: true,
|
|
12118
12118
|
fields: input.jsonFields
|
|
12119
12119
|
});
|
|
@@ -12135,7 +12135,7 @@ function writeStartedPlayRun(input) {
|
|
|
12135
12135
|
input.progress.writeLine(output2, process.stdout);
|
|
12136
12136
|
return;
|
|
12137
12137
|
}
|
|
12138
|
-
|
|
12138
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, input.package, {
|
|
12139
12139
|
json: false,
|
|
12140
12140
|
text: `${output2}
|
|
12141
12141
|
`
|
|
@@ -12164,7 +12164,7 @@ function writeStartedPlayRun(input) {
|
|
|
12164
12164
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12165
12165
|
];
|
|
12166
12166
|
if (input.jsonOutput) {
|
|
12167
|
-
|
|
12167
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12168
12168
|
return;
|
|
12169
12169
|
}
|
|
12170
12170
|
if (input.dashboardUrl) {
|
|
@@ -12175,7 +12175,7 @@ function writeStartedPlayRun(input) {
|
|
|
12175
12175
|
input.progress.writeLine(output, process.stdout);
|
|
12176
12176
|
return;
|
|
12177
12177
|
}
|
|
12178
|
-
|
|
12178
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
12179
12179
|
{
|
|
12180
12180
|
...payload,
|
|
12181
12181
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12185,7 +12185,7 @@ function writeStartedPlayRun(input) {
|
|
|
12185
12185
|
);
|
|
12186
12186
|
}
|
|
12187
12187
|
function parsePlayCheckOptions(args) {
|
|
12188
|
-
const selection =
|
|
12188
|
+
const selection = _chunkRI2PLVD4js.parseJsonFields.call(void 0, args, "check");
|
|
12189
12189
|
args = selection.args;
|
|
12190
12190
|
const target = args[0];
|
|
12191
12191
|
if (!target || target.startsWith("-")) {
|
|
@@ -12197,7 +12197,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12197
12197
|
if (arg !== "--json" && arg !== "--full")
|
|
12198
12198
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12199
12199
|
}
|
|
12200
|
-
const jsonOutput =
|
|
12200
|
+
const jsonOutput = _chunkRI2PLVD4js.argsWantJson.call(void 0, args);
|
|
12201
12201
|
return {
|
|
12202
12202
|
target,
|
|
12203
12203
|
jsonOutput,
|
|
@@ -12273,7 +12273,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12273
12273
|
useLatest,
|
|
12274
12274
|
expectedArtifactHash,
|
|
12275
12275
|
dryRun,
|
|
12276
|
-
jsonOutput:
|
|
12276
|
+
jsonOutput: _chunkRI2PLVD4js.argsWantJson.call(void 0, args)
|
|
12277
12277
|
};
|
|
12278
12278
|
}
|
|
12279
12279
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12314,7 +12314,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12314
12314
|
target,
|
|
12315
12315
|
expectedArtifactHash,
|
|
12316
12316
|
dryRun,
|
|
12317
|
-
jsonOutput:
|
|
12317
|
+
jsonOutput: _chunkRI2PLVD4js.argsWantJson.call(void 0, args)
|
|
12318
12318
|
};
|
|
12319
12319
|
}
|
|
12320
12320
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12525,7 +12525,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12525
12525
|
async function handlePlayCheck(args) {
|
|
12526
12526
|
const options = parsePlayCheckOptions(args);
|
|
12527
12527
|
if (!isFileTarget(options.target)) {
|
|
12528
|
-
const client = new (0,
|
|
12528
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
12529
12529
|
try {
|
|
12530
12530
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12531
12531
|
command: "check"
|
|
@@ -12554,7 +12554,7 @@ async function handlePlayCheck(args) {
|
|
|
12554
12554
|
},
|
|
12555
12555
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12556
12556
|
};
|
|
12557
|
-
|
|
12557
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, result, {
|
|
12558
12558
|
json: options.jsonOutput,
|
|
12559
12559
|
fields: options.jsonFields,
|
|
12560
12560
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12564,7 +12564,7 @@ async function handlePlayCheck(args) {
|
|
|
12564
12564
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12565
12565
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12566
12566
|
if (options.jsonOutput) {
|
|
12567
|
-
|
|
12567
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
12568
12568
|
{
|
|
12569
12569
|
kind: "play_check",
|
|
12570
12570
|
checked: "named_contract",
|
|
@@ -12606,7 +12606,7 @@ async function handlePlayCheck(args) {
|
|
|
12606
12606
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12607
12607
|
publishCommand: _optionalChain([primary, 'optionalAccess', _475 => _475.result, 'access', _476 => _476.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12608
12608
|
});
|
|
12609
|
-
|
|
12609
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, output, {
|
|
12610
12610
|
json: options.jsonOutput,
|
|
12611
12611
|
fields: options.jsonFields,
|
|
12612
12612
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12660,7 +12660,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12660
12660
|
}
|
|
12661
12661
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12662
12662
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12663
|
-
const client = new (0,
|
|
12663
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
12664
12664
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12665
12665
|
const checked = await checkLocalPlayGraph({
|
|
12666
12666
|
client,
|
|
@@ -12716,8 +12716,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12716
12716
|
let prefetchClient;
|
|
12717
12717
|
let admissionCapability;
|
|
12718
12718
|
let cancelAdmissionCapability;
|
|
12719
|
-
let cliAdmission =
|
|
12720
|
-
const progress = _nullishCoalesce(
|
|
12719
|
+
let cliAdmission = _chunk6FMP5XRFjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12720
|
+
const progress = _nullishCoalesce(_chunkFNKSRKTAjs.getActiveCliProgress.call(void 0, ), () => ( _chunkFNKSRKTAjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12721
12721
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12722
12722
|
progress.phase("compiling play");
|
|
12723
12723
|
const sourceCode = traceCliSync(
|
|
@@ -12733,11 +12733,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12733
12733
|
return 1;
|
|
12734
12734
|
}
|
|
12735
12735
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12736
|
-
const clientForPrefetch = new (0,
|
|
12736
|
+
const clientForPrefetch = new (0, _chunkF3TDT57Mjs.DeeplineClient)(playRunClientOptions(options));
|
|
12737
12737
|
prefetchClient = clientForPrefetch;
|
|
12738
12738
|
const capabilityController = new AbortController();
|
|
12739
12739
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12740
|
-
admissionCapability =
|
|
12740
|
+
admissionCapability = _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
12741
12741
|
"cli.play_admission_capability_prefetch",
|
|
12742
12742
|
{ targetKind: "file" },
|
|
12743
12743
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -12748,7 +12748,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12748
12748
|
}
|
|
12749
12749
|
let graph;
|
|
12750
12750
|
try {
|
|
12751
|
-
graph = await
|
|
12751
|
+
graph = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
12752
12752
|
"cli.play_file_bundle_graph",
|
|
12753
12753
|
{ targetKind: "file" },
|
|
12754
12754
|
() => collectBundledPlayGraph(
|
|
@@ -12762,14 +12762,14 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12762
12762
|
if (options.dryRun) {
|
|
12763
12763
|
progress.complete();
|
|
12764
12764
|
renderLocalPlayExecutionPlan(
|
|
12765
|
-
|
|
12765
|
+
_chunkVP65YKOAjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
|
|
12766
12766
|
{ dryRun: true, json: options.jsonOutput }
|
|
12767
12767
|
);
|
|
12768
12768
|
return 0;
|
|
12769
12769
|
}
|
|
12770
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
12770
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkF3TDT57Mjs.DeeplineClient)(playRunClientOptions(options))));
|
|
12771
12771
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12772
|
-
await
|
|
12772
|
+
await _chunk6FMP5XRFjs.checkPlayRunCompatibility.call(void 0,
|
|
12773
12773
|
client.baseUrl,
|
|
12774
12774
|
options.maintenancePolicy
|
|
12775
12775
|
);
|
|
@@ -12782,7 +12782,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12782
12782
|
});
|
|
12783
12783
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12784
12784
|
if (canDeferCompilerManifest) {
|
|
12785
|
-
|
|
12785
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
12786
12786
|
phase: "cli.play_file_compile_manifests",
|
|
12787
12787
|
ms: 0,
|
|
12788
12788
|
ok: true,
|
|
@@ -12791,7 +12791,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12791
12791
|
reason: "validated_by_run_route"
|
|
12792
12792
|
});
|
|
12793
12793
|
} else {
|
|
12794
|
-
await
|
|
12794
|
+
await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
12795
12795
|
"cli.play_file_compile_manifests",
|
|
12796
12796
|
{ targetKind: "file", skipped: false },
|
|
12797
12797
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12812,13 +12812,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12812
12812
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12813
12813
|
try {
|
|
12814
12814
|
renderLocalPlayExecutionPlan(
|
|
12815
|
-
|
|
12815
|
+
_chunkVP65YKOAjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12816
12816
|
);
|
|
12817
12817
|
progress.phase("pinning imported plays");
|
|
12818
|
-
graph = await
|
|
12818
|
+
graph = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
12819
12819
|
"cli.play_file_pin_imports",
|
|
12820
12820
|
{ targetKind: "file" },
|
|
12821
|
-
() =>
|
|
12821
|
+
() => _chunkVP65YKOAjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12822
12822
|
);
|
|
12823
12823
|
bundleResult = graph.root;
|
|
12824
12824
|
} catch (error) {
|
|
@@ -12834,7 +12834,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12834
12834
|
const fileInputBindings = _chunkAUQQVDABjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12835
12835
|
_optionalChain([compilerManifest, 'optionalAccess', _485 => _485.staticPipeline])
|
|
12836
12836
|
);
|
|
12837
|
-
const stagedFileInputs = await
|
|
12837
|
+
const stagedFileInputs = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
12838
12838
|
"cli.play_stage_inputs",
|
|
12839
12839
|
{
|
|
12840
12840
|
targetKind: "file",
|
|
@@ -12881,7 +12881,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12881
12881
|
};
|
|
12882
12882
|
if (options.watch) {
|
|
12883
12883
|
progress.phase("starting run");
|
|
12884
|
-
const finalStatus = await
|
|
12884
|
+
const finalStatus = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
12885
12885
|
"cli.play_start_watch",
|
|
12886
12886
|
{ targetKind: "file", playName },
|
|
12887
12887
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12943,7 +12943,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12943
12943
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12944
12944
|
}
|
|
12945
12945
|
progress.phase("starting run");
|
|
12946
|
-
const started = await
|
|
12946
|
+
const started = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
12947
12947
|
"cli.play_start_unwatched",
|
|
12948
12948
|
{ targetKind: "file", playName },
|
|
12949
12949
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _492 => _492.onSubmission]) }).catch(async (error) => {
|
|
@@ -12994,9 +12994,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
12994
12994
|
if (options.target.kind !== "name") {
|
|
12995
12995
|
throw new Error("Expected a named play run target.");
|
|
12996
12996
|
}
|
|
12997
|
-
const client = new (0,
|
|
12998
|
-
let cliAdmission =
|
|
12999
|
-
const progress = _nullishCoalesce(
|
|
12997
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)(playRunClientOptions(options));
|
|
12998
|
+
let cliAdmission = _chunk6FMP5XRFjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12999
|
+
const progress = _nullishCoalesce(_chunkFNKSRKTAjs.getActiveCliProgress.call(void 0, ), () => ( _chunkFNKSRKTAjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13000
13000
|
const playName = options.target.name;
|
|
13001
13001
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13002
13002
|
try {
|
|
@@ -13014,7 +13014,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13014
13014
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13015
13015
|
const capabilityController = new AbortController();
|
|
13016
13016
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13017
|
-
admissionCapability =
|
|
13017
|
+
admissionCapability = _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
13018
13018
|
"cli.play_admission_capability_prefetch",
|
|
13019
13019
|
{ targetKind: "name", playName },
|
|
13020
13020
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13025,14 +13025,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13025
13025
|
}
|
|
13026
13026
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13027
13027
|
progress.phase("loading play definition");
|
|
13028
|
-
return
|
|
13028
|
+
return _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
13029
13029
|
"cli.play_load_definition",
|
|
13030
13030
|
{ targetKind: "name", playName, skipped: false },
|
|
13031
13031
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13032
13032
|
command: "run"
|
|
13033
13033
|
})
|
|
13034
13034
|
);
|
|
13035
|
-
})() : (
|
|
13035
|
+
})() : (_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
13036
13036
|
phase: "cli.play_load_definition",
|
|
13037
13037
|
ms: 0,
|
|
13038
13038
|
ok: true,
|
|
@@ -13041,7 +13041,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13041
13041
|
skipped: true
|
|
13042
13042
|
}), null);
|
|
13043
13043
|
progress.phase("selecting revision");
|
|
13044
|
-
const selectedRevisionId = await
|
|
13044
|
+
const selectedRevisionId = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
13045
13045
|
"cli.play_select_revision",
|
|
13046
13046
|
{
|
|
13047
13047
|
targetKind: "name",
|
|
@@ -13066,10 +13066,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13066
13066
|
..._chunkAUQQVDABjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13067
13067
|
] : [];
|
|
13068
13068
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13069
|
-
await
|
|
13069
|
+
await _chunk6FMP5XRFjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13070
13070
|
cliAdmission = false;
|
|
13071
13071
|
}
|
|
13072
|
-
const stagedFileInputs = await
|
|
13072
|
+
const stagedFileInputs = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
13073
13073
|
"cli.play_stage_inputs",
|
|
13074
13074
|
{
|
|
13075
13075
|
targetKind: "name",
|
|
@@ -13113,7 +13113,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13113
13113
|
});
|
|
13114
13114
|
if (options.watch) {
|
|
13115
13115
|
progress.phase("starting run");
|
|
13116
|
-
const finalStatus = await
|
|
13116
|
+
const finalStatus = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
13117
13117
|
"cli.play_start_watch",
|
|
13118
13118
|
{ targetKind: "name", playName },
|
|
13119
13119
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13178,7 +13178,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13178
13178
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13179
13179
|
}
|
|
13180
13180
|
progress.phase("starting run");
|
|
13181
|
-
const started = await
|
|
13181
|
+
const started = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
13182
13182
|
"cli.play_start_unwatched",
|
|
13183
13183
|
{ targetKind: "name", playName },
|
|
13184
13184
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _505 => _505.onSubmission]) }).catch(async (error) => {
|
|
@@ -13223,7 +13223,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13223
13223
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13224
13224
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _513 => _513.exec, 'call', _514 => _514(status.runId), 'optionalAccess', _515 => _515[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13225
13225
|
if (!terminal) {
|
|
13226
|
-
|
|
13226
|
+
_chunkGW6HV7Z7js.writeExecutionOutput.call(void 0,
|
|
13227
13227
|
{ id: status.runId, status: status.status, next },
|
|
13228
13228
|
output
|
|
13229
13229
|
);
|
|
@@ -13298,10 +13298,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13298
13298
|
};
|
|
13299
13299
|
}
|
|
13300
13300
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13301
|
-
const allCollections =
|
|
13301
|
+
const allCollections = _chunkGW6HV7Z7js.outputCollections.call(void 0, data).map(
|
|
13302
13302
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13303
13303
|
);
|
|
13304
|
-
|
|
13304
|
+
_chunkGW6HV7Z7js.writeExecutionOutput.call(void 0,
|
|
13305
13305
|
{
|
|
13306
13306
|
id: status.runId,
|
|
13307
13307
|
status: status.status,
|
|
@@ -13322,7 +13322,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13322
13322
|
}
|
|
13323
13323
|
var TOOL_EXECUTION_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
13324
13324
|
async function handlePlayRun(args, hooks) {
|
|
13325
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13325
|
+
const parsedOptions = Array.isArray(args) ? _chunkS4F2R2LOjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13326
13326
|
const options = parsedOptions.runIdFile ? {
|
|
13327
13327
|
...parsedOptions,
|
|
13328
13328
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13339,7 +13339,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13339
13339
|
JSON.stringify({
|
|
13340
13340
|
version: 1,
|
|
13341
13341
|
admissionState: "submitted_unknown",
|
|
13342
|
-
baseUrl: new (0,
|
|
13342
|
+
baseUrl: new (0, _chunkF3TDT57Mjs.DeeplineClient)().baseUrl,
|
|
13343
13343
|
...intent
|
|
13344
13344
|
})
|
|
13345
13345
|
);
|
|
@@ -13568,7 +13568,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13568
13568
|
);
|
|
13569
13569
|
return `${lines.join("\n")}
|
|
13570
13570
|
|
|
13571
|
-
${
|
|
13571
|
+
${_chunkRI2PLVD4js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13572
13572
|
}
|
|
13573
13573
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13574
13574
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13592,7 +13592,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13592
13592
|
}
|
|
13593
13593
|
}
|
|
13594
13594
|
async function handleRunGet(args) {
|
|
13595
|
-
const selection =
|
|
13595
|
+
const selection = _chunkRI2PLVD4js.parseJsonFields.call(void 0,
|
|
13596
13596
|
args,
|
|
13597
13597
|
args.includes("--config") ? "config" : "get"
|
|
13598
13598
|
);
|
|
@@ -13605,7 +13605,7 @@ async function handleRunGet(args) {
|
|
|
13605
13605
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13606
13606
|
return 1;
|
|
13607
13607
|
}
|
|
13608
|
-
const client = new (0,
|
|
13608
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
13609
13609
|
const timing = args.includes("--timing");
|
|
13610
13610
|
if (args.includes("--web-url")) {
|
|
13611
13611
|
const status2 = await withRunReadTiming(
|
|
@@ -13620,7 +13620,7 @@ async function handleRunGet(args) {
|
|
|
13620
13620
|
return 1;
|
|
13621
13621
|
}
|
|
13622
13622
|
const dashboardUrl2 = _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13623
|
-
|
|
13623
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
13624
13624
|
{ dashboardUrl: dashboardUrl2 },
|
|
13625
13625
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
13626
13626
|
` }
|
|
@@ -13645,7 +13645,7 @@ async function handleRunGet(args) {
|
|
|
13645
13645
|
"This server does not support recorded configuration reads."
|
|
13646
13646
|
);
|
|
13647
13647
|
}
|
|
13648
|
-
|
|
13648
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
13649
13649
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13650
13650
|
{ json: true, fields: selection.fields }
|
|
13651
13651
|
);
|
|
@@ -13658,7 +13658,7 @@ async function handleRunGet(args) {
|
|
|
13658
13658
|
timing,
|
|
13659
13659
|
() => client.getRunInput(runId)
|
|
13660
13660
|
);
|
|
13661
|
-
|
|
13661
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13662
13662
|
return 0;
|
|
13663
13663
|
}
|
|
13664
13664
|
const full = args.includes("--full");
|
|
@@ -13671,7 +13671,7 @@ async function handleRunGet(args) {
|
|
|
13671
13671
|
failedLogs: args.includes("--log-failed")
|
|
13672
13672
|
})
|
|
13673
13673
|
);
|
|
13674
|
-
if (status.package)
|
|
13674
|
+
if (status.package) _chunkGW6HV7Z7js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13675
13675
|
if (!status.package) {
|
|
13676
13676
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13677
13677
|
"runs get",
|
|
@@ -13684,8 +13684,8 @@ async function handleRunGet(args) {
|
|
|
13684
13684
|
) : status;
|
|
13685
13685
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13686
13686
|
const legacyDashboardUrl = legacyPlayName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13687
|
-
if (
|
|
13688
|
-
|
|
13687
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
13688
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
13689
13689
|
{
|
|
13690
13690
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13691
13691
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -13695,7 +13695,7 @@ async function handleRunGet(args) {
|
|
|
13695
13695
|
} else {
|
|
13696
13696
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13697
13697
|
if (legacyDashboardUrl)
|
|
13698
|
-
|
|
13698
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
13699
13699
|
{ dashboardUrl: legacyDashboardUrl },
|
|
13700
13700
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
13701
13701
|
` }
|
|
@@ -13725,10 +13725,10 @@ async function handleRunGet(args) {
|
|
|
13725
13725
|
)
|
|
13726
13726
|
]);
|
|
13727
13727
|
const hitLines = formatRunHitsLines(hits);
|
|
13728
|
-
const json =
|
|
13728
|
+
const json = _chunkRI2PLVD4js.argsWantJson.call(void 0, args);
|
|
13729
13729
|
const playName = resolveRunPlayName(status, runId);
|
|
13730
13730
|
const dashboardUrl = playName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13731
|
-
|
|
13731
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
13732
13732
|
{
|
|
13733
13733
|
...overview,
|
|
13734
13734
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13832,9 +13832,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13832
13832
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13833
13833
|
return 1;
|
|
13834
13834
|
}
|
|
13835
|
-
const status = await new (0,
|
|
13836
|
-
if (
|
|
13837
|
-
|
|
13835
|
+
const status = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().runs.status(runId);
|
|
13836
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
13837
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13838
13838
|
return 0;
|
|
13839
13839
|
}
|
|
13840
13840
|
if (!status.available) {
|
|
@@ -13874,7 +13874,7 @@ async function handleRunsRerun(args) {
|
|
|
13874
13874
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13875
13875
|
return 1;
|
|
13876
13876
|
}
|
|
13877
|
-
const options = { json:
|
|
13877
|
+
const options = { json: _chunkRI2PLVD4js.argsWantJson.call(void 0, args) };
|
|
13878
13878
|
for (let index = 0; index < args.length; index += 1) {
|
|
13879
13879
|
if (args[index] === "--idempotency-key") {
|
|
13880
13880
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13940,8 +13940,8 @@ ${usage2}
|
|
|
13940
13940
|
Discover Plays: ${next.discover}
|
|
13941
13941
|
Active runs: ${next.running}`
|
|
13942
13942
|
);
|
|
13943
|
-
if (
|
|
13944
|
-
|
|
13943
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
13944
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
13945
13945
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13946
13946
|
{ json: true }
|
|
13947
13947
|
);
|
|
@@ -13956,7 +13956,7 @@ Active runs: ${next.running}`
|
|
|
13956
13956
|
console.error("--offset requires --play.");
|
|
13957
13957
|
return 1;
|
|
13958
13958
|
}
|
|
13959
|
-
const client = new (0,
|
|
13959
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
13960
13960
|
const page = await withRunReadTiming(
|
|
13961
13961
|
"runs list",
|
|
13962
13962
|
"run inventory",
|
|
@@ -14023,14 +14023,14 @@ Active runs: ${next.running}`
|
|
|
14023
14023
|
return lines2.join("\n");
|
|
14024
14024
|
});
|
|
14025
14025
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14026
|
-
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}${
|
|
14026
|
+
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}${_chunkRI2PLVD4js.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14027
14027
|
if (page.hasMore) {
|
|
14028
14028
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14029
14029
|
lines.push(
|
|
14030
14030
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14031
14031
|
);
|
|
14032
14032
|
}
|
|
14033
|
-
|
|
14033
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
14034
14034
|
{
|
|
14035
14035
|
runs,
|
|
14036
14036
|
count: runs.length,
|
|
@@ -14044,7 +14044,7 @@ Active runs: ${next.running}`
|
|
|
14044
14044
|
},
|
|
14045
14045
|
render: { sections: [{ title: "runs", lines }] }
|
|
14046
14046
|
},
|
|
14047
|
-
{ json:
|
|
14047
|
+
{ json: _chunkRI2PLVD4js.argsWantJson.call(void 0, args) }
|
|
14048
14048
|
);
|
|
14049
14049
|
return 0;
|
|
14050
14050
|
}
|
|
@@ -14074,7 +14074,7 @@ async function handleRunTail(args) {
|
|
|
14074
14074
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14075
14075
|
return 1;
|
|
14076
14076
|
}
|
|
14077
|
-
const parsed =
|
|
14077
|
+
const parsed = _chunk5DEJ3TLBjs.parseLogLevel.call(void 0, value);
|
|
14078
14078
|
if (!parsed) {
|
|
14079
14079
|
console.error(
|
|
14080
14080
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14112,9 +14112,9 @@ async function handleRunTail(args) {
|
|
|
14112
14112
|
);
|
|
14113
14113
|
return 1;
|
|
14114
14114
|
}
|
|
14115
|
-
const client = new (0,
|
|
14115
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
14116
14116
|
const jsonLines = args.includes("--jsonl");
|
|
14117
|
-
const jsonOutput = !jsonLines &&
|
|
14117
|
+
const jsonOutput = !jsonLines && _chunkRI2PLVD4js.argsWantJson.call(void 0, args);
|
|
14118
14118
|
const compact = args.includes("--compact");
|
|
14119
14119
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14120
14120
|
const compactState = {
|
|
@@ -14195,7 +14195,7 @@ async function handleRunLogs(args) {
|
|
|
14195
14195
|
]);
|
|
14196
14196
|
const cursorIndex = args.indexOf("--cursor");
|
|
14197
14197
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14198
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14198
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk5DEJ3TLBjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14199
14199
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14200
14200
|
return handleRunEventSearch(args);
|
|
14201
14201
|
}
|
|
@@ -14229,7 +14229,7 @@ async function handleRunLogs(args) {
|
|
|
14229
14229
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14230
14230
|
return 1;
|
|
14231
14231
|
}
|
|
14232
|
-
const parsed =
|
|
14232
|
+
const parsed = _chunk5DEJ3TLBjs.parseLogLevel.call(void 0, value);
|
|
14233
14233
|
if (!parsed) {
|
|
14234
14234
|
console.error(
|
|
14235
14235
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14276,12 +14276,12 @@ async function handleRunLogs(args) {
|
|
|
14276
14276
|
);
|
|
14277
14277
|
return 1;
|
|
14278
14278
|
}
|
|
14279
|
-
const client = new (0,
|
|
14279
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
14280
14280
|
if (outPath) {
|
|
14281
14281
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14282
|
-
const logs = result2.entries.filter((line) =>
|
|
14282
|
+
const logs = result2.entries.filter((line) => _chunk5DEJ3TLBjs.logLevelReaches.call(void 0, _chunk5DEJ3TLBjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk5DEJ3TLBjs.classifyLogLine.call(void 0, line).line);
|
|
14283
14283
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14284
|
-
|
|
14284
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
14285
14285
|
{
|
|
14286
14286
|
runId: result2.runId,
|
|
14287
14287
|
log_path: outPath,
|
|
@@ -14304,7 +14304,7 @@ async function handleRunLogs(args) {
|
|
|
14304
14304
|
]
|
|
14305
14305
|
}
|
|
14306
14306
|
},
|
|
14307
|
-
{ json:
|
|
14307
|
+
{ json: _chunkRI2PLVD4js.argsWantJson.call(void 0, args) }
|
|
14308
14308
|
);
|
|
14309
14309
|
return 0;
|
|
14310
14310
|
}
|
|
@@ -14335,7 +14335,7 @@ async function handleRunLogs(args) {
|
|
|
14335
14335
|
}
|
|
14336
14336
|
};
|
|
14337
14337
|
const text = buildRunLogsText(filteredResult);
|
|
14338
|
-
|
|
14338
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
14339
14339
|
{
|
|
14340
14340
|
runId: result.runId,
|
|
14341
14341
|
totalCount: result.totalCount,
|
|
@@ -14359,7 +14359,7 @@ async function handleRunLogs(args) {
|
|
|
14359
14359
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14360
14360
|
},
|
|
14361
14361
|
{
|
|
14362
|
-
json:
|
|
14362
|
+
json: _chunkRI2PLVD4js.argsWantJson.call(void 0, args),
|
|
14363
14363
|
text
|
|
14364
14364
|
}
|
|
14365
14365
|
);
|
|
@@ -14383,7 +14383,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14383
14383
|
);
|
|
14384
14384
|
}
|
|
14385
14385
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14386
|
-
(entry) =>
|
|
14386
|
+
(entry) => _chunk5DEJ3TLBjs.logLevelReaches.call(void 0, _chunk5DEJ3TLBjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14387
14387
|
);
|
|
14388
14388
|
const selected = matching.slice(-limit);
|
|
14389
14389
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14393,7 +14393,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14393
14393
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _547 => _547.at, 'call', _548 => _548(-1), 'optionalAccess', _549 => _549.seq]), () => ( null)),
|
|
14394
14394
|
truncated: result.truncated || olderMatchesExist,
|
|
14395
14395
|
hasMore: olderMatchesExist,
|
|
14396
|
-
nextCursor: olderMatchesExist ?
|
|
14396
|
+
nextCursor: olderMatchesExist ? _chunk5DEJ3TLBjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14397
14397
|
};
|
|
14398
14398
|
}
|
|
14399
14399
|
async function handleRunEventSearch(args) {
|
|
@@ -14460,7 +14460,7 @@ ${usage2}`);
|
|
|
14460
14460
|
namespace,
|
|
14461
14461
|
...backend ? { backend } : {}
|
|
14462
14462
|
} : void 0;
|
|
14463
|
-
const client = new (0,
|
|
14463
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
14464
14464
|
const result = await client.runs.searchEvents({
|
|
14465
14465
|
...runId ? { runId } : {},
|
|
14466
14466
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14532,7 +14532,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14532
14532
|
"--limit",
|
|
14533
14533
|
String(limit)
|
|
14534
14534
|
].join(" ") : null;
|
|
14535
|
-
|
|
14535
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
14536
14536
|
{
|
|
14537
14537
|
events,
|
|
14538
14538
|
nextCursor: result.nextCursor,
|
|
@@ -14543,14 +14543,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14543
14543
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14544
14544
|
},
|
|
14545
14545
|
{
|
|
14546
|
-
json:
|
|
14546
|
+
json: _chunkRI2PLVD4js.argsWantJson.call(void 0, args),
|
|
14547
14547
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14548
14548
|
}
|
|
14549
14549
|
);
|
|
14550
14550
|
return 0;
|
|
14551
14551
|
}
|
|
14552
14552
|
function buildRunLogsText(result) {
|
|
14553
|
-
const lines = result.entries.map((line) =>
|
|
14553
|
+
const lines = result.entries.map((line) => _chunk5DEJ3TLBjs.classifyLogLine.call(void 0, line).line);
|
|
14554
14554
|
if (result.warning) {
|
|
14555
14555
|
if (lines.length > 0) lines.push("");
|
|
14556
14556
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14584,7 +14584,7 @@ async function handleRunStop(args) {
|
|
|
14584
14584
|
reason = args[++index];
|
|
14585
14585
|
}
|
|
14586
14586
|
}
|
|
14587
|
-
const client = new (0,
|
|
14587
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
14588
14588
|
const result = await client.runs.stop(runId, { reason });
|
|
14589
14589
|
const state = resolveRunStopState(result);
|
|
14590
14590
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14599,7 +14599,7 @@ async function handleRunStop(args) {
|
|
|
14599
14599
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14600
14600
|
`inspect: deepline runs get ${runId} --full`
|
|
14601
14601
|
];
|
|
14602
|
-
|
|
14602
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
14603
14603
|
{
|
|
14604
14604
|
...cancelling,
|
|
14605
14605
|
state,
|
|
@@ -14614,7 +14614,7 @@ async function handleRunStop(args) {
|
|
|
14614
14614
|
]
|
|
14615
14615
|
}
|
|
14616
14616
|
},
|
|
14617
|
-
{ json:
|
|
14617
|
+
{ json: _chunkRI2PLVD4js.argsWantJson.call(void 0, args) }
|
|
14618
14618
|
);
|
|
14619
14619
|
return 0;
|
|
14620
14620
|
}
|
|
@@ -14631,7 +14631,7 @@ async function handleRunStop(args) {
|
|
|
14631
14631
|
];
|
|
14632
14632
|
process.stderr.write(`${lines2.join("\n")}
|
|
14633
14633
|
`);
|
|
14634
|
-
|
|
14634
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
14635
14635
|
{
|
|
14636
14636
|
...result,
|
|
14637
14637
|
render: {
|
|
@@ -14646,7 +14646,7 @@ async function handleRunStop(args) {
|
|
|
14646
14646
|
]
|
|
14647
14647
|
}
|
|
14648
14648
|
},
|
|
14649
|
-
{ json:
|
|
14649
|
+
{ json: _chunkRI2PLVD4js.argsWantJson.call(void 0, args) }
|
|
14650
14650
|
);
|
|
14651
14651
|
return 1;
|
|
14652
14652
|
}
|
|
@@ -14657,12 +14657,12 @@ async function handleRunStop(args) {
|
|
|
14657
14657
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14658
14658
|
] : []
|
|
14659
14659
|
];
|
|
14660
|
-
|
|
14660
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
14661
14661
|
{
|
|
14662
14662
|
...result,
|
|
14663
14663
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14664
14664
|
},
|
|
14665
|
-
{ json:
|
|
14665
|
+
{ json: _chunkRI2PLVD4js.argsWantJson.call(void 0, args) }
|
|
14666
14666
|
);
|
|
14667
14667
|
return 0;
|
|
14668
14668
|
}
|
|
@@ -14712,18 +14712,18 @@ async function handleRunStopAll(args) {
|
|
|
14712
14712
|
reason = args[++index];
|
|
14713
14713
|
}
|
|
14714
14714
|
}
|
|
14715
|
-
const client = new (0,
|
|
14715
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
14716
14716
|
if (dryRun) {
|
|
14717
14717
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14718
14718
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14719
|
-
|
|
14719
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
14720
14720
|
{
|
|
14721
14721
|
...result2,
|
|
14722
14722
|
render: {
|
|
14723
14723
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14724
14724
|
}
|
|
14725
14725
|
},
|
|
14726
|
-
{ json:
|
|
14726
|
+
{ json: _chunkRI2PLVD4js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14727
14727
|
` }
|
|
14728
14728
|
);
|
|
14729
14729
|
return 0;
|
|
@@ -14736,17 +14736,17 @@ async function handleRunStopAll(args) {
|
|
|
14736
14736
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14737
14737
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14738
14738
|
];
|
|
14739
|
-
|
|
14739
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
14740
14740
|
{
|
|
14741
14741
|
...result,
|
|
14742
14742
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14743
14743
|
},
|
|
14744
|
-
{ json:
|
|
14744
|
+
{ json: _chunkRI2PLVD4js.argsWantJson.call(void 0, args) }
|
|
14745
14745
|
);
|
|
14746
14746
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14747
14747
|
}
|
|
14748
14748
|
async function handleRunExport(args) {
|
|
14749
|
-
const selection =
|
|
14749
|
+
const selection = _chunkRI2PLVD4js.parseJsonFields.call(void 0, args, "export");
|
|
14750
14750
|
args = selection.args;
|
|
14751
14751
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--summary full|counts] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
|
|
14752
14752
|
let runId;
|
|
@@ -14817,17 +14817,17 @@ async function handleRunExport(args) {
|
|
|
14817
14817
|
"INVALID_ARGUMENT"
|
|
14818
14818
|
);
|
|
14819
14819
|
}
|
|
14820
|
-
const client = new (0,
|
|
14820
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
14821
14821
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14822
14822
|
assertRunExportStatusIdentity(status, runId);
|
|
14823
14823
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14824
|
-
const progress =
|
|
14824
|
+
const progress = _chunkFNKSRKTAjs.createCliProgress.call(void 0, !_chunkRI2PLVD4js.argsWantJson.call(void 0, args));
|
|
14825
14825
|
try {
|
|
14826
14826
|
await waitForPlayCompletionByWatch({
|
|
14827
14827
|
client,
|
|
14828
14828
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14829
14829
|
workflowId: runId,
|
|
14830
|
-
jsonOutput:
|
|
14830
|
+
jsonOutput: _chunkRI2PLVD4js.argsWantJson.call(void 0, args),
|
|
14831
14831
|
emitLogs: false,
|
|
14832
14832
|
waitTimeoutMs,
|
|
14833
14833
|
startedAt: Date.now(),
|
|
@@ -14895,7 +14895,7 @@ async function handleRunExport(args) {
|
|
|
14895
14895
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _563 => _563.rowsInfo, 'access', _564 => _564.totalRows]), () => ( null)),
|
|
14896
14896
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14897
14897
|
...rowFailures ? { rowFailures } : {},
|
|
14898
|
-
columns:
|
|
14898
|
+
columns: _chunkGW6HV7Z7js.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _565 => _565.rowsInfo, 'access', _566 => _566.columns]), () => ( []))),
|
|
14899
14899
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14900
14900
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14901
14901
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -14929,8 +14929,8 @@ async function handleRunExport(args) {
|
|
|
14929
14929
|
"utf-8"
|
|
14930
14930
|
);
|
|
14931
14931
|
}
|
|
14932
|
-
|
|
14933
|
-
json:
|
|
14932
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, payload, {
|
|
14933
|
+
json: _chunkRI2PLVD4js.argsWantJson.call(void 0, args),
|
|
14934
14934
|
fields: selection.fields,
|
|
14935
14935
|
text: `${lines.join("\n")}
|
|
14936
14936
|
`
|
|
@@ -14964,10 +14964,10 @@ async function handlePlayGet(args) {
|
|
|
14964
14964
|
);
|
|
14965
14965
|
return 2;
|
|
14966
14966
|
}
|
|
14967
|
-
const client = new (0,
|
|
14967
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
14968
14968
|
const explicitJson = args.includes("--json");
|
|
14969
14969
|
const sourceOutput = args.includes("--source");
|
|
14970
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14970
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkRI2PLVD4js.argsWantJson.call(void 0, args);
|
|
14971
14971
|
const requestedRevisionFlags = [
|
|
14972
14972
|
args.includes("--working"),
|
|
14973
14973
|
args.includes("--live"),
|
|
@@ -15030,7 +15030,7 @@ async function handlePlayGet(args) {
|
|
|
15030
15030
|
}
|
|
15031
15031
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15032
15032
|
if (jsonOutput) {
|
|
15033
|
-
|
|
15033
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, {
|
|
15034
15034
|
...detail,
|
|
15035
15035
|
...materializedFile ? {
|
|
15036
15036
|
message: loadedMessage,
|
|
@@ -15122,8 +15122,8 @@ async function handlePlayVersions(args) {
|
|
|
15122
15122
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15123
15123
|
return 1;
|
|
15124
15124
|
}
|
|
15125
|
-
const client = new (0,
|
|
15126
|
-
const jsonOutput =
|
|
15125
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
15126
|
+
const jsonOutput = _chunkRI2PLVD4js.argsWantJson.call(void 0, args);
|
|
15127
15127
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15128
15128
|
command: "versions"
|
|
15129
15129
|
});
|
|
@@ -15131,7 +15131,7 @@ async function handlePlayVersions(args) {
|
|
|
15131
15131
|
parseReferencedPlayTarget(playName).playName
|
|
15132
15132
|
);
|
|
15133
15133
|
if (jsonOutput) {
|
|
15134
|
-
|
|
15134
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, { versions });
|
|
15135
15135
|
return 0;
|
|
15136
15136
|
}
|
|
15137
15137
|
if (versions.length === 0) {
|
|
@@ -15174,8 +15174,8 @@ async function handlePlayCost(args) {
|
|
|
15174
15174
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
15175
15175
|
return 2;
|
|
15176
15176
|
}
|
|
15177
|
-
const result = await new (0,
|
|
15178
|
-
if (
|
|
15177
|
+
const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
15178
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
15179
15179
|
else
|
|
15180
15180
|
console.log(
|
|
15181
15181
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -15183,9 +15183,9 @@ async function handlePlayCost(args) {
|
|
|
15183
15183
|
return 0;
|
|
15184
15184
|
}
|
|
15185
15185
|
async function handlePlayList(args) {
|
|
15186
|
-
const jsonOutput =
|
|
15186
|
+
const jsonOutput = _chunkRI2PLVD4js.argsWantJson.call(void 0, args);
|
|
15187
15187
|
const showCost = args.includes("--show-cost");
|
|
15188
|
-
const client = new (0,
|
|
15188
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
15189
15189
|
const categoriesIndex = args.indexOf("--categories");
|
|
15190
15190
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _586 => _586[categoriesIndex + 1], 'optionalAccess', _587 => _587.trim, 'call', _588 => _588()]) : void 0;
|
|
15191
15191
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15283,7 +15283,7 @@ async function handlePlayList(args) {
|
|
|
15283
15283
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15284
15284
|
lines.push(`Next page: ${nextPage}`);
|
|
15285
15285
|
}
|
|
15286
|
-
|
|
15286
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
15287
15287
|
{
|
|
15288
15288
|
plays,
|
|
15289
15289
|
count: plays.length,
|
|
@@ -15301,7 +15301,7 @@ async function handlePlayList(args) {
|
|
|
15301
15301
|
}
|
|
15302
15302
|
async function handlePlayPin(args, pinned) {
|
|
15303
15303
|
const target = _optionalChain([args, 'access', _597 => _597.find, 'call', _598 => _598((arg) => !arg.startsWith("-")), 'optionalAccess', _599 => _599.trim, 'call', _600 => _600()]);
|
|
15304
|
-
const jsonOutput =
|
|
15304
|
+
const jsonOutput = _chunkRI2PLVD4js.argsWantJson.call(void 0, args);
|
|
15305
15305
|
const dryRun = args.includes("--dry-run");
|
|
15306
15306
|
if (!target) {
|
|
15307
15307
|
console.error(
|
|
@@ -15319,11 +15319,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15319
15319
|
const name = parsedTarget.playName;
|
|
15320
15320
|
const plan = { name, pinned, dryRun };
|
|
15321
15321
|
if (dryRun) {
|
|
15322
|
-
|
|
15322
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, plan);
|
|
15323
15323
|
return 0;
|
|
15324
15324
|
}
|
|
15325
|
-
const result = await new (0,
|
|
15326
|
-
if (jsonOutput)
|
|
15325
|
+
const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15326
|
+
if (jsonOutput) _chunkRI2PLVD4js.printCompactJson.call(void 0, result);
|
|
15327
15327
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15328
15328
|
return 0;
|
|
15329
15329
|
}
|
|
@@ -15449,12 +15449,12 @@ async function handlePlayGrep(args) {
|
|
|
15449
15449
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15450
15450
|
return 1;
|
|
15451
15451
|
}
|
|
15452
|
-
const client = new (0,
|
|
15452
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
15453
15453
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15454
15454
|
summarizePlayGrepResult
|
|
15455
15455
|
);
|
|
15456
|
-
if (
|
|
15457
|
-
|
|
15456
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
15457
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, {
|
|
15458
15458
|
plays: results,
|
|
15459
15459
|
count: results.length,
|
|
15460
15460
|
query,
|
|
@@ -15477,7 +15477,7 @@ async function handlePlayGrep(args) {
|
|
|
15477
15477
|
return 0;
|
|
15478
15478
|
}
|
|
15479
15479
|
async function handlePlayDescribe(args) {
|
|
15480
|
-
const selection =
|
|
15480
|
+
const selection = _chunkRI2PLVD4js.parseJsonFields.call(void 0, args, "describe");
|
|
15481
15481
|
args = selection.args;
|
|
15482
15482
|
const playName = args[0];
|
|
15483
15483
|
if (!playName) {
|
|
@@ -15511,8 +15511,8 @@ async function handlePlayDescribe(args) {
|
|
|
15511
15511
|
`deepline plays check ${playName}`,
|
|
15512
15512
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15513
15513
|
];
|
|
15514
|
-
if (
|
|
15515
|
-
|
|
15514
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
15515
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, {
|
|
15516
15516
|
ok: false,
|
|
15517
15517
|
error: { message },
|
|
15518
15518
|
next
|
|
@@ -15526,7 +15526,7 @@ async function handlePlayDescribe(args) {
|
|
|
15526
15526
|
}
|
|
15527
15527
|
return 2;
|
|
15528
15528
|
}
|
|
15529
|
-
const client = new (0,
|
|
15529
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
15530
15530
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15531
15531
|
command: "describe"
|
|
15532
15532
|
});
|
|
@@ -15536,9 +15536,9 @@ async function handlePlayDescribe(args) {
|
|
|
15536
15536
|
compact: args.includes("--compact")
|
|
15537
15537
|
}
|
|
15538
15538
|
);
|
|
15539
|
-
if (
|
|
15540
|
-
if (selection.fields)
|
|
15541
|
-
else
|
|
15539
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
15540
|
+
if (selection.fields) _chunkRI2PLVD4js.printJson.call(void 0, play, selection.fields);
|
|
15541
|
+
else _chunkRI2PLVD4js.printCompactJson.call(void 0, play);
|
|
15542
15542
|
return 0;
|
|
15543
15543
|
}
|
|
15544
15544
|
printPlayDescription(play);
|
|
@@ -15560,7 +15560,7 @@ async function handlePlaySave(args) {
|
|
|
15560
15560
|
}
|
|
15561
15561
|
let graph;
|
|
15562
15562
|
try {
|
|
15563
|
-
graph = await
|
|
15563
|
+
graph = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
15564
15564
|
"cli.play_save_bundle_graph",
|
|
15565
15565
|
{ targetKind: "file" },
|
|
15566
15566
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15582,7 +15582,7 @@ async function handlePlaySave(args) {
|
|
|
15582
15582
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15583
15583
|
};
|
|
15584
15584
|
if (options.jsonOutput) {
|
|
15585
|
-
|
|
15585
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, result);
|
|
15586
15586
|
} else {
|
|
15587
15587
|
console.error(result.message);
|
|
15588
15588
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15604,7 +15604,7 @@ async function handlePlaySave(args) {
|
|
|
15604
15604
|
};
|
|
15605
15605
|
if (options.dryRun) {
|
|
15606
15606
|
if (options.jsonOutput) {
|
|
15607
|
-
|
|
15607
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, dryRun);
|
|
15608
15608
|
} else {
|
|
15609
15609
|
console.log(`Dry run: ${playName}`);
|
|
15610
15610
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15613,14 +15613,14 @@ async function handlePlaySave(args) {
|
|
|
15613
15613
|
}
|
|
15614
15614
|
return 0;
|
|
15615
15615
|
}
|
|
15616
|
-
const client = new (0,
|
|
15616
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
15617
15617
|
try {
|
|
15618
|
-
await
|
|
15618
|
+
await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
15619
15619
|
"cli.play_save_compile_manifests",
|
|
15620
15620
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15621
15621
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15622
15622
|
);
|
|
15623
|
-
const saved = await
|
|
15623
|
+
const saved = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
15624
15624
|
"cli.play_save_register_draft",
|
|
15625
15625
|
{ targetKind: "file", playName, artifactHash },
|
|
15626
15626
|
() => client.registerPlayArtifact({
|
|
@@ -15649,7 +15649,7 @@ async function handlePlaySave(args) {
|
|
|
15649
15649
|
}
|
|
15650
15650
|
};
|
|
15651
15651
|
if (options.jsonOutput) {
|
|
15652
|
-
|
|
15652
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, result);
|
|
15653
15653
|
} else {
|
|
15654
15654
|
console.log(
|
|
15655
15655
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15675,7 +15675,7 @@ async function handlePlayPublish(args) {
|
|
|
15675
15675
|
}
|
|
15676
15676
|
const { target: playName, useLatest } = options;
|
|
15677
15677
|
let revisionId = options.revisionId;
|
|
15678
|
-
const client = new (0,
|
|
15678
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
15679
15679
|
if (isFileTarget(playName)) {
|
|
15680
15680
|
if (revisionId || useLatest) {
|
|
15681
15681
|
console.error(
|
|
@@ -15685,7 +15685,7 @@ async function handlePlayPublish(args) {
|
|
|
15685
15685
|
}
|
|
15686
15686
|
let graph;
|
|
15687
15687
|
try {
|
|
15688
|
-
graph = await
|
|
15688
|
+
graph = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
15689
15689
|
"cli.play_publish_bundle_graph",
|
|
15690
15690
|
{ targetKind: "file" },
|
|
15691
15691
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15707,7 +15707,7 @@ async function handlePlayPublish(args) {
|
|
|
15707
15707
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15708
15708
|
};
|
|
15709
15709
|
if (options.jsonOutput) {
|
|
15710
|
-
|
|
15710
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, result3);
|
|
15711
15711
|
} else {
|
|
15712
15712
|
console.error(result3.message);
|
|
15713
15713
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15730,7 +15730,7 @@ async function handlePlayPublish(args) {
|
|
|
15730
15730
|
};
|
|
15731
15731
|
if (options.dryRun) {
|
|
15732
15732
|
if (options.jsonOutput) {
|
|
15733
|
-
|
|
15733
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, dryRun);
|
|
15734
15734
|
} else {
|
|
15735
15735
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15736
15736
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15749,12 +15749,12 @@ async function handlePlayPublish(args) {
|
|
|
15749
15749
|
}
|
|
15750
15750
|
}
|
|
15751
15751
|
try {
|
|
15752
|
-
await
|
|
15752
|
+
await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
15753
15753
|
"cli.play_publish_compile_manifests",
|
|
15754
15754
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15755
15755
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15756
15756
|
);
|
|
15757
|
-
await
|
|
15757
|
+
await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
15758
15758
|
"cli.play_publish_imports",
|
|
15759
15759
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15760
15760
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15763,7 +15763,7 @@ async function handlePlayPublish(args) {
|
|
|
15763
15763
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15764
15764
|
return 1;
|
|
15765
15765
|
}
|
|
15766
|
-
const published = await
|
|
15766
|
+
const published = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
|
|
15767
15767
|
"cli.play_publish_register_root",
|
|
15768
15768
|
{
|
|
15769
15769
|
targetKind: "file",
|
|
@@ -15798,7 +15798,7 @@ async function handlePlayPublish(args) {
|
|
|
15798
15798
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15799
15799
|
};
|
|
15800
15800
|
if (options.jsonOutput) {
|
|
15801
|
-
|
|
15801
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, result2);
|
|
15802
15802
|
} else {
|
|
15803
15803
|
printPublishReceipt({
|
|
15804
15804
|
name: rootPlayName,
|
|
@@ -15829,7 +15829,7 @@ async function handlePlayPublish(args) {
|
|
|
15829
15829
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15830
15830
|
latest: useLatest
|
|
15831
15831
|
};
|
|
15832
|
-
|
|
15832
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, result2);
|
|
15833
15833
|
return 0;
|
|
15834
15834
|
}
|
|
15835
15835
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15853,7 +15853,7 @@ async function handlePlayPublish(args) {
|
|
|
15853
15853
|
revisionId ? { revisionId } : {}
|
|
15854
15854
|
);
|
|
15855
15855
|
if (options.jsonOutput) {
|
|
15856
|
-
|
|
15856
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, result);
|
|
15857
15857
|
} else {
|
|
15858
15858
|
printPublishReceipt({
|
|
15859
15859
|
name: result.name,
|
|
@@ -15893,7 +15893,7 @@ async function handlePlayDelete(args) {
|
|
|
15893
15893
|
);
|
|
15894
15894
|
return 2;
|
|
15895
15895
|
}
|
|
15896
|
-
const client = new (0,
|
|
15896
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
15897
15897
|
let detail;
|
|
15898
15898
|
try {
|
|
15899
15899
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15917,8 +15917,8 @@ async function handlePlayDelete(args) {
|
|
|
15917
15917
|
name: resolvedName,
|
|
15918
15918
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15919
15919
|
};
|
|
15920
|
-
if (
|
|
15921
|
-
|
|
15920
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
15921
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, result2);
|
|
15922
15922
|
} else {
|
|
15923
15923
|
process.stdout.write(
|
|
15924
15924
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15928,8 +15928,8 @@ async function handlePlayDelete(args) {
|
|
|
15928
15928
|
return 0;
|
|
15929
15929
|
}
|
|
15930
15930
|
const result = await client.deletePlay(resolvedName);
|
|
15931
|
-
if (
|
|
15932
|
-
|
|
15931
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
15932
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, result);
|
|
15933
15933
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15934
15934
|
}
|
|
15935
15935
|
if (result.alreadyArchived) {
|
|
@@ -15968,13 +15968,13 @@ async function handlePlayRestore(args) {
|
|
|
15968
15968
|
);
|
|
15969
15969
|
return 2;
|
|
15970
15970
|
}
|
|
15971
|
-
const client = new (0,
|
|
15971
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
15972
15972
|
try {
|
|
15973
15973
|
const result = await client.restorePlay(
|
|
15974
15974
|
parseReferencedPlayTarget(playName).playName
|
|
15975
15975
|
);
|
|
15976
|
-
if (
|
|
15977
|
-
|
|
15976
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
15977
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, result);
|
|
15978
15978
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
15979
15979
|
}
|
|
15980
15980
|
if (result.alreadyActive) {
|
|
@@ -16101,21 +16101,21 @@ Common commands:
|
|
|
16101
16101
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16102
16102
|
}
|
|
16103
16103
|
};
|
|
16104
|
-
|
|
16104
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0, result2, {
|
|
16105
16105
|
json: options.json,
|
|
16106
16106
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16107
16107
|
`
|
|
16108
16108
|
});
|
|
16109
16109
|
return;
|
|
16110
16110
|
}
|
|
16111
|
-
const client = new (0,
|
|
16111
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
16112
16112
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16113
16113
|
throw new Error(
|
|
16114
16114
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16115
16115
|
);
|
|
16116
16116
|
}
|
|
16117
16117
|
const result = await client.startPlayRun(saved.request);
|
|
16118
|
-
|
|
16118
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
16119
16119
|
{ ...result },
|
|
16120
16120
|
{
|
|
16121
16121
|
json: options.json,
|
|
@@ -16151,7 +16151,7 @@ Examples:
|
|
|
16151
16151
|
).action(async (target, options) => {
|
|
16152
16152
|
process.exitCode = await handlePlayCheck([
|
|
16153
16153
|
target,
|
|
16154
|
-
...
|
|
16154
|
+
..._chunkRI2PLVD4js.jsonFieldArgs.call(void 0, options.json),
|
|
16155
16155
|
...options.full ? ["--full"] : []
|
|
16156
16156
|
]);
|
|
16157
16157
|
});
|
|
@@ -16190,10 +16190,10 @@ Notes:
|
|
|
16190
16190
|
--force-tool-refresh re-executes completed tool receipts and may repeat billed
|
|
16191
16191
|
provider calls. It is independent from --force.
|
|
16192
16192
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16193
|
-
resident-work ceiling. Default: ${
|
|
16193
|
+
resident-work ceiling. Default: ${_chunkS4F2R2LOjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkS4F2R2LOjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16194
16194
|
Provider pacing and sandbox memory limits still apply.
|
|
16195
16195
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16196
|
-
resolvers. Accepted range: 1-${
|
|
16196
|
+
resolvers. Accepted range: 1-${_chunkS4F2R2LOjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16197
16197
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16198
16198
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16199
16199
|
Tool calls that would exceed it are denied.
|
|
@@ -16307,10 +16307,10 @@ Examples:
|
|
|
16307
16307
|
"Refresh completed tool receipts; may repeat billed provider calls"
|
|
16308
16308
|
).option(
|
|
16309
16309
|
"--max-concurrent-external-calls <count>",
|
|
16310
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16310
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkS4F2R2LOjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkS4F2R2LOjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16311
16311
|
).option(
|
|
16312
16312
|
"--max-concurrent-rows <count>",
|
|
16313
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16313
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkS4F2R2LOjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16314
16314
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the play page in a browser after the run starts").option(
|
|
16315
16315
|
"--debug-map-latency",
|
|
16316
16316
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16355,14 +16355,14 @@ JSON field selection:
|
|
|
16355
16355
|
passthroughArgs.shift();
|
|
16356
16356
|
}
|
|
16357
16357
|
const exitCode = await handlePlayRun(
|
|
16358
|
-
|
|
16358
|
+
_chunkS4F2R2LOjs.resolvePlayRunCliOptions.call(void 0,
|
|
16359
16359
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16360
16360
|
options,
|
|
16361
16361
|
passthroughArgs,
|
|
16362
|
-
|
|
16362
|
+
_chunkYSB44HZBjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16363
16363
|
)
|
|
16364
16364
|
);
|
|
16365
|
-
|
|
16365
|
+
_chunkYSB44HZBjs.recordCliTrace.call(void 0, {
|
|
16366
16366
|
phase: "cli.play_command_exit",
|
|
16367
16367
|
exitCode
|
|
16368
16368
|
});
|
|
@@ -16411,9 +16411,9 @@ Examples:
|
|
|
16411
16411
|
const limit = Number(options.historyLimit);
|
|
16412
16412
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16413
16413
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16414
|
-
const client = new (0,
|
|
16414
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
16415
16415
|
if (options.binding) {
|
|
16416
|
-
|
|
16416
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0,
|
|
16417
16417
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16418
16418
|
);
|
|
16419
16419
|
return;
|
|
@@ -16421,7 +16421,7 @@ Examples:
|
|
|
16421
16421
|
const result = await client.listPlayTriggerInventory({
|
|
16422
16422
|
cursor: options.cursor
|
|
16423
16423
|
});
|
|
16424
|
-
|
|
16424
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, {
|
|
16425
16425
|
...result,
|
|
16426
16426
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16427
16427
|
});
|
|
@@ -16480,7 +16480,7 @@ Examples:
|
|
|
16480
16480
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16481
16481
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16482
16482
|
}
|
|
16483
|
-
const result = await new (0,
|
|
16483
|
+
const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getPlaysActivity({
|
|
16484
16484
|
timeZone: options.timeZone,
|
|
16485
16485
|
days,
|
|
16486
16486
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16494,7 +16494,7 @@ Examples:
|
|
|
16494
16494
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16495
16495
|
);
|
|
16496
16496
|
}
|
|
16497
|
-
|
|
16497
|
+
_chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
|
|
16498
16498
|
{ ...result },
|
|
16499
16499
|
{
|
|
16500
16500
|
json: Boolean(options.json),
|
|
@@ -16523,7 +16523,7 @@ Examples:
|
|
|
16523
16523
|
false
|
|
16524
16524
|
);
|
|
16525
16525
|
});
|
|
16526
|
-
|
|
16526
|
+
_chunkLM5UIDFAjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16527
16527
|
play,
|
|
16528
16528
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16529
16529
|
);
|
|
@@ -16564,9 +16564,9 @@ Examples:
|
|
|
16564
16564
|
"--json [fields]",
|
|
16565
16565
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16566
16566
|
);
|
|
16567
|
-
|
|
16567
|
+
_chunkGW6HV7Z7js.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16568
16568
|
async (target, options) => {
|
|
16569
|
-
const ownView = () => handlePlayDescribe(
|
|
16569
|
+
const ownView = () => handlePlayDescribe(_chunkRI2PLVD4js.describeArgs.call(void 0, target, options));
|
|
16570
16570
|
const [flagText] = [options.json].filter(
|
|
16571
16571
|
(value) => typeof value === "string"
|
|
16572
16572
|
);
|
|
@@ -16577,7 +16577,7 @@ Examples:
|
|
|
16577
16577
|
process.exitCode = await ownView();
|
|
16578
16578
|
return;
|
|
16579
16579
|
}
|
|
16580
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16580
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-2V7H5LJP.js")));
|
|
16581
16581
|
process.exitCode = await describeAnything(
|
|
16582
16582
|
name,
|
|
16583
16583
|
{
|
|
@@ -16695,7 +16695,7 @@ Examples:
|
|
|
16695
16695
|
deepline plays deployments <deployment-id>
|
|
16696
16696
|
`
|
|
16697
16697
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16698
|
-
async (id, options) => id ?
|
|
16698
|
+
async (id, options) => id ? _chunkSZHNIKTRjs.handleDeploymentGet.call(void 0, id, options) : _chunkSZHNIKTRjs.handleDeploymentsList.call(void 0, options)
|
|
16699
16699
|
);
|
|
16700
16700
|
addPublishHelp(
|
|
16701
16701
|
play.command("publish <target>").description(
|
|
@@ -16830,14 +16830,14 @@ Examples:
|
|
|
16830
16830
|
const limit = Number(options.limit);
|
|
16831
16831
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16832
16832
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16833
|
-
const result = await new (0,
|
|
16833
|
+
const result = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().runs.rowHistory({
|
|
16834
16834
|
playName: options.play,
|
|
16835
16835
|
runId,
|
|
16836
16836
|
tableNamespace: options.dataset,
|
|
16837
16837
|
limit,
|
|
16838
16838
|
cursor: options.cursor
|
|
16839
16839
|
});
|
|
16840
|
-
|
|
16840
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, {
|
|
16841
16841
|
...result,
|
|
16842
16842
|
...result.nextCursor ? {
|
|
16843
16843
|
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`
|
|
@@ -16911,7 +16911,7 @@ Examples:
|
|
|
16911
16911
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16912
16912
|
).action(async (runId, options) => {
|
|
16913
16913
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16914
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16914
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-4G5J5NQP.js")));
|
|
16915
16915
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16916
16916
|
receiptJson: options.json !== void 0
|
|
16917
16917
|
});
|
|
@@ -16919,7 +16919,7 @@ Examples:
|
|
|
16919
16919
|
}
|
|
16920
16920
|
process.exitCode = await handleRunGet([
|
|
16921
16921
|
runId,
|
|
16922
|
-
...
|
|
16922
|
+
..._chunkRI2PLVD4js.jsonFieldArgs.call(void 0, options.json),
|
|
16923
16923
|
...options.webUrl ? ["--web-url"] : [],
|
|
16924
16924
|
...options.full ? ["--full"] : [],
|
|
16925
16925
|
...options.input ? ["--input"] : [],
|
|
@@ -17209,7 +17209,7 @@ Examples:
|
|
|
17209
17209
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17210
17210
|
...options.wait ? ["--wait"] : [],
|
|
17211
17211
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17212
|
-
...
|
|
17212
|
+
..._chunkRI2PLVD4js.jsonFieldArgs.call(void 0, options.json)
|
|
17213
17213
|
]);
|
|
17214
17214
|
});
|
|
17215
17215
|
const share = play.command("share").description(
|
|
@@ -17375,10 +17375,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17375
17375
|
return 2;
|
|
17376
17376
|
}
|
|
17377
17377
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17378
|
-
const status = await new (0,
|
|
17378
|
+
const status = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().getSharePage(name);
|
|
17379
17379
|
const outputStatus = shareStatusForOutput(status);
|
|
17380
|
-
if (
|
|
17381
|
-
|
|
17380
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
17381
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, outputStatus);
|
|
17382
17382
|
return 0;
|
|
17383
17383
|
}
|
|
17384
17384
|
if (!outputStatus.share) {
|
|
@@ -17417,7 +17417,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17417
17417
|
return 2;
|
|
17418
17418
|
}
|
|
17419
17419
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17420
|
-
const client = new (0,
|
|
17420
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
17421
17421
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17422
17422
|
let resolvedVersion;
|
|
17423
17423
|
if (!revisionId) {
|
|
@@ -17448,8 +17448,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17448
17448
|
);
|
|
17449
17449
|
if (!hasCompleted) {
|
|
17450
17450
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17451
|
-
if (
|
|
17452
|
-
|
|
17451
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
17452
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, {
|
|
17453
17453
|
ok: false,
|
|
17454
17454
|
code: "NO_SUCCESSFUL_RUN",
|
|
17455
17455
|
message,
|
|
@@ -17473,8 +17473,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17473
17473
|
};
|
|
17474
17474
|
if (args.includes("--dry-run")) {
|
|
17475
17475
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17476
|
-
if (
|
|
17477
|
-
|
|
17476
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
17477
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, plan);
|
|
17478
17478
|
} else {
|
|
17479
17479
|
console.log(
|
|
17480
17480
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17484,8 +17484,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17484
17484
|
}
|
|
17485
17485
|
const status = await client.publishSharePage(name, request);
|
|
17486
17486
|
const outputStatus = shareStatusForOutput(status);
|
|
17487
|
-
if (
|
|
17488
|
-
|
|
17487
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
17488
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, outputStatus);
|
|
17489
17489
|
return 0;
|
|
17490
17490
|
}
|
|
17491
17491
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17516,9 +17516,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17516
17516
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17517
17517
|
...seoIndexing ? { seoIndexing } : {}
|
|
17518
17518
|
};
|
|
17519
|
-
const status = await new (0,
|
|
17520
|
-
if (
|
|
17521
|
-
|
|
17519
|
+
const status = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().updateSharePage(name, request);
|
|
17520
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
17521
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, status);
|
|
17522
17522
|
return 0;
|
|
17523
17523
|
}
|
|
17524
17524
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17533,7 +17533,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17533
17533
|
return 2;
|
|
17534
17534
|
}
|
|
17535
17535
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17536
|
-
const client = new (0,
|
|
17536
|
+
const client = new (0, _chunkF3TDT57Mjs.DeeplineClient)();
|
|
17537
17537
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17538
17538
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17539
17539
|
if (!revisionId && versionFlag) {
|
|
@@ -17550,8 +17550,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17550
17550
|
revisionId ? { revisionId } : {}
|
|
17551
17551
|
);
|
|
17552
17552
|
const outputStatus = shareStatusForOutput(status);
|
|
17553
|
-
if (
|
|
17554
|
-
|
|
17553
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
17554
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, outputStatus);
|
|
17555
17555
|
return 0;
|
|
17556
17556
|
}
|
|
17557
17557
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17576,9 +17576,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17576
17576
|
return 2;
|
|
17577
17577
|
}
|
|
17578
17578
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17579
|
-
const status = await new (0,
|
|
17580
|
-
if (
|
|
17581
|
-
|
|
17579
|
+
const status = await new (0, _chunkF3TDT57Mjs.DeeplineClient)().unpublishSharePage(name);
|
|
17580
|
+
if (_chunkRI2PLVD4js.argsWantJson.call(void 0, args)) {
|
|
17581
|
+
_chunkRI2PLVD4js.printCompactJson.call(void 0, status);
|
|
17582
17582
|
return 0;
|
|
17583
17583
|
}
|
|
17584
17584
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17653,4 +17653,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17653
17653
|
|
|
17654
17654
|
|
|
17655
17655
|
|
|
17656
|
-
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag =
|
|
17656
|
+
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkS4F2R2LOjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkS4F2R2LOjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
|