deepline 0.3.477 → 0.3.479
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/client-core.ts +5 -4
- package/dist/bundling-sources/sdk/src/http-core.ts +84 -3
- package/dist/bundling-sources/sdk/src/http.ts +2 -0
- package/dist/bundling-sources/sdk/src/play.ts +8 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +11 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +10 -2
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +11 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +77 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +83 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +60 -27
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +13 -12
- package/dist/bundling-sources/shared_libs/plays/bundling/index.ts +5 -2
- package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +37 -12
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +3 -1
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +29 -0
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +15 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +57 -5
- package/dist/bundling-sources/shared_libs/product-notifications/slack-transport.ts +19 -0
- package/dist/cli/{auth-XVXRRWIQ.mjs → auth-D7DYB57R.mjs} +5 -5
- package/dist/cli/auth-MZDFNRPG.js +41 -0
- package/dist/cli/{billing-2H7GFJDT.js → billing-DHGSNM6E.js} +107 -87
- package/dist/cli/{billing-EOPUJ4JI.mjs → billing-DT4JT4QN.mjs} +34 -14
- package/dist/cli/{chunk-CH4VMDB5.js → chunk-27GSBTWD.js} +70 -52
- package/dist/cli/{chunk-PQQNMMWM.mjs → chunk-27PXHD2P.mjs} +1 -1
- package/dist/cli/{chunk-ACDXGOXE.js → chunk-33O2JGHE.js} +63 -11
- package/dist/cli/{chunk-255O6APS.js → chunk-3GIM7XRH.js} +2 -2
- package/dist/cli/{chunk-6IJJCRE5.mjs → chunk-3PHOAUU4.mjs} +23 -5
- package/dist/cli/{chunk-NC52JG66.js → chunk-3SGA53DX.js} +3 -3
- package/dist/cli/{chunk-RHIFH3GD.mjs → chunk-6C3QY5JS.mjs} +1 -1
- package/dist/cli/{chunk-NJMYX2TP.mjs → chunk-6QIXWFPO.mjs} +3 -3
- package/dist/cli/chunk-7I4B6V2S.mjs +127 -0
- package/dist/cli/{chunk-MZSLFWOT.js → chunk-7UFFWPQ2.js} +13 -9
- package/dist/cli/{chunk-RGNMMDSJ.js → chunk-AFHFZU5V.js} +37 -37
- package/dist/cli/{chunk-KWQNNPMH.js → chunk-AKVNUNL7.js} +3 -3
- package/dist/cli/{chunk-LXKGZKTL.js → chunk-CK2Q6AWR.js} +26 -26
- package/dist/cli/{chunk-DFKHXZQ7.mjs → chunk-D6MLXRMQ.mjs} +10 -10
- package/dist/cli/{chunk-7CILZKLE.js → chunk-EMVWC5LP.js} +5 -5
- package/dist/cli/{chunk-75NLWBYQ.js → chunk-FBEXJVQL.js} +93 -93
- package/dist/cli/{chunk-JS4UO6G4.mjs → chunk-FKEZ5DIJ.mjs} +2 -1
- package/dist/cli/{chunk-ZDPL5AIK.js → chunk-FV7WGK5X.js} +5 -5
- package/dist/cli/{chunk-E2CUSH56.js → chunk-G6V34EQ5.js} +16 -16
- package/dist/cli/{chunk-DS3DZUES.mjs → chunk-GICSDK72.mjs} +2 -2
- package/dist/cli/{chunk-C2V2HQDW.mjs → chunk-GONL4EFT.mjs} +2 -2
- package/dist/cli/{chunk-6KKDIISC.js → chunk-GQCH6Y7W.js} +1 -1
- package/dist/cli/{chunk-3UKKM6OS.js → chunk-GSULE54L.js} +7 -6
- package/dist/cli/{chunk-2YNLW43I.mjs → chunk-GZ43YXHT.mjs} +2 -2
- package/dist/cli/{chunk-UYA7LJGC.mjs → chunk-IL5AF6AR.mjs} +4 -2
- package/dist/cli/{chunk-R5FNCFEK.js → chunk-J5VDE42G.js} +3 -3
- package/dist/cli/{chunk-KMXBZIKO.mjs → chunk-JFGOMQW6.mjs} +2 -2
- package/dist/cli/{chunk-C46DWB56.mjs → chunk-JKUFOP7M.mjs} +1 -1
- package/dist/cli/{chunk-23EEVP5W.js → chunk-JMCTNS6S.js} +6 -6
- package/dist/cli/{chunk-ISEUOYCB.mjs → chunk-JNFNNJ75.mjs} +4 -4
- package/dist/cli/{chunk-C2AN2HTB.mjs → chunk-K5RRY7DJ.mjs} +4 -4
- package/dist/cli/{chunk-M2UL4ZS5.js → chunk-LXYDN5FE.js} +7 -7
- package/dist/cli/{chunk-3W6E3WVU.js → chunk-N4M6CO5H.js} +9 -9
- package/dist/cli/{chunk-RLCAECZH.mjs → chunk-N7E25EU2.mjs} +5 -5
- package/dist/cli/{chunk-YZA5UJXM.mjs → chunk-O5BUFQ2P.mjs} +1 -1
- package/dist/cli/{chunk-WFVEMDQL.js → chunk-OKAZHDYN.js} +4 -2
- package/dist/cli/{chunk-4RAENEAX.js → chunk-OVFCPV24.js} +53 -53
- package/dist/cli/{chunk-NO7ZC2GV.mjs → chunk-PUOKABQF.mjs} +5 -5
- package/dist/cli/{chunk-SG2SZQ4K.mjs → chunk-RJVUILW4.mjs} +2 -2
- package/dist/cli/{chunk-SVU2VR6Q.mjs → chunk-TZCHXF4R.mjs} +2 -2
- package/dist/cli/{chunk-XQLYPHYW.mjs → chunk-UOYA35OT.mjs} +1 -1
- package/dist/cli/{chunk-THMGJOR4.js → chunk-VKBLXJCK.js} +8 -8
- package/dist/cli/{chunk-UBNS6GSV.js → chunk-VRZXGJXH.js} +21 -21
- package/dist/cli/{chunk-DMWHEYZM.js → chunk-W4HIOBQQ.js} +2 -2
- package/dist/cli/{chunk-347EE4YE.js → chunk-W6N2S5N7.js} +8 -8
- package/dist/cli/{chunk-WRHLAAGN.mjs → chunk-XBYW5EHY.mjs} +1 -1
- package/dist/cli/{chunk-LJYTYNQZ.mjs → chunk-XDFARN7U.mjs} +55 -3
- package/dist/cli/{chunk-2QT6KN54.js → chunk-Y2MVDYV6.js} +10 -10
- package/dist/cli/{chunk-QODW5ILA.mjs → chunk-YC2QBF2W.mjs} +2 -2
- package/dist/cli/chunk-YGCKMI5P.js +127 -0
- package/dist/cli/{chunk-3A7TDUZV.mjs → chunk-ZBSUXXZS.mjs} +13 -9
- package/dist/cli/{chunk-2GZFIWSA.mjs → chunk-ZJRVHQSZ.mjs} +4 -4
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-ECB7TYR2.js → csv-DQWOZ2BL.js} +13 -13
- package/dist/cli/{csv-IDRPTSSC.mjs → csv-JXFOD7DJ.mjs} +4 -4
- package/dist/cli/{db-FOBZD44N.mjs → db-NOGMZAQE.mjs} +6 -6
- package/dist/cli/{db-S74XZZ77.js → db-Q2OAAXRX.js} +27 -27
- package/dist/cli/describe-THHHNUEA.js +48 -0
- package/dist/cli/{describe-KMTPPI2J.mjs → describe-VKZTZLX6.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-ZE3JMNA4.js → executions-B3GDZ4GQ.js} +8 -8
- package/dist/cli/{executions-4JAIVE2E.mjs → executions-XU3JMNI3.mjs} +6 -6
- package/dist/cli/{feedback-W6VA47A3.js → feedback-5IW3ZKRP.js} +8 -8
- package/dist/cli/{feedback-EUX5PDBA.mjs → feedback-R5UQXINE.mjs} +4 -4
- package/dist/cli/{git-UOVG4PLH.mjs → git-7B4H7VEL.mjs} +5 -5
- package/dist/cli/git-BX27JAW4.js +25 -0
- package/dist/cli/index.js +161 -142
- package/dist/cli/index.mjs +65 -46
- package/dist/cli/{legacy-noops-3H35EH5Y.js → legacy-noops-AVT6T5QI.js} +8 -8
- package/dist/cli/{legacy-noops-ZBWUNFWV.mjs → legacy-noops-KY7JAALE.mjs} +5 -5
- package/dist/cli/{monitors-AYSGSUAK.mjs → monitors-G7L7AFXR.mjs} +7 -7
- package/dist/cli/{monitors-PI3KPLR2.js → monitors-GZB6CWK2.js} +91 -91
- package/dist/cli/{org-2BIG7U4V.mjs → org-QDUBOQTH.mjs} +6 -6
- package/dist/cli/{org-MVS3Y6BK.js → org-ZHHKAPCE.js} +72 -72
- package/dist/cli/{pages-VB6FOVDE.js → pages-5P3SPMN5.js} +17 -17
- package/dist/cli/{pages-4TRRL24G.mjs → pages-Q4WGQCST.mjs} +6 -6
- package/dist/cli/{play-BLT6IT2O.js → play-IRLKESZB.js} +585 -678
- package/dist/cli/{play-JR3VUOZM.mjs → play-WRSHD4RE.mjs} +26 -119
- package/dist/cli/{providers-547DPK4S.mjs → providers-7CQUHS57.mjs} +6 -6
- package/dist/cli/{providers-BBXIAGW4.js → providers-LKEYLN6D.js} +9 -9
- package/dist/cli/{quickstart-NTLXD7HS.mjs → quickstart-I6NYGMEE.mjs} +4 -4
- package/dist/cli/{quickstart-RNPI5B6J.js → quickstart-KS45M5SR.js} +6 -6
- package/dist/cli/{run-QZ4SFECD.mjs → run-AZETCL7R.mjs} +22 -22
- package/dist/cli/{run-BCCEXBOG.js → run-BLMOBNAN.js} +36 -36
- package/dist/cli/{search-PYNELH4C.mjs → search-EEKEP67Y.mjs} +7 -7
- package/dist/cli/search-PEQXXY2B.js +32 -0
- package/dist/cli/{secrets-O5WGREQ7.mjs → secrets-HAULG2EW.mjs} +6 -6
- package/dist/cli/{secrets-VD35LMYJ.js → secrets-M6NU3TD2.js} +15 -15
- package/dist/cli/{sessions-2TL6Z5J5.mjs → sessions-5MB4XKOK.mjs} +5 -5
- package/dist/cli/{sessions-NGGIBYXF.js → sessions-DSR5AHIA.js} +6 -6
- package/dist/cli/{settings-ERFNZRHO.js → settings-6US327NQ.js} +78 -78
- package/dist/cli/{settings-6KM74AJT.mjs → settings-JUQP4HYQ.mjs} +11 -11
- package/dist/cli/{setup-6X7EJ6RG.js → setup-5ZRSEQUD.js} +44 -44
- package/dist/cli/{setup-Y3BN6XRS.mjs → setup-JRH4UC47.mjs} +9 -9
- package/dist/cli/{skills-OUBQASHI.mjs → skills-HFOZ5WDH.mjs} +7 -7
- package/dist/cli/skills-P67KCVDR.js +33 -0
- package/dist/cli/{tools-EELZ5FF5.mjs → tools-CJEBZNPB.mjs} +16 -16
- package/dist/cli/tools-PDBEAI22.js +55 -0
- package/dist/cli/update-G6DI3BQW.js +33 -0
- package/dist/cli/{update-TX7SW32Y.mjs → update-VQJEPAAK.mjs} +9 -9
- package/dist/cli/{workflow-PUNQG7LG.mjs → workflow-EYWE3T75.mjs} +7 -7
- package/dist/cli/{workflow-5AI2BJA7.js → workflow-NKPDRZOP.js} +17 -17
- package/dist/{client-AjmfA5nR.d.mts → client-B9N1bcGc.d.mts} +1 -1
- package/dist/{client-DMyY-QL8.d.ts → client-Btw075Hq.d.ts} +1 -1
- package/dist/{client-core-C705vFyV.d.ts → client-core-DvGWlwtX.d.ts} +45 -6
- package/dist/{client-core-CpBbvLEX.d.mts → client-core-TulbIeRB.d.mts} +45 -6
- package/dist/{compiler-manifest-hqIAukR0.d.mts → compiler-manifest-gkO9ZkVg.d.mts} +37 -17
- package/dist/{compiler-manifest-hqIAukR0.d.ts → compiler-manifest-gkO9ZkVg.d.ts} +37 -17
- package/dist/{errors-CRO2qQ6k.d.ts → errors-Cc92LKH-.d.ts} +1 -1
- package/dist/{errors-DIHVetNY.d.mts → errors-CeCCOKSA.d.mts} +1 -1
- package/dist/{index-B8DVoeYt.d.ts → index-DJQKdV76.d.ts} +1 -1
- package/dist/{index-DVZ_X4Gb.d.mts → index-DsqWJL3Q.d.mts} +1 -1
- package/dist/index.d.mts +15 -9
- package/dist/index.d.ts +15 -9
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -110
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +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 +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-QITP34OX.js +0 -41
- package/dist/cli/describe-PI7HCT7K.js +0 -48
- package/dist/cli/git-NDOGCQZY.js +0 -25
- package/dist/cli/search-YHEICYQL.js +0 -32
- package/dist/cli/skills-F7MPYC4P.js +0 -33
- package/dist/cli/tools-MCWDAK53.js +0 -55
- package/dist/cli/update-G5BRJOVT.js +0 -33
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkN4M6CO5Hjs = require('./chunk-N4M6CO5H.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,14 +17,14 @@ var _chunk3W6E3WVUjs = require('./chunk-3W6E3WVU.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkJ5VDE42Gjs = require('./chunk-J5VDE42G.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkVKBLXJCKjs = require('./chunk-VKBLXJCK.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkCK2Q6AWRjs = require('./chunk-CK2Q6AWR.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
@@ -40,11 +40,19 @@ require('./chunk-ZM2YPJQJ.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunk7UFFWPQ2js = require('./chunk-7UFFWPQ2.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
47
47
|
require('./chunk-3KC45UVF.js');
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
48
56
|
require('./chunk-J33TSWO5.js');
|
|
49
57
|
|
|
50
58
|
|
|
@@ -52,10 +60,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
52
60
|
|
|
53
61
|
|
|
54
62
|
|
|
55
|
-
var
|
|
63
|
+
var _chunkFV7WGK5Xjs = require('./chunk-FV7WGK5X.js');
|
|
56
64
|
|
|
57
65
|
|
|
58
|
-
var
|
|
66
|
+
var _chunkEMVWC5LPjs = require('./chunk-EMVWC5LP.js');
|
|
59
67
|
require('./chunk-VKKVSFRD.js');
|
|
60
68
|
|
|
61
69
|
|
|
@@ -69,7 +77,7 @@ require('./chunk-VKKVSFRD.js');
|
|
|
69
77
|
|
|
70
78
|
|
|
71
79
|
|
|
72
|
-
var
|
|
80
|
+
var _chunkGSULE54Ljs = require('./chunk-GSULE54L.js');
|
|
73
81
|
require('./chunk-E4CABWXL.js');
|
|
74
82
|
|
|
75
83
|
|
|
@@ -89,18 +97,18 @@ require('./chunk-XDVT3GOM.js');
|
|
|
89
97
|
|
|
90
98
|
|
|
91
99
|
|
|
92
|
-
var
|
|
100
|
+
var _chunkJMCTNS6Sjs = require('./chunk-JMCTNS6S.js');
|
|
93
101
|
|
|
94
102
|
|
|
95
103
|
|
|
96
104
|
|
|
97
105
|
|
|
98
|
-
var
|
|
99
|
-
require('./chunk-
|
|
106
|
+
var _chunkW4HIOBQQjs = require('./chunk-W4HIOBQQ.js');
|
|
107
|
+
require('./chunk-OVFCPV24.js');
|
|
100
108
|
|
|
101
109
|
|
|
102
110
|
|
|
103
|
-
var
|
|
111
|
+
var _chunkAKVNUNL7js = require('./chunk-AKVNUNL7.js');
|
|
104
112
|
|
|
105
113
|
|
|
106
114
|
|
|
@@ -114,17 +122,17 @@ var _chunkKWQNNPMHjs = require('./chunk-KWQNNPMH.js');
|
|
|
114
122
|
|
|
115
123
|
|
|
116
124
|
|
|
117
|
-
var
|
|
118
|
-
require('./chunk-
|
|
125
|
+
var _chunkLXYDN5FEjs = require('./chunk-LXYDN5FE.js');
|
|
126
|
+
require('./chunk-3SGA53DX.js');
|
|
119
127
|
|
|
120
128
|
|
|
121
|
-
var
|
|
129
|
+
var _chunk33O2JGHEjs = require('./chunk-33O2JGHE.js');
|
|
122
130
|
require('./chunk-ALJJRZNJ.js');
|
|
123
131
|
require('./chunk-XNYIZMNQ.js');
|
|
124
132
|
|
|
125
133
|
|
|
126
134
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
127
|
-
require('./chunk-
|
|
135
|
+
require('./chunk-GQCH6Y7W.js');
|
|
128
136
|
require('./chunk-OG64RBAC.js');
|
|
129
137
|
|
|
130
138
|
|
|
@@ -2106,7 +2114,7 @@ function resolveField(key, command) {
|
|
|
2106
2114
|
function printSettings(result, json, name) {
|
|
2107
2115
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2108
2116
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2109
|
-
|
|
2117
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2110
2118
|
{
|
|
2111
2119
|
...result,
|
|
2112
2120
|
settings: Object.fromEntries(
|
|
@@ -2150,7 +2158,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2150
2158
|
valueSyntax: field.cli.valueSyntax,
|
|
2151
2159
|
examples: field.cli.examples
|
|
2152
2160
|
}));
|
|
2153
|
-
|
|
2161
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2154
2162
|
{
|
|
2155
2163
|
fields: descriptions,
|
|
2156
2164
|
render: {
|
|
@@ -2175,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2175
2183
|
async (options, command) => {
|
|
2176
2184
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2177
2185
|
printSettings(
|
|
2178
|
-
await new (0,
|
|
2186
|
+
await new (0, _chunkEMVWC5LPjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2179
2187
|
options.json,
|
|
2180
2188
|
options.name
|
|
2181
2189
|
);
|
|
@@ -2206,7 +2214,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2206
2214
|
);
|
|
2207
2215
|
}
|
|
2208
2216
|
if (options.dryRun) {
|
|
2209
|
-
|
|
2217
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2210
2218
|
{
|
|
2211
2219
|
dryRun: true,
|
|
2212
2220
|
play,
|
|
@@ -2227,7 +2235,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2227
2235
|
return;
|
|
2228
2236
|
}
|
|
2229
2237
|
printSettings(
|
|
2230
|
-
await new (0,
|
|
2238
|
+
await new (0, _chunkEMVWC5LPjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2231
2239
|
options.json
|
|
2232
2240
|
);
|
|
2233
2241
|
};
|
|
@@ -2253,13 +2261,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2253
2261
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2254
2262
|
{ exitCode: 2 }
|
|
2255
2263
|
);
|
|
2256
|
-
const page = await new (0,
|
|
2264
|
+
const page = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2257
2265
|
root: options.root,
|
|
2258
2266
|
limit,
|
|
2259
2267
|
cursor: options.cursor
|
|
2260
2268
|
});
|
|
2261
2269
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2262
|
-
|
|
2270
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2263
2271
|
{
|
|
2264
2272
|
...page,
|
|
2265
2273
|
nextCommand,
|
|
@@ -2310,7 +2318,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2310
2318
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2311
2319
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2312
2320
|
};
|
|
2313
|
-
const client = new (0,
|
|
2321
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
2314
2322
|
const paths = [];
|
|
2315
2323
|
let cursor;
|
|
2316
2324
|
do {
|
|
@@ -2372,7 +2380,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2372
2380
|
moved.push(move.playName);
|
|
2373
2381
|
}
|
|
2374
2382
|
}
|
|
2375
|
-
|
|
2383
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2376
2384
|
{
|
|
2377
2385
|
dryRun: Boolean(options.dryRun),
|
|
2378
2386
|
from: options.from,
|
|
@@ -2500,7 +2508,7 @@ function triggerLines(view) {
|
|
|
2500
2508
|
return lines;
|
|
2501
2509
|
}
|
|
2502
2510
|
function printView(view, json) {
|
|
2503
|
-
|
|
2511
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2504
2512
|
{
|
|
2505
2513
|
...view,
|
|
2506
2514
|
render: {
|
|
@@ -2513,7 +2521,7 @@ function printView(view, json) {
|
|
|
2513
2521
|
);
|
|
2514
2522
|
}
|
|
2515
2523
|
function printResult(result, json) {
|
|
2516
|
-
|
|
2524
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2517
2525
|
{
|
|
2518
2526
|
...result,
|
|
2519
2527
|
render: {
|
|
@@ -2543,7 +2551,7 @@ async function mutate(command, options, build) {
|
|
|
2543
2551
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2544
2552
|
}
|
|
2545
2553
|
if (options.dryRun) {
|
|
2546
|
-
|
|
2554
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2547
2555
|
{
|
|
2548
2556
|
dryRun: true,
|
|
2549
2557
|
play: options.play,
|
|
@@ -2562,7 +2570,7 @@ async function mutate(command, options, build) {
|
|
|
2562
2570
|
return;
|
|
2563
2571
|
}
|
|
2564
2572
|
printResult(
|
|
2565
|
-
await new (0,
|
|
2573
|
+
await new (0, _chunkEMVWC5LPjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2566
2574
|
options.json
|
|
2567
2575
|
);
|
|
2568
2576
|
}
|
|
@@ -2595,7 +2603,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2595
2603
|
}).addHelpText("after", help2);
|
|
2596
2604
|
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
|
|
2597
2605
|
printView(
|
|
2598
|
-
await new (0,
|
|
2606
|
+
await new (0, _chunkEMVWC5LPjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2599
2607
|
options.json
|
|
2600
2608
|
);
|
|
2601
2609
|
});
|
|
@@ -2639,7 +2647,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2639
2647
|
if (options.auth === void 0) {
|
|
2640
2648
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2641
2649
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2642
|
-
const current = await new (0,
|
|
2650
|
+
const current = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2643
2651
|
options.play
|
|
2644
2652
|
);
|
|
2645
2653
|
return {
|
|
@@ -2716,7 +2724,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2716
2724
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2717
2725
|
"runtime.event": "Other event."
|
|
2718
2726
|
};
|
|
2719
|
-
var RUN_LOGS_KIND_HELP =
|
|
2727
|
+
var RUN_LOGS_KIND_HELP = _chunkGSULE54Ljs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2720
2728
|
kind,
|
|
2721
2729
|
description: KIND_DESCRIPTIONS[kind]
|
|
2722
2730
|
}));
|
|
@@ -2853,9 +2861,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2853
2861
|
const args = program.args;
|
|
2854
2862
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2855
2863
|
error.exitCode = 2;
|
|
2856
|
-
if (
|
|
2857
|
-
|
|
2858
|
-
Object.assign(new (0,
|
|
2864
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2865
|
+
_chunkLXYDN5FEjs.printJsonError.call(void 0,
|
|
2866
|
+
Object.assign(new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(error.message), {
|
|
2859
2867
|
exitCode: 2,
|
|
2860
2868
|
retryable: false
|
|
2861
2869
|
})
|
|
@@ -2899,14 +2907,14 @@ function parseQuery(args, resource) {
|
|
|
2899
2907
|
if (VALUE_FLAGS.has(flag)) {
|
|
2900
2908
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2901
2909
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2902
|
-
throw new (0,
|
|
2910
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2903
2911
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2904
2912
|
);
|
|
2905
2913
|
}
|
|
2906
2914
|
if (flag === "--sum") sums.push(value);
|
|
2907
2915
|
else {
|
|
2908
2916
|
if (values[flag] !== void 0) {
|
|
2909
|
-
throw new (0,
|
|
2917
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2910
2918
|
`${flag} may only be supplied once.`
|
|
2911
2919
|
);
|
|
2912
2920
|
}
|
|
@@ -2920,12 +2928,12 @@ function parseQuery(args, resource) {
|
|
|
2920
2928
|
}
|
|
2921
2929
|
if (arg.startsWith("-")) {
|
|
2922
2930
|
const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
|
|
2923
|
-
throw new (0,
|
|
2931
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2924
2932
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2925
2933
|
);
|
|
2926
2934
|
}
|
|
2927
2935
|
if (runId !== void 0) {
|
|
2928
|
-
throw new (0,
|
|
2936
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2929
2937
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2930
2938
|
);
|
|
2931
2939
|
}
|
|
@@ -2933,7 +2941,7 @@ function parseQuery(args, resource) {
|
|
|
2933
2941
|
}
|
|
2934
2942
|
if (switches.has("--fields")) {
|
|
2935
2943
|
if (runId !== void 0) {
|
|
2936
|
-
throw new (0,
|
|
2944
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2937
2945
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2938
2946
|
);
|
|
2939
2947
|
}
|
|
@@ -2946,18 +2954,18 @@ function parseQuery(args, resource) {
|
|
|
2946
2954
|
)
|
|
2947
2955
|
];
|
|
2948
2956
|
if (incompatible.length) {
|
|
2949
|
-
throw new (0,
|
|
2957
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2950
2958
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2951
2959
|
);
|
|
2952
2960
|
}
|
|
2953
2961
|
}
|
|
2954
2962
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2955
|
-
throw new (0,
|
|
2963
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2956
2964
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2957
2965
|
);
|
|
2958
2966
|
}
|
|
2959
2967
|
if (sums.length && switches.has("--count")) {
|
|
2960
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2961
2969
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2962
2970
|
);
|
|
2963
2971
|
}
|
|
@@ -2965,7 +2973,7 @@ function parseQuery(args, resource) {
|
|
|
2965
2973
|
if (operation === "count") {
|
|
2966
2974
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2967
2975
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2968
|
-
throw new (0,
|
|
2976
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2969
2977
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2970
2978
|
);
|
|
2971
2979
|
}
|
|
@@ -3000,16 +3008,16 @@ function parseQuery(args, resource) {
|
|
|
3000
3008
|
];
|
|
3001
3009
|
}
|
|
3002
3010
|
}
|
|
3003
|
-
const request =
|
|
3011
|
+
const request = _chunkGSULE54Ljs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3004
3012
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3005
3013
|
const backend = values["--runtime-backend"];
|
|
3006
3014
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3007
|
-
throw new (0,
|
|
3015
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
3008
3016
|
"--runtime-backend must be daytona or modal."
|
|
3009
3017
|
);
|
|
3010
3018
|
}
|
|
3011
3019
|
if (backend && !namespace) {
|
|
3012
|
-
throw new (0,
|
|
3020
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
3013
3021
|
"--runtime-backend requires --runtime-namespace."
|
|
3014
3022
|
);
|
|
3015
3023
|
}
|
|
@@ -3056,12 +3064,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3056
3064
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3057
3065
|
const record3 = failure;
|
|
3058
3066
|
const status = record3.statusCode;
|
|
3059
|
-
const exitCode = error instanceof
|
|
3067
|
+
const exitCode = error instanceof _chunkGSULE54Ljs.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;
|
|
3060
3068
|
const diagnostic = Object.assign(failure, {
|
|
3061
3069
|
exitCode,
|
|
3062
3070
|
retryable: exitCode === 5
|
|
3063
3071
|
});
|
|
3064
|
-
if (
|
|
3072
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) _chunkLXYDN5FEjs.printJsonError.call(void 0, diagnostic);
|
|
3065
3073
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3066
3074
|
return exitCode;
|
|
3067
3075
|
}
|
|
@@ -3076,7 +3084,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3076
3084
|
...criteria
|
|
3077
3085
|
} = request;
|
|
3078
3086
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3079
|
-
const client = new (0,
|
|
3087
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
3080
3088
|
let result;
|
|
3081
3089
|
if (request.operation === "fields") {
|
|
3082
3090
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3142,13 +3150,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3142
3150
|
lines.push(`Next page: ${nextPage}`);
|
|
3143
3151
|
}
|
|
3144
3152
|
}
|
|
3145
|
-
|
|
3153
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
3146
3154
|
{
|
|
3147
3155
|
...result,
|
|
3148
3156
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3149
3157
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3150
3158
|
},
|
|
3151
|
-
{ json:
|
|
3159
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3152
3160
|
` }
|
|
3153
3161
|
);
|
|
3154
3162
|
return 0;
|
|
@@ -4067,7 +4075,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4067
4075
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4068
4076
|
);
|
|
4069
4077
|
}
|
|
4070
|
-
const response = await new (0,
|
|
4078
|
+
const response = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4071
4079
|
keys
|
|
4072
4080
|
});
|
|
4073
4081
|
const failed = response.receipts.filter(
|
|
@@ -4079,7 +4087,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4079
4087
|
JSON.stringify(response, null, 2) + "\n",
|
|
4080
4088
|
{ flag: "wx", mode: 384 }
|
|
4081
4089
|
);
|
|
4082
|
-
|
|
4090
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
4083
4091
|
{
|
|
4084
4092
|
runId,
|
|
4085
4093
|
out: options.out,
|
|
@@ -4089,7 +4097,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4089
4097
|
{ json: true }
|
|
4090
4098
|
);
|
|
4091
4099
|
} else {
|
|
4092
|
-
|
|
4100
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4093
4101
|
}
|
|
4094
4102
|
if (failed)
|
|
4095
4103
|
process.exitCode = response.receipts.some(
|
|
@@ -4128,7 +4136,7 @@ includes nextCommand when another page is available.
|
|
|
4128
4136
|
{ exitCode: 2 }
|
|
4129
4137
|
);
|
|
4130
4138
|
}
|
|
4131
|
-
const page = await new (0,
|
|
4139
|
+
const page = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4132
4140
|
launchKey: options.launchKey,
|
|
4133
4141
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4134
4142
|
limit
|
|
@@ -4143,7 +4151,7 @@ includes nextCommand when another page is available.
|
|
|
4143
4151
|
"--limit",
|
|
4144
4152
|
String(limit)
|
|
4145
4153
|
].join(" ") : null;
|
|
4146
|
-
|
|
4154
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
4147
4155
|
{
|
|
4148
4156
|
parentRunId,
|
|
4149
4157
|
launchKey: options.launchKey,
|
|
@@ -4179,7 +4187,7 @@ async function handleRunsHistory(options) {
|
|
|
4179
4187
|
throw new Error("--limit must be a positive integer.");
|
|
4180
4188
|
}
|
|
4181
4189
|
}
|
|
4182
|
-
const page = await new (0,
|
|
4190
|
+
const page = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().runs.history({
|
|
4183
4191
|
cursor: options.cursor,
|
|
4184
4192
|
orgId: options.org,
|
|
4185
4193
|
search: options.search,
|
|
@@ -4195,7 +4203,7 @@ async function handleRunsHistory(options) {
|
|
|
4195
4203
|
);
|
|
4196
4204
|
}
|
|
4197
4205
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4198
|
-
|
|
4206
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
4199
4207
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4200
4208
|
options.json ? { json: true } : {}
|
|
4201
4209
|
);
|
|
@@ -4247,12 +4255,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4247
4255
|
return 1;
|
|
4248
4256
|
}
|
|
4249
4257
|
}
|
|
4250
|
-
const result = await new (0,
|
|
4258
|
+
const result = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().runs.rerun(runId, {
|
|
4251
4259
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4252
4260
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4253
4261
|
});
|
|
4254
|
-
if (
|
|
4255
|
-
|
|
4262
|
+
if (_chunkLXYDN5FEjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4263
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4256
4264
|
} else if (result.rateLimited) {
|
|
4257
4265
|
console.log(`
|
|
4258
4266
|
${result.rateLimited.message}`);
|
|
@@ -5076,13 +5084,13 @@ var RunDataset = class _RunDataset {
|
|
|
5076
5084
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5077
5085
|
_fs.writeFileSync.call(void 0,
|
|
5078
5086
|
absolutePath,
|
|
5079
|
-
`${JSON.stringify(
|
|
5087
|
+
`${JSON.stringify(_chunkJ5VDE42Gjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5080
5088
|
`,
|
|
5081
5089
|
"utf-8"
|
|
5082
5090
|
);
|
|
5083
5091
|
return absolutePath;
|
|
5084
5092
|
}
|
|
5085
|
-
return
|
|
5093
|
+
return _chunkJ5VDE42Gjs.writeRunDatasetCsv.call(void 0, {
|
|
5086
5094
|
rows: this.rows,
|
|
5087
5095
|
columns: this.#info.columns,
|
|
5088
5096
|
outPath
|
|
@@ -5281,107 +5289,6 @@ ${hint}`;
|
|
|
5281
5289
|
});
|
|
5282
5290
|
}
|
|
5283
5291
|
|
|
5284
|
-
// ../plays/sandbox-runtime-limits.ts
|
|
5285
|
-
var PLAY_SANDBOX_SIZE_LIMITS = {
|
|
5286
|
-
standard: {
|
|
5287
|
-
memoryGiB: 1,
|
|
5288
|
-
cpu: 1,
|
|
5289
|
-
diskGiB: 3
|
|
5290
|
-
},
|
|
5291
|
-
large: {
|
|
5292
|
-
memoryGiB: 4,
|
|
5293
|
-
cpu: 2,
|
|
5294
|
-
diskGiB: 8
|
|
5295
|
-
},
|
|
5296
|
-
xlarge: {
|
|
5297
|
-
memoryGiB: 8,
|
|
5298
|
-
cpu: 4,
|
|
5299
|
-
diskGiB: 10
|
|
5300
|
-
}
|
|
5301
|
-
};
|
|
5302
|
-
var STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS = {
|
|
5303
|
-
timeoutSeconds: 30 * 60,
|
|
5304
|
-
...PLAY_SANDBOX_SIZE_LIMITS.standard
|
|
5305
|
-
};
|
|
5306
|
-
var MAX_PLAY_SANDBOX_RUNTIME_LIMITS = {
|
|
5307
|
-
timeoutSeconds: 4 * 60 * 60,
|
|
5308
|
-
...PLAY_SANDBOX_SIZE_LIMITS.xlarge
|
|
5309
|
-
};
|
|
5310
|
-
function modalSandboxMemoryLimitGiBForPlay(input) {
|
|
5311
|
-
if (!Object.values(PLAY_SANDBOX_SIZE_LIMITS).some(
|
|
5312
|
-
(profile) => profile.memoryGiB === input.memoryGiB
|
|
5313
|
-
)) {
|
|
5314
|
-
throw new Error(
|
|
5315
|
-
`Unsupported Modal memory reservation: ${input.memoryGiB} GiB.`
|
|
5316
|
-
);
|
|
5317
|
-
}
|
|
5318
|
-
return Math.min(
|
|
5319
|
-
Math.max(4, input.memoryGiB * 2),
|
|
5320
|
-
MAX_PLAY_SANDBOX_RUNTIME_LIMITS.memoryGiB
|
|
5321
|
-
);
|
|
5322
|
-
}
|
|
5323
|
-
function playSandboxSizeForLimits(limits) {
|
|
5324
|
-
return _nullishCoalesce(_optionalChain([Object, 'access', _168 => _168.entries, 'call', _169 => _169(PLAY_SANDBOX_SIZE_LIMITS), 'access', _170 => _170.find, 'call', _171 => _171(
|
|
5325
|
-
([, profile]) => profile.memoryGiB === limits.memoryGiB && profile.cpu === limits.cpu && profile.diskGiB === limits.diskGiB
|
|
5326
|
-
), 'optionalAccess', _172 => _172[0]]), () => ( null));
|
|
5327
|
-
}
|
|
5328
|
-
var supportedPlaySandboxSizes = Object.keys(PLAY_SANDBOX_SIZE_LIMITS).join(
|
|
5329
|
-
", "
|
|
5330
|
-
);
|
|
5331
|
-
function parseTimeout(value) {
|
|
5332
|
-
const match = /^(\d+)\s*([mh])$/i.exec(value.trim());
|
|
5333
|
-
if (!match) return null;
|
|
5334
|
-
const amount = Number(match[1]);
|
|
5335
|
-
if (!Number.isSafeInteger(amount) || amount <= 0) return null;
|
|
5336
|
-
return amount * (match[2].toLowerCase() === "h" ? 3600 : 60);
|
|
5337
|
-
}
|
|
5338
|
-
function validatePlaySandboxRuntimeLimits(value) {
|
|
5339
|
-
if (!playSandboxSizeForLimits(value)) {
|
|
5340
|
-
throw new Error(
|
|
5341
|
-
`Unsupported runtime sandbox resources: cpu=${value.cpu} memoryGiB=${value.memoryGiB} diskGiB=${value.diskGiB}. Use runtime.size with a Deepline prebuilt sandbox. Supported sizes: ${supportedPlaySandboxSizes}.`
|
|
5342
|
-
);
|
|
5343
|
-
}
|
|
5344
|
-
if (!Number.isSafeInteger(value.timeoutSeconds) || value.timeoutSeconds <= 0) {
|
|
5345
|
-
throw new Error(
|
|
5346
|
-
'Invalid runtime sandbox timeout. Use timeout like "90m" or "2h".'
|
|
5347
|
-
);
|
|
5348
|
-
}
|
|
5349
|
-
if (value.timeoutSeconds > MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds) {
|
|
5350
|
-
throw new Error(
|
|
5351
|
-
`Requested runtime timeoutSeconds=${value.timeoutSeconds} exceeds this organisation's maximum ${MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds}.`
|
|
5352
|
-
);
|
|
5353
|
-
}
|
|
5354
|
-
return { ...value };
|
|
5355
|
-
}
|
|
5356
|
-
function resolvePlaySandboxRuntimeLimits(declaration) {
|
|
5357
|
-
const base = STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS;
|
|
5358
|
-
if (!declaration) return { ...base };
|
|
5359
|
-
const unsupportedProperties = Object.keys(declaration).filter(
|
|
5360
|
-
(key) => key !== "timeout" && key !== "size"
|
|
5361
|
-
);
|
|
5362
|
-
if (unsupportedProperties.length > 0) {
|
|
5363
|
-
throw new Error(
|
|
5364
|
-
`Unsupported runtime sandbox option${unsupportedProperties.length === 1 ? "" : "s"}: ${unsupportedProperties.join(", ")}. Use runtime.size with a Deepline prebuilt sandbox. Supported sizes: ${supportedPlaySandboxSizes}.`
|
|
5365
|
-
);
|
|
5366
|
-
}
|
|
5367
|
-
if (declaration.size !== void 0 && !Object.hasOwn(PLAY_SANDBOX_SIZE_LIMITS, declaration.size)) {
|
|
5368
|
-
throw new Error(
|
|
5369
|
-
`Unsupported runtime sandbox size "${String(declaration.size)}". Supported sizes: ${supportedPlaySandboxSizes}.`
|
|
5370
|
-
);
|
|
5371
|
-
}
|
|
5372
|
-
const timeoutSeconds = declaration.timeout ? parseTimeout(declaration.timeout) : base.timeoutSeconds;
|
|
5373
|
-
if (timeoutSeconds === null) {
|
|
5374
|
-
throw new Error(
|
|
5375
|
-
'Invalid runtime sandbox timeout. Use timeout like "90m" or "2h".'
|
|
5376
|
-
);
|
|
5377
|
-
}
|
|
5378
|
-
const size = _nullishCoalesce(declaration.size, () => ( "standard"));
|
|
5379
|
-
return validatePlaySandboxRuntimeLimits({
|
|
5380
|
-
timeoutSeconds,
|
|
5381
|
-
...PLAY_SANDBOX_SIZE_LIMITS[size]
|
|
5382
|
-
});
|
|
5383
|
-
}
|
|
5384
|
-
|
|
5385
5292
|
// ../play-runtime/worker-api-types.ts
|
|
5386
5293
|
var DAYTONA_COMPUTE_PRICING_USD = {
|
|
5387
5294
|
vcpuSecond: 14e-6,
|
|
@@ -5404,7 +5311,7 @@ function roundUsd(amount) {
|
|
|
5404
5311
|
return Number(Math.max(0, amount).toFixed(12));
|
|
5405
5312
|
}
|
|
5406
5313
|
function sandboxSizeMetadata(cpu, memoryGiB) {
|
|
5407
|
-
const entry = Object.entries(PLAY_SANDBOX_SIZE_LIMITS).find(
|
|
5314
|
+
const entry = Object.entries(_chunkYGCKMI5Pjs.PLAY_SANDBOX_SIZE_LIMITS).find(
|
|
5408
5315
|
([, limits]) => limits.cpu === cpu && limits.memoryGiB === memoryGiB
|
|
5409
5316
|
);
|
|
5410
5317
|
return entry ? { sandboxSize: entry[0] } : {};
|
|
@@ -5496,7 +5403,7 @@ var PLAY_RUNNER_STARTUP_GRACE_SECONDS = 4 * 60;
|
|
|
5496
5403
|
var SANDBOX_NETWORK_CUT_MAX_MS = 11 * 6e4;
|
|
5497
5404
|
var RUNNER_GATEWAY_CONNECTION_RETRY_BUDGET_MS = SANDBOX_NETWORK_CUT_MAX_MS + 6e4;
|
|
5498
5405
|
var PLAY_RUNNER_TIMEOUT_SECONDS = 40 * 60;
|
|
5499
|
-
var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS = MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds + (PLAY_RUNNER_TIMEOUT_SECONDS - STANDARD_PLAY_RUNTIME_LIMIT_SECONDS);
|
|
5406
|
+
var WORKFLOW_EXECUTOR_TOKEN_TTL_SECONDS = _chunkYGCKMI5Pjs.MAX_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds + (PLAY_RUNNER_TIMEOUT_SECONDS - STANDARD_PLAY_RUNTIME_LIMIT_SECONDS);
|
|
5500
5407
|
|
|
5501
5408
|
// ../billing/compute-pricing-contract.ts
|
|
5502
5409
|
var COMPUTE_BILLING_MARKUP_MULTIPLIER = 5;
|
|
@@ -5504,7 +5411,7 @@ var DEFAULT_USD_PER_CUSTOMER_CREDIT = 0.1;
|
|
|
5504
5411
|
var DEFAULT_PROVIDER_MARKUP_MULTIPLIER = 1.4;
|
|
5505
5412
|
var MAX_SANDBOX_COMPUTE_BILLING_SECONDS = 60 * 60;
|
|
5506
5413
|
var MAX_SANDBOX_COMPUTE_PROVIDER_COST_USD = Math.max(
|
|
5507
|
-
...Object.values(PLAY_SANDBOX_SIZE_LIMITS).flatMap((profile) => {
|
|
5414
|
+
...Object.values(_chunkYGCKMI5Pjs.PLAY_SANDBOX_SIZE_LIMITS).flatMap((profile) => {
|
|
5508
5415
|
const modalResources = modalSandboxResourcesForPlay(profile);
|
|
5509
5416
|
return [
|
|
5510
5417
|
resolveDaytonaSandboxComputeItem({
|
|
@@ -5551,7 +5458,7 @@ function estimateModalMaximumComputeCredits(limits, elasticMemory = false) {
|
|
|
5551
5458
|
itemId: "estimate",
|
|
5552
5459
|
wallTimeSeconds: maximumPlaySandboxBillingSeconds(limits),
|
|
5553
5460
|
physicalCpuCores: resources.physicalCpuCores,
|
|
5554
|
-
memoryGiB: elasticMemory ? modalSandboxMemoryLimitGiBForPlay(limits) : limits.memoryGiB
|
|
5461
|
+
memoryGiB: elasticMemory ? _chunkYGCKMI5Pjs.modalSandboxMemoryLimitGiBForPlay.call(void 0, limits) : limits.memoryGiB
|
|
5555
5462
|
});
|
|
5556
5463
|
return roundUpCredits(
|
|
5557
5464
|
item.providerCostUsd * COMPUTE_BILLING_MARKUP_MULTIPLIER * DEFAULT_PROVIDER_MARKUP_MULTIPLIER / DEFAULT_USD_PER_CUSTOMER_CREDIT
|
|
@@ -5564,9 +5471,9 @@ function estimateMaximumSandboxComputeCredits(limits, elasticMemory = false) {
|
|
|
5564
5471
|
);
|
|
5565
5472
|
}
|
|
5566
5473
|
function formatNonStandardSandboxRuntimeWarning(limits) {
|
|
5567
|
-
const size = playSandboxSizeForLimits(limits);
|
|
5474
|
+
const size = _chunkYGCKMI5Pjs.playSandboxSizeForLimits.call(void 0, limits);
|
|
5568
5475
|
if (!size) return null;
|
|
5569
|
-
if (size === "standard" && limits.timeoutSeconds <= STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds) {
|
|
5476
|
+
if (size === "standard" && limits.timeoutSeconds <= _chunkYGCKMI5Pjs.STANDARD_PLAY_SANDBOX_RUNTIME_LIMITS.timeoutSeconds) {
|
|
5570
5477
|
return null;
|
|
5571
5478
|
}
|
|
5572
5479
|
const maximumComputeCredits = estimateMaximumSandboxComputeCredits(limits);
|
|
@@ -5878,7 +5785,7 @@ async function discoverDeploymentFiles(input) {
|
|
|
5878
5785
|
}
|
|
5879
5786
|
}
|
|
5880
5787
|
const rootStat = await _promises.stat.call(void 0, input.projectRoot).catch(() => null);
|
|
5881
|
-
if (!_optionalChain([rootStat, 'optionalAccess',
|
|
5788
|
+
if (!_optionalChain([rootStat, 'optionalAccess', _168 => _168.isDirectory, 'call', _169 => _169()])) {
|
|
5882
5789
|
throw new DeeplineManifestError(
|
|
5883
5790
|
`Project root directory does not exist in the repo: ${input.projectRoot}`
|
|
5884
5791
|
);
|
|
@@ -5980,33 +5887,33 @@ function resolveOwnedPlayReferenceName(reference, ownerSlug) {
|
|
|
5980
5887
|
if (parsed.kind !== "org") {
|
|
5981
5888
|
return null;
|
|
5982
5889
|
}
|
|
5983
|
-
const normalizedOwnerSlug = _nullishCoalesce(_optionalChain([ownerSlug, 'optionalAccess',
|
|
5890
|
+
const normalizedOwnerSlug = _nullishCoalesce(_optionalChain([ownerSlug, 'optionalAccess', _170 => _170.trim, 'call', _171 => _171(), 'access', _172 => _172.toLowerCase, 'call', _173 => _173()]), () => ( ""));
|
|
5984
5891
|
return normalizedOwnerSlug && parsed.ownerSlug.trim().toLowerCase() === normalizedOwnerSlug ? parsed.name : null;
|
|
5985
5892
|
}
|
|
5986
5893
|
|
|
5987
5894
|
// ../plays/deploy/run-deployment.ts
|
|
5988
5895
|
var RUN_PLAY_METHOD_NAMES = /* @__PURE__ */ new Set(["runPlay", "runPlayAsync"]);
|
|
5989
5896
|
function isRunPlayReceiver(node) {
|
|
5990
|
-
return
|
|
5897
|
+
return _chunk7UFFWPQ2js.isAstNode.call(void 0, node) && node.type === "Identifier" && typeof node.name === "string" && (node.name === "ctx" || node.name.endsWith("Ctx"));
|
|
5991
5898
|
}
|
|
5992
5899
|
function stringLiteralValue(node) {
|
|
5993
|
-
if (!
|
|
5900
|
+
if (!_chunk7UFFWPQ2js.isAstNode.call(void 0, node)) return null;
|
|
5994
5901
|
if (node.type === "Literal" && typeof node.value === "string") {
|
|
5995
5902
|
return node.value;
|
|
5996
5903
|
}
|
|
5997
5904
|
if (node.type === "TemplateLiteral" && Array.isArray(node.expressions) && node.expressions.length === 0 && Array.isArray(node.quasis) && node.quasis.length === 1) {
|
|
5998
|
-
const cooked = _optionalChain([node, 'access',
|
|
5905
|
+
const cooked = _optionalChain([node, 'access', _174 => _174.quasis, 'access', _175 => _175[0], 'access', _176 => _176.value, 'optionalAccess', _177 => _177.cooked]);
|
|
5999
5906
|
return typeof cooked === "string" ? cooked : null;
|
|
6000
5907
|
}
|
|
6001
5908
|
return null;
|
|
6002
5909
|
}
|
|
6003
5910
|
async function extractRunPlayStringTargets(sourceCode) {
|
|
6004
|
-
const program =
|
|
5911
|
+
const program = _chunk7UFFWPQ2js.parsePlaySourceForAnalysis.call(void 0, sourceCode);
|
|
6005
5912
|
if (!program) return await _asyncNullishCoalesce(await extractWithCompiler(sourceCode), async () => ( []));
|
|
6006
5913
|
const targets = /* @__PURE__ */ new Set();
|
|
6007
5914
|
const visit = (node) => {
|
|
6008
5915
|
const callee = node.callee;
|
|
6009
|
-
if (node.type === "CallExpression" &&
|
|
5916
|
+
if (node.type === "CallExpression" && _chunk7UFFWPQ2js.isAstNode.call(void 0, callee) && callee.type === "MemberExpression" && callee.computed !== true && _chunk7UFFWPQ2js.isAstNode.call(void 0, callee.property) && RUN_PLAY_METHOD_NAMES.has(String(callee.property.name)) && isRunPlayReceiver(callee.object) && Array.isArray(node.arguments)) {
|
|
6010
5917
|
const playRef = stringLiteralValue(node.arguments[1]);
|
|
6011
5918
|
const ownedName = playRef === null ? null : resolveOwnedPlayReferenceName(playRef);
|
|
6012
5919
|
if (ownedName) targets.add(ownedName);
|
|
@@ -6014,7 +5921,7 @@ async function extractRunPlayStringTargets(sourceCode) {
|
|
|
6014
5921
|
for (const [key, value] of Object.entries(node)) {
|
|
6015
5922
|
if (key === "loc") continue;
|
|
6016
5923
|
for (const child of Array.isArray(value) ? value : [value]) {
|
|
6017
|
-
if (
|
|
5924
|
+
if (_chunk7UFFWPQ2js.isAstNode.call(void 0, child)) visit(child);
|
|
6018
5925
|
}
|
|
6019
5926
|
}
|
|
6020
5927
|
};
|
|
@@ -6119,7 +6026,7 @@ async function runDeployment(params, hooks) {
|
|
|
6119
6026
|
`Deployment ${params.deploymentId} has no linked repository and no target directory was given.`
|
|
6120
6027
|
);
|
|
6121
6028
|
}
|
|
6122
|
-
const checkRunName = _optionalChain([state, 'access',
|
|
6029
|
+
const checkRunName = _optionalChain([state, 'access', _178 => _178.checkRunName, 'optionalAccess', _179 => _179.trim, 'call', _180 => _180()]) || void 0;
|
|
6123
6030
|
let mergedPullRequestNumber = null;
|
|
6124
6031
|
let promoted = false;
|
|
6125
6032
|
const setStatus = (input) => client.setStatus({
|
|
@@ -6190,7 +6097,7 @@ async function runDeployment(params, hooks) {
|
|
|
6190
6097
|
finalStatus,
|
|
6191
6098
|
outcomes,
|
|
6192
6099
|
...monitorRunResult(),
|
|
6193
|
-
checkRunId: _optionalChain([checkRun, 'optionalAccess',
|
|
6100
|
+
checkRunId: _optionalChain([checkRun, 'optionalAccess', _181 => _181.checkRunId])
|
|
6194
6101
|
};
|
|
6195
6102
|
};
|
|
6196
6103
|
await _promises.mkdir.call(void 0, hooks.workRoot, { recursive: true });
|
|
@@ -6216,7 +6123,7 @@ async function runDeployment(params, hooks) {
|
|
|
6216
6123
|
const source = await hooks.openSource({ client, deployment });
|
|
6217
6124
|
if (deployment.isProduction) {
|
|
6218
6125
|
try {
|
|
6219
|
-
mergedPullRequestNumber = await _asyncNullishCoalesce(await _optionalChain([source, 'access',
|
|
6126
|
+
mergedPullRequestNumber = await _asyncNullishCoalesce(await _optionalChain([source, 'access', _182 => _182.findMergedPullRequest, 'optionalCall', _183 => _183()]), async () => ( null));
|
|
6220
6127
|
} catch (error) {
|
|
6221
6128
|
console.warn("[deploy-worker] merged PR lookup failed", {
|
|
6222
6129
|
deploymentId: params.deploymentId,
|
|
@@ -6286,15 +6193,15 @@ async function runDeployment(params, hooks) {
|
|
|
6286
6193
|
return finishFailed({
|
|
6287
6194
|
error: input.error,
|
|
6288
6195
|
outcomes: input.outcomes,
|
|
6289
|
-
checkRunId: _optionalChain([checkRun2, 'optionalAccess',
|
|
6196
|
+
checkRunId: _optionalChain([checkRun2, 'optionalAccess', _184 => _184.checkRunId])
|
|
6290
6197
|
});
|
|
6291
6198
|
};
|
|
6292
6199
|
postFailureCheck = async (summary) => await _asyncOptionalChain([(await postCheckOrNull({
|
|
6293
6200
|
conclusion: "failure",
|
|
6294
6201
|
title: "Deploy failed",
|
|
6295
6202
|
summary
|
|
6296
|
-
})), 'optionalAccess', async
|
|
6297
|
-
const deploymentBranch = _optionalChain([deployment, 'access',
|
|
6203
|
+
})), 'optionalAccess', async _185 => _185.checkRunId]);
|
|
6204
|
+
const deploymentBranch = _optionalChain([deployment, 'access', _186 => _186.ref, 'optionalAccess', _187 => _187.startsWith, 'call', _188 => _188("refs/heads/")]) ? deployment.ref.slice("refs/heads/".length) : _nullishCoalesce(_optionalChain([project, 'optionalAccess', _189 => _189.productionBranch]), () => ( null));
|
|
6298
6205
|
const supersedeIfHeadMoved = async () => {
|
|
6299
6206
|
if (!deployment.isProduction || !source.branchHead || !deploymentBranch) {
|
|
6300
6207
|
return null;
|
|
@@ -6308,7 +6215,7 @@ async function runDeployment(params, hooks) {
|
|
|
6308
6215
|
});
|
|
6309
6216
|
await setStatus({
|
|
6310
6217
|
status: "superseded",
|
|
6311
|
-
error: `Branch ${deploymentBranch} is now at ${_nullishCoalesce(_optionalChain([head, 'optionalAccess',
|
|
6218
|
+
error: `Branch ${deploymentBranch} is now at ${_nullishCoalesce(_optionalChain([head, 'optionalAccess', _190 => _190.slice, 'call', _191 => _191(0, 12)]), () => ( "<deleted>"))}; this deployment's commit is no longer the head.`,
|
|
6312
6219
|
buildSeconds: buildSeconds(),
|
|
6313
6220
|
...monitorOutcomes.length > 0 ? { results: monitorResults() } : {},
|
|
6314
6221
|
...head ? { observedHeadSha: head } : {}
|
|
@@ -6424,7 +6331,7 @@ async function runDeployment(params, hooks) {
|
|
|
6424
6331
|
failPlay(file, repoRelativeFile, message);
|
|
6425
6332
|
continue;
|
|
6426
6333
|
}
|
|
6427
|
-
const name = _nullishCoalesce(_optionalChain([result, 'access',
|
|
6334
|
+
const name = _nullishCoalesce(_optionalChain([result, 'access', _192 => _192.playName, 'optionalAccess', _193 => _193.trim, 'call', _194 => _194()]), () => ( ""));
|
|
6428
6335
|
if (!name) {
|
|
6429
6336
|
failPlay(
|
|
6430
6337
|
file,
|
|
@@ -6443,7 +6350,7 @@ async function runDeployment(params, hooks) {
|
|
|
6443
6350
|
continue;
|
|
6444
6351
|
}
|
|
6445
6352
|
seenNames.set(name, file);
|
|
6446
|
-
const disallowed = (_nullishCoalesce(_optionalChain([result, 'access',
|
|
6353
|
+
const disallowed = (_nullishCoalesce(_optionalChain([result, 'access', _195 => _195.artifact, 'access', _196 => _196.importPolicy, 'optionalAccess', _197 => _197.packages]), () => ( []))).map(
|
|
6447
6354
|
(pkg) => typeof pkg === "string" ? pkg : _nullishCoalesce(pkg.name, () => ( ""))
|
|
6448
6355
|
).filter((pkgName) => pkgName && pkgName !== "deepline");
|
|
6449
6356
|
if (disallowed.length > 0) {
|
|
@@ -6527,7 +6434,7 @@ async function runDeployment(params, hooks) {
|
|
|
6527
6434
|
const conflicts = [];
|
|
6528
6435
|
for (const play of ordered) {
|
|
6529
6436
|
const owner = stateByName.get(play.name);
|
|
6530
|
-
if (!project || !_optionalChain([owner, 'optionalAccess',
|
|
6437
|
+
if (!project || !_optionalChain([owner, 'optionalAccess', _198 => _198.playProjectRepo]) || owner.playProjectRepo === _optionalChain([project, 'optionalAccess', _199 => _199.repoFullName]) || owner.playProjectDisabled) {
|
|
6531
6438
|
continue;
|
|
6532
6439
|
}
|
|
6533
6440
|
const message = `The play name "${play.name}" is already deployed from ${owner.playProjectRepo}. A play name belongs to one repository at a time. Rename it here, or disable that deployment target first.`;
|
|
@@ -6550,16 +6457,16 @@ async function runDeployment(params, hooks) {
|
|
|
6550
6457
|
}
|
|
6551
6458
|
const playByName = new Map(ordered.map((play) => [play.name, play]));
|
|
6552
6459
|
const sdkUpdated = (name) => {
|
|
6553
|
-
const artifact = _optionalChain([playByName, 'access',
|
|
6554
|
-
const live = _nullishCoalesce(_optionalChain([stateByName, 'access',
|
|
6460
|
+
const artifact = _optionalChain([playByName, 'access', _200 => _200.get, 'call', _201 => _201(name), 'optionalAccess', _202 => _202.result, 'access', _203 => _203.artifact]);
|
|
6461
|
+
const live = _nullishCoalesce(_optionalChain([stateByName, 'access', _204 => _204.get, 'call', _205 => _205(name), 'optionalAccess', _206 => _206.liveRevision]), () => ( null));
|
|
6555
6462
|
return artifact && isSdkUpdated(live, artifact) ? { sdkUpdated: true } : {};
|
|
6556
6463
|
};
|
|
6557
6464
|
const outcomes = [];
|
|
6558
6465
|
const toRegister = [];
|
|
6559
6466
|
const toPromote = [];
|
|
6560
6467
|
const takeoverWarning = (state2) => {
|
|
6561
|
-
const owner = _optionalChain([state2, 'optionalAccess',
|
|
6562
|
-
if (!owner || owner === _optionalChain([project, 'optionalAccess',
|
|
6468
|
+
const owner = _optionalChain([state2, 'optionalAccess', _207 => _207.playProjectRepo]);
|
|
6469
|
+
if (!owner || owner === _optionalChain([project, 'optionalAccess', _208 => _208.repoFullName])) return void 0;
|
|
6563
6470
|
if (!project) {
|
|
6564
6471
|
return `This play is deployed from ${owner}. This directory deploy made a different revision live, so it is marked drifted from ${owner} until that repository deploys again. If you are done with ${owner}, unlink it (deepline git unlink <id>) and this play is released from it.`;
|
|
6565
6472
|
}
|
|
@@ -6571,8 +6478,8 @@ async function runDeployment(params, hooks) {
|
|
|
6571
6478
|
const artifact = play.result.artifact;
|
|
6572
6479
|
const importsOtherPlays = (_nullishCoalesce(play.result.importedPlayDependencies, () => ( []))).length > 0;
|
|
6573
6480
|
const matches = (revision) => !importsOtherPlays && carriesArtifact(revision, artifact);
|
|
6574
|
-
if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess',
|
|
6575
|
-
if (deployment.isProduction && project && (_optionalChain([playState, 'optionalAccess',
|
|
6481
|
+
if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess', _209 => _209.liveRevision]), () => ( null)))) {
|
|
6482
|
+
if (deployment.isProduction && project && (_optionalChain([playState, 'optionalAccess', _210 => _210.playProjectId]) !== project.id || _optionalChain([playState, 'optionalAccess', _211 => _211.driftFromGit]))) {
|
|
6576
6483
|
toPromote.push({
|
|
6577
6484
|
name: play.name,
|
|
6578
6485
|
revisionId: playState.liveRevision.revisionId
|
|
@@ -6583,12 +6490,12 @@ async function runDeployment(params, hooks) {
|
|
|
6583
6490
|
name: play.name,
|
|
6584
6491
|
file: play.file,
|
|
6585
6492
|
status: "unchanged",
|
|
6586
|
-
version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess',
|
|
6493
|
+
version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess', _212 => _212.liveRevision, 'optionalAccess', _213 => _213.version]), () => ( void 0)),
|
|
6587
6494
|
...warning ? { warning } : {}
|
|
6588
6495
|
});
|
|
6589
6496
|
continue;
|
|
6590
6497
|
}
|
|
6591
|
-
if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess',
|
|
6498
|
+
if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess', _214 => _214.workingRevision]), () => ( null)))) {
|
|
6592
6499
|
if (deployment.isProduction) {
|
|
6593
6500
|
toPromote.push({
|
|
6594
6501
|
name: play.name,
|
|
@@ -6599,7 +6506,7 @@ async function runDeployment(params, hooks) {
|
|
|
6599
6506
|
name: play.name,
|
|
6600
6507
|
file: play.file,
|
|
6601
6508
|
status: "registered",
|
|
6602
|
-
version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess',
|
|
6509
|
+
version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess', _215 => _215.workingRevision, 'optionalAccess', _216 => _216.version]), () => ( void 0)),
|
|
6603
6510
|
...sdkUpdated(play.name),
|
|
6604
6511
|
...warning ? { warning } : {}
|
|
6605
6512
|
});
|
|
@@ -6726,11 +6633,11 @@ async function runDeployment(params, hooks) {
|
|
|
6726
6633
|
const promotion = await client.promote(toPromote);
|
|
6727
6634
|
promoted = true;
|
|
6728
6635
|
for (const outcome of promotion.outcomes) {
|
|
6729
|
-
const previousVersion = _nullishCoalesce(_optionalChain([stateByName, 'access',
|
|
6636
|
+
const previousVersion = _nullishCoalesce(_optionalChain([stateByName, 'access', _217 => _217.get, 'call', _218 => _218(outcome.name), 'optionalAccess', _219 => _219.liveRevision, 'optionalAccess', _220 => _220.version]), () => ( null));
|
|
6730
6637
|
const warning = takeoverWarning(stateByName.get(outcome.name));
|
|
6731
6638
|
outcomes.push({
|
|
6732
6639
|
name: outcome.name,
|
|
6733
|
-
file: _nullishCoalesce(_optionalChain([playByName, 'access',
|
|
6640
|
+
file: _nullishCoalesce(_optionalChain([playByName, 'access', _221 => _221.get, 'call', _222 => _222(outcome.name), 'optionalAccess', _223 => _223.file]), () => ( outcome.name)),
|
|
6734
6641
|
status: outcome.status === "promoted" ? "promoted" : "failed",
|
|
6735
6642
|
version: outcome.version,
|
|
6736
6643
|
...outcome.status === "promoted" && typeof previousVersion === "number" && previousVersion !== outcome.version ? { previousVersion } : {},
|
|
@@ -6742,7 +6649,7 @@ async function runDeployment(params, hooks) {
|
|
|
6742
6649
|
} catch (error) {
|
|
6743
6650
|
if (revokedFinalStatus(error)) throw error;
|
|
6744
6651
|
const body = error instanceof DeployApiError ? error.body : null;
|
|
6745
|
-
const errorText = _nullishCoalesce(_optionalChain([body, 'optionalAccess',
|
|
6652
|
+
const errorText = _nullishCoalesce(_optionalChain([body, 'optionalAccess', _224 => _224.error]), () => ( (error instanceof Error ? error.message : String(error))));
|
|
6746
6653
|
if (/PLAY_DEPLOYMENT_NOT_ACTIVE/.test(errorText)) {
|
|
6747
6654
|
console.info("[deploy-worker] cancelled at promote", {
|
|
6748
6655
|
deploymentId: params.deploymentId
|
|
@@ -6766,9 +6673,9 @@ async function runDeployment(params, hooks) {
|
|
|
6766
6673
|
error: errorText,
|
|
6767
6674
|
outcomes: [
|
|
6768
6675
|
...outcomes,
|
|
6769
|
-
...(_nullishCoalesce(_optionalChain([body, 'optionalAccess',
|
|
6676
|
+
...(_nullishCoalesce(_optionalChain([body, 'optionalAccess', _225 => _225.outcomes]), () => ( toPromote))).map((entry) => ({
|
|
6770
6677
|
name: entry.name,
|
|
6771
|
-
file: _nullishCoalesce(_optionalChain([playByName, 'access',
|
|
6678
|
+
file: _nullishCoalesce(_optionalChain([playByName, 'access', _226 => _226.get, 'call', _227 => _227(entry.name), 'optionalAccess', _228 => _228.file]), () => ( entry.name)),
|
|
6772
6679
|
status: "failed",
|
|
6773
6680
|
error: _nullishCoalesce(("error" in entry ? entry.error : void 0), () => ( errorText))
|
|
6774
6681
|
}))
|
|
@@ -6812,7 +6719,7 @@ async function runDeployment(params, hooks) {
|
|
|
6812
6719
|
});
|
|
6813
6720
|
let checkRunId;
|
|
6814
6721
|
try {
|
|
6815
|
-
checkRunId = await _optionalChain([postFailureCheck, 'optionalCall',
|
|
6722
|
+
checkRunId = await _optionalChain([postFailureCheck, 'optionalCall', _229 => _229(message.slice(0, 2e3))]);
|
|
6816
6723
|
} catch (checkError) {
|
|
6817
6724
|
const revokedAtCheck = revokedFinalStatus(checkError);
|
|
6818
6725
|
if (revokedAtCheck) {
|
|
@@ -6880,7 +6787,7 @@ function renderOutcome(outcome) {
|
|
|
6880
6787
|
function printResult2(input) {
|
|
6881
6788
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6882
6789
|
if (failed) process.exitCode = 1;
|
|
6883
|
-
|
|
6790
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
6884
6791
|
{
|
|
6885
6792
|
deployment: { ...input.deployment, status: input.status },
|
|
6886
6793
|
plays: input.outcomes,
|
|
@@ -6905,7 +6812,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6905
6812
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6906
6813
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6907
6814
|
});
|
|
6908
|
-
const { http, config } =
|
|
6815
|
+
const { http, config } = _chunkLXYDN5FEjs.getAuthedHttpClient.call(void 0, );
|
|
6909
6816
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6910
6817
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6911
6818
|
deliveryId,
|
|
@@ -6932,14 +6839,14 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6932
6839
|
},
|
|
6933
6840
|
{
|
|
6934
6841
|
bundle: bundleDeployPlayFile,
|
|
6935
|
-
fetchImpl:
|
|
6842
|
+
fetchImpl: _chunk33O2JGHEjs.fetchWithDeploymentProtection,
|
|
6936
6843
|
// The plays are already here: "opening" the source is naming it.
|
|
6937
6844
|
openSource: async () => ({
|
|
6938
6845
|
open: async () => ({ repoRoot: root })
|
|
6939
6846
|
}),
|
|
6940
6847
|
target: {
|
|
6941
6848
|
rootDirectory: "",
|
|
6942
|
-
manifestPath: _nullishCoalesce(_optionalChain([options, 'access',
|
|
6849
|
+
manifestPath: _nullishCoalesce(_optionalChain([options, 'access', _230 => _230.manifest, 'optionalAccess', _231 => _231.trim, 'call', _232 => _232()]), () => ( ""))
|
|
6943
6850
|
},
|
|
6944
6851
|
workRoot
|
|
6945
6852
|
}
|
|
@@ -7023,7 +6930,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
7023
6930
|
sourceCode: node.sourceCode,
|
|
7024
6931
|
sourceFiles: node.sourceFiles,
|
|
7025
6932
|
description: _nullishCoalesce(node.playDescription, () => ( void 0)),
|
|
7026
|
-
artifact: _nullishCoalesce(_optionalChain([input, 'access',
|
|
6933
|
+
artifact: _nullishCoalesce(_optionalChain([input, 'access', _233 => _233.prepareArtifact, 'optionalCall', _234 => _234(node.artifact)]), () => ( node.artifact)),
|
|
7027
6934
|
...exportName === "default" ? {} : { exportName },
|
|
7028
6935
|
...importedPlays.length ? { importedPlays } : {},
|
|
7029
6936
|
...input.integrationMode ? { integrationMode: input.integrationMode } : {}
|
|
@@ -7058,7 +6965,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
7058
6965
|
// src/cli/renderers/local-play-execution.ts
|
|
7059
6966
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7060
6967
|
if (options.dryRun) {
|
|
7061
|
-
|
|
6968
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7062
6969
|
return;
|
|
7063
6970
|
}
|
|
7064
6971
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7150,7 +7057,7 @@ async function preflightRunIdFile(path) {
|
|
|
7150
7057
|
`Cannot write --run-id-file destination ${destination}: ${error instanceof Error ? error.message : String(error)}`
|
|
7151
7058
|
);
|
|
7152
7059
|
} finally {
|
|
7153
|
-
await _optionalChain([handle, 'optionalAccess',
|
|
7060
|
+
await _optionalChain([handle, 'optionalAccess', _235 => _235.close, 'call', _236 => _236()]);
|
|
7154
7061
|
await removeRunIdTempFile(tempPath);
|
|
7155
7062
|
}
|
|
7156
7063
|
return destination;
|
|
@@ -7204,9 +7111,9 @@ async function writePlayRunIdFile(destination, runId, options = {}) {
|
|
|
7204
7111
|
} catch (error) {
|
|
7205
7112
|
if (error.code !== "EEXIST") throw error;
|
|
7206
7113
|
const raced = await readRunIdFile(destination);
|
|
7207
|
-
if (_optionalChain([raced, 'optionalAccess',
|
|
7114
|
+
if (_optionalChain([raced, 'optionalAccess', _237 => _237.runId]) !== runId) {
|
|
7208
7115
|
throw new Error(
|
|
7209
|
-
`--run-id-file destination already records run ${_nullishCoalesce(_optionalChain([raced, 'optionalAccess',
|
|
7116
|
+
`--run-id-file destination already records run ${_nullishCoalesce(_optionalChain([raced, 'optionalAccess', _238 => _238.runId]), () => ( "<invalid>"))}; refusing to replace it with ${runId}: ${destination}`
|
|
7210
7117
|
);
|
|
7211
7118
|
}
|
|
7212
7119
|
if (!options.launchConfirmed || raced.launchConfirmed) return;
|
|
@@ -7222,7 +7129,7 @@ async function writePlayRunIdFile(destination, runId, options = {}) {
|
|
|
7222
7129
|
}
|
|
7223
7130
|
}
|
|
7224
7131
|
} finally {
|
|
7225
|
-
await _optionalChain([handle, 'optionalAccess',
|
|
7132
|
+
await _optionalChain([handle, 'optionalAccess', _239 => _239.close, 'call', _240 => _240()]);
|
|
7226
7133
|
await removeRunIdTempFile(tempPath);
|
|
7227
7134
|
}
|
|
7228
7135
|
}
|
|
@@ -7230,7 +7137,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7230
7137
|
const startedAt = Date.now();
|
|
7231
7138
|
try {
|
|
7232
7139
|
const result = run();
|
|
7233
|
-
|
|
7140
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
7234
7141
|
phase,
|
|
7235
7142
|
ms: Date.now() - startedAt,
|
|
7236
7143
|
ok: true,
|
|
@@ -7238,7 +7145,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7238
7145
|
});
|
|
7239
7146
|
return result;
|
|
7240
7147
|
} catch (error) {
|
|
7241
|
-
|
|
7148
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
7242
7149
|
phase,
|
|
7243
7150
|
ms: Date.now() - startedAt,
|
|
7244
7151
|
ok: false,
|
|
@@ -7291,10 +7198,10 @@ function playReferenceMatchTokens(value) {
|
|
|
7291
7198
|
return normalizePlayReferenceForMatch(value).split("-").filter((token) => token.length > 1 && token !== "to" && token !== "and");
|
|
7292
7199
|
}
|
|
7293
7200
|
function playSuggestionReference(play) {
|
|
7294
|
-
if (_optionalChain([play, 'access',
|
|
7201
|
+
if (_optionalChain([play, 'access', _241 => _241.reference, 'optionalAccess', _242 => _242.trim, 'call', _243 => _243()])) {
|
|
7295
7202
|
return play.reference.trim();
|
|
7296
7203
|
}
|
|
7297
|
-
const ownerSlug = _optionalChain([play, 'access',
|
|
7204
|
+
const ownerSlug = _optionalChain([play, 'access', _244 => _244.ownerSlug, 'optionalAccess', _245 => _245.trim, 'call', _246 => _246()]);
|
|
7298
7205
|
return ownerSlug ? `${ownerSlug}/${play.name}` : play.name;
|
|
7299
7206
|
}
|
|
7300
7207
|
function scorePlayReferenceSuggestion(requested, play) {
|
|
@@ -7310,8 +7217,8 @@ function scorePlayReferenceSuggestion(requested, play) {
|
|
|
7310
7217
|
const reference = playSuggestionReference(play);
|
|
7311
7218
|
const referenceNorm = normalizePlayReferenceForMatch(reference);
|
|
7312
7219
|
const nameNorm = normalizePlayReferenceForMatch(play.name);
|
|
7313
|
-
const candidateNamespace = reference.includes("/") ? _optionalChain([reference, 'access',
|
|
7314
|
-
const requestedNamespace = _nullishCoalesce(_optionalChain([parsed, 'access',
|
|
7220
|
+
const candidateNamespace = reference.includes("/") ? _optionalChain([reference, 'access', _247 => _247.split, 'call', _248 => _248("/"), 'access', _249 => _249[0], 'optionalAccess', _250 => _250.toLowerCase, 'call', _251 => _251()]) : null;
|
|
7221
|
+
const requestedNamespace = _nullishCoalesce(_optionalChain([parsed, 'access', _252 => _252.ownerSlug, 'optionalAccess', _253 => _253.toLowerCase, 'call', _254 => _254()]), () => ( null));
|
|
7315
7222
|
const aliases = (_nullishCoalesce(play.aliases, () => ( []))).map(normalizePlayReferenceForMatch);
|
|
7316
7223
|
const searchable = [referenceNorm, nameNorm, ...aliases].filter(Boolean);
|
|
7317
7224
|
const requestedTokens = playReferenceMatchTokens(requestedName);
|
|
@@ -7428,16 +7335,16 @@ async function buildPlayReferenceNotFoundError(input) {
|
|
|
7428
7335
|
suggestions = [];
|
|
7429
7336
|
}
|
|
7430
7337
|
const sourceError = input.sourceError instanceof _chunkDIAWYWT5js.DeeplineError ? input.sourceError : null;
|
|
7431
|
-
const code = _optionalChain([sourceError, 'optionalAccess',
|
|
7338
|
+
const code = _optionalChain([sourceError, 'optionalAccess', _255 => _255.code]) && sourceError.code !== "API_ERROR" ? sourceError.code : "PLAY_NOT_FOUND";
|
|
7432
7339
|
return new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
7433
7340
|
buildPlayReferenceNotFoundMessage({
|
|
7434
7341
|
requested: input.target,
|
|
7435
7342
|
command: input.command,
|
|
7436
7343
|
suggestions
|
|
7437
7344
|
}),
|
|
7438
|
-
_nullishCoalesce(_optionalChain([sourceError, 'optionalAccess',
|
|
7345
|
+
_nullishCoalesce(_optionalChain([sourceError, 'optionalAccess', _256 => _256.statusCode]), () => ( 404)),
|
|
7439
7346
|
code,
|
|
7440
|
-
_optionalChain([sourceError, 'optionalAccess',
|
|
7347
|
+
_optionalChain([sourceError, 'optionalAccess', _257 => _257.details])
|
|
7441
7348
|
);
|
|
7442
7349
|
}
|
|
7443
7350
|
async function isMissingRunPlayReferenceError(input) {
|
|
@@ -7489,7 +7396,7 @@ function formatPlayReference(play) {
|
|
|
7489
7396
|
if (play.reference) {
|
|
7490
7397
|
return play.reference;
|
|
7491
7398
|
}
|
|
7492
|
-
const ownerSlug = _optionalChain([play, 'access',
|
|
7399
|
+
const ownerSlug = _optionalChain([play, 'access', _258 => _258.ownerSlug, 'optionalAccess', _259 => _259.trim, 'call', _260 => _260()]) || "org";
|
|
7493
7400
|
return `${ownerSlug}/${play.name}`;
|
|
7494
7401
|
}
|
|
7495
7402
|
function formatPlayListReference(play) {
|
|
@@ -7519,7 +7426,7 @@ function materializeRemotePlaySource(input) {
|
|
|
7519
7426
|
return null;
|
|
7520
7427
|
}
|
|
7521
7428
|
const entrySource = input.source.files[input.source.entryFile];
|
|
7522
|
-
if (!_optionalChain([entrySource, 'optionalAccess',
|
|
7429
|
+
if (!_optionalChain([entrySource, 'optionalAccess', _261 => _261.trim, 'call', _262 => _262()])) {
|
|
7523
7430
|
return null;
|
|
7524
7431
|
}
|
|
7525
7432
|
const files = Object.entries(input.source.files);
|
|
@@ -7598,8 +7505,8 @@ async function ensureEditableRemotePlay(client, target) {
|
|
|
7598
7505
|
return detail;
|
|
7599
7506
|
}
|
|
7600
7507
|
function writeInlinePlay(code) {
|
|
7601
|
-
const filePath = _path.resolve.call(void 0,
|
|
7602
|
-
const source =
|
|
7508
|
+
const filePath = _path.resolve.call(void 0, _chunk7UFFWPQ2js.INLINE_PLAY_FILE);
|
|
7509
|
+
const source = _chunk7UFFWPQ2js.inlinePlaySource.call(void 0, code);
|
|
7603
7510
|
try {
|
|
7604
7511
|
_fs.writeFileSync.call(void 0, filePath, source, { flag: "wx" });
|
|
7605
7512
|
} catch (error) {
|
|
@@ -7618,7 +7525,7 @@ function buildMissingDefinePlayError(filePath) {
|
|
|
7618
7525
|
);
|
|
7619
7526
|
}
|
|
7620
7527
|
function extractPlayName(code, filePath) {
|
|
7621
|
-
const definedPlayName =
|
|
7528
|
+
const definedPlayName = _chunk7UFFWPQ2js.extractDefinedPlayName.call(void 0, code, filePath);
|
|
7622
7529
|
if (definedPlayName) {
|
|
7623
7530
|
return definedPlayName;
|
|
7624
7531
|
}
|
|
@@ -7847,7 +7754,7 @@ function unresolvedPackagedFilesMessage(node) {
|
|
|
7847
7754
|
const details = node.unresolvedFileReferences.map((unresolved) => `${unresolved.sourceFragment}: ${unresolved.message}`).join("; ");
|
|
7848
7755
|
return `Failed to package local deepline.csv(...) files in ${node.filePath}: ${details}`;
|
|
7849
7756
|
}
|
|
7850
|
-
async function collectBundledPlayGraph(entryFile, profile = null, entryExportName =
|
|
7757
|
+
async function collectBundledPlayGraph(entryFile, profile = null, entryExportName = _chunk7UFFWPQ2js.PLAY_DEFAULT_EXPORT, options = {}) {
|
|
7851
7758
|
const playBundler = await loadPlayBundler();
|
|
7852
7759
|
const nodes = /* @__PURE__ */ new Map();
|
|
7853
7760
|
const diagnostics = [];
|
|
@@ -7861,7 +7768,7 @@ async function collectBundledPlayGraph(entryFile, profile = null, entryExportNam
|
|
|
7861
7768
|
const bundleResult = await playBundler.bundlePlayFile(absolutePath, {
|
|
7862
7769
|
target: artifactKind,
|
|
7863
7770
|
...options.cache === false ? { cache: false } : {},
|
|
7864
|
-
...absolutePath === rootPath && entryExportName !==
|
|
7771
|
+
...absolutePath === rootPath && entryExportName !== _chunk7UFFWPQ2js.PLAY_DEFAULT_EXPORT ? { exportName: entryExportName } : {}
|
|
7865
7772
|
});
|
|
7866
7773
|
if (bundleResult.success === false) {
|
|
7867
7774
|
diagnostics.push(
|
|
@@ -7912,7 +7819,7 @@ async function compileBundledPlayGraphManifests(client, graph) {
|
|
|
7912
7819
|
const child = graph.nodes.get(
|
|
7913
7820
|
normalizePlayPath(dependency.filePath)
|
|
7914
7821
|
);
|
|
7915
|
-
if (!_optionalChain([child, 'optionalAccess',
|
|
7822
|
+
if (!_optionalChain([child, 'optionalAccess', _263 => _263.compilerManifest])) {
|
|
7916
7823
|
throw new Error(
|
|
7917
7824
|
`Missing compiler manifest for imported dependency ${dependency.filePath}.`
|
|
7918
7825
|
);
|
|
@@ -7991,7 +7898,7 @@ function formatTimestamp(value) {
|
|
|
7991
7898
|
return date.toISOString();
|
|
7992
7899
|
}
|
|
7993
7900
|
function isoTimestamp(value) {
|
|
7994
|
-
return _nullishCoalesce(_optionalChain([timestampDate, 'call',
|
|
7901
|
+
return _nullishCoalesce(_optionalChain([timestampDate, 'call', _264 => _264(value), 'optionalAccess', _265 => _265.toISOString, 'call', _266 => _266()]), () => ( null));
|
|
7995
7902
|
}
|
|
7996
7903
|
function formatRunLine(run) {
|
|
7997
7904
|
const credits = typeof run.billingTotalCredits === "number" && Number.isFinite(run.billingTotalCredits) ? `${formatCreditAmount2(run.billingTotalCredits)} credits` : "\u2014";
|
|
@@ -7999,7 +7906,7 @@ function formatRunLine(run) {
|
|
|
7999
7906
|
}
|
|
8000
7907
|
function playStatusErrorText(status) {
|
|
8001
7908
|
const chunks = [];
|
|
8002
|
-
const progressError = _optionalChain([status, 'access',
|
|
7909
|
+
const progressError = _optionalChain([status, 'access', _267 => _267.progress, 'optionalAccess', _268 => _268.error]);
|
|
8003
7910
|
if (typeof progressError === "string" && progressError.trim()) {
|
|
8004
7911
|
chunks.push(progressError.trim());
|
|
8005
7912
|
}
|
|
@@ -8025,7 +7932,7 @@ function playStatusErrorText(status) {
|
|
|
8025
7932
|
function isRetryablePendingStartFailure(status) {
|
|
8026
7933
|
if (status.status !== "failed") return false;
|
|
8027
7934
|
if (status.runId && status.runId !== "pending") return false;
|
|
8028
|
-
return
|
|
7935
|
+
return _chunkGSULE54Ljs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8029
7936
|
}
|
|
8030
7937
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
8031
7938
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -8074,13 +7981,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
8074
7981
|
}, _class);
|
|
8075
7982
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8076
7983
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8077
|
-
if (!
|
|
7984
|
+
if (!_chunkGSULE54Ljs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8078
7985
|
return false;
|
|
8079
7986
|
}
|
|
8080
|
-
if (
|
|
7987
|
+
if (_chunkGSULE54Ljs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8081
7988
|
return true;
|
|
8082
7989
|
}
|
|
8083
|
-
return state.verbose === true &&
|
|
7990
|
+
return state.verbose === true && _chunkGSULE54Ljs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8084
7991
|
}
|
|
8085
7992
|
function getEventPayload(event) {
|
|
8086
7993
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8103,7 +8010,7 @@ function getRunIdFromLiveEvent(event) {
|
|
|
8103
8010
|
if (typeof directRunId === "string" && directRunId.trim()) {
|
|
8104
8011
|
return directRunId;
|
|
8105
8012
|
}
|
|
8106
|
-
const packageRunId = _optionalChain([getRunRecordFromPackage, 'call',
|
|
8013
|
+
const packageRunId = _optionalChain([getRunRecordFromPackage, 'call', _269 => _269(payload), 'optionalAccess', _270 => _270.id]);
|
|
8107
8014
|
return typeof packageRunId === "string" && packageRunId.trim() ? packageRunId : null;
|
|
8108
8015
|
}
|
|
8109
8016
|
function eventConfirmsPlayRunLaunch(event) {
|
|
@@ -8124,19 +8031,19 @@ function getStatusFromLiveEvent(event) {
|
|
|
8124
8031
|
return null;
|
|
8125
8032
|
}
|
|
8126
8033
|
const payload = getEventPayload(event);
|
|
8127
|
-
return _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([getRunRecordFromPackage, 'call',
|
|
8034
|
+
return _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([getRunRecordFromPackage, 'call', _271 => _271(payload), 'optionalAccess', _272 => _272.status]))));
|
|
8128
8035
|
}
|
|
8129
8036
|
function readLiveRunField(event, field) {
|
|
8130
8037
|
const payload = getEventPayload(event);
|
|
8131
8038
|
if (field === "waitKind") {
|
|
8132
|
-
const wait = _nullishCoalesce(payload.wait, () => ( _optionalChain([getRunRecordFromPackage, 'call',
|
|
8039
|
+
const wait = _nullishCoalesce(payload.wait, () => ( _optionalChain([getRunRecordFromPackage, 'call', _273 => _273(payload), 'optionalAccess', _274 => _274.wait])));
|
|
8133
8040
|
if (wait && typeof wait === "object" && !Array.isArray(wait)) {
|
|
8134
8041
|
const kind = wait.kind;
|
|
8135
8042
|
if (typeof kind === "string" && kind.trim()) return kind.trim();
|
|
8136
8043
|
}
|
|
8137
8044
|
}
|
|
8138
8045
|
const run = getRunRecordFromPackage(payload);
|
|
8139
|
-
const records = [payload, payload.progress, run, _optionalChain([run, 'optionalAccess',
|
|
8046
|
+
const records = [payload, payload.progress, run, _optionalChain([run, 'optionalAccess', _275 => _275.progress])].filter(
|
|
8140
8047
|
(value) => Boolean(value && typeof value === "object" && !Array.isArray(value))
|
|
8141
8048
|
);
|
|
8142
8049
|
for (const record3 of records) {
|
|
@@ -8151,7 +8058,7 @@ function getLiveRunStringField(event, field) {
|
|
|
8151
8058
|
function getLiveRunActivity(event) {
|
|
8152
8059
|
const payload = getEventPayload(event);
|
|
8153
8060
|
const run = getRunRecordFromPackage(payload);
|
|
8154
|
-
const candidates = [payload.activity, _optionalChain([run, 'optionalAccess',
|
|
8061
|
+
const candidates = [payload.activity, _optionalChain([run, 'optionalAccess', _276 => _276.activity])];
|
|
8155
8062
|
for (const candidate of candidates) {
|
|
8156
8063
|
if (candidate && typeof candidate === "object" && !Array.isArray(candidate) && typeof candidate.summary === "string" && candidate.observation && typeof candidate.observation === "object") {
|
|
8157
8064
|
return candidate;
|
|
@@ -8166,9 +8073,9 @@ function getRunLifecycleHint(input) {
|
|
|
8166
8073
|
return null;
|
|
8167
8074
|
}
|
|
8168
8075
|
const activity = getLiveRunActivity(input.event);
|
|
8169
|
-
const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess',
|
|
8076
|
+
const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _277 => _277.observation, 'access', _278 => _278.state, 'access', _279 => _279.kind]) === "active" && activity.observation.target.kind !== "runner";
|
|
8170
8077
|
const inspect = `'deepline runs get ${runId} --full'`;
|
|
8171
|
-
const sleepState = _optionalChain([activity, 'optionalAccess',
|
|
8078
|
+
const sleepState = _optionalChain([activity, 'optionalAccess', _280 => _280.observation, 'access', _281 => _281.state, 'access', _282 => _282.kind]) === "scheduled" && activity.observation.state.reason === "sleep" ? activity.observation.state : null;
|
|
8172
8079
|
if (status === "waiting" && (sleepState !== null || getLiveRunStringField(input.event, "waitKind") === "sleep")) {
|
|
8173
8080
|
const recordedWake = readLiveRunField(input.event, "waitUntil");
|
|
8174
8081
|
const projectedWake = sleepState && sleepState.resumeAt > activity.observation.observedAt ? sleepState.resumeAt : null;
|
|
@@ -8179,7 +8086,7 @@ function getRunLifecycleHint(input) {
|
|
|
8179
8086
|
};
|
|
8180
8087
|
}
|
|
8181
8088
|
const typedEventWaitKind = getLiveRunStringField(input.event, "waitKind");
|
|
8182
|
-
const activityEventWait = _optionalChain([activity, 'optionalAccess',
|
|
8089
|
+
const activityEventWait = _optionalChain([activity, 'optionalAccess', _283 => _283.observation, 'access', _284 => _284.state, 'access', _285 => _285.kind]) === "waiting" && activity.observation.state.reason.kind === "external_event";
|
|
8183
8090
|
if (status === "waiting" && (typedEventWaitKind === "integration_event" || typedEventWaitKind === "integration_event_batch" || activityEventWait)) {
|
|
8184
8091
|
return {
|
|
8185
8092
|
signature: [
|
|
@@ -8252,12 +8159,12 @@ function getFinalStatusFromLiveEvent(event) {
|
|
|
8252
8159
|
}
|
|
8253
8160
|
const payload = getEventPayload(event);
|
|
8254
8161
|
const packageRun = getRunRecordFromPackage(payload);
|
|
8255
|
-
const status = _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([packageRun, 'optionalAccess',
|
|
8162
|
+
const status = _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([packageRun, 'optionalAccess', _286 => _286.status]))));
|
|
8256
8163
|
if (status !== "completed" && status !== "failed" && status !== "cancelled") {
|
|
8257
8164
|
return null;
|
|
8258
8165
|
}
|
|
8259
|
-
const runId = typeof payload.runId === "string" ? payload.runId : typeof _optionalChain([packageRun, 'optionalAccess',
|
|
8260
|
-
const error = typeof payload.error === "string" ? payload.error : typeof _optionalChain([packageRun, 'optionalAccess',
|
|
8166
|
+
const runId = typeof payload.runId === "string" ? payload.runId : typeof _optionalChain([packageRun, 'optionalAccess', _287 => _287.id]) === "string" ? packageRun.id : "";
|
|
8167
|
+
const error = typeof payload.error === "string" ? payload.error : typeof _optionalChain([packageRun, 'optionalAccess', _288 => _288.error]) === "string" ? packageRun.error : void 0;
|
|
8261
8168
|
return {
|
|
8262
8169
|
...payload,
|
|
8263
8170
|
runId,
|
|
@@ -8492,7 +8399,7 @@ function getProgressLinesFromLiveEvent(event) {
|
|
|
8492
8399
|
(count2) => typeof count2 === "number" && Number.isSafeInteger(count2) && count2 >= 0
|
|
8493
8400
|
)) {
|
|
8494
8401
|
lines.push(
|
|
8495
|
-
`progress calls: ${formatInteger(callCounts[0])} logical, ${formatInteger(callCounts[1])} provider requests, ${formatInteger(callCounts[2])} provider 429s${_optionalChain([calls, 'optionalAccess',
|
|
8402
|
+
`progress calls: ${formatInteger(callCounts[0])} logical, ${formatInteger(callCounts[1])} provider requests, ${formatInteger(callCounts[2])} provider 429s${_optionalChain([calls, 'optionalAccess', _289 => _289.confirmed]) === true ? "" : " (observed)"}`
|
|
8496
8403
|
);
|
|
8497
8404
|
}
|
|
8498
8405
|
const rowOutcomes = readRowOutcomeSummary({
|
|
@@ -8543,7 +8450,7 @@ function getRunningHeartbeatLine(input) {
|
|
|
8543
8450
|
return null;
|
|
8544
8451
|
}
|
|
8545
8452
|
const activity = getLiveRunActivity(input.event);
|
|
8546
|
-
const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess',
|
|
8453
|
+
const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _290 => _290.observation, 'access', _291 => _291.state, 'access', _292 => _292.kind]) === "active" && activity.observation.target.kind !== "runner";
|
|
8547
8454
|
if (activity && activity.classified !== false && !activityConflictsWithDurableWait) {
|
|
8548
8455
|
return `activity ${input.playName}: ${activity.summary}`;
|
|
8549
8456
|
}
|
|
@@ -8576,13 +8483,13 @@ function printPlayStatusHeartbeat(input) {
|
|
|
8576
8483
|
input.progress.writeLine(line);
|
|
8577
8484
|
}
|
|
8578
8485
|
function resolveRunPlayName(status, runId) {
|
|
8579
|
-
const packaged = _optionalChain([status, 'access',
|
|
8486
|
+
const packaged = _optionalChain([status, 'access', _293 => _293.package, 'optionalAccess', _294 => _294.run, 'optionalAccess', _295 => _295.playName]);
|
|
8580
8487
|
if (typeof packaged === "string" && packaged.trim()) return packaged.trim();
|
|
8581
|
-
return _nullishCoalesce(_nullishCoalesce(extractRunPlayName(status), () => ( _optionalChain([/^play\/(.+)\/(?:run|webhook)\//, 'access',
|
|
8488
|
+
return _nullishCoalesce(_nullishCoalesce(extractRunPlayName(status), () => ( _optionalChain([/^play\/(.+)\/(?:run|webhook)\//, 'access', _296 => _296.exec, 'call', _297 => _297(runId), 'optionalAccess', _298 => _298[1]]))), () => ( null));
|
|
8582
8489
|
}
|
|
8583
8490
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
8584
8491
|
if (open2 && dashboardUrl) {
|
|
8585
|
-
|
|
8492
|
+
_chunkLXYDN5FEjs.openInBrowser.call(void 0, dashboardUrl);
|
|
8586
8493
|
}
|
|
8587
8494
|
}
|
|
8588
8495
|
function printPlayLogLines(input) {
|
|
@@ -8634,7 +8541,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8634
8541
|
const confirmAdmission = async () => {
|
|
8635
8542
|
if (admissionConfirmed) return;
|
|
8636
8543
|
admissionConfirmed = true;
|
|
8637
|
-
await _optionalChain([input, 'access',
|
|
8544
|
+
await _optionalChain([input, 'access', _299 => _299.onRunAdmitted, 'optionalCall', _300 => _300(input.workflowId)]);
|
|
8638
8545
|
};
|
|
8639
8546
|
const withDashboardUrl = (status) => input.dashboardUrl ? { ...status, dashboardUrl: input.dashboardUrl } : status;
|
|
8640
8547
|
const finishTerminalStatus = async (status) => {
|
|
@@ -8659,7 +8566,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8659
8566
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8660
8567
|
});
|
|
8661
8568
|
} catch (error) {
|
|
8662
|
-
if (
|
|
8569
|
+
if (_chunkGSULE54Ljs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8663
8570
|
return null;
|
|
8664
8571
|
}
|
|
8665
8572
|
throw error;
|
|
@@ -8739,9 +8646,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8739
8646
|
signal: controller.signal,
|
|
8740
8647
|
deferLogs: !input.emitLogs,
|
|
8741
8648
|
omitTerminalLogs: !input.emitLogs,
|
|
8742
|
-
...
|
|
8649
|
+
..._chunkW4HIOBQQjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8743
8650
|
onPoll: (observation) => {
|
|
8744
|
-
|
|
8651
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
8745
8652
|
phase: "play_watch_poll",
|
|
8746
8653
|
workflowId: input.workflowId,
|
|
8747
8654
|
ms: observation.durationMs,
|
|
@@ -8755,7 +8662,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8755
8662
|
full: input.fullJson,
|
|
8756
8663
|
billing: false,
|
|
8757
8664
|
onStatus: async (status) => {
|
|
8758
|
-
|
|
8665
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
8759
8666
|
phase: "play_watch_terminal_status",
|
|
8760
8667
|
workflowId: input.workflowId,
|
|
8761
8668
|
full: input.fullJson === true
|
|
@@ -8825,7 +8732,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8825
8732
|
});
|
|
8826
8733
|
} catch (error) {
|
|
8827
8734
|
if (!(error instanceof _chunkJDMR33HSjs.CliPlayAdmissionUnsupportedError)) throw error;
|
|
8828
|
-
await
|
|
8735
|
+
await _chunkJMCTNS6Sjs.checkPlayRunCompatibility.call(void 0,
|
|
8829
8736
|
input.client.baseUrl,
|
|
8830
8737
|
input.maintenancePolicy
|
|
8831
8738
|
);
|
|
@@ -8856,8 +8763,8 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8856
8763
|
"PLAY_START_MISSING_RUN_ID"
|
|
8857
8764
|
);
|
|
8858
8765
|
}
|
|
8859
|
-
await _optionalChain([input, 'access',
|
|
8860
|
-
await _optionalChain([input, 'access',
|
|
8766
|
+
await _optionalChain([input, 'access', _301 => _301.onRunStarted, 'optionalCall', _302 => _302(workflowId)]);
|
|
8767
|
+
await _optionalChain([input, 'access', _303 => _303.onRunAdmitted, 'optionalCall', _304 => _304(workflowId)]);
|
|
8861
8768
|
const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => ( _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, input.client.baseUrl, input.playName)));
|
|
8862
8769
|
const rateLimited = _nullishCoalesce(started.rateLimited, () => ( null));
|
|
8863
8770
|
if (!input.jsonOutput) {
|
|
@@ -8873,7 +8780,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8873
8780
|
}
|
|
8874
8781
|
openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
|
|
8875
8782
|
input.progress.phase("running");
|
|
8876
|
-
|
|
8783
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
8877
8784
|
phase: "cli.play_start_admitted",
|
|
8878
8785
|
ms: Date.now() - startedAt,
|
|
8879
8786
|
ok: true,
|
|
@@ -8882,15 +8789,15 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8882
8789
|
inlineCompatibility
|
|
8883
8790
|
});
|
|
8884
8791
|
const initialTerminal = readRecord(started.finalStatus);
|
|
8885
|
-
const initialPackage = _nullishCoalesce(readRecord(_optionalChain([initialTerminal, 'optionalAccess',
|
|
8886
|
-
const initialRun = readRecord(_optionalChain([initialPackage, 'optionalAccess',
|
|
8887
|
-
if (initialTerminal && _optionalChain([initialRun, 'optionalAccess',
|
|
8792
|
+
const initialPackage = _nullishCoalesce(readRecord(_optionalChain([initialTerminal, 'optionalAccess', _305 => _305.package])), () => ( initialTerminal));
|
|
8793
|
+
const initialRun = readRecord(_optionalChain([initialPackage, 'optionalAccess', _306 => _306.run]));
|
|
8794
|
+
if (initialTerminal && _optionalChain([initialRun, 'optionalAccess', _307 => _307.id]) === workflowId && initialRun.status === "completed" && (initialTerminal.runId === void 0 || initialTerminal.runId === workflowId) && (initialTerminal.status === void 0 || initialTerminal.status === "completed") && input.fullJson === true && started.finalStatusView === "full") {
|
|
8888
8795
|
assertPlayWaitNotTimedOut({
|
|
8889
8796
|
workflowId,
|
|
8890
8797
|
startedAt,
|
|
8891
8798
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8892
8799
|
});
|
|
8893
|
-
const initialStatus =
|
|
8800
|
+
const initialStatus = _chunkGSULE54Ljs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8894
8801
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8895
8802
|
client: input.client,
|
|
8896
8803
|
status: initialStatus,
|
|
@@ -8898,7 +8805,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8898
8805
|
jsonOutput: input.jsonOutput,
|
|
8899
8806
|
fromDurableStatus: true
|
|
8900
8807
|
});
|
|
8901
|
-
|
|
8808
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
8902
8809
|
phase: "play_watch_terminal_status",
|
|
8903
8810
|
workflowId,
|
|
8904
8811
|
full: true,
|
|
@@ -8953,7 +8860,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8953
8860
|
);
|
|
8954
8861
|
} catch (error) {
|
|
8955
8862
|
if (error instanceof _chunkJDMR33HSjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
8956
|
-
await
|
|
8863
|
+
await _chunkJMCTNS6Sjs.checkPlayRunCompatibility.call(void 0,
|
|
8957
8864
|
input.client.baseUrl,
|
|
8958
8865
|
input.maintenancePolicy
|
|
8959
8866
|
);
|
|
@@ -8980,7 +8887,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8980
8887
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
8981
8888
|
);
|
|
8982
8889
|
}
|
|
8983
|
-
|
|
8890
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
8984
8891
|
phase: "cli.play_start_stream_retry",
|
|
8985
8892
|
ms: 0,
|
|
8986
8893
|
ok: true,
|
|
@@ -9001,7 +8908,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9001
8908
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9002
8909
|
);
|
|
9003
8910
|
}
|
|
9004
|
-
|
|
8911
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9005
8912
|
phase: "cli.play_start_stream_retry",
|
|
9006
8913
|
ms: 0,
|
|
9007
8914
|
ok: true,
|
|
@@ -9035,7 +8942,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9035
8942
|
let timedOut = false;
|
|
9036
8943
|
let emittedDashboardUrl = false;
|
|
9037
8944
|
let lastKnownWorkflowId = "";
|
|
9038
|
-
let launchedRevisionId = _optionalChain([input, 'access',
|
|
8945
|
+
let launchedRevisionId = _optionalChain([input, 'access', _308 => _308.request, 'access', _309 => _309.revisionId, 'optionalAccess', _310 => _310.trim, 'call', _311 => _311()]) || null;
|
|
9039
8946
|
let eventCount = 0;
|
|
9040
8947
|
let firstRunIdMs = null;
|
|
9041
8948
|
let launchConfirmed = false;
|
|
@@ -9045,8 +8952,8 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9045
8952
|
const confirmAdmission = async (runId) => {
|
|
9046
8953
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9047
8954
|
launchConfirmed = true;
|
|
9048
|
-
await _optionalChain([input, 'access',
|
|
9049
|
-
|
|
8955
|
+
await _optionalChain([input, 'access', _312 => _312.onRunAdmitted, 'optionalCall', _313 => _313(runId)]);
|
|
8956
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9050
8957
|
phase: "cli.play_start_admitted",
|
|
9051
8958
|
ms: Date.now() - startedAt,
|
|
9052
8959
|
ok: true,
|
|
@@ -9080,7 +8987,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9080
8987
|
full: input.fullJson
|
|
9081
8988
|
});
|
|
9082
8989
|
} catch (error) {
|
|
9083
|
-
if (
|
|
8990
|
+
if (_chunkGSULE54Ljs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9084
8991
|
return null;
|
|
9085
8992
|
}
|
|
9086
8993
|
throw error;
|
|
@@ -9106,7 +9013,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9106
9013
|
if (eventRevisionId) {
|
|
9107
9014
|
launchedRevisionId = eventRevisionId;
|
|
9108
9015
|
}
|
|
9109
|
-
const eventRateLimited = _optionalChain([getEventPayload, 'call',
|
|
9016
|
+
const eventRateLimited = _optionalChain([getEventPayload, 'call', _314 => _314(event), 'optionalAccess', _315 => _315.rateLimited]);
|
|
9110
9017
|
if (eventRateLimited && typeof eventRateLimited === "object") {
|
|
9111
9018
|
notice.value = eventRateLimited;
|
|
9112
9019
|
}
|
|
@@ -9116,7 +9023,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9116
9023
|
lastKnownWorkflowId = eventRunId;
|
|
9117
9024
|
firstRunIdMs ??= Date.now() - startedAt;
|
|
9118
9025
|
if (runStartedNow) {
|
|
9119
|
-
await _optionalChain([input, 'access',
|
|
9026
|
+
await _optionalChain([input, 'access', _316 => _316.onRunStarted, 'optionalCall', _317 => _317(eventRunId)]);
|
|
9120
9027
|
}
|
|
9121
9028
|
}
|
|
9122
9029
|
if (!launchConfirmed && eventConfirmsPlayRunLaunch(event) && eventRunId === lastKnownWorkflowId) {
|
|
@@ -9218,7 +9125,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9218
9125
|
};
|
|
9219
9126
|
}
|
|
9220
9127
|
if (!canonicalTerminal) {
|
|
9221
|
-
|
|
9128
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9222
9129
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9223
9130
|
ms: Date.now() - startedAt,
|
|
9224
9131
|
ok: true,
|
|
@@ -9239,14 +9146,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9239
9146
|
fromDurableStatus
|
|
9240
9147
|
}) : canonicalTerminal;
|
|
9241
9148
|
if (input.fullJson === true) {
|
|
9242
|
-
|
|
9149
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9243
9150
|
phase: "play_watch_terminal_status",
|
|
9244
9151
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9245
9152
|
full: true,
|
|
9246
9153
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9247
9154
|
});
|
|
9248
9155
|
}
|
|
9249
|
-
|
|
9156
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9250
9157
|
phase: "cli.play_start_stream_terminal",
|
|
9251
9158
|
ms: Date.now() - startedAt,
|
|
9252
9159
|
ok: true,
|
|
@@ -9266,7 +9173,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9266
9173
|
clearTimeout(timeout);
|
|
9267
9174
|
}
|
|
9268
9175
|
controller.abort();
|
|
9269
|
-
|
|
9176
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9270
9177
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9271
9178
|
ms: Date.now() - startedAt,
|
|
9272
9179
|
ok: true,
|
|
@@ -9297,7 +9204,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9297
9204
|
if (timedOut) {
|
|
9298
9205
|
const terminal = await fetchKnownTerminalStatus();
|
|
9299
9206
|
if (terminal) {
|
|
9300
|
-
|
|
9207
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9301
9208
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9302
9209
|
ms: Date.now() - startedAt,
|
|
9303
9210
|
ok: true,
|
|
@@ -9317,7 +9224,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9317
9224
|
lastPhase
|
|
9318
9225
|
});
|
|
9319
9226
|
}
|
|
9320
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9227
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkGSULE54Ljs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9321
9228
|
if (timeout) {
|
|
9322
9229
|
clearTimeout(timeout);
|
|
9323
9230
|
}
|
|
@@ -9328,7 +9235,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9328
9235
|
`
|
|
9329
9236
|
);
|
|
9330
9237
|
}
|
|
9331
|
-
|
|
9238
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9332
9239
|
phase: "cli.play_start_stream_reconnect",
|
|
9333
9240
|
ms: Date.now() - startedAt,
|
|
9334
9241
|
ok: true,
|
|
@@ -9355,7 +9262,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9355
9262
|
});
|
|
9356
9263
|
}
|
|
9357
9264
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9358
|
-
|
|
9265
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9359
9266
|
phase: "cli.play_start_stream_transient_failure",
|
|
9360
9267
|
ms: Date.now() - startedAt,
|
|
9361
9268
|
ok: false,
|
|
@@ -9383,7 +9290,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9383
9290
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9384
9291
|
);
|
|
9385
9292
|
}
|
|
9386
|
-
|
|
9293
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9387
9294
|
phase: "cli.play_start_stream_reconnect",
|
|
9388
9295
|
ms: Date.now() - startedAt,
|
|
9389
9296
|
ok: true,
|
|
@@ -9463,29 +9370,29 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9463
9370
|
"logs"
|
|
9464
9371
|
]);
|
|
9465
9372
|
function formatPlayLogLine(rawLine, state) {
|
|
9466
|
-
const classified =
|
|
9373
|
+
const classified = _chunkGSULE54Ljs.classifyLogLine.call(void 0, rawLine);
|
|
9467
9374
|
const line = classified.line;
|
|
9468
9375
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9469
|
-
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess',
|
|
9376
|
+
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _318 => _318[1]]) ? new Date(timestampMatch[1]) : null;
|
|
9470
9377
|
const timestamp = parsedTimestamp && !Number.isNaN(parsedTimestamp.getTime()) ? parsedTimestamp.toLocaleTimeString("en-US", {
|
|
9471
9378
|
hour12: false,
|
|
9472
9379
|
hour: "2-digit",
|
|
9473
9380
|
minute: "2-digit",
|
|
9474
9381
|
second: "2-digit"
|
|
9475
9382
|
}) : null;
|
|
9476
|
-
const message = _nullishCoalesce(_optionalChain([timestampMatch, 'optionalAccess',
|
|
9383
|
+
const message = _nullishCoalesce(_optionalChain([timestampMatch, 'optionalAccess', _319 => _319[2]]), () => ( line));
|
|
9477
9384
|
const prefix = timestamp ? `${timestamp} ` : "";
|
|
9478
9385
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9479
9386
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9480
9387
|
if (providerWait && !state.verbose) {
|
|
9481
|
-
return
|
|
9388
|
+
return _chunkGSULE54Ljs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9482
9389
|
}
|
|
9483
9390
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9484
9391
|
if (mapProgress && !state.verbose) {
|
|
9485
|
-
return
|
|
9392
|
+
return _chunkGSULE54Ljs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9486
9393
|
}
|
|
9487
9394
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9488
|
-
if (!
|
|
9395
|
+
if (!_chunkGSULE54Ljs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9489
9396
|
return null;
|
|
9490
9397
|
}
|
|
9491
9398
|
if (state.emittedRunnerStarted) {
|
|
@@ -9498,7 +9405,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9498
9405
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9499
9406
|
);
|
|
9500
9407
|
if (mapStart) {
|
|
9501
|
-
if (!
|
|
9408
|
+
if (!_chunkGSULE54Ljs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9502
9409
|
return null;
|
|
9503
9410
|
}
|
|
9504
9411
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9508,7 +9415,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9508
9415
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9509
9416
|
);
|
|
9510
9417
|
if (mapDone) {
|
|
9511
|
-
if (!
|
|
9418
|
+
if (!_chunkGSULE54Ljs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9512
9419
|
return null;
|
|
9513
9420
|
}
|
|
9514
9421
|
const [, results, executed, cached] = mapDone;
|
|
@@ -9690,20 +9597,20 @@ function collectDatasetHandleLines(value, path = "result") {
|
|
|
9690
9597
|
function buildRunWarnings(status, rowsInfo) {
|
|
9691
9598
|
const rowOutcomes = readRowOutcomeSummary(status);
|
|
9692
9599
|
const result = readRecord(status.result);
|
|
9693
|
-
const metadata = readRecord(_optionalChain([result, 'optionalAccess',
|
|
9694
|
-
const outputWarnings = Array.isArray(_optionalChain([metadata, 'optionalAccess',
|
|
9600
|
+
const metadata = readRecord(_optionalChain([result, 'optionalAccess', _320 => _320._metadata]));
|
|
9601
|
+
const outputWarnings = Array.isArray(_optionalChain([metadata, 'optionalAccess', _321 => _321.outputWarnings])) ? metadata.outputWarnings.map((warning) => readRecord(warning)).filter((warning) => {
|
|
9695
9602
|
if (!warning) return false;
|
|
9696
9603
|
return !(rowsInfo && !rowsInfo.complete && warning.reason === "array_preview_limit" && warning.originalItems === rowsInfo.totalRows && warning.retainedItems === rowsInfo.rows.length);
|
|
9697
|
-
}).map((warning) => _optionalChain([warning, 'optionalAccess',
|
|
9604
|
+
}).map((warning) => _optionalChain([warning, 'optionalAccess', _322 => _322.message])).filter(
|
|
9698
9605
|
(message) => typeof message === "string" && message.trim().length > 0
|
|
9699
9606
|
).slice(0, 16) : [];
|
|
9700
|
-
const rowOutcomeWarnings = _optionalChain([rowOutcomes, 'optionalAccess',
|
|
9607
|
+
const rowOutcomeWarnings = _optionalChain([rowOutcomes, 'optionalAccess', _323 => _323.hasRowFailures]) ? [
|
|
9701
9608
|
`${status.status === "completed" ? "Run completed" : "Run ended"} with ${formatInteger(rowOutcomes.failedRows)} failed row(s); inspect the persisted failed rows before treating the output as complete.`
|
|
9702
9609
|
] : [];
|
|
9703
|
-
const supersededRowNotices = (_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess',
|
|
9610
|
+
const supersededRowNotices = (_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _324 => _324.supersededRows]), () => ( 0))) > 0 ? [
|
|
9704
9611
|
`Latest-write-wins: ${formatSupersededRowsNotice(_nullishCoalesce(rowOutcomes.supersededRows, () => ( 0)))}; the newer write still owns that Runtime Sheet row.`
|
|
9705
9612
|
] : [];
|
|
9706
|
-
if (status.status === "completed" && _optionalChain([rowsInfo, 'optionalAccess',
|
|
9613
|
+
if (status.status === "completed" && _optionalChain([rowsInfo, 'optionalAccess', _325 => _325.totalRows]) === 0) {
|
|
9707
9614
|
return [
|
|
9708
9615
|
...rowOutcomeWarnings,
|
|
9709
9616
|
...supersededRowNotices,
|
|
@@ -9722,7 +9629,7 @@ function buildRunWarnings(status, rowsInfo) {
|
|
|
9722
9629
|
return [...rowOutcomeWarnings, ...supersededRowNotices, ...outputWarnings];
|
|
9723
9630
|
}
|
|
9724
9631
|
function buildRunNextCommands(status) {
|
|
9725
|
-
const runId = _optionalChain([status, 'access',
|
|
9632
|
+
const runId = _optionalChain([status, 'access', _326 => _326.runId, 'optionalAccess', _327 => _327.trim, 'call', _328 => _328()]);
|
|
9726
9633
|
if (!runId) {
|
|
9727
9634
|
const playName = extractRunPlayName(status);
|
|
9728
9635
|
return playName ? {
|
|
@@ -9873,14 +9780,14 @@ function extractToolIdFromErrorText(text) {
|
|
|
9873
9780
|
return null;
|
|
9874
9781
|
}
|
|
9875
9782
|
const lowerToolMatch = /\btool\s+([A-Za-z0-9_.:-]+)\s+\d{3}\b/.exec(text);
|
|
9876
|
-
if (_optionalChain([lowerToolMatch, 'optionalAccess',
|
|
9783
|
+
if (_optionalChain([lowerToolMatch, 'optionalAccess', _329 => _329[1]])) {
|
|
9877
9784
|
return lowerToolMatch[1];
|
|
9878
9785
|
}
|
|
9879
9786
|
const upperToolMatch = /\bTool\s+([A-Za-z0-9_.:-]+)\s+failed\b/.exec(text);
|
|
9880
|
-
return _nullishCoalesce(_optionalChain([upperToolMatch, 'optionalAccess',
|
|
9787
|
+
return _nullishCoalesce(_optionalChain([upperToolMatch, 'optionalAccess', _330 => _330[1]]), () => ( null));
|
|
9881
9788
|
}
|
|
9882
9789
|
function isInsufficientCreditsBilling(billing) {
|
|
9883
|
-
return _optionalChain([billing, 'optionalAccess',
|
|
9790
|
+
return _optionalChain([billing, 'optionalAccess', _331 => _331.kind]) === "insufficient_credits";
|
|
9884
9791
|
}
|
|
9885
9792
|
function extractBillingForStatus(status, error) {
|
|
9886
9793
|
const errorBilling = getObjectField(status, "errorBilling");
|
|
@@ -9922,8 +9829,8 @@ function formatInsufficientCreditsMessage(input) {
|
|
|
9922
9829
|
function buildInsufficientCreditsSummaryLines(input) {
|
|
9923
9830
|
const progress = input.status.progress;
|
|
9924
9831
|
const rowsInfo = extractCanonicalRowsInfo(input.status);
|
|
9925
|
-
const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "completed"), () => ( getNumericField(progress, "completedRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess',
|
|
9926
|
-
const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "total"), () => ( getNumericField(progress, "totalRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess',
|
|
9832
|
+
const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "completed"), () => ( getNumericField(progress, "completedRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _332 => _332.rows, 'access', _333 => _333.length]))), () => ( null));
|
|
9833
|
+
const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "total"), () => ( getNumericField(progress, "totalRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _334 => _334.totalRows]))), () => ( null));
|
|
9927
9834
|
const lines = [
|
|
9928
9835
|
" status: stopped_insufficient_credits",
|
|
9929
9836
|
completed === null ? " completed rows: unknown" : ` completed rows: ${formatInteger(completed)}${total !== null ? ` of ${formatInteger(total)}` : ""}`,
|
|
@@ -9942,7 +9849,7 @@ function buildInsufficientCreditsSummaryLines(input) {
|
|
|
9942
9849
|
lines.push(" ask user: ask whether they want to add Deepline credits");
|
|
9943
9850
|
lines.push(` top up after approval: ${recovery.topUp}`);
|
|
9944
9851
|
lines.push(` checkout fallback: ${recovery.checkout}`);
|
|
9945
|
-
const runId = _optionalChain([input, 'access',
|
|
9852
|
+
const runId = _optionalChain([input, 'access', _335 => _335.status, 'access', _336 => _336.runId, 'optionalAccess', _337 => _337.trim, 'call', _338 => _338()]);
|
|
9946
9853
|
if (runId) {
|
|
9947
9854
|
lines.push(` inspect: deepline runs get ${runId}`);
|
|
9948
9855
|
lines.push(
|
|
@@ -10024,10 +9931,10 @@ function normalizeRunStatusForEnvelope(status) {
|
|
|
10024
9931
|
function normalizeProgressForEnvelope(status, rowsInfo) {
|
|
10025
9932
|
const progress = status.progress;
|
|
10026
9933
|
const rowOutcomes = readRowOutcomeSummary(status);
|
|
10027
|
-
const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess',
|
|
10028
|
-
const failed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess',
|
|
10029
|
-
const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess',
|
|
10030
|
-
const supersededRows = _nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess',
|
|
9934
|
+
const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _339 => _339.totalRows]), () => ( getNumericField(progress, "totalRows"))), () => ( getNumericField(progress, "total"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _340 => _340.totalRows]))), () => ( null));
|
|
9935
|
+
const failed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _341 => _341.failedRows]), () => ( getNumericField(progress, "failed"))), () => ( getNumericField(progress, "failedRows"))), () => ( null));
|
|
9936
|
+
const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _342 => _342.completedRows]), () => ( getNumericField(progress, "completed"))), () => ( getNumericField(progress, "completedRows"))), () => ( (status.status === "completed" ? total : null)));
|
|
9937
|
+
const supersededRows = _nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _343 => _343.supersededRows]), () => ( getNumericField(progress, "supersededRows")));
|
|
10031
9938
|
const supersededOffset = _nullishCoalesce(supersededRows, () => ( 0));
|
|
10032
9939
|
const progressPending = getNumericField(progress, "pending");
|
|
10033
9940
|
const pending = _nullishCoalesce((progressPending !== null ? Math.max(0, progressPending - supersededOffset) : null), () => ( (typeof total === "number" && typeof completed === "number" && typeof failed === "number" ? Math.max(0, total - completed - failed - supersededOffset) : null)));
|
|
@@ -10097,7 +10004,7 @@ function normalizeErrorsForEnvelope(status, error) {
|
|
|
10097
10004
|
];
|
|
10098
10005
|
}
|
|
10099
10006
|
function normalizeLogsForEnvelope(status) {
|
|
10100
|
-
const logs = Array.isArray(_optionalChain([status, 'access',
|
|
10007
|
+
const logs = Array.isArray(_optionalChain([status, 'access', _344 => _344.progress, 'optionalAccess', _345 => _345.logs])) ? status.progress.logs : [];
|
|
10101
10008
|
const totalCount = logs.length;
|
|
10102
10009
|
const entries = logs.slice(Math.max(0, logs.length - RUN_LOG_PREVIEW_LIMIT));
|
|
10103
10010
|
const firstSequence = entries.length === 0 ? null : logs.length - entries.length + 1;
|
|
@@ -10154,7 +10061,7 @@ function compactPlayStatus(status) {
|
|
|
10154
10061
|
const packaged = getPlayRunPackage(status);
|
|
10155
10062
|
if (packaged) {
|
|
10156
10063
|
const packagedRun = readRecord(packaged.run);
|
|
10157
|
-
const packagedError = typeof _optionalChain([packagedRun, 'optionalAccess',
|
|
10064
|
+
const packagedError = typeof _optionalChain([packagedRun, 'optionalAccess', _346 => _346.error]) === "string" ? packagedRun.error : null;
|
|
10158
10065
|
const error2 = _nullishCoalesce(selectRunErrorForDisplay(status), () => ( (typeof status.error === "string" ? String(status.error) : packagedError)));
|
|
10159
10066
|
const compactError = error2 ? compactRunErrorForEnvelope(error2, status.runId) : null;
|
|
10160
10067
|
const rowOutcomes2 = readRowOutcomeSummary(status);
|
|
@@ -10305,7 +10212,7 @@ function formatTopValuesPart(value) {
|
|
|
10305
10212
|
}
|
|
10306
10213
|
function formatPackageDatasetSummaryLines(summary, indent = " ") {
|
|
10307
10214
|
const record3 = readRecord(summary);
|
|
10308
|
-
const columnStats = readRecord(_optionalChain([record3, 'optionalAccess',
|
|
10215
|
+
const columnStats = readRecord(_optionalChain([record3, 'optionalAccess', _347 => _347.columnStats]));
|
|
10309
10216
|
if (!record3 || !columnStats) {
|
|
10310
10217
|
return [];
|
|
10311
10218
|
}
|
|
@@ -10393,7 +10300,7 @@ function packageDatasetRecords(packaged) {
|
|
|
10393
10300
|
if (catalog.length > 0) return catalog;
|
|
10394
10301
|
return readRecordArray(packaged.steps).flatMap((step) => {
|
|
10395
10302
|
const output = readRecord(step.output);
|
|
10396
|
-
return _optionalChain([output, 'optionalAccess',
|
|
10303
|
+
return _optionalChain([output, 'optionalAccess', _348 => _348.kind]) === "dataset" ? [output] : [];
|
|
10397
10304
|
});
|
|
10398
10305
|
}
|
|
10399
10306
|
function packageReturnedDatasetIdentity(packaged) {
|
|
@@ -10402,7 +10309,7 @@ function packageReturnedDatasetIdentity(packaged) {
|
|
|
10402
10309
|
const outputs = _nullishCoalesce(readRecord(packaged.outputs), () => ( {}));
|
|
10403
10310
|
for (const outputValue of Object.values(outputs)) {
|
|
10404
10311
|
const output = readRecord(outputValue);
|
|
10405
|
-
if (_optionalChain([output, 'optionalAccess',
|
|
10312
|
+
if (_optionalChain([output, 'optionalAccess', _349 => _349.kind]) !== "dataset") continue;
|
|
10406
10313
|
if (typeof output.datasetId === "string" && output.datasetId.trim()) {
|
|
10407
10314
|
datasetIds.add(output.datasetId.trim());
|
|
10408
10315
|
}
|
|
@@ -10438,7 +10345,7 @@ function formatRunStepProgress(progress, includeRowOutcomes = false) {
|
|
|
10438
10345
|
}
|
|
10439
10346
|
function formatPackageDatasetActionLines(packaged, options) {
|
|
10440
10347
|
const returned = packageReturnedDatasetIdentity(packaged);
|
|
10441
|
-
const includeSummary = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
10348
|
+
const includeSummary = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _350 => _350.includeSummary]), () => ( true));
|
|
10442
10349
|
const lines = [];
|
|
10443
10350
|
const steps = readRecordArray(packaged.steps);
|
|
10444
10351
|
const stepsByDatasetId = /* @__PURE__ */ new Map();
|
|
@@ -10447,10 +10354,10 @@ function formatPackageDatasetActionLines(packaged, options) {
|
|
|
10447
10354
|
for (const step of steps) {
|
|
10448
10355
|
if (step.kind !== "dataset") continue;
|
|
10449
10356
|
const output = readRecord(step.output);
|
|
10450
|
-
if (typeof _optionalChain([output, 'optionalAccess',
|
|
10357
|
+
if (typeof _optionalChain([output, 'optionalAccess', _351 => _351.datasetId]) === "string") {
|
|
10451
10358
|
stepsByDatasetId.set(output.datasetId, step);
|
|
10452
10359
|
}
|
|
10453
|
-
if (typeof _optionalChain([output, 'optionalAccess',
|
|
10360
|
+
if (typeof _optionalChain([output, 'optionalAccess', _352 => _352.path]) === "string") {
|
|
10454
10361
|
stepsByPath.set(output.path, step);
|
|
10455
10362
|
}
|
|
10456
10363
|
if (typeof step.id === "string") {
|
|
@@ -10464,8 +10371,8 @@ function formatPackageDatasetActionLines(packaged, options) {
|
|
|
10464
10371
|
const category = isReturned ? "returned" : dataset.recovered === true ? "recovered" : "persisted";
|
|
10465
10372
|
const rowCount = typeof dataset.rowCount === "number" && Number.isFinite(dataset.rowCount) ? Math.max(0, Math.trunc(dataset.rowCount)) : null;
|
|
10466
10373
|
const lifecycle = readRecord(dataset.lifecycle);
|
|
10467
|
-
const countUnconfirmed = _optionalChain([lifecycle, 'optionalAccess',
|
|
10468
|
-
const persistedLowerBound = typeof _optionalChain([lifecycle, 'optionalAccess',
|
|
10374
|
+
const countUnconfirmed = _optionalChain([lifecycle, 'optionalAccess', _353 => _353.complete]) === false;
|
|
10375
|
+
const persistedLowerBound = typeof _optionalChain([lifecycle, 'optionalAccess', _354 => _354.persistedRowsAtLeast]) === "number" && Number.isFinite(lifecycle.persistedRowsAtLeast) ? Math.max(0, Math.trunc(lifecycle.persistedRowsAtLeast)) : 0;
|
|
10469
10376
|
const actions2 = _nullishCoalesce(readRecord(dataset.actions), () => ( {}));
|
|
10470
10377
|
if (countUnconfirmed) {
|
|
10471
10378
|
lines.push(
|
|
@@ -10483,7 +10390,7 @@ function formatPackageDatasetActionLines(packaged, options) {
|
|
|
10483
10390
|
}
|
|
10484
10391
|
}
|
|
10485
10392
|
const step = _nullishCoalesce(_nullishCoalesce((datasetId ? stepsByDatasetId.get(datasetId) : void 0), () => ( stepsByPath.get(path))), () => ( (typeof dataset.tableNamespace === "string" ? stepsByNamespace.get(dataset.tableNamespace) : void 0)));
|
|
10486
|
-
const progress = readRecord(_optionalChain([step, 'optionalAccess',
|
|
10393
|
+
const progress = readRecord(_optionalChain([step, 'optionalAccess', _355 => _355.progress]));
|
|
10487
10394
|
if (progress) {
|
|
10488
10395
|
lines.push(` progress: ${formatRunStepProgress(progress)}`);
|
|
10489
10396
|
}
|
|
@@ -10497,10 +10404,10 @@ function formatPackageDatasetActionLines(packaged, options) {
|
|
|
10497
10404
|
}
|
|
10498
10405
|
const exportAction = readRecord(actions2.exportCsv);
|
|
10499
10406
|
const exportCommand = actionToCommand(exportAction);
|
|
10500
|
-
const exportScope = readRecord(_optionalChain([exportAction, 'optionalAccess',
|
|
10407
|
+
const exportScope = readRecord(_optionalChain([exportAction, 'optionalAccess', _356 => _356.scope]));
|
|
10501
10408
|
const queryAction = readRecord(actions2.query);
|
|
10502
|
-
const queryScope = readRecord(_optionalChain([queryAction, 'optionalAccess',
|
|
10503
|
-
const runQueryCommand = _optionalChain([queryScope, 'optionalAccess',
|
|
10409
|
+
const queryScope = readRecord(_optionalChain([queryAction, 'optionalAccess', _357 => _357.scope]));
|
|
10410
|
+
const runQueryCommand = _optionalChain([queryScope, 'optionalAccess', _358 => _358.kind]) === "run" ? actionToCommand(queryAction) : null;
|
|
10504
10411
|
const currentQueryCommand = actionToCommand(actions2.queryCurrentTable);
|
|
10505
10412
|
const legacyQueryCommand = actionToCommand(actions2.query);
|
|
10506
10413
|
if (runQueryCommand) {
|
|
@@ -10512,11 +10419,11 @@ function formatPackageDatasetActionLines(packaged, options) {
|
|
|
10512
10419
|
}
|
|
10513
10420
|
if (exportCommand) {
|
|
10514
10421
|
lines.push(
|
|
10515
|
-
_optionalChain([exportScope, 'optionalAccess',
|
|
10422
|
+
_optionalChain([exportScope, 'optionalAccess', _359 => _359.kind]) === "database" ? ` export current table (may include other runs): ${exportCommand}` : ` export this run: ${exportCommand}`
|
|
10516
10423
|
);
|
|
10517
10424
|
}
|
|
10518
10425
|
const unavailable = readRecord(dataset.exportUnavailable);
|
|
10519
|
-
if (typeof _optionalChain([unavailable, 'optionalAccess',
|
|
10426
|
+
if (typeof _optionalChain([unavailable, 'optionalAccess', _360 => _360.reason]) === "string" && typeof unavailable.message === "string") {
|
|
10520
10427
|
lines.push(
|
|
10521
10428
|
` export unavailable (${unavailable.reason}): ${unavailable.message}`
|
|
10522
10429
|
);
|
|
@@ -10533,7 +10440,7 @@ function packageSavedRowCount(packaged) {
|
|
|
10533
10440
|
}
|
|
10534
10441
|
function runtimeLimitWindowLabel(runtimeLimitFailure) {
|
|
10535
10442
|
const message = _nullishCoalesce(getStringField(runtimeLimitFailure, "message"), () => ( ""));
|
|
10536
|
-
const configuredSeconds = _optionalChain([/\bconfigured\s+(\d+)\s+second(?:s)?\s+runtime limit\b/i, 'access',
|
|
10443
|
+
const configuredSeconds = _optionalChain([/\bconfigured\s+(\d+)\s+second(?:s)?\s+runtime limit\b/i, 'access', _361 => _361.exec, 'call', _362 => _362(message), 'optionalAccess', _363 => _363[1]]);
|
|
10537
10444
|
if (configuredSeconds) {
|
|
10538
10445
|
const seconds = Number(configuredSeconds);
|
|
10539
10446
|
if (Number.isSafeInteger(seconds) && seconds > 0) {
|
|
@@ -10580,7 +10487,7 @@ function formatPackageValueOutputLines(packaged) {
|
|
|
10580
10487
|
if (!outputs) return [];
|
|
10581
10488
|
const returned = Object.entries(outputs).filter(([, output]) => {
|
|
10582
10489
|
const record3 = readRecord(output);
|
|
10583
|
-
return _optionalChain([record3, 'optionalAccess',
|
|
10490
|
+
return _optionalChain([record3, 'optionalAccess', _364 => _364.kind]) === "dataset" || _optionalChain([record3, 'optionalAccess', _365 => _365.kind]) === "value" && Object.prototype.hasOwnProperty.call(record3, "value");
|
|
10584
10491
|
});
|
|
10585
10492
|
if (returned.length === 0) return [];
|
|
10586
10493
|
const datasets = packageDatasetRecords(packaged);
|
|
@@ -10600,10 +10507,10 @@ function formatPackageValueOutputLines(packaged) {
|
|
|
10600
10507
|
(candidate) => typeof output.datasetId === "string" && candidate.datasetId === output.datasetId || candidate.path === path
|
|
10601
10508
|
);
|
|
10602
10509
|
const stepOutput = datasetSteps.map((step) => readRecord(step.output)).find(
|
|
10603
|
-
(candidate) => typeof output.datasetId === "string" && _optionalChain([candidate, 'optionalAccess',
|
|
10510
|
+
(candidate) => typeof output.datasetId === "string" && _optionalChain([candidate, 'optionalAccess', _366 => _366.datasetId]) === output.datasetId || _optionalChain([candidate, 'optionalAccess', _367 => _367.path]) === path
|
|
10604
10511
|
);
|
|
10605
|
-
const preview = readRecord(_nullishCoalesce(_optionalChain([stepOutput, 'optionalAccess',
|
|
10606
|
-
const rows = Array.isArray(_optionalChain([preview, 'optionalAccess',
|
|
10512
|
+
const preview = readRecord(_nullishCoalesce(_optionalChain([stepOutput, 'optionalAccess', _368 => _368.preview]), () => ( _optionalChain([dataset, 'optionalAccess', _369 => _369.preview]))));
|
|
10513
|
+
const rows = Array.isArray(_optionalChain([preview, 'optionalAccess', _370 => _370.rows])) ? preview.rows.slice(0, 2) : [];
|
|
10607
10514
|
if (rows.length > 0) {
|
|
10608
10515
|
lines.push(` sample rows (${rows.length}):`);
|
|
10609
10516
|
lines.push(
|
|
@@ -10629,7 +10536,7 @@ function formatPackageValueOutputLines(packaged) {
|
|
|
10629
10536
|
return lines;
|
|
10630
10537
|
}
|
|
10631
10538
|
function authoredPackageStackFrames(packaged) {
|
|
10632
|
-
const stack = readRecordArray(packaged.errors).map((entry) => typeof entry.stack === "string" ? entry.stack : null).find((candidate) => Boolean(_optionalChain([candidate, 'optionalAccess',
|
|
10539
|
+
const stack = readRecordArray(packaged.errors).map((entry) => typeof entry.stack === "string" ? entry.stack : null).find((candidate) => Boolean(_optionalChain([candidate, 'optionalAccess', _371 => _371.trim, 'call', _372 => _372()])));
|
|
10633
10540
|
if (!stack) return [];
|
|
10634
10541
|
return stack.split("\n").map((line) => line.trim()).filter((line) => line.startsWith("at ")).filter(
|
|
10635
10542
|
(line) => !line.includes("/virtual/deepline-plays/") && !line.includes("/apps/play-runner/") && !line.includes("/shared_libs/play-runtime/") && !line.includes("node:internal")
|
|
@@ -10661,9 +10568,9 @@ function activityIsoTimestamp(value) {
|
|
|
10661
10568
|
}
|
|
10662
10569
|
function buildRunActivityTextLines(run) {
|
|
10663
10570
|
const activity = readRecord(run.activity);
|
|
10664
|
-
const observation = readRecord(_optionalChain([activity, 'optionalAccess',
|
|
10665
|
-
const state = readRecord(_optionalChain([observation, 'optionalAccess',
|
|
10666
|
-
const target = readRecord(_optionalChain([observation, 'optionalAccess',
|
|
10571
|
+
const observation = readRecord(_optionalChain([activity, 'optionalAccess', _373 => _373.observation]));
|
|
10572
|
+
const state = readRecord(_optionalChain([observation, 'optionalAccess', _374 => _374.state]));
|
|
10573
|
+
const target = readRecord(_optionalChain([observation, 'optionalAccess', _375 => _375.target]));
|
|
10667
10574
|
if (!activity || !observation || !state) return [];
|
|
10668
10575
|
const kind = typeof state.kind === "string" ? state.kind : "unknown";
|
|
10669
10576
|
if (kind === "completed") return [];
|
|
@@ -10708,11 +10615,11 @@ function buildRunActivityTextLines(run) {
|
|
|
10708
10615
|
}
|
|
10709
10616
|
function formatObservedRunCounter(value) {
|
|
10710
10617
|
const counter = readRecord(value);
|
|
10711
|
-
const count2 = _optionalChain([counter, 'optionalAccess',
|
|
10618
|
+
const count2 = _optionalChain([counter, 'optionalAccess', _376 => _376.value]);
|
|
10712
10619
|
if (typeof count2 !== "number" || !Number.isSafeInteger(count2) || count2 < 0) {
|
|
10713
10620
|
return "unknown";
|
|
10714
10621
|
}
|
|
10715
|
-
return _optionalChain([counter, 'optionalAccess',
|
|
10622
|
+
return _optionalChain([counter, 'optionalAccess', _377 => _377.confirmed]) === true ? formatInteger(count2) : `${formatInteger(count2)} observed`;
|
|
10716
10623
|
}
|
|
10717
10624
|
function buildRunStatusEvidenceTextLines(packaged) {
|
|
10718
10625
|
const evidence = readRecord(packaged.runStatus);
|
|
@@ -10725,13 +10632,13 @@ function buildRunStatusEvidenceTextLines(packaged) {
|
|
|
10725
10632
|
);
|
|
10726
10633
|
}
|
|
10727
10634
|
const source = readRecord(evidence.source);
|
|
10728
|
-
if (_optionalChain([source, 'optionalAccess',
|
|
10635
|
+
if (_optionalChain([source, 'optionalAccess', _378 => _378.aligned]) === false) {
|
|
10729
10636
|
lines.push(
|
|
10730
10637
|
` consistency: run snapshot event ${String(source.runSnapshotLedgerNextSeq)} and progress event ${String(source.ledgerNextSeq)} differ; retry this read to align them`
|
|
10731
10638
|
);
|
|
10732
10639
|
}
|
|
10733
10640
|
const focus = readRecord(evidence.focusStep);
|
|
10734
|
-
const rows = readRecord(_optionalChain([focus, 'optionalAccess',
|
|
10641
|
+
const rows = readRecord(_optionalChain([focus, 'optionalAccess', _379 => _379.rows]));
|
|
10735
10642
|
if (focus) {
|
|
10736
10643
|
const id = typeof focus.id === "string" && focus.id.trim() ? focus.id.trim() : "unknown step";
|
|
10737
10644
|
const label = typeof focus.label === "string" && focus.label.trim() ? ` (${focus.label.trim()})` : "";
|
|
@@ -10739,7 +10646,7 @@ function buildRunStatusEvidenceTextLines(packaged) {
|
|
|
10739
10646
|
const known = readRecordArray(packaged.steps).find(
|
|
10740
10647
|
(step) => typeof step.id === "string" && (id === step.id || id.endsWith(`:${step.id}`)) && typeof step.label === "string"
|
|
10741
10648
|
);
|
|
10742
|
-
const state = typeof _optionalChain([known, 'optionalAccess',
|
|
10649
|
+
const state = typeof _optionalChain([known, 'optionalAccess', _380 => _380.label]) === "string" ? known.label : typeof focus.status === "string" && focus.status.trim() ? formatNodeExecutionState(
|
|
10743
10650
|
deriveNodeExecutionState({
|
|
10744
10651
|
reported: {
|
|
10745
10652
|
status: focus.status.trim(),
|
|
@@ -10749,7 +10656,7 @@ function buildRunStatusEvidenceTextLines(packaged) {
|
|
|
10749
10656
|
total: rows.total
|
|
10750
10657
|
} : null
|
|
10751
10658
|
},
|
|
10752
|
-
runStatus: _optionalChain([run, 'optionalAccess',
|
|
10659
|
+
runStatus: _optionalChain([run, 'optionalAccess', _381 => _381.status])
|
|
10753
10660
|
})
|
|
10754
10661
|
) : null;
|
|
10755
10662
|
lines.push(` current step: ${id}${label}${state ? `: ${state}` : ""}`);
|
|
@@ -10797,7 +10704,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10797
10704
|
(line) => typeof line === "string"
|
|
10798
10705
|
);
|
|
10799
10706
|
if (tail.length === 0) return [];
|
|
10800
|
-
const shown = tail.map((line) =>
|
|
10707
|
+
const shown = tail.map((line) => _chunkGSULE54Ljs.classifyLogLine.call(void 0, line)).filter(
|
|
10801
10708
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10802
10709
|
).slice(-8);
|
|
10803
10710
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -10841,7 +10748,7 @@ function buildRunPackageTextLines(packaged) {
|
|
|
10841
10748
|
lines.push(` recovery: ${mode}${sourceRunId}`);
|
|
10842
10749
|
}
|
|
10843
10750
|
const runError = typeof run.error === "string" && run.error.trim() ? run.error.trim() : null;
|
|
10844
|
-
const structuredRuntimeLimitMessage = typeof _optionalChain([runtimeLimitFailure, 'optionalAccess',
|
|
10751
|
+
const structuredRuntimeLimitMessage = typeof _optionalChain([runtimeLimitFailure, 'optionalAccess', _382 => _382.message]) === "string" && runtimeLimitFailure.message.trim() ? `${typeof runtimeLimitFailure.code === "string" ? runtimeLimitFailure.code : "RUNTIME_LIMIT_EXCEEDED"}: ${runtimeLimitFailure.message.trim()}` : null;
|
|
10845
10752
|
const displayRunError = _nullishCoalesce(structuredRuntimeLimitMessage, () => ( runError));
|
|
10846
10753
|
if (!isRuntimeLimitCheckpoint && displayRunError && (status === "failed" || status === "cancelled")) {
|
|
10847
10754
|
lines.push(` error: ${truncateErrorForDisplay(displayRunError, runId)}`);
|
|
@@ -10852,11 +10759,11 @@ function buildRunPackageTextLines(packaged) {
|
|
|
10852
10759
|
}
|
|
10853
10760
|
}
|
|
10854
10761
|
const failedLogs = readRecord(packaged.failedLogs);
|
|
10855
|
-
const failedLogEntries = Array.isArray(_optionalChain([failedLogs, 'optionalAccess',
|
|
10762
|
+
const failedLogEntries = Array.isArray(_optionalChain([failedLogs, 'optionalAccess', _383 => _383.entries])) ? failedLogs.entries.filter(
|
|
10856
10763
|
(entry) => typeof entry === "string"
|
|
10857
10764
|
) : [];
|
|
10858
|
-
const failedLogAssociation = typeof _optionalChain([failedLogs, 'optionalAccess',
|
|
10859
|
-
const failedLogWarning = typeof _optionalChain([failedLogs, 'optionalAccess',
|
|
10765
|
+
const failedLogAssociation = typeof _optionalChain([failedLogs, 'optionalAccess', _384 => _384.association]) === "string" ? failedLogs.association : null;
|
|
10766
|
+
const failedLogWarning = typeof _optionalChain([failedLogs, 'optionalAccess', _385 => _385.warning]) === "string" && failedLogs.warning.trim() ? failedLogs.warning.trim() : null;
|
|
10860
10767
|
if (failedLogEntries.length > 0) {
|
|
10861
10768
|
lines.push(" failed logs:");
|
|
10862
10769
|
lines.push(...failedLogEntries.map((entry) => ` ${entry}`));
|
|
@@ -10875,8 +10782,8 @@ function buildRunPackageTextLines(packaged) {
|
|
|
10875
10782
|
)
|
|
10876
10783
|
).slice(0, 16) : [];
|
|
10877
10784
|
lines.push(...packageWarnings.map((warning) => ` warning: ${warning}`));
|
|
10878
|
-
const failedLogNext = readRecord(_optionalChain([failedLogs, 'optionalAccess',
|
|
10879
|
-
if (failedLogWarning && typeof _optionalChain([failedLogNext, 'optionalAccess',
|
|
10785
|
+
const failedLogNext = readRecord(_optionalChain([failedLogs, 'optionalAccess', _386 => _386.next]));
|
|
10786
|
+
if (failedLogWarning && typeof _optionalChain([failedLogNext, 'optionalAccess', _387 => _387.logs]) === "string") {
|
|
10880
10787
|
lines.push(
|
|
10881
10788
|
failedLogAssociation === "retained_before_truncation" ? ` retained logs: ${failedLogNext.logs}` : ` retry failed logs: ${failedLogNext.logs}`
|
|
10882
10789
|
);
|
|
@@ -10904,20 +10811,20 @@ function buildRunPackageTextLines(packaged) {
|
|
|
10904
10811
|
const stepStatus = typeof step.status === "string" ? step.status : status;
|
|
10905
10812
|
const output = step.output && typeof step.output === "object" && !Array.isArray(step.output) ? step.output : null;
|
|
10906
10813
|
const rowCount = output && typeof output.rowCount === "number" ? ` rows=${formatInteger(output.rowCount)}` : "";
|
|
10907
|
-
const preview = _optionalChain([output, 'optionalAccess',
|
|
10908
|
-
const previewRows = Array.isArray(_optionalChain([preview, 'optionalAccess',
|
|
10814
|
+
const preview = _optionalChain([output, 'optionalAccess', _388 => _388.preview]) && typeof output.preview === "object" && !Array.isArray(output.preview) ? output.preview : null;
|
|
10815
|
+
const previewRows = Array.isArray(_optionalChain([preview, 'optionalAccess', _389 => _389.rows])) ? preview.rows.length : null;
|
|
10909
10816
|
lines.push(` ${kind} ${id}: ${stepStatus}${rowCount}`);
|
|
10910
|
-
lines.push(...formatPackageDatasetSummaryLines(_optionalChain([output, 'optionalAccess',
|
|
10817
|
+
lines.push(...formatPackageDatasetSummaryLines(_optionalChain([output, 'optionalAccess', _390 => _390.summary])));
|
|
10911
10818
|
if (previewRows !== null) {
|
|
10912
10819
|
lines.push(
|
|
10913
|
-
` preview=${previewRows}${_optionalChain([preview, 'optionalAccess',
|
|
10820
|
+
` preview=${previewRows}${_optionalChain([preview, 'optionalAccess', _391 => _391.truncated]) ? " truncated" : ""}`
|
|
10914
10821
|
);
|
|
10915
10822
|
}
|
|
10916
10823
|
}
|
|
10917
10824
|
const inspectCommand = actionToCommand(next.inspect);
|
|
10918
10825
|
const fullResultCommand = actionToCommand(next.full);
|
|
10919
10826
|
const hasCatalogExportAction = packageDatasetRecords(packaged).some(
|
|
10920
|
-
(dataset) => Boolean(actionToCommand(_optionalChain([readRecord, 'call',
|
|
10827
|
+
(dataset) => Boolean(actionToCommand(_optionalChain([readRecord, 'call', _392 => _392(dataset.actions), 'optionalAccess', _393 => _393.exportCsv])))
|
|
10921
10828
|
);
|
|
10922
10829
|
const legacyExportCommand = hasCatalogExportAction ? null : actionToCommand(next.export);
|
|
10923
10830
|
const runAgainCommand = typeof next.run === "string" && next.run.trim() ? next.run.trim() : null;
|
|
@@ -10982,7 +10889,7 @@ function withOrdinaryRunAgainCommand(status, options, resolvedRevisionId) {
|
|
|
10982
10889
|
}
|
|
10983
10890
|
function buildBillingRollupTextLines(status) {
|
|
10984
10891
|
const billing = status.billing;
|
|
10985
|
-
const rollup = _optionalChain([billing, 'optionalAccess',
|
|
10892
|
+
const rollup = _optionalChain([billing, 'optionalAccess', _394 => _394.rollup]);
|
|
10986
10893
|
if (!rollup) return [];
|
|
10987
10894
|
const total = formatCreditAmount2(rollup.totalCreditsRollup);
|
|
10988
10895
|
if (rollup.childCredits > 0 && rollup.descendantRunCount > 0) {
|
|
@@ -11001,7 +10908,7 @@ function buildBillingRollupTextLines(status) {
|
|
|
11001
10908
|
return [` cost: ${total} credits`];
|
|
11002
10909
|
}
|
|
11003
10910
|
function playRunRateLimitedNotice(status) {
|
|
11004
|
-
const notice = _nullishCoalesce(_optionalChain([getPlayRunPackage, 'call',
|
|
10911
|
+
const notice = _nullishCoalesce(_optionalChain([getPlayRunPackage, 'call', _395 => _395(status), 'optionalAccess', _396 => _396.rateLimited]), () => ( status.rateLimited));
|
|
11005
10912
|
return notice && typeof notice === "object" ? notice : null;
|
|
11006
10913
|
}
|
|
11007
10914
|
function withRateLimitedNotice(status, notice) {
|
|
@@ -11041,7 +10948,7 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11041
10948
|
const overview = buildRunOverview(status);
|
|
11042
10949
|
const { run } = overview;
|
|
11043
10950
|
const failed = run.status === "failed";
|
|
11044
|
-
const label = run.status === "completed" ? _optionalChain([overview, 'access',
|
|
10951
|
+
const label = run.status === "completed" ? _optionalChain([overview, 'access', _397 => _397.rowOutcomes, 'optionalAccess', _398 => _398.hasRowFailures]) ? "Completed with row failures" : "Completed" : failed ? "Failed" : run.status;
|
|
11045
10952
|
const rateLimited = playRunRateLimitedNotice(status);
|
|
11046
10953
|
const lines = [
|
|
11047
10954
|
...rateLimited ? [rateLimited.message] : [],
|
|
@@ -11063,7 +10970,7 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11063
10970
|
...formatJsonPreview(compactReturnValue(overview.result))
|
|
11064
10971
|
);
|
|
11065
10972
|
}
|
|
11066
|
-
if (_optionalChain([overview, 'access',
|
|
10973
|
+
if (_optionalChain([overview, 'access', _399 => _399.rowOutcomes, 'optionalAccess', _400 => _400.hasRowFailures])) {
|
|
11067
10974
|
lines.push(
|
|
11068
10975
|
`Rows: ${overview.rowOutcomes.completedRows} completed, ${overview.rowOutcomes.failedRows} failed`
|
|
11069
10976
|
);
|
|
@@ -11092,17 +10999,17 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11092
10999
|
}
|
|
11093
11000
|
function writePlayResult(status, jsonOutput, options) {
|
|
11094
11001
|
const packaged = getPlayRunPackage(status);
|
|
11095
|
-
if (status.package)
|
|
11096
|
-
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
11002
|
+
if (status.package) _chunkJ5VDE42Gjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11003
|
+
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _401 => _401.hits]), () => ( null));
|
|
11097
11004
|
if (jsonOutput) {
|
|
11098
|
-
const payload2 = _optionalChain([options, 'optionalAccess',
|
|
11099
|
-
|
|
11005
|
+
const payload2 = _optionalChain([options, 'optionalAccess', _402 => _402.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11006
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
11100
11007
|
hits ? { ...payload2, hits } : payload2,
|
|
11101
|
-
{ json: true, fields: _optionalChain([options, 'optionalAccess',
|
|
11008
|
+
{ json: true, fields: _optionalChain([options, 'optionalAccess', _403 => _403.jsonFields]) }
|
|
11102
11009
|
);
|
|
11103
11010
|
return;
|
|
11104
11011
|
}
|
|
11105
|
-
if (packaged && !_optionalChain([options, 'optionalAccess',
|
|
11012
|
+
if (packaged && !_optionalChain([options, 'optionalAccess', _404 => _404.fullJson])) {
|
|
11106
11013
|
const {
|
|
11107
11014
|
logs: _logs,
|
|
11108
11015
|
failedLogs: _failedLogs,
|
|
@@ -11112,7 +11019,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11112
11019
|
...buildPlayCompletionTextLines(status),
|
|
11113
11020
|
...formatRunHitsLines(hits)
|
|
11114
11021
|
];
|
|
11115
|
-
|
|
11022
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11116
11023
|
json: false,
|
|
11117
11024
|
text: `${lines2.join("\n")}
|
|
11118
11025
|
`
|
|
@@ -11162,8 +11069,8 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11162
11069
|
lines.push(...renderedServerView.actions);
|
|
11163
11070
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11164
11071
|
const compact = compactPlayStatus(status);
|
|
11165
|
-
const payload = _optionalChain([options, 'optionalAccess',
|
|
11166
|
-
|
|
11072
|
+
const payload = _optionalChain([options, 'optionalAccess', _405 => _405.fullJson]) ? status : compact;
|
|
11073
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
11167
11074
|
{
|
|
11168
11075
|
...payload,
|
|
11169
11076
|
render: {
|
|
@@ -11216,7 +11123,7 @@ async function resolvePlayRunOutputStatus(input) {
|
|
|
11216
11123
|
const streamedPackage = getPlayRunPackage(input.status);
|
|
11217
11124
|
const refreshForFullJson = input.fullJson && !input.fromDurableStatus;
|
|
11218
11125
|
const streamedTextPackageIncomplete = input.status.status === "completed" && playRunPackageTextLedgerIncomplete(streamedPackage);
|
|
11219
|
-
const refreshFailedTerminal = input.status.status === "failed" && (!input.fromDurableStatus || _optionalChain([readRecord, 'call',
|
|
11126
|
+
const refreshFailedTerminal = input.status.status === "failed" && (!input.fromDurableStatus || _optionalChain([readRecord, 'call', _406 => _406(_optionalChain([streamedPackage, 'optionalAccess', _407 => _407.run])), 'optionalAccess', _408 => _408.status]) !== "failed");
|
|
11220
11127
|
if (!refreshForFullJson && !streamedTextPackageIncomplete && !refreshFailedTerminal) {
|
|
11221
11128
|
return input.status;
|
|
11222
11129
|
}
|
|
@@ -11316,14 +11223,14 @@ function mergeExportColumns(preferredColumns, rows) {
|
|
|
11316
11223
|
return columns;
|
|
11317
11224
|
}
|
|
11318
11225
|
function sqlSafeExportColumnName(id) {
|
|
11319
|
-
const prefix = _nullishCoalesce(_optionalChain([id, 'access',
|
|
11226
|
+
const prefix = _nullishCoalesce(_optionalChain([id, 'access', _409 => _409.trim, 'call', _410 => _410(), 'access', _411 => _411.match, 'call', _412 => _412(/^_+/), 'optionalAccess', _413 => _413[0]]), () => ( ""));
|
|
11320
11227
|
const normalized = id.trim().replace(/\.+/g, "__").replace(/[^A-Za-z0-9_]+/g, "_").replace(/^_+|_+$/g, "").toLowerCase();
|
|
11321
11228
|
const safe = `${prefix}${normalized || "column"}`;
|
|
11322
11229
|
return /^[A-Za-z_]/.test(safe) ? safe : `c_${safe}`;
|
|
11323
11230
|
}
|
|
11324
11231
|
async function fetchBackingDatasetRows(input) {
|
|
11325
11232
|
const playName = extractRunPlayName(input.status);
|
|
11326
|
-
const tableNamespace = _optionalChain([input, 'access',
|
|
11233
|
+
const tableNamespace = _optionalChain([input, 'access', _414 => _414.rowsInfo, 'access', _415 => _415.tableNamespace, 'optionalAccess', _416 => _416.trim, 'call', _417 => _417()]);
|
|
11327
11234
|
if (!playName || !tableNamespace) {
|
|
11328
11235
|
return null;
|
|
11329
11236
|
}
|
|
@@ -11363,7 +11270,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11363
11270
|
seenEnvelopeKeys.add(key);
|
|
11364
11271
|
}
|
|
11365
11272
|
sheetRows.push(...page.rows);
|
|
11366
|
-
const summaryTotal = _optionalChain([page, 'access',
|
|
11273
|
+
const summaryTotal = _optionalChain([page, 'access', _418 => _418.summary, 'optionalAccess', _419 => _419.stats, 'optionalAccess', _420 => _420.total]);
|
|
11367
11274
|
if (typeof summaryTotal === "number" && Number.isFinite(summaryTotal)) {
|
|
11368
11275
|
settledTotal = Math.max(_nullishCoalesce(settledTotal, () => ( 0)), Math.trunc(summaryTotal));
|
|
11369
11276
|
}
|
|
@@ -11372,7 +11279,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11372
11279
|
}
|
|
11373
11280
|
offset += page.rows.length;
|
|
11374
11281
|
}
|
|
11375
|
-
const withError =
|
|
11282
|
+
const withError = _chunkJ5VDE42Gjs.tableExportHasFailedRows.call(void 0,
|
|
11376
11283
|
sheetRows.filter(
|
|
11377
11284
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11378
11285
|
)
|
|
@@ -11388,7 +11295,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11388
11295
|
return [
|
|
11389
11296
|
withError ? {
|
|
11390
11297
|
...exported,
|
|
11391
|
-
[
|
|
11298
|
+
[_chunkJ5VDE42Gjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkJ5VDE42Gjs.tableExportErrorCell.call(void 0,
|
|
11392
11299
|
row
|
|
11393
11300
|
)
|
|
11394
11301
|
} : exported
|
|
@@ -11457,7 +11364,7 @@ function assertDatasetHasExportableRows(input) {
|
|
|
11457
11364
|
const rowOutcomes = _nullishCoalesce(readRowOutcomeSummary(input.status), () => ( readRowOutcomeSummary(
|
|
11458
11365
|
getRecordField(getRecordField(input.status, "result"), "_metadata")
|
|
11459
11366
|
)));
|
|
11460
|
-
if (input.allowEmpty === true && input.status.status === "completed" && !getRecordField(input.status, "error") && !getRecordField(input.status.progress, "error") && structuredErrorsForStatus(input.status).length === 0 && input.rowsInfo.complete && input.rowsInfo.totalRows === 0 && _optionalChain([rowOutcomes, 'optionalAccess',
|
|
11367
|
+
if (input.allowEmpty === true && input.status.status === "completed" && !getRecordField(input.status, "error") && !getRecordField(input.status.progress, "error") && structuredErrorsForStatus(input.status).length === 0 && input.rowsInfo.complete && input.rowsInfo.totalRows === 0 && _optionalChain([rowOutcomes, 'optionalAccess', _421 => _421.failedRows]) === 0 && !rowOutcomes.hasRowFailures) {
|
|
11461
11368
|
return input.rowsInfo;
|
|
11462
11369
|
}
|
|
11463
11370
|
const datasetLabel = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(input.datasetPath, () => ( input.rowsInfo.tableNamespace)), () => ( input.rowsInfo.source)), () => ( "result.rows"));
|
|
@@ -11529,8 +11436,8 @@ async function exportPlayStatusRows(client, status, outPath, options = {}) {
|
|
|
11529
11436
|
path: dataset.exportFile(outPath, options),
|
|
11530
11437
|
rowsInfo: dataset.info(),
|
|
11531
11438
|
currentTable: false,
|
|
11532
|
-
datasetPath: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess',
|
|
11533
|
-
datasetInfo: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess',
|
|
11439
|
+
datasetPath: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _422 => _422.source]), () => ( null)),
|
|
11440
|
+
datasetInfo: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _423 => _423.info, 'call', _424 => _424()]), () => ( null))
|
|
11534
11441
|
};
|
|
11535
11442
|
};
|
|
11536
11443
|
const run = Run.open({
|
|
@@ -11542,7 +11449,7 @@ async function exportPlayStatusRows(client, status, outPath, options = {}) {
|
|
|
11542
11449
|
const returnedRows = datasets.returned().map((dataset) => dataset.info());
|
|
11543
11450
|
const recoveredRows = datasets.recovered().map((dataset) => dataset.info());
|
|
11544
11451
|
const selectedDataset = run.dataset(options.datasetPath);
|
|
11545
|
-
const rowsInfo = _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess',
|
|
11452
|
+
const rowsInfo = _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _425 => _425.info, 'call', _426 => _426()]), () => ( null));
|
|
11546
11453
|
if (!selectedDataset && options.datasetPath) {
|
|
11547
11454
|
const available = availableRows.map((info) => info.source).filter((source) => typeof source === "string");
|
|
11548
11455
|
const commands = datasetChoiceLines({
|
|
@@ -11655,7 +11562,7 @@ ${commands.join("\n")}`,
|
|
|
11655
11562
|
throw error;
|
|
11656
11563
|
}
|
|
11657
11564
|
}
|
|
11658
|
-
if (_optionalChain([fetchedRowsInfo, 'optionalAccess',
|
|
11565
|
+
if (_optionalChain([fetchedRowsInfo, 'optionalAccess', _427 => _427.complete])) {
|
|
11659
11566
|
const guarded2 = assertDatasetHasExportableRows({
|
|
11660
11567
|
rowsInfo: fetchedRowsInfo,
|
|
11661
11568
|
status,
|
|
@@ -11720,7 +11627,7 @@ function extractActiveRunsFromError(error) {
|
|
|
11720
11627
|
if (!(error instanceof _chunkDIAWYWT5js.DeeplineError)) {
|
|
11721
11628
|
return [];
|
|
11722
11629
|
}
|
|
11723
|
-
const response = _optionalChain([error, 'access',
|
|
11630
|
+
const response = _optionalChain([error, 'access', _428 => _428.details, 'optionalAccess', _429 => _429.response]);
|
|
11724
11631
|
if (!response || typeof response !== "object" || Array.isArray(response)) {
|
|
11725
11632
|
return [];
|
|
11726
11633
|
}
|
|
@@ -11837,8 +11744,8 @@ function renderServerResultView(value) {
|
|
|
11837
11744
|
return { lines: [], actions: [] };
|
|
11838
11745
|
}
|
|
11839
11746
|
const view = value;
|
|
11840
|
-
const renderedSections = Array.isArray(_optionalChain([view, 'access',
|
|
11841
|
-
const renderedActions = Array.isArray(_optionalChain([view, 'access',
|
|
11747
|
+
const renderedSections = Array.isArray(_optionalChain([view, 'access', _430 => _430.render, 'optionalAccess', _431 => _431.sections])) ? view.render.sections : [];
|
|
11748
|
+
const renderedActions = Array.isArray(_optionalChain([view, 'access', _432 => _432.render, 'optionalAccess', _433 => _433.actions])) ? view.render.actions : [];
|
|
11842
11749
|
if (renderedSections.length > 0 || renderedActions.length > 0) {
|
|
11843
11750
|
const lines2 = [];
|
|
11844
11751
|
for (const section of renderedSections) {
|
|
@@ -11876,7 +11783,7 @@ function renderServerResultView(value) {
|
|
|
11876
11783
|
}
|
|
11877
11784
|
const tables = Array.isArray(view.tables) ? view.tables : [];
|
|
11878
11785
|
const topLevelOutputTable = view.topLevelOutputTable && typeof view.topLevelOutputTable === "object" && !Array.isArray(view.topLevelOutputTable) ? view.topLevelOutputTable : null;
|
|
11879
|
-
if (typeof _optionalChain([topLevelOutputTable, 'optionalAccess',
|
|
11786
|
+
if (typeof _optionalChain([topLevelOutputTable, 'optionalAccess', _434 => _434.queryCommand]) === "string") {
|
|
11880
11787
|
lines.push(` top-level outputs: ${topLevelOutputTable.queryCommand}`);
|
|
11881
11788
|
}
|
|
11882
11789
|
if (tables.length > 0) {
|
|
@@ -11923,7 +11830,7 @@ function renderServerResultView(value) {
|
|
|
11923
11830
|
function writeStartedPlayRun(input) {
|
|
11924
11831
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
11925
11832
|
const run = input.package.run;
|
|
11926
|
-
|
|
11833
|
+
_chunkJ5VDE42Gjs.recordPlayTermination.call(void 0, {
|
|
11927
11834
|
id: run.id,
|
|
11928
11835
|
status: run.status,
|
|
11929
11836
|
finishedAt: run.finishedAt
|
|
@@ -11936,7 +11843,7 @@ function writeStartedPlayRun(input) {
|
|
|
11936
11843
|
dashboardUrl: input.dashboardUrl,
|
|
11937
11844
|
package: input.package
|
|
11938
11845
|
};
|
|
11939
|
-
|
|
11846
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
11940
11847
|
json: true,
|
|
11941
11848
|
fields: input.jsonFields
|
|
11942
11849
|
});
|
|
@@ -11958,7 +11865,7 @@ function writeStartedPlayRun(input) {
|
|
|
11958
11865
|
input.progress.writeLine(output2, process.stdout);
|
|
11959
11866
|
return;
|
|
11960
11867
|
}
|
|
11961
|
-
|
|
11868
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, input.package, {
|
|
11962
11869
|
json: false,
|
|
11963
11870
|
text: `${output2}
|
|
11964
11871
|
`
|
|
@@ -11987,7 +11894,7 @@ function writeStartedPlayRun(input) {
|
|
|
11987
11894
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
11988
11895
|
];
|
|
11989
11896
|
if (input.jsonOutput) {
|
|
11990
|
-
|
|
11897
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
11991
11898
|
return;
|
|
11992
11899
|
}
|
|
11993
11900
|
if (input.dashboardUrl) {
|
|
@@ -11998,7 +11905,7 @@ function writeStartedPlayRun(input) {
|
|
|
11998
11905
|
input.progress.writeLine(output, process.stdout);
|
|
11999
11906
|
return;
|
|
12000
11907
|
}
|
|
12001
|
-
|
|
11908
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
12002
11909
|
{
|
|
12003
11910
|
...payload,
|
|
12004
11911
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12008,7 +11915,7 @@ function writeStartedPlayRun(input) {
|
|
|
12008
11915
|
);
|
|
12009
11916
|
}
|
|
12010
11917
|
function parsePlayCheckOptions(args) {
|
|
12011
|
-
const selection =
|
|
11918
|
+
const selection = _chunkLXYDN5FEjs.parseJsonFields.call(void 0, args, "check");
|
|
12012
11919
|
args = selection.args;
|
|
12013
11920
|
const target = args[0];
|
|
12014
11921
|
if (!target || target.startsWith("-")) {
|
|
@@ -12020,7 +11927,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12020
11927
|
if (arg !== "--json" && arg !== "--full")
|
|
12021
11928
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12022
11929
|
}
|
|
12023
|
-
const jsonOutput =
|
|
11930
|
+
const jsonOutput = _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
12024
11931
|
return {
|
|
12025
11932
|
target,
|
|
12026
11933
|
jsonOutput,
|
|
@@ -12096,7 +12003,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12096
12003
|
useLatest,
|
|
12097
12004
|
expectedArtifactHash,
|
|
12098
12005
|
dryRun,
|
|
12099
|
-
jsonOutput:
|
|
12006
|
+
jsonOutput: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args)
|
|
12100
12007
|
};
|
|
12101
12008
|
}
|
|
12102
12009
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12137,7 +12044,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12137
12044
|
target,
|
|
12138
12045
|
expectedArtifactHash,
|
|
12139
12046
|
dryRun,
|
|
12140
|
-
jsonOutput:
|
|
12047
|
+
jsonOutput: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args)
|
|
12141
12048
|
};
|
|
12142
12049
|
}
|
|
12143
12050
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12190,7 +12097,7 @@ function checkHintExpression(value) {
|
|
|
12190
12097
|
return stringValue2(value).replace(/^toolExecutionResult\./, "result.");
|
|
12191
12098
|
}
|
|
12192
12099
|
function checkHintRawPath(value) {
|
|
12193
|
-
return _optionalChain([value, 'optionalAccess',
|
|
12100
|
+
return _optionalChain([value, 'optionalAccess', _435 => _435.startsWith, 'call', _436 => _436("toolResponse.rawV2")]) ? value.replace(/^toolResponse\./, "result.toolResponse.") : void 0;
|
|
12194
12101
|
}
|
|
12195
12102
|
function collectStaticPipelineToolIds(staticPipeline) {
|
|
12196
12103
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -12265,30 +12172,30 @@ function cronExecutionLabel(status) {
|
|
|
12265
12172
|
}
|
|
12266
12173
|
function readLiveCronMetadata(play) {
|
|
12267
12174
|
const record3 = readRecord(play);
|
|
12268
|
-
const metadata = readRecord(_optionalChain([record3, 'optionalAccess',
|
|
12175
|
+
const metadata = readRecord(_optionalChain([record3, 'optionalAccess', _437 => _437.triggerMetadata]));
|
|
12269
12176
|
return {
|
|
12270
|
-
schedule: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12271
|
-
timezone: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12272
|
-
nextScheduledAt: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12273
|
-
blockedAt: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12274
|
-
blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12177
|
+
schedule: typeof _optionalChain([metadata, 'optionalAccess', _438 => _438.cronSchedule]) === "string" ? metadata.cronSchedule : null,
|
|
12178
|
+
timezone: typeof _optionalChain([metadata, 'optionalAccess', _439 => _439.cronTimezone]) === "string" ? metadata.cronTimezone : null,
|
|
12179
|
+
nextScheduledAt: typeof _optionalChain([metadata, 'optionalAccess', _440 => _440.nextScheduledAt]) === "number" ? metadata.nextScheduledAt : null,
|
|
12180
|
+
blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _441 => _441.blockedAt]) === "number" ? metadata.blockedAt : null,
|
|
12181
|
+
blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _442 => _442.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null
|
|
12275
12182
|
};
|
|
12276
12183
|
}
|
|
12277
12184
|
function liveTriggerStatusLines(status, play) {
|
|
12278
12185
|
const cron = readLiveCronMetadata(play);
|
|
12279
|
-
if (!_optionalChain([status, 'optionalAccess',
|
|
12186
|
+
if (!_optionalChain([status, 'optionalAccess', _443 => _443.cron]) && !cron.schedule && !_optionalChain([status, 'optionalAccess', _444 => _444.webhook])) return [];
|
|
12280
12187
|
const lines = [];
|
|
12281
|
-
if (_optionalChain([status, 'optionalAccess',
|
|
12188
|
+
if (_optionalChain([status, 'optionalAccess', _445 => _445.cron]) || cron.schedule) {
|
|
12282
12189
|
const timezone = cron.timezone ? ` (${cron.timezone})` : "";
|
|
12283
12190
|
lines.push(
|
|
12284
|
-
` Scheduled execution: ${cronExecutionLabel(_nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
12191
|
+
` Scheduled execution: ${cronExecutionLabel(_nullishCoalesce(_optionalChain([status, 'optionalAccess', _446 => _446.cron]), () => ( null)))}${cron.schedule ? ` \u2014 ${cron.schedule}${timezone}` : ""}`
|
|
12285
12192
|
);
|
|
12286
|
-
if (cron.nextScheduledAt !== null && _optionalChain([status, 'optionalAccess',
|
|
12193
|
+
if (cron.nextScheduledAt !== null && _optionalChain([status, 'optionalAccess', _447 => _447.cron]) === "active") {
|
|
12287
12194
|
lines.push(
|
|
12288
12195
|
` Next scheduled run: ${formatTimestamp(cron.nextScheduledAt)}`
|
|
12289
12196
|
);
|
|
12290
12197
|
}
|
|
12291
|
-
if (_optionalChain([status, 'optionalAccess',
|
|
12198
|
+
if (_optionalChain([status, 'optionalAccess', _448 => _448.blockedReason])) {
|
|
12292
12199
|
lines.push(` Schedule issue: ${status.blockedReason}`);
|
|
12293
12200
|
if (status.blockedReasonCode || cron.blockedReasonCode) {
|
|
12294
12201
|
lines.push(
|
|
@@ -12304,7 +12211,7 @@ function liveTriggerStatusLines(status, play) {
|
|
|
12304
12211
|
);
|
|
12305
12212
|
}
|
|
12306
12213
|
}
|
|
12307
|
-
if (_optionalChain([status, 'optionalAccess',
|
|
12214
|
+
if (_optionalChain([status, 'optionalAccess', _449 => _449.webhook])) {
|
|
12308
12215
|
lines.push(` Webhook: ${status.webhook}`);
|
|
12309
12216
|
}
|
|
12310
12217
|
return lines;
|
|
@@ -12312,11 +12219,11 @@ function liveTriggerStatusLines(status, play) {
|
|
|
12312
12219
|
function triggerStatusFromMetadata(value) {
|
|
12313
12220
|
const metadata = readRecord(value);
|
|
12314
12221
|
return {
|
|
12315
|
-
cron: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12316
|
-
webhook: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12317
|
-
blockedReason: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12318
|
-
blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12319
|
-
blockedAt: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12222
|
+
cron: typeof _optionalChain([metadata, 'optionalAccess', _450 => _450.cronStatus]) === "string" ? metadata.cronStatus : null,
|
|
12223
|
+
webhook: typeof _optionalChain([metadata, 'optionalAccess', _451 => _451.webhookStatus]) === "string" ? metadata.webhookStatus : null,
|
|
12224
|
+
blockedReason: typeof _optionalChain([metadata, 'optionalAccess', _452 => _452.blockedReason]) === "string" ? metadata.blockedReason : null,
|
|
12225
|
+
blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _453 => _453.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null,
|
|
12226
|
+
blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _454 => _454.blockedAt]) === "number" ? metadata.blockedAt : null
|
|
12320
12227
|
};
|
|
12321
12228
|
}
|
|
12322
12229
|
function printPublishReceipt(input) {
|
|
@@ -12335,7 +12242,7 @@ function printPublishReceipt(input) {
|
|
|
12335
12242
|
function formatPlaySandboxRuntimeWarning(declaration) {
|
|
12336
12243
|
if (!declaration) return null;
|
|
12337
12244
|
const warning = formatNonStandardSandboxRuntimeWarning(
|
|
12338
|
-
resolvePlaySandboxRuntimeLimits(declaration)
|
|
12245
|
+
_chunkYGCKMI5Pjs.resolvePlaySandboxRuntimeLimits.call(void 0, declaration)
|
|
12339
12246
|
);
|
|
12340
12247
|
return warning ? `Warning: ${warning}` : null;
|
|
12341
12248
|
}
|
|
@@ -12348,7 +12255,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12348
12255
|
async function handlePlayCheck(args) {
|
|
12349
12256
|
const options = parsePlayCheckOptions(args);
|
|
12350
12257
|
if (!isFileTarget(options.target)) {
|
|
12351
|
-
const client = new (0,
|
|
12258
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
12352
12259
|
try {
|
|
12353
12260
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12354
12261
|
command: "check"
|
|
@@ -12377,7 +12284,7 @@ async function handlePlayCheck(args) {
|
|
|
12377
12284
|
},
|
|
12378
12285
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12379
12286
|
};
|
|
12380
|
-
|
|
12287
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, result, {
|
|
12381
12288
|
json: options.jsonOutput,
|
|
12382
12289
|
fields: options.jsonFields,
|
|
12383
12290
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12387,7 +12294,7 @@ async function handlePlayCheck(args) {
|
|
|
12387
12294
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12388
12295
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12389
12296
|
if (options.jsonOutput) {
|
|
12390
|
-
|
|
12297
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
12391
12298
|
{
|
|
12392
12299
|
kind: "play_check",
|
|
12393
12300
|
checked: "named_contract",
|
|
@@ -12420,16 +12327,16 @@ async function handlePlayCheck(args) {
|
|
|
12420
12327
|
);
|
|
12421
12328
|
}
|
|
12422
12329
|
const primary = outcomes.find(
|
|
12423
|
-
(outcome) => outcome.exportName ===
|
|
12330
|
+
(outcome) => outcome.exportName === _chunk7UFFWPQ2js.PLAY_DEFAULT_EXPORT
|
|
12424
12331
|
);
|
|
12425
12332
|
const output = buildPlayCheckOutput({
|
|
12426
12333
|
outcomes,
|
|
12427
12334
|
target: options.target,
|
|
12428
12335
|
full: options.full,
|
|
12429
12336
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12430
|
-
publishCommand: _optionalChain([primary, 'optionalAccess',
|
|
12337
|
+
publishCommand: _optionalChain([primary, 'optionalAccess', _455 => _455.result, 'access', _456 => _456.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12431
12338
|
});
|
|
12432
|
-
|
|
12339
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, output, {
|
|
12433
12340
|
json: options.jsonOutput,
|
|
12434
12341
|
fields: options.jsonFields,
|
|
12435
12342
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12437,12 +12344,12 @@ async function handlePlayCheck(args) {
|
|
|
12437
12344
|
return output.valid ? 0 : 1;
|
|
12438
12345
|
}
|
|
12439
12346
|
function resolvePlayCheckExportNames(sourceCode) {
|
|
12440
|
-
const exports =
|
|
12441
|
-
if (!exports || exports.length === 0) return [
|
|
12347
|
+
const exports = _chunk7UFFWPQ2js.listPlayFileExports.call(void 0, sourceCode);
|
|
12348
|
+
if (!exports || exports.length === 0) return [_chunk7UFFWPQ2js.PLAY_DEFAULT_EXPORT];
|
|
12442
12349
|
return exports.map((entry) => entry.name);
|
|
12443
12350
|
}
|
|
12444
12351
|
function artifactForProductionCompatibilityCheck(artifact) {
|
|
12445
|
-
const rawEdition = _optionalChain([process, 'access',
|
|
12352
|
+
const rawEdition = _optionalChain([process, 'access', _457 => _457.env, 'access', _458 => _458.DEEPLINE_PROD_CHECK_AUTHORING_CONTRACT_EDITION, 'optionalAccess', _459 => _459.trim, 'call', _460 => _460()]);
|
|
12446
12353
|
if (!rawEdition) return artifact;
|
|
12447
12354
|
if (!/^\d+$/.test(rawEdition)) {
|
|
12448
12355
|
throw new Error(
|
|
@@ -12483,7 +12390,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12483
12390
|
}
|
|
12484
12391
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12485
12392
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12486
|
-
const client = new (0,
|
|
12393
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
12487
12394
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12488
12395
|
const checked = await checkLocalPlayGraph({
|
|
12489
12396
|
client,
|
|
@@ -12493,7 +12400,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12493
12400
|
integrationMode,
|
|
12494
12401
|
prepareArtifact: artifactForProductionCompatibilityCheck
|
|
12495
12402
|
});
|
|
12496
|
-
const importedPlayName = _optionalChain([checked, 'access',
|
|
12403
|
+
const importedPlayName = _optionalChain([checked, 'access', _461 => _461.failedChild, 'optionalAccess', _462 => _462.playName]);
|
|
12497
12404
|
const diagnosticPrefix = importedPlayName ? `Imported Play ${importedPlayName}: ` : "";
|
|
12498
12405
|
const valid = checked.result.valid && !checked.failedChild && authoringErrors.length === 0;
|
|
12499
12406
|
const errors = [
|
|
@@ -12509,7 +12416,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12509
12416
|
valid,
|
|
12510
12417
|
errors: valid ? checked.result.errors : addPlayCheckRepairHints({
|
|
12511
12418
|
errors,
|
|
12512
|
-
sourceCode: _nullishCoalesce(_optionalChain([checked, 'access',
|
|
12419
|
+
sourceCode: _nullishCoalesce(_optionalChain([checked, 'access', _463 => _463.failedChild, 'optionalAccess', _464 => _464.sourceCode]), () => ( graph.root.sourceCode))
|
|
12513
12420
|
}),
|
|
12514
12421
|
...checked.failedChild && checked.result.issues ? {
|
|
12515
12422
|
issues: checked.result.issues.map((issue) => ({
|
|
@@ -12536,11 +12443,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12536
12443
|
throw new Error("Expected a file-backed play run target.");
|
|
12537
12444
|
}
|
|
12538
12445
|
let client;
|
|
12539
|
-
let cliAdmission =
|
|
12446
|
+
let cliAdmission = _chunkJMCTNS6Sjs.usesInlinePlayAdmission.call(void 0,
|
|
12540
12447
|
"plays run",
|
|
12541
12448
|
process.argv.slice(2)
|
|
12542
12449
|
);
|
|
12543
|
-
const progress = _nullishCoalesce(
|
|
12450
|
+
const progress = _nullishCoalesce(_chunkAKVNUNL7js.getActiveCliProgress.call(void 0, ), () => ( _chunkAKVNUNL7js.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12544
12451
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12545
12452
|
progress.phase("compiling play");
|
|
12546
12453
|
const sourceCode = traceCliSync(
|
|
@@ -12557,13 +12464,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12557
12464
|
}
|
|
12558
12465
|
let graph;
|
|
12559
12466
|
try {
|
|
12560
|
-
graph = await
|
|
12467
|
+
graph = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12561
12468
|
"cli.play_file_bundle_graph",
|
|
12562
12469
|
{ targetKind: "file" },
|
|
12563
12470
|
() => collectBundledPlayGraph(
|
|
12564
12471
|
absolutePlayPath,
|
|
12565
12472
|
options.profile,
|
|
12566
|
-
|
|
12473
|
+
_chunk7UFFWPQ2js.PLAY_DEFAULT_EXPORT,
|
|
12567
12474
|
{ cache: !options.dryRun }
|
|
12568
12475
|
)
|
|
12569
12476
|
);
|
|
@@ -12571,14 +12478,14 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12571
12478
|
if (options.dryRun) {
|
|
12572
12479
|
progress.complete();
|
|
12573
12480
|
renderLocalPlayExecutionPlan(
|
|
12574
|
-
|
|
12481
|
+
_chunkFV7WGK5Xjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
|
|
12575
12482
|
{ dryRun: true, json: options.jsonOutput }
|
|
12576
12483
|
);
|
|
12577
12484
|
return 0;
|
|
12578
12485
|
}
|
|
12579
|
-
client = new (0,
|
|
12486
|
+
client = new (0, _chunkEMVWC5LPjs.DeeplineClient)(playRunClientOptions(options));
|
|
12580
12487
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12581
|
-
await
|
|
12488
|
+
await _chunkJMCTNS6Sjs.checkPlayRunCompatibility.call(void 0,
|
|
12582
12489
|
client.baseUrl,
|
|
12583
12490
|
options.maintenancePolicy
|
|
12584
12491
|
);
|
|
@@ -12591,7 +12498,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12591
12498
|
});
|
|
12592
12499
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12593
12500
|
if (canDeferCompilerManifest) {
|
|
12594
|
-
|
|
12501
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
12595
12502
|
phase: "cli.play_file_compile_manifests",
|
|
12596
12503
|
ms: 0,
|
|
12597
12504
|
ok: true,
|
|
@@ -12600,7 +12507,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12600
12507
|
reason: "validated_by_run_route"
|
|
12601
12508
|
});
|
|
12602
12509
|
} else {
|
|
12603
|
-
await
|
|
12510
|
+
await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12604
12511
|
"cli.play_file_compile_manifests",
|
|
12605
12512
|
{ targetKind: "file", skipped: false },
|
|
12606
12513
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12621,13 +12528,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12621
12528
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12622
12529
|
try {
|
|
12623
12530
|
renderLocalPlayExecutionPlan(
|
|
12624
|
-
|
|
12531
|
+
_chunkFV7WGK5Xjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12625
12532
|
);
|
|
12626
12533
|
progress.phase("pinning imported plays");
|
|
12627
|
-
graph = await
|
|
12534
|
+
graph = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12628
12535
|
"cli.play_file_pin_imports",
|
|
12629
12536
|
{ targetKind: "file" },
|
|
12630
|
-
() =>
|
|
12537
|
+
() => _chunkFV7WGK5Xjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12631
12538
|
);
|
|
12632
12539
|
bundleResult = graph.root;
|
|
12633
12540
|
} catch (error) {
|
|
@@ -12641,9 +12548,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12641
12548
|
);
|
|
12642
12549
|
const compilerManifest = _nullishCoalesce(bundleResult.compilerManifest, () => ( null));
|
|
12643
12550
|
const fileInputBindings = _chunkJDMR33HSjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12644
|
-
_optionalChain([compilerManifest, 'optionalAccess',
|
|
12551
|
+
_optionalChain([compilerManifest, 'optionalAccess', _465 => _465.staticPipeline])
|
|
12645
12552
|
);
|
|
12646
|
-
const stagedFileInputs = await
|
|
12553
|
+
const stagedFileInputs = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12647
12554
|
"cli.play_stage_inputs",
|
|
12648
12555
|
{
|
|
12649
12556
|
targetKind: "file",
|
|
@@ -12690,7 +12597,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12690
12597
|
};
|
|
12691
12598
|
if (options.watch) {
|
|
12692
12599
|
progress.phase("starting run");
|
|
12693
|
-
const finalStatus = await
|
|
12600
|
+
const finalStatus = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12694
12601
|
"cli.play_start_watch",
|
|
12695
12602
|
{ targetKind: "file", playName },
|
|
12696
12603
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12704,9 +12611,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12704
12611
|
waitTimeoutMs: options.waitTimeoutMs,
|
|
12705
12612
|
open: options.open,
|
|
12706
12613
|
progress,
|
|
12707
|
-
onRunStarted: _optionalChain([hooks, 'optionalAccess',
|
|
12708
|
-
onSubmission: _optionalChain([hooks, 'optionalAccess',
|
|
12709
|
-
onRunAdmitted: _optionalChain([hooks, 'optionalAccess',
|
|
12614
|
+
onRunStarted: _optionalChain([hooks, 'optionalAccess', _466 => _466.onRunStarted]),
|
|
12615
|
+
onSubmission: _optionalChain([hooks, 'optionalAccess', _467 => _467.onSubmission]),
|
|
12616
|
+
onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _468 => _468.onRunAdmitted]),
|
|
12710
12617
|
maintenancePolicy: options.maintenancePolicy,
|
|
12711
12618
|
...options.runIdFile ? {} : { fullJson: options.fullJson },
|
|
12712
12619
|
...cliAdmission ? {
|
|
@@ -12734,8 +12641,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12734
12641
|
),
|
|
12735
12642
|
options
|
|
12736
12643
|
);
|
|
12737
|
-
_optionalChain([hooks, 'optionalAccess',
|
|
12738
|
-
if (_optionalChain([hooks, 'optionalAccess',
|
|
12644
|
+
_optionalChain([hooks, 'optionalAccess', _469 => _469.onTerminalStatus, 'optionalCall', _470 => _470(outputStatus)]);
|
|
12645
|
+
if (_optionalChain([hooks, 'optionalAccess', _471 => _471.writeResult])) {
|
|
12739
12646
|
await hooks.writeResult(client, outputStatus);
|
|
12740
12647
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12741
12648
|
}
|
|
@@ -12750,20 +12657,20 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12750
12657
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12751
12658
|
}
|
|
12752
12659
|
progress.phase("starting run");
|
|
12753
|
-
const started = await
|
|
12660
|
+
const started = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12754
12661
|
"cli.play_start_unwatched",
|
|
12755
12662
|
{ targetKind: "file", playName },
|
|
12756
|
-
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess',
|
|
12663
|
+
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _472 => _472.onSubmission]) }).catch(async (error) => {
|
|
12757
12664
|
throw await normalizePlayStartError(client, error, playName);
|
|
12758
12665
|
})
|
|
12759
12666
|
);
|
|
12760
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
12761
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
12667
|
+
await _optionalChain([hooks, 'optionalAccess', _473 => _473.onRunStarted, 'optionalCall', _474 => _474(started.workflowId)]);
|
|
12668
|
+
await _optionalChain([hooks, 'optionalAccess', _475 => _475.onRunAdmitted, 'optionalCall', _476 => _476(started.workflowId)]);
|
|
12762
12669
|
const resolvedDashboardUrl = _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
|
|
12763
12670
|
openPlayDashboard(resolvedDashboardUrl, options.open);
|
|
12764
12671
|
progress.phase("started run");
|
|
12765
12672
|
progress.complete();
|
|
12766
|
-
if (_optionalChain([hooks, 'optionalAccess',
|
|
12673
|
+
if (_optionalChain([hooks, 'optionalAccess', _477 => _477.writeStarted])) {
|
|
12767
12674
|
hooks.writeStarted(started.workflowId, _nullishCoalesce(started.status, () => ( "started")));
|
|
12768
12675
|
return 0;
|
|
12769
12676
|
}
|
|
@@ -12790,7 +12697,7 @@ async function resolveNamedRunRevisionId(input) {
|
|
|
12790
12697
|
if (input.selector === "latest") {
|
|
12791
12698
|
const versions = await input.client.listPlayVersions(input.playName);
|
|
12792
12699
|
const latest = versions[0];
|
|
12793
|
-
if (!_optionalChain([latest, 'optionalAccess',
|
|
12700
|
+
if (!_optionalChain([latest, 'optionalAccess', _478 => _478._id])) {
|
|
12794
12701
|
throw new Error(`No saved revisions found for ${input.playName}.`);
|
|
12795
12702
|
}
|
|
12796
12703
|
return latest._id;
|
|
@@ -12801,12 +12708,12 @@ async function handleNamedRun(options, hooks) {
|
|
|
12801
12708
|
if (options.target.kind !== "name") {
|
|
12802
12709
|
throw new Error("Expected a named play run target.");
|
|
12803
12710
|
}
|
|
12804
|
-
const client = new (0,
|
|
12805
|
-
let cliAdmission =
|
|
12711
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)(playRunClientOptions(options));
|
|
12712
|
+
let cliAdmission = _chunkJMCTNS6Sjs.usesInlinePlayAdmission.call(void 0,
|
|
12806
12713
|
"plays run",
|
|
12807
12714
|
process.argv.slice(2)
|
|
12808
12715
|
);
|
|
12809
|
-
const progress = _nullishCoalesce(
|
|
12716
|
+
const progress = _nullishCoalesce(_chunkAKVNUNL7js.getActiveCliProgress.call(void 0, ), () => ( _chunkAKVNUNL7js.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12810
12717
|
const playName = options.target.name;
|
|
12811
12718
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
12812
12719
|
try {
|
|
@@ -12821,14 +12728,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
12821
12728
|
});
|
|
12822
12729
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
12823
12730
|
progress.phase("loading play definition");
|
|
12824
|
-
return
|
|
12731
|
+
return _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12825
12732
|
"cli.play_load_definition",
|
|
12826
12733
|
{ targetKind: "name", playName, skipped: false },
|
|
12827
12734
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
12828
12735
|
command: "run"
|
|
12829
12736
|
})
|
|
12830
12737
|
);
|
|
12831
|
-
})() : (
|
|
12738
|
+
})() : (_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
12832
12739
|
phase: "cli.play_load_definition",
|
|
12833
12740
|
ms: 0,
|
|
12834
12741
|
ok: true,
|
|
@@ -12837,7 +12744,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12837
12744
|
skipped: true
|
|
12838
12745
|
}), null);
|
|
12839
12746
|
progress.phase("selecting revision");
|
|
12840
|
-
const selectedRevisionId = await
|
|
12747
|
+
const selectedRevisionId = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12841
12748
|
"cli.play_select_revision",
|
|
12842
12749
|
{
|
|
12843
12750
|
targetKind: "name",
|
|
@@ -12862,10 +12769,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
12862
12769
|
..._chunkJDMR33HSjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
12863
12770
|
] : [];
|
|
12864
12771
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
12865
|
-
await
|
|
12772
|
+
await _chunkJMCTNS6Sjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
12866
12773
|
cliAdmission = false;
|
|
12867
12774
|
}
|
|
12868
|
-
const stagedFileInputs = await
|
|
12775
|
+
const stagedFileInputs = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12869
12776
|
"cli.play_stage_inputs",
|
|
12870
12777
|
{
|
|
12871
12778
|
targetKind: "name",
|
|
@@ -12909,7 +12816,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12909
12816
|
});
|
|
12910
12817
|
if (options.watch) {
|
|
12911
12818
|
progress.phase("starting run");
|
|
12912
|
-
const finalStatus = await
|
|
12819
|
+
const finalStatus = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12913
12820
|
"cli.play_start_watch",
|
|
12914
12821
|
{ targetKind: "name", playName },
|
|
12915
12822
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12923,9 +12830,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
12923
12830
|
waitTimeoutMs: options.waitTimeoutMs,
|
|
12924
12831
|
open: options.open,
|
|
12925
12832
|
progress,
|
|
12926
|
-
onRunStarted: _optionalChain([hooks, 'optionalAccess',
|
|
12927
|
-
onSubmission: _optionalChain([hooks, 'optionalAccess',
|
|
12928
|
-
onRunAdmitted: _optionalChain([hooks, 'optionalAccess',
|
|
12833
|
+
onRunStarted: _optionalChain([hooks, 'optionalAccess', _479 => _479.onRunStarted]),
|
|
12834
|
+
onSubmission: _optionalChain([hooks, 'optionalAccess', _480 => _480.onSubmission]),
|
|
12835
|
+
onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _481 => _481.onRunAdmitted]),
|
|
12929
12836
|
maintenancePolicy: options.maintenancePolicy,
|
|
12930
12837
|
...options.runIdFile ? {} : { fullJson: options.fullJson },
|
|
12931
12838
|
...cliAdmission ? {
|
|
@@ -12956,8 +12863,8 @@ async function handleNamedRun(options, hooks) {
|
|
|
12956
12863
|
options,
|
|
12957
12864
|
_nullishCoalesce(finalStatus.revisionId, () => ( selectedRevisionId))
|
|
12958
12865
|
);
|
|
12959
|
-
_optionalChain([hooks, 'optionalAccess',
|
|
12960
|
-
if (_optionalChain([hooks, 'optionalAccess',
|
|
12866
|
+
_optionalChain([hooks, 'optionalAccess', _482 => _482.onTerminalStatus, 'optionalCall', _483 => _483(outputStatus)]);
|
|
12867
|
+
if (_optionalChain([hooks, 'optionalAccess', _484 => _484.writeResult])) {
|
|
12961
12868
|
await hooks.writeResult(client, outputStatus);
|
|
12962
12869
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12963
12870
|
}
|
|
@@ -12972,22 +12879,22 @@ async function handleNamedRun(options, hooks) {
|
|
|
12972
12879
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12973
12880
|
}
|
|
12974
12881
|
progress.phase("starting run");
|
|
12975
|
-
const started = await
|
|
12882
|
+
const started = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12976
12883
|
"cli.play_start_unwatched",
|
|
12977
12884
|
{ targetKind: "name", playName },
|
|
12978
|
-
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess',
|
|
12885
|
+
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _485 => _485.onSubmission]) }).catch(async (error) => {
|
|
12979
12886
|
throw await normalizePlayStartError(client, error, playName, {
|
|
12980
12887
|
suggestMissingPlay: true
|
|
12981
12888
|
});
|
|
12982
12889
|
})
|
|
12983
12890
|
);
|
|
12984
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
12985
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
12891
|
+
await _optionalChain([hooks, 'optionalAccess', _486 => _486.onRunStarted, 'optionalCall', _487 => _487(started.workflowId)]);
|
|
12892
|
+
await _optionalChain([hooks, 'optionalAccess', _488 => _488.onRunAdmitted, 'optionalCall', _489 => _489(started.workflowId)]);
|
|
12986
12893
|
const resolvedDashboardUrl = _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
|
|
12987
12894
|
openPlayDashboard(resolvedDashboardUrl, options.open);
|
|
12988
12895
|
progress.phase("started run");
|
|
12989
12896
|
progress.complete();
|
|
12990
|
-
if (_optionalChain([hooks, 'optionalAccess',
|
|
12897
|
+
if (_optionalChain([hooks, 'optionalAccess', _490 => _490.writeStarted])) {
|
|
12991
12898
|
hooks.writeStarted(started.workflowId, _nullishCoalesce(started.status, () => ( "started")));
|
|
12992
12899
|
return 0;
|
|
12993
12900
|
}
|
|
@@ -13012,12 +12919,12 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13012
12919
|
const compact = compactPlayStatus(status);
|
|
13013
12920
|
const errors = Array.isArray(compact.errors) ? compact.errors : [];
|
|
13014
12921
|
const error = status.status === "failed" ? _nullishCoalesce(errors[0], () => ( {
|
|
13015
|
-
message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access',
|
|
12922
|
+
message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access', _491 => _491.progress, 'optionalAccess', _492 => _492.error]))), () => ( "Play failed. Inspect the run for details."))
|
|
13016
12923
|
})) : null;
|
|
13017
12924
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13018
|
-
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access',
|
|
12925
|
+
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _493 => _493.exec, 'call', _494 => _494(status.runId), 'optionalAccess', _495 => _495[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13019
12926
|
if (!terminal) {
|
|
13020
|
-
|
|
12927
|
+
_chunkJ5VDE42Gjs.writeExecutionOutput.call(void 0,
|
|
13021
12928
|
{ id: status.runId, status: status.status, next },
|
|
13022
12929
|
output
|
|
13023
12930
|
);
|
|
@@ -13076,11 +12983,11 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13076
12983
|
Object.entries(handle).filter(([key]) => source !== "result" || key !== "_metadata").map(([key, child]) => [key, materialize(child, `${source}.${key}`)])
|
|
13077
12984
|
);
|
|
13078
12985
|
};
|
|
13079
|
-
const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call',
|
|
12986
|
+
const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call', _496 => _496(status), 'optionalAccess', _497 => _497.outputs]));
|
|
13080
12987
|
const returned = status.result !== void 0 ? status.result : packagedOutputs ? Object.fromEntries(
|
|
13081
12988
|
Object.entries(packagedOutputs).map(([key, value]) => [
|
|
13082
12989
|
key,
|
|
13083
|
-
_optionalChain([readRecord, 'call',
|
|
12990
|
+
_optionalChain([readRecord, 'call', _498 => _498(value), 'optionalAccess', _499 => _499.kind]) === "value" ? _optionalChain([readRecord, 'call', _500 => _500(value), 'optionalAccess', _501 => _501.value]) : value
|
|
13084
12991
|
])
|
|
13085
12992
|
) : null;
|
|
13086
12993
|
let data = materialize(returned);
|
|
@@ -13092,10 +12999,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13092
12999
|
};
|
|
13093
13000
|
}
|
|
13094
13001
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13095
|
-
const allCollections =
|
|
13002
|
+
const allCollections = _chunkJ5VDE42Gjs.outputCollections.call(void 0, data).map(
|
|
13096
13003
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13097
13004
|
);
|
|
13098
|
-
|
|
13005
|
+
_chunkJ5VDE42Gjs.writeExecutionOutput.call(void 0,
|
|
13099
13006
|
{
|
|
13100
13007
|
id: status.runId,
|
|
13101
13008
|
status: status.status,
|
|
@@ -13103,7 +13010,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13103
13010
|
...allCollections.length ? { collections: allCollections } : {},
|
|
13104
13011
|
complete: allCollections.every((c) => c.complete === true) ? true : allCollections.some((c) => c.complete === false) ? false : null,
|
|
13105
13012
|
error,
|
|
13106
|
-
credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access',
|
|
13013
|
+
credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _502 => _502.billing, 'optionalAccess', _503 => _503.totalCredits]))), () => ( null)),
|
|
13107
13014
|
...playName ? { page: _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) } : {},
|
|
13108
13015
|
warnings: [
|
|
13109
13016
|
...buildRunWarnings(status, null),
|
|
@@ -13116,7 +13023,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13116
13023
|
}
|
|
13117
13024
|
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;
|
|
13118
13025
|
async function handlePlayRun(args, hooks) {
|
|
13119
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13026
|
+
const parsedOptions = Array.isArray(args) ? _chunkN4M6CO5Hjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13120
13027
|
const options = parsedOptions.runIdFile ? {
|
|
13121
13028
|
...parsedOptions,
|
|
13122
13029
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13133,7 +13040,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13133
13040
|
JSON.stringify({
|
|
13134
13041
|
version: 1,
|
|
13135
13042
|
admissionState: "submitted_unknown",
|
|
13136
|
-
baseUrl: new (0,
|
|
13043
|
+
baseUrl: new (0, _chunkEMVWC5LPjs.DeeplineClient)().baseUrl,
|
|
13137
13044
|
...intent
|
|
13138
13045
|
})
|
|
13139
13046
|
);
|
|
@@ -13145,7 +13052,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13145
13052
|
} finally {
|
|
13146
13053
|
await removeRunIdTempFile(tempPath);
|
|
13147
13054
|
}
|
|
13148
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13055
|
+
await _optionalChain([hooks, 'optionalAccess', _504 => _504.onSubmission, 'optionalCall', _505 => _505(intent)]);
|
|
13149
13056
|
},
|
|
13150
13057
|
onRunStarted: async (runId) => {
|
|
13151
13058
|
try {
|
|
@@ -13156,7 +13063,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13156
13063
|
{ cause: error }
|
|
13157
13064
|
);
|
|
13158
13065
|
}
|
|
13159
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13066
|
+
await _optionalChain([hooks, 'optionalAccess', _506 => _506.onRunStarted, 'optionalCall', _507 => _507(runId)]);
|
|
13160
13067
|
},
|
|
13161
13068
|
onRunAdmitted: async (runId) => {
|
|
13162
13069
|
try {
|
|
@@ -13169,7 +13076,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13169
13076
|
{ cause: error }
|
|
13170
13077
|
);
|
|
13171
13078
|
}
|
|
13172
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13079
|
+
await _optionalChain([hooks, 'optionalAccess', _508 => _508.onRunAdmitted, 'optionalCall', _509 => _509(runId)]);
|
|
13173
13080
|
}
|
|
13174
13081
|
} : hooks;
|
|
13175
13082
|
if (options.target.kind === "file") {
|
|
@@ -13248,10 +13155,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13248
13155
|
...buildRunActivityTextLines(run),
|
|
13249
13156
|
...buildRunStatusEvidenceTextLines(overview)
|
|
13250
13157
|
];
|
|
13251
|
-
if (_optionalChain([overview, 'access',
|
|
13158
|
+
if (_optionalChain([overview, 'access', _510 => _510.runStatus, 'optionalAccess', _511 => _511.available]) === false)
|
|
13252
13159
|
lines.push(` call progress: unavailable (${overview.runStatus.reason})`);
|
|
13253
|
-
const work = readRecord(_optionalChain([readRecord, 'call',
|
|
13254
|
-
if (work && !_optionalChain([overview, 'access',
|
|
13160
|
+
const work = readRecord(_optionalChain([readRecord, 'call', _512 => _512(run), 'optionalAccess', _513 => _513.work]));
|
|
13161
|
+
if (work && !_optionalChain([overview, 'access', _514 => _514.runStatus, 'optionalAccess', _515 => _515.available]))
|
|
13255
13162
|
lines.push(
|
|
13256
13163
|
` calls (${_nullishCoalesce(work.scope, () => ( "attempt scope unknown"))}): ${formatObservedRunCounter({ value: work.logicalCalls, confirmed: true })} logical, ${formatObservedRunCounter({ value: work.providerRequests, confirmed: true })} provider requests`
|
|
13257
13164
|
);
|
|
@@ -13302,7 +13209,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13302
13209
|
...overview.failedLogs.warning ? [`warning: ${overview.failedLogs.warning}`] : [],
|
|
13303
13210
|
...overview.failedLogs.logsTruncated ? ["Older log bodies were not retained."] : [],
|
|
13304
13211
|
...overview.failedLogs.entries,
|
|
13305
|
-
..._optionalChain([overview, 'access',
|
|
13212
|
+
..._optionalChain([overview, 'access', _516 => _516.failedLogs, 'access', _517 => _517.next, 'optionalAccess', _518 => _518.logs]) ? [`More logs: ${overview.failedLogs.next.logs}`] : []
|
|
13306
13213
|
]
|
|
13307
13214
|
});
|
|
13308
13215
|
sections.push({
|
|
@@ -13362,7 +13269,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13362
13269
|
);
|
|
13363
13270
|
return `${lines.join("\n")}
|
|
13364
13271
|
|
|
13365
|
-
${
|
|
13272
|
+
${_chunkLXYDN5FEjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13366
13273
|
}
|
|
13367
13274
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13368
13275
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13373,7 +13280,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13373
13280
|
const progressTimer = setInterval(() => {
|
|
13374
13281
|
console.error(`[${command}] ${stage} still running after ${elapsedMs()}ms`);
|
|
13375
13282
|
}, RUN_READ_TIMING_PROGRESS_INTERVAL_MS);
|
|
13376
|
-
_optionalChain([progressTimer, 'access',
|
|
13283
|
+
_optionalChain([progressTimer, 'access', _519 => _519.unref, 'optionalCall', _520 => _520()]);
|
|
13377
13284
|
try {
|
|
13378
13285
|
const result = await action();
|
|
13379
13286
|
console.error(`[${command}] ${stage} completed in ${elapsedMs()}ms`);
|
|
@@ -13386,7 +13293,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13386
13293
|
}
|
|
13387
13294
|
}
|
|
13388
13295
|
async function handleRunGet(args) {
|
|
13389
|
-
const selection =
|
|
13296
|
+
const selection = _chunkLXYDN5FEjs.parseJsonFields.call(void 0,
|
|
13390
13297
|
args,
|
|
13391
13298
|
args.includes("--config") ? "config" : "get"
|
|
13392
13299
|
);
|
|
@@ -13399,7 +13306,7 @@ async function handleRunGet(args) {
|
|
|
13399
13306
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13400
13307
|
return 1;
|
|
13401
13308
|
}
|
|
13402
|
-
const client = new (0,
|
|
13309
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
13403
13310
|
const timing = args.includes("--timing");
|
|
13404
13311
|
if (args.includes("--web-url")) {
|
|
13405
13312
|
const status2 = await withRunReadTiming(
|
|
@@ -13414,7 +13321,7 @@ async function handleRunGet(args) {
|
|
|
13414
13321
|
return 1;
|
|
13415
13322
|
}
|
|
13416
13323
|
const dashboardUrl2 = _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13417
|
-
|
|
13324
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13418
13325
|
{ dashboardUrl: dashboardUrl2 },
|
|
13419
13326
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
13420
13327
|
` }
|
|
@@ -13439,7 +13346,7 @@ async function handleRunGet(args) {
|
|
|
13439
13346
|
"This server does not support recorded configuration reads."
|
|
13440
13347
|
);
|
|
13441
13348
|
}
|
|
13442
|
-
|
|
13349
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13443
13350
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13444
13351
|
{ json: true, fields: selection.fields }
|
|
13445
13352
|
);
|
|
@@ -13452,7 +13359,7 @@ async function handleRunGet(args) {
|
|
|
13452
13359
|
timing,
|
|
13453
13360
|
() => client.getRunInput(runId)
|
|
13454
13361
|
);
|
|
13455
|
-
|
|
13362
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13456
13363
|
return 0;
|
|
13457
13364
|
}
|
|
13458
13365
|
const full = args.includes("--full");
|
|
@@ -13465,7 +13372,7 @@ async function handleRunGet(args) {
|
|
|
13465
13372
|
failedLogs: args.includes("--log-failed")
|
|
13466
13373
|
})
|
|
13467
13374
|
);
|
|
13468
|
-
if (status.package)
|
|
13375
|
+
if (status.package) _chunkJ5VDE42Gjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13469
13376
|
if (!status.package) {
|
|
13470
13377
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13471
13378
|
"runs get",
|
|
@@ -13478,8 +13385,8 @@ async function handleRunGet(args) {
|
|
|
13478
13385
|
) : status;
|
|
13479
13386
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13480
13387
|
const legacyDashboardUrl = legacyPlayName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13481
|
-
if (
|
|
13482
|
-
|
|
13388
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
13389
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13483
13390
|
{
|
|
13484
13391
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13485
13392
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -13489,7 +13396,7 @@ async function handleRunGet(args) {
|
|
|
13489
13396
|
} else {
|
|
13490
13397
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13491
13398
|
if (legacyDashboardUrl)
|
|
13492
|
-
|
|
13399
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13493
13400
|
{ dashboardUrl: legacyDashboardUrl },
|
|
13494
13401
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
13495
13402
|
` }
|
|
@@ -13519,10 +13426,10 @@ async function handleRunGet(args) {
|
|
|
13519
13426
|
)
|
|
13520
13427
|
]);
|
|
13521
13428
|
const hitLines = formatRunHitsLines(hits);
|
|
13522
|
-
const json =
|
|
13429
|
+
const json = _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
13523
13430
|
const playName = resolveRunPlayName(status, runId);
|
|
13524
13431
|
const dashboardUrl = playName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13525
|
-
|
|
13432
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13526
13433
|
{
|
|
13527
13434
|
...overview,
|
|
13528
13435
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13626,9 +13533,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13626
13533
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13627
13534
|
return 1;
|
|
13628
13535
|
}
|
|
13629
|
-
const status = await new (0,
|
|
13630
|
-
if (
|
|
13631
|
-
|
|
13536
|
+
const status = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().runs.status(runId);
|
|
13537
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
13538
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13632
13539
|
return 0;
|
|
13633
13540
|
}
|
|
13634
13541
|
if (!status.available) {
|
|
@@ -13668,7 +13575,7 @@ async function handleRunsRerun(args) {
|
|
|
13668
13575
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13669
13576
|
return 1;
|
|
13670
13577
|
}
|
|
13671
|
-
const options = { json:
|
|
13578
|
+
const options = { json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) };
|
|
13672
13579
|
for (let index = 0; index < args.length; index += 1) {
|
|
13673
13580
|
if (args[index] === "--idempotency-key") {
|
|
13674
13581
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13734,8 +13641,8 @@ ${usage2}
|
|
|
13734
13641
|
Discover Plays: ${next.discover}
|
|
13735
13642
|
Active runs: ${next.running}`
|
|
13736
13643
|
);
|
|
13737
|
-
if (
|
|
13738
|
-
|
|
13644
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
13645
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13739
13646
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13740
13647
|
{ json: true }
|
|
13741
13648
|
);
|
|
@@ -13750,7 +13657,7 @@ Active runs: ${next.running}`
|
|
|
13750
13657
|
console.error("--offset requires --play.");
|
|
13751
13658
|
return 1;
|
|
13752
13659
|
}
|
|
13753
|
-
const client = new (0,
|
|
13660
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
13754
13661
|
const page = await withRunReadTiming(
|
|
13755
13662
|
"runs list",
|
|
13756
13663
|
"run inventory",
|
|
@@ -13785,7 +13692,7 @@ Active runs: ${next.running}`
|
|
|
13785
13692
|
executionTime: run.executionTime,
|
|
13786
13693
|
billingTotalCredits: run.billingTotalCredits,
|
|
13787
13694
|
billingMaxCreditsPerRun: run.billingMaxCreditsPerRun,
|
|
13788
|
-
playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access',
|
|
13695
|
+
playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _521 => _521.memo, 'optionalAccess', _522 => _522.playName]))), () => ( playName)), () => ( null)),
|
|
13789
13696
|
...nodeId ? { nodeObservation: _nullishCoalesce(run.nodeObservation, () => ( null)) } : {}
|
|
13790
13697
|
}));
|
|
13791
13698
|
const lines = runs.length === 0 ? [
|
|
@@ -13817,14 +13724,14 @@ Active runs: ${next.running}`
|
|
|
13817
13724
|
return lines2.join("\n");
|
|
13818
13725
|
});
|
|
13819
13726
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
13820
|
-
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}${
|
|
13727
|
+
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}${_chunkLXYDN5FEjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
13821
13728
|
if (page.hasMore) {
|
|
13822
13729
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
13823
13730
|
lines.push(
|
|
13824
13731
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
13825
13732
|
);
|
|
13826
13733
|
}
|
|
13827
|
-
|
|
13734
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13828
13735
|
{
|
|
13829
13736
|
runs,
|
|
13830
13737
|
count: runs.length,
|
|
@@ -13834,11 +13741,11 @@ Active runs: ${next.running}`
|
|
|
13834
13741
|
...page.hasMore !== void 0 ? { has_more: page.hasMore, is_truncated: page.hasMore } : {},
|
|
13835
13742
|
next: {
|
|
13836
13743
|
page: nextPage,
|
|
13837
|
-
get: _optionalChain([runs, 'access',
|
|
13744
|
+
get: _optionalChain([runs, 'access', _523 => _523[0], 'optionalAccess', _524 => _524.id]) ? `deepline runs get ${runs[0].id}` : null
|
|
13838
13745
|
},
|
|
13839
13746
|
render: { sections: [{ title: "runs", lines }] }
|
|
13840
13747
|
},
|
|
13841
|
-
{ json:
|
|
13748
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) }
|
|
13842
13749
|
);
|
|
13843
13750
|
return 0;
|
|
13844
13751
|
}
|
|
@@ -13868,7 +13775,7 @@ async function handleRunTail(args) {
|
|
|
13868
13775
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
13869
13776
|
return 1;
|
|
13870
13777
|
}
|
|
13871
|
-
const parsed =
|
|
13778
|
+
const parsed = _chunkGSULE54Ljs.parseLogLevel.call(void 0, value);
|
|
13872
13779
|
if (!parsed) {
|
|
13873
13780
|
console.error(
|
|
13874
13781
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -13906,9 +13813,9 @@ async function handleRunTail(args) {
|
|
|
13906
13813
|
);
|
|
13907
13814
|
return 1;
|
|
13908
13815
|
}
|
|
13909
|
-
const client = new (0,
|
|
13816
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
13910
13817
|
const jsonLines = args.includes("--jsonl");
|
|
13911
|
-
const jsonOutput = !jsonLines &&
|
|
13818
|
+
const jsonOutput = !jsonLines && _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
13912
13819
|
const compact = args.includes("--compact");
|
|
13913
13820
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
13914
13821
|
const compactState = {
|
|
@@ -13989,7 +13896,7 @@ async function handleRunLogs(args) {
|
|
|
13989
13896
|
]);
|
|
13990
13897
|
const cursorIndex = args.indexOf("--cursor");
|
|
13991
13898
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
13992
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
13899
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkGSULE54Ljs.isRunLogsCursor.call(void 0, cursorValue));
|
|
13993
13900
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
13994
13901
|
return handleRunEventSearch(args);
|
|
13995
13902
|
}
|
|
@@ -14023,7 +13930,7 @@ async function handleRunLogs(args) {
|
|
|
14023
13930
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14024
13931
|
return 1;
|
|
14025
13932
|
}
|
|
14026
|
-
const parsed =
|
|
13933
|
+
const parsed = _chunkGSULE54Ljs.parseLogLevel.call(void 0, value);
|
|
14027
13934
|
if (!parsed) {
|
|
14028
13935
|
console.error(
|
|
14029
13936
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14070,12 +13977,12 @@ async function handleRunLogs(args) {
|
|
|
14070
13977
|
);
|
|
14071
13978
|
return 1;
|
|
14072
13979
|
}
|
|
14073
|
-
const client = new (0,
|
|
13980
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14074
13981
|
if (outPath) {
|
|
14075
13982
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14076
|
-
const logs = result2.entries.filter((line) =>
|
|
13983
|
+
const logs = result2.entries.filter((line) => _chunkGSULE54Ljs.logLevelReaches.call(void 0, _chunkGSULE54Ljs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkGSULE54Ljs.classifyLogLine.call(void 0, line).line);
|
|
14077
13984
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14078
|
-
|
|
13985
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14079
13986
|
{
|
|
14080
13987
|
runId: result2.runId,
|
|
14081
13988
|
log_path: outPath,
|
|
@@ -14098,7 +14005,7 @@ async function handleRunLogs(args) {
|
|
|
14098
14005
|
]
|
|
14099
14006
|
}
|
|
14100
14007
|
},
|
|
14101
|
-
{ json:
|
|
14008
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) }
|
|
14102
14009
|
);
|
|
14103
14010
|
return 0;
|
|
14104
14011
|
}
|
|
@@ -14129,7 +14036,7 @@ async function handleRunLogs(args) {
|
|
|
14129
14036
|
}
|
|
14130
14037
|
};
|
|
14131
14038
|
const text = buildRunLogsText(filteredResult);
|
|
14132
|
-
|
|
14039
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14133
14040
|
{
|
|
14134
14041
|
runId: result.runId,
|
|
14135
14042
|
totalCount: result.totalCount,
|
|
@@ -14153,7 +14060,7 @@ async function handleRunLogs(args) {
|
|
|
14153
14060
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14154
14061
|
},
|
|
14155
14062
|
{
|
|
14156
|
-
json:
|
|
14063
|
+
json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args),
|
|
14157
14064
|
text
|
|
14158
14065
|
}
|
|
14159
14066
|
);
|
|
@@ -14177,17 +14084,17 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14177
14084
|
);
|
|
14178
14085
|
}
|
|
14179
14086
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14180
|
-
(entry) =>
|
|
14087
|
+
(entry) => _chunkGSULE54Ljs.logLevelReaches.call(void 0, _chunkGSULE54Ljs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14181
14088
|
);
|
|
14182
14089
|
const selected = matching.slice(-limit);
|
|
14183
14090
|
const olderMatchesExist = matching.length > selected.length;
|
|
14184
14091
|
return {
|
|
14185
14092
|
entries: selected.map((entry) => entry.line),
|
|
14186
|
-
firstSequence: _nullishCoalesce(_optionalChain([selected, 'access',
|
|
14187
|
-
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access',
|
|
14093
|
+
firstSequence: _nullishCoalesce(_optionalChain([selected, 'access', _525 => _525[0], 'optionalAccess', _526 => _526.seq]), () => ( null)),
|
|
14094
|
+
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _527 => _527.at, 'call', _528 => _528(-1), 'optionalAccess', _529 => _529.seq]), () => ( null)),
|
|
14188
14095
|
truncated: result.truncated || olderMatchesExist,
|
|
14189
14096
|
hasMore: olderMatchesExist,
|
|
14190
|
-
nextCursor: olderMatchesExist ?
|
|
14097
|
+
nextCursor: olderMatchesExist ? _chunkGSULE54Ljs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14191
14098
|
};
|
|
14192
14099
|
}
|
|
14193
14100
|
async function handleRunEventSearch(args) {
|
|
@@ -14254,7 +14161,7 @@ ${usage2}`);
|
|
|
14254
14161
|
namespace,
|
|
14255
14162
|
...backend ? { backend } : {}
|
|
14256
14163
|
} : void 0;
|
|
14257
|
-
const client = new (0,
|
|
14164
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14258
14165
|
const result = await client.runs.searchEvents({
|
|
14259
14166
|
...runId ? { runId } : {},
|
|
14260
14167
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14326,7 +14233,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14326
14233
|
"--limit",
|
|
14327
14234
|
String(limit)
|
|
14328
14235
|
].join(" ") : null;
|
|
14329
|
-
|
|
14236
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14330
14237
|
{
|
|
14331
14238
|
events,
|
|
14332
14239
|
nextCursor: result.nextCursor,
|
|
@@ -14337,19 +14244,19 @@ ${renderedDetails}` : ""}`;
|
|
|
14337
14244
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14338
14245
|
},
|
|
14339
14246
|
{
|
|
14340
|
-
json:
|
|
14247
|
+
json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args),
|
|
14341
14248
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14342
14249
|
}
|
|
14343
14250
|
);
|
|
14344
14251
|
return 0;
|
|
14345
14252
|
}
|
|
14346
14253
|
function buildRunLogsText(result) {
|
|
14347
|
-
const lines = result.entries.map((line) =>
|
|
14254
|
+
const lines = result.entries.map((line) => _chunkGSULE54Ljs.classifyLogLine.call(void 0, line).line);
|
|
14348
14255
|
if (result.warning) {
|
|
14349
14256
|
if (lines.length > 0) lines.push("");
|
|
14350
14257
|
lines.push(`warning: ${result.warning}`);
|
|
14351
14258
|
lines.push(
|
|
14352
|
-
`retained logs: ${_nullishCoalesce(_optionalChain([result, 'access',
|
|
14259
|
+
`retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _530 => _530.next, 'optionalAccess', _531 => _531.logs]), () => ( `deepline runs logs ${result.runId} --out run.log`))}`
|
|
14353
14260
|
);
|
|
14354
14261
|
}
|
|
14355
14262
|
return `${lines.join("\n")}${lines.length > 0 ? "\n" : ""}`;
|
|
@@ -14378,7 +14285,7 @@ async function handleRunStop(args) {
|
|
|
14378
14285
|
reason = args[++index];
|
|
14379
14286
|
}
|
|
14380
14287
|
}
|
|
14381
|
-
const client = new (0,
|
|
14288
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14382
14289
|
const result = await client.runs.stop(runId, { reason });
|
|
14383
14290
|
const state = resolveRunStopState(result);
|
|
14384
14291
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14393,7 +14300,7 @@ async function handleRunStop(args) {
|
|
|
14393
14300
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14394
14301
|
`inspect: deepline runs get ${runId} --full`
|
|
14395
14302
|
];
|
|
14396
|
-
|
|
14303
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14397
14304
|
{
|
|
14398
14305
|
...cancelling,
|
|
14399
14306
|
state,
|
|
@@ -14408,7 +14315,7 @@ async function handleRunStop(args) {
|
|
|
14408
14315
|
]
|
|
14409
14316
|
}
|
|
14410
14317
|
},
|
|
14411
|
-
{ json:
|
|
14318
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) }
|
|
14412
14319
|
);
|
|
14413
14320
|
return 0;
|
|
14414
14321
|
}
|
|
@@ -14425,7 +14332,7 @@ async function handleRunStop(args) {
|
|
|
14425
14332
|
];
|
|
14426
14333
|
process.stderr.write(`${lines2.join("\n")}
|
|
14427
14334
|
`);
|
|
14428
|
-
|
|
14335
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14429
14336
|
{
|
|
14430
14337
|
...result,
|
|
14431
14338
|
render: {
|
|
@@ -14440,7 +14347,7 @@ async function handleRunStop(args) {
|
|
|
14440
14347
|
]
|
|
14441
14348
|
}
|
|
14442
14349
|
},
|
|
14443
|
-
{ json:
|
|
14350
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) }
|
|
14444
14351
|
);
|
|
14445
14352
|
return 1;
|
|
14446
14353
|
}
|
|
@@ -14451,12 +14358,12 @@ async function handleRunStop(args) {
|
|
|
14451
14358
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14452
14359
|
] : []
|
|
14453
14360
|
];
|
|
14454
|
-
|
|
14361
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14455
14362
|
{
|
|
14456
14363
|
...result,
|
|
14457
14364
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14458
14365
|
},
|
|
14459
|
-
{ json:
|
|
14366
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) }
|
|
14460
14367
|
);
|
|
14461
14368
|
return 0;
|
|
14462
14369
|
}
|
|
@@ -14506,18 +14413,18 @@ async function handleRunStopAll(args) {
|
|
|
14506
14413
|
reason = args[++index];
|
|
14507
14414
|
}
|
|
14508
14415
|
}
|
|
14509
|
-
const client = new (0,
|
|
14416
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14510
14417
|
if (dryRun) {
|
|
14511
14418
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14512
14419
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14513
|
-
|
|
14420
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14514
14421
|
{
|
|
14515
14422
|
...result2,
|
|
14516
14423
|
render: {
|
|
14517
14424
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14518
14425
|
}
|
|
14519
14426
|
},
|
|
14520
|
-
{ json:
|
|
14427
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14521
14428
|
` }
|
|
14522
14429
|
);
|
|
14523
14430
|
return 0;
|
|
@@ -14530,17 +14437,17 @@ async function handleRunStopAll(args) {
|
|
|
14530
14437
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14531
14438
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14532
14439
|
];
|
|
14533
|
-
|
|
14440
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14534
14441
|
{
|
|
14535
14442
|
...result,
|
|
14536
14443
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14537
14444
|
},
|
|
14538
|
-
{ json:
|
|
14445
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) }
|
|
14539
14446
|
);
|
|
14540
14447
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14541
14448
|
}
|
|
14542
14449
|
async function handleRunExport(args) {
|
|
14543
|
-
const selection =
|
|
14450
|
+
const selection = _chunkLXYDN5FEjs.parseJsonFields.call(void 0, args, "export");
|
|
14544
14451
|
args = selection.args;
|
|
14545
14452
|
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]";
|
|
14546
14453
|
let runId;
|
|
@@ -14611,17 +14518,17 @@ async function handleRunExport(args) {
|
|
|
14611
14518
|
"INVALID_ARGUMENT"
|
|
14612
14519
|
);
|
|
14613
14520
|
}
|
|
14614
|
-
const client = new (0,
|
|
14521
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14615
14522
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14616
14523
|
assertRunExportStatusIdentity(status, runId);
|
|
14617
14524
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14618
|
-
const progress =
|
|
14525
|
+
const progress = _chunkAKVNUNL7js.createCliProgress.call(void 0, !_chunkLXYDN5FEjs.argsWantJson.call(void 0, args));
|
|
14619
14526
|
try {
|
|
14620
14527
|
await waitForPlayCompletionByWatch({
|
|
14621
14528
|
client,
|
|
14622
14529
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14623
14530
|
workflowId: runId,
|
|
14624
|
-
jsonOutput:
|
|
14531
|
+
jsonOutput: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args),
|
|
14625
14532
|
emitLogs: false,
|
|
14626
14533
|
waitTimeoutMs,
|
|
14627
14534
|
startedAt: Date.now(),
|
|
@@ -14647,26 +14554,26 @@ async function handleRunExport(args) {
|
|
|
14647
14554
|
format,
|
|
14648
14555
|
summary
|
|
14649
14556
|
});
|
|
14650
|
-
const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess',
|
|
14651
|
-
const currentTableNotice = _optionalChain([exportResult, 'optionalAccess',
|
|
14557
|
+
const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _532 => _532.rowsInfo, 'access', _533 => _533.source]), () => ( datasetPath)), () => ( null));
|
|
14558
|
+
const currentTableNotice = _optionalChain([exportResult, 'optionalAccess', _534 => _534.currentTable]) ? {
|
|
14652
14559
|
code: "CURRENT_SHARED_DATASET",
|
|
14653
14560
|
message: "This export is the current shared dataset and may include writes from another run.",
|
|
14654
14561
|
full_run_output_command: `deepline runs get ${status.runId} --full`
|
|
14655
14562
|
} : null;
|
|
14656
14563
|
const navigation = buildRunNavigation(status);
|
|
14657
|
-
const resolved = _optionalChain([exportResult, 'optionalAccess',
|
|
14564
|
+
const resolved = _optionalChain([exportResult, 'optionalAccess', _535 => _535.datasetInfo]);
|
|
14658
14565
|
const identity = navigation.datasets.find(
|
|
14659
|
-
(dataset) => _optionalChain([resolved, 'optionalAccess',
|
|
14566
|
+
(dataset) => _optionalChain([resolved, 'optionalAccess', _536 => _536.datasetId]) ? dataset.datasetId === resolved.datasetId : dataset.name === _optionalChain([resolved, 'optionalAccess', _537 => _537.tableNamespace])
|
|
14660
14567
|
);
|
|
14661
14568
|
const unambiguousName = identity && !identity.exportUnavailable && navigation.datasets.filter((dataset) => dataset.name === identity.name).length === 1 ? identity.name : void 0;
|
|
14662
14569
|
const exportCommand = runExportRetryCommand(
|
|
14663
14570
|
status.runId,
|
|
14664
14571
|
outPath,
|
|
14665
|
-
_nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess',
|
|
14572
|
+
_nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess', _538 => _538.datasetPath]))),
|
|
14666
14573
|
{ format, summary }
|
|
14667
14574
|
) + (args.includes("--allow-empty") ? " --allow-empty" : "");
|
|
14668
|
-
const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess',
|
|
14669
|
-
const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess',
|
|
14575
|
+
const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _539 => _539.path]), () => ( null)) } : { csv_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _540 => _540.path]), () => ( null)) };
|
|
14576
|
+
const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess', _541 => _541.rowsInfo, 'access', _542 => _542.exportedRowOutcomes]);
|
|
14670
14577
|
const rowFailures = exportedRowOutcomes && exportedRowOutcomes.failed > 0 ? {
|
|
14671
14578
|
count: exportedRowOutcomes.failed,
|
|
14672
14579
|
message: "Failed rows can retain values from stages that completed earlier; those values do not prove the row succeeded.",
|
|
@@ -14686,17 +14593,17 @@ async function handleRunExport(args) {
|
|
|
14686
14593
|
...fileLocation,
|
|
14687
14594
|
format,
|
|
14688
14595
|
source,
|
|
14689
|
-
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess',
|
|
14596
|
+
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _543 => _543.rowsInfo, 'access', _544 => _544.totalRows]), () => ( null)),
|
|
14690
14597
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14691
14598
|
...rowFailures ? { rowFailures } : {},
|
|
14692
|
-
columns:
|
|
14599
|
+
columns: _chunkJ5VDE42Gjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _545 => _545.rowsInfo, 'access', _546 => _546.columns]), () => ( []))),
|
|
14693
14600
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14694
14601
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14695
14602
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
14696
14603
|
};
|
|
14697
14604
|
const lines = withRunNavigationLines(
|
|
14698
14605
|
[
|
|
14699
|
-
`Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess',
|
|
14606
|
+
`Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _547 => _547.path]), () => ( outPath))}`,
|
|
14700
14607
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? [
|
|
14701
14608
|
`Partial export: run is ${status.status}; more rows may be saved.`,
|
|
14702
14609
|
`Export after completion: ${exportCommand} --wait`
|
|
@@ -14723,8 +14630,8 @@ async function handleRunExport(args) {
|
|
|
14723
14630
|
"utf-8"
|
|
14724
14631
|
);
|
|
14725
14632
|
}
|
|
14726
|
-
|
|
14727
|
-
json:
|
|
14633
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, payload, {
|
|
14634
|
+
json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args),
|
|
14728
14635
|
fields: selection.fields,
|
|
14729
14636
|
text: `${lines.join("\n")}
|
|
14730
14637
|
`
|
|
@@ -14758,10 +14665,10 @@ async function handlePlayGet(args) {
|
|
|
14758
14665
|
);
|
|
14759
14666
|
return 2;
|
|
14760
14667
|
}
|
|
14761
|
-
const client = new (0,
|
|
14668
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14762
14669
|
const explicitJson = args.includes("--json");
|
|
14763
14670
|
const sourceOutput = args.includes("--source");
|
|
14764
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14671
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
14765
14672
|
const requestedRevisionFlags = [
|
|
14766
14673
|
args.includes("--working"),
|
|
14767
14674
|
args.includes("--live"),
|
|
@@ -14811,7 +14718,7 @@ async function handlePlayGet(args) {
|
|
|
14811
14718
|
...includeSource ? { source: sourceSelector } : {}
|
|
14812
14719
|
});
|
|
14813
14720
|
const source = detail.source;
|
|
14814
|
-
const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess',
|
|
14721
|
+
const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess', _548 => _548.files, 'access', _549 => _549[source.entryFile]]), () => ( ""));
|
|
14815
14722
|
let materializedFile = null;
|
|
14816
14723
|
try {
|
|
14817
14724
|
materializedFile = outPath && source ? materializeRemotePlaySource({ target, playName, source, outPath }) : null;
|
|
@@ -14821,7 +14728,7 @@ async function handlePlayGet(args) {
|
|
|
14821
14728
|
}
|
|
14822
14729
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
14823
14730
|
if (jsonOutput) {
|
|
14824
|
-
|
|
14731
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, {
|
|
14825
14732
|
...detail,
|
|
14826
14733
|
...materializedFile ? {
|
|
14827
14734
|
message: loadedMessage,
|
|
@@ -14862,16 +14769,16 @@ async function handlePlayGet(args) {
|
|
|
14862
14769
|
}
|
|
14863
14770
|
console.log(`Play: ${formatPlayReference(detail.play)}`);
|
|
14864
14771
|
console.log(
|
|
14865
|
-
`Working version: ${_nullishCoalesce(_optionalChain([detail, 'access',
|
|
14772
|
+
`Working version: ${_nullishCoalesce(_optionalChain([detail, 'access', _550 => _550.play, 'access', _551 => _551.workingRevision, 'optionalAccess', _552 => _552.version]), () => ( "\u2014"))}`
|
|
14866
14773
|
);
|
|
14867
|
-
console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access',
|
|
14774
|
+
console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access', _553 => _553.play, 'access', _554 => _554.liveRevision, 'optionalAccess', _555 => _555.version]), () => ( "\u2014"))}`);
|
|
14868
14775
|
if (detail.play.liveRevision) {
|
|
14869
14776
|
console.log(
|
|
14870
14777
|
`Live max credits per run: ${liveMaxCreditsPerRun(detail.play.liveRevision.sourceCode)}`
|
|
14871
14778
|
);
|
|
14872
14779
|
}
|
|
14873
14780
|
console.log(`Draft dirty: ${detail.play.isDraftDirty ? "yes" : "no"}`);
|
|
14874
|
-
if (detail.play.isDraftDirty && _optionalChain([detail, 'access',
|
|
14781
|
+
if (detail.play.isDraftDirty && _optionalChain([detail, 'access', _556 => _556.play, 'access', _557 => _557.liveRevision, 'optionalAccess', _558 => _558.version])) {
|
|
14875
14782
|
console.log(
|
|
14876
14783
|
` Scheduled and named runs continue to use live v${detail.play.liveRevision.version}.`
|
|
14877
14784
|
);
|
|
@@ -14883,7 +14790,7 @@ async function handlePlayGet(args) {
|
|
|
14883
14790
|
console.log(line);
|
|
14884
14791
|
}
|
|
14885
14792
|
console.log(`Updated: ${formatTimestamp(detail.play.updatedAt)}`);
|
|
14886
|
-
console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access',
|
|
14793
|
+
console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access', _559 => _559.sheetSummary, 'optionalAccess', _560 => _560.stats, 'optionalAccess', _561 => _561.total]), () => ( 0))}`);
|
|
14887
14794
|
if (detail.customerDbUrl) {
|
|
14888
14795
|
console.log(`Customer DB: ${detail.customerDbUrl}`);
|
|
14889
14796
|
}
|
|
@@ -14899,7 +14806,7 @@ async function handlePlayGet(args) {
|
|
|
14899
14806
|
return 0;
|
|
14900
14807
|
}
|
|
14901
14808
|
function formatVersionLine(version) {
|
|
14902
|
-
const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access',
|
|
14809
|
+
const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access', _562 => _562.artifactHash, 'optionalAccess', _563 => _563.slice, 'call', _564 => _564(0, 12)]), () => ( "unknown-revision"));
|
|
14903
14810
|
const state = [
|
|
14904
14811
|
version.isLive ? "live" : null,
|
|
14905
14812
|
version.isWorking ? "working" : null
|
|
@@ -14913,8 +14820,8 @@ async function handlePlayVersions(args) {
|
|
|
14913
14820
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
14914
14821
|
return 1;
|
|
14915
14822
|
}
|
|
14916
|
-
const client = new (0,
|
|
14917
|
-
const jsonOutput =
|
|
14823
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14824
|
+
const jsonOutput = _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
14918
14825
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
14919
14826
|
command: "versions"
|
|
14920
14827
|
});
|
|
@@ -14922,7 +14829,7 @@ async function handlePlayVersions(args) {
|
|
|
14922
14829
|
parseReferencedPlayTarget(playName).playName
|
|
14923
14830
|
);
|
|
14924
14831
|
if (jsonOutput) {
|
|
14925
|
-
|
|
14832
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, { versions });
|
|
14926
14833
|
return 0;
|
|
14927
14834
|
}
|
|
14928
14835
|
if (versions.length === 0) {
|
|
@@ -14935,7 +14842,7 @@ async function handlePlayVersions(args) {
|
|
|
14935
14842
|
return 0;
|
|
14936
14843
|
}
|
|
14937
14844
|
function formatPlayCostEstimate(estimate) {
|
|
14938
|
-
const computeSummary = _optionalChain([estimate, 'optionalAccess',
|
|
14845
|
+
const computeSummary = _optionalChain([estimate, 'optionalAccess', _565 => _565.compute]) ? `; ${estimate.status === "available" && estimate.source === "observed" ? "observed Deepline total includes usage-based compute; per-session ceiling" : "separate Deepline compute is usage-based; per-session ceiling"} across ${estimate.compute.pricedBackends.map(formatSandboxBackend).join(" and ")}: ${formatCredits(estimate.compute.maximumCredits)} credits (${formatSandboxBackend(estimate.compute.maximumBackend)} is highest; ${formatCredits(estimate.compute.maximumBillingSeconds)}s; total session count unbounded)` : "";
|
|
14939
14846
|
if (!estimate || estimate.status === "unavailable") {
|
|
14940
14847
|
return `unavailable${estimate ? `: ${estimate.message}${computeSummary}` : ""}`;
|
|
14941
14848
|
}
|
|
@@ -14965,8 +14872,8 @@ async function handlePlayCost(args) {
|
|
|
14965
14872
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
14966
14873
|
return 2;
|
|
14967
14874
|
}
|
|
14968
|
-
const result = await new (0,
|
|
14969
|
-
if (
|
|
14875
|
+
const result = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
14876
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
14970
14877
|
else
|
|
14971
14878
|
console.log(
|
|
14972
14879
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -14974,11 +14881,11 @@ async function handlePlayCost(args) {
|
|
|
14974
14881
|
return 0;
|
|
14975
14882
|
}
|
|
14976
14883
|
async function handlePlayList(args) {
|
|
14977
|
-
const jsonOutput =
|
|
14884
|
+
const jsonOutput = _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
14978
14885
|
const showCost = args.includes("--show-cost");
|
|
14979
|
-
const client = new (0,
|
|
14886
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14980
14887
|
const categoriesIndex = args.indexOf("--categories");
|
|
14981
|
-
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access',
|
|
14888
|
+
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _566 => _566[categoriesIndex + 1], 'optionalAccess', _567 => _567.trim, 'call', _568 => _568()]) : void 0;
|
|
14982
14889
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
14983
14890
|
if (args.includes("--tag") && tags.length === 0) {
|
|
14984
14891
|
console.error(
|
|
@@ -14999,7 +14906,7 @@ async function handlePlayList(args) {
|
|
|
14999
14906
|
const cursorIndex = args.indexOf("--cursor");
|
|
15000
14907
|
const limit = limitIndex >= 0 ? Number(args[limitIndex + 1]) : void 0;
|
|
15001
14908
|
const cursor = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15002
|
-
if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess',
|
|
14909
|
+
if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess', _569 => _569.trim, 'call', _570 => _570()])) {
|
|
15003
14910
|
console.error("Pass a positive --limit and a non-empty --cursor.");
|
|
15004
14911
|
return 2;
|
|
15005
14912
|
}
|
|
@@ -15040,7 +14947,7 @@ async function handlePlayList(args) {
|
|
|
15040
14947
|
if (play.inputSchema || play.hasInputSchema) {
|
|
15041
14948
|
lines.push(" inputSchema: yes");
|
|
15042
14949
|
}
|
|
15043
|
-
if (_optionalChain([play, 'access',
|
|
14950
|
+
if (_optionalChain([play, 'access', _571 => _571.triggerStatus, 'optionalAccess', _572 => _572.cron])) {
|
|
15044
14951
|
lines.push(
|
|
15045
14952
|
` scheduled execution: ${cronExecutionLabel(play.triggerStatus.cron)}`
|
|
15046
14953
|
);
|
|
@@ -15060,12 +14967,12 @@ async function handlePlayList(args) {
|
|
|
15060
14967
|
} else {
|
|
15061
14968
|
lines.push(" scheduled execution: not configured");
|
|
15062
14969
|
}
|
|
15063
|
-
if (_optionalChain([play, 'access',
|
|
14970
|
+
if (_optionalChain([play, 'access', _573 => _573.triggerStatus, 'optionalAccess', _574 => _574.webhook])) {
|
|
15064
14971
|
lines.push(` webhook: ${play.triggerStatus.webhook}`);
|
|
15065
14972
|
}
|
|
15066
14973
|
if (showCost) {
|
|
15067
14974
|
lines.push(
|
|
15068
|
-
` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access',
|
|
14975
|
+
` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access', _575 => _575.observedCost, 'optionalAccess', _576 => _576.displayText]), () => ( formatPlayCostEstimate(play.costEstimate)))}`
|
|
15069
14976
|
);
|
|
15070
14977
|
}
|
|
15071
14978
|
lines.push(` run: deepline run ${reference}`);
|
|
@@ -15074,7 +14981,7 @@ async function handlePlayList(args) {
|
|
|
15074
14981
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15075
14982
|
lines.push(`Next page: ${nextPage}`);
|
|
15076
14983
|
}
|
|
15077
|
-
|
|
14984
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
15078
14985
|
{
|
|
15079
14986
|
plays,
|
|
15080
14987
|
count: plays.length,
|
|
@@ -15091,8 +14998,8 @@ async function handlePlayList(args) {
|
|
|
15091
14998
|
return 0;
|
|
15092
14999
|
}
|
|
15093
15000
|
async function handlePlayPin(args, pinned) {
|
|
15094
|
-
const target = _optionalChain([args, 'access',
|
|
15095
|
-
const jsonOutput =
|
|
15001
|
+
const target = _optionalChain([args, 'access', _577 => _577.find, 'call', _578 => _578((arg) => !arg.startsWith("-")), 'optionalAccess', _579 => _579.trim, 'call', _580 => _580()]);
|
|
15002
|
+
const jsonOutput = _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
15096
15003
|
const dryRun = args.includes("--dry-run");
|
|
15097
15004
|
if (!target) {
|
|
15098
15005
|
console.error(
|
|
@@ -15110,11 +15017,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15110
15017
|
const name = parsedTarget.playName;
|
|
15111
15018
|
const plan = { name, pinned, dryRun };
|
|
15112
15019
|
if (dryRun) {
|
|
15113
|
-
|
|
15020
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, plan);
|
|
15114
15021
|
return 0;
|
|
15115
15022
|
}
|
|
15116
|
-
const result = await new (0,
|
|
15117
|
-
if (jsonOutput)
|
|
15023
|
+
const result = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15024
|
+
if (jsonOutput) _chunkLXYDN5FEjs.printCompactJson.call(void 0, result);
|
|
15118
15025
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15119
15026
|
return 0;
|
|
15120
15027
|
}
|
|
@@ -15162,7 +15069,7 @@ function printPlayDescription(play) {
|
|
|
15162
15069
|
console.log(` ${line}`);
|
|
15163
15070
|
}
|
|
15164
15071
|
}
|
|
15165
|
-
if (_optionalChain([play, 'access',
|
|
15072
|
+
if (_optionalChain([play, 'access', _581 => _581.toolCategories, 'optionalAccess', _582 => _582.length])) {
|
|
15166
15073
|
console.log(` Tool categories: ${play.toolCategories.join(", ")}`);
|
|
15167
15074
|
}
|
|
15168
15075
|
if (play.aliases.length > 0) {
|
|
@@ -15207,7 +15114,7 @@ function printPlayDescription(play) {
|
|
|
15207
15114
|
const runtimeLimit = formatPlayRuntimeLimit(play.runtimeLimit);
|
|
15208
15115
|
if (runtimeLimit) {
|
|
15209
15116
|
console.log(
|
|
15210
|
-
` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access',
|
|
15117
|
+
` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _583 => _583.runtimeLimit, 'optionalAccess', _584 => _584.source]), () => ( "live"))})`
|
|
15211
15118
|
);
|
|
15212
15119
|
}
|
|
15213
15120
|
printScheduledPlayCapacity(play.activeScheduledPlays);
|
|
@@ -15235,17 +15142,17 @@ function formatPlayGrepMatches(matches) {
|
|
|
15235
15142
|
return matches.map((match) => `${match.field}: ${match.terms.join(", ")}`).join("; ");
|
|
15236
15143
|
}
|
|
15237
15144
|
async function handlePlayGrep(args) {
|
|
15238
|
-
const query = _optionalChain([args, 'access',
|
|
15145
|
+
const query = _optionalChain([args, 'access', _585 => _585[0], 'optionalAccess', _586 => _586.trim, 'call', _587 => _587()]);
|
|
15239
15146
|
if (!query) {
|
|
15240
15147
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15241
15148
|
return 1;
|
|
15242
15149
|
}
|
|
15243
|
-
const client = new (0,
|
|
15150
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15244
15151
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15245
15152
|
summarizePlayGrepResult
|
|
15246
15153
|
);
|
|
15247
|
-
if (
|
|
15248
|
-
|
|
15154
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
15155
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, {
|
|
15249
15156
|
plays: results,
|
|
15250
15157
|
count: results.length,
|
|
15251
15158
|
query,
|
|
@@ -15259,7 +15166,7 @@ async function handlePlayGrep(args) {
|
|
|
15259
15166
|
`
|
|
15260
15167
|
);
|
|
15261
15168
|
for (const result of results) {
|
|
15262
|
-
console.log(_optionalChain([result, 'access',
|
|
15169
|
+
console.log(_optionalChain([result, 'access', _588 => _588.displayName, 'optionalAccess', _589 => _589.trim, 'call', _590 => _590()]) || result.name);
|
|
15263
15170
|
const matches = formatPlayGrepMatches(result.matches);
|
|
15264
15171
|
if (matches) console.log(` Matched: ${matches}`);
|
|
15265
15172
|
console.log(` Describe: ${result.describe}`);
|
|
@@ -15268,7 +15175,7 @@ async function handlePlayGrep(args) {
|
|
|
15268
15175
|
return 0;
|
|
15269
15176
|
}
|
|
15270
15177
|
async function handlePlayDescribe(args) {
|
|
15271
|
-
const selection =
|
|
15178
|
+
const selection = _chunkLXYDN5FEjs.parseJsonFields.call(void 0, args, "describe");
|
|
15272
15179
|
args = selection.args;
|
|
15273
15180
|
const playName = args[0];
|
|
15274
15181
|
if (!playName) {
|
|
@@ -15302,8 +15209,8 @@ async function handlePlayDescribe(args) {
|
|
|
15302
15209
|
`deepline plays check ${playName}`,
|
|
15303
15210
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15304
15211
|
];
|
|
15305
|
-
if (
|
|
15306
|
-
|
|
15212
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
15213
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, {
|
|
15307
15214
|
ok: false,
|
|
15308
15215
|
error: { message },
|
|
15309
15216
|
next
|
|
@@ -15317,7 +15224,7 @@ async function handlePlayDescribe(args) {
|
|
|
15317
15224
|
}
|
|
15318
15225
|
return 2;
|
|
15319
15226
|
}
|
|
15320
|
-
const client = new (0,
|
|
15227
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15321
15228
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15322
15229
|
command: "describe"
|
|
15323
15230
|
});
|
|
@@ -15327,9 +15234,9 @@ async function handlePlayDescribe(args) {
|
|
|
15327
15234
|
compact: args.includes("--compact")
|
|
15328
15235
|
}
|
|
15329
15236
|
);
|
|
15330
|
-
if (
|
|
15331
|
-
if (selection.fields)
|
|
15332
|
-
else
|
|
15237
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
15238
|
+
if (selection.fields) _chunkLXYDN5FEjs.printJson.call(void 0, play, selection.fields);
|
|
15239
|
+
else _chunkLXYDN5FEjs.printCompactJson.call(void 0, play);
|
|
15333
15240
|
return 0;
|
|
15334
15241
|
}
|
|
15335
15242
|
printPlayDescription(play);
|
|
@@ -15351,7 +15258,7 @@ async function handlePlaySave(args) {
|
|
|
15351
15258
|
}
|
|
15352
15259
|
let graph;
|
|
15353
15260
|
try {
|
|
15354
|
-
graph = await
|
|
15261
|
+
graph = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15355
15262
|
"cli.play_save_bundle_graph",
|
|
15356
15263
|
{ targetKind: "file" },
|
|
15357
15264
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15373,7 +15280,7 @@ async function handlePlaySave(args) {
|
|
|
15373
15280
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15374
15281
|
};
|
|
15375
15282
|
if (options.jsonOutput) {
|
|
15376
|
-
|
|
15283
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result);
|
|
15377
15284
|
} else {
|
|
15378
15285
|
console.error(result.message);
|
|
15379
15286
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15395,7 +15302,7 @@ async function handlePlaySave(args) {
|
|
|
15395
15302
|
};
|
|
15396
15303
|
if (options.dryRun) {
|
|
15397
15304
|
if (options.jsonOutput) {
|
|
15398
|
-
|
|
15305
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, dryRun);
|
|
15399
15306
|
} else {
|
|
15400
15307
|
console.log(`Dry run: ${playName}`);
|
|
15401
15308
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15404,14 +15311,14 @@ async function handlePlaySave(args) {
|
|
|
15404
15311
|
}
|
|
15405
15312
|
return 0;
|
|
15406
15313
|
}
|
|
15407
|
-
const client = new (0,
|
|
15314
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15408
15315
|
try {
|
|
15409
|
-
await
|
|
15316
|
+
await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15410
15317
|
"cli.play_save_compile_manifests",
|
|
15411
15318
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15412
15319
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15413
15320
|
);
|
|
15414
|
-
const saved = await
|
|
15321
|
+
const saved = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15415
15322
|
"cli.play_save_register_draft",
|
|
15416
15323
|
{ targetKind: "file", playName, artifactHash },
|
|
15417
15324
|
() => client.registerPlayArtifact({
|
|
@@ -15440,7 +15347,7 @@ async function handlePlaySave(args) {
|
|
|
15440
15347
|
}
|
|
15441
15348
|
};
|
|
15442
15349
|
if (options.jsonOutput) {
|
|
15443
|
-
|
|
15350
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result);
|
|
15444
15351
|
} else {
|
|
15445
15352
|
console.log(
|
|
15446
15353
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15466,7 +15373,7 @@ async function handlePlayPublish(args) {
|
|
|
15466
15373
|
}
|
|
15467
15374
|
const { target: playName, useLatest } = options;
|
|
15468
15375
|
let revisionId = options.revisionId;
|
|
15469
|
-
const client = new (0,
|
|
15376
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15470
15377
|
if (isFileTarget(playName)) {
|
|
15471
15378
|
if (revisionId || useLatest) {
|
|
15472
15379
|
console.error(
|
|
@@ -15476,7 +15383,7 @@ async function handlePlayPublish(args) {
|
|
|
15476
15383
|
}
|
|
15477
15384
|
let graph;
|
|
15478
15385
|
try {
|
|
15479
|
-
graph = await
|
|
15386
|
+
graph = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15480
15387
|
"cli.play_publish_bundle_graph",
|
|
15481
15388
|
{ targetKind: "file" },
|
|
15482
15389
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15498,7 +15405,7 @@ async function handlePlayPublish(args) {
|
|
|
15498
15405
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15499
15406
|
};
|
|
15500
15407
|
if (options.jsonOutput) {
|
|
15501
|
-
|
|
15408
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result3);
|
|
15502
15409
|
} else {
|
|
15503
15410
|
console.error(result3.message);
|
|
15504
15411
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15521,7 +15428,7 @@ async function handlePlayPublish(args) {
|
|
|
15521
15428
|
};
|
|
15522
15429
|
if (options.dryRun) {
|
|
15523
15430
|
if (options.jsonOutput) {
|
|
15524
|
-
|
|
15431
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, dryRun);
|
|
15525
15432
|
} else {
|
|
15526
15433
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15527
15434
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15540,12 +15447,12 @@ async function handlePlayPublish(args) {
|
|
|
15540
15447
|
}
|
|
15541
15448
|
}
|
|
15542
15449
|
try {
|
|
15543
|
-
await
|
|
15450
|
+
await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15544
15451
|
"cli.play_publish_compile_manifests",
|
|
15545
15452
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15546
15453
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15547
15454
|
);
|
|
15548
|
-
await
|
|
15455
|
+
await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15549
15456
|
"cli.play_publish_imports",
|
|
15550
15457
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15551
15458
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15554,7 +15461,7 @@ async function handlePlayPublish(args) {
|
|
|
15554
15461
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15555
15462
|
return 1;
|
|
15556
15463
|
}
|
|
15557
|
-
const published = await
|
|
15464
|
+
const published = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15558
15465
|
"cli.play_publish_register_root",
|
|
15559
15466
|
{
|
|
15560
15467
|
targetKind: "file",
|
|
@@ -15579,17 +15486,17 @@ async function handlePlayPublish(args) {
|
|
|
15579
15486
|
artifactHash,
|
|
15580
15487
|
liveVersion: _nullishCoalesce(published.version, () => ( null)),
|
|
15581
15488
|
revisionId: _nullishCoalesce(published.revisionId, () => ( null)),
|
|
15582
|
-
previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess',
|
|
15583
|
-
previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess',
|
|
15489
|
+
previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _591 => _591.version]), () => ( null)),
|
|
15490
|
+
previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _592 => _592.artifactHash]), () => ( null)),
|
|
15584
15491
|
sourceBytes: {
|
|
15585
|
-
before: _optionalChain([previousLive, 'optionalAccess',
|
|
15492
|
+
before: _optionalChain([previousLive, 'optionalAccess', _593 => _593.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
|
|
15586
15493
|
after: Buffer.byteLength(graph.root.sourceCode, "utf8")
|
|
15587
15494
|
},
|
|
15588
15495
|
triggerMetadata: _nullishCoalesce(published.triggerMetadata, () => ( null)),
|
|
15589
15496
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15590
15497
|
};
|
|
15591
15498
|
if (options.jsonOutput) {
|
|
15592
|
-
|
|
15499
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result2);
|
|
15593
15500
|
} else {
|
|
15594
15501
|
printPublishReceipt({
|
|
15595
15502
|
name: rootPlayName,
|
|
@@ -15620,14 +15527,14 @@ async function handlePlayPublish(args) {
|
|
|
15620
15527
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15621
15528
|
latest: useLatest
|
|
15622
15529
|
};
|
|
15623
|
-
|
|
15530
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result2);
|
|
15624
15531
|
return 0;
|
|
15625
15532
|
}
|
|
15626
15533
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
15627
15534
|
if (useLatest) {
|
|
15628
15535
|
const versions = await client.listPlayVersions(resolvedName);
|
|
15629
15536
|
const latest = versions[0];
|
|
15630
|
-
if (!_optionalChain([latest, 'optionalAccess',
|
|
15537
|
+
if (!_optionalChain([latest, 'optionalAccess', _594 => _594._id])) {
|
|
15631
15538
|
console.error(`No saved revisions found for ${resolvedName}.`);
|
|
15632
15539
|
return 1;
|
|
15633
15540
|
}
|
|
@@ -15644,7 +15551,7 @@ async function handlePlayPublish(args) {
|
|
|
15644
15551
|
revisionId ? { revisionId } : {}
|
|
15645
15552
|
);
|
|
15646
15553
|
if (options.jsonOutput) {
|
|
15647
|
-
|
|
15554
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result);
|
|
15648
15555
|
} else {
|
|
15649
15556
|
printPublishReceipt({
|
|
15650
15557
|
name: result.name,
|
|
@@ -15684,7 +15591,7 @@ async function handlePlayDelete(args) {
|
|
|
15684
15591
|
);
|
|
15685
15592
|
return 2;
|
|
15686
15593
|
}
|
|
15687
|
-
const client = new (0,
|
|
15594
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15688
15595
|
let detail;
|
|
15689
15596
|
try {
|
|
15690
15597
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15708,8 +15615,8 @@ async function handlePlayDelete(args) {
|
|
|
15708
15615
|
name: resolvedName,
|
|
15709
15616
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15710
15617
|
};
|
|
15711
|
-
if (
|
|
15712
|
-
|
|
15618
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
15619
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result2);
|
|
15713
15620
|
} else {
|
|
15714
15621
|
process.stdout.write(
|
|
15715
15622
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15719,8 +15626,8 @@ async function handlePlayDelete(args) {
|
|
|
15719
15626
|
return 0;
|
|
15720
15627
|
}
|
|
15721
15628
|
const result = await client.deletePlay(resolvedName);
|
|
15722
|
-
if (
|
|
15723
|
-
|
|
15629
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
15630
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result);
|
|
15724
15631
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15725
15632
|
}
|
|
15726
15633
|
if (result.alreadyArchived) {
|
|
@@ -15759,13 +15666,13 @@ async function handlePlayRestore(args) {
|
|
|
15759
15666
|
);
|
|
15760
15667
|
return 2;
|
|
15761
15668
|
}
|
|
15762
|
-
const client = new (0,
|
|
15669
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15763
15670
|
try {
|
|
15764
15671
|
const result = await client.restorePlay(
|
|
15765
15672
|
parseReferencedPlayTarget(playName).playName
|
|
15766
15673
|
);
|
|
15767
|
-
if (
|
|
15768
|
-
|
|
15674
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
15675
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result);
|
|
15769
15676
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
15770
15677
|
}
|
|
15771
15678
|
if (result.alreadyActive) {
|
|
@@ -15892,21 +15799,21 @@ Common commands:
|
|
|
15892
15799
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
15893
15800
|
}
|
|
15894
15801
|
};
|
|
15895
|
-
|
|
15802
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, result2, {
|
|
15896
15803
|
json: options.json,
|
|
15897
15804
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
15898
15805
|
`
|
|
15899
15806
|
});
|
|
15900
15807
|
return;
|
|
15901
15808
|
}
|
|
15902
|
-
const client = new (0,
|
|
15809
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15903
15810
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
15904
15811
|
throw new Error(
|
|
15905
15812
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
15906
15813
|
);
|
|
15907
15814
|
}
|
|
15908
15815
|
const result = await client.startPlayRun(saved.request);
|
|
15909
|
-
|
|
15816
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
15910
15817
|
{ ...result },
|
|
15911
15818
|
{
|
|
15912
15819
|
json: options.json,
|
|
@@ -15942,7 +15849,7 @@ Examples:
|
|
|
15942
15849
|
).action(async (target, options) => {
|
|
15943
15850
|
process.exitCode = await handlePlayCheck([
|
|
15944
15851
|
target,
|
|
15945
|
-
...
|
|
15852
|
+
..._chunkLXYDN5FEjs.jsonFieldArgs.call(void 0, options.json),
|
|
15946
15853
|
...options.full ? ["--full"] : []
|
|
15947
15854
|
]);
|
|
15948
15855
|
});
|
|
@@ -15981,10 +15888,10 @@ Notes:
|
|
|
15981
15888
|
--force-tool-refresh re-executes completed tool receipts and may repeat billed
|
|
15982
15889
|
provider calls. It is independent from --force.
|
|
15983
15890
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
15984
|
-
resident-work ceiling. Default: ${
|
|
15891
|
+
resident-work ceiling. Default: ${_chunkN4M6CO5Hjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkN4M6CO5Hjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
15985
15892
|
Provider pacing and sandbox memory limits still apply.
|
|
15986
15893
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
15987
|
-
resolvers. Accepted range: 1-${
|
|
15894
|
+
resolvers. Accepted range: 1-${_chunkN4M6CO5Hjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
15988
15895
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
15989
15896
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
15990
15897
|
Tool calls that would exceed it are denied.
|
|
@@ -16098,10 +16005,10 @@ Examples:
|
|
|
16098
16005
|
"Refresh completed tool receipts; may repeat billed provider calls"
|
|
16099
16006
|
).option(
|
|
16100
16007
|
"--max-concurrent-external-calls <count>",
|
|
16101
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16008
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkN4M6CO5Hjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkN4M6CO5Hjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16102
16009
|
).option(
|
|
16103
16010
|
"--max-concurrent-rows <count>",
|
|
16104
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16011
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkN4M6CO5Hjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16105
16012
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the play page in a browser after the run starts").option(
|
|
16106
16013
|
"--debug-map-latency",
|
|
16107
16014
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16146,14 +16053,14 @@ JSON field selection:
|
|
|
16146
16053
|
passthroughArgs.shift();
|
|
16147
16054
|
}
|
|
16148
16055
|
const exitCode = await handlePlayRun(
|
|
16149
|
-
|
|
16056
|
+
_chunkN4M6CO5Hjs.resolvePlayRunCliOptions.call(void 0,
|
|
16150
16057
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16151
16058
|
options,
|
|
16152
16059
|
passthroughArgs,
|
|
16153
|
-
|
|
16060
|
+
_chunkW4HIOBQQjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16154
16061
|
)
|
|
16155
16062
|
);
|
|
16156
|
-
|
|
16063
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
16157
16064
|
phase: "cli.play_command_exit",
|
|
16158
16065
|
exitCode
|
|
16159
16066
|
});
|
|
@@ -16202,9 +16109,9 @@ Examples:
|
|
|
16202
16109
|
const limit = Number(options.historyLimit);
|
|
16203
16110
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16204
16111
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16205
|
-
const client = new (0,
|
|
16112
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
16206
16113
|
if (options.binding) {
|
|
16207
|
-
|
|
16114
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0,
|
|
16208
16115
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16209
16116
|
);
|
|
16210
16117
|
return;
|
|
@@ -16212,7 +16119,7 @@ Examples:
|
|
|
16212
16119
|
const result = await client.listPlayTriggerInventory({
|
|
16213
16120
|
cursor: options.cursor
|
|
16214
16121
|
});
|
|
16215
|
-
|
|
16122
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, {
|
|
16216
16123
|
...result,
|
|
16217
16124
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16218
16125
|
});
|
|
@@ -16271,7 +16178,7 @@ Examples:
|
|
|
16271
16178
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16272
16179
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16273
16180
|
}
|
|
16274
|
-
const result = await new (0,
|
|
16181
|
+
const result = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().getPlaysActivity({
|
|
16275
16182
|
timeZone: options.timeZone,
|
|
16276
16183
|
days,
|
|
16277
16184
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16285,7 +16192,7 @@ Examples:
|
|
|
16285
16192
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16286
16193
|
);
|
|
16287
16194
|
}
|
|
16288
|
-
|
|
16195
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
16289
16196
|
{ ...result },
|
|
16290
16197
|
{
|
|
16291
16198
|
json: Boolean(options.json),
|
|
@@ -16314,7 +16221,7 @@ Examples:
|
|
|
16314
16221
|
false
|
|
16315
16222
|
);
|
|
16316
16223
|
});
|
|
16317
|
-
|
|
16224
|
+
_chunkVKBLXJCKjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16318
16225
|
play,
|
|
16319
16226
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16320
16227
|
);
|
|
@@ -16355,9 +16262,9 @@ Examples:
|
|
|
16355
16262
|
"--json [fields]",
|
|
16356
16263
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16357
16264
|
);
|
|
16358
|
-
|
|
16265
|
+
_chunkJ5VDE42Gjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16359
16266
|
async (target, options) => {
|
|
16360
|
-
const ownView = () => handlePlayDescribe(
|
|
16267
|
+
const ownView = () => handlePlayDescribe(_chunkLXYDN5FEjs.describeArgs.call(void 0, target, options));
|
|
16361
16268
|
const [flagText] = [options.json].filter(
|
|
16362
16269
|
(value) => typeof value === "string"
|
|
16363
16270
|
);
|
|
@@ -16368,7 +16275,7 @@ Examples:
|
|
|
16368
16275
|
process.exitCode = await ownView();
|
|
16369
16276
|
return;
|
|
16370
16277
|
}
|
|
16371
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16278
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-THHHNUEA.js")));
|
|
16372
16279
|
process.exitCode = await describeAnything(
|
|
16373
16280
|
name,
|
|
16374
16281
|
{
|
|
@@ -16486,7 +16393,7 @@ Examples:
|
|
|
16486
16393
|
deepline plays deployments <deployment-id>
|
|
16487
16394
|
`
|
|
16488
16395
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16489
|
-
async (id, options) => id ?
|
|
16396
|
+
async (id, options) => id ? _chunkCK2Q6AWRjs.handleDeploymentGet.call(void 0, id, options) : _chunkCK2Q6AWRjs.handleDeploymentsList.call(void 0, options)
|
|
16490
16397
|
);
|
|
16491
16398
|
addPublishHelp(
|
|
16492
16399
|
play.command("publish <target>").description(
|
|
@@ -16621,14 +16528,14 @@ Examples:
|
|
|
16621
16528
|
const limit = Number(options.limit);
|
|
16622
16529
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16623
16530
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16624
|
-
const result = await new (0,
|
|
16531
|
+
const result = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().runs.rowHistory({
|
|
16625
16532
|
playName: options.play,
|
|
16626
16533
|
runId,
|
|
16627
16534
|
tableNamespace: options.dataset,
|
|
16628
16535
|
limit,
|
|
16629
16536
|
cursor: options.cursor
|
|
16630
16537
|
});
|
|
16631
|
-
|
|
16538
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, {
|
|
16632
16539
|
...result,
|
|
16633
16540
|
...result.nextCursor ? {
|
|
16634
16541
|
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`
|
|
@@ -16702,7 +16609,7 @@ Examples:
|
|
|
16702
16609
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16703
16610
|
).action(async (runId, options) => {
|
|
16704
16611
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16705
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16612
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-PDBEAI22.js")));
|
|
16706
16613
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16707
16614
|
receiptJson: options.json !== void 0
|
|
16708
16615
|
});
|
|
@@ -16710,7 +16617,7 @@ Examples:
|
|
|
16710
16617
|
}
|
|
16711
16618
|
process.exitCode = await handleRunGet([
|
|
16712
16619
|
runId,
|
|
16713
|
-
...
|
|
16620
|
+
..._chunkLXYDN5FEjs.jsonFieldArgs.call(void 0, options.json),
|
|
16714
16621
|
...options.webUrl ? ["--web-url"] : [],
|
|
16715
16622
|
...options.full ? ["--full"] : [],
|
|
16716
16623
|
...options.input ? ["--input"] : [],
|
|
@@ -17000,7 +16907,7 @@ Examples:
|
|
|
17000
16907
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17001
16908
|
...options.wait ? ["--wait"] : [],
|
|
17002
16909
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17003
|
-
...
|
|
16910
|
+
..._chunkLXYDN5FEjs.jsonFieldArgs.call(void 0, options.json)
|
|
17004
16911
|
]);
|
|
17005
16912
|
});
|
|
17006
16913
|
const share = play.command("share").description(
|
|
@@ -17141,8 +17048,8 @@ function absolutePublicPlayUrl(path) {
|
|
|
17141
17048
|
}
|
|
17142
17049
|
function shareUrlFields(status) {
|
|
17143
17050
|
return {
|
|
17144
|
-
publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access',
|
|
17145
|
-
canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access',
|
|
17051
|
+
publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _595 => _595.share, 'optionalAccess', _596 => _596.publicPath])),
|
|
17052
|
+
canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _597 => _597.share, 'optionalAccess', _598 => _598.canonicalPath]))
|
|
17146
17053
|
};
|
|
17147
17054
|
}
|
|
17148
17055
|
function shareStatusForOutput(status) {
|
|
@@ -17166,10 +17073,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17166
17073
|
return 2;
|
|
17167
17074
|
}
|
|
17168
17075
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17169
|
-
const status = await new (0,
|
|
17076
|
+
const status = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().getSharePage(name);
|
|
17170
17077
|
const outputStatus = shareStatusForOutput(status);
|
|
17171
|
-
if (
|
|
17172
|
-
|
|
17078
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17079
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, outputStatus);
|
|
17173
17080
|
return 0;
|
|
17174
17081
|
}
|
|
17175
17082
|
if (!outputStatus.share) {
|
|
@@ -17208,7 +17115,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17208
17115
|
return 2;
|
|
17209
17116
|
}
|
|
17210
17117
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17211
|
-
const client = new (0,
|
|
17118
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
17212
17119
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17213
17120
|
let resolvedVersion;
|
|
17214
17121
|
if (!revisionId) {
|
|
@@ -17239,8 +17146,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17239
17146
|
);
|
|
17240
17147
|
if (!hasCompleted) {
|
|
17241
17148
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17242
|
-
if (
|
|
17243
|
-
|
|
17149
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17150
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, {
|
|
17244
17151
|
ok: false,
|
|
17245
17152
|
code: "NO_SUCCESSFUL_RUN",
|
|
17246
17153
|
message,
|
|
@@ -17264,8 +17171,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17264
17171
|
};
|
|
17265
17172
|
if (args.includes("--dry-run")) {
|
|
17266
17173
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17267
|
-
if (
|
|
17268
|
-
|
|
17174
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17175
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, plan);
|
|
17269
17176
|
} else {
|
|
17270
17177
|
console.log(
|
|
17271
17178
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17275,13 +17182,13 @@ async function handlePlaySharePublish(args) {
|
|
|
17275
17182
|
}
|
|
17276
17183
|
const status = await client.publishSharePage(name, request);
|
|
17277
17184
|
const outputStatus = shareStatusForOutput(status);
|
|
17278
|
-
if (
|
|
17279
|
-
|
|
17185
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17186
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, outputStatus);
|
|
17280
17187
|
return 0;
|
|
17281
17188
|
}
|
|
17282
17189
|
const urls = shareUrlFields(outputStatus);
|
|
17283
17190
|
console.log(
|
|
17284
|
-
`Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access',
|
|
17191
|
+
`Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _599 => _599.share, 'optionalAccess', _600 => _600.publicPath]))), () => ( ""))}`
|
|
17285
17192
|
);
|
|
17286
17193
|
if (urls.canonicalUrl && urls.canonicalUrl !== urls.publicUrl) {
|
|
17287
17194
|
console.log(`Version URL: ${urls.canonicalUrl}`);
|
|
@@ -17307,9 +17214,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17307
17214
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17308
17215
|
...seoIndexing ? { seoIndexing } : {}
|
|
17309
17216
|
};
|
|
17310
|
-
const status = await new (0,
|
|
17311
|
-
if (
|
|
17312
|
-
|
|
17217
|
+
const status = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().updateSharePage(name, request);
|
|
17218
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17219
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, status);
|
|
17313
17220
|
return 0;
|
|
17314
17221
|
}
|
|
17315
17222
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17324,13 +17231,13 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17324
17231
|
return 2;
|
|
17325
17232
|
}
|
|
17326
17233
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17327
|
-
const client = new (0,
|
|
17234
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
17328
17235
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17329
17236
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17330
17237
|
if (!revisionId && versionFlag) {
|
|
17331
17238
|
const versions = await client.listPlayVersions(name);
|
|
17332
17239
|
const chosen = versions.find((r) => r.version === Number(versionFlag));
|
|
17333
|
-
if (!_optionalChain([chosen, 'optionalAccess',
|
|
17240
|
+
if (!_optionalChain([chosen, 'optionalAccess', _601 => _601._id])) {
|
|
17334
17241
|
console.error(`Version ${versionFlag} not found for ${name}.`);
|
|
17335
17242
|
return 4;
|
|
17336
17243
|
}
|
|
@@ -17341,12 +17248,12 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17341
17248
|
revisionId ? { revisionId } : {}
|
|
17342
17249
|
);
|
|
17343
17250
|
const outputStatus = shareStatusForOutput(status);
|
|
17344
|
-
if (
|
|
17345
|
-
|
|
17251
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17252
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, outputStatus);
|
|
17346
17253
|
return 0;
|
|
17347
17254
|
}
|
|
17348
17255
|
const urls = shareUrlFields(outputStatus);
|
|
17349
|
-
const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access',
|
|
17256
|
+
const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _602 => _602.share, 'optionalAccess', _603 => _603.publishedRevisionId]) === revisionId;
|
|
17350
17257
|
console.log(
|
|
17351
17258
|
`Regenerated public copy for ${name}${regeneratedPublishedRevision && urls.publicUrl ? `: ${urls.publicUrl}` : "."}`
|
|
17352
17259
|
);
|
|
@@ -17367,9 +17274,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17367
17274
|
return 2;
|
|
17368
17275
|
}
|
|
17369
17276
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17370
|
-
const status = await new (0,
|
|
17371
|
-
if (
|
|
17372
|
-
|
|
17277
|
+
const status = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().unpublishSharePage(name);
|
|
17278
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17279
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, status);
|
|
17373
17280
|
return 0;
|
|
17374
17281
|
}
|
|
17375
17282
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17444,4 +17351,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17444
17351
|
|
|
17445
17352
|
|
|
17446
17353
|
|
|
17447
|
-
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag =
|
|
17354
|
+
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkN4M6CO5Hjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkN4M6CO5Hjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; 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;
|