deepline 0.3.323 → 0.3.325
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +454 -129
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +407 -37
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +18 -4
- package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +16 -1
- package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +6 -2
- package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/gradient2-concurrency-controller.ts +15 -5
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-capacity-policy.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-concurrency-policy.ts +7 -2
- package/dist/bundling-sources/shared_libs/play-runtime/provider-row-retry-queue.ts +65 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +34 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-map-row-feed.ts +116 -15
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +59 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +294 -37
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +73 -0
- package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +41 -3
- package/dist/bundling-sources/shared_libs/plays/artifact-types.ts +9 -0
- package/dist/cli/{auth-4TYSEEPE.mjs → auth-PIZESRPC.mjs} +4 -4
- package/dist/cli/auth-RXCD4GOV.js +31 -0
- package/dist/cli/{billing-HYX3OWXB.js → billing-DQKFCQV5.js} +70 -70
- package/dist/cli/{billing-QDER3JLM.mjs → billing-HSL6VTCM.mjs} +4 -4
- package/dist/cli/{chunk-VN433ENM.mjs → chunk-5FHU7TV4.mjs} +2 -2
- package/dist/cli/{chunk-ZF6WOSMW.mjs → chunk-5TYU3UIS.mjs} +1 -1
- package/dist/cli/{chunk-YY6EASRE.mjs → chunk-6RMKHN7S.mjs} +4 -4
- package/dist/cli/{chunk-CXJND6CJ.mjs → chunk-6VZDSBK6.mjs} +2 -2
- package/dist/cli/{chunk-JGTV5QNG.mjs → chunk-7MD453WV.mjs} +6 -6
- package/dist/cli/{chunk-3OTHDXTV.mjs → chunk-AQUNQJ5Y.mjs} +1 -1
- package/dist/cli/{chunk-FNKBVKQX.js → chunk-CV5GDCKN.js} +15 -15
- package/dist/cli/{chunk-WOG5IKUF.js → chunk-DLW7X2UK.js} +220 -220
- package/dist/cli/{chunk-BC3E7GEW.mjs → chunk-H5TJBRSC.mjs} +5 -5
- package/dist/cli/{chunk-LXUY7LRE.js → chunk-HPTQEWCF.js} +60 -60
- package/dist/cli/{chunk-GUPKB4UE.js → chunk-HUKWYHBG.js} +2 -2
- package/dist/cli/{chunk-BEG62AQW.js → chunk-K7FC5IUU.js} +1 -1
- package/dist/cli/{chunk-I7TAO4XH.js → chunk-KZNFYOHX.js} +6 -6
- package/dist/cli/{chunk-UMUH2FVZ.js → chunk-MNKDSR2J.js} +6 -6
- package/dist/cli/{chunk-UE55ECMI.mjs → chunk-NWBARG3F.mjs} +1 -1
- package/dist/cli/{chunk-KLIHE4X5.js → chunk-OOPSX57I.js} +6 -6
- package/dist/cli/{chunk-3I4KDUKY.mjs → chunk-OPERWJR6.mjs} +3 -3
- package/dist/cli/{chunk-HUQVA5MR.js → chunk-PBNZXZCW.js} +48 -48
- package/dist/cli/{chunk-HSZD4VBE.js → chunk-PVDQ55PS.js} +4 -4
- package/dist/cli/{chunk-HJN5KR42.mjs → chunk-PWV2M4LW.mjs} +1 -1
- package/dist/cli/{chunk-M2WAAIM4.js → chunk-QQ2FG5W3.js} +6 -6
- package/dist/cli/{chunk-OQPG3ND3.js → chunk-UYFWTIKF.js} +26 -26
- package/dist/cli/{chunk-2HYJDTQT.mjs → chunk-WW4XZIVM.mjs} +2 -2
- package/dist/cli/{chunk-FGD2M25K.mjs → chunk-XIVUB36F.mjs} +1 -1
- package/dist/cli/{chunk-W2V624T6.mjs → chunk-YE3O2UHM.mjs} +1 -1
- package/dist/cli/{chunk-EWFKMQFO.js → chunk-YXRPWMGN.js} +50 -50
- package/dist/cli/client-562MULXK.js +20 -0
- package/dist/cli/{client-CEX7EHUM.mjs → client-57SR4KVM.mjs} +3 -3
- package/dist/cli/{csv-GBPRJ6YU.js → csv-5DJSC6BD.js} +12 -12
- package/dist/cli/{csv-LR5KWOIK.mjs → csv-G2FRMOXL.mjs} +3 -3
- package/dist/cli/{db-VFKXAHQA.js → db-NVO7P4VO.js} +20 -20
- package/dist/cli/{db-4BMCUU34.mjs → db-WWZEXM3N.mjs} +4 -4
- package/dist/cli/{describe-VTLU5KX5.mjs → describe-26OMF3A4.mjs} +8 -8
- package/dist/cli/{describe-BYWGWALB.js → describe-M26LHDBQ.js} +15 -15
- package/dist/cli/{executions-NGREVSY6.mjs → executions-2LLHY3IL.mjs} +4 -4
- package/dist/cli/{executions-DU7I6YEU.js → executions-KI47LPKE.js} +6 -6
- package/dist/cli/{feedback-PHPAWVHC.js → feedback-2Y26C2BZ.js} +6 -6
- package/dist/cli/{feedback-GUY2CCGF.mjs → feedback-O26VL2OF.mjs} +3 -3
- package/dist/cli/git-KGPX5YPD.js +23 -0
- package/dist/cli/{git-22YV3DFJ.mjs → git-UVPGZN3K.mjs} +4 -4
- package/dist/cli/index.js +75 -75
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-V72GCF5R.js → legacy-noops-H6Y3SEVB.js} +7 -7
- package/dist/cli/{legacy-noops-YEQDVI6U.mjs → legacy-noops-IK5CH72U.mjs} +4 -4
- package/dist/cli/{monitors-MVJBQDQG.js → monitors-JL6TTQCI.js} +85 -85
- package/dist/cli/{monitors-QOCAMBRV.mjs → monitors-SFVVMAJT.mjs} +4 -4
- package/dist/cli/{org-DMIOMJK6.js → org-OVMAZCQS.js} +60 -60
- package/dist/cli/{org-A53XV2UQ.mjs → org-SSDONL57.mjs} +4 -4
- package/dist/cli/play-3DB4MSHN.js +152 -0
- package/dist/cli/{play-73L74CUW.mjs → play-X6NPACUO.mjs} +7 -7
- package/dist/cli/{providers-PEOAZYM6.js → providers-E24JDWSR.js} +7 -7
- package/dist/cli/{providers-6LDD5X5G.mjs → providers-ONUBYYY4.mjs} +4 -4
- package/dist/cli/{quickstart-PXMC66UG.mjs → quickstart-B7NIXACV.mjs} +3 -3
- package/dist/cli/{quickstart-33IPDK2I.js → quickstart-TB7C3DLG.js} +5 -5
- package/dist/cli/{search-FJEJDKPA.mjs → search-N3QUIATW.mjs} +5 -5
- package/dist/cli/search-NJ637YGQ.js +26 -0
- package/dist/cli/{secrets-3SCAG3T7.js → secrets-CPCVFDYB.js} +13 -13
- package/dist/cli/{secrets-Q3ZWHE5S.mjs → secrets-V7Z4M67T.mjs} +4 -4
- package/dist/cli/{sessions-QJB4LSNZ.js → sessions-E4FIZLQP.js} +5 -5
- package/dist/cli/{sessions-RY3SCVN7.mjs → sessions-PDOBKAKO.mjs} +4 -4
- package/dist/cli/{settings-VTYJKMI6.mjs → settings-QYHYHZDI.mjs} +7 -7
- package/dist/cli/{settings-DLAE6POM.js → settings-UVM2WDE4.js} +74 -74
- package/dist/cli/{setup-LM2VWSFE.js → setup-3JFAXQLJ.js} +41 -41
- package/dist/cli/{setup-UYQ4V4GP.mjs → setup-4RLAETDW.mjs} +6 -6
- package/dist/cli/skills-BYRYG64R.js +28 -0
- package/dist/cli/{skills-2OKHLQF7.mjs → skills-ZX2JSWOZ.mjs} +4 -4
- package/dist/cli/{tools-F5RYANCG.mjs → tools-EGXCVIPJ.mjs} +6 -6
- package/dist/cli/tools-TAWOAY5X.js +38 -0
- package/dist/cli/{update-5FDHGSNE.mjs → update-7FEKRQFE.mjs} +6 -6
- package/dist/cli/update-H24GEBXM.js +28 -0
- package/dist/cli/{workflow-EQMKPCUV.js → workflow-54VCKIG2.js} +15 -15
- package/dist/cli/{workflow-TWQH53ZO.mjs → workflow-7V7TTTKK.mjs} +5 -5
- package/dist/{client-BV68GMPo.d.ts → client-Bb4Jjzmj.d.ts} +7 -1
- package/dist/{client-D9ACjiRC.d.mts → client-COa-3GHK.d.mts} +7 -1
- package/dist/{compiler-manifest-BXcZ4P4W.d.mts → compiler-manifest-CsnWj-AK.d.mts} +6 -0
- package/dist/{compiler-manifest-BXcZ4P4W.d.ts → compiler-manifest-CsnWj-AK.d.ts} +6 -0
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +79 -78
- package/dist/plays/bundle-play-file.d.mts +2 -2
- package/dist/plays/bundle-play-file.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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-KWPQ4JVV.js +0 -31
- package/dist/cli/client-YMQ2QFV7.js +0 -20
- package/dist/cli/git-W5NEI2BP.js +0 -23
- package/dist/cli/play-NBFCGFVC.js +0 -152
- package/dist/cli/search-FPUK2H6Y.js +0 -26
- package/dist/cli/skills-5NH6JX5H.js +0 -28
- package/dist/cli/tools-ZPGDY3I2.js +0 -38
- package/dist/cli/update-W5KBXMKC.js +0 -28
|
@@ -7,11 +7,11 @@ var _chunkXNL3SEMCjs = require('./chunk-XNL3SEMC.js');
|
|
|
7
7
|
var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkKZNFYOHXjs = require('./chunk-KZNFYOHX.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkUYFWTIKFjs = require('./chunk-UYFWTIKF.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -34,7 +34,7 @@ var _chunkSDK3ZA2Cjs = require('./chunk-SDK3ZA2C.js');
|
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
var
|
|
37
|
+
var _chunkMNKDSR2Jjs = require('./chunk-MNKDSR2J.js');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
@@ -66,10 +66,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
|
|
69
|
-
var
|
|
69
|
+
var _chunkQQ2FG5W3js = require('./chunk-QQ2FG5W3.js');
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
var
|
|
72
|
+
var _chunkPVDQ55PSjs = require('./chunk-PVDQ55PS.js');
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
@@ -2061,7 +2061,7 @@ function resolveField(key, command) {
|
|
|
2061
2061
|
function printSettings(result, json, name) {
|
|
2062
2062
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2063
2063
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2064
|
-
|
|
2064
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
2065
2065
|
{
|
|
2066
2066
|
...result,
|
|
2067
2067
|
settings: Object.fromEntries(
|
|
@@ -2105,7 +2105,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2105
2105
|
valueSyntax: field.cli.valueSyntax,
|
|
2106
2106
|
examples: field.cli.examples
|
|
2107
2107
|
}));
|
|
2108
|
-
|
|
2108
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
2109
2109
|
{
|
|
2110
2110
|
fields: descriptions,
|
|
2111
2111
|
render: {
|
|
@@ -2130,7 +2130,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2130
2130
|
async (options, command) => {
|
|
2131
2131
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2132
2132
|
printSettings(
|
|
2133
|
-
await new (0,
|
|
2133
|
+
await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2134
2134
|
options.json,
|
|
2135
2135
|
options.name
|
|
2136
2136
|
);
|
|
@@ -2161,7 +2161,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2161
2161
|
);
|
|
2162
2162
|
}
|
|
2163
2163
|
if (options.dryRun) {
|
|
2164
|
-
|
|
2164
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
2165
2165
|
{
|
|
2166
2166
|
dryRun: true,
|
|
2167
2167
|
play,
|
|
@@ -2182,7 +2182,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2182
2182
|
return;
|
|
2183
2183
|
}
|
|
2184
2184
|
printSettings(
|
|
2185
|
-
await new (0,
|
|
2185
|
+
await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2186
2186
|
options.json
|
|
2187
2187
|
);
|
|
2188
2188
|
};
|
|
@@ -2208,13 +2208,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2208
2208
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2209
2209
|
{ exitCode: 2 }
|
|
2210
2210
|
);
|
|
2211
|
-
const page = await new (0,
|
|
2211
|
+
const page = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2212
2212
|
root: options.root,
|
|
2213
2213
|
limit,
|
|
2214
2214
|
cursor: options.cursor
|
|
2215
2215
|
});
|
|
2216
2216
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""} --json` : null;
|
|
2217
|
-
|
|
2217
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
2218
2218
|
{
|
|
2219
2219
|
...page,
|
|
2220
2220
|
nextCommand,
|
|
@@ -2265,7 +2265,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2265
2265
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2266
2266
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2267
2267
|
};
|
|
2268
|
-
const client = new (0,
|
|
2268
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
2269
2269
|
const paths = [];
|
|
2270
2270
|
let cursor;
|
|
2271
2271
|
do {
|
|
@@ -2327,7 +2327,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2327
2327
|
moved.push(move.playName);
|
|
2328
2328
|
}
|
|
2329
2329
|
}
|
|
2330
|
-
|
|
2330
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
2331
2331
|
{
|
|
2332
2332
|
dryRun: Boolean(options.dryRun),
|
|
2333
2333
|
from: options.from,
|
|
@@ -2455,7 +2455,7 @@ function triggerLines(view) {
|
|
|
2455
2455
|
return lines;
|
|
2456
2456
|
}
|
|
2457
2457
|
function printView(view, json) {
|
|
2458
|
-
|
|
2458
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
2459
2459
|
{
|
|
2460
2460
|
...view,
|
|
2461
2461
|
render: {
|
|
@@ -2468,7 +2468,7 @@ function printView(view, json) {
|
|
|
2468
2468
|
);
|
|
2469
2469
|
}
|
|
2470
2470
|
function printResult(result, json) {
|
|
2471
|
-
|
|
2471
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
2472
2472
|
{
|
|
2473
2473
|
...result,
|
|
2474
2474
|
render: {
|
|
@@ -2498,7 +2498,7 @@ async function mutate(command, options, build) {
|
|
|
2498
2498
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2499
2499
|
}
|
|
2500
2500
|
if (options.dryRun) {
|
|
2501
|
-
|
|
2501
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
2502
2502
|
{
|
|
2503
2503
|
dryRun: true,
|
|
2504
2504
|
play: options.play,
|
|
@@ -2517,7 +2517,7 @@ async function mutate(command, options, build) {
|
|
|
2517
2517
|
return;
|
|
2518
2518
|
}
|
|
2519
2519
|
printResult(
|
|
2520
|
-
await new (0,
|
|
2520
|
+
await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2521
2521
|
options.json
|
|
2522
2522
|
);
|
|
2523
2523
|
}
|
|
@@ -2550,7 +2550,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2550
2550
|
}).addHelpText("after", help2);
|
|
2551
2551
|
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) => {
|
|
2552
2552
|
printView(
|
|
2553
|
-
await new (0,
|
|
2553
|
+
await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2554
2554
|
options.json
|
|
2555
2555
|
);
|
|
2556
2556
|
});
|
|
@@ -2594,7 +2594,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2594
2594
|
if (options.auth === void 0) {
|
|
2595
2595
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2596
2596
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2597
|
-
const current = await new (0,
|
|
2597
|
+
const current = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2598
2598
|
options.play
|
|
2599
2599
|
);
|
|
2600
2600
|
return {
|
|
@@ -2671,7 +2671,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2671
2671
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2672
2672
|
"runtime.event": "Other event."
|
|
2673
2673
|
};
|
|
2674
|
-
var RUN_LOGS_KIND_HELP =
|
|
2674
|
+
var RUN_LOGS_KIND_HELP = _chunkMNKDSR2Jjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2675
2675
|
kind,
|
|
2676
2676
|
description: KIND_DESCRIPTIONS[kind]
|
|
2677
2677
|
}));
|
|
@@ -2808,9 +2808,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2808
2808
|
const args = program.args;
|
|
2809
2809
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2810
2810
|
error.exitCode = 2;
|
|
2811
|
-
if (
|
|
2812
|
-
|
|
2813
|
-
Object.assign(new (0,
|
|
2811
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2812
|
+
_chunkQQ2FG5W3js.printJsonError.call(void 0,
|
|
2813
|
+
Object.assign(new (0, _chunkMNKDSR2Jjs.RunEventQueryInputError)(error.message), {
|
|
2814
2814
|
exitCode: 2,
|
|
2815
2815
|
retryable: false
|
|
2816
2816
|
})
|
|
@@ -2854,14 +2854,14 @@ function parseQuery(args, resource) {
|
|
|
2854
2854
|
if (VALUE_FLAGS.has(flag)) {
|
|
2855
2855
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2856
2856
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2857
|
-
throw new (0,
|
|
2857
|
+
throw new (0, _chunkMNKDSR2Jjs.RunEventQueryInputError)(
|
|
2858
2858
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2859
2859
|
);
|
|
2860
2860
|
}
|
|
2861
2861
|
if (flag === "--sum") sums.push(value);
|
|
2862
2862
|
else {
|
|
2863
2863
|
if (values[flag] !== void 0) {
|
|
2864
|
-
throw new (0,
|
|
2864
|
+
throw new (0, _chunkMNKDSR2Jjs.RunEventQueryInputError)(
|
|
2865
2865
|
`${flag} may only be supplied once.`
|
|
2866
2866
|
);
|
|
2867
2867
|
}
|
|
@@ -2875,12 +2875,12 @@ function parseQuery(args, resource) {
|
|
|
2875
2875
|
}
|
|
2876
2876
|
if (arg.startsWith("-")) {
|
|
2877
2877
|
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.";
|
|
2878
|
-
throw new (0,
|
|
2878
|
+
throw new (0, _chunkMNKDSR2Jjs.RunEventQueryInputError)(
|
|
2879
2879
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2880
2880
|
);
|
|
2881
2881
|
}
|
|
2882
2882
|
if (runId !== void 0) {
|
|
2883
|
-
throw new (0,
|
|
2883
|
+
throw new (0, _chunkMNKDSR2Jjs.RunEventQueryInputError)(
|
|
2884
2884
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2885
2885
|
);
|
|
2886
2886
|
}
|
|
@@ -2888,7 +2888,7 @@ function parseQuery(args, resource) {
|
|
|
2888
2888
|
}
|
|
2889
2889
|
if (switches.has("--fields")) {
|
|
2890
2890
|
if (runId !== void 0) {
|
|
2891
|
-
throw new (0,
|
|
2891
|
+
throw new (0, _chunkMNKDSR2Jjs.RunEventQueryInputError)(
|
|
2892
2892
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2893
2893
|
);
|
|
2894
2894
|
}
|
|
@@ -2901,18 +2901,18 @@ function parseQuery(args, resource) {
|
|
|
2901
2901
|
)
|
|
2902
2902
|
];
|
|
2903
2903
|
if (incompatible.length) {
|
|
2904
|
-
throw new (0,
|
|
2904
|
+
throw new (0, _chunkMNKDSR2Jjs.RunEventQueryInputError)(
|
|
2905
2905
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2906
2906
|
);
|
|
2907
2907
|
}
|
|
2908
2908
|
}
|
|
2909
2909
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2910
|
-
throw new (0,
|
|
2910
|
+
throw new (0, _chunkMNKDSR2Jjs.RunEventQueryInputError)(
|
|
2911
2911
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2912
2912
|
);
|
|
2913
2913
|
}
|
|
2914
2914
|
if (sums.length && switches.has("--count")) {
|
|
2915
|
-
throw new (0,
|
|
2915
|
+
throw new (0, _chunkMNKDSR2Jjs.RunEventQueryInputError)(
|
|
2916
2916
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2917
2917
|
);
|
|
2918
2918
|
}
|
|
@@ -2920,7 +2920,7 @@ function parseQuery(args, resource) {
|
|
|
2920
2920
|
if (operation === "count") {
|
|
2921
2921
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2922
2922
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2923
|
-
throw new (0,
|
|
2923
|
+
throw new (0, _chunkMNKDSR2Jjs.RunEventQueryInputError)(
|
|
2924
2924
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2925
2925
|
);
|
|
2926
2926
|
}
|
|
@@ -2955,16 +2955,16 @@ function parseQuery(args, resource) {
|
|
|
2955
2955
|
];
|
|
2956
2956
|
}
|
|
2957
2957
|
}
|
|
2958
|
-
const request =
|
|
2958
|
+
const request = _chunkMNKDSR2Jjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2959
2959
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2960
2960
|
const backend = values["--runtime-backend"];
|
|
2961
2961
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2962
|
-
throw new (0,
|
|
2962
|
+
throw new (0, _chunkMNKDSR2Jjs.RunEventQueryInputError)(
|
|
2963
2963
|
"--runtime-backend must be daytona or modal."
|
|
2964
2964
|
);
|
|
2965
2965
|
}
|
|
2966
2966
|
if (backend && !namespace) {
|
|
2967
|
-
throw new (0,
|
|
2967
|
+
throw new (0, _chunkMNKDSR2Jjs.RunEventQueryInputError)(
|
|
2968
2968
|
"--runtime-backend requires --runtime-namespace."
|
|
2969
2969
|
);
|
|
2970
2970
|
}
|
|
@@ -3012,12 +3012,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3012
3012
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3013
3013
|
const record3 = failure;
|
|
3014
3014
|
const status = record3.statusCode;
|
|
3015
|
-
const exitCode = error instanceof
|
|
3015
|
+
const exitCode = error instanceof _chunkMNKDSR2Jjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3016
3016
|
const diagnostic = Object.assign(failure, {
|
|
3017
3017
|
exitCode,
|
|
3018
3018
|
retryable: exitCode === 5
|
|
3019
3019
|
});
|
|
3020
|
-
if (
|
|
3020
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) _chunkQQ2FG5W3js.printJsonError.call(void 0, diagnostic);
|
|
3021
3021
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3022
3022
|
return exitCode;
|
|
3023
3023
|
}
|
|
@@ -3032,7 +3032,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3032
3032
|
...criteria
|
|
3033
3033
|
} = request;
|
|
3034
3034
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3035
|
-
const client = new (0,
|
|
3035
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
3036
3036
|
let result;
|
|
3037
3037
|
if (request.operation === "fields") {
|
|
3038
3038
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3098,13 +3098,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3098
3098
|
lines.push(`Next page: ${nextPage}`);
|
|
3099
3099
|
}
|
|
3100
3100
|
}
|
|
3101
|
-
|
|
3101
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
3102
3102
|
{
|
|
3103
3103
|
...result,
|
|
3104
3104
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3105
3105
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3106
3106
|
},
|
|
3107
|
-
{ json:
|
|
3107
|
+
{ json: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3108
3108
|
` }
|
|
3109
3109
|
);
|
|
3110
3110
|
return 0;
|
|
@@ -3924,7 +3924,7 @@ function checkedRunExample(plays, target) {
|
|
|
3924
3924
|
const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
|
|
3925
3925
|
const base = `deepline plays run --file ${quote(target)}`;
|
|
3926
3926
|
return {
|
|
3927
|
-
command: `${base}${
|
|
3927
|
+
command: `${base}${_chunkMNKDSR2Jjs.playInputExampleArgs.call(void 0, schema)} --json`,
|
|
3928
3928
|
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."
|
|
3929
3929
|
};
|
|
3930
3930
|
}
|
|
@@ -5542,7 +5542,7 @@ async function runPlayBootstrap(args) {
|
|
|
5542
5542
|
return runMonitorBootstrap(args);
|
|
5543
5543
|
}
|
|
5544
5544
|
const options = parsePlayBootstrapOptions(args);
|
|
5545
|
-
const client = new (0,
|
|
5545
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
5546
5546
|
const contracts = await loadBootstrapContracts(client, options);
|
|
5547
5547
|
const csvContext = loadCsvContext(options.from);
|
|
5548
5548
|
const source = generateBootstrapPlaySource({
|
|
@@ -5697,7 +5697,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5697
5697
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
5698
5698
|
);
|
|
5699
5699
|
}
|
|
5700
|
-
const response = await new (0,
|
|
5700
|
+
const response = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
5701
5701
|
keys
|
|
5702
5702
|
});
|
|
5703
5703
|
const failed = response.receipts.filter(
|
|
@@ -5709,7 +5709,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5709
5709
|
JSON.stringify(response, null, 2) + "\n",
|
|
5710
5710
|
{ flag: "wx", mode: 384 }
|
|
5711
5711
|
);
|
|
5712
|
-
|
|
5712
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
5713
5713
|
{
|
|
5714
5714
|
runId,
|
|
5715
5715
|
out: options.out,
|
|
@@ -5719,7 +5719,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5719
5719
|
{ json: true }
|
|
5720
5720
|
);
|
|
5721
5721
|
} else {
|
|
5722
|
-
|
|
5722
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
5723
5723
|
}
|
|
5724
5724
|
if (failed)
|
|
5725
5725
|
process.exitCode = response.receipts.some(
|
|
@@ -5758,7 +5758,7 @@ includes nextCommand when another page is available.
|
|
|
5758
5758
|
{ exitCode: 2 }
|
|
5759
5759
|
);
|
|
5760
5760
|
}
|
|
5761
|
-
const page = await new (0,
|
|
5761
|
+
const page = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().runs.children(parentRunId, {
|
|
5762
5762
|
launchKey: options.launchKey,
|
|
5763
5763
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
5764
5764
|
limit
|
|
@@ -5774,7 +5774,7 @@ includes nextCommand when another page is available.
|
|
|
5774
5774
|
String(limit),
|
|
5775
5775
|
"--json"
|
|
5776
5776
|
].join(" ") : null;
|
|
5777
|
-
|
|
5777
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
5778
5778
|
{
|
|
5779
5779
|
parentRunId,
|
|
5780
5780
|
launchKey: options.launchKey,
|
|
@@ -5810,7 +5810,7 @@ async function handleRunsHistory(options) {
|
|
|
5810
5810
|
throw new Error("--limit must be a positive integer.");
|
|
5811
5811
|
}
|
|
5812
5812
|
}
|
|
5813
|
-
const page = await new (0,
|
|
5813
|
+
const page = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().runs.history({
|
|
5814
5814
|
cursor: options.cursor,
|
|
5815
5815
|
orgId: options.org,
|
|
5816
5816
|
search: options.search,
|
|
@@ -5826,7 +5826,7 @@ async function handleRunsHistory(options) {
|
|
|
5826
5826
|
);
|
|
5827
5827
|
}
|
|
5828
5828
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
5829
|
-
|
|
5829
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
5830
5830
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
5831
5831
|
options.json ? { json: true } : {}
|
|
5832
5832
|
);
|
|
@@ -6102,7 +6102,7 @@ function projectRunDatasetCell(value) {
|
|
|
6102
6102
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
6103
6103
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
6104
6104
|
if (typeof logicalValue === "object") {
|
|
6105
|
-
return
|
|
6105
|
+
return _chunkQQ2FG5W3js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
6106
6106
|
}
|
|
6107
6107
|
return logicalValue;
|
|
6108
6108
|
}
|
|
@@ -8910,7 +8910,7 @@ function renderOutcome(outcome) {
|
|
|
8910
8910
|
function printResult2(input) {
|
|
8911
8911
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
8912
8912
|
if (failed) process.exitCode = 1;
|
|
8913
|
-
|
|
8913
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
8914
8914
|
{
|
|
8915
8915
|
deployment: { ...input.deployment, status: input.status },
|
|
8916
8916
|
plays: input.outcomes,
|
|
@@ -8935,7 +8935,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
8935
8935
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
8936
8936
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
8937
8937
|
});
|
|
8938
|
-
const { http, config } =
|
|
8938
|
+
const { http, config } = _chunkQQ2FG5W3js.getAuthedHttpClient.call(void 0, );
|
|
8939
8939
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
8940
8940
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
8941
8941
|
deliveryId,
|
|
@@ -8962,7 +8962,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
8962
8962
|
},
|
|
8963
8963
|
{
|
|
8964
8964
|
bundle: bundleDeployPlayFile,
|
|
8965
|
-
fetchImpl:
|
|
8965
|
+
fetchImpl: _chunkPVDQ55PSjs.fetchWithDeploymentProtection,
|
|
8966
8966
|
// The plays are already here: "opening" the source is naming it.
|
|
8967
8967
|
openSource: async () => ({
|
|
8968
8968
|
open: async () => ({ repoRoot: root })
|
|
@@ -10062,7 +10062,7 @@ function playStatusErrorText(status) {
|
|
|
10062
10062
|
function isRetryablePendingStartFailure(status) {
|
|
10063
10063
|
if (status.status !== "failed") return false;
|
|
10064
10064
|
if (status.runId && status.runId !== "pending") return false;
|
|
10065
|
-
return
|
|
10065
|
+
return _chunkMNKDSR2Jjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
10066
10066
|
}
|
|
10067
10067
|
function pendingStartFailureStatus(input) {
|
|
10068
10068
|
const message = input.error instanceof Error ? input.error.message : String(input.error);
|
|
@@ -10089,13 +10089,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
|
10089
10089
|
var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
10090
10090
|
function watchSurfaceReaches(state, provenance, level) {
|
|
10091
10091
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
10092
|
-
if (!
|
|
10092
|
+
if (!_chunkMNKDSR2Jjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
10093
10093
|
return false;
|
|
10094
10094
|
}
|
|
10095
|
-
if (
|
|
10095
|
+
if (_chunkMNKDSR2Jjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
10096
10096
|
return true;
|
|
10097
10097
|
}
|
|
10098
|
-
return state.verbose === true &&
|
|
10098
|
+
return state.verbose === true && _chunkMNKDSR2Jjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
10099
10099
|
}
|
|
10100
10100
|
function getEventPayload(event) {
|
|
10101
10101
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -10597,7 +10597,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
|
|
|
10597
10597
|
}
|
|
10598
10598
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
10599
10599
|
if (open2 && dashboardUrl) {
|
|
10600
|
-
|
|
10600
|
+
_chunkQQ2FG5W3js.openInBrowser.call(void 0, dashboardUrl);
|
|
10601
10601
|
}
|
|
10602
10602
|
}
|
|
10603
10603
|
function printPlayLogLines(input) {
|
|
@@ -10659,7 +10659,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
10659
10659
|
billing: false
|
|
10660
10660
|
});
|
|
10661
10661
|
} catch (error) {
|
|
10662
|
-
if (
|
|
10662
|
+
if (_chunkMNKDSR2Jjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
10663
10663
|
return null;
|
|
10664
10664
|
}
|
|
10665
10665
|
throw error;
|
|
@@ -10848,7 +10848,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10848
10848
|
billing: false
|
|
10849
10849
|
});
|
|
10850
10850
|
} catch (error) {
|
|
10851
|
-
if (
|
|
10851
|
+
if (_chunkMNKDSR2Jjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
10852
10852
|
return null;
|
|
10853
10853
|
}
|
|
10854
10854
|
throw error;
|
|
@@ -11056,7 +11056,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11056
11056
|
lastPhase
|
|
11057
11057
|
});
|
|
11058
11058
|
}
|
|
11059
|
-
if (lastKnownWorkflowId &&
|
|
11059
|
+
if (lastKnownWorkflowId && _chunkMNKDSR2Jjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11060
11060
|
if (timeout) {
|
|
11061
11061
|
clearTimeout(timeout);
|
|
11062
11062
|
}
|
|
@@ -11092,7 +11092,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11092
11092
|
onRunAdmitted: confirmAdmission
|
|
11093
11093
|
});
|
|
11094
11094
|
}
|
|
11095
|
-
if (!lastKnownWorkflowId &&
|
|
11095
|
+
if (!lastKnownWorkflowId && _chunkMNKDSR2Jjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11096
11096
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
11097
11097
|
phase: "cli.play_start_stream_transient_failure",
|
|
11098
11098
|
ms: Date.now() - startedAt,
|
|
@@ -11191,7 +11191,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
11191
11191
|
"logs"
|
|
11192
11192
|
]);
|
|
11193
11193
|
function formatPlayLogLine(rawLine, state) {
|
|
11194
|
-
const classified =
|
|
11194
|
+
const classified = _chunkMNKDSR2Jjs.classifyLogLine.call(void 0, rawLine);
|
|
11195
11195
|
const line = classified.line;
|
|
11196
11196
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
11197
11197
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _345 => _345[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -11206,14 +11206,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11206
11206
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
11207
11207
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
11208
11208
|
if (providerWait && !state.verbose) {
|
|
11209
|
-
return
|
|
11209
|
+
return _chunkMNKDSR2Jjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
11210
11210
|
}
|
|
11211
11211
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
11212
11212
|
if (mapProgress && !state.verbose) {
|
|
11213
|
-
return
|
|
11213
|
+
return _chunkMNKDSR2Jjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
11214
11214
|
}
|
|
11215
11215
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
11216
|
-
if (!
|
|
11216
|
+
if (!_chunkMNKDSR2Jjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11217
11217
|
return null;
|
|
11218
11218
|
}
|
|
11219
11219
|
if (state.emittedRunnerStarted) {
|
|
@@ -11226,7 +11226,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11226
11226
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
11227
11227
|
);
|
|
11228
11228
|
if (mapStart) {
|
|
11229
|
-
if (!
|
|
11229
|
+
if (!_chunkMNKDSR2Jjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11230
11230
|
return null;
|
|
11231
11231
|
}
|
|
11232
11232
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -11236,7 +11236,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11236
11236
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
11237
11237
|
);
|
|
11238
11238
|
if (mapDone) {
|
|
11239
|
-
if (!
|
|
11239
|
+
if (!_chunkMNKDSR2Jjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11240
11240
|
return null;
|
|
11241
11241
|
}
|
|
11242
11242
|
const [, results, executed, cached] = mapDone;
|
|
@@ -12525,7 +12525,7 @@ function formatRecentRunLogLines(value) {
|
|
|
12525
12525
|
(line) => typeof line === "string"
|
|
12526
12526
|
);
|
|
12527
12527
|
if (tail.length === 0) return [];
|
|
12528
|
-
const shown = tail.map((line) =>
|
|
12528
|
+
const shown = tail.map((line) => _chunkMNKDSR2Jjs.classifyLogLine.call(void 0, line)).filter(
|
|
12529
12529
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
12530
12530
|
).slice(-8);
|
|
12531
12531
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -12805,7 +12805,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12805
12805
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _426 => _426.hits]), () => ( null));
|
|
12806
12806
|
if (jsonOutput) {
|
|
12807
12807
|
const payload2 = _optionalChain([options, 'optionalAccess', _427 => _427.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
12808
|
-
|
|
12808
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
12809
12809
|
hits ? { ...payload2, hits } : payload2,
|
|
12810
12810
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _428 => _428.jsonFields]) }
|
|
12811
12811
|
);
|
|
@@ -12821,7 +12821,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12821
12821
|
...buildPlayCompletionTextLines(status),
|
|
12822
12822
|
...formatRunHitsLines(hits)
|
|
12823
12823
|
];
|
|
12824
|
-
|
|
12824
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0, displayPackage, {
|
|
12825
12825
|
json: false,
|
|
12826
12826
|
text: `${lines2.join("\n")}
|
|
12827
12827
|
`
|
|
@@ -12872,7 +12872,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12872
12872
|
lines.push(...buildBillingRollupTextLines(status));
|
|
12873
12873
|
const compact = compactPlayStatus(status);
|
|
12874
12874
|
const payload = _optionalChain([options, 'optionalAccess', _430 => _430.fullJson]) ? status : compact;
|
|
12875
|
-
|
|
12875
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
12876
12876
|
{
|
|
12877
12877
|
...payload,
|
|
12878
12878
|
render: {
|
|
@@ -13632,7 +13632,7 @@ function writeStartedPlayRun(input) {
|
|
|
13632
13632
|
dashboardUrl: input.dashboardUrl,
|
|
13633
13633
|
package: input.package
|
|
13634
13634
|
};
|
|
13635
|
-
|
|
13635
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
13636
13636
|
json: true,
|
|
13637
13637
|
fields: input.jsonFields
|
|
13638
13638
|
});
|
|
@@ -13654,7 +13654,7 @@ function writeStartedPlayRun(input) {
|
|
|
13654
13654
|
input.progress.writeLine(output2, process.stdout);
|
|
13655
13655
|
return;
|
|
13656
13656
|
}
|
|
13657
|
-
|
|
13657
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0, input.package, {
|
|
13658
13658
|
json: false,
|
|
13659
13659
|
text: `${output2}
|
|
13660
13660
|
`
|
|
@@ -13683,7 +13683,7 @@ function writeStartedPlayRun(input) {
|
|
|
13683
13683
|
) ? [`Stop: deepline runs stop ${shellSingleQuote(input.runId)} --json`] : []
|
|
13684
13684
|
];
|
|
13685
13685
|
if (input.jsonOutput) {
|
|
13686
|
-
|
|
13686
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
13687
13687
|
return;
|
|
13688
13688
|
}
|
|
13689
13689
|
if (input.dashboardUrl) {
|
|
@@ -13694,7 +13694,7 @@ function writeStartedPlayRun(input) {
|
|
|
13694
13694
|
input.progress.writeLine(output, process.stdout);
|
|
13695
13695
|
return;
|
|
13696
13696
|
}
|
|
13697
|
-
|
|
13697
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
13698
13698
|
{
|
|
13699
13699
|
...payload,
|
|
13700
13700
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -13704,7 +13704,7 @@ function writeStartedPlayRun(input) {
|
|
|
13704
13704
|
);
|
|
13705
13705
|
}
|
|
13706
13706
|
function parsePlayRunOptions(args) {
|
|
13707
|
-
const selection =
|
|
13707
|
+
const selection = _chunkQQ2FG5W3js.parseJsonFields.call(void 0, args, "run");
|
|
13708
13708
|
args = selection.args;
|
|
13709
13709
|
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.";
|
|
13710
13710
|
let filePath = null;
|
|
@@ -13713,7 +13713,7 @@ function parsePlayRunOptions(args) {
|
|
|
13713
13713
|
let revisionId = null;
|
|
13714
13714
|
let revisionSelector = null;
|
|
13715
13715
|
const watch = !args.includes("--no-wait");
|
|
13716
|
-
let jsonOutput = watch ? args.includes("--json") :
|
|
13716
|
+
let jsonOutput = watch ? args.includes("--json") : _chunkQQ2FG5W3js.argsWantJson.call(void 0, args);
|
|
13717
13717
|
const fullJson = args.includes("--full");
|
|
13718
13718
|
const force = args.includes("--force");
|
|
13719
13719
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -13760,7 +13760,7 @@ function parsePlayRunOptions(args) {
|
|
|
13760
13760
|
"--log-level requires one of: debug, info, warn, error."
|
|
13761
13761
|
);
|
|
13762
13762
|
}
|
|
13763
|
-
const parsed =
|
|
13763
|
+
const parsed = _chunkMNKDSR2Jjs.parseLogLevel.call(void 0, value);
|
|
13764
13764
|
if (!parsed) {
|
|
13765
13765
|
throw new Error(
|
|
13766
13766
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -13987,7 +13987,7 @@ function parsePlayRunOptions(args) {
|
|
|
13987
13987
|
};
|
|
13988
13988
|
}
|
|
13989
13989
|
function parsePlayCheckOptions(args) {
|
|
13990
|
-
const selection =
|
|
13990
|
+
const selection = _chunkQQ2FG5W3js.parseJsonFields.call(void 0, args, "check");
|
|
13991
13991
|
args = selection.args;
|
|
13992
13992
|
const target = args[0];
|
|
13993
13993
|
if (!target || target.startsWith("-")) {
|
|
@@ -13999,7 +13999,7 @@ function parsePlayCheckOptions(args) {
|
|
|
13999
13999
|
if (arg !== "--json" && arg !== "--full")
|
|
14000
14000
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
14001
14001
|
}
|
|
14002
|
-
const jsonOutput =
|
|
14002
|
+
const jsonOutput = _chunkQQ2FG5W3js.argsWantJson.call(void 0, args);
|
|
14003
14003
|
return {
|
|
14004
14004
|
target,
|
|
14005
14005
|
jsonOutput,
|
|
@@ -14075,7 +14075,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
14075
14075
|
useLatest,
|
|
14076
14076
|
expectedArtifactHash,
|
|
14077
14077
|
dryRun,
|
|
14078
|
-
jsonOutput:
|
|
14078
|
+
jsonOutput: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args)
|
|
14079
14079
|
};
|
|
14080
14080
|
}
|
|
14081
14081
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -14116,7 +14116,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
14116
14116
|
target,
|
|
14117
14117
|
expectedArtifactHash,
|
|
14118
14118
|
dryRun,
|
|
14119
|
-
jsonOutput:
|
|
14119
|
+
jsonOutput: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args)
|
|
14120
14120
|
};
|
|
14121
14121
|
}
|
|
14122
14122
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -14327,7 +14327,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
14327
14327
|
async function handlePlayCheck(args) {
|
|
14328
14328
|
const options = parsePlayCheckOptions(args);
|
|
14329
14329
|
if (!isFileTarget(options.target)) {
|
|
14330
|
-
const client = new (0,
|
|
14330
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
14331
14331
|
try {
|
|
14332
14332
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
14333
14333
|
command: "check"
|
|
@@ -14356,7 +14356,7 @@ async function handlePlayCheck(args) {
|
|
|
14356
14356
|
},
|
|
14357
14357
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
14358
14358
|
};
|
|
14359
|
-
|
|
14359
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0, result, {
|
|
14360
14360
|
json: options.jsonOutput,
|
|
14361
14361
|
fields: options.jsonFields,
|
|
14362
14362
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -14366,7 +14366,7 @@ async function handlePlayCheck(args) {
|
|
|
14366
14366
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
14367
14367
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
14368
14368
|
if (options.jsonOutput) {
|
|
14369
|
-
|
|
14369
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
14370
14370
|
{
|
|
14371
14371
|
kind: "play_check",
|
|
14372
14372
|
checked: "named_contract",
|
|
@@ -14408,7 +14408,7 @@ async function handlePlayCheck(args) {
|
|
|
14408
14408
|
detailsCommand: `deepline plays check ${shellQuote3(options.target)} --full --json`,
|
|
14409
14409
|
publishCommand: _optionalChain([primary, 'optionalAccess', _476 => _476.result, 'access', _477 => _477.artifactHash]) ? `deepline plays publish ${shellQuote3(options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
14410
14410
|
});
|
|
14411
|
-
|
|
14411
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0, output, {
|
|
14412
14412
|
json: options.jsonOutput,
|
|
14413
14413
|
fields: options.jsonFields,
|
|
14414
14414
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -14470,7 +14470,7 @@ async function checkOneExportedPlay(input) {
|
|
|
14470
14470
|
result: { valid: false, errors: descriptionErrors }
|
|
14471
14471
|
};
|
|
14472
14472
|
}
|
|
14473
|
-
const client = new (0,
|
|
14473
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
14474
14474
|
const integrationMode = resolveEvalIntegrationMode();
|
|
14475
14475
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
14476
14476
|
playName: node.playName,
|
|
@@ -14507,7 +14507,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
14507
14507
|
if (options.target.kind !== "file") {
|
|
14508
14508
|
throw new Error("Expected a file-backed play run target.");
|
|
14509
14509
|
}
|
|
14510
|
-
const client = new (0,
|
|
14510
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)(playRunClientOptions(options));
|
|
14511
14511
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
14512
14512
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
14513
14513
|
progress.phase("compiling play");
|
|
@@ -14721,7 +14721,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14721
14721
|
if (options.target.kind !== "name") {
|
|
14722
14722
|
throw new Error("Expected a named play run target.");
|
|
14723
14723
|
}
|
|
14724
|
-
const client = new (0,
|
|
14724
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)(playRunClientOptions(options));
|
|
14725
14725
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
14726
14726
|
const playName = options.target.name;
|
|
14727
14727
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -15118,10 +15118,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
15118
15118
|
);
|
|
15119
15119
|
return `${lines.join("\n")}
|
|
15120
15120
|
|
|
15121
|
-
${
|
|
15121
|
+
${_chunkQQ2FG5W3js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
15122
15122
|
}
|
|
15123
15123
|
async function handleRunGet(args) {
|
|
15124
|
-
const selection =
|
|
15124
|
+
const selection = _chunkQQ2FG5W3js.parseJsonFields.call(void 0,
|
|
15125
15125
|
args,
|
|
15126
15126
|
args.includes("--config") ? "config" : "get"
|
|
15127
15127
|
);
|
|
@@ -15134,7 +15134,7 @@ async function handleRunGet(args) {
|
|
|
15134
15134
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15135
15135
|
return 1;
|
|
15136
15136
|
}
|
|
15137
|
-
const client = new (0,
|
|
15137
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
15138
15138
|
if (args.includes("--config")) {
|
|
15139
15139
|
if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
|
|
15140
15140
|
console.error(
|
|
@@ -15148,7 +15148,7 @@ async function handleRunGet(args) {
|
|
|
15148
15148
|
"This server does not support recorded configuration reads."
|
|
15149
15149
|
);
|
|
15150
15150
|
}
|
|
15151
|
-
|
|
15151
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
15152
15152
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
15153
15153
|
{ json: true, fields: selection.fields }
|
|
15154
15154
|
);
|
|
@@ -15156,7 +15156,7 @@ async function handleRunGet(args) {
|
|
|
15156
15156
|
}
|
|
15157
15157
|
if (args.includes("--input")) {
|
|
15158
15158
|
const input = await client.getRunInput(runId);
|
|
15159
|
-
|
|
15159
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0, input, { json: true });
|
|
15160
15160
|
return 0;
|
|
15161
15161
|
}
|
|
15162
15162
|
const full = args.includes("--full");
|
|
@@ -15169,8 +15169,8 @@ async function handleRunGet(args) {
|
|
|
15169
15169
|
full: true,
|
|
15170
15170
|
failedLogs: args.includes("--log-failed")
|
|
15171
15171
|
}) : status;
|
|
15172
|
-
if (
|
|
15173
|
-
|
|
15172
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
15173
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
15174
15174
|
full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
15175
15175
|
{ json: true, fields: selection.fields }
|
|
15176
15176
|
);
|
|
@@ -15186,8 +15186,8 @@ async function handleRunGet(args) {
|
|
|
15186
15186
|
readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
|
|
15187
15187
|
]);
|
|
15188
15188
|
const hitLines = formatRunHitsLines(hits);
|
|
15189
|
-
const json =
|
|
15190
|
-
|
|
15189
|
+
const json = _chunkQQ2FG5W3js.argsWantJson.call(void 0, args);
|
|
15190
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
15191
15191
|
{
|
|
15192
15192
|
...overview,
|
|
15193
15193
|
credits,
|
|
@@ -15290,9 +15290,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
15290
15290
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15291
15291
|
return 1;
|
|
15292
15292
|
}
|
|
15293
|
-
const status = await new (0,
|
|
15294
|
-
if (
|
|
15295
|
-
|
|
15293
|
+
const status = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().runs.status(runId);
|
|
15294
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
15295
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0, status, { json: true });
|
|
15296
15296
|
return 0;
|
|
15297
15297
|
}
|
|
15298
15298
|
if (!status.available) {
|
|
@@ -15366,12 +15366,12 @@ async function handleRunsRerun(args) {
|
|
|
15366
15366
|
index += 1;
|
|
15367
15367
|
}
|
|
15368
15368
|
}
|
|
15369
|
-
const result = await new (0,
|
|
15369
|
+
const result = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().runs.rerun(runId, {
|
|
15370
15370
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
15371
15371
|
...inputOverrides ? { inputOverrides } : {}
|
|
15372
15372
|
});
|
|
15373
|
-
if (
|
|
15374
|
-
|
|
15373
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
15374
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0, result, { json: true });
|
|
15375
15375
|
} else {
|
|
15376
15376
|
console.log(
|
|
15377
15377
|
result.deduplicated === true ? `
|
|
@@ -15441,8 +15441,8 @@ ${usage2}
|
|
|
15441
15441
|
Discover Plays: ${next.discover}
|
|
15442
15442
|
Active runs: ${next.running}`
|
|
15443
15443
|
);
|
|
15444
|
-
if (
|
|
15445
|
-
|
|
15444
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
15445
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
15446
15446
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
15447
15447
|
{ json: true }
|
|
15448
15448
|
);
|
|
@@ -15457,7 +15457,7 @@ Active runs: ${next.running}`
|
|
|
15457
15457
|
console.error("--offset requires --play.");
|
|
15458
15458
|
return 1;
|
|
15459
15459
|
}
|
|
15460
|
-
const client = new (0,
|
|
15460
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
15461
15461
|
const page = await client.runs.listPage({
|
|
15462
15462
|
...playName ? { play: playName } : {},
|
|
15463
15463
|
...statusFilter ? { status: statusFilter } : {},
|
|
@@ -15525,7 +15525,7 @@ Active runs: ${next.running}`
|
|
|
15525
15525
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
15526
15526
|
);
|
|
15527
15527
|
}
|
|
15528
|
-
|
|
15528
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
15529
15529
|
{
|
|
15530
15530
|
runs,
|
|
15531
15531
|
count: runs.length,
|
|
@@ -15539,7 +15539,7 @@ Active runs: ${next.running}`
|
|
|
15539
15539
|
},
|
|
15540
15540
|
render: { sections: [{ title: "runs", lines }] }
|
|
15541
15541
|
},
|
|
15542
|
-
{ json:
|
|
15542
|
+
{ json: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args) }
|
|
15543
15543
|
);
|
|
15544
15544
|
return 0;
|
|
15545
15545
|
}
|
|
@@ -15569,7 +15569,7 @@ async function handleRunTail(args) {
|
|
|
15569
15569
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15570
15570
|
return 1;
|
|
15571
15571
|
}
|
|
15572
|
-
const parsed =
|
|
15572
|
+
const parsed = _chunkMNKDSR2Jjs.parseLogLevel.call(void 0, value);
|
|
15573
15573
|
if (!parsed) {
|
|
15574
15574
|
console.error(
|
|
15575
15575
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15607,9 +15607,9 @@ async function handleRunTail(args) {
|
|
|
15607
15607
|
);
|
|
15608
15608
|
return 1;
|
|
15609
15609
|
}
|
|
15610
|
-
const client = new (0,
|
|
15610
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
15611
15611
|
const jsonLines = args.includes("--jsonl");
|
|
15612
|
-
const jsonOutput = !jsonLines &&
|
|
15612
|
+
const jsonOutput = !jsonLines && _chunkQQ2FG5W3js.argsWantJson.call(void 0, args);
|
|
15613
15613
|
const compact = args.includes("--compact");
|
|
15614
15614
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
15615
15615
|
const compactState = {
|
|
@@ -15690,7 +15690,7 @@ async function handleRunLogs(args) {
|
|
|
15690
15690
|
]);
|
|
15691
15691
|
const cursorIndex = args.indexOf("--cursor");
|
|
15692
15692
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15693
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
15693
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkMNKDSR2Jjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
15694
15694
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
15695
15695
|
return handleRunEventSearch(args);
|
|
15696
15696
|
}
|
|
@@ -15724,7 +15724,7 @@ async function handleRunLogs(args) {
|
|
|
15724
15724
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15725
15725
|
return 1;
|
|
15726
15726
|
}
|
|
15727
|
-
const parsed =
|
|
15727
|
+
const parsed = _chunkMNKDSR2Jjs.parseLogLevel.call(void 0, value);
|
|
15728
15728
|
if (!parsed) {
|
|
15729
15729
|
console.error(
|
|
15730
15730
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15771,12 +15771,12 @@ async function handleRunLogs(args) {
|
|
|
15771
15771
|
);
|
|
15772
15772
|
return 1;
|
|
15773
15773
|
}
|
|
15774
|
-
const client = new (0,
|
|
15774
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
15775
15775
|
if (outPath) {
|
|
15776
15776
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
15777
|
-
const logs = result2.entries.filter((line) =>
|
|
15777
|
+
const logs = result2.entries.filter((line) => _chunkMNKDSR2Jjs.logLevelReaches.call(void 0, _chunkMNKDSR2Jjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkMNKDSR2Jjs.classifyLogLine.call(void 0, line).line);
|
|
15778
15778
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
15779
|
-
|
|
15779
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
15780
15780
|
{
|
|
15781
15781
|
runId: result2.runId,
|
|
15782
15782
|
log_path: outPath,
|
|
@@ -15799,7 +15799,7 @@ async function handleRunLogs(args) {
|
|
|
15799
15799
|
]
|
|
15800
15800
|
}
|
|
15801
15801
|
},
|
|
15802
|
-
{ json:
|
|
15802
|
+
{ json: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args) }
|
|
15803
15803
|
);
|
|
15804
15804
|
return 0;
|
|
15805
15805
|
}
|
|
@@ -15830,7 +15830,7 @@ async function handleRunLogs(args) {
|
|
|
15830
15830
|
}
|
|
15831
15831
|
};
|
|
15832
15832
|
const text = buildRunLogsText(filteredResult);
|
|
15833
|
-
|
|
15833
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
15834
15834
|
{
|
|
15835
15835
|
runId: result.runId,
|
|
15836
15836
|
totalCount: result.totalCount,
|
|
@@ -15854,7 +15854,7 @@ async function handleRunLogs(args) {
|
|
|
15854
15854
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
15855
15855
|
},
|
|
15856
15856
|
{
|
|
15857
|
-
json:
|
|
15857
|
+
json: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args),
|
|
15858
15858
|
text
|
|
15859
15859
|
}
|
|
15860
15860
|
);
|
|
@@ -15878,7 +15878,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15878
15878
|
);
|
|
15879
15879
|
}
|
|
15880
15880
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
15881
|
-
(entry) =>
|
|
15881
|
+
(entry) => _chunkMNKDSR2Jjs.logLevelReaches.call(void 0, _chunkMNKDSR2Jjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
15882
15882
|
);
|
|
15883
15883
|
const selected = matching.slice(-limit);
|
|
15884
15884
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -15888,7 +15888,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15888
15888
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _519 => _519.at, 'call', _520 => _520(-1), 'optionalAccess', _521 => _521.seq]), () => ( null)),
|
|
15889
15889
|
truncated: result.truncated || olderMatchesExist,
|
|
15890
15890
|
hasMore: olderMatchesExist,
|
|
15891
|
-
nextCursor: olderMatchesExist ?
|
|
15891
|
+
nextCursor: olderMatchesExist ? _chunkMNKDSR2Jjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
15892
15892
|
};
|
|
15893
15893
|
}
|
|
15894
15894
|
async function handleRunEventSearch(args) {
|
|
@@ -15955,7 +15955,7 @@ ${usage2}`);
|
|
|
15955
15955
|
namespace,
|
|
15956
15956
|
...backend ? { backend } : {}
|
|
15957
15957
|
} : void 0;
|
|
15958
|
-
const client = new (0,
|
|
15958
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
15959
15959
|
const result = await client.runs.searchEvents({
|
|
15960
15960
|
...runId ? { runId } : {},
|
|
15961
15961
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -16028,7 +16028,7 @@ ${renderedDetails}` : ""}`;
|
|
|
16028
16028
|
String(limit),
|
|
16029
16029
|
"--json"
|
|
16030
16030
|
].join(" ") : null;
|
|
16031
|
-
|
|
16031
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
16032
16032
|
{
|
|
16033
16033
|
events,
|
|
16034
16034
|
nextCursor: result.nextCursor,
|
|
@@ -16039,14 +16039,14 @@ ${renderedDetails}` : ""}`;
|
|
|
16039
16039
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
16040
16040
|
},
|
|
16041
16041
|
{
|
|
16042
|
-
json:
|
|
16042
|
+
json: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args),
|
|
16043
16043
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
16044
16044
|
}
|
|
16045
16045
|
);
|
|
16046
16046
|
return 0;
|
|
16047
16047
|
}
|
|
16048
16048
|
function buildRunLogsText(result) {
|
|
16049
|
-
const lines = result.entries.map((line) =>
|
|
16049
|
+
const lines = result.entries.map((line) => _chunkMNKDSR2Jjs.classifyLogLine.call(void 0, line).line);
|
|
16050
16050
|
if (result.warning) {
|
|
16051
16051
|
if (lines.length > 0) lines.push("");
|
|
16052
16052
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -16080,7 +16080,7 @@ async function handleRunStop(args) {
|
|
|
16080
16080
|
reason = args[++index];
|
|
16081
16081
|
}
|
|
16082
16082
|
}
|
|
16083
|
-
const client = new (0,
|
|
16083
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
16084
16084
|
const result = await client.runs.stop(runId, { reason });
|
|
16085
16085
|
const state = resolveRunStopState(result);
|
|
16086
16086
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -16095,7 +16095,7 @@ async function handleRunStop(args) {
|
|
|
16095
16095
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
16096
16096
|
`inspect: deepline runs get ${runId} --full --json`
|
|
16097
16097
|
];
|
|
16098
|
-
|
|
16098
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
16099
16099
|
{
|
|
16100
16100
|
...cancelling,
|
|
16101
16101
|
state,
|
|
@@ -16110,7 +16110,7 @@ async function handleRunStop(args) {
|
|
|
16110
16110
|
]
|
|
16111
16111
|
}
|
|
16112
16112
|
},
|
|
16113
|
-
{ json:
|
|
16113
|
+
{ json: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args) }
|
|
16114
16114
|
);
|
|
16115
16115
|
return 0;
|
|
16116
16116
|
}
|
|
@@ -16127,7 +16127,7 @@ async function handleRunStop(args) {
|
|
|
16127
16127
|
];
|
|
16128
16128
|
process.stderr.write(`${lines2.join("\n")}
|
|
16129
16129
|
`);
|
|
16130
|
-
|
|
16130
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
16131
16131
|
{
|
|
16132
16132
|
...result,
|
|
16133
16133
|
render: {
|
|
@@ -16142,7 +16142,7 @@ async function handleRunStop(args) {
|
|
|
16142
16142
|
]
|
|
16143
16143
|
}
|
|
16144
16144
|
},
|
|
16145
|
-
{ json:
|
|
16145
|
+
{ json: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args) }
|
|
16146
16146
|
);
|
|
16147
16147
|
return 1;
|
|
16148
16148
|
}
|
|
@@ -16153,12 +16153,12 @@ async function handleRunStop(args) {
|
|
|
16153
16153
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
16154
16154
|
] : []
|
|
16155
16155
|
];
|
|
16156
|
-
|
|
16156
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
16157
16157
|
{
|
|
16158
16158
|
...result,
|
|
16159
16159
|
render: { sections: [{ title: "run stop", lines }] }
|
|
16160
16160
|
},
|
|
16161
|
-
{ json:
|
|
16161
|
+
{ json: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args) }
|
|
16162
16162
|
);
|
|
16163
16163
|
return 0;
|
|
16164
16164
|
}
|
|
@@ -16208,18 +16208,18 @@ async function handleRunStopAll(args) {
|
|
|
16208
16208
|
reason = args[++index];
|
|
16209
16209
|
}
|
|
16210
16210
|
}
|
|
16211
|
-
const client = new (0,
|
|
16211
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
16212
16212
|
if (dryRun) {
|
|
16213
16213
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
16214
16214
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
16215
|
-
|
|
16215
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
16216
16216
|
{
|
|
16217
16217
|
...result2,
|
|
16218
16218
|
render: {
|
|
16219
16219
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
16220
16220
|
}
|
|
16221
16221
|
},
|
|
16222
|
-
{ json:
|
|
16222
|
+
{ json: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
16223
16223
|
` }
|
|
16224
16224
|
);
|
|
16225
16225
|
return 0;
|
|
@@ -16232,17 +16232,17 @@ async function handleRunStopAll(args) {
|
|
|
16232
16232
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
16233
16233
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
16234
16234
|
];
|
|
16235
|
-
|
|
16235
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
16236
16236
|
{
|
|
16237
16237
|
...result,
|
|
16238
16238
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
16239
16239
|
},
|
|
16240
|
-
{ json:
|
|
16240
|
+
{ json: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args) }
|
|
16241
16241
|
);
|
|
16242
16242
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
16243
16243
|
}
|
|
16244
16244
|
async function handleRunExport(args) {
|
|
16245
|
-
const selection =
|
|
16245
|
+
const selection = _chunkQQ2FG5W3js.parseJsonFields.call(void 0, args, "export");
|
|
16246
16246
|
args = selection.args;
|
|
16247
16247
|
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]";
|
|
16248
16248
|
let runId;
|
|
@@ -16301,16 +16301,16 @@ async function handleRunExport(args) {
|
|
|
16301
16301
|
"INVALID_ARGUMENT"
|
|
16302
16302
|
);
|
|
16303
16303
|
}
|
|
16304
|
-
const client = new (0,
|
|
16304
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
16305
16305
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
16306
16306
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
16307
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
16307
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkQQ2FG5W3js.argsWantJson.call(void 0, args));
|
|
16308
16308
|
try {
|
|
16309
16309
|
await waitForPlayCompletionByWatch({
|
|
16310
16310
|
client,
|
|
16311
16311
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
16312
16312
|
workflowId: runId,
|
|
16313
|
-
jsonOutput:
|
|
16313
|
+
jsonOutput: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args),
|
|
16314
16314
|
emitLogs: false,
|
|
16315
16315
|
waitTimeoutMs,
|
|
16316
16316
|
startedAt: Date.now(),
|
|
@@ -16409,8 +16409,8 @@ async function handleRunExport(args) {
|
|
|
16409
16409
|
"utf-8"
|
|
16410
16410
|
);
|
|
16411
16411
|
}
|
|
16412
|
-
|
|
16413
|
-
json:
|
|
16412
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0, payload, {
|
|
16413
|
+
json: _chunkQQ2FG5W3js.argsWantJson.call(void 0, args),
|
|
16414
16414
|
fields: selection.fields,
|
|
16415
16415
|
text: `${lines.join("\n")}
|
|
16416
16416
|
`
|
|
@@ -16431,10 +16431,10 @@ async function handlePlayGet(args) {
|
|
|
16431
16431
|
);
|
|
16432
16432
|
return 2;
|
|
16433
16433
|
}
|
|
16434
|
-
const client = new (0,
|
|
16434
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
16435
16435
|
const explicitJson = args.includes("--json");
|
|
16436
16436
|
const sourceOutput = args.includes("--source");
|
|
16437
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
16437
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkQQ2FG5W3js.argsWantJson.call(void 0, args);
|
|
16438
16438
|
const requestedRevisionFlags = [
|
|
16439
16439
|
args.includes("--working"),
|
|
16440
16440
|
args.includes("--live"),
|
|
@@ -16494,7 +16494,7 @@ async function handlePlayGet(args) {
|
|
|
16494
16494
|
}
|
|
16495
16495
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
16496
16496
|
if (jsonOutput) {
|
|
16497
|
-
|
|
16497
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, {
|
|
16498
16498
|
...detail,
|
|
16499
16499
|
...materializedFile ? {
|
|
16500
16500
|
message: loadedMessage,
|
|
@@ -16581,8 +16581,8 @@ async function handlePlayVersions(args) {
|
|
|
16581
16581
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
16582
16582
|
return 1;
|
|
16583
16583
|
}
|
|
16584
|
-
const client = new (0,
|
|
16585
|
-
const jsonOutput =
|
|
16584
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
16585
|
+
const jsonOutput = _chunkQQ2FG5W3js.argsWantJson.call(void 0, args);
|
|
16586
16586
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16587
16587
|
command: "versions"
|
|
16588
16588
|
});
|
|
@@ -16590,7 +16590,7 @@ async function handlePlayVersions(args) {
|
|
|
16590
16590
|
parseReferencedPlayTarget2(playName).playName
|
|
16591
16591
|
);
|
|
16592
16592
|
if (jsonOutput) {
|
|
16593
|
-
|
|
16593
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, { versions });
|
|
16594
16594
|
return 0;
|
|
16595
16595
|
}
|
|
16596
16596
|
if (versions.length === 0) {
|
|
@@ -16622,9 +16622,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
16622
16622
|
"signals"
|
|
16623
16623
|
];
|
|
16624
16624
|
async function handlePlayList(args) {
|
|
16625
|
-
const jsonOutput =
|
|
16625
|
+
const jsonOutput = _chunkQQ2FG5W3js.argsWantJson.call(void 0, args);
|
|
16626
16626
|
const showCost = args.includes("--show-cost");
|
|
16627
|
-
const client = new (0,
|
|
16627
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
16628
16628
|
const categoriesIndex = args.indexOf("--categories");
|
|
16629
16629
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _557 => _557[categoriesIndex + 1], 'optionalAccess', _558 => _558.trim, 'call', _559 => _559()]) : void 0;
|
|
16630
16630
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -16721,7 +16721,7 @@ async function handlePlayList(args) {
|
|
|
16721
16721
|
lines.push("List truncated \u2014 more plays are available.");
|
|
16722
16722
|
lines.push(`Next page: ${nextPage}`);
|
|
16723
16723
|
}
|
|
16724
|
-
|
|
16724
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
16725
16725
|
{
|
|
16726
16726
|
plays,
|
|
16727
16727
|
count: plays.length,
|
|
@@ -16739,7 +16739,7 @@ async function handlePlayList(args) {
|
|
|
16739
16739
|
}
|
|
16740
16740
|
async function handlePlayPin(args, pinned) {
|
|
16741
16741
|
const target = _optionalChain([args, 'access', _566 => _566.find, 'call', _567 => _567((arg) => !arg.startsWith("-")), 'optionalAccess', _568 => _568.trim, 'call', _569 => _569()]);
|
|
16742
|
-
const jsonOutput =
|
|
16742
|
+
const jsonOutput = _chunkQQ2FG5W3js.argsWantJson.call(void 0, args);
|
|
16743
16743
|
const dryRun = args.includes("--dry-run");
|
|
16744
16744
|
if (!target) {
|
|
16745
16745
|
console.error(
|
|
@@ -16757,11 +16757,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
16757
16757
|
const name = parsedTarget.playName;
|
|
16758
16758
|
const plan = { name, pinned, dryRun };
|
|
16759
16759
|
if (dryRun) {
|
|
16760
|
-
|
|
16760
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, plan);
|
|
16761
16761
|
return 0;
|
|
16762
16762
|
}
|
|
16763
|
-
const result = await new (0,
|
|
16764
|
-
if (jsonOutput)
|
|
16763
|
+
const result = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
16764
|
+
if (jsonOutput) _chunkQQ2FG5W3js.printCompactJson.call(void 0, result);
|
|
16765
16765
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
16766
16766
|
return 0;
|
|
16767
16767
|
}
|
|
@@ -16777,7 +16777,7 @@ function csvColumnLines(csvInput) {
|
|
|
16777
16777
|
const headers = [defaults[column]].flat().filter((header) => header && header !== column);
|
|
16778
16778
|
return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
|
|
16779
16779
|
}),
|
|
16780
|
-
|
|
16780
|
+
_chunkMNKDSR2Jjs.CSV_HEADER_MATCHING_NOTE
|
|
16781
16781
|
];
|
|
16782
16782
|
}
|
|
16783
16783
|
function describedPlay(play) {
|
|
@@ -16921,12 +16921,12 @@ async function handlePlayGrep(args) {
|
|
|
16921
16921
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
16922
16922
|
return 1;
|
|
16923
16923
|
}
|
|
16924
|
-
const client = new (0,
|
|
16924
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
16925
16925
|
const results = (await client.listPlays({ grep: query })).map(
|
|
16926
16926
|
summarizePlayGrepResult
|
|
16927
16927
|
);
|
|
16928
|
-
if (
|
|
16929
|
-
|
|
16928
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
16929
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, {
|
|
16930
16930
|
plays: results,
|
|
16931
16931
|
count: results.length,
|
|
16932
16932
|
query,
|
|
@@ -16949,7 +16949,7 @@ async function handlePlayGrep(args) {
|
|
|
16949
16949
|
return 0;
|
|
16950
16950
|
}
|
|
16951
16951
|
async function handlePlayDescribe(args) {
|
|
16952
|
-
const selection =
|
|
16952
|
+
const selection = _chunkQQ2FG5W3js.parseJsonFields.call(void 0, args, "describe");
|
|
16953
16953
|
args = selection.args;
|
|
16954
16954
|
const playName = args[0];
|
|
16955
16955
|
if (!playName) {
|
|
@@ -16983,8 +16983,8 @@ async function handlePlayDescribe(args) {
|
|
|
16983
16983
|
`deepline plays check ${playName}`,
|
|
16984
16984
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
16985
16985
|
];
|
|
16986
|
-
if (
|
|
16987
|
-
|
|
16986
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
16987
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, {
|
|
16988
16988
|
ok: false,
|
|
16989
16989
|
error: { message },
|
|
16990
16990
|
next
|
|
@@ -16998,7 +16998,7 @@ async function handlePlayDescribe(args) {
|
|
|
16998
16998
|
}
|
|
16999
16999
|
return 2;
|
|
17000
17000
|
}
|
|
17001
|
-
const client = new (0,
|
|
17001
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
17002
17002
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
17003
17003
|
command: "describe"
|
|
17004
17004
|
});
|
|
@@ -17008,9 +17008,9 @@ async function handlePlayDescribe(args) {
|
|
|
17008
17008
|
compact: args.includes("--compact")
|
|
17009
17009
|
}
|
|
17010
17010
|
);
|
|
17011
|
-
if (
|
|
17012
|
-
if (selection.fields)
|
|
17013
|
-
else
|
|
17011
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
17012
|
+
if (selection.fields) _chunkQQ2FG5W3js.printJson.call(void 0, play, selection.fields);
|
|
17013
|
+
else _chunkQQ2FG5W3js.printCompactJson.call(void 0, play);
|
|
17014
17014
|
return 0;
|
|
17015
17015
|
}
|
|
17016
17016
|
printPlayDescription(play);
|
|
@@ -17054,7 +17054,7 @@ async function handlePlaySave(args) {
|
|
|
17054
17054
|
next: `deepline plays check ${shellQuote3(options.target)}`
|
|
17055
17055
|
};
|
|
17056
17056
|
if (options.jsonOutput) {
|
|
17057
|
-
|
|
17057
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, result);
|
|
17058
17058
|
} else {
|
|
17059
17059
|
console.error(result.message);
|
|
17060
17060
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -17076,7 +17076,7 @@ async function handlePlaySave(args) {
|
|
|
17076
17076
|
};
|
|
17077
17077
|
if (options.dryRun) {
|
|
17078
17078
|
if (options.jsonOutput) {
|
|
17079
|
-
|
|
17079
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, dryRun);
|
|
17080
17080
|
} else {
|
|
17081
17081
|
console.log(`Dry run: ${playName}`);
|
|
17082
17082
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17085,7 +17085,7 @@ async function handlePlaySave(args) {
|
|
|
17085
17085
|
}
|
|
17086
17086
|
return 0;
|
|
17087
17087
|
}
|
|
17088
|
-
const client = new (0,
|
|
17088
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
17089
17089
|
try {
|
|
17090
17090
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
17091
17091
|
"cli.play_save_compile_manifests",
|
|
@@ -17121,7 +17121,7 @@ async function handlePlaySave(args) {
|
|
|
17121
17121
|
}
|
|
17122
17122
|
};
|
|
17123
17123
|
if (options.jsonOutput) {
|
|
17124
|
-
|
|
17124
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, result);
|
|
17125
17125
|
} else {
|
|
17126
17126
|
console.log(
|
|
17127
17127
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -17147,7 +17147,7 @@ async function handlePlayPublish(args) {
|
|
|
17147
17147
|
}
|
|
17148
17148
|
const { target: playName, useLatest } = options;
|
|
17149
17149
|
let revisionId = options.revisionId;
|
|
17150
|
-
const client = new (0,
|
|
17150
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
17151
17151
|
if (isFileTarget(playName)) {
|
|
17152
17152
|
if (revisionId || useLatest) {
|
|
17153
17153
|
console.error(
|
|
@@ -17179,7 +17179,7 @@ async function handlePlayPublish(args) {
|
|
|
17179
17179
|
next: `deepline plays check ${shellQuote3(playName)}`
|
|
17180
17180
|
};
|
|
17181
17181
|
if (options.jsonOutput) {
|
|
17182
|
-
|
|
17182
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, result3);
|
|
17183
17183
|
} else {
|
|
17184
17184
|
console.error(result3.message);
|
|
17185
17185
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -17202,7 +17202,7 @@ async function handlePlayPublish(args) {
|
|
|
17202
17202
|
};
|
|
17203
17203
|
if (options.dryRun) {
|
|
17204
17204
|
if (options.jsonOutput) {
|
|
17205
|
-
|
|
17205
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, dryRun);
|
|
17206
17206
|
} else {
|
|
17207
17207
|
console.log(`Dry run: ${rootPlayName}`);
|
|
17208
17208
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17270,7 +17270,7 @@ async function handlePlayPublish(args) {
|
|
|
17270
17270
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
17271
17271
|
};
|
|
17272
17272
|
if (options.jsonOutput) {
|
|
17273
|
-
|
|
17273
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, result2);
|
|
17274
17274
|
} else {
|
|
17275
17275
|
printPublishReceipt({
|
|
17276
17276
|
name: rootPlayName,
|
|
@@ -17301,7 +17301,7 @@ async function handlePlayPublish(args) {
|
|
|
17301
17301
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
17302
17302
|
latest: useLatest
|
|
17303
17303
|
};
|
|
17304
|
-
|
|
17304
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, result2);
|
|
17305
17305
|
return 0;
|
|
17306
17306
|
}
|
|
17307
17307
|
const resolvedName = parseReferencedPlayTarget2(playName).playName;
|
|
@@ -17325,7 +17325,7 @@ async function handlePlayPublish(args) {
|
|
|
17325
17325
|
revisionId ? { revisionId } : {}
|
|
17326
17326
|
);
|
|
17327
17327
|
if (options.jsonOutput) {
|
|
17328
|
-
|
|
17328
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, result);
|
|
17329
17329
|
} else {
|
|
17330
17330
|
printPublishReceipt({
|
|
17331
17331
|
name: result.name,
|
|
@@ -17365,7 +17365,7 @@ async function handlePlayDelete(args) {
|
|
|
17365
17365
|
);
|
|
17366
17366
|
return 2;
|
|
17367
17367
|
}
|
|
17368
|
-
const client = new (0,
|
|
17368
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
17369
17369
|
let detail;
|
|
17370
17370
|
try {
|
|
17371
17371
|
detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
|
|
@@ -17389,8 +17389,8 @@ async function handlePlayDelete(args) {
|
|
|
17389
17389
|
name: resolvedName,
|
|
17390
17390
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
17391
17391
|
};
|
|
17392
|
-
if (
|
|
17393
|
-
|
|
17392
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
17393
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, result2);
|
|
17394
17394
|
} else {
|
|
17395
17395
|
process.stdout.write(
|
|
17396
17396
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -17400,8 +17400,8 @@ async function handlePlayDelete(args) {
|
|
|
17400
17400
|
return 0;
|
|
17401
17401
|
}
|
|
17402
17402
|
const result = await client.deletePlay(resolvedName);
|
|
17403
|
-
if (
|
|
17404
|
-
|
|
17403
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
17404
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, result);
|
|
17405
17405
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
17406
17406
|
}
|
|
17407
17407
|
if (result.alreadyArchived) {
|
|
@@ -17440,13 +17440,13 @@ async function handlePlayRestore(args) {
|
|
|
17440
17440
|
);
|
|
17441
17441
|
return 2;
|
|
17442
17442
|
}
|
|
17443
|
-
const client = new (0,
|
|
17443
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
17444
17444
|
try {
|
|
17445
17445
|
const result = await client.restorePlay(
|
|
17446
17446
|
parseReferencedPlayTarget2(playName).playName
|
|
17447
17447
|
);
|
|
17448
|
-
if (
|
|
17449
|
-
|
|
17448
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
17449
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, result);
|
|
17450
17450
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
17451
17451
|
}
|
|
17452
17452
|
if (result.alreadyActive) {
|
|
@@ -17551,7 +17551,7 @@ Examples:
|
|
|
17551
17551
|
).action(async (target, options) => {
|
|
17552
17552
|
process.exitCode = await handlePlayCheck([
|
|
17553
17553
|
target,
|
|
17554
|
-
...
|
|
17554
|
+
..._chunkQQ2FG5W3js.jsonFieldArgs.call(void 0, options.json),
|
|
17555
17555
|
...options.full ? ["--full"] : []
|
|
17556
17556
|
]);
|
|
17557
17557
|
});
|
|
@@ -17738,7 +17738,7 @@ JSON field selection:
|
|
|
17738
17738
|
...options.maxConcurrentRows ? ["--max-concurrent-rows", options.maxConcurrentRows] : [],
|
|
17739
17739
|
...options.open ? ["--open"] : [],
|
|
17740
17740
|
...options.debugMapLatency ? ["--debug-map-latency"] : [],
|
|
17741
|
-
...
|
|
17741
|
+
..._chunkQQ2FG5W3js.jsonFieldArgs.call(void 0, options.json),
|
|
17742
17742
|
...options.full ? ["--full"] : [],
|
|
17743
17743
|
...passthroughArgs
|
|
17744
17744
|
]);
|
|
@@ -17793,9 +17793,9 @@ Examples:
|
|
|
17793
17793
|
const limit = Number(options.historyLimit);
|
|
17794
17794
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
17795
17795
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
17796
|
-
const client = new (0,
|
|
17796
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
17797
17797
|
if (options.binding) {
|
|
17798
|
-
|
|
17798
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0,
|
|
17799
17799
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
17800
17800
|
);
|
|
17801
17801
|
return;
|
|
@@ -17803,7 +17803,7 @@ Examples:
|
|
|
17803
17803
|
const result = await client.listPlayTriggerInventory({
|
|
17804
17804
|
cursor: options.cursor
|
|
17805
17805
|
});
|
|
17806
|
-
|
|
17806
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, {
|
|
17807
17807
|
...result,
|
|
17808
17808
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
|
|
17809
17809
|
});
|
|
@@ -17850,7 +17850,7 @@ Examples:
|
|
|
17850
17850
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
17851
17851
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
17852
17852
|
}
|
|
17853
|
-
const result = await new (0,
|
|
17853
|
+
const result = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().getPlaysActivity({
|
|
17854
17854
|
timeZone: options.timeZone,
|
|
17855
17855
|
days,
|
|
17856
17856
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -17864,7 +17864,7 @@ Examples:
|
|
|
17864
17864
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
17865
17865
|
);
|
|
17866
17866
|
}
|
|
17867
|
-
|
|
17867
|
+
_chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
|
|
17868
17868
|
{ ...result },
|
|
17869
17869
|
{
|
|
17870
17870
|
json: options.json || !process.stdout.isTTY,
|
|
@@ -17893,7 +17893,7 @@ Examples:
|
|
|
17893
17893
|
false
|
|
17894
17894
|
);
|
|
17895
17895
|
});
|
|
17896
|
-
|
|
17896
|
+
_chunkKZNFYOHXjs.registerDeprecatedSearchCommand.call(void 0,
|
|
17897
17897
|
play,
|
|
17898
17898
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
17899
17899
|
);
|
|
@@ -17937,7 +17937,7 @@ Examples:
|
|
|
17937
17937
|
);
|
|
17938
17938
|
_chunkXNL3SEMCjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
17939
17939
|
async (target, options) => {
|
|
17940
|
-
const ownView = () => handlePlayDescribe(
|
|
17940
|
+
const ownView = () => handlePlayDescribe(_chunkQQ2FG5W3js.describeArgs.call(void 0, target, options));
|
|
17941
17941
|
const [flagText] = [options.json].filter(
|
|
17942
17942
|
(value) => typeof value === "string"
|
|
17943
17943
|
);
|
|
@@ -17948,7 +17948,7 @@ Examples:
|
|
|
17948
17948
|
process.exitCode = await ownView();
|
|
17949
17949
|
return;
|
|
17950
17950
|
}
|
|
17951
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
17951
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-M26LHDBQ.js")));
|
|
17952
17952
|
process.exitCode = await describeAnything(
|
|
17953
17953
|
name,
|
|
17954
17954
|
{
|
|
@@ -18065,7 +18065,7 @@ Examples:
|
|
|
18065
18065
|
deepline plays deployments <deployment-id>
|
|
18066
18066
|
`
|
|
18067
18067
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
|
|
18068
|
-
async (id, options) => id ?
|
|
18068
|
+
async (id, options) => id ? _chunkUYFWTIKFjs.handleDeploymentGet.call(void 0, id, options) : _chunkUYFWTIKFjs.handleDeploymentsList.call(void 0, options)
|
|
18069
18069
|
);
|
|
18070
18070
|
addPublishHelp(
|
|
18071
18071
|
play.command("publish <target>").description(
|
|
@@ -18245,7 +18245,7 @@ Examples:
|
|
|
18245
18245
|
).action(async (runId, options) => {
|
|
18246
18246
|
process.exitCode = await handleRunGet([
|
|
18247
18247
|
runId,
|
|
18248
|
-
...
|
|
18248
|
+
..._chunkQQ2FG5W3js.jsonFieldArgs.call(void 0, options.json),
|
|
18249
18249
|
...options.full ? ["--full"] : [],
|
|
18250
18250
|
...options.input ? ["--input"] : [],
|
|
18251
18251
|
...options.config ? ["--config"] : [],
|
|
@@ -18520,7 +18520,7 @@ Examples:
|
|
|
18520
18520
|
...options.metadataOut ? ["--metadata-out", options.metadataOut] : [],
|
|
18521
18521
|
...options.wait ? ["--wait"] : [],
|
|
18522
18522
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
18523
|
-
...
|
|
18523
|
+
..._chunkQQ2FG5W3js.jsonFieldArgs.call(void 0, options.json)
|
|
18524
18524
|
]);
|
|
18525
18525
|
});
|
|
18526
18526
|
const share = play.command("share").description(
|
|
@@ -18686,10 +18686,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18686
18686
|
return 2;
|
|
18687
18687
|
}
|
|
18688
18688
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18689
|
-
const status = await new (0,
|
|
18689
|
+
const status = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().getSharePage(name);
|
|
18690
18690
|
const outputStatus = shareStatusForOutput(status);
|
|
18691
|
-
if (
|
|
18692
|
-
|
|
18691
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
18692
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, outputStatus);
|
|
18693
18693
|
return 0;
|
|
18694
18694
|
}
|
|
18695
18695
|
if (!outputStatus.share) {
|
|
@@ -18728,7 +18728,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18728
18728
|
return 2;
|
|
18729
18729
|
}
|
|
18730
18730
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18731
|
-
const client = new (0,
|
|
18731
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
18732
18732
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18733
18733
|
let resolvedVersion;
|
|
18734
18734
|
if (!revisionId) {
|
|
@@ -18759,8 +18759,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18759
18759
|
);
|
|
18760
18760
|
if (!hasCompleted) {
|
|
18761
18761
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18762
|
-
if (
|
|
18763
|
-
|
|
18762
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
18763
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, {
|
|
18764
18764
|
ok: false,
|
|
18765
18765
|
code: "NO_SUCCESSFUL_RUN",
|
|
18766
18766
|
message,
|
|
@@ -18784,8 +18784,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18784
18784
|
};
|
|
18785
18785
|
if (args.includes("--dry-run")) {
|
|
18786
18786
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
18787
|
-
if (
|
|
18788
|
-
|
|
18787
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
18788
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, plan);
|
|
18789
18789
|
} else {
|
|
18790
18790
|
console.log(
|
|
18791
18791
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -18795,8 +18795,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18795
18795
|
}
|
|
18796
18796
|
const status = await client.publishSharePage(name, request);
|
|
18797
18797
|
const outputStatus = shareStatusForOutput(status);
|
|
18798
|
-
if (
|
|
18799
|
-
|
|
18798
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
18799
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, outputStatus);
|
|
18800
18800
|
return 0;
|
|
18801
18801
|
}
|
|
18802
18802
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18827,9 +18827,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
18827
18827
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
18828
18828
|
...seoIndexing ? { seoIndexing } : {}
|
|
18829
18829
|
};
|
|
18830
|
-
const status = await new (0,
|
|
18831
|
-
if (
|
|
18832
|
-
|
|
18830
|
+
const status = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().updateSharePage(name, request);
|
|
18831
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
18832
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, status);
|
|
18833
18833
|
return 0;
|
|
18834
18834
|
}
|
|
18835
18835
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -18844,7 +18844,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18844
18844
|
return 2;
|
|
18845
18845
|
}
|
|
18846
18846
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18847
|
-
const client = new (0,
|
|
18847
|
+
const client = new (0, _chunkMNKDSR2Jjs.DeeplineClient)();
|
|
18848
18848
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18849
18849
|
const versionFlag = shareFlagValue(args, "--version");
|
|
18850
18850
|
if (!revisionId && versionFlag) {
|
|
@@ -18861,8 +18861,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18861
18861
|
revisionId ? { revisionId } : {}
|
|
18862
18862
|
);
|
|
18863
18863
|
const outputStatus = shareStatusForOutput(status);
|
|
18864
|
-
if (
|
|
18865
|
-
|
|
18864
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
18865
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, outputStatus);
|
|
18866
18866
|
return 0;
|
|
18867
18867
|
}
|
|
18868
18868
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18887,9 +18887,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
18887
18887
|
return 2;
|
|
18888
18888
|
}
|
|
18889
18889
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
18890
|
-
const status = await new (0,
|
|
18891
|
-
if (
|
|
18892
|
-
|
|
18890
|
+
const status = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().unpublishSharePage(name);
|
|
18891
|
+
if (_chunkQQ2FG5W3js.argsWantJson.call(void 0, args)) {
|
|
18892
|
+
_chunkQQ2FG5W3js.printCompactJson.call(void 0, status);
|
|
18893
18893
|
return 0;
|
|
18894
18894
|
}
|
|
18895
18895
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|