deepline 0.3.569 → 0.3.571
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +25 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +17 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-connection-probe.ts +199 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +43 -0
- package/dist/cli/{auth-VNJLXDGF.mjs → auth-ARGNQK7A.mjs} +5 -5
- package/dist/cli/auth-FKYYYCME.js +44 -0
- package/dist/cli/{billing-OTIIK5ZQ.js → billing-KAKODYTN.js} +99 -99
- package/dist/cli/{billing-6HD5LEI2.mjs → billing-QRZTHCBX.mjs} +8 -8
- package/dist/cli/{chunk-HLRSNCPM.js → chunk-2IZOCGOA.js} +53 -53
- package/dist/cli/{chunk-FPRLFIYT.mjs → chunk-336AHC7H.mjs} +4 -4
- package/dist/cli/{chunk-FSAOU4HA.js → chunk-6N3NTEJ6.js} +20 -20
- package/dist/cli/{chunk-H3SQMLHO.js → chunk-6OP5UW7C.js} +48 -48
- package/dist/cli/{chunk-MIGJHZ3P.js → chunk-73P76DCN.js} +20 -20
- package/dist/cli/{chunk-JXRWSBJZ.mjs → chunk-7HAYEKC4.mjs} +1 -1
- package/dist/cli/{chunk-H7DRZXYF.js → chunk-7JGHNZTD.js} +4 -4
- package/dist/cli/{chunk-7QH52S3E.mjs → chunk-A3B54QEW.mjs} +3 -3
- package/dist/cli/{chunk-IEOIGU5A.mjs → chunk-A3IVPA6Q.mjs} +1 -1
- package/dist/cli/{chunk-WVS2ITKP.js → chunk-A5HDA22N.js} +3 -3
- package/dist/cli/{chunk-6HEZRKAO.mjs → chunk-AD7BGMTL.mjs} +2 -2
- package/dist/cli/{chunk-N5ZOD3LA.js → chunk-AOMVAXGX.js} +10 -10
- package/dist/cli/{chunk-SWREMC6J.js → chunk-C27FK36H.js} +5 -5
- package/dist/cli/{chunk-6Z7B3IOW.js → chunk-C3FHMJ4A.js} +2 -2
- package/dist/cli/{chunk-X4WPW5O3.mjs → chunk-C6XV2DPY.mjs} +3 -3
- package/dist/cli/{chunk-OFBP336D.mjs → chunk-CF6CSAMJ.mjs} +4 -4
- package/dist/cli/{chunk-EDNWMQZQ.mjs → chunk-CFMIWRGD.mjs} +2 -2
- package/dist/cli/{chunk-YTOILYBU.js → chunk-CITDBSXI.js} +26 -26
- package/dist/cli/{chunk-D3BJ2KZX.mjs → chunk-CR6IPQBB.mjs} +1 -1
- package/dist/cli/{chunk-YTYDKSK7.mjs → chunk-ETGM6PIR.mjs} +5 -5
- package/dist/cli/{chunk-CK6U2NH2.mjs → chunk-FQP5VSVF.mjs} +1 -1
- package/dist/cli/{chunk-PAFSVZCZ.js → chunk-GACQOGRS.js} +15 -15
- package/dist/cli/{chunk-UOMMXLDU.mjs → chunk-GCE5KOJJ.mjs} +11 -11
- package/dist/cli/{chunk-ANXJNE2G.js → chunk-GOUKX6XD.js} +3 -3
- package/dist/cli/{chunk-45OTCUAC.mjs → chunk-GRD3DLH7.mjs} +2 -2
- package/dist/cli/{chunk-DG6ILAO7.mjs → chunk-H6QMUX7Y.mjs} +2 -2
- package/dist/cli/{chunk-S4MDYDCF.js → chunk-HGER4CJA.js} +5 -5
- package/dist/cli/{chunk-TZVKEUM6.js → chunk-IFKZQCPX.js} +1 -1
- package/dist/cli/{chunk-IGIUAHTR.js → chunk-ILKUKEWX.js} +41 -41
- package/dist/cli/{chunk-4CLEOTG6.js → chunk-IXFFOZZQ.js} +2 -2
- package/dist/cli/{chunk-YNSVWNRY.mjs → chunk-J5KW2ZDB.mjs} +1 -1
- package/dist/cli/{chunk-QLMMNBJW.js → chunk-MFBFQUQK.js} +6 -6
- package/dist/cli/{chunk-TH2GHSF6.js → chunk-NAGGCF6Y.js} +5 -5
- package/dist/cli/{chunk-AKNJDDSM.mjs → chunk-PO3NOBHU.mjs} +1 -1
- package/dist/cli/{chunk-LOF7H5V3.js → chunk-PTM5V5FV.js} +7 -7
- package/dist/cli/{chunk-P2LVKWU6.mjs → chunk-QRMTITKL.mjs} +2 -2
- package/dist/cli/{chunk-44HOKKIN.js → chunk-RBPR5ZNN.js} +100 -100
- package/dist/cli/{chunk-3WZ3X46C.js → chunk-SJYLLHHZ.js} +13 -13
- package/dist/cli/{chunk-7NP7WZV2.mjs → chunk-TJU2BECV.mjs} +3 -3
- package/dist/cli/{chunk-SRMDDVWK.mjs → chunk-UBNRPJKO.mjs} +5 -5
- package/dist/cli/{chunk-TRE5X6VQ.mjs → chunk-UTGHPC5D.mjs} +1 -1
- package/dist/cli/{chunk-S3VGWMFX.js → chunk-VLQB65HI.js} +9 -9
- package/dist/cli/{chunk-WPCY5PR3.mjs → chunk-VULSFPD4.mjs} +5 -5
- package/dist/cli/{chunk-7MZUSBSI.js → chunk-WOU2WS6S.js} +23 -23
- package/dist/cli/{chunk-6D4WBX7E.mjs → chunk-WZOUXILM.mjs} +1 -1
- package/dist/cli/{chunk-IS4NFIQY.js → chunk-XD4MT4BH.js} +8 -8
- package/dist/cli/{chunk-YLZ63U7S.mjs → chunk-YDM5WSXO.mjs} +5 -5
- package/dist/cli/{chunk-GSUHJUNZ.mjs → chunk-YDULFKDL.mjs} +2 -2
- package/dist/cli/{chunk-SMAXLMM3.js → chunk-YGGHPEWP.js} +15 -15
- package/dist/cli/{chunk-QKPKVLTG.js → chunk-YQ36Z23U.js} +2 -2
- package/dist/cli/{chunk-TALKTQK5.mjs → chunk-Z3DSCE5F.mjs} +1 -1
- package/dist/cli/{chunk-6SBGYX25.mjs → chunk-Z6OUUAIV.mjs} +2 -2
- package/dist/cli/{concurrent-runs-help-BVBGDMNV.mjs → concurrent-runs-help-VPYB4ODC.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-VUMIMYO7.js +22 -0
- package/dist/cli/{csv-G25E43QV.js → csv-GHGDSFNV.js} +13 -13
- package/dist/cli/{csv-BUZIP2TV.mjs → csv-RALLG3MG.mjs} +4 -4
- package/dist/cli/{db-KYIDDEEE.js → db-722SKSIB.js} +27 -27
- package/dist/cli/{db-EUN7RRDX.mjs → db-HB65VYRR.mjs} +6 -6
- package/dist/cli/{describe-CTYSKRQB.mjs → describe-Q6M7PUBU.mjs} +18 -18
- package/dist/cli/describe-SG2N62VE.js +50 -0
- package/dist/cli/{executions-BRSOIIV7.mjs → executions-G3M75HW2.mjs} +6 -6
- package/dist/cli/{executions-LQA34Z76.js → executions-GQNV3LNU.js} +8 -8
- package/dist/cli/{feedback-RVYWQRSZ.js → feedback-B43F2FBL.js} +14 -14
- package/dist/cli/{feedback-JYL2FTWI.mjs → feedback-CSDBYSRS.mjs} +6 -6
- package/dist/cli/git-IJHKRWTR.js +26 -0
- package/dist/cli/{git-2Z2KYPCV.mjs → git-IZ4Y3RAW.mjs} +5 -5
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-QFS62VWE.mjs → integrations-DT7EGM2Y.mjs} +7 -7
- package/dist/cli/{integrations-JK3OT5BT.js → integrations-OLCUWZ6Z.js} +29 -29
- package/dist/cli/{legacy-noops-NBKBFVDO.mjs → legacy-noops-4TPT534L.mjs} +6 -6
- package/dist/cli/{legacy-noops-RYP5LN5D.js → legacy-noops-FTGNTO3U.js} +9 -9
- package/dist/cli/{mcp-KPY7NZPI.js → mcp-3IDWLBKK.js} +24 -24
- package/dist/cli/{mcp-KVGJK3SM.mjs → mcp-5KDJJT7M.mjs} +4 -4
- package/dist/cli/{monitors-DE5SX3CP.js → monitors-7GOZBKJR.js} +100 -100
- package/dist/cli/{monitors-H3UWQMMI.mjs → monitors-EOAA5RQO.mjs} +7 -7
- package/dist/cli/{org-N6I5K56T.mjs → org-H5I56A4F.mjs} +6 -6
- package/dist/cli/{org-CDCSMG3J.js → org-UJ5SWQJ5.js} +121 -121
- package/dist/cli/{outcomes-UNAOLWWO.js → outcomes-24KFY2X5.js} +14 -14
- package/dist/cli/{outcomes-EPEMTJVB.mjs → outcomes-MG57YXJX.mjs} +6 -6
- package/dist/cli/{play-VVM5XJFT.mjs → play-MXPXRAUM.mjs} +19 -19
- package/dist/cli/{play-7TVJ3DFQ.js → play-PPPACSQE.js} +324 -324
- package/dist/cli/{providers-47CT527B.mjs → providers-5ZN3MO6E.mjs} +6 -6
- package/dist/cli/{providers-ANYRJ56K.js → providers-LTYNEXLB.js} +9 -9
- package/dist/cli/{quickstart-QHMC5YCM.mjs → quickstart-ENDTTNLE.mjs} +4 -4
- package/dist/cli/{quickstart-H4MI6LVO.js → quickstart-UBDHX7PT.js} +6 -6
- package/dist/cli/{run-V4UAYPAX.js → run-6O6LQVWD.js} +44 -44
- package/dist/cli/{run-NXC5W5CW.mjs → run-QJJSP35C.mjs} +23 -23
- package/dist/cli/{search-BEU4VBY4.mjs → search-PXZPVXDK.mjs} +7 -7
- package/dist/cli/search-TYPJWK4I.js +32 -0
- package/dist/cli/{search-output-NUGUU7VJ.js → search-output-H3ZQLJUF.js} +6 -6
- package/dist/cli/{search-output-DUA3WDB7.mjs → search-output-KRR4YOJX.mjs} +4 -4
- package/dist/cli/{secrets-XQOOWTH2.mjs → secrets-HIGERL4N.mjs} +6 -6
- package/dist/cli/{secrets-PFDBC5KO.js → secrets-QZMXBI64.js} +15 -15
- package/dist/cli/{sessions-U2ZS5R42.mjs → sessions-4SGQAX3F.mjs} +6 -6
- package/dist/cli/sessions-OS4ZBU4K.js +23 -0
- package/dist/cli/{settings-ATYARYCR.js → settings-FFTTVDRV.js} +85 -85
- package/dist/cli/{settings-GPDE7DL2.mjs → settings-UQLHVBOP.mjs} +12 -12
- package/dist/cli/{setup-UDO6BY5A.mjs → setup-R5MBUG5M.mjs} +9 -9
- package/dist/cli/{setup-4AYMU7NK.js → setup-SS3MABJP.js} +49 -49
- package/dist/cli/skills-FVDSEEUL.js +37 -0
- package/dist/cli/{skills-RACTA7VV.mjs → skills-X6PNEVWX.mjs} +7 -7
- package/dist/cli/tools-ORTGWD63.js +57 -0
- package/dist/cli/{tools-TXI6XFHE.mjs → tools-YFW3FXAB.mjs} +17 -17
- package/dist/cli/{update-VHTKWNXO.mjs → update-HX5BNFLQ.mjs} +9 -9
- package/dist/cli/update-RWVNNNHN.js +37 -0
- package/dist/cli/{views-DVBO3L63.js → views-BGCRC22G.js} +21 -21
- package/dist/cli/{views-GCNEHB7D.mjs → views-FH5XL2PU.mjs} +6 -6
- package/dist/cli/{workflow-TFRJ5JKX.js → workflow-UY5PZBIK.js} +17 -17
- package/dist/cli/{workflow-R3A6EGB5.mjs → workflow-VLNDGNJI.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +113 -112
- 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-77NOPZ6A.js +0 -44
- package/dist/cli/concurrent-runs-help-QPUTOBFB.js +0 -22
- package/dist/cli/describe-PJIQSXJ4.js +0 -50
- package/dist/cli/git-MJRG55H7.js +0 -26
- package/dist/cli/search-TUK2STXB.js +0 -32
- package/dist/cli/sessions-5333FFSY.js +0 -23
- package/dist/cli/skills-LB56HJOY.js +0 -37
- package/dist/cli/tools-3Y7KCKZX.js +0 -57
- package/dist/cli/update-EWOLMH3E.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 _chunkCITDBSXIjs = require('./chunk-CITDBSXI.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ var _chunkYTOILYBUjs = require('./chunk-YTOILYBU.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkVLQB65HIjs = require('./chunk-VLQB65HI.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -22,10 +22,10 @@ var _chunkS3VGWMFXjs = require('./chunk-S3VGWMFX.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkPTM5V5FVjs = require('./chunk-PTM5V5FV.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkAOMVAXGXjs = require('./chunk-AOMVAXGX.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 _chunkC27FK36Hjs = require('./chunk-C27FK36H.js');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkHGER4CJAjs = require('./chunk-HGER4CJA.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -67,7 +67,7 @@ var _chunkS4MDYDCFjs = require('./chunk-S4MDYDCF.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkXD4MT4BHjs = require('./chunk-XD4MT4BH.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 _chunkMFBFQUQKjs = require('./chunk-MFBFQUQK.js');
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
var
|
|
100
|
-
require('./chunk-
|
|
99
|
+
var _chunkC3FHMJ4Ajs = require('./chunk-C3FHMJ4A.js');
|
|
100
|
+
require('./chunk-6OP5UW7C.js');
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
var
|
|
104
|
+
var _chunkGOUKX6XDjs = require('./chunk-GOUKX6XD.js');
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
var _chunkE2G2DNABjs = require('./chunk-E2G2DNAB.js');
|
|
@@ -122,13 +122,13 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
var
|
|
125
|
+
var _chunk6N3NTEJ6js = require('./chunk-6N3NTEJ6.js');
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
var
|
|
128
|
+
var _chunkA5HDA22Njs = require('./chunk-A5HDA22N.js');
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
var
|
|
131
|
+
var _chunk7JGHNZTDjs = require('./chunk-7JGHNZTD.js');
|
|
132
132
|
require('./chunk-6VLFQZK6.js');
|
|
133
133
|
require('./chunk-XNYIZMNQ.js');
|
|
134
134
|
|
|
@@ -138,7 +138,7 @@ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
var _chunkCFJFUVX2js = require('./chunk-CFJFUVX2.js');
|
|
141
|
-
require('./chunk-
|
|
141
|
+
require('./chunk-IFKZQCPX.js');
|
|
142
142
|
require('./chunk-OG64RBAC.js');
|
|
143
143
|
|
|
144
144
|
|
|
@@ -2120,7 +2120,7 @@ function resolveField(key, command) {
|
|
|
2120
2120
|
function printSettings(result, json, name) {
|
|
2121
2121
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2122
2122
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2123
|
-
|
|
2123
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
2124
2124
|
{
|
|
2125
2125
|
...result,
|
|
2126
2126
|
settings: Object.fromEntries(
|
|
@@ -2164,7 +2164,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2164
2164
|
valueSyntax: field.cli.valueSyntax,
|
|
2165
2165
|
examples: field.cli.examples
|
|
2166
2166
|
}));
|
|
2167
|
-
|
|
2167
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
2168
2168
|
{
|
|
2169
2169
|
fields: descriptions,
|
|
2170
2170
|
render: {
|
|
@@ -2189,7 +2189,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2189
2189
|
async (options, command) => {
|
|
2190
2190
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2191
2191
|
printSettings(
|
|
2192
|
-
await new (0,
|
|
2192
|
+
await new (0, _chunkHGER4CJAjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2193
2193
|
options.json,
|
|
2194
2194
|
options.name
|
|
2195
2195
|
);
|
|
@@ -2220,7 +2220,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2220
2220
|
);
|
|
2221
2221
|
}
|
|
2222
2222
|
if (options.dryRun) {
|
|
2223
|
-
|
|
2223
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
2224
2224
|
{
|
|
2225
2225
|
dryRun: true,
|
|
2226
2226
|
play,
|
|
@@ -2241,7 +2241,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2241
2241
|
return;
|
|
2242
2242
|
}
|
|
2243
2243
|
printSettings(
|
|
2244
|
-
await new (0,
|
|
2244
|
+
await new (0, _chunkHGER4CJAjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2245
2245
|
options.json
|
|
2246
2246
|
);
|
|
2247
2247
|
};
|
|
@@ -2267,13 +2267,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2267
2267
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2268
2268
|
{ exitCode: 2 }
|
|
2269
2269
|
);
|
|
2270
|
-
const page = await new (0,
|
|
2270
|
+
const page = await new (0, _chunkHGER4CJAjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2271
2271
|
root: options.root,
|
|
2272
2272
|
limit,
|
|
2273
2273
|
cursor: options.cursor
|
|
2274
2274
|
});
|
|
2275
2275
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2276
|
-
|
|
2276
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
2277
2277
|
{
|
|
2278
2278
|
...page,
|
|
2279
2279
|
nextCommand,
|
|
@@ -2324,7 +2324,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2324
2324
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2325
2325
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2326
2326
|
};
|
|
2327
|
-
const client = new (0,
|
|
2327
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
2328
2328
|
const paths = [];
|
|
2329
2329
|
let cursor;
|
|
2330
2330
|
do {
|
|
@@ -2386,7 +2386,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2386
2386
|
moved.push(move.playName);
|
|
2387
2387
|
}
|
|
2388
2388
|
}
|
|
2389
|
-
|
|
2389
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
2390
2390
|
{
|
|
2391
2391
|
dryRun: Boolean(options.dryRun),
|
|
2392
2392
|
from: options.from,
|
|
@@ -2531,7 +2531,7 @@ function triggerLines(view) {
|
|
|
2531
2531
|
return lines;
|
|
2532
2532
|
}
|
|
2533
2533
|
function printView(view, json) {
|
|
2534
|
-
|
|
2534
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
2535
2535
|
{
|
|
2536
2536
|
...view,
|
|
2537
2537
|
render: {
|
|
@@ -2544,7 +2544,7 @@ function printView(view, json) {
|
|
|
2544
2544
|
);
|
|
2545
2545
|
}
|
|
2546
2546
|
function printResult(result, json) {
|
|
2547
|
-
|
|
2547
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
2548
2548
|
{
|
|
2549
2549
|
...result,
|
|
2550
2550
|
render: {
|
|
@@ -2574,7 +2574,7 @@ async function mutate(command, options, build) {
|
|
|
2574
2574
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2575
2575
|
}
|
|
2576
2576
|
if (options.dryRun) {
|
|
2577
|
-
|
|
2577
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
2578
2578
|
{
|
|
2579
2579
|
dryRun: true,
|
|
2580
2580
|
play: options.play,
|
|
@@ -2593,7 +2593,7 @@ async function mutate(command, options, build) {
|
|
|
2593
2593
|
return;
|
|
2594
2594
|
}
|
|
2595
2595
|
printResult(
|
|
2596
|
-
await new (0,
|
|
2596
|
+
await new (0, _chunkHGER4CJAjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2597
2597
|
options.json
|
|
2598
2598
|
);
|
|
2599
2599
|
}
|
|
@@ -2626,7 +2626,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2626
2626
|
}).addHelpText("after", help2);
|
|
2627
2627
|
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
|
|
2628
2628
|
printView(
|
|
2629
|
-
await new (0,
|
|
2629
|
+
await new (0, _chunkHGER4CJAjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2630
2630
|
options.json
|
|
2631
2631
|
);
|
|
2632
2632
|
});
|
|
@@ -2679,7 +2679,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2679
2679
|
if (options.auth === void 0) {
|
|
2680
2680
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2681
2681
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2682
|
-
const current = await new (0,
|
|
2682
|
+
const current = await new (0, _chunkHGER4CJAjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2683
2683
|
options.play
|
|
2684
2684
|
);
|
|
2685
2685
|
return {
|
|
@@ -2756,7 +2756,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2756
2756
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2757
2757
|
"runtime.event": "Other event."
|
|
2758
2758
|
};
|
|
2759
|
-
var RUN_LOGS_KIND_HELP =
|
|
2759
|
+
var RUN_LOGS_KIND_HELP = _chunkXD4MT4BHjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2760
2760
|
kind,
|
|
2761
2761
|
description: KIND_DESCRIPTIONS[kind]
|
|
2762
2762
|
}));
|
|
@@ -2893,9 +2893,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2893
2893
|
const args = program.args;
|
|
2894
2894
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2895
2895
|
error.exitCode = 2;
|
|
2896
|
-
if (
|
|
2897
|
-
|
|
2898
|
-
Object.assign(new (0,
|
|
2896
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2897
|
+
_chunk6N3NTEJ6js.printJsonError.call(void 0,
|
|
2898
|
+
Object.assign(new (0, _chunkXD4MT4BHjs.RunEventQueryInputError)(error.message), {
|
|
2899
2899
|
exitCode: 2,
|
|
2900
2900
|
retryable: false
|
|
2901
2901
|
})
|
|
@@ -2939,14 +2939,14 @@ function parseQuery(args, resource) {
|
|
|
2939
2939
|
if (VALUE_FLAGS.has(flag)) {
|
|
2940
2940
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2941
2941
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2942
|
-
throw new (0,
|
|
2942
|
+
throw new (0, _chunkXD4MT4BHjs.RunEventQueryInputError)(
|
|
2943
2943
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2944
2944
|
);
|
|
2945
2945
|
}
|
|
2946
2946
|
if (flag === "--sum") sums.push(value);
|
|
2947
2947
|
else {
|
|
2948
2948
|
if (values[flag] !== void 0) {
|
|
2949
|
-
throw new (0,
|
|
2949
|
+
throw new (0, _chunkXD4MT4BHjs.RunEventQueryInputError)(
|
|
2950
2950
|
`${flag} may only be supplied once.`
|
|
2951
2951
|
);
|
|
2952
2952
|
}
|
|
@@ -2960,12 +2960,12 @@ function parseQuery(args, resource) {
|
|
|
2960
2960
|
}
|
|
2961
2961
|
if (arg.startsWith("-")) {
|
|
2962
2962
|
const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
|
|
2963
|
-
throw new (0,
|
|
2963
|
+
throw new (0, _chunkXD4MT4BHjs.RunEventQueryInputError)(
|
|
2964
2964
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2965
2965
|
);
|
|
2966
2966
|
}
|
|
2967
2967
|
if (runId !== void 0) {
|
|
2968
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunkXD4MT4BHjs.RunEventQueryInputError)(
|
|
2969
2969
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2970
2970
|
);
|
|
2971
2971
|
}
|
|
@@ -2973,7 +2973,7 @@ function parseQuery(args, resource) {
|
|
|
2973
2973
|
}
|
|
2974
2974
|
if (switches.has("--fields")) {
|
|
2975
2975
|
if (runId !== void 0) {
|
|
2976
|
-
throw new (0,
|
|
2976
|
+
throw new (0, _chunkXD4MT4BHjs.RunEventQueryInputError)(
|
|
2977
2977
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2978
2978
|
);
|
|
2979
2979
|
}
|
|
@@ -2986,18 +2986,18 @@ function parseQuery(args, resource) {
|
|
|
2986
2986
|
)
|
|
2987
2987
|
];
|
|
2988
2988
|
if (incompatible.length) {
|
|
2989
|
-
throw new (0,
|
|
2989
|
+
throw new (0, _chunkXD4MT4BHjs.RunEventQueryInputError)(
|
|
2990
2990
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2991
2991
|
);
|
|
2992
2992
|
}
|
|
2993
2993
|
}
|
|
2994
2994
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2995
|
-
throw new (0,
|
|
2995
|
+
throw new (0, _chunkXD4MT4BHjs.RunEventQueryInputError)(
|
|
2996
2996
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2997
2997
|
);
|
|
2998
2998
|
}
|
|
2999
2999
|
if (sums.length && switches.has("--count")) {
|
|
3000
|
-
throw new (0,
|
|
3000
|
+
throw new (0, _chunkXD4MT4BHjs.RunEventQueryInputError)(
|
|
3001
3001
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
3002
3002
|
);
|
|
3003
3003
|
}
|
|
@@ -3005,7 +3005,7 @@ function parseQuery(args, resource) {
|
|
|
3005
3005
|
if (operation === "count") {
|
|
3006
3006
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
3007
3007
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
3008
|
-
throw new (0,
|
|
3008
|
+
throw new (0, _chunkXD4MT4BHjs.RunEventQueryInputError)(
|
|
3009
3009
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
3010
3010
|
);
|
|
3011
3011
|
}
|
|
@@ -3040,16 +3040,16 @@ function parseQuery(args, resource) {
|
|
|
3040
3040
|
];
|
|
3041
3041
|
}
|
|
3042
3042
|
}
|
|
3043
|
-
const request =
|
|
3043
|
+
const request = _chunkXD4MT4BHjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3044
3044
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3045
3045
|
const backend = values["--runtime-backend"];
|
|
3046
3046
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3047
|
-
throw new (0,
|
|
3047
|
+
throw new (0, _chunkXD4MT4BHjs.RunEventQueryInputError)(
|
|
3048
3048
|
"--runtime-backend must be daytona or modal."
|
|
3049
3049
|
);
|
|
3050
3050
|
}
|
|
3051
3051
|
if (backend && !namespace) {
|
|
3052
|
-
throw new (0,
|
|
3052
|
+
throw new (0, _chunkXD4MT4BHjs.RunEventQueryInputError)(
|
|
3053
3053
|
"--runtime-backend requires --runtime-namespace."
|
|
3054
3054
|
);
|
|
3055
3055
|
}
|
|
@@ -3096,12 +3096,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3096
3096
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3097
3097
|
const record5 = failure;
|
|
3098
3098
|
const status = record5.statusCode;
|
|
3099
|
-
const exitCode = error instanceof
|
|
3099
|
+
const exitCode = error instanceof _chunkXD4MT4BHjs.RunEventQueryInputError || status === 400 || status === 422 || record5.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record5.code === "CONFIG_ERROR" || record5.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3100
3100
|
const diagnostic = Object.assign(failure, {
|
|
3101
3101
|
exitCode,
|
|
3102
3102
|
retryable: exitCode === 5
|
|
3103
3103
|
});
|
|
3104
|
-
if (
|
|
3104
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) _chunk6N3NTEJ6js.printJsonError.call(void 0, diagnostic);
|
|
3105
3105
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3106
3106
|
return exitCode;
|
|
3107
3107
|
}
|
|
@@ -3116,7 +3116,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3116
3116
|
...criteria
|
|
3117
3117
|
} = request;
|
|
3118
3118
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3119
|
-
const client = new (0,
|
|
3119
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
3120
3120
|
let result;
|
|
3121
3121
|
if (request.operation === "fields") {
|
|
3122
3122
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3182,13 +3182,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3182
3182
|
lines.push(`Next page: ${nextPage}`);
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
|
-
|
|
3185
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
3186
3186
|
{
|
|
3187
3187
|
...result,
|
|
3188
3188
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3189
3189
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3190
3190
|
},
|
|
3191
|
-
{ json:
|
|
3191
|
+
{ json: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3192
3192
|
` }
|
|
3193
3193
|
);
|
|
3194
3194
|
return 0;
|
|
@@ -4935,7 +4935,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4935
4935
|
...text3.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4936
4936
|
);
|
|
4937
4937
|
}
|
|
4938
|
-
const response = await new (0,
|
|
4938
|
+
const response = await new (0, _chunkHGER4CJAjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4939
4939
|
keys
|
|
4940
4940
|
});
|
|
4941
4941
|
const failed = response.receipts.filter(
|
|
@@ -4947,7 +4947,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4947
4947
|
JSON.stringify(response, null, 2) + "\n",
|
|
4948
4948
|
{ flag: "wx", mode: 384 }
|
|
4949
4949
|
);
|
|
4950
|
-
|
|
4950
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
4951
4951
|
{
|
|
4952
4952
|
runId,
|
|
4953
4953
|
out: options.out,
|
|
@@ -4957,7 +4957,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4957
4957
|
{ json: true }
|
|
4958
4958
|
);
|
|
4959
4959
|
} else {
|
|
4960
|
-
|
|
4960
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4961
4961
|
}
|
|
4962
4962
|
if (failed)
|
|
4963
4963
|
process.exitCode = response.receipts.some(
|
|
@@ -4996,7 +4996,7 @@ includes nextCommand when another page is available.
|
|
|
4996
4996
|
{ exitCode: 2 }
|
|
4997
4997
|
);
|
|
4998
4998
|
}
|
|
4999
|
-
const page = await new (0,
|
|
4999
|
+
const page = await new (0, _chunkHGER4CJAjs.DeeplineClient)().runs.children(parentRunId, {
|
|
5000
5000
|
launchKey: options.launchKey,
|
|
5001
5001
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
5002
5002
|
limit
|
|
@@ -5011,7 +5011,7 @@ includes nextCommand when another page is available.
|
|
|
5011
5011
|
"--limit",
|
|
5012
5012
|
String(limit)
|
|
5013
5013
|
].join(" ") : null;
|
|
5014
|
-
|
|
5014
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
5015
5015
|
{
|
|
5016
5016
|
parentRunId,
|
|
5017
5017
|
launchKey: options.launchKey,
|
|
@@ -5047,7 +5047,7 @@ async function handleRunsHistory(options) {
|
|
|
5047
5047
|
throw new Error("--limit must be a positive integer.");
|
|
5048
5048
|
}
|
|
5049
5049
|
}
|
|
5050
|
-
const page = await new (0,
|
|
5050
|
+
const page = await new (0, _chunkHGER4CJAjs.DeeplineClient)().runs.history({
|
|
5051
5051
|
cursor: options.cursor,
|
|
5052
5052
|
orgId: options.org,
|
|
5053
5053
|
search: options.search,
|
|
@@ -5063,7 +5063,7 @@ async function handleRunsHistory(options) {
|
|
|
5063
5063
|
);
|
|
5064
5064
|
}
|
|
5065
5065
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
5066
|
-
|
|
5066
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
5067
5067
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
5068
5068
|
options.json ? { json: true } : {}
|
|
5069
5069
|
);
|
|
@@ -5113,12 +5113,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
5113
5113
|
}
|
|
5114
5114
|
}
|
|
5115
5115
|
if (options.notice) console.error(options.notice);
|
|
5116
|
-
const result = await new (0,
|
|
5116
|
+
const result = await new (0, _chunkHGER4CJAjs.DeeplineClient)().runs.rerun(runId, {
|
|
5117
5117
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
5118
5118
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
5119
5119
|
});
|
|
5120
|
-
if (
|
|
5121
|
-
|
|
5120
|
+
if (_chunk6N3NTEJ6js.shouldEmitJson.call(void 0, options.json)) {
|
|
5121
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, result, { json: true });
|
|
5122
5122
|
} else if (result.rateLimited) {
|
|
5123
5123
|
console.log(`
|
|
5124
5124
|
${result.rateLimited.message}`);
|
|
@@ -5142,7 +5142,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
5142
5142
|
// src/cli/operations/runs-resume.ts
|
|
5143
5143
|
async function runRunsResumeCommand(runId) {
|
|
5144
5144
|
try {
|
|
5145
|
-
const result = await new (0,
|
|
5145
|
+
const result = await new (0, _chunkHGER4CJAjs.DeeplineClient)().runs.resume(runId);
|
|
5146
5146
|
if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
|
|
5147
5147
|
throw new Error(
|
|
5148
5148
|
"Invalid resume receipt: expected the requested run and a new positive epoch."
|
|
@@ -5984,13 +5984,13 @@ var RunDataset = class _RunDataset {
|
|
|
5984
5984
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5985
5985
|
_fs.writeFileSync.call(void 0,
|
|
5986
5986
|
absolutePath,
|
|
5987
|
-
`${JSON.stringify(
|
|
5987
|
+
`${JSON.stringify(_chunkPTM5V5FVjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5988
5988
|
`,
|
|
5989
5989
|
"utf-8"
|
|
5990
5990
|
);
|
|
5991
5991
|
return absolutePath;
|
|
5992
5992
|
}
|
|
5993
|
-
return
|
|
5993
|
+
return _chunkPTM5V5FVjs.writeRunDatasetCsv.call(void 0, {
|
|
5994
5994
|
rows: this.rows,
|
|
5995
5995
|
columns: this.#info.columns,
|
|
5996
5996
|
outPath
|
|
@@ -7473,7 +7473,7 @@ function renderOutcome(outcome) {
|
|
|
7473
7473
|
function printResult2(input) {
|
|
7474
7474
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
7475
7475
|
if (failed) process.exitCode = 1;
|
|
7476
|
-
|
|
7476
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
7477
7477
|
{
|
|
7478
7478
|
deployment: { ...input.deployment, status: input.status },
|
|
7479
7479
|
plays: input.outcomes,
|
|
@@ -7498,7 +7498,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
7498
7498
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
7499
7499
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
7500
7500
|
});
|
|
7501
|
-
const { http, config } =
|
|
7501
|
+
const { http, config } = _chunk6N3NTEJ6js.getAuthedHttpClient.call(void 0, );
|
|
7502
7502
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
7503
7503
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
7504
7504
|
deliveryId,
|
|
@@ -7525,7 +7525,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
7525
7525
|
},
|
|
7526
7526
|
{
|
|
7527
7527
|
bundle: bundleDeployPlayFile,
|
|
7528
|
-
fetchImpl:
|
|
7528
|
+
fetchImpl: _chunk7JGHNZTDjs.fetchWithDeploymentProtection,
|
|
7529
7529
|
// The plays are already here: "opening" the source is naming it.
|
|
7530
7530
|
openSource: async () => ({
|
|
7531
7531
|
open: async () => ({ repoRoot: root })
|
|
@@ -7652,7 +7652,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
7652
7652
|
// src/cli/renderers/local-play-execution.ts
|
|
7653
7653
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7654
7654
|
if (options.dryRun) {
|
|
7655
|
-
|
|
7655
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7656
7656
|
return;
|
|
7657
7657
|
}
|
|
7658
7658
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7824,7 +7824,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7824
7824
|
const startedAt = Date.now();
|
|
7825
7825
|
try {
|
|
7826
7826
|
const result = run();
|
|
7827
|
-
|
|
7827
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
7828
7828
|
phase,
|
|
7829
7829
|
ms: Date.now() - startedAt,
|
|
7830
7830
|
ok: true,
|
|
@@ -7832,7 +7832,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7832
7832
|
});
|
|
7833
7833
|
return result;
|
|
7834
7834
|
} catch (error) {
|
|
7835
|
-
|
|
7835
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
7836
7836
|
phase,
|
|
7837
7837
|
ms: Date.now() - startedAt,
|
|
7838
7838
|
ok: false,
|
|
@@ -8645,7 +8645,7 @@ function playStatusErrorText(status) {
|
|
|
8645
8645
|
function isRetryablePendingStartFailure(status) {
|
|
8646
8646
|
if (status.status !== "failed") return false;
|
|
8647
8647
|
if (status.runId && status.runId !== "pending") return false;
|
|
8648
|
-
return
|
|
8648
|
+
return _chunkXD4MT4BHjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8649
8649
|
}
|
|
8650
8650
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
8651
8651
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -8706,7 +8706,7 @@ async function startPlayRunWithTransientRetry(input) {
|
|
|
8706
8706
|
`[play start] response was ambiguous; retrying the same caller intent (${reason})`
|
|
8707
8707
|
);
|
|
8708
8708
|
}
|
|
8709
|
-
|
|
8709
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
8710
8710
|
phase: "cli.play_start_json_retry",
|
|
8711
8711
|
ms: 0,
|
|
8712
8712
|
ok: true,
|
|
@@ -8764,13 +8764,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkLFQJW4S2js.Deep
|
|
|
8764
8764
|
}, _class);
|
|
8765
8765
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8766
8766
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8767
|
-
if (!
|
|
8767
|
+
if (!_chunkXD4MT4BHjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8768
8768
|
return false;
|
|
8769
8769
|
}
|
|
8770
|
-
if (
|
|
8770
|
+
if (_chunkXD4MT4BHjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8771
8771
|
return true;
|
|
8772
8772
|
}
|
|
8773
|
-
return state.verbose === true &&
|
|
8773
|
+
return state.verbose === true && _chunkXD4MT4BHjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8774
8774
|
}
|
|
8775
8775
|
function getEventPayload(event) {
|
|
8776
8776
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9280,7 +9280,7 @@ function resolvePlayRunUrl(input) {
|
|
|
9280
9280
|
}
|
|
9281
9281
|
function openPlayDashboard(url, open2) {
|
|
9282
9282
|
if (open2 && url) {
|
|
9283
|
-
|
|
9283
|
+
_chunk6N3NTEJ6js.openInBrowser.call(void 0, url);
|
|
9284
9284
|
}
|
|
9285
9285
|
}
|
|
9286
9286
|
function printPlayLogLines(input) {
|
|
@@ -9361,7 +9361,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9361
9361
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
9362
9362
|
});
|
|
9363
9363
|
} catch (error) {
|
|
9364
|
-
if (
|
|
9364
|
+
if (_chunkXD4MT4BHjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9365
9365
|
return null;
|
|
9366
9366
|
}
|
|
9367
9367
|
throw error;
|
|
@@ -9442,9 +9442,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9442
9442
|
signal: controller.signal,
|
|
9443
9443
|
deferLogs: !input.emitLogs,
|
|
9444
9444
|
omitTerminalLogs: !input.emitLogs,
|
|
9445
|
-
...
|
|
9445
|
+
..._chunkC3FHMJ4Ajs.isCliTraceEnabled.call(void 0, ) ? {
|
|
9446
9446
|
onPoll: (observation) => {
|
|
9447
|
-
|
|
9447
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
9448
9448
|
phase: "play_watch_poll",
|
|
9449
9449
|
workflowId: input.workflowId,
|
|
9450
9450
|
ms: observation.durationMs,
|
|
@@ -9458,7 +9458,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9458
9458
|
full: input.fullJson,
|
|
9459
9459
|
billing: false,
|
|
9460
9460
|
onStatus: async (status) => {
|
|
9461
|
-
|
|
9461
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
9462
9462
|
phase: "play_watch_terminal_status",
|
|
9463
9463
|
workflowId: input.workflowId,
|
|
9464
9464
|
full: input.fullJson === true
|
|
@@ -9547,7 +9547,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9547
9547
|
signal: controller.signal,
|
|
9548
9548
|
cliAdmission: useCliAdmission
|
|
9549
9549
|
});
|
|
9550
|
-
|
|
9550
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
9551
9551
|
phase: "cli.play_start_admission_attempt",
|
|
9552
9552
|
ms: Date.now() - postStartedAt,
|
|
9553
9553
|
ok: true,
|
|
@@ -9559,7 +9559,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9559
9559
|
});
|
|
9560
9560
|
break;
|
|
9561
9561
|
} catch (error) {
|
|
9562
|
-
|
|
9562
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
9563
9563
|
phase: "cli.play_start_admission_attempt",
|
|
9564
9564
|
ms: Date.now() - postStartedAt,
|
|
9565
9565
|
ok: false,
|
|
@@ -9610,7 +9610,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9610
9610
|
prepared.workflowId
|
|
9611
9611
|
);
|
|
9612
9612
|
}
|
|
9613
|
-
await
|
|
9613
|
+
await _chunkMFBFQUQKjs.checkPlayRunCompatibility.call(void 0,
|
|
9614
9614
|
input.client.baseUrl,
|
|
9615
9615
|
input.maintenancePolicy,
|
|
9616
9616
|
controller.signal
|
|
@@ -9629,7 +9629,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9629
9629
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
9630
9630
|
);
|
|
9631
9631
|
}
|
|
9632
|
-
|
|
9632
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
9633
9633
|
phase: "cli.play_start_json_retry",
|
|
9634
9634
|
ms: 0,
|
|
9635
9635
|
ok: true,
|
|
@@ -9709,7 +9709,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9709
9709
|
_nullishCoalesce(input.open, () => ( false))
|
|
9710
9710
|
);
|
|
9711
9711
|
input.progress.phase("running");
|
|
9712
|
-
|
|
9712
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
9713
9713
|
phase: "cli.play_start_admitted",
|
|
9714
9714
|
ms: Date.now() - startedAt,
|
|
9715
9715
|
ok: true,
|
|
@@ -9727,7 +9727,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9727
9727
|
startedAt,
|
|
9728
9728
|
waitTimeoutMs: input.waitTimeoutMs
|
|
9729
9729
|
});
|
|
9730
|
-
const initialStatus =
|
|
9730
|
+
const initialStatus = _chunkXD4MT4BHjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
9731
9731
|
const status2 = await resolvePlayRunOutputStatus({
|
|
9732
9732
|
client: input.client,
|
|
9733
9733
|
status: initialStatus,
|
|
@@ -9735,7 +9735,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9735
9735
|
jsonOutput: input.jsonOutput,
|
|
9736
9736
|
fromDurableStatus: true
|
|
9737
9737
|
});
|
|
9738
|
-
|
|
9738
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
9739
9739
|
phase: "play_watch_terminal_status",
|
|
9740
9740
|
workflowId,
|
|
9741
9741
|
full: true,
|
|
@@ -9840,7 +9840,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9840
9840
|
});
|
|
9841
9841
|
}
|
|
9842
9842
|
if (error instanceof _chunkMJTVX4QKjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
9843
|
-
await
|
|
9843
|
+
await _chunkMFBFQUQKjs.checkPlayRunCompatibility.call(void 0,
|
|
9844
9844
|
input.client.baseUrl,
|
|
9845
9845
|
input.maintenancePolicy,
|
|
9846
9846
|
admissionDeadline.signal
|
|
@@ -9881,7 +9881,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9881
9881
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9882
9882
|
);
|
|
9883
9883
|
}
|
|
9884
|
-
|
|
9884
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
9885
9885
|
phase: "cli.play_start_stream_retry",
|
|
9886
9886
|
ms: 0,
|
|
9887
9887
|
ok: true,
|
|
@@ -9902,7 +9902,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9902
9902
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9903
9903
|
);
|
|
9904
9904
|
}
|
|
9905
|
-
|
|
9905
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
9906
9906
|
phase: "cli.play_start_stream_retry",
|
|
9907
9907
|
ms: 0,
|
|
9908
9908
|
ok: true,
|
|
@@ -9959,7 +9959,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9959
9959
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9960
9960
|
launchConfirmed = true;
|
|
9961
9961
|
await _optionalChain([input, 'access', _366 => _366.onRunAdmitted, 'optionalCall', _367 => _367(runId)]);
|
|
9962
|
-
|
|
9962
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
9963
9963
|
phase: "cli.play_start_admitted",
|
|
9964
9964
|
ms: Date.now() - startedAt,
|
|
9965
9965
|
ok: true,
|
|
@@ -9993,7 +9993,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9993
9993
|
full: input.fullJson
|
|
9994
9994
|
});
|
|
9995
9995
|
} catch (error) {
|
|
9996
|
-
if (
|
|
9996
|
+
if (_chunkXD4MT4BHjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9997
9997
|
return null;
|
|
9998
9998
|
}
|
|
9999
9999
|
throw error;
|
|
@@ -10164,7 +10164,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10164
10164
|
};
|
|
10165
10165
|
}
|
|
10166
10166
|
if (!canonicalTerminal) {
|
|
10167
|
-
|
|
10167
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
10168
10168
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
10169
10169
|
ms: Date.now() - startedAt,
|
|
10170
10170
|
ok: true,
|
|
@@ -10185,14 +10185,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10185
10185
|
fromDurableStatus
|
|
10186
10186
|
}) : canonicalTerminal;
|
|
10187
10187
|
if (input.fullJson === true) {
|
|
10188
|
-
|
|
10188
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
10189
10189
|
phase: "play_watch_terminal_status",
|
|
10190
10190
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
10191
10191
|
full: true,
|
|
10192
10192
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
10193
10193
|
});
|
|
10194
10194
|
}
|
|
10195
|
-
|
|
10195
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
10196
10196
|
phase: "cli.play_start_stream_terminal",
|
|
10197
10197
|
ms: Date.now() - startedAt,
|
|
10198
10198
|
ok: true,
|
|
@@ -10212,7 +10212,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10212
10212
|
clearTimeout(timeout);
|
|
10213
10213
|
}
|
|
10214
10214
|
controller.abort();
|
|
10215
|
-
|
|
10215
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
10216
10216
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
10217
10217
|
ms: Date.now() - startedAt,
|
|
10218
10218
|
ok: true,
|
|
@@ -10243,7 +10243,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10243
10243
|
if (timedOut) {
|
|
10244
10244
|
const terminal = await fetchKnownTerminalStatus();
|
|
10245
10245
|
if (terminal) {
|
|
10246
|
-
|
|
10246
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
10247
10247
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
10248
10248
|
ms: Date.now() - startedAt,
|
|
10249
10249
|
ok: true,
|
|
@@ -10263,7 +10263,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10263
10263
|
lastPhase
|
|
10264
10264
|
});
|
|
10265
10265
|
}
|
|
10266
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
10266
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkXD4MT4BHjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
10267
10267
|
if (timeout) {
|
|
10268
10268
|
clearTimeout(timeout);
|
|
10269
10269
|
}
|
|
@@ -10274,7 +10274,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10274
10274
|
`
|
|
10275
10275
|
);
|
|
10276
10276
|
}
|
|
10277
|
-
|
|
10277
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
10278
10278
|
phase: "cli.play_start_stream_reconnect",
|
|
10279
10279
|
ms: Date.now() - startedAt,
|
|
10280
10280
|
ok: true,
|
|
@@ -10301,7 +10301,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10301
10301
|
});
|
|
10302
10302
|
}
|
|
10303
10303
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
10304
|
-
|
|
10304
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
10305
10305
|
phase: "cli.play_start_stream_transient_failure",
|
|
10306
10306
|
ms: Date.now() - startedAt,
|
|
10307
10307
|
ok: false,
|
|
@@ -10329,7 +10329,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10329
10329
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
10330
10330
|
);
|
|
10331
10331
|
}
|
|
10332
|
-
|
|
10332
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
10333
10333
|
phase: "cli.play_start_stream_reconnect",
|
|
10334
10334
|
ms: Date.now() - startedAt,
|
|
10335
10335
|
ok: true,
|
|
@@ -10409,7 +10409,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10409
10409
|
"logs"
|
|
10410
10410
|
]);
|
|
10411
10411
|
function formatPlayLogLine(rawLine, state) {
|
|
10412
|
-
const classified =
|
|
10412
|
+
const classified = _chunkXD4MT4BHjs.classifyLogLine.call(void 0, rawLine);
|
|
10413
10413
|
const line = classified.line;
|
|
10414
10414
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10415
10415
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _389 => _389[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10424,14 +10424,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10424
10424
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10425
10425
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10426
10426
|
if (providerWait && !state.verbose) {
|
|
10427
|
-
return
|
|
10427
|
+
return _chunkXD4MT4BHjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10428
10428
|
}
|
|
10429
10429
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10430
10430
|
if (mapProgress && !state.verbose) {
|
|
10431
|
-
return
|
|
10431
|
+
return _chunkXD4MT4BHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10432
10432
|
}
|
|
10433
10433
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10434
|
-
if (!
|
|
10434
|
+
if (!_chunkXD4MT4BHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10435
10435
|
return null;
|
|
10436
10436
|
}
|
|
10437
10437
|
if (state.emittedRunnerStarted) {
|
|
@@ -10444,7 +10444,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10444
10444
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10445
10445
|
);
|
|
10446
10446
|
if (mapStart) {
|
|
10447
|
-
if (!
|
|
10447
|
+
if (!_chunkXD4MT4BHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10448
10448
|
return null;
|
|
10449
10449
|
}
|
|
10450
10450
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10454,7 +10454,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10454
10454
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10455
10455
|
);
|
|
10456
10456
|
if (mapDone) {
|
|
10457
|
-
if (!
|
|
10457
|
+
if (!_chunkXD4MT4BHjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10458
10458
|
return null;
|
|
10459
10459
|
}
|
|
10460
10460
|
const [, results, executed, cached] = mapDone;
|
|
@@ -11776,7 +11776,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11776
11776
|
(line) => typeof line === "string"
|
|
11777
11777
|
);
|
|
11778
11778
|
if (tail.length === 0) return [];
|
|
11779
|
-
const shown = tail.map((line) =>
|
|
11779
|
+
const shown = tail.map((line) => _chunkXD4MT4BHjs.classifyLogLine.call(void 0, line)).filter(
|
|
11780
11780
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11781
11781
|
).slice(-8);
|
|
11782
11782
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -12081,11 +12081,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
12081
12081
|
}
|
|
12082
12082
|
function writePlayResult(status, jsonOutput, options) {
|
|
12083
12083
|
const packaged = getPlayRunPackage(status);
|
|
12084
|
-
if (status.package)
|
|
12084
|
+
if (status.package) _chunkPTM5V5FVjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
12085
12085
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _480 => _480.hits]), () => ( null));
|
|
12086
12086
|
if (jsonOutput) {
|
|
12087
12087
|
const payload2 = _optionalChain([options, 'optionalAccess', _481 => _481.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
12088
|
-
|
|
12088
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
12089
12089
|
hits ? { ...payload2, hits } : payload2,
|
|
12090
12090
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _482 => _482.jsonFields]) }
|
|
12091
12091
|
);
|
|
@@ -12101,7 +12101,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12101
12101
|
...buildPlayCompletionTextLines(status),
|
|
12102
12102
|
...formatRunHitsLines(hits)
|
|
12103
12103
|
];
|
|
12104
|
-
|
|
12104
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, displayPackage, {
|
|
12105
12105
|
json: false,
|
|
12106
12106
|
text: `${lines2.join("\n")}
|
|
12107
12107
|
`
|
|
@@ -12151,7 +12151,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12151
12151
|
lines.push(...buildBillingRollupTextLines(status));
|
|
12152
12152
|
const compact = compactPlayStatus(status);
|
|
12153
12153
|
const payload = _optionalChain([options, 'optionalAccess', _484 => _484.fullJson]) ? status : compact;
|
|
12154
|
-
|
|
12154
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
12155
12155
|
{
|
|
12156
12156
|
...payload,
|
|
12157
12157
|
render: {
|
|
@@ -12375,7 +12375,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
12375
12375
|
}
|
|
12376
12376
|
offset += page.rows.length;
|
|
12377
12377
|
}
|
|
12378
|
-
const withError =
|
|
12378
|
+
const withError = _chunkPTM5V5FVjs.tableExportHasFailedRows.call(void 0,
|
|
12379
12379
|
sheetRows.filter(
|
|
12380
12380
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
12381
12381
|
)
|
|
@@ -12391,7 +12391,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
12391
12391
|
return [
|
|
12392
12392
|
withError ? {
|
|
12393
12393
|
...exported,
|
|
12394
|
-
[
|
|
12394
|
+
[_chunkPTM5V5FVjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkPTM5V5FVjs.tableExportErrorCell.call(void 0,
|
|
12395
12395
|
row
|
|
12396
12396
|
)
|
|
12397
12397
|
} : exported
|
|
@@ -12940,7 +12940,7 @@ function renderServerResultView(value) {
|
|
|
12940
12940
|
function writeStartedPlayRun(input) {
|
|
12941
12941
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12942
12942
|
const run = input.package.run;
|
|
12943
|
-
|
|
12943
|
+
_chunkPTM5V5FVjs.recordPlayTermination.call(void 0, {
|
|
12944
12944
|
id: run.id,
|
|
12945
12945
|
status: run.status,
|
|
12946
12946
|
finishedAt: run.finishedAt
|
|
@@ -12953,7 +12953,7 @@ function writeStartedPlayRun(input) {
|
|
|
12953
12953
|
dashboardUrl: input.dashboardUrl,
|
|
12954
12954
|
package: input.package
|
|
12955
12955
|
};
|
|
12956
|
-
|
|
12956
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12957
12957
|
json: true,
|
|
12958
12958
|
fields: input.jsonFields
|
|
12959
12959
|
});
|
|
@@ -12975,7 +12975,7 @@ function writeStartedPlayRun(input) {
|
|
|
12975
12975
|
input.progress.writeLine(output2, process.stdout);
|
|
12976
12976
|
return;
|
|
12977
12977
|
}
|
|
12978
|
-
|
|
12978
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, input.package, {
|
|
12979
12979
|
json: false,
|
|
12980
12980
|
text: `${output2}
|
|
12981
12981
|
`
|
|
@@ -13010,7 +13010,7 @@ function writeStartedPlayRun(input) {
|
|
|
13010
13010
|
) ? [`Stop: deepline runs stop ${_chunkBVXIGOBZjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
13011
13011
|
];
|
|
13012
13012
|
if (input.jsonOutput) {
|
|
13013
|
-
|
|
13013
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
13014
13014
|
return;
|
|
13015
13015
|
}
|
|
13016
13016
|
const output = lines.join("\n");
|
|
@@ -13018,7 +13018,7 @@ function writeStartedPlayRun(input) {
|
|
|
13018
13018
|
input.progress.writeLine(output, process.stdout);
|
|
13019
13019
|
return;
|
|
13020
13020
|
}
|
|
13021
|
-
|
|
13021
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
13022
13022
|
{
|
|
13023
13023
|
...payload,
|
|
13024
13024
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -13028,7 +13028,7 @@ function writeStartedPlayRun(input) {
|
|
|
13028
13028
|
);
|
|
13029
13029
|
}
|
|
13030
13030
|
function parsePlayCheckOptions(args) {
|
|
13031
|
-
const selection =
|
|
13031
|
+
const selection = _chunk6N3NTEJ6js.parseJsonFields.call(void 0, args, "check");
|
|
13032
13032
|
args = selection.args;
|
|
13033
13033
|
const target = args[0];
|
|
13034
13034
|
if (!target || target.startsWith("-")) {
|
|
@@ -13040,7 +13040,7 @@ function parsePlayCheckOptions(args) {
|
|
|
13040
13040
|
if (arg !== "--json" && arg !== "--full")
|
|
13041
13041
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
13042
13042
|
}
|
|
13043
|
-
const jsonOutput =
|
|
13043
|
+
const jsonOutput = _chunk6N3NTEJ6js.argsWantJson.call(void 0, args);
|
|
13044
13044
|
return {
|
|
13045
13045
|
target,
|
|
13046
13046
|
jsonOutput,
|
|
@@ -13116,7 +13116,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
13116
13116
|
useLatest,
|
|
13117
13117
|
expectedArtifactHash,
|
|
13118
13118
|
dryRun,
|
|
13119
|
-
jsonOutput:
|
|
13119
|
+
jsonOutput: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args)
|
|
13120
13120
|
};
|
|
13121
13121
|
}
|
|
13122
13122
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--watch-play <play-reference>] [--dry-run] [--json]\nUse --watch-play to show invalid source on your own open working canvas while keeping the last valid diagram.";
|
|
@@ -13165,7 +13165,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
13165
13165
|
expectedArtifactHash,
|
|
13166
13166
|
watchPlay,
|
|
13167
13167
|
dryRun,
|
|
13168
|
-
jsonOutput:
|
|
13168
|
+
jsonOutput: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args)
|
|
13169
13169
|
};
|
|
13170
13170
|
}
|
|
13171
13171
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -13354,7 +13354,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
13354
13354
|
async function handlePlayCheck(args) {
|
|
13355
13355
|
const options = parsePlayCheckOptions(args);
|
|
13356
13356
|
if (!isFileTarget(options.target)) {
|
|
13357
|
-
const client = new (0,
|
|
13357
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
13358
13358
|
try {
|
|
13359
13359
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
13360
13360
|
command: "check"
|
|
@@ -13383,7 +13383,7 @@ async function handlePlayCheck(args) {
|
|
|
13383
13383
|
},
|
|
13384
13384
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
13385
13385
|
};
|
|
13386
|
-
|
|
13386
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, result, {
|
|
13387
13387
|
json: options.jsonOutput,
|
|
13388
13388
|
fields: options.jsonFields,
|
|
13389
13389
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -13393,7 +13393,7 @@ async function handlePlayCheck(args) {
|
|
|
13393
13393
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
13394
13394
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
13395
13395
|
if (options.jsonOutput) {
|
|
13396
|
-
|
|
13396
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
13397
13397
|
{
|
|
13398
13398
|
kind: "play_check",
|
|
13399
13399
|
checked: "named_contract",
|
|
@@ -13427,7 +13427,7 @@ async function handlePlayCheck(args) {
|
|
|
13427
13427
|
full: options.full,
|
|
13428
13428
|
publishCommand: _optionalChain([primary, 'optionalAccess', _534 => _534.result, 'access', _535 => _535.artifactHash]) ? `deepline plays publish ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
13429
13429
|
});
|
|
13430
|
-
|
|
13430
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, output, {
|
|
13431
13431
|
json: options.jsonOutput,
|
|
13432
13432
|
fields: options.jsonFields,
|
|
13433
13433
|
jsonLayout: "readable",
|
|
@@ -13499,7 +13499,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13499
13499
|
}
|
|
13500
13500
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13501
13501
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13502
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
13502
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunkHGER4CJAjs.DeeplineClient)()));
|
|
13503
13503
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13504
13504
|
const checked = await checkLocalPlayGraph({
|
|
13505
13505
|
client,
|
|
@@ -13561,8 +13561,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13561
13561
|
let prefetchClient;
|
|
13562
13562
|
let admissionCapability;
|
|
13563
13563
|
let cancelAdmissionCapability;
|
|
13564
|
-
let cliAdmission =
|
|
13565
|
-
const progress = _nullishCoalesce(
|
|
13564
|
+
let cliAdmission = _chunkMFBFQUQKjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13565
|
+
const progress = _nullishCoalesce(_chunkGOUKX6XDjs.getActiveCliProgress.call(void 0, ), () => ( _chunkGOUKX6XDjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13566
13566
|
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _544 => _544.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
13567
13567
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
13568
13568
|
progress.phase("compiling play");
|
|
@@ -13579,11 +13579,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13579
13579
|
return 1;
|
|
13580
13580
|
}
|
|
13581
13581
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13582
|
-
const clientForPrefetch = new (0,
|
|
13582
|
+
const clientForPrefetch = new (0, _chunkHGER4CJAjs.DeeplineClient)(playRunClientOptions(options));
|
|
13583
13583
|
prefetchClient = clientForPrefetch;
|
|
13584
13584
|
const capabilityController = new AbortController();
|
|
13585
13585
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13586
|
-
admissionCapability =
|
|
13586
|
+
admissionCapability = _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
13587
13587
|
"cli.play_admission_capability_prefetch",
|
|
13588
13588
|
{ targetKind: "file" },
|
|
13589
13589
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -13594,7 +13594,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13594
13594
|
}
|
|
13595
13595
|
let graph;
|
|
13596
13596
|
try {
|
|
13597
|
-
graph = await
|
|
13597
|
+
graph = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
13598
13598
|
"cli.play_file_bundle_graph",
|
|
13599
13599
|
{ targetKind: "file" },
|
|
13600
13600
|
() => collectBundledPlayGraph(
|
|
@@ -13607,7 +13607,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13607
13607
|
assertPlayGraphAuthoring(graph);
|
|
13608
13608
|
if (options.dryRun) {
|
|
13609
13609
|
progress.complete();
|
|
13610
|
-
const plan =
|
|
13610
|
+
const plan = _chunkC27FK36Hjs.planLocalPlayExecution.call(void 0, graph, {
|
|
13611
13611
|
runIdFile: options.runIdFile
|
|
13612
13612
|
});
|
|
13613
13613
|
if (_optionalChain([hooks, 'optionalAccess', _545 => _545.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
@@ -13618,9 +13618,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13618
13618
|
});
|
|
13619
13619
|
return 0;
|
|
13620
13620
|
}
|
|
13621
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
13621
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkHGER4CJAjs.DeeplineClient)(playRunClientOptions(options))));
|
|
13622
13622
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
13623
|
-
await
|
|
13623
|
+
await _chunkMFBFQUQKjs.checkPlayRunCompatibility.call(void 0,
|
|
13624
13624
|
client.baseUrl,
|
|
13625
13625
|
options.maintenancePolicy
|
|
13626
13626
|
);
|
|
@@ -13633,7 +13633,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13633
13633
|
});
|
|
13634
13634
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput) && !mayBindBareFileName(graph.root, runtimeInput);
|
|
13635
13635
|
if (canDeferCompilerManifest) {
|
|
13636
|
-
|
|
13636
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
13637
13637
|
phase: "cli.play_file_compile_manifests",
|
|
13638
13638
|
ms: 0,
|
|
13639
13639
|
ok: true,
|
|
@@ -13642,7 +13642,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13642
13642
|
reason: "validated_by_run_route"
|
|
13643
13643
|
});
|
|
13644
13644
|
} else {
|
|
13645
|
-
await
|
|
13645
|
+
await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
13646
13646
|
"cli.play_file_compile_manifests",
|
|
13647
13647
|
{ targetKind: "file", skipped: false },
|
|
13648
13648
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -13650,7 +13650,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13650
13650
|
}
|
|
13651
13651
|
progress.phase("compiled play");
|
|
13652
13652
|
} catch (error) {
|
|
13653
|
-
if (error instanceof
|
|
13653
|
+
if (error instanceof _chunkPTM5V5FVjs.ExecutionOutputError) throw error;
|
|
13654
13654
|
progress.fail();
|
|
13655
13655
|
reportError(normalizePlayValidationError(error));
|
|
13656
13656
|
return 1;
|
|
@@ -13661,13 +13661,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13661
13661
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
13662
13662
|
try {
|
|
13663
13663
|
renderLocalPlayExecutionPlan(
|
|
13664
|
-
|
|
13664
|
+
_chunkC27FK36Hjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
13665
13665
|
);
|
|
13666
13666
|
progress.phase("pinning imported plays");
|
|
13667
|
-
graph = await
|
|
13667
|
+
graph = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
13668
13668
|
"cli.play_file_pin_imports",
|
|
13669
13669
|
{ targetKind: "file" },
|
|
13670
|
-
() =>
|
|
13670
|
+
() => _chunkC27FK36Hjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
13671
13671
|
);
|
|
13672
13672
|
bundleResult = graph.root;
|
|
13673
13673
|
} catch (error) {
|
|
@@ -13684,7 +13684,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13684
13684
|
inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _546 => _546.authoringContract, 'optionalAccess', _547 => _547.inputSchema]),
|
|
13685
13685
|
staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _548 => _548.staticPipeline])
|
|
13686
13686
|
});
|
|
13687
|
-
const stagedFileInputs = await
|
|
13687
|
+
const stagedFileInputs = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
13688
13688
|
"cli.play_stage_inputs",
|
|
13689
13689
|
{
|
|
13690
13690
|
targetKind: "file",
|
|
@@ -13735,7 +13735,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13735
13735
|
};
|
|
13736
13736
|
if (options.watch) {
|
|
13737
13737
|
progress.phase("starting run");
|
|
13738
|
-
const finalStatus = await
|
|
13738
|
+
const finalStatus = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
13739
13739
|
"cli.play_start_watch",
|
|
13740
13740
|
{ targetKind: "file", playName },
|
|
13741
13741
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13797,7 +13797,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13797
13797
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13798
13798
|
}
|
|
13799
13799
|
progress.phase("starting run");
|
|
13800
|
-
const started = await
|
|
13800
|
+
const started = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
13801
13801
|
"cli.play_start_unwatched",
|
|
13802
13802
|
{ targetKind: "file", playName },
|
|
13803
13803
|
() => startPlayRunWithTransientRetry({
|
|
@@ -13870,9 +13870,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13870
13870
|
if (options.target.kind !== "name") {
|
|
13871
13871
|
throw new Error("Expected a named play run target.");
|
|
13872
13872
|
}
|
|
13873
|
-
const client = new (0,
|
|
13874
|
-
let cliAdmission =
|
|
13875
|
-
const progress = _nullishCoalesce(
|
|
13873
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)(playRunClientOptions(options));
|
|
13874
|
+
let cliAdmission = _chunkMFBFQUQKjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13875
|
+
const progress = _nullishCoalesce(_chunkGOUKX6XDjs.getActiveCliProgress.call(void 0, ), () => ( _chunkGOUKX6XDjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13876
13876
|
const playName = options.target.name;
|
|
13877
13877
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13878
13878
|
try {
|
|
@@ -13890,7 +13890,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13890
13890
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13891
13891
|
const capabilityController = new AbortController();
|
|
13892
13892
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13893
|
-
admissionCapability =
|
|
13893
|
+
admissionCapability = _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
13894
13894
|
"cli.play_admission_capability_prefetch",
|
|
13895
13895
|
{ targetKind: "name", playName },
|
|
13896
13896
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13901,14 +13901,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13901
13901
|
}
|
|
13902
13902
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13903
13903
|
progress.phase("loading play definition");
|
|
13904
|
-
return
|
|
13904
|
+
return _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
13905
13905
|
"cli.play_load_definition",
|
|
13906
13906
|
{ targetKind: "name", playName, skipped: false },
|
|
13907
13907
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13908
13908
|
command: "run"
|
|
13909
13909
|
})
|
|
13910
13910
|
);
|
|
13911
|
-
})() : (
|
|
13911
|
+
})() : (_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
13912
13912
|
phase: "cli.play_load_definition",
|
|
13913
13913
|
ms: 0,
|
|
13914
13914
|
ok: true,
|
|
@@ -13917,7 +13917,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13917
13917
|
skipped: true
|
|
13918
13918
|
}), null);
|
|
13919
13919
|
progress.phase("selecting revision");
|
|
13920
|
-
const selectedRevisionId = await
|
|
13920
|
+
const selectedRevisionId = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
13921
13921
|
"cli.play_select_revision",
|
|
13922
13922
|
{
|
|
13923
13923
|
targetKind: "name",
|
|
@@ -13942,10 +13942,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13942
13942
|
..._chunkMJTVX4QKjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13943
13943
|
] : [];
|
|
13944
13944
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13945
|
-
await
|
|
13945
|
+
await _chunkMFBFQUQKjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13946
13946
|
cliAdmission = false;
|
|
13947
13947
|
}
|
|
13948
|
-
const stagedFileInputs = await
|
|
13948
|
+
const stagedFileInputs = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
13949
13949
|
"cli.play_stage_inputs",
|
|
13950
13950
|
{
|
|
13951
13951
|
targetKind: "name",
|
|
@@ -13990,7 +13990,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13990
13990
|
});
|
|
13991
13991
|
if (options.watch) {
|
|
13992
13992
|
progress.phase("starting run");
|
|
13993
|
-
const finalStatus = await
|
|
13993
|
+
const finalStatus = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
13994
13994
|
"cli.play_start_watch",
|
|
13995
13995
|
{ targetKind: "name", playName },
|
|
13996
13996
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -14055,7 +14055,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14055
14055
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
14056
14056
|
}
|
|
14057
14057
|
progress.phase("starting run");
|
|
14058
|
-
const started = await
|
|
14058
|
+
const started = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
14059
14059
|
"cli.play_start_unwatched",
|
|
14060
14060
|
{ targetKind: "name", playName },
|
|
14061
14061
|
() => startPlayRunWithTransientRetry({
|
|
@@ -14122,7 +14122,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14122
14122
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
14123
14123
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _576 => _576.exec, 'call', _577 => _577(status.runId), 'optionalAccess', _578 => _578[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
14124
14124
|
if (!terminal) {
|
|
14125
|
-
|
|
14125
|
+
_chunkPTM5V5FVjs.writeExecutionOutput.call(void 0,
|
|
14126
14126
|
{
|
|
14127
14127
|
id: status.runId,
|
|
14128
14128
|
status: status.status,
|
|
@@ -14202,11 +14202,11 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14202
14202
|
};
|
|
14203
14203
|
}
|
|
14204
14204
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
14205
|
-
const allCollections =
|
|
14205
|
+
const allCollections = _chunkPTM5V5FVjs.outputCollections.call(void 0, data).map(
|
|
14206
14206
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
14207
14207
|
);
|
|
14208
14208
|
const credits = _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _585 => _585.billing, 'optionalAccess', _586 => _586.totalCredits]))), () => ( null));
|
|
14209
|
-
|
|
14209
|
+
_chunkPTM5V5FVjs.writeExecutionOutput.call(void 0,
|
|
14210
14210
|
{
|
|
14211
14211
|
id: status.runId,
|
|
14212
14212
|
status: status.status,
|
|
@@ -14231,7 +14231,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14231
14231
|
}
|
|
14232
14232
|
var TOOL_EXECUTION_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
14233
14233
|
async function handlePlayRun(args, hooks) {
|
|
14234
|
-
const parsedOptions = Array.isArray(args) ?
|
|
14234
|
+
const parsedOptions = Array.isArray(args) ? _chunkVLQB65HIjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
14235
14235
|
const options = parsedOptions.runIdFile ? {
|
|
14236
14236
|
...parsedOptions,
|
|
14237
14237
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -14248,7 +14248,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
14248
14248
|
JSON.stringify({
|
|
14249
14249
|
version: 1,
|
|
14250
14250
|
admissionState: "submitted_unknown",
|
|
14251
|
-
baseUrl: new (0,
|
|
14251
|
+
baseUrl: new (0, _chunkHGER4CJAjs.DeeplineClient)().baseUrl,
|
|
14252
14252
|
...intent
|
|
14253
14253
|
})
|
|
14254
14254
|
);
|
|
@@ -14514,7 +14514,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
14514
14514
|
);
|
|
14515
14515
|
return `${lines.join("\n")}
|
|
14516
14516
|
|
|
14517
|
-
${
|
|
14517
|
+
${_chunk6N3NTEJ6js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
14518
14518
|
}
|
|
14519
14519
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
14520
14520
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -14540,14 +14540,14 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
14540
14540
|
async function handleRunGet(args) {
|
|
14541
14541
|
return explainingRunNotFound(
|
|
14542
14542
|
() => parseRunIdPositional(
|
|
14543
|
-
|
|
14543
|
+
_chunk6N3NTEJ6js.parseJsonFields.call(void 0, args, args.includes("--config") ? "config" : "get").args,
|
|
14544
14544
|
""
|
|
14545
14545
|
),
|
|
14546
14546
|
() => handleRunGetAndPrint(args)
|
|
14547
14547
|
);
|
|
14548
14548
|
}
|
|
14549
14549
|
async function handleRunGetAndPrint(args) {
|
|
14550
|
-
const selection =
|
|
14550
|
+
const selection = _chunk6N3NTEJ6js.parseJsonFields.call(void 0,
|
|
14551
14551
|
args,
|
|
14552
14552
|
args.includes("--config") ? "config" : "get"
|
|
14553
14553
|
);
|
|
@@ -14560,7 +14560,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14560
14560
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14561
14561
|
return 1;
|
|
14562
14562
|
}
|
|
14563
|
-
const client = new (0,
|
|
14563
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
14564
14564
|
const timing = args.includes("--timing");
|
|
14565
14565
|
const web = args.includes("--web");
|
|
14566
14566
|
if (web || args.includes("--web-url")) {
|
|
@@ -14578,8 +14578,8 @@ async function handleRunGetAndPrint(args) {
|
|
|
14578
14578
|
const dashboardUrl2 = _chunkLHPYCJNLjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
14579
14579
|
const runUrl2 = _chunkLHPYCJNLjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
14580
14580
|
if (web) {
|
|
14581
|
-
const opened =
|
|
14582
|
-
|
|
14581
|
+
const opened = _chunk6N3NTEJ6js.openInBrowser.call(void 0, runUrl2);
|
|
14582
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
14583
14583
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
14584
14584
|
{
|
|
14585
14585
|
json: args.includes("--json"),
|
|
@@ -14590,7 +14590,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14590
14590
|
);
|
|
14591
14591
|
return 0;
|
|
14592
14592
|
}
|
|
14593
|
-
|
|
14593
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
14594
14594
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
14595
14595
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
14596
14596
|
` }
|
|
@@ -14615,7 +14615,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14615
14615
|
"This server does not support recorded configuration reads."
|
|
14616
14616
|
);
|
|
14617
14617
|
}
|
|
14618
|
-
|
|
14618
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
14619
14619
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
14620
14620
|
{ json: true, fields: selection.fields }
|
|
14621
14621
|
);
|
|
@@ -14628,7 +14628,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14628
14628
|
timing,
|
|
14629
14629
|
() => client.getRunInput(runId)
|
|
14630
14630
|
);
|
|
14631
|
-
|
|
14631
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, input, { json: true });
|
|
14632
14632
|
return 0;
|
|
14633
14633
|
}
|
|
14634
14634
|
const full = args.includes("--full");
|
|
@@ -14643,7 +14643,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14643
14643
|
failedLogs: args.includes("--log-failed")
|
|
14644
14644
|
})
|
|
14645
14645
|
);
|
|
14646
|
-
if (status.package)
|
|
14646
|
+
if (status.package) _chunkPTM5V5FVjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
14647
14647
|
if (!status.package) {
|
|
14648
14648
|
const legacyStatus = full ? await withRunReadTiming(
|
|
14649
14649
|
"runs get",
|
|
@@ -14657,8 +14657,8 @@ async function handleRunGetAndPrint(args) {
|
|
|
14657
14657
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
14658
14658
|
const legacyDashboardUrl = legacyPlayName ? _chunkLHPYCJNLjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
14659
14659
|
const legacyRunUrl = legacyPlayName ? _chunkLHPYCJNLjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
14660
|
-
if (
|
|
14661
|
-
|
|
14660
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
14661
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
14662
14662
|
{
|
|
14663
14663
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
14664
14664
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -14669,7 +14669,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14669
14669
|
} else {
|
|
14670
14670
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
14671
14671
|
if (legacyRunUrl)
|
|
14672
|
-
|
|
14672
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
14673
14673
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
14674
14674
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
14675
14675
|
` }
|
|
@@ -14699,11 +14699,11 @@ async function handleRunGetAndPrint(args) {
|
|
|
14699
14699
|
)
|
|
14700
14700
|
]);
|
|
14701
14701
|
const hitLines = formatRunHitsLines(hits);
|
|
14702
|
-
const json =
|
|
14702
|
+
const json = _chunk6N3NTEJ6js.argsWantJson.call(void 0, args);
|
|
14703
14703
|
const playName = resolveRunPlayName(status, runId);
|
|
14704
14704
|
const dashboardUrl = playName ? _chunkLHPYCJNLjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
14705
14705
|
const runUrl = playName ? _chunkLHPYCJNLjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
14706
|
-
|
|
14706
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
14707
14707
|
{
|
|
14708
14708
|
...overview,
|
|
14709
14709
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -14808,9 +14808,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
14808
14808
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14809
14809
|
return 1;
|
|
14810
14810
|
}
|
|
14811
|
-
const status = await new (0,
|
|
14812
|
-
if (
|
|
14813
|
-
|
|
14811
|
+
const status = await new (0, _chunkHGER4CJAjs.DeeplineClient)().runs.status(runId);
|
|
14812
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
14813
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, status, { json: true });
|
|
14814
14814
|
return 0;
|
|
14815
14815
|
}
|
|
14816
14816
|
if (!status.available) {
|
|
@@ -14876,7 +14876,7 @@ async function handleRunsRerun(args) {
|
|
|
14876
14876
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14877
14877
|
return 1;
|
|
14878
14878
|
}
|
|
14879
|
-
const options = { json:
|
|
14879
|
+
const options = { json: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args) };
|
|
14880
14880
|
for (let index = 0; index < args.length; index += 1) {
|
|
14881
14881
|
if (args[index] === "--idempotency-key") {
|
|
14882
14882
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14944,8 +14944,8 @@ ${usage2}
|
|
|
14944
14944
|
Discover Plays: ${next.discover}
|
|
14945
14945
|
Active runs: ${next.running}`
|
|
14946
14946
|
);
|
|
14947
|
-
if (
|
|
14948
|
-
|
|
14947
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
14948
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
14949
14949
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14950
14950
|
{ json: true }
|
|
14951
14951
|
);
|
|
@@ -14974,7 +14974,7 @@ Active runs: ${next.running}`
|
|
|
14974
14974
|
console.error("--offset requires --play.");
|
|
14975
14975
|
return 1;
|
|
14976
14976
|
}
|
|
14977
|
-
const client = new (0,
|
|
14977
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
14978
14978
|
const page = await withRunReadTiming(
|
|
14979
14979
|
"runs list",
|
|
14980
14980
|
"run inventory",
|
|
@@ -15055,14 +15055,14 @@ Active runs: ${next.running}`
|
|
|
15055
15055
|
return lines2.join("\n");
|
|
15056
15056
|
});
|
|
15057
15057
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
15058
|
-
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkBVXIGOBZjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkBVXIGOBZjs.shellQuote.call(void 0, nodeId)}` : ""}${wantsSteps ? " --steps" : ""}${statusFilter ? ` --status ${_chunkBVXIGOBZjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${
|
|
15058
|
+
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkBVXIGOBZjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkBVXIGOBZjs.shellQuote.call(void 0, nodeId)}` : ""}${wantsSteps ? " --steps" : ""}${statusFilter ? ` --status ${_chunkBVXIGOBZjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunk6N3NTEJ6js.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
15059
15059
|
if (page.hasMore) {
|
|
15060
15060
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
15061
15061
|
lines.push(
|
|
15062
15062
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
15063
15063
|
);
|
|
15064
15064
|
}
|
|
15065
|
-
|
|
15065
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
15066
15066
|
{
|
|
15067
15067
|
runs,
|
|
15068
15068
|
...wantsSteps ? {
|
|
@@ -15080,7 +15080,7 @@ Active runs: ${next.running}`
|
|
|
15080
15080
|
},
|
|
15081
15081
|
render: { sections: [{ title: "runs", lines }] }
|
|
15082
15082
|
},
|
|
15083
|
-
{ json:
|
|
15083
|
+
{ json: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args) }
|
|
15084
15084
|
);
|
|
15085
15085
|
return 0;
|
|
15086
15086
|
}
|
|
@@ -15110,7 +15110,7 @@ async function handleRunTail(args) {
|
|
|
15110
15110
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15111
15111
|
return 1;
|
|
15112
15112
|
}
|
|
15113
|
-
const parsed =
|
|
15113
|
+
const parsed = _chunkXD4MT4BHjs.parseLogLevel.call(void 0, value);
|
|
15114
15114
|
if (!parsed) {
|
|
15115
15115
|
console.error(
|
|
15116
15116
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15148,9 +15148,9 @@ async function handleRunTail(args) {
|
|
|
15148
15148
|
);
|
|
15149
15149
|
return 1;
|
|
15150
15150
|
}
|
|
15151
|
-
const client = new (0,
|
|
15151
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
15152
15152
|
const jsonLines = args.includes("--jsonl");
|
|
15153
|
-
const jsonOutput = !jsonLines &&
|
|
15153
|
+
const jsonOutput = !jsonLines && _chunk6N3NTEJ6js.argsWantJson.call(void 0, args);
|
|
15154
15154
|
const compact = args.includes("--compact");
|
|
15155
15155
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
15156
15156
|
const compactState = {
|
|
@@ -15231,7 +15231,7 @@ async function handleRunLogs(args) {
|
|
|
15231
15231
|
]);
|
|
15232
15232
|
const cursorIndex = args.indexOf("--cursor");
|
|
15233
15233
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15234
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
15234
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkXD4MT4BHjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
15235
15235
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
15236
15236
|
return handleRunEventSearch(args);
|
|
15237
15237
|
}
|
|
@@ -15265,7 +15265,7 @@ async function handleRunLogs(args) {
|
|
|
15265
15265
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15266
15266
|
return 1;
|
|
15267
15267
|
}
|
|
15268
|
-
const parsed =
|
|
15268
|
+
const parsed = _chunkXD4MT4BHjs.parseLogLevel.call(void 0, value);
|
|
15269
15269
|
if (!parsed) {
|
|
15270
15270
|
console.error(
|
|
15271
15271
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15312,12 +15312,12 @@ async function handleRunLogs(args) {
|
|
|
15312
15312
|
);
|
|
15313
15313
|
return 1;
|
|
15314
15314
|
}
|
|
15315
|
-
const client = new (0,
|
|
15315
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
15316
15316
|
if (outPath) {
|
|
15317
15317
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
15318
|
-
const logs = result2.entries.filter((line) =>
|
|
15318
|
+
const logs = result2.entries.filter((line) => _chunkXD4MT4BHjs.logLevelReaches.call(void 0, _chunkXD4MT4BHjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkXD4MT4BHjs.classifyLogLine.call(void 0, line).line);
|
|
15319
15319
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
15320
|
-
|
|
15320
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
15321
15321
|
{
|
|
15322
15322
|
runId: result2.runId,
|
|
15323
15323
|
log_path: outPath,
|
|
@@ -15340,7 +15340,7 @@ async function handleRunLogs(args) {
|
|
|
15340
15340
|
]
|
|
15341
15341
|
}
|
|
15342
15342
|
},
|
|
15343
|
-
{ json:
|
|
15343
|
+
{ json: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args) }
|
|
15344
15344
|
);
|
|
15345
15345
|
return 0;
|
|
15346
15346
|
}
|
|
@@ -15371,7 +15371,7 @@ async function handleRunLogs(args) {
|
|
|
15371
15371
|
}
|
|
15372
15372
|
};
|
|
15373
15373
|
const text3 = buildRunLogsText(filteredResult);
|
|
15374
|
-
|
|
15374
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
15375
15375
|
{
|
|
15376
15376
|
runId: result.runId,
|
|
15377
15377
|
totalCount: result.totalCount,
|
|
@@ -15395,7 +15395,7 @@ async function handleRunLogs(args) {
|
|
|
15395
15395
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
15396
15396
|
},
|
|
15397
15397
|
{
|
|
15398
|
-
json:
|
|
15398
|
+
json: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args),
|
|
15399
15399
|
text: text3
|
|
15400
15400
|
}
|
|
15401
15401
|
);
|
|
@@ -15419,7 +15419,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15419
15419
|
);
|
|
15420
15420
|
}
|
|
15421
15421
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
15422
|
-
(entry) =>
|
|
15422
|
+
(entry) => _chunkXD4MT4BHjs.logLevelReaches.call(void 0, _chunkXD4MT4BHjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
15423
15423
|
);
|
|
15424
15424
|
const selected = matching.slice(-limit);
|
|
15425
15425
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -15429,7 +15429,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15429
15429
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _611 => _611.at, 'call', _612 => _612(-1), 'optionalAccess', _613 => _613.seq]), () => ( null)),
|
|
15430
15430
|
truncated: result.truncated || olderMatchesExist,
|
|
15431
15431
|
hasMore: olderMatchesExist,
|
|
15432
|
-
nextCursor: olderMatchesExist ?
|
|
15432
|
+
nextCursor: olderMatchesExist ? _chunkXD4MT4BHjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
15433
15433
|
};
|
|
15434
15434
|
}
|
|
15435
15435
|
async function handleRunEventSearch(args) {
|
|
@@ -15496,7 +15496,7 @@ ${usage2}`);
|
|
|
15496
15496
|
namespace,
|
|
15497
15497
|
...backend ? { backend } : {}
|
|
15498
15498
|
} : void 0;
|
|
15499
|
-
const client = new (0,
|
|
15499
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
15500
15500
|
const result = await client.runs.searchEvents({
|
|
15501
15501
|
...runId ? { runId } : {},
|
|
15502
15502
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -15568,7 +15568,7 @@ ${renderedDetails}` : ""}`;
|
|
|
15568
15568
|
"--limit",
|
|
15569
15569
|
String(limit)
|
|
15570
15570
|
].join(" ") : null;
|
|
15571
|
-
|
|
15571
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
15572
15572
|
{
|
|
15573
15573
|
events,
|
|
15574
15574
|
nextCursor: result.nextCursor,
|
|
@@ -15579,14 +15579,14 @@ ${renderedDetails}` : ""}`;
|
|
|
15579
15579
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
15580
15580
|
},
|
|
15581
15581
|
{
|
|
15582
|
-
json:
|
|
15582
|
+
json: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args),
|
|
15583
15583
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
15584
15584
|
}
|
|
15585
15585
|
);
|
|
15586
15586
|
return 0;
|
|
15587
15587
|
}
|
|
15588
15588
|
function buildRunLogsText(result) {
|
|
15589
|
-
const lines = result.entries.map((line) =>
|
|
15589
|
+
const lines = result.entries.map((line) => _chunkXD4MT4BHjs.classifyLogLine.call(void 0, line).line);
|
|
15590
15590
|
if (result.warning) {
|
|
15591
15591
|
if (lines.length > 0) lines.push("");
|
|
15592
15592
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -15620,7 +15620,7 @@ async function handleRunStop(args) {
|
|
|
15620
15620
|
reason = args[++index];
|
|
15621
15621
|
}
|
|
15622
15622
|
}
|
|
15623
|
-
const client = new (0,
|
|
15623
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
15624
15624
|
const result = await client.runs.stop(runId, { reason });
|
|
15625
15625
|
const communicationNotes = [
|
|
15626
15626
|
...result.communicationCancelledCount ? [
|
|
@@ -15644,7 +15644,7 @@ async function handleRunStop(args) {
|
|
|
15644
15644
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
15645
15645
|
`inspect: deepline runs get ${runId} --full`
|
|
15646
15646
|
];
|
|
15647
|
-
|
|
15647
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
15648
15648
|
{
|
|
15649
15649
|
...cancelling,
|
|
15650
15650
|
state,
|
|
@@ -15659,7 +15659,7 @@ async function handleRunStop(args) {
|
|
|
15659
15659
|
]
|
|
15660
15660
|
}
|
|
15661
15661
|
},
|
|
15662
|
-
{ json:
|
|
15662
|
+
{ json: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args) }
|
|
15663
15663
|
);
|
|
15664
15664
|
return 0;
|
|
15665
15665
|
}
|
|
@@ -15677,7 +15677,7 @@ async function handleRunStop(args) {
|
|
|
15677
15677
|
];
|
|
15678
15678
|
process.stderr.write(`${lines2.join("\n")}
|
|
15679
15679
|
`);
|
|
15680
|
-
|
|
15680
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
15681
15681
|
{
|
|
15682
15682
|
...result,
|
|
15683
15683
|
render: {
|
|
@@ -15692,7 +15692,7 @@ async function handleRunStop(args) {
|
|
|
15692
15692
|
]
|
|
15693
15693
|
}
|
|
15694
15694
|
},
|
|
15695
|
-
{ json:
|
|
15695
|
+
{ json: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args) }
|
|
15696
15696
|
);
|
|
15697
15697
|
return 1;
|
|
15698
15698
|
}
|
|
@@ -15704,12 +15704,12 @@ async function handleRunStop(args) {
|
|
|
15704
15704
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
15705
15705
|
] : []
|
|
15706
15706
|
];
|
|
15707
|
-
|
|
15707
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
15708
15708
|
{
|
|
15709
15709
|
...result,
|
|
15710
15710
|
render: { sections: [{ title: "run stop", lines }] }
|
|
15711
15711
|
},
|
|
15712
|
-
{ json:
|
|
15712
|
+
{ json: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args) }
|
|
15713
15713
|
);
|
|
15714
15714
|
return 0;
|
|
15715
15715
|
}
|
|
@@ -15759,18 +15759,18 @@ async function handleRunStopAll(args) {
|
|
|
15759
15759
|
reason = args[++index];
|
|
15760
15760
|
}
|
|
15761
15761
|
}
|
|
15762
|
-
const client = new (0,
|
|
15762
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
15763
15763
|
if (dryRun) {
|
|
15764
15764
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
15765
15765
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
15766
|
-
|
|
15766
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
15767
15767
|
{
|
|
15768
15768
|
...result2,
|
|
15769
15769
|
render: {
|
|
15770
15770
|
sections: [{ title: "org stop-all (dry run)", lines: lines2 }]
|
|
15771
15771
|
}
|
|
15772
15772
|
},
|
|
15773
|
-
{ json:
|
|
15773
|
+
{ json: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
15774
15774
|
` }
|
|
15775
15775
|
);
|
|
15776
15776
|
return 0;
|
|
@@ -15783,23 +15783,23 @@ async function handleRunStopAll(args) {
|
|
|
15783
15783
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
15784
15784
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
15785
15785
|
];
|
|
15786
|
-
|
|
15786
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
15787
15787
|
{
|
|
15788
15788
|
...result,
|
|
15789
15789
|
render: { sections: [{ title: "org stop-all", lines }] }
|
|
15790
15790
|
},
|
|
15791
|
-
{ json:
|
|
15791
|
+
{ json: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args) }
|
|
15792
15792
|
);
|
|
15793
15793
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
15794
15794
|
}
|
|
15795
15795
|
async function handleRunExport(args) {
|
|
15796
15796
|
return explainingRunNotFound(
|
|
15797
|
-
() => parseRunIdPositional(
|
|
15797
|
+
() => parseRunIdPositional(_chunk6N3NTEJ6js.parseJsonFields.call(void 0, args, "export").args, ""),
|
|
15798
15798
|
() => handleRunExportAndWrite(args)
|
|
15799
15799
|
);
|
|
15800
15800
|
}
|
|
15801
15801
|
async function handleRunExportAndWrite(args) {
|
|
15802
|
-
const selection =
|
|
15802
|
+
const selection = _chunk6N3NTEJ6js.parseJsonFields.call(void 0, args, "export");
|
|
15803
15803
|
args = selection.args;
|
|
15804
15804
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--summary full|counts] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
|
|
15805
15805
|
let runId;
|
|
@@ -15870,17 +15870,17 @@ async function handleRunExportAndWrite(args) {
|
|
|
15870
15870
|
"INVALID_ARGUMENT"
|
|
15871
15871
|
);
|
|
15872
15872
|
}
|
|
15873
|
-
const client = new (0,
|
|
15873
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
15874
15874
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
15875
15875
|
runId = assertRunExportStatusIdentity(status, runId);
|
|
15876
15876
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
15877
|
-
const progress =
|
|
15877
|
+
const progress = _chunkGOUKX6XDjs.createCliProgress.call(void 0, !_chunk6N3NTEJ6js.argsWantJson.call(void 0, args));
|
|
15878
15878
|
try {
|
|
15879
15879
|
await waitForPlayCompletionByWatch({
|
|
15880
15880
|
client,
|
|
15881
15881
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
15882
15882
|
workflowId: runId,
|
|
15883
|
-
jsonOutput:
|
|
15883
|
+
jsonOutput: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args),
|
|
15884
15884
|
emitLogs: false,
|
|
15885
15885
|
waitTimeoutMs,
|
|
15886
15886
|
startedAt: Date.now(),
|
|
@@ -15948,7 +15948,7 @@ async function handleRunExportAndWrite(args) {
|
|
|
15948
15948
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _627 => _627.rowsInfo, 'access', _628 => _628.totalRows]), () => ( null)),
|
|
15949
15949
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
15950
15950
|
...rowFailures ? { rowFailures } : {},
|
|
15951
|
-
columns:
|
|
15951
|
+
columns: _chunkPTM5V5FVjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _629 => _629.rowsInfo, 'access', _630 => _630.columns]), () => ( []))),
|
|
15952
15952
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
15953
15953
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
15954
15954
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -15982,8 +15982,8 @@ async function handleRunExportAndWrite(args) {
|
|
|
15982
15982
|
"utf-8"
|
|
15983
15983
|
);
|
|
15984
15984
|
}
|
|
15985
|
-
|
|
15986
|
-
json:
|
|
15985
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, payload, {
|
|
15986
|
+
json: _chunk6N3NTEJ6js.argsWantJson.call(void 0, args),
|
|
15987
15987
|
fields: selection.fields,
|
|
15988
15988
|
text: `${lines.join("\n")}
|
|
15989
15989
|
`
|
|
@@ -16021,10 +16021,10 @@ async function handlePlayGet(args) {
|
|
|
16021
16021
|
);
|
|
16022
16022
|
return 2;
|
|
16023
16023
|
}
|
|
16024
|
-
const client = new (0,
|
|
16024
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
16025
16025
|
const explicitJson = args.includes("--json");
|
|
16026
16026
|
const sourceOutput = args.includes("--source");
|
|
16027
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
16027
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunk6N3NTEJ6js.argsWantJson.call(void 0, args);
|
|
16028
16028
|
const requestedRevisionFlags = [
|
|
16029
16029
|
args.includes("--working"),
|
|
16030
16030
|
args.includes("--live"),
|
|
@@ -16087,7 +16087,7 @@ async function handlePlayGet(args) {
|
|
|
16087
16087
|
}
|
|
16088
16088
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
16089
16089
|
if (jsonOutput) {
|
|
16090
|
-
|
|
16090
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, {
|
|
16091
16091
|
...detail,
|
|
16092
16092
|
...materializedFile ? {
|
|
16093
16093
|
message: loadedMessage,
|
|
@@ -16179,8 +16179,8 @@ async function handlePlayVersions(args) {
|
|
|
16179
16179
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
16180
16180
|
return 1;
|
|
16181
16181
|
}
|
|
16182
|
-
const client = new (0,
|
|
16183
|
-
const jsonOutput =
|
|
16182
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
16183
|
+
const jsonOutput = _chunk6N3NTEJ6js.argsWantJson.call(void 0, args);
|
|
16184
16184
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16185
16185
|
command: "versions"
|
|
16186
16186
|
});
|
|
@@ -16188,7 +16188,7 @@ async function handlePlayVersions(args) {
|
|
|
16188
16188
|
parseReferencedPlayTarget(playName).playName
|
|
16189
16189
|
);
|
|
16190
16190
|
if (jsonOutput) {
|
|
16191
|
-
|
|
16191
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, { versions });
|
|
16192
16192
|
return 0;
|
|
16193
16193
|
}
|
|
16194
16194
|
if (versions.length === 0) {
|
|
@@ -16227,8 +16227,8 @@ async function handlePlayCost(args) {
|
|
|
16227
16227
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
16228
16228
|
return 2;
|
|
16229
16229
|
}
|
|
16230
|
-
const result = await new (0,
|
|
16231
|
-
if (
|
|
16230
|
+
const result = await new (0, _chunkHGER4CJAjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
16231
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
16232
16232
|
else
|
|
16233
16233
|
console.log(
|
|
16234
16234
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -16236,9 +16236,9 @@ async function handlePlayCost(args) {
|
|
|
16236
16236
|
return 0;
|
|
16237
16237
|
}
|
|
16238
16238
|
async function handlePlayList(args) {
|
|
16239
|
-
const jsonOutput =
|
|
16239
|
+
const jsonOutput = _chunk6N3NTEJ6js.argsWantJson.call(void 0, args);
|
|
16240
16240
|
const showCost = args.includes("--show-cost");
|
|
16241
|
-
const client = new (0,
|
|
16241
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
16242
16242
|
const categoriesIndex = args.indexOf("--categories");
|
|
16243
16243
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _649 => _649[categoriesIndex + 1], 'optionalAccess', _650 => _650.trim, 'call', _651 => _651()]) : void 0;
|
|
16244
16244
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -16336,7 +16336,7 @@ async function handlePlayList(args) {
|
|
|
16336
16336
|
lines.push("List truncated \u2014 more plays are available.");
|
|
16337
16337
|
lines.push(`Next page: ${nextPage}`);
|
|
16338
16338
|
}
|
|
16339
|
-
|
|
16339
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
16340
16340
|
{
|
|
16341
16341
|
plays,
|
|
16342
16342
|
count: plays.length,
|
|
@@ -16354,7 +16354,7 @@ async function handlePlayList(args) {
|
|
|
16354
16354
|
}
|
|
16355
16355
|
async function handlePlayPin(args, pinned) {
|
|
16356
16356
|
const target = _optionalChain([args, 'access', _660 => _660.find, 'call', _661 => _661((arg) => !arg.startsWith("-")), 'optionalAccess', _662 => _662.trim, 'call', _663 => _663()]);
|
|
16357
|
-
const jsonOutput =
|
|
16357
|
+
const jsonOutput = _chunk6N3NTEJ6js.argsWantJson.call(void 0, args);
|
|
16358
16358
|
const dryRun = args.includes("--dry-run");
|
|
16359
16359
|
if (!target) {
|
|
16360
16360
|
console.error(
|
|
@@ -16372,11 +16372,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
16372
16372
|
const name = parsedTarget.playName;
|
|
16373
16373
|
const plan = { name, pinned, dryRun };
|
|
16374
16374
|
if (dryRun) {
|
|
16375
|
-
|
|
16375
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, plan);
|
|
16376
16376
|
return 0;
|
|
16377
16377
|
}
|
|
16378
|
-
const result = await new (0,
|
|
16379
|
-
if (jsonOutput)
|
|
16378
|
+
const result = await new (0, _chunkHGER4CJAjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
16379
|
+
if (jsonOutput) _chunk6N3NTEJ6js.printCompactJson.call(void 0, result);
|
|
16380
16380
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
16381
16381
|
return 0;
|
|
16382
16382
|
}
|
|
@@ -16502,12 +16502,12 @@ async function handlePlayGrep(args) {
|
|
|
16502
16502
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
16503
16503
|
return 1;
|
|
16504
16504
|
}
|
|
16505
|
-
const client = new (0,
|
|
16505
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
16506
16506
|
const results = (await client.listPlays({ grep: query })).map(
|
|
16507
16507
|
summarizePlayGrepResult
|
|
16508
16508
|
);
|
|
16509
|
-
if (
|
|
16510
|
-
|
|
16509
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
16510
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, {
|
|
16511
16511
|
plays: results,
|
|
16512
16512
|
count: results.length,
|
|
16513
16513
|
query,
|
|
@@ -16530,7 +16530,7 @@ async function handlePlayGrep(args) {
|
|
|
16530
16530
|
return 0;
|
|
16531
16531
|
}
|
|
16532
16532
|
async function handlePlayDescribe(args) {
|
|
16533
|
-
const selection =
|
|
16533
|
+
const selection = _chunk6N3NTEJ6js.parseJsonFields.call(void 0, args, "describe");
|
|
16534
16534
|
args = selection.args;
|
|
16535
16535
|
const playName = args[0];
|
|
16536
16536
|
if (!playName) {
|
|
@@ -16564,8 +16564,8 @@ async function handlePlayDescribe(args) {
|
|
|
16564
16564
|
`deepline plays check ${playName}`,
|
|
16565
16565
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
16566
16566
|
];
|
|
16567
|
-
if (
|
|
16568
|
-
|
|
16567
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
16568
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, {
|
|
16569
16569
|
ok: false,
|
|
16570
16570
|
error: { message },
|
|
16571
16571
|
next
|
|
@@ -16579,7 +16579,7 @@ async function handlePlayDescribe(args) {
|
|
|
16579
16579
|
}
|
|
16580
16580
|
return 2;
|
|
16581
16581
|
}
|
|
16582
|
-
const client = new (0,
|
|
16582
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
16583
16583
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16584
16584
|
command: "describe"
|
|
16585
16585
|
});
|
|
@@ -16589,9 +16589,9 @@ async function handlePlayDescribe(args) {
|
|
|
16589
16589
|
compact: args.includes("--compact")
|
|
16590
16590
|
}
|
|
16591
16591
|
);
|
|
16592
|
-
if (
|
|
16593
|
-
if (selection.fields)
|
|
16594
|
-
else
|
|
16592
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
16593
|
+
if (selection.fields) _chunk6N3NTEJ6js.printJson.call(void 0, play, selection.fields);
|
|
16594
|
+
else _chunk6N3NTEJ6js.printCompactJson.call(void 0, play);
|
|
16595
16595
|
return 0;
|
|
16596
16596
|
}
|
|
16597
16597
|
printPlayDescription(play);
|
|
@@ -16612,7 +16612,7 @@ async function handlePlaySave(args) {
|
|
|
16612
16612
|
return 2;
|
|
16613
16613
|
}
|
|
16614
16614
|
const watchPlay = options.dryRun ? void 0 : options.watchPlay;
|
|
16615
|
-
const client = watchPlay ? new (0,
|
|
16615
|
+
const client = watchPlay ? new (0, _chunkHGER4CJAjs.DeeplineClient)() : void 0;
|
|
16616
16616
|
let attempt;
|
|
16617
16617
|
if (watchPlay && client) {
|
|
16618
16618
|
try {
|
|
@@ -16636,7 +16636,7 @@ async function handlePlaySave(args) {
|
|
|
16636
16636
|
};
|
|
16637
16637
|
let graph;
|
|
16638
16638
|
try {
|
|
16639
|
-
graph = await
|
|
16639
|
+
graph = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
16640
16640
|
"cli.play_save_bundle_graph",
|
|
16641
16641
|
{ targetKind: "file" },
|
|
16642
16642
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -16665,7 +16665,7 @@ async function handlePlaySave(args) {
|
|
|
16665
16665
|
next: `deepline plays check ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.target)}`
|
|
16666
16666
|
};
|
|
16667
16667
|
if (options.jsonOutput) {
|
|
16668
|
-
|
|
16668
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, result);
|
|
16669
16669
|
} else {
|
|
16670
16670
|
console.error(result.message);
|
|
16671
16671
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -16687,7 +16687,7 @@ async function handlePlaySave(args) {
|
|
|
16687
16687
|
};
|
|
16688
16688
|
if (options.dryRun) {
|
|
16689
16689
|
if (options.jsonOutput) {
|
|
16690
|
-
|
|
16690
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, dryRun);
|
|
16691
16691
|
} else {
|
|
16692
16692
|
console.log(`Dry run: ${playName}`);
|
|
16693
16693
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16696,14 +16696,14 @@ async function handlePlaySave(args) {
|
|
|
16696
16696
|
}
|
|
16697
16697
|
return 0;
|
|
16698
16698
|
}
|
|
16699
|
-
const saveClient = _nullishCoalesce(client, () => ( new (0,
|
|
16699
|
+
const saveClient = _nullishCoalesce(client, () => ( new (0, _chunkHGER4CJAjs.DeeplineClient)()));
|
|
16700
16700
|
try {
|
|
16701
|
-
await
|
|
16701
|
+
await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
16702
16702
|
"cli.play_save_compile_manifests",
|
|
16703
16703
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16704
16704
|
() => compileBundledPlayGraphManifests(saveClient, graph)
|
|
16705
16705
|
);
|
|
16706
|
-
const saved = await
|
|
16706
|
+
const saved = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
16707
16707
|
"cli.play_save_register_draft",
|
|
16708
16708
|
{ targetKind: "file", playName, artifactHash },
|
|
16709
16709
|
() => saveClient.registerPlayArtifact({
|
|
@@ -16733,7 +16733,7 @@ async function handlePlaySave(args) {
|
|
|
16733
16733
|
}
|
|
16734
16734
|
};
|
|
16735
16735
|
if (options.jsonOutput) {
|
|
16736
|
-
|
|
16736
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, result);
|
|
16737
16737
|
} else {
|
|
16738
16738
|
console.log(
|
|
16739
16739
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -16753,7 +16753,7 @@ async function handlePlaySave(args) {
|
|
|
16753
16753
|
}
|
|
16754
16754
|
}
|
|
16755
16755
|
async function enforceOutcomeGuardrail(input) {
|
|
16756
|
-
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-
|
|
16756
|
+
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-24KFY2X5.js")));
|
|
16757
16757
|
try {
|
|
16758
16758
|
const gate = await requireOutcomeGuardrail({ ...input, phase: "reserve" });
|
|
16759
16759
|
return {
|
|
@@ -16781,7 +16781,7 @@ async function enforceOutcomeGuardrail(input) {
|
|
|
16781
16781
|
}
|
|
16782
16782
|
}
|
|
16783
16783
|
async function settleOutcomeApproval(input) {
|
|
16784
|
-
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-
|
|
16784
|
+
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-24KFY2X5.js")));
|
|
16785
16785
|
const id = `${input.outcome}/${input.approval.seq}`;
|
|
16786
16786
|
try {
|
|
16787
16787
|
await requireOutcomeGuardrail({
|
|
@@ -16813,7 +16813,7 @@ async function handlePlayPublish(args) {
|
|
|
16813
16813
|
}
|
|
16814
16814
|
const { target: playName, useLatest } = options;
|
|
16815
16815
|
let revisionId = options.revisionId;
|
|
16816
|
-
const client = new (0,
|
|
16816
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
16817
16817
|
if (isFileTarget(playName)) {
|
|
16818
16818
|
if (revisionId || useLatest) {
|
|
16819
16819
|
console.error(
|
|
@@ -16823,7 +16823,7 @@ async function handlePlayPublish(args) {
|
|
|
16823
16823
|
}
|
|
16824
16824
|
let graph;
|
|
16825
16825
|
try {
|
|
16826
|
-
graph = await
|
|
16826
|
+
graph = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
16827
16827
|
"cli.play_publish_bundle_graph",
|
|
16828
16828
|
{ targetKind: "file" },
|
|
16829
16829
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -16845,7 +16845,7 @@ async function handlePlayPublish(args) {
|
|
|
16845
16845
|
next: `deepline plays check ${_chunkBVXIGOBZjs.shellQuote.call(void 0, playName)}`
|
|
16846
16846
|
};
|
|
16847
16847
|
if (options.jsonOutput) {
|
|
16848
|
-
|
|
16848
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, result3);
|
|
16849
16849
|
} else {
|
|
16850
16850
|
console.error(result3.message);
|
|
16851
16851
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -16868,7 +16868,7 @@ async function handlePlayPublish(args) {
|
|
|
16868
16868
|
};
|
|
16869
16869
|
if (options.dryRun) {
|
|
16870
16870
|
if (options.jsonOutput) {
|
|
16871
|
-
|
|
16871
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, dryRun);
|
|
16872
16872
|
} else {
|
|
16873
16873
|
console.log(`Dry run: ${rootPlayName}`);
|
|
16874
16874
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16887,12 +16887,12 @@ async function handlePlayPublish(args) {
|
|
|
16887
16887
|
}
|
|
16888
16888
|
}
|
|
16889
16889
|
try {
|
|
16890
|
-
await
|
|
16890
|
+
await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
16891
16891
|
"cli.play_publish_compile_manifests",
|
|
16892
16892
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16893
16893
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
16894
16894
|
);
|
|
16895
|
-
await
|
|
16895
|
+
await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
16896
16896
|
"cli.play_publish_imports",
|
|
16897
16897
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16898
16898
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -16901,7 +16901,7 @@ async function handlePlayPublish(args) {
|
|
|
16901
16901
|
console.error(error instanceof Error ? error.message : String(error));
|
|
16902
16902
|
return 1;
|
|
16903
16903
|
}
|
|
16904
|
-
const published = await
|
|
16904
|
+
const published = await _chunkC3FHMJ4Ajs.traceCliSpan.call(void 0,
|
|
16905
16905
|
"cli.play_publish_register_root",
|
|
16906
16906
|
{
|
|
16907
16907
|
targetKind: "file",
|
|
@@ -16936,7 +16936,7 @@ async function handlePlayPublish(args) {
|
|
|
16936
16936
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
16937
16937
|
};
|
|
16938
16938
|
if (options.jsonOutput) {
|
|
16939
|
-
|
|
16939
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, result2);
|
|
16940
16940
|
} else {
|
|
16941
16941
|
printPublishReceipt({
|
|
16942
16942
|
name: rootPlayName,
|
|
@@ -16967,7 +16967,7 @@ async function handlePlayPublish(args) {
|
|
|
16967
16967
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
16968
16968
|
latest: useLatest
|
|
16969
16969
|
};
|
|
16970
|
-
|
|
16970
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, result2);
|
|
16971
16971
|
return 0;
|
|
16972
16972
|
}
|
|
16973
16973
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -16991,7 +16991,7 @@ async function handlePlayPublish(args) {
|
|
|
16991
16991
|
revisionId ? { revisionId } : {}
|
|
16992
16992
|
);
|
|
16993
16993
|
if (options.jsonOutput) {
|
|
16994
|
-
|
|
16994
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, result);
|
|
16995
16995
|
} else {
|
|
16996
16996
|
printPublishReceipt({
|
|
16997
16997
|
name: result.name,
|
|
@@ -17031,7 +17031,7 @@ async function handlePlayDelete(args) {
|
|
|
17031
17031
|
);
|
|
17032
17032
|
return 2;
|
|
17033
17033
|
}
|
|
17034
|
-
const client = new (0,
|
|
17034
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
17035
17035
|
let detail;
|
|
17036
17036
|
try {
|
|
17037
17037
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -17055,8 +17055,8 @@ async function handlePlayDelete(args) {
|
|
|
17055
17055
|
name: resolvedName,
|
|
17056
17056
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
17057
17057
|
};
|
|
17058
|
-
if (
|
|
17059
|
-
|
|
17058
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
17059
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, result2);
|
|
17060
17060
|
} else {
|
|
17061
17061
|
process.stdout.write(
|
|
17062
17062
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -17066,8 +17066,8 @@ async function handlePlayDelete(args) {
|
|
|
17066
17066
|
return 0;
|
|
17067
17067
|
}
|
|
17068
17068
|
const result = await client.deletePlay(resolvedName);
|
|
17069
|
-
if (
|
|
17070
|
-
|
|
17069
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
17070
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, result);
|
|
17071
17071
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
17072
17072
|
}
|
|
17073
17073
|
if (result.alreadyArchived) {
|
|
@@ -17106,13 +17106,13 @@ async function handlePlayRestore(args) {
|
|
|
17106
17106
|
);
|
|
17107
17107
|
return 2;
|
|
17108
17108
|
}
|
|
17109
|
-
const client = new (0,
|
|
17109
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
17110
17110
|
try {
|
|
17111
17111
|
const result = await client.restorePlay(
|
|
17112
17112
|
parseReferencedPlayTarget(playName).playName
|
|
17113
17113
|
);
|
|
17114
|
-
if (
|
|
17115
|
-
|
|
17114
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
17115
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, result);
|
|
17116
17116
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
17117
17117
|
}
|
|
17118
17118
|
if (result.alreadyActive) {
|
|
@@ -17239,21 +17239,21 @@ Common commands:
|
|
|
17239
17239
|
resume: `deepline plays resume-submission ${_chunkBVXIGOBZjs.shellQuote.call(void 0, path)} --json`
|
|
17240
17240
|
}
|
|
17241
17241
|
};
|
|
17242
|
-
|
|
17242
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, result2, {
|
|
17243
17243
|
json: options.json,
|
|
17244
17244
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
17245
17245
|
`
|
|
17246
17246
|
});
|
|
17247
17247
|
return;
|
|
17248
17248
|
}
|
|
17249
|
-
const client = new (0,
|
|
17249
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
17250
17250
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
17251
17251
|
throw new Error(
|
|
17252
17252
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
17253
17253
|
);
|
|
17254
17254
|
}
|
|
17255
17255
|
const result = await client.startPlayRun(saved.request);
|
|
17256
|
-
|
|
17256
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
17257
17257
|
{ ...result },
|
|
17258
17258
|
{
|
|
17259
17259
|
json: options.json,
|
|
@@ -17289,7 +17289,7 @@ Examples:
|
|
|
17289
17289
|
).action(async (target, options) => {
|
|
17290
17290
|
process.exitCode = await handlePlayCheck([
|
|
17291
17291
|
target,
|
|
17292
|
-
...
|
|
17292
|
+
..._chunk6N3NTEJ6js.jsonFieldArgs.call(void 0, options.json),
|
|
17293
17293
|
...options.full ? ["--full"] : []
|
|
17294
17294
|
]);
|
|
17295
17295
|
});
|
|
@@ -17336,10 +17336,10 @@ Notes:
|
|
|
17336
17336
|
with a changed input is refused with a 409 conflict. Use one stable key per
|
|
17337
17337
|
exact intent. Without a key, each invocation starts a new run.
|
|
17338
17338
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
17339
|
-
resident-work ceiling. Default: ${
|
|
17339
|
+
resident-work ceiling. Default: ${_chunkVLQB65HIjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkVLQB65HIjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
17340
17340
|
Provider pacing and sandbox memory limits still apply.
|
|
17341
17341
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
17342
|
-
resolvers. Accepted range: 1-${
|
|
17342
|
+
resolvers. Accepted range: 1-${_chunkVLQB65HIjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
17343
17343
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
17344
17344
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
17345
17345
|
Before each tool call, its quoted price is added to what the run has
|
|
@@ -17471,10 +17471,10 @@ Examples:
|
|
|
17471
17471
|
).hideHelp()
|
|
17472
17472
|
).option(
|
|
17473
17473
|
"--max-concurrent-external-calls <count>",
|
|
17474
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
17474
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkVLQB65HIjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkVLQB65HIjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
17475
17475
|
).option(
|
|
17476
17476
|
"--max-concurrent-rows <count>",
|
|
17477
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
17477
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkVLQB65HIjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
17478
17478
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").addOption(
|
|
17479
17479
|
// Internal only: the server refuses it without play_run.cache_reuse_window.
|
|
17480
17480
|
new (0, _commander.Option)(
|
|
@@ -17575,14 +17575,14 @@ JSON field selection:
|
|
|
17575
17575
|
passthroughArgs.shift();
|
|
17576
17576
|
}
|
|
17577
17577
|
const exitCode = await handlePlayRun(
|
|
17578
|
-
|
|
17578
|
+
_chunkVLQB65HIjs.resolvePlayRunCliOptions.call(void 0,
|
|
17579
17579
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
17580
17580
|
options,
|
|
17581
17581
|
passthroughArgs,
|
|
17582
|
-
|
|
17582
|
+
_chunkC3FHMJ4Ajs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
17583
17583
|
)
|
|
17584
17584
|
);
|
|
17585
|
-
|
|
17585
|
+
_chunkC3FHMJ4Ajs.recordCliTrace.call(void 0, {
|
|
17586
17586
|
phase: "cli.play_command_exit",
|
|
17587
17587
|
exitCode
|
|
17588
17588
|
});
|
|
@@ -17631,9 +17631,9 @@ Examples:
|
|
|
17631
17631
|
const limit = Number(options.historyLimit);
|
|
17632
17632
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
17633
17633
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
17634
|
-
const client = new (0,
|
|
17634
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
17635
17635
|
if (options.binding) {
|
|
17636
|
-
|
|
17636
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0,
|
|
17637
17637
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
17638
17638
|
);
|
|
17639
17639
|
return;
|
|
@@ -17641,7 +17641,7 @@ Examples:
|
|
|
17641
17641
|
const result = await client.listPlayTriggerInventory({
|
|
17642
17642
|
cursor: options.cursor
|
|
17643
17643
|
});
|
|
17644
|
-
|
|
17644
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, {
|
|
17645
17645
|
...result,
|
|
17646
17646
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
17647
17647
|
});
|
|
@@ -17698,7 +17698,7 @@ Examples:
|
|
|
17698
17698
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
17699
17699
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
17700
17700
|
}
|
|
17701
|
-
const result = await new (0,
|
|
17701
|
+
const result = await new (0, _chunkHGER4CJAjs.DeeplineClient)().getPlaysActivity({
|
|
17702
17702
|
timeZone: options.timeZone,
|
|
17703
17703
|
days,
|
|
17704
17704
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -17712,7 +17712,7 @@ Examples:
|
|
|
17712
17712
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
17713
17713
|
);
|
|
17714
17714
|
}
|
|
17715
|
-
|
|
17715
|
+
_chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
|
|
17716
17716
|
{ ...result },
|
|
17717
17717
|
{
|
|
17718
17718
|
json: Boolean(options.json),
|
|
@@ -17741,7 +17741,7 @@ Examples:
|
|
|
17741
17741
|
false
|
|
17742
17742
|
);
|
|
17743
17743
|
});
|
|
17744
|
-
|
|
17744
|
+
_chunkAOMVAXGXjs.registerDeprecatedSearchCommand.call(void 0,
|
|
17745
17745
|
play,
|
|
17746
17746
|
(options) => options.all ? ["prebuilts", "custom"] : ["prebuilts"]
|
|
17747
17747
|
);
|
|
@@ -17782,9 +17782,9 @@ Examples:
|
|
|
17782
17782
|
"--json [fields]",
|
|
17783
17783
|
"JSON output; optionally select comma-separated dotted paths"
|
|
17784
17784
|
);
|
|
17785
|
-
|
|
17785
|
+
_chunkPTM5V5FVjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
17786
17786
|
async (target, options) => {
|
|
17787
|
-
const ownView = () => handlePlayDescribe(
|
|
17787
|
+
const ownView = () => handlePlayDescribe(_chunk6N3NTEJ6js.describeArgs.call(void 0, target, options));
|
|
17788
17788
|
const [flagText] = [options.json].filter(
|
|
17789
17789
|
(value) => typeof value === "string"
|
|
17790
17790
|
);
|
|
@@ -17795,7 +17795,7 @@ Examples:
|
|
|
17795
17795
|
process.exitCode = await ownView();
|
|
17796
17796
|
return;
|
|
17797
17797
|
}
|
|
17798
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
17798
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-SG2N62VE.js")));
|
|
17799
17799
|
process.exitCode = await describeAnything(
|
|
17800
17800
|
name,
|
|
17801
17801
|
{
|
|
@@ -17918,7 +17918,7 @@ Examples:
|
|
|
17918
17918
|
deepline plays deployments <deployment-id>
|
|
17919
17919
|
`
|
|
17920
17920
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
17921
|
-
async (id, options) => id ?
|
|
17921
|
+
async (id, options) => id ? _chunkCITDBSXIjs.handleDeploymentGet.call(void 0, id, options) : _chunkCITDBSXIjs.handleDeploymentsList.call(void 0, options)
|
|
17922
17922
|
);
|
|
17923
17923
|
addPublishHelp(
|
|
17924
17924
|
play.command("publish <target>").description(
|
|
@@ -17946,10 +17946,10 @@ Examples:
|
|
|
17946
17946
|
new (0, _commander.Option)(
|
|
17947
17947
|
"--outcome <outcome>",
|
|
17948
17948
|
"Run under this outcome. Refused (exit 3) when it asks before plays.set-live and no approval exists"
|
|
17949
|
-
).hideHelp(!
|
|
17949
|
+
).hideHelp(!_chunkA5HDA22Njs.cliFeatureEnabled.call(void 0, "outcomes"))
|
|
17950
17950
|
).addOption(
|
|
17951
17951
|
new (0, _commander.Option)("--as <agent>", "With --outcome: the agent acting").hideHelp(
|
|
17952
|
-
!
|
|
17952
|
+
!_chunkA5HDA22Njs.cliFeatureEnabled.call(void 0, "outcomes")
|
|
17953
17953
|
)
|
|
17954
17954
|
).option("--json", "Emit JSON output").action(async (target, options) => {
|
|
17955
17955
|
const guarded = options.outcome && !options.dryRun ? {
|
|
@@ -18101,14 +18101,14 @@ Examples:
|
|
|
18101
18101
|
const limit = Number(options.limit);
|
|
18102
18102
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
18103
18103
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
18104
|
-
const result = await new (0,
|
|
18104
|
+
const result = await new (0, _chunkHGER4CJAjs.DeeplineClient)().runs.rowHistory({
|
|
18105
18105
|
playName: options.play,
|
|
18106
18106
|
runId,
|
|
18107
18107
|
tableNamespace: options.dataset,
|
|
18108
18108
|
limit,
|
|
18109
18109
|
cursor: options.cursor
|
|
18110
18110
|
});
|
|
18111
|
-
|
|
18111
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, {
|
|
18112
18112
|
...result,
|
|
18113
18113
|
...result.nextCursor ? {
|
|
18114
18114
|
next: `deepline runs rows-history ${_chunkBVXIGOBZjs.shellQuote.call(void 0, runId)} --play ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkBVXIGOBZjs.shellQuote.call(void 0, result.nextCursor)} --json`
|
|
@@ -18186,7 +18186,7 @@ Examples:
|
|
|
18186
18186
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
18187
18187
|
).action(async (runId, options) => {
|
|
18188
18188
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
18189
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
18189
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-ORTGWD63.js")));
|
|
18190
18190
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
18191
18191
|
receiptJson: options.json !== void 0
|
|
18192
18192
|
});
|
|
@@ -18194,7 +18194,7 @@ Examples:
|
|
|
18194
18194
|
}
|
|
18195
18195
|
process.exitCode = await handleRunGet([
|
|
18196
18196
|
runId,
|
|
18197
|
-
...
|
|
18197
|
+
..._chunk6N3NTEJ6js.jsonFieldArgs.call(void 0, options.json),
|
|
18198
18198
|
...options.web ? ["--web"] : [],
|
|
18199
18199
|
...options.webUrl ? ["--web-url"] : [],
|
|
18200
18200
|
...options.full ? ["--full"] : [],
|
|
@@ -18524,7 +18524,7 @@ Examples:
|
|
|
18524
18524
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
18525
18525
|
...options.wait ? ["--wait"] : [],
|
|
18526
18526
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
18527
|
-
...
|
|
18527
|
+
..._chunk6N3NTEJ6js.jsonFieldArgs.call(void 0, options.json)
|
|
18528
18528
|
]);
|
|
18529
18529
|
});
|
|
18530
18530
|
const share = play.command("share").description(
|
|
@@ -18690,10 +18690,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18690
18690
|
return 2;
|
|
18691
18691
|
}
|
|
18692
18692
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18693
|
-
const status = await new (0,
|
|
18693
|
+
const status = await new (0, _chunkHGER4CJAjs.DeeplineClient)().getSharePage(name);
|
|
18694
18694
|
const outputStatus = shareStatusForOutput(status);
|
|
18695
|
-
if (
|
|
18696
|
-
|
|
18695
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
18696
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, outputStatus);
|
|
18697
18697
|
return 0;
|
|
18698
18698
|
}
|
|
18699
18699
|
if (!outputStatus.share) {
|
|
@@ -18732,7 +18732,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18732
18732
|
return 2;
|
|
18733
18733
|
}
|
|
18734
18734
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18735
|
-
const client = new (0,
|
|
18735
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
18736
18736
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18737
18737
|
let resolvedVersion;
|
|
18738
18738
|
if (!revisionId) {
|
|
@@ -18763,8 +18763,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18763
18763
|
);
|
|
18764
18764
|
if (!hasCompleted) {
|
|
18765
18765
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18766
|
-
if (
|
|
18767
|
-
|
|
18766
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
18767
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, {
|
|
18768
18768
|
ok: false,
|
|
18769
18769
|
code: "NO_SUCCESSFUL_RUN",
|
|
18770
18770
|
message,
|
|
@@ -18788,8 +18788,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18788
18788
|
};
|
|
18789
18789
|
if (args.includes("--dry-run")) {
|
|
18790
18790
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
18791
|
-
if (
|
|
18792
|
-
|
|
18791
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
18792
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, plan);
|
|
18793
18793
|
} else {
|
|
18794
18794
|
console.log(
|
|
18795
18795
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -18799,8 +18799,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18799
18799
|
}
|
|
18800
18800
|
const status = await client.publishSharePage(name, request);
|
|
18801
18801
|
const outputStatus = shareStatusForOutput(status);
|
|
18802
|
-
if (
|
|
18803
|
-
|
|
18802
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
18803
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, outputStatus);
|
|
18804
18804
|
return 0;
|
|
18805
18805
|
}
|
|
18806
18806
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18831,9 +18831,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
18831
18831
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
18832
18832
|
...seoIndexing ? { seoIndexing } : {}
|
|
18833
18833
|
};
|
|
18834
|
-
const status = await new (0,
|
|
18835
|
-
if (
|
|
18836
|
-
|
|
18834
|
+
const status = await new (0, _chunkHGER4CJAjs.DeeplineClient)().updateSharePage(name, request);
|
|
18835
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
18836
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, status);
|
|
18837
18837
|
return 0;
|
|
18838
18838
|
}
|
|
18839
18839
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -18848,7 +18848,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18848
18848
|
return 2;
|
|
18849
18849
|
}
|
|
18850
18850
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18851
|
-
const client = new (0,
|
|
18851
|
+
const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
|
|
18852
18852
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18853
18853
|
const versionFlag = shareFlagValue(args, "--version");
|
|
18854
18854
|
if (!revisionId && versionFlag) {
|
|
@@ -18865,8 +18865,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18865
18865
|
revisionId ? { revisionId } : {}
|
|
18866
18866
|
);
|
|
18867
18867
|
const outputStatus = shareStatusForOutput(status);
|
|
18868
|
-
if (
|
|
18869
|
-
|
|
18868
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
18869
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, outputStatus);
|
|
18870
18870
|
return 0;
|
|
18871
18871
|
}
|
|
18872
18872
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18891,9 +18891,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
18891
18891
|
return 2;
|
|
18892
18892
|
}
|
|
18893
18893
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18894
|
-
const status = await new (0,
|
|
18895
|
-
if (
|
|
18896
|
-
|
|
18894
|
+
const status = await new (0, _chunkHGER4CJAjs.DeeplineClient)().unpublishSharePage(name);
|
|
18895
|
+
if (_chunk6N3NTEJ6js.argsWantJson.call(void 0, args)) {
|
|
18896
|
+
_chunk6N3NTEJ6js.printCompactJson.call(void 0, status);
|
|
18897
18897
|
return 0;
|
|
18898
18898
|
}
|
|
18899
18899
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -18974,4 +18974,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
18974
18974
|
|
|
18975
18975
|
|
|
18976
18976
|
|
|
18977
|
-
exports.PLAY_START_TRANSIENT_RETRY_DELAYS_MS = PLAY_START_TRANSIENT_RETRY_DELAYS_MS; exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.assertRunExportStatusIdentity = assertRunExportStatusIdentity; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag =
|
|
18977
|
+
exports.PLAY_START_TRANSIENT_RETRY_DELAYS_MS = PLAY_START_TRANSIENT_RETRY_DELAYS_MS; exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.assertRunExportStatusIdentity = assertRunExportStatusIdentity; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkVLQB65HIjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkVLQB65HIjs.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;
|