deepline 0.3.577 → 0.3.578
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/cli/{agents-SUJRATC2.mjs → agents-LRBANBZH.mjs} +10 -27
- package/dist/cli/{agents-ZIGK3FQ2.js → agents-MCU3ITQZ.js} +37 -54
- package/dist/cli/{auth-TRKPRZK6.mjs → auth-5BJKVYMQ.mjs} +5 -5
- package/dist/cli/auth-VSW3MTFO.js +44 -0
- package/dist/cli/{billing-WPQT3QRS.mjs → billing-EBBI4MVL.mjs} +9 -9
- package/dist/cli/{billing-6RAF4DQY.js → billing-NT57POHH.js} +102 -102
- package/dist/cli/{chunk-QXAPAHIG.js → chunk-24FGR73C.js} +13 -13
- package/dist/cli/{chunk-2NFDB6CL.js → chunk-25SSGQJJ.js} +2 -2
- package/dist/cli/{chunk-APOWCBO7.js → chunk-27HAQRGH.js} +23 -23
- package/dist/cli/{chunk-WP4Q5PTK.mjs → chunk-3GF33QJJ.mjs} +4 -4
- package/dist/cli/{chunk-X5ZE7K4J.js → chunk-3ZUKYLC6.js} +8 -8
- package/dist/cli/{chunk-MDP3CNDM.mjs → chunk-4CNHOBUO.mjs} +2 -2
- package/dist/cli/{chunk-LXM36EXW.mjs → chunk-4KNRCUKY.mjs} +11 -11
- package/dist/cli/{chunk-O35BHZLQ.mjs → chunk-4LMTY4RQ.mjs} +2 -2
- package/dist/cli/{chunk-ID5WQZ2H.mjs → chunk-4YSJOSBG.mjs} +1 -1
- package/dist/cli/{chunk-FRYLXDNP.js → chunk-5IMWXYVB.js} +53 -53
- package/dist/cli/{chunk-RVICQWXU.js → chunk-5LCV36BR.js} +20 -20
- package/dist/cli/{chunk-DA5C5WOI.mjs → chunk-6UFTWNC5.mjs} +2 -2
- package/dist/cli/{chunk-4ANO4DM5.mjs → chunk-7J473OJ5.mjs} +1 -1
- package/dist/cli/{chunk-RSZSKTRC.js → chunk-A7NKOXBV.js} +4 -4
- package/dist/cli/{chunk-LUQMTNFB.mjs → chunk-ALXYCC4K.mjs} +1 -1
- package/dist/cli/{chunk-ORLJIJVX.mjs → chunk-AZFSCPYK.mjs} +0 -11
- package/dist/cli/{chunk-CZF2LKIT.js → chunk-BPMA4S3O.js} +16 -16
- package/dist/cli/{chunk-GFWVBXAK.mjs → chunk-CFG3ZM7M.mjs} +2 -2
- package/dist/cli/{chunk-FHYNK7GL.mjs → chunk-CFLAGRWL.mjs} +1 -1
- package/dist/cli/{chunk-OBZB4J7B.js → chunk-CPNTDIJK.js} +1 -1
- package/dist/cli/{chunk-ZHJIDDYR.js → chunk-CS36W3RL.js} +26 -26
- package/dist/cli/{chunk-I44Y4MPK.mjs → chunk-CSPOWVWS.mjs} +1 -1
- package/dist/cli/{chunk-MTM6WNPP.mjs → chunk-DDJN4RR6.mjs} +4 -4
- package/dist/cli/{chunk-772IV64Y.js → chunk-G7PH2QVM.js} +5 -5
- package/dist/cli/{chunk-MVCKEPWF.mjs → chunk-H7DY5NQ3.mjs} +5 -5
- package/dist/cli/{chunk-FXN5WSTY.js → chunk-HGQT6EGK.js} +20 -20
- package/dist/cli/{chunk-NDMKFA6W.mjs → chunk-HKZN33F2.mjs} +3 -3
- package/dist/cli/{chunk-X7Y4T7CV.mjs → chunk-HZXF2HFF.mjs} +5 -5
- package/dist/cli/{chunk-CCGFSELM.mjs → chunk-IFWB4BYZ.mjs} +3 -3
- package/dist/cli/{chunk-ATW77ZBL.mjs → chunk-ITYSPUKD.mjs} +2 -2
- package/dist/cli/{chunk-MTHAVEQN.js → chunk-J7PCSLRY.js} +5 -5
- package/dist/cli/{chunk-Q3WDT3YA.mjs → chunk-JQPFICW3.mjs} +1 -1
- package/dist/cli/{chunk-APJ6YIYW.mjs → chunk-LYZPGP3P.mjs} +1 -1
- package/dist/cli/{chunk-EV47DV25.js → chunk-M3ITWEGS.js} +41 -41
- package/dist/cli/{chunk-KVDIN2YW.js → chunk-MXPCTF57.js} +0 -11
- package/dist/cli/{chunk-NRBIYZUG.js → chunk-NEH7NZFT.js} +10 -10
- package/dist/cli/{chunk-XQTJET2Y.mjs → chunk-NTHN7ODR.mjs} +1 -1
- package/dist/cli/{chunk-OQQDNJ2D.mjs → chunk-OAQYLTUN.mjs} +5 -5
- package/dist/cli/{chunk-MOWABWHT.js → chunk-P35YQAUC.js} +100 -100
- package/dist/cli/{chunk-U6Y4HX6J.mjs → chunk-PJXPHUAR.mjs} +3 -3
- package/dist/cli/{chunk-DJP7CJQC.js → chunk-PXMCPEE2.js} +3 -3
- package/dist/cli/{chunk-N6EU2FRF.mjs → chunk-QPOJLAFT.mjs} +2 -2
- package/dist/cli/{chunk-Y37JQZBP.js → chunk-RLPPLS6A.js} +6 -6
- package/dist/cli/{chunk-JWLV3XRF.js → chunk-RWDYULX2.js} +7 -7
- package/dist/cli/{chunk-425SUSDJ.mjs → chunk-T2CCLYHV.mjs} +5 -5
- package/dist/cli/{chunk-NVJGVNEN.js → chunk-UKSOIH2P.js} +5 -5
- package/dist/cli/{chunk-H6NF5SNY.mjs → chunk-VMCJKGZS.mjs} +2 -2
- package/dist/cli/{chunk-ITK5TGQ7.js → chunk-VVZ7JZMQ.js} +15 -15
- package/dist/cli/{chunk-EKZ6JD6K.js → chunk-W47SXEWQ.js} +9 -9
- package/dist/cli/{chunk-CWHXE6HJ.mjs → chunk-W66GXHYR.mjs} +1 -1
- package/dist/cli/{chunk-JHQ7FORY.js → chunk-XBO4ERH6.js} +3 -3
- package/dist/cli/{chunk-NMSDMXYS.js → chunk-XE66BGLB.js} +2 -2
- package/dist/cli/{chunk-EJN43WGD.js → chunk-XX7TZM4N.js} +48 -48
- package/dist/cli/{chunk-V5SF5CJ7.js → chunk-Y2TK7OXN.js} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-6CGXMTFQ.mjs → concurrent-runs-help-2MHLIUC6.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-ATT2GVTQ.js +22 -0
- package/dist/cli/{csv-L7P6PC6I.mjs → csv-J6SRBMOT.mjs} +4 -4
- package/dist/cli/{csv-7UZT2LGE.js → csv-RYYDAC76.js} +13 -13
- package/dist/cli/{db-7KETOIZY.js → db-5QLH6QK5.js} +27 -27
- package/dist/cli/{db-4OOEC5KV.mjs → db-WK226TM7.mjs} +6 -6
- package/dist/cli/describe-Q27SRQWM.js +50 -0
- package/dist/cli/{describe-M6HEFS46.mjs → describe-UBSCFPH5.mjs} +18 -18
- package/dist/cli/{executions-UIR6RQFM.js → executions-AGV5V7SD.js} +8 -8
- package/dist/cli/{executions-U27R2LY4.mjs → executions-XF5BNCFS.mjs} +6 -6
- package/dist/cli/{feedback-CQ5FUE4T.js → feedback-3RDEZE2M.js} +14 -14
- package/dist/cli/{feedback-UUUISTGQ.mjs → feedback-LT3PDK72.mjs} +6 -6
- package/dist/cli/{git-DTILSRIQ.mjs → git-7VBTCCBV.mjs} +5 -5
- package/dist/cli/git-BBTP3H7J.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-NNACG3HD.mjs → integrations-E7QRWMKZ.mjs} +7 -7
- package/dist/cli/{integrations-ABBLLEJH.js → integrations-JP732FQB.js} +29 -29
- package/dist/cli/{legacy-noops-KQW7AIYU.mjs → legacy-noops-UFNQBPIT.mjs} +6 -6
- package/dist/cli/{legacy-noops-3JLS5OD7.js → legacy-noops-UTL4W5WE.js} +9 -9
- package/dist/cli/{mcp-JPBFKR26.js → mcp-5X4XFB4V.js} +24 -24
- package/dist/cli/{mcp-7NHGPYZH.mjs → mcp-YHETA3AU.mjs} +4 -4
- package/dist/cli/{monitors-J6HK5KCN.js → monitors-AN6KH4XY.js} +100 -100
- package/dist/cli/{monitors-JOE2DALW.mjs → monitors-WFVZ42OQ.mjs} +7 -7
- package/dist/cli/{org-WFZFQIXQ.js → org-CN3XJZLA.js} +121 -121
- package/dist/cli/{org-VZZ4LN4O.mjs → org-OMDV7WDF.mjs} +6 -6
- package/dist/cli/{outcomes-RZWL47BJ.js → outcomes-7HCZ6K3Q.js} +14 -14
- package/dist/cli/{outcomes-H2WEZYNT.mjs → outcomes-I4ZTG5ND.mjs} +6 -6
- package/dist/cli/{play-2ZEBUF5T.js → play-45VXZ57A.js} +336 -336
- package/dist/cli/{play-KMWA7GVN.mjs → play-TSNBSHGA.mjs} +19 -19
- package/dist/cli/{providers-2BIA3OWA.mjs → providers-4TB56ZLK.mjs} +6 -6
- package/dist/cli/{providers-57AZWFSW.js → providers-RB3TT7AE.js} +9 -9
- package/dist/cli/{quickstart-NSDM2RXV.mjs → quickstart-XHZ3PG5I.mjs} +4 -4
- package/dist/cli/{quickstart-EYJFERQO.js → quickstart-ZNDM6VUD.js} +6 -6
- package/dist/cli/{run-X6H5SCEE.mjs → run-7PY4G6GB.mjs} +23 -23
- package/dist/cli/{run-BW62DZGQ.js → run-XNEJGAKV.js} +44 -44
- package/dist/cli/{search-2VN74P5N.mjs → search-BG7KCIOG.mjs} +7 -7
- package/dist/cli/search-ZBU5GW4W.js +32 -0
- package/dist/cli/{search-output-SFWQVBYU.js → search-output-3ZBNTHGO.js} +6 -6
- package/dist/cli/{search-output-VN7XOZEQ.mjs → search-output-TWKKP2BE.mjs} +4 -4
- package/dist/cli/{secrets-4M26N436.mjs → secrets-AZZCE7E3.mjs} +6 -6
- package/dist/cli/{secrets-OIPKG2H7.js → secrets-FNR6MX6A.js} +15 -15
- package/dist/cli/sessions-GCY62GAW.js +23 -0
- package/dist/cli/{sessions-SYFH23L3.mjs → sessions-ZAMKN3AF.mjs} +6 -6
- package/dist/cli/{settings-5NB4HZYL.js → settings-QGASFWV3.js} +85 -85
- package/dist/cli/{settings-4HPF3T4P.mjs → settings-WKWOOOI2.mjs} +12 -12
- package/dist/cli/{setup-JV3F5C7P.js → setup-KUZDCR3F.js} +49 -49
- package/dist/cli/{setup-CI74F6CL.mjs → setup-U36W42LE.mjs} +9 -9
- package/dist/cli/{skills-76CM4GHO.mjs → skills-25CSZQIK.mjs} +7 -7
- package/dist/cli/skills-43DHMLRW.js +37 -0
- package/dist/cli/{tools-SVGLDWOC.mjs → tools-4NZQ22AA.mjs} +17 -17
- package/dist/cli/tools-5BGKNMFU.js +57 -0
- package/dist/cli/{update-KPMDOZRX.mjs → update-CJYP36TG.mjs} +9 -9
- package/dist/cli/update-CUO2MTB6.js +37 -0
- package/dist/cli/{views-R37NWN6J.js → views-76UIPWJD.js} +21 -21
- package/dist/cli/{views-KW54SAES.mjs → views-GYGE7FSV.mjs} +6 -6
- package/dist/cli/{workflow-3MIRQV4Q.mjs → workflow-LZSWALZS.mjs} +7 -7
- package/dist/cli/{workflow-BKRKUNYS.js → workflow-NCVXBATM.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +116 -116
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-A5U6GVCF.js +0 -44
- package/dist/cli/concurrent-runs-help-VJDPVGXM.js +0 -22
- package/dist/cli/describe-RLWJYZIR.js +0 -50
- package/dist/cli/git-ZGDD3BVX.js +0 -26
- package/dist/cli/search-HYRDZVPQ.js +0 -32
- package/dist/cli/sessions-5P2KZOQE.js +0 -23
- package/dist/cli/skills-PJ5EL32L.js +0 -37
- package/dist/cli/tools-Y5ID2SPK.js +0 -57
- package/dist/cli/update-FSUMCMNZ.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 _chunkCS36W3RLjs = require('./chunk-CS36W3RL.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ var _chunkZHJIDDYRjs = require('./chunk-ZHJIDDYR.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkW47SXEWQjs = require('./chunk-W47SXEWQ.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -22,10 +22,10 @@ var _chunkEKZ6JD6Kjs = require('./chunk-EKZ6JD6K.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkRWDYULX2js = require('./chunk-RWDYULX2.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkNEH7NZFTjs = require('./chunk-NEH7NZFT.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 _chunkJ7PCSLRYjs = require('./chunk-J7PCSLRY.js');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkUKSOIH2Pjs = require('./chunk-UKSOIH2P.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -67,7 +67,7 @@ var _chunkNVJGVNENjs = require('./chunk-NVJGVNEN.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunk3ZUKYLC6js = require('./chunk-3ZUKYLC6.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 _chunkRLPPLS6Ajs = require('./chunk-RLPPLS6A.js');
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
var
|
|
100
|
-
require('./chunk-
|
|
99
|
+
var _chunk25SSGQJJjs = require('./chunk-25SSGQJJ.js');
|
|
100
|
+
require('./chunk-XX7TZM4N.js');
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
var
|
|
104
|
+
var _chunkPXMCPEE2js = require('./chunk-PXMCPEE2.js');
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
var _chunkE2G2DNABjs = require('./chunk-E2G2DNAB.js');
|
|
@@ -122,14 +122,14 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
var
|
|
125
|
+
var _chunkHGQT6EGKjs = require('./chunk-HGQT6EGK.js');
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
var
|
|
129
|
+
var _chunkXBO4ERH6js = require('./chunk-XBO4ERH6.js');
|
|
130
130
|
|
|
131
131
|
|
|
132
|
-
var
|
|
132
|
+
var _chunkA7NKOXBVjs = require('./chunk-A7NKOXBV.js');
|
|
133
133
|
require('./chunk-6VLFQZK6.js');
|
|
134
134
|
require('./chunk-XNYIZMNQ.js');
|
|
135
135
|
|
|
@@ -139,7 +139,7 @@ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
|
139
139
|
|
|
140
140
|
|
|
141
141
|
var _chunkCFJFUVX2js = require('./chunk-CFJFUVX2.js');
|
|
142
|
-
require('./chunk-
|
|
142
|
+
require('./chunk-CPNTDIJK.js');
|
|
143
143
|
require('./chunk-OG64RBAC.js');
|
|
144
144
|
|
|
145
145
|
|
|
@@ -2121,7 +2121,7 @@ function resolveField(key, command) {
|
|
|
2121
2121
|
function printSettings(result, json, name) {
|
|
2122
2122
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2123
2123
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2124
|
-
|
|
2124
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
2125
2125
|
{
|
|
2126
2126
|
...result,
|
|
2127
2127
|
settings: Object.fromEntries(
|
|
@@ -2165,7 +2165,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2165
2165
|
valueSyntax: field.cli.valueSyntax,
|
|
2166
2166
|
examples: field.cli.examples
|
|
2167
2167
|
}));
|
|
2168
|
-
|
|
2168
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
2169
2169
|
{
|
|
2170
2170
|
fields: descriptions,
|
|
2171
2171
|
render: {
|
|
@@ -2190,7 +2190,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2190
2190
|
async (options, command) => {
|
|
2191
2191
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2192
2192
|
printSettings(
|
|
2193
|
-
await new (0,
|
|
2193
|
+
await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2194
2194
|
options.json,
|
|
2195
2195
|
options.name
|
|
2196
2196
|
);
|
|
@@ -2221,7 +2221,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2221
2221
|
);
|
|
2222
2222
|
}
|
|
2223
2223
|
if (options.dryRun) {
|
|
2224
|
-
|
|
2224
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
2225
2225
|
{
|
|
2226
2226
|
dryRun: true,
|
|
2227
2227
|
play,
|
|
@@ -2242,7 +2242,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2242
2242
|
return;
|
|
2243
2243
|
}
|
|
2244
2244
|
printSettings(
|
|
2245
|
-
await new (0,
|
|
2245
|
+
await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2246
2246
|
options.json
|
|
2247
2247
|
);
|
|
2248
2248
|
};
|
|
@@ -2268,13 +2268,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2268
2268
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2269
2269
|
{ exitCode: 2 }
|
|
2270
2270
|
);
|
|
2271
|
-
const page = await new (0,
|
|
2271
|
+
const page = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2272
2272
|
root: options.root,
|
|
2273
2273
|
limit,
|
|
2274
2274
|
cursor: options.cursor
|
|
2275
2275
|
});
|
|
2276
2276
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2277
|
-
|
|
2277
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
2278
2278
|
{
|
|
2279
2279
|
...page,
|
|
2280
2280
|
nextCommand,
|
|
@@ -2325,7 +2325,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2325
2325
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2326
2326
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2327
2327
|
};
|
|
2328
|
-
const client = new (0,
|
|
2328
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
2329
2329
|
const paths = [];
|
|
2330
2330
|
let cursor;
|
|
2331
2331
|
do {
|
|
@@ -2387,7 +2387,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2387
2387
|
moved.push(move.playName);
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
|
-
|
|
2390
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
2391
2391
|
{
|
|
2392
2392
|
dryRun: Boolean(options.dryRun),
|
|
2393
2393
|
from: options.from,
|
|
@@ -2532,7 +2532,7 @@ function triggerLines(view) {
|
|
|
2532
2532
|
return lines;
|
|
2533
2533
|
}
|
|
2534
2534
|
function printView(view, json) {
|
|
2535
|
-
|
|
2535
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
2536
2536
|
{
|
|
2537
2537
|
...view,
|
|
2538
2538
|
render: {
|
|
@@ -2545,7 +2545,7 @@ function printView(view, json) {
|
|
|
2545
2545
|
);
|
|
2546
2546
|
}
|
|
2547
2547
|
function printResult(result, json) {
|
|
2548
|
-
|
|
2548
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
2549
2549
|
{
|
|
2550
2550
|
...result,
|
|
2551
2551
|
render: {
|
|
@@ -2575,7 +2575,7 @@ async function mutate(command, options, build) {
|
|
|
2575
2575
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2576
2576
|
}
|
|
2577
2577
|
if (options.dryRun) {
|
|
2578
|
-
|
|
2578
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
2579
2579
|
{
|
|
2580
2580
|
dryRun: true,
|
|
2581
2581
|
play: options.play,
|
|
@@ -2594,7 +2594,7 @@ async function mutate(command, options, build) {
|
|
|
2594
2594
|
return;
|
|
2595
2595
|
}
|
|
2596
2596
|
printResult(
|
|
2597
|
-
await new (0,
|
|
2597
|
+
await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2598
2598
|
options.json
|
|
2599
2599
|
);
|
|
2600
2600
|
}
|
|
@@ -2627,7 +2627,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2627
2627
|
}).addHelpText("after", help2);
|
|
2628
2628
|
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) => {
|
|
2629
2629
|
printView(
|
|
2630
|
-
await new (0,
|
|
2630
|
+
await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2631
2631
|
options.json
|
|
2632
2632
|
);
|
|
2633
2633
|
});
|
|
@@ -2680,7 +2680,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2680
2680
|
if (options.auth === void 0) {
|
|
2681
2681
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2682
2682
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2683
|
-
const current = await new (0,
|
|
2683
|
+
const current = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2684
2684
|
options.play
|
|
2685
2685
|
);
|
|
2686
2686
|
return {
|
|
@@ -2757,7 +2757,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2757
2757
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2758
2758
|
"runtime.event": "Other event."
|
|
2759
2759
|
};
|
|
2760
|
-
var RUN_LOGS_KIND_HELP =
|
|
2760
|
+
var RUN_LOGS_KIND_HELP = _chunk3ZUKYLC6js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2761
2761
|
kind,
|
|
2762
2762
|
description: KIND_DESCRIPTIONS[kind]
|
|
2763
2763
|
}));
|
|
@@ -2894,9 +2894,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2894
2894
|
const args = program.args;
|
|
2895
2895
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2896
2896
|
error.exitCode = 2;
|
|
2897
|
-
if (
|
|
2898
|
-
|
|
2899
|
-
Object.assign(new (0,
|
|
2897
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2898
|
+
_chunkHGQT6EGKjs.printJsonError.call(void 0,
|
|
2899
|
+
Object.assign(new (0, _chunk3ZUKYLC6js.RunEventQueryInputError)(error.message), {
|
|
2900
2900
|
exitCode: 2,
|
|
2901
2901
|
retryable: false
|
|
2902
2902
|
})
|
|
@@ -2940,14 +2940,14 @@ function parseQuery(args, resource) {
|
|
|
2940
2940
|
if (VALUE_FLAGS.has(flag)) {
|
|
2941
2941
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2942
2942
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2943
|
-
throw new (0,
|
|
2943
|
+
throw new (0, _chunk3ZUKYLC6js.RunEventQueryInputError)(
|
|
2944
2944
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2945
2945
|
);
|
|
2946
2946
|
}
|
|
2947
2947
|
if (flag === "--sum") sums.push(value);
|
|
2948
2948
|
else {
|
|
2949
2949
|
if (values[flag] !== void 0) {
|
|
2950
|
-
throw new (0,
|
|
2950
|
+
throw new (0, _chunk3ZUKYLC6js.RunEventQueryInputError)(
|
|
2951
2951
|
`${flag} may only be supplied once.`
|
|
2952
2952
|
);
|
|
2953
2953
|
}
|
|
@@ -2961,12 +2961,12 @@ function parseQuery(args, resource) {
|
|
|
2961
2961
|
}
|
|
2962
2962
|
if (arg.startsWith("-")) {
|
|
2963
2963
|
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.";
|
|
2964
|
-
throw new (0,
|
|
2964
|
+
throw new (0, _chunk3ZUKYLC6js.RunEventQueryInputError)(
|
|
2965
2965
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2966
2966
|
);
|
|
2967
2967
|
}
|
|
2968
2968
|
if (runId !== void 0) {
|
|
2969
|
-
throw new (0,
|
|
2969
|
+
throw new (0, _chunk3ZUKYLC6js.RunEventQueryInputError)(
|
|
2970
2970
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2971
2971
|
);
|
|
2972
2972
|
}
|
|
@@ -2974,7 +2974,7 @@ function parseQuery(args, resource) {
|
|
|
2974
2974
|
}
|
|
2975
2975
|
if (switches.has("--fields")) {
|
|
2976
2976
|
if (runId !== void 0) {
|
|
2977
|
-
throw new (0,
|
|
2977
|
+
throw new (0, _chunk3ZUKYLC6js.RunEventQueryInputError)(
|
|
2978
2978
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2979
2979
|
);
|
|
2980
2980
|
}
|
|
@@ -2987,18 +2987,18 @@ function parseQuery(args, resource) {
|
|
|
2987
2987
|
)
|
|
2988
2988
|
];
|
|
2989
2989
|
if (incompatible.length) {
|
|
2990
|
-
throw new (0,
|
|
2990
|
+
throw new (0, _chunk3ZUKYLC6js.RunEventQueryInputError)(
|
|
2991
2991
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2992
2992
|
);
|
|
2993
2993
|
}
|
|
2994
2994
|
}
|
|
2995
2995
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2996
|
-
throw new (0,
|
|
2996
|
+
throw new (0, _chunk3ZUKYLC6js.RunEventQueryInputError)(
|
|
2997
2997
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2998
2998
|
);
|
|
2999
2999
|
}
|
|
3000
3000
|
if (sums.length && switches.has("--count")) {
|
|
3001
|
-
throw new (0,
|
|
3001
|
+
throw new (0, _chunk3ZUKYLC6js.RunEventQueryInputError)(
|
|
3002
3002
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
3003
3003
|
);
|
|
3004
3004
|
}
|
|
@@ -3006,7 +3006,7 @@ function parseQuery(args, resource) {
|
|
|
3006
3006
|
if (operation === "count") {
|
|
3007
3007
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
3008
3008
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
3009
|
-
throw new (0,
|
|
3009
|
+
throw new (0, _chunk3ZUKYLC6js.RunEventQueryInputError)(
|
|
3010
3010
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
3011
3011
|
);
|
|
3012
3012
|
}
|
|
@@ -3041,16 +3041,16 @@ function parseQuery(args, resource) {
|
|
|
3041
3041
|
];
|
|
3042
3042
|
}
|
|
3043
3043
|
}
|
|
3044
|
-
const request =
|
|
3044
|
+
const request = _chunk3ZUKYLC6js.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3045
3045
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3046
3046
|
const backend = values["--runtime-backend"];
|
|
3047
3047
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3048
|
-
throw new (0,
|
|
3048
|
+
throw new (0, _chunk3ZUKYLC6js.RunEventQueryInputError)(
|
|
3049
3049
|
"--runtime-backend must be daytona or modal."
|
|
3050
3050
|
);
|
|
3051
3051
|
}
|
|
3052
3052
|
if (backend && !namespace) {
|
|
3053
|
-
throw new (0,
|
|
3053
|
+
throw new (0, _chunk3ZUKYLC6js.RunEventQueryInputError)(
|
|
3054
3054
|
"--runtime-backend requires --runtime-namespace."
|
|
3055
3055
|
);
|
|
3056
3056
|
}
|
|
@@ -3097,12 +3097,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3097
3097
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3098
3098
|
const record5 = failure;
|
|
3099
3099
|
const status = record5.statusCode;
|
|
3100
|
-
const exitCode = error instanceof
|
|
3100
|
+
const exitCode = error instanceof _chunk3ZUKYLC6js.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;
|
|
3101
3101
|
const diagnostic = Object.assign(failure, {
|
|
3102
3102
|
exitCode,
|
|
3103
3103
|
retryable: exitCode === 5
|
|
3104
3104
|
});
|
|
3105
|
-
if (
|
|
3105
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) _chunkHGQT6EGKjs.printJsonError.call(void 0, diagnostic);
|
|
3106
3106
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3107
3107
|
return exitCode;
|
|
3108
3108
|
}
|
|
@@ -3117,7 +3117,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3117
3117
|
...criteria
|
|
3118
3118
|
} = request;
|
|
3119
3119
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3120
|
-
const client = new (0,
|
|
3120
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
3121
3121
|
let result;
|
|
3122
3122
|
if (request.operation === "fields") {
|
|
3123
3123
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3183,13 +3183,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3183
3183
|
lines.push(`Next page: ${nextPage}`);
|
|
3184
3184
|
}
|
|
3185
3185
|
}
|
|
3186
|
-
|
|
3186
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
3187
3187
|
{
|
|
3188
3188
|
...result,
|
|
3189
3189
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3190
3190
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3191
3191
|
},
|
|
3192
|
-
{ json:
|
|
3192
|
+
{ json: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3193
3193
|
` }
|
|
3194
3194
|
);
|
|
3195
3195
|
return 0;
|
|
@@ -4936,7 +4936,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4936
4936
|
...text3.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4937
4937
|
);
|
|
4938
4938
|
}
|
|
4939
|
-
const response = await new (0,
|
|
4939
|
+
const response = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4940
4940
|
keys
|
|
4941
4941
|
});
|
|
4942
4942
|
const failed = response.receipts.filter(
|
|
@@ -4948,7 +4948,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4948
4948
|
JSON.stringify(response, null, 2) + "\n",
|
|
4949
4949
|
{ flag: "wx", mode: 384 }
|
|
4950
4950
|
);
|
|
4951
|
-
|
|
4951
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
4952
4952
|
{
|
|
4953
4953
|
runId,
|
|
4954
4954
|
out: options.out,
|
|
@@ -4958,7 +4958,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4958
4958
|
{ json: true }
|
|
4959
4959
|
);
|
|
4960
4960
|
} else {
|
|
4961
|
-
|
|
4961
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4962
4962
|
}
|
|
4963
4963
|
if (failed)
|
|
4964
4964
|
process.exitCode = response.receipts.some(
|
|
@@ -4997,7 +4997,7 @@ includes nextCommand when another page is available.
|
|
|
4997
4997
|
{ exitCode: 2 }
|
|
4998
4998
|
);
|
|
4999
4999
|
}
|
|
5000
|
-
const page = await new (0,
|
|
5000
|
+
const page = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().runs.children(parentRunId, {
|
|
5001
5001
|
launchKey: options.launchKey,
|
|
5002
5002
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
5003
5003
|
limit
|
|
@@ -5012,7 +5012,7 @@ includes nextCommand when another page is available.
|
|
|
5012
5012
|
"--limit",
|
|
5013
5013
|
String(limit)
|
|
5014
5014
|
].join(" ") : null;
|
|
5015
|
-
|
|
5015
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
5016
5016
|
{
|
|
5017
5017
|
parentRunId,
|
|
5018
5018
|
launchKey: options.launchKey,
|
|
@@ -5048,7 +5048,7 @@ async function handleRunsHistory(options) {
|
|
|
5048
5048
|
throw new Error("--limit must be a positive integer.");
|
|
5049
5049
|
}
|
|
5050
5050
|
}
|
|
5051
|
-
const page = await new (0,
|
|
5051
|
+
const page = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().runs.history({
|
|
5052
5052
|
cursor: options.cursor,
|
|
5053
5053
|
orgId: options.org,
|
|
5054
5054
|
search: options.search,
|
|
@@ -5064,7 +5064,7 @@ async function handleRunsHistory(options) {
|
|
|
5064
5064
|
);
|
|
5065
5065
|
}
|
|
5066
5066
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
5067
|
-
|
|
5067
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
5068
5068
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
5069
5069
|
options.json ? { json: true } : {}
|
|
5070
5070
|
);
|
|
@@ -5114,12 +5114,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
5114
5114
|
}
|
|
5115
5115
|
}
|
|
5116
5116
|
if (options.notice) console.error(options.notice);
|
|
5117
|
-
const result = await new (0,
|
|
5117
|
+
const result = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().runs.rerun(runId, {
|
|
5118
5118
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
5119
5119
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
5120
5120
|
});
|
|
5121
|
-
if (
|
|
5122
|
-
|
|
5121
|
+
if (_chunkHGQT6EGKjs.shouldEmitJson.call(void 0, options.json)) {
|
|
5122
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
5123
5123
|
} else if (result.rateLimited) {
|
|
5124
5124
|
console.log(`
|
|
5125
5125
|
${result.rateLimited.message}`);
|
|
@@ -5143,7 +5143,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
5143
5143
|
// src/cli/operations/runs-resume.ts
|
|
5144
5144
|
async function runRunsResumeCommand(runId) {
|
|
5145
5145
|
try {
|
|
5146
|
-
const result = await new (0,
|
|
5146
|
+
const result = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().runs.resume(runId);
|
|
5147
5147
|
if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
|
|
5148
5148
|
throw new Error(
|
|
5149
5149
|
"Invalid resume receipt: expected the requested run and a new positive epoch."
|
|
@@ -5985,13 +5985,13 @@ var RunDataset = class _RunDataset {
|
|
|
5985
5985
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5986
5986
|
_fs.writeFileSync.call(void 0,
|
|
5987
5987
|
absolutePath,
|
|
5988
|
-
`${JSON.stringify(
|
|
5988
|
+
`${JSON.stringify(_chunkRWDYULX2js.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5989
5989
|
`,
|
|
5990
5990
|
"utf-8"
|
|
5991
5991
|
);
|
|
5992
5992
|
return absolutePath;
|
|
5993
5993
|
}
|
|
5994
|
-
return
|
|
5994
|
+
return _chunkRWDYULX2js.writeRunDatasetCsv.call(void 0, {
|
|
5995
5995
|
rows: this.rows,
|
|
5996
5996
|
columns: this.#info.columns,
|
|
5997
5997
|
outPath
|
|
@@ -7474,7 +7474,7 @@ function renderOutcome(outcome) {
|
|
|
7474
7474
|
function printResult2(input) {
|
|
7475
7475
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
7476
7476
|
if (failed) process.exitCode = 1;
|
|
7477
|
-
|
|
7477
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
7478
7478
|
{
|
|
7479
7479
|
deployment: { ...input.deployment, status: input.status },
|
|
7480
7480
|
plays: input.outcomes,
|
|
@@ -7499,7 +7499,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
7499
7499
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
7500
7500
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
7501
7501
|
});
|
|
7502
|
-
const { http, config } =
|
|
7502
|
+
const { http, config } = _chunkHGQT6EGKjs.getAuthedHttpClient.call(void 0, );
|
|
7503
7503
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
7504
7504
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
7505
7505
|
deliveryId,
|
|
@@ -7526,7 +7526,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
7526
7526
|
},
|
|
7527
7527
|
{
|
|
7528
7528
|
bundle: bundleDeployPlayFile,
|
|
7529
|
-
fetchImpl:
|
|
7529
|
+
fetchImpl: _chunkA7NKOXBVjs.fetchWithDeploymentProtection,
|
|
7530
7530
|
// The plays are already here: "opening" the source is naming it.
|
|
7531
7531
|
openSource: async () => ({
|
|
7532
7532
|
open: async () => ({ repoRoot: root })
|
|
@@ -7653,7 +7653,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
7653
7653
|
// src/cli/renderers/local-play-execution.ts
|
|
7654
7654
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7655
7655
|
if (options.dryRun) {
|
|
7656
|
-
|
|
7656
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7657
7657
|
return;
|
|
7658
7658
|
}
|
|
7659
7659
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7825,7 +7825,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7825
7825
|
const startedAt = Date.now();
|
|
7826
7826
|
try {
|
|
7827
7827
|
const result = run();
|
|
7828
|
-
|
|
7828
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
7829
7829
|
phase,
|
|
7830
7830
|
ms: Date.now() - startedAt,
|
|
7831
7831
|
ok: true,
|
|
@@ -7833,7 +7833,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7833
7833
|
});
|
|
7834
7834
|
return result;
|
|
7835
7835
|
} catch (error) {
|
|
7836
|
-
|
|
7836
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
7837
7837
|
phase,
|
|
7838
7838
|
ms: Date.now() - startedAt,
|
|
7839
7839
|
ok: false,
|
|
@@ -8646,7 +8646,7 @@ function playStatusErrorText(status) {
|
|
|
8646
8646
|
function isRetryablePendingStartFailure(status) {
|
|
8647
8647
|
if (status.status !== "failed") return false;
|
|
8648
8648
|
if (status.runId && status.runId !== "pending") return false;
|
|
8649
|
-
return
|
|
8649
|
+
return _chunk3ZUKYLC6js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8650
8650
|
}
|
|
8651
8651
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
8652
8652
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -8707,7 +8707,7 @@ async function startPlayRunWithTransientRetry(input) {
|
|
|
8707
8707
|
`[play start] response was ambiguous; retrying the same caller intent (${reason})`
|
|
8708
8708
|
);
|
|
8709
8709
|
}
|
|
8710
|
-
|
|
8710
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
8711
8711
|
phase: "cli.play_start_json_retry",
|
|
8712
8712
|
ms: 0,
|
|
8713
8713
|
ok: true,
|
|
@@ -8765,13 +8765,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkLFQJW4S2js.Deep
|
|
|
8765
8765
|
}, _class);
|
|
8766
8766
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8767
8767
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8768
|
-
if (!
|
|
8768
|
+
if (!_chunk3ZUKYLC6js.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8769
8769
|
return false;
|
|
8770
8770
|
}
|
|
8771
|
-
if (
|
|
8771
|
+
if (_chunk3ZUKYLC6js.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8772
8772
|
return true;
|
|
8773
8773
|
}
|
|
8774
|
-
return state.verbose === true &&
|
|
8774
|
+
return state.verbose === true && _chunk3ZUKYLC6js.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8775
8775
|
}
|
|
8776
8776
|
function getEventPayload(event) {
|
|
8777
8777
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9281,7 +9281,7 @@ function resolvePlayRunUrl(input) {
|
|
|
9281
9281
|
}
|
|
9282
9282
|
function openPlayDashboard(url, open2) {
|
|
9283
9283
|
if (open2 && url) {
|
|
9284
|
-
|
|
9284
|
+
_chunkHGQT6EGKjs.openInBrowser.call(void 0, url);
|
|
9285
9285
|
}
|
|
9286
9286
|
}
|
|
9287
9287
|
function printPlayLogLines(input) {
|
|
@@ -9362,7 +9362,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9362
9362
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
9363
9363
|
});
|
|
9364
9364
|
} catch (error) {
|
|
9365
|
-
if (
|
|
9365
|
+
if (_chunk3ZUKYLC6js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9366
9366
|
return null;
|
|
9367
9367
|
}
|
|
9368
9368
|
throw error;
|
|
@@ -9443,9 +9443,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9443
9443
|
signal: controller.signal,
|
|
9444
9444
|
deferLogs: !input.emitLogs,
|
|
9445
9445
|
omitTerminalLogs: !input.emitLogs,
|
|
9446
|
-
...
|
|
9446
|
+
..._chunk25SSGQJJjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
9447
9447
|
onPoll: (observation) => {
|
|
9448
|
-
|
|
9448
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
9449
9449
|
phase: "play_watch_poll",
|
|
9450
9450
|
workflowId: input.workflowId,
|
|
9451
9451
|
ms: observation.durationMs,
|
|
@@ -9459,7 +9459,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9459
9459
|
full: input.fullJson,
|
|
9460
9460
|
billing: false,
|
|
9461
9461
|
onStatus: async (status) => {
|
|
9462
|
-
|
|
9462
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
9463
9463
|
phase: "play_watch_terminal_status",
|
|
9464
9464
|
workflowId: input.workflowId,
|
|
9465
9465
|
full: input.fullJson === true
|
|
@@ -9548,7 +9548,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9548
9548
|
signal: controller.signal,
|
|
9549
9549
|
cliAdmission: useCliAdmission
|
|
9550
9550
|
});
|
|
9551
|
-
|
|
9551
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
9552
9552
|
phase: "cli.play_start_admission_attempt",
|
|
9553
9553
|
ms: Date.now() - postStartedAt,
|
|
9554
9554
|
ok: true,
|
|
@@ -9560,7 +9560,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9560
9560
|
});
|
|
9561
9561
|
break;
|
|
9562
9562
|
} catch (error) {
|
|
9563
|
-
|
|
9563
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
9564
9564
|
phase: "cli.play_start_admission_attempt",
|
|
9565
9565
|
ms: Date.now() - postStartedAt,
|
|
9566
9566
|
ok: false,
|
|
@@ -9611,7 +9611,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9611
9611
|
prepared.workflowId
|
|
9612
9612
|
);
|
|
9613
9613
|
}
|
|
9614
|
-
await
|
|
9614
|
+
await _chunkRLPPLS6Ajs.checkPlayRunCompatibility.call(void 0,
|
|
9615
9615
|
input.client.baseUrl,
|
|
9616
9616
|
input.maintenancePolicy,
|
|
9617
9617
|
controller.signal
|
|
@@ -9630,7 +9630,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9630
9630
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
9631
9631
|
);
|
|
9632
9632
|
}
|
|
9633
|
-
|
|
9633
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
9634
9634
|
phase: "cli.play_start_json_retry",
|
|
9635
9635
|
ms: 0,
|
|
9636
9636
|
ok: true,
|
|
@@ -9691,7 +9691,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9691
9691
|
const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => ( _chunkZO65VJRJjs.buildPlayDashboardUrl.call(void 0,
|
|
9692
9692
|
input.client.baseUrl,
|
|
9693
9693
|
input.playName,
|
|
9694
|
-
|
|
9694
|
+
_chunkXBO4ERH6js.resolveCliDashboardOrgId.call(void 0, input.client.baseUrl)
|
|
9695
9695
|
)));
|
|
9696
9696
|
const rateLimited = _nullishCoalesce(started.rateLimited, () => ( null));
|
|
9697
9697
|
if (!input.jsonOutput) {
|
|
@@ -9714,7 +9714,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9714
9714
|
_nullishCoalesce(input.open, () => ( false))
|
|
9715
9715
|
);
|
|
9716
9716
|
input.progress.phase("running");
|
|
9717
|
-
|
|
9717
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
9718
9718
|
phase: "cli.play_start_admitted",
|
|
9719
9719
|
ms: Date.now() - startedAt,
|
|
9720
9720
|
ok: true,
|
|
@@ -9732,7 +9732,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9732
9732
|
startedAt,
|
|
9733
9733
|
waitTimeoutMs: input.waitTimeoutMs
|
|
9734
9734
|
});
|
|
9735
|
-
const initialStatus =
|
|
9735
|
+
const initialStatus = _chunk3ZUKYLC6js.normalizePlayStatus.call(void 0, initialTerminal);
|
|
9736
9736
|
const status2 = await resolvePlayRunOutputStatus({
|
|
9737
9737
|
client: input.client,
|
|
9738
9738
|
status: initialStatus,
|
|
@@ -9740,7 +9740,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9740
9740
|
jsonOutput: input.jsonOutput,
|
|
9741
9741
|
fromDurableStatus: true
|
|
9742
9742
|
});
|
|
9743
|
-
|
|
9743
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
9744
9744
|
phase: "play_watch_terminal_status",
|
|
9745
9745
|
workflowId,
|
|
9746
9746
|
full: true,
|
|
@@ -9845,7 +9845,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9845
9845
|
});
|
|
9846
9846
|
}
|
|
9847
9847
|
if (error instanceof _chunkMJTVX4QKjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
9848
|
-
await
|
|
9848
|
+
await _chunkRLPPLS6Ajs.checkPlayRunCompatibility.call(void 0,
|
|
9849
9849
|
input.client.baseUrl,
|
|
9850
9850
|
input.maintenancePolicy,
|
|
9851
9851
|
admissionDeadline.signal
|
|
@@ -9886,7 +9886,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9886
9886
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9887
9887
|
);
|
|
9888
9888
|
}
|
|
9889
|
-
|
|
9889
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
9890
9890
|
phase: "cli.play_start_stream_retry",
|
|
9891
9891
|
ms: 0,
|
|
9892
9892
|
ok: true,
|
|
@@ -9907,7 +9907,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9907
9907
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9908
9908
|
);
|
|
9909
9909
|
}
|
|
9910
|
-
|
|
9910
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
9911
9911
|
phase: "cli.play_start_stream_retry",
|
|
9912
9912
|
ms: 0,
|
|
9913
9913
|
ok: true,
|
|
@@ -9940,7 +9940,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9940
9940
|
const dashboardUrl = _chunkZO65VJRJjs.buildPlayDashboardUrl.call(void 0,
|
|
9941
9941
|
input.client.baseUrl,
|
|
9942
9942
|
input.playName,
|
|
9943
|
-
|
|
9943
|
+
_chunkXBO4ERH6js.resolveCliDashboardOrgId.call(void 0, input.client.baseUrl)
|
|
9944
9944
|
);
|
|
9945
9945
|
const state = {
|
|
9946
9946
|
emittedRunnerStarted: false,
|
|
@@ -9965,7 +9965,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9965
9965
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9966
9966
|
launchConfirmed = true;
|
|
9967
9967
|
await _optionalChain([input, 'access', _366 => _366.onRunAdmitted, 'optionalCall', _367 => _367(runId)]);
|
|
9968
|
-
|
|
9968
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
9969
9969
|
phase: "cli.play_start_admitted",
|
|
9970
9970
|
ms: Date.now() - startedAt,
|
|
9971
9971
|
ok: true,
|
|
@@ -9999,7 +9999,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9999
9999
|
full: input.fullJson
|
|
10000
10000
|
});
|
|
10001
10001
|
} catch (error) {
|
|
10002
|
-
if (
|
|
10002
|
+
if (_chunk3ZUKYLC6js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
10003
10003
|
return null;
|
|
10004
10004
|
}
|
|
10005
10005
|
throw error;
|
|
@@ -10170,7 +10170,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10170
10170
|
};
|
|
10171
10171
|
}
|
|
10172
10172
|
if (!canonicalTerminal) {
|
|
10173
|
-
|
|
10173
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
10174
10174
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
10175
10175
|
ms: Date.now() - startedAt,
|
|
10176
10176
|
ok: true,
|
|
@@ -10191,14 +10191,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10191
10191
|
fromDurableStatus
|
|
10192
10192
|
}) : canonicalTerminal;
|
|
10193
10193
|
if (input.fullJson === true) {
|
|
10194
|
-
|
|
10194
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
10195
10195
|
phase: "play_watch_terminal_status",
|
|
10196
10196
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
10197
10197
|
full: true,
|
|
10198
10198
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
10199
10199
|
});
|
|
10200
10200
|
}
|
|
10201
|
-
|
|
10201
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
10202
10202
|
phase: "cli.play_start_stream_terminal",
|
|
10203
10203
|
ms: Date.now() - startedAt,
|
|
10204
10204
|
ok: true,
|
|
@@ -10218,7 +10218,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10218
10218
|
clearTimeout(timeout);
|
|
10219
10219
|
}
|
|
10220
10220
|
controller.abort();
|
|
10221
|
-
|
|
10221
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
10222
10222
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
10223
10223
|
ms: Date.now() - startedAt,
|
|
10224
10224
|
ok: true,
|
|
@@ -10249,7 +10249,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10249
10249
|
if (timedOut) {
|
|
10250
10250
|
const terminal = await fetchKnownTerminalStatus();
|
|
10251
10251
|
if (terminal) {
|
|
10252
|
-
|
|
10252
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
10253
10253
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
10254
10254
|
ms: Date.now() - startedAt,
|
|
10255
10255
|
ok: true,
|
|
@@ -10269,7 +10269,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10269
10269
|
lastPhase
|
|
10270
10270
|
});
|
|
10271
10271
|
}
|
|
10272
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
10272
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunk3ZUKYLC6js.isTransientPlayRunReadError.call(void 0, error))) {
|
|
10273
10273
|
if (timeout) {
|
|
10274
10274
|
clearTimeout(timeout);
|
|
10275
10275
|
}
|
|
@@ -10280,7 +10280,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10280
10280
|
`
|
|
10281
10281
|
);
|
|
10282
10282
|
}
|
|
10283
|
-
|
|
10283
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
10284
10284
|
phase: "cli.play_start_stream_reconnect",
|
|
10285
10285
|
ms: Date.now() - startedAt,
|
|
10286
10286
|
ok: true,
|
|
@@ -10307,7 +10307,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10307
10307
|
});
|
|
10308
10308
|
}
|
|
10309
10309
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
10310
|
-
|
|
10310
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
10311
10311
|
phase: "cli.play_start_stream_transient_failure",
|
|
10312
10312
|
ms: Date.now() - startedAt,
|
|
10313
10313
|
ok: false,
|
|
@@ -10335,7 +10335,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10335
10335
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
10336
10336
|
);
|
|
10337
10337
|
}
|
|
10338
|
-
|
|
10338
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
10339
10339
|
phase: "cli.play_start_stream_reconnect",
|
|
10340
10340
|
ms: Date.now() - startedAt,
|
|
10341
10341
|
ok: true,
|
|
@@ -10415,7 +10415,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10415
10415
|
"logs"
|
|
10416
10416
|
]);
|
|
10417
10417
|
function formatPlayLogLine(rawLine, state) {
|
|
10418
|
-
const classified =
|
|
10418
|
+
const classified = _chunk3ZUKYLC6js.classifyLogLine.call(void 0, rawLine);
|
|
10419
10419
|
const line = classified.line;
|
|
10420
10420
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10421
10421
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _389 => _389[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10430,14 +10430,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10430
10430
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10431
10431
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10432
10432
|
if (providerWait && !state.verbose) {
|
|
10433
|
-
return
|
|
10433
|
+
return _chunk3ZUKYLC6js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10434
10434
|
}
|
|
10435
10435
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10436
10436
|
if (mapProgress && !state.verbose) {
|
|
10437
|
-
return
|
|
10437
|
+
return _chunk3ZUKYLC6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10438
10438
|
}
|
|
10439
10439
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10440
|
-
if (!
|
|
10440
|
+
if (!_chunk3ZUKYLC6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10441
10441
|
return null;
|
|
10442
10442
|
}
|
|
10443
10443
|
if (state.emittedRunnerStarted) {
|
|
@@ -10450,7 +10450,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10450
10450
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10451
10451
|
);
|
|
10452
10452
|
if (mapStart) {
|
|
10453
|
-
if (!
|
|
10453
|
+
if (!_chunk3ZUKYLC6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10454
10454
|
return null;
|
|
10455
10455
|
}
|
|
10456
10456
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10460,7 +10460,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10460
10460
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10461
10461
|
);
|
|
10462
10462
|
if (mapDone) {
|
|
10463
|
-
if (!
|
|
10463
|
+
if (!_chunk3ZUKYLC6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10464
10464
|
return null;
|
|
10465
10465
|
}
|
|
10466
10466
|
const [, results, executed, cached] = mapDone;
|
|
@@ -11782,7 +11782,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11782
11782
|
(line) => typeof line === "string"
|
|
11783
11783
|
);
|
|
11784
11784
|
if (tail.length === 0) return [];
|
|
11785
|
-
const shown = tail.map((line) =>
|
|
11785
|
+
const shown = tail.map((line) => _chunk3ZUKYLC6js.classifyLogLine.call(void 0, line)).filter(
|
|
11786
11786
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11787
11787
|
).slice(-8);
|
|
11788
11788
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -12087,11 +12087,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
12087
12087
|
}
|
|
12088
12088
|
function writePlayResult(status, jsonOutput, options) {
|
|
12089
12089
|
const packaged = getPlayRunPackage(status);
|
|
12090
|
-
if (status.package)
|
|
12090
|
+
if (status.package) _chunkRWDYULX2js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
12091
12091
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _480 => _480.hits]), () => ( null));
|
|
12092
12092
|
if (jsonOutput) {
|
|
12093
12093
|
const payload2 = _optionalChain([options, 'optionalAccess', _481 => _481.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
12094
|
-
|
|
12094
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
12095
12095
|
hits ? { ...payload2, hits } : payload2,
|
|
12096
12096
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _482 => _482.jsonFields]) }
|
|
12097
12097
|
);
|
|
@@ -12107,7 +12107,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12107
12107
|
...buildPlayCompletionTextLines(status),
|
|
12108
12108
|
...formatRunHitsLines(hits)
|
|
12109
12109
|
];
|
|
12110
|
-
|
|
12110
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
12111
12111
|
json: false,
|
|
12112
12112
|
text: `${lines2.join("\n")}
|
|
12113
12113
|
`
|
|
@@ -12157,7 +12157,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12157
12157
|
lines.push(...buildBillingRollupTextLines(status));
|
|
12158
12158
|
const compact = compactPlayStatus(status);
|
|
12159
12159
|
const payload = _optionalChain([options, 'optionalAccess', _484 => _484.fullJson]) ? status : compact;
|
|
12160
|
-
|
|
12160
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
12161
12161
|
{
|
|
12162
12162
|
...payload,
|
|
12163
12163
|
render: {
|
|
@@ -12381,7 +12381,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
12381
12381
|
}
|
|
12382
12382
|
offset += page.rows.length;
|
|
12383
12383
|
}
|
|
12384
|
-
const withError =
|
|
12384
|
+
const withError = _chunkRWDYULX2js.tableExportHasFailedRows.call(void 0,
|
|
12385
12385
|
sheetRows.filter(
|
|
12386
12386
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
12387
12387
|
)
|
|
@@ -12397,7 +12397,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
12397
12397
|
return [
|
|
12398
12398
|
withError ? {
|
|
12399
12399
|
...exported,
|
|
12400
|
-
[
|
|
12400
|
+
[_chunkRWDYULX2js.TABLE_EXPORT_ERROR_COLUMN]: _chunkRWDYULX2js.tableExportErrorCell.call(void 0,
|
|
12401
12401
|
row
|
|
12402
12402
|
)
|
|
12403
12403
|
} : exported
|
|
@@ -12946,7 +12946,7 @@ function renderServerResultView(value) {
|
|
|
12946
12946
|
function writeStartedPlayRun(input) {
|
|
12947
12947
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12948
12948
|
const run = input.package.run;
|
|
12949
|
-
|
|
12949
|
+
_chunkRWDYULX2js.recordPlayTermination.call(void 0, {
|
|
12950
12950
|
id: run.id,
|
|
12951
12951
|
status: run.status,
|
|
12952
12952
|
finishedAt: run.finishedAt
|
|
@@ -12959,7 +12959,7 @@ function writeStartedPlayRun(input) {
|
|
|
12959
12959
|
dashboardUrl: input.dashboardUrl,
|
|
12960
12960
|
package: input.package
|
|
12961
12961
|
};
|
|
12962
|
-
|
|
12962
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12963
12963
|
json: true,
|
|
12964
12964
|
fields: input.jsonFields
|
|
12965
12965
|
});
|
|
@@ -12981,7 +12981,7 @@ function writeStartedPlayRun(input) {
|
|
|
12981
12981
|
input.progress.writeLine(output2, process.stdout);
|
|
12982
12982
|
return;
|
|
12983
12983
|
}
|
|
12984
|
-
|
|
12984
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12985
12985
|
json: false,
|
|
12986
12986
|
text: `${output2}
|
|
12987
12987
|
`
|
|
@@ -13016,7 +13016,7 @@ function writeStartedPlayRun(input) {
|
|
|
13016
13016
|
) ? [`Stop: deepline runs stop ${_chunkBVXIGOBZjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
13017
13017
|
];
|
|
13018
13018
|
if (input.jsonOutput) {
|
|
13019
|
-
|
|
13019
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
13020
13020
|
return;
|
|
13021
13021
|
}
|
|
13022
13022
|
const output = lines.join("\n");
|
|
@@ -13024,7 +13024,7 @@ function writeStartedPlayRun(input) {
|
|
|
13024
13024
|
input.progress.writeLine(output, process.stdout);
|
|
13025
13025
|
return;
|
|
13026
13026
|
}
|
|
13027
|
-
|
|
13027
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
13028
13028
|
{
|
|
13029
13029
|
...payload,
|
|
13030
13030
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -13034,7 +13034,7 @@ function writeStartedPlayRun(input) {
|
|
|
13034
13034
|
);
|
|
13035
13035
|
}
|
|
13036
13036
|
function parsePlayCheckOptions(args) {
|
|
13037
|
-
const selection =
|
|
13037
|
+
const selection = _chunkHGQT6EGKjs.parseJsonFields.call(void 0, args, "check");
|
|
13038
13038
|
args = selection.args;
|
|
13039
13039
|
const target = args[0];
|
|
13040
13040
|
if (!target || target.startsWith("-")) {
|
|
@@ -13046,7 +13046,7 @@ function parsePlayCheckOptions(args) {
|
|
|
13046
13046
|
if (arg !== "--json" && arg !== "--full")
|
|
13047
13047
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
13048
13048
|
}
|
|
13049
|
-
const jsonOutput =
|
|
13049
|
+
const jsonOutput = _chunkHGQT6EGKjs.argsWantJson.call(void 0, args);
|
|
13050
13050
|
return {
|
|
13051
13051
|
target,
|
|
13052
13052
|
jsonOutput,
|
|
@@ -13122,7 +13122,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
13122
13122
|
useLatest,
|
|
13123
13123
|
expectedArtifactHash,
|
|
13124
13124
|
dryRun,
|
|
13125
|
-
jsonOutput:
|
|
13125
|
+
jsonOutput: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args)
|
|
13126
13126
|
};
|
|
13127
13127
|
}
|
|
13128
13128
|
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.";
|
|
@@ -13171,7 +13171,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
13171
13171
|
expectedArtifactHash,
|
|
13172
13172
|
watchPlay,
|
|
13173
13173
|
dryRun,
|
|
13174
|
-
jsonOutput:
|
|
13174
|
+
jsonOutput: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args)
|
|
13175
13175
|
};
|
|
13176
13176
|
}
|
|
13177
13177
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -13360,7 +13360,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
13360
13360
|
async function handlePlayCheck(args) {
|
|
13361
13361
|
const options = parsePlayCheckOptions(args);
|
|
13362
13362
|
if (!isFileTarget(options.target)) {
|
|
13363
|
-
const client = new (0,
|
|
13363
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
13364
13364
|
try {
|
|
13365
13365
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
13366
13366
|
command: "check"
|
|
@@ -13389,7 +13389,7 @@ async function handlePlayCheck(args) {
|
|
|
13389
13389
|
},
|
|
13390
13390
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
13391
13391
|
};
|
|
13392
|
-
|
|
13392
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, result, {
|
|
13393
13393
|
json: options.jsonOutput,
|
|
13394
13394
|
fields: options.jsonFields,
|
|
13395
13395
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -13399,7 +13399,7 @@ async function handlePlayCheck(args) {
|
|
|
13399
13399
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
13400
13400
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
13401
13401
|
if (options.jsonOutput) {
|
|
13402
|
-
|
|
13402
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
13403
13403
|
{
|
|
13404
13404
|
kind: "play_check",
|
|
13405
13405
|
checked: "named_contract",
|
|
@@ -13433,7 +13433,7 @@ async function handlePlayCheck(args) {
|
|
|
13433
13433
|
full: options.full,
|
|
13434
13434
|
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
|
|
13435
13435
|
});
|
|
13436
|
-
|
|
13436
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, output, {
|
|
13437
13437
|
json: options.jsonOutput,
|
|
13438
13438
|
fields: options.jsonFields,
|
|
13439
13439
|
jsonLayout: "readable",
|
|
@@ -13505,7 +13505,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13505
13505
|
}
|
|
13506
13506
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13507
13507
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13508
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
13508
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunkUKSOIH2Pjs.DeeplineClient)()));
|
|
13509
13509
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13510
13510
|
const checked = await checkLocalPlayGraph({
|
|
13511
13511
|
client,
|
|
@@ -13567,8 +13567,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13567
13567
|
let prefetchClient;
|
|
13568
13568
|
let admissionCapability;
|
|
13569
13569
|
let cancelAdmissionCapability;
|
|
13570
|
-
let cliAdmission =
|
|
13571
|
-
const progress = _nullishCoalesce(
|
|
13570
|
+
let cliAdmission = _chunkRLPPLS6Ajs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13571
|
+
const progress = _nullishCoalesce(_chunkPXMCPEE2js.getActiveCliProgress.call(void 0, ), () => ( _chunkPXMCPEE2js.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13572
13572
|
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _544 => _544.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
13573
13573
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
13574
13574
|
progress.phase("compiling play");
|
|
@@ -13585,11 +13585,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13585
13585
|
return 1;
|
|
13586
13586
|
}
|
|
13587
13587
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13588
|
-
const clientForPrefetch = new (0,
|
|
13588
|
+
const clientForPrefetch = new (0, _chunkUKSOIH2Pjs.DeeplineClient)(playRunClientOptions(options));
|
|
13589
13589
|
prefetchClient = clientForPrefetch;
|
|
13590
13590
|
const capabilityController = new AbortController();
|
|
13591
13591
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13592
|
-
admissionCapability =
|
|
13592
|
+
admissionCapability = _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
13593
13593
|
"cli.play_admission_capability_prefetch",
|
|
13594
13594
|
{ targetKind: "file" },
|
|
13595
13595
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -13600,7 +13600,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13600
13600
|
}
|
|
13601
13601
|
let graph;
|
|
13602
13602
|
try {
|
|
13603
|
-
graph = await
|
|
13603
|
+
graph = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
13604
13604
|
"cli.play_file_bundle_graph",
|
|
13605
13605
|
{ targetKind: "file" },
|
|
13606
13606
|
() => collectBundledPlayGraph(
|
|
@@ -13613,7 +13613,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13613
13613
|
assertPlayGraphAuthoring(graph);
|
|
13614
13614
|
if (options.dryRun) {
|
|
13615
13615
|
progress.complete();
|
|
13616
|
-
const plan =
|
|
13616
|
+
const plan = _chunkJ7PCSLRYjs.planLocalPlayExecution.call(void 0, graph, {
|
|
13617
13617
|
runIdFile: options.runIdFile
|
|
13618
13618
|
});
|
|
13619
13619
|
if (_optionalChain([hooks, 'optionalAccess', _545 => _545.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
@@ -13624,9 +13624,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13624
13624
|
});
|
|
13625
13625
|
return 0;
|
|
13626
13626
|
}
|
|
13627
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
13627
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkUKSOIH2Pjs.DeeplineClient)(playRunClientOptions(options))));
|
|
13628
13628
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
13629
|
-
await
|
|
13629
|
+
await _chunkRLPPLS6Ajs.checkPlayRunCompatibility.call(void 0,
|
|
13630
13630
|
client.baseUrl,
|
|
13631
13631
|
options.maintenancePolicy
|
|
13632
13632
|
);
|
|
@@ -13639,7 +13639,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13639
13639
|
});
|
|
13640
13640
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput) && !mayBindBareFileName(graph.root, runtimeInput);
|
|
13641
13641
|
if (canDeferCompilerManifest) {
|
|
13642
|
-
|
|
13642
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
13643
13643
|
phase: "cli.play_file_compile_manifests",
|
|
13644
13644
|
ms: 0,
|
|
13645
13645
|
ok: true,
|
|
@@ -13648,7 +13648,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13648
13648
|
reason: "validated_by_run_route"
|
|
13649
13649
|
});
|
|
13650
13650
|
} else {
|
|
13651
|
-
await
|
|
13651
|
+
await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
13652
13652
|
"cli.play_file_compile_manifests",
|
|
13653
13653
|
{ targetKind: "file", skipped: false },
|
|
13654
13654
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -13656,7 +13656,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13656
13656
|
}
|
|
13657
13657
|
progress.phase("compiled play");
|
|
13658
13658
|
} catch (error) {
|
|
13659
|
-
if (error instanceof
|
|
13659
|
+
if (error instanceof _chunkRWDYULX2js.ExecutionOutputError) throw error;
|
|
13660
13660
|
progress.fail();
|
|
13661
13661
|
reportError(normalizePlayValidationError(error));
|
|
13662
13662
|
return 1;
|
|
@@ -13667,13 +13667,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13667
13667
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
13668
13668
|
try {
|
|
13669
13669
|
renderLocalPlayExecutionPlan(
|
|
13670
|
-
|
|
13670
|
+
_chunkJ7PCSLRYjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
13671
13671
|
);
|
|
13672
13672
|
progress.phase("pinning imported plays");
|
|
13673
|
-
graph = await
|
|
13673
|
+
graph = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
13674
13674
|
"cli.play_file_pin_imports",
|
|
13675
13675
|
{ targetKind: "file" },
|
|
13676
|
-
() =>
|
|
13676
|
+
() => _chunkJ7PCSLRYjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
13677
13677
|
);
|
|
13678
13678
|
bundleResult = graph.root;
|
|
13679
13679
|
} catch (error) {
|
|
@@ -13690,7 +13690,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13690
13690
|
inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _546 => _546.authoringContract, 'optionalAccess', _547 => _547.inputSchema]),
|
|
13691
13691
|
staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _548 => _548.staticPipeline])
|
|
13692
13692
|
});
|
|
13693
|
-
const stagedFileInputs = await
|
|
13693
|
+
const stagedFileInputs = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
13694
13694
|
"cli.play_stage_inputs",
|
|
13695
13695
|
{
|
|
13696
13696
|
targetKind: "file",
|
|
@@ -13741,7 +13741,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13741
13741
|
};
|
|
13742
13742
|
if (options.watch) {
|
|
13743
13743
|
progress.phase("starting run");
|
|
13744
|
-
const finalStatus = await
|
|
13744
|
+
const finalStatus = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
13745
13745
|
"cli.play_start_watch",
|
|
13746
13746
|
{ targetKind: "file", playName },
|
|
13747
13747
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13803,7 +13803,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13803
13803
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13804
13804
|
}
|
|
13805
13805
|
progress.phase("starting run");
|
|
13806
|
-
const started = await
|
|
13806
|
+
const started = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
13807
13807
|
"cli.play_start_unwatched",
|
|
13808
13808
|
{ targetKind: "file", playName },
|
|
13809
13809
|
() => startPlayRunWithTransientRetry({
|
|
@@ -13822,7 +13822,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13822
13822
|
const resolvedDashboardUrl = _chunkZO65VJRJjs.buildPlayDashboardUrl.call(void 0,
|
|
13823
13823
|
client.baseUrl,
|
|
13824
13824
|
playName,
|
|
13825
|
-
|
|
13825
|
+
_chunkXBO4ERH6js.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
13826
13826
|
);
|
|
13827
13827
|
openPlayDashboard(
|
|
13828
13828
|
resolvePlayRunUrl({
|
|
@@ -13880,9 +13880,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13880
13880
|
if (options.target.kind !== "name") {
|
|
13881
13881
|
throw new Error("Expected a named play run target.");
|
|
13882
13882
|
}
|
|
13883
|
-
const client = new (0,
|
|
13884
|
-
let cliAdmission =
|
|
13885
|
-
const progress = _nullishCoalesce(
|
|
13883
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)(playRunClientOptions(options));
|
|
13884
|
+
let cliAdmission = _chunkRLPPLS6Ajs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13885
|
+
const progress = _nullishCoalesce(_chunkPXMCPEE2js.getActiveCliProgress.call(void 0, ), () => ( _chunkPXMCPEE2js.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13886
13886
|
const playName = options.target.name;
|
|
13887
13887
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13888
13888
|
try {
|
|
@@ -13900,7 +13900,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13900
13900
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13901
13901
|
const capabilityController = new AbortController();
|
|
13902
13902
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13903
|
-
admissionCapability =
|
|
13903
|
+
admissionCapability = _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
13904
13904
|
"cli.play_admission_capability_prefetch",
|
|
13905
13905
|
{ targetKind: "name", playName },
|
|
13906
13906
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13911,14 +13911,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13911
13911
|
}
|
|
13912
13912
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13913
13913
|
progress.phase("loading play definition");
|
|
13914
|
-
return
|
|
13914
|
+
return _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
13915
13915
|
"cli.play_load_definition",
|
|
13916
13916
|
{ targetKind: "name", playName, skipped: false },
|
|
13917
13917
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13918
13918
|
command: "run"
|
|
13919
13919
|
})
|
|
13920
13920
|
);
|
|
13921
|
-
})() : (
|
|
13921
|
+
})() : (_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
13922
13922
|
phase: "cli.play_load_definition",
|
|
13923
13923
|
ms: 0,
|
|
13924
13924
|
ok: true,
|
|
@@ -13927,7 +13927,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13927
13927
|
skipped: true
|
|
13928
13928
|
}), null);
|
|
13929
13929
|
progress.phase("selecting revision");
|
|
13930
|
-
const selectedRevisionId = await
|
|
13930
|
+
const selectedRevisionId = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
13931
13931
|
"cli.play_select_revision",
|
|
13932
13932
|
{
|
|
13933
13933
|
targetKind: "name",
|
|
@@ -13952,10 +13952,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13952
13952
|
..._chunkMJTVX4QKjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13953
13953
|
] : [];
|
|
13954
13954
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13955
|
-
await
|
|
13955
|
+
await _chunkRLPPLS6Ajs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13956
13956
|
cliAdmission = false;
|
|
13957
13957
|
}
|
|
13958
|
-
const stagedFileInputs = await
|
|
13958
|
+
const stagedFileInputs = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
13959
13959
|
"cli.play_stage_inputs",
|
|
13960
13960
|
{
|
|
13961
13961
|
targetKind: "name",
|
|
@@ -14000,7 +14000,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14000
14000
|
});
|
|
14001
14001
|
if (options.watch) {
|
|
14002
14002
|
progress.phase("starting run");
|
|
14003
|
-
const finalStatus = await
|
|
14003
|
+
const finalStatus = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
14004
14004
|
"cli.play_start_watch",
|
|
14005
14005
|
{ targetKind: "name", playName },
|
|
14006
14006
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -14065,7 +14065,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14065
14065
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
14066
14066
|
}
|
|
14067
14067
|
progress.phase("starting run");
|
|
14068
|
-
const started = await
|
|
14068
|
+
const started = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
14069
14069
|
"cli.play_start_unwatched",
|
|
14070
14070
|
{ targetKind: "name", playName },
|
|
14071
14071
|
() => startPlayRunWithTransientRetry({
|
|
@@ -14086,7 +14086,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14086
14086
|
const resolvedDashboardUrl = _chunkZO65VJRJjs.buildPlayDashboardUrl.call(void 0,
|
|
14087
14087
|
client.baseUrl,
|
|
14088
14088
|
playName,
|
|
14089
|
-
|
|
14089
|
+
_chunkXBO4ERH6js.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14090
14090
|
);
|
|
14091
14091
|
openPlayDashboard(
|
|
14092
14092
|
resolvePlayRunUrl({
|
|
@@ -14136,7 +14136,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14136
14136
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
14137
14137
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _576 => _576.exec, 'call', _577 => _577(status.runId), 'optionalAccess', _578 => _578[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
14138
14138
|
if (!terminal) {
|
|
14139
|
-
|
|
14139
|
+
_chunkRWDYULX2js.writeExecutionOutput.call(void 0,
|
|
14140
14140
|
{
|
|
14141
14141
|
id: status.runId,
|
|
14142
14142
|
status: status.status,
|
|
@@ -14145,7 +14145,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14145
14145
|
client.baseUrl,
|
|
14146
14146
|
playName,
|
|
14147
14147
|
status.runId,
|
|
14148
|
-
|
|
14148
|
+
_chunkXBO4ERH6js.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14149
14149
|
)
|
|
14150
14150
|
} : {},
|
|
14151
14151
|
next
|
|
@@ -14223,11 +14223,11 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14223
14223
|
};
|
|
14224
14224
|
}
|
|
14225
14225
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
14226
|
-
const allCollections =
|
|
14226
|
+
const allCollections = _chunkRWDYULX2js.outputCollections.call(void 0, data).map(
|
|
14227
14227
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
14228
14228
|
);
|
|
14229
14229
|
const credits = _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _585 => _585.billing, 'optionalAccess', _586 => _586.totalCredits]))), () => ( null));
|
|
14230
|
-
|
|
14230
|
+
_chunkRWDYULX2js.writeExecutionOutput.call(void 0,
|
|
14231
14231
|
{
|
|
14232
14232
|
id: status.runId,
|
|
14233
14233
|
status: status.status,
|
|
@@ -14242,7 +14242,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14242
14242
|
client.baseUrl,
|
|
14243
14243
|
playName,
|
|
14244
14244
|
status.runId,
|
|
14245
|
-
|
|
14245
|
+
_chunkXBO4ERH6js.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14246
14246
|
)
|
|
14247
14247
|
} : {},
|
|
14248
14248
|
warnings: [
|
|
@@ -14259,7 +14259,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14259
14259
|
}
|
|
14260
14260
|
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;
|
|
14261
14261
|
async function handlePlayRun(args, hooks) {
|
|
14262
|
-
const parsedOptions = Array.isArray(args) ?
|
|
14262
|
+
const parsedOptions = Array.isArray(args) ? _chunkW47SXEWQjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
14263
14263
|
const options = parsedOptions.runIdFile ? {
|
|
14264
14264
|
...parsedOptions,
|
|
14265
14265
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -14276,7 +14276,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
14276
14276
|
JSON.stringify({
|
|
14277
14277
|
version: 1,
|
|
14278
14278
|
admissionState: "submitted_unknown",
|
|
14279
|
-
baseUrl: new (0,
|
|
14279
|
+
baseUrl: new (0, _chunkUKSOIH2Pjs.DeeplineClient)().baseUrl,
|
|
14280
14280
|
...intent
|
|
14281
14281
|
})
|
|
14282
14282
|
);
|
|
@@ -14542,7 +14542,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
14542
14542
|
);
|
|
14543
14543
|
return `${lines.join("\n")}
|
|
14544
14544
|
|
|
14545
|
-
${
|
|
14545
|
+
${_chunkHGQT6EGKjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
14546
14546
|
}
|
|
14547
14547
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
14548
14548
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -14568,14 +14568,14 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
14568
14568
|
async function handleRunGet(args) {
|
|
14569
14569
|
return explainingRunNotFound(
|
|
14570
14570
|
() => parseRunIdPositional(
|
|
14571
|
-
|
|
14571
|
+
_chunkHGQT6EGKjs.parseJsonFields.call(void 0, args, args.includes("--config") ? "config" : "get").args,
|
|
14572
14572
|
""
|
|
14573
14573
|
),
|
|
14574
14574
|
() => handleRunGetAndPrint(args)
|
|
14575
14575
|
);
|
|
14576
14576
|
}
|
|
14577
14577
|
async function handleRunGetAndPrint(args) {
|
|
14578
|
-
const selection =
|
|
14578
|
+
const selection = _chunkHGQT6EGKjs.parseJsonFields.call(void 0,
|
|
14579
14579
|
args,
|
|
14580
14580
|
args.includes("--config") ? "config" : "get"
|
|
14581
14581
|
);
|
|
@@ -14588,7 +14588,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14588
14588
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14589
14589
|
return 1;
|
|
14590
14590
|
}
|
|
14591
|
-
const client = new (0,
|
|
14591
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
14592
14592
|
const timing = args.includes("--timing");
|
|
14593
14593
|
const web = args.includes("--web");
|
|
14594
14594
|
if (web || args.includes("--web-url")) {
|
|
@@ -14606,17 +14606,17 @@ async function handleRunGetAndPrint(args) {
|
|
|
14606
14606
|
const dashboardUrl2 = _chunkZO65VJRJjs.buildPlayDashboardUrl.call(void 0,
|
|
14607
14607
|
client.baseUrl,
|
|
14608
14608
|
playName2,
|
|
14609
|
-
|
|
14609
|
+
_chunkXBO4ERH6js.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14610
14610
|
);
|
|
14611
14611
|
const runUrl2 = _chunkZO65VJRJjs.buildPlayRunUrl.call(void 0,
|
|
14612
14612
|
client.baseUrl,
|
|
14613
14613
|
playName2,
|
|
14614
14614
|
runId,
|
|
14615
|
-
|
|
14615
|
+
_chunkXBO4ERH6js.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14616
14616
|
);
|
|
14617
14617
|
if (web) {
|
|
14618
|
-
const opened =
|
|
14619
|
-
|
|
14618
|
+
const opened = _chunkHGQT6EGKjs.openInBrowser.call(void 0, runUrl2);
|
|
14619
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
14620
14620
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
14621
14621
|
{
|
|
14622
14622
|
json: args.includes("--json"),
|
|
@@ -14627,7 +14627,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14627
14627
|
);
|
|
14628
14628
|
return 0;
|
|
14629
14629
|
}
|
|
14630
|
-
|
|
14630
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
14631
14631
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
14632
14632
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
14633
14633
|
` }
|
|
@@ -14652,7 +14652,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14652
14652
|
"This server does not support recorded configuration reads."
|
|
14653
14653
|
);
|
|
14654
14654
|
}
|
|
14655
|
-
|
|
14655
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
14656
14656
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
14657
14657
|
{ json: true, fields: selection.fields }
|
|
14658
14658
|
);
|
|
@@ -14665,7 +14665,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14665
14665
|
timing,
|
|
14666
14666
|
() => client.getRunInput(runId)
|
|
14667
14667
|
);
|
|
14668
|
-
|
|
14668
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
14669
14669
|
return 0;
|
|
14670
14670
|
}
|
|
14671
14671
|
const full = args.includes("--full");
|
|
@@ -14680,7 +14680,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14680
14680
|
failedLogs: args.includes("--log-failed")
|
|
14681
14681
|
})
|
|
14682
14682
|
);
|
|
14683
|
-
if (status.package)
|
|
14683
|
+
if (status.package) _chunkRWDYULX2js.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
14684
14684
|
if (!status.package) {
|
|
14685
14685
|
const legacyStatus = full ? await withRunReadTiming(
|
|
14686
14686
|
"runs get",
|
|
@@ -14695,16 +14695,16 @@ async function handleRunGetAndPrint(args) {
|
|
|
14695
14695
|
const legacyDashboardUrl = legacyPlayName ? _chunkZO65VJRJjs.buildPlayDashboardUrl.call(void 0,
|
|
14696
14696
|
client.baseUrl,
|
|
14697
14697
|
legacyPlayName,
|
|
14698
|
-
|
|
14698
|
+
_chunkXBO4ERH6js.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14699
14699
|
) : null;
|
|
14700
14700
|
const legacyRunUrl = legacyPlayName ? _chunkZO65VJRJjs.buildPlayRunUrl.call(void 0,
|
|
14701
14701
|
client.baseUrl,
|
|
14702
14702
|
legacyPlayName,
|
|
14703
14703
|
runId,
|
|
14704
|
-
|
|
14704
|
+
_chunkXBO4ERH6js.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14705
14705
|
) : null;
|
|
14706
|
-
if (
|
|
14707
|
-
|
|
14706
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
14707
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
14708
14708
|
{
|
|
14709
14709
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
14710
14710
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -14715,7 +14715,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14715
14715
|
} else {
|
|
14716
14716
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
14717
14717
|
if (legacyRunUrl)
|
|
14718
|
-
|
|
14718
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
14719
14719
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
14720
14720
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
14721
14721
|
` }
|
|
@@ -14745,20 +14745,20 @@ async function handleRunGetAndPrint(args) {
|
|
|
14745
14745
|
)
|
|
14746
14746
|
]);
|
|
14747
14747
|
const hitLines = formatRunHitsLines(hits);
|
|
14748
|
-
const json =
|
|
14748
|
+
const json = _chunkHGQT6EGKjs.argsWantJson.call(void 0, args);
|
|
14749
14749
|
const playName = resolveRunPlayName(status, runId);
|
|
14750
14750
|
const dashboardUrl = playName ? _chunkZO65VJRJjs.buildPlayDashboardUrl.call(void 0,
|
|
14751
14751
|
client.baseUrl,
|
|
14752
14752
|
playName,
|
|
14753
|
-
|
|
14753
|
+
_chunkXBO4ERH6js.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14754
14754
|
) : void 0;
|
|
14755
14755
|
const runUrl = playName ? _chunkZO65VJRJjs.buildPlayRunUrl.call(void 0,
|
|
14756
14756
|
client.baseUrl,
|
|
14757
14757
|
playName,
|
|
14758
14758
|
runId,
|
|
14759
|
-
|
|
14759
|
+
_chunkXBO4ERH6js.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14760
14760
|
) : void 0;
|
|
14761
|
-
|
|
14761
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
14762
14762
|
{
|
|
14763
14763
|
...overview,
|
|
14764
14764
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -14863,9 +14863,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
14863
14863
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14864
14864
|
return 1;
|
|
14865
14865
|
}
|
|
14866
|
-
const status = await new (0,
|
|
14867
|
-
if (
|
|
14868
|
-
|
|
14866
|
+
const status = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().runs.status(runId);
|
|
14867
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
14868
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
14869
14869
|
return 0;
|
|
14870
14870
|
}
|
|
14871
14871
|
if (!status.available) {
|
|
@@ -14931,7 +14931,7 @@ async function handleRunsRerun(args) {
|
|
|
14931
14931
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14932
14932
|
return 1;
|
|
14933
14933
|
}
|
|
14934
|
-
const options = { json:
|
|
14934
|
+
const options = { json: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args) };
|
|
14935
14935
|
for (let index = 0; index < args.length; index += 1) {
|
|
14936
14936
|
if (args[index] === "--idempotency-key") {
|
|
14937
14937
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14999,8 +14999,8 @@ ${usage2}
|
|
|
14999
14999
|
Discover Plays: ${next.discover}
|
|
15000
15000
|
Active runs: ${next.running}`
|
|
15001
15001
|
);
|
|
15002
|
-
if (
|
|
15003
|
-
|
|
15002
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
15003
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
15004
15004
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
15005
15005
|
{ json: true }
|
|
15006
15006
|
);
|
|
@@ -15029,7 +15029,7 @@ Active runs: ${next.running}`
|
|
|
15029
15029
|
console.error("--offset requires --play.");
|
|
15030
15030
|
return 1;
|
|
15031
15031
|
}
|
|
15032
|
-
const client = new (0,
|
|
15032
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
15033
15033
|
const page = await withRunReadTiming(
|
|
15034
15034
|
"runs list",
|
|
15035
15035
|
"run inventory",
|
|
@@ -15110,14 +15110,14 @@ Active runs: ${next.running}`
|
|
|
15110
15110
|
return lines2.join("\n");
|
|
15111
15111
|
});
|
|
15112
15112
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
15113
|
-
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}${
|
|
15113
|
+
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}${_chunkHGQT6EGKjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
15114
15114
|
if (page.hasMore) {
|
|
15115
15115
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
15116
15116
|
lines.push(
|
|
15117
15117
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
15118
15118
|
);
|
|
15119
15119
|
}
|
|
15120
|
-
|
|
15120
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
15121
15121
|
{
|
|
15122
15122
|
runs,
|
|
15123
15123
|
...wantsSteps ? {
|
|
@@ -15135,7 +15135,7 @@ Active runs: ${next.running}`
|
|
|
15135
15135
|
},
|
|
15136
15136
|
render: { sections: [{ title: "runs", lines }] }
|
|
15137
15137
|
},
|
|
15138
|
-
{ json:
|
|
15138
|
+
{ json: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args) }
|
|
15139
15139
|
);
|
|
15140
15140
|
return 0;
|
|
15141
15141
|
}
|
|
@@ -15165,7 +15165,7 @@ async function handleRunTail(args) {
|
|
|
15165
15165
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15166
15166
|
return 1;
|
|
15167
15167
|
}
|
|
15168
|
-
const parsed =
|
|
15168
|
+
const parsed = _chunk3ZUKYLC6js.parseLogLevel.call(void 0, value);
|
|
15169
15169
|
if (!parsed) {
|
|
15170
15170
|
console.error(
|
|
15171
15171
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15203,9 +15203,9 @@ async function handleRunTail(args) {
|
|
|
15203
15203
|
);
|
|
15204
15204
|
return 1;
|
|
15205
15205
|
}
|
|
15206
|
-
const client = new (0,
|
|
15206
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
15207
15207
|
const jsonLines = args.includes("--jsonl");
|
|
15208
|
-
const jsonOutput = !jsonLines &&
|
|
15208
|
+
const jsonOutput = !jsonLines && _chunkHGQT6EGKjs.argsWantJson.call(void 0, args);
|
|
15209
15209
|
const compact = args.includes("--compact");
|
|
15210
15210
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
15211
15211
|
const compactState = {
|
|
@@ -15286,7 +15286,7 @@ async function handleRunLogs(args) {
|
|
|
15286
15286
|
]);
|
|
15287
15287
|
const cursorIndex = args.indexOf("--cursor");
|
|
15288
15288
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15289
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
15289
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk3ZUKYLC6js.isRunLogsCursor.call(void 0, cursorValue));
|
|
15290
15290
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
15291
15291
|
return handleRunEventSearch(args);
|
|
15292
15292
|
}
|
|
@@ -15320,7 +15320,7 @@ async function handleRunLogs(args) {
|
|
|
15320
15320
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15321
15321
|
return 1;
|
|
15322
15322
|
}
|
|
15323
|
-
const parsed =
|
|
15323
|
+
const parsed = _chunk3ZUKYLC6js.parseLogLevel.call(void 0, value);
|
|
15324
15324
|
if (!parsed) {
|
|
15325
15325
|
console.error(
|
|
15326
15326
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15367,12 +15367,12 @@ async function handleRunLogs(args) {
|
|
|
15367
15367
|
);
|
|
15368
15368
|
return 1;
|
|
15369
15369
|
}
|
|
15370
|
-
const client = new (0,
|
|
15370
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
15371
15371
|
if (outPath) {
|
|
15372
15372
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
15373
|
-
const logs = result2.entries.filter((line) =>
|
|
15373
|
+
const logs = result2.entries.filter((line) => _chunk3ZUKYLC6js.logLevelReaches.call(void 0, _chunk3ZUKYLC6js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk3ZUKYLC6js.classifyLogLine.call(void 0, line).line);
|
|
15374
15374
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
15375
|
-
|
|
15375
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
15376
15376
|
{
|
|
15377
15377
|
runId: result2.runId,
|
|
15378
15378
|
log_path: outPath,
|
|
@@ -15395,7 +15395,7 @@ async function handleRunLogs(args) {
|
|
|
15395
15395
|
]
|
|
15396
15396
|
}
|
|
15397
15397
|
},
|
|
15398
|
-
{ json:
|
|
15398
|
+
{ json: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args) }
|
|
15399
15399
|
);
|
|
15400
15400
|
return 0;
|
|
15401
15401
|
}
|
|
@@ -15426,7 +15426,7 @@ async function handleRunLogs(args) {
|
|
|
15426
15426
|
}
|
|
15427
15427
|
};
|
|
15428
15428
|
const text3 = buildRunLogsText(filteredResult);
|
|
15429
|
-
|
|
15429
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
15430
15430
|
{
|
|
15431
15431
|
runId: result.runId,
|
|
15432
15432
|
totalCount: result.totalCount,
|
|
@@ -15450,7 +15450,7 @@ async function handleRunLogs(args) {
|
|
|
15450
15450
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
15451
15451
|
},
|
|
15452
15452
|
{
|
|
15453
|
-
json:
|
|
15453
|
+
json: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args),
|
|
15454
15454
|
text: text3
|
|
15455
15455
|
}
|
|
15456
15456
|
);
|
|
@@ -15474,7 +15474,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15474
15474
|
);
|
|
15475
15475
|
}
|
|
15476
15476
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
15477
|
-
(entry) =>
|
|
15477
|
+
(entry) => _chunk3ZUKYLC6js.logLevelReaches.call(void 0, _chunk3ZUKYLC6js.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
15478
15478
|
);
|
|
15479
15479
|
const selected = matching.slice(-limit);
|
|
15480
15480
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -15484,7 +15484,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15484
15484
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _611 => _611.at, 'call', _612 => _612(-1), 'optionalAccess', _613 => _613.seq]), () => ( null)),
|
|
15485
15485
|
truncated: result.truncated || olderMatchesExist,
|
|
15486
15486
|
hasMore: olderMatchesExist,
|
|
15487
|
-
nextCursor: olderMatchesExist ?
|
|
15487
|
+
nextCursor: olderMatchesExist ? _chunk3ZUKYLC6js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
15488
15488
|
};
|
|
15489
15489
|
}
|
|
15490
15490
|
async function handleRunEventSearch(args) {
|
|
@@ -15551,7 +15551,7 @@ ${usage2}`);
|
|
|
15551
15551
|
namespace,
|
|
15552
15552
|
...backend ? { backend } : {}
|
|
15553
15553
|
} : void 0;
|
|
15554
|
-
const client = new (0,
|
|
15554
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
15555
15555
|
const result = await client.runs.searchEvents({
|
|
15556
15556
|
...runId ? { runId } : {},
|
|
15557
15557
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -15623,7 +15623,7 @@ ${renderedDetails}` : ""}`;
|
|
|
15623
15623
|
"--limit",
|
|
15624
15624
|
String(limit)
|
|
15625
15625
|
].join(" ") : null;
|
|
15626
|
-
|
|
15626
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
15627
15627
|
{
|
|
15628
15628
|
events,
|
|
15629
15629
|
nextCursor: result.nextCursor,
|
|
@@ -15634,14 +15634,14 @@ ${renderedDetails}` : ""}`;
|
|
|
15634
15634
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
15635
15635
|
},
|
|
15636
15636
|
{
|
|
15637
|
-
json:
|
|
15637
|
+
json: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args),
|
|
15638
15638
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
15639
15639
|
}
|
|
15640
15640
|
);
|
|
15641
15641
|
return 0;
|
|
15642
15642
|
}
|
|
15643
15643
|
function buildRunLogsText(result) {
|
|
15644
|
-
const lines = result.entries.map((line) =>
|
|
15644
|
+
const lines = result.entries.map((line) => _chunk3ZUKYLC6js.classifyLogLine.call(void 0, line).line);
|
|
15645
15645
|
if (result.warning) {
|
|
15646
15646
|
if (lines.length > 0) lines.push("");
|
|
15647
15647
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -15675,7 +15675,7 @@ async function handleRunStop(args) {
|
|
|
15675
15675
|
reason = args[++index];
|
|
15676
15676
|
}
|
|
15677
15677
|
}
|
|
15678
|
-
const client = new (0,
|
|
15678
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
15679
15679
|
const result = await client.runs.stop(runId, { reason });
|
|
15680
15680
|
const communicationNotes = [
|
|
15681
15681
|
...result.communicationCancelledCount ? [
|
|
@@ -15699,7 +15699,7 @@ async function handleRunStop(args) {
|
|
|
15699
15699
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
15700
15700
|
`inspect: deepline runs get ${runId} --full`
|
|
15701
15701
|
];
|
|
15702
|
-
|
|
15702
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
15703
15703
|
{
|
|
15704
15704
|
...cancelling,
|
|
15705
15705
|
state,
|
|
@@ -15714,7 +15714,7 @@ async function handleRunStop(args) {
|
|
|
15714
15714
|
]
|
|
15715
15715
|
}
|
|
15716
15716
|
},
|
|
15717
|
-
{ json:
|
|
15717
|
+
{ json: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args) }
|
|
15718
15718
|
);
|
|
15719
15719
|
return 0;
|
|
15720
15720
|
}
|
|
@@ -15732,7 +15732,7 @@ async function handleRunStop(args) {
|
|
|
15732
15732
|
];
|
|
15733
15733
|
process.stderr.write(`${lines2.join("\n")}
|
|
15734
15734
|
`);
|
|
15735
|
-
|
|
15735
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
15736
15736
|
{
|
|
15737
15737
|
...result,
|
|
15738
15738
|
render: {
|
|
@@ -15747,7 +15747,7 @@ async function handleRunStop(args) {
|
|
|
15747
15747
|
]
|
|
15748
15748
|
}
|
|
15749
15749
|
},
|
|
15750
|
-
{ json:
|
|
15750
|
+
{ json: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args) }
|
|
15751
15751
|
);
|
|
15752
15752
|
return 1;
|
|
15753
15753
|
}
|
|
@@ -15759,12 +15759,12 @@ async function handleRunStop(args) {
|
|
|
15759
15759
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
15760
15760
|
] : []
|
|
15761
15761
|
];
|
|
15762
|
-
|
|
15762
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
15763
15763
|
{
|
|
15764
15764
|
...result,
|
|
15765
15765
|
render: { sections: [{ title: "run stop", lines }] }
|
|
15766
15766
|
},
|
|
15767
|
-
{ json:
|
|
15767
|
+
{ json: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args) }
|
|
15768
15768
|
);
|
|
15769
15769
|
return 0;
|
|
15770
15770
|
}
|
|
@@ -15814,18 +15814,18 @@ async function handleRunStopAll(args) {
|
|
|
15814
15814
|
reason = args[++index];
|
|
15815
15815
|
}
|
|
15816
15816
|
}
|
|
15817
|
-
const client = new (0,
|
|
15817
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
15818
15818
|
if (dryRun) {
|
|
15819
15819
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
15820
15820
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
15821
|
-
|
|
15821
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
15822
15822
|
{
|
|
15823
15823
|
...result2,
|
|
15824
15824
|
render: {
|
|
15825
15825
|
sections: [{ title: "org stop-all (dry run)", lines: lines2 }]
|
|
15826
15826
|
}
|
|
15827
15827
|
},
|
|
15828
|
-
{ json:
|
|
15828
|
+
{ json: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
15829
15829
|
` }
|
|
15830
15830
|
);
|
|
15831
15831
|
return 0;
|
|
@@ -15838,23 +15838,23 @@ async function handleRunStopAll(args) {
|
|
|
15838
15838
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
15839
15839
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
15840
15840
|
];
|
|
15841
|
-
|
|
15841
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
15842
15842
|
{
|
|
15843
15843
|
...result,
|
|
15844
15844
|
render: { sections: [{ title: "org stop-all", lines }] }
|
|
15845
15845
|
},
|
|
15846
|
-
{ json:
|
|
15846
|
+
{ json: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args) }
|
|
15847
15847
|
);
|
|
15848
15848
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
15849
15849
|
}
|
|
15850
15850
|
async function handleRunExport(args) {
|
|
15851
15851
|
return explainingRunNotFound(
|
|
15852
|
-
() => parseRunIdPositional(
|
|
15852
|
+
() => parseRunIdPositional(_chunkHGQT6EGKjs.parseJsonFields.call(void 0, args, "export").args, ""),
|
|
15853
15853
|
() => handleRunExportAndWrite(args)
|
|
15854
15854
|
);
|
|
15855
15855
|
}
|
|
15856
15856
|
async function handleRunExportAndWrite(args) {
|
|
15857
|
-
const selection =
|
|
15857
|
+
const selection = _chunkHGQT6EGKjs.parseJsonFields.call(void 0, args, "export");
|
|
15858
15858
|
args = selection.args;
|
|
15859
15859
|
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]";
|
|
15860
15860
|
let runId;
|
|
@@ -15925,17 +15925,17 @@ async function handleRunExportAndWrite(args) {
|
|
|
15925
15925
|
"INVALID_ARGUMENT"
|
|
15926
15926
|
);
|
|
15927
15927
|
}
|
|
15928
|
-
const client = new (0,
|
|
15928
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
15929
15929
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
15930
15930
|
runId = assertRunExportStatusIdentity(status, runId);
|
|
15931
15931
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
15932
|
-
const progress =
|
|
15932
|
+
const progress = _chunkPXMCPEE2js.createCliProgress.call(void 0, !_chunkHGQT6EGKjs.argsWantJson.call(void 0, args));
|
|
15933
15933
|
try {
|
|
15934
15934
|
await waitForPlayCompletionByWatch({
|
|
15935
15935
|
client,
|
|
15936
15936
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
15937
15937
|
workflowId: runId,
|
|
15938
|
-
jsonOutput:
|
|
15938
|
+
jsonOutput: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args),
|
|
15939
15939
|
emitLogs: false,
|
|
15940
15940
|
waitTimeoutMs,
|
|
15941
15941
|
startedAt: Date.now(),
|
|
@@ -16003,7 +16003,7 @@ async function handleRunExportAndWrite(args) {
|
|
|
16003
16003
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _627 => _627.rowsInfo, 'access', _628 => _628.totalRows]), () => ( null)),
|
|
16004
16004
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
16005
16005
|
...rowFailures ? { rowFailures } : {},
|
|
16006
|
-
columns:
|
|
16006
|
+
columns: _chunkRWDYULX2js.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _629 => _629.rowsInfo, 'access', _630 => _630.columns]), () => ( []))),
|
|
16007
16007
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
16008
16008
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
16009
16009
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -16037,8 +16037,8 @@ async function handleRunExportAndWrite(args) {
|
|
|
16037
16037
|
"utf-8"
|
|
16038
16038
|
);
|
|
16039
16039
|
}
|
|
16040
|
-
|
|
16041
|
-
json:
|
|
16040
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, payload, {
|
|
16041
|
+
json: _chunkHGQT6EGKjs.argsWantJson.call(void 0, args),
|
|
16042
16042
|
fields: selection.fields,
|
|
16043
16043
|
text: `${lines.join("\n")}
|
|
16044
16044
|
`
|
|
@@ -16076,10 +16076,10 @@ async function handlePlayGet(args) {
|
|
|
16076
16076
|
);
|
|
16077
16077
|
return 2;
|
|
16078
16078
|
}
|
|
16079
|
-
const client = new (0,
|
|
16079
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
16080
16080
|
const explicitJson = args.includes("--json");
|
|
16081
16081
|
const sourceOutput = args.includes("--source");
|
|
16082
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
16082
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkHGQT6EGKjs.argsWantJson.call(void 0, args);
|
|
16083
16083
|
const requestedRevisionFlags = [
|
|
16084
16084
|
args.includes("--working"),
|
|
16085
16085
|
args.includes("--live"),
|
|
@@ -16142,7 +16142,7 @@ async function handlePlayGet(args) {
|
|
|
16142
16142
|
}
|
|
16143
16143
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
16144
16144
|
if (jsonOutput) {
|
|
16145
|
-
|
|
16145
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, {
|
|
16146
16146
|
...detail,
|
|
16147
16147
|
...materializedFile ? {
|
|
16148
16148
|
message: loadedMessage,
|
|
@@ -16234,8 +16234,8 @@ async function handlePlayVersions(args) {
|
|
|
16234
16234
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
16235
16235
|
return 1;
|
|
16236
16236
|
}
|
|
16237
|
-
const client = new (0,
|
|
16238
|
-
const jsonOutput =
|
|
16237
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
16238
|
+
const jsonOutput = _chunkHGQT6EGKjs.argsWantJson.call(void 0, args);
|
|
16239
16239
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16240
16240
|
command: "versions"
|
|
16241
16241
|
});
|
|
@@ -16243,7 +16243,7 @@ async function handlePlayVersions(args) {
|
|
|
16243
16243
|
parseReferencedPlayTarget(playName).playName
|
|
16244
16244
|
);
|
|
16245
16245
|
if (jsonOutput) {
|
|
16246
|
-
|
|
16246
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, { versions });
|
|
16247
16247
|
return 0;
|
|
16248
16248
|
}
|
|
16249
16249
|
if (versions.length === 0) {
|
|
@@ -16282,8 +16282,8 @@ async function handlePlayCost(args) {
|
|
|
16282
16282
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
16283
16283
|
return 2;
|
|
16284
16284
|
}
|
|
16285
|
-
const result = await new (0,
|
|
16286
|
-
if (
|
|
16285
|
+
const result = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
16286
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
16287
16287
|
else
|
|
16288
16288
|
console.log(
|
|
16289
16289
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -16291,9 +16291,9 @@ async function handlePlayCost(args) {
|
|
|
16291
16291
|
return 0;
|
|
16292
16292
|
}
|
|
16293
16293
|
async function handlePlayList(args) {
|
|
16294
|
-
const jsonOutput =
|
|
16294
|
+
const jsonOutput = _chunkHGQT6EGKjs.argsWantJson.call(void 0, args);
|
|
16295
16295
|
const showCost = args.includes("--show-cost");
|
|
16296
|
-
const client = new (0,
|
|
16296
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
16297
16297
|
const categoriesIndex = args.indexOf("--categories");
|
|
16298
16298
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _649 => _649[categoriesIndex + 1], 'optionalAccess', _650 => _650.trim, 'call', _651 => _651()]) : void 0;
|
|
16299
16299
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -16391,7 +16391,7 @@ async function handlePlayList(args) {
|
|
|
16391
16391
|
lines.push("List truncated \u2014 more plays are available.");
|
|
16392
16392
|
lines.push(`Next page: ${nextPage}`);
|
|
16393
16393
|
}
|
|
16394
|
-
|
|
16394
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
16395
16395
|
{
|
|
16396
16396
|
plays,
|
|
16397
16397
|
count: plays.length,
|
|
@@ -16409,7 +16409,7 @@ async function handlePlayList(args) {
|
|
|
16409
16409
|
}
|
|
16410
16410
|
async function handlePlayPin(args, pinned) {
|
|
16411
16411
|
const target = _optionalChain([args, 'access', _660 => _660.find, 'call', _661 => _661((arg) => !arg.startsWith("-")), 'optionalAccess', _662 => _662.trim, 'call', _663 => _663()]);
|
|
16412
|
-
const jsonOutput =
|
|
16412
|
+
const jsonOutput = _chunkHGQT6EGKjs.argsWantJson.call(void 0, args);
|
|
16413
16413
|
const dryRun = args.includes("--dry-run");
|
|
16414
16414
|
if (!target) {
|
|
16415
16415
|
console.error(
|
|
@@ -16427,11 +16427,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
16427
16427
|
const name = parsedTarget.playName;
|
|
16428
16428
|
const plan = { name, pinned, dryRun };
|
|
16429
16429
|
if (dryRun) {
|
|
16430
|
-
|
|
16430
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, plan);
|
|
16431
16431
|
return 0;
|
|
16432
16432
|
}
|
|
16433
|
-
const result = await new (0,
|
|
16434
|
-
if (jsonOutput)
|
|
16433
|
+
const result = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
16434
|
+
if (jsonOutput) _chunkHGQT6EGKjs.printCompactJson.call(void 0, result);
|
|
16435
16435
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
16436
16436
|
return 0;
|
|
16437
16437
|
}
|
|
@@ -16557,12 +16557,12 @@ async function handlePlayGrep(args) {
|
|
|
16557
16557
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
16558
16558
|
return 1;
|
|
16559
16559
|
}
|
|
16560
|
-
const client = new (0,
|
|
16560
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
16561
16561
|
const results = (await client.listPlays({ grep: query })).map(
|
|
16562
16562
|
summarizePlayGrepResult
|
|
16563
16563
|
);
|
|
16564
|
-
if (
|
|
16565
|
-
|
|
16564
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
16565
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, {
|
|
16566
16566
|
plays: results,
|
|
16567
16567
|
count: results.length,
|
|
16568
16568
|
query,
|
|
@@ -16585,7 +16585,7 @@ async function handlePlayGrep(args) {
|
|
|
16585
16585
|
return 0;
|
|
16586
16586
|
}
|
|
16587
16587
|
async function handlePlayDescribe(args) {
|
|
16588
|
-
const selection =
|
|
16588
|
+
const selection = _chunkHGQT6EGKjs.parseJsonFields.call(void 0, args, "describe");
|
|
16589
16589
|
args = selection.args;
|
|
16590
16590
|
const playName = args[0];
|
|
16591
16591
|
if (!playName) {
|
|
@@ -16619,8 +16619,8 @@ async function handlePlayDescribe(args) {
|
|
|
16619
16619
|
`deepline plays check ${playName}`,
|
|
16620
16620
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
16621
16621
|
];
|
|
16622
|
-
if (
|
|
16623
|
-
|
|
16622
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
16623
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, {
|
|
16624
16624
|
ok: false,
|
|
16625
16625
|
error: { message },
|
|
16626
16626
|
next
|
|
@@ -16634,7 +16634,7 @@ async function handlePlayDescribe(args) {
|
|
|
16634
16634
|
}
|
|
16635
16635
|
return 2;
|
|
16636
16636
|
}
|
|
16637
|
-
const client = new (0,
|
|
16637
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
16638
16638
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16639
16639
|
command: "describe"
|
|
16640
16640
|
});
|
|
@@ -16644,9 +16644,9 @@ async function handlePlayDescribe(args) {
|
|
|
16644
16644
|
compact: args.includes("--compact")
|
|
16645
16645
|
}
|
|
16646
16646
|
);
|
|
16647
|
-
if (
|
|
16648
|
-
if (selection.fields)
|
|
16649
|
-
else
|
|
16647
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
16648
|
+
if (selection.fields) _chunkHGQT6EGKjs.printJson.call(void 0, play, selection.fields);
|
|
16649
|
+
else _chunkHGQT6EGKjs.printCompactJson.call(void 0, play);
|
|
16650
16650
|
return 0;
|
|
16651
16651
|
}
|
|
16652
16652
|
printPlayDescription(play);
|
|
@@ -16667,7 +16667,7 @@ async function handlePlaySave(args) {
|
|
|
16667
16667
|
return 2;
|
|
16668
16668
|
}
|
|
16669
16669
|
const watchPlay = options.dryRun ? void 0 : options.watchPlay;
|
|
16670
|
-
const client = watchPlay ? new (0,
|
|
16670
|
+
const client = watchPlay ? new (0, _chunkUKSOIH2Pjs.DeeplineClient)() : void 0;
|
|
16671
16671
|
let attempt;
|
|
16672
16672
|
if (watchPlay && client) {
|
|
16673
16673
|
try {
|
|
@@ -16691,7 +16691,7 @@ async function handlePlaySave(args) {
|
|
|
16691
16691
|
};
|
|
16692
16692
|
let graph;
|
|
16693
16693
|
try {
|
|
16694
|
-
graph = await
|
|
16694
|
+
graph = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
16695
16695
|
"cli.play_save_bundle_graph",
|
|
16696
16696
|
{ targetKind: "file" },
|
|
16697
16697
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -16720,7 +16720,7 @@ async function handlePlaySave(args) {
|
|
|
16720
16720
|
next: `deepline plays check ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.target)}`
|
|
16721
16721
|
};
|
|
16722
16722
|
if (options.jsonOutput) {
|
|
16723
|
-
|
|
16723
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, result);
|
|
16724
16724
|
} else {
|
|
16725
16725
|
console.error(result.message);
|
|
16726
16726
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -16742,7 +16742,7 @@ async function handlePlaySave(args) {
|
|
|
16742
16742
|
};
|
|
16743
16743
|
if (options.dryRun) {
|
|
16744
16744
|
if (options.jsonOutput) {
|
|
16745
|
-
|
|
16745
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, dryRun);
|
|
16746
16746
|
} else {
|
|
16747
16747
|
console.log(`Dry run: ${playName}`);
|
|
16748
16748
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16751,14 +16751,14 @@ async function handlePlaySave(args) {
|
|
|
16751
16751
|
}
|
|
16752
16752
|
return 0;
|
|
16753
16753
|
}
|
|
16754
|
-
const saveClient = _nullishCoalesce(client, () => ( new (0,
|
|
16754
|
+
const saveClient = _nullishCoalesce(client, () => ( new (0, _chunkUKSOIH2Pjs.DeeplineClient)()));
|
|
16755
16755
|
try {
|
|
16756
|
-
await
|
|
16756
|
+
await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
16757
16757
|
"cli.play_save_compile_manifests",
|
|
16758
16758
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16759
16759
|
() => compileBundledPlayGraphManifests(saveClient, graph)
|
|
16760
16760
|
);
|
|
16761
|
-
const saved = await
|
|
16761
|
+
const saved = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
16762
16762
|
"cli.play_save_register_draft",
|
|
16763
16763
|
{ targetKind: "file", playName, artifactHash },
|
|
16764
16764
|
() => saveClient.registerPlayArtifact({
|
|
@@ -16788,7 +16788,7 @@ async function handlePlaySave(args) {
|
|
|
16788
16788
|
}
|
|
16789
16789
|
};
|
|
16790
16790
|
if (options.jsonOutput) {
|
|
16791
|
-
|
|
16791
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, result);
|
|
16792
16792
|
} else {
|
|
16793
16793
|
console.log(
|
|
16794
16794
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -16808,7 +16808,7 @@ async function handlePlaySave(args) {
|
|
|
16808
16808
|
}
|
|
16809
16809
|
}
|
|
16810
16810
|
async function enforceOutcomeGuardrail(input) {
|
|
16811
|
-
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-
|
|
16811
|
+
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-7HCZ6K3Q.js")));
|
|
16812
16812
|
try {
|
|
16813
16813
|
const gate = await requireOutcomeGuardrail({ ...input, phase: "reserve" });
|
|
16814
16814
|
return {
|
|
@@ -16836,7 +16836,7 @@ async function enforceOutcomeGuardrail(input) {
|
|
|
16836
16836
|
}
|
|
16837
16837
|
}
|
|
16838
16838
|
async function settleOutcomeApproval(input) {
|
|
16839
|
-
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-
|
|
16839
|
+
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-7HCZ6K3Q.js")));
|
|
16840
16840
|
const id = `${input.outcome}/${input.approval.seq}`;
|
|
16841
16841
|
try {
|
|
16842
16842
|
await requireOutcomeGuardrail({
|
|
@@ -16868,7 +16868,7 @@ async function handlePlayPublish(args) {
|
|
|
16868
16868
|
}
|
|
16869
16869
|
const { target: playName, useLatest } = options;
|
|
16870
16870
|
let revisionId = options.revisionId;
|
|
16871
|
-
const client = new (0,
|
|
16871
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
16872
16872
|
if (isFileTarget(playName)) {
|
|
16873
16873
|
if (revisionId || useLatest) {
|
|
16874
16874
|
console.error(
|
|
@@ -16878,7 +16878,7 @@ async function handlePlayPublish(args) {
|
|
|
16878
16878
|
}
|
|
16879
16879
|
let graph;
|
|
16880
16880
|
try {
|
|
16881
|
-
graph = await
|
|
16881
|
+
graph = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
16882
16882
|
"cli.play_publish_bundle_graph",
|
|
16883
16883
|
{ targetKind: "file" },
|
|
16884
16884
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -16900,7 +16900,7 @@ async function handlePlayPublish(args) {
|
|
|
16900
16900
|
next: `deepline plays check ${_chunkBVXIGOBZjs.shellQuote.call(void 0, playName)}`
|
|
16901
16901
|
};
|
|
16902
16902
|
if (options.jsonOutput) {
|
|
16903
|
-
|
|
16903
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, result3);
|
|
16904
16904
|
} else {
|
|
16905
16905
|
console.error(result3.message);
|
|
16906
16906
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -16923,7 +16923,7 @@ async function handlePlayPublish(args) {
|
|
|
16923
16923
|
};
|
|
16924
16924
|
if (options.dryRun) {
|
|
16925
16925
|
if (options.jsonOutput) {
|
|
16926
|
-
|
|
16926
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, dryRun);
|
|
16927
16927
|
} else {
|
|
16928
16928
|
console.log(`Dry run: ${rootPlayName}`);
|
|
16929
16929
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16942,12 +16942,12 @@ async function handlePlayPublish(args) {
|
|
|
16942
16942
|
}
|
|
16943
16943
|
}
|
|
16944
16944
|
try {
|
|
16945
|
-
await
|
|
16945
|
+
await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
16946
16946
|
"cli.play_publish_compile_manifests",
|
|
16947
16947
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16948
16948
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
16949
16949
|
);
|
|
16950
|
-
await
|
|
16950
|
+
await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
16951
16951
|
"cli.play_publish_imports",
|
|
16952
16952
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16953
16953
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -16956,7 +16956,7 @@ async function handlePlayPublish(args) {
|
|
|
16956
16956
|
console.error(error instanceof Error ? error.message : String(error));
|
|
16957
16957
|
return 1;
|
|
16958
16958
|
}
|
|
16959
|
-
const published = await
|
|
16959
|
+
const published = await _chunk25SSGQJJjs.traceCliSpan.call(void 0,
|
|
16960
16960
|
"cli.play_publish_register_root",
|
|
16961
16961
|
{
|
|
16962
16962
|
targetKind: "file",
|
|
@@ -16991,7 +16991,7 @@ async function handlePlayPublish(args) {
|
|
|
16991
16991
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
16992
16992
|
};
|
|
16993
16993
|
if (options.jsonOutput) {
|
|
16994
|
-
|
|
16994
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, result2);
|
|
16995
16995
|
} else {
|
|
16996
16996
|
printPublishReceipt({
|
|
16997
16997
|
name: rootPlayName,
|
|
@@ -17022,7 +17022,7 @@ async function handlePlayPublish(args) {
|
|
|
17022
17022
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
17023
17023
|
latest: useLatest
|
|
17024
17024
|
};
|
|
17025
|
-
|
|
17025
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, result2);
|
|
17026
17026
|
return 0;
|
|
17027
17027
|
}
|
|
17028
17028
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -17046,7 +17046,7 @@ async function handlePlayPublish(args) {
|
|
|
17046
17046
|
revisionId ? { revisionId } : {}
|
|
17047
17047
|
);
|
|
17048
17048
|
if (options.jsonOutput) {
|
|
17049
|
-
|
|
17049
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, result);
|
|
17050
17050
|
} else {
|
|
17051
17051
|
printPublishReceipt({
|
|
17052
17052
|
name: result.name,
|
|
@@ -17086,7 +17086,7 @@ async function handlePlayDelete(args) {
|
|
|
17086
17086
|
);
|
|
17087
17087
|
return 2;
|
|
17088
17088
|
}
|
|
17089
|
-
const client = new (0,
|
|
17089
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
17090
17090
|
let detail;
|
|
17091
17091
|
try {
|
|
17092
17092
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -17110,8 +17110,8 @@ async function handlePlayDelete(args) {
|
|
|
17110
17110
|
name: resolvedName,
|
|
17111
17111
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
17112
17112
|
};
|
|
17113
|
-
if (
|
|
17114
|
-
|
|
17113
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
17114
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, result2);
|
|
17115
17115
|
} else {
|
|
17116
17116
|
process.stdout.write(
|
|
17117
17117
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -17121,8 +17121,8 @@ async function handlePlayDelete(args) {
|
|
|
17121
17121
|
return 0;
|
|
17122
17122
|
}
|
|
17123
17123
|
const result = await client.deletePlay(resolvedName);
|
|
17124
|
-
if (
|
|
17125
|
-
|
|
17124
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
17125
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, result);
|
|
17126
17126
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
17127
17127
|
}
|
|
17128
17128
|
if (result.alreadyArchived) {
|
|
@@ -17161,13 +17161,13 @@ async function handlePlayRestore(args) {
|
|
|
17161
17161
|
);
|
|
17162
17162
|
return 2;
|
|
17163
17163
|
}
|
|
17164
|
-
const client = new (0,
|
|
17164
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
17165
17165
|
try {
|
|
17166
17166
|
const result = await client.restorePlay(
|
|
17167
17167
|
parseReferencedPlayTarget(playName).playName
|
|
17168
17168
|
);
|
|
17169
|
-
if (
|
|
17170
|
-
|
|
17169
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
17170
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, result);
|
|
17171
17171
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
17172
17172
|
}
|
|
17173
17173
|
if (result.alreadyActive) {
|
|
@@ -17294,21 +17294,21 @@ Common commands:
|
|
|
17294
17294
|
resume: `deepline plays resume-submission ${_chunkBVXIGOBZjs.shellQuote.call(void 0, path)} --json`
|
|
17295
17295
|
}
|
|
17296
17296
|
};
|
|
17297
|
-
|
|
17297
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0, result2, {
|
|
17298
17298
|
json: options.json,
|
|
17299
17299
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
17300
17300
|
`
|
|
17301
17301
|
});
|
|
17302
17302
|
return;
|
|
17303
17303
|
}
|
|
17304
|
-
const client = new (0,
|
|
17304
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
17305
17305
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
17306
17306
|
throw new Error(
|
|
17307
17307
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
17308
17308
|
);
|
|
17309
17309
|
}
|
|
17310
17310
|
const result = await client.startPlayRun(saved.request);
|
|
17311
|
-
|
|
17311
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
17312
17312
|
{ ...result },
|
|
17313
17313
|
{
|
|
17314
17314
|
json: options.json,
|
|
@@ -17344,7 +17344,7 @@ Examples:
|
|
|
17344
17344
|
).action(async (target, options) => {
|
|
17345
17345
|
process.exitCode = await handlePlayCheck([
|
|
17346
17346
|
target,
|
|
17347
|
-
...
|
|
17347
|
+
..._chunkHGQT6EGKjs.jsonFieldArgs.call(void 0, options.json),
|
|
17348
17348
|
...options.full ? ["--full"] : []
|
|
17349
17349
|
]);
|
|
17350
17350
|
});
|
|
@@ -17391,10 +17391,10 @@ Notes:
|
|
|
17391
17391
|
with a changed input is refused with a 409 conflict. Use one stable key per
|
|
17392
17392
|
exact intent. Without a key, each invocation starts a new run.
|
|
17393
17393
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
17394
|
-
resident-work ceiling. Default: ${
|
|
17394
|
+
resident-work ceiling. Default: ${_chunkW47SXEWQjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkW47SXEWQjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
17395
17395
|
Provider pacing and sandbox memory limits still apply.
|
|
17396
17396
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
17397
|
-
resolvers. Accepted range: 1-${
|
|
17397
|
+
resolvers. Accepted range: 1-${_chunkW47SXEWQjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
17398
17398
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
17399
17399
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
17400
17400
|
Before each tool call, its quoted price is added to what the run has
|
|
@@ -17526,10 +17526,10 @@ Examples:
|
|
|
17526
17526
|
).hideHelp()
|
|
17527
17527
|
).option(
|
|
17528
17528
|
"--max-concurrent-external-calls <count>",
|
|
17529
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
17529
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkW47SXEWQjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkW47SXEWQjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
17530
17530
|
).option(
|
|
17531
17531
|
"--max-concurrent-rows <count>",
|
|
17532
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
17532
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkW47SXEWQjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
17533
17533
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").addOption(
|
|
17534
17534
|
// Internal only: the server refuses it without play_run.cache_reuse_window.
|
|
17535
17535
|
new (0, _commander.Option)(
|
|
@@ -17630,14 +17630,14 @@ JSON field selection:
|
|
|
17630
17630
|
passthroughArgs.shift();
|
|
17631
17631
|
}
|
|
17632
17632
|
const exitCode = await handlePlayRun(
|
|
17633
|
-
|
|
17633
|
+
_chunkW47SXEWQjs.resolvePlayRunCliOptions.call(void 0,
|
|
17634
17634
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
17635
17635
|
options,
|
|
17636
17636
|
passthroughArgs,
|
|
17637
|
-
|
|
17637
|
+
_chunk25SSGQJJjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
17638
17638
|
)
|
|
17639
17639
|
);
|
|
17640
|
-
|
|
17640
|
+
_chunk25SSGQJJjs.recordCliTrace.call(void 0, {
|
|
17641
17641
|
phase: "cli.play_command_exit",
|
|
17642
17642
|
exitCode
|
|
17643
17643
|
});
|
|
@@ -17686,9 +17686,9 @@ Examples:
|
|
|
17686
17686
|
const limit = Number(options.historyLimit);
|
|
17687
17687
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
17688
17688
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
17689
|
-
const client = new (0,
|
|
17689
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
17690
17690
|
if (options.binding) {
|
|
17691
|
-
|
|
17691
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0,
|
|
17692
17692
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
17693
17693
|
);
|
|
17694
17694
|
return;
|
|
@@ -17696,7 +17696,7 @@ Examples:
|
|
|
17696
17696
|
const result = await client.listPlayTriggerInventory({
|
|
17697
17697
|
cursor: options.cursor
|
|
17698
17698
|
});
|
|
17699
|
-
|
|
17699
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, {
|
|
17700
17700
|
...result,
|
|
17701
17701
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
17702
17702
|
});
|
|
@@ -17753,7 +17753,7 @@ Examples:
|
|
|
17753
17753
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
17754
17754
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
17755
17755
|
}
|
|
17756
|
-
const result = await new (0,
|
|
17756
|
+
const result = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().getPlaysActivity({
|
|
17757
17757
|
timeZone: options.timeZone,
|
|
17758
17758
|
days,
|
|
17759
17759
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -17767,7 +17767,7 @@ Examples:
|
|
|
17767
17767
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
17768
17768
|
);
|
|
17769
17769
|
}
|
|
17770
|
-
|
|
17770
|
+
_chunkHGQT6EGKjs.printCommandEnvelope.call(void 0,
|
|
17771
17771
|
{ ...result },
|
|
17772
17772
|
{
|
|
17773
17773
|
json: Boolean(options.json),
|
|
@@ -17796,7 +17796,7 @@ Examples:
|
|
|
17796
17796
|
false
|
|
17797
17797
|
);
|
|
17798
17798
|
});
|
|
17799
|
-
|
|
17799
|
+
_chunkNEH7NZFTjs.registerDeprecatedSearchCommand.call(void 0,
|
|
17800
17800
|
play,
|
|
17801
17801
|
(options) => options.all ? ["prebuilts", "custom"] : ["prebuilts"]
|
|
17802
17802
|
);
|
|
@@ -17837,9 +17837,9 @@ Examples:
|
|
|
17837
17837
|
"--json [fields]",
|
|
17838
17838
|
"JSON output; optionally select comma-separated dotted paths"
|
|
17839
17839
|
);
|
|
17840
|
-
|
|
17840
|
+
_chunkRWDYULX2js.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
17841
17841
|
async (target, options) => {
|
|
17842
|
-
const ownView = () => handlePlayDescribe(
|
|
17842
|
+
const ownView = () => handlePlayDescribe(_chunkHGQT6EGKjs.describeArgs.call(void 0, target, options));
|
|
17843
17843
|
const [flagText] = [options.json].filter(
|
|
17844
17844
|
(value) => typeof value === "string"
|
|
17845
17845
|
);
|
|
@@ -17850,7 +17850,7 @@ Examples:
|
|
|
17850
17850
|
process.exitCode = await ownView();
|
|
17851
17851
|
return;
|
|
17852
17852
|
}
|
|
17853
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
17853
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-Q27SRQWM.js")));
|
|
17854
17854
|
process.exitCode = await describeAnything(
|
|
17855
17855
|
name,
|
|
17856
17856
|
{
|
|
@@ -17973,7 +17973,7 @@ Examples:
|
|
|
17973
17973
|
deepline plays deployments <deployment-id>
|
|
17974
17974
|
`
|
|
17975
17975
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
17976
|
-
async (id, options) => id ?
|
|
17976
|
+
async (id, options) => id ? _chunkCS36W3RLjs.handleDeploymentGet.call(void 0, id, options) : _chunkCS36W3RLjs.handleDeploymentsList.call(void 0, options)
|
|
17977
17977
|
);
|
|
17978
17978
|
addPublishHelp(
|
|
17979
17979
|
play.command("publish <target>").description(
|
|
@@ -18001,10 +18001,10 @@ Examples:
|
|
|
18001
18001
|
new (0, _commander.Option)(
|
|
18002
18002
|
"--outcome <outcome>",
|
|
18003
18003
|
"Run under this outcome. Refused (exit 3) when it asks before plays.set-live and no approval exists"
|
|
18004
|
-
).hideHelp(!
|
|
18004
|
+
).hideHelp(!_chunkXBO4ERH6js.cliFeatureEnabled.call(void 0, "outcomes"))
|
|
18005
18005
|
).addOption(
|
|
18006
18006
|
new (0, _commander.Option)("--as <agent>", "With --outcome: the agent acting").hideHelp(
|
|
18007
|
-
!
|
|
18007
|
+
!_chunkXBO4ERH6js.cliFeatureEnabled.call(void 0, "outcomes")
|
|
18008
18008
|
)
|
|
18009
18009
|
).option("--json", "Emit JSON output").action(async (target, options) => {
|
|
18010
18010
|
const guarded = options.outcome && !options.dryRun ? {
|
|
@@ -18156,14 +18156,14 @@ Examples:
|
|
|
18156
18156
|
const limit = Number(options.limit);
|
|
18157
18157
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
18158
18158
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
18159
|
-
const result = await new (0,
|
|
18159
|
+
const result = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().runs.rowHistory({
|
|
18160
18160
|
playName: options.play,
|
|
18161
18161
|
runId,
|
|
18162
18162
|
tableNamespace: options.dataset,
|
|
18163
18163
|
limit,
|
|
18164
18164
|
cursor: options.cursor
|
|
18165
18165
|
});
|
|
18166
|
-
|
|
18166
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, {
|
|
18167
18167
|
...result,
|
|
18168
18168
|
...result.nextCursor ? {
|
|
18169
18169
|
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`
|
|
@@ -18241,7 +18241,7 @@ Examples:
|
|
|
18241
18241
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
18242
18242
|
).action(async (runId, options) => {
|
|
18243
18243
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
18244
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
18244
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-5BGKNMFU.js")));
|
|
18245
18245
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
18246
18246
|
receiptJson: options.json !== void 0
|
|
18247
18247
|
});
|
|
@@ -18249,7 +18249,7 @@ Examples:
|
|
|
18249
18249
|
}
|
|
18250
18250
|
process.exitCode = await handleRunGet([
|
|
18251
18251
|
runId,
|
|
18252
|
-
...
|
|
18252
|
+
..._chunkHGQT6EGKjs.jsonFieldArgs.call(void 0, options.json),
|
|
18253
18253
|
...options.web ? ["--web"] : [],
|
|
18254
18254
|
...options.webUrl ? ["--web-url"] : [],
|
|
18255
18255
|
...options.full ? ["--full"] : [],
|
|
@@ -18579,7 +18579,7 @@ Examples:
|
|
|
18579
18579
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
18580
18580
|
...options.wait ? ["--wait"] : [],
|
|
18581
18581
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
18582
|
-
...
|
|
18582
|
+
..._chunkHGQT6EGKjs.jsonFieldArgs.call(void 0, options.json)
|
|
18583
18583
|
]);
|
|
18584
18584
|
});
|
|
18585
18585
|
const share = play.command("share").description(
|
|
@@ -18745,10 +18745,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18745
18745
|
return 2;
|
|
18746
18746
|
}
|
|
18747
18747
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18748
|
-
const status = await new (0,
|
|
18748
|
+
const status = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().getSharePage(name);
|
|
18749
18749
|
const outputStatus = shareStatusForOutput(status);
|
|
18750
|
-
if (
|
|
18751
|
-
|
|
18750
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
18751
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, outputStatus);
|
|
18752
18752
|
return 0;
|
|
18753
18753
|
}
|
|
18754
18754
|
if (!outputStatus.share) {
|
|
@@ -18787,7 +18787,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18787
18787
|
return 2;
|
|
18788
18788
|
}
|
|
18789
18789
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18790
|
-
const client = new (0,
|
|
18790
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
18791
18791
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18792
18792
|
let resolvedVersion;
|
|
18793
18793
|
if (!revisionId) {
|
|
@@ -18818,8 +18818,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18818
18818
|
);
|
|
18819
18819
|
if (!hasCompleted) {
|
|
18820
18820
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18821
|
-
if (
|
|
18822
|
-
|
|
18821
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
18822
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, {
|
|
18823
18823
|
ok: false,
|
|
18824
18824
|
code: "NO_SUCCESSFUL_RUN",
|
|
18825
18825
|
message,
|
|
@@ -18843,8 +18843,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18843
18843
|
};
|
|
18844
18844
|
if (args.includes("--dry-run")) {
|
|
18845
18845
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
18846
|
-
if (
|
|
18847
|
-
|
|
18846
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
18847
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, plan);
|
|
18848
18848
|
} else {
|
|
18849
18849
|
console.log(
|
|
18850
18850
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -18854,8 +18854,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18854
18854
|
}
|
|
18855
18855
|
const status = await client.publishSharePage(name, request);
|
|
18856
18856
|
const outputStatus = shareStatusForOutput(status);
|
|
18857
|
-
if (
|
|
18858
|
-
|
|
18857
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
18858
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, outputStatus);
|
|
18859
18859
|
return 0;
|
|
18860
18860
|
}
|
|
18861
18861
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18886,9 +18886,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
18886
18886
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
18887
18887
|
...seoIndexing ? { seoIndexing } : {}
|
|
18888
18888
|
};
|
|
18889
|
-
const status = await new (0,
|
|
18890
|
-
if (
|
|
18891
|
-
|
|
18889
|
+
const status = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().updateSharePage(name, request);
|
|
18890
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
18891
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, status);
|
|
18892
18892
|
return 0;
|
|
18893
18893
|
}
|
|
18894
18894
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -18903,7 +18903,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18903
18903
|
return 2;
|
|
18904
18904
|
}
|
|
18905
18905
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18906
|
-
const client = new (0,
|
|
18906
|
+
const client = new (0, _chunkUKSOIH2Pjs.DeeplineClient)();
|
|
18907
18907
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18908
18908
|
const versionFlag = shareFlagValue(args, "--version");
|
|
18909
18909
|
if (!revisionId && versionFlag) {
|
|
@@ -18920,8 +18920,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18920
18920
|
revisionId ? { revisionId } : {}
|
|
18921
18921
|
);
|
|
18922
18922
|
const outputStatus = shareStatusForOutput(status);
|
|
18923
|
-
if (
|
|
18924
|
-
|
|
18923
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
18924
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, outputStatus);
|
|
18925
18925
|
return 0;
|
|
18926
18926
|
}
|
|
18927
18927
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18946,9 +18946,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
18946
18946
|
return 2;
|
|
18947
18947
|
}
|
|
18948
18948
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18949
|
-
const status = await new (0,
|
|
18950
|
-
if (
|
|
18951
|
-
|
|
18949
|
+
const status = await new (0, _chunkUKSOIH2Pjs.DeeplineClient)().unpublishSharePage(name);
|
|
18950
|
+
if (_chunkHGQT6EGKjs.argsWantJson.call(void 0, args)) {
|
|
18951
|
+
_chunkHGQT6EGKjs.printCompactJson.call(void 0, status);
|
|
18952
18952
|
return 0;
|
|
18953
18953
|
}
|
|
18954
18954
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -19029,4 +19029,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
19029
19029
|
|
|
19030
19030
|
|
|
19031
19031
|
|
|
19032
|
-
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 =
|
|
19032
|
+
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 = _chunkW47SXEWQjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkW47SXEWQjs.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;
|