deepline 0.3.512 → 0.3.513
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/cli/{artifacts-YSYWQFQQ.mjs → artifacts-AMM4RZNI.mjs} +6 -6
- package/dist/cli/{artifacts-5IGM3EYP.js → artifacts-SZA52D3P.js} +18 -18
- package/dist/cli/{auth-4MVWCUXS.mjs → auth-3HQ7FXPX.mjs} +5 -5
- package/dist/cli/auth-THCURTEC.js +43 -0
- package/dist/cli/{billing-SZXRENPC.mjs → billing-7AIKDEQQ.mjs} +7 -7
- package/dist/cli/{billing-OYYHWNVS.js → billing-SVFRN4BJ.js} +82 -82
- package/dist/cli/{chunk-MQ5GBB7V.mjs → chunk-3SE4O52N.mjs} +1 -1
- package/dist/cli/{chunk-VZN6D23P.js → chunk-3UKVFI2R.js} +7 -7
- package/dist/cli/{chunk-JDD6OLWN.mjs → chunk-3WHK7WCP.mjs} +3 -3
- package/dist/cli/{chunk-YJN55ZWG.mjs → chunk-46QVEEXR.mjs} +1 -1
- package/dist/cli/{chunk-Q72Q3ZWB.js → chunk-4EGBOZ53.js} +9 -9
- package/dist/cli/{chunk-FF25PDQ2.js → chunk-5IZXMA2L.js} +4 -1
- package/dist/cli/{chunk-AATUAFD2.mjs → chunk-5T4SZPVO.mjs} +2 -2
- package/dist/cli/{chunk-77DPQI6W.mjs → chunk-5UWWZLMX.mjs} +4 -1
- package/dist/cli/{chunk-VGCNLFER.js → chunk-6JNRYX65.js} +2 -2
- package/dist/cli/{chunk-OU6AK63V.js → chunk-6UVAYLQG.js} +2 -2
- package/dist/cli/{chunk-FJPJ6SO3.mjs → chunk-7NIBAJML.mjs} +2 -2
- package/dist/cli/{chunk-TNQ5MF6K.mjs → chunk-7UVKC5G4.mjs} +1 -1
- package/dist/cli/{chunk-V6FQRUPJ.js → chunk-ADB6FD2Q.js} +41 -41
- package/dist/cli/{chunk-32UMZXCZ.mjs → chunk-B4BKATGX.mjs} +5 -5
- package/dist/cli/{chunk-3INAN6EK.mjs → chunk-C5KH6FDN.mjs} +3 -3
- package/dist/cli/{chunk-RXZRZEW7.mjs → chunk-CEWRCUSH.mjs} +5 -5
- package/dist/cli/{chunk-4QR64X2S.js → chunk-D72M5LBQ.js} +10 -10
- package/dist/cli/{chunk-KBM5T6UV.js → chunk-EAQQTYJL.js} +5 -5
- package/dist/cli/{chunk-XKFWY4IK.mjs → chunk-FC6BR2OA.mjs} +10 -10
- package/dist/cli/{chunk-I6OK54YK.mjs → chunk-FLG3VIDQ.mjs} +5 -5
- package/dist/cli/{chunk-ZLHIQU2G.js → chunk-H6WD65CD.js} +96 -96
- package/dist/cli/{chunk-4ZDHGAE6.js → chunk-HDDE4Y4V.js} +2 -2
- package/dist/cli/{chunk-IMC2HQ6V.js → chunk-JA5PBN44.js} +6 -6
- package/dist/cli/{chunk-RR6G6ZCT.js → chunk-JI2LKS5V.js} +11 -11
- package/dist/cli/{chunk-EQAKPIGI.mjs → chunk-JNNQ53BX.mjs} +2 -2
- package/dist/cli/{chunk-LYOWQKGN.mjs → chunk-K3CUVLW7.mjs} +1 -1
- package/dist/cli/{chunk-ZVYMGTZ7.mjs → chunk-KINDIV44.mjs} +4 -4
- package/dist/cli/{chunk-DJ4FD5DR.mjs → chunk-LA66PYB4.mjs} +2 -2
- package/dist/cli/{chunk-BP4XEO6Z.js → chunk-MPOF4Z44.js} +1 -1
- package/dist/cli/{chunk-2R6M62UO.mjs → chunk-OD72PULZ.mjs} +2 -2
- package/dist/cli/{chunk-AVYI522S.js → chunk-ORQVTTTM.js} +5 -5
- package/dist/cli/{chunk-GJMIW4Q6.mjs → chunk-P2EHYH2Q.mjs} +1 -1
- package/dist/cli/{chunk-MTSHUN2R.mjs → chunk-P63SBUEW.mjs} +1 -1
- package/dist/cli/{chunk-7U3WY2F3.js → chunk-P6TG7COR.js} +53 -53
- package/dist/cli/{chunk-HCMFRAYT.js → chunk-PFEFK2FB.js} +26 -26
- package/dist/cli/{chunk-L7CAOWHY.js → chunk-PGHCBL5G.js} +3 -3
- package/dist/cli/{chunk-2BS6BRGH.mjs → chunk-PPQU263U.mjs} +2 -2
- package/dist/cli/{chunk-JU35QU3Z.js → chunk-QDGUDNVR.js} +7 -7
- package/dist/cli/{chunk-P3RYPSOQ.mjs → chunk-ROIFA4H7.mjs} +6 -6
- package/dist/cli/{chunk-JH7JISQ2.mjs → chunk-ROJ55CXM.mjs} +1 -1
- package/dist/cli/{chunk-JKLFRDQ6.js → chunk-SDD75XIU.js} +6 -6
- package/dist/cli/{chunk-W7DAWILZ.js → chunk-TWHJ4WCA.js} +16 -16
- package/dist/cli/{chunk-4DSRBHN6.js → chunk-U5QR527Y.js} +44 -44
- package/dist/cli/{chunk-O24VWLOY.js → chunk-UDVX7HKU.js} +16 -16
- package/dist/cli/{chunk-PJCPFF7J.js → chunk-VMLZQ3VM.js} +14 -14
- package/dist/cli/{chunk-YNMHIJC5.mjs → chunk-WFN6SB2B.mjs} +1 -1
- package/dist/cli/{chunk-5XLU47DG.mjs → chunk-XCP75LSJ.mjs} +1 -1
- package/dist/cli/{chunk-ZZ7SVWKR.js → chunk-Y2SIHXYS.js} +4 -4
- package/dist/cli/{chunk-WDCOUJQ5.js → chunk-YZW4ZLU3.js} +21 -21
- package/dist/cli/{chunk-TKN2TRW5.js → chunk-Z52XVM5I.js} +3 -3
- package/dist/cli/{chunk-T3SUWKUT.mjs → chunk-ZDO67LFA.mjs} +5 -5
- package/dist/cli/{chunk-HA5NSCTH.mjs → chunk-ZKUXTF6X.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-AY4KT3NZ.mjs → csv-56JWAO3Y.mjs} +4 -4
- package/dist/cli/{csv-YR2E5HNM.js → csv-WKF5O6C4.js} +13 -13
- package/dist/cli/{db-IMYD3OCM.mjs → db-SENEFS45.mjs} +6 -6
- package/dist/cli/{db-YKV6564I.js → db-UURETUXZ.js} +27 -27
- package/dist/cli/describe-GIJAGNZM.js +50 -0
- package/dist/cli/{describe-72GI2Q6T.mjs → describe-R3XKAGF5.mjs} +18 -18
- package/dist/cli/{executions-2YO6KIP3.mjs → executions-BAUUWHSW.mjs} +6 -6
- package/dist/cli/{executions-OSNL5CSU.js → executions-WZUS3S2K.js} +8 -8
- package/dist/cli/{feedback-SYDNAT62.mjs → feedback-5SCDE247.mjs} +5 -5
- package/dist/cli/{feedback-WSA7YTKS.js → feedback-Z6A7WMJS.js} +10 -10
- package/dist/cli/{git-WBH7N3EF.mjs → git-246MRTK7.mjs} +5 -5
- package/dist/cli/git-D5UAIEQE.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-BZPLWY5C.js → legacy-noops-AKETAVNI.js} +9 -9
- package/dist/cli/{legacy-noops-USZM4ZXF.mjs → legacy-noops-M242HT67.mjs} +6 -6
- package/dist/cli/{monitors-6HOZMLEV.mjs → monitors-N5T6PLCX.mjs} +7 -7
- package/dist/cli/{monitors-XHXAMMYC.js → monitors-QIHYTSKD.js} +100 -100
- package/dist/cli/{org-BAAOAZF3.js → org-BSCPIN7Y.js} +72 -72
- package/dist/cli/{org-LT3DICB4.mjs → org-YMDLKBVM.mjs} +6 -6
- package/dist/cli/{pages-7NP4PKLA.js → pages-BYSQBWD5.js} +18 -18
- package/dist/cli/{pages-MOCSTZZQ.mjs → pages-FRLPAY6I.mjs} +6 -6
- package/dist/cli/{play-MGJ7B7RL.mjs → play-CMJI6RNI.mjs} +18 -18
- package/dist/cli/{play-CGUL22GL.js → play-OIJAMP5P.js} +317 -317
- package/dist/cli/{providers-5LCUHKX2.js → providers-6Q7H2RYZ.js} +9 -9
- package/dist/cli/{providers-AOWBHJ24.mjs → providers-KWFIH3E7.mjs} +6 -6
- package/dist/cli/{quickstart-7YZUT7GO.js → quickstart-GU35UZPU.js} +6 -6
- package/dist/cli/{quickstart-Z6NA2CCM.mjs → quickstart-UZWAQ7VJ.mjs} +4 -4
- package/dist/cli/{run-7QGBNUKE.mjs → run-AJ24G4CT.mjs} +23 -23
- package/dist/cli/{run-M66ILCWL.js → run-OYOQIVBM.js} +41 -41
- package/dist/cli/{search-Z2T3B4V4.mjs → search-2KNDV3DL.mjs} +8 -8
- package/dist/cli/search-UZM6U4MZ.js +33 -0
- package/dist/cli/{search-output-6OHPSJGK.js → search-output-526FOJQD.js} +6 -6
- package/dist/cli/{search-output-MLHVBRIR.mjs → search-output-X5TMIIA4.mjs} +4 -4
- package/dist/cli/{secrets-T7MW2DMK.js → secrets-QL5SMK62.js} +15 -15
- package/dist/cli/{secrets-VBSILT5H.mjs → secrets-XEOGG6TV.mjs} +6 -6
- package/dist/cli/sessions-T27GUYZX.js +18 -0
- package/dist/cli/{sessions-KNITGDLS.mjs → sessions-Z352OY5B.mjs} +6 -6
- package/dist/cli/{settings-NBZRRKZS.mjs → settings-AET5AKBY.mjs} +13 -13
- package/dist/cli/{settings-OSEBDBKR.js → settings-EKLYIRWJ.js} +86 -86
- package/dist/cli/{setup-7DZPC6FC.js → setup-IJWDEYLG.js} +50 -50
- package/dist/cli/{setup-WTEQPZ5I.mjs → setup-JPGTZYR2.mjs} +10 -10
- package/dist/cli/{skills-JMD2MNJZ.mjs → skills-DGCK6723.mjs} +8 -8
- package/dist/cli/skills-MLMVPHWG.js +37 -0
- package/dist/cli/tools-5WBKZRLQ.js +57 -0
- package/dist/cli/{tools-LK5BM2Z7.mjs → tools-7GEQLQWX.mjs} +17 -17
- package/dist/cli/update-JK4NLT4H.js +35 -0
- package/dist/cli/{update-IVUSIA2E.mjs → update-SAN6LDPT.mjs} +10 -10
- package/dist/cli/{workflow-4QP6G54M.mjs → workflow-C66GOHRB.mjs} +7 -7
- package/dist/cli/{workflow-GY374FMJ.js → workflow-E4NGYGGM.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +106 -106
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-M3AJBJ3O.js +0 -43
- package/dist/cli/describe-UFGHQBM7.js +0 -50
- package/dist/cli/git-YYOW4CYQ.js +0 -25
- package/dist/cli/search-OZQH5VMI.js +0 -33
- package/dist/cli/sessions-XKEIBOTP.js +0 -18
- package/dist/cli/skills-R6RO6MQF.js +0 -37
- package/dist/cli/tools-NBBDUNPR.js +0 -57
- package/dist/cli/update-BI2ABPGX.js +0 -35
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk4EGBOZ53js = require('./chunk-4EGBOZ53.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,15 +18,15 @@ var _chunkQ72Q3ZWBjs = require('./chunk-Q72Q3ZWB.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkSDD75XIUjs = require('./chunk-SDD75XIU.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkJI2LKS5Vjs = require('./chunk-JI2LKS5V.js');
|
|
25
25
|
require('./chunk-D3BCSAN7.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkPFEFK2FBjs = require('./chunk-PFEFK2FB.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -51,10 +51,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkORQVTTTMjs = require('./chunk-ORQVTTTM.js');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkEAQQTYJLjs = require('./chunk-EAQQTYJL.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -67,7 +67,7 @@ var _chunkKBM5T6UVjs = require('./chunk-KBM5T6UV.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkQDGUDNVRjs = require('./chunk-QDGUDNVR.js');
|
|
71
71
|
require('./chunk-E4CABWXL.js');
|
|
72
72
|
|
|
73
73
|
|
|
@@ -91,19 +91,19 @@ require('./chunk-WSGXBROE.js');
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
var
|
|
94
|
+
var _chunkJA5PBN44js = require('./chunk-JA5PBN44.js');
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
var
|
|
101
|
-
require('./chunk-
|
|
100
|
+
var _chunkHDDE4Y4Vjs = require('./chunk-HDDE4Y4V.js');
|
|
101
|
+
require('./chunk-U5QR527Y.js');
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
var
|
|
106
|
-
require('./chunk-
|
|
105
|
+
var _chunkZ52XVM5Ijs = require('./chunk-Z52XVM5I.js');
|
|
106
|
+
require('./chunk-VMLZQ3VM.js');
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
|
|
@@ -123,17 +123,17 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
var
|
|
127
|
-
require('./chunk-
|
|
126
|
+
var _chunk3UKVFI2Rjs = require('./chunk-3UKVFI2R.js');
|
|
127
|
+
require('./chunk-PGHCBL5G.js');
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
130
|
+
var _chunkY2SIHXYSjs = require('./chunk-Y2SIHXYS.js');
|
|
131
131
|
require('./chunk-ALJJRZNJ.js');
|
|
132
132
|
require('./chunk-XNYIZMNQ.js');
|
|
133
133
|
|
|
134
134
|
|
|
135
135
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
136
|
-
require('./chunk-
|
|
136
|
+
require('./chunk-MPOF4Z44.js');
|
|
137
137
|
require('./chunk-OG64RBAC.js');
|
|
138
138
|
|
|
139
139
|
|
|
@@ -2115,7 +2115,7 @@ function resolveField(key, command) {
|
|
|
2115
2115
|
function printSettings(result, json, name) {
|
|
2116
2116
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2117
2117
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2118
|
-
|
|
2118
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
2119
2119
|
{
|
|
2120
2120
|
...result,
|
|
2121
2121
|
settings: Object.fromEntries(
|
|
@@ -2159,7 +2159,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2159
2159
|
valueSyntax: field.cli.valueSyntax,
|
|
2160
2160
|
examples: field.cli.examples
|
|
2161
2161
|
}));
|
|
2162
|
-
|
|
2162
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
2163
2163
|
{
|
|
2164
2164
|
fields: descriptions,
|
|
2165
2165
|
render: {
|
|
@@ -2184,7 +2184,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2184
2184
|
async (options, command) => {
|
|
2185
2185
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2186
2186
|
printSettings(
|
|
2187
|
-
await new (0,
|
|
2187
|
+
await new (0, _chunkEAQQTYJLjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2188
2188
|
options.json,
|
|
2189
2189
|
options.name
|
|
2190
2190
|
);
|
|
@@ -2215,7 +2215,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2215
2215
|
);
|
|
2216
2216
|
}
|
|
2217
2217
|
if (options.dryRun) {
|
|
2218
|
-
|
|
2218
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
2219
2219
|
{
|
|
2220
2220
|
dryRun: true,
|
|
2221
2221
|
play,
|
|
@@ -2236,7 +2236,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2236
2236
|
return;
|
|
2237
2237
|
}
|
|
2238
2238
|
printSettings(
|
|
2239
|
-
await new (0,
|
|
2239
|
+
await new (0, _chunkEAQQTYJLjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2240
2240
|
options.json
|
|
2241
2241
|
);
|
|
2242
2242
|
};
|
|
@@ -2262,13 +2262,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2262
2262
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2263
2263
|
{ exitCode: 2 }
|
|
2264
2264
|
);
|
|
2265
|
-
const page = await new (0,
|
|
2265
|
+
const page = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2266
2266
|
root: options.root,
|
|
2267
2267
|
limit,
|
|
2268
2268
|
cursor: options.cursor
|
|
2269
2269
|
});
|
|
2270
2270
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2271
|
-
|
|
2271
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
2272
2272
|
{
|
|
2273
2273
|
...page,
|
|
2274
2274
|
nextCommand,
|
|
@@ -2319,7 +2319,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2319
2319
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2320
2320
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2321
2321
|
};
|
|
2322
|
-
const client = new (0,
|
|
2322
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
2323
2323
|
const paths = [];
|
|
2324
2324
|
let cursor;
|
|
2325
2325
|
do {
|
|
@@ -2381,7 +2381,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2381
2381
|
moved.push(move.playName);
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
2384
|
-
|
|
2384
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
2385
2385
|
{
|
|
2386
2386
|
dryRun: Boolean(options.dryRun),
|
|
2387
2387
|
from: options.from,
|
|
@@ -2509,7 +2509,7 @@ function triggerLines(view) {
|
|
|
2509
2509
|
return lines;
|
|
2510
2510
|
}
|
|
2511
2511
|
function printView(view, json) {
|
|
2512
|
-
|
|
2512
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
2513
2513
|
{
|
|
2514
2514
|
...view,
|
|
2515
2515
|
render: {
|
|
@@ -2522,7 +2522,7 @@ function printView(view, json) {
|
|
|
2522
2522
|
);
|
|
2523
2523
|
}
|
|
2524
2524
|
function printResult(result, json) {
|
|
2525
|
-
|
|
2525
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
2526
2526
|
{
|
|
2527
2527
|
...result,
|
|
2528
2528
|
render: {
|
|
@@ -2552,7 +2552,7 @@ async function mutate(command, options, build) {
|
|
|
2552
2552
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2553
2553
|
}
|
|
2554
2554
|
if (options.dryRun) {
|
|
2555
|
-
|
|
2555
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
2556
2556
|
{
|
|
2557
2557
|
dryRun: true,
|
|
2558
2558
|
play: options.play,
|
|
@@ -2571,7 +2571,7 @@ async function mutate(command, options, build) {
|
|
|
2571
2571
|
return;
|
|
2572
2572
|
}
|
|
2573
2573
|
printResult(
|
|
2574
|
-
await new (0,
|
|
2574
|
+
await new (0, _chunkEAQQTYJLjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2575
2575
|
options.json
|
|
2576
2576
|
);
|
|
2577
2577
|
}
|
|
@@ -2604,7 +2604,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2604
2604
|
}).addHelpText("after", help2);
|
|
2605
2605
|
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
|
|
2606
2606
|
printView(
|
|
2607
|
-
await new (0,
|
|
2607
|
+
await new (0, _chunkEAQQTYJLjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2608
2608
|
options.json
|
|
2609
2609
|
);
|
|
2610
2610
|
});
|
|
@@ -2648,7 +2648,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2648
2648
|
if (options.auth === void 0) {
|
|
2649
2649
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2650
2650
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2651
|
-
const current = await new (0,
|
|
2651
|
+
const current = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2652
2652
|
options.play
|
|
2653
2653
|
);
|
|
2654
2654
|
return {
|
|
@@ -2725,7 +2725,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2725
2725
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2726
2726
|
"runtime.event": "Other event."
|
|
2727
2727
|
};
|
|
2728
|
-
var RUN_LOGS_KIND_HELP =
|
|
2728
|
+
var RUN_LOGS_KIND_HELP = _chunkQDGUDNVRjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2729
2729
|
kind,
|
|
2730
2730
|
description: KIND_DESCRIPTIONS[kind]
|
|
2731
2731
|
}));
|
|
@@ -2862,9 +2862,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2862
2862
|
const args = program.args;
|
|
2863
2863
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2864
2864
|
error.exitCode = 2;
|
|
2865
|
-
if (
|
|
2866
|
-
|
|
2867
|
-
Object.assign(new (0,
|
|
2865
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2866
|
+
_chunk3UKVFI2Rjs.printJsonError.call(void 0,
|
|
2867
|
+
Object.assign(new (0, _chunkQDGUDNVRjs.RunEventQueryInputError)(error.message), {
|
|
2868
2868
|
exitCode: 2,
|
|
2869
2869
|
retryable: false
|
|
2870
2870
|
})
|
|
@@ -2908,14 +2908,14 @@ function parseQuery(args, resource) {
|
|
|
2908
2908
|
if (VALUE_FLAGS.has(flag)) {
|
|
2909
2909
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2910
2910
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2911
|
-
throw new (0,
|
|
2911
|
+
throw new (0, _chunkQDGUDNVRjs.RunEventQueryInputError)(
|
|
2912
2912
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2913
2913
|
);
|
|
2914
2914
|
}
|
|
2915
2915
|
if (flag === "--sum") sums.push(value);
|
|
2916
2916
|
else {
|
|
2917
2917
|
if (values[flag] !== void 0) {
|
|
2918
|
-
throw new (0,
|
|
2918
|
+
throw new (0, _chunkQDGUDNVRjs.RunEventQueryInputError)(
|
|
2919
2919
|
`${flag} may only be supplied once.`
|
|
2920
2920
|
);
|
|
2921
2921
|
}
|
|
@@ -2929,12 +2929,12 @@ function parseQuery(args, resource) {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
if (arg.startsWith("-")) {
|
|
2931
2931
|
const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
|
|
2932
|
-
throw new (0,
|
|
2932
|
+
throw new (0, _chunkQDGUDNVRjs.RunEventQueryInputError)(
|
|
2933
2933
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2934
2934
|
);
|
|
2935
2935
|
}
|
|
2936
2936
|
if (runId !== void 0) {
|
|
2937
|
-
throw new (0,
|
|
2937
|
+
throw new (0, _chunkQDGUDNVRjs.RunEventQueryInputError)(
|
|
2938
2938
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2939
2939
|
);
|
|
2940
2940
|
}
|
|
@@ -2942,7 +2942,7 @@ function parseQuery(args, resource) {
|
|
|
2942
2942
|
}
|
|
2943
2943
|
if (switches.has("--fields")) {
|
|
2944
2944
|
if (runId !== void 0) {
|
|
2945
|
-
throw new (0,
|
|
2945
|
+
throw new (0, _chunkQDGUDNVRjs.RunEventQueryInputError)(
|
|
2946
2946
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2947
2947
|
);
|
|
2948
2948
|
}
|
|
@@ -2955,18 +2955,18 @@ function parseQuery(args, resource) {
|
|
|
2955
2955
|
)
|
|
2956
2956
|
];
|
|
2957
2957
|
if (incompatible.length) {
|
|
2958
|
-
throw new (0,
|
|
2958
|
+
throw new (0, _chunkQDGUDNVRjs.RunEventQueryInputError)(
|
|
2959
2959
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2960
2960
|
);
|
|
2961
2961
|
}
|
|
2962
2962
|
}
|
|
2963
2963
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2964
|
-
throw new (0,
|
|
2964
|
+
throw new (0, _chunkQDGUDNVRjs.RunEventQueryInputError)(
|
|
2965
2965
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2966
2966
|
);
|
|
2967
2967
|
}
|
|
2968
2968
|
if (sums.length && switches.has("--count")) {
|
|
2969
|
-
throw new (0,
|
|
2969
|
+
throw new (0, _chunkQDGUDNVRjs.RunEventQueryInputError)(
|
|
2970
2970
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2971
2971
|
);
|
|
2972
2972
|
}
|
|
@@ -2974,7 +2974,7 @@ function parseQuery(args, resource) {
|
|
|
2974
2974
|
if (operation === "count") {
|
|
2975
2975
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2976
2976
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2977
|
-
throw new (0,
|
|
2977
|
+
throw new (0, _chunkQDGUDNVRjs.RunEventQueryInputError)(
|
|
2978
2978
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2979
2979
|
);
|
|
2980
2980
|
}
|
|
@@ -3009,16 +3009,16 @@ function parseQuery(args, resource) {
|
|
|
3009
3009
|
];
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
|
-
const request =
|
|
3012
|
+
const request = _chunkQDGUDNVRjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3013
3013
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3014
3014
|
const backend = values["--runtime-backend"];
|
|
3015
3015
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3016
|
-
throw new (0,
|
|
3016
|
+
throw new (0, _chunkQDGUDNVRjs.RunEventQueryInputError)(
|
|
3017
3017
|
"--runtime-backend must be daytona or modal."
|
|
3018
3018
|
);
|
|
3019
3019
|
}
|
|
3020
3020
|
if (backend && !namespace) {
|
|
3021
|
-
throw new (0,
|
|
3021
|
+
throw new (0, _chunkQDGUDNVRjs.RunEventQueryInputError)(
|
|
3022
3022
|
"--runtime-backend requires --runtime-namespace."
|
|
3023
3023
|
);
|
|
3024
3024
|
}
|
|
@@ -3065,12 +3065,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3065
3065
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3066
3066
|
const record3 = failure;
|
|
3067
3067
|
const status = record3.statusCode;
|
|
3068
|
-
const exitCode = error instanceof
|
|
3068
|
+
const exitCode = error instanceof _chunkQDGUDNVRjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3069
3069
|
const diagnostic = Object.assign(failure, {
|
|
3070
3070
|
exitCode,
|
|
3071
3071
|
retryable: exitCode === 5
|
|
3072
3072
|
});
|
|
3073
|
-
if (
|
|
3073
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) _chunk3UKVFI2Rjs.printJsonError.call(void 0, diagnostic);
|
|
3074
3074
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3075
3075
|
return exitCode;
|
|
3076
3076
|
}
|
|
@@ -3085,7 +3085,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3085
3085
|
...criteria
|
|
3086
3086
|
} = request;
|
|
3087
3087
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3088
|
-
const client = new (0,
|
|
3088
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
3089
3089
|
let result;
|
|
3090
3090
|
if (request.operation === "fields") {
|
|
3091
3091
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3151,13 +3151,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3151
3151
|
lines.push(`Next page: ${nextPage}`);
|
|
3152
3152
|
}
|
|
3153
3153
|
}
|
|
3154
|
-
|
|
3154
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
3155
3155
|
{
|
|
3156
3156
|
...result,
|
|
3157
3157
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3158
3158
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3159
3159
|
},
|
|
3160
|
-
{ json:
|
|
3160
|
+
{ json: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3161
3161
|
` }
|
|
3162
3162
|
);
|
|
3163
3163
|
return 0;
|
|
@@ -4076,7 +4076,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4076
4076
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4077
4077
|
);
|
|
4078
4078
|
}
|
|
4079
|
-
const response = await new (0,
|
|
4079
|
+
const response = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4080
4080
|
keys
|
|
4081
4081
|
});
|
|
4082
4082
|
const failed = response.receipts.filter(
|
|
@@ -4088,7 +4088,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4088
4088
|
JSON.stringify(response, null, 2) + "\n",
|
|
4089
4089
|
{ flag: "wx", mode: 384 }
|
|
4090
4090
|
);
|
|
4091
|
-
|
|
4091
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
4092
4092
|
{
|
|
4093
4093
|
runId,
|
|
4094
4094
|
out: options.out,
|
|
@@ -4098,7 +4098,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4098
4098
|
{ json: true }
|
|
4099
4099
|
);
|
|
4100
4100
|
} else {
|
|
4101
|
-
|
|
4101
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4102
4102
|
}
|
|
4103
4103
|
if (failed)
|
|
4104
4104
|
process.exitCode = response.receipts.some(
|
|
@@ -4137,7 +4137,7 @@ includes nextCommand when another page is available.
|
|
|
4137
4137
|
{ exitCode: 2 }
|
|
4138
4138
|
);
|
|
4139
4139
|
}
|
|
4140
|
-
const page = await new (0,
|
|
4140
|
+
const page = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4141
4141
|
launchKey: options.launchKey,
|
|
4142
4142
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4143
4143
|
limit
|
|
@@ -4152,7 +4152,7 @@ includes nextCommand when another page is available.
|
|
|
4152
4152
|
"--limit",
|
|
4153
4153
|
String(limit)
|
|
4154
4154
|
].join(" ") : null;
|
|
4155
|
-
|
|
4155
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
4156
4156
|
{
|
|
4157
4157
|
parentRunId,
|
|
4158
4158
|
launchKey: options.launchKey,
|
|
@@ -4188,7 +4188,7 @@ async function handleRunsHistory(options) {
|
|
|
4188
4188
|
throw new Error("--limit must be a positive integer.");
|
|
4189
4189
|
}
|
|
4190
4190
|
}
|
|
4191
|
-
const page = await new (0,
|
|
4191
|
+
const page = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().runs.history({
|
|
4192
4192
|
cursor: options.cursor,
|
|
4193
4193
|
orgId: options.org,
|
|
4194
4194
|
search: options.search,
|
|
@@ -4204,7 +4204,7 @@ async function handleRunsHistory(options) {
|
|
|
4204
4204
|
);
|
|
4205
4205
|
}
|
|
4206
4206
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4207
|
-
|
|
4207
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
4208
4208
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4209
4209
|
options.json ? { json: true } : {}
|
|
4210
4210
|
);
|
|
@@ -4257,12 +4257,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4257
4257
|
}
|
|
4258
4258
|
}
|
|
4259
4259
|
if (options.notice) console.error(options.notice);
|
|
4260
|
-
const result = await new (0,
|
|
4260
|
+
const result = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().runs.rerun(runId, {
|
|
4261
4261
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4262
4262
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4263
4263
|
});
|
|
4264
|
-
if (
|
|
4265
|
-
|
|
4264
|
+
if (_chunk3UKVFI2Rjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4265
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4266
4266
|
} else if (result.rateLimited) {
|
|
4267
4267
|
console.log(`
|
|
4268
4268
|
${result.rateLimited.message}`);
|
|
@@ -4286,7 +4286,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
4286
4286
|
// src/cli/operations/runs-resume.ts
|
|
4287
4287
|
async function runRunsResumeCommand(runId) {
|
|
4288
4288
|
try {
|
|
4289
|
-
const result = await new (0,
|
|
4289
|
+
const result = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().runs.resume(runId);
|
|
4290
4290
|
if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
|
|
4291
4291
|
throw new Error(
|
|
4292
4292
|
"Invalid resume receipt: expected the requested run and a new positive epoch."
|
|
@@ -5120,13 +5120,13 @@ var RunDataset = class _RunDataset {
|
|
|
5120
5120
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5121
5121
|
_fs.writeFileSync.call(void 0,
|
|
5122
5122
|
absolutePath,
|
|
5123
|
-
`${JSON.stringify(
|
|
5123
|
+
`${JSON.stringify(_chunkSDD75XIUjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5124
5124
|
`,
|
|
5125
5125
|
"utf-8"
|
|
5126
5126
|
);
|
|
5127
5127
|
return absolutePath;
|
|
5128
5128
|
}
|
|
5129
|
-
return
|
|
5129
|
+
return _chunkSDD75XIUjs.writeRunDatasetCsv.call(void 0, {
|
|
5130
5130
|
rows: this.rows,
|
|
5131
5131
|
columns: this.#info.columns,
|
|
5132
5132
|
outPath
|
|
@@ -6631,7 +6631,7 @@ function renderOutcome(outcome) {
|
|
|
6631
6631
|
function printResult2(input) {
|
|
6632
6632
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6633
6633
|
if (failed) process.exitCode = 1;
|
|
6634
|
-
|
|
6634
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
6635
6635
|
{
|
|
6636
6636
|
deployment: { ...input.deployment, status: input.status },
|
|
6637
6637
|
plays: input.outcomes,
|
|
@@ -6656,7 +6656,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6656
6656
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6657
6657
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6658
6658
|
});
|
|
6659
|
-
const { http, config } =
|
|
6659
|
+
const { http, config } = _chunk3UKVFI2Rjs.getAuthedHttpClient.call(void 0, );
|
|
6660
6660
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6661
6661
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6662
6662
|
deliveryId,
|
|
@@ -6683,7 +6683,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6683
6683
|
},
|
|
6684
6684
|
{
|
|
6685
6685
|
bundle: bundleDeployPlayFile,
|
|
6686
|
-
fetchImpl:
|
|
6686
|
+
fetchImpl: _chunkY2SIHXYSjs.fetchWithDeploymentProtection,
|
|
6687
6687
|
// The plays are already here: "opening" the source is naming it.
|
|
6688
6688
|
openSource: async () => ({
|
|
6689
6689
|
open: async () => ({ repoRoot: root })
|
|
@@ -6809,7 +6809,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6809
6809
|
// src/cli/renderers/local-play-execution.ts
|
|
6810
6810
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6811
6811
|
if (options.dryRun) {
|
|
6812
|
-
|
|
6812
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6813
6813
|
return;
|
|
6814
6814
|
}
|
|
6815
6815
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -6981,7 +6981,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
6981
6981
|
const startedAt = Date.now();
|
|
6982
6982
|
try {
|
|
6983
6983
|
const result = run();
|
|
6984
|
-
|
|
6984
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
6985
6985
|
phase,
|
|
6986
6986
|
ms: Date.now() - startedAt,
|
|
6987
6987
|
ok: true,
|
|
@@ -6989,7 +6989,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
6989
6989
|
});
|
|
6990
6990
|
return result;
|
|
6991
6991
|
} catch (error) {
|
|
6992
|
-
|
|
6992
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
6993
6993
|
phase,
|
|
6994
6994
|
ms: Date.now() - startedAt,
|
|
6995
6995
|
ok: false,
|
|
@@ -7788,7 +7788,7 @@ function playStatusErrorText(status) {
|
|
|
7788
7788
|
function isRetryablePendingStartFailure(status) {
|
|
7789
7789
|
if (status.status !== "failed") return false;
|
|
7790
7790
|
if (status.runId && status.runId !== "pending") return false;
|
|
7791
|
-
return
|
|
7791
|
+
return _chunkQDGUDNVRjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7792
7792
|
}
|
|
7793
7793
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7794
7794
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -7838,13 +7838,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
7838
7838
|
}, _class);
|
|
7839
7839
|
function watchSurfaceReaches(state, provenance, level) {
|
|
7840
7840
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
7841
|
-
if (!
|
|
7841
|
+
if (!_chunkQDGUDNVRjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
7842
7842
|
return false;
|
|
7843
7843
|
}
|
|
7844
|
-
if (
|
|
7844
|
+
if (_chunkQDGUDNVRjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
7845
7845
|
return true;
|
|
7846
7846
|
}
|
|
7847
|
-
return state.verbose === true &&
|
|
7847
|
+
return state.verbose === true && _chunkQDGUDNVRjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
7848
7848
|
}
|
|
7849
7849
|
function getEventPayload(event) {
|
|
7850
7850
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8354,7 +8354,7 @@ function resolvePlayRunUrl(input) {
|
|
|
8354
8354
|
}
|
|
8355
8355
|
function openPlayDashboard(url, open2) {
|
|
8356
8356
|
if (open2 && url) {
|
|
8357
|
-
|
|
8357
|
+
_chunk3UKVFI2Rjs.openInBrowser.call(void 0, url);
|
|
8358
8358
|
}
|
|
8359
8359
|
}
|
|
8360
8360
|
function printPlayLogLines(input) {
|
|
@@ -8435,7 +8435,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8435
8435
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8436
8436
|
});
|
|
8437
8437
|
} catch (error) {
|
|
8438
|
-
if (
|
|
8438
|
+
if (_chunkQDGUDNVRjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8439
8439
|
return null;
|
|
8440
8440
|
}
|
|
8441
8441
|
throw error;
|
|
@@ -8516,9 +8516,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8516
8516
|
signal: controller.signal,
|
|
8517
8517
|
deferLogs: !input.emitLogs,
|
|
8518
8518
|
omitTerminalLogs: !input.emitLogs,
|
|
8519
|
-
...
|
|
8519
|
+
..._chunkHDDE4Y4Vjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8520
8520
|
onPoll: (observation) => {
|
|
8521
|
-
|
|
8521
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
8522
8522
|
phase: "play_watch_poll",
|
|
8523
8523
|
workflowId: input.workflowId,
|
|
8524
8524
|
ms: observation.durationMs,
|
|
@@ -8532,7 +8532,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8532
8532
|
full: input.fullJson,
|
|
8533
8533
|
billing: false,
|
|
8534
8534
|
onStatus: async (status) => {
|
|
8535
|
-
|
|
8535
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
8536
8536
|
phase: "play_watch_terminal_status",
|
|
8537
8537
|
workflowId: input.workflowId,
|
|
8538
8538
|
full: input.fullJson === true
|
|
@@ -8621,7 +8621,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8621
8621
|
signal: controller.signal,
|
|
8622
8622
|
cliAdmission: useCliAdmission
|
|
8623
8623
|
});
|
|
8624
|
-
|
|
8624
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
8625
8625
|
phase: "cli.play_start_admission_attempt",
|
|
8626
8626
|
ms: Date.now() - postStartedAt,
|
|
8627
8627
|
ok: true,
|
|
@@ -8633,7 +8633,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8633
8633
|
});
|
|
8634
8634
|
break;
|
|
8635
8635
|
} catch (error) {
|
|
8636
|
-
|
|
8636
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
8637
8637
|
phase: "cli.play_start_admission_attempt",
|
|
8638
8638
|
ms: Date.now() - postStartedAt,
|
|
8639
8639
|
ok: false,
|
|
@@ -8684,7 +8684,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8684
8684
|
prepared.workflowId
|
|
8685
8685
|
);
|
|
8686
8686
|
}
|
|
8687
|
-
await
|
|
8687
|
+
await _chunkJA5PBN44js.checkPlayRunCompatibility.call(void 0,
|
|
8688
8688
|
input.client.baseUrl,
|
|
8689
8689
|
input.maintenancePolicy
|
|
8690
8690
|
);
|
|
@@ -8702,7 +8702,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8702
8702
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
8703
8703
|
);
|
|
8704
8704
|
}
|
|
8705
|
-
|
|
8705
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
8706
8706
|
phase: "cli.play_start_json_retry",
|
|
8707
8707
|
ms: 0,
|
|
8708
8708
|
ok: true,
|
|
@@ -8782,7 +8782,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8782
8782
|
_nullishCoalesce(input.open, () => ( false))
|
|
8783
8783
|
);
|
|
8784
8784
|
input.progress.phase("running");
|
|
8785
|
-
|
|
8785
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
8786
8786
|
phase: "cli.play_start_admitted",
|
|
8787
8787
|
ms: Date.now() - startedAt,
|
|
8788
8788
|
ok: true,
|
|
@@ -8800,7 +8800,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8800
8800
|
startedAt,
|
|
8801
8801
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8802
8802
|
});
|
|
8803
|
-
const initialStatus =
|
|
8803
|
+
const initialStatus = _chunkQDGUDNVRjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8804
8804
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8805
8805
|
client: input.client,
|
|
8806
8806
|
status: initialStatus,
|
|
@@ -8808,7 +8808,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8808
8808
|
jsonOutput: input.jsonOutput,
|
|
8809
8809
|
fromDurableStatus: true
|
|
8810
8810
|
});
|
|
8811
|
-
|
|
8811
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
8812
8812
|
phase: "play_watch_terminal_status",
|
|
8813
8813
|
workflowId,
|
|
8814
8814
|
full: true,
|
|
@@ -8913,7 +8913,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8913
8913
|
});
|
|
8914
8914
|
}
|
|
8915
8915
|
if (error instanceof _chunkRNSHCJMEjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
8916
|
-
await
|
|
8916
|
+
await _chunkJA5PBN44js.checkPlayRunCompatibility.call(void 0,
|
|
8917
8917
|
input.client.baseUrl,
|
|
8918
8918
|
input.maintenancePolicy,
|
|
8919
8919
|
admissionDeadline.signal
|
|
@@ -8954,7 +8954,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8954
8954
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
8955
8955
|
);
|
|
8956
8956
|
}
|
|
8957
|
-
|
|
8957
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
8958
8958
|
phase: "cli.play_start_stream_retry",
|
|
8959
8959
|
ms: 0,
|
|
8960
8960
|
ok: true,
|
|
@@ -8975,7 +8975,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8975
8975
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
8976
8976
|
);
|
|
8977
8977
|
}
|
|
8978
|
-
|
|
8978
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
8979
8979
|
phase: "cli.play_start_stream_retry",
|
|
8980
8980
|
ms: 0,
|
|
8981
8981
|
ok: true,
|
|
@@ -9032,7 +9032,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9032
9032
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9033
9033
|
launchConfirmed = true;
|
|
9034
9034
|
await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
|
|
9035
|
-
|
|
9035
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
9036
9036
|
phase: "cli.play_start_admitted",
|
|
9037
9037
|
ms: Date.now() - startedAt,
|
|
9038
9038
|
ok: true,
|
|
@@ -9066,7 +9066,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9066
9066
|
full: input.fullJson
|
|
9067
9067
|
});
|
|
9068
9068
|
} catch (error) {
|
|
9069
|
-
if (
|
|
9069
|
+
if (_chunkQDGUDNVRjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9070
9070
|
return null;
|
|
9071
9071
|
}
|
|
9072
9072
|
throw error;
|
|
@@ -9237,7 +9237,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9237
9237
|
};
|
|
9238
9238
|
}
|
|
9239
9239
|
if (!canonicalTerminal) {
|
|
9240
|
-
|
|
9240
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
9241
9241
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9242
9242
|
ms: Date.now() - startedAt,
|
|
9243
9243
|
ok: true,
|
|
@@ -9258,14 +9258,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9258
9258
|
fromDurableStatus
|
|
9259
9259
|
}) : canonicalTerminal;
|
|
9260
9260
|
if (input.fullJson === true) {
|
|
9261
|
-
|
|
9261
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
9262
9262
|
phase: "play_watch_terminal_status",
|
|
9263
9263
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9264
9264
|
full: true,
|
|
9265
9265
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9266
9266
|
});
|
|
9267
9267
|
}
|
|
9268
|
-
|
|
9268
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
9269
9269
|
phase: "cli.play_start_stream_terminal",
|
|
9270
9270
|
ms: Date.now() - startedAt,
|
|
9271
9271
|
ok: true,
|
|
@@ -9285,7 +9285,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9285
9285
|
clearTimeout(timeout);
|
|
9286
9286
|
}
|
|
9287
9287
|
controller.abort();
|
|
9288
|
-
|
|
9288
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
9289
9289
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9290
9290
|
ms: Date.now() - startedAt,
|
|
9291
9291
|
ok: true,
|
|
@@ -9316,7 +9316,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9316
9316
|
if (timedOut) {
|
|
9317
9317
|
const terminal = await fetchKnownTerminalStatus();
|
|
9318
9318
|
if (terminal) {
|
|
9319
|
-
|
|
9319
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
9320
9320
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9321
9321
|
ms: Date.now() - startedAt,
|
|
9322
9322
|
ok: true,
|
|
@@ -9336,7 +9336,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9336
9336
|
lastPhase
|
|
9337
9337
|
});
|
|
9338
9338
|
}
|
|
9339
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9339
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkQDGUDNVRjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9340
9340
|
if (timeout) {
|
|
9341
9341
|
clearTimeout(timeout);
|
|
9342
9342
|
}
|
|
@@ -9347,7 +9347,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9347
9347
|
`
|
|
9348
9348
|
);
|
|
9349
9349
|
}
|
|
9350
|
-
|
|
9350
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
9351
9351
|
phase: "cli.play_start_stream_reconnect",
|
|
9352
9352
|
ms: Date.now() - startedAt,
|
|
9353
9353
|
ok: true,
|
|
@@ -9374,7 +9374,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9374
9374
|
});
|
|
9375
9375
|
}
|
|
9376
9376
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9377
|
-
|
|
9377
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
9378
9378
|
phase: "cli.play_start_stream_transient_failure",
|
|
9379
9379
|
ms: Date.now() - startedAt,
|
|
9380
9380
|
ok: false,
|
|
@@ -9402,7 +9402,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9402
9402
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9403
9403
|
);
|
|
9404
9404
|
}
|
|
9405
|
-
|
|
9405
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
9406
9406
|
phase: "cli.play_start_stream_reconnect",
|
|
9407
9407
|
ms: Date.now() - startedAt,
|
|
9408
9408
|
ok: true,
|
|
@@ -9482,7 +9482,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9482
9482
|
"logs"
|
|
9483
9483
|
]);
|
|
9484
9484
|
function formatPlayLogLine(rawLine, state) {
|
|
9485
|
-
const classified =
|
|
9485
|
+
const classified = _chunkQDGUDNVRjs.classifyLogLine.call(void 0, rawLine);
|
|
9486
9486
|
const line = classified.line;
|
|
9487
9487
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9488
9488
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9497,14 +9497,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9497
9497
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9498
9498
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9499
9499
|
if (providerWait && !state.verbose) {
|
|
9500
|
-
return
|
|
9500
|
+
return _chunkQDGUDNVRjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9501
9501
|
}
|
|
9502
9502
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9503
9503
|
if (mapProgress && !state.verbose) {
|
|
9504
|
-
return
|
|
9504
|
+
return _chunkQDGUDNVRjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9505
9505
|
}
|
|
9506
9506
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9507
|
-
if (!
|
|
9507
|
+
if (!_chunkQDGUDNVRjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9508
9508
|
return null;
|
|
9509
9509
|
}
|
|
9510
9510
|
if (state.emittedRunnerStarted) {
|
|
@@ -9517,7 +9517,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9517
9517
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9518
9518
|
);
|
|
9519
9519
|
if (mapStart) {
|
|
9520
|
-
if (!
|
|
9520
|
+
if (!_chunkQDGUDNVRjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9521
9521
|
return null;
|
|
9522
9522
|
}
|
|
9523
9523
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9527,7 +9527,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9527
9527
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9528
9528
|
);
|
|
9529
9529
|
if (mapDone) {
|
|
9530
|
-
if (!
|
|
9530
|
+
if (!_chunkQDGUDNVRjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9531
9531
|
return null;
|
|
9532
9532
|
}
|
|
9533
9533
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10827,7 +10827,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10827
10827
|
(line) => typeof line === "string"
|
|
10828
10828
|
);
|
|
10829
10829
|
if (tail.length === 0) return [];
|
|
10830
|
-
const shown = tail.map((line) =>
|
|
10830
|
+
const shown = tail.map((line) => _chunkQDGUDNVRjs.classifyLogLine.call(void 0, line)).filter(
|
|
10831
10831
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10832
10832
|
).slice(-8);
|
|
10833
10833
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11125,11 +11125,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11125
11125
|
}
|
|
11126
11126
|
function writePlayResult(status, jsonOutput, options) {
|
|
11127
11127
|
const packaged = getPlayRunPackage(status);
|
|
11128
|
-
if (status.package)
|
|
11128
|
+
if (status.package) _chunkSDD75XIUjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11129
11129
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
|
|
11130
11130
|
if (jsonOutput) {
|
|
11131
11131
|
const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11132
|
-
|
|
11132
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
11133
11133
|
hits ? { ...payload2, hits } : payload2,
|
|
11134
11134
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
|
|
11135
11135
|
);
|
|
@@ -11145,7 +11145,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11145
11145
|
...buildPlayCompletionTextLines(status),
|
|
11146
11146
|
...formatRunHitsLines(hits)
|
|
11147
11147
|
];
|
|
11148
|
-
|
|
11148
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11149
11149
|
json: false,
|
|
11150
11150
|
text: `${lines2.join("\n")}
|
|
11151
11151
|
`
|
|
@@ -11196,7 +11196,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11196
11196
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11197
11197
|
const compact = compactPlayStatus(status);
|
|
11198
11198
|
const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
|
|
11199
|
-
|
|
11199
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
11200
11200
|
{
|
|
11201
11201
|
...payload,
|
|
11202
11202
|
render: {
|
|
@@ -11420,7 +11420,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11420
11420
|
}
|
|
11421
11421
|
offset += page.rows.length;
|
|
11422
11422
|
}
|
|
11423
|
-
const withError =
|
|
11423
|
+
const withError = _chunkSDD75XIUjs.tableExportHasFailedRows.call(void 0,
|
|
11424
11424
|
sheetRows.filter(
|
|
11425
11425
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11426
11426
|
)
|
|
@@ -11436,7 +11436,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11436
11436
|
return [
|
|
11437
11437
|
withError ? {
|
|
11438
11438
|
...exported,
|
|
11439
|
-
[
|
|
11439
|
+
[_chunkSDD75XIUjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkSDD75XIUjs.tableExportErrorCell.call(void 0,
|
|
11440
11440
|
row
|
|
11441
11441
|
)
|
|
11442
11442
|
} : exported
|
|
@@ -11971,7 +11971,7 @@ function renderServerResultView(value) {
|
|
|
11971
11971
|
function writeStartedPlayRun(input) {
|
|
11972
11972
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
11973
11973
|
const run = input.package.run;
|
|
11974
|
-
|
|
11974
|
+
_chunkSDD75XIUjs.recordPlayTermination.call(void 0, {
|
|
11975
11975
|
id: run.id,
|
|
11976
11976
|
status: run.status,
|
|
11977
11977
|
finishedAt: run.finishedAt
|
|
@@ -11984,7 +11984,7 @@ function writeStartedPlayRun(input) {
|
|
|
11984
11984
|
dashboardUrl: input.dashboardUrl,
|
|
11985
11985
|
package: input.package
|
|
11986
11986
|
};
|
|
11987
|
-
|
|
11987
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
11988
11988
|
json: true,
|
|
11989
11989
|
fields: input.jsonFields
|
|
11990
11990
|
});
|
|
@@ -12006,7 +12006,7 @@ function writeStartedPlayRun(input) {
|
|
|
12006
12006
|
input.progress.writeLine(output2, process.stdout);
|
|
12007
12007
|
return;
|
|
12008
12008
|
}
|
|
12009
|
-
|
|
12009
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12010
12010
|
json: false,
|
|
12011
12011
|
text: `${output2}
|
|
12012
12012
|
`
|
|
@@ -12041,7 +12041,7 @@ function writeStartedPlayRun(input) {
|
|
|
12041
12041
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12042
12042
|
];
|
|
12043
12043
|
if (input.jsonOutput) {
|
|
12044
|
-
|
|
12044
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12045
12045
|
return;
|
|
12046
12046
|
}
|
|
12047
12047
|
const output = lines.join("\n");
|
|
@@ -12049,7 +12049,7 @@ function writeStartedPlayRun(input) {
|
|
|
12049
12049
|
input.progress.writeLine(output, process.stdout);
|
|
12050
12050
|
return;
|
|
12051
12051
|
}
|
|
12052
|
-
|
|
12052
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
12053
12053
|
{
|
|
12054
12054
|
...payload,
|
|
12055
12055
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12059,7 +12059,7 @@ function writeStartedPlayRun(input) {
|
|
|
12059
12059
|
);
|
|
12060
12060
|
}
|
|
12061
12061
|
function parsePlayCheckOptions(args) {
|
|
12062
|
-
const selection =
|
|
12062
|
+
const selection = _chunk3UKVFI2Rjs.parseJsonFields.call(void 0, args, "check");
|
|
12063
12063
|
args = selection.args;
|
|
12064
12064
|
const target = args[0];
|
|
12065
12065
|
if (!target || target.startsWith("-")) {
|
|
@@ -12071,7 +12071,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12071
12071
|
if (arg !== "--json" && arg !== "--full")
|
|
12072
12072
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12073
12073
|
}
|
|
12074
|
-
const jsonOutput =
|
|
12074
|
+
const jsonOutput = _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args);
|
|
12075
12075
|
return {
|
|
12076
12076
|
target,
|
|
12077
12077
|
jsonOutput,
|
|
@@ -12147,7 +12147,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12147
12147
|
useLatest,
|
|
12148
12148
|
expectedArtifactHash,
|
|
12149
12149
|
dryRun,
|
|
12150
|
-
jsonOutput:
|
|
12150
|
+
jsonOutput: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)
|
|
12151
12151
|
};
|
|
12152
12152
|
}
|
|
12153
12153
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12188,7 +12188,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12188
12188
|
target,
|
|
12189
12189
|
expectedArtifactHash,
|
|
12190
12190
|
dryRun,
|
|
12191
|
-
jsonOutput:
|
|
12191
|
+
jsonOutput: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)
|
|
12192
12192
|
};
|
|
12193
12193
|
}
|
|
12194
12194
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12399,7 +12399,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12399
12399
|
async function handlePlayCheck(args) {
|
|
12400
12400
|
const options = parsePlayCheckOptions(args);
|
|
12401
12401
|
if (!isFileTarget(options.target)) {
|
|
12402
|
-
const client = new (0,
|
|
12402
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
12403
12403
|
try {
|
|
12404
12404
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12405
12405
|
command: "check"
|
|
@@ -12428,7 +12428,7 @@ async function handlePlayCheck(args) {
|
|
|
12428
12428
|
},
|
|
12429
12429
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12430
12430
|
};
|
|
12431
|
-
|
|
12431
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, result, {
|
|
12432
12432
|
json: options.jsonOutput,
|
|
12433
12433
|
fields: options.jsonFields,
|
|
12434
12434
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12438,7 +12438,7 @@ async function handlePlayCheck(args) {
|
|
|
12438
12438
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12439
12439
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12440
12440
|
if (options.jsonOutput) {
|
|
12441
|
-
|
|
12441
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
12442
12442
|
{
|
|
12443
12443
|
kind: "play_check",
|
|
12444
12444
|
checked: "named_contract",
|
|
@@ -12469,7 +12469,7 @@ async function handlePlayCheck(args) {
|
|
|
12469
12469
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12470
12470
|
publishCommand: _optionalChain([primary, 'optionalAccess', _478 => _478.result, 'access', _479 => _479.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12471
12471
|
});
|
|
12472
|
-
|
|
12472
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, output, {
|
|
12473
12473
|
json: options.jsonOutput,
|
|
12474
12474
|
fields: options.jsonFields,
|
|
12475
12475
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12537,7 +12537,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12537
12537
|
}
|
|
12538
12538
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12539
12539
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12540
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
12540
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunkEAQQTYJLjs.DeeplineClient)()));
|
|
12541
12541
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12542
12542
|
const checked = await checkLocalPlayGraph({
|
|
12543
12543
|
client,
|
|
@@ -12593,8 +12593,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12593
12593
|
let prefetchClient;
|
|
12594
12594
|
let admissionCapability;
|
|
12595
12595
|
let cancelAdmissionCapability;
|
|
12596
|
-
let cliAdmission =
|
|
12597
|
-
const progress = _nullishCoalesce(
|
|
12596
|
+
let cliAdmission = _chunkJA5PBN44js.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12597
|
+
const progress = _nullishCoalesce(_chunkZ52XVM5Ijs.getActiveCliProgress.call(void 0, ), () => ( _chunkZ52XVM5Ijs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12598
12598
|
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _488 => _488.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
12599
12599
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12600
12600
|
progress.phase("compiling play");
|
|
@@ -12611,11 +12611,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12611
12611
|
return 1;
|
|
12612
12612
|
}
|
|
12613
12613
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12614
|
-
const clientForPrefetch = new (0,
|
|
12614
|
+
const clientForPrefetch = new (0, _chunkEAQQTYJLjs.DeeplineClient)(playRunClientOptions(options));
|
|
12615
12615
|
prefetchClient = clientForPrefetch;
|
|
12616
12616
|
const capabilityController = new AbortController();
|
|
12617
12617
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12618
|
-
admissionCapability =
|
|
12618
|
+
admissionCapability = _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
12619
12619
|
"cli.play_admission_capability_prefetch",
|
|
12620
12620
|
{ targetKind: "file" },
|
|
12621
12621
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -12626,7 +12626,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12626
12626
|
}
|
|
12627
12627
|
let graph;
|
|
12628
12628
|
try {
|
|
12629
|
-
graph = await
|
|
12629
|
+
graph = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
12630
12630
|
"cli.play_file_bundle_graph",
|
|
12631
12631
|
{ targetKind: "file" },
|
|
12632
12632
|
() => collectBundledPlayGraph(
|
|
@@ -12639,7 +12639,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12639
12639
|
assertPlayGraphAuthoring(graph);
|
|
12640
12640
|
if (options.dryRun) {
|
|
12641
12641
|
progress.complete();
|
|
12642
|
-
const plan =
|
|
12642
|
+
const plan = _chunkORQVTTTMjs.planLocalPlayExecution.call(void 0, graph, {
|
|
12643
12643
|
runIdFile: options.runIdFile
|
|
12644
12644
|
});
|
|
12645
12645
|
if (_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
@@ -12650,9 +12650,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12650
12650
|
});
|
|
12651
12651
|
return 0;
|
|
12652
12652
|
}
|
|
12653
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
12653
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkEAQQTYJLjs.DeeplineClient)(playRunClientOptions(options))));
|
|
12654
12654
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12655
|
-
await
|
|
12655
|
+
await _chunkJA5PBN44js.checkPlayRunCompatibility.call(void 0,
|
|
12656
12656
|
client.baseUrl,
|
|
12657
12657
|
options.maintenancePolicy
|
|
12658
12658
|
);
|
|
@@ -12665,7 +12665,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12665
12665
|
});
|
|
12666
12666
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12667
12667
|
if (canDeferCompilerManifest) {
|
|
12668
|
-
|
|
12668
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
12669
12669
|
phase: "cli.play_file_compile_manifests",
|
|
12670
12670
|
ms: 0,
|
|
12671
12671
|
ok: true,
|
|
@@ -12674,7 +12674,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12674
12674
|
reason: "validated_by_run_route"
|
|
12675
12675
|
});
|
|
12676
12676
|
} else {
|
|
12677
|
-
await
|
|
12677
|
+
await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
12678
12678
|
"cli.play_file_compile_manifests",
|
|
12679
12679
|
{ targetKind: "file", skipped: false },
|
|
12680
12680
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12682,7 +12682,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12682
12682
|
}
|
|
12683
12683
|
progress.phase("compiled play");
|
|
12684
12684
|
} catch (error) {
|
|
12685
|
-
if (error instanceof
|
|
12685
|
+
if (error instanceof _chunkSDD75XIUjs.ExecutionOutputError) throw error;
|
|
12686
12686
|
progress.fail();
|
|
12687
12687
|
reportError(normalizePlayValidationError(error));
|
|
12688
12688
|
return 1;
|
|
@@ -12693,13 +12693,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12693
12693
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12694
12694
|
try {
|
|
12695
12695
|
renderLocalPlayExecutionPlan(
|
|
12696
|
-
|
|
12696
|
+
_chunkORQVTTTMjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12697
12697
|
);
|
|
12698
12698
|
progress.phase("pinning imported plays");
|
|
12699
|
-
graph = await
|
|
12699
|
+
graph = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
12700
12700
|
"cli.play_file_pin_imports",
|
|
12701
12701
|
{ targetKind: "file" },
|
|
12702
|
-
() =>
|
|
12702
|
+
() => _chunkORQVTTTMjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12703
12703
|
);
|
|
12704
12704
|
bundleResult = graph.root;
|
|
12705
12705
|
} catch (error) {
|
|
@@ -12716,7 +12716,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12716
12716
|
inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _490 => _490.authoringContract, 'optionalAccess', _491 => _491.inputSchema]),
|
|
12717
12717
|
staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _492 => _492.staticPipeline])
|
|
12718
12718
|
});
|
|
12719
|
-
const stagedFileInputs = await
|
|
12719
|
+
const stagedFileInputs = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
12720
12720
|
"cli.play_stage_inputs",
|
|
12721
12721
|
{
|
|
12722
12722
|
targetKind: "file",
|
|
@@ -12763,7 +12763,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12763
12763
|
};
|
|
12764
12764
|
if (options.watch) {
|
|
12765
12765
|
progress.phase("starting run");
|
|
12766
|
-
const finalStatus = await
|
|
12766
|
+
const finalStatus = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
12767
12767
|
"cli.play_start_watch",
|
|
12768
12768
|
{ targetKind: "file", playName },
|
|
12769
12769
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12825,7 +12825,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12825
12825
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12826
12826
|
}
|
|
12827
12827
|
progress.phase("starting run");
|
|
12828
|
-
const started = await
|
|
12828
|
+
const started = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
12829
12829
|
"cli.play_start_unwatched",
|
|
12830
12830
|
{ targetKind: "file", playName },
|
|
12831
12831
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _499 => _499.onSubmission]) }).catch(async (error) => {
|
|
@@ -12891,9 +12891,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
12891
12891
|
if (options.target.kind !== "name") {
|
|
12892
12892
|
throw new Error("Expected a named play run target.");
|
|
12893
12893
|
}
|
|
12894
|
-
const client = new (0,
|
|
12895
|
-
let cliAdmission =
|
|
12896
|
-
const progress = _nullishCoalesce(
|
|
12894
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)(playRunClientOptions(options));
|
|
12895
|
+
let cliAdmission = _chunkJA5PBN44js.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12896
|
+
const progress = _nullishCoalesce(_chunkZ52XVM5Ijs.getActiveCliProgress.call(void 0, ), () => ( _chunkZ52XVM5Ijs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12897
12897
|
const playName = options.target.name;
|
|
12898
12898
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
12899
12899
|
try {
|
|
@@ -12911,7 +12911,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12911
12911
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12912
12912
|
const capabilityController = new AbortController();
|
|
12913
12913
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12914
|
-
admissionCapability =
|
|
12914
|
+
admissionCapability = _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
12915
12915
|
"cli.play_admission_capability_prefetch",
|
|
12916
12916
|
{ targetKind: "name", playName },
|
|
12917
12917
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -12922,14 +12922,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
12922
12922
|
}
|
|
12923
12923
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
12924
12924
|
progress.phase("loading play definition");
|
|
12925
|
-
return
|
|
12925
|
+
return _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
12926
12926
|
"cli.play_load_definition",
|
|
12927
12927
|
{ targetKind: "name", playName, skipped: false },
|
|
12928
12928
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
12929
12929
|
command: "run"
|
|
12930
12930
|
})
|
|
12931
12931
|
);
|
|
12932
|
-
})() : (
|
|
12932
|
+
})() : (_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
12933
12933
|
phase: "cli.play_load_definition",
|
|
12934
12934
|
ms: 0,
|
|
12935
12935
|
ok: true,
|
|
@@ -12938,7 +12938,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12938
12938
|
skipped: true
|
|
12939
12939
|
}), null);
|
|
12940
12940
|
progress.phase("selecting revision");
|
|
12941
|
-
const selectedRevisionId = await
|
|
12941
|
+
const selectedRevisionId = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
12942
12942
|
"cli.play_select_revision",
|
|
12943
12943
|
{
|
|
12944
12944
|
targetKind: "name",
|
|
@@ -12963,10 +12963,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
12963
12963
|
..._chunkRNSHCJMEjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
12964
12964
|
] : [];
|
|
12965
12965
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
12966
|
-
await
|
|
12966
|
+
await _chunkJA5PBN44js.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
12967
12967
|
cliAdmission = false;
|
|
12968
12968
|
}
|
|
12969
|
-
const stagedFileInputs = await
|
|
12969
|
+
const stagedFileInputs = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
12970
12970
|
"cli.play_stage_inputs",
|
|
12971
12971
|
{
|
|
12972
12972
|
targetKind: "name",
|
|
@@ -13010,7 +13010,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13010
13010
|
});
|
|
13011
13011
|
if (options.watch) {
|
|
13012
13012
|
progress.phase("starting run");
|
|
13013
|
-
const finalStatus = await
|
|
13013
|
+
const finalStatus = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
13014
13014
|
"cli.play_start_watch",
|
|
13015
13015
|
{ targetKind: "name", playName },
|
|
13016
13016
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13075,7 +13075,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13075
13075
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13076
13076
|
}
|
|
13077
13077
|
progress.phase("starting run");
|
|
13078
|
-
const started = await
|
|
13078
|
+
const started = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
13079
13079
|
"cli.play_start_unwatched",
|
|
13080
13080
|
{ targetKind: "name", playName },
|
|
13081
13081
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _512 => _512.onSubmission]) }).catch(async (error) => {
|
|
@@ -13135,7 +13135,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13135
13135
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13136
13136
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _520 => _520.exec, 'call', _521 => _521(status.runId), 'optionalAccess', _522 => _522[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13137
13137
|
if (!terminal) {
|
|
13138
|
-
|
|
13138
|
+
_chunkSDD75XIUjs.writeExecutionOutput.call(void 0,
|
|
13139
13139
|
{
|
|
13140
13140
|
id: status.runId,
|
|
13141
13141
|
status: status.status,
|
|
@@ -13215,10 +13215,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13215
13215
|
};
|
|
13216
13216
|
}
|
|
13217
13217
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13218
|
-
const allCollections =
|
|
13218
|
+
const allCollections = _chunkSDD75XIUjs.outputCollections.call(void 0, data).map(
|
|
13219
13219
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13220
13220
|
);
|
|
13221
|
-
|
|
13221
|
+
_chunkSDD75XIUjs.writeExecutionOutput.call(void 0,
|
|
13222
13222
|
{
|
|
13223
13223
|
id: status.runId,
|
|
13224
13224
|
status: status.status,
|
|
@@ -13239,7 +13239,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13239
13239
|
}
|
|
13240
13240
|
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;
|
|
13241
13241
|
async function handlePlayRun(args, hooks) {
|
|
13242
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13242
|
+
const parsedOptions = Array.isArray(args) ? _chunk4EGBOZ53js.parsePlayRunOptions.call(void 0, args) : args;
|
|
13243
13243
|
const options = parsedOptions.runIdFile ? {
|
|
13244
13244
|
...parsedOptions,
|
|
13245
13245
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13256,7 +13256,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13256
13256
|
JSON.stringify({
|
|
13257
13257
|
version: 1,
|
|
13258
13258
|
admissionState: "submitted_unknown",
|
|
13259
|
-
baseUrl: new (0,
|
|
13259
|
+
baseUrl: new (0, _chunkEAQQTYJLjs.DeeplineClient)().baseUrl,
|
|
13260
13260
|
...intent
|
|
13261
13261
|
})
|
|
13262
13262
|
);
|
|
@@ -13490,7 +13490,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13490
13490
|
);
|
|
13491
13491
|
return `${lines.join("\n")}
|
|
13492
13492
|
|
|
13493
|
-
${
|
|
13493
|
+
${_chunk3UKVFI2Rjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13494
13494
|
}
|
|
13495
13495
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13496
13496
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13514,7 +13514,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13514
13514
|
}
|
|
13515
13515
|
}
|
|
13516
13516
|
async function handleRunGet(args) {
|
|
13517
|
-
const selection =
|
|
13517
|
+
const selection = _chunk3UKVFI2Rjs.parseJsonFields.call(void 0,
|
|
13518
13518
|
args,
|
|
13519
13519
|
args.includes("--config") ? "config" : "get"
|
|
13520
13520
|
);
|
|
@@ -13527,7 +13527,7 @@ async function handleRunGet(args) {
|
|
|
13527
13527
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13528
13528
|
return 1;
|
|
13529
13529
|
}
|
|
13530
|
-
const client = new (0,
|
|
13530
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
13531
13531
|
const timing = args.includes("--timing");
|
|
13532
13532
|
const web = args.includes("--web");
|
|
13533
13533
|
if (web || args.includes("--web-url")) {
|
|
@@ -13545,8 +13545,8 @@ async function handleRunGet(args) {
|
|
|
13545
13545
|
const dashboardUrl2 = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13546
13546
|
const runUrl2 = _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
13547
13547
|
if (web) {
|
|
13548
|
-
const opened =
|
|
13549
|
-
|
|
13548
|
+
const opened = _chunk3UKVFI2Rjs.openInBrowser.call(void 0, runUrl2);
|
|
13549
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
13550
13550
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
13551
13551
|
{
|
|
13552
13552
|
json: args.includes("--json"),
|
|
@@ -13557,7 +13557,7 @@ async function handleRunGet(args) {
|
|
|
13557
13557
|
);
|
|
13558
13558
|
return 0;
|
|
13559
13559
|
}
|
|
13560
|
-
|
|
13560
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
13561
13561
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
13562
13562
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
13563
13563
|
` }
|
|
@@ -13582,7 +13582,7 @@ async function handleRunGet(args) {
|
|
|
13582
13582
|
"This server does not support recorded configuration reads."
|
|
13583
13583
|
);
|
|
13584
13584
|
}
|
|
13585
|
-
|
|
13585
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
13586
13586
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13587
13587
|
{ json: true, fields: selection.fields }
|
|
13588
13588
|
);
|
|
@@ -13595,7 +13595,7 @@ async function handleRunGet(args) {
|
|
|
13595
13595
|
timing,
|
|
13596
13596
|
() => client.getRunInput(runId)
|
|
13597
13597
|
);
|
|
13598
|
-
|
|
13598
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13599
13599
|
return 0;
|
|
13600
13600
|
}
|
|
13601
13601
|
const full = args.includes("--full");
|
|
@@ -13608,7 +13608,7 @@ async function handleRunGet(args) {
|
|
|
13608
13608
|
failedLogs: args.includes("--log-failed")
|
|
13609
13609
|
})
|
|
13610
13610
|
);
|
|
13611
|
-
if (status.package)
|
|
13611
|
+
if (status.package) _chunkSDD75XIUjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13612
13612
|
if (!status.package) {
|
|
13613
13613
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13614
13614
|
"runs get",
|
|
@@ -13622,8 +13622,8 @@ async function handleRunGet(args) {
|
|
|
13622
13622
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13623
13623
|
const legacyDashboardUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13624
13624
|
const legacyRunUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
13625
|
-
if (
|
|
13626
|
-
|
|
13625
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
13626
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
13627
13627
|
{
|
|
13628
13628
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13629
13629
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -13634,7 +13634,7 @@ async function handleRunGet(args) {
|
|
|
13634
13634
|
} else {
|
|
13635
13635
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13636
13636
|
if (legacyRunUrl)
|
|
13637
|
-
|
|
13637
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
13638
13638
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
13639
13639
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
13640
13640
|
` }
|
|
@@ -13664,11 +13664,11 @@ async function handleRunGet(args) {
|
|
|
13664
13664
|
)
|
|
13665
13665
|
]);
|
|
13666
13666
|
const hitLines = formatRunHitsLines(hits);
|
|
13667
|
-
const json =
|
|
13667
|
+
const json = _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args);
|
|
13668
13668
|
const playName = resolveRunPlayName(status, runId);
|
|
13669
13669
|
const dashboardUrl = playName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13670
13670
|
const runUrl = playName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
13671
|
-
|
|
13671
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
13672
13672
|
{
|
|
13673
13673
|
...overview,
|
|
13674
13674
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13773,9 +13773,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13773
13773
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13774
13774
|
return 1;
|
|
13775
13775
|
}
|
|
13776
|
-
const status = await new (0,
|
|
13777
|
-
if (
|
|
13778
|
-
|
|
13776
|
+
const status = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().runs.status(runId);
|
|
13777
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
13778
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13779
13779
|
return 0;
|
|
13780
13780
|
}
|
|
13781
13781
|
if (!status.available) {
|
|
@@ -13818,7 +13818,7 @@ async function handleRunsRerun(args) {
|
|
|
13818
13818
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13819
13819
|
return 1;
|
|
13820
13820
|
}
|
|
13821
|
-
const options = { json:
|
|
13821
|
+
const options = { json: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args) };
|
|
13822
13822
|
for (let index = 0; index < args.length; index += 1) {
|
|
13823
13823
|
if (args[index] === "--idempotency-key") {
|
|
13824
13824
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13884,8 +13884,8 @@ ${usage2}
|
|
|
13884
13884
|
Discover Plays: ${next.discover}
|
|
13885
13885
|
Active runs: ${next.running}`
|
|
13886
13886
|
);
|
|
13887
|
-
if (
|
|
13888
|
-
|
|
13887
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
13888
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
13889
13889
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13890
13890
|
{ json: true }
|
|
13891
13891
|
);
|
|
@@ -13900,7 +13900,7 @@ Active runs: ${next.running}`
|
|
|
13900
13900
|
console.error("--offset requires --play.");
|
|
13901
13901
|
return 1;
|
|
13902
13902
|
}
|
|
13903
|
-
const client = new (0,
|
|
13903
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
13904
13904
|
const page = await withRunReadTiming(
|
|
13905
13905
|
"runs list",
|
|
13906
13906
|
"run inventory",
|
|
@@ -13967,14 +13967,14 @@ Active runs: ${next.running}`
|
|
|
13967
13967
|
return lines2.join("\n");
|
|
13968
13968
|
});
|
|
13969
13969
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
13970
|
-
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}${
|
|
13970
|
+
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}${_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
13971
13971
|
if (page.hasMore) {
|
|
13972
13972
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
13973
13973
|
lines.push(
|
|
13974
13974
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
13975
13975
|
);
|
|
13976
13976
|
}
|
|
13977
|
-
|
|
13977
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
13978
13978
|
{
|
|
13979
13979
|
runs,
|
|
13980
13980
|
count: runs.length,
|
|
@@ -13988,7 +13988,7 @@ Active runs: ${next.running}`
|
|
|
13988
13988
|
},
|
|
13989
13989
|
render: { sections: [{ title: "runs", lines }] }
|
|
13990
13990
|
},
|
|
13991
|
-
{ json:
|
|
13991
|
+
{ json: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args) }
|
|
13992
13992
|
);
|
|
13993
13993
|
return 0;
|
|
13994
13994
|
}
|
|
@@ -14018,7 +14018,7 @@ async function handleRunTail(args) {
|
|
|
14018
14018
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14019
14019
|
return 1;
|
|
14020
14020
|
}
|
|
14021
|
-
const parsed =
|
|
14021
|
+
const parsed = _chunkQDGUDNVRjs.parseLogLevel.call(void 0, value);
|
|
14022
14022
|
if (!parsed) {
|
|
14023
14023
|
console.error(
|
|
14024
14024
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14056,9 +14056,9 @@ async function handleRunTail(args) {
|
|
|
14056
14056
|
);
|
|
14057
14057
|
return 1;
|
|
14058
14058
|
}
|
|
14059
|
-
const client = new (0,
|
|
14059
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
14060
14060
|
const jsonLines = args.includes("--jsonl");
|
|
14061
|
-
const jsonOutput = !jsonLines &&
|
|
14061
|
+
const jsonOutput = !jsonLines && _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args);
|
|
14062
14062
|
const compact = args.includes("--compact");
|
|
14063
14063
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14064
14064
|
const compactState = {
|
|
@@ -14139,7 +14139,7 @@ async function handleRunLogs(args) {
|
|
|
14139
14139
|
]);
|
|
14140
14140
|
const cursorIndex = args.indexOf("--cursor");
|
|
14141
14141
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14142
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14142
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkQDGUDNVRjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14143
14143
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14144
14144
|
return handleRunEventSearch(args);
|
|
14145
14145
|
}
|
|
@@ -14173,7 +14173,7 @@ async function handleRunLogs(args) {
|
|
|
14173
14173
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14174
14174
|
return 1;
|
|
14175
14175
|
}
|
|
14176
|
-
const parsed =
|
|
14176
|
+
const parsed = _chunkQDGUDNVRjs.parseLogLevel.call(void 0, value);
|
|
14177
14177
|
if (!parsed) {
|
|
14178
14178
|
console.error(
|
|
14179
14179
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14220,12 +14220,12 @@ async function handleRunLogs(args) {
|
|
|
14220
14220
|
);
|
|
14221
14221
|
return 1;
|
|
14222
14222
|
}
|
|
14223
|
-
const client = new (0,
|
|
14223
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
14224
14224
|
if (outPath) {
|
|
14225
14225
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14226
|
-
const logs = result2.entries.filter((line) =>
|
|
14226
|
+
const logs = result2.entries.filter((line) => _chunkQDGUDNVRjs.logLevelReaches.call(void 0, _chunkQDGUDNVRjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkQDGUDNVRjs.classifyLogLine.call(void 0, line).line);
|
|
14227
14227
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14228
|
-
|
|
14228
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
14229
14229
|
{
|
|
14230
14230
|
runId: result2.runId,
|
|
14231
14231
|
log_path: outPath,
|
|
@@ -14248,7 +14248,7 @@ async function handleRunLogs(args) {
|
|
|
14248
14248
|
]
|
|
14249
14249
|
}
|
|
14250
14250
|
},
|
|
14251
|
-
{ json:
|
|
14251
|
+
{ json: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args) }
|
|
14252
14252
|
);
|
|
14253
14253
|
return 0;
|
|
14254
14254
|
}
|
|
@@ -14279,7 +14279,7 @@ async function handleRunLogs(args) {
|
|
|
14279
14279
|
}
|
|
14280
14280
|
};
|
|
14281
14281
|
const text = buildRunLogsText(filteredResult);
|
|
14282
|
-
|
|
14282
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
14283
14283
|
{
|
|
14284
14284
|
runId: result.runId,
|
|
14285
14285
|
totalCount: result.totalCount,
|
|
@@ -14303,7 +14303,7 @@ async function handleRunLogs(args) {
|
|
|
14303
14303
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14304
14304
|
},
|
|
14305
14305
|
{
|
|
14306
|
-
json:
|
|
14306
|
+
json: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args),
|
|
14307
14307
|
text
|
|
14308
14308
|
}
|
|
14309
14309
|
);
|
|
@@ -14327,7 +14327,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14327
14327
|
);
|
|
14328
14328
|
}
|
|
14329
14329
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14330
|
-
(entry) =>
|
|
14330
|
+
(entry) => _chunkQDGUDNVRjs.logLevelReaches.call(void 0, _chunkQDGUDNVRjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14331
14331
|
);
|
|
14332
14332
|
const selected = matching.slice(-limit);
|
|
14333
14333
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14337,7 +14337,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14337
14337
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _555 => _555.at, 'call', _556 => _556(-1), 'optionalAccess', _557 => _557.seq]), () => ( null)),
|
|
14338
14338
|
truncated: result.truncated || olderMatchesExist,
|
|
14339
14339
|
hasMore: olderMatchesExist,
|
|
14340
|
-
nextCursor: olderMatchesExist ?
|
|
14340
|
+
nextCursor: olderMatchesExist ? _chunkQDGUDNVRjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14341
14341
|
};
|
|
14342
14342
|
}
|
|
14343
14343
|
async function handleRunEventSearch(args) {
|
|
@@ -14404,7 +14404,7 @@ ${usage2}`);
|
|
|
14404
14404
|
namespace,
|
|
14405
14405
|
...backend ? { backend } : {}
|
|
14406
14406
|
} : void 0;
|
|
14407
|
-
const client = new (0,
|
|
14407
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
14408
14408
|
const result = await client.runs.searchEvents({
|
|
14409
14409
|
...runId ? { runId } : {},
|
|
14410
14410
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14476,7 +14476,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14476
14476
|
"--limit",
|
|
14477
14477
|
String(limit)
|
|
14478
14478
|
].join(" ") : null;
|
|
14479
|
-
|
|
14479
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
14480
14480
|
{
|
|
14481
14481
|
events,
|
|
14482
14482
|
nextCursor: result.nextCursor,
|
|
@@ -14487,14 +14487,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14487
14487
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14488
14488
|
},
|
|
14489
14489
|
{
|
|
14490
|
-
json:
|
|
14490
|
+
json: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args),
|
|
14491
14491
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14492
14492
|
}
|
|
14493
14493
|
);
|
|
14494
14494
|
return 0;
|
|
14495
14495
|
}
|
|
14496
14496
|
function buildRunLogsText(result) {
|
|
14497
|
-
const lines = result.entries.map((line) =>
|
|
14497
|
+
const lines = result.entries.map((line) => _chunkQDGUDNVRjs.classifyLogLine.call(void 0, line).line);
|
|
14498
14498
|
if (result.warning) {
|
|
14499
14499
|
if (lines.length > 0) lines.push("");
|
|
14500
14500
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14528,7 +14528,7 @@ async function handleRunStop(args) {
|
|
|
14528
14528
|
reason = args[++index];
|
|
14529
14529
|
}
|
|
14530
14530
|
}
|
|
14531
|
-
const client = new (0,
|
|
14531
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
14532
14532
|
const result = await client.runs.stop(runId, { reason });
|
|
14533
14533
|
const state = resolveRunStopState(result);
|
|
14534
14534
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14543,7 +14543,7 @@ async function handleRunStop(args) {
|
|
|
14543
14543
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14544
14544
|
`inspect: deepline runs get ${runId} --full`
|
|
14545
14545
|
];
|
|
14546
|
-
|
|
14546
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
14547
14547
|
{
|
|
14548
14548
|
...cancelling,
|
|
14549
14549
|
state,
|
|
@@ -14558,7 +14558,7 @@ async function handleRunStop(args) {
|
|
|
14558
14558
|
]
|
|
14559
14559
|
}
|
|
14560
14560
|
},
|
|
14561
|
-
{ json:
|
|
14561
|
+
{ json: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args) }
|
|
14562
14562
|
);
|
|
14563
14563
|
return 0;
|
|
14564
14564
|
}
|
|
@@ -14575,7 +14575,7 @@ async function handleRunStop(args) {
|
|
|
14575
14575
|
];
|
|
14576
14576
|
process.stderr.write(`${lines2.join("\n")}
|
|
14577
14577
|
`);
|
|
14578
|
-
|
|
14578
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
14579
14579
|
{
|
|
14580
14580
|
...result,
|
|
14581
14581
|
render: {
|
|
@@ -14590,7 +14590,7 @@ async function handleRunStop(args) {
|
|
|
14590
14590
|
]
|
|
14591
14591
|
}
|
|
14592
14592
|
},
|
|
14593
|
-
{ json:
|
|
14593
|
+
{ json: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args) }
|
|
14594
14594
|
);
|
|
14595
14595
|
return 1;
|
|
14596
14596
|
}
|
|
@@ -14601,12 +14601,12 @@ async function handleRunStop(args) {
|
|
|
14601
14601
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14602
14602
|
] : []
|
|
14603
14603
|
];
|
|
14604
|
-
|
|
14604
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
14605
14605
|
{
|
|
14606
14606
|
...result,
|
|
14607
14607
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14608
14608
|
},
|
|
14609
|
-
{ json:
|
|
14609
|
+
{ json: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args) }
|
|
14610
14610
|
);
|
|
14611
14611
|
return 0;
|
|
14612
14612
|
}
|
|
@@ -14656,18 +14656,18 @@ async function handleRunStopAll(args) {
|
|
|
14656
14656
|
reason = args[++index];
|
|
14657
14657
|
}
|
|
14658
14658
|
}
|
|
14659
|
-
const client = new (0,
|
|
14659
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
14660
14660
|
if (dryRun) {
|
|
14661
14661
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14662
14662
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14663
|
-
|
|
14663
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
14664
14664
|
{
|
|
14665
14665
|
...result2,
|
|
14666
14666
|
render: {
|
|
14667
14667
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14668
14668
|
}
|
|
14669
14669
|
},
|
|
14670
|
-
{ json:
|
|
14670
|
+
{ json: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14671
14671
|
` }
|
|
14672
14672
|
);
|
|
14673
14673
|
return 0;
|
|
@@ -14680,17 +14680,17 @@ async function handleRunStopAll(args) {
|
|
|
14680
14680
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14681
14681
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14682
14682
|
];
|
|
14683
|
-
|
|
14683
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
14684
14684
|
{
|
|
14685
14685
|
...result,
|
|
14686
14686
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14687
14687
|
},
|
|
14688
|
-
{ json:
|
|
14688
|
+
{ json: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args) }
|
|
14689
14689
|
);
|
|
14690
14690
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14691
14691
|
}
|
|
14692
14692
|
async function handleRunExport(args) {
|
|
14693
|
-
const selection =
|
|
14693
|
+
const selection = _chunk3UKVFI2Rjs.parseJsonFields.call(void 0, args, "export");
|
|
14694
14694
|
args = selection.args;
|
|
14695
14695
|
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]";
|
|
14696
14696
|
let runId;
|
|
@@ -14761,17 +14761,17 @@ async function handleRunExport(args) {
|
|
|
14761
14761
|
"INVALID_ARGUMENT"
|
|
14762
14762
|
);
|
|
14763
14763
|
}
|
|
14764
|
-
const client = new (0,
|
|
14764
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
14765
14765
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14766
14766
|
assertRunExportStatusIdentity(status, runId);
|
|
14767
14767
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14768
|
-
const progress =
|
|
14768
|
+
const progress = _chunkZ52XVM5Ijs.createCliProgress.call(void 0, !_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args));
|
|
14769
14769
|
try {
|
|
14770
14770
|
await waitForPlayCompletionByWatch({
|
|
14771
14771
|
client,
|
|
14772
14772
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14773
14773
|
workflowId: runId,
|
|
14774
|
-
jsonOutput:
|
|
14774
|
+
jsonOutput: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args),
|
|
14775
14775
|
emitLogs: false,
|
|
14776
14776
|
waitTimeoutMs,
|
|
14777
14777
|
startedAt: Date.now(),
|
|
@@ -14839,7 +14839,7 @@ async function handleRunExport(args) {
|
|
|
14839
14839
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.totalRows]), () => ( null)),
|
|
14840
14840
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14841
14841
|
...rowFailures ? { rowFailures } : {},
|
|
14842
|
-
columns:
|
|
14842
|
+
columns: _chunkSDD75XIUjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _573 => _573.rowsInfo, 'access', _574 => _574.columns]), () => ( []))),
|
|
14843
14843
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14844
14844
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14845
14845
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -14873,8 +14873,8 @@ async function handleRunExport(args) {
|
|
|
14873
14873
|
"utf-8"
|
|
14874
14874
|
);
|
|
14875
14875
|
}
|
|
14876
|
-
|
|
14877
|
-
json:
|
|
14876
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, payload, {
|
|
14877
|
+
json: _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args),
|
|
14878
14878
|
fields: selection.fields,
|
|
14879
14879
|
text: `${lines.join("\n")}
|
|
14880
14880
|
`
|
|
@@ -14908,10 +14908,10 @@ async function handlePlayGet(args) {
|
|
|
14908
14908
|
);
|
|
14909
14909
|
return 2;
|
|
14910
14910
|
}
|
|
14911
|
-
const client = new (0,
|
|
14911
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
14912
14912
|
const explicitJson = args.includes("--json");
|
|
14913
14913
|
const sourceOutput = args.includes("--source");
|
|
14914
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14914
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args);
|
|
14915
14915
|
const requestedRevisionFlags = [
|
|
14916
14916
|
args.includes("--working"),
|
|
14917
14917
|
args.includes("--live"),
|
|
@@ -14974,7 +14974,7 @@ async function handlePlayGet(args) {
|
|
|
14974
14974
|
}
|
|
14975
14975
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
14976
14976
|
if (jsonOutput) {
|
|
14977
|
-
|
|
14977
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, {
|
|
14978
14978
|
...detail,
|
|
14979
14979
|
...materializedFile ? {
|
|
14980
14980
|
message: loadedMessage,
|
|
@@ -15066,8 +15066,8 @@ async function handlePlayVersions(args) {
|
|
|
15066
15066
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15067
15067
|
return 1;
|
|
15068
15068
|
}
|
|
15069
|
-
const client = new (0,
|
|
15070
|
-
const jsonOutput =
|
|
15069
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
15070
|
+
const jsonOutput = _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args);
|
|
15071
15071
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15072
15072
|
command: "versions"
|
|
15073
15073
|
});
|
|
@@ -15075,7 +15075,7 @@ async function handlePlayVersions(args) {
|
|
|
15075
15075
|
parseReferencedPlayTarget(playName).playName
|
|
15076
15076
|
);
|
|
15077
15077
|
if (jsonOutput) {
|
|
15078
|
-
|
|
15078
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, { versions });
|
|
15079
15079
|
return 0;
|
|
15080
15080
|
}
|
|
15081
15081
|
if (versions.length === 0) {
|
|
@@ -15118,8 +15118,8 @@ async function handlePlayCost(args) {
|
|
|
15118
15118
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
15119
15119
|
return 2;
|
|
15120
15120
|
}
|
|
15121
|
-
const result = await new (0,
|
|
15122
|
-
if (
|
|
15121
|
+
const result = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
15122
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
15123
15123
|
else
|
|
15124
15124
|
console.log(
|
|
15125
15125
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -15127,9 +15127,9 @@ async function handlePlayCost(args) {
|
|
|
15127
15127
|
return 0;
|
|
15128
15128
|
}
|
|
15129
15129
|
async function handlePlayList(args) {
|
|
15130
|
-
const jsonOutput =
|
|
15130
|
+
const jsonOutput = _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args);
|
|
15131
15131
|
const showCost = args.includes("--show-cost");
|
|
15132
|
-
const client = new (0,
|
|
15132
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
15133
15133
|
const categoriesIndex = args.indexOf("--categories");
|
|
15134
15134
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _594 => _594[categoriesIndex + 1], 'optionalAccess', _595 => _595.trim, 'call', _596 => _596()]) : void 0;
|
|
15135
15135
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15227,7 +15227,7 @@ async function handlePlayList(args) {
|
|
|
15227
15227
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15228
15228
|
lines.push(`Next page: ${nextPage}`);
|
|
15229
15229
|
}
|
|
15230
|
-
|
|
15230
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
15231
15231
|
{
|
|
15232
15232
|
plays,
|
|
15233
15233
|
count: plays.length,
|
|
@@ -15245,7 +15245,7 @@ async function handlePlayList(args) {
|
|
|
15245
15245
|
}
|
|
15246
15246
|
async function handlePlayPin(args, pinned) {
|
|
15247
15247
|
const target = _optionalChain([args, 'access', _605 => _605.find, 'call', _606 => _606((arg) => !arg.startsWith("-")), 'optionalAccess', _607 => _607.trim, 'call', _608 => _608()]);
|
|
15248
|
-
const jsonOutput =
|
|
15248
|
+
const jsonOutput = _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args);
|
|
15249
15249
|
const dryRun = args.includes("--dry-run");
|
|
15250
15250
|
if (!target) {
|
|
15251
15251
|
console.error(
|
|
@@ -15263,11 +15263,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15263
15263
|
const name = parsedTarget.playName;
|
|
15264
15264
|
const plan = { name, pinned, dryRun };
|
|
15265
15265
|
if (dryRun) {
|
|
15266
|
-
|
|
15266
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, plan);
|
|
15267
15267
|
return 0;
|
|
15268
15268
|
}
|
|
15269
|
-
const result = await new (0,
|
|
15270
|
-
if (jsonOutput)
|
|
15269
|
+
const result = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15270
|
+
if (jsonOutput) _chunk3UKVFI2Rjs.printCompactJson.call(void 0, result);
|
|
15271
15271
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15272
15272
|
return 0;
|
|
15273
15273
|
}
|
|
@@ -15393,12 +15393,12 @@ async function handlePlayGrep(args) {
|
|
|
15393
15393
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15394
15394
|
return 1;
|
|
15395
15395
|
}
|
|
15396
|
-
const client = new (0,
|
|
15396
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
15397
15397
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15398
15398
|
summarizePlayGrepResult
|
|
15399
15399
|
);
|
|
15400
|
-
if (
|
|
15401
|
-
|
|
15400
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
15401
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, {
|
|
15402
15402
|
plays: results,
|
|
15403
15403
|
count: results.length,
|
|
15404
15404
|
query,
|
|
@@ -15421,7 +15421,7 @@ async function handlePlayGrep(args) {
|
|
|
15421
15421
|
return 0;
|
|
15422
15422
|
}
|
|
15423
15423
|
async function handlePlayDescribe(args) {
|
|
15424
|
-
const selection =
|
|
15424
|
+
const selection = _chunk3UKVFI2Rjs.parseJsonFields.call(void 0, args, "describe");
|
|
15425
15425
|
args = selection.args;
|
|
15426
15426
|
const playName = args[0];
|
|
15427
15427
|
if (!playName) {
|
|
@@ -15455,8 +15455,8 @@ async function handlePlayDescribe(args) {
|
|
|
15455
15455
|
`deepline plays check ${playName}`,
|
|
15456
15456
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15457
15457
|
];
|
|
15458
|
-
if (
|
|
15459
|
-
|
|
15458
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
15459
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, {
|
|
15460
15460
|
ok: false,
|
|
15461
15461
|
error: { message },
|
|
15462
15462
|
next
|
|
@@ -15470,7 +15470,7 @@ async function handlePlayDescribe(args) {
|
|
|
15470
15470
|
}
|
|
15471
15471
|
return 2;
|
|
15472
15472
|
}
|
|
15473
|
-
const client = new (0,
|
|
15473
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
15474
15474
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15475
15475
|
command: "describe"
|
|
15476
15476
|
});
|
|
@@ -15480,9 +15480,9 @@ async function handlePlayDescribe(args) {
|
|
|
15480
15480
|
compact: args.includes("--compact")
|
|
15481
15481
|
}
|
|
15482
15482
|
);
|
|
15483
|
-
if (
|
|
15484
|
-
if (selection.fields)
|
|
15485
|
-
else
|
|
15483
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
15484
|
+
if (selection.fields) _chunk3UKVFI2Rjs.printJson.call(void 0, play, selection.fields);
|
|
15485
|
+
else _chunk3UKVFI2Rjs.printCompactJson.call(void 0, play);
|
|
15486
15486
|
return 0;
|
|
15487
15487
|
}
|
|
15488
15488
|
printPlayDescription(play);
|
|
@@ -15504,7 +15504,7 @@ async function handlePlaySave(args) {
|
|
|
15504
15504
|
}
|
|
15505
15505
|
let graph;
|
|
15506
15506
|
try {
|
|
15507
|
-
graph = await
|
|
15507
|
+
graph = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
15508
15508
|
"cli.play_save_bundle_graph",
|
|
15509
15509
|
{ targetKind: "file" },
|
|
15510
15510
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15526,7 +15526,7 @@ async function handlePlaySave(args) {
|
|
|
15526
15526
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15527
15527
|
};
|
|
15528
15528
|
if (options.jsonOutput) {
|
|
15529
|
-
|
|
15529
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, result);
|
|
15530
15530
|
} else {
|
|
15531
15531
|
console.error(result.message);
|
|
15532
15532
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15548,7 +15548,7 @@ async function handlePlaySave(args) {
|
|
|
15548
15548
|
};
|
|
15549
15549
|
if (options.dryRun) {
|
|
15550
15550
|
if (options.jsonOutput) {
|
|
15551
|
-
|
|
15551
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, dryRun);
|
|
15552
15552
|
} else {
|
|
15553
15553
|
console.log(`Dry run: ${playName}`);
|
|
15554
15554
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15557,14 +15557,14 @@ async function handlePlaySave(args) {
|
|
|
15557
15557
|
}
|
|
15558
15558
|
return 0;
|
|
15559
15559
|
}
|
|
15560
|
-
const client = new (0,
|
|
15560
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
15561
15561
|
try {
|
|
15562
|
-
await
|
|
15562
|
+
await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
15563
15563
|
"cli.play_save_compile_manifests",
|
|
15564
15564
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15565
15565
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15566
15566
|
);
|
|
15567
|
-
const saved = await
|
|
15567
|
+
const saved = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
15568
15568
|
"cli.play_save_register_draft",
|
|
15569
15569
|
{ targetKind: "file", playName, artifactHash },
|
|
15570
15570
|
() => client.registerPlayArtifact({
|
|
@@ -15593,7 +15593,7 @@ async function handlePlaySave(args) {
|
|
|
15593
15593
|
}
|
|
15594
15594
|
};
|
|
15595
15595
|
if (options.jsonOutput) {
|
|
15596
|
-
|
|
15596
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, result);
|
|
15597
15597
|
} else {
|
|
15598
15598
|
console.log(
|
|
15599
15599
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15619,7 +15619,7 @@ async function handlePlayPublish(args) {
|
|
|
15619
15619
|
}
|
|
15620
15620
|
const { target: playName, useLatest } = options;
|
|
15621
15621
|
let revisionId = options.revisionId;
|
|
15622
|
-
const client = new (0,
|
|
15622
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
15623
15623
|
if (isFileTarget(playName)) {
|
|
15624
15624
|
if (revisionId || useLatest) {
|
|
15625
15625
|
console.error(
|
|
@@ -15629,7 +15629,7 @@ async function handlePlayPublish(args) {
|
|
|
15629
15629
|
}
|
|
15630
15630
|
let graph;
|
|
15631
15631
|
try {
|
|
15632
|
-
graph = await
|
|
15632
|
+
graph = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
15633
15633
|
"cli.play_publish_bundle_graph",
|
|
15634
15634
|
{ targetKind: "file" },
|
|
15635
15635
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15651,7 +15651,7 @@ async function handlePlayPublish(args) {
|
|
|
15651
15651
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15652
15652
|
};
|
|
15653
15653
|
if (options.jsonOutput) {
|
|
15654
|
-
|
|
15654
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, result3);
|
|
15655
15655
|
} else {
|
|
15656
15656
|
console.error(result3.message);
|
|
15657
15657
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15674,7 +15674,7 @@ async function handlePlayPublish(args) {
|
|
|
15674
15674
|
};
|
|
15675
15675
|
if (options.dryRun) {
|
|
15676
15676
|
if (options.jsonOutput) {
|
|
15677
|
-
|
|
15677
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, dryRun);
|
|
15678
15678
|
} else {
|
|
15679
15679
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15680
15680
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15693,12 +15693,12 @@ async function handlePlayPublish(args) {
|
|
|
15693
15693
|
}
|
|
15694
15694
|
}
|
|
15695
15695
|
try {
|
|
15696
|
-
await
|
|
15696
|
+
await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
15697
15697
|
"cli.play_publish_compile_manifests",
|
|
15698
15698
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15699
15699
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15700
15700
|
);
|
|
15701
|
-
await
|
|
15701
|
+
await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
15702
15702
|
"cli.play_publish_imports",
|
|
15703
15703
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15704
15704
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15707,7 +15707,7 @@ async function handlePlayPublish(args) {
|
|
|
15707
15707
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15708
15708
|
return 1;
|
|
15709
15709
|
}
|
|
15710
|
-
const published = await
|
|
15710
|
+
const published = await _chunkHDDE4Y4Vjs.traceCliSpan.call(void 0,
|
|
15711
15711
|
"cli.play_publish_register_root",
|
|
15712
15712
|
{
|
|
15713
15713
|
targetKind: "file",
|
|
@@ -15742,7 +15742,7 @@ async function handlePlayPublish(args) {
|
|
|
15742
15742
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15743
15743
|
};
|
|
15744
15744
|
if (options.jsonOutput) {
|
|
15745
|
-
|
|
15745
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, result2);
|
|
15746
15746
|
} else {
|
|
15747
15747
|
printPublishReceipt({
|
|
15748
15748
|
name: rootPlayName,
|
|
@@ -15773,7 +15773,7 @@ async function handlePlayPublish(args) {
|
|
|
15773
15773
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15774
15774
|
latest: useLatest
|
|
15775
15775
|
};
|
|
15776
|
-
|
|
15776
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, result2);
|
|
15777
15777
|
return 0;
|
|
15778
15778
|
}
|
|
15779
15779
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15797,7 +15797,7 @@ async function handlePlayPublish(args) {
|
|
|
15797
15797
|
revisionId ? { revisionId } : {}
|
|
15798
15798
|
);
|
|
15799
15799
|
if (options.jsonOutput) {
|
|
15800
|
-
|
|
15800
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, result);
|
|
15801
15801
|
} else {
|
|
15802
15802
|
printPublishReceipt({
|
|
15803
15803
|
name: result.name,
|
|
@@ -15837,7 +15837,7 @@ async function handlePlayDelete(args) {
|
|
|
15837
15837
|
);
|
|
15838
15838
|
return 2;
|
|
15839
15839
|
}
|
|
15840
|
-
const client = new (0,
|
|
15840
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
15841
15841
|
let detail;
|
|
15842
15842
|
try {
|
|
15843
15843
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15861,8 +15861,8 @@ async function handlePlayDelete(args) {
|
|
|
15861
15861
|
name: resolvedName,
|
|
15862
15862
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15863
15863
|
};
|
|
15864
|
-
if (
|
|
15865
|
-
|
|
15864
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
15865
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, result2);
|
|
15866
15866
|
} else {
|
|
15867
15867
|
process.stdout.write(
|
|
15868
15868
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15872,8 +15872,8 @@ async function handlePlayDelete(args) {
|
|
|
15872
15872
|
return 0;
|
|
15873
15873
|
}
|
|
15874
15874
|
const result = await client.deletePlay(resolvedName);
|
|
15875
|
-
if (
|
|
15876
|
-
|
|
15875
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
15876
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, result);
|
|
15877
15877
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15878
15878
|
}
|
|
15879
15879
|
if (result.alreadyArchived) {
|
|
@@ -15912,13 +15912,13 @@ async function handlePlayRestore(args) {
|
|
|
15912
15912
|
);
|
|
15913
15913
|
return 2;
|
|
15914
15914
|
}
|
|
15915
|
-
const client = new (0,
|
|
15915
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
15916
15916
|
try {
|
|
15917
15917
|
const result = await client.restorePlay(
|
|
15918
15918
|
parseReferencedPlayTarget(playName).playName
|
|
15919
15919
|
);
|
|
15920
|
-
if (
|
|
15921
|
-
|
|
15920
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
15921
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, result);
|
|
15922
15922
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
15923
15923
|
}
|
|
15924
15924
|
if (result.alreadyActive) {
|
|
@@ -16045,21 +16045,21 @@ Common commands:
|
|
|
16045
16045
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16046
16046
|
}
|
|
16047
16047
|
};
|
|
16048
|
-
|
|
16048
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0, result2, {
|
|
16049
16049
|
json: options.json,
|
|
16050
16050
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16051
16051
|
`
|
|
16052
16052
|
});
|
|
16053
16053
|
return;
|
|
16054
16054
|
}
|
|
16055
|
-
const client = new (0,
|
|
16055
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
16056
16056
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16057
16057
|
throw new Error(
|
|
16058
16058
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16059
16059
|
);
|
|
16060
16060
|
}
|
|
16061
16061
|
const result = await client.startPlayRun(saved.request);
|
|
16062
|
-
|
|
16062
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
16063
16063
|
{ ...result },
|
|
16064
16064
|
{
|
|
16065
16065
|
json: options.json,
|
|
@@ -16095,7 +16095,7 @@ Examples:
|
|
|
16095
16095
|
).action(async (target, options) => {
|
|
16096
16096
|
process.exitCode = await handlePlayCheck([
|
|
16097
16097
|
target,
|
|
16098
|
-
...
|
|
16098
|
+
..._chunk3UKVFI2Rjs.jsonFieldArgs.call(void 0, options.json),
|
|
16099
16099
|
...options.full ? ["--full"] : []
|
|
16100
16100
|
]);
|
|
16101
16101
|
});
|
|
@@ -16138,10 +16138,10 @@ Notes:
|
|
|
16138
16138
|
retained input and pinned revision, and returns once it starts. It accepts
|
|
16139
16139
|
only --json.
|
|
16140
16140
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16141
|
-
resident-work ceiling. Default: ${
|
|
16141
|
+
resident-work ceiling. Default: ${_chunk4EGBOZ53js.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunk4EGBOZ53js.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16142
16142
|
Provider pacing and sandbox memory limits still apply.
|
|
16143
16143
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16144
|
-
resolvers. Accepted range: 1-${
|
|
16144
|
+
resolvers. Accepted range: 1-${_chunk4EGBOZ53js.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16145
16145
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16146
16146
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16147
16147
|
Tool calls that would exceed it are denied.
|
|
@@ -16266,10 +16266,10 @@ Examples:
|
|
|
16266
16266
|
).hideHelp()
|
|
16267
16267
|
).option(
|
|
16268
16268
|
"--max-concurrent-external-calls <count>",
|
|
16269
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16269
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunk4EGBOZ53js.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunk4EGBOZ53js.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16270
16270
|
).option(
|
|
16271
16271
|
"--max-concurrent-rows <count>",
|
|
16272
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16272
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunk4EGBOZ53js.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16273
16273
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
|
|
16274
16274
|
"--debug-map-latency",
|
|
16275
16275
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16355,14 +16355,14 @@ JSON field selection:
|
|
|
16355
16355
|
passthroughArgs.shift();
|
|
16356
16356
|
}
|
|
16357
16357
|
const exitCode = await handlePlayRun(
|
|
16358
|
-
|
|
16358
|
+
_chunk4EGBOZ53js.resolvePlayRunCliOptions.call(void 0,
|
|
16359
16359
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16360
16360
|
options,
|
|
16361
16361
|
passthroughArgs,
|
|
16362
|
-
|
|
16362
|
+
_chunkHDDE4Y4Vjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16363
16363
|
)
|
|
16364
16364
|
);
|
|
16365
|
-
|
|
16365
|
+
_chunkHDDE4Y4Vjs.recordCliTrace.call(void 0, {
|
|
16366
16366
|
phase: "cli.play_command_exit",
|
|
16367
16367
|
exitCode
|
|
16368
16368
|
});
|
|
@@ -16411,9 +16411,9 @@ Examples:
|
|
|
16411
16411
|
const limit = Number(options.historyLimit);
|
|
16412
16412
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16413
16413
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16414
|
-
const client = new (0,
|
|
16414
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
16415
16415
|
if (options.binding) {
|
|
16416
|
-
|
|
16416
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0,
|
|
16417
16417
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16418
16418
|
);
|
|
16419
16419
|
return;
|
|
@@ -16421,7 +16421,7 @@ Examples:
|
|
|
16421
16421
|
const result = await client.listPlayTriggerInventory({
|
|
16422
16422
|
cursor: options.cursor
|
|
16423
16423
|
});
|
|
16424
|
-
|
|
16424
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, {
|
|
16425
16425
|
...result,
|
|
16426
16426
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16427
16427
|
});
|
|
@@ -16480,7 +16480,7 @@ Examples:
|
|
|
16480
16480
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16481
16481
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16482
16482
|
}
|
|
16483
|
-
const result = await new (0,
|
|
16483
|
+
const result = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().getPlaysActivity({
|
|
16484
16484
|
timeZone: options.timeZone,
|
|
16485
16485
|
days,
|
|
16486
16486
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16494,7 +16494,7 @@ Examples:
|
|
|
16494
16494
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16495
16495
|
);
|
|
16496
16496
|
}
|
|
16497
|
-
|
|
16497
|
+
_chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
|
|
16498
16498
|
{ ...result },
|
|
16499
16499
|
{
|
|
16500
16500
|
json: Boolean(options.json),
|
|
@@ -16523,7 +16523,7 @@ Examples:
|
|
|
16523
16523
|
false
|
|
16524
16524
|
);
|
|
16525
16525
|
});
|
|
16526
|
-
|
|
16526
|
+
_chunkJI2LKS5Vjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16527
16527
|
play,
|
|
16528
16528
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16529
16529
|
);
|
|
@@ -16564,9 +16564,9 @@ Examples:
|
|
|
16564
16564
|
"--json [fields]",
|
|
16565
16565
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16566
16566
|
);
|
|
16567
|
-
|
|
16567
|
+
_chunkSDD75XIUjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16568
16568
|
async (target, options) => {
|
|
16569
|
-
const ownView = () => handlePlayDescribe(
|
|
16569
|
+
const ownView = () => handlePlayDescribe(_chunk3UKVFI2Rjs.describeArgs.call(void 0, target, options));
|
|
16570
16570
|
const [flagText] = [options.json].filter(
|
|
16571
16571
|
(value) => typeof value === "string"
|
|
16572
16572
|
);
|
|
@@ -16577,7 +16577,7 @@ Examples:
|
|
|
16577
16577
|
process.exitCode = await ownView();
|
|
16578
16578
|
return;
|
|
16579
16579
|
}
|
|
16580
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16580
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-GIJAGNZM.js")));
|
|
16581
16581
|
process.exitCode = await describeAnything(
|
|
16582
16582
|
name,
|
|
16583
16583
|
{
|
|
@@ -16695,7 +16695,7 @@ Examples:
|
|
|
16695
16695
|
deepline plays deployments <deployment-id>
|
|
16696
16696
|
`
|
|
16697
16697
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16698
|
-
async (id, options) => id ?
|
|
16698
|
+
async (id, options) => id ? _chunkPFEFK2FBjs.handleDeploymentGet.call(void 0, id, options) : _chunkPFEFK2FBjs.handleDeploymentsList.call(void 0, options)
|
|
16699
16699
|
);
|
|
16700
16700
|
addPublishHelp(
|
|
16701
16701
|
play.command("publish <target>").description(
|
|
@@ -16830,14 +16830,14 @@ Examples:
|
|
|
16830
16830
|
const limit = Number(options.limit);
|
|
16831
16831
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16832
16832
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16833
|
-
const result = await new (0,
|
|
16833
|
+
const result = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().runs.rowHistory({
|
|
16834
16834
|
playName: options.play,
|
|
16835
16835
|
runId,
|
|
16836
16836
|
tableNamespace: options.dataset,
|
|
16837
16837
|
limit,
|
|
16838
16838
|
cursor: options.cursor
|
|
16839
16839
|
});
|
|
16840
|
-
|
|
16840
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, {
|
|
16841
16841
|
...result,
|
|
16842
16842
|
...result.nextCursor ? {
|
|
16843
16843
|
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`
|
|
@@ -16915,7 +16915,7 @@ Examples:
|
|
|
16915
16915
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16916
16916
|
).action(async (runId, options) => {
|
|
16917
16917
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16918
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16918
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-5WBKZRLQ.js")));
|
|
16919
16919
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16920
16920
|
receiptJson: options.json !== void 0
|
|
16921
16921
|
});
|
|
@@ -16923,7 +16923,7 @@ Examples:
|
|
|
16923
16923
|
}
|
|
16924
16924
|
process.exitCode = await handleRunGet([
|
|
16925
16925
|
runId,
|
|
16926
|
-
...
|
|
16926
|
+
..._chunk3UKVFI2Rjs.jsonFieldArgs.call(void 0, options.json),
|
|
16927
16927
|
...options.web ? ["--web"] : [],
|
|
16928
16928
|
...options.webUrl ? ["--web-url"] : [],
|
|
16929
16929
|
...options.full ? ["--full"] : [],
|
|
@@ -17240,7 +17240,7 @@ Examples:
|
|
|
17240
17240
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17241
17241
|
...options.wait ? ["--wait"] : [],
|
|
17242
17242
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17243
|
-
...
|
|
17243
|
+
..._chunk3UKVFI2Rjs.jsonFieldArgs.call(void 0, options.json)
|
|
17244
17244
|
]);
|
|
17245
17245
|
});
|
|
17246
17246
|
const share = play.command("share").description(
|
|
@@ -17406,10 +17406,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17406
17406
|
return 2;
|
|
17407
17407
|
}
|
|
17408
17408
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17409
|
-
const status = await new (0,
|
|
17409
|
+
const status = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().getSharePage(name);
|
|
17410
17410
|
const outputStatus = shareStatusForOutput(status);
|
|
17411
|
-
if (
|
|
17412
|
-
|
|
17411
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
17412
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, outputStatus);
|
|
17413
17413
|
return 0;
|
|
17414
17414
|
}
|
|
17415
17415
|
if (!outputStatus.share) {
|
|
@@ -17448,7 +17448,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17448
17448
|
return 2;
|
|
17449
17449
|
}
|
|
17450
17450
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17451
|
-
const client = new (0,
|
|
17451
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
17452
17452
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17453
17453
|
let resolvedVersion;
|
|
17454
17454
|
if (!revisionId) {
|
|
@@ -17479,8 +17479,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17479
17479
|
);
|
|
17480
17480
|
if (!hasCompleted) {
|
|
17481
17481
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17482
|
-
if (
|
|
17483
|
-
|
|
17482
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
17483
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, {
|
|
17484
17484
|
ok: false,
|
|
17485
17485
|
code: "NO_SUCCESSFUL_RUN",
|
|
17486
17486
|
message,
|
|
@@ -17504,8 +17504,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17504
17504
|
};
|
|
17505
17505
|
if (args.includes("--dry-run")) {
|
|
17506
17506
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17507
|
-
if (
|
|
17508
|
-
|
|
17507
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
17508
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, plan);
|
|
17509
17509
|
} else {
|
|
17510
17510
|
console.log(
|
|
17511
17511
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17515,8 +17515,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17515
17515
|
}
|
|
17516
17516
|
const status = await client.publishSharePage(name, request);
|
|
17517
17517
|
const outputStatus = shareStatusForOutput(status);
|
|
17518
|
-
if (
|
|
17519
|
-
|
|
17518
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
17519
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, outputStatus);
|
|
17520
17520
|
return 0;
|
|
17521
17521
|
}
|
|
17522
17522
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17547,9 +17547,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17547
17547
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17548
17548
|
...seoIndexing ? { seoIndexing } : {}
|
|
17549
17549
|
};
|
|
17550
|
-
const status = await new (0,
|
|
17551
|
-
if (
|
|
17552
|
-
|
|
17550
|
+
const status = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().updateSharePage(name, request);
|
|
17551
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
17552
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, status);
|
|
17553
17553
|
return 0;
|
|
17554
17554
|
}
|
|
17555
17555
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17564,7 +17564,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17564
17564
|
return 2;
|
|
17565
17565
|
}
|
|
17566
17566
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17567
|
-
const client = new (0,
|
|
17567
|
+
const client = new (0, _chunkEAQQTYJLjs.DeeplineClient)();
|
|
17568
17568
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17569
17569
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17570
17570
|
if (!revisionId && versionFlag) {
|
|
@@ -17581,8 +17581,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17581
17581
|
revisionId ? { revisionId } : {}
|
|
17582
17582
|
);
|
|
17583
17583
|
const outputStatus = shareStatusForOutput(status);
|
|
17584
|
-
if (
|
|
17585
|
-
|
|
17584
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
17585
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, outputStatus);
|
|
17586
17586
|
return 0;
|
|
17587
17587
|
}
|
|
17588
17588
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17607,9 +17607,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17607
17607
|
return 2;
|
|
17608
17608
|
}
|
|
17609
17609
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17610
|
-
const status = await new (0,
|
|
17611
|
-
if (
|
|
17612
|
-
|
|
17610
|
+
const status = await new (0, _chunkEAQQTYJLjs.DeeplineClient)().unpublishSharePage(name);
|
|
17611
|
+
if (_chunk3UKVFI2Rjs.argsWantJson.call(void 0, args)) {
|
|
17612
|
+
_chunk3UKVFI2Rjs.printCompactJson.call(void 0, status);
|
|
17613
17613
|
return 0;
|
|
17614
17614
|
}
|
|
17615
17615
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17686,4 +17686,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17686
17686
|
|
|
17687
17687
|
|
|
17688
17688
|
|
|
17689
|
-
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag =
|
|
17689
|
+
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunk4EGBOZ53js.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunk4EGBOZ53js.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
|