deepline 0.3.330 → 0.3.332
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/billing-idempotency.ts +5 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/security/safe-outbound-fetch.ts +10 -1
- package/dist/cli/auth-6SVPO5HS.js +31 -0
- package/dist/cli/{auth-A4XQ3KMW.mjs → auth-V4IWMXTG.mjs} +4 -4
- package/dist/cli/{billing-WLHXYC5Z.js → billing-BW37QW4H.js} +71 -71
- package/dist/cli/{billing-634WZLKG.mjs → billing-GYW4BCPG.mjs} +4 -4
- package/dist/cli/{chunk-SZCUJ4AL.mjs → chunk-3E7P62NA.mjs} +1 -1
- package/dist/cli/{chunk-GTBS6LQH.mjs → chunk-4RLN2DHZ.mjs} +2 -2
- package/dist/cli/{chunk-6VBXS43D.mjs → chunk-5FHGKEAD.mjs} +2 -2
- package/dist/cli/{chunk-O2L46S3I.js → chunk-AF6XLGZT.js} +2 -2
- package/dist/cli/{chunk-VFC6CZLF.mjs → chunk-B6R2V3TH.mjs} +3 -3
- package/dist/cli/{chunk-XUNMVZOW.js → chunk-CYLZE6RJ.js} +1 -1
- package/dist/cli/{chunk-46IVSO6O.js → chunk-ERPCUHOQ.js} +8 -8
- package/dist/cli/{chunk-GKZZ32EV.js → chunk-GDBJYM5N.js} +60 -60
- package/dist/cli/{chunk-7FWHOKNS.js → chunk-GOH5BRGN.js} +26 -26
- package/dist/cli/{chunk-3QZ22IZO.mjs → chunk-HKQMCTEE.mjs} +4 -4
- package/dist/cli/{chunk-PH2N6GC7.mjs → chunk-J5Z5BQGE.mjs} +1 -1
- package/dist/cli/{chunk-GHHLLEZK.js → chunk-JHF3GWKX.js} +4 -4
- package/dist/cli/{chunk-56RM5AQF.mjs → chunk-KYQPEIKA.mjs} +5 -5
- package/dist/cli/{chunk-MBI3BVSQ.mjs → chunk-LAJ56FLL.mjs} +1 -1
- package/dist/cli/{chunk-LQ5DD2UF.mjs → chunk-MSQK2FLJ.mjs} +2 -2
- package/dist/cli/{chunk-5W636CDP.mjs → chunk-MXJVBJYC.mjs} +2 -2
- package/dist/cli/{chunk-FLIABSY6.js → chunk-PK4EE6T3.js} +48 -48
- package/dist/cli/{chunk-SDSS4OTO.mjs → chunk-SBPJWA6Y.mjs} +6 -6
- package/dist/cli/{chunk-WHKTRZ3J.js → chunk-T5TGWH4J.js} +6 -6
- package/dist/cli/{chunk-LNDGT7NV.js → chunk-TTJ7KELW.js} +45 -45
- package/dist/cli/{chunk-GS7GA7PI.js → chunk-U2B5KDNH.js} +15 -15
- package/dist/cli/{chunk-ZYPFCBW5.mjs → chunk-UMKN2BZK.mjs} +1 -1
- package/dist/cli/{chunk-7DGZCMXQ.mjs → chunk-WQI642QX.mjs} +1 -1
- package/dist/cli/{chunk-63W4744F.js → chunk-X6MY7BC2.js} +225 -225
- package/dist/cli/{chunk-YGFQ7YSM.js → chunk-XON4H3CO.js} +10 -10
- package/dist/cli/{chunk-YFP4UH2Y.js → chunk-ZZWCK6F3.js} +6 -6
- package/dist/cli/client-BPQKKACG.js +20 -0
- package/dist/cli/{client-WYFGEJOX.mjs → client-TBCDCJ7T.mjs} +3 -3
- package/dist/cli/{csv-THMQDXCJ.js → csv-EFQ7UL3M.js} +12 -12
- package/dist/cli/{csv-BDZSDXLU.mjs → csv-O3NEPSU3.mjs} +3 -3
- package/dist/cli/{db-5BQJOZG7.js → db-2FQ3T4LT.js} +29 -29
- package/dist/cli/{db-R2LTNLFM.mjs → db-RUWCFINP.mjs} +4 -4
- package/dist/cli/{describe-WECII7FS.mjs → describe-4KSVRYPM.mjs} +8 -8
- package/dist/cli/{describe-F4G5H3SC.js → describe-YJFDN54P.js} +15 -15
- package/dist/cli/{executions-HPRIRB73.mjs → executions-MG63LYMV.mjs} +4 -4
- package/dist/cli/{executions-HJRVD4M6.js → executions-O7IIWVRV.js} +6 -6
- package/dist/cli/{feedback-GHGDH43D.js → feedback-SR2X2H4N.js} +6 -6
- package/dist/cli/{feedback-5VVW5WW7.mjs → feedback-WMYRDK2J.mjs} +3 -3
- package/dist/cli/{git-BBXML2UJ.mjs → git-NIGE3SIJ.mjs} +4 -4
- package/dist/cli/git-ZZU4LXWX.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-VNZZ3VVT.js → legacy-noops-TXSBNOG6.js} +7 -7
- package/dist/cli/{legacy-noops-IALOUAGL.mjs → legacy-noops-YXYYCDSR.mjs} +4 -4
- package/dist/cli/{monitors-VDEB2FKS.mjs → monitors-QYAGRL6V.mjs} +4 -4
- package/dist/cli/{monitors-MLP6IA2R.js → monitors-ZZUQMDUA.js} +85 -85
- package/dist/cli/{org-SDSSKY42.mjs → org-6NUUN2P7.mjs} +4 -4
- package/dist/cli/{org-N6ADDGEV.js → org-QQSCJJMM.js} +60 -60
- package/dist/cli/{play-VSTVY6PM.mjs → play-3G2A53MD.mjs} +7 -7
- package/dist/cli/play-LLC44DQW.js +153 -0
- package/dist/cli/{providers-TJ42O6NN.js → providers-AASOAAWT.js} +7 -7
- package/dist/cli/{providers-UKC7KD3W.mjs → providers-IGD3ZYTA.mjs} +4 -4
- package/dist/cli/{quickstart-7S7NMCMX.js → quickstart-NDUT5BVF.js} +5 -5
- package/dist/cli/{quickstart-WSKATNHJ.mjs → quickstart-RRCLOSHQ.mjs} +3 -3
- package/dist/cli/{search-6OS6VVCJ.mjs → search-37MO75IS.mjs} +5 -5
- package/dist/cli/search-JWUKJSNY.js +26 -0
- package/dist/cli/{secrets-QTTR5R5M.mjs → secrets-3OTOG64E.mjs} +4 -4
- package/dist/cli/{secrets-GWLYB2KD.js → secrets-QXY6DCJA.js} +13 -13
- package/dist/cli/{sessions-SUURWTVX.js → sessions-3P6DOM3H.js} +5 -5
- package/dist/cli/{sessions-Q7MY5YYI.mjs → sessions-FML35Y64.mjs} +4 -4
- package/dist/cli/{settings-3D5YDD2B.mjs → settings-MWFWIGHW.mjs} +7 -7
- package/dist/cli/{settings-W4DYMYFA.js → settings-SD6MDI67.js} +74 -74
- package/dist/cli/{setup-5F5OGYKW.mjs → setup-HDYPYPFU.mjs} +6 -6
- package/dist/cli/{setup-NIUADTDP.js → setup-HY35HR26.js} +41 -41
- package/dist/cli/skills-T3F4A4BQ.js +28 -0
- package/dist/cli/{skills-TV3ORUIG.mjs → skills-TGEDPYTP.mjs} +4 -4
- package/dist/cli/tools-PXC5VIRU.js +40 -0
- package/dist/cli/{tools-YSZWAFKO.mjs → tools-VBARDH32.mjs} +6 -6
- package/dist/cli/{update-FJAMLGLT.mjs → update-OIDLOWGB.mjs} +6 -6
- package/dist/cli/update-PIT4RK74.js +28 -0
- package/dist/cli/{workflow-HDHBYC7S.mjs → workflow-ACHWLHPT.mjs} +5 -5
- package/dist/cli/{workflow-C6ZCM5S4.js → workflow-K2SJUC5Z.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-XJJYQESF.js +0 -31
- package/dist/cli/client-3CREIHGC.js +0 -20
- package/dist/cli/git-NNEBLRVP.js +0 -23
- package/dist/cli/play-UTIPBVDQ.js +0 -153
- package/dist/cli/search-Y6UGKL5C.js +0 -26
- package/dist/cli/skills-SHUL5UT7.js +0 -28
- package/dist/cli/tools-GNIVV4OF.js +0 -40
- package/dist/cli/update-U3XGY6IT.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 _chunkERPCUHOQjs = require('./chunk-ERPCUHOQ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkGOH5BRGNjs = require('./chunk-GOH5BRGN.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 _chunkXON4H3COjs = require('./chunk-XON4H3CO.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 _chunkT5TGWH4Jjs = require('./chunk-T5TGWH4J.js');
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _chunkJHF3GWKXjs = require('./chunk-JHF3GWKX.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
|
+
_chunkT5TGWH4Jjs.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
|
+
_chunkT5TGWH4Jjs.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, _chunkXON4H3COjs.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
|
+
_chunkT5TGWH4Jjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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
|
+
_chunkT5TGWH4Jjs.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, _chunkXON4H3COjs.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
|
+
_chunkT5TGWH4Jjs.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
|
+
_chunkT5TGWH4Jjs.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
|
+
_chunkT5TGWH4Jjs.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
|
+
_chunkT5TGWH4Jjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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 = _chunkXON4H3COjs.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 (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2818
|
+
_chunkT5TGWH4Jjs.printJsonError.call(void 0,
|
|
2819
|
+
Object.assign(new (0, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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 = _chunkXON4H3COjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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 _chunkXON4H3COjs.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 (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) _chunkT5TGWH4Jjs.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, _chunkXON4H3COjs.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
|
+
_chunkT5TGWH4Jjs.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: _chunkT5TGWH4Jjs.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}${_chunkXON4H3COjs.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, _chunkXON4H3COjs.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, _chunkXON4H3COjs.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
|
+
_chunkT5TGWH4Jjs.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
|
+
_chunkT5TGWH4Jjs.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, _chunkXON4H3COjs.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
|
+
_chunkT5TGWH4Jjs.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, _chunkXON4H3COjs.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
|
+
_chunkT5TGWH4Jjs.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, _chunkXON4H3COjs.DeeplineClient)().runs.rerun(runId, {
|
|
5893
5893
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
5894
5894
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
5895
5895
|
});
|
|
5896
|
-
if (
|
|
5897
|
-
|
|
5896
|
+
if (_chunkT5TGWH4Jjs.shouldEmitJson.call(void 0, options.json)) {
|
|
5897
|
+
_chunkT5TGWH4Jjs.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 _chunkT5TGWH4Jjs.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
|
+
_chunkT5TGWH4Jjs.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 } = _chunkT5TGWH4Jjs.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: _chunkJHF3GWKXjs.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 = _chunkT5TGWH4Jjs.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 ? _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkT5TGWH4Jjs.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 = _chunkXON4H3COjs.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 : _chunkXON4H3COjs.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 : _chunkT5TGWH4Jjs.parseJsonFields.call(void 0,
|
|
9581
|
+
[...fullJson ? ["--full"] : [], ..._chunkT5TGWH4Jjs.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 || _chunkT5TGWH4Jjs.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
|
+
_chunkT5TGWH4Jjs.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 _chunkXON4H3COjs.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 (!_chunkXON4H3COjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
10624
10624
|
return false;
|
|
10625
10625
|
}
|
|
10626
|
-
if (
|
|
10626
|
+
if (_chunkXON4H3COjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
10627
10627
|
return true;
|
|
10628
10628
|
}
|
|
10629
|
-
return state.verbose === true &&
|
|
10629
|
+
return state.verbose === true && _chunkXON4H3COjs.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
|
+
_chunkT5TGWH4Jjs.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 (_chunkXON4H3COjs.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 (_chunkXON4H3COjs.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 && _chunkXON4H3COjs.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 && _chunkXON4H3COjs.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 = _chunkXON4H3COjs.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 _chunkXON4H3COjs.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 _chunkXON4H3COjs.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 (!_chunkXON4H3COjs.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 (!_chunkXON4H3COjs.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 (!_chunkXON4H3COjs.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) => _chunkXON4H3COjs.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
|
+
_chunkT5TGWH4Jjs.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
|
+
_chunkT5TGWH4Jjs.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
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
13406
13406
|
{
|
|
13407
13407
|
...payload,
|
|
13408
13408
|
render: {
|
|
@@ -14159,7 +14159,7 @@ function writeStartedPlayRun(input) {
|
|
|
14159
14159
|
dashboardUrl: input.dashboardUrl,
|
|
14160
14160
|
package: input.package
|
|
14161
14161
|
};
|
|
14162
|
-
|
|
14162
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
14163
14163
|
json: true,
|
|
14164
14164
|
fields: input.jsonFields
|
|
14165
14165
|
});
|
|
@@ -14181,7 +14181,7 @@ function writeStartedPlayRun(input) {
|
|
|
14181
14181
|
input.progress.writeLine(output2, process.stdout);
|
|
14182
14182
|
return;
|
|
14183
14183
|
}
|
|
14184
|
-
|
|
14184
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0, input.package, {
|
|
14185
14185
|
json: false,
|
|
14186
14186
|
text: `${output2}
|
|
14187
14187
|
`
|
|
@@ -14210,7 +14210,7 @@ function writeStartedPlayRun(input) {
|
|
|
14210
14210
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)} --json`] : []
|
|
14211
14211
|
];
|
|
14212
14212
|
if (input.jsonOutput) {
|
|
14213
|
-
|
|
14213
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
14214
14214
|
return;
|
|
14215
14215
|
}
|
|
14216
14216
|
if (input.dashboardUrl) {
|
|
@@ -14221,7 +14221,7 @@ function writeStartedPlayRun(input) {
|
|
|
14221
14221
|
input.progress.writeLine(output, process.stdout);
|
|
14222
14222
|
return;
|
|
14223
14223
|
}
|
|
14224
|
-
|
|
14224
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
14225
14225
|
{
|
|
14226
14226
|
...payload,
|
|
14227
14227
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -14231,7 +14231,7 @@ function writeStartedPlayRun(input) {
|
|
|
14231
14231
|
);
|
|
14232
14232
|
}
|
|
14233
14233
|
function parsePlayCheckOptions(args) {
|
|
14234
|
-
const selection =
|
|
14234
|
+
const selection = _chunkT5TGWH4Jjs.parseJsonFields.call(void 0, args, "check");
|
|
14235
14235
|
args = selection.args;
|
|
14236
14236
|
const target = args[0];
|
|
14237
14237
|
if (!target || target.startsWith("-")) {
|
|
@@ -14243,7 +14243,7 @@ function parsePlayCheckOptions(args) {
|
|
|
14243
14243
|
if (arg !== "--json" && arg !== "--full")
|
|
14244
14244
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
14245
14245
|
}
|
|
14246
|
-
const jsonOutput =
|
|
14246
|
+
const jsonOutput = _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args);
|
|
14247
14247
|
return {
|
|
14248
14248
|
target,
|
|
14249
14249
|
jsonOutput,
|
|
@@ -14319,7 +14319,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
14319
14319
|
useLatest,
|
|
14320
14320
|
expectedArtifactHash,
|
|
14321
14321
|
dryRun,
|
|
14322
|
-
jsonOutput:
|
|
14322
|
+
jsonOutput: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)
|
|
14323
14323
|
};
|
|
14324
14324
|
}
|
|
14325
14325
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -14360,7 +14360,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
14360
14360
|
target,
|
|
14361
14361
|
expectedArtifactHash,
|
|
14362
14362
|
dryRun,
|
|
14363
|
-
jsonOutput:
|
|
14363
|
+
jsonOutput: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)
|
|
14364
14364
|
};
|
|
14365
14365
|
}
|
|
14366
14366
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -14571,7 +14571,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
14571
14571
|
async function handlePlayCheck(args) {
|
|
14572
14572
|
const options = parsePlayCheckOptions(args);
|
|
14573
14573
|
if (!isFileTarget2(options.target)) {
|
|
14574
|
-
const client = new (0,
|
|
14574
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
14575
14575
|
try {
|
|
14576
14576
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
14577
14577
|
command: "check"
|
|
@@ -14600,7 +14600,7 @@ async function handlePlayCheck(args) {
|
|
|
14600
14600
|
},
|
|
14601
14601
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
14602
14602
|
};
|
|
14603
|
-
|
|
14603
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0, result, {
|
|
14604
14604
|
json: options.jsonOutput,
|
|
14605
14605
|
fields: options.jsonFields,
|
|
14606
14606
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -14610,7 +14610,7 @@ async function handlePlayCheck(args) {
|
|
|
14610
14610
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
14611
14611
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
14612
14612
|
if (options.jsonOutput) {
|
|
14613
|
-
|
|
14613
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
14614
14614
|
{
|
|
14615
14615
|
kind: "play_check",
|
|
14616
14616
|
checked: "named_contract",
|
|
@@ -14652,7 +14652,7 @@ async function handlePlayCheck(args) {
|
|
|
14652
14652
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full --json`,
|
|
14653
14653
|
publishCommand: _optionalChain([primary, 'optionalAccess', _482 => _482.result, 'access', _483 => _483.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
14654
14654
|
});
|
|
14655
|
-
|
|
14655
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0, output, {
|
|
14656
14656
|
json: options.jsonOutput,
|
|
14657
14657
|
fields: options.jsonFields,
|
|
14658
14658
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -14714,7 +14714,7 @@ async function checkOneExportedPlay(input) {
|
|
|
14714
14714
|
result: { valid: false, errors: descriptionErrors }
|
|
14715
14715
|
};
|
|
14716
14716
|
}
|
|
14717
|
-
const client = new (0,
|
|
14717
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
14718
14718
|
const integrationMode = resolveEvalIntegrationMode();
|
|
14719
14719
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
14720
14720
|
playName: node.playName,
|
|
@@ -14788,7 +14788,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
14788
14788
|
);
|
|
14789
14789
|
return 0;
|
|
14790
14790
|
}
|
|
14791
|
-
client = new (0,
|
|
14791
|
+
client = new (0, _chunkXON4H3COjs.DeeplineClient)(playRunClientOptions(options));
|
|
14792
14792
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
14793
14793
|
if (canDeferCompilerManifest) {
|
|
14794
14794
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -14983,7 +14983,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14983
14983
|
if (options.target.kind !== "name") {
|
|
14984
14984
|
throw new Error("Expected a named play run target.");
|
|
14985
14985
|
}
|
|
14986
|
-
const client = new (0,
|
|
14986
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)(playRunClientOptions(options));
|
|
14987
14987
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
14988
14988
|
const playName = options.target.name;
|
|
14989
14989
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -15380,10 +15380,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
15380
15380
|
);
|
|
15381
15381
|
return `${lines.join("\n")}
|
|
15382
15382
|
|
|
15383
|
-
${
|
|
15383
|
+
${_chunkT5TGWH4Jjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
15384
15384
|
}
|
|
15385
15385
|
async function handleRunGet(args) {
|
|
15386
|
-
const selection =
|
|
15386
|
+
const selection = _chunkT5TGWH4Jjs.parseJsonFields.call(void 0,
|
|
15387
15387
|
args,
|
|
15388
15388
|
args.includes("--config") ? "config" : "get"
|
|
15389
15389
|
);
|
|
@@ -15396,7 +15396,7 @@ async function handleRunGet(args) {
|
|
|
15396
15396
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15397
15397
|
return 1;
|
|
15398
15398
|
}
|
|
15399
|
-
const client = new (0,
|
|
15399
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
15400
15400
|
if (args.includes("--config")) {
|
|
15401
15401
|
if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
|
|
15402
15402
|
console.error(
|
|
@@ -15410,7 +15410,7 @@ async function handleRunGet(args) {
|
|
|
15410
15410
|
"This server does not support recorded configuration reads."
|
|
15411
15411
|
);
|
|
15412
15412
|
}
|
|
15413
|
-
|
|
15413
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
15414
15414
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
15415
15415
|
{ json: true, fields: selection.fields }
|
|
15416
15416
|
);
|
|
@@ -15418,7 +15418,7 @@ async function handleRunGet(args) {
|
|
|
15418
15418
|
}
|
|
15419
15419
|
if (args.includes("--input")) {
|
|
15420
15420
|
const input = await client.getRunInput(runId);
|
|
15421
|
-
|
|
15421
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
15422
15422
|
return 0;
|
|
15423
15423
|
}
|
|
15424
15424
|
const full = args.includes("--full");
|
|
@@ -15431,8 +15431,8 @@ async function handleRunGet(args) {
|
|
|
15431
15431
|
full: true,
|
|
15432
15432
|
failedLogs: args.includes("--log-failed")
|
|
15433
15433
|
}) : status;
|
|
15434
|
-
if (
|
|
15435
|
-
|
|
15434
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
15435
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
15436
15436
|
full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
15437
15437
|
{ json: true, fields: selection.fields }
|
|
15438
15438
|
);
|
|
@@ -15448,8 +15448,8 @@ async function handleRunGet(args) {
|
|
|
15448
15448
|
readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
|
|
15449
15449
|
]);
|
|
15450
15450
|
const hitLines = formatRunHitsLines(hits);
|
|
15451
|
-
const json =
|
|
15452
|
-
|
|
15451
|
+
const json = _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args);
|
|
15452
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
15453
15453
|
{
|
|
15454
15454
|
...overview,
|
|
15455
15455
|
credits,
|
|
@@ -15552,9 +15552,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
15552
15552
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15553
15553
|
return 1;
|
|
15554
15554
|
}
|
|
15555
|
-
const status = await new (0,
|
|
15556
|
-
if (
|
|
15557
|
-
|
|
15555
|
+
const status = await new (0, _chunkXON4H3COjs.DeeplineClient)().runs.status(runId);
|
|
15556
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
15557
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
15558
15558
|
return 0;
|
|
15559
15559
|
}
|
|
15560
15560
|
if (!status.available) {
|
|
@@ -15594,7 +15594,7 @@ async function handleRunsRerun(args) {
|
|
|
15594
15594
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15595
15595
|
return 1;
|
|
15596
15596
|
}
|
|
15597
|
-
const options = { json:
|
|
15597
|
+
const options = { json: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args) };
|
|
15598
15598
|
for (let index = 0; index < args.length; index += 1) {
|
|
15599
15599
|
if (args[index] === "--idempotency-key") {
|
|
15600
15600
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -15659,8 +15659,8 @@ ${usage2}
|
|
|
15659
15659
|
Discover Plays: ${next.discover}
|
|
15660
15660
|
Active runs: ${next.running}`
|
|
15661
15661
|
);
|
|
15662
|
-
if (
|
|
15663
|
-
|
|
15662
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
15663
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
15664
15664
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
15665
15665
|
{ json: true }
|
|
15666
15666
|
);
|
|
@@ -15675,7 +15675,7 @@ Active runs: ${next.running}`
|
|
|
15675
15675
|
console.error("--offset requires --play.");
|
|
15676
15676
|
return 1;
|
|
15677
15677
|
}
|
|
15678
|
-
const client = new (0,
|
|
15678
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
15679
15679
|
const page = await client.runs.listPage({
|
|
15680
15680
|
...playName ? { play: playName } : {},
|
|
15681
15681
|
...statusFilter ? { status: statusFilter } : {},
|
|
@@ -15744,7 +15744,7 @@ Active runs: ${next.running}`
|
|
|
15744
15744
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
15745
15745
|
);
|
|
15746
15746
|
}
|
|
15747
|
-
|
|
15747
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
15748
15748
|
{
|
|
15749
15749
|
runs,
|
|
15750
15750
|
count: runs.length,
|
|
@@ -15758,7 +15758,7 @@ Active runs: ${next.running}`
|
|
|
15758
15758
|
},
|
|
15759
15759
|
render: { sections: [{ title: "runs", lines }] }
|
|
15760
15760
|
},
|
|
15761
|
-
{ json:
|
|
15761
|
+
{ json: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args) }
|
|
15762
15762
|
);
|
|
15763
15763
|
return 0;
|
|
15764
15764
|
}
|
|
@@ -15788,7 +15788,7 @@ async function handleRunTail(args) {
|
|
|
15788
15788
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15789
15789
|
return 1;
|
|
15790
15790
|
}
|
|
15791
|
-
const parsed =
|
|
15791
|
+
const parsed = _chunkXON4H3COjs.parseLogLevel.call(void 0, value);
|
|
15792
15792
|
if (!parsed) {
|
|
15793
15793
|
console.error(
|
|
15794
15794
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15826,9 +15826,9 @@ async function handleRunTail(args) {
|
|
|
15826
15826
|
);
|
|
15827
15827
|
return 1;
|
|
15828
15828
|
}
|
|
15829
|
-
const client = new (0,
|
|
15829
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
15830
15830
|
const jsonLines = args.includes("--jsonl");
|
|
15831
|
-
const jsonOutput = !jsonLines &&
|
|
15831
|
+
const jsonOutput = !jsonLines && _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args);
|
|
15832
15832
|
const compact = args.includes("--compact");
|
|
15833
15833
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
15834
15834
|
const compactState = {
|
|
@@ -15909,7 +15909,7 @@ async function handleRunLogs(args) {
|
|
|
15909
15909
|
]);
|
|
15910
15910
|
const cursorIndex = args.indexOf("--cursor");
|
|
15911
15911
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15912
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
15912
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkXON4H3COjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
15913
15913
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
15914
15914
|
return handleRunEventSearch(args);
|
|
15915
15915
|
}
|
|
@@ -15943,7 +15943,7 @@ async function handleRunLogs(args) {
|
|
|
15943
15943
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15944
15944
|
return 1;
|
|
15945
15945
|
}
|
|
15946
|
-
const parsed =
|
|
15946
|
+
const parsed = _chunkXON4H3COjs.parseLogLevel.call(void 0, value);
|
|
15947
15947
|
if (!parsed) {
|
|
15948
15948
|
console.error(
|
|
15949
15949
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15990,12 +15990,12 @@ async function handleRunLogs(args) {
|
|
|
15990
15990
|
);
|
|
15991
15991
|
return 1;
|
|
15992
15992
|
}
|
|
15993
|
-
const client = new (0,
|
|
15993
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
15994
15994
|
if (outPath) {
|
|
15995
15995
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
15996
|
-
const logs = result2.entries.filter((line) =>
|
|
15996
|
+
const logs = result2.entries.filter((line) => _chunkXON4H3COjs.logLevelReaches.call(void 0, _chunkXON4H3COjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkXON4H3COjs.classifyLogLine.call(void 0, line).line);
|
|
15997
15997
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
15998
|
-
|
|
15998
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
15999
15999
|
{
|
|
16000
16000
|
runId: result2.runId,
|
|
16001
16001
|
log_path: outPath,
|
|
@@ -16018,7 +16018,7 @@ async function handleRunLogs(args) {
|
|
|
16018
16018
|
]
|
|
16019
16019
|
}
|
|
16020
16020
|
},
|
|
16021
|
-
{ json:
|
|
16021
|
+
{ json: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args) }
|
|
16022
16022
|
);
|
|
16023
16023
|
return 0;
|
|
16024
16024
|
}
|
|
@@ -16049,7 +16049,7 @@ async function handleRunLogs(args) {
|
|
|
16049
16049
|
}
|
|
16050
16050
|
};
|
|
16051
16051
|
const text = buildRunLogsText(filteredResult);
|
|
16052
|
-
|
|
16052
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
16053
16053
|
{
|
|
16054
16054
|
runId: result.runId,
|
|
16055
16055
|
totalCount: result.totalCount,
|
|
@@ -16073,7 +16073,7 @@ async function handleRunLogs(args) {
|
|
|
16073
16073
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
16074
16074
|
},
|
|
16075
16075
|
{
|
|
16076
|
-
json:
|
|
16076
|
+
json: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args),
|
|
16077
16077
|
text
|
|
16078
16078
|
}
|
|
16079
16079
|
);
|
|
@@ -16097,7 +16097,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
16097
16097
|
);
|
|
16098
16098
|
}
|
|
16099
16099
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
16100
|
-
(entry) =>
|
|
16100
|
+
(entry) => _chunkXON4H3COjs.logLevelReaches.call(void 0, _chunkXON4H3COjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
16101
16101
|
);
|
|
16102
16102
|
const selected = matching.slice(-limit);
|
|
16103
16103
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -16107,7 +16107,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
16107
16107
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _525 => _525.at, 'call', _526 => _526(-1), 'optionalAccess', _527 => _527.seq]), () => ( null)),
|
|
16108
16108
|
truncated: result.truncated || olderMatchesExist,
|
|
16109
16109
|
hasMore: olderMatchesExist,
|
|
16110
|
-
nextCursor: olderMatchesExist ?
|
|
16110
|
+
nextCursor: olderMatchesExist ? _chunkXON4H3COjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
16111
16111
|
};
|
|
16112
16112
|
}
|
|
16113
16113
|
async function handleRunEventSearch(args) {
|
|
@@ -16174,7 +16174,7 @@ ${usage2}`);
|
|
|
16174
16174
|
namespace,
|
|
16175
16175
|
...backend ? { backend } : {}
|
|
16176
16176
|
} : void 0;
|
|
16177
|
-
const client = new (0,
|
|
16177
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
16178
16178
|
const result = await client.runs.searchEvents({
|
|
16179
16179
|
...runId ? { runId } : {},
|
|
16180
16180
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -16247,7 +16247,7 @@ ${renderedDetails}` : ""}`;
|
|
|
16247
16247
|
String(limit),
|
|
16248
16248
|
"--json"
|
|
16249
16249
|
].join(" ") : null;
|
|
16250
|
-
|
|
16250
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
16251
16251
|
{
|
|
16252
16252
|
events,
|
|
16253
16253
|
nextCursor: result.nextCursor,
|
|
@@ -16258,14 +16258,14 @@ ${renderedDetails}` : ""}`;
|
|
|
16258
16258
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
16259
16259
|
},
|
|
16260
16260
|
{
|
|
16261
|
-
json:
|
|
16261
|
+
json: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args),
|
|
16262
16262
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
16263
16263
|
}
|
|
16264
16264
|
);
|
|
16265
16265
|
return 0;
|
|
16266
16266
|
}
|
|
16267
16267
|
function buildRunLogsText(result) {
|
|
16268
|
-
const lines = result.entries.map((line) =>
|
|
16268
|
+
const lines = result.entries.map((line) => _chunkXON4H3COjs.classifyLogLine.call(void 0, line).line);
|
|
16269
16269
|
if (result.warning) {
|
|
16270
16270
|
if (lines.length > 0) lines.push("");
|
|
16271
16271
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -16299,7 +16299,7 @@ async function handleRunStop(args) {
|
|
|
16299
16299
|
reason = args[++index];
|
|
16300
16300
|
}
|
|
16301
16301
|
}
|
|
16302
|
-
const client = new (0,
|
|
16302
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
16303
16303
|
const result = await client.runs.stop(runId, { reason });
|
|
16304
16304
|
const state = resolveRunStopState(result);
|
|
16305
16305
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -16314,7 +16314,7 @@ async function handleRunStop(args) {
|
|
|
16314
16314
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
16315
16315
|
`inspect: deepline runs get ${runId} --full --json`
|
|
16316
16316
|
];
|
|
16317
|
-
|
|
16317
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
16318
16318
|
{
|
|
16319
16319
|
...cancelling,
|
|
16320
16320
|
state,
|
|
@@ -16329,7 +16329,7 @@ async function handleRunStop(args) {
|
|
|
16329
16329
|
]
|
|
16330
16330
|
}
|
|
16331
16331
|
},
|
|
16332
|
-
{ json:
|
|
16332
|
+
{ json: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args) }
|
|
16333
16333
|
);
|
|
16334
16334
|
return 0;
|
|
16335
16335
|
}
|
|
@@ -16346,7 +16346,7 @@ async function handleRunStop(args) {
|
|
|
16346
16346
|
];
|
|
16347
16347
|
process.stderr.write(`${lines2.join("\n")}
|
|
16348
16348
|
`);
|
|
16349
|
-
|
|
16349
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
16350
16350
|
{
|
|
16351
16351
|
...result,
|
|
16352
16352
|
render: {
|
|
@@ -16361,7 +16361,7 @@ async function handleRunStop(args) {
|
|
|
16361
16361
|
]
|
|
16362
16362
|
}
|
|
16363
16363
|
},
|
|
16364
|
-
{ json:
|
|
16364
|
+
{ json: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args) }
|
|
16365
16365
|
);
|
|
16366
16366
|
return 1;
|
|
16367
16367
|
}
|
|
@@ -16372,12 +16372,12 @@ async function handleRunStop(args) {
|
|
|
16372
16372
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
16373
16373
|
] : []
|
|
16374
16374
|
];
|
|
16375
|
-
|
|
16375
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
16376
16376
|
{
|
|
16377
16377
|
...result,
|
|
16378
16378
|
render: { sections: [{ title: "run stop", lines }] }
|
|
16379
16379
|
},
|
|
16380
|
-
{ json:
|
|
16380
|
+
{ json: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args) }
|
|
16381
16381
|
);
|
|
16382
16382
|
return 0;
|
|
16383
16383
|
}
|
|
@@ -16427,18 +16427,18 @@ async function handleRunStopAll(args) {
|
|
|
16427
16427
|
reason = args[++index];
|
|
16428
16428
|
}
|
|
16429
16429
|
}
|
|
16430
|
-
const client = new (0,
|
|
16430
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
16431
16431
|
if (dryRun) {
|
|
16432
16432
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
16433
16433
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
16434
|
-
|
|
16434
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
16435
16435
|
{
|
|
16436
16436
|
...result2,
|
|
16437
16437
|
render: {
|
|
16438
16438
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
16439
16439
|
}
|
|
16440
16440
|
},
|
|
16441
|
-
{ json:
|
|
16441
|
+
{ json: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
16442
16442
|
` }
|
|
16443
16443
|
);
|
|
16444
16444
|
return 0;
|
|
@@ -16451,17 +16451,17 @@ async function handleRunStopAll(args) {
|
|
|
16451
16451
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
16452
16452
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
16453
16453
|
];
|
|
16454
|
-
|
|
16454
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
16455
16455
|
{
|
|
16456
16456
|
...result,
|
|
16457
16457
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
16458
16458
|
},
|
|
16459
|
-
{ json:
|
|
16459
|
+
{ json: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args) }
|
|
16460
16460
|
);
|
|
16461
16461
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
16462
16462
|
}
|
|
16463
16463
|
async function handleRunExport(args) {
|
|
16464
|
-
const selection =
|
|
16464
|
+
const selection = _chunkT5TGWH4Jjs.parseJsonFields.call(void 0, args, "export");
|
|
16465
16465
|
args = selection.args;
|
|
16466
16466
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--json]";
|
|
16467
16467
|
let runId;
|
|
@@ -16520,16 +16520,16 @@ async function handleRunExport(args) {
|
|
|
16520
16520
|
"INVALID_ARGUMENT"
|
|
16521
16521
|
);
|
|
16522
16522
|
}
|
|
16523
|
-
const client = new (0,
|
|
16523
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
16524
16524
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
16525
16525
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
16526
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
16526
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args));
|
|
16527
16527
|
try {
|
|
16528
16528
|
await waitForPlayCompletionByWatch({
|
|
16529
16529
|
client,
|
|
16530
16530
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
16531
16531
|
workflowId: runId,
|
|
16532
|
-
jsonOutput:
|
|
16532
|
+
jsonOutput: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args),
|
|
16533
16533
|
emitLogs: false,
|
|
16534
16534
|
waitTimeoutMs,
|
|
16535
16535
|
startedAt: Date.now(),
|
|
@@ -16628,8 +16628,8 @@ async function handleRunExport(args) {
|
|
|
16628
16628
|
"utf-8"
|
|
16629
16629
|
);
|
|
16630
16630
|
}
|
|
16631
|
-
|
|
16632
|
-
json:
|
|
16631
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0, payload, {
|
|
16632
|
+
json: _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args),
|
|
16633
16633
|
fields: selection.fields,
|
|
16634
16634
|
text: `${lines.join("\n")}
|
|
16635
16635
|
`
|
|
@@ -16650,10 +16650,10 @@ async function handlePlayGet(args) {
|
|
|
16650
16650
|
);
|
|
16651
16651
|
return 2;
|
|
16652
16652
|
}
|
|
16653
|
-
const client = new (0,
|
|
16653
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
16654
16654
|
const explicitJson = args.includes("--json");
|
|
16655
16655
|
const sourceOutput = args.includes("--source");
|
|
16656
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
16656
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args);
|
|
16657
16657
|
const requestedRevisionFlags = [
|
|
16658
16658
|
args.includes("--working"),
|
|
16659
16659
|
args.includes("--live"),
|
|
@@ -16713,7 +16713,7 @@ async function handlePlayGet(args) {
|
|
|
16713
16713
|
}
|
|
16714
16714
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
16715
16715
|
if (jsonOutput) {
|
|
16716
|
-
|
|
16716
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, {
|
|
16717
16717
|
...detail,
|
|
16718
16718
|
...materializedFile ? {
|
|
16719
16719
|
message: loadedMessage,
|
|
@@ -16800,8 +16800,8 @@ async function handlePlayVersions(args) {
|
|
|
16800
16800
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
16801
16801
|
return 1;
|
|
16802
16802
|
}
|
|
16803
|
-
const client = new (0,
|
|
16804
|
-
const jsonOutput =
|
|
16803
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
16804
|
+
const jsonOutput = _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args);
|
|
16805
16805
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16806
16806
|
command: "versions"
|
|
16807
16807
|
});
|
|
@@ -16809,7 +16809,7 @@ async function handlePlayVersions(args) {
|
|
|
16809
16809
|
parseReferencedPlayTarget3(playName).playName
|
|
16810
16810
|
);
|
|
16811
16811
|
if (jsonOutput) {
|
|
16812
|
-
|
|
16812
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, { versions });
|
|
16813
16813
|
return 0;
|
|
16814
16814
|
}
|
|
16815
16815
|
if (versions.length === 0) {
|
|
@@ -16841,9 +16841,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
16841
16841
|
"signals"
|
|
16842
16842
|
];
|
|
16843
16843
|
async function handlePlayList(args) {
|
|
16844
|
-
const jsonOutput =
|
|
16844
|
+
const jsonOutput = _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args);
|
|
16845
16845
|
const showCost = args.includes("--show-cost");
|
|
16846
|
-
const client = new (0,
|
|
16846
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
16847
16847
|
const categoriesIndex = args.indexOf("--categories");
|
|
16848
16848
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _563 => _563[categoriesIndex + 1], 'optionalAccess', _564 => _564.trim, 'call', _565 => _565()]) : void 0;
|
|
16849
16849
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -16940,7 +16940,7 @@ async function handlePlayList(args) {
|
|
|
16940
16940
|
lines.push("List truncated \u2014 more plays are available.");
|
|
16941
16941
|
lines.push(`Next page: ${nextPage}`);
|
|
16942
16942
|
}
|
|
16943
|
-
|
|
16943
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
16944
16944
|
{
|
|
16945
16945
|
plays,
|
|
16946
16946
|
count: plays.length,
|
|
@@ -16958,7 +16958,7 @@ async function handlePlayList(args) {
|
|
|
16958
16958
|
}
|
|
16959
16959
|
async function handlePlayPin(args, pinned) {
|
|
16960
16960
|
const target = _optionalChain([args, 'access', _572 => _572.find, 'call', _573 => _573((arg) => !arg.startsWith("-")), 'optionalAccess', _574 => _574.trim, 'call', _575 => _575()]);
|
|
16961
|
-
const jsonOutput =
|
|
16961
|
+
const jsonOutput = _chunkT5TGWH4Jjs.argsWantJson.call(void 0, args);
|
|
16962
16962
|
const dryRun = args.includes("--dry-run");
|
|
16963
16963
|
if (!target) {
|
|
16964
16964
|
console.error(
|
|
@@ -16976,11 +16976,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
16976
16976
|
const name = parsedTarget.playName;
|
|
16977
16977
|
const plan = { name, pinned, dryRun };
|
|
16978
16978
|
if (dryRun) {
|
|
16979
|
-
|
|
16979
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, plan);
|
|
16980
16980
|
return 0;
|
|
16981
16981
|
}
|
|
16982
|
-
const result = await new (0,
|
|
16983
|
-
if (jsonOutput)
|
|
16982
|
+
const result = await new (0, _chunkXON4H3COjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
16983
|
+
if (jsonOutput) _chunkT5TGWH4Jjs.printCompactJson.call(void 0, result);
|
|
16984
16984
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
16985
16985
|
return 0;
|
|
16986
16986
|
}
|
|
@@ -16996,7 +16996,7 @@ function csvColumnLines(csvInput) {
|
|
|
16996
16996
|
const headers = [defaults[column]].flat().filter((header) => header && header !== column);
|
|
16997
16997
|
return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
|
|
16998
16998
|
}),
|
|
16999
|
-
|
|
16999
|
+
_chunkXON4H3COjs.CSV_HEADER_MATCHING_NOTE
|
|
17000
17000
|
];
|
|
17001
17001
|
}
|
|
17002
17002
|
function describedPlay(play) {
|
|
@@ -17140,12 +17140,12 @@ async function handlePlayGrep(args) {
|
|
|
17140
17140
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
17141
17141
|
return 1;
|
|
17142
17142
|
}
|
|
17143
|
-
const client = new (0,
|
|
17143
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
17144
17144
|
const results = (await client.listPlays({ grep: query })).map(
|
|
17145
17145
|
summarizePlayGrepResult
|
|
17146
17146
|
);
|
|
17147
|
-
if (
|
|
17148
|
-
|
|
17147
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
17148
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, {
|
|
17149
17149
|
plays: results,
|
|
17150
17150
|
count: results.length,
|
|
17151
17151
|
query,
|
|
@@ -17168,7 +17168,7 @@ async function handlePlayGrep(args) {
|
|
|
17168
17168
|
return 0;
|
|
17169
17169
|
}
|
|
17170
17170
|
async function handlePlayDescribe(args) {
|
|
17171
|
-
const selection =
|
|
17171
|
+
const selection = _chunkT5TGWH4Jjs.parseJsonFields.call(void 0, args, "describe");
|
|
17172
17172
|
args = selection.args;
|
|
17173
17173
|
const playName = args[0];
|
|
17174
17174
|
if (!playName) {
|
|
@@ -17202,8 +17202,8 @@ async function handlePlayDescribe(args) {
|
|
|
17202
17202
|
`deepline plays check ${playName}`,
|
|
17203
17203
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
17204
17204
|
];
|
|
17205
|
-
if (
|
|
17206
|
-
|
|
17205
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
17206
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, {
|
|
17207
17207
|
ok: false,
|
|
17208
17208
|
error: { message },
|
|
17209
17209
|
next
|
|
@@ -17217,7 +17217,7 @@ async function handlePlayDescribe(args) {
|
|
|
17217
17217
|
}
|
|
17218
17218
|
return 2;
|
|
17219
17219
|
}
|
|
17220
|
-
const client = new (0,
|
|
17220
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
17221
17221
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
17222
17222
|
command: "describe"
|
|
17223
17223
|
});
|
|
@@ -17227,9 +17227,9 @@ async function handlePlayDescribe(args) {
|
|
|
17227
17227
|
compact: args.includes("--compact")
|
|
17228
17228
|
}
|
|
17229
17229
|
);
|
|
17230
|
-
if (
|
|
17231
|
-
if (selection.fields)
|
|
17232
|
-
else
|
|
17230
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
17231
|
+
if (selection.fields) _chunkT5TGWH4Jjs.printJson.call(void 0, play, selection.fields);
|
|
17232
|
+
else _chunkT5TGWH4Jjs.printCompactJson.call(void 0, play);
|
|
17233
17233
|
return 0;
|
|
17234
17234
|
}
|
|
17235
17235
|
printPlayDescription(play);
|
|
@@ -17273,7 +17273,7 @@ async function handlePlaySave(args) {
|
|
|
17273
17273
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
17274
17274
|
};
|
|
17275
17275
|
if (options.jsonOutput) {
|
|
17276
|
-
|
|
17276
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, result);
|
|
17277
17277
|
} else {
|
|
17278
17278
|
console.error(result.message);
|
|
17279
17279
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -17295,7 +17295,7 @@ async function handlePlaySave(args) {
|
|
|
17295
17295
|
};
|
|
17296
17296
|
if (options.dryRun) {
|
|
17297
17297
|
if (options.jsonOutput) {
|
|
17298
|
-
|
|
17298
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, dryRun);
|
|
17299
17299
|
} else {
|
|
17300
17300
|
console.log(`Dry run: ${playName}`);
|
|
17301
17301
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17304,7 +17304,7 @@ async function handlePlaySave(args) {
|
|
|
17304
17304
|
}
|
|
17305
17305
|
return 0;
|
|
17306
17306
|
}
|
|
17307
|
-
const client = new (0,
|
|
17307
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
17308
17308
|
try {
|
|
17309
17309
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
17310
17310
|
"cli.play_save_compile_manifests",
|
|
@@ -17340,7 +17340,7 @@ async function handlePlaySave(args) {
|
|
|
17340
17340
|
}
|
|
17341
17341
|
};
|
|
17342
17342
|
if (options.jsonOutput) {
|
|
17343
|
-
|
|
17343
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, result);
|
|
17344
17344
|
} else {
|
|
17345
17345
|
console.log(
|
|
17346
17346
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -17366,7 +17366,7 @@ async function handlePlayPublish(args) {
|
|
|
17366
17366
|
}
|
|
17367
17367
|
const { target: playName, useLatest } = options;
|
|
17368
17368
|
let revisionId = options.revisionId;
|
|
17369
|
-
const client = new (0,
|
|
17369
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
17370
17370
|
if (isFileTarget2(playName)) {
|
|
17371
17371
|
if (revisionId || useLatest) {
|
|
17372
17372
|
console.error(
|
|
@@ -17398,7 +17398,7 @@ async function handlePlayPublish(args) {
|
|
|
17398
17398
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
17399
17399
|
};
|
|
17400
17400
|
if (options.jsonOutput) {
|
|
17401
|
-
|
|
17401
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, result3);
|
|
17402
17402
|
} else {
|
|
17403
17403
|
console.error(result3.message);
|
|
17404
17404
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -17421,7 +17421,7 @@ async function handlePlayPublish(args) {
|
|
|
17421
17421
|
};
|
|
17422
17422
|
if (options.dryRun) {
|
|
17423
17423
|
if (options.jsonOutput) {
|
|
17424
|
-
|
|
17424
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, dryRun);
|
|
17425
17425
|
} else {
|
|
17426
17426
|
console.log(`Dry run: ${rootPlayName}`);
|
|
17427
17427
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17489,7 +17489,7 @@ async function handlePlayPublish(args) {
|
|
|
17489
17489
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
17490
17490
|
};
|
|
17491
17491
|
if (options.jsonOutput) {
|
|
17492
|
-
|
|
17492
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, result2);
|
|
17493
17493
|
} else {
|
|
17494
17494
|
printPublishReceipt({
|
|
17495
17495
|
name: rootPlayName,
|
|
@@ -17520,7 +17520,7 @@ async function handlePlayPublish(args) {
|
|
|
17520
17520
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
17521
17521
|
latest: useLatest
|
|
17522
17522
|
};
|
|
17523
|
-
|
|
17523
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, result2);
|
|
17524
17524
|
return 0;
|
|
17525
17525
|
}
|
|
17526
17526
|
const resolvedName = parseReferencedPlayTarget3(playName).playName;
|
|
@@ -17544,7 +17544,7 @@ async function handlePlayPublish(args) {
|
|
|
17544
17544
|
revisionId ? { revisionId } : {}
|
|
17545
17545
|
);
|
|
17546
17546
|
if (options.jsonOutput) {
|
|
17547
|
-
|
|
17547
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, result);
|
|
17548
17548
|
} else {
|
|
17549
17549
|
printPublishReceipt({
|
|
17550
17550
|
name: result.name,
|
|
@@ -17584,7 +17584,7 @@ async function handlePlayDelete(args) {
|
|
|
17584
17584
|
);
|
|
17585
17585
|
return 2;
|
|
17586
17586
|
}
|
|
17587
|
-
const client = new (0,
|
|
17587
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
17588
17588
|
let detail;
|
|
17589
17589
|
try {
|
|
17590
17590
|
detail = await client.getPlay(parseReferencedPlayTarget3(playName).playName);
|
|
@@ -17608,8 +17608,8 @@ async function handlePlayDelete(args) {
|
|
|
17608
17608
|
name: resolvedName,
|
|
17609
17609
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
17610
17610
|
};
|
|
17611
|
-
if (
|
|
17612
|
-
|
|
17611
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
17612
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, result2);
|
|
17613
17613
|
} else {
|
|
17614
17614
|
process.stdout.write(
|
|
17615
17615
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -17619,8 +17619,8 @@ async function handlePlayDelete(args) {
|
|
|
17619
17619
|
return 0;
|
|
17620
17620
|
}
|
|
17621
17621
|
const result = await client.deletePlay(resolvedName);
|
|
17622
|
-
if (
|
|
17623
|
-
|
|
17622
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
17623
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, result);
|
|
17624
17624
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
17625
17625
|
}
|
|
17626
17626
|
if (result.alreadyArchived) {
|
|
@@ -17659,13 +17659,13 @@ async function handlePlayRestore(args) {
|
|
|
17659
17659
|
);
|
|
17660
17660
|
return 2;
|
|
17661
17661
|
}
|
|
17662
|
-
const client = new (0,
|
|
17662
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
17663
17663
|
try {
|
|
17664
17664
|
const result = await client.restorePlay(
|
|
17665
17665
|
parseReferencedPlayTarget3(playName).playName
|
|
17666
17666
|
);
|
|
17667
|
-
if (
|
|
17668
|
-
|
|
17667
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
17668
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, result);
|
|
17669
17669
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
17670
17670
|
}
|
|
17671
17671
|
if (result.alreadyActive) {
|
|
@@ -17772,7 +17772,7 @@ Examples:
|
|
|
17772
17772
|
).action(async (target, options) => {
|
|
17773
17773
|
process.exitCode = await handlePlayCheck([
|
|
17774
17774
|
target,
|
|
17775
|
-
...
|
|
17775
|
+
..._chunkT5TGWH4Jjs.jsonFieldArgs.call(void 0, options.json),
|
|
17776
17776
|
...options.full ? ["--full"] : []
|
|
17777
17777
|
]);
|
|
17778
17778
|
});
|
|
@@ -18001,9 +18001,9 @@ Examples:
|
|
|
18001
18001
|
const limit = Number(options.historyLimit);
|
|
18002
18002
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
18003
18003
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
18004
|
-
const client = new (0,
|
|
18004
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
18005
18005
|
if (options.binding) {
|
|
18006
|
-
|
|
18006
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0,
|
|
18007
18007
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
18008
18008
|
);
|
|
18009
18009
|
return;
|
|
@@ -18011,7 +18011,7 @@ Examples:
|
|
|
18011
18011
|
const result = await client.listPlayTriggerInventory({
|
|
18012
18012
|
cursor: options.cursor
|
|
18013
18013
|
});
|
|
18014
|
-
|
|
18014
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, {
|
|
18015
18015
|
...result,
|
|
18016
18016
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
|
|
18017
18017
|
});
|
|
@@ -18058,7 +18058,7 @@ Examples:
|
|
|
18058
18058
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
18059
18059
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
18060
18060
|
}
|
|
18061
|
-
const result = await new (0,
|
|
18061
|
+
const result = await new (0, _chunkXON4H3COjs.DeeplineClient)().getPlaysActivity({
|
|
18062
18062
|
timeZone: options.timeZone,
|
|
18063
18063
|
days,
|
|
18064
18064
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -18072,7 +18072,7 @@ Examples:
|
|
|
18072
18072
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
18073
18073
|
);
|
|
18074
18074
|
}
|
|
18075
|
-
|
|
18075
|
+
_chunkT5TGWH4Jjs.printCommandEnvelope.call(void 0,
|
|
18076
18076
|
{ ...result },
|
|
18077
18077
|
{
|
|
18078
18078
|
json: options.json || !process.stdout.isTTY,
|
|
@@ -18101,7 +18101,7 @@ Examples:
|
|
|
18101
18101
|
false
|
|
18102
18102
|
);
|
|
18103
18103
|
});
|
|
18104
|
-
|
|
18104
|
+
_chunkERPCUHOQjs.registerDeprecatedSearchCommand.call(void 0,
|
|
18105
18105
|
play,
|
|
18106
18106
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
18107
18107
|
);
|
|
@@ -18145,7 +18145,7 @@ Examples:
|
|
|
18145
18145
|
);
|
|
18146
18146
|
_chunkAFNEQ43Jjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
18147
18147
|
async (target, options) => {
|
|
18148
|
-
const ownView = () => handlePlayDescribe(
|
|
18148
|
+
const ownView = () => handlePlayDescribe(_chunkT5TGWH4Jjs.describeArgs.call(void 0, target, options));
|
|
18149
18149
|
const [flagText] = [options.json].filter(
|
|
18150
18150
|
(value) => typeof value === "string"
|
|
18151
18151
|
);
|
|
@@ -18156,7 +18156,7 @@ Examples:
|
|
|
18156
18156
|
process.exitCode = await ownView();
|
|
18157
18157
|
return;
|
|
18158
18158
|
}
|
|
18159
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
18159
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-YJFDN54P.js")));
|
|
18160
18160
|
process.exitCode = await describeAnything(
|
|
18161
18161
|
name,
|
|
18162
18162
|
{
|
|
@@ -18273,7 +18273,7 @@ Examples:
|
|
|
18273
18273
|
deepline plays deployments <deployment-id>
|
|
18274
18274
|
`
|
|
18275
18275
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
|
|
18276
|
-
async (id, options) => id ?
|
|
18276
|
+
async (id, options) => id ? _chunkGOH5BRGNjs.handleDeploymentGet.call(void 0, id, options) : _chunkGOH5BRGNjs.handleDeploymentsList.call(void 0, options)
|
|
18277
18277
|
);
|
|
18278
18278
|
addPublishHelp(
|
|
18279
18279
|
play.command("publish <target>").description(
|
|
@@ -18453,7 +18453,7 @@ Examples:
|
|
|
18453
18453
|
).action(async (runId, options) => {
|
|
18454
18454
|
process.exitCode = await handleRunGet([
|
|
18455
18455
|
runId,
|
|
18456
|
-
...
|
|
18456
|
+
..._chunkT5TGWH4Jjs.jsonFieldArgs.call(void 0, options.json),
|
|
18457
18457
|
...options.full ? ["--full"] : [],
|
|
18458
18458
|
...options.input ? ["--input"] : [],
|
|
18459
18459
|
...options.config ? ["--config"] : [],
|
|
@@ -18726,7 +18726,7 @@ Examples:
|
|
|
18726
18726
|
...options.metadataOut ? ["--metadata-out", options.metadataOut] : [],
|
|
18727
18727
|
...options.wait ? ["--wait"] : [],
|
|
18728
18728
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
18729
|
-
...
|
|
18729
|
+
..._chunkT5TGWH4Jjs.jsonFieldArgs.call(void 0, options.json)
|
|
18730
18730
|
]);
|
|
18731
18731
|
});
|
|
18732
18732
|
const share = play.command("share").description(
|
|
@@ -18892,10 +18892,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18892
18892
|
return 2;
|
|
18893
18893
|
}
|
|
18894
18894
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
18895
|
-
const status = await new (0,
|
|
18895
|
+
const status = await new (0, _chunkXON4H3COjs.DeeplineClient)().getSharePage(name);
|
|
18896
18896
|
const outputStatus = shareStatusForOutput(status);
|
|
18897
|
-
if (
|
|
18898
|
-
|
|
18897
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
18898
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, outputStatus);
|
|
18899
18899
|
return 0;
|
|
18900
18900
|
}
|
|
18901
18901
|
if (!outputStatus.share) {
|
|
@@ -18934,7 +18934,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18934
18934
|
return 2;
|
|
18935
18935
|
}
|
|
18936
18936
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
18937
|
-
const client = new (0,
|
|
18937
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
18938
18938
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18939
18939
|
let resolvedVersion;
|
|
18940
18940
|
if (!revisionId) {
|
|
@@ -18965,8 +18965,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18965
18965
|
);
|
|
18966
18966
|
if (!hasCompleted) {
|
|
18967
18967
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18968
|
-
if (
|
|
18969
|
-
|
|
18968
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
18969
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, {
|
|
18970
18970
|
ok: false,
|
|
18971
18971
|
code: "NO_SUCCESSFUL_RUN",
|
|
18972
18972
|
message,
|
|
@@ -18990,8 +18990,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18990
18990
|
};
|
|
18991
18991
|
if (args.includes("--dry-run")) {
|
|
18992
18992
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
18993
|
-
if (
|
|
18994
|
-
|
|
18993
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
18994
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, plan);
|
|
18995
18995
|
} else {
|
|
18996
18996
|
console.log(
|
|
18997
18997
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -19001,8 +19001,8 @@ async function handlePlaySharePublish(args) {
|
|
|
19001
19001
|
}
|
|
19002
19002
|
const status = await client.publishSharePage(name, request);
|
|
19003
19003
|
const outputStatus = shareStatusForOutput(status);
|
|
19004
|
-
if (
|
|
19005
|
-
|
|
19004
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
19005
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, outputStatus);
|
|
19006
19006
|
return 0;
|
|
19007
19007
|
}
|
|
19008
19008
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -19033,9 +19033,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
19033
19033
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
19034
19034
|
...seoIndexing ? { seoIndexing } : {}
|
|
19035
19035
|
};
|
|
19036
|
-
const status = await new (0,
|
|
19037
|
-
if (
|
|
19038
|
-
|
|
19036
|
+
const status = await new (0, _chunkXON4H3COjs.DeeplineClient)().updateSharePage(name, request);
|
|
19037
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
19038
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, status);
|
|
19039
19039
|
return 0;
|
|
19040
19040
|
}
|
|
19041
19041
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -19050,7 +19050,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
19050
19050
|
return 2;
|
|
19051
19051
|
}
|
|
19052
19052
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
19053
|
-
const client = new (0,
|
|
19053
|
+
const client = new (0, _chunkXON4H3COjs.DeeplineClient)();
|
|
19054
19054
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
19055
19055
|
const versionFlag = shareFlagValue(args, "--version");
|
|
19056
19056
|
if (!revisionId && versionFlag) {
|
|
@@ -19067,8 +19067,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
19067
19067
|
revisionId ? { revisionId } : {}
|
|
19068
19068
|
);
|
|
19069
19069
|
const outputStatus = shareStatusForOutput(status);
|
|
19070
|
-
if (
|
|
19071
|
-
|
|
19070
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
19071
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, outputStatus);
|
|
19072
19072
|
return 0;
|
|
19073
19073
|
}
|
|
19074
19074
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -19093,9 +19093,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
19093
19093
|
return 2;
|
|
19094
19094
|
}
|
|
19095
19095
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
19096
|
-
const status = await new (0,
|
|
19097
|
-
if (
|
|
19098
|
-
|
|
19096
|
+
const status = await new (0, _chunkXON4H3COjs.DeeplineClient)().unpublishSharePage(name);
|
|
19097
|
+
if (_chunkT5TGWH4Jjs.argsWantJson.call(void 0, args)) {
|
|
19098
|
+
_chunkT5TGWH4Jjs.printCompactJson.call(void 0, status);
|
|
19099
19099
|
return 0;
|
|
19100
19100
|
}
|
|
19101
19101
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|