deepline 0.3.387 → 0.3.389
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/cli/auth-AOM2LA73.js +39 -0
- package/dist/cli/{auth-CKRRMJQU.mjs → auth-DEASEYUJ.mjs} +4 -4
- package/dist/cli/{billing-CVBGUOM6.js → billing-QIWD5GYZ.js} +73 -73
- package/dist/cli/{billing-QXZB3SP4.mjs → billing-TUTB4H6F.mjs} +4 -4
- package/dist/cli/{chunk-4HFMNLCQ.mjs → chunk-2L6BBM7Z.mjs} +4 -4
- package/dist/cli/{chunk-DVVYOV2O.js → chunk-5VCRXKAU.js} +50 -50
- package/dist/cli/{chunk-MZBR5BX2.mjs → chunk-63ZXA57X.mjs} +3 -3
- package/dist/cli/{chunk-7AOECVD3.js → chunk-7IPMWJNZ.js} +226 -226
- package/dist/cli/{chunk-7F5HBT3S.mjs → chunk-7WQGDKNO.mjs} +1 -1
- package/dist/cli/{chunk-CPB7PL4B.js → chunk-ABLS54ZL.js} +61 -61
- package/dist/cli/{chunk-HMSWH2JW.mjs → chunk-B6BQ6EAR.mjs} +6 -6
- package/dist/cli/{chunk-MTGIBXYZ.mjs → chunk-CCIEPJSX.mjs} +2 -2
- package/dist/cli/{chunk-FUTYFVJR.js → chunk-CLOICRTK.js} +6 -6
- package/dist/cli/{chunk-GJGHN34W.js → chunk-CMWDXAQH.js} +26 -26
- package/dist/cli/{chunk-3W3AW37A.js → chunk-FZXZLFNC.js} +15 -15
- package/dist/cli/{chunk-UKBXVON4.js → chunk-FZZC3A7J.js} +8 -8
- package/dist/cli/{chunk-BXRWG6ZG.mjs → chunk-GB3KEA34.mjs} +1 -1
- package/dist/cli/{chunk-BEEH7ZAL.mjs → chunk-HHRQYYHK.mjs} +7 -6
- package/dist/cli/{chunk-CQ6B46NN.js → chunk-KWGB3RWA.js} +9 -9
- package/dist/cli/{chunk-EUFASY6H.mjs → chunk-M6BQYSV3.mjs} +1 -1
- package/dist/cli/{chunk-S7HRCOFT.js → chunk-MCWGQIDV.js} +50 -49
- package/dist/cli/{chunk-4KTBZLGR.mjs → chunk-MP7FWY76.mjs} +2 -2
- package/dist/cli/{chunk-CWZRBSMO.mjs → chunk-NBXJJBBT.mjs} +1 -1
- package/dist/cli/{chunk-NJRWEFAY.js → chunk-OWP6SI5W.js} +8 -8
- package/dist/cli/{chunk-EWKW7ADZ.mjs → chunk-PPKNOVMF.mjs} +2 -2
- package/dist/cli/{chunk-RKYFX5G5.mjs → chunk-RHAP7ZW5.mjs} +2 -2
- package/dist/cli/{chunk-7JETEXCL.js → chunk-RPGSXBS3.js} +1 -1
- package/dist/cli/{chunk-LA6WXHEG.js → chunk-WRLYF4DS.js} +2 -2
- package/dist/cli/{chunk-A5L54JX6.js → chunk-Z43SUQUL.js} +4 -4
- package/dist/cli/{chunk-LQUNC2VM.mjs → chunk-Z4ZB2CDV.mjs} +1 -1
- package/dist/cli/{csv-IBQSV2LF.js → csv-FYI4XWEA.js} +12 -12
- package/dist/cli/{csv-L3NMNEK2.mjs → csv-GQ5K6MDD.mjs} +3 -3
- package/dist/cli/{db-6OPCFP3J.mjs → db-DYXQOAWZ.mjs} +4 -4
- package/dist/cli/{db-AWKMYFXN.js → db-WYSI3J43.js} +29 -29
- package/dist/cli/{describe-IFJ34VUV.js → describe-T25AHZEJ.js} +18 -18
- package/dist/cli/{describe-NEHPRI33.mjs → describe-YIIUMAZF.mjs} +8 -8
- package/dist/cli/{executions-FLGLIGRM.js → executions-3D7KAJ2C.js} +6 -6
- package/dist/cli/{executions-LDZEOSBO.mjs → executions-RYFSOPMQ.mjs} +4 -4
- package/dist/cli/{feedback-PWFQTP4G.mjs → feedback-CIZXMDMJ.mjs} +3 -3
- package/dist/cli/{feedback-W3LOHQOV.js → feedback-I7FWPC7V.js} +7 -7
- package/dist/cli/{git-E3G5SPN7.mjs → git-JCURDXPQ.mjs} +4 -4
- package/dist/cli/git-MVMIPHQ6.js +23 -0
- package/dist/cli/index.js +117 -105
- package/dist/cli/index.mjs +52 -40
- package/dist/cli/{legacy-noops-43UAYJOG.mjs → legacy-noops-4BW4EZJG.mjs} +4 -4
- package/dist/cli/{legacy-noops-LLIS3SCA.js → legacy-noops-G6F5LNUM.js} +7 -7
- package/dist/cli/{monitors-IRTHA34J.js → monitors-43UXU5C3.js} +85 -85
- package/dist/cli/{monitors-VFSBTSHJ.mjs → monitors-LTKH5IWE.mjs} +4 -4
- package/dist/cli/{org-3Z5SRXPW.js → org-7MSUEPXL.js} +64 -64
- package/dist/cli/{org-C3BNJMYT.mjs → org-I3WHUV67.mjs} +4 -4
- package/dist/cli/{play-W5XTHGLT.mjs → play-HRZXSNXV.mjs} +7 -7
- package/dist/cli/play-R5TYLP5L.js +157 -0
- package/dist/cli/{providers-ANLUHMBV.mjs → providers-BY6JPMKP.mjs} +4 -4
- package/dist/cli/{providers-W3O4DRDG.js → providers-DWLWK5VX.js} +7 -7
- package/dist/cli/{quickstart-5G65T2IR.mjs → quickstart-E647CKUQ.mjs} +3 -3
- package/dist/cli/{quickstart-6JAZF3FG.js → quickstart-QO6GCK4U.js} +5 -5
- package/dist/cli/search-34AC6FC7.js +26 -0
- package/dist/cli/{search-XQRGKA3F.mjs → search-3WUQBHRV.mjs} +5 -5
- package/dist/cli/{secrets-PUWRCDTC.js → secrets-CPNHE5XI.js} +13 -13
- package/dist/cli/{secrets-DF3EL5RU.mjs → secrets-WTGMFFP7.mjs} +4 -4
- package/dist/cli/{sessions-OYFE2CUC.mjs → sessions-6Q5E7GSY.mjs} +4 -4
- package/dist/cli/{sessions-OTRBNAPA.js → sessions-UFGGEDZP.js} +5 -5
- package/dist/cli/{settings-R7H4JXVO.js → settings-NF5726RU.js} +74 -74
- package/dist/cli/{settings-JSB64G57.mjs → settings-QMEIKOUI.mjs} +7 -7
- package/dist/cli/{setup-PL4QRM4U.js → setup-J35MMJ7C.js} +41 -41
- package/dist/cli/{setup-AJD5R5TW.mjs → setup-ZOQOJMJ7.mjs} +6 -6
- package/dist/cli/{skills-YN2BR22T.mjs → skills-UFDKCSYR.mjs} +4 -4
- package/dist/cli/skills-WGYISRE5.js +28 -0
- package/dist/cli/{tools-ATIA3P4H.mjs → tools-3SU3EUQT.mjs} +6 -6
- package/dist/cli/tools-Q642ZZ2M.js +40 -0
- package/dist/cli/{update-CWAXNG5N.mjs → update-SXYX4PMC.mjs} +6 -6
- package/dist/cli/update-T5MNWAQC.js +28 -0
- package/dist/cli/{workflow-ENCTHGP4.mjs → workflow-2LINUMOP.mjs} +5 -5
- package/dist/cli/{workflow-O2CW5YKT.js → workflow-XAIEXDUI.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +72 -72
- 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-M65RW5ZI.js +0 -39
- package/dist/cli/git-UJJKVNZ5.js +0 -23
- package/dist/cli/play-4QE3H5KN.js +0 -157
- package/dist/cli/search-HIY4H3T3.js +0 -26
- package/dist/cli/skills-HJXJ2R6P.js +0 -28
- package/dist/cli/tools-Y3HQI53B.js +0 -40
- package/dist/cli/update-F6RQFNQ5.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 _chunkOWP6SI5Wjs = require('./chunk-OWP6SI5W.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkCMWDXAQHjs = require('./chunk-CMWDXAQH.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 _chunkKWGB3RWAjs = require('./chunk-KWGB3RWA.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 _chunkCLOICRTKjs = require('./chunk-CLOICRTK.js');
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkZ43SUQULjs = require('./chunk-Z43SUQUL.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
|
+
_chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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, _chunkKWGB3RWAjs.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
|
+
_chunkCLOICRTKjs.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, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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
|
+
_chunkCLOICRTKjs.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, _chunkKWGB3RWAjs.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
|
+
_chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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 = _chunkKWGB3RWAjs.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 (_chunkCLOICRTKjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2813
|
+
_chunkCLOICRTKjs.printJsonError.call(void 0,
|
|
2814
|
+
Object.assign(new (0, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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 = _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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 _chunkKWGB3RWAjs.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 (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) _chunkCLOICRTKjs.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, _chunkKWGB3RWAjs.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
|
+
_chunkCLOICRTKjs.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: _chunkCLOICRTKjs.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}${_chunkKWGB3RWAjs.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, _chunkKWGB3RWAjs.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
|
+
_chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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, _chunkKWGB3RWAjs.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
|
+
_chunkCLOICRTKjs.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, _chunkKWGB3RWAjs.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
|
+
_chunkCLOICRTKjs.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, _chunkKWGB3RWAjs.DeeplineClient)().runs.rerun(runId, {
|
|
4206
4206
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4207
4207
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4208
4208
|
});
|
|
4209
|
-
if (
|
|
4210
|
-
|
|
4209
|
+
if (_chunkCLOICRTKjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4210
|
+
_chunkCLOICRTKjs.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 _chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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 } = _chunkCLOICRTKjs.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: _chunkZ43SUQULjs.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 = _chunkCLOICRTKjs.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 ? _chunkCLOICRTKjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkCLOICRTKjs.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 = _chunkKWGB3RWAjs.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.`
|
|
@@ -7880,7 +7880,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7880
7880
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
7881
7881
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
7882
7882
|
);
|
|
7883
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
7883
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkKWGB3RWAjs.parseLogLevel.call(void 0, options.logLevel);
|
|
7884
7884
|
if (!logLevel)
|
|
7885
7885
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
7886
7886
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -7894,13 +7894,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7894
7894
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
7895
7895
|
logLevel = "debug";
|
|
7896
7896
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
7897
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
7898
|
-
[...fullJson ? ["--full"] : [], ...
|
|
7897
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkCLOICRTKjs.parseJsonFields.call(void 0,
|
|
7898
|
+
[...fullJson ? ["--full"] : [], ..._chunkCLOICRTKjs.jsonFieldArgs.call(void 0, options.json)],
|
|
7899
7899
|
"run"
|
|
7900
7900
|
).fields;
|
|
7901
7901
|
const watch = options.wait === false ? false : base.watch;
|
|
7902
7902
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
7903
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
7903
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkCLOICRTKjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
7904
7904
|
const verboseLogs = Boolean(
|
|
7905
7905
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
7906
7906
|
);
|
|
@@ -7945,7 +7945,7 @@ function playAuthoringGraphPath(parent, filePath) {
|
|
|
7945
7945
|
// src/cli/renderers/local-play-execution.ts
|
|
7946
7946
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7947
7947
|
if (options.dryRun) {
|
|
7948
|
-
|
|
7948
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7949
7949
|
return;
|
|
7950
7950
|
}
|
|
7951
7951
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -8909,7 +8909,7 @@ function playStatusErrorText(status) {
|
|
|
8909
8909
|
function isRetryablePendingStartFailure(status) {
|
|
8910
8910
|
if (status.status !== "failed") return false;
|
|
8911
8911
|
if (status.runId && status.runId !== "pending") return false;
|
|
8912
|
-
return
|
|
8912
|
+
return _chunkKWGB3RWAjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8913
8913
|
}
|
|
8914
8914
|
function pendingStartFailureStatus(input) {
|
|
8915
8915
|
const message = input.error instanceof Error ? input.error.message : String(input.error);
|
|
@@ -8936,13 +8936,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
|
8936
8936
|
var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
8937
8937
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8938
8938
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8939
|
-
if (!
|
|
8939
|
+
if (!_chunkKWGB3RWAjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8940
8940
|
return false;
|
|
8941
8941
|
}
|
|
8942
|
-
if (
|
|
8942
|
+
if (_chunkKWGB3RWAjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8943
8943
|
return true;
|
|
8944
8944
|
}
|
|
8945
|
-
return state.verbose === true &&
|
|
8945
|
+
return state.verbose === true && _chunkKWGB3RWAjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8946
8946
|
}
|
|
8947
8947
|
function getEventPayload(event) {
|
|
8948
8948
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9449,7 +9449,7 @@ function resolveRunPlayName(status, runId) {
|
|
|
9449
9449
|
}
|
|
9450
9450
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
9451
9451
|
if (open2 && dashboardUrl) {
|
|
9452
|
-
|
|
9452
|
+
_chunkCLOICRTKjs.openInBrowser.call(void 0, dashboardUrl);
|
|
9453
9453
|
}
|
|
9454
9454
|
}
|
|
9455
9455
|
function printPlayLogLines(input) {
|
|
@@ -9511,7 +9511,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9511
9511
|
billing: false
|
|
9512
9512
|
});
|
|
9513
9513
|
} catch (error) {
|
|
9514
|
-
if (
|
|
9514
|
+
if (_chunkKWGB3RWAjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9515
9515
|
return null;
|
|
9516
9516
|
}
|
|
9517
9517
|
throw error;
|
|
@@ -9700,7 +9700,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9700
9700
|
billing: false
|
|
9701
9701
|
});
|
|
9702
9702
|
} catch (error) {
|
|
9703
|
-
if (
|
|
9703
|
+
if (_chunkKWGB3RWAjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9704
9704
|
return null;
|
|
9705
9705
|
}
|
|
9706
9706
|
throw error;
|
|
@@ -9908,7 +9908,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9908
9908
|
lastPhase
|
|
9909
9909
|
});
|
|
9910
9910
|
}
|
|
9911
|
-
if (lastKnownWorkflowId &&
|
|
9911
|
+
if (lastKnownWorkflowId && _chunkKWGB3RWAjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9912
9912
|
if (timeout) {
|
|
9913
9913
|
clearTimeout(timeout);
|
|
9914
9914
|
}
|
|
@@ -9944,7 +9944,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9944
9944
|
onRunAdmitted: confirmAdmission
|
|
9945
9945
|
});
|
|
9946
9946
|
}
|
|
9947
|
-
if (!lastKnownWorkflowId &&
|
|
9947
|
+
if (!lastKnownWorkflowId && _chunkKWGB3RWAjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9948
9948
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
9949
9949
|
phase: "cli.play_start_stream_transient_failure",
|
|
9950
9950
|
ms: Date.now() - startedAt,
|
|
@@ -10043,7 +10043,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10043
10043
|
"logs"
|
|
10044
10044
|
]);
|
|
10045
10045
|
function formatPlayLogLine(rawLine, state) {
|
|
10046
|
-
const classified =
|
|
10046
|
+
const classified = _chunkKWGB3RWAjs.classifyLogLine.call(void 0, rawLine);
|
|
10047
10047
|
const line = classified.line;
|
|
10048
10048
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10049
10049
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _314 => _314[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10058,14 +10058,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10058
10058
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10059
10059
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10060
10060
|
if (providerWait && !state.verbose) {
|
|
10061
|
-
return
|
|
10061
|
+
return _chunkKWGB3RWAjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10062
10062
|
}
|
|
10063
10063
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10064
10064
|
if (mapProgress && !state.verbose) {
|
|
10065
|
-
return
|
|
10065
|
+
return _chunkKWGB3RWAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10066
10066
|
}
|
|
10067
10067
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10068
|
-
if (!
|
|
10068
|
+
if (!_chunkKWGB3RWAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10069
10069
|
return null;
|
|
10070
10070
|
}
|
|
10071
10071
|
if (state.emittedRunnerStarted) {
|
|
@@ -10078,7 +10078,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10078
10078
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10079
10079
|
);
|
|
10080
10080
|
if (mapStart) {
|
|
10081
|
-
if (!
|
|
10081
|
+
if (!_chunkKWGB3RWAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10082
10082
|
return null;
|
|
10083
10083
|
}
|
|
10084
10084
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10088,7 +10088,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10088
10088
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10089
10089
|
);
|
|
10090
10090
|
if (mapDone) {
|
|
10091
|
-
if (!
|
|
10091
|
+
if (!_chunkKWGB3RWAjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10092
10092
|
return null;
|
|
10093
10093
|
}
|
|
10094
10094
|
const [, results, executed, cached] = mapDone;
|
|
@@ -11375,7 +11375,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11375
11375
|
(line) => typeof line === "string"
|
|
11376
11376
|
);
|
|
11377
11377
|
if (tail.length === 0) return [];
|
|
11378
|
-
const shown = tail.map((line) =>
|
|
11378
|
+
const shown = tail.map((line) => _chunkKWGB3RWAjs.classifyLogLine.call(void 0, line)).filter(
|
|
11379
11379
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11380
11380
|
).slice(-8);
|
|
11381
11381
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11658,7 +11658,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11658
11658
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _395 => _395.hits]), () => ( null));
|
|
11659
11659
|
if (jsonOutput) {
|
|
11660
11660
|
const payload2 = _optionalChain([options, 'optionalAccess', _396 => _396.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11661
|
-
|
|
11661
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
11662
11662
|
hits ? { ...payload2, hits } : payload2,
|
|
11663
11663
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _397 => _397.jsonFields]) }
|
|
11664
11664
|
);
|
|
@@ -11674,7 +11674,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11674
11674
|
...buildPlayCompletionTextLines(status),
|
|
11675
11675
|
...formatRunHitsLines(hits)
|
|
11676
11676
|
];
|
|
11677
|
-
|
|
11677
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11678
11678
|
json: false,
|
|
11679
11679
|
text: `${lines2.join("\n")}
|
|
11680
11680
|
`
|
|
@@ -11725,7 +11725,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11725
11725
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11726
11726
|
const compact = compactPlayStatus(status);
|
|
11727
11727
|
const payload = _optionalChain([options, 'optionalAccess', _399 => _399.fullJson]) ? status : compact;
|
|
11728
|
-
|
|
11728
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
11729
11729
|
{
|
|
11730
11730
|
...payload,
|
|
11731
11731
|
render: {
|
|
@@ -12495,7 +12495,7 @@ function writeStartedPlayRun(input) {
|
|
|
12495
12495
|
dashboardUrl: input.dashboardUrl,
|
|
12496
12496
|
package: input.package
|
|
12497
12497
|
};
|
|
12498
|
-
|
|
12498
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12499
12499
|
json: true,
|
|
12500
12500
|
fields: input.jsonFields
|
|
12501
12501
|
});
|
|
@@ -12517,7 +12517,7 @@ function writeStartedPlayRun(input) {
|
|
|
12517
12517
|
input.progress.writeLine(output2, process.stdout);
|
|
12518
12518
|
return;
|
|
12519
12519
|
}
|
|
12520
|
-
|
|
12520
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12521
12521
|
json: false,
|
|
12522
12522
|
text: `${output2}
|
|
12523
12523
|
`
|
|
@@ -12546,7 +12546,7 @@ function writeStartedPlayRun(input) {
|
|
|
12546
12546
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12547
12547
|
];
|
|
12548
12548
|
if (input.jsonOutput) {
|
|
12549
|
-
|
|
12549
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12550
12550
|
return;
|
|
12551
12551
|
}
|
|
12552
12552
|
if (input.dashboardUrl) {
|
|
@@ -12557,7 +12557,7 @@ function writeStartedPlayRun(input) {
|
|
|
12557
12557
|
input.progress.writeLine(output, process.stdout);
|
|
12558
12558
|
return;
|
|
12559
12559
|
}
|
|
12560
|
-
|
|
12560
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
12561
12561
|
{
|
|
12562
12562
|
...payload,
|
|
12563
12563
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12567,7 +12567,7 @@ function writeStartedPlayRun(input) {
|
|
|
12567
12567
|
);
|
|
12568
12568
|
}
|
|
12569
12569
|
function parsePlayCheckOptions(args) {
|
|
12570
|
-
const selection =
|
|
12570
|
+
const selection = _chunkCLOICRTKjs.parseJsonFields.call(void 0, args, "check");
|
|
12571
12571
|
args = selection.args;
|
|
12572
12572
|
const target = args[0];
|
|
12573
12573
|
if (!target || target.startsWith("-")) {
|
|
@@ -12579,7 +12579,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12579
12579
|
if (arg !== "--json" && arg !== "--full")
|
|
12580
12580
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12581
12581
|
}
|
|
12582
|
-
const jsonOutput =
|
|
12582
|
+
const jsonOutput = _chunkCLOICRTKjs.argsWantJson.call(void 0, args);
|
|
12583
12583
|
return {
|
|
12584
12584
|
target,
|
|
12585
12585
|
jsonOutput,
|
|
@@ -12655,7 +12655,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12655
12655
|
useLatest,
|
|
12656
12656
|
expectedArtifactHash,
|
|
12657
12657
|
dryRun,
|
|
12658
|
-
jsonOutput:
|
|
12658
|
+
jsonOutput: _chunkCLOICRTKjs.argsWantJson.call(void 0, args)
|
|
12659
12659
|
};
|
|
12660
12660
|
}
|
|
12661
12661
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12696,7 +12696,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12696
12696
|
target,
|
|
12697
12697
|
expectedArtifactHash,
|
|
12698
12698
|
dryRun,
|
|
12699
|
-
jsonOutput:
|
|
12699
|
+
jsonOutput: _chunkCLOICRTKjs.argsWantJson.call(void 0, args)
|
|
12700
12700
|
};
|
|
12701
12701
|
}
|
|
12702
12702
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12907,7 +12907,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12907
12907
|
async function handlePlayCheck(args) {
|
|
12908
12908
|
const options = parsePlayCheckOptions(args);
|
|
12909
12909
|
if (!isFileTarget2(options.target)) {
|
|
12910
|
-
const client = new (0,
|
|
12910
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
12911
12911
|
try {
|
|
12912
12912
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12913
12913
|
command: "check"
|
|
@@ -12936,7 +12936,7 @@ async function handlePlayCheck(args) {
|
|
|
12936
12936
|
},
|
|
12937
12937
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12938
12938
|
};
|
|
12939
|
-
|
|
12939
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0, result, {
|
|
12940
12940
|
json: options.jsonOutput,
|
|
12941
12941
|
fields: options.jsonFields,
|
|
12942
12942
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12946,7 +12946,7 @@ async function handlePlayCheck(args) {
|
|
|
12946
12946
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12947
12947
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12948
12948
|
if (options.jsonOutput) {
|
|
12949
|
-
|
|
12949
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
12950
12950
|
{
|
|
12951
12951
|
kind: "play_check",
|
|
12952
12952
|
checked: "named_contract",
|
|
@@ -12988,7 +12988,7 @@ async function handlePlayCheck(args) {
|
|
|
12988
12988
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12989
12989
|
publishCommand: _optionalChain([primary, 'optionalAccess', _446 => _446.result, 'access', _447 => _447.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12990
12990
|
});
|
|
12991
|
-
|
|
12991
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0, output, {
|
|
12992
12992
|
json: options.jsonOutput,
|
|
12993
12993
|
fields: options.jsonFields,
|
|
12994
12994
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -13042,7 +13042,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13042
13042
|
}
|
|
13043
13043
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13044
13044
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13045
|
-
const client = new (0,
|
|
13045
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
13046
13046
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13047
13047
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
13048
13048
|
playName: node.playName,
|
|
@@ -13119,7 +13119,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13119
13119
|
);
|
|
13120
13120
|
return 0;
|
|
13121
13121
|
}
|
|
13122
|
-
client = new (0,
|
|
13122
|
+
client = new (0, _chunkKWGB3RWAjs.DeeplineClient)(playRunClientOptions(options));
|
|
13123
13123
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
13124
13124
|
if (canDeferCompilerManifest) {
|
|
13125
13125
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -13315,7 +13315,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13315
13315
|
if (options.target.kind !== "name") {
|
|
13316
13316
|
throw new Error("Expected a named play run target.");
|
|
13317
13317
|
}
|
|
13318
|
-
const client = new (0,
|
|
13318
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)(playRunClientOptions(options));
|
|
13319
13319
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13320
13320
|
const playName = options.target.name;
|
|
13321
13321
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -13714,10 +13714,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13714
13714
|
);
|
|
13715
13715
|
return `${lines.join("\n")}
|
|
13716
13716
|
|
|
13717
|
-
${
|
|
13717
|
+
${_chunkCLOICRTKjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13718
13718
|
}
|
|
13719
13719
|
async function handleRunGet(args) {
|
|
13720
|
-
const selection =
|
|
13720
|
+
const selection = _chunkCLOICRTKjs.parseJsonFields.call(void 0,
|
|
13721
13721
|
args,
|
|
13722
13722
|
args.includes("--config") ? "config" : "get"
|
|
13723
13723
|
);
|
|
@@ -13730,7 +13730,7 @@ async function handleRunGet(args) {
|
|
|
13730
13730
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13731
13731
|
return 1;
|
|
13732
13732
|
}
|
|
13733
|
-
const client = new (0,
|
|
13733
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
13734
13734
|
if (args.includes("--web-url")) {
|
|
13735
13735
|
const status2 = await client.runs.get(runId, { full: false });
|
|
13736
13736
|
const playName2 = resolveRunPlayName(status2, runId);
|
|
@@ -13739,7 +13739,7 @@ async function handleRunGet(args) {
|
|
|
13739
13739
|
return 1;
|
|
13740
13740
|
}
|
|
13741
13741
|
const dashboardUrl2 = buildPlayDashboardUrl(client.baseUrl, playName2);
|
|
13742
|
-
|
|
13742
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
13743
13743
|
{ dashboardUrl: dashboardUrl2 },
|
|
13744
13744
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
13745
13745
|
` }
|
|
@@ -13759,7 +13759,7 @@ async function handleRunGet(args) {
|
|
|
13759
13759
|
"This server does not support recorded configuration reads."
|
|
13760
13760
|
);
|
|
13761
13761
|
}
|
|
13762
|
-
|
|
13762
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
13763
13763
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13764
13764
|
{ json: true, fields: selection.fields }
|
|
13765
13765
|
);
|
|
@@ -13767,7 +13767,7 @@ async function handleRunGet(args) {
|
|
|
13767
13767
|
}
|
|
13768
13768
|
if (args.includes("--input")) {
|
|
13769
13769
|
const input = await client.getRunInput(runId);
|
|
13770
|
-
|
|
13770
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13771
13771
|
return 0;
|
|
13772
13772
|
}
|
|
13773
13773
|
const full = args.includes("--full");
|
|
@@ -13783,8 +13783,8 @@ async function handleRunGet(args) {
|
|
|
13783
13783
|
}) : status;
|
|
13784
13784
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13785
13785
|
const legacyDashboardUrl = legacyPlayName ? buildPlayDashboardUrl(client.baseUrl, legacyPlayName) : null;
|
|
13786
|
-
if (
|
|
13787
|
-
|
|
13786
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
13787
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
13788
13788
|
{
|
|
13789
13789
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13790
13790
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -13794,7 +13794,7 @@ async function handleRunGet(args) {
|
|
|
13794
13794
|
} else {
|
|
13795
13795
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13796
13796
|
if (legacyDashboardUrl)
|
|
13797
|
-
|
|
13797
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
13798
13798
|
{ dashboardUrl: legacyDashboardUrl },
|
|
13799
13799
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
13800
13800
|
` }
|
|
@@ -13809,10 +13809,10 @@ async function handleRunGet(args) {
|
|
|
13809
13809
|
readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
|
|
13810
13810
|
]);
|
|
13811
13811
|
const hitLines = formatRunHitsLines(hits);
|
|
13812
|
-
const json =
|
|
13812
|
+
const json = _chunkCLOICRTKjs.argsWantJson.call(void 0, args);
|
|
13813
13813
|
const playName = resolveRunPlayName(status, runId);
|
|
13814
13814
|
const dashboardUrl = playName ? buildPlayDashboardUrl(client.baseUrl, playName) : void 0;
|
|
13815
|
-
|
|
13815
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
13816
13816
|
{
|
|
13817
13817
|
...overview,
|
|
13818
13818
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13916,9 +13916,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13916
13916
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13917
13917
|
return 1;
|
|
13918
13918
|
}
|
|
13919
|
-
const status = await new (0,
|
|
13920
|
-
if (
|
|
13921
|
-
|
|
13919
|
+
const status = await new (0, _chunkKWGB3RWAjs.DeeplineClient)().runs.status(runId);
|
|
13920
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
13921
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13922
13922
|
return 0;
|
|
13923
13923
|
}
|
|
13924
13924
|
if (!status.available) {
|
|
@@ -13958,7 +13958,7 @@ async function handleRunsRerun(args) {
|
|
|
13958
13958
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13959
13959
|
return 1;
|
|
13960
13960
|
}
|
|
13961
|
-
const options = { json:
|
|
13961
|
+
const options = { json: _chunkCLOICRTKjs.argsWantJson.call(void 0, args) };
|
|
13962
13962
|
for (let index = 0; index < args.length; index += 1) {
|
|
13963
13963
|
if (args[index] === "--idempotency-key") {
|
|
13964
13964
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14023,8 +14023,8 @@ ${usage2}
|
|
|
14023
14023
|
Discover Plays: ${next.discover}
|
|
14024
14024
|
Active runs: ${next.running}`
|
|
14025
14025
|
);
|
|
14026
|
-
if (
|
|
14027
|
-
|
|
14026
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
14027
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
14028
14028
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14029
14029
|
{ json: true }
|
|
14030
14030
|
);
|
|
@@ -14039,7 +14039,7 @@ Active runs: ${next.running}`
|
|
|
14039
14039
|
console.error("--offset requires --play.");
|
|
14040
14040
|
return 1;
|
|
14041
14041
|
}
|
|
14042
|
-
const client = new (0,
|
|
14042
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
14043
14043
|
const page = await client.runs.listPage({
|
|
14044
14044
|
...playName ? { play: playName } : {},
|
|
14045
14045
|
...statusFilter ? { status: statusFilter } : {},
|
|
@@ -14108,7 +14108,7 @@ Active runs: ${next.running}`
|
|
|
14108
14108
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14109
14109
|
);
|
|
14110
14110
|
}
|
|
14111
|
-
|
|
14111
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
14112
14112
|
{
|
|
14113
14113
|
runs,
|
|
14114
14114
|
count: runs.length,
|
|
@@ -14122,7 +14122,7 @@ Active runs: ${next.running}`
|
|
|
14122
14122
|
},
|
|
14123
14123
|
render: { sections: [{ title: "runs", lines }] }
|
|
14124
14124
|
},
|
|
14125
|
-
{ json:
|
|
14125
|
+
{ json: _chunkCLOICRTKjs.argsWantJson.call(void 0, args) }
|
|
14126
14126
|
);
|
|
14127
14127
|
return 0;
|
|
14128
14128
|
}
|
|
@@ -14152,7 +14152,7 @@ async function handleRunTail(args) {
|
|
|
14152
14152
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14153
14153
|
return 1;
|
|
14154
14154
|
}
|
|
14155
|
-
const parsed =
|
|
14155
|
+
const parsed = _chunkKWGB3RWAjs.parseLogLevel.call(void 0, value);
|
|
14156
14156
|
if (!parsed) {
|
|
14157
14157
|
console.error(
|
|
14158
14158
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14190,9 +14190,9 @@ async function handleRunTail(args) {
|
|
|
14190
14190
|
);
|
|
14191
14191
|
return 1;
|
|
14192
14192
|
}
|
|
14193
|
-
const client = new (0,
|
|
14193
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
14194
14194
|
const jsonLines = args.includes("--jsonl");
|
|
14195
|
-
const jsonOutput = !jsonLines &&
|
|
14195
|
+
const jsonOutput = !jsonLines && _chunkCLOICRTKjs.argsWantJson.call(void 0, args);
|
|
14196
14196
|
const compact = args.includes("--compact");
|
|
14197
14197
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14198
14198
|
const compactState = {
|
|
@@ -14273,7 +14273,7 @@ async function handleRunLogs(args) {
|
|
|
14273
14273
|
]);
|
|
14274
14274
|
const cursorIndex = args.indexOf("--cursor");
|
|
14275
14275
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14276
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14276
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkKWGB3RWAjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14277
14277
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14278
14278
|
return handleRunEventSearch(args);
|
|
14279
14279
|
}
|
|
@@ -14307,7 +14307,7 @@ async function handleRunLogs(args) {
|
|
|
14307
14307
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14308
14308
|
return 1;
|
|
14309
14309
|
}
|
|
14310
|
-
const parsed =
|
|
14310
|
+
const parsed = _chunkKWGB3RWAjs.parseLogLevel.call(void 0, value);
|
|
14311
14311
|
if (!parsed) {
|
|
14312
14312
|
console.error(
|
|
14313
14313
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14354,12 +14354,12 @@ async function handleRunLogs(args) {
|
|
|
14354
14354
|
);
|
|
14355
14355
|
return 1;
|
|
14356
14356
|
}
|
|
14357
|
-
const client = new (0,
|
|
14357
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
14358
14358
|
if (outPath) {
|
|
14359
14359
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14360
|
-
const logs = result2.entries.filter((line) =>
|
|
14360
|
+
const logs = result2.entries.filter((line) => _chunkKWGB3RWAjs.logLevelReaches.call(void 0, _chunkKWGB3RWAjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkKWGB3RWAjs.classifyLogLine.call(void 0, line).line);
|
|
14361
14361
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14362
|
-
|
|
14362
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
14363
14363
|
{
|
|
14364
14364
|
runId: result2.runId,
|
|
14365
14365
|
log_path: outPath,
|
|
@@ -14382,7 +14382,7 @@ async function handleRunLogs(args) {
|
|
|
14382
14382
|
]
|
|
14383
14383
|
}
|
|
14384
14384
|
},
|
|
14385
|
-
{ json:
|
|
14385
|
+
{ json: _chunkCLOICRTKjs.argsWantJson.call(void 0, args) }
|
|
14386
14386
|
);
|
|
14387
14387
|
return 0;
|
|
14388
14388
|
}
|
|
@@ -14413,7 +14413,7 @@ async function handleRunLogs(args) {
|
|
|
14413
14413
|
}
|
|
14414
14414
|
};
|
|
14415
14415
|
const text = buildRunLogsText(filteredResult);
|
|
14416
|
-
|
|
14416
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
14417
14417
|
{
|
|
14418
14418
|
runId: result.runId,
|
|
14419
14419
|
totalCount: result.totalCount,
|
|
@@ -14437,7 +14437,7 @@ async function handleRunLogs(args) {
|
|
|
14437
14437
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14438
14438
|
},
|
|
14439
14439
|
{
|
|
14440
|
-
json:
|
|
14440
|
+
json: _chunkCLOICRTKjs.argsWantJson.call(void 0, args),
|
|
14441
14441
|
text
|
|
14442
14442
|
}
|
|
14443
14443
|
);
|
|
@@ -14461,7 +14461,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14461
14461
|
);
|
|
14462
14462
|
}
|
|
14463
14463
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14464
|
-
(entry) =>
|
|
14464
|
+
(entry) => _chunkKWGB3RWAjs.logLevelReaches.call(void 0, _chunkKWGB3RWAjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14465
14465
|
);
|
|
14466
14466
|
const selected = matching.slice(-limit);
|
|
14467
14467
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14471,7 +14471,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14471
14471
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _489 => _489.at, 'call', _490 => _490(-1), 'optionalAccess', _491 => _491.seq]), () => ( null)),
|
|
14472
14472
|
truncated: result.truncated || olderMatchesExist,
|
|
14473
14473
|
hasMore: olderMatchesExist,
|
|
14474
|
-
nextCursor: olderMatchesExist ?
|
|
14474
|
+
nextCursor: olderMatchesExist ? _chunkKWGB3RWAjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14475
14475
|
};
|
|
14476
14476
|
}
|
|
14477
14477
|
async function handleRunEventSearch(args) {
|
|
@@ -14538,7 +14538,7 @@ ${usage2}`);
|
|
|
14538
14538
|
namespace,
|
|
14539
14539
|
...backend ? { backend } : {}
|
|
14540
14540
|
} : void 0;
|
|
14541
|
-
const client = new (0,
|
|
14541
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
14542
14542
|
const result = await client.runs.searchEvents({
|
|
14543
14543
|
...runId ? { runId } : {},
|
|
14544
14544
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14610,7 +14610,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14610
14610
|
"--limit",
|
|
14611
14611
|
String(limit)
|
|
14612
14612
|
].join(" ") : null;
|
|
14613
|
-
|
|
14613
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
14614
14614
|
{
|
|
14615
14615
|
events,
|
|
14616
14616
|
nextCursor: result.nextCursor,
|
|
@@ -14621,14 +14621,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14621
14621
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14622
14622
|
},
|
|
14623
14623
|
{
|
|
14624
|
-
json:
|
|
14624
|
+
json: _chunkCLOICRTKjs.argsWantJson.call(void 0, args),
|
|
14625
14625
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14626
14626
|
}
|
|
14627
14627
|
);
|
|
14628
14628
|
return 0;
|
|
14629
14629
|
}
|
|
14630
14630
|
function buildRunLogsText(result) {
|
|
14631
|
-
const lines = result.entries.map((line) =>
|
|
14631
|
+
const lines = result.entries.map((line) => _chunkKWGB3RWAjs.classifyLogLine.call(void 0, line).line);
|
|
14632
14632
|
if (result.warning) {
|
|
14633
14633
|
if (lines.length > 0) lines.push("");
|
|
14634
14634
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14662,7 +14662,7 @@ async function handleRunStop(args) {
|
|
|
14662
14662
|
reason = args[++index];
|
|
14663
14663
|
}
|
|
14664
14664
|
}
|
|
14665
|
-
const client = new (0,
|
|
14665
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
14666
14666
|
const result = await client.runs.stop(runId, { reason });
|
|
14667
14667
|
const state = resolveRunStopState(result);
|
|
14668
14668
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14677,7 +14677,7 @@ async function handleRunStop(args) {
|
|
|
14677
14677
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14678
14678
|
`inspect: deepline runs get ${runId} --full`
|
|
14679
14679
|
];
|
|
14680
|
-
|
|
14680
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
14681
14681
|
{
|
|
14682
14682
|
...cancelling,
|
|
14683
14683
|
state,
|
|
@@ -14692,7 +14692,7 @@ async function handleRunStop(args) {
|
|
|
14692
14692
|
]
|
|
14693
14693
|
}
|
|
14694
14694
|
},
|
|
14695
|
-
{ json:
|
|
14695
|
+
{ json: _chunkCLOICRTKjs.argsWantJson.call(void 0, args) }
|
|
14696
14696
|
);
|
|
14697
14697
|
return 0;
|
|
14698
14698
|
}
|
|
@@ -14709,7 +14709,7 @@ async function handleRunStop(args) {
|
|
|
14709
14709
|
];
|
|
14710
14710
|
process.stderr.write(`${lines2.join("\n")}
|
|
14711
14711
|
`);
|
|
14712
|
-
|
|
14712
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
14713
14713
|
{
|
|
14714
14714
|
...result,
|
|
14715
14715
|
render: {
|
|
@@ -14724,7 +14724,7 @@ async function handleRunStop(args) {
|
|
|
14724
14724
|
]
|
|
14725
14725
|
}
|
|
14726
14726
|
},
|
|
14727
|
-
{ json:
|
|
14727
|
+
{ json: _chunkCLOICRTKjs.argsWantJson.call(void 0, args) }
|
|
14728
14728
|
);
|
|
14729
14729
|
return 1;
|
|
14730
14730
|
}
|
|
@@ -14735,12 +14735,12 @@ async function handleRunStop(args) {
|
|
|
14735
14735
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14736
14736
|
] : []
|
|
14737
14737
|
];
|
|
14738
|
-
|
|
14738
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
14739
14739
|
{
|
|
14740
14740
|
...result,
|
|
14741
14741
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14742
14742
|
},
|
|
14743
|
-
{ json:
|
|
14743
|
+
{ json: _chunkCLOICRTKjs.argsWantJson.call(void 0, args) }
|
|
14744
14744
|
);
|
|
14745
14745
|
return 0;
|
|
14746
14746
|
}
|
|
@@ -14790,18 +14790,18 @@ async function handleRunStopAll(args) {
|
|
|
14790
14790
|
reason = args[++index];
|
|
14791
14791
|
}
|
|
14792
14792
|
}
|
|
14793
|
-
const client = new (0,
|
|
14793
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
14794
14794
|
if (dryRun) {
|
|
14795
14795
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14796
14796
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14797
|
-
|
|
14797
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
14798
14798
|
{
|
|
14799
14799
|
...result2,
|
|
14800
14800
|
render: {
|
|
14801
14801
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14802
14802
|
}
|
|
14803
14803
|
},
|
|
14804
|
-
{ json:
|
|
14804
|
+
{ json: _chunkCLOICRTKjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14805
14805
|
` }
|
|
14806
14806
|
);
|
|
14807
14807
|
return 0;
|
|
@@ -14814,17 +14814,17 @@ async function handleRunStopAll(args) {
|
|
|
14814
14814
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14815
14815
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14816
14816
|
];
|
|
14817
|
-
|
|
14817
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
14818
14818
|
{
|
|
14819
14819
|
...result,
|
|
14820
14820
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14821
14821
|
},
|
|
14822
|
-
{ json:
|
|
14822
|
+
{ json: _chunkCLOICRTKjs.argsWantJson.call(void 0, args) }
|
|
14823
14823
|
);
|
|
14824
14824
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14825
14825
|
}
|
|
14826
14826
|
async function handleRunExport(args) {
|
|
14827
|
-
const selection =
|
|
14827
|
+
const selection = _chunkCLOICRTKjs.parseJsonFields.call(void 0, args, "export");
|
|
14828
14828
|
args = selection.args;
|
|
14829
14829
|
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]";
|
|
14830
14830
|
let runId;
|
|
@@ -14883,16 +14883,16 @@ async function handleRunExport(args) {
|
|
|
14883
14883
|
"INVALID_ARGUMENT"
|
|
14884
14884
|
);
|
|
14885
14885
|
}
|
|
14886
|
-
const client = new (0,
|
|
14886
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
14887
14887
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14888
14888
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14889
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
14889
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkCLOICRTKjs.argsWantJson.call(void 0, args));
|
|
14890
14890
|
try {
|
|
14891
14891
|
await waitForPlayCompletionByWatch({
|
|
14892
14892
|
client,
|
|
14893
14893
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14894
14894
|
workflowId: runId,
|
|
14895
|
-
jsonOutput:
|
|
14895
|
+
jsonOutput: _chunkCLOICRTKjs.argsWantJson.call(void 0, args),
|
|
14896
14896
|
emitLogs: false,
|
|
14897
14897
|
waitTimeoutMs,
|
|
14898
14898
|
startedAt: Date.now(),
|
|
@@ -14992,8 +14992,8 @@ async function handleRunExport(args) {
|
|
|
14992
14992
|
"utf-8"
|
|
14993
14993
|
);
|
|
14994
14994
|
}
|
|
14995
|
-
|
|
14996
|
-
json:
|
|
14995
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0, payload, {
|
|
14996
|
+
json: _chunkCLOICRTKjs.argsWantJson.call(void 0, args),
|
|
14997
14997
|
fields: selection.fields,
|
|
14998
14998
|
text: `${lines.join("\n")}
|
|
14999
14999
|
`
|
|
@@ -15014,10 +15014,10 @@ async function handlePlayGet(args) {
|
|
|
15014
15014
|
);
|
|
15015
15015
|
return 2;
|
|
15016
15016
|
}
|
|
15017
|
-
const client = new (0,
|
|
15017
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
15018
15018
|
const explicitJson = args.includes("--json");
|
|
15019
15019
|
const sourceOutput = args.includes("--source");
|
|
15020
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
15020
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkCLOICRTKjs.argsWantJson.call(void 0, args);
|
|
15021
15021
|
const requestedRevisionFlags = [
|
|
15022
15022
|
args.includes("--working"),
|
|
15023
15023
|
args.includes("--live"),
|
|
@@ -15077,7 +15077,7 @@ async function handlePlayGet(args) {
|
|
|
15077
15077
|
}
|
|
15078
15078
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15079
15079
|
if (jsonOutput) {
|
|
15080
|
-
|
|
15080
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, {
|
|
15081
15081
|
...detail,
|
|
15082
15082
|
...materializedFile ? {
|
|
15083
15083
|
message: loadedMessage,
|
|
@@ -15169,8 +15169,8 @@ async function handlePlayVersions(args) {
|
|
|
15169
15169
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15170
15170
|
return 1;
|
|
15171
15171
|
}
|
|
15172
|
-
const client = new (0,
|
|
15173
|
-
const jsonOutput =
|
|
15172
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
15173
|
+
const jsonOutput = _chunkCLOICRTKjs.argsWantJson.call(void 0, args);
|
|
15174
15174
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15175
15175
|
command: "versions"
|
|
15176
15176
|
});
|
|
@@ -15178,7 +15178,7 @@ async function handlePlayVersions(args) {
|
|
|
15178
15178
|
parseReferencedPlayTarget2(playName).playName
|
|
15179
15179
|
);
|
|
15180
15180
|
if (jsonOutput) {
|
|
15181
|
-
|
|
15181
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, { versions });
|
|
15182
15182
|
return 0;
|
|
15183
15183
|
}
|
|
15184
15184
|
if (versions.length === 0) {
|
|
@@ -15210,9 +15210,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
15210
15210
|
"signals"
|
|
15211
15211
|
];
|
|
15212
15212
|
async function handlePlayList(args) {
|
|
15213
|
-
const jsonOutput =
|
|
15213
|
+
const jsonOutput = _chunkCLOICRTKjs.argsWantJson.call(void 0, args);
|
|
15214
15214
|
const showCost = args.includes("--show-cost");
|
|
15215
|
-
const client = new (0,
|
|
15215
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
15216
15216
|
const categoriesIndex = args.indexOf("--categories");
|
|
15217
15217
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _527 => _527[categoriesIndex + 1], 'optionalAccess', _528 => _528.trim, 'call', _529 => _529()]) : void 0;
|
|
15218
15218
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15309,7 +15309,7 @@ async function handlePlayList(args) {
|
|
|
15309
15309
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15310
15310
|
lines.push(`Next page: ${nextPage}`);
|
|
15311
15311
|
}
|
|
15312
|
-
|
|
15312
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
15313
15313
|
{
|
|
15314
15314
|
plays,
|
|
15315
15315
|
count: plays.length,
|
|
@@ -15327,7 +15327,7 @@ async function handlePlayList(args) {
|
|
|
15327
15327
|
}
|
|
15328
15328
|
async function handlePlayPin(args, pinned) {
|
|
15329
15329
|
const target = _optionalChain([args, 'access', _536 => _536.find, 'call', _537 => _537((arg) => !arg.startsWith("-")), 'optionalAccess', _538 => _538.trim, 'call', _539 => _539()]);
|
|
15330
|
-
const jsonOutput =
|
|
15330
|
+
const jsonOutput = _chunkCLOICRTKjs.argsWantJson.call(void 0, args);
|
|
15331
15331
|
const dryRun = args.includes("--dry-run");
|
|
15332
15332
|
if (!target) {
|
|
15333
15333
|
console.error(
|
|
@@ -15345,11 +15345,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15345
15345
|
const name = parsedTarget.playName;
|
|
15346
15346
|
const plan = { name, pinned, dryRun };
|
|
15347
15347
|
if (dryRun) {
|
|
15348
|
-
|
|
15348
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, plan);
|
|
15349
15349
|
return 0;
|
|
15350
15350
|
}
|
|
15351
|
-
const result = await new (0,
|
|
15352
|
-
if (jsonOutput)
|
|
15351
|
+
const result = await new (0, _chunkKWGB3RWAjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15352
|
+
if (jsonOutput) _chunkCLOICRTKjs.printCompactJson.call(void 0, result);
|
|
15353
15353
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15354
15354
|
return 0;
|
|
15355
15355
|
}
|
|
@@ -15365,7 +15365,7 @@ function csvColumnLines(csvInput) {
|
|
|
15365
15365
|
const headers = [defaults[column]].flat().filter((header) => header && header !== column);
|
|
15366
15366
|
return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
|
|
15367
15367
|
}),
|
|
15368
|
-
|
|
15368
|
+
_chunkKWGB3RWAjs.CSV_HEADER_MATCHING_NOTE
|
|
15369
15369
|
];
|
|
15370
15370
|
}
|
|
15371
15371
|
function describedPlay(play) {
|
|
@@ -15531,12 +15531,12 @@ async function handlePlayGrep(args) {
|
|
|
15531
15531
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15532
15532
|
return 1;
|
|
15533
15533
|
}
|
|
15534
|
-
const client = new (0,
|
|
15534
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
15535
15535
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15536
15536
|
summarizePlayGrepResult
|
|
15537
15537
|
);
|
|
15538
|
-
if (
|
|
15539
|
-
|
|
15538
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
15539
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, {
|
|
15540
15540
|
plays: results,
|
|
15541
15541
|
count: results.length,
|
|
15542
15542
|
query,
|
|
@@ -15559,7 +15559,7 @@ async function handlePlayGrep(args) {
|
|
|
15559
15559
|
return 0;
|
|
15560
15560
|
}
|
|
15561
15561
|
async function handlePlayDescribe(args) {
|
|
15562
|
-
const selection =
|
|
15562
|
+
const selection = _chunkCLOICRTKjs.parseJsonFields.call(void 0, args, "describe");
|
|
15563
15563
|
args = selection.args;
|
|
15564
15564
|
const playName = args[0];
|
|
15565
15565
|
if (!playName) {
|
|
@@ -15593,8 +15593,8 @@ async function handlePlayDescribe(args) {
|
|
|
15593
15593
|
`deepline plays check ${playName}`,
|
|
15594
15594
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15595
15595
|
];
|
|
15596
|
-
if (
|
|
15597
|
-
|
|
15596
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
15597
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, {
|
|
15598
15598
|
ok: false,
|
|
15599
15599
|
error: { message },
|
|
15600
15600
|
next
|
|
@@ -15608,7 +15608,7 @@ async function handlePlayDescribe(args) {
|
|
|
15608
15608
|
}
|
|
15609
15609
|
return 2;
|
|
15610
15610
|
}
|
|
15611
|
-
const client = new (0,
|
|
15611
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
15612
15612
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15613
15613
|
command: "describe"
|
|
15614
15614
|
});
|
|
@@ -15618,9 +15618,9 @@ async function handlePlayDescribe(args) {
|
|
|
15618
15618
|
compact: args.includes("--compact")
|
|
15619
15619
|
}
|
|
15620
15620
|
);
|
|
15621
|
-
if (
|
|
15622
|
-
if (selection.fields)
|
|
15623
|
-
else
|
|
15621
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
15622
|
+
if (selection.fields) _chunkCLOICRTKjs.printJson.call(void 0, play, selection.fields);
|
|
15623
|
+
else _chunkCLOICRTKjs.printCompactJson.call(void 0, play);
|
|
15624
15624
|
return 0;
|
|
15625
15625
|
}
|
|
15626
15626
|
printPlayDescription(play);
|
|
@@ -15664,7 +15664,7 @@ async function handlePlaySave(args) {
|
|
|
15664
15664
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15665
15665
|
};
|
|
15666
15666
|
if (options.jsonOutput) {
|
|
15667
|
-
|
|
15667
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, result);
|
|
15668
15668
|
} else {
|
|
15669
15669
|
console.error(result.message);
|
|
15670
15670
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15686,7 +15686,7 @@ async function handlePlaySave(args) {
|
|
|
15686
15686
|
};
|
|
15687
15687
|
if (options.dryRun) {
|
|
15688
15688
|
if (options.jsonOutput) {
|
|
15689
|
-
|
|
15689
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, dryRun);
|
|
15690
15690
|
} else {
|
|
15691
15691
|
console.log(`Dry run: ${playName}`);
|
|
15692
15692
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15695,7 +15695,7 @@ async function handlePlaySave(args) {
|
|
|
15695
15695
|
}
|
|
15696
15696
|
return 0;
|
|
15697
15697
|
}
|
|
15698
|
-
const client = new (0,
|
|
15698
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
15699
15699
|
try {
|
|
15700
15700
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
15701
15701
|
"cli.play_save_compile_manifests",
|
|
@@ -15731,7 +15731,7 @@ async function handlePlaySave(args) {
|
|
|
15731
15731
|
}
|
|
15732
15732
|
};
|
|
15733
15733
|
if (options.jsonOutput) {
|
|
15734
|
-
|
|
15734
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, result);
|
|
15735
15735
|
} else {
|
|
15736
15736
|
console.log(
|
|
15737
15737
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15757,7 +15757,7 @@ async function handlePlayPublish(args) {
|
|
|
15757
15757
|
}
|
|
15758
15758
|
const { target: playName, useLatest } = options;
|
|
15759
15759
|
let revisionId = options.revisionId;
|
|
15760
|
-
const client = new (0,
|
|
15760
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
15761
15761
|
if (isFileTarget2(playName)) {
|
|
15762
15762
|
if (revisionId || useLatest) {
|
|
15763
15763
|
console.error(
|
|
@@ -15789,7 +15789,7 @@ async function handlePlayPublish(args) {
|
|
|
15789
15789
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15790
15790
|
};
|
|
15791
15791
|
if (options.jsonOutput) {
|
|
15792
|
-
|
|
15792
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, result3);
|
|
15793
15793
|
} else {
|
|
15794
15794
|
console.error(result3.message);
|
|
15795
15795
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15812,7 +15812,7 @@ async function handlePlayPublish(args) {
|
|
|
15812
15812
|
};
|
|
15813
15813
|
if (options.dryRun) {
|
|
15814
15814
|
if (options.jsonOutput) {
|
|
15815
|
-
|
|
15815
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, dryRun);
|
|
15816
15816
|
} else {
|
|
15817
15817
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15818
15818
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15880,7 +15880,7 @@ async function handlePlayPublish(args) {
|
|
|
15880
15880
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15881
15881
|
};
|
|
15882
15882
|
if (options.jsonOutput) {
|
|
15883
|
-
|
|
15883
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, result2);
|
|
15884
15884
|
} else {
|
|
15885
15885
|
printPublishReceipt({
|
|
15886
15886
|
name: rootPlayName,
|
|
@@ -15911,7 +15911,7 @@ async function handlePlayPublish(args) {
|
|
|
15911
15911
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15912
15912
|
latest: useLatest
|
|
15913
15913
|
};
|
|
15914
|
-
|
|
15914
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, result2);
|
|
15915
15915
|
return 0;
|
|
15916
15916
|
}
|
|
15917
15917
|
const resolvedName = parseReferencedPlayTarget2(playName).playName;
|
|
@@ -15935,7 +15935,7 @@ async function handlePlayPublish(args) {
|
|
|
15935
15935
|
revisionId ? { revisionId } : {}
|
|
15936
15936
|
);
|
|
15937
15937
|
if (options.jsonOutput) {
|
|
15938
|
-
|
|
15938
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, result);
|
|
15939
15939
|
} else {
|
|
15940
15940
|
printPublishReceipt({
|
|
15941
15941
|
name: result.name,
|
|
@@ -15975,7 +15975,7 @@ async function handlePlayDelete(args) {
|
|
|
15975
15975
|
);
|
|
15976
15976
|
return 2;
|
|
15977
15977
|
}
|
|
15978
|
-
const client = new (0,
|
|
15978
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
15979
15979
|
let detail;
|
|
15980
15980
|
try {
|
|
15981
15981
|
detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
|
|
@@ -15999,8 +15999,8 @@ async function handlePlayDelete(args) {
|
|
|
15999
15999
|
name: resolvedName,
|
|
16000
16000
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
16001
16001
|
};
|
|
16002
|
-
if (
|
|
16003
|
-
|
|
16002
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
16003
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, result2);
|
|
16004
16004
|
} else {
|
|
16005
16005
|
process.stdout.write(
|
|
16006
16006
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16010,8 +16010,8 @@ async function handlePlayDelete(args) {
|
|
|
16010
16010
|
return 0;
|
|
16011
16011
|
}
|
|
16012
16012
|
const result = await client.deletePlay(resolvedName);
|
|
16013
|
-
if (
|
|
16014
|
-
|
|
16013
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
16014
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, result);
|
|
16015
16015
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16016
16016
|
}
|
|
16017
16017
|
if (result.alreadyArchived) {
|
|
@@ -16050,13 +16050,13 @@ async function handlePlayRestore(args) {
|
|
|
16050
16050
|
);
|
|
16051
16051
|
return 2;
|
|
16052
16052
|
}
|
|
16053
|
-
const client = new (0,
|
|
16053
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
16054
16054
|
try {
|
|
16055
16055
|
const result = await client.restorePlay(
|
|
16056
16056
|
parseReferencedPlayTarget2(playName).playName
|
|
16057
16057
|
);
|
|
16058
|
-
if (
|
|
16059
|
-
|
|
16058
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
16059
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, result);
|
|
16060
16060
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16061
16061
|
}
|
|
16062
16062
|
if (result.alreadyActive) {
|
|
@@ -16162,7 +16162,7 @@ Examples:
|
|
|
16162
16162
|
).action(async (target, options) => {
|
|
16163
16163
|
process.exitCode = await handlePlayCheck([
|
|
16164
16164
|
target,
|
|
16165
|
-
...
|
|
16165
|
+
..._chunkCLOICRTKjs.jsonFieldArgs.call(void 0, options.json),
|
|
16166
16166
|
...options.full ? ["--full"] : []
|
|
16167
16167
|
]);
|
|
16168
16168
|
});
|
|
@@ -16392,9 +16392,9 @@ Examples:
|
|
|
16392
16392
|
const limit = Number(options.historyLimit);
|
|
16393
16393
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16394
16394
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16395
|
-
const client = new (0,
|
|
16395
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
16396
16396
|
if (options.binding) {
|
|
16397
|
-
|
|
16397
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0,
|
|
16398
16398
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16399
16399
|
);
|
|
16400
16400
|
return;
|
|
@@ -16402,7 +16402,7 @@ Examples:
|
|
|
16402
16402
|
const result = await client.listPlayTriggerInventory({
|
|
16403
16403
|
cursor: options.cursor
|
|
16404
16404
|
});
|
|
16405
|
-
|
|
16405
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, {
|
|
16406
16406
|
...result,
|
|
16407
16407
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16408
16408
|
});
|
|
@@ -16449,7 +16449,7 @@ Examples:
|
|
|
16449
16449
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16450
16450
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16451
16451
|
}
|
|
16452
|
-
const result = await new (0,
|
|
16452
|
+
const result = await new (0, _chunkKWGB3RWAjs.DeeplineClient)().getPlaysActivity({
|
|
16453
16453
|
timeZone: options.timeZone,
|
|
16454
16454
|
days,
|
|
16455
16455
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16463,7 +16463,7 @@ Examples:
|
|
|
16463
16463
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16464
16464
|
);
|
|
16465
16465
|
}
|
|
16466
|
-
|
|
16466
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
16467
16467
|
{ ...result },
|
|
16468
16468
|
{
|
|
16469
16469
|
json: Boolean(options.json),
|
|
@@ -16492,7 +16492,7 @@ Examples:
|
|
|
16492
16492
|
false
|
|
16493
16493
|
);
|
|
16494
16494
|
});
|
|
16495
|
-
|
|
16495
|
+
_chunkOWP6SI5Wjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16496
16496
|
play,
|
|
16497
16497
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16498
16498
|
);
|
|
@@ -16535,7 +16535,7 @@ Examples:
|
|
|
16535
16535
|
);
|
|
16536
16536
|
_chunkZMVJSS6Njs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16537
16537
|
async (target, options) => {
|
|
16538
|
-
const ownView = () => handlePlayDescribe(
|
|
16538
|
+
const ownView = () => handlePlayDescribe(_chunkCLOICRTKjs.describeArgs.call(void 0, target, options));
|
|
16539
16539
|
const [flagText] = [options.json].filter(
|
|
16540
16540
|
(value) => typeof value === "string"
|
|
16541
16541
|
);
|
|
@@ -16546,7 +16546,7 @@ Examples:
|
|
|
16546
16546
|
process.exitCode = await ownView();
|
|
16547
16547
|
return;
|
|
16548
16548
|
}
|
|
16549
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16549
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-T25AHZEJ.js")));
|
|
16550
16550
|
process.exitCode = await describeAnything(
|
|
16551
16551
|
name,
|
|
16552
16552
|
{
|
|
@@ -16664,7 +16664,7 @@ Examples:
|
|
|
16664
16664
|
deepline plays deployments <deployment-id>
|
|
16665
16665
|
`
|
|
16666
16666
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16667
|
-
async (id, options) => id ?
|
|
16667
|
+
async (id, options) => id ? _chunkCMWDXAQHjs.handleDeploymentGet.call(void 0, id, options) : _chunkCMWDXAQHjs.handleDeploymentsList.call(void 0, options)
|
|
16668
16668
|
);
|
|
16669
16669
|
addPublishHelp(
|
|
16670
16670
|
play.command("publish <target>").description(
|
|
@@ -16846,7 +16846,7 @@ Examples:
|
|
|
16846
16846
|
).action(async (runId, options) => {
|
|
16847
16847
|
process.exitCode = await handleRunGet([
|
|
16848
16848
|
runId,
|
|
16849
|
-
...
|
|
16849
|
+
..._chunkCLOICRTKjs.jsonFieldArgs.call(void 0, options.json),
|
|
16850
16850
|
...options.webUrl ? ["--web-url"] : [],
|
|
16851
16851
|
...options.full ? ["--full"] : [],
|
|
16852
16852
|
...options.input ? ["--input"] : [],
|
|
@@ -17122,7 +17122,7 @@ Examples:
|
|
|
17122
17122
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17123
17123
|
...options.wait ? ["--wait"] : [],
|
|
17124
17124
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17125
|
-
...
|
|
17125
|
+
..._chunkCLOICRTKjs.jsonFieldArgs.call(void 0, options.json)
|
|
17126
17126
|
]);
|
|
17127
17127
|
});
|
|
17128
17128
|
const share = play.command("share").description(
|
|
@@ -17288,10 +17288,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17288
17288
|
return 2;
|
|
17289
17289
|
}
|
|
17290
17290
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17291
|
-
const status = await new (0,
|
|
17291
|
+
const status = await new (0, _chunkKWGB3RWAjs.DeeplineClient)().getSharePage(name);
|
|
17292
17292
|
const outputStatus = shareStatusForOutput(status);
|
|
17293
|
-
if (
|
|
17294
|
-
|
|
17293
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
17294
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, outputStatus);
|
|
17295
17295
|
return 0;
|
|
17296
17296
|
}
|
|
17297
17297
|
if (!outputStatus.share) {
|
|
@@ -17330,7 +17330,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17330
17330
|
return 2;
|
|
17331
17331
|
}
|
|
17332
17332
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17333
|
-
const client = new (0,
|
|
17333
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
17334
17334
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17335
17335
|
let resolvedVersion;
|
|
17336
17336
|
if (!revisionId) {
|
|
@@ -17361,8 +17361,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17361
17361
|
);
|
|
17362
17362
|
if (!hasCompleted) {
|
|
17363
17363
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17364
|
-
if (
|
|
17365
|
-
|
|
17364
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
17365
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, {
|
|
17366
17366
|
ok: false,
|
|
17367
17367
|
code: "NO_SUCCESSFUL_RUN",
|
|
17368
17368
|
message,
|
|
@@ -17386,8 +17386,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17386
17386
|
};
|
|
17387
17387
|
if (args.includes("--dry-run")) {
|
|
17388
17388
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17389
|
-
if (
|
|
17390
|
-
|
|
17389
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
17390
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, plan);
|
|
17391
17391
|
} else {
|
|
17392
17392
|
console.log(
|
|
17393
17393
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17397,8 +17397,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17397
17397
|
}
|
|
17398
17398
|
const status = await client.publishSharePage(name, request);
|
|
17399
17399
|
const outputStatus = shareStatusForOutput(status);
|
|
17400
|
-
if (
|
|
17401
|
-
|
|
17400
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
17401
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, outputStatus);
|
|
17402
17402
|
return 0;
|
|
17403
17403
|
}
|
|
17404
17404
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17429,9 +17429,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17429
17429
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17430
17430
|
...seoIndexing ? { seoIndexing } : {}
|
|
17431
17431
|
};
|
|
17432
|
-
const status = await new (0,
|
|
17433
|
-
if (
|
|
17434
|
-
|
|
17432
|
+
const status = await new (0, _chunkKWGB3RWAjs.DeeplineClient)().updateSharePage(name, request);
|
|
17433
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
17434
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, status);
|
|
17435
17435
|
return 0;
|
|
17436
17436
|
}
|
|
17437
17437
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17446,7 +17446,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17446
17446
|
return 2;
|
|
17447
17447
|
}
|
|
17448
17448
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17449
|
-
const client = new (0,
|
|
17449
|
+
const client = new (0, _chunkKWGB3RWAjs.DeeplineClient)();
|
|
17450
17450
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17451
17451
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17452
17452
|
if (!revisionId && versionFlag) {
|
|
@@ -17463,8 +17463,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17463
17463
|
revisionId ? { revisionId } : {}
|
|
17464
17464
|
);
|
|
17465
17465
|
const outputStatus = shareStatusForOutput(status);
|
|
17466
|
-
if (
|
|
17467
|
-
|
|
17466
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
17467
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, outputStatus);
|
|
17468
17468
|
return 0;
|
|
17469
17469
|
}
|
|
17470
17470
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17489,9 +17489,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17489
17489
|
return 2;
|
|
17490
17490
|
}
|
|
17491
17491
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17492
|
-
const status = await new (0,
|
|
17493
|
-
if (
|
|
17494
|
-
|
|
17492
|
+
const status = await new (0, _chunkKWGB3RWAjs.DeeplineClient)().unpublishSharePage(name);
|
|
17493
|
+
if (_chunkCLOICRTKjs.argsWantJson.call(void 0, args)) {
|
|
17494
|
+
_chunkCLOICRTKjs.printCompactJson.call(void 0, status);
|
|
17495
17495
|
return 0;
|
|
17496
17496
|
}
|
|
17497
17497
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|