deepline 0.3.536 → 0.3.537
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/observability/scheduled-jobs.json +18 -0
- package/dist/cli/{auth-KCTCUO7P.mjs → auth-4SUPGDIM.mjs} +5 -5
- package/dist/cli/auth-Y2K2ZYYA.js +43 -0
- package/dist/cli/{billing-OOJHKLNS.mjs → billing-5JUA3ZM3.mjs} +6 -6
- package/dist/cli/{billing-4VBGZ3CT.js → billing-SQU726P7.js} +87 -87
- package/dist/cli/{chunk-GTVZKY3F.js → chunk-2Q7VXTMS.js} +2 -2
- package/dist/cli/{chunk-DQHUJMCL.mjs → chunk-37AZHCTP.mjs} +5 -5
- package/dist/cli/{chunk-CWSLUNA6.js → chunk-3PMCQ3LK.js} +4 -4
- package/dist/cli/{chunk-CIDN5K23.js → chunk-5EOEJKSV.js} +1 -1
- package/dist/cli/{chunk-Y2NTPYGS.js → chunk-ALHKB3AE.js} +9 -9
- package/dist/cli/{chunk-KWYGWO4Y.js → chunk-AVQET3NR.js} +7 -7
- package/dist/cli/{chunk-RVSSQPQO.mjs → chunk-AX2OAXDL.mjs} +1 -1
- package/dist/cli/{chunk-AB2GBOD4.mjs → chunk-BFHR7IC2.mjs} +10 -10
- package/dist/cli/{chunk-LN6RXDTB.js → chunk-BGXEMTIG.js} +19 -19
- package/dist/cli/{chunk-2YWJS76L.mjs → chunk-BRRCWUOW.mjs} +1 -1
- package/dist/cli/{chunk-OUDTOMZC.mjs → chunk-C37VELBR.mjs} +5 -5
- package/dist/cli/{chunk-DA2I2M7D.mjs → chunk-C3XD2WHM.mjs} +2 -2
- package/dist/cli/{chunk-ZISEH7OL.js → chunk-CFND2ACL.js} +16 -16
- package/dist/cli/{chunk-HAJQGP5V.mjs → chunk-CGDW2CRR.mjs} +2 -2
- package/dist/cli/{chunk-HWDKRN7L.js → chunk-CHIGEDAE.js} +3 -3
- package/dist/cli/{chunk-VBDZIMWD.js → chunk-D77W6Q67.js} +26 -26
- package/dist/cli/{chunk-ANUKBZ6W.mjs → chunk-EEFSUCYP.mjs} +2 -2
- package/dist/cli/{chunk-PNY3BWHP.mjs → chunk-GI3V4D7K.mjs} +2 -2
- package/dist/cli/{chunk-XJD2GYUP.mjs → chunk-GPMS6OPX.mjs} +5 -5
- package/dist/cli/{chunk-W7AEIGZR.js → chunk-IQOIT6E3.js} +41 -41
- package/dist/cli/{chunk-2B4IOGFD.js → chunk-JMHYDDBQ.js} +7 -7
- package/dist/cli/{chunk-ZZ4MF2GI.js → chunk-JS2SBCWD.js} +6 -6
- package/dist/cli/{chunk-3PCYV6ZJ.mjs → chunk-K4WJ4BYO.mjs} +1 -1
- package/dist/cli/{chunk-WC5M3JXE.mjs → chunk-KH27B2HJ.mjs} +2 -2
- package/dist/cli/{chunk-4E5JXZ3W.js → chunk-KULT6O5K.js} +15 -15
- package/dist/cli/{chunk-YBMHOH6H.mjs → chunk-L3JVGNAT.mjs} +2 -2
- package/dist/cli/{chunk-ZEV2Y56V.js → chunk-L6QAIZNZ.js} +44 -44
- package/dist/cli/{chunk-LZXZQPA2.mjs → chunk-NU7B5X6J.mjs} +1 -1
- package/dist/cli/{chunk-LDGZFDUB.js → chunk-NXGLJGPB.js} +2 -2
- package/dist/cli/{chunk-MSP4DTSD.js → chunk-PJ4ZGZAN.js} +13 -13
- package/dist/cli/{chunk-ZILSRDIN.js → chunk-PU42VOBI.js} +3 -3
- package/dist/cli/{chunk-YRLAUGQY.mjs → chunk-QDBGPRR2.mjs} +1 -1
- package/dist/cli/{chunk-2FCSUOYN.js → chunk-QPDLG7DQ.js} +53 -53
- package/dist/cli/{chunk-DUYAMLOC.mjs → chunk-R7JYG6XO.mjs} +1 -1
- package/dist/cli/{chunk-JUHDJNSI.mjs → chunk-RMVZTBI5.mjs} +4 -4
- package/dist/cli/{chunk-SLPJ3LXI.js → chunk-UGA5KI4A.js} +22 -22
- package/dist/cli/{chunk-GHLDCLSC.mjs → chunk-V5IIBG2E.mjs} +1 -1
- package/dist/cli/{chunk-XVZRJJDS.mjs → chunk-VP2K5B3R.mjs} +3 -3
- package/dist/cli/{chunk-Q4MNUOS4.js → chunk-VRYX2BR4.js} +107 -107
- package/dist/cli/{chunk-KPQHUVYW.mjs → chunk-W3J3LT22.mjs} +5 -5
- package/dist/cli/{chunk-6VUGBQZQ.js → chunk-WBFOV5HT.js} +5 -5
- package/dist/cli/{chunk-Q5CXV3E3.js → chunk-WBTYWJLN.js} +2 -2
- package/dist/cli/{chunk-TX5TUHJN.js → chunk-XDS26J7Z.js} +10 -10
- package/dist/cli/{chunk-Z7UIOGW4.mjs → chunk-Y6AMMXWS.mjs} +3 -3
- package/dist/cli/{chunk-GF32SBST.mjs → chunk-Z2PPB3IO.mjs} +1 -1
- package/dist/cli/{chunk-XBAH3TKU.js → chunk-ZFSB7GXF.js} +5 -5
- package/dist/cli/{chunk-BASLYGXK.mjs → chunk-ZHPSJ3LJ.mjs} +1 -1
- package/dist/cli/{chunk-E24UGPGG.mjs → chunk-ZUAMXZXC.mjs} +4 -4
- package/dist/cli/{csv-P3HLK4GO.mjs → csv-HZP6QMG7.mjs} +4 -4
- package/dist/cli/{csv-2V2DIFNG.js → csv-JITYN27L.js} +13 -13
- package/dist/cli/{db-MREAQVW6.js → db-FYSRB7O4.js} +27 -27
- package/dist/cli/{db-ZYOY3QRQ.mjs → db-QRIRTOMM.mjs} +6 -6
- package/dist/cli/describe-LSOHOLFI.js +49 -0
- package/dist/cli/{describe-IKZFOADR.mjs → describe-REXJVJC3.mjs} +17 -17
- package/dist/cli/{executions-KTSY5M34.mjs → executions-53KJAFOW.mjs} +6 -6
- package/dist/cli/{executions-H5IJ7QSQ.js → executions-BSTF4DDS.js} +8 -8
- package/dist/cli/{feedback-724QK3Z5.js → feedback-6MW3QOXX.js} +14 -14
- package/dist/cli/{feedback-WWJRIXEU.mjs → feedback-CWUJJF3J.mjs} +6 -6
- package/dist/cli/{git-R5VRG7X6.mjs → git-CKVZTJFS.mjs} +5 -5
- package/dist/cli/git-S7SWUZ3T.js +25 -0
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-C6GDEGPU.js → legacy-noops-QBL4PNGB.js} +9 -9
- package/dist/cli/{legacy-noops-PWZ5XLAO.mjs → legacy-noops-USTBRFRX.mjs} +6 -6
- package/dist/cli/{monitors-WQSKMHAP.mjs → monitors-6UCG5D7W.mjs} +7 -7
- package/dist/cli/{monitors-VAVQ4WCE.js → monitors-VCR6SUZD.js} +100 -100
- package/dist/cli/{org-MAL4QPVF.mjs → org-GSRBOJVO.mjs} +6 -6
- package/dist/cli/{org-CWWRWXZQ.js → org-HPILTEG4.js} +86 -86
- package/dist/cli/{play-ILW6MSNG.mjs → play-QRTYQNG4.mjs} +17 -17
- package/dist/cli/{play-WJOWK5PQ.js → play-TK7WOP5H.js} +317 -317
- package/dist/cli/{providers-W662ANCH.js → providers-HEXNJ5QC.js} +9 -9
- package/dist/cli/{providers-4V2NMLZZ.mjs → providers-OAQJWVBS.mjs} +6 -6
- package/dist/cli/{quickstart-C22BR743.mjs → quickstart-FFVHTPSP.mjs} +4 -4
- package/dist/cli/{quickstart-BW6EBUYX.js → quickstart-PYZTFXZX.js} +6 -6
- package/dist/cli/{run-KW7KW4FX.js → run-4DWJXJRO.js} +42 -42
- package/dist/cli/{run-SPAU5IMW.mjs → run-HLN6YYZH.mjs} +22 -22
- package/dist/cli/search-WERQBC6V.js +32 -0
- package/dist/cli/{search-XPC75HLM.mjs → search-ZHRCXGEL.mjs} +7 -7
- package/dist/cli/{search-output-VJYE7USJ.js → search-output-2KY6PFDH.js} +6 -6
- package/dist/cli/{search-output-JKYJSEPM.mjs → search-output-N7QXACVK.mjs} +4 -4
- package/dist/cli/{secrets-OJG73GXQ.mjs → secrets-FKMWBLHU.mjs} +6 -6
- package/dist/cli/{secrets-YB57KGSB.js → secrets-WXQ7XO5C.js} +15 -15
- package/dist/cli/{sessions-7ZL37BW4.mjs → sessions-3YDTEDA5.mjs} +6 -6
- package/dist/cli/sessions-LXQ4Q6BS.js +22 -0
- package/dist/cli/{settings-A7DD2ZYE.js → settings-67TWLQ6E.js} +85 -85
- package/dist/cli/{settings-RKSQB7FA.mjs → settings-JTPASUZN.mjs} +12 -12
- package/dist/cli/{setup-S3K5YU62.js → setup-KUERQJUX.js} +49 -49
- package/dist/cli/{setup-NXDUTITY.mjs → setup-VYNGXUJ6.mjs} +9 -9
- package/dist/cli/skills-EFRLHY3F.js +36 -0
- package/dist/cli/{skills-VMFAIDO6.mjs → skills-KI4KYHH6.mjs} +7 -7
- package/dist/cli/tools-C3EIGFFP.js +56 -0
- package/dist/cli/{tools-52NTHBSJ.mjs → tools-UQDJS2RS.mjs} +16 -16
- package/dist/cli/{update-SAKBEKMV.mjs → update-7FQQUBOD.mjs} +9 -9
- package/dist/cli/update-KCY72RXH.js +34 -0
- package/dist/cli/{views-ACRV7MD6.mjs → views-JAM4MNNV.mjs} +6 -6
- package/dist/cli/{views-C3GJOBDG.js → views-MJK7JGZG.js} +21 -21
- package/dist/cli/{workflow-ZNWCZEGN.js → workflow-AQPRIWQX.js} +17 -17
- package/dist/cli/{workflow-CS22E7TC.mjs → workflow-TQRV5FGO.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +100 -100
- 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-6XQKFOLG.js +0 -43
- package/dist/cli/describe-WW3OQRLP.js +0 -49
- package/dist/cli/git-PHYRD56H.js +0 -25
- package/dist/cli/search-HLE54W5G.js +0 -32
- package/dist/cli/sessions-VEBYZIEU.js +0 -22
- package/dist/cli/skills-NVQ744CN.js +0 -36
- package/dist/cli/tools-SBDUL3WB.js +0 -56
- package/dist/cli/update-HHVFZPCV.js +0 -34
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkALHKB3AEjs = require('./chunk-ALHKB3AE.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,15 +18,15 @@ var _chunkY2NTPYGSjs = require('./chunk-Y2NTPYGS.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkAVQET3NRjs = require('./chunk-AVQET3NR.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkXDS26J7Zjs = require('./chunk-XDS26J7Z.js');
|
|
25
25
|
require('./chunk-D3BCSAN7.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkD77W6Q67js = require('./chunk-D77W6Q67.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -51,10 +51,10 @@ var _chunkCBV7AKWMjs = require('./chunk-CBV7AKWM.js');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkWBFOV5HTjs = require('./chunk-WBFOV5HT.js');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkZFSB7GXFjs = require('./chunk-ZFSB7GXF.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -67,7 +67,7 @@ var _chunkXBAH3TKUjs = require('./chunk-XBAH3TKU.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkJMHYDDBQjs = require('./chunk-JMHYDDBQ.js');
|
|
71
71
|
require('./chunk-E4CABWXL.js');
|
|
72
72
|
|
|
73
73
|
|
|
@@ -91,18 +91,18 @@ require('./chunk-XDVT3GOM.js');
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
var
|
|
94
|
+
var _chunkJS2SBCWDjs = require('./chunk-JS2SBCWD.js');
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
var
|
|
101
|
-
require('./chunk-
|
|
100
|
+
var _chunkNXGLJGPBjs = require('./chunk-NXGLJGPB.js');
|
|
101
|
+
require('./chunk-L6QAIZNZ.js');
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
var
|
|
105
|
+
var _chunkCHIGEDAEjs = require('./chunk-CHIGEDAE.js');
|
|
106
106
|
|
|
107
107
|
|
|
108
108
|
var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
|
|
@@ -122,17 +122,17 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
var
|
|
126
|
-
require('./chunk-
|
|
125
|
+
var _chunkBGXEMTIGjs = require('./chunk-BGXEMTIG.js');
|
|
126
|
+
require('./chunk-PU42VOBI.js');
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
var
|
|
129
|
+
var _chunk3PMCQ3LKjs = require('./chunk-3PMCQ3LK.js');
|
|
130
130
|
require('./chunk-2GJZLIKW.js');
|
|
131
131
|
require('./chunk-XNYIZMNQ.js');
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
|
|
135
|
-
require('./chunk-
|
|
135
|
+
require('./chunk-5EOEJKSV.js');
|
|
136
136
|
require('./chunk-OG64RBAC.js');
|
|
137
137
|
|
|
138
138
|
|
|
@@ -2114,7 +2114,7 @@ function resolveField(key, command) {
|
|
|
2114
2114
|
function printSettings(result, json, name) {
|
|
2115
2115
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2116
2116
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2117
|
-
|
|
2117
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
2118
2118
|
{
|
|
2119
2119
|
...result,
|
|
2120
2120
|
settings: Object.fromEntries(
|
|
@@ -2158,7 +2158,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2158
2158
|
valueSyntax: field.cli.valueSyntax,
|
|
2159
2159
|
examples: field.cli.examples
|
|
2160
2160
|
}));
|
|
2161
|
-
|
|
2161
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
2162
2162
|
{
|
|
2163
2163
|
fields: descriptions,
|
|
2164
2164
|
render: {
|
|
@@ -2183,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2183
2183
|
async (options, command) => {
|
|
2184
2184
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2185
2185
|
printSettings(
|
|
2186
|
-
await new (0,
|
|
2186
|
+
await new (0, _chunkZFSB7GXFjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2187
2187
|
options.json,
|
|
2188
2188
|
options.name
|
|
2189
2189
|
);
|
|
@@ -2214,7 +2214,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2214
2214
|
);
|
|
2215
2215
|
}
|
|
2216
2216
|
if (options.dryRun) {
|
|
2217
|
-
|
|
2217
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
2218
2218
|
{
|
|
2219
2219
|
dryRun: true,
|
|
2220
2220
|
play,
|
|
@@ -2235,7 +2235,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2235
2235
|
return;
|
|
2236
2236
|
}
|
|
2237
2237
|
printSettings(
|
|
2238
|
-
await new (0,
|
|
2238
|
+
await new (0, _chunkZFSB7GXFjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2239
2239
|
options.json
|
|
2240
2240
|
);
|
|
2241
2241
|
};
|
|
@@ -2261,13 +2261,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2261
2261
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2262
2262
|
{ exitCode: 2 }
|
|
2263
2263
|
);
|
|
2264
|
-
const page = await new (0,
|
|
2264
|
+
const page = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2265
2265
|
root: options.root,
|
|
2266
2266
|
limit,
|
|
2267
2267
|
cursor: options.cursor
|
|
2268
2268
|
});
|
|
2269
2269
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2270
|
-
|
|
2270
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
2271
2271
|
{
|
|
2272
2272
|
...page,
|
|
2273
2273
|
nextCommand,
|
|
@@ -2318,7 +2318,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2318
2318
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2319
2319
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2320
2320
|
};
|
|
2321
|
-
const client = new (0,
|
|
2321
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
2322
2322
|
const paths = [];
|
|
2323
2323
|
let cursor;
|
|
2324
2324
|
do {
|
|
@@ -2380,7 +2380,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2380
2380
|
moved.push(move.playName);
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
2383
|
-
|
|
2383
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
2384
2384
|
{
|
|
2385
2385
|
dryRun: Boolean(options.dryRun),
|
|
2386
2386
|
from: options.from,
|
|
@@ -2508,7 +2508,7 @@ function triggerLines(view) {
|
|
|
2508
2508
|
return lines;
|
|
2509
2509
|
}
|
|
2510
2510
|
function printView(view, json) {
|
|
2511
|
-
|
|
2511
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
2512
2512
|
{
|
|
2513
2513
|
...view,
|
|
2514
2514
|
render: {
|
|
@@ -2521,7 +2521,7 @@ function printView(view, json) {
|
|
|
2521
2521
|
);
|
|
2522
2522
|
}
|
|
2523
2523
|
function printResult(result, json) {
|
|
2524
|
-
|
|
2524
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
2525
2525
|
{
|
|
2526
2526
|
...result,
|
|
2527
2527
|
render: {
|
|
@@ -2551,7 +2551,7 @@ async function mutate(command, options, build) {
|
|
|
2551
2551
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2552
2552
|
}
|
|
2553
2553
|
if (options.dryRun) {
|
|
2554
|
-
|
|
2554
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
2555
2555
|
{
|
|
2556
2556
|
dryRun: true,
|
|
2557
2557
|
play: options.play,
|
|
@@ -2570,7 +2570,7 @@ async function mutate(command, options, build) {
|
|
|
2570
2570
|
return;
|
|
2571
2571
|
}
|
|
2572
2572
|
printResult(
|
|
2573
|
-
await new (0,
|
|
2573
|
+
await new (0, _chunkZFSB7GXFjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2574
2574
|
options.json
|
|
2575
2575
|
);
|
|
2576
2576
|
}
|
|
@@ -2603,7 +2603,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2603
2603
|
}).addHelpText("after", help2);
|
|
2604
2604
|
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) => {
|
|
2605
2605
|
printView(
|
|
2606
|
-
await new (0,
|
|
2606
|
+
await new (0, _chunkZFSB7GXFjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2607
2607
|
options.json
|
|
2608
2608
|
);
|
|
2609
2609
|
});
|
|
@@ -2647,7 +2647,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2647
2647
|
if (options.auth === void 0) {
|
|
2648
2648
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2649
2649
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2650
|
-
const current = await new (0,
|
|
2650
|
+
const current = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2651
2651
|
options.play
|
|
2652
2652
|
);
|
|
2653
2653
|
return {
|
|
@@ -2724,7 +2724,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2724
2724
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2725
2725
|
"runtime.event": "Other event."
|
|
2726
2726
|
};
|
|
2727
|
-
var RUN_LOGS_KIND_HELP =
|
|
2727
|
+
var RUN_LOGS_KIND_HELP = _chunkJMHYDDBQjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2728
2728
|
kind,
|
|
2729
2729
|
description: KIND_DESCRIPTIONS[kind]
|
|
2730
2730
|
}));
|
|
@@ -2861,9 +2861,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2861
2861
|
const args = program.args;
|
|
2862
2862
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2863
2863
|
error.exitCode = 2;
|
|
2864
|
-
if (
|
|
2865
|
-
|
|
2866
|
-
Object.assign(new (0,
|
|
2864
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2865
|
+
_chunkBGXEMTIGjs.printJsonError.call(void 0,
|
|
2866
|
+
Object.assign(new (0, _chunkJMHYDDBQjs.RunEventQueryInputError)(error.message), {
|
|
2867
2867
|
exitCode: 2,
|
|
2868
2868
|
retryable: false
|
|
2869
2869
|
})
|
|
@@ -2907,14 +2907,14 @@ function parseQuery(args, resource) {
|
|
|
2907
2907
|
if (VALUE_FLAGS.has(flag)) {
|
|
2908
2908
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2909
2909
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2910
|
-
throw new (0,
|
|
2910
|
+
throw new (0, _chunkJMHYDDBQjs.RunEventQueryInputError)(
|
|
2911
2911
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2912
2912
|
);
|
|
2913
2913
|
}
|
|
2914
2914
|
if (flag === "--sum") sums.push(value);
|
|
2915
2915
|
else {
|
|
2916
2916
|
if (values[flag] !== void 0) {
|
|
2917
|
-
throw new (0,
|
|
2917
|
+
throw new (0, _chunkJMHYDDBQjs.RunEventQueryInputError)(
|
|
2918
2918
|
`${flag} may only be supplied once.`
|
|
2919
2919
|
);
|
|
2920
2920
|
}
|
|
@@ -2928,12 +2928,12 @@ function parseQuery(args, resource) {
|
|
|
2928
2928
|
}
|
|
2929
2929
|
if (arg.startsWith("-")) {
|
|
2930
2930
|
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.";
|
|
2931
|
-
throw new (0,
|
|
2931
|
+
throw new (0, _chunkJMHYDDBQjs.RunEventQueryInputError)(
|
|
2932
2932
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2933
2933
|
);
|
|
2934
2934
|
}
|
|
2935
2935
|
if (runId !== void 0) {
|
|
2936
|
-
throw new (0,
|
|
2936
|
+
throw new (0, _chunkJMHYDDBQjs.RunEventQueryInputError)(
|
|
2937
2937
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2938
2938
|
);
|
|
2939
2939
|
}
|
|
@@ -2941,7 +2941,7 @@ function parseQuery(args, resource) {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
if (switches.has("--fields")) {
|
|
2943
2943
|
if (runId !== void 0) {
|
|
2944
|
-
throw new (0,
|
|
2944
|
+
throw new (0, _chunkJMHYDDBQjs.RunEventQueryInputError)(
|
|
2945
2945
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2946
2946
|
);
|
|
2947
2947
|
}
|
|
@@ -2954,18 +2954,18 @@ function parseQuery(args, resource) {
|
|
|
2954
2954
|
)
|
|
2955
2955
|
];
|
|
2956
2956
|
if (incompatible.length) {
|
|
2957
|
-
throw new (0,
|
|
2957
|
+
throw new (0, _chunkJMHYDDBQjs.RunEventQueryInputError)(
|
|
2958
2958
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2959
2959
|
);
|
|
2960
2960
|
}
|
|
2961
2961
|
}
|
|
2962
2962
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2963
|
-
throw new (0,
|
|
2963
|
+
throw new (0, _chunkJMHYDDBQjs.RunEventQueryInputError)(
|
|
2964
2964
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2965
2965
|
);
|
|
2966
2966
|
}
|
|
2967
2967
|
if (sums.length && switches.has("--count")) {
|
|
2968
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunkJMHYDDBQjs.RunEventQueryInputError)(
|
|
2969
2969
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2970
2970
|
);
|
|
2971
2971
|
}
|
|
@@ -2973,7 +2973,7 @@ function parseQuery(args, resource) {
|
|
|
2973
2973
|
if (operation === "count") {
|
|
2974
2974
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2975
2975
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2976
|
-
throw new (0,
|
|
2976
|
+
throw new (0, _chunkJMHYDDBQjs.RunEventQueryInputError)(
|
|
2977
2977
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2978
2978
|
);
|
|
2979
2979
|
}
|
|
@@ -3008,16 +3008,16 @@ function parseQuery(args, resource) {
|
|
|
3008
3008
|
];
|
|
3009
3009
|
}
|
|
3010
3010
|
}
|
|
3011
|
-
const request =
|
|
3011
|
+
const request = _chunkJMHYDDBQjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3012
3012
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3013
3013
|
const backend = values["--runtime-backend"];
|
|
3014
3014
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3015
|
-
throw new (0,
|
|
3015
|
+
throw new (0, _chunkJMHYDDBQjs.RunEventQueryInputError)(
|
|
3016
3016
|
"--runtime-backend must be daytona or modal."
|
|
3017
3017
|
);
|
|
3018
3018
|
}
|
|
3019
3019
|
if (backend && !namespace) {
|
|
3020
|
-
throw new (0,
|
|
3020
|
+
throw new (0, _chunkJMHYDDBQjs.RunEventQueryInputError)(
|
|
3021
3021
|
"--runtime-backend requires --runtime-namespace."
|
|
3022
3022
|
);
|
|
3023
3023
|
}
|
|
@@ -3064,12 +3064,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3064
3064
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3065
3065
|
const record4 = failure;
|
|
3066
3066
|
const status = record4.statusCode;
|
|
3067
|
-
const exitCode = error instanceof
|
|
3067
|
+
const exitCode = error instanceof _chunkJMHYDDBQjs.RunEventQueryInputError || status === 400 || status === 422 || record4.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record4.code === "CONFIG_ERROR" || record4.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3068
3068
|
const diagnostic = Object.assign(failure, {
|
|
3069
3069
|
exitCode,
|
|
3070
3070
|
retryable: exitCode === 5
|
|
3071
3071
|
});
|
|
3072
|
-
if (
|
|
3072
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) _chunkBGXEMTIGjs.printJsonError.call(void 0, diagnostic);
|
|
3073
3073
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3074
3074
|
return exitCode;
|
|
3075
3075
|
}
|
|
@@ -3084,7 +3084,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3084
3084
|
...criteria
|
|
3085
3085
|
} = request;
|
|
3086
3086
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3087
|
-
const client = new (0,
|
|
3087
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
3088
3088
|
let result;
|
|
3089
3089
|
if (request.operation === "fields") {
|
|
3090
3090
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3150,13 +3150,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3150
3150
|
lines.push(`Next page: ${nextPage}`);
|
|
3151
3151
|
}
|
|
3152
3152
|
}
|
|
3153
|
-
|
|
3153
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
3154
3154
|
{
|
|
3155
3155
|
...result,
|
|
3156
3156
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3157
3157
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3158
3158
|
},
|
|
3159
|
-
{ json:
|
|
3159
|
+
{ json: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3160
3160
|
` }
|
|
3161
3161
|
);
|
|
3162
3162
|
return 0;
|
|
@@ -4118,7 +4118,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4118
4118
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4119
4119
|
);
|
|
4120
4120
|
}
|
|
4121
|
-
const response = await new (0,
|
|
4121
|
+
const response = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4122
4122
|
keys
|
|
4123
4123
|
});
|
|
4124
4124
|
const failed = response.receipts.filter(
|
|
@@ -4130,7 +4130,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4130
4130
|
JSON.stringify(response, null, 2) + "\n",
|
|
4131
4131
|
{ flag: "wx", mode: 384 }
|
|
4132
4132
|
);
|
|
4133
|
-
|
|
4133
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
4134
4134
|
{
|
|
4135
4135
|
runId,
|
|
4136
4136
|
out: options.out,
|
|
@@ -4140,7 +4140,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4140
4140
|
{ json: true }
|
|
4141
4141
|
);
|
|
4142
4142
|
} else {
|
|
4143
|
-
|
|
4143
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4144
4144
|
}
|
|
4145
4145
|
if (failed)
|
|
4146
4146
|
process.exitCode = response.receipts.some(
|
|
@@ -4179,7 +4179,7 @@ includes nextCommand when another page is available.
|
|
|
4179
4179
|
{ exitCode: 2 }
|
|
4180
4180
|
);
|
|
4181
4181
|
}
|
|
4182
|
-
const page = await new (0,
|
|
4182
|
+
const page = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4183
4183
|
launchKey: options.launchKey,
|
|
4184
4184
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4185
4185
|
limit
|
|
@@ -4194,7 +4194,7 @@ includes nextCommand when another page is available.
|
|
|
4194
4194
|
"--limit",
|
|
4195
4195
|
String(limit)
|
|
4196
4196
|
].join(" ") : null;
|
|
4197
|
-
|
|
4197
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
4198
4198
|
{
|
|
4199
4199
|
parentRunId,
|
|
4200
4200
|
launchKey: options.launchKey,
|
|
@@ -4230,7 +4230,7 @@ async function handleRunsHistory(options) {
|
|
|
4230
4230
|
throw new Error("--limit must be a positive integer.");
|
|
4231
4231
|
}
|
|
4232
4232
|
}
|
|
4233
|
-
const page = await new (0,
|
|
4233
|
+
const page = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().runs.history({
|
|
4234
4234
|
cursor: options.cursor,
|
|
4235
4235
|
orgId: options.org,
|
|
4236
4236
|
search: options.search,
|
|
@@ -4246,7 +4246,7 @@ async function handleRunsHistory(options) {
|
|
|
4246
4246
|
);
|
|
4247
4247
|
}
|
|
4248
4248
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4249
|
-
|
|
4249
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
4250
4250
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4251
4251
|
options.json ? { json: true } : {}
|
|
4252
4252
|
);
|
|
@@ -4299,12 +4299,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4299
4299
|
}
|
|
4300
4300
|
}
|
|
4301
4301
|
if (options.notice) console.error(options.notice);
|
|
4302
|
-
const result = await new (0,
|
|
4302
|
+
const result = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().runs.rerun(runId, {
|
|
4303
4303
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4304
4304
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4305
4305
|
});
|
|
4306
|
-
if (
|
|
4307
|
-
|
|
4306
|
+
if (_chunkBGXEMTIGjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4307
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4308
4308
|
} else if (result.rateLimited) {
|
|
4309
4309
|
console.log(`
|
|
4310
4310
|
${result.rateLimited.message}`);
|
|
@@ -4328,7 +4328,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
4328
4328
|
// src/cli/operations/runs-resume.ts
|
|
4329
4329
|
async function runRunsResumeCommand(runId) {
|
|
4330
4330
|
try {
|
|
4331
|
-
const result = await new (0,
|
|
4331
|
+
const result = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().runs.resume(runId);
|
|
4332
4332
|
if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
|
|
4333
4333
|
throw new Error(
|
|
4334
4334
|
"Invalid resume receipt: expected the requested run and a new positive epoch."
|
|
@@ -5170,13 +5170,13 @@ var RunDataset = class _RunDataset {
|
|
|
5170
5170
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5171
5171
|
_fs.writeFileSync.call(void 0,
|
|
5172
5172
|
absolutePath,
|
|
5173
|
-
`${JSON.stringify(
|
|
5173
|
+
`${JSON.stringify(_chunkAVQET3NRjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5174
5174
|
`,
|
|
5175
5175
|
"utf-8"
|
|
5176
5176
|
);
|
|
5177
5177
|
return absolutePath;
|
|
5178
5178
|
}
|
|
5179
|
-
return
|
|
5179
|
+
return _chunkAVQET3NRjs.writeRunDatasetCsv.call(void 0, {
|
|
5180
5180
|
rows: this.rows,
|
|
5181
5181
|
columns: this.#info.columns,
|
|
5182
5182
|
outPath
|
|
@@ -6681,7 +6681,7 @@ function renderOutcome(outcome) {
|
|
|
6681
6681
|
function printResult2(input) {
|
|
6682
6682
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6683
6683
|
if (failed) process.exitCode = 1;
|
|
6684
|
-
|
|
6684
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
6685
6685
|
{
|
|
6686
6686
|
deployment: { ...input.deployment, status: input.status },
|
|
6687
6687
|
plays: input.outcomes,
|
|
@@ -6706,7 +6706,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6706
6706
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6707
6707
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6708
6708
|
});
|
|
6709
|
-
const { http, config } =
|
|
6709
|
+
const { http, config } = _chunkBGXEMTIGjs.getAuthedHttpClient.call(void 0, );
|
|
6710
6710
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6711
6711
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6712
6712
|
deliveryId,
|
|
@@ -6733,7 +6733,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6733
6733
|
},
|
|
6734
6734
|
{
|
|
6735
6735
|
bundle: bundleDeployPlayFile,
|
|
6736
|
-
fetchImpl:
|
|
6736
|
+
fetchImpl: _chunk3PMCQ3LKjs.fetchWithDeploymentProtection,
|
|
6737
6737
|
// The plays are already here: "opening" the source is naming it.
|
|
6738
6738
|
openSource: async () => ({
|
|
6739
6739
|
open: async () => ({ repoRoot: root })
|
|
@@ -6859,7 +6859,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6859
6859
|
// src/cli/renderers/local-play-execution.ts
|
|
6860
6860
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6861
6861
|
if (options.dryRun) {
|
|
6862
|
-
|
|
6862
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6863
6863
|
return;
|
|
6864
6864
|
}
|
|
6865
6865
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7031,7 +7031,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7031
7031
|
const startedAt = Date.now();
|
|
7032
7032
|
try {
|
|
7033
7033
|
const result = run();
|
|
7034
|
-
|
|
7034
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
7035
7035
|
phase,
|
|
7036
7036
|
ms: Date.now() - startedAt,
|
|
7037
7037
|
ok: true,
|
|
@@ -7039,7 +7039,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7039
7039
|
});
|
|
7040
7040
|
return result;
|
|
7041
7041
|
} catch (error) {
|
|
7042
|
-
|
|
7042
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
7043
7043
|
phase,
|
|
7044
7044
|
ms: Date.now() - startedAt,
|
|
7045
7045
|
ok: false,
|
|
@@ -7852,7 +7852,7 @@ function playStatusErrorText(status) {
|
|
|
7852
7852
|
function isRetryablePendingStartFailure(status) {
|
|
7853
7853
|
if (status.status !== "failed") return false;
|
|
7854
7854
|
if (status.runId && status.runId !== "pending") return false;
|
|
7855
|
-
return
|
|
7855
|
+
return _chunkJMHYDDBQjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7856
7856
|
}
|
|
7857
7857
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7858
7858
|
if (error instanceof _chunkBBTKAASQjs.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -7902,13 +7902,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkBBTKAASQjs.Deep
|
|
|
7902
7902
|
}, _class);
|
|
7903
7903
|
function watchSurfaceReaches(state, provenance, level) {
|
|
7904
7904
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
7905
|
-
if (!
|
|
7905
|
+
if (!_chunkJMHYDDBQjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
7906
7906
|
return false;
|
|
7907
7907
|
}
|
|
7908
|
-
if (
|
|
7908
|
+
if (_chunkJMHYDDBQjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
7909
7909
|
return true;
|
|
7910
7910
|
}
|
|
7911
|
-
return state.verbose === true &&
|
|
7911
|
+
return state.verbose === true && _chunkJMHYDDBQjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
7912
7912
|
}
|
|
7913
7913
|
function getEventPayload(event) {
|
|
7914
7914
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8418,7 +8418,7 @@ function resolvePlayRunUrl(input) {
|
|
|
8418
8418
|
}
|
|
8419
8419
|
function openPlayDashboard(url, open2) {
|
|
8420
8420
|
if (open2 && url) {
|
|
8421
|
-
|
|
8421
|
+
_chunkBGXEMTIGjs.openInBrowser.call(void 0, url);
|
|
8422
8422
|
}
|
|
8423
8423
|
}
|
|
8424
8424
|
function printPlayLogLines(input) {
|
|
@@ -8499,7 +8499,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8499
8499
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8500
8500
|
});
|
|
8501
8501
|
} catch (error) {
|
|
8502
|
-
if (
|
|
8502
|
+
if (_chunkJMHYDDBQjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8503
8503
|
return null;
|
|
8504
8504
|
}
|
|
8505
8505
|
throw error;
|
|
@@ -8580,9 +8580,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8580
8580
|
signal: controller.signal,
|
|
8581
8581
|
deferLogs: !input.emitLogs,
|
|
8582
8582
|
omitTerminalLogs: !input.emitLogs,
|
|
8583
|
-
...
|
|
8583
|
+
..._chunkNXGLJGPBjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8584
8584
|
onPoll: (observation) => {
|
|
8585
|
-
|
|
8585
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
8586
8586
|
phase: "play_watch_poll",
|
|
8587
8587
|
workflowId: input.workflowId,
|
|
8588
8588
|
ms: observation.durationMs,
|
|
@@ -8596,7 +8596,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8596
8596
|
full: input.fullJson,
|
|
8597
8597
|
billing: false,
|
|
8598
8598
|
onStatus: async (status) => {
|
|
8599
|
-
|
|
8599
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
8600
8600
|
phase: "play_watch_terminal_status",
|
|
8601
8601
|
workflowId: input.workflowId,
|
|
8602
8602
|
full: input.fullJson === true
|
|
@@ -8685,7 +8685,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8685
8685
|
signal: controller.signal,
|
|
8686
8686
|
cliAdmission: useCliAdmission
|
|
8687
8687
|
});
|
|
8688
|
-
|
|
8688
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
8689
8689
|
phase: "cli.play_start_admission_attempt",
|
|
8690
8690
|
ms: Date.now() - postStartedAt,
|
|
8691
8691
|
ok: true,
|
|
@@ -8697,7 +8697,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8697
8697
|
});
|
|
8698
8698
|
break;
|
|
8699
8699
|
} catch (error) {
|
|
8700
|
-
|
|
8700
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
8701
8701
|
phase: "cli.play_start_admission_attempt",
|
|
8702
8702
|
ms: Date.now() - postStartedAt,
|
|
8703
8703
|
ok: false,
|
|
@@ -8748,7 +8748,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8748
8748
|
prepared.workflowId
|
|
8749
8749
|
);
|
|
8750
8750
|
}
|
|
8751
|
-
await
|
|
8751
|
+
await _chunkJS2SBCWDjs.checkPlayRunCompatibility.call(void 0,
|
|
8752
8752
|
input.client.baseUrl,
|
|
8753
8753
|
input.maintenancePolicy
|
|
8754
8754
|
);
|
|
@@ -8766,7 +8766,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8766
8766
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
8767
8767
|
);
|
|
8768
8768
|
}
|
|
8769
|
-
|
|
8769
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
8770
8770
|
phase: "cli.play_start_json_retry",
|
|
8771
8771
|
ms: 0,
|
|
8772
8772
|
ok: true,
|
|
@@ -8846,7 +8846,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8846
8846
|
_nullishCoalesce(input.open, () => ( false))
|
|
8847
8847
|
);
|
|
8848
8848
|
input.progress.phase("running");
|
|
8849
|
-
|
|
8849
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
8850
8850
|
phase: "cli.play_start_admitted",
|
|
8851
8851
|
ms: Date.now() - startedAt,
|
|
8852
8852
|
ok: true,
|
|
@@ -8864,7 +8864,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8864
8864
|
startedAt,
|
|
8865
8865
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8866
8866
|
});
|
|
8867
|
-
const initialStatus =
|
|
8867
|
+
const initialStatus = _chunkJMHYDDBQjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8868
8868
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8869
8869
|
client: input.client,
|
|
8870
8870
|
status: initialStatus,
|
|
@@ -8872,7 +8872,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8872
8872
|
jsonOutput: input.jsonOutput,
|
|
8873
8873
|
fromDurableStatus: true
|
|
8874
8874
|
});
|
|
8875
|
-
|
|
8875
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
8876
8876
|
phase: "play_watch_terminal_status",
|
|
8877
8877
|
workflowId,
|
|
8878
8878
|
full: true,
|
|
@@ -8977,7 +8977,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8977
8977
|
});
|
|
8978
8978
|
}
|
|
8979
8979
|
if (error instanceof _chunkCQDQNZGHjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
8980
|
-
await
|
|
8980
|
+
await _chunkJS2SBCWDjs.checkPlayRunCompatibility.call(void 0,
|
|
8981
8981
|
input.client.baseUrl,
|
|
8982
8982
|
input.maintenancePolicy,
|
|
8983
8983
|
admissionDeadline.signal
|
|
@@ -9018,7 +9018,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9018
9018
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9019
9019
|
);
|
|
9020
9020
|
}
|
|
9021
|
-
|
|
9021
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
9022
9022
|
phase: "cli.play_start_stream_retry",
|
|
9023
9023
|
ms: 0,
|
|
9024
9024
|
ok: true,
|
|
@@ -9039,7 +9039,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9039
9039
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9040
9040
|
);
|
|
9041
9041
|
}
|
|
9042
|
-
|
|
9042
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
9043
9043
|
phase: "cli.play_start_stream_retry",
|
|
9044
9044
|
ms: 0,
|
|
9045
9045
|
ok: true,
|
|
@@ -9096,7 +9096,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9096
9096
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9097
9097
|
launchConfirmed = true;
|
|
9098
9098
|
await _optionalChain([input, 'access', _314 => _314.onRunAdmitted, 'optionalCall', _315 => _315(runId)]);
|
|
9099
|
-
|
|
9099
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
9100
9100
|
phase: "cli.play_start_admitted",
|
|
9101
9101
|
ms: Date.now() - startedAt,
|
|
9102
9102
|
ok: true,
|
|
@@ -9130,7 +9130,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9130
9130
|
full: input.fullJson
|
|
9131
9131
|
});
|
|
9132
9132
|
} catch (error) {
|
|
9133
|
-
if (
|
|
9133
|
+
if (_chunkJMHYDDBQjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9134
9134
|
return null;
|
|
9135
9135
|
}
|
|
9136
9136
|
throw error;
|
|
@@ -9301,7 +9301,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9301
9301
|
};
|
|
9302
9302
|
}
|
|
9303
9303
|
if (!canonicalTerminal) {
|
|
9304
|
-
|
|
9304
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
9305
9305
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9306
9306
|
ms: Date.now() - startedAt,
|
|
9307
9307
|
ok: true,
|
|
@@ -9322,14 +9322,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9322
9322
|
fromDurableStatus
|
|
9323
9323
|
}) : canonicalTerminal;
|
|
9324
9324
|
if (input.fullJson === true) {
|
|
9325
|
-
|
|
9325
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
9326
9326
|
phase: "play_watch_terminal_status",
|
|
9327
9327
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9328
9328
|
full: true,
|
|
9329
9329
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9330
9330
|
});
|
|
9331
9331
|
}
|
|
9332
|
-
|
|
9332
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
9333
9333
|
phase: "cli.play_start_stream_terminal",
|
|
9334
9334
|
ms: Date.now() - startedAt,
|
|
9335
9335
|
ok: true,
|
|
@@ -9349,7 +9349,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9349
9349
|
clearTimeout(timeout);
|
|
9350
9350
|
}
|
|
9351
9351
|
controller.abort();
|
|
9352
|
-
|
|
9352
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
9353
9353
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9354
9354
|
ms: Date.now() - startedAt,
|
|
9355
9355
|
ok: true,
|
|
@@ -9380,7 +9380,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9380
9380
|
if (timedOut) {
|
|
9381
9381
|
const terminal = await fetchKnownTerminalStatus();
|
|
9382
9382
|
if (terminal) {
|
|
9383
|
-
|
|
9383
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
9384
9384
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9385
9385
|
ms: Date.now() - startedAt,
|
|
9386
9386
|
ok: true,
|
|
@@ -9400,7 +9400,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9400
9400
|
lastPhase
|
|
9401
9401
|
});
|
|
9402
9402
|
}
|
|
9403
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9403
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkJMHYDDBQjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9404
9404
|
if (timeout) {
|
|
9405
9405
|
clearTimeout(timeout);
|
|
9406
9406
|
}
|
|
@@ -9411,7 +9411,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9411
9411
|
`
|
|
9412
9412
|
);
|
|
9413
9413
|
}
|
|
9414
|
-
|
|
9414
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
9415
9415
|
phase: "cli.play_start_stream_reconnect",
|
|
9416
9416
|
ms: Date.now() - startedAt,
|
|
9417
9417
|
ok: true,
|
|
@@ -9438,7 +9438,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9438
9438
|
});
|
|
9439
9439
|
}
|
|
9440
9440
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9441
|
-
|
|
9441
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
9442
9442
|
phase: "cli.play_start_stream_transient_failure",
|
|
9443
9443
|
ms: Date.now() - startedAt,
|
|
9444
9444
|
ok: false,
|
|
@@ -9466,7 +9466,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9466
9466
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9467
9467
|
);
|
|
9468
9468
|
}
|
|
9469
|
-
|
|
9469
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
9470
9470
|
phase: "cli.play_start_stream_reconnect",
|
|
9471
9471
|
ms: Date.now() - startedAt,
|
|
9472
9472
|
ok: true,
|
|
@@ -9546,7 +9546,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9546
9546
|
"logs"
|
|
9547
9547
|
]);
|
|
9548
9548
|
function formatPlayLogLine(rawLine, state) {
|
|
9549
|
-
const classified =
|
|
9549
|
+
const classified = _chunkJMHYDDBQjs.classifyLogLine.call(void 0, rawLine);
|
|
9550
9550
|
const line = classified.line;
|
|
9551
9551
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9552
9552
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _337 => _337[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9561,14 +9561,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9561
9561
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9562
9562
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9563
9563
|
if (providerWait && !state.verbose) {
|
|
9564
|
-
return
|
|
9564
|
+
return _chunkJMHYDDBQjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9565
9565
|
}
|
|
9566
9566
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9567
9567
|
if (mapProgress && !state.verbose) {
|
|
9568
|
-
return
|
|
9568
|
+
return _chunkJMHYDDBQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9569
9569
|
}
|
|
9570
9570
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9571
|
-
if (!
|
|
9571
|
+
if (!_chunkJMHYDDBQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9572
9572
|
return null;
|
|
9573
9573
|
}
|
|
9574
9574
|
if (state.emittedRunnerStarted) {
|
|
@@ -9581,7 +9581,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9581
9581
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9582
9582
|
);
|
|
9583
9583
|
if (mapStart) {
|
|
9584
|
-
if (!
|
|
9584
|
+
if (!_chunkJMHYDDBQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9585
9585
|
return null;
|
|
9586
9586
|
}
|
|
9587
9587
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9591,7 +9591,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9591
9591
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9592
9592
|
);
|
|
9593
9593
|
if (mapDone) {
|
|
9594
|
-
if (!
|
|
9594
|
+
if (!_chunkJMHYDDBQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9595
9595
|
return null;
|
|
9596
9596
|
}
|
|
9597
9597
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10895,7 +10895,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10895
10895
|
(line) => typeof line === "string"
|
|
10896
10896
|
);
|
|
10897
10897
|
if (tail.length === 0) return [];
|
|
10898
|
-
const shown = tail.map((line) =>
|
|
10898
|
+
const shown = tail.map((line) => _chunkJMHYDDBQjs.classifyLogLine.call(void 0, line)).filter(
|
|
10899
10899
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10900
10900
|
).slice(-8);
|
|
10901
10901
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11200,11 +11200,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11200
11200
|
}
|
|
11201
11201
|
function writePlayResult(status, jsonOutput, options) {
|
|
11202
11202
|
const packaged = getPlayRunPackage(status);
|
|
11203
|
-
if (status.package)
|
|
11203
|
+
if (status.package) _chunkAVQET3NRjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11204
11204
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _427 => _427.hits]), () => ( null));
|
|
11205
11205
|
if (jsonOutput) {
|
|
11206
11206
|
const payload2 = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11207
|
-
|
|
11207
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
11208
11208
|
hits ? { ...payload2, hits } : payload2,
|
|
11209
11209
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _429 => _429.jsonFields]) }
|
|
11210
11210
|
);
|
|
@@ -11220,7 +11220,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11220
11220
|
...buildPlayCompletionTextLines(status),
|
|
11221
11221
|
...formatRunHitsLines(hits)
|
|
11222
11222
|
];
|
|
11223
|
-
|
|
11223
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11224
11224
|
json: false,
|
|
11225
11225
|
text: `${lines2.join("\n")}
|
|
11226
11226
|
`
|
|
@@ -11270,7 +11270,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11270
11270
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11271
11271
|
const compact = compactPlayStatus(status);
|
|
11272
11272
|
const payload = _optionalChain([options, 'optionalAccess', _431 => _431.fullJson]) ? status : compact;
|
|
11273
|
-
|
|
11273
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
11274
11274
|
{
|
|
11275
11275
|
...payload,
|
|
11276
11276
|
render: {
|
|
@@ -11494,7 +11494,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11494
11494
|
}
|
|
11495
11495
|
offset += page.rows.length;
|
|
11496
11496
|
}
|
|
11497
|
-
const withError =
|
|
11497
|
+
const withError = _chunkAVQET3NRjs.tableExportHasFailedRows.call(void 0,
|
|
11498
11498
|
sheetRows.filter(
|
|
11499
11499
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11500
11500
|
)
|
|
@@ -11510,7 +11510,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11510
11510
|
return [
|
|
11511
11511
|
withError ? {
|
|
11512
11512
|
...exported,
|
|
11513
|
-
[
|
|
11513
|
+
[_chunkAVQET3NRjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkAVQET3NRjs.tableExportErrorCell.call(void 0,
|
|
11514
11514
|
row
|
|
11515
11515
|
)
|
|
11516
11516
|
} : exported
|
|
@@ -12045,7 +12045,7 @@ function renderServerResultView(value) {
|
|
|
12045
12045
|
function writeStartedPlayRun(input) {
|
|
12046
12046
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12047
12047
|
const run = input.package.run;
|
|
12048
|
-
|
|
12048
|
+
_chunkAVQET3NRjs.recordPlayTermination.call(void 0, {
|
|
12049
12049
|
id: run.id,
|
|
12050
12050
|
status: run.status,
|
|
12051
12051
|
finishedAt: run.finishedAt
|
|
@@ -12058,7 +12058,7 @@ function writeStartedPlayRun(input) {
|
|
|
12058
12058
|
dashboardUrl: input.dashboardUrl,
|
|
12059
12059
|
package: input.package
|
|
12060
12060
|
};
|
|
12061
|
-
|
|
12061
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12062
12062
|
json: true,
|
|
12063
12063
|
fields: input.jsonFields
|
|
12064
12064
|
});
|
|
@@ -12080,7 +12080,7 @@ function writeStartedPlayRun(input) {
|
|
|
12080
12080
|
input.progress.writeLine(output2, process.stdout);
|
|
12081
12081
|
return;
|
|
12082
12082
|
}
|
|
12083
|
-
|
|
12083
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12084
12084
|
json: false,
|
|
12085
12085
|
text: `${output2}
|
|
12086
12086
|
`
|
|
@@ -12115,7 +12115,7 @@ function writeStartedPlayRun(input) {
|
|
|
12115
12115
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12116
12116
|
];
|
|
12117
12117
|
if (input.jsonOutput) {
|
|
12118
|
-
|
|
12118
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12119
12119
|
return;
|
|
12120
12120
|
}
|
|
12121
12121
|
const output = lines.join("\n");
|
|
@@ -12123,7 +12123,7 @@ function writeStartedPlayRun(input) {
|
|
|
12123
12123
|
input.progress.writeLine(output, process.stdout);
|
|
12124
12124
|
return;
|
|
12125
12125
|
}
|
|
12126
|
-
|
|
12126
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
12127
12127
|
{
|
|
12128
12128
|
...payload,
|
|
12129
12129
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12133,7 +12133,7 @@ function writeStartedPlayRun(input) {
|
|
|
12133
12133
|
);
|
|
12134
12134
|
}
|
|
12135
12135
|
function parsePlayCheckOptions(args) {
|
|
12136
|
-
const selection =
|
|
12136
|
+
const selection = _chunkBGXEMTIGjs.parseJsonFields.call(void 0, args, "check");
|
|
12137
12137
|
args = selection.args;
|
|
12138
12138
|
const target = args[0];
|
|
12139
12139
|
if (!target || target.startsWith("-")) {
|
|
@@ -12145,7 +12145,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12145
12145
|
if (arg !== "--json" && arg !== "--full")
|
|
12146
12146
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12147
12147
|
}
|
|
12148
|
-
const jsonOutput =
|
|
12148
|
+
const jsonOutput = _chunkBGXEMTIGjs.argsWantJson.call(void 0, args);
|
|
12149
12149
|
return {
|
|
12150
12150
|
target,
|
|
12151
12151
|
jsonOutput,
|
|
@@ -12221,7 +12221,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12221
12221
|
useLatest,
|
|
12222
12222
|
expectedArtifactHash,
|
|
12223
12223
|
dryRun,
|
|
12224
|
-
jsonOutput:
|
|
12224
|
+
jsonOutput: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args)
|
|
12225
12225
|
};
|
|
12226
12226
|
}
|
|
12227
12227
|
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.";
|
|
@@ -12270,7 +12270,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12270
12270
|
expectedArtifactHash,
|
|
12271
12271
|
watchPlay,
|
|
12272
12272
|
dryRun,
|
|
12273
|
-
jsonOutput:
|
|
12273
|
+
jsonOutput: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args)
|
|
12274
12274
|
};
|
|
12275
12275
|
}
|
|
12276
12276
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12481,7 +12481,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12481
12481
|
async function handlePlayCheck(args) {
|
|
12482
12482
|
const options = parsePlayCheckOptions(args);
|
|
12483
12483
|
if (!isFileTarget(options.target)) {
|
|
12484
|
-
const client = new (0,
|
|
12484
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
12485
12485
|
try {
|
|
12486
12486
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12487
12487
|
command: "check"
|
|
@@ -12510,7 +12510,7 @@ async function handlePlayCheck(args) {
|
|
|
12510
12510
|
},
|
|
12511
12511
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12512
12512
|
};
|
|
12513
|
-
|
|
12513
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, result, {
|
|
12514
12514
|
json: options.jsonOutput,
|
|
12515
12515
|
fields: options.jsonFields,
|
|
12516
12516
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12520,7 +12520,7 @@ async function handlePlayCheck(args) {
|
|
|
12520
12520
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12521
12521
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12522
12522
|
if (options.jsonOutput) {
|
|
12523
|
-
|
|
12523
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
12524
12524
|
{
|
|
12525
12525
|
kind: "play_check",
|
|
12526
12526
|
checked: "named_contract",
|
|
@@ -12551,7 +12551,7 @@ async function handlePlayCheck(args) {
|
|
|
12551
12551
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12552
12552
|
publishCommand: _optionalChain([primary, 'optionalAccess', _481 => _481.result, 'access', _482 => _482.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12553
12553
|
});
|
|
12554
|
-
|
|
12554
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, output, {
|
|
12555
12555
|
json: options.jsonOutput,
|
|
12556
12556
|
fields: options.jsonFields,
|
|
12557
12557
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12619,7 +12619,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12619
12619
|
}
|
|
12620
12620
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12621
12621
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12622
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
12622
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunkZFSB7GXFjs.DeeplineClient)()));
|
|
12623
12623
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12624
12624
|
const checked = await checkLocalPlayGraph({
|
|
12625
12625
|
client,
|
|
@@ -12675,8 +12675,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12675
12675
|
let prefetchClient;
|
|
12676
12676
|
let admissionCapability;
|
|
12677
12677
|
let cancelAdmissionCapability;
|
|
12678
|
-
let cliAdmission =
|
|
12679
|
-
const progress = _nullishCoalesce(
|
|
12678
|
+
let cliAdmission = _chunkJS2SBCWDjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12679
|
+
const progress = _nullishCoalesce(_chunkCHIGEDAEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkCHIGEDAEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12680
12680
|
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _491 => _491.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
12681
12681
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12682
12682
|
progress.phase("compiling play");
|
|
@@ -12693,11 +12693,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12693
12693
|
return 1;
|
|
12694
12694
|
}
|
|
12695
12695
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12696
|
-
const clientForPrefetch = new (0,
|
|
12696
|
+
const clientForPrefetch = new (0, _chunkZFSB7GXFjs.DeeplineClient)(playRunClientOptions(options));
|
|
12697
12697
|
prefetchClient = clientForPrefetch;
|
|
12698
12698
|
const capabilityController = new AbortController();
|
|
12699
12699
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12700
|
-
admissionCapability =
|
|
12700
|
+
admissionCapability = _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
12701
12701
|
"cli.play_admission_capability_prefetch",
|
|
12702
12702
|
{ targetKind: "file" },
|
|
12703
12703
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -12708,7 +12708,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12708
12708
|
}
|
|
12709
12709
|
let graph;
|
|
12710
12710
|
try {
|
|
12711
|
-
graph = await
|
|
12711
|
+
graph = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
12712
12712
|
"cli.play_file_bundle_graph",
|
|
12713
12713
|
{ targetKind: "file" },
|
|
12714
12714
|
() => collectBundledPlayGraph(
|
|
@@ -12721,7 +12721,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12721
12721
|
assertPlayGraphAuthoring(graph);
|
|
12722
12722
|
if (options.dryRun) {
|
|
12723
12723
|
progress.complete();
|
|
12724
|
-
const plan =
|
|
12724
|
+
const plan = _chunkWBFOV5HTjs.planLocalPlayExecution.call(void 0, graph, {
|
|
12725
12725
|
runIdFile: options.runIdFile
|
|
12726
12726
|
});
|
|
12727
12727
|
if (_optionalChain([hooks, 'optionalAccess', _492 => _492.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
@@ -12732,9 +12732,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12732
12732
|
});
|
|
12733
12733
|
return 0;
|
|
12734
12734
|
}
|
|
12735
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
12735
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkZFSB7GXFjs.DeeplineClient)(playRunClientOptions(options))));
|
|
12736
12736
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12737
|
-
await
|
|
12737
|
+
await _chunkJS2SBCWDjs.checkPlayRunCompatibility.call(void 0,
|
|
12738
12738
|
client.baseUrl,
|
|
12739
12739
|
options.maintenancePolicy
|
|
12740
12740
|
);
|
|
@@ -12747,7 +12747,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12747
12747
|
});
|
|
12748
12748
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput) && !mayBindBareFileName(graph.root, runtimeInput);
|
|
12749
12749
|
if (canDeferCompilerManifest) {
|
|
12750
|
-
|
|
12750
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
12751
12751
|
phase: "cli.play_file_compile_manifests",
|
|
12752
12752
|
ms: 0,
|
|
12753
12753
|
ok: true,
|
|
@@ -12756,7 +12756,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12756
12756
|
reason: "validated_by_run_route"
|
|
12757
12757
|
});
|
|
12758
12758
|
} else {
|
|
12759
|
-
await
|
|
12759
|
+
await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
12760
12760
|
"cli.play_file_compile_manifests",
|
|
12761
12761
|
{ targetKind: "file", skipped: false },
|
|
12762
12762
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12764,7 +12764,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12764
12764
|
}
|
|
12765
12765
|
progress.phase("compiled play");
|
|
12766
12766
|
} catch (error) {
|
|
12767
|
-
if (error instanceof
|
|
12767
|
+
if (error instanceof _chunkAVQET3NRjs.ExecutionOutputError) throw error;
|
|
12768
12768
|
progress.fail();
|
|
12769
12769
|
reportError(normalizePlayValidationError(error));
|
|
12770
12770
|
return 1;
|
|
@@ -12775,13 +12775,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12775
12775
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12776
12776
|
try {
|
|
12777
12777
|
renderLocalPlayExecutionPlan(
|
|
12778
|
-
|
|
12778
|
+
_chunkWBFOV5HTjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12779
12779
|
);
|
|
12780
12780
|
progress.phase("pinning imported plays");
|
|
12781
|
-
graph = await
|
|
12781
|
+
graph = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
12782
12782
|
"cli.play_file_pin_imports",
|
|
12783
12783
|
{ targetKind: "file" },
|
|
12784
|
-
() =>
|
|
12784
|
+
() => _chunkWBFOV5HTjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12785
12785
|
);
|
|
12786
12786
|
bundleResult = graph.root;
|
|
12787
12787
|
} catch (error) {
|
|
@@ -12798,7 +12798,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12798
12798
|
inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _493 => _493.authoringContract, 'optionalAccess', _494 => _494.inputSchema]),
|
|
12799
12799
|
staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _495 => _495.staticPipeline])
|
|
12800
12800
|
});
|
|
12801
|
-
const stagedFileInputs = await
|
|
12801
|
+
const stagedFileInputs = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
12802
12802
|
"cli.play_stage_inputs",
|
|
12803
12803
|
{
|
|
12804
12804
|
targetKind: "file",
|
|
@@ -12848,7 +12848,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12848
12848
|
};
|
|
12849
12849
|
if (options.watch) {
|
|
12850
12850
|
progress.phase("starting run");
|
|
12851
|
-
const finalStatus = await
|
|
12851
|
+
const finalStatus = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
12852
12852
|
"cli.play_start_watch",
|
|
12853
12853
|
{ targetKind: "file", playName },
|
|
12854
12854
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12910,7 +12910,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12910
12910
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12911
12911
|
}
|
|
12912
12912
|
progress.phase("starting run");
|
|
12913
|
-
const started = await
|
|
12913
|
+
const started = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
12914
12914
|
"cli.play_start_unwatched",
|
|
12915
12915
|
{ targetKind: "file", playName },
|
|
12916
12916
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _502 => _502.onSubmission]) }).catch(async (error) => {
|
|
@@ -12976,9 +12976,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
12976
12976
|
if (options.target.kind !== "name") {
|
|
12977
12977
|
throw new Error("Expected a named play run target.");
|
|
12978
12978
|
}
|
|
12979
|
-
const client = new (0,
|
|
12980
|
-
let cliAdmission =
|
|
12981
|
-
const progress = _nullishCoalesce(
|
|
12979
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)(playRunClientOptions(options));
|
|
12980
|
+
let cliAdmission = _chunkJS2SBCWDjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12981
|
+
const progress = _nullishCoalesce(_chunkCHIGEDAEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkCHIGEDAEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12982
12982
|
const playName = options.target.name;
|
|
12983
12983
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
12984
12984
|
try {
|
|
@@ -12996,7 +12996,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12996
12996
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12997
12997
|
const capabilityController = new AbortController();
|
|
12998
12998
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12999
|
-
admissionCapability =
|
|
12999
|
+
admissionCapability = _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
13000
13000
|
"cli.play_admission_capability_prefetch",
|
|
13001
13001
|
{ targetKind: "name", playName },
|
|
13002
13002
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13007,14 +13007,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13007
13007
|
}
|
|
13008
13008
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13009
13009
|
progress.phase("loading play definition");
|
|
13010
|
-
return
|
|
13010
|
+
return _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
13011
13011
|
"cli.play_load_definition",
|
|
13012
13012
|
{ targetKind: "name", playName, skipped: false },
|
|
13013
13013
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13014
13014
|
command: "run"
|
|
13015
13015
|
})
|
|
13016
13016
|
);
|
|
13017
|
-
})() : (
|
|
13017
|
+
})() : (_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
13018
13018
|
phase: "cli.play_load_definition",
|
|
13019
13019
|
ms: 0,
|
|
13020
13020
|
ok: true,
|
|
@@ -13023,7 +13023,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13023
13023
|
skipped: true
|
|
13024
13024
|
}), null);
|
|
13025
13025
|
progress.phase("selecting revision");
|
|
13026
|
-
const selectedRevisionId = await
|
|
13026
|
+
const selectedRevisionId = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
13027
13027
|
"cli.play_select_revision",
|
|
13028
13028
|
{
|
|
13029
13029
|
targetKind: "name",
|
|
@@ -13048,10 +13048,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13048
13048
|
..._chunkCQDQNZGHjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13049
13049
|
] : [];
|
|
13050
13050
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13051
|
-
await
|
|
13051
|
+
await _chunkJS2SBCWDjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13052
13052
|
cliAdmission = false;
|
|
13053
13053
|
}
|
|
13054
|
-
const stagedFileInputs = await
|
|
13054
|
+
const stagedFileInputs = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
13055
13055
|
"cli.play_stage_inputs",
|
|
13056
13056
|
{
|
|
13057
13057
|
targetKind: "name",
|
|
@@ -13095,7 +13095,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13095
13095
|
});
|
|
13096
13096
|
if (options.watch) {
|
|
13097
13097
|
progress.phase("starting run");
|
|
13098
|
-
const finalStatus = await
|
|
13098
|
+
const finalStatus = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
13099
13099
|
"cli.play_start_watch",
|
|
13100
13100
|
{ targetKind: "name", playName },
|
|
13101
13101
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13160,7 +13160,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13160
13160
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13161
13161
|
}
|
|
13162
13162
|
progress.phase("starting run");
|
|
13163
|
-
const started = await
|
|
13163
|
+
const started = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
13164
13164
|
"cli.play_start_unwatched",
|
|
13165
13165
|
{ targetKind: "name", playName },
|
|
13166
13166
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _515 => _515.onSubmission]) }).catch(async (error) => {
|
|
@@ -13220,7 +13220,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13220
13220
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13221
13221
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _523 => _523.exec, 'call', _524 => _524(status.runId), 'optionalAccess', _525 => _525[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13222
13222
|
if (!terminal) {
|
|
13223
|
-
|
|
13223
|
+
_chunkAVQET3NRjs.writeExecutionOutput.call(void 0,
|
|
13224
13224
|
{
|
|
13225
13225
|
id: status.runId,
|
|
13226
13226
|
status: status.status,
|
|
@@ -13300,10 +13300,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13300
13300
|
};
|
|
13301
13301
|
}
|
|
13302
13302
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13303
|
-
const allCollections =
|
|
13303
|
+
const allCollections = _chunkAVQET3NRjs.outputCollections.call(void 0, data).map(
|
|
13304
13304
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13305
13305
|
);
|
|
13306
|
-
|
|
13306
|
+
_chunkAVQET3NRjs.writeExecutionOutput.call(void 0,
|
|
13307
13307
|
{
|
|
13308
13308
|
id: status.runId,
|
|
13309
13309
|
status: status.status,
|
|
@@ -13324,7 +13324,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13324
13324
|
}
|
|
13325
13325
|
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;
|
|
13326
13326
|
async function handlePlayRun(args, hooks) {
|
|
13327
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13327
|
+
const parsedOptions = Array.isArray(args) ? _chunkALHKB3AEjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13328
13328
|
const options = parsedOptions.runIdFile ? {
|
|
13329
13329
|
...parsedOptions,
|
|
13330
13330
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13341,7 +13341,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13341
13341
|
JSON.stringify({
|
|
13342
13342
|
version: 1,
|
|
13343
13343
|
admissionState: "submitted_unknown",
|
|
13344
|
-
baseUrl: new (0,
|
|
13344
|
+
baseUrl: new (0, _chunkZFSB7GXFjs.DeeplineClient)().baseUrl,
|
|
13345
13345
|
...intent
|
|
13346
13346
|
})
|
|
13347
13347
|
);
|
|
@@ -13594,7 +13594,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13594
13594
|
);
|
|
13595
13595
|
return `${lines.join("\n")}
|
|
13596
13596
|
|
|
13597
|
-
${
|
|
13597
|
+
${_chunkBGXEMTIGjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13598
13598
|
}
|
|
13599
13599
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13600
13600
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13618,7 +13618,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13618
13618
|
}
|
|
13619
13619
|
}
|
|
13620
13620
|
async function handleRunGet(args) {
|
|
13621
|
-
const selection =
|
|
13621
|
+
const selection = _chunkBGXEMTIGjs.parseJsonFields.call(void 0,
|
|
13622
13622
|
args,
|
|
13623
13623
|
args.includes("--config") ? "config" : "get"
|
|
13624
13624
|
);
|
|
@@ -13631,7 +13631,7 @@ async function handleRunGet(args) {
|
|
|
13631
13631
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13632
13632
|
return 1;
|
|
13633
13633
|
}
|
|
13634
|
-
const client = new (0,
|
|
13634
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
13635
13635
|
const timing = args.includes("--timing");
|
|
13636
13636
|
const web = args.includes("--web");
|
|
13637
13637
|
if (web || args.includes("--web-url")) {
|
|
@@ -13649,8 +13649,8 @@ async function handleRunGet(args) {
|
|
|
13649
13649
|
const dashboardUrl2 = _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13650
13650
|
const runUrl2 = _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
13651
13651
|
if (web) {
|
|
13652
|
-
const opened =
|
|
13653
|
-
|
|
13652
|
+
const opened = _chunkBGXEMTIGjs.openInBrowser.call(void 0, runUrl2);
|
|
13653
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
13654
13654
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
13655
13655
|
{
|
|
13656
13656
|
json: args.includes("--json"),
|
|
@@ -13661,7 +13661,7 @@ async function handleRunGet(args) {
|
|
|
13661
13661
|
);
|
|
13662
13662
|
return 0;
|
|
13663
13663
|
}
|
|
13664
|
-
|
|
13664
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
13665
13665
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
13666
13666
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
13667
13667
|
` }
|
|
@@ -13686,7 +13686,7 @@ async function handleRunGet(args) {
|
|
|
13686
13686
|
"This server does not support recorded configuration reads."
|
|
13687
13687
|
);
|
|
13688
13688
|
}
|
|
13689
|
-
|
|
13689
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
13690
13690
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13691
13691
|
{ json: true, fields: selection.fields }
|
|
13692
13692
|
);
|
|
@@ -13699,7 +13699,7 @@ async function handleRunGet(args) {
|
|
|
13699
13699
|
timing,
|
|
13700
13700
|
() => client.getRunInput(runId)
|
|
13701
13701
|
);
|
|
13702
|
-
|
|
13702
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13703
13703
|
return 0;
|
|
13704
13704
|
}
|
|
13705
13705
|
const full = args.includes("--full");
|
|
@@ -13714,7 +13714,7 @@ async function handleRunGet(args) {
|
|
|
13714
13714
|
failedLogs: args.includes("--log-failed")
|
|
13715
13715
|
})
|
|
13716
13716
|
);
|
|
13717
|
-
if (status.package)
|
|
13717
|
+
if (status.package) _chunkAVQET3NRjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13718
13718
|
if (!status.package) {
|
|
13719
13719
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13720
13720
|
"runs get",
|
|
@@ -13728,8 +13728,8 @@ async function handleRunGet(args) {
|
|
|
13728
13728
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13729
13729
|
const legacyDashboardUrl = legacyPlayName ? _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13730
13730
|
const legacyRunUrl = legacyPlayName ? _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
13731
|
-
if (
|
|
13732
|
-
|
|
13731
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
13732
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
13733
13733
|
{
|
|
13734
13734
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13735
13735
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -13740,7 +13740,7 @@ async function handleRunGet(args) {
|
|
|
13740
13740
|
} else {
|
|
13741
13741
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13742
13742
|
if (legacyRunUrl)
|
|
13743
|
-
|
|
13743
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
13744
13744
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
13745
13745
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
13746
13746
|
` }
|
|
@@ -13770,11 +13770,11 @@ async function handleRunGet(args) {
|
|
|
13770
13770
|
)
|
|
13771
13771
|
]);
|
|
13772
13772
|
const hitLines = formatRunHitsLines(hits);
|
|
13773
|
-
const json =
|
|
13773
|
+
const json = _chunkBGXEMTIGjs.argsWantJson.call(void 0, args);
|
|
13774
13774
|
const playName = resolveRunPlayName(status, runId);
|
|
13775
13775
|
const dashboardUrl = playName ? _chunkXYIECA7Mjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13776
13776
|
const runUrl = playName ? _chunkXYIECA7Mjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
13777
|
-
|
|
13777
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
13778
13778
|
{
|
|
13779
13779
|
...overview,
|
|
13780
13780
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13879,9 +13879,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13879
13879
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13880
13880
|
return 1;
|
|
13881
13881
|
}
|
|
13882
|
-
const status = await new (0,
|
|
13883
|
-
if (
|
|
13884
|
-
|
|
13882
|
+
const status = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().runs.status(runId);
|
|
13883
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
13884
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13885
13885
|
return 0;
|
|
13886
13886
|
}
|
|
13887
13887
|
if (!status.available) {
|
|
@@ -13947,7 +13947,7 @@ async function handleRunsRerun(args) {
|
|
|
13947
13947
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13948
13948
|
return 1;
|
|
13949
13949
|
}
|
|
13950
|
-
const options = { json:
|
|
13950
|
+
const options = { json: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args) };
|
|
13951
13951
|
for (let index = 0; index < args.length; index += 1) {
|
|
13952
13952
|
if (args[index] === "--idempotency-key") {
|
|
13953
13953
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14013,8 +14013,8 @@ ${usage2}
|
|
|
14013
14013
|
Discover Plays: ${next.discover}
|
|
14014
14014
|
Active runs: ${next.running}`
|
|
14015
14015
|
);
|
|
14016
|
-
if (
|
|
14017
|
-
|
|
14016
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
14017
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
14018
14018
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14019
14019
|
{ json: true }
|
|
14020
14020
|
);
|
|
@@ -14029,7 +14029,7 @@ Active runs: ${next.running}`
|
|
|
14029
14029
|
console.error("--offset requires --play.");
|
|
14030
14030
|
return 1;
|
|
14031
14031
|
}
|
|
14032
|
-
const client = new (0,
|
|
14032
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
14033
14033
|
const page = await withRunReadTiming(
|
|
14034
14034
|
"runs list",
|
|
14035
14035
|
"run inventory",
|
|
@@ -14096,14 +14096,14 @@ Active runs: ${next.running}`
|
|
|
14096
14096
|
return lines2.join("\n");
|
|
14097
14097
|
});
|
|
14098
14098
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14099
|
-
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${
|
|
14099
|
+
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkBGXEMTIGjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
14100
14100
|
if (page.hasMore) {
|
|
14101
14101
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14102
14102
|
lines.push(
|
|
14103
14103
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14104
14104
|
);
|
|
14105
14105
|
}
|
|
14106
|
-
|
|
14106
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
14107
14107
|
{
|
|
14108
14108
|
runs,
|
|
14109
14109
|
count: runs.length,
|
|
@@ -14117,7 +14117,7 @@ Active runs: ${next.running}`
|
|
|
14117
14117
|
},
|
|
14118
14118
|
render: { sections: [{ title: "runs", lines }] }
|
|
14119
14119
|
},
|
|
14120
|
-
{ json:
|
|
14120
|
+
{ json: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args) }
|
|
14121
14121
|
);
|
|
14122
14122
|
return 0;
|
|
14123
14123
|
}
|
|
@@ -14147,7 +14147,7 @@ async function handleRunTail(args) {
|
|
|
14147
14147
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14148
14148
|
return 1;
|
|
14149
14149
|
}
|
|
14150
|
-
const parsed =
|
|
14150
|
+
const parsed = _chunkJMHYDDBQjs.parseLogLevel.call(void 0, value);
|
|
14151
14151
|
if (!parsed) {
|
|
14152
14152
|
console.error(
|
|
14153
14153
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14185,9 +14185,9 @@ async function handleRunTail(args) {
|
|
|
14185
14185
|
);
|
|
14186
14186
|
return 1;
|
|
14187
14187
|
}
|
|
14188
|
-
const client = new (0,
|
|
14188
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
14189
14189
|
const jsonLines = args.includes("--jsonl");
|
|
14190
|
-
const jsonOutput = !jsonLines &&
|
|
14190
|
+
const jsonOutput = !jsonLines && _chunkBGXEMTIGjs.argsWantJson.call(void 0, args);
|
|
14191
14191
|
const compact = args.includes("--compact");
|
|
14192
14192
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14193
14193
|
const compactState = {
|
|
@@ -14268,7 +14268,7 @@ async function handleRunLogs(args) {
|
|
|
14268
14268
|
]);
|
|
14269
14269
|
const cursorIndex = args.indexOf("--cursor");
|
|
14270
14270
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14271
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14271
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkJMHYDDBQjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14272
14272
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14273
14273
|
return handleRunEventSearch(args);
|
|
14274
14274
|
}
|
|
@@ -14302,7 +14302,7 @@ async function handleRunLogs(args) {
|
|
|
14302
14302
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14303
14303
|
return 1;
|
|
14304
14304
|
}
|
|
14305
|
-
const parsed =
|
|
14305
|
+
const parsed = _chunkJMHYDDBQjs.parseLogLevel.call(void 0, value);
|
|
14306
14306
|
if (!parsed) {
|
|
14307
14307
|
console.error(
|
|
14308
14308
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14349,12 +14349,12 @@ async function handleRunLogs(args) {
|
|
|
14349
14349
|
);
|
|
14350
14350
|
return 1;
|
|
14351
14351
|
}
|
|
14352
|
-
const client = new (0,
|
|
14352
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
14353
14353
|
if (outPath) {
|
|
14354
14354
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14355
|
-
const logs = result2.entries.filter((line) =>
|
|
14355
|
+
const logs = result2.entries.filter((line) => _chunkJMHYDDBQjs.logLevelReaches.call(void 0, _chunkJMHYDDBQjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkJMHYDDBQjs.classifyLogLine.call(void 0, line).line);
|
|
14356
14356
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14357
|
-
|
|
14357
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
14358
14358
|
{
|
|
14359
14359
|
runId: result2.runId,
|
|
14360
14360
|
log_path: outPath,
|
|
@@ -14377,7 +14377,7 @@ async function handleRunLogs(args) {
|
|
|
14377
14377
|
]
|
|
14378
14378
|
}
|
|
14379
14379
|
},
|
|
14380
|
-
{ json:
|
|
14380
|
+
{ json: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args) }
|
|
14381
14381
|
);
|
|
14382
14382
|
return 0;
|
|
14383
14383
|
}
|
|
@@ -14408,7 +14408,7 @@ async function handleRunLogs(args) {
|
|
|
14408
14408
|
}
|
|
14409
14409
|
};
|
|
14410
14410
|
const text = buildRunLogsText(filteredResult);
|
|
14411
|
-
|
|
14411
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
14412
14412
|
{
|
|
14413
14413
|
runId: result.runId,
|
|
14414
14414
|
totalCount: result.totalCount,
|
|
@@ -14432,7 +14432,7 @@ async function handleRunLogs(args) {
|
|
|
14432
14432
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14433
14433
|
},
|
|
14434
14434
|
{
|
|
14435
|
-
json:
|
|
14435
|
+
json: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args),
|
|
14436
14436
|
text
|
|
14437
14437
|
}
|
|
14438
14438
|
);
|
|
@@ -14456,7 +14456,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14456
14456
|
);
|
|
14457
14457
|
}
|
|
14458
14458
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14459
|
-
(entry) =>
|
|
14459
|
+
(entry) => _chunkJMHYDDBQjs.logLevelReaches.call(void 0, _chunkJMHYDDBQjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14460
14460
|
);
|
|
14461
14461
|
const selected = matching.slice(-limit);
|
|
14462
14462
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14466,7 +14466,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14466
14466
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _558 => _558.at, 'call', _559 => _559(-1), 'optionalAccess', _560 => _560.seq]), () => ( null)),
|
|
14467
14467
|
truncated: result.truncated || olderMatchesExist,
|
|
14468
14468
|
hasMore: olderMatchesExist,
|
|
14469
|
-
nextCursor: olderMatchesExist ?
|
|
14469
|
+
nextCursor: olderMatchesExist ? _chunkJMHYDDBQjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14470
14470
|
};
|
|
14471
14471
|
}
|
|
14472
14472
|
async function handleRunEventSearch(args) {
|
|
@@ -14533,7 +14533,7 @@ ${usage2}`);
|
|
|
14533
14533
|
namespace,
|
|
14534
14534
|
...backend ? { backend } : {}
|
|
14535
14535
|
} : void 0;
|
|
14536
|
-
const client = new (0,
|
|
14536
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
14537
14537
|
const result = await client.runs.searchEvents({
|
|
14538
14538
|
...runId ? { runId } : {},
|
|
14539
14539
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14605,7 +14605,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14605
14605
|
"--limit",
|
|
14606
14606
|
String(limit)
|
|
14607
14607
|
].join(" ") : null;
|
|
14608
|
-
|
|
14608
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
14609
14609
|
{
|
|
14610
14610
|
events,
|
|
14611
14611
|
nextCursor: result.nextCursor,
|
|
@@ -14616,14 +14616,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14616
14616
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14617
14617
|
},
|
|
14618
14618
|
{
|
|
14619
|
-
json:
|
|
14619
|
+
json: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args),
|
|
14620
14620
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14621
14621
|
}
|
|
14622
14622
|
);
|
|
14623
14623
|
return 0;
|
|
14624
14624
|
}
|
|
14625
14625
|
function buildRunLogsText(result) {
|
|
14626
|
-
const lines = result.entries.map((line) =>
|
|
14626
|
+
const lines = result.entries.map((line) => _chunkJMHYDDBQjs.classifyLogLine.call(void 0, line).line);
|
|
14627
14627
|
if (result.warning) {
|
|
14628
14628
|
if (lines.length > 0) lines.push("");
|
|
14629
14629
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14657,7 +14657,7 @@ async function handleRunStop(args) {
|
|
|
14657
14657
|
reason = args[++index];
|
|
14658
14658
|
}
|
|
14659
14659
|
}
|
|
14660
|
-
const client = new (0,
|
|
14660
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
14661
14661
|
const result = await client.runs.stop(runId, { reason });
|
|
14662
14662
|
const state = resolveRunStopState(result);
|
|
14663
14663
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14672,7 +14672,7 @@ async function handleRunStop(args) {
|
|
|
14672
14672
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14673
14673
|
`inspect: deepline runs get ${runId} --full`
|
|
14674
14674
|
];
|
|
14675
|
-
|
|
14675
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
14676
14676
|
{
|
|
14677
14677
|
...cancelling,
|
|
14678
14678
|
state,
|
|
@@ -14687,7 +14687,7 @@ async function handleRunStop(args) {
|
|
|
14687
14687
|
]
|
|
14688
14688
|
}
|
|
14689
14689
|
},
|
|
14690
|
-
{ json:
|
|
14690
|
+
{ json: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args) }
|
|
14691
14691
|
);
|
|
14692
14692
|
return 0;
|
|
14693
14693
|
}
|
|
@@ -14704,7 +14704,7 @@ async function handleRunStop(args) {
|
|
|
14704
14704
|
];
|
|
14705
14705
|
process.stderr.write(`${lines2.join("\n")}
|
|
14706
14706
|
`);
|
|
14707
|
-
|
|
14707
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
14708
14708
|
{
|
|
14709
14709
|
...result,
|
|
14710
14710
|
render: {
|
|
@@ -14719,7 +14719,7 @@ async function handleRunStop(args) {
|
|
|
14719
14719
|
]
|
|
14720
14720
|
}
|
|
14721
14721
|
},
|
|
14722
|
-
{ json:
|
|
14722
|
+
{ json: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args) }
|
|
14723
14723
|
);
|
|
14724
14724
|
return 1;
|
|
14725
14725
|
}
|
|
@@ -14730,12 +14730,12 @@ async function handleRunStop(args) {
|
|
|
14730
14730
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14731
14731
|
] : []
|
|
14732
14732
|
];
|
|
14733
|
-
|
|
14733
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
14734
14734
|
{
|
|
14735
14735
|
...result,
|
|
14736
14736
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14737
14737
|
},
|
|
14738
|
-
{ json:
|
|
14738
|
+
{ json: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args) }
|
|
14739
14739
|
);
|
|
14740
14740
|
return 0;
|
|
14741
14741
|
}
|
|
@@ -14785,18 +14785,18 @@ async function handleRunStopAll(args) {
|
|
|
14785
14785
|
reason = args[++index];
|
|
14786
14786
|
}
|
|
14787
14787
|
}
|
|
14788
|
-
const client = new (0,
|
|
14788
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
14789
14789
|
if (dryRun) {
|
|
14790
14790
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14791
14791
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14792
|
-
|
|
14792
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
14793
14793
|
{
|
|
14794
14794
|
...result2,
|
|
14795
14795
|
render: {
|
|
14796
14796
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14797
14797
|
}
|
|
14798
14798
|
},
|
|
14799
|
-
{ json:
|
|
14799
|
+
{ json: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14800
14800
|
` }
|
|
14801
14801
|
);
|
|
14802
14802
|
return 0;
|
|
@@ -14809,17 +14809,17 @@ async function handleRunStopAll(args) {
|
|
|
14809
14809
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14810
14810
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14811
14811
|
];
|
|
14812
|
-
|
|
14812
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
14813
14813
|
{
|
|
14814
14814
|
...result,
|
|
14815
14815
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14816
14816
|
},
|
|
14817
|
-
{ json:
|
|
14817
|
+
{ json: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args) }
|
|
14818
14818
|
);
|
|
14819
14819
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14820
14820
|
}
|
|
14821
14821
|
async function handleRunExport(args) {
|
|
14822
|
-
const selection =
|
|
14822
|
+
const selection = _chunkBGXEMTIGjs.parseJsonFields.call(void 0, args, "export");
|
|
14823
14823
|
args = selection.args;
|
|
14824
14824
|
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]";
|
|
14825
14825
|
let runId;
|
|
@@ -14890,17 +14890,17 @@ async function handleRunExport(args) {
|
|
|
14890
14890
|
"INVALID_ARGUMENT"
|
|
14891
14891
|
);
|
|
14892
14892
|
}
|
|
14893
|
-
const client = new (0,
|
|
14893
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
14894
14894
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14895
14895
|
assertRunExportStatusIdentity(status, runId);
|
|
14896
14896
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14897
|
-
const progress =
|
|
14897
|
+
const progress = _chunkCHIGEDAEjs.createCliProgress.call(void 0, !_chunkBGXEMTIGjs.argsWantJson.call(void 0, args));
|
|
14898
14898
|
try {
|
|
14899
14899
|
await waitForPlayCompletionByWatch({
|
|
14900
14900
|
client,
|
|
14901
14901
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14902
14902
|
workflowId: runId,
|
|
14903
|
-
jsonOutput:
|
|
14903
|
+
jsonOutput: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args),
|
|
14904
14904
|
emitLogs: false,
|
|
14905
14905
|
waitTimeoutMs,
|
|
14906
14906
|
startedAt: Date.now(),
|
|
@@ -14968,7 +14968,7 @@ async function handleRunExport(args) {
|
|
|
14968
14968
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _574 => _574.rowsInfo, 'access', _575 => _575.totalRows]), () => ( null)),
|
|
14969
14969
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14970
14970
|
...rowFailures ? { rowFailures } : {},
|
|
14971
|
-
columns:
|
|
14971
|
+
columns: _chunkAVQET3NRjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _576 => _576.rowsInfo, 'access', _577 => _577.columns]), () => ( []))),
|
|
14972
14972
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14973
14973
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14974
14974
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -15002,8 +15002,8 @@ async function handleRunExport(args) {
|
|
|
15002
15002
|
"utf-8"
|
|
15003
15003
|
);
|
|
15004
15004
|
}
|
|
15005
|
-
|
|
15006
|
-
json:
|
|
15005
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, payload, {
|
|
15006
|
+
json: _chunkBGXEMTIGjs.argsWantJson.call(void 0, args),
|
|
15007
15007
|
fields: selection.fields,
|
|
15008
15008
|
text: `${lines.join("\n")}
|
|
15009
15009
|
`
|
|
@@ -15037,10 +15037,10 @@ async function handlePlayGet(args) {
|
|
|
15037
15037
|
);
|
|
15038
15038
|
return 2;
|
|
15039
15039
|
}
|
|
15040
|
-
const client = new (0,
|
|
15040
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
15041
15041
|
const explicitJson = args.includes("--json");
|
|
15042
15042
|
const sourceOutput = args.includes("--source");
|
|
15043
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
15043
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkBGXEMTIGjs.argsWantJson.call(void 0, args);
|
|
15044
15044
|
const requestedRevisionFlags = [
|
|
15045
15045
|
args.includes("--working"),
|
|
15046
15046
|
args.includes("--live"),
|
|
@@ -15103,7 +15103,7 @@ async function handlePlayGet(args) {
|
|
|
15103
15103
|
}
|
|
15104
15104
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15105
15105
|
if (jsonOutput) {
|
|
15106
|
-
|
|
15106
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, {
|
|
15107
15107
|
...detail,
|
|
15108
15108
|
...materializedFile ? {
|
|
15109
15109
|
message: loadedMessage,
|
|
@@ -15195,8 +15195,8 @@ async function handlePlayVersions(args) {
|
|
|
15195
15195
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15196
15196
|
return 1;
|
|
15197
15197
|
}
|
|
15198
|
-
const client = new (0,
|
|
15199
|
-
const jsonOutput =
|
|
15198
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
15199
|
+
const jsonOutput = _chunkBGXEMTIGjs.argsWantJson.call(void 0, args);
|
|
15200
15200
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15201
15201
|
command: "versions"
|
|
15202
15202
|
});
|
|
@@ -15204,7 +15204,7 @@ async function handlePlayVersions(args) {
|
|
|
15204
15204
|
parseReferencedPlayTarget(playName).playName
|
|
15205
15205
|
);
|
|
15206
15206
|
if (jsonOutput) {
|
|
15207
|
-
|
|
15207
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, { versions });
|
|
15208
15208
|
return 0;
|
|
15209
15209
|
}
|
|
15210
15210
|
if (versions.length === 0) {
|
|
@@ -15243,8 +15243,8 @@ async function handlePlayCost(args) {
|
|
|
15243
15243
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
15244
15244
|
return 2;
|
|
15245
15245
|
}
|
|
15246
|
-
const result = await new (0,
|
|
15247
|
-
if (
|
|
15246
|
+
const result = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
15247
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
15248
15248
|
else
|
|
15249
15249
|
console.log(
|
|
15250
15250
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -15252,9 +15252,9 @@ async function handlePlayCost(args) {
|
|
|
15252
15252
|
return 0;
|
|
15253
15253
|
}
|
|
15254
15254
|
async function handlePlayList(args) {
|
|
15255
|
-
const jsonOutput =
|
|
15255
|
+
const jsonOutput = _chunkBGXEMTIGjs.argsWantJson.call(void 0, args);
|
|
15256
15256
|
const showCost = args.includes("--show-cost");
|
|
15257
|
-
const client = new (0,
|
|
15257
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
15258
15258
|
const categoriesIndex = args.indexOf("--categories");
|
|
15259
15259
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _596 => _596[categoriesIndex + 1], 'optionalAccess', _597 => _597.trim, 'call', _598 => _598()]) : void 0;
|
|
15260
15260
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15352,7 +15352,7 @@ async function handlePlayList(args) {
|
|
|
15352
15352
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15353
15353
|
lines.push(`Next page: ${nextPage}`);
|
|
15354
15354
|
}
|
|
15355
|
-
|
|
15355
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
15356
15356
|
{
|
|
15357
15357
|
plays,
|
|
15358
15358
|
count: plays.length,
|
|
@@ -15370,7 +15370,7 @@ async function handlePlayList(args) {
|
|
|
15370
15370
|
}
|
|
15371
15371
|
async function handlePlayPin(args, pinned) {
|
|
15372
15372
|
const target = _optionalChain([args, 'access', _607 => _607.find, 'call', _608 => _608((arg) => !arg.startsWith("-")), 'optionalAccess', _609 => _609.trim, 'call', _610 => _610()]);
|
|
15373
|
-
const jsonOutput =
|
|
15373
|
+
const jsonOutput = _chunkBGXEMTIGjs.argsWantJson.call(void 0, args);
|
|
15374
15374
|
const dryRun = args.includes("--dry-run");
|
|
15375
15375
|
if (!target) {
|
|
15376
15376
|
console.error(
|
|
@@ -15388,11 +15388,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15388
15388
|
const name = parsedTarget.playName;
|
|
15389
15389
|
const plan = { name, pinned, dryRun };
|
|
15390
15390
|
if (dryRun) {
|
|
15391
|
-
|
|
15391
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, plan);
|
|
15392
15392
|
return 0;
|
|
15393
15393
|
}
|
|
15394
|
-
const result = await new (0,
|
|
15395
|
-
if (jsonOutput)
|
|
15394
|
+
const result = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15395
|
+
if (jsonOutput) _chunkBGXEMTIGjs.printCompactJson.call(void 0, result);
|
|
15396
15396
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15397
15397
|
return 0;
|
|
15398
15398
|
}
|
|
@@ -15518,12 +15518,12 @@ async function handlePlayGrep(args) {
|
|
|
15518
15518
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15519
15519
|
return 1;
|
|
15520
15520
|
}
|
|
15521
|
-
const client = new (0,
|
|
15521
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
15522
15522
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15523
15523
|
summarizePlayGrepResult
|
|
15524
15524
|
);
|
|
15525
|
-
if (
|
|
15526
|
-
|
|
15525
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
15526
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, {
|
|
15527
15527
|
plays: results,
|
|
15528
15528
|
count: results.length,
|
|
15529
15529
|
query,
|
|
@@ -15546,7 +15546,7 @@ async function handlePlayGrep(args) {
|
|
|
15546
15546
|
return 0;
|
|
15547
15547
|
}
|
|
15548
15548
|
async function handlePlayDescribe(args) {
|
|
15549
|
-
const selection =
|
|
15549
|
+
const selection = _chunkBGXEMTIGjs.parseJsonFields.call(void 0, args, "describe");
|
|
15550
15550
|
args = selection.args;
|
|
15551
15551
|
const playName = args[0];
|
|
15552
15552
|
if (!playName) {
|
|
@@ -15580,8 +15580,8 @@ async function handlePlayDescribe(args) {
|
|
|
15580
15580
|
`deepline plays check ${playName}`,
|
|
15581
15581
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15582
15582
|
];
|
|
15583
|
-
if (
|
|
15584
|
-
|
|
15583
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
15584
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, {
|
|
15585
15585
|
ok: false,
|
|
15586
15586
|
error: { message },
|
|
15587
15587
|
next
|
|
@@ -15595,7 +15595,7 @@ async function handlePlayDescribe(args) {
|
|
|
15595
15595
|
}
|
|
15596
15596
|
return 2;
|
|
15597
15597
|
}
|
|
15598
|
-
const client = new (0,
|
|
15598
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
15599
15599
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15600
15600
|
command: "describe"
|
|
15601
15601
|
});
|
|
@@ -15605,9 +15605,9 @@ async function handlePlayDescribe(args) {
|
|
|
15605
15605
|
compact: args.includes("--compact")
|
|
15606
15606
|
}
|
|
15607
15607
|
);
|
|
15608
|
-
if (
|
|
15609
|
-
if (selection.fields)
|
|
15610
|
-
else
|
|
15608
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
15609
|
+
if (selection.fields) _chunkBGXEMTIGjs.printJson.call(void 0, play, selection.fields);
|
|
15610
|
+
else _chunkBGXEMTIGjs.printCompactJson.call(void 0, play);
|
|
15611
15611
|
return 0;
|
|
15612
15612
|
}
|
|
15613
15613
|
printPlayDescription(play);
|
|
@@ -15628,7 +15628,7 @@ async function handlePlaySave(args) {
|
|
|
15628
15628
|
return 2;
|
|
15629
15629
|
}
|
|
15630
15630
|
const watchPlay = options.dryRun ? void 0 : options.watchPlay;
|
|
15631
|
-
const client = watchPlay ? new (0,
|
|
15631
|
+
const client = watchPlay ? new (0, _chunkZFSB7GXFjs.DeeplineClient)() : void 0;
|
|
15632
15632
|
let attempt;
|
|
15633
15633
|
if (watchPlay && client) {
|
|
15634
15634
|
try {
|
|
@@ -15652,7 +15652,7 @@ async function handlePlaySave(args) {
|
|
|
15652
15652
|
};
|
|
15653
15653
|
let graph;
|
|
15654
15654
|
try {
|
|
15655
|
-
graph = await
|
|
15655
|
+
graph = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
15656
15656
|
"cli.play_save_bundle_graph",
|
|
15657
15657
|
{ targetKind: "file" },
|
|
15658
15658
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15681,7 +15681,7 @@ async function handlePlaySave(args) {
|
|
|
15681
15681
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15682
15682
|
};
|
|
15683
15683
|
if (options.jsonOutput) {
|
|
15684
|
-
|
|
15684
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, result);
|
|
15685
15685
|
} else {
|
|
15686
15686
|
console.error(result.message);
|
|
15687
15687
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15703,7 +15703,7 @@ async function handlePlaySave(args) {
|
|
|
15703
15703
|
};
|
|
15704
15704
|
if (options.dryRun) {
|
|
15705
15705
|
if (options.jsonOutput) {
|
|
15706
|
-
|
|
15706
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, dryRun);
|
|
15707
15707
|
} else {
|
|
15708
15708
|
console.log(`Dry run: ${playName}`);
|
|
15709
15709
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15712,14 +15712,14 @@ async function handlePlaySave(args) {
|
|
|
15712
15712
|
}
|
|
15713
15713
|
return 0;
|
|
15714
15714
|
}
|
|
15715
|
-
const saveClient = _nullishCoalesce(client, () => ( new (0,
|
|
15715
|
+
const saveClient = _nullishCoalesce(client, () => ( new (0, _chunkZFSB7GXFjs.DeeplineClient)()));
|
|
15716
15716
|
try {
|
|
15717
|
-
await
|
|
15717
|
+
await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
15718
15718
|
"cli.play_save_compile_manifests",
|
|
15719
15719
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15720
15720
|
() => compileBundledPlayGraphManifests(saveClient, graph)
|
|
15721
15721
|
);
|
|
15722
|
-
const saved = await
|
|
15722
|
+
const saved = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
15723
15723
|
"cli.play_save_register_draft",
|
|
15724
15724
|
{ targetKind: "file", playName, artifactHash },
|
|
15725
15725
|
() => saveClient.registerPlayArtifact({
|
|
@@ -15749,7 +15749,7 @@ async function handlePlaySave(args) {
|
|
|
15749
15749
|
}
|
|
15750
15750
|
};
|
|
15751
15751
|
if (options.jsonOutput) {
|
|
15752
|
-
|
|
15752
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, result);
|
|
15753
15753
|
} else {
|
|
15754
15754
|
console.log(
|
|
15755
15755
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15778,7 +15778,7 @@ async function handlePlayPublish(args) {
|
|
|
15778
15778
|
}
|
|
15779
15779
|
const { target: playName, useLatest } = options;
|
|
15780
15780
|
let revisionId = options.revisionId;
|
|
15781
|
-
const client = new (0,
|
|
15781
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
15782
15782
|
if (isFileTarget(playName)) {
|
|
15783
15783
|
if (revisionId || useLatest) {
|
|
15784
15784
|
console.error(
|
|
@@ -15788,7 +15788,7 @@ async function handlePlayPublish(args) {
|
|
|
15788
15788
|
}
|
|
15789
15789
|
let graph;
|
|
15790
15790
|
try {
|
|
15791
|
-
graph = await
|
|
15791
|
+
graph = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
15792
15792
|
"cli.play_publish_bundle_graph",
|
|
15793
15793
|
{ targetKind: "file" },
|
|
15794
15794
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15810,7 +15810,7 @@ async function handlePlayPublish(args) {
|
|
|
15810
15810
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15811
15811
|
};
|
|
15812
15812
|
if (options.jsonOutput) {
|
|
15813
|
-
|
|
15813
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, result3);
|
|
15814
15814
|
} else {
|
|
15815
15815
|
console.error(result3.message);
|
|
15816
15816
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15833,7 +15833,7 @@ async function handlePlayPublish(args) {
|
|
|
15833
15833
|
};
|
|
15834
15834
|
if (options.dryRun) {
|
|
15835
15835
|
if (options.jsonOutput) {
|
|
15836
|
-
|
|
15836
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, dryRun);
|
|
15837
15837
|
} else {
|
|
15838
15838
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15839
15839
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15852,12 +15852,12 @@ async function handlePlayPublish(args) {
|
|
|
15852
15852
|
}
|
|
15853
15853
|
}
|
|
15854
15854
|
try {
|
|
15855
|
-
await
|
|
15855
|
+
await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
15856
15856
|
"cli.play_publish_compile_manifests",
|
|
15857
15857
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15858
15858
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15859
15859
|
);
|
|
15860
|
-
await
|
|
15860
|
+
await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
15861
15861
|
"cli.play_publish_imports",
|
|
15862
15862
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15863
15863
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15866,7 +15866,7 @@ async function handlePlayPublish(args) {
|
|
|
15866
15866
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15867
15867
|
return 1;
|
|
15868
15868
|
}
|
|
15869
|
-
const published = await
|
|
15869
|
+
const published = await _chunkNXGLJGPBjs.traceCliSpan.call(void 0,
|
|
15870
15870
|
"cli.play_publish_register_root",
|
|
15871
15871
|
{
|
|
15872
15872
|
targetKind: "file",
|
|
@@ -15901,7 +15901,7 @@ async function handlePlayPublish(args) {
|
|
|
15901
15901
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15902
15902
|
};
|
|
15903
15903
|
if (options.jsonOutput) {
|
|
15904
|
-
|
|
15904
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, result2);
|
|
15905
15905
|
} else {
|
|
15906
15906
|
printPublishReceipt({
|
|
15907
15907
|
name: rootPlayName,
|
|
@@ -15932,7 +15932,7 @@ async function handlePlayPublish(args) {
|
|
|
15932
15932
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15933
15933
|
latest: useLatest
|
|
15934
15934
|
};
|
|
15935
|
-
|
|
15935
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, result2);
|
|
15936
15936
|
return 0;
|
|
15937
15937
|
}
|
|
15938
15938
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15956,7 +15956,7 @@ async function handlePlayPublish(args) {
|
|
|
15956
15956
|
revisionId ? { revisionId } : {}
|
|
15957
15957
|
);
|
|
15958
15958
|
if (options.jsonOutput) {
|
|
15959
|
-
|
|
15959
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, result);
|
|
15960
15960
|
} else {
|
|
15961
15961
|
printPublishReceipt({
|
|
15962
15962
|
name: result.name,
|
|
@@ -15996,7 +15996,7 @@ async function handlePlayDelete(args) {
|
|
|
15996
15996
|
);
|
|
15997
15997
|
return 2;
|
|
15998
15998
|
}
|
|
15999
|
-
const client = new (0,
|
|
15999
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
16000
16000
|
let detail;
|
|
16001
16001
|
try {
|
|
16002
16002
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -16020,8 +16020,8 @@ async function handlePlayDelete(args) {
|
|
|
16020
16020
|
name: resolvedName,
|
|
16021
16021
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
16022
16022
|
};
|
|
16023
|
-
if (
|
|
16024
|
-
|
|
16023
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
16024
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, result2);
|
|
16025
16025
|
} else {
|
|
16026
16026
|
process.stdout.write(
|
|
16027
16027
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16031,8 +16031,8 @@ async function handlePlayDelete(args) {
|
|
|
16031
16031
|
return 0;
|
|
16032
16032
|
}
|
|
16033
16033
|
const result = await client.deletePlay(resolvedName);
|
|
16034
|
-
if (
|
|
16035
|
-
|
|
16034
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
16035
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, result);
|
|
16036
16036
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16037
16037
|
}
|
|
16038
16038
|
if (result.alreadyArchived) {
|
|
@@ -16071,13 +16071,13 @@ async function handlePlayRestore(args) {
|
|
|
16071
16071
|
);
|
|
16072
16072
|
return 2;
|
|
16073
16073
|
}
|
|
16074
|
-
const client = new (0,
|
|
16074
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
16075
16075
|
try {
|
|
16076
16076
|
const result = await client.restorePlay(
|
|
16077
16077
|
parseReferencedPlayTarget(playName).playName
|
|
16078
16078
|
);
|
|
16079
|
-
if (
|
|
16080
|
-
|
|
16079
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
16080
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, result);
|
|
16081
16081
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16082
16082
|
}
|
|
16083
16083
|
if (result.alreadyActive) {
|
|
@@ -16204,21 +16204,21 @@ Common commands:
|
|
|
16204
16204
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16205
16205
|
}
|
|
16206
16206
|
};
|
|
16207
|
-
|
|
16207
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0, result2, {
|
|
16208
16208
|
json: options.json,
|
|
16209
16209
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16210
16210
|
`
|
|
16211
16211
|
});
|
|
16212
16212
|
return;
|
|
16213
16213
|
}
|
|
16214
|
-
const client = new (0,
|
|
16214
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
16215
16215
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16216
16216
|
throw new Error(
|
|
16217
16217
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16218
16218
|
);
|
|
16219
16219
|
}
|
|
16220
16220
|
const result = await client.startPlayRun(saved.request);
|
|
16221
|
-
|
|
16221
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
16222
16222
|
{ ...result },
|
|
16223
16223
|
{
|
|
16224
16224
|
json: options.json,
|
|
@@ -16254,7 +16254,7 @@ Examples:
|
|
|
16254
16254
|
).action(async (target, options) => {
|
|
16255
16255
|
process.exitCode = await handlePlayCheck([
|
|
16256
16256
|
target,
|
|
16257
|
-
...
|
|
16257
|
+
..._chunkBGXEMTIGjs.jsonFieldArgs.call(void 0, options.json),
|
|
16258
16258
|
...options.full ? ["--full"] : []
|
|
16259
16259
|
]);
|
|
16260
16260
|
});
|
|
@@ -16301,10 +16301,10 @@ Notes:
|
|
|
16301
16301
|
with a changed input is refused with a 409 conflict. Use one stable key per
|
|
16302
16302
|
exact intent. Without a key, each invocation starts a new run.
|
|
16303
16303
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16304
|
-
resident-work ceiling. Default: ${
|
|
16304
|
+
resident-work ceiling. Default: ${_chunkALHKB3AEjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkALHKB3AEjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16305
16305
|
Provider pacing and sandbox memory limits still apply.
|
|
16306
16306
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16307
|
-
resolvers. Accepted range: 1-${
|
|
16307
|
+
resolvers. Accepted range: 1-${_chunkALHKB3AEjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16308
16308
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16309
16309
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16310
16310
|
Tool calls that would exceed it are denied.
|
|
@@ -16429,10 +16429,10 @@ Examples:
|
|
|
16429
16429
|
).hideHelp()
|
|
16430
16430
|
).option(
|
|
16431
16431
|
"--max-concurrent-external-calls <count>",
|
|
16432
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16432
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkALHKB3AEjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkALHKB3AEjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16433
16433
|
).option(
|
|
16434
16434
|
"--max-concurrent-rows <count>",
|
|
16435
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16435
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkALHKB3AEjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16436
16436
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
|
|
16437
16437
|
"--debug-map-latency",
|
|
16438
16438
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16527,14 +16527,14 @@ JSON field selection:
|
|
|
16527
16527
|
passthroughArgs.shift();
|
|
16528
16528
|
}
|
|
16529
16529
|
const exitCode = await handlePlayRun(
|
|
16530
|
-
|
|
16530
|
+
_chunkALHKB3AEjs.resolvePlayRunCliOptions.call(void 0,
|
|
16531
16531
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16532
16532
|
options,
|
|
16533
16533
|
passthroughArgs,
|
|
16534
|
-
|
|
16534
|
+
_chunkNXGLJGPBjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16535
16535
|
)
|
|
16536
16536
|
);
|
|
16537
|
-
|
|
16537
|
+
_chunkNXGLJGPBjs.recordCliTrace.call(void 0, {
|
|
16538
16538
|
phase: "cli.play_command_exit",
|
|
16539
16539
|
exitCode
|
|
16540
16540
|
});
|
|
@@ -16583,9 +16583,9 @@ Examples:
|
|
|
16583
16583
|
const limit = Number(options.historyLimit);
|
|
16584
16584
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16585
16585
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16586
|
-
const client = new (0,
|
|
16586
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
16587
16587
|
if (options.binding) {
|
|
16588
|
-
|
|
16588
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0,
|
|
16589
16589
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16590
16590
|
);
|
|
16591
16591
|
return;
|
|
@@ -16593,7 +16593,7 @@ Examples:
|
|
|
16593
16593
|
const result = await client.listPlayTriggerInventory({
|
|
16594
16594
|
cursor: options.cursor
|
|
16595
16595
|
});
|
|
16596
|
-
|
|
16596
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, {
|
|
16597
16597
|
...result,
|
|
16598
16598
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16599
16599
|
});
|
|
@@ -16652,7 +16652,7 @@ Examples:
|
|
|
16652
16652
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16653
16653
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16654
16654
|
}
|
|
16655
|
-
const result = await new (0,
|
|
16655
|
+
const result = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().getPlaysActivity({
|
|
16656
16656
|
timeZone: options.timeZone,
|
|
16657
16657
|
days,
|
|
16658
16658
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16666,7 +16666,7 @@ Examples:
|
|
|
16666
16666
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16667
16667
|
);
|
|
16668
16668
|
}
|
|
16669
|
-
|
|
16669
|
+
_chunkBGXEMTIGjs.printCommandEnvelope.call(void 0,
|
|
16670
16670
|
{ ...result },
|
|
16671
16671
|
{
|
|
16672
16672
|
json: Boolean(options.json),
|
|
@@ -16695,7 +16695,7 @@ Examples:
|
|
|
16695
16695
|
false
|
|
16696
16696
|
);
|
|
16697
16697
|
});
|
|
16698
|
-
|
|
16698
|
+
_chunkXDS26J7Zjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16699
16699
|
play,
|
|
16700
16700
|
(options) => options.all ? ["prebuilts", "custom"] : ["prebuilts"]
|
|
16701
16701
|
);
|
|
@@ -16736,9 +16736,9 @@ Examples:
|
|
|
16736
16736
|
"--json [fields]",
|
|
16737
16737
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16738
16738
|
);
|
|
16739
|
-
|
|
16739
|
+
_chunkAVQET3NRjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16740
16740
|
async (target, options) => {
|
|
16741
|
-
const ownView = () => handlePlayDescribe(
|
|
16741
|
+
const ownView = () => handlePlayDescribe(_chunkBGXEMTIGjs.describeArgs.call(void 0, target, options));
|
|
16742
16742
|
const [flagText] = [options.json].filter(
|
|
16743
16743
|
(value) => typeof value === "string"
|
|
16744
16744
|
);
|
|
@@ -16749,7 +16749,7 @@ Examples:
|
|
|
16749
16749
|
process.exitCode = await ownView();
|
|
16750
16750
|
return;
|
|
16751
16751
|
}
|
|
16752
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16752
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-LSOHOLFI.js")));
|
|
16753
16753
|
process.exitCode = await describeAnything(
|
|
16754
16754
|
name,
|
|
16755
16755
|
{
|
|
@@ -16872,7 +16872,7 @@ Examples:
|
|
|
16872
16872
|
deepline plays deployments <deployment-id>
|
|
16873
16873
|
`
|
|
16874
16874
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16875
|
-
async (id, options) => id ?
|
|
16875
|
+
async (id, options) => id ? _chunkD77W6Q67js.handleDeploymentGet.call(void 0, id, options) : _chunkD77W6Q67js.handleDeploymentsList.call(void 0, options)
|
|
16876
16876
|
);
|
|
16877
16877
|
addPublishHelp(
|
|
16878
16878
|
play.command("publish <target>").description(
|
|
@@ -17007,14 +17007,14 @@ Examples:
|
|
|
17007
17007
|
const limit = Number(options.limit);
|
|
17008
17008
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
17009
17009
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
17010
|
-
const result = await new (0,
|
|
17010
|
+
const result = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().runs.rowHistory({
|
|
17011
17011
|
playName: options.play,
|
|
17012
17012
|
runId,
|
|
17013
17013
|
tableNamespace: options.dataset,
|
|
17014
17014
|
limit,
|
|
17015
17015
|
cursor: options.cursor
|
|
17016
17016
|
});
|
|
17017
|
-
|
|
17017
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, {
|
|
17018
17018
|
...result,
|
|
17019
17019
|
...result.nextCursor ? {
|
|
17020
17020
|
next: `deepline runs rows-history ${_chunkAID3OYVJjs.shellQuote.call(void 0, runId)} --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor)} --json`
|
|
@@ -17092,7 +17092,7 @@ Examples:
|
|
|
17092
17092
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
17093
17093
|
).action(async (runId, options) => {
|
|
17094
17094
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
17095
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
17095
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-C3EIGFFP.js")));
|
|
17096
17096
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
17097
17097
|
receiptJson: options.json !== void 0
|
|
17098
17098
|
});
|
|
@@ -17100,7 +17100,7 @@ Examples:
|
|
|
17100
17100
|
}
|
|
17101
17101
|
process.exitCode = await handleRunGet([
|
|
17102
17102
|
runId,
|
|
17103
|
-
...
|
|
17103
|
+
..._chunkBGXEMTIGjs.jsonFieldArgs.call(void 0, options.json),
|
|
17104
17104
|
...options.web ? ["--web"] : [],
|
|
17105
17105
|
...options.webUrl ? ["--web-url"] : [],
|
|
17106
17106
|
...options.full ? ["--full"] : [],
|
|
@@ -17422,7 +17422,7 @@ Examples:
|
|
|
17422
17422
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17423
17423
|
...options.wait ? ["--wait"] : [],
|
|
17424
17424
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17425
|
-
...
|
|
17425
|
+
..._chunkBGXEMTIGjs.jsonFieldArgs.call(void 0, options.json)
|
|
17426
17426
|
]);
|
|
17427
17427
|
});
|
|
17428
17428
|
const share = play.command("share").description(
|
|
@@ -17588,10 +17588,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17588
17588
|
return 2;
|
|
17589
17589
|
}
|
|
17590
17590
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17591
|
-
const status = await new (0,
|
|
17591
|
+
const status = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().getSharePage(name);
|
|
17592
17592
|
const outputStatus = shareStatusForOutput(status);
|
|
17593
|
-
if (
|
|
17594
|
-
|
|
17593
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
17594
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, outputStatus);
|
|
17595
17595
|
return 0;
|
|
17596
17596
|
}
|
|
17597
17597
|
if (!outputStatus.share) {
|
|
@@ -17630,7 +17630,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17630
17630
|
return 2;
|
|
17631
17631
|
}
|
|
17632
17632
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17633
|
-
const client = new (0,
|
|
17633
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
17634
17634
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17635
17635
|
let resolvedVersion;
|
|
17636
17636
|
if (!revisionId) {
|
|
@@ -17661,8 +17661,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17661
17661
|
);
|
|
17662
17662
|
if (!hasCompleted) {
|
|
17663
17663
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17664
|
-
if (
|
|
17665
|
-
|
|
17664
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
17665
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, {
|
|
17666
17666
|
ok: false,
|
|
17667
17667
|
code: "NO_SUCCESSFUL_RUN",
|
|
17668
17668
|
message,
|
|
@@ -17686,8 +17686,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17686
17686
|
};
|
|
17687
17687
|
if (args.includes("--dry-run")) {
|
|
17688
17688
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17689
|
-
if (
|
|
17690
|
-
|
|
17689
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
17690
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, plan);
|
|
17691
17691
|
} else {
|
|
17692
17692
|
console.log(
|
|
17693
17693
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17697,8 +17697,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17697
17697
|
}
|
|
17698
17698
|
const status = await client.publishSharePage(name, request);
|
|
17699
17699
|
const outputStatus = shareStatusForOutput(status);
|
|
17700
|
-
if (
|
|
17701
|
-
|
|
17700
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
17701
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, outputStatus);
|
|
17702
17702
|
return 0;
|
|
17703
17703
|
}
|
|
17704
17704
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17729,9 +17729,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17729
17729
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17730
17730
|
...seoIndexing ? { seoIndexing } : {}
|
|
17731
17731
|
};
|
|
17732
|
-
const status = await new (0,
|
|
17733
|
-
if (
|
|
17734
|
-
|
|
17732
|
+
const status = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().updateSharePage(name, request);
|
|
17733
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
17734
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, status);
|
|
17735
17735
|
return 0;
|
|
17736
17736
|
}
|
|
17737
17737
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17746,7 +17746,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17746
17746
|
return 2;
|
|
17747
17747
|
}
|
|
17748
17748
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17749
|
-
const client = new (0,
|
|
17749
|
+
const client = new (0, _chunkZFSB7GXFjs.DeeplineClient)();
|
|
17750
17750
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17751
17751
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17752
17752
|
if (!revisionId && versionFlag) {
|
|
@@ -17763,8 +17763,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17763
17763
|
revisionId ? { revisionId } : {}
|
|
17764
17764
|
);
|
|
17765
17765
|
const outputStatus = shareStatusForOutput(status);
|
|
17766
|
-
if (
|
|
17767
|
-
|
|
17766
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
17767
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, outputStatus);
|
|
17768
17768
|
return 0;
|
|
17769
17769
|
}
|
|
17770
17770
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17789,9 +17789,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17789
17789
|
return 2;
|
|
17790
17790
|
}
|
|
17791
17791
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17792
|
-
const status = await new (0,
|
|
17793
|
-
if (
|
|
17794
|
-
|
|
17792
|
+
const status = await new (0, _chunkZFSB7GXFjs.DeeplineClient)().unpublishSharePage(name);
|
|
17793
|
+
if (_chunkBGXEMTIGjs.argsWantJson.call(void 0, args)) {
|
|
17794
|
+
_chunkBGXEMTIGjs.printCompactJson.call(void 0, status);
|
|
17795
17795
|
return 0;
|
|
17796
17796
|
}
|
|
17797
17797
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17869,4 +17869,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17869
17869
|
|
|
17870
17870
|
|
|
17871
17871
|
|
|
17872
|
-
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag =
|
|
17872
|
+
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.checkPlayFileExports = checkPlayFileExports; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkALHKB3AEjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkALHKB3AEjs.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.takeFromRunRerunArgs = takeFromRunRerunArgs; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
|