deepline 0.3.525 → 0.3.527
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/agent-runtime.ts +98 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +14 -5
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure-class.ts +98 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +24 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +35 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +39 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +50 -8
- package/dist/cli/auth-C7BBYIQD.js +43 -0
- package/dist/cli/{auth-TH3VGYBK.mjs → auth-LRMMQFJ4.mjs} +5 -5
- package/dist/cli/{billing-TWKVUFU2.js → billing-M76MMWZB.js} +82 -82
- package/dist/cli/{billing-CMHFI2LN.mjs → billing-WZZDXVRJ.mjs} +7 -7
- package/dist/cli/{chunk-CQSANB3V.js → chunk-2A6IRSE6.js} +5 -5
- package/dist/cli/{chunk-CZNEQMJR.mjs → chunk-2L3HVEBM.mjs} +1 -1
- package/dist/cli/{chunk-DYS3KWYF.js → chunk-3L2DNG5X.js} +11 -11
- package/dist/cli/{chunk-2WFVLOB7.js → chunk-3PQDEBO6.js} +1 -1
- package/dist/cli/{chunk-KPINGHIF.mjs → chunk-4YN7DZEA.mjs} +2 -2
- package/dist/cli/{chunk-OXFIJYN3.mjs → chunk-5YR6CDJ2.mjs} +6 -6
- package/dist/cli/{chunk-5JFAQUZS.js → chunk-66YLAQ2X.js} +26 -26
- package/dist/cli/{chunk-U4M32NFS.mjs → chunk-77VNC2KF.mjs} +1 -1
- package/dist/cli/{chunk-TFEGJEYO.js → chunk-7DPWGAOU.js} +3 -3
- package/dist/cli/{chunk-WEYFSBAD.mjs → chunk-7FCD34YS.mjs} +18 -11
- package/dist/cli/{chunk-CLTL7ZJI.mjs → chunk-AXFHQWGA.mjs} +1 -1
- package/dist/cli/{chunk-4UWXFXQF.js → chunk-C7A44BZ7.js} +3 -3
- package/dist/cli/{chunk-LAMGJQDY.mjs → chunk-E4TEZE62.mjs} +2 -2
- package/dist/cli/{chunk-S5LUY3KJ.js → chunk-EOL7PXLW.js} +7 -7
- package/dist/cli/{chunk-N4MMU3QF.js → chunk-ETXQZGQU.js} +16 -16
- package/dist/cli/{chunk-IMO3HXWZ.mjs → chunk-GIRMVMXP.mjs} +1 -1
- package/dist/cli/{chunk-YC7FKAJ4.mjs → chunk-HA2J2OAS.mjs} +10 -10
- package/dist/cli/{chunk-NRBCETWL.js → chunk-HB3YUHEL.js} +44 -44
- package/dist/cli/{chunk-P62LON53.js → chunk-HQZLTK3P.js} +2 -2
- package/dist/cli/{chunk-UQYKSOGO.mjs → chunk-JEIGNX3G.mjs} +5 -5
- package/dist/cli/{chunk-LE537GBC.js → chunk-JSEISVAZ.js} +138 -78
- package/dist/cli/{chunk-GCLNX72G.mjs → chunk-JSVHBJE2.mjs} +2 -2
- package/dist/cli/{chunk-ETHVJ2ZE.mjs → chunk-KDFUQRVU.mjs} +1 -1
- package/dist/cli/{chunk-QR7VYYNM.js → chunk-LHMHUA5D.js} +7 -7
- package/dist/cli/{chunk-ZWFTHEPT.mjs → chunk-M45S7JAY.mjs} +2 -2
- package/dist/cli/{chunk-WGRDOPAK.mjs → chunk-MIL5YDKZ.mjs} +2 -2
- package/dist/cli/{chunk-TXSBPBHB.mjs → chunk-MMM2WMTF.mjs} +5 -5
- package/dist/cli/{chunk-EP6YH6QJ.mjs → chunk-NVII3RWQ.mjs} +2 -2
- package/dist/cli/{chunk-V2GN4PLK.js → chunk-OKRBGXDI.js} +5 -5
- package/dist/cli/{chunk-LXKH4MKH.js → chunk-OLSATEDQ.js} +6 -6
- package/dist/cli/{chunk-V65J64FL.js → chunk-OXHY3LD3.js} +53 -53
- package/dist/cli/{chunk-OWQF6WVH.mjs → chunk-P5ZU5ZHA.mjs} +61 -1
- package/dist/cli/{chunk-RMZ6CISE.mjs → chunk-QKKT5G4K.mjs} +3 -3
- package/dist/cli/{chunk-JVWSIA2V.mjs → chunk-QKY3H3HA.mjs} +4 -4
- package/dist/cli/{chunk-WA3FG7DH.js → chunk-R6IWWPY7.js} +14 -14
- package/dist/cli/{chunk-MRUFGOJR.js → chunk-RGL2YGJZ.js} +2 -2
- package/dist/cli/{chunk-7C4F4TLR.mjs → chunk-RMCKTV4R.mjs} +1 -1
- package/dist/cli/{chunk-NO4URKKT.mjs → chunk-RTPLRMEB.mjs} +5 -5
- package/dist/cli/{chunk-ESWM2JW4.js → chunk-SRQQAUXN.js} +2 -2
- package/dist/cli/{chunk-CKTRQSRA.js → chunk-UAQ7ZWRP.js} +22 -22
- package/dist/cli/{chunk-7OF3A4KJ.mjs → chunk-UJHS2O5O.mjs} +84 -57
- package/dist/cli/{chunk-VYIAWAKJ.mjs → chunk-UKOG6PCB.mjs} +1 -1
- package/dist/cli/{chunk-UXF3ODJJ.mjs → chunk-VTXBV4AX.mjs} +1 -1
- package/dist/cli/{chunk-M43ZYNDA.mjs → chunk-VV2AFJ3I.mjs} +5 -5
- package/dist/cli/{chunk-CWRL6IQP.js → chunk-WL6GAZBD.js} +18 -11
- package/dist/cli/{chunk-NB2ECLQE.js → chunk-XI47UAVU.js} +9 -9
- package/dist/cli/{chunk-AVDEYOVP.js → chunk-XYG4IOJK.js} +98 -98
- package/dist/cli/{chunk-KEZ3KBWW.js → chunk-YJ4YVFXC.js} +97 -70
- package/dist/cli/{chunk-5BSGWIQD.mjs → chunk-YKPMIJJ2.mjs} +2 -2
- package/dist/cli/{chunk-MHBSRNI7.js → chunk-YSDPYQBH.js} +41 -41
- package/dist/cli/{chunk-KBOSALBI.js → chunk-YUYDP2EG.js} +6 -6
- package/dist/cli/{chunk-TO72GW5I.js → chunk-ZHY7AY5V.js} +16 -16
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-OO554TPX.mjs → csv-FEFNXZF7.mjs} +4 -4
- package/dist/cli/{csv-5JHWVJ5N.js → csv-IRP6VT7Q.js} +13 -13
- package/dist/cli/{db-SQKJ6RKU.mjs → db-IHECMWZ3.mjs} +6 -6
- package/dist/cli/{db-CYQJ4OXF.js → db-Y5VNPNRD.js} +27 -27
- package/dist/cli/describe-MNJVJHRE.js +50 -0
- package/dist/cli/{describe-N7AKTUQV.mjs → describe-XCVC2WLL.mjs} +18 -18
- package/dist/cli/{executions-F34DORW6.mjs → executions-3FWZYUJV.mjs} +6 -6
- package/dist/cli/{executions-K7EGCRKX.js → executions-QH3KJ6MA.js} +8 -8
- package/dist/cli/{feedback-NOQVCA3Q.js → feedback-BGHWMOLH.js} +65 -17
- package/dist/cli/{feedback-GQHKCS66.mjs → feedback-F3OZXOPM.mjs} +61 -13
- package/dist/cli/git-MDOHEW5J.js +25 -0
- package/dist/cli/{git-2EEITXDB.mjs → git-RWPH3D75.mjs} +5 -5
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-JHMY5XRB.mjs → legacy-noops-5ADSTBJ5.mjs} +6 -6
- package/dist/cli/{legacy-noops-RFNHQ7RG.js → legacy-noops-G6CYD5LM.js} +9 -9
- package/dist/cli/{monitors-RDMP6SPZ.mjs → monitors-AFNAU3A2.mjs} +7 -7
- package/dist/cli/{monitors-UKRZ4BDK.js → monitors-VZCBZO26.js} +100 -100
- package/dist/cli/{org-RF3G4KMB.mjs → org-JVLYTU24.mjs} +6 -6
- package/dist/cli/{org-OX7TYTHV.js → org-X4QRYBC4.js} +86 -86
- package/dist/cli/{pages-FBM3MGSP.mjs → pages-VELKZKBL.mjs} +6 -6
- package/dist/cli/{pages-MKQT5LFV.js → pages-YMM4KBW5.js} +18 -18
- package/dist/cli/{play-OOVX2DMV.js → play-J7DEBHI7.js} +317 -317
- package/dist/cli/{play-YWC2UORM.mjs → play-MIY6BYRB.mjs} +18 -18
- package/dist/cli/{providers-3PEQESIU.mjs → providers-2H3W3W7G.mjs} +6 -6
- package/dist/cli/{providers-2CGZYLER.js → providers-TOUB7Y2A.js} +9 -9
- package/dist/cli/{quickstart-KVB36SOW.mjs → quickstart-GKAS5265.mjs} +4 -4
- package/dist/cli/{quickstart-6AANHKQZ.js → quickstart-LHY2LN3P.js} +6 -6
- package/dist/cli/{run-QC23NRKO.mjs → run-KYGNOWYD.mjs} +23 -23
- package/dist/cli/{run-NJ7WV5TK.js → run-QCAVDPE5.js} +41 -41
- package/dist/cli/search-G67CEHR7.js +33 -0
- package/dist/cli/{search-7BMFFZI2.mjs → search-YPGAIFDX.mjs} +8 -8
- package/dist/cli/{search-output-XC2AVBFX.js → search-output-ASELNQ2U.js} +6 -6
- package/dist/cli/{search-output-CALZ4ZI2.mjs → search-output-OOC3VK4T.mjs} +4 -4
- package/dist/cli/{secrets-VHU4B2D4.js → secrets-KX3TQB4R.js} +15 -15
- package/dist/cli/{secrets-7ZHA57DI.mjs → secrets-VJ4XYSMZ.mjs} +6 -6
- package/dist/cli/sessions-KUN7H7E5.mjs +22 -0
- package/dist/cli/sessions-QILPX4XQ.js +22 -0
- package/dist/cli/{settings-WV77QJGD.js → settings-5NIF4BU7.js} +86 -86
- package/dist/cli/{settings-AVY4NNHI.mjs → settings-JKFYZ2IT.mjs} +13 -13
- package/dist/cli/{setup-AOUJ3RMU.mjs → setup-5AX3TN6G.mjs} +10 -10
- package/dist/cli/{setup-GE5TLTC4.js → setup-MYV3IHPS.js} +50 -50
- package/dist/cli/{skills-FVWO2G66.mjs → skills-JLS4CINQ.mjs} +8 -8
- package/dist/cli/skills-NG32XTZI.js +37 -0
- package/dist/cli/tools-OZG3V77R.js +57 -0
- package/dist/cli/{tools-URE655B4.mjs → tools-VBYKD3MJ.mjs} +17 -17
- package/dist/cli/{update-5B4G4345.mjs → update-QWAIVJRI.mjs} +10 -10
- package/dist/cli/update-YL5WVSKU.js +35 -0
- package/dist/cli/{views-GSECJ5IK.mjs → views-TBWGZAVZ.mjs} +6 -6
- package/dist/cli/{views-IC762HEQ.js → views-ZW56JZB5.js} +18 -18
- package/dist/cli/{workflow-EME7ZEOV.js → workflow-EKSZST6M.js} +17 -17
- package/dist/cli/{workflow-6UQM565I.mjs → workflow-X7UQPJMQ.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +107 -106
- 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-K7PMRXNG.js +0 -43
- package/dist/cli/describe-PASXOL3R.js +0 -50
- package/dist/cli/git-UU4YFJ2Q.js +0 -25
- package/dist/cli/search-NH4DTXUK.js +0 -33
- package/dist/cli/sessions-2TE5JWVP.js +0 -18
- package/dist/cli/sessions-YYULWFZE.mjs +0 -18
- package/dist/cli/skills-OL7LD6QX.js +0 -37
- package/dist/cli/tools-VQ5JO6DI.js +0 -57
- package/dist/cli/update-7ZOIOTZN.js +0 -35
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkXI47UAVUjs = require('./chunk-XI47UAVU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,15 +18,15 @@ var _chunkNB2ECLQEjs = require('./chunk-NB2ECLQE.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkYUYDP2EGjs = require('./chunk-YUYDP2EG.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk3L2DNG5Xjs = require('./chunk-3L2DNG5X.js');
|
|
25
25
|
require('./chunk-D3BCSAN7.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk66YLAQ2Xjs = require('./chunk-66YLAQ2X.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -51,10 +51,10 @@ var _chunkNRO3NTVOjs = require('./chunk-NRO3NTVO.js');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunk2A6IRSE6js = require('./chunk-2A6IRSE6.js');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkOKRBGXDIjs = require('./chunk-OKRBGXDI.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -67,7 +67,7 @@ var _chunkV2GN4PLKjs = require('./chunk-V2GN4PLK.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkLHMHUA5Djs = require('./chunk-LHMHUA5D.js');
|
|
71
71
|
require('./chunk-E4CABWXL.js');
|
|
72
72
|
|
|
73
73
|
|
|
@@ -91,19 +91,19 @@ require('./chunk-XDVT3GOM.js');
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
var
|
|
94
|
+
var _chunkOLSATEDQjs = require('./chunk-OLSATEDQ.js');
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
var
|
|
101
|
-
require('./chunk-
|
|
100
|
+
var _chunkRGL2YGJZjs = require('./chunk-RGL2YGJZ.js');
|
|
101
|
+
require('./chunk-HB3YUHEL.js');
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
var
|
|
106
|
-
require('./chunk-
|
|
105
|
+
var _chunkC7A44BZ7js = require('./chunk-C7A44BZ7.js');
|
|
106
|
+
require('./chunk-R6IWWPY7.js');
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
|
|
@@ -123,17 +123,17 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
var
|
|
127
|
-
require('./chunk-
|
|
126
|
+
var _chunkEOL7PXLWjs = require('./chunk-EOL7PXLW.js');
|
|
127
|
+
require('./chunk-7DPWGAOU.js');
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunkJSEISVAZjs = require('./chunk-JSEISVAZ.js');
|
|
131
131
|
require('./chunk-T2N3B7IQ.js');
|
|
132
132
|
require('./chunk-XNYIZMNQ.js');
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
136
|
-
require('./chunk-
|
|
136
|
+
require('./chunk-3PQDEBO6.js');
|
|
137
137
|
require('./chunk-OG64RBAC.js');
|
|
138
138
|
|
|
139
139
|
|
|
@@ -2115,7 +2115,7 @@ function resolveField(key, command) {
|
|
|
2115
2115
|
function printSettings(result, json, name) {
|
|
2116
2116
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2117
2117
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2118
|
-
|
|
2118
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
2119
2119
|
{
|
|
2120
2120
|
...result,
|
|
2121
2121
|
settings: Object.fromEntries(
|
|
@@ -2159,7 +2159,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2159
2159
|
valueSyntax: field.cli.valueSyntax,
|
|
2160
2160
|
examples: field.cli.examples
|
|
2161
2161
|
}));
|
|
2162
|
-
|
|
2162
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
2163
2163
|
{
|
|
2164
2164
|
fields: descriptions,
|
|
2165
2165
|
render: {
|
|
@@ -2184,7 +2184,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2184
2184
|
async (options, command) => {
|
|
2185
2185
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2186
2186
|
printSettings(
|
|
2187
|
-
await new (0,
|
|
2187
|
+
await new (0, _chunkOKRBGXDIjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2188
2188
|
options.json,
|
|
2189
2189
|
options.name
|
|
2190
2190
|
);
|
|
@@ -2215,7 +2215,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2215
2215
|
);
|
|
2216
2216
|
}
|
|
2217
2217
|
if (options.dryRun) {
|
|
2218
|
-
|
|
2218
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
2219
2219
|
{
|
|
2220
2220
|
dryRun: true,
|
|
2221
2221
|
play,
|
|
@@ -2236,7 +2236,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2236
2236
|
return;
|
|
2237
2237
|
}
|
|
2238
2238
|
printSettings(
|
|
2239
|
-
await new (0,
|
|
2239
|
+
await new (0, _chunkOKRBGXDIjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2240
2240
|
options.json
|
|
2241
2241
|
);
|
|
2242
2242
|
};
|
|
@@ -2262,13 +2262,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2262
2262
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2263
2263
|
{ exitCode: 2 }
|
|
2264
2264
|
);
|
|
2265
|
-
const page = await new (0,
|
|
2265
|
+
const page = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2266
2266
|
root: options.root,
|
|
2267
2267
|
limit,
|
|
2268
2268
|
cursor: options.cursor
|
|
2269
2269
|
});
|
|
2270
2270
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2271
|
-
|
|
2271
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
2272
2272
|
{
|
|
2273
2273
|
...page,
|
|
2274
2274
|
nextCommand,
|
|
@@ -2319,7 +2319,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2319
2319
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2320
2320
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2321
2321
|
};
|
|
2322
|
-
const client = new (0,
|
|
2322
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
2323
2323
|
const paths = [];
|
|
2324
2324
|
let cursor;
|
|
2325
2325
|
do {
|
|
@@ -2381,7 +2381,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2381
2381
|
moved.push(move.playName);
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
2384
|
-
|
|
2384
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
2385
2385
|
{
|
|
2386
2386
|
dryRun: Boolean(options.dryRun),
|
|
2387
2387
|
from: options.from,
|
|
@@ -2509,7 +2509,7 @@ function triggerLines(view) {
|
|
|
2509
2509
|
return lines;
|
|
2510
2510
|
}
|
|
2511
2511
|
function printView(view, json) {
|
|
2512
|
-
|
|
2512
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
2513
2513
|
{
|
|
2514
2514
|
...view,
|
|
2515
2515
|
render: {
|
|
@@ -2522,7 +2522,7 @@ function printView(view, json) {
|
|
|
2522
2522
|
);
|
|
2523
2523
|
}
|
|
2524
2524
|
function printResult(result, json) {
|
|
2525
|
-
|
|
2525
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
2526
2526
|
{
|
|
2527
2527
|
...result,
|
|
2528
2528
|
render: {
|
|
@@ -2552,7 +2552,7 @@ async function mutate(command, options, build) {
|
|
|
2552
2552
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2553
2553
|
}
|
|
2554
2554
|
if (options.dryRun) {
|
|
2555
|
-
|
|
2555
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
2556
2556
|
{
|
|
2557
2557
|
dryRun: true,
|
|
2558
2558
|
play: options.play,
|
|
@@ -2571,7 +2571,7 @@ async function mutate(command, options, build) {
|
|
|
2571
2571
|
return;
|
|
2572
2572
|
}
|
|
2573
2573
|
printResult(
|
|
2574
|
-
await new (0,
|
|
2574
|
+
await new (0, _chunkOKRBGXDIjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2575
2575
|
options.json
|
|
2576
2576
|
);
|
|
2577
2577
|
}
|
|
@@ -2604,7 +2604,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2604
2604
|
}).addHelpText("after", help2);
|
|
2605
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) => {
|
|
2606
2606
|
printView(
|
|
2607
|
-
await new (0,
|
|
2607
|
+
await new (0, _chunkOKRBGXDIjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2608
2608
|
options.json
|
|
2609
2609
|
);
|
|
2610
2610
|
});
|
|
@@ -2648,7 +2648,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2648
2648
|
if (options.auth === void 0) {
|
|
2649
2649
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2650
2650
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2651
|
-
const current = await new (0,
|
|
2651
|
+
const current = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2652
2652
|
options.play
|
|
2653
2653
|
);
|
|
2654
2654
|
return {
|
|
@@ -2725,7 +2725,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2725
2725
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2726
2726
|
"runtime.event": "Other event."
|
|
2727
2727
|
};
|
|
2728
|
-
var RUN_LOGS_KIND_HELP =
|
|
2728
|
+
var RUN_LOGS_KIND_HELP = _chunkLHMHUA5Djs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2729
2729
|
kind,
|
|
2730
2730
|
description: KIND_DESCRIPTIONS[kind]
|
|
2731
2731
|
}));
|
|
@@ -2862,9 +2862,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2862
2862
|
const args = program.args;
|
|
2863
2863
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2864
2864
|
error.exitCode = 2;
|
|
2865
|
-
if (
|
|
2866
|
-
|
|
2867
|
-
Object.assign(new (0,
|
|
2865
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2866
|
+
_chunkEOL7PXLWjs.printJsonError.call(void 0,
|
|
2867
|
+
Object.assign(new (0, _chunkLHMHUA5Djs.RunEventQueryInputError)(error.message), {
|
|
2868
2868
|
exitCode: 2,
|
|
2869
2869
|
retryable: false
|
|
2870
2870
|
})
|
|
@@ -2908,14 +2908,14 @@ function parseQuery(args, resource) {
|
|
|
2908
2908
|
if (VALUE_FLAGS.has(flag)) {
|
|
2909
2909
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2910
2910
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2911
|
-
throw new (0,
|
|
2911
|
+
throw new (0, _chunkLHMHUA5Djs.RunEventQueryInputError)(
|
|
2912
2912
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2913
2913
|
);
|
|
2914
2914
|
}
|
|
2915
2915
|
if (flag === "--sum") sums.push(value);
|
|
2916
2916
|
else {
|
|
2917
2917
|
if (values[flag] !== void 0) {
|
|
2918
|
-
throw new (0,
|
|
2918
|
+
throw new (0, _chunkLHMHUA5Djs.RunEventQueryInputError)(
|
|
2919
2919
|
`${flag} may only be supplied once.`
|
|
2920
2920
|
);
|
|
2921
2921
|
}
|
|
@@ -2929,12 +2929,12 @@ function parseQuery(args, resource) {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
if (arg.startsWith("-")) {
|
|
2931
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.";
|
|
2932
|
-
throw new (0,
|
|
2932
|
+
throw new (0, _chunkLHMHUA5Djs.RunEventQueryInputError)(
|
|
2933
2933
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2934
2934
|
);
|
|
2935
2935
|
}
|
|
2936
2936
|
if (runId !== void 0) {
|
|
2937
|
-
throw new (0,
|
|
2937
|
+
throw new (0, _chunkLHMHUA5Djs.RunEventQueryInputError)(
|
|
2938
2938
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2939
2939
|
);
|
|
2940
2940
|
}
|
|
@@ -2942,7 +2942,7 @@ function parseQuery(args, resource) {
|
|
|
2942
2942
|
}
|
|
2943
2943
|
if (switches.has("--fields")) {
|
|
2944
2944
|
if (runId !== void 0) {
|
|
2945
|
-
throw new (0,
|
|
2945
|
+
throw new (0, _chunkLHMHUA5Djs.RunEventQueryInputError)(
|
|
2946
2946
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2947
2947
|
);
|
|
2948
2948
|
}
|
|
@@ -2955,18 +2955,18 @@ function parseQuery(args, resource) {
|
|
|
2955
2955
|
)
|
|
2956
2956
|
];
|
|
2957
2957
|
if (incompatible.length) {
|
|
2958
|
-
throw new (0,
|
|
2958
|
+
throw new (0, _chunkLHMHUA5Djs.RunEventQueryInputError)(
|
|
2959
2959
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2960
2960
|
);
|
|
2961
2961
|
}
|
|
2962
2962
|
}
|
|
2963
2963
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2964
|
-
throw new (0,
|
|
2964
|
+
throw new (0, _chunkLHMHUA5Djs.RunEventQueryInputError)(
|
|
2965
2965
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2966
2966
|
);
|
|
2967
2967
|
}
|
|
2968
2968
|
if (sums.length && switches.has("--count")) {
|
|
2969
|
-
throw new (0,
|
|
2969
|
+
throw new (0, _chunkLHMHUA5Djs.RunEventQueryInputError)(
|
|
2970
2970
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2971
2971
|
);
|
|
2972
2972
|
}
|
|
@@ -2974,7 +2974,7 @@ function parseQuery(args, resource) {
|
|
|
2974
2974
|
if (operation === "count") {
|
|
2975
2975
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2976
2976
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2977
|
-
throw new (0,
|
|
2977
|
+
throw new (0, _chunkLHMHUA5Djs.RunEventQueryInputError)(
|
|
2978
2978
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2979
2979
|
);
|
|
2980
2980
|
}
|
|
@@ -3009,16 +3009,16 @@ function parseQuery(args, resource) {
|
|
|
3009
3009
|
];
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
|
-
const request =
|
|
3012
|
+
const request = _chunkLHMHUA5Djs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3013
3013
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3014
3014
|
const backend = values["--runtime-backend"];
|
|
3015
3015
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3016
|
-
throw new (0,
|
|
3016
|
+
throw new (0, _chunkLHMHUA5Djs.RunEventQueryInputError)(
|
|
3017
3017
|
"--runtime-backend must be daytona or modal."
|
|
3018
3018
|
);
|
|
3019
3019
|
}
|
|
3020
3020
|
if (backend && !namespace) {
|
|
3021
|
-
throw new (0,
|
|
3021
|
+
throw new (0, _chunkLHMHUA5Djs.RunEventQueryInputError)(
|
|
3022
3022
|
"--runtime-backend requires --runtime-namespace."
|
|
3023
3023
|
);
|
|
3024
3024
|
}
|
|
@@ -3065,12 +3065,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3065
3065
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3066
3066
|
const record4 = failure;
|
|
3067
3067
|
const status = record4.statusCode;
|
|
3068
|
-
const exitCode = error instanceof
|
|
3068
|
+
const exitCode = error instanceof _chunkLHMHUA5Djs.RunEventQueryInputError || status === 400 || status === 422 || record4.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record4.code === "CONFIG_ERROR" || record4.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3069
3069
|
const diagnostic = Object.assign(failure, {
|
|
3070
3070
|
exitCode,
|
|
3071
3071
|
retryable: exitCode === 5
|
|
3072
3072
|
});
|
|
3073
|
-
if (
|
|
3073
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) _chunkEOL7PXLWjs.printJsonError.call(void 0, diagnostic);
|
|
3074
3074
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3075
3075
|
return exitCode;
|
|
3076
3076
|
}
|
|
@@ -3085,7 +3085,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3085
3085
|
...criteria
|
|
3086
3086
|
} = request;
|
|
3087
3087
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3088
|
-
const client = new (0,
|
|
3088
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
3089
3089
|
let result;
|
|
3090
3090
|
if (request.operation === "fields") {
|
|
3091
3091
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3151,13 +3151,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3151
3151
|
lines.push(`Next page: ${nextPage}`);
|
|
3152
3152
|
}
|
|
3153
3153
|
}
|
|
3154
|
-
|
|
3154
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
3155
3155
|
{
|
|
3156
3156
|
...result,
|
|
3157
3157
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3158
3158
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3159
3159
|
},
|
|
3160
|
-
{ json:
|
|
3160
|
+
{ json: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3161
3161
|
` }
|
|
3162
3162
|
);
|
|
3163
3163
|
return 0;
|
|
@@ -4119,7 +4119,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4119
4119
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4120
4120
|
);
|
|
4121
4121
|
}
|
|
4122
|
-
const response = await new (0,
|
|
4122
|
+
const response = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4123
4123
|
keys
|
|
4124
4124
|
});
|
|
4125
4125
|
const failed = response.receipts.filter(
|
|
@@ -4131,7 +4131,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4131
4131
|
JSON.stringify(response, null, 2) + "\n",
|
|
4132
4132
|
{ flag: "wx", mode: 384 }
|
|
4133
4133
|
);
|
|
4134
|
-
|
|
4134
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
4135
4135
|
{
|
|
4136
4136
|
runId,
|
|
4137
4137
|
out: options.out,
|
|
@@ -4141,7 +4141,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4141
4141
|
{ json: true }
|
|
4142
4142
|
);
|
|
4143
4143
|
} else {
|
|
4144
|
-
|
|
4144
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4145
4145
|
}
|
|
4146
4146
|
if (failed)
|
|
4147
4147
|
process.exitCode = response.receipts.some(
|
|
@@ -4180,7 +4180,7 @@ includes nextCommand when another page is available.
|
|
|
4180
4180
|
{ exitCode: 2 }
|
|
4181
4181
|
);
|
|
4182
4182
|
}
|
|
4183
|
-
const page = await new (0,
|
|
4183
|
+
const page = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4184
4184
|
launchKey: options.launchKey,
|
|
4185
4185
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4186
4186
|
limit
|
|
@@ -4195,7 +4195,7 @@ includes nextCommand when another page is available.
|
|
|
4195
4195
|
"--limit",
|
|
4196
4196
|
String(limit)
|
|
4197
4197
|
].join(" ") : null;
|
|
4198
|
-
|
|
4198
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
4199
4199
|
{
|
|
4200
4200
|
parentRunId,
|
|
4201
4201
|
launchKey: options.launchKey,
|
|
@@ -4231,7 +4231,7 @@ async function handleRunsHistory(options) {
|
|
|
4231
4231
|
throw new Error("--limit must be a positive integer.");
|
|
4232
4232
|
}
|
|
4233
4233
|
}
|
|
4234
|
-
const page = await new (0,
|
|
4234
|
+
const page = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().runs.history({
|
|
4235
4235
|
cursor: options.cursor,
|
|
4236
4236
|
orgId: options.org,
|
|
4237
4237
|
search: options.search,
|
|
@@ -4247,7 +4247,7 @@ async function handleRunsHistory(options) {
|
|
|
4247
4247
|
);
|
|
4248
4248
|
}
|
|
4249
4249
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4250
|
-
|
|
4250
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
4251
4251
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4252
4252
|
options.json ? { json: true } : {}
|
|
4253
4253
|
);
|
|
@@ -4300,12 +4300,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4300
4300
|
}
|
|
4301
4301
|
}
|
|
4302
4302
|
if (options.notice) console.error(options.notice);
|
|
4303
|
-
const result = await new (0,
|
|
4303
|
+
const result = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().runs.rerun(runId, {
|
|
4304
4304
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4305
4305
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4306
4306
|
});
|
|
4307
|
-
if (
|
|
4308
|
-
|
|
4307
|
+
if (_chunkEOL7PXLWjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4308
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4309
4309
|
} else if (result.rateLimited) {
|
|
4310
4310
|
console.log(`
|
|
4311
4311
|
${result.rateLimited.message}`);
|
|
@@ -4329,7 +4329,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
4329
4329
|
// src/cli/operations/runs-resume.ts
|
|
4330
4330
|
async function runRunsResumeCommand(runId) {
|
|
4331
4331
|
try {
|
|
4332
|
-
const result = await new (0,
|
|
4332
|
+
const result = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().runs.resume(runId);
|
|
4333
4333
|
if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
|
|
4334
4334
|
throw new Error(
|
|
4335
4335
|
"Invalid resume receipt: expected the requested run and a new positive epoch."
|
|
@@ -5163,13 +5163,13 @@ var RunDataset = class _RunDataset {
|
|
|
5163
5163
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5164
5164
|
_fs.writeFileSync.call(void 0,
|
|
5165
5165
|
absolutePath,
|
|
5166
|
-
`${JSON.stringify(
|
|
5166
|
+
`${JSON.stringify(_chunkYUYDP2EGjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5167
5167
|
`,
|
|
5168
5168
|
"utf-8"
|
|
5169
5169
|
);
|
|
5170
5170
|
return absolutePath;
|
|
5171
5171
|
}
|
|
5172
|
-
return
|
|
5172
|
+
return _chunkYUYDP2EGjs.writeRunDatasetCsv.call(void 0, {
|
|
5173
5173
|
rows: this.rows,
|
|
5174
5174
|
columns: this.#info.columns,
|
|
5175
5175
|
outPath
|
|
@@ -6674,7 +6674,7 @@ function renderOutcome(outcome) {
|
|
|
6674
6674
|
function printResult2(input) {
|
|
6675
6675
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6676
6676
|
if (failed) process.exitCode = 1;
|
|
6677
|
-
|
|
6677
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
6678
6678
|
{
|
|
6679
6679
|
deployment: { ...input.deployment, status: input.status },
|
|
6680
6680
|
plays: input.outcomes,
|
|
@@ -6699,7 +6699,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6699
6699
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6700
6700
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6701
6701
|
});
|
|
6702
|
-
const { http, config } =
|
|
6702
|
+
const { http, config } = _chunkEOL7PXLWjs.getAuthedHttpClient.call(void 0, );
|
|
6703
6703
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6704
6704
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6705
6705
|
deliveryId,
|
|
@@ -6726,7 +6726,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6726
6726
|
},
|
|
6727
6727
|
{
|
|
6728
6728
|
bundle: bundleDeployPlayFile,
|
|
6729
|
-
fetchImpl:
|
|
6729
|
+
fetchImpl: _chunkJSEISVAZjs.fetchWithDeploymentProtection,
|
|
6730
6730
|
// The plays are already here: "opening" the source is naming it.
|
|
6731
6731
|
openSource: async () => ({
|
|
6732
6732
|
open: async () => ({ repoRoot: root })
|
|
@@ -6852,7 +6852,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6852
6852
|
// src/cli/renderers/local-play-execution.ts
|
|
6853
6853
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6854
6854
|
if (options.dryRun) {
|
|
6855
|
-
|
|
6855
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6856
6856
|
return;
|
|
6857
6857
|
}
|
|
6858
6858
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7024,7 +7024,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7024
7024
|
const startedAt = Date.now();
|
|
7025
7025
|
try {
|
|
7026
7026
|
const result = run();
|
|
7027
|
-
|
|
7027
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
7028
7028
|
phase,
|
|
7029
7029
|
ms: Date.now() - startedAt,
|
|
7030
7030
|
ok: true,
|
|
@@ -7032,7 +7032,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7032
7032
|
});
|
|
7033
7033
|
return result;
|
|
7034
7034
|
} catch (error) {
|
|
7035
|
-
|
|
7035
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
7036
7036
|
phase,
|
|
7037
7037
|
ms: Date.now() - startedAt,
|
|
7038
7038
|
ok: false,
|
|
@@ -7831,7 +7831,7 @@ function playStatusErrorText(status) {
|
|
|
7831
7831
|
function isRetryablePendingStartFailure(status) {
|
|
7832
7832
|
if (status.status !== "failed") return false;
|
|
7833
7833
|
if (status.runId && status.runId !== "pending") return false;
|
|
7834
|
-
return
|
|
7834
|
+
return _chunkLHMHUA5Djs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7835
7835
|
}
|
|
7836
7836
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7837
7837
|
if (error instanceof _chunkSQWET4SLjs.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -7881,13 +7881,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkSQWET4SLjs.Deep
|
|
|
7881
7881
|
}, _class);
|
|
7882
7882
|
function watchSurfaceReaches(state, provenance, level) {
|
|
7883
7883
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
7884
|
-
if (!
|
|
7884
|
+
if (!_chunkLHMHUA5Djs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
7885
7885
|
return false;
|
|
7886
7886
|
}
|
|
7887
|
-
if (
|
|
7887
|
+
if (_chunkLHMHUA5Djs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
7888
7888
|
return true;
|
|
7889
7889
|
}
|
|
7890
|
-
return state.verbose === true &&
|
|
7890
|
+
return state.verbose === true && _chunkLHMHUA5Djs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
7891
7891
|
}
|
|
7892
7892
|
function getEventPayload(event) {
|
|
7893
7893
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8397,7 +8397,7 @@ function resolvePlayRunUrl(input) {
|
|
|
8397
8397
|
}
|
|
8398
8398
|
function openPlayDashboard(url, open2) {
|
|
8399
8399
|
if (open2 && url) {
|
|
8400
|
-
|
|
8400
|
+
_chunkEOL7PXLWjs.openInBrowser.call(void 0, url);
|
|
8401
8401
|
}
|
|
8402
8402
|
}
|
|
8403
8403
|
function printPlayLogLines(input) {
|
|
@@ -8478,7 +8478,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8478
8478
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8479
8479
|
});
|
|
8480
8480
|
} catch (error) {
|
|
8481
|
-
if (
|
|
8481
|
+
if (_chunkLHMHUA5Djs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8482
8482
|
return null;
|
|
8483
8483
|
}
|
|
8484
8484
|
throw error;
|
|
@@ -8559,9 +8559,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8559
8559
|
signal: controller.signal,
|
|
8560
8560
|
deferLogs: !input.emitLogs,
|
|
8561
8561
|
omitTerminalLogs: !input.emitLogs,
|
|
8562
|
-
...
|
|
8562
|
+
..._chunkRGL2YGJZjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8563
8563
|
onPoll: (observation) => {
|
|
8564
|
-
|
|
8564
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
8565
8565
|
phase: "play_watch_poll",
|
|
8566
8566
|
workflowId: input.workflowId,
|
|
8567
8567
|
ms: observation.durationMs,
|
|
@@ -8575,7 +8575,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8575
8575
|
full: input.fullJson,
|
|
8576
8576
|
billing: false,
|
|
8577
8577
|
onStatus: async (status) => {
|
|
8578
|
-
|
|
8578
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
8579
8579
|
phase: "play_watch_terminal_status",
|
|
8580
8580
|
workflowId: input.workflowId,
|
|
8581
8581
|
full: input.fullJson === true
|
|
@@ -8664,7 +8664,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8664
8664
|
signal: controller.signal,
|
|
8665
8665
|
cliAdmission: useCliAdmission
|
|
8666
8666
|
});
|
|
8667
|
-
|
|
8667
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
8668
8668
|
phase: "cli.play_start_admission_attempt",
|
|
8669
8669
|
ms: Date.now() - postStartedAt,
|
|
8670
8670
|
ok: true,
|
|
@@ -8676,7 +8676,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8676
8676
|
});
|
|
8677
8677
|
break;
|
|
8678
8678
|
} catch (error) {
|
|
8679
|
-
|
|
8679
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
8680
8680
|
phase: "cli.play_start_admission_attempt",
|
|
8681
8681
|
ms: Date.now() - postStartedAt,
|
|
8682
8682
|
ok: false,
|
|
@@ -8727,7 +8727,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8727
8727
|
prepared.workflowId
|
|
8728
8728
|
);
|
|
8729
8729
|
}
|
|
8730
|
-
await
|
|
8730
|
+
await _chunkOLSATEDQjs.checkPlayRunCompatibility.call(void 0,
|
|
8731
8731
|
input.client.baseUrl,
|
|
8732
8732
|
input.maintenancePolicy
|
|
8733
8733
|
);
|
|
@@ -8745,7 +8745,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8745
8745
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
8746
8746
|
);
|
|
8747
8747
|
}
|
|
8748
|
-
|
|
8748
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
8749
8749
|
phase: "cli.play_start_json_retry",
|
|
8750
8750
|
ms: 0,
|
|
8751
8751
|
ok: true,
|
|
@@ -8825,7 +8825,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8825
8825
|
_nullishCoalesce(input.open, () => ( false))
|
|
8826
8826
|
);
|
|
8827
8827
|
input.progress.phase("running");
|
|
8828
|
-
|
|
8828
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
8829
8829
|
phase: "cli.play_start_admitted",
|
|
8830
8830
|
ms: Date.now() - startedAt,
|
|
8831
8831
|
ok: true,
|
|
@@ -8843,7 +8843,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8843
8843
|
startedAt,
|
|
8844
8844
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8845
8845
|
});
|
|
8846
|
-
const initialStatus =
|
|
8846
|
+
const initialStatus = _chunkLHMHUA5Djs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8847
8847
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8848
8848
|
client: input.client,
|
|
8849
8849
|
status: initialStatus,
|
|
@@ -8851,7 +8851,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8851
8851
|
jsonOutput: input.jsonOutput,
|
|
8852
8852
|
fromDurableStatus: true
|
|
8853
8853
|
});
|
|
8854
|
-
|
|
8854
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
8855
8855
|
phase: "play_watch_terminal_status",
|
|
8856
8856
|
workflowId,
|
|
8857
8857
|
full: true,
|
|
@@ -8956,7 +8956,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8956
8956
|
});
|
|
8957
8957
|
}
|
|
8958
8958
|
if (error instanceof _chunk2KHUFWTKjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
8959
|
-
await
|
|
8959
|
+
await _chunkOLSATEDQjs.checkPlayRunCompatibility.call(void 0,
|
|
8960
8960
|
input.client.baseUrl,
|
|
8961
8961
|
input.maintenancePolicy,
|
|
8962
8962
|
admissionDeadline.signal
|
|
@@ -8997,7 +8997,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8997
8997
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
8998
8998
|
);
|
|
8999
8999
|
}
|
|
9000
|
-
|
|
9000
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
9001
9001
|
phase: "cli.play_start_stream_retry",
|
|
9002
9002
|
ms: 0,
|
|
9003
9003
|
ok: true,
|
|
@@ -9018,7 +9018,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9018
9018
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9019
9019
|
);
|
|
9020
9020
|
}
|
|
9021
|
-
|
|
9021
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
9022
9022
|
phase: "cli.play_start_stream_retry",
|
|
9023
9023
|
ms: 0,
|
|
9024
9024
|
ok: true,
|
|
@@ -9075,7 +9075,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9075
9075
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9076
9076
|
launchConfirmed = true;
|
|
9077
9077
|
await _optionalChain([input, 'access', _314 => _314.onRunAdmitted, 'optionalCall', _315 => _315(runId)]);
|
|
9078
|
-
|
|
9078
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
9079
9079
|
phase: "cli.play_start_admitted",
|
|
9080
9080
|
ms: Date.now() - startedAt,
|
|
9081
9081
|
ok: true,
|
|
@@ -9109,7 +9109,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9109
9109
|
full: input.fullJson
|
|
9110
9110
|
});
|
|
9111
9111
|
} catch (error) {
|
|
9112
|
-
if (
|
|
9112
|
+
if (_chunkLHMHUA5Djs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9113
9113
|
return null;
|
|
9114
9114
|
}
|
|
9115
9115
|
throw error;
|
|
@@ -9280,7 +9280,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9280
9280
|
};
|
|
9281
9281
|
}
|
|
9282
9282
|
if (!canonicalTerminal) {
|
|
9283
|
-
|
|
9283
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
9284
9284
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9285
9285
|
ms: Date.now() - startedAt,
|
|
9286
9286
|
ok: true,
|
|
@@ -9301,14 +9301,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9301
9301
|
fromDurableStatus
|
|
9302
9302
|
}) : canonicalTerminal;
|
|
9303
9303
|
if (input.fullJson === true) {
|
|
9304
|
-
|
|
9304
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
9305
9305
|
phase: "play_watch_terminal_status",
|
|
9306
9306
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9307
9307
|
full: true,
|
|
9308
9308
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9309
9309
|
});
|
|
9310
9310
|
}
|
|
9311
|
-
|
|
9311
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
9312
9312
|
phase: "cli.play_start_stream_terminal",
|
|
9313
9313
|
ms: Date.now() - startedAt,
|
|
9314
9314
|
ok: true,
|
|
@@ -9328,7 +9328,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9328
9328
|
clearTimeout(timeout);
|
|
9329
9329
|
}
|
|
9330
9330
|
controller.abort();
|
|
9331
|
-
|
|
9331
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
9332
9332
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9333
9333
|
ms: Date.now() - startedAt,
|
|
9334
9334
|
ok: true,
|
|
@@ -9359,7 +9359,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9359
9359
|
if (timedOut) {
|
|
9360
9360
|
const terminal = await fetchKnownTerminalStatus();
|
|
9361
9361
|
if (terminal) {
|
|
9362
|
-
|
|
9362
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
9363
9363
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9364
9364
|
ms: Date.now() - startedAt,
|
|
9365
9365
|
ok: true,
|
|
@@ -9379,7 +9379,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9379
9379
|
lastPhase
|
|
9380
9380
|
});
|
|
9381
9381
|
}
|
|
9382
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9382
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkLHMHUA5Djs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9383
9383
|
if (timeout) {
|
|
9384
9384
|
clearTimeout(timeout);
|
|
9385
9385
|
}
|
|
@@ -9390,7 +9390,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9390
9390
|
`
|
|
9391
9391
|
);
|
|
9392
9392
|
}
|
|
9393
|
-
|
|
9393
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
9394
9394
|
phase: "cli.play_start_stream_reconnect",
|
|
9395
9395
|
ms: Date.now() - startedAt,
|
|
9396
9396
|
ok: true,
|
|
@@ -9417,7 +9417,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9417
9417
|
});
|
|
9418
9418
|
}
|
|
9419
9419
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9420
|
-
|
|
9420
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
9421
9421
|
phase: "cli.play_start_stream_transient_failure",
|
|
9422
9422
|
ms: Date.now() - startedAt,
|
|
9423
9423
|
ok: false,
|
|
@@ -9445,7 +9445,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9445
9445
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9446
9446
|
);
|
|
9447
9447
|
}
|
|
9448
|
-
|
|
9448
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
9449
9449
|
phase: "cli.play_start_stream_reconnect",
|
|
9450
9450
|
ms: Date.now() - startedAt,
|
|
9451
9451
|
ok: true,
|
|
@@ -9525,7 +9525,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9525
9525
|
"logs"
|
|
9526
9526
|
]);
|
|
9527
9527
|
function formatPlayLogLine(rawLine, state) {
|
|
9528
|
-
const classified =
|
|
9528
|
+
const classified = _chunkLHMHUA5Djs.classifyLogLine.call(void 0, rawLine);
|
|
9529
9529
|
const line = classified.line;
|
|
9530
9530
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9531
9531
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _337 => _337[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9540,14 +9540,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9540
9540
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9541
9541
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9542
9542
|
if (providerWait && !state.verbose) {
|
|
9543
|
-
return
|
|
9543
|
+
return _chunkLHMHUA5Djs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9544
9544
|
}
|
|
9545
9545
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9546
9546
|
if (mapProgress && !state.verbose) {
|
|
9547
|
-
return
|
|
9547
|
+
return _chunkLHMHUA5Djs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9548
9548
|
}
|
|
9549
9549
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9550
|
-
if (!
|
|
9550
|
+
if (!_chunkLHMHUA5Djs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9551
9551
|
return null;
|
|
9552
9552
|
}
|
|
9553
9553
|
if (state.emittedRunnerStarted) {
|
|
@@ -9560,7 +9560,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9560
9560
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9561
9561
|
);
|
|
9562
9562
|
if (mapStart) {
|
|
9563
|
-
if (!
|
|
9563
|
+
if (!_chunkLHMHUA5Djs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9564
9564
|
return null;
|
|
9565
9565
|
}
|
|
9566
9566
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9570,7 +9570,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9570
9570
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9571
9571
|
);
|
|
9572
9572
|
if (mapDone) {
|
|
9573
|
-
if (!
|
|
9573
|
+
if (!_chunkLHMHUA5Djs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9574
9574
|
return null;
|
|
9575
9575
|
}
|
|
9576
9576
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10870,7 +10870,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10870
10870
|
(line) => typeof line === "string"
|
|
10871
10871
|
);
|
|
10872
10872
|
if (tail.length === 0) return [];
|
|
10873
|
-
const shown = tail.map((line) =>
|
|
10873
|
+
const shown = tail.map((line) => _chunkLHMHUA5Djs.classifyLogLine.call(void 0, line)).filter(
|
|
10874
10874
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10875
10875
|
).slice(-8);
|
|
10876
10876
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11168,11 +11168,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11168
11168
|
}
|
|
11169
11169
|
function writePlayResult(status, jsonOutput, options) {
|
|
11170
11170
|
const packaged = getPlayRunPackage(status);
|
|
11171
|
-
if (status.package)
|
|
11171
|
+
if (status.package) _chunkYUYDP2EGjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11172
11172
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _425 => _425.hits]), () => ( null));
|
|
11173
11173
|
if (jsonOutput) {
|
|
11174
11174
|
const payload2 = _optionalChain([options, 'optionalAccess', _426 => _426.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11175
|
-
|
|
11175
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
11176
11176
|
hits ? { ...payload2, hits } : payload2,
|
|
11177
11177
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _427 => _427.jsonFields]) }
|
|
11178
11178
|
);
|
|
@@ -11188,7 +11188,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11188
11188
|
...buildPlayCompletionTextLines(status),
|
|
11189
11189
|
...formatRunHitsLines(hits)
|
|
11190
11190
|
];
|
|
11191
|
-
|
|
11191
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11192
11192
|
json: false,
|
|
11193
11193
|
text: `${lines2.join("\n")}
|
|
11194
11194
|
`
|
|
@@ -11239,7 +11239,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11239
11239
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11240
11240
|
const compact = compactPlayStatus(status);
|
|
11241
11241
|
const payload = _optionalChain([options, 'optionalAccess', _429 => _429.fullJson]) ? status : compact;
|
|
11242
|
-
|
|
11242
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
11243
11243
|
{
|
|
11244
11244
|
...payload,
|
|
11245
11245
|
render: {
|
|
@@ -11463,7 +11463,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11463
11463
|
}
|
|
11464
11464
|
offset += page.rows.length;
|
|
11465
11465
|
}
|
|
11466
|
-
const withError =
|
|
11466
|
+
const withError = _chunkYUYDP2EGjs.tableExportHasFailedRows.call(void 0,
|
|
11467
11467
|
sheetRows.filter(
|
|
11468
11468
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11469
11469
|
)
|
|
@@ -11479,7 +11479,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11479
11479
|
return [
|
|
11480
11480
|
withError ? {
|
|
11481
11481
|
...exported,
|
|
11482
|
-
[
|
|
11482
|
+
[_chunkYUYDP2EGjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkYUYDP2EGjs.tableExportErrorCell.call(void 0,
|
|
11483
11483
|
row
|
|
11484
11484
|
)
|
|
11485
11485
|
} : exported
|
|
@@ -12014,7 +12014,7 @@ function renderServerResultView(value) {
|
|
|
12014
12014
|
function writeStartedPlayRun(input) {
|
|
12015
12015
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12016
12016
|
const run = input.package.run;
|
|
12017
|
-
|
|
12017
|
+
_chunkYUYDP2EGjs.recordPlayTermination.call(void 0, {
|
|
12018
12018
|
id: run.id,
|
|
12019
12019
|
status: run.status,
|
|
12020
12020
|
finishedAt: run.finishedAt
|
|
@@ -12027,7 +12027,7 @@ function writeStartedPlayRun(input) {
|
|
|
12027
12027
|
dashboardUrl: input.dashboardUrl,
|
|
12028
12028
|
package: input.package
|
|
12029
12029
|
};
|
|
12030
|
-
|
|
12030
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12031
12031
|
json: true,
|
|
12032
12032
|
fields: input.jsonFields
|
|
12033
12033
|
});
|
|
@@ -12049,7 +12049,7 @@ function writeStartedPlayRun(input) {
|
|
|
12049
12049
|
input.progress.writeLine(output2, process.stdout);
|
|
12050
12050
|
return;
|
|
12051
12051
|
}
|
|
12052
|
-
|
|
12052
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12053
12053
|
json: false,
|
|
12054
12054
|
text: `${output2}
|
|
12055
12055
|
`
|
|
@@ -12084,7 +12084,7 @@ function writeStartedPlayRun(input) {
|
|
|
12084
12084
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12085
12085
|
];
|
|
12086
12086
|
if (input.jsonOutput) {
|
|
12087
|
-
|
|
12087
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12088
12088
|
return;
|
|
12089
12089
|
}
|
|
12090
12090
|
const output = lines.join("\n");
|
|
@@ -12092,7 +12092,7 @@ function writeStartedPlayRun(input) {
|
|
|
12092
12092
|
input.progress.writeLine(output, process.stdout);
|
|
12093
12093
|
return;
|
|
12094
12094
|
}
|
|
12095
|
-
|
|
12095
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
12096
12096
|
{
|
|
12097
12097
|
...payload,
|
|
12098
12098
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12102,7 +12102,7 @@ function writeStartedPlayRun(input) {
|
|
|
12102
12102
|
);
|
|
12103
12103
|
}
|
|
12104
12104
|
function parsePlayCheckOptions(args) {
|
|
12105
|
-
const selection =
|
|
12105
|
+
const selection = _chunkEOL7PXLWjs.parseJsonFields.call(void 0, args, "check");
|
|
12106
12106
|
args = selection.args;
|
|
12107
12107
|
const target = args[0];
|
|
12108
12108
|
if (!target || target.startsWith("-")) {
|
|
@@ -12114,7 +12114,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12114
12114
|
if (arg !== "--json" && arg !== "--full")
|
|
12115
12115
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12116
12116
|
}
|
|
12117
|
-
const jsonOutput =
|
|
12117
|
+
const jsonOutput = _chunkEOL7PXLWjs.argsWantJson.call(void 0, args);
|
|
12118
12118
|
return {
|
|
12119
12119
|
target,
|
|
12120
12120
|
jsonOutput,
|
|
@@ -12190,7 +12190,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12190
12190
|
useLatest,
|
|
12191
12191
|
expectedArtifactHash,
|
|
12192
12192
|
dryRun,
|
|
12193
|
-
jsonOutput:
|
|
12193
|
+
jsonOutput: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args)
|
|
12194
12194
|
};
|
|
12195
12195
|
}
|
|
12196
12196
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12231,7 +12231,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12231
12231
|
target,
|
|
12232
12232
|
expectedArtifactHash,
|
|
12233
12233
|
dryRun,
|
|
12234
|
-
jsonOutput:
|
|
12234
|
+
jsonOutput: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args)
|
|
12235
12235
|
};
|
|
12236
12236
|
}
|
|
12237
12237
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12442,7 +12442,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12442
12442
|
async function handlePlayCheck(args) {
|
|
12443
12443
|
const options = parsePlayCheckOptions(args);
|
|
12444
12444
|
if (!isFileTarget(options.target)) {
|
|
12445
|
-
const client = new (0,
|
|
12445
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
12446
12446
|
try {
|
|
12447
12447
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12448
12448
|
command: "check"
|
|
@@ -12471,7 +12471,7 @@ async function handlePlayCheck(args) {
|
|
|
12471
12471
|
},
|
|
12472
12472
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12473
12473
|
};
|
|
12474
|
-
|
|
12474
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, result, {
|
|
12475
12475
|
json: options.jsonOutput,
|
|
12476
12476
|
fields: options.jsonFields,
|
|
12477
12477
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12481,7 +12481,7 @@ async function handlePlayCheck(args) {
|
|
|
12481
12481
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12482
12482
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12483
12483
|
if (options.jsonOutput) {
|
|
12484
|
-
|
|
12484
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
12485
12485
|
{
|
|
12486
12486
|
kind: "play_check",
|
|
12487
12487
|
checked: "named_contract",
|
|
@@ -12512,7 +12512,7 @@ async function handlePlayCheck(args) {
|
|
|
12512
12512
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12513
12513
|
publishCommand: _optionalChain([primary, 'optionalAccess', _479 => _479.result, 'access', _480 => _480.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12514
12514
|
});
|
|
12515
|
-
|
|
12515
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, output, {
|
|
12516
12516
|
json: options.jsonOutput,
|
|
12517
12517
|
fields: options.jsonFields,
|
|
12518
12518
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12580,7 +12580,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12580
12580
|
}
|
|
12581
12581
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12582
12582
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12583
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
12583
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunkOKRBGXDIjs.DeeplineClient)()));
|
|
12584
12584
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12585
12585
|
const checked = await checkLocalPlayGraph({
|
|
12586
12586
|
client,
|
|
@@ -12636,8 +12636,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12636
12636
|
let prefetchClient;
|
|
12637
12637
|
let admissionCapability;
|
|
12638
12638
|
let cancelAdmissionCapability;
|
|
12639
|
-
let cliAdmission =
|
|
12640
|
-
const progress = _nullishCoalesce(
|
|
12639
|
+
let cliAdmission = _chunkOLSATEDQjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12640
|
+
const progress = _nullishCoalesce(_chunkC7A44BZ7js.getActiveCliProgress.call(void 0, ), () => ( _chunkC7A44BZ7js.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12641
12641
|
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
12642
12642
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12643
12643
|
progress.phase("compiling play");
|
|
@@ -12654,11 +12654,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12654
12654
|
return 1;
|
|
12655
12655
|
}
|
|
12656
12656
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12657
|
-
const clientForPrefetch = new (0,
|
|
12657
|
+
const clientForPrefetch = new (0, _chunkOKRBGXDIjs.DeeplineClient)(playRunClientOptions(options));
|
|
12658
12658
|
prefetchClient = clientForPrefetch;
|
|
12659
12659
|
const capabilityController = new AbortController();
|
|
12660
12660
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12661
|
-
admissionCapability =
|
|
12661
|
+
admissionCapability = _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
12662
12662
|
"cli.play_admission_capability_prefetch",
|
|
12663
12663
|
{ targetKind: "file" },
|
|
12664
12664
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -12669,7 +12669,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12669
12669
|
}
|
|
12670
12670
|
let graph;
|
|
12671
12671
|
try {
|
|
12672
|
-
graph = await
|
|
12672
|
+
graph = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
12673
12673
|
"cli.play_file_bundle_graph",
|
|
12674
12674
|
{ targetKind: "file" },
|
|
12675
12675
|
() => collectBundledPlayGraph(
|
|
@@ -12682,7 +12682,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12682
12682
|
assertPlayGraphAuthoring(graph);
|
|
12683
12683
|
if (options.dryRun) {
|
|
12684
12684
|
progress.complete();
|
|
12685
|
-
const plan =
|
|
12685
|
+
const plan = _chunk2A6IRSE6js.planLocalPlayExecution.call(void 0, graph, {
|
|
12686
12686
|
runIdFile: options.runIdFile
|
|
12687
12687
|
});
|
|
12688
12688
|
if (_optionalChain([hooks, 'optionalAccess', _490 => _490.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
@@ -12693,9 +12693,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12693
12693
|
});
|
|
12694
12694
|
return 0;
|
|
12695
12695
|
}
|
|
12696
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
12696
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkOKRBGXDIjs.DeeplineClient)(playRunClientOptions(options))));
|
|
12697
12697
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12698
|
-
await
|
|
12698
|
+
await _chunkOLSATEDQjs.checkPlayRunCompatibility.call(void 0,
|
|
12699
12699
|
client.baseUrl,
|
|
12700
12700
|
options.maintenancePolicy
|
|
12701
12701
|
);
|
|
@@ -12708,7 +12708,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12708
12708
|
});
|
|
12709
12709
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12710
12710
|
if (canDeferCompilerManifest) {
|
|
12711
|
-
|
|
12711
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
12712
12712
|
phase: "cli.play_file_compile_manifests",
|
|
12713
12713
|
ms: 0,
|
|
12714
12714
|
ok: true,
|
|
@@ -12717,7 +12717,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12717
12717
|
reason: "validated_by_run_route"
|
|
12718
12718
|
});
|
|
12719
12719
|
} else {
|
|
12720
|
-
await
|
|
12720
|
+
await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
12721
12721
|
"cli.play_file_compile_manifests",
|
|
12722
12722
|
{ targetKind: "file", skipped: false },
|
|
12723
12723
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12725,7 +12725,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12725
12725
|
}
|
|
12726
12726
|
progress.phase("compiled play");
|
|
12727
12727
|
} catch (error) {
|
|
12728
|
-
if (error instanceof
|
|
12728
|
+
if (error instanceof _chunkYUYDP2EGjs.ExecutionOutputError) throw error;
|
|
12729
12729
|
progress.fail();
|
|
12730
12730
|
reportError(normalizePlayValidationError(error));
|
|
12731
12731
|
return 1;
|
|
@@ -12736,13 +12736,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12736
12736
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12737
12737
|
try {
|
|
12738
12738
|
renderLocalPlayExecutionPlan(
|
|
12739
|
-
|
|
12739
|
+
_chunk2A6IRSE6js.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12740
12740
|
);
|
|
12741
12741
|
progress.phase("pinning imported plays");
|
|
12742
|
-
graph = await
|
|
12742
|
+
graph = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
12743
12743
|
"cli.play_file_pin_imports",
|
|
12744
12744
|
{ targetKind: "file" },
|
|
12745
|
-
() =>
|
|
12745
|
+
() => _chunk2A6IRSE6js.pinLocalPlayImports.call(void 0, client, graph)
|
|
12746
12746
|
);
|
|
12747
12747
|
bundleResult = graph.root;
|
|
12748
12748
|
} catch (error) {
|
|
@@ -12759,7 +12759,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12759
12759
|
inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _491 => _491.authoringContract, 'optionalAccess', _492 => _492.inputSchema]),
|
|
12760
12760
|
staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _493 => _493.staticPipeline])
|
|
12761
12761
|
});
|
|
12762
|
-
const stagedFileInputs = await
|
|
12762
|
+
const stagedFileInputs = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
12763
12763
|
"cli.play_stage_inputs",
|
|
12764
12764
|
{
|
|
12765
12765
|
targetKind: "file",
|
|
@@ -12806,7 +12806,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12806
12806
|
};
|
|
12807
12807
|
if (options.watch) {
|
|
12808
12808
|
progress.phase("starting run");
|
|
12809
|
-
const finalStatus = await
|
|
12809
|
+
const finalStatus = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
12810
12810
|
"cli.play_start_watch",
|
|
12811
12811
|
{ targetKind: "file", playName },
|
|
12812
12812
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12868,7 +12868,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12868
12868
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12869
12869
|
}
|
|
12870
12870
|
progress.phase("starting run");
|
|
12871
|
-
const started = await
|
|
12871
|
+
const started = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
12872
12872
|
"cli.play_start_unwatched",
|
|
12873
12873
|
{ targetKind: "file", playName },
|
|
12874
12874
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _500 => _500.onSubmission]) }).catch(async (error) => {
|
|
@@ -12934,9 +12934,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
12934
12934
|
if (options.target.kind !== "name") {
|
|
12935
12935
|
throw new Error("Expected a named play run target.");
|
|
12936
12936
|
}
|
|
12937
|
-
const client = new (0,
|
|
12938
|
-
let cliAdmission =
|
|
12939
|
-
const progress = _nullishCoalesce(
|
|
12937
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)(playRunClientOptions(options));
|
|
12938
|
+
let cliAdmission = _chunkOLSATEDQjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12939
|
+
const progress = _nullishCoalesce(_chunkC7A44BZ7js.getActiveCliProgress.call(void 0, ), () => ( _chunkC7A44BZ7js.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12940
12940
|
const playName = options.target.name;
|
|
12941
12941
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
12942
12942
|
try {
|
|
@@ -12954,7 +12954,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12954
12954
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12955
12955
|
const capabilityController = new AbortController();
|
|
12956
12956
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12957
|
-
admissionCapability =
|
|
12957
|
+
admissionCapability = _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
12958
12958
|
"cli.play_admission_capability_prefetch",
|
|
12959
12959
|
{ targetKind: "name", playName },
|
|
12960
12960
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -12965,14 +12965,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
12965
12965
|
}
|
|
12966
12966
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
12967
12967
|
progress.phase("loading play definition");
|
|
12968
|
-
return
|
|
12968
|
+
return _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
12969
12969
|
"cli.play_load_definition",
|
|
12970
12970
|
{ targetKind: "name", playName, skipped: false },
|
|
12971
12971
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
12972
12972
|
command: "run"
|
|
12973
12973
|
})
|
|
12974
12974
|
);
|
|
12975
|
-
})() : (
|
|
12975
|
+
})() : (_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
12976
12976
|
phase: "cli.play_load_definition",
|
|
12977
12977
|
ms: 0,
|
|
12978
12978
|
ok: true,
|
|
@@ -12981,7 +12981,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12981
12981
|
skipped: true
|
|
12982
12982
|
}), null);
|
|
12983
12983
|
progress.phase("selecting revision");
|
|
12984
|
-
const selectedRevisionId = await
|
|
12984
|
+
const selectedRevisionId = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
12985
12985
|
"cli.play_select_revision",
|
|
12986
12986
|
{
|
|
12987
12987
|
targetKind: "name",
|
|
@@ -13006,10 +13006,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13006
13006
|
..._chunk2KHUFWTKjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13007
13007
|
] : [];
|
|
13008
13008
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13009
|
-
await
|
|
13009
|
+
await _chunkOLSATEDQjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13010
13010
|
cliAdmission = false;
|
|
13011
13011
|
}
|
|
13012
|
-
const stagedFileInputs = await
|
|
13012
|
+
const stagedFileInputs = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
13013
13013
|
"cli.play_stage_inputs",
|
|
13014
13014
|
{
|
|
13015
13015
|
targetKind: "name",
|
|
@@ -13053,7 +13053,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13053
13053
|
});
|
|
13054
13054
|
if (options.watch) {
|
|
13055
13055
|
progress.phase("starting run");
|
|
13056
|
-
const finalStatus = await
|
|
13056
|
+
const finalStatus = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
13057
13057
|
"cli.play_start_watch",
|
|
13058
13058
|
{ targetKind: "name", playName },
|
|
13059
13059
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13118,7 +13118,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13118
13118
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13119
13119
|
}
|
|
13120
13120
|
progress.phase("starting run");
|
|
13121
|
-
const started = await
|
|
13121
|
+
const started = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
13122
13122
|
"cli.play_start_unwatched",
|
|
13123
13123
|
{ targetKind: "name", playName },
|
|
13124
13124
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _513 => _513.onSubmission]) }).catch(async (error) => {
|
|
@@ -13178,7 +13178,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13178
13178
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13179
13179
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _521 => _521.exec, 'call', _522 => _522(status.runId), 'optionalAccess', _523 => _523[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13180
13180
|
if (!terminal) {
|
|
13181
|
-
|
|
13181
|
+
_chunkYUYDP2EGjs.writeExecutionOutput.call(void 0,
|
|
13182
13182
|
{
|
|
13183
13183
|
id: status.runId,
|
|
13184
13184
|
status: status.status,
|
|
@@ -13258,10 +13258,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13258
13258
|
};
|
|
13259
13259
|
}
|
|
13260
13260
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13261
|
-
const allCollections =
|
|
13261
|
+
const allCollections = _chunkYUYDP2EGjs.outputCollections.call(void 0, data).map(
|
|
13262
13262
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13263
13263
|
);
|
|
13264
|
-
|
|
13264
|
+
_chunkYUYDP2EGjs.writeExecutionOutput.call(void 0,
|
|
13265
13265
|
{
|
|
13266
13266
|
id: status.runId,
|
|
13267
13267
|
status: status.status,
|
|
@@ -13282,7 +13282,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13282
13282
|
}
|
|
13283
13283
|
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;
|
|
13284
13284
|
async function handlePlayRun(args, hooks) {
|
|
13285
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13285
|
+
const parsedOptions = Array.isArray(args) ? _chunkXI47UAVUjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13286
13286
|
const options = parsedOptions.runIdFile ? {
|
|
13287
13287
|
...parsedOptions,
|
|
13288
13288
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13299,7 +13299,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13299
13299
|
JSON.stringify({
|
|
13300
13300
|
version: 1,
|
|
13301
13301
|
admissionState: "submitted_unknown",
|
|
13302
|
-
baseUrl: new (0,
|
|
13302
|
+
baseUrl: new (0, _chunkOKRBGXDIjs.DeeplineClient)().baseUrl,
|
|
13303
13303
|
...intent
|
|
13304
13304
|
})
|
|
13305
13305
|
);
|
|
@@ -13537,7 +13537,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13537
13537
|
);
|
|
13538
13538
|
return `${lines.join("\n")}
|
|
13539
13539
|
|
|
13540
|
-
${
|
|
13540
|
+
${_chunkEOL7PXLWjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13541
13541
|
}
|
|
13542
13542
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13543
13543
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13561,7 +13561,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13561
13561
|
}
|
|
13562
13562
|
}
|
|
13563
13563
|
async function handleRunGet(args) {
|
|
13564
|
-
const selection =
|
|
13564
|
+
const selection = _chunkEOL7PXLWjs.parseJsonFields.call(void 0,
|
|
13565
13565
|
args,
|
|
13566
13566
|
args.includes("--config") ? "config" : "get"
|
|
13567
13567
|
);
|
|
@@ -13574,7 +13574,7 @@ async function handleRunGet(args) {
|
|
|
13574
13574
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13575
13575
|
return 1;
|
|
13576
13576
|
}
|
|
13577
|
-
const client = new (0,
|
|
13577
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
13578
13578
|
const timing = args.includes("--timing");
|
|
13579
13579
|
const web = args.includes("--web");
|
|
13580
13580
|
if (web || args.includes("--web-url")) {
|
|
@@ -13592,8 +13592,8 @@ async function handleRunGet(args) {
|
|
|
13592
13592
|
const dashboardUrl2 = _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13593
13593
|
const runUrl2 = _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
13594
13594
|
if (web) {
|
|
13595
|
-
const opened =
|
|
13596
|
-
|
|
13595
|
+
const opened = _chunkEOL7PXLWjs.openInBrowser.call(void 0, runUrl2);
|
|
13596
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
13597
13597
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
13598
13598
|
{
|
|
13599
13599
|
json: args.includes("--json"),
|
|
@@ -13604,7 +13604,7 @@ async function handleRunGet(args) {
|
|
|
13604
13604
|
);
|
|
13605
13605
|
return 0;
|
|
13606
13606
|
}
|
|
13607
|
-
|
|
13607
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
13608
13608
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
13609
13609
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
13610
13610
|
` }
|
|
@@ -13629,7 +13629,7 @@ async function handleRunGet(args) {
|
|
|
13629
13629
|
"This server does not support recorded configuration reads."
|
|
13630
13630
|
);
|
|
13631
13631
|
}
|
|
13632
|
-
|
|
13632
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
13633
13633
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13634
13634
|
{ json: true, fields: selection.fields }
|
|
13635
13635
|
);
|
|
@@ -13642,7 +13642,7 @@ async function handleRunGet(args) {
|
|
|
13642
13642
|
timing,
|
|
13643
13643
|
() => client.getRunInput(runId)
|
|
13644
13644
|
);
|
|
13645
|
-
|
|
13645
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13646
13646
|
return 0;
|
|
13647
13647
|
}
|
|
13648
13648
|
const full = args.includes("--full");
|
|
@@ -13657,7 +13657,7 @@ async function handleRunGet(args) {
|
|
|
13657
13657
|
failedLogs: args.includes("--log-failed")
|
|
13658
13658
|
})
|
|
13659
13659
|
);
|
|
13660
|
-
if (status.package)
|
|
13660
|
+
if (status.package) _chunkYUYDP2EGjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13661
13661
|
if (!status.package) {
|
|
13662
13662
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13663
13663
|
"runs get",
|
|
@@ -13671,8 +13671,8 @@ async function handleRunGet(args) {
|
|
|
13671
13671
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13672
13672
|
const legacyDashboardUrl = legacyPlayName ? _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13673
13673
|
const legacyRunUrl = legacyPlayName ? _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
13674
|
-
if (
|
|
13675
|
-
|
|
13674
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
13675
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
13676
13676
|
{
|
|
13677
13677
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13678
13678
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -13683,7 +13683,7 @@ async function handleRunGet(args) {
|
|
|
13683
13683
|
} else {
|
|
13684
13684
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13685
13685
|
if (legacyRunUrl)
|
|
13686
|
-
|
|
13686
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
13687
13687
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
13688
13688
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
13689
13689
|
` }
|
|
@@ -13713,11 +13713,11 @@ async function handleRunGet(args) {
|
|
|
13713
13713
|
)
|
|
13714
13714
|
]);
|
|
13715
13715
|
const hitLines = formatRunHitsLines(hits);
|
|
13716
|
-
const json =
|
|
13716
|
+
const json = _chunkEOL7PXLWjs.argsWantJson.call(void 0, args);
|
|
13717
13717
|
const playName = resolveRunPlayName(status, runId);
|
|
13718
13718
|
const dashboardUrl = playName ? _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13719
13719
|
const runUrl = playName ? _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
13720
|
-
|
|
13720
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
13721
13721
|
{
|
|
13722
13722
|
...overview,
|
|
13723
13723
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13822,9 +13822,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13822
13822
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13823
13823
|
return 1;
|
|
13824
13824
|
}
|
|
13825
|
-
const status = await new (0,
|
|
13826
|
-
if (
|
|
13827
|
-
|
|
13825
|
+
const status = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().runs.status(runId);
|
|
13826
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
13827
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13828
13828
|
return 0;
|
|
13829
13829
|
}
|
|
13830
13830
|
if (!status.available) {
|
|
@@ -13890,7 +13890,7 @@ async function handleRunsRerun(args) {
|
|
|
13890
13890
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13891
13891
|
return 1;
|
|
13892
13892
|
}
|
|
13893
|
-
const options = { json:
|
|
13893
|
+
const options = { json: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args) };
|
|
13894
13894
|
for (let index = 0; index < args.length; index += 1) {
|
|
13895
13895
|
if (args[index] === "--idempotency-key") {
|
|
13896
13896
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13956,8 +13956,8 @@ ${usage2}
|
|
|
13956
13956
|
Discover Plays: ${next.discover}
|
|
13957
13957
|
Active runs: ${next.running}`
|
|
13958
13958
|
);
|
|
13959
|
-
if (
|
|
13960
|
-
|
|
13959
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
13960
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
13961
13961
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13962
13962
|
{ json: true }
|
|
13963
13963
|
);
|
|
@@ -13972,7 +13972,7 @@ Active runs: ${next.running}`
|
|
|
13972
13972
|
console.error("--offset requires --play.");
|
|
13973
13973
|
return 1;
|
|
13974
13974
|
}
|
|
13975
|
-
const client = new (0,
|
|
13975
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
13976
13976
|
const page = await withRunReadTiming(
|
|
13977
13977
|
"runs list",
|
|
13978
13978
|
"run inventory",
|
|
@@ -14039,14 +14039,14 @@ Active runs: ${next.running}`
|
|
|
14039
14039
|
return lines2.join("\n");
|
|
14040
14040
|
});
|
|
14041
14041
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14042
|
-
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}${
|
|
14042
|
+
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}${_chunkEOL7PXLWjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14043
14043
|
if (page.hasMore) {
|
|
14044
14044
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14045
14045
|
lines.push(
|
|
14046
14046
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14047
14047
|
);
|
|
14048
14048
|
}
|
|
14049
|
-
|
|
14049
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
14050
14050
|
{
|
|
14051
14051
|
runs,
|
|
14052
14052
|
count: runs.length,
|
|
@@ -14060,7 +14060,7 @@ Active runs: ${next.running}`
|
|
|
14060
14060
|
},
|
|
14061
14061
|
render: { sections: [{ title: "runs", lines }] }
|
|
14062
14062
|
},
|
|
14063
|
-
{ json:
|
|
14063
|
+
{ json: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args) }
|
|
14064
14064
|
);
|
|
14065
14065
|
return 0;
|
|
14066
14066
|
}
|
|
@@ -14090,7 +14090,7 @@ async function handleRunTail(args) {
|
|
|
14090
14090
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14091
14091
|
return 1;
|
|
14092
14092
|
}
|
|
14093
|
-
const parsed =
|
|
14093
|
+
const parsed = _chunkLHMHUA5Djs.parseLogLevel.call(void 0, value);
|
|
14094
14094
|
if (!parsed) {
|
|
14095
14095
|
console.error(
|
|
14096
14096
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14128,9 +14128,9 @@ async function handleRunTail(args) {
|
|
|
14128
14128
|
);
|
|
14129
14129
|
return 1;
|
|
14130
14130
|
}
|
|
14131
|
-
const client = new (0,
|
|
14131
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
14132
14132
|
const jsonLines = args.includes("--jsonl");
|
|
14133
|
-
const jsonOutput = !jsonLines &&
|
|
14133
|
+
const jsonOutput = !jsonLines && _chunkEOL7PXLWjs.argsWantJson.call(void 0, args);
|
|
14134
14134
|
const compact = args.includes("--compact");
|
|
14135
14135
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14136
14136
|
const compactState = {
|
|
@@ -14211,7 +14211,7 @@ async function handleRunLogs(args) {
|
|
|
14211
14211
|
]);
|
|
14212
14212
|
const cursorIndex = args.indexOf("--cursor");
|
|
14213
14213
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14214
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14214
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkLHMHUA5Djs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14215
14215
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14216
14216
|
return handleRunEventSearch(args);
|
|
14217
14217
|
}
|
|
@@ -14245,7 +14245,7 @@ async function handleRunLogs(args) {
|
|
|
14245
14245
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14246
14246
|
return 1;
|
|
14247
14247
|
}
|
|
14248
|
-
const parsed =
|
|
14248
|
+
const parsed = _chunkLHMHUA5Djs.parseLogLevel.call(void 0, value);
|
|
14249
14249
|
if (!parsed) {
|
|
14250
14250
|
console.error(
|
|
14251
14251
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14292,12 +14292,12 @@ async function handleRunLogs(args) {
|
|
|
14292
14292
|
);
|
|
14293
14293
|
return 1;
|
|
14294
14294
|
}
|
|
14295
|
-
const client = new (0,
|
|
14295
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
14296
14296
|
if (outPath) {
|
|
14297
14297
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14298
|
-
const logs = result2.entries.filter((line) =>
|
|
14298
|
+
const logs = result2.entries.filter((line) => _chunkLHMHUA5Djs.logLevelReaches.call(void 0, _chunkLHMHUA5Djs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkLHMHUA5Djs.classifyLogLine.call(void 0, line).line);
|
|
14299
14299
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14300
|
-
|
|
14300
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
14301
14301
|
{
|
|
14302
14302
|
runId: result2.runId,
|
|
14303
14303
|
log_path: outPath,
|
|
@@ -14320,7 +14320,7 @@ async function handleRunLogs(args) {
|
|
|
14320
14320
|
]
|
|
14321
14321
|
}
|
|
14322
14322
|
},
|
|
14323
|
-
{ json:
|
|
14323
|
+
{ json: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args) }
|
|
14324
14324
|
);
|
|
14325
14325
|
return 0;
|
|
14326
14326
|
}
|
|
@@ -14351,7 +14351,7 @@ async function handleRunLogs(args) {
|
|
|
14351
14351
|
}
|
|
14352
14352
|
};
|
|
14353
14353
|
const text = buildRunLogsText(filteredResult);
|
|
14354
|
-
|
|
14354
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
14355
14355
|
{
|
|
14356
14356
|
runId: result.runId,
|
|
14357
14357
|
totalCount: result.totalCount,
|
|
@@ -14375,7 +14375,7 @@ async function handleRunLogs(args) {
|
|
|
14375
14375
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14376
14376
|
},
|
|
14377
14377
|
{
|
|
14378
|
-
json:
|
|
14378
|
+
json: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args),
|
|
14379
14379
|
text
|
|
14380
14380
|
}
|
|
14381
14381
|
);
|
|
@@ -14399,7 +14399,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14399
14399
|
);
|
|
14400
14400
|
}
|
|
14401
14401
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14402
|
-
(entry) =>
|
|
14402
|
+
(entry) => _chunkLHMHUA5Djs.logLevelReaches.call(void 0, _chunkLHMHUA5Djs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14403
14403
|
);
|
|
14404
14404
|
const selected = matching.slice(-limit);
|
|
14405
14405
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14409,7 +14409,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14409
14409
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _556 => _556.at, 'call', _557 => _557(-1), 'optionalAccess', _558 => _558.seq]), () => ( null)),
|
|
14410
14410
|
truncated: result.truncated || olderMatchesExist,
|
|
14411
14411
|
hasMore: olderMatchesExist,
|
|
14412
|
-
nextCursor: olderMatchesExist ?
|
|
14412
|
+
nextCursor: olderMatchesExist ? _chunkLHMHUA5Djs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14413
14413
|
};
|
|
14414
14414
|
}
|
|
14415
14415
|
async function handleRunEventSearch(args) {
|
|
@@ -14476,7 +14476,7 @@ ${usage2}`);
|
|
|
14476
14476
|
namespace,
|
|
14477
14477
|
...backend ? { backend } : {}
|
|
14478
14478
|
} : void 0;
|
|
14479
|
-
const client = new (0,
|
|
14479
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
14480
14480
|
const result = await client.runs.searchEvents({
|
|
14481
14481
|
...runId ? { runId } : {},
|
|
14482
14482
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14548,7 +14548,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14548
14548
|
"--limit",
|
|
14549
14549
|
String(limit)
|
|
14550
14550
|
].join(" ") : null;
|
|
14551
|
-
|
|
14551
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
14552
14552
|
{
|
|
14553
14553
|
events,
|
|
14554
14554
|
nextCursor: result.nextCursor,
|
|
@@ -14559,14 +14559,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14559
14559
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14560
14560
|
},
|
|
14561
14561
|
{
|
|
14562
|
-
json:
|
|
14562
|
+
json: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args),
|
|
14563
14563
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14564
14564
|
}
|
|
14565
14565
|
);
|
|
14566
14566
|
return 0;
|
|
14567
14567
|
}
|
|
14568
14568
|
function buildRunLogsText(result) {
|
|
14569
|
-
const lines = result.entries.map((line) =>
|
|
14569
|
+
const lines = result.entries.map((line) => _chunkLHMHUA5Djs.classifyLogLine.call(void 0, line).line);
|
|
14570
14570
|
if (result.warning) {
|
|
14571
14571
|
if (lines.length > 0) lines.push("");
|
|
14572
14572
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14600,7 +14600,7 @@ async function handleRunStop(args) {
|
|
|
14600
14600
|
reason = args[++index];
|
|
14601
14601
|
}
|
|
14602
14602
|
}
|
|
14603
|
-
const client = new (0,
|
|
14603
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
14604
14604
|
const result = await client.runs.stop(runId, { reason });
|
|
14605
14605
|
const state = resolveRunStopState(result);
|
|
14606
14606
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14615,7 +14615,7 @@ async function handleRunStop(args) {
|
|
|
14615
14615
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14616
14616
|
`inspect: deepline runs get ${runId} --full`
|
|
14617
14617
|
];
|
|
14618
|
-
|
|
14618
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
14619
14619
|
{
|
|
14620
14620
|
...cancelling,
|
|
14621
14621
|
state,
|
|
@@ -14630,7 +14630,7 @@ async function handleRunStop(args) {
|
|
|
14630
14630
|
]
|
|
14631
14631
|
}
|
|
14632
14632
|
},
|
|
14633
|
-
{ json:
|
|
14633
|
+
{ json: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args) }
|
|
14634
14634
|
);
|
|
14635
14635
|
return 0;
|
|
14636
14636
|
}
|
|
@@ -14647,7 +14647,7 @@ async function handleRunStop(args) {
|
|
|
14647
14647
|
];
|
|
14648
14648
|
process.stderr.write(`${lines2.join("\n")}
|
|
14649
14649
|
`);
|
|
14650
|
-
|
|
14650
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
14651
14651
|
{
|
|
14652
14652
|
...result,
|
|
14653
14653
|
render: {
|
|
@@ -14662,7 +14662,7 @@ async function handleRunStop(args) {
|
|
|
14662
14662
|
]
|
|
14663
14663
|
}
|
|
14664
14664
|
},
|
|
14665
|
-
{ json:
|
|
14665
|
+
{ json: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args) }
|
|
14666
14666
|
);
|
|
14667
14667
|
return 1;
|
|
14668
14668
|
}
|
|
@@ -14673,12 +14673,12 @@ async function handleRunStop(args) {
|
|
|
14673
14673
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14674
14674
|
] : []
|
|
14675
14675
|
];
|
|
14676
|
-
|
|
14676
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
14677
14677
|
{
|
|
14678
14678
|
...result,
|
|
14679
14679
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14680
14680
|
},
|
|
14681
|
-
{ json:
|
|
14681
|
+
{ json: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args) }
|
|
14682
14682
|
);
|
|
14683
14683
|
return 0;
|
|
14684
14684
|
}
|
|
@@ -14728,18 +14728,18 @@ async function handleRunStopAll(args) {
|
|
|
14728
14728
|
reason = args[++index];
|
|
14729
14729
|
}
|
|
14730
14730
|
}
|
|
14731
|
-
const client = new (0,
|
|
14731
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
14732
14732
|
if (dryRun) {
|
|
14733
14733
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14734
14734
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14735
|
-
|
|
14735
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
14736
14736
|
{
|
|
14737
14737
|
...result2,
|
|
14738
14738
|
render: {
|
|
14739
14739
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14740
14740
|
}
|
|
14741
14741
|
},
|
|
14742
|
-
{ json:
|
|
14742
|
+
{ json: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14743
14743
|
` }
|
|
14744
14744
|
);
|
|
14745
14745
|
return 0;
|
|
@@ -14752,17 +14752,17 @@ async function handleRunStopAll(args) {
|
|
|
14752
14752
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14753
14753
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14754
14754
|
];
|
|
14755
|
-
|
|
14755
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
14756
14756
|
{
|
|
14757
14757
|
...result,
|
|
14758
14758
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14759
14759
|
},
|
|
14760
|
-
{ json:
|
|
14760
|
+
{ json: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args) }
|
|
14761
14761
|
);
|
|
14762
14762
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14763
14763
|
}
|
|
14764
14764
|
async function handleRunExport(args) {
|
|
14765
|
-
const selection =
|
|
14765
|
+
const selection = _chunkEOL7PXLWjs.parseJsonFields.call(void 0, args, "export");
|
|
14766
14766
|
args = selection.args;
|
|
14767
14767
|
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]";
|
|
14768
14768
|
let runId;
|
|
@@ -14833,17 +14833,17 @@ async function handleRunExport(args) {
|
|
|
14833
14833
|
"INVALID_ARGUMENT"
|
|
14834
14834
|
);
|
|
14835
14835
|
}
|
|
14836
|
-
const client = new (0,
|
|
14836
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
14837
14837
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14838
14838
|
assertRunExportStatusIdentity(status, runId);
|
|
14839
14839
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14840
|
-
const progress =
|
|
14840
|
+
const progress = _chunkC7A44BZ7js.createCliProgress.call(void 0, !_chunkEOL7PXLWjs.argsWantJson.call(void 0, args));
|
|
14841
14841
|
try {
|
|
14842
14842
|
await waitForPlayCompletionByWatch({
|
|
14843
14843
|
client,
|
|
14844
14844
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14845
14845
|
workflowId: runId,
|
|
14846
|
-
jsonOutput:
|
|
14846
|
+
jsonOutput: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args),
|
|
14847
14847
|
emitLogs: false,
|
|
14848
14848
|
waitTimeoutMs,
|
|
14849
14849
|
startedAt: Date.now(),
|
|
@@ -14911,7 +14911,7 @@ async function handleRunExport(args) {
|
|
|
14911
14911
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _572 => _572.rowsInfo, 'access', _573 => _573.totalRows]), () => ( null)),
|
|
14912
14912
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14913
14913
|
...rowFailures ? { rowFailures } : {},
|
|
14914
|
-
columns:
|
|
14914
|
+
columns: _chunkYUYDP2EGjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _574 => _574.rowsInfo, 'access', _575 => _575.columns]), () => ( []))),
|
|
14915
14915
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14916
14916
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14917
14917
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -14945,8 +14945,8 @@ async function handleRunExport(args) {
|
|
|
14945
14945
|
"utf-8"
|
|
14946
14946
|
);
|
|
14947
14947
|
}
|
|
14948
|
-
|
|
14949
|
-
json:
|
|
14948
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, payload, {
|
|
14949
|
+
json: _chunkEOL7PXLWjs.argsWantJson.call(void 0, args),
|
|
14950
14950
|
fields: selection.fields,
|
|
14951
14951
|
text: `${lines.join("\n")}
|
|
14952
14952
|
`
|
|
@@ -14980,10 +14980,10 @@ async function handlePlayGet(args) {
|
|
|
14980
14980
|
);
|
|
14981
14981
|
return 2;
|
|
14982
14982
|
}
|
|
14983
|
-
const client = new (0,
|
|
14983
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
14984
14984
|
const explicitJson = args.includes("--json");
|
|
14985
14985
|
const sourceOutput = args.includes("--source");
|
|
14986
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14986
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkEOL7PXLWjs.argsWantJson.call(void 0, args);
|
|
14987
14987
|
const requestedRevisionFlags = [
|
|
14988
14988
|
args.includes("--working"),
|
|
14989
14989
|
args.includes("--live"),
|
|
@@ -15046,7 +15046,7 @@ async function handlePlayGet(args) {
|
|
|
15046
15046
|
}
|
|
15047
15047
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15048
15048
|
if (jsonOutput) {
|
|
15049
|
-
|
|
15049
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, {
|
|
15050
15050
|
...detail,
|
|
15051
15051
|
...materializedFile ? {
|
|
15052
15052
|
message: loadedMessage,
|
|
@@ -15138,8 +15138,8 @@ async function handlePlayVersions(args) {
|
|
|
15138
15138
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15139
15139
|
return 1;
|
|
15140
15140
|
}
|
|
15141
|
-
const client = new (0,
|
|
15142
|
-
const jsonOutput =
|
|
15141
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
15142
|
+
const jsonOutput = _chunkEOL7PXLWjs.argsWantJson.call(void 0, args);
|
|
15143
15143
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15144
15144
|
command: "versions"
|
|
15145
15145
|
});
|
|
@@ -15147,7 +15147,7 @@ async function handlePlayVersions(args) {
|
|
|
15147
15147
|
parseReferencedPlayTarget(playName).playName
|
|
15148
15148
|
);
|
|
15149
15149
|
if (jsonOutput) {
|
|
15150
|
-
|
|
15150
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, { versions });
|
|
15151
15151
|
return 0;
|
|
15152
15152
|
}
|
|
15153
15153
|
if (versions.length === 0) {
|
|
@@ -15190,8 +15190,8 @@ async function handlePlayCost(args) {
|
|
|
15190
15190
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
15191
15191
|
return 2;
|
|
15192
15192
|
}
|
|
15193
|
-
const result = await new (0,
|
|
15194
|
-
if (
|
|
15193
|
+
const result = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
15194
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
15195
15195
|
else
|
|
15196
15196
|
console.log(
|
|
15197
15197
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -15199,9 +15199,9 @@ async function handlePlayCost(args) {
|
|
|
15199
15199
|
return 0;
|
|
15200
15200
|
}
|
|
15201
15201
|
async function handlePlayList(args) {
|
|
15202
|
-
const jsonOutput =
|
|
15202
|
+
const jsonOutput = _chunkEOL7PXLWjs.argsWantJson.call(void 0, args);
|
|
15203
15203
|
const showCost = args.includes("--show-cost");
|
|
15204
|
-
const client = new (0,
|
|
15204
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
15205
15205
|
const categoriesIndex = args.indexOf("--categories");
|
|
15206
15206
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _595 => _595[categoriesIndex + 1], 'optionalAccess', _596 => _596.trim, 'call', _597 => _597()]) : void 0;
|
|
15207
15207
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15299,7 +15299,7 @@ async function handlePlayList(args) {
|
|
|
15299
15299
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15300
15300
|
lines.push(`Next page: ${nextPage}`);
|
|
15301
15301
|
}
|
|
15302
|
-
|
|
15302
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
15303
15303
|
{
|
|
15304
15304
|
plays,
|
|
15305
15305
|
count: plays.length,
|
|
@@ -15317,7 +15317,7 @@ async function handlePlayList(args) {
|
|
|
15317
15317
|
}
|
|
15318
15318
|
async function handlePlayPin(args, pinned) {
|
|
15319
15319
|
const target = _optionalChain([args, 'access', _606 => _606.find, 'call', _607 => _607((arg) => !arg.startsWith("-")), 'optionalAccess', _608 => _608.trim, 'call', _609 => _609()]);
|
|
15320
|
-
const jsonOutput =
|
|
15320
|
+
const jsonOutput = _chunkEOL7PXLWjs.argsWantJson.call(void 0, args);
|
|
15321
15321
|
const dryRun = args.includes("--dry-run");
|
|
15322
15322
|
if (!target) {
|
|
15323
15323
|
console.error(
|
|
@@ -15335,11 +15335,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15335
15335
|
const name = parsedTarget.playName;
|
|
15336
15336
|
const plan = { name, pinned, dryRun };
|
|
15337
15337
|
if (dryRun) {
|
|
15338
|
-
|
|
15338
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, plan);
|
|
15339
15339
|
return 0;
|
|
15340
15340
|
}
|
|
15341
|
-
const result = await new (0,
|
|
15342
|
-
if (jsonOutput)
|
|
15341
|
+
const result = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15342
|
+
if (jsonOutput) _chunkEOL7PXLWjs.printCompactJson.call(void 0, result);
|
|
15343
15343
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15344
15344
|
return 0;
|
|
15345
15345
|
}
|
|
@@ -15465,12 +15465,12 @@ async function handlePlayGrep(args) {
|
|
|
15465
15465
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15466
15466
|
return 1;
|
|
15467
15467
|
}
|
|
15468
|
-
const client = new (0,
|
|
15468
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
15469
15469
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15470
15470
|
summarizePlayGrepResult
|
|
15471
15471
|
);
|
|
15472
|
-
if (
|
|
15473
|
-
|
|
15472
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
15473
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, {
|
|
15474
15474
|
plays: results,
|
|
15475
15475
|
count: results.length,
|
|
15476
15476
|
query,
|
|
@@ -15493,7 +15493,7 @@ async function handlePlayGrep(args) {
|
|
|
15493
15493
|
return 0;
|
|
15494
15494
|
}
|
|
15495
15495
|
async function handlePlayDescribe(args) {
|
|
15496
|
-
const selection =
|
|
15496
|
+
const selection = _chunkEOL7PXLWjs.parseJsonFields.call(void 0, args, "describe");
|
|
15497
15497
|
args = selection.args;
|
|
15498
15498
|
const playName = args[0];
|
|
15499
15499
|
if (!playName) {
|
|
@@ -15527,8 +15527,8 @@ async function handlePlayDescribe(args) {
|
|
|
15527
15527
|
`deepline plays check ${playName}`,
|
|
15528
15528
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15529
15529
|
];
|
|
15530
|
-
if (
|
|
15531
|
-
|
|
15530
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
15531
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, {
|
|
15532
15532
|
ok: false,
|
|
15533
15533
|
error: { message },
|
|
15534
15534
|
next
|
|
@@ -15542,7 +15542,7 @@ async function handlePlayDescribe(args) {
|
|
|
15542
15542
|
}
|
|
15543
15543
|
return 2;
|
|
15544
15544
|
}
|
|
15545
|
-
const client = new (0,
|
|
15545
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
15546
15546
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15547
15547
|
command: "describe"
|
|
15548
15548
|
});
|
|
@@ -15552,9 +15552,9 @@ async function handlePlayDescribe(args) {
|
|
|
15552
15552
|
compact: args.includes("--compact")
|
|
15553
15553
|
}
|
|
15554
15554
|
);
|
|
15555
|
-
if (
|
|
15556
|
-
if (selection.fields)
|
|
15557
|
-
else
|
|
15555
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
15556
|
+
if (selection.fields) _chunkEOL7PXLWjs.printJson.call(void 0, play, selection.fields);
|
|
15557
|
+
else _chunkEOL7PXLWjs.printCompactJson.call(void 0, play);
|
|
15558
15558
|
return 0;
|
|
15559
15559
|
}
|
|
15560
15560
|
printPlayDescription(play);
|
|
@@ -15576,7 +15576,7 @@ async function handlePlaySave(args) {
|
|
|
15576
15576
|
}
|
|
15577
15577
|
let graph;
|
|
15578
15578
|
try {
|
|
15579
|
-
graph = await
|
|
15579
|
+
graph = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
15580
15580
|
"cli.play_save_bundle_graph",
|
|
15581
15581
|
{ targetKind: "file" },
|
|
15582
15582
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15598,7 +15598,7 @@ async function handlePlaySave(args) {
|
|
|
15598
15598
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15599
15599
|
};
|
|
15600
15600
|
if (options.jsonOutput) {
|
|
15601
|
-
|
|
15601
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, result);
|
|
15602
15602
|
} else {
|
|
15603
15603
|
console.error(result.message);
|
|
15604
15604
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15620,7 +15620,7 @@ async function handlePlaySave(args) {
|
|
|
15620
15620
|
};
|
|
15621
15621
|
if (options.dryRun) {
|
|
15622
15622
|
if (options.jsonOutput) {
|
|
15623
|
-
|
|
15623
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, dryRun);
|
|
15624
15624
|
} else {
|
|
15625
15625
|
console.log(`Dry run: ${playName}`);
|
|
15626
15626
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15629,14 +15629,14 @@ async function handlePlaySave(args) {
|
|
|
15629
15629
|
}
|
|
15630
15630
|
return 0;
|
|
15631
15631
|
}
|
|
15632
|
-
const client = new (0,
|
|
15632
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
15633
15633
|
try {
|
|
15634
|
-
await
|
|
15634
|
+
await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
15635
15635
|
"cli.play_save_compile_manifests",
|
|
15636
15636
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15637
15637
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15638
15638
|
);
|
|
15639
|
-
const saved = await
|
|
15639
|
+
const saved = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
15640
15640
|
"cli.play_save_register_draft",
|
|
15641
15641
|
{ targetKind: "file", playName, artifactHash },
|
|
15642
15642
|
() => client.registerPlayArtifact({
|
|
@@ -15665,7 +15665,7 @@ async function handlePlaySave(args) {
|
|
|
15665
15665
|
}
|
|
15666
15666
|
};
|
|
15667
15667
|
if (options.jsonOutput) {
|
|
15668
|
-
|
|
15668
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, result);
|
|
15669
15669
|
} else {
|
|
15670
15670
|
console.log(
|
|
15671
15671
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15691,7 +15691,7 @@ async function handlePlayPublish(args) {
|
|
|
15691
15691
|
}
|
|
15692
15692
|
const { target: playName, useLatest } = options;
|
|
15693
15693
|
let revisionId = options.revisionId;
|
|
15694
|
-
const client = new (0,
|
|
15694
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
15695
15695
|
if (isFileTarget(playName)) {
|
|
15696
15696
|
if (revisionId || useLatest) {
|
|
15697
15697
|
console.error(
|
|
@@ -15701,7 +15701,7 @@ async function handlePlayPublish(args) {
|
|
|
15701
15701
|
}
|
|
15702
15702
|
let graph;
|
|
15703
15703
|
try {
|
|
15704
|
-
graph = await
|
|
15704
|
+
graph = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
15705
15705
|
"cli.play_publish_bundle_graph",
|
|
15706
15706
|
{ targetKind: "file" },
|
|
15707
15707
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15723,7 +15723,7 @@ async function handlePlayPublish(args) {
|
|
|
15723
15723
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15724
15724
|
};
|
|
15725
15725
|
if (options.jsonOutput) {
|
|
15726
|
-
|
|
15726
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, result3);
|
|
15727
15727
|
} else {
|
|
15728
15728
|
console.error(result3.message);
|
|
15729
15729
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15746,7 +15746,7 @@ async function handlePlayPublish(args) {
|
|
|
15746
15746
|
};
|
|
15747
15747
|
if (options.dryRun) {
|
|
15748
15748
|
if (options.jsonOutput) {
|
|
15749
|
-
|
|
15749
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, dryRun);
|
|
15750
15750
|
} else {
|
|
15751
15751
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15752
15752
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15765,12 +15765,12 @@ async function handlePlayPublish(args) {
|
|
|
15765
15765
|
}
|
|
15766
15766
|
}
|
|
15767
15767
|
try {
|
|
15768
|
-
await
|
|
15768
|
+
await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
15769
15769
|
"cli.play_publish_compile_manifests",
|
|
15770
15770
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15771
15771
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15772
15772
|
);
|
|
15773
|
-
await
|
|
15773
|
+
await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
15774
15774
|
"cli.play_publish_imports",
|
|
15775
15775
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15776
15776
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15779,7 +15779,7 @@ async function handlePlayPublish(args) {
|
|
|
15779
15779
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15780
15780
|
return 1;
|
|
15781
15781
|
}
|
|
15782
|
-
const published = await
|
|
15782
|
+
const published = await _chunkRGL2YGJZjs.traceCliSpan.call(void 0,
|
|
15783
15783
|
"cli.play_publish_register_root",
|
|
15784
15784
|
{
|
|
15785
15785
|
targetKind: "file",
|
|
@@ -15814,7 +15814,7 @@ async function handlePlayPublish(args) {
|
|
|
15814
15814
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15815
15815
|
};
|
|
15816
15816
|
if (options.jsonOutput) {
|
|
15817
|
-
|
|
15817
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, result2);
|
|
15818
15818
|
} else {
|
|
15819
15819
|
printPublishReceipt({
|
|
15820
15820
|
name: rootPlayName,
|
|
@@ -15845,7 +15845,7 @@ async function handlePlayPublish(args) {
|
|
|
15845
15845
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15846
15846
|
latest: useLatest
|
|
15847
15847
|
};
|
|
15848
|
-
|
|
15848
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, result2);
|
|
15849
15849
|
return 0;
|
|
15850
15850
|
}
|
|
15851
15851
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15869,7 +15869,7 @@ async function handlePlayPublish(args) {
|
|
|
15869
15869
|
revisionId ? { revisionId } : {}
|
|
15870
15870
|
);
|
|
15871
15871
|
if (options.jsonOutput) {
|
|
15872
|
-
|
|
15872
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, result);
|
|
15873
15873
|
} else {
|
|
15874
15874
|
printPublishReceipt({
|
|
15875
15875
|
name: result.name,
|
|
@@ -15909,7 +15909,7 @@ async function handlePlayDelete(args) {
|
|
|
15909
15909
|
);
|
|
15910
15910
|
return 2;
|
|
15911
15911
|
}
|
|
15912
|
-
const client = new (0,
|
|
15912
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
15913
15913
|
let detail;
|
|
15914
15914
|
try {
|
|
15915
15915
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15933,8 +15933,8 @@ async function handlePlayDelete(args) {
|
|
|
15933
15933
|
name: resolvedName,
|
|
15934
15934
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15935
15935
|
};
|
|
15936
|
-
if (
|
|
15937
|
-
|
|
15936
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
15937
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, result2);
|
|
15938
15938
|
} else {
|
|
15939
15939
|
process.stdout.write(
|
|
15940
15940
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15944,8 +15944,8 @@ async function handlePlayDelete(args) {
|
|
|
15944
15944
|
return 0;
|
|
15945
15945
|
}
|
|
15946
15946
|
const result = await client.deletePlay(resolvedName);
|
|
15947
|
-
if (
|
|
15948
|
-
|
|
15947
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
15948
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, result);
|
|
15949
15949
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15950
15950
|
}
|
|
15951
15951
|
if (result.alreadyArchived) {
|
|
@@ -15984,13 +15984,13 @@ async function handlePlayRestore(args) {
|
|
|
15984
15984
|
);
|
|
15985
15985
|
return 2;
|
|
15986
15986
|
}
|
|
15987
|
-
const client = new (0,
|
|
15987
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
15988
15988
|
try {
|
|
15989
15989
|
const result = await client.restorePlay(
|
|
15990
15990
|
parseReferencedPlayTarget(playName).playName
|
|
15991
15991
|
);
|
|
15992
|
-
if (
|
|
15993
|
-
|
|
15992
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
15993
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, result);
|
|
15994
15994
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
15995
15995
|
}
|
|
15996
15996
|
if (result.alreadyActive) {
|
|
@@ -16117,21 +16117,21 @@ Common commands:
|
|
|
16117
16117
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16118
16118
|
}
|
|
16119
16119
|
};
|
|
16120
|
-
|
|
16120
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0, result2, {
|
|
16121
16121
|
json: options.json,
|
|
16122
16122
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16123
16123
|
`
|
|
16124
16124
|
});
|
|
16125
16125
|
return;
|
|
16126
16126
|
}
|
|
16127
|
-
const client = new (0,
|
|
16127
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
16128
16128
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16129
16129
|
throw new Error(
|
|
16130
16130
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16131
16131
|
);
|
|
16132
16132
|
}
|
|
16133
16133
|
const result = await client.startPlayRun(saved.request);
|
|
16134
|
-
|
|
16134
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
16135
16135
|
{ ...result },
|
|
16136
16136
|
{
|
|
16137
16137
|
json: options.json,
|
|
@@ -16167,7 +16167,7 @@ Examples:
|
|
|
16167
16167
|
).action(async (target, options) => {
|
|
16168
16168
|
process.exitCode = await handlePlayCheck([
|
|
16169
16169
|
target,
|
|
16170
|
-
...
|
|
16170
|
+
..._chunkEOL7PXLWjs.jsonFieldArgs.call(void 0, options.json),
|
|
16171
16171
|
...options.full ? ["--full"] : []
|
|
16172
16172
|
]);
|
|
16173
16173
|
});
|
|
@@ -16214,10 +16214,10 @@ Notes:
|
|
|
16214
16214
|
with a changed input is refused with a 409 conflict. Use one stable key per
|
|
16215
16215
|
exact intent. Without a key, each invocation starts a new run.
|
|
16216
16216
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16217
|
-
resident-work ceiling. Default: ${
|
|
16217
|
+
resident-work ceiling. Default: ${_chunkXI47UAVUjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkXI47UAVUjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16218
16218
|
Provider pacing and sandbox memory limits still apply.
|
|
16219
16219
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16220
|
-
resolvers. Accepted range: 1-${
|
|
16220
|
+
resolvers. Accepted range: 1-${_chunkXI47UAVUjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16221
16221
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16222
16222
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16223
16223
|
Tool calls that would exceed it are denied.
|
|
@@ -16342,10 +16342,10 @@ Examples:
|
|
|
16342
16342
|
).hideHelp()
|
|
16343
16343
|
).option(
|
|
16344
16344
|
"--max-concurrent-external-calls <count>",
|
|
16345
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16345
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkXI47UAVUjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkXI47UAVUjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16346
16346
|
).option(
|
|
16347
16347
|
"--max-concurrent-rows <count>",
|
|
16348
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16348
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkXI47UAVUjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16349
16349
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
|
|
16350
16350
|
"--debug-map-latency",
|
|
16351
16351
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16440,14 +16440,14 @@ JSON field selection:
|
|
|
16440
16440
|
passthroughArgs.shift();
|
|
16441
16441
|
}
|
|
16442
16442
|
const exitCode = await handlePlayRun(
|
|
16443
|
-
|
|
16443
|
+
_chunkXI47UAVUjs.resolvePlayRunCliOptions.call(void 0,
|
|
16444
16444
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16445
16445
|
options,
|
|
16446
16446
|
passthroughArgs,
|
|
16447
|
-
|
|
16447
|
+
_chunkRGL2YGJZjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16448
16448
|
)
|
|
16449
16449
|
);
|
|
16450
|
-
|
|
16450
|
+
_chunkRGL2YGJZjs.recordCliTrace.call(void 0, {
|
|
16451
16451
|
phase: "cli.play_command_exit",
|
|
16452
16452
|
exitCode
|
|
16453
16453
|
});
|
|
@@ -16496,9 +16496,9 @@ Examples:
|
|
|
16496
16496
|
const limit = Number(options.historyLimit);
|
|
16497
16497
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16498
16498
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16499
|
-
const client = new (0,
|
|
16499
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
16500
16500
|
if (options.binding) {
|
|
16501
|
-
|
|
16501
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0,
|
|
16502
16502
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16503
16503
|
);
|
|
16504
16504
|
return;
|
|
@@ -16506,7 +16506,7 @@ Examples:
|
|
|
16506
16506
|
const result = await client.listPlayTriggerInventory({
|
|
16507
16507
|
cursor: options.cursor
|
|
16508
16508
|
});
|
|
16509
|
-
|
|
16509
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, {
|
|
16510
16510
|
...result,
|
|
16511
16511
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16512
16512
|
});
|
|
@@ -16565,7 +16565,7 @@ Examples:
|
|
|
16565
16565
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16566
16566
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16567
16567
|
}
|
|
16568
|
-
const result = await new (0,
|
|
16568
|
+
const result = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().getPlaysActivity({
|
|
16569
16569
|
timeZone: options.timeZone,
|
|
16570
16570
|
days,
|
|
16571
16571
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16579,7 +16579,7 @@ Examples:
|
|
|
16579
16579
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16580
16580
|
);
|
|
16581
16581
|
}
|
|
16582
|
-
|
|
16582
|
+
_chunkEOL7PXLWjs.printCommandEnvelope.call(void 0,
|
|
16583
16583
|
{ ...result },
|
|
16584
16584
|
{
|
|
16585
16585
|
json: Boolean(options.json),
|
|
@@ -16608,7 +16608,7 @@ Examples:
|
|
|
16608
16608
|
false
|
|
16609
16609
|
);
|
|
16610
16610
|
});
|
|
16611
|
-
|
|
16611
|
+
_chunk3L2DNG5Xjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16612
16612
|
play,
|
|
16613
16613
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16614
16614
|
);
|
|
@@ -16649,9 +16649,9 @@ Examples:
|
|
|
16649
16649
|
"--json [fields]",
|
|
16650
16650
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16651
16651
|
);
|
|
16652
|
-
|
|
16652
|
+
_chunkYUYDP2EGjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16653
16653
|
async (target, options) => {
|
|
16654
|
-
const ownView = () => handlePlayDescribe(
|
|
16654
|
+
const ownView = () => handlePlayDescribe(_chunkEOL7PXLWjs.describeArgs.call(void 0, target, options));
|
|
16655
16655
|
const [flagText] = [options.json].filter(
|
|
16656
16656
|
(value) => typeof value === "string"
|
|
16657
16657
|
);
|
|
@@ -16662,7 +16662,7 @@ Examples:
|
|
|
16662
16662
|
process.exitCode = await ownView();
|
|
16663
16663
|
return;
|
|
16664
16664
|
}
|
|
16665
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16665
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-MNJVJHRE.js")));
|
|
16666
16666
|
process.exitCode = await describeAnything(
|
|
16667
16667
|
name,
|
|
16668
16668
|
{
|
|
@@ -16780,7 +16780,7 @@ Examples:
|
|
|
16780
16780
|
deepline plays deployments <deployment-id>
|
|
16781
16781
|
`
|
|
16782
16782
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16783
|
-
async (id, options) => id ?
|
|
16783
|
+
async (id, options) => id ? _chunk66YLAQ2Xjs.handleDeploymentGet.call(void 0, id, options) : _chunk66YLAQ2Xjs.handleDeploymentsList.call(void 0, options)
|
|
16784
16784
|
);
|
|
16785
16785
|
addPublishHelp(
|
|
16786
16786
|
play.command("publish <target>").description(
|
|
@@ -16915,14 +16915,14 @@ Examples:
|
|
|
16915
16915
|
const limit = Number(options.limit);
|
|
16916
16916
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16917
16917
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16918
|
-
const result = await new (0,
|
|
16918
|
+
const result = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().runs.rowHistory({
|
|
16919
16919
|
playName: options.play,
|
|
16920
16920
|
runId,
|
|
16921
16921
|
tableNamespace: options.dataset,
|
|
16922
16922
|
limit,
|
|
16923
16923
|
cursor: options.cursor
|
|
16924
16924
|
});
|
|
16925
|
-
|
|
16925
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, {
|
|
16926
16926
|
...result,
|
|
16927
16927
|
...result.nextCursor ? {
|
|
16928
16928
|
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`
|
|
@@ -17000,7 +17000,7 @@ Examples:
|
|
|
17000
17000
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
17001
17001
|
).action(async (runId, options) => {
|
|
17002
17002
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
17003
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
17003
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-OZG3V77R.js")));
|
|
17004
17004
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
17005
17005
|
receiptJson: options.json !== void 0
|
|
17006
17006
|
});
|
|
@@ -17008,7 +17008,7 @@ Examples:
|
|
|
17008
17008
|
}
|
|
17009
17009
|
process.exitCode = await handleRunGet([
|
|
17010
17010
|
runId,
|
|
17011
|
-
...
|
|
17011
|
+
..._chunkEOL7PXLWjs.jsonFieldArgs.call(void 0, options.json),
|
|
17012
17012
|
...options.web ? ["--web"] : [],
|
|
17013
17013
|
...options.webUrl ? ["--web-url"] : [],
|
|
17014
17014
|
...options.full ? ["--full"] : [],
|
|
@@ -17328,7 +17328,7 @@ Examples:
|
|
|
17328
17328
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17329
17329
|
...options.wait ? ["--wait"] : [],
|
|
17330
17330
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17331
|
-
...
|
|
17331
|
+
..._chunkEOL7PXLWjs.jsonFieldArgs.call(void 0, options.json)
|
|
17332
17332
|
]);
|
|
17333
17333
|
});
|
|
17334
17334
|
const share = play.command("share").description(
|
|
@@ -17494,10 +17494,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17494
17494
|
return 2;
|
|
17495
17495
|
}
|
|
17496
17496
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17497
|
-
const status = await new (0,
|
|
17497
|
+
const status = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().getSharePage(name);
|
|
17498
17498
|
const outputStatus = shareStatusForOutput(status);
|
|
17499
|
-
if (
|
|
17500
|
-
|
|
17499
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
17500
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, outputStatus);
|
|
17501
17501
|
return 0;
|
|
17502
17502
|
}
|
|
17503
17503
|
if (!outputStatus.share) {
|
|
@@ -17536,7 +17536,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17536
17536
|
return 2;
|
|
17537
17537
|
}
|
|
17538
17538
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17539
|
-
const client = new (0,
|
|
17539
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
17540
17540
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17541
17541
|
let resolvedVersion;
|
|
17542
17542
|
if (!revisionId) {
|
|
@@ -17567,8 +17567,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17567
17567
|
);
|
|
17568
17568
|
if (!hasCompleted) {
|
|
17569
17569
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17570
|
-
if (
|
|
17571
|
-
|
|
17570
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
17571
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, {
|
|
17572
17572
|
ok: false,
|
|
17573
17573
|
code: "NO_SUCCESSFUL_RUN",
|
|
17574
17574
|
message,
|
|
@@ -17592,8 +17592,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17592
17592
|
};
|
|
17593
17593
|
if (args.includes("--dry-run")) {
|
|
17594
17594
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17595
|
-
if (
|
|
17596
|
-
|
|
17595
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
17596
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, plan);
|
|
17597
17597
|
} else {
|
|
17598
17598
|
console.log(
|
|
17599
17599
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17603,8 +17603,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17603
17603
|
}
|
|
17604
17604
|
const status = await client.publishSharePage(name, request);
|
|
17605
17605
|
const outputStatus = shareStatusForOutput(status);
|
|
17606
|
-
if (
|
|
17607
|
-
|
|
17606
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
17607
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, outputStatus);
|
|
17608
17608
|
return 0;
|
|
17609
17609
|
}
|
|
17610
17610
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17635,9 +17635,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17635
17635
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17636
17636
|
...seoIndexing ? { seoIndexing } : {}
|
|
17637
17637
|
};
|
|
17638
|
-
const status = await new (0,
|
|
17639
|
-
if (
|
|
17640
|
-
|
|
17638
|
+
const status = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().updateSharePage(name, request);
|
|
17639
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
17640
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, status);
|
|
17641
17641
|
return 0;
|
|
17642
17642
|
}
|
|
17643
17643
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17652,7 +17652,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17652
17652
|
return 2;
|
|
17653
17653
|
}
|
|
17654
17654
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17655
|
-
const client = new (0,
|
|
17655
|
+
const client = new (0, _chunkOKRBGXDIjs.DeeplineClient)();
|
|
17656
17656
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17657
17657
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17658
17658
|
if (!revisionId && versionFlag) {
|
|
@@ -17669,8 +17669,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17669
17669
|
revisionId ? { revisionId } : {}
|
|
17670
17670
|
);
|
|
17671
17671
|
const outputStatus = shareStatusForOutput(status);
|
|
17672
|
-
if (
|
|
17673
|
-
|
|
17672
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
17673
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, outputStatus);
|
|
17674
17674
|
return 0;
|
|
17675
17675
|
}
|
|
17676
17676
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17695,9 +17695,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17695
17695
|
return 2;
|
|
17696
17696
|
}
|
|
17697
17697
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17698
|
-
const status = await new (0,
|
|
17699
|
-
if (
|
|
17700
|
-
|
|
17698
|
+
const status = await new (0, _chunkOKRBGXDIjs.DeeplineClient)().unpublishSharePage(name);
|
|
17699
|
+
if (_chunkEOL7PXLWjs.argsWantJson.call(void 0, args)) {
|
|
17700
|
+
_chunkEOL7PXLWjs.printCompactJson.call(void 0, status);
|
|
17701
17701
|
return 0;
|
|
17702
17702
|
}
|
|
17703
17703
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17775,4 +17775,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17775
17775
|
|
|
17776
17776
|
|
|
17777
17777
|
|
|
17778
|
-
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 =
|
|
17778
|
+
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 = _chunkXI47UAVUjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkXI47UAVUjs.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.takeFromRunRerunArgs = takeFromRunRerunArgs; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
|