deepline 0.3.497 → 0.3.499
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/monitors/billing/policy-builders.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/state.ts +8 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +23 -5
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +4 -3
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-control.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-admission-outcome.ts +8 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +470 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-profile.ts +318 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +7 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +4 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +19 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +138 -0
- package/dist/cli/auth-32FRISRT.js +43 -0
- package/dist/cli/{auth-OAKBFUQD.mjs → auth-TECJ27G3.mjs} +5 -5
- package/dist/cli/{billing-AM6D2KN5.mjs → billing-PMKO73VG.mjs} +6 -6
- package/dist/cli/{billing-FUB6HQZ5.js → billing-ULZGAED6.js} +79 -79
- package/dist/cli/{chunk-V2EVSEUD.js → chunk-2PKZ3RUU.js} +16 -16
- package/dist/cli/{chunk-SLS3HUVC.js → chunk-2RZHMCDL.js} +4 -4
- package/dist/cli/{chunk-3IVAGF4P.mjs → chunk-3GP52OHV.mjs} +10 -10
- package/dist/cli/{chunk-KFJV3BZX.mjs → chunk-43ZERPGR.mjs} +1 -1
- package/dist/cli/{chunk-FISH2MI2.mjs → chunk-56JE475N.mjs} +9 -5
- package/dist/cli/{chunk-6TA2H7CY.js → chunk-57LW4TGY.js} +26 -26
- package/dist/cli/{chunk-MBOAXLWC.mjs → chunk-5IDORX4E.mjs} +4 -4
- package/dist/cli/{chunk-XLYJ7MJX.js → chunk-7OQZZHZ4.js} +15 -11
- package/dist/cli/{chunk-EWQ3KY5U.mjs → chunk-7UC2UZYW.mjs} +6 -6
- package/dist/cli/{chunk-JDFYCHNV.js → chunk-7WUMIRBV.js} +5 -5
- package/dist/cli/{chunk-5GXYXU45.mjs → chunk-A2VCFBZN.mjs} +1 -1
- package/dist/cli/{chunk-7RBIOOCQ.js → chunk-AGZRRHSB.js} +3 -3
- package/dist/cli/{chunk-SJM7MKOE.js → chunk-AKLI4XSG.js} +2 -2
- package/dist/cli/{chunk-4MR7LZXF.mjs → chunk-BBFWIYAF.mjs} +2 -2
- package/dist/cli/{chunk-XNLXHU6L.mjs → chunk-C2V5U6HO.mjs} +5 -5
- package/dist/cli/{chunk-OWDK2PVH.js → chunk-FG5OZ5FB.js} +8 -8
- package/dist/cli/{chunk-BRUDMG56.js → chunk-G7BB2VOC.js} +41 -41
- package/dist/cli/{chunk-IURXJPGH.mjs → chunk-IGCSKXGK.mjs} +3 -3
- package/dist/cli/{chunk-WKCMARFR.js → chunk-JIZHGOZ5.js} +94 -94
- package/dist/cli/{chunk-WZ3A35ZD.mjs → chunk-JM52ATUS.mjs} +1 -1
- package/dist/cli/{chunk-KUX3HYJI.mjs → chunk-JQHJKARU.mjs} +28 -22
- package/dist/cli/{chunk-5IBHSACU.mjs → chunk-JUQESEJX.mjs} +2 -2
- package/dist/cli/{chunk-ZLYKN4AJ.js → chunk-K54BUQSK.js} +7 -7
- package/dist/cli/{chunk-FVS5MJQ5.js → chunk-KLQ5CR77.js} +30 -24
- package/dist/cli/{chunk-VMOVB2FN.mjs → chunk-KOD45UP5.mjs} +5 -5
- package/dist/cli/{chunk-SJID5WMV.mjs → chunk-KZJKRU24.mjs} +4 -4
- package/dist/cli/{chunk-BBHGJE73.js → chunk-L6C7C7IJ.js} +1 -1
- package/dist/cli/{chunk-DKSTMQ3F.js → chunk-L7O7AFSF.js} +21 -21
- package/dist/cli/{chunk-YUEFDOME.js → chunk-LUNXREUI.js} +6 -6
- package/dist/cli/{chunk-3DHPKENA.mjs → chunk-MQ5YPD7K.mjs} +1 -1
- package/dist/cli/{chunk-LPCK5KK5.mjs → chunk-OWHQ4OG5.mjs} +2 -2
- package/dist/cli/{chunk-YQ66NC4J.mjs → chunk-P3MGNLZF.mjs} +2 -2
- package/dist/cli/{chunk-B4Q3EBQX.js → chunk-PE3UHMMZ.js} +5 -5
- package/dist/cli/{chunk-M2WIEW2E.mjs → chunk-PSYGSXDS.mjs} +1 -1
- package/dist/cli/{chunk-THD6KA67.mjs → chunk-QXI2W7YY.mjs} +4 -4
- package/dist/cli/{chunk-OEI6HXMK.js → chunk-SLWCXGKP.js} +16 -16
- package/dist/cli/{chunk-2HCZHIMT.mjs → chunk-TFFJ2PRN.mjs} +5 -3
- package/dist/cli/{chunk-7FFNSYMJ.js → chunk-TUDYBF4Y.js} +9 -9
- package/dist/cli/{chunk-UETGYJYH.mjs → chunk-UMPCQ4EE.mjs} +2 -2
- package/dist/cli/{chunk-A66Y2LCW.js → chunk-UOQUCFAK.js} +53 -53
- package/dist/cli/{chunk-TGAYN34A.mjs → chunk-WEVIUQGZ.mjs} +2 -2
- package/dist/cli/{chunk-77IAUCTB.js → chunk-WSOM3TY6.js} +3 -3
- package/dist/cli/{chunk-3KG2FUU4.js → chunk-XSUQAUG4.js} +7 -7
- package/dist/cli/{chunk-HRODQDTB.mjs → chunk-YAW7ET4P.mjs} +1 -1
- package/dist/cli/{chunk-N3T3L3WW.js → chunk-YPTZJ7LO.js} +5 -3
- package/dist/cli/{chunk-UV7AT2D4.js → chunk-YRQWGWRJ.js} +2 -2
- package/dist/cli/{chunk-WXW7YJDO.js → chunk-Z2MO7FZG.js} +53 -53
- package/dist/cli/{chunk-XX7WLKOQ.mjs → chunk-ZVAD65CF.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-U2GOFP3M.mjs → csv-ACO5YC46.mjs} +4 -4
- package/dist/cli/{csv-PMBYKVUU.js → csv-VGSQ3JYE.js} +13 -13
- package/dist/cli/{db-DKFOTZGZ.mjs → db-CXNZOXGM.mjs} +6 -6
- package/dist/cli/{db-GREVTMIR.js → db-QOUPHFFN.js} +27 -27
- package/dist/cli/describe-DEXYQMBO.js +50 -0
- package/dist/cli/{describe-SWXA6L62.mjs → describe-J4O5GCJS.mjs} +17 -17
- package/dist/cli/{executions-EBRFC5JR.mjs → executions-SJETRLXW.mjs} +6 -6
- package/dist/cli/{executions-2RRAESQK.js → executions-YIECH2CL.js} +8 -8
- package/dist/cli/{feedback-N6ML7IRH.js → feedback-5BRCNERV.js} +8 -8
- package/dist/cli/{feedback-4A57QLX2.mjs → feedback-GSAFFMF6.mjs} +4 -4
- package/dist/cli/git-RDKLITUC.js +25 -0
- package/dist/cli/{git-6D2WQPOS.mjs → git-SF5XIGLU.mjs} +5 -5
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-DXRJARNC.js → legacy-noops-5TBT4XC6.js} +8 -8
- package/dist/cli/{legacy-noops-CL5QWXGH.mjs → legacy-noops-TZA3CALE.mjs} +5 -5
- package/dist/cli/{monitors-SGMEGGJO.mjs → monitors-XAYWJNSV.mjs} +7 -7
- package/dist/cli/{monitors-XWKDVHYL.js → monitors-XNB5YNC3.js} +95 -95
- package/dist/cli/{org-QKQ57PDN.js → org-2UYWJXG7.js} +72 -72
- package/dist/cli/{org-55BI5RQF.mjs → org-S5VZL5KZ.mjs} +6 -6
- package/dist/cli/{pages-LM4QACOM.mjs → pages-NGVJO7PA.mjs} +6 -6
- package/dist/cli/{pages-FOIR5UH4.js → pages-ZQRRTZIT.js} +18 -18
- package/dist/cli/{play-7VA26O6E.mjs → play-3JNERHSC.mjs} +37 -27
- package/dist/cli/{play-S44FXGD7.js → play-P3OYQ7JV.js} +406 -396
- package/dist/cli/{providers-QAVIR5E2.mjs → providers-27O6BOAP.mjs} +6 -6
- package/dist/cli/{providers-RDSHID7C.js → providers-2FFGAPUR.js} +9 -9
- package/dist/cli/{quickstart-EREQPM3G.js → quickstart-5G2UPKJV.js} +6 -6
- package/dist/cli/{quickstart-IL4HQYE4.mjs → quickstart-B2EXIAU6.mjs} +4 -4
- package/dist/cli/{run-TBUUV5EG.js → run-2TGD7FAL.js} +82 -43
- package/dist/cli/{run-4XZNJR7N.mjs → run-3QFXYV3Z.mjs} +69 -30
- package/dist/cli/{search-SYT5UT5G.mjs → search-GXEEOMVD.mjs} +7 -7
- package/dist/cli/search-YKTYDBCN.js +32 -0
- package/dist/cli/{search-output-Y3IKZ3TX.mjs → search-output-DMIJQTAA.mjs} +4 -4
- package/dist/cli/{search-output-5F3EEQ34.js → search-output-I4RZPHU6.js} +6 -6
- package/dist/cli/{secrets-AKAU2N3K.mjs → secrets-DQI5YCS6.mjs} +6 -6
- package/dist/cli/{secrets-PZWJ2ES5.js → secrets-MJMNRXZX.js} +15 -15
- package/dist/cli/{sessions-Z5C26IS7.mjs → sessions-HAUN3VYE.mjs} +5 -5
- package/dist/cli/{sessions-UMHA7K23.js → sessions-QS74ZTRH.js} +6 -6
- package/dist/cli/{settings-S5BM3SVI.mjs → settings-E64HIUXW.mjs} +11 -11
- package/dist/cli/{settings-WGJYWTJZ.js → settings-VQBOS6VU.js} +78 -78
- package/dist/cli/{setup-6K6ERKOH.js → setup-KRW3JCJE.js} +49 -49
- package/dist/cli/{setup-E4HRXP2X.mjs → setup-NRUG42F2.mjs} +9 -9
- package/dist/cli/{skills-HIZA7YAN.mjs → skills-AHLZRTKZ.mjs} +7 -7
- package/dist/cli/skills-PGVIJK6Q.js +36 -0
- package/dist/cli/{tools-FS5S6BT7.mjs → tools-INRRIWOU.mjs} +16 -16
- package/dist/cli/tools-IXXN2RE4.js +57 -0
- package/dist/cli/{update-4CJPTG3L.mjs → update-ETOWEJ7D.mjs} +9 -9
- package/dist/cli/update-QW4RV2UX.js +34 -0
- package/dist/cli/{workflow-UMSXOIOS.mjs → workflow-JT2DOSCJ.mjs} +7 -7
- package/dist/cli/{workflow-TYSZ5JWS.js → workflow-RUAYQK4D.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +102 -100
- 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-553ZBCPJ.js +0 -43
- package/dist/cli/describe-BL5NNHV5.js +0 -50
- package/dist/cli/git-7TSX5V57.js +0 -25
- package/dist/cli/search-GCANFVVZ.js +0 -32
- package/dist/cli/skills-J3GQHHHL.js +0 -36
- package/dist/cli/tools-RZYKMOUX.js +0 -57
- package/dist/cli/update-CATZW7GA.js +0 -34
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkTUDYBF4Yjs = require('./chunk-TUDYBF4Y.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,15 +17,16 @@ var _chunk7FFNSYMJjs = require('./chunk-7FFNSYMJ.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var _chunkFVS5MJQ5js = require('./chunk-FVS5MJQ5.js');
|
|
21
20
|
|
|
21
|
+
var _chunkKLQ5CR77js = require('./chunk-KLQ5CR77.js');
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
|
|
24
|
+
var _chunkK54BUQSKjs = require('./chunk-K54BUQSK.js');
|
|
24
25
|
require('./chunk-D3BCSAN7.js');
|
|
25
26
|
|
|
26
27
|
|
|
27
28
|
|
|
28
|
-
var
|
|
29
|
+
var _chunk57LW4TGYjs = require('./chunk-57LW4TGY.js');
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
|
|
@@ -58,10 +59,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
58
59
|
|
|
59
60
|
|
|
60
61
|
|
|
61
|
-
var
|
|
62
|
+
var _chunk7WUMIRBVjs = require('./chunk-7WUMIRBV.js');
|
|
62
63
|
|
|
63
64
|
|
|
64
|
-
var
|
|
65
|
+
var _chunkPE3UHMMZjs = require('./chunk-PE3UHMMZ.js');
|
|
65
66
|
|
|
66
67
|
|
|
67
68
|
|
|
@@ -74,7 +75,7 @@ var _chunkB4Q3EBQXjs = require('./chunk-B4Q3EBQX.js');
|
|
|
74
75
|
|
|
75
76
|
|
|
76
77
|
|
|
77
|
-
var
|
|
78
|
+
var _chunkXSUQAUG4js = require('./chunk-XSUQAUG4.js');
|
|
78
79
|
require('./chunk-E4CABWXL.js');
|
|
79
80
|
|
|
80
81
|
|
|
@@ -97,18 +98,18 @@ require('./chunk-XDVT3GOM.js');
|
|
|
97
98
|
|
|
98
99
|
|
|
99
100
|
|
|
100
|
-
var
|
|
101
|
+
var _chunkLUNXREUIjs = require('./chunk-LUNXREUI.js');
|
|
101
102
|
|
|
102
103
|
|
|
103
104
|
|
|
104
105
|
|
|
105
106
|
|
|
106
|
-
var
|
|
107
|
-
require('./chunk-
|
|
107
|
+
var _chunkYRQWGWRJjs = require('./chunk-YRQWGWRJ.js');
|
|
108
|
+
require('./chunk-UOQUCFAK.js');
|
|
108
109
|
|
|
109
110
|
|
|
110
111
|
|
|
111
|
-
var
|
|
112
|
+
var _chunkAGZRRHSBjs = require('./chunk-AGZRRHSB.js');
|
|
112
113
|
|
|
113
114
|
|
|
114
115
|
|
|
@@ -122,17 +123,17 @@ var _chunk7RBIOOCQjs = require('./chunk-7RBIOOCQ.js');
|
|
|
122
123
|
|
|
123
124
|
|
|
124
125
|
|
|
125
|
-
var
|
|
126
|
-
require('./chunk-
|
|
126
|
+
var _chunk7OQZZHZ4js = require('./chunk-7OQZZHZ4.js');
|
|
127
|
+
require('./chunk-WSOM3TY6.js');
|
|
127
128
|
|
|
128
129
|
|
|
129
|
-
var
|
|
130
|
+
var _chunk2RZHMCDLjs = require('./chunk-2RZHMCDL.js');
|
|
130
131
|
require('./chunk-ALJJRZNJ.js');
|
|
131
132
|
require('./chunk-XNYIZMNQ.js');
|
|
132
133
|
|
|
133
134
|
|
|
134
135
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
135
|
-
require('./chunk-
|
|
136
|
+
require('./chunk-L6C7C7IJ.js');
|
|
136
137
|
require('./chunk-OG64RBAC.js');
|
|
137
138
|
|
|
138
139
|
|
|
@@ -2114,7 +2115,7 @@ function resolveField(key, command) {
|
|
|
2114
2115
|
function printSettings(result, json, name) {
|
|
2115
2116
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2116
2117
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2117
|
-
|
|
2118
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
2118
2119
|
{
|
|
2119
2120
|
...result,
|
|
2120
2121
|
settings: Object.fromEntries(
|
|
@@ -2158,7 +2159,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2158
2159
|
valueSyntax: field.cli.valueSyntax,
|
|
2159
2160
|
examples: field.cli.examples
|
|
2160
2161
|
}));
|
|
2161
|
-
|
|
2162
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
2162
2163
|
{
|
|
2163
2164
|
fields: descriptions,
|
|
2164
2165
|
render: {
|
|
@@ -2183,7 +2184,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2183
2184
|
async (options, command) => {
|
|
2184
2185
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2185
2186
|
printSettings(
|
|
2186
|
-
await new (0,
|
|
2187
|
+
await new (0, _chunkPE3UHMMZjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2187
2188
|
options.json,
|
|
2188
2189
|
options.name
|
|
2189
2190
|
);
|
|
@@ -2214,7 +2215,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2214
2215
|
);
|
|
2215
2216
|
}
|
|
2216
2217
|
if (options.dryRun) {
|
|
2217
|
-
|
|
2218
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
2218
2219
|
{
|
|
2219
2220
|
dryRun: true,
|
|
2220
2221
|
play,
|
|
@@ -2235,7 +2236,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2235
2236
|
return;
|
|
2236
2237
|
}
|
|
2237
2238
|
printSettings(
|
|
2238
|
-
await new (0,
|
|
2239
|
+
await new (0, _chunkPE3UHMMZjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2239
2240
|
options.json
|
|
2240
2241
|
);
|
|
2241
2242
|
};
|
|
@@ -2261,13 +2262,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2261
2262
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2262
2263
|
{ exitCode: 2 }
|
|
2263
2264
|
);
|
|
2264
|
-
const page = await new (0,
|
|
2265
|
+
const page = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2265
2266
|
root: options.root,
|
|
2266
2267
|
limit,
|
|
2267
2268
|
cursor: options.cursor
|
|
2268
2269
|
});
|
|
2269
2270
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2270
|
-
|
|
2271
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
2271
2272
|
{
|
|
2272
2273
|
...page,
|
|
2273
2274
|
nextCommand,
|
|
@@ -2318,7 +2319,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2318
2319
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2319
2320
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2320
2321
|
};
|
|
2321
|
-
const client = new (0,
|
|
2322
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
2322
2323
|
const paths = [];
|
|
2323
2324
|
let cursor;
|
|
2324
2325
|
do {
|
|
@@ -2380,7 +2381,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2380
2381
|
moved.push(move.playName);
|
|
2381
2382
|
}
|
|
2382
2383
|
}
|
|
2383
|
-
|
|
2384
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
2384
2385
|
{
|
|
2385
2386
|
dryRun: Boolean(options.dryRun),
|
|
2386
2387
|
from: options.from,
|
|
@@ -2508,7 +2509,7 @@ function triggerLines(view) {
|
|
|
2508
2509
|
return lines;
|
|
2509
2510
|
}
|
|
2510
2511
|
function printView(view, json) {
|
|
2511
|
-
|
|
2512
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
2512
2513
|
{
|
|
2513
2514
|
...view,
|
|
2514
2515
|
render: {
|
|
@@ -2521,7 +2522,7 @@ function printView(view, json) {
|
|
|
2521
2522
|
);
|
|
2522
2523
|
}
|
|
2523
2524
|
function printResult(result, json) {
|
|
2524
|
-
|
|
2525
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
2525
2526
|
{
|
|
2526
2527
|
...result,
|
|
2527
2528
|
render: {
|
|
@@ -2551,7 +2552,7 @@ async function mutate(command, options, build) {
|
|
|
2551
2552
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2552
2553
|
}
|
|
2553
2554
|
if (options.dryRun) {
|
|
2554
|
-
|
|
2555
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
2555
2556
|
{
|
|
2556
2557
|
dryRun: true,
|
|
2557
2558
|
play: options.play,
|
|
@@ -2570,7 +2571,7 @@ async function mutate(command, options, build) {
|
|
|
2570
2571
|
return;
|
|
2571
2572
|
}
|
|
2572
2573
|
printResult(
|
|
2573
|
-
await new (0,
|
|
2574
|
+
await new (0, _chunkPE3UHMMZjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2574
2575
|
options.json
|
|
2575
2576
|
);
|
|
2576
2577
|
}
|
|
@@ -2603,7 +2604,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2603
2604
|
}).addHelpText("after", help2);
|
|
2604
2605
|
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) => {
|
|
2605
2606
|
printView(
|
|
2606
|
-
await new (0,
|
|
2607
|
+
await new (0, _chunkPE3UHMMZjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2607
2608
|
options.json
|
|
2608
2609
|
);
|
|
2609
2610
|
});
|
|
@@ -2647,7 +2648,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2647
2648
|
if (options.auth === void 0) {
|
|
2648
2649
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2649
2650
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2650
|
-
const current = await new (0,
|
|
2651
|
+
const current = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2651
2652
|
options.play
|
|
2652
2653
|
);
|
|
2653
2654
|
return {
|
|
@@ -2724,7 +2725,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2724
2725
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2725
2726
|
"runtime.event": "Other event."
|
|
2726
2727
|
};
|
|
2727
|
-
var RUN_LOGS_KIND_HELP =
|
|
2728
|
+
var RUN_LOGS_KIND_HELP = _chunkXSUQAUG4js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2728
2729
|
kind,
|
|
2729
2730
|
description: KIND_DESCRIPTIONS[kind]
|
|
2730
2731
|
}));
|
|
@@ -2861,9 +2862,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2861
2862
|
const args = program.args;
|
|
2862
2863
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2863
2864
|
error.exitCode = 2;
|
|
2864
|
-
if (
|
|
2865
|
-
|
|
2866
|
-
Object.assign(new (0,
|
|
2865
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2866
|
+
_chunk7OQZZHZ4js.printJsonError.call(void 0,
|
|
2867
|
+
Object.assign(new (0, _chunkXSUQAUG4js.RunEventQueryInputError)(error.message), {
|
|
2867
2868
|
exitCode: 2,
|
|
2868
2869
|
retryable: false
|
|
2869
2870
|
})
|
|
@@ -2907,14 +2908,14 @@ function parseQuery(args, resource) {
|
|
|
2907
2908
|
if (VALUE_FLAGS.has(flag)) {
|
|
2908
2909
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2909
2910
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2910
|
-
throw new (0,
|
|
2911
|
+
throw new (0, _chunkXSUQAUG4js.RunEventQueryInputError)(
|
|
2911
2912
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2912
2913
|
);
|
|
2913
2914
|
}
|
|
2914
2915
|
if (flag === "--sum") sums.push(value);
|
|
2915
2916
|
else {
|
|
2916
2917
|
if (values[flag] !== void 0) {
|
|
2917
|
-
throw new (0,
|
|
2918
|
+
throw new (0, _chunkXSUQAUG4js.RunEventQueryInputError)(
|
|
2918
2919
|
`${flag} may only be supplied once.`
|
|
2919
2920
|
);
|
|
2920
2921
|
}
|
|
@@ -2928,12 +2929,12 @@ function parseQuery(args, resource) {
|
|
|
2928
2929
|
}
|
|
2929
2930
|
if (arg.startsWith("-")) {
|
|
2930
2931
|
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.";
|
|
2931
|
-
throw new (0,
|
|
2932
|
+
throw new (0, _chunkXSUQAUG4js.RunEventQueryInputError)(
|
|
2932
2933
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2933
2934
|
);
|
|
2934
2935
|
}
|
|
2935
2936
|
if (runId !== void 0) {
|
|
2936
|
-
throw new (0,
|
|
2937
|
+
throw new (0, _chunkXSUQAUG4js.RunEventQueryInputError)(
|
|
2937
2938
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2938
2939
|
);
|
|
2939
2940
|
}
|
|
@@ -2941,7 +2942,7 @@ function parseQuery(args, resource) {
|
|
|
2941
2942
|
}
|
|
2942
2943
|
if (switches.has("--fields")) {
|
|
2943
2944
|
if (runId !== void 0) {
|
|
2944
|
-
throw new (0,
|
|
2945
|
+
throw new (0, _chunkXSUQAUG4js.RunEventQueryInputError)(
|
|
2945
2946
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2946
2947
|
);
|
|
2947
2948
|
}
|
|
@@ -2954,18 +2955,18 @@ function parseQuery(args, resource) {
|
|
|
2954
2955
|
)
|
|
2955
2956
|
];
|
|
2956
2957
|
if (incompatible.length) {
|
|
2957
|
-
throw new (0,
|
|
2958
|
+
throw new (0, _chunkXSUQAUG4js.RunEventQueryInputError)(
|
|
2958
2959
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2959
2960
|
);
|
|
2960
2961
|
}
|
|
2961
2962
|
}
|
|
2962
2963
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2963
|
-
throw new (0,
|
|
2964
|
+
throw new (0, _chunkXSUQAUG4js.RunEventQueryInputError)(
|
|
2964
2965
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2965
2966
|
);
|
|
2966
2967
|
}
|
|
2967
2968
|
if (sums.length && switches.has("--count")) {
|
|
2968
|
-
throw new (0,
|
|
2969
|
+
throw new (0, _chunkXSUQAUG4js.RunEventQueryInputError)(
|
|
2969
2970
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2970
2971
|
);
|
|
2971
2972
|
}
|
|
@@ -2973,7 +2974,7 @@ function parseQuery(args, resource) {
|
|
|
2973
2974
|
if (operation === "count") {
|
|
2974
2975
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2975
2976
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2976
|
-
throw new (0,
|
|
2977
|
+
throw new (0, _chunkXSUQAUG4js.RunEventQueryInputError)(
|
|
2977
2978
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2978
2979
|
);
|
|
2979
2980
|
}
|
|
@@ -3008,16 +3009,16 @@ function parseQuery(args, resource) {
|
|
|
3008
3009
|
];
|
|
3009
3010
|
}
|
|
3010
3011
|
}
|
|
3011
|
-
const request =
|
|
3012
|
+
const request = _chunkXSUQAUG4js.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3012
3013
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3013
3014
|
const backend = values["--runtime-backend"];
|
|
3014
3015
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3015
|
-
throw new (0,
|
|
3016
|
+
throw new (0, _chunkXSUQAUG4js.RunEventQueryInputError)(
|
|
3016
3017
|
"--runtime-backend must be daytona or modal."
|
|
3017
3018
|
);
|
|
3018
3019
|
}
|
|
3019
3020
|
if (backend && !namespace) {
|
|
3020
|
-
throw new (0,
|
|
3021
|
+
throw new (0, _chunkXSUQAUG4js.RunEventQueryInputError)(
|
|
3021
3022
|
"--runtime-backend requires --runtime-namespace."
|
|
3022
3023
|
);
|
|
3023
3024
|
}
|
|
@@ -3064,12 +3065,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3064
3065
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3065
3066
|
const record3 = failure;
|
|
3066
3067
|
const status = record3.statusCode;
|
|
3067
|
-
const exitCode = error instanceof
|
|
3068
|
+
const exitCode = error instanceof _chunkXSUQAUG4js.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;
|
|
3068
3069
|
const diagnostic = Object.assign(failure, {
|
|
3069
3070
|
exitCode,
|
|
3070
3071
|
retryable: exitCode === 5
|
|
3071
3072
|
});
|
|
3072
|
-
if (
|
|
3073
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) _chunk7OQZZHZ4js.printJsonError.call(void 0, diagnostic);
|
|
3073
3074
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3074
3075
|
return exitCode;
|
|
3075
3076
|
}
|
|
@@ -3084,7 +3085,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3084
3085
|
...criteria
|
|
3085
3086
|
} = request;
|
|
3086
3087
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3087
|
-
const client = new (0,
|
|
3088
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
3088
3089
|
let result;
|
|
3089
3090
|
if (request.operation === "fields") {
|
|
3090
3091
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3150,13 +3151,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3150
3151
|
lines.push(`Next page: ${nextPage}`);
|
|
3151
3152
|
}
|
|
3152
3153
|
}
|
|
3153
|
-
|
|
3154
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
3154
3155
|
{
|
|
3155
3156
|
...result,
|
|
3156
3157
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3157
3158
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3158
3159
|
},
|
|
3159
|
-
{ json:
|
|
3160
|
+
{ json: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3160
3161
|
` }
|
|
3161
3162
|
);
|
|
3162
3163
|
return 0;
|
|
@@ -4075,7 +4076,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4075
4076
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4076
4077
|
);
|
|
4077
4078
|
}
|
|
4078
|
-
const response = await new (0,
|
|
4079
|
+
const response = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4079
4080
|
keys
|
|
4080
4081
|
});
|
|
4081
4082
|
const failed = response.receipts.filter(
|
|
@@ -4087,7 +4088,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4087
4088
|
JSON.stringify(response, null, 2) + "\n",
|
|
4088
4089
|
{ flag: "wx", mode: 384 }
|
|
4089
4090
|
);
|
|
4090
|
-
|
|
4091
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
4091
4092
|
{
|
|
4092
4093
|
runId,
|
|
4093
4094
|
out: options.out,
|
|
@@ -4097,7 +4098,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4097
4098
|
{ json: true }
|
|
4098
4099
|
);
|
|
4099
4100
|
} else {
|
|
4100
|
-
|
|
4101
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4101
4102
|
}
|
|
4102
4103
|
if (failed)
|
|
4103
4104
|
process.exitCode = response.receipts.some(
|
|
@@ -4136,7 +4137,7 @@ includes nextCommand when another page is available.
|
|
|
4136
4137
|
{ exitCode: 2 }
|
|
4137
4138
|
);
|
|
4138
4139
|
}
|
|
4139
|
-
const page = await new (0,
|
|
4140
|
+
const page = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4140
4141
|
launchKey: options.launchKey,
|
|
4141
4142
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4142
4143
|
limit
|
|
@@ -4151,7 +4152,7 @@ includes nextCommand when another page is available.
|
|
|
4151
4152
|
"--limit",
|
|
4152
4153
|
String(limit)
|
|
4153
4154
|
].join(" ") : null;
|
|
4154
|
-
|
|
4155
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
4155
4156
|
{
|
|
4156
4157
|
parentRunId,
|
|
4157
4158
|
launchKey: options.launchKey,
|
|
@@ -4187,7 +4188,7 @@ async function handleRunsHistory(options) {
|
|
|
4187
4188
|
throw new Error("--limit must be a positive integer.");
|
|
4188
4189
|
}
|
|
4189
4190
|
}
|
|
4190
|
-
const page = await new (0,
|
|
4191
|
+
const page = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().runs.history({
|
|
4191
4192
|
cursor: options.cursor,
|
|
4192
4193
|
orgId: options.org,
|
|
4193
4194
|
search: options.search,
|
|
@@ -4203,7 +4204,7 @@ async function handleRunsHistory(options) {
|
|
|
4203
4204
|
);
|
|
4204
4205
|
}
|
|
4205
4206
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4206
|
-
|
|
4207
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
4207
4208
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4208
4209
|
options.json ? { json: true } : {}
|
|
4209
4210
|
);
|
|
@@ -4255,12 +4256,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4255
4256
|
return 1;
|
|
4256
4257
|
}
|
|
4257
4258
|
}
|
|
4258
|
-
const result = await new (0,
|
|
4259
|
+
const result = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().runs.rerun(runId, {
|
|
4259
4260
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4260
4261
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4261
4262
|
});
|
|
4262
|
-
if (
|
|
4263
|
-
|
|
4263
|
+
if (_chunk7OQZZHZ4js.shouldEmitJson.call(void 0, options.json)) {
|
|
4264
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4264
4265
|
} else if (result.rateLimited) {
|
|
4265
4266
|
console.log(`
|
|
4266
4267
|
${result.rateLimited.message}`);
|
|
@@ -5054,13 +5055,13 @@ var RunDataset = class _RunDataset {
|
|
|
5054
5055
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5055
5056
|
_fs.writeFileSync.call(void 0,
|
|
5056
5057
|
absolutePath,
|
|
5057
|
-
`${JSON.stringify(
|
|
5058
|
+
`${JSON.stringify(_chunkKLQ5CR77js.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5058
5059
|
`,
|
|
5059
5060
|
"utf-8"
|
|
5060
5061
|
);
|
|
5061
5062
|
return absolutePath;
|
|
5062
5063
|
}
|
|
5063
|
-
return
|
|
5064
|
+
return _chunkKLQ5CR77js.writeRunDatasetCsv.call(void 0, {
|
|
5064
5065
|
rows: this.rows,
|
|
5065
5066
|
columns: this.#info.columns,
|
|
5066
5067
|
outPath
|
|
@@ -6757,7 +6758,7 @@ function renderOutcome(outcome) {
|
|
|
6757
6758
|
function printResult2(input) {
|
|
6758
6759
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6759
6760
|
if (failed) process.exitCode = 1;
|
|
6760
|
-
|
|
6761
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
6761
6762
|
{
|
|
6762
6763
|
deployment: { ...input.deployment, status: input.status },
|
|
6763
6764
|
plays: input.outcomes,
|
|
@@ -6782,7 +6783,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6782
6783
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6783
6784
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6784
6785
|
});
|
|
6785
|
-
const { http, config } =
|
|
6786
|
+
const { http, config } = _chunk7OQZZHZ4js.getAuthedHttpClient.call(void 0, );
|
|
6786
6787
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6787
6788
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6788
6789
|
deliveryId,
|
|
@@ -6809,7 +6810,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6809
6810
|
},
|
|
6810
6811
|
{
|
|
6811
6812
|
bundle: bundleDeployPlayFile,
|
|
6812
|
-
fetchImpl:
|
|
6813
|
+
fetchImpl: _chunk2RZHMCDLjs.fetchWithDeploymentProtection,
|
|
6813
6814
|
// The plays are already here: "opening" the source is naming it.
|
|
6814
6815
|
openSource: async () => ({
|
|
6815
6816
|
open: async () => ({ repoRoot: root })
|
|
@@ -6935,7 +6936,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6935
6936
|
// src/cli/renderers/local-play-execution.ts
|
|
6936
6937
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6937
6938
|
if (options.dryRun) {
|
|
6938
|
-
|
|
6939
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6939
6940
|
return;
|
|
6940
6941
|
}
|
|
6941
6942
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7107,7 +7108,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7107
7108
|
const startedAt = Date.now();
|
|
7108
7109
|
try {
|
|
7109
7110
|
const result = run();
|
|
7110
|
-
|
|
7111
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
7111
7112
|
phase,
|
|
7112
7113
|
ms: Date.now() - startedAt,
|
|
7113
7114
|
ok: true,
|
|
@@ -7115,7 +7116,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7115
7116
|
});
|
|
7116
7117
|
return result;
|
|
7117
7118
|
} catch (error) {
|
|
7118
|
-
|
|
7119
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
7119
7120
|
phase,
|
|
7120
7121
|
ms: Date.now() - startedAt,
|
|
7121
7122
|
ok: false,
|
|
@@ -7921,7 +7922,7 @@ function playStatusErrorText(status) {
|
|
|
7921
7922
|
function isRetryablePendingStartFailure(status) {
|
|
7922
7923
|
if (status.status !== "failed") return false;
|
|
7923
7924
|
if (status.runId && status.runId !== "pending") return false;
|
|
7924
|
-
return
|
|
7925
|
+
return _chunkXSUQAUG4js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7925
7926
|
}
|
|
7926
7927
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7927
7928
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -7971,13 +7972,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
7971
7972
|
}, _class);
|
|
7972
7973
|
function watchSurfaceReaches(state, provenance, level) {
|
|
7973
7974
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
7974
|
-
if (!
|
|
7975
|
+
if (!_chunkXSUQAUG4js.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
7975
7976
|
return false;
|
|
7976
7977
|
}
|
|
7977
|
-
if (
|
|
7978
|
+
if (_chunkXSUQAUG4js.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
7978
7979
|
return true;
|
|
7979
7980
|
}
|
|
7980
|
-
return state.verbose === true &&
|
|
7981
|
+
return state.verbose === true && _chunkXSUQAUG4js.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
7981
7982
|
}
|
|
7982
7983
|
function getEventPayload(event) {
|
|
7983
7984
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8487,7 +8488,7 @@ function resolvePlayRunUrl(input) {
|
|
|
8487
8488
|
}
|
|
8488
8489
|
function openPlayDashboard(url, open2) {
|
|
8489
8490
|
if (open2 && url) {
|
|
8490
|
-
|
|
8491
|
+
_chunk7OQZZHZ4js.openInBrowser.call(void 0, url);
|
|
8491
8492
|
}
|
|
8492
8493
|
}
|
|
8493
8494
|
function printPlayLogLines(input) {
|
|
@@ -8568,7 +8569,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8568
8569
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8569
8570
|
});
|
|
8570
8571
|
} catch (error) {
|
|
8571
|
-
if (
|
|
8572
|
+
if (_chunkXSUQAUG4js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8572
8573
|
return null;
|
|
8573
8574
|
}
|
|
8574
8575
|
throw error;
|
|
@@ -8649,9 +8650,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8649
8650
|
signal: controller.signal,
|
|
8650
8651
|
deferLogs: !input.emitLogs,
|
|
8651
8652
|
omitTerminalLogs: !input.emitLogs,
|
|
8652
|
-
...
|
|
8653
|
+
..._chunkYRQWGWRJjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8653
8654
|
onPoll: (observation) => {
|
|
8654
|
-
|
|
8655
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
8655
8656
|
phase: "play_watch_poll",
|
|
8656
8657
|
workflowId: input.workflowId,
|
|
8657
8658
|
ms: observation.durationMs,
|
|
@@ -8665,7 +8666,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8665
8666
|
full: input.fullJson,
|
|
8666
8667
|
billing: false,
|
|
8667
8668
|
onStatus: async (status) => {
|
|
8668
|
-
|
|
8669
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
8669
8670
|
phase: "play_watch_terminal_status",
|
|
8670
8671
|
workflowId: input.workflowId,
|
|
8671
8672
|
full: input.fullJson === true
|
|
@@ -8754,7 +8755,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8754
8755
|
signal: controller.signal,
|
|
8755
8756
|
cliAdmission: useCliAdmission
|
|
8756
8757
|
});
|
|
8757
|
-
|
|
8758
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
8758
8759
|
phase: "cli.play_start_admission_attempt",
|
|
8759
8760
|
ms: Date.now() - postStartedAt,
|
|
8760
8761
|
ok: true,
|
|
@@ -8766,7 +8767,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8766
8767
|
});
|
|
8767
8768
|
break;
|
|
8768
8769
|
} catch (error) {
|
|
8769
|
-
|
|
8770
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
8770
8771
|
phase: "cli.play_start_admission_attempt",
|
|
8771
8772
|
ms: Date.now() - postStartedAt,
|
|
8772
8773
|
ok: false,
|
|
@@ -8817,7 +8818,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8817
8818
|
prepared.workflowId
|
|
8818
8819
|
);
|
|
8819
8820
|
}
|
|
8820
|
-
await
|
|
8821
|
+
await _chunkLUNXREUIjs.checkPlayRunCompatibility.call(void 0,
|
|
8821
8822
|
input.client.baseUrl,
|
|
8822
8823
|
input.maintenancePolicy
|
|
8823
8824
|
);
|
|
@@ -8835,7 +8836,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8835
8836
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
8836
8837
|
);
|
|
8837
8838
|
}
|
|
8838
|
-
|
|
8839
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
8839
8840
|
phase: "cli.play_start_json_retry",
|
|
8840
8841
|
ms: 0,
|
|
8841
8842
|
ok: true,
|
|
@@ -8915,7 +8916,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8915
8916
|
_nullishCoalesce(input.open, () => ( false))
|
|
8916
8917
|
);
|
|
8917
8918
|
input.progress.phase("running");
|
|
8918
|
-
|
|
8919
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
8919
8920
|
phase: "cli.play_start_admitted",
|
|
8920
8921
|
ms: Date.now() - startedAt,
|
|
8921
8922
|
ok: true,
|
|
@@ -8933,7 +8934,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8933
8934
|
startedAt,
|
|
8934
8935
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8935
8936
|
});
|
|
8936
|
-
const initialStatus =
|
|
8937
|
+
const initialStatus = _chunkXSUQAUG4js.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8937
8938
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8938
8939
|
client: input.client,
|
|
8939
8940
|
status: initialStatus,
|
|
@@ -8941,7 +8942,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8941
8942
|
jsonOutput: input.jsonOutput,
|
|
8942
8943
|
fromDurableStatus: true
|
|
8943
8944
|
});
|
|
8944
|
-
|
|
8945
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
8945
8946
|
phase: "play_watch_terminal_status",
|
|
8946
8947
|
workflowId,
|
|
8947
8948
|
full: true,
|
|
@@ -9046,7 +9047,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9046
9047
|
});
|
|
9047
9048
|
}
|
|
9048
9049
|
if (error instanceof _chunkEQR5O2D2js.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
9049
|
-
await
|
|
9050
|
+
await _chunkLUNXREUIjs.checkPlayRunCompatibility.call(void 0,
|
|
9050
9051
|
input.client.baseUrl,
|
|
9051
9052
|
input.maintenancePolicy,
|
|
9052
9053
|
admissionDeadline.signal
|
|
@@ -9087,7 +9088,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9087
9088
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9088
9089
|
);
|
|
9089
9090
|
}
|
|
9090
|
-
|
|
9091
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
9091
9092
|
phase: "cli.play_start_stream_retry",
|
|
9092
9093
|
ms: 0,
|
|
9093
9094
|
ok: true,
|
|
@@ -9108,7 +9109,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9108
9109
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9109
9110
|
);
|
|
9110
9111
|
}
|
|
9111
|
-
|
|
9112
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
9112
9113
|
phase: "cli.play_start_stream_retry",
|
|
9113
9114
|
ms: 0,
|
|
9114
9115
|
ok: true,
|
|
@@ -9165,7 +9166,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9165
9166
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9166
9167
|
launchConfirmed = true;
|
|
9167
9168
|
await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
|
|
9168
|
-
|
|
9169
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
9169
9170
|
phase: "cli.play_start_admitted",
|
|
9170
9171
|
ms: Date.now() - startedAt,
|
|
9171
9172
|
ok: true,
|
|
@@ -9199,7 +9200,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9199
9200
|
full: input.fullJson
|
|
9200
9201
|
});
|
|
9201
9202
|
} catch (error) {
|
|
9202
|
-
if (
|
|
9203
|
+
if (_chunkXSUQAUG4js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9203
9204
|
return null;
|
|
9204
9205
|
}
|
|
9205
9206
|
throw error;
|
|
@@ -9370,7 +9371,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9370
9371
|
};
|
|
9371
9372
|
}
|
|
9372
9373
|
if (!canonicalTerminal) {
|
|
9373
|
-
|
|
9374
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
9374
9375
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9375
9376
|
ms: Date.now() - startedAt,
|
|
9376
9377
|
ok: true,
|
|
@@ -9391,14 +9392,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9391
9392
|
fromDurableStatus
|
|
9392
9393
|
}) : canonicalTerminal;
|
|
9393
9394
|
if (input.fullJson === true) {
|
|
9394
|
-
|
|
9395
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
9395
9396
|
phase: "play_watch_terminal_status",
|
|
9396
9397
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9397
9398
|
full: true,
|
|
9398
9399
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9399
9400
|
});
|
|
9400
9401
|
}
|
|
9401
|
-
|
|
9402
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
9402
9403
|
phase: "cli.play_start_stream_terminal",
|
|
9403
9404
|
ms: Date.now() - startedAt,
|
|
9404
9405
|
ok: true,
|
|
@@ -9418,7 +9419,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9418
9419
|
clearTimeout(timeout);
|
|
9419
9420
|
}
|
|
9420
9421
|
controller.abort();
|
|
9421
|
-
|
|
9422
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
9422
9423
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9423
9424
|
ms: Date.now() - startedAt,
|
|
9424
9425
|
ok: true,
|
|
@@ -9449,7 +9450,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9449
9450
|
if (timedOut) {
|
|
9450
9451
|
const terminal = await fetchKnownTerminalStatus();
|
|
9451
9452
|
if (terminal) {
|
|
9452
|
-
|
|
9453
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
9453
9454
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9454
9455
|
ms: Date.now() - startedAt,
|
|
9455
9456
|
ok: true,
|
|
@@ -9469,7 +9470,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9469
9470
|
lastPhase
|
|
9470
9471
|
});
|
|
9471
9472
|
}
|
|
9472
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9473
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkXSUQAUG4js.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9473
9474
|
if (timeout) {
|
|
9474
9475
|
clearTimeout(timeout);
|
|
9475
9476
|
}
|
|
@@ -9480,7 +9481,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9480
9481
|
`
|
|
9481
9482
|
);
|
|
9482
9483
|
}
|
|
9483
|
-
|
|
9484
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
9484
9485
|
phase: "cli.play_start_stream_reconnect",
|
|
9485
9486
|
ms: Date.now() - startedAt,
|
|
9486
9487
|
ok: true,
|
|
@@ -9507,7 +9508,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9507
9508
|
});
|
|
9508
9509
|
}
|
|
9509
9510
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9510
|
-
|
|
9511
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
9511
9512
|
phase: "cli.play_start_stream_transient_failure",
|
|
9512
9513
|
ms: Date.now() - startedAt,
|
|
9513
9514
|
ok: false,
|
|
@@ -9535,7 +9536,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9535
9536
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9536
9537
|
);
|
|
9537
9538
|
}
|
|
9538
|
-
|
|
9539
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
9539
9540
|
phase: "cli.play_start_stream_reconnect",
|
|
9540
9541
|
ms: Date.now() - startedAt,
|
|
9541
9542
|
ok: true,
|
|
@@ -9615,7 +9616,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9615
9616
|
"logs"
|
|
9616
9617
|
]);
|
|
9617
9618
|
function formatPlayLogLine(rawLine, state) {
|
|
9618
|
-
const classified =
|
|
9619
|
+
const classified = _chunkXSUQAUG4js.classifyLogLine.call(void 0, rawLine);
|
|
9619
9620
|
const line = classified.line;
|
|
9620
9621
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9621
9622
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9630,14 +9631,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9630
9631
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9631
9632
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9632
9633
|
if (providerWait && !state.verbose) {
|
|
9633
|
-
return
|
|
9634
|
+
return _chunkXSUQAUG4js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9634
9635
|
}
|
|
9635
9636
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9636
9637
|
if (mapProgress && !state.verbose) {
|
|
9637
|
-
return
|
|
9638
|
+
return _chunkXSUQAUG4js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9638
9639
|
}
|
|
9639
9640
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9640
|
-
if (!
|
|
9641
|
+
if (!_chunkXSUQAUG4js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9641
9642
|
return null;
|
|
9642
9643
|
}
|
|
9643
9644
|
if (state.emittedRunnerStarted) {
|
|
@@ -9650,7 +9651,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9650
9651
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9651
9652
|
);
|
|
9652
9653
|
if (mapStart) {
|
|
9653
|
-
if (!
|
|
9654
|
+
if (!_chunkXSUQAUG4js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9654
9655
|
return null;
|
|
9655
9656
|
}
|
|
9656
9657
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9660,7 +9661,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9660
9661
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9661
9662
|
);
|
|
9662
9663
|
if (mapDone) {
|
|
9663
|
-
if (!
|
|
9664
|
+
if (!_chunkXSUQAUG4js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9664
9665
|
return null;
|
|
9665
9666
|
}
|
|
9666
9667
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10960,7 +10961,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10960
10961
|
(line) => typeof line === "string"
|
|
10961
10962
|
);
|
|
10962
10963
|
if (tail.length === 0) return [];
|
|
10963
|
-
const shown = tail.map((line) =>
|
|
10964
|
+
const shown = tail.map((line) => _chunkXSUQAUG4js.classifyLogLine.call(void 0, line)).filter(
|
|
10964
10965
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10965
10966
|
).slice(-8);
|
|
10966
10967
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11258,11 +11259,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11258
11259
|
}
|
|
11259
11260
|
function writePlayResult(status, jsonOutput, options) {
|
|
11260
11261
|
const packaged = getPlayRunPackage(status);
|
|
11261
|
-
if (status.package)
|
|
11262
|
+
if (status.package) _chunkKLQ5CR77js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11262
11263
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
|
|
11263
11264
|
if (jsonOutput) {
|
|
11264
11265
|
const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11265
|
-
|
|
11266
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
11266
11267
|
hits ? { ...payload2, hits } : payload2,
|
|
11267
11268
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
|
|
11268
11269
|
);
|
|
@@ -11278,7 +11279,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11278
11279
|
...buildPlayCompletionTextLines(status),
|
|
11279
11280
|
...formatRunHitsLines(hits)
|
|
11280
11281
|
];
|
|
11281
|
-
|
|
11282
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11282
11283
|
json: false,
|
|
11283
11284
|
text: `${lines2.join("\n")}
|
|
11284
11285
|
`
|
|
@@ -11329,7 +11330,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11329
11330
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11330
11331
|
const compact = compactPlayStatus(status);
|
|
11331
11332
|
const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
|
|
11332
|
-
|
|
11333
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
11333
11334
|
{
|
|
11334
11335
|
...payload,
|
|
11335
11336
|
render: {
|
|
@@ -11553,7 +11554,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11553
11554
|
}
|
|
11554
11555
|
offset += page.rows.length;
|
|
11555
11556
|
}
|
|
11556
|
-
const withError =
|
|
11557
|
+
const withError = _chunkKLQ5CR77js.tableExportHasFailedRows.call(void 0,
|
|
11557
11558
|
sheetRows.filter(
|
|
11558
11559
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11559
11560
|
)
|
|
@@ -11569,7 +11570,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11569
11570
|
return [
|
|
11570
11571
|
withError ? {
|
|
11571
11572
|
...exported,
|
|
11572
|
-
[
|
|
11573
|
+
[_chunkKLQ5CR77js.TABLE_EXPORT_ERROR_COLUMN]: _chunkKLQ5CR77js.tableExportErrorCell.call(void 0,
|
|
11573
11574
|
row
|
|
11574
11575
|
)
|
|
11575
11576
|
} : exported
|
|
@@ -12104,7 +12105,7 @@ function renderServerResultView(value) {
|
|
|
12104
12105
|
function writeStartedPlayRun(input) {
|
|
12105
12106
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12106
12107
|
const run = input.package.run;
|
|
12107
|
-
|
|
12108
|
+
_chunkKLQ5CR77js.recordPlayTermination.call(void 0, {
|
|
12108
12109
|
id: run.id,
|
|
12109
12110
|
status: run.status,
|
|
12110
12111
|
finishedAt: run.finishedAt
|
|
@@ -12117,7 +12118,7 @@ function writeStartedPlayRun(input) {
|
|
|
12117
12118
|
dashboardUrl: input.dashboardUrl,
|
|
12118
12119
|
package: input.package
|
|
12119
12120
|
};
|
|
12120
|
-
|
|
12121
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12121
12122
|
json: true,
|
|
12122
12123
|
fields: input.jsonFields
|
|
12123
12124
|
});
|
|
@@ -12139,7 +12140,7 @@ function writeStartedPlayRun(input) {
|
|
|
12139
12140
|
input.progress.writeLine(output2, process.stdout);
|
|
12140
12141
|
return;
|
|
12141
12142
|
}
|
|
12142
|
-
|
|
12143
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, input.package, {
|
|
12143
12144
|
json: false,
|
|
12144
12145
|
text: `${output2}
|
|
12145
12146
|
`
|
|
@@ -12174,7 +12175,7 @@ function writeStartedPlayRun(input) {
|
|
|
12174
12175
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12175
12176
|
];
|
|
12176
12177
|
if (input.jsonOutput) {
|
|
12177
|
-
|
|
12178
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12178
12179
|
return;
|
|
12179
12180
|
}
|
|
12180
12181
|
const output = lines.join("\n");
|
|
@@ -12182,7 +12183,7 @@ function writeStartedPlayRun(input) {
|
|
|
12182
12183
|
input.progress.writeLine(output, process.stdout);
|
|
12183
12184
|
return;
|
|
12184
12185
|
}
|
|
12185
|
-
|
|
12186
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
12186
12187
|
{
|
|
12187
12188
|
...payload,
|
|
12188
12189
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12192,7 +12193,7 @@ function writeStartedPlayRun(input) {
|
|
|
12192
12193
|
);
|
|
12193
12194
|
}
|
|
12194
12195
|
function parsePlayCheckOptions(args) {
|
|
12195
|
-
const selection =
|
|
12196
|
+
const selection = _chunk7OQZZHZ4js.parseJsonFields.call(void 0, args, "check");
|
|
12196
12197
|
args = selection.args;
|
|
12197
12198
|
const target = args[0];
|
|
12198
12199
|
if (!target || target.startsWith("-")) {
|
|
@@ -12204,7 +12205,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12204
12205
|
if (arg !== "--json" && arg !== "--full")
|
|
12205
12206
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12206
12207
|
}
|
|
12207
|
-
const jsonOutput =
|
|
12208
|
+
const jsonOutput = _chunk7OQZZHZ4js.argsWantJson.call(void 0, args);
|
|
12208
12209
|
return {
|
|
12209
12210
|
target,
|
|
12210
12211
|
jsonOutput,
|
|
@@ -12280,7 +12281,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12280
12281
|
useLatest,
|
|
12281
12282
|
expectedArtifactHash,
|
|
12282
12283
|
dryRun,
|
|
12283
|
-
jsonOutput:
|
|
12284
|
+
jsonOutput: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args)
|
|
12284
12285
|
};
|
|
12285
12286
|
}
|
|
12286
12287
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12321,7 +12322,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12321
12322
|
target,
|
|
12322
12323
|
expectedArtifactHash,
|
|
12323
12324
|
dryRun,
|
|
12324
|
-
jsonOutput:
|
|
12325
|
+
jsonOutput: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args)
|
|
12325
12326
|
};
|
|
12326
12327
|
}
|
|
12327
12328
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12532,7 +12533,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12532
12533
|
async function handlePlayCheck(args) {
|
|
12533
12534
|
const options = parsePlayCheckOptions(args);
|
|
12534
12535
|
if (!isFileTarget(options.target)) {
|
|
12535
|
-
const client = new (0,
|
|
12536
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
12536
12537
|
try {
|
|
12537
12538
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12538
12539
|
command: "check"
|
|
@@ -12561,7 +12562,7 @@ async function handlePlayCheck(args) {
|
|
|
12561
12562
|
},
|
|
12562
12563
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12563
12564
|
};
|
|
12564
|
-
|
|
12565
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, result, {
|
|
12565
12566
|
json: options.jsonOutput,
|
|
12566
12567
|
fields: options.jsonFields,
|
|
12567
12568
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12571,7 +12572,7 @@ async function handlePlayCheck(args) {
|
|
|
12571
12572
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12572
12573
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12573
12574
|
if (options.jsonOutput) {
|
|
12574
|
-
|
|
12575
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
12575
12576
|
{
|
|
12576
12577
|
kind: "play_check",
|
|
12577
12578
|
checked: "named_contract",
|
|
@@ -12602,7 +12603,7 @@ async function handlePlayCheck(args) {
|
|
|
12602
12603
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12603
12604
|
publishCommand: _optionalChain([primary, 'optionalAccess', _478 => _478.result, 'access', _479 => _479.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12604
12605
|
});
|
|
12605
|
-
|
|
12606
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, output, {
|
|
12606
12607
|
json: options.jsonOutput,
|
|
12607
12608
|
fields: options.jsonFields,
|
|
12608
12609
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12670,7 +12671,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12670
12671
|
}
|
|
12671
12672
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12672
12673
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12673
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
12674
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunkPE3UHMMZjs.DeeplineClient)()));
|
|
12674
12675
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12675
12676
|
const checked = await checkLocalPlayGraph({
|
|
12676
12677
|
client,
|
|
@@ -12726,8 +12727,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12726
12727
|
let prefetchClient;
|
|
12727
12728
|
let admissionCapability;
|
|
12728
12729
|
let cancelAdmissionCapability;
|
|
12729
|
-
let cliAdmission =
|
|
12730
|
-
const progress = _nullishCoalesce(
|
|
12730
|
+
let cliAdmission = _chunkLUNXREUIjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12731
|
+
const progress = _nullishCoalesce(_chunkAGZRRHSBjs.getActiveCliProgress.call(void 0, ), () => ( _chunkAGZRRHSBjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12732
|
+
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _488 => _488.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
12731
12733
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12732
12734
|
progress.phase("compiling play");
|
|
12733
12735
|
const sourceCode = traceCliSync(
|
|
@@ -12739,15 +12741,15 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12739
12741
|
try {
|
|
12740
12742
|
preflightLocalFileInputs(runtimeInput);
|
|
12741
12743
|
} catch (error) {
|
|
12742
|
-
|
|
12744
|
+
reportError(error);
|
|
12743
12745
|
return 1;
|
|
12744
12746
|
}
|
|
12745
12747
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12746
|
-
const clientForPrefetch = new (0,
|
|
12748
|
+
const clientForPrefetch = new (0, _chunkPE3UHMMZjs.DeeplineClient)(playRunClientOptions(options));
|
|
12747
12749
|
prefetchClient = clientForPrefetch;
|
|
12748
12750
|
const capabilityController = new AbortController();
|
|
12749
12751
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12750
|
-
admissionCapability =
|
|
12752
|
+
admissionCapability = _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
12751
12753
|
"cli.play_admission_capability_prefetch",
|
|
12752
12754
|
{ targetKind: "file" },
|
|
12753
12755
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -12758,7 +12760,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12758
12760
|
}
|
|
12759
12761
|
let graph;
|
|
12760
12762
|
try {
|
|
12761
|
-
graph = await
|
|
12763
|
+
graph = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
12762
12764
|
"cli.play_file_bundle_graph",
|
|
12763
12765
|
{ targetKind: "file" },
|
|
12764
12766
|
() => collectBundledPlayGraph(
|
|
@@ -12771,15 +12773,20 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12771
12773
|
assertPlayGraphAuthoring(graph);
|
|
12772
12774
|
if (options.dryRun) {
|
|
12773
12775
|
progress.complete();
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
);
|
|
12776
|
+
const plan = _chunk7WUMIRBVjs.planLocalPlayExecution.call(void 0, graph, {
|
|
12777
|
+
runIdFile: options.runIdFile
|
|
12778
|
+
});
|
|
12779
|
+
if (_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
12780
|
+
else
|
|
12781
|
+
renderLocalPlayExecutionPlan(plan, {
|
|
12782
|
+
dryRun: true,
|
|
12783
|
+
json: options.jsonOutput
|
|
12784
|
+
});
|
|
12778
12785
|
return 0;
|
|
12779
12786
|
}
|
|
12780
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
12787
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkPE3UHMMZjs.DeeplineClient)(playRunClientOptions(options))));
|
|
12781
12788
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12782
|
-
await
|
|
12789
|
+
await _chunkLUNXREUIjs.checkPlayRunCompatibility.call(void 0,
|
|
12783
12790
|
client.baseUrl,
|
|
12784
12791
|
options.maintenancePolicy
|
|
12785
12792
|
);
|
|
@@ -12792,7 +12799,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12792
12799
|
});
|
|
12793
12800
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12794
12801
|
if (canDeferCompilerManifest) {
|
|
12795
|
-
|
|
12802
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
12796
12803
|
phase: "cli.play_file_compile_manifests",
|
|
12797
12804
|
ms: 0,
|
|
12798
12805
|
ok: true,
|
|
@@ -12801,7 +12808,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12801
12808
|
reason: "validated_by_run_route"
|
|
12802
12809
|
});
|
|
12803
12810
|
} else {
|
|
12804
|
-
await
|
|
12811
|
+
await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
12805
12812
|
"cli.play_file_compile_manifests",
|
|
12806
12813
|
{ targetKind: "file", skipped: false },
|
|
12807
12814
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12809,11 +12816,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12809
12816
|
}
|
|
12810
12817
|
progress.phase("compiled play");
|
|
12811
12818
|
} catch (error) {
|
|
12819
|
+
if (error instanceof _chunkKLQ5CR77js.ExecutionOutputError) throw error;
|
|
12812
12820
|
progress.fail();
|
|
12813
|
-
|
|
12814
|
-
console.error(
|
|
12815
|
-
normalizedError instanceof Error ? normalizedError.message : String(normalizedError)
|
|
12816
|
-
);
|
|
12821
|
+
reportError(normalizePlayValidationError(error));
|
|
12817
12822
|
return 1;
|
|
12818
12823
|
}
|
|
12819
12824
|
let bundleResult = graph.root;
|
|
@@ -12822,13 +12827,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12822
12827
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12823
12828
|
try {
|
|
12824
12829
|
renderLocalPlayExecutionPlan(
|
|
12825
|
-
|
|
12830
|
+
_chunk7WUMIRBVjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12826
12831
|
);
|
|
12827
12832
|
progress.phase("pinning imported plays");
|
|
12828
|
-
graph = await
|
|
12833
|
+
graph = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
12829
12834
|
"cli.play_file_pin_imports",
|
|
12830
12835
|
{ targetKind: "file" },
|
|
12831
|
-
() =>
|
|
12836
|
+
() => _chunk7WUMIRBVjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12832
12837
|
);
|
|
12833
12838
|
bundleResult = graph.root;
|
|
12834
12839
|
} catch (error) {
|
|
@@ -12842,9 +12847,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12842
12847
|
);
|
|
12843
12848
|
const compilerManifest = _nullishCoalesce(bundleResult.compilerManifest, () => ( null));
|
|
12844
12849
|
const fileInputBindings = _chunkEQR5O2D2js.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12845
|
-
_optionalChain([compilerManifest, 'optionalAccess',
|
|
12850
|
+
_optionalChain([compilerManifest, 'optionalAccess', _490 => _490.staticPipeline])
|
|
12846
12851
|
);
|
|
12847
|
-
const stagedFileInputs = await
|
|
12852
|
+
const stagedFileInputs = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
12848
12853
|
"cli.play_stage_inputs",
|
|
12849
12854
|
{
|
|
12850
12855
|
targetKind: "file",
|
|
@@ -12891,7 +12896,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12891
12896
|
};
|
|
12892
12897
|
if (options.watch) {
|
|
12893
12898
|
progress.phase("starting run");
|
|
12894
|
-
const finalStatus = await
|
|
12899
|
+
const finalStatus = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
12895
12900
|
"cli.play_start_watch",
|
|
12896
12901
|
{ targetKind: "file", playName },
|
|
12897
12902
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12905,9 +12910,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12905
12910
|
waitTimeoutMs: options.waitTimeoutMs,
|
|
12906
12911
|
open: options.open,
|
|
12907
12912
|
progress,
|
|
12908
|
-
onRunStarted: _optionalChain([hooks, 'optionalAccess',
|
|
12909
|
-
onSubmission: _optionalChain([hooks, 'optionalAccess',
|
|
12910
|
-
onRunAdmitted: _optionalChain([hooks, 'optionalAccess',
|
|
12913
|
+
onRunStarted: _optionalChain([hooks, 'optionalAccess', _491 => _491.onRunStarted]),
|
|
12914
|
+
onSubmission: _optionalChain([hooks, 'optionalAccess', _492 => _492.onSubmission]),
|
|
12915
|
+
onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _493 => _493.onRunAdmitted]),
|
|
12911
12916
|
maintenancePolicy: options.maintenancePolicy,
|
|
12912
12917
|
...!options.runIdFile || options.fullJson ? { fullJson: options.fullJson } : {},
|
|
12913
12918
|
...cliAdmission ? {
|
|
@@ -12937,8 +12942,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12937
12942
|
),
|
|
12938
12943
|
options
|
|
12939
12944
|
);
|
|
12940
|
-
_optionalChain([hooks, 'optionalAccess',
|
|
12941
|
-
if (_optionalChain([hooks, 'optionalAccess',
|
|
12945
|
+
_optionalChain([hooks, 'optionalAccess', _494 => _494.onTerminalStatus, 'optionalCall', _495 => _495(outputStatus)]);
|
|
12946
|
+
if (_optionalChain([hooks, 'optionalAccess', _496 => _496.writeResult])) {
|
|
12942
12947
|
await hooks.writeResult(client, outputStatus);
|
|
12943
12948
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12944
12949
|
}
|
|
@@ -12953,15 +12958,15 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12953
12958
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12954
12959
|
}
|
|
12955
12960
|
progress.phase("starting run");
|
|
12956
|
-
const started = await
|
|
12961
|
+
const started = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
12957
12962
|
"cli.play_start_unwatched",
|
|
12958
12963
|
{ targetKind: "file", playName },
|
|
12959
|
-
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess',
|
|
12964
|
+
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _497 => _497.onSubmission]) }).catch(async (error) => {
|
|
12960
12965
|
throw await normalizePlayStartError(client, error, playName);
|
|
12961
12966
|
})
|
|
12962
12967
|
);
|
|
12963
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
12964
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
12968
|
+
await _optionalChain([hooks, 'optionalAccess', _498 => _498.onRunStarted, 'optionalCall', _499 => _499(started.workflowId)]);
|
|
12969
|
+
await _optionalChain([hooks, 'optionalAccess', _500 => _500.onRunAdmitted, 'optionalCall', _501 => _501(started.workflowId)]);
|
|
12965
12970
|
const resolvedDashboardUrl = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
|
|
12966
12971
|
openPlayDashboard(
|
|
12967
12972
|
resolvePlayRunUrl({
|
|
@@ -12973,7 +12978,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12973
12978
|
);
|
|
12974
12979
|
progress.phase("started run");
|
|
12975
12980
|
progress.complete();
|
|
12976
|
-
if (_optionalChain([hooks, 'optionalAccess',
|
|
12981
|
+
if (_optionalChain([hooks, 'optionalAccess', _502 => _502.writeStarted])) {
|
|
12977
12982
|
hooks.writeStarted(
|
|
12978
12983
|
started.workflowId,
|
|
12979
12984
|
_nullishCoalesce(started.status, () => ( "started")),
|
|
@@ -13008,7 +13013,7 @@ async function resolveNamedRunRevisionId(input) {
|
|
|
13008
13013
|
if (input.selector === "latest") {
|
|
13009
13014
|
const versions = await input.client.listPlayVersions(input.playName);
|
|
13010
13015
|
const latest = versions[0];
|
|
13011
|
-
if (!_optionalChain([latest, 'optionalAccess',
|
|
13016
|
+
if (!_optionalChain([latest, 'optionalAccess', _503 => _503._id])) {
|
|
13012
13017
|
throw new Error(`No saved revisions found for ${input.playName}.`);
|
|
13013
13018
|
}
|
|
13014
13019
|
return latest._id;
|
|
@@ -13019,9 +13024,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13019
13024
|
if (options.target.kind !== "name") {
|
|
13020
13025
|
throw new Error("Expected a named play run target.");
|
|
13021
13026
|
}
|
|
13022
|
-
const client = new (0,
|
|
13023
|
-
let cliAdmission =
|
|
13024
|
-
const progress = _nullishCoalesce(
|
|
13027
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)(playRunClientOptions(options));
|
|
13028
|
+
let cliAdmission = _chunkLUNXREUIjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13029
|
+
const progress = _nullishCoalesce(_chunkAGZRRHSBjs.getActiveCliProgress.call(void 0, ), () => ( _chunkAGZRRHSBjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13025
13030
|
const playName = options.target.name;
|
|
13026
13031
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13027
13032
|
try {
|
|
@@ -13039,7 +13044,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13039
13044
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13040
13045
|
const capabilityController = new AbortController();
|
|
13041
13046
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13042
|
-
admissionCapability =
|
|
13047
|
+
admissionCapability = _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
13043
13048
|
"cli.play_admission_capability_prefetch",
|
|
13044
13049
|
{ targetKind: "name", playName },
|
|
13045
13050
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13050,14 +13055,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13050
13055
|
}
|
|
13051
13056
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13052
13057
|
progress.phase("loading play definition");
|
|
13053
|
-
return
|
|
13058
|
+
return _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
13054
13059
|
"cli.play_load_definition",
|
|
13055
13060
|
{ targetKind: "name", playName, skipped: false },
|
|
13056
13061
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13057
13062
|
command: "run"
|
|
13058
13063
|
})
|
|
13059
13064
|
);
|
|
13060
|
-
})() : (
|
|
13065
|
+
})() : (_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
13061
13066
|
phase: "cli.play_load_definition",
|
|
13062
13067
|
ms: 0,
|
|
13063
13068
|
ok: true,
|
|
@@ -13066,7 +13071,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13066
13071
|
skipped: true
|
|
13067
13072
|
}), null);
|
|
13068
13073
|
progress.phase("selecting revision");
|
|
13069
|
-
const selectedRevisionId = await
|
|
13074
|
+
const selectedRevisionId = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
13070
13075
|
"cli.play_select_revision",
|
|
13071
13076
|
{
|
|
13072
13077
|
targetKind: "name",
|
|
@@ -13091,10 +13096,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13091
13096
|
..._chunkEQR5O2D2js.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13092
13097
|
] : [];
|
|
13093
13098
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13094
|
-
await
|
|
13099
|
+
await _chunkLUNXREUIjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13095
13100
|
cliAdmission = false;
|
|
13096
13101
|
}
|
|
13097
|
-
const stagedFileInputs = await
|
|
13102
|
+
const stagedFileInputs = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
13098
13103
|
"cli.play_stage_inputs",
|
|
13099
13104
|
{
|
|
13100
13105
|
targetKind: "name",
|
|
@@ -13138,7 +13143,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13138
13143
|
});
|
|
13139
13144
|
if (options.watch) {
|
|
13140
13145
|
progress.phase("starting run");
|
|
13141
|
-
const finalStatus = await
|
|
13146
|
+
const finalStatus = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
13142
13147
|
"cli.play_start_watch",
|
|
13143
13148
|
{ targetKind: "name", playName },
|
|
13144
13149
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13152,9 +13157,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13152
13157
|
waitTimeoutMs: options.waitTimeoutMs,
|
|
13153
13158
|
open: options.open,
|
|
13154
13159
|
progress,
|
|
13155
|
-
onRunStarted: _optionalChain([hooks, 'optionalAccess',
|
|
13156
|
-
onSubmission: _optionalChain([hooks, 'optionalAccess',
|
|
13157
|
-
onRunAdmitted: _optionalChain([hooks, 'optionalAccess',
|
|
13160
|
+
onRunStarted: _optionalChain([hooks, 'optionalAccess', _504 => _504.onRunStarted]),
|
|
13161
|
+
onSubmission: _optionalChain([hooks, 'optionalAccess', _505 => _505.onSubmission]),
|
|
13162
|
+
onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _506 => _506.onRunAdmitted]),
|
|
13158
13163
|
maintenancePolicy: options.maintenancePolicy,
|
|
13159
13164
|
...!options.runIdFile || options.fullJson ? { fullJson: options.fullJson } : {},
|
|
13160
13165
|
...cliAdmission ? {
|
|
@@ -13187,8 +13192,8 @@ async function handleNamedRun(options, hooks) {
|
|
|
13187
13192
|
options,
|
|
13188
13193
|
_nullishCoalesce(finalStatus.revisionId, () => ( selectedRevisionId))
|
|
13189
13194
|
);
|
|
13190
|
-
_optionalChain([hooks, 'optionalAccess',
|
|
13191
|
-
if (_optionalChain([hooks, 'optionalAccess',
|
|
13195
|
+
_optionalChain([hooks, 'optionalAccess', _507 => _507.onTerminalStatus, 'optionalCall', _508 => _508(outputStatus)]);
|
|
13196
|
+
if (_optionalChain([hooks, 'optionalAccess', _509 => _509.writeResult])) {
|
|
13192
13197
|
await hooks.writeResult(client, outputStatus);
|
|
13193
13198
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13194
13199
|
}
|
|
@@ -13203,17 +13208,17 @@ async function handleNamedRun(options, hooks) {
|
|
|
13203
13208
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13204
13209
|
}
|
|
13205
13210
|
progress.phase("starting run");
|
|
13206
|
-
const started = await
|
|
13211
|
+
const started = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
13207
13212
|
"cli.play_start_unwatched",
|
|
13208
13213
|
{ targetKind: "name", playName },
|
|
13209
|
-
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess',
|
|
13214
|
+
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _510 => _510.onSubmission]) }).catch(async (error) => {
|
|
13210
13215
|
throw await normalizePlayStartError(client, error, playName, {
|
|
13211
13216
|
suggestMissingPlay: true
|
|
13212
13217
|
});
|
|
13213
13218
|
})
|
|
13214
13219
|
);
|
|
13215
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13216
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13220
|
+
await _optionalChain([hooks, 'optionalAccess', _511 => _511.onRunStarted, 'optionalCall', _512 => _512(started.workflowId)]);
|
|
13221
|
+
await _optionalChain([hooks, 'optionalAccess', _513 => _513.onRunAdmitted, 'optionalCall', _514 => _514(started.workflowId)]);
|
|
13217
13222
|
const resolvedDashboardUrl = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
|
|
13218
13223
|
openPlayDashboard(
|
|
13219
13224
|
resolvePlayRunUrl({
|
|
@@ -13225,7 +13230,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13225
13230
|
);
|
|
13226
13231
|
progress.phase("started run");
|
|
13227
13232
|
progress.complete();
|
|
13228
|
-
if (_optionalChain([hooks, 'optionalAccess',
|
|
13233
|
+
if (_optionalChain([hooks, 'optionalAccess', _515 => _515.writeStarted])) {
|
|
13229
13234
|
hooks.writeStarted(
|
|
13230
13235
|
started.workflowId,
|
|
13231
13236
|
_nullishCoalesce(started.status, () => ( "started")),
|
|
@@ -13258,12 +13263,12 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13258
13263
|
const compact = compactPlayStatus(status);
|
|
13259
13264
|
const errors = Array.isArray(compact.errors) ? compact.errors : [];
|
|
13260
13265
|
const error = status.status === "failed" ? _nullishCoalesce(errors[0], () => ( {
|
|
13261
|
-
message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access',
|
|
13266
|
+
message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access', _516 => _516.progress, 'optionalAccess', _517 => _517.error]))), () => ( "Play failed. Inspect the run for details."))
|
|
13262
13267
|
})) : null;
|
|
13263
13268
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13264
|
-
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access',
|
|
13269
|
+
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _518 => _518.exec, 'call', _519 => _519(status.runId), 'optionalAccess', _520 => _520[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13265
13270
|
if (!terminal) {
|
|
13266
|
-
|
|
13271
|
+
_chunkKLQ5CR77js.writeExecutionOutput.call(void 0,
|
|
13267
13272
|
{
|
|
13268
13273
|
id: status.runId,
|
|
13269
13274
|
status: status.status,
|
|
@@ -13327,11 +13332,11 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13327
13332
|
Object.entries(handle).filter(([key]) => source !== "result" || key !== "_metadata").map(([key, child]) => [key, materialize(child, `${source}.${key}`)])
|
|
13328
13333
|
);
|
|
13329
13334
|
};
|
|
13330
|
-
const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call',
|
|
13335
|
+
const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call', _521 => _521(status), 'optionalAccess', _522 => _522.outputs]));
|
|
13331
13336
|
const returned = status.result !== void 0 ? status.result : packagedOutputs ? Object.fromEntries(
|
|
13332
13337
|
Object.entries(packagedOutputs).map(([key, value]) => [
|
|
13333
13338
|
key,
|
|
13334
|
-
_optionalChain([readRecord, 'call',
|
|
13339
|
+
_optionalChain([readRecord, 'call', _523 => _523(value), 'optionalAccess', _524 => _524.kind]) === "value" ? _optionalChain([readRecord, 'call', _525 => _525(value), 'optionalAccess', _526 => _526.value]) : value
|
|
13335
13340
|
])
|
|
13336
13341
|
) : null;
|
|
13337
13342
|
let data = materialize(returned);
|
|
@@ -13343,10 +13348,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13343
13348
|
};
|
|
13344
13349
|
}
|
|
13345
13350
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13346
|
-
const allCollections =
|
|
13351
|
+
const allCollections = _chunkKLQ5CR77js.outputCollections.call(void 0, data).map(
|
|
13347
13352
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13348
13353
|
);
|
|
13349
|
-
|
|
13354
|
+
_chunkKLQ5CR77js.writeExecutionOutput.call(void 0,
|
|
13350
13355
|
{
|
|
13351
13356
|
id: status.runId,
|
|
13352
13357
|
status: status.status,
|
|
@@ -13354,7 +13359,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13354
13359
|
...allCollections.length ? { collections: allCollections } : {},
|
|
13355
13360
|
complete: allCollections.every((c) => c.complete === true) ? true : allCollections.some((c) => c.complete === false) ? false : null,
|
|
13356
13361
|
error,
|
|
13357
|
-
credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access',
|
|
13362
|
+
credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _527 => _527.billing, 'optionalAccess', _528 => _528.totalCredits]))), () => ( null)),
|
|
13358
13363
|
...playName ? { page: _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
|
|
13359
13364
|
warnings: [
|
|
13360
13365
|
...buildRunWarnings(status, null),
|
|
@@ -13367,7 +13372,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13367
13372
|
}
|
|
13368
13373
|
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;
|
|
13369
13374
|
async function handlePlayRun(args, hooks) {
|
|
13370
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13375
|
+
const parsedOptions = Array.isArray(args) ? _chunkTUDYBF4Yjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13371
13376
|
const options = parsedOptions.runIdFile ? {
|
|
13372
13377
|
...parsedOptions,
|
|
13373
13378
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13384,7 +13389,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13384
13389
|
JSON.stringify({
|
|
13385
13390
|
version: 1,
|
|
13386
13391
|
admissionState: "submitted_unknown",
|
|
13387
|
-
baseUrl: new (0,
|
|
13392
|
+
baseUrl: new (0, _chunkPE3UHMMZjs.DeeplineClient)().baseUrl,
|
|
13388
13393
|
...intent
|
|
13389
13394
|
})
|
|
13390
13395
|
);
|
|
@@ -13396,7 +13401,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13396
13401
|
} finally {
|
|
13397
13402
|
await removeRunIdTempFile(tempPath);
|
|
13398
13403
|
}
|
|
13399
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13404
|
+
await _optionalChain([hooks, 'optionalAccess', _529 => _529.onSubmission, 'optionalCall', _530 => _530(intent)]);
|
|
13400
13405
|
},
|
|
13401
13406
|
onRunStarted: async (runId) => {
|
|
13402
13407
|
try {
|
|
@@ -13407,7 +13412,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13407
13412
|
{ cause: error }
|
|
13408
13413
|
);
|
|
13409
13414
|
}
|
|
13410
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13415
|
+
await _optionalChain([hooks, 'optionalAccess', _531 => _531.onRunStarted, 'optionalCall', _532 => _532(runId)]);
|
|
13411
13416
|
},
|
|
13412
13417
|
onRunAdmitted: async (runId) => {
|
|
13413
13418
|
try {
|
|
@@ -13420,7 +13425,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13420
13425
|
{ cause: error }
|
|
13421
13426
|
);
|
|
13422
13427
|
}
|
|
13423
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13428
|
+
await _optionalChain([hooks, 'optionalAccess', _533 => _533.onRunAdmitted, 'optionalCall', _534 => _534(runId)]);
|
|
13424
13429
|
}
|
|
13425
13430
|
} : hooks;
|
|
13426
13431
|
if (options.target.kind === "file") {
|
|
@@ -13428,7 +13433,12 @@ async function handlePlayRun(args, hooks) {
|
|
|
13428
13433
|
return handleFileBackedRun(options, runHooks);
|
|
13429
13434
|
}
|
|
13430
13435
|
const resolved = _path.resolve.call(void 0, options.target.path);
|
|
13431
|
-
|
|
13436
|
+
const message = `File not found: ${resolved}`;
|
|
13437
|
+
if (_optionalChain([runHooks, 'optionalAccess', _535 => _535.writeDryRunError])) {
|
|
13438
|
+
runHooks.writeDryRunError(message);
|
|
13439
|
+
return 1;
|
|
13440
|
+
}
|
|
13441
|
+
console.error(message);
|
|
13432
13442
|
const dir = _path.dirname.call(void 0, resolved);
|
|
13433
13443
|
if (_fs.existsSync.call(void 0, dir)) {
|
|
13434
13444
|
const base = _path.basename.call(void 0, resolved);
|
|
@@ -13499,10 +13509,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13499
13509
|
...buildRunActivityTextLines(run),
|
|
13500
13510
|
...buildRunStatusEvidenceTextLines(overview)
|
|
13501
13511
|
];
|
|
13502
|
-
if (_optionalChain([overview, 'access',
|
|
13512
|
+
if (_optionalChain([overview, 'access', _536 => _536.runStatus, 'optionalAccess', _537 => _537.available]) === false)
|
|
13503
13513
|
lines.push(` call progress: unavailable (${overview.runStatus.reason})`);
|
|
13504
|
-
const work = readRecord(_optionalChain([readRecord, 'call',
|
|
13505
|
-
if (work && !_optionalChain([overview, 'access',
|
|
13514
|
+
const work = readRecord(_optionalChain([readRecord, 'call', _538 => _538(run), 'optionalAccess', _539 => _539.work]));
|
|
13515
|
+
if (work && !_optionalChain([overview, 'access', _540 => _540.runStatus, 'optionalAccess', _541 => _541.available]))
|
|
13506
13516
|
lines.push(
|
|
13507
13517
|
` calls (${_nullishCoalesce(work.scope, () => ( "attempt scope unknown"))}): ${formatObservedRunCounter({ value: work.logicalCalls, confirmed: true })} logical, ${formatObservedRunCounter({ value: work.providerRequests, confirmed: true })} provider requests`
|
|
13508
13518
|
);
|
|
@@ -13553,7 +13563,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13553
13563
|
...overview.failedLogs.warning ? [`warning: ${overview.failedLogs.warning}`] : [],
|
|
13554
13564
|
...overview.failedLogs.logsTruncated ? ["Older log bodies were not retained."] : [],
|
|
13555
13565
|
...overview.failedLogs.entries,
|
|
13556
|
-
..._optionalChain([overview, 'access',
|
|
13566
|
+
..._optionalChain([overview, 'access', _542 => _542.failedLogs, 'access', _543 => _543.next, 'optionalAccess', _544 => _544.logs]) ? [`More logs: ${overview.failedLogs.next.logs}`] : []
|
|
13557
13567
|
]
|
|
13558
13568
|
});
|
|
13559
13569
|
sections.push({
|
|
@@ -13613,7 +13623,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13613
13623
|
);
|
|
13614
13624
|
return `${lines.join("\n")}
|
|
13615
13625
|
|
|
13616
|
-
${
|
|
13626
|
+
${_chunk7OQZZHZ4js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13617
13627
|
}
|
|
13618
13628
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13619
13629
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13624,7 +13634,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13624
13634
|
const progressTimer = setInterval(() => {
|
|
13625
13635
|
console.error(`[${command}] ${stage} still running after ${elapsedMs()}ms`);
|
|
13626
13636
|
}, RUN_READ_TIMING_PROGRESS_INTERVAL_MS);
|
|
13627
|
-
_optionalChain([progressTimer, 'access',
|
|
13637
|
+
_optionalChain([progressTimer, 'access', _545 => _545.unref, 'optionalCall', _546 => _546()]);
|
|
13628
13638
|
try {
|
|
13629
13639
|
const result = await action();
|
|
13630
13640
|
console.error(`[${command}] ${stage} completed in ${elapsedMs()}ms`);
|
|
@@ -13637,7 +13647,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13637
13647
|
}
|
|
13638
13648
|
}
|
|
13639
13649
|
async function handleRunGet(args) {
|
|
13640
|
-
const selection =
|
|
13650
|
+
const selection = _chunk7OQZZHZ4js.parseJsonFields.call(void 0,
|
|
13641
13651
|
args,
|
|
13642
13652
|
args.includes("--config") ? "config" : "get"
|
|
13643
13653
|
);
|
|
@@ -13650,7 +13660,7 @@ async function handleRunGet(args) {
|
|
|
13650
13660
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13651
13661
|
return 1;
|
|
13652
13662
|
}
|
|
13653
|
-
const client = new (0,
|
|
13663
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
13654
13664
|
const timing = args.includes("--timing");
|
|
13655
13665
|
const web = args.includes("--web");
|
|
13656
13666
|
if (web || args.includes("--web-url")) {
|
|
@@ -13668,8 +13678,8 @@ async function handleRunGet(args) {
|
|
|
13668
13678
|
const dashboardUrl2 = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13669
13679
|
const runUrl2 = _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
13670
13680
|
if (web) {
|
|
13671
|
-
const opened =
|
|
13672
|
-
|
|
13681
|
+
const opened = _chunk7OQZZHZ4js.openInBrowser.call(void 0, runUrl2);
|
|
13682
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
13673
13683
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
13674
13684
|
{
|
|
13675
13685
|
json: args.includes("--json"),
|
|
@@ -13680,7 +13690,7 @@ async function handleRunGet(args) {
|
|
|
13680
13690
|
);
|
|
13681
13691
|
return 0;
|
|
13682
13692
|
}
|
|
13683
|
-
|
|
13693
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
13684
13694
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
13685
13695
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
13686
13696
|
` }
|
|
@@ -13705,7 +13715,7 @@ async function handleRunGet(args) {
|
|
|
13705
13715
|
"This server does not support recorded configuration reads."
|
|
13706
13716
|
);
|
|
13707
13717
|
}
|
|
13708
|
-
|
|
13718
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
13709
13719
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13710
13720
|
{ json: true, fields: selection.fields }
|
|
13711
13721
|
);
|
|
@@ -13718,7 +13728,7 @@ async function handleRunGet(args) {
|
|
|
13718
13728
|
timing,
|
|
13719
13729
|
() => client.getRunInput(runId)
|
|
13720
13730
|
);
|
|
13721
|
-
|
|
13731
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13722
13732
|
return 0;
|
|
13723
13733
|
}
|
|
13724
13734
|
const full = args.includes("--full");
|
|
@@ -13731,7 +13741,7 @@ async function handleRunGet(args) {
|
|
|
13731
13741
|
failedLogs: args.includes("--log-failed")
|
|
13732
13742
|
})
|
|
13733
13743
|
);
|
|
13734
|
-
if (status.package)
|
|
13744
|
+
if (status.package) _chunkKLQ5CR77js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13735
13745
|
if (!status.package) {
|
|
13736
13746
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13737
13747
|
"runs get",
|
|
@@ -13745,8 +13755,8 @@ async function handleRunGet(args) {
|
|
|
13745
13755
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13746
13756
|
const legacyDashboardUrl = legacyPlayName ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13747
13757
|
const legacyRunUrl = legacyPlayName ? _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
13748
|
-
if (
|
|
13749
|
-
|
|
13758
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
13759
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
13750
13760
|
{
|
|
13751
13761
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13752
13762
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -13757,7 +13767,7 @@ async function handleRunGet(args) {
|
|
|
13757
13767
|
} else {
|
|
13758
13768
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13759
13769
|
if (legacyRunUrl)
|
|
13760
|
-
|
|
13770
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
13761
13771
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
13762
13772
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
13763
13773
|
` }
|
|
@@ -13787,11 +13797,11 @@ async function handleRunGet(args) {
|
|
|
13787
13797
|
)
|
|
13788
13798
|
]);
|
|
13789
13799
|
const hitLines = formatRunHitsLines(hits);
|
|
13790
|
-
const json =
|
|
13800
|
+
const json = _chunk7OQZZHZ4js.argsWantJson.call(void 0, args);
|
|
13791
13801
|
const playName = resolveRunPlayName(status, runId);
|
|
13792
13802
|
const dashboardUrl = playName ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13793
13803
|
const runUrl = playName ? _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
13794
|
-
|
|
13804
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
13795
13805
|
{
|
|
13796
13806
|
...overview,
|
|
13797
13807
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13896,9 +13906,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13896
13906
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13897
13907
|
return 1;
|
|
13898
13908
|
}
|
|
13899
|
-
const status = await new (0,
|
|
13900
|
-
if (
|
|
13901
|
-
|
|
13909
|
+
const status = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().runs.status(runId);
|
|
13910
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
13911
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13902
13912
|
return 0;
|
|
13903
13913
|
}
|
|
13904
13914
|
if (!status.available) {
|
|
@@ -13938,7 +13948,7 @@ async function handleRunsRerun(args) {
|
|
|
13938
13948
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13939
13949
|
return 1;
|
|
13940
13950
|
}
|
|
13941
|
-
const options = { json:
|
|
13951
|
+
const options = { json: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args) };
|
|
13942
13952
|
for (let index = 0; index < args.length; index += 1) {
|
|
13943
13953
|
if (args[index] === "--idempotency-key") {
|
|
13944
13954
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14004,8 +14014,8 @@ ${usage2}
|
|
|
14004
14014
|
Discover Plays: ${next.discover}
|
|
14005
14015
|
Active runs: ${next.running}`
|
|
14006
14016
|
);
|
|
14007
|
-
if (
|
|
14008
|
-
|
|
14017
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
14018
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
14009
14019
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14010
14020
|
{ json: true }
|
|
14011
14021
|
);
|
|
@@ -14020,7 +14030,7 @@ Active runs: ${next.running}`
|
|
|
14020
14030
|
console.error("--offset requires --play.");
|
|
14021
14031
|
return 1;
|
|
14022
14032
|
}
|
|
14023
|
-
const client = new (0,
|
|
14033
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
14024
14034
|
const page = await withRunReadTiming(
|
|
14025
14035
|
"runs list",
|
|
14026
14036
|
"run inventory",
|
|
@@ -14055,7 +14065,7 @@ Active runs: ${next.running}`
|
|
|
14055
14065
|
executionTime: run.executionTime,
|
|
14056
14066
|
billingTotalCredits: run.billingTotalCredits,
|
|
14057
14067
|
billingMaxCreditsPerRun: run.billingMaxCreditsPerRun,
|
|
14058
|
-
playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access',
|
|
14068
|
+
playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _547 => _547.memo, 'optionalAccess', _548 => _548.playName]))), () => ( playName)), () => ( null)),
|
|
14059
14069
|
...nodeId ? { nodeObservation: _nullishCoalesce(run.nodeObservation, () => ( null)) } : {}
|
|
14060
14070
|
}));
|
|
14061
14071
|
const lines = runs.length === 0 ? [
|
|
@@ -14087,14 +14097,14 @@ Active runs: ${next.running}`
|
|
|
14087
14097
|
return lines2.join("\n");
|
|
14088
14098
|
});
|
|
14089
14099
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14090
|
-
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}${
|
|
14100
|
+
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}${_chunk7OQZZHZ4js.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14091
14101
|
if (page.hasMore) {
|
|
14092
14102
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14093
14103
|
lines.push(
|
|
14094
14104
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14095
14105
|
);
|
|
14096
14106
|
}
|
|
14097
|
-
|
|
14107
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
14098
14108
|
{
|
|
14099
14109
|
runs,
|
|
14100
14110
|
count: runs.length,
|
|
@@ -14104,11 +14114,11 @@ Active runs: ${next.running}`
|
|
|
14104
14114
|
...page.hasMore !== void 0 ? { has_more: page.hasMore, is_truncated: page.hasMore } : {},
|
|
14105
14115
|
next: {
|
|
14106
14116
|
page: nextPage,
|
|
14107
|
-
get: _optionalChain([runs, 'access',
|
|
14117
|
+
get: _optionalChain([runs, 'access', _549 => _549[0], 'optionalAccess', _550 => _550.id]) ? `deepline runs get ${runs[0].id}` : null
|
|
14108
14118
|
},
|
|
14109
14119
|
render: { sections: [{ title: "runs", lines }] }
|
|
14110
14120
|
},
|
|
14111
|
-
{ json:
|
|
14121
|
+
{ json: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args) }
|
|
14112
14122
|
);
|
|
14113
14123
|
return 0;
|
|
14114
14124
|
}
|
|
@@ -14138,7 +14148,7 @@ async function handleRunTail(args) {
|
|
|
14138
14148
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14139
14149
|
return 1;
|
|
14140
14150
|
}
|
|
14141
|
-
const parsed =
|
|
14151
|
+
const parsed = _chunkXSUQAUG4js.parseLogLevel.call(void 0, value);
|
|
14142
14152
|
if (!parsed) {
|
|
14143
14153
|
console.error(
|
|
14144
14154
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14176,9 +14186,9 @@ async function handleRunTail(args) {
|
|
|
14176
14186
|
);
|
|
14177
14187
|
return 1;
|
|
14178
14188
|
}
|
|
14179
|
-
const client = new (0,
|
|
14189
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
14180
14190
|
const jsonLines = args.includes("--jsonl");
|
|
14181
|
-
const jsonOutput = !jsonLines &&
|
|
14191
|
+
const jsonOutput = !jsonLines && _chunk7OQZZHZ4js.argsWantJson.call(void 0, args);
|
|
14182
14192
|
const compact = args.includes("--compact");
|
|
14183
14193
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14184
14194
|
const compactState = {
|
|
@@ -14259,7 +14269,7 @@ async function handleRunLogs(args) {
|
|
|
14259
14269
|
]);
|
|
14260
14270
|
const cursorIndex = args.indexOf("--cursor");
|
|
14261
14271
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14262
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14272
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkXSUQAUG4js.isRunLogsCursor.call(void 0, cursorValue));
|
|
14263
14273
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14264
14274
|
return handleRunEventSearch(args);
|
|
14265
14275
|
}
|
|
@@ -14293,7 +14303,7 @@ async function handleRunLogs(args) {
|
|
|
14293
14303
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14294
14304
|
return 1;
|
|
14295
14305
|
}
|
|
14296
|
-
const parsed =
|
|
14306
|
+
const parsed = _chunkXSUQAUG4js.parseLogLevel.call(void 0, value);
|
|
14297
14307
|
if (!parsed) {
|
|
14298
14308
|
console.error(
|
|
14299
14309
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14340,12 +14350,12 @@ async function handleRunLogs(args) {
|
|
|
14340
14350
|
);
|
|
14341
14351
|
return 1;
|
|
14342
14352
|
}
|
|
14343
|
-
const client = new (0,
|
|
14353
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
14344
14354
|
if (outPath) {
|
|
14345
14355
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14346
|
-
const logs = result2.entries.filter((line) =>
|
|
14356
|
+
const logs = result2.entries.filter((line) => _chunkXSUQAUG4js.logLevelReaches.call(void 0, _chunkXSUQAUG4js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkXSUQAUG4js.classifyLogLine.call(void 0, line).line);
|
|
14347
14357
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14348
|
-
|
|
14358
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
14349
14359
|
{
|
|
14350
14360
|
runId: result2.runId,
|
|
14351
14361
|
log_path: outPath,
|
|
@@ -14368,7 +14378,7 @@ async function handleRunLogs(args) {
|
|
|
14368
14378
|
]
|
|
14369
14379
|
}
|
|
14370
14380
|
},
|
|
14371
|
-
{ json:
|
|
14381
|
+
{ json: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args) }
|
|
14372
14382
|
);
|
|
14373
14383
|
return 0;
|
|
14374
14384
|
}
|
|
@@ -14399,7 +14409,7 @@ async function handleRunLogs(args) {
|
|
|
14399
14409
|
}
|
|
14400
14410
|
};
|
|
14401
14411
|
const text = buildRunLogsText(filteredResult);
|
|
14402
|
-
|
|
14412
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
14403
14413
|
{
|
|
14404
14414
|
runId: result.runId,
|
|
14405
14415
|
totalCount: result.totalCount,
|
|
@@ -14423,7 +14433,7 @@ async function handleRunLogs(args) {
|
|
|
14423
14433
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14424
14434
|
},
|
|
14425
14435
|
{
|
|
14426
|
-
json:
|
|
14436
|
+
json: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args),
|
|
14427
14437
|
text
|
|
14428
14438
|
}
|
|
14429
14439
|
);
|
|
@@ -14447,17 +14457,17 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14447
14457
|
);
|
|
14448
14458
|
}
|
|
14449
14459
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14450
|
-
(entry) =>
|
|
14460
|
+
(entry) => _chunkXSUQAUG4js.logLevelReaches.call(void 0, _chunkXSUQAUG4js.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14451
14461
|
);
|
|
14452
14462
|
const selected = matching.slice(-limit);
|
|
14453
14463
|
const olderMatchesExist = matching.length > selected.length;
|
|
14454
14464
|
return {
|
|
14455
14465
|
entries: selected.map((entry) => entry.line),
|
|
14456
|
-
firstSequence: _nullishCoalesce(_optionalChain([selected, 'access',
|
|
14457
|
-
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access',
|
|
14466
|
+
firstSequence: _nullishCoalesce(_optionalChain([selected, 'access', _551 => _551[0], 'optionalAccess', _552 => _552.seq]), () => ( null)),
|
|
14467
|
+
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _553 => _553.at, 'call', _554 => _554(-1), 'optionalAccess', _555 => _555.seq]), () => ( null)),
|
|
14458
14468
|
truncated: result.truncated || olderMatchesExist,
|
|
14459
14469
|
hasMore: olderMatchesExist,
|
|
14460
|
-
nextCursor: olderMatchesExist ?
|
|
14470
|
+
nextCursor: olderMatchesExist ? _chunkXSUQAUG4js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14461
14471
|
};
|
|
14462
14472
|
}
|
|
14463
14473
|
async function handleRunEventSearch(args) {
|
|
@@ -14524,7 +14534,7 @@ ${usage2}`);
|
|
|
14524
14534
|
namespace,
|
|
14525
14535
|
...backend ? { backend } : {}
|
|
14526
14536
|
} : void 0;
|
|
14527
|
-
const client = new (0,
|
|
14537
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
14528
14538
|
const result = await client.runs.searchEvents({
|
|
14529
14539
|
...runId ? { runId } : {},
|
|
14530
14540
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14596,7 +14606,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14596
14606
|
"--limit",
|
|
14597
14607
|
String(limit)
|
|
14598
14608
|
].join(" ") : null;
|
|
14599
|
-
|
|
14609
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
14600
14610
|
{
|
|
14601
14611
|
events,
|
|
14602
14612
|
nextCursor: result.nextCursor,
|
|
@@ -14607,19 +14617,19 @@ ${renderedDetails}` : ""}`;
|
|
|
14607
14617
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14608
14618
|
},
|
|
14609
14619
|
{
|
|
14610
|
-
json:
|
|
14620
|
+
json: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args),
|
|
14611
14621
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14612
14622
|
}
|
|
14613
14623
|
);
|
|
14614
14624
|
return 0;
|
|
14615
14625
|
}
|
|
14616
14626
|
function buildRunLogsText(result) {
|
|
14617
|
-
const lines = result.entries.map((line) =>
|
|
14627
|
+
const lines = result.entries.map((line) => _chunkXSUQAUG4js.classifyLogLine.call(void 0, line).line);
|
|
14618
14628
|
if (result.warning) {
|
|
14619
14629
|
if (lines.length > 0) lines.push("");
|
|
14620
14630
|
lines.push(`warning: ${result.warning}`);
|
|
14621
14631
|
lines.push(
|
|
14622
|
-
`retained logs: ${_nullishCoalesce(_optionalChain([result, 'access',
|
|
14632
|
+
`retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _556 => _556.next, 'optionalAccess', _557 => _557.logs]), () => ( `deepline runs logs ${result.runId} --out run.log`))}`
|
|
14623
14633
|
);
|
|
14624
14634
|
}
|
|
14625
14635
|
return `${lines.join("\n")}${lines.length > 0 ? "\n" : ""}`;
|
|
@@ -14648,7 +14658,7 @@ async function handleRunStop(args) {
|
|
|
14648
14658
|
reason = args[++index];
|
|
14649
14659
|
}
|
|
14650
14660
|
}
|
|
14651
|
-
const client = new (0,
|
|
14661
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
14652
14662
|
const result = await client.runs.stop(runId, { reason });
|
|
14653
14663
|
const state = resolveRunStopState(result);
|
|
14654
14664
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14663,7 +14673,7 @@ async function handleRunStop(args) {
|
|
|
14663
14673
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14664
14674
|
`inspect: deepline runs get ${runId} --full`
|
|
14665
14675
|
];
|
|
14666
|
-
|
|
14676
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
14667
14677
|
{
|
|
14668
14678
|
...cancelling,
|
|
14669
14679
|
state,
|
|
@@ -14678,7 +14688,7 @@ async function handleRunStop(args) {
|
|
|
14678
14688
|
]
|
|
14679
14689
|
}
|
|
14680
14690
|
},
|
|
14681
|
-
{ json:
|
|
14691
|
+
{ json: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args) }
|
|
14682
14692
|
);
|
|
14683
14693
|
return 0;
|
|
14684
14694
|
}
|
|
@@ -14695,7 +14705,7 @@ async function handleRunStop(args) {
|
|
|
14695
14705
|
];
|
|
14696
14706
|
process.stderr.write(`${lines2.join("\n")}
|
|
14697
14707
|
`);
|
|
14698
|
-
|
|
14708
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
14699
14709
|
{
|
|
14700
14710
|
...result,
|
|
14701
14711
|
render: {
|
|
@@ -14710,7 +14720,7 @@ async function handleRunStop(args) {
|
|
|
14710
14720
|
]
|
|
14711
14721
|
}
|
|
14712
14722
|
},
|
|
14713
|
-
{ json:
|
|
14723
|
+
{ json: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args) }
|
|
14714
14724
|
);
|
|
14715
14725
|
return 1;
|
|
14716
14726
|
}
|
|
@@ -14721,12 +14731,12 @@ async function handleRunStop(args) {
|
|
|
14721
14731
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14722
14732
|
] : []
|
|
14723
14733
|
];
|
|
14724
|
-
|
|
14734
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
14725
14735
|
{
|
|
14726
14736
|
...result,
|
|
14727
14737
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14728
14738
|
},
|
|
14729
|
-
{ json:
|
|
14739
|
+
{ json: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args) }
|
|
14730
14740
|
);
|
|
14731
14741
|
return 0;
|
|
14732
14742
|
}
|
|
@@ -14776,18 +14786,18 @@ async function handleRunStopAll(args) {
|
|
|
14776
14786
|
reason = args[++index];
|
|
14777
14787
|
}
|
|
14778
14788
|
}
|
|
14779
|
-
const client = new (0,
|
|
14789
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
14780
14790
|
if (dryRun) {
|
|
14781
14791
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14782
14792
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14783
|
-
|
|
14793
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
14784
14794
|
{
|
|
14785
14795
|
...result2,
|
|
14786
14796
|
render: {
|
|
14787
14797
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14788
14798
|
}
|
|
14789
14799
|
},
|
|
14790
|
-
{ json:
|
|
14800
|
+
{ json: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14791
14801
|
` }
|
|
14792
14802
|
);
|
|
14793
14803
|
return 0;
|
|
@@ -14800,17 +14810,17 @@ async function handleRunStopAll(args) {
|
|
|
14800
14810
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14801
14811
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14802
14812
|
];
|
|
14803
|
-
|
|
14813
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
14804
14814
|
{
|
|
14805
14815
|
...result,
|
|
14806
14816
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14807
14817
|
},
|
|
14808
|
-
{ json:
|
|
14818
|
+
{ json: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args) }
|
|
14809
14819
|
);
|
|
14810
14820
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14811
14821
|
}
|
|
14812
14822
|
async function handleRunExport(args) {
|
|
14813
|
-
const selection =
|
|
14823
|
+
const selection = _chunk7OQZZHZ4js.parseJsonFields.call(void 0, args, "export");
|
|
14814
14824
|
args = selection.args;
|
|
14815
14825
|
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]";
|
|
14816
14826
|
let runId;
|
|
@@ -14881,17 +14891,17 @@ async function handleRunExport(args) {
|
|
|
14881
14891
|
"INVALID_ARGUMENT"
|
|
14882
14892
|
);
|
|
14883
14893
|
}
|
|
14884
|
-
const client = new (0,
|
|
14894
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
14885
14895
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14886
14896
|
assertRunExportStatusIdentity(status, runId);
|
|
14887
14897
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14888
|
-
const progress =
|
|
14898
|
+
const progress = _chunkAGZRRHSBjs.createCliProgress.call(void 0, !_chunk7OQZZHZ4js.argsWantJson.call(void 0, args));
|
|
14889
14899
|
try {
|
|
14890
14900
|
await waitForPlayCompletionByWatch({
|
|
14891
14901
|
client,
|
|
14892
14902
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14893
14903
|
workflowId: runId,
|
|
14894
|
-
jsonOutput:
|
|
14904
|
+
jsonOutput: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args),
|
|
14895
14905
|
emitLogs: false,
|
|
14896
14906
|
waitTimeoutMs,
|
|
14897
14907
|
startedAt: Date.now(),
|
|
@@ -14917,26 +14927,26 @@ async function handleRunExport(args) {
|
|
|
14917
14927
|
format,
|
|
14918
14928
|
summary
|
|
14919
14929
|
});
|
|
14920
|
-
const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess',
|
|
14921
|
-
const currentTableNotice = _optionalChain([exportResult, 'optionalAccess',
|
|
14930
|
+
const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _558 => _558.rowsInfo, 'access', _559 => _559.source]), () => ( datasetPath)), () => ( null));
|
|
14931
|
+
const currentTableNotice = _optionalChain([exportResult, 'optionalAccess', _560 => _560.currentTable]) ? {
|
|
14922
14932
|
code: "CURRENT_SHARED_DATASET",
|
|
14923
14933
|
message: "This export is the current shared dataset and may include writes from another run.",
|
|
14924
14934
|
full_run_output_command: `deepline runs get ${status.runId} --full`
|
|
14925
14935
|
} : null;
|
|
14926
14936
|
const navigation = buildRunNavigation(status);
|
|
14927
|
-
const resolved = _optionalChain([exportResult, 'optionalAccess',
|
|
14937
|
+
const resolved = _optionalChain([exportResult, 'optionalAccess', _561 => _561.datasetInfo]);
|
|
14928
14938
|
const identity = navigation.datasets.find(
|
|
14929
|
-
(dataset) => _optionalChain([resolved, 'optionalAccess',
|
|
14939
|
+
(dataset) => _optionalChain([resolved, 'optionalAccess', _562 => _562.datasetId]) ? dataset.datasetId === resolved.datasetId : dataset.name === _optionalChain([resolved, 'optionalAccess', _563 => _563.tableNamespace])
|
|
14930
14940
|
);
|
|
14931
14941
|
const unambiguousName = identity && !identity.exportUnavailable && navigation.datasets.filter((dataset) => dataset.name === identity.name).length === 1 ? identity.name : void 0;
|
|
14932
14942
|
const exportCommand = runExportRetryCommand(
|
|
14933
14943
|
status.runId,
|
|
14934
14944
|
outPath,
|
|
14935
|
-
_nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess',
|
|
14945
|
+
_nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess', _564 => _564.datasetPath]))),
|
|
14936
14946
|
{ format, summary }
|
|
14937
14947
|
) + (args.includes("--allow-empty") ? " --allow-empty" : "");
|
|
14938
|
-
const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess',
|
|
14939
|
-
const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess',
|
|
14948
|
+
const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _565 => _565.path]), () => ( null)) } : { csv_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _566 => _566.path]), () => ( null)) };
|
|
14949
|
+
const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess', _567 => _567.rowsInfo, 'access', _568 => _568.exportedRowOutcomes]);
|
|
14940
14950
|
const rowFailures = exportedRowOutcomes && exportedRowOutcomes.failed > 0 ? {
|
|
14941
14951
|
count: exportedRowOutcomes.failed,
|
|
14942
14952
|
message: "Failed rows can retain values from stages that completed earlier; those values do not prove the row succeeded.",
|
|
@@ -14956,17 +14966,17 @@ async function handleRunExport(args) {
|
|
|
14956
14966
|
...fileLocation,
|
|
14957
14967
|
format,
|
|
14958
14968
|
source,
|
|
14959
|
-
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess',
|
|
14969
|
+
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _569 => _569.rowsInfo, 'access', _570 => _570.totalRows]), () => ( null)),
|
|
14960
14970
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14961
14971
|
...rowFailures ? { rowFailures } : {},
|
|
14962
|
-
columns:
|
|
14972
|
+
columns: _chunkKLQ5CR77js.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.columns]), () => ( []))),
|
|
14963
14973
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14964
14974
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14965
14975
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
14966
14976
|
};
|
|
14967
14977
|
const lines = withRunNavigationLines(
|
|
14968
14978
|
[
|
|
14969
|
-
`Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess',
|
|
14979
|
+
`Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _573 => _573.path]), () => ( outPath))}`,
|
|
14970
14980
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? [
|
|
14971
14981
|
`Partial export: run is ${status.status}; more rows may be saved.`,
|
|
14972
14982
|
`Export after completion: ${exportCommand} --wait`
|
|
@@ -14993,8 +15003,8 @@ async function handleRunExport(args) {
|
|
|
14993
15003
|
"utf-8"
|
|
14994
15004
|
);
|
|
14995
15005
|
}
|
|
14996
|
-
|
|
14997
|
-
json:
|
|
15006
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, payload, {
|
|
15007
|
+
json: _chunk7OQZZHZ4js.argsWantJson.call(void 0, args),
|
|
14998
15008
|
fields: selection.fields,
|
|
14999
15009
|
text: `${lines.join("\n")}
|
|
15000
15010
|
`
|
|
@@ -15028,10 +15038,10 @@ async function handlePlayGet(args) {
|
|
|
15028
15038
|
);
|
|
15029
15039
|
return 2;
|
|
15030
15040
|
}
|
|
15031
|
-
const client = new (0,
|
|
15041
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
15032
15042
|
const explicitJson = args.includes("--json");
|
|
15033
15043
|
const sourceOutput = args.includes("--source");
|
|
15034
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
15044
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunk7OQZZHZ4js.argsWantJson.call(void 0, args);
|
|
15035
15045
|
const requestedRevisionFlags = [
|
|
15036
15046
|
args.includes("--working"),
|
|
15037
15047
|
args.includes("--live"),
|
|
@@ -15084,7 +15094,7 @@ async function handlePlayGet(args) {
|
|
|
15084
15094
|
...includeSource ? { source: sourceSelector } : {}
|
|
15085
15095
|
});
|
|
15086
15096
|
const source = detail.source;
|
|
15087
|
-
const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess',
|
|
15097
|
+
const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess', _574 => _574.files, 'access', _575 => _575[source.entryFile]]), () => ( ""));
|
|
15088
15098
|
let materializedFile = null;
|
|
15089
15099
|
try {
|
|
15090
15100
|
materializedFile = outPath && source ? materializeRemotePlaySource({ target, playName, source, outPath }) : null;
|
|
@@ -15094,7 +15104,7 @@ async function handlePlayGet(args) {
|
|
|
15094
15104
|
}
|
|
15095
15105
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15096
15106
|
if (jsonOutput) {
|
|
15097
|
-
|
|
15107
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, {
|
|
15098
15108
|
...detail,
|
|
15099
15109
|
...materializedFile ? {
|
|
15100
15110
|
message: loadedMessage,
|
|
@@ -15135,16 +15145,16 @@ async function handlePlayGet(args) {
|
|
|
15135
15145
|
}
|
|
15136
15146
|
console.log(`Play: ${formatPlayReference(detail.play)}`);
|
|
15137
15147
|
console.log(
|
|
15138
|
-
`Working version: ${_nullishCoalesce(_optionalChain([detail, 'access',
|
|
15148
|
+
`Working version: ${_nullishCoalesce(_optionalChain([detail, 'access', _576 => _576.play, 'access', _577 => _577.workingRevision, 'optionalAccess', _578 => _578.version]), () => ( "\u2014"))}`
|
|
15139
15149
|
);
|
|
15140
|
-
console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access',
|
|
15150
|
+
console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access', _579 => _579.play, 'access', _580 => _580.liveRevision, 'optionalAccess', _581 => _581.version]), () => ( "\u2014"))}`);
|
|
15141
15151
|
if (detail.play.liveRevision) {
|
|
15142
15152
|
console.log(
|
|
15143
15153
|
`Live max credits per run: ${liveMaxCreditsPerRun(detail.play.liveRevision.sourceCode)}`
|
|
15144
15154
|
);
|
|
15145
15155
|
}
|
|
15146
15156
|
console.log(`Draft dirty: ${detail.play.isDraftDirty ? "yes" : "no"}`);
|
|
15147
|
-
if (detail.play.isDraftDirty && _optionalChain([detail, 'access',
|
|
15157
|
+
if (detail.play.isDraftDirty && _optionalChain([detail, 'access', _582 => _582.play, 'access', _583 => _583.liveRevision, 'optionalAccess', _584 => _584.version])) {
|
|
15148
15158
|
console.log(
|
|
15149
15159
|
` Scheduled and named runs continue to use live v${detail.play.liveRevision.version}.`
|
|
15150
15160
|
);
|
|
@@ -15156,7 +15166,7 @@ async function handlePlayGet(args) {
|
|
|
15156
15166
|
console.log(line);
|
|
15157
15167
|
}
|
|
15158
15168
|
console.log(`Updated: ${formatTimestamp(detail.play.updatedAt)}`);
|
|
15159
|
-
console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access',
|
|
15169
|
+
console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access', _585 => _585.sheetSummary, 'optionalAccess', _586 => _586.stats, 'optionalAccess', _587 => _587.total]), () => ( 0))}`);
|
|
15160
15170
|
if (detail.customerDbUrl) {
|
|
15161
15171
|
console.log(`Customer DB: ${detail.customerDbUrl}`);
|
|
15162
15172
|
}
|
|
@@ -15172,7 +15182,7 @@ async function handlePlayGet(args) {
|
|
|
15172
15182
|
return 0;
|
|
15173
15183
|
}
|
|
15174
15184
|
function formatVersionLine(version) {
|
|
15175
|
-
const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access',
|
|
15185
|
+
const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access', _588 => _588.artifactHash, 'optionalAccess', _589 => _589.slice, 'call', _590 => _590(0, 12)]), () => ( "unknown-revision"));
|
|
15176
15186
|
const state = [
|
|
15177
15187
|
version.isLive ? "live" : null,
|
|
15178
15188
|
version.isWorking ? "working" : null
|
|
@@ -15186,8 +15196,8 @@ async function handlePlayVersions(args) {
|
|
|
15186
15196
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15187
15197
|
return 1;
|
|
15188
15198
|
}
|
|
15189
|
-
const client = new (0,
|
|
15190
|
-
const jsonOutput =
|
|
15199
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
15200
|
+
const jsonOutput = _chunk7OQZZHZ4js.argsWantJson.call(void 0, args);
|
|
15191
15201
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15192
15202
|
command: "versions"
|
|
15193
15203
|
});
|
|
@@ -15195,7 +15205,7 @@ async function handlePlayVersions(args) {
|
|
|
15195
15205
|
parseReferencedPlayTarget(playName).playName
|
|
15196
15206
|
);
|
|
15197
15207
|
if (jsonOutput) {
|
|
15198
|
-
|
|
15208
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, { versions });
|
|
15199
15209
|
return 0;
|
|
15200
15210
|
}
|
|
15201
15211
|
if (versions.length === 0) {
|
|
@@ -15208,7 +15218,7 @@ async function handlePlayVersions(args) {
|
|
|
15208
15218
|
return 0;
|
|
15209
15219
|
}
|
|
15210
15220
|
function formatPlayCostEstimate(estimate) {
|
|
15211
|
-
const computeSummary = _optionalChain([estimate, 'optionalAccess',
|
|
15221
|
+
const computeSummary = _optionalChain([estimate, 'optionalAccess', _591 => _591.compute]) ? `; ${estimate.status === "available" && estimate.source === "observed" ? "observed Deepline total includes usage-based compute; per-session ceiling" : "separate Deepline compute is usage-based; per-session ceiling"} across ${estimate.compute.pricedBackends.map(formatSandboxBackend).join(" and ")}: ${formatCredits(estimate.compute.maximumCredits)} credits (${formatSandboxBackend(estimate.compute.maximumBackend)} is highest; ${formatCredits(estimate.compute.maximumBillingSeconds)}s; total session count unbounded)` : "";
|
|
15212
15222
|
if (!estimate || estimate.status === "unavailable") {
|
|
15213
15223
|
return `unavailable${estimate ? `: ${estimate.message}${computeSummary}` : ""}`;
|
|
15214
15224
|
}
|
|
@@ -15238,8 +15248,8 @@ async function handlePlayCost(args) {
|
|
|
15238
15248
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
15239
15249
|
return 2;
|
|
15240
15250
|
}
|
|
15241
|
-
const result = await new (0,
|
|
15242
|
-
if (
|
|
15251
|
+
const result = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
15252
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
15243
15253
|
else
|
|
15244
15254
|
console.log(
|
|
15245
15255
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -15247,11 +15257,11 @@ async function handlePlayCost(args) {
|
|
|
15247
15257
|
return 0;
|
|
15248
15258
|
}
|
|
15249
15259
|
async function handlePlayList(args) {
|
|
15250
|
-
const jsonOutput =
|
|
15260
|
+
const jsonOutput = _chunk7OQZZHZ4js.argsWantJson.call(void 0, args);
|
|
15251
15261
|
const showCost = args.includes("--show-cost");
|
|
15252
|
-
const client = new (0,
|
|
15262
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
15253
15263
|
const categoriesIndex = args.indexOf("--categories");
|
|
15254
|
-
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access',
|
|
15264
|
+
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _592 => _592[categoriesIndex + 1], 'optionalAccess', _593 => _593.trim, 'call', _594 => _594()]) : void 0;
|
|
15255
15265
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
15256
15266
|
if (args.includes("--tag") && tags.length === 0) {
|
|
15257
15267
|
console.error(
|
|
@@ -15272,7 +15282,7 @@ async function handlePlayList(args) {
|
|
|
15272
15282
|
const cursorIndex = args.indexOf("--cursor");
|
|
15273
15283
|
const limit = limitIndex >= 0 ? Number(args[limitIndex + 1]) : void 0;
|
|
15274
15284
|
const cursor = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15275
|
-
if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess',
|
|
15285
|
+
if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess', _595 => _595.trim, 'call', _596 => _596()])) {
|
|
15276
15286
|
console.error("Pass a positive --limit and a non-empty --cursor.");
|
|
15277
15287
|
return 2;
|
|
15278
15288
|
}
|
|
@@ -15313,7 +15323,7 @@ async function handlePlayList(args) {
|
|
|
15313
15323
|
if (play.inputSchema || play.hasInputSchema) {
|
|
15314
15324
|
lines.push(" inputSchema: yes");
|
|
15315
15325
|
}
|
|
15316
|
-
if (_optionalChain([play, 'access',
|
|
15326
|
+
if (_optionalChain([play, 'access', _597 => _597.triggerStatus, 'optionalAccess', _598 => _598.cron])) {
|
|
15317
15327
|
lines.push(
|
|
15318
15328
|
` scheduled execution: ${cronExecutionLabel(play.triggerStatus.cron)}`
|
|
15319
15329
|
);
|
|
@@ -15333,12 +15343,12 @@ async function handlePlayList(args) {
|
|
|
15333
15343
|
} else {
|
|
15334
15344
|
lines.push(" scheduled execution: not configured");
|
|
15335
15345
|
}
|
|
15336
|
-
if (_optionalChain([play, 'access',
|
|
15346
|
+
if (_optionalChain([play, 'access', _599 => _599.triggerStatus, 'optionalAccess', _600 => _600.webhook])) {
|
|
15337
15347
|
lines.push(` webhook: ${play.triggerStatus.webhook}`);
|
|
15338
15348
|
}
|
|
15339
15349
|
if (showCost) {
|
|
15340
15350
|
lines.push(
|
|
15341
|
-
` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access',
|
|
15351
|
+
` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access', _601 => _601.observedCost, 'optionalAccess', _602 => _602.displayText]), () => ( formatPlayCostEstimate(play.costEstimate)))}`
|
|
15342
15352
|
);
|
|
15343
15353
|
}
|
|
15344
15354
|
lines.push(` run: deepline run ${reference}`);
|
|
@@ -15347,7 +15357,7 @@ async function handlePlayList(args) {
|
|
|
15347
15357
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15348
15358
|
lines.push(`Next page: ${nextPage}`);
|
|
15349
15359
|
}
|
|
15350
|
-
|
|
15360
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
15351
15361
|
{
|
|
15352
15362
|
plays,
|
|
15353
15363
|
count: plays.length,
|
|
@@ -15364,8 +15374,8 @@ async function handlePlayList(args) {
|
|
|
15364
15374
|
return 0;
|
|
15365
15375
|
}
|
|
15366
15376
|
async function handlePlayPin(args, pinned) {
|
|
15367
|
-
const target = _optionalChain([args, 'access',
|
|
15368
|
-
const jsonOutput =
|
|
15377
|
+
const target = _optionalChain([args, 'access', _603 => _603.find, 'call', _604 => _604((arg) => !arg.startsWith("-")), 'optionalAccess', _605 => _605.trim, 'call', _606 => _606()]);
|
|
15378
|
+
const jsonOutput = _chunk7OQZZHZ4js.argsWantJson.call(void 0, args);
|
|
15369
15379
|
const dryRun = args.includes("--dry-run");
|
|
15370
15380
|
if (!target) {
|
|
15371
15381
|
console.error(
|
|
@@ -15383,11 +15393,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15383
15393
|
const name = parsedTarget.playName;
|
|
15384
15394
|
const plan = { name, pinned, dryRun };
|
|
15385
15395
|
if (dryRun) {
|
|
15386
|
-
|
|
15396
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, plan);
|
|
15387
15397
|
return 0;
|
|
15388
15398
|
}
|
|
15389
|
-
const result = await new (0,
|
|
15390
|
-
if (jsonOutput)
|
|
15399
|
+
const result = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15400
|
+
if (jsonOutput) _chunk7OQZZHZ4js.printCompactJson.call(void 0, result);
|
|
15391
15401
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15392
15402
|
return 0;
|
|
15393
15403
|
}
|
|
@@ -15435,7 +15445,7 @@ function printPlayDescription(play) {
|
|
|
15435
15445
|
console.log(` ${line}`);
|
|
15436
15446
|
}
|
|
15437
15447
|
}
|
|
15438
|
-
if (_optionalChain([play, 'access',
|
|
15448
|
+
if (_optionalChain([play, 'access', _607 => _607.toolCategories, 'optionalAccess', _608 => _608.length])) {
|
|
15439
15449
|
console.log(` Tool categories: ${play.toolCategories.join(", ")}`);
|
|
15440
15450
|
}
|
|
15441
15451
|
if (play.aliases.length > 0) {
|
|
@@ -15480,7 +15490,7 @@ function printPlayDescription(play) {
|
|
|
15480
15490
|
const runtimeLimit = formatPlayRuntimeLimit(play.runtimeLimit);
|
|
15481
15491
|
if (runtimeLimit) {
|
|
15482
15492
|
console.log(
|
|
15483
|
-
` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access',
|
|
15493
|
+
` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _609 => _609.runtimeLimit, 'optionalAccess', _610 => _610.source]), () => ( "live"))})`
|
|
15484
15494
|
);
|
|
15485
15495
|
}
|
|
15486
15496
|
printScheduledPlayCapacity(play.activeScheduledPlays);
|
|
@@ -15508,17 +15518,17 @@ function formatPlayGrepMatches(matches) {
|
|
|
15508
15518
|
return matches.map((match) => `${match.field}: ${match.terms.join(", ")}`).join("; ");
|
|
15509
15519
|
}
|
|
15510
15520
|
async function handlePlayGrep(args) {
|
|
15511
|
-
const query = _optionalChain([args, 'access',
|
|
15521
|
+
const query = _optionalChain([args, 'access', _611 => _611[0], 'optionalAccess', _612 => _612.trim, 'call', _613 => _613()]);
|
|
15512
15522
|
if (!query) {
|
|
15513
15523
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15514
15524
|
return 1;
|
|
15515
15525
|
}
|
|
15516
|
-
const client = new (0,
|
|
15526
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
15517
15527
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15518
15528
|
summarizePlayGrepResult
|
|
15519
15529
|
);
|
|
15520
|
-
if (
|
|
15521
|
-
|
|
15530
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
15531
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, {
|
|
15522
15532
|
plays: results,
|
|
15523
15533
|
count: results.length,
|
|
15524
15534
|
query,
|
|
@@ -15532,7 +15542,7 @@ async function handlePlayGrep(args) {
|
|
|
15532
15542
|
`
|
|
15533
15543
|
);
|
|
15534
15544
|
for (const result of results) {
|
|
15535
|
-
console.log(_optionalChain([result, 'access',
|
|
15545
|
+
console.log(_optionalChain([result, 'access', _614 => _614.displayName, 'optionalAccess', _615 => _615.trim, 'call', _616 => _616()]) || result.name);
|
|
15536
15546
|
const matches = formatPlayGrepMatches(result.matches);
|
|
15537
15547
|
if (matches) console.log(` Matched: ${matches}`);
|
|
15538
15548
|
console.log(` Describe: ${result.describe}`);
|
|
@@ -15541,7 +15551,7 @@ async function handlePlayGrep(args) {
|
|
|
15541
15551
|
return 0;
|
|
15542
15552
|
}
|
|
15543
15553
|
async function handlePlayDescribe(args) {
|
|
15544
|
-
const selection =
|
|
15554
|
+
const selection = _chunk7OQZZHZ4js.parseJsonFields.call(void 0, args, "describe");
|
|
15545
15555
|
args = selection.args;
|
|
15546
15556
|
const playName = args[0];
|
|
15547
15557
|
if (!playName) {
|
|
@@ -15575,8 +15585,8 @@ async function handlePlayDescribe(args) {
|
|
|
15575
15585
|
`deepline plays check ${playName}`,
|
|
15576
15586
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15577
15587
|
];
|
|
15578
|
-
if (
|
|
15579
|
-
|
|
15588
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
15589
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, {
|
|
15580
15590
|
ok: false,
|
|
15581
15591
|
error: { message },
|
|
15582
15592
|
next
|
|
@@ -15590,7 +15600,7 @@ async function handlePlayDescribe(args) {
|
|
|
15590
15600
|
}
|
|
15591
15601
|
return 2;
|
|
15592
15602
|
}
|
|
15593
|
-
const client = new (0,
|
|
15603
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
15594
15604
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15595
15605
|
command: "describe"
|
|
15596
15606
|
});
|
|
@@ -15600,9 +15610,9 @@ async function handlePlayDescribe(args) {
|
|
|
15600
15610
|
compact: args.includes("--compact")
|
|
15601
15611
|
}
|
|
15602
15612
|
);
|
|
15603
|
-
if (
|
|
15604
|
-
if (selection.fields)
|
|
15605
|
-
else
|
|
15613
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
15614
|
+
if (selection.fields) _chunk7OQZZHZ4js.printJson.call(void 0, play, selection.fields);
|
|
15615
|
+
else _chunk7OQZZHZ4js.printCompactJson.call(void 0, play);
|
|
15606
15616
|
return 0;
|
|
15607
15617
|
}
|
|
15608
15618
|
printPlayDescription(play);
|
|
@@ -15624,7 +15634,7 @@ async function handlePlaySave(args) {
|
|
|
15624
15634
|
}
|
|
15625
15635
|
let graph;
|
|
15626
15636
|
try {
|
|
15627
|
-
graph = await
|
|
15637
|
+
graph = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
15628
15638
|
"cli.play_save_bundle_graph",
|
|
15629
15639
|
{ targetKind: "file" },
|
|
15630
15640
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15646,7 +15656,7 @@ async function handlePlaySave(args) {
|
|
|
15646
15656
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15647
15657
|
};
|
|
15648
15658
|
if (options.jsonOutput) {
|
|
15649
|
-
|
|
15659
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, result);
|
|
15650
15660
|
} else {
|
|
15651
15661
|
console.error(result.message);
|
|
15652
15662
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15668,7 +15678,7 @@ async function handlePlaySave(args) {
|
|
|
15668
15678
|
};
|
|
15669
15679
|
if (options.dryRun) {
|
|
15670
15680
|
if (options.jsonOutput) {
|
|
15671
|
-
|
|
15681
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, dryRun);
|
|
15672
15682
|
} else {
|
|
15673
15683
|
console.log(`Dry run: ${playName}`);
|
|
15674
15684
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15677,14 +15687,14 @@ async function handlePlaySave(args) {
|
|
|
15677
15687
|
}
|
|
15678
15688
|
return 0;
|
|
15679
15689
|
}
|
|
15680
|
-
const client = new (0,
|
|
15690
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
15681
15691
|
try {
|
|
15682
|
-
await
|
|
15692
|
+
await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
15683
15693
|
"cli.play_save_compile_manifests",
|
|
15684
15694
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15685
15695
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15686
15696
|
);
|
|
15687
|
-
const saved = await
|
|
15697
|
+
const saved = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
15688
15698
|
"cli.play_save_register_draft",
|
|
15689
15699
|
{ targetKind: "file", playName, artifactHash },
|
|
15690
15700
|
() => client.registerPlayArtifact({
|
|
@@ -15713,7 +15723,7 @@ async function handlePlaySave(args) {
|
|
|
15713
15723
|
}
|
|
15714
15724
|
};
|
|
15715
15725
|
if (options.jsonOutput) {
|
|
15716
|
-
|
|
15726
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, result);
|
|
15717
15727
|
} else {
|
|
15718
15728
|
console.log(
|
|
15719
15729
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15739,7 +15749,7 @@ async function handlePlayPublish(args) {
|
|
|
15739
15749
|
}
|
|
15740
15750
|
const { target: playName, useLatest } = options;
|
|
15741
15751
|
let revisionId = options.revisionId;
|
|
15742
|
-
const client = new (0,
|
|
15752
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
15743
15753
|
if (isFileTarget(playName)) {
|
|
15744
15754
|
if (revisionId || useLatest) {
|
|
15745
15755
|
console.error(
|
|
@@ -15749,7 +15759,7 @@ async function handlePlayPublish(args) {
|
|
|
15749
15759
|
}
|
|
15750
15760
|
let graph;
|
|
15751
15761
|
try {
|
|
15752
|
-
graph = await
|
|
15762
|
+
graph = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
15753
15763
|
"cli.play_publish_bundle_graph",
|
|
15754
15764
|
{ targetKind: "file" },
|
|
15755
15765
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15771,7 +15781,7 @@ async function handlePlayPublish(args) {
|
|
|
15771
15781
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15772
15782
|
};
|
|
15773
15783
|
if (options.jsonOutput) {
|
|
15774
|
-
|
|
15784
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, result3);
|
|
15775
15785
|
} else {
|
|
15776
15786
|
console.error(result3.message);
|
|
15777
15787
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15794,7 +15804,7 @@ async function handlePlayPublish(args) {
|
|
|
15794
15804
|
};
|
|
15795
15805
|
if (options.dryRun) {
|
|
15796
15806
|
if (options.jsonOutput) {
|
|
15797
|
-
|
|
15807
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, dryRun);
|
|
15798
15808
|
} else {
|
|
15799
15809
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15800
15810
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15813,12 +15823,12 @@ async function handlePlayPublish(args) {
|
|
|
15813
15823
|
}
|
|
15814
15824
|
}
|
|
15815
15825
|
try {
|
|
15816
|
-
await
|
|
15826
|
+
await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
15817
15827
|
"cli.play_publish_compile_manifests",
|
|
15818
15828
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15819
15829
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15820
15830
|
);
|
|
15821
|
-
await
|
|
15831
|
+
await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
15822
15832
|
"cli.play_publish_imports",
|
|
15823
15833
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15824
15834
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15827,7 +15837,7 @@ async function handlePlayPublish(args) {
|
|
|
15827
15837
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15828
15838
|
return 1;
|
|
15829
15839
|
}
|
|
15830
|
-
const published = await
|
|
15840
|
+
const published = await _chunkYRQWGWRJjs.traceCliSpan.call(void 0,
|
|
15831
15841
|
"cli.play_publish_register_root",
|
|
15832
15842
|
{
|
|
15833
15843
|
targetKind: "file",
|
|
@@ -15852,17 +15862,17 @@ async function handlePlayPublish(args) {
|
|
|
15852
15862
|
artifactHash,
|
|
15853
15863
|
liveVersion: _nullishCoalesce(published.version, () => ( null)),
|
|
15854
15864
|
revisionId: _nullishCoalesce(published.revisionId, () => ( null)),
|
|
15855
|
-
previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess',
|
|
15856
|
-
previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess',
|
|
15865
|
+
previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _617 => _617.version]), () => ( null)),
|
|
15866
|
+
previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _618 => _618.artifactHash]), () => ( null)),
|
|
15857
15867
|
sourceBytes: {
|
|
15858
|
-
before: _optionalChain([previousLive, 'optionalAccess',
|
|
15868
|
+
before: _optionalChain([previousLive, 'optionalAccess', _619 => _619.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
|
|
15859
15869
|
after: Buffer.byteLength(graph.root.sourceCode, "utf8")
|
|
15860
15870
|
},
|
|
15861
15871
|
triggerMetadata: _nullishCoalesce(published.triggerMetadata, () => ( null)),
|
|
15862
15872
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15863
15873
|
};
|
|
15864
15874
|
if (options.jsonOutput) {
|
|
15865
|
-
|
|
15875
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, result2);
|
|
15866
15876
|
} else {
|
|
15867
15877
|
printPublishReceipt({
|
|
15868
15878
|
name: rootPlayName,
|
|
@@ -15893,14 +15903,14 @@ async function handlePlayPublish(args) {
|
|
|
15893
15903
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15894
15904
|
latest: useLatest
|
|
15895
15905
|
};
|
|
15896
|
-
|
|
15906
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, result2);
|
|
15897
15907
|
return 0;
|
|
15898
15908
|
}
|
|
15899
15909
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
15900
15910
|
if (useLatest) {
|
|
15901
15911
|
const versions = await client.listPlayVersions(resolvedName);
|
|
15902
15912
|
const latest = versions[0];
|
|
15903
|
-
if (!_optionalChain([latest, 'optionalAccess',
|
|
15913
|
+
if (!_optionalChain([latest, 'optionalAccess', _620 => _620._id])) {
|
|
15904
15914
|
console.error(`No saved revisions found for ${resolvedName}.`);
|
|
15905
15915
|
return 1;
|
|
15906
15916
|
}
|
|
@@ -15917,7 +15927,7 @@ async function handlePlayPublish(args) {
|
|
|
15917
15927
|
revisionId ? { revisionId } : {}
|
|
15918
15928
|
);
|
|
15919
15929
|
if (options.jsonOutput) {
|
|
15920
|
-
|
|
15930
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, result);
|
|
15921
15931
|
} else {
|
|
15922
15932
|
printPublishReceipt({
|
|
15923
15933
|
name: result.name,
|
|
@@ -15957,7 +15967,7 @@ async function handlePlayDelete(args) {
|
|
|
15957
15967
|
);
|
|
15958
15968
|
return 2;
|
|
15959
15969
|
}
|
|
15960
|
-
const client = new (0,
|
|
15970
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
15961
15971
|
let detail;
|
|
15962
15972
|
try {
|
|
15963
15973
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15981,8 +15991,8 @@ async function handlePlayDelete(args) {
|
|
|
15981
15991
|
name: resolvedName,
|
|
15982
15992
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15983
15993
|
};
|
|
15984
|
-
if (
|
|
15985
|
-
|
|
15994
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
15995
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, result2);
|
|
15986
15996
|
} else {
|
|
15987
15997
|
process.stdout.write(
|
|
15988
15998
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15992,8 +16002,8 @@ async function handlePlayDelete(args) {
|
|
|
15992
16002
|
return 0;
|
|
15993
16003
|
}
|
|
15994
16004
|
const result = await client.deletePlay(resolvedName);
|
|
15995
|
-
if (
|
|
15996
|
-
|
|
16005
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
16006
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, result);
|
|
15997
16007
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15998
16008
|
}
|
|
15999
16009
|
if (result.alreadyArchived) {
|
|
@@ -16032,13 +16042,13 @@ async function handlePlayRestore(args) {
|
|
|
16032
16042
|
);
|
|
16033
16043
|
return 2;
|
|
16034
16044
|
}
|
|
16035
|
-
const client = new (0,
|
|
16045
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
16036
16046
|
try {
|
|
16037
16047
|
const result = await client.restorePlay(
|
|
16038
16048
|
parseReferencedPlayTarget(playName).playName
|
|
16039
16049
|
);
|
|
16040
|
-
if (
|
|
16041
|
-
|
|
16050
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
16051
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, result);
|
|
16042
16052
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16043
16053
|
}
|
|
16044
16054
|
if (result.alreadyActive) {
|
|
@@ -16165,21 +16175,21 @@ Common commands:
|
|
|
16165
16175
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16166
16176
|
}
|
|
16167
16177
|
};
|
|
16168
|
-
|
|
16178
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0, result2, {
|
|
16169
16179
|
json: options.json,
|
|
16170
16180
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16171
16181
|
`
|
|
16172
16182
|
});
|
|
16173
16183
|
return;
|
|
16174
16184
|
}
|
|
16175
|
-
const client = new (0,
|
|
16185
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
16176
16186
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16177
16187
|
throw new Error(
|
|
16178
16188
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16179
16189
|
);
|
|
16180
16190
|
}
|
|
16181
16191
|
const result = await client.startPlayRun(saved.request);
|
|
16182
|
-
|
|
16192
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
16183
16193
|
{ ...result },
|
|
16184
16194
|
{
|
|
16185
16195
|
json: options.json,
|
|
@@ -16215,7 +16225,7 @@ Examples:
|
|
|
16215
16225
|
).action(async (target, options) => {
|
|
16216
16226
|
process.exitCode = await handlePlayCheck([
|
|
16217
16227
|
target,
|
|
16218
|
-
...
|
|
16228
|
+
..._chunk7OQZZHZ4js.jsonFieldArgs.call(void 0, options.json),
|
|
16219
16229
|
...options.full ? ["--full"] : []
|
|
16220
16230
|
]);
|
|
16221
16231
|
});
|
|
@@ -16254,10 +16264,10 @@ Notes:
|
|
|
16254
16264
|
--force-tool-refresh re-executes completed tool receipts and may repeat billed
|
|
16255
16265
|
provider calls. It is independent from --force.
|
|
16256
16266
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16257
|
-
resident-work ceiling. Default: ${
|
|
16267
|
+
resident-work ceiling. Default: ${_chunkTUDYBF4Yjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkTUDYBF4Yjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16258
16268
|
Provider pacing and sandbox memory limits still apply.
|
|
16259
16269
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16260
|
-
resolvers. Accepted range: 1-${
|
|
16270
|
+
resolvers. Accepted range: 1-${_chunkTUDYBF4Yjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16261
16271
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16262
16272
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16263
16273
|
Tool calls that would exceed it are denied.
|
|
@@ -16371,10 +16381,10 @@ Examples:
|
|
|
16371
16381
|
"Refresh completed tool receipts; may repeat billed provider calls"
|
|
16372
16382
|
).option(
|
|
16373
16383
|
"--max-concurrent-external-calls <count>",
|
|
16374
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16384
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkTUDYBF4Yjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkTUDYBF4Yjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16375
16385
|
).option(
|
|
16376
16386
|
"--max-concurrent-rows <count>",
|
|
16377
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16387
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkTUDYBF4Yjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16378
16388
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
|
|
16379
16389
|
"--debug-map-latency",
|
|
16380
16390
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16419,14 +16429,14 @@ JSON field selection:
|
|
|
16419
16429
|
passthroughArgs.shift();
|
|
16420
16430
|
}
|
|
16421
16431
|
const exitCode = await handlePlayRun(
|
|
16422
|
-
|
|
16432
|
+
_chunkTUDYBF4Yjs.resolvePlayRunCliOptions.call(void 0,
|
|
16423
16433
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16424
16434
|
options,
|
|
16425
16435
|
passthroughArgs,
|
|
16426
|
-
|
|
16436
|
+
_chunkYRQWGWRJjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16427
16437
|
)
|
|
16428
16438
|
);
|
|
16429
|
-
|
|
16439
|
+
_chunkYRQWGWRJjs.recordCliTrace.call(void 0, {
|
|
16430
16440
|
phase: "cli.play_command_exit",
|
|
16431
16441
|
exitCode
|
|
16432
16442
|
});
|
|
@@ -16475,9 +16485,9 @@ Examples:
|
|
|
16475
16485
|
const limit = Number(options.historyLimit);
|
|
16476
16486
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16477
16487
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16478
|
-
const client = new (0,
|
|
16488
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
16479
16489
|
if (options.binding) {
|
|
16480
|
-
|
|
16490
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0,
|
|
16481
16491
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16482
16492
|
);
|
|
16483
16493
|
return;
|
|
@@ -16485,7 +16495,7 @@ Examples:
|
|
|
16485
16495
|
const result = await client.listPlayTriggerInventory({
|
|
16486
16496
|
cursor: options.cursor
|
|
16487
16497
|
});
|
|
16488
|
-
|
|
16498
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, {
|
|
16489
16499
|
...result,
|
|
16490
16500
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16491
16501
|
});
|
|
@@ -16544,7 +16554,7 @@ Examples:
|
|
|
16544
16554
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16545
16555
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16546
16556
|
}
|
|
16547
|
-
const result = await new (0,
|
|
16557
|
+
const result = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().getPlaysActivity({
|
|
16548
16558
|
timeZone: options.timeZone,
|
|
16549
16559
|
days,
|
|
16550
16560
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16558,7 +16568,7 @@ Examples:
|
|
|
16558
16568
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16559
16569
|
);
|
|
16560
16570
|
}
|
|
16561
|
-
|
|
16571
|
+
_chunk7OQZZHZ4js.printCommandEnvelope.call(void 0,
|
|
16562
16572
|
{ ...result },
|
|
16563
16573
|
{
|
|
16564
16574
|
json: Boolean(options.json),
|
|
@@ -16587,7 +16597,7 @@ Examples:
|
|
|
16587
16597
|
false
|
|
16588
16598
|
);
|
|
16589
16599
|
});
|
|
16590
|
-
|
|
16600
|
+
_chunkK54BUQSKjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16591
16601
|
play,
|
|
16592
16602
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16593
16603
|
);
|
|
@@ -16628,9 +16638,9 @@ Examples:
|
|
|
16628
16638
|
"--json [fields]",
|
|
16629
16639
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16630
16640
|
);
|
|
16631
|
-
|
|
16641
|
+
_chunkKLQ5CR77js.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16632
16642
|
async (target, options) => {
|
|
16633
|
-
const ownView = () => handlePlayDescribe(
|
|
16643
|
+
const ownView = () => handlePlayDescribe(_chunk7OQZZHZ4js.describeArgs.call(void 0, target, options));
|
|
16634
16644
|
const [flagText] = [options.json].filter(
|
|
16635
16645
|
(value) => typeof value === "string"
|
|
16636
16646
|
);
|
|
@@ -16641,7 +16651,7 @@ Examples:
|
|
|
16641
16651
|
process.exitCode = await ownView();
|
|
16642
16652
|
return;
|
|
16643
16653
|
}
|
|
16644
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16654
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-DEXYQMBO.js")));
|
|
16645
16655
|
process.exitCode = await describeAnything(
|
|
16646
16656
|
name,
|
|
16647
16657
|
{
|
|
@@ -16759,7 +16769,7 @@ Examples:
|
|
|
16759
16769
|
deepline plays deployments <deployment-id>
|
|
16760
16770
|
`
|
|
16761
16771
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16762
|
-
async (id, options) => id ?
|
|
16772
|
+
async (id, options) => id ? _chunk57LW4TGYjs.handleDeploymentGet.call(void 0, id, options) : _chunk57LW4TGYjs.handleDeploymentsList.call(void 0, options)
|
|
16763
16773
|
);
|
|
16764
16774
|
addPublishHelp(
|
|
16765
16775
|
play.command("publish <target>").description(
|
|
@@ -16894,14 +16904,14 @@ Examples:
|
|
|
16894
16904
|
const limit = Number(options.limit);
|
|
16895
16905
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16896
16906
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16897
|
-
const result = await new (0,
|
|
16907
|
+
const result = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().runs.rowHistory({
|
|
16898
16908
|
playName: options.play,
|
|
16899
16909
|
runId,
|
|
16900
16910
|
tableNamespace: options.dataset,
|
|
16901
16911
|
limit,
|
|
16902
16912
|
cursor: options.cursor
|
|
16903
16913
|
});
|
|
16904
|
-
|
|
16914
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, {
|
|
16905
16915
|
...result,
|
|
16906
16916
|
...result.nextCursor ? {
|
|
16907
16917
|
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`
|
|
@@ -16979,7 +16989,7 @@ Examples:
|
|
|
16979
16989
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16980
16990
|
).action(async (runId, options) => {
|
|
16981
16991
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16982
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16992
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-IXXN2RE4.js")));
|
|
16983
16993
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16984
16994
|
receiptJson: options.json !== void 0
|
|
16985
16995
|
});
|
|
@@ -16987,7 +16997,7 @@ Examples:
|
|
|
16987
16997
|
}
|
|
16988
16998
|
process.exitCode = await handleRunGet([
|
|
16989
16999
|
runId,
|
|
16990
|
-
...
|
|
17000
|
+
..._chunk7OQZZHZ4js.jsonFieldArgs.call(void 0, options.json),
|
|
16991
17001
|
...options.web ? ["--web"] : [],
|
|
16992
17002
|
...options.webUrl ? ["--web-url"] : [],
|
|
16993
17003
|
...options.full ? ["--full"] : [],
|
|
@@ -17278,7 +17288,7 @@ Examples:
|
|
|
17278
17288
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17279
17289
|
...options.wait ? ["--wait"] : [],
|
|
17280
17290
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17281
|
-
...
|
|
17291
|
+
..._chunk7OQZZHZ4js.jsonFieldArgs.call(void 0, options.json)
|
|
17282
17292
|
]);
|
|
17283
17293
|
});
|
|
17284
17294
|
const share = play.command("share").description(
|
|
@@ -17419,8 +17429,8 @@ function absolutePublicPlayUrl(path) {
|
|
|
17419
17429
|
}
|
|
17420
17430
|
function shareUrlFields(status) {
|
|
17421
17431
|
return {
|
|
17422
|
-
publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access',
|
|
17423
|
-
canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access',
|
|
17432
|
+
publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _621 => _621.share, 'optionalAccess', _622 => _622.publicPath])),
|
|
17433
|
+
canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _623 => _623.share, 'optionalAccess', _624 => _624.canonicalPath]))
|
|
17424
17434
|
};
|
|
17425
17435
|
}
|
|
17426
17436
|
function shareStatusForOutput(status) {
|
|
@@ -17444,10 +17454,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17444
17454
|
return 2;
|
|
17445
17455
|
}
|
|
17446
17456
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17447
|
-
const status = await new (0,
|
|
17457
|
+
const status = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().getSharePage(name);
|
|
17448
17458
|
const outputStatus = shareStatusForOutput(status);
|
|
17449
|
-
if (
|
|
17450
|
-
|
|
17459
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
17460
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, outputStatus);
|
|
17451
17461
|
return 0;
|
|
17452
17462
|
}
|
|
17453
17463
|
if (!outputStatus.share) {
|
|
@@ -17486,7 +17496,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17486
17496
|
return 2;
|
|
17487
17497
|
}
|
|
17488
17498
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17489
|
-
const client = new (0,
|
|
17499
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
17490
17500
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17491
17501
|
let resolvedVersion;
|
|
17492
17502
|
if (!revisionId) {
|
|
@@ -17517,8 +17527,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17517
17527
|
);
|
|
17518
17528
|
if (!hasCompleted) {
|
|
17519
17529
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17520
|
-
if (
|
|
17521
|
-
|
|
17530
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
17531
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, {
|
|
17522
17532
|
ok: false,
|
|
17523
17533
|
code: "NO_SUCCESSFUL_RUN",
|
|
17524
17534
|
message,
|
|
@@ -17542,8 +17552,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17542
17552
|
};
|
|
17543
17553
|
if (args.includes("--dry-run")) {
|
|
17544
17554
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17545
|
-
if (
|
|
17546
|
-
|
|
17555
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
17556
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, plan);
|
|
17547
17557
|
} else {
|
|
17548
17558
|
console.log(
|
|
17549
17559
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17553,13 +17563,13 @@ async function handlePlaySharePublish(args) {
|
|
|
17553
17563
|
}
|
|
17554
17564
|
const status = await client.publishSharePage(name, request);
|
|
17555
17565
|
const outputStatus = shareStatusForOutput(status);
|
|
17556
|
-
if (
|
|
17557
|
-
|
|
17566
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
17567
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, outputStatus);
|
|
17558
17568
|
return 0;
|
|
17559
17569
|
}
|
|
17560
17570
|
const urls = shareUrlFields(outputStatus);
|
|
17561
17571
|
console.log(
|
|
17562
|
-
`Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access',
|
|
17572
|
+
`Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _625 => _625.share, 'optionalAccess', _626 => _626.publicPath]))), () => ( ""))}`
|
|
17563
17573
|
);
|
|
17564
17574
|
if (urls.canonicalUrl && urls.canonicalUrl !== urls.publicUrl) {
|
|
17565
17575
|
console.log(`Version URL: ${urls.canonicalUrl}`);
|
|
@@ -17585,9 +17595,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17585
17595
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17586
17596
|
...seoIndexing ? { seoIndexing } : {}
|
|
17587
17597
|
};
|
|
17588
|
-
const status = await new (0,
|
|
17589
|
-
if (
|
|
17590
|
-
|
|
17598
|
+
const status = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().updateSharePage(name, request);
|
|
17599
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
17600
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, status);
|
|
17591
17601
|
return 0;
|
|
17592
17602
|
}
|
|
17593
17603
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17602,13 +17612,13 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17602
17612
|
return 2;
|
|
17603
17613
|
}
|
|
17604
17614
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17605
|
-
const client = new (0,
|
|
17615
|
+
const client = new (0, _chunkPE3UHMMZjs.DeeplineClient)();
|
|
17606
17616
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17607
17617
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17608
17618
|
if (!revisionId && versionFlag) {
|
|
17609
17619
|
const versions = await client.listPlayVersions(name);
|
|
17610
17620
|
const chosen = versions.find((r) => r.version === Number(versionFlag));
|
|
17611
|
-
if (!_optionalChain([chosen, 'optionalAccess',
|
|
17621
|
+
if (!_optionalChain([chosen, 'optionalAccess', _627 => _627._id])) {
|
|
17612
17622
|
console.error(`Version ${versionFlag} not found for ${name}.`);
|
|
17613
17623
|
return 4;
|
|
17614
17624
|
}
|
|
@@ -17619,12 +17629,12 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17619
17629
|
revisionId ? { revisionId } : {}
|
|
17620
17630
|
);
|
|
17621
17631
|
const outputStatus = shareStatusForOutput(status);
|
|
17622
|
-
if (
|
|
17623
|
-
|
|
17632
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
17633
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, outputStatus);
|
|
17624
17634
|
return 0;
|
|
17625
17635
|
}
|
|
17626
17636
|
const urls = shareUrlFields(outputStatus);
|
|
17627
|
-
const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access',
|
|
17637
|
+
const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _628 => _628.share, 'optionalAccess', _629 => _629.publishedRevisionId]) === revisionId;
|
|
17628
17638
|
console.log(
|
|
17629
17639
|
`Regenerated public copy for ${name}${regeneratedPublishedRevision && urls.publicUrl ? `: ${urls.publicUrl}` : "."}`
|
|
17630
17640
|
);
|
|
@@ -17645,9 +17655,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17645
17655
|
return 2;
|
|
17646
17656
|
}
|
|
17647
17657
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17648
|
-
const status = await new (0,
|
|
17649
|
-
if (
|
|
17650
|
-
|
|
17658
|
+
const status = await new (0, _chunkPE3UHMMZjs.DeeplineClient)().unpublishSharePage(name);
|
|
17659
|
+
if (_chunk7OQZZHZ4js.argsWantJson.call(void 0, args)) {
|
|
17660
|
+
_chunk7OQZZHZ4js.printCompactJson.call(void 0, status);
|
|
17651
17661
|
return 0;
|
|
17652
17662
|
}
|
|
17653
17663
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17724,4 +17734,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17724
17734
|
|
|
17725
17735
|
|
|
17726
17736
|
|
|
17727
|
-
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.checkPlayFileExports = checkPlayFileExports; 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 =
|
|
17737
|
+
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.checkPlayFileExports = checkPlayFileExports; 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 = _chunkTUDYBF4Yjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkTUDYBF4Yjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; 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;
|