deepline 0.3.396 → 0.3.397
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +2 -2
- package/dist/cli/{auth-3LTD62VL.mjs → auth-AZJFXGKP.mjs} +5 -4
- package/dist/cli/auth-CZJQU7B5.js +40 -0
- package/dist/cli/{billing-PA5OXEM5.js → billing-MQV5AGDJ.js} +76 -75
- package/dist/cli/{billing-DP7ZAJBO.mjs → billing-MZAAUHGH.mjs} +5 -4
- package/dist/cli/{chunk-VE3U3SQC.mjs → chunk-2LDADJNO.mjs} +7 -107
- package/dist/cli/{chunk-772W2SAU.js → chunk-3VP34TAU.js} +8 -8
- package/dist/cli/{chunk-QHGPA362.mjs → chunk-4D745XZO.mjs} +6 -108
- package/dist/cli/chunk-7DRPTGCK.js +930 -0
- package/dist/cli/{chunk-NSOTASOP.js → chunk-BQR6UN3C.js} +1 -83
- package/dist/cli/{chunk-RTO5QZWT.js → chunk-DQ65ZVHN.js} +6 -6
- package/dist/cli/{chunk-3T4MCB5R.mjs → chunk-F3BUFYKE.mjs} +89 -969
- package/dist/cli/chunk-FIVKWNMT.mjs +210 -0
- package/dist/cli/{describe-6O2ENKTP.mjs → chunk-HFYQBC2D.mjs} +22 -160
- package/dist/cli/chunk-HGFFYVXN.js +210 -0
- package/dist/cli/{chunk-5WNJF2T3.mjs → chunk-IHG7UAHD.mjs} +1 -83
- package/dist/cli/{chunk-GNN4MY5X.js → chunk-IZ74ABSX.js} +1 -1
- package/dist/cli/{chunk-MR6XCBQJ.mjs → chunk-J7ABTQQ7.mjs} +4 -2
- package/dist/cli/{chunk-2VOLOWYZ.js → chunk-K33MXVXQ.js} +293 -1173
- package/dist/cli/chunk-LJ5747UC.mjs +107 -0
- package/dist/cli/{chunk-NHB5YUCS.mjs → chunk-MRXMMERY.mjs} +1 -1
- package/dist/cli/{chunk-TLQ3FZOC.mjs → chunk-MV7QRALK.mjs} +3 -3
- package/dist/cli/{chunk-AUYXWELC.mjs → chunk-MYPH2LUU.mjs} +2 -2
- package/dist/cli/{chunk-LWERJUKN.js → chunk-NA4T3B62.js} +7 -215
- package/dist/cli/{chunk-23GAA3YO.mjs → chunk-NOX2TCBP.mjs} +1 -1
- package/dist/cli/chunk-OSDXE27V.mjs +88 -0
- package/dist/cli/{chunk-KAEZNPUM.js → chunk-PSGEDGLT.js} +13 -115
- package/dist/cli/chunk-Q2E4E4FJ.js +112 -0
- package/dist/cli/{describe-EFWNECHI.js → chunk-RFG3MRAC.js} +37 -175
- package/dist/cli/{chunk-XKZXO7D3.mjs → chunk-RNSWDKBM.mjs} +1 -1
- package/dist/cli/{chunk-V7UP2F4U.js → chunk-RYW4HPSM.js} +21 -121
- package/dist/cli/{chunk-7Z66NHUC.js → chunk-SO7RUVTY.js} +26 -26
- package/dist/cli/{chunk-H5KLUGY7.mjs → chunk-TXZVVBQZ.mjs} +1 -209
- package/dist/cli/{chunk-WQJJNIMQ.js → chunk-UVXBVUZQ.js} +11 -9
- package/dist/cli/{chunk-AVHLATII.js → chunk-VTF4RRWJ.js} +50 -50
- package/dist/cli/{chunk-LOGGNW4H.mjs → chunk-W3HMGKMI.mjs} +2 -2
- package/dist/cli/{chunk-JCN4DHF7.mjs → chunk-WM2QEHZL.mjs} +2 -2
- package/dist/cli/chunk-YHPYUZZX.mjs +112 -0
- package/dist/cli/chunk-YHZUZO3U.mjs +930 -0
- package/dist/cli/{chunk-ME6XRFLY.js → chunk-YLRME7MK.js} +15 -15
- package/dist/cli/{chunk-DC6LTULT.js → chunk-YSVORIEW.js} +2 -2
- package/dist/cli/{chunk-I4T4XAA2.mjs → chunk-YUDKBQUD.mjs} +4 -4
- package/dist/cli/chunk-ZAAKSJAS.js +88 -0
- package/dist/cli/{chunk-RMTASUAK.js → chunk-ZHUMDMOS.js} +65 -65
- package/dist/cli/chunk-ZM2YPJQJ.js +107 -0
- package/dist/cli/{csv-TF576S77.js → csv-AQBQ5O3I.js} +13 -12
- package/dist/cli/{csv-RLRR74RQ.mjs → csv-MB7PJMYQ.mjs} +4 -3
- package/dist/cli/{db-FDBJUTFO.js → db-JPUYC5RB.js} +30 -29
- package/dist/cli/{db-XORGNBIC.mjs → db-L5IEI2AU.mjs} +5 -4
- package/dist/cli/describe-6WT74AOR.js +164 -0
- package/dist/cli/describe-S6BFANVI.mjs +164 -0
- package/dist/cli/describe-core.d.mts +100 -0
- package/dist/cli/describe-core.d.ts +100 -0
- package/dist/cli/describe-core.js +18 -0
- package/dist/cli/describe-core.mjs +18 -0
- package/dist/cli/{executions-SFYAXPF4.js → executions-6TMQTFP4.js} +7 -6
- package/dist/cli/{executions-YPP7WR77.mjs → executions-L7I2ZW4Z.mjs} +5 -4
- package/dist/cli/{feedback-RBGA5ARU.mjs → feedback-DSJ63HK6.mjs} +4 -3
- package/dist/cli/{feedback-5UZFYMGB.js → feedback-XF7CQGMD.js} +8 -7
- package/dist/cli/{git-IRSAJEK2.mjs → git-C3ENM67D.mjs} +5 -4
- package/dist/cli/git-HYDZK2QR.js +24 -0
- package/dist/cli/index.js +93 -91
- package/dist/cli/index.mjs +35 -33
- package/dist/cli/{legacy-noops-CVAOQY2F.js → legacy-noops-B2NHWIVD.js} +8 -7
- package/dist/cli/{legacy-noops-NA7N6ZOU.mjs → legacy-noops-VFG2K6HK.mjs} +5 -4
- package/dist/cli/{monitors-4OMRXCXP.js → monitors-ORFWOVZB.js} +86 -85
- package/dist/cli/{monitors-ILZ2XHYG.mjs → monitors-TCEDBDGY.mjs} +5 -4
- package/dist/cli/{org-QDDXAE3J.mjs → org-45KREIKZ.mjs} +5 -4
- package/dist/cli/{org-YGNJDD2X.js → org-T74CJESN.js} +65 -64
- package/dist/cli/{play-VT6OHB2D.mjs → play-MU7MYBIM.mjs} +19 -15
- package/dist/cli/{play-L535H26U.js → play-XHK2LPON.js} +251 -247
- package/dist/cli/{providers-GPZ6PQAL.js → providers-4MGQKYFD.js} +8 -7
- package/dist/cli/{providers-KG4W5MPK.mjs → providers-VYCXIJT5.mjs} +5 -4
- package/dist/cli/{quickstart-UI27S5LO.js → quickstart-47G3VEOT.js} +6 -5
- package/dist/cli/{quickstart-2JDGTXIG.mjs → quickstart-H724EFM2.mjs} +4 -3
- package/dist/cli/search-3356ENLD.js +30 -0
- package/dist/cli/{search-PW3RAUX7.mjs → search-VQHXEFQ4.mjs} +7 -5
- package/dist/cli/{secrets-WFAXOUZE.js → secrets-ALLKCU35.js} +14 -13
- package/dist/cli/{secrets-HNOMK5A2.mjs → secrets-CPBNGA44.mjs} +5 -4
- package/dist/cli/{sessions-XLX3E5UO.mjs → sessions-7RSQB7IX.mjs} +5 -4
- package/dist/cli/sessions-FKGAY7WQ.js +16 -0
- package/dist/cli/{settings-YNZ4YKCH.mjs → settings-UYSGV4IC.mjs} +8 -7
- package/dist/cli/{settings-GADAG2UK.js → settings-Y5BI42P7.js} +75 -74
- package/dist/cli/{setup-PSEHIUXO.mjs → setup-L3ZBBTS4.mjs} +7 -6
- package/dist/cli/{setup-R5YO7GT6.js → setup-VXQPEU3E.js} +42 -41
- package/dist/cli/skills-DUZQTDTE.js +29 -0
- package/dist/cli/{skills-LTQBP6CZ.mjs → skills-QHVDLSFE.mjs} +5 -4
- package/dist/cli/{tools-UAXDWU63.mjs → tools-LSCEK4K2.mjs} +13 -8
- package/dist/cli/tools-YWU5QOQ5.js +39 -0
- package/dist/cli/update-5LYQAI55.js +29 -0
- package/dist/cli/{update-SMNIBIMS.mjs → update-CU22OTBM.mjs} +7 -6
- package/dist/cli/{workflow-AOQVZHMD.js → workflow-ERFLTRNX.js} +16 -15
- package/dist/cli/{workflow-IKGMBGF6.mjs → workflow-KQARK5BZ.mjs} +6 -5
- package/dist/{client-DiGl8ska.d.mts → client-D0j-_aaa.d.mts} +1 -1
- package/dist/{client-Bgis7F6-.d.ts → client-DflfVyj6.d.ts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -10
- package/dist/index.mjs +19 -15
- package/dist/install-integrity.json +92 -76
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +6 -1
- package/dist/cli/auth-562JPKOM.js +0 -39
- package/dist/cli/git-5LDY5ZID.js +0 -23
- package/dist/cli/search-MGWROZ33.js +0 -28
- package/dist/cli/sessions-366KROUA.js +0 -15
- package/dist/cli/skills-JF2LPEGM.js +0 -28
- package/dist/cli/tools-CP2PEFRN.js +0 -34
- package/dist/cli/update-HZHZOU6C.js +0 -28
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
var _chunkZAAKSJASjs = require('./chunk-ZAAKSJAS.js');
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
var _chunkPSGEDGLTjs = require('./chunk-PSGEDGLT.js');
|
|
6
8
|
|
|
7
9
|
|
|
8
|
-
var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
9
10
|
|
|
11
|
+
var _chunkSO7RUVTYjs = require('./chunk-SO7RUVTY.js');
|
|
10
12
|
|
|
11
13
|
|
|
12
|
-
var
|
|
14
|
+
var _chunkBQR6UN3Cjs = require('./chunk-BQR6UN3C.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
18
|
+
require('./chunk-ZM2YPJQJ.js');
|
|
13
19
|
|
|
14
20
|
|
|
15
21
|
|
|
@@ -24,9 +30,6 @@ require('./chunk-3KC45UVF.js');
|
|
|
24
30
|
var _chunkGSK6NHVMjs = require('./chunk-GSK6NHVM.js');
|
|
25
31
|
|
|
26
32
|
|
|
27
|
-
var _chunkKAEZNPUMjs = require('./chunk-KAEZNPUM.js');
|
|
28
|
-
|
|
29
|
-
|
|
30
33
|
|
|
31
34
|
var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
|
|
32
35
|
require('./chunk-KB4SDX5S.js');
|
|
@@ -42,7 +45,7 @@ require('./chunk-KB4SDX5S.js');
|
|
|
42
45
|
|
|
43
46
|
|
|
44
47
|
|
|
45
|
-
var
|
|
48
|
+
var _chunkUVXBVUZQjs = require('./chunk-UVXBVUZQ.js');
|
|
46
49
|
require('./chunk-S6R3OX7B.js');
|
|
47
50
|
|
|
48
51
|
|
|
@@ -81,15 +84,16 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
81
84
|
|
|
82
85
|
|
|
83
86
|
|
|
84
|
-
var
|
|
87
|
+
var _chunkDQ65ZVHNjs = require('./chunk-DQ65ZVHN.js');
|
|
85
88
|
|
|
86
89
|
|
|
87
|
-
var
|
|
90
|
+
var _chunkRYW4HPSMjs = require('./chunk-RYW4HPSM.js');
|
|
91
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
88
92
|
require('./chunk-XNYIZMNQ.js');
|
|
89
93
|
|
|
90
94
|
|
|
91
95
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
92
|
-
require('./chunk-
|
|
96
|
+
require('./chunk-IZ74ABSX.js');
|
|
93
97
|
require('./chunk-OG64RBAC.js');
|
|
94
98
|
|
|
95
99
|
|
|
@@ -2071,7 +2075,7 @@ function resolveField(key, command) {
|
|
|
2071
2075
|
function printSettings(result, json, name) {
|
|
2072
2076
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2073
2077
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2074
|
-
|
|
2078
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
2075
2079
|
{
|
|
2076
2080
|
...result,
|
|
2077
2081
|
settings: Object.fromEntries(
|
|
@@ -2115,7 +2119,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2115
2119
|
valueSyntax: field.cli.valueSyntax,
|
|
2116
2120
|
examples: field.cli.examples
|
|
2117
2121
|
}));
|
|
2118
|
-
|
|
2122
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
2119
2123
|
{
|
|
2120
2124
|
fields: descriptions,
|
|
2121
2125
|
render: {
|
|
@@ -2140,7 +2144,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2140
2144
|
async (options, command) => {
|
|
2141
2145
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2142
2146
|
printSettings(
|
|
2143
|
-
await new (0,
|
|
2147
|
+
await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2144
2148
|
options.json,
|
|
2145
2149
|
options.name
|
|
2146
2150
|
);
|
|
@@ -2171,7 +2175,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2171
2175
|
);
|
|
2172
2176
|
}
|
|
2173
2177
|
if (options.dryRun) {
|
|
2174
|
-
|
|
2178
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
2175
2179
|
{
|
|
2176
2180
|
dryRun: true,
|
|
2177
2181
|
play,
|
|
@@ -2192,7 +2196,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2192
2196
|
return;
|
|
2193
2197
|
}
|
|
2194
2198
|
printSettings(
|
|
2195
|
-
await new (0,
|
|
2199
|
+
await new (0, _chunkUVXBVUZQjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2196
2200
|
options.json
|
|
2197
2201
|
);
|
|
2198
2202
|
};
|
|
@@ -2218,13 +2222,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2218
2222
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2219
2223
|
{ exitCode: 2 }
|
|
2220
2224
|
);
|
|
2221
|
-
const page = await new (0,
|
|
2225
|
+
const page = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2222
2226
|
root: options.root,
|
|
2223
2227
|
limit,
|
|
2224
2228
|
cursor: options.cursor
|
|
2225
2229
|
});
|
|
2226
2230
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2227
|
-
|
|
2231
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
2228
2232
|
{
|
|
2229
2233
|
...page,
|
|
2230
2234
|
nextCommand,
|
|
@@ -2275,7 +2279,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2275
2279
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2276
2280
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2277
2281
|
};
|
|
2278
|
-
const client = new (0,
|
|
2282
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
2279
2283
|
const paths = [];
|
|
2280
2284
|
let cursor;
|
|
2281
2285
|
do {
|
|
@@ -2337,7 +2341,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2337
2341
|
moved.push(move.playName);
|
|
2338
2342
|
}
|
|
2339
2343
|
}
|
|
2340
|
-
|
|
2344
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
2341
2345
|
{
|
|
2342
2346
|
dryRun: Boolean(options.dryRun),
|
|
2343
2347
|
from: options.from,
|
|
@@ -2465,7 +2469,7 @@ function triggerLines(view) {
|
|
|
2465
2469
|
return lines;
|
|
2466
2470
|
}
|
|
2467
2471
|
function printView(view, json) {
|
|
2468
|
-
|
|
2472
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
2469
2473
|
{
|
|
2470
2474
|
...view,
|
|
2471
2475
|
render: {
|
|
@@ -2478,7 +2482,7 @@ function printView(view, json) {
|
|
|
2478
2482
|
);
|
|
2479
2483
|
}
|
|
2480
2484
|
function printResult(result, json) {
|
|
2481
|
-
|
|
2485
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
2482
2486
|
{
|
|
2483
2487
|
...result,
|
|
2484
2488
|
render: {
|
|
@@ -2508,7 +2512,7 @@ async function mutate(command, options, build) {
|
|
|
2508
2512
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2509
2513
|
}
|
|
2510
2514
|
if (options.dryRun) {
|
|
2511
|
-
|
|
2515
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
2512
2516
|
{
|
|
2513
2517
|
dryRun: true,
|
|
2514
2518
|
play: options.play,
|
|
@@ -2527,7 +2531,7 @@ async function mutate(command, options, build) {
|
|
|
2527
2531
|
return;
|
|
2528
2532
|
}
|
|
2529
2533
|
printResult(
|
|
2530
|
-
await new (0,
|
|
2534
|
+
await new (0, _chunkUVXBVUZQjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2531
2535
|
options.json
|
|
2532
2536
|
);
|
|
2533
2537
|
}
|
|
@@ -2560,7 +2564,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2560
2564
|
}).addHelpText("after", help2);
|
|
2561
2565
|
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) => {
|
|
2562
2566
|
printView(
|
|
2563
|
-
await new (0,
|
|
2567
|
+
await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2564
2568
|
options.json
|
|
2565
2569
|
);
|
|
2566
2570
|
});
|
|
@@ -2604,7 +2608,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2604
2608
|
if (options.auth === void 0) {
|
|
2605
2609
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2606
2610
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2607
|
-
const current = await new (0,
|
|
2611
|
+
const current = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2608
2612
|
options.play
|
|
2609
2613
|
);
|
|
2610
2614
|
return {
|
|
@@ -2681,7 +2685,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2681
2685
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2682
2686
|
"runtime.event": "Other event."
|
|
2683
2687
|
};
|
|
2684
|
-
var RUN_LOGS_KIND_HELP =
|
|
2688
|
+
var RUN_LOGS_KIND_HELP = _chunkUVXBVUZQjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2685
2689
|
kind,
|
|
2686
2690
|
description: KIND_DESCRIPTIONS[kind]
|
|
2687
2691
|
}));
|
|
@@ -2818,9 +2822,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2818
2822
|
const args = program.args;
|
|
2819
2823
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2820
2824
|
error.exitCode = 2;
|
|
2821
|
-
if (
|
|
2822
|
-
|
|
2823
|
-
Object.assign(new (0,
|
|
2825
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2826
|
+
_chunkDQ65ZVHNjs.printJsonError.call(void 0,
|
|
2827
|
+
Object.assign(new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(error.message), {
|
|
2824
2828
|
exitCode: 2,
|
|
2825
2829
|
retryable: false
|
|
2826
2830
|
})
|
|
@@ -2864,14 +2868,14 @@ function parseQuery(args, resource) {
|
|
|
2864
2868
|
if (VALUE_FLAGS.has(flag)) {
|
|
2865
2869
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2866
2870
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2867
|
-
throw new (0,
|
|
2871
|
+
throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
|
|
2868
2872
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2869
2873
|
);
|
|
2870
2874
|
}
|
|
2871
2875
|
if (flag === "--sum") sums.push(value);
|
|
2872
2876
|
else {
|
|
2873
2877
|
if (values[flag] !== void 0) {
|
|
2874
|
-
throw new (0,
|
|
2878
|
+
throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
|
|
2875
2879
|
`${flag} may only be supplied once.`
|
|
2876
2880
|
);
|
|
2877
2881
|
}
|
|
@@ -2885,12 +2889,12 @@ function parseQuery(args, resource) {
|
|
|
2885
2889
|
}
|
|
2886
2890
|
if (arg.startsWith("-")) {
|
|
2887
2891
|
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.";
|
|
2888
|
-
throw new (0,
|
|
2892
|
+
throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
|
|
2889
2893
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2890
2894
|
);
|
|
2891
2895
|
}
|
|
2892
2896
|
if (runId !== void 0) {
|
|
2893
|
-
throw new (0,
|
|
2897
|
+
throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
|
|
2894
2898
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2895
2899
|
);
|
|
2896
2900
|
}
|
|
@@ -2898,7 +2902,7 @@ function parseQuery(args, resource) {
|
|
|
2898
2902
|
}
|
|
2899
2903
|
if (switches.has("--fields")) {
|
|
2900
2904
|
if (runId !== void 0) {
|
|
2901
|
-
throw new (0,
|
|
2905
|
+
throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
|
|
2902
2906
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2903
2907
|
);
|
|
2904
2908
|
}
|
|
@@ -2911,18 +2915,18 @@ function parseQuery(args, resource) {
|
|
|
2911
2915
|
)
|
|
2912
2916
|
];
|
|
2913
2917
|
if (incompatible.length) {
|
|
2914
|
-
throw new (0,
|
|
2918
|
+
throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
|
|
2915
2919
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2916
2920
|
);
|
|
2917
2921
|
}
|
|
2918
2922
|
}
|
|
2919
2923
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2920
|
-
throw new (0,
|
|
2924
|
+
throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
|
|
2921
2925
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2922
2926
|
);
|
|
2923
2927
|
}
|
|
2924
2928
|
if (sums.length && switches.has("--count")) {
|
|
2925
|
-
throw new (0,
|
|
2929
|
+
throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
|
|
2926
2930
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2927
2931
|
);
|
|
2928
2932
|
}
|
|
@@ -2930,7 +2934,7 @@ function parseQuery(args, resource) {
|
|
|
2930
2934
|
if (operation === "count") {
|
|
2931
2935
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2932
2936
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2933
|
-
throw new (0,
|
|
2937
|
+
throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
|
|
2934
2938
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2935
2939
|
);
|
|
2936
2940
|
}
|
|
@@ -2965,16 +2969,16 @@ function parseQuery(args, resource) {
|
|
|
2965
2969
|
];
|
|
2966
2970
|
}
|
|
2967
2971
|
}
|
|
2968
|
-
const request =
|
|
2972
|
+
const request = _chunkUVXBVUZQjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2969
2973
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2970
2974
|
const backend = values["--runtime-backend"];
|
|
2971
2975
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2972
|
-
throw new (0,
|
|
2976
|
+
throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
|
|
2973
2977
|
"--runtime-backend must be daytona or modal."
|
|
2974
2978
|
);
|
|
2975
2979
|
}
|
|
2976
2980
|
if (backend && !namespace) {
|
|
2977
|
-
throw new (0,
|
|
2981
|
+
throw new (0, _chunkUVXBVUZQjs.RunEventQueryInputError)(
|
|
2978
2982
|
"--runtime-backend requires --runtime-namespace."
|
|
2979
2983
|
);
|
|
2980
2984
|
}
|
|
@@ -3021,12 +3025,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3021
3025
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3022
3026
|
const record3 = failure;
|
|
3023
3027
|
const status = record3.statusCode;
|
|
3024
|
-
const exitCode = error instanceof
|
|
3028
|
+
const exitCode = error instanceof _chunkUVXBVUZQjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3025
3029
|
const diagnostic = Object.assign(failure, {
|
|
3026
3030
|
exitCode,
|
|
3027
3031
|
retryable: exitCode === 5
|
|
3028
3032
|
});
|
|
3029
|
-
if (
|
|
3033
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) _chunkDQ65ZVHNjs.printJsonError.call(void 0, diagnostic);
|
|
3030
3034
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3031
3035
|
return exitCode;
|
|
3032
3036
|
}
|
|
@@ -3041,7 +3045,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3041
3045
|
...criteria
|
|
3042
3046
|
} = request;
|
|
3043
3047
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3044
|
-
const client = new (0,
|
|
3048
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
3045
3049
|
let result;
|
|
3046
3050
|
if (request.operation === "fields") {
|
|
3047
3051
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3107,13 +3111,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3107
3111
|
lines.push(`Next page: ${nextPage}`);
|
|
3108
3112
|
}
|
|
3109
3113
|
}
|
|
3110
|
-
|
|
3114
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
3111
3115
|
{
|
|
3112
3116
|
...result,
|
|
3113
3117
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3114
3118
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3115
3119
|
},
|
|
3116
|
-
{ json:
|
|
3120
|
+
{ json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3117
3121
|
` }
|
|
3118
3122
|
);
|
|
3119
3123
|
return 0;
|
|
@@ -4031,7 +4035,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4031
4035
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4032
4036
|
);
|
|
4033
4037
|
}
|
|
4034
|
-
const response = await new (0,
|
|
4038
|
+
const response = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4035
4039
|
keys
|
|
4036
4040
|
});
|
|
4037
4041
|
const failed = response.receipts.filter(
|
|
@@ -4043,7 +4047,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4043
4047
|
JSON.stringify(response, null, 2) + "\n",
|
|
4044
4048
|
{ flag: "wx", mode: 384 }
|
|
4045
4049
|
);
|
|
4046
|
-
|
|
4050
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
4047
4051
|
{
|
|
4048
4052
|
runId,
|
|
4049
4053
|
out: options.out,
|
|
@@ -4053,7 +4057,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4053
4057
|
{ json: true }
|
|
4054
4058
|
);
|
|
4055
4059
|
} else {
|
|
4056
|
-
|
|
4060
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4057
4061
|
}
|
|
4058
4062
|
if (failed)
|
|
4059
4063
|
process.exitCode = response.receipts.some(
|
|
@@ -4092,7 +4096,7 @@ includes nextCommand when another page is available.
|
|
|
4092
4096
|
{ exitCode: 2 }
|
|
4093
4097
|
);
|
|
4094
4098
|
}
|
|
4095
|
-
const page = await new (0,
|
|
4099
|
+
const page = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4096
4100
|
launchKey: options.launchKey,
|
|
4097
4101
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4098
4102
|
limit
|
|
@@ -4107,7 +4111,7 @@ includes nextCommand when another page is available.
|
|
|
4107
4111
|
"--limit",
|
|
4108
4112
|
String(limit)
|
|
4109
4113
|
].join(" ") : null;
|
|
4110
|
-
|
|
4114
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
4111
4115
|
{
|
|
4112
4116
|
parentRunId,
|
|
4113
4117
|
launchKey: options.launchKey,
|
|
@@ -4143,7 +4147,7 @@ async function handleRunsHistory(options) {
|
|
|
4143
4147
|
throw new Error("--limit must be a positive integer.");
|
|
4144
4148
|
}
|
|
4145
4149
|
}
|
|
4146
|
-
const page = await new (0,
|
|
4150
|
+
const page = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().runs.history({
|
|
4147
4151
|
cursor: options.cursor,
|
|
4148
4152
|
orgId: options.org,
|
|
4149
4153
|
search: options.search,
|
|
@@ -4159,7 +4163,7 @@ async function handleRunsHistory(options) {
|
|
|
4159
4163
|
);
|
|
4160
4164
|
}
|
|
4161
4165
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4162
|
-
|
|
4166
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
4163
4167
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4164
4168
|
options.json ? { json: true } : {}
|
|
4165
4169
|
);
|
|
@@ -4211,12 +4215,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4211
4215
|
return 1;
|
|
4212
4216
|
}
|
|
4213
4217
|
}
|
|
4214
|
-
const result = await new (0,
|
|
4218
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().runs.rerun(runId, {
|
|
4215
4219
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4216
4220
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4217
4221
|
});
|
|
4218
|
-
if (
|
|
4219
|
-
|
|
4222
|
+
if (_chunkDQ65ZVHNjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4223
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4220
4224
|
} else {
|
|
4221
4225
|
console.log(
|
|
4222
4226
|
result.deduplicated === true ? `
|
|
@@ -4484,7 +4488,7 @@ function projectRunDatasetCell(value) {
|
|
|
4484
4488
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
4485
4489
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
4486
4490
|
if (typeof logicalValue === "object") {
|
|
4487
|
-
return
|
|
4491
|
+
return _chunkDQ65ZVHNjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
4488
4492
|
}
|
|
4489
4493
|
return logicalValue;
|
|
4490
4494
|
}
|
|
@@ -6911,7 +6915,7 @@ function renderOutcome(outcome) {
|
|
|
6911
6915
|
function printResult2(input) {
|
|
6912
6916
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6913
6917
|
if (failed) process.exitCode = 1;
|
|
6914
|
-
|
|
6918
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
6915
6919
|
{
|
|
6916
6920
|
deployment: { ...input.deployment, status: input.status },
|
|
6917
6921
|
plays: input.outcomes,
|
|
@@ -6936,7 +6940,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6936
6940
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6937
6941
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6938
6942
|
});
|
|
6939
|
-
const { http, config } =
|
|
6943
|
+
const { http, config } = _chunkDQ65ZVHNjs.getAuthedHttpClient.call(void 0, );
|
|
6940
6944
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6941
6945
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6942
6946
|
deliveryId,
|
|
@@ -6963,7 +6967,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6963
6967
|
},
|
|
6964
6968
|
{
|
|
6965
6969
|
bundle: bundleDeployPlayFile,
|
|
6966
|
-
fetchImpl:
|
|
6970
|
+
fetchImpl: _chunkRYW4HPSMjs.fetchWithDeploymentProtection,
|
|
6967
6971
|
// The plays are already here: "opening" the source is naming it.
|
|
6968
6972
|
openSource: async () => ({
|
|
6969
6973
|
open: async () => ({ repoRoot: root })
|
|
@@ -7161,10 +7165,10 @@ function validateFixtureBehavior(value) {
|
|
|
7161
7165
|
error: `fixtureBehavior.responseSamples[${index}].httpError.retryAfterFormat requires status 429 and delta_seconds or http_date.`
|
|
7162
7166
|
};
|
|
7163
7167
|
}
|
|
7164
|
-
if (error.failuresBeforeSuccess !== void 0 && (error.status
|
|
7168
|
+
if (error.failuresBeforeSuccess !== void 0 && (![429, 500, 502, 503, 504].includes(error.status) || typeof error.failuresBeforeSuccess !== "number" || !Number.isSafeInteger(error.failuresBeforeSuccess) || error.failuresBeforeSuccess < 1 || error.failuresBeforeSuccess > 20)) {
|
|
7165
7169
|
return {
|
|
7166
7170
|
ok: false,
|
|
7167
|
-
error: `fixtureBehavior.responseSamples[${index}].httpError.failuresBeforeSuccess requires status 429 and an integer from 1 through 20.`
|
|
7171
|
+
error: `fixtureBehavior.responseSamples[${index}].httpError.failuresBeforeSuccess requires status 429, 500, 502, 503, or 504 and an integer from 1 through 20.`
|
|
7168
7172
|
};
|
|
7169
7173
|
}
|
|
7170
7174
|
httpError = {
|
|
@@ -7531,7 +7535,7 @@ function parseInputFlagValue(raw) {
|
|
|
7531
7535
|
return raw;
|
|
7532
7536
|
}
|
|
7533
7537
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
7534
|
-
const selection =
|
|
7538
|
+
const selection = _chunkDQ65ZVHNjs.parseJsonFields.call(void 0, args, "run");
|
|
7535
7539
|
args = selection.args;
|
|
7536
7540
|
const usage2 = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and ctx.dataset guidance.";
|
|
7537
7541
|
let filePath = null;
|
|
@@ -7543,7 +7547,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7543
7547
|
let revisionSelector = null;
|
|
7544
7548
|
const watch = !args.includes("--no-wait");
|
|
7545
7549
|
const dryRun = args.includes("--dry-run");
|
|
7546
|
-
let jsonOutput = dryRun ?
|
|
7550
|
+
let jsonOutput = dryRun ? _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
|
|
7547
7551
|
const fullJson = args.includes("--full");
|
|
7548
7552
|
const force = args.includes("--force");
|
|
7549
7553
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -7606,7 +7610,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7606
7610
|
"--log-level requires one of: debug, info, warn, error."
|
|
7607
7611
|
);
|
|
7608
7612
|
}
|
|
7609
|
-
const parsed =
|
|
7613
|
+
const parsed = _chunkUVXBVUZQjs.parseLogLevel.call(void 0, value);
|
|
7610
7614
|
if (!parsed) {
|
|
7611
7615
|
throw new Error(
|
|
7612
7616
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -7924,7 +7928,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7924
7928
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
7925
7929
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
7926
7930
|
);
|
|
7927
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
7931
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkUVXBVUZQjs.parseLogLevel.call(void 0, options.logLevel);
|
|
7928
7932
|
if (!logLevel)
|
|
7929
7933
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
7930
7934
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -7938,13 +7942,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7938
7942
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
7939
7943
|
logLevel = "debug";
|
|
7940
7944
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
7941
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
7942
|
-
[...fullJson ? ["--full"] : [], ...
|
|
7945
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkDQ65ZVHNjs.parseJsonFields.call(void 0,
|
|
7946
|
+
[...fullJson ? ["--full"] : [], ..._chunkDQ65ZVHNjs.jsonFieldArgs.call(void 0, options.json)],
|
|
7943
7947
|
"run"
|
|
7944
7948
|
).fields;
|
|
7945
7949
|
const watch = options.wait === false ? false : base.watch;
|
|
7946
7950
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
7947
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
7951
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkDQ65ZVHNjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
7948
7952
|
const verboseLogs = Boolean(
|
|
7949
7953
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
7950
7954
|
);
|
|
@@ -7991,7 +7995,7 @@ function playAuthoringGraphPath(parent, filePath) {
|
|
|
7991
7995
|
// src/cli/renderers/local-play-execution.ts
|
|
7992
7996
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7993
7997
|
if (options.dryRun) {
|
|
7994
|
-
|
|
7998
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7995
7999
|
return;
|
|
7996
8000
|
}
|
|
7997
8001
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -8955,7 +8959,7 @@ function playStatusErrorText(status) {
|
|
|
8955
8959
|
function isRetryablePendingStartFailure(status) {
|
|
8956
8960
|
if (status.status !== "failed") return false;
|
|
8957
8961
|
if (status.runId && status.runId !== "pending") return false;
|
|
8958
|
-
return
|
|
8962
|
+
return _chunkUVXBVUZQjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8959
8963
|
}
|
|
8960
8964
|
function pendingStartFailureStatus(input) {
|
|
8961
8965
|
const message = input.error instanceof Error ? input.error.message : String(input.error);
|
|
@@ -8982,13 +8986,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
|
8982
8986
|
var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
8983
8987
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8984
8988
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8985
|
-
if (!
|
|
8989
|
+
if (!_chunkUVXBVUZQjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8986
8990
|
return false;
|
|
8987
8991
|
}
|
|
8988
|
-
if (
|
|
8992
|
+
if (_chunkUVXBVUZQjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8989
8993
|
return true;
|
|
8990
8994
|
}
|
|
8991
|
-
return state.verbose === true &&
|
|
8995
|
+
return state.verbose === true && _chunkUVXBVUZQjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8992
8996
|
}
|
|
8993
8997
|
function getEventPayload(event) {
|
|
8994
8998
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9490,7 +9494,7 @@ function resolveRunPlayName(status, runId) {
|
|
|
9490
9494
|
}
|
|
9491
9495
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
9492
9496
|
if (open2 && dashboardUrl) {
|
|
9493
|
-
|
|
9497
|
+
_chunkDQ65ZVHNjs.openInBrowser.call(void 0, dashboardUrl);
|
|
9494
9498
|
}
|
|
9495
9499
|
}
|
|
9496
9500
|
function printPlayLogLines(input) {
|
|
@@ -9552,7 +9556,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9552
9556
|
billing: false
|
|
9553
9557
|
});
|
|
9554
9558
|
} catch (error) {
|
|
9555
|
-
if (
|
|
9559
|
+
if (_chunkUVXBVUZQjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9556
9560
|
return null;
|
|
9557
9561
|
}
|
|
9558
9562
|
throw error;
|
|
@@ -9707,7 +9711,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9707
9711
|
}
|
|
9708
9712
|
async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
9709
9713
|
const startedAt = Date.now();
|
|
9710
|
-
const dashboardUrl =
|
|
9714
|
+
const dashboardUrl = _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0,
|
|
9711
9715
|
input.client.baseUrl,
|
|
9712
9716
|
input.playName
|
|
9713
9717
|
);
|
|
@@ -9750,7 +9754,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9750
9754
|
billing: false
|
|
9751
9755
|
});
|
|
9752
9756
|
} catch (error) {
|
|
9753
|
-
if (
|
|
9757
|
+
if (_chunkUVXBVUZQjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9754
9758
|
return null;
|
|
9755
9759
|
}
|
|
9756
9760
|
throw error;
|
|
@@ -9958,7 +9962,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9958
9962
|
lastPhase
|
|
9959
9963
|
});
|
|
9960
9964
|
}
|
|
9961
|
-
if (lastKnownWorkflowId &&
|
|
9965
|
+
if (lastKnownWorkflowId && _chunkUVXBVUZQjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9962
9966
|
if (timeout) {
|
|
9963
9967
|
clearTimeout(timeout);
|
|
9964
9968
|
}
|
|
@@ -9994,7 +9998,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9994
9998
|
onRunAdmitted: confirmAdmission
|
|
9995
9999
|
});
|
|
9996
10000
|
}
|
|
9997
|
-
if (!lastKnownWorkflowId &&
|
|
10001
|
+
if (!lastKnownWorkflowId && _chunkUVXBVUZQjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9998
10002
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
9999
10003
|
phase: "cli.play_start_stream_transient_failure",
|
|
10000
10004
|
ms: Date.now() - startedAt,
|
|
@@ -10093,7 +10097,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10093
10097
|
"logs"
|
|
10094
10098
|
]);
|
|
10095
10099
|
function formatPlayLogLine(rawLine, state) {
|
|
10096
|
-
const classified =
|
|
10100
|
+
const classified = _chunkUVXBVUZQjs.classifyLogLine.call(void 0, rawLine);
|
|
10097
10101
|
const line = classified.line;
|
|
10098
10102
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10099
10103
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _317 => _317[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10108,14 +10112,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10108
10112
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10109
10113
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10110
10114
|
if (providerWait && !state.verbose) {
|
|
10111
|
-
return
|
|
10115
|
+
return _chunkUVXBVUZQjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10112
10116
|
}
|
|
10113
10117
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10114
10118
|
if (mapProgress && !state.verbose) {
|
|
10115
|
-
return
|
|
10119
|
+
return _chunkUVXBVUZQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10116
10120
|
}
|
|
10117
10121
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10118
|
-
if (!
|
|
10122
|
+
if (!_chunkUVXBVUZQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10119
10123
|
return null;
|
|
10120
10124
|
}
|
|
10121
10125
|
if (state.emittedRunnerStarted) {
|
|
@@ -10128,7 +10132,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10128
10132
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10129
10133
|
);
|
|
10130
10134
|
if (mapStart) {
|
|
10131
|
-
if (!
|
|
10135
|
+
if (!_chunkUVXBVUZQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10132
10136
|
return null;
|
|
10133
10137
|
}
|
|
10134
10138
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10138,7 +10142,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10138
10142
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10139
10143
|
);
|
|
10140
10144
|
if (mapDone) {
|
|
10141
|
-
if (!
|
|
10145
|
+
if (!_chunkUVXBVUZQjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10142
10146
|
return null;
|
|
10143
10147
|
}
|
|
10144
10148
|
const [, results, executed, cached] = mapDone;
|
|
@@ -11425,7 +11429,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11425
11429
|
(line) => typeof line === "string"
|
|
11426
11430
|
);
|
|
11427
11431
|
if (tail.length === 0) return [];
|
|
11428
|
-
const shown = tail.map((line) =>
|
|
11432
|
+
const shown = tail.map((line) => _chunkUVXBVUZQjs.classifyLogLine.call(void 0, line)).filter(
|
|
11429
11433
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11430
11434
|
).slice(-8);
|
|
11431
11435
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11704,11 +11708,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11704
11708
|
}
|
|
11705
11709
|
function writePlayResult(status, jsonOutput, options) {
|
|
11706
11710
|
const packaged = getPlayRunPackage(status);
|
|
11707
|
-
if (status.package)
|
|
11711
|
+
if (status.package) _chunkZAAKSJASjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11708
11712
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _398 => _398.hits]), () => ( null));
|
|
11709
11713
|
if (jsonOutput) {
|
|
11710
11714
|
const payload2 = _optionalChain([options, 'optionalAccess', _399 => _399.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11711
|
-
|
|
11715
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
11712
11716
|
hits ? { ...payload2, hits } : payload2,
|
|
11713
11717
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _400 => _400.jsonFields]) }
|
|
11714
11718
|
);
|
|
@@ -11724,7 +11728,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11724
11728
|
...buildPlayCompletionTextLines(status),
|
|
11725
11729
|
...formatRunHitsLines(hits)
|
|
11726
11730
|
];
|
|
11727
|
-
|
|
11731
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11728
11732
|
json: false,
|
|
11729
11733
|
text: `${lines2.join("\n")}
|
|
11730
11734
|
`
|
|
@@ -11775,7 +11779,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11775
11779
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11776
11780
|
const compact = compactPlayStatus(status);
|
|
11777
11781
|
const payload = _optionalChain([options, 'optionalAccess', _402 => _402.fullJson]) ? status : compact;
|
|
11778
|
-
|
|
11782
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
11779
11783
|
{
|
|
11780
11784
|
...payload,
|
|
11781
11785
|
render: {
|
|
@@ -12532,7 +12536,7 @@ function renderServerResultView(value) {
|
|
|
12532
12536
|
function writeStartedPlayRun(input) {
|
|
12533
12537
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12534
12538
|
const run = input.package.run;
|
|
12535
|
-
|
|
12539
|
+
_chunkZAAKSJASjs.recordPlayTermination.call(void 0, {
|
|
12536
12540
|
id: run.id,
|
|
12537
12541
|
status: run.status,
|
|
12538
12542
|
finishedAt: run.finishedAt
|
|
@@ -12545,7 +12549,7 @@ function writeStartedPlayRun(input) {
|
|
|
12545
12549
|
dashboardUrl: input.dashboardUrl,
|
|
12546
12550
|
package: input.package
|
|
12547
12551
|
};
|
|
12548
|
-
|
|
12552
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12549
12553
|
json: true,
|
|
12550
12554
|
fields: input.jsonFields
|
|
12551
12555
|
});
|
|
@@ -12567,7 +12571,7 @@ function writeStartedPlayRun(input) {
|
|
|
12567
12571
|
input.progress.writeLine(output2, process.stdout);
|
|
12568
12572
|
return;
|
|
12569
12573
|
}
|
|
12570
|
-
|
|
12574
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12571
12575
|
json: false,
|
|
12572
12576
|
text: `${output2}
|
|
12573
12577
|
`
|
|
@@ -12596,7 +12600,7 @@ function writeStartedPlayRun(input) {
|
|
|
12596
12600
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12597
12601
|
];
|
|
12598
12602
|
if (input.jsonOutput) {
|
|
12599
|
-
|
|
12603
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12600
12604
|
return;
|
|
12601
12605
|
}
|
|
12602
12606
|
if (input.dashboardUrl) {
|
|
@@ -12607,7 +12611,7 @@ function writeStartedPlayRun(input) {
|
|
|
12607
12611
|
input.progress.writeLine(output, process.stdout);
|
|
12608
12612
|
return;
|
|
12609
12613
|
}
|
|
12610
|
-
|
|
12614
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
12611
12615
|
{
|
|
12612
12616
|
...payload,
|
|
12613
12617
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12617,7 +12621,7 @@ function writeStartedPlayRun(input) {
|
|
|
12617
12621
|
);
|
|
12618
12622
|
}
|
|
12619
12623
|
function parsePlayCheckOptions(args) {
|
|
12620
|
-
const selection =
|
|
12624
|
+
const selection = _chunkDQ65ZVHNjs.parseJsonFields.call(void 0, args, "check");
|
|
12621
12625
|
args = selection.args;
|
|
12622
12626
|
const target = args[0];
|
|
12623
12627
|
if (!target || target.startsWith("-")) {
|
|
@@ -12629,7 +12633,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12629
12633
|
if (arg !== "--json" && arg !== "--full")
|
|
12630
12634
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12631
12635
|
}
|
|
12632
|
-
const jsonOutput =
|
|
12636
|
+
const jsonOutput = _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
|
|
12633
12637
|
return {
|
|
12634
12638
|
target,
|
|
12635
12639
|
jsonOutput,
|
|
@@ -12705,7 +12709,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12705
12709
|
useLatest,
|
|
12706
12710
|
expectedArtifactHash,
|
|
12707
12711
|
dryRun,
|
|
12708
|
-
jsonOutput:
|
|
12712
|
+
jsonOutput: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)
|
|
12709
12713
|
};
|
|
12710
12714
|
}
|
|
12711
12715
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12746,7 +12750,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12746
12750
|
target,
|
|
12747
12751
|
expectedArtifactHash,
|
|
12748
12752
|
dryRun,
|
|
12749
|
-
jsonOutput:
|
|
12753
|
+
jsonOutput: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)
|
|
12750
12754
|
};
|
|
12751
12755
|
}
|
|
12752
12756
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12957,7 +12961,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12957
12961
|
async function handlePlayCheck(args) {
|
|
12958
12962
|
const options = parsePlayCheckOptions(args);
|
|
12959
12963
|
if (!isFileTarget2(options.target)) {
|
|
12960
|
-
const client = new (0,
|
|
12964
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
12961
12965
|
try {
|
|
12962
12966
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12963
12967
|
command: "check"
|
|
@@ -12986,7 +12990,7 @@ async function handlePlayCheck(args) {
|
|
|
12986
12990
|
},
|
|
12987
12991
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12988
12992
|
};
|
|
12989
|
-
|
|
12993
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, result, {
|
|
12990
12994
|
json: options.jsonOutput,
|
|
12991
12995
|
fields: options.jsonFields,
|
|
12992
12996
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12996,7 +13000,7 @@ async function handlePlayCheck(args) {
|
|
|
12996
13000
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12997
13001
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12998
13002
|
if (options.jsonOutput) {
|
|
12999
|
-
|
|
13003
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
13000
13004
|
{
|
|
13001
13005
|
kind: "play_check",
|
|
13002
13006
|
checked: "named_contract",
|
|
@@ -13038,7 +13042,7 @@ async function handlePlayCheck(args) {
|
|
|
13038
13042
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
13039
13043
|
publishCommand: _optionalChain([primary, 'optionalAccess', _449 => _449.result, 'access', _450 => _450.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
13040
13044
|
});
|
|
13041
|
-
|
|
13045
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, output, {
|
|
13042
13046
|
json: options.jsonOutput,
|
|
13043
13047
|
fields: options.jsonFields,
|
|
13044
13048
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -13092,7 +13096,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13092
13096
|
}
|
|
13093
13097
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13094
13098
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13095
|
-
const client = new (0,
|
|
13099
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
13096
13100
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13097
13101
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
13098
13102
|
playName: node.playName,
|
|
@@ -13169,7 +13173,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13169
13173
|
);
|
|
13170
13174
|
return 0;
|
|
13171
13175
|
}
|
|
13172
|
-
client = new (0,
|
|
13176
|
+
client = new (0, _chunkUVXBVUZQjs.DeeplineClient)(playRunClientOptions(options));
|
|
13173
13177
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
13174
13178
|
if (canDeferCompilerManifest) {
|
|
13175
13179
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -13330,7 +13334,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13330
13334
|
);
|
|
13331
13335
|
await _optionalChain([hooks, 'optionalAccess', _462 => _462.onRunStarted, 'optionalCall', _463 => _463(started.workflowId)]);
|
|
13332
13336
|
await _optionalChain([hooks, 'optionalAccess', _464 => _464.onRunAdmitted, 'optionalCall', _465 => _465(started.workflowId)]);
|
|
13333
|
-
const resolvedDashboardUrl =
|
|
13337
|
+
const resolvedDashboardUrl = _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
|
|
13334
13338
|
openPlayDashboard(resolvedDashboardUrl, options.open);
|
|
13335
13339
|
progress.phase("started run");
|
|
13336
13340
|
progress.complete();
|
|
@@ -13368,7 +13372,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13368
13372
|
if (options.target.kind !== "name") {
|
|
13369
13373
|
throw new Error("Expected a named play run target.");
|
|
13370
13374
|
}
|
|
13371
|
-
const client = new (0,
|
|
13375
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)(playRunClientOptions(options));
|
|
13372
13376
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13373
13377
|
const playName = options.target.name;
|
|
13374
13378
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -13527,7 +13531,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13527
13531
|
);
|
|
13528
13532
|
await _optionalChain([hooks, 'optionalAccess', _473 => _473.onRunStarted, 'optionalCall', _474 => _474(started.workflowId)]);
|
|
13529
13533
|
await _optionalChain([hooks, 'optionalAccess', _475 => _475.onRunAdmitted, 'optionalCall', _476 => _476(started.workflowId)]);
|
|
13530
|
-
const resolvedDashboardUrl =
|
|
13534
|
+
const resolvedDashboardUrl = _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName);
|
|
13531
13535
|
openPlayDashboard(resolvedDashboardUrl, options.open);
|
|
13532
13536
|
progress.phase("started run");
|
|
13533
13537
|
progress.complete();
|
|
@@ -13565,7 +13569,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13565
13569
|
JSON.stringify({
|
|
13566
13570
|
version: 1,
|
|
13567
13571
|
admissionState: "submitted_unknown",
|
|
13568
|
-
baseUrl: new (0,
|
|
13572
|
+
baseUrl: new (0, _chunkUVXBVUZQjs.DeeplineClient)().baseUrl,
|
|
13569
13573
|
...intent
|
|
13570
13574
|
})
|
|
13571
13575
|
);
|
|
@@ -13794,10 +13798,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13794
13798
|
);
|
|
13795
13799
|
return `${lines.join("\n")}
|
|
13796
13800
|
|
|
13797
|
-
${
|
|
13801
|
+
${_chunkDQ65ZVHNjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13798
13802
|
}
|
|
13799
13803
|
async function handleRunGet(args) {
|
|
13800
|
-
const selection =
|
|
13804
|
+
const selection = _chunkDQ65ZVHNjs.parseJsonFields.call(void 0,
|
|
13801
13805
|
args,
|
|
13802
13806
|
args.includes("--config") ? "config" : "get"
|
|
13803
13807
|
);
|
|
@@ -13810,7 +13814,7 @@ async function handleRunGet(args) {
|
|
|
13810
13814
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13811
13815
|
return 1;
|
|
13812
13816
|
}
|
|
13813
|
-
const client = new (0,
|
|
13817
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
13814
13818
|
if (args.includes("--web-url")) {
|
|
13815
13819
|
const status2 = await client.runs.get(runId, { full: false });
|
|
13816
13820
|
const playName2 = resolveRunPlayName(status2, runId);
|
|
@@ -13818,8 +13822,8 @@ async function handleRunGet(args) {
|
|
|
13818
13822
|
console.error(`Run ${runId} does not name its play; no play page URL.`);
|
|
13819
13823
|
return 1;
|
|
13820
13824
|
}
|
|
13821
|
-
const dashboardUrl2 =
|
|
13822
|
-
|
|
13825
|
+
const dashboardUrl2 = _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13826
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
13823
13827
|
{ dashboardUrl: dashboardUrl2 },
|
|
13824
13828
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
13825
13829
|
` }
|
|
@@ -13839,7 +13843,7 @@ async function handleRunGet(args) {
|
|
|
13839
13843
|
"This server does not support recorded configuration reads."
|
|
13840
13844
|
);
|
|
13841
13845
|
}
|
|
13842
|
-
|
|
13846
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
13843
13847
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13844
13848
|
{ json: true, fields: selection.fields }
|
|
13845
13849
|
);
|
|
@@ -13847,7 +13851,7 @@ async function handleRunGet(args) {
|
|
|
13847
13851
|
}
|
|
13848
13852
|
if (args.includes("--input")) {
|
|
13849
13853
|
const input = await client.getRunInput(runId);
|
|
13850
|
-
|
|
13854
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13851
13855
|
return 0;
|
|
13852
13856
|
}
|
|
13853
13857
|
const full = args.includes("--full");
|
|
@@ -13855,16 +13859,16 @@ async function handleRunGet(args) {
|
|
|
13855
13859
|
full: false,
|
|
13856
13860
|
failedLogs: args.includes("--log-failed")
|
|
13857
13861
|
});
|
|
13858
|
-
if (status.package)
|
|
13862
|
+
if (status.package) _chunkZAAKSJASjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13859
13863
|
if (!status.package) {
|
|
13860
13864
|
const legacyStatus = full ? await client.runs.get(runId, {
|
|
13861
13865
|
full: true,
|
|
13862
13866
|
failedLogs: args.includes("--log-failed")
|
|
13863
13867
|
}) : status;
|
|
13864
13868
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13865
|
-
const legacyDashboardUrl = legacyPlayName ?
|
|
13866
|
-
if (
|
|
13867
|
-
|
|
13869
|
+
const legacyDashboardUrl = legacyPlayName ? _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13870
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
13871
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
13868
13872
|
{
|
|
13869
13873
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13870
13874
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -13874,7 +13878,7 @@ async function handleRunGet(args) {
|
|
|
13874
13878
|
} else {
|
|
13875
13879
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13876
13880
|
if (legacyDashboardUrl)
|
|
13877
|
-
|
|
13881
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
13878
13882
|
{ dashboardUrl: legacyDashboardUrl },
|
|
13879
13883
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
13880
13884
|
` }
|
|
@@ -13889,10 +13893,10 @@ async function handleRunGet(args) {
|
|
|
13889
13893
|
readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
|
|
13890
13894
|
]);
|
|
13891
13895
|
const hitLines = formatRunHitsLines(hits);
|
|
13892
|
-
const json =
|
|
13896
|
+
const json = _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
|
|
13893
13897
|
const playName = resolveRunPlayName(status, runId);
|
|
13894
|
-
const dashboardUrl = playName ?
|
|
13895
|
-
|
|
13898
|
+
const dashboardUrl = playName ? _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13899
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
13896
13900
|
{
|
|
13897
13901
|
...overview,
|
|
13898
13902
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13996,9 +14000,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13996
14000
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13997
14001
|
return 1;
|
|
13998
14002
|
}
|
|
13999
|
-
const status = await new (0,
|
|
14000
|
-
if (
|
|
14001
|
-
|
|
14003
|
+
const status = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().runs.status(runId);
|
|
14004
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
14005
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
14002
14006
|
return 0;
|
|
14003
14007
|
}
|
|
14004
14008
|
if (!status.available) {
|
|
@@ -14038,7 +14042,7 @@ async function handleRunsRerun(args) {
|
|
|
14038
14042
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14039
14043
|
return 1;
|
|
14040
14044
|
}
|
|
14041
|
-
const options = { json:
|
|
14045
|
+
const options = { json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) };
|
|
14042
14046
|
for (let index = 0; index < args.length; index += 1) {
|
|
14043
14047
|
if (args[index] === "--idempotency-key") {
|
|
14044
14048
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14103,8 +14107,8 @@ ${usage2}
|
|
|
14103
14107
|
Discover Plays: ${next.discover}
|
|
14104
14108
|
Active runs: ${next.running}`
|
|
14105
14109
|
);
|
|
14106
|
-
if (
|
|
14107
|
-
|
|
14110
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
14111
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
14108
14112
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14109
14113
|
{ json: true }
|
|
14110
14114
|
);
|
|
@@ -14119,7 +14123,7 @@ Active runs: ${next.running}`
|
|
|
14119
14123
|
console.error("--offset requires --play.");
|
|
14120
14124
|
return 1;
|
|
14121
14125
|
}
|
|
14122
|
-
const client = new (0,
|
|
14126
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
14123
14127
|
const page = await client.runs.listPage({
|
|
14124
14128
|
...playName ? { play: playName } : {},
|
|
14125
14129
|
...statusFilter ? { status: statusFilter } : {},
|
|
@@ -14188,7 +14192,7 @@ Active runs: ${next.running}`
|
|
|
14188
14192
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14189
14193
|
);
|
|
14190
14194
|
}
|
|
14191
|
-
|
|
14195
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
14192
14196
|
{
|
|
14193
14197
|
runs,
|
|
14194
14198
|
count: runs.length,
|
|
@@ -14202,7 +14206,7 @@ Active runs: ${next.running}`
|
|
|
14202
14206
|
},
|
|
14203
14207
|
render: { sections: [{ title: "runs", lines }] }
|
|
14204
14208
|
},
|
|
14205
|
-
{ json:
|
|
14209
|
+
{ json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) }
|
|
14206
14210
|
);
|
|
14207
14211
|
return 0;
|
|
14208
14212
|
}
|
|
@@ -14232,7 +14236,7 @@ async function handleRunTail(args) {
|
|
|
14232
14236
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14233
14237
|
return 1;
|
|
14234
14238
|
}
|
|
14235
|
-
const parsed =
|
|
14239
|
+
const parsed = _chunkUVXBVUZQjs.parseLogLevel.call(void 0, value);
|
|
14236
14240
|
if (!parsed) {
|
|
14237
14241
|
console.error(
|
|
14238
14242
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14270,9 +14274,9 @@ async function handleRunTail(args) {
|
|
|
14270
14274
|
);
|
|
14271
14275
|
return 1;
|
|
14272
14276
|
}
|
|
14273
|
-
const client = new (0,
|
|
14277
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
14274
14278
|
const jsonLines = args.includes("--jsonl");
|
|
14275
|
-
const jsonOutput = !jsonLines &&
|
|
14279
|
+
const jsonOutput = !jsonLines && _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
|
|
14276
14280
|
const compact = args.includes("--compact");
|
|
14277
14281
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14278
14282
|
const compactState = {
|
|
@@ -14353,7 +14357,7 @@ async function handleRunLogs(args) {
|
|
|
14353
14357
|
]);
|
|
14354
14358
|
const cursorIndex = args.indexOf("--cursor");
|
|
14355
14359
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14356
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14360
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkUVXBVUZQjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14357
14361
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14358
14362
|
return handleRunEventSearch(args);
|
|
14359
14363
|
}
|
|
@@ -14387,7 +14391,7 @@ async function handleRunLogs(args) {
|
|
|
14387
14391
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14388
14392
|
return 1;
|
|
14389
14393
|
}
|
|
14390
|
-
const parsed =
|
|
14394
|
+
const parsed = _chunkUVXBVUZQjs.parseLogLevel.call(void 0, value);
|
|
14391
14395
|
if (!parsed) {
|
|
14392
14396
|
console.error(
|
|
14393
14397
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14434,12 +14438,12 @@ async function handleRunLogs(args) {
|
|
|
14434
14438
|
);
|
|
14435
14439
|
return 1;
|
|
14436
14440
|
}
|
|
14437
|
-
const client = new (0,
|
|
14441
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
14438
14442
|
if (outPath) {
|
|
14439
14443
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14440
|
-
const logs = result2.entries.filter((line) =>
|
|
14444
|
+
const logs = result2.entries.filter((line) => _chunkUVXBVUZQjs.logLevelReaches.call(void 0, _chunkUVXBVUZQjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkUVXBVUZQjs.classifyLogLine.call(void 0, line).line);
|
|
14441
14445
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14442
|
-
|
|
14446
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
14443
14447
|
{
|
|
14444
14448
|
runId: result2.runId,
|
|
14445
14449
|
log_path: outPath,
|
|
@@ -14462,7 +14466,7 @@ async function handleRunLogs(args) {
|
|
|
14462
14466
|
]
|
|
14463
14467
|
}
|
|
14464
14468
|
},
|
|
14465
|
-
{ json:
|
|
14469
|
+
{ json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) }
|
|
14466
14470
|
);
|
|
14467
14471
|
return 0;
|
|
14468
14472
|
}
|
|
@@ -14493,7 +14497,7 @@ async function handleRunLogs(args) {
|
|
|
14493
14497
|
}
|
|
14494
14498
|
};
|
|
14495
14499
|
const text = buildRunLogsText(filteredResult);
|
|
14496
|
-
|
|
14500
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
14497
14501
|
{
|
|
14498
14502
|
runId: result.runId,
|
|
14499
14503
|
totalCount: result.totalCount,
|
|
@@ -14517,7 +14521,7 @@ async function handleRunLogs(args) {
|
|
|
14517
14521
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14518
14522
|
},
|
|
14519
14523
|
{
|
|
14520
|
-
json:
|
|
14524
|
+
json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args),
|
|
14521
14525
|
text
|
|
14522
14526
|
}
|
|
14523
14527
|
);
|
|
@@ -14541,7 +14545,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14541
14545
|
);
|
|
14542
14546
|
}
|
|
14543
14547
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14544
|
-
(entry) =>
|
|
14548
|
+
(entry) => _chunkUVXBVUZQjs.logLevelReaches.call(void 0, _chunkUVXBVUZQjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14545
14549
|
);
|
|
14546
14550
|
const selected = matching.slice(-limit);
|
|
14547
14551
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14551,7 +14555,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14551
14555
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _498 => _498.at, 'call', _499 => _499(-1), 'optionalAccess', _500 => _500.seq]), () => ( null)),
|
|
14552
14556
|
truncated: result.truncated || olderMatchesExist,
|
|
14553
14557
|
hasMore: olderMatchesExist,
|
|
14554
|
-
nextCursor: olderMatchesExist ?
|
|
14558
|
+
nextCursor: olderMatchesExist ? _chunkUVXBVUZQjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14555
14559
|
};
|
|
14556
14560
|
}
|
|
14557
14561
|
async function handleRunEventSearch(args) {
|
|
@@ -14618,7 +14622,7 @@ ${usage2}`);
|
|
|
14618
14622
|
namespace,
|
|
14619
14623
|
...backend ? { backend } : {}
|
|
14620
14624
|
} : void 0;
|
|
14621
|
-
const client = new (0,
|
|
14625
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
14622
14626
|
const result = await client.runs.searchEvents({
|
|
14623
14627
|
...runId ? { runId } : {},
|
|
14624
14628
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14690,7 +14694,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14690
14694
|
"--limit",
|
|
14691
14695
|
String(limit)
|
|
14692
14696
|
].join(" ") : null;
|
|
14693
|
-
|
|
14697
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
14694
14698
|
{
|
|
14695
14699
|
events,
|
|
14696
14700
|
nextCursor: result.nextCursor,
|
|
@@ -14701,14 +14705,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14701
14705
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14702
14706
|
},
|
|
14703
14707
|
{
|
|
14704
|
-
json:
|
|
14708
|
+
json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args),
|
|
14705
14709
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14706
14710
|
}
|
|
14707
14711
|
);
|
|
14708
14712
|
return 0;
|
|
14709
14713
|
}
|
|
14710
14714
|
function buildRunLogsText(result) {
|
|
14711
|
-
const lines = result.entries.map((line) =>
|
|
14715
|
+
const lines = result.entries.map((line) => _chunkUVXBVUZQjs.classifyLogLine.call(void 0, line).line);
|
|
14712
14716
|
if (result.warning) {
|
|
14713
14717
|
if (lines.length > 0) lines.push("");
|
|
14714
14718
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14742,7 +14746,7 @@ async function handleRunStop(args) {
|
|
|
14742
14746
|
reason = args[++index];
|
|
14743
14747
|
}
|
|
14744
14748
|
}
|
|
14745
|
-
const client = new (0,
|
|
14749
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
14746
14750
|
const result = await client.runs.stop(runId, { reason });
|
|
14747
14751
|
const state = resolveRunStopState(result);
|
|
14748
14752
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14757,7 +14761,7 @@ async function handleRunStop(args) {
|
|
|
14757
14761
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14758
14762
|
`inspect: deepline runs get ${runId} --full`
|
|
14759
14763
|
];
|
|
14760
|
-
|
|
14764
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
14761
14765
|
{
|
|
14762
14766
|
...cancelling,
|
|
14763
14767
|
state,
|
|
@@ -14772,7 +14776,7 @@ async function handleRunStop(args) {
|
|
|
14772
14776
|
]
|
|
14773
14777
|
}
|
|
14774
14778
|
},
|
|
14775
|
-
{ json:
|
|
14779
|
+
{ json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) }
|
|
14776
14780
|
);
|
|
14777
14781
|
return 0;
|
|
14778
14782
|
}
|
|
@@ -14789,7 +14793,7 @@ async function handleRunStop(args) {
|
|
|
14789
14793
|
];
|
|
14790
14794
|
process.stderr.write(`${lines2.join("\n")}
|
|
14791
14795
|
`);
|
|
14792
|
-
|
|
14796
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
14793
14797
|
{
|
|
14794
14798
|
...result,
|
|
14795
14799
|
render: {
|
|
@@ -14804,7 +14808,7 @@ async function handleRunStop(args) {
|
|
|
14804
14808
|
]
|
|
14805
14809
|
}
|
|
14806
14810
|
},
|
|
14807
|
-
{ json:
|
|
14811
|
+
{ json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) }
|
|
14808
14812
|
);
|
|
14809
14813
|
return 1;
|
|
14810
14814
|
}
|
|
@@ -14815,12 +14819,12 @@ async function handleRunStop(args) {
|
|
|
14815
14819
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14816
14820
|
] : []
|
|
14817
14821
|
];
|
|
14818
|
-
|
|
14822
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
14819
14823
|
{
|
|
14820
14824
|
...result,
|
|
14821
14825
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14822
14826
|
},
|
|
14823
|
-
{ json:
|
|
14827
|
+
{ json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) }
|
|
14824
14828
|
);
|
|
14825
14829
|
return 0;
|
|
14826
14830
|
}
|
|
@@ -14870,18 +14874,18 @@ async function handleRunStopAll(args) {
|
|
|
14870
14874
|
reason = args[++index];
|
|
14871
14875
|
}
|
|
14872
14876
|
}
|
|
14873
|
-
const client = new (0,
|
|
14877
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
14874
14878
|
if (dryRun) {
|
|
14875
14879
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14876
14880
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14877
|
-
|
|
14881
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
14878
14882
|
{
|
|
14879
14883
|
...result2,
|
|
14880
14884
|
render: {
|
|
14881
14885
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14882
14886
|
}
|
|
14883
14887
|
},
|
|
14884
|
-
{ json:
|
|
14888
|
+
{ json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14885
14889
|
` }
|
|
14886
14890
|
);
|
|
14887
14891
|
return 0;
|
|
@@ -14894,17 +14898,17 @@ async function handleRunStopAll(args) {
|
|
|
14894
14898
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14895
14899
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14896
14900
|
];
|
|
14897
|
-
|
|
14901
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
14898
14902
|
{
|
|
14899
14903
|
...result,
|
|
14900
14904
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14901
14905
|
},
|
|
14902
|
-
{ json:
|
|
14906
|
+
{ json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args) }
|
|
14903
14907
|
);
|
|
14904
14908
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14905
14909
|
}
|
|
14906
14910
|
async function handleRunExport(args) {
|
|
14907
|
-
const selection =
|
|
14911
|
+
const selection = _chunkDQ65ZVHNjs.parseJsonFields.call(void 0, args, "export");
|
|
14908
14912
|
args = selection.args;
|
|
14909
14913
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
|
|
14910
14914
|
let runId;
|
|
@@ -14963,16 +14967,16 @@ async function handleRunExport(args) {
|
|
|
14963
14967
|
"INVALID_ARGUMENT"
|
|
14964
14968
|
);
|
|
14965
14969
|
}
|
|
14966
|
-
const client = new (0,
|
|
14970
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
14967
14971
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14968
14972
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14969
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
14973
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args));
|
|
14970
14974
|
try {
|
|
14971
14975
|
await waitForPlayCompletionByWatch({
|
|
14972
14976
|
client,
|
|
14973
14977
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14974
14978
|
workflowId: runId,
|
|
14975
|
-
jsonOutput:
|
|
14979
|
+
jsonOutput: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args),
|
|
14976
14980
|
emitLogs: false,
|
|
14977
14981
|
waitTimeoutMs,
|
|
14978
14982
|
startedAt: Date.now(),
|
|
@@ -15072,8 +15076,8 @@ async function handleRunExport(args) {
|
|
|
15072
15076
|
"utf-8"
|
|
15073
15077
|
);
|
|
15074
15078
|
}
|
|
15075
|
-
|
|
15076
|
-
json:
|
|
15079
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, payload, {
|
|
15080
|
+
json: _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args),
|
|
15077
15081
|
fields: selection.fields,
|
|
15078
15082
|
text: `${lines.join("\n")}
|
|
15079
15083
|
`
|
|
@@ -15094,10 +15098,10 @@ async function handlePlayGet(args) {
|
|
|
15094
15098
|
);
|
|
15095
15099
|
return 2;
|
|
15096
15100
|
}
|
|
15097
|
-
const client = new (0,
|
|
15101
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
15098
15102
|
const explicitJson = args.includes("--json");
|
|
15099
15103
|
const sourceOutput = args.includes("--source");
|
|
15100
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
15104
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
|
|
15101
15105
|
const requestedRevisionFlags = [
|
|
15102
15106
|
args.includes("--working"),
|
|
15103
15107
|
args.includes("--live"),
|
|
@@ -15157,7 +15161,7 @@ async function handlePlayGet(args) {
|
|
|
15157
15161
|
}
|
|
15158
15162
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15159
15163
|
if (jsonOutput) {
|
|
15160
|
-
|
|
15164
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, {
|
|
15161
15165
|
...detail,
|
|
15162
15166
|
...materializedFile ? {
|
|
15163
15167
|
message: loadedMessage,
|
|
@@ -15249,8 +15253,8 @@ async function handlePlayVersions(args) {
|
|
|
15249
15253
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15250
15254
|
return 1;
|
|
15251
15255
|
}
|
|
15252
|
-
const client = new (0,
|
|
15253
|
-
const jsonOutput =
|
|
15256
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
15257
|
+
const jsonOutput = _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
|
|
15254
15258
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15255
15259
|
command: "versions"
|
|
15256
15260
|
});
|
|
@@ -15258,7 +15262,7 @@ async function handlePlayVersions(args) {
|
|
|
15258
15262
|
parseReferencedPlayTarget2(playName).playName
|
|
15259
15263
|
);
|
|
15260
15264
|
if (jsonOutput) {
|
|
15261
|
-
|
|
15265
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, { versions });
|
|
15262
15266
|
return 0;
|
|
15263
15267
|
}
|
|
15264
15268
|
if (versions.length === 0) {
|
|
@@ -15290,9 +15294,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
15290
15294
|
"signals"
|
|
15291
15295
|
];
|
|
15292
15296
|
async function handlePlayList(args) {
|
|
15293
|
-
const jsonOutput =
|
|
15297
|
+
const jsonOutput = _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
|
|
15294
15298
|
const showCost = args.includes("--show-cost");
|
|
15295
|
-
const client = new (0,
|
|
15299
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
15296
15300
|
const categoriesIndex = args.indexOf("--categories");
|
|
15297
15301
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _536 => _536[categoriesIndex + 1], 'optionalAccess', _537 => _537.trim, 'call', _538 => _538()]) : void 0;
|
|
15298
15302
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15389,7 +15393,7 @@ async function handlePlayList(args) {
|
|
|
15389
15393
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15390
15394
|
lines.push(`Next page: ${nextPage}`);
|
|
15391
15395
|
}
|
|
15392
|
-
|
|
15396
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
15393
15397
|
{
|
|
15394
15398
|
plays,
|
|
15395
15399
|
count: plays.length,
|
|
@@ -15407,7 +15411,7 @@ async function handlePlayList(args) {
|
|
|
15407
15411
|
}
|
|
15408
15412
|
async function handlePlayPin(args, pinned) {
|
|
15409
15413
|
const target = _optionalChain([args, 'access', _545 => _545.find, 'call', _546 => _546((arg) => !arg.startsWith("-")), 'optionalAccess', _547 => _547.trim, 'call', _548 => _548()]);
|
|
15410
|
-
const jsonOutput =
|
|
15414
|
+
const jsonOutput = _chunkDQ65ZVHNjs.argsWantJson.call(void 0, args);
|
|
15411
15415
|
const dryRun = args.includes("--dry-run");
|
|
15412
15416
|
if (!target) {
|
|
15413
15417
|
console.error(
|
|
@@ -15425,11 +15429,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15425
15429
|
const name = parsedTarget.playName;
|
|
15426
15430
|
const plan = { name, pinned, dryRun };
|
|
15427
15431
|
if (dryRun) {
|
|
15428
|
-
|
|
15432
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, plan);
|
|
15429
15433
|
return 0;
|
|
15430
15434
|
}
|
|
15431
|
-
const result = await new (0,
|
|
15432
|
-
if (jsonOutput)
|
|
15435
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15436
|
+
if (jsonOutput) _chunkDQ65ZVHNjs.printCompactJson.call(void 0, result);
|
|
15433
15437
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15434
15438
|
return 0;
|
|
15435
15439
|
}
|
|
@@ -15555,12 +15559,12 @@ async function handlePlayGrep(args) {
|
|
|
15555
15559
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15556
15560
|
return 1;
|
|
15557
15561
|
}
|
|
15558
|
-
const client = new (0,
|
|
15562
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
15559
15563
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15560
15564
|
summarizePlayGrepResult
|
|
15561
15565
|
);
|
|
15562
|
-
if (
|
|
15563
|
-
|
|
15566
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
15567
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, {
|
|
15564
15568
|
plays: results,
|
|
15565
15569
|
count: results.length,
|
|
15566
15570
|
query,
|
|
@@ -15583,7 +15587,7 @@ async function handlePlayGrep(args) {
|
|
|
15583
15587
|
return 0;
|
|
15584
15588
|
}
|
|
15585
15589
|
async function handlePlayDescribe(args) {
|
|
15586
|
-
const selection =
|
|
15590
|
+
const selection = _chunkDQ65ZVHNjs.parseJsonFields.call(void 0, args, "describe");
|
|
15587
15591
|
args = selection.args;
|
|
15588
15592
|
const playName = args[0];
|
|
15589
15593
|
if (!playName) {
|
|
@@ -15617,8 +15621,8 @@ async function handlePlayDescribe(args) {
|
|
|
15617
15621
|
`deepline plays check ${playName}`,
|
|
15618
15622
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15619
15623
|
];
|
|
15620
|
-
if (
|
|
15621
|
-
|
|
15624
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
15625
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, {
|
|
15622
15626
|
ok: false,
|
|
15623
15627
|
error: { message },
|
|
15624
15628
|
next
|
|
@@ -15632,7 +15636,7 @@ async function handlePlayDescribe(args) {
|
|
|
15632
15636
|
}
|
|
15633
15637
|
return 2;
|
|
15634
15638
|
}
|
|
15635
|
-
const client = new (0,
|
|
15639
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
15636
15640
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15637
15641
|
command: "describe"
|
|
15638
15642
|
});
|
|
@@ -15642,9 +15646,9 @@ async function handlePlayDescribe(args) {
|
|
|
15642
15646
|
compact: args.includes("--compact")
|
|
15643
15647
|
}
|
|
15644
15648
|
);
|
|
15645
|
-
if (
|
|
15646
|
-
if (selection.fields)
|
|
15647
|
-
else
|
|
15649
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
15650
|
+
if (selection.fields) _chunkDQ65ZVHNjs.printJson.call(void 0, play, selection.fields);
|
|
15651
|
+
else _chunkDQ65ZVHNjs.printCompactJson.call(void 0, play);
|
|
15648
15652
|
return 0;
|
|
15649
15653
|
}
|
|
15650
15654
|
printPlayDescription(play);
|
|
@@ -15688,7 +15692,7 @@ async function handlePlaySave(args) {
|
|
|
15688
15692
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15689
15693
|
};
|
|
15690
15694
|
if (options.jsonOutput) {
|
|
15691
|
-
|
|
15695
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, result);
|
|
15692
15696
|
} else {
|
|
15693
15697
|
console.error(result.message);
|
|
15694
15698
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15710,7 +15714,7 @@ async function handlePlaySave(args) {
|
|
|
15710
15714
|
};
|
|
15711
15715
|
if (options.dryRun) {
|
|
15712
15716
|
if (options.jsonOutput) {
|
|
15713
|
-
|
|
15717
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, dryRun);
|
|
15714
15718
|
} else {
|
|
15715
15719
|
console.log(`Dry run: ${playName}`);
|
|
15716
15720
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15719,7 +15723,7 @@ async function handlePlaySave(args) {
|
|
|
15719
15723
|
}
|
|
15720
15724
|
return 0;
|
|
15721
15725
|
}
|
|
15722
|
-
const client = new (0,
|
|
15726
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
15723
15727
|
try {
|
|
15724
15728
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
15725
15729
|
"cli.play_save_compile_manifests",
|
|
@@ -15755,7 +15759,7 @@ async function handlePlaySave(args) {
|
|
|
15755
15759
|
}
|
|
15756
15760
|
};
|
|
15757
15761
|
if (options.jsonOutput) {
|
|
15758
|
-
|
|
15762
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, result);
|
|
15759
15763
|
} else {
|
|
15760
15764
|
console.log(
|
|
15761
15765
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15781,7 +15785,7 @@ async function handlePlayPublish(args) {
|
|
|
15781
15785
|
}
|
|
15782
15786
|
const { target: playName, useLatest } = options;
|
|
15783
15787
|
let revisionId = options.revisionId;
|
|
15784
|
-
const client = new (0,
|
|
15788
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
15785
15789
|
if (isFileTarget2(playName)) {
|
|
15786
15790
|
if (revisionId || useLatest) {
|
|
15787
15791
|
console.error(
|
|
@@ -15813,7 +15817,7 @@ async function handlePlayPublish(args) {
|
|
|
15813
15817
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15814
15818
|
};
|
|
15815
15819
|
if (options.jsonOutput) {
|
|
15816
|
-
|
|
15820
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, result3);
|
|
15817
15821
|
} else {
|
|
15818
15822
|
console.error(result3.message);
|
|
15819
15823
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15836,7 +15840,7 @@ async function handlePlayPublish(args) {
|
|
|
15836
15840
|
};
|
|
15837
15841
|
if (options.dryRun) {
|
|
15838
15842
|
if (options.jsonOutput) {
|
|
15839
|
-
|
|
15843
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, dryRun);
|
|
15840
15844
|
} else {
|
|
15841
15845
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15842
15846
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15904,7 +15908,7 @@ async function handlePlayPublish(args) {
|
|
|
15904
15908
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15905
15909
|
};
|
|
15906
15910
|
if (options.jsonOutput) {
|
|
15907
|
-
|
|
15911
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, result2);
|
|
15908
15912
|
} else {
|
|
15909
15913
|
printPublishReceipt({
|
|
15910
15914
|
name: rootPlayName,
|
|
@@ -15935,7 +15939,7 @@ async function handlePlayPublish(args) {
|
|
|
15935
15939
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15936
15940
|
latest: useLatest
|
|
15937
15941
|
};
|
|
15938
|
-
|
|
15942
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, result2);
|
|
15939
15943
|
return 0;
|
|
15940
15944
|
}
|
|
15941
15945
|
const resolvedName = parseReferencedPlayTarget2(playName).playName;
|
|
@@ -15959,7 +15963,7 @@ async function handlePlayPublish(args) {
|
|
|
15959
15963
|
revisionId ? { revisionId } : {}
|
|
15960
15964
|
);
|
|
15961
15965
|
if (options.jsonOutput) {
|
|
15962
|
-
|
|
15966
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, result);
|
|
15963
15967
|
} else {
|
|
15964
15968
|
printPublishReceipt({
|
|
15965
15969
|
name: result.name,
|
|
@@ -15999,7 +16003,7 @@ async function handlePlayDelete(args) {
|
|
|
15999
16003
|
);
|
|
16000
16004
|
return 2;
|
|
16001
16005
|
}
|
|
16002
|
-
const client = new (0,
|
|
16006
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
16003
16007
|
let detail;
|
|
16004
16008
|
try {
|
|
16005
16009
|
detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
|
|
@@ -16023,8 +16027,8 @@ async function handlePlayDelete(args) {
|
|
|
16023
16027
|
name: resolvedName,
|
|
16024
16028
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
16025
16029
|
};
|
|
16026
|
-
if (
|
|
16027
|
-
|
|
16030
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
16031
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, result2);
|
|
16028
16032
|
} else {
|
|
16029
16033
|
process.stdout.write(
|
|
16030
16034
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16034,8 +16038,8 @@ async function handlePlayDelete(args) {
|
|
|
16034
16038
|
return 0;
|
|
16035
16039
|
}
|
|
16036
16040
|
const result = await client.deletePlay(resolvedName);
|
|
16037
|
-
if (
|
|
16038
|
-
|
|
16041
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
16042
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, result);
|
|
16039
16043
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16040
16044
|
}
|
|
16041
16045
|
if (result.alreadyArchived) {
|
|
@@ -16074,13 +16078,13 @@ async function handlePlayRestore(args) {
|
|
|
16074
16078
|
);
|
|
16075
16079
|
return 2;
|
|
16076
16080
|
}
|
|
16077
|
-
const client = new (0,
|
|
16081
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
16078
16082
|
try {
|
|
16079
16083
|
const result = await client.restorePlay(
|
|
16080
16084
|
parseReferencedPlayTarget2(playName).playName
|
|
16081
16085
|
);
|
|
16082
|
-
if (
|
|
16083
|
-
|
|
16086
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
16087
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, result);
|
|
16084
16088
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16085
16089
|
}
|
|
16086
16090
|
if (result.alreadyActive) {
|
|
@@ -16193,21 +16197,21 @@ Common commands:
|
|
|
16193
16197
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16194
16198
|
}
|
|
16195
16199
|
};
|
|
16196
|
-
|
|
16200
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0, result2, {
|
|
16197
16201
|
json: options.json,
|
|
16198
16202
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16199
16203
|
`
|
|
16200
16204
|
});
|
|
16201
16205
|
return;
|
|
16202
16206
|
}
|
|
16203
|
-
const client = new (0,
|
|
16207
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
16204
16208
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16205
16209
|
throw new Error(
|
|
16206
16210
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16207
16211
|
);
|
|
16208
16212
|
}
|
|
16209
16213
|
const result = await client.startPlayRun(saved.request);
|
|
16210
|
-
|
|
16214
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
16211
16215
|
{ ...result },
|
|
16212
16216
|
{
|
|
16213
16217
|
json: options.json,
|
|
@@ -16243,7 +16247,7 @@ Examples:
|
|
|
16243
16247
|
).action(async (target, options) => {
|
|
16244
16248
|
process.exitCode = await handlePlayCheck([
|
|
16245
16249
|
target,
|
|
16246
|
-
...
|
|
16250
|
+
..._chunkDQ65ZVHNjs.jsonFieldArgs.call(void 0, options.json),
|
|
16247
16251
|
...options.full ? ["--full"] : []
|
|
16248
16252
|
]);
|
|
16249
16253
|
});
|
|
@@ -16484,9 +16488,9 @@ Examples:
|
|
|
16484
16488
|
const limit = Number(options.historyLimit);
|
|
16485
16489
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16486
16490
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16487
|
-
const client = new (0,
|
|
16491
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
16488
16492
|
if (options.binding) {
|
|
16489
|
-
|
|
16493
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0,
|
|
16490
16494
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16491
16495
|
);
|
|
16492
16496
|
return;
|
|
@@ -16494,7 +16498,7 @@ Examples:
|
|
|
16494
16498
|
const result = await client.listPlayTriggerInventory({
|
|
16495
16499
|
cursor: options.cursor
|
|
16496
16500
|
});
|
|
16497
|
-
|
|
16501
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, {
|
|
16498
16502
|
...result,
|
|
16499
16503
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16500
16504
|
});
|
|
@@ -16541,7 +16545,7 @@ Examples:
|
|
|
16541
16545
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16542
16546
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16543
16547
|
}
|
|
16544
|
-
const result = await new (0,
|
|
16548
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getPlaysActivity({
|
|
16545
16549
|
timeZone: options.timeZone,
|
|
16546
16550
|
days,
|
|
16547
16551
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16555,7 +16559,7 @@ Examples:
|
|
|
16555
16559
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16556
16560
|
);
|
|
16557
16561
|
}
|
|
16558
|
-
|
|
16562
|
+
_chunkDQ65ZVHNjs.printCommandEnvelope.call(void 0,
|
|
16559
16563
|
{ ...result },
|
|
16560
16564
|
{
|
|
16561
16565
|
json: Boolean(options.json),
|
|
@@ -16584,7 +16588,7 @@ Examples:
|
|
|
16584
16588
|
false
|
|
16585
16589
|
);
|
|
16586
16590
|
});
|
|
16587
|
-
|
|
16591
|
+
_chunkPSGEDGLTjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16588
16592
|
play,
|
|
16589
16593
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16590
16594
|
);
|
|
@@ -16625,9 +16629,9 @@ Examples:
|
|
|
16625
16629
|
"--json [fields]",
|
|
16626
16630
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16627
16631
|
);
|
|
16628
|
-
|
|
16632
|
+
_chunkZAAKSJASjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16629
16633
|
async (target, options) => {
|
|
16630
|
-
const ownView = () => handlePlayDescribe(
|
|
16634
|
+
const ownView = () => handlePlayDescribe(_chunkDQ65ZVHNjs.describeArgs.call(void 0, target, options));
|
|
16631
16635
|
const [flagText] = [options.json].filter(
|
|
16632
16636
|
(value) => typeof value === "string"
|
|
16633
16637
|
);
|
|
@@ -16638,7 +16642,7 @@ Examples:
|
|
|
16638
16642
|
process.exitCode = await ownView();
|
|
16639
16643
|
return;
|
|
16640
16644
|
}
|
|
16641
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16645
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-6WT74AOR.js")));
|
|
16642
16646
|
process.exitCode = await describeAnything(
|
|
16643
16647
|
name,
|
|
16644
16648
|
{
|
|
@@ -16756,7 +16760,7 @@ Examples:
|
|
|
16756
16760
|
deepline plays deployments <deployment-id>
|
|
16757
16761
|
`
|
|
16758
16762
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16759
|
-
async (id, options) => id ?
|
|
16763
|
+
async (id, options) => id ? _chunkSO7RUVTYjs.handleDeploymentGet.call(void 0, id, options) : _chunkSO7RUVTYjs.handleDeploymentsList.call(void 0, options)
|
|
16760
16764
|
);
|
|
16761
16765
|
addPublishHelp(
|
|
16762
16766
|
play.command("publish <target>").description(
|
|
@@ -16891,14 +16895,14 @@ Examples:
|
|
|
16891
16895
|
const limit = Number(options.limit);
|
|
16892
16896
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16893
16897
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16894
|
-
const result = await new (0,
|
|
16898
|
+
const result = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().runs.rowHistory({
|
|
16895
16899
|
playName: options.play,
|
|
16896
16900
|
runId,
|
|
16897
16901
|
tableNamespace: options.dataset,
|
|
16898
16902
|
limit,
|
|
16899
16903
|
cursor: options.cursor
|
|
16900
16904
|
});
|
|
16901
|
-
|
|
16905
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, {
|
|
16902
16906
|
...result,
|
|
16903
16907
|
...result.nextCursor ? {
|
|
16904
16908
|
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`
|
|
@@ -16963,7 +16967,7 @@ Examples:
|
|
|
16963
16967
|
).action(async (runId, options) => {
|
|
16964
16968
|
process.exitCode = await handleRunGet([
|
|
16965
16969
|
runId,
|
|
16966
|
-
...
|
|
16970
|
+
..._chunkDQ65ZVHNjs.jsonFieldArgs.call(void 0, options.json),
|
|
16967
16971
|
...options.webUrl ? ["--web-url"] : [],
|
|
16968
16972
|
...options.full ? ["--full"] : [],
|
|
16969
16973
|
...options.input ? ["--input"] : [],
|
|
@@ -17242,7 +17246,7 @@ Examples:
|
|
|
17242
17246
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17243
17247
|
...options.wait ? ["--wait"] : [],
|
|
17244
17248
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17245
|
-
...
|
|
17249
|
+
..._chunkDQ65ZVHNjs.jsonFieldArgs.call(void 0, options.json)
|
|
17246
17250
|
]);
|
|
17247
17251
|
});
|
|
17248
17252
|
const share = play.command("share").description(
|
|
@@ -17408,10 +17412,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17408
17412
|
return 2;
|
|
17409
17413
|
}
|
|
17410
17414
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17411
|
-
const status = await new (0,
|
|
17415
|
+
const status = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().getSharePage(name);
|
|
17412
17416
|
const outputStatus = shareStatusForOutput(status);
|
|
17413
|
-
if (
|
|
17414
|
-
|
|
17417
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
17418
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, outputStatus);
|
|
17415
17419
|
return 0;
|
|
17416
17420
|
}
|
|
17417
17421
|
if (!outputStatus.share) {
|
|
@@ -17450,7 +17454,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17450
17454
|
return 2;
|
|
17451
17455
|
}
|
|
17452
17456
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17453
|
-
const client = new (0,
|
|
17457
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
17454
17458
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17455
17459
|
let resolvedVersion;
|
|
17456
17460
|
if (!revisionId) {
|
|
@@ -17481,8 +17485,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17481
17485
|
);
|
|
17482
17486
|
if (!hasCompleted) {
|
|
17483
17487
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17484
|
-
if (
|
|
17485
|
-
|
|
17488
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
17489
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, {
|
|
17486
17490
|
ok: false,
|
|
17487
17491
|
code: "NO_SUCCESSFUL_RUN",
|
|
17488
17492
|
message,
|
|
@@ -17506,8 +17510,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17506
17510
|
};
|
|
17507
17511
|
if (args.includes("--dry-run")) {
|
|
17508
17512
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17509
|
-
if (
|
|
17510
|
-
|
|
17513
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
17514
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, plan);
|
|
17511
17515
|
} else {
|
|
17512
17516
|
console.log(
|
|
17513
17517
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17517,8 +17521,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17517
17521
|
}
|
|
17518
17522
|
const status = await client.publishSharePage(name, request);
|
|
17519
17523
|
const outputStatus = shareStatusForOutput(status);
|
|
17520
|
-
if (
|
|
17521
|
-
|
|
17524
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
17525
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, outputStatus);
|
|
17522
17526
|
return 0;
|
|
17523
17527
|
}
|
|
17524
17528
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17549,9 +17553,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17549
17553
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17550
17554
|
...seoIndexing ? { seoIndexing } : {}
|
|
17551
17555
|
};
|
|
17552
|
-
const status = await new (0,
|
|
17553
|
-
if (
|
|
17554
|
-
|
|
17556
|
+
const status = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().updateSharePage(name, request);
|
|
17557
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
17558
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, status);
|
|
17555
17559
|
return 0;
|
|
17556
17560
|
}
|
|
17557
17561
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17566,7 +17570,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17566
17570
|
return 2;
|
|
17567
17571
|
}
|
|
17568
17572
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17569
|
-
const client = new (0,
|
|
17573
|
+
const client = new (0, _chunkUVXBVUZQjs.DeeplineClient)();
|
|
17570
17574
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17571
17575
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17572
17576
|
if (!revisionId && versionFlag) {
|
|
@@ -17583,8 +17587,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17583
17587
|
revisionId ? { revisionId } : {}
|
|
17584
17588
|
);
|
|
17585
17589
|
const outputStatus = shareStatusForOutput(status);
|
|
17586
|
-
if (
|
|
17587
|
-
|
|
17590
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
17591
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, outputStatus);
|
|
17588
17592
|
return 0;
|
|
17589
17593
|
}
|
|
17590
17594
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17609,9 +17613,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17609
17613
|
return 2;
|
|
17610
17614
|
}
|
|
17611
17615
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17612
|
-
const status = await new (0,
|
|
17613
|
-
if (
|
|
17614
|
-
|
|
17616
|
+
const status = await new (0, _chunkUVXBVUZQjs.DeeplineClient)().unpublishSharePage(name);
|
|
17617
|
+
if (_chunkDQ65ZVHNjs.argsWantJson.call(void 0, args)) {
|
|
17618
|
+
_chunkDQ65ZVHNjs.printCompactJson.call(void 0, status);
|
|
17615
17619
|
return 0;
|
|
17616
17620
|
}
|
|
17617
17621
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|