deepline 0.3.463 → 0.3.464
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/play.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +16 -2
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +98 -0
- package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +353 -52
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +63 -3
- package/dist/cli/{auth-LZLBR4C3.mjs → auth-GMSI6QWR.mjs} +5 -5
- package/dist/cli/auth-P4E7M3AV.js +41 -0
- package/dist/cli/{billing-OTOP5RE4.mjs → billing-6G2RFLM7.mjs} +6 -6
- package/dist/cli/{billing-6TJPNJQD.js → billing-MGH36CNP.js} +77 -77
- package/dist/cli/{chunk-5DRNNC72.js → chunk-2RFTOESC.js} +5 -5
- package/dist/cli/{chunk-NDHJR2WZ.js → chunk-3AIMFE3Z.js} +36 -36
- package/dist/cli/{chunk-S4XQCFES.mjs → chunk-3MKRAI6R.mjs} +5 -5
- package/dist/cli/{chunk-NTLI6P6Y.mjs → chunk-44BEFU62.mjs} +2 -2
- package/dist/cli/{chunk-3BOIOCNX.js → chunk-4XNXFHG6.js} +1 -1
- package/dist/cli/{chunk-F2RHUPVH.mjs → chunk-5CKIO7KA.mjs} +1 -1
- package/dist/cli/{chunk-2ZIRCBYG.js → chunk-5XIGEYYK.js} +6 -6
- package/dist/cli/{chunk-WUMIYOXQ.mjs → chunk-6A7OH2PV.mjs} +2 -2
- package/dist/cli/{chunk-3BVLLJ3H.mjs → chunk-6COF5LIE.mjs} +2 -2
- package/dist/cli/{chunk-O3BJYD6D.mjs → chunk-6E2KNNTD.mjs} +2 -2
- package/dist/cli/{chunk-UIURR26V.mjs → chunk-6KDOO7IM.mjs} +4 -4
- package/dist/cli/{chunk-5LEAXRHV.js → chunk-6P4OYABU.js} +54 -226
- package/dist/cli/chunk-7YDN6AEK.mjs +649 -0
- package/dist/cli/{chunk-UROQDCVW.js → chunk-ACZLDP7L.js} +3 -3
- package/dist/cli/{chunk-UC4SFYNU.js → chunk-BMUDQMYE.js} +6 -6
- package/dist/cli/{chunk-DHXCBITQ.mjs → chunk-CUZVOPPY.mjs} +3 -3
- package/dist/cli/{chunk-CTQ56DXP.mjs → chunk-DO3FSI4C.mjs} +1 -1
- package/dist/cli/{chunk-2NISBXMN.js → chunk-E4QJKJH6.js} +51 -51
- package/dist/cli/{chunk-WUZS2HK6.js → chunk-EQNJUG3N.js} +53 -53
- package/dist/cli/{chunk-CBZP6J3V.js → chunk-FEWZT4RV.js} +21 -21
- package/dist/cli/{chunk-NAPTMYTY.js → chunk-FVAB2JRO.js} +8 -8
- package/dist/cli/{chunk-BGNWI3KH.js → chunk-GVJVBBGV.js} +3 -3
- package/dist/cli/{chunk-GUT7CLOL.mjs → chunk-HGUHBLX5.mjs} +3 -3
- package/dist/cli/{chunk-6PMCRYDA.js → chunk-HIMV32ZX.js} +6 -4
- package/dist/cli/{chunk-MSY22NQW.mjs → chunk-I2TCWIW2.mjs} +44 -216
- package/dist/cli/{chunk-XDWS2JJT.mjs → chunk-J327QVQV.mjs} +1 -1
- package/dist/cli/chunk-JLZKF7EY.js +649 -0
- package/dist/cli/{chunk-FK2HNDCN.js → chunk-K3BARC72.js} +2 -2
- package/dist/cli/{chunk-TIRBDQ3W.js → chunk-K4DVRQTY.js} +16 -16
- package/dist/cli/{chunk-XQCTG5OO.js → chunk-L3U44YVO.js} +5 -5
- package/dist/cli/{chunk-XW2JIYG7.mjs → chunk-M4QVY6RW.mjs} +2 -2
- package/dist/cli/{chunk-I624J4H5.mjs → chunk-MP3O4ISC.mjs} +1 -1
- package/dist/cli/{chunk-3U5EAP6E.mjs → chunk-MQNBOSQP.mjs} +5 -5
- package/dist/cli/{chunk-TKAQR3IB.mjs → chunk-MUQAKLBP.mjs} +1 -1
- package/dist/cli/{chunk-YGGIZ3VT.js → chunk-NI3QFUK7.js} +4 -4
- package/dist/cli/{chunk-BAPTQDLF.mjs → chunk-O4AOYLZE.mjs} +2 -2
- package/dist/cli/{chunk-5LHXOIPT.js → chunk-O4ZMADW4.js} +7 -7
- package/dist/cli/{chunk-7D6X7IXW.mjs → chunk-OA7IIOLW.mjs} +4 -4
- package/dist/cli/{chunk-VPHN2HAL.mjs → chunk-OGCAGZXO.mjs} +6 -4
- package/dist/cli/{chunk-C25QE4CH.mjs → chunk-PPQL5F4P.mjs} +1 -1
- package/dist/cli/{chunk-4YZKBBLZ.mjs → chunk-RFOQRCMW.mjs} +5 -5
- package/dist/cli/{chunk-LYFKBLJI.mjs → chunk-TMVBBGSK.mjs} +1 -1
- package/dist/cli/{chunk-PVY4DPPF.js → chunk-TU3M7UXJ.js} +13 -13
- package/dist/cli/{chunk-VDGTTH7K.mjs → chunk-UM363DQF.mjs} +2 -2
- package/dist/cli/{chunk-VY2GBNTX.js → chunk-UOAHDEAI.js} +9 -9
- package/dist/cli/{chunk-RD6IQ2JY.mjs → chunk-VQHEMZ33.mjs} +1 -1
- package/dist/cli/{chunk-IKWRUNAP.mjs → chunk-VYDOPASG.mjs} +1 -1
- package/dist/cli/{chunk-JVDKZJUH.js → chunk-VZX4P5FT.js} +258 -258
- package/dist/cli/{chunk-ALZBANZI.js → chunk-WLIFUH6W.js} +8 -8
- package/dist/cli/{chunk-7FCYPAPP.js → chunk-X3XJ6ZSJ.js} +2 -2
- package/dist/cli/{chunk-CVQ7N5CV.mjs → chunk-XMDBN2K7.mjs} +11 -11
- package/dist/cli/{chunk-RGOUCIIZ.js → chunk-ZAB6KCZW.js} +3 -3
- package/dist/cli/{chunk-SKU6ECIY.js → chunk-ZIMCLWEW.js} +5 -5
- package/dist/cli/{chunk-7XYDDCQ2.js → chunk-ZQERHPZA.js} +26 -26
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-OK45Z5XQ.mjs → csv-4ZVMBOCK.mjs} +4 -4
- package/dist/cli/{csv-EH5QWR4O.js → csv-W2JPV57R.js} +13 -13
- package/dist/cli/{db-3ESJKETS.js → db-6YNFDHEW.js} +27 -27
- package/dist/cli/{db-6Z5E4HKN.mjs → db-TVK6BLRB.mjs} +6 -6
- package/dist/cli/describe-APW5TWBT.js +48 -0
- package/dist/cli/{describe-PNDQB7YS.mjs → describe-JFN4ECPO.mjs} +20 -20
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-2NTWQFEG.mjs → executions-2FK4FFKE.mjs} +6 -6
- package/dist/cli/{executions-KUOBRX5V.js → executions-J4CAN7RB.js} +8 -8
- package/dist/cli/{feedback-7RPRMSGY.mjs → feedback-EYRRLA2P.mjs} +4 -4
- package/dist/cli/{feedback-UPHAZJ4C.js → feedback-NOO4OM4U.js} +8 -8
- package/dist/cli/{git-SCYP6WSZ.mjs → git-D3Q4JKBC.mjs} +5 -5
- package/dist/cli/git-FPF6DT43.js +25 -0
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-7XMFCVRG.js → legacy-noops-5ZGRKSN3.js} +8 -8
- package/dist/cli/{legacy-noops-A4KYAGI6.mjs → legacy-noops-SUFJWBLZ.mjs} +5 -5
- package/dist/cli/{monitors-NZV6IX5H.js → monitors-3QFJZA6Z.js} +91 -91
- package/dist/cli/{monitors-FLC5J7RI.mjs → monitors-IRDIIR6J.mjs} +7 -7
- package/dist/cli/{org-IZ7UP3XF.js → org-275OJJ7W.js} +68 -68
- package/dist/cli/{org-LUETJ7Z5.mjs → org-2VA2FSMG.mjs} +6 -6
- package/dist/cli/{pages-22ML3O7O.js → pages-SPRBOZRA.js} +17 -17
- package/dist/cli/{pages-EUX5EAGF.mjs → pages-WCUEBFYU.mjs} +6 -6
- package/dist/cli/{play-CDHPAKKM.mjs → play-7UL5H6QU.mjs} +18 -18
- package/dist/cli/{play-USJBQADG.js → play-NMHUWBET.js} +305 -305
- package/dist/cli/{providers-WFEUNPGC.js → providers-72LUJEAT.js} +9 -9
- package/dist/cli/{providers-CCXZ3SQF.mjs → providers-WSCKV557.mjs} +6 -6
- package/dist/cli/{quickstart-ZUULI635.mjs → quickstart-K4LAKJKJ.mjs} +4 -4
- package/dist/cli/{quickstart-O4JSUORZ.js → quickstart-XSUUAE2Y.js} +6 -6
- package/dist/cli/{run-ISDJYJMU.js → run-MLV2CLW7.js} +40 -40
- package/dist/cli/{run-QJ4NX5F5.mjs → run-R2MOXXHH.mjs} +25 -25
- package/dist/cli/search-AYFUV6YV.js +32 -0
- package/dist/cli/{search-IX3XKZJ3.mjs → search-WHJZNWKE.mjs} +7 -7
- package/dist/cli/{secrets-ELQSNCTR.js → secrets-7PXFBOFY.js} +15 -15
- package/dist/cli/{secrets-7VUDXTUZ.mjs → secrets-YGVOFLI5.mjs} +6 -6
- package/dist/cli/{sessions-A3FG3AZX.js → sessions-ASXXZI42.js} +6 -6
- package/dist/cli/{sessions-VOIQ62GB.mjs → sessions-G7I54W4L.mjs} +5 -5
- package/dist/cli/{settings-S6N6EFBG.mjs → settings-4GFO6JYO.mjs} +11 -11
- package/dist/cli/{settings-ZTXQEMZI.js → settings-RTEBMDPC.js} +78 -78
- package/dist/cli/{setup-AYPIK4JE.mjs → setup-4RJGKSDC.mjs} +9 -9
- package/dist/cli/{setup-Y3WOIFLS.js → setup-A6V2MJK7.js} +44 -44
- package/dist/cli/{skills-5SF5QWNI.mjs → skills-432W6EGS.mjs} +7 -7
- package/dist/cli/skills-GOQECD7H.js +31 -0
- package/dist/cli/tools-JXYN7WOE.js +55 -0
- package/dist/cli/{tools-3XNZ4J64.mjs → tools-SABREK3C.mjs} +18 -18
- package/dist/cli/update-BSB4TJER.js +33 -0
- package/dist/cli/{update-3U4OVX5R.mjs → update-F7NO5RDW.mjs} +9 -9
- package/dist/cli/{workflow-2M5JP7SA.mjs → workflow-F4N7CFUX.mjs} +7 -7
- package/dist/cli/{workflow-RM7H7555.js → workflow-TF6YDWTM.js} +17 -17
- package/dist/{client-DTwnz_AW.d.mts → client-ADFHNtFM.d.mts} +1 -1
- package/dist/{client-DS2IWYZF.d.ts → client-BClp2yrq.d.ts} +1 -1
- package/dist/{client-core-B_6HAIBy.d.ts → client-core-BFU73Ttw.d.ts} +1 -1
- package/dist/{client-core-DzBSlY1U.d.mts → client-core-DWLmmJWo.d.mts} +1 -1
- package/dist/{compiler-manifest-Dcyd3-Zd.d.ts → compiler-manifest-Cs17yO-H.d.mts} +321 -3
- package/dist/{compiler-manifest-Dcyd3-Zd.d.mts → compiler-manifest-Cs17yO-H.d.ts} +321 -3
- package/dist/{errors-yQwfgrcX.d.ts → errors-Dee-QpVS.d.ts} +1 -1
- package/dist/{errors-d-sTrZhe.d.mts → errors-qNfvQuRB.d.mts} +1 -1
- package/dist/{index-C6oXchjN.d.mts → index-BTqNNXmC.d.mts} +1 -1
- package/dist/{index-P56zy_z5.d.ts → index-DXTh1Lxe.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +80 -13
- package/dist/index.mjs +76 -9
- package/dist/install-integrity.json +114 -114
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-XPGKBJKB.js +0 -41
- package/dist/cli/chunk-NA4T3B62.js +0 -286
- package/dist/cli/chunk-TXZVVBQZ.mjs +0 -286
- package/dist/cli/describe-QUF7VTTR.js +0 -48
- package/dist/cli/git-UH653WHV.js +0 -25
- package/dist/cli/search-TIFNLRPM.js +0 -32
- package/dist/cli/skills-MWFRMG3H.js +0 -31
- package/dist/cli/tools-XEC4OD3R.js +0 -55
- package/dist/cli/update-DWYEYTZE.js +0 -33
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkUOAHDEAIjs = require('./chunk-UOAHDEAI.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,14 +17,14 @@ var _chunkVY2GBNTXjs = require('./chunk-VY2GBNTX.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkZAB6KCZWjs = require('./chunk-ZAB6KCZW.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkWLIFUH6Wjs = require('./chunk-WLIFUH6W.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkZQERHPZAjs = require('./chunk-ZQERHPZA.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
@@ -52,10 +52,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _chunk2RFTOESCjs = require('./chunk-2RFTOESC.js');
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunkZIMCLWEWjs = require('./chunk-ZIMCLWEW.js');
|
|
59
59
|
require('./chunk-VKKVSFRD.js');
|
|
60
60
|
|
|
61
61
|
|
|
@@ -69,7 +69,7 @@ require('./chunk-VKKVSFRD.js');
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
var
|
|
72
|
+
var _chunkBMUDQMYEjs = require('./chunk-BMUDQMYE.js');
|
|
73
73
|
require('./chunk-E4CABWXL.js');
|
|
74
74
|
|
|
75
75
|
|
|
@@ -89,18 +89,18 @@ require('./chunk-XDVT3GOM.js');
|
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
var
|
|
92
|
+
var _chunk5XIGEYYKjs = require('./chunk-5XIGEYYK.js');
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
99
|
-
require('./chunk-
|
|
98
|
+
var _chunkK3BARC72js = require('./chunk-K3BARC72.js');
|
|
99
|
+
require('./chunk-EQNJUG3N.js');
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
var
|
|
103
|
+
var _chunkACZLDP7Ljs = require('./chunk-ACZLDP7L.js');
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
|
|
@@ -114,17 +114,17 @@ var _chunkUROQDCVWjs = require('./chunk-UROQDCVW.js');
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
var
|
|
118
|
-
require('./chunk-
|
|
117
|
+
var _chunkO4ZMADW4js = require('./chunk-O4ZMADW4.js');
|
|
118
|
+
require('./chunk-GVJVBBGV.js');
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
var
|
|
121
|
+
var _chunkNI3QFUK7js = require('./chunk-NI3QFUK7.js');
|
|
122
122
|
require('./chunk-ALJJRZNJ.js');
|
|
123
123
|
require('./chunk-XNYIZMNQ.js');
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
127
|
-
require('./chunk-
|
|
127
|
+
require('./chunk-4XNXFHG6.js');
|
|
128
128
|
require('./chunk-OG64RBAC.js');
|
|
129
129
|
|
|
130
130
|
|
|
@@ -2106,7 +2106,7 @@ function resolveField(key, command) {
|
|
|
2106
2106
|
function printSettings(result, json, name) {
|
|
2107
2107
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2108
2108
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2109
|
-
|
|
2109
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
2110
2110
|
{
|
|
2111
2111
|
...result,
|
|
2112
2112
|
settings: Object.fromEntries(
|
|
@@ -2150,7 +2150,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2150
2150
|
valueSyntax: field.cli.valueSyntax,
|
|
2151
2151
|
examples: field.cli.examples
|
|
2152
2152
|
}));
|
|
2153
|
-
|
|
2153
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
2154
2154
|
{
|
|
2155
2155
|
fields: descriptions,
|
|
2156
2156
|
render: {
|
|
@@ -2175,7 +2175,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2175
2175
|
async (options, command) => {
|
|
2176
2176
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2177
2177
|
printSettings(
|
|
2178
|
-
await new (0,
|
|
2178
|
+
await new (0, _chunkZIMCLWEWjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2179
2179
|
options.json,
|
|
2180
2180
|
options.name
|
|
2181
2181
|
);
|
|
@@ -2206,7 +2206,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2206
2206
|
);
|
|
2207
2207
|
}
|
|
2208
2208
|
if (options.dryRun) {
|
|
2209
|
-
|
|
2209
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
2210
2210
|
{
|
|
2211
2211
|
dryRun: true,
|
|
2212
2212
|
play,
|
|
@@ -2227,7 +2227,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2227
2227
|
return;
|
|
2228
2228
|
}
|
|
2229
2229
|
printSettings(
|
|
2230
|
-
await new (0,
|
|
2230
|
+
await new (0, _chunkZIMCLWEWjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2231
2231
|
options.json
|
|
2232
2232
|
);
|
|
2233
2233
|
};
|
|
@@ -2253,13 +2253,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2253
2253
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2254
2254
|
{ exitCode: 2 }
|
|
2255
2255
|
);
|
|
2256
|
-
const page = await new (0,
|
|
2256
|
+
const page = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2257
2257
|
root: options.root,
|
|
2258
2258
|
limit,
|
|
2259
2259
|
cursor: options.cursor
|
|
2260
2260
|
});
|
|
2261
2261
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2262
|
-
|
|
2262
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
2263
2263
|
{
|
|
2264
2264
|
...page,
|
|
2265
2265
|
nextCommand,
|
|
@@ -2310,7 +2310,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2310
2310
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2311
2311
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2312
2312
|
};
|
|
2313
|
-
const client = new (0,
|
|
2313
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
2314
2314
|
const paths = [];
|
|
2315
2315
|
let cursor;
|
|
2316
2316
|
do {
|
|
@@ -2372,7 +2372,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2372
2372
|
moved.push(move.playName);
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
|
-
|
|
2375
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
2376
2376
|
{
|
|
2377
2377
|
dryRun: Boolean(options.dryRun),
|
|
2378
2378
|
from: options.from,
|
|
@@ -2500,7 +2500,7 @@ function triggerLines(view) {
|
|
|
2500
2500
|
return lines;
|
|
2501
2501
|
}
|
|
2502
2502
|
function printView(view, json) {
|
|
2503
|
-
|
|
2503
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
2504
2504
|
{
|
|
2505
2505
|
...view,
|
|
2506
2506
|
render: {
|
|
@@ -2513,7 +2513,7 @@ function printView(view, json) {
|
|
|
2513
2513
|
);
|
|
2514
2514
|
}
|
|
2515
2515
|
function printResult(result, json) {
|
|
2516
|
-
|
|
2516
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
2517
2517
|
{
|
|
2518
2518
|
...result,
|
|
2519
2519
|
render: {
|
|
@@ -2543,7 +2543,7 @@ async function mutate(command, options, build) {
|
|
|
2543
2543
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2544
2544
|
}
|
|
2545
2545
|
if (options.dryRun) {
|
|
2546
|
-
|
|
2546
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
2547
2547
|
{
|
|
2548
2548
|
dryRun: true,
|
|
2549
2549
|
play: options.play,
|
|
@@ -2562,7 +2562,7 @@ async function mutate(command, options, build) {
|
|
|
2562
2562
|
return;
|
|
2563
2563
|
}
|
|
2564
2564
|
printResult(
|
|
2565
|
-
await new (0,
|
|
2565
|
+
await new (0, _chunkZIMCLWEWjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2566
2566
|
options.json
|
|
2567
2567
|
);
|
|
2568
2568
|
}
|
|
@@ -2595,7 +2595,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2595
2595
|
}).addHelpText("after", help2);
|
|
2596
2596
|
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
|
|
2597
2597
|
printView(
|
|
2598
|
-
await new (0,
|
|
2598
|
+
await new (0, _chunkZIMCLWEWjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2599
2599
|
options.json
|
|
2600
2600
|
);
|
|
2601
2601
|
});
|
|
@@ -2639,7 +2639,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2639
2639
|
if (options.auth === void 0) {
|
|
2640
2640
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2641
2641
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2642
|
-
const current = await new (0,
|
|
2642
|
+
const current = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2643
2643
|
options.play
|
|
2644
2644
|
);
|
|
2645
2645
|
return {
|
|
@@ -2716,7 +2716,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2716
2716
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2717
2717
|
"runtime.event": "Other event."
|
|
2718
2718
|
};
|
|
2719
|
-
var RUN_LOGS_KIND_HELP =
|
|
2719
|
+
var RUN_LOGS_KIND_HELP = _chunkBMUDQMYEjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2720
2720
|
kind,
|
|
2721
2721
|
description: KIND_DESCRIPTIONS[kind]
|
|
2722
2722
|
}));
|
|
@@ -2853,9 +2853,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2853
2853
|
const args = program.args;
|
|
2854
2854
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2855
2855
|
error.exitCode = 2;
|
|
2856
|
-
if (
|
|
2857
|
-
|
|
2858
|
-
Object.assign(new (0,
|
|
2856
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2857
|
+
_chunkO4ZMADW4js.printJsonError.call(void 0,
|
|
2858
|
+
Object.assign(new (0, _chunkBMUDQMYEjs.RunEventQueryInputError)(error.message), {
|
|
2859
2859
|
exitCode: 2,
|
|
2860
2860
|
retryable: false
|
|
2861
2861
|
})
|
|
@@ -2899,14 +2899,14 @@ function parseQuery(args, resource) {
|
|
|
2899
2899
|
if (VALUE_FLAGS.has(flag)) {
|
|
2900
2900
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2901
2901
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2902
|
-
throw new (0,
|
|
2902
|
+
throw new (0, _chunkBMUDQMYEjs.RunEventQueryInputError)(
|
|
2903
2903
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2904
2904
|
);
|
|
2905
2905
|
}
|
|
2906
2906
|
if (flag === "--sum") sums.push(value);
|
|
2907
2907
|
else {
|
|
2908
2908
|
if (values[flag] !== void 0) {
|
|
2909
|
-
throw new (0,
|
|
2909
|
+
throw new (0, _chunkBMUDQMYEjs.RunEventQueryInputError)(
|
|
2910
2910
|
`${flag} may only be supplied once.`
|
|
2911
2911
|
);
|
|
2912
2912
|
}
|
|
@@ -2920,12 +2920,12 @@ function parseQuery(args, resource) {
|
|
|
2920
2920
|
}
|
|
2921
2921
|
if (arg.startsWith("-")) {
|
|
2922
2922
|
const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
|
|
2923
|
-
throw new (0,
|
|
2923
|
+
throw new (0, _chunkBMUDQMYEjs.RunEventQueryInputError)(
|
|
2924
2924
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2925
2925
|
);
|
|
2926
2926
|
}
|
|
2927
2927
|
if (runId !== void 0) {
|
|
2928
|
-
throw new (0,
|
|
2928
|
+
throw new (0, _chunkBMUDQMYEjs.RunEventQueryInputError)(
|
|
2929
2929
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2930
2930
|
);
|
|
2931
2931
|
}
|
|
@@ -2933,7 +2933,7 @@ function parseQuery(args, resource) {
|
|
|
2933
2933
|
}
|
|
2934
2934
|
if (switches.has("--fields")) {
|
|
2935
2935
|
if (runId !== void 0) {
|
|
2936
|
-
throw new (0,
|
|
2936
|
+
throw new (0, _chunkBMUDQMYEjs.RunEventQueryInputError)(
|
|
2937
2937
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2938
2938
|
);
|
|
2939
2939
|
}
|
|
@@ -2946,18 +2946,18 @@ function parseQuery(args, resource) {
|
|
|
2946
2946
|
)
|
|
2947
2947
|
];
|
|
2948
2948
|
if (incompatible.length) {
|
|
2949
|
-
throw new (0,
|
|
2949
|
+
throw new (0, _chunkBMUDQMYEjs.RunEventQueryInputError)(
|
|
2950
2950
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2951
2951
|
);
|
|
2952
2952
|
}
|
|
2953
2953
|
}
|
|
2954
2954
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2955
|
-
throw new (0,
|
|
2955
|
+
throw new (0, _chunkBMUDQMYEjs.RunEventQueryInputError)(
|
|
2956
2956
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2957
2957
|
);
|
|
2958
2958
|
}
|
|
2959
2959
|
if (sums.length && switches.has("--count")) {
|
|
2960
|
-
throw new (0,
|
|
2960
|
+
throw new (0, _chunkBMUDQMYEjs.RunEventQueryInputError)(
|
|
2961
2961
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2962
2962
|
);
|
|
2963
2963
|
}
|
|
@@ -2965,7 +2965,7 @@ function parseQuery(args, resource) {
|
|
|
2965
2965
|
if (operation === "count") {
|
|
2966
2966
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2967
2967
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2968
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunkBMUDQMYEjs.RunEventQueryInputError)(
|
|
2969
2969
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2970
2970
|
);
|
|
2971
2971
|
}
|
|
@@ -3000,16 +3000,16 @@ function parseQuery(args, resource) {
|
|
|
3000
3000
|
];
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
|
-
const request =
|
|
3003
|
+
const request = _chunkBMUDQMYEjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3004
3004
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3005
3005
|
const backend = values["--runtime-backend"];
|
|
3006
3006
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3007
|
-
throw new (0,
|
|
3007
|
+
throw new (0, _chunkBMUDQMYEjs.RunEventQueryInputError)(
|
|
3008
3008
|
"--runtime-backend must be daytona or modal."
|
|
3009
3009
|
);
|
|
3010
3010
|
}
|
|
3011
3011
|
if (backend && !namespace) {
|
|
3012
|
-
throw new (0,
|
|
3012
|
+
throw new (0, _chunkBMUDQMYEjs.RunEventQueryInputError)(
|
|
3013
3013
|
"--runtime-backend requires --runtime-namespace."
|
|
3014
3014
|
);
|
|
3015
3015
|
}
|
|
@@ -3056,12 +3056,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3056
3056
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3057
3057
|
const record3 = failure;
|
|
3058
3058
|
const status = record3.statusCode;
|
|
3059
|
-
const exitCode = error instanceof
|
|
3059
|
+
const exitCode = error instanceof _chunkBMUDQMYEjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3060
3060
|
const diagnostic = Object.assign(failure, {
|
|
3061
3061
|
exitCode,
|
|
3062
3062
|
retryable: exitCode === 5
|
|
3063
3063
|
});
|
|
3064
|
-
if (
|
|
3064
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) _chunkO4ZMADW4js.printJsonError.call(void 0, diagnostic);
|
|
3065
3065
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3066
3066
|
return exitCode;
|
|
3067
3067
|
}
|
|
@@ -3076,7 +3076,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3076
3076
|
...criteria
|
|
3077
3077
|
} = request;
|
|
3078
3078
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3079
|
-
const client = new (0,
|
|
3079
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
3080
3080
|
let result;
|
|
3081
3081
|
if (request.operation === "fields") {
|
|
3082
3082
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3142,13 +3142,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3142
3142
|
lines.push(`Next page: ${nextPage}`);
|
|
3143
3143
|
}
|
|
3144
3144
|
}
|
|
3145
|
-
|
|
3145
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
3146
3146
|
{
|
|
3147
3147
|
...result,
|
|
3148
3148
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3149
3149
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3150
3150
|
},
|
|
3151
|
-
{ json:
|
|
3151
|
+
{ json: _chunkO4ZMADW4js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3152
3152
|
` }
|
|
3153
3153
|
);
|
|
3154
3154
|
return 0;
|
|
@@ -4067,7 +4067,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4067
4067
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4068
4068
|
);
|
|
4069
4069
|
}
|
|
4070
|
-
const response = await new (0,
|
|
4070
|
+
const response = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4071
4071
|
keys
|
|
4072
4072
|
});
|
|
4073
4073
|
const failed = response.receipts.filter(
|
|
@@ -4079,7 +4079,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4079
4079
|
JSON.stringify(response, null, 2) + "\n",
|
|
4080
4080
|
{ flag: "wx", mode: 384 }
|
|
4081
4081
|
);
|
|
4082
|
-
|
|
4082
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
4083
4083
|
{
|
|
4084
4084
|
runId,
|
|
4085
4085
|
out: options.out,
|
|
@@ -4089,7 +4089,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4089
4089
|
{ json: true }
|
|
4090
4090
|
);
|
|
4091
4091
|
} else {
|
|
4092
|
-
|
|
4092
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4093
4093
|
}
|
|
4094
4094
|
if (failed)
|
|
4095
4095
|
process.exitCode = response.receipts.some(
|
|
@@ -4128,7 +4128,7 @@ includes nextCommand when another page is available.
|
|
|
4128
4128
|
{ exitCode: 2 }
|
|
4129
4129
|
);
|
|
4130
4130
|
}
|
|
4131
|
-
const page = await new (0,
|
|
4131
|
+
const page = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4132
4132
|
launchKey: options.launchKey,
|
|
4133
4133
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4134
4134
|
limit
|
|
@@ -4143,7 +4143,7 @@ includes nextCommand when another page is available.
|
|
|
4143
4143
|
"--limit",
|
|
4144
4144
|
String(limit)
|
|
4145
4145
|
].join(" ") : null;
|
|
4146
|
-
|
|
4146
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
4147
4147
|
{
|
|
4148
4148
|
parentRunId,
|
|
4149
4149
|
launchKey: options.launchKey,
|
|
@@ -4179,7 +4179,7 @@ async function handleRunsHistory(options) {
|
|
|
4179
4179
|
throw new Error("--limit must be a positive integer.");
|
|
4180
4180
|
}
|
|
4181
4181
|
}
|
|
4182
|
-
const page = await new (0,
|
|
4182
|
+
const page = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().runs.history({
|
|
4183
4183
|
cursor: options.cursor,
|
|
4184
4184
|
orgId: options.org,
|
|
4185
4185
|
search: options.search,
|
|
@@ -4195,7 +4195,7 @@ async function handleRunsHistory(options) {
|
|
|
4195
4195
|
);
|
|
4196
4196
|
}
|
|
4197
4197
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4198
|
-
|
|
4198
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
4199
4199
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4200
4200
|
options.json ? { json: true } : {}
|
|
4201
4201
|
);
|
|
@@ -4247,12 +4247,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4247
4247
|
return 1;
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
4250
|
-
const result = await new (0,
|
|
4250
|
+
const result = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().runs.rerun(runId, {
|
|
4251
4251
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4252
4252
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4253
4253
|
});
|
|
4254
|
-
if (
|
|
4255
|
-
|
|
4254
|
+
if (_chunkO4ZMADW4js.shouldEmitJson.call(void 0, options.json)) {
|
|
4255
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4256
4256
|
} else {
|
|
4257
4257
|
console.log(
|
|
4258
4258
|
result.deduplicated === true ? `
|
|
@@ -5071,13 +5071,13 @@ var RunDataset = class _RunDataset {
|
|
|
5071
5071
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5072
5072
|
_fs.writeFileSync.call(void 0,
|
|
5073
5073
|
absolutePath,
|
|
5074
|
-
`${JSON.stringify(
|
|
5074
|
+
`${JSON.stringify(_chunkZAB6KCZWjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5075
5075
|
`,
|
|
5076
5076
|
"utf-8"
|
|
5077
5077
|
);
|
|
5078
5078
|
return absolutePath;
|
|
5079
5079
|
}
|
|
5080
|
-
return
|
|
5080
|
+
return _chunkZAB6KCZWjs.writeRunDatasetCsv.call(void 0, {
|
|
5081
5081
|
rows: this.rows,
|
|
5082
5082
|
columns: this.#info.columns,
|
|
5083
5083
|
outPath
|
|
@@ -5202,7 +5202,7 @@ function stringValue(value) {
|
|
|
5202
5202
|
}
|
|
5203
5203
|
|
|
5204
5204
|
// src/cli/play-check-hints.ts
|
|
5205
|
-
var EXTRACTED_GETTER_ERROR_HINT = "Deepline hint:
|
|
5205
|
+
var EXTRACTED_GETTER_ERROR_HINT = "Deepline hint: result.fields, extractedValues and extractedLists only have the outputs `deepline describe <tool>` lists. Read a declared list or known value as `toolExecutionResult.fields.<name>.value`, and tool-specific fields from `toolExecutionResult.response` using the nesting shown in the response example.";
|
|
5206
5206
|
var DATASET_API_HINT = "Deepline hint: PlayDataset is lazy, durable, and async-only. Use `.count()`, `.first()`, `.at(index)`, `.peek(n)`, `.materialize(limit)`, or async iteration; do not use `.length`, numeric indexing, spread, synchronous iteration, `.rows`, or `.toArray()`.";
|
|
5207
5207
|
var ROW_PROPERTY_HINT = "Deepline hint: this row type only contains fields produced by the CSV/schema and previous map steps. Check source column casing and the exact output field names from earlier steps before scaling.";
|
|
5208
5208
|
var TOOLS_EXECUTE_SIGNATURE_HINT = "Deepline hint: deepline.tools.execute requires a request object: `deepline.tools.execute({ id, tool, input, description })`. The stable `id` is required for logs, metadata, and result-cache identity; terminal cache reuse is based on play, tool, semantic input, auth scope, provider action version, and cache policy. In authoring edition 11, also choose `staleAfterSeconds`: `0` for fresh logical work, a positive integer for the maximum reusable result age in seconds, or `null` for indefinite result reuse.";
|
|
@@ -6797,7 +6797,7 @@ function renderOutcome(outcome) {
|
|
|
6797
6797
|
function printResult2(input) {
|
|
6798
6798
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6799
6799
|
if (failed) process.exitCode = 1;
|
|
6800
|
-
|
|
6800
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
6801
6801
|
{
|
|
6802
6802
|
deployment: { ...input.deployment, status: input.status },
|
|
6803
6803
|
plays: input.outcomes,
|
|
@@ -6822,7 +6822,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6822
6822
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6823
6823
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6824
6824
|
});
|
|
6825
|
-
const { http, config } =
|
|
6825
|
+
const { http, config } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
|
|
6826
6826
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6827
6827
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6828
6828
|
deliveryId,
|
|
@@ -6849,7 +6849,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6849
6849
|
},
|
|
6850
6850
|
{
|
|
6851
6851
|
bundle: bundleDeployPlayFile,
|
|
6852
|
-
fetchImpl:
|
|
6852
|
+
fetchImpl: _chunkNI3QFUK7js.fetchWithDeploymentProtection,
|
|
6853
6853
|
// The plays are already here: "opening" the source is naming it.
|
|
6854
6854
|
openSource: async () => ({
|
|
6855
6855
|
open: async () => ({ repoRoot: root })
|
|
@@ -6975,7 +6975,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6975
6975
|
// src/cli/renderers/local-play-execution.ts
|
|
6976
6976
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6977
6977
|
if (options.dryRun) {
|
|
6978
|
-
|
|
6978
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6979
6979
|
return;
|
|
6980
6980
|
}
|
|
6981
6981
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7147,7 +7147,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7147
7147
|
const startedAt = Date.now();
|
|
7148
7148
|
try {
|
|
7149
7149
|
const result = run();
|
|
7150
|
-
|
|
7150
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
7151
7151
|
phase,
|
|
7152
7152
|
ms: Date.now() - startedAt,
|
|
7153
7153
|
ok: true,
|
|
@@ -7155,7 +7155,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7155
7155
|
});
|
|
7156
7156
|
return result;
|
|
7157
7157
|
} catch (error) {
|
|
7158
|
-
|
|
7158
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
7159
7159
|
phase,
|
|
7160
7160
|
ms: Date.now() - startedAt,
|
|
7161
7161
|
ok: false,
|
|
@@ -7942,7 +7942,7 @@ function playStatusErrorText(status) {
|
|
|
7942
7942
|
function isRetryablePendingStartFailure(status) {
|
|
7943
7943
|
if (status.status !== "failed") return false;
|
|
7944
7944
|
if (status.runId && status.runId !== "pending") return false;
|
|
7945
|
-
return
|
|
7945
|
+
return _chunkBMUDQMYEjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7946
7946
|
}
|
|
7947
7947
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7948
7948
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -7991,13 +7991,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
7991
7991
|
}, _class);
|
|
7992
7992
|
function watchSurfaceReaches(state, provenance, level) {
|
|
7993
7993
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
7994
|
-
if (!
|
|
7994
|
+
if (!_chunkBMUDQMYEjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
7995
7995
|
return false;
|
|
7996
7996
|
}
|
|
7997
|
-
if (
|
|
7997
|
+
if (_chunkBMUDQMYEjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
7998
7998
|
return true;
|
|
7999
7999
|
}
|
|
8000
|
-
return state.verbose === true &&
|
|
8000
|
+
return state.verbose === true && _chunkBMUDQMYEjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8001
8001
|
}
|
|
8002
8002
|
function getEventPayload(event) {
|
|
8003
8003
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8499,7 +8499,7 @@ function resolveRunPlayName(status, runId) {
|
|
|
8499
8499
|
}
|
|
8500
8500
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
8501
8501
|
if (open2 && dashboardUrl) {
|
|
8502
|
-
|
|
8502
|
+
_chunkO4ZMADW4js.openInBrowser.call(void 0, dashboardUrl);
|
|
8503
8503
|
}
|
|
8504
8504
|
}
|
|
8505
8505
|
function printPlayLogLines(input) {
|
|
@@ -8576,7 +8576,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8576
8576
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8577
8577
|
});
|
|
8578
8578
|
} catch (error) {
|
|
8579
|
-
if (
|
|
8579
|
+
if (_chunkBMUDQMYEjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8580
8580
|
return null;
|
|
8581
8581
|
}
|
|
8582
8582
|
throw error;
|
|
@@ -8656,9 +8656,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8656
8656
|
signal: controller.signal,
|
|
8657
8657
|
deferLogs: !input.emitLogs,
|
|
8658
8658
|
omitTerminalLogs: !input.emitLogs,
|
|
8659
|
-
...
|
|
8659
|
+
..._chunkK3BARC72js.isCliTraceEnabled.call(void 0, ) ? {
|
|
8660
8660
|
onPoll: (observation) => {
|
|
8661
|
-
|
|
8661
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
8662
8662
|
phase: "play_watch_poll",
|
|
8663
8663
|
workflowId: input.workflowId,
|
|
8664
8664
|
ms: observation.durationMs,
|
|
@@ -8672,7 +8672,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8672
8672
|
full: input.fullJson,
|
|
8673
8673
|
billing: false,
|
|
8674
8674
|
onStatus: async (status) => {
|
|
8675
|
-
|
|
8675
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
8676
8676
|
phase: "play_watch_terminal_status",
|
|
8677
8677
|
workflowId: input.workflowId,
|
|
8678
8678
|
full: input.fullJson === true
|
|
@@ -8742,7 +8742,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8742
8742
|
});
|
|
8743
8743
|
} catch (error) {
|
|
8744
8744
|
if (!(error instanceof _chunkJKVRBCZLjs.CliPlayAdmissionUnsupportedError)) throw error;
|
|
8745
|
-
await
|
|
8745
|
+
await _chunk5XIGEYYKjs.checkPlayRunCompatibility.call(void 0,
|
|
8746
8746
|
input.client.baseUrl,
|
|
8747
8747
|
input.maintenancePolicy
|
|
8748
8748
|
);
|
|
@@ -8788,7 +8788,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8788
8788
|
}
|
|
8789
8789
|
openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
|
|
8790
8790
|
input.progress.phase("running");
|
|
8791
|
-
|
|
8791
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
8792
8792
|
phase: "cli.play_start_admitted",
|
|
8793
8793
|
ms: Date.now() - startedAt,
|
|
8794
8794
|
ok: true,
|
|
@@ -8805,7 +8805,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8805
8805
|
startedAt,
|
|
8806
8806
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8807
8807
|
});
|
|
8808
|
-
const initialStatus =
|
|
8808
|
+
const initialStatus = _chunkBMUDQMYEjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8809
8809
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8810
8810
|
client: input.client,
|
|
8811
8811
|
status: initialStatus,
|
|
@@ -8813,7 +8813,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8813
8813
|
jsonOutput: input.jsonOutput,
|
|
8814
8814
|
fromDurableStatus: true
|
|
8815
8815
|
});
|
|
8816
|
-
|
|
8816
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
8817
8817
|
phase: "play_watch_terminal_status",
|
|
8818
8818
|
workflowId,
|
|
8819
8819
|
full: true,
|
|
@@ -8857,7 +8857,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8857
8857
|
status = await startAndWaitForPlayCompletionByStreamOnce(pinnedInput);
|
|
8858
8858
|
} catch (error) {
|
|
8859
8859
|
if (error instanceof _chunkJKVRBCZLjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
8860
|
-
await
|
|
8860
|
+
await _chunk5XIGEYYKjs.checkPlayRunCompatibility.call(void 0,
|
|
8861
8861
|
input.client.baseUrl,
|
|
8862
8862
|
input.maintenancePolicy
|
|
8863
8863
|
);
|
|
@@ -8884,7 +8884,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8884
8884
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
8885
8885
|
);
|
|
8886
8886
|
}
|
|
8887
|
-
|
|
8887
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
8888
8888
|
phase: "cli.play_start_stream_retry",
|
|
8889
8889
|
ms: 0,
|
|
8890
8890
|
ok: true,
|
|
@@ -8905,7 +8905,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8905
8905
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
8906
8906
|
);
|
|
8907
8907
|
}
|
|
8908
|
-
|
|
8908
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
8909
8909
|
phase: "cli.play_start_stream_retry",
|
|
8910
8910
|
ms: 0,
|
|
8911
8911
|
ok: true,
|
|
@@ -8949,7 +8949,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
8949
8949
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
8950
8950
|
launchConfirmed = true;
|
|
8951
8951
|
await _optionalChain([input, 'access', _312 => _312.onRunAdmitted, 'optionalCall', _313 => _313(runId)]);
|
|
8952
|
-
|
|
8952
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
8953
8953
|
phase: "cli.play_start_admitted",
|
|
8954
8954
|
ms: Date.now() - startedAt,
|
|
8955
8955
|
ok: true,
|
|
@@ -8983,7 +8983,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
8983
8983
|
full: input.fullJson
|
|
8984
8984
|
});
|
|
8985
8985
|
} catch (error) {
|
|
8986
|
-
if (
|
|
8986
|
+
if (_chunkBMUDQMYEjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
8987
8987
|
return null;
|
|
8988
8988
|
}
|
|
8989
8989
|
throw error;
|
|
@@ -9116,7 +9116,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9116
9116
|
};
|
|
9117
9117
|
}
|
|
9118
9118
|
if (!canonicalTerminal) {
|
|
9119
|
-
|
|
9119
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
9120
9120
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9121
9121
|
ms: Date.now() - startedAt,
|
|
9122
9122
|
ok: true,
|
|
@@ -9137,14 +9137,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9137
9137
|
fromDurableStatus
|
|
9138
9138
|
}) : canonicalTerminal;
|
|
9139
9139
|
if (input.fullJson === true) {
|
|
9140
|
-
|
|
9140
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
9141
9141
|
phase: "play_watch_terminal_status",
|
|
9142
9142
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9143
9143
|
full: true,
|
|
9144
9144
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9145
9145
|
});
|
|
9146
9146
|
}
|
|
9147
|
-
|
|
9147
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
9148
9148
|
phase: "cli.play_start_stream_terminal",
|
|
9149
9149
|
ms: Date.now() - startedAt,
|
|
9150
9150
|
ok: true,
|
|
@@ -9164,7 +9164,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9164
9164
|
clearTimeout(timeout);
|
|
9165
9165
|
}
|
|
9166
9166
|
controller.abort();
|
|
9167
|
-
|
|
9167
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
9168
9168
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9169
9169
|
ms: Date.now() - startedAt,
|
|
9170
9170
|
ok: true,
|
|
@@ -9195,7 +9195,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9195
9195
|
if (timedOut) {
|
|
9196
9196
|
const terminal = await fetchKnownTerminalStatus();
|
|
9197
9197
|
if (terminal) {
|
|
9198
|
-
|
|
9198
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
9199
9199
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9200
9200
|
ms: Date.now() - startedAt,
|
|
9201
9201
|
ok: true,
|
|
@@ -9215,7 +9215,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9215
9215
|
lastPhase
|
|
9216
9216
|
});
|
|
9217
9217
|
}
|
|
9218
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9218
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkBMUDQMYEjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9219
9219
|
if (timeout) {
|
|
9220
9220
|
clearTimeout(timeout);
|
|
9221
9221
|
}
|
|
@@ -9226,7 +9226,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9226
9226
|
`
|
|
9227
9227
|
);
|
|
9228
9228
|
}
|
|
9229
|
-
|
|
9229
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
9230
9230
|
phase: "cli.play_start_stream_reconnect",
|
|
9231
9231
|
ms: Date.now() - startedAt,
|
|
9232
9232
|
ok: true,
|
|
@@ -9253,7 +9253,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9253
9253
|
});
|
|
9254
9254
|
}
|
|
9255
9255
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9256
|
-
|
|
9256
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
9257
9257
|
phase: "cli.play_start_stream_transient_failure",
|
|
9258
9258
|
ms: Date.now() - startedAt,
|
|
9259
9259
|
ok: false,
|
|
@@ -9281,7 +9281,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9281
9281
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9282
9282
|
);
|
|
9283
9283
|
}
|
|
9284
|
-
|
|
9284
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
9285
9285
|
phase: "cli.play_start_stream_reconnect",
|
|
9286
9286
|
ms: Date.now() - startedAt,
|
|
9287
9287
|
ok: true,
|
|
@@ -9361,7 +9361,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9361
9361
|
"logs"
|
|
9362
9362
|
]);
|
|
9363
9363
|
function formatPlayLogLine(rawLine, state) {
|
|
9364
|
-
const classified =
|
|
9364
|
+
const classified = _chunkBMUDQMYEjs.classifyLogLine.call(void 0, rawLine);
|
|
9365
9365
|
const line = classified.line;
|
|
9366
9366
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9367
9367
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _316 => _316[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9376,14 +9376,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9376
9376
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9377
9377
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9378
9378
|
if (providerWait && !state.verbose) {
|
|
9379
|
-
return
|
|
9379
|
+
return _chunkBMUDQMYEjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9380
9380
|
}
|
|
9381
9381
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9382
9382
|
if (mapProgress && !state.verbose) {
|
|
9383
|
-
return
|
|
9383
|
+
return _chunkBMUDQMYEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9384
9384
|
}
|
|
9385
9385
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9386
|
-
if (!
|
|
9386
|
+
if (!_chunkBMUDQMYEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9387
9387
|
return null;
|
|
9388
9388
|
}
|
|
9389
9389
|
if (state.emittedRunnerStarted) {
|
|
@@ -9396,7 +9396,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9396
9396
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9397
9397
|
);
|
|
9398
9398
|
if (mapStart) {
|
|
9399
|
-
if (!
|
|
9399
|
+
if (!_chunkBMUDQMYEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9400
9400
|
return null;
|
|
9401
9401
|
}
|
|
9402
9402
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9406,7 +9406,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9406
9406
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9407
9407
|
);
|
|
9408
9408
|
if (mapDone) {
|
|
9409
|
-
if (!
|
|
9409
|
+
if (!_chunkBMUDQMYEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9410
9410
|
return null;
|
|
9411
9411
|
}
|
|
9412
9412
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10695,7 +10695,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10695
10695
|
(line) => typeof line === "string"
|
|
10696
10696
|
);
|
|
10697
10697
|
if (tail.length === 0) return [];
|
|
10698
|
-
const shown = tail.map((line) =>
|
|
10698
|
+
const shown = tail.map((line) => _chunkBMUDQMYEjs.classifyLogLine.call(void 0, line)).filter(
|
|
10699
10699
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10700
10700
|
).slice(-8);
|
|
10701
10701
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -10974,11 +10974,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
10974
10974
|
}
|
|
10975
10975
|
function writePlayResult(status, jsonOutput, options) {
|
|
10976
10976
|
const packaged = getPlayRunPackage(status);
|
|
10977
|
-
if (status.package)
|
|
10977
|
+
if (status.package) _chunkZAB6KCZWjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
10978
10978
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _397 => _397.hits]), () => ( null));
|
|
10979
10979
|
if (jsonOutput) {
|
|
10980
10980
|
const payload2 = _optionalChain([options, 'optionalAccess', _398 => _398.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
10981
|
-
|
|
10981
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
10982
10982
|
hits ? { ...payload2, hits } : payload2,
|
|
10983
10983
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _399 => _399.jsonFields]) }
|
|
10984
10984
|
);
|
|
@@ -10994,7 +10994,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
10994
10994
|
...buildPlayCompletionTextLines(status),
|
|
10995
10995
|
...formatRunHitsLines(hits)
|
|
10996
10996
|
];
|
|
10997
|
-
|
|
10997
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, displayPackage, {
|
|
10998
10998
|
json: false,
|
|
10999
10999
|
text: `${lines2.join("\n")}
|
|
11000
11000
|
`
|
|
@@ -11045,7 +11045,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11045
11045
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11046
11046
|
const compact = compactPlayStatus(status);
|
|
11047
11047
|
const payload = _optionalChain([options, 'optionalAccess', _401 => _401.fullJson]) ? status : compact;
|
|
11048
|
-
|
|
11048
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
11049
11049
|
{
|
|
11050
11050
|
...payload,
|
|
11051
11051
|
render: {
|
|
@@ -11254,7 +11254,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11254
11254
|
}
|
|
11255
11255
|
offset += page.rows.length;
|
|
11256
11256
|
}
|
|
11257
|
-
const withError =
|
|
11257
|
+
const withError = _chunkZAB6KCZWjs.tableExportHasFailedRows.call(void 0,
|
|
11258
11258
|
sheetRows.filter(
|
|
11259
11259
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11260
11260
|
)
|
|
@@ -11270,7 +11270,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11270
11270
|
return [
|
|
11271
11271
|
withError ? {
|
|
11272
11272
|
...exported,
|
|
11273
|
-
[
|
|
11273
|
+
[_chunkZAB6KCZWjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkZAB6KCZWjs.tableExportErrorCell.call(void 0,
|
|
11274
11274
|
row
|
|
11275
11275
|
)
|
|
11276
11276
|
} : exported
|
|
@@ -11805,7 +11805,7 @@ function renderServerResultView(value) {
|
|
|
11805
11805
|
function writeStartedPlayRun(input) {
|
|
11806
11806
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
11807
11807
|
const run = input.package.run;
|
|
11808
|
-
|
|
11808
|
+
_chunkZAB6KCZWjs.recordPlayTermination.call(void 0, {
|
|
11809
11809
|
id: run.id,
|
|
11810
11810
|
status: run.status,
|
|
11811
11811
|
finishedAt: run.finishedAt
|
|
@@ -11818,7 +11818,7 @@ function writeStartedPlayRun(input) {
|
|
|
11818
11818
|
dashboardUrl: input.dashboardUrl,
|
|
11819
11819
|
package: input.package
|
|
11820
11820
|
};
|
|
11821
|
-
|
|
11821
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
11822
11822
|
json: true,
|
|
11823
11823
|
fields: input.jsonFields
|
|
11824
11824
|
});
|
|
@@ -11840,7 +11840,7 @@ function writeStartedPlayRun(input) {
|
|
|
11840
11840
|
input.progress.writeLine(output2, process.stdout);
|
|
11841
11841
|
return;
|
|
11842
11842
|
}
|
|
11843
|
-
|
|
11843
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, input.package, {
|
|
11844
11844
|
json: false,
|
|
11845
11845
|
text: `${output2}
|
|
11846
11846
|
`
|
|
@@ -11869,7 +11869,7 @@ function writeStartedPlayRun(input) {
|
|
|
11869
11869
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
11870
11870
|
];
|
|
11871
11871
|
if (input.jsonOutput) {
|
|
11872
|
-
|
|
11872
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
11873
11873
|
return;
|
|
11874
11874
|
}
|
|
11875
11875
|
if (input.dashboardUrl) {
|
|
@@ -11880,7 +11880,7 @@ function writeStartedPlayRun(input) {
|
|
|
11880
11880
|
input.progress.writeLine(output, process.stdout);
|
|
11881
11881
|
return;
|
|
11882
11882
|
}
|
|
11883
|
-
|
|
11883
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
11884
11884
|
{
|
|
11885
11885
|
...payload,
|
|
11886
11886
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -11890,7 +11890,7 @@ function writeStartedPlayRun(input) {
|
|
|
11890
11890
|
);
|
|
11891
11891
|
}
|
|
11892
11892
|
function parsePlayCheckOptions(args) {
|
|
11893
|
-
const selection =
|
|
11893
|
+
const selection = _chunkO4ZMADW4js.parseJsonFields.call(void 0, args, "check");
|
|
11894
11894
|
args = selection.args;
|
|
11895
11895
|
const target = args[0];
|
|
11896
11896
|
if (!target || target.startsWith("-")) {
|
|
@@ -11902,7 +11902,7 @@ function parsePlayCheckOptions(args) {
|
|
|
11902
11902
|
if (arg !== "--json" && arg !== "--full")
|
|
11903
11903
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
11904
11904
|
}
|
|
11905
|
-
const jsonOutput =
|
|
11905
|
+
const jsonOutput = _chunkO4ZMADW4js.argsWantJson.call(void 0, args);
|
|
11906
11906
|
return {
|
|
11907
11907
|
target,
|
|
11908
11908
|
jsonOutput,
|
|
@@ -11978,7 +11978,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
11978
11978
|
useLatest,
|
|
11979
11979
|
expectedArtifactHash,
|
|
11980
11980
|
dryRun,
|
|
11981
|
-
jsonOutput:
|
|
11981
|
+
jsonOutput: _chunkO4ZMADW4js.argsWantJson.call(void 0, args)
|
|
11982
11982
|
};
|
|
11983
11983
|
}
|
|
11984
11984
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12019,7 +12019,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12019
12019
|
target,
|
|
12020
12020
|
expectedArtifactHash,
|
|
12021
12021
|
dryRun,
|
|
12022
|
-
jsonOutput:
|
|
12022
|
+
jsonOutput: _chunkO4ZMADW4js.argsWantJson.call(void 0, args)
|
|
12023
12023
|
};
|
|
12024
12024
|
}
|
|
12025
12025
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12230,7 +12230,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12230
12230
|
async function handlePlayCheck(args) {
|
|
12231
12231
|
const options = parsePlayCheckOptions(args);
|
|
12232
12232
|
if (!isFileTarget(options.target)) {
|
|
12233
|
-
const client = new (0,
|
|
12233
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
12234
12234
|
try {
|
|
12235
12235
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12236
12236
|
command: "check"
|
|
@@ -12259,7 +12259,7 @@ async function handlePlayCheck(args) {
|
|
|
12259
12259
|
},
|
|
12260
12260
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12261
12261
|
};
|
|
12262
|
-
|
|
12262
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, result, {
|
|
12263
12263
|
json: options.jsonOutput,
|
|
12264
12264
|
fields: options.jsonFields,
|
|
12265
12265
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12269,7 +12269,7 @@ async function handlePlayCheck(args) {
|
|
|
12269
12269
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12270
12270
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12271
12271
|
if (options.jsonOutput) {
|
|
12272
|
-
|
|
12272
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
12273
12273
|
{
|
|
12274
12274
|
kind: "play_check",
|
|
12275
12275
|
checked: "named_contract",
|
|
@@ -12311,7 +12311,7 @@ async function handlePlayCheck(args) {
|
|
|
12311
12311
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12312
12312
|
publishCommand: _optionalChain([primary, 'optionalAccess', _451 => _451.result, 'access', _452 => _452.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12313
12313
|
});
|
|
12314
|
-
|
|
12314
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, output, {
|
|
12315
12315
|
json: options.jsonOutput,
|
|
12316
12316
|
fields: options.jsonFields,
|
|
12317
12317
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12365,7 +12365,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12365
12365
|
}
|
|
12366
12366
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12367
12367
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12368
|
-
const client = new (0,
|
|
12368
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
12369
12369
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12370
12370
|
const checked = await checkLocalPlayGraph({
|
|
12371
12371
|
client,
|
|
@@ -12418,11 +12418,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12418
12418
|
throw new Error("Expected a file-backed play run target.");
|
|
12419
12419
|
}
|
|
12420
12420
|
let client;
|
|
12421
|
-
let cliAdmission =
|
|
12421
|
+
let cliAdmission = _chunk5XIGEYYKjs.usesInlinePlayAdmission.call(void 0,
|
|
12422
12422
|
"plays run",
|
|
12423
12423
|
process.argv.slice(2)
|
|
12424
12424
|
);
|
|
12425
|
-
const progress = _nullishCoalesce(
|
|
12425
|
+
const progress = _nullishCoalesce(_chunkACZLDP7Ljs.getActiveCliProgress.call(void 0, ), () => ( _chunkACZLDP7Ljs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12426
12426
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12427
12427
|
progress.phase("compiling play");
|
|
12428
12428
|
const sourceCode = traceCliSync(
|
|
@@ -12439,7 +12439,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12439
12439
|
}
|
|
12440
12440
|
let graph;
|
|
12441
12441
|
try {
|
|
12442
|
-
graph = await
|
|
12442
|
+
graph = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
12443
12443
|
"cli.play_file_bundle_graph",
|
|
12444
12444
|
{ targetKind: "file" },
|
|
12445
12445
|
() => collectBundledPlayGraph(
|
|
@@ -12453,14 +12453,14 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12453
12453
|
if (options.dryRun) {
|
|
12454
12454
|
progress.complete();
|
|
12455
12455
|
renderLocalPlayExecutionPlan(
|
|
12456
|
-
|
|
12456
|
+
_chunk2RFTOESCjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
|
|
12457
12457
|
{ dryRun: true, json: options.jsonOutput }
|
|
12458
12458
|
);
|
|
12459
12459
|
return 0;
|
|
12460
12460
|
}
|
|
12461
|
-
client = new (0,
|
|
12461
|
+
client = new (0, _chunkZIMCLWEWjs.DeeplineClient)(playRunClientOptions(options));
|
|
12462
12462
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12463
|
-
await
|
|
12463
|
+
await _chunk5XIGEYYKjs.checkPlayRunCompatibility.call(void 0,
|
|
12464
12464
|
client.baseUrl,
|
|
12465
12465
|
options.maintenancePolicy
|
|
12466
12466
|
);
|
|
@@ -12473,7 +12473,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12473
12473
|
});
|
|
12474
12474
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12475
12475
|
if (canDeferCompilerManifest) {
|
|
12476
|
-
|
|
12476
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
12477
12477
|
phase: "cli.play_file_compile_manifests",
|
|
12478
12478
|
ms: 0,
|
|
12479
12479
|
ok: true,
|
|
@@ -12482,7 +12482,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12482
12482
|
reason: "validated_by_run_route"
|
|
12483
12483
|
});
|
|
12484
12484
|
} else {
|
|
12485
|
-
await
|
|
12485
|
+
await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
12486
12486
|
"cli.play_file_compile_manifests",
|
|
12487
12487
|
{ targetKind: "file", skipped: false },
|
|
12488
12488
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12503,13 +12503,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12503
12503
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12504
12504
|
try {
|
|
12505
12505
|
renderLocalPlayExecutionPlan(
|
|
12506
|
-
|
|
12506
|
+
_chunk2RFTOESCjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12507
12507
|
);
|
|
12508
12508
|
progress.phase("pinning imported plays");
|
|
12509
|
-
graph = await
|
|
12509
|
+
graph = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
12510
12510
|
"cli.play_file_pin_imports",
|
|
12511
12511
|
{ targetKind: "file" },
|
|
12512
|
-
() =>
|
|
12512
|
+
() => _chunk2RFTOESCjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12513
12513
|
);
|
|
12514
12514
|
bundleResult = graph.root;
|
|
12515
12515
|
} catch (error) {
|
|
@@ -12525,7 +12525,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12525
12525
|
const fileInputBindings = _chunkJKVRBCZLjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12526
12526
|
_optionalChain([compilerManifest, 'optionalAccess', _461 => _461.staticPipeline])
|
|
12527
12527
|
);
|
|
12528
|
-
const stagedFileInputs = await
|
|
12528
|
+
const stagedFileInputs = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
12529
12529
|
"cli.play_stage_inputs",
|
|
12530
12530
|
{
|
|
12531
12531
|
targetKind: "file",
|
|
@@ -12572,7 +12572,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12572
12572
|
};
|
|
12573
12573
|
if (options.watch) {
|
|
12574
12574
|
progress.phase("starting run");
|
|
12575
|
-
const finalStatus = await
|
|
12575
|
+
const finalStatus = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
12576
12576
|
"cli.play_start_watch",
|
|
12577
12577
|
{ targetKind: "file", playName },
|
|
12578
12578
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12632,7 +12632,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12632
12632
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12633
12633
|
}
|
|
12634
12634
|
progress.phase("starting run");
|
|
12635
|
-
const started = await
|
|
12635
|
+
const started = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
12636
12636
|
"cli.play_start_unwatched",
|
|
12637
12637
|
{ targetKind: "file", playName },
|
|
12638
12638
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _468 => _468.onSubmission]) }).catch(async (error) => {
|
|
@@ -12683,12 +12683,12 @@ async function handleNamedRun(options, hooks) {
|
|
|
12683
12683
|
if (options.target.kind !== "name") {
|
|
12684
12684
|
throw new Error("Expected a named play run target.");
|
|
12685
12685
|
}
|
|
12686
|
-
const client = new (0,
|
|
12687
|
-
let cliAdmission =
|
|
12686
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)(playRunClientOptions(options));
|
|
12687
|
+
let cliAdmission = _chunk5XIGEYYKjs.usesInlinePlayAdmission.call(void 0,
|
|
12688
12688
|
"plays run",
|
|
12689
12689
|
process.argv.slice(2)
|
|
12690
12690
|
);
|
|
12691
|
-
const progress = _nullishCoalesce(
|
|
12691
|
+
const progress = _nullishCoalesce(_chunkACZLDP7Ljs.getActiveCliProgress.call(void 0, ), () => ( _chunkACZLDP7Ljs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12692
12692
|
const playName = options.target.name;
|
|
12693
12693
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
12694
12694
|
try {
|
|
@@ -12703,14 +12703,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
12703
12703
|
});
|
|
12704
12704
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
12705
12705
|
progress.phase("loading play definition");
|
|
12706
|
-
return
|
|
12706
|
+
return _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
12707
12707
|
"cli.play_load_definition",
|
|
12708
12708
|
{ targetKind: "name", playName, skipped: false },
|
|
12709
12709
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
12710
12710
|
command: "run"
|
|
12711
12711
|
})
|
|
12712
12712
|
);
|
|
12713
|
-
})() : (
|
|
12713
|
+
})() : (_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
12714
12714
|
phase: "cli.play_load_definition",
|
|
12715
12715
|
ms: 0,
|
|
12716
12716
|
ok: true,
|
|
@@ -12719,7 +12719,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12719
12719
|
skipped: true
|
|
12720
12720
|
}), null);
|
|
12721
12721
|
progress.phase("selecting revision");
|
|
12722
|
-
const selectedRevisionId = await
|
|
12722
|
+
const selectedRevisionId = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
12723
12723
|
"cli.play_select_revision",
|
|
12724
12724
|
{
|
|
12725
12725
|
targetKind: "name",
|
|
@@ -12744,10 +12744,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
12744
12744
|
..._chunkJKVRBCZLjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
12745
12745
|
] : [];
|
|
12746
12746
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
12747
|
-
await
|
|
12747
|
+
await _chunk5XIGEYYKjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
12748
12748
|
cliAdmission = false;
|
|
12749
12749
|
}
|
|
12750
|
-
const stagedFileInputs = await
|
|
12750
|
+
const stagedFileInputs = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
12751
12751
|
"cli.play_stage_inputs",
|
|
12752
12752
|
{
|
|
12753
12753
|
targetKind: "name",
|
|
@@ -12791,7 +12791,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12791
12791
|
});
|
|
12792
12792
|
if (options.watch) {
|
|
12793
12793
|
progress.phase("starting run");
|
|
12794
|
-
const finalStatus = await
|
|
12794
|
+
const finalStatus = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
12795
12795
|
"cli.play_start_watch",
|
|
12796
12796
|
{ targetKind: "name", playName },
|
|
12797
12797
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12854,7 +12854,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12854
12854
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12855
12855
|
}
|
|
12856
12856
|
progress.phase("starting run");
|
|
12857
|
-
const started = await
|
|
12857
|
+
const started = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
12858
12858
|
"cli.play_start_unwatched",
|
|
12859
12859
|
{ targetKind: "name", playName },
|
|
12860
12860
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _481 => _481.onSubmission]) }).catch(async (error) => {
|
|
@@ -12899,7 +12899,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
12899
12899
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
12900
12900
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _489 => _489.exec, 'call', _490 => _490(status.runId), 'optionalAccess', _491 => _491[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
12901
12901
|
if (!terminal) {
|
|
12902
|
-
|
|
12902
|
+
_chunkZAB6KCZWjs.writeExecutionOutput.call(void 0,
|
|
12903
12903
|
{ id: status.runId, status: status.status, next },
|
|
12904
12904
|
output
|
|
12905
12905
|
);
|
|
@@ -12974,10 +12974,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
12974
12974
|
};
|
|
12975
12975
|
}
|
|
12976
12976
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
12977
|
-
const allCollections =
|
|
12977
|
+
const allCollections = _chunkZAB6KCZWjs.outputCollections.call(void 0, data).map(
|
|
12978
12978
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
12979
12979
|
);
|
|
12980
|
-
|
|
12980
|
+
_chunkZAB6KCZWjs.writeExecutionOutput.call(void 0,
|
|
12981
12981
|
{
|
|
12982
12982
|
id: status.runId,
|
|
12983
12983
|
status: status.status,
|
|
@@ -12998,7 +12998,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
12998
12998
|
}
|
|
12999
12999
|
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;
|
|
13000
13000
|
async function handlePlayRun(args, hooks) {
|
|
13001
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13001
|
+
const parsedOptions = Array.isArray(args) ? _chunkUOAHDEAIjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13002
13002
|
const options = parsedOptions.runIdFile ? {
|
|
13003
13003
|
...parsedOptions,
|
|
13004
13004
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13015,7 +13015,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13015
13015
|
JSON.stringify({
|
|
13016
13016
|
version: 1,
|
|
13017
13017
|
admissionState: "submitted_unknown",
|
|
13018
|
-
baseUrl: new (0,
|
|
13018
|
+
baseUrl: new (0, _chunkZIMCLWEWjs.DeeplineClient)().baseUrl,
|
|
13019
13019
|
...intent
|
|
13020
13020
|
})
|
|
13021
13021
|
);
|
|
@@ -13244,7 +13244,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13244
13244
|
);
|
|
13245
13245
|
return `${lines.join("\n")}
|
|
13246
13246
|
|
|
13247
|
-
${
|
|
13247
|
+
${_chunkO4ZMADW4js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13248
13248
|
}
|
|
13249
13249
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13250
13250
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13268,7 +13268,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13268
13268
|
}
|
|
13269
13269
|
}
|
|
13270
13270
|
async function handleRunGet(args) {
|
|
13271
|
-
const selection =
|
|
13271
|
+
const selection = _chunkO4ZMADW4js.parseJsonFields.call(void 0,
|
|
13272
13272
|
args,
|
|
13273
13273
|
args.includes("--config") ? "config" : "get"
|
|
13274
13274
|
);
|
|
@@ -13281,7 +13281,7 @@ async function handleRunGet(args) {
|
|
|
13281
13281
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13282
13282
|
return 1;
|
|
13283
13283
|
}
|
|
13284
|
-
const client = new (0,
|
|
13284
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
13285
13285
|
const timing = args.includes("--timing");
|
|
13286
13286
|
if (args.includes("--web-url")) {
|
|
13287
13287
|
const status2 = await withRunReadTiming(
|
|
@@ -13296,7 +13296,7 @@ async function handleRunGet(args) {
|
|
|
13296
13296
|
return 1;
|
|
13297
13297
|
}
|
|
13298
13298
|
const dashboardUrl2 = _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13299
|
-
|
|
13299
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
13300
13300
|
{ dashboardUrl: dashboardUrl2 },
|
|
13301
13301
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
13302
13302
|
` }
|
|
@@ -13321,7 +13321,7 @@ async function handleRunGet(args) {
|
|
|
13321
13321
|
"This server does not support recorded configuration reads."
|
|
13322
13322
|
);
|
|
13323
13323
|
}
|
|
13324
|
-
|
|
13324
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
13325
13325
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13326
13326
|
{ json: true, fields: selection.fields }
|
|
13327
13327
|
);
|
|
@@ -13334,7 +13334,7 @@ async function handleRunGet(args) {
|
|
|
13334
13334
|
timing,
|
|
13335
13335
|
() => client.getRunInput(runId)
|
|
13336
13336
|
);
|
|
13337
|
-
|
|
13337
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13338
13338
|
return 0;
|
|
13339
13339
|
}
|
|
13340
13340
|
const full = args.includes("--full");
|
|
@@ -13347,7 +13347,7 @@ async function handleRunGet(args) {
|
|
|
13347
13347
|
failedLogs: args.includes("--log-failed")
|
|
13348
13348
|
})
|
|
13349
13349
|
);
|
|
13350
|
-
if (status.package)
|
|
13350
|
+
if (status.package) _chunkZAB6KCZWjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13351
13351
|
if (!status.package) {
|
|
13352
13352
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13353
13353
|
"runs get",
|
|
@@ -13360,8 +13360,8 @@ async function handleRunGet(args) {
|
|
|
13360
13360
|
) : status;
|
|
13361
13361
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13362
13362
|
const legacyDashboardUrl = legacyPlayName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13363
|
-
if (
|
|
13364
|
-
|
|
13363
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
13364
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
13365
13365
|
{
|
|
13366
13366
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13367
13367
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -13371,7 +13371,7 @@ async function handleRunGet(args) {
|
|
|
13371
13371
|
} else {
|
|
13372
13372
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13373
13373
|
if (legacyDashboardUrl)
|
|
13374
|
-
|
|
13374
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
13375
13375
|
{ dashboardUrl: legacyDashboardUrl },
|
|
13376
13376
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
13377
13377
|
` }
|
|
@@ -13401,10 +13401,10 @@ async function handleRunGet(args) {
|
|
|
13401
13401
|
)
|
|
13402
13402
|
]);
|
|
13403
13403
|
const hitLines = formatRunHitsLines(hits);
|
|
13404
|
-
const json =
|
|
13404
|
+
const json = _chunkO4ZMADW4js.argsWantJson.call(void 0, args);
|
|
13405
13405
|
const playName = resolveRunPlayName(status, runId);
|
|
13406
13406
|
const dashboardUrl = playName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13407
|
-
|
|
13407
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
13408
13408
|
{
|
|
13409
13409
|
...overview,
|
|
13410
13410
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13508,9 +13508,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13508
13508
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13509
13509
|
return 1;
|
|
13510
13510
|
}
|
|
13511
|
-
const status = await new (0,
|
|
13512
|
-
if (
|
|
13513
|
-
|
|
13511
|
+
const status = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().runs.status(runId);
|
|
13512
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
13513
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13514
13514
|
return 0;
|
|
13515
13515
|
}
|
|
13516
13516
|
if (!status.available) {
|
|
@@ -13550,7 +13550,7 @@ async function handleRunsRerun(args) {
|
|
|
13550
13550
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13551
13551
|
return 1;
|
|
13552
13552
|
}
|
|
13553
|
-
const options = { json:
|
|
13553
|
+
const options = { json: _chunkO4ZMADW4js.argsWantJson.call(void 0, args) };
|
|
13554
13554
|
for (let index = 0; index < args.length; index += 1) {
|
|
13555
13555
|
if (args[index] === "--idempotency-key") {
|
|
13556
13556
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13616,8 +13616,8 @@ ${usage2}
|
|
|
13616
13616
|
Discover Plays: ${next.discover}
|
|
13617
13617
|
Active runs: ${next.running}`
|
|
13618
13618
|
);
|
|
13619
|
-
if (
|
|
13620
|
-
|
|
13619
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
13620
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
13621
13621
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13622
13622
|
{ json: true }
|
|
13623
13623
|
);
|
|
@@ -13632,7 +13632,7 @@ Active runs: ${next.running}`
|
|
|
13632
13632
|
console.error("--offset requires --play.");
|
|
13633
13633
|
return 1;
|
|
13634
13634
|
}
|
|
13635
|
-
const client = new (0,
|
|
13635
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
13636
13636
|
const page = await withRunReadTiming(
|
|
13637
13637
|
"runs list",
|
|
13638
13638
|
"run inventory",
|
|
@@ -13699,14 +13699,14 @@ Active runs: ${next.running}`
|
|
|
13699
13699
|
return lines2.join("\n");
|
|
13700
13700
|
});
|
|
13701
13701
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
13702
|
-
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}${
|
|
13702
|
+
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}${_chunkO4ZMADW4js.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
13703
13703
|
if (page.hasMore) {
|
|
13704
13704
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
13705
13705
|
lines.push(
|
|
13706
13706
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
13707
13707
|
);
|
|
13708
13708
|
}
|
|
13709
|
-
|
|
13709
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
13710
13710
|
{
|
|
13711
13711
|
runs,
|
|
13712
13712
|
count: runs.length,
|
|
@@ -13720,7 +13720,7 @@ Active runs: ${next.running}`
|
|
|
13720
13720
|
},
|
|
13721
13721
|
render: { sections: [{ title: "runs", lines }] }
|
|
13722
13722
|
},
|
|
13723
|
-
{ json:
|
|
13723
|
+
{ json: _chunkO4ZMADW4js.argsWantJson.call(void 0, args) }
|
|
13724
13724
|
);
|
|
13725
13725
|
return 0;
|
|
13726
13726
|
}
|
|
@@ -13750,7 +13750,7 @@ async function handleRunTail(args) {
|
|
|
13750
13750
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
13751
13751
|
return 1;
|
|
13752
13752
|
}
|
|
13753
|
-
const parsed =
|
|
13753
|
+
const parsed = _chunkBMUDQMYEjs.parseLogLevel.call(void 0, value);
|
|
13754
13754
|
if (!parsed) {
|
|
13755
13755
|
console.error(
|
|
13756
13756
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -13788,9 +13788,9 @@ async function handleRunTail(args) {
|
|
|
13788
13788
|
);
|
|
13789
13789
|
return 1;
|
|
13790
13790
|
}
|
|
13791
|
-
const client = new (0,
|
|
13791
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
13792
13792
|
const jsonLines = args.includes("--jsonl");
|
|
13793
|
-
const jsonOutput = !jsonLines &&
|
|
13793
|
+
const jsonOutput = !jsonLines && _chunkO4ZMADW4js.argsWantJson.call(void 0, args);
|
|
13794
13794
|
const compact = args.includes("--compact");
|
|
13795
13795
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
13796
13796
|
const compactState = {
|
|
@@ -13871,7 +13871,7 @@ async function handleRunLogs(args) {
|
|
|
13871
13871
|
]);
|
|
13872
13872
|
const cursorIndex = args.indexOf("--cursor");
|
|
13873
13873
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
13874
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
13874
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkBMUDQMYEjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
13875
13875
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
13876
13876
|
return handleRunEventSearch(args);
|
|
13877
13877
|
}
|
|
@@ -13905,7 +13905,7 @@ async function handleRunLogs(args) {
|
|
|
13905
13905
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
13906
13906
|
return 1;
|
|
13907
13907
|
}
|
|
13908
|
-
const parsed =
|
|
13908
|
+
const parsed = _chunkBMUDQMYEjs.parseLogLevel.call(void 0, value);
|
|
13909
13909
|
if (!parsed) {
|
|
13910
13910
|
console.error(
|
|
13911
13911
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -13952,12 +13952,12 @@ async function handleRunLogs(args) {
|
|
|
13952
13952
|
);
|
|
13953
13953
|
return 1;
|
|
13954
13954
|
}
|
|
13955
|
-
const client = new (0,
|
|
13955
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
13956
13956
|
if (outPath) {
|
|
13957
13957
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
13958
|
-
const logs = result2.entries.filter((line) =>
|
|
13958
|
+
const logs = result2.entries.filter((line) => _chunkBMUDQMYEjs.logLevelReaches.call(void 0, _chunkBMUDQMYEjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkBMUDQMYEjs.classifyLogLine.call(void 0, line).line);
|
|
13959
13959
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
13960
|
-
|
|
13960
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
13961
13961
|
{
|
|
13962
13962
|
runId: result2.runId,
|
|
13963
13963
|
log_path: outPath,
|
|
@@ -13980,7 +13980,7 @@ async function handleRunLogs(args) {
|
|
|
13980
13980
|
]
|
|
13981
13981
|
}
|
|
13982
13982
|
},
|
|
13983
|
-
{ json:
|
|
13983
|
+
{ json: _chunkO4ZMADW4js.argsWantJson.call(void 0, args) }
|
|
13984
13984
|
);
|
|
13985
13985
|
return 0;
|
|
13986
13986
|
}
|
|
@@ -14011,7 +14011,7 @@ async function handleRunLogs(args) {
|
|
|
14011
14011
|
}
|
|
14012
14012
|
};
|
|
14013
14013
|
const text = buildRunLogsText(filteredResult);
|
|
14014
|
-
|
|
14014
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
14015
14015
|
{
|
|
14016
14016
|
runId: result.runId,
|
|
14017
14017
|
totalCount: result.totalCount,
|
|
@@ -14035,7 +14035,7 @@ async function handleRunLogs(args) {
|
|
|
14035
14035
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14036
14036
|
},
|
|
14037
14037
|
{
|
|
14038
|
-
json:
|
|
14038
|
+
json: _chunkO4ZMADW4js.argsWantJson.call(void 0, args),
|
|
14039
14039
|
text
|
|
14040
14040
|
}
|
|
14041
14041
|
);
|
|
@@ -14059,7 +14059,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14059
14059
|
);
|
|
14060
14060
|
}
|
|
14061
14061
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14062
|
-
(entry) =>
|
|
14062
|
+
(entry) => _chunkBMUDQMYEjs.logLevelReaches.call(void 0, _chunkBMUDQMYEjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14063
14063
|
);
|
|
14064
14064
|
const selected = matching.slice(-limit);
|
|
14065
14065
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14069,7 +14069,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14069
14069
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _523 => _523.at, 'call', _524 => _524(-1), 'optionalAccess', _525 => _525.seq]), () => ( null)),
|
|
14070
14070
|
truncated: result.truncated || olderMatchesExist,
|
|
14071
14071
|
hasMore: olderMatchesExist,
|
|
14072
|
-
nextCursor: olderMatchesExist ?
|
|
14072
|
+
nextCursor: olderMatchesExist ? _chunkBMUDQMYEjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14073
14073
|
};
|
|
14074
14074
|
}
|
|
14075
14075
|
async function handleRunEventSearch(args) {
|
|
@@ -14136,7 +14136,7 @@ ${usage2}`);
|
|
|
14136
14136
|
namespace,
|
|
14137
14137
|
...backend ? { backend } : {}
|
|
14138
14138
|
} : void 0;
|
|
14139
|
-
const client = new (0,
|
|
14139
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
14140
14140
|
const result = await client.runs.searchEvents({
|
|
14141
14141
|
...runId ? { runId } : {},
|
|
14142
14142
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14208,7 +14208,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14208
14208
|
"--limit",
|
|
14209
14209
|
String(limit)
|
|
14210
14210
|
].join(" ") : null;
|
|
14211
|
-
|
|
14211
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
14212
14212
|
{
|
|
14213
14213
|
events,
|
|
14214
14214
|
nextCursor: result.nextCursor,
|
|
@@ -14219,14 +14219,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14219
14219
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14220
14220
|
},
|
|
14221
14221
|
{
|
|
14222
|
-
json:
|
|
14222
|
+
json: _chunkO4ZMADW4js.argsWantJson.call(void 0, args),
|
|
14223
14223
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14224
14224
|
}
|
|
14225
14225
|
);
|
|
14226
14226
|
return 0;
|
|
14227
14227
|
}
|
|
14228
14228
|
function buildRunLogsText(result) {
|
|
14229
|
-
const lines = result.entries.map((line) =>
|
|
14229
|
+
const lines = result.entries.map((line) => _chunkBMUDQMYEjs.classifyLogLine.call(void 0, line).line);
|
|
14230
14230
|
if (result.warning) {
|
|
14231
14231
|
if (lines.length > 0) lines.push("");
|
|
14232
14232
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14260,7 +14260,7 @@ async function handleRunStop(args) {
|
|
|
14260
14260
|
reason = args[++index];
|
|
14261
14261
|
}
|
|
14262
14262
|
}
|
|
14263
|
-
const client = new (0,
|
|
14263
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
14264
14264
|
const result = await client.runs.stop(runId, { reason });
|
|
14265
14265
|
const state = resolveRunStopState(result);
|
|
14266
14266
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14275,7 +14275,7 @@ async function handleRunStop(args) {
|
|
|
14275
14275
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14276
14276
|
`inspect: deepline runs get ${runId} --full`
|
|
14277
14277
|
];
|
|
14278
|
-
|
|
14278
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
14279
14279
|
{
|
|
14280
14280
|
...cancelling,
|
|
14281
14281
|
state,
|
|
@@ -14290,7 +14290,7 @@ async function handleRunStop(args) {
|
|
|
14290
14290
|
]
|
|
14291
14291
|
}
|
|
14292
14292
|
},
|
|
14293
|
-
{ json:
|
|
14293
|
+
{ json: _chunkO4ZMADW4js.argsWantJson.call(void 0, args) }
|
|
14294
14294
|
);
|
|
14295
14295
|
return 0;
|
|
14296
14296
|
}
|
|
@@ -14307,7 +14307,7 @@ async function handleRunStop(args) {
|
|
|
14307
14307
|
];
|
|
14308
14308
|
process.stderr.write(`${lines2.join("\n")}
|
|
14309
14309
|
`);
|
|
14310
|
-
|
|
14310
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
14311
14311
|
{
|
|
14312
14312
|
...result,
|
|
14313
14313
|
render: {
|
|
@@ -14322,7 +14322,7 @@ async function handleRunStop(args) {
|
|
|
14322
14322
|
]
|
|
14323
14323
|
}
|
|
14324
14324
|
},
|
|
14325
|
-
{ json:
|
|
14325
|
+
{ json: _chunkO4ZMADW4js.argsWantJson.call(void 0, args) }
|
|
14326
14326
|
);
|
|
14327
14327
|
return 1;
|
|
14328
14328
|
}
|
|
@@ -14333,12 +14333,12 @@ async function handleRunStop(args) {
|
|
|
14333
14333
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14334
14334
|
] : []
|
|
14335
14335
|
];
|
|
14336
|
-
|
|
14336
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
14337
14337
|
{
|
|
14338
14338
|
...result,
|
|
14339
14339
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14340
14340
|
},
|
|
14341
|
-
{ json:
|
|
14341
|
+
{ json: _chunkO4ZMADW4js.argsWantJson.call(void 0, args) }
|
|
14342
14342
|
);
|
|
14343
14343
|
return 0;
|
|
14344
14344
|
}
|
|
@@ -14388,18 +14388,18 @@ async function handleRunStopAll(args) {
|
|
|
14388
14388
|
reason = args[++index];
|
|
14389
14389
|
}
|
|
14390
14390
|
}
|
|
14391
|
-
const client = new (0,
|
|
14391
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
14392
14392
|
if (dryRun) {
|
|
14393
14393
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14394
14394
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14395
|
-
|
|
14395
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
14396
14396
|
{
|
|
14397
14397
|
...result2,
|
|
14398
14398
|
render: {
|
|
14399
14399
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14400
14400
|
}
|
|
14401
14401
|
},
|
|
14402
|
-
{ json:
|
|
14402
|
+
{ json: _chunkO4ZMADW4js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14403
14403
|
` }
|
|
14404
14404
|
);
|
|
14405
14405
|
return 0;
|
|
@@ -14412,17 +14412,17 @@ async function handleRunStopAll(args) {
|
|
|
14412
14412
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14413
14413
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14414
14414
|
];
|
|
14415
|
-
|
|
14415
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
14416
14416
|
{
|
|
14417
14417
|
...result,
|
|
14418
14418
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14419
14419
|
},
|
|
14420
|
-
{ json:
|
|
14420
|
+
{ json: _chunkO4ZMADW4js.argsWantJson.call(void 0, args) }
|
|
14421
14421
|
);
|
|
14422
14422
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14423
14423
|
}
|
|
14424
14424
|
async function handleRunExport(args) {
|
|
14425
|
-
const selection =
|
|
14425
|
+
const selection = _chunkO4ZMADW4js.parseJsonFields.call(void 0, args, "export");
|
|
14426
14426
|
args = selection.args;
|
|
14427
14427
|
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]";
|
|
14428
14428
|
let runId;
|
|
@@ -14493,17 +14493,17 @@ async function handleRunExport(args) {
|
|
|
14493
14493
|
"INVALID_ARGUMENT"
|
|
14494
14494
|
);
|
|
14495
14495
|
}
|
|
14496
|
-
const client = new (0,
|
|
14496
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
14497
14497
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14498
14498
|
assertRunExportStatusIdentity(status, runId);
|
|
14499
14499
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14500
|
-
const progress =
|
|
14500
|
+
const progress = _chunkACZLDP7Ljs.createCliProgress.call(void 0, !_chunkO4ZMADW4js.argsWantJson.call(void 0, args));
|
|
14501
14501
|
try {
|
|
14502
14502
|
await waitForPlayCompletionByWatch({
|
|
14503
14503
|
client,
|
|
14504
14504
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14505
14505
|
workflowId: runId,
|
|
14506
|
-
jsonOutput:
|
|
14506
|
+
jsonOutput: _chunkO4ZMADW4js.argsWantJson.call(void 0, args),
|
|
14507
14507
|
emitLogs: false,
|
|
14508
14508
|
waitTimeoutMs,
|
|
14509
14509
|
startedAt: Date.now(),
|
|
@@ -14571,7 +14571,7 @@ async function handleRunExport(args) {
|
|
|
14571
14571
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _539 => _539.rowsInfo, 'access', _540 => _540.totalRows]), () => ( null)),
|
|
14572
14572
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14573
14573
|
...rowFailures ? { rowFailures } : {},
|
|
14574
|
-
columns:
|
|
14574
|
+
columns: _chunkZAB6KCZWjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _541 => _541.rowsInfo, 'access', _542 => _542.columns]), () => ( []))),
|
|
14575
14575
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14576
14576
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14577
14577
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -14605,8 +14605,8 @@ async function handleRunExport(args) {
|
|
|
14605
14605
|
"utf-8"
|
|
14606
14606
|
);
|
|
14607
14607
|
}
|
|
14608
|
-
|
|
14609
|
-
json:
|
|
14608
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, payload, {
|
|
14609
|
+
json: _chunkO4ZMADW4js.argsWantJson.call(void 0, args),
|
|
14610
14610
|
fields: selection.fields,
|
|
14611
14611
|
text: `${lines.join("\n")}
|
|
14612
14612
|
`
|
|
@@ -14640,10 +14640,10 @@ async function handlePlayGet(args) {
|
|
|
14640
14640
|
);
|
|
14641
14641
|
return 2;
|
|
14642
14642
|
}
|
|
14643
|
-
const client = new (0,
|
|
14643
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
14644
14644
|
const explicitJson = args.includes("--json");
|
|
14645
14645
|
const sourceOutput = args.includes("--source");
|
|
14646
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14646
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkO4ZMADW4js.argsWantJson.call(void 0, args);
|
|
14647
14647
|
const requestedRevisionFlags = [
|
|
14648
14648
|
args.includes("--working"),
|
|
14649
14649
|
args.includes("--live"),
|
|
@@ -14703,7 +14703,7 @@ async function handlePlayGet(args) {
|
|
|
14703
14703
|
}
|
|
14704
14704
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
14705
14705
|
if (jsonOutput) {
|
|
14706
|
-
|
|
14706
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, {
|
|
14707
14707
|
...detail,
|
|
14708
14708
|
...materializedFile ? {
|
|
14709
14709
|
message: loadedMessage,
|
|
@@ -14795,8 +14795,8 @@ async function handlePlayVersions(args) {
|
|
|
14795
14795
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
14796
14796
|
return 1;
|
|
14797
14797
|
}
|
|
14798
|
-
const client = new (0,
|
|
14799
|
-
const jsonOutput =
|
|
14798
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
14799
|
+
const jsonOutput = _chunkO4ZMADW4js.argsWantJson.call(void 0, args);
|
|
14800
14800
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
14801
14801
|
command: "versions"
|
|
14802
14802
|
});
|
|
@@ -14804,7 +14804,7 @@ async function handlePlayVersions(args) {
|
|
|
14804
14804
|
parseReferencedPlayTarget(playName).playName
|
|
14805
14805
|
);
|
|
14806
14806
|
if (jsonOutput) {
|
|
14807
|
-
|
|
14807
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, { versions });
|
|
14808
14808
|
return 0;
|
|
14809
14809
|
}
|
|
14810
14810
|
if (versions.length === 0) {
|
|
@@ -14842,9 +14842,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
14842
14842
|
"signals"
|
|
14843
14843
|
];
|
|
14844
14844
|
async function handlePlayList(args) {
|
|
14845
|
-
const jsonOutput =
|
|
14845
|
+
const jsonOutput = _chunkO4ZMADW4js.argsWantJson.call(void 0, args);
|
|
14846
14846
|
const showCost = args.includes("--show-cost");
|
|
14847
|
-
const client = new (0,
|
|
14847
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
14848
14848
|
const categoriesIndex = args.indexOf("--categories");
|
|
14849
14849
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _562 => _562[categoriesIndex + 1], 'optionalAccess', _563 => _563.trim, 'call', _564 => _564()]) : void 0;
|
|
14850
14850
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -14941,7 +14941,7 @@ async function handlePlayList(args) {
|
|
|
14941
14941
|
lines.push("List truncated \u2014 more plays are available.");
|
|
14942
14942
|
lines.push(`Next page: ${nextPage}`);
|
|
14943
14943
|
}
|
|
14944
|
-
|
|
14944
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
14945
14945
|
{
|
|
14946
14946
|
plays,
|
|
14947
14947
|
count: plays.length,
|
|
@@ -14959,7 +14959,7 @@ async function handlePlayList(args) {
|
|
|
14959
14959
|
}
|
|
14960
14960
|
async function handlePlayPin(args, pinned) {
|
|
14961
14961
|
const target = _optionalChain([args, 'access', _573 => _573.find, 'call', _574 => _574((arg) => !arg.startsWith("-")), 'optionalAccess', _575 => _575.trim, 'call', _576 => _576()]);
|
|
14962
|
-
const jsonOutput =
|
|
14962
|
+
const jsonOutput = _chunkO4ZMADW4js.argsWantJson.call(void 0, args);
|
|
14963
14963
|
const dryRun = args.includes("--dry-run");
|
|
14964
14964
|
if (!target) {
|
|
14965
14965
|
console.error(
|
|
@@ -14977,11 +14977,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
14977
14977
|
const name = parsedTarget.playName;
|
|
14978
14978
|
const plan = { name, pinned, dryRun };
|
|
14979
14979
|
if (dryRun) {
|
|
14980
|
-
|
|
14980
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, plan);
|
|
14981
14981
|
return 0;
|
|
14982
14982
|
}
|
|
14983
|
-
const result = await new (0,
|
|
14984
|
-
if (jsonOutput)
|
|
14983
|
+
const result = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
14984
|
+
if (jsonOutput) _chunkO4ZMADW4js.printCompactJson.call(void 0, result);
|
|
14985
14985
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
14986
14986
|
return 0;
|
|
14987
14987
|
}
|
|
@@ -15107,12 +15107,12 @@ async function handlePlayGrep(args) {
|
|
|
15107
15107
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15108
15108
|
return 1;
|
|
15109
15109
|
}
|
|
15110
|
-
const client = new (0,
|
|
15110
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
15111
15111
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15112
15112
|
summarizePlayGrepResult
|
|
15113
15113
|
);
|
|
15114
|
-
if (
|
|
15115
|
-
|
|
15114
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
15115
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, {
|
|
15116
15116
|
plays: results,
|
|
15117
15117
|
count: results.length,
|
|
15118
15118
|
query,
|
|
@@ -15135,7 +15135,7 @@ async function handlePlayGrep(args) {
|
|
|
15135
15135
|
return 0;
|
|
15136
15136
|
}
|
|
15137
15137
|
async function handlePlayDescribe(args) {
|
|
15138
|
-
const selection =
|
|
15138
|
+
const selection = _chunkO4ZMADW4js.parseJsonFields.call(void 0, args, "describe");
|
|
15139
15139
|
args = selection.args;
|
|
15140
15140
|
const playName = args[0];
|
|
15141
15141
|
if (!playName) {
|
|
@@ -15169,8 +15169,8 @@ async function handlePlayDescribe(args) {
|
|
|
15169
15169
|
`deepline plays check ${playName}`,
|
|
15170
15170
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15171
15171
|
];
|
|
15172
|
-
if (
|
|
15173
|
-
|
|
15172
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
15173
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, {
|
|
15174
15174
|
ok: false,
|
|
15175
15175
|
error: { message },
|
|
15176
15176
|
next
|
|
@@ -15184,7 +15184,7 @@ async function handlePlayDescribe(args) {
|
|
|
15184
15184
|
}
|
|
15185
15185
|
return 2;
|
|
15186
15186
|
}
|
|
15187
|
-
const client = new (0,
|
|
15187
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
15188
15188
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15189
15189
|
command: "describe"
|
|
15190
15190
|
});
|
|
@@ -15194,9 +15194,9 @@ async function handlePlayDescribe(args) {
|
|
|
15194
15194
|
compact: args.includes("--compact")
|
|
15195
15195
|
}
|
|
15196
15196
|
);
|
|
15197
|
-
if (
|
|
15198
|
-
if (selection.fields)
|
|
15199
|
-
else
|
|
15197
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
15198
|
+
if (selection.fields) _chunkO4ZMADW4js.printJson.call(void 0, play, selection.fields);
|
|
15199
|
+
else _chunkO4ZMADW4js.printCompactJson.call(void 0, play);
|
|
15200
15200
|
return 0;
|
|
15201
15201
|
}
|
|
15202
15202
|
printPlayDescription(play);
|
|
@@ -15218,7 +15218,7 @@ async function handlePlaySave(args) {
|
|
|
15218
15218
|
}
|
|
15219
15219
|
let graph;
|
|
15220
15220
|
try {
|
|
15221
|
-
graph = await
|
|
15221
|
+
graph = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
15222
15222
|
"cli.play_save_bundle_graph",
|
|
15223
15223
|
{ targetKind: "file" },
|
|
15224
15224
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15240,7 +15240,7 @@ async function handlePlaySave(args) {
|
|
|
15240
15240
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15241
15241
|
};
|
|
15242
15242
|
if (options.jsonOutput) {
|
|
15243
|
-
|
|
15243
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, result);
|
|
15244
15244
|
} else {
|
|
15245
15245
|
console.error(result.message);
|
|
15246
15246
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15262,7 +15262,7 @@ async function handlePlaySave(args) {
|
|
|
15262
15262
|
};
|
|
15263
15263
|
if (options.dryRun) {
|
|
15264
15264
|
if (options.jsonOutput) {
|
|
15265
|
-
|
|
15265
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, dryRun);
|
|
15266
15266
|
} else {
|
|
15267
15267
|
console.log(`Dry run: ${playName}`);
|
|
15268
15268
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15271,14 +15271,14 @@ async function handlePlaySave(args) {
|
|
|
15271
15271
|
}
|
|
15272
15272
|
return 0;
|
|
15273
15273
|
}
|
|
15274
|
-
const client = new (0,
|
|
15274
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
15275
15275
|
try {
|
|
15276
|
-
await
|
|
15276
|
+
await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
15277
15277
|
"cli.play_save_compile_manifests",
|
|
15278
15278
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15279
15279
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15280
15280
|
);
|
|
15281
|
-
const saved = await
|
|
15281
|
+
const saved = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
15282
15282
|
"cli.play_save_register_draft",
|
|
15283
15283
|
{ targetKind: "file", playName, artifactHash },
|
|
15284
15284
|
() => client.registerPlayArtifact({
|
|
@@ -15307,7 +15307,7 @@ async function handlePlaySave(args) {
|
|
|
15307
15307
|
}
|
|
15308
15308
|
};
|
|
15309
15309
|
if (options.jsonOutput) {
|
|
15310
|
-
|
|
15310
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, result);
|
|
15311
15311
|
} else {
|
|
15312
15312
|
console.log(
|
|
15313
15313
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15333,7 +15333,7 @@ async function handlePlayPublish(args) {
|
|
|
15333
15333
|
}
|
|
15334
15334
|
const { target: playName, useLatest } = options;
|
|
15335
15335
|
let revisionId = options.revisionId;
|
|
15336
|
-
const client = new (0,
|
|
15336
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
15337
15337
|
if (isFileTarget(playName)) {
|
|
15338
15338
|
if (revisionId || useLatest) {
|
|
15339
15339
|
console.error(
|
|
@@ -15343,7 +15343,7 @@ async function handlePlayPublish(args) {
|
|
|
15343
15343
|
}
|
|
15344
15344
|
let graph;
|
|
15345
15345
|
try {
|
|
15346
|
-
graph = await
|
|
15346
|
+
graph = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
15347
15347
|
"cli.play_publish_bundle_graph",
|
|
15348
15348
|
{ targetKind: "file" },
|
|
15349
15349
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15365,7 +15365,7 @@ async function handlePlayPublish(args) {
|
|
|
15365
15365
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15366
15366
|
};
|
|
15367
15367
|
if (options.jsonOutput) {
|
|
15368
|
-
|
|
15368
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, result3);
|
|
15369
15369
|
} else {
|
|
15370
15370
|
console.error(result3.message);
|
|
15371
15371
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15388,7 +15388,7 @@ async function handlePlayPublish(args) {
|
|
|
15388
15388
|
};
|
|
15389
15389
|
if (options.dryRun) {
|
|
15390
15390
|
if (options.jsonOutput) {
|
|
15391
|
-
|
|
15391
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, dryRun);
|
|
15392
15392
|
} else {
|
|
15393
15393
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15394
15394
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15407,12 +15407,12 @@ async function handlePlayPublish(args) {
|
|
|
15407
15407
|
}
|
|
15408
15408
|
}
|
|
15409
15409
|
try {
|
|
15410
|
-
await
|
|
15410
|
+
await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
15411
15411
|
"cli.play_publish_compile_manifests",
|
|
15412
15412
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15413
15413
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15414
15414
|
);
|
|
15415
|
-
await
|
|
15415
|
+
await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
15416
15416
|
"cli.play_publish_imports",
|
|
15417
15417
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15418
15418
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15421,7 +15421,7 @@ async function handlePlayPublish(args) {
|
|
|
15421
15421
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15422
15422
|
return 1;
|
|
15423
15423
|
}
|
|
15424
|
-
const published = await
|
|
15424
|
+
const published = await _chunkK3BARC72js.traceCliSpan.call(void 0,
|
|
15425
15425
|
"cli.play_publish_register_root",
|
|
15426
15426
|
{
|
|
15427
15427
|
targetKind: "file",
|
|
@@ -15456,7 +15456,7 @@ async function handlePlayPublish(args) {
|
|
|
15456
15456
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15457
15457
|
};
|
|
15458
15458
|
if (options.jsonOutput) {
|
|
15459
|
-
|
|
15459
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, result2);
|
|
15460
15460
|
} else {
|
|
15461
15461
|
printPublishReceipt({
|
|
15462
15462
|
name: rootPlayName,
|
|
@@ -15487,7 +15487,7 @@ async function handlePlayPublish(args) {
|
|
|
15487
15487
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15488
15488
|
latest: useLatest
|
|
15489
15489
|
};
|
|
15490
|
-
|
|
15490
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, result2);
|
|
15491
15491
|
return 0;
|
|
15492
15492
|
}
|
|
15493
15493
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15511,7 +15511,7 @@ async function handlePlayPublish(args) {
|
|
|
15511
15511
|
revisionId ? { revisionId } : {}
|
|
15512
15512
|
);
|
|
15513
15513
|
if (options.jsonOutput) {
|
|
15514
|
-
|
|
15514
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, result);
|
|
15515
15515
|
} else {
|
|
15516
15516
|
printPublishReceipt({
|
|
15517
15517
|
name: result.name,
|
|
@@ -15551,7 +15551,7 @@ async function handlePlayDelete(args) {
|
|
|
15551
15551
|
);
|
|
15552
15552
|
return 2;
|
|
15553
15553
|
}
|
|
15554
|
-
const client = new (0,
|
|
15554
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
15555
15555
|
let detail;
|
|
15556
15556
|
try {
|
|
15557
15557
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15575,8 +15575,8 @@ async function handlePlayDelete(args) {
|
|
|
15575
15575
|
name: resolvedName,
|
|
15576
15576
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15577
15577
|
};
|
|
15578
|
-
if (
|
|
15579
|
-
|
|
15578
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
15579
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, result2);
|
|
15580
15580
|
} else {
|
|
15581
15581
|
process.stdout.write(
|
|
15582
15582
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15586,8 +15586,8 @@ async function handlePlayDelete(args) {
|
|
|
15586
15586
|
return 0;
|
|
15587
15587
|
}
|
|
15588
15588
|
const result = await client.deletePlay(resolvedName);
|
|
15589
|
-
if (
|
|
15590
|
-
|
|
15589
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
15590
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, result);
|
|
15591
15591
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15592
15592
|
}
|
|
15593
15593
|
if (result.alreadyArchived) {
|
|
@@ -15626,13 +15626,13 @@ async function handlePlayRestore(args) {
|
|
|
15626
15626
|
);
|
|
15627
15627
|
return 2;
|
|
15628
15628
|
}
|
|
15629
|
-
const client = new (0,
|
|
15629
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
15630
15630
|
try {
|
|
15631
15631
|
const result = await client.restorePlay(
|
|
15632
15632
|
parseReferencedPlayTarget(playName).playName
|
|
15633
15633
|
);
|
|
15634
|
-
if (
|
|
15635
|
-
|
|
15634
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
15635
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, result);
|
|
15636
15636
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
15637
15637
|
}
|
|
15638
15638
|
if (result.alreadyActive) {
|
|
@@ -15759,21 +15759,21 @@ Common commands:
|
|
|
15759
15759
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
15760
15760
|
}
|
|
15761
15761
|
};
|
|
15762
|
-
|
|
15762
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0, result2, {
|
|
15763
15763
|
json: options.json,
|
|
15764
15764
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
15765
15765
|
`
|
|
15766
15766
|
});
|
|
15767
15767
|
return;
|
|
15768
15768
|
}
|
|
15769
|
-
const client = new (0,
|
|
15769
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
15770
15770
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
15771
15771
|
throw new Error(
|
|
15772
15772
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
15773
15773
|
);
|
|
15774
15774
|
}
|
|
15775
15775
|
const result = await client.startPlayRun(saved.request);
|
|
15776
|
-
|
|
15776
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
15777
15777
|
{ ...result },
|
|
15778
15778
|
{
|
|
15779
15779
|
json: options.json,
|
|
@@ -15809,7 +15809,7 @@ Examples:
|
|
|
15809
15809
|
).action(async (target, options) => {
|
|
15810
15810
|
process.exitCode = await handlePlayCheck([
|
|
15811
15811
|
target,
|
|
15812
|
-
...
|
|
15812
|
+
..._chunkO4ZMADW4js.jsonFieldArgs.call(void 0, options.json),
|
|
15813
15813
|
...options.full ? ["--full"] : []
|
|
15814
15814
|
]);
|
|
15815
15815
|
});
|
|
@@ -15848,10 +15848,10 @@ Notes:
|
|
|
15848
15848
|
--force-tool-refresh re-executes completed tool receipts and may repeat billed
|
|
15849
15849
|
provider calls. It is independent from --force.
|
|
15850
15850
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
15851
|
-
resident-work ceiling. Default: ${
|
|
15851
|
+
resident-work ceiling. Default: ${_chunkUOAHDEAIjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkUOAHDEAIjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
15852
15852
|
Provider pacing and sandbox memory limits still apply.
|
|
15853
15853
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
15854
|
-
resolvers. Accepted range: 1-${
|
|
15854
|
+
resolvers. Accepted range: 1-${_chunkUOAHDEAIjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
15855
15855
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
15856
15856
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
15857
15857
|
Tool calls that would exceed it are denied.
|
|
@@ -15965,10 +15965,10 @@ Examples:
|
|
|
15965
15965
|
"Refresh completed tool receipts; may repeat billed provider calls"
|
|
15966
15966
|
).option(
|
|
15967
15967
|
"--max-concurrent-external-calls <count>",
|
|
15968
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
15968
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkUOAHDEAIjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkUOAHDEAIjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
15969
15969
|
).option(
|
|
15970
15970
|
"--max-concurrent-rows <count>",
|
|
15971
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
15971
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkUOAHDEAIjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
15972
15972
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the play page in a browser after the run starts").option(
|
|
15973
15973
|
"--debug-map-latency",
|
|
15974
15974
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16013,14 +16013,14 @@ JSON field selection:
|
|
|
16013
16013
|
passthroughArgs.shift();
|
|
16014
16014
|
}
|
|
16015
16015
|
const exitCode = await handlePlayRun(
|
|
16016
|
-
|
|
16016
|
+
_chunkUOAHDEAIjs.resolvePlayRunCliOptions.call(void 0,
|
|
16017
16017
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16018
16018
|
options,
|
|
16019
16019
|
passthroughArgs,
|
|
16020
|
-
|
|
16020
|
+
_chunkK3BARC72js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16021
16021
|
)
|
|
16022
16022
|
);
|
|
16023
|
-
|
|
16023
|
+
_chunkK3BARC72js.recordCliTrace.call(void 0, {
|
|
16024
16024
|
phase: "cli.play_command_exit",
|
|
16025
16025
|
exitCode
|
|
16026
16026
|
});
|
|
@@ -16069,9 +16069,9 @@ Examples:
|
|
|
16069
16069
|
const limit = Number(options.historyLimit);
|
|
16070
16070
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16071
16071
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16072
|
-
const client = new (0,
|
|
16072
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
16073
16073
|
if (options.binding) {
|
|
16074
|
-
|
|
16074
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0,
|
|
16075
16075
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16076
16076
|
);
|
|
16077
16077
|
return;
|
|
@@ -16079,7 +16079,7 @@ Examples:
|
|
|
16079
16079
|
const result = await client.listPlayTriggerInventory({
|
|
16080
16080
|
cursor: options.cursor
|
|
16081
16081
|
});
|
|
16082
|
-
|
|
16082
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, {
|
|
16083
16083
|
...result,
|
|
16084
16084
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16085
16085
|
});
|
|
@@ -16126,7 +16126,7 @@ Examples:
|
|
|
16126
16126
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16127
16127
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16128
16128
|
}
|
|
16129
|
-
const result = await new (0,
|
|
16129
|
+
const result = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().getPlaysActivity({
|
|
16130
16130
|
timeZone: options.timeZone,
|
|
16131
16131
|
days,
|
|
16132
16132
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16140,7 +16140,7 @@ Examples:
|
|
|
16140
16140
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16141
16141
|
);
|
|
16142
16142
|
}
|
|
16143
|
-
|
|
16143
|
+
_chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
|
|
16144
16144
|
{ ...result },
|
|
16145
16145
|
{
|
|
16146
16146
|
json: Boolean(options.json),
|
|
@@ -16169,7 +16169,7 @@ Examples:
|
|
|
16169
16169
|
false
|
|
16170
16170
|
);
|
|
16171
16171
|
});
|
|
16172
|
-
|
|
16172
|
+
_chunkWLIFUH6Wjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16173
16173
|
play,
|
|
16174
16174
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16175
16175
|
);
|
|
@@ -16210,9 +16210,9 @@ Examples:
|
|
|
16210
16210
|
"--json [fields]",
|
|
16211
16211
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16212
16212
|
);
|
|
16213
|
-
|
|
16213
|
+
_chunkZAB6KCZWjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16214
16214
|
async (target, options) => {
|
|
16215
|
-
const ownView = () => handlePlayDescribe(
|
|
16215
|
+
const ownView = () => handlePlayDescribe(_chunkO4ZMADW4js.describeArgs.call(void 0, target, options));
|
|
16216
16216
|
const [flagText] = [options.json].filter(
|
|
16217
16217
|
(value) => typeof value === "string"
|
|
16218
16218
|
);
|
|
@@ -16223,7 +16223,7 @@ Examples:
|
|
|
16223
16223
|
process.exitCode = await ownView();
|
|
16224
16224
|
return;
|
|
16225
16225
|
}
|
|
16226
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16226
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-APW5TWBT.js")));
|
|
16227
16227
|
process.exitCode = await describeAnything(
|
|
16228
16228
|
name,
|
|
16229
16229
|
{
|
|
@@ -16341,7 +16341,7 @@ Examples:
|
|
|
16341
16341
|
deepline plays deployments <deployment-id>
|
|
16342
16342
|
`
|
|
16343
16343
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16344
|
-
async (id, options) => id ?
|
|
16344
|
+
async (id, options) => id ? _chunkZQERHPZAjs.handleDeploymentGet.call(void 0, id, options) : _chunkZQERHPZAjs.handleDeploymentsList.call(void 0, options)
|
|
16345
16345
|
);
|
|
16346
16346
|
addPublishHelp(
|
|
16347
16347
|
play.command("publish <target>").description(
|
|
@@ -16476,14 +16476,14 @@ Examples:
|
|
|
16476
16476
|
const limit = Number(options.limit);
|
|
16477
16477
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16478
16478
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16479
|
-
const result = await new (0,
|
|
16479
|
+
const result = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().runs.rowHistory({
|
|
16480
16480
|
playName: options.play,
|
|
16481
16481
|
runId,
|
|
16482
16482
|
tableNamespace: options.dataset,
|
|
16483
16483
|
limit,
|
|
16484
16484
|
cursor: options.cursor
|
|
16485
16485
|
});
|
|
16486
|
-
|
|
16486
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, {
|
|
16487
16487
|
...result,
|
|
16488
16488
|
...result.nextCursor ? {
|
|
16489
16489
|
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`
|
|
@@ -16557,7 +16557,7 @@ Examples:
|
|
|
16557
16557
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16558
16558
|
).action(async (runId, options) => {
|
|
16559
16559
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16560
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16560
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-JXYN7WOE.js")));
|
|
16561
16561
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16562
16562
|
receiptJson: options.json !== void 0
|
|
16563
16563
|
});
|
|
@@ -16565,7 +16565,7 @@ Examples:
|
|
|
16565
16565
|
}
|
|
16566
16566
|
process.exitCode = await handleRunGet([
|
|
16567
16567
|
runId,
|
|
16568
|
-
...
|
|
16568
|
+
..._chunkO4ZMADW4js.jsonFieldArgs.call(void 0, options.json),
|
|
16569
16569
|
...options.webUrl ? ["--web-url"] : [],
|
|
16570
16570
|
...options.full ? ["--full"] : [],
|
|
16571
16571
|
...options.input ? ["--input"] : [],
|
|
@@ -16855,7 +16855,7 @@ Examples:
|
|
|
16855
16855
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
16856
16856
|
...options.wait ? ["--wait"] : [],
|
|
16857
16857
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
16858
|
-
...
|
|
16858
|
+
..._chunkO4ZMADW4js.jsonFieldArgs.call(void 0, options.json)
|
|
16859
16859
|
]);
|
|
16860
16860
|
});
|
|
16861
16861
|
const share = play.command("share").description(
|
|
@@ -17021,10 +17021,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17021
17021
|
return 2;
|
|
17022
17022
|
}
|
|
17023
17023
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17024
|
-
const status = await new (0,
|
|
17024
|
+
const status = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().getSharePage(name);
|
|
17025
17025
|
const outputStatus = shareStatusForOutput(status);
|
|
17026
|
-
if (
|
|
17027
|
-
|
|
17026
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
17027
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, outputStatus);
|
|
17028
17028
|
return 0;
|
|
17029
17029
|
}
|
|
17030
17030
|
if (!outputStatus.share) {
|
|
@@ -17063,7 +17063,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17063
17063
|
return 2;
|
|
17064
17064
|
}
|
|
17065
17065
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17066
|
-
const client = new (0,
|
|
17066
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
17067
17067
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17068
17068
|
let resolvedVersion;
|
|
17069
17069
|
if (!revisionId) {
|
|
@@ -17094,8 +17094,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17094
17094
|
);
|
|
17095
17095
|
if (!hasCompleted) {
|
|
17096
17096
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17097
|
-
if (
|
|
17098
|
-
|
|
17097
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
17098
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, {
|
|
17099
17099
|
ok: false,
|
|
17100
17100
|
code: "NO_SUCCESSFUL_RUN",
|
|
17101
17101
|
message,
|
|
@@ -17119,8 +17119,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17119
17119
|
};
|
|
17120
17120
|
if (args.includes("--dry-run")) {
|
|
17121
17121
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17122
|
-
if (
|
|
17123
|
-
|
|
17122
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
17123
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, plan);
|
|
17124
17124
|
} else {
|
|
17125
17125
|
console.log(
|
|
17126
17126
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17130,8 +17130,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17130
17130
|
}
|
|
17131
17131
|
const status = await client.publishSharePage(name, request);
|
|
17132
17132
|
const outputStatus = shareStatusForOutput(status);
|
|
17133
|
-
if (
|
|
17134
|
-
|
|
17133
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
17134
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, outputStatus);
|
|
17135
17135
|
return 0;
|
|
17136
17136
|
}
|
|
17137
17137
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17162,9 +17162,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17162
17162
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17163
17163
|
...seoIndexing ? { seoIndexing } : {}
|
|
17164
17164
|
};
|
|
17165
|
-
const status = await new (0,
|
|
17166
|
-
if (
|
|
17167
|
-
|
|
17165
|
+
const status = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().updateSharePage(name, request);
|
|
17166
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
17167
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, status);
|
|
17168
17168
|
return 0;
|
|
17169
17169
|
}
|
|
17170
17170
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17179,7 +17179,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17179
17179
|
return 2;
|
|
17180
17180
|
}
|
|
17181
17181
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17182
|
-
const client = new (0,
|
|
17182
|
+
const client = new (0, _chunkZIMCLWEWjs.DeeplineClient)();
|
|
17183
17183
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17184
17184
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17185
17185
|
if (!revisionId && versionFlag) {
|
|
@@ -17196,8 +17196,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17196
17196
|
revisionId ? { revisionId } : {}
|
|
17197
17197
|
);
|
|
17198
17198
|
const outputStatus = shareStatusForOutput(status);
|
|
17199
|
-
if (
|
|
17200
|
-
|
|
17199
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
17200
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, outputStatus);
|
|
17201
17201
|
return 0;
|
|
17202
17202
|
}
|
|
17203
17203
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17222,9 +17222,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17222
17222
|
return 2;
|
|
17223
17223
|
}
|
|
17224
17224
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17225
|
-
const status = await new (0,
|
|
17226
|
-
if (
|
|
17227
|
-
|
|
17225
|
+
const status = await new (0, _chunkZIMCLWEWjs.DeeplineClient)().unpublishSharePage(name);
|
|
17226
|
+
if (_chunkO4ZMADW4js.argsWantJson.call(void 0, args)) {
|
|
17227
|
+
_chunkO4ZMADW4js.printCompactJson.call(void 0, status);
|
|
17228
17228
|
return 0;
|
|
17229
17229
|
}
|
|
17230
17230
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17298,4 +17298,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17298
17298
|
|
|
17299
17299
|
|
|
17300
17300
|
|
|
17301
|
-
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.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 =
|
|
17301
|
+
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.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 = _chunkUOAHDEAIjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkUOAHDEAIjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
|