deepline 0.3.371 → 0.3.372
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/product-notifications/catalog.ts +15 -3
- package/dist/cli/auth-4SXMV3CD.js +33 -0
- package/dist/cli/{auth-LCSEXQA2.mjs → auth-ODSACXLF.mjs} +4 -4
- package/dist/cli/{billing-KISDL67A.js → billing-4ERXY2DZ.js} +73 -73
- package/dist/cli/{billing-Z7PLJC5C.mjs → billing-OPIOZLAN.mjs} +4 -4
- package/dist/cli/{chunk-KBJO7HIF.mjs → chunk-2RC5JQ3C.mjs} +1 -1
- package/dist/cli/{chunk-3FTYFVYN.mjs → chunk-3CTB7V5F.mjs} +2 -2
- package/dist/cli/{chunk-AIZKDTFF.mjs → chunk-4LIUZ4QR.mjs} +2 -2
- package/dist/cli/{chunk-SENW5J4O.mjs → chunk-5HYD3GMS.mjs} +3 -3
- package/dist/cli/{chunk-N34UX4TW.js → chunk-6MDAGRZP.js} +2 -2
- package/dist/cli/{chunk-C3IPN4E6.js → chunk-AQFA7HMN.js} +15 -15
- package/dist/cli/{chunk-IWY7T6MR.mjs → chunk-BFLPCGOR.mjs} +1 -1
- package/dist/cli/{chunk-SEDS6ZVR.mjs → chunk-BVUGPOU3.mjs} +2 -2
- package/dist/cli/{chunk-YENBXYUH.js → chunk-D6O3NJHX.js} +60 -60
- package/dist/cli/{chunk-NMDNUOVI.js → chunk-DM5QUZJR.js} +1 -1
- package/dist/cli/{chunk-KGRAQ4OR.mjs → chunk-DONL233W.mjs} +4 -4
- package/dist/cli/{chunk-5BCVKWLV.js → chunk-EFJL5FCU.js} +8 -8
- package/dist/cli/{chunk-KKRRIFR3.mjs → chunk-FGHRRJ3D.mjs} +1 -1
- package/dist/cli/{chunk-5Z7JFUNX.js → chunk-GZQKUFM5.js} +26 -26
- package/dist/cli/{chunk-TT2YWFYW.js → chunk-IUWPC5K6.js} +50 -50
- package/dist/cli/{chunk-YYFLULK7.mjs → chunk-JAERLCMH.mjs} +1 -1
- package/dist/cli/{chunk-73NIXYKH.mjs → chunk-KC2YOJTU.mjs} +5 -5
- package/dist/cli/{chunk-DOXAN2I7.mjs → chunk-MIMV5LTU.mjs} +1 -1
- package/dist/cli/{chunk-A7X7KFXX.js → chunk-ML2ZY7YD.js} +4 -4
- package/dist/cli/{chunk-C553OZGG.js → chunk-N5TPMNTT.js} +8 -8
- package/dist/cli/{chunk-DPVBWLBF.js → chunk-RJ7JJMQO.js} +224 -224
- package/dist/cli/{chunk-44SHFHA3.js → chunk-RUYZAREB.js} +9 -9
- package/dist/cli/{chunk-2L6LBJVC.mjs → chunk-U3W7E5WT.mjs} +6 -6
- package/dist/cli/{chunk-BO3ADIBV.js → chunk-VVFH745L.js} +6 -6
- package/dist/cli/{chunk-DQMTJXLK.js → chunk-WJWO74MM.js} +49 -49
- package/dist/cli/{chunk-5S525TQV.mjs → chunk-XSPAI6MF.mjs} +2 -2
- package/dist/cli/{client-Z3Z5EDDJ.mjs → client-KF2J754U.mjs} +3 -3
- package/dist/cli/client-UUNLXOHF.js +20 -0
- package/dist/cli/{csv-XGFXV7JE.js → csv-UJ3M7NFP.js} +12 -12
- package/dist/cli/{csv-TEVHLGGA.mjs → csv-UL3MCD5D.mjs} +3 -3
- package/dist/cli/{db-LLZJ7UH5.js → db-444XYOTV.js} +29 -29
- package/dist/cli/{db-OB7PMWSZ.mjs → db-SIOWA63T.mjs} +4 -4
- package/dist/cli/{describe-GZIRANUZ.mjs → describe-GI5GHAKO.mjs} +8 -8
- package/dist/cli/{describe-NWU7LI3I.js → describe-RRBESS3S.js} +15 -15
- package/dist/cli/{executions-7UZ3ZGJ3.mjs → executions-4YDP6BXI.mjs} +4 -4
- package/dist/cli/{executions-64YZGSOW.js → executions-ERXZUOL5.js} +6 -6
- package/dist/cli/{feedback-MN5CXULH.js → feedback-3M7D7DZQ.js} +7 -7
- package/dist/cli/{feedback-2WRQRW3U.mjs → feedback-CPWQL5LU.mjs} +3 -3
- package/dist/cli/git-ITSCNUVB.js +23 -0
- package/dist/cli/{git-BPYVLLTY.mjs → git-XN6C3TJZ.mjs} +4 -4
- package/dist/cli/index.js +81 -81
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-VMXJPLMW.js → legacy-noops-5XDGOFWH.js} +7 -7
- package/dist/cli/{legacy-noops-ZRPWEPX6.mjs → legacy-noops-KXQ6TFFL.mjs} +4 -4
- package/dist/cli/{monitors-5BRTBL7E.mjs → monitors-33IU5JR6.mjs} +4 -4
- package/dist/cli/{monitors-OQSI2VOL.js → monitors-KH22PDOC.js} +85 -85
- package/dist/cli/{org-SMZ7AGR3.mjs → org-MHYMWUEP.mjs} +4 -4
- package/dist/cli/{org-F5QS3HG4.js → org-X4NSLQG5.js} +64 -64
- package/dist/cli/play-4QRPOBWW.js +155 -0
- package/dist/cli/{play-CJZNLQL7.mjs → play-LCZKHKW2.mjs} +7 -7
- package/dist/cli/{providers-SH2HYOVR.js → providers-J6LWCF5R.js} +7 -7
- package/dist/cli/{providers-CBWXJRDG.mjs → providers-L5FJTSEA.mjs} +4 -4
- package/dist/cli/{quickstart-342ENF6Q.mjs → quickstart-NE3BTWGL.mjs} +3 -3
- package/dist/cli/{quickstart-B6EL7WDG.js → quickstart-OOPFA4MX.js} +5 -5
- package/dist/cli/{search-E7DKH3SI.mjs → search-DBXOEOIE.mjs} +5 -5
- package/dist/cli/search-UGQDBP76.js +26 -0
- package/dist/cli/{secrets-FSYIPRVS.mjs → secrets-U2MLWZH2.mjs} +4 -4
- package/dist/cli/{secrets-M2AW5RGE.js → secrets-WPMU7UBD.js} +13 -13
- package/dist/cli/{sessions-DJPGWPNA.mjs → sessions-WYNC4AUE.mjs} +4 -4
- package/dist/cli/{sessions-AFE4C3FQ.js → sessions-YYZ3UJDS.js} +5 -5
- package/dist/cli/{settings-KLN2A3PQ.mjs → settings-FQZSHFC6.mjs} +7 -7
- package/dist/cli/{settings-VUWBNATC.js → settings-WQDFX3X6.js} +74 -74
- package/dist/cli/{setup-I5IMTQCX.js → setup-DKYVNDTM.js} +41 -41
- package/dist/cli/{setup-BE6N5YV6.mjs → setup-JKYJT35S.mjs} +6 -6
- package/dist/cli/skills-VBQMXDAX.js +28 -0
- package/dist/cli/{skills-GSNPQDUG.mjs → skills-VHVCJJJY.mjs} +4 -4
- package/dist/cli/tools-ACEJZMJD.js +40 -0
- package/dist/cli/{tools-ORCGHV4P.mjs → tools-E23PU7KM.mjs} +6 -6
- package/dist/cli/{update-UXEUWVWS.mjs → update-4A4VU6CW.mjs} +6 -6
- package/dist/cli/update-V5KMYHVE.js +28 -0
- package/dist/cli/{workflow-JBQY7JJN.mjs → workflow-2ZR2ECTG.mjs} +5 -5
- package/dist/cli/{workflow-R7SDICTU.js → workflow-WB2USWAA.js} +15 -15
- package/dist/{client-CZFMQEgO.d.mts → client-Cw0e2Uec.d.mts} +2 -1
- package/dist/{client-CgSwpnb-.d.ts → client-CwdiawoG.d.ts} +2 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +76 -76
- 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 +1 -1
- package/dist/cli/auth-DQVK3ZI6.js +0 -33
- package/dist/cli/client-JFSRNUVD.js +0 -20
- package/dist/cli/git-TJIPVSAE.js +0 -23
- package/dist/cli/play-K7HE4LBB.js +0 -155
- package/dist/cli/search-SEEYCQED.js +0 -26
- package/dist/cli/skills-7XH5GMZB.js +0 -28
- package/dist/cli/tools-JCL4ABAF.js +0 -40
- package/dist/cli/update-YNZOS77Z.js +0 -28
|
@@ -19,11 +19,11 @@ var _chunkQGKPTBRRjs = require('./chunk-QGKPTBRR.js');
|
|
|
19
19
|
var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkN5TPMNTTjs = require('./chunk-N5TPMNTT.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkGZQKUFM5js = require('./chunk-GZQKUFM5.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -42,7 +42,7 @@ var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkRUYZAREBjs = require('./chunk-RUYZAREB.js');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
@@ -75,10 +75,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _chunkVVFH745Ljs = require('./chunk-VVFH745L.js');
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkML2ZY7YDjs = require('./chunk-ML2ZY7YD.js');
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -2062,7 +2062,7 @@ function resolveField(key, command) {
|
|
|
2062
2062
|
function printSettings(result, json, name) {
|
|
2063
2063
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2064
2064
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2065
|
-
|
|
2065
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
2066
2066
|
{
|
|
2067
2067
|
...result,
|
|
2068
2068
|
settings: Object.fromEntries(
|
|
@@ -2106,7 +2106,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2106
2106
|
valueSyntax: field.cli.valueSyntax,
|
|
2107
2107
|
examples: field.cli.examples
|
|
2108
2108
|
}));
|
|
2109
|
-
|
|
2109
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
2110
2110
|
{
|
|
2111
2111
|
fields: descriptions,
|
|
2112
2112
|
render: {
|
|
@@ -2131,7 +2131,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2131
2131
|
async (options, command) => {
|
|
2132
2132
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2133
2133
|
printSettings(
|
|
2134
|
-
await new (0,
|
|
2134
|
+
await new (0, _chunkRUYZAREBjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2135
2135
|
options.json,
|
|
2136
2136
|
options.name
|
|
2137
2137
|
);
|
|
@@ -2162,7 +2162,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2162
2162
|
);
|
|
2163
2163
|
}
|
|
2164
2164
|
if (options.dryRun) {
|
|
2165
|
-
|
|
2165
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
2166
2166
|
{
|
|
2167
2167
|
dryRun: true,
|
|
2168
2168
|
play,
|
|
@@ -2183,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2183
2183
|
return;
|
|
2184
2184
|
}
|
|
2185
2185
|
printSettings(
|
|
2186
|
-
await new (0,
|
|
2186
|
+
await new (0, _chunkRUYZAREBjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2187
2187
|
options.json
|
|
2188
2188
|
);
|
|
2189
2189
|
};
|
|
@@ -2209,13 +2209,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2209
2209
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2210
2210
|
{ exitCode: 2 }
|
|
2211
2211
|
);
|
|
2212
|
-
const page = await new (0,
|
|
2212
|
+
const page = await new (0, _chunkRUYZAREBjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2213
2213
|
root: options.root,
|
|
2214
2214
|
limit,
|
|
2215
2215
|
cursor: options.cursor
|
|
2216
2216
|
});
|
|
2217
2217
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2218
|
-
|
|
2218
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
2219
2219
|
{
|
|
2220
2220
|
...page,
|
|
2221
2221
|
nextCommand,
|
|
@@ -2266,7 +2266,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2266
2266
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2267
2267
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2268
2268
|
};
|
|
2269
|
-
const client = new (0,
|
|
2269
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
2270
2270
|
const paths = [];
|
|
2271
2271
|
let cursor;
|
|
2272
2272
|
do {
|
|
@@ -2328,7 +2328,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2328
2328
|
moved.push(move.playName);
|
|
2329
2329
|
}
|
|
2330
2330
|
}
|
|
2331
|
-
|
|
2331
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
2332
2332
|
{
|
|
2333
2333
|
dryRun: Boolean(options.dryRun),
|
|
2334
2334
|
from: options.from,
|
|
@@ -2456,7 +2456,7 @@ function triggerLines(view) {
|
|
|
2456
2456
|
return lines;
|
|
2457
2457
|
}
|
|
2458
2458
|
function printView(view, json) {
|
|
2459
|
-
|
|
2459
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
2460
2460
|
{
|
|
2461
2461
|
...view,
|
|
2462
2462
|
render: {
|
|
@@ -2469,7 +2469,7 @@ function printView(view, json) {
|
|
|
2469
2469
|
);
|
|
2470
2470
|
}
|
|
2471
2471
|
function printResult(result, json) {
|
|
2472
|
-
|
|
2472
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
2473
2473
|
{
|
|
2474
2474
|
...result,
|
|
2475
2475
|
render: {
|
|
@@ -2499,7 +2499,7 @@ async function mutate(command, options, build) {
|
|
|
2499
2499
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2500
2500
|
}
|
|
2501
2501
|
if (options.dryRun) {
|
|
2502
|
-
|
|
2502
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
2503
2503
|
{
|
|
2504
2504
|
dryRun: true,
|
|
2505
2505
|
play: options.play,
|
|
@@ -2518,7 +2518,7 @@ async function mutate(command, options, build) {
|
|
|
2518
2518
|
return;
|
|
2519
2519
|
}
|
|
2520
2520
|
printResult(
|
|
2521
|
-
await new (0,
|
|
2521
|
+
await new (0, _chunkRUYZAREBjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2522
2522
|
options.json
|
|
2523
2523
|
);
|
|
2524
2524
|
}
|
|
@@ -2551,7 +2551,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2551
2551
|
}).addHelpText("after", help2);
|
|
2552
2552
|
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) => {
|
|
2553
2553
|
printView(
|
|
2554
|
-
await new (0,
|
|
2554
|
+
await new (0, _chunkRUYZAREBjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2555
2555
|
options.json
|
|
2556
2556
|
);
|
|
2557
2557
|
});
|
|
@@ -2595,7 +2595,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2595
2595
|
if (options.auth === void 0) {
|
|
2596
2596
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2597
2597
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2598
|
-
const current = await new (0,
|
|
2598
|
+
const current = await new (0, _chunkRUYZAREBjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2599
2599
|
options.play
|
|
2600
2600
|
);
|
|
2601
2601
|
return {
|
|
@@ -2672,7 +2672,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2672
2672
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2673
2673
|
"runtime.event": "Other event."
|
|
2674
2674
|
};
|
|
2675
|
-
var RUN_LOGS_KIND_HELP =
|
|
2675
|
+
var RUN_LOGS_KIND_HELP = _chunkRUYZAREBjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2676
2676
|
kind,
|
|
2677
2677
|
description: KIND_DESCRIPTIONS[kind]
|
|
2678
2678
|
}));
|
|
@@ -2809,9 +2809,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2809
2809
|
const args = program.args;
|
|
2810
2810
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2811
2811
|
error.exitCode = 2;
|
|
2812
|
-
if (
|
|
2813
|
-
|
|
2814
|
-
Object.assign(new (0,
|
|
2812
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2813
|
+
_chunkVVFH745Ljs.printJsonError.call(void 0,
|
|
2814
|
+
Object.assign(new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(error.message), {
|
|
2815
2815
|
exitCode: 2,
|
|
2816
2816
|
retryable: false
|
|
2817
2817
|
})
|
|
@@ -2855,14 +2855,14 @@ function parseQuery(args, resource) {
|
|
|
2855
2855
|
if (VALUE_FLAGS.has(flag)) {
|
|
2856
2856
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2857
2857
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2858
|
-
throw new (0,
|
|
2858
|
+
throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
|
|
2859
2859
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2860
2860
|
);
|
|
2861
2861
|
}
|
|
2862
2862
|
if (flag === "--sum") sums.push(value);
|
|
2863
2863
|
else {
|
|
2864
2864
|
if (values[flag] !== void 0) {
|
|
2865
|
-
throw new (0,
|
|
2865
|
+
throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
|
|
2866
2866
|
`${flag} may only be supplied once.`
|
|
2867
2867
|
);
|
|
2868
2868
|
}
|
|
@@ -2876,12 +2876,12 @@ function parseQuery(args, resource) {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
if (arg.startsWith("-")) {
|
|
2878
2878
|
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.";
|
|
2879
|
-
throw new (0,
|
|
2879
|
+
throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
|
|
2880
2880
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2881
2881
|
);
|
|
2882
2882
|
}
|
|
2883
2883
|
if (runId !== void 0) {
|
|
2884
|
-
throw new (0,
|
|
2884
|
+
throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
|
|
2885
2885
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2886
2886
|
);
|
|
2887
2887
|
}
|
|
@@ -2889,7 +2889,7 @@ function parseQuery(args, resource) {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
if (switches.has("--fields")) {
|
|
2891
2891
|
if (runId !== void 0) {
|
|
2892
|
-
throw new (0,
|
|
2892
|
+
throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
|
|
2893
2893
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2894
2894
|
);
|
|
2895
2895
|
}
|
|
@@ -2902,18 +2902,18 @@ function parseQuery(args, resource) {
|
|
|
2902
2902
|
)
|
|
2903
2903
|
];
|
|
2904
2904
|
if (incompatible.length) {
|
|
2905
|
-
throw new (0,
|
|
2905
|
+
throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
|
|
2906
2906
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2907
2907
|
);
|
|
2908
2908
|
}
|
|
2909
2909
|
}
|
|
2910
2910
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2911
|
-
throw new (0,
|
|
2911
|
+
throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
|
|
2912
2912
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2913
2913
|
);
|
|
2914
2914
|
}
|
|
2915
2915
|
if (sums.length && switches.has("--count")) {
|
|
2916
|
-
throw new (0,
|
|
2916
|
+
throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
|
|
2917
2917
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2918
2918
|
);
|
|
2919
2919
|
}
|
|
@@ -2921,7 +2921,7 @@ function parseQuery(args, resource) {
|
|
|
2921
2921
|
if (operation === "count") {
|
|
2922
2922
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2923
2923
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2924
|
-
throw new (0,
|
|
2924
|
+
throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
|
|
2925
2925
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2926
2926
|
);
|
|
2927
2927
|
}
|
|
@@ -2956,16 +2956,16 @@ function parseQuery(args, resource) {
|
|
|
2956
2956
|
];
|
|
2957
2957
|
}
|
|
2958
2958
|
}
|
|
2959
|
-
const request =
|
|
2959
|
+
const request = _chunkRUYZAREBjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2960
2960
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2961
2961
|
const backend = values["--runtime-backend"];
|
|
2962
2962
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2963
|
-
throw new (0,
|
|
2963
|
+
throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
|
|
2964
2964
|
"--runtime-backend must be daytona or modal."
|
|
2965
2965
|
);
|
|
2966
2966
|
}
|
|
2967
2967
|
if (backend && !namespace) {
|
|
2968
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunkRUYZAREBjs.RunEventQueryInputError)(
|
|
2969
2969
|
"--runtime-backend requires --runtime-namespace."
|
|
2970
2970
|
);
|
|
2971
2971
|
}
|
|
@@ -3012,12 +3012,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3012
3012
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3013
3013
|
const record3 = failure;
|
|
3014
3014
|
const status = record3.statusCode;
|
|
3015
|
-
const exitCode = error instanceof
|
|
3015
|
+
const exitCode = error instanceof _chunkRUYZAREBjs.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;
|
|
3016
3016
|
const diagnostic = Object.assign(failure, {
|
|
3017
3017
|
exitCode,
|
|
3018
3018
|
retryable: exitCode === 5
|
|
3019
3019
|
});
|
|
3020
|
-
if (
|
|
3020
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) _chunkVVFH745Ljs.printJsonError.call(void 0, diagnostic);
|
|
3021
3021
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3022
3022
|
return exitCode;
|
|
3023
3023
|
}
|
|
@@ -3032,7 +3032,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3032
3032
|
...criteria
|
|
3033
3033
|
} = request;
|
|
3034
3034
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3035
|
-
const client = new (0,
|
|
3035
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
3036
3036
|
let result;
|
|
3037
3037
|
if (request.operation === "fields") {
|
|
3038
3038
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3098,13 +3098,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3098
3098
|
lines.push(`Next page: ${nextPage}`);
|
|
3099
3099
|
}
|
|
3100
3100
|
}
|
|
3101
|
-
|
|
3101
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
3102
3102
|
{
|
|
3103
3103
|
...result,
|
|
3104
3104
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3105
3105
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3106
3106
|
},
|
|
3107
|
-
{ json:
|
|
3107
|
+
{ json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3108
3108
|
` }
|
|
3109
3109
|
);
|
|
3110
3110
|
return 0;
|
|
@@ -3924,7 +3924,7 @@ function checkedRunExample(plays, target) {
|
|
|
3924
3924
|
const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
|
|
3925
3925
|
const base = `deepline plays run --file ${quote(target)}`;
|
|
3926
3926
|
return {
|
|
3927
|
-
command: `${base}${
|
|
3927
|
+
command: `${base}${_chunkRUYZAREBjs.playInputExampleArgs.call(void 0, schema)}`,
|
|
3928
3928
|
note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema."
|
|
3929
3929
|
};
|
|
3930
3930
|
}
|
|
@@ -4022,7 +4022,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4022
4022
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4023
4023
|
);
|
|
4024
4024
|
}
|
|
4025
|
-
const response = await new (0,
|
|
4025
|
+
const response = await new (0, _chunkRUYZAREBjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4026
4026
|
keys
|
|
4027
4027
|
});
|
|
4028
4028
|
const failed = response.receipts.filter(
|
|
@@ -4034,7 +4034,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4034
4034
|
JSON.stringify(response, null, 2) + "\n",
|
|
4035
4035
|
{ flag: "wx", mode: 384 }
|
|
4036
4036
|
);
|
|
4037
|
-
|
|
4037
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
4038
4038
|
{
|
|
4039
4039
|
runId,
|
|
4040
4040
|
out: options.out,
|
|
@@ -4044,7 +4044,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4044
4044
|
{ json: true }
|
|
4045
4045
|
);
|
|
4046
4046
|
} else {
|
|
4047
|
-
|
|
4047
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4048
4048
|
}
|
|
4049
4049
|
if (failed)
|
|
4050
4050
|
process.exitCode = response.receipts.some(
|
|
@@ -4083,7 +4083,7 @@ includes nextCommand when another page is available.
|
|
|
4083
4083
|
{ exitCode: 2 }
|
|
4084
4084
|
);
|
|
4085
4085
|
}
|
|
4086
|
-
const page = await new (0,
|
|
4086
|
+
const page = await new (0, _chunkRUYZAREBjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4087
4087
|
launchKey: options.launchKey,
|
|
4088
4088
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4089
4089
|
limit
|
|
@@ -4098,7 +4098,7 @@ includes nextCommand when another page is available.
|
|
|
4098
4098
|
"--limit",
|
|
4099
4099
|
String(limit)
|
|
4100
4100
|
].join(" ") : null;
|
|
4101
|
-
|
|
4101
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
4102
4102
|
{
|
|
4103
4103
|
parentRunId,
|
|
4104
4104
|
launchKey: options.launchKey,
|
|
@@ -4134,7 +4134,7 @@ async function handleRunsHistory(options) {
|
|
|
4134
4134
|
throw new Error("--limit must be a positive integer.");
|
|
4135
4135
|
}
|
|
4136
4136
|
}
|
|
4137
|
-
const page = await new (0,
|
|
4137
|
+
const page = await new (0, _chunkRUYZAREBjs.DeeplineClient)().runs.history({
|
|
4138
4138
|
cursor: options.cursor,
|
|
4139
4139
|
orgId: options.org,
|
|
4140
4140
|
search: options.search,
|
|
@@ -4150,7 +4150,7 @@ async function handleRunsHistory(options) {
|
|
|
4150
4150
|
);
|
|
4151
4151
|
}
|
|
4152
4152
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4153
|
-
|
|
4153
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
4154
4154
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4155
4155
|
options.json ? { json: true } : {}
|
|
4156
4156
|
);
|
|
@@ -4202,12 +4202,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4202
4202
|
return 1;
|
|
4203
4203
|
}
|
|
4204
4204
|
}
|
|
4205
|
-
const result = await new (0,
|
|
4205
|
+
const result = await new (0, _chunkRUYZAREBjs.DeeplineClient)().runs.rerun(runId, {
|
|
4206
4206
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4207
4207
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4208
4208
|
});
|
|
4209
|
-
if (
|
|
4210
|
-
|
|
4209
|
+
if (_chunkVVFH745Ljs.shouldEmitJson.call(void 0, options.json)) {
|
|
4210
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4211
4211
|
} else {
|
|
4212
4212
|
console.log(
|
|
4213
4213
|
result.deduplicated === true ? `
|
|
@@ -4475,7 +4475,7 @@ function projectRunDatasetCell(value) {
|
|
|
4475
4475
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
4476
4476
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
4477
4477
|
if (typeof logicalValue === "object") {
|
|
4478
|
-
return
|
|
4478
|
+
return _chunkVVFH745Ljs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
4479
4479
|
}
|
|
4480
4480
|
return logicalValue;
|
|
4481
4481
|
}
|
|
@@ -6892,7 +6892,7 @@ function renderOutcome(outcome) {
|
|
|
6892
6892
|
function printResult2(input) {
|
|
6893
6893
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6894
6894
|
if (failed) process.exitCode = 1;
|
|
6895
|
-
|
|
6895
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
6896
6896
|
{
|
|
6897
6897
|
deployment: { ...input.deployment, status: input.status },
|
|
6898
6898
|
plays: input.outcomes,
|
|
@@ -6917,7 +6917,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6917
6917
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6918
6918
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6919
6919
|
});
|
|
6920
|
-
const { http, config } =
|
|
6920
|
+
const { http, config } = _chunkVVFH745Ljs.getAuthedHttpClient.call(void 0, );
|
|
6921
6921
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6922
6922
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6923
6923
|
deliveryId,
|
|
@@ -6944,7 +6944,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6944
6944
|
},
|
|
6945
6945
|
{
|
|
6946
6946
|
bundle: bundleDeployPlayFile,
|
|
6947
|
-
fetchImpl:
|
|
6947
|
+
fetchImpl: _chunkML2ZY7YDjs.fetchWithDeploymentProtection,
|
|
6948
6948
|
// The plays are already here: "opening" the source is naming it.
|
|
6949
6949
|
openSource: async () => ({
|
|
6950
6950
|
open: async () => ({ repoRoot: root })
|
|
@@ -7512,7 +7512,7 @@ function parseInputFlagValue(raw) {
|
|
|
7512
7512
|
return raw;
|
|
7513
7513
|
}
|
|
7514
7514
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
7515
|
-
const selection =
|
|
7515
|
+
const selection = _chunkVVFH745Ljs.parseJsonFields.call(void 0, args, "run");
|
|
7516
7516
|
args = selection.args;
|
|
7517
7517
|
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.";
|
|
7518
7518
|
let filePath = null;
|
|
@@ -7522,7 +7522,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7522
7522
|
let revisionSelector = null;
|
|
7523
7523
|
const watch = !args.includes("--no-wait");
|
|
7524
7524
|
const dryRun = args.includes("--dry-run");
|
|
7525
|
-
let jsonOutput = dryRun ?
|
|
7525
|
+
let jsonOutput = dryRun ? _chunkVVFH745Ljs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
|
|
7526
7526
|
const fullJson = args.includes("--full");
|
|
7527
7527
|
const force = args.includes("--force");
|
|
7528
7528
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -7569,7 +7569,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7569
7569
|
"--log-level requires one of: debug, info, warn, error."
|
|
7570
7570
|
);
|
|
7571
7571
|
}
|
|
7572
|
-
const parsed =
|
|
7572
|
+
const parsed = _chunkRUYZAREBjs.parseLogLevel.call(void 0, value);
|
|
7573
7573
|
if (!parsed) {
|
|
7574
7574
|
throw new Error(
|
|
7575
7575
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -7876,7 +7876,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7876
7876
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
7877
7877
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
7878
7878
|
);
|
|
7879
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
7879
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkRUYZAREBjs.parseLogLevel.call(void 0, options.logLevel);
|
|
7880
7880
|
if (!logLevel)
|
|
7881
7881
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
7882
7882
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -7890,13 +7890,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7890
7890
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
7891
7891
|
logLevel = "debug";
|
|
7892
7892
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
7893
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
7894
|
-
[...fullJson ? ["--full"] : [], ...
|
|
7893
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkVVFH745Ljs.parseJsonFields.call(void 0,
|
|
7894
|
+
[...fullJson ? ["--full"] : [], ..._chunkVVFH745Ljs.jsonFieldArgs.call(void 0, options.json)],
|
|
7895
7895
|
"run"
|
|
7896
7896
|
).fields;
|
|
7897
7897
|
const watch = options.wait === false ? false : base.watch;
|
|
7898
7898
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
7899
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
7899
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkVVFH745Ljs.argsWantJson.call(void 0, []) : explicitJson;
|
|
7900
7900
|
const verboseLogs = Boolean(
|
|
7901
7901
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
7902
7902
|
);
|
|
@@ -7940,7 +7940,7 @@ function playAuthoringGraphPath(parent, filePath) {
|
|
|
7940
7940
|
// src/cli/renderers/local-play-execution.ts
|
|
7941
7941
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7942
7942
|
if (options.dryRun) {
|
|
7943
|
-
|
|
7943
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7944
7944
|
return;
|
|
7945
7945
|
}
|
|
7946
7946
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -8904,7 +8904,7 @@ function playStatusErrorText(status) {
|
|
|
8904
8904
|
function isRetryablePendingStartFailure(status) {
|
|
8905
8905
|
if (status.status !== "failed") return false;
|
|
8906
8906
|
if (status.runId && status.runId !== "pending") return false;
|
|
8907
|
-
return
|
|
8907
|
+
return _chunkRUYZAREBjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8908
8908
|
}
|
|
8909
8909
|
function pendingStartFailureStatus(input) {
|
|
8910
8910
|
const message = input.error instanceof Error ? input.error.message : String(input.error);
|
|
@@ -8931,13 +8931,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
|
8931
8931
|
var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
8932
8932
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8933
8933
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8934
|
-
if (!
|
|
8934
|
+
if (!_chunkRUYZAREBjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8935
8935
|
return false;
|
|
8936
8936
|
}
|
|
8937
|
-
if (
|
|
8937
|
+
if (_chunkRUYZAREBjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8938
8938
|
return true;
|
|
8939
8939
|
}
|
|
8940
|
-
return state.verbose === true &&
|
|
8940
|
+
return state.verbose === true && _chunkRUYZAREBjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8941
8941
|
}
|
|
8942
8942
|
function getEventPayload(event) {
|
|
8943
8943
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9439,7 +9439,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
|
|
|
9439
9439
|
}
|
|
9440
9440
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
9441
9441
|
if (open2 && dashboardUrl) {
|
|
9442
|
-
|
|
9442
|
+
_chunkVVFH745Ljs.openInBrowser.call(void 0, dashboardUrl);
|
|
9443
9443
|
}
|
|
9444
9444
|
}
|
|
9445
9445
|
function printPlayLogLines(input) {
|
|
@@ -9501,7 +9501,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9501
9501
|
billing: false
|
|
9502
9502
|
});
|
|
9503
9503
|
} catch (error) {
|
|
9504
|
-
if (
|
|
9504
|
+
if (_chunkRUYZAREBjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9505
9505
|
return null;
|
|
9506
9506
|
}
|
|
9507
9507
|
throw error;
|
|
@@ -9690,7 +9690,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9690
9690
|
billing: false
|
|
9691
9691
|
});
|
|
9692
9692
|
} catch (error) {
|
|
9693
|
-
if (
|
|
9693
|
+
if (_chunkRUYZAREBjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9694
9694
|
return null;
|
|
9695
9695
|
}
|
|
9696
9696
|
throw error;
|
|
@@ -9898,7 +9898,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9898
9898
|
lastPhase
|
|
9899
9899
|
});
|
|
9900
9900
|
}
|
|
9901
|
-
if (lastKnownWorkflowId &&
|
|
9901
|
+
if (lastKnownWorkflowId && _chunkRUYZAREBjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9902
9902
|
if (timeout) {
|
|
9903
9903
|
clearTimeout(timeout);
|
|
9904
9904
|
}
|
|
@@ -9934,7 +9934,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9934
9934
|
onRunAdmitted: confirmAdmission
|
|
9935
9935
|
});
|
|
9936
9936
|
}
|
|
9937
|
-
if (!lastKnownWorkflowId &&
|
|
9937
|
+
if (!lastKnownWorkflowId && _chunkRUYZAREBjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9938
9938
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
9939
9939
|
phase: "cli.play_start_stream_transient_failure",
|
|
9940
9940
|
ms: Date.now() - startedAt,
|
|
@@ -10033,7 +10033,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10033
10033
|
"logs"
|
|
10034
10034
|
]);
|
|
10035
10035
|
function formatPlayLogLine(rawLine, state) {
|
|
10036
|
-
const classified =
|
|
10036
|
+
const classified = _chunkRUYZAREBjs.classifyLogLine.call(void 0, rawLine);
|
|
10037
10037
|
const line = classified.line;
|
|
10038
10038
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10039
10039
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _308 => _308[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10048,14 +10048,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10048
10048
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10049
10049
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10050
10050
|
if (providerWait && !state.verbose) {
|
|
10051
|
-
return
|
|
10051
|
+
return _chunkRUYZAREBjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10052
10052
|
}
|
|
10053
10053
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10054
10054
|
if (mapProgress && !state.verbose) {
|
|
10055
|
-
return
|
|
10055
|
+
return _chunkRUYZAREBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10056
10056
|
}
|
|
10057
10057
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10058
|
-
if (!
|
|
10058
|
+
if (!_chunkRUYZAREBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10059
10059
|
return null;
|
|
10060
10060
|
}
|
|
10061
10061
|
if (state.emittedRunnerStarted) {
|
|
@@ -10068,7 +10068,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10068
10068
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10069
10069
|
);
|
|
10070
10070
|
if (mapStart) {
|
|
10071
|
-
if (!
|
|
10071
|
+
if (!_chunkRUYZAREBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10072
10072
|
return null;
|
|
10073
10073
|
}
|
|
10074
10074
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10078,7 +10078,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10078
10078
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10079
10079
|
);
|
|
10080
10080
|
if (mapDone) {
|
|
10081
|
-
if (!
|
|
10081
|
+
if (!_chunkRUYZAREBjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10082
10082
|
return null;
|
|
10083
10083
|
}
|
|
10084
10084
|
const [, results, executed, cached] = mapDone;
|
|
@@ -11367,7 +11367,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11367
11367
|
(line) => typeof line === "string"
|
|
11368
11368
|
);
|
|
11369
11369
|
if (tail.length === 0) return [];
|
|
11370
|
-
const shown = tail.map((line) =>
|
|
11370
|
+
const shown = tail.map((line) => _chunkRUYZAREBjs.classifyLogLine.call(void 0, line)).filter(
|
|
11371
11371
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11372
11372
|
).slice(-8);
|
|
11373
11373
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11647,7 +11647,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11647
11647
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _389 => _389.hits]), () => ( null));
|
|
11648
11648
|
if (jsonOutput) {
|
|
11649
11649
|
const payload2 = _optionalChain([options, 'optionalAccess', _390 => _390.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11650
|
-
|
|
11650
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
11651
11651
|
hits ? { ...payload2, hits } : payload2,
|
|
11652
11652
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _391 => _391.jsonFields]) }
|
|
11653
11653
|
);
|
|
@@ -11663,7 +11663,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11663
11663
|
...buildPlayCompletionTextLines(status),
|
|
11664
11664
|
...formatRunHitsLines(hits)
|
|
11665
11665
|
];
|
|
11666
|
-
|
|
11666
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11667
11667
|
json: false,
|
|
11668
11668
|
text: `${lines2.join("\n")}
|
|
11669
11669
|
`
|
|
@@ -11714,7 +11714,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11714
11714
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11715
11715
|
const compact = compactPlayStatus(status);
|
|
11716
11716
|
const payload = _optionalChain([options, 'optionalAccess', _393 => _393.fullJson]) ? status : compact;
|
|
11717
|
-
|
|
11717
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
11718
11718
|
{
|
|
11719
11719
|
...payload,
|
|
11720
11720
|
render: {
|
|
@@ -12486,7 +12486,7 @@ function writeStartedPlayRun(input) {
|
|
|
12486
12486
|
dashboardUrl: input.dashboardUrl,
|
|
12487
12487
|
package: input.package
|
|
12488
12488
|
};
|
|
12489
|
-
|
|
12489
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12490
12490
|
json: true,
|
|
12491
12491
|
fields: input.jsonFields
|
|
12492
12492
|
});
|
|
@@ -12508,7 +12508,7 @@ function writeStartedPlayRun(input) {
|
|
|
12508
12508
|
input.progress.writeLine(output2, process.stdout);
|
|
12509
12509
|
return;
|
|
12510
12510
|
}
|
|
12511
|
-
|
|
12511
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0, input.package, {
|
|
12512
12512
|
json: false,
|
|
12513
12513
|
text: `${output2}
|
|
12514
12514
|
`
|
|
@@ -12537,7 +12537,7 @@ function writeStartedPlayRun(input) {
|
|
|
12537
12537
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12538
12538
|
];
|
|
12539
12539
|
if (input.jsonOutput) {
|
|
12540
|
-
|
|
12540
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12541
12541
|
return;
|
|
12542
12542
|
}
|
|
12543
12543
|
if (input.dashboardUrl) {
|
|
@@ -12548,7 +12548,7 @@ function writeStartedPlayRun(input) {
|
|
|
12548
12548
|
input.progress.writeLine(output, process.stdout);
|
|
12549
12549
|
return;
|
|
12550
12550
|
}
|
|
12551
|
-
|
|
12551
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
12552
12552
|
{
|
|
12553
12553
|
...payload,
|
|
12554
12554
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12558,7 +12558,7 @@ function writeStartedPlayRun(input) {
|
|
|
12558
12558
|
);
|
|
12559
12559
|
}
|
|
12560
12560
|
function parsePlayCheckOptions(args) {
|
|
12561
|
-
const selection =
|
|
12561
|
+
const selection = _chunkVVFH745Ljs.parseJsonFields.call(void 0, args, "check");
|
|
12562
12562
|
args = selection.args;
|
|
12563
12563
|
const target = args[0];
|
|
12564
12564
|
if (!target || target.startsWith("-")) {
|
|
@@ -12570,7 +12570,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12570
12570
|
if (arg !== "--json" && arg !== "--full")
|
|
12571
12571
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12572
12572
|
}
|
|
12573
|
-
const jsonOutput =
|
|
12573
|
+
const jsonOutput = _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
|
|
12574
12574
|
return {
|
|
12575
12575
|
target,
|
|
12576
12576
|
jsonOutput,
|
|
@@ -12646,7 +12646,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12646
12646
|
useLatest,
|
|
12647
12647
|
expectedArtifactHash,
|
|
12648
12648
|
dryRun,
|
|
12649
|
-
jsonOutput:
|
|
12649
|
+
jsonOutput: _chunkVVFH745Ljs.argsWantJson.call(void 0, args)
|
|
12650
12650
|
};
|
|
12651
12651
|
}
|
|
12652
12652
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12687,7 +12687,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12687
12687
|
target,
|
|
12688
12688
|
expectedArtifactHash,
|
|
12689
12689
|
dryRun,
|
|
12690
|
-
jsonOutput:
|
|
12690
|
+
jsonOutput: _chunkVVFH745Ljs.argsWantJson.call(void 0, args)
|
|
12691
12691
|
};
|
|
12692
12692
|
}
|
|
12693
12693
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12898,7 +12898,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12898
12898
|
async function handlePlayCheck(args) {
|
|
12899
12899
|
const options = parsePlayCheckOptions(args);
|
|
12900
12900
|
if (!isFileTarget2(options.target)) {
|
|
12901
|
-
const client = new (0,
|
|
12901
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
12902
12902
|
try {
|
|
12903
12903
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12904
12904
|
command: "check"
|
|
@@ -12927,7 +12927,7 @@ async function handlePlayCheck(args) {
|
|
|
12927
12927
|
},
|
|
12928
12928
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12929
12929
|
};
|
|
12930
|
-
|
|
12930
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0, result, {
|
|
12931
12931
|
json: options.jsonOutput,
|
|
12932
12932
|
fields: options.jsonFields,
|
|
12933
12933
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12937,7 +12937,7 @@ async function handlePlayCheck(args) {
|
|
|
12937
12937
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12938
12938
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12939
12939
|
if (options.jsonOutput) {
|
|
12940
|
-
|
|
12940
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
12941
12941
|
{
|
|
12942
12942
|
kind: "play_check",
|
|
12943
12943
|
checked: "named_contract",
|
|
@@ -12979,7 +12979,7 @@ async function handlePlayCheck(args) {
|
|
|
12979
12979
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12980
12980
|
publishCommand: _optionalChain([primary, 'optionalAccess', _440 => _440.result, 'access', _441 => _441.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12981
12981
|
});
|
|
12982
|
-
|
|
12982
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0, output, {
|
|
12983
12983
|
json: options.jsonOutput,
|
|
12984
12984
|
fields: options.jsonFields,
|
|
12985
12985
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -13033,7 +13033,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13033
13033
|
}
|
|
13034
13034
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13035
13035
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13036
|
-
const client = new (0,
|
|
13036
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
13037
13037
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13038
13038
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
13039
13039
|
playName: node.playName,
|
|
@@ -13110,7 +13110,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13110
13110
|
);
|
|
13111
13111
|
return 0;
|
|
13112
13112
|
}
|
|
13113
|
-
client = new (0,
|
|
13113
|
+
client = new (0, _chunkRUYZAREBjs.DeeplineClient)(playRunClientOptions(options));
|
|
13114
13114
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
13115
13115
|
if (canDeferCompilerManifest) {
|
|
13116
13116
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -13305,7 +13305,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13305
13305
|
if (options.target.kind !== "name") {
|
|
13306
13306
|
throw new Error("Expected a named play run target.");
|
|
13307
13307
|
}
|
|
13308
|
-
const client = new (0,
|
|
13308
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)(playRunClientOptions(options));
|
|
13309
13309
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13310
13310
|
const playName = options.target.name;
|
|
13311
13311
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -13702,10 +13702,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13702
13702
|
);
|
|
13703
13703
|
return `${lines.join("\n")}
|
|
13704
13704
|
|
|
13705
|
-
${
|
|
13705
|
+
${_chunkVVFH745Ljs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13706
13706
|
}
|
|
13707
13707
|
async function handleRunGet(args) {
|
|
13708
|
-
const selection =
|
|
13708
|
+
const selection = _chunkVVFH745Ljs.parseJsonFields.call(void 0,
|
|
13709
13709
|
args,
|
|
13710
13710
|
args.includes("--config") ? "config" : "get"
|
|
13711
13711
|
);
|
|
@@ -13718,7 +13718,7 @@ async function handleRunGet(args) {
|
|
|
13718
13718
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13719
13719
|
return 1;
|
|
13720
13720
|
}
|
|
13721
|
-
const client = new (0,
|
|
13721
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
13722
13722
|
if (args.includes("--config")) {
|
|
13723
13723
|
if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
|
|
13724
13724
|
console.error(
|
|
@@ -13732,7 +13732,7 @@ async function handleRunGet(args) {
|
|
|
13732
13732
|
"This server does not support recorded configuration reads."
|
|
13733
13733
|
);
|
|
13734
13734
|
}
|
|
13735
|
-
|
|
13735
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
13736
13736
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13737
13737
|
{ json: true, fields: selection.fields }
|
|
13738
13738
|
);
|
|
@@ -13740,7 +13740,7 @@ async function handleRunGet(args) {
|
|
|
13740
13740
|
}
|
|
13741
13741
|
if (args.includes("--input")) {
|
|
13742
13742
|
const input = await client.getRunInput(runId);
|
|
13743
|
-
|
|
13743
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13744
13744
|
return 0;
|
|
13745
13745
|
}
|
|
13746
13746
|
const full = args.includes("--full");
|
|
@@ -13754,8 +13754,8 @@ async function handleRunGet(args) {
|
|
|
13754
13754
|
full: true,
|
|
13755
13755
|
failedLogs: args.includes("--log-failed")
|
|
13756
13756
|
}) : status;
|
|
13757
|
-
if (
|
|
13758
|
-
|
|
13757
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
13758
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
13759
13759
|
full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13760
13760
|
{ json: true, fields: selection.fields }
|
|
13761
13761
|
);
|
|
@@ -13771,8 +13771,8 @@ async function handleRunGet(args) {
|
|
|
13771
13771
|
readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
|
|
13772
13772
|
]);
|
|
13773
13773
|
const hitLines = formatRunHitsLines(hits);
|
|
13774
|
-
const json =
|
|
13775
|
-
|
|
13774
|
+
const json = _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
|
|
13775
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
13776
13776
|
{
|
|
13777
13777
|
...overview,
|
|
13778
13778
|
credits,
|
|
@@ -13875,9 +13875,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13875
13875
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13876
13876
|
return 1;
|
|
13877
13877
|
}
|
|
13878
|
-
const status = await new (0,
|
|
13879
|
-
if (
|
|
13880
|
-
|
|
13878
|
+
const status = await new (0, _chunkRUYZAREBjs.DeeplineClient)().runs.status(runId);
|
|
13879
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
13880
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13881
13881
|
return 0;
|
|
13882
13882
|
}
|
|
13883
13883
|
if (!status.available) {
|
|
@@ -13917,7 +13917,7 @@ async function handleRunsRerun(args) {
|
|
|
13917
13917
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13918
13918
|
return 1;
|
|
13919
13919
|
}
|
|
13920
|
-
const options = { json:
|
|
13920
|
+
const options = { json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) };
|
|
13921
13921
|
for (let index = 0; index < args.length; index += 1) {
|
|
13922
13922
|
if (args[index] === "--idempotency-key") {
|
|
13923
13923
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13982,8 +13982,8 @@ ${usage2}
|
|
|
13982
13982
|
Discover Plays: ${next.discover}
|
|
13983
13983
|
Active runs: ${next.running}`
|
|
13984
13984
|
);
|
|
13985
|
-
if (
|
|
13986
|
-
|
|
13985
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
13986
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
13987
13987
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13988
13988
|
{ json: true }
|
|
13989
13989
|
);
|
|
@@ -13998,7 +13998,7 @@ Active runs: ${next.running}`
|
|
|
13998
13998
|
console.error("--offset requires --play.");
|
|
13999
13999
|
return 1;
|
|
14000
14000
|
}
|
|
14001
|
-
const client = new (0,
|
|
14001
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
14002
14002
|
const page = await client.runs.listPage({
|
|
14003
14003
|
...playName ? { play: playName } : {},
|
|
14004
14004
|
...statusFilter ? { status: statusFilter } : {},
|
|
@@ -14067,7 +14067,7 @@ Active runs: ${next.running}`
|
|
|
14067
14067
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14068
14068
|
);
|
|
14069
14069
|
}
|
|
14070
|
-
|
|
14070
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
14071
14071
|
{
|
|
14072
14072
|
runs,
|
|
14073
14073
|
count: runs.length,
|
|
@@ -14081,7 +14081,7 @@ Active runs: ${next.running}`
|
|
|
14081
14081
|
},
|
|
14082
14082
|
render: { sections: [{ title: "runs", lines }] }
|
|
14083
14083
|
},
|
|
14084
|
-
{ json:
|
|
14084
|
+
{ json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) }
|
|
14085
14085
|
);
|
|
14086
14086
|
return 0;
|
|
14087
14087
|
}
|
|
@@ -14111,7 +14111,7 @@ async function handleRunTail(args) {
|
|
|
14111
14111
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14112
14112
|
return 1;
|
|
14113
14113
|
}
|
|
14114
|
-
const parsed =
|
|
14114
|
+
const parsed = _chunkRUYZAREBjs.parseLogLevel.call(void 0, value);
|
|
14115
14115
|
if (!parsed) {
|
|
14116
14116
|
console.error(
|
|
14117
14117
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14149,9 +14149,9 @@ async function handleRunTail(args) {
|
|
|
14149
14149
|
);
|
|
14150
14150
|
return 1;
|
|
14151
14151
|
}
|
|
14152
|
-
const client = new (0,
|
|
14152
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
14153
14153
|
const jsonLines = args.includes("--jsonl");
|
|
14154
|
-
const jsonOutput = !jsonLines &&
|
|
14154
|
+
const jsonOutput = !jsonLines && _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
|
|
14155
14155
|
const compact = args.includes("--compact");
|
|
14156
14156
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14157
14157
|
const compactState = {
|
|
@@ -14232,7 +14232,7 @@ async function handleRunLogs(args) {
|
|
|
14232
14232
|
]);
|
|
14233
14233
|
const cursorIndex = args.indexOf("--cursor");
|
|
14234
14234
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14235
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14235
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkRUYZAREBjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14236
14236
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14237
14237
|
return handleRunEventSearch(args);
|
|
14238
14238
|
}
|
|
@@ -14266,7 +14266,7 @@ async function handleRunLogs(args) {
|
|
|
14266
14266
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14267
14267
|
return 1;
|
|
14268
14268
|
}
|
|
14269
|
-
const parsed =
|
|
14269
|
+
const parsed = _chunkRUYZAREBjs.parseLogLevel.call(void 0, value);
|
|
14270
14270
|
if (!parsed) {
|
|
14271
14271
|
console.error(
|
|
14272
14272
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14313,12 +14313,12 @@ async function handleRunLogs(args) {
|
|
|
14313
14313
|
);
|
|
14314
14314
|
return 1;
|
|
14315
14315
|
}
|
|
14316
|
-
const client = new (0,
|
|
14316
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
14317
14317
|
if (outPath) {
|
|
14318
14318
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14319
|
-
const logs = result2.entries.filter((line) =>
|
|
14319
|
+
const logs = result2.entries.filter((line) => _chunkRUYZAREBjs.logLevelReaches.call(void 0, _chunkRUYZAREBjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkRUYZAREBjs.classifyLogLine.call(void 0, line).line);
|
|
14320
14320
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14321
|
-
|
|
14321
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
14322
14322
|
{
|
|
14323
14323
|
runId: result2.runId,
|
|
14324
14324
|
log_path: outPath,
|
|
@@ -14341,7 +14341,7 @@ async function handleRunLogs(args) {
|
|
|
14341
14341
|
]
|
|
14342
14342
|
}
|
|
14343
14343
|
},
|
|
14344
|
-
{ json:
|
|
14344
|
+
{ json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) }
|
|
14345
14345
|
);
|
|
14346
14346
|
return 0;
|
|
14347
14347
|
}
|
|
@@ -14372,7 +14372,7 @@ async function handleRunLogs(args) {
|
|
|
14372
14372
|
}
|
|
14373
14373
|
};
|
|
14374
14374
|
const text = buildRunLogsText(filteredResult);
|
|
14375
|
-
|
|
14375
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
14376
14376
|
{
|
|
14377
14377
|
runId: result.runId,
|
|
14378
14378
|
totalCount: result.totalCount,
|
|
@@ -14396,7 +14396,7 @@ async function handleRunLogs(args) {
|
|
|
14396
14396
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14397
14397
|
},
|
|
14398
14398
|
{
|
|
14399
|
-
json:
|
|
14399
|
+
json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args),
|
|
14400
14400
|
text
|
|
14401
14401
|
}
|
|
14402
14402
|
);
|
|
@@ -14420,7 +14420,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14420
14420
|
);
|
|
14421
14421
|
}
|
|
14422
14422
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14423
|
-
(entry) =>
|
|
14423
|
+
(entry) => _chunkRUYZAREBjs.logLevelReaches.call(void 0, _chunkRUYZAREBjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14424
14424
|
);
|
|
14425
14425
|
const selected = matching.slice(-limit);
|
|
14426
14426
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14430,7 +14430,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14430
14430
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _483 => _483.at, 'call', _484 => _484(-1), 'optionalAccess', _485 => _485.seq]), () => ( null)),
|
|
14431
14431
|
truncated: result.truncated || olderMatchesExist,
|
|
14432
14432
|
hasMore: olderMatchesExist,
|
|
14433
|
-
nextCursor: olderMatchesExist ?
|
|
14433
|
+
nextCursor: olderMatchesExist ? _chunkRUYZAREBjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14434
14434
|
};
|
|
14435
14435
|
}
|
|
14436
14436
|
async function handleRunEventSearch(args) {
|
|
@@ -14497,7 +14497,7 @@ ${usage2}`);
|
|
|
14497
14497
|
namespace,
|
|
14498
14498
|
...backend ? { backend } : {}
|
|
14499
14499
|
} : void 0;
|
|
14500
|
-
const client = new (0,
|
|
14500
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
14501
14501
|
const result = await client.runs.searchEvents({
|
|
14502
14502
|
...runId ? { runId } : {},
|
|
14503
14503
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14569,7 +14569,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14569
14569
|
"--limit",
|
|
14570
14570
|
String(limit)
|
|
14571
14571
|
].join(" ") : null;
|
|
14572
|
-
|
|
14572
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
14573
14573
|
{
|
|
14574
14574
|
events,
|
|
14575
14575
|
nextCursor: result.nextCursor,
|
|
@@ -14580,14 +14580,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14580
14580
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14581
14581
|
},
|
|
14582
14582
|
{
|
|
14583
|
-
json:
|
|
14583
|
+
json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args),
|
|
14584
14584
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14585
14585
|
}
|
|
14586
14586
|
);
|
|
14587
14587
|
return 0;
|
|
14588
14588
|
}
|
|
14589
14589
|
function buildRunLogsText(result) {
|
|
14590
|
-
const lines = result.entries.map((line) =>
|
|
14590
|
+
const lines = result.entries.map((line) => _chunkRUYZAREBjs.classifyLogLine.call(void 0, line).line);
|
|
14591
14591
|
if (result.warning) {
|
|
14592
14592
|
if (lines.length > 0) lines.push("");
|
|
14593
14593
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14621,7 +14621,7 @@ async function handleRunStop(args) {
|
|
|
14621
14621
|
reason = args[++index];
|
|
14622
14622
|
}
|
|
14623
14623
|
}
|
|
14624
|
-
const client = new (0,
|
|
14624
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
14625
14625
|
const result = await client.runs.stop(runId, { reason });
|
|
14626
14626
|
const state = resolveRunStopState(result);
|
|
14627
14627
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14636,7 +14636,7 @@ async function handleRunStop(args) {
|
|
|
14636
14636
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14637
14637
|
`inspect: deepline runs get ${runId} --full`
|
|
14638
14638
|
];
|
|
14639
|
-
|
|
14639
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
14640
14640
|
{
|
|
14641
14641
|
...cancelling,
|
|
14642
14642
|
state,
|
|
@@ -14651,7 +14651,7 @@ async function handleRunStop(args) {
|
|
|
14651
14651
|
]
|
|
14652
14652
|
}
|
|
14653
14653
|
},
|
|
14654
|
-
{ json:
|
|
14654
|
+
{ json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) }
|
|
14655
14655
|
);
|
|
14656
14656
|
return 0;
|
|
14657
14657
|
}
|
|
@@ -14668,7 +14668,7 @@ async function handleRunStop(args) {
|
|
|
14668
14668
|
];
|
|
14669
14669
|
process.stderr.write(`${lines2.join("\n")}
|
|
14670
14670
|
`);
|
|
14671
|
-
|
|
14671
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
14672
14672
|
{
|
|
14673
14673
|
...result,
|
|
14674
14674
|
render: {
|
|
@@ -14683,7 +14683,7 @@ async function handleRunStop(args) {
|
|
|
14683
14683
|
]
|
|
14684
14684
|
}
|
|
14685
14685
|
},
|
|
14686
|
-
{ json:
|
|
14686
|
+
{ json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) }
|
|
14687
14687
|
);
|
|
14688
14688
|
return 1;
|
|
14689
14689
|
}
|
|
@@ -14694,12 +14694,12 @@ async function handleRunStop(args) {
|
|
|
14694
14694
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14695
14695
|
] : []
|
|
14696
14696
|
];
|
|
14697
|
-
|
|
14697
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
14698
14698
|
{
|
|
14699
14699
|
...result,
|
|
14700
14700
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14701
14701
|
},
|
|
14702
|
-
{ json:
|
|
14702
|
+
{ json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) }
|
|
14703
14703
|
);
|
|
14704
14704
|
return 0;
|
|
14705
14705
|
}
|
|
@@ -14749,18 +14749,18 @@ async function handleRunStopAll(args) {
|
|
|
14749
14749
|
reason = args[++index];
|
|
14750
14750
|
}
|
|
14751
14751
|
}
|
|
14752
|
-
const client = new (0,
|
|
14752
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
14753
14753
|
if (dryRun) {
|
|
14754
14754
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14755
14755
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14756
|
-
|
|
14756
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
14757
14757
|
{
|
|
14758
14758
|
...result2,
|
|
14759
14759
|
render: {
|
|
14760
14760
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14761
14761
|
}
|
|
14762
14762
|
},
|
|
14763
|
-
{ json:
|
|
14763
|
+
{ json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14764
14764
|
` }
|
|
14765
14765
|
);
|
|
14766
14766
|
return 0;
|
|
@@ -14773,17 +14773,17 @@ async function handleRunStopAll(args) {
|
|
|
14773
14773
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14774
14774
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14775
14775
|
];
|
|
14776
|
-
|
|
14776
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
14777
14777
|
{
|
|
14778
14778
|
...result,
|
|
14779
14779
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14780
14780
|
},
|
|
14781
|
-
{ json:
|
|
14781
|
+
{ json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args) }
|
|
14782
14782
|
);
|
|
14783
14783
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14784
14784
|
}
|
|
14785
14785
|
async function handleRunExport(args) {
|
|
14786
|
-
const selection =
|
|
14786
|
+
const selection = _chunkVVFH745Ljs.parseJsonFields.call(void 0, args, "export");
|
|
14787
14787
|
args = selection.args;
|
|
14788
14788
|
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]";
|
|
14789
14789
|
let runId;
|
|
@@ -14842,16 +14842,16 @@ async function handleRunExport(args) {
|
|
|
14842
14842
|
"INVALID_ARGUMENT"
|
|
14843
14843
|
);
|
|
14844
14844
|
}
|
|
14845
|
-
const client = new (0,
|
|
14845
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
14846
14846
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14847
14847
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14848
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
14848
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkVVFH745Ljs.argsWantJson.call(void 0, args));
|
|
14849
14849
|
try {
|
|
14850
14850
|
await waitForPlayCompletionByWatch({
|
|
14851
14851
|
client,
|
|
14852
14852
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14853
14853
|
workflowId: runId,
|
|
14854
|
-
jsonOutput:
|
|
14854
|
+
jsonOutput: _chunkVVFH745Ljs.argsWantJson.call(void 0, args),
|
|
14855
14855
|
emitLogs: false,
|
|
14856
14856
|
waitTimeoutMs,
|
|
14857
14857
|
startedAt: Date.now(),
|
|
@@ -14951,8 +14951,8 @@ async function handleRunExport(args) {
|
|
|
14951
14951
|
"utf-8"
|
|
14952
14952
|
);
|
|
14953
14953
|
}
|
|
14954
|
-
|
|
14955
|
-
json:
|
|
14954
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0, payload, {
|
|
14955
|
+
json: _chunkVVFH745Ljs.argsWantJson.call(void 0, args),
|
|
14956
14956
|
fields: selection.fields,
|
|
14957
14957
|
text: `${lines.join("\n")}
|
|
14958
14958
|
`
|
|
@@ -14973,10 +14973,10 @@ async function handlePlayGet(args) {
|
|
|
14973
14973
|
);
|
|
14974
14974
|
return 2;
|
|
14975
14975
|
}
|
|
14976
|
-
const client = new (0,
|
|
14976
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
14977
14977
|
const explicitJson = args.includes("--json");
|
|
14978
14978
|
const sourceOutput = args.includes("--source");
|
|
14979
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14979
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
|
|
14980
14980
|
const requestedRevisionFlags = [
|
|
14981
14981
|
args.includes("--working"),
|
|
14982
14982
|
args.includes("--live"),
|
|
@@ -15036,7 +15036,7 @@ async function handlePlayGet(args) {
|
|
|
15036
15036
|
}
|
|
15037
15037
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15038
15038
|
if (jsonOutput) {
|
|
15039
|
-
|
|
15039
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, {
|
|
15040
15040
|
...detail,
|
|
15041
15041
|
...materializedFile ? {
|
|
15042
15042
|
message: loadedMessage,
|
|
@@ -15128,8 +15128,8 @@ async function handlePlayVersions(args) {
|
|
|
15128
15128
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15129
15129
|
return 1;
|
|
15130
15130
|
}
|
|
15131
|
-
const client = new (0,
|
|
15132
|
-
const jsonOutput =
|
|
15131
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
15132
|
+
const jsonOutput = _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
|
|
15133
15133
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15134
15134
|
command: "versions"
|
|
15135
15135
|
});
|
|
@@ -15137,7 +15137,7 @@ async function handlePlayVersions(args) {
|
|
|
15137
15137
|
parseReferencedPlayTarget2(playName).playName
|
|
15138
15138
|
);
|
|
15139
15139
|
if (jsonOutput) {
|
|
15140
|
-
|
|
15140
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, { versions });
|
|
15141
15141
|
return 0;
|
|
15142
15142
|
}
|
|
15143
15143
|
if (versions.length === 0) {
|
|
@@ -15169,9 +15169,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
15169
15169
|
"signals"
|
|
15170
15170
|
];
|
|
15171
15171
|
async function handlePlayList(args) {
|
|
15172
|
-
const jsonOutput =
|
|
15172
|
+
const jsonOutput = _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
|
|
15173
15173
|
const showCost = args.includes("--show-cost");
|
|
15174
|
-
const client = new (0,
|
|
15174
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
15175
15175
|
const categoriesIndex = args.indexOf("--categories");
|
|
15176
15176
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _521 => _521[categoriesIndex + 1], 'optionalAccess', _522 => _522.trim, 'call', _523 => _523()]) : void 0;
|
|
15177
15177
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15268,7 +15268,7 @@ async function handlePlayList(args) {
|
|
|
15268
15268
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15269
15269
|
lines.push(`Next page: ${nextPage}`);
|
|
15270
15270
|
}
|
|
15271
|
-
|
|
15271
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
15272
15272
|
{
|
|
15273
15273
|
plays,
|
|
15274
15274
|
count: plays.length,
|
|
@@ -15286,7 +15286,7 @@ async function handlePlayList(args) {
|
|
|
15286
15286
|
}
|
|
15287
15287
|
async function handlePlayPin(args, pinned) {
|
|
15288
15288
|
const target = _optionalChain([args, 'access', _530 => _530.find, 'call', _531 => _531((arg) => !arg.startsWith("-")), 'optionalAccess', _532 => _532.trim, 'call', _533 => _533()]);
|
|
15289
|
-
const jsonOutput =
|
|
15289
|
+
const jsonOutput = _chunkVVFH745Ljs.argsWantJson.call(void 0, args);
|
|
15290
15290
|
const dryRun = args.includes("--dry-run");
|
|
15291
15291
|
if (!target) {
|
|
15292
15292
|
console.error(
|
|
@@ -15304,11 +15304,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15304
15304
|
const name = parsedTarget.playName;
|
|
15305
15305
|
const plan = { name, pinned, dryRun };
|
|
15306
15306
|
if (dryRun) {
|
|
15307
|
-
|
|
15307
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, plan);
|
|
15308
15308
|
return 0;
|
|
15309
15309
|
}
|
|
15310
|
-
const result = await new (0,
|
|
15311
|
-
if (jsonOutput)
|
|
15310
|
+
const result = await new (0, _chunkRUYZAREBjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15311
|
+
if (jsonOutput) _chunkVVFH745Ljs.printCompactJson.call(void 0, result);
|
|
15312
15312
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15313
15313
|
return 0;
|
|
15314
15314
|
}
|
|
@@ -15324,7 +15324,7 @@ function csvColumnLines(csvInput) {
|
|
|
15324
15324
|
const headers = [defaults[column]].flat().filter((header) => header && header !== column);
|
|
15325
15325
|
return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
|
|
15326
15326
|
}),
|
|
15327
|
-
|
|
15327
|
+
_chunkRUYZAREBjs.CSV_HEADER_MATCHING_NOTE
|
|
15328
15328
|
];
|
|
15329
15329
|
}
|
|
15330
15330
|
function describedPlay(play) {
|
|
@@ -15471,12 +15471,12 @@ async function handlePlayGrep(args) {
|
|
|
15471
15471
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15472
15472
|
return 1;
|
|
15473
15473
|
}
|
|
15474
|
-
const client = new (0,
|
|
15474
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
15475
15475
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15476
15476
|
summarizePlayGrepResult
|
|
15477
15477
|
);
|
|
15478
|
-
if (
|
|
15479
|
-
|
|
15478
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
15479
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, {
|
|
15480
15480
|
plays: results,
|
|
15481
15481
|
count: results.length,
|
|
15482
15482
|
query,
|
|
@@ -15499,7 +15499,7 @@ async function handlePlayGrep(args) {
|
|
|
15499
15499
|
return 0;
|
|
15500
15500
|
}
|
|
15501
15501
|
async function handlePlayDescribe(args) {
|
|
15502
|
-
const selection =
|
|
15502
|
+
const selection = _chunkVVFH745Ljs.parseJsonFields.call(void 0, args, "describe");
|
|
15503
15503
|
args = selection.args;
|
|
15504
15504
|
const playName = args[0];
|
|
15505
15505
|
if (!playName) {
|
|
@@ -15533,8 +15533,8 @@ async function handlePlayDescribe(args) {
|
|
|
15533
15533
|
`deepline plays check ${playName}`,
|
|
15534
15534
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15535
15535
|
];
|
|
15536
|
-
if (
|
|
15537
|
-
|
|
15536
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
15537
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, {
|
|
15538
15538
|
ok: false,
|
|
15539
15539
|
error: { message },
|
|
15540
15540
|
next
|
|
@@ -15548,7 +15548,7 @@ async function handlePlayDescribe(args) {
|
|
|
15548
15548
|
}
|
|
15549
15549
|
return 2;
|
|
15550
15550
|
}
|
|
15551
|
-
const client = new (0,
|
|
15551
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
15552
15552
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15553
15553
|
command: "describe"
|
|
15554
15554
|
});
|
|
@@ -15558,9 +15558,9 @@ async function handlePlayDescribe(args) {
|
|
|
15558
15558
|
compact: args.includes("--compact")
|
|
15559
15559
|
}
|
|
15560
15560
|
);
|
|
15561
|
-
if (
|
|
15562
|
-
if (selection.fields)
|
|
15563
|
-
else
|
|
15561
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
15562
|
+
if (selection.fields) _chunkVVFH745Ljs.printJson.call(void 0, play, selection.fields);
|
|
15563
|
+
else _chunkVVFH745Ljs.printCompactJson.call(void 0, play);
|
|
15564
15564
|
return 0;
|
|
15565
15565
|
}
|
|
15566
15566
|
printPlayDescription(play);
|
|
@@ -15604,7 +15604,7 @@ async function handlePlaySave(args) {
|
|
|
15604
15604
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15605
15605
|
};
|
|
15606
15606
|
if (options.jsonOutput) {
|
|
15607
|
-
|
|
15607
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, result);
|
|
15608
15608
|
} else {
|
|
15609
15609
|
console.error(result.message);
|
|
15610
15610
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15626,7 +15626,7 @@ async function handlePlaySave(args) {
|
|
|
15626
15626
|
};
|
|
15627
15627
|
if (options.dryRun) {
|
|
15628
15628
|
if (options.jsonOutput) {
|
|
15629
|
-
|
|
15629
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, dryRun);
|
|
15630
15630
|
} else {
|
|
15631
15631
|
console.log(`Dry run: ${playName}`);
|
|
15632
15632
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15635,7 +15635,7 @@ async function handlePlaySave(args) {
|
|
|
15635
15635
|
}
|
|
15636
15636
|
return 0;
|
|
15637
15637
|
}
|
|
15638
|
-
const client = new (0,
|
|
15638
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
15639
15639
|
try {
|
|
15640
15640
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
15641
15641
|
"cli.play_save_compile_manifests",
|
|
@@ -15671,7 +15671,7 @@ async function handlePlaySave(args) {
|
|
|
15671
15671
|
}
|
|
15672
15672
|
};
|
|
15673
15673
|
if (options.jsonOutput) {
|
|
15674
|
-
|
|
15674
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, result);
|
|
15675
15675
|
} else {
|
|
15676
15676
|
console.log(
|
|
15677
15677
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15697,7 +15697,7 @@ async function handlePlayPublish(args) {
|
|
|
15697
15697
|
}
|
|
15698
15698
|
const { target: playName, useLatest } = options;
|
|
15699
15699
|
let revisionId = options.revisionId;
|
|
15700
|
-
const client = new (0,
|
|
15700
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
15701
15701
|
if (isFileTarget2(playName)) {
|
|
15702
15702
|
if (revisionId || useLatest) {
|
|
15703
15703
|
console.error(
|
|
@@ -15729,7 +15729,7 @@ async function handlePlayPublish(args) {
|
|
|
15729
15729
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15730
15730
|
};
|
|
15731
15731
|
if (options.jsonOutput) {
|
|
15732
|
-
|
|
15732
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, result3);
|
|
15733
15733
|
} else {
|
|
15734
15734
|
console.error(result3.message);
|
|
15735
15735
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15752,7 +15752,7 @@ async function handlePlayPublish(args) {
|
|
|
15752
15752
|
};
|
|
15753
15753
|
if (options.dryRun) {
|
|
15754
15754
|
if (options.jsonOutput) {
|
|
15755
|
-
|
|
15755
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, dryRun);
|
|
15756
15756
|
} else {
|
|
15757
15757
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15758
15758
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15820,7 +15820,7 @@ async function handlePlayPublish(args) {
|
|
|
15820
15820
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15821
15821
|
};
|
|
15822
15822
|
if (options.jsonOutput) {
|
|
15823
|
-
|
|
15823
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, result2);
|
|
15824
15824
|
} else {
|
|
15825
15825
|
printPublishReceipt({
|
|
15826
15826
|
name: rootPlayName,
|
|
@@ -15851,7 +15851,7 @@ async function handlePlayPublish(args) {
|
|
|
15851
15851
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15852
15852
|
latest: useLatest
|
|
15853
15853
|
};
|
|
15854
|
-
|
|
15854
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, result2);
|
|
15855
15855
|
return 0;
|
|
15856
15856
|
}
|
|
15857
15857
|
const resolvedName = parseReferencedPlayTarget2(playName).playName;
|
|
@@ -15875,7 +15875,7 @@ async function handlePlayPublish(args) {
|
|
|
15875
15875
|
revisionId ? { revisionId } : {}
|
|
15876
15876
|
);
|
|
15877
15877
|
if (options.jsonOutput) {
|
|
15878
|
-
|
|
15878
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, result);
|
|
15879
15879
|
} else {
|
|
15880
15880
|
printPublishReceipt({
|
|
15881
15881
|
name: result.name,
|
|
@@ -15915,7 +15915,7 @@ async function handlePlayDelete(args) {
|
|
|
15915
15915
|
);
|
|
15916
15916
|
return 2;
|
|
15917
15917
|
}
|
|
15918
|
-
const client = new (0,
|
|
15918
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
15919
15919
|
let detail;
|
|
15920
15920
|
try {
|
|
15921
15921
|
detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
|
|
@@ -15939,8 +15939,8 @@ async function handlePlayDelete(args) {
|
|
|
15939
15939
|
name: resolvedName,
|
|
15940
15940
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15941
15941
|
};
|
|
15942
|
-
if (
|
|
15943
|
-
|
|
15942
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
15943
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, result2);
|
|
15944
15944
|
} else {
|
|
15945
15945
|
process.stdout.write(
|
|
15946
15946
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15950,8 +15950,8 @@ async function handlePlayDelete(args) {
|
|
|
15950
15950
|
return 0;
|
|
15951
15951
|
}
|
|
15952
15952
|
const result = await client.deletePlay(resolvedName);
|
|
15953
|
-
if (
|
|
15954
|
-
|
|
15953
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
15954
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, result);
|
|
15955
15955
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15956
15956
|
}
|
|
15957
15957
|
if (result.alreadyArchived) {
|
|
@@ -15990,13 +15990,13 @@ async function handlePlayRestore(args) {
|
|
|
15990
15990
|
);
|
|
15991
15991
|
return 2;
|
|
15992
15992
|
}
|
|
15993
|
-
const client = new (0,
|
|
15993
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
15994
15994
|
try {
|
|
15995
15995
|
const result = await client.restorePlay(
|
|
15996
15996
|
parseReferencedPlayTarget2(playName).playName
|
|
15997
15997
|
);
|
|
15998
|
-
if (
|
|
15999
|
-
|
|
15998
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
15999
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, result);
|
|
16000
16000
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16001
16001
|
}
|
|
16002
16002
|
if (result.alreadyActive) {
|
|
@@ -16102,7 +16102,7 @@ Examples:
|
|
|
16102
16102
|
).action(async (target, options) => {
|
|
16103
16103
|
process.exitCode = await handlePlayCheck([
|
|
16104
16104
|
target,
|
|
16105
|
-
...
|
|
16105
|
+
..._chunkVVFH745Ljs.jsonFieldArgs.call(void 0, options.json),
|
|
16106
16106
|
...options.full ? ["--full"] : []
|
|
16107
16107
|
]);
|
|
16108
16108
|
});
|
|
@@ -16329,9 +16329,9 @@ Examples:
|
|
|
16329
16329
|
const limit = Number(options.historyLimit);
|
|
16330
16330
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16331
16331
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16332
|
-
const client = new (0,
|
|
16332
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
16333
16333
|
if (options.binding) {
|
|
16334
|
-
|
|
16334
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0,
|
|
16335
16335
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16336
16336
|
);
|
|
16337
16337
|
return;
|
|
@@ -16339,7 +16339,7 @@ Examples:
|
|
|
16339
16339
|
const result = await client.listPlayTriggerInventory({
|
|
16340
16340
|
cursor: options.cursor
|
|
16341
16341
|
});
|
|
16342
|
-
|
|
16342
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, {
|
|
16343
16343
|
...result,
|
|
16344
16344
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16345
16345
|
});
|
|
@@ -16386,7 +16386,7 @@ Examples:
|
|
|
16386
16386
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16387
16387
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16388
16388
|
}
|
|
16389
|
-
const result = await new (0,
|
|
16389
|
+
const result = await new (0, _chunkRUYZAREBjs.DeeplineClient)().getPlaysActivity({
|
|
16390
16390
|
timeZone: options.timeZone,
|
|
16391
16391
|
days,
|
|
16392
16392
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16400,7 +16400,7 @@ Examples:
|
|
|
16400
16400
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16401
16401
|
);
|
|
16402
16402
|
}
|
|
16403
|
-
|
|
16403
|
+
_chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
|
|
16404
16404
|
{ ...result },
|
|
16405
16405
|
{
|
|
16406
16406
|
json: Boolean(options.json),
|
|
@@ -16429,7 +16429,7 @@ Examples:
|
|
|
16429
16429
|
false
|
|
16430
16430
|
);
|
|
16431
16431
|
});
|
|
16432
|
-
|
|
16432
|
+
_chunkN5TPMNTTjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16433
16433
|
play,
|
|
16434
16434
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16435
16435
|
);
|
|
@@ -16472,7 +16472,7 @@ Examples:
|
|
|
16472
16472
|
);
|
|
16473
16473
|
_chunk2JRRXXTAjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16474
16474
|
async (target, options) => {
|
|
16475
|
-
const ownView = () => handlePlayDescribe(
|
|
16475
|
+
const ownView = () => handlePlayDescribe(_chunkVVFH745Ljs.describeArgs.call(void 0, target, options));
|
|
16476
16476
|
const [flagText] = [options.json].filter(
|
|
16477
16477
|
(value) => typeof value === "string"
|
|
16478
16478
|
);
|
|
@@ -16483,7 +16483,7 @@ Examples:
|
|
|
16483
16483
|
process.exitCode = await ownView();
|
|
16484
16484
|
return;
|
|
16485
16485
|
}
|
|
16486
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16486
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-RRBESS3S.js")));
|
|
16487
16487
|
process.exitCode = await describeAnything(
|
|
16488
16488
|
name,
|
|
16489
16489
|
{
|
|
@@ -16600,7 +16600,7 @@ Examples:
|
|
|
16600
16600
|
deepline plays deployments <deployment-id>
|
|
16601
16601
|
`
|
|
16602
16602
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16603
|
-
async (id, options) => id ?
|
|
16603
|
+
async (id, options) => id ? _chunkGZQKUFM5js.handleDeploymentGet.call(void 0, id, options) : _chunkGZQKUFM5js.handleDeploymentsList.call(void 0, options)
|
|
16604
16604
|
);
|
|
16605
16605
|
addPublishHelp(
|
|
16606
16606
|
play.command("publish <target>").description(
|
|
@@ -16779,7 +16779,7 @@ Examples:
|
|
|
16779
16779
|
).action(async (runId, options) => {
|
|
16780
16780
|
process.exitCode = await handleRunGet([
|
|
16781
16781
|
runId,
|
|
16782
|
-
...
|
|
16782
|
+
..._chunkVVFH745Ljs.jsonFieldArgs.call(void 0, options.json),
|
|
16783
16783
|
...options.full ? ["--full"] : [],
|
|
16784
16784
|
...options.input ? ["--input"] : [],
|
|
16785
16785
|
...options.config ? ["--config"] : [],
|
|
@@ -17054,7 +17054,7 @@ Examples:
|
|
|
17054
17054
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17055
17055
|
...options.wait ? ["--wait"] : [],
|
|
17056
17056
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17057
|
-
...
|
|
17057
|
+
..._chunkVVFH745Ljs.jsonFieldArgs.call(void 0, options.json)
|
|
17058
17058
|
]);
|
|
17059
17059
|
});
|
|
17060
17060
|
const share = play.command("share").description(
|
|
@@ -17220,10 +17220,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17220
17220
|
return 2;
|
|
17221
17221
|
}
|
|
17222
17222
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17223
|
-
const status = await new (0,
|
|
17223
|
+
const status = await new (0, _chunkRUYZAREBjs.DeeplineClient)().getSharePage(name);
|
|
17224
17224
|
const outputStatus = shareStatusForOutput(status);
|
|
17225
|
-
if (
|
|
17226
|
-
|
|
17225
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
17226
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, outputStatus);
|
|
17227
17227
|
return 0;
|
|
17228
17228
|
}
|
|
17229
17229
|
if (!outputStatus.share) {
|
|
@@ -17262,7 +17262,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17262
17262
|
return 2;
|
|
17263
17263
|
}
|
|
17264
17264
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17265
|
-
const client = new (0,
|
|
17265
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
17266
17266
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17267
17267
|
let resolvedVersion;
|
|
17268
17268
|
if (!revisionId) {
|
|
@@ -17293,8 +17293,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17293
17293
|
);
|
|
17294
17294
|
if (!hasCompleted) {
|
|
17295
17295
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17296
|
-
if (
|
|
17297
|
-
|
|
17296
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
17297
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, {
|
|
17298
17298
|
ok: false,
|
|
17299
17299
|
code: "NO_SUCCESSFUL_RUN",
|
|
17300
17300
|
message,
|
|
@@ -17318,8 +17318,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17318
17318
|
};
|
|
17319
17319
|
if (args.includes("--dry-run")) {
|
|
17320
17320
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17321
|
-
if (
|
|
17322
|
-
|
|
17321
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
17322
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, plan);
|
|
17323
17323
|
} else {
|
|
17324
17324
|
console.log(
|
|
17325
17325
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17329,8 +17329,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17329
17329
|
}
|
|
17330
17330
|
const status = await client.publishSharePage(name, request);
|
|
17331
17331
|
const outputStatus = shareStatusForOutput(status);
|
|
17332
|
-
if (
|
|
17333
|
-
|
|
17332
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
17333
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, outputStatus);
|
|
17334
17334
|
return 0;
|
|
17335
17335
|
}
|
|
17336
17336
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17361,9 +17361,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17361
17361
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17362
17362
|
...seoIndexing ? { seoIndexing } : {}
|
|
17363
17363
|
};
|
|
17364
|
-
const status = await new (0,
|
|
17365
|
-
if (
|
|
17366
|
-
|
|
17364
|
+
const status = await new (0, _chunkRUYZAREBjs.DeeplineClient)().updateSharePage(name, request);
|
|
17365
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
17366
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, status);
|
|
17367
17367
|
return 0;
|
|
17368
17368
|
}
|
|
17369
17369
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17378,7 +17378,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17378
17378
|
return 2;
|
|
17379
17379
|
}
|
|
17380
17380
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17381
|
-
const client = new (0,
|
|
17381
|
+
const client = new (0, _chunkRUYZAREBjs.DeeplineClient)();
|
|
17382
17382
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17383
17383
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17384
17384
|
if (!revisionId && versionFlag) {
|
|
@@ -17395,8 +17395,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17395
17395
|
revisionId ? { revisionId } : {}
|
|
17396
17396
|
);
|
|
17397
17397
|
const outputStatus = shareStatusForOutput(status);
|
|
17398
|
-
if (
|
|
17399
|
-
|
|
17398
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
17399
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, outputStatus);
|
|
17400
17400
|
return 0;
|
|
17401
17401
|
}
|
|
17402
17402
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17421,9 +17421,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17421
17421
|
return 2;
|
|
17422
17422
|
}
|
|
17423
17423
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17424
|
-
const status = await new (0,
|
|
17425
|
-
if (
|
|
17426
|
-
|
|
17424
|
+
const status = await new (0, _chunkRUYZAREBjs.DeeplineClient)().unpublishSharePage(name);
|
|
17425
|
+
if (_chunkVVFH745Ljs.argsWantJson.call(void 0, args)) {
|
|
17426
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, status);
|
|
17427
17427
|
return 0;
|
|
17428
17428
|
}
|
|
17429
17429
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|