deepline 0.3.493 → 0.3.494
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +2 -2
- package/dist/bundling-sources/sdk/src/types.ts +5 -4
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +15 -0
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +101 -3
- package/dist/cli/{auth-3NAY3AST.mjs → auth-6X5YXMFN.mjs} +5 -5
- package/dist/cli/auth-RWLCLMDY.js +43 -0
- package/dist/cli/{billing-FSB4BBBO.js → billing-5F5PZB77.js} +79 -79
- package/dist/cli/{billing-SBWQCC7B.mjs → billing-IN74SDSC.mjs} +6 -6
- package/dist/cli/{chunk-3RGWTKK3.mjs → chunk-2GEYN3H4.mjs} +89 -3
- package/dist/cli/{chunk-MLEUOTEQ.js → chunk-3KVFOKPR.js} +53 -53
- package/dist/cli/{chunk-IOBPR2VO.js → chunk-4A5WXQJK.js} +16 -16
- package/dist/cli/{chunk-NALJJTPS.mjs → chunk-4RWH4LRQ.mjs} +5 -5
- package/dist/cli/{chunk-UCMY2SO2.js → chunk-4ZKZS43N.js} +3 -3
- package/dist/cli/{chunk-IJOHWGPF.js → chunk-5WYH2LAP.js} +6 -6
- package/dist/cli/{chunk-2BRTYIAH.mjs → chunk-65NMOP4T.mjs} +3 -3
- package/dist/cli/{chunk-VFHIYWMC.mjs → chunk-6DMLWM7L.mjs} +2 -2
- package/dist/cli/{chunk-3QGUWB6E.mjs → chunk-6XZR2642.mjs} +8 -7
- package/dist/cli/{chunk-XQX476QK.js → chunk-7B7A36XZ.js} +9 -9
- package/dist/cli/{chunk-DWJ4RXSA.js → chunk-AARXOBVD.js} +1 -0
- package/dist/cli/{chunk-ZVW7EWTC.mjs → chunk-BLHQRETG.mjs} +184 -184
- package/dist/cli/{chunk-NPZBE64X.js → chunk-BLMB4N63.js} +89 -3
- package/dist/cli/{chunk-LGTZYI5B.js → chunk-BNI653WN.js} +21 -21
- package/dist/cli/{chunk-2H4OFVR5.js → chunk-BU5Y7HOD.js} +5 -5
- package/dist/cli/{chunk-KGDDQMI7.mjs → chunk-C5R3UH5V.mjs} +28 -1
- package/dist/cli/{chunk-NPNAEPY4.js → chunk-CAWOSHEC.js} +26 -26
- package/dist/cli/{chunk-HTUSTPP4.js → chunk-CK5MA6S6.js} +7 -7
- package/dist/cli/{chunk-EBAS3UT2.mjs → chunk-DKKAJ3U2.mjs} +5 -5
- package/dist/cli/{chunk-4IJFQV3O.mjs → chunk-EG3OSUBO.mjs} +1 -1
- package/dist/cli/{chunk-TNQOR6XQ.mjs → chunk-FAT6CUZK.mjs} +1 -1
- package/dist/cli/{chunk-TIFRRLZT.js → chunk-GBICEYUA.js} +6 -6
- package/dist/cli/{chunk-XLE7KXE7.js → chunk-GDNQXLBM.js} +2 -2
- package/dist/cli/{chunk-AWMCZAUR.js → chunk-GLDBMKTV.js} +3 -3
- package/dist/cli/{chunk-GSC35TPZ.mjs → chunk-GNSGDIA4.mjs} +2 -2
- package/dist/cli/{chunk-7HABWOMB.js → chunk-GSCCDGGT.js} +259 -259
- package/dist/cli/{chunk-IRDYBMA7.mjs → chunk-H46X7YDU.mjs} +1 -0
- package/dist/cli/{chunk-NWIDPT7H.js → chunk-HINVMRGQ.js} +4 -4
- package/dist/cli/{chunk-C2MRDPA5.js → chunk-I42EOZKQ.js} +32 -5
- package/dist/cli/{chunk-HLM2UFQ5.mjs → chunk-IPWYDANJ.mjs} +1 -1
- package/dist/cli/{chunk-5DIZ2G74.mjs → chunk-IZJSX3SZ.mjs} +2 -2
- package/dist/cli/{chunk-WTFI7BVH.mjs → chunk-J2HOVZOE.mjs} +1 -1
- package/dist/cli/{chunk-IOMEJKGK.js → chunk-J3UHNUWI.js} +2 -2
- package/dist/cli/{chunk-4NIGNT7X.mjs → chunk-KR2XEI5T.mjs} +1 -1
- package/dist/cli/{chunk-5WOPBX3H.mjs → chunk-KSHAFYYG.mjs} +1 -1
- package/dist/cli/{chunk-DYP27IWC.mjs → chunk-KVCQL6SP.mjs} +4 -4
- package/dist/cli/{chunk-SXD2EYAH.mjs → chunk-L2P2XRPO.mjs} +37 -5
- package/dist/cli/{chunk-67ZG7XZV.mjs → chunk-L4QPBQUX.mjs} +2 -2
- package/dist/cli/{chunk-QTPS5RLG.js → chunk-L6KA4ENU.js} +45 -13
- package/dist/cli/{chunk-ZQH4TXM2.mjs → chunk-L6L57RSG.mjs} +2 -2
- package/dist/cli/{chunk-Y3NN2UAF.mjs → chunk-MWZNMWR2.mjs} +2 -2
- package/dist/cli/{chunk-2IHGVAGT.mjs → chunk-ODWTFVE4.mjs} +2 -2
- package/dist/cli/{chunk-KKSKYZO4.mjs → chunk-QOEI42IU.mjs} +2 -2
- package/dist/cli/{chunk-WCZFCOMZ.js → chunk-QSRWBOPV.js} +11 -10
- package/dist/cli/{chunk-E5ILCMKQ.mjs → chunk-RPFNIMUO.mjs} +1 -1
- package/dist/cli/{chunk-EFO5GVYS.js → chunk-S3XQH7DW.js} +2 -2
- package/dist/cli/{chunk-IJJ6D5WL.mjs → chunk-TLQXN4ZZ.mjs} +11 -11
- package/dist/cli/{chunk-KCDZWS2B.js → chunk-USWLB4KV.js} +231 -231
- package/dist/cli/{chunk-2NGIBJM2.js → chunk-VMPM2FKT.js} +8 -8
- package/dist/cli/{chunk-ZVXB7OU7.mjs → chunk-WCZBIE5L.mjs} +1 -1
- package/dist/cli/{chunk-EYG336YV.js → chunk-WP45PUPW.js} +41 -41
- package/dist/cli/{chunk-AGTXL6LZ.js → chunk-X6HIIHQO.js} +5 -5
- package/dist/cli/{chunk-JO2JZUBR.js → chunk-Y4GRL533.js} +3 -3
- package/dist/cli/{chunk-2I7VN65H.js → chunk-ZZD245Z2.js} +7 -7
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-DKYZE2KM.js → csv-QD7JJGSP.js} +13 -13
- package/dist/cli/{csv-XR22YQXT.mjs → csv-UBW4ID5D.mjs} +4 -4
- package/dist/cli/{db-RNYRTCMV.js → db-AARR3WYD.js} +27 -27
- package/dist/cli/{db-EOKG36YN.mjs → db-QFDXKIVD.mjs} +6 -6
- package/dist/cli/{describe-ICFXOQBW.mjs → describe-OBVIAC2H.mjs} +20 -20
- package/dist/cli/describe-RYJ6HDYD.js +50 -0
- package/dist/cli/describe-core.d.mts +5 -11
- package/dist/cli/describe-core.d.ts +5 -11
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-3RAOACNS.mjs → executions-IZYUDYTZ.mjs} +6 -6
- package/dist/cli/{executions-OBWPSWH7.js → executions-KXY7KMZY.js} +8 -8
- package/dist/cli/{feedback-6GPEUBLF.js → feedback-3334HBPD.js} +8 -8
- package/dist/cli/{feedback-6EQRVBKF.mjs → feedback-IVCVBERN.mjs} +4 -4
- package/dist/cli/git-4VLYFHNU.js +25 -0
- package/dist/cli/{git-CVQ24DTR.mjs → git-JHNVET5A.mjs} +5 -5
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-XPOATG5V.js → legacy-noops-DBA32JCV.js} +8 -8
- package/dist/cli/{legacy-noops-QULJZYNH.mjs → legacy-noops-WGVBUOCC.mjs} +5 -5
- package/dist/cli/{monitors-OJ4CMREE.js → monitors-GHWZ5AZS.js} +91 -91
- package/dist/cli/{monitors-AFT5YJPZ.mjs → monitors-ZGANC7JY.mjs} +7 -7
- package/dist/cli/{org-WHKNXANG.mjs → org-CUS42N2T.mjs} +6 -6
- package/dist/cli/{org-RKT52CSL.js → org-S7JWP264.js} +72 -72
- package/dist/cli/{pages-EEAQFGVD.mjs → pages-IH56T6L6.mjs} +6 -6
- package/dist/cli/{pages-SOE3R667.js → pages-QXRZDEJW.js} +17 -17
- package/dist/cli/{play-OTJJ4E4T.js → play-4C5PYS62.js} +314 -314
- package/dist/cli/{play-LXFWHUBP.mjs → play-Z65ZFOQH.mjs} +17 -17
- package/dist/cli/{providers-U3CPKTMM.mjs → providers-FSZSJX4Z.mjs} +6 -6
- package/dist/cli/{providers-RU4HIAT3.js → providers-XYQGYF3O.js} +9 -9
- package/dist/cli/{quickstart-75AO2AJC.mjs → quickstart-DHWVE32I.mjs} +4 -4
- package/dist/cli/{quickstart-N72IVA2Y.js → quickstart-ZA25RJT3.js} +6 -6
- package/dist/cli/{run-MMYES3IW.js → run-5MP6LEHM.js} +40 -40
- package/dist/cli/{run-IGWFL6WH.mjs → run-WRPPEPLG.mjs} +25 -25
- package/dist/cli/search-4SQFVNTB.js +32 -0
- package/dist/cli/{search-FIYESBLZ.mjs → search-A6NVJPKX.mjs} +7 -7
- package/dist/cli/{search-output-3I5KSW36.mjs → search-output-PAOUMVXY.mjs} +4 -4
- package/dist/cli/{search-output-2FXN4ZWD.js → search-output-YA6TXWGO.js} +6 -6
- package/dist/cli/{secrets-HCZQ6JNP.js → secrets-AZYOGH3I.js} +15 -15
- package/dist/cli/{secrets-O7IUQ3VT.mjs → secrets-ZGF7JOBI.mjs} +6 -6
- package/dist/cli/{sessions-5AYTT4IW.js → sessions-GCIN5VXT.js} +6 -6
- package/dist/cli/{sessions-KY7A3EZO.mjs → sessions-RNEAXZPV.mjs} +5 -5
- package/dist/cli/{settings-P4VFYWJK.js → settings-LMEZNLBB.js} +78 -78
- package/dist/cli/{settings-WSMRR2GS.mjs → settings-NO5KXQJF.mjs} +11 -11
- package/dist/cli/{setup-YTVKVQC7.mjs → setup-GCYB4IFS.mjs} +9 -9
- package/dist/cli/{setup-J7CA3EJL.js → setup-XKTZPYYH.js} +49 -49
- package/dist/cli/{skills-W5WY764N.mjs → skills-TY4HHIKH.mjs} +7 -7
- package/dist/cli/skills-V4APQA2I.js +36 -0
- package/dist/cli/tools-HKQLQ7HT.js +57 -0
- package/dist/cli/{tools-YECI6N3N.mjs → tools-RDTHHYJ3.mjs} +18 -18
- package/dist/cli/{update-BIFBIEII.mjs → update-BRLLTTCS.mjs} +9 -9
- package/dist/cli/update-Z4MUAHWM.js +34 -0
- package/dist/cli/{workflow-XZVDNARC.mjs → workflow-F72EVZWM.mjs} +7 -7
- package/dist/cli/{workflow-D2TUFFH6.js → workflow-YHA4WE3K.js} +17 -17
- package/dist/{client-BDB_VbE4.d.ts → client-97yTcdLl.d.ts} +1 -1
- package/dist/{client-CNzJ1LTF.d.mts → client-CFo9qalW.d.mts} +1 -1
- package/dist/{client-core-xEa9x3pl.d.ts → client-core-BRZrY13B.d.ts} +5 -5
- package/dist/{client-core-CSv3DlPD.d.mts → client-core-Dl6xgfLq.d.mts} +5 -5
- package/dist/{compiler-manifest-BFTwq1HI.d.ts → compiler-manifest-CPEF48NM.d.mts} +91 -0
- package/dist/{compiler-manifest-BFTwq1HI.d.mts → compiler-manifest-CPEF48NM.d.ts} +91 -0
- package/dist/{errors-c3pMsylw.d.ts → errors-B-PJXveg.d.ts} +1 -1
- package/dist/{errors-w31ybrQM.d.mts → errors-BWbPzqwo.d.mts} +1 -1
- package/dist/{index-DvNtxucX.d.mts → index-BJ8AA1F9.d.mts} +1 -1
- package/dist/{index-CQ-15-QL.d.ts → index-CvVxPpE8.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +26 -18
- package/dist/index.mjs +15 -7
- package/dist/install-integrity.json +116 -116
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +2 -2
- package/dist/release.d.ts +2 -2
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-KYQLDI6V.js +0 -43
- package/dist/cli/describe-RS75I33X.js +0 -50
- package/dist/cli/git-DEFE4SSB.js +0 -25
- package/dist/cli/search-EQURI7SZ.js +0 -32
- package/dist/cli/skills-KKPEGLAR.js +0 -36
- package/dist/cli/tools-65Y4QTW6.js +0 -57
- package/dist/cli/update-WDG7VFOW.js +0 -34
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk7B7A36XZjs = require('./chunk-7B7A36XZ.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,15 +17,15 @@ var _chunkXQX476QKjs = require('./chunk-XQX476QK.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk4ZKZS43Njs = require('./chunk-4ZKZS43N.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkQSRWBOPVjs = require('./chunk-QSRWBOPV.js');
|
|
24
24
|
require('./chunk-D3BCSAN7.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkCAWOSHECjs = require('./chunk-CAWOSHEC.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -58,10 +58,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunkX6HIIHQOjs = require('./chunk-X6HIIHQO.js');
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _chunkBU5Y7HODjs = require('./chunk-BU5Y7HOD.js');
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
@@ -74,7 +74,7 @@ var _chunk2H4OFVR5js = require('./chunk-2H4OFVR5.js');
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkCK5MA6S6js = require('./chunk-CK5MA6S6.js');
|
|
78
78
|
require('./chunk-E4CABWXL.js');
|
|
79
79
|
|
|
80
80
|
|
|
@@ -96,18 +96,18 @@ require('./chunk-XDVT3GOM.js');
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
var
|
|
99
|
+
var _chunk5WYH2LAPjs = require('./chunk-5WYH2LAP.js');
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
var
|
|
106
|
-
require('./chunk-
|
|
105
|
+
var _chunkJ3UHNUWIjs = require('./chunk-J3UHNUWI.js');
|
|
106
|
+
require('./chunk-USWLB4KV.js');
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
|
|
110
|
-
var
|
|
110
|
+
var _chunkGLDBMKTVjs = require('./chunk-GLDBMKTV.js');
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
|
|
@@ -121,17 +121,17 @@ var _chunkAWMCZAURjs = require('./chunk-AWMCZAUR.js');
|
|
|
121
121
|
|
|
122
122
|
|
|
123
123
|
|
|
124
|
-
var
|
|
125
|
-
require('./chunk-
|
|
124
|
+
var _chunkZZD245Z2js = require('./chunk-ZZD245Z2.js');
|
|
125
|
+
require('./chunk-Y4GRL533.js');
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
var
|
|
128
|
+
var _chunkHINVMRGQjs = require('./chunk-HINVMRGQ.js');
|
|
129
129
|
require('./chunk-ALJJRZNJ.js');
|
|
130
130
|
require('./chunk-XNYIZMNQ.js');
|
|
131
131
|
|
|
132
132
|
|
|
133
133
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
134
|
-
require('./chunk-
|
|
134
|
+
require('./chunk-S3XQH7DW.js');
|
|
135
135
|
require('./chunk-OG64RBAC.js');
|
|
136
136
|
|
|
137
137
|
|
|
@@ -2113,7 +2113,7 @@ function resolveField(key, command) {
|
|
|
2113
2113
|
function printSettings(result, json, name) {
|
|
2114
2114
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2115
2115
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2116
|
-
|
|
2116
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
2117
2117
|
{
|
|
2118
2118
|
...result,
|
|
2119
2119
|
settings: Object.fromEntries(
|
|
@@ -2157,7 +2157,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2157
2157
|
valueSyntax: field.cli.valueSyntax,
|
|
2158
2158
|
examples: field.cli.examples
|
|
2159
2159
|
}));
|
|
2160
|
-
|
|
2160
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
2161
2161
|
{
|
|
2162
2162
|
fields: descriptions,
|
|
2163
2163
|
render: {
|
|
@@ -2182,7 +2182,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2182
2182
|
async (options, command) => {
|
|
2183
2183
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2184
2184
|
printSettings(
|
|
2185
|
-
await new (0,
|
|
2185
|
+
await new (0, _chunkBU5Y7HODjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2186
2186
|
options.json,
|
|
2187
2187
|
options.name
|
|
2188
2188
|
);
|
|
@@ -2213,7 +2213,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2213
2213
|
);
|
|
2214
2214
|
}
|
|
2215
2215
|
if (options.dryRun) {
|
|
2216
|
-
|
|
2216
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
2217
2217
|
{
|
|
2218
2218
|
dryRun: true,
|
|
2219
2219
|
play,
|
|
@@ -2234,7 +2234,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2234
2234
|
return;
|
|
2235
2235
|
}
|
|
2236
2236
|
printSettings(
|
|
2237
|
-
await new (0,
|
|
2237
|
+
await new (0, _chunkBU5Y7HODjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2238
2238
|
options.json
|
|
2239
2239
|
);
|
|
2240
2240
|
};
|
|
@@ -2260,13 +2260,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2260
2260
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2261
2261
|
{ exitCode: 2 }
|
|
2262
2262
|
);
|
|
2263
|
-
const page = await new (0,
|
|
2263
|
+
const page = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2264
2264
|
root: options.root,
|
|
2265
2265
|
limit,
|
|
2266
2266
|
cursor: options.cursor
|
|
2267
2267
|
});
|
|
2268
2268
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2269
|
-
|
|
2269
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
2270
2270
|
{
|
|
2271
2271
|
...page,
|
|
2272
2272
|
nextCommand,
|
|
@@ -2317,7 +2317,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2317
2317
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2318
2318
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2319
2319
|
};
|
|
2320
|
-
const client = new (0,
|
|
2320
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
2321
2321
|
const paths = [];
|
|
2322
2322
|
let cursor;
|
|
2323
2323
|
do {
|
|
@@ -2379,7 +2379,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2379
2379
|
moved.push(move.playName);
|
|
2380
2380
|
}
|
|
2381
2381
|
}
|
|
2382
|
-
|
|
2382
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
2383
2383
|
{
|
|
2384
2384
|
dryRun: Boolean(options.dryRun),
|
|
2385
2385
|
from: options.from,
|
|
@@ -2507,7 +2507,7 @@ function triggerLines(view) {
|
|
|
2507
2507
|
return lines;
|
|
2508
2508
|
}
|
|
2509
2509
|
function printView(view, json) {
|
|
2510
|
-
|
|
2510
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
2511
2511
|
{
|
|
2512
2512
|
...view,
|
|
2513
2513
|
render: {
|
|
@@ -2520,7 +2520,7 @@ function printView(view, json) {
|
|
|
2520
2520
|
);
|
|
2521
2521
|
}
|
|
2522
2522
|
function printResult(result, json) {
|
|
2523
|
-
|
|
2523
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
2524
2524
|
{
|
|
2525
2525
|
...result,
|
|
2526
2526
|
render: {
|
|
@@ -2550,7 +2550,7 @@ async function mutate(command, options, build) {
|
|
|
2550
2550
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2551
2551
|
}
|
|
2552
2552
|
if (options.dryRun) {
|
|
2553
|
-
|
|
2553
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
2554
2554
|
{
|
|
2555
2555
|
dryRun: true,
|
|
2556
2556
|
play: options.play,
|
|
@@ -2569,7 +2569,7 @@ async function mutate(command, options, build) {
|
|
|
2569
2569
|
return;
|
|
2570
2570
|
}
|
|
2571
2571
|
printResult(
|
|
2572
|
-
await new (0,
|
|
2572
|
+
await new (0, _chunkBU5Y7HODjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2573
2573
|
options.json
|
|
2574
2574
|
);
|
|
2575
2575
|
}
|
|
@@ -2602,7 +2602,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2602
2602
|
}).addHelpText("after", help2);
|
|
2603
2603
|
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) => {
|
|
2604
2604
|
printView(
|
|
2605
|
-
await new (0,
|
|
2605
|
+
await new (0, _chunkBU5Y7HODjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2606
2606
|
options.json
|
|
2607
2607
|
);
|
|
2608
2608
|
});
|
|
@@ -2646,7 +2646,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2646
2646
|
if (options.auth === void 0) {
|
|
2647
2647
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2648
2648
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2649
|
-
const current = await new (0,
|
|
2649
|
+
const current = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2650
2650
|
options.play
|
|
2651
2651
|
);
|
|
2652
2652
|
return {
|
|
@@ -2723,7 +2723,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2723
2723
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2724
2724
|
"runtime.event": "Other event."
|
|
2725
2725
|
};
|
|
2726
|
-
var RUN_LOGS_KIND_HELP =
|
|
2726
|
+
var RUN_LOGS_KIND_HELP = _chunkCK5MA6S6js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2727
2727
|
kind,
|
|
2728
2728
|
description: KIND_DESCRIPTIONS[kind]
|
|
2729
2729
|
}));
|
|
@@ -2860,9 +2860,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2860
2860
|
const args = program.args;
|
|
2861
2861
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2862
2862
|
error.exitCode = 2;
|
|
2863
|
-
if (
|
|
2864
|
-
|
|
2865
|
-
Object.assign(new (0,
|
|
2863
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2864
|
+
_chunkZZD245Z2js.printJsonError.call(void 0,
|
|
2865
|
+
Object.assign(new (0, _chunkCK5MA6S6js.RunEventQueryInputError)(error.message), {
|
|
2866
2866
|
exitCode: 2,
|
|
2867
2867
|
retryable: false
|
|
2868
2868
|
})
|
|
@@ -2906,14 +2906,14 @@ function parseQuery(args, resource) {
|
|
|
2906
2906
|
if (VALUE_FLAGS.has(flag)) {
|
|
2907
2907
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2908
2908
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2909
|
-
throw new (0,
|
|
2909
|
+
throw new (0, _chunkCK5MA6S6js.RunEventQueryInputError)(
|
|
2910
2910
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2911
2911
|
);
|
|
2912
2912
|
}
|
|
2913
2913
|
if (flag === "--sum") sums.push(value);
|
|
2914
2914
|
else {
|
|
2915
2915
|
if (values[flag] !== void 0) {
|
|
2916
|
-
throw new (0,
|
|
2916
|
+
throw new (0, _chunkCK5MA6S6js.RunEventQueryInputError)(
|
|
2917
2917
|
`${flag} may only be supplied once.`
|
|
2918
2918
|
);
|
|
2919
2919
|
}
|
|
@@ -2927,12 +2927,12 @@ function parseQuery(args, resource) {
|
|
|
2927
2927
|
}
|
|
2928
2928
|
if (arg.startsWith("-")) {
|
|
2929
2929
|
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.";
|
|
2930
|
-
throw new (0,
|
|
2930
|
+
throw new (0, _chunkCK5MA6S6js.RunEventQueryInputError)(
|
|
2931
2931
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2932
2932
|
);
|
|
2933
2933
|
}
|
|
2934
2934
|
if (runId !== void 0) {
|
|
2935
|
-
throw new (0,
|
|
2935
|
+
throw new (0, _chunkCK5MA6S6js.RunEventQueryInputError)(
|
|
2936
2936
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2937
2937
|
);
|
|
2938
2938
|
}
|
|
@@ -2940,7 +2940,7 @@ function parseQuery(args, resource) {
|
|
|
2940
2940
|
}
|
|
2941
2941
|
if (switches.has("--fields")) {
|
|
2942
2942
|
if (runId !== void 0) {
|
|
2943
|
-
throw new (0,
|
|
2943
|
+
throw new (0, _chunkCK5MA6S6js.RunEventQueryInputError)(
|
|
2944
2944
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2945
2945
|
);
|
|
2946
2946
|
}
|
|
@@ -2953,18 +2953,18 @@ function parseQuery(args, resource) {
|
|
|
2953
2953
|
)
|
|
2954
2954
|
];
|
|
2955
2955
|
if (incompatible.length) {
|
|
2956
|
-
throw new (0,
|
|
2956
|
+
throw new (0, _chunkCK5MA6S6js.RunEventQueryInputError)(
|
|
2957
2957
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2958
2958
|
);
|
|
2959
2959
|
}
|
|
2960
2960
|
}
|
|
2961
2961
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2962
|
-
throw new (0,
|
|
2962
|
+
throw new (0, _chunkCK5MA6S6js.RunEventQueryInputError)(
|
|
2963
2963
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2964
2964
|
);
|
|
2965
2965
|
}
|
|
2966
2966
|
if (sums.length && switches.has("--count")) {
|
|
2967
|
-
throw new (0,
|
|
2967
|
+
throw new (0, _chunkCK5MA6S6js.RunEventQueryInputError)(
|
|
2968
2968
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2969
2969
|
);
|
|
2970
2970
|
}
|
|
@@ -2972,7 +2972,7 @@ function parseQuery(args, resource) {
|
|
|
2972
2972
|
if (operation === "count") {
|
|
2973
2973
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2974
2974
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2975
|
-
throw new (0,
|
|
2975
|
+
throw new (0, _chunkCK5MA6S6js.RunEventQueryInputError)(
|
|
2976
2976
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2977
2977
|
);
|
|
2978
2978
|
}
|
|
@@ -3007,16 +3007,16 @@ function parseQuery(args, resource) {
|
|
|
3007
3007
|
];
|
|
3008
3008
|
}
|
|
3009
3009
|
}
|
|
3010
|
-
const request =
|
|
3010
|
+
const request = _chunkCK5MA6S6js.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3011
3011
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3012
3012
|
const backend = values["--runtime-backend"];
|
|
3013
3013
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3014
|
-
throw new (0,
|
|
3014
|
+
throw new (0, _chunkCK5MA6S6js.RunEventQueryInputError)(
|
|
3015
3015
|
"--runtime-backend must be daytona or modal."
|
|
3016
3016
|
);
|
|
3017
3017
|
}
|
|
3018
3018
|
if (backend && !namespace) {
|
|
3019
|
-
throw new (0,
|
|
3019
|
+
throw new (0, _chunkCK5MA6S6js.RunEventQueryInputError)(
|
|
3020
3020
|
"--runtime-backend requires --runtime-namespace."
|
|
3021
3021
|
);
|
|
3022
3022
|
}
|
|
@@ -3063,12 +3063,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3063
3063
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3064
3064
|
const record3 = failure;
|
|
3065
3065
|
const status = record3.statusCode;
|
|
3066
|
-
const exitCode = error instanceof
|
|
3066
|
+
const exitCode = error instanceof _chunkCK5MA6S6js.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3067
3067
|
const diagnostic = Object.assign(failure, {
|
|
3068
3068
|
exitCode,
|
|
3069
3069
|
retryable: exitCode === 5
|
|
3070
3070
|
});
|
|
3071
|
-
if (
|
|
3071
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) _chunkZZD245Z2js.printJsonError.call(void 0, diagnostic);
|
|
3072
3072
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3073
3073
|
return exitCode;
|
|
3074
3074
|
}
|
|
@@ -3083,7 +3083,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3083
3083
|
...criteria
|
|
3084
3084
|
} = request;
|
|
3085
3085
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3086
|
-
const client = new (0,
|
|
3086
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
3087
3087
|
let result;
|
|
3088
3088
|
if (request.operation === "fields") {
|
|
3089
3089
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3149,13 +3149,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3149
3149
|
lines.push(`Next page: ${nextPage}`);
|
|
3150
3150
|
}
|
|
3151
3151
|
}
|
|
3152
|
-
|
|
3152
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
3153
3153
|
{
|
|
3154
3154
|
...result,
|
|
3155
3155
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3156
3156
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3157
3157
|
},
|
|
3158
|
-
{ json:
|
|
3158
|
+
{ json: _chunkZZD245Z2js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3159
3159
|
` }
|
|
3160
3160
|
);
|
|
3161
3161
|
return 0;
|
|
@@ -4074,7 +4074,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4074
4074
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4075
4075
|
);
|
|
4076
4076
|
}
|
|
4077
|
-
const response = await new (0,
|
|
4077
|
+
const response = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4078
4078
|
keys
|
|
4079
4079
|
});
|
|
4080
4080
|
const failed = response.receipts.filter(
|
|
@@ -4086,7 +4086,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4086
4086
|
JSON.stringify(response, null, 2) + "\n",
|
|
4087
4087
|
{ flag: "wx", mode: 384 }
|
|
4088
4088
|
);
|
|
4089
|
-
|
|
4089
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
4090
4090
|
{
|
|
4091
4091
|
runId,
|
|
4092
4092
|
out: options.out,
|
|
@@ -4096,7 +4096,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4096
4096
|
{ json: true }
|
|
4097
4097
|
);
|
|
4098
4098
|
} else {
|
|
4099
|
-
|
|
4099
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4100
4100
|
}
|
|
4101
4101
|
if (failed)
|
|
4102
4102
|
process.exitCode = response.receipts.some(
|
|
@@ -4135,7 +4135,7 @@ includes nextCommand when another page is available.
|
|
|
4135
4135
|
{ exitCode: 2 }
|
|
4136
4136
|
);
|
|
4137
4137
|
}
|
|
4138
|
-
const page = await new (0,
|
|
4138
|
+
const page = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4139
4139
|
launchKey: options.launchKey,
|
|
4140
4140
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4141
4141
|
limit
|
|
@@ -4150,7 +4150,7 @@ includes nextCommand when another page is available.
|
|
|
4150
4150
|
"--limit",
|
|
4151
4151
|
String(limit)
|
|
4152
4152
|
].join(" ") : null;
|
|
4153
|
-
|
|
4153
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
4154
4154
|
{
|
|
4155
4155
|
parentRunId,
|
|
4156
4156
|
launchKey: options.launchKey,
|
|
@@ -4186,7 +4186,7 @@ async function handleRunsHistory(options) {
|
|
|
4186
4186
|
throw new Error("--limit must be a positive integer.");
|
|
4187
4187
|
}
|
|
4188
4188
|
}
|
|
4189
|
-
const page = await new (0,
|
|
4189
|
+
const page = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().runs.history({
|
|
4190
4190
|
cursor: options.cursor,
|
|
4191
4191
|
orgId: options.org,
|
|
4192
4192
|
search: options.search,
|
|
@@ -4202,7 +4202,7 @@ async function handleRunsHistory(options) {
|
|
|
4202
4202
|
);
|
|
4203
4203
|
}
|
|
4204
4204
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4205
|
-
|
|
4205
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
4206
4206
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4207
4207
|
options.json ? { json: true } : {}
|
|
4208
4208
|
);
|
|
@@ -4254,12 +4254,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4254
4254
|
return 1;
|
|
4255
4255
|
}
|
|
4256
4256
|
}
|
|
4257
|
-
const result = await new (0,
|
|
4257
|
+
const result = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().runs.rerun(runId, {
|
|
4258
4258
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4259
4259
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4260
4260
|
});
|
|
4261
|
-
if (
|
|
4262
|
-
|
|
4261
|
+
if (_chunkZZD245Z2js.shouldEmitJson.call(void 0, options.json)) {
|
|
4262
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4263
4263
|
} else if (result.rateLimited) {
|
|
4264
4264
|
console.log(`
|
|
4265
4265
|
${result.rateLimited.message}`);
|
|
@@ -5083,13 +5083,13 @@ var RunDataset = class _RunDataset {
|
|
|
5083
5083
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5084
5084
|
_fs.writeFileSync.call(void 0,
|
|
5085
5085
|
absolutePath,
|
|
5086
|
-
`${JSON.stringify(
|
|
5086
|
+
`${JSON.stringify(_chunk4ZKZS43Njs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5087
5087
|
`,
|
|
5088
5088
|
"utf-8"
|
|
5089
5089
|
);
|
|
5090
5090
|
return absolutePath;
|
|
5091
5091
|
}
|
|
5092
|
-
return
|
|
5092
|
+
return _chunk4ZKZS43Njs.writeRunDatasetCsv.call(void 0, {
|
|
5093
5093
|
rows: this.rows,
|
|
5094
5094
|
columns: this.#info.columns,
|
|
5095
5095
|
outPath
|
|
@@ -6786,7 +6786,7 @@ function renderOutcome(outcome) {
|
|
|
6786
6786
|
function printResult2(input) {
|
|
6787
6787
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6788
6788
|
if (failed) process.exitCode = 1;
|
|
6789
|
-
|
|
6789
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
6790
6790
|
{
|
|
6791
6791
|
deployment: { ...input.deployment, status: input.status },
|
|
6792
6792
|
plays: input.outcomes,
|
|
@@ -6811,7 +6811,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6811
6811
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6812
6812
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6813
6813
|
});
|
|
6814
|
-
const { http, config } =
|
|
6814
|
+
const { http, config } = _chunkZZD245Z2js.getAuthedHttpClient.call(void 0, );
|
|
6815
6815
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6816
6816
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6817
6817
|
deliveryId,
|
|
@@ -6838,7 +6838,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6838
6838
|
},
|
|
6839
6839
|
{
|
|
6840
6840
|
bundle: bundleDeployPlayFile,
|
|
6841
|
-
fetchImpl:
|
|
6841
|
+
fetchImpl: _chunkHINVMRGQjs.fetchWithDeploymentProtection,
|
|
6842
6842
|
// The plays are already here: "opening" the source is naming it.
|
|
6843
6843
|
openSource: async () => ({
|
|
6844
6844
|
open: async () => ({ repoRoot: root })
|
|
@@ -6964,7 +6964,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6964
6964
|
// src/cli/renderers/local-play-execution.ts
|
|
6965
6965
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6966
6966
|
if (options.dryRun) {
|
|
6967
|
-
|
|
6967
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6968
6968
|
return;
|
|
6969
6969
|
}
|
|
6970
6970
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7136,7 +7136,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7136
7136
|
const startedAt = Date.now();
|
|
7137
7137
|
try {
|
|
7138
7138
|
const result = run();
|
|
7139
|
-
|
|
7139
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
7140
7140
|
phase,
|
|
7141
7141
|
ms: Date.now() - startedAt,
|
|
7142
7142
|
ok: true,
|
|
@@ -7144,7 +7144,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7144
7144
|
});
|
|
7145
7145
|
return result;
|
|
7146
7146
|
} catch (error) {
|
|
7147
|
-
|
|
7147
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
7148
7148
|
phase,
|
|
7149
7149
|
ms: Date.now() - startedAt,
|
|
7150
7150
|
ok: false,
|
|
@@ -7950,7 +7950,7 @@ function playStatusErrorText(status) {
|
|
|
7950
7950
|
function isRetryablePendingStartFailure(status) {
|
|
7951
7951
|
if (status.status !== "failed") return false;
|
|
7952
7952
|
if (status.runId && status.runId !== "pending") return false;
|
|
7953
|
-
return
|
|
7953
|
+
return _chunkCK5MA6S6js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7954
7954
|
}
|
|
7955
7955
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7956
7956
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -8000,13 +8000,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
8000
8000
|
}, _class);
|
|
8001
8001
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8002
8002
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8003
|
-
if (!
|
|
8003
|
+
if (!_chunkCK5MA6S6js.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8004
8004
|
return false;
|
|
8005
8005
|
}
|
|
8006
|
-
if (
|
|
8006
|
+
if (_chunkCK5MA6S6js.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8007
8007
|
return true;
|
|
8008
8008
|
}
|
|
8009
|
-
return state.verbose === true &&
|
|
8009
|
+
return state.verbose === true && _chunkCK5MA6S6js.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8010
8010
|
}
|
|
8011
8011
|
function getEventPayload(event) {
|
|
8012
8012
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8516,7 +8516,7 @@ function resolvePlayRunUrl(input) {
|
|
|
8516
8516
|
}
|
|
8517
8517
|
function openPlayDashboard(url, open2) {
|
|
8518
8518
|
if (open2 && url) {
|
|
8519
|
-
|
|
8519
|
+
_chunkZZD245Z2js.openInBrowser.call(void 0, url);
|
|
8520
8520
|
}
|
|
8521
8521
|
}
|
|
8522
8522
|
function printPlayLogLines(input) {
|
|
@@ -8597,7 +8597,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8597
8597
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8598
8598
|
});
|
|
8599
8599
|
} catch (error) {
|
|
8600
|
-
if (
|
|
8600
|
+
if (_chunkCK5MA6S6js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8601
8601
|
return null;
|
|
8602
8602
|
}
|
|
8603
8603
|
throw error;
|
|
@@ -8678,9 +8678,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8678
8678
|
signal: controller.signal,
|
|
8679
8679
|
deferLogs: !input.emitLogs,
|
|
8680
8680
|
omitTerminalLogs: !input.emitLogs,
|
|
8681
|
-
...
|
|
8681
|
+
..._chunkJ3UHNUWIjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8682
8682
|
onPoll: (observation) => {
|
|
8683
|
-
|
|
8683
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
8684
8684
|
phase: "play_watch_poll",
|
|
8685
8685
|
workflowId: input.workflowId,
|
|
8686
8686
|
ms: observation.durationMs,
|
|
@@ -8694,7 +8694,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8694
8694
|
full: input.fullJson,
|
|
8695
8695
|
billing: false,
|
|
8696
8696
|
onStatus: async (status) => {
|
|
8697
|
-
|
|
8697
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
8698
8698
|
phase: "play_watch_terminal_status",
|
|
8699
8699
|
workflowId: input.workflowId,
|
|
8700
8700
|
full: input.fullJson === true
|
|
@@ -8783,7 +8783,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8783
8783
|
signal: controller.signal,
|
|
8784
8784
|
cliAdmission: useCliAdmission
|
|
8785
8785
|
});
|
|
8786
|
-
|
|
8786
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
8787
8787
|
phase: "cli.play_start_admission_attempt",
|
|
8788
8788
|
ms: Date.now() - postStartedAt,
|
|
8789
8789
|
ok: true,
|
|
@@ -8795,7 +8795,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8795
8795
|
});
|
|
8796
8796
|
break;
|
|
8797
8797
|
} catch (error) {
|
|
8798
|
-
|
|
8798
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
8799
8799
|
phase: "cli.play_start_admission_attempt",
|
|
8800
8800
|
ms: Date.now() - postStartedAt,
|
|
8801
8801
|
ok: false,
|
|
@@ -8846,7 +8846,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8846
8846
|
prepared.workflowId
|
|
8847
8847
|
);
|
|
8848
8848
|
}
|
|
8849
|
-
await
|
|
8849
|
+
await _chunk5WYH2LAPjs.checkPlayRunCompatibility.call(void 0,
|
|
8850
8850
|
input.client.baseUrl,
|
|
8851
8851
|
input.maintenancePolicy
|
|
8852
8852
|
);
|
|
@@ -8864,7 +8864,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8864
8864
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
8865
8865
|
);
|
|
8866
8866
|
}
|
|
8867
|
-
|
|
8867
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
8868
8868
|
phase: "cli.play_start_json_retry",
|
|
8869
8869
|
ms: 0,
|
|
8870
8870
|
ok: true,
|
|
@@ -8944,7 +8944,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8944
8944
|
_nullishCoalesce(input.open, () => ( false))
|
|
8945
8945
|
);
|
|
8946
8946
|
input.progress.phase("running");
|
|
8947
|
-
|
|
8947
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
8948
8948
|
phase: "cli.play_start_admitted",
|
|
8949
8949
|
ms: Date.now() - startedAt,
|
|
8950
8950
|
ok: true,
|
|
@@ -8962,7 +8962,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8962
8962
|
startedAt,
|
|
8963
8963
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8964
8964
|
});
|
|
8965
|
-
const initialStatus =
|
|
8965
|
+
const initialStatus = _chunkCK5MA6S6js.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8966
8966
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8967
8967
|
client: input.client,
|
|
8968
8968
|
status: initialStatus,
|
|
@@ -8970,7 +8970,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8970
8970
|
jsonOutput: input.jsonOutput,
|
|
8971
8971
|
fromDurableStatus: true
|
|
8972
8972
|
});
|
|
8973
|
-
|
|
8973
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
8974
8974
|
phase: "play_watch_terminal_status",
|
|
8975
8975
|
workflowId,
|
|
8976
8976
|
full: true,
|
|
@@ -9075,7 +9075,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9075
9075
|
});
|
|
9076
9076
|
}
|
|
9077
9077
|
if (error instanceof _chunkPKV5CD3Wjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
9078
|
-
await
|
|
9078
|
+
await _chunk5WYH2LAPjs.checkPlayRunCompatibility.call(void 0,
|
|
9079
9079
|
input.client.baseUrl,
|
|
9080
9080
|
input.maintenancePolicy,
|
|
9081
9081
|
admissionDeadline.signal
|
|
@@ -9116,7 +9116,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9116
9116
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9117
9117
|
);
|
|
9118
9118
|
}
|
|
9119
|
-
|
|
9119
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
9120
9120
|
phase: "cli.play_start_stream_retry",
|
|
9121
9121
|
ms: 0,
|
|
9122
9122
|
ok: true,
|
|
@@ -9137,7 +9137,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9137
9137
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9138
9138
|
);
|
|
9139
9139
|
}
|
|
9140
|
-
|
|
9140
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
9141
9141
|
phase: "cli.play_start_stream_retry",
|
|
9142
9142
|
ms: 0,
|
|
9143
9143
|
ok: true,
|
|
@@ -9194,7 +9194,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9194
9194
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9195
9195
|
launchConfirmed = true;
|
|
9196
9196
|
await _optionalChain([input, 'access', _318 => _318.onRunAdmitted, 'optionalCall', _319 => _319(runId)]);
|
|
9197
|
-
|
|
9197
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
9198
9198
|
phase: "cli.play_start_admitted",
|
|
9199
9199
|
ms: Date.now() - startedAt,
|
|
9200
9200
|
ok: true,
|
|
@@ -9228,7 +9228,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9228
9228
|
full: input.fullJson
|
|
9229
9229
|
});
|
|
9230
9230
|
} catch (error) {
|
|
9231
|
-
if (
|
|
9231
|
+
if (_chunkCK5MA6S6js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9232
9232
|
return null;
|
|
9233
9233
|
}
|
|
9234
9234
|
throw error;
|
|
@@ -9399,7 +9399,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9399
9399
|
};
|
|
9400
9400
|
}
|
|
9401
9401
|
if (!canonicalTerminal) {
|
|
9402
|
-
|
|
9402
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
9403
9403
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9404
9404
|
ms: Date.now() - startedAt,
|
|
9405
9405
|
ok: true,
|
|
@@ -9420,14 +9420,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9420
9420
|
fromDurableStatus
|
|
9421
9421
|
}) : canonicalTerminal;
|
|
9422
9422
|
if (input.fullJson === true) {
|
|
9423
|
-
|
|
9423
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
9424
9424
|
phase: "play_watch_terminal_status",
|
|
9425
9425
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9426
9426
|
full: true,
|
|
9427
9427
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9428
9428
|
});
|
|
9429
9429
|
}
|
|
9430
|
-
|
|
9430
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
9431
9431
|
phase: "cli.play_start_stream_terminal",
|
|
9432
9432
|
ms: Date.now() - startedAt,
|
|
9433
9433
|
ok: true,
|
|
@@ -9447,7 +9447,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9447
9447
|
clearTimeout(timeout);
|
|
9448
9448
|
}
|
|
9449
9449
|
controller.abort();
|
|
9450
|
-
|
|
9450
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
9451
9451
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9452
9452
|
ms: Date.now() - startedAt,
|
|
9453
9453
|
ok: true,
|
|
@@ -9478,7 +9478,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9478
9478
|
if (timedOut) {
|
|
9479
9479
|
const terminal = await fetchKnownTerminalStatus();
|
|
9480
9480
|
if (terminal) {
|
|
9481
|
-
|
|
9481
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
9482
9482
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9483
9483
|
ms: Date.now() - startedAt,
|
|
9484
9484
|
ok: true,
|
|
@@ -9498,7 +9498,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9498
9498
|
lastPhase
|
|
9499
9499
|
});
|
|
9500
9500
|
}
|
|
9501
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9501
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkCK5MA6S6js.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9502
9502
|
if (timeout) {
|
|
9503
9503
|
clearTimeout(timeout);
|
|
9504
9504
|
}
|
|
@@ -9509,7 +9509,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9509
9509
|
`
|
|
9510
9510
|
);
|
|
9511
9511
|
}
|
|
9512
|
-
|
|
9512
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
9513
9513
|
phase: "cli.play_start_stream_reconnect",
|
|
9514
9514
|
ms: Date.now() - startedAt,
|
|
9515
9515
|
ok: true,
|
|
@@ -9536,7 +9536,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9536
9536
|
});
|
|
9537
9537
|
}
|
|
9538
9538
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9539
|
-
|
|
9539
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
9540
9540
|
phase: "cli.play_start_stream_transient_failure",
|
|
9541
9541
|
ms: Date.now() - startedAt,
|
|
9542
9542
|
ok: false,
|
|
@@ -9564,7 +9564,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9564
9564
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9565
9565
|
);
|
|
9566
9566
|
}
|
|
9567
|
-
|
|
9567
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
9568
9568
|
phase: "cli.play_start_stream_reconnect",
|
|
9569
9569
|
ms: Date.now() - startedAt,
|
|
9570
9570
|
ok: true,
|
|
@@ -9644,7 +9644,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9644
9644
|
"logs"
|
|
9645
9645
|
]);
|
|
9646
9646
|
function formatPlayLogLine(rawLine, state) {
|
|
9647
|
-
const classified =
|
|
9647
|
+
const classified = _chunkCK5MA6S6js.classifyLogLine.call(void 0, rawLine);
|
|
9648
9648
|
const line = classified.line;
|
|
9649
9649
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9650
9650
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _341 => _341[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9659,14 +9659,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9659
9659
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9660
9660
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9661
9661
|
if (providerWait && !state.verbose) {
|
|
9662
|
-
return
|
|
9662
|
+
return _chunkCK5MA6S6js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9663
9663
|
}
|
|
9664
9664
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9665
9665
|
if (mapProgress && !state.verbose) {
|
|
9666
|
-
return
|
|
9666
|
+
return _chunkCK5MA6S6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9667
9667
|
}
|
|
9668
9668
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9669
|
-
if (!
|
|
9669
|
+
if (!_chunkCK5MA6S6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9670
9670
|
return null;
|
|
9671
9671
|
}
|
|
9672
9672
|
if (state.emittedRunnerStarted) {
|
|
@@ -9679,7 +9679,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9679
9679
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9680
9680
|
);
|
|
9681
9681
|
if (mapStart) {
|
|
9682
|
-
if (!
|
|
9682
|
+
if (!_chunkCK5MA6S6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9683
9683
|
return null;
|
|
9684
9684
|
}
|
|
9685
9685
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9689,7 +9689,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9689
9689
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9690
9690
|
);
|
|
9691
9691
|
if (mapDone) {
|
|
9692
|
-
if (!
|
|
9692
|
+
if (!_chunkCK5MA6S6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9693
9693
|
return null;
|
|
9694
9694
|
}
|
|
9695
9695
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10989,7 +10989,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10989
10989
|
(line) => typeof line === "string"
|
|
10990
10990
|
);
|
|
10991
10991
|
if (tail.length === 0) return [];
|
|
10992
|
-
const shown = tail.map((line) =>
|
|
10992
|
+
const shown = tail.map((line) => _chunkCK5MA6S6js.classifyLogLine.call(void 0, line)).filter(
|
|
10993
10993
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10994
10994
|
).slice(-8);
|
|
10995
10995
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11287,11 +11287,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11287
11287
|
}
|
|
11288
11288
|
function writePlayResult(status, jsonOutput, options) {
|
|
11289
11289
|
const packaged = getPlayRunPackage(status);
|
|
11290
|
-
if (status.package)
|
|
11290
|
+
if (status.package) _chunk4ZKZS43Njs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11291
11291
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _429 => _429.hits]), () => ( null));
|
|
11292
11292
|
if (jsonOutput) {
|
|
11293
11293
|
const payload2 = _optionalChain([options, 'optionalAccess', _430 => _430.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11294
|
-
|
|
11294
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
11295
11295
|
hits ? { ...payload2, hits } : payload2,
|
|
11296
11296
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _431 => _431.jsonFields]) }
|
|
11297
11297
|
);
|
|
@@ -11307,7 +11307,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11307
11307
|
...buildPlayCompletionTextLines(status),
|
|
11308
11308
|
...formatRunHitsLines(hits)
|
|
11309
11309
|
];
|
|
11310
|
-
|
|
11310
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11311
11311
|
json: false,
|
|
11312
11312
|
text: `${lines2.join("\n")}
|
|
11313
11313
|
`
|
|
@@ -11358,7 +11358,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11358
11358
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11359
11359
|
const compact = compactPlayStatus(status);
|
|
11360
11360
|
const payload = _optionalChain([options, 'optionalAccess', _433 => _433.fullJson]) ? status : compact;
|
|
11361
|
-
|
|
11361
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
11362
11362
|
{
|
|
11363
11363
|
...payload,
|
|
11364
11364
|
render: {
|
|
@@ -11582,7 +11582,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11582
11582
|
}
|
|
11583
11583
|
offset += page.rows.length;
|
|
11584
11584
|
}
|
|
11585
|
-
const withError =
|
|
11585
|
+
const withError = _chunk4ZKZS43Njs.tableExportHasFailedRows.call(void 0,
|
|
11586
11586
|
sheetRows.filter(
|
|
11587
11587
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11588
11588
|
)
|
|
@@ -11598,7 +11598,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11598
11598
|
return [
|
|
11599
11599
|
withError ? {
|
|
11600
11600
|
...exported,
|
|
11601
|
-
[
|
|
11601
|
+
[_chunk4ZKZS43Njs.TABLE_EXPORT_ERROR_COLUMN]: _chunk4ZKZS43Njs.tableExportErrorCell.call(void 0,
|
|
11602
11602
|
row
|
|
11603
11603
|
)
|
|
11604
11604
|
} : exported
|
|
@@ -12133,7 +12133,7 @@ function renderServerResultView(value) {
|
|
|
12133
12133
|
function writeStartedPlayRun(input) {
|
|
12134
12134
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12135
12135
|
const run = input.package.run;
|
|
12136
|
-
|
|
12136
|
+
_chunk4ZKZS43Njs.recordPlayTermination.call(void 0, {
|
|
12137
12137
|
id: run.id,
|
|
12138
12138
|
status: run.status,
|
|
12139
12139
|
finishedAt: run.finishedAt
|
|
@@ -12146,7 +12146,7 @@ function writeStartedPlayRun(input) {
|
|
|
12146
12146
|
dashboardUrl: input.dashboardUrl,
|
|
12147
12147
|
package: input.package
|
|
12148
12148
|
};
|
|
12149
|
-
|
|
12149
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12150
12150
|
json: true,
|
|
12151
12151
|
fields: input.jsonFields
|
|
12152
12152
|
});
|
|
@@ -12168,7 +12168,7 @@ function writeStartedPlayRun(input) {
|
|
|
12168
12168
|
input.progress.writeLine(output2, process.stdout);
|
|
12169
12169
|
return;
|
|
12170
12170
|
}
|
|
12171
|
-
|
|
12171
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, input.package, {
|
|
12172
12172
|
json: false,
|
|
12173
12173
|
text: `${output2}
|
|
12174
12174
|
`
|
|
@@ -12203,7 +12203,7 @@ function writeStartedPlayRun(input) {
|
|
|
12203
12203
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12204
12204
|
];
|
|
12205
12205
|
if (input.jsonOutput) {
|
|
12206
|
-
|
|
12206
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12207
12207
|
return;
|
|
12208
12208
|
}
|
|
12209
12209
|
const output = lines.join("\n");
|
|
@@ -12211,7 +12211,7 @@ function writeStartedPlayRun(input) {
|
|
|
12211
12211
|
input.progress.writeLine(output, process.stdout);
|
|
12212
12212
|
return;
|
|
12213
12213
|
}
|
|
12214
|
-
|
|
12214
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
12215
12215
|
{
|
|
12216
12216
|
...payload,
|
|
12217
12217
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12221,7 +12221,7 @@ function writeStartedPlayRun(input) {
|
|
|
12221
12221
|
);
|
|
12222
12222
|
}
|
|
12223
12223
|
function parsePlayCheckOptions(args) {
|
|
12224
|
-
const selection =
|
|
12224
|
+
const selection = _chunkZZD245Z2js.parseJsonFields.call(void 0, args, "check");
|
|
12225
12225
|
args = selection.args;
|
|
12226
12226
|
const target = args[0];
|
|
12227
12227
|
if (!target || target.startsWith("-")) {
|
|
@@ -12233,7 +12233,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12233
12233
|
if (arg !== "--json" && arg !== "--full")
|
|
12234
12234
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12235
12235
|
}
|
|
12236
|
-
const jsonOutput =
|
|
12236
|
+
const jsonOutput = _chunkZZD245Z2js.argsWantJson.call(void 0, args);
|
|
12237
12237
|
return {
|
|
12238
12238
|
target,
|
|
12239
12239
|
jsonOutput,
|
|
@@ -12309,7 +12309,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12309
12309
|
useLatest,
|
|
12310
12310
|
expectedArtifactHash,
|
|
12311
12311
|
dryRun,
|
|
12312
|
-
jsonOutput:
|
|
12312
|
+
jsonOutput: _chunkZZD245Z2js.argsWantJson.call(void 0, args)
|
|
12313
12313
|
};
|
|
12314
12314
|
}
|
|
12315
12315
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12350,7 +12350,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12350
12350
|
target,
|
|
12351
12351
|
expectedArtifactHash,
|
|
12352
12352
|
dryRun,
|
|
12353
|
-
jsonOutput:
|
|
12353
|
+
jsonOutput: _chunkZZD245Z2js.argsWantJson.call(void 0, args)
|
|
12354
12354
|
};
|
|
12355
12355
|
}
|
|
12356
12356
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12561,7 +12561,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12561
12561
|
async function handlePlayCheck(args) {
|
|
12562
12562
|
const options = parsePlayCheckOptions(args);
|
|
12563
12563
|
if (!isFileTarget(options.target)) {
|
|
12564
|
-
const client = new (0,
|
|
12564
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
12565
12565
|
try {
|
|
12566
12566
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12567
12567
|
command: "check"
|
|
@@ -12590,7 +12590,7 @@ async function handlePlayCheck(args) {
|
|
|
12590
12590
|
},
|
|
12591
12591
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12592
12592
|
};
|
|
12593
|
-
|
|
12593
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, result, {
|
|
12594
12594
|
json: options.jsonOutput,
|
|
12595
12595
|
fields: options.jsonFields,
|
|
12596
12596
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12600,7 +12600,7 @@ async function handlePlayCheck(args) {
|
|
|
12600
12600
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12601
12601
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12602
12602
|
if (options.jsonOutput) {
|
|
12603
|
-
|
|
12603
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
12604
12604
|
{
|
|
12605
12605
|
kind: "play_check",
|
|
12606
12606
|
checked: "named_contract",
|
|
@@ -12642,7 +12642,7 @@ async function handlePlayCheck(args) {
|
|
|
12642
12642
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12643
12643
|
publishCommand: _optionalChain([primary, 'optionalAccess', _483 => _483.result, 'access', _484 => _484.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12644
12644
|
});
|
|
12645
|
-
|
|
12645
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, output, {
|
|
12646
12646
|
json: options.jsonOutput,
|
|
12647
12647
|
fields: options.jsonFields,
|
|
12648
12648
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12696,7 +12696,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12696
12696
|
}
|
|
12697
12697
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12698
12698
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12699
|
-
const client = new (0,
|
|
12699
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
12700
12700
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12701
12701
|
const checked = await checkLocalPlayGraph({
|
|
12702
12702
|
client,
|
|
@@ -12752,8 +12752,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12752
12752
|
let prefetchClient;
|
|
12753
12753
|
let admissionCapability;
|
|
12754
12754
|
let cancelAdmissionCapability;
|
|
12755
|
-
let cliAdmission =
|
|
12756
|
-
const progress = _nullishCoalesce(
|
|
12755
|
+
let cliAdmission = _chunk5WYH2LAPjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12756
|
+
const progress = _nullishCoalesce(_chunkGLDBMKTVjs.getActiveCliProgress.call(void 0, ), () => ( _chunkGLDBMKTVjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12757
12757
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12758
12758
|
progress.phase("compiling play");
|
|
12759
12759
|
const sourceCode = traceCliSync(
|
|
@@ -12769,11 +12769,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12769
12769
|
return 1;
|
|
12770
12770
|
}
|
|
12771
12771
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12772
|
-
const clientForPrefetch = new (0,
|
|
12772
|
+
const clientForPrefetch = new (0, _chunkBU5Y7HODjs.DeeplineClient)(playRunClientOptions(options));
|
|
12773
12773
|
prefetchClient = clientForPrefetch;
|
|
12774
12774
|
const capabilityController = new AbortController();
|
|
12775
12775
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12776
|
-
admissionCapability =
|
|
12776
|
+
admissionCapability = _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
12777
12777
|
"cli.play_admission_capability_prefetch",
|
|
12778
12778
|
{ targetKind: "file" },
|
|
12779
12779
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -12784,7 +12784,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12784
12784
|
}
|
|
12785
12785
|
let graph;
|
|
12786
12786
|
try {
|
|
12787
|
-
graph = await
|
|
12787
|
+
graph = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
12788
12788
|
"cli.play_file_bundle_graph",
|
|
12789
12789
|
{ targetKind: "file" },
|
|
12790
12790
|
() => collectBundledPlayGraph(
|
|
@@ -12798,14 +12798,14 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12798
12798
|
if (options.dryRun) {
|
|
12799
12799
|
progress.complete();
|
|
12800
12800
|
renderLocalPlayExecutionPlan(
|
|
12801
|
-
|
|
12801
|
+
_chunkX6HIIHQOjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
|
|
12802
12802
|
{ dryRun: true, json: options.jsonOutput }
|
|
12803
12803
|
);
|
|
12804
12804
|
return 0;
|
|
12805
12805
|
}
|
|
12806
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
12806
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkBU5Y7HODjs.DeeplineClient)(playRunClientOptions(options))));
|
|
12807
12807
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12808
|
-
await
|
|
12808
|
+
await _chunk5WYH2LAPjs.checkPlayRunCompatibility.call(void 0,
|
|
12809
12809
|
client.baseUrl,
|
|
12810
12810
|
options.maintenancePolicy
|
|
12811
12811
|
);
|
|
@@ -12818,7 +12818,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12818
12818
|
});
|
|
12819
12819
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12820
12820
|
if (canDeferCompilerManifest) {
|
|
12821
|
-
|
|
12821
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
12822
12822
|
phase: "cli.play_file_compile_manifests",
|
|
12823
12823
|
ms: 0,
|
|
12824
12824
|
ok: true,
|
|
@@ -12827,7 +12827,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12827
12827
|
reason: "validated_by_run_route"
|
|
12828
12828
|
});
|
|
12829
12829
|
} else {
|
|
12830
|
-
await
|
|
12830
|
+
await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
12831
12831
|
"cli.play_file_compile_manifests",
|
|
12832
12832
|
{ targetKind: "file", skipped: false },
|
|
12833
12833
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12848,13 +12848,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12848
12848
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12849
12849
|
try {
|
|
12850
12850
|
renderLocalPlayExecutionPlan(
|
|
12851
|
-
|
|
12851
|
+
_chunkX6HIIHQOjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12852
12852
|
);
|
|
12853
12853
|
progress.phase("pinning imported plays");
|
|
12854
|
-
graph = await
|
|
12854
|
+
graph = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
12855
12855
|
"cli.play_file_pin_imports",
|
|
12856
12856
|
{ targetKind: "file" },
|
|
12857
|
-
() =>
|
|
12857
|
+
() => _chunkX6HIIHQOjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12858
12858
|
);
|
|
12859
12859
|
bundleResult = graph.root;
|
|
12860
12860
|
} catch (error) {
|
|
@@ -12870,7 +12870,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12870
12870
|
const fileInputBindings = _chunkPKV5CD3Wjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12871
12871
|
_optionalChain([compilerManifest, 'optionalAccess', _493 => _493.staticPipeline])
|
|
12872
12872
|
);
|
|
12873
|
-
const stagedFileInputs = await
|
|
12873
|
+
const stagedFileInputs = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
12874
12874
|
"cli.play_stage_inputs",
|
|
12875
12875
|
{
|
|
12876
12876
|
targetKind: "file",
|
|
@@ -12917,7 +12917,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12917
12917
|
};
|
|
12918
12918
|
if (options.watch) {
|
|
12919
12919
|
progress.phase("starting run");
|
|
12920
|
-
const finalStatus = await
|
|
12920
|
+
const finalStatus = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
12921
12921
|
"cli.play_start_watch",
|
|
12922
12922
|
{ targetKind: "file", playName },
|
|
12923
12923
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12979,7 +12979,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12979
12979
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12980
12980
|
}
|
|
12981
12981
|
progress.phase("starting run");
|
|
12982
|
-
const started = await
|
|
12982
|
+
const started = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
12983
12983
|
"cli.play_start_unwatched",
|
|
12984
12984
|
{ targetKind: "file", playName },
|
|
12985
12985
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _500 => _500.onSubmission]) }).catch(async (error) => {
|
|
@@ -13045,9 +13045,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13045
13045
|
if (options.target.kind !== "name") {
|
|
13046
13046
|
throw new Error("Expected a named play run target.");
|
|
13047
13047
|
}
|
|
13048
|
-
const client = new (0,
|
|
13049
|
-
let cliAdmission =
|
|
13050
|
-
const progress = _nullishCoalesce(
|
|
13048
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)(playRunClientOptions(options));
|
|
13049
|
+
let cliAdmission = _chunk5WYH2LAPjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13050
|
+
const progress = _nullishCoalesce(_chunkGLDBMKTVjs.getActiveCliProgress.call(void 0, ), () => ( _chunkGLDBMKTVjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13051
13051
|
const playName = options.target.name;
|
|
13052
13052
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13053
13053
|
try {
|
|
@@ -13065,7 +13065,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13065
13065
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13066
13066
|
const capabilityController = new AbortController();
|
|
13067
13067
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13068
|
-
admissionCapability =
|
|
13068
|
+
admissionCapability = _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
13069
13069
|
"cli.play_admission_capability_prefetch",
|
|
13070
13070
|
{ targetKind: "name", playName },
|
|
13071
13071
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13076,14 +13076,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13076
13076
|
}
|
|
13077
13077
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13078
13078
|
progress.phase("loading play definition");
|
|
13079
|
-
return
|
|
13079
|
+
return _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
13080
13080
|
"cli.play_load_definition",
|
|
13081
13081
|
{ targetKind: "name", playName, skipped: false },
|
|
13082
13082
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13083
13083
|
command: "run"
|
|
13084
13084
|
})
|
|
13085
13085
|
);
|
|
13086
|
-
})() : (
|
|
13086
|
+
})() : (_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
13087
13087
|
phase: "cli.play_load_definition",
|
|
13088
13088
|
ms: 0,
|
|
13089
13089
|
ok: true,
|
|
@@ -13092,7 +13092,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13092
13092
|
skipped: true
|
|
13093
13093
|
}), null);
|
|
13094
13094
|
progress.phase("selecting revision");
|
|
13095
|
-
const selectedRevisionId = await
|
|
13095
|
+
const selectedRevisionId = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
13096
13096
|
"cli.play_select_revision",
|
|
13097
13097
|
{
|
|
13098
13098
|
targetKind: "name",
|
|
@@ -13117,10 +13117,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13117
13117
|
..._chunkPKV5CD3Wjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13118
13118
|
] : [];
|
|
13119
13119
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13120
|
-
await
|
|
13120
|
+
await _chunk5WYH2LAPjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13121
13121
|
cliAdmission = false;
|
|
13122
13122
|
}
|
|
13123
|
-
const stagedFileInputs = await
|
|
13123
|
+
const stagedFileInputs = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
13124
13124
|
"cli.play_stage_inputs",
|
|
13125
13125
|
{
|
|
13126
13126
|
targetKind: "name",
|
|
@@ -13164,7 +13164,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13164
13164
|
});
|
|
13165
13165
|
if (options.watch) {
|
|
13166
13166
|
progress.phase("starting run");
|
|
13167
|
-
const finalStatus = await
|
|
13167
|
+
const finalStatus = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
13168
13168
|
"cli.play_start_watch",
|
|
13169
13169
|
{ targetKind: "name", playName },
|
|
13170
13170
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13229,7 +13229,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13229
13229
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13230
13230
|
}
|
|
13231
13231
|
progress.phase("starting run");
|
|
13232
|
-
const started = await
|
|
13232
|
+
const started = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
13233
13233
|
"cli.play_start_unwatched",
|
|
13234
13234
|
{ targetKind: "name", playName },
|
|
13235
13235
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _513 => _513.onSubmission]) }).catch(async (error) => {
|
|
@@ -13289,7 +13289,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13289
13289
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13290
13290
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _521 => _521.exec, 'call', _522 => _522(status.runId), 'optionalAccess', _523 => _523[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13291
13291
|
if (!terminal) {
|
|
13292
|
-
|
|
13292
|
+
_chunk4ZKZS43Njs.writeExecutionOutput.call(void 0,
|
|
13293
13293
|
{
|
|
13294
13294
|
id: status.runId,
|
|
13295
13295
|
status: status.status,
|
|
@@ -13369,10 +13369,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13369
13369
|
};
|
|
13370
13370
|
}
|
|
13371
13371
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13372
|
-
const allCollections =
|
|
13372
|
+
const allCollections = _chunk4ZKZS43Njs.outputCollections.call(void 0, data).map(
|
|
13373
13373
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13374
13374
|
);
|
|
13375
|
-
|
|
13375
|
+
_chunk4ZKZS43Njs.writeExecutionOutput.call(void 0,
|
|
13376
13376
|
{
|
|
13377
13377
|
id: status.runId,
|
|
13378
13378
|
status: status.status,
|
|
@@ -13393,7 +13393,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13393
13393
|
}
|
|
13394
13394
|
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;
|
|
13395
13395
|
async function handlePlayRun(args, hooks) {
|
|
13396
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13396
|
+
const parsedOptions = Array.isArray(args) ? _chunk7B7A36XZjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13397
13397
|
const options = parsedOptions.runIdFile ? {
|
|
13398
13398
|
...parsedOptions,
|
|
13399
13399
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13410,7 +13410,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13410
13410
|
JSON.stringify({
|
|
13411
13411
|
version: 1,
|
|
13412
13412
|
admissionState: "submitted_unknown",
|
|
13413
|
-
baseUrl: new (0,
|
|
13413
|
+
baseUrl: new (0, _chunkBU5Y7HODjs.DeeplineClient)().baseUrl,
|
|
13414
13414
|
...intent
|
|
13415
13415
|
})
|
|
13416
13416
|
);
|
|
@@ -13639,7 +13639,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13639
13639
|
);
|
|
13640
13640
|
return `${lines.join("\n")}
|
|
13641
13641
|
|
|
13642
|
-
${
|
|
13642
|
+
${_chunkZZD245Z2js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13643
13643
|
}
|
|
13644
13644
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13645
13645
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13663,7 +13663,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13663
13663
|
}
|
|
13664
13664
|
}
|
|
13665
13665
|
async function handleRunGet(args) {
|
|
13666
|
-
const selection =
|
|
13666
|
+
const selection = _chunkZZD245Z2js.parseJsonFields.call(void 0,
|
|
13667
13667
|
args,
|
|
13668
13668
|
args.includes("--config") ? "config" : "get"
|
|
13669
13669
|
);
|
|
@@ -13676,7 +13676,7 @@ async function handleRunGet(args) {
|
|
|
13676
13676
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13677
13677
|
return 1;
|
|
13678
13678
|
}
|
|
13679
|
-
const client = new (0,
|
|
13679
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
13680
13680
|
const timing = args.includes("--timing");
|
|
13681
13681
|
const web = args.includes("--web");
|
|
13682
13682
|
if (web || args.includes("--web-url")) {
|
|
@@ -13694,8 +13694,8 @@ async function handleRunGet(args) {
|
|
|
13694
13694
|
const dashboardUrl2 = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13695
13695
|
const runUrl2 = _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
13696
13696
|
if (web) {
|
|
13697
|
-
const opened =
|
|
13698
|
-
|
|
13697
|
+
const opened = _chunkZZD245Z2js.openInBrowser.call(void 0, runUrl2);
|
|
13698
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
13699
13699
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
13700
13700
|
{
|
|
13701
13701
|
json: args.includes("--json"),
|
|
@@ -13706,7 +13706,7 @@ async function handleRunGet(args) {
|
|
|
13706
13706
|
);
|
|
13707
13707
|
return 0;
|
|
13708
13708
|
}
|
|
13709
|
-
|
|
13709
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
13710
13710
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
13711
13711
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
13712
13712
|
` }
|
|
@@ -13731,7 +13731,7 @@ async function handleRunGet(args) {
|
|
|
13731
13731
|
"This server does not support recorded configuration reads."
|
|
13732
13732
|
);
|
|
13733
13733
|
}
|
|
13734
|
-
|
|
13734
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
13735
13735
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13736
13736
|
{ json: true, fields: selection.fields }
|
|
13737
13737
|
);
|
|
@@ -13744,7 +13744,7 @@ async function handleRunGet(args) {
|
|
|
13744
13744
|
timing,
|
|
13745
13745
|
() => client.getRunInput(runId)
|
|
13746
13746
|
);
|
|
13747
|
-
|
|
13747
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13748
13748
|
return 0;
|
|
13749
13749
|
}
|
|
13750
13750
|
const full = args.includes("--full");
|
|
@@ -13757,7 +13757,7 @@ async function handleRunGet(args) {
|
|
|
13757
13757
|
failedLogs: args.includes("--log-failed")
|
|
13758
13758
|
})
|
|
13759
13759
|
);
|
|
13760
|
-
if (status.package)
|
|
13760
|
+
if (status.package) _chunk4ZKZS43Njs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13761
13761
|
if (!status.package) {
|
|
13762
13762
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13763
13763
|
"runs get",
|
|
@@ -13771,8 +13771,8 @@ async function handleRunGet(args) {
|
|
|
13771
13771
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13772
13772
|
const legacyDashboardUrl = legacyPlayName ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13773
13773
|
const legacyRunUrl = legacyPlayName ? _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
13774
|
-
if (
|
|
13775
|
-
|
|
13774
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
13775
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
13776
13776
|
{
|
|
13777
13777
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13778
13778
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -13783,7 +13783,7 @@ async function handleRunGet(args) {
|
|
|
13783
13783
|
} else {
|
|
13784
13784
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13785
13785
|
if (legacyRunUrl)
|
|
13786
|
-
|
|
13786
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
13787
13787
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
13788
13788
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
13789
13789
|
` }
|
|
@@ -13813,11 +13813,11 @@ async function handleRunGet(args) {
|
|
|
13813
13813
|
)
|
|
13814
13814
|
]);
|
|
13815
13815
|
const hitLines = formatRunHitsLines(hits);
|
|
13816
|
-
const json =
|
|
13816
|
+
const json = _chunkZZD245Z2js.argsWantJson.call(void 0, args);
|
|
13817
13817
|
const playName = resolveRunPlayName(status, runId);
|
|
13818
13818
|
const dashboardUrl = playName ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13819
13819
|
const runUrl = playName ? _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
13820
|
-
|
|
13820
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
13821
13821
|
{
|
|
13822
13822
|
...overview,
|
|
13823
13823
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13922,9 +13922,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13922
13922
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13923
13923
|
return 1;
|
|
13924
13924
|
}
|
|
13925
|
-
const status = await new (0,
|
|
13926
|
-
if (
|
|
13927
|
-
|
|
13925
|
+
const status = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().runs.status(runId);
|
|
13926
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
13927
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13928
13928
|
return 0;
|
|
13929
13929
|
}
|
|
13930
13930
|
if (!status.available) {
|
|
@@ -13964,7 +13964,7 @@ async function handleRunsRerun(args) {
|
|
|
13964
13964
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13965
13965
|
return 1;
|
|
13966
13966
|
}
|
|
13967
|
-
const options = { json:
|
|
13967
|
+
const options = { json: _chunkZZD245Z2js.argsWantJson.call(void 0, args) };
|
|
13968
13968
|
for (let index = 0; index < args.length; index += 1) {
|
|
13969
13969
|
if (args[index] === "--idempotency-key") {
|
|
13970
13970
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14030,8 +14030,8 @@ ${usage2}
|
|
|
14030
14030
|
Discover Plays: ${next.discover}
|
|
14031
14031
|
Active runs: ${next.running}`
|
|
14032
14032
|
);
|
|
14033
|
-
if (
|
|
14034
|
-
|
|
14033
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
14034
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
14035
14035
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14036
14036
|
{ json: true }
|
|
14037
14037
|
);
|
|
@@ -14046,7 +14046,7 @@ Active runs: ${next.running}`
|
|
|
14046
14046
|
console.error("--offset requires --play.");
|
|
14047
14047
|
return 1;
|
|
14048
14048
|
}
|
|
14049
|
-
const client = new (0,
|
|
14049
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
14050
14050
|
const page = await withRunReadTiming(
|
|
14051
14051
|
"runs list",
|
|
14052
14052
|
"run inventory",
|
|
@@ -14113,14 +14113,14 @@ Active runs: ${next.running}`
|
|
|
14113
14113
|
return lines2.join("\n");
|
|
14114
14114
|
});
|
|
14115
14115
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14116
|
-
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}${
|
|
14116
|
+
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}${_chunkZZD245Z2js.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14117
14117
|
if (page.hasMore) {
|
|
14118
14118
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14119
14119
|
lines.push(
|
|
14120
14120
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14121
14121
|
);
|
|
14122
14122
|
}
|
|
14123
|
-
|
|
14123
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
14124
14124
|
{
|
|
14125
14125
|
runs,
|
|
14126
14126
|
count: runs.length,
|
|
@@ -14134,7 +14134,7 @@ Active runs: ${next.running}`
|
|
|
14134
14134
|
},
|
|
14135
14135
|
render: { sections: [{ title: "runs", lines }] }
|
|
14136
14136
|
},
|
|
14137
|
-
{ json:
|
|
14137
|
+
{ json: _chunkZZD245Z2js.argsWantJson.call(void 0, args) }
|
|
14138
14138
|
);
|
|
14139
14139
|
return 0;
|
|
14140
14140
|
}
|
|
@@ -14164,7 +14164,7 @@ async function handleRunTail(args) {
|
|
|
14164
14164
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14165
14165
|
return 1;
|
|
14166
14166
|
}
|
|
14167
|
-
const parsed =
|
|
14167
|
+
const parsed = _chunkCK5MA6S6js.parseLogLevel.call(void 0, value);
|
|
14168
14168
|
if (!parsed) {
|
|
14169
14169
|
console.error(
|
|
14170
14170
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14202,9 +14202,9 @@ async function handleRunTail(args) {
|
|
|
14202
14202
|
);
|
|
14203
14203
|
return 1;
|
|
14204
14204
|
}
|
|
14205
|
-
const client = new (0,
|
|
14205
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
14206
14206
|
const jsonLines = args.includes("--jsonl");
|
|
14207
|
-
const jsonOutput = !jsonLines &&
|
|
14207
|
+
const jsonOutput = !jsonLines && _chunkZZD245Z2js.argsWantJson.call(void 0, args);
|
|
14208
14208
|
const compact = args.includes("--compact");
|
|
14209
14209
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14210
14210
|
const compactState = {
|
|
@@ -14285,7 +14285,7 @@ async function handleRunLogs(args) {
|
|
|
14285
14285
|
]);
|
|
14286
14286
|
const cursorIndex = args.indexOf("--cursor");
|
|
14287
14287
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14288
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14288
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkCK5MA6S6js.isRunLogsCursor.call(void 0, cursorValue));
|
|
14289
14289
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14290
14290
|
return handleRunEventSearch(args);
|
|
14291
14291
|
}
|
|
@@ -14319,7 +14319,7 @@ async function handleRunLogs(args) {
|
|
|
14319
14319
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14320
14320
|
return 1;
|
|
14321
14321
|
}
|
|
14322
|
-
const parsed =
|
|
14322
|
+
const parsed = _chunkCK5MA6S6js.parseLogLevel.call(void 0, value);
|
|
14323
14323
|
if (!parsed) {
|
|
14324
14324
|
console.error(
|
|
14325
14325
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14366,12 +14366,12 @@ async function handleRunLogs(args) {
|
|
|
14366
14366
|
);
|
|
14367
14367
|
return 1;
|
|
14368
14368
|
}
|
|
14369
|
-
const client = new (0,
|
|
14369
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
14370
14370
|
if (outPath) {
|
|
14371
14371
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14372
|
-
const logs = result2.entries.filter((line) =>
|
|
14372
|
+
const logs = result2.entries.filter((line) => _chunkCK5MA6S6js.logLevelReaches.call(void 0, _chunkCK5MA6S6js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkCK5MA6S6js.classifyLogLine.call(void 0, line).line);
|
|
14373
14373
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14374
|
-
|
|
14374
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
14375
14375
|
{
|
|
14376
14376
|
runId: result2.runId,
|
|
14377
14377
|
log_path: outPath,
|
|
@@ -14394,7 +14394,7 @@ async function handleRunLogs(args) {
|
|
|
14394
14394
|
]
|
|
14395
14395
|
}
|
|
14396
14396
|
},
|
|
14397
|
-
{ json:
|
|
14397
|
+
{ json: _chunkZZD245Z2js.argsWantJson.call(void 0, args) }
|
|
14398
14398
|
);
|
|
14399
14399
|
return 0;
|
|
14400
14400
|
}
|
|
@@ -14425,7 +14425,7 @@ async function handleRunLogs(args) {
|
|
|
14425
14425
|
}
|
|
14426
14426
|
};
|
|
14427
14427
|
const text = buildRunLogsText(filteredResult);
|
|
14428
|
-
|
|
14428
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
14429
14429
|
{
|
|
14430
14430
|
runId: result.runId,
|
|
14431
14431
|
totalCount: result.totalCount,
|
|
@@ -14449,7 +14449,7 @@ async function handleRunLogs(args) {
|
|
|
14449
14449
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14450
14450
|
},
|
|
14451
14451
|
{
|
|
14452
|
-
json:
|
|
14452
|
+
json: _chunkZZD245Z2js.argsWantJson.call(void 0, args),
|
|
14453
14453
|
text
|
|
14454
14454
|
}
|
|
14455
14455
|
);
|
|
@@ -14473,7 +14473,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14473
14473
|
);
|
|
14474
14474
|
}
|
|
14475
14475
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14476
|
-
(entry) =>
|
|
14476
|
+
(entry) => _chunkCK5MA6S6js.logLevelReaches.call(void 0, _chunkCK5MA6S6js.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14477
14477
|
);
|
|
14478
14478
|
const selected = matching.slice(-limit);
|
|
14479
14479
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14483,7 +14483,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14483
14483
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _555 => _555.at, 'call', _556 => _556(-1), 'optionalAccess', _557 => _557.seq]), () => ( null)),
|
|
14484
14484
|
truncated: result.truncated || olderMatchesExist,
|
|
14485
14485
|
hasMore: olderMatchesExist,
|
|
14486
|
-
nextCursor: olderMatchesExist ?
|
|
14486
|
+
nextCursor: olderMatchesExist ? _chunkCK5MA6S6js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14487
14487
|
};
|
|
14488
14488
|
}
|
|
14489
14489
|
async function handleRunEventSearch(args) {
|
|
@@ -14550,7 +14550,7 @@ ${usage2}`);
|
|
|
14550
14550
|
namespace,
|
|
14551
14551
|
...backend ? { backend } : {}
|
|
14552
14552
|
} : void 0;
|
|
14553
|
-
const client = new (0,
|
|
14553
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
14554
14554
|
const result = await client.runs.searchEvents({
|
|
14555
14555
|
...runId ? { runId } : {},
|
|
14556
14556
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14622,7 +14622,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14622
14622
|
"--limit",
|
|
14623
14623
|
String(limit)
|
|
14624
14624
|
].join(" ") : null;
|
|
14625
|
-
|
|
14625
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
14626
14626
|
{
|
|
14627
14627
|
events,
|
|
14628
14628
|
nextCursor: result.nextCursor,
|
|
@@ -14633,14 +14633,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14633
14633
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14634
14634
|
},
|
|
14635
14635
|
{
|
|
14636
|
-
json:
|
|
14636
|
+
json: _chunkZZD245Z2js.argsWantJson.call(void 0, args),
|
|
14637
14637
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14638
14638
|
}
|
|
14639
14639
|
);
|
|
14640
14640
|
return 0;
|
|
14641
14641
|
}
|
|
14642
14642
|
function buildRunLogsText(result) {
|
|
14643
|
-
const lines = result.entries.map((line) =>
|
|
14643
|
+
const lines = result.entries.map((line) => _chunkCK5MA6S6js.classifyLogLine.call(void 0, line).line);
|
|
14644
14644
|
if (result.warning) {
|
|
14645
14645
|
if (lines.length > 0) lines.push("");
|
|
14646
14646
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14674,7 +14674,7 @@ async function handleRunStop(args) {
|
|
|
14674
14674
|
reason = args[++index];
|
|
14675
14675
|
}
|
|
14676
14676
|
}
|
|
14677
|
-
const client = new (0,
|
|
14677
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
14678
14678
|
const result = await client.runs.stop(runId, { reason });
|
|
14679
14679
|
const state = resolveRunStopState(result);
|
|
14680
14680
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14689,7 +14689,7 @@ async function handleRunStop(args) {
|
|
|
14689
14689
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14690
14690
|
`inspect: deepline runs get ${runId} --full`
|
|
14691
14691
|
];
|
|
14692
|
-
|
|
14692
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
14693
14693
|
{
|
|
14694
14694
|
...cancelling,
|
|
14695
14695
|
state,
|
|
@@ -14704,7 +14704,7 @@ async function handleRunStop(args) {
|
|
|
14704
14704
|
]
|
|
14705
14705
|
}
|
|
14706
14706
|
},
|
|
14707
|
-
{ json:
|
|
14707
|
+
{ json: _chunkZZD245Z2js.argsWantJson.call(void 0, args) }
|
|
14708
14708
|
);
|
|
14709
14709
|
return 0;
|
|
14710
14710
|
}
|
|
@@ -14721,7 +14721,7 @@ async function handleRunStop(args) {
|
|
|
14721
14721
|
];
|
|
14722
14722
|
process.stderr.write(`${lines2.join("\n")}
|
|
14723
14723
|
`);
|
|
14724
|
-
|
|
14724
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
14725
14725
|
{
|
|
14726
14726
|
...result,
|
|
14727
14727
|
render: {
|
|
@@ -14736,7 +14736,7 @@ async function handleRunStop(args) {
|
|
|
14736
14736
|
]
|
|
14737
14737
|
}
|
|
14738
14738
|
},
|
|
14739
|
-
{ json:
|
|
14739
|
+
{ json: _chunkZZD245Z2js.argsWantJson.call(void 0, args) }
|
|
14740
14740
|
);
|
|
14741
14741
|
return 1;
|
|
14742
14742
|
}
|
|
@@ -14747,12 +14747,12 @@ async function handleRunStop(args) {
|
|
|
14747
14747
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14748
14748
|
] : []
|
|
14749
14749
|
];
|
|
14750
|
-
|
|
14750
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
14751
14751
|
{
|
|
14752
14752
|
...result,
|
|
14753
14753
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14754
14754
|
},
|
|
14755
|
-
{ json:
|
|
14755
|
+
{ json: _chunkZZD245Z2js.argsWantJson.call(void 0, args) }
|
|
14756
14756
|
);
|
|
14757
14757
|
return 0;
|
|
14758
14758
|
}
|
|
@@ -14802,18 +14802,18 @@ async function handleRunStopAll(args) {
|
|
|
14802
14802
|
reason = args[++index];
|
|
14803
14803
|
}
|
|
14804
14804
|
}
|
|
14805
|
-
const client = new (0,
|
|
14805
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
14806
14806
|
if (dryRun) {
|
|
14807
14807
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14808
14808
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14809
|
-
|
|
14809
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
14810
14810
|
{
|
|
14811
14811
|
...result2,
|
|
14812
14812
|
render: {
|
|
14813
14813
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14814
14814
|
}
|
|
14815
14815
|
},
|
|
14816
|
-
{ json:
|
|
14816
|
+
{ json: _chunkZZD245Z2js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14817
14817
|
` }
|
|
14818
14818
|
);
|
|
14819
14819
|
return 0;
|
|
@@ -14826,17 +14826,17 @@ async function handleRunStopAll(args) {
|
|
|
14826
14826
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14827
14827
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14828
14828
|
];
|
|
14829
|
-
|
|
14829
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
14830
14830
|
{
|
|
14831
14831
|
...result,
|
|
14832
14832
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14833
14833
|
},
|
|
14834
|
-
{ json:
|
|
14834
|
+
{ json: _chunkZZD245Z2js.argsWantJson.call(void 0, args) }
|
|
14835
14835
|
);
|
|
14836
14836
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14837
14837
|
}
|
|
14838
14838
|
async function handleRunExport(args) {
|
|
14839
|
-
const selection =
|
|
14839
|
+
const selection = _chunkZZD245Z2js.parseJsonFields.call(void 0, args, "export");
|
|
14840
14840
|
args = selection.args;
|
|
14841
14841
|
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]";
|
|
14842
14842
|
let runId;
|
|
@@ -14907,17 +14907,17 @@ async function handleRunExport(args) {
|
|
|
14907
14907
|
"INVALID_ARGUMENT"
|
|
14908
14908
|
);
|
|
14909
14909
|
}
|
|
14910
|
-
const client = new (0,
|
|
14910
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
14911
14911
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14912
14912
|
assertRunExportStatusIdentity(status, runId);
|
|
14913
14913
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14914
|
-
const progress =
|
|
14914
|
+
const progress = _chunkGLDBMKTVjs.createCliProgress.call(void 0, !_chunkZZD245Z2js.argsWantJson.call(void 0, args));
|
|
14915
14915
|
try {
|
|
14916
14916
|
await waitForPlayCompletionByWatch({
|
|
14917
14917
|
client,
|
|
14918
14918
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14919
14919
|
workflowId: runId,
|
|
14920
|
-
jsonOutput:
|
|
14920
|
+
jsonOutput: _chunkZZD245Z2js.argsWantJson.call(void 0, args),
|
|
14921
14921
|
emitLogs: false,
|
|
14922
14922
|
waitTimeoutMs,
|
|
14923
14923
|
startedAt: Date.now(),
|
|
@@ -14985,7 +14985,7 @@ async function handleRunExport(args) {
|
|
|
14985
14985
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.totalRows]), () => ( null)),
|
|
14986
14986
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14987
14987
|
...rowFailures ? { rowFailures } : {},
|
|
14988
|
-
columns:
|
|
14988
|
+
columns: _chunk4ZKZS43Njs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _573 => _573.rowsInfo, 'access', _574 => _574.columns]), () => ( []))),
|
|
14989
14989
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14990
14990
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14991
14991
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -15019,8 +15019,8 @@ async function handleRunExport(args) {
|
|
|
15019
15019
|
"utf-8"
|
|
15020
15020
|
);
|
|
15021
15021
|
}
|
|
15022
|
-
|
|
15023
|
-
json:
|
|
15022
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, payload, {
|
|
15023
|
+
json: _chunkZZD245Z2js.argsWantJson.call(void 0, args),
|
|
15024
15024
|
fields: selection.fields,
|
|
15025
15025
|
text: `${lines.join("\n")}
|
|
15026
15026
|
`
|
|
@@ -15054,10 +15054,10 @@ async function handlePlayGet(args) {
|
|
|
15054
15054
|
);
|
|
15055
15055
|
return 2;
|
|
15056
15056
|
}
|
|
15057
|
-
const client = new (0,
|
|
15057
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
15058
15058
|
const explicitJson = args.includes("--json");
|
|
15059
15059
|
const sourceOutput = args.includes("--source");
|
|
15060
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
15060
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkZZD245Z2js.argsWantJson.call(void 0, args);
|
|
15061
15061
|
const requestedRevisionFlags = [
|
|
15062
15062
|
args.includes("--working"),
|
|
15063
15063
|
args.includes("--live"),
|
|
@@ -15120,7 +15120,7 @@ async function handlePlayGet(args) {
|
|
|
15120
15120
|
}
|
|
15121
15121
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15122
15122
|
if (jsonOutput) {
|
|
15123
|
-
|
|
15123
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, {
|
|
15124
15124
|
...detail,
|
|
15125
15125
|
...materializedFile ? {
|
|
15126
15126
|
message: loadedMessage,
|
|
@@ -15212,8 +15212,8 @@ async function handlePlayVersions(args) {
|
|
|
15212
15212
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15213
15213
|
return 1;
|
|
15214
15214
|
}
|
|
15215
|
-
const client = new (0,
|
|
15216
|
-
const jsonOutput =
|
|
15215
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
15216
|
+
const jsonOutput = _chunkZZD245Z2js.argsWantJson.call(void 0, args);
|
|
15217
15217
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15218
15218
|
command: "versions"
|
|
15219
15219
|
});
|
|
@@ -15221,7 +15221,7 @@ async function handlePlayVersions(args) {
|
|
|
15221
15221
|
parseReferencedPlayTarget(playName).playName
|
|
15222
15222
|
);
|
|
15223
15223
|
if (jsonOutput) {
|
|
15224
|
-
|
|
15224
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, { versions });
|
|
15225
15225
|
return 0;
|
|
15226
15226
|
}
|
|
15227
15227
|
if (versions.length === 0) {
|
|
@@ -15264,8 +15264,8 @@ async function handlePlayCost(args) {
|
|
|
15264
15264
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
15265
15265
|
return 2;
|
|
15266
15266
|
}
|
|
15267
|
-
const result = await new (0,
|
|
15268
|
-
if (
|
|
15267
|
+
const result = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
15268
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
15269
15269
|
else
|
|
15270
15270
|
console.log(
|
|
15271
15271
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -15273,9 +15273,9 @@ async function handlePlayCost(args) {
|
|
|
15273
15273
|
return 0;
|
|
15274
15274
|
}
|
|
15275
15275
|
async function handlePlayList(args) {
|
|
15276
|
-
const jsonOutput =
|
|
15276
|
+
const jsonOutput = _chunkZZD245Z2js.argsWantJson.call(void 0, args);
|
|
15277
15277
|
const showCost = args.includes("--show-cost");
|
|
15278
|
-
const client = new (0,
|
|
15278
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
15279
15279
|
const categoriesIndex = args.indexOf("--categories");
|
|
15280
15280
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _594 => _594[categoriesIndex + 1], 'optionalAccess', _595 => _595.trim, 'call', _596 => _596()]) : void 0;
|
|
15281
15281
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15373,7 +15373,7 @@ async function handlePlayList(args) {
|
|
|
15373
15373
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15374
15374
|
lines.push(`Next page: ${nextPage}`);
|
|
15375
15375
|
}
|
|
15376
|
-
|
|
15376
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
15377
15377
|
{
|
|
15378
15378
|
plays,
|
|
15379
15379
|
count: plays.length,
|
|
@@ -15391,7 +15391,7 @@ async function handlePlayList(args) {
|
|
|
15391
15391
|
}
|
|
15392
15392
|
async function handlePlayPin(args, pinned) {
|
|
15393
15393
|
const target = _optionalChain([args, 'access', _605 => _605.find, 'call', _606 => _606((arg) => !arg.startsWith("-")), 'optionalAccess', _607 => _607.trim, 'call', _608 => _608()]);
|
|
15394
|
-
const jsonOutput =
|
|
15394
|
+
const jsonOutput = _chunkZZD245Z2js.argsWantJson.call(void 0, args);
|
|
15395
15395
|
const dryRun = args.includes("--dry-run");
|
|
15396
15396
|
if (!target) {
|
|
15397
15397
|
console.error(
|
|
@@ -15409,11 +15409,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15409
15409
|
const name = parsedTarget.playName;
|
|
15410
15410
|
const plan = { name, pinned, dryRun };
|
|
15411
15411
|
if (dryRun) {
|
|
15412
|
-
|
|
15412
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, plan);
|
|
15413
15413
|
return 0;
|
|
15414
15414
|
}
|
|
15415
|
-
const result = await new (0,
|
|
15416
|
-
if (jsonOutput)
|
|
15415
|
+
const result = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15416
|
+
if (jsonOutput) _chunkZZD245Z2js.printCompactJson.call(void 0, result);
|
|
15417
15417
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15418
15418
|
return 0;
|
|
15419
15419
|
}
|
|
@@ -15539,12 +15539,12 @@ async function handlePlayGrep(args) {
|
|
|
15539
15539
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15540
15540
|
return 1;
|
|
15541
15541
|
}
|
|
15542
|
-
const client = new (0,
|
|
15542
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
15543
15543
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15544
15544
|
summarizePlayGrepResult
|
|
15545
15545
|
);
|
|
15546
|
-
if (
|
|
15547
|
-
|
|
15546
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
15547
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, {
|
|
15548
15548
|
plays: results,
|
|
15549
15549
|
count: results.length,
|
|
15550
15550
|
query,
|
|
@@ -15567,7 +15567,7 @@ async function handlePlayGrep(args) {
|
|
|
15567
15567
|
return 0;
|
|
15568
15568
|
}
|
|
15569
15569
|
async function handlePlayDescribe(args) {
|
|
15570
|
-
const selection =
|
|
15570
|
+
const selection = _chunkZZD245Z2js.parseJsonFields.call(void 0, args, "describe");
|
|
15571
15571
|
args = selection.args;
|
|
15572
15572
|
const playName = args[0];
|
|
15573
15573
|
if (!playName) {
|
|
@@ -15601,8 +15601,8 @@ async function handlePlayDescribe(args) {
|
|
|
15601
15601
|
`deepline plays check ${playName}`,
|
|
15602
15602
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15603
15603
|
];
|
|
15604
|
-
if (
|
|
15605
|
-
|
|
15604
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
15605
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, {
|
|
15606
15606
|
ok: false,
|
|
15607
15607
|
error: { message },
|
|
15608
15608
|
next
|
|
@@ -15616,7 +15616,7 @@ async function handlePlayDescribe(args) {
|
|
|
15616
15616
|
}
|
|
15617
15617
|
return 2;
|
|
15618
15618
|
}
|
|
15619
|
-
const client = new (0,
|
|
15619
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
15620
15620
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15621
15621
|
command: "describe"
|
|
15622
15622
|
});
|
|
@@ -15626,9 +15626,9 @@ async function handlePlayDescribe(args) {
|
|
|
15626
15626
|
compact: args.includes("--compact")
|
|
15627
15627
|
}
|
|
15628
15628
|
);
|
|
15629
|
-
if (
|
|
15630
|
-
if (selection.fields)
|
|
15631
|
-
else
|
|
15629
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
15630
|
+
if (selection.fields) _chunkZZD245Z2js.printJson.call(void 0, play, selection.fields);
|
|
15631
|
+
else _chunkZZD245Z2js.printCompactJson.call(void 0, play);
|
|
15632
15632
|
return 0;
|
|
15633
15633
|
}
|
|
15634
15634
|
printPlayDescription(play);
|
|
@@ -15650,7 +15650,7 @@ async function handlePlaySave(args) {
|
|
|
15650
15650
|
}
|
|
15651
15651
|
let graph;
|
|
15652
15652
|
try {
|
|
15653
|
-
graph = await
|
|
15653
|
+
graph = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
15654
15654
|
"cli.play_save_bundle_graph",
|
|
15655
15655
|
{ targetKind: "file" },
|
|
15656
15656
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15672,7 +15672,7 @@ async function handlePlaySave(args) {
|
|
|
15672
15672
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15673
15673
|
};
|
|
15674
15674
|
if (options.jsonOutput) {
|
|
15675
|
-
|
|
15675
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, result);
|
|
15676
15676
|
} else {
|
|
15677
15677
|
console.error(result.message);
|
|
15678
15678
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15694,7 +15694,7 @@ async function handlePlaySave(args) {
|
|
|
15694
15694
|
};
|
|
15695
15695
|
if (options.dryRun) {
|
|
15696
15696
|
if (options.jsonOutput) {
|
|
15697
|
-
|
|
15697
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, dryRun);
|
|
15698
15698
|
} else {
|
|
15699
15699
|
console.log(`Dry run: ${playName}`);
|
|
15700
15700
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15703,14 +15703,14 @@ async function handlePlaySave(args) {
|
|
|
15703
15703
|
}
|
|
15704
15704
|
return 0;
|
|
15705
15705
|
}
|
|
15706
|
-
const client = new (0,
|
|
15706
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
15707
15707
|
try {
|
|
15708
|
-
await
|
|
15708
|
+
await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
15709
15709
|
"cli.play_save_compile_manifests",
|
|
15710
15710
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15711
15711
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15712
15712
|
);
|
|
15713
|
-
const saved = await
|
|
15713
|
+
const saved = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
15714
15714
|
"cli.play_save_register_draft",
|
|
15715
15715
|
{ targetKind: "file", playName, artifactHash },
|
|
15716
15716
|
() => client.registerPlayArtifact({
|
|
@@ -15739,7 +15739,7 @@ async function handlePlaySave(args) {
|
|
|
15739
15739
|
}
|
|
15740
15740
|
};
|
|
15741
15741
|
if (options.jsonOutput) {
|
|
15742
|
-
|
|
15742
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, result);
|
|
15743
15743
|
} else {
|
|
15744
15744
|
console.log(
|
|
15745
15745
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15765,7 +15765,7 @@ async function handlePlayPublish(args) {
|
|
|
15765
15765
|
}
|
|
15766
15766
|
const { target: playName, useLatest } = options;
|
|
15767
15767
|
let revisionId = options.revisionId;
|
|
15768
|
-
const client = new (0,
|
|
15768
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
15769
15769
|
if (isFileTarget(playName)) {
|
|
15770
15770
|
if (revisionId || useLatest) {
|
|
15771
15771
|
console.error(
|
|
@@ -15775,7 +15775,7 @@ async function handlePlayPublish(args) {
|
|
|
15775
15775
|
}
|
|
15776
15776
|
let graph;
|
|
15777
15777
|
try {
|
|
15778
|
-
graph = await
|
|
15778
|
+
graph = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
15779
15779
|
"cli.play_publish_bundle_graph",
|
|
15780
15780
|
{ targetKind: "file" },
|
|
15781
15781
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15797,7 +15797,7 @@ async function handlePlayPublish(args) {
|
|
|
15797
15797
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15798
15798
|
};
|
|
15799
15799
|
if (options.jsonOutput) {
|
|
15800
|
-
|
|
15800
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, result3);
|
|
15801
15801
|
} else {
|
|
15802
15802
|
console.error(result3.message);
|
|
15803
15803
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15820,7 +15820,7 @@ async function handlePlayPublish(args) {
|
|
|
15820
15820
|
};
|
|
15821
15821
|
if (options.dryRun) {
|
|
15822
15822
|
if (options.jsonOutput) {
|
|
15823
|
-
|
|
15823
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, dryRun);
|
|
15824
15824
|
} else {
|
|
15825
15825
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15826
15826
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15839,12 +15839,12 @@ async function handlePlayPublish(args) {
|
|
|
15839
15839
|
}
|
|
15840
15840
|
}
|
|
15841
15841
|
try {
|
|
15842
|
-
await
|
|
15842
|
+
await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
15843
15843
|
"cli.play_publish_compile_manifests",
|
|
15844
15844
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15845
15845
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15846
15846
|
);
|
|
15847
|
-
await
|
|
15847
|
+
await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
15848
15848
|
"cli.play_publish_imports",
|
|
15849
15849
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15850
15850
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15853,7 +15853,7 @@ async function handlePlayPublish(args) {
|
|
|
15853
15853
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15854
15854
|
return 1;
|
|
15855
15855
|
}
|
|
15856
|
-
const published = await
|
|
15856
|
+
const published = await _chunkJ3UHNUWIjs.traceCliSpan.call(void 0,
|
|
15857
15857
|
"cli.play_publish_register_root",
|
|
15858
15858
|
{
|
|
15859
15859
|
targetKind: "file",
|
|
@@ -15888,7 +15888,7 @@ async function handlePlayPublish(args) {
|
|
|
15888
15888
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15889
15889
|
};
|
|
15890
15890
|
if (options.jsonOutput) {
|
|
15891
|
-
|
|
15891
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, result2);
|
|
15892
15892
|
} else {
|
|
15893
15893
|
printPublishReceipt({
|
|
15894
15894
|
name: rootPlayName,
|
|
@@ -15919,7 +15919,7 @@ async function handlePlayPublish(args) {
|
|
|
15919
15919
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15920
15920
|
latest: useLatest
|
|
15921
15921
|
};
|
|
15922
|
-
|
|
15922
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, result2);
|
|
15923
15923
|
return 0;
|
|
15924
15924
|
}
|
|
15925
15925
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15943,7 +15943,7 @@ async function handlePlayPublish(args) {
|
|
|
15943
15943
|
revisionId ? { revisionId } : {}
|
|
15944
15944
|
);
|
|
15945
15945
|
if (options.jsonOutput) {
|
|
15946
|
-
|
|
15946
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, result);
|
|
15947
15947
|
} else {
|
|
15948
15948
|
printPublishReceipt({
|
|
15949
15949
|
name: result.name,
|
|
@@ -15983,7 +15983,7 @@ async function handlePlayDelete(args) {
|
|
|
15983
15983
|
);
|
|
15984
15984
|
return 2;
|
|
15985
15985
|
}
|
|
15986
|
-
const client = new (0,
|
|
15986
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
15987
15987
|
let detail;
|
|
15988
15988
|
try {
|
|
15989
15989
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -16007,8 +16007,8 @@ async function handlePlayDelete(args) {
|
|
|
16007
16007
|
name: resolvedName,
|
|
16008
16008
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
16009
16009
|
};
|
|
16010
|
-
if (
|
|
16011
|
-
|
|
16010
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
16011
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, result2);
|
|
16012
16012
|
} else {
|
|
16013
16013
|
process.stdout.write(
|
|
16014
16014
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16018,8 +16018,8 @@ async function handlePlayDelete(args) {
|
|
|
16018
16018
|
return 0;
|
|
16019
16019
|
}
|
|
16020
16020
|
const result = await client.deletePlay(resolvedName);
|
|
16021
|
-
if (
|
|
16022
|
-
|
|
16021
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
16022
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, result);
|
|
16023
16023
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16024
16024
|
}
|
|
16025
16025
|
if (result.alreadyArchived) {
|
|
@@ -16058,13 +16058,13 @@ async function handlePlayRestore(args) {
|
|
|
16058
16058
|
);
|
|
16059
16059
|
return 2;
|
|
16060
16060
|
}
|
|
16061
|
-
const client = new (0,
|
|
16061
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
16062
16062
|
try {
|
|
16063
16063
|
const result = await client.restorePlay(
|
|
16064
16064
|
parseReferencedPlayTarget(playName).playName
|
|
16065
16065
|
);
|
|
16066
|
-
if (
|
|
16067
|
-
|
|
16066
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
16067
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, result);
|
|
16068
16068
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16069
16069
|
}
|
|
16070
16070
|
if (result.alreadyActive) {
|
|
@@ -16191,21 +16191,21 @@ Common commands:
|
|
|
16191
16191
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16192
16192
|
}
|
|
16193
16193
|
};
|
|
16194
|
-
|
|
16194
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0, result2, {
|
|
16195
16195
|
json: options.json,
|
|
16196
16196
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16197
16197
|
`
|
|
16198
16198
|
});
|
|
16199
16199
|
return;
|
|
16200
16200
|
}
|
|
16201
|
-
const client = new (0,
|
|
16201
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
16202
16202
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16203
16203
|
throw new Error(
|
|
16204
16204
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16205
16205
|
);
|
|
16206
16206
|
}
|
|
16207
16207
|
const result = await client.startPlayRun(saved.request);
|
|
16208
|
-
|
|
16208
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
16209
16209
|
{ ...result },
|
|
16210
16210
|
{
|
|
16211
16211
|
json: options.json,
|
|
@@ -16241,7 +16241,7 @@ Examples:
|
|
|
16241
16241
|
).action(async (target, options) => {
|
|
16242
16242
|
process.exitCode = await handlePlayCheck([
|
|
16243
16243
|
target,
|
|
16244
|
-
...
|
|
16244
|
+
..._chunkZZD245Z2js.jsonFieldArgs.call(void 0, options.json),
|
|
16245
16245
|
...options.full ? ["--full"] : []
|
|
16246
16246
|
]);
|
|
16247
16247
|
});
|
|
@@ -16280,10 +16280,10 @@ Notes:
|
|
|
16280
16280
|
--force-tool-refresh re-executes completed tool receipts and may repeat billed
|
|
16281
16281
|
provider calls. It is independent from --force.
|
|
16282
16282
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16283
|
-
resident-work ceiling. Default: ${
|
|
16283
|
+
resident-work ceiling. Default: ${_chunk7B7A36XZjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunk7B7A36XZjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16284
16284
|
Provider pacing and sandbox memory limits still apply.
|
|
16285
16285
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16286
|
-
resolvers. Accepted range: 1-${
|
|
16286
|
+
resolvers. Accepted range: 1-${_chunk7B7A36XZjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16287
16287
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16288
16288
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16289
16289
|
Tool calls that would exceed it are denied.
|
|
@@ -16397,10 +16397,10 @@ Examples:
|
|
|
16397
16397
|
"Refresh completed tool receipts; may repeat billed provider calls"
|
|
16398
16398
|
).option(
|
|
16399
16399
|
"--max-concurrent-external-calls <count>",
|
|
16400
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16400
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunk7B7A36XZjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunk7B7A36XZjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16401
16401
|
).option(
|
|
16402
16402
|
"--max-concurrent-rows <count>",
|
|
16403
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16403
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunk7B7A36XZjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16404
16404
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
|
|
16405
16405
|
"--debug-map-latency",
|
|
16406
16406
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16445,14 +16445,14 @@ JSON field selection:
|
|
|
16445
16445
|
passthroughArgs.shift();
|
|
16446
16446
|
}
|
|
16447
16447
|
const exitCode = await handlePlayRun(
|
|
16448
|
-
|
|
16448
|
+
_chunk7B7A36XZjs.resolvePlayRunCliOptions.call(void 0,
|
|
16449
16449
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16450
16450
|
options,
|
|
16451
16451
|
passthroughArgs,
|
|
16452
|
-
|
|
16452
|
+
_chunkJ3UHNUWIjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16453
16453
|
)
|
|
16454
16454
|
);
|
|
16455
|
-
|
|
16455
|
+
_chunkJ3UHNUWIjs.recordCliTrace.call(void 0, {
|
|
16456
16456
|
phase: "cli.play_command_exit",
|
|
16457
16457
|
exitCode
|
|
16458
16458
|
});
|
|
@@ -16501,9 +16501,9 @@ Examples:
|
|
|
16501
16501
|
const limit = Number(options.historyLimit);
|
|
16502
16502
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16503
16503
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16504
|
-
const client = new (0,
|
|
16504
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
16505
16505
|
if (options.binding) {
|
|
16506
|
-
|
|
16506
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0,
|
|
16507
16507
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16508
16508
|
);
|
|
16509
16509
|
return;
|
|
@@ -16511,7 +16511,7 @@ Examples:
|
|
|
16511
16511
|
const result = await client.listPlayTriggerInventory({
|
|
16512
16512
|
cursor: options.cursor
|
|
16513
16513
|
});
|
|
16514
|
-
|
|
16514
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, {
|
|
16515
16515
|
...result,
|
|
16516
16516
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16517
16517
|
});
|
|
@@ -16570,7 +16570,7 @@ Examples:
|
|
|
16570
16570
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16571
16571
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16572
16572
|
}
|
|
16573
|
-
const result = await new (0,
|
|
16573
|
+
const result = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().getPlaysActivity({
|
|
16574
16574
|
timeZone: options.timeZone,
|
|
16575
16575
|
days,
|
|
16576
16576
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16584,7 +16584,7 @@ Examples:
|
|
|
16584
16584
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16585
16585
|
);
|
|
16586
16586
|
}
|
|
16587
|
-
|
|
16587
|
+
_chunkZZD245Z2js.printCommandEnvelope.call(void 0,
|
|
16588
16588
|
{ ...result },
|
|
16589
16589
|
{
|
|
16590
16590
|
json: Boolean(options.json),
|
|
@@ -16613,7 +16613,7 @@ Examples:
|
|
|
16613
16613
|
false
|
|
16614
16614
|
);
|
|
16615
16615
|
});
|
|
16616
|
-
|
|
16616
|
+
_chunkQSRWBOPVjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16617
16617
|
play,
|
|
16618
16618
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16619
16619
|
);
|
|
@@ -16654,9 +16654,9 @@ Examples:
|
|
|
16654
16654
|
"--json [fields]",
|
|
16655
16655
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16656
16656
|
);
|
|
16657
|
-
|
|
16657
|
+
_chunk4ZKZS43Njs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16658
16658
|
async (target, options) => {
|
|
16659
|
-
const ownView = () => handlePlayDescribe(
|
|
16659
|
+
const ownView = () => handlePlayDescribe(_chunkZZD245Z2js.describeArgs.call(void 0, target, options));
|
|
16660
16660
|
const [flagText] = [options.json].filter(
|
|
16661
16661
|
(value) => typeof value === "string"
|
|
16662
16662
|
);
|
|
@@ -16667,7 +16667,7 @@ Examples:
|
|
|
16667
16667
|
process.exitCode = await ownView();
|
|
16668
16668
|
return;
|
|
16669
16669
|
}
|
|
16670
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16670
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-RYJ6HDYD.js")));
|
|
16671
16671
|
process.exitCode = await describeAnything(
|
|
16672
16672
|
name,
|
|
16673
16673
|
{
|
|
@@ -16785,7 +16785,7 @@ Examples:
|
|
|
16785
16785
|
deepline plays deployments <deployment-id>
|
|
16786
16786
|
`
|
|
16787
16787
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16788
|
-
async (id, options) => id ?
|
|
16788
|
+
async (id, options) => id ? _chunkCAWOSHECjs.handleDeploymentGet.call(void 0, id, options) : _chunkCAWOSHECjs.handleDeploymentsList.call(void 0, options)
|
|
16789
16789
|
);
|
|
16790
16790
|
addPublishHelp(
|
|
16791
16791
|
play.command("publish <target>").description(
|
|
@@ -16920,14 +16920,14 @@ Examples:
|
|
|
16920
16920
|
const limit = Number(options.limit);
|
|
16921
16921
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16922
16922
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16923
|
-
const result = await new (0,
|
|
16923
|
+
const result = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().runs.rowHistory({
|
|
16924
16924
|
playName: options.play,
|
|
16925
16925
|
runId,
|
|
16926
16926
|
tableNamespace: options.dataset,
|
|
16927
16927
|
limit,
|
|
16928
16928
|
cursor: options.cursor
|
|
16929
16929
|
});
|
|
16930
|
-
|
|
16930
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, {
|
|
16931
16931
|
...result,
|
|
16932
16932
|
...result.nextCursor ? {
|
|
16933
16933
|
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`
|
|
@@ -17005,7 +17005,7 @@ Examples:
|
|
|
17005
17005
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
17006
17006
|
).action(async (runId, options) => {
|
|
17007
17007
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
17008
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
17008
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-HKQLQ7HT.js")));
|
|
17009
17009
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
17010
17010
|
receiptJson: options.json !== void 0
|
|
17011
17011
|
});
|
|
@@ -17013,7 +17013,7 @@ Examples:
|
|
|
17013
17013
|
}
|
|
17014
17014
|
process.exitCode = await handleRunGet([
|
|
17015
17015
|
runId,
|
|
17016
|
-
...
|
|
17016
|
+
..._chunkZZD245Z2js.jsonFieldArgs.call(void 0, options.json),
|
|
17017
17017
|
...options.web ? ["--web"] : [],
|
|
17018
17018
|
...options.webUrl ? ["--web-url"] : [],
|
|
17019
17019
|
...options.full ? ["--full"] : [],
|
|
@@ -17304,7 +17304,7 @@ Examples:
|
|
|
17304
17304
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17305
17305
|
...options.wait ? ["--wait"] : [],
|
|
17306
17306
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17307
|
-
...
|
|
17307
|
+
..._chunkZZD245Z2js.jsonFieldArgs.call(void 0, options.json)
|
|
17308
17308
|
]);
|
|
17309
17309
|
});
|
|
17310
17310
|
const share = play.command("share").description(
|
|
@@ -17470,10 +17470,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17470
17470
|
return 2;
|
|
17471
17471
|
}
|
|
17472
17472
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17473
|
-
const status = await new (0,
|
|
17473
|
+
const status = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().getSharePage(name);
|
|
17474
17474
|
const outputStatus = shareStatusForOutput(status);
|
|
17475
|
-
if (
|
|
17476
|
-
|
|
17475
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
17476
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, outputStatus);
|
|
17477
17477
|
return 0;
|
|
17478
17478
|
}
|
|
17479
17479
|
if (!outputStatus.share) {
|
|
@@ -17512,7 +17512,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17512
17512
|
return 2;
|
|
17513
17513
|
}
|
|
17514
17514
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17515
|
-
const client = new (0,
|
|
17515
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
17516
17516
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17517
17517
|
let resolvedVersion;
|
|
17518
17518
|
if (!revisionId) {
|
|
@@ -17543,8 +17543,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17543
17543
|
);
|
|
17544
17544
|
if (!hasCompleted) {
|
|
17545
17545
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17546
|
-
if (
|
|
17547
|
-
|
|
17546
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
17547
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, {
|
|
17548
17548
|
ok: false,
|
|
17549
17549
|
code: "NO_SUCCESSFUL_RUN",
|
|
17550
17550
|
message,
|
|
@@ -17568,8 +17568,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17568
17568
|
};
|
|
17569
17569
|
if (args.includes("--dry-run")) {
|
|
17570
17570
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17571
|
-
if (
|
|
17572
|
-
|
|
17571
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
17572
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, plan);
|
|
17573
17573
|
} else {
|
|
17574
17574
|
console.log(
|
|
17575
17575
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17579,8 +17579,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17579
17579
|
}
|
|
17580
17580
|
const status = await client.publishSharePage(name, request);
|
|
17581
17581
|
const outputStatus = shareStatusForOutput(status);
|
|
17582
|
-
if (
|
|
17583
|
-
|
|
17582
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
17583
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, outputStatus);
|
|
17584
17584
|
return 0;
|
|
17585
17585
|
}
|
|
17586
17586
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17611,9 +17611,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17611
17611
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17612
17612
|
...seoIndexing ? { seoIndexing } : {}
|
|
17613
17613
|
};
|
|
17614
|
-
const status = await new (0,
|
|
17615
|
-
if (
|
|
17616
|
-
|
|
17614
|
+
const status = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().updateSharePage(name, request);
|
|
17615
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
17616
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, status);
|
|
17617
17617
|
return 0;
|
|
17618
17618
|
}
|
|
17619
17619
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17628,7 +17628,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17628
17628
|
return 2;
|
|
17629
17629
|
}
|
|
17630
17630
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17631
|
-
const client = new (0,
|
|
17631
|
+
const client = new (0, _chunkBU5Y7HODjs.DeeplineClient)();
|
|
17632
17632
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17633
17633
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17634
17634
|
if (!revisionId && versionFlag) {
|
|
@@ -17645,8 +17645,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17645
17645
|
revisionId ? { revisionId } : {}
|
|
17646
17646
|
);
|
|
17647
17647
|
const outputStatus = shareStatusForOutput(status);
|
|
17648
|
-
if (
|
|
17649
|
-
|
|
17648
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
17649
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, outputStatus);
|
|
17650
17650
|
return 0;
|
|
17651
17651
|
}
|
|
17652
17652
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17671,9 +17671,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17671
17671
|
return 2;
|
|
17672
17672
|
}
|
|
17673
17673
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17674
|
-
const status = await new (0,
|
|
17675
|
-
if (
|
|
17676
|
-
|
|
17674
|
+
const status = await new (0, _chunkBU5Y7HODjs.DeeplineClient)().unpublishSharePage(name);
|
|
17675
|
+
if (_chunkZZD245Z2js.argsWantJson.call(void 0, args)) {
|
|
17676
|
+
_chunkZZD245Z2js.printCompactJson.call(void 0, status);
|
|
17677
17677
|
return 0;
|
|
17678
17678
|
}
|
|
17679
17679
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17749,4 +17749,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17749
17749
|
|
|
17750
17750
|
|
|
17751
17751
|
|
|
17752
|
-
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag =
|
|
17752
|
+
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunk7B7A36XZjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunk7B7A36XZjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
|