deepline 0.3.554 → 0.3.555
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/bundling-sources/sdk/src/types.ts +8 -2
- package/dist/cli/auth-MRVTS74X.js +44 -0
- package/dist/cli/{auth-HJUNW7T2.mjs → auth-UFANBJW3.mjs} +5 -5
- package/dist/cli/{billing-4TSA5HEC.js → billing-BGIT2VYM.js} +102 -102
- package/dist/cli/{billing-SJYRJAQ2.mjs → billing-S7MCXBND.mjs} +9 -9
- package/dist/cli/{chunk-VLO5NFH2.mjs → chunk-57J3OOCR.mjs} +1 -1
- package/dist/cli/{chunk-GA2M3G3Y.mjs → chunk-5J6TKML2.mjs} +4 -4
- package/dist/cli/{chunk-52Q5KETX.mjs → chunk-66BQY77L.mjs} +1 -1
- package/dist/cli/{chunk-E74KGKFZ.js → chunk-6F5GNZQH.js} +5 -5
- package/dist/cli/{chunk-5CYZHOKI.js → chunk-6M2SDRWN.js} +4 -4
- package/dist/cli/{chunk-62HWJXST.mjs → chunk-6R5Y7U52.mjs} +2 -2
- package/dist/cli/{chunk-2HMN5H54.js → chunk-72VEVAIX.js} +48 -48
- package/dist/cli/{chunk-RBBTCYQB.mjs → chunk-732RWNDP.mjs} +3 -3
- package/dist/cli/{chunk-DSKSFFK2.mjs → chunk-7H753VC5.mjs} +1 -1
- package/dist/cli/{chunk-UOT7HPBH.js → chunk-7LM55DIN.js} +41 -41
- package/dist/cli/{chunk-D6Z6POKE.mjs → chunk-ASDVROA5.mjs} +5 -5
- package/dist/cli/{chunk-3Z4VFCXO.mjs → chunk-AUY53RLU.mjs} +5 -5
- package/dist/cli/{chunk-VIUUTEHY.js → chunk-AYCC5JAS.js} +3 -3
- package/dist/cli/{chunk-33WRQSQ2.mjs → chunk-BTKVXI3G.mjs} +3 -2
- package/dist/cli/{chunk-XD3MFTHA.mjs → chunk-DFL3UBW2.mjs} +1 -1
- package/dist/cli/{chunk-OVEYWO4H.js → chunk-DYWOBLYL.js} +8 -8
- package/dist/cli/{chunk-4DOFGIEJ.js → chunk-EG44APVW.js} +12 -12
- package/dist/cli/{chunk-2ORPFQUA.mjs → chunk-FO3U5YTL.mjs} +3 -3
- package/dist/cli/{chunk-XU6QNM4D.mjs → chunk-HQK2NPXE.mjs} +1 -1
- package/dist/cli/{chunk-B6HO2XWH.mjs → chunk-I45RNMNZ.mjs} +5 -5
- package/dist/cli/{chunk-M7STM3MZ.js → chunk-IHWXC7UU.js} +26 -26
- package/dist/cli/{chunk-TOO3YM5N.js → chunk-KSUI4YX5.js} +6 -6
- package/dist/cli/{chunk-VV4XGZ24.js → chunk-LU25WURE.js} +13 -13
- package/dist/cli/{chunk-62AUAWQV.mjs → chunk-M2CW4UZV.mjs} +4 -4
- package/dist/cli/{chunk-W6CZDTIR.js → chunk-M5YBTQQX.js} +53 -53
- package/dist/cli/{chunk-OPTV7D2V.js → chunk-MIXPZ4G7.js} +100 -100
- package/dist/cli/{chunk-GHT2NDL7.js → chunk-MOJ65E7L.js} +9 -9
- package/dist/cli/{chunk-UC4BDZKI.mjs → chunk-N55EUVKV.mjs} +2 -2
- package/dist/cli/{chunk-F7CMRKSK.mjs → chunk-NFWZAQAU.mjs} +1 -1
- package/dist/cli/{chunk-FXQ3JKE3.mjs → chunk-PGPPZMXD.mjs} +1 -1
- package/dist/cli/{chunk-UYCZFQYQ.js → chunk-QMDG7FKA.js} +10 -8
- package/dist/cli/{chunk-DUBXUAAO.js → chunk-QZ2C5ARH.js} +5 -5
- package/dist/cli/{chunk-YY55NYAH.mjs → chunk-RL7ZI4ZG.mjs} +11 -11
- package/dist/cli/{chunk-YCOGPOUX.mjs → chunk-RO7SIWBG.mjs} +2 -2
- package/dist/cli/{chunk-YQKCH4R7.js → chunk-RWT6N2SU.js} +20 -20
- package/dist/cli/{chunk-2OVHNHCF.js → chunk-S2CNGS7O.js} +2 -2
- package/dist/cli/{chunk-KVBQY4ST.mjs → chunk-S65SZ74B.mjs} +4 -2
- package/dist/cli/{chunk-GRZENGNE.js → chunk-SE56PJ46.js} +2 -2
- package/dist/cli/{chunk-RTHMGSZX.js → chunk-SF2LIUVO.js} +15 -15
- package/dist/cli/{chunk-UNNOZKRT.js → chunk-T3QSHU6E.js} +1 -1
- package/dist/cli/{chunk-UBBYHB2B.mjs → chunk-T4BFNFBL.mjs} +2 -2
- package/dist/cli/{chunk-ECHKAC7M.js → chunk-TFPKGTMD.js} +2 -2
- package/dist/cli/{chunk-7OWI736E.js → chunk-U6KGXTYS.js} +23 -23
- package/dist/cli/{chunk-6EXOAT6T.mjs → chunk-UUU5WUKM.mjs} +2 -2
- package/dist/cli/{chunk-BOZAP2EM.mjs → chunk-UYYOO7VT.mjs} +5 -5
- package/dist/cli/{chunk-Q7ACILL2.mjs → chunk-W6K6WULS.mjs} +2 -2
- package/dist/cli/{chunk-TJ6HLN56.js → chunk-W7SPSF63.js} +5 -5
- package/dist/cli/{chunk-PQQMPUCZ.js → chunk-WTQGJBHD.js} +3 -3
- package/dist/cli/{chunk-S6W6SJ6E.mjs → chunk-XIHZUWIG.mjs} +1 -1
- package/dist/cli/{chunk-IVZKMJUK.js → chunk-YI4ADWTN.js} +3 -2
- package/dist/cli/{chunk-WL7P32PI.js → chunk-YXH5Q7OY.js} +20 -20
- package/dist/cli/{chunk-FBAFX43W.js → chunk-Z2T7XTND.js} +10 -10
- package/dist/cli/{chunk-VQ75KX7G.mjs → chunk-Z3O5GCQM.mjs} +2 -2
- package/dist/cli/{chunk-KZHBDMGF.mjs → chunk-ZU6A4H6P.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-CHBVPWYT.js +22 -0
- package/dist/cli/{concurrent-runs-help-O3Q5IPLF.mjs → concurrent-runs-help-I7ZLXZDD.mjs} +6 -6
- package/dist/cli/{csv-Y3BFPEM6.mjs → csv-K7FNSHIM.mjs} +4 -4
- package/dist/cli/{csv-4ZQ2RATI.js → csv-Q2Y3KKK2.js} +13 -13
- package/dist/cli/{db-3JYY4JNN.mjs → db-74RBHX6G.mjs} +6 -6
- package/dist/cli/{db-VEIFS4M7.js → db-E4XSIQDS.js} +27 -27
- package/dist/cli/describe-TUW35JSY.js +50 -0
- package/dist/cli/{describe-EVJ4MFVU.mjs → describe-UYB6WDHS.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-PCXZKEHM.mjs → executions-6LKXZRL4.mjs} +6 -6
- package/dist/cli/{executions-HPZXOOVX.js → executions-LX6HJM72.js} +8 -8
- package/dist/cli/{feedback-ZKFHFVL6.js → feedback-7D2JRVOM.js} +14 -14
- package/dist/cli/{feedback-Y6VKZNY6.mjs → feedback-B2V64TYZ.mjs} +6 -6
- package/dist/cli/{git-UMPR2QYC.mjs → git-7KNCB2HN.mjs} +5 -5
- package/dist/cli/git-TH4M62KL.js +26 -0
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{integrations-3GQCTRTF.js → integrations-34UK7XET.js} +15 -15
- package/dist/cli/{integrations-V3TM6XAB.mjs → integrations-J3RHOSAR.mjs} +7 -7
- package/dist/cli/{legacy-noops-VYCO7NGW.js → legacy-noops-HXJ6UMK7.js} +9 -9
- package/dist/cli/{legacy-noops-JZBUD7ZE.mjs → legacy-noops-WQUDES3K.mjs} +6 -6
- package/dist/cli/{mcp-4OIWTCE6.js → mcp-EZENPRPY.js} +24 -24
- package/dist/cli/{mcp-PH4KZ76P.mjs → mcp-JZPAPQYI.mjs} +4 -4
- package/dist/cli/{monitors-SSMGIDGX.mjs → monitors-GF2WEFF6.mjs} +7 -7
- package/dist/cli/{monitors-E2A6VPBY.js → monitors-GS2P4OUK.js} +100 -100
- package/dist/cli/{org-WUDZGWBT.js → org-V56HBHPB.js} +121 -121
- package/dist/cli/{org-SFDKSK5D.mjs → org-WJ2RO7ZE.mjs} +6 -6
- package/dist/cli/{outcomes-Y7SZTLSL.js → outcomes-D6KXYKGW.js} +14 -14
- package/dist/cli/{outcomes-QT7LQBPK.mjs → outcomes-WP5WV54Y.mjs} +6 -6
- package/dist/cli/{play-EK7KSFPL.mjs → play-FHHCHNQH.mjs} +34 -22
- package/dist/cli/{play-GDNHCRRR.js → play-PXUVRS4K.js} +339 -327
- package/dist/cli/{providers-FVZLRXAU.mjs → providers-HJ77LN3M.mjs} +6 -6
- package/dist/cli/{providers-ZKOSECLV.js → providers-TOXIJOY2.js} +9 -9
- package/dist/cli/{quickstart-KSDKIXYD.js → quickstart-MDXLT5SR.js} +6 -6
- package/dist/cli/{quickstart-UJZ6PIQV.mjs → quickstart-UEQHXEWP.mjs} +4 -4
- package/dist/cli/{run-PD2BBG6S.js → run-2MXAEH6U.js} +48 -54
- package/dist/cli/{run-E7MZ7P35.mjs → run-ZZ5ABZL7.mjs} +27 -33
- package/dist/cli/search-6DT2TGOU.js +32 -0
- package/dist/cli/{search-VTFUFTOY.mjs → search-AF4XVWC2.mjs} +7 -7
- package/dist/cli/{search-output-PFVXQCWA.mjs → search-output-3GFQJJGJ.mjs} +4 -4
- package/dist/cli/{search-output-G2AGDCOY.js → search-output-LEKJVZSH.js} +6 -6
- package/dist/cli/{secrets-BCOQ4U7U.js → secrets-MR2FNFGD.js} +15 -15
- package/dist/cli/{secrets-7CIMEMX7.mjs → secrets-TLH3FKCT.mjs} +6 -6
- package/dist/cli/sessions-EJYLWV2M.js +23 -0
- package/dist/cli/{sessions-IUCQZEF7.mjs → sessions-LUL5P66K.mjs} +6 -6
- package/dist/cli/{settings-KZN62UQK.mjs → settings-AWSRUTZR.mjs} +12 -12
- package/dist/cli/{settings-REL4736M.js → settings-Z2HYUOL7.js} +85 -85
- package/dist/cli/{setup-2XIVBBCS.js → setup-FIMXN4IC.js} +49 -49
- package/dist/cli/{setup-2P7OG3OU.mjs → setup-PFPAJOUI.mjs} +9 -9
- package/dist/cli/skills-232RNG5G.js +37 -0
- package/dist/cli/{skills-VIGNDJKI.mjs → skills-5DKSATY5.mjs} +7 -7
- package/dist/cli/{tools-W3QT5EJY.mjs → tools-BDNASCSH.mjs} +17 -17
- package/dist/cli/tools-P7FBJVJA.js +57 -0
- package/dist/cli/{update-GZVBVMY3.mjs → update-CAFUZ5XT.mjs} +9 -9
- package/dist/cli/update-OC4UB2XE.js +37 -0
- package/dist/cli/{views-BOGEH424.mjs → views-7PDXZUQA.mjs} +6 -6
- package/dist/cli/{views-TOLJNLSV.js → views-XJOBO6US.js} +21 -21
- package/dist/cli/{workflow-VDG2FDQV.mjs → workflow-2BMUGN7M.mjs} +7 -7
- package/dist/cli/{workflow-ENWFRK5M.js → workflow-KCPLU5R7.js} +17 -17
- package/dist/{client-B8f7RNF8.d.mts → client-1ogYQqUw.d.mts} +1 -1
- package/dist/{client-C5TgXmJQ.d.ts → client-BoayTB7p.d.ts} +1 -1
- package/dist/{client-core-SLLGBTht.d.mts → client-core-Ch8CXaX4.d.mts} +8 -2
- package/dist/{client-core-p0sOxnkl.d.ts → client-core-DySw9x_E.d.ts} +8 -2
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +118 -118
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-SP6SKZJZ.js +0 -44
- package/dist/cli/concurrent-runs-help-ZFRZWX5V.js +0 -22
- package/dist/cli/describe-FG625QPF.js +0 -50
- package/dist/cli/git-RUBMALLH.js +0 -26
- package/dist/cli/search-TKSPTPHA.js +0 -32
- package/dist/cli/sessions-4CO556VD.js +0 -23
- package/dist/cli/skills-JYT5DEY6.js +0 -37
- package/dist/cli/tools-NTVUQ2TG.js +0 -57
- package/dist/cli/update-TWJZPUZM.js +0 -37
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkIHWXC7UUjs = require('./chunk-IHWXC7UU.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ var _chunkM7STM3MZjs = require('./chunk-M7STM3MZ.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkMOJ65E7Ljs = require('./chunk-MOJ65E7L.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -22,10 +22,10 @@ var _chunkGHT2NDL7js = require('./chunk-GHT2NDL7.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkQMDG7FKAjs = require('./chunk-QMDG7FKA.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkZ2T7XTNDjs = require('./chunk-Z2T7XTND.js');
|
|
29
29
|
require('./chunk-D3BCSAN7.js');
|
|
30
30
|
|
|
31
31
|
|
|
@@ -51,10 +51,10 @@ var _chunkR6DZ6NQ2js = require('./chunk-R6DZ6NQ2.js');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkW7SPSF63js = require('./chunk-W7SPSF63.js');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkQZ2C5ARHjs = require('./chunk-QZ2C5ARH.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -67,7 +67,7 @@ var _chunkDUBXUAAOjs = require('./chunk-DUBXUAAO.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkDYWOBLYLjs = require('./chunk-DYWOBLYL.js');
|
|
71
71
|
require('./chunk-4WAM6TLD.js');
|
|
72
72
|
|
|
73
73
|
|
|
@@ -90,18 +90,18 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
var
|
|
93
|
+
var _chunkKSUI4YX5js = require('./chunk-KSUI4YX5.js');
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
var
|
|
100
|
-
require('./chunk-
|
|
99
|
+
var _chunkSE56PJ46js = require('./chunk-SE56PJ46.js');
|
|
100
|
+
require('./chunk-72VEVAIX.js');
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
var
|
|
104
|
+
var _chunkWTQGJBHDjs = require('./chunk-WTQGJBHD.js');
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
var _chunkE2G2DNABjs = require('./chunk-E2G2DNAB.js');
|
|
@@ -122,13 +122,13 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
var
|
|
125
|
+
var _chunkRWT6N2SUjs = require('./chunk-RWT6N2SU.js');
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
var
|
|
128
|
+
var _chunkAYCC5JASjs = require('./chunk-AYCC5JAS.js');
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
var
|
|
131
|
+
var _chunk6M2SDRWNjs = require('./chunk-6M2SDRWN.js');
|
|
132
132
|
require('./chunk-6VLFQZK6.js');
|
|
133
133
|
require('./chunk-XNYIZMNQ.js');
|
|
134
134
|
|
|
@@ -138,7 +138,7 @@ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
var _chunkCFJFUVX2js = require('./chunk-CFJFUVX2.js');
|
|
141
|
-
require('./chunk-
|
|
141
|
+
require('./chunk-T3QSHU6E.js');
|
|
142
142
|
require('./chunk-OG64RBAC.js');
|
|
143
143
|
|
|
144
144
|
|
|
@@ -2120,7 +2120,7 @@ function resolveField(key, command) {
|
|
|
2120
2120
|
function printSettings(result, json, name) {
|
|
2121
2121
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2122
2122
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2123
|
-
|
|
2123
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
2124
2124
|
{
|
|
2125
2125
|
...result,
|
|
2126
2126
|
settings: Object.fromEntries(
|
|
@@ -2164,7 +2164,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2164
2164
|
valueSyntax: field.cli.valueSyntax,
|
|
2165
2165
|
examples: field.cli.examples
|
|
2166
2166
|
}));
|
|
2167
|
-
|
|
2167
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
2168
2168
|
{
|
|
2169
2169
|
fields: descriptions,
|
|
2170
2170
|
render: {
|
|
@@ -2189,7 +2189,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2189
2189
|
async (options, command) => {
|
|
2190
2190
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2191
2191
|
printSettings(
|
|
2192
|
-
await new (0,
|
|
2192
|
+
await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2193
2193
|
options.json,
|
|
2194
2194
|
options.name
|
|
2195
2195
|
);
|
|
@@ -2220,7 +2220,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2220
2220
|
);
|
|
2221
2221
|
}
|
|
2222
2222
|
if (options.dryRun) {
|
|
2223
|
-
|
|
2223
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
2224
2224
|
{
|
|
2225
2225
|
dryRun: true,
|
|
2226
2226
|
play,
|
|
@@ -2241,7 +2241,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2241
2241
|
return;
|
|
2242
2242
|
}
|
|
2243
2243
|
printSettings(
|
|
2244
|
-
await new (0,
|
|
2244
|
+
await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2245
2245
|
options.json
|
|
2246
2246
|
);
|
|
2247
2247
|
};
|
|
@@ -2267,13 +2267,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2267
2267
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2268
2268
|
{ exitCode: 2 }
|
|
2269
2269
|
);
|
|
2270
|
-
const page = await new (0,
|
|
2270
|
+
const page = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2271
2271
|
root: options.root,
|
|
2272
2272
|
limit,
|
|
2273
2273
|
cursor: options.cursor
|
|
2274
2274
|
});
|
|
2275
2275
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2276
|
-
|
|
2276
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
2277
2277
|
{
|
|
2278
2278
|
...page,
|
|
2279
2279
|
nextCommand,
|
|
@@ -2324,7 +2324,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2324
2324
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2325
2325
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2326
2326
|
};
|
|
2327
|
-
const client = new (0,
|
|
2327
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
2328
2328
|
const paths = [];
|
|
2329
2329
|
let cursor;
|
|
2330
2330
|
do {
|
|
@@ -2386,7 +2386,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2386
2386
|
moved.push(move.playName);
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
|
-
|
|
2389
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
2390
2390
|
{
|
|
2391
2391
|
dryRun: Boolean(options.dryRun),
|
|
2392
2392
|
from: options.from,
|
|
@@ -2531,7 +2531,7 @@ function triggerLines(view) {
|
|
|
2531
2531
|
return lines;
|
|
2532
2532
|
}
|
|
2533
2533
|
function printView(view, json) {
|
|
2534
|
-
|
|
2534
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
2535
2535
|
{
|
|
2536
2536
|
...view,
|
|
2537
2537
|
render: {
|
|
@@ -2544,7 +2544,7 @@ function printView(view, json) {
|
|
|
2544
2544
|
);
|
|
2545
2545
|
}
|
|
2546
2546
|
function printResult(result, json) {
|
|
2547
|
-
|
|
2547
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
2548
2548
|
{
|
|
2549
2549
|
...result,
|
|
2550
2550
|
render: {
|
|
@@ -2574,7 +2574,7 @@ async function mutate(command, options, build) {
|
|
|
2574
2574
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2575
2575
|
}
|
|
2576
2576
|
if (options.dryRun) {
|
|
2577
|
-
|
|
2577
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
2578
2578
|
{
|
|
2579
2579
|
dryRun: true,
|
|
2580
2580
|
play: options.play,
|
|
@@ -2593,7 +2593,7 @@ async function mutate(command, options, build) {
|
|
|
2593
2593
|
return;
|
|
2594
2594
|
}
|
|
2595
2595
|
printResult(
|
|
2596
|
-
await new (0,
|
|
2596
|
+
await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2597
2597
|
options.json
|
|
2598
2598
|
);
|
|
2599
2599
|
}
|
|
@@ -2626,7 +2626,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2626
2626
|
}).addHelpText("after", help2);
|
|
2627
2627
|
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) => {
|
|
2628
2628
|
printView(
|
|
2629
|
-
await new (0,
|
|
2629
|
+
await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2630
2630
|
options.json
|
|
2631
2631
|
);
|
|
2632
2632
|
});
|
|
@@ -2679,7 +2679,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2679
2679
|
if (options.auth === void 0) {
|
|
2680
2680
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2681
2681
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2682
|
-
const current = await new (0,
|
|
2682
|
+
const current = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2683
2683
|
options.play
|
|
2684
2684
|
);
|
|
2685
2685
|
return {
|
|
@@ -2756,7 +2756,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2756
2756
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2757
2757
|
"runtime.event": "Other event."
|
|
2758
2758
|
};
|
|
2759
|
-
var RUN_LOGS_KIND_HELP =
|
|
2759
|
+
var RUN_LOGS_KIND_HELP = _chunkDYWOBLYLjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2760
2760
|
kind,
|
|
2761
2761
|
description: KIND_DESCRIPTIONS[kind]
|
|
2762
2762
|
}));
|
|
@@ -2893,9 +2893,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2893
2893
|
const args = program.args;
|
|
2894
2894
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2895
2895
|
error.exitCode = 2;
|
|
2896
|
-
if (
|
|
2897
|
-
|
|
2898
|
-
Object.assign(new (0,
|
|
2896
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2897
|
+
_chunkRWT6N2SUjs.printJsonError.call(void 0,
|
|
2898
|
+
Object.assign(new (0, _chunkDYWOBLYLjs.RunEventQueryInputError)(error.message), {
|
|
2899
2899
|
exitCode: 2,
|
|
2900
2900
|
retryable: false
|
|
2901
2901
|
})
|
|
@@ -2939,14 +2939,14 @@ function parseQuery(args, resource) {
|
|
|
2939
2939
|
if (VALUE_FLAGS.has(flag)) {
|
|
2940
2940
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2941
2941
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2942
|
-
throw new (0,
|
|
2942
|
+
throw new (0, _chunkDYWOBLYLjs.RunEventQueryInputError)(
|
|
2943
2943
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2944
2944
|
);
|
|
2945
2945
|
}
|
|
2946
2946
|
if (flag === "--sum") sums.push(value);
|
|
2947
2947
|
else {
|
|
2948
2948
|
if (values[flag] !== void 0) {
|
|
2949
|
-
throw new (0,
|
|
2949
|
+
throw new (0, _chunkDYWOBLYLjs.RunEventQueryInputError)(
|
|
2950
2950
|
`${flag} may only be supplied once.`
|
|
2951
2951
|
);
|
|
2952
2952
|
}
|
|
@@ -2960,12 +2960,12 @@ function parseQuery(args, resource) {
|
|
|
2960
2960
|
}
|
|
2961
2961
|
if (arg.startsWith("-")) {
|
|
2962
2962
|
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.";
|
|
2963
|
-
throw new (0,
|
|
2963
|
+
throw new (0, _chunkDYWOBLYLjs.RunEventQueryInputError)(
|
|
2964
2964
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2965
2965
|
);
|
|
2966
2966
|
}
|
|
2967
2967
|
if (runId !== void 0) {
|
|
2968
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunkDYWOBLYLjs.RunEventQueryInputError)(
|
|
2969
2969
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2970
2970
|
);
|
|
2971
2971
|
}
|
|
@@ -2973,7 +2973,7 @@ function parseQuery(args, resource) {
|
|
|
2973
2973
|
}
|
|
2974
2974
|
if (switches.has("--fields")) {
|
|
2975
2975
|
if (runId !== void 0) {
|
|
2976
|
-
throw new (0,
|
|
2976
|
+
throw new (0, _chunkDYWOBLYLjs.RunEventQueryInputError)(
|
|
2977
2977
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2978
2978
|
);
|
|
2979
2979
|
}
|
|
@@ -2986,18 +2986,18 @@ function parseQuery(args, resource) {
|
|
|
2986
2986
|
)
|
|
2987
2987
|
];
|
|
2988
2988
|
if (incompatible.length) {
|
|
2989
|
-
throw new (0,
|
|
2989
|
+
throw new (0, _chunkDYWOBLYLjs.RunEventQueryInputError)(
|
|
2990
2990
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2991
2991
|
);
|
|
2992
2992
|
}
|
|
2993
2993
|
}
|
|
2994
2994
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2995
|
-
throw new (0,
|
|
2995
|
+
throw new (0, _chunkDYWOBLYLjs.RunEventQueryInputError)(
|
|
2996
2996
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2997
2997
|
);
|
|
2998
2998
|
}
|
|
2999
2999
|
if (sums.length && switches.has("--count")) {
|
|
3000
|
-
throw new (0,
|
|
3000
|
+
throw new (0, _chunkDYWOBLYLjs.RunEventQueryInputError)(
|
|
3001
3001
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
3002
3002
|
);
|
|
3003
3003
|
}
|
|
@@ -3005,7 +3005,7 @@ function parseQuery(args, resource) {
|
|
|
3005
3005
|
if (operation === "count") {
|
|
3006
3006
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
3007
3007
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
3008
|
-
throw new (0,
|
|
3008
|
+
throw new (0, _chunkDYWOBLYLjs.RunEventQueryInputError)(
|
|
3009
3009
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
3010
3010
|
);
|
|
3011
3011
|
}
|
|
@@ -3040,16 +3040,16 @@ function parseQuery(args, resource) {
|
|
|
3040
3040
|
];
|
|
3041
3041
|
}
|
|
3042
3042
|
}
|
|
3043
|
-
const request =
|
|
3043
|
+
const request = _chunkDYWOBLYLjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3044
3044
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3045
3045
|
const backend = values["--runtime-backend"];
|
|
3046
3046
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3047
|
-
throw new (0,
|
|
3047
|
+
throw new (0, _chunkDYWOBLYLjs.RunEventQueryInputError)(
|
|
3048
3048
|
"--runtime-backend must be daytona or modal."
|
|
3049
3049
|
);
|
|
3050
3050
|
}
|
|
3051
3051
|
if (backend && !namespace) {
|
|
3052
|
-
throw new (0,
|
|
3052
|
+
throw new (0, _chunkDYWOBLYLjs.RunEventQueryInputError)(
|
|
3053
3053
|
"--runtime-backend requires --runtime-namespace."
|
|
3054
3054
|
);
|
|
3055
3055
|
}
|
|
@@ -3096,12 +3096,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3096
3096
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3097
3097
|
const record5 = failure;
|
|
3098
3098
|
const status = record5.statusCode;
|
|
3099
|
-
const exitCode = error instanceof
|
|
3099
|
+
const exitCode = error instanceof _chunkDYWOBLYLjs.RunEventQueryInputError || status === 400 || status === 422 || record5.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record5.code === "CONFIG_ERROR" || record5.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3100
3100
|
const diagnostic = Object.assign(failure, {
|
|
3101
3101
|
exitCode,
|
|
3102
3102
|
retryable: exitCode === 5
|
|
3103
3103
|
});
|
|
3104
|
-
if (
|
|
3104
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) _chunkRWT6N2SUjs.printJsonError.call(void 0, diagnostic);
|
|
3105
3105
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3106
3106
|
return exitCode;
|
|
3107
3107
|
}
|
|
@@ -3116,7 +3116,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3116
3116
|
...criteria
|
|
3117
3117
|
} = request;
|
|
3118
3118
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3119
|
-
const client = new (0,
|
|
3119
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
3120
3120
|
let result;
|
|
3121
3121
|
if (request.operation === "fields") {
|
|
3122
3122
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3182,13 +3182,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3182
3182
|
lines.push(`Next page: ${nextPage}`);
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
|
-
|
|
3185
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
3186
3186
|
{
|
|
3187
3187
|
...result,
|
|
3188
3188
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3189
3189
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3190
3190
|
},
|
|
3191
|
-
{ json:
|
|
3191
|
+
{ json: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3192
3192
|
` }
|
|
3193
3193
|
);
|
|
3194
3194
|
return 0;
|
|
@@ -4935,7 +4935,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4935
4935
|
...text3.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4936
4936
|
);
|
|
4937
4937
|
}
|
|
4938
|
-
const response = await new (0,
|
|
4938
|
+
const response = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4939
4939
|
keys
|
|
4940
4940
|
});
|
|
4941
4941
|
const failed = response.receipts.filter(
|
|
@@ -4947,7 +4947,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4947
4947
|
JSON.stringify(response, null, 2) + "\n",
|
|
4948
4948
|
{ flag: "wx", mode: 384 }
|
|
4949
4949
|
);
|
|
4950
|
-
|
|
4950
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
4951
4951
|
{
|
|
4952
4952
|
runId,
|
|
4953
4953
|
out: options.out,
|
|
@@ -4957,7 +4957,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4957
4957
|
{ json: true }
|
|
4958
4958
|
);
|
|
4959
4959
|
} else {
|
|
4960
|
-
|
|
4960
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4961
4961
|
}
|
|
4962
4962
|
if (failed)
|
|
4963
4963
|
process.exitCode = response.receipts.some(
|
|
@@ -4996,7 +4996,7 @@ includes nextCommand when another page is available.
|
|
|
4996
4996
|
{ exitCode: 2 }
|
|
4997
4997
|
);
|
|
4998
4998
|
}
|
|
4999
|
-
const page = await new (0,
|
|
4999
|
+
const page = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().runs.children(parentRunId, {
|
|
5000
5000
|
launchKey: options.launchKey,
|
|
5001
5001
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
5002
5002
|
limit
|
|
@@ -5011,7 +5011,7 @@ includes nextCommand when another page is available.
|
|
|
5011
5011
|
"--limit",
|
|
5012
5012
|
String(limit)
|
|
5013
5013
|
].join(" ") : null;
|
|
5014
|
-
|
|
5014
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
5015
5015
|
{
|
|
5016
5016
|
parentRunId,
|
|
5017
5017
|
launchKey: options.launchKey,
|
|
@@ -5047,7 +5047,7 @@ async function handleRunsHistory(options) {
|
|
|
5047
5047
|
throw new Error("--limit must be a positive integer.");
|
|
5048
5048
|
}
|
|
5049
5049
|
}
|
|
5050
|
-
const page = await new (0,
|
|
5050
|
+
const page = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().runs.history({
|
|
5051
5051
|
cursor: options.cursor,
|
|
5052
5052
|
orgId: options.org,
|
|
5053
5053
|
search: options.search,
|
|
@@ -5063,7 +5063,7 @@ async function handleRunsHistory(options) {
|
|
|
5063
5063
|
);
|
|
5064
5064
|
}
|
|
5065
5065
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
5066
|
-
|
|
5066
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
5067
5067
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
5068
5068
|
options.json ? { json: true } : {}
|
|
5069
5069
|
);
|
|
@@ -5113,12 +5113,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
5113
5113
|
}
|
|
5114
5114
|
}
|
|
5115
5115
|
if (options.notice) console.error(options.notice);
|
|
5116
|
-
const result = await new (0,
|
|
5116
|
+
const result = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().runs.rerun(runId, {
|
|
5117
5117
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
5118
5118
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
5119
5119
|
});
|
|
5120
|
-
if (
|
|
5121
|
-
|
|
5120
|
+
if (_chunkRWT6N2SUjs.shouldEmitJson.call(void 0, options.json)) {
|
|
5121
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
5122
5122
|
} else if (result.rateLimited) {
|
|
5123
5123
|
console.log(`
|
|
5124
5124
|
${result.rateLimited.message}`);
|
|
@@ -5142,7 +5142,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
5142
5142
|
// src/cli/operations/runs-resume.ts
|
|
5143
5143
|
async function runRunsResumeCommand(runId) {
|
|
5144
5144
|
try {
|
|
5145
|
-
const result = await new (0,
|
|
5145
|
+
const result = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().runs.resume(runId);
|
|
5146
5146
|
if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
|
|
5147
5147
|
throw new Error(
|
|
5148
5148
|
"Invalid resume receipt: expected the requested run and a new positive epoch."
|
|
@@ -5984,13 +5984,13 @@ var RunDataset = class _RunDataset {
|
|
|
5984
5984
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5985
5985
|
_fs.writeFileSync.call(void 0,
|
|
5986
5986
|
absolutePath,
|
|
5987
|
-
`${JSON.stringify(
|
|
5987
|
+
`${JSON.stringify(_chunkQMDG7FKAjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5988
5988
|
`,
|
|
5989
5989
|
"utf-8"
|
|
5990
5990
|
);
|
|
5991
5991
|
return absolutePath;
|
|
5992
5992
|
}
|
|
5993
|
-
return
|
|
5993
|
+
return _chunkQMDG7FKAjs.writeRunDatasetCsv.call(void 0, {
|
|
5994
5994
|
rows: this.rows,
|
|
5995
5995
|
columns: this.#info.columns,
|
|
5996
5996
|
outPath
|
|
@@ -7473,7 +7473,7 @@ function renderOutcome(outcome) {
|
|
|
7473
7473
|
function printResult2(input) {
|
|
7474
7474
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
7475
7475
|
if (failed) process.exitCode = 1;
|
|
7476
|
-
|
|
7476
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
7477
7477
|
{
|
|
7478
7478
|
deployment: { ...input.deployment, status: input.status },
|
|
7479
7479
|
plays: input.outcomes,
|
|
@@ -7498,7 +7498,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
7498
7498
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
7499
7499
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
7500
7500
|
});
|
|
7501
|
-
const { http, config } =
|
|
7501
|
+
const { http, config } = _chunkRWT6N2SUjs.getAuthedHttpClient.call(void 0, );
|
|
7502
7502
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
7503
7503
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
7504
7504
|
deliveryId,
|
|
@@ -7525,7 +7525,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
7525
7525
|
},
|
|
7526
7526
|
{
|
|
7527
7527
|
bundle: bundleDeployPlayFile,
|
|
7528
|
-
fetchImpl:
|
|
7528
|
+
fetchImpl: _chunk6M2SDRWNjs.fetchWithDeploymentProtection,
|
|
7529
7529
|
// The plays are already here: "opening" the source is naming it.
|
|
7530
7530
|
openSource: async () => ({
|
|
7531
7531
|
open: async () => ({ repoRoot: root })
|
|
@@ -7652,7 +7652,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
7652
7652
|
// src/cli/renderers/local-play-execution.ts
|
|
7653
7653
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7654
7654
|
if (options.dryRun) {
|
|
7655
|
-
|
|
7655
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7656
7656
|
return;
|
|
7657
7657
|
}
|
|
7658
7658
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7824,7 +7824,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7824
7824
|
const startedAt = Date.now();
|
|
7825
7825
|
try {
|
|
7826
7826
|
const result = run();
|
|
7827
|
-
|
|
7827
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
7828
7828
|
phase,
|
|
7829
7829
|
ms: Date.now() - startedAt,
|
|
7830
7830
|
ok: true,
|
|
@@ -7832,7 +7832,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7832
7832
|
});
|
|
7833
7833
|
return result;
|
|
7834
7834
|
} catch (error) {
|
|
7835
|
-
|
|
7835
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
7836
7836
|
phase,
|
|
7837
7837
|
ms: Date.now() - startedAt,
|
|
7838
7838
|
ok: false,
|
|
@@ -8645,7 +8645,7 @@ function playStatusErrorText(status) {
|
|
|
8645
8645
|
function isRetryablePendingStartFailure(status) {
|
|
8646
8646
|
if (status.status !== "failed") return false;
|
|
8647
8647
|
if (status.runId && status.runId !== "pending") return false;
|
|
8648
|
-
return
|
|
8648
|
+
return _chunkDYWOBLYLjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8649
8649
|
}
|
|
8650
8650
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
8651
8651
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -8706,7 +8706,7 @@ async function startPlayRunWithTransientRetry(input) {
|
|
|
8706
8706
|
`[play start] response was ambiguous; retrying the same caller intent (${reason})`
|
|
8707
8707
|
);
|
|
8708
8708
|
}
|
|
8709
|
-
|
|
8709
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
8710
8710
|
phase: "cli.play_start_json_retry",
|
|
8711
8711
|
ms: 0,
|
|
8712
8712
|
ok: true,
|
|
@@ -8764,13 +8764,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkLFQJW4S2js.Deep
|
|
|
8764
8764
|
}, _class);
|
|
8765
8765
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8766
8766
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8767
|
-
if (!
|
|
8767
|
+
if (!_chunkDYWOBLYLjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8768
8768
|
return false;
|
|
8769
8769
|
}
|
|
8770
|
-
if (
|
|
8770
|
+
if (_chunkDYWOBLYLjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8771
8771
|
return true;
|
|
8772
8772
|
}
|
|
8773
|
-
return state.verbose === true &&
|
|
8773
|
+
return state.verbose === true && _chunkDYWOBLYLjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8774
8774
|
}
|
|
8775
8775
|
function getEventPayload(event) {
|
|
8776
8776
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9280,7 +9280,7 @@ function resolvePlayRunUrl(input) {
|
|
|
9280
9280
|
}
|
|
9281
9281
|
function openPlayDashboard(url, open2) {
|
|
9282
9282
|
if (open2 && url) {
|
|
9283
|
-
|
|
9283
|
+
_chunkRWT6N2SUjs.openInBrowser.call(void 0, url);
|
|
9284
9284
|
}
|
|
9285
9285
|
}
|
|
9286
9286
|
function printPlayLogLines(input) {
|
|
@@ -9361,7 +9361,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9361
9361
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
9362
9362
|
});
|
|
9363
9363
|
} catch (error) {
|
|
9364
|
-
if (
|
|
9364
|
+
if (_chunkDYWOBLYLjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9365
9365
|
return null;
|
|
9366
9366
|
}
|
|
9367
9367
|
throw error;
|
|
@@ -9442,9 +9442,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9442
9442
|
signal: controller.signal,
|
|
9443
9443
|
deferLogs: !input.emitLogs,
|
|
9444
9444
|
omitTerminalLogs: !input.emitLogs,
|
|
9445
|
-
...
|
|
9445
|
+
..._chunkSE56PJ46js.isCliTraceEnabled.call(void 0, ) ? {
|
|
9446
9446
|
onPoll: (observation) => {
|
|
9447
|
-
|
|
9447
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
9448
9448
|
phase: "play_watch_poll",
|
|
9449
9449
|
workflowId: input.workflowId,
|
|
9450
9450
|
ms: observation.durationMs,
|
|
@@ -9458,7 +9458,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9458
9458
|
full: input.fullJson,
|
|
9459
9459
|
billing: false,
|
|
9460
9460
|
onStatus: async (status) => {
|
|
9461
|
-
|
|
9461
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
9462
9462
|
phase: "play_watch_terminal_status",
|
|
9463
9463
|
workflowId: input.workflowId,
|
|
9464
9464
|
full: input.fullJson === true
|
|
@@ -9547,7 +9547,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9547
9547
|
signal: controller.signal,
|
|
9548
9548
|
cliAdmission: useCliAdmission
|
|
9549
9549
|
});
|
|
9550
|
-
|
|
9550
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
9551
9551
|
phase: "cli.play_start_admission_attempt",
|
|
9552
9552
|
ms: Date.now() - postStartedAt,
|
|
9553
9553
|
ok: true,
|
|
@@ -9559,7 +9559,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9559
9559
|
});
|
|
9560
9560
|
break;
|
|
9561
9561
|
} catch (error) {
|
|
9562
|
-
|
|
9562
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
9563
9563
|
phase: "cli.play_start_admission_attempt",
|
|
9564
9564
|
ms: Date.now() - postStartedAt,
|
|
9565
9565
|
ok: false,
|
|
@@ -9610,7 +9610,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9610
9610
|
prepared.workflowId
|
|
9611
9611
|
);
|
|
9612
9612
|
}
|
|
9613
|
-
await
|
|
9613
|
+
await _chunkKSUI4YX5js.checkPlayRunCompatibility.call(void 0,
|
|
9614
9614
|
input.client.baseUrl,
|
|
9615
9615
|
input.maintenancePolicy,
|
|
9616
9616
|
controller.signal
|
|
@@ -9629,7 +9629,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9629
9629
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
9630
9630
|
);
|
|
9631
9631
|
}
|
|
9632
|
-
|
|
9632
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
9633
9633
|
phase: "cli.play_start_json_retry",
|
|
9634
9634
|
ms: 0,
|
|
9635
9635
|
ok: true,
|
|
@@ -9709,7 +9709,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9709
9709
|
_nullishCoalesce(input.open, () => ( false))
|
|
9710
9710
|
);
|
|
9711
9711
|
input.progress.phase("running");
|
|
9712
|
-
|
|
9712
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
9713
9713
|
phase: "cli.play_start_admitted",
|
|
9714
9714
|
ms: Date.now() - startedAt,
|
|
9715
9715
|
ok: true,
|
|
@@ -9727,7 +9727,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9727
9727
|
startedAt,
|
|
9728
9728
|
waitTimeoutMs: input.waitTimeoutMs
|
|
9729
9729
|
});
|
|
9730
|
-
const initialStatus =
|
|
9730
|
+
const initialStatus = _chunkDYWOBLYLjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
9731
9731
|
const status2 = await resolvePlayRunOutputStatus({
|
|
9732
9732
|
client: input.client,
|
|
9733
9733
|
status: initialStatus,
|
|
@@ -9735,7 +9735,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9735
9735
|
jsonOutput: input.jsonOutput,
|
|
9736
9736
|
fromDurableStatus: true
|
|
9737
9737
|
});
|
|
9738
|
-
|
|
9738
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
9739
9739
|
phase: "play_watch_terminal_status",
|
|
9740
9740
|
workflowId,
|
|
9741
9741
|
full: true,
|
|
@@ -9840,7 +9840,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9840
9840
|
});
|
|
9841
9841
|
}
|
|
9842
9842
|
if (error instanceof _chunkMJTVX4QKjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
9843
|
-
await
|
|
9843
|
+
await _chunkKSUI4YX5js.checkPlayRunCompatibility.call(void 0,
|
|
9844
9844
|
input.client.baseUrl,
|
|
9845
9845
|
input.maintenancePolicy,
|
|
9846
9846
|
admissionDeadline.signal
|
|
@@ -9881,7 +9881,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9881
9881
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9882
9882
|
);
|
|
9883
9883
|
}
|
|
9884
|
-
|
|
9884
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
9885
9885
|
phase: "cli.play_start_stream_retry",
|
|
9886
9886
|
ms: 0,
|
|
9887
9887
|
ok: true,
|
|
@@ -9902,7 +9902,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9902
9902
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9903
9903
|
);
|
|
9904
9904
|
}
|
|
9905
|
-
|
|
9905
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
9906
9906
|
phase: "cli.play_start_stream_retry",
|
|
9907
9907
|
ms: 0,
|
|
9908
9908
|
ok: true,
|
|
@@ -9959,7 +9959,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9959
9959
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9960
9960
|
launchConfirmed = true;
|
|
9961
9961
|
await _optionalChain([input, 'access', _366 => _366.onRunAdmitted, 'optionalCall', _367 => _367(runId)]);
|
|
9962
|
-
|
|
9962
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
9963
9963
|
phase: "cli.play_start_admitted",
|
|
9964
9964
|
ms: Date.now() - startedAt,
|
|
9965
9965
|
ok: true,
|
|
@@ -9993,7 +9993,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9993
9993
|
full: input.fullJson
|
|
9994
9994
|
});
|
|
9995
9995
|
} catch (error) {
|
|
9996
|
-
if (
|
|
9996
|
+
if (_chunkDYWOBLYLjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9997
9997
|
return null;
|
|
9998
9998
|
}
|
|
9999
9999
|
throw error;
|
|
@@ -10164,7 +10164,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10164
10164
|
};
|
|
10165
10165
|
}
|
|
10166
10166
|
if (!canonicalTerminal) {
|
|
10167
|
-
|
|
10167
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
10168
10168
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
10169
10169
|
ms: Date.now() - startedAt,
|
|
10170
10170
|
ok: true,
|
|
@@ -10185,14 +10185,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10185
10185
|
fromDurableStatus
|
|
10186
10186
|
}) : canonicalTerminal;
|
|
10187
10187
|
if (input.fullJson === true) {
|
|
10188
|
-
|
|
10188
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
10189
10189
|
phase: "play_watch_terminal_status",
|
|
10190
10190
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
10191
10191
|
full: true,
|
|
10192
10192
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
10193
10193
|
});
|
|
10194
10194
|
}
|
|
10195
|
-
|
|
10195
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
10196
10196
|
phase: "cli.play_start_stream_terminal",
|
|
10197
10197
|
ms: Date.now() - startedAt,
|
|
10198
10198
|
ok: true,
|
|
@@ -10212,7 +10212,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10212
10212
|
clearTimeout(timeout);
|
|
10213
10213
|
}
|
|
10214
10214
|
controller.abort();
|
|
10215
|
-
|
|
10215
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
10216
10216
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
10217
10217
|
ms: Date.now() - startedAt,
|
|
10218
10218
|
ok: true,
|
|
@@ -10243,7 +10243,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10243
10243
|
if (timedOut) {
|
|
10244
10244
|
const terminal = await fetchKnownTerminalStatus();
|
|
10245
10245
|
if (terminal) {
|
|
10246
|
-
|
|
10246
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
10247
10247
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
10248
10248
|
ms: Date.now() - startedAt,
|
|
10249
10249
|
ok: true,
|
|
@@ -10263,7 +10263,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10263
10263
|
lastPhase
|
|
10264
10264
|
});
|
|
10265
10265
|
}
|
|
10266
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
10266
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkDYWOBLYLjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
10267
10267
|
if (timeout) {
|
|
10268
10268
|
clearTimeout(timeout);
|
|
10269
10269
|
}
|
|
@@ -10274,7 +10274,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10274
10274
|
`
|
|
10275
10275
|
);
|
|
10276
10276
|
}
|
|
10277
|
-
|
|
10277
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
10278
10278
|
phase: "cli.play_start_stream_reconnect",
|
|
10279
10279
|
ms: Date.now() - startedAt,
|
|
10280
10280
|
ok: true,
|
|
@@ -10301,7 +10301,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10301
10301
|
});
|
|
10302
10302
|
}
|
|
10303
10303
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
10304
|
-
|
|
10304
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
10305
10305
|
phase: "cli.play_start_stream_transient_failure",
|
|
10306
10306
|
ms: Date.now() - startedAt,
|
|
10307
10307
|
ok: false,
|
|
@@ -10329,7 +10329,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10329
10329
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
10330
10330
|
);
|
|
10331
10331
|
}
|
|
10332
|
-
|
|
10332
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
10333
10333
|
phase: "cli.play_start_stream_reconnect",
|
|
10334
10334
|
ms: Date.now() - startedAt,
|
|
10335
10335
|
ok: true,
|
|
@@ -10409,7 +10409,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10409
10409
|
"logs"
|
|
10410
10410
|
]);
|
|
10411
10411
|
function formatPlayLogLine(rawLine, state) {
|
|
10412
|
-
const classified =
|
|
10412
|
+
const classified = _chunkDYWOBLYLjs.classifyLogLine.call(void 0, rawLine);
|
|
10413
10413
|
const line = classified.line;
|
|
10414
10414
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10415
10415
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _389 => _389[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10424,14 +10424,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10424
10424
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10425
10425
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10426
10426
|
if (providerWait && !state.verbose) {
|
|
10427
|
-
return
|
|
10427
|
+
return _chunkDYWOBLYLjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10428
10428
|
}
|
|
10429
10429
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10430
10430
|
if (mapProgress && !state.verbose) {
|
|
10431
|
-
return
|
|
10431
|
+
return _chunkDYWOBLYLjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10432
10432
|
}
|
|
10433
10433
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10434
|
-
if (!
|
|
10434
|
+
if (!_chunkDYWOBLYLjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10435
10435
|
return null;
|
|
10436
10436
|
}
|
|
10437
10437
|
if (state.emittedRunnerStarted) {
|
|
@@ -10444,7 +10444,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10444
10444
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10445
10445
|
);
|
|
10446
10446
|
if (mapStart) {
|
|
10447
|
-
if (!
|
|
10447
|
+
if (!_chunkDYWOBLYLjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10448
10448
|
return null;
|
|
10449
10449
|
}
|
|
10450
10450
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10454,7 +10454,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10454
10454
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10455
10455
|
);
|
|
10456
10456
|
if (mapDone) {
|
|
10457
|
-
if (!
|
|
10457
|
+
if (!_chunkDYWOBLYLjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10458
10458
|
return null;
|
|
10459
10459
|
}
|
|
10460
10460
|
const [, results, executed, cached] = mapDone;
|
|
@@ -11776,7 +11776,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11776
11776
|
(line) => typeof line === "string"
|
|
11777
11777
|
);
|
|
11778
11778
|
if (tail.length === 0) return [];
|
|
11779
|
-
const shown = tail.map((line) =>
|
|
11779
|
+
const shown = tail.map((line) => _chunkDYWOBLYLjs.classifyLogLine.call(void 0, line)).filter(
|
|
11780
11780
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11781
11781
|
).slice(-8);
|
|
11782
11782
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -12081,11 +12081,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
12081
12081
|
}
|
|
12082
12082
|
function writePlayResult(status, jsonOutput, options) {
|
|
12083
12083
|
const packaged = getPlayRunPackage(status);
|
|
12084
|
-
if (status.package)
|
|
12084
|
+
if (status.package) _chunkQMDG7FKAjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
12085
12085
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _480 => _480.hits]), () => ( null));
|
|
12086
12086
|
if (jsonOutput) {
|
|
12087
12087
|
const payload2 = _optionalChain([options, 'optionalAccess', _481 => _481.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
12088
|
-
|
|
12088
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
12089
12089
|
hits ? { ...payload2, hits } : payload2,
|
|
12090
12090
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _482 => _482.jsonFields]) }
|
|
12091
12091
|
);
|
|
@@ -12101,7 +12101,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12101
12101
|
...buildPlayCompletionTextLines(status),
|
|
12102
12102
|
...formatRunHitsLines(hits)
|
|
12103
12103
|
];
|
|
12104
|
-
|
|
12104
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
12105
12105
|
json: false,
|
|
12106
12106
|
text: `${lines2.join("\n")}
|
|
12107
12107
|
`
|
|
@@ -12151,7 +12151,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12151
12151
|
lines.push(...buildBillingRollupTextLines(status));
|
|
12152
12152
|
const compact = compactPlayStatus(status);
|
|
12153
12153
|
const payload = _optionalChain([options, 'optionalAccess', _484 => _484.fullJson]) ? status : compact;
|
|
12154
|
-
|
|
12154
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
12155
12155
|
{
|
|
12156
12156
|
...payload,
|
|
12157
12157
|
render: {
|
|
@@ -12375,7 +12375,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
12375
12375
|
}
|
|
12376
12376
|
offset += page.rows.length;
|
|
12377
12377
|
}
|
|
12378
|
-
const withError =
|
|
12378
|
+
const withError = _chunkQMDG7FKAjs.tableExportHasFailedRows.call(void 0,
|
|
12379
12379
|
sheetRows.filter(
|
|
12380
12380
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
12381
12381
|
)
|
|
@@ -12391,7 +12391,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
12391
12391
|
return [
|
|
12392
12392
|
withError ? {
|
|
12393
12393
|
...exported,
|
|
12394
|
-
[
|
|
12394
|
+
[_chunkQMDG7FKAjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkQMDG7FKAjs.tableExportErrorCell.call(void 0,
|
|
12395
12395
|
row
|
|
12396
12396
|
)
|
|
12397
12397
|
} : exported
|
|
@@ -12940,7 +12940,7 @@ function renderServerResultView(value) {
|
|
|
12940
12940
|
function writeStartedPlayRun(input) {
|
|
12941
12941
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12942
12942
|
const run = input.package.run;
|
|
12943
|
-
|
|
12943
|
+
_chunkQMDG7FKAjs.recordPlayTermination.call(void 0, {
|
|
12944
12944
|
id: run.id,
|
|
12945
12945
|
status: run.status,
|
|
12946
12946
|
finishedAt: run.finishedAt
|
|
@@ -12953,7 +12953,7 @@ function writeStartedPlayRun(input) {
|
|
|
12953
12953
|
dashboardUrl: input.dashboardUrl,
|
|
12954
12954
|
package: input.package
|
|
12955
12955
|
};
|
|
12956
|
-
|
|
12956
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12957
12957
|
json: true,
|
|
12958
12958
|
fields: input.jsonFields
|
|
12959
12959
|
});
|
|
@@ -12975,7 +12975,7 @@ function writeStartedPlayRun(input) {
|
|
|
12975
12975
|
input.progress.writeLine(output2, process.stdout);
|
|
12976
12976
|
return;
|
|
12977
12977
|
}
|
|
12978
|
-
|
|
12978
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12979
12979
|
json: false,
|
|
12980
12980
|
text: `${output2}
|
|
12981
12981
|
`
|
|
@@ -13010,7 +13010,7 @@ function writeStartedPlayRun(input) {
|
|
|
13010
13010
|
) ? [`Stop: deepline runs stop ${_chunkBVXIGOBZjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
13011
13011
|
];
|
|
13012
13012
|
if (input.jsonOutput) {
|
|
13013
|
-
|
|
13013
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
13014
13014
|
return;
|
|
13015
13015
|
}
|
|
13016
13016
|
const output = lines.join("\n");
|
|
@@ -13018,7 +13018,7 @@ function writeStartedPlayRun(input) {
|
|
|
13018
13018
|
input.progress.writeLine(output, process.stdout);
|
|
13019
13019
|
return;
|
|
13020
13020
|
}
|
|
13021
|
-
|
|
13021
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
13022
13022
|
{
|
|
13023
13023
|
...payload,
|
|
13024
13024
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -13028,7 +13028,7 @@ function writeStartedPlayRun(input) {
|
|
|
13028
13028
|
);
|
|
13029
13029
|
}
|
|
13030
13030
|
function parsePlayCheckOptions(args) {
|
|
13031
|
-
const selection =
|
|
13031
|
+
const selection = _chunkRWT6N2SUjs.parseJsonFields.call(void 0, args, "check");
|
|
13032
13032
|
args = selection.args;
|
|
13033
13033
|
const target = args[0];
|
|
13034
13034
|
if (!target || target.startsWith("-")) {
|
|
@@ -13040,7 +13040,7 @@ function parsePlayCheckOptions(args) {
|
|
|
13040
13040
|
if (arg !== "--json" && arg !== "--full")
|
|
13041
13041
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
13042
13042
|
}
|
|
13043
|
-
const jsonOutput =
|
|
13043
|
+
const jsonOutput = _chunkRWT6N2SUjs.argsWantJson.call(void 0, args);
|
|
13044
13044
|
return {
|
|
13045
13045
|
target,
|
|
13046
13046
|
jsonOutput,
|
|
@@ -13116,7 +13116,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
13116
13116
|
useLatest,
|
|
13117
13117
|
expectedArtifactHash,
|
|
13118
13118
|
dryRun,
|
|
13119
|
-
jsonOutput:
|
|
13119
|
+
jsonOutput: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args)
|
|
13120
13120
|
};
|
|
13121
13121
|
}
|
|
13122
13122
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--watch-play <play-reference>] [--dry-run] [--json]\nUse --watch-play to show invalid source on your own open working canvas while keeping the last valid diagram.";
|
|
@@ -13165,7 +13165,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
13165
13165
|
expectedArtifactHash,
|
|
13166
13166
|
watchPlay,
|
|
13167
13167
|
dryRun,
|
|
13168
|
-
jsonOutput:
|
|
13168
|
+
jsonOutput: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args)
|
|
13169
13169
|
};
|
|
13170
13170
|
}
|
|
13171
13171
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -13354,7 +13354,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
13354
13354
|
async function handlePlayCheck(args) {
|
|
13355
13355
|
const options = parsePlayCheckOptions(args);
|
|
13356
13356
|
if (!isFileTarget(options.target)) {
|
|
13357
|
-
const client = new (0,
|
|
13357
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
13358
13358
|
try {
|
|
13359
13359
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
13360
13360
|
command: "check"
|
|
@@ -13383,7 +13383,7 @@ async function handlePlayCheck(args) {
|
|
|
13383
13383
|
},
|
|
13384
13384
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
13385
13385
|
};
|
|
13386
|
-
|
|
13386
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, result, {
|
|
13387
13387
|
json: options.jsonOutput,
|
|
13388
13388
|
fields: options.jsonFields,
|
|
13389
13389
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -13393,7 +13393,7 @@ async function handlePlayCheck(args) {
|
|
|
13393
13393
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
13394
13394
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
13395
13395
|
if (options.jsonOutput) {
|
|
13396
|
-
|
|
13396
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
13397
13397
|
{
|
|
13398
13398
|
kind: "play_check",
|
|
13399
13399
|
checked: "named_contract",
|
|
@@ -13427,7 +13427,7 @@ async function handlePlayCheck(args) {
|
|
|
13427
13427
|
full: options.full,
|
|
13428
13428
|
publishCommand: _optionalChain([primary, 'optionalAccess', _534 => _534.result, 'access', _535 => _535.artifactHash]) ? `deepline plays publish ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
13429
13429
|
});
|
|
13430
|
-
|
|
13430
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, output, {
|
|
13431
13431
|
json: options.jsonOutput,
|
|
13432
13432
|
fields: options.jsonFields,
|
|
13433
13433
|
jsonLayout: "readable",
|
|
@@ -13499,7 +13499,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13499
13499
|
}
|
|
13500
13500
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13501
13501
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13502
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
13502
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunkQZ2C5ARHjs.DeeplineClient)()));
|
|
13503
13503
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13504
13504
|
const checked = await checkLocalPlayGraph({
|
|
13505
13505
|
client,
|
|
@@ -13561,8 +13561,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13561
13561
|
let prefetchClient;
|
|
13562
13562
|
let admissionCapability;
|
|
13563
13563
|
let cancelAdmissionCapability;
|
|
13564
|
-
let cliAdmission =
|
|
13565
|
-
const progress = _nullishCoalesce(
|
|
13564
|
+
let cliAdmission = _chunkKSUI4YX5js.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13565
|
+
const progress = _nullishCoalesce(_chunkWTQGJBHDjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWTQGJBHDjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13566
13566
|
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _544 => _544.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
13567
13567
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
13568
13568
|
progress.phase("compiling play");
|
|
@@ -13579,11 +13579,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13579
13579
|
return 1;
|
|
13580
13580
|
}
|
|
13581
13581
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13582
|
-
const clientForPrefetch = new (0,
|
|
13582
|
+
const clientForPrefetch = new (0, _chunkQZ2C5ARHjs.DeeplineClient)(playRunClientOptions(options));
|
|
13583
13583
|
prefetchClient = clientForPrefetch;
|
|
13584
13584
|
const capabilityController = new AbortController();
|
|
13585
13585
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13586
|
-
admissionCapability =
|
|
13586
|
+
admissionCapability = _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
13587
13587
|
"cli.play_admission_capability_prefetch",
|
|
13588
13588
|
{ targetKind: "file" },
|
|
13589
13589
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -13594,7 +13594,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13594
13594
|
}
|
|
13595
13595
|
let graph;
|
|
13596
13596
|
try {
|
|
13597
|
-
graph = await
|
|
13597
|
+
graph = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
13598
13598
|
"cli.play_file_bundle_graph",
|
|
13599
13599
|
{ targetKind: "file" },
|
|
13600
13600
|
() => collectBundledPlayGraph(
|
|
@@ -13607,7 +13607,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13607
13607
|
assertPlayGraphAuthoring(graph);
|
|
13608
13608
|
if (options.dryRun) {
|
|
13609
13609
|
progress.complete();
|
|
13610
|
-
const plan =
|
|
13610
|
+
const plan = _chunkW7SPSF63js.planLocalPlayExecution.call(void 0, graph, {
|
|
13611
13611
|
runIdFile: options.runIdFile
|
|
13612
13612
|
});
|
|
13613
13613
|
if (_optionalChain([hooks, 'optionalAccess', _545 => _545.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
@@ -13618,9 +13618,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13618
13618
|
});
|
|
13619
13619
|
return 0;
|
|
13620
13620
|
}
|
|
13621
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
13621
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkQZ2C5ARHjs.DeeplineClient)(playRunClientOptions(options))));
|
|
13622
13622
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
13623
|
-
await
|
|
13623
|
+
await _chunkKSUI4YX5js.checkPlayRunCompatibility.call(void 0,
|
|
13624
13624
|
client.baseUrl,
|
|
13625
13625
|
options.maintenancePolicy
|
|
13626
13626
|
);
|
|
@@ -13633,7 +13633,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13633
13633
|
});
|
|
13634
13634
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput) && !mayBindBareFileName(graph.root, runtimeInput);
|
|
13635
13635
|
if (canDeferCompilerManifest) {
|
|
13636
|
-
|
|
13636
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
13637
13637
|
phase: "cli.play_file_compile_manifests",
|
|
13638
13638
|
ms: 0,
|
|
13639
13639
|
ok: true,
|
|
@@ -13642,7 +13642,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13642
13642
|
reason: "validated_by_run_route"
|
|
13643
13643
|
});
|
|
13644
13644
|
} else {
|
|
13645
|
-
await
|
|
13645
|
+
await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
13646
13646
|
"cli.play_file_compile_manifests",
|
|
13647
13647
|
{ targetKind: "file", skipped: false },
|
|
13648
13648
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -13650,7 +13650,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13650
13650
|
}
|
|
13651
13651
|
progress.phase("compiled play");
|
|
13652
13652
|
} catch (error) {
|
|
13653
|
-
if (error instanceof
|
|
13653
|
+
if (error instanceof _chunkQMDG7FKAjs.ExecutionOutputError) throw error;
|
|
13654
13654
|
progress.fail();
|
|
13655
13655
|
reportError(normalizePlayValidationError(error));
|
|
13656
13656
|
return 1;
|
|
@@ -13661,13 +13661,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13661
13661
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
13662
13662
|
try {
|
|
13663
13663
|
renderLocalPlayExecutionPlan(
|
|
13664
|
-
|
|
13664
|
+
_chunkW7SPSF63js.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
13665
13665
|
);
|
|
13666
13666
|
progress.phase("pinning imported plays");
|
|
13667
|
-
graph = await
|
|
13667
|
+
graph = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
13668
13668
|
"cli.play_file_pin_imports",
|
|
13669
13669
|
{ targetKind: "file" },
|
|
13670
|
-
() =>
|
|
13670
|
+
() => _chunkW7SPSF63js.pinLocalPlayImports.call(void 0, client, graph)
|
|
13671
13671
|
);
|
|
13672
13672
|
bundleResult = graph.root;
|
|
13673
13673
|
} catch (error) {
|
|
@@ -13684,7 +13684,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13684
13684
|
inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _546 => _546.authoringContract, 'optionalAccess', _547 => _547.inputSchema]),
|
|
13685
13685
|
staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _548 => _548.staticPipeline])
|
|
13686
13686
|
});
|
|
13687
|
-
const stagedFileInputs = await
|
|
13687
|
+
const stagedFileInputs = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
13688
13688
|
"cli.play_stage_inputs",
|
|
13689
13689
|
{
|
|
13690
13690
|
targetKind: "file",
|
|
@@ -13735,7 +13735,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13735
13735
|
};
|
|
13736
13736
|
if (options.watch) {
|
|
13737
13737
|
progress.phase("starting run");
|
|
13738
|
-
const finalStatus = await
|
|
13738
|
+
const finalStatus = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
13739
13739
|
"cli.play_start_watch",
|
|
13740
13740
|
{ targetKind: "file", playName },
|
|
13741
13741
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13797,7 +13797,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13797
13797
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13798
13798
|
}
|
|
13799
13799
|
progress.phase("starting run");
|
|
13800
|
-
const started = await
|
|
13800
|
+
const started = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
13801
13801
|
"cli.play_start_unwatched",
|
|
13802
13802
|
{ targetKind: "file", playName },
|
|
13803
13803
|
() => startPlayRunWithTransientRetry({
|
|
@@ -13870,9 +13870,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13870
13870
|
if (options.target.kind !== "name") {
|
|
13871
13871
|
throw new Error("Expected a named play run target.");
|
|
13872
13872
|
}
|
|
13873
|
-
const client = new (0,
|
|
13874
|
-
let cliAdmission =
|
|
13875
|
-
const progress = _nullishCoalesce(
|
|
13873
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)(playRunClientOptions(options));
|
|
13874
|
+
let cliAdmission = _chunkKSUI4YX5js.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13875
|
+
const progress = _nullishCoalesce(_chunkWTQGJBHDjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWTQGJBHDjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13876
13876
|
const playName = options.target.name;
|
|
13877
13877
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13878
13878
|
try {
|
|
@@ -13890,7 +13890,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13890
13890
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13891
13891
|
const capabilityController = new AbortController();
|
|
13892
13892
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13893
|
-
admissionCapability =
|
|
13893
|
+
admissionCapability = _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
13894
13894
|
"cli.play_admission_capability_prefetch",
|
|
13895
13895
|
{ targetKind: "name", playName },
|
|
13896
13896
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13901,14 +13901,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13901
13901
|
}
|
|
13902
13902
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13903
13903
|
progress.phase("loading play definition");
|
|
13904
|
-
return
|
|
13904
|
+
return _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
13905
13905
|
"cli.play_load_definition",
|
|
13906
13906
|
{ targetKind: "name", playName, skipped: false },
|
|
13907
13907
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13908
13908
|
command: "run"
|
|
13909
13909
|
})
|
|
13910
13910
|
);
|
|
13911
|
-
})() : (
|
|
13911
|
+
})() : (_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
13912
13912
|
phase: "cli.play_load_definition",
|
|
13913
13913
|
ms: 0,
|
|
13914
13914
|
ok: true,
|
|
@@ -13917,7 +13917,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13917
13917
|
skipped: true
|
|
13918
13918
|
}), null);
|
|
13919
13919
|
progress.phase("selecting revision");
|
|
13920
|
-
const selectedRevisionId = await
|
|
13920
|
+
const selectedRevisionId = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
13921
13921
|
"cli.play_select_revision",
|
|
13922
13922
|
{
|
|
13923
13923
|
targetKind: "name",
|
|
@@ -13942,10 +13942,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13942
13942
|
..._chunkMJTVX4QKjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13943
13943
|
] : [];
|
|
13944
13944
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13945
|
-
await
|
|
13945
|
+
await _chunkKSUI4YX5js.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13946
13946
|
cliAdmission = false;
|
|
13947
13947
|
}
|
|
13948
|
-
const stagedFileInputs = await
|
|
13948
|
+
const stagedFileInputs = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
13949
13949
|
"cli.play_stage_inputs",
|
|
13950
13950
|
{
|
|
13951
13951
|
targetKind: "name",
|
|
@@ -13990,7 +13990,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13990
13990
|
});
|
|
13991
13991
|
if (options.watch) {
|
|
13992
13992
|
progress.phase("starting run");
|
|
13993
|
-
const finalStatus = await
|
|
13993
|
+
const finalStatus = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
13994
13994
|
"cli.play_start_watch",
|
|
13995
13995
|
{ targetKind: "name", playName },
|
|
13996
13996
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -14055,7 +14055,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14055
14055
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
14056
14056
|
}
|
|
14057
14057
|
progress.phase("starting run");
|
|
14058
|
-
const started = await
|
|
14058
|
+
const started = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
14059
14059
|
"cli.play_start_unwatched",
|
|
14060
14060
|
{ targetKind: "name", playName },
|
|
14061
14061
|
() => startPlayRunWithTransientRetry({
|
|
@@ -14122,7 +14122,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14122
14122
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
14123
14123
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _576 => _576.exec, 'call', _577 => _577(status.runId), 'optionalAccess', _578 => _578[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
14124
14124
|
if (!terminal) {
|
|
14125
|
-
|
|
14125
|
+
_chunkQMDG7FKAjs.writeExecutionOutput.call(void 0,
|
|
14126
14126
|
{
|
|
14127
14127
|
id: status.runId,
|
|
14128
14128
|
status: status.status,
|
|
@@ -14202,10 +14202,11 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14202
14202
|
};
|
|
14203
14203
|
}
|
|
14204
14204
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
14205
|
-
const allCollections =
|
|
14205
|
+
const allCollections = _chunkQMDG7FKAjs.outputCollections.call(void 0, data).map(
|
|
14206
14206
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
14207
14207
|
);
|
|
14208
|
-
|
|
14208
|
+
const credits = _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _585 => _585.billing, 'optionalAccess', _586 => _586.totalCredits]))), () => ( null));
|
|
14209
|
+
_chunkQMDG7FKAjs.writeExecutionOutput.call(void 0,
|
|
14209
14210
|
{
|
|
14210
14211
|
id: status.runId,
|
|
14211
14212
|
status: status.status,
|
|
@@ -14213,20 +14214,24 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14213
14214
|
...allCollections.length ? { collections: allCollections } : {},
|
|
14214
14215
|
complete: allCollections.every((c) => c.complete === true) ? true : allCollections.some((c) => c.complete === false) ? false : null,
|
|
14215
14216
|
error,
|
|
14216
|
-
credits
|
|
14217
|
+
credits,
|
|
14218
|
+
...credits !== null ? { creditsPostedSoFar: true } : {},
|
|
14217
14219
|
...playName ? { page: _chunkLY5MMXFFjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, status.runId) } : {},
|
|
14218
14220
|
warnings: [
|
|
14219
14221
|
...buildRunWarnings(status, null),
|
|
14220
14222
|
...status.status === "completed" && collections.length && collections.every((collection) => collection.rows.length === 0) ? ["Run completed with 0 output rows."] : []
|
|
14221
14223
|
],
|
|
14222
|
-
next
|
|
14224
|
+
next: {
|
|
14225
|
+
...next,
|
|
14226
|
+
settledCost: `deepline billing usage --run-id ${_chunkBVXIGOBZjs.shellQuote.call(void 0, status.runId)}`
|
|
14227
|
+
}
|
|
14223
14228
|
},
|
|
14224
14229
|
output
|
|
14225
14230
|
);
|
|
14226
14231
|
}
|
|
14227
14232
|
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;
|
|
14228
14233
|
async function handlePlayRun(args, hooks) {
|
|
14229
|
-
const parsedOptions = Array.isArray(args) ?
|
|
14234
|
+
const parsedOptions = Array.isArray(args) ? _chunkMOJ65E7Ljs.parsePlayRunOptions.call(void 0, args) : args;
|
|
14230
14235
|
const options = parsedOptions.runIdFile ? {
|
|
14231
14236
|
...parsedOptions,
|
|
14232
14237
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -14243,7 +14248,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
14243
14248
|
JSON.stringify({
|
|
14244
14249
|
version: 1,
|
|
14245
14250
|
admissionState: "submitted_unknown",
|
|
14246
|
-
baseUrl: new (0,
|
|
14251
|
+
baseUrl: new (0, _chunkQZ2C5ARHjs.DeeplineClient)().baseUrl,
|
|
14247
14252
|
...intent
|
|
14248
14253
|
})
|
|
14249
14254
|
);
|
|
@@ -14509,7 +14514,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
14509
14514
|
);
|
|
14510
14515
|
return `${lines.join("\n")}
|
|
14511
14516
|
|
|
14512
|
-
${
|
|
14517
|
+
${_chunkRWT6N2SUjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
14513
14518
|
}
|
|
14514
14519
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
14515
14520
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -14535,14 +14540,14 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
14535
14540
|
async function handleRunGet(args) {
|
|
14536
14541
|
return explainingRunNotFound(
|
|
14537
14542
|
() => parseRunIdPositional(
|
|
14538
|
-
|
|
14543
|
+
_chunkRWT6N2SUjs.parseJsonFields.call(void 0, args, args.includes("--config") ? "config" : "get").args,
|
|
14539
14544
|
""
|
|
14540
14545
|
),
|
|
14541
14546
|
() => handleRunGetAndPrint(args)
|
|
14542
14547
|
);
|
|
14543
14548
|
}
|
|
14544
14549
|
async function handleRunGetAndPrint(args) {
|
|
14545
|
-
const selection =
|
|
14550
|
+
const selection = _chunkRWT6N2SUjs.parseJsonFields.call(void 0,
|
|
14546
14551
|
args,
|
|
14547
14552
|
args.includes("--config") ? "config" : "get"
|
|
14548
14553
|
);
|
|
@@ -14555,7 +14560,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14555
14560
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14556
14561
|
return 1;
|
|
14557
14562
|
}
|
|
14558
|
-
const client = new (0,
|
|
14563
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
14559
14564
|
const timing = args.includes("--timing");
|
|
14560
14565
|
const web = args.includes("--web");
|
|
14561
14566
|
if (web || args.includes("--web-url")) {
|
|
@@ -14573,8 +14578,8 @@ async function handleRunGetAndPrint(args) {
|
|
|
14573
14578
|
const dashboardUrl2 = _chunkLY5MMXFFjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
14574
14579
|
const runUrl2 = _chunkLY5MMXFFjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
14575
14580
|
if (web) {
|
|
14576
|
-
const opened =
|
|
14577
|
-
|
|
14581
|
+
const opened = _chunkRWT6N2SUjs.openInBrowser.call(void 0, runUrl2);
|
|
14582
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
14578
14583
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
14579
14584
|
{
|
|
14580
14585
|
json: args.includes("--json"),
|
|
@@ -14585,7 +14590,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14585
14590
|
);
|
|
14586
14591
|
return 0;
|
|
14587
14592
|
}
|
|
14588
|
-
|
|
14593
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
14589
14594
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
14590
14595
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
14591
14596
|
` }
|
|
@@ -14610,7 +14615,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14610
14615
|
"This server does not support recorded configuration reads."
|
|
14611
14616
|
);
|
|
14612
14617
|
}
|
|
14613
|
-
|
|
14618
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
14614
14619
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
14615
14620
|
{ json: true, fields: selection.fields }
|
|
14616
14621
|
);
|
|
@@ -14623,7 +14628,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14623
14628
|
timing,
|
|
14624
14629
|
() => client.getRunInput(runId)
|
|
14625
14630
|
);
|
|
14626
|
-
|
|
14631
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
14627
14632
|
return 0;
|
|
14628
14633
|
}
|
|
14629
14634
|
const full = args.includes("--full");
|
|
@@ -14638,7 +14643,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14638
14643
|
failedLogs: args.includes("--log-failed")
|
|
14639
14644
|
})
|
|
14640
14645
|
);
|
|
14641
|
-
if (status.package)
|
|
14646
|
+
if (status.package) _chunkQMDG7FKAjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
14642
14647
|
if (!status.package) {
|
|
14643
14648
|
const legacyStatus = full ? await withRunReadTiming(
|
|
14644
14649
|
"runs get",
|
|
@@ -14652,8 +14657,8 @@ async function handleRunGetAndPrint(args) {
|
|
|
14652
14657
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
14653
14658
|
const legacyDashboardUrl = legacyPlayName ? _chunkLY5MMXFFjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
14654
14659
|
const legacyRunUrl = legacyPlayName ? _chunkLY5MMXFFjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
14655
|
-
if (
|
|
14656
|
-
|
|
14660
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
14661
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
14657
14662
|
{
|
|
14658
14663
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
14659
14664
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -14664,7 +14669,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14664
14669
|
} else {
|
|
14665
14670
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
14666
14671
|
if (legacyRunUrl)
|
|
14667
|
-
|
|
14672
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
14668
14673
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
14669
14674
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
14670
14675
|
` }
|
|
@@ -14694,11 +14699,11 @@ async function handleRunGetAndPrint(args) {
|
|
|
14694
14699
|
)
|
|
14695
14700
|
]);
|
|
14696
14701
|
const hitLines = formatRunHitsLines(hits);
|
|
14697
|
-
const json =
|
|
14702
|
+
const json = _chunkRWT6N2SUjs.argsWantJson.call(void 0, args);
|
|
14698
14703
|
const playName = resolveRunPlayName(status, runId);
|
|
14699
14704
|
const dashboardUrl = playName ? _chunkLY5MMXFFjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
14700
14705
|
const runUrl = playName ? _chunkLY5MMXFFjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
14701
|
-
|
|
14706
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
14702
14707
|
{
|
|
14703
14708
|
...overview,
|
|
14704
14709
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -14803,9 +14808,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
14803
14808
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14804
14809
|
return 1;
|
|
14805
14810
|
}
|
|
14806
|
-
const status = await new (0,
|
|
14807
|
-
if (
|
|
14808
|
-
|
|
14811
|
+
const status = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().runs.status(runId);
|
|
14812
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
14813
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
14809
14814
|
return 0;
|
|
14810
14815
|
}
|
|
14811
14816
|
if (!status.available) {
|
|
@@ -14871,7 +14876,7 @@ async function handleRunsRerun(args) {
|
|
|
14871
14876
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14872
14877
|
return 1;
|
|
14873
14878
|
}
|
|
14874
|
-
const options = { json:
|
|
14879
|
+
const options = { json: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args) };
|
|
14875
14880
|
for (let index = 0; index < args.length; index += 1) {
|
|
14876
14881
|
if (args[index] === "--idempotency-key") {
|
|
14877
14882
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14939,8 +14944,8 @@ ${usage2}
|
|
|
14939
14944
|
Discover Plays: ${next.discover}
|
|
14940
14945
|
Active runs: ${next.running}`
|
|
14941
14946
|
);
|
|
14942
|
-
if (
|
|
14943
|
-
|
|
14947
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
14948
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
14944
14949
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14945
14950
|
{ json: true }
|
|
14946
14951
|
);
|
|
@@ -14969,7 +14974,7 @@ Active runs: ${next.running}`
|
|
|
14969
14974
|
console.error("--offset requires --play.");
|
|
14970
14975
|
return 1;
|
|
14971
14976
|
}
|
|
14972
|
-
const client = new (0,
|
|
14977
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
14973
14978
|
const page = await withRunReadTiming(
|
|
14974
14979
|
"runs list",
|
|
14975
14980
|
"run inventory",
|
|
@@ -15050,14 +15055,14 @@ Active runs: ${next.running}`
|
|
|
15050
15055
|
return lines2.join("\n");
|
|
15051
15056
|
});
|
|
15052
15057
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
15053
|
-
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkBVXIGOBZjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkBVXIGOBZjs.shellQuote.call(void 0, nodeId)}` : ""}${wantsSteps ? " --steps" : ""}${statusFilter ? ` --status ${_chunkBVXIGOBZjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${
|
|
15058
|
+
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkBVXIGOBZjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkBVXIGOBZjs.shellQuote.call(void 0, nodeId)}` : ""}${wantsSteps ? " --steps" : ""}${statusFilter ? ` --status ${_chunkBVXIGOBZjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkRWT6N2SUjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
15054
15059
|
if (page.hasMore) {
|
|
15055
15060
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
15056
15061
|
lines.push(
|
|
15057
15062
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
15058
15063
|
);
|
|
15059
15064
|
}
|
|
15060
|
-
|
|
15065
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
15061
15066
|
{
|
|
15062
15067
|
runs,
|
|
15063
15068
|
...wantsSteps ? {
|
|
@@ -15075,7 +15080,7 @@ Active runs: ${next.running}`
|
|
|
15075
15080
|
},
|
|
15076
15081
|
render: { sections: [{ title: "runs", lines }] }
|
|
15077
15082
|
},
|
|
15078
|
-
{ json:
|
|
15083
|
+
{ json: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args) }
|
|
15079
15084
|
);
|
|
15080
15085
|
return 0;
|
|
15081
15086
|
}
|
|
@@ -15105,7 +15110,7 @@ async function handleRunTail(args) {
|
|
|
15105
15110
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15106
15111
|
return 1;
|
|
15107
15112
|
}
|
|
15108
|
-
const parsed =
|
|
15113
|
+
const parsed = _chunkDYWOBLYLjs.parseLogLevel.call(void 0, value);
|
|
15109
15114
|
if (!parsed) {
|
|
15110
15115
|
console.error(
|
|
15111
15116
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15143,9 +15148,9 @@ async function handleRunTail(args) {
|
|
|
15143
15148
|
);
|
|
15144
15149
|
return 1;
|
|
15145
15150
|
}
|
|
15146
|
-
const client = new (0,
|
|
15151
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
15147
15152
|
const jsonLines = args.includes("--jsonl");
|
|
15148
|
-
const jsonOutput = !jsonLines &&
|
|
15153
|
+
const jsonOutput = !jsonLines && _chunkRWT6N2SUjs.argsWantJson.call(void 0, args);
|
|
15149
15154
|
const compact = args.includes("--compact");
|
|
15150
15155
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
15151
15156
|
const compactState = {
|
|
@@ -15226,7 +15231,7 @@ async function handleRunLogs(args) {
|
|
|
15226
15231
|
]);
|
|
15227
15232
|
const cursorIndex = args.indexOf("--cursor");
|
|
15228
15233
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15229
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
15234
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkDYWOBLYLjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
15230
15235
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
15231
15236
|
return handleRunEventSearch(args);
|
|
15232
15237
|
}
|
|
@@ -15260,7 +15265,7 @@ async function handleRunLogs(args) {
|
|
|
15260
15265
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15261
15266
|
return 1;
|
|
15262
15267
|
}
|
|
15263
|
-
const parsed =
|
|
15268
|
+
const parsed = _chunkDYWOBLYLjs.parseLogLevel.call(void 0, value);
|
|
15264
15269
|
if (!parsed) {
|
|
15265
15270
|
console.error(
|
|
15266
15271
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15307,12 +15312,12 @@ async function handleRunLogs(args) {
|
|
|
15307
15312
|
);
|
|
15308
15313
|
return 1;
|
|
15309
15314
|
}
|
|
15310
|
-
const client = new (0,
|
|
15315
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
15311
15316
|
if (outPath) {
|
|
15312
15317
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
15313
|
-
const logs = result2.entries.filter((line) =>
|
|
15318
|
+
const logs = result2.entries.filter((line) => _chunkDYWOBLYLjs.logLevelReaches.call(void 0, _chunkDYWOBLYLjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkDYWOBLYLjs.classifyLogLine.call(void 0, line).line);
|
|
15314
15319
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
15315
|
-
|
|
15320
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
15316
15321
|
{
|
|
15317
15322
|
runId: result2.runId,
|
|
15318
15323
|
log_path: outPath,
|
|
@@ -15335,7 +15340,7 @@ async function handleRunLogs(args) {
|
|
|
15335
15340
|
]
|
|
15336
15341
|
}
|
|
15337
15342
|
},
|
|
15338
|
-
{ json:
|
|
15343
|
+
{ json: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args) }
|
|
15339
15344
|
);
|
|
15340
15345
|
return 0;
|
|
15341
15346
|
}
|
|
@@ -15366,7 +15371,7 @@ async function handleRunLogs(args) {
|
|
|
15366
15371
|
}
|
|
15367
15372
|
};
|
|
15368
15373
|
const text3 = buildRunLogsText(filteredResult);
|
|
15369
|
-
|
|
15374
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
15370
15375
|
{
|
|
15371
15376
|
runId: result.runId,
|
|
15372
15377
|
totalCount: result.totalCount,
|
|
@@ -15390,7 +15395,7 @@ async function handleRunLogs(args) {
|
|
|
15390
15395
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
15391
15396
|
},
|
|
15392
15397
|
{
|
|
15393
|
-
json:
|
|
15398
|
+
json: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args),
|
|
15394
15399
|
text: text3
|
|
15395
15400
|
}
|
|
15396
15401
|
);
|
|
@@ -15414,7 +15419,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15414
15419
|
);
|
|
15415
15420
|
}
|
|
15416
15421
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
15417
|
-
(entry) =>
|
|
15422
|
+
(entry) => _chunkDYWOBLYLjs.logLevelReaches.call(void 0, _chunkDYWOBLYLjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
15418
15423
|
);
|
|
15419
15424
|
const selected = matching.slice(-limit);
|
|
15420
15425
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -15424,7 +15429,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15424
15429
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _611 => _611.at, 'call', _612 => _612(-1), 'optionalAccess', _613 => _613.seq]), () => ( null)),
|
|
15425
15430
|
truncated: result.truncated || olderMatchesExist,
|
|
15426
15431
|
hasMore: olderMatchesExist,
|
|
15427
|
-
nextCursor: olderMatchesExist ?
|
|
15432
|
+
nextCursor: olderMatchesExist ? _chunkDYWOBLYLjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
15428
15433
|
};
|
|
15429
15434
|
}
|
|
15430
15435
|
async function handleRunEventSearch(args) {
|
|
@@ -15491,7 +15496,7 @@ ${usage2}`);
|
|
|
15491
15496
|
namespace,
|
|
15492
15497
|
...backend ? { backend } : {}
|
|
15493
15498
|
} : void 0;
|
|
15494
|
-
const client = new (0,
|
|
15499
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
15495
15500
|
const result = await client.runs.searchEvents({
|
|
15496
15501
|
...runId ? { runId } : {},
|
|
15497
15502
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -15563,7 +15568,7 @@ ${renderedDetails}` : ""}`;
|
|
|
15563
15568
|
"--limit",
|
|
15564
15569
|
String(limit)
|
|
15565
15570
|
].join(" ") : null;
|
|
15566
|
-
|
|
15571
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
15567
15572
|
{
|
|
15568
15573
|
events,
|
|
15569
15574
|
nextCursor: result.nextCursor,
|
|
@@ -15574,14 +15579,14 @@ ${renderedDetails}` : ""}`;
|
|
|
15574
15579
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
15575
15580
|
},
|
|
15576
15581
|
{
|
|
15577
|
-
json:
|
|
15582
|
+
json: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args),
|
|
15578
15583
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
15579
15584
|
}
|
|
15580
15585
|
);
|
|
15581
15586
|
return 0;
|
|
15582
15587
|
}
|
|
15583
15588
|
function buildRunLogsText(result) {
|
|
15584
|
-
const lines = result.entries.map((line) =>
|
|
15589
|
+
const lines = result.entries.map((line) => _chunkDYWOBLYLjs.classifyLogLine.call(void 0, line).line);
|
|
15585
15590
|
if (result.warning) {
|
|
15586
15591
|
if (lines.length > 0) lines.push("");
|
|
15587
15592
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -15615,7 +15620,7 @@ async function handleRunStop(args) {
|
|
|
15615
15620
|
reason = args[++index];
|
|
15616
15621
|
}
|
|
15617
15622
|
}
|
|
15618
|
-
const client = new (0,
|
|
15623
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
15619
15624
|
const result = await client.runs.stop(runId, { reason });
|
|
15620
15625
|
const communicationNotes = [
|
|
15621
15626
|
...result.communicationCancelledCount ? [
|
|
@@ -15639,7 +15644,7 @@ async function handleRunStop(args) {
|
|
|
15639
15644
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
15640
15645
|
`inspect: deepline runs get ${runId} --full`
|
|
15641
15646
|
];
|
|
15642
|
-
|
|
15647
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
15643
15648
|
{
|
|
15644
15649
|
...cancelling,
|
|
15645
15650
|
state,
|
|
@@ -15654,7 +15659,7 @@ async function handleRunStop(args) {
|
|
|
15654
15659
|
]
|
|
15655
15660
|
}
|
|
15656
15661
|
},
|
|
15657
|
-
{ json:
|
|
15662
|
+
{ json: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args) }
|
|
15658
15663
|
);
|
|
15659
15664
|
return 0;
|
|
15660
15665
|
}
|
|
@@ -15672,7 +15677,7 @@ async function handleRunStop(args) {
|
|
|
15672
15677
|
];
|
|
15673
15678
|
process.stderr.write(`${lines2.join("\n")}
|
|
15674
15679
|
`);
|
|
15675
|
-
|
|
15680
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
15676
15681
|
{
|
|
15677
15682
|
...result,
|
|
15678
15683
|
render: {
|
|
@@ -15687,7 +15692,7 @@ async function handleRunStop(args) {
|
|
|
15687
15692
|
]
|
|
15688
15693
|
}
|
|
15689
15694
|
},
|
|
15690
|
-
{ json:
|
|
15695
|
+
{ json: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args) }
|
|
15691
15696
|
);
|
|
15692
15697
|
return 1;
|
|
15693
15698
|
}
|
|
@@ -15699,12 +15704,12 @@ async function handleRunStop(args) {
|
|
|
15699
15704
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
15700
15705
|
] : []
|
|
15701
15706
|
];
|
|
15702
|
-
|
|
15707
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
15703
15708
|
{
|
|
15704
15709
|
...result,
|
|
15705
15710
|
render: { sections: [{ title: "run stop", lines }] }
|
|
15706
15711
|
},
|
|
15707
|
-
{ json:
|
|
15712
|
+
{ json: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args) }
|
|
15708
15713
|
);
|
|
15709
15714
|
return 0;
|
|
15710
15715
|
}
|
|
@@ -15754,18 +15759,18 @@ async function handleRunStopAll(args) {
|
|
|
15754
15759
|
reason = args[++index];
|
|
15755
15760
|
}
|
|
15756
15761
|
}
|
|
15757
|
-
const client = new (0,
|
|
15762
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
15758
15763
|
if (dryRun) {
|
|
15759
15764
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
15760
15765
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
15761
|
-
|
|
15766
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
15762
15767
|
{
|
|
15763
15768
|
...result2,
|
|
15764
15769
|
render: {
|
|
15765
15770
|
sections: [{ title: "org stop-all (dry run)", lines: lines2 }]
|
|
15766
15771
|
}
|
|
15767
15772
|
},
|
|
15768
|
-
{ json:
|
|
15773
|
+
{ json: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
15769
15774
|
` }
|
|
15770
15775
|
);
|
|
15771
15776
|
return 0;
|
|
@@ -15778,23 +15783,23 @@ async function handleRunStopAll(args) {
|
|
|
15778
15783
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
15779
15784
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
15780
15785
|
];
|
|
15781
|
-
|
|
15786
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
15782
15787
|
{
|
|
15783
15788
|
...result,
|
|
15784
15789
|
render: { sections: [{ title: "org stop-all", lines }] }
|
|
15785
15790
|
},
|
|
15786
|
-
{ json:
|
|
15791
|
+
{ json: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args) }
|
|
15787
15792
|
);
|
|
15788
15793
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
15789
15794
|
}
|
|
15790
15795
|
async function handleRunExport(args) {
|
|
15791
15796
|
return explainingRunNotFound(
|
|
15792
|
-
() => parseRunIdPositional(
|
|
15797
|
+
() => parseRunIdPositional(_chunkRWT6N2SUjs.parseJsonFields.call(void 0, args, "export").args, ""),
|
|
15793
15798
|
() => handleRunExportAndWrite(args)
|
|
15794
15799
|
);
|
|
15795
15800
|
}
|
|
15796
15801
|
async function handleRunExportAndWrite(args) {
|
|
15797
|
-
const selection =
|
|
15802
|
+
const selection = _chunkRWT6N2SUjs.parseJsonFields.call(void 0, args, "export");
|
|
15798
15803
|
args = selection.args;
|
|
15799
15804
|
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]";
|
|
15800
15805
|
let runId;
|
|
@@ -15865,17 +15870,17 @@ async function handleRunExportAndWrite(args) {
|
|
|
15865
15870
|
"INVALID_ARGUMENT"
|
|
15866
15871
|
);
|
|
15867
15872
|
}
|
|
15868
|
-
const client = new (0,
|
|
15873
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
15869
15874
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
15870
15875
|
runId = assertRunExportStatusIdentity(status, runId);
|
|
15871
15876
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
15872
|
-
const progress =
|
|
15877
|
+
const progress = _chunkWTQGJBHDjs.createCliProgress.call(void 0, !_chunkRWT6N2SUjs.argsWantJson.call(void 0, args));
|
|
15873
15878
|
try {
|
|
15874
15879
|
await waitForPlayCompletionByWatch({
|
|
15875
15880
|
client,
|
|
15876
15881
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
15877
15882
|
workflowId: runId,
|
|
15878
|
-
jsonOutput:
|
|
15883
|
+
jsonOutput: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args),
|
|
15879
15884
|
emitLogs: false,
|
|
15880
15885
|
waitTimeoutMs,
|
|
15881
15886
|
startedAt: Date.now(),
|
|
@@ -15943,7 +15948,7 @@ async function handleRunExportAndWrite(args) {
|
|
|
15943
15948
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _627 => _627.rowsInfo, 'access', _628 => _628.totalRows]), () => ( null)),
|
|
15944
15949
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
15945
15950
|
...rowFailures ? { rowFailures } : {},
|
|
15946
|
-
columns:
|
|
15951
|
+
columns: _chunkQMDG7FKAjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _629 => _629.rowsInfo, 'access', _630 => _630.columns]), () => ( []))),
|
|
15947
15952
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
15948
15953
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
15949
15954
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -15977,8 +15982,8 @@ async function handleRunExportAndWrite(args) {
|
|
|
15977
15982
|
"utf-8"
|
|
15978
15983
|
);
|
|
15979
15984
|
}
|
|
15980
|
-
|
|
15981
|
-
json:
|
|
15985
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, payload, {
|
|
15986
|
+
json: _chunkRWT6N2SUjs.argsWantJson.call(void 0, args),
|
|
15982
15987
|
fields: selection.fields,
|
|
15983
15988
|
text: `${lines.join("\n")}
|
|
15984
15989
|
`
|
|
@@ -16016,10 +16021,10 @@ async function handlePlayGet(args) {
|
|
|
16016
16021
|
);
|
|
16017
16022
|
return 2;
|
|
16018
16023
|
}
|
|
16019
|
-
const client = new (0,
|
|
16024
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
16020
16025
|
const explicitJson = args.includes("--json");
|
|
16021
16026
|
const sourceOutput = args.includes("--source");
|
|
16022
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
16027
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkRWT6N2SUjs.argsWantJson.call(void 0, args);
|
|
16023
16028
|
const requestedRevisionFlags = [
|
|
16024
16029
|
args.includes("--working"),
|
|
16025
16030
|
args.includes("--live"),
|
|
@@ -16082,7 +16087,7 @@ async function handlePlayGet(args) {
|
|
|
16082
16087
|
}
|
|
16083
16088
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
16084
16089
|
if (jsonOutput) {
|
|
16085
|
-
|
|
16090
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, {
|
|
16086
16091
|
...detail,
|
|
16087
16092
|
...materializedFile ? {
|
|
16088
16093
|
message: loadedMessage,
|
|
@@ -16174,8 +16179,8 @@ async function handlePlayVersions(args) {
|
|
|
16174
16179
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
16175
16180
|
return 1;
|
|
16176
16181
|
}
|
|
16177
|
-
const client = new (0,
|
|
16178
|
-
const jsonOutput =
|
|
16182
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
16183
|
+
const jsonOutput = _chunkRWT6N2SUjs.argsWantJson.call(void 0, args);
|
|
16179
16184
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16180
16185
|
command: "versions"
|
|
16181
16186
|
});
|
|
@@ -16183,7 +16188,7 @@ async function handlePlayVersions(args) {
|
|
|
16183
16188
|
parseReferencedPlayTarget(playName).playName
|
|
16184
16189
|
);
|
|
16185
16190
|
if (jsonOutput) {
|
|
16186
|
-
|
|
16191
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, { versions });
|
|
16187
16192
|
return 0;
|
|
16188
16193
|
}
|
|
16189
16194
|
if (versions.length === 0) {
|
|
@@ -16222,8 +16227,8 @@ async function handlePlayCost(args) {
|
|
|
16222
16227
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
16223
16228
|
return 2;
|
|
16224
16229
|
}
|
|
16225
|
-
const result = await new (0,
|
|
16226
|
-
if (
|
|
16230
|
+
const result = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
16231
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
16227
16232
|
else
|
|
16228
16233
|
console.log(
|
|
16229
16234
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -16231,9 +16236,9 @@ async function handlePlayCost(args) {
|
|
|
16231
16236
|
return 0;
|
|
16232
16237
|
}
|
|
16233
16238
|
async function handlePlayList(args) {
|
|
16234
|
-
const jsonOutput =
|
|
16239
|
+
const jsonOutput = _chunkRWT6N2SUjs.argsWantJson.call(void 0, args);
|
|
16235
16240
|
const showCost = args.includes("--show-cost");
|
|
16236
|
-
const client = new (0,
|
|
16241
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
16237
16242
|
const categoriesIndex = args.indexOf("--categories");
|
|
16238
16243
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _649 => _649[categoriesIndex + 1], 'optionalAccess', _650 => _650.trim, 'call', _651 => _651()]) : void 0;
|
|
16239
16244
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -16331,7 +16336,7 @@ async function handlePlayList(args) {
|
|
|
16331
16336
|
lines.push("List truncated \u2014 more plays are available.");
|
|
16332
16337
|
lines.push(`Next page: ${nextPage}`);
|
|
16333
16338
|
}
|
|
16334
|
-
|
|
16339
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
16335
16340
|
{
|
|
16336
16341
|
plays,
|
|
16337
16342
|
count: plays.length,
|
|
@@ -16349,7 +16354,7 @@ async function handlePlayList(args) {
|
|
|
16349
16354
|
}
|
|
16350
16355
|
async function handlePlayPin(args, pinned) {
|
|
16351
16356
|
const target = _optionalChain([args, 'access', _660 => _660.find, 'call', _661 => _661((arg) => !arg.startsWith("-")), 'optionalAccess', _662 => _662.trim, 'call', _663 => _663()]);
|
|
16352
|
-
const jsonOutput =
|
|
16357
|
+
const jsonOutput = _chunkRWT6N2SUjs.argsWantJson.call(void 0, args);
|
|
16353
16358
|
const dryRun = args.includes("--dry-run");
|
|
16354
16359
|
if (!target) {
|
|
16355
16360
|
console.error(
|
|
@@ -16367,11 +16372,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
16367
16372
|
const name = parsedTarget.playName;
|
|
16368
16373
|
const plan = { name, pinned, dryRun };
|
|
16369
16374
|
if (dryRun) {
|
|
16370
|
-
|
|
16375
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, plan);
|
|
16371
16376
|
return 0;
|
|
16372
16377
|
}
|
|
16373
|
-
const result = await new (0,
|
|
16374
|
-
if (jsonOutput)
|
|
16378
|
+
const result = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
16379
|
+
if (jsonOutput) _chunkRWT6N2SUjs.printCompactJson.call(void 0, result);
|
|
16375
16380
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
16376
16381
|
return 0;
|
|
16377
16382
|
}
|
|
@@ -16497,12 +16502,12 @@ async function handlePlayGrep(args) {
|
|
|
16497
16502
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
16498
16503
|
return 1;
|
|
16499
16504
|
}
|
|
16500
|
-
const client = new (0,
|
|
16505
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
16501
16506
|
const results = (await client.listPlays({ grep: query })).map(
|
|
16502
16507
|
summarizePlayGrepResult
|
|
16503
16508
|
);
|
|
16504
|
-
if (
|
|
16505
|
-
|
|
16509
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
16510
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, {
|
|
16506
16511
|
plays: results,
|
|
16507
16512
|
count: results.length,
|
|
16508
16513
|
query,
|
|
@@ -16525,7 +16530,7 @@ async function handlePlayGrep(args) {
|
|
|
16525
16530
|
return 0;
|
|
16526
16531
|
}
|
|
16527
16532
|
async function handlePlayDescribe(args) {
|
|
16528
|
-
const selection =
|
|
16533
|
+
const selection = _chunkRWT6N2SUjs.parseJsonFields.call(void 0, args, "describe");
|
|
16529
16534
|
args = selection.args;
|
|
16530
16535
|
const playName = args[0];
|
|
16531
16536
|
if (!playName) {
|
|
@@ -16559,8 +16564,8 @@ async function handlePlayDescribe(args) {
|
|
|
16559
16564
|
`deepline plays check ${playName}`,
|
|
16560
16565
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
16561
16566
|
];
|
|
16562
|
-
if (
|
|
16563
|
-
|
|
16567
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
16568
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, {
|
|
16564
16569
|
ok: false,
|
|
16565
16570
|
error: { message },
|
|
16566
16571
|
next
|
|
@@ -16574,7 +16579,7 @@ async function handlePlayDescribe(args) {
|
|
|
16574
16579
|
}
|
|
16575
16580
|
return 2;
|
|
16576
16581
|
}
|
|
16577
|
-
const client = new (0,
|
|
16582
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
16578
16583
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16579
16584
|
command: "describe"
|
|
16580
16585
|
});
|
|
@@ -16584,9 +16589,9 @@ async function handlePlayDescribe(args) {
|
|
|
16584
16589
|
compact: args.includes("--compact")
|
|
16585
16590
|
}
|
|
16586
16591
|
);
|
|
16587
|
-
if (
|
|
16588
|
-
if (selection.fields)
|
|
16589
|
-
else
|
|
16592
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
16593
|
+
if (selection.fields) _chunkRWT6N2SUjs.printJson.call(void 0, play, selection.fields);
|
|
16594
|
+
else _chunkRWT6N2SUjs.printCompactJson.call(void 0, play);
|
|
16590
16595
|
return 0;
|
|
16591
16596
|
}
|
|
16592
16597
|
printPlayDescription(play);
|
|
@@ -16607,7 +16612,7 @@ async function handlePlaySave(args) {
|
|
|
16607
16612
|
return 2;
|
|
16608
16613
|
}
|
|
16609
16614
|
const watchPlay = options.dryRun ? void 0 : options.watchPlay;
|
|
16610
|
-
const client = watchPlay ? new (0,
|
|
16615
|
+
const client = watchPlay ? new (0, _chunkQZ2C5ARHjs.DeeplineClient)() : void 0;
|
|
16611
16616
|
let attempt;
|
|
16612
16617
|
if (watchPlay && client) {
|
|
16613
16618
|
try {
|
|
@@ -16631,7 +16636,7 @@ async function handlePlaySave(args) {
|
|
|
16631
16636
|
};
|
|
16632
16637
|
let graph;
|
|
16633
16638
|
try {
|
|
16634
|
-
graph = await
|
|
16639
|
+
graph = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
16635
16640
|
"cli.play_save_bundle_graph",
|
|
16636
16641
|
{ targetKind: "file" },
|
|
16637
16642
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -16660,7 +16665,7 @@ async function handlePlaySave(args) {
|
|
|
16660
16665
|
next: `deepline plays check ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.target)}`
|
|
16661
16666
|
};
|
|
16662
16667
|
if (options.jsonOutput) {
|
|
16663
|
-
|
|
16668
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, result);
|
|
16664
16669
|
} else {
|
|
16665
16670
|
console.error(result.message);
|
|
16666
16671
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -16682,7 +16687,7 @@ async function handlePlaySave(args) {
|
|
|
16682
16687
|
};
|
|
16683
16688
|
if (options.dryRun) {
|
|
16684
16689
|
if (options.jsonOutput) {
|
|
16685
|
-
|
|
16690
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, dryRun);
|
|
16686
16691
|
} else {
|
|
16687
16692
|
console.log(`Dry run: ${playName}`);
|
|
16688
16693
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16691,14 +16696,14 @@ async function handlePlaySave(args) {
|
|
|
16691
16696
|
}
|
|
16692
16697
|
return 0;
|
|
16693
16698
|
}
|
|
16694
|
-
const saveClient = _nullishCoalesce(client, () => ( new (0,
|
|
16699
|
+
const saveClient = _nullishCoalesce(client, () => ( new (0, _chunkQZ2C5ARHjs.DeeplineClient)()));
|
|
16695
16700
|
try {
|
|
16696
|
-
await
|
|
16701
|
+
await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
16697
16702
|
"cli.play_save_compile_manifests",
|
|
16698
16703
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16699
16704
|
() => compileBundledPlayGraphManifests(saveClient, graph)
|
|
16700
16705
|
);
|
|
16701
|
-
const saved = await
|
|
16706
|
+
const saved = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
16702
16707
|
"cli.play_save_register_draft",
|
|
16703
16708
|
{ targetKind: "file", playName, artifactHash },
|
|
16704
16709
|
() => saveClient.registerPlayArtifact({
|
|
@@ -16728,7 +16733,7 @@ async function handlePlaySave(args) {
|
|
|
16728
16733
|
}
|
|
16729
16734
|
};
|
|
16730
16735
|
if (options.jsonOutput) {
|
|
16731
|
-
|
|
16736
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, result);
|
|
16732
16737
|
} else {
|
|
16733
16738
|
console.log(
|
|
16734
16739
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -16748,7 +16753,7 @@ async function handlePlaySave(args) {
|
|
|
16748
16753
|
}
|
|
16749
16754
|
}
|
|
16750
16755
|
async function enforceOutcomeGuardrail(input) {
|
|
16751
|
-
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-
|
|
16756
|
+
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-D6KXYKGW.js")));
|
|
16752
16757
|
try {
|
|
16753
16758
|
const gate = await requireOutcomeGuardrail({ ...input, phase: "reserve" });
|
|
16754
16759
|
return {
|
|
@@ -16776,7 +16781,7 @@ async function enforceOutcomeGuardrail(input) {
|
|
|
16776
16781
|
}
|
|
16777
16782
|
}
|
|
16778
16783
|
async function settleOutcomeApproval(input) {
|
|
16779
|
-
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-
|
|
16784
|
+
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-D6KXYKGW.js")));
|
|
16780
16785
|
const id = `${input.outcome}/${input.approval.seq}`;
|
|
16781
16786
|
try {
|
|
16782
16787
|
await requireOutcomeGuardrail({
|
|
@@ -16808,7 +16813,7 @@ async function handlePlayPublish(args) {
|
|
|
16808
16813
|
}
|
|
16809
16814
|
const { target: playName, useLatest } = options;
|
|
16810
16815
|
let revisionId = options.revisionId;
|
|
16811
|
-
const client = new (0,
|
|
16816
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
16812
16817
|
if (isFileTarget(playName)) {
|
|
16813
16818
|
if (revisionId || useLatest) {
|
|
16814
16819
|
console.error(
|
|
@@ -16818,7 +16823,7 @@ async function handlePlayPublish(args) {
|
|
|
16818
16823
|
}
|
|
16819
16824
|
let graph;
|
|
16820
16825
|
try {
|
|
16821
|
-
graph = await
|
|
16826
|
+
graph = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
16822
16827
|
"cli.play_publish_bundle_graph",
|
|
16823
16828
|
{ targetKind: "file" },
|
|
16824
16829
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -16840,7 +16845,7 @@ async function handlePlayPublish(args) {
|
|
|
16840
16845
|
next: `deepline plays check ${_chunkBVXIGOBZjs.shellQuote.call(void 0, playName)}`
|
|
16841
16846
|
};
|
|
16842
16847
|
if (options.jsonOutput) {
|
|
16843
|
-
|
|
16848
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, result3);
|
|
16844
16849
|
} else {
|
|
16845
16850
|
console.error(result3.message);
|
|
16846
16851
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -16863,7 +16868,7 @@ async function handlePlayPublish(args) {
|
|
|
16863
16868
|
};
|
|
16864
16869
|
if (options.dryRun) {
|
|
16865
16870
|
if (options.jsonOutput) {
|
|
16866
|
-
|
|
16871
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, dryRun);
|
|
16867
16872
|
} else {
|
|
16868
16873
|
console.log(`Dry run: ${rootPlayName}`);
|
|
16869
16874
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16882,12 +16887,12 @@ async function handlePlayPublish(args) {
|
|
|
16882
16887
|
}
|
|
16883
16888
|
}
|
|
16884
16889
|
try {
|
|
16885
|
-
await
|
|
16890
|
+
await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
16886
16891
|
"cli.play_publish_compile_manifests",
|
|
16887
16892
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16888
16893
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
16889
16894
|
);
|
|
16890
|
-
await
|
|
16895
|
+
await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
16891
16896
|
"cli.play_publish_imports",
|
|
16892
16897
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16893
16898
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -16896,7 +16901,7 @@ async function handlePlayPublish(args) {
|
|
|
16896
16901
|
console.error(error instanceof Error ? error.message : String(error));
|
|
16897
16902
|
return 1;
|
|
16898
16903
|
}
|
|
16899
|
-
const published = await
|
|
16904
|
+
const published = await _chunkSE56PJ46js.traceCliSpan.call(void 0,
|
|
16900
16905
|
"cli.play_publish_register_root",
|
|
16901
16906
|
{
|
|
16902
16907
|
targetKind: "file",
|
|
@@ -16931,7 +16936,7 @@ async function handlePlayPublish(args) {
|
|
|
16931
16936
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
16932
16937
|
};
|
|
16933
16938
|
if (options.jsonOutput) {
|
|
16934
|
-
|
|
16939
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, result2);
|
|
16935
16940
|
} else {
|
|
16936
16941
|
printPublishReceipt({
|
|
16937
16942
|
name: rootPlayName,
|
|
@@ -16962,7 +16967,7 @@ async function handlePlayPublish(args) {
|
|
|
16962
16967
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
16963
16968
|
latest: useLatest
|
|
16964
16969
|
};
|
|
16965
|
-
|
|
16970
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, result2);
|
|
16966
16971
|
return 0;
|
|
16967
16972
|
}
|
|
16968
16973
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -16986,7 +16991,7 @@ async function handlePlayPublish(args) {
|
|
|
16986
16991
|
revisionId ? { revisionId } : {}
|
|
16987
16992
|
);
|
|
16988
16993
|
if (options.jsonOutput) {
|
|
16989
|
-
|
|
16994
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, result);
|
|
16990
16995
|
} else {
|
|
16991
16996
|
printPublishReceipt({
|
|
16992
16997
|
name: result.name,
|
|
@@ -17026,7 +17031,7 @@ async function handlePlayDelete(args) {
|
|
|
17026
17031
|
);
|
|
17027
17032
|
return 2;
|
|
17028
17033
|
}
|
|
17029
|
-
const client = new (0,
|
|
17034
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
17030
17035
|
let detail;
|
|
17031
17036
|
try {
|
|
17032
17037
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -17050,8 +17055,8 @@ async function handlePlayDelete(args) {
|
|
|
17050
17055
|
name: resolvedName,
|
|
17051
17056
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
17052
17057
|
};
|
|
17053
|
-
if (
|
|
17054
|
-
|
|
17058
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
17059
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, result2);
|
|
17055
17060
|
} else {
|
|
17056
17061
|
process.stdout.write(
|
|
17057
17062
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -17061,8 +17066,8 @@ async function handlePlayDelete(args) {
|
|
|
17061
17066
|
return 0;
|
|
17062
17067
|
}
|
|
17063
17068
|
const result = await client.deletePlay(resolvedName);
|
|
17064
|
-
if (
|
|
17065
|
-
|
|
17069
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
17070
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, result);
|
|
17066
17071
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
17067
17072
|
}
|
|
17068
17073
|
if (result.alreadyArchived) {
|
|
@@ -17101,13 +17106,13 @@ async function handlePlayRestore(args) {
|
|
|
17101
17106
|
);
|
|
17102
17107
|
return 2;
|
|
17103
17108
|
}
|
|
17104
|
-
const client = new (0,
|
|
17109
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
17105
17110
|
try {
|
|
17106
17111
|
const result = await client.restorePlay(
|
|
17107
17112
|
parseReferencedPlayTarget(playName).playName
|
|
17108
17113
|
);
|
|
17109
|
-
if (
|
|
17110
|
-
|
|
17114
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
17115
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, result);
|
|
17111
17116
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
17112
17117
|
}
|
|
17113
17118
|
if (result.alreadyActive) {
|
|
@@ -17234,21 +17239,21 @@ Common commands:
|
|
|
17234
17239
|
resume: `deepline plays resume-submission ${_chunkBVXIGOBZjs.shellQuote.call(void 0, path)} --json`
|
|
17235
17240
|
}
|
|
17236
17241
|
};
|
|
17237
|
-
|
|
17242
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0, result2, {
|
|
17238
17243
|
json: options.json,
|
|
17239
17244
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
17240
17245
|
`
|
|
17241
17246
|
});
|
|
17242
17247
|
return;
|
|
17243
17248
|
}
|
|
17244
|
-
const client = new (0,
|
|
17249
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
17245
17250
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
17246
17251
|
throw new Error(
|
|
17247
17252
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
17248
17253
|
);
|
|
17249
17254
|
}
|
|
17250
17255
|
const result = await client.startPlayRun(saved.request);
|
|
17251
|
-
|
|
17256
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
17252
17257
|
{ ...result },
|
|
17253
17258
|
{
|
|
17254
17259
|
json: options.json,
|
|
@@ -17284,7 +17289,7 @@ Examples:
|
|
|
17284
17289
|
).action(async (target, options) => {
|
|
17285
17290
|
process.exitCode = await handlePlayCheck([
|
|
17286
17291
|
target,
|
|
17287
|
-
...
|
|
17292
|
+
..._chunkRWT6N2SUjs.jsonFieldArgs.call(void 0, options.json),
|
|
17288
17293
|
...options.full ? ["--full"] : []
|
|
17289
17294
|
]);
|
|
17290
17295
|
});
|
|
@@ -17331,13 +17336,20 @@ Notes:
|
|
|
17331
17336
|
with a changed input is refused with a 409 conflict. Use one stable key per
|
|
17332
17337
|
exact intent. Without a key, each invocation starts a new run.
|
|
17333
17338
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
17334
|
-
resident-work ceiling. Default: ${
|
|
17339
|
+
resident-work ceiling. Default: ${_chunkMOJ65E7Ljs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkMOJ65E7Ljs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
17335
17340
|
Provider pacing and sandbox memory limits still apply.
|
|
17336
17341
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
17337
|
-
resolvers. Accepted range: 1-${
|
|
17342
|
+
resolvers. Accepted range: 1-${_chunkMOJ65E7Ljs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
17338
17343
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
17339
17344
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
17340
|
-
|
|
17345
|
+
Before each tool call, its quoted price is added to what the run has
|
|
17346
|
+
already been charged; a call that would go over the cap is refused with
|
|
17347
|
+
RUN_BILLING_CAP_EXCEEDED. The cap counts charges already posted, not
|
|
17348
|
+
calls still in flight, so calls that run in parallel can together end the
|
|
17349
|
+
run somewhat over the cap. Compute is always charged and never refused by
|
|
17350
|
+
the cap, so it can also take the run over it.
|
|
17351
|
+
Charges can post a few seconds after the run ends;
|
|
17352
|
+
deepline billing usage --run-id <run-id> shows the settled cost.
|
|
17341
17353
|
This command starts cloud work and may spend Deepline credits through tool calls.
|
|
17342
17354
|
|
|
17343
17355
|
Idempotent execution:
|
|
@@ -17459,10 +17471,10 @@ Examples:
|
|
|
17459
17471
|
).hideHelp()
|
|
17460
17472
|
).option(
|
|
17461
17473
|
"--max-concurrent-external-calls <count>",
|
|
17462
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
17474
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkMOJ65E7Ljs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkMOJ65E7Ljs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
17463
17475
|
).option(
|
|
17464
17476
|
"--max-concurrent-rows <count>",
|
|
17465
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
17477
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkMOJ65E7Ljs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
17466
17478
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").addOption(
|
|
17467
17479
|
// Internal only: the server refuses it without play_run.cache_reuse_window.
|
|
17468
17480
|
new (0, _commander.Option)(
|
|
@@ -17563,14 +17575,14 @@ JSON field selection:
|
|
|
17563
17575
|
passthroughArgs.shift();
|
|
17564
17576
|
}
|
|
17565
17577
|
const exitCode = await handlePlayRun(
|
|
17566
|
-
|
|
17578
|
+
_chunkMOJ65E7Ljs.resolvePlayRunCliOptions.call(void 0,
|
|
17567
17579
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
17568
17580
|
options,
|
|
17569
17581
|
passthroughArgs,
|
|
17570
|
-
|
|
17582
|
+
_chunkSE56PJ46js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
17571
17583
|
)
|
|
17572
17584
|
);
|
|
17573
|
-
|
|
17585
|
+
_chunkSE56PJ46js.recordCliTrace.call(void 0, {
|
|
17574
17586
|
phase: "cli.play_command_exit",
|
|
17575
17587
|
exitCode
|
|
17576
17588
|
});
|
|
@@ -17619,9 +17631,9 @@ Examples:
|
|
|
17619
17631
|
const limit = Number(options.historyLimit);
|
|
17620
17632
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
17621
17633
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
17622
|
-
const client = new (0,
|
|
17634
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
17623
17635
|
if (options.binding) {
|
|
17624
|
-
|
|
17636
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0,
|
|
17625
17637
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
17626
17638
|
);
|
|
17627
17639
|
return;
|
|
@@ -17629,7 +17641,7 @@ Examples:
|
|
|
17629
17641
|
const result = await client.listPlayTriggerInventory({
|
|
17630
17642
|
cursor: options.cursor
|
|
17631
17643
|
});
|
|
17632
|
-
|
|
17644
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, {
|
|
17633
17645
|
...result,
|
|
17634
17646
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
17635
17647
|
});
|
|
@@ -17686,7 +17698,7 @@ Examples:
|
|
|
17686
17698
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
17687
17699
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
17688
17700
|
}
|
|
17689
|
-
const result = await new (0,
|
|
17701
|
+
const result = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().getPlaysActivity({
|
|
17690
17702
|
timeZone: options.timeZone,
|
|
17691
17703
|
days,
|
|
17692
17704
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -17700,7 +17712,7 @@ Examples:
|
|
|
17700
17712
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
17701
17713
|
);
|
|
17702
17714
|
}
|
|
17703
|
-
|
|
17715
|
+
_chunkRWT6N2SUjs.printCommandEnvelope.call(void 0,
|
|
17704
17716
|
{ ...result },
|
|
17705
17717
|
{
|
|
17706
17718
|
json: Boolean(options.json),
|
|
@@ -17729,7 +17741,7 @@ Examples:
|
|
|
17729
17741
|
false
|
|
17730
17742
|
);
|
|
17731
17743
|
});
|
|
17732
|
-
|
|
17744
|
+
_chunkZ2T7XTNDjs.registerDeprecatedSearchCommand.call(void 0,
|
|
17733
17745
|
play,
|
|
17734
17746
|
(options) => options.all ? ["prebuilts", "custom"] : ["prebuilts"]
|
|
17735
17747
|
);
|
|
@@ -17770,9 +17782,9 @@ Examples:
|
|
|
17770
17782
|
"--json [fields]",
|
|
17771
17783
|
"JSON output; optionally select comma-separated dotted paths"
|
|
17772
17784
|
);
|
|
17773
|
-
|
|
17785
|
+
_chunkQMDG7FKAjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
17774
17786
|
async (target, options) => {
|
|
17775
|
-
const ownView = () => handlePlayDescribe(
|
|
17787
|
+
const ownView = () => handlePlayDescribe(_chunkRWT6N2SUjs.describeArgs.call(void 0, target, options));
|
|
17776
17788
|
const [flagText] = [options.json].filter(
|
|
17777
17789
|
(value) => typeof value === "string"
|
|
17778
17790
|
);
|
|
@@ -17783,7 +17795,7 @@ Examples:
|
|
|
17783
17795
|
process.exitCode = await ownView();
|
|
17784
17796
|
return;
|
|
17785
17797
|
}
|
|
17786
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
17798
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-TUW35JSY.js")));
|
|
17787
17799
|
process.exitCode = await describeAnything(
|
|
17788
17800
|
name,
|
|
17789
17801
|
{
|
|
@@ -17906,7 +17918,7 @@ Examples:
|
|
|
17906
17918
|
deepline plays deployments <deployment-id>
|
|
17907
17919
|
`
|
|
17908
17920
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
17909
|
-
async (id, options) => id ?
|
|
17921
|
+
async (id, options) => id ? _chunkIHWXC7UUjs.handleDeploymentGet.call(void 0, id, options) : _chunkIHWXC7UUjs.handleDeploymentsList.call(void 0, options)
|
|
17910
17922
|
);
|
|
17911
17923
|
addPublishHelp(
|
|
17912
17924
|
play.command("publish <target>").description(
|
|
@@ -17934,10 +17946,10 @@ Examples:
|
|
|
17934
17946
|
new (0, _commander.Option)(
|
|
17935
17947
|
"--outcome <outcome>",
|
|
17936
17948
|
"Run under this outcome. Refused (exit 3) when it asks before plays.set-live and no approval exists"
|
|
17937
|
-
).hideHelp(!
|
|
17949
|
+
).hideHelp(!_chunkAYCC5JASjs.cliFeatureEnabled.call(void 0, "outcomes"))
|
|
17938
17950
|
).addOption(
|
|
17939
17951
|
new (0, _commander.Option)("--as <agent>", "With --outcome: the agent acting").hideHelp(
|
|
17940
|
-
!
|
|
17952
|
+
!_chunkAYCC5JASjs.cliFeatureEnabled.call(void 0, "outcomes")
|
|
17941
17953
|
)
|
|
17942
17954
|
).option("--json", "Emit JSON output").action(async (target, options) => {
|
|
17943
17955
|
const guarded = options.outcome && !options.dryRun ? {
|
|
@@ -18089,14 +18101,14 @@ Examples:
|
|
|
18089
18101
|
const limit = Number(options.limit);
|
|
18090
18102
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
18091
18103
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
18092
|
-
const result = await new (0,
|
|
18104
|
+
const result = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().runs.rowHistory({
|
|
18093
18105
|
playName: options.play,
|
|
18094
18106
|
runId,
|
|
18095
18107
|
tableNamespace: options.dataset,
|
|
18096
18108
|
limit,
|
|
18097
18109
|
cursor: options.cursor
|
|
18098
18110
|
});
|
|
18099
|
-
|
|
18111
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, {
|
|
18100
18112
|
...result,
|
|
18101
18113
|
...result.nextCursor ? {
|
|
18102
18114
|
next: `deepline runs rows-history ${_chunkBVXIGOBZjs.shellQuote.call(void 0, runId)} --play ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkBVXIGOBZjs.shellQuote.call(void 0, result.nextCursor)} --json`
|
|
@@ -18174,7 +18186,7 @@ Examples:
|
|
|
18174
18186
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
18175
18187
|
).action(async (runId, options) => {
|
|
18176
18188
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
18177
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
18189
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-P7FBJVJA.js")));
|
|
18178
18190
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
18179
18191
|
receiptJson: options.json !== void 0
|
|
18180
18192
|
});
|
|
@@ -18182,7 +18194,7 @@ Examples:
|
|
|
18182
18194
|
}
|
|
18183
18195
|
process.exitCode = await handleRunGet([
|
|
18184
18196
|
runId,
|
|
18185
|
-
...
|
|
18197
|
+
..._chunkRWT6N2SUjs.jsonFieldArgs.call(void 0, options.json),
|
|
18186
18198
|
...options.web ? ["--web"] : [],
|
|
18187
18199
|
...options.webUrl ? ["--web-url"] : [],
|
|
18188
18200
|
...options.full ? ["--full"] : [],
|
|
@@ -18512,7 +18524,7 @@ Examples:
|
|
|
18512
18524
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
18513
18525
|
...options.wait ? ["--wait"] : [],
|
|
18514
18526
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
18515
|
-
...
|
|
18527
|
+
..._chunkRWT6N2SUjs.jsonFieldArgs.call(void 0, options.json)
|
|
18516
18528
|
]);
|
|
18517
18529
|
});
|
|
18518
18530
|
const share = play.command("share").description(
|
|
@@ -18678,10 +18690,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18678
18690
|
return 2;
|
|
18679
18691
|
}
|
|
18680
18692
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18681
|
-
const status = await new (0,
|
|
18693
|
+
const status = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().getSharePage(name);
|
|
18682
18694
|
const outputStatus = shareStatusForOutput(status);
|
|
18683
|
-
if (
|
|
18684
|
-
|
|
18695
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
18696
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, outputStatus);
|
|
18685
18697
|
return 0;
|
|
18686
18698
|
}
|
|
18687
18699
|
if (!outputStatus.share) {
|
|
@@ -18720,7 +18732,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18720
18732
|
return 2;
|
|
18721
18733
|
}
|
|
18722
18734
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18723
|
-
const client = new (0,
|
|
18735
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
18724
18736
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18725
18737
|
let resolvedVersion;
|
|
18726
18738
|
if (!revisionId) {
|
|
@@ -18751,8 +18763,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18751
18763
|
);
|
|
18752
18764
|
if (!hasCompleted) {
|
|
18753
18765
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18754
|
-
if (
|
|
18755
|
-
|
|
18766
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
18767
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, {
|
|
18756
18768
|
ok: false,
|
|
18757
18769
|
code: "NO_SUCCESSFUL_RUN",
|
|
18758
18770
|
message,
|
|
@@ -18776,8 +18788,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18776
18788
|
};
|
|
18777
18789
|
if (args.includes("--dry-run")) {
|
|
18778
18790
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
18779
|
-
if (
|
|
18780
|
-
|
|
18791
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
18792
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, plan);
|
|
18781
18793
|
} else {
|
|
18782
18794
|
console.log(
|
|
18783
18795
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -18787,8 +18799,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18787
18799
|
}
|
|
18788
18800
|
const status = await client.publishSharePage(name, request);
|
|
18789
18801
|
const outputStatus = shareStatusForOutput(status);
|
|
18790
|
-
if (
|
|
18791
|
-
|
|
18802
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
18803
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, outputStatus);
|
|
18792
18804
|
return 0;
|
|
18793
18805
|
}
|
|
18794
18806
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18819,9 +18831,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
18819
18831
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
18820
18832
|
...seoIndexing ? { seoIndexing } : {}
|
|
18821
18833
|
};
|
|
18822
|
-
const status = await new (0,
|
|
18823
|
-
if (
|
|
18824
|
-
|
|
18834
|
+
const status = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().updateSharePage(name, request);
|
|
18835
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
18836
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, status);
|
|
18825
18837
|
return 0;
|
|
18826
18838
|
}
|
|
18827
18839
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -18836,7 +18848,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18836
18848
|
return 2;
|
|
18837
18849
|
}
|
|
18838
18850
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18839
|
-
const client = new (0,
|
|
18851
|
+
const client = new (0, _chunkQZ2C5ARHjs.DeeplineClient)();
|
|
18840
18852
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18841
18853
|
const versionFlag = shareFlagValue(args, "--version");
|
|
18842
18854
|
if (!revisionId && versionFlag) {
|
|
@@ -18853,8 +18865,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18853
18865
|
revisionId ? { revisionId } : {}
|
|
18854
18866
|
);
|
|
18855
18867
|
const outputStatus = shareStatusForOutput(status);
|
|
18856
|
-
if (
|
|
18857
|
-
|
|
18868
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
18869
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, outputStatus);
|
|
18858
18870
|
return 0;
|
|
18859
18871
|
}
|
|
18860
18872
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18879,9 +18891,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
18879
18891
|
return 2;
|
|
18880
18892
|
}
|
|
18881
18893
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18882
|
-
const status = await new (0,
|
|
18883
|
-
if (
|
|
18884
|
-
|
|
18894
|
+
const status = await new (0, _chunkQZ2C5ARHjs.DeeplineClient)().unpublishSharePage(name);
|
|
18895
|
+
if (_chunkRWT6N2SUjs.argsWantJson.call(void 0, args)) {
|
|
18896
|
+
_chunkRWT6N2SUjs.printCompactJson.call(void 0, status);
|
|
18885
18897
|
return 0;
|
|
18886
18898
|
}
|
|
18887
18899
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -18962,4 +18974,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
18962
18974
|
|
|
18963
18975
|
|
|
18964
18976
|
|
|
18965
|
-
exports.PLAY_START_TRANSIENT_RETRY_DELAYS_MS = PLAY_START_TRANSIENT_RETRY_DELAYS_MS; exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.assertRunExportStatusIdentity = assertRunExportStatusIdentity; 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 =
|
|
18977
|
+
exports.PLAY_START_TRANSIENT_RETRY_DELAYS_MS = PLAY_START_TRANSIENT_RETRY_DELAYS_MS; exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.assertRunExportStatusIdentity = assertRunExportStatusIdentity; 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 = _chunkMOJ65E7Ljs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkMOJ65E7Ljs.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.startPlayRunWithTransientRetry = startPlayRunWithTransientRetry; exports.takeFromRunRerunArgs = takeFromRunRerunArgs; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
|