deepline 0.3.495 → 0.3.496
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 +91 -1
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +5 -19
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/credit-recovery.ts +79 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-control.ts +19 -3
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/runtime-gateway-drain.ts +110 -66
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +57 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +15 -0
- package/dist/bundling-sources/shared_libs/plays/docflow.ts +19 -10
- package/dist/bundling-sources/shared_libs/plays/static-pipeline.ts +26 -6
- package/dist/bundling-sources/shared_libs/product-notifications/slack-payload.ts +4 -1
- package/dist/cli/{auth-B2YUNFQ6.mjs → auth-EU4EFRDJ.mjs} +5 -5
- package/dist/cli/auth-SHWC5FMY.js +43 -0
- package/dist/cli/{billing-2Q7TMNRE.js → billing-4JJLTVK4.js} +80 -80
- package/dist/cli/{billing-5TR7ZBZM.mjs → billing-GMVH3RBX.mjs} +7 -7
- package/dist/cli/{chunk-ACVT5LPN.js → chunk-3HIPDJWJ.js} +53 -53
- package/dist/cli/{chunk-DFK5IJMT.mjs → chunk-3KA466RV.mjs} +1 -1
- package/dist/cli/{chunk-SC5GHGFD.mjs → chunk-4NKAM4GX.mjs} +2 -2
- package/dist/cli/{chunk-Z33PZUWG.js → chunk-5GK6J7MH.js} +5 -5
- package/dist/cli/{chunk-TSKVPEVZ.mjs → chunk-5M4PLPTR.mjs} +46 -3
- package/dist/cli/{chunk-CTFR52JC.js → chunk-5YSIHOGV.js} +26 -26
- package/dist/cli/{chunk-RBBOUPME.mjs → chunk-6QIAEXRH.mjs} +1 -1
- package/dist/cli/{chunk-CKLJAQIV.mjs → chunk-6UUZM4FY.mjs} +5 -5
- package/dist/cli/{chunk-T4PGA6UD.js → chunk-73CBLBNP.js} +1 -1
- package/dist/cli/{chunk-FC4JGTFC.mjs → chunk-7NBDLK3N.mjs} +1 -1
- package/dist/cli/{chunk-HJ5LYO6U.mjs → chunk-7Q7VPFPR.mjs} +2 -2
- package/dist/cli/{chunk-I66IWCY4.mjs → chunk-7U6W3CKT.mjs} +4 -4
- package/dist/cli/{chunk-TUAEM76Y.js → chunk-AOBAVBSX.js} +108 -65
- package/dist/cli/{chunk-KG2FUYWB.mjs → chunk-CNMIYEB4.mjs} +3 -3
- package/dist/cli/{chunk-DVQHG6AM.mjs → chunk-CS2AEAD6.mjs} +63 -11
- package/dist/cli/{chunk-MG3WST3Z.mjs → chunk-DFW6P6ZN.mjs} +2 -2
- package/dist/cli/{chunk-L5ZXEYTQ.mjs → chunk-E3KXXJWR.mjs} +6 -6
- package/dist/cli/{chunk-PKV5CD3W.js → chunk-EQR5O2D2.js} +87 -35
- package/dist/cli/{chunk-CAWE3MS2.js → chunk-EX4JEFYI.js} +16 -16
- package/dist/cli/{chunk-S2QARJLX.mjs → chunk-FXPICCUU.mjs} +1 -1
- package/dist/cli/{chunk-7OGADAAA.js → chunk-GKZUGHDK.js} +6 -6
- package/dist/cli/{chunk-PHO53W67.js → chunk-GRIHMNYM.js} +4 -4
- package/dist/cli/{chunk-UKGOZOTT.js → chunk-HIAFBOYA.js} +8 -8
- package/dist/cli/{chunk-FLJSK32S.mjs → chunk-IMWJRBV5.mjs} +1 -1
- package/dist/cli/{chunk-OFBDI5S3.mjs → chunk-IXPZROZX.mjs} +2 -2
- package/dist/cli/{chunk-ZBQBH4IT.js → chunk-J55ZM5CK.js} +3 -3
- package/dist/cli/{chunk-TCNILHMS.js → chunk-JEPNE4N5.js} +5 -5
- package/dist/cli/{chunk-5OKQPDYJ.js → chunk-JU4LIA2T.js} +7 -7
- package/dist/cli/{chunk-UMFZQREB.js → chunk-KKI5GWED.js} +94 -94
- package/dist/cli/{chunk-UDFO2MWA.js → chunk-MWQ3WQ4Q.js} +41 -41
- package/dist/cli/{chunk-XR6RCBB3.mjs → chunk-O36ZPHJG.mjs} +10 -10
- package/dist/cli/{chunk-XAOLMEN5.js → chunk-PHVRS56F.js} +14 -14
- package/dist/cli/{chunk-WVL5HGUG.js → chunk-QEBQIGXP.js} +2 -2
- package/dist/cli/{chunk-LQKZG5RN.js → chunk-QN6IULFT.js} +53 -53
- package/dist/cli/{chunk-SR6VS5PG.mjs → chunk-QYXUZX5N.mjs} +4 -4
- package/dist/cli/{chunk-B3ROCZ5Y.js → chunk-QZ7I4NZZ.js} +2 -2
- package/dist/cli/{chunk-7LLUJQM5.mjs → chunk-R4H5MCG4.mjs} +4 -4
- package/dist/cli/{chunk-H5L2Q2GI.mjs → chunk-SH6HOR25.mjs} +2 -2
- package/dist/cli/{chunk-TMO7W4P2.mjs → chunk-U6SE6757.mjs} +1 -1
- package/dist/cli/{chunk-7YNZRALI.mjs → chunk-UT3ORL35.mjs} +3 -3
- package/dist/cli/{chunk-PEIOQKTA.js → chunk-UTG3STCR.js} +3 -3
- package/dist/cli/{chunk-XKYQR3QK.js → chunk-W7DZ6UGP.js} +3 -3
- package/dist/cli/{chunk-ZB6UYG5I.mjs → chunk-WCBZHSC4.mjs} +5 -5
- package/dist/cli/{chunk-Y2DUGUUU.js → chunk-WEGGJMNF.js} +21 -21
- package/dist/cli/{chunk-JRBQC6L4.mjs → chunk-WTZ7Y3IZ.mjs} +2 -2
- package/dist/cli/{chunk-TFMV3NKL.mjs → chunk-YHFW7MBT.mjs} +1 -1
- package/dist/cli/{chunk-XX6PRYFI.js → chunk-Z27R2BG7.js} +16 -16
- package/dist/cli/{chunk-MAMEKGLI.js → chunk-ZL4Q4T3G.js} +7 -7
- package/dist/cli/{csv-5UQXKWLE.mjs → csv-ET7ESAPM.mjs} +4 -4
- package/dist/cli/{csv-DZQ77T67.js → csv-JWBLNEPC.js} +13 -13
- package/dist/cli/{db-JIPLUHA6.js → db-3ZGQXWTQ.js} +28 -28
- package/dist/cli/{db-F62BVFTP.mjs → db-4PIWQPR6.mjs} +7 -7
- package/dist/cli/describe-KO3OQBIR.js +50 -0
- package/dist/cli/{describe-J7KYHONJ.mjs → describe-OREUCFC2.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-XB4F2KZD.mjs → executions-HW6PMZOF.mjs} +7 -7
- package/dist/cli/{executions-XQ4FNJ27.js → executions-YR545MRU.js} +9 -9
- package/dist/cli/{feedback-5CR4CJ6W.mjs → feedback-B2FJ6HPA.mjs} +4 -4
- package/dist/cli/{feedback-Q6JRCMDV.js → feedback-FNVHJQEC.js} +8 -8
- package/dist/cli/{git-P5WBBUT3.mjs → git-CCNPW3CA.mjs} +5 -5
- package/dist/cli/git-X2QJ2B5O.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-EJAB6III.js → legacy-noops-2EBZS45D.js} +8 -8
- package/dist/cli/{legacy-noops-H5JJVYZ2.mjs → legacy-noops-VJLCXTPB.mjs} +5 -5
- package/dist/cli/{monitors-QPFAT2J5.mjs → monitors-4AMETRW7.mjs} +190 -8
- package/dist/cli/{monitors-7DOGM7RO.js → monitors-JNWKPCN5.js} +318 -136
- package/dist/cli/{org-QOBB4IN3.js → org-7FUHVFYU.js} +73 -73
- package/dist/cli/{org-BH7ATDIJ.mjs → org-LO6GSCCG.mjs} +7 -7
- package/dist/cli/{pages-PJH2TXZQ.mjs → pages-PJ32M2PU.mjs} +7 -7
- package/dist/cli/{pages-PLTE54KM.js → pages-TT4TZOOV.js} +19 -19
- package/dist/cli/{play-ULTJ3LPA.mjs → play-QJEZAIZB.mjs} +19 -48
- package/dist/cli/{play-XZAPTF3T.js → play-VN7DFYDP.js} +618 -647
- package/dist/cli/{providers-6NUTRVE4.mjs → providers-24ER3SND.mjs} +7 -7
- package/dist/cli/{providers-SKXLW7M3.js → providers-IDFN2FCR.js} +10 -10
- package/dist/cli/{quickstart-JFCIIGII.js → quickstart-AQDCRVUQ.js} +6 -6
- package/dist/cli/{quickstart-5HMJMXVT.mjs → quickstart-FKENQU34.mjs} +4 -4
- package/dist/cli/{run-BRAXLCBC.js → run-HCASJQZY.js} +37 -37
- package/dist/cli/{run-2BJZPY4K.mjs → run-KXMRE5ZD.mjs} +23 -23
- package/dist/cli/{search-IDXSB2CV.mjs → search-3F2T33OE.mjs} +8 -8
- package/dist/cli/search-OGY6SQDJ.js +32 -0
- package/dist/cli/{search-output-CJ4TNYF7.js → search-output-GFCEGNCJ.js} +6 -6
- package/dist/cli/{search-output-AATMH4QG.mjs → search-output-U6PM5KAH.mjs} +4 -4
- package/dist/cli/{secrets-6SMKTBFT.js → secrets-KYVUP755.js} +16 -16
- package/dist/cli/{secrets-UQNEJSNG.mjs → secrets-ZZSOVXOX.mjs} +7 -7
- package/dist/cli/{sessions-MHTUVPSR.mjs → sessions-4Z62CVHL.mjs} +5 -5
- package/dist/cli/{sessions-W3KU4Q4X.js → sessions-7JFKTUQS.js} +6 -6
- package/dist/cli/{settings-KNYJ6GXK.mjs → settings-OXG7IRVC.mjs} +12 -12
- package/dist/cli/{settings-BA52NEU5.js → settings-X4PSK4EW.js} +79 -79
- package/dist/cli/{setup-D5HCJAVU.js → setup-NCJEDW4W.js} +49 -49
- package/dist/cli/{setup-TLTZ2YCO.mjs → setup-RB7JE6KA.mjs} +9 -9
- package/dist/cli/{skills-DPLM4EGS.mjs → skills-D4BR2WU2.mjs} +7 -7
- package/dist/cli/skills-WWWFRDCA.js +36 -0
- package/dist/cli/{tools-I4ZOJV23.mjs → tools-CEOD7VD5.mjs} +17 -17
- package/dist/cli/tools-QMSAA3LC.js +57 -0
- package/dist/cli/update-HTDFPN7L.js +34 -0
- package/dist/cli/{update-VIFS7IK5.mjs → update-UKUMQ6FC.mjs} +9 -9
- package/dist/cli/{workflow-TAQBNDV7.mjs → workflow-EKKTTSCJ.mjs} +8 -8
- package/dist/cli/{workflow-7REPOHXM.js → workflow-LFWQWZKS.js} +18 -18
- package/dist/{client-CKVH6tmp.d.ts → client-Cj3UqrCZ.d.ts} +1 -1
- package/dist/{client-BDT_LwuM.d.mts → client-DSCTVVRj.d.mts} +1 -1
- package/dist/{client-core-CEixe_C0.d.mts → client-core-B-8DTIN1.d.mts} +44 -3
- package/dist/{client-core-RS-d-vtY.d.ts → client-core-dI4KTuWS.d.ts} +44 -3
- package/dist/{compiler-manifest-CPEF48NM.d.mts → compiler-manifest-DlXDyndN.d.mts} +2 -0
- package/dist/{compiler-manifest-CPEF48NM.d.ts → compiler-manifest-DlXDyndN.d.ts} +2 -0
- package/dist/{errors-BWbPzqwo.d.mts → errors-BtriA2ld.d.mts} +1 -1
- package/dist/{errors-B-PJXveg.d.ts → errors-DmcLykM7.d.ts} +1 -1
- package/dist/{index-CvVxPpE8.d.ts → index--Jw-slHY.d.ts} +1 -1
- package/dist/{index-BJ8AA1F9.d.mts → index-DI0sR_fX.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +110 -110
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +2 -2
- package/dist/plays/run-request.mjs +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-GAOWVOK4.js +0 -43
- package/dist/cli/describe-BA4RAZ7J.js +0 -50
- package/dist/cli/git-EAO432S2.js +0 -25
- package/dist/cli/search-4MU2G6HV.js +0 -32
- package/dist/cli/skills-SVUWVXCE.js +0 -36
- package/dist/cli/tools-RJSP76HX.js +0 -57
- package/dist/cli/update-YT6JPIC6.js +0 -34
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkPHVRS56Fjs = require('./chunk-PHVRS56F.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,15 +17,15 @@ var _chunkXAOLMEN5js = require('./chunk-XAOLMEN5.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkUTG3STCRjs = require('./chunk-UTG3STCR.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkJU4LIA2Tjs = require('./chunk-JU4LIA2T.js');
|
|
24
24
|
require('./chunk-D3BCSAN7.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk5YSIHOGVjs = require('./chunk-5YSIHOGV.js');
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
@@ -58,10 +58,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
61
|
-
var
|
|
61
|
+
var _chunkJEPNE4N5js = require('./chunk-JEPNE4N5.js');
|
|
62
62
|
|
|
63
63
|
|
|
64
|
-
var
|
|
64
|
+
var _chunk5GK6J7MHjs = require('./chunk-5GK6J7MH.js');
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
@@ -74,7 +74,7 @@ var _chunkZ33PZUWGjs = require('./chunk-Z33PZUWG.js');
|
|
|
74
74
|
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkAOBAVBSXjs = require('./chunk-AOBAVBSX.js');
|
|
78
78
|
require('./chunk-E4CABWXL.js');
|
|
79
79
|
|
|
80
80
|
|
|
@@ -87,7 +87,8 @@ require('./chunk-E4CABWXL.js');
|
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
|
|
90
|
+
|
|
91
|
+
var _chunkEQR5O2D2js = require('./chunk-EQR5O2D2.js');
|
|
91
92
|
|
|
92
93
|
|
|
93
94
|
|
|
@@ -96,18 +97,18 @@ require('./chunk-XDVT3GOM.js');
|
|
|
96
97
|
|
|
97
98
|
|
|
98
99
|
|
|
99
|
-
var
|
|
100
|
+
var _chunkGKZUGHDKjs = require('./chunk-GKZUGHDK.js');
|
|
100
101
|
|
|
101
102
|
|
|
102
103
|
|
|
103
104
|
|
|
104
105
|
|
|
105
|
-
var
|
|
106
|
-
require('./chunk-
|
|
106
|
+
var _chunkQZ7I4NZZjs = require('./chunk-QZ7I4NZZ.js');
|
|
107
|
+
require('./chunk-QN6IULFT.js');
|
|
107
108
|
|
|
108
109
|
|
|
109
110
|
|
|
110
|
-
var
|
|
111
|
+
var _chunkW7DZ6UGPjs = require('./chunk-W7DZ6UGP.js');
|
|
111
112
|
|
|
112
113
|
|
|
113
114
|
|
|
@@ -121,17 +122,17 @@ var _chunkXKYQR3QKjs = require('./chunk-XKYQR3QK.js');
|
|
|
121
122
|
|
|
122
123
|
|
|
123
124
|
|
|
124
|
-
var
|
|
125
|
-
require('./chunk-
|
|
125
|
+
var _chunkZL4Q4T3Gjs = require('./chunk-ZL4Q4T3G.js');
|
|
126
|
+
require('./chunk-J55ZM5CK.js');
|
|
126
127
|
|
|
127
128
|
|
|
128
|
-
var
|
|
129
|
+
var _chunkGRIHMNYMjs = require('./chunk-GRIHMNYM.js');
|
|
129
130
|
require('./chunk-ALJJRZNJ.js');
|
|
130
131
|
require('./chunk-XNYIZMNQ.js');
|
|
131
132
|
|
|
132
133
|
|
|
133
134
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
134
|
-
require('./chunk-
|
|
135
|
+
require('./chunk-73CBLBNP.js');
|
|
135
136
|
require('./chunk-OG64RBAC.js');
|
|
136
137
|
|
|
137
138
|
|
|
@@ -2113,7 +2114,7 @@ function resolveField(key, command) {
|
|
|
2113
2114
|
function printSettings(result, json, name) {
|
|
2114
2115
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2115
2116
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2116
|
-
|
|
2117
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
2117
2118
|
{
|
|
2118
2119
|
...result,
|
|
2119
2120
|
settings: Object.fromEntries(
|
|
@@ -2157,7 +2158,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2157
2158
|
valueSyntax: field.cli.valueSyntax,
|
|
2158
2159
|
examples: field.cli.examples
|
|
2159
2160
|
}));
|
|
2160
|
-
|
|
2161
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
2161
2162
|
{
|
|
2162
2163
|
fields: descriptions,
|
|
2163
2164
|
render: {
|
|
@@ -2182,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2182
2183
|
async (options, command) => {
|
|
2183
2184
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2184
2185
|
printSettings(
|
|
2185
|
-
await new (0,
|
|
2186
|
+
await new (0, _chunk5GK6J7MHjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2186
2187
|
options.json,
|
|
2187
2188
|
options.name
|
|
2188
2189
|
);
|
|
@@ -2213,7 +2214,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2213
2214
|
);
|
|
2214
2215
|
}
|
|
2215
2216
|
if (options.dryRun) {
|
|
2216
|
-
|
|
2217
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
2217
2218
|
{
|
|
2218
2219
|
dryRun: true,
|
|
2219
2220
|
play,
|
|
@@ -2234,7 +2235,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2234
2235
|
return;
|
|
2235
2236
|
}
|
|
2236
2237
|
printSettings(
|
|
2237
|
-
await new (0,
|
|
2238
|
+
await new (0, _chunk5GK6J7MHjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2238
2239
|
options.json
|
|
2239
2240
|
);
|
|
2240
2241
|
};
|
|
@@ -2260,13 +2261,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2260
2261
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2261
2262
|
{ exitCode: 2 }
|
|
2262
2263
|
);
|
|
2263
|
-
const page = await new (0,
|
|
2264
|
+
const page = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2264
2265
|
root: options.root,
|
|
2265
2266
|
limit,
|
|
2266
2267
|
cursor: options.cursor
|
|
2267
2268
|
});
|
|
2268
2269
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2269
|
-
|
|
2270
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
2270
2271
|
{
|
|
2271
2272
|
...page,
|
|
2272
2273
|
nextCommand,
|
|
@@ -2317,7 +2318,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2317
2318
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2318
2319
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2319
2320
|
};
|
|
2320
|
-
const client = new (0,
|
|
2321
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
2321
2322
|
const paths = [];
|
|
2322
2323
|
let cursor;
|
|
2323
2324
|
do {
|
|
@@ -2379,7 +2380,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2379
2380
|
moved.push(move.playName);
|
|
2380
2381
|
}
|
|
2381
2382
|
}
|
|
2382
|
-
|
|
2383
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
2383
2384
|
{
|
|
2384
2385
|
dryRun: Boolean(options.dryRun),
|
|
2385
2386
|
from: options.from,
|
|
@@ -2507,7 +2508,7 @@ function triggerLines(view) {
|
|
|
2507
2508
|
return lines;
|
|
2508
2509
|
}
|
|
2509
2510
|
function printView(view, json) {
|
|
2510
|
-
|
|
2511
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
2511
2512
|
{
|
|
2512
2513
|
...view,
|
|
2513
2514
|
render: {
|
|
@@ -2520,7 +2521,7 @@ function printView(view, json) {
|
|
|
2520
2521
|
);
|
|
2521
2522
|
}
|
|
2522
2523
|
function printResult(result, json) {
|
|
2523
|
-
|
|
2524
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
2524
2525
|
{
|
|
2525
2526
|
...result,
|
|
2526
2527
|
render: {
|
|
@@ -2550,7 +2551,7 @@ async function mutate(command, options, build) {
|
|
|
2550
2551
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2551
2552
|
}
|
|
2552
2553
|
if (options.dryRun) {
|
|
2553
|
-
|
|
2554
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
2554
2555
|
{
|
|
2555
2556
|
dryRun: true,
|
|
2556
2557
|
play: options.play,
|
|
@@ -2569,7 +2570,7 @@ async function mutate(command, options, build) {
|
|
|
2569
2570
|
return;
|
|
2570
2571
|
}
|
|
2571
2572
|
printResult(
|
|
2572
|
-
await new (0,
|
|
2573
|
+
await new (0, _chunk5GK6J7MHjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2573
2574
|
options.json
|
|
2574
2575
|
);
|
|
2575
2576
|
}
|
|
@@ -2602,7 +2603,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2602
2603
|
}).addHelpText("after", help2);
|
|
2603
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) => {
|
|
2604
2605
|
printView(
|
|
2605
|
-
await new (0,
|
|
2606
|
+
await new (0, _chunk5GK6J7MHjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2606
2607
|
options.json
|
|
2607
2608
|
);
|
|
2608
2609
|
});
|
|
@@ -2646,7 +2647,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2646
2647
|
if (options.auth === void 0) {
|
|
2647
2648
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2648
2649
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2649
|
-
const current = await new (0,
|
|
2650
|
+
const current = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2650
2651
|
options.play
|
|
2651
2652
|
);
|
|
2652
2653
|
return {
|
|
@@ -2723,7 +2724,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2723
2724
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2724
2725
|
"runtime.event": "Other event."
|
|
2725
2726
|
};
|
|
2726
|
-
var RUN_LOGS_KIND_HELP =
|
|
2727
|
+
var RUN_LOGS_KIND_HELP = _chunkAOBAVBSXjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2727
2728
|
kind,
|
|
2728
2729
|
description: KIND_DESCRIPTIONS[kind]
|
|
2729
2730
|
}));
|
|
@@ -2860,9 +2861,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2860
2861
|
const args = program.args;
|
|
2861
2862
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2862
2863
|
error.exitCode = 2;
|
|
2863
|
-
if (
|
|
2864
|
-
|
|
2865
|
-
Object.assign(new (0,
|
|
2864
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2865
|
+
_chunkZL4Q4T3Gjs.printJsonError.call(void 0,
|
|
2866
|
+
Object.assign(new (0, _chunkAOBAVBSXjs.RunEventQueryInputError)(error.message), {
|
|
2866
2867
|
exitCode: 2,
|
|
2867
2868
|
retryable: false
|
|
2868
2869
|
})
|
|
@@ -2906,14 +2907,14 @@ function parseQuery(args, resource) {
|
|
|
2906
2907
|
if (VALUE_FLAGS.has(flag)) {
|
|
2907
2908
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2908
2909
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2909
|
-
throw new (0,
|
|
2910
|
+
throw new (0, _chunkAOBAVBSXjs.RunEventQueryInputError)(
|
|
2910
2911
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2911
2912
|
);
|
|
2912
2913
|
}
|
|
2913
2914
|
if (flag === "--sum") sums.push(value);
|
|
2914
2915
|
else {
|
|
2915
2916
|
if (values[flag] !== void 0) {
|
|
2916
|
-
throw new (0,
|
|
2917
|
+
throw new (0, _chunkAOBAVBSXjs.RunEventQueryInputError)(
|
|
2917
2918
|
`${flag} may only be supplied once.`
|
|
2918
2919
|
);
|
|
2919
2920
|
}
|
|
@@ -2927,12 +2928,12 @@ function parseQuery(args, resource) {
|
|
|
2927
2928
|
}
|
|
2928
2929
|
if (arg.startsWith("-")) {
|
|
2929
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.";
|
|
2930
|
-
throw new (0,
|
|
2931
|
+
throw new (0, _chunkAOBAVBSXjs.RunEventQueryInputError)(
|
|
2931
2932
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2932
2933
|
);
|
|
2933
2934
|
}
|
|
2934
2935
|
if (runId !== void 0) {
|
|
2935
|
-
throw new (0,
|
|
2936
|
+
throw new (0, _chunkAOBAVBSXjs.RunEventQueryInputError)(
|
|
2936
2937
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2937
2938
|
);
|
|
2938
2939
|
}
|
|
@@ -2940,7 +2941,7 @@ function parseQuery(args, resource) {
|
|
|
2940
2941
|
}
|
|
2941
2942
|
if (switches.has("--fields")) {
|
|
2942
2943
|
if (runId !== void 0) {
|
|
2943
|
-
throw new (0,
|
|
2944
|
+
throw new (0, _chunkAOBAVBSXjs.RunEventQueryInputError)(
|
|
2944
2945
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2945
2946
|
);
|
|
2946
2947
|
}
|
|
@@ -2953,18 +2954,18 @@ function parseQuery(args, resource) {
|
|
|
2953
2954
|
)
|
|
2954
2955
|
];
|
|
2955
2956
|
if (incompatible.length) {
|
|
2956
|
-
throw new (0,
|
|
2957
|
+
throw new (0, _chunkAOBAVBSXjs.RunEventQueryInputError)(
|
|
2957
2958
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2958
2959
|
);
|
|
2959
2960
|
}
|
|
2960
2961
|
}
|
|
2961
2962
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2962
|
-
throw new (0,
|
|
2963
|
+
throw new (0, _chunkAOBAVBSXjs.RunEventQueryInputError)(
|
|
2963
2964
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2964
2965
|
);
|
|
2965
2966
|
}
|
|
2966
2967
|
if (sums.length && switches.has("--count")) {
|
|
2967
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunkAOBAVBSXjs.RunEventQueryInputError)(
|
|
2968
2969
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2969
2970
|
);
|
|
2970
2971
|
}
|
|
@@ -2972,7 +2973,7 @@ function parseQuery(args, resource) {
|
|
|
2972
2973
|
if (operation === "count") {
|
|
2973
2974
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2974
2975
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2975
|
-
throw new (0,
|
|
2976
|
+
throw new (0, _chunkAOBAVBSXjs.RunEventQueryInputError)(
|
|
2976
2977
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2977
2978
|
);
|
|
2978
2979
|
}
|
|
@@ -3007,16 +3008,16 @@ function parseQuery(args, resource) {
|
|
|
3007
3008
|
];
|
|
3008
3009
|
}
|
|
3009
3010
|
}
|
|
3010
|
-
const request =
|
|
3011
|
+
const request = _chunkAOBAVBSXjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3011
3012
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3012
3013
|
const backend = values["--runtime-backend"];
|
|
3013
3014
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3014
|
-
throw new (0,
|
|
3015
|
+
throw new (0, _chunkAOBAVBSXjs.RunEventQueryInputError)(
|
|
3015
3016
|
"--runtime-backend must be daytona or modal."
|
|
3016
3017
|
);
|
|
3017
3018
|
}
|
|
3018
3019
|
if (backend && !namespace) {
|
|
3019
|
-
throw new (0,
|
|
3020
|
+
throw new (0, _chunkAOBAVBSXjs.RunEventQueryInputError)(
|
|
3020
3021
|
"--runtime-backend requires --runtime-namespace."
|
|
3021
3022
|
);
|
|
3022
3023
|
}
|
|
@@ -3063,12 +3064,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3063
3064
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3064
3065
|
const record3 = failure;
|
|
3065
3066
|
const status = record3.statusCode;
|
|
3066
|
-
const exitCode = error instanceof
|
|
3067
|
+
const exitCode = error instanceof _chunkAOBAVBSXjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3067
3068
|
const diagnostic = Object.assign(failure, {
|
|
3068
3069
|
exitCode,
|
|
3069
3070
|
retryable: exitCode === 5
|
|
3070
3071
|
});
|
|
3071
|
-
if (
|
|
3072
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) _chunkZL4Q4T3Gjs.printJsonError.call(void 0, diagnostic);
|
|
3072
3073
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3073
3074
|
return exitCode;
|
|
3074
3075
|
}
|
|
@@ -3083,7 +3084,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3083
3084
|
...criteria
|
|
3084
3085
|
} = request;
|
|
3085
3086
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3086
|
-
const client = new (0,
|
|
3087
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
3087
3088
|
let result;
|
|
3088
3089
|
if (request.operation === "fields") {
|
|
3089
3090
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3149,13 +3150,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3149
3150
|
lines.push(`Next page: ${nextPage}`);
|
|
3150
3151
|
}
|
|
3151
3152
|
}
|
|
3152
|
-
|
|
3153
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
3153
3154
|
{
|
|
3154
3155
|
...result,
|
|
3155
3156
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3156
3157
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3157
3158
|
},
|
|
3158
|
-
{ json:
|
|
3159
|
+
{ json: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3159
3160
|
` }
|
|
3160
3161
|
);
|
|
3161
3162
|
return 0;
|
|
@@ -3226,7 +3227,7 @@ function rowCountsFrom(input) {
|
|
|
3226
3227
|
return { completed: c, failed: f, total: known };
|
|
3227
3228
|
}
|
|
3228
3229
|
function decodeRunStatus(status) {
|
|
3229
|
-
return
|
|
3230
|
+
return _chunkEQR5O2D2js.decodePlayRunPublicStatus.call(void 0, status);
|
|
3230
3231
|
}
|
|
3231
3232
|
function deriveRunExecutionState(input) {
|
|
3232
3233
|
const status = decodeRunStatus(input.status);
|
|
@@ -4074,7 +4075,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4074
4075
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4075
4076
|
);
|
|
4076
4077
|
}
|
|
4077
|
-
const response = await new (0,
|
|
4078
|
+
const response = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4078
4079
|
keys
|
|
4079
4080
|
});
|
|
4080
4081
|
const failed = response.receipts.filter(
|
|
@@ -4086,7 +4087,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4086
4087
|
JSON.stringify(response, null, 2) + "\n",
|
|
4087
4088
|
{ flag: "wx", mode: 384 }
|
|
4088
4089
|
);
|
|
4089
|
-
|
|
4090
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
4090
4091
|
{
|
|
4091
4092
|
runId,
|
|
4092
4093
|
out: options.out,
|
|
@@ -4096,7 +4097,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4096
4097
|
{ json: true }
|
|
4097
4098
|
);
|
|
4098
4099
|
} else {
|
|
4099
|
-
|
|
4100
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4100
4101
|
}
|
|
4101
4102
|
if (failed)
|
|
4102
4103
|
process.exitCode = response.receipts.some(
|
|
@@ -4135,7 +4136,7 @@ includes nextCommand when another page is available.
|
|
|
4135
4136
|
{ exitCode: 2 }
|
|
4136
4137
|
);
|
|
4137
4138
|
}
|
|
4138
|
-
const page = await new (0,
|
|
4139
|
+
const page = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4139
4140
|
launchKey: options.launchKey,
|
|
4140
4141
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4141
4142
|
limit
|
|
@@ -4150,7 +4151,7 @@ includes nextCommand when another page is available.
|
|
|
4150
4151
|
"--limit",
|
|
4151
4152
|
String(limit)
|
|
4152
4153
|
].join(" ") : null;
|
|
4153
|
-
|
|
4154
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
4154
4155
|
{
|
|
4155
4156
|
parentRunId,
|
|
4156
4157
|
launchKey: options.launchKey,
|
|
@@ -4186,7 +4187,7 @@ async function handleRunsHistory(options) {
|
|
|
4186
4187
|
throw new Error("--limit must be a positive integer.");
|
|
4187
4188
|
}
|
|
4188
4189
|
}
|
|
4189
|
-
const page = await new (0,
|
|
4190
|
+
const page = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().runs.history({
|
|
4190
4191
|
cursor: options.cursor,
|
|
4191
4192
|
orgId: options.org,
|
|
4192
4193
|
search: options.search,
|
|
@@ -4202,7 +4203,7 @@ async function handleRunsHistory(options) {
|
|
|
4202
4203
|
);
|
|
4203
4204
|
}
|
|
4204
4205
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4205
|
-
|
|
4206
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
4206
4207
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4207
4208
|
options.json ? { json: true } : {}
|
|
4208
4209
|
);
|
|
@@ -4254,12 +4255,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4254
4255
|
return 1;
|
|
4255
4256
|
}
|
|
4256
4257
|
}
|
|
4257
|
-
const result = await new (0,
|
|
4258
|
+
const result = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().runs.rerun(runId, {
|
|
4258
4259
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4259
4260
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4260
4261
|
});
|
|
4261
|
-
if (
|
|
4262
|
-
|
|
4262
|
+
if (_chunkZL4Q4T3Gjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4263
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4263
4264
|
} else if (result.rateLimited) {
|
|
4264
4265
|
console.log(`
|
|
4265
4266
|
${result.rateLimited.message}`);
|
|
@@ -4280,36 +4281,6 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
4280
4281
|
return 0;
|
|
4281
4282
|
}
|
|
4282
4283
|
|
|
4283
|
-
// ../play-data-plane/column-names.ts
|
|
4284
|
-
var POSTGRES_IDENTIFIER_MAX_BYTES = 63;
|
|
4285
|
-
var HASH_SUFFIX_LENGTH = 10;
|
|
4286
|
-
function normalizePlayColumnName(id, preserveAuthoredPrefix = true) {
|
|
4287
|
-
const prefix = preserveAuthoredPrefix ? _nullishCoalesce(_optionalChain([id, 'access', _108 => _108.trim, 'call', _109 => _109(), 'access', _110 => _110.match, 'call', _111 => _111(/^_+/), 'optionalAccess', _112 => _112[0]]), () => ( "")) : "";
|
|
4288
|
-
const normalized = id.trim().replace(/\.+/g, "__").replace(/[^A-Za-z0-9_]+/g, "_").replace(/^_+|_+$/g, "").toLowerCase();
|
|
4289
|
-
const safe = `${prefix}${normalized || "column"}`;
|
|
4290
|
-
return /^[A-Za-z_]/.test(safe) ? safe : `c_${safe}`;
|
|
4291
|
-
}
|
|
4292
|
-
function stableHexSuffix(value) {
|
|
4293
|
-
let primary = 2166136261;
|
|
4294
|
-
let secondary = 2166136261 ^ value.length;
|
|
4295
|
-
for (let index = 0; index < value.length; index += 1) {
|
|
4296
|
-
const code = value.charCodeAt(index);
|
|
4297
|
-
primary = Math.imul(primary ^ code, 16777619) >>> 0;
|
|
4298
|
-
secondary = Math.imul(secondary ^ code + index, 16777619) >>> 0;
|
|
4299
|
-
}
|
|
4300
|
-
return `${primary.toString(16).padStart(8, "0")}${secondary.toString(16).padStart(8, "0")}`.slice(0, HASH_SUFFIX_LENGTH);
|
|
4301
|
-
}
|
|
4302
|
-
function sqlSafePlayColumnName(id) {
|
|
4303
|
-
const prefixed = normalizePlayColumnName(id);
|
|
4304
|
-
if (prefixed.length <= POSTGRES_IDENTIFIER_MAX_BYTES) {
|
|
4305
|
-
return prefixed;
|
|
4306
|
-
}
|
|
4307
|
-
const hash = stableHexSuffix(prefixed);
|
|
4308
|
-
const maxPrefixLength = POSTGRES_IDENTIFIER_MAX_BYTES - HASH_SUFFIX_LENGTH - 1;
|
|
4309
|
-
const prefix = prefixed.slice(0, maxPrefixLength).replace(/_+$/g, "").slice(0, maxPrefixLength);
|
|
4310
|
-
return `${prefix}_${hash}`;
|
|
4311
|
-
}
|
|
4312
|
-
|
|
4313
4284
|
// ../plays/cascade-falloff.ts
|
|
4314
4285
|
function cascadeFalloff(input) {
|
|
4315
4286
|
const order = new Map(input.legs.map((leg, index) => [leg, index]));
|
|
@@ -4346,8 +4317,8 @@ function formatHitShare(count2, total) {
|
|
|
4346
4317
|
|
|
4347
4318
|
// src/cli/run-hit-counts.ts
|
|
4348
4319
|
function runTableHitCounts(tableNamespace, summary) {
|
|
4349
|
-
const rows = _nullishCoalesce(_optionalChain([summary, 'optionalAccess',
|
|
4350
|
-
const filled = _optionalChain([summary, 'optionalAccess',
|
|
4320
|
+
const rows = _nullishCoalesce(_optionalChain([summary, 'optionalAccess', _108 => _108.stats, 'optionalAccess', _109 => _109.total]), () => ( 0));
|
|
4321
|
+
const filled = _optionalChain([summary, 'optionalAccess', _110 => _110.filled]);
|
|
4351
4322
|
if (!filled || rows <= 0) return null;
|
|
4352
4323
|
const legColumns = new Set(
|
|
4353
4324
|
Object.values(_nullishCoalesce(summary.cascades, () => ( {}))).flatMap((cascade) => cascade.legs)
|
|
@@ -4355,7 +4326,7 @@ function runTableHitCounts(tableNamespace, summary) {
|
|
|
4355
4326
|
const columns = {};
|
|
4356
4327
|
for (const column of Object.keys(_nullishCoalesce(summary.columns, () => ( {})))) {
|
|
4357
4328
|
if (column.includes(".")) continue;
|
|
4358
|
-
const physical = sqlSafePlayColumnName(column);
|
|
4329
|
+
const physical = _chunkEQR5O2D2js.sqlSafePlayColumnName.call(void 0, column);
|
|
4359
4330
|
if (legColumns.has(physical)) continue;
|
|
4360
4331
|
const count2 = filled[physical];
|
|
4361
4332
|
if (typeof count2 === "number") columns[column] = count2;
|
|
@@ -4441,7 +4412,7 @@ function mergeCanonicalRowsInfo(left, right) {
|
|
|
4441
4412
|
...currentTable ? { currentTable: true } : {},
|
|
4442
4413
|
...exportUnavailableReason ? {
|
|
4443
4414
|
exportUnavailableReason,
|
|
4444
|
-
..._optionalChain([unavailableSource, 'optionalAccess',
|
|
4415
|
+
..._optionalChain([unavailableSource, 'optionalAccess', _111 => _111.exportUnavailableMessage]) ? {
|
|
4445
4416
|
exportUnavailableMessage: unavailableSource.exportUnavailableMessage
|
|
4446
4417
|
} : {}
|
|
4447
4418
|
} : {}
|
|
@@ -4613,7 +4584,7 @@ function totalRowsForDataset(result, datasetPath) {
|
|
|
4613
4584
|
const metadata = isRecord(result._metadata) ? result._metadata : null;
|
|
4614
4585
|
const parentPath = datasetPath.split(".").slice(0, -1).join(".");
|
|
4615
4586
|
const parent = parentPath ? valueAtPath({ result }, parentPath) : result;
|
|
4616
|
-
return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess',
|
|
4587
|
+
return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _112 => _112.totalRows]), () => ( _optionalChain([metadata, 'optionalAccess', _113 => _113.rowCount]))), () => ( _optionalChain([metadata, 'optionalAccess', _114 => _114.count]))), () => ( (isRecord(parent) ? _nullishCoalesce(_nullishCoalesce(parent.totalRows, () => ( parent.rowCount)), () => ( parent.count)) : void 0))), () => ( result.totalRows)), () => ( result.rowCount)), () => ( result.count));
|
|
4617
4588
|
}
|
|
4618
4589
|
function rowArray(value) {
|
|
4619
4590
|
if (!Array.isArray(value)) {
|
|
@@ -4675,8 +4646,8 @@ function canonicalRowsInfoFromCandidate(input) {
|
|
|
4675
4646
|
};
|
|
4676
4647
|
}
|
|
4677
4648
|
if (isPackagedDatasetOutput(candidate.value)) {
|
|
4678
|
-
const rawRows = _nullishCoalesce(rowArray(_optionalChain([candidate, 'access',
|
|
4679
|
-
const totalRows2 = _nullishCoalesce(_nullishCoalesce(readNumber(candidate.value.rowCount), () => ( readNumber(_optionalChain([candidate, 'access',
|
|
4649
|
+
const rawRows = _nullishCoalesce(rowArray(_optionalChain([candidate, 'access', _115 => _115.value, 'access', _116 => _116.preview, 'optionalAccess', _117 => _117.rows])), () => ( []));
|
|
4650
|
+
const totalRows2 = _nullishCoalesce(_nullishCoalesce(readNumber(candidate.value.rowCount), () => ( readNumber(_optionalChain([candidate, 'access', _118 => _118.value, 'access', _119 => _119.preview, 'optionalAccess', _120 => _120.totalRows])))), () => ( rawRows.length));
|
|
4680
4651
|
const explicitColumns = Array.isArray(candidate.value.columns) ? candidate.value.columns.filter(
|
|
4681
4652
|
(column) => typeof column === "string"
|
|
4682
4653
|
) : [];
|
|
@@ -4772,12 +4743,12 @@ function collectDatasetCandidates(input) {
|
|
|
4772
4743
|
}
|
|
4773
4744
|
function collectCanonicalRowsInfos(statusOrResult) {
|
|
4774
4745
|
const root = isRecord(statusOrResult) ? statusOrResult : null;
|
|
4775
|
-
const result = isRecord(_optionalChain([root, 'optionalAccess',
|
|
4746
|
+
const result = isRecord(_optionalChain([root, 'optionalAccess', _121 => _121.result])) ? root.result : root;
|
|
4776
4747
|
if (!result) {
|
|
4777
4748
|
return [];
|
|
4778
4749
|
}
|
|
4779
4750
|
const metadata = isRecord(result._metadata) ? result._metadata : null;
|
|
4780
|
-
const totalFromMetadata = _nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess',
|
|
4751
|
+
const totalFromMetadata = _nullishCoalesce(_nullishCoalesce(_optionalChain([metadata, 'optionalAccess', _122 => _122.totalRows]), () => ( _optionalChain([metadata, 'optionalAccess', _123 => _123.rowCount]))), () => ( _optionalChain([metadata, 'optionalAccess', _124 => _124.count])));
|
|
4781
4752
|
const candidates = [
|
|
4782
4753
|
{
|
|
4783
4754
|
source: "result.contacts",
|
|
@@ -4802,7 +4773,7 @@ function collectCanonicalRowsInfos(statusOrResult) {
|
|
|
4802
4773
|
];
|
|
4803
4774
|
if (isRecord(result.output)) {
|
|
4804
4775
|
const outputMetadata = isRecord(result.output._metadata) ? result.output._metadata : null;
|
|
4805
|
-
const outputTotalFromMetadata = _nullishCoalesce(_nullishCoalesce(_optionalChain([outputMetadata, 'optionalAccess',
|
|
4776
|
+
const outputTotalFromMetadata = _nullishCoalesce(_nullishCoalesce(_optionalChain([outputMetadata, 'optionalAccess', _125 => _125.totalRows]), () => ( _optionalChain([outputMetadata, 'optionalAccess', _126 => _126.rowCount]))), () => ( _optionalChain([outputMetadata, 'optionalAccess', _127 => _127.count])));
|
|
4806
4777
|
candidates.push(
|
|
4807
4778
|
{
|
|
4808
4779
|
source: "result.output.contacts",
|
|
@@ -4891,14 +4862,14 @@ function collectPackagedStepDatasetCandidates(statusOrResult) {
|
|
|
4891
4862
|
{
|
|
4892
4863
|
source,
|
|
4893
4864
|
value: step.output,
|
|
4894
|
-
total: _nullishCoalesce(_nullishCoalesce(step.output.rowCount, () => ( _optionalChain([step, 'access',
|
|
4865
|
+
total: _nullishCoalesce(_nullishCoalesce(step.output.rowCount, () => ( _optionalChain([step, 'access', _128 => _128.output, 'access', _129 => _129.preview, 'optionalAccess', _130 => _130.totalRows]))), () => ( void 0))
|
|
4895
4866
|
}
|
|
4896
4867
|
] : [];
|
|
4897
4868
|
});
|
|
4898
4869
|
}
|
|
4899
4870
|
function collectSerializedDatasetRowsInfos(statusOrResult) {
|
|
4900
4871
|
const root = isRecord(statusOrResult) ? statusOrResult : null;
|
|
4901
|
-
const result = root && "result" in root ? isRecord(root.result) ? root.result : null : _optionalChain([root, 'optionalAccess',
|
|
4872
|
+
const result = root && "result" in root ? isRecord(root.result) ? root.result : null : _optionalChain([root, 'optionalAccess', _131 => _131.kind]) === "play_run" || isRecord(_optionalChain([root, 'optionalAccess', _132 => _132.package])) ? null : root;
|
|
4902
4873
|
const candidates = [];
|
|
4903
4874
|
if (result) {
|
|
4904
4875
|
collectDatasetCandidates({
|
|
@@ -5011,7 +4982,7 @@ var RunDatasetCatalog = class _RunDatasetCatalog {
|
|
|
5011
4982
|
* a Run returns its sole returned Dataset, or its sole recovered Dataset.
|
|
5012
4983
|
*/
|
|
5013
4984
|
choose(path) {
|
|
5014
|
-
const requested = _optionalChain([path, 'optionalAccess',
|
|
4985
|
+
const requested = _optionalChain([path, 'optionalAccess', _133 => _133.trim, 'call', _134 => _134()]);
|
|
5015
4986
|
if (requested) {
|
|
5016
4987
|
const info = uniqueDatasetMatch(
|
|
5017
4988
|
this.#available.filter((dataset) => dataset.matches(requested)).map((dataset) => dataset.info()),
|
|
@@ -5019,7 +4990,7 @@ var RunDatasetCatalog = class _RunDatasetCatalog {
|
|
|
5019
4990
|
);
|
|
5020
4991
|
return info ? RunDataset.from({
|
|
5021
4992
|
...info,
|
|
5022
|
-
source: _optionalChain([info, 'access',
|
|
4993
|
+
source: _optionalChain([info, 'access', _135 => _135.sourceAliases, 'optionalAccess', _136 => _136.includes, 'call', _137 => _137(requested)]) ? requested : info.source
|
|
5023
4994
|
}) : null;
|
|
5024
4995
|
}
|
|
5025
4996
|
if (this.#returned.length === 1) return this.#returned[0];
|
|
@@ -5062,7 +5033,7 @@ var RunDataset = class _RunDataset {
|
|
|
5062
5033
|
return this.#info.exportUnavailableMessage;
|
|
5063
5034
|
}
|
|
5064
5035
|
matches(path) {
|
|
5065
|
-
return this.source === path || _optionalChain([this, 'access',
|
|
5036
|
+
return this.source === path || _optionalChain([this, 'access', _138 => _138.#info, 'access', _139 => _139.sourceAliases, 'optionalAccess', _140 => _140.includes, 'call', _141 => _141(path)]) === true || this.#info.name === path || this.datasetId === path || this.tableNamespace === path || _optionalChain([this, 'access', _142 => _142.#info, 'access', _143 => _143.recoveredReturnPaths, 'optionalAccess', _144 => _144.includes, 'call', _145 => _145(path)]) === true;
|
|
5066
5037
|
}
|
|
5067
5038
|
/** Return a new Handle when its preview has been replaced by fetched rows. */
|
|
5068
5039
|
withRows(info) {
|
|
@@ -5083,13 +5054,13 @@ var RunDataset = class _RunDataset {
|
|
|
5083
5054
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5084
5055
|
_fs.writeFileSync.call(void 0,
|
|
5085
5056
|
absolutePath,
|
|
5086
|
-
`${JSON.stringify(
|
|
5057
|
+
`${JSON.stringify(_chunkUTG3STCRjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5087
5058
|
`,
|
|
5088
5059
|
"utf-8"
|
|
5089
5060
|
);
|
|
5090
5061
|
return absolutePath;
|
|
5091
5062
|
}
|
|
5092
|
-
return
|
|
5063
|
+
return _chunkUTG3STCRjs.writeRunDatasetCsv.call(void 0, {
|
|
5093
5064
|
rows: this.rows,
|
|
5094
5065
|
columns: this.#info.columns,
|
|
5095
5066
|
outPath
|
|
@@ -5101,7 +5072,7 @@ var RunDataset = class _RunDataset {
|
|
|
5101
5072
|
}
|
|
5102
5073
|
};
|
|
5103
5074
|
function resolveDatasetByName(available, datasetPath) {
|
|
5104
|
-
return _nullishCoalesce(_optionalChain([RunDatasetCatalog, 'access',
|
|
5075
|
+
return _nullishCoalesce(_optionalChain([RunDatasetCatalog, 'access', _146 => _146.from, 'call', _147 => _147({ runPackage: null, datasets: available }), 'access', _148 => _148.choose, 'call', _149 => _149(datasetPath), 'optionalAccess', _150 => _150.info, 'call', _151 => _151()]), () => ( null));
|
|
5105
5076
|
}
|
|
5106
5077
|
function uniqueDatasetMatch(infos, selector) {
|
|
5107
5078
|
const matches = distinctCanonicalRowsInfos(infos);
|
|
@@ -5125,11 +5096,11 @@ function uniqueDatasetMatch(infos, selector) {
|
|
|
5125
5096
|
function packageForDatasetSelection(runPackage) {
|
|
5126
5097
|
const root = recordValue(runPackage);
|
|
5127
5098
|
const nested = recordValue(root.package);
|
|
5128
|
-
if (_optionalChain([nested, 'optionalAccess',
|
|
5099
|
+
if (_optionalChain([nested, 'optionalAccess', _152 => _152.kind]) === "play_run") return nested;
|
|
5129
5100
|
return root.kind === "play_run" ? root : null;
|
|
5130
5101
|
}
|
|
5131
5102
|
function withReturnedDatasetAliases(runPackage, available) {
|
|
5132
|
-
const outputs = recordValue(_optionalChain([packageForDatasetSelection, 'call',
|
|
5103
|
+
const outputs = recordValue(_optionalChain([packageForDatasetSelection, 'call', _153 => _153(runPackage), 'optionalAccess', _154 => _154.outputs]));
|
|
5133
5104
|
if (Object.keys(outputs).length === 0) return available;
|
|
5134
5105
|
const expanded = [...available];
|
|
5135
5106
|
for (const outputValue of Object.values(outputs)) {
|
|
@@ -5143,7 +5114,7 @@ function withReturnedDatasetAliases(runPackage, available) {
|
|
|
5143
5114
|
return expanded;
|
|
5144
5115
|
}
|
|
5145
5116
|
function returnedRunDatasets(runPackage, available) {
|
|
5146
|
-
const rawOutputs = _optionalChain([packageForDatasetSelection, 'call',
|
|
5117
|
+
const rawOutputs = _optionalChain([packageForDatasetSelection, 'call', _155 => _155(runPackage), 'optionalAccess', _156 => _156.outputs]);
|
|
5147
5118
|
const outputs = recordValue(rawOutputs);
|
|
5148
5119
|
if (rawOutputs && typeof rawOutputs === "object" && !Array.isArray(rawOutputs)) {
|
|
5149
5120
|
const selected = [];
|
|
@@ -5162,7 +5133,7 @@ function returnedRunDatasets(runPackage, available) {
|
|
|
5162
5133
|
return distinctCanonicalRowsInfos(
|
|
5163
5134
|
available.filter(
|
|
5164
5135
|
(info) => info.returned || [info.source, ..._nullishCoalesce(info.sourceAliases, () => ( []))].some(
|
|
5165
|
-
(path) => _optionalChain([path, 'optionalAccess',
|
|
5136
|
+
(path) => _optionalChain([path, 'optionalAccess', _157 => _157.startsWith, 'call', _158 => _158("result.")])
|
|
5166
5137
|
) && !info.recovered
|
|
5167
5138
|
)
|
|
5168
5139
|
);
|
|
@@ -5192,7 +5163,7 @@ function resolveReturnedDataset(output, available) {
|
|
|
5192
5163
|
}
|
|
5193
5164
|
const legacy = path ? uniqueDatasetMatch(
|
|
5194
5165
|
available.filter(
|
|
5195
|
-
(info) => info.source === path || _optionalChain([info, 'access',
|
|
5166
|
+
(info) => info.source === path || _optionalChain([info, 'access', _159 => _159.sourceAliases, 'optionalAccess', _160 => _160.includes, 'call', _161 => _161(path)])
|
|
5196
5167
|
),
|
|
5197
5168
|
path
|
|
5198
5169
|
) : null;
|
|
@@ -5222,7 +5193,7 @@ var RUN_PLAY_SIGNATURE_HINT = "Deepline hint: deepline.runPlay uses a stable key
|
|
|
5222
5193
|
var MAP_BACKED_CHILD_HINT = "Deepline hint: dataset-backed child plays own durable table state and cannot be called from another play. Run that play directly, export its dataset, then pass the CSV to the next play.";
|
|
5223
5194
|
function sourceLineForError(sourceCode, error) {
|
|
5224
5195
|
const match = error.match(/:(\d+):(\d+)\s/);
|
|
5225
|
-
const lineNumber = _optionalChain([match, 'optionalAccess',
|
|
5196
|
+
const lineNumber = _optionalChain([match, 'optionalAccess', _162 => _162[1]]) ? Number(match[1]) : NaN;
|
|
5226
5197
|
if (!Number.isInteger(lineNumber) || lineNumber < 1) return "";
|
|
5227
5198
|
return _nullishCoalesce(sourceCode.split(/\r?\n/)[lineNumber - 1], () => ( ""));
|
|
5228
5199
|
}
|
|
@@ -5784,7 +5755,7 @@ async function discoverDeploymentFiles(input) {
|
|
|
5784
5755
|
}
|
|
5785
5756
|
}
|
|
5786
5757
|
const rootStat = await _promises.stat.call(void 0, input.projectRoot).catch(() => null);
|
|
5787
|
-
if (!_optionalChain([rootStat, 'optionalAccess',
|
|
5758
|
+
if (!_optionalChain([rootStat, 'optionalAccess', _163 => _163.isDirectory, 'call', _164 => _164()])) {
|
|
5788
5759
|
throw new DeeplineManifestError(
|
|
5789
5760
|
`Project root directory does not exist in the repo: ${input.projectRoot}`
|
|
5790
5761
|
);
|
|
@@ -5886,7 +5857,7 @@ function resolveOwnedPlayReferenceName(reference, ownerSlug) {
|
|
|
5886
5857
|
if (parsed.kind !== "org") {
|
|
5887
5858
|
return null;
|
|
5888
5859
|
}
|
|
5889
|
-
const normalizedOwnerSlug = _nullishCoalesce(_optionalChain([ownerSlug, 'optionalAccess',
|
|
5860
|
+
const normalizedOwnerSlug = _nullishCoalesce(_optionalChain([ownerSlug, 'optionalAccess', _165 => _165.trim, 'call', _166 => _166(), 'access', _167 => _167.toLowerCase, 'call', _168 => _168()]), () => ( ""));
|
|
5890
5861
|
return normalizedOwnerSlug && parsed.ownerSlug.trim().toLowerCase() === normalizedOwnerSlug ? parsed.name : null;
|
|
5891
5862
|
}
|
|
5892
5863
|
|
|
@@ -5901,7 +5872,7 @@ function stringLiteralValue(node) {
|
|
|
5901
5872
|
return node.value;
|
|
5902
5873
|
}
|
|
5903
5874
|
if (node.type === "TemplateLiteral" && Array.isArray(node.expressions) && node.expressions.length === 0 && Array.isArray(node.quasis) && node.quasis.length === 1) {
|
|
5904
|
-
const cooked = _optionalChain([node, 'access',
|
|
5875
|
+
const cooked = _optionalChain([node, 'access', _169 => _169.quasis, 'access', _170 => _170[0], 'access', _171 => _171.value, 'optionalAccess', _172 => _172.cooked]);
|
|
5905
5876
|
return typeof cooked === "string" ? cooked : null;
|
|
5906
5877
|
}
|
|
5907
5878
|
return null;
|
|
@@ -6025,7 +5996,7 @@ async function runDeployment(params, hooks) {
|
|
|
6025
5996
|
`Deployment ${params.deploymentId} has no linked repository and no target directory was given.`
|
|
6026
5997
|
);
|
|
6027
5998
|
}
|
|
6028
|
-
const checkRunName = _optionalChain([state, 'access',
|
|
5999
|
+
const checkRunName = _optionalChain([state, 'access', _173 => _173.checkRunName, 'optionalAccess', _174 => _174.trim, 'call', _175 => _175()]) || void 0;
|
|
6029
6000
|
let mergedPullRequestNumber = null;
|
|
6030
6001
|
let promoted = false;
|
|
6031
6002
|
const setStatus = (input) => client.setStatus({
|
|
@@ -6096,7 +6067,7 @@ async function runDeployment(params, hooks) {
|
|
|
6096
6067
|
finalStatus,
|
|
6097
6068
|
outcomes,
|
|
6098
6069
|
...monitorRunResult(),
|
|
6099
|
-
checkRunId: _optionalChain([checkRun, 'optionalAccess',
|
|
6070
|
+
checkRunId: _optionalChain([checkRun, 'optionalAccess', _176 => _176.checkRunId])
|
|
6100
6071
|
};
|
|
6101
6072
|
};
|
|
6102
6073
|
await _promises.mkdir.call(void 0, hooks.workRoot, { recursive: true });
|
|
@@ -6122,7 +6093,7 @@ async function runDeployment(params, hooks) {
|
|
|
6122
6093
|
const source = await hooks.openSource({ client, deployment });
|
|
6123
6094
|
if (deployment.isProduction) {
|
|
6124
6095
|
try {
|
|
6125
|
-
mergedPullRequestNumber = await _asyncNullishCoalesce(await _optionalChain([source, 'access',
|
|
6096
|
+
mergedPullRequestNumber = await _asyncNullishCoalesce(await _optionalChain([source, 'access', _177 => _177.findMergedPullRequest, 'optionalCall', _178 => _178()]), async () => ( null));
|
|
6126
6097
|
} catch (error) {
|
|
6127
6098
|
console.warn("[deploy-worker] merged PR lookup failed", {
|
|
6128
6099
|
deploymentId: params.deploymentId,
|
|
@@ -6192,15 +6163,15 @@ async function runDeployment(params, hooks) {
|
|
|
6192
6163
|
return finishFailed({
|
|
6193
6164
|
error: input.error,
|
|
6194
6165
|
outcomes: input.outcomes,
|
|
6195
|
-
checkRunId: _optionalChain([checkRun2, 'optionalAccess',
|
|
6166
|
+
checkRunId: _optionalChain([checkRun2, 'optionalAccess', _179 => _179.checkRunId])
|
|
6196
6167
|
});
|
|
6197
6168
|
};
|
|
6198
6169
|
postFailureCheck = async (summary) => await _asyncOptionalChain([(await postCheckOrNull({
|
|
6199
6170
|
conclusion: "failure",
|
|
6200
6171
|
title: "Deploy failed",
|
|
6201
6172
|
summary
|
|
6202
|
-
})), 'optionalAccess', async
|
|
6203
|
-
const deploymentBranch = _optionalChain([deployment, 'access',
|
|
6173
|
+
})), 'optionalAccess', async _180 => _180.checkRunId]);
|
|
6174
|
+
const deploymentBranch = _optionalChain([deployment, 'access', _181 => _181.ref, 'optionalAccess', _182 => _182.startsWith, 'call', _183 => _183("refs/heads/")]) ? deployment.ref.slice("refs/heads/".length) : _nullishCoalesce(_optionalChain([project, 'optionalAccess', _184 => _184.productionBranch]), () => ( null));
|
|
6204
6175
|
const supersedeIfHeadMoved = async () => {
|
|
6205
6176
|
if (!deployment.isProduction || !source.branchHead || !deploymentBranch) {
|
|
6206
6177
|
return null;
|
|
@@ -6214,7 +6185,7 @@ async function runDeployment(params, hooks) {
|
|
|
6214
6185
|
});
|
|
6215
6186
|
await setStatus({
|
|
6216
6187
|
status: "superseded",
|
|
6217
|
-
error: `Branch ${deploymentBranch} is now at ${_nullishCoalesce(_optionalChain([head, 'optionalAccess',
|
|
6188
|
+
error: `Branch ${deploymentBranch} is now at ${_nullishCoalesce(_optionalChain([head, 'optionalAccess', _185 => _185.slice, 'call', _186 => _186(0, 12)]), () => ( "<deleted>"))}; this deployment's commit is no longer the head.`,
|
|
6218
6189
|
buildSeconds: buildSeconds(),
|
|
6219
6190
|
...monitorOutcomes.length > 0 ? { results: monitorResults() } : {},
|
|
6220
6191
|
...head ? { observedHeadSha: head } : {}
|
|
@@ -6330,7 +6301,7 @@ async function runDeployment(params, hooks) {
|
|
|
6330
6301
|
failPlay(file, repoRelativeFile, message);
|
|
6331
6302
|
continue;
|
|
6332
6303
|
}
|
|
6333
|
-
const name = _nullishCoalesce(_optionalChain([result, 'access',
|
|
6304
|
+
const name = _nullishCoalesce(_optionalChain([result, 'access', _187 => _187.playName, 'optionalAccess', _188 => _188.trim, 'call', _189 => _189()]), () => ( ""));
|
|
6334
6305
|
if (!name) {
|
|
6335
6306
|
failPlay(
|
|
6336
6307
|
file,
|
|
@@ -6349,7 +6320,7 @@ async function runDeployment(params, hooks) {
|
|
|
6349
6320
|
continue;
|
|
6350
6321
|
}
|
|
6351
6322
|
seenNames.set(name, file);
|
|
6352
|
-
const disallowed = (_nullishCoalesce(_optionalChain([result, 'access',
|
|
6323
|
+
const disallowed = (_nullishCoalesce(_optionalChain([result, 'access', _190 => _190.artifact, 'access', _191 => _191.importPolicy, 'optionalAccess', _192 => _192.packages]), () => ( []))).map(
|
|
6353
6324
|
(pkg) => typeof pkg === "string" ? pkg : _nullishCoalesce(pkg.name, () => ( ""))
|
|
6354
6325
|
).filter((pkgName) => pkgName && pkgName !== "deepline");
|
|
6355
6326
|
if (disallowed.length > 0) {
|
|
@@ -6433,7 +6404,7 @@ async function runDeployment(params, hooks) {
|
|
|
6433
6404
|
const conflicts = [];
|
|
6434
6405
|
for (const play of ordered) {
|
|
6435
6406
|
const owner = stateByName.get(play.name);
|
|
6436
|
-
if (!project || !_optionalChain([owner, 'optionalAccess',
|
|
6407
|
+
if (!project || !_optionalChain([owner, 'optionalAccess', _193 => _193.playProjectRepo]) || owner.playProjectRepo === _optionalChain([project, 'optionalAccess', _194 => _194.repoFullName]) || owner.playProjectDisabled) {
|
|
6437
6408
|
continue;
|
|
6438
6409
|
}
|
|
6439
6410
|
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.`;
|
|
@@ -6456,16 +6427,16 @@ async function runDeployment(params, hooks) {
|
|
|
6456
6427
|
}
|
|
6457
6428
|
const playByName = new Map(ordered.map((play) => [play.name, play]));
|
|
6458
6429
|
const sdkUpdated = (name) => {
|
|
6459
|
-
const artifact = _optionalChain([playByName, 'access',
|
|
6460
|
-
const live = _nullishCoalesce(_optionalChain([stateByName, 'access',
|
|
6430
|
+
const artifact = _optionalChain([playByName, 'access', _195 => _195.get, 'call', _196 => _196(name), 'optionalAccess', _197 => _197.result, 'access', _198 => _198.artifact]);
|
|
6431
|
+
const live = _nullishCoalesce(_optionalChain([stateByName, 'access', _199 => _199.get, 'call', _200 => _200(name), 'optionalAccess', _201 => _201.liveRevision]), () => ( null));
|
|
6461
6432
|
return artifact && isSdkUpdated(live, artifact) ? { sdkUpdated: true } : {};
|
|
6462
6433
|
};
|
|
6463
6434
|
const outcomes = [];
|
|
6464
6435
|
const toRegister = [];
|
|
6465
6436
|
const toPromote = [];
|
|
6466
6437
|
const takeoverWarning = (state2) => {
|
|
6467
|
-
const owner = _optionalChain([state2, 'optionalAccess',
|
|
6468
|
-
if (!owner || owner === _optionalChain([project, 'optionalAccess',
|
|
6438
|
+
const owner = _optionalChain([state2, 'optionalAccess', _202 => _202.playProjectRepo]);
|
|
6439
|
+
if (!owner || owner === _optionalChain([project, 'optionalAccess', _203 => _203.repoFullName])) return void 0;
|
|
6469
6440
|
if (!project) {
|
|
6470
6441
|
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.`;
|
|
6471
6442
|
}
|
|
@@ -6477,8 +6448,8 @@ async function runDeployment(params, hooks) {
|
|
|
6477
6448
|
const artifact = play.result.artifact;
|
|
6478
6449
|
const importsOtherPlays = (_nullishCoalesce(play.result.importedPlayDependencies, () => ( []))).length > 0;
|
|
6479
6450
|
const matches = (revision) => !importsOtherPlays && carriesArtifact(revision, artifact);
|
|
6480
|
-
if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess',
|
|
6481
|
-
if (deployment.isProduction && project && (_optionalChain([playState, 'optionalAccess',
|
|
6451
|
+
if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess', _204 => _204.liveRevision]), () => ( null)))) {
|
|
6452
|
+
if (deployment.isProduction && project && (_optionalChain([playState, 'optionalAccess', _205 => _205.playProjectId]) !== project.id || _optionalChain([playState, 'optionalAccess', _206 => _206.driftFromGit]))) {
|
|
6482
6453
|
toPromote.push({
|
|
6483
6454
|
name: play.name,
|
|
6484
6455
|
revisionId: playState.liveRevision.revisionId
|
|
@@ -6489,12 +6460,12 @@ async function runDeployment(params, hooks) {
|
|
|
6489
6460
|
name: play.name,
|
|
6490
6461
|
file: play.file,
|
|
6491
6462
|
status: "unchanged",
|
|
6492
|
-
version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess',
|
|
6463
|
+
version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess', _207 => _207.liveRevision, 'optionalAccess', _208 => _208.version]), () => ( void 0)),
|
|
6493
6464
|
...warning ? { warning } : {}
|
|
6494
6465
|
});
|
|
6495
6466
|
continue;
|
|
6496
6467
|
}
|
|
6497
|
-
if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess',
|
|
6468
|
+
if (matches(_nullishCoalesce(_optionalChain([playState, 'optionalAccess', _209 => _209.workingRevision]), () => ( null)))) {
|
|
6498
6469
|
if (deployment.isProduction) {
|
|
6499
6470
|
toPromote.push({
|
|
6500
6471
|
name: play.name,
|
|
@@ -6505,7 +6476,7 @@ async function runDeployment(params, hooks) {
|
|
|
6505
6476
|
name: play.name,
|
|
6506
6477
|
file: play.file,
|
|
6507
6478
|
status: "registered",
|
|
6508
|
-
version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess',
|
|
6479
|
+
version: _nullishCoalesce(_optionalChain([playState, 'optionalAccess', _210 => _210.workingRevision, 'optionalAccess', _211 => _211.version]), () => ( void 0)),
|
|
6509
6480
|
...sdkUpdated(play.name),
|
|
6510
6481
|
...warning ? { warning } : {}
|
|
6511
6482
|
});
|
|
@@ -6632,11 +6603,11 @@ async function runDeployment(params, hooks) {
|
|
|
6632
6603
|
const promotion = await client.promote(toPromote);
|
|
6633
6604
|
promoted = true;
|
|
6634
6605
|
for (const outcome of promotion.outcomes) {
|
|
6635
|
-
const previousVersion = _nullishCoalesce(_optionalChain([stateByName, 'access',
|
|
6606
|
+
const previousVersion = _nullishCoalesce(_optionalChain([stateByName, 'access', _212 => _212.get, 'call', _213 => _213(outcome.name), 'optionalAccess', _214 => _214.liveRevision, 'optionalAccess', _215 => _215.version]), () => ( null));
|
|
6636
6607
|
const warning = takeoverWarning(stateByName.get(outcome.name));
|
|
6637
6608
|
outcomes.push({
|
|
6638
6609
|
name: outcome.name,
|
|
6639
|
-
file: _nullishCoalesce(_optionalChain([playByName, 'access',
|
|
6610
|
+
file: _nullishCoalesce(_optionalChain([playByName, 'access', _216 => _216.get, 'call', _217 => _217(outcome.name), 'optionalAccess', _218 => _218.file]), () => ( outcome.name)),
|
|
6640
6611
|
status: outcome.status === "promoted" ? "promoted" : "failed",
|
|
6641
6612
|
version: outcome.version,
|
|
6642
6613
|
...outcome.status === "promoted" && typeof previousVersion === "number" && previousVersion !== outcome.version ? { previousVersion } : {},
|
|
@@ -6648,7 +6619,7 @@ async function runDeployment(params, hooks) {
|
|
|
6648
6619
|
} catch (error) {
|
|
6649
6620
|
if (revokedFinalStatus(error)) throw error;
|
|
6650
6621
|
const body = error instanceof DeployApiError ? error.body : null;
|
|
6651
|
-
const errorText = _nullishCoalesce(_optionalChain([body, 'optionalAccess',
|
|
6622
|
+
const errorText = _nullishCoalesce(_optionalChain([body, 'optionalAccess', _219 => _219.error]), () => ( (error instanceof Error ? error.message : String(error))));
|
|
6652
6623
|
if (/PLAY_DEPLOYMENT_NOT_ACTIVE/.test(errorText)) {
|
|
6653
6624
|
console.info("[deploy-worker] cancelled at promote", {
|
|
6654
6625
|
deploymentId: params.deploymentId
|
|
@@ -6672,9 +6643,9 @@ async function runDeployment(params, hooks) {
|
|
|
6672
6643
|
error: errorText,
|
|
6673
6644
|
outcomes: [
|
|
6674
6645
|
...outcomes,
|
|
6675
|
-
...(_nullishCoalesce(_optionalChain([body, 'optionalAccess',
|
|
6646
|
+
...(_nullishCoalesce(_optionalChain([body, 'optionalAccess', _220 => _220.outcomes]), () => ( toPromote))).map((entry) => ({
|
|
6676
6647
|
name: entry.name,
|
|
6677
|
-
file: _nullishCoalesce(_optionalChain([playByName, 'access',
|
|
6648
|
+
file: _nullishCoalesce(_optionalChain([playByName, 'access', _221 => _221.get, 'call', _222 => _222(entry.name), 'optionalAccess', _223 => _223.file]), () => ( entry.name)),
|
|
6678
6649
|
status: "failed",
|
|
6679
6650
|
error: _nullishCoalesce(("error" in entry ? entry.error : void 0), () => ( errorText))
|
|
6680
6651
|
}))
|
|
@@ -6718,7 +6689,7 @@ async function runDeployment(params, hooks) {
|
|
|
6718
6689
|
});
|
|
6719
6690
|
let checkRunId;
|
|
6720
6691
|
try {
|
|
6721
|
-
checkRunId = await _optionalChain([postFailureCheck, 'optionalCall',
|
|
6692
|
+
checkRunId = await _optionalChain([postFailureCheck, 'optionalCall', _224 => _224(message.slice(0, 2e3))]);
|
|
6722
6693
|
} catch (checkError) {
|
|
6723
6694
|
const revokedAtCheck = revokedFinalStatus(checkError);
|
|
6724
6695
|
if (revokedAtCheck) {
|
|
@@ -6786,7 +6757,7 @@ function renderOutcome(outcome) {
|
|
|
6786
6757
|
function printResult2(input) {
|
|
6787
6758
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6788
6759
|
if (failed) process.exitCode = 1;
|
|
6789
|
-
|
|
6760
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
6790
6761
|
{
|
|
6791
6762
|
deployment: { ...input.deployment, status: input.status },
|
|
6792
6763
|
plays: input.outcomes,
|
|
@@ -6811,7 +6782,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6811
6782
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6812
6783
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6813
6784
|
});
|
|
6814
|
-
const { http, config } =
|
|
6785
|
+
const { http, config } = _chunkZL4Q4T3Gjs.getAuthedHttpClient.call(void 0, );
|
|
6815
6786
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6816
6787
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6817
6788
|
deliveryId,
|
|
@@ -6838,14 +6809,14 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6838
6809
|
},
|
|
6839
6810
|
{
|
|
6840
6811
|
bundle: bundleDeployPlayFile,
|
|
6841
|
-
fetchImpl:
|
|
6812
|
+
fetchImpl: _chunkGRIHMNYMjs.fetchWithDeploymentProtection,
|
|
6842
6813
|
// The plays are already here: "opening" the source is naming it.
|
|
6843
6814
|
openSource: async () => ({
|
|
6844
6815
|
open: async () => ({ repoRoot: root })
|
|
6845
6816
|
}),
|
|
6846
6817
|
target: {
|
|
6847
6818
|
rootDirectory: "",
|
|
6848
|
-
manifestPath: _nullishCoalesce(_optionalChain([options, 'access',
|
|
6819
|
+
manifestPath: _nullishCoalesce(_optionalChain([options, 'access', _225 => _225.manifest, 'optionalAccess', _226 => _226.trim, 'call', _227 => _227()]), () => ( ""))
|
|
6849
6820
|
},
|
|
6850
6821
|
workRoot
|
|
6851
6822
|
}
|
|
@@ -6929,7 +6900,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6929
6900
|
sourceCode: node.sourceCode,
|
|
6930
6901
|
sourceFiles: node.sourceFiles,
|
|
6931
6902
|
description: _nullishCoalesce(node.playDescription, () => ( void 0)),
|
|
6932
|
-
artifact: _nullishCoalesce(_optionalChain([input, 'access',
|
|
6903
|
+
artifact: _nullishCoalesce(_optionalChain([input, 'access', _228 => _228.prepareArtifact, 'optionalCall', _229 => _229(node.artifact)]), () => ( node.artifact)),
|
|
6933
6904
|
...exportName === "default" ? {} : { exportName },
|
|
6934
6905
|
...importedPlays.length ? { importedPlays } : {},
|
|
6935
6906
|
...input.integrationMode ? { integrationMode: input.integrationMode } : {}
|
|
@@ -6964,7 +6935,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6964
6935
|
// src/cli/renderers/local-play-execution.ts
|
|
6965
6936
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6966
6937
|
if (options.dryRun) {
|
|
6967
|
-
|
|
6938
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6968
6939
|
return;
|
|
6969
6940
|
}
|
|
6970
6941
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7056,7 +7027,7 @@ async function preflightRunIdFile(path) {
|
|
|
7056
7027
|
`Cannot write --run-id-file destination ${destination}: ${error instanceof Error ? error.message : String(error)}`
|
|
7057
7028
|
);
|
|
7058
7029
|
} finally {
|
|
7059
|
-
await _optionalChain([handle, 'optionalAccess',
|
|
7030
|
+
await _optionalChain([handle, 'optionalAccess', _230 => _230.close, 'call', _231 => _231()]);
|
|
7060
7031
|
await removeRunIdTempFile(tempPath);
|
|
7061
7032
|
}
|
|
7062
7033
|
return destination;
|
|
@@ -7110,9 +7081,9 @@ async function writePlayRunIdFile(destination, runId, options = {}) {
|
|
|
7110
7081
|
} catch (error) {
|
|
7111
7082
|
if (error.code !== "EEXIST") throw error;
|
|
7112
7083
|
const raced = await readRunIdFile(destination);
|
|
7113
|
-
if (_optionalChain([raced, 'optionalAccess',
|
|
7084
|
+
if (_optionalChain([raced, 'optionalAccess', _232 => _232.runId]) !== runId) {
|
|
7114
7085
|
throw new Error(
|
|
7115
|
-
`--run-id-file destination already records run ${_nullishCoalesce(_optionalChain([raced, 'optionalAccess',
|
|
7086
|
+
`--run-id-file destination already records run ${_nullishCoalesce(_optionalChain([raced, 'optionalAccess', _233 => _233.runId]), () => ( "<invalid>"))}; refusing to replace it with ${runId}: ${destination}`
|
|
7116
7087
|
);
|
|
7117
7088
|
}
|
|
7118
7089
|
if (!options.launchConfirmed || raced.launchConfirmed) return;
|
|
@@ -7128,7 +7099,7 @@ async function writePlayRunIdFile(destination, runId, options = {}) {
|
|
|
7128
7099
|
}
|
|
7129
7100
|
}
|
|
7130
7101
|
} finally {
|
|
7131
|
-
await _optionalChain([handle, 'optionalAccess',
|
|
7102
|
+
await _optionalChain([handle, 'optionalAccess', _234 => _234.close, 'call', _235 => _235()]);
|
|
7132
7103
|
await removeRunIdTempFile(tempPath);
|
|
7133
7104
|
}
|
|
7134
7105
|
}
|
|
@@ -7136,7 +7107,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7136
7107
|
const startedAt = Date.now();
|
|
7137
7108
|
try {
|
|
7138
7109
|
const result = run();
|
|
7139
|
-
|
|
7110
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
7140
7111
|
phase,
|
|
7141
7112
|
ms: Date.now() - startedAt,
|
|
7142
7113
|
ok: true,
|
|
@@ -7144,7 +7115,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7144
7115
|
});
|
|
7145
7116
|
return result;
|
|
7146
7117
|
} catch (error) {
|
|
7147
|
-
|
|
7118
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
7148
7119
|
phase,
|
|
7149
7120
|
ms: Date.now() - startedAt,
|
|
7150
7121
|
ok: false,
|
|
@@ -7215,10 +7186,10 @@ function playReferenceMatchTokens(value) {
|
|
|
7215
7186
|
return normalizePlayReferenceForMatch(value).split("-").filter((token) => token.length > 1 && token !== "to" && token !== "and");
|
|
7216
7187
|
}
|
|
7217
7188
|
function playSuggestionReference(play) {
|
|
7218
|
-
if (_optionalChain([play, 'access',
|
|
7189
|
+
if (_optionalChain([play, 'access', _236 => _236.reference, 'optionalAccess', _237 => _237.trim, 'call', _238 => _238()])) {
|
|
7219
7190
|
return play.reference.trim();
|
|
7220
7191
|
}
|
|
7221
|
-
const ownerSlug = _optionalChain([play, 'access',
|
|
7192
|
+
const ownerSlug = _optionalChain([play, 'access', _239 => _239.ownerSlug, 'optionalAccess', _240 => _240.trim, 'call', _241 => _241()]);
|
|
7222
7193
|
return ownerSlug ? `${ownerSlug}/${play.name}` : play.name;
|
|
7223
7194
|
}
|
|
7224
7195
|
function scorePlayReferenceSuggestion(requested, play) {
|
|
@@ -7234,8 +7205,8 @@ function scorePlayReferenceSuggestion(requested, play) {
|
|
|
7234
7205
|
const reference = playSuggestionReference(play);
|
|
7235
7206
|
const referenceNorm = normalizePlayReferenceForMatch(reference);
|
|
7236
7207
|
const nameNorm = normalizePlayReferenceForMatch(play.name);
|
|
7237
|
-
const candidateNamespace = reference.includes("/") ? _optionalChain([reference, 'access',
|
|
7238
|
-
const requestedNamespace = _nullishCoalesce(_optionalChain([parsed, 'access',
|
|
7208
|
+
const candidateNamespace = reference.includes("/") ? _optionalChain([reference, 'access', _242 => _242.split, 'call', _243 => _243("/"), 'access', _244 => _244[0], 'optionalAccess', _245 => _245.toLowerCase, 'call', _246 => _246()]) : null;
|
|
7209
|
+
const requestedNamespace = _nullishCoalesce(_optionalChain([parsed, 'access', _247 => _247.ownerSlug, 'optionalAccess', _248 => _248.toLowerCase, 'call', _249 => _249()]), () => ( null));
|
|
7239
7210
|
const aliases = (_nullishCoalesce(play.aliases, () => ( []))).map(normalizePlayReferenceForMatch);
|
|
7240
7211
|
const searchable = [referenceNorm, nameNorm, ...aliases].filter(Boolean);
|
|
7241
7212
|
const requestedTokens = playReferenceMatchTokens(requestedName);
|
|
@@ -7352,16 +7323,16 @@ async function buildPlayReferenceNotFoundError(input) {
|
|
|
7352
7323
|
suggestions = [];
|
|
7353
7324
|
}
|
|
7354
7325
|
const sourceError = input.sourceError instanceof _chunkDIAWYWT5js.DeeplineError ? input.sourceError : null;
|
|
7355
|
-
const code = _optionalChain([sourceError, 'optionalAccess',
|
|
7326
|
+
const code = _optionalChain([sourceError, 'optionalAccess', _250 => _250.code]) && sourceError.code !== "API_ERROR" ? sourceError.code : "PLAY_NOT_FOUND";
|
|
7356
7327
|
return new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
7357
7328
|
buildPlayReferenceNotFoundMessage({
|
|
7358
7329
|
requested: input.target,
|
|
7359
7330
|
command: input.command,
|
|
7360
7331
|
suggestions
|
|
7361
7332
|
}),
|
|
7362
|
-
_nullishCoalesce(_optionalChain([sourceError, 'optionalAccess',
|
|
7333
|
+
_nullishCoalesce(_optionalChain([sourceError, 'optionalAccess', _251 => _251.statusCode]), () => ( 404)),
|
|
7363
7334
|
code,
|
|
7364
|
-
_optionalChain([sourceError, 'optionalAccess',
|
|
7335
|
+
_optionalChain([sourceError, 'optionalAccess', _252 => _252.details])
|
|
7365
7336
|
);
|
|
7366
7337
|
}
|
|
7367
7338
|
async function isMissingRunPlayReferenceError(input) {
|
|
@@ -7413,7 +7384,7 @@ function formatPlayReference(play) {
|
|
|
7413
7384
|
if (play.reference) {
|
|
7414
7385
|
return play.reference;
|
|
7415
7386
|
}
|
|
7416
|
-
const ownerSlug = _optionalChain([play, 'access',
|
|
7387
|
+
const ownerSlug = _optionalChain([play, 'access', _253 => _253.ownerSlug, 'optionalAccess', _254 => _254.trim, 'call', _255 => _255()]) || "org";
|
|
7417
7388
|
return `${ownerSlug}/${play.name}`;
|
|
7418
7389
|
}
|
|
7419
7390
|
function formatPlayListReference(play) {
|
|
@@ -7443,7 +7414,7 @@ function materializeRemotePlaySource(input) {
|
|
|
7443
7414
|
return null;
|
|
7444
7415
|
}
|
|
7445
7416
|
const entrySource = input.source.files[input.source.entryFile];
|
|
7446
|
-
if (!_optionalChain([entrySource, 'optionalAccess',
|
|
7417
|
+
if (!_optionalChain([entrySource, 'optionalAccess', _256 => _256.trim, 'call', _257 => _257()])) {
|
|
7447
7418
|
return null;
|
|
7448
7419
|
}
|
|
7449
7420
|
const files = Object.entries(input.source.files);
|
|
@@ -7622,7 +7593,7 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
|
|
|
7622
7593
|
if (!trimmed || isUrlValue(trimmed)) {
|
|
7623
7594
|
return;
|
|
7624
7595
|
}
|
|
7625
|
-
const keyIsCsvData = key ===
|
|
7596
|
+
const keyIsCsvData = key === _chunkEQR5O2D2js.CSV_DATA_INPUT_KEY;
|
|
7626
7597
|
const endsWithCsv = /\.csv$/i.test(trimmed);
|
|
7627
7598
|
const looksLikeFile = /\.[a-z0-9]{1,8}$/i.test(trimmed);
|
|
7628
7599
|
if (keyIsCsvData) {
|
|
@@ -7653,14 +7624,14 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
|
|
|
7653
7624
|
}
|
|
7654
7625
|
}
|
|
7655
7626
|
function preflightLocalFileInputs(runtimeInput) {
|
|
7656
|
-
if (
|
|
7657
|
-
const csvValue = runtimeInput[
|
|
7627
|
+
if (_chunkEQR5O2D2js.CSV_DATA_INPUT_KEY in runtimeInput) {
|
|
7628
|
+
const csvValue = runtimeInput[_chunkEQR5O2D2js.CSV_DATA_INPUT_KEY];
|
|
7658
7629
|
if (typeof csvValue === "string" && csvValue.trim().length === 0) {
|
|
7659
7630
|
throw new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
7660
|
-
`Input ${
|
|
7631
|
+
`Input ${_chunkEQR5O2D2js.CSV_DATA_INPUT_KEY} is an empty string. Provide a path to a CSV file (or a CSV URL). No run was created.`,
|
|
7661
7632
|
void 0,
|
|
7662
7633
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
7663
|
-
{ inputPath:
|
|
7634
|
+
{ inputPath: _chunkEQR5O2D2js.CSV_DATA_INPUT_KEY, reason: "csv_empty_string" }
|
|
7664
7635
|
);
|
|
7665
7636
|
}
|
|
7666
7637
|
}
|
|
@@ -7727,7 +7698,7 @@ var NODE_STAGED_FILE_CODEC = {
|
|
|
7727
7698
|
)
|
|
7728
7699
|
};
|
|
7729
7700
|
async function stageFileInputArgs(input) {
|
|
7730
|
-
return
|
|
7701
|
+
return _chunkEQR5O2D2js.stageFileInputs.call(void 0, {
|
|
7731
7702
|
stage: (files) => input.client.stagePlayFiles(files),
|
|
7732
7703
|
runtimeInput: input.runtimeInput,
|
|
7733
7704
|
bindings: input.bindings,
|
|
@@ -7751,7 +7722,7 @@ function stageFile(logicalPath, absolutePath) {
|
|
|
7751
7722
|
logicalPath,
|
|
7752
7723
|
contentBase64: buffer.toString("base64"),
|
|
7753
7724
|
contentHash: _crypto.createHash.call(void 0, "sha256").update(buffer).digest("hex"),
|
|
7754
|
-
contentType:
|
|
7725
|
+
contentType: _chunkEQR5O2D2js.stagedFileContentType.call(void 0, absolutePath),
|
|
7755
7726
|
bytes: buffer.byteLength
|
|
7756
7727
|
};
|
|
7757
7728
|
}
|
|
@@ -7837,7 +7808,7 @@ async function compileBundledPlayGraphManifests(client, graph) {
|
|
|
7837
7808
|
const child = graph.nodes.get(
|
|
7838
7809
|
normalizePlayPath(dependency.filePath)
|
|
7839
7810
|
);
|
|
7840
|
-
if (!_optionalChain([child, 'optionalAccess',
|
|
7811
|
+
if (!_optionalChain([child, 'optionalAccess', _258 => _258.compilerManifest])) {
|
|
7841
7812
|
throw new Error(
|
|
7842
7813
|
`Missing compiler manifest for imported dependency ${dependency.filePath}.`
|
|
7843
7814
|
);
|
|
@@ -7916,7 +7887,7 @@ function formatTimestamp(value) {
|
|
|
7916
7887
|
return date.toISOString();
|
|
7917
7888
|
}
|
|
7918
7889
|
function isoTimestamp(value) {
|
|
7919
|
-
return _nullishCoalesce(_optionalChain([timestampDate, 'call',
|
|
7890
|
+
return _nullishCoalesce(_optionalChain([timestampDate, 'call', _259 => _259(value), 'optionalAccess', _260 => _260.toISOString, 'call', _261 => _261()]), () => ( null));
|
|
7920
7891
|
}
|
|
7921
7892
|
function formatRunLine(run) {
|
|
7922
7893
|
const credits = typeof run.billingTotalCredits === "number" && Number.isFinite(run.billingTotalCredits) ? `${formatCreditAmount2(run.billingTotalCredits)} credits` : "\u2014";
|
|
@@ -7924,7 +7895,7 @@ function formatRunLine(run) {
|
|
|
7924
7895
|
}
|
|
7925
7896
|
function playStatusErrorText(status) {
|
|
7926
7897
|
const chunks = [];
|
|
7927
|
-
const progressError = _optionalChain([status, 'access',
|
|
7898
|
+
const progressError = _optionalChain([status, 'access', _262 => _262.progress, 'optionalAccess', _263 => _263.error]);
|
|
7928
7899
|
if (typeof progressError === "string" && progressError.trim()) {
|
|
7929
7900
|
chunks.push(progressError.trim());
|
|
7930
7901
|
}
|
|
@@ -7950,7 +7921,7 @@ function playStatusErrorText(status) {
|
|
|
7950
7921
|
function isRetryablePendingStartFailure(status) {
|
|
7951
7922
|
if (status.status !== "failed") return false;
|
|
7952
7923
|
if (status.runId && status.runId !== "pending") return false;
|
|
7953
|
-
return
|
|
7924
|
+
return _chunkAOBAVBSXjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7954
7925
|
}
|
|
7955
7926
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7956
7927
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -8000,13 +7971,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
8000
7971
|
}, _class);
|
|
8001
7972
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8002
7973
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8003
|
-
if (!
|
|
7974
|
+
if (!_chunkAOBAVBSXjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8004
7975
|
return false;
|
|
8005
7976
|
}
|
|
8006
|
-
if (
|
|
7977
|
+
if (_chunkAOBAVBSXjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8007
7978
|
return true;
|
|
8008
7979
|
}
|
|
8009
|
-
return state.verbose === true &&
|
|
7980
|
+
return state.verbose === true && _chunkAOBAVBSXjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8010
7981
|
}
|
|
8011
7982
|
function getEventPayload(event) {
|
|
8012
7983
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8029,7 +8000,7 @@ function getRunIdFromLiveEvent(event) {
|
|
|
8029
8000
|
if (typeof directRunId === "string" && directRunId.trim()) {
|
|
8030
8001
|
return directRunId;
|
|
8031
8002
|
}
|
|
8032
|
-
const packageRunId = _optionalChain([getRunRecordFromPackage, 'call',
|
|
8003
|
+
const packageRunId = _optionalChain([getRunRecordFromPackage, 'call', _264 => _264(payload), 'optionalAccess', _265 => _265.id]);
|
|
8033
8004
|
return typeof packageRunId === "string" && packageRunId.trim() ? packageRunId : null;
|
|
8034
8005
|
}
|
|
8035
8006
|
function eventConfirmsPlayRunLaunch(event) {
|
|
@@ -8050,19 +8021,19 @@ function getStatusFromLiveEvent(event) {
|
|
|
8050
8021
|
return null;
|
|
8051
8022
|
}
|
|
8052
8023
|
const payload = getEventPayload(event);
|
|
8053
|
-
return _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([getRunRecordFromPackage, 'call',
|
|
8024
|
+
return _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([getRunRecordFromPackage, 'call', _266 => _266(payload), 'optionalAccess', _267 => _267.status]))));
|
|
8054
8025
|
}
|
|
8055
8026
|
function readLiveRunField(event, field) {
|
|
8056
8027
|
const payload = getEventPayload(event);
|
|
8057
8028
|
if (field === "waitKind") {
|
|
8058
|
-
const wait = _nullishCoalesce(payload.wait, () => ( _optionalChain([getRunRecordFromPackage, 'call',
|
|
8029
|
+
const wait = _nullishCoalesce(payload.wait, () => ( _optionalChain([getRunRecordFromPackage, 'call', _268 => _268(payload), 'optionalAccess', _269 => _269.wait])));
|
|
8059
8030
|
if (wait && typeof wait === "object" && !Array.isArray(wait)) {
|
|
8060
8031
|
const kind = wait.kind;
|
|
8061
8032
|
if (typeof kind === "string" && kind.trim()) return kind.trim();
|
|
8062
8033
|
}
|
|
8063
8034
|
}
|
|
8064
8035
|
const run = getRunRecordFromPackage(payload);
|
|
8065
|
-
const records = [payload, payload.progress, run, _optionalChain([run, 'optionalAccess',
|
|
8036
|
+
const records = [payload, payload.progress, run, _optionalChain([run, 'optionalAccess', _270 => _270.progress])].filter(
|
|
8066
8037
|
(value) => Boolean(value && typeof value === "object" && !Array.isArray(value))
|
|
8067
8038
|
);
|
|
8068
8039
|
for (const record3 of records) {
|
|
@@ -8077,7 +8048,7 @@ function getLiveRunStringField(event, field) {
|
|
|
8077
8048
|
function getLiveRunActivity(event) {
|
|
8078
8049
|
const payload = getEventPayload(event);
|
|
8079
8050
|
const run = getRunRecordFromPackage(payload);
|
|
8080
|
-
const candidates = [payload.activity, _optionalChain([run, 'optionalAccess',
|
|
8051
|
+
const candidates = [payload.activity, _optionalChain([run, 'optionalAccess', _271 => _271.activity])];
|
|
8081
8052
|
for (const candidate of candidates) {
|
|
8082
8053
|
if (candidate && typeof candidate === "object" && !Array.isArray(candidate) && typeof candidate.summary === "string" && candidate.observation && typeof candidate.observation === "object") {
|
|
8083
8054
|
return candidate;
|
|
@@ -8092,9 +8063,9 @@ function getRunLifecycleHint(input) {
|
|
|
8092
8063
|
return null;
|
|
8093
8064
|
}
|
|
8094
8065
|
const activity = getLiveRunActivity(input.event);
|
|
8095
|
-
const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess',
|
|
8066
|
+
const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _272 => _272.observation, 'access', _273 => _273.state, 'access', _274 => _274.kind]) === "active" && activity.observation.target.kind !== "runner";
|
|
8096
8067
|
const inspect = `'deepline runs get ${runId} --full'`;
|
|
8097
|
-
const sleepState = _optionalChain([activity, 'optionalAccess',
|
|
8068
|
+
const sleepState = _optionalChain([activity, 'optionalAccess', _275 => _275.observation, 'access', _276 => _276.state, 'access', _277 => _277.kind]) === "scheduled" && activity.observation.state.reason === "sleep" ? activity.observation.state : null;
|
|
8098
8069
|
if (status === "waiting" && (sleepState !== null || getLiveRunStringField(input.event, "waitKind") === "sleep")) {
|
|
8099
8070
|
const recordedWake = readLiveRunField(input.event, "waitUntil");
|
|
8100
8071
|
const projectedWake = sleepState && sleepState.resumeAt > activity.observation.observedAt ? sleepState.resumeAt : null;
|
|
@@ -8105,7 +8076,7 @@ function getRunLifecycleHint(input) {
|
|
|
8105
8076
|
};
|
|
8106
8077
|
}
|
|
8107
8078
|
const typedEventWaitKind = getLiveRunStringField(input.event, "waitKind");
|
|
8108
|
-
const activityEventWait = _optionalChain([activity, 'optionalAccess',
|
|
8079
|
+
const activityEventWait = _optionalChain([activity, 'optionalAccess', _278 => _278.observation, 'access', _279 => _279.state, 'access', _280 => _280.kind]) === "waiting" && activity.observation.state.reason.kind === "external_event";
|
|
8109
8080
|
if (status === "waiting" && (typedEventWaitKind === "integration_event" || typedEventWaitKind === "integration_event_batch" || activityEventWait)) {
|
|
8110
8081
|
return {
|
|
8111
8082
|
signature: [
|
|
@@ -8178,12 +8149,12 @@ function getFinalStatusFromLiveEvent(event) {
|
|
|
8178
8149
|
}
|
|
8179
8150
|
const payload = getEventPayload(event);
|
|
8180
8151
|
const packageRun = getRunRecordFromPackage(payload);
|
|
8181
|
-
const status = _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([packageRun, 'optionalAccess',
|
|
8152
|
+
const status = _nullishCoalesce(playStatusValue(payload.status), () => ( playStatusValue(_optionalChain([packageRun, 'optionalAccess', _281 => _281.status]))));
|
|
8182
8153
|
if (status !== "completed" && status !== "failed" && status !== "cancelled") {
|
|
8183
8154
|
return null;
|
|
8184
8155
|
}
|
|
8185
|
-
const runId = typeof payload.runId === "string" ? payload.runId : typeof _optionalChain([packageRun, 'optionalAccess',
|
|
8186
|
-
const error = typeof payload.error === "string" ? payload.error : typeof _optionalChain([packageRun, 'optionalAccess',
|
|
8156
|
+
const runId = typeof payload.runId === "string" ? payload.runId : typeof _optionalChain([packageRun, 'optionalAccess', _282 => _282.id]) === "string" ? packageRun.id : "";
|
|
8157
|
+
const error = typeof payload.error === "string" ? payload.error : typeof _optionalChain([packageRun, 'optionalAccess', _283 => _283.error]) === "string" ? packageRun.error : void 0;
|
|
8187
8158
|
return {
|
|
8188
8159
|
...payload,
|
|
8189
8160
|
runId,
|
|
@@ -8418,7 +8389,7 @@ function getProgressLinesFromLiveEvent(event) {
|
|
|
8418
8389
|
(count2) => typeof count2 === "number" && Number.isSafeInteger(count2) && count2 >= 0
|
|
8419
8390
|
)) {
|
|
8420
8391
|
lines.push(
|
|
8421
|
-
`progress calls: ${formatInteger(callCounts[0])} logical, ${formatInteger(callCounts[1])} provider requests, ${formatInteger(callCounts[2])} provider 429s${_optionalChain([calls, 'optionalAccess',
|
|
8392
|
+
`progress calls: ${formatInteger(callCounts[0])} logical, ${formatInteger(callCounts[1])} provider requests, ${formatInteger(callCounts[2])} provider 429s${_optionalChain([calls, 'optionalAccess', _284 => _284.confirmed]) === true ? "" : " (observed)"}`
|
|
8422
8393
|
);
|
|
8423
8394
|
}
|
|
8424
8395
|
const rowOutcomes = readRowOutcomeSummary({
|
|
@@ -8469,7 +8440,7 @@ function getRunningHeartbeatLine(input) {
|
|
|
8469
8440
|
return null;
|
|
8470
8441
|
}
|
|
8471
8442
|
const activity = getLiveRunActivity(input.event);
|
|
8472
|
-
const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess',
|
|
8443
|
+
const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _285 => _285.observation, 'access', _286 => _286.state, 'access', _287 => _287.kind]) === "active" && activity.observation.target.kind !== "runner";
|
|
8473
8444
|
if (activity && activity.classified !== false && !activityConflictsWithDurableWait) {
|
|
8474
8445
|
return `activity ${input.playName}: ${activity.summary}`;
|
|
8475
8446
|
}
|
|
@@ -8502,13 +8473,13 @@ function printPlayStatusHeartbeat(input) {
|
|
|
8502
8473
|
input.progress.writeLine(line);
|
|
8503
8474
|
}
|
|
8504
8475
|
function resolveRunPlayName(status, runId) {
|
|
8505
|
-
const packaged = _optionalChain([status, 'access',
|
|
8476
|
+
const packaged = _optionalChain([status, 'access', _288 => _288.package, 'optionalAccess', _289 => _289.run, 'optionalAccess', _290 => _290.playName]);
|
|
8506
8477
|
if (typeof packaged === "string" && packaged.trim()) return packaged.trim();
|
|
8507
|
-
return _nullishCoalesce(_nullishCoalesce(extractRunPlayName(status), () => ( _optionalChain([/^play\/(.+)\/(?:run|webhook)\//, 'access',
|
|
8478
|
+
return _nullishCoalesce(_nullishCoalesce(extractRunPlayName(status), () => ( _optionalChain([/^play\/(.+)\/(?:run|webhook)\//, 'access', _291 => _291.exec, 'call', _292 => _292(runId), 'optionalAccess', _293 => _293[1]]))), () => ( null));
|
|
8508
8479
|
}
|
|
8509
8480
|
function resolvePlayRunUrl(input) {
|
|
8510
8481
|
if (input.runUrl) return input.runUrl;
|
|
8511
|
-
const runId = _optionalChain([input, 'access',
|
|
8482
|
+
const runId = _optionalChain([input, 'access', _294 => _294.runId, 'optionalAccess', _295 => _295.trim, 'call', _296 => _296()]);
|
|
8512
8483
|
if (!input.dashboardUrl || !runId || runId === "pending") return void 0;
|
|
8513
8484
|
const url = new URL(input.dashboardUrl);
|
|
8514
8485
|
url.searchParams.set("runId", runId);
|
|
@@ -8516,7 +8487,7 @@ function resolvePlayRunUrl(input) {
|
|
|
8516
8487
|
}
|
|
8517
8488
|
function openPlayDashboard(url, open2) {
|
|
8518
8489
|
if (open2 && url) {
|
|
8519
|
-
|
|
8490
|
+
_chunkZL4Q4T3Gjs.openInBrowser.call(void 0, url);
|
|
8520
8491
|
}
|
|
8521
8492
|
}
|
|
8522
8493
|
function printPlayLogLines(input) {
|
|
@@ -8569,7 +8540,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8569
8540
|
const confirmAdmission = async () => {
|
|
8570
8541
|
if (admissionConfirmed) return;
|
|
8571
8542
|
admissionConfirmed = true;
|
|
8572
|
-
await _optionalChain([input, 'access',
|
|
8543
|
+
await _optionalChain([input, 'access', _297 => _297.onRunAdmitted, 'optionalCall', _298 => _298(input.workflowId)]);
|
|
8573
8544
|
};
|
|
8574
8545
|
const withDashboardUrl = (status) => carryFullDurableTerminalStatus(
|
|
8575
8546
|
status,
|
|
@@ -8597,7 +8568,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8597
8568
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8598
8569
|
});
|
|
8599
8570
|
} catch (error) {
|
|
8600
|
-
if (
|
|
8571
|
+
if (_chunkAOBAVBSXjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8601
8572
|
return null;
|
|
8602
8573
|
}
|
|
8603
8574
|
throw error;
|
|
@@ -8678,9 +8649,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8678
8649
|
signal: controller.signal,
|
|
8679
8650
|
deferLogs: !input.emitLogs,
|
|
8680
8651
|
omitTerminalLogs: !input.emitLogs,
|
|
8681
|
-
...
|
|
8652
|
+
..._chunkQZ7I4NZZjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8682
8653
|
onPoll: (observation) => {
|
|
8683
|
-
|
|
8654
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
8684
8655
|
phase: "play_watch_poll",
|
|
8685
8656
|
workflowId: input.workflowId,
|
|
8686
8657
|
ms: observation.durationMs,
|
|
@@ -8694,7 +8665,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8694
8665
|
full: input.fullJson,
|
|
8695
8666
|
billing: false,
|
|
8696
8667
|
onStatus: async (status) => {
|
|
8697
|
-
|
|
8668
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
8698
8669
|
phase: "play_watch_terminal_status",
|
|
8699
8670
|
workflowId: input.workflowId,
|
|
8700
8671
|
full: input.fullJson === true
|
|
@@ -8783,7 +8754,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8783
8754
|
signal: controller.signal,
|
|
8784
8755
|
cliAdmission: useCliAdmission
|
|
8785
8756
|
});
|
|
8786
|
-
|
|
8757
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
8787
8758
|
phase: "cli.play_start_admission_attempt",
|
|
8788
8759
|
ms: Date.now() - postStartedAt,
|
|
8789
8760
|
ok: true,
|
|
@@ -8795,7 +8766,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8795
8766
|
});
|
|
8796
8767
|
break;
|
|
8797
8768
|
} catch (error) {
|
|
8798
|
-
|
|
8769
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
8799
8770
|
phase: "cli.play_start_admission_attempt",
|
|
8800
8771
|
ms: Date.now() - postStartedAt,
|
|
8801
8772
|
ok: false,
|
|
@@ -8817,7 +8788,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8817
8788
|
prepared.workflowId
|
|
8818
8789
|
);
|
|
8819
8790
|
}
|
|
8820
|
-
if (callerIntentV2 && error instanceof
|
|
8791
|
+
if (callerIntentV2 && error instanceof _chunkEQR5O2D2js.CliPlayAdmissionCallerIntentV2UnsupportedError) {
|
|
8821
8792
|
if (currentAttempt > 1) {
|
|
8822
8793
|
throw new PlayStartOutcomeUnknownError(
|
|
8823
8794
|
input.playName,
|
|
@@ -8838,7 +8809,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8838
8809
|
waitTimeoutMs: remaining === null ? null : Math.max(1, remaining)
|
|
8839
8810
|
});
|
|
8840
8811
|
}
|
|
8841
|
-
if (useCliAdmission && error instanceof
|
|
8812
|
+
if (useCliAdmission && error instanceof _chunkEQR5O2D2js.CliPlayAdmissionUnsupportedError) {
|
|
8842
8813
|
if (currentAttempt > 1) {
|
|
8843
8814
|
throw new PlayStartOutcomeUnknownError(
|
|
8844
8815
|
input.playName,
|
|
@@ -8846,7 +8817,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8846
8817
|
prepared.workflowId
|
|
8847
8818
|
);
|
|
8848
8819
|
}
|
|
8849
|
-
await
|
|
8820
|
+
await _chunkGKZUGHDKjs.checkPlayRunCompatibility.call(void 0,
|
|
8850
8821
|
input.client.baseUrl,
|
|
8851
8822
|
input.maintenancePolicy
|
|
8852
8823
|
);
|
|
@@ -8864,7 +8835,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8864
8835
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
8865
8836
|
);
|
|
8866
8837
|
}
|
|
8867
|
-
|
|
8838
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
8868
8839
|
phase: "cli.play_start_json_retry",
|
|
8869
8840
|
ms: 0,
|
|
8870
8841
|
ok: true,
|
|
@@ -8920,8 +8891,8 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8920
8891
|
"PLAY_START_MISSING_RUN_ID"
|
|
8921
8892
|
);
|
|
8922
8893
|
}
|
|
8923
|
-
await _optionalChain([input, 'access',
|
|
8924
|
-
await _optionalChain([input, 'access',
|
|
8894
|
+
await _optionalChain([input, 'access', _299 => _299.onRunStarted, 'optionalCall', _300 => _300(workflowId)]);
|
|
8895
|
+
await _optionalChain([input, 'access', _301 => _301.onRunAdmitted, 'optionalCall', _302 => _302(workflowId)]);
|
|
8925
8896
|
const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => ( _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, input.client.baseUrl, input.playName)));
|
|
8926
8897
|
const rateLimited = _nullishCoalesce(started.rateLimited, () => ( null));
|
|
8927
8898
|
if (!input.jsonOutput) {
|
|
@@ -8944,7 +8915,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8944
8915
|
_nullishCoalesce(input.open, () => ( false))
|
|
8945
8916
|
);
|
|
8946
8917
|
input.progress.phase("running");
|
|
8947
|
-
|
|
8918
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
8948
8919
|
phase: "cli.play_start_admitted",
|
|
8949
8920
|
ms: Date.now() - startedAt,
|
|
8950
8921
|
ok: true,
|
|
@@ -8954,15 +8925,15 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8954
8925
|
inlineCompatibility
|
|
8955
8926
|
});
|
|
8956
8927
|
const initialTerminal = readRecord(started.finalStatus);
|
|
8957
|
-
const initialPackage = _nullishCoalesce(readRecord(_optionalChain([initialTerminal, 'optionalAccess',
|
|
8958
|
-
const initialRun = readRecord(_optionalChain([initialPackage, 'optionalAccess',
|
|
8959
|
-
if (initialTerminal && _optionalChain([initialRun, 'optionalAccess',
|
|
8928
|
+
const initialPackage = _nullishCoalesce(readRecord(_optionalChain([initialTerminal, 'optionalAccess', _303 => _303.package])), () => ( initialTerminal));
|
|
8929
|
+
const initialRun = readRecord(_optionalChain([initialPackage, 'optionalAccess', _304 => _304.run]));
|
|
8930
|
+
if (initialTerminal && _optionalChain([initialRun, 'optionalAccess', _305 => _305.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") {
|
|
8960
8931
|
assertPlayWaitNotTimedOut({
|
|
8961
8932
|
workflowId,
|
|
8962
8933
|
startedAt,
|
|
8963
8934
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8964
8935
|
});
|
|
8965
|
-
const initialStatus =
|
|
8936
|
+
const initialStatus = _chunkAOBAVBSXjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8966
8937
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8967
8938
|
client: input.client,
|
|
8968
8939
|
status: initialStatus,
|
|
@@ -8970,7 +8941,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8970
8941
|
jsonOutput: input.jsonOutput,
|
|
8971
8942
|
fromDurableStatus: true
|
|
8972
8943
|
});
|
|
8973
|
-
|
|
8944
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
8974
8945
|
phase: "play_watch_terminal_status",
|
|
8975
8946
|
workflowId,
|
|
8976
8947
|
full: true,
|
|
@@ -9009,7 +8980,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9009
8980
|
() => {
|
|
9010
8981
|
admissionTimedOut = true;
|
|
9011
8982
|
admissionDeadline.abort();
|
|
9012
|
-
_optionalChain([input, 'access',
|
|
8983
|
+
_optionalChain([input, 'access', _306 => _306.cancelAdmissionCapability, 'optionalCall', _307 => _307()]);
|
|
9013
8984
|
},
|
|
9014
8985
|
Math.max(1, input.waitTimeoutMs)
|
|
9015
8986
|
);
|
|
@@ -9061,7 +9032,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9061
9032
|
notice.value
|
|
9062
9033
|
);
|
|
9063
9034
|
} catch (error) {
|
|
9064
|
-
if (callerIntentV2 && error instanceof
|
|
9035
|
+
if (callerIntentV2 && error instanceof _chunkEQR5O2D2js.CliPlayAdmissionCallerIntentV2UnsupportedError) {
|
|
9065
9036
|
const remaining = input.waitTimeoutMs === null ? null : input.waitTimeoutMs - (Date.now() - admissionStartedAt);
|
|
9066
9037
|
assertPlayWaitNotTimedOut({
|
|
9067
9038
|
workflowId: "",
|
|
@@ -9074,8 +9045,8 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9074
9045
|
waitTimeoutMs: remaining === null ? null : Math.max(1, remaining)
|
|
9075
9046
|
});
|
|
9076
9047
|
}
|
|
9077
|
-
if (error instanceof
|
|
9078
|
-
await
|
|
9048
|
+
if (error instanceof _chunkEQR5O2D2js.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
9049
|
+
await _chunkGKZUGHDKjs.checkPlayRunCompatibility.call(void 0,
|
|
9079
9050
|
input.client.baseUrl,
|
|
9080
9051
|
input.maintenancePolicy,
|
|
9081
9052
|
admissionDeadline.signal
|
|
@@ -9116,7 +9087,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9116
9087
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9117
9088
|
);
|
|
9118
9089
|
}
|
|
9119
|
-
|
|
9090
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
9120
9091
|
phase: "cli.play_start_stream_retry",
|
|
9121
9092
|
ms: 0,
|
|
9122
9093
|
ok: true,
|
|
@@ -9137,7 +9108,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9137
9108
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9138
9109
|
);
|
|
9139
9110
|
}
|
|
9140
|
-
|
|
9111
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
9141
9112
|
phase: "cli.play_start_stream_retry",
|
|
9142
9113
|
ms: 0,
|
|
9143
9114
|
ok: true,
|
|
@@ -9155,7 +9126,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9155
9126
|
} catch (error) {
|
|
9156
9127
|
if (admissionTimedOut || admissionDeadlineAt !== void 0 && Date.now() >= admissionDeadlineAt) {
|
|
9157
9128
|
assertPlayWaitNotTimedOut({
|
|
9158
|
-
workflowId: _nullishCoalesce(_optionalChain([prepared, 'optionalAccess',
|
|
9129
|
+
workflowId: _nullishCoalesce(_optionalChain([prepared, 'optionalAccess', _308 => _308.workflowId]), () => ( "")),
|
|
9159
9130
|
startedAt: admissionStartedAt,
|
|
9160
9131
|
waitTimeoutMs: input.waitTimeoutMs
|
|
9161
9132
|
});
|
|
@@ -9183,7 +9154,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9183
9154
|
let timedOut = false;
|
|
9184
9155
|
let emittedDashboardUrl = false;
|
|
9185
9156
|
let lastKnownWorkflowId = "";
|
|
9186
|
-
let launchedRevisionId = _optionalChain([input, 'access',
|
|
9157
|
+
let launchedRevisionId = _optionalChain([input, 'access', _309 => _309.request, 'access', _310 => _310.revisionId, 'optionalAccess', _311 => _311.trim, 'call', _312 => _312()]) || null;
|
|
9187
9158
|
let eventCount = 0;
|
|
9188
9159
|
let firstRunIdMs = null;
|
|
9189
9160
|
let launchConfirmed = false;
|
|
@@ -9193,8 +9164,8 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9193
9164
|
const confirmAdmission = async (runId) => {
|
|
9194
9165
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9195
9166
|
launchConfirmed = true;
|
|
9196
|
-
await _optionalChain([input, 'access',
|
|
9197
|
-
|
|
9167
|
+
await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
|
|
9168
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
9198
9169
|
phase: "cli.play_start_admitted",
|
|
9199
9170
|
ms: Date.now() - startedAt,
|
|
9200
9171
|
ok: true,
|
|
@@ -9228,7 +9199,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9228
9199
|
full: input.fullJson
|
|
9229
9200
|
});
|
|
9230
9201
|
} catch (error) {
|
|
9231
|
-
if (
|
|
9202
|
+
if (_chunkAOBAVBSXjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9232
9203
|
return null;
|
|
9233
9204
|
}
|
|
9234
9205
|
throw error;
|
|
@@ -9247,9 +9218,9 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9247
9218
|
signal: controller.signal
|
|
9248
9219
|
})) {
|
|
9249
9220
|
eventCount += 1;
|
|
9250
|
-
const expectedFullRunId = _optionalChain([input, 'access',
|
|
9221
|
+
const expectedFullRunId = _optionalChain([input, 'access', _315 => _315.request, 'access', _316 => _316.workflowId, 'optionalAccess', _317 => _317.trim, 'call', _318 => _318()]) || lastKnownWorkflowId;
|
|
9251
9222
|
const eventRunId = getRunIdFromLiveEvent(event);
|
|
9252
|
-
const pinnedRunId = input.fullJson === true && input.request.terminalStatus === "full" ? _optionalChain([input, 'access',
|
|
9223
|
+
const pinnedRunId = input.fullJson === true && input.request.terminalStatus === "full" ? _optionalChain([input, 'access', _319 => _319.request, 'access', _320 => _320.workflowId, 'optionalAccess', _321 => _321.trim, 'call', _322 => _322()]) : void 0;
|
|
9253
9224
|
if (pinnedRunId && eventRunId && eventRunId !== "pending" && eventRunId !== pinnedRunId)
|
|
9254
9225
|
continue;
|
|
9255
9226
|
const eventRevisionId = getStringField(
|
|
@@ -9259,7 +9230,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9259
9230
|
if (eventRevisionId) {
|
|
9260
9231
|
launchedRevisionId = eventRevisionId;
|
|
9261
9232
|
}
|
|
9262
|
-
const eventRateLimited = _optionalChain([getEventPayload, 'call',
|
|
9233
|
+
const eventRateLimited = _optionalChain([getEventPayload, 'call', _323 => _323(event), 'optionalAccess', _324 => _324.rateLimited]);
|
|
9263
9234
|
if (eventRateLimited && typeof eventRateLimited === "object") {
|
|
9264
9235
|
notice.value = eventRateLimited;
|
|
9265
9236
|
}
|
|
@@ -9268,7 +9239,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9268
9239
|
lastKnownWorkflowId = eventRunId;
|
|
9269
9240
|
firstRunIdMs ??= Date.now() - startedAt;
|
|
9270
9241
|
if (runStartedNow) {
|
|
9271
|
-
await _optionalChain([input, 'access',
|
|
9242
|
+
await _optionalChain([input, 'access', _325 => _325.onRunStarted, 'optionalCall', _326 => _326(eventRunId)]);
|
|
9272
9243
|
}
|
|
9273
9244
|
}
|
|
9274
9245
|
if (!launchConfirmed && eventConfirmsPlayRunLaunch(event) && eventRunId === lastKnownWorkflowId) {
|
|
@@ -9361,16 +9332,16 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9361
9332
|
};
|
|
9362
9333
|
}
|
|
9363
9334
|
const fullPackage = getPlayRunPackage(finalStatus);
|
|
9364
|
-
const fullRun = readRecord(_optionalChain([fullPackage, 'optionalAccess',
|
|
9365
|
-
const fullSteps = _optionalChain([fullPackage, 'optionalAccess',
|
|
9335
|
+
const fullRun = readRecord(_optionalChain([fullPackage, 'optionalAccess', _327 => _327.run]));
|
|
9336
|
+
const fullSteps = _optionalChain([fullPackage, 'optionalAccess', _328 => _328.steps]);
|
|
9366
9337
|
const scalarStep = Array.isArray(fullSteps) ? readRecord(fullSteps[0]) : null;
|
|
9367
|
-
const scalarExecution = readRecord(_optionalChain([scalarStep, 'optionalAccess',
|
|
9368
|
-
const completeScalarSteps = Array.isArray(fullSteps) && (_optionalChain([fullPackage, 'optionalAccess',
|
|
9369
|
-
const reuseFullTerminal = input.jsonOutput && input.fullJson === true && input.request.terminalStatus === "full" && expectedFullRunId !== "" && finalStatus.runId === expectedFullRunId && _optionalChain([fullRun, 'optionalAccess',
|
|
9338
|
+
const scalarExecution = readRecord(_optionalChain([scalarStep, 'optionalAccess', _329 => _329.execution]));
|
|
9339
|
+
const completeScalarSteps = Array.isArray(fullSteps) && (_optionalChain([fullPackage, 'optionalAccess', _330 => _330.stepsExpected]) === false && fullSteps.length === 0 || _optionalChain([fullPackage, 'optionalAccess', _331 => _331.stepsExpected]) !== false && fullSteps.length === 1 && typeof _optionalChain([scalarStep, 'optionalAccess', _332 => _332.id]) === "string" && scalarStep.id.trim().length > 0 && scalarStep.kind === "step" && scalarStep.status === "completed" && _optionalChain([scalarExecution, 'optionalAccess', _333 => _333.kind]) === "completed" && scalarExecution.rows === null);
|
|
9340
|
+
const reuseFullTerminal = input.jsonOutput && input.fullJson === true && input.request.terminalStatus === "full" && expectedFullRunId !== "" && finalStatus.runId === expectedFullRunId && _optionalChain([fullRun, 'optionalAccess', _334 => _334.id]) === expectedFullRunId && finalStatus.status === "completed" && fullRun.status === "completed" && finalStatus.finalStatusView === "full" && _optionalChain([fullPackage, 'optionalAccess', _335 => _335.resultState]) === "available" && Object.hasOwn(fullPackage, "result") && completeScalarSteps && Array.isArray(fullPackage.datasets) && fullPackage.datasets.length === 0;
|
|
9370
9341
|
let fromDurableStatus = reuseFullTerminal;
|
|
9371
9342
|
let canonicalTerminal;
|
|
9372
9343
|
const streamedTerminalPackage = getPlayRunPackage(finalStatus);
|
|
9373
|
-
const streamedTerminalPlayRunPackage =
|
|
9344
|
+
const streamedTerminalPlayRunPackage = _chunkEQR5O2D2js.isPlayRunPackage.call(void 0,
|
|
9374
9345
|
streamedTerminalPackage
|
|
9375
9346
|
) ? streamedTerminalPackage : null;
|
|
9376
9347
|
const terminalEnvelopeIsComplete = finalStatus.status === "completed" && (event.type === "play.run.snapshot" || event.type === "play.run.final_status") && getEventPayload(event).replayed !== true && finalStatus.runId === lastKnownWorkflowId && !playRunPackageTextLedgerIncomplete(streamedTerminalPackage);
|
|
@@ -9399,7 +9370,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9399
9370
|
};
|
|
9400
9371
|
}
|
|
9401
9372
|
if (!canonicalTerminal) {
|
|
9402
|
-
|
|
9373
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
9403
9374
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9404
9375
|
ms: Date.now() - startedAt,
|
|
9405
9376
|
ok: true,
|
|
@@ -9420,14 +9391,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9420
9391
|
fromDurableStatus
|
|
9421
9392
|
}) : canonicalTerminal;
|
|
9422
9393
|
if (input.fullJson === true) {
|
|
9423
|
-
|
|
9394
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
9424
9395
|
phase: "play_watch_terminal_status",
|
|
9425
9396
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9426
9397
|
full: true,
|
|
9427
9398
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9428
9399
|
});
|
|
9429
9400
|
}
|
|
9430
|
-
|
|
9401
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
9431
9402
|
phase: "cli.play_start_stream_terminal",
|
|
9432
9403
|
ms: Date.now() - startedAt,
|
|
9433
9404
|
ok: true,
|
|
@@ -9447,7 +9418,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9447
9418
|
clearTimeout(timeout);
|
|
9448
9419
|
}
|
|
9449
9420
|
controller.abort();
|
|
9450
|
-
|
|
9421
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
9451
9422
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9452
9423
|
ms: Date.now() - startedAt,
|
|
9453
9424
|
ok: true,
|
|
@@ -9478,7 +9449,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9478
9449
|
if (timedOut) {
|
|
9479
9450
|
const terminal = await fetchKnownTerminalStatus();
|
|
9480
9451
|
if (terminal) {
|
|
9481
|
-
|
|
9452
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
9482
9453
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9483
9454
|
ms: Date.now() - startedAt,
|
|
9484
9455
|
ok: true,
|
|
@@ -9498,7 +9469,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9498
9469
|
lastPhase
|
|
9499
9470
|
});
|
|
9500
9471
|
}
|
|
9501
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9472
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkAOBAVBSXjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9502
9473
|
if (timeout) {
|
|
9503
9474
|
clearTimeout(timeout);
|
|
9504
9475
|
}
|
|
@@ -9509,7 +9480,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9509
9480
|
`
|
|
9510
9481
|
);
|
|
9511
9482
|
}
|
|
9512
|
-
|
|
9483
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
9513
9484
|
phase: "cli.play_start_stream_reconnect",
|
|
9514
9485
|
ms: Date.now() - startedAt,
|
|
9515
9486
|
ok: true,
|
|
@@ -9536,7 +9507,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9536
9507
|
});
|
|
9537
9508
|
}
|
|
9538
9509
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9539
|
-
|
|
9510
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
9540
9511
|
phase: "cli.play_start_stream_transient_failure",
|
|
9541
9512
|
ms: Date.now() - startedAt,
|
|
9542
9513
|
ok: false,
|
|
@@ -9564,7 +9535,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9564
9535
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9565
9536
|
);
|
|
9566
9537
|
}
|
|
9567
|
-
|
|
9538
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
9568
9539
|
phase: "cli.play_start_stream_reconnect",
|
|
9569
9540
|
ms: Date.now() - startedAt,
|
|
9570
9541
|
ok: true,
|
|
@@ -9644,29 +9615,29 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9644
9615
|
"logs"
|
|
9645
9616
|
]);
|
|
9646
9617
|
function formatPlayLogLine(rawLine, state) {
|
|
9647
|
-
const classified =
|
|
9618
|
+
const classified = _chunkAOBAVBSXjs.classifyLogLine.call(void 0, rawLine);
|
|
9648
9619
|
const line = classified.line;
|
|
9649
9620
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9650
|
-
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess',
|
|
9621
|
+
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
|
|
9651
9622
|
const timestamp = parsedTimestamp && !Number.isNaN(parsedTimestamp.getTime()) ? parsedTimestamp.toLocaleTimeString("en-US", {
|
|
9652
9623
|
hour12: false,
|
|
9653
9624
|
hour: "2-digit",
|
|
9654
9625
|
minute: "2-digit",
|
|
9655
9626
|
second: "2-digit"
|
|
9656
9627
|
}) : null;
|
|
9657
|
-
const message = _nullishCoalesce(_optionalChain([timestampMatch, 'optionalAccess',
|
|
9628
|
+
const message = _nullishCoalesce(_optionalChain([timestampMatch, 'optionalAccess', _337 => _337[2]]), () => ( line));
|
|
9658
9629
|
const prefix = timestamp ? `${timestamp} ` : "";
|
|
9659
9630
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9660
9631
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9661
9632
|
if (providerWait && !state.verbose) {
|
|
9662
|
-
return
|
|
9633
|
+
return _chunkAOBAVBSXjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9663
9634
|
}
|
|
9664
9635
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9665
9636
|
if (mapProgress && !state.verbose) {
|
|
9666
|
-
return
|
|
9637
|
+
return _chunkAOBAVBSXjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9667
9638
|
}
|
|
9668
9639
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9669
|
-
if (!
|
|
9640
|
+
if (!_chunkAOBAVBSXjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9670
9641
|
return null;
|
|
9671
9642
|
}
|
|
9672
9643
|
if (state.emittedRunnerStarted) {
|
|
@@ -9679,7 +9650,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9679
9650
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9680
9651
|
);
|
|
9681
9652
|
if (mapStart) {
|
|
9682
|
-
if (!
|
|
9653
|
+
if (!_chunkAOBAVBSXjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9683
9654
|
return null;
|
|
9684
9655
|
}
|
|
9685
9656
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9689,7 +9660,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9689
9660
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9690
9661
|
);
|
|
9691
9662
|
if (mapDone) {
|
|
9692
|
-
if (!
|
|
9663
|
+
if (!_chunkAOBAVBSXjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9693
9664
|
return null;
|
|
9694
9665
|
}
|
|
9695
9666
|
const [, results, executed, cached] = mapDone;
|
|
@@ -9871,20 +9842,20 @@ function collectDatasetHandleLines(value, path = "result") {
|
|
|
9871
9842
|
function buildRunWarnings(status, rowsInfo) {
|
|
9872
9843
|
const rowOutcomes = readRowOutcomeSummary(status);
|
|
9873
9844
|
const result = readRecord(status.result);
|
|
9874
|
-
const metadata = readRecord(_optionalChain([result, 'optionalAccess',
|
|
9875
|
-
const outputWarnings = Array.isArray(_optionalChain([metadata, 'optionalAccess',
|
|
9845
|
+
const metadata = readRecord(_optionalChain([result, 'optionalAccess', _338 => _338._metadata]));
|
|
9846
|
+
const outputWarnings = Array.isArray(_optionalChain([metadata, 'optionalAccess', _339 => _339.outputWarnings])) ? metadata.outputWarnings.map((warning) => readRecord(warning)).filter((warning) => {
|
|
9876
9847
|
if (!warning) return false;
|
|
9877
9848
|
return !(rowsInfo && !rowsInfo.complete && warning.reason === "array_preview_limit" && warning.originalItems === rowsInfo.totalRows && warning.retainedItems === rowsInfo.rows.length);
|
|
9878
|
-
}).map((warning) => _optionalChain([warning, 'optionalAccess',
|
|
9849
|
+
}).map((warning) => _optionalChain([warning, 'optionalAccess', _340 => _340.message])).filter(
|
|
9879
9850
|
(message) => typeof message === "string" && message.trim().length > 0
|
|
9880
9851
|
).slice(0, 16) : [];
|
|
9881
|
-
const rowOutcomeWarnings = _optionalChain([rowOutcomes, 'optionalAccess',
|
|
9852
|
+
const rowOutcomeWarnings = _optionalChain([rowOutcomes, 'optionalAccess', _341 => _341.hasRowFailures]) ? [
|
|
9882
9853
|
`${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.`
|
|
9883
9854
|
] : [];
|
|
9884
|
-
const supersededRowNotices = (_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess',
|
|
9855
|
+
const supersededRowNotices = (_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _342 => _342.supersededRows]), () => ( 0))) > 0 ? [
|
|
9885
9856
|
`Latest-write-wins: ${formatSupersededRowsNotice(_nullishCoalesce(rowOutcomes.supersededRows, () => ( 0)))}; the newer write still owns that Runtime Sheet row.`
|
|
9886
9857
|
] : [];
|
|
9887
|
-
if (status.status === "completed" && _optionalChain([rowsInfo, 'optionalAccess',
|
|
9858
|
+
if (status.status === "completed" && _optionalChain([rowsInfo, 'optionalAccess', _343 => _343.totalRows]) === 0) {
|
|
9888
9859
|
return [
|
|
9889
9860
|
...rowOutcomeWarnings,
|
|
9890
9861
|
...supersededRowNotices,
|
|
@@ -9903,7 +9874,7 @@ function buildRunWarnings(status, rowsInfo) {
|
|
|
9903
9874
|
return [...rowOutcomeWarnings, ...supersededRowNotices, ...outputWarnings];
|
|
9904
9875
|
}
|
|
9905
9876
|
function buildRunNextCommands(status) {
|
|
9906
|
-
const runId = _optionalChain([status, 'access',
|
|
9877
|
+
const runId = _optionalChain([status, 'access', _344 => _344.runId, 'optionalAccess', _345 => _345.trim, 'call', _346 => _346()]);
|
|
9907
9878
|
if (!runId) {
|
|
9908
9879
|
const playName = extractRunPlayName(status);
|
|
9909
9880
|
return playName ? {
|
|
@@ -10055,14 +10026,14 @@ function extractToolIdFromErrorText(text) {
|
|
|
10055
10026
|
return null;
|
|
10056
10027
|
}
|
|
10057
10028
|
const lowerToolMatch = /\btool\s+([A-Za-z0-9_.:-]+)\s+\d{3}\b/.exec(text);
|
|
10058
|
-
if (_optionalChain([lowerToolMatch, 'optionalAccess',
|
|
10029
|
+
if (_optionalChain([lowerToolMatch, 'optionalAccess', _347 => _347[1]])) {
|
|
10059
10030
|
return lowerToolMatch[1];
|
|
10060
10031
|
}
|
|
10061
10032
|
const upperToolMatch = /\bTool\s+([A-Za-z0-9_.:-]+)\s+failed\b/.exec(text);
|
|
10062
|
-
return _nullishCoalesce(_optionalChain([upperToolMatch, 'optionalAccess',
|
|
10033
|
+
return _nullishCoalesce(_optionalChain([upperToolMatch, 'optionalAccess', _348 => _348[1]]), () => ( null));
|
|
10063
10034
|
}
|
|
10064
10035
|
function isInsufficientCreditsBilling(billing) {
|
|
10065
|
-
return _optionalChain([billing, 'optionalAccess',
|
|
10036
|
+
return _optionalChain([billing, 'optionalAccess', _349 => _349.kind]) === "insufficient_credits";
|
|
10066
10037
|
}
|
|
10067
10038
|
function extractBillingForStatus(status, error) {
|
|
10068
10039
|
const errorBilling = getObjectField(status, "errorBilling");
|
|
@@ -10104,8 +10075,8 @@ function formatInsufficientCreditsMessage(input) {
|
|
|
10104
10075
|
function buildInsufficientCreditsSummaryLines(input) {
|
|
10105
10076
|
const progress = input.status.progress;
|
|
10106
10077
|
const rowsInfo = extractCanonicalRowsInfo(input.status);
|
|
10107
|
-
const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "completed"), () => ( getNumericField(progress, "completedRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess',
|
|
10108
|
-
const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "total"), () => ( getNumericField(progress, "totalRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess',
|
|
10078
|
+
const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "completed"), () => ( getNumericField(progress, "completedRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _350 => _350.rows, 'access', _351 => _351.length]))), () => ( null));
|
|
10079
|
+
const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(getNumericField(progress, "total"), () => ( getNumericField(progress, "totalRows"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _352 => _352.totalRows]))), () => ( null));
|
|
10109
10080
|
const lines = [
|
|
10110
10081
|
" status: stopped_insufficient_credits",
|
|
10111
10082
|
completed === null ? " completed rows: unknown" : ` completed rows: ${formatInteger(completed)}${total !== null ? ` of ${formatInteger(total)}` : ""}`,
|
|
@@ -10124,7 +10095,7 @@ function buildInsufficientCreditsSummaryLines(input) {
|
|
|
10124
10095
|
lines.push(" ask user: ask whether they want to add Deepline credits");
|
|
10125
10096
|
lines.push(` top up after approval: ${recovery.topUp}`);
|
|
10126
10097
|
lines.push(` checkout fallback: ${recovery.checkout}`);
|
|
10127
|
-
const runId = _optionalChain([input, 'access',
|
|
10098
|
+
const runId = _optionalChain([input, 'access', _353 => _353.status, 'access', _354 => _354.runId, 'optionalAccess', _355 => _355.trim, 'call', _356 => _356()]);
|
|
10128
10099
|
if (runId) {
|
|
10129
10100
|
lines.push(` inspect: deepline runs get ${runId}`);
|
|
10130
10101
|
lines.push(
|
|
@@ -10206,10 +10177,10 @@ function normalizeRunStatusForEnvelope(status) {
|
|
|
10206
10177
|
function normalizeProgressForEnvelope(status, rowsInfo) {
|
|
10207
10178
|
const progress = status.progress;
|
|
10208
10179
|
const rowOutcomes = readRowOutcomeSummary(status);
|
|
10209
|
-
const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess',
|
|
10210
|
-
const failed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess',
|
|
10211
|
-
const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess',
|
|
10212
|
-
const supersededRows = _nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess',
|
|
10180
|
+
const total = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _357 => _357.totalRows]), () => ( getNumericField(progress, "totalRows"))), () => ( getNumericField(progress, "total"))), () => ( _optionalChain([rowsInfo, 'optionalAccess', _358 => _358.totalRows]))), () => ( null));
|
|
10181
|
+
const failed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _359 => _359.failedRows]), () => ( getNumericField(progress, "failed"))), () => ( getNumericField(progress, "failedRows"))), () => ( null));
|
|
10182
|
+
const completed = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _360 => _360.completedRows]), () => ( getNumericField(progress, "completed"))), () => ( getNumericField(progress, "completedRows"))), () => ( (status.status === "completed" ? total : null)));
|
|
10183
|
+
const supersededRows = _nullishCoalesce(_optionalChain([rowOutcomes, 'optionalAccess', _361 => _361.supersededRows]), () => ( getNumericField(progress, "supersededRows")));
|
|
10213
10184
|
const supersededOffset = _nullishCoalesce(supersededRows, () => ( 0));
|
|
10214
10185
|
const progressPending = getNumericField(progress, "pending");
|
|
10215
10186
|
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)));
|
|
@@ -10279,7 +10250,7 @@ function normalizeErrorsForEnvelope(status, error) {
|
|
|
10279
10250
|
];
|
|
10280
10251
|
}
|
|
10281
10252
|
function normalizeLogsForEnvelope(status) {
|
|
10282
|
-
const logs = Array.isArray(_optionalChain([status, 'access',
|
|
10253
|
+
const logs = Array.isArray(_optionalChain([status, 'access', _362 => _362.progress, 'optionalAccess', _363 => _363.logs])) ? status.progress.logs : [];
|
|
10283
10254
|
const totalCount = logs.length;
|
|
10284
10255
|
const entries = logs.slice(Math.max(0, logs.length - RUN_LOG_PREVIEW_LIMIT));
|
|
10285
10256
|
const firstSequence = entries.length === 0 ? null : logs.length - entries.length + 1;
|
|
@@ -10322,12 +10293,12 @@ function getPlayRunPackage(status) {
|
|
|
10322
10293
|
return isPlayRunPackageValue(packaged) ? packaged : null;
|
|
10323
10294
|
}
|
|
10324
10295
|
function playStatusRunUrl(status) {
|
|
10325
|
-
const run = readRecord(_optionalChain([getPlayRunPackage, 'call',
|
|
10296
|
+
const run = readRecord(_optionalChain([getPlayRunPackage, 'call', _364 => _364(status), 'optionalAccess', _365 => _365.run]));
|
|
10326
10297
|
const text = (value) => typeof value === "string" && value ? value : void 0;
|
|
10327
10298
|
return resolvePlayRunUrl({
|
|
10328
|
-
runId: _nullishCoalesce(text(_optionalChain([run, 'optionalAccess',
|
|
10329
|
-
runUrl: _nullishCoalesce(status.runUrl, () => ( text(_optionalChain([run, 'optionalAccess',
|
|
10330
|
-
dashboardUrl: _nullishCoalesce(status.dashboardUrl, () => ( text(_optionalChain([run, 'optionalAccess',
|
|
10299
|
+
runId: _nullishCoalesce(text(_optionalChain([run, 'optionalAccess', _366 => _366.id])), () => ( status.runId)),
|
|
10300
|
+
runUrl: _nullishCoalesce(status.runUrl, () => ( text(_optionalChain([run, 'optionalAccess', _367 => _367.runUrl])))),
|
|
10301
|
+
dashboardUrl: _nullishCoalesce(status.dashboardUrl, () => ( text(_optionalChain([run, 'optionalAccess', _368 => _368.dashboardUrl]))))
|
|
10331
10302
|
});
|
|
10332
10303
|
}
|
|
10333
10304
|
function withTerminalPlayIdentity(status, playName) {
|
|
@@ -10345,7 +10316,7 @@ function compactPlayStatus(status) {
|
|
|
10345
10316
|
const packaged = getPlayRunPackage(status);
|
|
10346
10317
|
if (packaged) {
|
|
10347
10318
|
const packagedRun = readRecord(packaged.run);
|
|
10348
|
-
const packagedError = typeof _optionalChain([packagedRun, 'optionalAccess',
|
|
10319
|
+
const packagedError = typeof _optionalChain([packagedRun, 'optionalAccess', _369 => _369.error]) === "string" ? packagedRun.error : null;
|
|
10349
10320
|
const error2 = _nullishCoalesce(selectRunErrorForDisplay(status), () => ( (typeof status.error === "string" ? String(status.error) : packagedError)));
|
|
10350
10321
|
const compactError = error2 ? compactRunErrorForEnvelope(error2, status.runId) : null;
|
|
10351
10322
|
const rowOutcomes2 = readRowOutcomeSummary(status);
|
|
@@ -10497,7 +10468,7 @@ function formatTopValuesPart(value) {
|
|
|
10497
10468
|
}
|
|
10498
10469
|
function formatPackageDatasetSummaryLines(summary, indent = " ") {
|
|
10499
10470
|
const record3 = readRecord(summary);
|
|
10500
|
-
const columnStats = readRecord(_optionalChain([record3, 'optionalAccess',
|
|
10471
|
+
const columnStats = readRecord(_optionalChain([record3, 'optionalAccess', _370 => _370.columnStats]));
|
|
10501
10472
|
if (!record3 || !columnStats) {
|
|
10502
10473
|
return [];
|
|
10503
10474
|
}
|
|
@@ -10585,7 +10556,7 @@ function packageDatasetRecords(packaged) {
|
|
|
10585
10556
|
if (catalog.length > 0) return catalog;
|
|
10586
10557
|
return readRecordArray(packaged.steps).flatMap((step) => {
|
|
10587
10558
|
const output = readRecord(step.output);
|
|
10588
|
-
return _optionalChain([output, 'optionalAccess',
|
|
10559
|
+
return _optionalChain([output, 'optionalAccess', _371 => _371.kind]) === "dataset" ? [output] : [];
|
|
10589
10560
|
});
|
|
10590
10561
|
}
|
|
10591
10562
|
function packageReturnedDatasetIdentity(packaged) {
|
|
@@ -10594,7 +10565,7 @@ function packageReturnedDatasetIdentity(packaged) {
|
|
|
10594
10565
|
const outputs = _nullishCoalesce(readRecord(packaged.outputs), () => ( {}));
|
|
10595
10566
|
for (const outputValue of Object.values(outputs)) {
|
|
10596
10567
|
const output = readRecord(outputValue);
|
|
10597
|
-
if (_optionalChain([output, 'optionalAccess',
|
|
10568
|
+
if (_optionalChain([output, 'optionalAccess', _372 => _372.kind]) !== "dataset") continue;
|
|
10598
10569
|
if (typeof output.datasetId === "string" && output.datasetId.trim()) {
|
|
10599
10570
|
datasetIds.add(output.datasetId.trim());
|
|
10600
10571
|
}
|
|
@@ -10630,7 +10601,7 @@ function formatRunStepProgress(progress, includeRowOutcomes = false) {
|
|
|
10630
10601
|
}
|
|
10631
10602
|
function formatPackageDatasetActionLines(packaged, options) {
|
|
10632
10603
|
const returned = packageReturnedDatasetIdentity(packaged);
|
|
10633
|
-
const includeSummary = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
10604
|
+
const includeSummary = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _373 => _373.includeSummary]), () => ( true));
|
|
10634
10605
|
const lines = [];
|
|
10635
10606
|
const steps = readRecordArray(packaged.steps);
|
|
10636
10607
|
const stepsByDatasetId = /* @__PURE__ */ new Map();
|
|
@@ -10639,10 +10610,10 @@ function formatPackageDatasetActionLines(packaged, options) {
|
|
|
10639
10610
|
for (const step of steps) {
|
|
10640
10611
|
if (step.kind !== "dataset") continue;
|
|
10641
10612
|
const output = readRecord(step.output);
|
|
10642
|
-
if (typeof _optionalChain([output, 'optionalAccess',
|
|
10613
|
+
if (typeof _optionalChain([output, 'optionalAccess', _374 => _374.datasetId]) === "string") {
|
|
10643
10614
|
stepsByDatasetId.set(output.datasetId, step);
|
|
10644
10615
|
}
|
|
10645
|
-
if (typeof _optionalChain([output, 'optionalAccess',
|
|
10616
|
+
if (typeof _optionalChain([output, 'optionalAccess', _375 => _375.path]) === "string") {
|
|
10646
10617
|
stepsByPath.set(output.path, step);
|
|
10647
10618
|
}
|
|
10648
10619
|
if (typeof step.id === "string") {
|
|
@@ -10656,8 +10627,8 @@ function formatPackageDatasetActionLines(packaged, options) {
|
|
|
10656
10627
|
const category = isReturned ? "returned" : dataset.recovered === true ? "recovered" : "persisted";
|
|
10657
10628
|
const rowCount = typeof dataset.rowCount === "number" && Number.isFinite(dataset.rowCount) ? Math.max(0, Math.trunc(dataset.rowCount)) : null;
|
|
10658
10629
|
const lifecycle = readRecord(dataset.lifecycle);
|
|
10659
|
-
const countUnconfirmed = _optionalChain([lifecycle, 'optionalAccess',
|
|
10660
|
-
const persistedLowerBound = typeof _optionalChain([lifecycle, 'optionalAccess',
|
|
10630
|
+
const countUnconfirmed = _optionalChain([lifecycle, 'optionalAccess', _376 => _376.complete]) === false;
|
|
10631
|
+
const persistedLowerBound = typeof _optionalChain([lifecycle, 'optionalAccess', _377 => _377.persistedRowsAtLeast]) === "number" && Number.isFinite(lifecycle.persistedRowsAtLeast) ? Math.max(0, Math.trunc(lifecycle.persistedRowsAtLeast)) : 0;
|
|
10661
10632
|
const actions2 = _nullishCoalesce(readRecord(dataset.actions), () => ( {}));
|
|
10662
10633
|
if (countUnconfirmed) {
|
|
10663
10634
|
lines.push(
|
|
@@ -10675,7 +10646,7 @@ function formatPackageDatasetActionLines(packaged, options) {
|
|
|
10675
10646
|
}
|
|
10676
10647
|
}
|
|
10677
10648
|
const step = _nullishCoalesce(_nullishCoalesce((datasetId ? stepsByDatasetId.get(datasetId) : void 0), () => ( stepsByPath.get(path))), () => ( (typeof dataset.tableNamespace === "string" ? stepsByNamespace.get(dataset.tableNamespace) : void 0)));
|
|
10678
|
-
const progress = readRecord(_optionalChain([step, 'optionalAccess',
|
|
10649
|
+
const progress = readRecord(_optionalChain([step, 'optionalAccess', _378 => _378.progress]));
|
|
10679
10650
|
if (progress) {
|
|
10680
10651
|
lines.push(` progress: ${formatRunStepProgress(progress)}`);
|
|
10681
10652
|
}
|
|
@@ -10689,10 +10660,10 @@ function formatPackageDatasetActionLines(packaged, options) {
|
|
|
10689
10660
|
}
|
|
10690
10661
|
const exportAction = readRecord(actions2.exportCsv);
|
|
10691
10662
|
const exportCommand = actionToCommand(exportAction);
|
|
10692
|
-
const exportScope = readRecord(_optionalChain([exportAction, 'optionalAccess',
|
|
10663
|
+
const exportScope = readRecord(_optionalChain([exportAction, 'optionalAccess', _379 => _379.scope]));
|
|
10693
10664
|
const queryAction = readRecord(actions2.query);
|
|
10694
|
-
const queryScope = readRecord(_optionalChain([queryAction, 'optionalAccess',
|
|
10695
|
-
const runQueryCommand = _optionalChain([queryScope, 'optionalAccess',
|
|
10665
|
+
const queryScope = readRecord(_optionalChain([queryAction, 'optionalAccess', _380 => _380.scope]));
|
|
10666
|
+
const runQueryCommand = _optionalChain([queryScope, 'optionalAccess', _381 => _381.kind]) === "run" ? actionToCommand(queryAction) : null;
|
|
10696
10667
|
const currentQueryCommand = actionToCommand(actions2.queryCurrentTable);
|
|
10697
10668
|
const legacyQueryCommand = actionToCommand(actions2.query);
|
|
10698
10669
|
if (runQueryCommand) {
|
|
@@ -10704,11 +10675,11 @@ function formatPackageDatasetActionLines(packaged, options) {
|
|
|
10704
10675
|
}
|
|
10705
10676
|
if (exportCommand) {
|
|
10706
10677
|
lines.push(
|
|
10707
|
-
_optionalChain([exportScope, 'optionalAccess',
|
|
10678
|
+
_optionalChain([exportScope, 'optionalAccess', _382 => _382.kind]) === "database" ? ` export current table (may include other runs): ${exportCommand}` : ` export this run: ${exportCommand}`
|
|
10708
10679
|
);
|
|
10709
10680
|
}
|
|
10710
10681
|
const unavailable = readRecord(dataset.exportUnavailable);
|
|
10711
|
-
if (typeof _optionalChain([unavailable, 'optionalAccess',
|
|
10682
|
+
if (typeof _optionalChain([unavailable, 'optionalAccess', _383 => _383.reason]) === "string" && typeof unavailable.message === "string") {
|
|
10712
10683
|
lines.push(
|
|
10713
10684
|
` export unavailable (${unavailable.reason}): ${unavailable.message}`
|
|
10714
10685
|
);
|
|
@@ -10725,7 +10696,7 @@ function packageSavedRowCount(packaged) {
|
|
|
10725
10696
|
}
|
|
10726
10697
|
function runtimeLimitWindowLabel(runtimeLimitFailure) {
|
|
10727
10698
|
const message = _nullishCoalesce(getStringField(runtimeLimitFailure, "message"), () => ( ""));
|
|
10728
|
-
const configuredSeconds = _optionalChain([/\bconfigured\s+(\d+)\s+second(?:s)?\s+runtime limit\b/i, 'access',
|
|
10699
|
+
const configuredSeconds = _optionalChain([/\bconfigured\s+(\d+)\s+second(?:s)?\s+runtime limit\b/i, 'access', _384 => _384.exec, 'call', _385 => _385(message), 'optionalAccess', _386 => _386[1]]);
|
|
10729
10700
|
if (configuredSeconds) {
|
|
10730
10701
|
const seconds = Number(configuredSeconds);
|
|
10731
10702
|
if (Number.isSafeInteger(seconds) && seconds > 0) {
|
|
@@ -10772,7 +10743,7 @@ function formatPackageValueOutputLines(packaged) {
|
|
|
10772
10743
|
if (!outputs) return [];
|
|
10773
10744
|
const returned = Object.entries(outputs).filter(([, output]) => {
|
|
10774
10745
|
const record3 = readRecord(output);
|
|
10775
|
-
return _optionalChain([record3, 'optionalAccess',
|
|
10746
|
+
return _optionalChain([record3, 'optionalAccess', _387 => _387.kind]) === "dataset" || _optionalChain([record3, 'optionalAccess', _388 => _388.kind]) === "value" && Object.prototype.hasOwnProperty.call(record3, "value");
|
|
10776
10747
|
});
|
|
10777
10748
|
if (returned.length === 0) return [];
|
|
10778
10749
|
const datasets = packageDatasetRecords(packaged);
|
|
@@ -10792,10 +10763,10 @@ function formatPackageValueOutputLines(packaged) {
|
|
|
10792
10763
|
(candidate) => typeof output.datasetId === "string" && candidate.datasetId === output.datasetId || candidate.path === path
|
|
10793
10764
|
);
|
|
10794
10765
|
const stepOutput = datasetSteps.map((step) => readRecord(step.output)).find(
|
|
10795
|
-
(candidate) => typeof output.datasetId === "string" && _optionalChain([candidate, 'optionalAccess',
|
|
10766
|
+
(candidate) => typeof output.datasetId === "string" && _optionalChain([candidate, 'optionalAccess', _389 => _389.datasetId]) === output.datasetId || _optionalChain([candidate, 'optionalAccess', _390 => _390.path]) === path
|
|
10796
10767
|
);
|
|
10797
|
-
const preview = readRecord(_nullishCoalesce(_optionalChain([stepOutput, 'optionalAccess',
|
|
10798
|
-
const rows = Array.isArray(_optionalChain([preview, 'optionalAccess',
|
|
10768
|
+
const preview = readRecord(_nullishCoalesce(_optionalChain([stepOutput, 'optionalAccess', _391 => _391.preview]), () => ( _optionalChain([dataset, 'optionalAccess', _392 => _392.preview]))));
|
|
10769
|
+
const rows = Array.isArray(_optionalChain([preview, 'optionalAccess', _393 => _393.rows])) ? preview.rows.slice(0, 2) : [];
|
|
10799
10770
|
if (rows.length > 0) {
|
|
10800
10771
|
lines.push(` sample rows (${rows.length}):`);
|
|
10801
10772
|
lines.push(
|
|
@@ -10821,7 +10792,7 @@ function formatPackageValueOutputLines(packaged) {
|
|
|
10821
10792
|
return lines;
|
|
10822
10793
|
}
|
|
10823
10794
|
function authoredPackageStackFrames(packaged) {
|
|
10824
|
-
const stack = readRecordArray(packaged.errors).map((entry) => typeof entry.stack === "string" ? entry.stack : null).find((candidate) => Boolean(_optionalChain([candidate, 'optionalAccess',
|
|
10795
|
+
const stack = readRecordArray(packaged.errors).map((entry) => typeof entry.stack === "string" ? entry.stack : null).find((candidate) => Boolean(_optionalChain([candidate, 'optionalAccess', _394 => _394.trim, 'call', _395 => _395()])));
|
|
10825
10796
|
if (!stack) return [];
|
|
10826
10797
|
return stack.split("\n").map((line) => line.trim()).filter((line) => line.startsWith("at ")).filter(
|
|
10827
10798
|
(line) => !line.includes("/virtual/deepline-plays/") && !line.includes("/apps/play-runner/") && !line.includes("/shared_libs/play-runtime/") && !line.includes("node:internal")
|
|
@@ -10853,9 +10824,9 @@ function activityIsoTimestamp(value) {
|
|
|
10853
10824
|
}
|
|
10854
10825
|
function buildRunActivityTextLines(run) {
|
|
10855
10826
|
const activity = readRecord(run.activity);
|
|
10856
|
-
const observation = readRecord(_optionalChain([activity, 'optionalAccess',
|
|
10857
|
-
const state = readRecord(_optionalChain([observation, 'optionalAccess',
|
|
10858
|
-
const target = readRecord(_optionalChain([observation, 'optionalAccess',
|
|
10827
|
+
const observation = readRecord(_optionalChain([activity, 'optionalAccess', _396 => _396.observation]));
|
|
10828
|
+
const state = readRecord(_optionalChain([observation, 'optionalAccess', _397 => _397.state]));
|
|
10829
|
+
const target = readRecord(_optionalChain([observation, 'optionalAccess', _398 => _398.target]));
|
|
10859
10830
|
if (!activity || !observation || !state) return [];
|
|
10860
10831
|
const kind = typeof state.kind === "string" ? state.kind : "unknown";
|
|
10861
10832
|
if (kind === "completed") return [];
|
|
@@ -10900,11 +10871,11 @@ function buildRunActivityTextLines(run) {
|
|
|
10900
10871
|
}
|
|
10901
10872
|
function formatObservedRunCounter(value) {
|
|
10902
10873
|
const counter = readRecord(value);
|
|
10903
|
-
const count2 = _optionalChain([counter, 'optionalAccess',
|
|
10874
|
+
const count2 = _optionalChain([counter, 'optionalAccess', _399 => _399.value]);
|
|
10904
10875
|
if (typeof count2 !== "number" || !Number.isSafeInteger(count2) || count2 < 0) {
|
|
10905
10876
|
return "unknown";
|
|
10906
10877
|
}
|
|
10907
|
-
return _optionalChain([counter, 'optionalAccess',
|
|
10878
|
+
return _optionalChain([counter, 'optionalAccess', _400 => _400.confirmed]) === true ? formatInteger(count2) : `${formatInteger(count2)} observed`;
|
|
10908
10879
|
}
|
|
10909
10880
|
function buildRunStatusEvidenceTextLines(packaged) {
|
|
10910
10881
|
const evidence = readRecord(packaged.runStatus);
|
|
@@ -10917,13 +10888,13 @@ function buildRunStatusEvidenceTextLines(packaged) {
|
|
|
10917
10888
|
);
|
|
10918
10889
|
}
|
|
10919
10890
|
const source = readRecord(evidence.source);
|
|
10920
|
-
if (_optionalChain([source, 'optionalAccess',
|
|
10891
|
+
if (_optionalChain([source, 'optionalAccess', _401 => _401.aligned]) === false) {
|
|
10921
10892
|
lines.push(
|
|
10922
10893
|
` consistency: run snapshot event ${String(source.runSnapshotLedgerNextSeq)} and progress event ${String(source.ledgerNextSeq)} differ; retry this read to align them`
|
|
10923
10894
|
);
|
|
10924
10895
|
}
|
|
10925
10896
|
const focus = readRecord(evidence.focusStep);
|
|
10926
|
-
const rows = readRecord(_optionalChain([focus, 'optionalAccess',
|
|
10897
|
+
const rows = readRecord(_optionalChain([focus, 'optionalAccess', _402 => _402.rows]));
|
|
10927
10898
|
if (focus) {
|
|
10928
10899
|
const id = typeof focus.id === "string" && focus.id.trim() ? focus.id.trim() : "unknown step";
|
|
10929
10900
|
const label = typeof focus.label === "string" && focus.label.trim() ? ` (${focus.label.trim()})` : "";
|
|
@@ -10931,7 +10902,7 @@ function buildRunStatusEvidenceTextLines(packaged) {
|
|
|
10931
10902
|
const known = readRecordArray(packaged.steps).find(
|
|
10932
10903
|
(step) => typeof step.id === "string" && (id === step.id || id.endsWith(`:${step.id}`)) && typeof step.label === "string"
|
|
10933
10904
|
);
|
|
10934
|
-
const state = typeof _optionalChain([known, 'optionalAccess',
|
|
10905
|
+
const state = typeof _optionalChain([known, 'optionalAccess', _403 => _403.label]) === "string" ? known.label : typeof focus.status === "string" && focus.status.trim() ? formatNodeExecutionState(
|
|
10935
10906
|
deriveNodeExecutionState({
|
|
10936
10907
|
reported: {
|
|
10937
10908
|
status: focus.status.trim(),
|
|
@@ -10941,7 +10912,7 @@ function buildRunStatusEvidenceTextLines(packaged) {
|
|
|
10941
10912
|
total: rows.total
|
|
10942
10913
|
} : null
|
|
10943
10914
|
},
|
|
10944
|
-
runStatus: _optionalChain([run, 'optionalAccess',
|
|
10915
|
+
runStatus: _optionalChain([run, 'optionalAccess', _404 => _404.status])
|
|
10945
10916
|
})
|
|
10946
10917
|
) : null;
|
|
10947
10918
|
lines.push(` current step: ${id}${label}${state ? `: ${state}` : ""}`);
|
|
@@ -10989,7 +10960,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10989
10960
|
(line) => typeof line === "string"
|
|
10990
10961
|
);
|
|
10991
10962
|
if (tail.length === 0) return [];
|
|
10992
|
-
const shown = tail.map((line) =>
|
|
10963
|
+
const shown = tail.map((line) => _chunkAOBAVBSXjs.classifyLogLine.call(void 0, line)).filter(
|
|
10993
10964
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10994
10965
|
).slice(-8);
|
|
10995
10966
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11033,7 +11004,7 @@ function buildRunPackageTextLines(packaged) {
|
|
|
11033
11004
|
lines.push(` recovery: ${mode}${sourceRunId}`);
|
|
11034
11005
|
}
|
|
11035
11006
|
const runError = typeof run.error === "string" && run.error.trim() ? run.error.trim() : null;
|
|
11036
|
-
const structuredRuntimeLimitMessage = typeof _optionalChain([runtimeLimitFailure, 'optionalAccess',
|
|
11007
|
+
const structuredRuntimeLimitMessage = typeof _optionalChain([runtimeLimitFailure, 'optionalAccess', _405 => _405.message]) === "string" && runtimeLimitFailure.message.trim() ? `${typeof runtimeLimitFailure.code === "string" ? runtimeLimitFailure.code : "RUNTIME_LIMIT_EXCEEDED"}: ${runtimeLimitFailure.message.trim()}` : null;
|
|
11037
11008
|
const displayRunError = _nullishCoalesce(structuredRuntimeLimitMessage, () => ( runError));
|
|
11038
11009
|
if (!isRuntimeLimitCheckpoint && displayRunError && (status === "failed" || status === "cancelled")) {
|
|
11039
11010
|
lines.push(` error: ${truncateErrorForDisplay(displayRunError, runId)}`);
|
|
@@ -11044,11 +11015,11 @@ function buildRunPackageTextLines(packaged) {
|
|
|
11044
11015
|
}
|
|
11045
11016
|
}
|
|
11046
11017
|
const failedLogs = readRecord(packaged.failedLogs);
|
|
11047
|
-
const failedLogEntries = Array.isArray(_optionalChain([failedLogs, 'optionalAccess',
|
|
11018
|
+
const failedLogEntries = Array.isArray(_optionalChain([failedLogs, 'optionalAccess', _406 => _406.entries])) ? failedLogs.entries.filter(
|
|
11048
11019
|
(entry) => typeof entry === "string"
|
|
11049
11020
|
) : [];
|
|
11050
|
-
const failedLogAssociation = typeof _optionalChain([failedLogs, 'optionalAccess',
|
|
11051
|
-
const failedLogWarning = typeof _optionalChain([failedLogs, 'optionalAccess',
|
|
11021
|
+
const failedLogAssociation = typeof _optionalChain([failedLogs, 'optionalAccess', _407 => _407.association]) === "string" ? failedLogs.association : null;
|
|
11022
|
+
const failedLogWarning = typeof _optionalChain([failedLogs, 'optionalAccess', _408 => _408.warning]) === "string" && failedLogs.warning.trim() ? failedLogs.warning.trim() : null;
|
|
11052
11023
|
if (failedLogEntries.length > 0) {
|
|
11053
11024
|
lines.push(" failed logs:");
|
|
11054
11025
|
lines.push(...failedLogEntries.map((entry) => ` ${entry}`));
|
|
@@ -11067,8 +11038,8 @@ function buildRunPackageTextLines(packaged) {
|
|
|
11067
11038
|
)
|
|
11068
11039
|
).slice(0, 16) : [];
|
|
11069
11040
|
lines.push(...packageWarnings.map((warning) => ` warning: ${warning}`));
|
|
11070
|
-
const failedLogNext = readRecord(_optionalChain([failedLogs, 'optionalAccess',
|
|
11071
|
-
if (failedLogWarning && typeof _optionalChain([failedLogNext, 'optionalAccess',
|
|
11041
|
+
const failedLogNext = readRecord(_optionalChain([failedLogs, 'optionalAccess', _409 => _409.next]));
|
|
11042
|
+
if (failedLogWarning && typeof _optionalChain([failedLogNext, 'optionalAccess', _410 => _410.logs]) === "string") {
|
|
11072
11043
|
lines.push(
|
|
11073
11044
|
failedLogAssociation === "retained_before_truncation" ? ` retained logs: ${failedLogNext.logs}` : ` retry failed logs: ${failedLogNext.logs}`
|
|
11074
11045
|
);
|
|
@@ -11096,20 +11067,20 @@ function buildRunPackageTextLines(packaged) {
|
|
|
11096
11067
|
const stepStatus = typeof step.status === "string" ? step.status : status;
|
|
11097
11068
|
const output = step.output && typeof step.output === "object" && !Array.isArray(step.output) ? step.output : null;
|
|
11098
11069
|
const rowCount = output && typeof output.rowCount === "number" ? ` rows=${formatInteger(output.rowCount)}` : "";
|
|
11099
|
-
const preview = _optionalChain([output, 'optionalAccess',
|
|
11100
|
-
const previewRows = Array.isArray(_optionalChain([preview, 'optionalAccess',
|
|
11070
|
+
const preview = _optionalChain([output, 'optionalAccess', _411 => _411.preview]) && typeof output.preview === "object" && !Array.isArray(output.preview) ? output.preview : null;
|
|
11071
|
+
const previewRows = Array.isArray(_optionalChain([preview, 'optionalAccess', _412 => _412.rows])) ? preview.rows.length : null;
|
|
11101
11072
|
lines.push(` ${kind} ${id}: ${stepStatus}${rowCount}`);
|
|
11102
|
-
lines.push(...formatPackageDatasetSummaryLines(_optionalChain([output, 'optionalAccess',
|
|
11073
|
+
lines.push(...formatPackageDatasetSummaryLines(_optionalChain([output, 'optionalAccess', _413 => _413.summary])));
|
|
11103
11074
|
if (previewRows !== null) {
|
|
11104
11075
|
lines.push(
|
|
11105
|
-
` preview=${previewRows}${_optionalChain([preview, 'optionalAccess',
|
|
11076
|
+
` preview=${previewRows}${_optionalChain([preview, 'optionalAccess', _414 => _414.truncated]) ? " truncated" : ""}`
|
|
11106
11077
|
);
|
|
11107
11078
|
}
|
|
11108
11079
|
}
|
|
11109
11080
|
const inspectCommand = actionToCommand(next.inspect);
|
|
11110
11081
|
const fullResultCommand = actionToCommand(next.full);
|
|
11111
11082
|
const hasCatalogExportAction = packageDatasetRecords(packaged).some(
|
|
11112
|
-
(dataset) => Boolean(actionToCommand(_optionalChain([readRecord, 'call',
|
|
11083
|
+
(dataset) => Boolean(actionToCommand(_optionalChain([readRecord, 'call', _415 => _415(dataset.actions), 'optionalAccess', _416 => _416.exportCsv])))
|
|
11113
11084
|
);
|
|
11114
11085
|
const legacyExportCommand = hasCatalogExportAction ? null : actionToCommand(next.export);
|
|
11115
11086
|
const runAgainCommand = typeof next.run === "string" && next.run.trim() ? next.run.trim() : null;
|
|
@@ -11174,7 +11145,7 @@ function withOrdinaryRunAgainCommand(status, options, resolvedRevisionId) {
|
|
|
11174
11145
|
}
|
|
11175
11146
|
function buildBillingRollupTextLines(status) {
|
|
11176
11147
|
const billing = status.billing;
|
|
11177
|
-
const rollup = _optionalChain([billing, 'optionalAccess',
|
|
11148
|
+
const rollup = _optionalChain([billing, 'optionalAccess', _417 => _417.rollup]);
|
|
11178
11149
|
if (!rollup) return [];
|
|
11179
11150
|
const total = formatCreditAmount2(rollup.totalCreditsRollup);
|
|
11180
11151
|
if (rollup.childCredits > 0 && rollup.descendantRunCount > 0) {
|
|
@@ -11193,7 +11164,7 @@ function buildBillingRollupTextLines(status) {
|
|
|
11193
11164
|
return [` cost: ${total} credits`];
|
|
11194
11165
|
}
|
|
11195
11166
|
function playRunRateLimitedNotice(status) {
|
|
11196
|
-
const notice = _nullishCoalesce(_optionalChain([getPlayRunPackage, 'call',
|
|
11167
|
+
const notice = _nullishCoalesce(_optionalChain([getPlayRunPackage, 'call', _418 => _418(status), 'optionalAccess', _419 => _419.rateLimited]), () => ( status.rateLimited));
|
|
11197
11168
|
return notice && typeof notice === "object" ? notice : null;
|
|
11198
11169
|
}
|
|
11199
11170
|
function withRateLimitedNotice(status, notice) {
|
|
@@ -11234,7 +11205,7 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11234
11205
|
const overview = buildRunOverview(status);
|
|
11235
11206
|
const { run } = overview;
|
|
11236
11207
|
const failed = run.status === "failed";
|
|
11237
|
-
const label = run.status === "completed" ? _optionalChain([overview, 'access',
|
|
11208
|
+
const label = run.status === "completed" ? _optionalChain([overview, 'access', _420 => _420.rowOutcomes, 'optionalAccess', _421 => _421.hasRowFailures]) ? "Completed with row failures" : "Completed" : failed ? "Failed" : run.status;
|
|
11238
11209
|
const rateLimited = playRunRateLimitedNotice(status);
|
|
11239
11210
|
const lines = [
|
|
11240
11211
|
...rateLimited ? [rateLimited.message] : [],
|
|
@@ -11258,7 +11229,7 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11258
11229
|
...formatJsonPreview(compactReturnValue(overview.result))
|
|
11259
11230
|
);
|
|
11260
11231
|
}
|
|
11261
|
-
if (_optionalChain([overview, 'access',
|
|
11232
|
+
if (_optionalChain([overview, 'access', _422 => _422.rowOutcomes, 'optionalAccess', _423 => _423.hasRowFailures])) {
|
|
11262
11233
|
lines.push(
|
|
11263
11234
|
`Rows: ${overview.rowOutcomes.completedRows} completed, ${overview.rowOutcomes.failedRows} failed`
|
|
11264
11235
|
);
|
|
@@ -11287,17 +11258,17 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11287
11258
|
}
|
|
11288
11259
|
function writePlayResult(status, jsonOutput, options) {
|
|
11289
11260
|
const packaged = getPlayRunPackage(status);
|
|
11290
|
-
if (status.package)
|
|
11291
|
-
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess',
|
|
11261
|
+
if (status.package) _chunkUTG3STCRjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11262
|
+
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
|
|
11292
11263
|
if (jsonOutput) {
|
|
11293
|
-
const payload2 = _optionalChain([options, 'optionalAccess',
|
|
11294
|
-
|
|
11264
|
+
const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11265
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
11295
11266
|
hits ? { ...payload2, hits } : payload2,
|
|
11296
|
-
{ json: true, fields: _optionalChain([options, 'optionalAccess',
|
|
11267
|
+
{ json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
|
|
11297
11268
|
);
|
|
11298
11269
|
return;
|
|
11299
11270
|
}
|
|
11300
|
-
if (packaged && !_optionalChain([options, 'optionalAccess',
|
|
11271
|
+
if (packaged && !_optionalChain([options, 'optionalAccess', _427 => _427.fullJson])) {
|
|
11301
11272
|
const {
|
|
11302
11273
|
logs: _logs,
|
|
11303
11274
|
failedLogs: _failedLogs,
|
|
@@ -11307,7 +11278,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11307
11278
|
...buildPlayCompletionTextLines(status),
|
|
11308
11279
|
...formatRunHitsLines(hits)
|
|
11309
11280
|
];
|
|
11310
|
-
|
|
11281
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11311
11282
|
json: false,
|
|
11312
11283
|
text: `${lines2.join("\n")}
|
|
11313
11284
|
`
|
|
@@ -11357,8 +11328,8 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11357
11328
|
lines.push(...renderedServerView.actions);
|
|
11358
11329
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11359
11330
|
const compact = compactPlayStatus(status);
|
|
11360
|
-
const payload = _optionalChain([options, 'optionalAccess',
|
|
11361
|
-
|
|
11331
|
+
const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
|
|
11332
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
11362
11333
|
{
|
|
11363
11334
|
...payload,
|
|
11364
11335
|
render: {
|
|
@@ -11419,7 +11390,7 @@ async function resolvePlayRunOutputStatus(input) {
|
|
|
11419
11390
|
const fromDurableStatus = input.fromDurableStatus === true || fullDurableTerminalStatuses.has(input.status);
|
|
11420
11391
|
const refreshForFullJson = input.fullJson && !fromDurableStatus;
|
|
11421
11392
|
const streamedTextPackageIncomplete = input.status.status === "completed" && playRunPackageTextLedgerIncomplete(streamedPackage);
|
|
11422
|
-
const refreshFailedTerminal = input.status.status === "failed" && (!fromDurableStatus || _optionalChain([readRecord, 'call',
|
|
11393
|
+
const refreshFailedTerminal = input.status.status === "failed" && (!fromDurableStatus || _optionalChain([readRecord, 'call', _429 => _429(_optionalChain([streamedPackage, 'optionalAccess', _430 => _430.run])), 'optionalAccess', _431 => _431.status]) !== "failed");
|
|
11423
11394
|
if (!refreshForFullJson && !streamedTextPackageIncomplete && !refreshFailedTerminal) {
|
|
11424
11395
|
if (input.fullJson && fromDurableStatus && TERMINAL_PLAY_STATUSES.has(input.status.status)) {
|
|
11425
11396
|
fullDurableTerminalStatuses.add(input.status);
|
|
@@ -11526,14 +11497,14 @@ function mergeExportColumns(preferredColumns, rows) {
|
|
|
11526
11497
|
return columns;
|
|
11527
11498
|
}
|
|
11528
11499
|
function sqlSafeExportColumnName(id) {
|
|
11529
|
-
const prefix = _nullishCoalesce(_optionalChain([id, 'access',
|
|
11500
|
+
const prefix = _nullishCoalesce(_optionalChain([id, 'access', _432 => _432.trim, 'call', _433 => _433(), 'access', _434 => _434.match, 'call', _435 => _435(/^_+/), 'optionalAccess', _436 => _436[0]]), () => ( ""));
|
|
11530
11501
|
const normalized = id.trim().replace(/\.+/g, "__").replace(/[^A-Za-z0-9_]+/g, "_").replace(/^_+|_+$/g, "").toLowerCase();
|
|
11531
11502
|
const safe = `${prefix}${normalized || "column"}`;
|
|
11532
11503
|
return /^[A-Za-z_]/.test(safe) ? safe : `c_${safe}`;
|
|
11533
11504
|
}
|
|
11534
11505
|
async function fetchBackingDatasetRows(input) {
|
|
11535
11506
|
const playName = extractRunPlayName(input.status);
|
|
11536
|
-
const tableNamespace = _optionalChain([input, 'access',
|
|
11507
|
+
const tableNamespace = _optionalChain([input, 'access', _437 => _437.rowsInfo, 'access', _438 => _438.tableNamespace, 'optionalAccess', _439 => _439.trim, 'call', _440 => _440()]);
|
|
11537
11508
|
if (!playName || !tableNamespace) {
|
|
11538
11509
|
return null;
|
|
11539
11510
|
}
|
|
@@ -11573,7 +11544,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11573
11544
|
seenEnvelopeKeys.add(key);
|
|
11574
11545
|
}
|
|
11575
11546
|
sheetRows.push(...page.rows);
|
|
11576
|
-
const summaryTotal = _optionalChain([page, 'access',
|
|
11547
|
+
const summaryTotal = _optionalChain([page, 'access', _441 => _441.summary, 'optionalAccess', _442 => _442.stats, 'optionalAccess', _443 => _443.total]);
|
|
11577
11548
|
if (typeof summaryTotal === "number" && Number.isFinite(summaryTotal)) {
|
|
11578
11549
|
settledTotal = Math.max(_nullishCoalesce(settledTotal, () => ( 0)), Math.trunc(summaryTotal));
|
|
11579
11550
|
}
|
|
@@ -11582,7 +11553,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11582
11553
|
}
|
|
11583
11554
|
offset += page.rows.length;
|
|
11584
11555
|
}
|
|
11585
|
-
const withError =
|
|
11556
|
+
const withError = _chunkUTG3STCRjs.tableExportHasFailedRows.call(void 0,
|
|
11586
11557
|
sheetRows.filter(
|
|
11587
11558
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11588
11559
|
)
|
|
@@ -11598,7 +11569,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11598
11569
|
return [
|
|
11599
11570
|
withError ? {
|
|
11600
11571
|
...exported,
|
|
11601
|
-
[
|
|
11572
|
+
[_chunkUTG3STCRjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkUTG3STCRjs.tableExportErrorCell.call(void 0,
|
|
11602
11573
|
row
|
|
11603
11574
|
)
|
|
11604
11575
|
} : exported
|
|
@@ -11667,7 +11638,7 @@ function assertDatasetHasExportableRows(input) {
|
|
|
11667
11638
|
const rowOutcomes = _nullishCoalesce(readRowOutcomeSummary(input.status), () => ( readRowOutcomeSummary(
|
|
11668
11639
|
getRecordField(getRecordField(input.status, "result"), "_metadata")
|
|
11669
11640
|
)));
|
|
11670
|
-
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',
|
|
11641
|
+
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', _444 => _444.failedRows]) === 0 && !rowOutcomes.hasRowFailures) {
|
|
11671
11642
|
return input.rowsInfo;
|
|
11672
11643
|
}
|
|
11673
11644
|
const datasetLabel = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(input.datasetPath, () => ( input.rowsInfo.tableNamespace)), () => ( input.rowsInfo.source)), () => ( "result.rows"));
|
|
@@ -11739,8 +11710,8 @@ async function exportPlayStatusRows(client, status, outPath, options = {}) {
|
|
|
11739
11710
|
path: dataset.exportFile(outPath, options),
|
|
11740
11711
|
rowsInfo: dataset.info(),
|
|
11741
11712
|
currentTable: false,
|
|
11742
|
-
datasetPath: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess',
|
|
11743
|
-
datasetInfo: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess',
|
|
11713
|
+
datasetPath: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _445 => _445.source]), () => ( null)),
|
|
11714
|
+
datasetInfo: _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _446 => _446.info, 'call', _447 => _447()]), () => ( null))
|
|
11744
11715
|
};
|
|
11745
11716
|
};
|
|
11746
11717
|
const run = Run.open({
|
|
@@ -11752,7 +11723,7 @@ async function exportPlayStatusRows(client, status, outPath, options = {}) {
|
|
|
11752
11723
|
const returnedRows = datasets.returned().map((dataset) => dataset.info());
|
|
11753
11724
|
const recoveredRows = datasets.recovered().map((dataset) => dataset.info());
|
|
11754
11725
|
const selectedDataset = run.dataset(options.datasetPath);
|
|
11755
|
-
const rowsInfo = _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess',
|
|
11726
|
+
const rowsInfo = _nullishCoalesce(_optionalChain([selectedDataset, 'optionalAccess', _448 => _448.info, 'call', _449 => _449()]), () => ( null));
|
|
11756
11727
|
if (!selectedDataset && options.datasetPath) {
|
|
11757
11728
|
const available = availableRows.map((info) => info.source).filter((source) => typeof source === "string");
|
|
11758
11729
|
const commands = datasetChoiceLines({
|
|
@@ -11865,7 +11836,7 @@ ${commands.join("\n")}`,
|
|
|
11865
11836
|
throw error;
|
|
11866
11837
|
}
|
|
11867
11838
|
}
|
|
11868
|
-
if (_optionalChain([fetchedRowsInfo, 'optionalAccess',
|
|
11839
|
+
if (_optionalChain([fetchedRowsInfo, 'optionalAccess', _450 => _450.complete])) {
|
|
11869
11840
|
const guarded2 = assertDatasetHasExportableRows({
|
|
11870
11841
|
rowsInfo: fetchedRowsInfo,
|
|
11871
11842
|
status,
|
|
@@ -11930,7 +11901,7 @@ function extractActiveRunsFromError(error) {
|
|
|
11930
11901
|
if (!(error instanceof _chunkDIAWYWT5js.DeeplineError)) {
|
|
11931
11902
|
return [];
|
|
11932
11903
|
}
|
|
11933
|
-
const response = _optionalChain([error, 'access',
|
|
11904
|
+
const response = _optionalChain([error, 'access', _451 => _451.details, 'optionalAccess', _452 => _452.response]);
|
|
11934
11905
|
if (!response || typeof response !== "object" || Array.isArray(response)) {
|
|
11935
11906
|
return [];
|
|
11936
11907
|
}
|
|
@@ -12047,8 +12018,8 @@ function renderServerResultView(value) {
|
|
|
12047
12018
|
return { lines: [], actions: [] };
|
|
12048
12019
|
}
|
|
12049
12020
|
const view = value;
|
|
12050
|
-
const renderedSections = Array.isArray(_optionalChain([view, 'access',
|
|
12051
|
-
const renderedActions = Array.isArray(_optionalChain([view, 'access',
|
|
12021
|
+
const renderedSections = Array.isArray(_optionalChain([view, 'access', _453 => _453.render, 'optionalAccess', _454 => _454.sections])) ? view.render.sections : [];
|
|
12022
|
+
const renderedActions = Array.isArray(_optionalChain([view, 'access', _455 => _455.render, 'optionalAccess', _456 => _456.actions])) ? view.render.actions : [];
|
|
12052
12023
|
if (renderedSections.length > 0 || renderedActions.length > 0) {
|
|
12053
12024
|
const lines2 = [];
|
|
12054
12025
|
for (const section of renderedSections) {
|
|
@@ -12086,7 +12057,7 @@ function renderServerResultView(value) {
|
|
|
12086
12057
|
}
|
|
12087
12058
|
const tables = Array.isArray(view.tables) ? view.tables : [];
|
|
12088
12059
|
const topLevelOutputTable = view.topLevelOutputTable && typeof view.topLevelOutputTable === "object" && !Array.isArray(view.topLevelOutputTable) ? view.topLevelOutputTable : null;
|
|
12089
|
-
if (typeof _optionalChain([topLevelOutputTable, 'optionalAccess',
|
|
12060
|
+
if (typeof _optionalChain([topLevelOutputTable, 'optionalAccess', _457 => _457.queryCommand]) === "string") {
|
|
12090
12061
|
lines.push(` top-level outputs: ${topLevelOutputTable.queryCommand}`);
|
|
12091
12062
|
}
|
|
12092
12063
|
if (tables.length > 0) {
|
|
@@ -12133,7 +12104,7 @@ function renderServerResultView(value) {
|
|
|
12133
12104
|
function writeStartedPlayRun(input) {
|
|
12134
12105
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12135
12106
|
const run = input.package.run;
|
|
12136
|
-
|
|
12107
|
+
_chunkUTG3STCRjs.recordPlayTermination.call(void 0, {
|
|
12137
12108
|
id: run.id,
|
|
12138
12109
|
status: run.status,
|
|
12139
12110
|
finishedAt: run.finishedAt
|
|
@@ -12146,7 +12117,7 @@ function writeStartedPlayRun(input) {
|
|
|
12146
12117
|
dashboardUrl: input.dashboardUrl,
|
|
12147
12118
|
package: input.package
|
|
12148
12119
|
};
|
|
12149
|
-
|
|
12120
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12150
12121
|
json: true,
|
|
12151
12122
|
fields: input.jsonFields
|
|
12152
12123
|
});
|
|
@@ -12168,7 +12139,7 @@ function writeStartedPlayRun(input) {
|
|
|
12168
12139
|
input.progress.writeLine(output2, process.stdout);
|
|
12169
12140
|
return;
|
|
12170
12141
|
}
|
|
12171
|
-
|
|
12142
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12172
12143
|
json: false,
|
|
12173
12144
|
text: `${output2}
|
|
12174
12145
|
`
|
|
@@ -12203,7 +12174,7 @@ function writeStartedPlayRun(input) {
|
|
|
12203
12174
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12204
12175
|
];
|
|
12205
12176
|
if (input.jsonOutput) {
|
|
12206
|
-
|
|
12177
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12207
12178
|
return;
|
|
12208
12179
|
}
|
|
12209
12180
|
const output = lines.join("\n");
|
|
@@ -12211,7 +12182,7 @@ function writeStartedPlayRun(input) {
|
|
|
12211
12182
|
input.progress.writeLine(output, process.stdout);
|
|
12212
12183
|
return;
|
|
12213
12184
|
}
|
|
12214
|
-
|
|
12185
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
12215
12186
|
{
|
|
12216
12187
|
...payload,
|
|
12217
12188
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12221,7 +12192,7 @@ function writeStartedPlayRun(input) {
|
|
|
12221
12192
|
);
|
|
12222
12193
|
}
|
|
12223
12194
|
function parsePlayCheckOptions(args) {
|
|
12224
|
-
const selection =
|
|
12195
|
+
const selection = _chunkZL4Q4T3Gjs.parseJsonFields.call(void 0, args, "check");
|
|
12225
12196
|
args = selection.args;
|
|
12226
12197
|
const target = args[0];
|
|
12227
12198
|
if (!target || target.startsWith("-")) {
|
|
@@ -12233,7 +12204,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12233
12204
|
if (arg !== "--json" && arg !== "--full")
|
|
12234
12205
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12235
12206
|
}
|
|
12236
|
-
const jsonOutput =
|
|
12207
|
+
const jsonOutput = _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args);
|
|
12237
12208
|
return {
|
|
12238
12209
|
target,
|
|
12239
12210
|
jsonOutput,
|
|
@@ -12309,7 +12280,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12309
12280
|
useLatest,
|
|
12310
12281
|
expectedArtifactHash,
|
|
12311
12282
|
dryRun,
|
|
12312
|
-
jsonOutput:
|
|
12283
|
+
jsonOutput: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)
|
|
12313
12284
|
};
|
|
12314
12285
|
}
|
|
12315
12286
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12350,7 +12321,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12350
12321
|
target,
|
|
12351
12322
|
expectedArtifactHash,
|
|
12352
12323
|
dryRun,
|
|
12353
|
-
jsonOutput:
|
|
12324
|
+
jsonOutput: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)
|
|
12354
12325
|
};
|
|
12355
12326
|
}
|
|
12356
12327
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12403,7 +12374,7 @@ function checkHintExpression(value) {
|
|
|
12403
12374
|
return stringValue2(value).replace(/^toolExecutionResult\./, "result.");
|
|
12404
12375
|
}
|
|
12405
12376
|
function checkHintRawPath(value) {
|
|
12406
|
-
return _optionalChain([value, 'optionalAccess',
|
|
12377
|
+
return _optionalChain([value, 'optionalAccess', _458 => _458.startsWith, 'call', _459 => _459("toolResponse.rawV2")]) ? value.replace(/^toolResponse\./, "result.toolResponse.") : void 0;
|
|
12407
12378
|
}
|
|
12408
12379
|
function collectStaticPipelineToolIds(staticPipeline) {
|
|
12409
12380
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -12478,30 +12449,30 @@ function cronExecutionLabel(status) {
|
|
|
12478
12449
|
}
|
|
12479
12450
|
function readLiveCronMetadata(play) {
|
|
12480
12451
|
const record3 = readRecord(play);
|
|
12481
|
-
const metadata = readRecord(_optionalChain([record3, 'optionalAccess',
|
|
12452
|
+
const metadata = readRecord(_optionalChain([record3, 'optionalAccess', _460 => _460.triggerMetadata]));
|
|
12482
12453
|
return {
|
|
12483
|
-
schedule: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12484
|
-
timezone: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12485
|
-
nextScheduledAt: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12486
|
-
blockedAt: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12487
|
-
blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12454
|
+
schedule: typeof _optionalChain([metadata, 'optionalAccess', _461 => _461.cronSchedule]) === "string" ? metadata.cronSchedule : null,
|
|
12455
|
+
timezone: typeof _optionalChain([metadata, 'optionalAccess', _462 => _462.cronTimezone]) === "string" ? metadata.cronTimezone : null,
|
|
12456
|
+
nextScheduledAt: typeof _optionalChain([metadata, 'optionalAccess', _463 => _463.nextScheduledAt]) === "number" ? metadata.nextScheduledAt : null,
|
|
12457
|
+
blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _464 => _464.blockedAt]) === "number" ? metadata.blockedAt : null,
|
|
12458
|
+
blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _465 => _465.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null
|
|
12488
12459
|
};
|
|
12489
12460
|
}
|
|
12490
12461
|
function liveTriggerStatusLines(status, play) {
|
|
12491
12462
|
const cron = readLiveCronMetadata(play);
|
|
12492
|
-
if (!_optionalChain([status, 'optionalAccess',
|
|
12463
|
+
if (!_optionalChain([status, 'optionalAccess', _466 => _466.cron]) && !cron.schedule && !_optionalChain([status, 'optionalAccess', _467 => _467.webhook])) return [];
|
|
12493
12464
|
const lines = [];
|
|
12494
|
-
if (_optionalChain([status, 'optionalAccess',
|
|
12465
|
+
if (_optionalChain([status, 'optionalAccess', _468 => _468.cron]) || cron.schedule) {
|
|
12495
12466
|
const timezone = cron.timezone ? ` (${cron.timezone})` : "";
|
|
12496
12467
|
lines.push(
|
|
12497
|
-
` Scheduled execution: ${cronExecutionLabel(_nullishCoalesce(_optionalChain([status, 'optionalAccess',
|
|
12468
|
+
` Scheduled execution: ${cronExecutionLabel(_nullishCoalesce(_optionalChain([status, 'optionalAccess', _469 => _469.cron]), () => ( null)))}${cron.schedule ? ` \u2014 ${cron.schedule}${timezone}` : ""}`
|
|
12498
12469
|
);
|
|
12499
|
-
if (cron.nextScheduledAt !== null && _optionalChain([status, 'optionalAccess',
|
|
12470
|
+
if (cron.nextScheduledAt !== null && _optionalChain([status, 'optionalAccess', _470 => _470.cron]) === "active") {
|
|
12500
12471
|
lines.push(
|
|
12501
12472
|
` Next scheduled run: ${formatTimestamp(cron.nextScheduledAt)}`
|
|
12502
12473
|
);
|
|
12503
12474
|
}
|
|
12504
|
-
if (_optionalChain([status, 'optionalAccess',
|
|
12475
|
+
if (_optionalChain([status, 'optionalAccess', _471 => _471.blockedReason])) {
|
|
12505
12476
|
lines.push(` Schedule issue: ${status.blockedReason}`);
|
|
12506
12477
|
if (status.blockedReasonCode || cron.blockedReasonCode) {
|
|
12507
12478
|
lines.push(
|
|
@@ -12517,7 +12488,7 @@ function liveTriggerStatusLines(status, play) {
|
|
|
12517
12488
|
);
|
|
12518
12489
|
}
|
|
12519
12490
|
}
|
|
12520
|
-
if (_optionalChain([status, 'optionalAccess',
|
|
12491
|
+
if (_optionalChain([status, 'optionalAccess', _472 => _472.webhook])) {
|
|
12521
12492
|
lines.push(` Webhook: ${status.webhook}`);
|
|
12522
12493
|
}
|
|
12523
12494
|
return lines;
|
|
@@ -12525,11 +12496,11 @@ function liveTriggerStatusLines(status, play) {
|
|
|
12525
12496
|
function triggerStatusFromMetadata(value) {
|
|
12526
12497
|
const metadata = readRecord(value);
|
|
12527
12498
|
return {
|
|
12528
|
-
cron: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12529
|
-
webhook: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12530
|
-
blockedReason: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12531
|
-
blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12532
|
-
blockedAt: typeof _optionalChain([metadata, 'optionalAccess',
|
|
12499
|
+
cron: typeof _optionalChain([metadata, 'optionalAccess', _473 => _473.cronStatus]) === "string" ? metadata.cronStatus : null,
|
|
12500
|
+
webhook: typeof _optionalChain([metadata, 'optionalAccess', _474 => _474.webhookStatus]) === "string" ? metadata.webhookStatus : null,
|
|
12501
|
+
blockedReason: typeof _optionalChain([metadata, 'optionalAccess', _475 => _475.blockedReason]) === "string" ? metadata.blockedReason : null,
|
|
12502
|
+
blockedReasonCode: typeof _optionalChain([metadata, 'optionalAccess', _476 => _476.blockedReasonCode]) === "string" ? metadata.blockedReasonCode : null,
|
|
12503
|
+
blockedAt: typeof _optionalChain([metadata, 'optionalAccess', _477 => _477.blockedAt]) === "number" ? metadata.blockedAt : null
|
|
12533
12504
|
};
|
|
12534
12505
|
}
|
|
12535
12506
|
function printPublishReceipt(input) {
|
|
@@ -12561,7 +12532,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12561
12532
|
async function handlePlayCheck(args) {
|
|
12562
12533
|
const options = parsePlayCheckOptions(args);
|
|
12563
12534
|
if (!isFileTarget(options.target)) {
|
|
12564
|
-
const client = new (0,
|
|
12535
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
12565
12536
|
try {
|
|
12566
12537
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12567
12538
|
command: "check"
|
|
@@ -12590,7 +12561,7 @@ async function handlePlayCheck(args) {
|
|
|
12590
12561
|
},
|
|
12591
12562
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12592
12563
|
};
|
|
12593
|
-
|
|
12564
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, result, {
|
|
12594
12565
|
json: options.jsonOutput,
|
|
12595
12566
|
fields: options.jsonFields,
|
|
12596
12567
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12600,7 +12571,7 @@ async function handlePlayCheck(args) {
|
|
|
12600
12571
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12601
12572
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12602
12573
|
if (options.jsonOutput) {
|
|
12603
|
-
|
|
12574
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
12604
12575
|
{
|
|
12605
12576
|
kind: "play_check",
|
|
12606
12577
|
checked: "named_contract",
|
|
@@ -12640,9 +12611,9 @@ async function handlePlayCheck(args) {
|
|
|
12640
12611
|
target: options.target,
|
|
12641
12612
|
full: options.full,
|
|
12642
12613
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12643
|
-
publishCommand: _optionalChain([primary, 'optionalAccess',
|
|
12614
|
+
publishCommand: _optionalChain([primary, 'optionalAccess', _478 => _478.result, 'access', _479 => _479.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12644
12615
|
});
|
|
12645
|
-
|
|
12616
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, output, {
|
|
12646
12617
|
json: options.jsonOutput,
|
|
12647
12618
|
fields: options.jsonFields,
|
|
12648
12619
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12655,7 +12626,7 @@ function resolvePlayCheckExportNames(sourceCode) {
|
|
|
12655
12626
|
return exports.map((entry) => entry.name);
|
|
12656
12627
|
}
|
|
12657
12628
|
function artifactForProductionCompatibilityCheck(artifact) {
|
|
12658
|
-
const rawEdition = _optionalChain([process, 'access',
|
|
12629
|
+
const rawEdition = _optionalChain([process, 'access', _480 => _480.env, 'access', _481 => _481.DEEPLINE_PROD_CHECK_AUTHORING_CONTRACT_EDITION, 'optionalAccess', _482 => _482.trim, 'call', _483 => _483()]);
|
|
12659
12630
|
if (!rawEdition) return artifact;
|
|
12660
12631
|
if (!/^\d+$/.test(rawEdition)) {
|
|
12661
12632
|
throw new Error(
|
|
@@ -12696,7 +12667,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12696
12667
|
}
|
|
12697
12668
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12698
12669
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12699
|
-
const client = new (0,
|
|
12670
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
12700
12671
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12701
12672
|
const checked = await checkLocalPlayGraph({
|
|
12702
12673
|
client,
|
|
@@ -12706,7 +12677,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12706
12677
|
integrationMode,
|
|
12707
12678
|
prepareArtifact: artifactForProductionCompatibilityCheck
|
|
12708
12679
|
});
|
|
12709
|
-
const importedPlayName = _optionalChain([checked, 'access',
|
|
12680
|
+
const importedPlayName = _optionalChain([checked, 'access', _484 => _484.failedChild, 'optionalAccess', _485 => _485.playName]);
|
|
12710
12681
|
const diagnosticPrefix = importedPlayName ? `Imported Play ${importedPlayName}: ` : "";
|
|
12711
12682
|
const valid = checked.result.valid && !checked.failedChild && authoringErrors.length === 0;
|
|
12712
12683
|
const errors = [
|
|
@@ -12722,7 +12693,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12722
12693
|
valid,
|
|
12723
12694
|
errors: valid ? checked.result.errors : addPlayCheckRepairHints({
|
|
12724
12695
|
errors,
|
|
12725
|
-
sourceCode: _nullishCoalesce(_optionalChain([checked, 'access',
|
|
12696
|
+
sourceCode: _nullishCoalesce(_optionalChain([checked, 'access', _486 => _486.failedChild, 'optionalAccess', _487 => _487.sourceCode]), () => ( graph.root.sourceCode))
|
|
12726
12697
|
}),
|
|
12727
12698
|
...checked.failedChild && checked.result.issues ? {
|
|
12728
12699
|
issues: checked.result.issues.map((issue) => ({
|
|
@@ -12752,8 +12723,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12752
12723
|
let prefetchClient;
|
|
12753
12724
|
let admissionCapability;
|
|
12754
12725
|
let cancelAdmissionCapability;
|
|
12755
|
-
let cliAdmission =
|
|
12756
|
-
const progress = _nullishCoalesce(
|
|
12726
|
+
let cliAdmission = _chunkGKZUGHDKjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12727
|
+
const progress = _nullishCoalesce(_chunkW7DZ6UGPjs.getActiveCliProgress.call(void 0, ), () => ( _chunkW7DZ6UGPjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12757
12728
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12758
12729
|
progress.phase("compiling play");
|
|
12759
12730
|
const sourceCode = traceCliSync(
|
|
@@ -12769,11 +12740,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12769
12740
|
return 1;
|
|
12770
12741
|
}
|
|
12771
12742
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12772
|
-
const clientForPrefetch = new (0,
|
|
12743
|
+
const clientForPrefetch = new (0, _chunk5GK6J7MHjs.DeeplineClient)(playRunClientOptions(options));
|
|
12773
12744
|
prefetchClient = clientForPrefetch;
|
|
12774
12745
|
const capabilityController = new AbortController();
|
|
12775
12746
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12776
|
-
admissionCapability =
|
|
12747
|
+
admissionCapability = _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
12777
12748
|
"cli.play_admission_capability_prefetch",
|
|
12778
12749
|
{ targetKind: "file" },
|
|
12779
12750
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -12784,7 +12755,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12784
12755
|
}
|
|
12785
12756
|
let graph;
|
|
12786
12757
|
try {
|
|
12787
|
-
graph = await
|
|
12758
|
+
graph = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
12788
12759
|
"cli.play_file_bundle_graph",
|
|
12789
12760
|
{ targetKind: "file" },
|
|
12790
12761
|
() => collectBundledPlayGraph(
|
|
@@ -12798,14 +12769,14 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12798
12769
|
if (options.dryRun) {
|
|
12799
12770
|
progress.complete();
|
|
12800
12771
|
renderLocalPlayExecutionPlan(
|
|
12801
|
-
|
|
12772
|
+
_chunkJEPNE4N5js.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
|
|
12802
12773
|
{ dryRun: true, json: options.jsonOutput }
|
|
12803
12774
|
);
|
|
12804
12775
|
return 0;
|
|
12805
12776
|
}
|
|
12806
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
12777
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunk5GK6J7MHjs.DeeplineClient)(playRunClientOptions(options))));
|
|
12807
12778
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12808
|
-
await
|
|
12779
|
+
await _chunkGKZUGHDKjs.checkPlayRunCompatibility.call(void 0,
|
|
12809
12780
|
client.baseUrl,
|
|
12810
12781
|
options.maintenancePolicy
|
|
12811
12782
|
);
|
|
@@ -12818,7 +12789,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12818
12789
|
});
|
|
12819
12790
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12820
12791
|
if (canDeferCompilerManifest) {
|
|
12821
|
-
|
|
12792
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
12822
12793
|
phase: "cli.play_file_compile_manifests",
|
|
12823
12794
|
ms: 0,
|
|
12824
12795
|
ok: true,
|
|
@@ -12827,7 +12798,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12827
12798
|
reason: "validated_by_run_route"
|
|
12828
12799
|
});
|
|
12829
12800
|
} else {
|
|
12830
|
-
await
|
|
12801
|
+
await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
12831
12802
|
"cli.play_file_compile_manifests",
|
|
12832
12803
|
{ targetKind: "file", skipped: false },
|
|
12833
12804
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12848,13 +12819,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12848
12819
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12849
12820
|
try {
|
|
12850
12821
|
renderLocalPlayExecutionPlan(
|
|
12851
|
-
|
|
12822
|
+
_chunkJEPNE4N5js.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12852
12823
|
);
|
|
12853
12824
|
progress.phase("pinning imported plays");
|
|
12854
|
-
graph = await
|
|
12825
|
+
graph = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
12855
12826
|
"cli.play_file_pin_imports",
|
|
12856
12827
|
{ targetKind: "file" },
|
|
12857
|
-
() =>
|
|
12828
|
+
() => _chunkJEPNE4N5js.pinLocalPlayImports.call(void 0, client, graph)
|
|
12858
12829
|
);
|
|
12859
12830
|
bundleResult = graph.root;
|
|
12860
12831
|
} catch (error) {
|
|
@@ -12867,10 +12838,10 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12867
12838
|
(file) => stageFile(file.logicalPath, file.absolutePath)
|
|
12868
12839
|
);
|
|
12869
12840
|
const compilerManifest = _nullishCoalesce(bundleResult.compilerManifest, () => ( null));
|
|
12870
|
-
const fileInputBindings =
|
|
12871
|
-
_optionalChain([compilerManifest, 'optionalAccess',
|
|
12841
|
+
const fileInputBindings = _chunkEQR5O2D2js.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12842
|
+
_optionalChain([compilerManifest, 'optionalAccess', _488 => _488.staticPipeline])
|
|
12872
12843
|
);
|
|
12873
|
-
const stagedFileInputs = await
|
|
12844
|
+
const stagedFileInputs = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
12874
12845
|
"cli.play_stage_inputs",
|
|
12875
12846
|
{
|
|
12876
12847
|
targetKind: "file",
|
|
@@ -12917,7 +12888,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12917
12888
|
};
|
|
12918
12889
|
if (options.watch) {
|
|
12919
12890
|
progress.phase("starting run");
|
|
12920
|
-
const finalStatus = await
|
|
12891
|
+
const finalStatus = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
12921
12892
|
"cli.play_start_watch",
|
|
12922
12893
|
{ targetKind: "file", playName },
|
|
12923
12894
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12931,9 +12902,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12931
12902
|
waitTimeoutMs: options.waitTimeoutMs,
|
|
12932
12903
|
open: options.open,
|
|
12933
12904
|
progress,
|
|
12934
|
-
onRunStarted: _optionalChain([hooks, 'optionalAccess',
|
|
12935
|
-
onSubmission: _optionalChain([hooks, 'optionalAccess',
|
|
12936
|
-
onRunAdmitted: _optionalChain([hooks, 'optionalAccess',
|
|
12905
|
+
onRunStarted: _optionalChain([hooks, 'optionalAccess', _489 => _489.onRunStarted]),
|
|
12906
|
+
onSubmission: _optionalChain([hooks, 'optionalAccess', _490 => _490.onSubmission]),
|
|
12907
|
+
onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _491 => _491.onRunAdmitted]),
|
|
12937
12908
|
maintenancePolicy: options.maintenancePolicy,
|
|
12938
12909
|
...!options.runIdFile || options.fullJson ? { fullJson: options.fullJson } : {},
|
|
12939
12910
|
...cliAdmission ? {
|
|
@@ -12963,8 +12934,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12963
12934
|
),
|
|
12964
12935
|
options
|
|
12965
12936
|
);
|
|
12966
|
-
_optionalChain([hooks, 'optionalAccess',
|
|
12967
|
-
if (_optionalChain([hooks, 'optionalAccess',
|
|
12937
|
+
_optionalChain([hooks, 'optionalAccess', _492 => _492.onTerminalStatus, 'optionalCall', _493 => _493(outputStatus)]);
|
|
12938
|
+
if (_optionalChain([hooks, 'optionalAccess', _494 => _494.writeResult])) {
|
|
12968
12939
|
await hooks.writeResult(client, outputStatus);
|
|
12969
12940
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12970
12941
|
}
|
|
@@ -12979,15 +12950,15 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12979
12950
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12980
12951
|
}
|
|
12981
12952
|
progress.phase("starting run");
|
|
12982
|
-
const started = await
|
|
12953
|
+
const started = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
12983
12954
|
"cli.play_start_unwatched",
|
|
12984
12955
|
{ targetKind: "file", playName },
|
|
12985
|
-
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess',
|
|
12956
|
+
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _495 => _495.onSubmission]) }).catch(async (error) => {
|
|
12986
12957
|
throw await normalizePlayStartError(client, error, playName);
|
|
12987
12958
|
})
|
|
12988
12959
|
);
|
|
12989
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
12990
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
12960
|
+
await _optionalChain([hooks, 'optionalAccess', _496 => _496.onRunStarted, 'optionalCall', _497 => _497(started.workflowId)]);
|
|
12961
|
+
await _optionalChain([hooks, 'optionalAccess', _498 => _498.onRunAdmitted, 'optionalCall', _499 => _499(started.workflowId)]);
|
|
12991
12962
|
const resolvedDashboardUrl = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
|
|
12992
12963
|
openPlayDashboard(
|
|
12993
12964
|
resolvePlayRunUrl({
|
|
@@ -12999,7 +12970,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12999
12970
|
);
|
|
13000
12971
|
progress.phase("started run");
|
|
13001
12972
|
progress.complete();
|
|
13002
|
-
if (_optionalChain([hooks, 'optionalAccess',
|
|
12973
|
+
if (_optionalChain([hooks, 'optionalAccess', _500 => _500.writeStarted])) {
|
|
13003
12974
|
hooks.writeStarted(
|
|
13004
12975
|
started.workflowId,
|
|
13005
12976
|
_nullishCoalesce(started.status, () => ( "started")),
|
|
@@ -13034,7 +13005,7 @@ async function resolveNamedRunRevisionId(input) {
|
|
|
13034
13005
|
if (input.selector === "latest") {
|
|
13035
13006
|
const versions = await input.client.listPlayVersions(input.playName);
|
|
13036
13007
|
const latest = versions[0];
|
|
13037
|
-
if (!_optionalChain([latest, 'optionalAccess',
|
|
13008
|
+
if (!_optionalChain([latest, 'optionalAccess', _501 => _501._id])) {
|
|
13038
13009
|
throw new Error(`No saved revisions found for ${input.playName}.`);
|
|
13039
13010
|
}
|
|
13040
13011
|
return latest._id;
|
|
@@ -13045,9 +13016,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13045
13016
|
if (options.target.kind !== "name") {
|
|
13046
13017
|
throw new Error("Expected a named play run target.");
|
|
13047
13018
|
}
|
|
13048
|
-
const client = new (0,
|
|
13049
|
-
let cliAdmission =
|
|
13050
|
-
const progress = _nullishCoalesce(
|
|
13019
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)(playRunClientOptions(options));
|
|
13020
|
+
let cliAdmission = _chunkGKZUGHDKjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13021
|
+
const progress = _nullishCoalesce(_chunkW7DZ6UGPjs.getActiveCliProgress.call(void 0, ), () => ( _chunkW7DZ6UGPjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13051
13022
|
const playName = options.target.name;
|
|
13052
13023
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13053
13024
|
try {
|
|
@@ -13065,7 +13036,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13065
13036
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13066
13037
|
const capabilityController = new AbortController();
|
|
13067
13038
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13068
|
-
admissionCapability =
|
|
13039
|
+
admissionCapability = _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
13069
13040
|
"cli.play_admission_capability_prefetch",
|
|
13070
13041
|
{ targetKind: "name", playName },
|
|
13071
13042
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13076,14 +13047,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13076
13047
|
}
|
|
13077
13048
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13078
13049
|
progress.phase("loading play definition");
|
|
13079
|
-
return
|
|
13050
|
+
return _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
13080
13051
|
"cli.play_load_definition",
|
|
13081
13052
|
{ targetKind: "name", playName, skipped: false },
|
|
13082
13053
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13083
13054
|
command: "run"
|
|
13084
13055
|
})
|
|
13085
13056
|
);
|
|
13086
|
-
})() : (
|
|
13057
|
+
})() : (_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
13087
13058
|
phase: "cli.play_load_definition",
|
|
13088
13059
|
ms: 0,
|
|
13089
13060
|
ok: true,
|
|
@@ -13092,7 +13063,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13092
13063
|
skipped: true
|
|
13093
13064
|
}), null);
|
|
13094
13065
|
progress.phase("selecting revision");
|
|
13095
|
-
const selectedRevisionId = await
|
|
13066
|
+
const selectedRevisionId = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
13096
13067
|
"cli.play_select_revision",
|
|
13097
13068
|
{
|
|
13098
13069
|
targetKind: "name",
|
|
@@ -13113,14 +13084,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13113
13084
|
maxTotalCredits: options.maxTotalCredits
|
|
13114
13085
|
});
|
|
13115
13086
|
const fileInputBindings = playDetail ? [
|
|
13116
|
-
...
|
|
13117
|
-
...
|
|
13087
|
+
..._chunkEQR5O2D2js.fileInputBindingsFromPlaySchema.call(void 0, playDetail.play.inputSchema),
|
|
13088
|
+
..._chunkEQR5O2D2js.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13118
13089
|
] : [];
|
|
13119
13090
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13120
|
-
await
|
|
13091
|
+
await _chunkGKZUGHDKjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13121
13092
|
cliAdmission = false;
|
|
13122
13093
|
}
|
|
13123
|
-
const stagedFileInputs = await
|
|
13094
|
+
const stagedFileInputs = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
13124
13095
|
"cli.play_stage_inputs",
|
|
13125
13096
|
{
|
|
13126
13097
|
targetKind: "name",
|
|
@@ -13143,7 +13114,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13143
13114
|
const testPolicyOverrides = {
|
|
13144
13115
|
...options.debugMapLatency ? { mapLatencyProfile: true } : {}
|
|
13145
13116
|
};
|
|
13146
|
-
const startRequest =
|
|
13117
|
+
const startRequest = _chunkEQR5O2D2js.buildNamedPlayRunRequest.call(void 0, {
|
|
13147
13118
|
name: playName,
|
|
13148
13119
|
revisionId: selectedRevisionId,
|
|
13149
13120
|
runtimeInput,
|
|
@@ -13164,7 +13135,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13164
13135
|
});
|
|
13165
13136
|
if (options.watch) {
|
|
13166
13137
|
progress.phase("starting run");
|
|
13167
|
-
const finalStatus = await
|
|
13138
|
+
const finalStatus = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
13168
13139
|
"cli.play_start_watch",
|
|
13169
13140
|
{ targetKind: "name", playName },
|
|
13170
13141
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13178,9 +13149,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13178
13149
|
waitTimeoutMs: options.waitTimeoutMs,
|
|
13179
13150
|
open: options.open,
|
|
13180
13151
|
progress,
|
|
13181
|
-
onRunStarted: _optionalChain([hooks, 'optionalAccess',
|
|
13182
|
-
onSubmission: _optionalChain([hooks, 'optionalAccess',
|
|
13183
|
-
onRunAdmitted: _optionalChain([hooks, 'optionalAccess',
|
|
13152
|
+
onRunStarted: _optionalChain([hooks, 'optionalAccess', _502 => _502.onRunStarted]),
|
|
13153
|
+
onSubmission: _optionalChain([hooks, 'optionalAccess', _503 => _503.onSubmission]),
|
|
13154
|
+
onRunAdmitted: _optionalChain([hooks, 'optionalAccess', _504 => _504.onRunAdmitted]),
|
|
13184
13155
|
maintenancePolicy: options.maintenancePolicy,
|
|
13185
13156
|
...!options.runIdFile || options.fullJson ? { fullJson: options.fullJson } : {},
|
|
13186
13157
|
...cliAdmission ? {
|
|
@@ -13213,8 +13184,8 @@ async function handleNamedRun(options, hooks) {
|
|
|
13213
13184
|
options,
|
|
13214
13185
|
_nullishCoalesce(finalStatus.revisionId, () => ( selectedRevisionId))
|
|
13215
13186
|
);
|
|
13216
|
-
_optionalChain([hooks, 'optionalAccess',
|
|
13217
|
-
if (_optionalChain([hooks, 'optionalAccess',
|
|
13187
|
+
_optionalChain([hooks, 'optionalAccess', _505 => _505.onTerminalStatus, 'optionalCall', _506 => _506(outputStatus)]);
|
|
13188
|
+
if (_optionalChain([hooks, 'optionalAccess', _507 => _507.writeResult])) {
|
|
13218
13189
|
await hooks.writeResult(client, outputStatus);
|
|
13219
13190
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13220
13191
|
}
|
|
@@ -13229,17 +13200,17 @@ async function handleNamedRun(options, hooks) {
|
|
|
13229
13200
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13230
13201
|
}
|
|
13231
13202
|
progress.phase("starting run");
|
|
13232
|
-
const started = await
|
|
13203
|
+
const started = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
13233
13204
|
"cli.play_start_unwatched",
|
|
13234
13205
|
{ targetKind: "name", playName },
|
|
13235
|
-
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess',
|
|
13206
|
+
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _508 => _508.onSubmission]) }).catch(async (error) => {
|
|
13236
13207
|
throw await normalizePlayStartError(client, error, playName, {
|
|
13237
13208
|
suggestMissingPlay: true
|
|
13238
13209
|
});
|
|
13239
13210
|
})
|
|
13240
13211
|
);
|
|
13241
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13242
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13212
|
+
await _optionalChain([hooks, 'optionalAccess', _509 => _509.onRunStarted, 'optionalCall', _510 => _510(started.workflowId)]);
|
|
13213
|
+
await _optionalChain([hooks, 'optionalAccess', _511 => _511.onRunAdmitted, 'optionalCall', _512 => _512(started.workflowId)]);
|
|
13243
13214
|
const resolvedDashboardUrl = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
|
|
13244
13215
|
openPlayDashboard(
|
|
13245
13216
|
resolvePlayRunUrl({
|
|
@@ -13251,7 +13222,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13251
13222
|
);
|
|
13252
13223
|
progress.phase("started run");
|
|
13253
13224
|
progress.complete();
|
|
13254
|
-
if (_optionalChain([hooks, 'optionalAccess',
|
|
13225
|
+
if (_optionalChain([hooks, 'optionalAccess', _513 => _513.writeStarted])) {
|
|
13255
13226
|
hooks.writeStarted(
|
|
13256
13227
|
started.workflowId,
|
|
13257
13228
|
_nullishCoalesce(started.status, () => ( "started")),
|
|
@@ -13284,12 +13255,12 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13284
13255
|
const compact = compactPlayStatus(status);
|
|
13285
13256
|
const errors = Array.isArray(compact.errors) ? compact.errors : [];
|
|
13286
13257
|
const error = status.status === "failed" ? _nullishCoalesce(errors[0], () => ( {
|
|
13287
|
-
message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access',
|
|
13258
|
+
message: _nullishCoalesce(_nullishCoalesce(compact.error, () => ( _optionalChain([status, 'access', _514 => _514.progress, 'optionalAccess', _515 => _515.error]))), () => ( "Play failed. Inspect the run for details."))
|
|
13288
13259
|
})) : null;
|
|
13289
13260
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13290
|
-
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access',
|
|
13261
|
+
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _516 => _516.exec, 'call', _517 => _517(status.runId), 'optionalAccess', _518 => _518[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13291
13262
|
if (!terminal) {
|
|
13292
|
-
|
|
13263
|
+
_chunkUTG3STCRjs.writeExecutionOutput.call(void 0,
|
|
13293
13264
|
{
|
|
13294
13265
|
id: status.runId,
|
|
13295
13266
|
status: status.status,
|
|
@@ -13353,11 +13324,11 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13353
13324
|
Object.entries(handle).filter(([key]) => source !== "result" || key !== "_metadata").map(([key, child]) => [key, materialize(child, `${source}.${key}`)])
|
|
13354
13325
|
);
|
|
13355
13326
|
};
|
|
13356
|
-
const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call',
|
|
13327
|
+
const packagedOutputs = readRecord(_optionalChain([getPlayRunPackage, 'call', _519 => _519(status), 'optionalAccess', _520 => _520.outputs]));
|
|
13357
13328
|
const returned = status.result !== void 0 ? status.result : packagedOutputs ? Object.fromEntries(
|
|
13358
13329
|
Object.entries(packagedOutputs).map(([key, value]) => [
|
|
13359
13330
|
key,
|
|
13360
|
-
_optionalChain([readRecord, 'call',
|
|
13331
|
+
_optionalChain([readRecord, 'call', _521 => _521(value), 'optionalAccess', _522 => _522.kind]) === "value" ? _optionalChain([readRecord, 'call', _523 => _523(value), 'optionalAccess', _524 => _524.value]) : value
|
|
13361
13332
|
])
|
|
13362
13333
|
) : null;
|
|
13363
13334
|
let data = materialize(returned);
|
|
@@ -13369,10 +13340,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13369
13340
|
};
|
|
13370
13341
|
}
|
|
13371
13342
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13372
|
-
const allCollections =
|
|
13343
|
+
const allCollections = _chunkUTG3STCRjs.outputCollections.call(void 0, data).map(
|
|
13373
13344
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13374
13345
|
);
|
|
13375
|
-
|
|
13346
|
+
_chunkUTG3STCRjs.writeExecutionOutput.call(void 0,
|
|
13376
13347
|
{
|
|
13377
13348
|
id: status.runId,
|
|
13378
13349
|
status: status.status,
|
|
@@ -13380,7 +13351,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13380
13351
|
...allCollections.length ? { collections: allCollections } : {},
|
|
13381
13352
|
complete: allCollections.every((c) => c.complete === true) ? true : allCollections.some((c) => c.complete === false) ? false : null,
|
|
13382
13353
|
error,
|
|
13383
|
-
credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access',
|
|
13354
|
+
credits: _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _525 => _525.billing, 'optionalAccess', _526 => _526.totalCredits]))), () => ( null)),
|
|
13384
13355
|
...playName ? { page: _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
|
|
13385
13356
|
warnings: [
|
|
13386
13357
|
...buildRunWarnings(status, null),
|
|
@@ -13393,7 +13364,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13393
13364
|
}
|
|
13394
13365
|
var TOOL_EXECUTION_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
13395
13366
|
async function handlePlayRun(args, hooks) {
|
|
13396
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13367
|
+
const parsedOptions = Array.isArray(args) ? _chunkPHVRS56Fjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13397
13368
|
const options = parsedOptions.runIdFile ? {
|
|
13398
13369
|
...parsedOptions,
|
|
13399
13370
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13410,7 +13381,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13410
13381
|
JSON.stringify({
|
|
13411
13382
|
version: 1,
|
|
13412
13383
|
admissionState: "submitted_unknown",
|
|
13413
|
-
baseUrl: new (0,
|
|
13384
|
+
baseUrl: new (0, _chunk5GK6J7MHjs.DeeplineClient)().baseUrl,
|
|
13414
13385
|
...intent
|
|
13415
13386
|
})
|
|
13416
13387
|
);
|
|
@@ -13422,7 +13393,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13422
13393
|
} finally {
|
|
13423
13394
|
await removeRunIdTempFile(tempPath);
|
|
13424
13395
|
}
|
|
13425
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13396
|
+
await _optionalChain([hooks, 'optionalAccess', _527 => _527.onSubmission, 'optionalCall', _528 => _528(intent)]);
|
|
13426
13397
|
},
|
|
13427
13398
|
onRunStarted: async (runId) => {
|
|
13428
13399
|
try {
|
|
@@ -13433,7 +13404,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13433
13404
|
{ cause: error }
|
|
13434
13405
|
);
|
|
13435
13406
|
}
|
|
13436
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13407
|
+
await _optionalChain([hooks, 'optionalAccess', _529 => _529.onRunStarted, 'optionalCall', _530 => _530(runId)]);
|
|
13437
13408
|
},
|
|
13438
13409
|
onRunAdmitted: async (runId) => {
|
|
13439
13410
|
try {
|
|
@@ -13446,7 +13417,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13446
13417
|
{ cause: error }
|
|
13447
13418
|
);
|
|
13448
13419
|
}
|
|
13449
|
-
await _optionalChain([hooks, 'optionalAccess',
|
|
13420
|
+
await _optionalChain([hooks, 'optionalAccess', _531 => _531.onRunAdmitted, 'optionalCall', _532 => _532(runId)]);
|
|
13450
13421
|
}
|
|
13451
13422
|
} : hooks;
|
|
13452
13423
|
if (options.target.kind === "file") {
|
|
@@ -13525,10 +13496,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13525
13496
|
...buildRunActivityTextLines(run),
|
|
13526
13497
|
...buildRunStatusEvidenceTextLines(overview)
|
|
13527
13498
|
];
|
|
13528
|
-
if (_optionalChain([overview, 'access',
|
|
13499
|
+
if (_optionalChain([overview, 'access', _533 => _533.runStatus, 'optionalAccess', _534 => _534.available]) === false)
|
|
13529
13500
|
lines.push(` call progress: unavailable (${overview.runStatus.reason})`);
|
|
13530
|
-
const work = readRecord(_optionalChain([readRecord, 'call',
|
|
13531
|
-
if (work && !_optionalChain([overview, 'access',
|
|
13501
|
+
const work = readRecord(_optionalChain([readRecord, 'call', _535 => _535(run), 'optionalAccess', _536 => _536.work]));
|
|
13502
|
+
if (work && !_optionalChain([overview, 'access', _537 => _537.runStatus, 'optionalAccess', _538 => _538.available]))
|
|
13532
13503
|
lines.push(
|
|
13533
13504
|
` calls (${_nullishCoalesce(work.scope, () => ( "attempt scope unknown"))}): ${formatObservedRunCounter({ value: work.logicalCalls, confirmed: true })} logical, ${formatObservedRunCounter({ value: work.providerRequests, confirmed: true })} provider requests`
|
|
13534
13505
|
);
|
|
@@ -13579,7 +13550,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13579
13550
|
...overview.failedLogs.warning ? [`warning: ${overview.failedLogs.warning}`] : [],
|
|
13580
13551
|
...overview.failedLogs.logsTruncated ? ["Older log bodies were not retained."] : [],
|
|
13581
13552
|
...overview.failedLogs.entries,
|
|
13582
|
-
..._optionalChain([overview, 'access',
|
|
13553
|
+
..._optionalChain([overview, 'access', _539 => _539.failedLogs, 'access', _540 => _540.next, 'optionalAccess', _541 => _541.logs]) ? [`More logs: ${overview.failedLogs.next.logs}`] : []
|
|
13583
13554
|
]
|
|
13584
13555
|
});
|
|
13585
13556
|
sections.push({
|
|
@@ -13639,7 +13610,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13639
13610
|
);
|
|
13640
13611
|
return `${lines.join("\n")}
|
|
13641
13612
|
|
|
13642
|
-
${
|
|
13613
|
+
${_chunkZL4Q4T3Gjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13643
13614
|
}
|
|
13644
13615
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13645
13616
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13650,7 +13621,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13650
13621
|
const progressTimer = setInterval(() => {
|
|
13651
13622
|
console.error(`[${command}] ${stage} still running after ${elapsedMs()}ms`);
|
|
13652
13623
|
}, RUN_READ_TIMING_PROGRESS_INTERVAL_MS);
|
|
13653
|
-
_optionalChain([progressTimer, 'access',
|
|
13624
|
+
_optionalChain([progressTimer, 'access', _542 => _542.unref, 'optionalCall', _543 => _543()]);
|
|
13654
13625
|
try {
|
|
13655
13626
|
const result = await action();
|
|
13656
13627
|
console.error(`[${command}] ${stage} completed in ${elapsedMs()}ms`);
|
|
@@ -13663,7 +13634,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13663
13634
|
}
|
|
13664
13635
|
}
|
|
13665
13636
|
async function handleRunGet(args) {
|
|
13666
|
-
const selection =
|
|
13637
|
+
const selection = _chunkZL4Q4T3Gjs.parseJsonFields.call(void 0,
|
|
13667
13638
|
args,
|
|
13668
13639
|
args.includes("--config") ? "config" : "get"
|
|
13669
13640
|
);
|
|
@@ -13676,7 +13647,7 @@ async function handleRunGet(args) {
|
|
|
13676
13647
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13677
13648
|
return 1;
|
|
13678
13649
|
}
|
|
13679
|
-
const client = new (0,
|
|
13650
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
13680
13651
|
const timing = args.includes("--timing");
|
|
13681
13652
|
const web = args.includes("--web");
|
|
13682
13653
|
if (web || args.includes("--web-url")) {
|
|
@@ -13694,8 +13665,8 @@ async function handleRunGet(args) {
|
|
|
13694
13665
|
const dashboardUrl2 = _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13695
13666
|
const runUrl2 = _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
13696
13667
|
if (web) {
|
|
13697
|
-
const opened =
|
|
13698
|
-
|
|
13668
|
+
const opened = _chunkZL4Q4T3Gjs.openInBrowser.call(void 0, runUrl2);
|
|
13669
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
13699
13670
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
13700
13671
|
{
|
|
13701
13672
|
json: args.includes("--json"),
|
|
@@ -13706,7 +13677,7 @@ async function handleRunGet(args) {
|
|
|
13706
13677
|
);
|
|
13707
13678
|
return 0;
|
|
13708
13679
|
}
|
|
13709
|
-
|
|
13680
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
13710
13681
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
13711
13682
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
13712
13683
|
` }
|
|
@@ -13731,7 +13702,7 @@ async function handleRunGet(args) {
|
|
|
13731
13702
|
"This server does not support recorded configuration reads."
|
|
13732
13703
|
);
|
|
13733
13704
|
}
|
|
13734
|
-
|
|
13705
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
13735
13706
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13736
13707
|
{ json: true, fields: selection.fields }
|
|
13737
13708
|
);
|
|
@@ -13744,7 +13715,7 @@ async function handleRunGet(args) {
|
|
|
13744
13715
|
timing,
|
|
13745
13716
|
() => client.getRunInput(runId)
|
|
13746
13717
|
);
|
|
13747
|
-
|
|
13718
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13748
13719
|
return 0;
|
|
13749
13720
|
}
|
|
13750
13721
|
const full = args.includes("--full");
|
|
@@ -13757,7 +13728,7 @@ async function handleRunGet(args) {
|
|
|
13757
13728
|
failedLogs: args.includes("--log-failed")
|
|
13758
13729
|
})
|
|
13759
13730
|
);
|
|
13760
|
-
if (status.package)
|
|
13731
|
+
if (status.package) _chunkUTG3STCRjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13761
13732
|
if (!status.package) {
|
|
13762
13733
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13763
13734
|
"runs get",
|
|
@@ -13771,8 +13742,8 @@ async function handleRunGet(args) {
|
|
|
13771
13742
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13772
13743
|
const legacyDashboardUrl = legacyPlayName ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13773
13744
|
const legacyRunUrl = legacyPlayName ? _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
13774
|
-
if (
|
|
13775
|
-
|
|
13745
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
13746
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
13776
13747
|
{
|
|
13777
13748
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13778
13749
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -13783,7 +13754,7 @@ async function handleRunGet(args) {
|
|
|
13783
13754
|
} else {
|
|
13784
13755
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13785
13756
|
if (legacyRunUrl)
|
|
13786
|
-
|
|
13757
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
13787
13758
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
13788
13759
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
13789
13760
|
` }
|
|
@@ -13813,11 +13784,11 @@ async function handleRunGet(args) {
|
|
|
13813
13784
|
)
|
|
13814
13785
|
]);
|
|
13815
13786
|
const hitLines = formatRunHitsLines(hits);
|
|
13816
|
-
const json =
|
|
13787
|
+
const json = _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args);
|
|
13817
13788
|
const playName = resolveRunPlayName(status, runId);
|
|
13818
13789
|
const dashboardUrl = playName ? _chunkJO5FFSR7js.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13819
13790
|
const runUrl = playName ? _chunkJO5FFSR7js.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
13820
|
-
|
|
13791
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
13821
13792
|
{
|
|
13822
13793
|
...overview,
|
|
13823
13794
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13922,9 +13893,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13922
13893
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13923
13894
|
return 1;
|
|
13924
13895
|
}
|
|
13925
|
-
const status = await new (0,
|
|
13926
|
-
if (
|
|
13927
|
-
|
|
13896
|
+
const status = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().runs.status(runId);
|
|
13897
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
13898
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13928
13899
|
return 0;
|
|
13929
13900
|
}
|
|
13930
13901
|
if (!status.available) {
|
|
@@ -13964,7 +13935,7 @@ async function handleRunsRerun(args) {
|
|
|
13964
13935
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13965
13936
|
return 1;
|
|
13966
13937
|
}
|
|
13967
|
-
const options = { json:
|
|
13938
|
+
const options = { json: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args) };
|
|
13968
13939
|
for (let index = 0; index < args.length; index += 1) {
|
|
13969
13940
|
if (args[index] === "--idempotency-key") {
|
|
13970
13941
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14030,8 +14001,8 @@ ${usage2}
|
|
|
14030
14001
|
Discover Plays: ${next.discover}
|
|
14031
14002
|
Active runs: ${next.running}`
|
|
14032
14003
|
);
|
|
14033
|
-
if (
|
|
14034
|
-
|
|
14004
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
14005
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
14035
14006
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14036
14007
|
{ json: true }
|
|
14037
14008
|
);
|
|
@@ -14046,7 +14017,7 @@ Active runs: ${next.running}`
|
|
|
14046
14017
|
console.error("--offset requires --play.");
|
|
14047
14018
|
return 1;
|
|
14048
14019
|
}
|
|
14049
|
-
const client = new (0,
|
|
14020
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
14050
14021
|
const page = await withRunReadTiming(
|
|
14051
14022
|
"runs list",
|
|
14052
14023
|
"run inventory",
|
|
@@ -14081,7 +14052,7 @@ Active runs: ${next.running}`
|
|
|
14081
14052
|
executionTime: run.executionTime,
|
|
14082
14053
|
billingTotalCredits: run.billingTotalCredits,
|
|
14083
14054
|
billingMaxCreditsPerRun: run.billingMaxCreditsPerRun,
|
|
14084
|
-
playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access',
|
|
14055
|
+
playName: _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(run.playName, () => ( _optionalChain([run, 'access', _544 => _544.memo, 'optionalAccess', _545 => _545.playName]))), () => ( playName)), () => ( null)),
|
|
14085
14056
|
...nodeId ? { nodeObservation: _nullishCoalesce(run.nodeObservation, () => ( null)) } : {}
|
|
14086
14057
|
}));
|
|
14087
14058
|
const lines = runs.length === 0 ? [
|
|
@@ -14113,14 +14084,14 @@ Active runs: ${next.running}`
|
|
|
14113
14084
|
return lines2.join("\n");
|
|
14114
14085
|
});
|
|
14115
14086
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14116
|
-
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${
|
|
14087
|
+
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}${_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14117
14088
|
if (page.hasMore) {
|
|
14118
14089
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14119
14090
|
lines.push(
|
|
14120
14091
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14121
14092
|
);
|
|
14122
14093
|
}
|
|
14123
|
-
|
|
14094
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
14124
14095
|
{
|
|
14125
14096
|
runs,
|
|
14126
14097
|
count: runs.length,
|
|
@@ -14130,11 +14101,11 @@ Active runs: ${next.running}`
|
|
|
14130
14101
|
...page.hasMore !== void 0 ? { has_more: page.hasMore, is_truncated: page.hasMore } : {},
|
|
14131
14102
|
next: {
|
|
14132
14103
|
page: nextPage,
|
|
14133
|
-
get: _optionalChain([runs, 'access',
|
|
14104
|
+
get: _optionalChain([runs, 'access', _546 => _546[0], 'optionalAccess', _547 => _547.id]) ? `deepline runs get ${runs[0].id}` : null
|
|
14134
14105
|
},
|
|
14135
14106
|
render: { sections: [{ title: "runs", lines }] }
|
|
14136
14107
|
},
|
|
14137
|
-
{ json:
|
|
14108
|
+
{ json: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args) }
|
|
14138
14109
|
);
|
|
14139
14110
|
return 0;
|
|
14140
14111
|
}
|
|
@@ -14164,7 +14135,7 @@ async function handleRunTail(args) {
|
|
|
14164
14135
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14165
14136
|
return 1;
|
|
14166
14137
|
}
|
|
14167
|
-
const parsed =
|
|
14138
|
+
const parsed = _chunkAOBAVBSXjs.parseLogLevel.call(void 0, value);
|
|
14168
14139
|
if (!parsed) {
|
|
14169
14140
|
console.error(
|
|
14170
14141
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14202,9 +14173,9 @@ async function handleRunTail(args) {
|
|
|
14202
14173
|
);
|
|
14203
14174
|
return 1;
|
|
14204
14175
|
}
|
|
14205
|
-
const client = new (0,
|
|
14176
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
14206
14177
|
const jsonLines = args.includes("--jsonl");
|
|
14207
|
-
const jsonOutput = !jsonLines &&
|
|
14178
|
+
const jsonOutput = !jsonLines && _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args);
|
|
14208
14179
|
const compact = args.includes("--compact");
|
|
14209
14180
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14210
14181
|
const compactState = {
|
|
@@ -14285,7 +14256,7 @@ async function handleRunLogs(args) {
|
|
|
14285
14256
|
]);
|
|
14286
14257
|
const cursorIndex = args.indexOf("--cursor");
|
|
14287
14258
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14288
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14259
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkAOBAVBSXjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14289
14260
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14290
14261
|
return handleRunEventSearch(args);
|
|
14291
14262
|
}
|
|
@@ -14319,7 +14290,7 @@ async function handleRunLogs(args) {
|
|
|
14319
14290
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14320
14291
|
return 1;
|
|
14321
14292
|
}
|
|
14322
|
-
const parsed =
|
|
14293
|
+
const parsed = _chunkAOBAVBSXjs.parseLogLevel.call(void 0, value);
|
|
14323
14294
|
if (!parsed) {
|
|
14324
14295
|
console.error(
|
|
14325
14296
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14366,12 +14337,12 @@ async function handleRunLogs(args) {
|
|
|
14366
14337
|
);
|
|
14367
14338
|
return 1;
|
|
14368
14339
|
}
|
|
14369
|
-
const client = new (0,
|
|
14340
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
14370
14341
|
if (outPath) {
|
|
14371
14342
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14372
|
-
const logs = result2.entries.filter((line) =>
|
|
14343
|
+
const logs = result2.entries.filter((line) => _chunkAOBAVBSXjs.logLevelReaches.call(void 0, _chunkAOBAVBSXjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkAOBAVBSXjs.classifyLogLine.call(void 0, line).line);
|
|
14373
14344
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14374
|
-
|
|
14345
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
14375
14346
|
{
|
|
14376
14347
|
runId: result2.runId,
|
|
14377
14348
|
log_path: outPath,
|
|
@@ -14394,7 +14365,7 @@ async function handleRunLogs(args) {
|
|
|
14394
14365
|
]
|
|
14395
14366
|
}
|
|
14396
14367
|
},
|
|
14397
|
-
{ json:
|
|
14368
|
+
{ json: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args) }
|
|
14398
14369
|
);
|
|
14399
14370
|
return 0;
|
|
14400
14371
|
}
|
|
@@ -14425,7 +14396,7 @@ async function handleRunLogs(args) {
|
|
|
14425
14396
|
}
|
|
14426
14397
|
};
|
|
14427
14398
|
const text = buildRunLogsText(filteredResult);
|
|
14428
|
-
|
|
14399
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
14429
14400
|
{
|
|
14430
14401
|
runId: result.runId,
|
|
14431
14402
|
totalCount: result.totalCount,
|
|
@@ -14449,7 +14420,7 @@ async function handleRunLogs(args) {
|
|
|
14449
14420
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14450
14421
|
},
|
|
14451
14422
|
{
|
|
14452
|
-
json:
|
|
14423
|
+
json: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args),
|
|
14453
14424
|
text
|
|
14454
14425
|
}
|
|
14455
14426
|
);
|
|
@@ -14473,17 +14444,17 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14473
14444
|
);
|
|
14474
14445
|
}
|
|
14475
14446
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14476
|
-
(entry) =>
|
|
14447
|
+
(entry) => _chunkAOBAVBSXjs.logLevelReaches.call(void 0, _chunkAOBAVBSXjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14477
14448
|
);
|
|
14478
14449
|
const selected = matching.slice(-limit);
|
|
14479
14450
|
const olderMatchesExist = matching.length > selected.length;
|
|
14480
14451
|
return {
|
|
14481
14452
|
entries: selected.map((entry) => entry.line),
|
|
14482
|
-
firstSequence: _nullishCoalesce(_optionalChain([selected, 'access',
|
|
14483
|
-
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access',
|
|
14453
|
+
firstSequence: _nullishCoalesce(_optionalChain([selected, 'access', _548 => _548[0], 'optionalAccess', _549 => _549.seq]), () => ( null)),
|
|
14454
|
+
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _550 => _550.at, 'call', _551 => _551(-1), 'optionalAccess', _552 => _552.seq]), () => ( null)),
|
|
14484
14455
|
truncated: result.truncated || olderMatchesExist,
|
|
14485
14456
|
hasMore: olderMatchesExist,
|
|
14486
|
-
nextCursor: olderMatchesExist ?
|
|
14457
|
+
nextCursor: olderMatchesExist ? _chunkAOBAVBSXjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14487
14458
|
};
|
|
14488
14459
|
}
|
|
14489
14460
|
async function handleRunEventSearch(args) {
|
|
@@ -14550,7 +14521,7 @@ ${usage2}`);
|
|
|
14550
14521
|
namespace,
|
|
14551
14522
|
...backend ? { backend } : {}
|
|
14552
14523
|
} : void 0;
|
|
14553
|
-
const client = new (0,
|
|
14524
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
14554
14525
|
const result = await client.runs.searchEvents({
|
|
14555
14526
|
...runId ? { runId } : {},
|
|
14556
14527
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14622,7 +14593,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14622
14593
|
"--limit",
|
|
14623
14594
|
String(limit)
|
|
14624
14595
|
].join(" ") : null;
|
|
14625
|
-
|
|
14596
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
14626
14597
|
{
|
|
14627
14598
|
events,
|
|
14628
14599
|
nextCursor: result.nextCursor,
|
|
@@ -14633,19 +14604,19 @@ ${renderedDetails}` : ""}`;
|
|
|
14633
14604
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14634
14605
|
},
|
|
14635
14606
|
{
|
|
14636
|
-
json:
|
|
14607
|
+
json: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args),
|
|
14637
14608
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14638
14609
|
}
|
|
14639
14610
|
);
|
|
14640
14611
|
return 0;
|
|
14641
14612
|
}
|
|
14642
14613
|
function buildRunLogsText(result) {
|
|
14643
|
-
const lines = result.entries.map((line) =>
|
|
14614
|
+
const lines = result.entries.map((line) => _chunkAOBAVBSXjs.classifyLogLine.call(void 0, line).line);
|
|
14644
14615
|
if (result.warning) {
|
|
14645
14616
|
if (lines.length > 0) lines.push("");
|
|
14646
14617
|
lines.push(`warning: ${result.warning}`);
|
|
14647
14618
|
lines.push(
|
|
14648
|
-
`retained logs: ${_nullishCoalesce(_optionalChain([result, 'access',
|
|
14619
|
+
`retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _553 => _553.next, 'optionalAccess', _554 => _554.logs]), () => ( `deepline runs logs ${result.runId} --out run.log`))}`
|
|
14649
14620
|
);
|
|
14650
14621
|
}
|
|
14651
14622
|
return `${lines.join("\n")}${lines.length > 0 ? "\n" : ""}`;
|
|
@@ -14674,7 +14645,7 @@ async function handleRunStop(args) {
|
|
|
14674
14645
|
reason = args[++index];
|
|
14675
14646
|
}
|
|
14676
14647
|
}
|
|
14677
|
-
const client = new (0,
|
|
14648
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
14678
14649
|
const result = await client.runs.stop(runId, { reason });
|
|
14679
14650
|
const state = resolveRunStopState(result);
|
|
14680
14651
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14689,7 +14660,7 @@ async function handleRunStop(args) {
|
|
|
14689
14660
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14690
14661
|
`inspect: deepline runs get ${runId} --full`
|
|
14691
14662
|
];
|
|
14692
|
-
|
|
14663
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
14693
14664
|
{
|
|
14694
14665
|
...cancelling,
|
|
14695
14666
|
state,
|
|
@@ -14704,7 +14675,7 @@ async function handleRunStop(args) {
|
|
|
14704
14675
|
]
|
|
14705
14676
|
}
|
|
14706
14677
|
},
|
|
14707
|
-
{ json:
|
|
14678
|
+
{ json: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args) }
|
|
14708
14679
|
);
|
|
14709
14680
|
return 0;
|
|
14710
14681
|
}
|
|
@@ -14721,7 +14692,7 @@ async function handleRunStop(args) {
|
|
|
14721
14692
|
];
|
|
14722
14693
|
process.stderr.write(`${lines2.join("\n")}
|
|
14723
14694
|
`);
|
|
14724
|
-
|
|
14695
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
14725
14696
|
{
|
|
14726
14697
|
...result,
|
|
14727
14698
|
render: {
|
|
@@ -14736,7 +14707,7 @@ async function handleRunStop(args) {
|
|
|
14736
14707
|
]
|
|
14737
14708
|
}
|
|
14738
14709
|
},
|
|
14739
|
-
{ json:
|
|
14710
|
+
{ json: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args) }
|
|
14740
14711
|
);
|
|
14741
14712
|
return 1;
|
|
14742
14713
|
}
|
|
@@ -14747,12 +14718,12 @@ async function handleRunStop(args) {
|
|
|
14747
14718
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14748
14719
|
] : []
|
|
14749
14720
|
];
|
|
14750
|
-
|
|
14721
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
14751
14722
|
{
|
|
14752
14723
|
...result,
|
|
14753
14724
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14754
14725
|
},
|
|
14755
|
-
{ json:
|
|
14726
|
+
{ json: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args) }
|
|
14756
14727
|
);
|
|
14757
14728
|
return 0;
|
|
14758
14729
|
}
|
|
@@ -14802,18 +14773,18 @@ async function handleRunStopAll(args) {
|
|
|
14802
14773
|
reason = args[++index];
|
|
14803
14774
|
}
|
|
14804
14775
|
}
|
|
14805
|
-
const client = new (0,
|
|
14776
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
14806
14777
|
if (dryRun) {
|
|
14807
14778
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14808
14779
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14809
|
-
|
|
14780
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
14810
14781
|
{
|
|
14811
14782
|
...result2,
|
|
14812
14783
|
render: {
|
|
14813
14784
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14814
14785
|
}
|
|
14815
14786
|
},
|
|
14816
|
-
{ json:
|
|
14787
|
+
{ json: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14817
14788
|
` }
|
|
14818
14789
|
);
|
|
14819
14790
|
return 0;
|
|
@@ -14826,17 +14797,17 @@ async function handleRunStopAll(args) {
|
|
|
14826
14797
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14827
14798
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14828
14799
|
];
|
|
14829
|
-
|
|
14800
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
14830
14801
|
{
|
|
14831
14802
|
...result,
|
|
14832
14803
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14833
14804
|
},
|
|
14834
|
-
{ json:
|
|
14805
|
+
{ json: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args) }
|
|
14835
14806
|
);
|
|
14836
14807
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14837
14808
|
}
|
|
14838
14809
|
async function handleRunExport(args) {
|
|
14839
|
-
const selection =
|
|
14810
|
+
const selection = _chunkZL4Q4T3Gjs.parseJsonFields.call(void 0, args, "export");
|
|
14840
14811
|
args = selection.args;
|
|
14841
14812
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--summary full|counts] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
|
|
14842
14813
|
let runId;
|
|
@@ -14907,17 +14878,17 @@ async function handleRunExport(args) {
|
|
|
14907
14878
|
"INVALID_ARGUMENT"
|
|
14908
14879
|
);
|
|
14909
14880
|
}
|
|
14910
|
-
const client = new (0,
|
|
14881
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
14911
14882
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14912
14883
|
assertRunExportStatusIdentity(status, runId);
|
|
14913
14884
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14914
|
-
const progress =
|
|
14885
|
+
const progress = _chunkW7DZ6UGPjs.createCliProgress.call(void 0, !_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args));
|
|
14915
14886
|
try {
|
|
14916
14887
|
await waitForPlayCompletionByWatch({
|
|
14917
14888
|
client,
|
|
14918
14889
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14919
14890
|
workflowId: runId,
|
|
14920
|
-
jsonOutput:
|
|
14891
|
+
jsonOutput: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args),
|
|
14921
14892
|
emitLogs: false,
|
|
14922
14893
|
waitTimeoutMs,
|
|
14923
14894
|
startedAt: Date.now(),
|
|
@@ -14943,26 +14914,26 @@ async function handleRunExport(args) {
|
|
|
14943
14914
|
format,
|
|
14944
14915
|
summary
|
|
14945
14916
|
});
|
|
14946
|
-
const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess',
|
|
14947
|
-
const currentTableNotice = _optionalChain([exportResult, 'optionalAccess',
|
|
14917
|
+
const source = _nullishCoalesce(_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _555 => _555.rowsInfo, 'access', _556 => _556.source]), () => ( datasetPath)), () => ( null));
|
|
14918
|
+
const currentTableNotice = _optionalChain([exportResult, 'optionalAccess', _557 => _557.currentTable]) ? {
|
|
14948
14919
|
code: "CURRENT_SHARED_DATASET",
|
|
14949
14920
|
message: "This export is the current shared dataset and may include writes from another run.",
|
|
14950
14921
|
full_run_output_command: `deepline runs get ${status.runId} --full`
|
|
14951
14922
|
} : null;
|
|
14952
14923
|
const navigation = buildRunNavigation(status);
|
|
14953
|
-
const resolved = _optionalChain([exportResult, 'optionalAccess',
|
|
14924
|
+
const resolved = _optionalChain([exportResult, 'optionalAccess', _558 => _558.datasetInfo]);
|
|
14954
14925
|
const identity = navigation.datasets.find(
|
|
14955
|
-
(dataset) => _optionalChain([resolved, 'optionalAccess',
|
|
14926
|
+
(dataset) => _optionalChain([resolved, 'optionalAccess', _559 => _559.datasetId]) ? dataset.datasetId === resolved.datasetId : dataset.name === _optionalChain([resolved, 'optionalAccess', _560 => _560.tableNamespace])
|
|
14956
14927
|
);
|
|
14957
14928
|
const unambiguousName = identity && !identity.exportUnavailable && navigation.datasets.filter((dataset) => dataset.name === identity.name).length === 1 ? identity.name : void 0;
|
|
14958
14929
|
const exportCommand = runExportRetryCommand(
|
|
14959
14930
|
status.runId,
|
|
14960
14931
|
outPath,
|
|
14961
|
-
_nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess',
|
|
14932
|
+
_nullishCoalesce(_nullishCoalesce(unambiguousName, () => ( datasetPath)), () => ( _optionalChain([exportResult, 'optionalAccess', _561 => _561.datasetPath]))),
|
|
14962
14933
|
{ format, summary }
|
|
14963
14934
|
) + (args.includes("--allow-empty") ? " --allow-empty" : "");
|
|
14964
|
-
const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess',
|
|
14965
|
-
const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess',
|
|
14935
|
+
const fileLocation = format === "json" ? { json_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _562 => _562.path]), () => ( null)) } : { csv_path: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _563 => _563.path]), () => ( null)) };
|
|
14936
|
+
const exportedRowOutcomes = _optionalChain([exportResult, 'optionalAccess', _564 => _564.rowsInfo, 'access', _565 => _565.exportedRowOutcomes]);
|
|
14966
14937
|
const rowFailures = exportedRowOutcomes && exportedRowOutcomes.failed > 0 ? {
|
|
14967
14938
|
count: exportedRowOutcomes.failed,
|
|
14968
14939
|
message: "Failed rows can retain values from stages that completed earlier; those values do not prove the row succeeded.",
|
|
@@ -14982,17 +14953,17 @@ async function handleRunExport(args) {
|
|
|
14982
14953
|
...fileLocation,
|
|
14983
14954
|
format,
|
|
14984
14955
|
source,
|
|
14985
|
-
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess',
|
|
14956
|
+
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _566 => _566.rowsInfo, 'access', _567 => _567.totalRows]), () => ( null)),
|
|
14986
14957
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14987
14958
|
...rowFailures ? { rowFailures } : {},
|
|
14988
|
-
columns:
|
|
14959
|
+
columns: _chunkUTG3STCRjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _568 => _568.rowsInfo, 'access', _569 => _569.columns]), () => ( []))),
|
|
14989
14960
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14990
14961
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14991
14962
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
14992
14963
|
};
|
|
14993
14964
|
const lines = withRunNavigationLines(
|
|
14994
14965
|
[
|
|
14995
|
-
`Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess',
|
|
14966
|
+
`Exported ${status.runId} to ${_nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _570 => _570.path]), () => ( outPath))}`,
|
|
14996
14967
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? [
|
|
14997
14968
|
`Partial export: run is ${status.status}; more rows may be saved.`,
|
|
14998
14969
|
`Export after completion: ${exportCommand} --wait`
|
|
@@ -15019,8 +14990,8 @@ async function handleRunExport(args) {
|
|
|
15019
14990
|
"utf-8"
|
|
15020
14991
|
);
|
|
15021
14992
|
}
|
|
15022
|
-
|
|
15023
|
-
json:
|
|
14993
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, payload, {
|
|
14994
|
+
json: _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args),
|
|
15024
14995
|
fields: selection.fields,
|
|
15025
14996
|
text: `${lines.join("\n")}
|
|
15026
14997
|
`
|
|
@@ -15054,10 +15025,10 @@ async function handlePlayGet(args) {
|
|
|
15054
15025
|
);
|
|
15055
15026
|
return 2;
|
|
15056
15027
|
}
|
|
15057
|
-
const client = new (0,
|
|
15028
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
15058
15029
|
const explicitJson = args.includes("--json");
|
|
15059
15030
|
const sourceOutput = args.includes("--source");
|
|
15060
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
15031
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args);
|
|
15061
15032
|
const requestedRevisionFlags = [
|
|
15062
15033
|
args.includes("--working"),
|
|
15063
15034
|
args.includes("--live"),
|
|
@@ -15110,7 +15081,7 @@ async function handlePlayGet(args) {
|
|
|
15110
15081
|
...includeSource ? { source: sourceSelector } : {}
|
|
15111
15082
|
});
|
|
15112
15083
|
const source = detail.source;
|
|
15113
|
-
const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess',
|
|
15084
|
+
const resolvedSource = _nullishCoalesce(_optionalChain([source, 'optionalAccess', _571 => _571.files, 'access', _572 => _572[source.entryFile]]), () => ( ""));
|
|
15114
15085
|
let materializedFile = null;
|
|
15115
15086
|
try {
|
|
15116
15087
|
materializedFile = outPath && source ? materializeRemotePlaySource({ target, playName, source, outPath }) : null;
|
|
@@ -15120,7 +15091,7 @@ async function handlePlayGet(args) {
|
|
|
15120
15091
|
}
|
|
15121
15092
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15122
15093
|
if (jsonOutput) {
|
|
15123
|
-
|
|
15094
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, {
|
|
15124
15095
|
...detail,
|
|
15125
15096
|
...materializedFile ? {
|
|
15126
15097
|
message: loadedMessage,
|
|
@@ -15161,16 +15132,16 @@ async function handlePlayGet(args) {
|
|
|
15161
15132
|
}
|
|
15162
15133
|
console.log(`Play: ${formatPlayReference(detail.play)}`);
|
|
15163
15134
|
console.log(
|
|
15164
|
-
`Working version: ${_nullishCoalesce(_optionalChain([detail, 'access',
|
|
15135
|
+
`Working version: ${_nullishCoalesce(_optionalChain([detail, 'access', _573 => _573.play, 'access', _574 => _574.workingRevision, 'optionalAccess', _575 => _575.version]), () => ( "\u2014"))}`
|
|
15165
15136
|
);
|
|
15166
|
-
console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access',
|
|
15137
|
+
console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access', _576 => _576.play, 'access', _577 => _577.liveRevision, 'optionalAccess', _578 => _578.version]), () => ( "\u2014"))}`);
|
|
15167
15138
|
if (detail.play.liveRevision) {
|
|
15168
15139
|
console.log(
|
|
15169
15140
|
`Live max credits per run: ${liveMaxCreditsPerRun(detail.play.liveRevision.sourceCode)}`
|
|
15170
15141
|
);
|
|
15171
15142
|
}
|
|
15172
15143
|
console.log(`Draft dirty: ${detail.play.isDraftDirty ? "yes" : "no"}`);
|
|
15173
|
-
if (detail.play.isDraftDirty && _optionalChain([detail, 'access',
|
|
15144
|
+
if (detail.play.isDraftDirty && _optionalChain([detail, 'access', _579 => _579.play, 'access', _580 => _580.liveRevision, 'optionalAccess', _581 => _581.version])) {
|
|
15174
15145
|
console.log(
|
|
15175
15146
|
` Scheduled and named runs continue to use live v${detail.play.liveRevision.version}.`
|
|
15176
15147
|
);
|
|
@@ -15182,7 +15153,7 @@ async function handlePlayGet(args) {
|
|
|
15182
15153
|
console.log(line);
|
|
15183
15154
|
}
|
|
15184
15155
|
console.log(`Updated: ${formatTimestamp(detail.play.updatedAt)}`);
|
|
15185
|
-
console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access',
|
|
15156
|
+
console.log(`Sheet rows: ${_nullishCoalesce(_optionalChain([detail, 'access', _582 => _582.sheetSummary, 'optionalAccess', _583 => _583.stats, 'optionalAccess', _584 => _584.total]), () => ( 0))}`);
|
|
15186
15157
|
if (detail.customerDbUrl) {
|
|
15187
15158
|
console.log(`Customer DB: ${detail.customerDbUrl}`);
|
|
15188
15159
|
}
|
|
@@ -15198,7 +15169,7 @@ async function handlePlayGet(args) {
|
|
|
15198
15169
|
return 0;
|
|
15199
15170
|
}
|
|
15200
15171
|
function formatVersionLine(version) {
|
|
15201
|
-
const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access',
|
|
15172
|
+
const revisionLabel = _nullishCoalesce(_optionalChain([version, 'access', _585 => _585.artifactHash, 'optionalAccess', _586 => _586.slice, 'call', _587 => _587(0, 12)]), () => ( "unknown-revision"));
|
|
15202
15173
|
const state = [
|
|
15203
15174
|
version.isLive ? "live" : null,
|
|
15204
15175
|
version.isWorking ? "working" : null
|
|
@@ -15212,8 +15183,8 @@ async function handlePlayVersions(args) {
|
|
|
15212
15183
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15213
15184
|
return 1;
|
|
15214
15185
|
}
|
|
15215
|
-
const client = new (0,
|
|
15216
|
-
const jsonOutput =
|
|
15186
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
15187
|
+
const jsonOutput = _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args);
|
|
15217
15188
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15218
15189
|
command: "versions"
|
|
15219
15190
|
});
|
|
@@ -15221,7 +15192,7 @@ async function handlePlayVersions(args) {
|
|
|
15221
15192
|
parseReferencedPlayTarget(playName).playName
|
|
15222
15193
|
);
|
|
15223
15194
|
if (jsonOutput) {
|
|
15224
|
-
|
|
15195
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, { versions });
|
|
15225
15196
|
return 0;
|
|
15226
15197
|
}
|
|
15227
15198
|
if (versions.length === 0) {
|
|
@@ -15234,7 +15205,7 @@ async function handlePlayVersions(args) {
|
|
|
15234
15205
|
return 0;
|
|
15235
15206
|
}
|
|
15236
15207
|
function formatPlayCostEstimate(estimate) {
|
|
15237
|
-
const computeSummary = _optionalChain([estimate, 'optionalAccess',
|
|
15208
|
+
const computeSummary = _optionalChain([estimate, 'optionalAccess', _588 => _588.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)` : "";
|
|
15238
15209
|
if (!estimate || estimate.status === "unavailable") {
|
|
15239
15210
|
return `unavailable${estimate ? `: ${estimate.message}${computeSummary}` : ""}`;
|
|
15240
15211
|
}
|
|
@@ -15264,8 +15235,8 @@ async function handlePlayCost(args) {
|
|
|
15264
15235
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
15265
15236
|
return 2;
|
|
15266
15237
|
}
|
|
15267
|
-
const result = await new (0,
|
|
15268
|
-
if (
|
|
15238
|
+
const result = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
15239
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
15269
15240
|
else
|
|
15270
15241
|
console.log(
|
|
15271
15242
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -15273,11 +15244,11 @@ async function handlePlayCost(args) {
|
|
|
15273
15244
|
return 0;
|
|
15274
15245
|
}
|
|
15275
15246
|
async function handlePlayList(args) {
|
|
15276
|
-
const jsonOutput =
|
|
15247
|
+
const jsonOutput = _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args);
|
|
15277
15248
|
const showCost = args.includes("--show-cost");
|
|
15278
|
-
const client = new (0,
|
|
15249
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
15279
15250
|
const categoriesIndex = args.indexOf("--categories");
|
|
15280
|
-
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access',
|
|
15251
|
+
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _589 => _589[categoriesIndex + 1], 'optionalAccess', _590 => _590.trim, 'call', _591 => _591()]) : void 0;
|
|
15281
15252
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
15282
15253
|
if (args.includes("--tag") && tags.length === 0) {
|
|
15283
15254
|
console.error(
|
|
@@ -15298,7 +15269,7 @@ async function handlePlayList(args) {
|
|
|
15298
15269
|
const cursorIndex = args.indexOf("--cursor");
|
|
15299
15270
|
const limit = limitIndex >= 0 ? Number(args[limitIndex + 1]) : void 0;
|
|
15300
15271
|
const cursor = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15301
|
-
if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess',
|
|
15272
|
+
if (limitIndex >= 0 && (!Number.isSafeInteger(limit) || limit < 1) || cursorIndex >= 0 && !_optionalChain([cursor, 'optionalAccess', _592 => _592.trim, 'call', _593 => _593()])) {
|
|
15302
15273
|
console.error("Pass a positive --limit and a non-empty --cursor.");
|
|
15303
15274
|
return 2;
|
|
15304
15275
|
}
|
|
@@ -15339,7 +15310,7 @@ async function handlePlayList(args) {
|
|
|
15339
15310
|
if (play.inputSchema || play.hasInputSchema) {
|
|
15340
15311
|
lines.push(" inputSchema: yes");
|
|
15341
15312
|
}
|
|
15342
|
-
if (_optionalChain([play, 'access',
|
|
15313
|
+
if (_optionalChain([play, 'access', _594 => _594.triggerStatus, 'optionalAccess', _595 => _595.cron])) {
|
|
15343
15314
|
lines.push(
|
|
15344
15315
|
` scheduled execution: ${cronExecutionLabel(play.triggerStatus.cron)}`
|
|
15345
15316
|
);
|
|
@@ -15359,12 +15330,12 @@ async function handlePlayList(args) {
|
|
|
15359
15330
|
} else {
|
|
15360
15331
|
lines.push(" scheduled execution: not configured");
|
|
15361
15332
|
}
|
|
15362
|
-
if (_optionalChain([play, 'access',
|
|
15333
|
+
if (_optionalChain([play, 'access', _596 => _596.triggerStatus, 'optionalAccess', _597 => _597.webhook])) {
|
|
15363
15334
|
lines.push(` webhook: ${play.triggerStatus.webhook}`);
|
|
15364
15335
|
}
|
|
15365
15336
|
if (showCost) {
|
|
15366
15337
|
lines.push(
|
|
15367
|
-
` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access',
|
|
15338
|
+
` cost estimate: ${_nullishCoalesce(_optionalChain([play, 'access', _598 => _598.observedCost, 'optionalAccess', _599 => _599.displayText]), () => ( formatPlayCostEstimate(play.costEstimate)))}`
|
|
15368
15339
|
);
|
|
15369
15340
|
}
|
|
15370
15341
|
lines.push(` run: deepline run ${reference}`);
|
|
@@ -15373,7 +15344,7 @@ async function handlePlayList(args) {
|
|
|
15373
15344
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15374
15345
|
lines.push(`Next page: ${nextPage}`);
|
|
15375
15346
|
}
|
|
15376
|
-
|
|
15347
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
15377
15348
|
{
|
|
15378
15349
|
plays,
|
|
15379
15350
|
count: plays.length,
|
|
@@ -15390,8 +15361,8 @@ async function handlePlayList(args) {
|
|
|
15390
15361
|
return 0;
|
|
15391
15362
|
}
|
|
15392
15363
|
async function handlePlayPin(args, pinned) {
|
|
15393
|
-
const target = _optionalChain([args, 'access',
|
|
15394
|
-
const jsonOutput =
|
|
15364
|
+
const target = _optionalChain([args, 'access', _600 => _600.find, 'call', _601 => _601((arg) => !arg.startsWith("-")), 'optionalAccess', _602 => _602.trim, 'call', _603 => _603()]);
|
|
15365
|
+
const jsonOutput = _chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args);
|
|
15395
15366
|
const dryRun = args.includes("--dry-run");
|
|
15396
15367
|
if (!target) {
|
|
15397
15368
|
console.error(
|
|
@@ -15409,11 +15380,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15409
15380
|
const name = parsedTarget.playName;
|
|
15410
15381
|
const plan = { name, pinned, dryRun };
|
|
15411
15382
|
if (dryRun) {
|
|
15412
|
-
|
|
15383
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, plan);
|
|
15413
15384
|
return 0;
|
|
15414
15385
|
}
|
|
15415
|
-
const result = await new (0,
|
|
15416
|
-
if (jsonOutput)
|
|
15386
|
+
const result = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15387
|
+
if (jsonOutput) _chunkZL4Q4T3Gjs.printCompactJson.call(void 0, result);
|
|
15417
15388
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15418
15389
|
return 0;
|
|
15419
15390
|
}
|
|
@@ -15461,7 +15432,7 @@ function printPlayDescription(play) {
|
|
|
15461
15432
|
console.log(` ${line}`);
|
|
15462
15433
|
}
|
|
15463
15434
|
}
|
|
15464
|
-
if (_optionalChain([play, 'access',
|
|
15435
|
+
if (_optionalChain([play, 'access', _604 => _604.toolCategories, 'optionalAccess', _605 => _605.length])) {
|
|
15465
15436
|
console.log(` Tool categories: ${play.toolCategories.join(", ")}`);
|
|
15466
15437
|
}
|
|
15467
15438
|
if (play.aliases.length > 0) {
|
|
@@ -15506,7 +15477,7 @@ function printPlayDescription(play) {
|
|
|
15506
15477
|
const runtimeLimit = formatPlayRuntimeLimit(play.runtimeLimit);
|
|
15507
15478
|
if (runtimeLimit) {
|
|
15508
15479
|
console.log(
|
|
15509
|
-
` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access',
|
|
15480
|
+
` Runtime limit: ${runtimeLimit} (${_nullishCoalesce(_optionalChain([play, 'access', _606 => _606.runtimeLimit, 'optionalAccess', _607 => _607.source]), () => ( "live"))})`
|
|
15510
15481
|
);
|
|
15511
15482
|
}
|
|
15512
15483
|
printScheduledPlayCapacity(play.activeScheduledPlays);
|
|
@@ -15534,17 +15505,17 @@ function formatPlayGrepMatches(matches) {
|
|
|
15534
15505
|
return matches.map((match) => `${match.field}: ${match.terms.join(", ")}`).join("; ");
|
|
15535
15506
|
}
|
|
15536
15507
|
async function handlePlayGrep(args) {
|
|
15537
|
-
const query = _optionalChain([args, 'access',
|
|
15508
|
+
const query = _optionalChain([args, 'access', _608 => _608[0], 'optionalAccess', _609 => _609.trim, 'call', _610 => _610()]);
|
|
15538
15509
|
if (!query) {
|
|
15539
15510
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15540
15511
|
return 1;
|
|
15541
15512
|
}
|
|
15542
|
-
const client = new (0,
|
|
15513
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
15543
15514
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15544
15515
|
summarizePlayGrepResult
|
|
15545
15516
|
);
|
|
15546
|
-
if (
|
|
15547
|
-
|
|
15517
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
15518
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, {
|
|
15548
15519
|
plays: results,
|
|
15549
15520
|
count: results.length,
|
|
15550
15521
|
query,
|
|
@@ -15558,7 +15529,7 @@ async function handlePlayGrep(args) {
|
|
|
15558
15529
|
`
|
|
15559
15530
|
);
|
|
15560
15531
|
for (const result of results) {
|
|
15561
|
-
console.log(_optionalChain([result, 'access',
|
|
15532
|
+
console.log(_optionalChain([result, 'access', _611 => _611.displayName, 'optionalAccess', _612 => _612.trim, 'call', _613 => _613()]) || result.name);
|
|
15562
15533
|
const matches = formatPlayGrepMatches(result.matches);
|
|
15563
15534
|
if (matches) console.log(` Matched: ${matches}`);
|
|
15564
15535
|
console.log(` Describe: ${result.describe}`);
|
|
@@ -15567,7 +15538,7 @@ async function handlePlayGrep(args) {
|
|
|
15567
15538
|
return 0;
|
|
15568
15539
|
}
|
|
15569
15540
|
async function handlePlayDescribe(args) {
|
|
15570
|
-
const selection =
|
|
15541
|
+
const selection = _chunkZL4Q4T3Gjs.parseJsonFields.call(void 0, args, "describe");
|
|
15571
15542
|
args = selection.args;
|
|
15572
15543
|
const playName = args[0];
|
|
15573
15544
|
if (!playName) {
|
|
@@ -15601,8 +15572,8 @@ async function handlePlayDescribe(args) {
|
|
|
15601
15572
|
`deepline plays check ${playName}`,
|
|
15602
15573
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15603
15574
|
];
|
|
15604
|
-
if (
|
|
15605
|
-
|
|
15575
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
15576
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, {
|
|
15606
15577
|
ok: false,
|
|
15607
15578
|
error: { message },
|
|
15608
15579
|
next
|
|
@@ -15616,7 +15587,7 @@ async function handlePlayDescribe(args) {
|
|
|
15616
15587
|
}
|
|
15617
15588
|
return 2;
|
|
15618
15589
|
}
|
|
15619
|
-
const client = new (0,
|
|
15590
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
15620
15591
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15621
15592
|
command: "describe"
|
|
15622
15593
|
});
|
|
@@ -15626,9 +15597,9 @@ async function handlePlayDescribe(args) {
|
|
|
15626
15597
|
compact: args.includes("--compact")
|
|
15627
15598
|
}
|
|
15628
15599
|
);
|
|
15629
|
-
if (
|
|
15630
|
-
if (selection.fields)
|
|
15631
|
-
else
|
|
15600
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
15601
|
+
if (selection.fields) _chunkZL4Q4T3Gjs.printJson.call(void 0, play, selection.fields);
|
|
15602
|
+
else _chunkZL4Q4T3Gjs.printCompactJson.call(void 0, play);
|
|
15632
15603
|
return 0;
|
|
15633
15604
|
}
|
|
15634
15605
|
printPlayDescription(play);
|
|
@@ -15650,7 +15621,7 @@ async function handlePlaySave(args) {
|
|
|
15650
15621
|
}
|
|
15651
15622
|
let graph;
|
|
15652
15623
|
try {
|
|
15653
|
-
graph = await
|
|
15624
|
+
graph = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
15654
15625
|
"cli.play_save_bundle_graph",
|
|
15655
15626
|
{ targetKind: "file" },
|
|
15656
15627
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15672,7 +15643,7 @@ async function handlePlaySave(args) {
|
|
|
15672
15643
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15673
15644
|
};
|
|
15674
15645
|
if (options.jsonOutput) {
|
|
15675
|
-
|
|
15646
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, result);
|
|
15676
15647
|
} else {
|
|
15677
15648
|
console.error(result.message);
|
|
15678
15649
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15694,7 +15665,7 @@ async function handlePlaySave(args) {
|
|
|
15694
15665
|
};
|
|
15695
15666
|
if (options.dryRun) {
|
|
15696
15667
|
if (options.jsonOutput) {
|
|
15697
|
-
|
|
15668
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, dryRun);
|
|
15698
15669
|
} else {
|
|
15699
15670
|
console.log(`Dry run: ${playName}`);
|
|
15700
15671
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15703,14 +15674,14 @@ async function handlePlaySave(args) {
|
|
|
15703
15674
|
}
|
|
15704
15675
|
return 0;
|
|
15705
15676
|
}
|
|
15706
|
-
const client = new (0,
|
|
15677
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
15707
15678
|
try {
|
|
15708
|
-
await
|
|
15679
|
+
await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
15709
15680
|
"cli.play_save_compile_manifests",
|
|
15710
15681
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15711
15682
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15712
15683
|
);
|
|
15713
|
-
const saved = await
|
|
15684
|
+
const saved = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
15714
15685
|
"cli.play_save_register_draft",
|
|
15715
15686
|
{ targetKind: "file", playName, artifactHash },
|
|
15716
15687
|
() => client.registerPlayArtifact({
|
|
@@ -15739,7 +15710,7 @@ async function handlePlaySave(args) {
|
|
|
15739
15710
|
}
|
|
15740
15711
|
};
|
|
15741
15712
|
if (options.jsonOutput) {
|
|
15742
|
-
|
|
15713
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, result);
|
|
15743
15714
|
} else {
|
|
15744
15715
|
console.log(
|
|
15745
15716
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15765,7 +15736,7 @@ async function handlePlayPublish(args) {
|
|
|
15765
15736
|
}
|
|
15766
15737
|
const { target: playName, useLatest } = options;
|
|
15767
15738
|
let revisionId = options.revisionId;
|
|
15768
|
-
const client = new (0,
|
|
15739
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
15769
15740
|
if (isFileTarget(playName)) {
|
|
15770
15741
|
if (revisionId || useLatest) {
|
|
15771
15742
|
console.error(
|
|
@@ -15775,7 +15746,7 @@ async function handlePlayPublish(args) {
|
|
|
15775
15746
|
}
|
|
15776
15747
|
let graph;
|
|
15777
15748
|
try {
|
|
15778
|
-
graph = await
|
|
15749
|
+
graph = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
15779
15750
|
"cli.play_publish_bundle_graph",
|
|
15780
15751
|
{ targetKind: "file" },
|
|
15781
15752
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15797,7 +15768,7 @@ async function handlePlayPublish(args) {
|
|
|
15797
15768
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15798
15769
|
};
|
|
15799
15770
|
if (options.jsonOutput) {
|
|
15800
|
-
|
|
15771
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, result3);
|
|
15801
15772
|
} else {
|
|
15802
15773
|
console.error(result3.message);
|
|
15803
15774
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15820,7 +15791,7 @@ async function handlePlayPublish(args) {
|
|
|
15820
15791
|
};
|
|
15821
15792
|
if (options.dryRun) {
|
|
15822
15793
|
if (options.jsonOutput) {
|
|
15823
|
-
|
|
15794
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, dryRun);
|
|
15824
15795
|
} else {
|
|
15825
15796
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15826
15797
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15839,12 +15810,12 @@ async function handlePlayPublish(args) {
|
|
|
15839
15810
|
}
|
|
15840
15811
|
}
|
|
15841
15812
|
try {
|
|
15842
|
-
await
|
|
15813
|
+
await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
15843
15814
|
"cli.play_publish_compile_manifests",
|
|
15844
15815
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15845
15816
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15846
15817
|
);
|
|
15847
|
-
await
|
|
15818
|
+
await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
15848
15819
|
"cli.play_publish_imports",
|
|
15849
15820
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15850
15821
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15853,7 +15824,7 @@ async function handlePlayPublish(args) {
|
|
|
15853
15824
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15854
15825
|
return 1;
|
|
15855
15826
|
}
|
|
15856
|
-
const published = await
|
|
15827
|
+
const published = await _chunkQZ7I4NZZjs.traceCliSpan.call(void 0,
|
|
15857
15828
|
"cli.play_publish_register_root",
|
|
15858
15829
|
{
|
|
15859
15830
|
targetKind: "file",
|
|
@@ -15878,17 +15849,17 @@ async function handlePlayPublish(args) {
|
|
|
15878
15849
|
artifactHash,
|
|
15879
15850
|
liveVersion: _nullishCoalesce(published.version, () => ( null)),
|
|
15880
15851
|
revisionId: _nullishCoalesce(published.revisionId, () => ( null)),
|
|
15881
|
-
previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess',
|
|
15882
|
-
previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess',
|
|
15852
|
+
previousLiveVersion: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _614 => _614.version]), () => ( null)),
|
|
15853
|
+
previousArtifactHash: _nullishCoalesce(_optionalChain([previousLive, 'optionalAccess', _615 => _615.artifactHash]), () => ( null)),
|
|
15883
15854
|
sourceBytes: {
|
|
15884
|
-
before: _optionalChain([previousLive, 'optionalAccess',
|
|
15855
|
+
before: _optionalChain([previousLive, 'optionalAccess', _616 => _616.sourceCode]) ? Buffer.byteLength(previousLive.sourceCode, "utf8") : null,
|
|
15885
15856
|
after: Buffer.byteLength(graph.root.sourceCode, "utf8")
|
|
15886
15857
|
},
|
|
15887
15858
|
triggerMetadata: _nullishCoalesce(published.triggerMetadata, () => ( null)),
|
|
15888
15859
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15889
15860
|
};
|
|
15890
15861
|
if (options.jsonOutput) {
|
|
15891
|
-
|
|
15862
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, result2);
|
|
15892
15863
|
} else {
|
|
15893
15864
|
printPublishReceipt({
|
|
15894
15865
|
name: rootPlayName,
|
|
@@ -15919,14 +15890,14 @@ async function handlePlayPublish(args) {
|
|
|
15919
15890
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15920
15891
|
latest: useLatest
|
|
15921
15892
|
};
|
|
15922
|
-
|
|
15893
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, result2);
|
|
15923
15894
|
return 0;
|
|
15924
15895
|
}
|
|
15925
15896
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
15926
15897
|
if (useLatest) {
|
|
15927
15898
|
const versions = await client.listPlayVersions(resolvedName);
|
|
15928
15899
|
const latest = versions[0];
|
|
15929
|
-
if (!_optionalChain([latest, 'optionalAccess',
|
|
15900
|
+
if (!_optionalChain([latest, 'optionalAccess', _617 => _617._id])) {
|
|
15930
15901
|
console.error(`No saved revisions found for ${resolvedName}.`);
|
|
15931
15902
|
return 1;
|
|
15932
15903
|
}
|
|
@@ -15943,7 +15914,7 @@ async function handlePlayPublish(args) {
|
|
|
15943
15914
|
revisionId ? { revisionId } : {}
|
|
15944
15915
|
);
|
|
15945
15916
|
if (options.jsonOutput) {
|
|
15946
|
-
|
|
15917
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, result);
|
|
15947
15918
|
} else {
|
|
15948
15919
|
printPublishReceipt({
|
|
15949
15920
|
name: result.name,
|
|
@@ -15983,7 +15954,7 @@ async function handlePlayDelete(args) {
|
|
|
15983
15954
|
);
|
|
15984
15955
|
return 2;
|
|
15985
15956
|
}
|
|
15986
|
-
const client = new (0,
|
|
15957
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
15987
15958
|
let detail;
|
|
15988
15959
|
try {
|
|
15989
15960
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -16007,8 +15978,8 @@ async function handlePlayDelete(args) {
|
|
|
16007
15978
|
name: resolvedName,
|
|
16008
15979
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
16009
15980
|
};
|
|
16010
|
-
if (
|
|
16011
|
-
|
|
15981
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
15982
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, result2);
|
|
16012
15983
|
} else {
|
|
16013
15984
|
process.stdout.write(
|
|
16014
15985
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16018,8 +15989,8 @@ async function handlePlayDelete(args) {
|
|
|
16018
15989
|
return 0;
|
|
16019
15990
|
}
|
|
16020
15991
|
const result = await client.deletePlay(resolvedName);
|
|
16021
|
-
if (
|
|
16022
|
-
|
|
15992
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
15993
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, result);
|
|
16023
15994
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16024
15995
|
}
|
|
16025
15996
|
if (result.alreadyArchived) {
|
|
@@ -16058,13 +16029,13 @@ async function handlePlayRestore(args) {
|
|
|
16058
16029
|
);
|
|
16059
16030
|
return 2;
|
|
16060
16031
|
}
|
|
16061
|
-
const client = new (0,
|
|
16032
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
16062
16033
|
try {
|
|
16063
16034
|
const result = await client.restorePlay(
|
|
16064
16035
|
parseReferencedPlayTarget(playName).playName
|
|
16065
16036
|
);
|
|
16066
|
-
if (
|
|
16067
|
-
|
|
16037
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
16038
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, result);
|
|
16068
16039
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16069
16040
|
}
|
|
16070
16041
|
if (result.alreadyActive) {
|
|
@@ -16191,21 +16162,21 @@ Common commands:
|
|
|
16191
16162
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16192
16163
|
}
|
|
16193
16164
|
};
|
|
16194
|
-
|
|
16165
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0, result2, {
|
|
16195
16166
|
json: options.json,
|
|
16196
16167
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16197
16168
|
`
|
|
16198
16169
|
});
|
|
16199
16170
|
return;
|
|
16200
16171
|
}
|
|
16201
|
-
const client = new (0,
|
|
16172
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
16202
16173
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16203
16174
|
throw new Error(
|
|
16204
16175
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16205
16176
|
);
|
|
16206
16177
|
}
|
|
16207
16178
|
const result = await client.startPlayRun(saved.request);
|
|
16208
|
-
|
|
16179
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
16209
16180
|
{ ...result },
|
|
16210
16181
|
{
|
|
16211
16182
|
json: options.json,
|
|
@@ -16241,7 +16212,7 @@ Examples:
|
|
|
16241
16212
|
).action(async (target, options) => {
|
|
16242
16213
|
process.exitCode = await handlePlayCheck([
|
|
16243
16214
|
target,
|
|
16244
|
-
...
|
|
16215
|
+
..._chunkZL4Q4T3Gjs.jsonFieldArgs.call(void 0, options.json),
|
|
16245
16216
|
...options.full ? ["--full"] : []
|
|
16246
16217
|
]);
|
|
16247
16218
|
});
|
|
@@ -16280,10 +16251,10 @@ Notes:
|
|
|
16280
16251
|
--force-tool-refresh re-executes completed tool receipts and may repeat billed
|
|
16281
16252
|
provider calls. It is independent from --force.
|
|
16282
16253
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16283
|
-
resident-work ceiling. Default: ${
|
|
16254
|
+
resident-work ceiling. Default: ${_chunkPHVRS56Fjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkPHVRS56Fjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16284
16255
|
Provider pacing and sandbox memory limits still apply.
|
|
16285
16256
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16286
|
-
resolvers. Accepted range: 1-${
|
|
16257
|
+
resolvers. Accepted range: 1-${_chunkPHVRS56Fjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16287
16258
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16288
16259
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16289
16260
|
Tool calls that would exceed it are denied.
|
|
@@ -16397,10 +16368,10 @@ Examples:
|
|
|
16397
16368
|
"Refresh completed tool receipts; may repeat billed provider calls"
|
|
16398
16369
|
).option(
|
|
16399
16370
|
"--max-concurrent-external-calls <count>",
|
|
16400
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16371
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkPHVRS56Fjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkPHVRS56Fjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16401
16372
|
).option(
|
|
16402
16373
|
"--max-concurrent-rows <count>",
|
|
16403
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16374
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkPHVRS56Fjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16404
16375
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
|
|
16405
16376
|
"--debug-map-latency",
|
|
16406
16377
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16445,14 +16416,14 @@ JSON field selection:
|
|
|
16445
16416
|
passthroughArgs.shift();
|
|
16446
16417
|
}
|
|
16447
16418
|
const exitCode = await handlePlayRun(
|
|
16448
|
-
|
|
16419
|
+
_chunkPHVRS56Fjs.resolvePlayRunCliOptions.call(void 0,
|
|
16449
16420
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16450
16421
|
options,
|
|
16451
16422
|
passthroughArgs,
|
|
16452
|
-
|
|
16423
|
+
_chunkQZ7I4NZZjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16453
16424
|
)
|
|
16454
16425
|
);
|
|
16455
|
-
|
|
16426
|
+
_chunkQZ7I4NZZjs.recordCliTrace.call(void 0, {
|
|
16456
16427
|
phase: "cli.play_command_exit",
|
|
16457
16428
|
exitCode
|
|
16458
16429
|
});
|
|
@@ -16501,9 +16472,9 @@ Examples:
|
|
|
16501
16472
|
const limit = Number(options.historyLimit);
|
|
16502
16473
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16503
16474
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16504
|
-
const client = new (0,
|
|
16475
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
16505
16476
|
if (options.binding) {
|
|
16506
|
-
|
|
16477
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0,
|
|
16507
16478
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16508
16479
|
);
|
|
16509
16480
|
return;
|
|
@@ -16511,7 +16482,7 @@ Examples:
|
|
|
16511
16482
|
const result = await client.listPlayTriggerInventory({
|
|
16512
16483
|
cursor: options.cursor
|
|
16513
16484
|
});
|
|
16514
|
-
|
|
16485
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, {
|
|
16515
16486
|
...result,
|
|
16516
16487
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16517
16488
|
});
|
|
@@ -16570,7 +16541,7 @@ Examples:
|
|
|
16570
16541
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16571
16542
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16572
16543
|
}
|
|
16573
|
-
const result = await new (0,
|
|
16544
|
+
const result = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().getPlaysActivity({
|
|
16574
16545
|
timeZone: options.timeZone,
|
|
16575
16546
|
days,
|
|
16576
16547
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16584,7 +16555,7 @@ Examples:
|
|
|
16584
16555
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16585
16556
|
);
|
|
16586
16557
|
}
|
|
16587
|
-
|
|
16558
|
+
_chunkZL4Q4T3Gjs.printCommandEnvelope.call(void 0,
|
|
16588
16559
|
{ ...result },
|
|
16589
16560
|
{
|
|
16590
16561
|
json: Boolean(options.json),
|
|
@@ -16613,7 +16584,7 @@ Examples:
|
|
|
16613
16584
|
false
|
|
16614
16585
|
);
|
|
16615
16586
|
});
|
|
16616
|
-
|
|
16587
|
+
_chunkJU4LIA2Tjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16617
16588
|
play,
|
|
16618
16589
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16619
16590
|
);
|
|
@@ -16654,9 +16625,9 @@ Examples:
|
|
|
16654
16625
|
"--json [fields]",
|
|
16655
16626
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16656
16627
|
);
|
|
16657
|
-
|
|
16628
|
+
_chunkUTG3STCRjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16658
16629
|
async (target, options) => {
|
|
16659
|
-
const ownView = () => handlePlayDescribe(
|
|
16630
|
+
const ownView = () => handlePlayDescribe(_chunkZL4Q4T3Gjs.describeArgs.call(void 0, target, options));
|
|
16660
16631
|
const [flagText] = [options.json].filter(
|
|
16661
16632
|
(value) => typeof value === "string"
|
|
16662
16633
|
);
|
|
@@ -16667,7 +16638,7 @@ Examples:
|
|
|
16667
16638
|
process.exitCode = await ownView();
|
|
16668
16639
|
return;
|
|
16669
16640
|
}
|
|
16670
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16641
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-KO3OQBIR.js")));
|
|
16671
16642
|
process.exitCode = await describeAnything(
|
|
16672
16643
|
name,
|
|
16673
16644
|
{
|
|
@@ -16785,7 +16756,7 @@ Examples:
|
|
|
16785
16756
|
deepline plays deployments <deployment-id>
|
|
16786
16757
|
`
|
|
16787
16758
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16788
|
-
async (id, options) => id ?
|
|
16759
|
+
async (id, options) => id ? _chunk5YSIHOGVjs.handleDeploymentGet.call(void 0, id, options) : _chunk5YSIHOGVjs.handleDeploymentsList.call(void 0, options)
|
|
16789
16760
|
);
|
|
16790
16761
|
addPublishHelp(
|
|
16791
16762
|
play.command("publish <target>").description(
|
|
@@ -16920,14 +16891,14 @@ Examples:
|
|
|
16920
16891
|
const limit = Number(options.limit);
|
|
16921
16892
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16922
16893
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16923
|
-
const result = await new (0,
|
|
16894
|
+
const result = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().runs.rowHistory({
|
|
16924
16895
|
playName: options.play,
|
|
16925
16896
|
runId,
|
|
16926
16897
|
tableNamespace: options.dataset,
|
|
16927
16898
|
limit,
|
|
16928
16899
|
cursor: options.cursor
|
|
16929
16900
|
});
|
|
16930
|
-
|
|
16901
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, {
|
|
16931
16902
|
...result,
|
|
16932
16903
|
...result.nextCursor ? {
|
|
16933
16904
|
next: `deepline runs rows-history ${_chunkAID3OYVJjs.shellQuote.call(void 0, runId)} --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor)} --json`
|
|
@@ -17005,7 +16976,7 @@ Examples:
|
|
|
17005
16976
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
17006
16977
|
).action(async (runId, options) => {
|
|
17007
16978
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
17008
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16979
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-QMSAA3LC.js")));
|
|
17009
16980
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
17010
16981
|
receiptJson: options.json !== void 0
|
|
17011
16982
|
});
|
|
@@ -17013,7 +16984,7 @@ Examples:
|
|
|
17013
16984
|
}
|
|
17014
16985
|
process.exitCode = await handleRunGet([
|
|
17015
16986
|
runId,
|
|
17016
|
-
...
|
|
16987
|
+
..._chunkZL4Q4T3Gjs.jsonFieldArgs.call(void 0, options.json),
|
|
17017
16988
|
...options.web ? ["--web"] : [],
|
|
17018
16989
|
...options.webUrl ? ["--web-url"] : [],
|
|
17019
16990
|
...options.full ? ["--full"] : [],
|
|
@@ -17304,7 +17275,7 @@ Examples:
|
|
|
17304
17275
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17305
17276
|
...options.wait ? ["--wait"] : [],
|
|
17306
17277
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17307
|
-
...
|
|
17278
|
+
..._chunkZL4Q4T3Gjs.jsonFieldArgs.call(void 0, options.json)
|
|
17308
17279
|
]);
|
|
17309
17280
|
});
|
|
17310
17281
|
const share = play.command("share").description(
|
|
@@ -17445,8 +17416,8 @@ function absolutePublicPlayUrl(path) {
|
|
|
17445
17416
|
}
|
|
17446
17417
|
function shareUrlFields(status) {
|
|
17447
17418
|
return {
|
|
17448
|
-
publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access',
|
|
17449
|
-
canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access',
|
|
17419
|
+
publicUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _618 => _618.share, 'optionalAccess', _619 => _619.publicPath])),
|
|
17420
|
+
canonicalUrl: absolutePublicPlayUrl(_optionalChain([status, 'access', _620 => _620.share, 'optionalAccess', _621 => _621.canonicalPath]))
|
|
17450
17421
|
};
|
|
17451
17422
|
}
|
|
17452
17423
|
function shareStatusForOutput(status) {
|
|
@@ -17470,10 +17441,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17470
17441
|
return 2;
|
|
17471
17442
|
}
|
|
17472
17443
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17473
|
-
const status = await new (0,
|
|
17444
|
+
const status = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().getSharePage(name);
|
|
17474
17445
|
const outputStatus = shareStatusForOutput(status);
|
|
17475
|
-
if (
|
|
17476
|
-
|
|
17446
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
17447
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, outputStatus);
|
|
17477
17448
|
return 0;
|
|
17478
17449
|
}
|
|
17479
17450
|
if (!outputStatus.share) {
|
|
@@ -17512,7 +17483,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17512
17483
|
return 2;
|
|
17513
17484
|
}
|
|
17514
17485
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17515
|
-
const client = new (0,
|
|
17486
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
17516
17487
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17517
17488
|
let resolvedVersion;
|
|
17518
17489
|
if (!revisionId) {
|
|
@@ -17543,8 +17514,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17543
17514
|
);
|
|
17544
17515
|
if (!hasCompleted) {
|
|
17545
17516
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17546
|
-
if (
|
|
17547
|
-
|
|
17517
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
17518
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, {
|
|
17548
17519
|
ok: false,
|
|
17549
17520
|
code: "NO_SUCCESSFUL_RUN",
|
|
17550
17521
|
message,
|
|
@@ -17568,8 +17539,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17568
17539
|
};
|
|
17569
17540
|
if (args.includes("--dry-run")) {
|
|
17570
17541
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17571
|
-
if (
|
|
17572
|
-
|
|
17542
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
17543
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, plan);
|
|
17573
17544
|
} else {
|
|
17574
17545
|
console.log(
|
|
17575
17546
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17579,13 +17550,13 @@ async function handlePlaySharePublish(args) {
|
|
|
17579
17550
|
}
|
|
17580
17551
|
const status = await client.publishSharePage(name, request);
|
|
17581
17552
|
const outputStatus = shareStatusForOutput(status);
|
|
17582
|
-
if (
|
|
17583
|
-
|
|
17553
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
17554
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, outputStatus);
|
|
17584
17555
|
return 0;
|
|
17585
17556
|
}
|
|
17586
17557
|
const urls = shareUrlFields(outputStatus);
|
|
17587
17558
|
console.log(
|
|
17588
|
-
`Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access',
|
|
17559
|
+
`Published ${name}${outputStatus.share ? ` v${outputStatus.share.publishedVersion}` : ""}: ${_nullishCoalesce(_nullishCoalesce(urls.publicUrl, () => ( _optionalChain([outputStatus, 'access', _622 => _622.share, 'optionalAccess', _623 => _623.publicPath]))), () => ( ""))}`
|
|
17589
17560
|
);
|
|
17590
17561
|
if (urls.canonicalUrl && urls.canonicalUrl !== urls.publicUrl) {
|
|
17591
17562
|
console.log(`Version URL: ${urls.canonicalUrl}`);
|
|
@@ -17611,9 +17582,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17611
17582
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17612
17583
|
...seoIndexing ? { seoIndexing } : {}
|
|
17613
17584
|
};
|
|
17614
|
-
const status = await new (0,
|
|
17615
|
-
if (
|
|
17616
|
-
|
|
17585
|
+
const status = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().updateSharePage(name, request);
|
|
17586
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
17587
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, status);
|
|
17617
17588
|
return 0;
|
|
17618
17589
|
}
|
|
17619
17590
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17628,13 +17599,13 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17628
17599
|
return 2;
|
|
17629
17600
|
}
|
|
17630
17601
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17631
|
-
const client = new (0,
|
|
17602
|
+
const client = new (0, _chunk5GK6J7MHjs.DeeplineClient)();
|
|
17632
17603
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17633
17604
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17634
17605
|
if (!revisionId && versionFlag) {
|
|
17635
17606
|
const versions = await client.listPlayVersions(name);
|
|
17636
17607
|
const chosen = versions.find((r) => r.version === Number(versionFlag));
|
|
17637
|
-
if (!_optionalChain([chosen, 'optionalAccess',
|
|
17608
|
+
if (!_optionalChain([chosen, 'optionalAccess', _624 => _624._id])) {
|
|
17638
17609
|
console.error(`Version ${versionFlag} not found for ${name}.`);
|
|
17639
17610
|
return 4;
|
|
17640
17611
|
}
|
|
@@ -17645,12 +17616,12 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17645
17616
|
revisionId ? { revisionId } : {}
|
|
17646
17617
|
);
|
|
17647
17618
|
const outputStatus = shareStatusForOutput(status);
|
|
17648
|
-
if (
|
|
17649
|
-
|
|
17619
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
17620
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, outputStatus);
|
|
17650
17621
|
return 0;
|
|
17651
17622
|
}
|
|
17652
17623
|
const urls = shareUrlFields(outputStatus);
|
|
17653
|
-
const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access',
|
|
17624
|
+
const regeneratedPublishedRevision = !revisionId || _optionalChain([outputStatus, 'access', _625 => _625.share, 'optionalAccess', _626 => _626.publishedRevisionId]) === revisionId;
|
|
17654
17625
|
console.log(
|
|
17655
17626
|
`Regenerated public copy for ${name}${regeneratedPublishedRevision && urls.publicUrl ? `: ${urls.publicUrl}` : "."}`
|
|
17656
17627
|
);
|
|
@@ -17671,9 +17642,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17671
17642
|
return 2;
|
|
17672
17643
|
}
|
|
17673
17644
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17674
|
-
const status = await new (0,
|
|
17675
|
-
if (
|
|
17676
|
-
|
|
17645
|
+
const status = await new (0, _chunk5GK6J7MHjs.DeeplineClient)().unpublishSharePage(name);
|
|
17646
|
+
if (_chunkZL4Q4T3Gjs.argsWantJson.call(void 0, args)) {
|
|
17647
|
+
_chunkZL4Q4T3Gjs.printCompactJson.call(void 0, status);
|
|
17677
17648
|
return 0;
|
|
17678
17649
|
}
|
|
17679
17650
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17749,4 +17720,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17749
17720
|
|
|
17750
17721
|
|
|
17751
17722
|
|
|
17752
|
-
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag =
|
|
17723
|
+
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 = _chunkPHVRS56Fjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkPHVRS56Fjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
|