deepline 0.3.474 → 0.3.475
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +39 -15
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +18 -8
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +59 -34
- package/dist/cli/auth-7GVCW24N.js +41 -0
- package/dist/cli/{auth-QMANU5PV.mjs → auth-CFDYJ7FZ.mjs} +5 -5
- package/dist/cli/{billing-YJAP4VZN.mjs → billing-PEXWWLRT.mjs} +6 -6
- package/dist/cli/{billing-WZ5POBZX.js → billing-XLIL3FLK.js} +79 -79
- package/dist/cli/{chunk-PGKELBIY.js → chunk-3MQJJ6YX.js} +51 -51
- package/dist/cli/{chunk-Z27NSLPC.mjs → chunk-3QSFSHCJ.mjs} +1 -1
- package/dist/cli/{chunk-UKX4FESF.mjs → chunk-3WVA7E7O.mjs} +2 -2
- package/dist/cli/{chunk-JEYX3345.mjs → chunk-42F6LTBJ.mjs} +3 -3
- package/dist/cli/{chunk-BB4RZMWA.mjs → chunk-4QHAP3MR.mjs} +5 -5
- package/dist/cli/{chunk-IK3VOGDR.js → chunk-4QHQ3WYW.js} +21 -21
- package/dist/cli/{chunk-YVJ6IWVD.mjs → chunk-6PRYHABU.mjs} +1 -1
- package/dist/cli/{chunk-3ODBCZLL.js → chunk-7SWRXZ4A.js} +93 -93
- package/dist/cli/{chunk-MNK4ZK2C.mjs → chunk-7U3L2S7X.mjs} +10 -10
- package/dist/cli/{chunk-475V572K.js → chunk-7XTBEYLS.js} +36 -36
- package/dist/cli/{chunk-MKSB2FTU.mjs → chunk-AD7KL6AI.mjs} +4 -4
- package/dist/cli/{chunk-ORQYKA4I.js → chunk-B7NJ5JQ2.js} +4 -4
- package/dist/cli/{chunk-RXITRC37.js → chunk-BLW2K6YH.js} +3 -3
- package/dist/cli/{chunk-JSXMJSBE.js → chunk-BSK2TGB4.js} +8 -8
- package/dist/cli/{chunk-KKWQ24VM.mjs → chunk-BVAYLXMH.mjs} +2 -2
- package/dist/cli/{chunk-JCNJQH6X.js → chunk-CKSRTD45.js} +1 -1
- package/dist/cli/{chunk-G3UHAYRX.js → chunk-D3Q4FUFS.js} +8 -8
- package/dist/cli/{chunk-MXUJVCKV.mjs → chunk-D6SXN34W.mjs} +4 -4
- package/dist/cli/{chunk-26CZVDQN.mjs → chunk-DIMKSDF6.mjs} +2 -2
- package/dist/cli/{chunk-YX762HFK.mjs → chunk-EA45HSEC.mjs} +2 -2
- package/dist/cli/{chunk-LHOEWAVD.js → chunk-F4FNMXI3.js} +53 -53
- package/dist/cli/{chunk-THDXVSNL.mjs → chunk-FC4C7MZM.mjs} +4 -4
- package/dist/cli/{chunk-N62MS3XJ.js → chunk-G4SGYWKV.js} +6 -6
- package/dist/cli/{chunk-ZRWQKTSX.mjs → chunk-HALAYT3Y.mjs} +3 -3
- package/dist/cli/{chunk-7IYOWIEJ.mjs → chunk-HMHH7JQD.mjs} +2 -2
- package/dist/cli/{chunk-XP7FAYLN.js → chunk-KTWXY73Q.js} +5 -5
- package/dist/cli/{chunk-3MZPWIOE.mjs → chunk-M27SSAQ7.mjs} +1 -1
- package/dist/cli/{chunk-RLQIGBFK.js → chunk-M4QO3GRD.js} +3 -3
- package/dist/cli/{chunk-4C34LGI4.js → chunk-M7K5BCWP.js} +10 -10
- package/dist/cli/{chunk-RGIQ5ZJX.mjs → chunk-MUDOASYL.mjs} +2 -2
- package/dist/cli/{chunk-YFDTF2XC.js → chunk-NBVYS6VG.js} +9 -9
- package/dist/cli/{chunk-YK64UZXN.mjs → chunk-NGOKBSBH.mjs} +1 -1
- package/dist/cli/{chunk-35SZHTRW.mjs → chunk-NHQP4UPJ.mjs} +5 -5
- package/dist/cli/{chunk-AIPTW3EK.js → chunk-QKMWQTMI.js} +3 -3
- package/dist/cli/{chunk-3NRZFMX4.js → chunk-TLPW2SHS.js} +6 -6
- package/dist/cli/{chunk-XNP7XTBN.js → chunk-TZRTT7EI.js} +26 -26
- package/dist/cli/{chunk-STLJYWUC.js → chunk-U3F63UWD.js} +7 -7
- package/dist/cli/{chunk-AWJKYS25.js → chunk-VBGPRRJ6.js} +2 -2
- package/dist/cli/{chunk-EIKONWW7.mjs → chunk-VD3E3QMI.mjs} +1 -1
- package/dist/cli/{chunk-DQZBERDL.mjs → chunk-VFP3MFLD.mjs} +1 -1
- package/dist/cli/{chunk-ZGC2SUAA.mjs → chunk-VTCXSICG.mjs} +2 -2
- package/dist/cli/{chunk-UGYLGT7B.mjs → chunk-YAAQNDP6.mjs} +1 -1
- package/dist/cli/{chunk-JJVYUKLY.mjs → chunk-YMS7VYFA.mjs} +1 -1
- package/dist/cli/{chunk-CXBEZAPU.js → chunk-Z5VSBCFV.js} +16 -16
- package/dist/cli/{chunk-YKNULB7V.js → chunk-ZANUM4XV.js} +5 -5
- package/dist/cli/{chunk-EK2TAZJZ.js → chunk-ZQYBKDPA.js} +2 -2
- package/dist/cli/{csv-ENKCFCSM.js → csv-4YHSYV2C.js} +13 -13
- package/dist/cli/{csv-QCLQOIEA.mjs → csv-WC7ILC7P.mjs} +4 -4
- package/dist/cli/{db-5TLBZDT3.js → db-APZNM2GI.js} +27 -27
- package/dist/cli/{db-P25LGP33.mjs → db-I5PV6NTC.mjs} +6 -6
- package/dist/cli/describe-OR7FZBCD.js +48 -0
- package/dist/cli/{describe-W2H5DHR6.mjs → describe-XH5F3X5W.mjs} +17 -17
- package/dist/cli/{executions-VYZCYUBR.mjs → executions-PIY4XM7T.mjs} +6 -6
- package/dist/cli/{executions-YHFAWJOJ.js → executions-VIXFKZYU.js} +8 -8
- package/dist/cli/{feedback-K2FWYYLZ.mjs → feedback-IGDHBWGT.mjs} +4 -4
- package/dist/cli/{feedback-RJF3QSBB.js → feedback-WCLIFQTR.js} +8 -8
- package/dist/cli/git-CKN2F32Y.js +25 -0
- package/dist/cli/{git-S3APUPLL.mjs → git-FRICPPTA.mjs} +5 -5
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-3SWNRE7Z.js → legacy-noops-DSFOPYDY.js} +8 -8
- package/dist/cli/{legacy-noops-ICYZACTW.mjs → legacy-noops-ROAXEG6D.mjs} +5 -5
- package/dist/cli/{monitors-DEZCEQLB.mjs → monitors-FZ5PRLW6.mjs} +7 -7
- package/dist/cli/{monitors-VRIWTRPG.js → monitors-KUCYQLU5.js} +91 -91
- package/dist/cli/{org-IQW5ZIAO.mjs → org-DRNND5XU.mjs} +6 -6
- package/dist/cli/{org-NX752DTE.js → org-SRHMWKQR.js} +72 -72
- package/dist/cli/{pages-YIBWYGVS.js → pages-TEJQIHTU.js} +17 -17
- package/dist/cli/{pages-5WQRVVKX.mjs → pages-XNGA356T.mjs} +6 -6
- package/dist/cli/{play-3EXNH3HD.js → play-GCGFQSFP.js} +306 -306
- package/dist/cli/{play-WOMJXS4O.mjs → play-NE45ROIZ.mjs} +17 -17
- package/dist/cli/{providers-XDVPYRTS.mjs → providers-57TJOSMV.mjs} +6 -6
- package/dist/cli/{providers-C2WYSR2Y.js → providers-VHMUR63R.js} +9 -9
- package/dist/cli/{quickstart-7RABZF66.js → quickstart-BPXWO4UD.js} +6 -6
- package/dist/cli/{quickstart-YMSIL2TK.mjs → quickstart-K3SH4NXP.mjs} +4 -4
- package/dist/cli/{run-5QVVWFGL.js → run-553AAXDU.js} +36 -36
- package/dist/cli/{run-A4JD6TAR.mjs → run-ZRWJUEN2.mjs} +22 -22
- package/dist/cli/{search-2TOSF2G3.mjs → search-BW6XRS4I.mjs} +7 -7
- package/dist/cli/search-WF26AUDJ.js +32 -0
- package/dist/cli/{secrets-Q7UVOSNM.js → secrets-AMYQYUL5.js} +15 -15
- package/dist/cli/{secrets-BUN4ORE7.mjs → secrets-OYYCFGZE.mjs} +6 -6
- package/dist/cli/{sessions-IAOORI6X.mjs → sessions-O4SVVOMO.mjs} +5 -5
- package/dist/cli/{sessions-NXQOQ4HX.js → sessions-RYCJUMJ2.js} +6 -6
- package/dist/cli/{settings-WD4KSY5S.js → settings-7R5FQKII.js} +78 -78
- package/dist/cli/{settings-BMI373AI.mjs → settings-QK7DHDU7.mjs} +11 -11
- package/dist/cli/{setup-3IA7BVPE.js → setup-OTQDQHDN.js} +44 -44
- package/dist/cli/{setup-55VIWAWR.mjs → setup-VDAAVCKK.mjs} +9 -9
- package/dist/cli/{skills-GKITMBTM.mjs → skills-HRK5O5JO.mjs} +7 -7
- package/dist/cli/skills-VNLMEOXW.js +31 -0
- package/dist/cli/tools-C3MUHL7G.js +55 -0
- package/dist/cli/{tools-XHCFC7GP.mjs → tools-O7BM62QV.mjs} +16 -16
- package/dist/cli/update-TCKTU6QJ.js +33 -0
- package/dist/cli/{update-SWB24YKE.mjs → update-UHKHCSTY.mjs} +9 -9
- package/dist/cli/{workflow-5QPMFI3Z.js → workflow-7Z5NCTGG.js} +17 -17
- package/dist/cli/{workflow-XO4CKUA7.mjs → workflow-T2EDR7L4.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +96 -96
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-O6KAH543.js +0 -41
- package/dist/cli/describe-44L7OBGM.js +0 -48
- package/dist/cli/git-F3EI5DY5.js +0 -25
- package/dist/cli/search-772R7YHI.js +0 -32
- package/dist/cli/skills-PUUTFMP3.js +0 -31
- package/dist/cli/tools-3WX7TUUG.js +0 -55
- package/dist/cli/update-PC3CLODV.js +0 -33
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkNBVYS6VGjs = require('./chunk-NBVYS6VG.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,14 +17,14 @@ var _chunkYFDTF2XCjs = require('./chunk-YFDTF2XC.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkQKMWQTMIjs = require('./chunk-QKMWQTMI.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkD3Q4FUFSjs = require('./chunk-D3Q4FUFS.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkTZRTT7EIjs = require('./chunk-TZRTT7EI.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 _chunkZANUM4XVjs = require('./chunk-ZANUM4XV.js');
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunkKTWXY73Qjs = require('./chunk-KTWXY73Q.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 _chunkG4SGYWKVjs = require('./chunk-G4SGYWKV.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 _chunkTLPW2SHSjs = require('./chunk-TLPW2SHS.js');
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
99
|
-
require('./chunk-
|
|
98
|
+
var _chunkVBGPRRJ6js = require('./chunk-VBGPRRJ6.js');
|
|
99
|
+
require('./chunk-F4FNMXI3.js');
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
var
|
|
103
|
+
var _chunkM4QO3GRDjs = require('./chunk-M4QO3GRD.js');
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
|
|
@@ -114,17 +114,17 @@ var _chunkRLQIGBFKjs = require('./chunk-RLQIGBFK.js');
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
var
|
|
118
|
-
require('./chunk-
|
|
117
|
+
var _chunkU3F63UWDjs = require('./chunk-U3F63UWD.js');
|
|
118
|
+
require('./chunk-BLW2K6YH.js');
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
var
|
|
121
|
+
var _chunkB7NJ5JQ2js = require('./chunk-B7NJ5JQ2.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-CKSRTD45.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
|
+
_chunkU3F63UWDjs.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
|
+
_chunkU3F63UWDjs.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, _chunkKTWXY73Qjs.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
|
+
_chunkU3F63UWDjs.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, _chunkKTWXY73Qjs.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, _chunkKTWXY73Qjs.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
|
+
_chunkU3F63UWDjs.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, _chunkKTWXY73Qjs.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
|
+
_chunkU3F63UWDjs.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
|
+
_chunkU3F63UWDjs.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
|
+
_chunkU3F63UWDjs.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
|
+
_chunkU3F63UWDjs.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, _chunkKTWXY73Qjs.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, _chunkKTWXY73Qjs.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, _chunkKTWXY73Qjs.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 = _chunkG4SGYWKVjs.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 (_chunkU3F63UWDjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2857
|
+
_chunkU3F63UWDjs.printJsonError.call(void 0,
|
|
2858
|
+
Object.assign(new (0, _chunkG4SGYWKVjs.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, _chunkG4SGYWKVjs.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, _chunkG4SGYWKVjs.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, _chunkG4SGYWKVjs.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, _chunkG4SGYWKVjs.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, _chunkG4SGYWKVjs.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, _chunkG4SGYWKVjs.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, _chunkG4SGYWKVjs.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, _chunkG4SGYWKVjs.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, _chunkG4SGYWKVjs.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 = _chunkG4SGYWKVjs.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, _chunkG4SGYWKVjs.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, _chunkG4SGYWKVjs.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 _chunkG4SGYWKVjs.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 (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) _chunkU3F63UWDjs.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, _chunkKTWXY73Qjs.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
|
+
_chunkU3F63UWDjs.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: _chunkU3F63UWDjs.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, _chunkKTWXY73Qjs.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
|
+
_chunkU3F63UWDjs.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
|
+
_chunkU3F63UWDjs.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, _chunkKTWXY73Qjs.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
|
+
_chunkU3F63UWDjs.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, _chunkKTWXY73Qjs.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
|
+
_chunkU3F63UWDjs.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, _chunkKTWXY73Qjs.DeeplineClient)().runs.rerun(runId, {
|
|
4251
4251
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4252
4252
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4253
4253
|
});
|
|
4254
|
-
if (
|
|
4255
|
-
|
|
4254
|
+
if (_chunkU3F63UWDjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4255
|
+
_chunkU3F63UWDjs.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(_chunkQKMWQTMIjs.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 _chunkQKMWQTMIjs.writeRunDatasetCsv.call(void 0, {
|
|
5086
5086
|
rows: this.rows,
|
|
5087
5087
|
columns: this.#info.columns,
|
|
5088
5088
|
outPath
|
|
@@ -6863,7 +6863,7 @@ function renderOutcome(outcome) {
|
|
|
6863
6863
|
function printResult2(input) {
|
|
6864
6864
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6865
6865
|
if (failed) process.exitCode = 1;
|
|
6866
|
-
|
|
6866
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
6867
6867
|
{
|
|
6868
6868
|
deployment: { ...input.deployment, status: input.status },
|
|
6869
6869
|
plays: input.outcomes,
|
|
@@ -6888,7 +6888,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6888
6888
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6889
6889
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6890
6890
|
});
|
|
6891
|
-
const { http, config } =
|
|
6891
|
+
const { http, config } = _chunkU3F63UWDjs.getAuthedHttpClient.call(void 0, );
|
|
6892
6892
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6893
6893
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6894
6894
|
deliveryId,
|
|
@@ -6915,7 +6915,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6915
6915
|
},
|
|
6916
6916
|
{
|
|
6917
6917
|
bundle: bundleDeployPlayFile,
|
|
6918
|
-
fetchImpl:
|
|
6918
|
+
fetchImpl: _chunkB7NJ5JQ2js.fetchWithDeploymentProtection,
|
|
6919
6919
|
// The plays are already here: "opening" the source is naming it.
|
|
6920
6920
|
openSource: async () => ({
|
|
6921
6921
|
open: async () => ({ repoRoot: root })
|
|
@@ -7041,7 +7041,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
7041
7041
|
// src/cli/renderers/local-play-execution.ts
|
|
7042
7042
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7043
7043
|
if (options.dryRun) {
|
|
7044
|
-
|
|
7044
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7045
7045
|
return;
|
|
7046
7046
|
}
|
|
7047
7047
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7213,7 +7213,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7213
7213
|
const startedAt = Date.now();
|
|
7214
7214
|
try {
|
|
7215
7215
|
const result = run();
|
|
7216
|
-
|
|
7216
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
7217
7217
|
phase,
|
|
7218
7218
|
ms: Date.now() - startedAt,
|
|
7219
7219
|
ok: true,
|
|
@@ -7221,7 +7221,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7221
7221
|
});
|
|
7222
7222
|
return result;
|
|
7223
7223
|
} catch (error) {
|
|
7224
|
-
|
|
7224
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
7225
7225
|
phase,
|
|
7226
7226
|
ms: Date.now() - startedAt,
|
|
7227
7227
|
ok: false,
|
|
@@ -8008,7 +8008,7 @@ function playStatusErrorText(status) {
|
|
|
8008
8008
|
function isRetryablePendingStartFailure(status) {
|
|
8009
8009
|
if (status.status !== "failed") return false;
|
|
8010
8010
|
if (status.runId && status.runId !== "pending") return false;
|
|
8011
|
-
return
|
|
8011
|
+
return _chunkG4SGYWKVjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8012
8012
|
}
|
|
8013
8013
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
8014
8014
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -8057,13 +8057,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
8057
8057
|
}, _class);
|
|
8058
8058
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8059
8059
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8060
|
-
if (!
|
|
8060
|
+
if (!_chunkG4SGYWKVjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8061
8061
|
return false;
|
|
8062
8062
|
}
|
|
8063
|
-
if (
|
|
8063
|
+
if (_chunkG4SGYWKVjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8064
8064
|
return true;
|
|
8065
8065
|
}
|
|
8066
|
-
return state.verbose === true &&
|
|
8066
|
+
return state.verbose === true && _chunkG4SGYWKVjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8067
8067
|
}
|
|
8068
8068
|
function getEventPayload(event) {
|
|
8069
8069
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8565,7 +8565,7 @@ function resolveRunPlayName(status, runId) {
|
|
|
8565
8565
|
}
|
|
8566
8566
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
8567
8567
|
if (open2 && dashboardUrl) {
|
|
8568
|
-
|
|
8568
|
+
_chunkU3F63UWDjs.openInBrowser.call(void 0, dashboardUrl);
|
|
8569
8569
|
}
|
|
8570
8570
|
}
|
|
8571
8571
|
function printPlayLogLines(input) {
|
|
@@ -8642,7 +8642,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8642
8642
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8643
8643
|
});
|
|
8644
8644
|
} catch (error) {
|
|
8645
|
-
if (
|
|
8645
|
+
if (_chunkG4SGYWKVjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8646
8646
|
return null;
|
|
8647
8647
|
}
|
|
8648
8648
|
throw error;
|
|
@@ -8722,9 +8722,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8722
8722
|
signal: controller.signal,
|
|
8723
8723
|
deferLogs: !input.emitLogs,
|
|
8724
8724
|
omitTerminalLogs: !input.emitLogs,
|
|
8725
|
-
...
|
|
8725
|
+
..._chunkVBGPRRJ6js.isCliTraceEnabled.call(void 0, ) ? {
|
|
8726
8726
|
onPoll: (observation) => {
|
|
8727
|
-
|
|
8727
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
8728
8728
|
phase: "play_watch_poll",
|
|
8729
8729
|
workflowId: input.workflowId,
|
|
8730
8730
|
ms: observation.durationMs,
|
|
@@ -8738,7 +8738,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8738
8738
|
full: input.fullJson,
|
|
8739
8739
|
billing: false,
|
|
8740
8740
|
onStatus: async (status) => {
|
|
8741
|
-
|
|
8741
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
8742
8742
|
phase: "play_watch_terminal_status",
|
|
8743
8743
|
workflowId: input.workflowId,
|
|
8744
8744
|
full: input.fullJson === true
|
|
@@ -8808,7 +8808,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8808
8808
|
});
|
|
8809
8809
|
} catch (error) {
|
|
8810
8810
|
if (!(error instanceof _chunkJDMR33HSjs.CliPlayAdmissionUnsupportedError)) throw error;
|
|
8811
|
-
await
|
|
8811
|
+
await _chunkTLPW2SHSjs.checkPlayRunCompatibility.call(void 0,
|
|
8812
8812
|
input.client.baseUrl,
|
|
8813
8813
|
input.maintenancePolicy
|
|
8814
8814
|
);
|
|
@@ -8856,7 +8856,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8856
8856
|
}
|
|
8857
8857
|
openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
|
|
8858
8858
|
input.progress.phase("running");
|
|
8859
|
-
|
|
8859
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
8860
8860
|
phase: "cli.play_start_admitted",
|
|
8861
8861
|
ms: Date.now() - startedAt,
|
|
8862
8862
|
ok: true,
|
|
@@ -8873,7 +8873,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8873
8873
|
startedAt,
|
|
8874
8874
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8875
8875
|
});
|
|
8876
|
-
const initialStatus =
|
|
8876
|
+
const initialStatus = _chunkG4SGYWKVjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8877
8877
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8878
8878
|
client: input.client,
|
|
8879
8879
|
status: initialStatus,
|
|
@@ -8881,7 +8881,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8881
8881
|
jsonOutput: input.jsonOutput,
|
|
8882
8882
|
fromDurableStatus: true
|
|
8883
8883
|
});
|
|
8884
|
-
|
|
8884
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
8885
8885
|
phase: "play_watch_terminal_status",
|
|
8886
8886
|
workflowId,
|
|
8887
8887
|
full: true,
|
|
@@ -8936,7 +8936,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8936
8936
|
);
|
|
8937
8937
|
} catch (error) {
|
|
8938
8938
|
if (error instanceof _chunkJDMR33HSjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
8939
|
-
await
|
|
8939
|
+
await _chunkTLPW2SHSjs.checkPlayRunCompatibility.call(void 0,
|
|
8940
8940
|
input.client.baseUrl,
|
|
8941
8941
|
input.maintenancePolicy
|
|
8942
8942
|
);
|
|
@@ -8963,7 +8963,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8963
8963
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
8964
8964
|
);
|
|
8965
8965
|
}
|
|
8966
|
-
|
|
8966
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
8967
8967
|
phase: "cli.play_start_stream_retry",
|
|
8968
8968
|
ms: 0,
|
|
8969
8969
|
ok: true,
|
|
@@ -8984,7 +8984,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8984
8984
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
8985
8985
|
);
|
|
8986
8986
|
}
|
|
8987
|
-
|
|
8987
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
8988
8988
|
phase: "cli.play_start_stream_retry",
|
|
8989
8989
|
ms: 0,
|
|
8990
8990
|
ok: true,
|
|
@@ -9029,7 +9029,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9029
9029
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9030
9030
|
launchConfirmed = true;
|
|
9031
9031
|
await _optionalChain([input, 'access', _317 => _317.onRunAdmitted, 'optionalCall', _318 => _318(runId)]);
|
|
9032
|
-
|
|
9032
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
9033
9033
|
phase: "cli.play_start_admitted",
|
|
9034
9034
|
ms: Date.now() - startedAt,
|
|
9035
9035
|
ok: true,
|
|
@@ -9063,7 +9063,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9063
9063
|
full: input.fullJson
|
|
9064
9064
|
});
|
|
9065
9065
|
} catch (error) {
|
|
9066
|
-
if (
|
|
9066
|
+
if (_chunkG4SGYWKVjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9067
9067
|
return null;
|
|
9068
9068
|
}
|
|
9069
9069
|
throw error;
|
|
@@ -9201,7 +9201,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9201
9201
|
};
|
|
9202
9202
|
}
|
|
9203
9203
|
if (!canonicalTerminal) {
|
|
9204
|
-
|
|
9204
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
9205
9205
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9206
9206
|
ms: Date.now() - startedAt,
|
|
9207
9207
|
ok: true,
|
|
@@ -9222,14 +9222,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9222
9222
|
fromDurableStatus
|
|
9223
9223
|
}) : canonicalTerminal;
|
|
9224
9224
|
if (input.fullJson === true) {
|
|
9225
|
-
|
|
9225
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
9226
9226
|
phase: "play_watch_terminal_status",
|
|
9227
9227
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9228
9228
|
full: true,
|
|
9229
9229
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9230
9230
|
});
|
|
9231
9231
|
}
|
|
9232
|
-
|
|
9232
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
9233
9233
|
phase: "cli.play_start_stream_terminal",
|
|
9234
9234
|
ms: Date.now() - startedAt,
|
|
9235
9235
|
ok: true,
|
|
@@ -9249,7 +9249,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9249
9249
|
clearTimeout(timeout);
|
|
9250
9250
|
}
|
|
9251
9251
|
controller.abort();
|
|
9252
|
-
|
|
9252
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
9253
9253
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9254
9254
|
ms: Date.now() - startedAt,
|
|
9255
9255
|
ok: true,
|
|
@@ -9280,7 +9280,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9280
9280
|
if (timedOut) {
|
|
9281
9281
|
const terminal = await fetchKnownTerminalStatus();
|
|
9282
9282
|
if (terminal) {
|
|
9283
|
-
|
|
9283
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
9284
9284
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9285
9285
|
ms: Date.now() - startedAt,
|
|
9286
9286
|
ok: true,
|
|
@@ -9300,7 +9300,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9300
9300
|
lastPhase
|
|
9301
9301
|
});
|
|
9302
9302
|
}
|
|
9303
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9303
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkG4SGYWKVjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9304
9304
|
if (timeout) {
|
|
9305
9305
|
clearTimeout(timeout);
|
|
9306
9306
|
}
|
|
@@ -9311,7 +9311,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9311
9311
|
`
|
|
9312
9312
|
);
|
|
9313
9313
|
}
|
|
9314
|
-
|
|
9314
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
9315
9315
|
phase: "cli.play_start_stream_reconnect",
|
|
9316
9316
|
ms: Date.now() - startedAt,
|
|
9317
9317
|
ok: true,
|
|
@@ -9338,7 +9338,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9338
9338
|
});
|
|
9339
9339
|
}
|
|
9340
9340
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9341
|
-
|
|
9341
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
9342
9342
|
phase: "cli.play_start_stream_transient_failure",
|
|
9343
9343
|
ms: Date.now() - startedAt,
|
|
9344
9344
|
ok: false,
|
|
@@ -9366,7 +9366,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9366
9366
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9367
9367
|
);
|
|
9368
9368
|
}
|
|
9369
|
-
|
|
9369
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
9370
9370
|
phase: "cli.play_start_stream_reconnect",
|
|
9371
9371
|
ms: Date.now() - startedAt,
|
|
9372
9372
|
ok: true,
|
|
@@ -9446,7 +9446,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9446
9446
|
"logs"
|
|
9447
9447
|
]);
|
|
9448
9448
|
function formatPlayLogLine(rawLine, state) {
|
|
9449
|
-
const classified =
|
|
9449
|
+
const classified = _chunkG4SGYWKVjs.classifyLogLine.call(void 0, rawLine);
|
|
9450
9450
|
const line = classified.line;
|
|
9451
9451
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9452
9452
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _323 => _323[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9461,14 +9461,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9461
9461
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9462
9462
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9463
9463
|
if (providerWait && !state.verbose) {
|
|
9464
|
-
return
|
|
9464
|
+
return _chunkG4SGYWKVjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9465
9465
|
}
|
|
9466
9466
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9467
9467
|
if (mapProgress && !state.verbose) {
|
|
9468
|
-
return
|
|
9468
|
+
return _chunkG4SGYWKVjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9469
9469
|
}
|
|
9470
9470
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9471
|
-
if (!
|
|
9471
|
+
if (!_chunkG4SGYWKVjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9472
9472
|
return null;
|
|
9473
9473
|
}
|
|
9474
9474
|
if (state.emittedRunnerStarted) {
|
|
@@ -9481,7 +9481,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9481
9481
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9482
9482
|
);
|
|
9483
9483
|
if (mapStart) {
|
|
9484
|
-
if (!
|
|
9484
|
+
if (!_chunkG4SGYWKVjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9485
9485
|
return null;
|
|
9486
9486
|
}
|
|
9487
9487
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9491,7 +9491,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9491
9491
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9492
9492
|
);
|
|
9493
9493
|
if (mapDone) {
|
|
9494
|
-
if (!
|
|
9494
|
+
if (!_chunkG4SGYWKVjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9495
9495
|
return null;
|
|
9496
9496
|
}
|
|
9497
9497
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10780,7 +10780,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10780
10780
|
(line) => typeof line === "string"
|
|
10781
10781
|
);
|
|
10782
10782
|
if (tail.length === 0) return [];
|
|
10783
|
-
const shown = tail.map((line) =>
|
|
10783
|
+
const shown = tail.map((line) => _chunkG4SGYWKVjs.classifyLogLine.call(void 0, line)).filter(
|
|
10784
10784
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10785
10785
|
).slice(-8);
|
|
10786
10786
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11075,11 +11075,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11075
11075
|
}
|
|
11076
11076
|
function writePlayResult(status, jsonOutput, options) {
|
|
11077
11077
|
const packaged = getPlayRunPackage(status);
|
|
11078
|
-
if (status.package)
|
|
11078
|
+
if (status.package) _chunkQKMWQTMIjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11079
11079
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _406 => _406.hits]), () => ( null));
|
|
11080
11080
|
if (jsonOutput) {
|
|
11081
11081
|
const payload2 = _optionalChain([options, 'optionalAccess', _407 => _407.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11082
|
-
|
|
11082
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
11083
11083
|
hits ? { ...payload2, hits } : payload2,
|
|
11084
11084
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _408 => _408.jsonFields]) }
|
|
11085
11085
|
);
|
|
@@ -11095,7 +11095,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11095
11095
|
...buildPlayCompletionTextLines(status),
|
|
11096
11096
|
...formatRunHitsLines(hits)
|
|
11097
11097
|
];
|
|
11098
|
-
|
|
11098
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11099
11099
|
json: false,
|
|
11100
11100
|
text: `${lines2.join("\n")}
|
|
11101
11101
|
`
|
|
@@ -11146,7 +11146,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11146
11146
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11147
11147
|
const compact = compactPlayStatus(status);
|
|
11148
11148
|
const payload = _optionalChain([options, 'optionalAccess', _410 => _410.fullJson]) ? status : compact;
|
|
11149
|
-
|
|
11149
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
11150
11150
|
{
|
|
11151
11151
|
...payload,
|
|
11152
11152
|
render: {
|
|
@@ -11355,7 +11355,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11355
11355
|
}
|
|
11356
11356
|
offset += page.rows.length;
|
|
11357
11357
|
}
|
|
11358
|
-
const withError =
|
|
11358
|
+
const withError = _chunkQKMWQTMIjs.tableExportHasFailedRows.call(void 0,
|
|
11359
11359
|
sheetRows.filter(
|
|
11360
11360
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11361
11361
|
)
|
|
@@ -11371,7 +11371,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11371
11371
|
return [
|
|
11372
11372
|
withError ? {
|
|
11373
11373
|
...exported,
|
|
11374
|
-
[
|
|
11374
|
+
[_chunkQKMWQTMIjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkQKMWQTMIjs.tableExportErrorCell.call(void 0,
|
|
11375
11375
|
row
|
|
11376
11376
|
)
|
|
11377
11377
|
} : exported
|
|
@@ -11906,7 +11906,7 @@ function renderServerResultView(value) {
|
|
|
11906
11906
|
function writeStartedPlayRun(input) {
|
|
11907
11907
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
11908
11908
|
const run = input.package.run;
|
|
11909
|
-
|
|
11909
|
+
_chunkQKMWQTMIjs.recordPlayTermination.call(void 0, {
|
|
11910
11910
|
id: run.id,
|
|
11911
11911
|
status: run.status,
|
|
11912
11912
|
finishedAt: run.finishedAt
|
|
@@ -11919,7 +11919,7 @@ function writeStartedPlayRun(input) {
|
|
|
11919
11919
|
dashboardUrl: input.dashboardUrl,
|
|
11920
11920
|
package: input.package
|
|
11921
11921
|
};
|
|
11922
|
-
|
|
11922
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
11923
11923
|
json: true,
|
|
11924
11924
|
fields: input.jsonFields
|
|
11925
11925
|
});
|
|
@@ -11941,7 +11941,7 @@ function writeStartedPlayRun(input) {
|
|
|
11941
11941
|
input.progress.writeLine(output2, process.stdout);
|
|
11942
11942
|
return;
|
|
11943
11943
|
}
|
|
11944
|
-
|
|
11944
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0, input.package, {
|
|
11945
11945
|
json: false,
|
|
11946
11946
|
text: `${output2}
|
|
11947
11947
|
`
|
|
@@ -11970,7 +11970,7 @@ function writeStartedPlayRun(input) {
|
|
|
11970
11970
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
11971
11971
|
];
|
|
11972
11972
|
if (input.jsonOutput) {
|
|
11973
|
-
|
|
11973
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
11974
11974
|
return;
|
|
11975
11975
|
}
|
|
11976
11976
|
if (input.dashboardUrl) {
|
|
@@ -11981,7 +11981,7 @@ function writeStartedPlayRun(input) {
|
|
|
11981
11981
|
input.progress.writeLine(output, process.stdout);
|
|
11982
11982
|
return;
|
|
11983
11983
|
}
|
|
11984
|
-
|
|
11984
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
11985
11985
|
{
|
|
11986
11986
|
...payload,
|
|
11987
11987
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -11991,7 +11991,7 @@ function writeStartedPlayRun(input) {
|
|
|
11991
11991
|
);
|
|
11992
11992
|
}
|
|
11993
11993
|
function parsePlayCheckOptions(args) {
|
|
11994
|
-
const selection =
|
|
11994
|
+
const selection = _chunkU3F63UWDjs.parseJsonFields.call(void 0, args, "check");
|
|
11995
11995
|
args = selection.args;
|
|
11996
11996
|
const target = args[0];
|
|
11997
11997
|
if (!target || target.startsWith("-")) {
|
|
@@ -12003,7 +12003,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12003
12003
|
if (arg !== "--json" && arg !== "--full")
|
|
12004
12004
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12005
12005
|
}
|
|
12006
|
-
const jsonOutput =
|
|
12006
|
+
const jsonOutput = _chunkU3F63UWDjs.argsWantJson.call(void 0, args);
|
|
12007
12007
|
return {
|
|
12008
12008
|
target,
|
|
12009
12009
|
jsonOutput,
|
|
@@ -12079,7 +12079,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12079
12079
|
useLatest,
|
|
12080
12080
|
expectedArtifactHash,
|
|
12081
12081
|
dryRun,
|
|
12082
|
-
jsonOutput:
|
|
12082
|
+
jsonOutput: _chunkU3F63UWDjs.argsWantJson.call(void 0, args)
|
|
12083
12083
|
};
|
|
12084
12084
|
}
|
|
12085
12085
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12120,7 +12120,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12120
12120
|
target,
|
|
12121
12121
|
expectedArtifactHash,
|
|
12122
12122
|
dryRun,
|
|
12123
|
-
jsonOutput:
|
|
12123
|
+
jsonOutput: _chunkU3F63UWDjs.argsWantJson.call(void 0, args)
|
|
12124
12124
|
};
|
|
12125
12125
|
}
|
|
12126
12126
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12331,7 +12331,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12331
12331
|
async function handlePlayCheck(args) {
|
|
12332
12332
|
const options = parsePlayCheckOptions(args);
|
|
12333
12333
|
if (!isFileTarget(options.target)) {
|
|
12334
|
-
const client = new (0,
|
|
12334
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
12335
12335
|
try {
|
|
12336
12336
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12337
12337
|
command: "check"
|
|
@@ -12360,7 +12360,7 @@ async function handlePlayCheck(args) {
|
|
|
12360
12360
|
},
|
|
12361
12361
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12362
12362
|
};
|
|
12363
|
-
|
|
12363
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0, result, {
|
|
12364
12364
|
json: options.jsonOutput,
|
|
12365
12365
|
fields: options.jsonFields,
|
|
12366
12366
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12370,7 +12370,7 @@ async function handlePlayCheck(args) {
|
|
|
12370
12370
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12371
12371
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12372
12372
|
if (options.jsonOutput) {
|
|
12373
|
-
|
|
12373
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
12374
12374
|
{
|
|
12375
12375
|
kind: "play_check",
|
|
12376
12376
|
checked: "named_contract",
|
|
@@ -12412,7 +12412,7 @@ async function handlePlayCheck(args) {
|
|
|
12412
12412
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12413
12413
|
publishCommand: _optionalChain([primary, 'optionalAccess', _460 => _460.result, 'access', _461 => _461.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12414
12414
|
});
|
|
12415
|
-
|
|
12415
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0, output, {
|
|
12416
12416
|
json: options.jsonOutput,
|
|
12417
12417
|
fields: options.jsonFields,
|
|
12418
12418
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12466,7 +12466,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12466
12466
|
}
|
|
12467
12467
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12468
12468
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12469
|
-
const client = new (0,
|
|
12469
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
12470
12470
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12471
12471
|
const checked = await checkLocalPlayGraph({
|
|
12472
12472
|
client,
|
|
@@ -12519,11 +12519,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12519
12519
|
throw new Error("Expected a file-backed play run target.");
|
|
12520
12520
|
}
|
|
12521
12521
|
let client;
|
|
12522
|
-
let cliAdmission =
|
|
12522
|
+
let cliAdmission = _chunkTLPW2SHSjs.usesInlinePlayAdmission.call(void 0,
|
|
12523
12523
|
"plays run",
|
|
12524
12524
|
process.argv.slice(2)
|
|
12525
12525
|
);
|
|
12526
|
-
const progress = _nullishCoalesce(
|
|
12526
|
+
const progress = _nullishCoalesce(_chunkM4QO3GRDjs.getActiveCliProgress.call(void 0, ), () => ( _chunkM4QO3GRDjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12527
12527
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12528
12528
|
progress.phase("compiling play");
|
|
12529
12529
|
const sourceCode = traceCliSync(
|
|
@@ -12540,7 +12540,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12540
12540
|
}
|
|
12541
12541
|
let graph;
|
|
12542
12542
|
try {
|
|
12543
|
-
graph = await
|
|
12543
|
+
graph = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
12544
12544
|
"cli.play_file_bundle_graph",
|
|
12545
12545
|
{ targetKind: "file" },
|
|
12546
12546
|
() => collectBundledPlayGraph(
|
|
@@ -12554,14 +12554,14 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12554
12554
|
if (options.dryRun) {
|
|
12555
12555
|
progress.complete();
|
|
12556
12556
|
renderLocalPlayExecutionPlan(
|
|
12557
|
-
|
|
12557
|
+
_chunkZANUM4XVjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
|
|
12558
12558
|
{ dryRun: true, json: options.jsonOutput }
|
|
12559
12559
|
);
|
|
12560
12560
|
return 0;
|
|
12561
12561
|
}
|
|
12562
|
-
client = new (0,
|
|
12562
|
+
client = new (0, _chunkKTWXY73Qjs.DeeplineClient)(playRunClientOptions(options));
|
|
12563
12563
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12564
|
-
await
|
|
12564
|
+
await _chunkTLPW2SHSjs.checkPlayRunCompatibility.call(void 0,
|
|
12565
12565
|
client.baseUrl,
|
|
12566
12566
|
options.maintenancePolicy
|
|
12567
12567
|
);
|
|
@@ -12574,7 +12574,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12574
12574
|
});
|
|
12575
12575
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12576
12576
|
if (canDeferCompilerManifest) {
|
|
12577
|
-
|
|
12577
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
12578
12578
|
phase: "cli.play_file_compile_manifests",
|
|
12579
12579
|
ms: 0,
|
|
12580
12580
|
ok: true,
|
|
@@ -12583,7 +12583,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12583
12583
|
reason: "validated_by_run_route"
|
|
12584
12584
|
});
|
|
12585
12585
|
} else {
|
|
12586
|
-
await
|
|
12586
|
+
await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
12587
12587
|
"cli.play_file_compile_manifests",
|
|
12588
12588
|
{ targetKind: "file", skipped: false },
|
|
12589
12589
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12604,13 +12604,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12604
12604
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12605
12605
|
try {
|
|
12606
12606
|
renderLocalPlayExecutionPlan(
|
|
12607
|
-
|
|
12607
|
+
_chunkZANUM4XVjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12608
12608
|
);
|
|
12609
12609
|
progress.phase("pinning imported plays");
|
|
12610
|
-
graph = await
|
|
12610
|
+
graph = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
12611
12611
|
"cli.play_file_pin_imports",
|
|
12612
12612
|
{ targetKind: "file" },
|
|
12613
|
-
() =>
|
|
12613
|
+
() => _chunkZANUM4XVjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12614
12614
|
);
|
|
12615
12615
|
bundleResult = graph.root;
|
|
12616
12616
|
} catch (error) {
|
|
@@ -12626,7 +12626,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12626
12626
|
const fileInputBindings = _chunkJDMR33HSjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12627
12627
|
_optionalChain([compilerManifest, 'optionalAccess', _470 => _470.staticPipeline])
|
|
12628
12628
|
);
|
|
12629
|
-
const stagedFileInputs = await
|
|
12629
|
+
const stagedFileInputs = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
12630
12630
|
"cli.play_stage_inputs",
|
|
12631
12631
|
{
|
|
12632
12632
|
targetKind: "file",
|
|
@@ -12673,7 +12673,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12673
12673
|
};
|
|
12674
12674
|
if (options.watch) {
|
|
12675
12675
|
progress.phase("starting run");
|
|
12676
|
-
const finalStatus = await
|
|
12676
|
+
const finalStatus = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
12677
12677
|
"cli.play_start_watch",
|
|
12678
12678
|
{ targetKind: "file", playName },
|
|
12679
12679
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12733,7 +12733,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12733
12733
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12734
12734
|
}
|
|
12735
12735
|
progress.phase("starting run");
|
|
12736
|
-
const started = await
|
|
12736
|
+
const started = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
12737
12737
|
"cli.play_start_unwatched",
|
|
12738
12738
|
{ targetKind: "file", playName },
|
|
12739
12739
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _477 => _477.onSubmission]) }).catch(async (error) => {
|
|
@@ -12784,12 +12784,12 @@ async function handleNamedRun(options, hooks) {
|
|
|
12784
12784
|
if (options.target.kind !== "name") {
|
|
12785
12785
|
throw new Error("Expected a named play run target.");
|
|
12786
12786
|
}
|
|
12787
|
-
const client = new (0,
|
|
12788
|
-
let cliAdmission =
|
|
12787
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)(playRunClientOptions(options));
|
|
12788
|
+
let cliAdmission = _chunkTLPW2SHSjs.usesInlinePlayAdmission.call(void 0,
|
|
12789
12789
|
"plays run",
|
|
12790
12790
|
process.argv.slice(2)
|
|
12791
12791
|
);
|
|
12792
|
-
const progress = _nullishCoalesce(
|
|
12792
|
+
const progress = _nullishCoalesce(_chunkM4QO3GRDjs.getActiveCliProgress.call(void 0, ), () => ( _chunkM4QO3GRDjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12793
12793
|
const playName = options.target.name;
|
|
12794
12794
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
12795
12795
|
try {
|
|
@@ -12804,14 +12804,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
12804
12804
|
});
|
|
12805
12805
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
12806
12806
|
progress.phase("loading play definition");
|
|
12807
|
-
return
|
|
12807
|
+
return _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
12808
12808
|
"cli.play_load_definition",
|
|
12809
12809
|
{ targetKind: "name", playName, skipped: false },
|
|
12810
12810
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
12811
12811
|
command: "run"
|
|
12812
12812
|
})
|
|
12813
12813
|
);
|
|
12814
|
-
})() : (
|
|
12814
|
+
})() : (_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
12815
12815
|
phase: "cli.play_load_definition",
|
|
12816
12816
|
ms: 0,
|
|
12817
12817
|
ok: true,
|
|
@@ -12820,7 +12820,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12820
12820
|
skipped: true
|
|
12821
12821
|
}), null);
|
|
12822
12822
|
progress.phase("selecting revision");
|
|
12823
|
-
const selectedRevisionId = await
|
|
12823
|
+
const selectedRevisionId = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
12824
12824
|
"cli.play_select_revision",
|
|
12825
12825
|
{
|
|
12826
12826
|
targetKind: "name",
|
|
@@ -12845,10 +12845,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
12845
12845
|
..._chunkJDMR33HSjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
12846
12846
|
] : [];
|
|
12847
12847
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
12848
|
-
await
|
|
12848
|
+
await _chunkTLPW2SHSjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
12849
12849
|
cliAdmission = false;
|
|
12850
12850
|
}
|
|
12851
|
-
const stagedFileInputs = await
|
|
12851
|
+
const stagedFileInputs = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
12852
12852
|
"cli.play_stage_inputs",
|
|
12853
12853
|
{
|
|
12854
12854
|
targetKind: "name",
|
|
@@ -12892,7 +12892,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12892
12892
|
});
|
|
12893
12893
|
if (options.watch) {
|
|
12894
12894
|
progress.phase("starting run");
|
|
12895
|
-
const finalStatus = await
|
|
12895
|
+
const finalStatus = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
12896
12896
|
"cli.play_start_watch",
|
|
12897
12897
|
{ targetKind: "name", playName },
|
|
12898
12898
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12955,7 +12955,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12955
12955
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12956
12956
|
}
|
|
12957
12957
|
progress.phase("starting run");
|
|
12958
|
-
const started = await
|
|
12958
|
+
const started = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
12959
12959
|
"cli.play_start_unwatched",
|
|
12960
12960
|
{ targetKind: "name", playName },
|
|
12961
12961
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _490 => _490.onSubmission]) }).catch(async (error) => {
|
|
@@ -13000,7 +13000,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13000
13000
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13001
13001
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _498 => _498.exec, 'call', _499 => _499(status.runId), 'optionalAccess', _500 => _500[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13002
13002
|
if (!terminal) {
|
|
13003
|
-
|
|
13003
|
+
_chunkQKMWQTMIjs.writeExecutionOutput.call(void 0,
|
|
13004
13004
|
{ id: status.runId, status: status.status, next },
|
|
13005
13005
|
output
|
|
13006
13006
|
);
|
|
@@ -13075,10 +13075,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13075
13075
|
};
|
|
13076
13076
|
}
|
|
13077
13077
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13078
|
-
const allCollections =
|
|
13078
|
+
const allCollections = _chunkQKMWQTMIjs.outputCollections.call(void 0, data).map(
|
|
13079
13079
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13080
13080
|
);
|
|
13081
|
-
|
|
13081
|
+
_chunkQKMWQTMIjs.writeExecutionOutput.call(void 0,
|
|
13082
13082
|
{
|
|
13083
13083
|
id: status.runId,
|
|
13084
13084
|
status: status.status,
|
|
@@ -13099,7 +13099,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13099
13099
|
}
|
|
13100
13100
|
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;
|
|
13101
13101
|
async function handlePlayRun(args, hooks) {
|
|
13102
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13102
|
+
const parsedOptions = Array.isArray(args) ? _chunkNBVYS6VGjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13103
13103
|
const options = parsedOptions.runIdFile ? {
|
|
13104
13104
|
...parsedOptions,
|
|
13105
13105
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13116,7 +13116,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13116
13116
|
JSON.stringify({
|
|
13117
13117
|
version: 1,
|
|
13118
13118
|
admissionState: "submitted_unknown",
|
|
13119
|
-
baseUrl: new (0,
|
|
13119
|
+
baseUrl: new (0, _chunkKTWXY73Qjs.DeeplineClient)().baseUrl,
|
|
13120
13120
|
...intent
|
|
13121
13121
|
})
|
|
13122
13122
|
);
|
|
@@ -13345,7 +13345,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13345
13345
|
);
|
|
13346
13346
|
return `${lines.join("\n")}
|
|
13347
13347
|
|
|
13348
|
-
${
|
|
13348
|
+
${_chunkU3F63UWDjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13349
13349
|
}
|
|
13350
13350
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13351
13351
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13369,7 +13369,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13369
13369
|
}
|
|
13370
13370
|
}
|
|
13371
13371
|
async function handleRunGet(args) {
|
|
13372
|
-
const selection =
|
|
13372
|
+
const selection = _chunkU3F63UWDjs.parseJsonFields.call(void 0,
|
|
13373
13373
|
args,
|
|
13374
13374
|
args.includes("--config") ? "config" : "get"
|
|
13375
13375
|
);
|
|
@@ -13382,7 +13382,7 @@ async function handleRunGet(args) {
|
|
|
13382
13382
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13383
13383
|
return 1;
|
|
13384
13384
|
}
|
|
13385
|
-
const client = new (0,
|
|
13385
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
13386
13386
|
const timing = args.includes("--timing");
|
|
13387
13387
|
if (args.includes("--web-url")) {
|
|
13388
13388
|
const status2 = await withRunReadTiming(
|
|
@@ -13397,7 +13397,7 @@ async function handleRunGet(args) {
|
|
|
13397
13397
|
return 1;
|
|
13398
13398
|
}
|
|
13399
13399
|
const dashboardUrl2 = _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13400
|
-
|
|
13400
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
13401
13401
|
{ dashboardUrl: dashboardUrl2 },
|
|
13402
13402
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
13403
13403
|
` }
|
|
@@ -13422,7 +13422,7 @@ async function handleRunGet(args) {
|
|
|
13422
13422
|
"This server does not support recorded configuration reads."
|
|
13423
13423
|
);
|
|
13424
13424
|
}
|
|
13425
|
-
|
|
13425
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
13426
13426
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13427
13427
|
{ json: true, fields: selection.fields }
|
|
13428
13428
|
);
|
|
@@ -13435,7 +13435,7 @@ async function handleRunGet(args) {
|
|
|
13435
13435
|
timing,
|
|
13436
13436
|
() => client.getRunInput(runId)
|
|
13437
13437
|
);
|
|
13438
|
-
|
|
13438
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13439
13439
|
return 0;
|
|
13440
13440
|
}
|
|
13441
13441
|
const full = args.includes("--full");
|
|
@@ -13448,7 +13448,7 @@ async function handleRunGet(args) {
|
|
|
13448
13448
|
failedLogs: args.includes("--log-failed")
|
|
13449
13449
|
})
|
|
13450
13450
|
);
|
|
13451
|
-
if (status.package)
|
|
13451
|
+
if (status.package) _chunkQKMWQTMIjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13452
13452
|
if (!status.package) {
|
|
13453
13453
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13454
13454
|
"runs get",
|
|
@@ -13461,8 +13461,8 @@ async function handleRunGet(args) {
|
|
|
13461
13461
|
) : status;
|
|
13462
13462
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13463
13463
|
const legacyDashboardUrl = legacyPlayName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13464
|
-
if (
|
|
13465
|
-
|
|
13464
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
13465
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
13466
13466
|
{
|
|
13467
13467
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13468
13468
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -13472,7 +13472,7 @@ async function handleRunGet(args) {
|
|
|
13472
13472
|
} else {
|
|
13473
13473
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13474
13474
|
if (legacyDashboardUrl)
|
|
13475
|
-
|
|
13475
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
13476
13476
|
{ dashboardUrl: legacyDashboardUrl },
|
|
13477
13477
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
13478
13478
|
` }
|
|
@@ -13502,10 +13502,10 @@ async function handleRunGet(args) {
|
|
|
13502
13502
|
)
|
|
13503
13503
|
]);
|
|
13504
13504
|
const hitLines = formatRunHitsLines(hits);
|
|
13505
|
-
const json =
|
|
13505
|
+
const json = _chunkU3F63UWDjs.argsWantJson.call(void 0, args);
|
|
13506
13506
|
const playName = resolveRunPlayName(status, runId);
|
|
13507
13507
|
const dashboardUrl = playName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13508
|
-
|
|
13508
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
13509
13509
|
{
|
|
13510
13510
|
...overview,
|
|
13511
13511
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13609,9 +13609,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13609
13609
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13610
13610
|
return 1;
|
|
13611
13611
|
}
|
|
13612
|
-
const status = await new (0,
|
|
13613
|
-
if (
|
|
13614
|
-
|
|
13612
|
+
const status = await new (0, _chunkKTWXY73Qjs.DeeplineClient)().runs.status(runId);
|
|
13613
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
13614
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13615
13615
|
return 0;
|
|
13616
13616
|
}
|
|
13617
13617
|
if (!status.available) {
|
|
@@ -13651,7 +13651,7 @@ async function handleRunsRerun(args) {
|
|
|
13651
13651
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13652
13652
|
return 1;
|
|
13653
13653
|
}
|
|
13654
|
-
const options = { json:
|
|
13654
|
+
const options = { json: _chunkU3F63UWDjs.argsWantJson.call(void 0, args) };
|
|
13655
13655
|
for (let index = 0; index < args.length; index += 1) {
|
|
13656
13656
|
if (args[index] === "--idempotency-key") {
|
|
13657
13657
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13717,8 +13717,8 @@ ${usage2}
|
|
|
13717
13717
|
Discover Plays: ${next.discover}
|
|
13718
13718
|
Active runs: ${next.running}`
|
|
13719
13719
|
);
|
|
13720
|
-
if (
|
|
13721
|
-
|
|
13720
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
13721
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
13722
13722
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13723
13723
|
{ json: true }
|
|
13724
13724
|
);
|
|
@@ -13733,7 +13733,7 @@ Active runs: ${next.running}`
|
|
|
13733
13733
|
console.error("--offset requires --play.");
|
|
13734
13734
|
return 1;
|
|
13735
13735
|
}
|
|
13736
|
-
const client = new (0,
|
|
13736
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
13737
13737
|
const page = await withRunReadTiming(
|
|
13738
13738
|
"runs list",
|
|
13739
13739
|
"run inventory",
|
|
@@ -13800,14 +13800,14 @@ Active runs: ${next.running}`
|
|
|
13800
13800
|
return lines2.join("\n");
|
|
13801
13801
|
});
|
|
13802
13802
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
13803
|
-
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}${
|
|
13803
|
+
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}${_chunkU3F63UWDjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
13804
13804
|
if (page.hasMore) {
|
|
13805
13805
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
13806
13806
|
lines.push(
|
|
13807
13807
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
13808
13808
|
);
|
|
13809
13809
|
}
|
|
13810
|
-
|
|
13810
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
13811
13811
|
{
|
|
13812
13812
|
runs,
|
|
13813
13813
|
count: runs.length,
|
|
@@ -13821,7 +13821,7 @@ Active runs: ${next.running}`
|
|
|
13821
13821
|
},
|
|
13822
13822
|
render: { sections: [{ title: "runs", lines }] }
|
|
13823
13823
|
},
|
|
13824
|
-
{ json:
|
|
13824
|
+
{ json: _chunkU3F63UWDjs.argsWantJson.call(void 0, args) }
|
|
13825
13825
|
);
|
|
13826
13826
|
return 0;
|
|
13827
13827
|
}
|
|
@@ -13851,7 +13851,7 @@ async function handleRunTail(args) {
|
|
|
13851
13851
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
13852
13852
|
return 1;
|
|
13853
13853
|
}
|
|
13854
|
-
const parsed =
|
|
13854
|
+
const parsed = _chunkG4SGYWKVjs.parseLogLevel.call(void 0, value);
|
|
13855
13855
|
if (!parsed) {
|
|
13856
13856
|
console.error(
|
|
13857
13857
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -13889,9 +13889,9 @@ async function handleRunTail(args) {
|
|
|
13889
13889
|
);
|
|
13890
13890
|
return 1;
|
|
13891
13891
|
}
|
|
13892
|
-
const client = new (0,
|
|
13892
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
13893
13893
|
const jsonLines = args.includes("--jsonl");
|
|
13894
|
-
const jsonOutput = !jsonLines &&
|
|
13894
|
+
const jsonOutput = !jsonLines && _chunkU3F63UWDjs.argsWantJson.call(void 0, args);
|
|
13895
13895
|
const compact = args.includes("--compact");
|
|
13896
13896
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
13897
13897
|
const compactState = {
|
|
@@ -13972,7 +13972,7 @@ async function handleRunLogs(args) {
|
|
|
13972
13972
|
]);
|
|
13973
13973
|
const cursorIndex = args.indexOf("--cursor");
|
|
13974
13974
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
13975
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
13975
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkG4SGYWKVjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
13976
13976
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
13977
13977
|
return handleRunEventSearch(args);
|
|
13978
13978
|
}
|
|
@@ -14006,7 +14006,7 @@ async function handleRunLogs(args) {
|
|
|
14006
14006
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14007
14007
|
return 1;
|
|
14008
14008
|
}
|
|
14009
|
-
const parsed =
|
|
14009
|
+
const parsed = _chunkG4SGYWKVjs.parseLogLevel.call(void 0, value);
|
|
14010
14010
|
if (!parsed) {
|
|
14011
14011
|
console.error(
|
|
14012
14012
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14053,12 +14053,12 @@ async function handleRunLogs(args) {
|
|
|
14053
14053
|
);
|
|
14054
14054
|
return 1;
|
|
14055
14055
|
}
|
|
14056
|
-
const client = new (0,
|
|
14056
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
14057
14057
|
if (outPath) {
|
|
14058
14058
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14059
|
-
const logs = result2.entries.filter((line) =>
|
|
14059
|
+
const logs = result2.entries.filter((line) => _chunkG4SGYWKVjs.logLevelReaches.call(void 0, _chunkG4SGYWKVjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkG4SGYWKVjs.classifyLogLine.call(void 0, line).line);
|
|
14060
14060
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14061
|
-
|
|
14061
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
14062
14062
|
{
|
|
14063
14063
|
runId: result2.runId,
|
|
14064
14064
|
log_path: outPath,
|
|
@@ -14081,7 +14081,7 @@ async function handleRunLogs(args) {
|
|
|
14081
14081
|
]
|
|
14082
14082
|
}
|
|
14083
14083
|
},
|
|
14084
|
-
{ json:
|
|
14084
|
+
{ json: _chunkU3F63UWDjs.argsWantJson.call(void 0, args) }
|
|
14085
14085
|
);
|
|
14086
14086
|
return 0;
|
|
14087
14087
|
}
|
|
@@ -14112,7 +14112,7 @@ async function handleRunLogs(args) {
|
|
|
14112
14112
|
}
|
|
14113
14113
|
};
|
|
14114
14114
|
const text = buildRunLogsText(filteredResult);
|
|
14115
|
-
|
|
14115
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
14116
14116
|
{
|
|
14117
14117
|
runId: result.runId,
|
|
14118
14118
|
totalCount: result.totalCount,
|
|
@@ -14136,7 +14136,7 @@ async function handleRunLogs(args) {
|
|
|
14136
14136
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14137
14137
|
},
|
|
14138
14138
|
{
|
|
14139
|
-
json:
|
|
14139
|
+
json: _chunkU3F63UWDjs.argsWantJson.call(void 0, args),
|
|
14140
14140
|
text
|
|
14141
14141
|
}
|
|
14142
14142
|
);
|
|
@@ -14160,7 +14160,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14160
14160
|
);
|
|
14161
14161
|
}
|
|
14162
14162
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14163
|
-
(entry) =>
|
|
14163
|
+
(entry) => _chunkG4SGYWKVjs.logLevelReaches.call(void 0, _chunkG4SGYWKVjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14164
14164
|
);
|
|
14165
14165
|
const selected = matching.slice(-limit);
|
|
14166
14166
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14170,7 +14170,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14170
14170
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _532 => _532.at, 'call', _533 => _533(-1), 'optionalAccess', _534 => _534.seq]), () => ( null)),
|
|
14171
14171
|
truncated: result.truncated || olderMatchesExist,
|
|
14172
14172
|
hasMore: olderMatchesExist,
|
|
14173
|
-
nextCursor: olderMatchesExist ?
|
|
14173
|
+
nextCursor: olderMatchesExist ? _chunkG4SGYWKVjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14174
14174
|
};
|
|
14175
14175
|
}
|
|
14176
14176
|
async function handleRunEventSearch(args) {
|
|
@@ -14237,7 +14237,7 @@ ${usage2}`);
|
|
|
14237
14237
|
namespace,
|
|
14238
14238
|
...backend ? { backend } : {}
|
|
14239
14239
|
} : void 0;
|
|
14240
|
-
const client = new (0,
|
|
14240
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
14241
14241
|
const result = await client.runs.searchEvents({
|
|
14242
14242
|
...runId ? { runId } : {},
|
|
14243
14243
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14309,7 +14309,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14309
14309
|
"--limit",
|
|
14310
14310
|
String(limit)
|
|
14311
14311
|
].join(" ") : null;
|
|
14312
|
-
|
|
14312
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
14313
14313
|
{
|
|
14314
14314
|
events,
|
|
14315
14315
|
nextCursor: result.nextCursor,
|
|
@@ -14320,14 +14320,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14320
14320
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14321
14321
|
},
|
|
14322
14322
|
{
|
|
14323
|
-
json:
|
|
14323
|
+
json: _chunkU3F63UWDjs.argsWantJson.call(void 0, args),
|
|
14324
14324
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14325
14325
|
}
|
|
14326
14326
|
);
|
|
14327
14327
|
return 0;
|
|
14328
14328
|
}
|
|
14329
14329
|
function buildRunLogsText(result) {
|
|
14330
|
-
const lines = result.entries.map((line) =>
|
|
14330
|
+
const lines = result.entries.map((line) => _chunkG4SGYWKVjs.classifyLogLine.call(void 0, line).line);
|
|
14331
14331
|
if (result.warning) {
|
|
14332
14332
|
if (lines.length > 0) lines.push("");
|
|
14333
14333
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14361,7 +14361,7 @@ async function handleRunStop(args) {
|
|
|
14361
14361
|
reason = args[++index];
|
|
14362
14362
|
}
|
|
14363
14363
|
}
|
|
14364
|
-
const client = new (0,
|
|
14364
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
14365
14365
|
const result = await client.runs.stop(runId, { reason });
|
|
14366
14366
|
const state = resolveRunStopState(result);
|
|
14367
14367
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14376,7 +14376,7 @@ async function handleRunStop(args) {
|
|
|
14376
14376
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14377
14377
|
`inspect: deepline runs get ${runId} --full`
|
|
14378
14378
|
];
|
|
14379
|
-
|
|
14379
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
14380
14380
|
{
|
|
14381
14381
|
...cancelling,
|
|
14382
14382
|
state,
|
|
@@ -14391,7 +14391,7 @@ async function handleRunStop(args) {
|
|
|
14391
14391
|
]
|
|
14392
14392
|
}
|
|
14393
14393
|
},
|
|
14394
|
-
{ json:
|
|
14394
|
+
{ json: _chunkU3F63UWDjs.argsWantJson.call(void 0, args) }
|
|
14395
14395
|
);
|
|
14396
14396
|
return 0;
|
|
14397
14397
|
}
|
|
@@ -14408,7 +14408,7 @@ async function handleRunStop(args) {
|
|
|
14408
14408
|
];
|
|
14409
14409
|
process.stderr.write(`${lines2.join("\n")}
|
|
14410
14410
|
`);
|
|
14411
|
-
|
|
14411
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
14412
14412
|
{
|
|
14413
14413
|
...result,
|
|
14414
14414
|
render: {
|
|
@@ -14423,7 +14423,7 @@ async function handleRunStop(args) {
|
|
|
14423
14423
|
]
|
|
14424
14424
|
}
|
|
14425
14425
|
},
|
|
14426
|
-
{ json:
|
|
14426
|
+
{ json: _chunkU3F63UWDjs.argsWantJson.call(void 0, args) }
|
|
14427
14427
|
);
|
|
14428
14428
|
return 1;
|
|
14429
14429
|
}
|
|
@@ -14434,12 +14434,12 @@ async function handleRunStop(args) {
|
|
|
14434
14434
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14435
14435
|
] : []
|
|
14436
14436
|
];
|
|
14437
|
-
|
|
14437
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
14438
14438
|
{
|
|
14439
14439
|
...result,
|
|
14440
14440
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14441
14441
|
},
|
|
14442
|
-
{ json:
|
|
14442
|
+
{ json: _chunkU3F63UWDjs.argsWantJson.call(void 0, args) }
|
|
14443
14443
|
);
|
|
14444
14444
|
return 0;
|
|
14445
14445
|
}
|
|
@@ -14489,18 +14489,18 @@ async function handleRunStopAll(args) {
|
|
|
14489
14489
|
reason = args[++index];
|
|
14490
14490
|
}
|
|
14491
14491
|
}
|
|
14492
|
-
const client = new (0,
|
|
14492
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
14493
14493
|
if (dryRun) {
|
|
14494
14494
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14495
14495
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14496
|
-
|
|
14496
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
14497
14497
|
{
|
|
14498
14498
|
...result2,
|
|
14499
14499
|
render: {
|
|
14500
14500
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14501
14501
|
}
|
|
14502
14502
|
},
|
|
14503
|
-
{ json:
|
|
14503
|
+
{ json: _chunkU3F63UWDjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14504
14504
|
` }
|
|
14505
14505
|
);
|
|
14506
14506
|
return 0;
|
|
@@ -14513,17 +14513,17 @@ async function handleRunStopAll(args) {
|
|
|
14513
14513
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14514
14514
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14515
14515
|
];
|
|
14516
|
-
|
|
14516
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
14517
14517
|
{
|
|
14518
14518
|
...result,
|
|
14519
14519
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14520
14520
|
},
|
|
14521
|
-
{ json:
|
|
14521
|
+
{ json: _chunkU3F63UWDjs.argsWantJson.call(void 0, args) }
|
|
14522
14522
|
);
|
|
14523
14523
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14524
14524
|
}
|
|
14525
14525
|
async function handleRunExport(args) {
|
|
14526
|
-
const selection =
|
|
14526
|
+
const selection = _chunkU3F63UWDjs.parseJsonFields.call(void 0, args, "export");
|
|
14527
14527
|
args = selection.args;
|
|
14528
14528
|
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]";
|
|
14529
14529
|
let runId;
|
|
@@ -14594,17 +14594,17 @@ async function handleRunExport(args) {
|
|
|
14594
14594
|
"INVALID_ARGUMENT"
|
|
14595
14595
|
);
|
|
14596
14596
|
}
|
|
14597
|
-
const client = new (0,
|
|
14597
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
14598
14598
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14599
14599
|
assertRunExportStatusIdentity(status, runId);
|
|
14600
14600
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14601
|
-
const progress =
|
|
14601
|
+
const progress = _chunkM4QO3GRDjs.createCliProgress.call(void 0, !_chunkU3F63UWDjs.argsWantJson.call(void 0, args));
|
|
14602
14602
|
try {
|
|
14603
14603
|
await waitForPlayCompletionByWatch({
|
|
14604
14604
|
client,
|
|
14605
14605
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14606
14606
|
workflowId: runId,
|
|
14607
|
-
jsonOutput:
|
|
14607
|
+
jsonOutput: _chunkU3F63UWDjs.argsWantJson.call(void 0, args),
|
|
14608
14608
|
emitLogs: false,
|
|
14609
14609
|
waitTimeoutMs,
|
|
14610
14610
|
startedAt: Date.now(),
|
|
@@ -14672,7 +14672,7 @@ async function handleRunExport(args) {
|
|
|
14672
14672
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _548 => _548.rowsInfo, 'access', _549 => _549.totalRows]), () => ( null)),
|
|
14673
14673
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14674
14674
|
...rowFailures ? { rowFailures } : {},
|
|
14675
|
-
columns:
|
|
14675
|
+
columns: _chunkQKMWQTMIjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _550 => _550.rowsInfo, 'access', _551 => _551.columns]), () => ( []))),
|
|
14676
14676
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14677
14677
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14678
14678
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -14706,8 +14706,8 @@ async function handleRunExport(args) {
|
|
|
14706
14706
|
"utf-8"
|
|
14707
14707
|
);
|
|
14708
14708
|
}
|
|
14709
|
-
|
|
14710
|
-
json:
|
|
14709
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0, payload, {
|
|
14710
|
+
json: _chunkU3F63UWDjs.argsWantJson.call(void 0, args),
|
|
14711
14711
|
fields: selection.fields,
|
|
14712
14712
|
text: `${lines.join("\n")}
|
|
14713
14713
|
`
|
|
@@ -14741,10 +14741,10 @@ async function handlePlayGet(args) {
|
|
|
14741
14741
|
);
|
|
14742
14742
|
return 2;
|
|
14743
14743
|
}
|
|
14744
|
-
const client = new (0,
|
|
14744
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
14745
14745
|
const explicitJson = args.includes("--json");
|
|
14746
14746
|
const sourceOutput = args.includes("--source");
|
|
14747
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14747
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkU3F63UWDjs.argsWantJson.call(void 0, args);
|
|
14748
14748
|
const requestedRevisionFlags = [
|
|
14749
14749
|
args.includes("--working"),
|
|
14750
14750
|
args.includes("--live"),
|
|
@@ -14804,7 +14804,7 @@ async function handlePlayGet(args) {
|
|
|
14804
14804
|
}
|
|
14805
14805
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
14806
14806
|
if (jsonOutput) {
|
|
14807
|
-
|
|
14807
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, {
|
|
14808
14808
|
...detail,
|
|
14809
14809
|
...materializedFile ? {
|
|
14810
14810
|
message: loadedMessage,
|
|
@@ -14896,8 +14896,8 @@ async function handlePlayVersions(args) {
|
|
|
14896
14896
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
14897
14897
|
return 1;
|
|
14898
14898
|
}
|
|
14899
|
-
const client = new (0,
|
|
14900
|
-
const jsonOutput =
|
|
14899
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
14900
|
+
const jsonOutput = _chunkU3F63UWDjs.argsWantJson.call(void 0, args);
|
|
14901
14901
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
14902
14902
|
command: "versions"
|
|
14903
14903
|
});
|
|
@@ -14905,7 +14905,7 @@ async function handlePlayVersions(args) {
|
|
|
14905
14905
|
parseReferencedPlayTarget(playName).playName
|
|
14906
14906
|
);
|
|
14907
14907
|
if (jsonOutput) {
|
|
14908
|
-
|
|
14908
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, { versions });
|
|
14909
14909
|
return 0;
|
|
14910
14910
|
}
|
|
14911
14911
|
if (versions.length === 0) {
|
|
@@ -14948,8 +14948,8 @@ async function handlePlayCost(args) {
|
|
|
14948
14948
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
14949
14949
|
return 2;
|
|
14950
14950
|
}
|
|
14951
|
-
const result = await new (0,
|
|
14952
|
-
if (
|
|
14951
|
+
const result = await new (0, _chunkKTWXY73Qjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
14952
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
14953
14953
|
else
|
|
14954
14954
|
console.log(
|
|
14955
14955
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -14957,9 +14957,9 @@ async function handlePlayCost(args) {
|
|
|
14957
14957
|
return 0;
|
|
14958
14958
|
}
|
|
14959
14959
|
async function handlePlayList(args) {
|
|
14960
|
-
const jsonOutput =
|
|
14960
|
+
const jsonOutput = _chunkU3F63UWDjs.argsWantJson.call(void 0, args);
|
|
14961
14961
|
const showCost = args.includes("--show-cost");
|
|
14962
|
-
const client = new (0,
|
|
14962
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
14963
14963
|
const categoriesIndex = args.indexOf("--categories");
|
|
14964
14964
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _571 => _571[categoriesIndex + 1], 'optionalAccess', _572 => _572.trim, 'call', _573 => _573()]) : void 0;
|
|
14965
14965
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15057,7 +15057,7 @@ async function handlePlayList(args) {
|
|
|
15057
15057
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15058
15058
|
lines.push(`Next page: ${nextPage}`);
|
|
15059
15059
|
}
|
|
15060
|
-
|
|
15060
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
15061
15061
|
{
|
|
15062
15062
|
plays,
|
|
15063
15063
|
count: plays.length,
|
|
@@ -15075,7 +15075,7 @@ async function handlePlayList(args) {
|
|
|
15075
15075
|
}
|
|
15076
15076
|
async function handlePlayPin(args, pinned) {
|
|
15077
15077
|
const target = _optionalChain([args, 'access', _582 => _582.find, 'call', _583 => _583((arg) => !arg.startsWith("-")), 'optionalAccess', _584 => _584.trim, 'call', _585 => _585()]);
|
|
15078
|
-
const jsonOutput =
|
|
15078
|
+
const jsonOutput = _chunkU3F63UWDjs.argsWantJson.call(void 0, args);
|
|
15079
15079
|
const dryRun = args.includes("--dry-run");
|
|
15080
15080
|
if (!target) {
|
|
15081
15081
|
console.error(
|
|
@@ -15093,11 +15093,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15093
15093
|
const name = parsedTarget.playName;
|
|
15094
15094
|
const plan = { name, pinned, dryRun };
|
|
15095
15095
|
if (dryRun) {
|
|
15096
|
-
|
|
15096
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, plan);
|
|
15097
15097
|
return 0;
|
|
15098
15098
|
}
|
|
15099
|
-
const result = await new (0,
|
|
15100
|
-
if (jsonOutput)
|
|
15099
|
+
const result = await new (0, _chunkKTWXY73Qjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15100
|
+
if (jsonOutput) _chunkU3F63UWDjs.printCompactJson.call(void 0, result);
|
|
15101
15101
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15102
15102
|
return 0;
|
|
15103
15103
|
}
|
|
@@ -15223,12 +15223,12 @@ async function handlePlayGrep(args) {
|
|
|
15223
15223
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15224
15224
|
return 1;
|
|
15225
15225
|
}
|
|
15226
|
-
const client = new (0,
|
|
15226
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
15227
15227
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15228
15228
|
summarizePlayGrepResult
|
|
15229
15229
|
);
|
|
15230
|
-
if (
|
|
15231
|
-
|
|
15230
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
15231
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, {
|
|
15232
15232
|
plays: results,
|
|
15233
15233
|
count: results.length,
|
|
15234
15234
|
query,
|
|
@@ -15251,7 +15251,7 @@ async function handlePlayGrep(args) {
|
|
|
15251
15251
|
return 0;
|
|
15252
15252
|
}
|
|
15253
15253
|
async function handlePlayDescribe(args) {
|
|
15254
|
-
const selection =
|
|
15254
|
+
const selection = _chunkU3F63UWDjs.parseJsonFields.call(void 0, args, "describe");
|
|
15255
15255
|
args = selection.args;
|
|
15256
15256
|
const playName = args[0];
|
|
15257
15257
|
if (!playName) {
|
|
@@ -15285,8 +15285,8 @@ async function handlePlayDescribe(args) {
|
|
|
15285
15285
|
`deepline plays check ${playName}`,
|
|
15286
15286
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15287
15287
|
];
|
|
15288
|
-
if (
|
|
15289
|
-
|
|
15288
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
15289
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, {
|
|
15290
15290
|
ok: false,
|
|
15291
15291
|
error: { message },
|
|
15292
15292
|
next
|
|
@@ -15300,7 +15300,7 @@ async function handlePlayDescribe(args) {
|
|
|
15300
15300
|
}
|
|
15301
15301
|
return 2;
|
|
15302
15302
|
}
|
|
15303
|
-
const client = new (0,
|
|
15303
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
15304
15304
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15305
15305
|
command: "describe"
|
|
15306
15306
|
});
|
|
@@ -15310,9 +15310,9 @@ async function handlePlayDescribe(args) {
|
|
|
15310
15310
|
compact: args.includes("--compact")
|
|
15311
15311
|
}
|
|
15312
15312
|
);
|
|
15313
|
-
if (
|
|
15314
|
-
if (selection.fields)
|
|
15315
|
-
else
|
|
15313
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
15314
|
+
if (selection.fields) _chunkU3F63UWDjs.printJson.call(void 0, play, selection.fields);
|
|
15315
|
+
else _chunkU3F63UWDjs.printCompactJson.call(void 0, play);
|
|
15316
15316
|
return 0;
|
|
15317
15317
|
}
|
|
15318
15318
|
printPlayDescription(play);
|
|
@@ -15334,7 +15334,7 @@ async function handlePlaySave(args) {
|
|
|
15334
15334
|
}
|
|
15335
15335
|
let graph;
|
|
15336
15336
|
try {
|
|
15337
|
-
graph = await
|
|
15337
|
+
graph = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
15338
15338
|
"cli.play_save_bundle_graph",
|
|
15339
15339
|
{ targetKind: "file" },
|
|
15340
15340
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15356,7 +15356,7 @@ async function handlePlaySave(args) {
|
|
|
15356
15356
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15357
15357
|
};
|
|
15358
15358
|
if (options.jsonOutput) {
|
|
15359
|
-
|
|
15359
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, result);
|
|
15360
15360
|
} else {
|
|
15361
15361
|
console.error(result.message);
|
|
15362
15362
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15378,7 +15378,7 @@ async function handlePlaySave(args) {
|
|
|
15378
15378
|
};
|
|
15379
15379
|
if (options.dryRun) {
|
|
15380
15380
|
if (options.jsonOutput) {
|
|
15381
|
-
|
|
15381
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, dryRun);
|
|
15382
15382
|
} else {
|
|
15383
15383
|
console.log(`Dry run: ${playName}`);
|
|
15384
15384
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15387,14 +15387,14 @@ async function handlePlaySave(args) {
|
|
|
15387
15387
|
}
|
|
15388
15388
|
return 0;
|
|
15389
15389
|
}
|
|
15390
|
-
const client = new (0,
|
|
15390
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
15391
15391
|
try {
|
|
15392
|
-
await
|
|
15392
|
+
await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
15393
15393
|
"cli.play_save_compile_manifests",
|
|
15394
15394
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15395
15395
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15396
15396
|
);
|
|
15397
|
-
const saved = await
|
|
15397
|
+
const saved = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
15398
15398
|
"cli.play_save_register_draft",
|
|
15399
15399
|
{ targetKind: "file", playName, artifactHash },
|
|
15400
15400
|
() => client.registerPlayArtifact({
|
|
@@ -15423,7 +15423,7 @@ async function handlePlaySave(args) {
|
|
|
15423
15423
|
}
|
|
15424
15424
|
};
|
|
15425
15425
|
if (options.jsonOutput) {
|
|
15426
|
-
|
|
15426
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, result);
|
|
15427
15427
|
} else {
|
|
15428
15428
|
console.log(
|
|
15429
15429
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15449,7 +15449,7 @@ async function handlePlayPublish(args) {
|
|
|
15449
15449
|
}
|
|
15450
15450
|
const { target: playName, useLatest } = options;
|
|
15451
15451
|
let revisionId = options.revisionId;
|
|
15452
|
-
const client = new (0,
|
|
15452
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
15453
15453
|
if (isFileTarget(playName)) {
|
|
15454
15454
|
if (revisionId || useLatest) {
|
|
15455
15455
|
console.error(
|
|
@@ -15459,7 +15459,7 @@ async function handlePlayPublish(args) {
|
|
|
15459
15459
|
}
|
|
15460
15460
|
let graph;
|
|
15461
15461
|
try {
|
|
15462
|
-
graph = await
|
|
15462
|
+
graph = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
15463
15463
|
"cli.play_publish_bundle_graph",
|
|
15464
15464
|
{ targetKind: "file" },
|
|
15465
15465
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15481,7 +15481,7 @@ async function handlePlayPublish(args) {
|
|
|
15481
15481
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15482
15482
|
};
|
|
15483
15483
|
if (options.jsonOutput) {
|
|
15484
|
-
|
|
15484
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, result3);
|
|
15485
15485
|
} else {
|
|
15486
15486
|
console.error(result3.message);
|
|
15487
15487
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15504,7 +15504,7 @@ async function handlePlayPublish(args) {
|
|
|
15504
15504
|
};
|
|
15505
15505
|
if (options.dryRun) {
|
|
15506
15506
|
if (options.jsonOutput) {
|
|
15507
|
-
|
|
15507
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, dryRun);
|
|
15508
15508
|
} else {
|
|
15509
15509
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15510
15510
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15523,12 +15523,12 @@ async function handlePlayPublish(args) {
|
|
|
15523
15523
|
}
|
|
15524
15524
|
}
|
|
15525
15525
|
try {
|
|
15526
|
-
await
|
|
15526
|
+
await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
15527
15527
|
"cli.play_publish_compile_manifests",
|
|
15528
15528
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15529
15529
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15530
15530
|
);
|
|
15531
|
-
await
|
|
15531
|
+
await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
15532
15532
|
"cli.play_publish_imports",
|
|
15533
15533
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15534
15534
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15537,7 +15537,7 @@ async function handlePlayPublish(args) {
|
|
|
15537
15537
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15538
15538
|
return 1;
|
|
15539
15539
|
}
|
|
15540
|
-
const published = await
|
|
15540
|
+
const published = await _chunkVBGPRRJ6js.traceCliSpan.call(void 0,
|
|
15541
15541
|
"cli.play_publish_register_root",
|
|
15542
15542
|
{
|
|
15543
15543
|
targetKind: "file",
|
|
@@ -15572,7 +15572,7 @@ async function handlePlayPublish(args) {
|
|
|
15572
15572
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15573
15573
|
};
|
|
15574
15574
|
if (options.jsonOutput) {
|
|
15575
|
-
|
|
15575
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, result2);
|
|
15576
15576
|
} else {
|
|
15577
15577
|
printPublishReceipt({
|
|
15578
15578
|
name: rootPlayName,
|
|
@@ -15603,7 +15603,7 @@ async function handlePlayPublish(args) {
|
|
|
15603
15603
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15604
15604
|
latest: useLatest
|
|
15605
15605
|
};
|
|
15606
|
-
|
|
15606
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, result2);
|
|
15607
15607
|
return 0;
|
|
15608
15608
|
}
|
|
15609
15609
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15627,7 +15627,7 @@ async function handlePlayPublish(args) {
|
|
|
15627
15627
|
revisionId ? { revisionId } : {}
|
|
15628
15628
|
);
|
|
15629
15629
|
if (options.jsonOutput) {
|
|
15630
|
-
|
|
15630
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, result);
|
|
15631
15631
|
} else {
|
|
15632
15632
|
printPublishReceipt({
|
|
15633
15633
|
name: result.name,
|
|
@@ -15667,7 +15667,7 @@ async function handlePlayDelete(args) {
|
|
|
15667
15667
|
);
|
|
15668
15668
|
return 2;
|
|
15669
15669
|
}
|
|
15670
|
-
const client = new (0,
|
|
15670
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
15671
15671
|
let detail;
|
|
15672
15672
|
try {
|
|
15673
15673
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15691,8 +15691,8 @@ async function handlePlayDelete(args) {
|
|
|
15691
15691
|
name: resolvedName,
|
|
15692
15692
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15693
15693
|
};
|
|
15694
|
-
if (
|
|
15695
|
-
|
|
15694
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
15695
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, result2);
|
|
15696
15696
|
} else {
|
|
15697
15697
|
process.stdout.write(
|
|
15698
15698
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15702,8 +15702,8 @@ async function handlePlayDelete(args) {
|
|
|
15702
15702
|
return 0;
|
|
15703
15703
|
}
|
|
15704
15704
|
const result = await client.deletePlay(resolvedName);
|
|
15705
|
-
if (
|
|
15706
|
-
|
|
15705
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
15706
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, result);
|
|
15707
15707
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15708
15708
|
}
|
|
15709
15709
|
if (result.alreadyArchived) {
|
|
@@ -15742,13 +15742,13 @@ async function handlePlayRestore(args) {
|
|
|
15742
15742
|
);
|
|
15743
15743
|
return 2;
|
|
15744
15744
|
}
|
|
15745
|
-
const client = new (0,
|
|
15745
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
15746
15746
|
try {
|
|
15747
15747
|
const result = await client.restorePlay(
|
|
15748
15748
|
parseReferencedPlayTarget(playName).playName
|
|
15749
15749
|
);
|
|
15750
|
-
if (
|
|
15751
|
-
|
|
15750
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
15751
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, result);
|
|
15752
15752
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
15753
15753
|
}
|
|
15754
15754
|
if (result.alreadyActive) {
|
|
@@ -15875,21 +15875,21 @@ Common commands:
|
|
|
15875
15875
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
15876
15876
|
}
|
|
15877
15877
|
};
|
|
15878
|
-
|
|
15878
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0, result2, {
|
|
15879
15879
|
json: options.json,
|
|
15880
15880
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
15881
15881
|
`
|
|
15882
15882
|
});
|
|
15883
15883
|
return;
|
|
15884
15884
|
}
|
|
15885
|
-
const client = new (0,
|
|
15885
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
15886
15886
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
15887
15887
|
throw new Error(
|
|
15888
15888
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
15889
15889
|
);
|
|
15890
15890
|
}
|
|
15891
15891
|
const result = await client.startPlayRun(saved.request);
|
|
15892
|
-
|
|
15892
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
15893
15893
|
{ ...result },
|
|
15894
15894
|
{
|
|
15895
15895
|
json: options.json,
|
|
@@ -15925,7 +15925,7 @@ Examples:
|
|
|
15925
15925
|
).action(async (target, options) => {
|
|
15926
15926
|
process.exitCode = await handlePlayCheck([
|
|
15927
15927
|
target,
|
|
15928
|
-
...
|
|
15928
|
+
..._chunkU3F63UWDjs.jsonFieldArgs.call(void 0, options.json),
|
|
15929
15929
|
...options.full ? ["--full"] : []
|
|
15930
15930
|
]);
|
|
15931
15931
|
});
|
|
@@ -15964,10 +15964,10 @@ Notes:
|
|
|
15964
15964
|
--force-tool-refresh re-executes completed tool receipts and may repeat billed
|
|
15965
15965
|
provider calls. It is independent from --force.
|
|
15966
15966
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
15967
|
-
resident-work ceiling. Default: ${
|
|
15967
|
+
resident-work ceiling. Default: ${_chunkNBVYS6VGjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkNBVYS6VGjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
15968
15968
|
Provider pacing and sandbox memory limits still apply.
|
|
15969
15969
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
15970
|
-
resolvers. Accepted range: 1-${
|
|
15970
|
+
resolvers. Accepted range: 1-${_chunkNBVYS6VGjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
15971
15971
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
15972
15972
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
15973
15973
|
Tool calls that would exceed it are denied.
|
|
@@ -16081,10 +16081,10 @@ Examples:
|
|
|
16081
16081
|
"Refresh completed tool receipts; may repeat billed provider calls"
|
|
16082
16082
|
).option(
|
|
16083
16083
|
"--max-concurrent-external-calls <count>",
|
|
16084
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16084
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkNBVYS6VGjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkNBVYS6VGjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16085
16085
|
).option(
|
|
16086
16086
|
"--max-concurrent-rows <count>",
|
|
16087
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16087
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkNBVYS6VGjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16088
16088
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the play page in a browser after the run starts").option(
|
|
16089
16089
|
"--debug-map-latency",
|
|
16090
16090
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16129,14 +16129,14 @@ JSON field selection:
|
|
|
16129
16129
|
passthroughArgs.shift();
|
|
16130
16130
|
}
|
|
16131
16131
|
const exitCode = await handlePlayRun(
|
|
16132
|
-
|
|
16132
|
+
_chunkNBVYS6VGjs.resolvePlayRunCliOptions.call(void 0,
|
|
16133
16133
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16134
16134
|
options,
|
|
16135
16135
|
passthroughArgs,
|
|
16136
|
-
|
|
16136
|
+
_chunkVBGPRRJ6js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16137
16137
|
)
|
|
16138
16138
|
);
|
|
16139
|
-
|
|
16139
|
+
_chunkVBGPRRJ6js.recordCliTrace.call(void 0, {
|
|
16140
16140
|
phase: "cli.play_command_exit",
|
|
16141
16141
|
exitCode
|
|
16142
16142
|
});
|
|
@@ -16185,9 +16185,9 @@ Examples:
|
|
|
16185
16185
|
const limit = Number(options.historyLimit);
|
|
16186
16186
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16187
16187
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16188
|
-
const client = new (0,
|
|
16188
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
16189
16189
|
if (options.binding) {
|
|
16190
|
-
|
|
16190
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0,
|
|
16191
16191
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16192
16192
|
);
|
|
16193
16193
|
return;
|
|
@@ -16195,7 +16195,7 @@ Examples:
|
|
|
16195
16195
|
const result = await client.listPlayTriggerInventory({
|
|
16196
16196
|
cursor: options.cursor
|
|
16197
16197
|
});
|
|
16198
|
-
|
|
16198
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, {
|
|
16199
16199
|
...result,
|
|
16200
16200
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16201
16201
|
});
|
|
@@ -16254,7 +16254,7 @@ Examples:
|
|
|
16254
16254
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16255
16255
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16256
16256
|
}
|
|
16257
|
-
const result = await new (0,
|
|
16257
|
+
const result = await new (0, _chunkKTWXY73Qjs.DeeplineClient)().getPlaysActivity({
|
|
16258
16258
|
timeZone: options.timeZone,
|
|
16259
16259
|
days,
|
|
16260
16260
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16268,7 +16268,7 @@ Examples:
|
|
|
16268
16268
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16269
16269
|
);
|
|
16270
16270
|
}
|
|
16271
|
-
|
|
16271
|
+
_chunkU3F63UWDjs.printCommandEnvelope.call(void 0,
|
|
16272
16272
|
{ ...result },
|
|
16273
16273
|
{
|
|
16274
16274
|
json: Boolean(options.json),
|
|
@@ -16297,7 +16297,7 @@ Examples:
|
|
|
16297
16297
|
false
|
|
16298
16298
|
);
|
|
16299
16299
|
});
|
|
16300
|
-
|
|
16300
|
+
_chunkD3Q4FUFSjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16301
16301
|
play,
|
|
16302
16302
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16303
16303
|
);
|
|
@@ -16338,9 +16338,9 @@ Examples:
|
|
|
16338
16338
|
"--json [fields]",
|
|
16339
16339
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16340
16340
|
);
|
|
16341
|
-
|
|
16341
|
+
_chunkQKMWQTMIjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16342
16342
|
async (target, options) => {
|
|
16343
|
-
const ownView = () => handlePlayDescribe(
|
|
16343
|
+
const ownView = () => handlePlayDescribe(_chunkU3F63UWDjs.describeArgs.call(void 0, target, options));
|
|
16344
16344
|
const [flagText] = [options.json].filter(
|
|
16345
16345
|
(value) => typeof value === "string"
|
|
16346
16346
|
);
|
|
@@ -16351,7 +16351,7 @@ Examples:
|
|
|
16351
16351
|
process.exitCode = await ownView();
|
|
16352
16352
|
return;
|
|
16353
16353
|
}
|
|
16354
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16354
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-OR7FZBCD.js")));
|
|
16355
16355
|
process.exitCode = await describeAnything(
|
|
16356
16356
|
name,
|
|
16357
16357
|
{
|
|
@@ -16469,7 +16469,7 @@ Examples:
|
|
|
16469
16469
|
deepline plays deployments <deployment-id>
|
|
16470
16470
|
`
|
|
16471
16471
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16472
|
-
async (id, options) => id ?
|
|
16472
|
+
async (id, options) => id ? _chunkTZRTT7EIjs.handleDeploymentGet.call(void 0, id, options) : _chunkTZRTT7EIjs.handleDeploymentsList.call(void 0, options)
|
|
16473
16473
|
);
|
|
16474
16474
|
addPublishHelp(
|
|
16475
16475
|
play.command("publish <target>").description(
|
|
@@ -16604,14 +16604,14 @@ Examples:
|
|
|
16604
16604
|
const limit = Number(options.limit);
|
|
16605
16605
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16606
16606
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16607
|
-
const result = await new (0,
|
|
16607
|
+
const result = await new (0, _chunkKTWXY73Qjs.DeeplineClient)().runs.rowHistory({
|
|
16608
16608
|
playName: options.play,
|
|
16609
16609
|
runId,
|
|
16610
16610
|
tableNamespace: options.dataset,
|
|
16611
16611
|
limit,
|
|
16612
16612
|
cursor: options.cursor
|
|
16613
16613
|
});
|
|
16614
|
-
|
|
16614
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, {
|
|
16615
16615
|
...result,
|
|
16616
16616
|
...result.nextCursor ? {
|
|
16617
16617
|
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`
|
|
@@ -16685,7 +16685,7 @@ Examples:
|
|
|
16685
16685
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16686
16686
|
).action(async (runId, options) => {
|
|
16687
16687
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16688
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16688
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-C3MUHL7G.js")));
|
|
16689
16689
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16690
16690
|
receiptJson: options.json !== void 0
|
|
16691
16691
|
});
|
|
@@ -16693,7 +16693,7 @@ Examples:
|
|
|
16693
16693
|
}
|
|
16694
16694
|
process.exitCode = await handleRunGet([
|
|
16695
16695
|
runId,
|
|
16696
|
-
...
|
|
16696
|
+
..._chunkU3F63UWDjs.jsonFieldArgs.call(void 0, options.json),
|
|
16697
16697
|
...options.webUrl ? ["--web-url"] : [],
|
|
16698
16698
|
...options.full ? ["--full"] : [],
|
|
16699
16699
|
...options.input ? ["--input"] : [],
|
|
@@ -16983,7 +16983,7 @@ Examples:
|
|
|
16983
16983
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
16984
16984
|
...options.wait ? ["--wait"] : [],
|
|
16985
16985
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
16986
|
-
...
|
|
16986
|
+
..._chunkU3F63UWDjs.jsonFieldArgs.call(void 0, options.json)
|
|
16987
16987
|
]);
|
|
16988
16988
|
});
|
|
16989
16989
|
const share = play.command("share").description(
|
|
@@ -17149,10 +17149,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17149
17149
|
return 2;
|
|
17150
17150
|
}
|
|
17151
17151
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17152
|
-
const status = await new (0,
|
|
17152
|
+
const status = await new (0, _chunkKTWXY73Qjs.DeeplineClient)().getSharePage(name);
|
|
17153
17153
|
const outputStatus = shareStatusForOutput(status);
|
|
17154
|
-
if (
|
|
17155
|
-
|
|
17154
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
17155
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, outputStatus);
|
|
17156
17156
|
return 0;
|
|
17157
17157
|
}
|
|
17158
17158
|
if (!outputStatus.share) {
|
|
@@ -17191,7 +17191,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17191
17191
|
return 2;
|
|
17192
17192
|
}
|
|
17193
17193
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17194
|
-
const client = new (0,
|
|
17194
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
17195
17195
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17196
17196
|
let resolvedVersion;
|
|
17197
17197
|
if (!revisionId) {
|
|
@@ -17222,8 +17222,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17222
17222
|
);
|
|
17223
17223
|
if (!hasCompleted) {
|
|
17224
17224
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17225
|
-
if (
|
|
17226
|
-
|
|
17225
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
17226
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, {
|
|
17227
17227
|
ok: false,
|
|
17228
17228
|
code: "NO_SUCCESSFUL_RUN",
|
|
17229
17229
|
message,
|
|
@@ -17247,8 +17247,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17247
17247
|
};
|
|
17248
17248
|
if (args.includes("--dry-run")) {
|
|
17249
17249
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17250
|
-
if (
|
|
17251
|
-
|
|
17250
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
17251
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, plan);
|
|
17252
17252
|
} else {
|
|
17253
17253
|
console.log(
|
|
17254
17254
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17258,8 +17258,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17258
17258
|
}
|
|
17259
17259
|
const status = await client.publishSharePage(name, request);
|
|
17260
17260
|
const outputStatus = shareStatusForOutput(status);
|
|
17261
|
-
if (
|
|
17262
|
-
|
|
17261
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
17262
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, outputStatus);
|
|
17263
17263
|
return 0;
|
|
17264
17264
|
}
|
|
17265
17265
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17290,9 +17290,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17290
17290
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17291
17291
|
...seoIndexing ? { seoIndexing } : {}
|
|
17292
17292
|
};
|
|
17293
|
-
const status = await new (0,
|
|
17294
|
-
if (
|
|
17295
|
-
|
|
17293
|
+
const status = await new (0, _chunkKTWXY73Qjs.DeeplineClient)().updateSharePage(name, request);
|
|
17294
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
17295
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, status);
|
|
17296
17296
|
return 0;
|
|
17297
17297
|
}
|
|
17298
17298
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17307,7 +17307,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17307
17307
|
return 2;
|
|
17308
17308
|
}
|
|
17309
17309
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17310
|
-
const client = new (0,
|
|
17310
|
+
const client = new (0, _chunkKTWXY73Qjs.DeeplineClient)();
|
|
17311
17311
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17312
17312
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17313
17313
|
if (!revisionId && versionFlag) {
|
|
@@ -17324,8 +17324,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17324
17324
|
revisionId ? { revisionId } : {}
|
|
17325
17325
|
);
|
|
17326
17326
|
const outputStatus = shareStatusForOutput(status);
|
|
17327
|
-
if (
|
|
17328
|
-
|
|
17327
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
17328
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, outputStatus);
|
|
17329
17329
|
return 0;
|
|
17330
17330
|
}
|
|
17331
17331
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17350,9 +17350,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17350
17350
|
return 2;
|
|
17351
17351
|
}
|
|
17352
17352
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17353
|
-
const status = await new (0,
|
|
17354
|
-
if (
|
|
17355
|
-
|
|
17353
|
+
const status = await new (0, _chunkKTWXY73Qjs.DeeplineClient)().unpublishSharePage(name);
|
|
17354
|
+
if (_chunkU3F63UWDjs.argsWantJson.call(void 0, args)) {
|
|
17355
|
+
_chunkU3F63UWDjs.printCompactJson.call(void 0, status);
|
|
17356
17356
|
return 0;
|
|
17357
17357
|
}
|
|
17358
17358
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17427,4 +17427,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17427
17427
|
|
|
17428
17428
|
|
|
17429
17429
|
|
|
17430
|
-
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 =
|
|
17430
|
+
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 = _chunkNBVYS6VGjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkNBVYS6VGjs.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;
|