deepline 0.3.335 → 0.3.337
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/internal-bootstrap-token.ts +81 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +18 -5
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +19 -8
- package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +35 -0
- package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +52 -5
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +3 -5
- package/dist/cli/{auth-UAPR5UHG.mjs → auth-6EREYQBM.mjs} +4 -4
- package/dist/cli/auth-XS3LNSAH.js +31 -0
- package/dist/cli/{billing-7MFJB4YT.js → billing-HZBD5KW6.js} +71 -71
- package/dist/cli/{billing-2M2MOKZ2.mjs → billing-VMXYQMW6.mjs} +4 -4
- package/dist/cli/{chunk-OYWLA5NH.mjs → chunk-2LHYWYHM.mjs} +1 -1
- package/dist/cli/{chunk-5CYUDMCR.mjs → chunk-35JNW43E.mjs} +3 -3
- package/dist/cli/{chunk-T4A2PPAD.js → chunk-3OBY2AGM.js} +45 -45
- package/dist/cli/{chunk-L45TG5XU.js → chunk-4SRIWSEG.js} +60 -60
- package/dist/cli/{chunk-R6HWDMKH.mjs → chunk-5ERCVX2D.mjs} +2 -2
- package/dist/cli/{chunk-V67UHLXQ.js → chunk-5WTJ73QU.js} +225 -225
- package/dist/cli/{chunk-TMGNPDHK.js → chunk-6PGYQ6IG.js} +6 -6
- package/dist/cli/{chunk-U5MMLE2K.mjs → chunk-7MRAPBWB.mjs} +1 -1
- package/dist/cli/{chunk-H3ZK3C4S.js → chunk-A75J52BM.js} +4 -4
- package/dist/cli/{chunk-LD5NKLNP.mjs → chunk-FY65AYHZ.mjs} +4 -4
- package/dist/cli/{chunk-BC5OUOUV.mjs → chunk-GPN5QAN2.mjs} +2 -2
- package/dist/cli/{chunk-H6HO3EX2.mjs → chunk-HBM2UKEU.mjs} +1 -1
- package/dist/cli/{chunk-YJWCFMIA.js → chunk-HDI6GSRQ.js} +48 -48
- package/dist/cli/{chunk-DPTGX6LJ.mjs → chunk-IYK6XS5X.mjs} +6 -6
- package/dist/cli/{chunk-GP5TSYAJ.js → chunk-M7IN66XB.js} +15 -15
- package/dist/cli/{chunk-MGQODOU7.js → chunk-MHWEX6GA.js} +8 -8
- package/dist/cli/{chunk-H2QPAGD4.js → chunk-NC5ODEG7.js} +9 -9
- package/dist/cli/{chunk-HNWBP7F4.js → chunk-NIXE5325.js} +26 -26
- package/dist/cli/{chunk-Z3KXO6AE.mjs → chunk-NQ42LHHS.mjs} +1 -1
- package/dist/cli/{chunk-ROTTZP5Y.js → chunk-QEBA4KXE.js} +6 -6
- package/dist/cli/{chunk-NFZEBZN5.mjs → chunk-TB6HY4BW.mjs} +2 -2
- package/dist/cli/{chunk-G7YDITCA.mjs → chunk-VXCRG4J7.mjs} +1 -1
- package/dist/cli/{chunk-ZY6VIQF3.js → chunk-XFSDLHGS.js} +2 -2
- package/dist/cli/{chunk-FTX3SMNS.mjs → chunk-YQW2FPKQ.mjs} +1 -1
- package/dist/cli/{chunk-2BKBPQYB.js → chunk-YSR4PFTZ.js} +1 -1
- package/dist/cli/{chunk-F67PGWBO.mjs → chunk-ZUB3LXOI.mjs} +5 -5
- package/dist/cli/{client-O7SUBEWH.mjs → client-BLGAYJME.mjs} +3 -3
- package/dist/cli/client-ERDYIAWV.js +20 -0
- package/dist/cli/{csv-3QEFBKVA.mjs → csv-43QTLWPN.mjs} +3 -3
- package/dist/cli/{csv-RKCZ32SM.js → csv-6WIFI6WR.js} +12 -12
- package/dist/cli/{db-6NL2DXCZ.js → db-5XFKB76V.js} +29 -29
- package/dist/cli/{db-YA77SZH2.mjs → db-NCERSUPL.mjs} +4 -4
- package/dist/cli/{describe-3T6SY4OF.js → describe-4DNSNQKM.js} +15 -15
- package/dist/cli/{describe-WRGAPAY4.mjs → describe-V4BPRUES.mjs} +8 -8
- package/dist/cli/{executions-4QH4WOAS.js → executions-GQ4C2FGI.js} +6 -6
- package/dist/cli/{executions-QAXAJTVH.mjs → executions-IGXMYAYA.mjs} +4 -4
- package/dist/cli/{feedback-LE2I5YC6.js → feedback-UFFCKVNH.js} +6 -6
- package/dist/cli/{feedback-27PPTJMV.mjs → feedback-UVDBDHE4.mjs} +3 -3
- package/dist/cli/git-4ORFOHYQ.js +23 -0
- package/dist/cli/{git-C7WLGDRA.mjs → git-XI6XRTIZ.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-LK44HVCZ.js → legacy-noops-5Z3YLPCN.js} +7 -7
- package/dist/cli/{legacy-noops-MENMLXEB.mjs → legacy-noops-IUJOLPED.mjs} +4 -4
- package/dist/cli/{monitors-EPYJCNDI.mjs → monitors-KUS3ROXZ.mjs} +4 -4
- package/dist/cli/{monitors-D2MOP24X.js → monitors-TZAGTEID.js} +85 -85
- package/dist/cli/{org-ZEXEZJWX.js → org-AHHROX6T.js} +60 -60
- package/dist/cli/{org-N5YSFPOM.mjs → org-SLIG47UE.mjs} +4 -4
- package/dist/cli/{play-EJJKDHUY.mjs → play-G4AQ2OZ5.mjs} +7 -7
- package/dist/cli/play-RRKTT3F2.js +153 -0
- package/dist/cli/{providers-BE7A6VON.js → providers-PBFVQ2EP.js} +7 -7
- package/dist/cli/{providers-5UPKT6WL.mjs → providers-XQIQO6M3.mjs} +4 -4
- package/dist/cli/{quickstart-FPBWZ3XR.mjs → quickstart-PCASXB6T.mjs} +3 -3
- package/dist/cli/{quickstart-QYWCXL3Z.js → quickstart-X6CLGXVG.js} +5 -5
- package/dist/cli/search-QGFQSDJI.js +26 -0
- package/dist/cli/{search-WN6UAW3I.mjs → search-ZTYQBKME.mjs} +5 -5
- package/dist/cli/{secrets-DGY65IAZ.mjs → secrets-IDF3FB7W.mjs} +4 -4
- package/dist/cli/{secrets-2NBEJSA7.js → secrets-N3DWWVAY.js} +13 -13
- package/dist/cli/{sessions-FQTEUX6Q.mjs → sessions-ECDSBB7P.mjs} +4 -4
- package/dist/cli/{sessions-EPSCU52L.js → sessions-SXXMNGUT.js} +5 -5
- package/dist/cli/{settings-AVW7W6KG.mjs → settings-FKARLN4C.mjs} +7 -7
- package/dist/cli/{settings-QWUYZKVG.js → settings-IXHK6BAK.js} +74 -74
- package/dist/cli/{setup-D3ZMOSVR.mjs → setup-LJG55UUU.mjs} +6 -6
- package/dist/cli/{setup-G7F5LIFR.js → setup-MJXYEE27.js} +41 -41
- package/dist/cli/{skills-744HOKKT.mjs → skills-3IBFR2ZU.mjs} +4 -4
- package/dist/cli/skills-RI3IZNWB.js +28 -0
- package/dist/cli/tools-NQJLSI4O.js +40 -0
- package/dist/cli/{tools-DJRG7RTC.mjs → tools-ZJTHJHAD.mjs} +6 -6
- package/dist/cli/update-JY7TJJDL.js +28 -0
- package/dist/cli/{update-ORTHR3FA.mjs → update-ZN34FLDH.mjs} +6 -6
- package/dist/cli/{workflow-XD7CRWCQ.mjs → workflow-LPCF7OMO.mjs} +5 -5
- package/dist/cli/{workflow-5IIN7CW2.js → workflow-VLCSTKPW.js} +15 -15
- package/dist/{client-PDAfbylh.d.mts → client-B-hjM1NX.d.mts} +18 -2
- package/dist/{client-DkoxT4wF.d.ts → client-txa3om01.d.ts} +18 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +76 -76
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-7K5HVWDU.js +0 -31
- package/dist/cli/client-JEP4W4GO.js +0 -20
- package/dist/cli/git-PY2E4CUB.js +0 -23
- package/dist/cli/play-ZLRJLPLS.js +0 -153
- package/dist/cli/search-XM4JURG3.js +0 -26
- package/dist/cli/skills-FNGT3DEV.js +0 -28
- package/dist/cli/tools-CPNEQIQP.js +0 -40
- package/dist/cli/update-K7FVDY7F.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 _chunkMHWEX6GAjs = require('./chunk-MHWEX6GA.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkNIXE5325js = require('./chunk-NIXE5325.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 _chunkNC5ODEG7js = require('./chunk-NC5ODEG7.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 _chunk6PGYQ6IGjs = require('./chunk-6PGYQ6IG.js');
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _chunkA75J52BMjs = require('./chunk-A75J52BM.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
|
+
_chunk6PGYQ6IGjs.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
|
+
_chunk6PGYQ6IGjs.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, _chunkNC5ODEG7js.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
|
+
_chunk6PGYQ6IGjs.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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
|
+
_chunk6PGYQ6IGjs.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, _chunkNC5ODEG7js.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
|
+
_chunk6PGYQ6IGjs.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
|
+
_chunk6PGYQ6IGjs.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
|
+
_chunk6PGYQ6IGjs.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
|
+
_chunk6PGYQ6IGjs.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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 = _chunkNC5ODEG7js.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 (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2818
|
+
_chunk6PGYQ6IGjs.printJsonError.call(void 0,
|
|
2819
|
+
Object.assign(new (0, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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 = _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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 _chunkNC5ODEG7js.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 (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) _chunk6PGYQ6IGjs.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, _chunkNC5ODEG7js.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
|
+
_chunk6PGYQ6IGjs.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: _chunk6PGYQ6IGjs.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}${_chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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, _chunkNC5ODEG7js.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
|
+
_chunk6PGYQ6IGjs.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
|
+
_chunk6PGYQ6IGjs.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, _chunkNC5ODEG7js.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
|
+
_chunk6PGYQ6IGjs.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, _chunkNC5ODEG7js.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
|
+
_chunk6PGYQ6IGjs.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, _chunkNC5ODEG7js.DeeplineClient)().runs.rerun(runId, {
|
|
5893
5893
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
5894
5894
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
5895
5895
|
});
|
|
5896
|
-
if (
|
|
5897
|
-
|
|
5896
|
+
if (_chunk6PGYQ6IGjs.shouldEmitJson.call(void 0, options.json)) {
|
|
5897
|
+
_chunk6PGYQ6IGjs.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 _chunk6PGYQ6IGjs.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
|
+
_chunk6PGYQ6IGjs.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 } = _chunk6PGYQ6IGjs.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: _chunkA75J52BMjs.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 = _chunk6PGYQ6IGjs.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 ? _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk6PGYQ6IGjs.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 = _chunkNC5ODEG7js.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 : _chunkNC5ODEG7js.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 : _chunk6PGYQ6IGjs.parseJsonFields.call(void 0,
|
|
9581
|
+
[...fullJson ? ["--full"] : [], ..._chunk6PGYQ6IGjs.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 || _chunk6PGYQ6IGjs.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
|
+
_chunk6PGYQ6IGjs.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)}
|
|
@@ -10593,7 +10593,7 @@ function playStatusErrorText(status) {
|
|
|
10593
10593
|
function isRetryablePendingStartFailure(status) {
|
|
10594
10594
|
if (status.status !== "failed") return false;
|
|
10595
10595
|
if (status.runId && status.runId !== "pending") return false;
|
|
10596
|
-
return
|
|
10596
|
+
return _chunkNC5ODEG7js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
10597
10597
|
}
|
|
10598
10598
|
function pendingStartFailureStatus(input) {
|
|
10599
10599
|
const message = input.error instanceof Error ? input.error.message : String(input.error);
|
|
@@ -10620,13 +10620,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
|
10620
10620
|
var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
10621
10621
|
function watchSurfaceReaches(state, provenance, level) {
|
|
10622
10622
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
10623
|
-
if (!
|
|
10623
|
+
if (!_chunkNC5ODEG7js.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
10624
10624
|
return false;
|
|
10625
10625
|
}
|
|
10626
|
-
if (
|
|
10626
|
+
if (_chunkNC5ODEG7js.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
10627
10627
|
return true;
|
|
10628
10628
|
}
|
|
10629
|
-
return state.verbose === true &&
|
|
10629
|
+
return state.verbose === true && _chunkNC5ODEG7js.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
10630
10630
|
}
|
|
10631
10631
|
function getEventPayload(event) {
|
|
10632
10632
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -11128,7 +11128,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
|
|
|
11128
11128
|
}
|
|
11129
11129
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
11130
11130
|
if (open2 && dashboardUrl) {
|
|
11131
|
-
|
|
11131
|
+
_chunk6PGYQ6IGjs.openInBrowser.call(void 0, dashboardUrl);
|
|
11132
11132
|
}
|
|
11133
11133
|
}
|
|
11134
11134
|
function printPlayLogLines(input) {
|
|
@@ -11190,7 +11190,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
11190
11190
|
billing: false
|
|
11191
11191
|
});
|
|
11192
11192
|
} catch (error) {
|
|
11193
|
-
if (
|
|
11193
|
+
if (_chunkNC5ODEG7js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
11194
11194
|
return null;
|
|
11195
11195
|
}
|
|
11196
11196
|
throw error;
|
|
@@ -11379,7 +11379,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11379
11379
|
billing: false
|
|
11380
11380
|
});
|
|
11381
11381
|
} catch (error) {
|
|
11382
|
-
if (
|
|
11382
|
+
if (_chunkNC5ODEG7js.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11383
11383
|
return null;
|
|
11384
11384
|
}
|
|
11385
11385
|
throw error;
|
|
@@ -11587,7 +11587,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11587
11587
|
lastPhase
|
|
11588
11588
|
});
|
|
11589
11589
|
}
|
|
11590
|
-
if (lastKnownWorkflowId &&
|
|
11590
|
+
if (lastKnownWorkflowId && _chunkNC5ODEG7js.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11591
11591
|
if (timeout) {
|
|
11592
11592
|
clearTimeout(timeout);
|
|
11593
11593
|
}
|
|
@@ -11623,7 +11623,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11623
11623
|
onRunAdmitted: confirmAdmission
|
|
11624
11624
|
});
|
|
11625
11625
|
}
|
|
11626
|
-
if (!lastKnownWorkflowId &&
|
|
11626
|
+
if (!lastKnownWorkflowId && _chunkNC5ODEG7js.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11627
11627
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
11628
11628
|
phase: "cli.play_start_stream_transient_failure",
|
|
11629
11629
|
ms: Date.now() - startedAt,
|
|
@@ -11722,7 +11722,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
11722
11722
|
"logs"
|
|
11723
11723
|
]);
|
|
11724
11724
|
function formatPlayLogLine(rawLine, state) {
|
|
11725
|
-
const classified =
|
|
11725
|
+
const classified = _chunkNC5ODEG7js.classifyLogLine.call(void 0, rawLine);
|
|
11726
11726
|
const line = classified.line;
|
|
11727
11727
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
11728
11728
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _351 => _351[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -11737,14 +11737,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11737
11737
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
11738
11738
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
11739
11739
|
if (providerWait && !state.verbose) {
|
|
11740
|
-
return
|
|
11740
|
+
return _chunkNC5ODEG7js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
11741
11741
|
}
|
|
11742
11742
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
11743
11743
|
if (mapProgress && !state.verbose) {
|
|
11744
|
-
return
|
|
11744
|
+
return _chunkNC5ODEG7js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
11745
11745
|
}
|
|
11746
11746
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
11747
|
-
if (!
|
|
11747
|
+
if (!_chunkNC5ODEG7js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11748
11748
|
return null;
|
|
11749
11749
|
}
|
|
11750
11750
|
if (state.emittedRunnerStarted) {
|
|
@@ -11757,7 +11757,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11757
11757
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
11758
11758
|
);
|
|
11759
11759
|
if (mapStart) {
|
|
11760
|
-
if (!
|
|
11760
|
+
if (!_chunkNC5ODEG7js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11761
11761
|
return null;
|
|
11762
11762
|
}
|
|
11763
11763
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -11767,7 +11767,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11767
11767
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
11768
11768
|
);
|
|
11769
11769
|
if (mapDone) {
|
|
11770
|
-
if (!
|
|
11770
|
+
if (!_chunkNC5ODEG7js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11771
11771
|
return null;
|
|
11772
11772
|
}
|
|
11773
11773
|
const [, results, executed, cached] = mapDone;
|
|
@@ -13056,7 +13056,7 @@ function formatRecentRunLogLines(value) {
|
|
|
13056
13056
|
(line) => typeof line === "string"
|
|
13057
13057
|
);
|
|
13058
13058
|
if (tail.length === 0) return [];
|
|
13059
|
-
const shown = tail.map((line) =>
|
|
13059
|
+
const shown = tail.map((line) => _chunkNC5ODEG7js.classifyLogLine.call(void 0, line)).filter(
|
|
13060
13060
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
13061
13061
|
).slice(-8);
|
|
13062
13062
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -13335,7 +13335,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13335
13335
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _432 => _432.hits]), () => ( null));
|
|
13336
13336
|
if (jsonOutput) {
|
|
13337
13337
|
const payload2 = _optionalChain([options, 'optionalAccess', _433 => _433.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
13338
|
-
|
|
13338
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
13339
13339
|
hits ? { ...payload2, hits } : payload2,
|
|
13340
13340
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _434 => _434.jsonFields]) }
|
|
13341
13341
|
);
|
|
@@ -13351,7 +13351,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13351
13351
|
...buildPlayCompletionTextLines(status),
|
|
13352
13352
|
...formatRunHitsLines(hits)
|
|
13353
13353
|
];
|
|
13354
|
-
|
|
13354
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
13355
13355
|
json: false,
|
|
13356
13356
|
text: `${lines2.join("\n")}
|
|
13357
13357
|
`
|
|
@@ -13402,7 +13402,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13402
13402
|
lines.push(...buildBillingRollupTextLines(status));
|
|
13403
13403
|
const compact = compactPlayStatus(status);
|
|
13404
13404
|
const payload = _optionalChain([options, 'optionalAccess', _436 => _436.fullJson]) ? status : compact;
|
|
13405
|
-
|
|
13405
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
13406
13406
|
{
|
|
13407
13407
|
...payload,
|
|
13408
13408
|
render: {
|
|
@@ -14168,7 +14168,7 @@ function writeStartedPlayRun(input) {
|
|
|
14168
14168
|
dashboardUrl: input.dashboardUrl,
|
|
14169
14169
|
package: input.package
|
|
14170
14170
|
};
|
|
14171
|
-
|
|
14171
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
14172
14172
|
json: true,
|
|
14173
14173
|
fields: input.jsonFields
|
|
14174
14174
|
});
|
|
@@ -14190,7 +14190,7 @@ function writeStartedPlayRun(input) {
|
|
|
14190
14190
|
input.progress.writeLine(output2, process.stdout);
|
|
14191
14191
|
return;
|
|
14192
14192
|
}
|
|
14193
|
-
|
|
14193
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, input.package, {
|
|
14194
14194
|
json: false,
|
|
14195
14195
|
text: `${output2}
|
|
14196
14196
|
`
|
|
@@ -14219,7 +14219,7 @@ function writeStartedPlayRun(input) {
|
|
|
14219
14219
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)} --json`] : []
|
|
14220
14220
|
];
|
|
14221
14221
|
if (input.jsonOutput) {
|
|
14222
|
-
|
|
14222
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
14223
14223
|
return;
|
|
14224
14224
|
}
|
|
14225
14225
|
if (input.dashboardUrl) {
|
|
@@ -14230,7 +14230,7 @@ function writeStartedPlayRun(input) {
|
|
|
14230
14230
|
input.progress.writeLine(output, process.stdout);
|
|
14231
14231
|
return;
|
|
14232
14232
|
}
|
|
14233
|
-
|
|
14233
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
14234
14234
|
{
|
|
14235
14235
|
...payload,
|
|
14236
14236
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -14240,7 +14240,7 @@ function writeStartedPlayRun(input) {
|
|
|
14240
14240
|
);
|
|
14241
14241
|
}
|
|
14242
14242
|
function parsePlayCheckOptions(args) {
|
|
14243
|
-
const selection =
|
|
14243
|
+
const selection = _chunk6PGYQ6IGjs.parseJsonFields.call(void 0, args, "check");
|
|
14244
14244
|
args = selection.args;
|
|
14245
14245
|
const target = args[0];
|
|
14246
14246
|
if (!target || target.startsWith("-")) {
|
|
@@ -14252,7 +14252,7 @@ function parsePlayCheckOptions(args) {
|
|
|
14252
14252
|
if (arg !== "--json" && arg !== "--full")
|
|
14253
14253
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
14254
14254
|
}
|
|
14255
|
-
const jsonOutput =
|
|
14255
|
+
const jsonOutput = _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args);
|
|
14256
14256
|
return {
|
|
14257
14257
|
target,
|
|
14258
14258
|
jsonOutput,
|
|
@@ -14328,7 +14328,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
14328
14328
|
useLatest,
|
|
14329
14329
|
expectedArtifactHash,
|
|
14330
14330
|
dryRun,
|
|
14331
|
-
jsonOutput:
|
|
14331
|
+
jsonOutput: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)
|
|
14332
14332
|
};
|
|
14333
14333
|
}
|
|
14334
14334
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -14369,7 +14369,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
14369
14369
|
target,
|
|
14370
14370
|
expectedArtifactHash,
|
|
14371
14371
|
dryRun,
|
|
14372
|
-
jsonOutput:
|
|
14372
|
+
jsonOutput: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)
|
|
14373
14373
|
};
|
|
14374
14374
|
}
|
|
14375
14375
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -14580,7 +14580,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
14580
14580
|
async function handlePlayCheck(args) {
|
|
14581
14581
|
const options = parsePlayCheckOptions(args);
|
|
14582
14582
|
if (!isFileTarget2(options.target)) {
|
|
14583
|
-
const client = new (0,
|
|
14583
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
14584
14584
|
try {
|
|
14585
14585
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
14586
14586
|
command: "check"
|
|
@@ -14609,7 +14609,7 @@ async function handlePlayCheck(args) {
|
|
|
14609
14609
|
},
|
|
14610
14610
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
14611
14611
|
};
|
|
14612
|
-
|
|
14612
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, result, {
|
|
14613
14613
|
json: options.jsonOutput,
|
|
14614
14614
|
fields: options.jsonFields,
|
|
14615
14615
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -14619,7 +14619,7 @@ async function handlePlayCheck(args) {
|
|
|
14619
14619
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
14620
14620
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
14621
14621
|
if (options.jsonOutput) {
|
|
14622
|
-
|
|
14622
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
14623
14623
|
{
|
|
14624
14624
|
kind: "play_check",
|
|
14625
14625
|
checked: "named_contract",
|
|
@@ -14661,7 +14661,7 @@ async function handlePlayCheck(args) {
|
|
|
14661
14661
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full --json`,
|
|
14662
14662
|
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
|
|
14663
14663
|
});
|
|
14664
|
-
|
|
14664
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, output, {
|
|
14665
14665
|
json: options.jsonOutput,
|
|
14666
14666
|
fields: options.jsonFields,
|
|
14667
14667
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -14723,7 +14723,7 @@ async function checkOneExportedPlay(input) {
|
|
|
14723
14723
|
result: { valid: false, errors: descriptionErrors }
|
|
14724
14724
|
};
|
|
14725
14725
|
}
|
|
14726
|
-
const client = new (0,
|
|
14726
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
14727
14727
|
const integrationMode = resolveEvalIntegrationMode();
|
|
14728
14728
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
14729
14729
|
playName: node.playName,
|
|
@@ -14797,7 +14797,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
14797
14797
|
);
|
|
14798
14798
|
return 0;
|
|
14799
14799
|
}
|
|
14800
|
-
client = new (0,
|
|
14800
|
+
client = new (0, _chunkNC5ODEG7js.DeeplineClient)(playRunClientOptions(options));
|
|
14801
14801
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
14802
14802
|
if (canDeferCompilerManifest) {
|
|
14803
14803
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -14992,7 +14992,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14992
14992
|
if (options.target.kind !== "name") {
|
|
14993
14993
|
throw new Error("Expected a named play run target.");
|
|
14994
14994
|
}
|
|
14995
|
-
const client = new (0,
|
|
14995
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)(playRunClientOptions(options));
|
|
14996
14996
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
14997
14997
|
const playName = options.target.name;
|
|
14998
14998
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -15389,10 +15389,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
15389
15389
|
);
|
|
15390
15390
|
return `${lines.join("\n")}
|
|
15391
15391
|
|
|
15392
|
-
${
|
|
15392
|
+
${_chunk6PGYQ6IGjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
15393
15393
|
}
|
|
15394
15394
|
async function handleRunGet(args) {
|
|
15395
|
-
const selection =
|
|
15395
|
+
const selection = _chunk6PGYQ6IGjs.parseJsonFields.call(void 0,
|
|
15396
15396
|
args,
|
|
15397
15397
|
args.includes("--config") ? "config" : "get"
|
|
15398
15398
|
);
|
|
@@ -15405,7 +15405,7 @@ async function handleRunGet(args) {
|
|
|
15405
15405
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15406
15406
|
return 1;
|
|
15407
15407
|
}
|
|
15408
|
-
const client = new (0,
|
|
15408
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
15409
15409
|
if (args.includes("--config")) {
|
|
15410
15410
|
if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
|
|
15411
15411
|
console.error(
|
|
@@ -15419,7 +15419,7 @@ async function handleRunGet(args) {
|
|
|
15419
15419
|
"This server does not support recorded configuration reads."
|
|
15420
15420
|
);
|
|
15421
15421
|
}
|
|
15422
|
-
|
|
15422
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
15423
15423
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
15424
15424
|
{ json: true, fields: selection.fields }
|
|
15425
15425
|
);
|
|
@@ -15427,7 +15427,7 @@ async function handleRunGet(args) {
|
|
|
15427
15427
|
}
|
|
15428
15428
|
if (args.includes("--input")) {
|
|
15429
15429
|
const input = await client.getRunInput(runId);
|
|
15430
|
-
|
|
15430
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
15431
15431
|
return 0;
|
|
15432
15432
|
}
|
|
15433
15433
|
const full = args.includes("--full");
|
|
@@ -15440,8 +15440,8 @@ async function handleRunGet(args) {
|
|
|
15440
15440
|
full: true,
|
|
15441
15441
|
failedLogs: args.includes("--log-failed")
|
|
15442
15442
|
}) : status;
|
|
15443
|
-
if (
|
|
15444
|
-
|
|
15443
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
15444
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
15445
15445
|
full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
15446
15446
|
{ json: true, fields: selection.fields }
|
|
15447
15447
|
);
|
|
@@ -15457,8 +15457,8 @@ async function handleRunGet(args) {
|
|
|
15457
15457
|
readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
|
|
15458
15458
|
]);
|
|
15459
15459
|
const hitLines = formatRunHitsLines(hits);
|
|
15460
|
-
const json =
|
|
15461
|
-
|
|
15460
|
+
const json = _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args);
|
|
15461
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
15462
15462
|
{
|
|
15463
15463
|
...overview,
|
|
15464
15464
|
credits,
|
|
@@ -15561,9 +15561,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
15561
15561
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15562
15562
|
return 1;
|
|
15563
15563
|
}
|
|
15564
|
-
const status = await new (0,
|
|
15565
|
-
if (
|
|
15566
|
-
|
|
15564
|
+
const status = await new (0, _chunkNC5ODEG7js.DeeplineClient)().runs.status(runId);
|
|
15565
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
15566
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
15567
15567
|
return 0;
|
|
15568
15568
|
}
|
|
15569
15569
|
if (!status.available) {
|
|
@@ -15603,7 +15603,7 @@ async function handleRunsRerun(args) {
|
|
|
15603
15603
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15604
15604
|
return 1;
|
|
15605
15605
|
}
|
|
15606
|
-
const options = { json:
|
|
15606
|
+
const options = { json: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args) };
|
|
15607
15607
|
for (let index = 0; index < args.length; index += 1) {
|
|
15608
15608
|
if (args[index] === "--idempotency-key") {
|
|
15609
15609
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -15668,8 +15668,8 @@ ${usage2}
|
|
|
15668
15668
|
Discover Plays: ${next.discover}
|
|
15669
15669
|
Active runs: ${next.running}`
|
|
15670
15670
|
);
|
|
15671
|
-
if (
|
|
15672
|
-
|
|
15671
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
15672
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
15673
15673
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
15674
15674
|
{ json: true }
|
|
15675
15675
|
);
|
|
@@ -15684,7 +15684,7 @@ Active runs: ${next.running}`
|
|
|
15684
15684
|
console.error("--offset requires --play.");
|
|
15685
15685
|
return 1;
|
|
15686
15686
|
}
|
|
15687
|
-
const client = new (0,
|
|
15687
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
15688
15688
|
const page = await client.runs.listPage({
|
|
15689
15689
|
...playName ? { play: playName } : {},
|
|
15690
15690
|
...statusFilter ? { status: statusFilter } : {},
|
|
@@ -15753,7 +15753,7 @@ Active runs: ${next.running}`
|
|
|
15753
15753
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
15754
15754
|
);
|
|
15755
15755
|
}
|
|
15756
|
-
|
|
15756
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
15757
15757
|
{
|
|
15758
15758
|
runs,
|
|
15759
15759
|
count: runs.length,
|
|
@@ -15767,7 +15767,7 @@ Active runs: ${next.running}`
|
|
|
15767
15767
|
},
|
|
15768
15768
|
render: { sections: [{ title: "runs", lines }] }
|
|
15769
15769
|
},
|
|
15770
|
-
{ json:
|
|
15770
|
+
{ json: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args) }
|
|
15771
15771
|
);
|
|
15772
15772
|
return 0;
|
|
15773
15773
|
}
|
|
@@ -15797,7 +15797,7 @@ async function handleRunTail(args) {
|
|
|
15797
15797
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15798
15798
|
return 1;
|
|
15799
15799
|
}
|
|
15800
|
-
const parsed =
|
|
15800
|
+
const parsed = _chunkNC5ODEG7js.parseLogLevel.call(void 0, value);
|
|
15801
15801
|
if (!parsed) {
|
|
15802
15802
|
console.error(
|
|
15803
15803
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15835,9 +15835,9 @@ async function handleRunTail(args) {
|
|
|
15835
15835
|
);
|
|
15836
15836
|
return 1;
|
|
15837
15837
|
}
|
|
15838
|
-
const client = new (0,
|
|
15838
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
15839
15839
|
const jsonLines = args.includes("--jsonl");
|
|
15840
|
-
const jsonOutput = !jsonLines &&
|
|
15840
|
+
const jsonOutput = !jsonLines && _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args);
|
|
15841
15841
|
const compact = args.includes("--compact");
|
|
15842
15842
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
15843
15843
|
const compactState = {
|
|
@@ -15918,7 +15918,7 @@ async function handleRunLogs(args) {
|
|
|
15918
15918
|
]);
|
|
15919
15919
|
const cursorIndex = args.indexOf("--cursor");
|
|
15920
15920
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15921
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
15921
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkNC5ODEG7js.isRunLogsCursor.call(void 0, cursorValue));
|
|
15922
15922
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
15923
15923
|
return handleRunEventSearch(args);
|
|
15924
15924
|
}
|
|
@@ -15952,7 +15952,7 @@ async function handleRunLogs(args) {
|
|
|
15952
15952
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15953
15953
|
return 1;
|
|
15954
15954
|
}
|
|
15955
|
-
const parsed =
|
|
15955
|
+
const parsed = _chunkNC5ODEG7js.parseLogLevel.call(void 0, value);
|
|
15956
15956
|
if (!parsed) {
|
|
15957
15957
|
console.error(
|
|
15958
15958
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15999,12 +15999,12 @@ async function handleRunLogs(args) {
|
|
|
15999
15999
|
);
|
|
16000
16000
|
return 1;
|
|
16001
16001
|
}
|
|
16002
|
-
const client = new (0,
|
|
16002
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
16003
16003
|
if (outPath) {
|
|
16004
16004
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
16005
|
-
const logs = result2.entries.filter((line) =>
|
|
16005
|
+
const logs = result2.entries.filter((line) => _chunkNC5ODEG7js.logLevelReaches.call(void 0, _chunkNC5ODEG7js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkNC5ODEG7js.classifyLogLine.call(void 0, line).line);
|
|
16006
16006
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
16007
|
-
|
|
16007
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
16008
16008
|
{
|
|
16009
16009
|
runId: result2.runId,
|
|
16010
16010
|
log_path: outPath,
|
|
@@ -16027,7 +16027,7 @@ async function handleRunLogs(args) {
|
|
|
16027
16027
|
]
|
|
16028
16028
|
}
|
|
16029
16029
|
},
|
|
16030
|
-
{ json:
|
|
16030
|
+
{ json: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args) }
|
|
16031
16031
|
);
|
|
16032
16032
|
return 0;
|
|
16033
16033
|
}
|
|
@@ -16058,7 +16058,7 @@ async function handleRunLogs(args) {
|
|
|
16058
16058
|
}
|
|
16059
16059
|
};
|
|
16060
16060
|
const text = buildRunLogsText(filteredResult);
|
|
16061
|
-
|
|
16061
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
16062
16062
|
{
|
|
16063
16063
|
runId: result.runId,
|
|
16064
16064
|
totalCount: result.totalCount,
|
|
@@ -16082,7 +16082,7 @@ async function handleRunLogs(args) {
|
|
|
16082
16082
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
16083
16083
|
},
|
|
16084
16084
|
{
|
|
16085
|
-
json:
|
|
16085
|
+
json: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args),
|
|
16086
16086
|
text
|
|
16087
16087
|
}
|
|
16088
16088
|
);
|
|
@@ -16106,7 +16106,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
16106
16106
|
);
|
|
16107
16107
|
}
|
|
16108
16108
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
16109
|
-
(entry) =>
|
|
16109
|
+
(entry) => _chunkNC5ODEG7js.logLevelReaches.call(void 0, _chunkNC5ODEG7js.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
16110
16110
|
);
|
|
16111
16111
|
const selected = matching.slice(-limit);
|
|
16112
16112
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -16116,7 +16116,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
16116
16116
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _526 => _526.at, 'call', _527 => _527(-1), 'optionalAccess', _528 => _528.seq]), () => ( null)),
|
|
16117
16117
|
truncated: result.truncated || olderMatchesExist,
|
|
16118
16118
|
hasMore: olderMatchesExist,
|
|
16119
|
-
nextCursor: olderMatchesExist ?
|
|
16119
|
+
nextCursor: olderMatchesExist ? _chunkNC5ODEG7js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
16120
16120
|
};
|
|
16121
16121
|
}
|
|
16122
16122
|
async function handleRunEventSearch(args) {
|
|
@@ -16183,7 +16183,7 @@ ${usage2}`);
|
|
|
16183
16183
|
namespace,
|
|
16184
16184
|
...backend ? { backend } : {}
|
|
16185
16185
|
} : void 0;
|
|
16186
|
-
const client = new (0,
|
|
16186
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
16187
16187
|
const result = await client.runs.searchEvents({
|
|
16188
16188
|
...runId ? { runId } : {},
|
|
16189
16189
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -16256,7 +16256,7 @@ ${renderedDetails}` : ""}`;
|
|
|
16256
16256
|
String(limit),
|
|
16257
16257
|
"--json"
|
|
16258
16258
|
].join(" ") : null;
|
|
16259
|
-
|
|
16259
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
16260
16260
|
{
|
|
16261
16261
|
events,
|
|
16262
16262
|
nextCursor: result.nextCursor,
|
|
@@ -16267,14 +16267,14 @@ ${renderedDetails}` : ""}`;
|
|
|
16267
16267
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
16268
16268
|
},
|
|
16269
16269
|
{
|
|
16270
|
-
json:
|
|
16270
|
+
json: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args),
|
|
16271
16271
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
16272
16272
|
}
|
|
16273
16273
|
);
|
|
16274
16274
|
return 0;
|
|
16275
16275
|
}
|
|
16276
16276
|
function buildRunLogsText(result) {
|
|
16277
|
-
const lines = result.entries.map((line) =>
|
|
16277
|
+
const lines = result.entries.map((line) => _chunkNC5ODEG7js.classifyLogLine.call(void 0, line).line);
|
|
16278
16278
|
if (result.warning) {
|
|
16279
16279
|
if (lines.length > 0) lines.push("");
|
|
16280
16280
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -16308,7 +16308,7 @@ async function handleRunStop(args) {
|
|
|
16308
16308
|
reason = args[++index];
|
|
16309
16309
|
}
|
|
16310
16310
|
}
|
|
16311
|
-
const client = new (0,
|
|
16311
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
16312
16312
|
const result = await client.runs.stop(runId, { reason });
|
|
16313
16313
|
const state = resolveRunStopState(result);
|
|
16314
16314
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -16323,7 +16323,7 @@ async function handleRunStop(args) {
|
|
|
16323
16323
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
16324
16324
|
`inspect: deepline runs get ${runId} --full --json`
|
|
16325
16325
|
];
|
|
16326
|
-
|
|
16326
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
16327
16327
|
{
|
|
16328
16328
|
...cancelling,
|
|
16329
16329
|
state,
|
|
@@ -16338,7 +16338,7 @@ async function handleRunStop(args) {
|
|
|
16338
16338
|
]
|
|
16339
16339
|
}
|
|
16340
16340
|
},
|
|
16341
|
-
{ json:
|
|
16341
|
+
{ json: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args) }
|
|
16342
16342
|
);
|
|
16343
16343
|
return 0;
|
|
16344
16344
|
}
|
|
@@ -16355,7 +16355,7 @@ async function handleRunStop(args) {
|
|
|
16355
16355
|
];
|
|
16356
16356
|
process.stderr.write(`${lines2.join("\n")}
|
|
16357
16357
|
`);
|
|
16358
|
-
|
|
16358
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
16359
16359
|
{
|
|
16360
16360
|
...result,
|
|
16361
16361
|
render: {
|
|
@@ -16370,7 +16370,7 @@ async function handleRunStop(args) {
|
|
|
16370
16370
|
]
|
|
16371
16371
|
}
|
|
16372
16372
|
},
|
|
16373
|
-
{ json:
|
|
16373
|
+
{ json: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args) }
|
|
16374
16374
|
);
|
|
16375
16375
|
return 1;
|
|
16376
16376
|
}
|
|
@@ -16381,12 +16381,12 @@ async function handleRunStop(args) {
|
|
|
16381
16381
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
16382
16382
|
] : []
|
|
16383
16383
|
];
|
|
16384
|
-
|
|
16384
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
16385
16385
|
{
|
|
16386
16386
|
...result,
|
|
16387
16387
|
render: { sections: [{ title: "run stop", lines }] }
|
|
16388
16388
|
},
|
|
16389
|
-
{ json:
|
|
16389
|
+
{ json: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args) }
|
|
16390
16390
|
);
|
|
16391
16391
|
return 0;
|
|
16392
16392
|
}
|
|
@@ -16436,18 +16436,18 @@ async function handleRunStopAll(args) {
|
|
|
16436
16436
|
reason = args[++index];
|
|
16437
16437
|
}
|
|
16438
16438
|
}
|
|
16439
|
-
const client = new (0,
|
|
16439
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
16440
16440
|
if (dryRun) {
|
|
16441
16441
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
16442
16442
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
16443
|
-
|
|
16443
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
16444
16444
|
{
|
|
16445
16445
|
...result2,
|
|
16446
16446
|
render: {
|
|
16447
16447
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
16448
16448
|
}
|
|
16449
16449
|
},
|
|
16450
|
-
{ json:
|
|
16450
|
+
{ json: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
16451
16451
|
` }
|
|
16452
16452
|
);
|
|
16453
16453
|
return 0;
|
|
@@ -16460,17 +16460,17 @@ async function handleRunStopAll(args) {
|
|
|
16460
16460
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
16461
16461
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
16462
16462
|
];
|
|
16463
|
-
|
|
16463
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
16464
16464
|
{
|
|
16465
16465
|
...result,
|
|
16466
16466
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
16467
16467
|
},
|
|
16468
|
-
{ json:
|
|
16468
|
+
{ json: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args) }
|
|
16469
16469
|
);
|
|
16470
16470
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
16471
16471
|
}
|
|
16472
16472
|
async function handleRunExport(args) {
|
|
16473
|
-
const selection =
|
|
16473
|
+
const selection = _chunk6PGYQ6IGjs.parseJsonFields.call(void 0, args, "export");
|
|
16474
16474
|
args = selection.args;
|
|
16475
16475
|
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]";
|
|
16476
16476
|
let runId;
|
|
@@ -16529,16 +16529,16 @@ async function handleRunExport(args) {
|
|
|
16529
16529
|
"INVALID_ARGUMENT"
|
|
16530
16530
|
);
|
|
16531
16531
|
}
|
|
16532
|
-
const client = new (0,
|
|
16532
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
16533
16533
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
16534
16534
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
16535
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
16535
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args));
|
|
16536
16536
|
try {
|
|
16537
16537
|
await waitForPlayCompletionByWatch({
|
|
16538
16538
|
client,
|
|
16539
16539
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
16540
16540
|
workflowId: runId,
|
|
16541
|
-
jsonOutput:
|
|
16541
|
+
jsonOutput: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args),
|
|
16542
16542
|
emitLogs: false,
|
|
16543
16543
|
waitTimeoutMs,
|
|
16544
16544
|
startedAt: Date.now(),
|
|
@@ -16638,8 +16638,8 @@ async function handleRunExport(args) {
|
|
|
16638
16638
|
"utf-8"
|
|
16639
16639
|
);
|
|
16640
16640
|
}
|
|
16641
|
-
|
|
16642
|
-
json:
|
|
16641
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, payload, {
|
|
16642
|
+
json: _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args),
|
|
16643
16643
|
fields: selection.fields,
|
|
16644
16644
|
text: `${lines.join("\n")}
|
|
16645
16645
|
`
|
|
@@ -16660,10 +16660,10 @@ async function handlePlayGet(args) {
|
|
|
16660
16660
|
);
|
|
16661
16661
|
return 2;
|
|
16662
16662
|
}
|
|
16663
|
-
const client = new (0,
|
|
16663
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
16664
16664
|
const explicitJson = args.includes("--json");
|
|
16665
16665
|
const sourceOutput = args.includes("--source");
|
|
16666
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
16666
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args);
|
|
16667
16667
|
const requestedRevisionFlags = [
|
|
16668
16668
|
args.includes("--working"),
|
|
16669
16669
|
args.includes("--live"),
|
|
@@ -16723,7 +16723,7 @@ async function handlePlayGet(args) {
|
|
|
16723
16723
|
}
|
|
16724
16724
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
16725
16725
|
if (jsonOutput) {
|
|
16726
|
-
|
|
16726
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, {
|
|
16727
16727
|
...detail,
|
|
16728
16728
|
...materializedFile ? {
|
|
16729
16729
|
message: loadedMessage,
|
|
@@ -16810,8 +16810,8 @@ async function handlePlayVersions(args) {
|
|
|
16810
16810
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
16811
16811
|
return 1;
|
|
16812
16812
|
}
|
|
16813
|
-
const client = new (0,
|
|
16814
|
-
const jsonOutput =
|
|
16813
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
16814
|
+
const jsonOutput = _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args);
|
|
16815
16815
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16816
16816
|
command: "versions"
|
|
16817
16817
|
});
|
|
@@ -16819,7 +16819,7 @@ async function handlePlayVersions(args) {
|
|
|
16819
16819
|
parseReferencedPlayTarget3(playName).playName
|
|
16820
16820
|
);
|
|
16821
16821
|
if (jsonOutput) {
|
|
16822
|
-
|
|
16822
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, { versions });
|
|
16823
16823
|
return 0;
|
|
16824
16824
|
}
|
|
16825
16825
|
if (versions.length === 0) {
|
|
@@ -16851,9 +16851,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
16851
16851
|
"signals"
|
|
16852
16852
|
];
|
|
16853
16853
|
async function handlePlayList(args) {
|
|
16854
|
-
const jsonOutput =
|
|
16854
|
+
const jsonOutput = _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args);
|
|
16855
16855
|
const showCost = args.includes("--show-cost");
|
|
16856
|
-
const client = new (0,
|
|
16856
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
16857
16857
|
const categoriesIndex = args.indexOf("--categories");
|
|
16858
16858
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _564 => _564[categoriesIndex + 1], 'optionalAccess', _565 => _565.trim, 'call', _566 => _566()]) : void 0;
|
|
16859
16859
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -16950,7 +16950,7 @@ async function handlePlayList(args) {
|
|
|
16950
16950
|
lines.push("List truncated \u2014 more plays are available.");
|
|
16951
16951
|
lines.push(`Next page: ${nextPage}`);
|
|
16952
16952
|
}
|
|
16953
|
-
|
|
16953
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
16954
16954
|
{
|
|
16955
16955
|
plays,
|
|
16956
16956
|
count: plays.length,
|
|
@@ -16968,7 +16968,7 @@ async function handlePlayList(args) {
|
|
|
16968
16968
|
}
|
|
16969
16969
|
async function handlePlayPin(args, pinned) {
|
|
16970
16970
|
const target = _optionalChain([args, 'access', _573 => _573.find, 'call', _574 => _574((arg) => !arg.startsWith("-")), 'optionalAccess', _575 => _575.trim, 'call', _576 => _576()]);
|
|
16971
|
-
const jsonOutput =
|
|
16971
|
+
const jsonOutput = _chunk6PGYQ6IGjs.argsWantJson.call(void 0, args);
|
|
16972
16972
|
const dryRun = args.includes("--dry-run");
|
|
16973
16973
|
if (!target) {
|
|
16974
16974
|
console.error(
|
|
@@ -16986,11 +16986,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
16986
16986
|
const name = parsedTarget.playName;
|
|
16987
16987
|
const plan = { name, pinned, dryRun };
|
|
16988
16988
|
if (dryRun) {
|
|
16989
|
-
|
|
16989
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, plan);
|
|
16990
16990
|
return 0;
|
|
16991
16991
|
}
|
|
16992
|
-
const result = await new (0,
|
|
16993
|
-
if (jsonOutput)
|
|
16992
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().setPlayPinned(name, pinned);
|
|
16993
|
+
if (jsonOutput) _chunk6PGYQ6IGjs.printCompactJson.call(void 0, result);
|
|
16994
16994
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
16995
16995
|
return 0;
|
|
16996
16996
|
}
|
|
@@ -17006,7 +17006,7 @@ function csvColumnLines(csvInput) {
|
|
|
17006
17006
|
const headers = [defaults[column]].flat().filter((header) => header && header !== column);
|
|
17007
17007
|
return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
|
|
17008
17008
|
}),
|
|
17009
|
-
|
|
17009
|
+
_chunkNC5ODEG7js.CSV_HEADER_MATCHING_NOTE
|
|
17010
17010
|
];
|
|
17011
17011
|
}
|
|
17012
17012
|
function describedPlay(play) {
|
|
@@ -17150,12 +17150,12 @@ async function handlePlayGrep(args) {
|
|
|
17150
17150
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
17151
17151
|
return 1;
|
|
17152
17152
|
}
|
|
17153
|
-
const client = new (0,
|
|
17153
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
17154
17154
|
const results = (await client.listPlays({ grep: query })).map(
|
|
17155
17155
|
summarizePlayGrepResult
|
|
17156
17156
|
);
|
|
17157
|
-
if (
|
|
17158
|
-
|
|
17157
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
17158
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, {
|
|
17159
17159
|
plays: results,
|
|
17160
17160
|
count: results.length,
|
|
17161
17161
|
query,
|
|
@@ -17178,7 +17178,7 @@ async function handlePlayGrep(args) {
|
|
|
17178
17178
|
return 0;
|
|
17179
17179
|
}
|
|
17180
17180
|
async function handlePlayDescribe(args) {
|
|
17181
|
-
const selection =
|
|
17181
|
+
const selection = _chunk6PGYQ6IGjs.parseJsonFields.call(void 0, args, "describe");
|
|
17182
17182
|
args = selection.args;
|
|
17183
17183
|
const playName = args[0];
|
|
17184
17184
|
if (!playName) {
|
|
@@ -17212,8 +17212,8 @@ async function handlePlayDescribe(args) {
|
|
|
17212
17212
|
`deepline plays check ${playName}`,
|
|
17213
17213
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
17214
17214
|
];
|
|
17215
|
-
if (
|
|
17216
|
-
|
|
17215
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
17216
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, {
|
|
17217
17217
|
ok: false,
|
|
17218
17218
|
error: { message },
|
|
17219
17219
|
next
|
|
@@ -17227,7 +17227,7 @@ async function handlePlayDescribe(args) {
|
|
|
17227
17227
|
}
|
|
17228
17228
|
return 2;
|
|
17229
17229
|
}
|
|
17230
|
-
const client = new (0,
|
|
17230
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
17231
17231
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
17232
17232
|
command: "describe"
|
|
17233
17233
|
});
|
|
@@ -17237,9 +17237,9 @@ async function handlePlayDescribe(args) {
|
|
|
17237
17237
|
compact: args.includes("--compact")
|
|
17238
17238
|
}
|
|
17239
17239
|
);
|
|
17240
|
-
if (
|
|
17241
|
-
if (selection.fields)
|
|
17242
|
-
else
|
|
17240
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
17241
|
+
if (selection.fields) _chunk6PGYQ6IGjs.printJson.call(void 0, play, selection.fields);
|
|
17242
|
+
else _chunk6PGYQ6IGjs.printCompactJson.call(void 0, play);
|
|
17243
17243
|
return 0;
|
|
17244
17244
|
}
|
|
17245
17245
|
printPlayDescription(play);
|
|
@@ -17283,7 +17283,7 @@ async function handlePlaySave(args) {
|
|
|
17283
17283
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
17284
17284
|
};
|
|
17285
17285
|
if (options.jsonOutput) {
|
|
17286
|
-
|
|
17286
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, result);
|
|
17287
17287
|
} else {
|
|
17288
17288
|
console.error(result.message);
|
|
17289
17289
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -17305,7 +17305,7 @@ async function handlePlaySave(args) {
|
|
|
17305
17305
|
};
|
|
17306
17306
|
if (options.dryRun) {
|
|
17307
17307
|
if (options.jsonOutput) {
|
|
17308
|
-
|
|
17308
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, dryRun);
|
|
17309
17309
|
} else {
|
|
17310
17310
|
console.log(`Dry run: ${playName}`);
|
|
17311
17311
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17314,7 +17314,7 @@ async function handlePlaySave(args) {
|
|
|
17314
17314
|
}
|
|
17315
17315
|
return 0;
|
|
17316
17316
|
}
|
|
17317
|
-
const client = new (0,
|
|
17317
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
17318
17318
|
try {
|
|
17319
17319
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
17320
17320
|
"cli.play_save_compile_manifests",
|
|
@@ -17350,7 +17350,7 @@ async function handlePlaySave(args) {
|
|
|
17350
17350
|
}
|
|
17351
17351
|
};
|
|
17352
17352
|
if (options.jsonOutput) {
|
|
17353
|
-
|
|
17353
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, result);
|
|
17354
17354
|
} else {
|
|
17355
17355
|
console.log(
|
|
17356
17356
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -17376,7 +17376,7 @@ async function handlePlayPublish(args) {
|
|
|
17376
17376
|
}
|
|
17377
17377
|
const { target: playName, useLatest } = options;
|
|
17378
17378
|
let revisionId = options.revisionId;
|
|
17379
|
-
const client = new (0,
|
|
17379
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
17380
17380
|
if (isFileTarget2(playName)) {
|
|
17381
17381
|
if (revisionId || useLatest) {
|
|
17382
17382
|
console.error(
|
|
@@ -17408,7 +17408,7 @@ async function handlePlayPublish(args) {
|
|
|
17408
17408
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
17409
17409
|
};
|
|
17410
17410
|
if (options.jsonOutput) {
|
|
17411
|
-
|
|
17411
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, result3);
|
|
17412
17412
|
} else {
|
|
17413
17413
|
console.error(result3.message);
|
|
17414
17414
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -17431,7 +17431,7 @@ async function handlePlayPublish(args) {
|
|
|
17431
17431
|
};
|
|
17432
17432
|
if (options.dryRun) {
|
|
17433
17433
|
if (options.jsonOutput) {
|
|
17434
|
-
|
|
17434
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, dryRun);
|
|
17435
17435
|
} else {
|
|
17436
17436
|
console.log(`Dry run: ${rootPlayName}`);
|
|
17437
17437
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17499,7 +17499,7 @@ async function handlePlayPublish(args) {
|
|
|
17499
17499
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
17500
17500
|
};
|
|
17501
17501
|
if (options.jsonOutput) {
|
|
17502
|
-
|
|
17502
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, result2);
|
|
17503
17503
|
} else {
|
|
17504
17504
|
printPublishReceipt({
|
|
17505
17505
|
name: rootPlayName,
|
|
@@ -17530,7 +17530,7 @@ async function handlePlayPublish(args) {
|
|
|
17530
17530
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
17531
17531
|
latest: useLatest
|
|
17532
17532
|
};
|
|
17533
|
-
|
|
17533
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, result2);
|
|
17534
17534
|
return 0;
|
|
17535
17535
|
}
|
|
17536
17536
|
const resolvedName = parseReferencedPlayTarget3(playName).playName;
|
|
@@ -17554,7 +17554,7 @@ async function handlePlayPublish(args) {
|
|
|
17554
17554
|
revisionId ? { revisionId } : {}
|
|
17555
17555
|
);
|
|
17556
17556
|
if (options.jsonOutput) {
|
|
17557
|
-
|
|
17557
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, result);
|
|
17558
17558
|
} else {
|
|
17559
17559
|
printPublishReceipt({
|
|
17560
17560
|
name: result.name,
|
|
@@ -17594,7 +17594,7 @@ async function handlePlayDelete(args) {
|
|
|
17594
17594
|
);
|
|
17595
17595
|
return 2;
|
|
17596
17596
|
}
|
|
17597
|
-
const client = new (0,
|
|
17597
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
17598
17598
|
let detail;
|
|
17599
17599
|
try {
|
|
17600
17600
|
detail = await client.getPlay(parseReferencedPlayTarget3(playName).playName);
|
|
@@ -17618,8 +17618,8 @@ async function handlePlayDelete(args) {
|
|
|
17618
17618
|
name: resolvedName,
|
|
17619
17619
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
17620
17620
|
};
|
|
17621
|
-
if (
|
|
17622
|
-
|
|
17621
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
17622
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, result2);
|
|
17623
17623
|
} else {
|
|
17624
17624
|
process.stdout.write(
|
|
17625
17625
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -17629,8 +17629,8 @@ async function handlePlayDelete(args) {
|
|
|
17629
17629
|
return 0;
|
|
17630
17630
|
}
|
|
17631
17631
|
const result = await client.deletePlay(resolvedName);
|
|
17632
|
-
if (
|
|
17633
|
-
|
|
17632
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
17633
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, result);
|
|
17634
17634
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
17635
17635
|
}
|
|
17636
17636
|
if (result.alreadyArchived) {
|
|
@@ -17669,13 +17669,13 @@ async function handlePlayRestore(args) {
|
|
|
17669
17669
|
);
|
|
17670
17670
|
return 2;
|
|
17671
17671
|
}
|
|
17672
|
-
const client = new (0,
|
|
17672
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
17673
17673
|
try {
|
|
17674
17674
|
const result = await client.restorePlay(
|
|
17675
17675
|
parseReferencedPlayTarget3(playName).playName
|
|
17676
17676
|
);
|
|
17677
|
-
if (
|
|
17678
|
-
|
|
17677
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
17678
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, result);
|
|
17679
17679
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
17680
17680
|
}
|
|
17681
17681
|
if (result.alreadyActive) {
|
|
@@ -17782,7 +17782,7 @@ Examples:
|
|
|
17782
17782
|
).action(async (target, options) => {
|
|
17783
17783
|
process.exitCode = await handlePlayCheck([
|
|
17784
17784
|
target,
|
|
17785
|
-
...
|
|
17785
|
+
..._chunk6PGYQ6IGjs.jsonFieldArgs.call(void 0, options.json),
|
|
17786
17786
|
...options.full ? ["--full"] : []
|
|
17787
17787
|
]);
|
|
17788
17788
|
});
|
|
@@ -18011,9 +18011,9 @@ Examples:
|
|
|
18011
18011
|
const limit = Number(options.historyLimit);
|
|
18012
18012
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
18013
18013
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
18014
|
-
const client = new (0,
|
|
18014
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
18015
18015
|
if (options.binding) {
|
|
18016
|
-
|
|
18016
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0,
|
|
18017
18017
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
18018
18018
|
);
|
|
18019
18019
|
return;
|
|
@@ -18021,7 +18021,7 @@ Examples:
|
|
|
18021
18021
|
const result = await client.listPlayTriggerInventory({
|
|
18022
18022
|
cursor: options.cursor
|
|
18023
18023
|
});
|
|
18024
|
-
|
|
18024
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, {
|
|
18025
18025
|
...result,
|
|
18026
18026
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
|
|
18027
18027
|
});
|
|
@@ -18068,7 +18068,7 @@ Examples:
|
|
|
18068
18068
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
18069
18069
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
18070
18070
|
}
|
|
18071
|
-
const result = await new (0,
|
|
18071
|
+
const result = await new (0, _chunkNC5ODEG7js.DeeplineClient)().getPlaysActivity({
|
|
18072
18072
|
timeZone: options.timeZone,
|
|
18073
18073
|
days,
|
|
18074
18074
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -18082,7 +18082,7 @@ Examples:
|
|
|
18082
18082
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
18083
18083
|
);
|
|
18084
18084
|
}
|
|
18085
|
-
|
|
18085
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
18086
18086
|
{ ...result },
|
|
18087
18087
|
{
|
|
18088
18088
|
json: options.json || !process.stdout.isTTY,
|
|
@@ -18111,7 +18111,7 @@ Examples:
|
|
|
18111
18111
|
false
|
|
18112
18112
|
);
|
|
18113
18113
|
});
|
|
18114
|
-
|
|
18114
|
+
_chunkMHWEX6GAjs.registerDeprecatedSearchCommand.call(void 0,
|
|
18115
18115
|
play,
|
|
18116
18116
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
18117
18117
|
);
|
|
@@ -18155,7 +18155,7 @@ Examples:
|
|
|
18155
18155
|
);
|
|
18156
18156
|
_chunkAFNEQ43Jjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
18157
18157
|
async (target, options) => {
|
|
18158
|
-
const ownView = () => handlePlayDescribe(
|
|
18158
|
+
const ownView = () => handlePlayDescribe(_chunk6PGYQ6IGjs.describeArgs.call(void 0, target, options));
|
|
18159
18159
|
const [flagText] = [options.json].filter(
|
|
18160
18160
|
(value) => typeof value === "string"
|
|
18161
18161
|
);
|
|
@@ -18166,7 +18166,7 @@ Examples:
|
|
|
18166
18166
|
process.exitCode = await ownView();
|
|
18167
18167
|
return;
|
|
18168
18168
|
}
|
|
18169
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
18169
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-4DNSNQKM.js")));
|
|
18170
18170
|
process.exitCode = await describeAnything(
|
|
18171
18171
|
name,
|
|
18172
18172
|
{
|
|
@@ -18283,7 +18283,7 @@ Examples:
|
|
|
18283
18283
|
deepline plays deployments <deployment-id>
|
|
18284
18284
|
`
|
|
18285
18285
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
|
|
18286
|
-
async (id, options) => id ?
|
|
18286
|
+
async (id, options) => id ? _chunkNIXE5325js.handleDeploymentGet.call(void 0, id, options) : _chunkNIXE5325js.handleDeploymentsList.call(void 0, options)
|
|
18287
18287
|
);
|
|
18288
18288
|
addPublishHelp(
|
|
18289
18289
|
play.command("publish <target>").description(
|
|
@@ -18463,7 +18463,7 @@ Examples:
|
|
|
18463
18463
|
).action(async (runId, options) => {
|
|
18464
18464
|
process.exitCode = await handleRunGet([
|
|
18465
18465
|
runId,
|
|
18466
|
-
...
|
|
18466
|
+
..._chunk6PGYQ6IGjs.jsonFieldArgs.call(void 0, options.json),
|
|
18467
18467
|
...options.full ? ["--full"] : [],
|
|
18468
18468
|
...options.input ? ["--input"] : [],
|
|
18469
18469
|
...options.config ? ["--config"] : [],
|
|
@@ -18739,7 +18739,7 @@ Examples:
|
|
|
18739
18739
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
18740
18740
|
...options.wait ? ["--wait"] : [],
|
|
18741
18741
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
18742
|
-
...
|
|
18742
|
+
..._chunk6PGYQ6IGjs.jsonFieldArgs.call(void 0, options.json)
|
|
18743
18743
|
]);
|
|
18744
18744
|
});
|
|
18745
18745
|
const share = play.command("share").description(
|
|
@@ -18905,10 +18905,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18905
18905
|
return 2;
|
|
18906
18906
|
}
|
|
18907
18907
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
18908
|
-
const status = await new (0,
|
|
18908
|
+
const status = await new (0, _chunkNC5ODEG7js.DeeplineClient)().getSharePage(name);
|
|
18909
18909
|
const outputStatus = shareStatusForOutput(status);
|
|
18910
|
-
if (
|
|
18911
|
-
|
|
18910
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
18911
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, outputStatus);
|
|
18912
18912
|
return 0;
|
|
18913
18913
|
}
|
|
18914
18914
|
if (!outputStatus.share) {
|
|
@@ -18947,7 +18947,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18947
18947
|
return 2;
|
|
18948
18948
|
}
|
|
18949
18949
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
18950
|
-
const client = new (0,
|
|
18950
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
18951
18951
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18952
18952
|
let resolvedVersion;
|
|
18953
18953
|
if (!revisionId) {
|
|
@@ -18978,8 +18978,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18978
18978
|
);
|
|
18979
18979
|
if (!hasCompleted) {
|
|
18980
18980
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18981
|
-
if (
|
|
18982
|
-
|
|
18981
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
18982
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, {
|
|
18983
18983
|
ok: false,
|
|
18984
18984
|
code: "NO_SUCCESSFUL_RUN",
|
|
18985
18985
|
message,
|
|
@@ -19003,8 +19003,8 @@ async function handlePlaySharePublish(args) {
|
|
|
19003
19003
|
};
|
|
19004
19004
|
if (args.includes("--dry-run")) {
|
|
19005
19005
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
19006
|
-
if (
|
|
19007
|
-
|
|
19006
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
19007
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, plan);
|
|
19008
19008
|
} else {
|
|
19009
19009
|
console.log(
|
|
19010
19010
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -19014,8 +19014,8 @@ async function handlePlaySharePublish(args) {
|
|
|
19014
19014
|
}
|
|
19015
19015
|
const status = await client.publishSharePage(name, request);
|
|
19016
19016
|
const outputStatus = shareStatusForOutput(status);
|
|
19017
|
-
if (
|
|
19018
|
-
|
|
19017
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
19018
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, outputStatus);
|
|
19019
19019
|
return 0;
|
|
19020
19020
|
}
|
|
19021
19021
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -19046,9 +19046,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
19046
19046
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
19047
19047
|
...seoIndexing ? { seoIndexing } : {}
|
|
19048
19048
|
};
|
|
19049
|
-
const status = await new (0,
|
|
19050
|
-
if (
|
|
19051
|
-
|
|
19049
|
+
const status = await new (0, _chunkNC5ODEG7js.DeeplineClient)().updateSharePage(name, request);
|
|
19050
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
19051
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, status);
|
|
19052
19052
|
return 0;
|
|
19053
19053
|
}
|
|
19054
19054
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -19063,7 +19063,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
19063
19063
|
return 2;
|
|
19064
19064
|
}
|
|
19065
19065
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
19066
|
-
const client = new (0,
|
|
19066
|
+
const client = new (0, _chunkNC5ODEG7js.DeeplineClient)();
|
|
19067
19067
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
19068
19068
|
const versionFlag = shareFlagValue(args, "--version");
|
|
19069
19069
|
if (!revisionId && versionFlag) {
|
|
@@ -19080,8 +19080,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
19080
19080
|
revisionId ? { revisionId } : {}
|
|
19081
19081
|
);
|
|
19082
19082
|
const outputStatus = shareStatusForOutput(status);
|
|
19083
|
-
if (
|
|
19084
|
-
|
|
19083
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
19084
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, outputStatus);
|
|
19085
19085
|
return 0;
|
|
19086
19086
|
}
|
|
19087
19087
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -19106,9 +19106,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
19106
19106
|
return 2;
|
|
19107
19107
|
}
|
|
19108
19108
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
19109
|
-
const status = await new (0,
|
|
19110
|
-
if (
|
|
19111
|
-
|
|
19109
|
+
const status = await new (0, _chunkNC5ODEG7js.DeeplineClient)().unpublishSharePage(name);
|
|
19110
|
+
if (_chunk6PGYQ6IGjs.argsWantJson.call(void 0, args)) {
|
|
19111
|
+
_chunk6PGYQ6IGjs.printCompactJson.call(void 0, status);
|
|
19112
19112
|
return 0;
|
|
19113
19113
|
}
|
|
19114
19114
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|