deepline 0.3.373 → 0.3.374
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +1 -53
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +15 -23
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +65 -3
- package/dist/cli/auth-IFXXXZP6.js +33 -0
- package/dist/cli/{auth-7BMCDCRH.mjs → auth-YGCDA4WG.mjs} +4 -4
- package/dist/cli/{billing-RZEHHMPU.mjs → billing-3ZLR3CJU.mjs} +4 -4
- package/dist/cli/{billing-GKI7B4JF.js → billing-ZXRKPD5D.js} +73 -73
- package/dist/cli/{chunk-TB73PXE3.mjs → chunk-2DAWTVNN.mjs} +2 -2
- package/dist/cli/{chunk-JHUMUIU6.js → chunk-3XKAOV74.js} +6 -6
- package/dist/cli/{chunk-S5OTS6H5.js → chunk-53PZA4EP.js} +8 -8
- package/dist/cli/{chunk-JP2YA3AV.mjs → chunk-62IBVKWB.mjs} +1 -1
- package/dist/cli/{chunk-Y32GUTEN.mjs → chunk-A62HBMHY.mjs} +1 -1
- package/dist/cli/{chunk-PZ26EKNC.mjs → chunk-FT6O2ZVJ.mjs} +5 -5
- package/dist/cli/{chunk-YHHY2YHK.mjs → chunk-GT6KGIWV.mjs} +3 -3
- package/dist/cli/{chunk-E7MGPPM5.js → chunk-HC5L6KGE.js} +9 -9
- package/dist/cli/{chunk-P5JPGZNI.mjs → chunk-IZVGMVNX.mjs} +1 -1
- package/dist/cli/{chunk-ND4BVWWZ.js → chunk-JK547IDB.js} +4 -4
- package/dist/cli/{chunk-W3H422KP.js → chunk-MOBOAZMA.js} +60 -60
- package/dist/cli/{chunk-ECA6NQYL.mjs → chunk-MQ5UW5AZ.mjs} +4 -4
- package/dist/cli/{chunk-HNLXC5BP.mjs → chunk-NNYQ24O5.mjs} +1 -1
- package/dist/cli/{chunk-CLEB5KUZ.js → chunk-NOSIMGZV.js} +1 -1
- package/dist/cli/{chunk-D2CZ4Y5G.js → chunk-O7KJYX7R.js} +15 -15
- package/dist/cli/{chunk-QSV76EMO.mjs → chunk-OS7GXARW.mjs} +6 -6
- package/dist/cli/{chunk-6JCVL7CE.mjs → chunk-OYTPVM2R.mjs} +2 -2
- package/dist/cli/{chunk-NVZAZGHA.js → chunk-PCYCNZLR.js} +8 -8
- package/dist/cli/{chunk-IHQQNWU4.js → chunk-RT5ICJ5V.js} +2 -2
- package/dist/cli/{chunk-EYXSAB7O.js → chunk-RXR7A2MX.js} +26 -26
- package/dist/cli/{chunk-R6TPSZLN.mjs → chunk-SBB27CIJ.mjs} +2 -2
- package/dist/cli/{chunk-BM47AKUZ.js → chunk-T35LCTC7.js} +224 -224
- package/dist/cli/{chunk-ORBVXCTL.js → chunk-TZTGK5JQ.js} +50 -50
- package/dist/cli/{chunk-IUYKSTWB.mjs → chunk-VZSVYNZH.mjs} +1 -1
- package/dist/cli/{chunk-XJYUQBHY.js → chunk-X5V2QTDR.js} +49 -49
- package/dist/cli/{chunk-XMME4SCK.mjs → chunk-YFFH6NDU.mjs} +2 -2
- package/dist/cli/client-O6IEMURJ.js +20 -0
- package/dist/cli/{client-FO6LMHT4.mjs → client-TV254HC4.mjs} +3 -3
- package/dist/cli/{csv-3FNCVMWA.mjs → csv-VEHHRUG4.mjs} +3 -3
- package/dist/cli/{csv-NFQYQWWO.js → csv-WSRTANXI.js} +12 -12
- package/dist/cli/{db-VA7HULGR.mjs → db-BH25DX2G.mjs} +4 -4
- package/dist/cli/{db-CTLGRV3X.js → db-JXZNMFCE.js} +29 -29
- package/dist/cli/{describe-IUHOEPKY.js → describe-N2OBGVJM.js} +15 -15
- package/dist/cli/{describe-GXGRMP2M.mjs → describe-TMBECHTX.mjs} +8 -8
- package/dist/cli/{executions-DSK3HRPU.js → executions-TX5CQF66.js} +6 -6
- package/dist/cli/{executions-OZQDZQIK.mjs → executions-Y4HQHYSO.mjs} +4 -4
- package/dist/cli/{feedback-KTMLMWKV.js → feedback-ASEJ5A7I.js} +7 -7
- package/dist/cli/{feedback-ZOY7R4JD.mjs → feedback-W7SRXYSP.mjs} +3 -3
- package/dist/cli/{git-FIOI4IA2.mjs → git-2W7CZZRC.mjs} +4 -4
- package/dist/cli/git-SSSOIQ2L.js +23 -0
- package/dist/cli/index.js +81 -81
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-WXAYRQMQ.js → legacy-noops-NJYAAGBY.js} +7 -7
- package/dist/cli/{legacy-noops-KQZWSABN.mjs → legacy-noops-TXMPY3P7.mjs} +4 -4
- package/dist/cli/{monitors-VHNWIF4V.mjs → monitors-G4L65QGQ.mjs} +4 -4
- package/dist/cli/{monitors-LPUCHRNJ.js → monitors-YLKTQ57D.js} +85 -85
- package/dist/cli/{org-UW7NPGEY.mjs → org-BCHOWKIA.mjs} +4 -4
- package/dist/cli/{org-GWHWBCMD.js → org-ENXO2A33.js} +64 -64
- package/dist/cli/{play-FNM2E66T.mjs → play-JBY7HUYN.mjs} +7 -7
- package/dist/cli/play-SSJ3PO4D.js +155 -0
- package/dist/cli/{providers-6D6R3PWX.js → providers-GWFX3E7C.js} +7 -7
- package/dist/cli/{providers-XAZMYDWS.mjs → providers-JV2DZG43.mjs} +4 -4
- package/dist/cli/{quickstart-OK65PGZL.mjs → quickstart-AIXURXZQ.mjs} +3 -3
- package/dist/cli/{quickstart-HBUWBVH6.js → quickstart-CASPK7F4.js} +5 -5
- package/dist/cli/{search-XY6JOTS2.mjs → search-DYQB7LHK.mjs} +5 -5
- package/dist/cli/search-N7K6A2YV.js +26 -0
- package/dist/cli/{secrets-6CYCPK7T.js → secrets-AZQG2E4U.js} +13 -13
- package/dist/cli/{secrets-W2LDLU2W.mjs → secrets-RQZPIPO5.mjs} +4 -4
- package/dist/cli/{sessions-JAX7PGXU.mjs → sessions-3FJJDMBB.mjs} +4 -4
- package/dist/cli/{sessions-GOYEKNTJ.js → sessions-ZY6RBYD4.js} +5 -5
- package/dist/cli/{settings-QMFYFCT7.js → settings-GXKWNR5V.js} +74 -74
- package/dist/cli/{settings-OACUQOCM.mjs → settings-UNZDQGSE.mjs} +7 -7
- package/dist/cli/{setup-2KA5TZBZ.mjs → setup-PIRXJ2KJ.mjs} +6 -6
- package/dist/cli/{setup-36VOOGVA.js → setup-UURZD4YO.js} +41 -41
- package/dist/cli/skills-4OUZLKTW.js +28 -0
- package/dist/cli/{skills-QY4BX5ZX.mjs → skills-B4AQEIAF.mjs} +4 -4
- package/dist/cli/tools-MIZS5UN6.js +40 -0
- package/dist/cli/{tools-UCB2QRVC.mjs → tools-UMGQKUSW.mjs} +6 -6
- package/dist/cli/update-3CO7LA4M.js +28 -0
- package/dist/cli/{update-327MHUO4.mjs → update-SFUTMEKL.mjs} +6 -6
- package/dist/cli/{workflow-G7BU54KW.js → workflow-CDAJCMT7.js} +15 -15
- package/dist/cli/{workflow-HJN4GA5A.mjs → workflow-ON6XVW36.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-BWCNRUG3.js +0 -33
- package/dist/cli/client-KAWK7FJR.js +0 -20
- package/dist/cli/git-5P5FLEUC.js +0 -23
- package/dist/cli/play-EVBIC7Z5.js +0 -155
- package/dist/cli/search-6ZY2XWP2.js +0 -26
- package/dist/cli/skills-6GPIEPTP.js +0 -28
- package/dist/cli/tools-RTECP4WT.js +0 -40
- package/dist/cli/update-WR65EHBN.js +0 -28
|
@@ -19,11 +19,11 @@ var _chunkQGKPTBRRjs = require('./chunk-QGKPTBRR.js');
|
|
|
19
19
|
var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunk53PZA4EPjs = require('./chunk-53PZA4EP.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkRXR7A2MXjs = require('./chunk-RXR7A2MX.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -42,7 +42,7 @@ var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkHC5L6KGEjs = require('./chunk-HC5L6KGE.js');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
@@ -75,10 +75,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _chunk3XKAOV74js = require('./chunk-3XKAOV74.js');
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkJK547IDBjs = require('./chunk-JK547IDB.js');
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -2062,7 +2062,7 @@ function resolveField(key, command) {
|
|
|
2062
2062
|
function printSettings(result, json, name) {
|
|
2063
2063
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2064
2064
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2065
|
-
|
|
2065
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
2066
2066
|
{
|
|
2067
2067
|
...result,
|
|
2068
2068
|
settings: Object.fromEntries(
|
|
@@ -2106,7 +2106,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2106
2106
|
valueSyntax: field.cli.valueSyntax,
|
|
2107
2107
|
examples: field.cli.examples
|
|
2108
2108
|
}));
|
|
2109
|
-
|
|
2109
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
2110
2110
|
{
|
|
2111
2111
|
fields: descriptions,
|
|
2112
2112
|
render: {
|
|
@@ -2131,7 +2131,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2131
2131
|
async (options, command) => {
|
|
2132
2132
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2133
2133
|
printSettings(
|
|
2134
|
-
await new (0,
|
|
2134
|
+
await new (0, _chunkHC5L6KGEjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2135
2135
|
options.json,
|
|
2136
2136
|
options.name
|
|
2137
2137
|
);
|
|
@@ -2162,7 +2162,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2162
2162
|
);
|
|
2163
2163
|
}
|
|
2164
2164
|
if (options.dryRun) {
|
|
2165
|
-
|
|
2165
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
2166
2166
|
{
|
|
2167
2167
|
dryRun: true,
|
|
2168
2168
|
play,
|
|
@@ -2183,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2183
2183
|
return;
|
|
2184
2184
|
}
|
|
2185
2185
|
printSettings(
|
|
2186
|
-
await new (0,
|
|
2186
|
+
await new (0, _chunkHC5L6KGEjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2187
2187
|
options.json
|
|
2188
2188
|
);
|
|
2189
2189
|
};
|
|
@@ -2209,13 +2209,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2209
2209
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2210
2210
|
{ exitCode: 2 }
|
|
2211
2211
|
);
|
|
2212
|
-
const page = await new (0,
|
|
2212
|
+
const page = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2213
2213
|
root: options.root,
|
|
2214
2214
|
limit,
|
|
2215
2215
|
cursor: options.cursor
|
|
2216
2216
|
});
|
|
2217
2217
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2218
|
-
|
|
2218
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
2219
2219
|
{
|
|
2220
2220
|
...page,
|
|
2221
2221
|
nextCommand,
|
|
@@ -2266,7 +2266,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2266
2266
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2267
2267
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2268
2268
|
};
|
|
2269
|
-
const client = new (0,
|
|
2269
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
2270
2270
|
const paths = [];
|
|
2271
2271
|
let cursor;
|
|
2272
2272
|
do {
|
|
@@ -2328,7 +2328,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2328
2328
|
moved.push(move.playName);
|
|
2329
2329
|
}
|
|
2330
2330
|
}
|
|
2331
|
-
|
|
2331
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
2332
2332
|
{
|
|
2333
2333
|
dryRun: Boolean(options.dryRun),
|
|
2334
2334
|
from: options.from,
|
|
@@ -2456,7 +2456,7 @@ function triggerLines(view) {
|
|
|
2456
2456
|
return lines;
|
|
2457
2457
|
}
|
|
2458
2458
|
function printView(view, json) {
|
|
2459
|
-
|
|
2459
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
2460
2460
|
{
|
|
2461
2461
|
...view,
|
|
2462
2462
|
render: {
|
|
@@ -2469,7 +2469,7 @@ function printView(view, json) {
|
|
|
2469
2469
|
);
|
|
2470
2470
|
}
|
|
2471
2471
|
function printResult(result, json) {
|
|
2472
|
-
|
|
2472
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
2473
2473
|
{
|
|
2474
2474
|
...result,
|
|
2475
2475
|
render: {
|
|
@@ -2499,7 +2499,7 @@ async function mutate(command, options, build) {
|
|
|
2499
2499
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2500
2500
|
}
|
|
2501
2501
|
if (options.dryRun) {
|
|
2502
|
-
|
|
2502
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
2503
2503
|
{
|
|
2504
2504
|
dryRun: true,
|
|
2505
2505
|
play: options.play,
|
|
@@ -2518,7 +2518,7 @@ async function mutate(command, options, build) {
|
|
|
2518
2518
|
return;
|
|
2519
2519
|
}
|
|
2520
2520
|
printResult(
|
|
2521
|
-
await new (0,
|
|
2521
|
+
await new (0, _chunkHC5L6KGEjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2522
2522
|
options.json
|
|
2523
2523
|
);
|
|
2524
2524
|
}
|
|
@@ -2551,7 +2551,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2551
2551
|
}).addHelpText("after", help2);
|
|
2552
2552
|
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) => {
|
|
2553
2553
|
printView(
|
|
2554
|
-
await new (0,
|
|
2554
|
+
await new (0, _chunkHC5L6KGEjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2555
2555
|
options.json
|
|
2556
2556
|
);
|
|
2557
2557
|
});
|
|
@@ -2595,7 +2595,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2595
2595
|
if (options.auth === void 0) {
|
|
2596
2596
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2597
2597
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2598
|
-
const current = await new (0,
|
|
2598
|
+
const current = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2599
2599
|
options.play
|
|
2600
2600
|
);
|
|
2601
2601
|
return {
|
|
@@ -2672,7 +2672,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2672
2672
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2673
2673
|
"runtime.event": "Other event."
|
|
2674
2674
|
};
|
|
2675
|
-
var RUN_LOGS_KIND_HELP =
|
|
2675
|
+
var RUN_LOGS_KIND_HELP = _chunkHC5L6KGEjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2676
2676
|
kind,
|
|
2677
2677
|
description: KIND_DESCRIPTIONS[kind]
|
|
2678
2678
|
}));
|
|
@@ -2809,9 +2809,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2809
2809
|
const args = program.args;
|
|
2810
2810
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2811
2811
|
error.exitCode = 2;
|
|
2812
|
-
if (
|
|
2813
|
-
|
|
2814
|
-
Object.assign(new (0,
|
|
2812
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2813
|
+
_chunk3XKAOV74js.printJsonError.call(void 0,
|
|
2814
|
+
Object.assign(new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(error.message), {
|
|
2815
2815
|
exitCode: 2,
|
|
2816
2816
|
retryable: false
|
|
2817
2817
|
})
|
|
@@ -2855,14 +2855,14 @@ function parseQuery(args, resource) {
|
|
|
2855
2855
|
if (VALUE_FLAGS.has(flag)) {
|
|
2856
2856
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2857
2857
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2858
|
-
throw new (0,
|
|
2858
|
+
throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
|
|
2859
2859
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2860
2860
|
);
|
|
2861
2861
|
}
|
|
2862
2862
|
if (flag === "--sum") sums.push(value);
|
|
2863
2863
|
else {
|
|
2864
2864
|
if (values[flag] !== void 0) {
|
|
2865
|
-
throw new (0,
|
|
2865
|
+
throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
|
|
2866
2866
|
`${flag} may only be supplied once.`
|
|
2867
2867
|
);
|
|
2868
2868
|
}
|
|
@@ -2876,12 +2876,12 @@ function parseQuery(args, resource) {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
if (arg.startsWith("-")) {
|
|
2878
2878
|
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.";
|
|
2879
|
-
throw new (0,
|
|
2879
|
+
throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
|
|
2880
2880
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2881
2881
|
);
|
|
2882
2882
|
}
|
|
2883
2883
|
if (runId !== void 0) {
|
|
2884
|
-
throw new (0,
|
|
2884
|
+
throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
|
|
2885
2885
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2886
2886
|
);
|
|
2887
2887
|
}
|
|
@@ -2889,7 +2889,7 @@ function parseQuery(args, resource) {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
if (switches.has("--fields")) {
|
|
2891
2891
|
if (runId !== void 0) {
|
|
2892
|
-
throw new (0,
|
|
2892
|
+
throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
|
|
2893
2893
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2894
2894
|
);
|
|
2895
2895
|
}
|
|
@@ -2902,18 +2902,18 @@ function parseQuery(args, resource) {
|
|
|
2902
2902
|
)
|
|
2903
2903
|
];
|
|
2904
2904
|
if (incompatible.length) {
|
|
2905
|
-
throw new (0,
|
|
2905
|
+
throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
|
|
2906
2906
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2907
2907
|
);
|
|
2908
2908
|
}
|
|
2909
2909
|
}
|
|
2910
2910
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2911
|
-
throw new (0,
|
|
2911
|
+
throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
|
|
2912
2912
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2913
2913
|
);
|
|
2914
2914
|
}
|
|
2915
2915
|
if (sums.length && switches.has("--count")) {
|
|
2916
|
-
throw new (0,
|
|
2916
|
+
throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
|
|
2917
2917
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2918
2918
|
);
|
|
2919
2919
|
}
|
|
@@ -2921,7 +2921,7 @@ function parseQuery(args, resource) {
|
|
|
2921
2921
|
if (operation === "count") {
|
|
2922
2922
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2923
2923
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2924
|
-
throw new (0,
|
|
2924
|
+
throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
|
|
2925
2925
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2926
2926
|
);
|
|
2927
2927
|
}
|
|
@@ -2956,16 +2956,16 @@ function parseQuery(args, resource) {
|
|
|
2956
2956
|
];
|
|
2957
2957
|
}
|
|
2958
2958
|
}
|
|
2959
|
-
const request =
|
|
2959
|
+
const request = _chunkHC5L6KGEjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2960
2960
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2961
2961
|
const backend = values["--runtime-backend"];
|
|
2962
2962
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2963
|
-
throw new (0,
|
|
2963
|
+
throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
|
|
2964
2964
|
"--runtime-backend must be daytona or modal."
|
|
2965
2965
|
);
|
|
2966
2966
|
}
|
|
2967
2967
|
if (backend && !namespace) {
|
|
2968
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunkHC5L6KGEjs.RunEventQueryInputError)(
|
|
2969
2969
|
"--runtime-backend requires --runtime-namespace."
|
|
2970
2970
|
);
|
|
2971
2971
|
}
|
|
@@ -3012,12 +3012,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3012
3012
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3013
3013
|
const record3 = failure;
|
|
3014
3014
|
const status = record3.statusCode;
|
|
3015
|
-
const exitCode = error instanceof
|
|
3015
|
+
const exitCode = error instanceof _chunkHC5L6KGEjs.RunEventQueryInputError || status === 400 || status === 422 || record3.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record3.code === "CONFIG_ERROR" || record3.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3016
3016
|
const diagnostic = Object.assign(failure, {
|
|
3017
3017
|
exitCode,
|
|
3018
3018
|
retryable: exitCode === 5
|
|
3019
3019
|
});
|
|
3020
|
-
if (
|
|
3020
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) _chunk3XKAOV74js.printJsonError.call(void 0, diagnostic);
|
|
3021
3021
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3022
3022
|
return exitCode;
|
|
3023
3023
|
}
|
|
@@ -3032,7 +3032,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3032
3032
|
...criteria
|
|
3033
3033
|
} = request;
|
|
3034
3034
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3035
|
-
const client = new (0,
|
|
3035
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
3036
3036
|
let result;
|
|
3037
3037
|
if (request.operation === "fields") {
|
|
3038
3038
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3098,13 +3098,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3098
3098
|
lines.push(`Next page: ${nextPage}`);
|
|
3099
3099
|
}
|
|
3100
3100
|
}
|
|
3101
|
-
|
|
3101
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
3102
3102
|
{
|
|
3103
3103
|
...result,
|
|
3104
3104
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3105
3105
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3106
3106
|
},
|
|
3107
|
-
{ json:
|
|
3107
|
+
{ json: _chunk3XKAOV74js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3108
3108
|
` }
|
|
3109
3109
|
);
|
|
3110
3110
|
return 0;
|
|
@@ -3924,7 +3924,7 @@ function checkedRunExample(plays, target) {
|
|
|
3924
3924
|
const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
|
|
3925
3925
|
const base = `deepline plays run --file ${quote(target)}`;
|
|
3926
3926
|
return {
|
|
3927
|
-
command: `${base}${
|
|
3927
|
+
command: `${base}${_chunkHC5L6KGEjs.playInputExampleArgs.call(void 0, schema)}`,
|
|
3928
3928
|
note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema."
|
|
3929
3929
|
};
|
|
3930
3930
|
}
|
|
@@ -4022,7 +4022,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4022
4022
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4023
4023
|
);
|
|
4024
4024
|
}
|
|
4025
|
-
const response = await new (0,
|
|
4025
|
+
const response = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4026
4026
|
keys
|
|
4027
4027
|
});
|
|
4028
4028
|
const failed = response.receipts.filter(
|
|
@@ -4034,7 +4034,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4034
4034
|
JSON.stringify(response, null, 2) + "\n",
|
|
4035
4035
|
{ flag: "wx", mode: 384 }
|
|
4036
4036
|
);
|
|
4037
|
-
|
|
4037
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
4038
4038
|
{
|
|
4039
4039
|
runId,
|
|
4040
4040
|
out: options.out,
|
|
@@ -4044,7 +4044,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4044
4044
|
{ json: true }
|
|
4045
4045
|
);
|
|
4046
4046
|
} else {
|
|
4047
|
-
|
|
4047
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4048
4048
|
}
|
|
4049
4049
|
if (failed)
|
|
4050
4050
|
process.exitCode = response.receipts.some(
|
|
@@ -4083,7 +4083,7 @@ includes nextCommand when another page is available.
|
|
|
4083
4083
|
{ exitCode: 2 }
|
|
4084
4084
|
);
|
|
4085
4085
|
}
|
|
4086
|
-
const page = await new (0,
|
|
4086
|
+
const page = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4087
4087
|
launchKey: options.launchKey,
|
|
4088
4088
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4089
4089
|
limit
|
|
@@ -4098,7 +4098,7 @@ includes nextCommand when another page is available.
|
|
|
4098
4098
|
"--limit",
|
|
4099
4099
|
String(limit)
|
|
4100
4100
|
].join(" ") : null;
|
|
4101
|
-
|
|
4101
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
4102
4102
|
{
|
|
4103
4103
|
parentRunId,
|
|
4104
4104
|
launchKey: options.launchKey,
|
|
@@ -4134,7 +4134,7 @@ async function handleRunsHistory(options) {
|
|
|
4134
4134
|
throw new Error("--limit must be a positive integer.");
|
|
4135
4135
|
}
|
|
4136
4136
|
}
|
|
4137
|
-
const page = await new (0,
|
|
4137
|
+
const page = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().runs.history({
|
|
4138
4138
|
cursor: options.cursor,
|
|
4139
4139
|
orgId: options.org,
|
|
4140
4140
|
search: options.search,
|
|
@@ -4150,7 +4150,7 @@ async function handleRunsHistory(options) {
|
|
|
4150
4150
|
);
|
|
4151
4151
|
}
|
|
4152
4152
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4153
|
-
|
|
4153
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
4154
4154
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4155
4155
|
options.json ? { json: true } : {}
|
|
4156
4156
|
);
|
|
@@ -4202,12 +4202,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4202
4202
|
return 1;
|
|
4203
4203
|
}
|
|
4204
4204
|
}
|
|
4205
|
-
const result = await new (0,
|
|
4205
|
+
const result = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().runs.rerun(runId, {
|
|
4206
4206
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4207
4207
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4208
4208
|
});
|
|
4209
|
-
if (
|
|
4210
|
-
|
|
4209
|
+
if (_chunk3XKAOV74js.shouldEmitJson.call(void 0, options.json)) {
|
|
4210
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4211
4211
|
} else {
|
|
4212
4212
|
console.log(
|
|
4213
4213
|
result.deduplicated === true ? `
|
|
@@ -4475,7 +4475,7 @@ function projectRunDatasetCell(value) {
|
|
|
4475
4475
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
4476
4476
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
4477
4477
|
if (typeof logicalValue === "object") {
|
|
4478
|
-
return
|
|
4478
|
+
return _chunk3XKAOV74js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
4479
4479
|
}
|
|
4480
4480
|
return logicalValue;
|
|
4481
4481
|
}
|
|
@@ -6892,7 +6892,7 @@ function renderOutcome(outcome) {
|
|
|
6892
6892
|
function printResult2(input) {
|
|
6893
6893
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6894
6894
|
if (failed) process.exitCode = 1;
|
|
6895
|
-
|
|
6895
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
6896
6896
|
{
|
|
6897
6897
|
deployment: { ...input.deployment, status: input.status },
|
|
6898
6898
|
plays: input.outcomes,
|
|
@@ -6917,7 +6917,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6917
6917
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6918
6918
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6919
6919
|
});
|
|
6920
|
-
const { http, config } =
|
|
6920
|
+
const { http, config } = _chunk3XKAOV74js.getAuthedHttpClient.call(void 0, );
|
|
6921
6921
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6922
6922
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6923
6923
|
deliveryId,
|
|
@@ -6944,7 +6944,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6944
6944
|
},
|
|
6945
6945
|
{
|
|
6946
6946
|
bundle: bundleDeployPlayFile,
|
|
6947
|
-
fetchImpl:
|
|
6947
|
+
fetchImpl: _chunkJK547IDBjs.fetchWithDeploymentProtection,
|
|
6948
6948
|
// The plays are already here: "opening" the source is naming it.
|
|
6949
6949
|
openSource: async () => ({
|
|
6950
6950
|
open: async () => ({ repoRoot: root })
|
|
@@ -7512,7 +7512,7 @@ function parseInputFlagValue(raw) {
|
|
|
7512
7512
|
return raw;
|
|
7513
7513
|
}
|
|
7514
7514
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
7515
|
-
const selection =
|
|
7515
|
+
const selection = _chunk3XKAOV74js.parseJsonFields.call(void 0, args, "run");
|
|
7516
7516
|
args = selection.args;
|
|
7517
7517
|
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.";
|
|
7518
7518
|
let filePath = null;
|
|
@@ -7522,7 +7522,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7522
7522
|
let revisionSelector = null;
|
|
7523
7523
|
const watch = !args.includes("--no-wait");
|
|
7524
7524
|
const dryRun = args.includes("--dry-run");
|
|
7525
|
-
let jsonOutput = dryRun ?
|
|
7525
|
+
let jsonOutput = dryRun ? _chunk3XKAOV74js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk3XKAOV74js.argsWantJson.call(void 0, args);
|
|
7526
7526
|
const fullJson = args.includes("--full");
|
|
7527
7527
|
const force = args.includes("--force");
|
|
7528
7528
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -7569,7 +7569,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7569
7569
|
"--log-level requires one of: debug, info, warn, error."
|
|
7570
7570
|
);
|
|
7571
7571
|
}
|
|
7572
|
-
const parsed =
|
|
7572
|
+
const parsed = _chunkHC5L6KGEjs.parseLogLevel.call(void 0, value);
|
|
7573
7573
|
if (!parsed) {
|
|
7574
7574
|
throw new Error(
|
|
7575
7575
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -7876,7 +7876,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7876
7876
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
7877
7877
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
7878
7878
|
);
|
|
7879
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
7879
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkHC5L6KGEjs.parseLogLevel.call(void 0, options.logLevel);
|
|
7880
7880
|
if (!logLevel)
|
|
7881
7881
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
7882
7882
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -7890,13 +7890,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7890
7890
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
7891
7891
|
logLevel = "debug";
|
|
7892
7892
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
7893
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
7894
|
-
[...fullJson ? ["--full"] : [], ...
|
|
7893
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunk3XKAOV74js.parseJsonFields.call(void 0,
|
|
7894
|
+
[...fullJson ? ["--full"] : [], ..._chunk3XKAOV74js.jsonFieldArgs.call(void 0, options.json)],
|
|
7895
7895
|
"run"
|
|
7896
7896
|
).fields;
|
|
7897
7897
|
const watch = options.wait === false ? false : base.watch;
|
|
7898
7898
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
7899
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
7899
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunk3XKAOV74js.argsWantJson.call(void 0, []) : explicitJson;
|
|
7900
7900
|
const verboseLogs = Boolean(
|
|
7901
7901
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
7902
7902
|
);
|
|
@@ -7940,7 +7940,7 @@ function playAuthoringGraphPath(parent, filePath) {
|
|
|
7940
7940
|
// src/cli/renderers/local-play-execution.ts
|
|
7941
7941
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7942
7942
|
if (options.dryRun) {
|
|
7943
|
-
|
|
7943
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7944
7944
|
return;
|
|
7945
7945
|
}
|
|
7946
7946
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -8904,7 +8904,7 @@ function playStatusErrorText(status) {
|
|
|
8904
8904
|
function isRetryablePendingStartFailure(status) {
|
|
8905
8905
|
if (status.status !== "failed") return false;
|
|
8906
8906
|
if (status.runId && status.runId !== "pending") return false;
|
|
8907
|
-
return
|
|
8907
|
+
return _chunkHC5L6KGEjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8908
8908
|
}
|
|
8909
8909
|
function pendingStartFailureStatus(input) {
|
|
8910
8910
|
const message = input.error instanceof Error ? input.error.message : String(input.error);
|
|
@@ -8931,13 +8931,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
|
8931
8931
|
var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
8932
8932
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8933
8933
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8934
|
-
if (!
|
|
8934
|
+
if (!_chunkHC5L6KGEjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8935
8935
|
return false;
|
|
8936
8936
|
}
|
|
8937
|
-
if (
|
|
8937
|
+
if (_chunkHC5L6KGEjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8938
8938
|
return true;
|
|
8939
8939
|
}
|
|
8940
|
-
return state.verbose === true &&
|
|
8940
|
+
return state.verbose === true && _chunkHC5L6KGEjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8941
8941
|
}
|
|
8942
8942
|
function getEventPayload(event) {
|
|
8943
8943
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9439,7 +9439,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
|
|
|
9439
9439
|
}
|
|
9440
9440
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
9441
9441
|
if (open2 && dashboardUrl) {
|
|
9442
|
-
|
|
9442
|
+
_chunk3XKAOV74js.openInBrowser.call(void 0, dashboardUrl);
|
|
9443
9443
|
}
|
|
9444
9444
|
}
|
|
9445
9445
|
function printPlayLogLines(input) {
|
|
@@ -9501,7 +9501,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9501
9501
|
billing: false
|
|
9502
9502
|
});
|
|
9503
9503
|
} catch (error) {
|
|
9504
|
-
if (
|
|
9504
|
+
if (_chunkHC5L6KGEjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9505
9505
|
return null;
|
|
9506
9506
|
}
|
|
9507
9507
|
throw error;
|
|
@@ -9690,7 +9690,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9690
9690
|
billing: false
|
|
9691
9691
|
});
|
|
9692
9692
|
} catch (error) {
|
|
9693
|
-
if (
|
|
9693
|
+
if (_chunkHC5L6KGEjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9694
9694
|
return null;
|
|
9695
9695
|
}
|
|
9696
9696
|
throw error;
|
|
@@ -9898,7 +9898,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9898
9898
|
lastPhase
|
|
9899
9899
|
});
|
|
9900
9900
|
}
|
|
9901
|
-
if (lastKnownWorkflowId &&
|
|
9901
|
+
if (lastKnownWorkflowId && _chunkHC5L6KGEjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9902
9902
|
if (timeout) {
|
|
9903
9903
|
clearTimeout(timeout);
|
|
9904
9904
|
}
|
|
@@ -9934,7 +9934,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9934
9934
|
onRunAdmitted: confirmAdmission
|
|
9935
9935
|
});
|
|
9936
9936
|
}
|
|
9937
|
-
if (!lastKnownWorkflowId &&
|
|
9937
|
+
if (!lastKnownWorkflowId && _chunkHC5L6KGEjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9938
9938
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
9939
9939
|
phase: "cli.play_start_stream_transient_failure",
|
|
9940
9940
|
ms: Date.now() - startedAt,
|
|
@@ -10033,7 +10033,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10033
10033
|
"logs"
|
|
10034
10034
|
]);
|
|
10035
10035
|
function formatPlayLogLine(rawLine, state) {
|
|
10036
|
-
const classified =
|
|
10036
|
+
const classified = _chunkHC5L6KGEjs.classifyLogLine.call(void 0, rawLine);
|
|
10037
10037
|
const line = classified.line;
|
|
10038
10038
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10039
10039
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _308 => _308[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10048,14 +10048,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10048
10048
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10049
10049
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10050
10050
|
if (providerWait && !state.verbose) {
|
|
10051
|
-
return
|
|
10051
|
+
return _chunkHC5L6KGEjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10052
10052
|
}
|
|
10053
10053
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10054
10054
|
if (mapProgress && !state.verbose) {
|
|
10055
|
-
return
|
|
10055
|
+
return _chunkHC5L6KGEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10056
10056
|
}
|
|
10057
10057
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10058
|
-
if (!
|
|
10058
|
+
if (!_chunkHC5L6KGEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10059
10059
|
return null;
|
|
10060
10060
|
}
|
|
10061
10061
|
if (state.emittedRunnerStarted) {
|
|
@@ -10068,7 +10068,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10068
10068
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10069
10069
|
);
|
|
10070
10070
|
if (mapStart) {
|
|
10071
|
-
if (!
|
|
10071
|
+
if (!_chunkHC5L6KGEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10072
10072
|
return null;
|
|
10073
10073
|
}
|
|
10074
10074
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10078,7 +10078,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10078
10078
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10079
10079
|
);
|
|
10080
10080
|
if (mapDone) {
|
|
10081
|
-
if (!
|
|
10081
|
+
if (!_chunkHC5L6KGEjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10082
10082
|
return null;
|
|
10083
10083
|
}
|
|
10084
10084
|
const [, results, executed, cached] = mapDone;
|
|
@@ -11365,7 +11365,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11365
11365
|
(line) => typeof line === "string"
|
|
11366
11366
|
);
|
|
11367
11367
|
if (tail.length === 0) return [];
|
|
11368
|
-
const shown = tail.map((line) =>
|
|
11368
|
+
const shown = tail.map((line) => _chunkHC5L6KGEjs.classifyLogLine.call(void 0, line)).filter(
|
|
11369
11369
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11370
11370
|
).slice(-8);
|
|
11371
11371
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11645,7 +11645,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11645
11645
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _389 => _389.hits]), () => ( null));
|
|
11646
11646
|
if (jsonOutput) {
|
|
11647
11647
|
const payload2 = _optionalChain([options, 'optionalAccess', _390 => _390.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11648
|
-
|
|
11648
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
11649
11649
|
hits ? { ...payload2, hits } : payload2,
|
|
11650
11650
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _391 => _391.jsonFields]) }
|
|
11651
11651
|
);
|
|
@@ -11661,7 +11661,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11661
11661
|
...buildPlayCompletionTextLines(status),
|
|
11662
11662
|
...formatRunHitsLines(hits)
|
|
11663
11663
|
];
|
|
11664
|
-
|
|
11664
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11665
11665
|
json: false,
|
|
11666
11666
|
text: `${lines2.join("\n")}
|
|
11667
11667
|
`
|
|
@@ -11712,7 +11712,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11712
11712
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11713
11713
|
const compact = compactPlayStatus(status);
|
|
11714
11714
|
const payload = _optionalChain([options, 'optionalAccess', _393 => _393.fullJson]) ? status : compact;
|
|
11715
|
-
|
|
11715
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
11716
11716
|
{
|
|
11717
11717
|
...payload,
|
|
11718
11718
|
render: {
|
|
@@ -12482,7 +12482,7 @@ function writeStartedPlayRun(input) {
|
|
|
12482
12482
|
dashboardUrl: input.dashboardUrl,
|
|
12483
12483
|
package: input.package
|
|
12484
12484
|
};
|
|
12485
|
-
|
|
12485
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12486
12486
|
json: true,
|
|
12487
12487
|
fields: input.jsonFields
|
|
12488
12488
|
});
|
|
@@ -12504,7 +12504,7 @@ function writeStartedPlayRun(input) {
|
|
|
12504
12504
|
input.progress.writeLine(output2, process.stdout);
|
|
12505
12505
|
return;
|
|
12506
12506
|
}
|
|
12507
|
-
|
|
12507
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0, input.package, {
|
|
12508
12508
|
json: false,
|
|
12509
12509
|
text: `${output2}
|
|
12510
12510
|
`
|
|
@@ -12533,7 +12533,7 @@ function writeStartedPlayRun(input) {
|
|
|
12533
12533
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12534
12534
|
];
|
|
12535
12535
|
if (input.jsonOutput) {
|
|
12536
|
-
|
|
12536
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12537
12537
|
return;
|
|
12538
12538
|
}
|
|
12539
12539
|
if (input.dashboardUrl) {
|
|
@@ -12544,7 +12544,7 @@ function writeStartedPlayRun(input) {
|
|
|
12544
12544
|
input.progress.writeLine(output, process.stdout);
|
|
12545
12545
|
return;
|
|
12546
12546
|
}
|
|
12547
|
-
|
|
12547
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
12548
12548
|
{
|
|
12549
12549
|
...payload,
|
|
12550
12550
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12554,7 +12554,7 @@ function writeStartedPlayRun(input) {
|
|
|
12554
12554
|
);
|
|
12555
12555
|
}
|
|
12556
12556
|
function parsePlayCheckOptions(args) {
|
|
12557
|
-
const selection =
|
|
12557
|
+
const selection = _chunk3XKAOV74js.parseJsonFields.call(void 0, args, "check");
|
|
12558
12558
|
args = selection.args;
|
|
12559
12559
|
const target = args[0];
|
|
12560
12560
|
if (!target || target.startsWith("-")) {
|
|
@@ -12566,7 +12566,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12566
12566
|
if (arg !== "--json" && arg !== "--full")
|
|
12567
12567
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12568
12568
|
}
|
|
12569
|
-
const jsonOutput =
|
|
12569
|
+
const jsonOutput = _chunk3XKAOV74js.argsWantJson.call(void 0, args);
|
|
12570
12570
|
return {
|
|
12571
12571
|
target,
|
|
12572
12572
|
jsonOutput,
|
|
@@ -12642,7 +12642,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12642
12642
|
useLatest,
|
|
12643
12643
|
expectedArtifactHash,
|
|
12644
12644
|
dryRun,
|
|
12645
|
-
jsonOutput:
|
|
12645
|
+
jsonOutput: _chunk3XKAOV74js.argsWantJson.call(void 0, args)
|
|
12646
12646
|
};
|
|
12647
12647
|
}
|
|
12648
12648
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12683,7 +12683,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12683
12683
|
target,
|
|
12684
12684
|
expectedArtifactHash,
|
|
12685
12685
|
dryRun,
|
|
12686
|
-
jsonOutput:
|
|
12686
|
+
jsonOutput: _chunk3XKAOV74js.argsWantJson.call(void 0, args)
|
|
12687
12687
|
};
|
|
12688
12688
|
}
|
|
12689
12689
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12894,7 +12894,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12894
12894
|
async function handlePlayCheck(args) {
|
|
12895
12895
|
const options = parsePlayCheckOptions(args);
|
|
12896
12896
|
if (!isFileTarget2(options.target)) {
|
|
12897
|
-
const client = new (0,
|
|
12897
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
12898
12898
|
try {
|
|
12899
12899
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12900
12900
|
command: "check"
|
|
@@ -12923,7 +12923,7 @@ async function handlePlayCheck(args) {
|
|
|
12923
12923
|
},
|
|
12924
12924
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12925
12925
|
};
|
|
12926
|
-
|
|
12926
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0, result, {
|
|
12927
12927
|
json: options.jsonOutput,
|
|
12928
12928
|
fields: options.jsonFields,
|
|
12929
12929
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12933,7 +12933,7 @@ async function handlePlayCheck(args) {
|
|
|
12933
12933
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12934
12934
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12935
12935
|
if (options.jsonOutput) {
|
|
12936
|
-
|
|
12936
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
12937
12937
|
{
|
|
12938
12938
|
kind: "play_check",
|
|
12939
12939
|
checked: "named_contract",
|
|
@@ -12975,7 +12975,7 @@ async function handlePlayCheck(args) {
|
|
|
12975
12975
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12976
12976
|
publishCommand: _optionalChain([primary, 'optionalAccess', _440 => _440.result, 'access', _441 => _441.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12977
12977
|
});
|
|
12978
|
-
|
|
12978
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0, output, {
|
|
12979
12979
|
json: options.jsonOutput,
|
|
12980
12980
|
fields: options.jsonFields,
|
|
12981
12981
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -13029,7 +13029,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13029
13029
|
}
|
|
13030
13030
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13031
13031
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13032
|
-
const client = new (0,
|
|
13032
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
13033
13033
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13034
13034
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
13035
13035
|
playName: node.playName,
|
|
@@ -13106,7 +13106,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13106
13106
|
);
|
|
13107
13107
|
return 0;
|
|
13108
13108
|
}
|
|
13109
|
-
client = new (0,
|
|
13109
|
+
client = new (0, _chunkHC5L6KGEjs.DeeplineClient)(playRunClientOptions(options));
|
|
13110
13110
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
13111
13111
|
if (canDeferCompilerManifest) {
|
|
13112
13112
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -13301,7 +13301,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13301
13301
|
if (options.target.kind !== "name") {
|
|
13302
13302
|
throw new Error("Expected a named play run target.");
|
|
13303
13303
|
}
|
|
13304
|
-
const client = new (0,
|
|
13304
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)(playRunClientOptions(options));
|
|
13305
13305
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13306
13306
|
const playName = options.target.name;
|
|
13307
13307
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -13698,10 +13698,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13698
13698
|
);
|
|
13699
13699
|
return `${lines.join("\n")}
|
|
13700
13700
|
|
|
13701
|
-
${
|
|
13701
|
+
${_chunk3XKAOV74js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13702
13702
|
}
|
|
13703
13703
|
async function handleRunGet(args) {
|
|
13704
|
-
const selection =
|
|
13704
|
+
const selection = _chunk3XKAOV74js.parseJsonFields.call(void 0,
|
|
13705
13705
|
args,
|
|
13706
13706
|
args.includes("--config") ? "config" : "get"
|
|
13707
13707
|
);
|
|
@@ -13714,7 +13714,7 @@ async function handleRunGet(args) {
|
|
|
13714
13714
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13715
13715
|
return 1;
|
|
13716
13716
|
}
|
|
13717
|
-
const client = new (0,
|
|
13717
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
13718
13718
|
if (args.includes("--config")) {
|
|
13719
13719
|
if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
|
|
13720
13720
|
console.error(
|
|
@@ -13728,7 +13728,7 @@ async function handleRunGet(args) {
|
|
|
13728
13728
|
"This server does not support recorded configuration reads."
|
|
13729
13729
|
);
|
|
13730
13730
|
}
|
|
13731
|
-
|
|
13731
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
13732
13732
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13733
13733
|
{ json: true, fields: selection.fields }
|
|
13734
13734
|
);
|
|
@@ -13736,7 +13736,7 @@ async function handleRunGet(args) {
|
|
|
13736
13736
|
}
|
|
13737
13737
|
if (args.includes("--input")) {
|
|
13738
13738
|
const input = await client.getRunInput(runId);
|
|
13739
|
-
|
|
13739
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13740
13740
|
return 0;
|
|
13741
13741
|
}
|
|
13742
13742
|
const full = args.includes("--full");
|
|
@@ -13750,8 +13750,8 @@ async function handleRunGet(args) {
|
|
|
13750
13750
|
full: true,
|
|
13751
13751
|
failedLogs: args.includes("--log-failed")
|
|
13752
13752
|
}) : status;
|
|
13753
|
-
if (
|
|
13754
|
-
|
|
13753
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
13754
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
13755
13755
|
full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13756
13756
|
{ json: true, fields: selection.fields }
|
|
13757
13757
|
);
|
|
@@ -13767,8 +13767,8 @@ async function handleRunGet(args) {
|
|
|
13767
13767
|
readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
|
|
13768
13768
|
]);
|
|
13769
13769
|
const hitLines = formatRunHitsLines(hits);
|
|
13770
|
-
const json =
|
|
13771
|
-
|
|
13770
|
+
const json = _chunk3XKAOV74js.argsWantJson.call(void 0, args);
|
|
13771
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
13772
13772
|
{
|
|
13773
13773
|
...overview,
|
|
13774
13774
|
credits,
|
|
@@ -13871,9 +13871,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13871
13871
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13872
13872
|
return 1;
|
|
13873
13873
|
}
|
|
13874
|
-
const status = await new (0,
|
|
13875
|
-
if (
|
|
13876
|
-
|
|
13874
|
+
const status = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().runs.status(runId);
|
|
13875
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
13876
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13877
13877
|
return 0;
|
|
13878
13878
|
}
|
|
13879
13879
|
if (!status.available) {
|
|
@@ -13913,7 +13913,7 @@ async function handleRunsRerun(args) {
|
|
|
13913
13913
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13914
13914
|
return 1;
|
|
13915
13915
|
}
|
|
13916
|
-
const options = { json:
|
|
13916
|
+
const options = { json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) };
|
|
13917
13917
|
for (let index = 0; index < args.length; index += 1) {
|
|
13918
13918
|
if (args[index] === "--idempotency-key") {
|
|
13919
13919
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13978,8 +13978,8 @@ ${usage2}
|
|
|
13978
13978
|
Discover Plays: ${next.discover}
|
|
13979
13979
|
Active runs: ${next.running}`
|
|
13980
13980
|
);
|
|
13981
|
-
if (
|
|
13982
|
-
|
|
13981
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
13982
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
13983
13983
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13984
13984
|
{ json: true }
|
|
13985
13985
|
);
|
|
@@ -13994,7 +13994,7 @@ Active runs: ${next.running}`
|
|
|
13994
13994
|
console.error("--offset requires --play.");
|
|
13995
13995
|
return 1;
|
|
13996
13996
|
}
|
|
13997
|
-
const client = new (0,
|
|
13997
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
13998
13998
|
const page = await client.runs.listPage({
|
|
13999
13999
|
...playName ? { play: playName } : {},
|
|
14000
14000
|
...statusFilter ? { status: statusFilter } : {},
|
|
@@ -14063,7 +14063,7 @@ Active runs: ${next.running}`
|
|
|
14063
14063
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14064
14064
|
);
|
|
14065
14065
|
}
|
|
14066
|
-
|
|
14066
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
14067
14067
|
{
|
|
14068
14068
|
runs,
|
|
14069
14069
|
count: runs.length,
|
|
@@ -14077,7 +14077,7 @@ Active runs: ${next.running}`
|
|
|
14077
14077
|
},
|
|
14078
14078
|
render: { sections: [{ title: "runs", lines }] }
|
|
14079
14079
|
},
|
|
14080
|
-
{ json:
|
|
14080
|
+
{ json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) }
|
|
14081
14081
|
);
|
|
14082
14082
|
return 0;
|
|
14083
14083
|
}
|
|
@@ -14107,7 +14107,7 @@ async function handleRunTail(args) {
|
|
|
14107
14107
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14108
14108
|
return 1;
|
|
14109
14109
|
}
|
|
14110
|
-
const parsed =
|
|
14110
|
+
const parsed = _chunkHC5L6KGEjs.parseLogLevel.call(void 0, value);
|
|
14111
14111
|
if (!parsed) {
|
|
14112
14112
|
console.error(
|
|
14113
14113
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14145,9 +14145,9 @@ async function handleRunTail(args) {
|
|
|
14145
14145
|
);
|
|
14146
14146
|
return 1;
|
|
14147
14147
|
}
|
|
14148
|
-
const client = new (0,
|
|
14148
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
14149
14149
|
const jsonLines = args.includes("--jsonl");
|
|
14150
|
-
const jsonOutput = !jsonLines &&
|
|
14150
|
+
const jsonOutput = !jsonLines && _chunk3XKAOV74js.argsWantJson.call(void 0, args);
|
|
14151
14151
|
const compact = args.includes("--compact");
|
|
14152
14152
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14153
14153
|
const compactState = {
|
|
@@ -14228,7 +14228,7 @@ async function handleRunLogs(args) {
|
|
|
14228
14228
|
]);
|
|
14229
14229
|
const cursorIndex = args.indexOf("--cursor");
|
|
14230
14230
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14231
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14231
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkHC5L6KGEjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
14232
14232
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14233
14233
|
return handleRunEventSearch(args);
|
|
14234
14234
|
}
|
|
@@ -14262,7 +14262,7 @@ async function handleRunLogs(args) {
|
|
|
14262
14262
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14263
14263
|
return 1;
|
|
14264
14264
|
}
|
|
14265
|
-
const parsed =
|
|
14265
|
+
const parsed = _chunkHC5L6KGEjs.parseLogLevel.call(void 0, value);
|
|
14266
14266
|
if (!parsed) {
|
|
14267
14267
|
console.error(
|
|
14268
14268
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14309,12 +14309,12 @@ async function handleRunLogs(args) {
|
|
|
14309
14309
|
);
|
|
14310
14310
|
return 1;
|
|
14311
14311
|
}
|
|
14312
|
-
const client = new (0,
|
|
14312
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
14313
14313
|
if (outPath) {
|
|
14314
14314
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14315
|
-
const logs = result2.entries.filter((line) =>
|
|
14315
|
+
const logs = result2.entries.filter((line) => _chunkHC5L6KGEjs.logLevelReaches.call(void 0, _chunkHC5L6KGEjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkHC5L6KGEjs.classifyLogLine.call(void 0, line).line);
|
|
14316
14316
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14317
|
-
|
|
14317
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
14318
14318
|
{
|
|
14319
14319
|
runId: result2.runId,
|
|
14320
14320
|
log_path: outPath,
|
|
@@ -14337,7 +14337,7 @@ async function handleRunLogs(args) {
|
|
|
14337
14337
|
]
|
|
14338
14338
|
}
|
|
14339
14339
|
},
|
|
14340
|
-
{ json:
|
|
14340
|
+
{ json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) }
|
|
14341
14341
|
);
|
|
14342
14342
|
return 0;
|
|
14343
14343
|
}
|
|
@@ -14368,7 +14368,7 @@ async function handleRunLogs(args) {
|
|
|
14368
14368
|
}
|
|
14369
14369
|
};
|
|
14370
14370
|
const text = buildRunLogsText(filteredResult);
|
|
14371
|
-
|
|
14371
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
14372
14372
|
{
|
|
14373
14373
|
runId: result.runId,
|
|
14374
14374
|
totalCount: result.totalCount,
|
|
@@ -14392,7 +14392,7 @@ async function handleRunLogs(args) {
|
|
|
14392
14392
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14393
14393
|
},
|
|
14394
14394
|
{
|
|
14395
|
-
json:
|
|
14395
|
+
json: _chunk3XKAOV74js.argsWantJson.call(void 0, args),
|
|
14396
14396
|
text
|
|
14397
14397
|
}
|
|
14398
14398
|
);
|
|
@@ -14416,7 +14416,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14416
14416
|
);
|
|
14417
14417
|
}
|
|
14418
14418
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14419
|
-
(entry) =>
|
|
14419
|
+
(entry) => _chunkHC5L6KGEjs.logLevelReaches.call(void 0, _chunkHC5L6KGEjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14420
14420
|
);
|
|
14421
14421
|
const selected = matching.slice(-limit);
|
|
14422
14422
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14426,7 +14426,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14426
14426
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _483 => _483.at, 'call', _484 => _484(-1), 'optionalAccess', _485 => _485.seq]), () => ( null)),
|
|
14427
14427
|
truncated: result.truncated || olderMatchesExist,
|
|
14428
14428
|
hasMore: olderMatchesExist,
|
|
14429
|
-
nextCursor: olderMatchesExist ?
|
|
14429
|
+
nextCursor: olderMatchesExist ? _chunkHC5L6KGEjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14430
14430
|
};
|
|
14431
14431
|
}
|
|
14432
14432
|
async function handleRunEventSearch(args) {
|
|
@@ -14493,7 +14493,7 @@ ${usage2}`);
|
|
|
14493
14493
|
namespace,
|
|
14494
14494
|
...backend ? { backend } : {}
|
|
14495
14495
|
} : void 0;
|
|
14496
|
-
const client = new (0,
|
|
14496
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
14497
14497
|
const result = await client.runs.searchEvents({
|
|
14498
14498
|
...runId ? { runId } : {},
|
|
14499
14499
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14565,7 +14565,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14565
14565
|
"--limit",
|
|
14566
14566
|
String(limit)
|
|
14567
14567
|
].join(" ") : null;
|
|
14568
|
-
|
|
14568
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
14569
14569
|
{
|
|
14570
14570
|
events,
|
|
14571
14571
|
nextCursor: result.nextCursor,
|
|
@@ -14576,14 +14576,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14576
14576
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14577
14577
|
},
|
|
14578
14578
|
{
|
|
14579
|
-
json:
|
|
14579
|
+
json: _chunk3XKAOV74js.argsWantJson.call(void 0, args),
|
|
14580
14580
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14581
14581
|
}
|
|
14582
14582
|
);
|
|
14583
14583
|
return 0;
|
|
14584
14584
|
}
|
|
14585
14585
|
function buildRunLogsText(result) {
|
|
14586
|
-
const lines = result.entries.map((line) =>
|
|
14586
|
+
const lines = result.entries.map((line) => _chunkHC5L6KGEjs.classifyLogLine.call(void 0, line).line);
|
|
14587
14587
|
if (result.warning) {
|
|
14588
14588
|
if (lines.length > 0) lines.push("");
|
|
14589
14589
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14617,7 +14617,7 @@ async function handleRunStop(args) {
|
|
|
14617
14617
|
reason = args[++index];
|
|
14618
14618
|
}
|
|
14619
14619
|
}
|
|
14620
|
-
const client = new (0,
|
|
14620
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
14621
14621
|
const result = await client.runs.stop(runId, { reason });
|
|
14622
14622
|
const state = resolveRunStopState(result);
|
|
14623
14623
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14632,7 +14632,7 @@ async function handleRunStop(args) {
|
|
|
14632
14632
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14633
14633
|
`inspect: deepline runs get ${runId} --full`
|
|
14634
14634
|
];
|
|
14635
|
-
|
|
14635
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
14636
14636
|
{
|
|
14637
14637
|
...cancelling,
|
|
14638
14638
|
state,
|
|
@@ -14647,7 +14647,7 @@ async function handleRunStop(args) {
|
|
|
14647
14647
|
]
|
|
14648
14648
|
}
|
|
14649
14649
|
},
|
|
14650
|
-
{ json:
|
|
14650
|
+
{ json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) }
|
|
14651
14651
|
);
|
|
14652
14652
|
return 0;
|
|
14653
14653
|
}
|
|
@@ -14664,7 +14664,7 @@ async function handleRunStop(args) {
|
|
|
14664
14664
|
];
|
|
14665
14665
|
process.stderr.write(`${lines2.join("\n")}
|
|
14666
14666
|
`);
|
|
14667
|
-
|
|
14667
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
14668
14668
|
{
|
|
14669
14669
|
...result,
|
|
14670
14670
|
render: {
|
|
@@ -14679,7 +14679,7 @@ async function handleRunStop(args) {
|
|
|
14679
14679
|
]
|
|
14680
14680
|
}
|
|
14681
14681
|
},
|
|
14682
|
-
{ json:
|
|
14682
|
+
{ json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) }
|
|
14683
14683
|
);
|
|
14684
14684
|
return 1;
|
|
14685
14685
|
}
|
|
@@ -14690,12 +14690,12 @@ async function handleRunStop(args) {
|
|
|
14690
14690
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14691
14691
|
] : []
|
|
14692
14692
|
];
|
|
14693
|
-
|
|
14693
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
14694
14694
|
{
|
|
14695
14695
|
...result,
|
|
14696
14696
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14697
14697
|
},
|
|
14698
|
-
{ json:
|
|
14698
|
+
{ json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) }
|
|
14699
14699
|
);
|
|
14700
14700
|
return 0;
|
|
14701
14701
|
}
|
|
@@ -14745,18 +14745,18 @@ async function handleRunStopAll(args) {
|
|
|
14745
14745
|
reason = args[++index];
|
|
14746
14746
|
}
|
|
14747
14747
|
}
|
|
14748
|
-
const client = new (0,
|
|
14748
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
14749
14749
|
if (dryRun) {
|
|
14750
14750
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14751
14751
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14752
|
-
|
|
14752
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
14753
14753
|
{
|
|
14754
14754
|
...result2,
|
|
14755
14755
|
render: {
|
|
14756
14756
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14757
14757
|
}
|
|
14758
14758
|
},
|
|
14759
|
-
{ json:
|
|
14759
|
+
{ json: _chunk3XKAOV74js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14760
14760
|
` }
|
|
14761
14761
|
);
|
|
14762
14762
|
return 0;
|
|
@@ -14769,17 +14769,17 @@ async function handleRunStopAll(args) {
|
|
|
14769
14769
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14770
14770
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14771
14771
|
];
|
|
14772
|
-
|
|
14772
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
14773
14773
|
{
|
|
14774
14774
|
...result,
|
|
14775
14775
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14776
14776
|
},
|
|
14777
|
-
{ json:
|
|
14777
|
+
{ json: _chunk3XKAOV74js.argsWantJson.call(void 0, args) }
|
|
14778
14778
|
);
|
|
14779
14779
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14780
14780
|
}
|
|
14781
14781
|
async function handleRunExport(args) {
|
|
14782
|
-
const selection =
|
|
14782
|
+
const selection = _chunk3XKAOV74js.parseJsonFields.call(void 0, args, "export");
|
|
14783
14783
|
args = selection.args;
|
|
14784
14784
|
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]";
|
|
14785
14785
|
let runId;
|
|
@@ -14838,16 +14838,16 @@ async function handleRunExport(args) {
|
|
|
14838
14838
|
"INVALID_ARGUMENT"
|
|
14839
14839
|
);
|
|
14840
14840
|
}
|
|
14841
|
-
const client = new (0,
|
|
14841
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
14842
14842
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14843
14843
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14844
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
14844
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunk3XKAOV74js.argsWantJson.call(void 0, args));
|
|
14845
14845
|
try {
|
|
14846
14846
|
await waitForPlayCompletionByWatch({
|
|
14847
14847
|
client,
|
|
14848
14848
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14849
14849
|
workflowId: runId,
|
|
14850
|
-
jsonOutput:
|
|
14850
|
+
jsonOutput: _chunk3XKAOV74js.argsWantJson.call(void 0, args),
|
|
14851
14851
|
emitLogs: false,
|
|
14852
14852
|
waitTimeoutMs,
|
|
14853
14853
|
startedAt: Date.now(),
|
|
@@ -14947,8 +14947,8 @@ async function handleRunExport(args) {
|
|
|
14947
14947
|
"utf-8"
|
|
14948
14948
|
);
|
|
14949
14949
|
}
|
|
14950
|
-
|
|
14951
|
-
json:
|
|
14950
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0, payload, {
|
|
14951
|
+
json: _chunk3XKAOV74js.argsWantJson.call(void 0, args),
|
|
14952
14952
|
fields: selection.fields,
|
|
14953
14953
|
text: `${lines.join("\n")}
|
|
14954
14954
|
`
|
|
@@ -14969,10 +14969,10 @@ async function handlePlayGet(args) {
|
|
|
14969
14969
|
);
|
|
14970
14970
|
return 2;
|
|
14971
14971
|
}
|
|
14972
|
-
const client = new (0,
|
|
14972
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
14973
14973
|
const explicitJson = args.includes("--json");
|
|
14974
14974
|
const sourceOutput = args.includes("--source");
|
|
14975
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14975
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunk3XKAOV74js.argsWantJson.call(void 0, args);
|
|
14976
14976
|
const requestedRevisionFlags = [
|
|
14977
14977
|
args.includes("--working"),
|
|
14978
14978
|
args.includes("--live"),
|
|
@@ -15032,7 +15032,7 @@ async function handlePlayGet(args) {
|
|
|
15032
15032
|
}
|
|
15033
15033
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15034
15034
|
if (jsonOutput) {
|
|
15035
|
-
|
|
15035
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, {
|
|
15036
15036
|
...detail,
|
|
15037
15037
|
...materializedFile ? {
|
|
15038
15038
|
message: loadedMessage,
|
|
@@ -15124,8 +15124,8 @@ async function handlePlayVersions(args) {
|
|
|
15124
15124
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15125
15125
|
return 1;
|
|
15126
15126
|
}
|
|
15127
|
-
const client = new (0,
|
|
15128
|
-
const jsonOutput =
|
|
15127
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
15128
|
+
const jsonOutput = _chunk3XKAOV74js.argsWantJson.call(void 0, args);
|
|
15129
15129
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15130
15130
|
command: "versions"
|
|
15131
15131
|
});
|
|
@@ -15133,7 +15133,7 @@ async function handlePlayVersions(args) {
|
|
|
15133
15133
|
parseReferencedPlayTarget2(playName).playName
|
|
15134
15134
|
);
|
|
15135
15135
|
if (jsonOutput) {
|
|
15136
|
-
|
|
15136
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, { versions });
|
|
15137
15137
|
return 0;
|
|
15138
15138
|
}
|
|
15139
15139
|
if (versions.length === 0) {
|
|
@@ -15165,9 +15165,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
15165
15165
|
"signals"
|
|
15166
15166
|
];
|
|
15167
15167
|
async function handlePlayList(args) {
|
|
15168
|
-
const jsonOutput =
|
|
15168
|
+
const jsonOutput = _chunk3XKAOV74js.argsWantJson.call(void 0, args);
|
|
15169
15169
|
const showCost = args.includes("--show-cost");
|
|
15170
|
-
const client = new (0,
|
|
15170
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
15171
15171
|
const categoriesIndex = args.indexOf("--categories");
|
|
15172
15172
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _521 => _521[categoriesIndex + 1], 'optionalAccess', _522 => _522.trim, 'call', _523 => _523()]) : void 0;
|
|
15173
15173
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15264,7 +15264,7 @@ async function handlePlayList(args) {
|
|
|
15264
15264
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15265
15265
|
lines.push(`Next page: ${nextPage}`);
|
|
15266
15266
|
}
|
|
15267
|
-
|
|
15267
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
15268
15268
|
{
|
|
15269
15269
|
plays,
|
|
15270
15270
|
count: plays.length,
|
|
@@ -15282,7 +15282,7 @@ async function handlePlayList(args) {
|
|
|
15282
15282
|
}
|
|
15283
15283
|
async function handlePlayPin(args, pinned) {
|
|
15284
15284
|
const target = _optionalChain([args, 'access', _530 => _530.find, 'call', _531 => _531((arg) => !arg.startsWith("-")), 'optionalAccess', _532 => _532.trim, 'call', _533 => _533()]);
|
|
15285
|
-
const jsonOutput =
|
|
15285
|
+
const jsonOutput = _chunk3XKAOV74js.argsWantJson.call(void 0, args);
|
|
15286
15286
|
const dryRun = args.includes("--dry-run");
|
|
15287
15287
|
if (!target) {
|
|
15288
15288
|
console.error(
|
|
@@ -15300,11 +15300,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15300
15300
|
const name = parsedTarget.playName;
|
|
15301
15301
|
const plan = { name, pinned, dryRun };
|
|
15302
15302
|
if (dryRun) {
|
|
15303
|
-
|
|
15303
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, plan);
|
|
15304
15304
|
return 0;
|
|
15305
15305
|
}
|
|
15306
|
-
const result = await new (0,
|
|
15307
|
-
if (jsonOutput)
|
|
15306
|
+
const result = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15307
|
+
if (jsonOutput) _chunk3XKAOV74js.printCompactJson.call(void 0, result);
|
|
15308
15308
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15309
15309
|
return 0;
|
|
15310
15310
|
}
|
|
@@ -15320,7 +15320,7 @@ function csvColumnLines(csvInput) {
|
|
|
15320
15320
|
const headers = [defaults[column]].flat().filter((header) => header && header !== column);
|
|
15321
15321
|
return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
|
|
15322
15322
|
}),
|
|
15323
|
-
|
|
15323
|
+
_chunkHC5L6KGEjs.CSV_HEADER_MATCHING_NOTE
|
|
15324
15324
|
];
|
|
15325
15325
|
}
|
|
15326
15326
|
function describedPlay(play) {
|
|
@@ -15482,12 +15482,12 @@ async function handlePlayGrep(args) {
|
|
|
15482
15482
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15483
15483
|
return 1;
|
|
15484
15484
|
}
|
|
15485
|
-
const client = new (0,
|
|
15485
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
15486
15486
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15487
15487
|
summarizePlayGrepResult
|
|
15488
15488
|
);
|
|
15489
|
-
if (
|
|
15490
|
-
|
|
15489
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
15490
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, {
|
|
15491
15491
|
plays: results,
|
|
15492
15492
|
count: results.length,
|
|
15493
15493
|
query,
|
|
@@ -15510,7 +15510,7 @@ async function handlePlayGrep(args) {
|
|
|
15510
15510
|
return 0;
|
|
15511
15511
|
}
|
|
15512
15512
|
async function handlePlayDescribe(args) {
|
|
15513
|
-
const selection =
|
|
15513
|
+
const selection = _chunk3XKAOV74js.parseJsonFields.call(void 0, args, "describe");
|
|
15514
15514
|
args = selection.args;
|
|
15515
15515
|
const playName = args[0];
|
|
15516
15516
|
if (!playName) {
|
|
@@ -15544,8 +15544,8 @@ async function handlePlayDescribe(args) {
|
|
|
15544
15544
|
`deepline plays check ${playName}`,
|
|
15545
15545
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15546
15546
|
];
|
|
15547
|
-
if (
|
|
15548
|
-
|
|
15547
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
15548
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, {
|
|
15549
15549
|
ok: false,
|
|
15550
15550
|
error: { message },
|
|
15551
15551
|
next
|
|
@@ -15559,7 +15559,7 @@ async function handlePlayDescribe(args) {
|
|
|
15559
15559
|
}
|
|
15560
15560
|
return 2;
|
|
15561
15561
|
}
|
|
15562
|
-
const client = new (0,
|
|
15562
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
15563
15563
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15564
15564
|
command: "describe"
|
|
15565
15565
|
});
|
|
@@ -15569,9 +15569,9 @@ async function handlePlayDescribe(args) {
|
|
|
15569
15569
|
compact: args.includes("--compact")
|
|
15570
15570
|
}
|
|
15571
15571
|
);
|
|
15572
|
-
if (
|
|
15573
|
-
if (selection.fields)
|
|
15574
|
-
else
|
|
15572
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
15573
|
+
if (selection.fields) _chunk3XKAOV74js.printJson.call(void 0, play, selection.fields);
|
|
15574
|
+
else _chunk3XKAOV74js.printCompactJson.call(void 0, play);
|
|
15575
15575
|
return 0;
|
|
15576
15576
|
}
|
|
15577
15577
|
printPlayDescription(play);
|
|
@@ -15615,7 +15615,7 @@ async function handlePlaySave(args) {
|
|
|
15615
15615
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15616
15616
|
};
|
|
15617
15617
|
if (options.jsonOutput) {
|
|
15618
|
-
|
|
15618
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, result);
|
|
15619
15619
|
} else {
|
|
15620
15620
|
console.error(result.message);
|
|
15621
15621
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15637,7 +15637,7 @@ async function handlePlaySave(args) {
|
|
|
15637
15637
|
};
|
|
15638
15638
|
if (options.dryRun) {
|
|
15639
15639
|
if (options.jsonOutput) {
|
|
15640
|
-
|
|
15640
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, dryRun);
|
|
15641
15641
|
} else {
|
|
15642
15642
|
console.log(`Dry run: ${playName}`);
|
|
15643
15643
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15646,7 +15646,7 @@ async function handlePlaySave(args) {
|
|
|
15646
15646
|
}
|
|
15647
15647
|
return 0;
|
|
15648
15648
|
}
|
|
15649
|
-
const client = new (0,
|
|
15649
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
15650
15650
|
try {
|
|
15651
15651
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
15652
15652
|
"cli.play_save_compile_manifests",
|
|
@@ -15682,7 +15682,7 @@ async function handlePlaySave(args) {
|
|
|
15682
15682
|
}
|
|
15683
15683
|
};
|
|
15684
15684
|
if (options.jsonOutput) {
|
|
15685
|
-
|
|
15685
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, result);
|
|
15686
15686
|
} else {
|
|
15687
15687
|
console.log(
|
|
15688
15688
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15708,7 +15708,7 @@ async function handlePlayPublish(args) {
|
|
|
15708
15708
|
}
|
|
15709
15709
|
const { target: playName, useLatest } = options;
|
|
15710
15710
|
let revisionId = options.revisionId;
|
|
15711
|
-
const client = new (0,
|
|
15711
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
15712
15712
|
if (isFileTarget2(playName)) {
|
|
15713
15713
|
if (revisionId || useLatest) {
|
|
15714
15714
|
console.error(
|
|
@@ -15740,7 +15740,7 @@ async function handlePlayPublish(args) {
|
|
|
15740
15740
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15741
15741
|
};
|
|
15742
15742
|
if (options.jsonOutput) {
|
|
15743
|
-
|
|
15743
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, result3);
|
|
15744
15744
|
} else {
|
|
15745
15745
|
console.error(result3.message);
|
|
15746
15746
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15763,7 +15763,7 @@ async function handlePlayPublish(args) {
|
|
|
15763
15763
|
};
|
|
15764
15764
|
if (options.dryRun) {
|
|
15765
15765
|
if (options.jsonOutput) {
|
|
15766
|
-
|
|
15766
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, dryRun);
|
|
15767
15767
|
} else {
|
|
15768
15768
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15769
15769
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15831,7 +15831,7 @@ async function handlePlayPublish(args) {
|
|
|
15831
15831
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15832
15832
|
};
|
|
15833
15833
|
if (options.jsonOutput) {
|
|
15834
|
-
|
|
15834
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, result2);
|
|
15835
15835
|
} else {
|
|
15836
15836
|
printPublishReceipt({
|
|
15837
15837
|
name: rootPlayName,
|
|
@@ -15862,7 +15862,7 @@ async function handlePlayPublish(args) {
|
|
|
15862
15862
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15863
15863
|
latest: useLatest
|
|
15864
15864
|
};
|
|
15865
|
-
|
|
15865
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, result2);
|
|
15866
15866
|
return 0;
|
|
15867
15867
|
}
|
|
15868
15868
|
const resolvedName = parseReferencedPlayTarget2(playName).playName;
|
|
@@ -15886,7 +15886,7 @@ async function handlePlayPublish(args) {
|
|
|
15886
15886
|
revisionId ? { revisionId } : {}
|
|
15887
15887
|
);
|
|
15888
15888
|
if (options.jsonOutput) {
|
|
15889
|
-
|
|
15889
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, result);
|
|
15890
15890
|
} else {
|
|
15891
15891
|
printPublishReceipt({
|
|
15892
15892
|
name: result.name,
|
|
@@ -15926,7 +15926,7 @@ async function handlePlayDelete(args) {
|
|
|
15926
15926
|
);
|
|
15927
15927
|
return 2;
|
|
15928
15928
|
}
|
|
15929
|
-
const client = new (0,
|
|
15929
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
15930
15930
|
let detail;
|
|
15931
15931
|
try {
|
|
15932
15932
|
detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
|
|
@@ -15950,8 +15950,8 @@ async function handlePlayDelete(args) {
|
|
|
15950
15950
|
name: resolvedName,
|
|
15951
15951
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15952
15952
|
};
|
|
15953
|
-
if (
|
|
15954
|
-
|
|
15953
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
15954
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, result2);
|
|
15955
15955
|
} else {
|
|
15956
15956
|
process.stdout.write(
|
|
15957
15957
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15961,8 +15961,8 @@ async function handlePlayDelete(args) {
|
|
|
15961
15961
|
return 0;
|
|
15962
15962
|
}
|
|
15963
15963
|
const result = await client.deletePlay(resolvedName);
|
|
15964
|
-
if (
|
|
15965
|
-
|
|
15964
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
15965
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, result);
|
|
15966
15966
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15967
15967
|
}
|
|
15968
15968
|
if (result.alreadyArchived) {
|
|
@@ -16001,13 +16001,13 @@ async function handlePlayRestore(args) {
|
|
|
16001
16001
|
);
|
|
16002
16002
|
return 2;
|
|
16003
16003
|
}
|
|
16004
|
-
const client = new (0,
|
|
16004
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
16005
16005
|
try {
|
|
16006
16006
|
const result = await client.restorePlay(
|
|
16007
16007
|
parseReferencedPlayTarget2(playName).playName
|
|
16008
16008
|
);
|
|
16009
|
-
if (
|
|
16010
|
-
|
|
16009
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
16010
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, result);
|
|
16011
16011
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
16012
16012
|
}
|
|
16013
16013
|
if (result.alreadyActive) {
|
|
@@ -16113,7 +16113,7 @@ Examples:
|
|
|
16113
16113
|
).action(async (target, options) => {
|
|
16114
16114
|
process.exitCode = await handlePlayCheck([
|
|
16115
16115
|
target,
|
|
16116
|
-
...
|
|
16116
|
+
..._chunk3XKAOV74js.jsonFieldArgs.call(void 0, options.json),
|
|
16117
16117
|
...options.full ? ["--full"] : []
|
|
16118
16118
|
]);
|
|
16119
16119
|
});
|
|
@@ -16340,9 +16340,9 @@ Examples:
|
|
|
16340
16340
|
const limit = Number(options.historyLimit);
|
|
16341
16341
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16342
16342
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16343
|
-
const client = new (0,
|
|
16343
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
16344
16344
|
if (options.binding) {
|
|
16345
|
-
|
|
16345
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0,
|
|
16346
16346
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16347
16347
|
);
|
|
16348
16348
|
return;
|
|
@@ -16350,7 +16350,7 @@ Examples:
|
|
|
16350
16350
|
const result = await client.listPlayTriggerInventory({
|
|
16351
16351
|
cursor: options.cursor
|
|
16352
16352
|
});
|
|
16353
|
-
|
|
16353
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, {
|
|
16354
16354
|
...result,
|
|
16355
16355
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16356
16356
|
});
|
|
@@ -16397,7 +16397,7 @@ Examples:
|
|
|
16397
16397
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16398
16398
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16399
16399
|
}
|
|
16400
|
-
const result = await new (0,
|
|
16400
|
+
const result = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().getPlaysActivity({
|
|
16401
16401
|
timeZone: options.timeZone,
|
|
16402
16402
|
days,
|
|
16403
16403
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16411,7 +16411,7 @@ Examples:
|
|
|
16411
16411
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16412
16412
|
);
|
|
16413
16413
|
}
|
|
16414
|
-
|
|
16414
|
+
_chunk3XKAOV74js.printCommandEnvelope.call(void 0,
|
|
16415
16415
|
{ ...result },
|
|
16416
16416
|
{
|
|
16417
16417
|
json: Boolean(options.json),
|
|
@@ -16440,7 +16440,7 @@ Examples:
|
|
|
16440
16440
|
false
|
|
16441
16441
|
);
|
|
16442
16442
|
});
|
|
16443
|
-
|
|
16443
|
+
_chunk53PZA4EPjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16444
16444
|
play,
|
|
16445
16445
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16446
16446
|
);
|
|
@@ -16483,7 +16483,7 @@ Examples:
|
|
|
16483
16483
|
);
|
|
16484
16484
|
_chunkYPVTQRUMjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16485
16485
|
async (target, options) => {
|
|
16486
|
-
const ownView = () => handlePlayDescribe(
|
|
16486
|
+
const ownView = () => handlePlayDescribe(_chunk3XKAOV74js.describeArgs.call(void 0, target, options));
|
|
16487
16487
|
const [flagText] = [options.json].filter(
|
|
16488
16488
|
(value) => typeof value === "string"
|
|
16489
16489
|
);
|
|
@@ -16494,7 +16494,7 @@ Examples:
|
|
|
16494
16494
|
process.exitCode = await ownView();
|
|
16495
16495
|
return;
|
|
16496
16496
|
}
|
|
16497
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16497
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-N2OBGVJM.js")));
|
|
16498
16498
|
process.exitCode = await describeAnything(
|
|
16499
16499
|
name,
|
|
16500
16500
|
{
|
|
@@ -16612,7 +16612,7 @@ Examples:
|
|
|
16612
16612
|
deepline plays deployments <deployment-id>
|
|
16613
16613
|
`
|
|
16614
16614
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16615
|
-
async (id, options) => id ?
|
|
16615
|
+
async (id, options) => id ? _chunkRXR7A2MXjs.handleDeploymentGet.call(void 0, id, options) : _chunkRXR7A2MXjs.handleDeploymentsList.call(void 0, options)
|
|
16616
16616
|
);
|
|
16617
16617
|
addPublishHelp(
|
|
16618
16618
|
play.command("publish <target>").description(
|
|
@@ -16791,7 +16791,7 @@ Examples:
|
|
|
16791
16791
|
).action(async (runId, options) => {
|
|
16792
16792
|
process.exitCode = await handleRunGet([
|
|
16793
16793
|
runId,
|
|
16794
|
-
...
|
|
16794
|
+
..._chunk3XKAOV74js.jsonFieldArgs.call(void 0, options.json),
|
|
16795
16795
|
...options.full ? ["--full"] : [],
|
|
16796
16796
|
...options.input ? ["--input"] : [],
|
|
16797
16797
|
...options.config ? ["--config"] : [],
|
|
@@ -17066,7 +17066,7 @@ Examples:
|
|
|
17066
17066
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17067
17067
|
...options.wait ? ["--wait"] : [],
|
|
17068
17068
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17069
|
-
...
|
|
17069
|
+
..._chunk3XKAOV74js.jsonFieldArgs.call(void 0, options.json)
|
|
17070
17070
|
]);
|
|
17071
17071
|
});
|
|
17072
17072
|
const share = play.command("share").description(
|
|
@@ -17232,10 +17232,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17232
17232
|
return 2;
|
|
17233
17233
|
}
|
|
17234
17234
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17235
|
-
const status = await new (0,
|
|
17235
|
+
const status = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().getSharePage(name);
|
|
17236
17236
|
const outputStatus = shareStatusForOutput(status);
|
|
17237
|
-
if (
|
|
17238
|
-
|
|
17237
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
17238
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, outputStatus);
|
|
17239
17239
|
return 0;
|
|
17240
17240
|
}
|
|
17241
17241
|
if (!outputStatus.share) {
|
|
@@ -17274,7 +17274,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17274
17274
|
return 2;
|
|
17275
17275
|
}
|
|
17276
17276
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17277
|
-
const client = new (0,
|
|
17277
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
17278
17278
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17279
17279
|
let resolvedVersion;
|
|
17280
17280
|
if (!revisionId) {
|
|
@@ -17305,8 +17305,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17305
17305
|
);
|
|
17306
17306
|
if (!hasCompleted) {
|
|
17307
17307
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17308
|
-
if (
|
|
17309
|
-
|
|
17308
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
17309
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, {
|
|
17310
17310
|
ok: false,
|
|
17311
17311
|
code: "NO_SUCCESSFUL_RUN",
|
|
17312
17312
|
message,
|
|
@@ -17330,8 +17330,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17330
17330
|
};
|
|
17331
17331
|
if (args.includes("--dry-run")) {
|
|
17332
17332
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17333
|
-
if (
|
|
17334
|
-
|
|
17333
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
17334
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, plan);
|
|
17335
17335
|
} else {
|
|
17336
17336
|
console.log(
|
|
17337
17337
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17341,8 +17341,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17341
17341
|
}
|
|
17342
17342
|
const status = await client.publishSharePage(name, request);
|
|
17343
17343
|
const outputStatus = shareStatusForOutput(status);
|
|
17344
|
-
if (
|
|
17345
|
-
|
|
17344
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
17345
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, outputStatus);
|
|
17346
17346
|
return 0;
|
|
17347
17347
|
}
|
|
17348
17348
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17373,9 +17373,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17373
17373
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17374
17374
|
...seoIndexing ? { seoIndexing } : {}
|
|
17375
17375
|
};
|
|
17376
|
-
const status = await new (0,
|
|
17377
|
-
if (
|
|
17378
|
-
|
|
17376
|
+
const status = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().updateSharePage(name, request);
|
|
17377
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
17378
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, status);
|
|
17379
17379
|
return 0;
|
|
17380
17380
|
}
|
|
17381
17381
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17390,7 +17390,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17390
17390
|
return 2;
|
|
17391
17391
|
}
|
|
17392
17392
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17393
|
-
const client = new (0,
|
|
17393
|
+
const client = new (0, _chunkHC5L6KGEjs.DeeplineClient)();
|
|
17394
17394
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17395
17395
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17396
17396
|
if (!revisionId && versionFlag) {
|
|
@@ -17407,8 +17407,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17407
17407
|
revisionId ? { revisionId } : {}
|
|
17408
17408
|
);
|
|
17409
17409
|
const outputStatus = shareStatusForOutput(status);
|
|
17410
|
-
if (
|
|
17411
|
-
|
|
17410
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
17411
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, outputStatus);
|
|
17412
17412
|
return 0;
|
|
17413
17413
|
}
|
|
17414
17414
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17433,9 +17433,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17433
17433
|
return 2;
|
|
17434
17434
|
}
|
|
17435
17435
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17436
|
-
const status = await new (0,
|
|
17437
|
-
if (
|
|
17438
|
-
|
|
17436
|
+
const status = await new (0, _chunkHC5L6KGEjs.DeeplineClient)().unpublishSharePage(name);
|
|
17437
|
+
if (_chunk3XKAOV74js.argsWantJson.call(void 0, args)) {
|
|
17438
|
+
_chunk3XKAOV74js.printCompactJson.call(void 0, status);
|
|
17439
17439
|
return 0;
|
|
17440
17440
|
}
|
|
17441
17441
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|