deepline 0.3.500 → 0.3.501
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/plays/client-core.ts +45 -7
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +155 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/durable-invocation-fence.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +54 -1
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +56 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +21 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +1 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +9 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +31 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +74 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +226 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +41 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +5 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-app-transport.ts +374 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +49 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +25 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-profile.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-sandbox-credential.ts +338 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-staging.ts +417 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +184 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +17 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-progress-registry.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +176 -16
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-attempt.ts +81 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-journal.ts +708 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-teardown.ts +160 -0
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +4 -0
- package/dist/cli/{auth-WK3FDPRP.mjs → auth-6ECHXOI4.mjs} +5 -5
- package/dist/cli/auth-VP7PMXKQ.js +43 -0
- package/dist/cli/{billing-O3LVKXE7.mjs → billing-75NZYRXA.mjs} +8 -8
- package/dist/cli/{billing-K7UHZUF4.js → billing-QRR7O6BD.js} +81 -81
- package/dist/cli/{chunk-RAZ3TMOS.js → chunk-463ZOO2L.js} +7 -7
- package/dist/cli/{chunk-W64Y7GE7.js → chunk-4OXHLTCP.js} +1 -1
- package/dist/cli/{chunk-5TVY5OEH.mjs → chunk-5S7MLAI7.mjs} +11 -11
- package/dist/cli/{chunk-SNJNPRIV.js → chunk-5X4AUFYW.js} +7 -7
- package/dist/cli/{chunk-CIV5GJAE.mjs → chunk-66XDYH5T.mjs} +2 -2
- package/dist/cli/{chunk-SRS2D27G.mjs → chunk-7L6QNHUL.mjs} +1 -1
- package/dist/cli/{chunk-GBRI644Y.js → chunk-APAHMCGR.js} +53 -53
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-BMCRTI6Z.mjs} +22 -1
- package/dist/cli/{chunk-K3BHKRMS.js → chunk-BOFCF4L7.js} +3 -3
- package/dist/cli/{chunk-KEBNXJSK.js → chunk-CJJ7JBM2.js} +16 -16
- package/dist/cli/{chunk-5JXGYSXH.mjs → chunk-EHVFBD36.mjs} +1 -1
- package/dist/cli/{chunk-5KAZGZG7.js → chunk-EKF4DKUA.js} +5 -5
- package/dist/cli/{chunk-IX2DPYIV.js → chunk-EKZQ5LQO.js} +3 -3
- package/dist/cli/{chunk-JHNFUCVT.mjs → chunk-EOO7OSS4.mjs} +4 -4
- package/dist/cli/{chunk-GOO4VI5M.js → chunk-FS7XYDOF.js} +16 -16
- package/dist/cli/{chunk-G3NA4R7M.js → chunk-HDKXSHGA.js} +53 -53
- package/dist/cli/{chunk-PHGMC33I.js → chunk-J6SVNKRP.js} +2 -2
- package/dist/cli/{chunk-L7X6ADNM.mjs → chunk-J74N375S.mjs} +4 -4
- package/dist/cli/{chunk-X7ODM2LK.js → chunk-KTOAJP4N.js} +6 -6
- package/dist/cli/{chunk-CBZTKDXW.mjs → chunk-MADTHS56.mjs} +1 -1
- package/dist/cli/{chunk-IZ6YWXIK.mjs → chunk-MSLXAVVK.mjs} +2 -2
- package/dist/cli/{chunk-Q2FXZ4Z5.js → chunk-N2TJJNCW.js} +96 -96
- package/dist/cli/{chunk-CS2AEAD6.mjs → chunk-N4TR6QRI.mjs} +1 -1
- package/dist/cli/{chunk-XCBOOB73.mjs → chunk-NA3J3F2Z.mjs} +1 -1
- package/dist/cli/{chunk-QRKCCY4L.mjs → chunk-O3DDVP7Z.mjs} +1 -1
- package/dist/cli/{chunk-XUOZYAP5.mjs → chunk-OKOXB3LY.mjs} +2 -2
- package/dist/cli/{chunk-SNPZ2QWL.js → chunk-PNF2ZU4R.js} +8 -8
- package/dist/cli/{chunk-X5SO7RV5.mjs → chunk-PXIF74UJ.mjs} +4 -4
- package/dist/cli/{chunk-74VKLBJD.js → chunk-QQ3JJYE2.js} +14 -14
- package/dist/cli/{chunk-4CJWOLOS.mjs → chunk-RFV7PPLS.mjs} +3 -3
- package/dist/cli/{chunk-EQR5O2D2.js → chunk-RNSHCJME.js} +3 -3
- package/dist/cli/{chunk-REIKJREB.js → chunk-RU5ROUFO.js} +5 -5
- package/dist/cli/{chunk-TOGCDNMH.js → chunk-SV2TEZ2M.js} +4 -4
- package/dist/cli/{chunk-MAHLIWOF.mjs → chunk-T4U245E4.mjs} +2 -2
- package/dist/cli/{chunk-T4AGTOKQ.mjs → chunk-T7E3XEPG.mjs} +6 -6
- package/dist/cli/{chunk-RHE4YI4H.js → chunk-TOE7LHEA.js} +6 -6
- package/dist/cli/{chunk-FJZUG633.mjs → chunk-UJRN6YP6.mjs} +3 -3
- package/dist/cli/{chunk-BIE57V6K.js → chunk-UR7JOSLT.js} +360 -300
- package/dist/cli/{chunk-5AC7NUQN.mjs → chunk-V5NHEYU7.mjs} +5 -5
- package/dist/cli/{chunk-PGRPNRP6.mjs → chunk-VD2374K7.mjs} +1 -1
- package/dist/cli/{chunk-VLCY4F6E.js → chunk-VL72UKNW.js} +26 -26
- package/dist/cli/{chunk-56QAHX2K.mjs → chunk-VTDAJZIJ.mjs} +90 -30
- package/dist/cli/{chunk-Z5LE7NXM.js → chunk-VVEMPC2I.js} +2 -2
- package/dist/cli/{chunk-U5GFP26N.js → chunk-W6JTHVPF.js} +21 -21
- package/dist/cli/{chunk-C7355NMU.mjs → chunk-WJUDAHIQ.mjs} +1 -1
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-WSGXBROE.js} +22 -1
- package/dist/cli/{chunk-LNMY2T5S.js → chunk-XEBFJ2PH.js} +41 -41
- package/dist/cli/{chunk-HI2BFS5S.mjs → chunk-Z6AUOV7D.mjs} +2 -2
- package/dist/cli/{chunk-VPVEPGYS.mjs → chunk-ZUOKIBLJ.mjs} +2 -2
- package/dist/cli/{chunk-V7MZYIA7.mjs → chunk-ZUQHQGC5.mjs} +5 -5
- package/dist/cli/{csv-MWCWNIBJ.js → csv-JXX2LXK5.js} +13 -13
- package/dist/cli/{csv-DEUOSTEB.mjs → csv-RZJ4SOIL.mjs} +4 -4
- package/dist/cli/{db-QM5R5BRY.mjs → db-MUTT2NWI.mjs} +8 -8
- package/dist/cli/{db-Q6IRXTTG.js → db-T2KJNONM.js} +29 -29
- package/dist/cli/{describe-CQZ7TBOG.mjs → describe-K3UMAAVO.mjs} +19 -19
- package/dist/cli/describe-SEXUJLE4.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-DCCDXSQI.js → executions-7HSLDRHR.js} +10 -10
- package/dist/cli/{executions-SWBKFCY2.mjs → executions-PHS4R2OX.mjs} +8 -8
- package/dist/cli/{feedback-EU3EYF4V.js → feedback-BJZRM637.js} +8 -8
- package/dist/cli/{feedback-Q27HN3SB.mjs → feedback-RWMDCIDF.mjs} +4 -4
- package/dist/cli/git-VNS7UQWN.js +25 -0
- package/dist/cli/{git-SEQFTQ4N.mjs → git-YW6VHYZG.mjs} +5 -5
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-LCQDEVA3.js → legacy-noops-2WUV2XD7.js} +8 -8
- package/dist/cli/{legacy-noops-XKH4VREG.mjs → legacy-noops-5UBSUPGG.mjs} +5 -5
- package/dist/cli/{monitors-4XWBV46I.mjs → monitors-HWOQO3OK.mjs} +9 -9
- package/dist/cli/{monitors-DJCID6X5.js → monitors-YZZRKSTG.js} +97 -97
- package/dist/cli/{org-BU4FG5PN.js → org-JY7HLHBA.js} +74 -74
- package/dist/cli/{org-PSBGXBRW.mjs → org-NCXT6RB4.mjs} +8 -8
- package/dist/cli/{pages-3PHJYXYB.js → pages-6ZOHXL6X.js} +20 -20
- package/dist/cli/{pages-7QLXLJGQ.mjs → pages-QJO53QAT.mjs} +8 -8
- package/dist/cli/{play-4OLYXRCG.mjs → play-SQRS7JN3.mjs} +20 -20
- package/dist/cli/{play-S3CWPQKB.js → play-TAYGSR35.js} +336 -336
- package/dist/cli/{providers-JT7C2QTC.mjs → providers-3IR3N5DT.mjs} +8 -8
- package/dist/cli/{providers-U4JUMLB2.js → providers-4Q5LOIQ5.js} +11 -11
- package/dist/cli/{quickstart-OUSMXLYZ.js → quickstart-ITNUZENY.js} +6 -6
- package/dist/cli/{quickstart-DQF5CF2I.mjs → quickstart-KCZCYO6B.mjs} +4 -4
- package/dist/cli/{run-RECNI77K.mjs → run-JCWRWDSK.mjs} +24 -24
- package/dist/cli/{run-6XXHLB4X.js → run-YQ57LMKN.js} +42 -42
- package/dist/cli/run-identity-HFYABUJS.js +31 -0
- package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MNRZS2N3.mjs} +9 -3
- package/dist/cli/{search-JN7K3GC6.mjs → search-FUM27HQP.mjs} +9 -9
- package/dist/cli/search-I425FRTK.js +32 -0
- package/dist/cli/{search-output-L6PC5SPM.mjs → search-output-EWEYT34M.mjs} +4 -4
- package/dist/cli/{search-output-JGNYXDWZ.js → search-output-XAMWKRJH.js} +6 -6
- package/dist/cli/{secrets-TX6PCZ77.js → secrets-2IRRRZBL.js} +17 -17
- package/dist/cli/{secrets-UOXZWHBY.mjs → secrets-YTI4IAKR.mjs} +8 -8
- package/dist/cli/{sessions-DTE733EH.mjs → sessions-EFS4KUPF.mjs} +5 -5
- package/dist/cli/{sessions-GCEIX4KB.js → sessions-HWTRDXBQ.js} +6 -6
- package/dist/cli/{settings-UGXSDHR5.js → settings-FRVEIOKR.js} +80 -80
- package/dist/cli/{settings-ZGIMRCTC.mjs → settings-NTOO42DY.mjs} +13 -13
- package/dist/cli/{setup-JYB6Z376.js → setup-6ZIOAE2V.js} +49 -49
- package/dist/cli/{setup-UT7AO53D.mjs → setup-PAVQPALX.mjs} +9 -9
- package/dist/cli/{skills-4QJCMN7J.mjs → skills-3O3XTPUM.mjs} +7 -7
- package/dist/cli/skills-6ZNMO2PR.js +36 -0
- package/dist/cli/{tools-RGNXIAA6.mjs → tools-7QSB65UL.mjs} +18 -18
- package/dist/cli/tools-DPV2JES6.js +57 -0
- package/dist/cli/update-Q5GUDEAW.js +34 -0
- package/dist/cli/{update-Q62EVSXZ.mjs → update-T6CYS5ZT.mjs} +9 -9
- package/dist/cli/{workflow-GENV47RD.js → workflow-4KMJBMGX.js} +19 -19
- package/dist/cli/{workflow-YNIOWM7J.mjs → workflow-OMSXZ73T.mjs} +9 -9
- package/dist/{client-Cj3UqrCZ.d.ts → client-Bn8FwKGO.d.ts} +1 -1
- package/dist/{client-DSCTVVRj.d.mts → client-CfNRmjLK.d.mts} +1 -1
- package/dist/{client-core-dI4KTuWS.d.ts → client-core-B91EV0WS.d.ts} +19 -0
- package/dist/{client-core-B-8DTIN1.d.mts → client-core-BG8Cgrmk.d.mts} +19 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +19 -19
- package/dist/index.mjs +8 -8
- package/dist/install-integrity.json +114 -108
- 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/plays/run-request.js +3 -3
- package/dist/plays/run-request.mjs +2 -2
- 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 +7 -7
- package/dist/server.mjs +5 -5
- package/package.json +1 -1
- package/dist/cli/auth-H4PCVUN3.js +0 -43
- package/dist/cli/describe-BZ544347.js +0 -50
- package/dist/cli/git-NW6BAXX2.js +0 -25
- package/dist/cli/run-identity-G257GQED.js +0 -25
- package/dist/cli/search-BIQ62ZBE.js +0 -32
- package/dist/cli/skills-53LCPB5R.js +0 -36
- package/dist/cli/tools-HKJK6UNJ.js +0 -57
- package/dist/cli/update-QMZSFTFZ.js +0 -34
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQQ3JJYE2js = require('./chunk-QQ3JJYE2.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,15 +18,15 @@ var _chunk74VKLBJDjs = require('./chunk-74VKLBJD.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkKTOAJP4Njs = require('./chunk-KTOAJP4N.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk463ZOO2Ljs = require('./chunk-463ZOO2L.js');
|
|
25
25
|
require('./chunk-D3BCSAN7.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkVL72UKNWjs = require('./chunk-VL72UKNW.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -59,10 +59,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkEKF4DKUAjs = require('./chunk-EKF4DKUA.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
|
-
var
|
|
65
|
+
var _chunkRU5ROUFOjs = require('./chunk-RU5ROUFO.js');
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
@@ -75,7 +75,7 @@ var _chunkREIKJREBjs = require('./chunk-REIKJREB.js');
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _chunkUR7JOSLTjs = require('./chunk-UR7JOSLT.js');
|
|
79
79
|
require('./chunk-E4CABWXL.js');
|
|
80
80
|
|
|
81
81
|
|
|
@@ -89,27 +89,27 @@ require('./chunk-E4CABWXL.js');
|
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
var
|
|
92
|
+
var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
97
|
-
require('./chunk-
|
|
97
|
+
require('./chunk-WSGXBROE.js');
|
|
98
98
|
|
|
99
99
|
|
|
100
100
|
|
|
101
|
-
var
|
|
101
|
+
var _chunkTOE7LHEAjs = require('./chunk-TOE7LHEA.js');
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
|
|
107
|
-
var
|
|
108
|
-
require('./chunk-
|
|
107
|
+
var _chunkJ6SVNKRPjs = require('./chunk-J6SVNKRP.js');
|
|
108
|
+
require('./chunk-APAHMCGR.js');
|
|
109
109
|
|
|
110
110
|
|
|
111
111
|
|
|
112
|
-
var
|
|
112
|
+
var _chunkEKZQ5LQOjs = require('./chunk-EKZQ5LQO.js');
|
|
113
113
|
|
|
114
114
|
|
|
115
115
|
|
|
@@ -123,17 +123,17 @@ var _chunkIX2DPYIVjs = require('./chunk-IX2DPYIV.js');
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
var
|
|
127
|
-
require('./chunk-
|
|
126
|
+
var _chunk5X4AUFYWjs = require('./chunk-5X4AUFYW.js');
|
|
127
|
+
require('./chunk-BOFCF4L7.js');
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunkSV2TEZ2Mjs = require('./chunk-SV2TEZ2M.js');
|
|
131
131
|
require('./chunk-ALJJRZNJ.js');
|
|
132
132
|
require('./chunk-XNYIZMNQ.js');
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
136
|
-
require('./chunk-
|
|
136
|
+
require('./chunk-4OXHLTCP.js');
|
|
137
137
|
require('./chunk-OG64RBAC.js');
|
|
138
138
|
|
|
139
139
|
|
|
@@ -2115,7 +2115,7 @@ function resolveField(key, command) {
|
|
|
2115
2115
|
function printSettings(result, json, name) {
|
|
2116
2116
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2117
2117
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2118
|
-
|
|
2118
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
2119
2119
|
{
|
|
2120
2120
|
...result,
|
|
2121
2121
|
settings: Object.fromEntries(
|
|
@@ -2159,7 +2159,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2159
2159
|
valueSyntax: field.cli.valueSyntax,
|
|
2160
2160
|
examples: field.cli.examples
|
|
2161
2161
|
}));
|
|
2162
|
-
|
|
2162
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
2163
2163
|
{
|
|
2164
2164
|
fields: descriptions,
|
|
2165
2165
|
render: {
|
|
@@ -2184,7 +2184,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2184
2184
|
async (options, command) => {
|
|
2185
2185
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2186
2186
|
printSettings(
|
|
2187
|
-
await new (0,
|
|
2187
|
+
await new (0, _chunkRU5ROUFOjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2188
2188
|
options.json,
|
|
2189
2189
|
options.name
|
|
2190
2190
|
);
|
|
@@ -2215,7 +2215,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2215
2215
|
);
|
|
2216
2216
|
}
|
|
2217
2217
|
if (options.dryRun) {
|
|
2218
|
-
|
|
2218
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
2219
2219
|
{
|
|
2220
2220
|
dryRun: true,
|
|
2221
2221
|
play,
|
|
@@ -2236,7 +2236,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2236
2236
|
return;
|
|
2237
2237
|
}
|
|
2238
2238
|
printSettings(
|
|
2239
|
-
await new (0,
|
|
2239
|
+
await new (0, _chunkRU5ROUFOjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2240
2240
|
options.json
|
|
2241
2241
|
);
|
|
2242
2242
|
};
|
|
@@ -2262,13 +2262,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2262
2262
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2263
2263
|
{ exitCode: 2 }
|
|
2264
2264
|
);
|
|
2265
|
-
const page = await new (0,
|
|
2265
|
+
const page = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2266
2266
|
root: options.root,
|
|
2267
2267
|
limit,
|
|
2268
2268
|
cursor: options.cursor
|
|
2269
2269
|
});
|
|
2270
2270
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2271
|
-
|
|
2271
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
2272
2272
|
{
|
|
2273
2273
|
...page,
|
|
2274
2274
|
nextCommand,
|
|
@@ -2319,7 +2319,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2319
2319
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2320
2320
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2321
2321
|
};
|
|
2322
|
-
const client = new (0,
|
|
2322
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
2323
2323
|
const paths = [];
|
|
2324
2324
|
let cursor;
|
|
2325
2325
|
do {
|
|
@@ -2381,7 +2381,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2381
2381
|
moved.push(move.playName);
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
2384
|
-
|
|
2384
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
2385
2385
|
{
|
|
2386
2386
|
dryRun: Boolean(options.dryRun),
|
|
2387
2387
|
from: options.from,
|
|
@@ -2509,7 +2509,7 @@ function triggerLines(view) {
|
|
|
2509
2509
|
return lines;
|
|
2510
2510
|
}
|
|
2511
2511
|
function printView(view, json) {
|
|
2512
|
-
|
|
2512
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
2513
2513
|
{
|
|
2514
2514
|
...view,
|
|
2515
2515
|
render: {
|
|
@@ -2522,7 +2522,7 @@ function printView(view, json) {
|
|
|
2522
2522
|
);
|
|
2523
2523
|
}
|
|
2524
2524
|
function printResult(result, json) {
|
|
2525
|
-
|
|
2525
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
2526
2526
|
{
|
|
2527
2527
|
...result,
|
|
2528
2528
|
render: {
|
|
@@ -2552,7 +2552,7 @@ async function mutate(command, options, build) {
|
|
|
2552
2552
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2553
2553
|
}
|
|
2554
2554
|
if (options.dryRun) {
|
|
2555
|
-
|
|
2555
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
2556
2556
|
{
|
|
2557
2557
|
dryRun: true,
|
|
2558
2558
|
play: options.play,
|
|
@@ -2571,7 +2571,7 @@ async function mutate(command, options, build) {
|
|
|
2571
2571
|
return;
|
|
2572
2572
|
}
|
|
2573
2573
|
printResult(
|
|
2574
|
-
await new (0,
|
|
2574
|
+
await new (0, _chunkRU5ROUFOjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2575
2575
|
options.json
|
|
2576
2576
|
);
|
|
2577
2577
|
}
|
|
@@ -2604,7 +2604,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2604
2604
|
}).addHelpText("after", help2);
|
|
2605
2605
|
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
|
|
2606
2606
|
printView(
|
|
2607
|
-
await new (0,
|
|
2607
|
+
await new (0, _chunkRU5ROUFOjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2608
2608
|
options.json
|
|
2609
2609
|
);
|
|
2610
2610
|
});
|
|
@@ -2648,7 +2648,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2648
2648
|
if (options.auth === void 0) {
|
|
2649
2649
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2650
2650
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2651
|
-
const current = await new (0,
|
|
2651
|
+
const current = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2652
2652
|
options.play
|
|
2653
2653
|
);
|
|
2654
2654
|
return {
|
|
@@ -2725,7 +2725,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2725
2725
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2726
2726
|
"runtime.event": "Other event."
|
|
2727
2727
|
};
|
|
2728
|
-
var RUN_LOGS_KIND_HELP =
|
|
2728
|
+
var RUN_LOGS_KIND_HELP = _chunkUR7JOSLTjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2729
2729
|
kind,
|
|
2730
2730
|
description: KIND_DESCRIPTIONS[kind]
|
|
2731
2731
|
}));
|
|
@@ -2862,9 +2862,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2862
2862
|
const args = program.args;
|
|
2863
2863
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2864
2864
|
error.exitCode = 2;
|
|
2865
|
-
if (
|
|
2866
|
-
|
|
2867
|
-
Object.assign(new (0,
|
|
2865
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2866
|
+
_chunk5X4AUFYWjs.printJsonError.call(void 0,
|
|
2867
|
+
Object.assign(new (0, _chunkUR7JOSLTjs.RunEventQueryInputError)(error.message), {
|
|
2868
2868
|
exitCode: 2,
|
|
2869
2869
|
retryable: false
|
|
2870
2870
|
})
|
|
@@ -2908,14 +2908,14 @@ function parseQuery(args, resource) {
|
|
|
2908
2908
|
if (VALUE_FLAGS.has(flag)) {
|
|
2909
2909
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2910
2910
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2911
|
-
throw new (0,
|
|
2911
|
+
throw new (0, _chunkUR7JOSLTjs.RunEventQueryInputError)(
|
|
2912
2912
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2913
2913
|
);
|
|
2914
2914
|
}
|
|
2915
2915
|
if (flag === "--sum") sums.push(value);
|
|
2916
2916
|
else {
|
|
2917
2917
|
if (values[flag] !== void 0) {
|
|
2918
|
-
throw new (0,
|
|
2918
|
+
throw new (0, _chunkUR7JOSLTjs.RunEventQueryInputError)(
|
|
2919
2919
|
`${flag} may only be supplied once.`
|
|
2920
2920
|
);
|
|
2921
2921
|
}
|
|
@@ -2929,12 +2929,12 @@ function parseQuery(args, resource) {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
if (arg.startsWith("-")) {
|
|
2931
2931
|
const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
|
|
2932
|
-
throw new (0,
|
|
2932
|
+
throw new (0, _chunkUR7JOSLTjs.RunEventQueryInputError)(
|
|
2933
2933
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2934
2934
|
);
|
|
2935
2935
|
}
|
|
2936
2936
|
if (runId !== void 0) {
|
|
2937
|
-
throw new (0,
|
|
2937
|
+
throw new (0, _chunkUR7JOSLTjs.RunEventQueryInputError)(
|
|
2938
2938
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2939
2939
|
);
|
|
2940
2940
|
}
|
|
@@ -2942,7 +2942,7 @@ function parseQuery(args, resource) {
|
|
|
2942
2942
|
}
|
|
2943
2943
|
if (switches.has("--fields")) {
|
|
2944
2944
|
if (runId !== void 0) {
|
|
2945
|
-
throw new (0,
|
|
2945
|
+
throw new (0, _chunkUR7JOSLTjs.RunEventQueryInputError)(
|
|
2946
2946
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2947
2947
|
);
|
|
2948
2948
|
}
|
|
@@ -2955,18 +2955,18 @@ function parseQuery(args, resource) {
|
|
|
2955
2955
|
)
|
|
2956
2956
|
];
|
|
2957
2957
|
if (incompatible.length) {
|
|
2958
|
-
throw new (0,
|
|
2958
|
+
throw new (0, _chunkUR7JOSLTjs.RunEventQueryInputError)(
|
|
2959
2959
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2960
2960
|
);
|
|
2961
2961
|
}
|
|
2962
2962
|
}
|
|
2963
2963
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2964
|
-
throw new (0,
|
|
2964
|
+
throw new (0, _chunkUR7JOSLTjs.RunEventQueryInputError)(
|
|
2965
2965
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2966
2966
|
);
|
|
2967
2967
|
}
|
|
2968
2968
|
if (sums.length && switches.has("--count")) {
|
|
2969
|
-
throw new (0,
|
|
2969
|
+
throw new (0, _chunkUR7JOSLTjs.RunEventQueryInputError)(
|
|
2970
2970
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2971
2971
|
);
|
|
2972
2972
|
}
|
|
@@ -2974,7 +2974,7 @@ function parseQuery(args, resource) {
|
|
|
2974
2974
|
if (operation === "count") {
|
|
2975
2975
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2976
2976
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2977
|
-
throw new (0,
|
|
2977
|
+
throw new (0, _chunkUR7JOSLTjs.RunEventQueryInputError)(
|
|
2978
2978
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2979
2979
|
);
|
|
2980
2980
|
}
|
|
@@ -3009,16 +3009,16 @@ function parseQuery(args, resource) {
|
|
|
3009
3009
|
];
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
|
-
const request =
|
|
3012
|
+
const request = _chunkUR7JOSLTjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3013
3013
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3014
3014
|
const backend = values["--runtime-backend"];
|
|
3015
3015
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3016
|
-
throw new (0,
|
|
3016
|
+
throw new (0, _chunkUR7JOSLTjs.RunEventQueryInputError)(
|
|
3017
3017
|
"--runtime-backend must be daytona or modal."
|
|
3018
3018
|
);
|
|
3019
3019
|
}
|
|
3020
3020
|
if (backend && !namespace) {
|
|
3021
|
-
throw new (0,
|
|
3021
|
+
throw new (0, _chunkUR7JOSLTjs.RunEventQueryInputError)(
|
|
3022
3022
|
"--runtime-backend requires --runtime-namespace."
|
|
3023
3023
|
);
|
|
3024
3024
|
}
|
|
@@ -3065,12 +3065,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3065
3065
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3066
3066
|
const record3 = failure;
|
|
3067
3067
|
const status = record3.statusCode;
|
|
3068
|
-
const exitCode = error instanceof
|
|
3068
|
+
const exitCode = error instanceof _chunkUR7JOSLTjs.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
3069
|
const diagnostic = Object.assign(failure, {
|
|
3070
3070
|
exitCode,
|
|
3071
3071
|
retryable: exitCode === 5
|
|
3072
3072
|
});
|
|
3073
|
-
if (
|
|
3073
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) _chunk5X4AUFYWjs.printJsonError.call(void 0, diagnostic);
|
|
3074
3074
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3075
3075
|
return exitCode;
|
|
3076
3076
|
}
|
|
@@ -3085,7 +3085,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3085
3085
|
...criteria
|
|
3086
3086
|
} = request;
|
|
3087
3087
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3088
|
-
const client = new (0,
|
|
3088
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
3089
3089
|
let result;
|
|
3090
3090
|
if (request.operation === "fields") {
|
|
3091
3091
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3151,13 +3151,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3151
3151
|
lines.push(`Next page: ${nextPage}`);
|
|
3152
3152
|
}
|
|
3153
3153
|
}
|
|
3154
|
-
|
|
3154
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
3155
3155
|
{
|
|
3156
3156
|
...result,
|
|
3157
3157
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3158
3158
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3159
3159
|
},
|
|
3160
|
-
{ json:
|
|
3160
|
+
{ json: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3161
3161
|
` }
|
|
3162
3162
|
);
|
|
3163
3163
|
return 0;
|
|
@@ -3228,7 +3228,7 @@ function rowCountsFrom(input) {
|
|
|
3228
3228
|
return { completed: c, failed: f, total: known };
|
|
3229
3229
|
}
|
|
3230
3230
|
function decodeRunStatus(status) {
|
|
3231
|
-
return
|
|
3231
|
+
return _chunkRNSHCJMEjs.decodePlayRunPublicStatus.call(void 0, status);
|
|
3232
3232
|
}
|
|
3233
3233
|
function deriveRunExecutionState(input) {
|
|
3234
3234
|
const status = decodeRunStatus(input.status);
|
|
@@ -4076,7 +4076,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4076
4076
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4077
4077
|
);
|
|
4078
4078
|
}
|
|
4079
|
-
const response = await new (0,
|
|
4079
|
+
const response = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4080
4080
|
keys
|
|
4081
4081
|
});
|
|
4082
4082
|
const failed = response.receipts.filter(
|
|
@@ -4088,7 +4088,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4088
4088
|
JSON.stringify(response, null, 2) + "\n",
|
|
4089
4089
|
{ flag: "wx", mode: 384 }
|
|
4090
4090
|
);
|
|
4091
|
-
|
|
4091
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
4092
4092
|
{
|
|
4093
4093
|
runId,
|
|
4094
4094
|
out: options.out,
|
|
@@ -4098,7 +4098,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4098
4098
|
{ json: true }
|
|
4099
4099
|
);
|
|
4100
4100
|
} else {
|
|
4101
|
-
|
|
4101
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4102
4102
|
}
|
|
4103
4103
|
if (failed)
|
|
4104
4104
|
process.exitCode = response.receipts.some(
|
|
@@ -4137,7 +4137,7 @@ includes nextCommand when another page is available.
|
|
|
4137
4137
|
{ exitCode: 2 }
|
|
4138
4138
|
);
|
|
4139
4139
|
}
|
|
4140
|
-
const page = await new (0,
|
|
4140
|
+
const page = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4141
4141
|
launchKey: options.launchKey,
|
|
4142
4142
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4143
4143
|
limit
|
|
@@ -4152,7 +4152,7 @@ includes nextCommand when another page is available.
|
|
|
4152
4152
|
"--limit",
|
|
4153
4153
|
String(limit)
|
|
4154
4154
|
].join(" ") : null;
|
|
4155
|
-
|
|
4155
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
4156
4156
|
{
|
|
4157
4157
|
parentRunId,
|
|
4158
4158
|
launchKey: options.launchKey,
|
|
@@ -4188,7 +4188,7 @@ async function handleRunsHistory(options) {
|
|
|
4188
4188
|
throw new Error("--limit must be a positive integer.");
|
|
4189
4189
|
}
|
|
4190
4190
|
}
|
|
4191
|
-
const page = await new (0,
|
|
4191
|
+
const page = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().runs.history({
|
|
4192
4192
|
cursor: options.cursor,
|
|
4193
4193
|
orgId: options.org,
|
|
4194
4194
|
search: options.search,
|
|
@@ -4204,7 +4204,7 @@ async function handleRunsHistory(options) {
|
|
|
4204
4204
|
);
|
|
4205
4205
|
}
|
|
4206
4206
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4207
|
-
|
|
4207
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
4208
4208
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4209
4209
|
options.json ? { json: true } : {}
|
|
4210
4210
|
);
|
|
@@ -4256,12 +4256,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4256
4256
|
return 1;
|
|
4257
4257
|
}
|
|
4258
4258
|
}
|
|
4259
|
-
const result = await new (0,
|
|
4259
|
+
const result = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().runs.rerun(runId, {
|
|
4260
4260
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4261
4261
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4262
4262
|
});
|
|
4263
|
-
if (
|
|
4264
|
-
|
|
4263
|
+
if (_chunk5X4AUFYWjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4264
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4265
4265
|
} else if (result.rateLimited) {
|
|
4266
4266
|
console.log(`
|
|
4267
4267
|
${result.rateLimited.message}`);
|
|
@@ -4327,7 +4327,7 @@ function runTableHitCounts(tableNamespace, summary) {
|
|
|
4327
4327
|
const columns = {};
|
|
4328
4328
|
for (const column of Object.keys(_nullishCoalesce(summary.columns, () => ( {})))) {
|
|
4329
4329
|
if (column.includes(".")) continue;
|
|
4330
|
-
const physical =
|
|
4330
|
+
const physical = _chunkRNSHCJMEjs.sqlSafePlayColumnName.call(void 0, column);
|
|
4331
4331
|
if (legColumns.has(physical)) continue;
|
|
4332
4332
|
const count2 = filled[physical];
|
|
4333
4333
|
if (typeof count2 === "number") columns[column] = count2;
|
|
@@ -5055,13 +5055,13 @@ var RunDataset = class _RunDataset {
|
|
|
5055
5055
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5056
5056
|
_fs.writeFileSync.call(void 0,
|
|
5057
5057
|
absolutePath,
|
|
5058
|
-
`${JSON.stringify(
|
|
5058
|
+
`${JSON.stringify(_chunkKTOAJP4Njs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5059
5059
|
`,
|
|
5060
5060
|
"utf-8"
|
|
5061
5061
|
);
|
|
5062
5062
|
return absolutePath;
|
|
5063
5063
|
}
|
|
5064
|
-
return
|
|
5064
|
+
return _chunkKTOAJP4Njs.writeRunDatasetCsv.call(void 0, {
|
|
5065
5065
|
rows: this.rows,
|
|
5066
5066
|
columns: this.#info.columns,
|
|
5067
5067
|
outPath
|
|
@@ -6758,7 +6758,7 @@ function renderOutcome(outcome) {
|
|
|
6758
6758
|
function printResult2(input) {
|
|
6759
6759
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6760
6760
|
if (failed) process.exitCode = 1;
|
|
6761
|
-
|
|
6761
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
6762
6762
|
{
|
|
6763
6763
|
deployment: { ...input.deployment, status: input.status },
|
|
6764
6764
|
plays: input.outcomes,
|
|
@@ -6783,7 +6783,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6783
6783
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6784
6784
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6785
6785
|
});
|
|
6786
|
-
const { http, config } =
|
|
6786
|
+
const { http, config } = _chunk5X4AUFYWjs.getAuthedHttpClient.call(void 0, );
|
|
6787
6787
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6788
6788
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6789
6789
|
deliveryId,
|
|
@@ -6810,7 +6810,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6810
6810
|
},
|
|
6811
6811
|
{
|
|
6812
6812
|
bundle: bundleDeployPlayFile,
|
|
6813
|
-
fetchImpl:
|
|
6813
|
+
fetchImpl: _chunkSV2TEZ2Mjs.fetchWithDeploymentProtection,
|
|
6814
6814
|
// The plays are already here: "opening" the source is naming it.
|
|
6815
6815
|
openSource: async () => ({
|
|
6816
6816
|
open: async () => ({ repoRoot: root })
|
|
@@ -6936,7 +6936,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6936
6936
|
// src/cli/renderers/local-play-execution.ts
|
|
6937
6937
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6938
6938
|
if (options.dryRun) {
|
|
6939
|
-
|
|
6939
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6940
6940
|
return;
|
|
6941
6941
|
}
|
|
6942
6942
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7108,7 +7108,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7108
7108
|
const startedAt = Date.now();
|
|
7109
7109
|
try {
|
|
7110
7110
|
const result = run();
|
|
7111
|
-
|
|
7111
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
7112
7112
|
phase,
|
|
7113
7113
|
ms: Date.now() - startedAt,
|
|
7114
7114
|
ok: true,
|
|
@@ -7116,7 +7116,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7116
7116
|
});
|
|
7117
7117
|
return result;
|
|
7118
7118
|
} catch (error) {
|
|
7119
|
-
|
|
7119
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
7120
7120
|
phase,
|
|
7121
7121
|
ms: Date.now() - startedAt,
|
|
7122
7122
|
ok: false,
|
|
@@ -7594,7 +7594,7 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
|
|
|
7594
7594
|
if (!trimmed || isUrlValue(trimmed)) {
|
|
7595
7595
|
return;
|
|
7596
7596
|
}
|
|
7597
|
-
const keyIsCsvData = key ===
|
|
7597
|
+
const keyIsCsvData = key === _chunkRNSHCJMEjs.CSV_DATA_INPUT_KEY;
|
|
7598
7598
|
const endsWithCsv = /\.csv$/i.test(trimmed);
|
|
7599
7599
|
const looksLikeFile = /\.[a-z0-9]{1,8}$/i.test(trimmed);
|
|
7600
7600
|
if (keyIsCsvData) {
|
|
@@ -7625,14 +7625,14 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
|
|
|
7625
7625
|
}
|
|
7626
7626
|
}
|
|
7627
7627
|
function preflightLocalFileInputs(runtimeInput) {
|
|
7628
|
-
if (
|
|
7629
|
-
const csvValue = runtimeInput[
|
|
7628
|
+
if (_chunkRNSHCJMEjs.CSV_DATA_INPUT_KEY in runtimeInput) {
|
|
7629
|
+
const csvValue = runtimeInput[_chunkRNSHCJMEjs.CSV_DATA_INPUT_KEY];
|
|
7630
7630
|
if (typeof csvValue === "string" && csvValue.trim().length === 0) {
|
|
7631
7631
|
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
7632
|
-
`Input ${
|
|
7632
|
+
`Input ${_chunkRNSHCJMEjs.CSV_DATA_INPUT_KEY} is an empty string. Provide a path to a CSV file (or a CSV URL). No run was created.`,
|
|
7633
7633
|
void 0,
|
|
7634
7634
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
7635
|
-
{ inputPath:
|
|
7635
|
+
{ inputPath: _chunkRNSHCJMEjs.CSV_DATA_INPUT_KEY, reason: "csv_empty_string" }
|
|
7636
7636
|
);
|
|
7637
7637
|
}
|
|
7638
7638
|
}
|
|
@@ -7699,7 +7699,7 @@ var NODE_STAGED_FILE_CODEC = {
|
|
|
7699
7699
|
)
|
|
7700
7700
|
};
|
|
7701
7701
|
async function stageFileInputArgs(input) {
|
|
7702
|
-
return
|
|
7702
|
+
return _chunkRNSHCJMEjs.stageFileInputs.call(void 0, {
|
|
7703
7703
|
stage: (files) => input.client.stagePlayFiles(files),
|
|
7704
7704
|
runtimeInput: input.runtimeInput,
|
|
7705
7705
|
bindings: input.bindings,
|
|
@@ -7723,7 +7723,7 @@ function stageFile(logicalPath, absolutePath) {
|
|
|
7723
7723
|
logicalPath,
|
|
7724
7724
|
contentBase64: buffer.toString("base64"),
|
|
7725
7725
|
contentHash: _crypto.createHash.call(void 0, "sha256").update(buffer).digest("hex"),
|
|
7726
|
-
contentType:
|
|
7726
|
+
contentType: _chunkRNSHCJMEjs.stagedFileContentType.call(void 0, absolutePath),
|
|
7727
7727
|
bytes: buffer.byteLength
|
|
7728
7728
|
};
|
|
7729
7729
|
}
|
|
@@ -7922,7 +7922,7 @@ function playStatusErrorText(status) {
|
|
|
7922
7922
|
function isRetryablePendingStartFailure(status) {
|
|
7923
7923
|
if (status.status !== "failed") return false;
|
|
7924
7924
|
if (status.runId && status.runId !== "pending") return false;
|
|
7925
|
-
return
|
|
7925
|
+
return _chunkUR7JOSLTjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7926
7926
|
}
|
|
7927
7927
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7928
7928
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -7972,13 +7972,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
7972
7972
|
}, _class);
|
|
7973
7973
|
function watchSurfaceReaches(state, provenance, level) {
|
|
7974
7974
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
7975
|
-
if (!
|
|
7975
|
+
if (!_chunkUR7JOSLTjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
7976
7976
|
return false;
|
|
7977
7977
|
}
|
|
7978
|
-
if (
|
|
7978
|
+
if (_chunkUR7JOSLTjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
7979
7979
|
return true;
|
|
7980
7980
|
}
|
|
7981
|
-
return state.verbose === true &&
|
|
7981
|
+
return state.verbose === true && _chunkUR7JOSLTjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
7982
7982
|
}
|
|
7983
7983
|
function getEventPayload(event) {
|
|
7984
7984
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8488,7 +8488,7 @@ function resolvePlayRunUrl(input) {
|
|
|
8488
8488
|
}
|
|
8489
8489
|
function openPlayDashboard(url, open2) {
|
|
8490
8490
|
if (open2 && url) {
|
|
8491
|
-
|
|
8491
|
+
_chunk5X4AUFYWjs.openInBrowser.call(void 0, url);
|
|
8492
8492
|
}
|
|
8493
8493
|
}
|
|
8494
8494
|
function printPlayLogLines(input) {
|
|
@@ -8569,7 +8569,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8569
8569
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8570
8570
|
});
|
|
8571
8571
|
} catch (error) {
|
|
8572
|
-
if (
|
|
8572
|
+
if (_chunkUR7JOSLTjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8573
8573
|
return null;
|
|
8574
8574
|
}
|
|
8575
8575
|
throw error;
|
|
@@ -8650,9 +8650,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8650
8650
|
signal: controller.signal,
|
|
8651
8651
|
deferLogs: !input.emitLogs,
|
|
8652
8652
|
omitTerminalLogs: !input.emitLogs,
|
|
8653
|
-
...
|
|
8653
|
+
..._chunkJ6SVNKRPjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8654
8654
|
onPoll: (observation) => {
|
|
8655
|
-
|
|
8655
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
8656
8656
|
phase: "play_watch_poll",
|
|
8657
8657
|
workflowId: input.workflowId,
|
|
8658
8658
|
ms: observation.durationMs,
|
|
@@ -8666,7 +8666,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8666
8666
|
full: input.fullJson,
|
|
8667
8667
|
billing: false,
|
|
8668
8668
|
onStatus: async (status) => {
|
|
8669
|
-
|
|
8669
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
8670
8670
|
phase: "play_watch_terminal_status",
|
|
8671
8671
|
workflowId: input.workflowId,
|
|
8672
8672
|
full: input.fullJson === true
|
|
@@ -8755,7 +8755,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8755
8755
|
signal: controller.signal,
|
|
8756
8756
|
cliAdmission: useCliAdmission
|
|
8757
8757
|
});
|
|
8758
|
-
|
|
8758
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
8759
8759
|
phase: "cli.play_start_admission_attempt",
|
|
8760
8760
|
ms: Date.now() - postStartedAt,
|
|
8761
8761
|
ok: true,
|
|
@@ -8767,7 +8767,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8767
8767
|
});
|
|
8768
8768
|
break;
|
|
8769
8769
|
} catch (error) {
|
|
8770
|
-
|
|
8770
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
8771
8771
|
phase: "cli.play_start_admission_attempt",
|
|
8772
8772
|
ms: Date.now() - postStartedAt,
|
|
8773
8773
|
ok: false,
|
|
@@ -8789,7 +8789,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8789
8789
|
prepared.workflowId
|
|
8790
8790
|
);
|
|
8791
8791
|
}
|
|
8792
|
-
if (callerIntentV2 && error instanceof
|
|
8792
|
+
if (callerIntentV2 && error instanceof _chunkRNSHCJMEjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
|
|
8793
8793
|
if (currentAttempt > 1) {
|
|
8794
8794
|
throw new PlayStartOutcomeUnknownError(
|
|
8795
8795
|
input.playName,
|
|
@@ -8810,7 +8810,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8810
8810
|
waitTimeoutMs: remaining === null ? null : Math.max(1, remaining)
|
|
8811
8811
|
});
|
|
8812
8812
|
}
|
|
8813
|
-
if (useCliAdmission && error instanceof
|
|
8813
|
+
if (useCliAdmission && error instanceof _chunkRNSHCJMEjs.CliPlayAdmissionUnsupportedError) {
|
|
8814
8814
|
if (currentAttempt > 1) {
|
|
8815
8815
|
throw new PlayStartOutcomeUnknownError(
|
|
8816
8816
|
input.playName,
|
|
@@ -8818,7 +8818,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8818
8818
|
prepared.workflowId
|
|
8819
8819
|
);
|
|
8820
8820
|
}
|
|
8821
|
-
await
|
|
8821
|
+
await _chunkTOE7LHEAjs.checkPlayRunCompatibility.call(void 0,
|
|
8822
8822
|
input.client.baseUrl,
|
|
8823
8823
|
input.maintenancePolicy
|
|
8824
8824
|
);
|
|
@@ -8836,7 +8836,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8836
8836
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
8837
8837
|
);
|
|
8838
8838
|
}
|
|
8839
|
-
|
|
8839
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
8840
8840
|
phase: "cli.play_start_json_retry",
|
|
8841
8841
|
ms: 0,
|
|
8842
8842
|
ok: true,
|
|
@@ -8916,7 +8916,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8916
8916
|
_nullishCoalesce(input.open, () => ( false))
|
|
8917
8917
|
);
|
|
8918
8918
|
input.progress.phase("running");
|
|
8919
|
-
|
|
8919
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
8920
8920
|
phase: "cli.play_start_admitted",
|
|
8921
8921
|
ms: Date.now() - startedAt,
|
|
8922
8922
|
ok: true,
|
|
@@ -8934,7 +8934,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8934
8934
|
startedAt,
|
|
8935
8935
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8936
8936
|
});
|
|
8937
|
-
const initialStatus =
|
|
8937
|
+
const initialStatus = _chunkUR7JOSLTjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8938
8938
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8939
8939
|
client: input.client,
|
|
8940
8940
|
status: initialStatus,
|
|
@@ -8942,7 +8942,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8942
8942
|
jsonOutput: input.jsonOutput,
|
|
8943
8943
|
fromDurableStatus: true
|
|
8944
8944
|
});
|
|
8945
|
-
|
|
8945
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
8946
8946
|
phase: "play_watch_terminal_status",
|
|
8947
8947
|
workflowId,
|
|
8948
8948
|
full: true,
|
|
@@ -9033,7 +9033,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9033
9033
|
notice.value
|
|
9034
9034
|
);
|
|
9035
9035
|
} catch (error) {
|
|
9036
|
-
if (callerIntentV2 && error instanceof
|
|
9036
|
+
if (callerIntentV2 && error instanceof _chunkRNSHCJMEjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
|
|
9037
9037
|
const remaining = input.waitTimeoutMs === null ? null : input.waitTimeoutMs - (Date.now() - admissionStartedAt);
|
|
9038
9038
|
assertPlayWaitNotTimedOut({
|
|
9039
9039
|
workflowId: "",
|
|
@@ -9046,8 +9046,8 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9046
9046
|
waitTimeoutMs: remaining === null ? null : Math.max(1, remaining)
|
|
9047
9047
|
});
|
|
9048
9048
|
}
|
|
9049
|
-
if (error instanceof
|
|
9050
|
-
await
|
|
9049
|
+
if (error instanceof _chunkRNSHCJMEjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
9050
|
+
await _chunkTOE7LHEAjs.checkPlayRunCompatibility.call(void 0,
|
|
9051
9051
|
input.client.baseUrl,
|
|
9052
9052
|
input.maintenancePolicy,
|
|
9053
9053
|
admissionDeadline.signal
|
|
@@ -9088,7 +9088,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9088
9088
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9089
9089
|
);
|
|
9090
9090
|
}
|
|
9091
|
-
|
|
9091
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
9092
9092
|
phase: "cli.play_start_stream_retry",
|
|
9093
9093
|
ms: 0,
|
|
9094
9094
|
ok: true,
|
|
@@ -9109,7 +9109,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9109
9109
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9110
9110
|
);
|
|
9111
9111
|
}
|
|
9112
|
-
|
|
9112
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
9113
9113
|
phase: "cli.play_start_stream_retry",
|
|
9114
9114
|
ms: 0,
|
|
9115
9115
|
ok: true,
|
|
@@ -9166,7 +9166,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9166
9166
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9167
9167
|
launchConfirmed = true;
|
|
9168
9168
|
await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
|
|
9169
|
-
|
|
9169
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
9170
9170
|
phase: "cli.play_start_admitted",
|
|
9171
9171
|
ms: Date.now() - startedAt,
|
|
9172
9172
|
ok: true,
|
|
@@ -9200,7 +9200,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9200
9200
|
full: input.fullJson
|
|
9201
9201
|
});
|
|
9202
9202
|
} catch (error) {
|
|
9203
|
-
if (
|
|
9203
|
+
if (_chunkUR7JOSLTjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9204
9204
|
return null;
|
|
9205
9205
|
}
|
|
9206
9206
|
throw error;
|
|
@@ -9342,7 +9342,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9342
9342
|
let fromDurableStatus = reuseFullTerminal;
|
|
9343
9343
|
let canonicalTerminal;
|
|
9344
9344
|
const streamedTerminalPackage = getPlayRunPackage(finalStatus);
|
|
9345
|
-
const streamedTerminalPlayRunPackage =
|
|
9345
|
+
const streamedTerminalPlayRunPackage = _chunkRNSHCJMEjs.isPlayRunPackage.call(void 0,
|
|
9346
9346
|
streamedTerminalPackage
|
|
9347
9347
|
) ? streamedTerminalPackage : null;
|
|
9348
9348
|
const terminalEnvelopeIsComplete = finalStatus.status === "completed" && (event.type === "play.run.snapshot" || event.type === "play.run.final_status") && getEventPayload(event).replayed !== true && finalStatus.runId === lastKnownWorkflowId && !playRunPackageTextLedgerIncomplete(streamedTerminalPackage);
|
|
@@ -9371,7 +9371,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9371
9371
|
};
|
|
9372
9372
|
}
|
|
9373
9373
|
if (!canonicalTerminal) {
|
|
9374
|
-
|
|
9374
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
9375
9375
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9376
9376
|
ms: Date.now() - startedAt,
|
|
9377
9377
|
ok: true,
|
|
@@ -9392,14 +9392,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9392
9392
|
fromDurableStatus
|
|
9393
9393
|
}) : canonicalTerminal;
|
|
9394
9394
|
if (input.fullJson === true) {
|
|
9395
|
-
|
|
9395
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
9396
9396
|
phase: "play_watch_terminal_status",
|
|
9397
9397
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9398
9398
|
full: true,
|
|
9399
9399
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9400
9400
|
});
|
|
9401
9401
|
}
|
|
9402
|
-
|
|
9402
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
9403
9403
|
phase: "cli.play_start_stream_terminal",
|
|
9404
9404
|
ms: Date.now() - startedAt,
|
|
9405
9405
|
ok: true,
|
|
@@ -9419,7 +9419,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9419
9419
|
clearTimeout(timeout);
|
|
9420
9420
|
}
|
|
9421
9421
|
controller.abort();
|
|
9422
|
-
|
|
9422
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
9423
9423
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9424
9424
|
ms: Date.now() - startedAt,
|
|
9425
9425
|
ok: true,
|
|
@@ -9450,7 +9450,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9450
9450
|
if (timedOut) {
|
|
9451
9451
|
const terminal = await fetchKnownTerminalStatus();
|
|
9452
9452
|
if (terminal) {
|
|
9453
|
-
|
|
9453
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
9454
9454
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9455
9455
|
ms: Date.now() - startedAt,
|
|
9456
9456
|
ok: true,
|
|
@@ -9470,7 +9470,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9470
9470
|
lastPhase
|
|
9471
9471
|
});
|
|
9472
9472
|
}
|
|
9473
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9473
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkUR7JOSLTjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9474
9474
|
if (timeout) {
|
|
9475
9475
|
clearTimeout(timeout);
|
|
9476
9476
|
}
|
|
@@ -9481,7 +9481,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9481
9481
|
`
|
|
9482
9482
|
);
|
|
9483
9483
|
}
|
|
9484
|
-
|
|
9484
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
9485
9485
|
phase: "cli.play_start_stream_reconnect",
|
|
9486
9486
|
ms: Date.now() - startedAt,
|
|
9487
9487
|
ok: true,
|
|
@@ -9508,7 +9508,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9508
9508
|
});
|
|
9509
9509
|
}
|
|
9510
9510
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9511
|
-
|
|
9511
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
9512
9512
|
phase: "cli.play_start_stream_transient_failure",
|
|
9513
9513
|
ms: Date.now() - startedAt,
|
|
9514
9514
|
ok: false,
|
|
@@ -9536,7 +9536,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9536
9536
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9537
9537
|
);
|
|
9538
9538
|
}
|
|
9539
|
-
|
|
9539
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
9540
9540
|
phase: "cli.play_start_stream_reconnect",
|
|
9541
9541
|
ms: Date.now() - startedAt,
|
|
9542
9542
|
ok: true,
|
|
@@ -9616,7 +9616,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9616
9616
|
"logs"
|
|
9617
9617
|
]);
|
|
9618
9618
|
function formatPlayLogLine(rawLine, state) {
|
|
9619
|
-
const classified =
|
|
9619
|
+
const classified = _chunkUR7JOSLTjs.classifyLogLine.call(void 0, rawLine);
|
|
9620
9620
|
const line = classified.line;
|
|
9621
9621
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9622
9622
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9631,14 +9631,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9631
9631
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9632
9632
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9633
9633
|
if (providerWait && !state.verbose) {
|
|
9634
|
-
return
|
|
9634
|
+
return _chunkUR7JOSLTjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9635
9635
|
}
|
|
9636
9636
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9637
9637
|
if (mapProgress && !state.verbose) {
|
|
9638
|
-
return
|
|
9638
|
+
return _chunkUR7JOSLTjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9639
9639
|
}
|
|
9640
9640
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9641
|
-
if (!
|
|
9641
|
+
if (!_chunkUR7JOSLTjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9642
9642
|
return null;
|
|
9643
9643
|
}
|
|
9644
9644
|
if (state.emittedRunnerStarted) {
|
|
@@ -9651,7 +9651,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9651
9651
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9652
9652
|
);
|
|
9653
9653
|
if (mapStart) {
|
|
9654
|
-
if (!
|
|
9654
|
+
if (!_chunkUR7JOSLTjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9655
9655
|
return null;
|
|
9656
9656
|
}
|
|
9657
9657
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9661,7 +9661,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9661
9661
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9662
9662
|
);
|
|
9663
9663
|
if (mapDone) {
|
|
9664
|
-
if (!
|
|
9664
|
+
if (!_chunkUR7JOSLTjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9665
9665
|
return null;
|
|
9666
9666
|
}
|
|
9667
9667
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10961,7 +10961,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10961
10961
|
(line) => typeof line === "string"
|
|
10962
10962
|
);
|
|
10963
10963
|
if (tail.length === 0) return [];
|
|
10964
|
-
const shown = tail.map((line) =>
|
|
10964
|
+
const shown = tail.map((line) => _chunkUR7JOSLTjs.classifyLogLine.call(void 0, line)).filter(
|
|
10965
10965
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10966
10966
|
).slice(-8);
|
|
10967
10967
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11259,11 +11259,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11259
11259
|
}
|
|
11260
11260
|
function writePlayResult(status, jsonOutput, options) {
|
|
11261
11261
|
const packaged = getPlayRunPackage(status);
|
|
11262
|
-
if (status.package)
|
|
11262
|
+
if (status.package) _chunkKTOAJP4Njs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11263
11263
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
|
|
11264
11264
|
if (jsonOutput) {
|
|
11265
11265
|
const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11266
|
-
|
|
11266
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
11267
11267
|
hits ? { ...payload2, hits } : payload2,
|
|
11268
11268
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
|
|
11269
11269
|
);
|
|
@@ -11279,7 +11279,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11279
11279
|
...buildPlayCompletionTextLines(status),
|
|
11280
11280
|
...formatRunHitsLines(hits)
|
|
11281
11281
|
];
|
|
11282
|
-
|
|
11282
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11283
11283
|
json: false,
|
|
11284
11284
|
text: `${lines2.join("\n")}
|
|
11285
11285
|
`
|
|
@@ -11330,7 +11330,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11330
11330
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11331
11331
|
const compact = compactPlayStatus(status);
|
|
11332
11332
|
const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
|
|
11333
|
-
|
|
11333
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
11334
11334
|
{
|
|
11335
11335
|
...payload,
|
|
11336
11336
|
render: {
|
|
@@ -11554,7 +11554,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11554
11554
|
}
|
|
11555
11555
|
offset += page.rows.length;
|
|
11556
11556
|
}
|
|
11557
|
-
const withError =
|
|
11557
|
+
const withError = _chunkKTOAJP4Njs.tableExportHasFailedRows.call(void 0,
|
|
11558
11558
|
sheetRows.filter(
|
|
11559
11559
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11560
11560
|
)
|
|
@@ -11570,7 +11570,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11570
11570
|
return [
|
|
11571
11571
|
withError ? {
|
|
11572
11572
|
...exported,
|
|
11573
|
-
[
|
|
11573
|
+
[_chunkKTOAJP4Njs.TABLE_EXPORT_ERROR_COLUMN]: _chunkKTOAJP4Njs.tableExportErrorCell.call(void 0,
|
|
11574
11574
|
row
|
|
11575
11575
|
)
|
|
11576
11576
|
} : exported
|
|
@@ -12105,7 +12105,7 @@ function renderServerResultView(value) {
|
|
|
12105
12105
|
function writeStartedPlayRun(input) {
|
|
12106
12106
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12107
12107
|
const run = input.package.run;
|
|
12108
|
-
|
|
12108
|
+
_chunkKTOAJP4Njs.recordPlayTermination.call(void 0, {
|
|
12109
12109
|
id: run.id,
|
|
12110
12110
|
status: run.status,
|
|
12111
12111
|
finishedAt: run.finishedAt
|
|
@@ -12118,7 +12118,7 @@ function writeStartedPlayRun(input) {
|
|
|
12118
12118
|
dashboardUrl: input.dashboardUrl,
|
|
12119
12119
|
package: input.package
|
|
12120
12120
|
};
|
|
12121
|
-
|
|
12121
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12122
12122
|
json: true,
|
|
12123
12123
|
fields: input.jsonFields
|
|
12124
12124
|
});
|
|
@@ -12140,7 +12140,7 @@ function writeStartedPlayRun(input) {
|
|
|
12140
12140
|
input.progress.writeLine(output2, process.stdout);
|
|
12141
12141
|
return;
|
|
12142
12142
|
}
|
|
12143
|
-
|
|
12143
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12144
12144
|
json: false,
|
|
12145
12145
|
text: `${output2}
|
|
12146
12146
|
`
|
|
@@ -12175,7 +12175,7 @@ function writeStartedPlayRun(input) {
|
|
|
12175
12175
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12176
12176
|
];
|
|
12177
12177
|
if (input.jsonOutput) {
|
|
12178
|
-
|
|
12178
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12179
12179
|
return;
|
|
12180
12180
|
}
|
|
12181
12181
|
const output = lines.join("\n");
|
|
@@ -12183,7 +12183,7 @@ function writeStartedPlayRun(input) {
|
|
|
12183
12183
|
input.progress.writeLine(output, process.stdout);
|
|
12184
12184
|
return;
|
|
12185
12185
|
}
|
|
12186
|
-
|
|
12186
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
12187
12187
|
{
|
|
12188
12188
|
...payload,
|
|
12189
12189
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12193,7 +12193,7 @@ function writeStartedPlayRun(input) {
|
|
|
12193
12193
|
);
|
|
12194
12194
|
}
|
|
12195
12195
|
function parsePlayCheckOptions(args) {
|
|
12196
|
-
const selection =
|
|
12196
|
+
const selection = _chunk5X4AUFYWjs.parseJsonFields.call(void 0, args, "check");
|
|
12197
12197
|
args = selection.args;
|
|
12198
12198
|
const target = args[0];
|
|
12199
12199
|
if (!target || target.startsWith("-")) {
|
|
@@ -12205,7 +12205,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12205
12205
|
if (arg !== "--json" && arg !== "--full")
|
|
12206
12206
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12207
12207
|
}
|
|
12208
|
-
const jsonOutput =
|
|
12208
|
+
const jsonOutput = _chunk5X4AUFYWjs.argsWantJson.call(void 0, args);
|
|
12209
12209
|
return {
|
|
12210
12210
|
target,
|
|
12211
12211
|
jsonOutput,
|
|
@@ -12281,7 +12281,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12281
12281
|
useLatest,
|
|
12282
12282
|
expectedArtifactHash,
|
|
12283
12283
|
dryRun,
|
|
12284
|
-
jsonOutput:
|
|
12284
|
+
jsonOutput: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args)
|
|
12285
12285
|
};
|
|
12286
12286
|
}
|
|
12287
12287
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12322,7 +12322,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12322
12322
|
target,
|
|
12323
12323
|
expectedArtifactHash,
|
|
12324
12324
|
dryRun,
|
|
12325
|
-
jsonOutput:
|
|
12325
|
+
jsonOutput: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args)
|
|
12326
12326
|
};
|
|
12327
12327
|
}
|
|
12328
12328
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12533,7 +12533,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12533
12533
|
async function handlePlayCheck(args) {
|
|
12534
12534
|
const options = parsePlayCheckOptions(args);
|
|
12535
12535
|
if (!isFileTarget(options.target)) {
|
|
12536
|
-
const client = new (0,
|
|
12536
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
12537
12537
|
try {
|
|
12538
12538
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12539
12539
|
command: "check"
|
|
@@ -12562,7 +12562,7 @@ async function handlePlayCheck(args) {
|
|
|
12562
12562
|
},
|
|
12563
12563
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12564
12564
|
};
|
|
12565
|
-
|
|
12565
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, result, {
|
|
12566
12566
|
json: options.jsonOutput,
|
|
12567
12567
|
fields: options.jsonFields,
|
|
12568
12568
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12572,7 +12572,7 @@ async function handlePlayCheck(args) {
|
|
|
12572
12572
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12573
12573
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12574
12574
|
if (options.jsonOutput) {
|
|
12575
|
-
|
|
12575
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
12576
12576
|
{
|
|
12577
12577
|
kind: "play_check",
|
|
12578
12578
|
checked: "named_contract",
|
|
@@ -12603,7 +12603,7 @@ async function handlePlayCheck(args) {
|
|
|
12603
12603
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12604
12604
|
publishCommand: _optionalChain([primary, 'optionalAccess', _478 => _478.result, 'access', _479 => _479.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12605
12605
|
});
|
|
12606
|
-
|
|
12606
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, output, {
|
|
12607
12607
|
json: options.jsonOutput,
|
|
12608
12608
|
fields: options.jsonFields,
|
|
12609
12609
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12671,7 +12671,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12671
12671
|
}
|
|
12672
12672
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12673
12673
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12674
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
12674
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunkRU5ROUFOjs.DeeplineClient)()));
|
|
12675
12675
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12676
12676
|
const checked = await checkLocalPlayGraph({
|
|
12677
12677
|
client,
|
|
@@ -12727,8 +12727,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12727
12727
|
let prefetchClient;
|
|
12728
12728
|
let admissionCapability;
|
|
12729
12729
|
let cancelAdmissionCapability;
|
|
12730
|
-
let cliAdmission =
|
|
12731
|
-
const progress = _nullishCoalesce(
|
|
12730
|
+
let cliAdmission = _chunkTOE7LHEAjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12731
|
+
const progress = _nullishCoalesce(_chunkEKZQ5LQOjs.getActiveCliProgress.call(void 0, ), () => ( _chunkEKZQ5LQOjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12732
12732
|
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _488 => _488.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
12733
12733
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12734
12734
|
progress.phase("compiling play");
|
|
@@ -12745,11 +12745,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12745
12745
|
return 1;
|
|
12746
12746
|
}
|
|
12747
12747
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12748
|
-
const clientForPrefetch = new (0,
|
|
12748
|
+
const clientForPrefetch = new (0, _chunkRU5ROUFOjs.DeeplineClient)(playRunClientOptions(options));
|
|
12749
12749
|
prefetchClient = clientForPrefetch;
|
|
12750
12750
|
const capabilityController = new AbortController();
|
|
12751
12751
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12752
|
-
admissionCapability =
|
|
12752
|
+
admissionCapability = _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
12753
12753
|
"cli.play_admission_capability_prefetch",
|
|
12754
12754
|
{ targetKind: "file" },
|
|
12755
12755
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -12760,7 +12760,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12760
12760
|
}
|
|
12761
12761
|
let graph;
|
|
12762
12762
|
try {
|
|
12763
|
-
graph = await
|
|
12763
|
+
graph = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
12764
12764
|
"cli.play_file_bundle_graph",
|
|
12765
12765
|
{ targetKind: "file" },
|
|
12766
12766
|
() => collectBundledPlayGraph(
|
|
@@ -12773,7 +12773,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12773
12773
|
assertPlayGraphAuthoring(graph);
|
|
12774
12774
|
if (options.dryRun) {
|
|
12775
12775
|
progress.complete();
|
|
12776
|
-
const plan =
|
|
12776
|
+
const plan = _chunkEKF4DKUAjs.planLocalPlayExecution.call(void 0, graph, {
|
|
12777
12777
|
runIdFile: options.runIdFile
|
|
12778
12778
|
});
|
|
12779
12779
|
if (_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
@@ -12784,9 +12784,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12784
12784
|
});
|
|
12785
12785
|
return 0;
|
|
12786
12786
|
}
|
|
12787
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
12787
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkRU5ROUFOjs.DeeplineClient)(playRunClientOptions(options))));
|
|
12788
12788
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12789
|
-
await
|
|
12789
|
+
await _chunkTOE7LHEAjs.checkPlayRunCompatibility.call(void 0,
|
|
12790
12790
|
client.baseUrl,
|
|
12791
12791
|
options.maintenancePolicy
|
|
12792
12792
|
);
|
|
@@ -12799,7 +12799,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12799
12799
|
});
|
|
12800
12800
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12801
12801
|
if (canDeferCompilerManifest) {
|
|
12802
|
-
|
|
12802
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
12803
12803
|
phase: "cli.play_file_compile_manifests",
|
|
12804
12804
|
ms: 0,
|
|
12805
12805
|
ok: true,
|
|
@@ -12808,7 +12808,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12808
12808
|
reason: "validated_by_run_route"
|
|
12809
12809
|
});
|
|
12810
12810
|
} else {
|
|
12811
|
-
await
|
|
12811
|
+
await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
12812
12812
|
"cli.play_file_compile_manifests",
|
|
12813
12813
|
{ targetKind: "file", skipped: false },
|
|
12814
12814
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12816,7 +12816,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12816
12816
|
}
|
|
12817
12817
|
progress.phase("compiled play");
|
|
12818
12818
|
} catch (error) {
|
|
12819
|
-
if (error instanceof
|
|
12819
|
+
if (error instanceof _chunkKTOAJP4Njs.ExecutionOutputError) throw error;
|
|
12820
12820
|
progress.fail();
|
|
12821
12821
|
reportError(normalizePlayValidationError(error));
|
|
12822
12822
|
return 1;
|
|
@@ -12827,13 +12827,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12827
12827
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12828
12828
|
try {
|
|
12829
12829
|
renderLocalPlayExecutionPlan(
|
|
12830
|
-
|
|
12830
|
+
_chunkEKF4DKUAjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12831
12831
|
);
|
|
12832
12832
|
progress.phase("pinning imported plays");
|
|
12833
|
-
graph = await
|
|
12833
|
+
graph = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
12834
12834
|
"cli.play_file_pin_imports",
|
|
12835
12835
|
{ targetKind: "file" },
|
|
12836
|
-
() =>
|
|
12836
|
+
() => _chunkEKF4DKUAjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12837
12837
|
);
|
|
12838
12838
|
bundleResult = graph.root;
|
|
12839
12839
|
} catch (error) {
|
|
@@ -12846,10 +12846,10 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12846
12846
|
(file) => stageFile(file.logicalPath, file.absolutePath)
|
|
12847
12847
|
);
|
|
12848
12848
|
const compilerManifest = _nullishCoalesce(bundleResult.compilerManifest, () => ( null));
|
|
12849
|
-
const fileInputBindings =
|
|
12849
|
+
const fileInputBindings = _chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12850
12850
|
_optionalChain([compilerManifest, 'optionalAccess', _490 => _490.staticPipeline])
|
|
12851
12851
|
);
|
|
12852
|
-
const stagedFileInputs = await
|
|
12852
|
+
const stagedFileInputs = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
12853
12853
|
"cli.play_stage_inputs",
|
|
12854
12854
|
{
|
|
12855
12855
|
targetKind: "file",
|
|
@@ -12896,7 +12896,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12896
12896
|
};
|
|
12897
12897
|
if (options.watch) {
|
|
12898
12898
|
progress.phase("starting run");
|
|
12899
|
-
const finalStatus = await
|
|
12899
|
+
const finalStatus = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
12900
12900
|
"cli.play_start_watch",
|
|
12901
12901
|
{ targetKind: "file", playName },
|
|
12902
12902
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12958,7 +12958,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12958
12958
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12959
12959
|
}
|
|
12960
12960
|
progress.phase("starting run");
|
|
12961
|
-
const started = await
|
|
12961
|
+
const started = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
12962
12962
|
"cli.play_start_unwatched",
|
|
12963
12963
|
{ targetKind: "file", playName },
|
|
12964
12964
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _497 => _497.onSubmission]) }).catch(async (error) => {
|
|
@@ -13024,9 +13024,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13024
13024
|
if (options.target.kind !== "name") {
|
|
13025
13025
|
throw new Error("Expected a named play run target.");
|
|
13026
13026
|
}
|
|
13027
|
-
const client = new (0,
|
|
13028
|
-
let cliAdmission =
|
|
13029
|
-
const progress = _nullishCoalesce(
|
|
13027
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)(playRunClientOptions(options));
|
|
13028
|
+
let cliAdmission = _chunkTOE7LHEAjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13029
|
+
const progress = _nullishCoalesce(_chunkEKZQ5LQOjs.getActiveCliProgress.call(void 0, ), () => ( _chunkEKZQ5LQOjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13030
13030
|
const playName = options.target.name;
|
|
13031
13031
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13032
13032
|
try {
|
|
@@ -13044,7 +13044,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13044
13044
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13045
13045
|
const capabilityController = new AbortController();
|
|
13046
13046
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13047
|
-
admissionCapability =
|
|
13047
|
+
admissionCapability = _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
13048
13048
|
"cli.play_admission_capability_prefetch",
|
|
13049
13049
|
{ targetKind: "name", playName },
|
|
13050
13050
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13055,14 +13055,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13055
13055
|
}
|
|
13056
13056
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13057
13057
|
progress.phase("loading play definition");
|
|
13058
|
-
return
|
|
13058
|
+
return _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
13059
13059
|
"cli.play_load_definition",
|
|
13060
13060
|
{ targetKind: "name", playName, skipped: false },
|
|
13061
13061
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13062
13062
|
command: "run"
|
|
13063
13063
|
})
|
|
13064
13064
|
);
|
|
13065
|
-
})() : (
|
|
13065
|
+
})() : (_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
13066
13066
|
phase: "cli.play_load_definition",
|
|
13067
13067
|
ms: 0,
|
|
13068
13068
|
ok: true,
|
|
@@ -13071,7 +13071,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13071
13071
|
skipped: true
|
|
13072
13072
|
}), null);
|
|
13073
13073
|
progress.phase("selecting revision");
|
|
13074
|
-
const selectedRevisionId = await
|
|
13074
|
+
const selectedRevisionId = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
13075
13075
|
"cli.play_select_revision",
|
|
13076
13076
|
{
|
|
13077
13077
|
targetKind: "name",
|
|
@@ -13092,14 +13092,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13092
13092
|
maxTotalCredits: options.maxTotalCredits
|
|
13093
13093
|
});
|
|
13094
13094
|
const fileInputBindings = playDetail ? [
|
|
13095
|
-
...
|
|
13096
|
-
...
|
|
13095
|
+
..._chunkRNSHCJMEjs.fileInputBindingsFromPlaySchema.call(void 0, playDetail.play.inputSchema),
|
|
13096
|
+
..._chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13097
13097
|
] : [];
|
|
13098
13098
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13099
|
-
await
|
|
13099
|
+
await _chunkTOE7LHEAjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13100
13100
|
cliAdmission = false;
|
|
13101
13101
|
}
|
|
13102
|
-
const stagedFileInputs = await
|
|
13102
|
+
const stagedFileInputs = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
13103
13103
|
"cli.play_stage_inputs",
|
|
13104
13104
|
{
|
|
13105
13105
|
targetKind: "name",
|
|
@@ -13122,7 +13122,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13122
13122
|
const testPolicyOverrides = {
|
|
13123
13123
|
...options.debugMapLatency ? { mapLatencyProfile: true } : {}
|
|
13124
13124
|
};
|
|
13125
|
-
const startRequest =
|
|
13125
|
+
const startRequest = _chunkRNSHCJMEjs.buildNamedPlayRunRequest.call(void 0, {
|
|
13126
13126
|
name: playName,
|
|
13127
13127
|
revisionId: selectedRevisionId,
|
|
13128
13128
|
runtimeInput,
|
|
@@ -13143,7 +13143,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13143
13143
|
});
|
|
13144
13144
|
if (options.watch) {
|
|
13145
13145
|
progress.phase("starting run");
|
|
13146
|
-
const finalStatus = await
|
|
13146
|
+
const finalStatus = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
13147
13147
|
"cli.play_start_watch",
|
|
13148
13148
|
{ targetKind: "name", playName },
|
|
13149
13149
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13208,7 +13208,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13208
13208
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13209
13209
|
}
|
|
13210
13210
|
progress.phase("starting run");
|
|
13211
|
-
const started = await
|
|
13211
|
+
const started = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
13212
13212
|
"cli.play_start_unwatched",
|
|
13213
13213
|
{ targetKind: "name", playName },
|
|
13214
13214
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _510 => _510.onSubmission]) }).catch(async (error) => {
|
|
@@ -13268,7 +13268,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13268
13268
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13269
13269
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _518 => _518.exec, 'call', _519 => _519(status.runId), 'optionalAccess', _520 => _520[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13270
13270
|
if (!terminal) {
|
|
13271
|
-
|
|
13271
|
+
_chunkKTOAJP4Njs.writeExecutionOutput.call(void 0,
|
|
13272
13272
|
{
|
|
13273
13273
|
id: status.runId,
|
|
13274
13274
|
status: status.status,
|
|
@@ -13348,10 +13348,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13348
13348
|
};
|
|
13349
13349
|
}
|
|
13350
13350
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13351
|
-
const allCollections =
|
|
13351
|
+
const allCollections = _chunkKTOAJP4Njs.outputCollections.call(void 0, data).map(
|
|
13352
13352
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13353
13353
|
);
|
|
13354
|
-
|
|
13354
|
+
_chunkKTOAJP4Njs.writeExecutionOutput.call(void 0,
|
|
13355
13355
|
{
|
|
13356
13356
|
id: status.runId,
|
|
13357
13357
|
status: status.status,
|
|
@@ -13372,7 +13372,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13372
13372
|
}
|
|
13373
13373
|
var TOOL_EXECUTION_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
13374
13374
|
async function handlePlayRun(args, hooks) {
|
|
13375
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13375
|
+
const parsedOptions = Array.isArray(args) ? _chunkQQ3JJYE2js.parsePlayRunOptions.call(void 0, args) : args;
|
|
13376
13376
|
const options = parsedOptions.runIdFile ? {
|
|
13377
13377
|
...parsedOptions,
|
|
13378
13378
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13389,7 +13389,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13389
13389
|
JSON.stringify({
|
|
13390
13390
|
version: 1,
|
|
13391
13391
|
admissionState: "submitted_unknown",
|
|
13392
|
-
baseUrl: new (0,
|
|
13392
|
+
baseUrl: new (0, _chunkRU5ROUFOjs.DeeplineClient)().baseUrl,
|
|
13393
13393
|
...intent
|
|
13394
13394
|
})
|
|
13395
13395
|
);
|
|
@@ -13623,7 +13623,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13623
13623
|
);
|
|
13624
13624
|
return `${lines.join("\n")}
|
|
13625
13625
|
|
|
13626
|
-
${
|
|
13626
|
+
${_chunk5X4AUFYWjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13627
13627
|
}
|
|
13628
13628
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13629
13629
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13647,7 +13647,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13647
13647
|
}
|
|
13648
13648
|
}
|
|
13649
13649
|
async function handleRunGet(args) {
|
|
13650
|
-
const selection =
|
|
13650
|
+
const selection = _chunk5X4AUFYWjs.parseJsonFields.call(void 0,
|
|
13651
13651
|
args,
|
|
13652
13652
|
args.includes("--config") ? "config" : "get"
|
|
13653
13653
|
);
|
|
@@ -13660,7 +13660,7 @@ async function handleRunGet(args) {
|
|
|
13660
13660
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13661
13661
|
return 1;
|
|
13662
13662
|
}
|
|
13663
|
-
const client = new (0,
|
|
13663
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
13664
13664
|
const timing = args.includes("--timing");
|
|
13665
13665
|
const web = args.includes("--web");
|
|
13666
13666
|
if (web || args.includes("--web-url")) {
|
|
@@ -13678,8 +13678,8 @@ async function handleRunGet(args) {
|
|
|
13678
13678
|
const dashboardUrl2 = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13679
13679
|
const runUrl2 = _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
13680
13680
|
if (web) {
|
|
13681
|
-
const opened =
|
|
13682
|
-
|
|
13681
|
+
const opened = _chunk5X4AUFYWjs.openInBrowser.call(void 0, runUrl2);
|
|
13682
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
13683
13683
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
13684
13684
|
{
|
|
13685
13685
|
json: args.includes("--json"),
|
|
@@ -13690,7 +13690,7 @@ async function handleRunGet(args) {
|
|
|
13690
13690
|
);
|
|
13691
13691
|
return 0;
|
|
13692
13692
|
}
|
|
13693
|
-
|
|
13693
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
13694
13694
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
13695
13695
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
13696
13696
|
` }
|
|
@@ -13715,7 +13715,7 @@ async function handleRunGet(args) {
|
|
|
13715
13715
|
"This server does not support recorded configuration reads."
|
|
13716
13716
|
);
|
|
13717
13717
|
}
|
|
13718
|
-
|
|
13718
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
13719
13719
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13720
13720
|
{ json: true, fields: selection.fields }
|
|
13721
13721
|
);
|
|
@@ -13728,7 +13728,7 @@ async function handleRunGet(args) {
|
|
|
13728
13728
|
timing,
|
|
13729
13729
|
() => client.getRunInput(runId)
|
|
13730
13730
|
);
|
|
13731
|
-
|
|
13731
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13732
13732
|
return 0;
|
|
13733
13733
|
}
|
|
13734
13734
|
const full = args.includes("--full");
|
|
@@ -13741,7 +13741,7 @@ async function handleRunGet(args) {
|
|
|
13741
13741
|
failedLogs: args.includes("--log-failed")
|
|
13742
13742
|
})
|
|
13743
13743
|
);
|
|
13744
|
-
if (status.package)
|
|
13744
|
+
if (status.package) _chunkKTOAJP4Njs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13745
13745
|
if (!status.package) {
|
|
13746
13746
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13747
13747
|
"runs get",
|
|
@@ -13755,8 +13755,8 @@ async function handleRunGet(args) {
|
|
|
13755
13755
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13756
13756
|
const legacyDashboardUrl = legacyPlayName ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13757
13757
|
const legacyRunUrl = legacyPlayName ? _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
13758
|
-
if (
|
|
13759
|
-
|
|
13758
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
13759
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
13760
13760
|
{
|
|
13761
13761
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13762
13762
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -13767,7 +13767,7 @@ async function handleRunGet(args) {
|
|
|
13767
13767
|
} else {
|
|
13768
13768
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13769
13769
|
if (legacyRunUrl)
|
|
13770
|
-
|
|
13770
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
13771
13771
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
13772
13772
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
13773
13773
|
` }
|
|
@@ -13797,11 +13797,11 @@ async function handleRunGet(args) {
|
|
|
13797
13797
|
)
|
|
13798
13798
|
]);
|
|
13799
13799
|
const hitLines = formatRunHitsLines(hits);
|
|
13800
|
-
const json =
|
|
13800
|
+
const json = _chunk5X4AUFYWjs.argsWantJson.call(void 0, args);
|
|
13801
13801
|
const playName = resolveRunPlayName(status, runId);
|
|
13802
13802
|
const dashboardUrl = playName ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13803
13803
|
const runUrl = playName ? _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
13804
|
-
|
|
13804
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
13805
13805
|
{
|
|
13806
13806
|
...overview,
|
|
13807
13807
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13906,9 +13906,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13906
13906
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13907
13907
|
return 1;
|
|
13908
13908
|
}
|
|
13909
|
-
const status = await new (0,
|
|
13910
|
-
if (
|
|
13911
|
-
|
|
13909
|
+
const status = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().runs.status(runId);
|
|
13910
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
13911
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13912
13912
|
return 0;
|
|
13913
13913
|
}
|
|
13914
13914
|
if (!status.available) {
|
|
@@ -13948,7 +13948,7 @@ async function handleRunsRerun(args) {
|
|
|
13948
13948
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13949
13949
|
return 1;
|
|
13950
13950
|
}
|
|
13951
|
-
const options = { json:
|
|
13951
|
+
const options = { json: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args) };
|
|
13952
13952
|
for (let index = 0; index < args.length; index += 1) {
|
|
13953
13953
|
if (args[index] === "--idempotency-key") {
|
|
13954
13954
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14014,8 +14014,8 @@ ${usage2}
|
|
|
14014
14014
|
Discover Plays: ${next.discover}
|
|
14015
14015
|
Active runs: ${next.running}`
|
|
14016
14016
|
);
|
|
14017
|
-
if (
|
|
14018
|
-
|
|
14017
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
14018
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
14019
14019
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14020
14020
|
{ json: true }
|
|
14021
14021
|
);
|
|
@@ -14030,7 +14030,7 @@ Active runs: ${next.running}`
|
|
|
14030
14030
|
console.error("--offset requires --play.");
|
|
14031
14031
|
return 1;
|
|
14032
14032
|
}
|
|
14033
|
-
const client = new (0,
|
|
14033
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
14034
14034
|
const page = await withRunReadTiming(
|
|
14035
14035
|
"runs list",
|
|
14036
14036
|
"run inventory",
|
|
@@ -14097,14 +14097,14 @@ Active runs: ${next.running}`
|
|
|
14097
14097
|
return lines2.join("\n");
|
|
14098
14098
|
});
|
|
14099
14099
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14100
|
-
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${
|
|
14100
|
+
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunk5X4AUFYWjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14101
14101
|
if (page.hasMore) {
|
|
14102
14102
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14103
14103
|
lines.push(
|
|
14104
14104
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14105
14105
|
);
|
|
14106
14106
|
}
|
|
14107
|
-
|
|
14107
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
14108
14108
|
{
|
|
14109
14109
|
runs,
|
|
14110
14110
|
count: runs.length,
|
|
@@ -14118,7 +14118,7 @@ Active runs: ${next.running}`
|
|
|
14118
14118
|
},
|
|
14119
14119
|
render: { sections: [{ title: "runs", lines }] }
|
|
14120
14120
|
},
|
|
14121
|
-
{ json:
|
|
14121
|
+
{ json: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args) }
|
|
14122
14122
|
);
|
|
14123
14123
|
return 0;
|
|
14124
14124
|
}
|
|
@@ -14148,7 +14148,7 @@ async function handleRunTail(args) {
|
|
|
14148
14148
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14149
14149
|
return 1;
|
|
14150
14150
|
}
|
|
14151
|
-
const parsed =
|
|
14151
|
+
const parsed = _chunkUR7JOSLTjs.parseLogLevel.call(void 0, value);
|
|
14152
14152
|
if (!parsed) {
|
|
14153
14153
|
console.error(
|
|
14154
14154
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14186,9 +14186,9 @@ async function handleRunTail(args) {
|
|
|
14186
14186
|
);
|
|
14187
14187
|
return 1;
|
|
14188
14188
|
}
|
|
14189
|
-
const client = new (0,
|
|
14189
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
14190
14190
|
const jsonLines = args.includes("--jsonl");
|
|
14191
|
-
const jsonOutput = !jsonLines &&
|
|
14191
|
+
const jsonOutput = !jsonLines && _chunk5X4AUFYWjs.argsWantJson.call(void 0, args);
|
|
14192
14192
|
const compact = args.includes("--compact");
|
|
14193
14193
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14194
14194
|
const compactState = {
|
|
@@ -14269,7 +14269,7 @@ async function handleRunLogs(args) {
|
|
|
14269
14269
|
]);
|
|
14270
14270
|
const cursorIndex = args.indexOf("--cursor");
|
|
14271
14271
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14272
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14272
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkUR7JOSLTjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14273
14273
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14274
14274
|
return handleRunEventSearch(args);
|
|
14275
14275
|
}
|
|
@@ -14303,7 +14303,7 @@ async function handleRunLogs(args) {
|
|
|
14303
14303
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14304
14304
|
return 1;
|
|
14305
14305
|
}
|
|
14306
|
-
const parsed =
|
|
14306
|
+
const parsed = _chunkUR7JOSLTjs.parseLogLevel.call(void 0, value);
|
|
14307
14307
|
if (!parsed) {
|
|
14308
14308
|
console.error(
|
|
14309
14309
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14350,12 +14350,12 @@ async function handleRunLogs(args) {
|
|
|
14350
14350
|
);
|
|
14351
14351
|
return 1;
|
|
14352
14352
|
}
|
|
14353
|
-
const client = new (0,
|
|
14353
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
14354
14354
|
if (outPath) {
|
|
14355
14355
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14356
|
-
const logs = result2.entries.filter((line) =>
|
|
14356
|
+
const logs = result2.entries.filter((line) => _chunkUR7JOSLTjs.logLevelReaches.call(void 0, _chunkUR7JOSLTjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkUR7JOSLTjs.classifyLogLine.call(void 0, line).line);
|
|
14357
14357
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14358
|
-
|
|
14358
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
14359
14359
|
{
|
|
14360
14360
|
runId: result2.runId,
|
|
14361
14361
|
log_path: outPath,
|
|
@@ -14378,7 +14378,7 @@ async function handleRunLogs(args) {
|
|
|
14378
14378
|
]
|
|
14379
14379
|
}
|
|
14380
14380
|
},
|
|
14381
|
-
{ json:
|
|
14381
|
+
{ json: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args) }
|
|
14382
14382
|
);
|
|
14383
14383
|
return 0;
|
|
14384
14384
|
}
|
|
@@ -14409,7 +14409,7 @@ async function handleRunLogs(args) {
|
|
|
14409
14409
|
}
|
|
14410
14410
|
};
|
|
14411
14411
|
const text = buildRunLogsText(filteredResult);
|
|
14412
|
-
|
|
14412
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
14413
14413
|
{
|
|
14414
14414
|
runId: result.runId,
|
|
14415
14415
|
totalCount: result.totalCount,
|
|
@@ -14433,7 +14433,7 @@ async function handleRunLogs(args) {
|
|
|
14433
14433
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14434
14434
|
},
|
|
14435
14435
|
{
|
|
14436
|
-
json:
|
|
14436
|
+
json: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args),
|
|
14437
14437
|
text
|
|
14438
14438
|
}
|
|
14439
14439
|
);
|
|
@@ -14457,7 +14457,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14457
14457
|
);
|
|
14458
14458
|
}
|
|
14459
14459
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14460
|
-
(entry) =>
|
|
14460
|
+
(entry) => _chunkUR7JOSLTjs.logLevelReaches.call(void 0, _chunkUR7JOSLTjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14461
14461
|
);
|
|
14462
14462
|
const selected = matching.slice(-limit);
|
|
14463
14463
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14467,7 +14467,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14467
14467
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _553 => _553.at, 'call', _554 => _554(-1), 'optionalAccess', _555 => _555.seq]), () => ( null)),
|
|
14468
14468
|
truncated: result.truncated || olderMatchesExist,
|
|
14469
14469
|
hasMore: olderMatchesExist,
|
|
14470
|
-
nextCursor: olderMatchesExist ?
|
|
14470
|
+
nextCursor: olderMatchesExist ? _chunkUR7JOSLTjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14471
14471
|
};
|
|
14472
14472
|
}
|
|
14473
14473
|
async function handleRunEventSearch(args) {
|
|
@@ -14534,7 +14534,7 @@ ${usage2}`);
|
|
|
14534
14534
|
namespace,
|
|
14535
14535
|
...backend ? { backend } : {}
|
|
14536
14536
|
} : void 0;
|
|
14537
|
-
const client = new (0,
|
|
14537
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
14538
14538
|
const result = await client.runs.searchEvents({
|
|
14539
14539
|
...runId ? { runId } : {},
|
|
14540
14540
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14606,7 +14606,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14606
14606
|
"--limit",
|
|
14607
14607
|
String(limit)
|
|
14608
14608
|
].join(" ") : null;
|
|
14609
|
-
|
|
14609
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
14610
14610
|
{
|
|
14611
14611
|
events,
|
|
14612
14612
|
nextCursor: result.nextCursor,
|
|
@@ -14617,14 +14617,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14617
14617
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14618
14618
|
},
|
|
14619
14619
|
{
|
|
14620
|
-
json:
|
|
14620
|
+
json: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args),
|
|
14621
14621
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14622
14622
|
}
|
|
14623
14623
|
);
|
|
14624
14624
|
return 0;
|
|
14625
14625
|
}
|
|
14626
14626
|
function buildRunLogsText(result) {
|
|
14627
|
-
const lines = result.entries.map((line) =>
|
|
14627
|
+
const lines = result.entries.map((line) => _chunkUR7JOSLTjs.classifyLogLine.call(void 0, line).line);
|
|
14628
14628
|
if (result.warning) {
|
|
14629
14629
|
if (lines.length > 0) lines.push("");
|
|
14630
14630
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14658,7 +14658,7 @@ async function handleRunStop(args) {
|
|
|
14658
14658
|
reason = args[++index];
|
|
14659
14659
|
}
|
|
14660
14660
|
}
|
|
14661
|
-
const client = new (0,
|
|
14661
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
14662
14662
|
const result = await client.runs.stop(runId, { reason });
|
|
14663
14663
|
const state = resolveRunStopState(result);
|
|
14664
14664
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14673,7 +14673,7 @@ async function handleRunStop(args) {
|
|
|
14673
14673
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14674
14674
|
`inspect: deepline runs get ${runId} --full`
|
|
14675
14675
|
];
|
|
14676
|
-
|
|
14676
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
14677
14677
|
{
|
|
14678
14678
|
...cancelling,
|
|
14679
14679
|
state,
|
|
@@ -14688,7 +14688,7 @@ async function handleRunStop(args) {
|
|
|
14688
14688
|
]
|
|
14689
14689
|
}
|
|
14690
14690
|
},
|
|
14691
|
-
{ json:
|
|
14691
|
+
{ json: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args) }
|
|
14692
14692
|
);
|
|
14693
14693
|
return 0;
|
|
14694
14694
|
}
|
|
@@ -14705,7 +14705,7 @@ async function handleRunStop(args) {
|
|
|
14705
14705
|
];
|
|
14706
14706
|
process.stderr.write(`${lines2.join("\n")}
|
|
14707
14707
|
`);
|
|
14708
|
-
|
|
14708
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
14709
14709
|
{
|
|
14710
14710
|
...result,
|
|
14711
14711
|
render: {
|
|
@@ -14720,7 +14720,7 @@ async function handleRunStop(args) {
|
|
|
14720
14720
|
]
|
|
14721
14721
|
}
|
|
14722
14722
|
},
|
|
14723
|
-
{ json:
|
|
14723
|
+
{ json: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args) }
|
|
14724
14724
|
);
|
|
14725
14725
|
return 1;
|
|
14726
14726
|
}
|
|
@@ -14731,12 +14731,12 @@ async function handleRunStop(args) {
|
|
|
14731
14731
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14732
14732
|
] : []
|
|
14733
14733
|
];
|
|
14734
|
-
|
|
14734
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
14735
14735
|
{
|
|
14736
14736
|
...result,
|
|
14737
14737
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14738
14738
|
},
|
|
14739
|
-
{ json:
|
|
14739
|
+
{ json: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args) }
|
|
14740
14740
|
);
|
|
14741
14741
|
return 0;
|
|
14742
14742
|
}
|
|
@@ -14786,18 +14786,18 @@ async function handleRunStopAll(args) {
|
|
|
14786
14786
|
reason = args[++index];
|
|
14787
14787
|
}
|
|
14788
14788
|
}
|
|
14789
|
-
const client = new (0,
|
|
14789
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
14790
14790
|
if (dryRun) {
|
|
14791
14791
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14792
14792
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14793
|
-
|
|
14793
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
14794
14794
|
{
|
|
14795
14795
|
...result2,
|
|
14796
14796
|
render: {
|
|
14797
14797
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14798
14798
|
}
|
|
14799
14799
|
},
|
|
14800
|
-
{ json:
|
|
14800
|
+
{ json: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14801
14801
|
` }
|
|
14802
14802
|
);
|
|
14803
14803
|
return 0;
|
|
@@ -14810,17 +14810,17 @@ async function handleRunStopAll(args) {
|
|
|
14810
14810
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14811
14811
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14812
14812
|
];
|
|
14813
|
-
|
|
14813
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
14814
14814
|
{
|
|
14815
14815
|
...result,
|
|
14816
14816
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14817
14817
|
},
|
|
14818
|
-
{ json:
|
|
14818
|
+
{ json: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args) }
|
|
14819
14819
|
);
|
|
14820
14820
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14821
14821
|
}
|
|
14822
14822
|
async function handleRunExport(args) {
|
|
14823
|
-
const selection =
|
|
14823
|
+
const selection = _chunk5X4AUFYWjs.parseJsonFields.call(void 0, args, "export");
|
|
14824
14824
|
args = selection.args;
|
|
14825
14825
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--summary full|counts] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
|
|
14826
14826
|
let runId;
|
|
@@ -14891,17 +14891,17 @@ async function handleRunExport(args) {
|
|
|
14891
14891
|
"INVALID_ARGUMENT"
|
|
14892
14892
|
);
|
|
14893
14893
|
}
|
|
14894
|
-
const client = new (0,
|
|
14894
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
14895
14895
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14896
14896
|
assertRunExportStatusIdentity(status, runId);
|
|
14897
14897
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14898
|
-
const progress =
|
|
14898
|
+
const progress = _chunkEKZQ5LQOjs.createCliProgress.call(void 0, !_chunk5X4AUFYWjs.argsWantJson.call(void 0, args));
|
|
14899
14899
|
try {
|
|
14900
14900
|
await waitForPlayCompletionByWatch({
|
|
14901
14901
|
client,
|
|
14902
14902
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14903
14903
|
workflowId: runId,
|
|
14904
|
-
jsonOutput:
|
|
14904
|
+
jsonOutput: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args),
|
|
14905
14905
|
emitLogs: false,
|
|
14906
14906
|
waitTimeoutMs,
|
|
14907
14907
|
startedAt: Date.now(),
|
|
@@ -14969,7 +14969,7 @@ async function handleRunExport(args) {
|
|
|
14969
14969
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _569 => _569.rowsInfo, 'access', _570 => _570.totalRows]), () => ( null)),
|
|
14970
14970
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14971
14971
|
...rowFailures ? { rowFailures } : {},
|
|
14972
|
-
columns:
|
|
14972
|
+
columns: _chunkKTOAJP4Njs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.columns]), () => ( []))),
|
|
14973
14973
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14974
14974
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14975
14975
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -15003,8 +15003,8 @@ async function handleRunExport(args) {
|
|
|
15003
15003
|
"utf-8"
|
|
15004
15004
|
);
|
|
15005
15005
|
}
|
|
15006
|
-
|
|
15007
|
-
json:
|
|
15006
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, payload, {
|
|
15007
|
+
json: _chunk5X4AUFYWjs.argsWantJson.call(void 0, args),
|
|
15008
15008
|
fields: selection.fields,
|
|
15009
15009
|
text: `${lines.join("\n")}
|
|
15010
15010
|
`
|
|
@@ -15038,10 +15038,10 @@ async function handlePlayGet(args) {
|
|
|
15038
15038
|
);
|
|
15039
15039
|
return 2;
|
|
15040
15040
|
}
|
|
15041
|
-
const client = new (0,
|
|
15041
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
15042
15042
|
const explicitJson = args.includes("--json");
|
|
15043
15043
|
const sourceOutput = args.includes("--source");
|
|
15044
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
15044
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunk5X4AUFYWjs.argsWantJson.call(void 0, args);
|
|
15045
15045
|
const requestedRevisionFlags = [
|
|
15046
15046
|
args.includes("--working"),
|
|
15047
15047
|
args.includes("--live"),
|
|
@@ -15104,7 +15104,7 @@ async function handlePlayGet(args) {
|
|
|
15104
15104
|
}
|
|
15105
15105
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15106
15106
|
if (jsonOutput) {
|
|
15107
|
-
|
|
15107
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, {
|
|
15108
15108
|
...detail,
|
|
15109
15109
|
...materializedFile ? {
|
|
15110
15110
|
message: loadedMessage,
|
|
@@ -15196,8 +15196,8 @@ async function handlePlayVersions(args) {
|
|
|
15196
15196
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15197
15197
|
return 1;
|
|
15198
15198
|
}
|
|
15199
|
-
const client = new (0,
|
|
15200
|
-
const jsonOutput =
|
|
15199
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
15200
|
+
const jsonOutput = _chunk5X4AUFYWjs.argsWantJson.call(void 0, args);
|
|
15201
15201
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15202
15202
|
command: "versions"
|
|
15203
15203
|
});
|
|
@@ -15205,7 +15205,7 @@ async function handlePlayVersions(args) {
|
|
|
15205
15205
|
parseReferencedPlayTarget(playName).playName
|
|
15206
15206
|
);
|
|
15207
15207
|
if (jsonOutput) {
|
|
15208
|
-
|
|
15208
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, { versions });
|
|
15209
15209
|
return 0;
|
|
15210
15210
|
}
|
|
15211
15211
|
if (versions.length === 0) {
|
|
@@ -15248,8 +15248,8 @@ async function handlePlayCost(args) {
|
|
|
15248
15248
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
15249
15249
|
return 2;
|
|
15250
15250
|
}
|
|
15251
|
-
const result = await new (0,
|
|
15252
|
-
if (
|
|
15251
|
+
const result = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
15252
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
15253
15253
|
else
|
|
15254
15254
|
console.log(
|
|
15255
15255
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -15257,9 +15257,9 @@ async function handlePlayCost(args) {
|
|
|
15257
15257
|
return 0;
|
|
15258
15258
|
}
|
|
15259
15259
|
async function handlePlayList(args) {
|
|
15260
|
-
const jsonOutput =
|
|
15260
|
+
const jsonOutput = _chunk5X4AUFYWjs.argsWantJson.call(void 0, args);
|
|
15261
15261
|
const showCost = args.includes("--show-cost");
|
|
15262
|
-
const client = new (0,
|
|
15262
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
15263
15263
|
const categoriesIndex = args.indexOf("--categories");
|
|
15264
15264
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _592 => _592[categoriesIndex + 1], 'optionalAccess', _593 => _593.trim, 'call', _594 => _594()]) : void 0;
|
|
15265
15265
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15357,7 +15357,7 @@ async function handlePlayList(args) {
|
|
|
15357
15357
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15358
15358
|
lines.push(`Next page: ${nextPage}`);
|
|
15359
15359
|
}
|
|
15360
|
-
|
|
15360
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
15361
15361
|
{
|
|
15362
15362
|
plays,
|
|
15363
15363
|
count: plays.length,
|
|
@@ -15375,7 +15375,7 @@ async function handlePlayList(args) {
|
|
|
15375
15375
|
}
|
|
15376
15376
|
async function handlePlayPin(args, pinned) {
|
|
15377
15377
|
const target = _optionalChain([args, 'access', _603 => _603.find, 'call', _604 => _604((arg) => !arg.startsWith("-")), 'optionalAccess', _605 => _605.trim, 'call', _606 => _606()]);
|
|
15378
|
-
const jsonOutput =
|
|
15378
|
+
const jsonOutput = _chunk5X4AUFYWjs.argsWantJson.call(void 0, args);
|
|
15379
15379
|
const dryRun = args.includes("--dry-run");
|
|
15380
15380
|
if (!target) {
|
|
15381
15381
|
console.error(
|
|
@@ -15393,11 +15393,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15393
15393
|
const name = parsedTarget.playName;
|
|
15394
15394
|
const plan = { name, pinned, dryRun };
|
|
15395
15395
|
if (dryRun) {
|
|
15396
|
-
|
|
15396
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, plan);
|
|
15397
15397
|
return 0;
|
|
15398
15398
|
}
|
|
15399
|
-
const result = await new (0,
|
|
15400
|
-
if (jsonOutput)
|
|
15399
|
+
const result = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15400
|
+
if (jsonOutput) _chunk5X4AUFYWjs.printCompactJson.call(void 0, result);
|
|
15401
15401
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15402
15402
|
return 0;
|
|
15403
15403
|
}
|
|
@@ -15523,12 +15523,12 @@ async function handlePlayGrep(args) {
|
|
|
15523
15523
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15524
15524
|
return 1;
|
|
15525
15525
|
}
|
|
15526
|
-
const client = new (0,
|
|
15526
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
15527
15527
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15528
15528
|
summarizePlayGrepResult
|
|
15529
15529
|
);
|
|
15530
|
-
if (
|
|
15531
|
-
|
|
15530
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
15531
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, {
|
|
15532
15532
|
plays: results,
|
|
15533
15533
|
count: results.length,
|
|
15534
15534
|
query,
|
|
@@ -15551,7 +15551,7 @@ async function handlePlayGrep(args) {
|
|
|
15551
15551
|
return 0;
|
|
15552
15552
|
}
|
|
15553
15553
|
async function handlePlayDescribe(args) {
|
|
15554
|
-
const selection =
|
|
15554
|
+
const selection = _chunk5X4AUFYWjs.parseJsonFields.call(void 0, args, "describe");
|
|
15555
15555
|
args = selection.args;
|
|
15556
15556
|
const playName = args[0];
|
|
15557
15557
|
if (!playName) {
|
|
@@ -15585,8 +15585,8 @@ async function handlePlayDescribe(args) {
|
|
|
15585
15585
|
`deepline plays check ${playName}`,
|
|
15586
15586
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15587
15587
|
];
|
|
15588
|
-
if (
|
|
15589
|
-
|
|
15588
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
15589
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, {
|
|
15590
15590
|
ok: false,
|
|
15591
15591
|
error: { message },
|
|
15592
15592
|
next
|
|
@@ -15600,7 +15600,7 @@ async function handlePlayDescribe(args) {
|
|
|
15600
15600
|
}
|
|
15601
15601
|
return 2;
|
|
15602
15602
|
}
|
|
15603
|
-
const client = new (0,
|
|
15603
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
15604
15604
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15605
15605
|
command: "describe"
|
|
15606
15606
|
});
|
|
@@ -15610,9 +15610,9 @@ async function handlePlayDescribe(args) {
|
|
|
15610
15610
|
compact: args.includes("--compact")
|
|
15611
15611
|
}
|
|
15612
15612
|
);
|
|
15613
|
-
if (
|
|
15614
|
-
if (selection.fields)
|
|
15615
|
-
else
|
|
15613
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
15614
|
+
if (selection.fields) _chunk5X4AUFYWjs.printJson.call(void 0, play, selection.fields);
|
|
15615
|
+
else _chunk5X4AUFYWjs.printCompactJson.call(void 0, play);
|
|
15616
15616
|
return 0;
|
|
15617
15617
|
}
|
|
15618
15618
|
printPlayDescription(play);
|
|
@@ -15634,7 +15634,7 @@ async function handlePlaySave(args) {
|
|
|
15634
15634
|
}
|
|
15635
15635
|
let graph;
|
|
15636
15636
|
try {
|
|
15637
|
-
graph = await
|
|
15637
|
+
graph = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
15638
15638
|
"cli.play_save_bundle_graph",
|
|
15639
15639
|
{ targetKind: "file" },
|
|
15640
15640
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15656,7 +15656,7 @@ async function handlePlaySave(args) {
|
|
|
15656
15656
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15657
15657
|
};
|
|
15658
15658
|
if (options.jsonOutput) {
|
|
15659
|
-
|
|
15659
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, result);
|
|
15660
15660
|
} else {
|
|
15661
15661
|
console.error(result.message);
|
|
15662
15662
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15678,7 +15678,7 @@ async function handlePlaySave(args) {
|
|
|
15678
15678
|
};
|
|
15679
15679
|
if (options.dryRun) {
|
|
15680
15680
|
if (options.jsonOutput) {
|
|
15681
|
-
|
|
15681
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, dryRun);
|
|
15682
15682
|
} else {
|
|
15683
15683
|
console.log(`Dry run: ${playName}`);
|
|
15684
15684
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15687,14 +15687,14 @@ async function handlePlaySave(args) {
|
|
|
15687
15687
|
}
|
|
15688
15688
|
return 0;
|
|
15689
15689
|
}
|
|
15690
|
-
const client = new (0,
|
|
15690
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
15691
15691
|
try {
|
|
15692
|
-
await
|
|
15692
|
+
await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
15693
15693
|
"cli.play_save_compile_manifests",
|
|
15694
15694
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15695
15695
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15696
15696
|
);
|
|
15697
|
-
const saved = await
|
|
15697
|
+
const saved = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
15698
15698
|
"cli.play_save_register_draft",
|
|
15699
15699
|
{ targetKind: "file", playName, artifactHash },
|
|
15700
15700
|
() => client.registerPlayArtifact({
|
|
@@ -15723,7 +15723,7 @@ async function handlePlaySave(args) {
|
|
|
15723
15723
|
}
|
|
15724
15724
|
};
|
|
15725
15725
|
if (options.jsonOutput) {
|
|
15726
|
-
|
|
15726
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, result);
|
|
15727
15727
|
} else {
|
|
15728
15728
|
console.log(
|
|
15729
15729
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15749,7 +15749,7 @@ async function handlePlayPublish(args) {
|
|
|
15749
15749
|
}
|
|
15750
15750
|
const { target: playName, useLatest } = options;
|
|
15751
15751
|
let revisionId = options.revisionId;
|
|
15752
|
-
const client = new (0,
|
|
15752
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
15753
15753
|
if (isFileTarget(playName)) {
|
|
15754
15754
|
if (revisionId || useLatest) {
|
|
15755
15755
|
console.error(
|
|
@@ -15759,7 +15759,7 @@ async function handlePlayPublish(args) {
|
|
|
15759
15759
|
}
|
|
15760
15760
|
let graph;
|
|
15761
15761
|
try {
|
|
15762
|
-
graph = await
|
|
15762
|
+
graph = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
15763
15763
|
"cli.play_publish_bundle_graph",
|
|
15764
15764
|
{ targetKind: "file" },
|
|
15765
15765
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15781,7 +15781,7 @@ async function handlePlayPublish(args) {
|
|
|
15781
15781
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15782
15782
|
};
|
|
15783
15783
|
if (options.jsonOutput) {
|
|
15784
|
-
|
|
15784
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, result3);
|
|
15785
15785
|
} else {
|
|
15786
15786
|
console.error(result3.message);
|
|
15787
15787
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15804,7 +15804,7 @@ async function handlePlayPublish(args) {
|
|
|
15804
15804
|
};
|
|
15805
15805
|
if (options.dryRun) {
|
|
15806
15806
|
if (options.jsonOutput) {
|
|
15807
|
-
|
|
15807
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, dryRun);
|
|
15808
15808
|
} else {
|
|
15809
15809
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15810
15810
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15823,12 +15823,12 @@ async function handlePlayPublish(args) {
|
|
|
15823
15823
|
}
|
|
15824
15824
|
}
|
|
15825
15825
|
try {
|
|
15826
|
-
await
|
|
15826
|
+
await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
15827
15827
|
"cli.play_publish_compile_manifests",
|
|
15828
15828
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15829
15829
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15830
15830
|
);
|
|
15831
|
-
await
|
|
15831
|
+
await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
15832
15832
|
"cli.play_publish_imports",
|
|
15833
15833
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15834
15834
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15837,7 +15837,7 @@ async function handlePlayPublish(args) {
|
|
|
15837
15837
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15838
15838
|
return 1;
|
|
15839
15839
|
}
|
|
15840
|
-
const published = await
|
|
15840
|
+
const published = await _chunkJ6SVNKRPjs.traceCliSpan.call(void 0,
|
|
15841
15841
|
"cli.play_publish_register_root",
|
|
15842
15842
|
{
|
|
15843
15843
|
targetKind: "file",
|
|
@@ -15872,7 +15872,7 @@ async function handlePlayPublish(args) {
|
|
|
15872
15872
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15873
15873
|
};
|
|
15874
15874
|
if (options.jsonOutput) {
|
|
15875
|
-
|
|
15875
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, result2);
|
|
15876
15876
|
} else {
|
|
15877
15877
|
printPublishReceipt({
|
|
15878
15878
|
name: rootPlayName,
|
|
@@ -15903,7 +15903,7 @@ async function handlePlayPublish(args) {
|
|
|
15903
15903
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15904
15904
|
latest: useLatest
|
|
15905
15905
|
};
|
|
15906
|
-
|
|
15906
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, result2);
|
|
15907
15907
|
return 0;
|
|
15908
15908
|
}
|
|
15909
15909
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15927,7 +15927,7 @@ async function handlePlayPublish(args) {
|
|
|
15927
15927
|
revisionId ? { revisionId } : {}
|
|
15928
15928
|
);
|
|
15929
15929
|
if (options.jsonOutput) {
|
|
15930
|
-
|
|
15930
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, result);
|
|
15931
15931
|
} else {
|
|
15932
15932
|
printPublishReceipt({
|
|
15933
15933
|
name: result.name,
|
|
@@ -15967,7 +15967,7 @@ async function handlePlayDelete(args) {
|
|
|
15967
15967
|
);
|
|
15968
15968
|
return 2;
|
|
15969
15969
|
}
|
|
15970
|
-
const client = new (0,
|
|
15970
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
15971
15971
|
let detail;
|
|
15972
15972
|
try {
|
|
15973
15973
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15991,8 +15991,8 @@ async function handlePlayDelete(args) {
|
|
|
15991
15991
|
name: resolvedName,
|
|
15992
15992
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15993
15993
|
};
|
|
15994
|
-
if (
|
|
15995
|
-
|
|
15994
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
15995
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, result2);
|
|
15996
15996
|
} else {
|
|
15997
15997
|
process.stdout.write(
|
|
15998
15998
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16002,8 +16002,8 @@ async function handlePlayDelete(args) {
|
|
|
16002
16002
|
return 0;
|
|
16003
16003
|
}
|
|
16004
16004
|
const result = await client.deletePlay(resolvedName);
|
|
16005
|
-
if (
|
|
16006
|
-
|
|
16005
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
16006
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, result);
|
|
16007
16007
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16008
16008
|
}
|
|
16009
16009
|
if (result.alreadyArchived) {
|
|
@@ -16042,13 +16042,13 @@ async function handlePlayRestore(args) {
|
|
|
16042
16042
|
);
|
|
16043
16043
|
return 2;
|
|
16044
16044
|
}
|
|
16045
|
-
const client = new (0,
|
|
16045
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
16046
16046
|
try {
|
|
16047
16047
|
const result = await client.restorePlay(
|
|
16048
16048
|
parseReferencedPlayTarget(playName).playName
|
|
16049
16049
|
);
|
|
16050
|
-
if (
|
|
16051
|
-
|
|
16050
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
16051
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, result);
|
|
16052
16052
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16053
16053
|
}
|
|
16054
16054
|
if (result.alreadyActive) {
|
|
@@ -16157,7 +16157,7 @@ Common commands:
|
|
|
16157
16157
|
const saved = JSON.parse(
|
|
16158
16158
|
await _promises.readFile.call(void 0, _path.resolve.call(void 0, path), "utf8")
|
|
16159
16159
|
);
|
|
16160
|
-
const { callerPlayWorkflowIdMatchesRequest } = await Promise.resolve().then(() => _interopRequireWildcard(require("./run-identity-
|
|
16160
|
+
const { callerPlayWorkflowIdMatchesRequest } = await Promise.resolve().then(() => _interopRequireWildcard(require("./run-identity-HFYABUJS.js")));
|
|
16161
16161
|
if (saved.version !== 1 || typeof saved.workflowId !== "string" || typeof saved.orgId !== "string" || typeof saved.baseUrl !== "string" || !saved.request || saved.request.admissionOrgId !== saved.orgId || saved.request.workflowId !== saved.workflowId || !callerPlayWorkflowIdMatchesRequest(
|
|
16162
16162
|
saved.workflowId,
|
|
16163
16163
|
saved.request
|
|
@@ -16175,21 +16175,21 @@ Common commands:
|
|
|
16175
16175
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16176
16176
|
}
|
|
16177
16177
|
};
|
|
16178
|
-
|
|
16178
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0, result2, {
|
|
16179
16179
|
json: options.json,
|
|
16180
16180
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16181
16181
|
`
|
|
16182
16182
|
});
|
|
16183
16183
|
return;
|
|
16184
16184
|
}
|
|
16185
|
-
const client = new (0,
|
|
16185
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
16186
16186
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16187
16187
|
throw new Error(
|
|
16188
16188
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16189
16189
|
);
|
|
16190
16190
|
}
|
|
16191
16191
|
const result = await client.startPlayRun(saved.request);
|
|
16192
|
-
|
|
16192
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
16193
16193
|
{ ...result },
|
|
16194
16194
|
{
|
|
16195
16195
|
json: options.json,
|
|
@@ -16225,7 +16225,7 @@ Examples:
|
|
|
16225
16225
|
).action(async (target, options) => {
|
|
16226
16226
|
process.exitCode = await handlePlayCheck([
|
|
16227
16227
|
target,
|
|
16228
|
-
...
|
|
16228
|
+
..._chunk5X4AUFYWjs.jsonFieldArgs.call(void 0, options.json),
|
|
16229
16229
|
...options.full ? ["--full"] : []
|
|
16230
16230
|
]);
|
|
16231
16231
|
});
|
|
@@ -16264,10 +16264,10 @@ Notes:
|
|
|
16264
16264
|
--force-tool-refresh re-executes completed tool receipts and may repeat billed
|
|
16265
16265
|
provider calls. It is independent from --force.
|
|
16266
16266
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16267
|
-
resident-work ceiling. Default: ${
|
|
16267
|
+
resident-work ceiling. Default: ${_chunkQQ3JJYE2js.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkQQ3JJYE2js.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16268
16268
|
Provider pacing and sandbox memory limits still apply.
|
|
16269
16269
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16270
|
-
resolvers. Accepted range: 1-${
|
|
16270
|
+
resolvers. Accepted range: 1-${_chunkQQ3JJYE2js.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16271
16271
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16272
16272
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16273
16273
|
Tool calls that would exceed it are denied.
|
|
@@ -16381,10 +16381,10 @@ Examples:
|
|
|
16381
16381
|
"Refresh completed tool receipts; may repeat billed provider calls"
|
|
16382
16382
|
).option(
|
|
16383
16383
|
"--max-concurrent-external-calls <count>",
|
|
16384
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16384
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkQQ3JJYE2js.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkQQ3JJYE2js.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16385
16385
|
).option(
|
|
16386
16386
|
"--max-concurrent-rows <count>",
|
|
16387
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16387
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkQQ3JJYE2js.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16388
16388
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
|
|
16389
16389
|
"--debug-map-latency",
|
|
16390
16390
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16429,14 +16429,14 @@ JSON field selection:
|
|
|
16429
16429
|
passthroughArgs.shift();
|
|
16430
16430
|
}
|
|
16431
16431
|
const exitCode = await handlePlayRun(
|
|
16432
|
-
|
|
16432
|
+
_chunkQQ3JJYE2js.resolvePlayRunCliOptions.call(void 0,
|
|
16433
16433
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16434
16434
|
options,
|
|
16435
16435
|
passthroughArgs,
|
|
16436
|
-
|
|
16436
|
+
_chunkJ6SVNKRPjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16437
16437
|
)
|
|
16438
16438
|
);
|
|
16439
|
-
|
|
16439
|
+
_chunkJ6SVNKRPjs.recordCliTrace.call(void 0, {
|
|
16440
16440
|
phase: "cli.play_command_exit",
|
|
16441
16441
|
exitCode
|
|
16442
16442
|
});
|
|
@@ -16485,9 +16485,9 @@ Examples:
|
|
|
16485
16485
|
const limit = Number(options.historyLimit);
|
|
16486
16486
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16487
16487
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16488
|
-
const client = new (0,
|
|
16488
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
16489
16489
|
if (options.binding) {
|
|
16490
|
-
|
|
16490
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0,
|
|
16491
16491
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16492
16492
|
);
|
|
16493
16493
|
return;
|
|
@@ -16495,7 +16495,7 @@ Examples:
|
|
|
16495
16495
|
const result = await client.listPlayTriggerInventory({
|
|
16496
16496
|
cursor: options.cursor
|
|
16497
16497
|
});
|
|
16498
|
-
|
|
16498
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, {
|
|
16499
16499
|
...result,
|
|
16500
16500
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16501
16501
|
});
|
|
@@ -16554,7 +16554,7 @@ Examples:
|
|
|
16554
16554
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16555
16555
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16556
16556
|
}
|
|
16557
|
-
const result = await new (0,
|
|
16557
|
+
const result = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().getPlaysActivity({
|
|
16558
16558
|
timeZone: options.timeZone,
|
|
16559
16559
|
days,
|
|
16560
16560
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16568,7 +16568,7 @@ Examples:
|
|
|
16568
16568
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16569
16569
|
);
|
|
16570
16570
|
}
|
|
16571
|
-
|
|
16571
|
+
_chunk5X4AUFYWjs.printCommandEnvelope.call(void 0,
|
|
16572
16572
|
{ ...result },
|
|
16573
16573
|
{
|
|
16574
16574
|
json: Boolean(options.json),
|
|
@@ -16597,7 +16597,7 @@ Examples:
|
|
|
16597
16597
|
false
|
|
16598
16598
|
);
|
|
16599
16599
|
});
|
|
16600
|
-
|
|
16600
|
+
_chunk463ZOO2Ljs.registerDeprecatedSearchCommand.call(void 0,
|
|
16601
16601
|
play,
|
|
16602
16602
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16603
16603
|
);
|
|
@@ -16638,9 +16638,9 @@ Examples:
|
|
|
16638
16638
|
"--json [fields]",
|
|
16639
16639
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16640
16640
|
);
|
|
16641
|
-
|
|
16641
|
+
_chunkKTOAJP4Njs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16642
16642
|
async (target, options) => {
|
|
16643
|
-
const ownView = () => handlePlayDescribe(
|
|
16643
|
+
const ownView = () => handlePlayDescribe(_chunk5X4AUFYWjs.describeArgs.call(void 0, target, options));
|
|
16644
16644
|
const [flagText] = [options.json].filter(
|
|
16645
16645
|
(value) => typeof value === "string"
|
|
16646
16646
|
);
|
|
@@ -16651,7 +16651,7 @@ Examples:
|
|
|
16651
16651
|
process.exitCode = await ownView();
|
|
16652
16652
|
return;
|
|
16653
16653
|
}
|
|
16654
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16654
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-SEXUJLE4.js")));
|
|
16655
16655
|
process.exitCode = await describeAnything(
|
|
16656
16656
|
name,
|
|
16657
16657
|
{
|
|
@@ -16769,7 +16769,7 @@ Examples:
|
|
|
16769
16769
|
deepline plays deployments <deployment-id>
|
|
16770
16770
|
`
|
|
16771
16771
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16772
|
-
async (id, options) => id ?
|
|
16772
|
+
async (id, options) => id ? _chunkVL72UKNWjs.handleDeploymentGet.call(void 0, id, options) : _chunkVL72UKNWjs.handleDeploymentsList.call(void 0, options)
|
|
16773
16773
|
);
|
|
16774
16774
|
addPublishHelp(
|
|
16775
16775
|
play.command("publish <target>").description(
|
|
@@ -16904,14 +16904,14 @@ Examples:
|
|
|
16904
16904
|
const limit = Number(options.limit);
|
|
16905
16905
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16906
16906
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16907
|
-
const result = await new (0,
|
|
16907
|
+
const result = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().runs.rowHistory({
|
|
16908
16908
|
playName: options.play,
|
|
16909
16909
|
runId,
|
|
16910
16910
|
tableNamespace: options.dataset,
|
|
16911
16911
|
limit,
|
|
16912
16912
|
cursor: options.cursor
|
|
16913
16913
|
});
|
|
16914
|
-
|
|
16914
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, {
|
|
16915
16915
|
...result,
|
|
16916
16916
|
...result.nextCursor ? {
|
|
16917
16917
|
next: `deepline runs rows-history ${_chunkAID3OYVJjs.shellQuote.call(void 0, runId)} --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor)} --json`
|
|
@@ -16989,7 +16989,7 @@ Examples:
|
|
|
16989
16989
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16990
16990
|
).action(async (runId, options) => {
|
|
16991
16991
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16992
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16992
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-DPV2JES6.js")));
|
|
16993
16993
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16994
16994
|
receiptJson: options.json !== void 0
|
|
16995
16995
|
});
|
|
@@ -16997,7 +16997,7 @@ Examples:
|
|
|
16997
16997
|
}
|
|
16998
16998
|
process.exitCode = await handleRunGet([
|
|
16999
16999
|
runId,
|
|
17000
|
-
...
|
|
17000
|
+
..._chunk5X4AUFYWjs.jsonFieldArgs.call(void 0, options.json),
|
|
17001
17001
|
...options.web ? ["--web"] : [],
|
|
17002
17002
|
...options.webUrl ? ["--web-url"] : [],
|
|
17003
17003
|
...options.full ? ["--full"] : [],
|
|
@@ -17288,7 +17288,7 @@ Examples:
|
|
|
17288
17288
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17289
17289
|
...options.wait ? ["--wait"] : [],
|
|
17290
17290
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17291
|
-
...
|
|
17291
|
+
..._chunk5X4AUFYWjs.jsonFieldArgs.call(void 0, options.json)
|
|
17292
17292
|
]);
|
|
17293
17293
|
});
|
|
17294
17294
|
const share = play.command("share").description(
|
|
@@ -17454,10 +17454,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17454
17454
|
return 2;
|
|
17455
17455
|
}
|
|
17456
17456
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17457
|
-
const status = await new (0,
|
|
17457
|
+
const status = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().getSharePage(name);
|
|
17458
17458
|
const outputStatus = shareStatusForOutput(status);
|
|
17459
|
-
if (
|
|
17460
|
-
|
|
17459
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
17460
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, outputStatus);
|
|
17461
17461
|
return 0;
|
|
17462
17462
|
}
|
|
17463
17463
|
if (!outputStatus.share) {
|
|
@@ -17496,7 +17496,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17496
17496
|
return 2;
|
|
17497
17497
|
}
|
|
17498
17498
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17499
|
-
const client = new (0,
|
|
17499
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
17500
17500
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17501
17501
|
let resolvedVersion;
|
|
17502
17502
|
if (!revisionId) {
|
|
@@ -17527,8 +17527,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17527
17527
|
);
|
|
17528
17528
|
if (!hasCompleted) {
|
|
17529
17529
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17530
|
-
if (
|
|
17531
|
-
|
|
17530
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
17531
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, {
|
|
17532
17532
|
ok: false,
|
|
17533
17533
|
code: "NO_SUCCESSFUL_RUN",
|
|
17534
17534
|
message,
|
|
@@ -17552,8 +17552,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17552
17552
|
};
|
|
17553
17553
|
if (args.includes("--dry-run")) {
|
|
17554
17554
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17555
|
-
if (
|
|
17556
|
-
|
|
17555
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
17556
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, plan);
|
|
17557
17557
|
} else {
|
|
17558
17558
|
console.log(
|
|
17559
17559
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17563,8 +17563,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17563
17563
|
}
|
|
17564
17564
|
const status = await client.publishSharePage(name, request);
|
|
17565
17565
|
const outputStatus = shareStatusForOutput(status);
|
|
17566
|
-
if (
|
|
17567
|
-
|
|
17566
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
17567
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, outputStatus);
|
|
17568
17568
|
return 0;
|
|
17569
17569
|
}
|
|
17570
17570
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17595,9 +17595,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17595
17595
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17596
17596
|
...seoIndexing ? { seoIndexing } : {}
|
|
17597
17597
|
};
|
|
17598
|
-
const status = await new (0,
|
|
17599
|
-
if (
|
|
17600
|
-
|
|
17598
|
+
const status = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().updateSharePage(name, request);
|
|
17599
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
17600
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, status);
|
|
17601
17601
|
return 0;
|
|
17602
17602
|
}
|
|
17603
17603
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17612,7 +17612,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17612
17612
|
return 2;
|
|
17613
17613
|
}
|
|
17614
17614
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17615
|
-
const client = new (0,
|
|
17615
|
+
const client = new (0, _chunkRU5ROUFOjs.DeeplineClient)();
|
|
17616
17616
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17617
17617
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17618
17618
|
if (!revisionId && versionFlag) {
|
|
@@ -17629,8 +17629,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17629
17629
|
revisionId ? { revisionId } : {}
|
|
17630
17630
|
);
|
|
17631
17631
|
const outputStatus = shareStatusForOutput(status);
|
|
17632
|
-
if (
|
|
17633
|
-
|
|
17632
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
17633
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, outputStatus);
|
|
17634
17634
|
return 0;
|
|
17635
17635
|
}
|
|
17636
17636
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17655,9 +17655,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17655
17655
|
return 2;
|
|
17656
17656
|
}
|
|
17657
17657
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17658
|
-
const status = await new (0,
|
|
17659
|
-
if (
|
|
17660
|
-
|
|
17658
|
+
const status = await new (0, _chunkRU5ROUFOjs.DeeplineClient)().unpublishSharePage(name);
|
|
17659
|
+
if (_chunk5X4AUFYWjs.argsWantJson.call(void 0, args)) {
|
|
17660
|
+
_chunk5X4AUFYWjs.printCompactJson.call(void 0, status);
|
|
17661
17661
|
return 0;
|
|
17662
17662
|
}
|
|
17663
17663
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17734,4 +17734,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17734
17734
|
|
|
17735
17735
|
|
|
17736
17736
|
|
|
17737
|
-
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag =
|
|
17737
|
+
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkQQ3JJYE2js.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkQQ3JJYE2js.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;
|