deepline 0.3.471 → 0.3.472
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client-core.ts +9 -0
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +7 -0
- package/dist/cli/{auth-MUCIXHJF.mjs → auth-35DAEPHC.mjs} +5 -5
- package/dist/cli/auth-Q5TM66UI.js +41 -0
- package/dist/cli/{billing-BQQNTCTV.js → billing-5ED5X2IO.js} +79 -79
- package/dist/cli/{billing-QGCTDE2N.mjs → billing-CXVBJEC4.mjs} +6 -6
- package/dist/cli/{chunk-RUWBAU6V.js → chunk-2DND7LLL.js} +8 -8
- package/dist/cli/{chunk-WDXJUZCY.js → chunk-2G4R4APL.js} +2 -2
- package/dist/cli/{chunk-ZAF54BQK.mjs → chunk-2S36YV2K.mjs} +1 -1
- package/dist/cli/{chunk-NPJY5QRC.js → chunk-3L76SFGN.js} +53 -53
- package/dist/cli/{chunk-OYHCMKZM.mjs → chunk-4NFBYW7X.mjs} +2 -2
- package/dist/cli/{chunk-FJBGBPYY.mjs → chunk-52VOORHM.mjs} +2 -2
- package/dist/cli/{chunk-MLQJVAVS.js → chunk-5FHU67AT.js} +3 -3
- package/dist/cli/{chunk-SIQV6UYG.mjs → chunk-6PKONIIP.mjs} +4 -4
- package/dist/cli/{chunk-6DTW6JND.js → chunk-6ZTSHKJF.js} +19 -5
- package/dist/cli/{chunk-J2NYCUTK.js → chunk-7KAS4QOW.js} +94 -89
- package/dist/cli/{chunk-IE5KAVTI.mjs → chunk-C5PY2PP6.mjs} +3 -3
- package/dist/cli/{chunk-U5RGCQWJ.mjs → chunk-CFDQZQE2.mjs} +2 -2
- package/dist/cli/{chunk-4OAA43RX.mjs → chunk-FHIO7WI2.mjs} +2 -2
- package/dist/cli/{chunk-NBPNYD54.js → chunk-GJPRBELO.js} +16 -16
- package/dist/cli/{chunk-YRM5TPXL.js → chunk-H7YFUC3J.js} +7 -7
- package/dist/cli/{chunk-KSUGLTX3.js → chunk-HBVT4FW5.js} +6 -6
- package/dist/cli/{chunk-VGIAOWCD.js → chunk-IIQ6O5F3.js} +5 -5
- package/dist/cli/{chunk-ATKFOOVD.mjs → chunk-IPJ27SD2.mjs} +5 -5
- package/dist/cli/{chunk-3PT2HJKC.mjs → chunk-JRZW4LWK.mjs} +1 -1
- package/dist/cli/{chunk-FVGT5EBA.mjs → chunk-KQJHIVCE.mjs} +1 -1
- package/dist/cli/{chunk-DFMFYOML.js → chunk-L3AXQXNT.js} +10 -10
- package/dist/cli/{chunk-CR2F3JZN.js → chunk-LQUOZGM6.js} +51 -51
- package/dist/cli/{chunk-RWCTGSD7.js → chunk-M475BQ77.js} +3 -3
- package/dist/cli/{chunk-K5USD25Z.mjs → chunk-MRZ7AO72.mjs} +10 -10
- package/dist/cli/{chunk-IPFUDUSY.mjs → chunk-NZBZFEVA.mjs} +4 -4
- package/dist/cli/{chunk-TWRK4NOU.js → chunk-ODAARZSK.js} +36 -36
- package/dist/cli/{chunk-ZMJOSD7R.mjs → chunk-OMPW5ELS.mjs} +1 -1
- package/dist/cli/{chunk-4PT2WZD2.js → chunk-QLVYYDUI.js} +26 -26
- package/dist/cli/{chunk-PVEEGJFN.mjs → chunk-QSCLOPWR.mjs} +1 -1
- package/dist/cli/{chunk-VVY3HGFM.mjs → chunk-R6L6JRDR.mjs} +2 -2
- package/dist/cli/{chunk-EHVVDHNU.mjs → chunk-R73LE2IM.mjs} +1 -1
- package/dist/cli/{chunk-FX3QM6WN.js → chunk-RDOPZK7A.js} +3 -3
- package/dist/cli/{chunk-E3WTQ3JI.js → chunk-RMQB72WW.js} +9 -9
- package/dist/cli/{chunk-5QWGL2QO.js → chunk-SBPI7AEB.js} +93 -93
- package/dist/cli/{chunk-VDRGX2XL.js → chunk-SKVMC6K6.js} +5 -5
- package/dist/cli/{chunk-DK5Y5BD3.js → chunk-SYWOSAW7.js} +4 -4
- package/dist/cli/{chunk-EYKMITTY.mjs → chunk-T5H7ETIM.mjs} +4 -4
- package/dist/cli/{chunk-AMUSZHCE.mjs → chunk-TMMODGPV.mjs} +2 -2
- package/dist/cli/{chunk-G6RQXAJ2.js → chunk-UKKCS6Z4.js} +1 -1
- package/dist/cli/{chunk-ZHM7VCKH.js → chunk-UPXGN62E.js} +21 -21
- package/dist/cli/{chunk-DV4V5IWI.mjs → chunk-UXFUD2MB.mjs} +5 -5
- package/dist/cli/{chunk-NLT3CFVJ.js → chunk-VDHDTXCK.js} +2 -2
- package/dist/cli/{chunk-GPSVXVDZ.js → chunk-XSSIBO74.js} +8 -8
- package/dist/cli/{chunk-MV6HL67R.mjs → chunk-YK64LQPQ.mjs} +6 -1
- package/dist/cli/{chunk-RYGJWMWL.mjs → chunk-YMB2CD55.mjs} +1 -1
- package/dist/cli/{chunk-E2SHDT7T.mjs → chunk-YNW47NOJ.mjs} +2 -2
- package/dist/cli/{chunk-V2WMJXU6.mjs → chunk-YUNPYX5T.mjs} +19 -5
- package/dist/cli/{chunk-2KBRY5CA.mjs → chunk-ZZQIS3TH.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-Q6BSRCBJ.mjs → csv-OSDYY3QW.mjs} +4 -4
- package/dist/cli/{csv-UE7RZDUV.js → csv-SQJQM3B2.js} +13 -13
- package/dist/cli/{db-FI6XXB2H.mjs → db-2M6BU6G5.mjs} +6 -6
- package/dist/cli/{db-T7A7EE3D.js → db-ATDYXAD5.js} +27 -27
- package/dist/cli/describe-37QXXDCF.js +48 -0
- package/dist/cli/{describe-4GGU6NU3.mjs → describe-WIAJCWF3.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-S46XI7NX.mjs → executions-2J6CCJL2.mjs} +6 -6
- package/dist/cli/{executions-4I6F5RMS.js → executions-Y32LMYH6.js} +8 -8
- package/dist/cli/{feedback-3LJ7NZE7.mjs → feedback-L4AVIMGI.mjs} +4 -4
- package/dist/cli/{feedback-VEGUNKSP.js → feedback-RXQLS6QU.js} +8 -8
- package/dist/cli/git-JGUR335T.js +25 -0
- package/dist/cli/{git-W7SFD7AA.mjs → git-V3K77AWH.mjs} +5 -5
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-3EMB5SJH.js → legacy-noops-B2KJT4CZ.js} +8 -8
- package/dist/cli/{legacy-noops-FIR5PSHG.mjs → legacy-noops-LOGMYOY5.mjs} +5 -5
- package/dist/cli/{monitors-4DKW25PV.mjs → monitors-5ETSB7S7.mjs} +7 -7
- package/dist/cli/{monitors-53LPJH6R.js → monitors-A5WYUCGD.js} +91 -91
- package/dist/cli/{org-CYLJFX4Q.js → org-7EZDWYKK.js} +72 -72
- package/dist/cli/{org-6ZV2DBGI.mjs → org-BJOAUSXL.mjs} +6 -6
- package/dist/cli/{pages-V3LEXCRL.mjs → pages-3BYGBTVK.mjs} +6 -6
- package/dist/cli/{pages-42E3WIMH.js → pages-45VNTEQU.js} +17 -17
- package/dist/cli/{play-O3OY556F.js → play-5KER3JFU.js} +334 -306
- package/dist/cli/{play-X7REMNNG.mjs → play-R7JQV533.mjs} +47 -19
- package/dist/cli/{providers-NZ7TISS3.js → providers-OHMZ6QIF.js} +9 -9
- package/dist/cli/{providers-L2DJVAXN.mjs → providers-RMFCE6MM.mjs} +6 -6
- package/dist/cli/{quickstart-IKNGAQRO.js → quickstart-GNRE4SAT.js} +6 -6
- package/dist/cli/{quickstart-ROWMAUXQ.mjs → quickstart-IHR4VC5K.mjs} +4 -4
- package/dist/cli/{run-JG6DLOYR.js → run-77QIMUUV.js} +36 -36
- package/dist/cli/{run-PJI577J2.mjs → run-Y4MIRFJY.mjs} +22 -22
- package/dist/cli/{search-DOVJ745X.mjs → search-24YKTHMK.mjs} +7 -7
- package/dist/cli/search-S3VO2UKV.js +32 -0
- package/dist/cli/{secrets-OKDFNCRJ.mjs → secrets-KHX62AWC.mjs} +6 -6
- package/dist/cli/{secrets-R5LWXIG6.js → secrets-SSEBT3IS.js} +15 -15
- package/dist/cli/{sessions-L3DSAY2T.js → sessions-E6KNWYEH.js} +6 -6
- package/dist/cli/{sessions-KX4C2CKS.mjs → sessions-H7T25HGE.mjs} +5 -5
- package/dist/cli/{settings-NKTNNTAP.js → settings-GXUYF5G7.js} +78 -78
- package/dist/cli/{settings-W3SMDBYS.mjs → settings-XSJG6M32.mjs} +11 -11
- package/dist/cli/{setup-7KFKKW2W.mjs → setup-GD7IOD4U.mjs} +9 -9
- package/dist/cli/{setup-5WZEXWQR.js → setup-JP5YPIA4.js} +44 -44
- package/dist/cli/skills-C4KTW3US.js +31 -0
- package/dist/cli/{skills-X5TLATOL.mjs → skills-HLHE3ENN.mjs} +7 -7
- package/dist/cli/tools-KS7JMRK6.js +55 -0
- package/dist/cli/{tools-27J5EOKO.mjs → tools-Q4XIQX7W.mjs} +16 -16
- package/dist/cli/{update-EWL477FJ.mjs → update-3KRMR2QJ.mjs} +9 -9
- package/dist/cli/update-GYTQYK2W.js +33 -0
- package/dist/cli/{workflow-GFNGGHJE.js → workflow-NMUESL3O.js} +17 -17
- package/dist/cli/{workflow-YXR6YMT2.mjs → workflow-NOZ7WFEY.mjs} +7 -7
- package/dist/{client-DitOgp8N.d.mts → client-C9bJ0QXu.d.mts} +1 -1
- package/dist/{client-DIpVmXcj.d.ts → client-CuNH54w3.d.ts} +1 -1
- package/dist/{client-core-k543Fg6D.d.ts → client-core-C8Q6DKga.d.ts} +11 -1
- package/dist/{client-core-COZteOww.d.mts → client-core-CSiXbe2n.d.mts} +11 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +102 -102
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-2MMOFS3O.js +0 -41
- package/dist/cli/describe-UM2VGRY7.js +0 -48
- package/dist/cli/git-EVWKNIUA.js +0 -25
- package/dist/cli/search-RHKW5GSR.js +0 -32
- package/dist/cli/skills-UFAABPCQ.js +0 -31
- package/dist/cli/tools-IVU3BCIY.js +0 -55
- package/dist/cli/update-G7HFHKPG.js +0 -33
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkRMQB72WWjs = require('./chunk-RMQB72WW.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,14 +17,14 @@ var _chunkE3WTQ3JIjs = require('./chunk-E3WTQ3JI.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkRDOPZK7Ajs = require('./chunk-RDOPZK7A.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk2DND7LLLjs = require('./chunk-2DND7LLL.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkQLVYYDUIjs = require('./chunk-QLVYYDUI.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
@@ -52,10 +52,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _chunkIIQ6O5F3js = require('./chunk-IIQ6O5F3.js');
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunkSKVMC6K6js = require('./chunk-SKVMC6K6.js');
|
|
59
59
|
require('./chunk-VKKVSFRD.js');
|
|
60
60
|
|
|
61
61
|
|
|
@@ -69,7 +69,7 @@ require('./chunk-VKKVSFRD.js');
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
var
|
|
72
|
+
var _chunk7KAS4QOWjs = require('./chunk-7KAS4QOW.js');
|
|
73
73
|
require('./chunk-E4CABWXL.js');
|
|
74
74
|
|
|
75
75
|
|
|
@@ -89,18 +89,18 @@ require('./chunk-XDVT3GOM.js');
|
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
var
|
|
92
|
+
var _chunkHBVT4FW5js = require('./chunk-HBVT4FW5.js');
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
99
|
-
require('./chunk-
|
|
98
|
+
var _chunk2G4R4APLjs = require('./chunk-2G4R4APL.js');
|
|
99
|
+
require('./chunk-3L76SFGN.js');
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
var
|
|
103
|
+
var _chunkM475BQ77js = require('./chunk-M475BQ77.js');
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
|
|
@@ -114,17 +114,17 @@ var _chunkRWCTGSD7js = require('./chunk-RWCTGSD7.js');
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
var
|
|
118
|
-
require('./chunk-
|
|
117
|
+
var _chunkH7YFUC3Jjs = require('./chunk-H7YFUC3J.js');
|
|
118
|
+
require('./chunk-5FHU67AT.js');
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
var
|
|
121
|
+
var _chunkSYWOSAW7js = require('./chunk-SYWOSAW7.js');
|
|
122
122
|
require('./chunk-ALJJRZNJ.js');
|
|
123
123
|
require('./chunk-XNYIZMNQ.js');
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
127
|
-
require('./chunk-
|
|
127
|
+
require('./chunk-UKKCS6Z4.js');
|
|
128
128
|
require('./chunk-OG64RBAC.js');
|
|
129
129
|
|
|
130
130
|
|
|
@@ -2106,7 +2106,7 @@ function resolveField(key, command) {
|
|
|
2106
2106
|
function printSettings(result, json, name) {
|
|
2107
2107
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2108
2108
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2109
|
-
|
|
2109
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
2110
2110
|
{
|
|
2111
2111
|
...result,
|
|
2112
2112
|
settings: Object.fromEntries(
|
|
@@ -2150,7 +2150,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2150
2150
|
valueSyntax: field.cli.valueSyntax,
|
|
2151
2151
|
examples: field.cli.examples
|
|
2152
2152
|
}));
|
|
2153
|
-
|
|
2153
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
2154
2154
|
{
|
|
2155
2155
|
fields: descriptions,
|
|
2156
2156
|
render: {
|
|
@@ -2175,7 +2175,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2175
2175
|
async (options, command) => {
|
|
2176
2176
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2177
2177
|
printSettings(
|
|
2178
|
-
await new (0,
|
|
2178
|
+
await new (0, _chunkSKVMC6K6js.DeeplineClient)().getPlaySettings(options.play),
|
|
2179
2179
|
options.json,
|
|
2180
2180
|
options.name
|
|
2181
2181
|
);
|
|
@@ -2206,7 +2206,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2206
2206
|
);
|
|
2207
2207
|
}
|
|
2208
2208
|
if (options.dryRun) {
|
|
2209
|
-
|
|
2209
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
2210
2210
|
{
|
|
2211
2211
|
dryRun: true,
|
|
2212
2212
|
play,
|
|
@@ -2227,7 +2227,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2227
2227
|
return;
|
|
2228
2228
|
}
|
|
2229
2229
|
printSettings(
|
|
2230
|
-
await new (0,
|
|
2230
|
+
await new (0, _chunkSKVMC6K6js.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2231
2231
|
options.json
|
|
2232
2232
|
);
|
|
2233
2233
|
};
|
|
@@ -2253,13 +2253,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2253
2253
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2254
2254
|
{ exitCode: 2 }
|
|
2255
2255
|
);
|
|
2256
|
-
const page = await new (0,
|
|
2256
|
+
const page = await new (0, _chunkSKVMC6K6js.DeeplineClient)().listPlaySettingsPaths({
|
|
2257
2257
|
root: options.root,
|
|
2258
2258
|
limit,
|
|
2259
2259
|
cursor: options.cursor
|
|
2260
2260
|
});
|
|
2261
2261
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2262
|
-
|
|
2262
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
2263
2263
|
{
|
|
2264
2264
|
...page,
|
|
2265
2265
|
nextCommand,
|
|
@@ -2310,7 +2310,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2310
2310
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2311
2311
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2312
2312
|
};
|
|
2313
|
-
const client = new (0,
|
|
2313
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
2314
2314
|
const paths = [];
|
|
2315
2315
|
let cursor;
|
|
2316
2316
|
do {
|
|
@@ -2372,7 +2372,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2372
2372
|
moved.push(move.playName);
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
|
-
|
|
2375
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
2376
2376
|
{
|
|
2377
2377
|
dryRun: Boolean(options.dryRun),
|
|
2378
2378
|
from: options.from,
|
|
@@ -2500,7 +2500,7 @@ function triggerLines(view) {
|
|
|
2500
2500
|
return lines;
|
|
2501
2501
|
}
|
|
2502
2502
|
function printView(view, json) {
|
|
2503
|
-
|
|
2503
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
2504
2504
|
{
|
|
2505
2505
|
...view,
|
|
2506
2506
|
render: {
|
|
@@ -2513,7 +2513,7 @@ function printView(view, json) {
|
|
|
2513
2513
|
);
|
|
2514
2514
|
}
|
|
2515
2515
|
function printResult(result, json) {
|
|
2516
|
-
|
|
2516
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
2517
2517
|
{
|
|
2518
2518
|
...result,
|
|
2519
2519
|
render: {
|
|
@@ -2543,7 +2543,7 @@ async function mutate(command, options, build) {
|
|
|
2543
2543
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2544
2544
|
}
|
|
2545
2545
|
if (options.dryRun) {
|
|
2546
|
-
|
|
2546
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
2547
2547
|
{
|
|
2548
2548
|
dryRun: true,
|
|
2549
2549
|
play: options.play,
|
|
@@ -2562,7 +2562,7 @@ async function mutate(command, options, build) {
|
|
|
2562
2562
|
return;
|
|
2563
2563
|
}
|
|
2564
2564
|
printResult(
|
|
2565
|
-
await new (0,
|
|
2565
|
+
await new (0, _chunkSKVMC6K6js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2566
2566
|
options.json
|
|
2567
2567
|
);
|
|
2568
2568
|
}
|
|
@@ -2595,7 +2595,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2595
2595
|
}).addHelpText("after", help2);
|
|
2596
2596
|
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) => {
|
|
2597
2597
|
printView(
|
|
2598
|
-
await new (0,
|
|
2598
|
+
await new (0, _chunkSKVMC6K6js.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2599
2599
|
options.json
|
|
2600
2600
|
);
|
|
2601
2601
|
});
|
|
@@ -2639,7 +2639,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2639
2639
|
if (options.auth === void 0) {
|
|
2640
2640
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2641
2641
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2642
|
-
const current = await new (0,
|
|
2642
|
+
const current = await new (0, _chunkSKVMC6K6js.DeeplineClient)().getPlayTriggerConfig(
|
|
2643
2643
|
options.play
|
|
2644
2644
|
);
|
|
2645
2645
|
return {
|
|
@@ -2716,7 +2716,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2716
2716
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2717
2717
|
"runtime.event": "Other event."
|
|
2718
2718
|
};
|
|
2719
|
-
var RUN_LOGS_KIND_HELP =
|
|
2719
|
+
var RUN_LOGS_KIND_HELP = _chunk7KAS4QOWjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2720
2720
|
kind,
|
|
2721
2721
|
description: KIND_DESCRIPTIONS[kind]
|
|
2722
2722
|
}));
|
|
@@ -2853,9 +2853,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2853
2853
|
const args = program.args;
|
|
2854
2854
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2855
2855
|
error.exitCode = 2;
|
|
2856
|
-
if (
|
|
2857
|
-
|
|
2858
|
-
Object.assign(new (0,
|
|
2856
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2857
|
+
_chunkH7YFUC3Jjs.printJsonError.call(void 0,
|
|
2858
|
+
Object.assign(new (0, _chunk7KAS4QOWjs.RunEventQueryInputError)(error.message), {
|
|
2859
2859
|
exitCode: 2,
|
|
2860
2860
|
retryable: false
|
|
2861
2861
|
})
|
|
@@ -2899,14 +2899,14 @@ function parseQuery(args, resource) {
|
|
|
2899
2899
|
if (VALUE_FLAGS.has(flag)) {
|
|
2900
2900
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2901
2901
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2902
|
-
throw new (0,
|
|
2902
|
+
throw new (0, _chunk7KAS4QOWjs.RunEventQueryInputError)(
|
|
2903
2903
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2904
2904
|
);
|
|
2905
2905
|
}
|
|
2906
2906
|
if (flag === "--sum") sums.push(value);
|
|
2907
2907
|
else {
|
|
2908
2908
|
if (values[flag] !== void 0) {
|
|
2909
|
-
throw new (0,
|
|
2909
|
+
throw new (0, _chunk7KAS4QOWjs.RunEventQueryInputError)(
|
|
2910
2910
|
`${flag} may only be supplied once.`
|
|
2911
2911
|
);
|
|
2912
2912
|
}
|
|
@@ -2920,12 +2920,12 @@ function parseQuery(args, resource) {
|
|
|
2920
2920
|
}
|
|
2921
2921
|
if (arg.startsWith("-")) {
|
|
2922
2922
|
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.";
|
|
2923
|
-
throw new (0,
|
|
2923
|
+
throw new (0, _chunk7KAS4QOWjs.RunEventQueryInputError)(
|
|
2924
2924
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2925
2925
|
);
|
|
2926
2926
|
}
|
|
2927
2927
|
if (runId !== void 0) {
|
|
2928
|
-
throw new (0,
|
|
2928
|
+
throw new (0, _chunk7KAS4QOWjs.RunEventQueryInputError)(
|
|
2929
2929
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2930
2930
|
);
|
|
2931
2931
|
}
|
|
@@ -2933,7 +2933,7 @@ function parseQuery(args, resource) {
|
|
|
2933
2933
|
}
|
|
2934
2934
|
if (switches.has("--fields")) {
|
|
2935
2935
|
if (runId !== void 0) {
|
|
2936
|
-
throw new (0,
|
|
2936
|
+
throw new (0, _chunk7KAS4QOWjs.RunEventQueryInputError)(
|
|
2937
2937
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2938
2938
|
);
|
|
2939
2939
|
}
|
|
@@ -2946,18 +2946,18 @@ function parseQuery(args, resource) {
|
|
|
2946
2946
|
)
|
|
2947
2947
|
];
|
|
2948
2948
|
if (incompatible.length) {
|
|
2949
|
-
throw new (0,
|
|
2949
|
+
throw new (0, _chunk7KAS4QOWjs.RunEventQueryInputError)(
|
|
2950
2950
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2951
2951
|
);
|
|
2952
2952
|
}
|
|
2953
2953
|
}
|
|
2954
2954
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2955
|
-
throw new (0,
|
|
2955
|
+
throw new (0, _chunk7KAS4QOWjs.RunEventQueryInputError)(
|
|
2956
2956
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2957
2957
|
);
|
|
2958
2958
|
}
|
|
2959
2959
|
if (sums.length && switches.has("--count")) {
|
|
2960
|
-
throw new (0,
|
|
2960
|
+
throw new (0, _chunk7KAS4QOWjs.RunEventQueryInputError)(
|
|
2961
2961
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2962
2962
|
);
|
|
2963
2963
|
}
|
|
@@ -2965,7 +2965,7 @@ function parseQuery(args, resource) {
|
|
|
2965
2965
|
if (operation === "count") {
|
|
2966
2966
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2967
2967
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2968
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunk7KAS4QOWjs.RunEventQueryInputError)(
|
|
2969
2969
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2970
2970
|
);
|
|
2971
2971
|
}
|
|
@@ -3000,16 +3000,16 @@ function parseQuery(args, resource) {
|
|
|
3000
3000
|
];
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
|
-
const request =
|
|
3003
|
+
const request = _chunk7KAS4QOWjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3004
3004
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3005
3005
|
const backend = values["--runtime-backend"];
|
|
3006
3006
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3007
|
-
throw new (0,
|
|
3007
|
+
throw new (0, _chunk7KAS4QOWjs.RunEventQueryInputError)(
|
|
3008
3008
|
"--runtime-backend must be daytona or modal."
|
|
3009
3009
|
);
|
|
3010
3010
|
}
|
|
3011
3011
|
if (backend && !namespace) {
|
|
3012
|
-
throw new (0,
|
|
3012
|
+
throw new (0, _chunk7KAS4QOWjs.RunEventQueryInputError)(
|
|
3013
3013
|
"--runtime-backend requires --runtime-namespace."
|
|
3014
3014
|
);
|
|
3015
3015
|
}
|
|
@@ -3056,12 +3056,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3056
3056
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3057
3057
|
const record3 = failure;
|
|
3058
3058
|
const status = record3.statusCode;
|
|
3059
|
-
const exitCode = error instanceof
|
|
3059
|
+
const exitCode = error instanceof _chunk7KAS4QOWjs.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;
|
|
3060
3060
|
const diagnostic = Object.assign(failure, {
|
|
3061
3061
|
exitCode,
|
|
3062
3062
|
retryable: exitCode === 5
|
|
3063
3063
|
});
|
|
3064
|
-
if (
|
|
3064
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) _chunkH7YFUC3Jjs.printJsonError.call(void 0, diagnostic);
|
|
3065
3065
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3066
3066
|
return exitCode;
|
|
3067
3067
|
}
|
|
@@ -3076,7 +3076,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3076
3076
|
...criteria
|
|
3077
3077
|
} = request;
|
|
3078
3078
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3079
|
-
const client = new (0,
|
|
3079
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
3080
3080
|
let result;
|
|
3081
3081
|
if (request.operation === "fields") {
|
|
3082
3082
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3142,13 +3142,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3142
3142
|
lines.push(`Next page: ${nextPage}`);
|
|
3143
3143
|
}
|
|
3144
3144
|
}
|
|
3145
|
-
|
|
3145
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
3146
3146
|
{
|
|
3147
3147
|
...result,
|
|
3148
3148
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3149
3149
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3150
3150
|
},
|
|
3151
|
-
{ json:
|
|
3151
|
+
{ json: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3152
3152
|
` }
|
|
3153
3153
|
);
|
|
3154
3154
|
return 0;
|
|
@@ -4067,7 +4067,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4067
4067
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4068
4068
|
);
|
|
4069
4069
|
}
|
|
4070
|
-
const response = await new (0,
|
|
4070
|
+
const response = await new (0, _chunkSKVMC6K6js.DeeplineClient)().runs.getReceipts(runId, {
|
|
4071
4071
|
keys
|
|
4072
4072
|
});
|
|
4073
4073
|
const failed = response.receipts.filter(
|
|
@@ -4079,7 +4079,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4079
4079
|
JSON.stringify(response, null, 2) + "\n",
|
|
4080
4080
|
{ flag: "wx", mode: 384 }
|
|
4081
4081
|
);
|
|
4082
|
-
|
|
4082
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
4083
4083
|
{
|
|
4084
4084
|
runId,
|
|
4085
4085
|
out: options.out,
|
|
@@ -4089,7 +4089,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4089
4089
|
{ json: true }
|
|
4090
4090
|
);
|
|
4091
4091
|
} else {
|
|
4092
|
-
|
|
4092
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4093
4093
|
}
|
|
4094
4094
|
if (failed)
|
|
4095
4095
|
process.exitCode = response.receipts.some(
|
|
@@ -4128,7 +4128,7 @@ includes nextCommand when another page is available.
|
|
|
4128
4128
|
{ exitCode: 2 }
|
|
4129
4129
|
);
|
|
4130
4130
|
}
|
|
4131
|
-
const page = await new (0,
|
|
4131
|
+
const page = await new (0, _chunkSKVMC6K6js.DeeplineClient)().runs.children(parentRunId, {
|
|
4132
4132
|
launchKey: options.launchKey,
|
|
4133
4133
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4134
4134
|
limit
|
|
@@ -4143,7 +4143,7 @@ includes nextCommand when another page is available.
|
|
|
4143
4143
|
"--limit",
|
|
4144
4144
|
String(limit)
|
|
4145
4145
|
].join(" ") : null;
|
|
4146
|
-
|
|
4146
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
4147
4147
|
{
|
|
4148
4148
|
parentRunId,
|
|
4149
4149
|
launchKey: options.launchKey,
|
|
@@ -4179,7 +4179,7 @@ async function handleRunsHistory(options) {
|
|
|
4179
4179
|
throw new Error("--limit must be a positive integer.");
|
|
4180
4180
|
}
|
|
4181
4181
|
}
|
|
4182
|
-
const page = await new (0,
|
|
4182
|
+
const page = await new (0, _chunkSKVMC6K6js.DeeplineClient)().runs.history({
|
|
4183
4183
|
cursor: options.cursor,
|
|
4184
4184
|
orgId: options.org,
|
|
4185
4185
|
search: options.search,
|
|
@@ -4195,7 +4195,7 @@ async function handleRunsHistory(options) {
|
|
|
4195
4195
|
);
|
|
4196
4196
|
}
|
|
4197
4197
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4198
|
-
|
|
4198
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
4199
4199
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4200
4200
|
options.json ? { json: true } : {}
|
|
4201
4201
|
);
|
|
@@ -4247,12 +4247,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4247
4247
|
return 1;
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
4250
|
-
const result = await new (0,
|
|
4250
|
+
const result = await new (0, _chunkSKVMC6K6js.DeeplineClient)().runs.rerun(runId, {
|
|
4251
4251
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4252
4252
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4253
4253
|
});
|
|
4254
|
-
if (
|
|
4255
|
-
|
|
4254
|
+
if (_chunkH7YFUC3Jjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4255
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4256
4256
|
} else if (result.rateLimited) {
|
|
4257
4257
|
console.log(`
|
|
4258
4258
|
${result.rateLimited.message}`);
|
|
@@ -5076,13 +5076,13 @@ var RunDataset = class _RunDataset {
|
|
|
5076
5076
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5077
5077
|
_fs.writeFileSync.call(void 0,
|
|
5078
5078
|
absolutePath,
|
|
5079
|
-
`${JSON.stringify(
|
|
5079
|
+
`${JSON.stringify(_chunkRDOPZK7Ajs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5080
5080
|
`,
|
|
5081
5081
|
"utf-8"
|
|
5082
5082
|
);
|
|
5083
5083
|
return absolutePath;
|
|
5084
5084
|
}
|
|
5085
|
-
return
|
|
5085
|
+
return _chunkRDOPZK7Ajs.writeRunDatasetCsv.call(void 0, {
|
|
5086
5086
|
rows: this.rows,
|
|
5087
5087
|
columns: this.#info.columns,
|
|
5088
5088
|
outPath
|
|
@@ -6802,7 +6802,7 @@ function renderOutcome(outcome) {
|
|
|
6802
6802
|
function printResult2(input) {
|
|
6803
6803
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6804
6804
|
if (failed) process.exitCode = 1;
|
|
6805
|
-
|
|
6805
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
6806
6806
|
{
|
|
6807
6807
|
deployment: { ...input.deployment, status: input.status },
|
|
6808
6808
|
plays: input.outcomes,
|
|
@@ -6827,7 +6827,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6827
6827
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6828
6828
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6829
6829
|
});
|
|
6830
|
-
const { http, config } =
|
|
6830
|
+
const { http, config } = _chunkH7YFUC3Jjs.getAuthedHttpClient.call(void 0, );
|
|
6831
6831
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6832
6832
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6833
6833
|
deliveryId,
|
|
@@ -6854,7 +6854,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6854
6854
|
},
|
|
6855
6855
|
{
|
|
6856
6856
|
bundle: bundleDeployPlayFile,
|
|
6857
|
-
fetchImpl:
|
|
6857
|
+
fetchImpl: _chunkSYWOSAW7js.fetchWithDeploymentProtection,
|
|
6858
6858
|
// The plays are already here: "opening" the source is naming it.
|
|
6859
6859
|
openSource: async () => ({
|
|
6860
6860
|
open: async () => ({ repoRoot: root })
|
|
@@ -6980,7 +6980,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6980
6980
|
// src/cli/renderers/local-play-execution.ts
|
|
6981
6981
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6982
6982
|
if (options.dryRun) {
|
|
6983
|
-
|
|
6983
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6984
6984
|
return;
|
|
6985
6985
|
}
|
|
6986
6986
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7152,7 +7152,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7152
7152
|
const startedAt = Date.now();
|
|
7153
7153
|
try {
|
|
7154
7154
|
const result = run();
|
|
7155
|
-
|
|
7155
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
7156
7156
|
phase,
|
|
7157
7157
|
ms: Date.now() - startedAt,
|
|
7158
7158
|
ok: true,
|
|
@@ -7160,7 +7160,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7160
7160
|
});
|
|
7161
7161
|
return result;
|
|
7162
7162
|
} catch (error) {
|
|
7163
|
-
|
|
7163
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
7164
7164
|
phase,
|
|
7165
7165
|
ms: Date.now() - startedAt,
|
|
7166
7166
|
ok: false,
|
|
@@ -7947,7 +7947,7 @@ function playStatusErrorText(status) {
|
|
|
7947
7947
|
function isRetryablePendingStartFailure(status) {
|
|
7948
7948
|
if (status.status !== "failed") return false;
|
|
7949
7949
|
if (status.runId && status.runId !== "pending") return false;
|
|
7950
|
-
return
|
|
7950
|
+
return _chunk7KAS4QOWjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7951
7951
|
}
|
|
7952
7952
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7953
7953
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -7996,13 +7996,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
7996
7996
|
}, _class);
|
|
7997
7997
|
function watchSurfaceReaches(state, provenance, level) {
|
|
7998
7998
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
7999
|
-
if (!
|
|
7999
|
+
if (!_chunk7KAS4QOWjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8000
8000
|
return false;
|
|
8001
8001
|
}
|
|
8002
|
-
if (
|
|
8002
|
+
if (_chunk7KAS4QOWjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8003
8003
|
return true;
|
|
8004
8004
|
}
|
|
8005
|
-
return state.verbose === true &&
|
|
8005
|
+
return state.verbose === true && _chunk7KAS4QOWjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8006
8006
|
}
|
|
8007
8007
|
function getEventPayload(event) {
|
|
8008
8008
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8504,7 +8504,7 @@ function resolveRunPlayName(status, runId) {
|
|
|
8504
8504
|
}
|
|
8505
8505
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
8506
8506
|
if (open2 && dashboardUrl) {
|
|
8507
|
-
|
|
8507
|
+
_chunkH7YFUC3Jjs.openInBrowser.call(void 0, dashboardUrl);
|
|
8508
8508
|
}
|
|
8509
8509
|
}
|
|
8510
8510
|
function printPlayLogLines(input) {
|
|
@@ -8581,7 +8581,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8581
8581
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8582
8582
|
});
|
|
8583
8583
|
} catch (error) {
|
|
8584
|
-
if (
|
|
8584
|
+
if (_chunk7KAS4QOWjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8585
8585
|
return null;
|
|
8586
8586
|
}
|
|
8587
8587
|
throw error;
|
|
@@ -8661,9 +8661,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8661
8661
|
signal: controller.signal,
|
|
8662
8662
|
deferLogs: !input.emitLogs,
|
|
8663
8663
|
omitTerminalLogs: !input.emitLogs,
|
|
8664
|
-
...
|
|
8664
|
+
..._chunk2G4R4APLjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8665
8665
|
onPoll: (observation) => {
|
|
8666
|
-
|
|
8666
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
8667
8667
|
phase: "play_watch_poll",
|
|
8668
8668
|
workflowId: input.workflowId,
|
|
8669
8669
|
ms: observation.durationMs,
|
|
@@ -8677,7 +8677,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8677
8677
|
full: input.fullJson,
|
|
8678
8678
|
billing: false,
|
|
8679
8679
|
onStatus: async (status) => {
|
|
8680
|
-
|
|
8680
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
8681
8681
|
phase: "play_watch_terminal_status",
|
|
8682
8682
|
workflowId: input.workflowId,
|
|
8683
8683
|
full: input.fullJson === true
|
|
@@ -8747,7 +8747,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8747
8747
|
});
|
|
8748
8748
|
} catch (error) {
|
|
8749
8749
|
if (!(error instanceof _chunkJDMR33HSjs.CliPlayAdmissionUnsupportedError)) throw error;
|
|
8750
|
-
await
|
|
8750
|
+
await _chunkHBVT4FW5js.checkPlayRunCompatibility.call(void 0,
|
|
8751
8751
|
input.client.baseUrl,
|
|
8752
8752
|
input.maintenancePolicy
|
|
8753
8753
|
);
|
|
@@ -8795,7 +8795,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8795
8795
|
}
|
|
8796
8796
|
openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
|
|
8797
8797
|
input.progress.phase("running");
|
|
8798
|
-
|
|
8798
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
8799
8799
|
phase: "cli.play_start_admitted",
|
|
8800
8800
|
ms: Date.now() - startedAt,
|
|
8801
8801
|
ok: true,
|
|
@@ -8812,7 +8812,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8812
8812
|
startedAt,
|
|
8813
8813
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8814
8814
|
});
|
|
8815
|
-
const initialStatus =
|
|
8815
|
+
const initialStatus = _chunk7KAS4QOWjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8816
8816
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8817
8817
|
client: input.client,
|
|
8818
8818
|
status: initialStatus,
|
|
@@ -8820,7 +8820,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8820
8820
|
jsonOutput: input.jsonOutput,
|
|
8821
8821
|
fromDurableStatus: true
|
|
8822
8822
|
});
|
|
8823
|
-
|
|
8823
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
8824
8824
|
phase: "play_watch_terminal_status",
|
|
8825
8825
|
workflowId,
|
|
8826
8826
|
full: true,
|
|
@@ -8875,7 +8875,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8875
8875
|
);
|
|
8876
8876
|
} catch (error) {
|
|
8877
8877
|
if (error instanceof _chunkJDMR33HSjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
8878
|
-
await
|
|
8878
|
+
await _chunkHBVT4FW5js.checkPlayRunCompatibility.call(void 0,
|
|
8879
8879
|
input.client.baseUrl,
|
|
8880
8880
|
input.maintenancePolicy
|
|
8881
8881
|
);
|
|
@@ -8902,7 +8902,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8902
8902
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
8903
8903
|
);
|
|
8904
8904
|
}
|
|
8905
|
-
|
|
8905
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
8906
8906
|
phase: "cli.play_start_stream_retry",
|
|
8907
8907
|
ms: 0,
|
|
8908
8908
|
ok: true,
|
|
@@ -8923,7 +8923,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8923
8923
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
8924
8924
|
);
|
|
8925
8925
|
}
|
|
8926
|
-
|
|
8926
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
8927
8927
|
phase: "cli.play_start_stream_retry",
|
|
8928
8928
|
ms: 0,
|
|
8929
8929
|
ok: true,
|
|
@@ -8968,7 +8968,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
8968
8968
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
8969
8969
|
launchConfirmed = true;
|
|
8970
8970
|
await _optionalChain([input, 'access', _312 => _312.onRunAdmitted, 'optionalCall', _313 => _313(runId)]);
|
|
8971
|
-
|
|
8971
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
8972
8972
|
phase: "cli.play_start_admitted",
|
|
8973
8973
|
ms: Date.now() - startedAt,
|
|
8974
8974
|
ok: true,
|
|
@@ -9002,7 +9002,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9002
9002
|
full: input.fullJson
|
|
9003
9003
|
});
|
|
9004
9004
|
} catch (error) {
|
|
9005
|
-
if (
|
|
9005
|
+
if (_chunk7KAS4QOWjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9006
9006
|
return null;
|
|
9007
9007
|
}
|
|
9008
9008
|
throw error;
|
|
@@ -9140,7 +9140,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9140
9140
|
};
|
|
9141
9141
|
}
|
|
9142
9142
|
if (!canonicalTerminal) {
|
|
9143
|
-
|
|
9143
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
9144
9144
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9145
9145
|
ms: Date.now() - startedAt,
|
|
9146
9146
|
ok: true,
|
|
@@ -9161,14 +9161,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9161
9161
|
fromDurableStatus
|
|
9162
9162
|
}) : canonicalTerminal;
|
|
9163
9163
|
if (input.fullJson === true) {
|
|
9164
|
-
|
|
9164
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
9165
9165
|
phase: "play_watch_terminal_status",
|
|
9166
9166
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9167
9167
|
full: true,
|
|
9168
9168
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9169
9169
|
});
|
|
9170
9170
|
}
|
|
9171
|
-
|
|
9171
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
9172
9172
|
phase: "cli.play_start_stream_terminal",
|
|
9173
9173
|
ms: Date.now() - startedAt,
|
|
9174
9174
|
ok: true,
|
|
@@ -9188,7 +9188,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9188
9188
|
clearTimeout(timeout);
|
|
9189
9189
|
}
|
|
9190
9190
|
controller.abort();
|
|
9191
|
-
|
|
9191
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
9192
9192
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9193
9193
|
ms: Date.now() - startedAt,
|
|
9194
9194
|
ok: true,
|
|
@@ -9219,7 +9219,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9219
9219
|
if (timedOut) {
|
|
9220
9220
|
const terminal = await fetchKnownTerminalStatus();
|
|
9221
9221
|
if (terminal) {
|
|
9222
|
-
|
|
9222
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
9223
9223
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9224
9224
|
ms: Date.now() - startedAt,
|
|
9225
9225
|
ok: true,
|
|
@@ -9239,7 +9239,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9239
9239
|
lastPhase
|
|
9240
9240
|
});
|
|
9241
9241
|
}
|
|
9242
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9242
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunk7KAS4QOWjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9243
9243
|
if (timeout) {
|
|
9244
9244
|
clearTimeout(timeout);
|
|
9245
9245
|
}
|
|
@@ -9250,7 +9250,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9250
9250
|
`
|
|
9251
9251
|
);
|
|
9252
9252
|
}
|
|
9253
|
-
|
|
9253
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
9254
9254
|
phase: "cli.play_start_stream_reconnect",
|
|
9255
9255
|
ms: Date.now() - startedAt,
|
|
9256
9256
|
ok: true,
|
|
@@ -9277,7 +9277,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9277
9277
|
});
|
|
9278
9278
|
}
|
|
9279
9279
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9280
|
-
|
|
9280
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
9281
9281
|
phase: "cli.play_start_stream_transient_failure",
|
|
9282
9282
|
ms: Date.now() - startedAt,
|
|
9283
9283
|
ok: false,
|
|
@@ -9305,7 +9305,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9305
9305
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9306
9306
|
);
|
|
9307
9307
|
}
|
|
9308
|
-
|
|
9308
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
9309
9309
|
phase: "cli.play_start_stream_reconnect",
|
|
9310
9310
|
ms: Date.now() - startedAt,
|
|
9311
9311
|
ok: true,
|
|
@@ -9385,7 +9385,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9385
9385
|
"logs"
|
|
9386
9386
|
]);
|
|
9387
9387
|
function formatPlayLogLine(rawLine, state) {
|
|
9388
|
-
const classified =
|
|
9388
|
+
const classified = _chunk7KAS4QOWjs.classifyLogLine.call(void 0, rawLine);
|
|
9389
9389
|
const line = classified.line;
|
|
9390
9390
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9391
9391
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _318 => _318[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9400,14 +9400,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9400
9400
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9401
9401
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9402
9402
|
if (providerWait && !state.verbose) {
|
|
9403
|
-
return
|
|
9403
|
+
return _chunk7KAS4QOWjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9404
9404
|
}
|
|
9405
9405
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9406
9406
|
if (mapProgress && !state.verbose) {
|
|
9407
|
-
return
|
|
9407
|
+
return _chunk7KAS4QOWjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9408
9408
|
}
|
|
9409
9409
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9410
|
-
if (!
|
|
9410
|
+
if (!_chunk7KAS4QOWjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9411
9411
|
return null;
|
|
9412
9412
|
}
|
|
9413
9413
|
if (state.emittedRunnerStarted) {
|
|
@@ -9420,7 +9420,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9420
9420
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9421
9421
|
);
|
|
9422
9422
|
if (mapStart) {
|
|
9423
|
-
if (!
|
|
9423
|
+
if (!_chunk7KAS4QOWjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9424
9424
|
return null;
|
|
9425
9425
|
}
|
|
9426
9426
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9430,7 +9430,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9430
9430
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9431
9431
|
);
|
|
9432
9432
|
if (mapDone) {
|
|
9433
|
-
if (!
|
|
9433
|
+
if (!_chunk7KAS4QOWjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9434
9434
|
return null;
|
|
9435
9435
|
}
|
|
9436
9436
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10719,7 +10719,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10719
10719
|
(line) => typeof line === "string"
|
|
10720
10720
|
);
|
|
10721
10721
|
if (tail.length === 0) return [];
|
|
10722
|
-
const shown = tail.map((line) =>
|
|
10722
|
+
const shown = tail.map((line) => _chunk7KAS4QOWjs.classifyLogLine.call(void 0, line)).filter(
|
|
10723
10723
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10724
10724
|
).slice(-8);
|
|
10725
10725
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11014,11 +11014,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11014
11014
|
}
|
|
11015
11015
|
function writePlayResult(status, jsonOutput, options) {
|
|
11016
11016
|
const packaged = getPlayRunPackage(status);
|
|
11017
|
-
if (status.package)
|
|
11017
|
+
if (status.package) _chunkRDOPZK7Ajs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11018
11018
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _401 => _401.hits]), () => ( null));
|
|
11019
11019
|
if (jsonOutput) {
|
|
11020
11020
|
const payload2 = _optionalChain([options, 'optionalAccess', _402 => _402.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11021
|
-
|
|
11021
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
11022
11022
|
hits ? { ...payload2, hits } : payload2,
|
|
11023
11023
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _403 => _403.jsonFields]) }
|
|
11024
11024
|
);
|
|
@@ -11034,7 +11034,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11034
11034
|
...buildPlayCompletionTextLines(status),
|
|
11035
11035
|
...formatRunHitsLines(hits)
|
|
11036
11036
|
];
|
|
11037
|
-
|
|
11037
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11038
11038
|
json: false,
|
|
11039
11039
|
text: `${lines2.join("\n")}
|
|
11040
11040
|
`
|
|
@@ -11085,7 +11085,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11085
11085
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11086
11086
|
const compact = compactPlayStatus(status);
|
|
11087
11087
|
const payload = _optionalChain([options, 'optionalAccess', _405 => _405.fullJson]) ? status : compact;
|
|
11088
|
-
|
|
11088
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
11089
11089
|
{
|
|
11090
11090
|
...payload,
|
|
11091
11091
|
render: {
|
|
@@ -11294,7 +11294,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11294
11294
|
}
|
|
11295
11295
|
offset += page.rows.length;
|
|
11296
11296
|
}
|
|
11297
|
-
const withError =
|
|
11297
|
+
const withError = _chunkRDOPZK7Ajs.tableExportHasFailedRows.call(void 0,
|
|
11298
11298
|
sheetRows.filter(
|
|
11299
11299
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11300
11300
|
)
|
|
@@ -11310,7 +11310,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11310
11310
|
return [
|
|
11311
11311
|
withError ? {
|
|
11312
11312
|
...exported,
|
|
11313
|
-
[
|
|
11313
|
+
[_chunkRDOPZK7Ajs.TABLE_EXPORT_ERROR_COLUMN]: _chunkRDOPZK7Ajs.tableExportErrorCell.call(void 0,
|
|
11314
11314
|
row
|
|
11315
11315
|
)
|
|
11316
11316
|
} : exported
|
|
@@ -11845,7 +11845,7 @@ function renderServerResultView(value) {
|
|
|
11845
11845
|
function writeStartedPlayRun(input) {
|
|
11846
11846
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
11847
11847
|
const run = input.package.run;
|
|
11848
|
-
|
|
11848
|
+
_chunkRDOPZK7Ajs.recordPlayTermination.call(void 0, {
|
|
11849
11849
|
id: run.id,
|
|
11850
11850
|
status: run.status,
|
|
11851
11851
|
finishedAt: run.finishedAt
|
|
@@ -11858,7 +11858,7 @@ function writeStartedPlayRun(input) {
|
|
|
11858
11858
|
dashboardUrl: input.dashboardUrl,
|
|
11859
11859
|
package: input.package
|
|
11860
11860
|
};
|
|
11861
|
-
|
|
11861
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
11862
11862
|
json: true,
|
|
11863
11863
|
fields: input.jsonFields
|
|
11864
11864
|
});
|
|
@@ -11880,7 +11880,7 @@ function writeStartedPlayRun(input) {
|
|
|
11880
11880
|
input.progress.writeLine(output2, process.stdout);
|
|
11881
11881
|
return;
|
|
11882
11882
|
}
|
|
11883
|
-
|
|
11883
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, input.package, {
|
|
11884
11884
|
json: false,
|
|
11885
11885
|
text: `${output2}
|
|
11886
11886
|
`
|
|
@@ -11909,7 +11909,7 @@ function writeStartedPlayRun(input) {
|
|
|
11909
11909
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
11910
11910
|
];
|
|
11911
11911
|
if (input.jsonOutput) {
|
|
11912
|
-
|
|
11912
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
11913
11913
|
return;
|
|
11914
11914
|
}
|
|
11915
11915
|
if (input.dashboardUrl) {
|
|
@@ -11920,7 +11920,7 @@ function writeStartedPlayRun(input) {
|
|
|
11920
11920
|
input.progress.writeLine(output, process.stdout);
|
|
11921
11921
|
return;
|
|
11922
11922
|
}
|
|
11923
|
-
|
|
11923
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
11924
11924
|
{
|
|
11925
11925
|
...payload,
|
|
11926
11926
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -11930,7 +11930,7 @@ function writeStartedPlayRun(input) {
|
|
|
11930
11930
|
);
|
|
11931
11931
|
}
|
|
11932
11932
|
function parsePlayCheckOptions(args) {
|
|
11933
|
-
const selection =
|
|
11933
|
+
const selection = _chunkH7YFUC3Jjs.parseJsonFields.call(void 0, args, "check");
|
|
11934
11934
|
args = selection.args;
|
|
11935
11935
|
const target = args[0];
|
|
11936
11936
|
if (!target || target.startsWith("-")) {
|
|
@@ -11942,7 +11942,7 @@ function parsePlayCheckOptions(args) {
|
|
|
11942
11942
|
if (arg !== "--json" && arg !== "--full")
|
|
11943
11943
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
11944
11944
|
}
|
|
11945
|
-
const jsonOutput =
|
|
11945
|
+
const jsonOutput = _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args);
|
|
11946
11946
|
return {
|
|
11947
11947
|
target,
|
|
11948
11948
|
jsonOutput,
|
|
@@ -12018,7 +12018,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12018
12018
|
useLatest,
|
|
12019
12019
|
expectedArtifactHash,
|
|
12020
12020
|
dryRun,
|
|
12021
|
-
jsonOutput:
|
|
12021
|
+
jsonOutput: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)
|
|
12022
12022
|
};
|
|
12023
12023
|
}
|
|
12024
12024
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12059,7 +12059,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12059
12059
|
target,
|
|
12060
12060
|
expectedArtifactHash,
|
|
12061
12061
|
dryRun,
|
|
12062
|
-
jsonOutput:
|
|
12062
|
+
jsonOutput: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)
|
|
12063
12063
|
};
|
|
12064
12064
|
}
|
|
12065
12065
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12270,7 +12270,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12270
12270
|
async function handlePlayCheck(args) {
|
|
12271
12271
|
const options = parsePlayCheckOptions(args);
|
|
12272
12272
|
if (!isFileTarget(options.target)) {
|
|
12273
|
-
const client = new (0,
|
|
12273
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
12274
12274
|
try {
|
|
12275
12275
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12276
12276
|
command: "check"
|
|
@@ -12299,7 +12299,7 @@ async function handlePlayCheck(args) {
|
|
|
12299
12299
|
},
|
|
12300
12300
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12301
12301
|
};
|
|
12302
|
-
|
|
12302
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, result, {
|
|
12303
12303
|
json: options.jsonOutput,
|
|
12304
12304
|
fields: options.jsonFields,
|
|
12305
12305
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12309,7 +12309,7 @@ async function handlePlayCheck(args) {
|
|
|
12309
12309
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12310
12310
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12311
12311
|
if (options.jsonOutput) {
|
|
12312
|
-
|
|
12312
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
12313
12313
|
{
|
|
12314
12314
|
kind: "play_check",
|
|
12315
12315
|
checked: "named_contract",
|
|
@@ -12351,7 +12351,7 @@ async function handlePlayCheck(args) {
|
|
|
12351
12351
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12352
12352
|
publishCommand: _optionalChain([primary, 'optionalAccess', _455 => _455.result, 'access', _456 => _456.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12353
12353
|
});
|
|
12354
|
-
|
|
12354
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, output, {
|
|
12355
12355
|
json: options.jsonOutput,
|
|
12356
12356
|
fields: options.jsonFields,
|
|
12357
12357
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12405,7 +12405,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12405
12405
|
}
|
|
12406
12406
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12407
12407
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12408
|
-
const client = new (0,
|
|
12408
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
12409
12409
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12410
12410
|
const checked = await checkLocalPlayGraph({
|
|
12411
12411
|
client,
|
|
@@ -12458,11 +12458,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12458
12458
|
throw new Error("Expected a file-backed play run target.");
|
|
12459
12459
|
}
|
|
12460
12460
|
let client;
|
|
12461
|
-
let cliAdmission =
|
|
12461
|
+
let cliAdmission = _chunkHBVT4FW5js.usesInlinePlayAdmission.call(void 0,
|
|
12462
12462
|
"plays run",
|
|
12463
12463
|
process.argv.slice(2)
|
|
12464
12464
|
);
|
|
12465
|
-
const progress = _nullishCoalesce(
|
|
12465
|
+
const progress = _nullishCoalesce(_chunkM475BQ77js.getActiveCliProgress.call(void 0, ), () => ( _chunkM475BQ77js.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12466
12466
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12467
12467
|
progress.phase("compiling play");
|
|
12468
12468
|
const sourceCode = traceCliSync(
|
|
@@ -12479,7 +12479,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12479
12479
|
}
|
|
12480
12480
|
let graph;
|
|
12481
12481
|
try {
|
|
12482
|
-
graph = await
|
|
12482
|
+
graph = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
12483
12483
|
"cli.play_file_bundle_graph",
|
|
12484
12484
|
{ targetKind: "file" },
|
|
12485
12485
|
() => collectBundledPlayGraph(
|
|
@@ -12493,14 +12493,14 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12493
12493
|
if (options.dryRun) {
|
|
12494
12494
|
progress.complete();
|
|
12495
12495
|
renderLocalPlayExecutionPlan(
|
|
12496
|
-
|
|
12496
|
+
_chunkIIQ6O5F3js.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
|
|
12497
12497
|
{ dryRun: true, json: options.jsonOutput }
|
|
12498
12498
|
);
|
|
12499
12499
|
return 0;
|
|
12500
12500
|
}
|
|
12501
|
-
client = new (0,
|
|
12501
|
+
client = new (0, _chunkSKVMC6K6js.DeeplineClient)(playRunClientOptions(options));
|
|
12502
12502
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12503
|
-
await
|
|
12503
|
+
await _chunkHBVT4FW5js.checkPlayRunCompatibility.call(void 0,
|
|
12504
12504
|
client.baseUrl,
|
|
12505
12505
|
options.maintenancePolicy
|
|
12506
12506
|
);
|
|
@@ -12513,7 +12513,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12513
12513
|
});
|
|
12514
12514
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12515
12515
|
if (canDeferCompilerManifest) {
|
|
12516
|
-
|
|
12516
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
12517
12517
|
phase: "cli.play_file_compile_manifests",
|
|
12518
12518
|
ms: 0,
|
|
12519
12519
|
ok: true,
|
|
@@ -12522,7 +12522,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12522
12522
|
reason: "validated_by_run_route"
|
|
12523
12523
|
});
|
|
12524
12524
|
} else {
|
|
12525
|
-
await
|
|
12525
|
+
await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
12526
12526
|
"cli.play_file_compile_manifests",
|
|
12527
12527
|
{ targetKind: "file", skipped: false },
|
|
12528
12528
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12543,13 +12543,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12543
12543
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12544
12544
|
try {
|
|
12545
12545
|
renderLocalPlayExecutionPlan(
|
|
12546
|
-
|
|
12546
|
+
_chunkIIQ6O5F3js.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12547
12547
|
);
|
|
12548
12548
|
progress.phase("pinning imported plays");
|
|
12549
|
-
graph = await
|
|
12549
|
+
graph = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
12550
12550
|
"cli.play_file_pin_imports",
|
|
12551
12551
|
{ targetKind: "file" },
|
|
12552
|
-
() =>
|
|
12552
|
+
() => _chunkIIQ6O5F3js.pinLocalPlayImports.call(void 0, client, graph)
|
|
12553
12553
|
);
|
|
12554
12554
|
bundleResult = graph.root;
|
|
12555
12555
|
} catch (error) {
|
|
@@ -12565,7 +12565,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12565
12565
|
const fileInputBindings = _chunkJDMR33HSjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12566
12566
|
_optionalChain([compilerManifest, 'optionalAccess', _465 => _465.staticPipeline])
|
|
12567
12567
|
);
|
|
12568
|
-
const stagedFileInputs = await
|
|
12568
|
+
const stagedFileInputs = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
12569
12569
|
"cli.play_stage_inputs",
|
|
12570
12570
|
{
|
|
12571
12571
|
targetKind: "file",
|
|
@@ -12612,7 +12612,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12612
12612
|
};
|
|
12613
12613
|
if (options.watch) {
|
|
12614
12614
|
progress.phase("starting run");
|
|
12615
|
-
const finalStatus = await
|
|
12615
|
+
const finalStatus = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
12616
12616
|
"cli.play_start_watch",
|
|
12617
12617
|
{ targetKind: "file", playName },
|
|
12618
12618
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12672,7 +12672,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12672
12672
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12673
12673
|
}
|
|
12674
12674
|
progress.phase("starting run");
|
|
12675
|
-
const started = await
|
|
12675
|
+
const started = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
12676
12676
|
"cli.play_start_unwatched",
|
|
12677
12677
|
{ targetKind: "file", playName },
|
|
12678
12678
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _472 => _472.onSubmission]) }).catch(async (error) => {
|
|
@@ -12723,12 +12723,12 @@ async function handleNamedRun(options, hooks) {
|
|
|
12723
12723
|
if (options.target.kind !== "name") {
|
|
12724
12724
|
throw new Error("Expected a named play run target.");
|
|
12725
12725
|
}
|
|
12726
|
-
const client = new (0,
|
|
12727
|
-
let cliAdmission =
|
|
12726
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)(playRunClientOptions(options));
|
|
12727
|
+
let cliAdmission = _chunkHBVT4FW5js.usesInlinePlayAdmission.call(void 0,
|
|
12728
12728
|
"plays run",
|
|
12729
12729
|
process.argv.slice(2)
|
|
12730
12730
|
);
|
|
12731
|
-
const progress = _nullishCoalesce(
|
|
12731
|
+
const progress = _nullishCoalesce(_chunkM475BQ77js.getActiveCliProgress.call(void 0, ), () => ( _chunkM475BQ77js.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12732
12732
|
const playName = options.target.name;
|
|
12733
12733
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
12734
12734
|
try {
|
|
@@ -12743,14 +12743,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
12743
12743
|
});
|
|
12744
12744
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
12745
12745
|
progress.phase("loading play definition");
|
|
12746
|
-
return
|
|
12746
|
+
return _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
12747
12747
|
"cli.play_load_definition",
|
|
12748
12748
|
{ targetKind: "name", playName, skipped: false },
|
|
12749
12749
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
12750
12750
|
command: "run"
|
|
12751
12751
|
})
|
|
12752
12752
|
);
|
|
12753
|
-
})() : (
|
|
12753
|
+
})() : (_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
12754
12754
|
phase: "cli.play_load_definition",
|
|
12755
12755
|
ms: 0,
|
|
12756
12756
|
ok: true,
|
|
@@ -12759,7 +12759,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12759
12759
|
skipped: true
|
|
12760
12760
|
}), null);
|
|
12761
12761
|
progress.phase("selecting revision");
|
|
12762
|
-
const selectedRevisionId = await
|
|
12762
|
+
const selectedRevisionId = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
12763
12763
|
"cli.play_select_revision",
|
|
12764
12764
|
{
|
|
12765
12765
|
targetKind: "name",
|
|
@@ -12784,10 +12784,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
12784
12784
|
..._chunkJDMR33HSjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
12785
12785
|
] : [];
|
|
12786
12786
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
12787
|
-
await
|
|
12787
|
+
await _chunkHBVT4FW5js.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
12788
12788
|
cliAdmission = false;
|
|
12789
12789
|
}
|
|
12790
|
-
const stagedFileInputs = await
|
|
12790
|
+
const stagedFileInputs = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
12791
12791
|
"cli.play_stage_inputs",
|
|
12792
12792
|
{
|
|
12793
12793
|
targetKind: "name",
|
|
@@ -12831,7 +12831,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12831
12831
|
});
|
|
12832
12832
|
if (options.watch) {
|
|
12833
12833
|
progress.phase("starting run");
|
|
12834
|
-
const finalStatus = await
|
|
12834
|
+
const finalStatus = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
12835
12835
|
"cli.play_start_watch",
|
|
12836
12836
|
{ targetKind: "name", playName },
|
|
12837
12837
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12894,7 +12894,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12894
12894
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12895
12895
|
}
|
|
12896
12896
|
progress.phase("starting run");
|
|
12897
|
-
const started = await
|
|
12897
|
+
const started = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
12898
12898
|
"cli.play_start_unwatched",
|
|
12899
12899
|
{ targetKind: "name", playName },
|
|
12900
12900
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _485 => _485.onSubmission]) }).catch(async (error) => {
|
|
@@ -12939,7 +12939,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
12939
12939
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
12940
12940
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _493 => _493.exec, 'call', _494 => _494(status.runId), 'optionalAccess', _495 => _495[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
12941
12941
|
if (!terminal) {
|
|
12942
|
-
|
|
12942
|
+
_chunkRDOPZK7Ajs.writeExecutionOutput.call(void 0,
|
|
12943
12943
|
{ id: status.runId, status: status.status, next },
|
|
12944
12944
|
output
|
|
12945
12945
|
);
|
|
@@ -13014,10 +13014,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13014
13014
|
};
|
|
13015
13015
|
}
|
|
13016
13016
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13017
|
-
const allCollections =
|
|
13017
|
+
const allCollections = _chunkRDOPZK7Ajs.outputCollections.call(void 0, data).map(
|
|
13018
13018
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13019
13019
|
);
|
|
13020
|
-
|
|
13020
|
+
_chunkRDOPZK7Ajs.writeExecutionOutput.call(void 0,
|
|
13021
13021
|
{
|
|
13022
13022
|
id: status.runId,
|
|
13023
13023
|
status: status.status,
|
|
@@ -13038,7 +13038,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13038
13038
|
}
|
|
13039
13039
|
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;
|
|
13040
13040
|
async function handlePlayRun(args, hooks) {
|
|
13041
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13041
|
+
const parsedOptions = Array.isArray(args) ? _chunkRMQB72WWjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13042
13042
|
const options = parsedOptions.runIdFile ? {
|
|
13043
13043
|
...parsedOptions,
|
|
13044
13044
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13055,7 +13055,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13055
13055
|
JSON.stringify({
|
|
13056
13056
|
version: 1,
|
|
13057
13057
|
admissionState: "submitted_unknown",
|
|
13058
|
-
baseUrl: new (0,
|
|
13058
|
+
baseUrl: new (0, _chunkSKVMC6K6js.DeeplineClient)().baseUrl,
|
|
13059
13059
|
...intent
|
|
13060
13060
|
})
|
|
13061
13061
|
);
|
|
@@ -13284,7 +13284,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13284
13284
|
);
|
|
13285
13285
|
return `${lines.join("\n")}
|
|
13286
13286
|
|
|
13287
|
-
${
|
|
13287
|
+
${_chunkH7YFUC3Jjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13288
13288
|
}
|
|
13289
13289
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13290
13290
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13308,7 +13308,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13308
13308
|
}
|
|
13309
13309
|
}
|
|
13310
13310
|
async function handleRunGet(args) {
|
|
13311
|
-
const selection =
|
|
13311
|
+
const selection = _chunkH7YFUC3Jjs.parseJsonFields.call(void 0,
|
|
13312
13312
|
args,
|
|
13313
13313
|
args.includes("--config") ? "config" : "get"
|
|
13314
13314
|
);
|
|
@@ -13321,7 +13321,7 @@ async function handleRunGet(args) {
|
|
|
13321
13321
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13322
13322
|
return 1;
|
|
13323
13323
|
}
|
|
13324
|
-
const client = new (0,
|
|
13324
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
13325
13325
|
const timing = args.includes("--timing");
|
|
13326
13326
|
if (args.includes("--web-url")) {
|
|
13327
13327
|
const status2 = await withRunReadTiming(
|
|
@@ -13336,7 +13336,7 @@ async function handleRunGet(args) {
|
|
|
13336
13336
|
return 1;
|
|
13337
13337
|
}
|
|
13338
13338
|
const dashboardUrl2 = _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13339
|
-
|
|
13339
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
13340
13340
|
{ dashboardUrl: dashboardUrl2 },
|
|
13341
13341
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
13342
13342
|
` }
|
|
@@ -13361,7 +13361,7 @@ async function handleRunGet(args) {
|
|
|
13361
13361
|
"This server does not support recorded configuration reads."
|
|
13362
13362
|
);
|
|
13363
13363
|
}
|
|
13364
|
-
|
|
13364
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
13365
13365
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13366
13366
|
{ json: true, fields: selection.fields }
|
|
13367
13367
|
);
|
|
@@ -13374,7 +13374,7 @@ async function handleRunGet(args) {
|
|
|
13374
13374
|
timing,
|
|
13375
13375
|
() => client.getRunInput(runId)
|
|
13376
13376
|
);
|
|
13377
|
-
|
|
13377
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13378
13378
|
return 0;
|
|
13379
13379
|
}
|
|
13380
13380
|
const full = args.includes("--full");
|
|
@@ -13387,7 +13387,7 @@ async function handleRunGet(args) {
|
|
|
13387
13387
|
failedLogs: args.includes("--log-failed")
|
|
13388
13388
|
})
|
|
13389
13389
|
);
|
|
13390
|
-
if (status.package)
|
|
13390
|
+
if (status.package) _chunkRDOPZK7Ajs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13391
13391
|
if (!status.package) {
|
|
13392
13392
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13393
13393
|
"runs get",
|
|
@@ -13400,8 +13400,8 @@ async function handleRunGet(args) {
|
|
|
13400
13400
|
) : status;
|
|
13401
13401
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13402
13402
|
const legacyDashboardUrl = legacyPlayName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13403
|
-
if (
|
|
13404
|
-
|
|
13403
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
13404
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
13405
13405
|
{
|
|
13406
13406
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13407
13407
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -13411,7 +13411,7 @@ async function handleRunGet(args) {
|
|
|
13411
13411
|
} else {
|
|
13412
13412
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13413
13413
|
if (legacyDashboardUrl)
|
|
13414
|
-
|
|
13414
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
13415
13415
|
{ dashboardUrl: legacyDashboardUrl },
|
|
13416
13416
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
13417
13417
|
` }
|
|
@@ -13441,10 +13441,10 @@ async function handleRunGet(args) {
|
|
|
13441
13441
|
)
|
|
13442
13442
|
]);
|
|
13443
13443
|
const hitLines = formatRunHitsLines(hits);
|
|
13444
|
-
const json =
|
|
13444
|
+
const json = _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args);
|
|
13445
13445
|
const playName = resolveRunPlayName(status, runId);
|
|
13446
13446
|
const dashboardUrl = playName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13447
|
-
|
|
13447
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
13448
13448
|
{
|
|
13449
13449
|
...overview,
|
|
13450
13450
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13548,9 +13548,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13548
13548
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13549
13549
|
return 1;
|
|
13550
13550
|
}
|
|
13551
|
-
const status = await new (0,
|
|
13552
|
-
if (
|
|
13553
|
-
|
|
13551
|
+
const status = await new (0, _chunkSKVMC6K6js.DeeplineClient)().runs.status(runId);
|
|
13552
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
13553
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13554
13554
|
return 0;
|
|
13555
13555
|
}
|
|
13556
13556
|
if (!status.available) {
|
|
@@ -13590,7 +13590,7 @@ async function handleRunsRerun(args) {
|
|
|
13590
13590
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13591
13591
|
return 1;
|
|
13592
13592
|
}
|
|
13593
|
-
const options = { json:
|
|
13593
|
+
const options = { json: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args) };
|
|
13594
13594
|
for (let index = 0; index < args.length; index += 1) {
|
|
13595
13595
|
if (args[index] === "--idempotency-key") {
|
|
13596
13596
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13656,8 +13656,8 @@ ${usage2}
|
|
|
13656
13656
|
Discover Plays: ${next.discover}
|
|
13657
13657
|
Active runs: ${next.running}`
|
|
13658
13658
|
);
|
|
13659
|
-
if (
|
|
13660
|
-
|
|
13659
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
13660
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
13661
13661
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13662
13662
|
{ json: true }
|
|
13663
13663
|
);
|
|
@@ -13672,7 +13672,7 @@ Active runs: ${next.running}`
|
|
|
13672
13672
|
console.error("--offset requires --play.");
|
|
13673
13673
|
return 1;
|
|
13674
13674
|
}
|
|
13675
|
-
const client = new (0,
|
|
13675
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
13676
13676
|
const page = await withRunReadTiming(
|
|
13677
13677
|
"runs list",
|
|
13678
13678
|
"run inventory",
|
|
@@ -13739,14 +13739,14 @@ Active runs: ${next.running}`
|
|
|
13739
13739
|
return lines2.join("\n");
|
|
13740
13740
|
});
|
|
13741
13741
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
13742
|
-
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}${
|
|
13742
|
+
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}${_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
13743
13743
|
if (page.hasMore) {
|
|
13744
13744
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
13745
13745
|
lines.push(
|
|
13746
13746
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
13747
13747
|
);
|
|
13748
13748
|
}
|
|
13749
|
-
|
|
13749
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
13750
13750
|
{
|
|
13751
13751
|
runs,
|
|
13752
13752
|
count: runs.length,
|
|
@@ -13760,7 +13760,7 @@ Active runs: ${next.running}`
|
|
|
13760
13760
|
},
|
|
13761
13761
|
render: { sections: [{ title: "runs", lines }] }
|
|
13762
13762
|
},
|
|
13763
|
-
{ json:
|
|
13763
|
+
{ json: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args) }
|
|
13764
13764
|
);
|
|
13765
13765
|
return 0;
|
|
13766
13766
|
}
|
|
@@ -13790,7 +13790,7 @@ async function handleRunTail(args) {
|
|
|
13790
13790
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
13791
13791
|
return 1;
|
|
13792
13792
|
}
|
|
13793
|
-
const parsed =
|
|
13793
|
+
const parsed = _chunk7KAS4QOWjs.parseLogLevel.call(void 0, value);
|
|
13794
13794
|
if (!parsed) {
|
|
13795
13795
|
console.error(
|
|
13796
13796
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -13828,9 +13828,9 @@ async function handleRunTail(args) {
|
|
|
13828
13828
|
);
|
|
13829
13829
|
return 1;
|
|
13830
13830
|
}
|
|
13831
|
-
const client = new (0,
|
|
13831
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
13832
13832
|
const jsonLines = args.includes("--jsonl");
|
|
13833
|
-
const jsonOutput = !jsonLines &&
|
|
13833
|
+
const jsonOutput = !jsonLines && _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args);
|
|
13834
13834
|
const compact = args.includes("--compact");
|
|
13835
13835
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
13836
13836
|
const compactState = {
|
|
@@ -13911,7 +13911,7 @@ async function handleRunLogs(args) {
|
|
|
13911
13911
|
]);
|
|
13912
13912
|
const cursorIndex = args.indexOf("--cursor");
|
|
13913
13913
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
13914
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
13914
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk7KAS4QOWjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
13915
13915
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
13916
13916
|
return handleRunEventSearch(args);
|
|
13917
13917
|
}
|
|
@@ -13945,7 +13945,7 @@ async function handleRunLogs(args) {
|
|
|
13945
13945
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
13946
13946
|
return 1;
|
|
13947
13947
|
}
|
|
13948
|
-
const parsed =
|
|
13948
|
+
const parsed = _chunk7KAS4QOWjs.parseLogLevel.call(void 0, value);
|
|
13949
13949
|
if (!parsed) {
|
|
13950
13950
|
console.error(
|
|
13951
13951
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -13992,12 +13992,12 @@ async function handleRunLogs(args) {
|
|
|
13992
13992
|
);
|
|
13993
13993
|
return 1;
|
|
13994
13994
|
}
|
|
13995
|
-
const client = new (0,
|
|
13995
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
13996
13996
|
if (outPath) {
|
|
13997
13997
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
13998
|
-
const logs = result2.entries.filter((line) =>
|
|
13998
|
+
const logs = result2.entries.filter((line) => _chunk7KAS4QOWjs.logLevelReaches.call(void 0, _chunk7KAS4QOWjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk7KAS4QOWjs.classifyLogLine.call(void 0, line).line);
|
|
13999
13999
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14000
|
-
|
|
14000
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
14001
14001
|
{
|
|
14002
14002
|
runId: result2.runId,
|
|
14003
14003
|
log_path: outPath,
|
|
@@ -14020,7 +14020,7 @@ async function handleRunLogs(args) {
|
|
|
14020
14020
|
]
|
|
14021
14021
|
}
|
|
14022
14022
|
},
|
|
14023
|
-
{ json:
|
|
14023
|
+
{ json: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args) }
|
|
14024
14024
|
);
|
|
14025
14025
|
return 0;
|
|
14026
14026
|
}
|
|
@@ -14051,7 +14051,7 @@ async function handleRunLogs(args) {
|
|
|
14051
14051
|
}
|
|
14052
14052
|
};
|
|
14053
14053
|
const text = buildRunLogsText(filteredResult);
|
|
14054
|
-
|
|
14054
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
14055
14055
|
{
|
|
14056
14056
|
runId: result.runId,
|
|
14057
14057
|
totalCount: result.totalCount,
|
|
@@ -14075,7 +14075,7 @@ async function handleRunLogs(args) {
|
|
|
14075
14075
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14076
14076
|
},
|
|
14077
14077
|
{
|
|
14078
|
-
json:
|
|
14078
|
+
json: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args),
|
|
14079
14079
|
text
|
|
14080
14080
|
}
|
|
14081
14081
|
);
|
|
@@ -14099,7 +14099,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14099
14099
|
);
|
|
14100
14100
|
}
|
|
14101
14101
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14102
|
-
(entry) =>
|
|
14102
|
+
(entry) => _chunk7KAS4QOWjs.logLevelReaches.call(void 0, _chunk7KAS4QOWjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14103
14103
|
);
|
|
14104
14104
|
const selected = matching.slice(-limit);
|
|
14105
14105
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14109,7 +14109,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14109
14109
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _527 => _527.at, 'call', _528 => _528(-1), 'optionalAccess', _529 => _529.seq]), () => ( null)),
|
|
14110
14110
|
truncated: result.truncated || olderMatchesExist,
|
|
14111
14111
|
hasMore: olderMatchesExist,
|
|
14112
|
-
nextCursor: olderMatchesExist ?
|
|
14112
|
+
nextCursor: olderMatchesExist ? _chunk7KAS4QOWjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14113
14113
|
};
|
|
14114
14114
|
}
|
|
14115
14115
|
async function handleRunEventSearch(args) {
|
|
@@ -14176,7 +14176,7 @@ ${usage2}`);
|
|
|
14176
14176
|
namespace,
|
|
14177
14177
|
...backend ? { backend } : {}
|
|
14178
14178
|
} : void 0;
|
|
14179
|
-
const client = new (0,
|
|
14179
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
14180
14180
|
const result = await client.runs.searchEvents({
|
|
14181
14181
|
...runId ? { runId } : {},
|
|
14182
14182
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14248,7 +14248,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14248
14248
|
"--limit",
|
|
14249
14249
|
String(limit)
|
|
14250
14250
|
].join(" ") : null;
|
|
14251
|
-
|
|
14251
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
14252
14252
|
{
|
|
14253
14253
|
events,
|
|
14254
14254
|
nextCursor: result.nextCursor,
|
|
@@ -14259,14 +14259,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14259
14259
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14260
14260
|
},
|
|
14261
14261
|
{
|
|
14262
|
-
json:
|
|
14262
|
+
json: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args),
|
|
14263
14263
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14264
14264
|
}
|
|
14265
14265
|
);
|
|
14266
14266
|
return 0;
|
|
14267
14267
|
}
|
|
14268
14268
|
function buildRunLogsText(result) {
|
|
14269
|
-
const lines = result.entries.map((line) =>
|
|
14269
|
+
const lines = result.entries.map((line) => _chunk7KAS4QOWjs.classifyLogLine.call(void 0, line).line);
|
|
14270
14270
|
if (result.warning) {
|
|
14271
14271
|
if (lines.length > 0) lines.push("");
|
|
14272
14272
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14300,7 +14300,7 @@ async function handleRunStop(args) {
|
|
|
14300
14300
|
reason = args[++index];
|
|
14301
14301
|
}
|
|
14302
14302
|
}
|
|
14303
|
-
const client = new (0,
|
|
14303
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
14304
14304
|
const result = await client.runs.stop(runId, { reason });
|
|
14305
14305
|
const state = resolveRunStopState(result);
|
|
14306
14306
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14315,7 +14315,7 @@ async function handleRunStop(args) {
|
|
|
14315
14315
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14316
14316
|
`inspect: deepline runs get ${runId} --full`
|
|
14317
14317
|
];
|
|
14318
|
-
|
|
14318
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
14319
14319
|
{
|
|
14320
14320
|
...cancelling,
|
|
14321
14321
|
state,
|
|
@@ -14330,7 +14330,7 @@ async function handleRunStop(args) {
|
|
|
14330
14330
|
]
|
|
14331
14331
|
}
|
|
14332
14332
|
},
|
|
14333
|
-
{ json:
|
|
14333
|
+
{ json: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args) }
|
|
14334
14334
|
);
|
|
14335
14335
|
return 0;
|
|
14336
14336
|
}
|
|
@@ -14347,7 +14347,7 @@ async function handleRunStop(args) {
|
|
|
14347
14347
|
];
|
|
14348
14348
|
process.stderr.write(`${lines2.join("\n")}
|
|
14349
14349
|
`);
|
|
14350
|
-
|
|
14350
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
14351
14351
|
{
|
|
14352
14352
|
...result,
|
|
14353
14353
|
render: {
|
|
@@ -14362,7 +14362,7 @@ async function handleRunStop(args) {
|
|
|
14362
14362
|
]
|
|
14363
14363
|
}
|
|
14364
14364
|
},
|
|
14365
|
-
{ json:
|
|
14365
|
+
{ json: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args) }
|
|
14366
14366
|
);
|
|
14367
14367
|
return 1;
|
|
14368
14368
|
}
|
|
@@ -14373,12 +14373,12 @@ async function handleRunStop(args) {
|
|
|
14373
14373
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14374
14374
|
] : []
|
|
14375
14375
|
];
|
|
14376
|
-
|
|
14376
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
14377
14377
|
{
|
|
14378
14378
|
...result,
|
|
14379
14379
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14380
14380
|
},
|
|
14381
|
-
{ json:
|
|
14381
|
+
{ json: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args) }
|
|
14382
14382
|
);
|
|
14383
14383
|
return 0;
|
|
14384
14384
|
}
|
|
@@ -14428,18 +14428,18 @@ async function handleRunStopAll(args) {
|
|
|
14428
14428
|
reason = args[++index];
|
|
14429
14429
|
}
|
|
14430
14430
|
}
|
|
14431
|
-
const client = new (0,
|
|
14431
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
14432
14432
|
if (dryRun) {
|
|
14433
14433
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14434
14434
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14435
|
-
|
|
14435
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
14436
14436
|
{
|
|
14437
14437
|
...result2,
|
|
14438
14438
|
render: {
|
|
14439
14439
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14440
14440
|
}
|
|
14441
14441
|
},
|
|
14442
|
-
{ json:
|
|
14442
|
+
{ json: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14443
14443
|
` }
|
|
14444
14444
|
);
|
|
14445
14445
|
return 0;
|
|
@@ -14452,17 +14452,17 @@ async function handleRunStopAll(args) {
|
|
|
14452
14452
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14453
14453
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14454
14454
|
];
|
|
14455
|
-
|
|
14455
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
14456
14456
|
{
|
|
14457
14457
|
...result,
|
|
14458
14458
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14459
14459
|
},
|
|
14460
|
-
{ json:
|
|
14460
|
+
{ json: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args) }
|
|
14461
14461
|
);
|
|
14462
14462
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14463
14463
|
}
|
|
14464
14464
|
async function handleRunExport(args) {
|
|
14465
|
-
const selection =
|
|
14465
|
+
const selection = _chunkH7YFUC3Jjs.parseJsonFields.call(void 0, args, "export");
|
|
14466
14466
|
args = selection.args;
|
|
14467
14467
|
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]";
|
|
14468
14468
|
let runId;
|
|
@@ -14533,17 +14533,17 @@ async function handleRunExport(args) {
|
|
|
14533
14533
|
"INVALID_ARGUMENT"
|
|
14534
14534
|
);
|
|
14535
14535
|
}
|
|
14536
|
-
const client = new (0,
|
|
14536
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
14537
14537
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14538
14538
|
assertRunExportStatusIdentity(status, runId);
|
|
14539
14539
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14540
|
-
const progress =
|
|
14540
|
+
const progress = _chunkM475BQ77js.createCliProgress.call(void 0, !_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args));
|
|
14541
14541
|
try {
|
|
14542
14542
|
await waitForPlayCompletionByWatch({
|
|
14543
14543
|
client,
|
|
14544
14544
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14545
14545
|
workflowId: runId,
|
|
14546
|
-
jsonOutput:
|
|
14546
|
+
jsonOutput: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args),
|
|
14547
14547
|
emitLogs: false,
|
|
14548
14548
|
waitTimeoutMs,
|
|
14549
14549
|
startedAt: Date.now(),
|
|
@@ -14611,7 +14611,7 @@ async function handleRunExport(args) {
|
|
|
14611
14611
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _543 => _543.rowsInfo, 'access', _544 => _544.totalRows]), () => ( null)),
|
|
14612
14612
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14613
14613
|
...rowFailures ? { rowFailures } : {},
|
|
14614
|
-
columns:
|
|
14614
|
+
columns: _chunkRDOPZK7Ajs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _545 => _545.rowsInfo, 'access', _546 => _546.columns]), () => ( []))),
|
|
14615
14615
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14616
14616
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14617
14617
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -14645,8 +14645,8 @@ async function handleRunExport(args) {
|
|
|
14645
14645
|
"utf-8"
|
|
14646
14646
|
);
|
|
14647
14647
|
}
|
|
14648
|
-
|
|
14649
|
-
json:
|
|
14648
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, payload, {
|
|
14649
|
+
json: _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args),
|
|
14650
14650
|
fields: selection.fields,
|
|
14651
14651
|
text: `${lines.join("\n")}
|
|
14652
14652
|
`
|
|
@@ -14680,10 +14680,10 @@ async function handlePlayGet(args) {
|
|
|
14680
14680
|
);
|
|
14681
14681
|
return 2;
|
|
14682
14682
|
}
|
|
14683
|
-
const client = new (0,
|
|
14683
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
14684
14684
|
const explicitJson = args.includes("--json");
|
|
14685
14685
|
const sourceOutput = args.includes("--source");
|
|
14686
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14686
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args);
|
|
14687
14687
|
const requestedRevisionFlags = [
|
|
14688
14688
|
args.includes("--working"),
|
|
14689
14689
|
args.includes("--live"),
|
|
@@ -14743,7 +14743,7 @@ async function handlePlayGet(args) {
|
|
|
14743
14743
|
}
|
|
14744
14744
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
14745
14745
|
if (jsonOutput) {
|
|
14746
|
-
|
|
14746
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, {
|
|
14747
14747
|
...detail,
|
|
14748
14748
|
...materializedFile ? {
|
|
14749
14749
|
message: loadedMessage,
|
|
@@ -14835,8 +14835,8 @@ async function handlePlayVersions(args) {
|
|
|
14835
14835
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
14836
14836
|
return 1;
|
|
14837
14837
|
}
|
|
14838
|
-
const client = new (0,
|
|
14839
|
-
const jsonOutput =
|
|
14838
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
14839
|
+
const jsonOutput = _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args);
|
|
14840
14840
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
14841
14841
|
command: "versions"
|
|
14842
14842
|
});
|
|
@@ -14844,7 +14844,7 @@ async function handlePlayVersions(args) {
|
|
|
14844
14844
|
parseReferencedPlayTarget(playName).playName
|
|
14845
14845
|
);
|
|
14846
14846
|
if (jsonOutput) {
|
|
14847
|
-
|
|
14847
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, { versions });
|
|
14848
14848
|
return 0;
|
|
14849
14849
|
}
|
|
14850
14850
|
if (versions.length === 0) {
|
|
@@ -14881,10 +14881,24 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
14881
14881
|
"contact-info",
|
|
14882
14882
|
"signals"
|
|
14883
14883
|
];
|
|
14884
|
+
async function handlePlayCost(args) {
|
|
14885
|
+
const name = args[0];
|
|
14886
|
+
if (!name) {
|
|
14887
|
+
console.error("Usage: deepline plays cost <play> [--json]");
|
|
14888
|
+
return 2;
|
|
14889
|
+
}
|
|
14890
|
+
const result = await new (0, _chunkSKVMC6K6js.DeeplineClient)().getPlayCostEstimate(name);
|
|
14891
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
14892
|
+
else
|
|
14893
|
+
console.log(
|
|
14894
|
+
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
14895
|
+
);
|
|
14896
|
+
return 0;
|
|
14897
|
+
}
|
|
14884
14898
|
async function handlePlayList(args) {
|
|
14885
|
-
const jsonOutput =
|
|
14899
|
+
const jsonOutput = _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args);
|
|
14886
14900
|
const showCost = args.includes("--show-cost");
|
|
14887
|
-
const client = new (0,
|
|
14901
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
14888
14902
|
const categoriesIndex = args.indexOf("--categories");
|
|
14889
14903
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _566 => _566[categoriesIndex + 1], 'optionalAccess', _567 => _567.trim, 'call', _568 => _568()]) : void 0;
|
|
14890
14904
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -14914,8 +14928,9 @@ async function handlePlayList(args) {
|
|
|
14914
14928
|
const page = await client.listPlaysPage({
|
|
14915
14929
|
categories,
|
|
14916
14930
|
...tags.length > 0 ? { tags } : {},
|
|
14917
|
-
includeToolCategories:
|
|
14931
|
+
includeToolCategories: !args.includes("--summary"),
|
|
14918
14932
|
...showCost ? { includeCostEstimates: true } : {},
|
|
14933
|
+
...args.includes("--summary") ? { summaryOnly: true } : {},
|
|
14919
14934
|
limit,
|
|
14920
14935
|
cursor
|
|
14921
14936
|
});
|
|
@@ -14981,7 +14996,7 @@ async function handlePlayList(args) {
|
|
|
14981
14996
|
lines.push("List truncated \u2014 more plays are available.");
|
|
14982
14997
|
lines.push(`Next page: ${nextPage}`);
|
|
14983
14998
|
}
|
|
14984
|
-
|
|
14999
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
14985
15000
|
{
|
|
14986
15001
|
plays,
|
|
14987
15002
|
count: plays.length,
|
|
@@ -14999,7 +15014,7 @@ async function handlePlayList(args) {
|
|
|
14999
15014
|
}
|
|
15000
15015
|
async function handlePlayPin(args, pinned) {
|
|
15001
15016
|
const target = _optionalChain([args, 'access', _577 => _577.find, 'call', _578 => _578((arg) => !arg.startsWith("-")), 'optionalAccess', _579 => _579.trim, 'call', _580 => _580()]);
|
|
15002
|
-
const jsonOutput =
|
|
15017
|
+
const jsonOutput = _chunkH7YFUC3Jjs.argsWantJson.call(void 0, args);
|
|
15003
15018
|
const dryRun = args.includes("--dry-run");
|
|
15004
15019
|
if (!target) {
|
|
15005
15020
|
console.error(
|
|
@@ -15017,11 +15032,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15017
15032
|
const name = parsedTarget.playName;
|
|
15018
15033
|
const plan = { name, pinned, dryRun };
|
|
15019
15034
|
if (dryRun) {
|
|
15020
|
-
|
|
15035
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, plan);
|
|
15021
15036
|
return 0;
|
|
15022
15037
|
}
|
|
15023
|
-
const result = await new (0,
|
|
15024
|
-
if (jsonOutput)
|
|
15038
|
+
const result = await new (0, _chunkSKVMC6K6js.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15039
|
+
if (jsonOutput) _chunkH7YFUC3Jjs.printCompactJson.call(void 0, result);
|
|
15025
15040
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15026
15041
|
return 0;
|
|
15027
15042
|
}
|
|
@@ -15147,12 +15162,12 @@ async function handlePlayGrep(args) {
|
|
|
15147
15162
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15148
15163
|
return 1;
|
|
15149
15164
|
}
|
|
15150
|
-
const client = new (0,
|
|
15165
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
15151
15166
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15152
15167
|
summarizePlayGrepResult
|
|
15153
15168
|
);
|
|
15154
|
-
if (
|
|
15155
|
-
|
|
15169
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
15170
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, {
|
|
15156
15171
|
plays: results,
|
|
15157
15172
|
count: results.length,
|
|
15158
15173
|
query,
|
|
@@ -15175,7 +15190,7 @@ async function handlePlayGrep(args) {
|
|
|
15175
15190
|
return 0;
|
|
15176
15191
|
}
|
|
15177
15192
|
async function handlePlayDescribe(args) {
|
|
15178
|
-
const selection =
|
|
15193
|
+
const selection = _chunkH7YFUC3Jjs.parseJsonFields.call(void 0, args, "describe");
|
|
15179
15194
|
args = selection.args;
|
|
15180
15195
|
const playName = args[0];
|
|
15181
15196
|
if (!playName) {
|
|
@@ -15209,8 +15224,8 @@ async function handlePlayDescribe(args) {
|
|
|
15209
15224
|
`deepline plays check ${playName}`,
|
|
15210
15225
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15211
15226
|
];
|
|
15212
|
-
if (
|
|
15213
|
-
|
|
15227
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
15228
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, {
|
|
15214
15229
|
ok: false,
|
|
15215
15230
|
error: { message },
|
|
15216
15231
|
next
|
|
@@ -15224,7 +15239,7 @@ async function handlePlayDescribe(args) {
|
|
|
15224
15239
|
}
|
|
15225
15240
|
return 2;
|
|
15226
15241
|
}
|
|
15227
|
-
const client = new (0,
|
|
15242
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
15228
15243
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15229
15244
|
command: "describe"
|
|
15230
15245
|
});
|
|
@@ -15234,9 +15249,9 @@ async function handlePlayDescribe(args) {
|
|
|
15234
15249
|
compact: args.includes("--compact")
|
|
15235
15250
|
}
|
|
15236
15251
|
);
|
|
15237
|
-
if (
|
|
15238
|
-
if (selection.fields)
|
|
15239
|
-
else
|
|
15252
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
15253
|
+
if (selection.fields) _chunkH7YFUC3Jjs.printJson.call(void 0, play, selection.fields);
|
|
15254
|
+
else _chunkH7YFUC3Jjs.printCompactJson.call(void 0, play);
|
|
15240
15255
|
return 0;
|
|
15241
15256
|
}
|
|
15242
15257
|
printPlayDescription(play);
|
|
@@ -15258,7 +15273,7 @@ async function handlePlaySave(args) {
|
|
|
15258
15273
|
}
|
|
15259
15274
|
let graph;
|
|
15260
15275
|
try {
|
|
15261
|
-
graph = await
|
|
15276
|
+
graph = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
15262
15277
|
"cli.play_save_bundle_graph",
|
|
15263
15278
|
{ targetKind: "file" },
|
|
15264
15279
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15280,7 +15295,7 @@ async function handlePlaySave(args) {
|
|
|
15280
15295
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15281
15296
|
};
|
|
15282
15297
|
if (options.jsonOutput) {
|
|
15283
|
-
|
|
15298
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, result);
|
|
15284
15299
|
} else {
|
|
15285
15300
|
console.error(result.message);
|
|
15286
15301
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15302,7 +15317,7 @@ async function handlePlaySave(args) {
|
|
|
15302
15317
|
};
|
|
15303
15318
|
if (options.dryRun) {
|
|
15304
15319
|
if (options.jsonOutput) {
|
|
15305
|
-
|
|
15320
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, dryRun);
|
|
15306
15321
|
} else {
|
|
15307
15322
|
console.log(`Dry run: ${playName}`);
|
|
15308
15323
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15311,14 +15326,14 @@ async function handlePlaySave(args) {
|
|
|
15311
15326
|
}
|
|
15312
15327
|
return 0;
|
|
15313
15328
|
}
|
|
15314
|
-
const client = new (0,
|
|
15329
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
15315
15330
|
try {
|
|
15316
|
-
await
|
|
15331
|
+
await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
15317
15332
|
"cli.play_save_compile_manifests",
|
|
15318
15333
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15319
15334
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15320
15335
|
);
|
|
15321
|
-
const saved = await
|
|
15336
|
+
const saved = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
15322
15337
|
"cli.play_save_register_draft",
|
|
15323
15338
|
{ targetKind: "file", playName, artifactHash },
|
|
15324
15339
|
() => client.registerPlayArtifact({
|
|
@@ -15347,7 +15362,7 @@ async function handlePlaySave(args) {
|
|
|
15347
15362
|
}
|
|
15348
15363
|
};
|
|
15349
15364
|
if (options.jsonOutput) {
|
|
15350
|
-
|
|
15365
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, result);
|
|
15351
15366
|
} else {
|
|
15352
15367
|
console.log(
|
|
15353
15368
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15373,7 +15388,7 @@ async function handlePlayPublish(args) {
|
|
|
15373
15388
|
}
|
|
15374
15389
|
const { target: playName, useLatest } = options;
|
|
15375
15390
|
let revisionId = options.revisionId;
|
|
15376
|
-
const client = new (0,
|
|
15391
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
15377
15392
|
if (isFileTarget(playName)) {
|
|
15378
15393
|
if (revisionId || useLatest) {
|
|
15379
15394
|
console.error(
|
|
@@ -15383,7 +15398,7 @@ async function handlePlayPublish(args) {
|
|
|
15383
15398
|
}
|
|
15384
15399
|
let graph;
|
|
15385
15400
|
try {
|
|
15386
|
-
graph = await
|
|
15401
|
+
graph = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
15387
15402
|
"cli.play_publish_bundle_graph",
|
|
15388
15403
|
{ targetKind: "file" },
|
|
15389
15404
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15405,7 +15420,7 @@ async function handlePlayPublish(args) {
|
|
|
15405
15420
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15406
15421
|
};
|
|
15407
15422
|
if (options.jsonOutput) {
|
|
15408
|
-
|
|
15423
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, result3);
|
|
15409
15424
|
} else {
|
|
15410
15425
|
console.error(result3.message);
|
|
15411
15426
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15428,7 +15443,7 @@ async function handlePlayPublish(args) {
|
|
|
15428
15443
|
};
|
|
15429
15444
|
if (options.dryRun) {
|
|
15430
15445
|
if (options.jsonOutput) {
|
|
15431
|
-
|
|
15446
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, dryRun);
|
|
15432
15447
|
} else {
|
|
15433
15448
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15434
15449
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15447,12 +15462,12 @@ async function handlePlayPublish(args) {
|
|
|
15447
15462
|
}
|
|
15448
15463
|
}
|
|
15449
15464
|
try {
|
|
15450
|
-
await
|
|
15465
|
+
await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
15451
15466
|
"cli.play_publish_compile_manifests",
|
|
15452
15467
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15453
15468
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15454
15469
|
);
|
|
15455
|
-
await
|
|
15470
|
+
await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
15456
15471
|
"cli.play_publish_imports",
|
|
15457
15472
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15458
15473
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15461,7 +15476,7 @@ async function handlePlayPublish(args) {
|
|
|
15461
15476
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15462
15477
|
return 1;
|
|
15463
15478
|
}
|
|
15464
|
-
const published = await
|
|
15479
|
+
const published = await _chunk2G4R4APLjs.traceCliSpan.call(void 0,
|
|
15465
15480
|
"cli.play_publish_register_root",
|
|
15466
15481
|
{
|
|
15467
15482
|
targetKind: "file",
|
|
@@ -15496,7 +15511,7 @@ async function handlePlayPublish(args) {
|
|
|
15496
15511
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15497
15512
|
};
|
|
15498
15513
|
if (options.jsonOutput) {
|
|
15499
|
-
|
|
15514
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, result2);
|
|
15500
15515
|
} else {
|
|
15501
15516
|
printPublishReceipt({
|
|
15502
15517
|
name: rootPlayName,
|
|
@@ -15527,7 +15542,7 @@ async function handlePlayPublish(args) {
|
|
|
15527
15542
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15528
15543
|
latest: useLatest
|
|
15529
15544
|
};
|
|
15530
|
-
|
|
15545
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, result2);
|
|
15531
15546
|
return 0;
|
|
15532
15547
|
}
|
|
15533
15548
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15551,7 +15566,7 @@ async function handlePlayPublish(args) {
|
|
|
15551
15566
|
revisionId ? { revisionId } : {}
|
|
15552
15567
|
);
|
|
15553
15568
|
if (options.jsonOutput) {
|
|
15554
|
-
|
|
15569
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, result);
|
|
15555
15570
|
} else {
|
|
15556
15571
|
printPublishReceipt({
|
|
15557
15572
|
name: result.name,
|
|
@@ -15591,7 +15606,7 @@ async function handlePlayDelete(args) {
|
|
|
15591
15606
|
);
|
|
15592
15607
|
return 2;
|
|
15593
15608
|
}
|
|
15594
|
-
const client = new (0,
|
|
15609
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
15595
15610
|
let detail;
|
|
15596
15611
|
try {
|
|
15597
15612
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15615,8 +15630,8 @@ async function handlePlayDelete(args) {
|
|
|
15615
15630
|
name: resolvedName,
|
|
15616
15631
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15617
15632
|
};
|
|
15618
|
-
if (
|
|
15619
|
-
|
|
15633
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
15634
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, result2);
|
|
15620
15635
|
} else {
|
|
15621
15636
|
process.stdout.write(
|
|
15622
15637
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15626,8 +15641,8 @@ async function handlePlayDelete(args) {
|
|
|
15626
15641
|
return 0;
|
|
15627
15642
|
}
|
|
15628
15643
|
const result = await client.deletePlay(resolvedName);
|
|
15629
|
-
if (
|
|
15630
|
-
|
|
15644
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
15645
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, result);
|
|
15631
15646
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15632
15647
|
}
|
|
15633
15648
|
if (result.alreadyArchived) {
|
|
@@ -15666,13 +15681,13 @@ async function handlePlayRestore(args) {
|
|
|
15666
15681
|
);
|
|
15667
15682
|
return 2;
|
|
15668
15683
|
}
|
|
15669
|
-
const client = new (0,
|
|
15684
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
15670
15685
|
try {
|
|
15671
15686
|
const result = await client.restorePlay(
|
|
15672
15687
|
parseReferencedPlayTarget(playName).playName
|
|
15673
15688
|
);
|
|
15674
|
-
if (
|
|
15675
|
-
|
|
15689
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
15690
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, result);
|
|
15676
15691
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
15677
15692
|
}
|
|
15678
15693
|
if (result.alreadyActive) {
|
|
@@ -15799,21 +15814,21 @@ Common commands:
|
|
|
15799
15814
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
15800
15815
|
}
|
|
15801
15816
|
};
|
|
15802
|
-
|
|
15817
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0, result2, {
|
|
15803
15818
|
json: options.json,
|
|
15804
15819
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
15805
15820
|
`
|
|
15806
15821
|
});
|
|
15807
15822
|
return;
|
|
15808
15823
|
}
|
|
15809
|
-
const client = new (0,
|
|
15824
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
15810
15825
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
15811
15826
|
throw new Error(
|
|
15812
15827
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
15813
15828
|
);
|
|
15814
15829
|
}
|
|
15815
15830
|
const result = await client.startPlayRun(saved.request);
|
|
15816
|
-
|
|
15831
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
15817
15832
|
{ ...result },
|
|
15818
15833
|
{
|
|
15819
15834
|
json: options.json,
|
|
@@ -15849,7 +15864,7 @@ Examples:
|
|
|
15849
15864
|
).action(async (target, options) => {
|
|
15850
15865
|
process.exitCode = await handlePlayCheck([
|
|
15851
15866
|
target,
|
|
15852
|
-
...
|
|
15867
|
+
..._chunkH7YFUC3Jjs.jsonFieldArgs.call(void 0, options.json),
|
|
15853
15868
|
...options.full ? ["--full"] : []
|
|
15854
15869
|
]);
|
|
15855
15870
|
});
|
|
@@ -15888,10 +15903,10 @@ Notes:
|
|
|
15888
15903
|
--force-tool-refresh re-executes completed tool receipts and may repeat billed
|
|
15889
15904
|
provider calls. It is independent from --force.
|
|
15890
15905
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
15891
|
-
resident-work ceiling. Default: ${
|
|
15906
|
+
resident-work ceiling. Default: ${_chunkRMQB72WWjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkRMQB72WWjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
15892
15907
|
Provider pacing and sandbox memory limits still apply.
|
|
15893
15908
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
15894
|
-
resolvers. Accepted range: 1-${
|
|
15909
|
+
resolvers. Accepted range: 1-${_chunkRMQB72WWjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
15895
15910
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
15896
15911
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
15897
15912
|
Tool calls that would exceed it are denied.
|
|
@@ -16005,10 +16020,10 @@ Examples:
|
|
|
16005
16020
|
"Refresh completed tool receipts; may repeat billed provider calls"
|
|
16006
16021
|
).option(
|
|
16007
16022
|
"--max-concurrent-external-calls <count>",
|
|
16008
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16023
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkRMQB72WWjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkRMQB72WWjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16009
16024
|
).option(
|
|
16010
16025
|
"--max-concurrent-rows <count>",
|
|
16011
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16026
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkRMQB72WWjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16012
16027
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the play page in a browser after the run starts").option(
|
|
16013
16028
|
"--debug-map-latency",
|
|
16014
16029
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16053,14 +16068,14 @@ JSON field selection:
|
|
|
16053
16068
|
passthroughArgs.shift();
|
|
16054
16069
|
}
|
|
16055
16070
|
const exitCode = await handlePlayRun(
|
|
16056
|
-
|
|
16071
|
+
_chunkRMQB72WWjs.resolvePlayRunCliOptions.call(void 0,
|
|
16057
16072
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16058
16073
|
options,
|
|
16059
16074
|
passthroughArgs,
|
|
16060
|
-
|
|
16075
|
+
_chunk2G4R4APLjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16061
16076
|
)
|
|
16062
16077
|
);
|
|
16063
|
-
|
|
16078
|
+
_chunk2G4R4APLjs.recordCliTrace.call(void 0, {
|
|
16064
16079
|
phase: "cli.play_command_exit",
|
|
16065
16080
|
exitCode
|
|
16066
16081
|
});
|
|
@@ -16109,9 +16124,9 @@ Examples:
|
|
|
16109
16124
|
const limit = Number(options.historyLimit);
|
|
16110
16125
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16111
16126
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16112
|
-
const client = new (0,
|
|
16127
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
16113
16128
|
if (options.binding) {
|
|
16114
|
-
|
|
16129
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0,
|
|
16115
16130
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16116
16131
|
);
|
|
16117
16132
|
return;
|
|
@@ -16119,11 +16134,19 @@ Examples:
|
|
|
16119
16134
|
const result = await client.listPlayTriggerInventory({
|
|
16120
16135
|
cursor: options.cursor
|
|
16121
16136
|
});
|
|
16122
|
-
|
|
16137
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, {
|
|
16123
16138
|
...result,
|
|
16124
16139
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16125
16140
|
});
|
|
16126
16141
|
});
|
|
16142
|
+
play.command("cost <play>").description(
|
|
16143
|
+
"Estimate one saved or prebuilt Play in the current workspace."
|
|
16144
|
+
).option("--json", "Emit the cost estimate as JSON").action(async (name, options) => {
|
|
16145
|
+
process.exitCode = await handlePlayCost([
|
|
16146
|
+
name,
|
|
16147
|
+
...options.json ? ["--json"] : []
|
|
16148
|
+
]);
|
|
16149
|
+
});
|
|
16127
16150
|
play.command("list").description("List saved and prebuilt plays.").addHelpText(
|
|
16128
16151
|
"after",
|
|
16129
16152
|
`
|
|
@@ -16142,7 +16165,10 @@ Examples:
|
|
|
16142
16165
|
deepline plays list --tag smb
|
|
16143
16166
|
deepline search "name and company domain -> work email" --type prebuilts
|
|
16144
16167
|
`
|
|
16145
|
-
).option("--limit <count>", "Page size").option("--cursor <cursor>", "Continue a previous page").option("--show-cost", "Include the per-row or per-run cost estimate").option(
|
|
16168
|
+
).option("--limit <count>", "Page size").option("--cursor <cursor>", "Continue a previous page").option("--show-cost", "Include the per-row or per-run cost estimate").option(
|
|
16169
|
+
"--summary",
|
|
16170
|
+
"Load metadata without authored source or revision payloads"
|
|
16171
|
+
).option("--json", "Emit JSON output").option(
|
|
16146
16172
|
"--categories <categories>",
|
|
16147
16173
|
"Filter by comma-separated canonical tool categories"
|
|
16148
16174
|
).option(
|
|
@@ -16153,6 +16179,7 @@ Examples:
|
|
|
16153
16179
|
...options.limit ? ["--limit", options.limit] : [],
|
|
16154
16180
|
...options.cursor ? ["--cursor", options.cursor] : [],
|
|
16155
16181
|
...options.showCost ? ["--show-cost"] : [],
|
|
16182
|
+
...options.summary ? ["--summary"] : [],
|
|
16156
16183
|
...options.categories ? ["--categories", options.categories] : [],
|
|
16157
16184
|
...(_nullishCoalesce(options.tag, () => ( []))).flatMap((tag) => ["--tag", tag]),
|
|
16158
16185
|
...options.json ? ["--json"] : []
|
|
@@ -16166,7 +16193,7 @@ Examples:
|
|
|
16166
16193
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16167
16194
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16168
16195
|
}
|
|
16169
|
-
const result = await new (0,
|
|
16196
|
+
const result = await new (0, _chunkSKVMC6K6js.DeeplineClient)().getPlaysActivity({
|
|
16170
16197
|
timeZone: options.timeZone,
|
|
16171
16198
|
days,
|
|
16172
16199
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16180,7 +16207,7 @@ Examples:
|
|
|
16180
16207
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16181
16208
|
);
|
|
16182
16209
|
}
|
|
16183
|
-
|
|
16210
|
+
_chunkH7YFUC3Jjs.printCommandEnvelope.call(void 0,
|
|
16184
16211
|
{ ...result },
|
|
16185
16212
|
{
|
|
16186
16213
|
json: Boolean(options.json),
|
|
@@ -16209,7 +16236,7 @@ Examples:
|
|
|
16209
16236
|
false
|
|
16210
16237
|
);
|
|
16211
16238
|
});
|
|
16212
|
-
|
|
16239
|
+
_chunk2DND7LLLjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16213
16240
|
play,
|
|
16214
16241
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16215
16242
|
);
|
|
@@ -16250,9 +16277,9 @@ Examples:
|
|
|
16250
16277
|
"--json [fields]",
|
|
16251
16278
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16252
16279
|
);
|
|
16253
|
-
|
|
16280
|
+
_chunkRDOPZK7Ajs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16254
16281
|
async (target, options) => {
|
|
16255
|
-
const ownView = () => handlePlayDescribe(
|
|
16282
|
+
const ownView = () => handlePlayDescribe(_chunkH7YFUC3Jjs.describeArgs.call(void 0, target, options));
|
|
16256
16283
|
const [flagText] = [options.json].filter(
|
|
16257
16284
|
(value) => typeof value === "string"
|
|
16258
16285
|
);
|
|
@@ -16263,7 +16290,7 @@ Examples:
|
|
|
16263
16290
|
process.exitCode = await ownView();
|
|
16264
16291
|
return;
|
|
16265
16292
|
}
|
|
16266
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16293
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-37QXXDCF.js")));
|
|
16267
16294
|
process.exitCode = await describeAnything(
|
|
16268
16295
|
name,
|
|
16269
16296
|
{
|
|
@@ -16381,7 +16408,7 @@ Examples:
|
|
|
16381
16408
|
deepline plays deployments <deployment-id>
|
|
16382
16409
|
`
|
|
16383
16410
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16384
|
-
async (id, options) => id ?
|
|
16411
|
+
async (id, options) => id ? _chunkQLVYYDUIjs.handleDeploymentGet.call(void 0, id, options) : _chunkQLVYYDUIjs.handleDeploymentsList.call(void 0, options)
|
|
16385
16412
|
);
|
|
16386
16413
|
addPublishHelp(
|
|
16387
16414
|
play.command("publish <target>").description(
|
|
@@ -16516,14 +16543,14 @@ Examples:
|
|
|
16516
16543
|
const limit = Number(options.limit);
|
|
16517
16544
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16518
16545
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16519
|
-
const result = await new (0,
|
|
16546
|
+
const result = await new (0, _chunkSKVMC6K6js.DeeplineClient)().runs.rowHistory({
|
|
16520
16547
|
playName: options.play,
|
|
16521
16548
|
runId,
|
|
16522
16549
|
tableNamespace: options.dataset,
|
|
16523
16550
|
limit,
|
|
16524
16551
|
cursor: options.cursor
|
|
16525
16552
|
});
|
|
16526
|
-
|
|
16553
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, {
|
|
16527
16554
|
...result,
|
|
16528
16555
|
...result.nextCursor ? {
|
|
16529
16556
|
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`
|
|
@@ -16597,7 +16624,7 @@ Examples:
|
|
|
16597
16624
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16598
16625
|
).action(async (runId, options) => {
|
|
16599
16626
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16600
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16627
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-KS7JMRK6.js")));
|
|
16601
16628
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16602
16629
|
receiptJson: options.json !== void 0
|
|
16603
16630
|
});
|
|
@@ -16605,7 +16632,7 @@ Examples:
|
|
|
16605
16632
|
}
|
|
16606
16633
|
process.exitCode = await handleRunGet([
|
|
16607
16634
|
runId,
|
|
16608
|
-
...
|
|
16635
|
+
..._chunkH7YFUC3Jjs.jsonFieldArgs.call(void 0, options.json),
|
|
16609
16636
|
...options.webUrl ? ["--web-url"] : [],
|
|
16610
16637
|
...options.full ? ["--full"] : [],
|
|
16611
16638
|
...options.input ? ["--input"] : [],
|
|
@@ -16895,7 +16922,7 @@ Examples:
|
|
|
16895
16922
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
16896
16923
|
...options.wait ? ["--wait"] : [],
|
|
16897
16924
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
16898
|
-
...
|
|
16925
|
+
..._chunkH7YFUC3Jjs.jsonFieldArgs.call(void 0, options.json)
|
|
16899
16926
|
]);
|
|
16900
16927
|
});
|
|
16901
16928
|
const share = play.command("share").description(
|
|
@@ -17061,10 +17088,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17061
17088
|
return 2;
|
|
17062
17089
|
}
|
|
17063
17090
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17064
|
-
const status = await new (0,
|
|
17091
|
+
const status = await new (0, _chunkSKVMC6K6js.DeeplineClient)().getSharePage(name);
|
|
17065
17092
|
const outputStatus = shareStatusForOutput(status);
|
|
17066
|
-
if (
|
|
17067
|
-
|
|
17093
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
17094
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, outputStatus);
|
|
17068
17095
|
return 0;
|
|
17069
17096
|
}
|
|
17070
17097
|
if (!outputStatus.share) {
|
|
@@ -17103,7 +17130,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17103
17130
|
return 2;
|
|
17104
17131
|
}
|
|
17105
17132
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17106
|
-
const client = new (0,
|
|
17133
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
17107
17134
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17108
17135
|
let resolvedVersion;
|
|
17109
17136
|
if (!revisionId) {
|
|
@@ -17134,8 +17161,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17134
17161
|
);
|
|
17135
17162
|
if (!hasCompleted) {
|
|
17136
17163
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17137
|
-
if (
|
|
17138
|
-
|
|
17164
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
17165
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, {
|
|
17139
17166
|
ok: false,
|
|
17140
17167
|
code: "NO_SUCCESSFUL_RUN",
|
|
17141
17168
|
message,
|
|
@@ -17159,8 +17186,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17159
17186
|
};
|
|
17160
17187
|
if (args.includes("--dry-run")) {
|
|
17161
17188
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17162
|
-
if (
|
|
17163
|
-
|
|
17189
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
17190
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, plan);
|
|
17164
17191
|
} else {
|
|
17165
17192
|
console.log(
|
|
17166
17193
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17170,8 +17197,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17170
17197
|
}
|
|
17171
17198
|
const status = await client.publishSharePage(name, request);
|
|
17172
17199
|
const outputStatus = shareStatusForOutput(status);
|
|
17173
|
-
if (
|
|
17174
|
-
|
|
17200
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
17201
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, outputStatus);
|
|
17175
17202
|
return 0;
|
|
17176
17203
|
}
|
|
17177
17204
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17202,9 +17229,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17202
17229
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17203
17230
|
...seoIndexing ? { seoIndexing } : {}
|
|
17204
17231
|
};
|
|
17205
|
-
const status = await new (0,
|
|
17206
|
-
if (
|
|
17207
|
-
|
|
17232
|
+
const status = await new (0, _chunkSKVMC6K6js.DeeplineClient)().updateSharePage(name, request);
|
|
17233
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
17234
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, status);
|
|
17208
17235
|
return 0;
|
|
17209
17236
|
}
|
|
17210
17237
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17219,7 +17246,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17219
17246
|
return 2;
|
|
17220
17247
|
}
|
|
17221
17248
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17222
|
-
const client = new (0,
|
|
17249
|
+
const client = new (0, _chunkSKVMC6K6js.DeeplineClient)();
|
|
17223
17250
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17224
17251
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17225
17252
|
if (!revisionId && versionFlag) {
|
|
@@ -17236,8 +17263,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17236
17263
|
revisionId ? { revisionId } : {}
|
|
17237
17264
|
);
|
|
17238
17265
|
const outputStatus = shareStatusForOutput(status);
|
|
17239
|
-
if (
|
|
17240
|
-
|
|
17266
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
17267
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, outputStatus);
|
|
17241
17268
|
return 0;
|
|
17242
17269
|
}
|
|
17243
17270
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17262,9 +17289,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17262
17289
|
return 2;
|
|
17263
17290
|
}
|
|
17264
17291
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17265
|
-
const status = await new (0,
|
|
17266
|
-
if (
|
|
17267
|
-
|
|
17292
|
+
const status = await new (0, _chunkSKVMC6K6js.DeeplineClient)().unpublishSharePage(name);
|
|
17293
|
+
if (_chunkH7YFUC3Jjs.argsWantJson.call(void 0, args)) {
|
|
17294
|
+
_chunkH7YFUC3Jjs.printCompactJson.call(void 0, status);
|
|
17268
17295
|
return 0;
|
|
17269
17296
|
}
|
|
17270
17297
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17338,4 +17365,5 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17338
17365
|
|
|
17339
17366
|
|
|
17340
17367
|
|
|
17341
|
-
|
|
17368
|
+
|
|
17369
|
+
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 = _chunkRMQB72WWjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkRMQB72WWjs.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;
|