deepline 0.3.345 → 0.3.346
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +40 -18
- package/dist/cli/auth-5YTC2XH2.js +31 -0
- package/dist/cli/{auth-YQSQYS2V.mjs → auth-HTWHQNMY.mjs} +4 -4
- package/dist/cli/{billing-JRP2ZFMV.js → billing-4DCHVGO5.js} +71 -71
- package/dist/cli/{billing-HA75G3SK.mjs → billing-X56CVZWC.mjs} +4 -4
- package/dist/cli/{chunk-MO6QJPEB.js → chunk-22GXXUTB.js} +4 -4
- package/dist/cli/{chunk-NTIWTBEH.mjs → chunk-2GRMXCLZ.mjs} +1 -1
- package/dist/cli/{chunk-WRTLSH6R.js → chunk-2RJ7RMRM.js} +8 -8
- package/dist/cli/{chunk-3XKBPPP7.mjs → chunk-3GLIYDIF.mjs} +2 -2
- package/dist/cli/{chunk-ITOJRSOU.js → chunk-4Q572AVS.js} +6 -6
- package/dist/cli/{chunk-EEPFLZ7V.js → chunk-5NNSJTJ3.js} +9 -9
- package/dist/cli/{chunk-2OTDDG2J.js → chunk-5QG2UAYH.js} +2 -2
- package/dist/cli/{chunk-YGQ4AIK7.mjs → chunk-62TKYGY6.mjs} +3 -3
- package/dist/cli/{chunk-FBUWH67Y.js → chunk-EJ2NVO5K.js} +48 -48
- package/dist/cli/{chunk-DOPNLW2H.mjs → chunk-GCBLVWDQ.mjs} +6 -6
- package/dist/cli/{chunk-UJCHR3J3.js → chunk-GGSLHWTB.js} +1 -1
- package/dist/cli/{chunk-TAX3OOC6.mjs → chunk-KQCTQGUU.mjs} +1 -1
- package/dist/cli/{chunk-IT6MAYZ3.js → chunk-L2R72RQJ.js} +8 -8
- package/dist/cli/{chunk-EWYAS4WD.mjs → chunk-MOVEHSNM.mjs} +1 -1
- package/dist/cli/{chunk-5QPHJFNN.mjs → chunk-NVNHV73C.mjs} +2 -2
- package/dist/cli/{chunk-N3GUUSDO.mjs → chunk-O4SXVVNQ.mjs} +1 -1
- package/dist/cli/{chunk-AW2G44QA.mjs → chunk-P4IKGWYF.mjs} +4 -4
- package/dist/cli/{chunk-FDH572QX.js → chunk-SGBSQHXS.js} +45 -45
- package/dist/cli/{chunk-TDW3RU7S.js → chunk-T7EVEXHS.js} +15 -15
- package/dist/cli/{chunk-JDSRPSES.mjs → chunk-VC7M2QR7.mjs} +1 -1
- package/dist/cli/{chunk-S3JKJL44.mjs → chunk-WKZTHHJI.mjs} +5 -5
- package/dist/cli/{chunk-MLO7ZGSH.mjs → chunk-XAM3XOUA.mjs} +2 -2
- package/dist/cli/{chunk-URPZWUVN.js → chunk-YEKAGC52.js} +60 -60
- package/dist/cli/{chunk-KXFPDFUO.js → chunk-YUKZHAFW.js} +26 -26
- package/dist/cli/{chunk-4INBT3OR.js → chunk-ZEUFYRUR.js} +225 -225
- package/dist/cli/{chunk-GGRQBO3S.mjs → chunk-ZR4EHO62.mjs} +2 -2
- package/dist/cli/client-4RKYHB7Z.js +20 -0
- package/dist/cli/{client-VKQGBPZ5.mjs → client-C2KUT452.mjs} +3 -3
- package/dist/cli/{csv-UNP7KAXF.js → csv-3TAA2MTR.js} +12 -12
- package/dist/cli/{csv-ZFMAI2HY.mjs → csv-SLACAH4F.mjs} +3 -3
- package/dist/cli/{db-LDLXC2JQ.js → db-BT6Q3FE6.js} +29 -29
- package/dist/cli/{db-C5YWXRLY.mjs → db-IN4I6KJ5.mjs} +4 -4
- package/dist/cli/{describe-UYNKJV6T.mjs → describe-EDXTYMOF.mjs} +8 -8
- package/dist/cli/{describe-FO62H2CB.js → describe-FJZXYKFH.js} +15 -15
- package/dist/cli/{executions-JYKV3GQJ.mjs → executions-X36QA5NY.mjs} +4 -4
- package/dist/cli/{executions-DIADSK2E.js → executions-YYQC2TVR.js} +6 -6
- package/dist/cli/{feedback-YBO47O7G.js → feedback-BS3S46O3.js} +7 -7
- package/dist/cli/{feedback-4UEJJFRL.mjs → feedback-KTEPHZ4S.mjs} +3 -3
- package/dist/cli/{git-A6DPLCMU.mjs → git-3ZVYB63W.mjs} +4 -4
- package/dist/cli/git-ZHAD5TJN.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-F6TJLZV2.js → legacy-noops-V5R7ITER.js} +7 -7
- package/dist/cli/{legacy-noops-HCAOJI7X.mjs → legacy-noops-VVBJXM2K.mjs} +4 -4
- package/dist/cli/{monitors-B5QFSFK7.js → monitors-J6XDE76B.js} +85 -85
- package/dist/cli/{monitors-XYP7XNCT.mjs → monitors-KYTMBNUQ.mjs} +4 -4
- package/dist/cli/{org-NMWNBQZI.js → org-MHF2NGDV.js} +60 -60
- package/dist/cli/{org-O5VBVLSP.mjs → org-RGABGQKP.mjs} +4 -4
- package/dist/cli/{play-Z2STHYQB.mjs → play-UII4SSA7.mjs} +7 -7
- package/dist/cli/play-ZWAH3U44.js +153 -0
- package/dist/cli/{providers-BAPO54GE.js → providers-3GDMD7T6.js} +7 -7
- package/dist/cli/{providers-WGIJLFBZ.mjs → providers-LQOSKPUH.mjs} +4 -4
- package/dist/cli/{quickstart-LL6KUMJ5.mjs → quickstart-GAMYLCLJ.mjs} +3 -3
- package/dist/cli/{quickstart-JGRMJ6M4.js → quickstart-R34Z7EMU.js} +5 -5
- package/dist/cli/{search-P7BVN4OI.mjs → search-AOOMDVF5.mjs} +5 -5
- package/dist/cli/search-FVB7ZNCO.js +26 -0
- package/dist/cli/{secrets-QUBFPBE5.js → secrets-T4XXIASK.js} +13 -13
- package/dist/cli/{secrets-5JHLILQD.mjs → secrets-U7YGLUSX.mjs} +4 -4
- package/dist/cli/{sessions-TATDTEY6.js → sessions-JQGKWKJS.js} +5 -5
- package/dist/cli/{sessions-3BYS3WQZ.mjs → sessions-VPXR4DSZ.mjs} +4 -4
- package/dist/cli/{settings-TXWQLO34.mjs → settings-LP55G43L.mjs} +7 -7
- package/dist/cli/{settings-SLFYXPRP.js → settings-LXF45R7X.js} +74 -74
- package/dist/cli/{setup-XTAW2JS2.mjs → setup-36QA4JI3.mjs} +6 -6
- package/dist/cli/{setup-A3CXCYRI.js → setup-MA2GLU4N.js} +41 -41
- package/dist/cli/skills-GUWC4FV7.js +28 -0
- package/dist/cli/{skills-P323CMPH.mjs → skills-HB6PARLZ.mjs} +4 -4
- package/dist/cli/{tools-FMSH7Z7I.mjs → tools-E7K7R4AO.mjs} +6 -6
- package/dist/cli/tools-T5WIAD5Z.js +40 -0
- package/dist/cli/{update-CGKRTVOD.mjs → update-IT63P3NV.mjs} +6 -6
- package/dist/cli/update-QY6RY3A6.js +28 -0
- package/dist/cli/{workflow-EFOSJKW7.js → workflow-SJHASZ5C.js} +15 -15
- package/dist/cli/{workflow-2DVIYBLG.mjs → workflow-UO3PMX7R.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-4HCZZPZH.js +0 -31
- package/dist/cli/client-VOXK5Z4D.js +0 -20
- package/dist/cli/git-FPC5VIIK.js +0 -23
- package/dist/cli/play-D2SCAJXG.js +0 -153
- package/dist/cli/search-UNJN5P72.js +0 -26
- package/dist/cli/skills-ZOUUC72T.js +0 -28
- package/dist/cli/tools-O7TLYHFT.js +0 -40
- package/dist/cli/update-3LT6YSIP.js +0 -28
|
@@ -10,11 +10,11 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
10
10
|
var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk2RJ7RMRMjs = require('./chunk-2RJ7RMRM.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkYUKZHAFWjs = require('./chunk-YUKZHAFW.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -39,7 +39,7 @@ var _chunkLVEDPCLJjs = require('./chunk-LVEDPCLJ.js');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunk5NNSJTJ3js = require('./chunk-5NNSJTJ3.js');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
@@ -72,10 +72,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
var
|
|
75
|
+
var _chunk4Q572AVSjs = require('./chunk-4Q572AVS.js');
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _chunk22GXXUTBjs = require('./chunk-22GXXUTB.js');
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
|
|
@@ -2067,7 +2067,7 @@ function resolveField(key, command) {
|
|
|
2067
2067
|
function printSettings(result, json, name) {
|
|
2068
2068
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2069
2069
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2070
|
-
|
|
2070
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
2071
2071
|
{
|
|
2072
2072
|
...result,
|
|
2073
2073
|
settings: Object.fromEntries(
|
|
@@ -2111,7 +2111,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2111
2111
|
valueSyntax: field.cli.valueSyntax,
|
|
2112
2112
|
examples: field.cli.examples
|
|
2113
2113
|
}));
|
|
2114
|
-
|
|
2114
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
2115
2115
|
{
|
|
2116
2116
|
fields: descriptions,
|
|
2117
2117
|
render: {
|
|
@@ -2136,7 +2136,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2136
2136
|
async (options, command) => {
|
|
2137
2137
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2138
2138
|
printSettings(
|
|
2139
|
-
await new (0,
|
|
2139
|
+
await new (0, _chunk5NNSJTJ3js.DeeplineClient)().getPlaySettings(options.play),
|
|
2140
2140
|
options.json,
|
|
2141
2141
|
options.name
|
|
2142
2142
|
);
|
|
@@ -2167,7 +2167,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2167
2167
|
);
|
|
2168
2168
|
}
|
|
2169
2169
|
if (options.dryRun) {
|
|
2170
|
-
|
|
2170
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
2171
2171
|
{
|
|
2172
2172
|
dryRun: true,
|
|
2173
2173
|
play,
|
|
@@ -2188,7 +2188,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2188
2188
|
return;
|
|
2189
2189
|
}
|
|
2190
2190
|
printSettings(
|
|
2191
|
-
await new (0,
|
|
2191
|
+
await new (0, _chunk5NNSJTJ3js.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2192
2192
|
options.json
|
|
2193
2193
|
);
|
|
2194
2194
|
};
|
|
@@ -2214,13 +2214,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2214
2214
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2215
2215
|
{ exitCode: 2 }
|
|
2216
2216
|
);
|
|
2217
|
-
const page = await new (0,
|
|
2217
|
+
const page = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().listPlaySettingsPaths({
|
|
2218
2218
|
root: options.root,
|
|
2219
2219
|
limit,
|
|
2220
2220
|
cursor: options.cursor
|
|
2221
2221
|
});
|
|
2222
2222
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""} --json` : null;
|
|
2223
|
-
|
|
2223
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
2224
2224
|
{
|
|
2225
2225
|
...page,
|
|
2226
2226
|
nextCommand,
|
|
@@ -2271,7 +2271,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2271
2271
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2272
2272
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2273
2273
|
};
|
|
2274
|
-
const client = new (0,
|
|
2274
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
2275
2275
|
const paths = [];
|
|
2276
2276
|
let cursor;
|
|
2277
2277
|
do {
|
|
@@ -2333,7 +2333,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2333
2333
|
moved.push(move.playName);
|
|
2334
2334
|
}
|
|
2335
2335
|
}
|
|
2336
|
-
|
|
2336
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
2337
2337
|
{
|
|
2338
2338
|
dryRun: Boolean(options.dryRun),
|
|
2339
2339
|
from: options.from,
|
|
@@ -2461,7 +2461,7 @@ function triggerLines(view) {
|
|
|
2461
2461
|
return lines;
|
|
2462
2462
|
}
|
|
2463
2463
|
function printView(view, json) {
|
|
2464
|
-
|
|
2464
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
2465
2465
|
{
|
|
2466
2466
|
...view,
|
|
2467
2467
|
render: {
|
|
@@ -2474,7 +2474,7 @@ function printView(view, json) {
|
|
|
2474
2474
|
);
|
|
2475
2475
|
}
|
|
2476
2476
|
function printResult(result, json) {
|
|
2477
|
-
|
|
2477
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
2478
2478
|
{
|
|
2479
2479
|
...result,
|
|
2480
2480
|
render: {
|
|
@@ -2504,7 +2504,7 @@ async function mutate(command, options, build) {
|
|
|
2504
2504
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2505
2505
|
}
|
|
2506
2506
|
if (options.dryRun) {
|
|
2507
|
-
|
|
2507
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
2508
2508
|
{
|
|
2509
2509
|
dryRun: true,
|
|
2510
2510
|
play: options.play,
|
|
@@ -2523,7 +2523,7 @@ async function mutate(command, options, build) {
|
|
|
2523
2523
|
return;
|
|
2524
2524
|
}
|
|
2525
2525
|
printResult(
|
|
2526
|
-
await new (0,
|
|
2526
|
+
await new (0, _chunk5NNSJTJ3js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2527
2527
|
options.json
|
|
2528
2528
|
);
|
|
2529
2529
|
}
|
|
@@ -2556,7 +2556,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2556
2556
|
}).addHelpText("after", help2);
|
|
2557
2557
|
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON; automatic when piped").addHelpText("after", help2).action(async (options) => {
|
|
2558
2558
|
printView(
|
|
2559
|
-
await new (0,
|
|
2559
|
+
await new (0, _chunk5NNSJTJ3js.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2560
2560
|
options.json
|
|
2561
2561
|
);
|
|
2562
2562
|
});
|
|
@@ -2600,7 +2600,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2600
2600
|
if (options.auth === void 0) {
|
|
2601
2601
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2602
2602
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2603
|
-
const current = await new (0,
|
|
2603
|
+
const current = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().getPlayTriggerConfig(
|
|
2604
2604
|
options.play
|
|
2605
2605
|
);
|
|
2606
2606
|
return {
|
|
@@ -2677,7 +2677,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2677
2677
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2678
2678
|
"runtime.event": "Other event."
|
|
2679
2679
|
};
|
|
2680
|
-
var RUN_LOGS_KIND_HELP =
|
|
2680
|
+
var RUN_LOGS_KIND_HELP = _chunk5NNSJTJ3js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2681
2681
|
kind,
|
|
2682
2682
|
description: KIND_DESCRIPTIONS[kind]
|
|
2683
2683
|
}));
|
|
@@ -2814,9 +2814,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2814
2814
|
const args = program.args;
|
|
2815
2815
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2816
2816
|
error.exitCode = 2;
|
|
2817
|
-
if (
|
|
2818
|
-
|
|
2819
|
-
Object.assign(new (0,
|
|
2817
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2818
|
+
_chunk4Q572AVSjs.printJsonError.call(void 0,
|
|
2819
|
+
Object.assign(new (0, _chunk5NNSJTJ3js.RunEventQueryInputError)(error.message), {
|
|
2820
2820
|
exitCode: 2,
|
|
2821
2821
|
retryable: false
|
|
2822
2822
|
})
|
|
@@ -2860,14 +2860,14 @@ function parseQuery(args, resource) {
|
|
|
2860
2860
|
if (VALUE_FLAGS.has(flag)) {
|
|
2861
2861
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2862
2862
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2863
|
-
throw new (0,
|
|
2863
|
+
throw new (0, _chunk5NNSJTJ3js.RunEventQueryInputError)(
|
|
2864
2864
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2865
2865
|
);
|
|
2866
2866
|
}
|
|
2867
2867
|
if (flag === "--sum") sums.push(value);
|
|
2868
2868
|
else {
|
|
2869
2869
|
if (values[flag] !== void 0) {
|
|
2870
|
-
throw new (0,
|
|
2870
|
+
throw new (0, _chunk5NNSJTJ3js.RunEventQueryInputError)(
|
|
2871
2871
|
`${flag} may only be supplied once.`
|
|
2872
2872
|
);
|
|
2873
2873
|
}
|
|
@@ -2881,12 +2881,12 @@ function parseQuery(args, resource) {
|
|
|
2881
2881
|
}
|
|
2882
2882
|
if (arg.startsWith("-")) {
|
|
2883
2883
|
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.";
|
|
2884
|
-
throw new (0,
|
|
2884
|
+
throw new (0, _chunk5NNSJTJ3js.RunEventQueryInputError)(
|
|
2885
2885
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2886
2886
|
);
|
|
2887
2887
|
}
|
|
2888
2888
|
if (runId !== void 0) {
|
|
2889
|
-
throw new (0,
|
|
2889
|
+
throw new (0, _chunk5NNSJTJ3js.RunEventQueryInputError)(
|
|
2890
2890
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2891
2891
|
);
|
|
2892
2892
|
}
|
|
@@ -2894,7 +2894,7 @@ function parseQuery(args, resource) {
|
|
|
2894
2894
|
}
|
|
2895
2895
|
if (switches.has("--fields")) {
|
|
2896
2896
|
if (runId !== void 0) {
|
|
2897
|
-
throw new (0,
|
|
2897
|
+
throw new (0, _chunk5NNSJTJ3js.RunEventQueryInputError)(
|
|
2898
2898
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2899
2899
|
);
|
|
2900
2900
|
}
|
|
@@ -2907,18 +2907,18 @@ function parseQuery(args, resource) {
|
|
|
2907
2907
|
)
|
|
2908
2908
|
];
|
|
2909
2909
|
if (incompatible.length) {
|
|
2910
|
-
throw new (0,
|
|
2910
|
+
throw new (0, _chunk5NNSJTJ3js.RunEventQueryInputError)(
|
|
2911
2911
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2912
2912
|
);
|
|
2913
2913
|
}
|
|
2914
2914
|
}
|
|
2915
2915
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2916
|
-
throw new (0,
|
|
2916
|
+
throw new (0, _chunk5NNSJTJ3js.RunEventQueryInputError)(
|
|
2917
2917
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2918
2918
|
);
|
|
2919
2919
|
}
|
|
2920
2920
|
if (sums.length && switches.has("--count")) {
|
|
2921
|
-
throw new (0,
|
|
2921
|
+
throw new (0, _chunk5NNSJTJ3js.RunEventQueryInputError)(
|
|
2922
2922
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2923
2923
|
);
|
|
2924
2924
|
}
|
|
@@ -2926,7 +2926,7 @@ function parseQuery(args, resource) {
|
|
|
2926
2926
|
if (operation === "count") {
|
|
2927
2927
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2928
2928
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2929
|
-
throw new (0,
|
|
2929
|
+
throw new (0, _chunk5NNSJTJ3js.RunEventQueryInputError)(
|
|
2930
2930
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2931
2931
|
);
|
|
2932
2932
|
}
|
|
@@ -2961,16 +2961,16 @@ function parseQuery(args, resource) {
|
|
|
2961
2961
|
];
|
|
2962
2962
|
}
|
|
2963
2963
|
}
|
|
2964
|
-
const request =
|
|
2964
|
+
const request = _chunk5NNSJTJ3js.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2965
2965
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2966
2966
|
const backend = values["--runtime-backend"];
|
|
2967
2967
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2968
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunk5NNSJTJ3js.RunEventQueryInputError)(
|
|
2969
2969
|
"--runtime-backend must be daytona or modal."
|
|
2970
2970
|
);
|
|
2971
2971
|
}
|
|
2972
2972
|
if (backend && !namespace) {
|
|
2973
|
-
throw new (0,
|
|
2973
|
+
throw new (0, _chunk5NNSJTJ3js.RunEventQueryInputError)(
|
|
2974
2974
|
"--runtime-backend requires --runtime-namespace."
|
|
2975
2975
|
);
|
|
2976
2976
|
}
|
|
@@ -3018,12 +3018,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3018
3018
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3019
3019
|
const record3 = failure;
|
|
3020
3020
|
const status = record3.statusCode;
|
|
3021
|
-
const exitCode = error instanceof
|
|
3021
|
+
const exitCode = error instanceof _chunk5NNSJTJ3js.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;
|
|
3022
3022
|
const diagnostic = Object.assign(failure, {
|
|
3023
3023
|
exitCode,
|
|
3024
3024
|
retryable: exitCode === 5
|
|
3025
3025
|
});
|
|
3026
|
-
if (
|
|
3026
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) _chunk4Q572AVSjs.printJsonError.call(void 0, diagnostic);
|
|
3027
3027
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3028
3028
|
return exitCode;
|
|
3029
3029
|
}
|
|
@@ -3038,7 +3038,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3038
3038
|
...criteria
|
|
3039
3039
|
} = request;
|
|
3040
3040
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3041
|
-
const client = new (0,
|
|
3041
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
3042
3042
|
let result;
|
|
3043
3043
|
if (request.operation === "fields") {
|
|
3044
3044
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3104,13 +3104,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3104
3104
|
lines.push(`Next page: ${nextPage}`);
|
|
3105
3105
|
}
|
|
3106
3106
|
}
|
|
3107
|
-
|
|
3107
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
3108
3108
|
{
|
|
3109
3109
|
...result,
|
|
3110
3110
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3111
3111
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3112
3112
|
},
|
|
3113
|
-
{ json:
|
|
3113
|
+
{ json: _chunk4Q572AVSjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3114
3114
|
` }
|
|
3115
3115
|
);
|
|
3116
3116
|
return 0;
|
|
@@ -3930,7 +3930,7 @@ function checkedRunExample(plays, target) {
|
|
|
3930
3930
|
const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
|
|
3931
3931
|
const base = `deepline plays run --file ${quote(target)}`;
|
|
3932
3932
|
return {
|
|
3933
|
-
command: `${base}${
|
|
3933
|
+
command: `${base}${_chunk5NNSJTJ3js.playInputExampleArgs.call(void 0, schema)} --json`,
|
|
3934
3934
|
note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema. Keep stderr separate from JSON stdout."
|
|
3935
3935
|
};
|
|
3936
3936
|
}
|
|
@@ -5553,7 +5553,7 @@ async function runPlayBootstrap(args) {
|
|
|
5553
5553
|
return runMonitorBootstrap(args);
|
|
5554
5554
|
}
|
|
5555
5555
|
const options = parsePlayBootstrapOptions(args);
|
|
5556
|
-
const client = new (0,
|
|
5556
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
5557
5557
|
const contracts = await loadBootstrapContracts(client, options);
|
|
5558
5558
|
const csvContext = loadCsvContext(options.from);
|
|
5559
5559
|
const source = generateBootstrapPlaySource({
|
|
@@ -5708,7 +5708,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5708
5708
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
5709
5709
|
);
|
|
5710
5710
|
}
|
|
5711
|
-
const response = await new (0,
|
|
5711
|
+
const response = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().runs.getReceipts(runId, {
|
|
5712
5712
|
keys
|
|
5713
5713
|
});
|
|
5714
5714
|
const failed = response.receipts.filter(
|
|
@@ -5720,7 +5720,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5720
5720
|
JSON.stringify(response, null, 2) + "\n",
|
|
5721
5721
|
{ flag: "wx", mode: 384 }
|
|
5722
5722
|
);
|
|
5723
|
-
|
|
5723
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
5724
5724
|
{
|
|
5725
5725
|
runId,
|
|
5726
5726
|
out: options.out,
|
|
@@ -5730,7 +5730,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5730
5730
|
{ json: true }
|
|
5731
5731
|
);
|
|
5732
5732
|
} else {
|
|
5733
|
-
|
|
5733
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
5734
5734
|
}
|
|
5735
5735
|
if (failed)
|
|
5736
5736
|
process.exitCode = response.receipts.some(
|
|
@@ -5769,7 +5769,7 @@ includes nextCommand when another page is available.
|
|
|
5769
5769
|
{ exitCode: 2 }
|
|
5770
5770
|
);
|
|
5771
5771
|
}
|
|
5772
|
-
const page = await new (0,
|
|
5772
|
+
const page = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().runs.children(parentRunId, {
|
|
5773
5773
|
launchKey: options.launchKey,
|
|
5774
5774
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
5775
5775
|
limit
|
|
@@ -5785,7 +5785,7 @@ includes nextCommand when another page is available.
|
|
|
5785
5785
|
String(limit),
|
|
5786
5786
|
"--json"
|
|
5787
5787
|
].join(" ") : null;
|
|
5788
|
-
|
|
5788
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
5789
5789
|
{
|
|
5790
5790
|
parentRunId,
|
|
5791
5791
|
launchKey: options.launchKey,
|
|
@@ -5821,7 +5821,7 @@ async function handleRunsHistory(options) {
|
|
|
5821
5821
|
throw new Error("--limit must be a positive integer.");
|
|
5822
5822
|
}
|
|
5823
5823
|
}
|
|
5824
|
-
const page = await new (0,
|
|
5824
|
+
const page = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().runs.history({
|
|
5825
5825
|
cursor: options.cursor,
|
|
5826
5826
|
orgId: options.org,
|
|
5827
5827
|
search: options.search,
|
|
@@ -5837,7 +5837,7 @@ async function handleRunsHistory(options) {
|
|
|
5837
5837
|
);
|
|
5838
5838
|
}
|
|
5839
5839
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
5840
|
-
|
|
5840
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
5841
5841
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
5842
5842
|
options.json ? { json: true } : {}
|
|
5843
5843
|
);
|
|
@@ -5889,12 +5889,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
5889
5889
|
return 1;
|
|
5890
5890
|
}
|
|
5891
5891
|
}
|
|
5892
|
-
const result = await new (0,
|
|
5892
|
+
const result = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().runs.rerun(runId, {
|
|
5893
5893
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
5894
5894
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
5895
5895
|
});
|
|
5896
|
-
if (
|
|
5897
|
-
|
|
5896
|
+
if (_chunk4Q572AVSjs.shouldEmitJson.call(void 0, options.json)) {
|
|
5897
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
5898
5898
|
} else {
|
|
5899
5899
|
console.log(
|
|
5900
5900
|
result.deduplicated === true ? `
|
|
@@ -6162,7 +6162,7 @@ function projectRunDatasetCell(value) {
|
|
|
6162
6162
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
6163
6163
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
6164
6164
|
if (typeof logicalValue === "object") {
|
|
6165
|
-
return
|
|
6165
|
+
return _chunk4Q572AVSjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
6166
6166
|
}
|
|
6167
6167
|
return logicalValue;
|
|
6168
6168
|
}
|
|
@@ -8579,7 +8579,7 @@ function renderOutcome(outcome) {
|
|
|
8579
8579
|
function printResult2(input) {
|
|
8580
8580
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
8581
8581
|
if (failed) process.exitCode = 1;
|
|
8582
|
-
|
|
8582
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
8583
8583
|
{
|
|
8584
8584
|
deployment: { ...input.deployment, status: input.status },
|
|
8585
8585
|
plays: input.outcomes,
|
|
@@ -8604,7 +8604,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
8604
8604
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
8605
8605
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
8606
8606
|
});
|
|
8607
|
-
const { http, config } =
|
|
8607
|
+
const { http, config } = _chunk4Q572AVSjs.getAuthedHttpClient.call(void 0, );
|
|
8608
8608
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
8609
8609
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
8610
8610
|
deliveryId,
|
|
@@ -8631,7 +8631,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
8631
8631
|
},
|
|
8632
8632
|
{
|
|
8633
8633
|
bundle: bundleDeployPlayFile,
|
|
8634
|
-
fetchImpl:
|
|
8634
|
+
fetchImpl: _chunk22GXXUTBjs.fetchWithDeploymentProtection,
|
|
8635
8635
|
// The plays are already here: "opening" the source is naming it.
|
|
8636
8636
|
openSource: async () => ({
|
|
8637
8637
|
open: async () => ({ repoRoot: root })
|
|
@@ -9199,7 +9199,7 @@ function parseInputFlagValue(raw) {
|
|
|
9199
9199
|
return raw;
|
|
9200
9200
|
}
|
|
9201
9201
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
9202
|
-
const selection =
|
|
9202
|
+
const selection = _chunk4Q572AVSjs.parseJsonFields.call(void 0, args, "run");
|
|
9203
9203
|
args = selection.args;
|
|
9204
9204
|
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.";
|
|
9205
9205
|
let filePath = null;
|
|
@@ -9209,7 +9209,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
9209
9209
|
let revisionSelector = null;
|
|
9210
9210
|
const watch = !args.includes("--no-wait");
|
|
9211
9211
|
const dryRun = args.includes("--dry-run");
|
|
9212
|
-
let jsonOutput = dryRun ?
|
|
9212
|
+
let jsonOutput = dryRun ? _chunk4Q572AVSjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk4Q572AVSjs.argsWantJson.call(void 0, args);
|
|
9213
9213
|
const fullJson = args.includes("--full");
|
|
9214
9214
|
const force = args.includes("--force");
|
|
9215
9215
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -9256,7 +9256,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
9256
9256
|
"--log-level requires one of: debug, info, warn, error."
|
|
9257
9257
|
);
|
|
9258
9258
|
}
|
|
9259
|
-
const parsed =
|
|
9259
|
+
const parsed = _chunk5NNSJTJ3js.parseLogLevel.call(void 0, value);
|
|
9260
9260
|
if (!parsed) {
|
|
9261
9261
|
throw new Error(
|
|
9262
9262
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -9563,7 +9563,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
9563
9563
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
9564
9564
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
9565
9565
|
);
|
|
9566
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
9566
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk5NNSJTJ3js.parseLogLevel.call(void 0, options.logLevel);
|
|
9567
9567
|
if (!logLevel)
|
|
9568
9568
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
9569
9569
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -9577,13 +9577,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
9577
9577
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
9578
9578
|
logLevel = "debug";
|
|
9579
9579
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
9580
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
9581
|
-
[...fullJson ? ["--full"] : [], ...
|
|
9580
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunk4Q572AVSjs.parseJsonFields.call(void 0,
|
|
9581
|
+
[...fullJson ? ["--full"] : [], ..._chunk4Q572AVSjs.jsonFieldArgs.call(void 0, options.json)],
|
|
9582
9582
|
"run"
|
|
9583
9583
|
).fields;
|
|
9584
9584
|
const watch = options.wait === false ? false : base.watch;
|
|
9585
9585
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
9586
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
9586
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunk4Q572AVSjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
9587
9587
|
const verboseLogs = Boolean(
|
|
9588
9588
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
9589
9589
|
);
|
|
@@ -9627,7 +9627,7 @@ function playAuthoringGraphPath(parent, filePath) {
|
|
|
9627
9627
|
// src/cli/renderers/local-play-execution.ts
|
|
9628
9628
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
9629
9629
|
if (options.dryRun) {
|
|
9630
|
-
|
|
9630
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
9631
9631
|
return;
|
|
9632
9632
|
}
|
|
9633
9633
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -10583,7 +10583,7 @@ function playStatusErrorText(status) {
|
|
|
10583
10583
|
function isRetryablePendingStartFailure(status) {
|
|
10584
10584
|
if (status.status !== "failed") return false;
|
|
10585
10585
|
if (status.runId && status.runId !== "pending") return false;
|
|
10586
|
-
return
|
|
10586
|
+
return _chunk5NNSJTJ3js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
10587
10587
|
}
|
|
10588
10588
|
function pendingStartFailureStatus(input) {
|
|
10589
10589
|
const message = input.error instanceof Error ? input.error.message : String(input.error);
|
|
@@ -10610,13 +10610,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
|
10610
10610
|
var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
10611
10611
|
function watchSurfaceReaches(state, provenance, level) {
|
|
10612
10612
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
10613
|
-
if (!
|
|
10613
|
+
if (!_chunk5NNSJTJ3js.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
10614
10614
|
return false;
|
|
10615
10615
|
}
|
|
10616
|
-
if (
|
|
10616
|
+
if (_chunk5NNSJTJ3js.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
10617
10617
|
return true;
|
|
10618
10618
|
}
|
|
10619
|
-
return state.verbose === true &&
|
|
10619
|
+
return state.verbose === true && _chunk5NNSJTJ3js.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
10620
10620
|
}
|
|
10621
10621
|
function getEventPayload(event) {
|
|
10622
10622
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -11118,7 +11118,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
|
|
|
11118
11118
|
}
|
|
11119
11119
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
11120
11120
|
if (open2 && dashboardUrl) {
|
|
11121
|
-
|
|
11121
|
+
_chunk4Q572AVSjs.openInBrowser.call(void 0, dashboardUrl);
|
|
11122
11122
|
}
|
|
11123
11123
|
}
|
|
11124
11124
|
function printPlayLogLines(input) {
|
|
@@ -11180,7 +11180,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
11180
11180
|
billing: false
|
|
11181
11181
|
});
|
|
11182
11182
|
} catch (error) {
|
|
11183
|
-
if (
|
|
11183
|
+
if (_chunk5NNSJTJ3js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
11184
11184
|
return null;
|
|
11185
11185
|
}
|
|
11186
11186
|
throw error;
|
|
@@ -11369,7 +11369,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11369
11369
|
billing: false
|
|
11370
11370
|
});
|
|
11371
11371
|
} catch (error) {
|
|
11372
|
-
if (
|
|
11372
|
+
if (_chunk5NNSJTJ3js.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11373
11373
|
return null;
|
|
11374
11374
|
}
|
|
11375
11375
|
throw error;
|
|
@@ -11577,7 +11577,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11577
11577
|
lastPhase
|
|
11578
11578
|
});
|
|
11579
11579
|
}
|
|
11580
|
-
if (lastKnownWorkflowId &&
|
|
11580
|
+
if (lastKnownWorkflowId && _chunk5NNSJTJ3js.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11581
11581
|
if (timeout) {
|
|
11582
11582
|
clearTimeout(timeout);
|
|
11583
11583
|
}
|
|
@@ -11613,7 +11613,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11613
11613
|
onRunAdmitted: confirmAdmission
|
|
11614
11614
|
});
|
|
11615
11615
|
}
|
|
11616
|
-
if (!lastKnownWorkflowId &&
|
|
11616
|
+
if (!lastKnownWorkflowId && _chunk5NNSJTJ3js.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11617
11617
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
11618
11618
|
phase: "cli.play_start_stream_transient_failure",
|
|
11619
11619
|
ms: Date.now() - startedAt,
|
|
@@ -11712,7 +11712,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
11712
11712
|
"logs"
|
|
11713
11713
|
]);
|
|
11714
11714
|
function formatPlayLogLine(rawLine, state) {
|
|
11715
|
-
const classified =
|
|
11715
|
+
const classified = _chunk5NNSJTJ3js.classifyLogLine.call(void 0, rawLine);
|
|
11716
11716
|
const line = classified.line;
|
|
11717
11717
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
11718
11718
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _351 => _351[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -11727,14 +11727,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11727
11727
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
11728
11728
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
11729
11729
|
if (providerWait && !state.verbose) {
|
|
11730
|
-
return
|
|
11730
|
+
return _chunk5NNSJTJ3js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
11731
11731
|
}
|
|
11732
11732
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
11733
11733
|
if (mapProgress && !state.verbose) {
|
|
11734
|
-
return
|
|
11734
|
+
return _chunk5NNSJTJ3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
11735
11735
|
}
|
|
11736
11736
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
11737
|
-
if (!
|
|
11737
|
+
if (!_chunk5NNSJTJ3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11738
11738
|
return null;
|
|
11739
11739
|
}
|
|
11740
11740
|
if (state.emittedRunnerStarted) {
|
|
@@ -11747,7 +11747,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11747
11747
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
11748
11748
|
);
|
|
11749
11749
|
if (mapStart) {
|
|
11750
|
-
if (!
|
|
11750
|
+
if (!_chunk5NNSJTJ3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11751
11751
|
return null;
|
|
11752
11752
|
}
|
|
11753
11753
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -11757,7 +11757,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11757
11757
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
11758
11758
|
);
|
|
11759
11759
|
if (mapDone) {
|
|
11760
|
-
if (!
|
|
11760
|
+
if (!_chunk5NNSJTJ3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11761
11761
|
return null;
|
|
11762
11762
|
}
|
|
11763
11763
|
const [, results, executed, cached] = mapDone;
|
|
@@ -13046,7 +13046,7 @@ function formatRecentRunLogLines(value) {
|
|
|
13046
13046
|
(line) => typeof line === "string"
|
|
13047
13047
|
);
|
|
13048
13048
|
if (tail.length === 0) return [];
|
|
13049
|
-
const shown = tail.map((line) =>
|
|
13049
|
+
const shown = tail.map((line) => _chunk5NNSJTJ3js.classifyLogLine.call(void 0, line)).filter(
|
|
13050
13050
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
13051
13051
|
).slice(-8);
|
|
13052
13052
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -13325,7 +13325,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13325
13325
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _432 => _432.hits]), () => ( null));
|
|
13326
13326
|
if (jsonOutput) {
|
|
13327
13327
|
const payload2 = _optionalChain([options, 'optionalAccess', _433 => _433.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
13328
|
-
|
|
13328
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
13329
13329
|
hits ? { ...payload2, hits } : payload2,
|
|
13330
13330
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _434 => _434.jsonFields]) }
|
|
13331
13331
|
);
|
|
@@ -13341,7 +13341,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13341
13341
|
...buildPlayCompletionTextLines(status),
|
|
13342
13342
|
...formatRunHitsLines(hits)
|
|
13343
13343
|
];
|
|
13344
|
-
|
|
13344
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
13345
13345
|
json: false,
|
|
13346
13346
|
text: `${lines2.join("\n")}
|
|
13347
13347
|
`
|
|
@@ -13392,7 +13392,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13392
13392
|
lines.push(...buildBillingRollupTextLines(status));
|
|
13393
13393
|
const compact = compactPlayStatus(status);
|
|
13394
13394
|
const payload = _optionalChain([options, 'optionalAccess', _436 => _436.fullJson]) ? status : compact;
|
|
13395
|
-
|
|
13395
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
13396
13396
|
{
|
|
13397
13397
|
...payload,
|
|
13398
13398
|
render: {
|
|
@@ -14158,7 +14158,7 @@ function writeStartedPlayRun(input) {
|
|
|
14158
14158
|
dashboardUrl: input.dashboardUrl,
|
|
14159
14159
|
package: input.package
|
|
14160
14160
|
};
|
|
14161
|
-
|
|
14161
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
14162
14162
|
json: true,
|
|
14163
14163
|
fields: input.jsonFields
|
|
14164
14164
|
});
|
|
@@ -14180,7 +14180,7 @@ function writeStartedPlayRun(input) {
|
|
|
14180
14180
|
input.progress.writeLine(output2, process.stdout);
|
|
14181
14181
|
return;
|
|
14182
14182
|
}
|
|
14183
|
-
|
|
14183
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, input.package, {
|
|
14184
14184
|
json: false,
|
|
14185
14185
|
text: `${output2}
|
|
14186
14186
|
`
|
|
@@ -14209,7 +14209,7 @@ function writeStartedPlayRun(input) {
|
|
|
14209
14209
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)} --json`] : []
|
|
14210
14210
|
];
|
|
14211
14211
|
if (input.jsonOutput) {
|
|
14212
|
-
|
|
14212
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
14213
14213
|
return;
|
|
14214
14214
|
}
|
|
14215
14215
|
if (input.dashboardUrl) {
|
|
@@ -14220,7 +14220,7 @@ function writeStartedPlayRun(input) {
|
|
|
14220
14220
|
input.progress.writeLine(output, process.stdout);
|
|
14221
14221
|
return;
|
|
14222
14222
|
}
|
|
14223
|
-
|
|
14223
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
14224
14224
|
{
|
|
14225
14225
|
...payload,
|
|
14226
14226
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -14230,7 +14230,7 @@ function writeStartedPlayRun(input) {
|
|
|
14230
14230
|
);
|
|
14231
14231
|
}
|
|
14232
14232
|
function parsePlayCheckOptions(args) {
|
|
14233
|
-
const selection =
|
|
14233
|
+
const selection = _chunk4Q572AVSjs.parseJsonFields.call(void 0, args, "check");
|
|
14234
14234
|
args = selection.args;
|
|
14235
14235
|
const target = args[0];
|
|
14236
14236
|
if (!target || target.startsWith("-")) {
|
|
@@ -14242,7 +14242,7 @@ function parsePlayCheckOptions(args) {
|
|
|
14242
14242
|
if (arg !== "--json" && arg !== "--full")
|
|
14243
14243
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
14244
14244
|
}
|
|
14245
|
-
const jsonOutput =
|
|
14245
|
+
const jsonOutput = _chunk4Q572AVSjs.argsWantJson.call(void 0, args);
|
|
14246
14246
|
return {
|
|
14247
14247
|
target,
|
|
14248
14248
|
jsonOutput,
|
|
@@ -14318,7 +14318,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
14318
14318
|
useLatest,
|
|
14319
14319
|
expectedArtifactHash,
|
|
14320
14320
|
dryRun,
|
|
14321
|
-
jsonOutput:
|
|
14321
|
+
jsonOutput: _chunk4Q572AVSjs.argsWantJson.call(void 0, args)
|
|
14322
14322
|
};
|
|
14323
14323
|
}
|
|
14324
14324
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -14359,7 +14359,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
14359
14359
|
target,
|
|
14360
14360
|
expectedArtifactHash,
|
|
14361
14361
|
dryRun,
|
|
14362
|
-
jsonOutput:
|
|
14362
|
+
jsonOutput: _chunk4Q572AVSjs.argsWantJson.call(void 0, args)
|
|
14363
14363
|
};
|
|
14364
14364
|
}
|
|
14365
14365
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -14570,7 +14570,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
14570
14570
|
async function handlePlayCheck(args) {
|
|
14571
14571
|
const options = parsePlayCheckOptions(args);
|
|
14572
14572
|
if (!isFileTarget2(options.target)) {
|
|
14573
|
-
const client = new (0,
|
|
14573
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
14574
14574
|
try {
|
|
14575
14575
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
14576
14576
|
command: "check"
|
|
@@ -14599,7 +14599,7 @@ async function handlePlayCheck(args) {
|
|
|
14599
14599
|
},
|
|
14600
14600
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
14601
14601
|
};
|
|
14602
|
-
|
|
14602
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, result, {
|
|
14603
14603
|
json: options.jsonOutput,
|
|
14604
14604
|
fields: options.jsonFields,
|
|
14605
14605
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -14609,7 +14609,7 @@ async function handlePlayCheck(args) {
|
|
|
14609
14609
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
14610
14610
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
14611
14611
|
if (options.jsonOutput) {
|
|
14612
|
-
|
|
14612
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
14613
14613
|
{
|
|
14614
14614
|
kind: "play_check",
|
|
14615
14615
|
checked: "named_contract",
|
|
@@ -14651,7 +14651,7 @@ async function handlePlayCheck(args) {
|
|
|
14651
14651
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full --json`,
|
|
14652
14652
|
publishCommand: _optionalChain([primary, 'optionalAccess', _483 => _483.result, 'access', _484 => _484.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
14653
14653
|
});
|
|
14654
|
-
|
|
14654
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, output, {
|
|
14655
14655
|
json: options.jsonOutput,
|
|
14656
14656
|
fields: options.jsonFields,
|
|
14657
14657
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -14705,7 +14705,7 @@ async function checkOneExportedPlay(input) {
|
|
|
14705
14705
|
}
|
|
14706
14706
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
14707
14707
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
14708
|
-
const client = new (0,
|
|
14708
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
14709
14709
|
const integrationMode = resolveEvalIntegrationMode();
|
|
14710
14710
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
14711
14711
|
playName: node.playName,
|
|
@@ -14782,7 +14782,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
14782
14782
|
);
|
|
14783
14783
|
return 0;
|
|
14784
14784
|
}
|
|
14785
|
-
client = new (0,
|
|
14785
|
+
client = new (0, _chunk5NNSJTJ3js.DeeplineClient)(playRunClientOptions(options));
|
|
14786
14786
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
14787
14787
|
if (canDeferCompilerManifest) {
|
|
14788
14788
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -14977,7 +14977,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14977
14977
|
if (options.target.kind !== "name") {
|
|
14978
14978
|
throw new Error("Expected a named play run target.");
|
|
14979
14979
|
}
|
|
14980
|
-
const client = new (0,
|
|
14980
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)(playRunClientOptions(options));
|
|
14981
14981
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
14982
14982
|
const playName = options.target.name;
|
|
14983
14983
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -15374,10 +15374,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
15374
15374
|
);
|
|
15375
15375
|
return `${lines.join("\n")}
|
|
15376
15376
|
|
|
15377
|
-
${
|
|
15377
|
+
${_chunk4Q572AVSjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
15378
15378
|
}
|
|
15379
15379
|
async function handleRunGet(args) {
|
|
15380
|
-
const selection =
|
|
15380
|
+
const selection = _chunk4Q572AVSjs.parseJsonFields.call(void 0,
|
|
15381
15381
|
args,
|
|
15382
15382
|
args.includes("--config") ? "config" : "get"
|
|
15383
15383
|
);
|
|
@@ -15390,7 +15390,7 @@ async function handleRunGet(args) {
|
|
|
15390
15390
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15391
15391
|
return 1;
|
|
15392
15392
|
}
|
|
15393
|
-
const client = new (0,
|
|
15393
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
15394
15394
|
if (args.includes("--config")) {
|
|
15395
15395
|
if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
|
|
15396
15396
|
console.error(
|
|
@@ -15404,7 +15404,7 @@ async function handleRunGet(args) {
|
|
|
15404
15404
|
"This server does not support recorded configuration reads."
|
|
15405
15405
|
);
|
|
15406
15406
|
}
|
|
15407
|
-
|
|
15407
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
15408
15408
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
15409
15409
|
{ json: true, fields: selection.fields }
|
|
15410
15410
|
);
|
|
@@ -15412,7 +15412,7 @@ async function handleRunGet(args) {
|
|
|
15412
15412
|
}
|
|
15413
15413
|
if (args.includes("--input")) {
|
|
15414
15414
|
const input = await client.getRunInput(runId);
|
|
15415
|
-
|
|
15415
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
15416
15416
|
return 0;
|
|
15417
15417
|
}
|
|
15418
15418
|
const full = args.includes("--full");
|
|
@@ -15425,8 +15425,8 @@ async function handleRunGet(args) {
|
|
|
15425
15425
|
full: true,
|
|
15426
15426
|
failedLogs: args.includes("--log-failed")
|
|
15427
15427
|
}) : status;
|
|
15428
|
-
if (
|
|
15429
|
-
|
|
15428
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
15429
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
15430
15430
|
full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
15431
15431
|
{ json: true, fields: selection.fields }
|
|
15432
15432
|
);
|
|
@@ -15442,8 +15442,8 @@ async function handleRunGet(args) {
|
|
|
15442
15442
|
readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
|
|
15443
15443
|
]);
|
|
15444
15444
|
const hitLines = formatRunHitsLines(hits);
|
|
15445
|
-
const json =
|
|
15446
|
-
|
|
15445
|
+
const json = _chunk4Q572AVSjs.argsWantJson.call(void 0, args);
|
|
15446
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
15447
15447
|
{
|
|
15448
15448
|
...overview,
|
|
15449
15449
|
credits,
|
|
@@ -15546,9 +15546,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
15546
15546
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15547
15547
|
return 1;
|
|
15548
15548
|
}
|
|
15549
|
-
const status = await new (0,
|
|
15550
|
-
if (
|
|
15551
|
-
|
|
15549
|
+
const status = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().runs.status(runId);
|
|
15550
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
15551
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
15552
15552
|
return 0;
|
|
15553
15553
|
}
|
|
15554
15554
|
if (!status.available) {
|
|
@@ -15588,7 +15588,7 @@ async function handleRunsRerun(args) {
|
|
|
15588
15588
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15589
15589
|
return 1;
|
|
15590
15590
|
}
|
|
15591
|
-
const options = { json:
|
|
15591
|
+
const options = { json: _chunk4Q572AVSjs.argsWantJson.call(void 0, args) };
|
|
15592
15592
|
for (let index = 0; index < args.length; index += 1) {
|
|
15593
15593
|
if (args[index] === "--idempotency-key") {
|
|
15594
15594
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -15653,8 +15653,8 @@ ${usage2}
|
|
|
15653
15653
|
Discover Plays: ${next.discover}
|
|
15654
15654
|
Active runs: ${next.running}`
|
|
15655
15655
|
);
|
|
15656
|
-
if (
|
|
15657
|
-
|
|
15656
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
15657
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
15658
15658
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
15659
15659
|
{ json: true }
|
|
15660
15660
|
);
|
|
@@ -15669,7 +15669,7 @@ Active runs: ${next.running}`
|
|
|
15669
15669
|
console.error("--offset requires --play.");
|
|
15670
15670
|
return 1;
|
|
15671
15671
|
}
|
|
15672
|
-
const client = new (0,
|
|
15672
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
15673
15673
|
const page = await client.runs.listPage({
|
|
15674
15674
|
...playName ? { play: playName } : {},
|
|
15675
15675
|
...statusFilter ? { status: statusFilter } : {},
|
|
@@ -15738,7 +15738,7 @@ Active runs: ${next.running}`
|
|
|
15738
15738
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
15739
15739
|
);
|
|
15740
15740
|
}
|
|
15741
|
-
|
|
15741
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
15742
15742
|
{
|
|
15743
15743
|
runs,
|
|
15744
15744
|
count: runs.length,
|
|
@@ -15752,7 +15752,7 @@ Active runs: ${next.running}`
|
|
|
15752
15752
|
},
|
|
15753
15753
|
render: { sections: [{ title: "runs", lines }] }
|
|
15754
15754
|
},
|
|
15755
|
-
{ json:
|
|
15755
|
+
{ json: _chunk4Q572AVSjs.argsWantJson.call(void 0, args) }
|
|
15756
15756
|
);
|
|
15757
15757
|
return 0;
|
|
15758
15758
|
}
|
|
@@ -15782,7 +15782,7 @@ async function handleRunTail(args) {
|
|
|
15782
15782
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15783
15783
|
return 1;
|
|
15784
15784
|
}
|
|
15785
|
-
const parsed =
|
|
15785
|
+
const parsed = _chunk5NNSJTJ3js.parseLogLevel.call(void 0, value);
|
|
15786
15786
|
if (!parsed) {
|
|
15787
15787
|
console.error(
|
|
15788
15788
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15820,9 +15820,9 @@ async function handleRunTail(args) {
|
|
|
15820
15820
|
);
|
|
15821
15821
|
return 1;
|
|
15822
15822
|
}
|
|
15823
|
-
const client = new (0,
|
|
15823
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
15824
15824
|
const jsonLines = args.includes("--jsonl");
|
|
15825
|
-
const jsonOutput = !jsonLines &&
|
|
15825
|
+
const jsonOutput = !jsonLines && _chunk4Q572AVSjs.argsWantJson.call(void 0, args);
|
|
15826
15826
|
const compact = args.includes("--compact");
|
|
15827
15827
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
15828
15828
|
const compactState = {
|
|
@@ -15903,7 +15903,7 @@ async function handleRunLogs(args) {
|
|
|
15903
15903
|
]);
|
|
15904
15904
|
const cursorIndex = args.indexOf("--cursor");
|
|
15905
15905
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15906
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
15906
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk5NNSJTJ3js.isRunLogsCursor.call(void 0, cursorValue));
|
|
15907
15907
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
15908
15908
|
return handleRunEventSearch(args);
|
|
15909
15909
|
}
|
|
@@ -15937,7 +15937,7 @@ async function handleRunLogs(args) {
|
|
|
15937
15937
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15938
15938
|
return 1;
|
|
15939
15939
|
}
|
|
15940
|
-
const parsed =
|
|
15940
|
+
const parsed = _chunk5NNSJTJ3js.parseLogLevel.call(void 0, value);
|
|
15941
15941
|
if (!parsed) {
|
|
15942
15942
|
console.error(
|
|
15943
15943
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15984,12 +15984,12 @@ async function handleRunLogs(args) {
|
|
|
15984
15984
|
);
|
|
15985
15985
|
return 1;
|
|
15986
15986
|
}
|
|
15987
|
-
const client = new (0,
|
|
15987
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
15988
15988
|
if (outPath) {
|
|
15989
15989
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
15990
|
-
const logs = result2.entries.filter((line) =>
|
|
15990
|
+
const logs = result2.entries.filter((line) => _chunk5NNSJTJ3js.logLevelReaches.call(void 0, _chunk5NNSJTJ3js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk5NNSJTJ3js.classifyLogLine.call(void 0, line).line);
|
|
15991
15991
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
15992
|
-
|
|
15992
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
15993
15993
|
{
|
|
15994
15994
|
runId: result2.runId,
|
|
15995
15995
|
log_path: outPath,
|
|
@@ -16012,7 +16012,7 @@ async function handleRunLogs(args) {
|
|
|
16012
16012
|
]
|
|
16013
16013
|
}
|
|
16014
16014
|
},
|
|
16015
|
-
{ json:
|
|
16015
|
+
{ json: _chunk4Q572AVSjs.argsWantJson.call(void 0, args) }
|
|
16016
16016
|
);
|
|
16017
16017
|
return 0;
|
|
16018
16018
|
}
|
|
@@ -16043,7 +16043,7 @@ async function handleRunLogs(args) {
|
|
|
16043
16043
|
}
|
|
16044
16044
|
};
|
|
16045
16045
|
const text = buildRunLogsText(filteredResult);
|
|
16046
|
-
|
|
16046
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
16047
16047
|
{
|
|
16048
16048
|
runId: result.runId,
|
|
16049
16049
|
totalCount: result.totalCount,
|
|
@@ -16067,7 +16067,7 @@ async function handleRunLogs(args) {
|
|
|
16067
16067
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
16068
16068
|
},
|
|
16069
16069
|
{
|
|
16070
|
-
json:
|
|
16070
|
+
json: _chunk4Q572AVSjs.argsWantJson.call(void 0, args),
|
|
16071
16071
|
text
|
|
16072
16072
|
}
|
|
16073
16073
|
);
|
|
@@ -16091,7 +16091,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
16091
16091
|
);
|
|
16092
16092
|
}
|
|
16093
16093
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
16094
|
-
(entry) =>
|
|
16094
|
+
(entry) => _chunk5NNSJTJ3js.logLevelReaches.call(void 0, _chunk5NNSJTJ3js.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
16095
16095
|
);
|
|
16096
16096
|
const selected = matching.slice(-limit);
|
|
16097
16097
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -16101,7 +16101,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
16101
16101
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _526 => _526.at, 'call', _527 => _527(-1), 'optionalAccess', _528 => _528.seq]), () => ( null)),
|
|
16102
16102
|
truncated: result.truncated || olderMatchesExist,
|
|
16103
16103
|
hasMore: olderMatchesExist,
|
|
16104
|
-
nextCursor: olderMatchesExist ?
|
|
16104
|
+
nextCursor: olderMatchesExist ? _chunk5NNSJTJ3js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
16105
16105
|
};
|
|
16106
16106
|
}
|
|
16107
16107
|
async function handleRunEventSearch(args) {
|
|
@@ -16168,7 +16168,7 @@ ${usage2}`);
|
|
|
16168
16168
|
namespace,
|
|
16169
16169
|
...backend ? { backend } : {}
|
|
16170
16170
|
} : void 0;
|
|
16171
|
-
const client = new (0,
|
|
16171
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
16172
16172
|
const result = await client.runs.searchEvents({
|
|
16173
16173
|
...runId ? { runId } : {},
|
|
16174
16174
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -16241,7 +16241,7 @@ ${renderedDetails}` : ""}`;
|
|
|
16241
16241
|
String(limit),
|
|
16242
16242
|
"--json"
|
|
16243
16243
|
].join(" ") : null;
|
|
16244
|
-
|
|
16244
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
16245
16245
|
{
|
|
16246
16246
|
events,
|
|
16247
16247
|
nextCursor: result.nextCursor,
|
|
@@ -16252,14 +16252,14 @@ ${renderedDetails}` : ""}`;
|
|
|
16252
16252
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
16253
16253
|
},
|
|
16254
16254
|
{
|
|
16255
|
-
json:
|
|
16255
|
+
json: _chunk4Q572AVSjs.argsWantJson.call(void 0, args),
|
|
16256
16256
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
16257
16257
|
}
|
|
16258
16258
|
);
|
|
16259
16259
|
return 0;
|
|
16260
16260
|
}
|
|
16261
16261
|
function buildRunLogsText(result) {
|
|
16262
|
-
const lines = result.entries.map((line) =>
|
|
16262
|
+
const lines = result.entries.map((line) => _chunk5NNSJTJ3js.classifyLogLine.call(void 0, line).line);
|
|
16263
16263
|
if (result.warning) {
|
|
16264
16264
|
if (lines.length > 0) lines.push("");
|
|
16265
16265
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -16293,7 +16293,7 @@ async function handleRunStop(args) {
|
|
|
16293
16293
|
reason = args[++index];
|
|
16294
16294
|
}
|
|
16295
16295
|
}
|
|
16296
|
-
const client = new (0,
|
|
16296
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
16297
16297
|
const result = await client.runs.stop(runId, { reason });
|
|
16298
16298
|
const state = resolveRunStopState(result);
|
|
16299
16299
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -16308,7 +16308,7 @@ async function handleRunStop(args) {
|
|
|
16308
16308
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
16309
16309
|
`inspect: deepline runs get ${runId} --full --json`
|
|
16310
16310
|
];
|
|
16311
|
-
|
|
16311
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
16312
16312
|
{
|
|
16313
16313
|
...cancelling,
|
|
16314
16314
|
state,
|
|
@@ -16323,7 +16323,7 @@ async function handleRunStop(args) {
|
|
|
16323
16323
|
]
|
|
16324
16324
|
}
|
|
16325
16325
|
},
|
|
16326
|
-
{ json:
|
|
16326
|
+
{ json: _chunk4Q572AVSjs.argsWantJson.call(void 0, args) }
|
|
16327
16327
|
);
|
|
16328
16328
|
return 0;
|
|
16329
16329
|
}
|
|
@@ -16340,7 +16340,7 @@ async function handleRunStop(args) {
|
|
|
16340
16340
|
];
|
|
16341
16341
|
process.stderr.write(`${lines2.join("\n")}
|
|
16342
16342
|
`);
|
|
16343
|
-
|
|
16343
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
16344
16344
|
{
|
|
16345
16345
|
...result,
|
|
16346
16346
|
render: {
|
|
@@ -16355,7 +16355,7 @@ async function handleRunStop(args) {
|
|
|
16355
16355
|
]
|
|
16356
16356
|
}
|
|
16357
16357
|
},
|
|
16358
|
-
{ json:
|
|
16358
|
+
{ json: _chunk4Q572AVSjs.argsWantJson.call(void 0, args) }
|
|
16359
16359
|
);
|
|
16360
16360
|
return 1;
|
|
16361
16361
|
}
|
|
@@ -16366,12 +16366,12 @@ async function handleRunStop(args) {
|
|
|
16366
16366
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
16367
16367
|
] : []
|
|
16368
16368
|
];
|
|
16369
|
-
|
|
16369
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
16370
16370
|
{
|
|
16371
16371
|
...result,
|
|
16372
16372
|
render: { sections: [{ title: "run stop", lines }] }
|
|
16373
16373
|
},
|
|
16374
|
-
{ json:
|
|
16374
|
+
{ json: _chunk4Q572AVSjs.argsWantJson.call(void 0, args) }
|
|
16375
16375
|
);
|
|
16376
16376
|
return 0;
|
|
16377
16377
|
}
|
|
@@ -16421,18 +16421,18 @@ async function handleRunStopAll(args) {
|
|
|
16421
16421
|
reason = args[++index];
|
|
16422
16422
|
}
|
|
16423
16423
|
}
|
|
16424
|
-
const client = new (0,
|
|
16424
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
16425
16425
|
if (dryRun) {
|
|
16426
16426
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
16427
16427
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
16428
|
-
|
|
16428
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
16429
16429
|
{
|
|
16430
16430
|
...result2,
|
|
16431
16431
|
render: {
|
|
16432
16432
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
16433
16433
|
}
|
|
16434
16434
|
},
|
|
16435
|
-
{ json:
|
|
16435
|
+
{ json: _chunk4Q572AVSjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
16436
16436
|
` }
|
|
16437
16437
|
);
|
|
16438
16438
|
return 0;
|
|
@@ -16445,17 +16445,17 @@ async function handleRunStopAll(args) {
|
|
|
16445
16445
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
16446
16446
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
16447
16447
|
];
|
|
16448
|
-
|
|
16448
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
16449
16449
|
{
|
|
16450
16450
|
...result,
|
|
16451
16451
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
16452
16452
|
},
|
|
16453
|
-
{ json:
|
|
16453
|
+
{ json: _chunk4Q572AVSjs.argsWantJson.call(void 0, args) }
|
|
16454
16454
|
);
|
|
16455
16455
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
16456
16456
|
}
|
|
16457
16457
|
async function handleRunExport(args) {
|
|
16458
|
-
const selection =
|
|
16458
|
+
const selection = _chunk4Q572AVSjs.parseJsonFields.call(void 0, args, "export");
|
|
16459
16459
|
args = selection.args;
|
|
16460
16460
|
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]";
|
|
16461
16461
|
let runId;
|
|
@@ -16514,16 +16514,16 @@ async function handleRunExport(args) {
|
|
|
16514
16514
|
"INVALID_ARGUMENT"
|
|
16515
16515
|
);
|
|
16516
16516
|
}
|
|
16517
|
-
const client = new (0,
|
|
16517
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
16518
16518
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
16519
16519
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
16520
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
16520
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunk4Q572AVSjs.argsWantJson.call(void 0, args));
|
|
16521
16521
|
try {
|
|
16522
16522
|
await waitForPlayCompletionByWatch({
|
|
16523
16523
|
client,
|
|
16524
16524
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
16525
16525
|
workflowId: runId,
|
|
16526
|
-
jsonOutput:
|
|
16526
|
+
jsonOutput: _chunk4Q572AVSjs.argsWantJson.call(void 0, args),
|
|
16527
16527
|
emitLogs: false,
|
|
16528
16528
|
waitTimeoutMs,
|
|
16529
16529
|
startedAt: Date.now(),
|
|
@@ -16623,8 +16623,8 @@ async function handleRunExport(args) {
|
|
|
16623
16623
|
"utf-8"
|
|
16624
16624
|
);
|
|
16625
16625
|
}
|
|
16626
|
-
|
|
16627
|
-
json:
|
|
16626
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0, payload, {
|
|
16627
|
+
json: _chunk4Q572AVSjs.argsWantJson.call(void 0, args),
|
|
16628
16628
|
fields: selection.fields,
|
|
16629
16629
|
text: `${lines.join("\n")}
|
|
16630
16630
|
`
|
|
@@ -16645,10 +16645,10 @@ async function handlePlayGet(args) {
|
|
|
16645
16645
|
);
|
|
16646
16646
|
return 2;
|
|
16647
16647
|
}
|
|
16648
|
-
const client = new (0,
|
|
16648
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
16649
16649
|
const explicitJson = args.includes("--json");
|
|
16650
16650
|
const sourceOutput = args.includes("--source");
|
|
16651
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
16651
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunk4Q572AVSjs.argsWantJson.call(void 0, args);
|
|
16652
16652
|
const requestedRevisionFlags = [
|
|
16653
16653
|
args.includes("--working"),
|
|
16654
16654
|
args.includes("--live"),
|
|
@@ -16708,7 +16708,7 @@ async function handlePlayGet(args) {
|
|
|
16708
16708
|
}
|
|
16709
16709
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
16710
16710
|
if (jsonOutput) {
|
|
16711
|
-
|
|
16711
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, {
|
|
16712
16712
|
...detail,
|
|
16713
16713
|
...materializedFile ? {
|
|
16714
16714
|
message: loadedMessage,
|
|
@@ -16795,8 +16795,8 @@ async function handlePlayVersions(args) {
|
|
|
16795
16795
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
16796
16796
|
return 1;
|
|
16797
16797
|
}
|
|
16798
|
-
const client = new (0,
|
|
16799
|
-
const jsonOutput =
|
|
16798
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
16799
|
+
const jsonOutput = _chunk4Q572AVSjs.argsWantJson.call(void 0, args);
|
|
16800
16800
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16801
16801
|
command: "versions"
|
|
16802
16802
|
});
|
|
@@ -16804,7 +16804,7 @@ async function handlePlayVersions(args) {
|
|
|
16804
16804
|
parseReferencedPlayTarget3(playName).playName
|
|
16805
16805
|
);
|
|
16806
16806
|
if (jsonOutput) {
|
|
16807
|
-
|
|
16807
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, { versions });
|
|
16808
16808
|
return 0;
|
|
16809
16809
|
}
|
|
16810
16810
|
if (versions.length === 0) {
|
|
@@ -16836,9 +16836,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
16836
16836
|
"signals"
|
|
16837
16837
|
];
|
|
16838
16838
|
async function handlePlayList(args) {
|
|
16839
|
-
const jsonOutput =
|
|
16839
|
+
const jsonOutput = _chunk4Q572AVSjs.argsWantJson.call(void 0, args);
|
|
16840
16840
|
const showCost = args.includes("--show-cost");
|
|
16841
|
-
const client = new (0,
|
|
16841
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
16842
16842
|
const categoriesIndex = args.indexOf("--categories");
|
|
16843
16843
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _564 => _564[categoriesIndex + 1], 'optionalAccess', _565 => _565.trim, 'call', _566 => _566()]) : void 0;
|
|
16844
16844
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -16935,7 +16935,7 @@ async function handlePlayList(args) {
|
|
|
16935
16935
|
lines.push("List truncated \u2014 more plays are available.");
|
|
16936
16936
|
lines.push(`Next page: ${nextPage}`);
|
|
16937
16937
|
}
|
|
16938
|
-
|
|
16938
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
16939
16939
|
{
|
|
16940
16940
|
plays,
|
|
16941
16941
|
count: plays.length,
|
|
@@ -16953,7 +16953,7 @@ async function handlePlayList(args) {
|
|
|
16953
16953
|
}
|
|
16954
16954
|
async function handlePlayPin(args, pinned) {
|
|
16955
16955
|
const target = _optionalChain([args, 'access', _573 => _573.find, 'call', _574 => _574((arg) => !arg.startsWith("-")), 'optionalAccess', _575 => _575.trim, 'call', _576 => _576()]);
|
|
16956
|
-
const jsonOutput =
|
|
16956
|
+
const jsonOutput = _chunk4Q572AVSjs.argsWantJson.call(void 0, args);
|
|
16957
16957
|
const dryRun = args.includes("--dry-run");
|
|
16958
16958
|
if (!target) {
|
|
16959
16959
|
console.error(
|
|
@@ -16971,11 +16971,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
16971
16971
|
const name = parsedTarget.playName;
|
|
16972
16972
|
const plan = { name, pinned, dryRun };
|
|
16973
16973
|
if (dryRun) {
|
|
16974
|
-
|
|
16974
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, plan);
|
|
16975
16975
|
return 0;
|
|
16976
16976
|
}
|
|
16977
|
-
const result = await new (0,
|
|
16978
|
-
if (jsonOutput)
|
|
16977
|
+
const result = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().setPlayPinned(name, pinned);
|
|
16978
|
+
if (jsonOutput) _chunk4Q572AVSjs.printCompactJson.call(void 0, result);
|
|
16979
16979
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
16980
16980
|
return 0;
|
|
16981
16981
|
}
|
|
@@ -16991,7 +16991,7 @@ function csvColumnLines(csvInput) {
|
|
|
16991
16991
|
const headers = [defaults[column]].flat().filter((header) => header && header !== column);
|
|
16992
16992
|
return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
|
|
16993
16993
|
}),
|
|
16994
|
-
|
|
16994
|
+
_chunk5NNSJTJ3js.CSV_HEADER_MATCHING_NOTE
|
|
16995
16995
|
];
|
|
16996
16996
|
}
|
|
16997
16997
|
function describedPlay(play) {
|
|
@@ -17135,12 +17135,12 @@ async function handlePlayGrep(args) {
|
|
|
17135
17135
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
17136
17136
|
return 1;
|
|
17137
17137
|
}
|
|
17138
|
-
const client = new (0,
|
|
17138
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
17139
17139
|
const results = (await client.listPlays({ grep: query })).map(
|
|
17140
17140
|
summarizePlayGrepResult
|
|
17141
17141
|
);
|
|
17142
|
-
if (
|
|
17143
|
-
|
|
17142
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
17143
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, {
|
|
17144
17144
|
plays: results,
|
|
17145
17145
|
count: results.length,
|
|
17146
17146
|
query,
|
|
@@ -17163,7 +17163,7 @@ async function handlePlayGrep(args) {
|
|
|
17163
17163
|
return 0;
|
|
17164
17164
|
}
|
|
17165
17165
|
async function handlePlayDescribe(args) {
|
|
17166
|
-
const selection =
|
|
17166
|
+
const selection = _chunk4Q572AVSjs.parseJsonFields.call(void 0, args, "describe");
|
|
17167
17167
|
args = selection.args;
|
|
17168
17168
|
const playName = args[0];
|
|
17169
17169
|
if (!playName) {
|
|
@@ -17197,8 +17197,8 @@ async function handlePlayDescribe(args) {
|
|
|
17197
17197
|
`deepline plays check ${playName}`,
|
|
17198
17198
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
17199
17199
|
];
|
|
17200
|
-
if (
|
|
17201
|
-
|
|
17200
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
17201
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, {
|
|
17202
17202
|
ok: false,
|
|
17203
17203
|
error: { message },
|
|
17204
17204
|
next
|
|
@@ -17212,7 +17212,7 @@ async function handlePlayDescribe(args) {
|
|
|
17212
17212
|
}
|
|
17213
17213
|
return 2;
|
|
17214
17214
|
}
|
|
17215
|
-
const client = new (0,
|
|
17215
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
17216
17216
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
17217
17217
|
command: "describe"
|
|
17218
17218
|
});
|
|
@@ -17222,9 +17222,9 @@ async function handlePlayDescribe(args) {
|
|
|
17222
17222
|
compact: args.includes("--compact")
|
|
17223
17223
|
}
|
|
17224
17224
|
);
|
|
17225
|
-
if (
|
|
17226
|
-
if (selection.fields)
|
|
17227
|
-
else
|
|
17225
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
17226
|
+
if (selection.fields) _chunk4Q572AVSjs.printJson.call(void 0, play, selection.fields);
|
|
17227
|
+
else _chunk4Q572AVSjs.printCompactJson.call(void 0, play);
|
|
17228
17228
|
return 0;
|
|
17229
17229
|
}
|
|
17230
17230
|
printPlayDescription(play);
|
|
@@ -17268,7 +17268,7 @@ async function handlePlaySave(args) {
|
|
|
17268
17268
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
17269
17269
|
};
|
|
17270
17270
|
if (options.jsonOutput) {
|
|
17271
|
-
|
|
17271
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, result);
|
|
17272
17272
|
} else {
|
|
17273
17273
|
console.error(result.message);
|
|
17274
17274
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -17290,7 +17290,7 @@ async function handlePlaySave(args) {
|
|
|
17290
17290
|
};
|
|
17291
17291
|
if (options.dryRun) {
|
|
17292
17292
|
if (options.jsonOutput) {
|
|
17293
|
-
|
|
17293
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, dryRun);
|
|
17294
17294
|
} else {
|
|
17295
17295
|
console.log(`Dry run: ${playName}`);
|
|
17296
17296
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17299,7 +17299,7 @@ async function handlePlaySave(args) {
|
|
|
17299
17299
|
}
|
|
17300
17300
|
return 0;
|
|
17301
17301
|
}
|
|
17302
|
-
const client = new (0,
|
|
17302
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
17303
17303
|
try {
|
|
17304
17304
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
17305
17305
|
"cli.play_save_compile_manifests",
|
|
@@ -17335,7 +17335,7 @@ async function handlePlaySave(args) {
|
|
|
17335
17335
|
}
|
|
17336
17336
|
};
|
|
17337
17337
|
if (options.jsonOutput) {
|
|
17338
|
-
|
|
17338
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, result);
|
|
17339
17339
|
} else {
|
|
17340
17340
|
console.log(
|
|
17341
17341
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -17361,7 +17361,7 @@ async function handlePlayPublish(args) {
|
|
|
17361
17361
|
}
|
|
17362
17362
|
const { target: playName, useLatest } = options;
|
|
17363
17363
|
let revisionId = options.revisionId;
|
|
17364
|
-
const client = new (0,
|
|
17364
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
17365
17365
|
if (isFileTarget2(playName)) {
|
|
17366
17366
|
if (revisionId || useLatest) {
|
|
17367
17367
|
console.error(
|
|
@@ -17393,7 +17393,7 @@ async function handlePlayPublish(args) {
|
|
|
17393
17393
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
17394
17394
|
};
|
|
17395
17395
|
if (options.jsonOutput) {
|
|
17396
|
-
|
|
17396
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, result3);
|
|
17397
17397
|
} else {
|
|
17398
17398
|
console.error(result3.message);
|
|
17399
17399
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -17416,7 +17416,7 @@ async function handlePlayPublish(args) {
|
|
|
17416
17416
|
};
|
|
17417
17417
|
if (options.dryRun) {
|
|
17418
17418
|
if (options.jsonOutput) {
|
|
17419
|
-
|
|
17419
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, dryRun);
|
|
17420
17420
|
} else {
|
|
17421
17421
|
console.log(`Dry run: ${rootPlayName}`);
|
|
17422
17422
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17484,7 +17484,7 @@ async function handlePlayPublish(args) {
|
|
|
17484
17484
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
17485
17485
|
};
|
|
17486
17486
|
if (options.jsonOutput) {
|
|
17487
|
-
|
|
17487
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, result2);
|
|
17488
17488
|
} else {
|
|
17489
17489
|
printPublishReceipt({
|
|
17490
17490
|
name: rootPlayName,
|
|
@@ -17515,7 +17515,7 @@ async function handlePlayPublish(args) {
|
|
|
17515
17515
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
17516
17516
|
latest: useLatest
|
|
17517
17517
|
};
|
|
17518
|
-
|
|
17518
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, result2);
|
|
17519
17519
|
return 0;
|
|
17520
17520
|
}
|
|
17521
17521
|
const resolvedName = parseReferencedPlayTarget3(playName).playName;
|
|
@@ -17539,7 +17539,7 @@ async function handlePlayPublish(args) {
|
|
|
17539
17539
|
revisionId ? { revisionId } : {}
|
|
17540
17540
|
);
|
|
17541
17541
|
if (options.jsonOutput) {
|
|
17542
|
-
|
|
17542
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, result);
|
|
17543
17543
|
} else {
|
|
17544
17544
|
printPublishReceipt({
|
|
17545
17545
|
name: result.name,
|
|
@@ -17579,7 +17579,7 @@ async function handlePlayDelete(args) {
|
|
|
17579
17579
|
);
|
|
17580
17580
|
return 2;
|
|
17581
17581
|
}
|
|
17582
|
-
const client = new (0,
|
|
17582
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
17583
17583
|
let detail;
|
|
17584
17584
|
try {
|
|
17585
17585
|
detail = await client.getPlay(parseReferencedPlayTarget3(playName).playName);
|
|
@@ -17603,8 +17603,8 @@ async function handlePlayDelete(args) {
|
|
|
17603
17603
|
name: resolvedName,
|
|
17604
17604
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
17605
17605
|
};
|
|
17606
|
-
if (
|
|
17607
|
-
|
|
17606
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
17607
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, result2);
|
|
17608
17608
|
} else {
|
|
17609
17609
|
process.stdout.write(
|
|
17610
17610
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -17614,8 +17614,8 @@ async function handlePlayDelete(args) {
|
|
|
17614
17614
|
return 0;
|
|
17615
17615
|
}
|
|
17616
17616
|
const result = await client.deletePlay(resolvedName);
|
|
17617
|
-
if (
|
|
17618
|
-
|
|
17617
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
17618
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, result);
|
|
17619
17619
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
17620
17620
|
}
|
|
17621
17621
|
if (result.alreadyArchived) {
|
|
@@ -17654,13 +17654,13 @@ async function handlePlayRestore(args) {
|
|
|
17654
17654
|
);
|
|
17655
17655
|
return 2;
|
|
17656
17656
|
}
|
|
17657
|
-
const client = new (0,
|
|
17657
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
17658
17658
|
try {
|
|
17659
17659
|
const result = await client.restorePlay(
|
|
17660
17660
|
parseReferencedPlayTarget3(playName).playName
|
|
17661
17661
|
);
|
|
17662
|
-
if (
|
|
17663
|
-
|
|
17662
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
17663
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, result);
|
|
17664
17664
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
17665
17665
|
}
|
|
17666
17666
|
if (result.alreadyActive) {
|
|
@@ -17767,7 +17767,7 @@ Examples:
|
|
|
17767
17767
|
).action(async (target, options) => {
|
|
17768
17768
|
process.exitCode = await handlePlayCheck([
|
|
17769
17769
|
target,
|
|
17770
|
-
...
|
|
17770
|
+
..._chunk4Q572AVSjs.jsonFieldArgs.call(void 0, options.json),
|
|
17771
17771
|
...options.full ? ["--full"] : []
|
|
17772
17772
|
]);
|
|
17773
17773
|
});
|
|
@@ -17996,9 +17996,9 @@ Examples:
|
|
|
17996
17996
|
const limit = Number(options.historyLimit);
|
|
17997
17997
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
17998
17998
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
17999
|
-
const client = new (0,
|
|
17999
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
18000
18000
|
if (options.binding) {
|
|
18001
|
-
|
|
18001
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0,
|
|
18002
18002
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
18003
18003
|
);
|
|
18004
18004
|
return;
|
|
@@ -18006,7 +18006,7 @@ Examples:
|
|
|
18006
18006
|
const result = await client.listPlayTriggerInventory({
|
|
18007
18007
|
cursor: options.cursor
|
|
18008
18008
|
});
|
|
18009
|
-
|
|
18009
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, {
|
|
18010
18010
|
...result,
|
|
18011
18011
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
|
|
18012
18012
|
});
|
|
@@ -18053,7 +18053,7 @@ Examples:
|
|
|
18053
18053
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
18054
18054
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
18055
18055
|
}
|
|
18056
|
-
const result = await new (0,
|
|
18056
|
+
const result = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().getPlaysActivity({
|
|
18057
18057
|
timeZone: options.timeZone,
|
|
18058
18058
|
days,
|
|
18059
18059
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -18067,7 +18067,7 @@ Examples:
|
|
|
18067
18067
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
18068
18068
|
);
|
|
18069
18069
|
}
|
|
18070
|
-
|
|
18070
|
+
_chunk4Q572AVSjs.printCommandEnvelope.call(void 0,
|
|
18071
18071
|
{ ...result },
|
|
18072
18072
|
{
|
|
18073
18073
|
json: options.json || !process.stdout.isTTY,
|
|
@@ -18096,7 +18096,7 @@ Examples:
|
|
|
18096
18096
|
false
|
|
18097
18097
|
);
|
|
18098
18098
|
});
|
|
18099
|
-
|
|
18099
|
+
_chunk2RJ7RMRMjs.registerDeprecatedSearchCommand.call(void 0,
|
|
18100
18100
|
play,
|
|
18101
18101
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
18102
18102
|
);
|
|
@@ -18140,7 +18140,7 @@ Examples:
|
|
|
18140
18140
|
);
|
|
18141
18141
|
_chunkAFNEQ43Jjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
18142
18142
|
async (target, options) => {
|
|
18143
|
-
const ownView = () => handlePlayDescribe(
|
|
18143
|
+
const ownView = () => handlePlayDescribe(_chunk4Q572AVSjs.describeArgs.call(void 0, target, options));
|
|
18144
18144
|
const [flagText] = [options.json].filter(
|
|
18145
18145
|
(value) => typeof value === "string"
|
|
18146
18146
|
);
|
|
@@ -18151,7 +18151,7 @@ Examples:
|
|
|
18151
18151
|
process.exitCode = await ownView();
|
|
18152
18152
|
return;
|
|
18153
18153
|
}
|
|
18154
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
18154
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-FJZXYKFH.js")));
|
|
18155
18155
|
process.exitCode = await describeAnything(
|
|
18156
18156
|
name,
|
|
18157
18157
|
{
|
|
@@ -18268,7 +18268,7 @@ Examples:
|
|
|
18268
18268
|
deepline plays deployments <deployment-id>
|
|
18269
18269
|
`
|
|
18270
18270
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
|
|
18271
|
-
async (id, options) => id ?
|
|
18271
|
+
async (id, options) => id ? _chunkYUKZHAFWjs.handleDeploymentGet.call(void 0, id, options) : _chunkYUKZHAFWjs.handleDeploymentsList.call(void 0, options)
|
|
18272
18272
|
);
|
|
18273
18273
|
addPublishHelp(
|
|
18274
18274
|
play.command("publish <target>").description(
|
|
@@ -18448,7 +18448,7 @@ Examples:
|
|
|
18448
18448
|
).action(async (runId, options) => {
|
|
18449
18449
|
process.exitCode = await handleRunGet([
|
|
18450
18450
|
runId,
|
|
18451
|
-
...
|
|
18451
|
+
..._chunk4Q572AVSjs.jsonFieldArgs.call(void 0, options.json),
|
|
18452
18452
|
...options.full ? ["--full"] : [],
|
|
18453
18453
|
...options.input ? ["--input"] : [],
|
|
18454
18454
|
...options.config ? ["--config"] : [],
|
|
@@ -18724,7 +18724,7 @@ Examples:
|
|
|
18724
18724
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
18725
18725
|
...options.wait ? ["--wait"] : [],
|
|
18726
18726
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
18727
|
-
...
|
|
18727
|
+
..._chunk4Q572AVSjs.jsonFieldArgs.call(void 0, options.json)
|
|
18728
18728
|
]);
|
|
18729
18729
|
});
|
|
18730
18730
|
const share = play.command("share").description(
|
|
@@ -18890,10 +18890,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18890
18890
|
return 2;
|
|
18891
18891
|
}
|
|
18892
18892
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
18893
|
-
const status = await new (0,
|
|
18893
|
+
const status = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().getSharePage(name);
|
|
18894
18894
|
const outputStatus = shareStatusForOutput(status);
|
|
18895
|
-
if (
|
|
18896
|
-
|
|
18895
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
18896
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, outputStatus);
|
|
18897
18897
|
return 0;
|
|
18898
18898
|
}
|
|
18899
18899
|
if (!outputStatus.share) {
|
|
@@ -18932,7 +18932,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18932
18932
|
return 2;
|
|
18933
18933
|
}
|
|
18934
18934
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
18935
|
-
const client = new (0,
|
|
18935
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
18936
18936
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18937
18937
|
let resolvedVersion;
|
|
18938
18938
|
if (!revisionId) {
|
|
@@ -18963,8 +18963,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18963
18963
|
);
|
|
18964
18964
|
if (!hasCompleted) {
|
|
18965
18965
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18966
|
-
if (
|
|
18967
|
-
|
|
18966
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
18967
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, {
|
|
18968
18968
|
ok: false,
|
|
18969
18969
|
code: "NO_SUCCESSFUL_RUN",
|
|
18970
18970
|
message,
|
|
@@ -18988,8 +18988,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18988
18988
|
};
|
|
18989
18989
|
if (args.includes("--dry-run")) {
|
|
18990
18990
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
18991
|
-
if (
|
|
18992
|
-
|
|
18991
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
18992
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, plan);
|
|
18993
18993
|
} else {
|
|
18994
18994
|
console.log(
|
|
18995
18995
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -18999,8 +18999,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18999
18999
|
}
|
|
19000
19000
|
const status = await client.publishSharePage(name, request);
|
|
19001
19001
|
const outputStatus = shareStatusForOutput(status);
|
|
19002
|
-
if (
|
|
19003
|
-
|
|
19002
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
19003
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, outputStatus);
|
|
19004
19004
|
return 0;
|
|
19005
19005
|
}
|
|
19006
19006
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -19031,9 +19031,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
19031
19031
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
19032
19032
|
...seoIndexing ? { seoIndexing } : {}
|
|
19033
19033
|
};
|
|
19034
|
-
const status = await new (0,
|
|
19035
|
-
if (
|
|
19036
|
-
|
|
19034
|
+
const status = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().updateSharePage(name, request);
|
|
19035
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
19036
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, status);
|
|
19037
19037
|
return 0;
|
|
19038
19038
|
}
|
|
19039
19039
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -19048,7 +19048,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
19048
19048
|
return 2;
|
|
19049
19049
|
}
|
|
19050
19050
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
19051
|
-
const client = new (0,
|
|
19051
|
+
const client = new (0, _chunk5NNSJTJ3js.DeeplineClient)();
|
|
19052
19052
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
19053
19053
|
const versionFlag = shareFlagValue(args, "--version");
|
|
19054
19054
|
if (!revisionId && versionFlag) {
|
|
@@ -19065,8 +19065,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
19065
19065
|
revisionId ? { revisionId } : {}
|
|
19066
19066
|
);
|
|
19067
19067
|
const outputStatus = shareStatusForOutput(status);
|
|
19068
|
-
if (
|
|
19069
|
-
|
|
19068
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
19069
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, outputStatus);
|
|
19070
19070
|
return 0;
|
|
19071
19071
|
}
|
|
19072
19072
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -19091,9 +19091,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
19091
19091
|
return 2;
|
|
19092
19092
|
}
|
|
19093
19093
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
19094
|
-
const status = await new (0,
|
|
19095
|
-
if (
|
|
19096
|
-
|
|
19094
|
+
const status = await new (0, _chunk5NNSJTJ3js.DeeplineClient)().unpublishSharePage(name);
|
|
19095
|
+
if (_chunk4Q572AVSjs.argsWantJson.call(void 0, args)) {
|
|
19096
|
+
_chunk4Q572AVSjs.printCompactJson.call(void 0, status);
|
|
19097
19097
|
return 0;
|
|
19098
19098
|
}
|
|
19099
19099
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|