deepline 0.3.503 → 0.3.505
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +5 -0
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +144 -7
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +18 -0
- package/dist/bundling-sources/shared_libs/product-notifications/onboarding-unsubscribe.ts +23 -0
- package/dist/cli/{auth-IC4WLSE3.mjs → auth-AHE2EDQA.mjs} +5 -5
- package/dist/cli/auth-SEPKNRHV.js +43 -0
- package/dist/cli/{billing-2VOV64SD.mjs → billing-7CPWTGGI.mjs} +19 -12
- package/dist/cli/{billing-LWQOII22.js → billing-JOIZPHON.js} +92 -85
- package/dist/cli/{chunk-33JUK73X.js → chunk-3YEOOXD4.js} +96 -37
- package/dist/cli/{chunk-FVDTERO2.js → chunk-45XYW477.js} +21 -21
- package/dist/cli/{chunk-5GI6NKOE.mjs → chunk-4OFSAZN6.mjs} +1 -1
- package/dist/cli/{chunk-D27HP3HS.mjs → chunk-52FPW2RD.mjs} +2 -2
- package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
- package/dist/cli/{chunk-VC5B462T.mjs → chunk-5XT4DZQL.mjs} +2 -2
- package/dist/cli/{chunk-26RSSTCF.js → chunk-6FEN6VWZ.js} +26 -26
- package/dist/cli/{chunk-7HEDCIR3.mjs → chunk-6U3AGJWI.mjs} +1 -1
- package/dist/cli/{chunk-KPBBT6OS.mjs → chunk-7AD565DO.mjs} +1 -1
- package/dist/cli/{chunk-FZHOWPSN.js → chunk-7DDACLMX.js} +16 -16
- package/dist/cli/{chunk-ZEQPCEV4.mjs → chunk-7DDKLFOY.mjs} +3 -3
- package/dist/cli/{chunk-WHP3FJ7T.js → chunk-7QLK2GHL.js} +5 -5
- package/dist/cli/{chunk-BI2Q45SY.mjs → chunk-ACI6CUDX.mjs} +11 -401
- package/dist/cli/{chunk-C5RQTTLP.js → chunk-BWAYMJ23.js} +7 -7
- package/dist/cli/{chunk-YXGPMTAK.js → chunk-CA3SYXCS.js} +2 -2
- package/dist/cli/{chunk-J6RBOLK7.mjs → chunk-CSLLQWAB.mjs} +1 -1
- package/dist/cli/{chunk-F73PD2XD.js → chunk-EMUFF6EU.js} +7 -7
- package/dist/cli/chunk-FIQ5UEIF.mjs +405 -0
- package/dist/cli/{chunk-2626LTU3.js → chunk-GAUNJCXQ.js} +96 -96
- package/dist/cli/{chunk-A2C6ONWA.js → chunk-GXMNOUHP.js} +6 -6
- package/dist/cli/{chunk-MJQOG4TZ.js → chunk-HASFFOSU.js} +16 -16
- package/dist/cli/{chunk-TCQYWZFS.js → chunk-IDAE5VDH.js} +5 -5
- package/dist/cli/{chunk-JJVN7OIX.mjs → chunk-IZYOYXG7.mjs} +4 -4
- package/dist/cli/{chunk-FHJ54BHH.mjs → chunk-JA7YBRP4.mjs} +1 -1
- package/dist/cli/{chunk-HRTDCXHI.js → chunk-JSTKLYYD.js} +2 -2
- package/dist/cli/{chunk-5M5WSFRZ.mjs → chunk-JVKEZT7L.mjs} +48 -8
- package/dist/cli/{chunk-4IIYSBEP.js → chunk-K26YOPDO.js} +50 -10
- package/dist/cli/{chunk-2K2QBLYO.js → chunk-LC4FG34E.js} +53 -53
- package/dist/cli/{chunk-XYZZZLN6.mjs → chunk-MAFZ64RN.mjs} +2 -2
- package/dist/cli/{chunk-B3X4YWQ6.js → chunk-MHZAG2ZQ.js} +80 -470
- package/dist/cli/{chunk-DPI5OYVU.mjs → chunk-NARJWXBR.mjs} +2 -2
- package/dist/cli/{chunk-GLZBFBJS.mjs → chunk-OA6U5NVB.mjs} +5 -5
- package/dist/cli/{chunk-URZNSJE2.mjs → chunk-OMEDQ77C.mjs} +93 -34
- package/dist/cli/{chunk-QIEYEY6Z.js → chunk-OORPAQVC.js} +8 -8
- package/dist/cli/{chunk-WS274KID.mjs → chunk-PDLOPF5L.mjs} +1 -1
- package/dist/cli/{chunk-KGLVATEB.mjs → chunk-PZN24YQQ.mjs} +2 -2
- package/dist/cli/{chunk-GIHNEYBG.mjs → chunk-QGNNAZ5M.mjs} +1 -1
- package/dist/cli/chunk-QYGYVCRI.js +405 -0
- package/dist/cli/chunk-R7J7CJPZ.js +209 -0
- package/dist/cli/{chunk-6XTE6C3W.mjs → chunk-RT3HJBIH.mjs} +12 -12
- package/dist/cli/{chunk-L3TZV625.mjs → chunk-SHKRL7CW.mjs} +1 -1
- package/dist/cli/{chunk-FIUTDSJX.js → chunk-SPN7U3MV.js} +4 -4
- package/dist/cli/{chunk-EQ3WMKFY.mjs → chunk-UZ24SF7N.mjs} +5 -5
- package/dist/cli/{chunk-AARF4SOW.js → chunk-VXKWF3AD.js} +9 -9
- package/dist/cli/{chunk-JPDD4Y53.mjs → chunk-W6I4N4JN.mjs} +6 -6
- package/dist/cli/{chunk-PVA3MWCO.js → chunk-WPCF7C6B.js} +3 -3
- package/dist/cli/{chunk-3CXHK4TW.js → chunk-WTQLUULB.js} +6 -6
- package/dist/cli/{chunk-EDMV4JT5.mjs → chunk-WTUC5VKB.mjs} +2 -2
- package/dist/cli/{chunk-IIP46RVC.js → chunk-XHPB6RGY.js} +1 -1
- package/dist/cli/{chunk-RVOBFO7C.js → chunk-Y52XY56V.js} +41 -41
- package/dist/cli/{chunk-K7NFFQFU.mjs → chunk-YBIVVAL7.mjs} +2 -2
- package/dist/cli/{chunk-HS63YBT5.js → chunk-ZLN2B5YA.js} +3 -3
- package/dist/cli/command-docs.d.mts +2 -1
- package/dist/cli/command-docs.d.ts +2 -1
- package/dist/cli/command-docs.js +6 -2
- package/dist/cli/command-docs.mjs +5 -1
- package/dist/cli/{csv-NEWCNOSZ.js → csv-DZHVIW3G.js} +13 -13
- package/dist/cli/{csv-2TXOI3UE.mjs → csv-WTPI6ZON.mjs} +4 -4
- package/dist/cli/{db-J3IJS4OG.js → db-D7LPPNCC.js} +27 -27
- package/dist/cli/{db-PX7EQEIG.mjs → db-NR4PJ6AF.mjs} +6 -6
- package/dist/cli/describe-HVQBTKFM.js +50 -0
- package/dist/cli/{describe-GQHGTZSL.mjs → describe-NCKAJPUG.mjs} +18 -17
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-FFKK24RY.mjs → executions-RQVJ4LAB.mjs} +6 -6
- package/dist/cli/{executions-RO3TJUXL.js → executions-UQG6LWEN.js} +8 -8
- package/dist/cli/{feedback-ZTO56SRL.mjs → feedback-RD4Y3YQR.mjs} +4 -4
- package/dist/cli/{feedback-XRR4HIS6.js → feedback-TCHA67IA.js} +8 -8
- package/dist/cli/git-TUB2ZUEH.js +25 -0
- package/dist/cli/{git-FIPBVFYZ.mjs → git-Z7434B7Y.mjs} +5 -5
- package/dist/cli/index.js +145 -141
- package/dist/cli/index.mjs +51 -47
- package/dist/cli/{legacy-noops-MTBBGM27.js → legacy-noops-23WRA7DH.js} +8 -8
- package/dist/cli/{legacy-noops-AMD2NWHF.mjs → legacy-noops-LQJU4UIV.mjs} +5 -5
- package/dist/cli/{monitors-42PIGLBF.js → monitors-KOWN7M3V.js} +95 -95
- package/dist/cli/{monitors-24LDKDJX.mjs → monitors-Z6VYUZ2W.mjs} +7 -7
- package/dist/cli/{org-GQMCA3MN.js → org-2T5K2VP5.js} +72 -72
- package/dist/cli/{org-4B7SCFRL.mjs → org-UBNRO5XO.mjs} +6 -6
- package/dist/cli/{pages-PD5EGL2R.mjs → pages-GHPJBVV3.mjs} +6 -6
- package/dist/cli/{pages-RL2M62GJ.js → pages-SRXTU7XO.js} +18 -18
- package/dist/cli/{play-FST6ZAHW.js → play-2HMZ57EZ.js} +324 -517
- package/dist/cli/{play-5V54VTUR.mjs → play-HRQKGTXA.mjs} +24 -217
- package/dist/cli/{providers-N5YVCKPL.mjs → providers-JWJRFRR5.mjs} +6 -6
- package/dist/cli/{providers-HBUUPN7J.js → providers-P5O676MZ.js} +9 -9
- package/dist/cli/{quickstart-NJDDVTQR.mjs → quickstart-S7NZUQRO.mjs} +4 -4
- package/dist/cli/{quickstart-4QIQNSHG.js → quickstart-YCY72TAO.js} +6 -6
- package/dist/cli/{run-FGOKCG4J.js → run-MHLLGF4G.js} +41 -40
- package/dist/cli/{run-JHI5MTHD.mjs → run-QWMRIUIU.mjs} +23 -22
- package/dist/cli/{search-EWIZBIY2.mjs → search-4BFTQUEP.mjs} +8 -7
- package/dist/cli/search-QPUHOEIL.js +33 -0
- package/dist/cli/{search-output-TMQTRC2W.js → search-output-62LBVZHN.js} +6 -6
- package/dist/cli/{search-output-NAK3MWBH.mjs → search-output-LIYHDTBP.mjs} +4 -4
- package/dist/cli/{secrets-ONQVW5SR.mjs → secrets-GW27V77E.mjs} +6 -6
- package/dist/cli/{secrets-5TSUEOJB.js → secrets-KKKHVSOO.js} +15 -15
- package/dist/cli/{sessions-BSGE5EET.js → sessions-R3OEINAR.js} +6 -6
- package/dist/cli/{sessions-B7F5O3ZR.mjs → sessions-R75LBGIL.mjs} +5 -5
- package/dist/cli/{settings-SGGFQV5R.mjs → settings-I3AQZSYG.mjs} +12 -11
- package/dist/cli/{settings-47LARBRU.js → settings-MQIHAEZN.js} +79 -78
- package/dist/cli/{setup-ATGNXQUK.mjs → setup-2YA5MYMS.mjs} +10 -9
- package/dist/cli/{setup-BNFZFXO6.js → setup-X3QRJERP.js} +50 -49
- package/dist/cli/{skills-CIMBRM5R.mjs → skills-7252FOOI.mjs} +8 -7
- package/dist/cli/skills-BPZWMZSL.js +37 -0
- package/dist/cli/tools-F7RVQ3IK.js +57 -0
- package/dist/cli/{tools-DTDXAULX.mjs → tools-SKQTSVGE.mjs} +17 -16
- package/dist/cli/{update-EOIJBJCO.mjs → update-GNBBSKTB.mjs} +10 -9
- package/dist/cli/update-TLSY6LC2.js +35 -0
- package/dist/cli/{workflow-IWXUJPWY.mjs → workflow-OJSAL5FO.mjs} +7 -7
- package/dist/cli/{workflow-V5VKPICQ.js → workflow-QB7YYWPP.js} +17 -17
- package/dist/{client-CIwenMFS.d.ts → client-B3GSaSFn.d.ts} +1 -1
- package/dist/{client-DYAfJpaN.d.mts → client-DEJg0CZn.d.mts} +1 -1
- package/dist/{client-core-DlzP8vEs.d.mts → client-core-C404E33V.d.mts} +5 -0
- package/dist/{client-core-CRjtyMAI.d.ts → client-core-GQmy3N8y.d.ts} +5 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +109 -104
- package/dist/plays/bundle-play-file.mjs +4 -4
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-ZCMSXZO4.js +0 -43
- package/dist/cli/describe-LE7EZCL4.js +0 -49
- package/dist/cli/git-26AH4XIO.js +0 -25
- package/dist/cli/search-CTKSEVSO.js +0 -32
- package/dist/cli/skills-6RD25MVM.js +0 -36
- package/dist/cli/tools-TDZH4XHS.js +0 -56
- package/dist/cli/update-Y32VT4VL.js +0 -34
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkVXKWF3ADjs = require('./chunk-VXKWF3AD.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,15 +18,15 @@ var _chunkAARF4SOWjs = require('./chunk-AARF4SOW.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkWTQLUULBjs = require('./chunk-WTQLUULB.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk3YEOOXD4js = require('./chunk-3YEOOXD4.js');
|
|
25
25
|
require('./chunk-D3BCSAN7.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunk6FEN6VWZjs = require('./chunk-6FEN6VWZ.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -44,14 +44,6 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
44
44
|
var _chunkKQSTV4MWjs = require('./chunk-KQSTV4MW.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
53
|
-
|
|
54
|
-
|
|
55
47
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
56
48
|
|
|
57
49
|
|
|
@@ -59,10 +51,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
59
51
|
|
|
60
52
|
|
|
61
53
|
|
|
62
|
-
var
|
|
54
|
+
var _chunk7QLK2GHLjs = require('./chunk-7QLK2GHL.js');
|
|
63
55
|
|
|
64
56
|
|
|
65
|
-
var
|
|
57
|
+
var _chunkIDAE5VDHjs = require('./chunk-IDAE5VDH.js');
|
|
66
58
|
|
|
67
59
|
|
|
68
60
|
|
|
@@ -75,7 +67,7 @@ var _chunkTCQYWZFSjs = require('./chunk-TCQYWZFS.js');
|
|
|
75
67
|
|
|
76
68
|
|
|
77
69
|
|
|
78
|
-
var
|
|
70
|
+
var _chunkBWAYMJ23js = require('./chunk-BWAYMJ23.js');
|
|
79
71
|
require('./chunk-E4CABWXL.js');
|
|
80
72
|
|
|
81
73
|
|
|
@@ -98,20 +90,26 @@ require('./chunk-WSGXBROE.js');
|
|
|
98
90
|
|
|
99
91
|
|
|
100
92
|
|
|
101
|
-
var
|
|
93
|
+
var _chunkGXMNOUHPjs = require('./chunk-GXMNOUHP.js');
|
|
102
94
|
|
|
103
95
|
|
|
104
96
|
|
|
105
97
|
|
|
106
98
|
|
|
107
|
-
var
|
|
108
|
-
require('./chunk-
|
|
99
|
+
var _chunkCA3SYXCSjs = require('./chunk-CA3SYXCS.js');
|
|
100
|
+
require('./chunk-MHZAG2ZQ.js');
|
|
109
101
|
|
|
110
102
|
|
|
111
103
|
|
|
112
|
-
var
|
|
104
|
+
var _chunkWPCF7C6Bjs = require('./chunk-WPCF7C6B.js');
|
|
105
|
+
require('./chunk-QYGYVCRI.js');
|
|
113
106
|
|
|
114
107
|
|
|
108
|
+
var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
112
|
+
|
|
115
113
|
|
|
116
114
|
|
|
117
115
|
|
|
@@ -123,17 +121,18 @@ var _chunkPVA3MWCOjs = require('./chunk-PVA3MWCO.js');
|
|
|
123
121
|
|
|
124
122
|
|
|
125
123
|
|
|
126
|
-
var _chunkF73PD2XDjs = require('./chunk-F73PD2XD.js');
|
|
127
|
-
require('./chunk-HS63YBT5.js');
|
|
128
124
|
|
|
125
|
+
var _chunkEMUFF6EUjs = require('./chunk-EMUFF6EU.js');
|
|
126
|
+
require('./chunk-ZLN2B5YA.js');
|
|
129
127
|
|
|
130
|
-
|
|
128
|
+
|
|
129
|
+
var _chunkSPN7U3MVjs = require('./chunk-SPN7U3MV.js');
|
|
131
130
|
require('./chunk-ALJJRZNJ.js');
|
|
132
131
|
require('./chunk-XNYIZMNQ.js');
|
|
133
132
|
|
|
134
133
|
|
|
135
134
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
136
|
-
require('./chunk-
|
|
135
|
+
require('./chunk-XHPB6RGY.js');
|
|
137
136
|
require('./chunk-OG64RBAC.js');
|
|
138
137
|
|
|
139
138
|
|
|
@@ -2115,7 +2114,7 @@ function resolveField(key, command) {
|
|
|
2115
2114
|
function printSettings(result, json, name) {
|
|
2116
2115
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2117
2116
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2118
|
-
|
|
2117
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
2119
2118
|
{
|
|
2120
2119
|
...result,
|
|
2121
2120
|
settings: Object.fromEntries(
|
|
@@ -2159,7 +2158,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2159
2158
|
valueSyntax: field.cli.valueSyntax,
|
|
2160
2159
|
examples: field.cli.examples
|
|
2161
2160
|
}));
|
|
2162
|
-
|
|
2161
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
2163
2162
|
{
|
|
2164
2163
|
fields: descriptions,
|
|
2165
2164
|
render: {
|
|
@@ -2184,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2184
2183
|
async (options, command) => {
|
|
2185
2184
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2186
2185
|
printSettings(
|
|
2187
|
-
await new (0,
|
|
2186
|
+
await new (0, _chunkIDAE5VDHjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2188
2187
|
options.json,
|
|
2189
2188
|
options.name
|
|
2190
2189
|
);
|
|
@@ -2215,7 +2214,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2215
2214
|
);
|
|
2216
2215
|
}
|
|
2217
2216
|
if (options.dryRun) {
|
|
2218
|
-
|
|
2217
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
2219
2218
|
{
|
|
2220
2219
|
dryRun: true,
|
|
2221
2220
|
play,
|
|
@@ -2236,7 +2235,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2236
2235
|
return;
|
|
2237
2236
|
}
|
|
2238
2237
|
printSettings(
|
|
2239
|
-
await new (0,
|
|
2238
|
+
await new (0, _chunkIDAE5VDHjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2240
2239
|
options.json
|
|
2241
2240
|
);
|
|
2242
2241
|
};
|
|
@@ -2262,13 +2261,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2262
2261
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2263
2262
|
{ exitCode: 2 }
|
|
2264
2263
|
);
|
|
2265
|
-
const page = await new (0,
|
|
2264
|
+
const page = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2266
2265
|
root: options.root,
|
|
2267
2266
|
limit,
|
|
2268
2267
|
cursor: options.cursor
|
|
2269
2268
|
});
|
|
2270
2269
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2271
|
-
|
|
2270
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
2272
2271
|
{
|
|
2273
2272
|
...page,
|
|
2274
2273
|
nextCommand,
|
|
@@ -2319,7 +2318,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2319
2318
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2320
2319
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2321
2320
|
};
|
|
2322
|
-
const client = new (0,
|
|
2321
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
2323
2322
|
const paths = [];
|
|
2324
2323
|
let cursor;
|
|
2325
2324
|
do {
|
|
@@ -2381,7 +2380,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2381
2380
|
moved.push(move.playName);
|
|
2382
2381
|
}
|
|
2383
2382
|
}
|
|
2384
|
-
|
|
2383
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
2385
2384
|
{
|
|
2386
2385
|
dryRun: Boolean(options.dryRun),
|
|
2387
2386
|
from: options.from,
|
|
@@ -2509,7 +2508,7 @@ function triggerLines(view) {
|
|
|
2509
2508
|
return lines;
|
|
2510
2509
|
}
|
|
2511
2510
|
function printView(view, json) {
|
|
2512
|
-
|
|
2511
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
2513
2512
|
{
|
|
2514
2513
|
...view,
|
|
2515
2514
|
render: {
|
|
@@ -2522,7 +2521,7 @@ function printView(view, json) {
|
|
|
2522
2521
|
);
|
|
2523
2522
|
}
|
|
2524
2523
|
function printResult(result, json) {
|
|
2525
|
-
|
|
2524
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
2526
2525
|
{
|
|
2527
2526
|
...result,
|
|
2528
2527
|
render: {
|
|
@@ -2552,7 +2551,7 @@ async function mutate(command, options, build) {
|
|
|
2552
2551
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2553
2552
|
}
|
|
2554
2553
|
if (options.dryRun) {
|
|
2555
|
-
|
|
2554
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
2556
2555
|
{
|
|
2557
2556
|
dryRun: true,
|
|
2558
2557
|
play: options.play,
|
|
@@ -2571,7 +2570,7 @@ async function mutate(command, options, build) {
|
|
|
2571
2570
|
return;
|
|
2572
2571
|
}
|
|
2573
2572
|
printResult(
|
|
2574
|
-
await new (0,
|
|
2573
|
+
await new (0, _chunkIDAE5VDHjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2575
2574
|
options.json
|
|
2576
2575
|
);
|
|
2577
2576
|
}
|
|
@@ -2604,7 +2603,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2604
2603
|
}).addHelpText("after", help2);
|
|
2605
2604
|
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
|
|
2606
2605
|
printView(
|
|
2607
|
-
await new (0,
|
|
2606
|
+
await new (0, _chunkIDAE5VDHjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2608
2607
|
options.json
|
|
2609
2608
|
);
|
|
2610
2609
|
});
|
|
@@ -2648,7 +2647,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2648
2647
|
if (options.auth === void 0) {
|
|
2649
2648
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2650
2649
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2651
|
-
const current = await new (0,
|
|
2650
|
+
const current = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2652
2651
|
options.play
|
|
2653
2652
|
);
|
|
2654
2653
|
return {
|
|
@@ -2725,7 +2724,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2725
2724
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2726
2725
|
"runtime.event": "Other event."
|
|
2727
2726
|
};
|
|
2728
|
-
var RUN_LOGS_KIND_HELP =
|
|
2727
|
+
var RUN_LOGS_KIND_HELP = _chunkBWAYMJ23js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2729
2728
|
kind,
|
|
2730
2729
|
description: KIND_DESCRIPTIONS[kind]
|
|
2731
2730
|
}));
|
|
@@ -2862,9 +2861,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2862
2861
|
const args = program.args;
|
|
2863
2862
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2864
2863
|
error.exitCode = 2;
|
|
2865
|
-
if (
|
|
2866
|
-
|
|
2867
|
-
Object.assign(new (0,
|
|
2864
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2865
|
+
_chunkEMUFF6EUjs.printJsonError.call(void 0,
|
|
2866
|
+
Object.assign(new (0, _chunkBWAYMJ23js.RunEventQueryInputError)(error.message), {
|
|
2868
2867
|
exitCode: 2,
|
|
2869
2868
|
retryable: false
|
|
2870
2869
|
})
|
|
@@ -2908,14 +2907,14 @@ function parseQuery(args, resource) {
|
|
|
2908
2907
|
if (VALUE_FLAGS.has(flag)) {
|
|
2909
2908
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2910
2909
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2911
|
-
throw new (0,
|
|
2910
|
+
throw new (0, _chunkBWAYMJ23js.RunEventQueryInputError)(
|
|
2912
2911
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2913
2912
|
);
|
|
2914
2913
|
}
|
|
2915
2914
|
if (flag === "--sum") sums.push(value);
|
|
2916
2915
|
else {
|
|
2917
2916
|
if (values[flag] !== void 0) {
|
|
2918
|
-
throw new (0,
|
|
2917
|
+
throw new (0, _chunkBWAYMJ23js.RunEventQueryInputError)(
|
|
2919
2918
|
`${flag} may only be supplied once.`
|
|
2920
2919
|
);
|
|
2921
2920
|
}
|
|
@@ -2929,12 +2928,12 @@ function parseQuery(args, resource) {
|
|
|
2929
2928
|
}
|
|
2930
2929
|
if (arg.startsWith("-")) {
|
|
2931
2930
|
const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
|
|
2932
|
-
throw new (0,
|
|
2931
|
+
throw new (0, _chunkBWAYMJ23js.RunEventQueryInputError)(
|
|
2933
2932
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2934
2933
|
);
|
|
2935
2934
|
}
|
|
2936
2935
|
if (runId !== void 0) {
|
|
2937
|
-
throw new (0,
|
|
2936
|
+
throw new (0, _chunkBWAYMJ23js.RunEventQueryInputError)(
|
|
2938
2937
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2939
2938
|
);
|
|
2940
2939
|
}
|
|
@@ -2942,7 +2941,7 @@ function parseQuery(args, resource) {
|
|
|
2942
2941
|
}
|
|
2943
2942
|
if (switches.has("--fields")) {
|
|
2944
2943
|
if (runId !== void 0) {
|
|
2945
|
-
throw new (0,
|
|
2944
|
+
throw new (0, _chunkBWAYMJ23js.RunEventQueryInputError)(
|
|
2946
2945
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2947
2946
|
);
|
|
2948
2947
|
}
|
|
@@ -2955,18 +2954,18 @@ function parseQuery(args, resource) {
|
|
|
2955
2954
|
)
|
|
2956
2955
|
];
|
|
2957
2956
|
if (incompatible.length) {
|
|
2958
|
-
throw new (0,
|
|
2957
|
+
throw new (0, _chunkBWAYMJ23js.RunEventQueryInputError)(
|
|
2959
2958
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2960
2959
|
);
|
|
2961
2960
|
}
|
|
2962
2961
|
}
|
|
2963
2962
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2964
|
-
throw new (0,
|
|
2963
|
+
throw new (0, _chunkBWAYMJ23js.RunEventQueryInputError)(
|
|
2965
2964
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2966
2965
|
);
|
|
2967
2966
|
}
|
|
2968
2967
|
if (sums.length && switches.has("--count")) {
|
|
2969
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunkBWAYMJ23js.RunEventQueryInputError)(
|
|
2970
2969
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2971
2970
|
);
|
|
2972
2971
|
}
|
|
@@ -2974,7 +2973,7 @@ function parseQuery(args, resource) {
|
|
|
2974
2973
|
if (operation === "count") {
|
|
2975
2974
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2976
2975
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2977
|
-
throw new (0,
|
|
2976
|
+
throw new (0, _chunkBWAYMJ23js.RunEventQueryInputError)(
|
|
2978
2977
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2979
2978
|
);
|
|
2980
2979
|
}
|
|
@@ -3009,16 +3008,16 @@ function parseQuery(args, resource) {
|
|
|
3009
3008
|
];
|
|
3010
3009
|
}
|
|
3011
3010
|
}
|
|
3012
|
-
const request =
|
|
3011
|
+
const request = _chunkBWAYMJ23js.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3013
3012
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3014
3013
|
const backend = values["--runtime-backend"];
|
|
3015
3014
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3016
|
-
throw new (0,
|
|
3015
|
+
throw new (0, _chunkBWAYMJ23js.RunEventQueryInputError)(
|
|
3017
3016
|
"--runtime-backend must be daytona or modal."
|
|
3018
3017
|
);
|
|
3019
3018
|
}
|
|
3020
3019
|
if (backend && !namespace) {
|
|
3021
|
-
throw new (0,
|
|
3020
|
+
throw new (0, _chunkBWAYMJ23js.RunEventQueryInputError)(
|
|
3022
3021
|
"--runtime-backend requires --runtime-namespace."
|
|
3023
3022
|
);
|
|
3024
3023
|
}
|
|
@@ -3065,12 +3064,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3065
3064
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3066
3065
|
const record3 = failure;
|
|
3067
3066
|
const status = record3.statusCode;
|
|
3068
|
-
const exitCode = error instanceof
|
|
3067
|
+
const exitCode = error instanceof _chunkBWAYMJ23js.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;
|
|
3069
3068
|
const diagnostic = Object.assign(failure, {
|
|
3070
3069
|
exitCode,
|
|
3071
3070
|
retryable: exitCode === 5
|
|
3072
3071
|
});
|
|
3073
|
-
if (
|
|
3072
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) _chunkEMUFF6EUjs.printJsonError.call(void 0, diagnostic);
|
|
3074
3073
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3075
3074
|
return exitCode;
|
|
3076
3075
|
}
|
|
@@ -3085,7 +3084,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3085
3084
|
...criteria
|
|
3086
3085
|
} = request;
|
|
3087
3086
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3088
|
-
const client = new (0,
|
|
3087
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
3089
3088
|
let result;
|
|
3090
3089
|
if (request.operation === "fields") {
|
|
3091
3090
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3151,13 +3150,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3151
3150
|
lines.push(`Next page: ${nextPage}`);
|
|
3152
3151
|
}
|
|
3153
3152
|
}
|
|
3154
|
-
|
|
3153
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
3155
3154
|
{
|
|
3156
3155
|
...result,
|
|
3157
3156
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3158
3157
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3159
3158
|
},
|
|
3160
|
-
{ json:
|
|
3159
|
+
{ json: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3161
3160
|
` }
|
|
3162
3161
|
);
|
|
3163
3162
|
return 0;
|
|
@@ -4076,7 +4075,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4076
4075
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4077
4076
|
);
|
|
4078
4077
|
}
|
|
4079
|
-
const response = await new (0,
|
|
4078
|
+
const response = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4080
4079
|
keys
|
|
4081
4080
|
});
|
|
4082
4081
|
const failed = response.receipts.filter(
|
|
@@ -4088,7 +4087,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4088
4087
|
JSON.stringify(response, null, 2) + "\n",
|
|
4089
4088
|
{ flag: "wx", mode: 384 }
|
|
4090
4089
|
);
|
|
4091
|
-
|
|
4090
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
4092
4091
|
{
|
|
4093
4092
|
runId,
|
|
4094
4093
|
out: options.out,
|
|
@@ -4098,7 +4097,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4098
4097
|
{ json: true }
|
|
4099
4098
|
);
|
|
4100
4099
|
} else {
|
|
4101
|
-
|
|
4100
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4102
4101
|
}
|
|
4103
4102
|
if (failed)
|
|
4104
4103
|
process.exitCode = response.receipts.some(
|
|
@@ -4137,7 +4136,7 @@ includes nextCommand when another page is available.
|
|
|
4137
4136
|
{ exitCode: 2 }
|
|
4138
4137
|
);
|
|
4139
4138
|
}
|
|
4140
|
-
const page = await new (0,
|
|
4139
|
+
const page = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4141
4140
|
launchKey: options.launchKey,
|
|
4142
4141
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4143
4142
|
limit
|
|
@@ -4152,7 +4151,7 @@ includes nextCommand when another page is available.
|
|
|
4152
4151
|
"--limit",
|
|
4153
4152
|
String(limit)
|
|
4154
4153
|
].join(" ") : null;
|
|
4155
|
-
|
|
4154
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
4156
4155
|
{
|
|
4157
4156
|
parentRunId,
|
|
4158
4157
|
launchKey: options.launchKey,
|
|
@@ -4188,7 +4187,7 @@ async function handleRunsHistory(options) {
|
|
|
4188
4187
|
throw new Error("--limit must be a positive integer.");
|
|
4189
4188
|
}
|
|
4190
4189
|
}
|
|
4191
|
-
const page = await new (0,
|
|
4190
|
+
const page = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().runs.history({
|
|
4192
4191
|
cursor: options.cursor,
|
|
4193
4192
|
orgId: options.org,
|
|
4194
4193
|
search: options.search,
|
|
@@ -4204,7 +4203,7 @@ async function handleRunsHistory(options) {
|
|
|
4204
4203
|
);
|
|
4205
4204
|
}
|
|
4206
4205
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4207
|
-
|
|
4206
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
4208
4207
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4209
4208
|
options.json ? { json: true } : {}
|
|
4210
4209
|
);
|
|
@@ -4257,12 +4256,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4257
4256
|
}
|
|
4258
4257
|
}
|
|
4259
4258
|
if (options.notice) console.error(options.notice);
|
|
4260
|
-
const result = await new (0,
|
|
4259
|
+
const result = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().runs.rerun(runId, {
|
|
4261
4260
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4262
4261
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4263
4262
|
});
|
|
4264
|
-
if (
|
|
4265
|
-
|
|
4263
|
+
if (_chunkEMUFF6EUjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4264
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4266
4265
|
} else if (result.rateLimited) {
|
|
4267
4266
|
console.log(`
|
|
4268
4267
|
${result.rateLimited.message}`);
|
|
@@ -4286,7 +4285,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
4286
4285
|
// src/cli/operations/runs-resume.ts
|
|
4287
4286
|
async function runRunsResumeCommand(runId) {
|
|
4288
4287
|
try {
|
|
4289
|
-
const result = await new (0,
|
|
4288
|
+
const result = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().runs.resume(runId);
|
|
4290
4289
|
if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
|
|
4291
4290
|
throw new Error(
|
|
4292
4291
|
"Invalid resume receipt: expected the requested run and a new positive epoch."
|
|
@@ -5076,13 +5075,13 @@ var RunDataset = class _RunDataset {
|
|
|
5076
5075
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5077
5076
|
_fs.writeFileSync.call(void 0,
|
|
5078
5077
|
absolutePath,
|
|
5079
|
-
`${JSON.stringify(
|
|
5078
|
+
`${JSON.stringify(_chunkWTQLUULBjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5080
5079
|
`,
|
|
5081
5080
|
"utf-8"
|
|
5082
5081
|
);
|
|
5083
5082
|
return absolutePath;
|
|
5084
5083
|
}
|
|
5085
|
-
return
|
|
5084
|
+
return _chunkWTQLUULBjs.writeRunDatasetCsv.call(void 0, {
|
|
5086
5085
|
rows: this.rows,
|
|
5087
5086
|
columns: this.#info.columns,
|
|
5088
5087
|
outPath
|
|
@@ -5281,198 +5280,6 @@ ${hint}`;
|
|
|
5281
5280
|
});
|
|
5282
5281
|
}
|
|
5283
5282
|
|
|
5284
|
-
// ../play-runtime/worker-api-types.ts
|
|
5285
|
-
var DAYTONA_COMPUTE_PRICING_USD = {
|
|
5286
|
-
vcpuSecond: 14e-6,
|
|
5287
|
-
memoryGiBSecond: 45e-7,
|
|
5288
|
-
storageGiBSecond: 3e-8,
|
|
5289
|
-
includedStorageGiB: 5
|
|
5290
|
-
};
|
|
5291
|
-
var MODAL_SANDBOX_COMPUTE_PRICING_USD = {
|
|
5292
|
-
physicalCoreSecond: 3942e-8,
|
|
5293
|
-
memoryGiBSecond: 667e-8
|
|
5294
|
-
};
|
|
5295
|
-
var MODAL_SANDBOX_CPU_CORES = 0.5;
|
|
5296
|
-
function modalSandboxResourcesForPlay(input) {
|
|
5297
|
-
return {
|
|
5298
|
-
physicalCpuCores: MODAL_SANDBOX_CPU_CORES * input.cpu,
|
|
5299
|
-
memoryMiB: input.memoryGiB * 1024
|
|
5300
|
-
};
|
|
5301
|
-
}
|
|
5302
|
-
function roundUsd(amount) {
|
|
5303
|
-
return Number(Math.max(0, amount).toFixed(12));
|
|
5304
|
-
}
|
|
5305
|
-
function sandboxSizeMetadata(cpu, memoryGiB) {
|
|
5306
|
-
const entry = Object.entries(_chunkYGCKMI5Pjs.PLAY_SANDBOX_SIZE_LIMITS).find(
|
|
5307
|
-
([, limits]) => limits.cpu === cpu && limits.memoryGiB === memoryGiB
|
|
5308
|
-
);
|
|
5309
|
-
return entry ? { sandboxSize: entry[0] } : {};
|
|
5310
|
-
}
|
|
5311
|
-
function runtimeLimitMetadata(maxBillingDurationSeconds, observedWallTimeSeconds) {
|
|
5312
|
-
if (typeof maxBillingDurationSeconds !== "number" || !Number.isFinite(maxBillingDurationSeconds) || maxBillingDurationSeconds <= 0) {
|
|
5313
|
-
return {};
|
|
5314
|
-
}
|
|
5315
|
-
return {
|
|
5316
|
-
maxBillingDurationSeconds,
|
|
5317
|
-
...typeof observedWallTimeSeconds === "number" && Number.isFinite(observedWallTimeSeconds) ? { observedWallTimeSeconds: Math.max(0, observedWallTimeSeconds) } : {}
|
|
5318
|
-
};
|
|
5319
|
-
}
|
|
5320
|
-
function resolveDaytonaSandboxComputeItem(input) {
|
|
5321
|
-
const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
|
|
5322
|
-
const cpu = Math.max(0, input.cpu);
|
|
5323
|
-
const memoryGiB = Math.max(0, input.memoryGiB);
|
|
5324
|
-
const billableDiskGiB = Math.max(
|
|
5325
|
-
0,
|
|
5326
|
-
input.diskGiB - DAYTONA_COMPUTE_PRICING_USD.includedStorageGiB
|
|
5327
|
-
);
|
|
5328
|
-
const providerCostUsd = roundUsd(
|
|
5329
|
-
billableSeconds * (cpu * DAYTONA_COMPUTE_PRICING_USD.vcpuSecond + memoryGiB * DAYTONA_COMPUTE_PRICING_USD.memoryGiBSecond + billableDiskGiB * DAYTONA_COMPUTE_PRICING_USD.storageGiBSecond)
|
|
5330
|
-
);
|
|
5331
|
-
return {
|
|
5332
|
-
itemId: input.itemId,
|
|
5333
|
-
source: _nullishCoalesce(input.source, () => ( "daytona")),
|
|
5334
|
-
unit: "sandbox_second",
|
|
5335
|
-
units: billableSeconds,
|
|
5336
|
-
providerCostUsd,
|
|
5337
|
-
metadata: {
|
|
5338
|
-
...sandboxSizeMetadata(cpu, memoryGiB),
|
|
5339
|
-
sandboxId: _nullishCoalesce(input.sandboxId, () => ( null)),
|
|
5340
|
-
cpu,
|
|
5341
|
-
memoryGiB,
|
|
5342
|
-
diskGiB: Math.max(0, input.diskGiB),
|
|
5343
|
-
billableDiskGiB,
|
|
5344
|
-
startedAt: input.startedAt,
|
|
5345
|
-
endedAt: input.endedAt,
|
|
5346
|
-
...runtimeLimitMetadata(
|
|
5347
|
-
input.maxBillingDurationSeconds,
|
|
5348
|
-
input.observedWallTimeSeconds
|
|
5349
|
-
)
|
|
5350
|
-
}
|
|
5351
|
-
};
|
|
5352
|
-
}
|
|
5353
|
-
function resolveModalSandboxComputeItem(input) {
|
|
5354
|
-
const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
|
|
5355
|
-
const physicalCpuCores = Math.max(0, input.physicalCpuCores);
|
|
5356
|
-
const memoryGiB = Math.max(0, input.memoryGiB);
|
|
5357
|
-
const providerCostUsd = roundUsd(
|
|
5358
|
-
billableSeconds * (physicalCpuCores * MODAL_SANDBOX_COMPUTE_PRICING_USD.physicalCoreSecond + memoryGiB * MODAL_SANDBOX_COMPUTE_PRICING_USD.memoryGiBSecond)
|
|
5359
|
-
);
|
|
5360
|
-
return {
|
|
5361
|
-
itemId: input.itemId,
|
|
5362
|
-
source: "modal",
|
|
5363
|
-
unit: "sandbox_second",
|
|
5364
|
-
units: billableSeconds,
|
|
5365
|
-
providerCostUsd,
|
|
5366
|
-
metadata: {
|
|
5367
|
-
...sandboxSizeMetadata(
|
|
5368
|
-
physicalCpuCores / MODAL_SANDBOX_CPU_CORES,
|
|
5369
|
-
memoryGiB
|
|
5370
|
-
),
|
|
5371
|
-
sandboxId: _nullishCoalesce(input.sandboxId, () => ( null)),
|
|
5372
|
-
physicalCpuCores,
|
|
5373
|
-
memoryGiB,
|
|
5374
|
-
...input.memoryLimitGiB === void 0 ? {} : {
|
|
5375
|
-
memoryLimitGiB: input.memoryLimitGiB,
|
|
5376
|
-
// The Preview evaluation preserves the existing compute price.
|
|
5377
|
-
// Sampled burst cost is diagnostic until provider billing can be
|
|
5378
|
-
// reconciled; a hard ceiling is never presented as actual usage.
|
|
5379
|
-
costBasis: "reserved_resources"
|
|
5380
|
-
},
|
|
5381
|
-
startedAt: input.startedAt,
|
|
5382
|
-
endedAt: input.endedAt,
|
|
5383
|
-
...runtimeLimitMetadata(
|
|
5384
|
-
input.maxBillingDurationSeconds,
|
|
5385
|
-
input.observedWallTimeSeconds
|
|
5386
|
-
)
|
|
5387
|
-
}
|
|
5388
|
-
};
|
|
5389
|
-
}
|
|
5390
|
-
|
|
5391
|
-
// ../play-runtime/runtime-constants.ts
|
|
5392
|
-
var STANDARD_PLAY_RUNTIME_LIMIT_SECONDS = 30 * 60;
|
|
5393
|
-
var PLAY_RUNNER_TERMINAL_GRACE_SECONDS = 90;
|
|
5394
|
-
var PLAY_RUNNER_STARTUP_GRACE_SECONDS = 4 * 60;
|
|
5395
|
-
var SANDBOX_NETWORK_CUT_MAX_MS = 11 * 6e4;
|
|
5396
|
-
var RUNNER_GATEWAY_CONNECTION_RETRY_BUDGET_MS = SANDBOX_NETWORK_CUT_MAX_MS + 6e4;
|
|
5397
|
-
var PLAY_RUNNER_TIMEOUT_SECONDS = 40 * 60;
|
|
5398
|
-
var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS = _chunkYGCKMI5Pjs.MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds + (PLAY_RUNNER_TIMEOUT_SECONDS - STANDARD_PLAY_RUNTIME_LIMIT_SECONDS);
|
|
5399
|
-
|
|
5400
|
-
// ../billing/compute-pricing-contract.ts
|
|
5401
|
-
var COMPUTE_BILLING_MARKUP_MULTIPLIER = 5;
|
|
5402
|
-
var DEFAULT_USD_PER_CUSTOMER_CREDIT = 0.1;
|
|
5403
|
-
var DEFAULT_PROVIDER_MARKUP_MULTIPLIER = 1.4;
|
|
5404
|
-
var MAX_SANDBOX_COMPUTE_BILLING_SECONDS = 60 * 60;
|
|
5405
|
-
var MAX_SANDBOX_COMPUTE_PROVIDER_COST_USD = Math.max(
|
|
5406
|
-
...Object.values(_chunkYGCKMI5Pjs.PLAY_SANDBOX_SIZE_LIMITS).flatMap((profile) => {
|
|
5407
|
-
const modalResources = modalSandboxResourcesForPlay(profile);
|
|
5408
|
-
return [
|
|
5409
|
-
resolveDaytonaSandboxComputeItem({
|
|
5410
|
-
itemId: "billing-cap",
|
|
5411
|
-
wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
|
|
5412
|
-
cpu: profile.cpu,
|
|
5413
|
-
memoryGiB: profile.memoryGiB,
|
|
5414
|
-
diskGiB: profile.diskGiB
|
|
5415
|
-
}).providerCostUsd,
|
|
5416
|
-
resolveModalSandboxComputeItem({
|
|
5417
|
-
itemId: "billing-cap",
|
|
5418
|
-
wallTimeSeconds: MAX_SANDBOX_COMPUTE_BILLING_SECONDS,
|
|
5419
|
-
physicalCpuCores: modalResources.physicalCpuCores,
|
|
5420
|
-
memoryGiB: profile.memoryGiB
|
|
5421
|
-
}).providerCostUsd
|
|
5422
|
-
];
|
|
5423
|
-
})
|
|
5424
|
-
);
|
|
5425
|
-
function roundUpCredits(value) {
|
|
5426
|
-
if (!Number.isFinite(value) || value <= 0) return 0;
|
|
5427
|
-
return Math.ceil(value * 100) / 100;
|
|
5428
|
-
}
|
|
5429
|
-
function maximumPlaySandboxBillingSeconds(limits) {
|
|
5430
|
-
return Math.min(
|
|
5431
|
-
limits.timeoutSeconds + PLAY_RUNNER_TERMINAL_GRACE_SECONDS,
|
|
5432
|
-
MAX_SANDBOX_COMPUTE_BILLING_SECONDS
|
|
5433
|
-
);
|
|
5434
|
-
}
|
|
5435
|
-
function estimateDaytonaMaximumComputeCredits(limits) {
|
|
5436
|
-
const item = resolveDaytonaSandboxComputeItem({
|
|
5437
|
-
itemId: "estimate",
|
|
5438
|
-
wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
|
|
5439
|
-
cpu: limits.cpu,
|
|
5440
|
-
memoryGiB: limits.memoryGiB,
|
|
5441
|
-
diskGiB: limits.diskGiB
|
|
5442
|
-
});
|
|
5443
|
-
return roundUpCredits(
|
|
5444
|
-
item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
|
|
5445
|
-
);
|
|
5446
|
-
}
|
|
5447
|
-
function estimateModalMaximumComputeCredits(limits, elasticMemory = false) {
|
|
5448
|
-
const resources = modalSandboxResourcesForPlay(limits);
|
|
5449
|
-
const item = resolveModalSandboxComputeItem({
|
|
5450
|
-
itemId: "estimate",
|
|
5451
|
-
wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
|
|
5452
|
-
physicalCpuCores: resources.physicalCpuCores,
|
|
5453
|
-
memoryGiB: elasticMemory ? _chunkYGCKMI5Pjs.modalSandboxMemoryLimitGiBForPlay.call(void 0, limits) : limits.memoryGiB
|
|
5454
|
-
});
|
|
5455
|
-
return roundUpCredits(
|
|
5456
|
-
item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
|
|
5457
|
-
);
|
|
5458
|
-
}
|
|
5459
|
-
function estimateMaximumSandboxComputeCredits(limits, elasticMemory = false) {
|
|
5460
|
-
return Math.max(
|
|
5461
|
-
estimateDaytonaMaximumComputeCredits(limits),
|
|
5462
|
-
estimateModalMaximumComputeCredits(limits, elasticMemory)
|
|
5463
|
-
);
|
|
5464
|
-
}
|
|
5465
|
-
function formatNonStandardSandboxRuntimeWarning(limits) {
|
|
5466
|
-
const size = _chunkYGCKMI5Pjs.playSandboxSizeForLimits.call(void 0, limits);
|
|
5467
|
-
if (!size) return null;
|
|
5468
|
-
if (size === "standard" && limits.timeoutSeconds <= _chunkYGCKMI5Pjs.STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds) {
|
|
5469
|
-
return null;
|
|
5470
|
-
}
|
|
5471
|
-
const maximumComputeCredits = estimateMaximumSandboxComputeCredits(limits);
|
|
5472
|
-
const quotedTimeout = `${Math.ceil(limits.timeoutSeconds / 60)}m`;
|
|
5473
|
-
return `This Play requests the ${size} sandbox for up to ${limits.timeoutSeconds}s (${limits.memoryGiB}GiB memory, ${limits.cpu} CPU, ${limits.diskGiB}GiB disk). Resource-based pricing estimate: ${maximumComputeCredits.toFixed(2)} Deepline credits. Workspace plan pricing can differ. Run deepline billing quote --sandbox-timeout ${quotedTimeout} --sandbox-size ${size} for your workspace's session ceiling.`;
|
|
5474
|
-
}
|
|
5475
|
-
|
|
5476
5283
|
// ../play-runtime/internal-step-ids.ts
|
|
5477
5284
|
var INTERNAL_GLUE_NODE_ID_PREFIX = "run_javascript:";
|
|
5478
5285
|
function isInternalGlueStepId(stepId) {
|
|
@@ -6779,7 +6586,7 @@ function renderOutcome(outcome) {
|
|
|
6779
6586
|
function printResult2(input) {
|
|
6780
6587
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6781
6588
|
if (failed) process.exitCode = 1;
|
|
6782
|
-
|
|
6589
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
6783
6590
|
{
|
|
6784
6591
|
deployment: { ...input.deployment, status: input.status },
|
|
6785
6592
|
plays: input.outcomes,
|
|
@@ -6804,7 +6611,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6804
6611
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6805
6612
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6806
6613
|
});
|
|
6807
|
-
const { http, config } =
|
|
6614
|
+
const { http, config } = _chunkEMUFF6EUjs.getAuthedHttpClient.call(void 0, );
|
|
6808
6615
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6809
6616
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6810
6617
|
deliveryId,
|
|
@@ -6831,7 +6638,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6831
6638
|
},
|
|
6832
6639
|
{
|
|
6833
6640
|
bundle: bundleDeployPlayFile,
|
|
6834
|
-
fetchImpl:
|
|
6641
|
+
fetchImpl: _chunkSPN7U3MVjs.fetchWithDeploymentProtection,
|
|
6835
6642
|
// The plays are already here: "opening" the source is naming it.
|
|
6836
6643
|
openSource: async () => ({
|
|
6837
6644
|
open: async () => ({ repoRoot: root })
|
|
@@ -6957,7 +6764,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6957
6764
|
// src/cli/renderers/local-play-execution.ts
|
|
6958
6765
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6959
6766
|
if (options.dryRun) {
|
|
6960
|
-
|
|
6767
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6961
6768
|
return;
|
|
6962
6769
|
}
|
|
6963
6770
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7129,7 +6936,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7129
6936
|
const startedAt = Date.now();
|
|
7130
6937
|
try {
|
|
7131
6938
|
const result = run();
|
|
7132
|
-
|
|
6939
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
7133
6940
|
phase,
|
|
7134
6941
|
ms: Date.now() - startedAt,
|
|
7135
6942
|
ok: true,
|
|
@@ -7137,7 +6944,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7137
6944
|
});
|
|
7138
6945
|
return result;
|
|
7139
6946
|
} catch (error) {
|
|
7140
|
-
|
|
6947
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
7141
6948
|
phase,
|
|
7142
6949
|
ms: Date.now() - startedAt,
|
|
7143
6950
|
ok: false,
|
|
@@ -7943,7 +7750,7 @@ function playStatusErrorText(status) {
|
|
|
7943
7750
|
function isRetryablePendingStartFailure(status) {
|
|
7944
7751
|
if (status.status !== "failed") return false;
|
|
7945
7752
|
if (status.runId && status.runId !== "pending") return false;
|
|
7946
|
-
return
|
|
7753
|
+
return _chunkBWAYMJ23js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7947
7754
|
}
|
|
7948
7755
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7949
7756
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -7993,13 +7800,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
7993
7800
|
}, _class);
|
|
7994
7801
|
function watchSurfaceReaches(state, provenance, level) {
|
|
7995
7802
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
7996
|
-
if (!
|
|
7803
|
+
if (!_chunkBWAYMJ23js.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
7997
7804
|
return false;
|
|
7998
7805
|
}
|
|
7999
|
-
if (
|
|
7806
|
+
if (_chunkBWAYMJ23js.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8000
7807
|
return true;
|
|
8001
7808
|
}
|
|
8002
|
-
return state.verbose === true &&
|
|
7809
|
+
return state.verbose === true && _chunkBWAYMJ23js.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8003
7810
|
}
|
|
8004
7811
|
function getEventPayload(event) {
|
|
8005
7812
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8509,7 +8316,7 @@ function resolvePlayRunUrl(input) {
|
|
|
8509
8316
|
}
|
|
8510
8317
|
function openPlayDashboard(url, open2) {
|
|
8511
8318
|
if (open2 && url) {
|
|
8512
|
-
|
|
8319
|
+
_chunkEMUFF6EUjs.openInBrowser.call(void 0, url);
|
|
8513
8320
|
}
|
|
8514
8321
|
}
|
|
8515
8322
|
function printPlayLogLines(input) {
|
|
@@ -8590,7 +8397,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8590
8397
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8591
8398
|
});
|
|
8592
8399
|
} catch (error) {
|
|
8593
|
-
if (
|
|
8400
|
+
if (_chunkBWAYMJ23js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8594
8401
|
return null;
|
|
8595
8402
|
}
|
|
8596
8403
|
throw error;
|
|
@@ -8671,9 +8478,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8671
8478
|
signal: controller.signal,
|
|
8672
8479
|
deferLogs: !input.emitLogs,
|
|
8673
8480
|
omitTerminalLogs: !input.emitLogs,
|
|
8674
|
-
...
|
|
8481
|
+
..._chunkCA3SYXCSjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8675
8482
|
onPoll: (observation) => {
|
|
8676
|
-
|
|
8483
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
8677
8484
|
phase: "play_watch_poll",
|
|
8678
8485
|
workflowId: input.workflowId,
|
|
8679
8486
|
ms: observation.durationMs,
|
|
@@ -8687,7 +8494,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8687
8494
|
full: input.fullJson,
|
|
8688
8495
|
billing: false,
|
|
8689
8496
|
onStatus: async (status) => {
|
|
8690
|
-
|
|
8497
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
8691
8498
|
phase: "play_watch_terminal_status",
|
|
8692
8499
|
workflowId: input.workflowId,
|
|
8693
8500
|
full: input.fullJson === true
|
|
@@ -8776,7 +8583,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8776
8583
|
signal: controller.signal,
|
|
8777
8584
|
cliAdmission: useCliAdmission
|
|
8778
8585
|
});
|
|
8779
|
-
|
|
8586
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
8780
8587
|
phase: "cli.play_start_admission_attempt",
|
|
8781
8588
|
ms: Date.now() - postStartedAt,
|
|
8782
8589
|
ok: true,
|
|
@@ -8788,7 +8595,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8788
8595
|
});
|
|
8789
8596
|
break;
|
|
8790
8597
|
} catch (error) {
|
|
8791
|
-
|
|
8598
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
8792
8599
|
phase: "cli.play_start_admission_attempt",
|
|
8793
8600
|
ms: Date.now() - postStartedAt,
|
|
8794
8601
|
ok: false,
|
|
@@ -8839,7 +8646,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8839
8646
|
prepared.workflowId
|
|
8840
8647
|
);
|
|
8841
8648
|
}
|
|
8842
|
-
await
|
|
8649
|
+
await _chunkGXMNOUHPjs.checkPlayRunCompatibility.call(void 0,
|
|
8843
8650
|
input.client.baseUrl,
|
|
8844
8651
|
input.maintenancePolicy
|
|
8845
8652
|
);
|
|
@@ -8857,7 +8664,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8857
8664
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
8858
8665
|
);
|
|
8859
8666
|
}
|
|
8860
|
-
|
|
8667
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
8861
8668
|
phase: "cli.play_start_json_retry",
|
|
8862
8669
|
ms: 0,
|
|
8863
8670
|
ok: true,
|
|
@@ -8937,7 +8744,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8937
8744
|
_nullishCoalesce(input.open, () => ( false))
|
|
8938
8745
|
);
|
|
8939
8746
|
input.progress.phase("running");
|
|
8940
|
-
|
|
8747
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
8941
8748
|
phase: "cli.play_start_admitted",
|
|
8942
8749
|
ms: Date.now() - startedAt,
|
|
8943
8750
|
ok: true,
|
|
@@ -8955,7 +8762,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8955
8762
|
startedAt,
|
|
8956
8763
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8957
8764
|
});
|
|
8958
|
-
const initialStatus =
|
|
8765
|
+
const initialStatus = _chunkBWAYMJ23js.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8959
8766
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8960
8767
|
client: input.client,
|
|
8961
8768
|
status: initialStatus,
|
|
@@ -8963,7 +8770,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8963
8770
|
jsonOutput: input.jsonOutput,
|
|
8964
8771
|
fromDurableStatus: true
|
|
8965
8772
|
});
|
|
8966
|
-
|
|
8773
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
8967
8774
|
phase: "play_watch_terminal_status",
|
|
8968
8775
|
workflowId,
|
|
8969
8776
|
full: true,
|
|
@@ -9068,7 +8875,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9068
8875
|
});
|
|
9069
8876
|
}
|
|
9070
8877
|
if (error instanceof _chunkRNSHCJMEjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
9071
|
-
await
|
|
8878
|
+
await _chunkGXMNOUHPjs.checkPlayRunCompatibility.call(void 0,
|
|
9072
8879
|
input.client.baseUrl,
|
|
9073
8880
|
input.maintenancePolicy,
|
|
9074
8881
|
admissionDeadline.signal
|
|
@@ -9109,7 +8916,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9109
8916
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9110
8917
|
);
|
|
9111
8918
|
}
|
|
9112
|
-
|
|
8919
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
9113
8920
|
phase: "cli.play_start_stream_retry",
|
|
9114
8921
|
ms: 0,
|
|
9115
8922
|
ok: true,
|
|
@@ -9130,7 +8937,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9130
8937
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9131
8938
|
);
|
|
9132
8939
|
}
|
|
9133
|
-
|
|
8940
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
9134
8941
|
phase: "cli.play_start_stream_retry",
|
|
9135
8942
|
ms: 0,
|
|
9136
8943
|
ok: true,
|
|
@@ -9187,7 +8994,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9187
8994
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9188
8995
|
launchConfirmed = true;
|
|
9189
8996
|
await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
|
|
9190
|
-
|
|
8997
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
9191
8998
|
phase: "cli.play_start_admitted",
|
|
9192
8999
|
ms: Date.now() - startedAt,
|
|
9193
9000
|
ok: true,
|
|
@@ -9221,7 +9028,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9221
9028
|
full: input.fullJson
|
|
9222
9029
|
});
|
|
9223
9030
|
} catch (error) {
|
|
9224
|
-
if (
|
|
9031
|
+
if (_chunkBWAYMJ23js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9225
9032
|
return null;
|
|
9226
9033
|
}
|
|
9227
9034
|
throw error;
|
|
@@ -9392,7 +9199,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9392
9199
|
};
|
|
9393
9200
|
}
|
|
9394
9201
|
if (!canonicalTerminal) {
|
|
9395
|
-
|
|
9202
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
9396
9203
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9397
9204
|
ms: Date.now() - startedAt,
|
|
9398
9205
|
ok: true,
|
|
@@ -9413,14 +9220,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9413
9220
|
fromDurableStatus
|
|
9414
9221
|
}) : canonicalTerminal;
|
|
9415
9222
|
if (input.fullJson === true) {
|
|
9416
|
-
|
|
9223
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
9417
9224
|
phase: "play_watch_terminal_status",
|
|
9418
9225
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9419
9226
|
full: true,
|
|
9420
9227
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9421
9228
|
});
|
|
9422
9229
|
}
|
|
9423
|
-
|
|
9230
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
9424
9231
|
phase: "cli.play_start_stream_terminal",
|
|
9425
9232
|
ms: Date.now() - startedAt,
|
|
9426
9233
|
ok: true,
|
|
@@ -9440,7 +9247,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9440
9247
|
clearTimeout(timeout);
|
|
9441
9248
|
}
|
|
9442
9249
|
controller.abort();
|
|
9443
|
-
|
|
9250
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
9444
9251
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9445
9252
|
ms: Date.now() - startedAt,
|
|
9446
9253
|
ok: true,
|
|
@@ -9471,7 +9278,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9471
9278
|
if (timedOut) {
|
|
9472
9279
|
const terminal = await fetchKnownTerminalStatus();
|
|
9473
9280
|
if (terminal) {
|
|
9474
|
-
|
|
9281
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
9475
9282
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9476
9283
|
ms: Date.now() - startedAt,
|
|
9477
9284
|
ok: true,
|
|
@@ -9491,7 +9298,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9491
9298
|
lastPhase
|
|
9492
9299
|
});
|
|
9493
9300
|
}
|
|
9494
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9301
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkBWAYMJ23js.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9495
9302
|
if (timeout) {
|
|
9496
9303
|
clearTimeout(timeout);
|
|
9497
9304
|
}
|
|
@@ -9502,7 +9309,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9502
9309
|
`
|
|
9503
9310
|
);
|
|
9504
9311
|
}
|
|
9505
|
-
|
|
9312
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
9506
9313
|
phase: "cli.play_start_stream_reconnect",
|
|
9507
9314
|
ms: Date.now() - startedAt,
|
|
9508
9315
|
ok: true,
|
|
@@ -9529,7 +9336,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9529
9336
|
});
|
|
9530
9337
|
}
|
|
9531
9338
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9532
|
-
|
|
9339
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
9533
9340
|
phase: "cli.play_start_stream_transient_failure",
|
|
9534
9341
|
ms: Date.now() - startedAt,
|
|
9535
9342
|
ok: false,
|
|
@@ -9557,7 +9364,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9557
9364
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9558
9365
|
);
|
|
9559
9366
|
}
|
|
9560
|
-
|
|
9367
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
9561
9368
|
phase: "cli.play_start_stream_reconnect",
|
|
9562
9369
|
ms: Date.now() - startedAt,
|
|
9563
9370
|
ok: true,
|
|
@@ -9637,7 +9444,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9637
9444
|
"logs"
|
|
9638
9445
|
]);
|
|
9639
9446
|
function formatPlayLogLine(rawLine, state) {
|
|
9640
|
-
const classified =
|
|
9447
|
+
const classified = _chunkBWAYMJ23js.classifyLogLine.call(void 0, rawLine);
|
|
9641
9448
|
const line = classified.line;
|
|
9642
9449
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9643
9450
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9652,14 +9459,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9652
9459
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9653
9460
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9654
9461
|
if (providerWait && !state.verbose) {
|
|
9655
|
-
return
|
|
9462
|
+
return _chunkBWAYMJ23js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9656
9463
|
}
|
|
9657
9464
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9658
9465
|
if (mapProgress && !state.verbose) {
|
|
9659
|
-
return
|
|
9466
|
+
return _chunkBWAYMJ23js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9660
9467
|
}
|
|
9661
9468
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9662
|
-
if (!
|
|
9469
|
+
if (!_chunkBWAYMJ23js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9663
9470
|
return null;
|
|
9664
9471
|
}
|
|
9665
9472
|
if (state.emittedRunnerStarted) {
|
|
@@ -9672,7 +9479,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9672
9479
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9673
9480
|
);
|
|
9674
9481
|
if (mapStart) {
|
|
9675
|
-
if (!
|
|
9482
|
+
if (!_chunkBWAYMJ23js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9676
9483
|
return null;
|
|
9677
9484
|
}
|
|
9678
9485
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9682,7 +9489,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9682
9489
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9683
9490
|
);
|
|
9684
9491
|
if (mapDone) {
|
|
9685
|
-
if (!
|
|
9492
|
+
if (!_chunkBWAYMJ23js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9686
9493
|
return null;
|
|
9687
9494
|
}
|
|
9688
9495
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10982,7 +10789,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10982
10789
|
(line) => typeof line === "string"
|
|
10983
10790
|
);
|
|
10984
10791
|
if (tail.length === 0) return [];
|
|
10985
|
-
const shown = tail.map((line) =>
|
|
10792
|
+
const shown = tail.map((line) => _chunkBWAYMJ23js.classifyLogLine.call(void 0, line)).filter(
|
|
10986
10793
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10987
10794
|
).slice(-8);
|
|
10988
10795
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11280,11 +11087,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11280
11087
|
}
|
|
11281
11088
|
function writePlayResult(status, jsonOutput, options) {
|
|
11282
11089
|
const packaged = getPlayRunPackage(status);
|
|
11283
|
-
if (status.package)
|
|
11090
|
+
if (status.package) _chunkWTQLUULBjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11284
11091
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
|
|
11285
11092
|
if (jsonOutput) {
|
|
11286
11093
|
const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11287
|
-
|
|
11094
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
11288
11095
|
hits ? { ...payload2, hits } : payload2,
|
|
11289
11096
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
|
|
11290
11097
|
);
|
|
@@ -11300,7 +11107,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11300
11107
|
...buildPlayCompletionTextLines(status),
|
|
11301
11108
|
...formatRunHitsLines(hits)
|
|
11302
11109
|
];
|
|
11303
|
-
|
|
11110
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11304
11111
|
json: false,
|
|
11305
11112
|
text: `${lines2.join("\n")}
|
|
11306
11113
|
`
|
|
@@ -11351,7 +11158,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11351
11158
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11352
11159
|
const compact = compactPlayStatus(status);
|
|
11353
11160
|
const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
|
|
11354
|
-
|
|
11161
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
11355
11162
|
{
|
|
11356
11163
|
...payload,
|
|
11357
11164
|
render: {
|
|
@@ -11575,7 +11382,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11575
11382
|
}
|
|
11576
11383
|
offset += page.rows.length;
|
|
11577
11384
|
}
|
|
11578
|
-
const withError =
|
|
11385
|
+
const withError = _chunkWTQLUULBjs.tableExportHasFailedRows.call(void 0,
|
|
11579
11386
|
sheetRows.filter(
|
|
11580
11387
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11581
11388
|
)
|
|
@@ -11591,7 +11398,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11591
11398
|
return [
|
|
11592
11399
|
withError ? {
|
|
11593
11400
|
...exported,
|
|
11594
|
-
[
|
|
11401
|
+
[_chunkWTQLUULBjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkWTQLUULBjs.tableExportErrorCell.call(void 0,
|
|
11595
11402
|
row
|
|
11596
11403
|
)
|
|
11597
11404
|
} : exported
|
|
@@ -12126,7 +11933,7 @@ function renderServerResultView(value) {
|
|
|
12126
11933
|
function writeStartedPlayRun(input) {
|
|
12127
11934
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12128
11935
|
const run = input.package.run;
|
|
12129
|
-
|
|
11936
|
+
_chunkWTQLUULBjs.recordPlayTermination.call(void 0, {
|
|
12130
11937
|
id: run.id,
|
|
12131
11938
|
status: run.status,
|
|
12132
11939
|
finishedAt: run.finishedAt
|
|
@@ -12139,7 +11946,7 @@ function writeStartedPlayRun(input) {
|
|
|
12139
11946
|
dashboardUrl: input.dashboardUrl,
|
|
12140
11947
|
package: input.package
|
|
12141
11948
|
};
|
|
12142
|
-
|
|
11949
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12143
11950
|
json: true,
|
|
12144
11951
|
fields: input.jsonFields
|
|
12145
11952
|
});
|
|
@@ -12161,7 +11968,7 @@ function writeStartedPlayRun(input) {
|
|
|
12161
11968
|
input.progress.writeLine(output2, process.stdout);
|
|
12162
11969
|
return;
|
|
12163
11970
|
}
|
|
12164
|
-
|
|
11971
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12165
11972
|
json: false,
|
|
12166
11973
|
text: `${output2}
|
|
12167
11974
|
`
|
|
@@ -12196,7 +12003,7 @@ function writeStartedPlayRun(input) {
|
|
|
12196
12003
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12197
12004
|
];
|
|
12198
12005
|
if (input.jsonOutput) {
|
|
12199
|
-
|
|
12006
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12200
12007
|
return;
|
|
12201
12008
|
}
|
|
12202
12009
|
const output = lines.join("\n");
|
|
@@ -12204,7 +12011,7 @@ function writeStartedPlayRun(input) {
|
|
|
12204
12011
|
input.progress.writeLine(output, process.stdout);
|
|
12205
12012
|
return;
|
|
12206
12013
|
}
|
|
12207
|
-
|
|
12014
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
12208
12015
|
{
|
|
12209
12016
|
...payload,
|
|
12210
12017
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12214,7 +12021,7 @@ function writeStartedPlayRun(input) {
|
|
|
12214
12021
|
);
|
|
12215
12022
|
}
|
|
12216
12023
|
function parsePlayCheckOptions(args) {
|
|
12217
|
-
const selection =
|
|
12024
|
+
const selection = _chunkEMUFF6EUjs.parseJsonFields.call(void 0, args, "check");
|
|
12218
12025
|
args = selection.args;
|
|
12219
12026
|
const target = args[0];
|
|
12220
12027
|
if (!target || target.startsWith("-")) {
|
|
@@ -12226,7 +12033,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12226
12033
|
if (arg !== "--json" && arg !== "--full")
|
|
12227
12034
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12228
12035
|
}
|
|
12229
|
-
const jsonOutput =
|
|
12036
|
+
const jsonOutput = _chunkEMUFF6EUjs.argsWantJson.call(void 0, args);
|
|
12230
12037
|
return {
|
|
12231
12038
|
target,
|
|
12232
12039
|
jsonOutput,
|
|
@@ -12302,7 +12109,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12302
12109
|
useLatest,
|
|
12303
12110
|
expectedArtifactHash,
|
|
12304
12111
|
dryRun,
|
|
12305
|
-
jsonOutput:
|
|
12112
|
+
jsonOutput: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args)
|
|
12306
12113
|
};
|
|
12307
12114
|
}
|
|
12308
12115
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12343,7 +12150,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12343
12150
|
target,
|
|
12344
12151
|
expectedArtifactHash,
|
|
12345
12152
|
dryRun,
|
|
12346
|
-
jsonOutput:
|
|
12153
|
+
jsonOutput: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args)
|
|
12347
12154
|
};
|
|
12348
12155
|
}
|
|
12349
12156
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12540,7 +12347,7 @@ function printPublishReceipt(input) {
|
|
|
12540
12347
|
}
|
|
12541
12348
|
function formatPlaySandboxRuntimeWarning(declaration) {
|
|
12542
12349
|
if (!declaration) return null;
|
|
12543
|
-
const warning = formatNonStandardSandboxRuntimeWarning(
|
|
12350
|
+
const warning = _chunkR7J7CJPZjs.formatNonStandardSandboxRuntimeWarning.call(void 0,
|
|
12544
12351
|
_chunkYGCKMI5Pjs.resolvePlaySandboxRuntimeLimits.call(void 0, declaration)
|
|
12545
12352
|
);
|
|
12546
12353
|
return warning ? `Warning: ${warning}` : null;
|
|
@@ -12554,7 +12361,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12554
12361
|
async function handlePlayCheck(args) {
|
|
12555
12362
|
const options = parsePlayCheckOptions(args);
|
|
12556
12363
|
if (!isFileTarget(options.target)) {
|
|
12557
|
-
const client = new (0,
|
|
12364
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
12558
12365
|
try {
|
|
12559
12366
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12560
12367
|
command: "check"
|
|
@@ -12583,7 +12390,7 @@ async function handlePlayCheck(args) {
|
|
|
12583
12390
|
},
|
|
12584
12391
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12585
12392
|
};
|
|
12586
|
-
|
|
12393
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, result, {
|
|
12587
12394
|
json: options.jsonOutput,
|
|
12588
12395
|
fields: options.jsonFields,
|
|
12589
12396
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12593,7 +12400,7 @@ async function handlePlayCheck(args) {
|
|
|
12593
12400
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12594
12401
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12595
12402
|
if (options.jsonOutput) {
|
|
12596
|
-
|
|
12403
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
12597
12404
|
{
|
|
12598
12405
|
kind: "play_check",
|
|
12599
12406
|
checked: "named_contract",
|
|
@@ -12624,7 +12431,7 @@ async function handlePlayCheck(args) {
|
|
|
12624
12431
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12625
12432
|
publishCommand: _optionalChain([primary, 'optionalAccess', _478 => _478.result, 'access', _479 => _479.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12626
12433
|
});
|
|
12627
|
-
|
|
12434
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, output, {
|
|
12628
12435
|
json: options.jsonOutput,
|
|
12629
12436
|
fields: options.jsonFields,
|
|
12630
12437
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12692,7 +12499,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12692
12499
|
}
|
|
12693
12500
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12694
12501
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12695
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
12502
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunkIDAE5VDHjs.DeeplineClient)()));
|
|
12696
12503
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12697
12504
|
const checked = await checkLocalPlayGraph({
|
|
12698
12505
|
client,
|
|
@@ -12748,8 +12555,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12748
12555
|
let prefetchClient;
|
|
12749
12556
|
let admissionCapability;
|
|
12750
12557
|
let cancelAdmissionCapability;
|
|
12751
|
-
let cliAdmission =
|
|
12752
|
-
const progress = _nullishCoalesce(
|
|
12558
|
+
let cliAdmission = _chunkGXMNOUHPjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12559
|
+
const progress = _nullishCoalesce(_chunkWPCF7C6Bjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWPCF7C6Bjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12753
12560
|
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _488 => _488.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
12754
12561
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12755
12562
|
progress.phase("compiling play");
|
|
@@ -12766,11 +12573,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12766
12573
|
return 1;
|
|
12767
12574
|
}
|
|
12768
12575
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12769
|
-
const clientForPrefetch = new (0,
|
|
12576
|
+
const clientForPrefetch = new (0, _chunkIDAE5VDHjs.DeeplineClient)(playRunClientOptions(options));
|
|
12770
12577
|
prefetchClient = clientForPrefetch;
|
|
12771
12578
|
const capabilityController = new AbortController();
|
|
12772
12579
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12773
|
-
admissionCapability =
|
|
12580
|
+
admissionCapability = _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
12774
12581
|
"cli.play_admission_capability_prefetch",
|
|
12775
12582
|
{ targetKind: "file" },
|
|
12776
12583
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -12781,7 +12588,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12781
12588
|
}
|
|
12782
12589
|
let graph;
|
|
12783
12590
|
try {
|
|
12784
|
-
graph = await
|
|
12591
|
+
graph = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
12785
12592
|
"cli.play_file_bundle_graph",
|
|
12786
12593
|
{ targetKind: "file" },
|
|
12787
12594
|
() => collectBundledPlayGraph(
|
|
@@ -12794,7 +12601,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12794
12601
|
assertPlayGraphAuthoring(graph);
|
|
12795
12602
|
if (options.dryRun) {
|
|
12796
12603
|
progress.complete();
|
|
12797
|
-
const plan =
|
|
12604
|
+
const plan = _chunk7QLK2GHLjs.planLocalPlayExecution.call(void 0, graph, {
|
|
12798
12605
|
runIdFile: options.runIdFile
|
|
12799
12606
|
});
|
|
12800
12607
|
if (_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
@@ -12805,9 +12612,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12805
12612
|
});
|
|
12806
12613
|
return 0;
|
|
12807
12614
|
}
|
|
12808
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
12615
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkIDAE5VDHjs.DeeplineClient)(playRunClientOptions(options))));
|
|
12809
12616
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12810
|
-
await
|
|
12617
|
+
await _chunkGXMNOUHPjs.checkPlayRunCompatibility.call(void 0,
|
|
12811
12618
|
client.baseUrl,
|
|
12812
12619
|
options.maintenancePolicy
|
|
12813
12620
|
);
|
|
@@ -12820,7 +12627,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12820
12627
|
});
|
|
12821
12628
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12822
12629
|
if (canDeferCompilerManifest) {
|
|
12823
|
-
|
|
12630
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
12824
12631
|
phase: "cli.play_file_compile_manifests",
|
|
12825
12632
|
ms: 0,
|
|
12826
12633
|
ok: true,
|
|
@@ -12829,7 +12636,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12829
12636
|
reason: "validated_by_run_route"
|
|
12830
12637
|
});
|
|
12831
12638
|
} else {
|
|
12832
|
-
await
|
|
12639
|
+
await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
12833
12640
|
"cli.play_file_compile_manifests",
|
|
12834
12641
|
{ targetKind: "file", skipped: false },
|
|
12835
12642
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12837,7 +12644,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12837
12644
|
}
|
|
12838
12645
|
progress.phase("compiled play");
|
|
12839
12646
|
} catch (error) {
|
|
12840
|
-
if (error instanceof
|
|
12647
|
+
if (error instanceof _chunkWTQLUULBjs.ExecutionOutputError) throw error;
|
|
12841
12648
|
progress.fail();
|
|
12842
12649
|
reportError(normalizePlayValidationError(error));
|
|
12843
12650
|
return 1;
|
|
@@ -12848,13 +12655,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12848
12655
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12849
12656
|
try {
|
|
12850
12657
|
renderLocalPlayExecutionPlan(
|
|
12851
|
-
|
|
12658
|
+
_chunk7QLK2GHLjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12852
12659
|
);
|
|
12853
12660
|
progress.phase("pinning imported plays");
|
|
12854
|
-
graph = await
|
|
12661
|
+
graph = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
12855
12662
|
"cli.play_file_pin_imports",
|
|
12856
12663
|
{ targetKind: "file" },
|
|
12857
|
-
() =>
|
|
12664
|
+
() => _chunk7QLK2GHLjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12858
12665
|
);
|
|
12859
12666
|
bundleResult = graph.root;
|
|
12860
12667
|
} catch (error) {
|
|
@@ -12870,7 +12677,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12870
12677
|
const fileInputBindings = _chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12871
12678
|
_optionalChain([compilerManifest, 'optionalAccess', _490 => _490.staticPipeline])
|
|
12872
12679
|
);
|
|
12873
|
-
const stagedFileInputs = await
|
|
12680
|
+
const stagedFileInputs = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
12874
12681
|
"cli.play_stage_inputs",
|
|
12875
12682
|
{
|
|
12876
12683
|
targetKind: "file",
|
|
@@ -12917,7 +12724,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12917
12724
|
};
|
|
12918
12725
|
if (options.watch) {
|
|
12919
12726
|
progress.phase("starting run");
|
|
12920
|
-
const finalStatus = await
|
|
12727
|
+
const finalStatus = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
12921
12728
|
"cli.play_start_watch",
|
|
12922
12729
|
{ targetKind: "file", playName },
|
|
12923
12730
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12979,7 +12786,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12979
12786
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12980
12787
|
}
|
|
12981
12788
|
progress.phase("starting run");
|
|
12982
|
-
const started = await
|
|
12789
|
+
const started = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
12983
12790
|
"cli.play_start_unwatched",
|
|
12984
12791
|
{ targetKind: "file", playName },
|
|
12985
12792
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _497 => _497.onSubmission]) }).catch(async (error) => {
|
|
@@ -13045,9 +12852,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13045
12852
|
if (options.target.kind !== "name") {
|
|
13046
12853
|
throw new Error("Expected a named play run target.");
|
|
13047
12854
|
}
|
|
13048
|
-
const client = new (0,
|
|
13049
|
-
let cliAdmission =
|
|
13050
|
-
const progress = _nullishCoalesce(
|
|
12855
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)(playRunClientOptions(options));
|
|
12856
|
+
let cliAdmission = _chunkGXMNOUHPjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12857
|
+
const progress = _nullishCoalesce(_chunkWPCF7C6Bjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWPCF7C6Bjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13051
12858
|
const playName = options.target.name;
|
|
13052
12859
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13053
12860
|
try {
|
|
@@ -13065,7 +12872,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13065
12872
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13066
12873
|
const capabilityController = new AbortController();
|
|
13067
12874
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13068
|
-
admissionCapability =
|
|
12875
|
+
admissionCapability = _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
13069
12876
|
"cli.play_admission_capability_prefetch",
|
|
13070
12877
|
{ targetKind: "name", playName },
|
|
13071
12878
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13076,14 +12883,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13076
12883
|
}
|
|
13077
12884
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13078
12885
|
progress.phase("loading play definition");
|
|
13079
|
-
return
|
|
12886
|
+
return _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
13080
12887
|
"cli.play_load_definition",
|
|
13081
12888
|
{ targetKind: "name", playName, skipped: false },
|
|
13082
12889
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13083
12890
|
command: "run"
|
|
13084
12891
|
})
|
|
13085
12892
|
);
|
|
13086
|
-
})() : (
|
|
12893
|
+
})() : (_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
13087
12894
|
phase: "cli.play_load_definition",
|
|
13088
12895
|
ms: 0,
|
|
13089
12896
|
ok: true,
|
|
@@ -13092,7 +12899,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13092
12899
|
skipped: true
|
|
13093
12900
|
}), null);
|
|
13094
12901
|
progress.phase("selecting revision");
|
|
13095
|
-
const selectedRevisionId = await
|
|
12902
|
+
const selectedRevisionId = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
13096
12903
|
"cli.play_select_revision",
|
|
13097
12904
|
{
|
|
13098
12905
|
targetKind: "name",
|
|
@@ -13117,10 +12924,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13117
12924
|
..._chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13118
12925
|
] : [];
|
|
13119
12926
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13120
|
-
await
|
|
12927
|
+
await _chunkGXMNOUHPjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13121
12928
|
cliAdmission = false;
|
|
13122
12929
|
}
|
|
13123
|
-
const stagedFileInputs = await
|
|
12930
|
+
const stagedFileInputs = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
13124
12931
|
"cli.play_stage_inputs",
|
|
13125
12932
|
{
|
|
13126
12933
|
targetKind: "name",
|
|
@@ -13164,7 +12971,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13164
12971
|
});
|
|
13165
12972
|
if (options.watch) {
|
|
13166
12973
|
progress.phase("starting run");
|
|
13167
|
-
const finalStatus = await
|
|
12974
|
+
const finalStatus = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
13168
12975
|
"cli.play_start_watch",
|
|
13169
12976
|
{ targetKind: "name", playName },
|
|
13170
12977
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13229,7 +13036,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13229
13036
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13230
13037
|
}
|
|
13231
13038
|
progress.phase("starting run");
|
|
13232
|
-
const started = await
|
|
13039
|
+
const started = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
13233
13040
|
"cli.play_start_unwatched",
|
|
13234
13041
|
{ targetKind: "name", playName },
|
|
13235
13042
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _510 => _510.onSubmission]) }).catch(async (error) => {
|
|
@@ -13289,7 +13096,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13289
13096
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13290
13097
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _518 => _518.exec, 'call', _519 => _519(status.runId), 'optionalAccess', _520 => _520[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13291
13098
|
if (!terminal) {
|
|
13292
|
-
|
|
13099
|
+
_chunkWTQLUULBjs.writeExecutionOutput.call(void 0,
|
|
13293
13100
|
{
|
|
13294
13101
|
id: status.runId,
|
|
13295
13102
|
status: status.status,
|
|
@@ -13369,10 +13176,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13369
13176
|
};
|
|
13370
13177
|
}
|
|
13371
13178
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13372
|
-
const allCollections =
|
|
13179
|
+
const allCollections = _chunkWTQLUULBjs.outputCollections.call(void 0, data).map(
|
|
13373
13180
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13374
13181
|
);
|
|
13375
|
-
|
|
13182
|
+
_chunkWTQLUULBjs.writeExecutionOutput.call(void 0,
|
|
13376
13183
|
{
|
|
13377
13184
|
id: status.runId,
|
|
13378
13185
|
status: status.status,
|
|
@@ -13393,7 +13200,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13393
13200
|
}
|
|
13394
13201
|
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
13202
|
async function handlePlayRun(args, hooks) {
|
|
13396
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13203
|
+
const parsedOptions = Array.isArray(args) ? _chunkVXKWF3ADjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13397
13204
|
const options = parsedOptions.runIdFile ? {
|
|
13398
13205
|
...parsedOptions,
|
|
13399
13206
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13410,7 +13217,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13410
13217
|
JSON.stringify({
|
|
13411
13218
|
version: 1,
|
|
13412
13219
|
admissionState: "submitted_unknown",
|
|
13413
|
-
baseUrl: new (0,
|
|
13220
|
+
baseUrl: new (0, _chunkIDAE5VDHjs.DeeplineClient)().baseUrl,
|
|
13414
13221
|
...intent
|
|
13415
13222
|
})
|
|
13416
13223
|
);
|
|
@@ -13644,7 +13451,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13644
13451
|
);
|
|
13645
13452
|
return `${lines.join("\n")}
|
|
13646
13453
|
|
|
13647
|
-
${
|
|
13454
|
+
${_chunkEMUFF6EUjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13648
13455
|
}
|
|
13649
13456
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13650
13457
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13668,7 +13475,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13668
13475
|
}
|
|
13669
13476
|
}
|
|
13670
13477
|
async function handleRunGet(args) {
|
|
13671
|
-
const selection =
|
|
13478
|
+
const selection = _chunkEMUFF6EUjs.parseJsonFields.call(void 0,
|
|
13672
13479
|
args,
|
|
13673
13480
|
args.includes("--config") ? "config" : "get"
|
|
13674
13481
|
);
|
|
@@ -13681,7 +13488,7 @@ async function handleRunGet(args) {
|
|
|
13681
13488
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13682
13489
|
return 1;
|
|
13683
13490
|
}
|
|
13684
|
-
const client = new (0,
|
|
13491
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
13685
13492
|
const timing = args.includes("--timing");
|
|
13686
13493
|
const web = args.includes("--web");
|
|
13687
13494
|
if (web || args.includes("--web-url")) {
|
|
@@ -13699,8 +13506,8 @@ async function handleRunGet(args) {
|
|
|
13699
13506
|
const dashboardUrl2 = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13700
13507
|
const runUrl2 = _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
13701
13508
|
if (web) {
|
|
13702
|
-
const opened =
|
|
13703
|
-
|
|
13509
|
+
const opened = _chunkEMUFF6EUjs.openInBrowser.call(void 0, runUrl2);
|
|
13510
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
13704
13511
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
13705
13512
|
{
|
|
13706
13513
|
json: args.includes("--json"),
|
|
@@ -13711,7 +13518,7 @@ async function handleRunGet(args) {
|
|
|
13711
13518
|
);
|
|
13712
13519
|
return 0;
|
|
13713
13520
|
}
|
|
13714
|
-
|
|
13521
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
13715
13522
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
13716
13523
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
13717
13524
|
` }
|
|
@@ -13736,7 +13543,7 @@ async function handleRunGet(args) {
|
|
|
13736
13543
|
"This server does not support recorded configuration reads."
|
|
13737
13544
|
);
|
|
13738
13545
|
}
|
|
13739
|
-
|
|
13546
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
13740
13547
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13741
13548
|
{ json: true, fields: selection.fields }
|
|
13742
13549
|
);
|
|
@@ -13749,7 +13556,7 @@ async function handleRunGet(args) {
|
|
|
13749
13556
|
timing,
|
|
13750
13557
|
() => client.getRunInput(runId)
|
|
13751
13558
|
);
|
|
13752
|
-
|
|
13559
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13753
13560
|
return 0;
|
|
13754
13561
|
}
|
|
13755
13562
|
const full = args.includes("--full");
|
|
@@ -13762,7 +13569,7 @@ async function handleRunGet(args) {
|
|
|
13762
13569
|
failedLogs: args.includes("--log-failed")
|
|
13763
13570
|
})
|
|
13764
13571
|
);
|
|
13765
|
-
if (status.package)
|
|
13572
|
+
if (status.package) _chunkWTQLUULBjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13766
13573
|
if (!status.package) {
|
|
13767
13574
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13768
13575
|
"runs get",
|
|
@@ -13776,8 +13583,8 @@ async function handleRunGet(args) {
|
|
|
13776
13583
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13777
13584
|
const legacyDashboardUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13778
13585
|
const legacyRunUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
13779
|
-
if (
|
|
13780
|
-
|
|
13586
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
13587
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
13781
13588
|
{
|
|
13782
13589
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13783
13590
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -13788,7 +13595,7 @@ async function handleRunGet(args) {
|
|
|
13788
13595
|
} else {
|
|
13789
13596
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13790
13597
|
if (legacyRunUrl)
|
|
13791
|
-
|
|
13598
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
13792
13599
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
13793
13600
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
13794
13601
|
` }
|
|
@@ -13818,11 +13625,11 @@ async function handleRunGet(args) {
|
|
|
13818
13625
|
)
|
|
13819
13626
|
]);
|
|
13820
13627
|
const hitLines = formatRunHitsLines(hits);
|
|
13821
|
-
const json =
|
|
13628
|
+
const json = _chunkEMUFF6EUjs.argsWantJson.call(void 0, args);
|
|
13822
13629
|
const playName = resolveRunPlayName(status, runId);
|
|
13823
13630
|
const dashboardUrl = playName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13824
13631
|
const runUrl = playName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
13825
|
-
|
|
13632
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
13826
13633
|
{
|
|
13827
13634
|
...overview,
|
|
13828
13635
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13927,9 +13734,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13927
13734
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13928
13735
|
return 1;
|
|
13929
13736
|
}
|
|
13930
|
-
const status = await new (0,
|
|
13931
|
-
if (
|
|
13932
|
-
|
|
13737
|
+
const status = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().runs.status(runId);
|
|
13738
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
13739
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13933
13740
|
return 0;
|
|
13934
13741
|
}
|
|
13935
13742
|
if (!status.available) {
|
|
@@ -13972,7 +13779,7 @@ async function handleRunsRerun(args) {
|
|
|
13972
13779
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13973
13780
|
return 1;
|
|
13974
13781
|
}
|
|
13975
|
-
const options = { json:
|
|
13782
|
+
const options = { json: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args) };
|
|
13976
13783
|
for (let index = 0; index < args.length; index += 1) {
|
|
13977
13784
|
if (args[index] === "--idempotency-key") {
|
|
13978
13785
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14038,8 +13845,8 @@ ${usage2}
|
|
|
14038
13845
|
Discover Plays: ${next.discover}
|
|
14039
13846
|
Active runs: ${next.running}`
|
|
14040
13847
|
);
|
|
14041
|
-
if (
|
|
14042
|
-
|
|
13848
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
13849
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
14043
13850
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14044
13851
|
{ json: true }
|
|
14045
13852
|
);
|
|
@@ -14054,7 +13861,7 @@ Active runs: ${next.running}`
|
|
|
14054
13861
|
console.error("--offset requires --play.");
|
|
14055
13862
|
return 1;
|
|
14056
13863
|
}
|
|
14057
|
-
const client = new (0,
|
|
13864
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
14058
13865
|
const page = await withRunReadTiming(
|
|
14059
13866
|
"runs list",
|
|
14060
13867
|
"run inventory",
|
|
@@ -14121,14 +13928,14 @@ Active runs: ${next.running}`
|
|
|
14121
13928
|
return lines2.join("\n");
|
|
14122
13929
|
});
|
|
14123
13930
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14124
|
-
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}${
|
|
13931
|
+
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}${_chunkEMUFF6EUjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14125
13932
|
if (page.hasMore) {
|
|
14126
13933
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14127
13934
|
lines.push(
|
|
14128
13935
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14129
13936
|
);
|
|
14130
13937
|
}
|
|
14131
|
-
|
|
13938
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
14132
13939
|
{
|
|
14133
13940
|
runs,
|
|
14134
13941
|
count: runs.length,
|
|
@@ -14142,7 +13949,7 @@ Active runs: ${next.running}`
|
|
|
14142
13949
|
},
|
|
14143
13950
|
render: { sections: [{ title: "runs", lines }] }
|
|
14144
13951
|
},
|
|
14145
|
-
{ json:
|
|
13952
|
+
{ json: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args) }
|
|
14146
13953
|
);
|
|
14147
13954
|
return 0;
|
|
14148
13955
|
}
|
|
@@ -14172,7 +13979,7 @@ async function handleRunTail(args) {
|
|
|
14172
13979
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14173
13980
|
return 1;
|
|
14174
13981
|
}
|
|
14175
|
-
const parsed =
|
|
13982
|
+
const parsed = _chunkBWAYMJ23js.parseLogLevel.call(void 0, value);
|
|
14176
13983
|
if (!parsed) {
|
|
14177
13984
|
console.error(
|
|
14178
13985
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14210,9 +14017,9 @@ async function handleRunTail(args) {
|
|
|
14210
14017
|
);
|
|
14211
14018
|
return 1;
|
|
14212
14019
|
}
|
|
14213
|
-
const client = new (0,
|
|
14020
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
14214
14021
|
const jsonLines = args.includes("--jsonl");
|
|
14215
|
-
const jsonOutput = !jsonLines &&
|
|
14022
|
+
const jsonOutput = !jsonLines && _chunkEMUFF6EUjs.argsWantJson.call(void 0, args);
|
|
14216
14023
|
const compact = args.includes("--compact");
|
|
14217
14024
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14218
14025
|
const compactState = {
|
|
@@ -14293,7 +14100,7 @@ async function handleRunLogs(args) {
|
|
|
14293
14100
|
]);
|
|
14294
14101
|
const cursorIndex = args.indexOf("--cursor");
|
|
14295
14102
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14296
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14103
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkBWAYMJ23js.isRunLogsCursor.call(void 0, cursorValue));
|
|
14297
14104
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14298
14105
|
return handleRunEventSearch(args);
|
|
14299
14106
|
}
|
|
@@ -14327,7 +14134,7 @@ async function handleRunLogs(args) {
|
|
|
14327
14134
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14328
14135
|
return 1;
|
|
14329
14136
|
}
|
|
14330
|
-
const parsed =
|
|
14137
|
+
const parsed = _chunkBWAYMJ23js.parseLogLevel.call(void 0, value);
|
|
14331
14138
|
if (!parsed) {
|
|
14332
14139
|
console.error(
|
|
14333
14140
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14374,12 +14181,12 @@ async function handleRunLogs(args) {
|
|
|
14374
14181
|
);
|
|
14375
14182
|
return 1;
|
|
14376
14183
|
}
|
|
14377
|
-
const client = new (0,
|
|
14184
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
14378
14185
|
if (outPath) {
|
|
14379
14186
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14380
|
-
const logs = result2.entries.filter((line) =>
|
|
14187
|
+
const logs = result2.entries.filter((line) => _chunkBWAYMJ23js.logLevelReaches.call(void 0, _chunkBWAYMJ23js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkBWAYMJ23js.classifyLogLine.call(void 0, line).line);
|
|
14381
14188
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14382
|
-
|
|
14189
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
14383
14190
|
{
|
|
14384
14191
|
runId: result2.runId,
|
|
14385
14192
|
log_path: outPath,
|
|
@@ -14402,7 +14209,7 @@ async function handleRunLogs(args) {
|
|
|
14402
14209
|
]
|
|
14403
14210
|
}
|
|
14404
14211
|
},
|
|
14405
|
-
{ json:
|
|
14212
|
+
{ json: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args) }
|
|
14406
14213
|
);
|
|
14407
14214
|
return 0;
|
|
14408
14215
|
}
|
|
@@ -14433,7 +14240,7 @@ async function handleRunLogs(args) {
|
|
|
14433
14240
|
}
|
|
14434
14241
|
};
|
|
14435
14242
|
const text = buildRunLogsText(filteredResult);
|
|
14436
|
-
|
|
14243
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
14437
14244
|
{
|
|
14438
14245
|
runId: result.runId,
|
|
14439
14246
|
totalCount: result.totalCount,
|
|
@@ -14457,7 +14264,7 @@ async function handleRunLogs(args) {
|
|
|
14457
14264
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14458
14265
|
},
|
|
14459
14266
|
{
|
|
14460
|
-
json:
|
|
14267
|
+
json: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args),
|
|
14461
14268
|
text
|
|
14462
14269
|
}
|
|
14463
14270
|
);
|
|
@@ -14481,7 +14288,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14481
14288
|
);
|
|
14482
14289
|
}
|
|
14483
14290
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14484
|
-
(entry) =>
|
|
14291
|
+
(entry) => _chunkBWAYMJ23js.logLevelReaches.call(void 0, _chunkBWAYMJ23js.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14485
14292
|
);
|
|
14486
14293
|
const selected = matching.slice(-limit);
|
|
14487
14294
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14491,7 +14298,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14491
14298
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _553 => _553.at, 'call', _554 => _554(-1), 'optionalAccess', _555 => _555.seq]), () => ( null)),
|
|
14492
14299
|
truncated: result.truncated || olderMatchesExist,
|
|
14493
14300
|
hasMore: olderMatchesExist,
|
|
14494
|
-
nextCursor: olderMatchesExist ?
|
|
14301
|
+
nextCursor: olderMatchesExist ? _chunkBWAYMJ23js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14495
14302
|
};
|
|
14496
14303
|
}
|
|
14497
14304
|
async function handleRunEventSearch(args) {
|
|
@@ -14558,7 +14365,7 @@ ${usage2}`);
|
|
|
14558
14365
|
namespace,
|
|
14559
14366
|
...backend ? { backend } : {}
|
|
14560
14367
|
} : void 0;
|
|
14561
|
-
const client = new (0,
|
|
14368
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
14562
14369
|
const result = await client.runs.searchEvents({
|
|
14563
14370
|
...runId ? { runId } : {},
|
|
14564
14371
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14630,7 +14437,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14630
14437
|
"--limit",
|
|
14631
14438
|
String(limit)
|
|
14632
14439
|
].join(" ") : null;
|
|
14633
|
-
|
|
14440
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
14634
14441
|
{
|
|
14635
14442
|
events,
|
|
14636
14443
|
nextCursor: result.nextCursor,
|
|
@@ -14641,14 +14448,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14641
14448
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14642
14449
|
},
|
|
14643
14450
|
{
|
|
14644
|
-
json:
|
|
14451
|
+
json: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args),
|
|
14645
14452
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14646
14453
|
}
|
|
14647
14454
|
);
|
|
14648
14455
|
return 0;
|
|
14649
14456
|
}
|
|
14650
14457
|
function buildRunLogsText(result) {
|
|
14651
|
-
const lines = result.entries.map((line) =>
|
|
14458
|
+
const lines = result.entries.map((line) => _chunkBWAYMJ23js.classifyLogLine.call(void 0, line).line);
|
|
14652
14459
|
if (result.warning) {
|
|
14653
14460
|
if (lines.length > 0) lines.push("");
|
|
14654
14461
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14682,7 +14489,7 @@ async function handleRunStop(args) {
|
|
|
14682
14489
|
reason = args[++index];
|
|
14683
14490
|
}
|
|
14684
14491
|
}
|
|
14685
|
-
const client = new (0,
|
|
14492
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
14686
14493
|
const result = await client.runs.stop(runId, { reason });
|
|
14687
14494
|
const state = resolveRunStopState(result);
|
|
14688
14495
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14697,7 +14504,7 @@ async function handleRunStop(args) {
|
|
|
14697
14504
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14698
14505
|
`inspect: deepline runs get ${runId} --full`
|
|
14699
14506
|
];
|
|
14700
|
-
|
|
14507
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
14701
14508
|
{
|
|
14702
14509
|
...cancelling,
|
|
14703
14510
|
state,
|
|
@@ -14712,7 +14519,7 @@ async function handleRunStop(args) {
|
|
|
14712
14519
|
]
|
|
14713
14520
|
}
|
|
14714
14521
|
},
|
|
14715
|
-
{ json:
|
|
14522
|
+
{ json: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args) }
|
|
14716
14523
|
);
|
|
14717
14524
|
return 0;
|
|
14718
14525
|
}
|
|
@@ -14729,7 +14536,7 @@ async function handleRunStop(args) {
|
|
|
14729
14536
|
];
|
|
14730
14537
|
process.stderr.write(`${lines2.join("\n")}
|
|
14731
14538
|
`);
|
|
14732
|
-
|
|
14539
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
14733
14540
|
{
|
|
14734
14541
|
...result,
|
|
14735
14542
|
render: {
|
|
@@ -14744,7 +14551,7 @@ async function handleRunStop(args) {
|
|
|
14744
14551
|
]
|
|
14745
14552
|
}
|
|
14746
14553
|
},
|
|
14747
|
-
{ json:
|
|
14554
|
+
{ json: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args) }
|
|
14748
14555
|
);
|
|
14749
14556
|
return 1;
|
|
14750
14557
|
}
|
|
@@ -14755,12 +14562,12 @@ async function handleRunStop(args) {
|
|
|
14755
14562
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14756
14563
|
] : []
|
|
14757
14564
|
];
|
|
14758
|
-
|
|
14565
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
14759
14566
|
{
|
|
14760
14567
|
...result,
|
|
14761
14568
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14762
14569
|
},
|
|
14763
|
-
{ json:
|
|
14570
|
+
{ json: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args) }
|
|
14764
14571
|
);
|
|
14765
14572
|
return 0;
|
|
14766
14573
|
}
|
|
@@ -14810,18 +14617,18 @@ async function handleRunStopAll(args) {
|
|
|
14810
14617
|
reason = args[++index];
|
|
14811
14618
|
}
|
|
14812
14619
|
}
|
|
14813
|
-
const client = new (0,
|
|
14620
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
14814
14621
|
if (dryRun) {
|
|
14815
14622
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14816
14623
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14817
|
-
|
|
14624
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
14818
14625
|
{
|
|
14819
14626
|
...result2,
|
|
14820
14627
|
render: {
|
|
14821
14628
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14822
14629
|
}
|
|
14823
14630
|
},
|
|
14824
|
-
{ json:
|
|
14631
|
+
{ json: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14825
14632
|
` }
|
|
14826
14633
|
);
|
|
14827
14634
|
return 0;
|
|
@@ -14834,17 +14641,17 @@ async function handleRunStopAll(args) {
|
|
|
14834
14641
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14835
14642
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14836
14643
|
];
|
|
14837
|
-
|
|
14644
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
14838
14645
|
{
|
|
14839
14646
|
...result,
|
|
14840
14647
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14841
14648
|
},
|
|
14842
|
-
{ json:
|
|
14649
|
+
{ json: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args) }
|
|
14843
14650
|
);
|
|
14844
14651
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14845
14652
|
}
|
|
14846
14653
|
async function handleRunExport(args) {
|
|
14847
|
-
const selection =
|
|
14654
|
+
const selection = _chunkEMUFF6EUjs.parseJsonFields.call(void 0, args, "export");
|
|
14848
14655
|
args = selection.args;
|
|
14849
14656
|
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]";
|
|
14850
14657
|
let runId;
|
|
@@ -14915,17 +14722,17 @@ async function handleRunExport(args) {
|
|
|
14915
14722
|
"INVALID_ARGUMENT"
|
|
14916
14723
|
);
|
|
14917
14724
|
}
|
|
14918
|
-
const client = new (0,
|
|
14725
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
14919
14726
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14920
14727
|
assertRunExportStatusIdentity(status, runId);
|
|
14921
14728
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14922
|
-
const progress =
|
|
14729
|
+
const progress = _chunkWPCF7C6Bjs.createCliProgress.call(void 0, !_chunkEMUFF6EUjs.argsWantJson.call(void 0, args));
|
|
14923
14730
|
try {
|
|
14924
14731
|
await waitForPlayCompletionByWatch({
|
|
14925
14732
|
client,
|
|
14926
14733
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14927
14734
|
workflowId: runId,
|
|
14928
|
-
jsonOutput:
|
|
14735
|
+
jsonOutput: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args),
|
|
14929
14736
|
emitLogs: false,
|
|
14930
14737
|
waitTimeoutMs,
|
|
14931
14738
|
startedAt: Date.now(),
|
|
@@ -14993,7 +14800,7 @@ async function handleRunExport(args) {
|
|
|
14993
14800
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _569 => _569.rowsInfo, 'access', _570 => _570.totalRows]), () => ( null)),
|
|
14994
14801
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14995
14802
|
...rowFailures ? { rowFailures } : {},
|
|
14996
|
-
columns:
|
|
14803
|
+
columns: _chunkWTQLUULBjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.columns]), () => ( []))),
|
|
14997
14804
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14998
14805
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14999
14806
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -15027,8 +14834,8 @@ async function handleRunExport(args) {
|
|
|
15027
14834
|
"utf-8"
|
|
15028
14835
|
);
|
|
15029
14836
|
}
|
|
15030
|
-
|
|
15031
|
-
json:
|
|
14837
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, payload, {
|
|
14838
|
+
json: _chunkEMUFF6EUjs.argsWantJson.call(void 0, args),
|
|
15032
14839
|
fields: selection.fields,
|
|
15033
14840
|
text: `${lines.join("\n")}
|
|
15034
14841
|
`
|
|
@@ -15062,10 +14869,10 @@ async function handlePlayGet(args) {
|
|
|
15062
14869
|
);
|
|
15063
14870
|
return 2;
|
|
15064
14871
|
}
|
|
15065
|
-
const client = new (0,
|
|
14872
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
15066
14873
|
const explicitJson = args.includes("--json");
|
|
15067
14874
|
const sourceOutput = args.includes("--source");
|
|
15068
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14875
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkEMUFF6EUjs.argsWantJson.call(void 0, args);
|
|
15069
14876
|
const requestedRevisionFlags = [
|
|
15070
14877
|
args.includes("--working"),
|
|
15071
14878
|
args.includes("--live"),
|
|
@@ -15128,7 +14935,7 @@ async function handlePlayGet(args) {
|
|
|
15128
14935
|
}
|
|
15129
14936
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15130
14937
|
if (jsonOutput) {
|
|
15131
|
-
|
|
14938
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, {
|
|
15132
14939
|
...detail,
|
|
15133
14940
|
...materializedFile ? {
|
|
15134
14941
|
message: loadedMessage,
|
|
@@ -15220,8 +15027,8 @@ async function handlePlayVersions(args) {
|
|
|
15220
15027
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15221
15028
|
return 1;
|
|
15222
15029
|
}
|
|
15223
|
-
const client = new (0,
|
|
15224
|
-
const jsonOutput =
|
|
15030
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
15031
|
+
const jsonOutput = _chunkEMUFF6EUjs.argsWantJson.call(void 0, args);
|
|
15225
15032
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15226
15033
|
command: "versions"
|
|
15227
15034
|
});
|
|
@@ -15229,7 +15036,7 @@ async function handlePlayVersions(args) {
|
|
|
15229
15036
|
parseReferencedPlayTarget(playName).playName
|
|
15230
15037
|
);
|
|
15231
15038
|
if (jsonOutput) {
|
|
15232
|
-
|
|
15039
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, { versions });
|
|
15233
15040
|
return 0;
|
|
15234
15041
|
}
|
|
15235
15042
|
if (versions.length === 0) {
|
|
@@ -15272,8 +15079,8 @@ async function handlePlayCost(args) {
|
|
|
15272
15079
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
15273
15080
|
return 2;
|
|
15274
15081
|
}
|
|
15275
|
-
const result = await new (0,
|
|
15276
|
-
if (
|
|
15082
|
+
const result = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
15083
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
15277
15084
|
else
|
|
15278
15085
|
console.log(
|
|
15279
15086
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -15281,9 +15088,9 @@ async function handlePlayCost(args) {
|
|
|
15281
15088
|
return 0;
|
|
15282
15089
|
}
|
|
15283
15090
|
async function handlePlayList(args) {
|
|
15284
|
-
const jsonOutput =
|
|
15091
|
+
const jsonOutput = _chunkEMUFF6EUjs.argsWantJson.call(void 0, args);
|
|
15285
15092
|
const showCost = args.includes("--show-cost");
|
|
15286
|
-
const client = new (0,
|
|
15093
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
15287
15094
|
const categoriesIndex = args.indexOf("--categories");
|
|
15288
15095
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _592 => _592[categoriesIndex + 1], 'optionalAccess', _593 => _593.trim, 'call', _594 => _594()]) : void 0;
|
|
15289
15096
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15381,7 +15188,7 @@ async function handlePlayList(args) {
|
|
|
15381
15188
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15382
15189
|
lines.push(`Next page: ${nextPage}`);
|
|
15383
15190
|
}
|
|
15384
|
-
|
|
15191
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
15385
15192
|
{
|
|
15386
15193
|
plays,
|
|
15387
15194
|
count: plays.length,
|
|
@@ -15399,7 +15206,7 @@ async function handlePlayList(args) {
|
|
|
15399
15206
|
}
|
|
15400
15207
|
async function handlePlayPin(args, pinned) {
|
|
15401
15208
|
const target = _optionalChain([args, 'access', _603 => _603.find, 'call', _604 => _604((arg) => !arg.startsWith("-")), 'optionalAccess', _605 => _605.trim, 'call', _606 => _606()]);
|
|
15402
|
-
const jsonOutput =
|
|
15209
|
+
const jsonOutput = _chunkEMUFF6EUjs.argsWantJson.call(void 0, args);
|
|
15403
15210
|
const dryRun = args.includes("--dry-run");
|
|
15404
15211
|
if (!target) {
|
|
15405
15212
|
console.error(
|
|
@@ -15417,11 +15224,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15417
15224
|
const name = parsedTarget.playName;
|
|
15418
15225
|
const plan = { name, pinned, dryRun };
|
|
15419
15226
|
if (dryRun) {
|
|
15420
|
-
|
|
15227
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, plan);
|
|
15421
15228
|
return 0;
|
|
15422
15229
|
}
|
|
15423
|
-
const result = await new (0,
|
|
15424
|
-
if (jsonOutput)
|
|
15230
|
+
const result = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15231
|
+
if (jsonOutput) _chunkEMUFF6EUjs.printCompactJson.call(void 0, result);
|
|
15425
15232
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15426
15233
|
return 0;
|
|
15427
15234
|
}
|
|
@@ -15547,12 +15354,12 @@ async function handlePlayGrep(args) {
|
|
|
15547
15354
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15548
15355
|
return 1;
|
|
15549
15356
|
}
|
|
15550
|
-
const client = new (0,
|
|
15357
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
15551
15358
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15552
15359
|
summarizePlayGrepResult
|
|
15553
15360
|
);
|
|
15554
|
-
if (
|
|
15555
|
-
|
|
15361
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
15362
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, {
|
|
15556
15363
|
plays: results,
|
|
15557
15364
|
count: results.length,
|
|
15558
15365
|
query,
|
|
@@ -15575,7 +15382,7 @@ async function handlePlayGrep(args) {
|
|
|
15575
15382
|
return 0;
|
|
15576
15383
|
}
|
|
15577
15384
|
async function handlePlayDescribe(args) {
|
|
15578
|
-
const selection =
|
|
15385
|
+
const selection = _chunkEMUFF6EUjs.parseJsonFields.call(void 0, args, "describe");
|
|
15579
15386
|
args = selection.args;
|
|
15580
15387
|
const playName = args[0];
|
|
15581
15388
|
if (!playName) {
|
|
@@ -15609,8 +15416,8 @@ async function handlePlayDescribe(args) {
|
|
|
15609
15416
|
`deepline plays check ${playName}`,
|
|
15610
15417
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15611
15418
|
];
|
|
15612
|
-
if (
|
|
15613
|
-
|
|
15419
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
15420
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, {
|
|
15614
15421
|
ok: false,
|
|
15615
15422
|
error: { message },
|
|
15616
15423
|
next
|
|
@@ -15624,7 +15431,7 @@ async function handlePlayDescribe(args) {
|
|
|
15624
15431
|
}
|
|
15625
15432
|
return 2;
|
|
15626
15433
|
}
|
|
15627
|
-
const client = new (0,
|
|
15434
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
15628
15435
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15629
15436
|
command: "describe"
|
|
15630
15437
|
});
|
|
@@ -15634,9 +15441,9 @@ async function handlePlayDescribe(args) {
|
|
|
15634
15441
|
compact: args.includes("--compact")
|
|
15635
15442
|
}
|
|
15636
15443
|
);
|
|
15637
|
-
if (
|
|
15638
|
-
if (selection.fields)
|
|
15639
|
-
else
|
|
15444
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
15445
|
+
if (selection.fields) _chunkEMUFF6EUjs.printJson.call(void 0, play, selection.fields);
|
|
15446
|
+
else _chunkEMUFF6EUjs.printCompactJson.call(void 0, play);
|
|
15640
15447
|
return 0;
|
|
15641
15448
|
}
|
|
15642
15449
|
printPlayDescription(play);
|
|
@@ -15658,7 +15465,7 @@ async function handlePlaySave(args) {
|
|
|
15658
15465
|
}
|
|
15659
15466
|
let graph;
|
|
15660
15467
|
try {
|
|
15661
|
-
graph = await
|
|
15468
|
+
graph = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
15662
15469
|
"cli.play_save_bundle_graph",
|
|
15663
15470
|
{ targetKind: "file" },
|
|
15664
15471
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15680,7 +15487,7 @@ async function handlePlaySave(args) {
|
|
|
15680
15487
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15681
15488
|
};
|
|
15682
15489
|
if (options.jsonOutput) {
|
|
15683
|
-
|
|
15490
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, result);
|
|
15684
15491
|
} else {
|
|
15685
15492
|
console.error(result.message);
|
|
15686
15493
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15702,7 +15509,7 @@ async function handlePlaySave(args) {
|
|
|
15702
15509
|
};
|
|
15703
15510
|
if (options.dryRun) {
|
|
15704
15511
|
if (options.jsonOutput) {
|
|
15705
|
-
|
|
15512
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, dryRun);
|
|
15706
15513
|
} else {
|
|
15707
15514
|
console.log(`Dry run: ${playName}`);
|
|
15708
15515
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15711,14 +15518,14 @@ async function handlePlaySave(args) {
|
|
|
15711
15518
|
}
|
|
15712
15519
|
return 0;
|
|
15713
15520
|
}
|
|
15714
|
-
const client = new (0,
|
|
15521
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
15715
15522
|
try {
|
|
15716
|
-
await
|
|
15523
|
+
await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
15717
15524
|
"cli.play_save_compile_manifests",
|
|
15718
15525
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15719
15526
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15720
15527
|
);
|
|
15721
|
-
const saved = await
|
|
15528
|
+
const saved = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
15722
15529
|
"cli.play_save_register_draft",
|
|
15723
15530
|
{ targetKind: "file", playName, artifactHash },
|
|
15724
15531
|
() => client.registerPlayArtifact({
|
|
@@ -15747,7 +15554,7 @@ async function handlePlaySave(args) {
|
|
|
15747
15554
|
}
|
|
15748
15555
|
};
|
|
15749
15556
|
if (options.jsonOutput) {
|
|
15750
|
-
|
|
15557
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, result);
|
|
15751
15558
|
} else {
|
|
15752
15559
|
console.log(
|
|
15753
15560
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15773,7 +15580,7 @@ async function handlePlayPublish(args) {
|
|
|
15773
15580
|
}
|
|
15774
15581
|
const { target: playName, useLatest } = options;
|
|
15775
15582
|
let revisionId = options.revisionId;
|
|
15776
|
-
const client = new (0,
|
|
15583
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
15777
15584
|
if (isFileTarget(playName)) {
|
|
15778
15585
|
if (revisionId || useLatest) {
|
|
15779
15586
|
console.error(
|
|
@@ -15783,7 +15590,7 @@ async function handlePlayPublish(args) {
|
|
|
15783
15590
|
}
|
|
15784
15591
|
let graph;
|
|
15785
15592
|
try {
|
|
15786
|
-
graph = await
|
|
15593
|
+
graph = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
15787
15594
|
"cli.play_publish_bundle_graph",
|
|
15788
15595
|
{ targetKind: "file" },
|
|
15789
15596
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15805,7 +15612,7 @@ async function handlePlayPublish(args) {
|
|
|
15805
15612
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15806
15613
|
};
|
|
15807
15614
|
if (options.jsonOutput) {
|
|
15808
|
-
|
|
15615
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, result3);
|
|
15809
15616
|
} else {
|
|
15810
15617
|
console.error(result3.message);
|
|
15811
15618
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15828,7 +15635,7 @@ async function handlePlayPublish(args) {
|
|
|
15828
15635
|
};
|
|
15829
15636
|
if (options.dryRun) {
|
|
15830
15637
|
if (options.jsonOutput) {
|
|
15831
|
-
|
|
15638
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, dryRun);
|
|
15832
15639
|
} else {
|
|
15833
15640
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15834
15641
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15847,12 +15654,12 @@ async function handlePlayPublish(args) {
|
|
|
15847
15654
|
}
|
|
15848
15655
|
}
|
|
15849
15656
|
try {
|
|
15850
|
-
await
|
|
15657
|
+
await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
15851
15658
|
"cli.play_publish_compile_manifests",
|
|
15852
15659
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15853
15660
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15854
15661
|
);
|
|
15855
|
-
await
|
|
15662
|
+
await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
15856
15663
|
"cli.play_publish_imports",
|
|
15857
15664
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15858
15665
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15861,7 +15668,7 @@ async function handlePlayPublish(args) {
|
|
|
15861
15668
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15862
15669
|
return 1;
|
|
15863
15670
|
}
|
|
15864
|
-
const published = await
|
|
15671
|
+
const published = await _chunkCA3SYXCSjs.traceCliSpan.call(void 0,
|
|
15865
15672
|
"cli.play_publish_register_root",
|
|
15866
15673
|
{
|
|
15867
15674
|
targetKind: "file",
|
|
@@ -15896,7 +15703,7 @@ async function handlePlayPublish(args) {
|
|
|
15896
15703
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15897
15704
|
};
|
|
15898
15705
|
if (options.jsonOutput) {
|
|
15899
|
-
|
|
15706
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, result2);
|
|
15900
15707
|
} else {
|
|
15901
15708
|
printPublishReceipt({
|
|
15902
15709
|
name: rootPlayName,
|
|
@@ -15927,7 +15734,7 @@ async function handlePlayPublish(args) {
|
|
|
15927
15734
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15928
15735
|
latest: useLatest
|
|
15929
15736
|
};
|
|
15930
|
-
|
|
15737
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, result2);
|
|
15931
15738
|
return 0;
|
|
15932
15739
|
}
|
|
15933
15740
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15951,7 +15758,7 @@ async function handlePlayPublish(args) {
|
|
|
15951
15758
|
revisionId ? { revisionId } : {}
|
|
15952
15759
|
);
|
|
15953
15760
|
if (options.jsonOutput) {
|
|
15954
|
-
|
|
15761
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, result);
|
|
15955
15762
|
} else {
|
|
15956
15763
|
printPublishReceipt({
|
|
15957
15764
|
name: result.name,
|
|
@@ -15991,7 +15798,7 @@ async function handlePlayDelete(args) {
|
|
|
15991
15798
|
);
|
|
15992
15799
|
return 2;
|
|
15993
15800
|
}
|
|
15994
|
-
const client = new (0,
|
|
15801
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
15995
15802
|
let detail;
|
|
15996
15803
|
try {
|
|
15997
15804
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -16015,8 +15822,8 @@ async function handlePlayDelete(args) {
|
|
|
16015
15822
|
name: resolvedName,
|
|
16016
15823
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
16017
15824
|
};
|
|
16018
|
-
if (
|
|
16019
|
-
|
|
15825
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
15826
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, result2);
|
|
16020
15827
|
} else {
|
|
16021
15828
|
process.stdout.write(
|
|
16022
15829
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16026,8 +15833,8 @@ async function handlePlayDelete(args) {
|
|
|
16026
15833
|
return 0;
|
|
16027
15834
|
}
|
|
16028
15835
|
const result = await client.deletePlay(resolvedName);
|
|
16029
|
-
if (
|
|
16030
|
-
|
|
15836
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
15837
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, result);
|
|
16031
15838
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16032
15839
|
}
|
|
16033
15840
|
if (result.alreadyArchived) {
|
|
@@ -16066,13 +15873,13 @@ async function handlePlayRestore(args) {
|
|
|
16066
15873
|
);
|
|
16067
15874
|
return 2;
|
|
16068
15875
|
}
|
|
16069
|
-
const client = new (0,
|
|
15876
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
16070
15877
|
try {
|
|
16071
15878
|
const result = await client.restorePlay(
|
|
16072
15879
|
parseReferencedPlayTarget(playName).playName
|
|
16073
15880
|
);
|
|
16074
|
-
if (
|
|
16075
|
-
|
|
15881
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
15882
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, result);
|
|
16076
15883
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16077
15884
|
}
|
|
16078
15885
|
if (result.alreadyActive) {
|
|
@@ -16199,21 +16006,21 @@ Common commands:
|
|
|
16199
16006
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16200
16007
|
}
|
|
16201
16008
|
};
|
|
16202
|
-
|
|
16009
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0, result2, {
|
|
16203
16010
|
json: options.json,
|
|
16204
16011
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16205
16012
|
`
|
|
16206
16013
|
});
|
|
16207
16014
|
return;
|
|
16208
16015
|
}
|
|
16209
|
-
const client = new (0,
|
|
16016
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
16210
16017
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16211
16018
|
throw new Error(
|
|
16212
16019
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16213
16020
|
);
|
|
16214
16021
|
}
|
|
16215
16022
|
const result = await client.startPlayRun(saved.request);
|
|
16216
|
-
|
|
16023
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
16217
16024
|
{ ...result },
|
|
16218
16025
|
{
|
|
16219
16026
|
json: options.json,
|
|
@@ -16249,7 +16056,7 @@ Examples:
|
|
|
16249
16056
|
).action(async (target, options) => {
|
|
16250
16057
|
process.exitCode = await handlePlayCheck([
|
|
16251
16058
|
target,
|
|
16252
|
-
...
|
|
16059
|
+
..._chunkEMUFF6EUjs.jsonFieldArgs.call(void 0, options.json),
|
|
16253
16060
|
...options.full ? ["--full"] : []
|
|
16254
16061
|
]);
|
|
16255
16062
|
});
|
|
@@ -16292,10 +16099,10 @@ Notes:
|
|
|
16292
16099
|
retained input and pinned revision, and returns once it starts. It accepts
|
|
16293
16100
|
only --json.
|
|
16294
16101
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16295
|
-
resident-work ceiling. Default: ${
|
|
16102
|
+
resident-work ceiling. Default: ${_chunkVXKWF3ADjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkVXKWF3ADjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16296
16103
|
Provider pacing and sandbox memory limits still apply.
|
|
16297
16104
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16298
|
-
resolvers. Accepted range: 1-${
|
|
16105
|
+
resolvers. Accepted range: 1-${_chunkVXKWF3ADjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16299
16106
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16300
16107
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16301
16108
|
Tool calls that would exceed it are denied.
|
|
@@ -16420,10 +16227,10 @@ Examples:
|
|
|
16420
16227
|
).hideHelp()
|
|
16421
16228
|
).option(
|
|
16422
16229
|
"--max-concurrent-external-calls <count>",
|
|
16423
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16230
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkVXKWF3ADjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkVXKWF3ADjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16424
16231
|
).option(
|
|
16425
16232
|
"--max-concurrent-rows <count>",
|
|
16426
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16233
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkVXKWF3ADjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16427
16234
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
|
|
16428
16235
|
"--debug-map-latency",
|
|
16429
16236
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16509,14 +16316,14 @@ JSON field selection:
|
|
|
16509
16316
|
passthroughArgs.shift();
|
|
16510
16317
|
}
|
|
16511
16318
|
const exitCode = await handlePlayRun(
|
|
16512
|
-
|
|
16319
|
+
_chunkVXKWF3ADjs.resolvePlayRunCliOptions.call(void 0,
|
|
16513
16320
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16514
16321
|
options,
|
|
16515
16322
|
passthroughArgs,
|
|
16516
|
-
|
|
16323
|
+
_chunkCA3SYXCSjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16517
16324
|
)
|
|
16518
16325
|
);
|
|
16519
|
-
|
|
16326
|
+
_chunkCA3SYXCSjs.recordCliTrace.call(void 0, {
|
|
16520
16327
|
phase: "cli.play_command_exit",
|
|
16521
16328
|
exitCode
|
|
16522
16329
|
});
|
|
@@ -16565,9 +16372,9 @@ Examples:
|
|
|
16565
16372
|
const limit = Number(options.historyLimit);
|
|
16566
16373
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16567
16374
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16568
|
-
const client = new (0,
|
|
16375
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
16569
16376
|
if (options.binding) {
|
|
16570
|
-
|
|
16377
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0,
|
|
16571
16378
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16572
16379
|
);
|
|
16573
16380
|
return;
|
|
@@ -16575,7 +16382,7 @@ Examples:
|
|
|
16575
16382
|
const result = await client.listPlayTriggerInventory({
|
|
16576
16383
|
cursor: options.cursor
|
|
16577
16384
|
});
|
|
16578
|
-
|
|
16385
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, {
|
|
16579
16386
|
...result,
|
|
16580
16387
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16581
16388
|
});
|
|
@@ -16634,7 +16441,7 @@ Examples:
|
|
|
16634
16441
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16635
16442
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16636
16443
|
}
|
|
16637
|
-
const result = await new (0,
|
|
16444
|
+
const result = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().getPlaysActivity({
|
|
16638
16445
|
timeZone: options.timeZone,
|
|
16639
16446
|
days,
|
|
16640
16447
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16648,7 +16455,7 @@ Examples:
|
|
|
16648
16455
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16649
16456
|
);
|
|
16650
16457
|
}
|
|
16651
|
-
|
|
16458
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
16652
16459
|
{ ...result },
|
|
16653
16460
|
{
|
|
16654
16461
|
json: Boolean(options.json),
|
|
@@ -16677,7 +16484,7 @@ Examples:
|
|
|
16677
16484
|
false
|
|
16678
16485
|
);
|
|
16679
16486
|
});
|
|
16680
|
-
|
|
16487
|
+
_chunk3YEOOXD4js.registerDeprecatedSearchCommand.call(void 0,
|
|
16681
16488
|
play,
|
|
16682
16489
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16683
16490
|
);
|
|
@@ -16718,9 +16525,9 @@ Examples:
|
|
|
16718
16525
|
"--json [fields]",
|
|
16719
16526
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16720
16527
|
);
|
|
16721
|
-
|
|
16528
|
+
_chunkWTQLUULBjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16722
16529
|
async (target, options) => {
|
|
16723
|
-
const ownView = () => handlePlayDescribe(
|
|
16530
|
+
const ownView = () => handlePlayDescribe(_chunkEMUFF6EUjs.describeArgs.call(void 0, target, options));
|
|
16724
16531
|
const [flagText] = [options.json].filter(
|
|
16725
16532
|
(value) => typeof value === "string"
|
|
16726
16533
|
);
|
|
@@ -16731,7 +16538,7 @@ Examples:
|
|
|
16731
16538
|
process.exitCode = await ownView();
|
|
16732
16539
|
return;
|
|
16733
16540
|
}
|
|
16734
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16541
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-HVQBTKFM.js")));
|
|
16735
16542
|
process.exitCode = await describeAnything(
|
|
16736
16543
|
name,
|
|
16737
16544
|
{
|
|
@@ -16849,7 +16656,7 @@ Examples:
|
|
|
16849
16656
|
deepline plays deployments <deployment-id>
|
|
16850
16657
|
`
|
|
16851
16658
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16852
|
-
async (id, options) => id ?
|
|
16659
|
+
async (id, options) => id ? _chunk6FEN6VWZjs.handleDeploymentGet.call(void 0, id, options) : _chunk6FEN6VWZjs.handleDeploymentsList.call(void 0, options)
|
|
16853
16660
|
);
|
|
16854
16661
|
addPublishHelp(
|
|
16855
16662
|
play.command("publish <target>").description(
|
|
@@ -16984,14 +16791,14 @@ Examples:
|
|
|
16984
16791
|
const limit = Number(options.limit);
|
|
16985
16792
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16986
16793
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16987
|
-
const result = await new (0,
|
|
16794
|
+
const result = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().runs.rowHistory({
|
|
16988
16795
|
playName: options.play,
|
|
16989
16796
|
runId,
|
|
16990
16797
|
tableNamespace: options.dataset,
|
|
16991
16798
|
limit,
|
|
16992
16799
|
cursor: options.cursor
|
|
16993
16800
|
});
|
|
16994
|
-
|
|
16801
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, {
|
|
16995
16802
|
...result,
|
|
16996
16803
|
...result.nextCursor ? {
|
|
16997
16804
|
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`
|
|
@@ -17069,7 +16876,7 @@ Examples:
|
|
|
17069
16876
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
17070
16877
|
).action(async (runId, options) => {
|
|
17071
16878
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
17072
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16879
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-F7RVQ3IK.js")));
|
|
17073
16880
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
17074
16881
|
receiptJson: options.json !== void 0
|
|
17075
16882
|
});
|
|
@@ -17077,7 +16884,7 @@ Examples:
|
|
|
17077
16884
|
}
|
|
17078
16885
|
process.exitCode = await handleRunGet([
|
|
17079
16886
|
runId,
|
|
17080
|
-
...
|
|
16887
|
+
..._chunkEMUFF6EUjs.jsonFieldArgs.call(void 0, options.json),
|
|
17081
16888
|
...options.web ? ["--web"] : [],
|
|
17082
16889
|
...options.webUrl ? ["--web-url"] : [],
|
|
17083
16890
|
...options.full ? ["--full"] : [],
|
|
@@ -17394,7 +17201,7 @@ Examples:
|
|
|
17394
17201
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17395
17202
|
...options.wait ? ["--wait"] : [],
|
|
17396
17203
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17397
|
-
...
|
|
17204
|
+
..._chunkEMUFF6EUjs.jsonFieldArgs.call(void 0, options.json)
|
|
17398
17205
|
]);
|
|
17399
17206
|
});
|
|
17400
17207
|
const share = play.command("share").description(
|
|
@@ -17560,10 +17367,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17560
17367
|
return 2;
|
|
17561
17368
|
}
|
|
17562
17369
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17563
|
-
const status = await new (0,
|
|
17370
|
+
const status = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().getSharePage(name);
|
|
17564
17371
|
const outputStatus = shareStatusForOutput(status);
|
|
17565
|
-
if (
|
|
17566
|
-
|
|
17372
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
17373
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, outputStatus);
|
|
17567
17374
|
return 0;
|
|
17568
17375
|
}
|
|
17569
17376
|
if (!outputStatus.share) {
|
|
@@ -17602,7 +17409,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17602
17409
|
return 2;
|
|
17603
17410
|
}
|
|
17604
17411
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17605
|
-
const client = new (0,
|
|
17412
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
17606
17413
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17607
17414
|
let resolvedVersion;
|
|
17608
17415
|
if (!revisionId) {
|
|
@@ -17633,8 +17440,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17633
17440
|
);
|
|
17634
17441
|
if (!hasCompleted) {
|
|
17635
17442
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17636
|
-
if (
|
|
17637
|
-
|
|
17443
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
17444
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, {
|
|
17638
17445
|
ok: false,
|
|
17639
17446
|
code: "NO_SUCCESSFUL_RUN",
|
|
17640
17447
|
message,
|
|
@@ -17658,8 +17465,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17658
17465
|
};
|
|
17659
17466
|
if (args.includes("--dry-run")) {
|
|
17660
17467
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17661
|
-
if (
|
|
17662
|
-
|
|
17468
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
17469
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, plan);
|
|
17663
17470
|
} else {
|
|
17664
17471
|
console.log(
|
|
17665
17472
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17669,8 +17476,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17669
17476
|
}
|
|
17670
17477
|
const status = await client.publishSharePage(name, request);
|
|
17671
17478
|
const outputStatus = shareStatusForOutput(status);
|
|
17672
|
-
if (
|
|
17673
|
-
|
|
17479
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
17480
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, outputStatus);
|
|
17674
17481
|
return 0;
|
|
17675
17482
|
}
|
|
17676
17483
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17701,9 +17508,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17701
17508
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17702
17509
|
...seoIndexing ? { seoIndexing } : {}
|
|
17703
17510
|
};
|
|
17704
|
-
const status = await new (0,
|
|
17705
|
-
if (
|
|
17706
|
-
|
|
17511
|
+
const status = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().updateSharePage(name, request);
|
|
17512
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
17513
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, status);
|
|
17707
17514
|
return 0;
|
|
17708
17515
|
}
|
|
17709
17516
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17718,7 +17525,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17718
17525
|
return 2;
|
|
17719
17526
|
}
|
|
17720
17527
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17721
|
-
const client = new (0,
|
|
17528
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
17722
17529
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17723
17530
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17724
17531
|
if (!revisionId && versionFlag) {
|
|
@@ -17735,8 +17542,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17735
17542
|
revisionId ? { revisionId } : {}
|
|
17736
17543
|
);
|
|
17737
17544
|
const outputStatus = shareStatusForOutput(status);
|
|
17738
|
-
if (
|
|
17739
|
-
|
|
17545
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
17546
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, outputStatus);
|
|
17740
17547
|
return 0;
|
|
17741
17548
|
}
|
|
17742
17549
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17761,9 +17568,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17761
17568
|
return 2;
|
|
17762
17569
|
}
|
|
17763
17570
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17764
|
-
const status = await new (0,
|
|
17765
|
-
if (
|
|
17766
|
-
|
|
17571
|
+
const status = await new (0, _chunkIDAE5VDHjs.DeeplineClient)().unpublishSharePage(name);
|
|
17572
|
+
if (_chunkEMUFF6EUjs.argsWantJson.call(void 0, args)) {
|
|
17573
|
+
_chunkEMUFF6EUjs.printCompactJson.call(void 0, status);
|
|
17767
17574
|
return 0;
|
|
17768
17575
|
}
|
|
17769
17576
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17840,4 +17647,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17840
17647
|
|
|
17841
17648
|
|
|
17842
17649
|
|
|
17843
|
-
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag =
|
|
17650
|
+
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkVXKWF3ADjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkVXKWF3ADjs.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;
|