deepline 0.3.326 → 0.3.328
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/projection.ts +11 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +14 -1
- package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +4 -0
- package/dist/cli/{auth-VON5FFUK.mjs → auth-ANHHABWT.mjs} +4 -4
- package/dist/cli/auth-EKRB4GMP.js +31 -0
- package/dist/cli/{billing-YI4RZI2O.js → billing-GGVKLFE6.js} +96 -82
- package/dist/cli/{billing-X6JUEFRE.mjs → billing-R6NYYO6G.mjs} +30 -16
- package/dist/cli/{chunk-TZQMFWLF.js → chunk-2FPVWL4W.js} +47 -47
- package/dist/cli/{chunk-VKXGOQG5.mjs → chunk-6ENR652E.mjs} +6 -6
- package/dist/cli/{chunk-3NGWGFVL.js → chunk-7DDNACAQ.js} +26 -26
- package/dist/cli/{chunk-VGKVLADU.mjs → chunk-7MABE3ZK.mjs} +3 -3
- package/dist/cli/{chunk-KLWBAQ5A.mjs → chunk-7R6KQSFA.mjs} +1 -1
- package/dist/cli/{chunk-4AB4Y6FF.mjs → chunk-AKKQ26RX.mjs} +1 -1
- package/dist/cli/{chunk-M7CPVMDB.mjs → chunk-B2R66UTW.mjs} +1 -1
- package/dist/cli/{chunk-MOBZS4F3.mjs → chunk-BC7FMQ2G.mjs} +1 -1
- package/dist/cli/{chunk-CUUHQ3AO.js → chunk-DNMV2L7Q.js} +6 -6
- package/dist/cli/{chunk-MKHSZA2X.js → chunk-DNYRAZSK.js} +48 -48
- package/dist/cli/{chunk-DFDXKOLR.mjs → chunk-GZV5F6CL.mjs} +5 -5
- package/dist/cli/{chunk-GVYKY6T6.js → chunk-ITFUZEHE.js} +9 -9
- package/dist/cli/{chunk-5NXHSRRE.js → chunk-LEEXRXQQ.js} +6 -6
- package/dist/cli/{chunk-KZ4PCK4O.js → chunk-LJWC5HSO.js} +15 -15
- package/dist/cli/{chunk-TXVOB5J2.js → chunk-O5GPNPOC.js} +4 -4
- package/dist/cli/{chunk-W74E5ETE.mjs → chunk-OOLIEDIJ.mjs} +2 -2
- package/dist/cli/{chunk-ZRN6YOF2.mjs → chunk-SMGNDW7O.mjs} +2 -2
- package/dist/cli/{chunk-T33W6JUJ.js → chunk-UDIPEHNJ.js} +6 -6
- package/dist/cli/{chunk-TDSNAC3C.mjs → chunk-UM4ZE3P7.mjs} +2 -2
- package/dist/cli/{chunk-4LNBSQM4.js → chunk-W6WV6UME.js} +224 -224
- package/dist/cli/{chunk-BR7GGTAE.mjs → chunk-WWVE4HFN.mjs} +1 -1
- package/dist/cli/{chunk-MDQZQ3NY.js → chunk-XVKQ6D4K.js} +2 -2
- package/dist/cli/{chunk-BUYZEUY4.js → chunk-Y4LXIUHX.js} +1 -1
- package/dist/cli/{chunk-BQJVMKWL.mjs → chunk-YFCHBN3C.mjs} +1 -1
- package/dist/cli/{chunk-EMZ7Y5SW.js → chunk-ZFKUVDOM.js} +60 -60
- package/dist/cli/{chunk-IQCCGOQH.mjs → chunk-ZND34HL7.mjs} +4 -4
- package/dist/cli/client-55BDB4LE.js +20 -0
- package/dist/cli/{client-ZMOKUNL2.mjs → client-ZABA5NMD.mjs} +3 -3
- package/dist/cli/{csv-HZRKEI7J.js → csv-4ZK5ZJAJ.js} +12 -12
- package/dist/cli/{csv-IICJHJZ4.mjs → csv-VECE3PWX.mjs} +3 -3
- package/dist/cli/{db-X4B7YFNY.mjs → db-6VE4OEWW.mjs} +4 -4
- package/dist/cli/{db-TM5NZF73.js → db-UJPCDBV7.js} +29 -29
- package/dist/cli/{describe-BDBARWZJ.js → describe-CFUZZ326.js} +15 -15
- package/dist/cli/{describe-GMVS3LFC.mjs → describe-W6X5G4JR.mjs} +8 -8
- package/dist/cli/{executions-QX25UOQM.js → executions-AI4DTQQL.js} +6 -6
- package/dist/cli/{executions-447ZJMN4.mjs → executions-ZZWB75DF.mjs} +4 -4
- package/dist/cli/{feedback-4IXUTBX7.js → feedback-FYSNSYUU.js} +6 -6
- package/dist/cli/{feedback-JB7HHIC6.mjs → feedback-IM5Z6T5K.mjs} +3 -3
- package/dist/cli/git-VWXH6LCP.js +23 -0
- package/dist/cli/{git-VID6KGAA.mjs → git-YNYTK3YW.mjs} +4 -4
- package/dist/cli/index.js +95 -80
- package/dist/cli/index.mjs +54 -39
- package/dist/cli/{legacy-noops-SGR3G5WS.mjs → legacy-noops-4DTMYYUY.mjs} +4 -4
- package/dist/cli/{legacy-noops-3FYTCOZO.js → legacy-noops-PHJE2XFK.js} +7 -7
- package/dist/cli/{monitors-SP52UHS4.js → monitors-27JP76WE.js} +85 -85
- package/dist/cli/{monitors-SH4FOMBM.mjs → monitors-HUP4MVWJ.mjs} +4 -4
- package/dist/cli/{org-B32MMIQT.mjs → org-L3B2RR4U.mjs} +4 -4
- package/dist/cli/{org-UQMX7JOR.js → org-RHVDMUKN.js} +60 -60
- package/dist/cli/play-UKH4VFPF.js +153 -0
- package/dist/cli/{play-XTE4LUP7.mjs → play-UXIJVYNF.mjs} +7 -7
- package/dist/cli/{providers-RWLN6FUR.mjs → providers-FABWTNKR.mjs} +4 -4
- package/dist/cli/{providers-JNMJJ2OH.js → providers-VL6VY56M.js} +7 -7
- package/dist/cli/{quickstart-HK6WZ342.js → quickstart-IIPZ6DSY.js} +5 -5
- package/dist/cli/{quickstart-IDB3Y375.mjs → quickstart-OA54A4IE.mjs} +3 -3
- package/dist/cli/search-JD2VTR4A.js +26 -0
- package/dist/cli/{search-6D3IFNPT.mjs → search-YDK4V2EW.mjs} +5 -5
- package/dist/cli/{secrets-TZ53CQ3D.mjs → secrets-4MQF6RF6.mjs} +4 -4
- package/dist/cli/{secrets-JOQB57IE.js → secrets-JGU7ZRUW.js} +13 -13
- package/dist/cli/{sessions-QSAICDXX.js → sessions-I7ZZYSYW.js} +5 -5
- package/dist/cli/{sessions-4MBDC4EK.mjs → sessions-PTHOMSZ5.mjs} +4 -4
- package/dist/cli/{settings-RKQFMLDU.mjs → settings-X4ENSGNK.mjs} +7 -7
- package/dist/cli/{settings-OTOCW7L7.js → settings-ZUUBKIG6.js} +74 -74
- package/dist/cli/{setup-2S5TNTUB.mjs → setup-4UM6FCZL.mjs} +6 -6
- package/dist/cli/{setup-AKZUDVYY.js → setup-6L576TQE.js} +41 -41
- package/dist/cli/skills-TLPNCERR.js +28 -0
- package/dist/cli/{skills-AGZXDLSA.mjs → skills-U3BS5KUI.mjs} +4 -4
- package/dist/cli/tools-26JTFFU4.js +39 -0
- package/dist/cli/{tools-7Y6RD6FY.mjs → tools-O4PX6UVB.mjs} +6 -6
- package/dist/cli/update-35RRCU2G.js +28 -0
- package/dist/cli/{update-M7YGF67I.mjs → update-OHWSK2WN.mjs} +6 -6
- package/dist/cli/{workflow-NGMY425T.js → workflow-QWTZBLT3.js} +15 -15
- package/dist/cli/{workflow-CTVE7S7W.mjs → workflow-RVMGBMLX.mjs} +5 -5
- package/dist/index.js +57 -47
- package/dist/index.mjs +14 -4
- package/dist/install-integrity.json +74 -74
- 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-6STWK6UK.js +0 -31
- package/dist/cli/client-TEBW2P24.js +0 -20
- package/dist/cli/git-C7C7DTEH.js +0 -23
- package/dist/cli/play-UCIWBN7U.js +0 -153
- package/dist/cli/search-LUZ2S7DH.js +0 -26
- package/dist/cli/skills-26LASHZF.js +0 -28
- package/dist/cli/tools-L5VIJQWX.js +0 -39
- package/dist/cli/update-MNHF6M2F.js +0 -28
|
@@ -10,11 +10,11 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
10
10
|
var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkUDIPEHNJjs = require('./chunk-UDIPEHNJ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk7DDNACAQjs = require('./chunk-7DDNACAQ.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -39,7 +39,7 @@ var _chunkLVEDPCLJjs = require('./chunk-LVEDPCLJ.js');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkITFUZEHEjs = require('./chunk-ITFUZEHE.js');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
@@ -71,10 +71,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunkDNMV2L7Qjs = require('./chunk-DNMV2L7Q.js');
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkO5GPNPOCjs = require('./chunk-O5GPNPOC.js');
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
@@ -2066,7 +2066,7 @@ function resolveField(key, command) {
|
|
|
2066
2066
|
function printSettings(result, json, name) {
|
|
2067
2067
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2068
2068
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2069
|
-
|
|
2069
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
2070
2070
|
{
|
|
2071
2071
|
...result,
|
|
2072
2072
|
settings: Object.fromEntries(
|
|
@@ -2110,7 +2110,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2110
2110
|
valueSyntax: field.cli.valueSyntax,
|
|
2111
2111
|
examples: field.cli.examples
|
|
2112
2112
|
}));
|
|
2113
|
-
|
|
2113
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
2114
2114
|
{
|
|
2115
2115
|
fields: descriptions,
|
|
2116
2116
|
render: {
|
|
@@ -2135,7 +2135,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2135
2135
|
async (options, command) => {
|
|
2136
2136
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2137
2137
|
printSettings(
|
|
2138
|
-
await new (0,
|
|
2138
|
+
await new (0, _chunkITFUZEHEjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2139
2139
|
options.json,
|
|
2140
2140
|
options.name
|
|
2141
2141
|
);
|
|
@@ -2166,7 +2166,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2166
2166
|
);
|
|
2167
2167
|
}
|
|
2168
2168
|
if (options.dryRun) {
|
|
2169
|
-
|
|
2169
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
2170
2170
|
{
|
|
2171
2171
|
dryRun: true,
|
|
2172
2172
|
play,
|
|
@@ -2187,7 +2187,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2187
2187
|
return;
|
|
2188
2188
|
}
|
|
2189
2189
|
printSettings(
|
|
2190
|
-
await new (0,
|
|
2190
|
+
await new (0, _chunkITFUZEHEjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2191
2191
|
options.json
|
|
2192
2192
|
);
|
|
2193
2193
|
};
|
|
@@ -2213,13 +2213,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2213
2213
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2214
2214
|
{ exitCode: 2 }
|
|
2215
2215
|
);
|
|
2216
|
-
const page = await new (0,
|
|
2216
|
+
const page = await new (0, _chunkITFUZEHEjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2217
2217
|
root: options.root,
|
|
2218
2218
|
limit,
|
|
2219
2219
|
cursor: options.cursor
|
|
2220
2220
|
});
|
|
2221
2221
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""} --json` : null;
|
|
2222
|
-
|
|
2222
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
2223
2223
|
{
|
|
2224
2224
|
...page,
|
|
2225
2225
|
nextCommand,
|
|
@@ -2270,7 +2270,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2270
2270
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2271
2271
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2272
2272
|
};
|
|
2273
|
-
const client = new (0,
|
|
2273
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
2274
2274
|
const paths = [];
|
|
2275
2275
|
let cursor;
|
|
2276
2276
|
do {
|
|
@@ -2332,7 +2332,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2332
2332
|
moved.push(move.playName);
|
|
2333
2333
|
}
|
|
2334
2334
|
}
|
|
2335
|
-
|
|
2335
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
2336
2336
|
{
|
|
2337
2337
|
dryRun: Boolean(options.dryRun),
|
|
2338
2338
|
from: options.from,
|
|
@@ -2460,7 +2460,7 @@ function triggerLines(view) {
|
|
|
2460
2460
|
return lines;
|
|
2461
2461
|
}
|
|
2462
2462
|
function printView(view, json) {
|
|
2463
|
-
|
|
2463
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
2464
2464
|
{
|
|
2465
2465
|
...view,
|
|
2466
2466
|
render: {
|
|
@@ -2473,7 +2473,7 @@ function printView(view, json) {
|
|
|
2473
2473
|
);
|
|
2474
2474
|
}
|
|
2475
2475
|
function printResult(result, json) {
|
|
2476
|
-
|
|
2476
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
2477
2477
|
{
|
|
2478
2478
|
...result,
|
|
2479
2479
|
render: {
|
|
@@ -2503,7 +2503,7 @@ async function mutate(command, options, build) {
|
|
|
2503
2503
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2504
2504
|
}
|
|
2505
2505
|
if (options.dryRun) {
|
|
2506
|
-
|
|
2506
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
2507
2507
|
{
|
|
2508
2508
|
dryRun: true,
|
|
2509
2509
|
play: options.play,
|
|
@@ -2522,7 +2522,7 @@ async function mutate(command, options, build) {
|
|
|
2522
2522
|
return;
|
|
2523
2523
|
}
|
|
2524
2524
|
printResult(
|
|
2525
|
-
await new (0,
|
|
2525
|
+
await new (0, _chunkITFUZEHEjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2526
2526
|
options.json
|
|
2527
2527
|
);
|
|
2528
2528
|
}
|
|
@@ -2555,7 +2555,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2555
2555
|
}).addHelpText("after", help2);
|
|
2556
2556
|
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON; automatic when piped").addHelpText("after", help2).action(async (options) => {
|
|
2557
2557
|
printView(
|
|
2558
|
-
await new (0,
|
|
2558
|
+
await new (0, _chunkITFUZEHEjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2559
2559
|
options.json
|
|
2560
2560
|
);
|
|
2561
2561
|
});
|
|
@@ -2599,7 +2599,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2599
2599
|
if (options.auth === void 0) {
|
|
2600
2600
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2601
2601
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2602
|
-
const current = await new (0,
|
|
2602
|
+
const current = await new (0, _chunkITFUZEHEjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2603
2603
|
options.play
|
|
2604
2604
|
);
|
|
2605
2605
|
return {
|
|
@@ -2676,7 +2676,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2676
2676
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2677
2677
|
"runtime.event": "Other event."
|
|
2678
2678
|
};
|
|
2679
|
-
var RUN_LOGS_KIND_HELP =
|
|
2679
|
+
var RUN_LOGS_KIND_HELP = _chunkITFUZEHEjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2680
2680
|
kind,
|
|
2681
2681
|
description: KIND_DESCRIPTIONS[kind]
|
|
2682
2682
|
}));
|
|
@@ -2813,9 +2813,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2813
2813
|
const args = program.args;
|
|
2814
2814
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2815
2815
|
error.exitCode = 2;
|
|
2816
|
-
if (
|
|
2817
|
-
|
|
2818
|
-
Object.assign(new (0,
|
|
2816
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2817
|
+
_chunkDNMV2L7Qjs.printJsonError.call(void 0,
|
|
2818
|
+
Object.assign(new (0, _chunkITFUZEHEjs.RunEventQueryInputError)(error.message), {
|
|
2819
2819
|
exitCode: 2,
|
|
2820
2820
|
retryable: false
|
|
2821
2821
|
})
|
|
@@ -2859,14 +2859,14 @@ function parseQuery(args, resource) {
|
|
|
2859
2859
|
if (VALUE_FLAGS.has(flag)) {
|
|
2860
2860
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2861
2861
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2862
|
-
throw new (0,
|
|
2862
|
+
throw new (0, _chunkITFUZEHEjs.RunEventQueryInputError)(
|
|
2863
2863
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2864
2864
|
);
|
|
2865
2865
|
}
|
|
2866
2866
|
if (flag === "--sum") sums.push(value);
|
|
2867
2867
|
else {
|
|
2868
2868
|
if (values[flag] !== void 0) {
|
|
2869
|
-
throw new (0,
|
|
2869
|
+
throw new (0, _chunkITFUZEHEjs.RunEventQueryInputError)(
|
|
2870
2870
|
`${flag} may only be supplied once.`
|
|
2871
2871
|
);
|
|
2872
2872
|
}
|
|
@@ -2880,12 +2880,12 @@ function parseQuery(args, resource) {
|
|
|
2880
2880
|
}
|
|
2881
2881
|
if (arg.startsWith("-")) {
|
|
2882
2882
|
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.";
|
|
2883
|
-
throw new (0,
|
|
2883
|
+
throw new (0, _chunkITFUZEHEjs.RunEventQueryInputError)(
|
|
2884
2884
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2885
2885
|
);
|
|
2886
2886
|
}
|
|
2887
2887
|
if (runId !== void 0) {
|
|
2888
|
-
throw new (0,
|
|
2888
|
+
throw new (0, _chunkITFUZEHEjs.RunEventQueryInputError)(
|
|
2889
2889
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2890
2890
|
);
|
|
2891
2891
|
}
|
|
@@ -2893,7 +2893,7 @@ function parseQuery(args, resource) {
|
|
|
2893
2893
|
}
|
|
2894
2894
|
if (switches.has("--fields")) {
|
|
2895
2895
|
if (runId !== void 0) {
|
|
2896
|
-
throw new (0,
|
|
2896
|
+
throw new (0, _chunkITFUZEHEjs.RunEventQueryInputError)(
|
|
2897
2897
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2898
2898
|
);
|
|
2899
2899
|
}
|
|
@@ -2906,18 +2906,18 @@ function parseQuery(args, resource) {
|
|
|
2906
2906
|
)
|
|
2907
2907
|
];
|
|
2908
2908
|
if (incompatible.length) {
|
|
2909
|
-
throw new (0,
|
|
2909
|
+
throw new (0, _chunkITFUZEHEjs.RunEventQueryInputError)(
|
|
2910
2910
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2911
2911
|
);
|
|
2912
2912
|
}
|
|
2913
2913
|
}
|
|
2914
2914
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2915
|
-
throw new (0,
|
|
2915
|
+
throw new (0, _chunkITFUZEHEjs.RunEventQueryInputError)(
|
|
2916
2916
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2917
2917
|
);
|
|
2918
2918
|
}
|
|
2919
2919
|
if (sums.length && switches.has("--count")) {
|
|
2920
|
-
throw new (0,
|
|
2920
|
+
throw new (0, _chunkITFUZEHEjs.RunEventQueryInputError)(
|
|
2921
2921
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2922
2922
|
);
|
|
2923
2923
|
}
|
|
@@ -2925,7 +2925,7 @@ function parseQuery(args, resource) {
|
|
|
2925
2925
|
if (operation === "count") {
|
|
2926
2926
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2927
2927
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2928
|
-
throw new (0,
|
|
2928
|
+
throw new (0, _chunkITFUZEHEjs.RunEventQueryInputError)(
|
|
2929
2929
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2930
2930
|
);
|
|
2931
2931
|
}
|
|
@@ -2960,16 +2960,16 @@ function parseQuery(args, resource) {
|
|
|
2960
2960
|
];
|
|
2961
2961
|
}
|
|
2962
2962
|
}
|
|
2963
|
-
const request =
|
|
2963
|
+
const request = _chunkITFUZEHEjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2964
2964
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2965
2965
|
const backend = values["--runtime-backend"];
|
|
2966
2966
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2967
|
-
throw new (0,
|
|
2967
|
+
throw new (0, _chunkITFUZEHEjs.RunEventQueryInputError)(
|
|
2968
2968
|
"--runtime-backend must be daytona or modal."
|
|
2969
2969
|
);
|
|
2970
2970
|
}
|
|
2971
2971
|
if (backend && !namespace) {
|
|
2972
|
-
throw new (0,
|
|
2972
|
+
throw new (0, _chunkITFUZEHEjs.RunEventQueryInputError)(
|
|
2973
2973
|
"--runtime-backend requires --runtime-namespace."
|
|
2974
2974
|
);
|
|
2975
2975
|
}
|
|
@@ -3017,12 +3017,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3017
3017
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3018
3018
|
const record3 = failure;
|
|
3019
3019
|
const status = record3.statusCode;
|
|
3020
|
-
const exitCode = error instanceof
|
|
3020
|
+
const exitCode = error instanceof _chunkITFUZEHEjs.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;
|
|
3021
3021
|
const diagnostic = Object.assign(failure, {
|
|
3022
3022
|
exitCode,
|
|
3023
3023
|
retryable: exitCode === 5
|
|
3024
3024
|
});
|
|
3025
|
-
if (
|
|
3025
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) _chunkDNMV2L7Qjs.printJsonError.call(void 0, diagnostic);
|
|
3026
3026
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3027
3027
|
return exitCode;
|
|
3028
3028
|
}
|
|
@@ -3037,7 +3037,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3037
3037
|
...criteria
|
|
3038
3038
|
} = request;
|
|
3039
3039
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3040
|
-
const client = new (0,
|
|
3040
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
3041
3041
|
let result;
|
|
3042
3042
|
if (request.operation === "fields") {
|
|
3043
3043
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3103,13 +3103,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3103
3103
|
lines.push(`Next page: ${nextPage}`);
|
|
3104
3104
|
}
|
|
3105
3105
|
}
|
|
3106
|
-
|
|
3106
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
3107
3107
|
{
|
|
3108
3108
|
...result,
|
|
3109
3109
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3110
3110
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3111
3111
|
},
|
|
3112
|
-
{ json:
|
|
3112
|
+
{ json: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3113
3113
|
` }
|
|
3114
3114
|
);
|
|
3115
3115
|
return 0;
|
|
@@ -3929,7 +3929,7 @@ function checkedRunExample(plays, target) {
|
|
|
3929
3929
|
const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
|
|
3930
3930
|
const base = `deepline plays run --file ${quote(target)}`;
|
|
3931
3931
|
return {
|
|
3932
|
-
command: `${base}${
|
|
3932
|
+
command: `${base}${_chunkITFUZEHEjs.playInputExampleArgs.call(void 0, schema)} --json`,
|
|
3933
3933
|
note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema. Keep stderr separate from JSON stdout."
|
|
3934
3934
|
};
|
|
3935
3935
|
}
|
|
@@ -5549,7 +5549,7 @@ async function runPlayBootstrap(args) {
|
|
|
5549
5549
|
return runMonitorBootstrap(args);
|
|
5550
5550
|
}
|
|
5551
5551
|
const options = parsePlayBootstrapOptions(args);
|
|
5552
|
-
const client = new (0,
|
|
5552
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
5553
5553
|
const contracts = await loadBootstrapContracts(client, options);
|
|
5554
5554
|
const csvContext = loadCsvContext(options.from);
|
|
5555
5555
|
const source = generateBootstrapPlaySource({
|
|
@@ -5704,7 +5704,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5704
5704
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
5705
5705
|
);
|
|
5706
5706
|
}
|
|
5707
|
-
const response = await new (0,
|
|
5707
|
+
const response = await new (0, _chunkITFUZEHEjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
5708
5708
|
keys
|
|
5709
5709
|
});
|
|
5710
5710
|
const failed = response.receipts.filter(
|
|
@@ -5716,7 +5716,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5716
5716
|
JSON.stringify(response, null, 2) + "\n",
|
|
5717
5717
|
{ flag: "wx", mode: 384 }
|
|
5718
5718
|
);
|
|
5719
|
-
|
|
5719
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
5720
5720
|
{
|
|
5721
5721
|
runId,
|
|
5722
5722
|
out: options.out,
|
|
@@ -5726,7 +5726,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5726
5726
|
{ json: true }
|
|
5727
5727
|
);
|
|
5728
5728
|
} else {
|
|
5729
|
-
|
|
5729
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
5730
5730
|
}
|
|
5731
5731
|
if (failed)
|
|
5732
5732
|
process.exitCode = response.receipts.some(
|
|
@@ -5765,7 +5765,7 @@ includes nextCommand when another page is available.
|
|
|
5765
5765
|
{ exitCode: 2 }
|
|
5766
5766
|
);
|
|
5767
5767
|
}
|
|
5768
|
-
const page = await new (0,
|
|
5768
|
+
const page = await new (0, _chunkITFUZEHEjs.DeeplineClient)().runs.children(parentRunId, {
|
|
5769
5769
|
launchKey: options.launchKey,
|
|
5770
5770
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
5771
5771
|
limit
|
|
@@ -5781,7 +5781,7 @@ includes nextCommand when another page is available.
|
|
|
5781
5781
|
String(limit),
|
|
5782
5782
|
"--json"
|
|
5783
5783
|
].join(" ") : null;
|
|
5784
|
-
|
|
5784
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
5785
5785
|
{
|
|
5786
5786
|
parentRunId,
|
|
5787
5787
|
launchKey: options.launchKey,
|
|
@@ -5817,7 +5817,7 @@ async function handleRunsHistory(options) {
|
|
|
5817
5817
|
throw new Error("--limit must be a positive integer.");
|
|
5818
5818
|
}
|
|
5819
5819
|
}
|
|
5820
|
-
const page = await new (0,
|
|
5820
|
+
const page = await new (0, _chunkITFUZEHEjs.DeeplineClient)().runs.history({
|
|
5821
5821
|
cursor: options.cursor,
|
|
5822
5822
|
orgId: options.org,
|
|
5823
5823
|
search: options.search,
|
|
@@ -5833,7 +5833,7 @@ async function handleRunsHistory(options) {
|
|
|
5833
5833
|
);
|
|
5834
5834
|
}
|
|
5835
5835
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
5836
|
-
|
|
5836
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
5837
5837
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
5838
5838
|
options.json ? { json: true } : {}
|
|
5839
5839
|
);
|
|
@@ -6109,7 +6109,7 @@ function projectRunDatasetCell(value) {
|
|
|
6109
6109
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
6110
6110
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
6111
6111
|
if (typeof logicalValue === "object") {
|
|
6112
|
-
return
|
|
6112
|
+
return _chunkDNMV2L7Qjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
6113
6113
|
}
|
|
6114
6114
|
return logicalValue;
|
|
6115
6115
|
}
|
|
@@ -8526,7 +8526,7 @@ function renderOutcome(outcome) {
|
|
|
8526
8526
|
function printResult2(input) {
|
|
8527
8527
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
8528
8528
|
if (failed) process.exitCode = 1;
|
|
8529
|
-
|
|
8529
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
8530
8530
|
{
|
|
8531
8531
|
deployment: { ...input.deployment, status: input.status },
|
|
8532
8532
|
plays: input.outcomes,
|
|
@@ -8551,7 +8551,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
8551
8551
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
8552
8552
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
8553
8553
|
});
|
|
8554
|
-
const { http, config } =
|
|
8554
|
+
const { http, config } = _chunkDNMV2L7Qjs.getAuthedHttpClient.call(void 0, );
|
|
8555
8555
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
8556
8556
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
8557
8557
|
deliveryId,
|
|
@@ -8578,7 +8578,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
8578
8578
|
},
|
|
8579
8579
|
{
|
|
8580
8580
|
bundle: bundleDeployPlayFile,
|
|
8581
|
-
fetchImpl:
|
|
8581
|
+
fetchImpl: _chunkO5GPNPOCjs.fetchWithDeploymentProtection,
|
|
8582
8582
|
// The plays are already here: "opening" the source is naming it.
|
|
8583
8583
|
openSource: async () => ({
|
|
8584
8584
|
open: async () => ({ repoRoot: root })
|
|
@@ -9146,7 +9146,7 @@ function parseInputFlagValue(raw) {
|
|
|
9146
9146
|
return raw;
|
|
9147
9147
|
}
|
|
9148
9148
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
9149
|
-
const selection =
|
|
9149
|
+
const selection = _chunkDNMV2L7Qjs.parseJsonFields.call(void 0, args, "run");
|
|
9150
9150
|
args = selection.args;
|
|
9151
9151
|
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.";
|
|
9152
9152
|
let filePath = null;
|
|
@@ -9156,7 +9156,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
9156
9156
|
let revisionSelector = null;
|
|
9157
9157
|
const watch = !args.includes("--no-wait");
|
|
9158
9158
|
const dryRun = args.includes("--dry-run");
|
|
9159
|
-
let jsonOutput = dryRun ?
|
|
9159
|
+
let jsonOutput = dryRun ? _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args);
|
|
9160
9160
|
const fullJson = args.includes("--full");
|
|
9161
9161
|
const force = args.includes("--force");
|
|
9162
9162
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -9203,7 +9203,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
9203
9203
|
"--log-level requires one of: debug, info, warn, error."
|
|
9204
9204
|
);
|
|
9205
9205
|
}
|
|
9206
|
-
const parsed =
|
|
9206
|
+
const parsed = _chunkITFUZEHEjs.parseLogLevel.call(void 0, value);
|
|
9207
9207
|
if (!parsed) {
|
|
9208
9208
|
throw new Error(
|
|
9209
9209
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -9510,7 +9510,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
9510
9510
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
9511
9511
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
9512
9512
|
);
|
|
9513
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
9513
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkITFUZEHEjs.parseLogLevel.call(void 0, options.logLevel);
|
|
9514
9514
|
if (!logLevel)
|
|
9515
9515
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
9516
9516
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -9524,13 +9524,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
9524
9524
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
9525
9525
|
logLevel = "debug";
|
|
9526
9526
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
9527
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
9528
|
-
[...fullJson ? ["--full"] : [], ...
|
|
9527
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkDNMV2L7Qjs.parseJsonFields.call(void 0,
|
|
9528
|
+
[...fullJson ? ["--full"] : [], ..._chunkDNMV2L7Qjs.jsonFieldArgs.call(void 0, options.json)],
|
|
9529
9529
|
"run"
|
|
9530
9530
|
).fields;
|
|
9531
9531
|
const watch = options.wait === false ? false : base.watch;
|
|
9532
9532
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
9533
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
9533
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkDNMV2L7Qjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
9534
9534
|
const verboseLogs = Boolean(
|
|
9535
9535
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
9536
9536
|
);
|
|
@@ -9574,7 +9574,7 @@ function playAuthoringGraphPath(parent, filePath) {
|
|
|
9574
9574
|
// src/cli/renderers/local-play-execution.ts
|
|
9575
9575
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
9576
9576
|
if (options.dryRun) {
|
|
9577
|
-
|
|
9577
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
9578
9578
|
return;
|
|
9579
9579
|
}
|
|
9580
9580
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -10540,7 +10540,7 @@ function playStatusErrorText(status) {
|
|
|
10540
10540
|
function isRetryablePendingStartFailure(status) {
|
|
10541
10541
|
if (status.status !== "failed") return false;
|
|
10542
10542
|
if (status.runId && status.runId !== "pending") return false;
|
|
10543
|
-
return
|
|
10543
|
+
return _chunkITFUZEHEjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
10544
10544
|
}
|
|
10545
10545
|
function pendingStartFailureStatus(input) {
|
|
10546
10546
|
const message = input.error instanceof Error ? input.error.message : String(input.error);
|
|
@@ -10567,13 +10567,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
|
10567
10567
|
var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
10568
10568
|
function watchSurfaceReaches(state, provenance, level) {
|
|
10569
10569
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
10570
|
-
if (!
|
|
10570
|
+
if (!_chunkITFUZEHEjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
10571
10571
|
return false;
|
|
10572
10572
|
}
|
|
10573
|
-
if (
|
|
10573
|
+
if (_chunkITFUZEHEjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
10574
10574
|
return true;
|
|
10575
10575
|
}
|
|
10576
|
-
return state.verbose === true &&
|
|
10576
|
+
return state.verbose === true && _chunkITFUZEHEjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
10577
10577
|
}
|
|
10578
10578
|
function getEventPayload(event) {
|
|
10579
10579
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -11075,7 +11075,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
|
|
|
11075
11075
|
}
|
|
11076
11076
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
11077
11077
|
if (open2 && dashboardUrl) {
|
|
11078
|
-
|
|
11078
|
+
_chunkDNMV2L7Qjs.openInBrowser.call(void 0, dashboardUrl);
|
|
11079
11079
|
}
|
|
11080
11080
|
}
|
|
11081
11081
|
function printPlayLogLines(input) {
|
|
@@ -11137,7 +11137,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
11137
11137
|
billing: false
|
|
11138
11138
|
});
|
|
11139
11139
|
} catch (error) {
|
|
11140
|
-
if (
|
|
11140
|
+
if (_chunkITFUZEHEjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
11141
11141
|
return null;
|
|
11142
11142
|
}
|
|
11143
11143
|
throw error;
|
|
@@ -11326,7 +11326,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11326
11326
|
billing: false
|
|
11327
11327
|
});
|
|
11328
11328
|
} catch (error) {
|
|
11329
|
-
if (
|
|
11329
|
+
if (_chunkITFUZEHEjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11330
11330
|
return null;
|
|
11331
11331
|
}
|
|
11332
11332
|
throw error;
|
|
@@ -11534,7 +11534,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11534
11534
|
lastPhase
|
|
11535
11535
|
});
|
|
11536
11536
|
}
|
|
11537
|
-
if (lastKnownWorkflowId &&
|
|
11537
|
+
if (lastKnownWorkflowId && _chunkITFUZEHEjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11538
11538
|
if (timeout) {
|
|
11539
11539
|
clearTimeout(timeout);
|
|
11540
11540
|
}
|
|
@@ -11570,7 +11570,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11570
11570
|
onRunAdmitted: confirmAdmission
|
|
11571
11571
|
});
|
|
11572
11572
|
}
|
|
11573
|
-
if (!lastKnownWorkflowId &&
|
|
11573
|
+
if (!lastKnownWorkflowId && _chunkITFUZEHEjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11574
11574
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
11575
11575
|
phase: "cli.play_start_stream_transient_failure",
|
|
11576
11576
|
ms: Date.now() - startedAt,
|
|
@@ -11669,7 +11669,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
11669
11669
|
"logs"
|
|
11670
11670
|
]);
|
|
11671
11671
|
function formatPlayLogLine(rawLine, state) {
|
|
11672
|
-
const classified =
|
|
11672
|
+
const classified = _chunkITFUZEHEjs.classifyLogLine.call(void 0, rawLine);
|
|
11673
11673
|
const line = classified.line;
|
|
11674
11674
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
11675
11675
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _348 => _348[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -11684,14 +11684,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11684
11684
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
11685
11685
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
11686
11686
|
if (providerWait && !state.verbose) {
|
|
11687
|
-
return
|
|
11687
|
+
return _chunkITFUZEHEjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
11688
11688
|
}
|
|
11689
11689
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
11690
11690
|
if (mapProgress && !state.verbose) {
|
|
11691
|
-
return
|
|
11691
|
+
return _chunkITFUZEHEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
11692
11692
|
}
|
|
11693
11693
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
11694
|
-
if (!
|
|
11694
|
+
if (!_chunkITFUZEHEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11695
11695
|
return null;
|
|
11696
11696
|
}
|
|
11697
11697
|
if (state.emittedRunnerStarted) {
|
|
@@ -11704,7 +11704,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11704
11704
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
11705
11705
|
);
|
|
11706
11706
|
if (mapStart) {
|
|
11707
|
-
if (!
|
|
11707
|
+
if (!_chunkITFUZEHEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11708
11708
|
return null;
|
|
11709
11709
|
}
|
|
11710
11710
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -11714,7 +11714,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11714
11714
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
11715
11715
|
);
|
|
11716
11716
|
if (mapDone) {
|
|
11717
|
-
if (!
|
|
11717
|
+
if (!_chunkITFUZEHEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11718
11718
|
return null;
|
|
11719
11719
|
}
|
|
11720
11720
|
const [, results, executed, cached] = mapDone;
|
|
@@ -13003,7 +13003,7 @@ function formatRecentRunLogLines(value) {
|
|
|
13003
13003
|
(line) => typeof line === "string"
|
|
13004
13004
|
);
|
|
13005
13005
|
if (tail.length === 0) return [];
|
|
13006
|
-
const shown = tail.map((line) =>
|
|
13006
|
+
const shown = tail.map((line) => _chunkITFUZEHEjs.classifyLogLine.call(void 0, line)).filter(
|
|
13007
13007
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
13008
13008
|
).slice(-8);
|
|
13009
13009
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -13282,7 +13282,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13282
13282
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _429 => _429.hits]), () => ( null));
|
|
13283
13283
|
if (jsonOutput) {
|
|
13284
13284
|
const payload2 = _optionalChain([options, 'optionalAccess', _430 => _430.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
13285
|
-
|
|
13285
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
13286
13286
|
hits ? { ...payload2, hits } : payload2,
|
|
13287
13287
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _431 => _431.jsonFields]) }
|
|
13288
13288
|
);
|
|
@@ -13298,7 +13298,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13298
13298
|
...buildPlayCompletionTextLines(status),
|
|
13299
13299
|
...formatRunHitsLines(hits)
|
|
13300
13300
|
];
|
|
13301
|
-
|
|
13301
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
13302
13302
|
json: false,
|
|
13303
13303
|
text: `${lines2.join("\n")}
|
|
13304
13304
|
`
|
|
@@ -13349,7 +13349,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13349
13349
|
lines.push(...buildBillingRollupTextLines(status));
|
|
13350
13350
|
const compact = compactPlayStatus(status);
|
|
13351
13351
|
const payload = _optionalChain([options, 'optionalAccess', _433 => _433.fullJson]) ? status : compact;
|
|
13352
|
-
|
|
13352
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
13353
13353
|
{
|
|
13354
13354
|
...payload,
|
|
13355
13355
|
render: {
|
|
@@ -14106,7 +14106,7 @@ function writeStartedPlayRun(input) {
|
|
|
14106
14106
|
dashboardUrl: input.dashboardUrl,
|
|
14107
14107
|
package: input.package
|
|
14108
14108
|
};
|
|
14109
|
-
|
|
14109
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
14110
14110
|
json: true,
|
|
14111
14111
|
fields: input.jsonFields
|
|
14112
14112
|
});
|
|
@@ -14128,7 +14128,7 @@ function writeStartedPlayRun(input) {
|
|
|
14128
14128
|
input.progress.writeLine(output2, process.stdout);
|
|
14129
14129
|
return;
|
|
14130
14130
|
}
|
|
14131
|
-
|
|
14131
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0, input.package, {
|
|
14132
14132
|
json: false,
|
|
14133
14133
|
text: `${output2}
|
|
14134
14134
|
`
|
|
@@ -14157,7 +14157,7 @@ function writeStartedPlayRun(input) {
|
|
|
14157
14157
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)} --json`] : []
|
|
14158
14158
|
];
|
|
14159
14159
|
if (input.jsonOutput) {
|
|
14160
|
-
|
|
14160
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
14161
14161
|
return;
|
|
14162
14162
|
}
|
|
14163
14163
|
if (input.dashboardUrl) {
|
|
@@ -14168,7 +14168,7 @@ function writeStartedPlayRun(input) {
|
|
|
14168
14168
|
input.progress.writeLine(output, process.stdout);
|
|
14169
14169
|
return;
|
|
14170
14170
|
}
|
|
14171
|
-
|
|
14171
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
14172
14172
|
{
|
|
14173
14173
|
...payload,
|
|
14174
14174
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -14178,7 +14178,7 @@ function writeStartedPlayRun(input) {
|
|
|
14178
14178
|
);
|
|
14179
14179
|
}
|
|
14180
14180
|
function parsePlayCheckOptions(args) {
|
|
14181
|
-
const selection =
|
|
14181
|
+
const selection = _chunkDNMV2L7Qjs.parseJsonFields.call(void 0, args, "check");
|
|
14182
14182
|
args = selection.args;
|
|
14183
14183
|
const target = args[0];
|
|
14184
14184
|
if (!target || target.startsWith("-")) {
|
|
@@ -14190,7 +14190,7 @@ function parsePlayCheckOptions(args) {
|
|
|
14190
14190
|
if (arg !== "--json" && arg !== "--full")
|
|
14191
14191
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
14192
14192
|
}
|
|
14193
|
-
const jsonOutput =
|
|
14193
|
+
const jsonOutput = _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args);
|
|
14194
14194
|
return {
|
|
14195
14195
|
target,
|
|
14196
14196
|
jsonOutput,
|
|
@@ -14266,7 +14266,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
14266
14266
|
useLatest,
|
|
14267
14267
|
expectedArtifactHash,
|
|
14268
14268
|
dryRun,
|
|
14269
|
-
jsonOutput:
|
|
14269
|
+
jsonOutput: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)
|
|
14270
14270
|
};
|
|
14271
14271
|
}
|
|
14272
14272
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -14307,7 +14307,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
14307
14307
|
target,
|
|
14308
14308
|
expectedArtifactHash,
|
|
14309
14309
|
dryRun,
|
|
14310
|
-
jsonOutput:
|
|
14310
|
+
jsonOutput: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)
|
|
14311
14311
|
};
|
|
14312
14312
|
}
|
|
14313
14313
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -14518,7 +14518,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
14518
14518
|
async function handlePlayCheck(args) {
|
|
14519
14519
|
const options = parsePlayCheckOptions(args);
|
|
14520
14520
|
if (!isFileTarget2(options.target)) {
|
|
14521
|
-
const client = new (0,
|
|
14521
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
14522
14522
|
try {
|
|
14523
14523
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
14524
14524
|
command: "check"
|
|
@@ -14547,7 +14547,7 @@ async function handlePlayCheck(args) {
|
|
|
14547
14547
|
},
|
|
14548
14548
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
14549
14549
|
};
|
|
14550
|
-
|
|
14550
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0, result, {
|
|
14551
14551
|
json: options.jsonOutput,
|
|
14552
14552
|
fields: options.jsonFields,
|
|
14553
14553
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -14557,7 +14557,7 @@ async function handlePlayCheck(args) {
|
|
|
14557
14557
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
14558
14558
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
14559
14559
|
if (options.jsonOutput) {
|
|
14560
|
-
|
|
14560
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
14561
14561
|
{
|
|
14562
14562
|
kind: "play_check",
|
|
14563
14563
|
checked: "named_contract",
|
|
@@ -14599,7 +14599,7 @@ async function handlePlayCheck(args) {
|
|
|
14599
14599
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full --json`,
|
|
14600
14600
|
publishCommand: _optionalChain([primary, 'optionalAccess', _479 => _479.result, 'access', _480 => _480.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
14601
14601
|
});
|
|
14602
|
-
|
|
14602
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0, output, {
|
|
14603
14603
|
json: options.jsonOutput,
|
|
14604
14604
|
fields: options.jsonFields,
|
|
14605
14605
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -14661,7 +14661,7 @@ async function checkOneExportedPlay(input) {
|
|
|
14661
14661
|
result: { valid: false, errors: descriptionErrors }
|
|
14662
14662
|
};
|
|
14663
14663
|
}
|
|
14664
|
-
const client = new (0,
|
|
14664
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
14665
14665
|
const integrationMode = resolveEvalIntegrationMode();
|
|
14666
14666
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
14667
14667
|
playName: node.playName,
|
|
@@ -14735,7 +14735,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
14735
14735
|
);
|
|
14736
14736
|
return 0;
|
|
14737
14737
|
}
|
|
14738
|
-
client = new (0,
|
|
14738
|
+
client = new (0, _chunkITFUZEHEjs.DeeplineClient)(playRunClientOptions(options));
|
|
14739
14739
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
14740
14740
|
if (canDeferCompilerManifest) {
|
|
14741
14741
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -14930,7 +14930,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14930
14930
|
if (options.target.kind !== "name") {
|
|
14931
14931
|
throw new Error("Expected a named play run target.");
|
|
14932
14932
|
}
|
|
14933
|
-
const client = new (0,
|
|
14933
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)(playRunClientOptions(options));
|
|
14934
14934
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
14935
14935
|
const playName = options.target.name;
|
|
14936
14936
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -15327,10 +15327,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
15327
15327
|
);
|
|
15328
15328
|
return `${lines.join("\n")}
|
|
15329
15329
|
|
|
15330
|
-
${
|
|
15330
|
+
${_chunkDNMV2L7Qjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
15331
15331
|
}
|
|
15332
15332
|
async function handleRunGet(args) {
|
|
15333
|
-
const selection =
|
|
15333
|
+
const selection = _chunkDNMV2L7Qjs.parseJsonFields.call(void 0,
|
|
15334
15334
|
args,
|
|
15335
15335
|
args.includes("--config") ? "config" : "get"
|
|
15336
15336
|
);
|
|
@@ -15343,7 +15343,7 @@ async function handleRunGet(args) {
|
|
|
15343
15343
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15344
15344
|
return 1;
|
|
15345
15345
|
}
|
|
15346
|
-
const client = new (0,
|
|
15346
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
15347
15347
|
if (args.includes("--config")) {
|
|
15348
15348
|
if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
|
|
15349
15349
|
console.error(
|
|
@@ -15357,7 +15357,7 @@ async function handleRunGet(args) {
|
|
|
15357
15357
|
"This server does not support recorded configuration reads."
|
|
15358
15358
|
);
|
|
15359
15359
|
}
|
|
15360
|
-
|
|
15360
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
15361
15361
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
15362
15362
|
{ json: true, fields: selection.fields }
|
|
15363
15363
|
);
|
|
@@ -15365,7 +15365,7 @@ async function handleRunGet(args) {
|
|
|
15365
15365
|
}
|
|
15366
15366
|
if (args.includes("--input")) {
|
|
15367
15367
|
const input = await client.getRunInput(runId);
|
|
15368
|
-
|
|
15368
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
15369
15369
|
return 0;
|
|
15370
15370
|
}
|
|
15371
15371
|
const full = args.includes("--full");
|
|
@@ -15378,8 +15378,8 @@ async function handleRunGet(args) {
|
|
|
15378
15378
|
full: true,
|
|
15379
15379
|
failedLogs: args.includes("--log-failed")
|
|
15380
15380
|
}) : status;
|
|
15381
|
-
if (
|
|
15382
|
-
|
|
15381
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
15382
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
15383
15383
|
full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
15384
15384
|
{ json: true, fields: selection.fields }
|
|
15385
15385
|
);
|
|
@@ -15395,8 +15395,8 @@ async function handleRunGet(args) {
|
|
|
15395
15395
|
readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
|
|
15396
15396
|
]);
|
|
15397
15397
|
const hitLines = formatRunHitsLines(hits);
|
|
15398
|
-
const json =
|
|
15399
|
-
|
|
15398
|
+
const json = _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args);
|
|
15399
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
15400
15400
|
{
|
|
15401
15401
|
...overview,
|
|
15402
15402
|
credits,
|
|
@@ -15499,9 +15499,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
15499
15499
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15500
15500
|
return 1;
|
|
15501
15501
|
}
|
|
15502
|
-
const status = await new (0,
|
|
15503
|
-
if (
|
|
15504
|
-
|
|
15502
|
+
const status = await new (0, _chunkITFUZEHEjs.DeeplineClient)().runs.status(runId);
|
|
15503
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
15504
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
15505
15505
|
return 0;
|
|
15506
15506
|
}
|
|
15507
15507
|
if (!status.available) {
|
|
@@ -15575,12 +15575,12 @@ async function handleRunsRerun(args) {
|
|
|
15575
15575
|
index += 1;
|
|
15576
15576
|
}
|
|
15577
15577
|
}
|
|
15578
|
-
const result = await new (0,
|
|
15578
|
+
const result = await new (0, _chunkITFUZEHEjs.DeeplineClient)().runs.rerun(runId, {
|
|
15579
15579
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
15580
15580
|
...inputOverrides ? { inputOverrides } : {}
|
|
15581
15581
|
});
|
|
15582
|
-
if (
|
|
15583
|
-
|
|
15582
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
15583
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
15584
15584
|
} else {
|
|
15585
15585
|
console.log(
|
|
15586
15586
|
result.deduplicated === true ? `
|
|
@@ -15650,8 +15650,8 @@ ${usage2}
|
|
|
15650
15650
|
Discover Plays: ${next.discover}
|
|
15651
15651
|
Active runs: ${next.running}`
|
|
15652
15652
|
);
|
|
15653
|
-
if (
|
|
15654
|
-
|
|
15653
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
15654
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
15655
15655
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
15656
15656
|
{ json: true }
|
|
15657
15657
|
);
|
|
@@ -15666,7 +15666,7 @@ Active runs: ${next.running}`
|
|
|
15666
15666
|
console.error("--offset requires --play.");
|
|
15667
15667
|
return 1;
|
|
15668
15668
|
}
|
|
15669
|
-
const client = new (0,
|
|
15669
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
15670
15670
|
const page = await client.runs.listPage({
|
|
15671
15671
|
...playName ? { play: playName } : {},
|
|
15672
15672
|
...statusFilter ? { status: statusFilter } : {},
|
|
@@ -15734,7 +15734,7 @@ Active runs: ${next.running}`
|
|
|
15734
15734
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
15735
15735
|
);
|
|
15736
15736
|
}
|
|
15737
|
-
|
|
15737
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
15738
15738
|
{
|
|
15739
15739
|
runs,
|
|
15740
15740
|
count: runs.length,
|
|
@@ -15748,7 +15748,7 @@ Active runs: ${next.running}`
|
|
|
15748
15748
|
},
|
|
15749
15749
|
render: { sections: [{ title: "runs", lines }] }
|
|
15750
15750
|
},
|
|
15751
|
-
{ json:
|
|
15751
|
+
{ json: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args) }
|
|
15752
15752
|
);
|
|
15753
15753
|
return 0;
|
|
15754
15754
|
}
|
|
@@ -15778,7 +15778,7 @@ async function handleRunTail(args) {
|
|
|
15778
15778
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15779
15779
|
return 1;
|
|
15780
15780
|
}
|
|
15781
|
-
const parsed =
|
|
15781
|
+
const parsed = _chunkITFUZEHEjs.parseLogLevel.call(void 0, value);
|
|
15782
15782
|
if (!parsed) {
|
|
15783
15783
|
console.error(
|
|
15784
15784
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15816,9 +15816,9 @@ async function handleRunTail(args) {
|
|
|
15816
15816
|
);
|
|
15817
15817
|
return 1;
|
|
15818
15818
|
}
|
|
15819
|
-
const client = new (0,
|
|
15819
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
15820
15820
|
const jsonLines = args.includes("--jsonl");
|
|
15821
|
-
const jsonOutput = !jsonLines &&
|
|
15821
|
+
const jsonOutput = !jsonLines && _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args);
|
|
15822
15822
|
const compact = args.includes("--compact");
|
|
15823
15823
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
15824
15824
|
const compactState = {
|
|
@@ -15899,7 +15899,7 @@ async function handleRunLogs(args) {
|
|
|
15899
15899
|
]);
|
|
15900
15900
|
const cursorIndex = args.indexOf("--cursor");
|
|
15901
15901
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15902
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
15902
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkITFUZEHEjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
15903
15903
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
15904
15904
|
return handleRunEventSearch(args);
|
|
15905
15905
|
}
|
|
@@ -15933,7 +15933,7 @@ async function handleRunLogs(args) {
|
|
|
15933
15933
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15934
15934
|
return 1;
|
|
15935
15935
|
}
|
|
15936
|
-
const parsed =
|
|
15936
|
+
const parsed = _chunkITFUZEHEjs.parseLogLevel.call(void 0, value);
|
|
15937
15937
|
if (!parsed) {
|
|
15938
15938
|
console.error(
|
|
15939
15939
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15980,12 +15980,12 @@ async function handleRunLogs(args) {
|
|
|
15980
15980
|
);
|
|
15981
15981
|
return 1;
|
|
15982
15982
|
}
|
|
15983
|
-
const client = new (0,
|
|
15983
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
15984
15984
|
if (outPath) {
|
|
15985
15985
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
15986
|
-
const logs = result2.entries.filter((line) =>
|
|
15986
|
+
const logs = result2.entries.filter((line) => _chunkITFUZEHEjs.logLevelReaches.call(void 0, _chunkITFUZEHEjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkITFUZEHEjs.classifyLogLine.call(void 0, line).line);
|
|
15987
15987
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
15988
|
-
|
|
15988
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
15989
15989
|
{
|
|
15990
15990
|
runId: result2.runId,
|
|
15991
15991
|
log_path: outPath,
|
|
@@ -16008,7 +16008,7 @@ async function handleRunLogs(args) {
|
|
|
16008
16008
|
]
|
|
16009
16009
|
}
|
|
16010
16010
|
},
|
|
16011
|
-
{ json:
|
|
16011
|
+
{ json: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args) }
|
|
16012
16012
|
);
|
|
16013
16013
|
return 0;
|
|
16014
16014
|
}
|
|
@@ -16039,7 +16039,7 @@ async function handleRunLogs(args) {
|
|
|
16039
16039
|
}
|
|
16040
16040
|
};
|
|
16041
16041
|
const text = buildRunLogsText(filteredResult);
|
|
16042
|
-
|
|
16042
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
16043
16043
|
{
|
|
16044
16044
|
runId: result.runId,
|
|
16045
16045
|
totalCount: result.totalCount,
|
|
@@ -16063,7 +16063,7 @@ async function handleRunLogs(args) {
|
|
|
16063
16063
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
16064
16064
|
},
|
|
16065
16065
|
{
|
|
16066
|
-
json:
|
|
16066
|
+
json: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args),
|
|
16067
16067
|
text
|
|
16068
16068
|
}
|
|
16069
16069
|
);
|
|
@@ -16087,7 +16087,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
16087
16087
|
);
|
|
16088
16088
|
}
|
|
16089
16089
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
16090
|
-
(entry) =>
|
|
16090
|
+
(entry) => _chunkITFUZEHEjs.logLevelReaches.call(void 0, _chunkITFUZEHEjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
16091
16091
|
);
|
|
16092
16092
|
const selected = matching.slice(-limit);
|
|
16093
16093
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -16097,7 +16097,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
16097
16097
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _522 => _522.at, 'call', _523 => _523(-1), 'optionalAccess', _524 => _524.seq]), () => ( null)),
|
|
16098
16098
|
truncated: result.truncated || olderMatchesExist,
|
|
16099
16099
|
hasMore: olderMatchesExist,
|
|
16100
|
-
nextCursor: olderMatchesExist ?
|
|
16100
|
+
nextCursor: olderMatchesExist ? _chunkITFUZEHEjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
16101
16101
|
};
|
|
16102
16102
|
}
|
|
16103
16103
|
async function handleRunEventSearch(args) {
|
|
@@ -16164,7 +16164,7 @@ ${usage2}`);
|
|
|
16164
16164
|
namespace,
|
|
16165
16165
|
...backend ? { backend } : {}
|
|
16166
16166
|
} : void 0;
|
|
16167
|
-
const client = new (0,
|
|
16167
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
16168
16168
|
const result = await client.runs.searchEvents({
|
|
16169
16169
|
...runId ? { runId } : {},
|
|
16170
16170
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -16237,7 +16237,7 @@ ${renderedDetails}` : ""}`;
|
|
|
16237
16237
|
String(limit),
|
|
16238
16238
|
"--json"
|
|
16239
16239
|
].join(" ") : null;
|
|
16240
|
-
|
|
16240
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
16241
16241
|
{
|
|
16242
16242
|
events,
|
|
16243
16243
|
nextCursor: result.nextCursor,
|
|
@@ -16248,14 +16248,14 @@ ${renderedDetails}` : ""}`;
|
|
|
16248
16248
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
16249
16249
|
},
|
|
16250
16250
|
{
|
|
16251
|
-
json:
|
|
16251
|
+
json: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args),
|
|
16252
16252
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
16253
16253
|
}
|
|
16254
16254
|
);
|
|
16255
16255
|
return 0;
|
|
16256
16256
|
}
|
|
16257
16257
|
function buildRunLogsText(result) {
|
|
16258
|
-
const lines = result.entries.map((line) =>
|
|
16258
|
+
const lines = result.entries.map((line) => _chunkITFUZEHEjs.classifyLogLine.call(void 0, line).line);
|
|
16259
16259
|
if (result.warning) {
|
|
16260
16260
|
if (lines.length > 0) lines.push("");
|
|
16261
16261
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -16289,7 +16289,7 @@ async function handleRunStop(args) {
|
|
|
16289
16289
|
reason = args[++index];
|
|
16290
16290
|
}
|
|
16291
16291
|
}
|
|
16292
|
-
const client = new (0,
|
|
16292
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
16293
16293
|
const result = await client.runs.stop(runId, { reason });
|
|
16294
16294
|
const state = resolveRunStopState(result);
|
|
16295
16295
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -16304,7 +16304,7 @@ async function handleRunStop(args) {
|
|
|
16304
16304
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
16305
16305
|
`inspect: deepline runs get ${runId} --full --json`
|
|
16306
16306
|
];
|
|
16307
|
-
|
|
16307
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
16308
16308
|
{
|
|
16309
16309
|
...cancelling,
|
|
16310
16310
|
state,
|
|
@@ -16319,7 +16319,7 @@ async function handleRunStop(args) {
|
|
|
16319
16319
|
]
|
|
16320
16320
|
}
|
|
16321
16321
|
},
|
|
16322
|
-
{ json:
|
|
16322
|
+
{ json: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args) }
|
|
16323
16323
|
);
|
|
16324
16324
|
return 0;
|
|
16325
16325
|
}
|
|
@@ -16336,7 +16336,7 @@ async function handleRunStop(args) {
|
|
|
16336
16336
|
];
|
|
16337
16337
|
process.stderr.write(`${lines2.join("\n")}
|
|
16338
16338
|
`);
|
|
16339
|
-
|
|
16339
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
16340
16340
|
{
|
|
16341
16341
|
...result,
|
|
16342
16342
|
render: {
|
|
@@ -16351,7 +16351,7 @@ async function handleRunStop(args) {
|
|
|
16351
16351
|
]
|
|
16352
16352
|
}
|
|
16353
16353
|
},
|
|
16354
|
-
{ json:
|
|
16354
|
+
{ json: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args) }
|
|
16355
16355
|
);
|
|
16356
16356
|
return 1;
|
|
16357
16357
|
}
|
|
@@ -16362,12 +16362,12 @@ async function handleRunStop(args) {
|
|
|
16362
16362
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
16363
16363
|
] : []
|
|
16364
16364
|
];
|
|
16365
|
-
|
|
16365
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
16366
16366
|
{
|
|
16367
16367
|
...result,
|
|
16368
16368
|
render: { sections: [{ title: "run stop", lines }] }
|
|
16369
16369
|
},
|
|
16370
|
-
{ json:
|
|
16370
|
+
{ json: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args) }
|
|
16371
16371
|
);
|
|
16372
16372
|
return 0;
|
|
16373
16373
|
}
|
|
@@ -16417,18 +16417,18 @@ async function handleRunStopAll(args) {
|
|
|
16417
16417
|
reason = args[++index];
|
|
16418
16418
|
}
|
|
16419
16419
|
}
|
|
16420
|
-
const client = new (0,
|
|
16420
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
16421
16421
|
if (dryRun) {
|
|
16422
16422
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
16423
16423
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
16424
|
-
|
|
16424
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
16425
16425
|
{
|
|
16426
16426
|
...result2,
|
|
16427
16427
|
render: {
|
|
16428
16428
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
16429
16429
|
}
|
|
16430
16430
|
},
|
|
16431
|
-
{ json:
|
|
16431
|
+
{ json: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
16432
16432
|
` }
|
|
16433
16433
|
);
|
|
16434
16434
|
return 0;
|
|
@@ -16441,17 +16441,17 @@ async function handleRunStopAll(args) {
|
|
|
16441
16441
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
16442
16442
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
16443
16443
|
];
|
|
16444
|
-
|
|
16444
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
16445
16445
|
{
|
|
16446
16446
|
...result,
|
|
16447
16447
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
16448
16448
|
},
|
|
16449
|
-
{ json:
|
|
16449
|
+
{ json: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args) }
|
|
16450
16450
|
);
|
|
16451
16451
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
16452
16452
|
}
|
|
16453
16453
|
async function handleRunExport(args) {
|
|
16454
|
-
const selection =
|
|
16454
|
+
const selection = _chunkDNMV2L7Qjs.parseJsonFields.call(void 0, args, "export");
|
|
16455
16455
|
args = selection.args;
|
|
16456
16456
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--json]";
|
|
16457
16457
|
let runId;
|
|
@@ -16510,16 +16510,16 @@ async function handleRunExport(args) {
|
|
|
16510
16510
|
"INVALID_ARGUMENT"
|
|
16511
16511
|
);
|
|
16512
16512
|
}
|
|
16513
|
-
const client = new (0,
|
|
16513
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
16514
16514
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
16515
16515
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
16516
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
16516
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args));
|
|
16517
16517
|
try {
|
|
16518
16518
|
await waitForPlayCompletionByWatch({
|
|
16519
16519
|
client,
|
|
16520
16520
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
16521
16521
|
workflowId: runId,
|
|
16522
|
-
jsonOutput:
|
|
16522
|
+
jsonOutput: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args),
|
|
16523
16523
|
emitLogs: false,
|
|
16524
16524
|
waitTimeoutMs,
|
|
16525
16525
|
startedAt: Date.now(),
|
|
@@ -16618,8 +16618,8 @@ async function handleRunExport(args) {
|
|
|
16618
16618
|
"utf-8"
|
|
16619
16619
|
);
|
|
16620
16620
|
}
|
|
16621
|
-
|
|
16622
|
-
json:
|
|
16621
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0, payload, {
|
|
16622
|
+
json: _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args),
|
|
16623
16623
|
fields: selection.fields,
|
|
16624
16624
|
text: `${lines.join("\n")}
|
|
16625
16625
|
`
|
|
@@ -16640,10 +16640,10 @@ async function handlePlayGet(args) {
|
|
|
16640
16640
|
);
|
|
16641
16641
|
return 2;
|
|
16642
16642
|
}
|
|
16643
|
-
const client = new (0,
|
|
16643
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
16644
16644
|
const explicitJson = args.includes("--json");
|
|
16645
16645
|
const sourceOutput = args.includes("--source");
|
|
16646
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
16646
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args);
|
|
16647
16647
|
const requestedRevisionFlags = [
|
|
16648
16648
|
args.includes("--working"),
|
|
16649
16649
|
args.includes("--live"),
|
|
@@ -16703,7 +16703,7 @@ async function handlePlayGet(args) {
|
|
|
16703
16703
|
}
|
|
16704
16704
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
16705
16705
|
if (jsonOutput) {
|
|
16706
|
-
|
|
16706
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, {
|
|
16707
16707
|
...detail,
|
|
16708
16708
|
...materializedFile ? {
|
|
16709
16709
|
message: loadedMessage,
|
|
@@ -16790,8 +16790,8 @@ async function handlePlayVersions(args) {
|
|
|
16790
16790
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
16791
16791
|
return 1;
|
|
16792
16792
|
}
|
|
16793
|
-
const client = new (0,
|
|
16794
|
-
const jsonOutput =
|
|
16793
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
16794
|
+
const jsonOutput = _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args);
|
|
16795
16795
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16796
16796
|
command: "versions"
|
|
16797
16797
|
});
|
|
@@ -16799,7 +16799,7 @@ async function handlePlayVersions(args) {
|
|
|
16799
16799
|
parseReferencedPlayTarget3(playName).playName
|
|
16800
16800
|
);
|
|
16801
16801
|
if (jsonOutput) {
|
|
16802
|
-
|
|
16802
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, { versions });
|
|
16803
16803
|
return 0;
|
|
16804
16804
|
}
|
|
16805
16805
|
if (versions.length === 0) {
|
|
@@ -16831,9 +16831,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
16831
16831
|
"signals"
|
|
16832
16832
|
];
|
|
16833
16833
|
async function handlePlayList(args) {
|
|
16834
|
-
const jsonOutput =
|
|
16834
|
+
const jsonOutput = _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args);
|
|
16835
16835
|
const showCost = args.includes("--show-cost");
|
|
16836
|
-
const client = new (0,
|
|
16836
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
16837
16837
|
const categoriesIndex = args.indexOf("--categories");
|
|
16838
16838
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _560 => _560[categoriesIndex + 1], 'optionalAccess', _561 => _561.trim, 'call', _562 => _562()]) : void 0;
|
|
16839
16839
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -16930,7 +16930,7 @@ async function handlePlayList(args) {
|
|
|
16930
16930
|
lines.push("List truncated \u2014 more plays are available.");
|
|
16931
16931
|
lines.push(`Next page: ${nextPage}`);
|
|
16932
16932
|
}
|
|
16933
|
-
|
|
16933
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
16934
16934
|
{
|
|
16935
16935
|
plays,
|
|
16936
16936
|
count: plays.length,
|
|
@@ -16948,7 +16948,7 @@ async function handlePlayList(args) {
|
|
|
16948
16948
|
}
|
|
16949
16949
|
async function handlePlayPin(args, pinned) {
|
|
16950
16950
|
const target = _optionalChain([args, 'access', _569 => _569.find, 'call', _570 => _570((arg) => !arg.startsWith("-")), 'optionalAccess', _571 => _571.trim, 'call', _572 => _572()]);
|
|
16951
|
-
const jsonOutput =
|
|
16951
|
+
const jsonOutput = _chunkDNMV2L7Qjs.argsWantJson.call(void 0, args);
|
|
16952
16952
|
const dryRun = args.includes("--dry-run");
|
|
16953
16953
|
if (!target) {
|
|
16954
16954
|
console.error(
|
|
@@ -16966,11 +16966,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
16966
16966
|
const name = parsedTarget.playName;
|
|
16967
16967
|
const plan = { name, pinned, dryRun };
|
|
16968
16968
|
if (dryRun) {
|
|
16969
|
-
|
|
16969
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, plan);
|
|
16970
16970
|
return 0;
|
|
16971
16971
|
}
|
|
16972
|
-
const result = await new (0,
|
|
16973
|
-
if (jsonOutput)
|
|
16972
|
+
const result = await new (0, _chunkITFUZEHEjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
16973
|
+
if (jsonOutput) _chunkDNMV2L7Qjs.printCompactJson.call(void 0, result);
|
|
16974
16974
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
16975
16975
|
return 0;
|
|
16976
16976
|
}
|
|
@@ -16986,7 +16986,7 @@ function csvColumnLines(csvInput) {
|
|
|
16986
16986
|
const headers = [defaults[column]].flat().filter((header) => header && header !== column);
|
|
16987
16987
|
return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
|
|
16988
16988
|
}),
|
|
16989
|
-
|
|
16989
|
+
_chunkITFUZEHEjs.CSV_HEADER_MATCHING_NOTE
|
|
16990
16990
|
];
|
|
16991
16991
|
}
|
|
16992
16992
|
function describedPlay(play) {
|
|
@@ -17130,12 +17130,12 @@ async function handlePlayGrep(args) {
|
|
|
17130
17130
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
17131
17131
|
return 1;
|
|
17132
17132
|
}
|
|
17133
|
-
const client = new (0,
|
|
17133
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
17134
17134
|
const results = (await client.listPlays({ grep: query })).map(
|
|
17135
17135
|
summarizePlayGrepResult
|
|
17136
17136
|
);
|
|
17137
|
-
if (
|
|
17138
|
-
|
|
17137
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
17138
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, {
|
|
17139
17139
|
plays: results,
|
|
17140
17140
|
count: results.length,
|
|
17141
17141
|
query,
|
|
@@ -17158,7 +17158,7 @@ async function handlePlayGrep(args) {
|
|
|
17158
17158
|
return 0;
|
|
17159
17159
|
}
|
|
17160
17160
|
async function handlePlayDescribe(args) {
|
|
17161
|
-
const selection =
|
|
17161
|
+
const selection = _chunkDNMV2L7Qjs.parseJsonFields.call(void 0, args, "describe");
|
|
17162
17162
|
args = selection.args;
|
|
17163
17163
|
const playName = args[0];
|
|
17164
17164
|
if (!playName) {
|
|
@@ -17192,8 +17192,8 @@ async function handlePlayDescribe(args) {
|
|
|
17192
17192
|
`deepline plays check ${playName}`,
|
|
17193
17193
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
17194
17194
|
];
|
|
17195
|
-
if (
|
|
17196
|
-
|
|
17195
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
17196
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, {
|
|
17197
17197
|
ok: false,
|
|
17198
17198
|
error: { message },
|
|
17199
17199
|
next
|
|
@@ -17207,7 +17207,7 @@ async function handlePlayDescribe(args) {
|
|
|
17207
17207
|
}
|
|
17208
17208
|
return 2;
|
|
17209
17209
|
}
|
|
17210
|
-
const client = new (0,
|
|
17210
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
17211
17211
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
17212
17212
|
command: "describe"
|
|
17213
17213
|
});
|
|
@@ -17217,9 +17217,9 @@ async function handlePlayDescribe(args) {
|
|
|
17217
17217
|
compact: args.includes("--compact")
|
|
17218
17218
|
}
|
|
17219
17219
|
);
|
|
17220
|
-
if (
|
|
17221
|
-
if (selection.fields)
|
|
17222
|
-
else
|
|
17220
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
17221
|
+
if (selection.fields) _chunkDNMV2L7Qjs.printJson.call(void 0, play, selection.fields);
|
|
17222
|
+
else _chunkDNMV2L7Qjs.printCompactJson.call(void 0, play);
|
|
17223
17223
|
return 0;
|
|
17224
17224
|
}
|
|
17225
17225
|
printPlayDescription(play);
|
|
@@ -17263,7 +17263,7 @@ async function handlePlaySave(args) {
|
|
|
17263
17263
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
17264
17264
|
};
|
|
17265
17265
|
if (options.jsonOutput) {
|
|
17266
|
-
|
|
17266
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, result);
|
|
17267
17267
|
} else {
|
|
17268
17268
|
console.error(result.message);
|
|
17269
17269
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -17285,7 +17285,7 @@ async function handlePlaySave(args) {
|
|
|
17285
17285
|
};
|
|
17286
17286
|
if (options.dryRun) {
|
|
17287
17287
|
if (options.jsonOutput) {
|
|
17288
|
-
|
|
17288
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, dryRun);
|
|
17289
17289
|
} else {
|
|
17290
17290
|
console.log(`Dry run: ${playName}`);
|
|
17291
17291
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17294,7 +17294,7 @@ async function handlePlaySave(args) {
|
|
|
17294
17294
|
}
|
|
17295
17295
|
return 0;
|
|
17296
17296
|
}
|
|
17297
|
-
const client = new (0,
|
|
17297
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
17298
17298
|
try {
|
|
17299
17299
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
17300
17300
|
"cli.play_save_compile_manifests",
|
|
@@ -17330,7 +17330,7 @@ async function handlePlaySave(args) {
|
|
|
17330
17330
|
}
|
|
17331
17331
|
};
|
|
17332
17332
|
if (options.jsonOutput) {
|
|
17333
|
-
|
|
17333
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, result);
|
|
17334
17334
|
} else {
|
|
17335
17335
|
console.log(
|
|
17336
17336
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -17356,7 +17356,7 @@ async function handlePlayPublish(args) {
|
|
|
17356
17356
|
}
|
|
17357
17357
|
const { target: playName, useLatest } = options;
|
|
17358
17358
|
let revisionId = options.revisionId;
|
|
17359
|
-
const client = new (0,
|
|
17359
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
17360
17360
|
if (isFileTarget2(playName)) {
|
|
17361
17361
|
if (revisionId || useLatest) {
|
|
17362
17362
|
console.error(
|
|
@@ -17388,7 +17388,7 @@ async function handlePlayPublish(args) {
|
|
|
17388
17388
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
17389
17389
|
};
|
|
17390
17390
|
if (options.jsonOutput) {
|
|
17391
|
-
|
|
17391
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, result3);
|
|
17392
17392
|
} else {
|
|
17393
17393
|
console.error(result3.message);
|
|
17394
17394
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -17411,7 +17411,7 @@ async function handlePlayPublish(args) {
|
|
|
17411
17411
|
};
|
|
17412
17412
|
if (options.dryRun) {
|
|
17413
17413
|
if (options.jsonOutput) {
|
|
17414
|
-
|
|
17414
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, dryRun);
|
|
17415
17415
|
} else {
|
|
17416
17416
|
console.log(`Dry run: ${rootPlayName}`);
|
|
17417
17417
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17479,7 +17479,7 @@ async function handlePlayPublish(args) {
|
|
|
17479
17479
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
17480
17480
|
};
|
|
17481
17481
|
if (options.jsonOutput) {
|
|
17482
|
-
|
|
17482
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, result2);
|
|
17483
17483
|
} else {
|
|
17484
17484
|
printPublishReceipt({
|
|
17485
17485
|
name: rootPlayName,
|
|
@@ -17510,7 +17510,7 @@ async function handlePlayPublish(args) {
|
|
|
17510
17510
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
17511
17511
|
latest: useLatest
|
|
17512
17512
|
};
|
|
17513
|
-
|
|
17513
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, result2);
|
|
17514
17514
|
return 0;
|
|
17515
17515
|
}
|
|
17516
17516
|
const resolvedName = parseReferencedPlayTarget3(playName).playName;
|
|
@@ -17534,7 +17534,7 @@ async function handlePlayPublish(args) {
|
|
|
17534
17534
|
revisionId ? { revisionId } : {}
|
|
17535
17535
|
);
|
|
17536
17536
|
if (options.jsonOutput) {
|
|
17537
|
-
|
|
17537
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, result);
|
|
17538
17538
|
} else {
|
|
17539
17539
|
printPublishReceipt({
|
|
17540
17540
|
name: result.name,
|
|
@@ -17574,7 +17574,7 @@ async function handlePlayDelete(args) {
|
|
|
17574
17574
|
);
|
|
17575
17575
|
return 2;
|
|
17576
17576
|
}
|
|
17577
|
-
const client = new (0,
|
|
17577
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
17578
17578
|
let detail;
|
|
17579
17579
|
try {
|
|
17580
17580
|
detail = await client.getPlay(parseReferencedPlayTarget3(playName).playName);
|
|
@@ -17598,8 +17598,8 @@ async function handlePlayDelete(args) {
|
|
|
17598
17598
|
name: resolvedName,
|
|
17599
17599
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
17600
17600
|
};
|
|
17601
|
-
if (
|
|
17602
|
-
|
|
17601
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
17602
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, result2);
|
|
17603
17603
|
} else {
|
|
17604
17604
|
process.stdout.write(
|
|
17605
17605
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -17609,8 +17609,8 @@ async function handlePlayDelete(args) {
|
|
|
17609
17609
|
return 0;
|
|
17610
17610
|
}
|
|
17611
17611
|
const result = await client.deletePlay(resolvedName);
|
|
17612
|
-
if (
|
|
17613
|
-
|
|
17612
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
17613
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, result);
|
|
17614
17614
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
17615
17615
|
}
|
|
17616
17616
|
if (result.alreadyArchived) {
|
|
@@ -17649,13 +17649,13 @@ async function handlePlayRestore(args) {
|
|
|
17649
17649
|
);
|
|
17650
17650
|
return 2;
|
|
17651
17651
|
}
|
|
17652
|
-
const client = new (0,
|
|
17652
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
17653
17653
|
try {
|
|
17654
17654
|
const result = await client.restorePlay(
|
|
17655
17655
|
parseReferencedPlayTarget3(playName).playName
|
|
17656
17656
|
);
|
|
17657
|
-
if (
|
|
17658
|
-
|
|
17657
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
17658
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, result);
|
|
17659
17659
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
17660
17660
|
}
|
|
17661
17661
|
if (result.alreadyActive) {
|
|
@@ -17762,7 +17762,7 @@ Examples:
|
|
|
17762
17762
|
).action(async (target, options) => {
|
|
17763
17763
|
process.exitCode = await handlePlayCheck([
|
|
17764
17764
|
target,
|
|
17765
|
-
...
|
|
17765
|
+
..._chunkDNMV2L7Qjs.jsonFieldArgs.call(void 0, options.json),
|
|
17766
17766
|
...options.full ? ["--full"] : []
|
|
17767
17767
|
]);
|
|
17768
17768
|
});
|
|
@@ -17991,9 +17991,9 @@ Examples:
|
|
|
17991
17991
|
const limit = Number(options.historyLimit);
|
|
17992
17992
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
17993
17993
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
17994
|
-
const client = new (0,
|
|
17994
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
17995
17995
|
if (options.binding) {
|
|
17996
|
-
|
|
17996
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0,
|
|
17997
17997
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
17998
17998
|
);
|
|
17999
17999
|
return;
|
|
@@ -18001,7 +18001,7 @@ Examples:
|
|
|
18001
18001
|
const result = await client.listPlayTriggerInventory({
|
|
18002
18002
|
cursor: options.cursor
|
|
18003
18003
|
});
|
|
18004
|
-
|
|
18004
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, {
|
|
18005
18005
|
...result,
|
|
18006
18006
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
|
|
18007
18007
|
});
|
|
@@ -18048,7 +18048,7 @@ Examples:
|
|
|
18048
18048
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
18049
18049
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
18050
18050
|
}
|
|
18051
|
-
const result = await new (0,
|
|
18051
|
+
const result = await new (0, _chunkITFUZEHEjs.DeeplineClient)().getPlaysActivity({
|
|
18052
18052
|
timeZone: options.timeZone,
|
|
18053
18053
|
days,
|
|
18054
18054
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -18062,7 +18062,7 @@ Examples:
|
|
|
18062
18062
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
18063
18063
|
);
|
|
18064
18064
|
}
|
|
18065
|
-
|
|
18065
|
+
_chunkDNMV2L7Qjs.printCommandEnvelope.call(void 0,
|
|
18066
18066
|
{ ...result },
|
|
18067
18067
|
{
|
|
18068
18068
|
json: options.json || !process.stdout.isTTY,
|
|
@@ -18091,7 +18091,7 @@ Examples:
|
|
|
18091
18091
|
false
|
|
18092
18092
|
);
|
|
18093
18093
|
});
|
|
18094
|
-
|
|
18094
|
+
_chunkUDIPEHNJjs.registerDeprecatedSearchCommand.call(void 0,
|
|
18095
18095
|
play,
|
|
18096
18096
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
18097
18097
|
);
|
|
@@ -18135,7 +18135,7 @@ Examples:
|
|
|
18135
18135
|
);
|
|
18136
18136
|
_chunkAFNEQ43Jjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
18137
18137
|
async (target, options) => {
|
|
18138
|
-
const ownView = () => handlePlayDescribe(
|
|
18138
|
+
const ownView = () => handlePlayDescribe(_chunkDNMV2L7Qjs.describeArgs.call(void 0, target, options));
|
|
18139
18139
|
const [flagText] = [options.json].filter(
|
|
18140
18140
|
(value) => typeof value === "string"
|
|
18141
18141
|
);
|
|
@@ -18146,7 +18146,7 @@ Examples:
|
|
|
18146
18146
|
process.exitCode = await ownView();
|
|
18147
18147
|
return;
|
|
18148
18148
|
}
|
|
18149
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
18149
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-CFUZZ326.js")));
|
|
18150
18150
|
process.exitCode = await describeAnything(
|
|
18151
18151
|
name,
|
|
18152
18152
|
{
|
|
@@ -18263,7 +18263,7 @@ Examples:
|
|
|
18263
18263
|
deepline plays deployments <deployment-id>
|
|
18264
18264
|
`
|
|
18265
18265
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
|
|
18266
|
-
async (id, options) => id ?
|
|
18266
|
+
async (id, options) => id ? _chunk7DDNACAQjs.handleDeploymentGet.call(void 0, id, options) : _chunk7DDNACAQjs.handleDeploymentsList.call(void 0, options)
|
|
18267
18267
|
);
|
|
18268
18268
|
addPublishHelp(
|
|
18269
18269
|
play.command("publish <target>").description(
|
|
@@ -18443,7 +18443,7 @@ Examples:
|
|
|
18443
18443
|
).action(async (runId, options) => {
|
|
18444
18444
|
process.exitCode = await handleRunGet([
|
|
18445
18445
|
runId,
|
|
18446
|
-
...
|
|
18446
|
+
..._chunkDNMV2L7Qjs.jsonFieldArgs.call(void 0, options.json),
|
|
18447
18447
|
...options.full ? ["--full"] : [],
|
|
18448
18448
|
...options.input ? ["--input"] : [],
|
|
18449
18449
|
...options.config ? ["--config"] : [],
|
|
@@ -18718,7 +18718,7 @@ Examples:
|
|
|
18718
18718
|
...options.metadataOut ? ["--metadata-out", options.metadataOut] : [],
|
|
18719
18719
|
...options.wait ? ["--wait"] : [],
|
|
18720
18720
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
18721
|
-
...
|
|
18721
|
+
..._chunkDNMV2L7Qjs.jsonFieldArgs.call(void 0, options.json)
|
|
18722
18722
|
]);
|
|
18723
18723
|
});
|
|
18724
18724
|
const share = play.command("share").description(
|
|
@@ -18884,10 +18884,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18884
18884
|
return 2;
|
|
18885
18885
|
}
|
|
18886
18886
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
18887
|
-
const status = await new (0,
|
|
18887
|
+
const status = await new (0, _chunkITFUZEHEjs.DeeplineClient)().getSharePage(name);
|
|
18888
18888
|
const outputStatus = shareStatusForOutput(status);
|
|
18889
|
-
if (
|
|
18890
|
-
|
|
18889
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
18890
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, outputStatus);
|
|
18891
18891
|
return 0;
|
|
18892
18892
|
}
|
|
18893
18893
|
if (!outputStatus.share) {
|
|
@@ -18926,7 +18926,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18926
18926
|
return 2;
|
|
18927
18927
|
}
|
|
18928
18928
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
18929
|
-
const client = new (0,
|
|
18929
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
18930
18930
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18931
18931
|
let resolvedVersion;
|
|
18932
18932
|
if (!revisionId) {
|
|
@@ -18957,8 +18957,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18957
18957
|
);
|
|
18958
18958
|
if (!hasCompleted) {
|
|
18959
18959
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18960
|
-
if (
|
|
18961
|
-
|
|
18960
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
18961
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, {
|
|
18962
18962
|
ok: false,
|
|
18963
18963
|
code: "NO_SUCCESSFUL_RUN",
|
|
18964
18964
|
message,
|
|
@@ -18982,8 +18982,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18982
18982
|
};
|
|
18983
18983
|
if (args.includes("--dry-run")) {
|
|
18984
18984
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
18985
|
-
if (
|
|
18986
|
-
|
|
18985
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
18986
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, plan);
|
|
18987
18987
|
} else {
|
|
18988
18988
|
console.log(
|
|
18989
18989
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -18993,8 +18993,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18993
18993
|
}
|
|
18994
18994
|
const status = await client.publishSharePage(name, request);
|
|
18995
18995
|
const outputStatus = shareStatusForOutput(status);
|
|
18996
|
-
if (
|
|
18997
|
-
|
|
18996
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
18997
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, outputStatus);
|
|
18998
18998
|
return 0;
|
|
18999
18999
|
}
|
|
19000
19000
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -19025,9 +19025,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
19025
19025
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
19026
19026
|
...seoIndexing ? { seoIndexing } : {}
|
|
19027
19027
|
};
|
|
19028
|
-
const status = await new (0,
|
|
19029
|
-
if (
|
|
19030
|
-
|
|
19028
|
+
const status = await new (0, _chunkITFUZEHEjs.DeeplineClient)().updateSharePage(name, request);
|
|
19029
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
19030
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, status);
|
|
19031
19031
|
return 0;
|
|
19032
19032
|
}
|
|
19033
19033
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -19042,7 +19042,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
19042
19042
|
return 2;
|
|
19043
19043
|
}
|
|
19044
19044
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
19045
|
-
const client = new (0,
|
|
19045
|
+
const client = new (0, _chunkITFUZEHEjs.DeeplineClient)();
|
|
19046
19046
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
19047
19047
|
const versionFlag = shareFlagValue(args, "--version");
|
|
19048
19048
|
if (!revisionId && versionFlag) {
|
|
@@ -19059,8 +19059,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
19059
19059
|
revisionId ? { revisionId } : {}
|
|
19060
19060
|
);
|
|
19061
19061
|
const outputStatus = shareStatusForOutput(status);
|
|
19062
|
-
if (
|
|
19063
|
-
|
|
19062
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
19063
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, outputStatus);
|
|
19064
19064
|
return 0;
|
|
19065
19065
|
}
|
|
19066
19066
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -19085,9 +19085,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
19085
19085
|
return 2;
|
|
19086
19086
|
}
|
|
19087
19087
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
19088
|
-
const status = await new (0,
|
|
19089
|
-
if (
|
|
19090
|
-
|
|
19088
|
+
const status = await new (0, _chunkITFUZEHEjs.DeeplineClient)().unpublishSharePage(name);
|
|
19089
|
+
if (_chunkDNMV2L7Qjs.argsWantJson.call(void 0, args)) {
|
|
19090
|
+
_chunkDNMV2L7Qjs.printCompactJson.call(void 0, status);
|
|
19091
19091
|
return 0;
|
|
19092
19092
|
}
|
|
19093
19093
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|