deepline 0.3.405 → 0.3.407
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/client.ts +54 -57
- package/dist/bundling-sources/sdk/src/play.ts +8 -5
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +4 -3
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +43 -4
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machine-lifecycle.ts +101 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/gateway-adapter.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +87 -28
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -1
- package/dist/cli/auth-4JTX6AGM.js +40 -0
- package/dist/cli/{auth-D4GXO4IN.mjs → auth-WURWNNLE.mjs} +4 -4
- package/dist/cli/{billing-TQ4UM4D4.js → billing-2QJGXGJX.js} +73 -73
- package/dist/cli/{billing-NVV5VSUJ.mjs → billing-BP3E6WIM.mjs} +4 -4
- package/dist/cli/{chunk-TECEX3K5.mjs → chunk-4TV43THC.mjs} +3 -3
- package/dist/cli/{chunk-YX7JSSJ2.mjs → chunk-6JZZNP5G.mjs} +2 -2
- package/dist/cli/{chunk-LM2JHRZM.js → chunk-7LKYHZVB.js} +1 -1
- package/dist/cli/{chunk-3DWMYKWU.mjs → chunk-BKC6VMYZ.mjs} +1 -1
- package/dist/cli/{chunk-JPNBAZBR.js → chunk-D2ZRMZKF.js} +6 -6
- package/dist/cli/{chunk-BZBV2GY2.js → chunk-G4LJS2RE.js} +8 -8
- package/dist/cli/{chunk-MZ4LBCV7.js → chunk-G6U74WNM.js} +15 -15
- package/dist/cli/{chunk-3MVBOBV4.js → chunk-H6EWQFPQ.js} +2 -2
- package/dist/cli/{chunk-AAIV3ACM.js → chunk-IY6GKJ4O.js} +50 -50
- package/dist/cli/{chunk-HG5PMETP.mjs → chunk-J67NU4MQ.mjs} +55 -58
- package/dist/cli/{chunk-HYAA3F6U.js → chunk-KUQAU5MG.js} +60 -63
- package/dist/cli/{chunk-B6ME2XIO.mjs → chunk-L25GBGQU.mjs} +5 -5
- package/dist/cli/{chunk-4ONG2MWB.mjs → chunk-N6OAMAO5.mjs} +1 -1
- package/dist/cli/{chunk-EVLCUV64.mjs → chunk-P7HOTKOK.mjs} +4 -4
- package/dist/cli/{chunk-YRZIKG47.mjs → chunk-QJAX7QN7.mjs} +2 -2
- package/dist/cli/{chunk-NAJEB3N4.js → chunk-RMZAOYDN.js} +44 -44
- package/dist/cli/{chunk-6HXTHMHZ.js → chunk-RZLXVHNO.js} +26 -26
- package/dist/cli/{chunk-NLT6GCWZ.js → chunk-SOQIPKF2.js} +8 -8
- package/dist/cli/{chunk-CB6AJNHI.js → chunk-THHM4DPE.js} +4 -4
- package/dist/cli/{chunk-3FF3SPSE.mjs → chunk-UFFSOV6I.mjs} +2 -2
- package/dist/cli/{chunk-EKWJXPIX.mjs → chunk-UPEOEYZ3.mjs} +1 -1
- package/dist/cli/{chunk-MPXPTSGJ.mjs → chunk-XT6GG3QO.mjs} +3 -3
- package/dist/cli/{chunk-WGX7SIGL.js → chunk-Y6CX4QPR.js} +65 -65
- package/dist/cli/{chunk-TPYRDAU7.mjs → chunk-ZBCTXQ3P.mjs} +1 -1
- package/dist/cli/{csv-5AASYDRF.js → csv-7E5BE23B.js} +12 -12
- package/dist/cli/{csv-H7LD6IQK.mjs → csv-N6KYTG7L.mjs} +3 -3
- package/dist/cli/{db-MJBZBDWZ.js → db-4VLZP33O.js} +25 -25
- package/dist/cli/{db-CG3UQUA7.mjs → db-XMBJNVBD.mjs} +4 -4
- package/dist/cli/{describe-2A7GARI2.js → describe-4I6EIVXD.js} +10 -10
- package/dist/cli/{describe-INFC5ACQ.mjs → describe-WERH4TD2.mjs} +6 -6
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-DO47P6MX.mjs → executions-JWQXE7G6.mjs} +4 -4
- package/dist/cli/{executions-AUDQ5HOJ.js → executions-W7TWJRBK.js} +6 -6
- package/dist/cli/{feedback-MNWNDZVU.js → feedback-FMGRC6KO.js} +7 -7
- package/dist/cli/{feedback-XGZSJM2N.mjs → feedback-OEJFX4F7.mjs} +3 -3
- package/dist/cli/{git-2ECFQKAA.mjs → git-IVC4KHXX.mjs} +4 -4
- package/dist/cli/git-OFXE7G4X.js +24 -0
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-534TKEMO.mjs → legacy-noops-LT36CLWZ.mjs} +4 -4
- package/dist/cli/{legacy-noops-3UZTD4DS.js → legacy-noops-X3BQ7MUK.js} +7 -7
- package/dist/cli/{monitors-G4S54JSX.js → monitors-DLIIAVLW.js} +84 -84
- package/dist/cli/{monitors-5ARELE2S.mjs → monitors-MNLCELF7.mjs} +4 -4
- package/dist/cli/{org-RIWF2TLI.js → org-CYHDEW7P.js} +64 -64
- package/dist/cli/{org-BAMOOXQW.mjs → org-QV5LMUPT.mjs} +4 -4
- package/dist/cli/{play-WV4UNGPR.mjs → play-5Z4ROZ3P.mjs} +7 -7
- package/dist/cli/{play-32XSQMFK.js → play-MEFXC2QA.js} +231 -231
- package/dist/cli/{providers-XKY2CNKH.js → providers-2MKUNFBQ.js} +7 -7
- package/dist/cli/{providers-SMSRO23R.mjs → providers-FJLYSHB3.mjs} +4 -4
- package/dist/cli/{quickstart-BFYYEVSS.mjs → quickstart-PQO3OQRT.mjs} +3 -3
- package/dist/cli/{quickstart-Q2TA72HD.js → quickstart-ULWXKAOT.js} +5 -5
- package/dist/cli/search-ANKSJ224.js +30 -0
- package/dist/cli/{search-I2TVB2P5.mjs → search-KGAAXMDG.mjs} +5 -5
- package/dist/cli/{secrets-BHKICIE3.mjs → secrets-PD5I3KAF.mjs} +4 -4
- package/dist/cli/{secrets-B4NYTSL7.js → secrets-X2VGG2PO.js} +13 -13
- package/dist/cli/{sessions-IOR2ZNNH.mjs → sessions-3WVEU4PE.mjs} +4 -4
- package/dist/cli/{sessions-XY2UREJ7.js → sessions-R3XAKTBQ.js} +5 -5
- package/dist/cli/{settings-W6S7B4NH.mjs → settings-645RSFQX.mjs} +7 -7
- package/dist/cli/{settings-ASGROQDE.js → settings-ZIDO3IP6.js} +74 -74
- package/dist/cli/{setup-YIYQ73OV.js → setup-LH5HOZ3D.js} +41 -41
- package/dist/cli/{setup-UUWGI3IN.mjs → setup-LISKIJKP.mjs} +6 -6
- package/dist/cli/{skills-CHA4QCGI.mjs → skills-VVQJHLSF.mjs} +4 -4
- package/dist/cli/skills-WLHYSVQA.js +29 -0
- package/dist/cli/{tools-43ZFJWAQ.js → tools-FTPJCNAM.js} +7 -7
- package/dist/cli/{tools-PMZDYKTT.mjs → tools-Y3LOMXFT.mjs} +6 -6
- package/dist/cli/update-A622H2DZ.js +29 -0
- package/dist/cli/{update-6VSEGTSG.mjs → update-DOBNQNJI.mjs} +6 -6
- package/dist/cli/{workflow-26EOXZ7M.js → workflow-LGENKZBV.js} +15 -15
- package/dist/cli/{workflow-SVMVLQOF.mjs → workflow-ZMAA5VCN.mjs} +5 -5
- package/dist/{client-Buv1_ktG.d.mts → client-6rEB46Lv.d.mts} +55 -57
- package/dist/{client-Db1jFLpF.d.ts → client-IrPHUE5J.d.ts} +55 -57
- package/dist/{compiler-manifest-N77W75Py.d.ts → compiler-manifest-BHnXE43X.d.mts} +6 -1
- package/dist/{compiler-manifest-N77W75Py.d.mts → compiler-manifest-BHnXE43X.d.ts} +6 -1
- package/dist/{index-3WOfyVhW.d.mts → index-Da_Y8z5e.d.mts} +1 -1
- package/dist/{index-CtIJFTCl.d.ts → index-SODb2ROS.d.ts} +1 -1
- package/dist/index.d.mts +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.js +8 -8
- package/dist/index.mjs +5 -5
- package/dist/install-integrity.json +76 -76
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.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-IJKAKAHG.js +0 -40
- package/dist/cli/git-6S64UBWC.js +0 -24
- package/dist/cli/search-GK7P3AZY.js +0 -30
- package/dist/cli/skills-LKNKHB2I.js +0 -29
- package/dist/cli/update-R7FODDIW.js +0 -29
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
var _chunkZAAKSJASjs = require('./chunk-ZAAKSJAS.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkG4LJS2REjs = require('./chunk-G4LJS2RE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkRZLXVHNOjs = require('./chunk-RZLXVHNO.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
var _chunkBQR6UN3Cjs = require('./chunk-BQR6UN3C.js');
|
|
@@ -45,7 +45,7 @@ require('./chunk-Z4VNJOF7.js');
|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
|
-
var
|
|
48
|
+
var _chunkKUQAU5MGjs = require('./chunk-KUQAU5MG.js');
|
|
49
49
|
require('./chunk-S6R3OX7B.js');
|
|
50
50
|
|
|
51
51
|
|
|
@@ -84,16 +84,16 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
var
|
|
87
|
+
var _chunkD2ZRMZKFjs = require('./chunk-D2ZRMZKF.js');
|
|
88
88
|
|
|
89
89
|
|
|
90
|
-
var
|
|
90
|
+
var _chunkTHHM4DPEjs = require('./chunk-THHM4DPE.js');
|
|
91
91
|
require('./chunk-Q2E4E4FJ.js');
|
|
92
92
|
require('./chunk-XNYIZMNQ.js');
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
96
|
-
require('./chunk-
|
|
96
|
+
require('./chunk-7LKYHZVB.js');
|
|
97
97
|
require('./chunk-OG64RBAC.js');
|
|
98
98
|
|
|
99
99
|
|
|
@@ -2075,7 +2075,7 @@ function resolveField(key, command) {
|
|
|
2075
2075
|
function printSettings(result, json, name) {
|
|
2076
2076
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2077
2077
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2078
|
-
|
|
2078
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
2079
2079
|
{
|
|
2080
2080
|
...result,
|
|
2081
2081
|
settings: Object.fromEntries(
|
|
@@ -2119,7 +2119,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2119
2119
|
valueSyntax: field.cli.valueSyntax,
|
|
2120
2120
|
examples: field.cli.examples
|
|
2121
2121
|
}));
|
|
2122
|
-
|
|
2122
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
2123
2123
|
{
|
|
2124
2124
|
fields: descriptions,
|
|
2125
2125
|
render: {
|
|
@@ -2144,7 +2144,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2144
2144
|
async (options, command) => {
|
|
2145
2145
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2146
2146
|
printSettings(
|
|
2147
|
-
await new (0,
|
|
2147
|
+
await new (0, _chunkKUQAU5MGjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2148
2148
|
options.json,
|
|
2149
2149
|
options.name
|
|
2150
2150
|
);
|
|
@@ -2175,7 +2175,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2175
2175
|
);
|
|
2176
2176
|
}
|
|
2177
2177
|
if (options.dryRun) {
|
|
2178
|
-
|
|
2178
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
2179
2179
|
{
|
|
2180
2180
|
dryRun: true,
|
|
2181
2181
|
play,
|
|
@@ -2196,7 +2196,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2196
2196
|
return;
|
|
2197
2197
|
}
|
|
2198
2198
|
printSettings(
|
|
2199
|
-
await new (0,
|
|
2199
|
+
await new (0, _chunkKUQAU5MGjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2200
2200
|
options.json
|
|
2201
2201
|
);
|
|
2202
2202
|
};
|
|
@@ -2222,13 +2222,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2222
2222
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2223
2223
|
{ exitCode: 2 }
|
|
2224
2224
|
);
|
|
2225
|
-
const page = await new (0,
|
|
2225
|
+
const page = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2226
2226
|
root: options.root,
|
|
2227
2227
|
limit,
|
|
2228
2228
|
cursor: options.cursor
|
|
2229
2229
|
});
|
|
2230
2230
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2231
|
-
|
|
2231
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
2232
2232
|
{
|
|
2233
2233
|
...page,
|
|
2234
2234
|
nextCommand,
|
|
@@ -2279,7 +2279,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2279
2279
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2280
2280
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2281
2281
|
};
|
|
2282
|
-
const client = new (0,
|
|
2282
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
2283
2283
|
const paths = [];
|
|
2284
2284
|
let cursor;
|
|
2285
2285
|
do {
|
|
@@ -2341,7 +2341,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2341
2341
|
moved.push(move.playName);
|
|
2342
2342
|
}
|
|
2343
2343
|
}
|
|
2344
|
-
|
|
2344
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
2345
2345
|
{
|
|
2346
2346
|
dryRun: Boolean(options.dryRun),
|
|
2347
2347
|
from: options.from,
|
|
@@ -2469,7 +2469,7 @@ function triggerLines(view) {
|
|
|
2469
2469
|
return lines;
|
|
2470
2470
|
}
|
|
2471
2471
|
function printView(view, json) {
|
|
2472
|
-
|
|
2472
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
2473
2473
|
{
|
|
2474
2474
|
...view,
|
|
2475
2475
|
render: {
|
|
@@ -2482,7 +2482,7 @@ function printView(view, json) {
|
|
|
2482
2482
|
);
|
|
2483
2483
|
}
|
|
2484
2484
|
function printResult(result, json) {
|
|
2485
|
-
|
|
2485
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
2486
2486
|
{
|
|
2487
2487
|
...result,
|
|
2488
2488
|
render: {
|
|
@@ -2512,7 +2512,7 @@ async function mutate(command, options, build) {
|
|
|
2512
2512
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2513
2513
|
}
|
|
2514
2514
|
if (options.dryRun) {
|
|
2515
|
-
|
|
2515
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
2516
2516
|
{
|
|
2517
2517
|
dryRun: true,
|
|
2518
2518
|
play: options.play,
|
|
@@ -2531,7 +2531,7 @@ async function mutate(command, options, build) {
|
|
|
2531
2531
|
return;
|
|
2532
2532
|
}
|
|
2533
2533
|
printResult(
|
|
2534
|
-
await new (0,
|
|
2534
|
+
await new (0, _chunkKUQAU5MGjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2535
2535
|
options.json
|
|
2536
2536
|
);
|
|
2537
2537
|
}
|
|
@@ -2564,7 +2564,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2564
2564
|
}).addHelpText("after", help2);
|
|
2565
2565
|
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
|
|
2566
2566
|
printView(
|
|
2567
|
-
await new (0,
|
|
2567
|
+
await new (0, _chunkKUQAU5MGjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2568
2568
|
options.json
|
|
2569
2569
|
);
|
|
2570
2570
|
});
|
|
@@ -2608,7 +2608,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2608
2608
|
if (options.auth === void 0) {
|
|
2609
2609
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2610
2610
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2611
|
-
const current = await new (0,
|
|
2611
|
+
const current = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2612
2612
|
options.play
|
|
2613
2613
|
);
|
|
2614
2614
|
return {
|
|
@@ -2685,7 +2685,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2685
2685
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2686
2686
|
"runtime.event": "Other event."
|
|
2687
2687
|
};
|
|
2688
|
-
var RUN_LOGS_KIND_HELP =
|
|
2688
|
+
var RUN_LOGS_KIND_HELP = _chunkKUQAU5MGjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2689
2689
|
kind,
|
|
2690
2690
|
description: KIND_DESCRIPTIONS[kind]
|
|
2691
2691
|
}));
|
|
@@ -2822,9 +2822,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2822
2822
|
const args = program.args;
|
|
2823
2823
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2824
2824
|
error.exitCode = 2;
|
|
2825
|
-
if (
|
|
2826
|
-
|
|
2827
|
-
Object.assign(new (0,
|
|
2825
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2826
|
+
_chunkD2ZRMZKFjs.printJsonError.call(void 0,
|
|
2827
|
+
Object.assign(new (0, _chunkKUQAU5MGjs.RunEventQueryInputError)(error.message), {
|
|
2828
2828
|
exitCode: 2,
|
|
2829
2829
|
retryable: false
|
|
2830
2830
|
})
|
|
@@ -2868,14 +2868,14 @@ function parseQuery(args, resource) {
|
|
|
2868
2868
|
if (VALUE_FLAGS.has(flag)) {
|
|
2869
2869
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2870
2870
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2871
|
-
throw new (0,
|
|
2871
|
+
throw new (0, _chunkKUQAU5MGjs.RunEventQueryInputError)(
|
|
2872
2872
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2873
2873
|
);
|
|
2874
2874
|
}
|
|
2875
2875
|
if (flag === "--sum") sums.push(value);
|
|
2876
2876
|
else {
|
|
2877
2877
|
if (values[flag] !== void 0) {
|
|
2878
|
-
throw new (0,
|
|
2878
|
+
throw new (0, _chunkKUQAU5MGjs.RunEventQueryInputError)(
|
|
2879
2879
|
`${flag} may only be supplied once.`
|
|
2880
2880
|
);
|
|
2881
2881
|
}
|
|
@@ -2889,12 +2889,12 @@ function parseQuery(args, resource) {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
if (arg.startsWith("-")) {
|
|
2891
2891
|
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.";
|
|
2892
|
-
throw new (0,
|
|
2892
|
+
throw new (0, _chunkKUQAU5MGjs.RunEventQueryInputError)(
|
|
2893
2893
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2894
2894
|
);
|
|
2895
2895
|
}
|
|
2896
2896
|
if (runId !== void 0) {
|
|
2897
|
-
throw new (0,
|
|
2897
|
+
throw new (0, _chunkKUQAU5MGjs.RunEventQueryInputError)(
|
|
2898
2898
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2899
2899
|
);
|
|
2900
2900
|
}
|
|
@@ -2902,7 +2902,7 @@ function parseQuery(args, resource) {
|
|
|
2902
2902
|
}
|
|
2903
2903
|
if (switches.has("--fields")) {
|
|
2904
2904
|
if (runId !== void 0) {
|
|
2905
|
-
throw new (0,
|
|
2905
|
+
throw new (0, _chunkKUQAU5MGjs.RunEventQueryInputError)(
|
|
2906
2906
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2907
2907
|
);
|
|
2908
2908
|
}
|
|
@@ -2915,18 +2915,18 @@ function parseQuery(args, resource) {
|
|
|
2915
2915
|
)
|
|
2916
2916
|
];
|
|
2917
2917
|
if (incompatible.length) {
|
|
2918
|
-
throw new (0,
|
|
2918
|
+
throw new (0, _chunkKUQAU5MGjs.RunEventQueryInputError)(
|
|
2919
2919
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2920
2920
|
);
|
|
2921
2921
|
}
|
|
2922
2922
|
}
|
|
2923
2923
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2924
|
-
throw new (0,
|
|
2924
|
+
throw new (0, _chunkKUQAU5MGjs.RunEventQueryInputError)(
|
|
2925
2925
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2926
2926
|
);
|
|
2927
2927
|
}
|
|
2928
2928
|
if (sums.length && switches.has("--count")) {
|
|
2929
|
-
throw new (0,
|
|
2929
|
+
throw new (0, _chunkKUQAU5MGjs.RunEventQueryInputError)(
|
|
2930
2930
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2931
2931
|
);
|
|
2932
2932
|
}
|
|
@@ -2934,7 +2934,7 @@ function parseQuery(args, resource) {
|
|
|
2934
2934
|
if (operation === "count") {
|
|
2935
2935
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2936
2936
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2937
|
-
throw new (0,
|
|
2937
|
+
throw new (0, _chunkKUQAU5MGjs.RunEventQueryInputError)(
|
|
2938
2938
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2939
2939
|
);
|
|
2940
2940
|
}
|
|
@@ -2969,16 +2969,16 @@ function parseQuery(args, resource) {
|
|
|
2969
2969
|
];
|
|
2970
2970
|
}
|
|
2971
2971
|
}
|
|
2972
|
-
const request =
|
|
2972
|
+
const request = _chunkKUQAU5MGjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2973
2973
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2974
2974
|
const backend = values["--runtime-backend"];
|
|
2975
2975
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2976
|
-
throw new (0,
|
|
2976
|
+
throw new (0, _chunkKUQAU5MGjs.RunEventQueryInputError)(
|
|
2977
2977
|
"--runtime-backend must be daytona or modal."
|
|
2978
2978
|
);
|
|
2979
2979
|
}
|
|
2980
2980
|
if (backend && !namespace) {
|
|
2981
|
-
throw new (0,
|
|
2981
|
+
throw new (0, _chunkKUQAU5MGjs.RunEventQueryInputError)(
|
|
2982
2982
|
"--runtime-backend requires --runtime-namespace."
|
|
2983
2983
|
);
|
|
2984
2984
|
}
|
|
@@ -3025,12 +3025,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3025
3025
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3026
3026
|
const record3 = failure;
|
|
3027
3027
|
const status = record3.statusCode;
|
|
3028
|
-
const exitCode = error instanceof
|
|
3028
|
+
const exitCode = error instanceof _chunkKUQAU5MGjs.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;
|
|
3029
3029
|
const diagnostic = Object.assign(failure, {
|
|
3030
3030
|
exitCode,
|
|
3031
3031
|
retryable: exitCode === 5
|
|
3032
3032
|
});
|
|
3033
|
-
if (
|
|
3033
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) _chunkD2ZRMZKFjs.printJsonError.call(void 0, diagnostic);
|
|
3034
3034
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3035
3035
|
return exitCode;
|
|
3036
3036
|
}
|
|
@@ -3045,7 +3045,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3045
3045
|
...criteria
|
|
3046
3046
|
} = request;
|
|
3047
3047
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3048
|
-
const client = new (0,
|
|
3048
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
3049
3049
|
let result;
|
|
3050
3050
|
if (request.operation === "fields") {
|
|
3051
3051
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3111,13 +3111,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3111
3111
|
lines.push(`Next page: ${nextPage}`);
|
|
3112
3112
|
}
|
|
3113
3113
|
}
|
|
3114
|
-
|
|
3114
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
3115
3115
|
{
|
|
3116
3116
|
...result,
|
|
3117
3117
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3118
3118
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3119
3119
|
},
|
|
3120
|
-
{ json:
|
|
3120
|
+
{ json: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3121
3121
|
` }
|
|
3122
3122
|
);
|
|
3123
3123
|
return 0;
|
|
@@ -4035,7 +4035,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4035
4035
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4036
4036
|
);
|
|
4037
4037
|
}
|
|
4038
|
-
const response = await new (0,
|
|
4038
|
+
const response = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4039
4039
|
keys
|
|
4040
4040
|
});
|
|
4041
4041
|
const failed = response.receipts.filter(
|
|
@@ -4047,7 +4047,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4047
4047
|
JSON.stringify(response, null, 2) + "\n",
|
|
4048
4048
|
{ flag: "wx", mode: 384 }
|
|
4049
4049
|
);
|
|
4050
|
-
|
|
4050
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
4051
4051
|
{
|
|
4052
4052
|
runId,
|
|
4053
4053
|
out: options.out,
|
|
@@ -4057,7 +4057,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4057
4057
|
{ json: true }
|
|
4058
4058
|
);
|
|
4059
4059
|
} else {
|
|
4060
|
-
|
|
4060
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4061
4061
|
}
|
|
4062
4062
|
if (failed)
|
|
4063
4063
|
process.exitCode = response.receipts.some(
|
|
@@ -4096,7 +4096,7 @@ includes nextCommand when another page is available.
|
|
|
4096
4096
|
{ exitCode: 2 }
|
|
4097
4097
|
);
|
|
4098
4098
|
}
|
|
4099
|
-
const page = await new (0,
|
|
4099
|
+
const page = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4100
4100
|
launchKey: options.launchKey,
|
|
4101
4101
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4102
4102
|
limit
|
|
@@ -4111,7 +4111,7 @@ includes nextCommand when another page is available.
|
|
|
4111
4111
|
"--limit",
|
|
4112
4112
|
String(limit)
|
|
4113
4113
|
].join(" ") : null;
|
|
4114
|
-
|
|
4114
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
4115
4115
|
{
|
|
4116
4116
|
parentRunId,
|
|
4117
4117
|
launchKey: options.launchKey,
|
|
@@ -4147,7 +4147,7 @@ async function handleRunsHistory(options) {
|
|
|
4147
4147
|
throw new Error("--limit must be a positive integer.");
|
|
4148
4148
|
}
|
|
4149
4149
|
}
|
|
4150
|
-
const page = await new (0,
|
|
4150
|
+
const page = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().runs.history({
|
|
4151
4151
|
cursor: options.cursor,
|
|
4152
4152
|
orgId: options.org,
|
|
4153
4153
|
search: options.search,
|
|
@@ -4163,7 +4163,7 @@ async function handleRunsHistory(options) {
|
|
|
4163
4163
|
);
|
|
4164
4164
|
}
|
|
4165
4165
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4166
|
-
|
|
4166
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
4167
4167
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4168
4168
|
options.json ? { json: true } : {}
|
|
4169
4169
|
);
|
|
@@ -4215,12 +4215,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4215
4215
|
return 1;
|
|
4216
4216
|
}
|
|
4217
4217
|
}
|
|
4218
|
-
const result = await new (0,
|
|
4218
|
+
const result = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().runs.rerun(runId, {
|
|
4219
4219
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4220
4220
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4221
4221
|
});
|
|
4222
|
-
if (
|
|
4223
|
-
|
|
4222
|
+
if (_chunkD2ZRMZKFjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4223
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4224
4224
|
} else {
|
|
4225
4225
|
console.log(
|
|
4226
4226
|
result.deduplicated === true ? `
|
|
@@ -4488,7 +4488,7 @@ function projectRunDatasetCell(value) {
|
|
|
4488
4488
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
4489
4489
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
4490
4490
|
if (typeof logicalValue === "object") {
|
|
4491
|
-
return
|
|
4491
|
+
return _chunkD2ZRMZKFjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
4492
4492
|
}
|
|
4493
4493
|
return logicalValue;
|
|
4494
4494
|
}
|
|
@@ -6915,7 +6915,7 @@ function renderOutcome(outcome) {
|
|
|
6915
6915
|
function printResult2(input) {
|
|
6916
6916
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6917
6917
|
if (failed) process.exitCode = 1;
|
|
6918
|
-
|
|
6918
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
6919
6919
|
{
|
|
6920
6920
|
deployment: { ...input.deployment, status: input.status },
|
|
6921
6921
|
plays: input.outcomes,
|
|
@@ -6940,7 +6940,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6940
6940
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6941
6941
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6942
6942
|
});
|
|
6943
|
-
const { http, config } =
|
|
6943
|
+
const { http, config } = _chunkD2ZRMZKFjs.getAuthedHttpClient.call(void 0, );
|
|
6944
6944
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6945
6945
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6946
6946
|
deliveryId,
|
|
@@ -6967,7 +6967,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6967
6967
|
},
|
|
6968
6968
|
{
|
|
6969
6969
|
bundle: bundleDeployPlayFile,
|
|
6970
|
-
fetchImpl:
|
|
6970
|
+
fetchImpl: _chunkTHHM4DPEjs.fetchWithDeploymentProtection,
|
|
6971
6971
|
// The plays are already here: "opening" the source is naming it.
|
|
6972
6972
|
openSource: async () => ({
|
|
6973
6973
|
open: async () => ({ repoRoot: root })
|
|
@@ -7535,7 +7535,7 @@ function parseInputFlagValue(raw) {
|
|
|
7535
7535
|
return raw;
|
|
7536
7536
|
}
|
|
7537
7537
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
7538
|
-
const selection =
|
|
7538
|
+
const selection = _chunkD2ZRMZKFjs.parseJsonFields.call(void 0, args, "run");
|
|
7539
7539
|
args = selection.args;
|
|
7540
7540
|
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.";
|
|
7541
7541
|
let filePath = null;
|
|
@@ -7547,7 +7547,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7547
7547
|
let revisionSelector = null;
|
|
7548
7548
|
const watch = !args.includes("--no-wait");
|
|
7549
7549
|
const dryRun = args.includes("--dry-run");
|
|
7550
|
-
let jsonOutput = dryRun ?
|
|
7550
|
+
let jsonOutput = dryRun ? _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args);
|
|
7551
7551
|
const fullJson = args.includes("--full");
|
|
7552
7552
|
const force = args.includes("--force");
|
|
7553
7553
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -7610,7 +7610,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7610
7610
|
"--log-level requires one of: debug, info, warn, error."
|
|
7611
7611
|
);
|
|
7612
7612
|
}
|
|
7613
|
-
const parsed =
|
|
7613
|
+
const parsed = _chunkKUQAU5MGjs.parseLogLevel.call(void 0, value);
|
|
7614
7614
|
if (!parsed) {
|
|
7615
7615
|
throw new Error(
|
|
7616
7616
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -7928,7 +7928,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7928
7928
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
7929
7929
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
7930
7930
|
);
|
|
7931
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
7931
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkKUQAU5MGjs.parseLogLevel.call(void 0, options.logLevel);
|
|
7932
7932
|
if (!logLevel)
|
|
7933
7933
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
7934
7934
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -7942,13 +7942,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7942
7942
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
7943
7943
|
logLevel = "debug";
|
|
7944
7944
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
7945
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
7946
|
-
[...fullJson ? ["--full"] : [], ...
|
|
7945
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkD2ZRMZKFjs.parseJsonFields.call(void 0,
|
|
7946
|
+
[...fullJson ? ["--full"] : [], ..._chunkD2ZRMZKFjs.jsonFieldArgs.call(void 0, options.json)],
|
|
7947
7947
|
"run"
|
|
7948
7948
|
).fields;
|
|
7949
7949
|
const watch = options.wait === false ? false : base.watch;
|
|
7950
7950
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
7951
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
7951
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkD2ZRMZKFjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
7952
7952
|
const verboseLogs = Boolean(
|
|
7953
7953
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
7954
7954
|
);
|
|
@@ -7995,7 +7995,7 @@ function playAuthoringGraphPath(parent, filePath) {
|
|
|
7995
7995
|
// src/cli/renderers/local-play-execution.ts
|
|
7996
7996
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7997
7997
|
if (options.dryRun) {
|
|
7998
|
-
|
|
7998
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7999
7999
|
return;
|
|
8000
8000
|
}
|
|
8001
8001
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -8959,7 +8959,7 @@ function playStatusErrorText(status) {
|
|
|
8959
8959
|
function isRetryablePendingStartFailure(status) {
|
|
8960
8960
|
if (status.status !== "failed") return false;
|
|
8961
8961
|
if (status.runId && status.runId !== "pending") return false;
|
|
8962
|
-
return
|
|
8962
|
+
return _chunkKUQAU5MGjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8963
8963
|
}
|
|
8964
8964
|
function pendingStartFailureStatus(input) {
|
|
8965
8965
|
const message = input.error instanceof Error ? input.error.message : String(input.error);
|
|
@@ -8986,13 +8986,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
|
8986
8986
|
var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
8987
8987
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8988
8988
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8989
|
-
if (!
|
|
8989
|
+
if (!_chunkKUQAU5MGjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8990
8990
|
return false;
|
|
8991
8991
|
}
|
|
8992
|
-
if (
|
|
8992
|
+
if (_chunkKUQAU5MGjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8993
8993
|
return true;
|
|
8994
8994
|
}
|
|
8995
|
-
return state.verbose === true &&
|
|
8995
|
+
return state.verbose === true && _chunkKUQAU5MGjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8996
8996
|
}
|
|
8997
8997
|
function getEventPayload(event) {
|
|
8998
8998
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9494,7 +9494,7 @@ function resolveRunPlayName(status, runId) {
|
|
|
9494
9494
|
}
|
|
9495
9495
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
9496
9496
|
if (open2 && dashboardUrl) {
|
|
9497
|
-
|
|
9497
|
+
_chunkD2ZRMZKFjs.openInBrowser.call(void 0, dashboardUrl);
|
|
9498
9498
|
}
|
|
9499
9499
|
}
|
|
9500
9500
|
function printPlayLogLines(input) {
|
|
@@ -9556,7 +9556,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9556
9556
|
billing: false
|
|
9557
9557
|
});
|
|
9558
9558
|
} catch (error) {
|
|
9559
|
-
if (
|
|
9559
|
+
if (_chunkKUQAU5MGjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9560
9560
|
return null;
|
|
9561
9561
|
}
|
|
9562
9562
|
throw error;
|
|
@@ -9754,7 +9754,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9754
9754
|
billing: false
|
|
9755
9755
|
});
|
|
9756
9756
|
} catch (error) {
|
|
9757
|
-
if (
|
|
9757
|
+
if (_chunkKUQAU5MGjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9758
9758
|
return null;
|
|
9759
9759
|
}
|
|
9760
9760
|
throw error;
|
|
@@ -9962,7 +9962,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9962
9962
|
lastPhase
|
|
9963
9963
|
});
|
|
9964
9964
|
}
|
|
9965
|
-
if (lastKnownWorkflowId &&
|
|
9965
|
+
if (lastKnownWorkflowId && _chunkKUQAU5MGjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9966
9966
|
if (timeout) {
|
|
9967
9967
|
clearTimeout(timeout);
|
|
9968
9968
|
}
|
|
@@ -9998,7 +9998,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9998
9998
|
onRunAdmitted: confirmAdmission
|
|
9999
9999
|
});
|
|
10000
10000
|
}
|
|
10001
|
-
if (!lastKnownWorkflowId &&
|
|
10001
|
+
if (!lastKnownWorkflowId && _chunkKUQAU5MGjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
10002
10002
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
10003
10003
|
phase: "cli.play_start_stream_transient_failure",
|
|
10004
10004
|
ms: Date.now() - startedAt,
|
|
@@ -10097,7 +10097,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10097
10097
|
"logs"
|
|
10098
10098
|
]);
|
|
10099
10099
|
function formatPlayLogLine(rawLine, state) {
|
|
10100
|
-
const classified =
|
|
10100
|
+
const classified = _chunkKUQAU5MGjs.classifyLogLine.call(void 0, rawLine);
|
|
10101
10101
|
const line = classified.line;
|
|
10102
10102
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10103
10103
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _317 => _317[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10112,14 +10112,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10112
10112
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10113
10113
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10114
10114
|
if (providerWait && !state.verbose) {
|
|
10115
|
-
return
|
|
10115
|
+
return _chunkKUQAU5MGjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10116
10116
|
}
|
|
10117
10117
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10118
10118
|
if (mapProgress && !state.verbose) {
|
|
10119
|
-
return
|
|
10119
|
+
return _chunkKUQAU5MGjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10120
10120
|
}
|
|
10121
10121
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10122
|
-
if (!
|
|
10122
|
+
if (!_chunkKUQAU5MGjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10123
10123
|
return null;
|
|
10124
10124
|
}
|
|
10125
10125
|
if (state.emittedRunnerStarted) {
|
|
@@ -10132,7 +10132,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10132
10132
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10133
10133
|
);
|
|
10134
10134
|
if (mapStart) {
|
|
10135
|
-
if (!
|
|
10135
|
+
if (!_chunkKUQAU5MGjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10136
10136
|
return null;
|
|
10137
10137
|
}
|
|
10138
10138
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10142,7 +10142,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10142
10142
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10143
10143
|
);
|
|
10144
10144
|
if (mapDone) {
|
|
10145
|
-
if (!
|
|
10145
|
+
if (!_chunkKUQAU5MGjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10146
10146
|
return null;
|
|
10147
10147
|
}
|
|
10148
10148
|
const [, results, executed, cached] = mapDone;
|
|
@@ -11429,7 +11429,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11429
11429
|
(line) => typeof line === "string"
|
|
11430
11430
|
);
|
|
11431
11431
|
if (tail.length === 0) return [];
|
|
11432
|
-
const shown = tail.map((line) =>
|
|
11432
|
+
const shown = tail.map((line) => _chunkKUQAU5MGjs.classifyLogLine.call(void 0, line)).filter(
|
|
11433
11433
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11434
11434
|
).slice(-8);
|
|
11435
11435
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11712,7 +11712,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11712
11712
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _398 => _398.hits]), () => ( null));
|
|
11713
11713
|
if (jsonOutput) {
|
|
11714
11714
|
const payload2 = _optionalChain([options, 'optionalAccess', _399 => _399.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11715
|
-
|
|
11715
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
11716
11716
|
hits ? { ...payload2, hits } : payload2,
|
|
11717
11717
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _400 => _400.jsonFields]) }
|
|
11718
11718
|
);
|
|
@@ -11728,7 +11728,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11728
11728
|
...buildPlayCompletionTextLines(status),
|
|
11729
11729
|
...formatRunHitsLines(hits)
|
|
11730
11730
|
];
|
|
11731
|
-
|
|
11731
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11732
11732
|
json: false,
|
|
11733
11733
|
text: `${lines2.join("\n")}
|
|
11734
11734
|
`
|
|
@@ -11779,7 +11779,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11779
11779
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11780
11780
|
const compact = compactPlayStatus(status);
|
|
11781
11781
|
const payload = _optionalChain([options, 'optionalAccess', _402 => _402.fullJson]) ? status : compact;
|
|
11782
|
-
|
|
11782
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
11783
11783
|
{
|
|
11784
11784
|
...payload,
|
|
11785
11785
|
render: {
|
|
@@ -12549,7 +12549,7 @@ function writeStartedPlayRun(input) {
|
|
|
12549
12549
|
dashboardUrl: input.dashboardUrl,
|
|
12550
12550
|
package: input.package
|
|
12551
12551
|
};
|
|
12552
|
-
|
|
12552
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12553
12553
|
json: true,
|
|
12554
12554
|
fields: input.jsonFields
|
|
12555
12555
|
});
|
|
@@ -12571,7 +12571,7 @@ function writeStartedPlayRun(input) {
|
|
|
12571
12571
|
input.progress.writeLine(output2, process.stdout);
|
|
12572
12572
|
return;
|
|
12573
12573
|
}
|
|
12574
|
-
|
|
12574
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12575
12575
|
json: false,
|
|
12576
12576
|
text: `${output2}
|
|
12577
12577
|
`
|
|
@@ -12600,7 +12600,7 @@ function writeStartedPlayRun(input) {
|
|
|
12600
12600
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12601
12601
|
];
|
|
12602
12602
|
if (input.jsonOutput) {
|
|
12603
|
-
|
|
12603
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12604
12604
|
return;
|
|
12605
12605
|
}
|
|
12606
12606
|
if (input.dashboardUrl) {
|
|
@@ -12611,7 +12611,7 @@ function writeStartedPlayRun(input) {
|
|
|
12611
12611
|
input.progress.writeLine(output, process.stdout);
|
|
12612
12612
|
return;
|
|
12613
12613
|
}
|
|
12614
|
-
|
|
12614
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
12615
12615
|
{
|
|
12616
12616
|
...payload,
|
|
12617
12617
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12621,7 +12621,7 @@ function writeStartedPlayRun(input) {
|
|
|
12621
12621
|
);
|
|
12622
12622
|
}
|
|
12623
12623
|
function parsePlayCheckOptions(args) {
|
|
12624
|
-
const selection =
|
|
12624
|
+
const selection = _chunkD2ZRMZKFjs.parseJsonFields.call(void 0, args, "check");
|
|
12625
12625
|
args = selection.args;
|
|
12626
12626
|
const target = args[0];
|
|
12627
12627
|
if (!target || target.startsWith("-")) {
|
|
@@ -12633,7 +12633,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12633
12633
|
if (arg !== "--json" && arg !== "--full")
|
|
12634
12634
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12635
12635
|
}
|
|
12636
|
-
const jsonOutput =
|
|
12636
|
+
const jsonOutput = _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args);
|
|
12637
12637
|
return {
|
|
12638
12638
|
target,
|
|
12639
12639
|
jsonOutput,
|
|
@@ -12709,7 +12709,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12709
12709
|
useLatest,
|
|
12710
12710
|
expectedArtifactHash,
|
|
12711
12711
|
dryRun,
|
|
12712
|
-
jsonOutput:
|
|
12712
|
+
jsonOutput: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)
|
|
12713
12713
|
};
|
|
12714
12714
|
}
|
|
12715
12715
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12750,7 +12750,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12750
12750
|
target,
|
|
12751
12751
|
expectedArtifactHash,
|
|
12752
12752
|
dryRun,
|
|
12753
|
-
jsonOutput:
|
|
12753
|
+
jsonOutput: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)
|
|
12754
12754
|
};
|
|
12755
12755
|
}
|
|
12756
12756
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12961,7 +12961,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12961
12961
|
async function handlePlayCheck(args) {
|
|
12962
12962
|
const options = parsePlayCheckOptions(args);
|
|
12963
12963
|
if (!isFileTarget2(options.target)) {
|
|
12964
|
-
const client = new (0,
|
|
12964
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
12965
12965
|
try {
|
|
12966
12966
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12967
12967
|
command: "check"
|
|
@@ -12990,7 +12990,7 @@ async function handlePlayCheck(args) {
|
|
|
12990
12990
|
},
|
|
12991
12991
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12992
12992
|
};
|
|
12993
|
-
|
|
12993
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, result, {
|
|
12994
12994
|
json: options.jsonOutput,
|
|
12995
12995
|
fields: options.jsonFields,
|
|
12996
12996
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -13000,7 +13000,7 @@ async function handlePlayCheck(args) {
|
|
|
13000
13000
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
13001
13001
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
13002
13002
|
if (options.jsonOutput) {
|
|
13003
|
-
|
|
13003
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
13004
13004
|
{
|
|
13005
13005
|
kind: "play_check",
|
|
13006
13006
|
checked: "named_contract",
|
|
@@ -13042,7 +13042,7 @@ async function handlePlayCheck(args) {
|
|
|
13042
13042
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
13043
13043
|
publishCommand: _optionalChain([primary, 'optionalAccess', _449 => _449.result, 'access', _450 => _450.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
13044
13044
|
});
|
|
13045
|
-
|
|
13045
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, output, {
|
|
13046
13046
|
json: options.jsonOutput,
|
|
13047
13047
|
fields: options.jsonFields,
|
|
13048
13048
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -13096,7 +13096,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13096
13096
|
}
|
|
13097
13097
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13098
13098
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13099
|
-
const client = new (0,
|
|
13099
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
13100
13100
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13101
13101
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
13102
13102
|
playName: node.playName,
|
|
@@ -13173,7 +13173,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13173
13173
|
);
|
|
13174
13174
|
return 0;
|
|
13175
13175
|
}
|
|
13176
|
-
client = new (0,
|
|
13176
|
+
client = new (0, _chunkKUQAU5MGjs.DeeplineClient)(playRunClientOptions(options));
|
|
13177
13177
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
13178
13178
|
if (canDeferCompilerManifest) {
|
|
13179
13179
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -13372,7 +13372,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13372
13372
|
if (options.target.kind !== "name") {
|
|
13373
13373
|
throw new Error("Expected a named play run target.");
|
|
13374
13374
|
}
|
|
13375
|
-
const client = new (0,
|
|
13375
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)(playRunClientOptions(options));
|
|
13376
13376
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13377
13377
|
const playName = options.target.name;
|
|
13378
13378
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -13569,7 +13569,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13569
13569
|
JSON.stringify({
|
|
13570
13570
|
version: 1,
|
|
13571
13571
|
admissionState: "submitted_unknown",
|
|
13572
|
-
baseUrl: new (0,
|
|
13572
|
+
baseUrl: new (0, _chunkKUQAU5MGjs.DeeplineClient)().baseUrl,
|
|
13573
13573
|
...intent
|
|
13574
13574
|
})
|
|
13575
13575
|
);
|
|
@@ -13798,7 +13798,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13798
13798
|
);
|
|
13799
13799
|
return `${lines.join("\n")}
|
|
13800
13800
|
|
|
13801
|
-
${
|
|
13801
|
+
${_chunkD2ZRMZKFjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13802
13802
|
}
|
|
13803
13803
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13804
13804
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13822,7 +13822,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13822
13822
|
}
|
|
13823
13823
|
}
|
|
13824
13824
|
async function handleRunGet(args) {
|
|
13825
|
-
const selection =
|
|
13825
|
+
const selection = _chunkD2ZRMZKFjs.parseJsonFields.call(void 0,
|
|
13826
13826
|
args,
|
|
13827
13827
|
args.includes("--config") ? "config" : "get"
|
|
13828
13828
|
);
|
|
@@ -13835,7 +13835,7 @@ async function handleRunGet(args) {
|
|
|
13835
13835
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13836
13836
|
return 1;
|
|
13837
13837
|
}
|
|
13838
|
-
const client = new (0,
|
|
13838
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
13839
13839
|
const timing = args.includes("--timing");
|
|
13840
13840
|
if (args.includes("--web-url")) {
|
|
13841
13841
|
const status2 = await withRunReadTiming(
|
|
@@ -13850,7 +13850,7 @@ async function handleRunGet(args) {
|
|
|
13850
13850
|
return 1;
|
|
13851
13851
|
}
|
|
13852
13852
|
const dashboardUrl2 = _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13853
|
-
|
|
13853
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
13854
13854
|
{ dashboardUrl: dashboardUrl2 },
|
|
13855
13855
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
13856
13856
|
` }
|
|
@@ -13875,7 +13875,7 @@ async function handleRunGet(args) {
|
|
|
13875
13875
|
"This server does not support recorded configuration reads."
|
|
13876
13876
|
);
|
|
13877
13877
|
}
|
|
13878
|
-
|
|
13878
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
13879
13879
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13880
13880
|
{ json: true, fields: selection.fields }
|
|
13881
13881
|
);
|
|
@@ -13888,7 +13888,7 @@ async function handleRunGet(args) {
|
|
|
13888
13888
|
timing,
|
|
13889
13889
|
() => client.getRunInput(runId)
|
|
13890
13890
|
);
|
|
13891
|
-
|
|
13891
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13892
13892
|
return 0;
|
|
13893
13893
|
}
|
|
13894
13894
|
const full = args.includes("--full");
|
|
@@ -13914,8 +13914,8 @@ async function handleRunGet(args) {
|
|
|
13914
13914
|
) : status;
|
|
13915
13915
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13916
13916
|
const legacyDashboardUrl = legacyPlayName ? _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13917
|
-
if (
|
|
13918
|
-
|
|
13917
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
13918
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
13919
13919
|
{
|
|
13920
13920
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13921
13921
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -13925,7 +13925,7 @@ async function handleRunGet(args) {
|
|
|
13925
13925
|
} else {
|
|
13926
13926
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13927
13927
|
if (legacyDashboardUrl)
|
|
13928
|
-
|
|
13928
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
13929
13929
|
{ dashboardUrl: legacyDashboardUrl },
|
|
13930
13930
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
13931
13931
|
` }
|
|
@@ -13955,10 +13955,10 @@ async function handleRunGet(args) {
|
|
|
13955
13955
|
)
|
|
13956
13956
|
]);
|
|
13957
13957
|
const hitLines = formatRunHitsLines(hits);
|
|
13958
|
-
const json =
|
|
13958
|
+
const json = _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args);
|
|
13959
13959
|
const playName = resolveRunPlayName(status, runId);
|
|
13960
13960
|
const dashboardUrl = playName ? _chunkBQR6UN3Cjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13961
|
-
|
|
13961
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
13962
13962
|
{
|
|
13963
13963
|
...overview,
|
|
13964
13964
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -14062,9 +14062,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
14062
14062
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14063
14063
|
return 1;
|
|
14064
14064
|
}
|
|
14065
|
-
const status = await new (0,
|
|
14066
|
-
if (
|
|
14067
|
-
|
|
14065
|
+
const status = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().runs.status(runId);
|
|
14066
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
14067
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
14068
14068
|
return 0;
|
|
14069
14069
|
}
|
|
14070
14070
|
if (!status.available) {
|
|
@@ -14104,7 +14104,7 @@ async function handleRunsRerun(args) {
|
|
|
14104
14104
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14105
14105
|
return 1;
|
|
14106
14106
|
}
|
|
14107
|
-
const options = { json:
|
|
14107
|
+
const options = { json: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args) };
|
|
14108
14108
|
for (let index = 0; index < args.length; index += 1) {
|
|
14109
14109
|
if (args[index] === "--idempotency-key") {
|
|
14110
14110
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14170,8 +14170,8 @@ ${usage2}
|
|
|
14170
14170
|
Discover Plays: ${next.discover}
|
|
14171
14171
|
Active runs: ${next.running}`
|
|
14172
14172
|
);
|
|
14173
|
-
if (
|
|
14174
|
-
|
|
14173
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
14174
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
14175
14175
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14176
14176
|
{ json: true }
|
|
14177
14177
|
);
|
|
@@ -14186,7 +14186,7 @@ Active runs: ${next.running}`
|
|
|
14186
14186
|
console.error("--offset requires --play.");
|
|
14187
14187
|
return 1;
|
|
14188
14188
|
}
|
|
14189
|
-
const client = new (0,
|
|
14189
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
14190
14190
|
const page = await withRunReadTiming(
|
|
14191
14191
|
"runs list",
|
|
14192
14192
|
"run inventory",
|
|
@@ -14260,7 +14260,7 @@ Active runs: ${next.running}`
|
|
|
14260
14260
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14261
14261
|
);
|
|
14262
14262
|
}
|
|
14263
|
-
|
|
14263
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
14264
14264
|
{
|
|
14265
14265
|
runs,
|
|
14266
14266
|
count: runs.length,
|
|
@@ -14274,7 +14274,7 @@ Active runs: ${next.running}`
|
|
|
14274
14274
|
},
|
|
14275
14275
|
render: { sections: [{ title: "runs", lines }] }
|
|
14276
14276
|
},
|
|
14277
|
-
{ json:
|
|
14277
|
+
{ json: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args) }
|
|
14278
14278
|
);
|
|
14279
14279
|
return 0;
|
|
14280
14280
|
}
|
|
@@ -14304,7 +14304,7 @@ async function handleRunTail(args) {
|
|
|
14304
14304
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14305
14305
|
return 1;
|
|
14306
14306
|
}
|
|
14307
|
-
const parsed =
|
|
14307
|
+
const parsed = _chunkKUQAU5MGjs.parseLogLevel.call(void 0, value);
|
|
14308
14308
|
if (!parsed) {
|
|
14309
14309
|
console.error(
|
|
14310
14310
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14342,9 +14342,9 @@ async function handleRunTail(args) {
|
|
|
14342
14342
|
);
|
|
14343
14343
|
return 1;
|
|
14344
14344
|
}
|
|
14345
|
-
const client = new (0,
|
|
14345
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
14346
14346
|
const jsonLines = args.includes("--jsonl");
|
|
14347
|
-
const jsonOutput = !jsonLines &&
|
|
14347
|
+
const jsonOutput = !jsonLines && _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args);
|
|
14348
14348
|
const compact = args.includes("--compact");
|
|
14349
14349
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14350
14350
|
const compactState = {
|
|
@@ -14425,7 +14425,7 @@ async function handleRunLogs(args) {
|
|
|
14425
14425
|
]);
|
|
14426
14426
|
const cursorIndex = args.indexOf("--cursor");
|
|
14427
14427
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14428
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14428
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkKUQAU5MGjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14429
14429
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14430
14430
|
return handleRunEventSearch(args);
|
|
14431
14431
|
}
|
|
@@ -14459,7 +14459,7 @@ async function handleRunLogs(args) {
|
|
|
14459
14459
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14460
14460
|
return 1;
|
|
14461
14461
|
}
|
|
14462
|
-
const parsed =
|
|
14462
|
+
const parsed = _chunkKUQAU5MGjs.parseLogLevel.call(void 0, value);
|
|
14463
14463
|
if (!parsed) {
|
|
14464
14464
|
console.error(
|
|
14465
14465
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14506,12 +14506,12 @@ async function handleRunLogs(args) {
|
|
|
14506
14506
|
);
|
|
14507
14507
|
return 1;
|
|
14508
14508
|
}
|
|
14509
|
-
const client = new (0,
|
|
14509
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
14510
14510
|
if (outPath) {
|
|
14511
14511
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14512
|
-
const logs = result2.entries.filter((line) =>
|
|
14512
|
+
const logs = result2.entries.filter((line) => _chunkKUQAU5MGjs.logLevelReaches.call(void 0, _chunkKUQAU5MGjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkKUQAU5MGjs.classifyLogLine.call(void 0, line).line);
|
|
14513
14513
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14514
|
-
|
|
14514
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
14515
14515
|
{
|
|
14516
14516
|
runId: result2.runId,
|
|
14517
14517
|
log_path: outPath,
|
|
@@ -14534,7 +14534,7 @@ async function handleRunLogs(args) {
|
|
|
14534
14534
|
]
|
|
14535
14535
|
}
|
|
14536
14536
|
},
|
|
14537
|
-
{ json:
|
|
14537
|
+
{ json: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args) }
|
|
14538
14538
|
);
|
|
14539
14539
|
return 0;
|
|
14540
14540
|
}
|
|
@@ -14565,7 +14565,7 @@ async function handleRunLogs(args) {
|
|
|
14565
14565
|
}
|
|
14566
14566
|
};
|
|
14567
14567
|
const text = buildRunLogsText(filteredResult);
|
|
14568
|
-
|
|
14568
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
14569
14569
|
{
|
|
14570
14570
|
runId: result.runId,
|
|
14571
14571
|
totalCount: result.totalCount,
|
|
@@ -14589,7 +14589,7 @@ async function handleRunLogs(args) {
|
|
|
14589
14589
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14590
14590
|
},
|
|
14591
14591
|
{
|
|
14592
|
-
json:
|
|
14592
|
+
json: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args),
|
|
14593
14593
|
text
|
|
14594
14594
|
}
|
|
14595
14595
|
);
|
|
@@ -14613,7 +14613,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14613
14613
|
);
|
|
14614
14614
|
}
|
|
14615
14615
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14616
|
-
(entry) =>
|
|
14616
|
+
(entry) => _chunkKUQAU5MGjs.logLevelReaches.call(void 0, _chunkKUQAU5MGjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14617
14617
|
);
|
|
14618
14618
|
const selected = matching.slice(-limit);
|
|
14619
14619
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14623,7 +14623,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14623
14623
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _500 => _500.at, 'call', _501 => _501(-1), 'optionalAccess', _502 => _502.seq]), () => ( null)),
|
|
14624
14624
|
truncated: result.truncated || olderMatchesExist,
|
|
14625
14625
|
hasMore: olderMatchesExist,
|
|
14626
|
-
nextCursor: olderMatchesExist ?
|
|
14626
|
+
nextCursor: olderMatchesExist ? _chunkKUQAU5MGjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14627
14627
|
};
|
|
14628
14628
|
}
|
|
14629
14629
|
async function handleRunEventSearch(args) {
|
|
@@ -14690,7 +14690,7 @@ ${usage2}`);
|
|
|
14690
14690
|
namespace,
|
|
14691
14691
|
...backend ? { backend } : {}
|
|
14692
14692
|
} : void 0;
|
|
14693
|
-
const client = new (0,
|
|
14693
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
14694
14694
|
const result = await client.runs.searchEvents({
|
|
14695
14695
|
...runId ? { runId } : {},
|
|
14696
14696
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14762,7 +14762,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14762
14762
|
"--limit",
|
|
14763
14763
|
String(limit)
|
|
14764
14764
|
].join(" ") : null;
|
|
14765
|
-
|
|
14765
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
14766
14766
|
{
|
|
14767
14767
|
events,
|
|
14768
14768
|
nextCursor: result.nextCursor,
|
|
@@ -14773,14 +14773,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14773
14773
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14774
14774
|
},
|
|
14775
14775
|
{
|
|
14776
|
-
json:
|
|
14776
|
+
json: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args),
|
|
14777
14777
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14778
14778
|
}
|
|
14779
14779
|
);
|
|
14780
14780
|
return 0;
|
|
14781
14781
|
}
|
|
14782
14782
|
function buildRunLogsText(result) {
|
|
14783
|
-
const lines = result.entries.map((line) =>
|
|
14783
|
+
const lines = result.entries.map((line) => _chunkKUQAU5MGjs.classifyLogLine.call(void 0, line).line);
|
|
14784
14784
|
if (result.warning) {
|
|
14785
14785
|
if (lines.length > 0) lines.push("");
|
|
14786
14786
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14814,7 +14814,7 @@ async function handleRunStop(args) {
|
|
|
14814
14814
|
reason = args[++index];
|
|
14815
14815
|
}
|
|
14816
14816
|
}
|
|
14817
|
-
const client = new (0,
|
|
14817
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
14818
14818
|
const result = await client.runs.stop(runId, { reason });
|
|
14819
14819
|
const state = resolveRunStopState(result);
|
|
14820
14820
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14829,7 +14829,7 @@ async function handleRunStop(args) {
|
|
|
14829
14829
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14830
14830
|
`inspect: deepline runs get ${runId} --full`
|
|
14831
14831
|
];
|
|
14832
|
-
|
|
14832
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
14833
14833
|
{
|
|
14834
14834
|
...cancelling,
|
|
14835
14835
|
state,
|
|
@@ -14844,7 +14844,7 @@ async function handleRunStop(args) {
|
|
|
14844
14844
|
]
|
|
14845
14845
|
}
|
|
14846
14846
|
},
|
|
14847
|
-
{ json:
|
|
14847
|
+
{ json: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args) }
|
|
14848
14848
|
);
|
|
14849
14849
|
return 0;
|
|
14850
14850
|
}
|
|
@@ -14861,7 +14861,7 @@ async function handleRunStop(args) {
|
|
|
14861
14861
|
];
|
|
14862
14862
|
process.stderr.write(`${lines2.join("\n")}
|
|
14863
14863
|
`);
|
|
14864
|
-
|
|
14864
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
14865
14865
|
{
|
|
14866
14866
|
...result,
|
|
14867
14867
|
render: {
|
|
@@ -14876,7 +14876,7 @@ async function handleRunStop(args) {
|
|
|
14876
14876
|
]
|
|
14877
14877
|
}
|
|
14878
14878
|
},
|
|
14879
|
-
{ json:
|
|
14879
|
+
{ json: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args) }
|
|
14880
14880
|
);
|
|
14881
14881
|
return 1;
|
|
14882
14882
|
}
|
|
@@ -14887,12 +14887,12 @@ async function handleRunStop(args) {
|
|
|
14887
14887
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14888
14888
|
] : []
|
|
14889
14889
|
];
|
|
14890
|
-
|
|
14890
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
14891
14891
|
{
|
|
14892
14892
|
...result,
|
|
14893
14893
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14894
14894
|
},
|
|
14895
|
-
{ json:
|
|
14895
|
+
{ json: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args) }
|
|
14896
14896
|
);
|
|
14897
14897
|
return 0;
|
|
14898
14898
|
}
|
|
@@ -14942,18 +14942,18 @@ async function handleRunStopAll(args) {
|
|
|
14942
14942
|
reason = args[++index];
|
|
14943
14943
|
}
|
|
14944
14944
|
}
|
|
14945
|
-
const client = new (0,
|
|
14945
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
14946
14946
|
if (dryRun) {
|
|
14947
14947
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14948
14948
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14949
|
-
|
|
14949
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
14950
14950
|
{
|
|
14951
14951
|
...result2,
|
|
14952
14952
|
render: {
|
|
14953
14953
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14954
14954
|
}
|
|
14955
14955
|
},
|
|
14956
|
-
{ json:
|
|
14956
|
+
{ json: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14957
14957
|
` }
|
|
14958
14958
|
);
|
|
14959
14959
|
return 0;
|
|
@@ -14966,17 +14966,17 @@ async function handleRunStopAll(args) {
|
|
|
14966
14966
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14967
14967
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14968
14968
|
];
|
|
14969
|
-
|
|
14969
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
14970
14970
|
{
|
|
14971
14971
|
...result,
|
|
14972
14972
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14973
14973
|
},
|
|
14974
|
-
{ json:
|
|
14974
|
+
{ json: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args) }
|
|
14975
14975
|
);
|
|
14976
14976
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14977
14977
|
}
|
|
14978
14978
|
async function handleRunExport(args) {
|
|
14979
|
-
const selection =
|
|
14979
|
+
const selection = _chunkD2ZRMZKFjs.parseJsonFields.call(void 0, args, "export");
|
|
14980
14980
|
args = selection.args;
|
|
14981
14981
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
|
|
14982
14982
|
let runId;
|
|
@@ -15035,16 +15035,16 @@ async function handleRunExport(args) {
|
|
|
15035
15035
|
"INVALID_ARGUMENT"
|
|
15036
15036
|
);
|
|
15037
15037
|
}
|
|
15038
|
-
const client = new (0,
|
|
15038
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
15039
15039
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
15040
15040
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
15041
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
15041
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args));
|
|
15042
15042
|
try {
|
|
15043
15043
|
await waitForPlayCompletionByWatch({
|
|
15044
15044
|
client,
|
|
15045
15045
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
15046
15046
|
workflowId: runId,
|
|
15047
|
-
jsonOutput:
|
|
15047
|
+
jsonOutput: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args),
|
|
15048
15048
|
emitLogs: false,
|
|
15049
15049
|
waitTimeoutMs,
|
|
15050
15050
|
startedAt: Date.now(),
|
|
@@ -15144,8 +15144,8 @@ async function handleRunExport(args) {
|
|
|
15144
15144
|
"utf-8"
|
|
15145
15145
|
);
|
|
15146
15146
|
}
|
|
15147
|
-
|
|
15148
|
-
json:
|
|
15147
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, payload, {
|
|
15148
|
+
json: _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args),
|
|
15149
15149
|
fields: selection.fields,
|
|
15150
15150
|
text: `${lines.join("\n")}
|
|
15151
15151
|
`
|
|
@@ -15166,10 +15166,10 @@ async function handlePlayGet(args) {
|
|
|
15166
15166
|
);
|
|
15167
15167
|
return 2;
|
|
15168
15168
|
}
|
|
15169
|
-
const client = new (0,
|
|
15169
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
15170
15170
|
const explicitJson = args.includes("--json");
|
|
15171
15171
|
const sourceOutput = args.includes("--source");
|
|
15172
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
15172
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args);
|
|
15173
15173
|
const requestedRevisionFlags = [
|
|
15174
15174
|
args.includes("--working"),
|
|
15175
15175
|
args.includes("--live"),
|
|
@@ -15229,7 +15229,7 @@ async function handlePlayGet(args) {
|
|
|
15229
15229
|
}
|
|
15230
15230
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15231
15231
|
if (jsonOutput) {
|
|
15232
|
-
|
|
15232
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, {
|
|
15233
15233
|
...detail,
|
|
15234
15234
|
...materializedFile ? {
|
|
15235
15235
|
message: loadedMessage,
|
|
@@ -15321,8 +15321,8 @@ async function handlePlayVersions(args) {
|
|
|
15321
15321
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15322
15322
|
return 1;
|
|
15323
15323
|
}
|
|
15324
|
-
const client = new (0,
|
|
15325
|
-
const jsonOutput =
|
|
15324
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
15325
|
+
const jsonOutput = _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args);
|
|
15326
15326
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15327
15327
|
command: "versions"
|
|
15328
15328
|
});
|
|
@@ -15330,7 +15330,7 @@ async function handlePlayVersions(args) {
|
|
|
15330
15330
|
parseReferencedPlayTarget2(playName).playName
|
|
15331
15331
|
);
|
|
15332
15332
|
if (jsonOutput) {
|
|
15333
|
-
|
|
15333
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, { versions });
|
|
15334
15334
|
return 0;
|
|
15335
15335
|
}
|
|
15336
15336
|
if (versions.length === 0) {
|
|
@@ -15362,9 +15362,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
15362
15362
|
"signals"
|
|
15363
15363
|
];
|
|
15364
15364
|
async function handlePlayList(args) {
|
|
15365
|
-
const jsonOutput =
|
|
15365
|
+
const jsonOutput = _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args);
|
|
15366
15366
|
const showCost = args.includes("--show-cost");
|
|
15367
|
-
const client = new (0,
|
|
15367
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
15368
15368
|
const categoriesIndex = args.indexOf("--categories");
|
|
15369
15369
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _538 => _538[categoriesIndex + 1], 'optionalAccess', _539 => _539.trim, 'call', _540 => _540()]) : void 0;
|
|
15370
15370
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15461,7 +15461,7 @@ async function handlePlayList(args) {
|
|
|
15461
15461
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15462
15462
|
lines.push(`Next page: ${nextPage}`);
|
|
15463
15463
|
}
|
|
15464
|
-
|
|
15464
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
15465
15465
|
{
|
|
15466
15466
|
plays,
|
|
15467
15467
|
count: plays.length,
|
|
@@ -15479,7 +15479,7 @@ async function handlePlayList(args) {
|
|
|
15479
15479
|
}
|
|
15480
15480
|
async function handlePlayPin(args, pinned) {
|
|
15481
15481
|
const target = _optionalChain([args, 'access', _547 => _547.find, 'call', _548 => _548((arg) => !arg.startsWith("-")), 'optionalAccess', _549 => _549.trim, 'call', _550 => _550()]);
|
|
15482
|
-
const jsonOutput =
|
|
15482
|
+
const jsonOutput = _chunkD2ZRMZKFjs.argsWantJson.call(void 0, args);
|
|
15483
15483
|
const dryRun = args.includes("--dry-run");
|
|
15484
15484
|
if (!target) {
|
|
15485
15485
|
console.error(
|
|
@@ -15497,11 +15497,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15497
15497
|
const name = parsedTarget.playName;
|
|
15498
15498
|
const plan = { name, pinned, dryRun };
|
|
15499
15499
|
if (dryRun) {
|
|
15500
|
-
|
|
15500
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, plan);
|
|
15501
15501
|
return 0;
|
|
15502
15502
|
}
|
|
15503
|
-
const result = await new (0,
|
|
15504
|
-
if (jsonOutput)
|
|
15503
|
+
const result = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15504
|
+
if (jsonOutput) _chunkD2ZRMZKFjs.printCompactJson.call(void 0, result);
|
|
15505
15505
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15506
15506
|
return 0;
|
|
15507
15507
|
}
|
|
@@ -15627,12 +15627,12 @@ async function handlePlayGrep(args) {
|
|
|
15627
15627
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15628
15628
|
return 1;
|
|
15629
15629
|
}
|
|
15630
|
-
const client = new (0,
|
|
15630
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
15631
15631
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15632
15632
|
summarizePlayGrepResult
|
|
15633
15633
|
);
|
|
15634
|
-
if (
|
|
15635
|
-
|
|
15634
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
15635
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, {
|
|
15636
15636
|
plays: results,
|
|
15637
15637
|
count: results.length,
|
|
15638
15638
|
query,
|
|
@@ -15655,7 +15655,7 @@ async function handlePlayGrep(args) {
|
|
|
15655
15655
|
return 0;
|
|
15656
15656
|
}
|
|
15657
15657
|
async function handlePlayDescribe(args) {
|
|
15658
|
-
const selection =
|
|
15658
|
+
const selection = _chunkD2ZRMZKFjs.parseJsonFields.call(void 0, args, "describe");
|
|
15659
15659
|
args = selection.args;
|
|
15660
15660
|
const playName = args[0];
|
|
15661
15661
|
if (!playName) {
|
|
@@ -15689,8 +15689,8 @@ async function handlePlayDescribe(args) {
|
|
|
15689
15689
|
`deepline plays check ${playName}`,
|
|
15690
15690
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15691
15691
|
];
|
|
15692
|
-
if (
|
|
15693
|
-
|
|
15692
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
15693
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, {
|
|
15694
15694
|
ok: false,
|
|
15695
15695
|
error: { message },
|
|
15696
15696
|
next
|
|
@@ -15704,7 +15704,7 @@ async function handlePlayDescribe(args) {
|
|
|
15704
15704
|
}
|
|
15705
15705
|
return 2;
|
|
15706
15706
|
}
|
|
15707
|
-
const client = new (0,
|
|
15707
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
15708
15708
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15709
15709
|
command: "describe"
|
|
15710
15710
|
});
|
|
@@ -15714,9 +15714,9 @@ async function handlePlayDescribe(args) {
|
|
|
15714
15714
|
compact: args.includes("--compact")
|
|
15715
15715
|
}
|
|
15716
15716
|
);
|
|
15717
|
-
if (
|
|
15718
|
-
if (selection.fields)
|
|
15719
|
-
else
|
|
15717
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
15718
|
+
if (selection.fields) _chunkD2ZRMZKFjs.printJson.call(void 0, play, selection.fields);
|
|
15719
|
+
else _chunkD2ZRMZKFjs.printCompactJson.call(void 0, play);
|
|
15720
15720
|
return 0;
|
|
15721
15721
|
}
|
|
15722
15722
|
printPlayDescription(play);
|
|
@@ -15760,7 +15760,7 @@ async function handlePlaySave(args) {
|
|
|
15760
15760
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15761
15761
|
};
|
|
15762
15762
|
if (options.jsonOutput) {
|
|
15763
|
-
|
|
15763
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, result);
|
|
15764
15764
|
} else {
|
|
15765
15765
|
console.error(result.message);
|
|
15766
15766
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15782,7 +15782,7 @@ async function handlePlaySave(args) {
|
|
|
15782
15782
|
};
|
|
15783
15783
|
if (options.dryRun) {
|
|
15784
15784
|
if (options.jsonOutput) {
|
|
15785
|
-
|
|
15785
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, dryRun);
|
|
15786
15786
|
} else {
|
|
15787
15787
|
console.log(`Dry run: ${playName}`);
|
|
15788
15788
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15791,7 +15791,7 @@ async function handlePlaySave(args) {
|
|
|
15791
15791
|
}
|
|
15792
15792
|
return 0;
|
|
15793
15793
|
}
|
|
15794
|
-
const client = new (0,
|
|
15794
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
15795
15795
|
try {
|
|
15796
15796
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
15797
15797
|
"cli.play_save_compile_manifests",
|
|
@@ -15827,7 +15827,7 @@ async function handlePlaySave(args) {
|
|
|
15827
15827
|
}
|
|
15828
15828
|
};
|
|
15829
15829
|
if (options.jsonOutput) {
|
|
15830
|
-
|
|
15830
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, result);
|
|
15831
15831
|
} else {
|
|
15832
15832
|
console.log(
|
|
15833
15833
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15853,7 +15853,7 @@ async function handlePlayPublish(args) {
|
|
|
15853
15853
|
}
|
|
15854
15854
|
const { target: playName, useLatest } = options;
|
|
15855
15855
|
let revisionId = options.revisionId;
|
|
15856
|
-
const client = new (0,
|
|
15856
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
15857
15857
|
if (isFileTarget2(playName)) {
|
|
15858
15858
|
if (revisionId || useLatest) {
|
|
15859
15859
|
console.error(
|
|
@@ -15885,7 +15885,7 @@ async function handlePlayPublish(args) {
|
|
|
15885
15885
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15886
15886
|
};
|
|
15887
15887
|
if (options.jsonOutput) {
|
|
15888
|
-
|
|
15888
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, result3);
|
|
15889
15889
|
} else {
|
|
15890
15890
|
console.error(result3.message);
|
|
15891
15891
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15908,7 +15908,7 @@ async function handlePlayPublish(args) {
|
|
|
15908
15908
|
};
|
|
15909
15909
|
if (options.dryRun) {
|
|
15910
15910
|
if (options.jsonOutput) {
|
|
15911
|
-
|
|
15911
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, dryRun);
|
|
15912
15912
|
} else {
|
|
15913
15913
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15914
15914
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15976,7 +15976,7 @@ async function handlePlayPublish(args) {
|
|
|
15976
15976
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15977
15977
|
};
|
|
15978
15978
|
if (options.jsonOutput) {
|
|
15979
|
-
|
|
15979
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, result2);
|
|
15980
15980
|
} else {
|
|
15981
15981
|
printPublishReceipt({
|
|
15982
15982
|
name: rootPlayName,
|
|
@@ -16007,7 +16007,7 @@ async function handlePlayPublish(args) {
|
|
|
16007
16007
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
16008
16008
|
latest: useLatest
|
|
16009
16009
|
};
|
|
16010
|
-
|
|
16010
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, result2);
|
|
16011
16011
|
return 0;
|
|
16012
16012
|
}
|
|
16013
16013
|
const resolvedName = parseReferencedPlayTarget2(playName).playName;
|
|
@@ -16031,7 +16031,7 @@ async function handlePlayPublish(args) {
|
|
|
16031
16031
|
revisionId ? { revisionId } : {}
|
|
16032
16032
|
);
|
|
16033
16033
|
if (options.jsonOutput) {
|
|
16034
|
-
|
|
16034
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, result);
|
|
16035
16035
|
} else {
|
|
16036
16036
|
printPublishReceipt({
|
|
16037
16037
|
name: result.name,
|
|
@@ -16071,7 +16071,7 @@ async function handlePlayDelete(args) {
|
|
|
16071
16071
|
);
|
|
16072
16072
|
return 2;
|
|
16073
16073
|
}
|
|
16074
|
-
const client = new (0,
|
|
16074
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
16075
16075
|
let detail;
|
|
16076
16076
|
try {
|
|
16077
16077
|
detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
|
|
@@ -16095,8 +16095,8 @@ async function handlePlayDelete(args) {
|
|
|
16095
16095
|
name: resolvedName,
|
|
16096
16096
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
16097
16097
|
};
|
|
16098
|
-
if (
|
|
16099
|
-
|
|
16098
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
16099
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, result2);
|
|
16100
16100
|
} else {
|
|
16101
16101
|
process.stdout.write(
|
|
16102
16102
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -16106,8 +16106,8 @@ async function handlePlayDelete(args) {
|
|
|
16106
16106
|
return 0;
|
|
16107
16107
|
}
|
|
16108
16108
|
const result = await client.deletePlay(resolvedName);
|
|
16109
|
-
if (
|
|
16110
|
-
|
|
16109
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
16110
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, result);
|
|
16111
16111
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
16112
16112
|
}
|
|
16113
16113
|
if (result.alreadyArchived) {
|
|
@@ -16146,13 +16146,13 @@ async function handlePlayRestore(args) {
|
|
|
16146
16146
|
);
|
|
16147
16147
|
return 2;
|
|
16148
16148
|
}
|
|
16149
|
-
const client = new (0,
|
|
16149
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
16150
16150
|
try {
|
|
16151
16151
|
const result = await client.restorePlay(
|
|
16152
16152
|
parseReferencedPlayTarget2(playName).playName
|
|
16153
16153
|
);
|
|
16154
|
-
if (
|
|
16155
|
-
|
|
16154
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
16155
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, result);
|
|
16156
16156
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16157
16157
|
}
|
|
16158
16158
|
if (result.alreadyActive) {
|
|
@@ -16265,21 +16265,21 @@ Common commands:
|
|
|
16265
16265
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16266
16266
|
}
|
|
16267
16267
|
};
|
|
16268
|
-
|
|
16268
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0, result2, {
|
|
16269
16269
|
json: options.json,
|
|
16270
16270
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16271
16271
|
`
|
|
16272
16272
|
});
|
|
16273
16273
|
return;
|
|
16274
16274
|
}
|
|
16275
|
-
const client = new (0,
|
|
16275
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
16276
16276
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16277
16277
|
throw new Error(
|
|
16278
16278
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16279
16279
|
);
|
|
16280
16280
|
}
|
|
16281
16281
|
const result = await client.startPlayRun(saved.request);
|
|
16282
|
-
|
|
16282
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
16283
16283
|
{ ...result },
|
|
16284
16284
|
{
|
|
16285
16285
|
json: options.json,
|
|
@@ -16315,7 +16315,7 @@ Examples:
|
|
|
16315
16315
|
).action(async (target, options) => {
|
|
16316
16316
|
process.exitCode = await handlePlayCheck([
|
|
16317
16317
|
target,
|
|
16318
|
-
...
|
|
16318
|
+
..._chunkD2ZRMZKFjs.jsonFieldArgs.call(void 0, options.json),
|
|
16319
16319
|
...options.full ? ["--full"] : []
|
|
16320
16320
|
]);
|
|
16321
16321
|
});
|
|
@@ -16556,9 +16556,9 @@ Examples:
|
|
|
16556
16556
|
const limit = Number(options.historyLimit);
|
|
16557
16557
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16558
16558
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16559
|
-
const client = new (0,
|
|
16559
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
16560
16560
|
if (options.binding) {
|
|
16561
|
-
|
|
16561
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0,
|
|
16562
16562
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16563
16563
|
);
|
|
16564
16564
|
return;
|
|
@@ -16566,7 +16566,7 @@ Examples:
|
|
|
16566
16566
|
const result = await client.listPlayTriggerInventory({
|
|
16567
16567
|
cursor: options.cursor
|
|
16568
16568
|
});
|
|
16569
|
-
|
|
16569
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, {
|
|
16570
16570
|
...result,
|
|
16571
16571
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16572
16572
|
});
|
|
@@ -16613,7 +16613,7 @@ Examples:
|
|
|
16613
16613
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16614
16614
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16615
16615
|
}
|
|
16616
|
-
const result = await new (0,
|
|
16616
|
+
const result = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().getPlaysActivity({
|
|
16617
16617
|
timeZone: options.timeZone,
|
|
16618
16618
|
days,
|
|
16619
16619
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16627,7 +16627,7 @@ Examples:
|
|
|
16627
16627
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16628
16628
|
);
|
|
16629
16629
|
}
|
|
16630
|
-
|
|
16630
|
+
_chunkD2ZRMZKFjs.printCommandEnvelope.call(void 0,
|
|
16631
16631
|
{ ...result },
|
|
16632
16632
|
{
|
|
16633
16633
|
json: Boolean(options.json),
|
|
@@ -16656,7 +16656,7 @@ Examples:
|
|
|
16656
16656
|
false
|
|
16657
16657
|
);
|
|
16658
16658
|
});
|
|
16659
|
-
|
|
16659
|
+
_chunkG4LJS2REjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16660
16660
|
play,
|
|
16661
16661
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16662
16662
|
);
|
|
@@ -16699,7 +16699,7 @@ Examples:
|
|
|
16699
16699
|
);
|
|
16700
16700
|
_chunkZAAKSJASjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16701
16701
|
async (target, options) => {
|
|
16702
|
-
const ownView = () => handlePlayDescribe(
|
|
16702
|
+
const ownView = () => handlePlayDescribe(_chunkD2ZRMZKFjs.describeArgs.call(void 0, target, options));
|
|
16703
16703
|
const [flagText] = [options.json].filter(
|
|
16704
16704
|
(value) => typeof value === "string"
|
|
16705
16705
|
);
|
|
@@ -16710,7 +16710,7 @@ Examples:
|
|
|
16710
16710
|
process.exitCode = await ownView();
|
|
16711
16711
|
return;
|
|
16712
16712
|
}
|
|
16713
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16713
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-4I6EIVXD.js")));
|
|
16714
16714
|
process.exitCode = await describeAnything(
|
|
16715
16715
|
name,
|
|
16716
16716
|
{
|
|
@@ -16828,7 +16828,7 @@ Examples:
|
|
|
16828
16828
|
deepline plays deployments <deployment-id>
|
|
16829
16829
|
`
|
|
16830
16830
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16831
|
-
async (id, options) => id ?
|
|
16831
|
+
async (id, options) => id ? _chunkRZLXVHNOjs.handleDeploymentGet.call(void 0, id, options) : _chunkRZLXVHNOjs.handleDeploymentsList.call(void 0, options)
|
|
16832
16832
|
);
|
|
16833
16833
|
addPublishHelp(
|
|
16834
16834
|
play.command("publish <target>").description(
|
|
@@ -16963,14 +16963,14 @@ Examples:
|
|
|
16963
16963
|
const limit = Number(options.limit);
|
|
16964
16964
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16965
16965
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16966
|
-
const result = await new (0,
|
|
16966
|
+
const result = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().runs.rowHistory({
|
|
16967
16967
|
playName: options.play,
|
|
16968
16968
|
runId,
|
|
16969
16969
|
tableNamespace: options.dataset,
|
|
16970
16970
|
limit,
|
|
16971
16971
|
cursor: options.cursor
|
|
16972
16972
|
});
|
|
16973
|
-
|
|
16973
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, {
|
|
16974
16974
|
...result,
|
|
16975
16975
|
...result.nextCursor ? {
|
|
16976
16976
|
next: `deepline runs rows-history ${_chunkAID3OYVJjs.shellQuote.call(void 0, runId)} --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor)} --json`
|
|
@@ -17040,7 +17040,7 @@ Examples:
|
|
|
17040
17040
|
).action(async (runId, options) => {
|
|
17041
17041
|
process.exitCode = await handleRunGet([
|
|
17042
17042
|
runId,
|
|
17043
|
-
...
|
|
17043
|
+
..._chunkD2ZRMZKFjs.jsonFieldArgs.call(void 0, options.json),
|
|
17044
17044
|
...options.webUrl ? ["--web-url"] : [],
|
|
17045
17045
|
...options.full ? ["--full"] : [],
|
|
17046
17046
|
...options.input ? ["--input"] : [],
|
|
@@ -17325,7 +17325,7 @@ Examples:
|
|
|
17325
17325
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17326
17326
|
...options.wait ? ["--wait"] : [],
|
|
17327
17327
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17328
|
-
...
|
|
17328
|
+
..._chunkD2ZRMZKFjs.jsonFieldArgs.call(void 0, options.json)
|
|
17329
17329
|
]);
|
|
17330
17330
|
});
|
|
17331
17331
|
const share = play.command("share").description(
|
|
@@ -17491,10 +17491,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17491
17491
|
return 2;
|
|
17492
17492
|
}
|
|
17493
17493
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17494
|
-
const status = await new (0,
|
|
17494
|
+
const status = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().getSharePage(name);
|
|
17495
17495
|
const outputStatus = shareStatusForOutput(status);
|
|
17496
|
-
if (
|
|
17497
|
-
|
|
17496
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
17497
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, outputStatus);
|
|
17498
17498
|
return 0;
|
|
17499
17499
|
}
|
|
17500
17500
|
if (!outputStatus.share) {
|
|
@@ -17533,7 +17533,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17533
17533
|
return 2;
|
|
17534
17534
|
}
|
|
17535
17535
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17536
|
-
const client = new (0,
|
|
17536
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
17537
17537
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17538
17538
|
let resolvedVersion;
|
|
17539
17539
|
if (!revisionId) {
|
|
@@ -17564,8 +17564,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17564
17564
|
);
|
|
17565
17565
|
if (!hasCompleted) {
|
|
17566
17566
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17567
|
-
if (
|
|
17568
|
-
|
|
17567
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
17568
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, {
|
|
17569
17569
|
ok: false,
|
|
17570
17570
|
code: "NO_SUCCESSFUL_RUN",
|
|
17571
17571
|
message,
|
|
@@ -17589,8 +17589,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17589
17589
|
};
|
|
17590
17590
|
if (args.includes("--dry-run")) {
|
|
17591
17591
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17592
|
-
if (
|
|
17593
|
-
|
|
17592
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
17593
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, plan);
|
|
17594
17594
|
} else {
|
|
17595
17595
|
console.log(
|
|
17596
17596
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17600,8 +17600,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17600
17600
|
}
|
|
17601
17601
|
const status = await client.publishSharePage(name, request);
|
|
17602
17602
|
const outputStatus = shareStatusForOutput(status);
|
|
17603
|
-
if (
|
|
17604
|
-
|
|
17603
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
17604
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, outputStatus);
|
|
17605
17605
|
return 0;
|
|
17606
17606
|
}
|
|
17607
17607
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17632,9 +17632,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17632
17632
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17633
17633
|
...seoIndexing ? { seoIndexing } : {}
|
|
17634
17634
|
};
|
|
17635
|
-
const status = await new (0,
|
|
17636
|
-
if (
|
|
17637
|
-
|
|
17635
|
+
const status = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().updateSharePage(name, request);
|
|
17636
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
17637
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, status);
|
|
17638
17638
|
return 0;
|
|
17639
17639
|
}
|
|
17640
17640
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17649,7 +17649,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17649
17649
|
return 2;
|
|
17650
17650
|
}
|
|
17651
17651
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17652
|
-
const client = new (0,
|
|
17652
|
+
const client = new (0, _chunkKUQAU5MGjs.DeeplineClient)();
|
|
17653
17653
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17654
17654
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17655
17655
|
if (!revisionId && versionFlag) {
|
|
@@ -17666,8 +17666,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17666
17666
|
revisionId ? { revisionId } : {}
|
|
17667
17667
|
);
|
|
17668
17668
|
const outputStatus = shareStatusForOutput(status);
|
|
17669
|
-
if (
|
|
17670
|
-
|
|
17669
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
17670
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, outputStatus);
|
|
17671
17671
|
return 0;
|
|
17672
17672
|
}
|
|
17673
17673
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17692,9 +17692,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17692
17692
|
return 2;
|
|
17693
17693
|
}
|
|
17694
17694
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17695
|
-
const status = await new (0,
|
|
17696
|
-
if (
|
|
17697
|
-
|
|
17695
|
+
const status = await new (0, _chunkKUQAU5MGjs.DeeplineClient)().unpublishSharePage(name);
|
|
17696
|
+
if (_chunkD2ZRMZKFjs.argsWantJson.call(void 0, args)) {
|
|
17697
|
+
_chunkD2ZRMZKFjs.printCompactJson.call(void 0, status);
|
|
17698
17698
|
return 0;
|
|
17699
17699
|
}
|
|
17700
17700
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|