deepline 0.3.347 → 0.3.348
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 +5 -0
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +32 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +17 -1
- package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +11 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +13 -0
- package/dist/cli/{auth-RWP45MJX.mjs → auth-ME53BGXD.mjs} +4 -4
- package/dist/cli/auth-YHS2NN4I.js +31 -0
- package/dist/cli/{billing-XPKHI4LF.mjs → billing-466LUN65.mjs} +31 -4
- package/dist/cli/{billing-F6RNSQWW.js → billing-EMRJAWNG.js} +99 -72
- package/dist/cli/{chunk-AOKWJJLP.mjs → chunk-2G7KMDDI.mjs} +1 -1
- package/dist/cli/{chunk-WX7W76U7.js → chunk-2JRKH263.js} +15 -15
- package/dist/cli/{chunk-AYR45POY.mjs → chunk-35PLGSH6.mjs} +2 -1
- package/dist/cli/{chunk-GT7OCAWV.js → chunk-4JJN7BDI.js} +48 -48
- package/dist/cli/{chunk-SFJEAK54.mjs → chunk-5AZNXX2S.mjs} +1 -1
- package/dist/cli/{chunk-EOS73ZCP.js → chunk-5HLM2PGK.js} +8 -8
- package/dist/cli/{chunk-723POEH5.js → chunk-5IYFQJHX.js} +10 -9
- package/dist/cli/{chunk-FKKNYKDY.js → chunk-5O4B6AUN.js} +2 -0
- package/dist/cli/{chunk-Y6D2JYBR.mjs → chunk-5UWZ52IW.mjs} +2 -2
- package/dist/cli/{chunk-LPKV6IBM.js → chunk-6NM2IY4B.js} +8 -8
- package/dist/cli/{chunk-NTVTZAVZ.mjs → chunk-7E66A24V.mjs} +2 -0
- package/dist/cli/{chunk-U2GPF4SB.mjs → chunk-BAJXRIRP.mjs} +2 -2
- package/dist/cli/{chunk-OS6CZRJE.mjs → chunk-CA7RR4UD.mjs} +3 -3
- package/dist/cli/{chunk-VRYRVD3F.mjs → chunk-CEC3BXRV.mjs} +1 -1
- package/dist/cli/{chunk-IIOBMOMH.mjs → chunk-DSWSEHRX.mjs} +1 -1
- package/dist/cli/{chunk-JB4UKD3B.js → chunk-EWYHXSV4.js} +6 -6
- package/dist/cli/{chunk-5UJOJKPW.js → chunk-GVJPI7MB.js} +4 -4
- package/dist/cli/{chunk-AGV2VS4U.js → chunk-IICCYB57.js} +54 -54
- package/dist/cli/{chunk-GS2ZSOAQ.js → chunk-KGKPHGDT.js} +2 -2
- package/dist/cli/{chunk-LTJOC47W.mjs → chunk-L645OZEB.mjs} +7 -7
- package/dist/cli/{chunk-X32ZLEUU.mjs → chunk-MM6X5ADB.mjs} +2 -2
- package/dist/cli/{chunk-BUXJSW26.js → chunk-NX4WJO5P.js} +26 -26
- package/dist/cli/{chunk-L4TXOCCC.js → chunk-PQZURAHR.js} +1 -1
- package/dist/cli/{chunk-LH4VHCN5.mjs → chunk-Q37KLZXK.mjs} +6 -6
- package/dist/cli/{chunk-OJVAVQLB.js → chunk-QGKPTBRR.js} +3 -3
- package/dist/cli/{chunk-3PRBUTJK.js → chunk-SIE7MILM.js} +242 -242
- package/dist/cli/{chunk-ROEN4NXY.js → chunk-U5U2DJ3A.js} +60 -60
- package/dist/cli/{chunk-3JJLQQLW.mjs → chunk-UCVFMPAO.mjs} +2 -2
- package/dist/cli/{chunk-PQGDU7B5.mjs → chunk-VWSEZMCR.mjs} +1 -1
- package/dist/cli/{chunk-NU5EU2SH.mjs → chunk-XVWOERRO.mjs} +4 -4
- package/dist/cli/client-F47WSZBF.js +20 -0
- package/dist/cli/{client-FZJ3RSO3.mjs → client-K3EFOESB.mjs} +3 -3
- package/dist/cli/{csv-QSMT5HZS.js → csv-4UFHUMIR.js} +12 -12
- package/dist/cli/{csv-HPBPBU3I.mjs → csv-ZFH725GM.mjs} +3 -3
- package/dist/cli/{db-IKZKICP3.js → db-EJHH7IBM.js} +29 -29
- package/dist/cli/{db-2KAUAVVC.mjs → db-KTJSJ6LJ.mjs} +4 -4
- package/dist/cli/{describe-EW4GZMUK.mjs → describe-2GXTRRSJ.mjs} +10 -10
- package/dist/cli/{describe-QM7Q5Y2H.js → describe-ZQXDXWKZ.js} +17 -17
- package/dist/cli/{executions-5ICONLFX.js → executions-FEBZXTAI.js} +6 -6
- package/dist/cli/{executions-U5WWUFEZ.mjs → executions-ZFEW2R3V.mjs} +4 -4
- package/dist/cli/{feedback-ZBQPQPFG.mjs → feedback-BYMYIBHU.mjs} +3 -3
- package/dist/cli/{feedback-N2KGAK4V.js → feedback-F3LKI327.js} +7 -7
- package/dist/cli/{git-M5YEP57H.mjs → git-A3V2AKGA.mjs} +4 -4
- package/dist/cli/git-PWHYGNBR.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-GJUYBH2F.mjs → legacy-noops-IMOMP5NH.mjs} +4 -4
- package/dist/cli/{legacy-noops-IQIPPJF7.js → legacy-noops-TYXWVLSD.js} +7 -7
- package/dist/cli/{monitors-DQUCHISX.js → monitors-BG2EP4M2.js} +85 -85
- package/dist/cli/{monitors-XJAJNMG4.mjs → monitors-PJWHKJAG.mjs} +4 -4
- package/dist/cli/{org-DFWDN4EJ.mjs → org-CVCRHGQF.mjs} +4 -4
- package/dist/cli/{org-G45CXUJV.js → org-NM7EROYH.js} +60 -60
- package/dist/cli/{play-URTZW2Q4.mjs → play-ESB6ZDMP.mjs} +9 -9
- package/dist/cli/play-MYWKV6MH.js +153 -0
- package/dist/cli/{providers-CCKMRCXU.mjs → providers-BPDX7QBF.mjs} +4 -4
- package/dist/cli/{providers-IVUWWGFP.js → providers-EXITLSJG.js} +7 -7
- package/dist/cli/{quickstart-MMIVNRV4.js → quickstart-55MBPFRI.js} +5 -5
- package/dist/cli/{quickstart-CRHIA3PZ.mjs → quickstart-P5HLSTZB.mjs} +3 -3
- package/dist/cli/search-2JFDCWWK.js +26 -0
- package/dist/cli/{search-NDRDOINX.mjs → search-UJ3KOFZV.mjs} +5 -5
- package/dist/cli/{secrets-GQUBMJGM.js → secrets-TLV2Q4Z5.js} +13 -13
- package/dist/cli/{secrets-SUC3KLLH.mjs → secrets-XJCZM2M2.mjs} +4 -4
- package/dist/cli/{sessions-7CAU6JL5.mjs → sessions-4XMG3DEE.mjs} +4 -4
- package/dist/cli/{sessions-AQCRVLHW.js → sessions-DJWLUVXM.js} +5 -5
- package/dist/cli/{settings-LFFOFAU6.mjs → settings-3ZGLOANJ.mjs} +7 -7
- package/dist/cli/{settings-4SDI73XW.js → settings-KBNCPN3E.js} +74 -74
- package/dist/cli/{setup-BKCQOJBD.mjs → setup-R3UV4ZXN.mjs} +6 -6
- package/dist/cli/{setup-FQ3E7U7G.js → setup-WZZXC7H5.js} +41 -41
- package/dist/cli/{skills-USGJ5MF7.mjs → skills-44RXNHZH.mjs} +4 -4
- package/dist/cli/skills-52WTBX7A.js +28 -0
- package/dist/cli/tools-4ESTBMSN.js +40 -0
- package/dist/cli/{tools-5HTXLDZ4.mjs → tools-NLUPNYR3.mjs} +7 -7
- package/dist/cli/{update-F7TIJEIV.mjs → update-57GQJRXF.mjs} +6 -6
- package/dist/cli/update-V2FZCYNP.js +28 -0
- package/dist/cli/{workflow-FXJ2D2MG.mjs → workflow-ARCLSKBC.mjs} +5 -5
- package/dist/cli/{workflow-J5JVOUIL.js → workflow-XI7LZRTQ.js} +15 -15
- package/dist/{client-rHyf5s_Y.d.ts → client-4DbE-U6e.d.ts} +3 -1
- package/dist/{client-D20uyRYB.d.mts → client-DIJpwhl-.d.mts} +3 -1
- package/dist/{compiler-manifest-CButyeZ8.d.ts → compiler-manifest-DgdW0q0b.d.mts} +42 -1
- package/dist/{compiler-manifest-CButyeZ8.d.mts → compiler-manifest-DgdW0q0b.d.ts} +42 -1
- package/dist/{index-BMsNUoL5.d.mts → index-C3nQQTI-.d.mts} +1 -1
- package/dist/{index-LDRzwo09.d.ts → index-CEYQAfS0.d.ts} +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +85 -84
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +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-PSMCNXBC.js +0 -31
- package/dist/cli/client-J4QGSQ6Y.js +0 -20
- package/dist/cli/git-2N5LS25H.js +0 -23
- package/dist/cli/play-WWMUYKWS.js +0 -153
- package/dist/cli/search-YZL2QRIF.js +0 -26
- package/dist/cli/skills-7BPEGDIA.js +0 -28
- package/dist/cli/tools-5VEZ4QR4.js +0 -40
- package/dist/cli/update-YFPMWKI4.js +0 -28
|
@@ -11,11 +11,11 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
11
11
|
var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk6NM2IY4Bjs = require('./chunk-6NM2IY4B.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkNX4WJO5Pjs = require('./chunk-NX4WJO5P.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -40,7 +40,7 @@ var _chunkLVEDPCLJjs = require('./chunk-LVEDPCLJ.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunk5IYFQJHXjs = require('./chunk-5IYFQJHX.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
@@ -73,10 +73,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunkEWYHXSV4js = require('./chunk-EWYHXSV4.js');
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkGVJPI7MBjs = require('./chunk-GVJPI7MB.js');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
@@ -84,7 +84,7 @@ var _chunk5UJOJKPWjs = require('./chunk-5UJOJKPW.js');
|
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
|
|
87
|
-
var
|
|
87
|
+
var _chunkQGKPTBRRjs = require('./chunk-QGKPTBRR.js');
|
|
88
88
|
|
|
89
89
|
|
|
90
90
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -2068,7 +2068,7 @@ function resolveField(key, command) {
|
|
|
2068
2068
|
function printSettings(result, json, name) {
|
|
2069
2069
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2070
2070
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2071
|
-
|
|
2071
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
2072
2072
|
{
|
|
2073
2073
|
...result,
|
|
2074
2074
|
settings: Object.fromEntries(
|
|
@@ -2112,7 +2112,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2112
2112
|
valueSyntax: field.cli.valueSyntax,
|
|
2113
2113
|
examples: field.cli.examples
|
|
2114
2114
|
}));
|
|
2115
|
-
|
|
2115
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
2116
2116
|
{
|
|
2117
2117
|
fields: descriptions,
|
|
2118
2118
|
render: {
|
|
@@ -2137,7 +2137,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2137
2137
|
async (options, command) => {
|
|
2138
2138
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2139
2139
|
printSettings(
|
|
2140
|
-
await new (0,
|
|
2140
|
+
await new (0, _chunk5IYFQJHXjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2141
2141
|
options.json,
|
|
2142
2142
|
options.name
|
|
2143
2143
|
);
|
|
@@ -2168,7 +2168,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2168
2168
|
);
|
|
2169
2169
|
}
|
|
2170
2170
|
if (options.dryRun) {
|
|
2171
|
-
|
|
2171
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
2172
2172
|
{
|
|
2173
2173
|
dryRun: true,
|
|
2174
2174
|
play,
|
|
@@ -2189,7 +2189,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2189
2189
|
return;
|
|
2190
2190
|
}
|
|
2191
2191
|
printSettings(
|
|
2192
|
-
await new (0,
|
|
2192
|
+
await new (0, _chunk5IYFQJHXjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2193
2193
|
options.json
|
|
2194
2194
|
);
|
|
2195
2195
|
};
|
|
@@ -2215,13 +2215,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2215
2215
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2216
2216
|
{ exitCode: 2 }
|
|
2217
2217
|
);
|
|
2218
|
-
const page = await new (0,
|
|
2218
|
+
const page = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2219
2219
|
root: options.root,
|
|
2220
2220
|
limit,
|
|
2221
2221
|
cursor: options.cursor
|
|
2222
2222
|
});
|
|
2223
2223
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""} --json` : null;
|
|
2224
|
-
|
|
2224
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
2225
2225
|
{
|
|
2226
2226
|
...page,
|
|
2227
2227
|
nextCommand,
|
|
@@ -2272,7 +2272,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2272
2272
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2273
2273
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2274
2274
|
};
|
|
2275
|
-
const client = new (0,
|
|
2275
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
2276
2276
|
const paths = [];
|
|
2277
2277
|
let cursor;
|
|
2278
2278
|
do {
|
|
@@ -2334,7 +2334,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2334
2334
|
moved.push(move.playName);
|
|
2335
2335
|
}
|
|
2336
2336
|
}
|
|
2337
|
-
|
|
2337
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
2338
2338
|
{
|
|
2339
2339
|
dryRun: Boolean(options.dryRun),
|
|
2340
2340
|
from: options.from,
|
|
@@ -2462,7 +2462,7 @@ function triggerLines(view) {
|
|
|
2462
2462
|
return lines;
|
|
2463
2463
|
}
|
|
2464
2464
|
function printView(view, json) {
|
|
2465
|
-
|
|
2465
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
2466
2466
|
{
|
|
2467
2467
|
...view,
|
|
2468
2468
|
render: {
|
|
@@ -2475,7 +2475,7 @@ function printView(view, json) {
|
|
|
2475
2475
|
);
|
|
2476
2476
|
}
|
|
2477
2477
|
function printResult(result, json) {
|
|
2478
|
-
|
|
2478
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
2479
2479
|
{
|
|
2480
2480
|
...result,
|
|
2481
2481
|
render: {
|
|
@@ -2505,7 +2505,7 @@ async function mutate(command, options, build) {
|
|
|
2505
2505
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2506
2506
|
}
|
|
2507
2507
|
if (options.dryRun) {
|
|
2508
|
-
|
|
2508
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
2509
2509
|
{
|
|
2510
2510
|
dryRun: true,
|
|
2511
2511
|
play: options.play,
|
|
@@ -2524,7 +2524,7 @@ async function mutate(command, options, build) {
|
|
|
2524
2524
|
return;
|
|
2525
2525
|
}
|
|
2526
2526
|
printResult(
|
|
2527
|
-
await new (0,
|
|
2527
|
+
await new (0, _chunk5IYFQJHXjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2528
2528
|
options.json
|
|
2529
2529
|
);
|
|
2530
2530
|
}
|
|
@@ -2557,7 +2557,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2557
2557
|
}).addHelpText("after", help2);
|
|
2558
2558
|
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON; automatic when piped").addHelpText("after", help2).action(async (options) => {
|
|
2559
2559
|
printView(
|
|
2560
|
-
await new (0,
|
|
2560
|
+
await new (0, _chunk5IYFQJHXjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2561
2561
|
options.json
|
|
2562
2562
|
);
|
|
2563
2563
|
});
|
|
@@ -2601,7 +2601,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2601
2601
|
if (options.auth === void 0) {
|
|
2602
2602
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2603
2603
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2604
|
-
const current = await new (0,
|
|
2604
|
+
const current = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2605
2605
|
options.play
|
|
2606
2606
|
);
|
|
2607
2607
|
return {
|
|
@@ -2678,7 +2678,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2678
2678
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2679
2679
|
"runtime.event": "Other event."
|
|
2680
2680
|
};
|
|
2681
|
-
var RUN_LOGS_KIND_HELP =
|
|
2681
|
+
var RUN_LOGS_KIND_HELP = _chunk5IYFQJHXjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2682
2682
|
kind,
|
|
2683
2683
|
description: KIND_DESCRIPTIONS[kind]
|
|
2684
2684
|
}));
|
|
@@ -2815,9 +2815,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2815
2815
|
const args = program.args;
|
|
2816
2816
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2817
2817
|
error.exitCode = 2;
|
|
2818
|
-
if (
|
|
2819
|
-
|
|
2820
|
-
Object.assign(new (0,
|
|
2818
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2819
|
+
_chunkEWYHXSV4js.printJsonError.call(void 0,
|
|
2820
|
+
Object.assign(new (0, _chunk5IYFQJHXjs.RunEventQueryInputError)(error.message), {
|
|
2821
2821
|
exitCode: 2,
|
|
2822
2822
|
retryable: false
|
|
2823
2823
|
})
|
|
@@ -2861,14 +2861,14 @@ function parseQuery(args, resource) {
|
|
|
2861
2861
|
if (VALUE_FLAGS.has(flag)) {
|
|
2862
2862
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2863
2863
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2864
|
-
throw new (0,
|
|
2864
|
+
throw new (0, _chunk5IYFQJHXjs.RunEventQueryInputError)(
|
|
2865
2865
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2866
2866
|
);
|
|
2867
2867
|
}
|
|
2868
2868
|
if (flag === "--sum") sums.push(value);
|
|
2869
2869
|
else {
|
|
2870
2870
|
if (values[flag] !== void 0) {
|
|
2871
|
-
throw new (0,
|
|
2871
|
+
throw new (0, _chunk5IYFQJHXjs.RunEventQueryInputError)(
|
|
2872
2872
|
`${flag} may only be supplied once.`
|
|
2873
2873
|
);
|
|
2874
2874
|
}
|
|
@@ -2882,12 +2882,12 @@ function parseQuery(args, resource) {
|
|
|
2882
2882
|
}
|
|
2883
2883
|
if (arg.startsWith("-")) {
|
|
2884
2884
|
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.";
|
|
2885
|
-
throw new (0,
|
|
2885
|
+
throw new (0, _chunk5IYFQJHXjs.RunEventQueryInputError)(
|
|
2886
2886
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2887
2887
|
);
|
|
2888
2888
|
}
|
|
2889
2889
|
if (runId !== void 0) {
|
|
2890
|
-
throw new (0,
|
|
2890
|
+
throw new (0, _chunk5IYFQJHXjs.RunEventQueryInputError)(
|
|
2891
2891
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2892
2892
|
);
|
|
2893
2893
|
}
|
|
@@ -2895,7 +2895,7 @@ function parseQuery(args, resource) {
|
|
|
2895
2895
|
}
|
|
2896
2896
|
if (switches.has("--fields")) {
|
|
2897
2897
|
if (runId !== void 0) {
|
|
2898
|
-
throw new (0,
|
|
2898
|
+
throw new (0, _chunk5IYFQJHXjs.RunEventQueryInputError)(
|
|
2899
2899
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2900
2900
|
);
|
|
2901
2901
|
}
|
|
@@ -2908,18 +2908,18 @@ function parseQuery(args, resource) {
|
|
|
2908
2908
|
)
|
|
2909
2909
|
];
|
|
2910
2910
|
if (incompatible.length) {
|
|
2911
|
-
throw new (0,
|
|
2911
|
+
throw new (0, _chunk5IYFQJHXjs.RunEventQueryInputError)(
|
|
2912
2912
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2913
2913
|
);
|
|
2914
2914
|
}
|
|
2915
2915
|
}
|
|
2916
2916
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2917
|
-
throw new (0,
|
|
2917
|
+
throw new (0, _chunk5IYFQJHXjs.RunEventQueryInputError)(
|
|
2918
2918
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2919
2919
|
);
|
|
2920
2920
|
}
|
|
2921
2921
|
if (sums.length && switches.has("--count")) {
|
|
2922
|
-
throw new (0,
|
|
2922
|
+
throw new (0, _chunk5IYFQJHXjs.RunEventQueryInputError)(
|
|
2923
2923
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2924
2924
|
);
|
|
2925
2925
|
}
|
|
@@ -2927,7 +2927,7 @@ function parseQuery(args, resource) {
|
|
|
2927
2927
|
if (operation === "count") {
|
|
2928
2928
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2929
2929
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2930
|
-
throw new (0,
|
|
2930
|
+
throw new (0, _chunk5IYFQJHXjs.RunEventQueryInputError)(
|
|
2931
2931
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2932
2932
|
);
|
|
2933
2933
|
}
|
|
@@ -2962,16 +2962,16 @@ function parseQuery(args, resource) {
|
|
|
2962
2962
|
];
|
|
2963
2963
|
}
|
|
2964
2964
|
}
|
|
2965
|
-
const request =
|
|
2965
|
+
const request = _chunk5IYFQJHXjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2966
2966
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2967
2967
|
const backend = values["--runtime-backend"];
|
|
2968
2968
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2969
|
-
throw new (0,
|
|
2969
|
+
throw new (0, _chunk5IYFQJHXjs.RunEventQueryInputError)(
|
|
2970
2970
|
"--runtime-backend must be daytona or modal."
|
|
2971
2971
|
);
|
|
2972
2972
|
}
|
|
2973
2973
|
if (backend && !namespace) {
|
|
2974
|
-
throw new (0,
|
|
2974
|
+
throw new (0, _chunk5IYFQJHXjs.RunEventQueryInputError)(
|
|
2975
2975
|
"--runtime-backend requires --runtime-namespace."
|
|
2976
2976
|
);
|
|
2977
2977
|
}
|
|
@@ -3019,12 +3019,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3019
3019
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3020
3020
|
const record3 = failure;
|
|
3021
3021
|
const status = record3.statusCode;
|
|
3022
|
-
const exitCode = error instanceof
|
|
3022
|
+
const exitCode = error instanceof _chunk5IYFQJHXjs.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;
|
|
3023
3023
|
const diagnostic = Object.assign(failure, {
|
|
3024
3024
|
exitCode,
|
|
3025
3025
|
retryable: exitCode === 5
|
|
3026
3026
|
});
|
|
3027
|
-
if (
|
|
3027
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) _chunkEWYHXSV4js.printJsonError.call(void 0, diagnostic);
|
|
3028
3028
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3029
3029
|
return exitCode;
|
|
3030
3030
|
}
|
|
@@ -3039,7 +3039,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3039
3039
|
...criteria
|
|
3040
3040
|
} = request;
|
|
3041
3041
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3042
|
-
const client = new (0,
|
|
3042
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
3043
3043
|
let result;
|
|
3044
3044
|
if (request.operation === "fields") {
|
|
3045
3045
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3105,13 +3105,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3105
3105
|
lines.push(`Next page: ${nextPage}`);
|
|
3106
3106
|
}
|
|
3107
3107
|
}
|
|
3108
|
-
|
|
3108
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
3109
3109
|
{
|
|
3110
3110
|
...result,
|
|
3111
3111
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3112
3112
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3113
3113
|
},
|
|
3114
|
-
{ json:
|
|
3114
|
+
{ json: _chunkEWYHXSV4js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3115
3115
|
` }
|
|
3116
3116
|
);
|
|
3117
3117
|
return 0;
|
|
@@ -3931,7 +3931,7 @@ function checkedRunExample(plays, target) {
|
|
|
3931
3931
|
const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
|
|
3932
3932
|
const base = `deepline plays run --file ${quote(target)}`;
|
|
3933
3933
|
return {
|
|
3934
|
-
command: `${base}${
|
|
3934
|
+
command: `${base}${_chunk5IYFQJHXjs.playInputExampleArgs.call(void 0, schema)} --json`,
|
|
3935
3935
|
note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema. Keep stderr separate from JSON stdout."
|
|
3936
3936
|
};
|
|
3937
3937
|
}
|
|
@@ -5554,7 +5554,7 @@ async function runPlayBootstrap(args) {
|
|
|
5554
5554
|
return runMonitorBootstrap(args);
|
|
5555
5555
|
}
|
|
5556
5556
|
const options = parsePlayBootstrapOptions(args);
|
|
5557
|
-
const client = new (0,
|
|
5557
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
5558
5558
|
const contracts = await loadBootstrapContracts(client, options);
|
|
5559
5559
|
const csvContext = loadCsvContext(options.from);
|
|
5560
5560
|
const source = generateBootstrapPlaySource({
|
|
@@ -5709,7 +5709,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5709
5709
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
5710
5710
|
);
|
|
5711
5711
|
}
|
|
5712
|
-
const response = await new (0,
|
|
5712
|
+
const response = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
5713
5713
|
keys
|
|
5714
5714
|
});
|
|
5715
5715
|
const failed = response.receipts.filter(
|
|
@@ -5721,7 +5721,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5721
5721
|
JSON.stringify(response, null, 2) + "\n",
|
|
5722
5722
|
{ flag: "wx", mode: 384 }
|
|
5723
5723
|
);
|
|
5724
|
-
|
|
5724
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
5725
5725
|
{
|
|
5726
5726
|
runId,
|
|
5727
5727
|
out: options.out,
|
|
@@ -5731,7 +5731,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5731
5731
|
{ json: true }
|
|
5732
5732
|
);
|
|
5733
5733
|
} else {
|
|
5734
|
-
|
|
5734
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
5735
5735
|
}
|
|
5736
5736
|
if (failed)
|
|
5737
5737
|
process.exitCode = response.receipts.some(
|
|
@@ -5770,7 +5770,7 @@ includes nextCommand when another page is available.
|
|
|
5770
5770
|
{ exitCode: 2 }
|
|
5771
5771
|
);
|
|
5772
5772
|
}
|
|
5773
|
-
const page = await new (0,
|
|
5773
|
+
const page = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().runs.children(parentRunId, {
|
|
5774
5774
|
launchKey: options.launchKey,
|
|
5775
5775
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
5776
5776
|
limit
|
|
@@ -5786,7 +5786,7 @@ includes nextCommand when another page is available.
|
|
|
5786
5786
|
String(limit),
|
|
5787
5787
|
"--json"
|
|
5788
5788
|
].join(" ") : null;
|
|
5789
|
-
|
|
5789
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
5790
5790
|
{
|
|
5791
5791
|
parentRunId,
|
|
5792
5792
|
launchKey: options.launchKey,
|
|
@@ -5822,7 +5822,7 @@ async function handleRunsHistory(options) {
|
|
|
5822
5822
|
throw new Error("--limit must be a positive integer.");
|
|
5823
5823
|
}
|
|
5824
5824
|
}
|
|
5825
|
-
const page = await new (0,
|
|
5825
|
+
const page = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().runs.history({
|
|
5826
5826
|
cursor: options.cursor,
|
|
5827
5827
|
orgId: options.org,
|
|
5828
5828
|
search: options.search,
|
|
@@ -5838,7 +5838,7 @@ async function handleRunsHistory(options) {
|
|
|
5838
5838
|
);
|
|
5839
5839
|
}
|
|
5840
5840
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
5841
|
-
|
|
5841
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
5842
5842
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
5843
5843
|
options.json ? { json: true } : {}
|
|
5844
5844
|
);
|
|
@@ -5890,12 +5890,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
5890
5890
|
return 1;
|
|
5891
5891
|
}
|
|
5892
5892
|
}
|
|
5893
|
-
const result = await new (0,
|
|
5893
|
+
const result = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().runs.rerun(runId, {
|
|
5894
5894
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
5895
5895
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
5896
5896
|
});
|
|
5897
|
-
if (
|
|
5898
|
-
|
|
5897
|
+
if (_chunkEWYHXSV4js.shouldEmitJson.call(void 0, options.json)) {
|
|
5898
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0, result, { json: true });
|
|
5899
5899
|
} else {
|
|
5900
5900
|
console.log(
|
|
5901
5901
|
result.deduplicated === true ? `
|
|
@@ -6163,7 +6163,7 @@ function projectRunDatasetCell(value) {
|
|
|
6163
6163
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
6164
6164
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
6165
6165
|
if (typeof logicalValue === "object") {
|
|
6166
|
-
return
|
|
6166
|
+
return _chunkEWYHXSV4js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
6167
6167
|
}
|
|
6168
6168
|
return logicalValue;
|
|
6169
6169
|
}
|
|
@@ -7687,10 +7687,10 @@ function resolveOwnedPlayReferenceName(reference, ownerSlug) {
|
|
|
7687
7687
|
// ../plays/deploy/run-deployment.ts
|
|
7688
7688
|
var RUN_PLAY_METHOD_NAMES = /* @__PURE__ */ new Set(["runPlay", "runPlayAsync"]);
|
|
7689
7689
|
function isRunPlayReceiver(node) {
|
|
7690
|
-
return
|
|
7690
|
+
return _chunkQGKPTBRRjs.isAstNode.call(void 0, node) && node.type === "Identifier" && typeof node.name === "string" && (node.name === "ctx" || node.name.endsWith("Ctx"));
|
|
7691
7691
|
}
|
|
7692
7692
|
function stringLiteralValue(node) {
|
|
7693
|
-
if (!
|
|
7693
|
+
if (!_chunkQGKPTBRRjs.isAstNode.call(void 0, node)) return null;
|
|
7694
7694
|
if (node.type === "Literal" && typeof node.value === "string") {
|
|
7695
7695
|
return node.value;
|
|
7696
7696
|
}
|
|
@@ -7701,12 +7701,12 @@ function stringLiteralValue(node) {
|
|
|
7701
7701
|
return null;
|
|
7702
7702
|
}
|
|
7703
7703
|
async function extractRunPlayStringTargets(sourceCode) {
|
|
7704
|
-
const program =
|
|
7704
|
+
const program = _chunkQGKPTBRRjs.parsePlaySourceForAnalysis.call(void 0, sourceCode);
|
|
7705
7705
|
if (!program) return await _asyncNullishCoalesce(await extractWithCompiler(sourceCode), async () => ( []));
|
|
7706
7706
|
const targets = /* @__PURE__ */ new Set();
|
|
7707
7707
|
const visit = (node) => {
|
|
7708
7708
|
const callee = node.callee;
|
|
7709
|
-
if (node.type === "CallExpression" &&
|
|
7709
|
+
if (node.type === "CallExpression" && _chunkQGKPTBRRjs.isAstNode.call(void 0, callee) && callee.type === "MemberExpression" && callee.computed !== true && _chunkQGKPTBRRjs.isAstNode.call(void 0, callee.property) && RUN_PLAY_METHOD_NAMES.has(String(callee.property.name)) && isRunPlayReceiver(callee.object) && Array.isArray(node.arguments)) {
|
|
7710
7710
|
const playRef = stringLiteralValue(node.arguments[1]);
|
|
7711
7711
|
const ownedName = playRef === null ? null : resolveOwnedPlayReferenceName(playRef);
|
|
7712
7712
|
if (ownedName) targets.add(ownedName);
|
|
@@ -7714,7 +7714,7 @@ async function extractRunPlayStringTargets(sourceCode) {
|
|
|
7714
7714
|
for (const [key, value] of Object.entries(node)) {
|
|
7715
7715
|
if (key === "loc") continue;
|
|
7716
7716
|
for (const child of Array.isArray(value) ? value : [value]) {
|
|
7717
|
-
if (
|
|
7717
|
+
if (_chunkQGKPTBRRjs.isAstNode.call(void 0, child)) visit(child);
|
|
7718
7718
|
}
|
|
7719
7719
|
}
|
|
7720
7720
|
};
|
|
@@ -8580,7 +8580,7 @@ function renderOutcome(outcome) {
|
|
|
8580
8580
|
function printResult2(input) {
|
|
8581
8581
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
8582
8582
|
if (failed) process.exitCode = 1;
|
|
8583
|
-
|
|
8583
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
8584
8584
|
{
|
|
8585
8585
|
deployment: { ...input.deployment, status: input.status },
|
|
8586
8586
|
plays: input.outcomes,
|
|
@@ -8605,7 +8605,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
8605
8605
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
8606
8606
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
8607
8607
|
});
|
|
8608
|
-
const { http, config } =
|
|
8608
|
+
const { http, config } = _chunkEWYHXSV4js.getAuthedHttpClient.call(void 0, );
|
|
8609
8609
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
8610
8610
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
8611
8611
|
deliveryId,
|
|
@@ -8632,7 +8632,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
8632
8632
|
},
|
|
8633
8633
|
{
|
|
8634
8634
|
bundle: bundleDeployPlayFile,
|
|
8635
|
-
fetchImpl:
|
|
8635
|
+
fetchImpl: _chunkGVJPI7MBjs.fetchWithDeploymentProtection,
|
|
8636
8636
|
// The plays are already here: "opening" the source is naming it.
|
|
8637
8637
|
openSource: async () => ({
|
|
8638
8638
|
open: async () => ({ repoRoot: root })
|
|
@@ -9200,7 +9200,7 @@ function parseInputFlagValue(raw) {
|
|
|
9200
9200
|
return raw;
|
|
9201
9201
|
}
|
|
9202
9202
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
9203
|
-
const selection =
|
|
9203
|
+
const selection = _chunkEWYHXSV4js.parseJsonFields.call(void 0, args, "run");
|
|
9204
9204
|
args = selection.args;
|
|
9205
9205
|
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.";
|
|
9206
9206
|
let filePath = null;
|
|
@@ -9210,7 +9210,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
9210
9210
|
let revisionSelector = null;
|
|
9211
9211
|
const watch = !args.includes("--no-wait");
|
|
9212
9212
|
const dryRun = args.includes("--dry-run");
|
|
9213
|
-
let jsonOutput = dryRun ?
|
|
9213
|
+
let jsonOutput = dryRun ? _chunkEWYHXSV4js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkEWYHXSV4js.argsWantJson.call(void 0, args);
|
|
9214
9214
|
const fullJson = args.includes("--full");
|
|
9215
9215
|
const force = args.includes("--force");
|
|
9216
9216
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -9257,7 +9257,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
9257
9257
|
"--log-level requires one of: debug, info, warn, error."
|
|
9258
9258
|
);
|
|
9259
9259
|
}
|
|
9260
|
-
const parsed =
|
|
9260
|
+
const parsed = _chunk5IYFQJHXjs.parseLogLevel.call(void 0, value);
|
|
9261
9261
|
if (!parsed) {
|
|
9262
9262
|
throw new Error(
|
|
9263
9263
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -9294,7 +9294,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
9294
9294
|
throw new Error("--profile requires an execution profile id.");
|
|
9295
9295
|
}
|
|
9296
9296
|
profile = value.trim();
|
|
9297
|
-
|
|
9297
|
+
_chunkQGKPTBRRjs.resolveEnabledExecutionProfile.call(void 0, profile);
|
|
9298
9298
|
index += 1;
|
|
9299
9299
|
continue;
|
|
9300
9300
|
}
|
|
@@ -9532,7 +9532,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
9532
9532
|
if (dryRun && resolvedTarget.kind !== "file")
|
|
9533
9533
|
throw new Error("--dry-run currently requires a local Play file.");
|
|
9534
9534
|
const profile = _nullishCoalesce(_optionalChain([stringOption, 'call', _277 => _277(options.profile, "--profile"), 'optionalAccess', _278 => _278.trim, 'call', _279 => _279()]), () => ( base.profile));
|
|
9535
|
-
if (profile !== null)
|
|
9535
|
+
if (profile !== null) _chunkQGKPTBRRjs.resolveEnabledExecutionProfile.call(void 0, profile);
|
|
9536
9536
|
const countOption = (value, flag) => {
|
|
9537
9537
|
if (value === void 0) return void 0;
|
|
9538
9538
|
if (!/^[1-9]\d*$/.test(value))
|
|
@@ -9564,7 +9564,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
9564
9564
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
9565
9565
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
9566
9566
|
);
|
|
9567
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
9567
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk5IYFQJHXjs.parseLogLevel.call(void 0, options.logLevel);
|
|
9568
9568
|
if (!logLevel)
|
|
9569
9569
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
9570
9570
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -9578,13 +9578,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
9578
9578
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
9579
9579
|
logLevel = "debug";
|
|
9580
9580
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
9581
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
9582
|
-
[...fullJson ? ["--full"] : [], ...
|
|
9581
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkEWYHXSV4js.parseJsonFields.call(void 0,
|
|
9582
|
+
[...fullJson ? ["--full"] : [], ..._chunkEWYHXSV4js.jsonFieldArgs.call(void 0, options.json)],
|
|
9583
9583
|
"run"
|
|
9584
9584
|
).fields;
|
|
9585
9585
|
const watch = options.wait === false ? false : base.watch;
|
|
9586
9586
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
9587
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
9587
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkEWYHXSV4js.argsWantJson.call(void 0, []) : explicitJson;
|
|
9588
9588
|
const verboseLogs = Boolean(
|
|
9589
9589
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
9590
9590
|
);
|
|
@@ -9628,7 +9628,7 @@ function playAuthoringGraphPath(parent, filePath) {
|
|
|
9628
9628
|
// src/cli/renderers/local-play-execution.ts
|
|
9629
9629
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
9630
9630
|
if (options.dryRun) {
|
|
9631
|
-
|
|
9631
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
9632
9632
|
return;
|
|
9633
9633
|
}
|
|
9634
9634
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -10167,7 +10167,7 @@ function buildMissingDefinePlayError(filePath) {
|
|
|
10167
10167
|
);
|
|
10168
10168
|
}
|
|
10169
10169
|
function extractPlayName(code, filePath) {
|
|
10170
|
-
const definedPlayName =
|
|
10170
|
+
const definedPlayName = _chunkQGKPTBRRjs.extractDefinedPlayName.call(void 0, code);
|
|
10171
10171
|
if (definedPlayName) {
|
|
10172
10172
|
return definedPlayName;
|
|
10173
10173
|
}
|
|
@@ -10396,12 +10396,12 @@ function unresolvedPackagedFilesMessage(node) {
|
|
|
10396
10396
|
const details = node.unresolvedFileReferences.map((unresolved) => `${unresolved.sourceFragment}: ${unresolved.message}`).join("; ");
|
|
10397
10397
|
return `Failed to package local ctx.csv(...) files in ${node.filePath}: ${details}`;
|
|
10398
10398
|
}
|
|
10399
|
-
async function collectBundledPlayGraph(entryFile, profile = null, entryExportName =
|
|
10399
|
+
async function collectBundledPlayGraph(entryFile, profile = null, entryExportName = _chunkQGKPTBRRjs.PLAY_DEFAULT_EXPORT, options = {}) {
|
|
10400
10400
|
const playBundler = await loadPlayBundler();
|
|
10401
10401
|
const nodes = /* @__PURE__ */ new Map();
|
|
10402
10402
|
const diagnostics = [];
|
|
10403
10403
|
const visited = /* @__PURE__ */ new Set();
|
|
10404
|
-
const artifactKind =
|
|
10404
|
+
const artifactKind = _chunkQGKPTBRRjs.resolveEnabledExecutionProfile.call(void 0, profile).artifactKind;
|
|
10405
10405
|
const rootPath = normalizePlayPath(entryFile);
|
|
10406
10406
|
const visit = async (filePath) => {
|
|
10407
10407
|
const absolutePath = normalizePlayPath(filePath);
|
|
@@ -10410,7 +10410,7 @@ async function collectBundledPlayGraph(entryFile, profile = null, entryExportNam
|
|
|
10410
10410
|
const bundleResult = await playBundler.bundlePlayFile(absolutePath, {
|
|
10411
10411
|
target: artifactKind,
|
|
10412
10412
|
...options.cache === false ? { cache: false } : {},
|
|
10413
|
-
...absolutePath === rootPath && entryExportName !==
|
|
10413
|
+
...absolutePath === rootPath && entryExportName !== _chunkQGKPTBRRjs.PLAY_DEFAULT_EXPORT ? { exportName: entryExportName } : {}
|
|
10414
10414
|
});
|
|
10415
10415
|
if (bundleResult.success === false) {
|
|
10416
10416
|
diagnostics.push(
|
|
@@ -10584,7 +10584,7 @@ function playStatusErrorText(status) {
|
|
|
10584
10584
|
function isRetryablePendingStartFailure(status) {
|
|
10585
10585
|
if (status.status !== "failed") return false;
|
|
10586
10586
|
if (status.runId && status.runId !== "pending") return false;
|
|
10587
|
-
return
|
|
10587
|
+
return _chunk5IYFQJHXjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
10588
10588
|
}
|
|
10589
10589
|
function pendingStartFailureStatus(input) {
|
|
10590
10590
|
const message = input.error instanceof Error ? input.error.message : String(input.error);
|
|
@@ -10611,13 +10611,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
|
10611
10611
|
var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
10612
10612
|
function watchSurfaceReaches(state, provenance, level) {
|
|
10613
10613
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
10614
|
-
if (!
|
|
10614
|
+
if (!_chunk5IYFQJHXjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
10615
10615
|
return false;
|
|
10616
10616
|
}
|
|
10617
|
-
if (
|
|
10617
|
+
if (_chunk5IYFQJHXjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
10618
10618
|
return true;
|
|
10619
10619
|
}
|
|
10620
|
-
return state.verbose === true &&
|
|
10620
|
+
return state.verbose === true && _chunk5IYFQJHXjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
10621
10621
|
}
|
|
10622
10622
|
function getEventPayload(event) {
|
|
10623
10623
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -11119,7 +11119,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
|
|
|
11119
11119
|
}
|
|
11120
11120
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
11121
11121
|
if (open2 && dashboardUrl) {
|
|
11122
|
-
|
|
11122
|
+
_chunkEWYHXSV4js.openInBrowser.call(void 0, dashboardUrl);
|
|
11123
11123
|
}
|
|
11124
11124
|
}
|
|
11125
11125
|
function printPlayLogLines(input) {
|
|
@@ -11181,7 +11181,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
11181
11181
|
billing: false
|
|
11182
11182
|
});
|
|
11183
11183
|
} catch (error) {
|
|
11184
|
-
if (
|
|
11184
|
+
if (_chunk5IYFQJHXjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
11185
11185
|
return null;
|
|
11186
11186
|
}
|
|
11187
11187
|
throw error;
|
|
@@ -11370,7 +11370,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11370
11370
|
billing: false
|
|
11371
11371
|
});
|
|
11372
11372
|
} catch (error) {
|
|
11373
|
-
if (
|
|
11373
|
+
if (_chunk5IYFQJHXjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11374
11374
|
return null;
|
|
11375
11375
|
}
|
|
11376
11376
|
throw error;
|
|
@@ -11578,7 +11578,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11578
11578
|
lastPhase
|
|
11579
11579
|
});
|
|
11580
11580
|
}
|
|
11581
|
-
if (lastKnownWorkflowId &&
|
|
11581
|
+
if (lastKnownWorkflowId && _chunk5IYFQJHXjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11582
11582
|
if (timeout) {
|
|
11583
11583
|
clearTimeout(timeout);
|
|
11584
11584
|
}
|
|
@@ -11614,7 +11614,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11614
11614
|
onRunAdmitted: confirmAdmission
|
|
11615
11615
|
});
|
|
11616
11616
|
}
|
|
11617
|
-
if (!lastKnownWorkflowId &&
|
|
11617
|
+
if (!lastKnownWorkflowId && _chunk5IYFQJHXjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11618
11618
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
11619
11619
|
phase: "cli.play_start_stream_transient_failure",
|
|
11620
11620
|
ms: Date.now() - startedAt,
|
|
@@ -11713,7 +11713,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
11713
11713
|
"logs"
|
|
11714
11714
|
]);
|
|
11715
11715
|
function formatPlayLogLine(rawLine, state) {
|
|
11716
|
-
const classified =
|
|
11716
|
+
const classified = _chunk5IYFQJHXjs.classifyLogLine.call(void 0, rawLine);
|
|
11717
11717
|
const line = classified.line;
|
|
11718
11718
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
11719
11719
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _351 => _351[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -11728,14 +11728,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11728
11728
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
11729
11729
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
11730
11730
|
if (providerWait && !state.verbose) {
|
|
11731
|
-
return
|
|
11731
|
+
return _chunk5IYFQJHXjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
11732
11732
|
}
|
|
11733
11733
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
11734
11734
|
if (mapProgress && !state.verbose) {
|
|
11735
|
-
return
|
|
11735
|
+
return _chunk5IYFQJHXjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
11736
11736
|
}
|
|
11737
11737
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
11738
|
-
if (!
|
|
11738
|
+
if (!_chunk5IYFQJHXjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11739
11739
|
return null;
|
|
11740
11740
|
}
|
|
11741
11741
|
if (state.emittedRunnerStarted) {
|
|
@@ -11748,7 +11748,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11748
11748
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
11749
11749
|
);
|
|
11750
11750
|
if (mapStart) {
|
|
11751
|
-
if (!
|
|
11751
|
+
if (!_chunk5IYFQJHXjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11752
11752
|
return null;
|
|
11753
11753
|
}
|
|
11754
11754
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -11758,7 +11758,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11758
11758
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
11759
11759
|
);
|
|
11760
11760
|
if (mapDone) {
|
|
11761
|
-
if (!
|
|
11761
|
+
if (!_chunk5IYFQJHXjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11762
11762
|
return null;
|
|
11763
11763
|
}
|
|
11764
11764
|
const [, results, executed, cached] = mapDone;
|
|
@@ -13047,7 +13047,7 @@ function formatRecentRunLogLines(value) {
|
|
|
13047
13047
|
(line) => typeof line === "string"
|
|
13048
13048
|
);
|
|
13049
13049
|
if (tail.length === 0) return [];
|
|
13050
|
-
const shown = tail.map((line) =>
|
|
13050
|
+
const shown = tail.map((line) => _chunk5IYFQJHXjs.classifyLogLine.call(void 0, line)).filter(
|
|
13051
13051
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
13052
13052
|
).slice(-8);
|
|
13053
13053
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -13327,7 +13327,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13327
13327
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _432 => _432.hits]), () => ( null));
|
|
13328
13328
|
if (jsonOutput) {
|
|
13329
13329
|
const payload2 = _optionalChain([options, 'optionalAccess', _433 => _433.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
13330
|
-
|
|
13330
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
13331
13331
|
hits ? { ...payload2, hits } : payload2,
|
|
13332
13332
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _434 => _434.jsonFields]) }
|
|
13333
13333
|
);
|
|
@@ -13343,7 +13343,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13343
13343
|
...buildPlayCompletionTextLines(status),
|
|
13344
13344
|
...formatRunHitsLines(hits)
|
|
13345
13345
|
];
|
|
13346
|
-
|
|
13346
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0, displayPackage, {
|
|
13347
13347
|
json: false,
|
|
13348
13348
|
text: `${lines2.join("\n")}
|
|
13349
13349
|
`
|
|
@@ -13394,7 +13394,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13394
13394
|
lines.push(...buildBillingRollupTextLines(status));
|
|
13395
13395
|
const compact = compactPlayStatus(status);
|
|
13396
13396
|
const payload = _optionalChain([options, 'optionalAccess', _436 => _436.fullJson]) ? status : compact;
|
|
13397
|
-
|
|
13397
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
13398
13398
|
{
|
|
13399
13399
|
...payload,
|
|
13400
13400
|
render: {
|
|
@@ -14166,7 +14166,7 @@ function writeStartedPlayRun(input) {
|
|
|
14166
14166
|
dashboardUrl: input.dashboardUrl,
|
|
14167
14167
|
package: input.package
|
|
14168
14168
|
};
|
|
14169
|
-
|
|
14169
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
14170
14170
|
json: true,
|
|
14171
14171
|
fields: input.jsonFields
|
|
14172
14172
|
});
|
|
@@ -14188,7 +14188,7 @@ function writeStartedPlayRun(input) {
|
|
|
14188
14188
|
input.progress.writeLine(output2, process.stdout);
|
|
14189
14189
|
return;
|
|
14190
14190
|
}
|
|
14191
|
-
|
|
14191
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0, input.package, {
|
|
14192
14192
|
json: false,
|
|
14193
14193
|
text: `${output2}
|
|
14194
14194
|
`
|
|
@@ -14217,7 +14217,7 @@ function writeStartedPlayRun(input) {
|
|
|
14217
14217
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)} --json`] : []
|
|
14218
14218
|
];
|
|
14219
14219
|
if (input.jsonOutput) {
|
|
14220
|
-
|
|
14220
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
14221
14221
|
return;
|
|
14222
14222
|
}
|
|
14223
14223
|
if (input.dashboardUrl) {
|
|
@@ -14228,7 +14228,7 @@ function writeStartedPlayRun(input) {
|
|
|
14228
14228
|
input.progress.writeLine(output, process.stdout);
|
|
14229
14229
|
return;
|
|
14230
14230
|
}
|
|
14231
|
-
|
|
14231
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
14232
14232
|
{
|
|
14233
14233
|
...payload,
|
|
14234
14234
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -14238,7 +14238,7 @@ function writeStartedPlayRun(input) {
|
|
|
14238
14238
|
);
|
|
14239
14239
|
}
|
|
14240
14240
|
function parsePlayCheckOptions(args) {
|
|
14241
|
-
const selection =
|
|
14241
|
+
const selection = _chunkEWYHXSV4js.parseJsonFields.call(void 0, args, "check");
|
|
14242
14242
|
args = selection.args;
|
|
14243
14243
|
const target = args[0];
|
|
14244
14244
|
if (!target || target.startsWith("-")) {
|
|
@@ -14250,7 +14250,7 @@ function parsePlayCheckOptions(args) {
|
|
|
14250
14250
|
if (arg !== "--json" && arg !== "--full")
|
|
14251
14251
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
14252
14252
|
}
|
|
14253
|
-
const jsonOutput =
|
|
14253
|
+
const jsonOutput = _chunkEWYHXSV4js.argsWantJson.call(void 0, args);
|
|
14254
14254
|
return {
|
|
14255
14255
|
target,
|
|
14256
14256
|
jsonOutput,
|
|
@@ -14326,7 +14326,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
14326
14326
|
useLatest,
|
|
14327
14327
|
expectedArtifactHash,
|
|
14328
14328
|
dryRun,
|
|
14329
|
-
jsonOutput:
|
|
14329
|
+
jsonOutput: _chunkEWYHXSV4js.argsWantJson.call(void 0, args)
|
|
14330
14330
|
};
|
|
14331
14331
|
}
|
|
14332
14332
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -14367,7 +14367,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
14367
14367
|
target,
|
|
14368
14368
|
expectedArtifactHash,
|
|
14369
14369
|
dryRun,
|
|
14370
|
-
jsonOutput:
|
|
14370
|
+
jsonOutput: _chunkEWYHXSV4js.argsWantJson.call(void 0, args)
|
|
14371
14371
|
};
|
|
14372
14372
|
}
|
|
14373
14373
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -14578,7 +14578,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
14578
14578
|
async function handlePlayCheck(args) {
|
|
14579
14579
|
const options = parsePlayCheckOptions(args);
|
|
14580
14580
|
if (!isFileTarget2(options.target)) {
|
|
14581
|
-
const client = new (0,
|
|
14581
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
14582
14582
|
try {
|
|
14583
14583
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
14584
14584
|
command: "check"
|
|
@@ -14607,7 +14607,7 @@ async function handlePlayCheck(args) {
|
|
|
14607
14607
|
},
|
|
14608
14608
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
14609
14609
|
};
|
|
14610
|
-
|
|
14610
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0, result, {
|
|
14611
14611
|
json: options.jsonOutput,
|
|
14612
14612
|
fields: options.jsonFields,
|
|
14613
14613
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -14617,7 +14617,7 @@ async function handlePlayCheck(args) {
|
|
|
14617
14617
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
14618
14618
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
14619
14619
|
if (options.jsonOutput) {
|
|
14620
|
-
|
|
14620
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
14621
14621
|
{
|
|
14622
14622
|
kind: "play_check",
|
|
14623
14623
|
checked: "named_contract",
|
|
@@ -14650,7 +14650,7 @@ async function handlePlayCheck(args) {
|
|
|
14650
14650
|
);
|
|
14651
14651
|
}
|
|
14652
14652
|
const primary = outcomes.find(
|
|
14653
|
-
(outcome) => outcome.exportName ===
|
|
14653
|
+
(outcome) => outcome.exportName === _chunkQGKPTBRRjs.PLAY_DEFAULT_EXPORT
|
|
14654
14654
|
);
|
|
14655
14655
|
const output = buildPlayCheckOutput({
|
|
14656
14656
|
outcomes,
|
|
@@ -14659,7 +14659,7 @@ async function handlePlayCheck(args) {
|
|
|
14659
14659
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full --json`,
|
|
14660
14660
|
publishCommand: _optionalChain([primary, 'optionalAccess', _483 => _483.result, 'access', _484 => _484.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
14661
14661
|
});
|
|
14662
|
-
|
|
14662
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0, output, {
|
|
14663
14663
|
json: options.jsonOutput,
|
|
14664
14664
|
fields: options.jsonFields,
|
|
14665
14665
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -14667,8 +14667,8 @@ async function handlePlayCheck(args) {
|
|
|
14667
14667
|
return output.valid ? 0 : 1;
|
|
14668
14668
|
}
|
|
14669
14669
|
function resolvePlayCheckExportNames(sourceCode) {
|
|
14670
|
-
const exports =
|
|
14671
|
-
if (!exports || exports.length === 0) return [
|
|
14670
|
+
const exports = _chunkQGKPTBRRjs.listPlayFileExports.call(void 0, sourceCode);
|
|
14671
|
+
if (!exports || exports.length === 0) return [_chunkQGKPTBRRjs.PLAY_DEFAULT_EXPORT];
|
|
14672
14672
|
return exports.map((entry) => entry.name);
|
|
14673
14673
|
}
|
|
14674
14674
|
function artifactForProductionCompatibilityCheck(artifact) {
|
|
@@ -14713,7 +14713,7 @@ async function checkOneExportedPlay(input) {
|
|
|
14713
14713
|
}
|
|
14714
14714
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
14715
14715
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
14716
|
-
const client = new (0,
|
|
14716
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
14717
14717
|
const integrationMode = resolveEvalIntegrationMode();
|
|
14718
14718
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
14719
14719
|
playName: node.playName,
|
|
@@ -14726,7 +14726,7 @@ async function checkOneExportedPlay(input) {
|
|
|
14726
14726
|
sourceFiles: graph.root.sourceFiles,
|
|
14727
14727
|
description: _nullishCoalesce(graph.root.playDescription, () => ( void 0)),
|
|
14728
14728
|
artifact: artifactForProductionCompatibilityCheck(graph.root.artifact),
|
|
14729
|
-
...exportName ===
|
|
14729
|
+
...exportName === _chunkQGKPTBRRjs.PLAY_DEFAULT_EXPORT ? {} : { exportName },
|
|
14730
14730
|
...importedPlays.length > 0 ? { importedPlays } : {},
|
|
14731
14731
|
...integrationMode ? { integrationMode } : {}
|
|
14732
14732
|
});
|
|
@@ -14777,7 +14777,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
14777
14777
|
() => collectBundledPlayGraph(
|
|
14778
14778
|
absolutePlayPath,
|
|
14779
14779
|
options.profile,
|
|
14780
|
-
|
|
14780
|
+
_chunkQGKPTBRRjs.PLAY_DEFAULT_EXPORT,
|
|
14781
14781
|
{ cache: !options.dryRun }
|
|
14782
14782
|
)
|
|
14783
14783
|
);
|
|
@@ -14790,7 +14790,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
14790
14790
|
);
|
|
14791
14791
|
return 0;
|
|
14792
14792
|
}
|
|
14793
|
-
client = new (0,
|
|
14793
|
+
client = new (0, _chunk5IYFQJHXjs.DeeplineClient)(playRunClientOptions(options));
|
|
14794
14794
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
14795
14795
|
if (canDeferCompilerManifest) {
|
|
14796
14796
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -14985,7 +14985,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14985
14985
|
if (options.target.kind !== "name") {
|
|
14986
14986
|
throw new Error("Expected a named play run target.");
|
|
14987
14987
|
}
|
|
14988
|
-
const client = new (0,
|
|
14988
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)(playRunClientOptions(options));
|
|
14989
14989
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
14990
14990
|
const playName = options.target.name;
|
|
14991
14991
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -15382,10 +15382,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
15382
15382
|
);
|
|
15383
15383
|
return `${lines.join("\n")}
|
|
15384
15384
|
|
|
15385
|
-
${
|
|
15385
|
+
${_chunkEWYHXSV4js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
15386
15386
|
}
|
|
15387
15387
|
async function handleRunGet(args) {
|
|
15388
|
-
const selection =
|
|
15388
|
+
const selection = _chunkEWYHXSV4js.parseJsonFields.call(void 0,
|
|
15389
15389
|
args,
|
|
15390
15390
|
args.includes("--config") ? "config" : "get"
|
|
15391
15391
|
);
|
|
@@ -15398,7 +15398,7 @@ async function handleRunGet(args) {
|
|
|
15398
15398
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15399
15399
|
return 1;
|
|
15400
15400
|
}
|
|
15401
|
-
const client = new (0,
|
|
15401
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
15402
15402
|
if (args.includes("--config")) {
|
|
15403
15403
|
if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
|
|
15404
15404
|
console.error(
|
|
@@ -15412,7 +15412,7 @@ async function handleRunGet(args) {
|
|
|
15412
15412
|
"This server does not support recorded configuration reads."
|
|
15413
15413
|
);
|
|
15414
15414
|
}
|
|
15415
|
-
|
|
15415
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
15416
15416
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
15417
15417
|
{ json: true, fields: selection.fields }
|
|
15418
15418
|
);
|
|
@@ -15420,7 +15420,7 @@ async function handleRunGet(args) {
|
|
|
15420
15420
|
}
|
|
15421
15421
|
if (args.includes("--input")) {
|
|
15422
15422
|
const input = await client.getRunInput(runId);
|
|
15423
|
-
|
|
15423
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0, input, { json: true });
|
|
15424
15424
|
return 0;
|
|
15425
15425
|
}
|
|
15426
15426
|
const full = args.includes("--full");
|
|
@@ -15434,8 +15434,8 @@ async function handleRunGet(args) {
|
|
|
15434
15434
|
full: true,
|
|
15435
15435
|
failedLogs: args.includes("--log-failed")
|
|
15436
15436
|
}) : status;
|
|
15437
|
-
if (
|
|
15438
|
-
|
|
15437
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
15438
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
15439
15439
|
full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
15440
15440
|
{ json: true, fields: selection.fields }
|
|
15441
15441
|
);
|
|
@@ -15451,8 +15451,8 @@ async function handleRunGet(args) {
|
|
|
15451
15451
|
readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
|
|
15452
15452
|
]);
|
|
15453
15453
|
const hitLines = formatRunHitsLines(hits);
|
|
15454
|
-
const json =
|
|
15455
|
-
|
|
15454
|
+
const json = _chunkEWYHXSV4js.argsWantJson.call(void 0, args);
|
|
15455
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
15456
15456
|
{
|
|
15457
15457
|
...overview,
|
|
15458
15458
|
credits,
|
|
@@ -15555,9 +15555,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
15555
15555
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15556
15556
|
return 1;
|
|
15557
15557
|
}
|
|
15558
|
-
const status = await new (0,
|
|
15559
|
-
if (
|
|
15560
|
-
|
|
15558
|
+
const status = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().runs.status(runId);
|
|
15559
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
15560
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0, status, { json: true });
|
|
15561
15561
|
return 0;
|
|
15562
15562
|
}
|
|
15563
15563
|
if (!status.available) {
|
|
@@ -15597,7 +15597,7 @@ async function handleRunsRerun(args) {
|
|
|
15597
15597
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15598
15598
|
return 1;
|
|
15599
15599
|
}
|
|
15600
|
-
const options = { json:
|
|
15600
|
+
const options = { json: _chunkEWYHXSV4js.argsWantJson.call(void 0, args) };
|
|
15601
15601
|
for (let index = 0; index < args.length; index += 1) {
|
|
15602
15602
|
if (args[index] === "--idempotency-key") {
|
|
15603
15603
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -15662,8 +15662,8 @@ ${usage2}
|
|
|
15662
15662
|
Discover Plays: ${next.discover}
|
|
15663
15663
|
Active runs: ${next.running}`
|
|
15664
15664
|
);
|
|
15665
|
-
if (
|
|
15666
|
-
|
|
15665
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
15666
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
15667
15667
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
15668
15668
|
{ json: true }
|
|
15669
15669
|
);
|
|
@@ -15678,7 +15678,7 @@ Active runs: ${next.running}`
|
|
|
15678
15678
|
console.error("--offset requires --play.");
|
|
15679
15679
|
return 1;
|
|
15680
15680
|
}
|
|
15681
|
-
const client = new (0,
|
|
15681
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
15682
15682
|
const page = await client.runs.listPage({
|
|
15683
15683
|
...playName ? { play: playName } : {},
|
|
15684
15684
|
...statusFilter ? { status: statusFilter } : {},
|
|
@@ -15747,7 +15747,7 @@ Active runs: ${next.running}`
|
|
|
15747
15747
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
15748
15748
|
);
|
|
15749
15749
|
}
|
|
15750
|
-
|
|
15750
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
15751
15751
|
{
|
|
15752
15752
|
runs,
|
|
15753
15753
|
count: runs.length,
|
|
@@ -15761,7 +15761,7 @@ Active runs: ${next.running}`
|
|
|
15761
15761
|
},
|
|
15762
15762
|
render: { sections: [{ title: "runs", lines }] }
|
|
15763
15763
|
},
|
|
15764
|
-
{ json:
|
|
15764
|
+
{ json: _chunkEWYHXSV4js.argsWantJson.call(void 0, args) }
|
|
15765
15765
|
);
|
|
15766
15766
|
return 0;
|
|
15767
15767
|
}
|
|
@@ -15791,7 +15791,7 @@ async function handleRunTail(args) {
|
|
|
15791
15791
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15792
15792
|
return 1;
|
|
15793
15793
|
}
|
|
15794
|
-
const parsed =
|
|
15794
|
+
const parsed = _chunk5IYFQJHXjs.parseLogLevel.call(void 0, value);
|
|
15795
15795
|
if (!parsed) {
|
|
15796
15796
|
console.error(
|
|
15797
15797
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15829,9 +15829,9 @@ async function handleRunTail(args) {
|
|
|
15829
15829
|
);
|
|
15830
15830
|
return 1;
|
|
15831
15831
|
}
|
|
15832
|
-
const client = new (0,
|
|
15832
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
15833
15833
|
const jsonLines = args.includes("--jsonl");
|
|
15834
|
-
const jsonOutput = !jsonLines &&
|
|
15834
|
+
const jsonOutput = !jsonLines && _chunkEWYHXSV4js.argsWantJson.call(void 0, args);
|
|
15835
15835
|
const compact = args.includes("--compact");
|
|
15836
15836
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
15837
15837
|
const compactState = {
|
|
@@ -15912,7 +15912,7 @@ async function handleRunLogs(args) {
|
|
|
15912
15912
|
]);
|
|
15913
15913
|
const cursorIndex = args.indexOf("--cursor");
|
|
15914
15914
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15915
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
15915
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk5IYFQJHXjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
15916
15916
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
15917
15917
|
return handleRunEventSearch(args);
|
|
15918
15918
|
}
|
|
@@ -15946,7 +15946,7 @@ async function handleRunLogs(args) {
|
|
|
15946
15946
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15947
15947
|
return 1;
|
|
15948
15948
|
}
|
|
15949
|
-
const parsed =
|
|
15949
|
+
const parsed = _chunk5IYFQJHXjs.parseLogLevel.call(void 0, value);
|
|
15950
15950
|
if (!parsed) {
|
|
15951
15951
|
console.error(
|
|
15952
15952
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15993,12 +15993,12 @@ async function handleRunLogs(args) {
|
|
|
15993
15993
|
);
|
|
15994
15994
|
return 1;
|
|
15995
15995
|
}
|
|
15996
|
-
const client = new (0,
|
|
15996
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
15997
15997
|
if (outPath) {
|
|
15998
15998
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
15999
|
-
const logs = result2.entries.filter((line) =>
|
|
15999
|
+
const logs = result2.entries.filter((line) => _chunk5IYFQJHXjs.logLevelReaches.call(void 0, _chunk5IYFQJHXjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk5IYFQJHXjs.classifyLogLine.call(void 0, line).line);
|
|
16000
16000
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
16001
|
-
|
|
16001
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
16002
16002
|
{
|
|
16003
16003
|
runId: result2.runId,
|
|
16004
16004
|
log_path: outPath,
|
|
@@ -16021,7 +16021,7 @@ async function handleRunLogs(args) {
|
|
|
16021
16021
|
]
|
|
16022
16022
|
}
|
|
16023
16023
|
},
|
|
16024
|
-
{ json:
|
|
16024
|
+
{ json: _chunkEWYHXSV4js.argsWantJson.call(void 0, args) }
|
|
16025
16025
|
);
|
|
16026
16026
|
return 0;
|
|
16027
16027
|
}
|
|
@@ -16052,7 +16052,7 @@ async function handleRunLogs(args) {
|
|
|
16052
16052
|
}
|
|
16053
16053
|
};
|
|
16054
16054
|
const text = buildRunLogsText(filteredResult);
|
|
16055
|
-
|
|
16055
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
16056
16056
|
{
|
|
16057
16057
|
runId: result.runId,
|
|
16058
16058
|
totalCount: result.totalCount,
|
|
@@ -16076,7 +16076,7 @@ async function handleRunLogs(args) {
|
|
|
16076
16076
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
16077
16077
|
},
|
|
16078
16078
|
{
|
|
16079
|
-
json:
|
|
16079
|
+
json: _chunkEWYHXSV4js.argsWantJson.call(void 0, args),
|
|
16080
16080
|
text
|
|
16081
16081
|
}
|
|
16082
16082
|
);
|
|
@@ -16100,7 +16100,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
16100
16100
|
);
|
|
16101
16101
|
}
|
|
16102
16102
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
16103
|
-
(entry) =>
|
|
16103
|
+
(entry) => _chunk5IYFQJHXjs.logLevelReaches.call(void 0, _chunk5IYFQJHXjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
16104
16104
|
);
|
|
16105
16105
|
const selected = matching.slice(-limit);
|
|
16106
16106
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -16110,7 +16110,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
16110
16110
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _526 => _526.at, 'call', _527 => _527(-1), 'optionalAccess', _528 => _528.seq]), () => ( null)),
|
|
16111
16111
|
truncated: result.truncated || olderMatchesExist,
|
|
16112
16112
|
hasMore: olderMatchesExist,
|
|
16113
|
-
nextCursor: olderMatchesExist ?
|
|
16113
|
+
nextCursor: olderMatchesExist ? _chunk5IYFQJHXjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
16114
16114
|
};
|
|
16115
16115
|
}
|
|
16116
16116
|
async function handleRunEventSearch(args) {
|
|
@@ -16177,7 +16177,7 @@ ${usage2}`);
|
|
|
16177
16177
|
namespace,
|
|
16178
16178
|
...backend ? { backend } : {}
|
|
16179
16179
|
} : void 0;
|
|
16180
|
-
const client = new (0,
|
|
16180
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
16181
16181
|
const result = await client.runs.searchEvents({
|
|
16182
16182
|
...runId ? { runId } : {},
|
|
16183
16183
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -16250,7 +16250,7 @@ ${renderedDetails}` : ""}`;
|
|
|
16250
16250
|
String(limit),
|
|
16251
16251
|
"--json"
|
|
16252
16252
|
].join(" ") : null;
|
|
16253
|
-
|
|
16253
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
16254
16254
|
{
|
|
16255
16255
|
events,
|
|
16256
16256
|
nextCursor: result.nextCursor,
|
|
@@ -16261,14 +16261,14 @@ ${renderedDetails}` : ""}`;
|
|
|
16261
16261
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
16262
16262
|
},
|
|
16263
16263
|
{
|
|
16264
|
-
json:
|
|
16264
|
+
json: _chunkEWYHXSV4js.argsWantJson.call(void 0, args),
|
|
16265
16265
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
16266
16266
|
}
|
|
16267
16267
|
);
|
|
16268
16268
|
return 0;
|
|
16269
16269
|
}
|
|
16270
16270
|
function buildRunLogsText(result) {
|
|
16271
|
-
const lines = result.entries.map((line) =>
|
|
16271
|
+
const lines = result.entries.map((line) => _chunk5IYFQJHXjs.classifyLogLine.call(void 0, line).line);
|
|
16272
16272
|
if (result.warning) {
|
|
16273
16273
|
if (lines.length > 0) lines.push("");
|
|
16274
16274
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -16302,7 +16302,7 @@ async function handleRunStop(args) {
|
|
|
16302
16302
|
reason = args[++index];
|
|
16303
16303
|
}
|
|
16304
16304
|
}
|
|
16305
|
-
const client = new (0,
|
|
16305
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
16306
16306
|
const result = await client.runs.stop(runId, { reason });
|
|
16307
16307
|
const state = resolveRunStopState(result);
|
|
16308
16308
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -16317,7 +16317,7 @@ async function handleRunStop(args) {
|
|
|
16317
16317
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
16318
16318
|
`inspect: deepline runs get ${runId} --full --json`
|
|
16319
16319
|
];
|
|
16320
|
-
|
|
16320
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
16321
16321
|
{
|
|
16322
16322
|
...cancelling,
|
|
16323
16323
|
state,
|
|
@@ -16332,7 +16332,7 @@ async function handleRunStop(args) {
|
|
|
16332
16332
|
]
|
|
16333
16333
|
}
|
|
16334
16334
|
},
|
|
16335
|
-
{ json:
|
|
16335
|
+
{ json: _chunkEWYHXSV4js.argsWantJson.call(void 0, args) }
|
|
16336
16336
|
);
|
|
16337
16337
|
return 0;
|
|
16338
16338
|
}
|
|
@@ -16349,7 +16349,7 @@ async function handleRunStop(args) {
|
|
|
16349
16349
|
];
|
|
16350
16350
|
process.stderr.write(`${lines2.join("\n")}
|
|
16351
16351
|
`);
|
|
16352
|
-
|
|
16352
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
16353
16353
|
{
|
|
16354
16354
|
...result,
|
|
16355
16355
|
render: {
|
|
@@ -16364,7 +16364,7 @@ async function handleRunStop(args) {
|
|
|
16364
16364
|
]
|
|
16365
16365
|
}
|
|
16366
16366
|
},
|
|
16367
|
-
{ json:
|
|
16367
|
+
{ json: _chunkEWYHXSV4js.argsWantJson.call(void 0, args) }
|
|
16368
16368
|
);
|
|
16369
16369
|
return 1;
|
|
16370
16370
|
}
|
|
@@ -16375,12 +16375,12 @@ async function handleRunStop(args) {
|
|
|
16375
16375
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
16376
16376
|
] : []
|
|
16377
16377
|
];
|
|
16378
|
-
|
|
16378
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
16379
16379
|
{
|
|
16380
16380
|
...result,
|
|
16381
16381
|
render: { sections: [{ title: "run stop", lines }] }
|
|
16382
16382
|
},
|
|
16383
|
-
{ json:
|
|
16383
|
+
{ json: _chunkEWYHXSV4js.argsWantJson.call(void 0, args) }
|
|
16384
16384
|
);
|
|
16385
16385
|
return 0;
|
|
16386
16386
|
}
|
|
@@ -16430,18 +16430,18 @@ async function handleRunStopAll(args) {
|
|
|
16430
16430
|
reason = args[++index];
|
|
16431
16431
|
}
|
|
16432
16432
|
}
|
|
16433
|
-
const client = new (0,
|
|
16433
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
16434
16434
|
if (dryRun) {
|
|
16435
16435
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
16436
16436
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
16437
|
-
|
|
16437
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
16438
16438
|
{
|
|
16439
16439
|
...result2,
|
|
16440
16440
|
render: {
|
|
16441
16441
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
16442
16442
|
}
|
|
16443
16443
|
},
|
|
16444
|
-
{ json:
|
|
16444
|
+
{ json: _chunkEWYHXSV4js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
16445
16445
|
` }
|
|
16446
16446
|
);
|
|
16447
16447
|
return 0;
|
|
@@ -16454,17 +16454,17 @@ async function handleRunStopAll(args) {
|
|
|
16454
16454
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
16455
16455
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
16456
16456
|
];
|
|
16457
|
-
|
|
16457
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
16458
16458
|
{
|
|
16459
16459
|
...result,
|
|
16460
16460
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
16461
16461
|
},
|
|
16462
|
-
{ json:
|
|
16462
|
+
{ json: _chunkEWYHXSV4js.argsWantJson.call(void 0, args) }
|
|
16463
16463
|
);
|
|
16464
16464
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
16465
16465
|
}
|
|
16466
16466
|
async function handleRunExport(args) {
|
|
16467
|
-
const selection =
|
|
16467
|
+
const selection = _chunkEWYHXSV4js.parseJsonFields.call(void 0, args, "export");
|
|
16468
16468
|
args = selection.args;
|
|
16469
16469
|
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]";
|
|
16470
16470
|
let runId;
|
|
@@ -16523,16 +16523,16 @@ async function handleRunExport(args) {
|
|
|
16523
16523
|
"INVALID_ARGUMENT"
|
|
16524
16524
|
);
|
|
16525
16525
|
}
|
|
16526
|
-
const client = new (0,
|
|
16526
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
16527
16527
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
16528
16528
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
16529
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
16529
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkEWYHXSV4js.argsWantJson.call(void 0, args));
|
|
16530
16530
|
try {
|
|
16531
16531
|
await waitForPlayCompletionByWatch({
|
|
16532
16532
|
client,
|
|
16533
16533
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
16534
16534
|
workflowId: runId,
|
|
16535
|
-
jsonOutput:
|
|
16535
|
+
jsonOutput: _chunkEWYHXSV4js.argsWantJson.call(void 0, args),
|
|
16536
16536
|
emitLogs: false,
|
|
16537
16537
|
waitTimeoutMs,
|
|
16538
16538
|
startedAt: Date.now(),
|
|
@@ -16632,8 +16632,8 @@ async function handleRunExport(args) {
|
|
|
16632
16632
|
"utf-8"
|
|
16633
16633
|
);
|
|
16634
16634
|
}
|
|
16635
|
-
|
|
16636
|
-
json:
|
|
16635
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0, payload, {
|
|
16636
|
+
json: _chunkEWYHXSV4js.argsWantJson.call(void 0, args),
|
|
16637
16637
|
fields: selection.fields,
|
|
16638
16638
|
text: `${lines.join("\n")}
|
|
16639
16639
|
`
|
|
@@ -16654,10 +16654,10 @@ async function handlePlayGet(args) {
|
|
|
16654
16654
|
);
|
|
16655
16655
|
return 2;
|
|
16656
16656
|
}
|
|
16657
|
-
const client = new (0,
|
|
16657
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
16658
16658
|
const explicitJson = args.includes("--json");
|
|
16659
16659
|
const sourceOutput = args.includes("--source");
|
|
16660
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
16660
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkEWYHXSV4js.argsWantJson.call(void 0, args);
|
|
16661
16661
|
const requestedRevisionFlags = [
|
|
16662
16662
|
args.includes("--working"),
|
|
16663
16663
|
args.includes("--live"),
|
|
@@ -16717,7 +16717,7 @@ async function handlePlayGet(args) {
|
|
|
16717
16717
|
}
|
|
16718
16718
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
16719
16719
|
if (jsonOutput) {
|
|
16720
|
-
|
|
16720
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, {
|
|
16721
16721
|
...detail,
|
|
16722
16722
|
...materializedFile ? {
|
|
16723
16723
|
message: loadedMessage,
|
|
@@ -16804,8 +16804,8 @@ async function handlePlayVersions(args) {
|
|
|
16804
16804
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
16805
16805
|
return 1;
|
|
16806
16806
|
}
|
|
16807
|
-
const client = new (0,
|
|
16808
|
-
const jsonOutput =
|
|
16807
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
16808
|
+
const jsonOutput = _chunkEWYHXSV4js.argsWantJson.call(void 0, args);
|
|
16809
16809
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16810
16810
|
command: "versions"
|
|
16811
16811
|
});
|
|
@@ -16813,7 +16813,7 @@ async function handlePlayVersions(args) {
|
|
|
16813
16813
|
parseReferencedPlayTarget3(playName).playName
|
|
16814
16814
|
);
|
|
16815
16815
|
if (jsonOutput) {
|
|
16816
|
-
|
|
16816
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, { versions });
|
|
16817
16817
|
return 0;
|
|
16818
16818
|
}
|
|
16819
16819
|
if (versions.length === 0) {
|
|
@@ -16845,9 +16845,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
16845
16845
|
"signals"
|
|
16846
16846
|
];
|
|
16847
16847
|
async function handlePlayList(args) {
|
|
16848
|
-
const jsonOutput =
|
|
16848
|
+
const jsonOutput = _chunkEWYHXSV4js.argsWantJson.call(void 0, args);
|
|
16849
16849
|
const showCost = args.includes("--show-cost");
|
|
16850
|
-
const client = new (0,
|
|
16850
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
16851
16851
|
const categoriesIndex = args.indexOf("--categories");
|
|
16852
16852
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _564 => _564[categoriesIndex + 1], 'optionalAccess', _565 => _565.trim, 'call', _566 => _566()]) : void 0;
|
|
16853
16853
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -16944,7 +16944,7 @@ async function handlePlayList(args) {
|
|
|
16944
16944
|
lines.push("List truncated \u2014 more plays are available.");
|
|
16945
16945
|
lines.push(`Next page: ${nextPage}`);
|
|
16946
16946
|
}
|
|
16947
|
-
|
|
16947
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
16948
16948
|
{
|
|
16949
16949
|
plays,
|
|
16950
16950
|
count: plays.length,
|
|
@@ -16962,7 +16962,7 @@ async function handlePlayList(args) {
|
|
|
16962
16962
|
}
|
|
16963
16963
|
async function handlePlayPin(args, pinned) {
|
|
16964
16964
|
const target = _optionalChain([args, 'access', _573 => _573.find, 'call', _574 => _574((arg) => !arg.startsWith("-")), 'optionalAccess', _575 => _575.trim, 'call', _576 => _576()]);
|
|
16965
|
-
const jsonOutput =
|
|
16965
|
+
const jsonOutput = _chunkEWYHXSV4js.argsWantJson.call(void 0, args);
|
|
16966
16966
|
const dryRun = args.includes("--dry-run");
|
|
16967
16967
|
if (!target) {
|
|
16968
16968
|
console.error(
|
|
@@ -16980,11 +16980,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
16980
16980
|
const name = parsedTarget.playName;
|
|
16981
16981
|
const plan = { name, pinned, dryRun };
|
|
16982
16982
|
if (dryRun) {
|
|
16983
|
-
|
|
16983
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, plan);
|
|
16984
16984
|
return 0;
|
|
16985
16985
|
}
|
|
16986
|
-
const result = await new (0,
|
|
16987
|
-
if (jsonOutput)
|
|
16986
|
+
const result = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
16987
|
+
if (jsonOutput) _chunkEWYHXSV4js.printCompactJson.call(void 0, result);
|
|
16988
16988
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
16989
16989
|
return 0;
|
|
16990
16990
|
}
|
|
@@ -17000,7 +17000,7 @@ function csvColumnLines(csvInput) {
|
|
|
17000
17000
|
const headers = [defaults[column]].flat().filter((header) => header && header !== column);
|
|
17001
17001
|
return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
|
|
17002
17002
|
}),
|
|
17003
|
-
|
|
17003
|
+
_chunk5IYFQJHXjs.CSV_HEADER_MATCHING_NOTE
|
|
17004
17004
|
];
|
|
17005
17005
|
}
|
|
17006
17006
|
function describedPlay(play) {
|
|
@@ -17144,12 +17144,12 @@ async function handlePlayGrep(args) {
|
|
|
17144
17144
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
17145
17145
|
return 1;
|
|
17146
17146
|
}
|
|
17147
|
-
const client = new (0,
|
|
17147
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
17148
17148
|
const results = (await client.listPlays({ grep: query })).map(
|
|
17149
17149
|
summarizePlayGrepResult
|
|
17150
17150
|
);
|
|
17151
|
-
if (
|
|
17152
|
-
|
|
17151
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
17152
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, {
|
|
17153
17153
|
plays: results,
|
|
17154
17154
|
count: results.length,
|
|
17155
17155
|
query,
|
|
@@ -17172,7 +17172,7 @@ async function handlePlayGrep(args) {
|
|
|
17172
17172
|
return 0;
|
|
17173
17173
|
}
|
|
17174
17174
|
async function handlePlayDescribe(args) {
|
|
17175
|
-
const selection =
|
|
17175
|
+
const selection = _chunkEWYHXSV4js.parseJsonFields.call(void 0, args, "describe");
|
|
17176
17176
|
args = selection.args;
|
|
17177
17177
|
const playName = args[0];
|
|
17178
17178
|
if (!playName) {
|
|
@@ -17206,8 +17206,8 @@ async function handlePlayDescribe(args) {
|
|
|
17206
17206
|
`deepline plays check ${playName}`,
|
|
17207
17207
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
17208
17208
|
];
|
|
17209
|
-
if (
|
|
17210
|
-
|
|
17209
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
17210
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, {
|
|
17211
17211
|
ok: false,
|
|
17212
17212
|
error: { message },
|
|
17213
17213
|
next
|
|
@@ -17221,7 +17221,7 @@ async function handlePlayDescribe(args) {
|
|
|
17221
17221
|
}
|
|
17222
17222
|
return 2;
|
|
17223
17223
|
}
|
|
17224
|
-
const client = new (0,
|
|
17224
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
17225
17225
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
17226
17226
|
command: "describe"
|
|
17227
17227
|
});
|
|
@@ -17231,9 +17231,9 @@ async function handlePlayDescribe(args) {
|
|
|
17231
17231
|
compact: args.includes("--compact")
|
|
17232
17232
|
}
|
|
17233
17233
|
);
|
|
17234
|
-
if (
|
|
17235
|
-
if (selection.fields)
|
|
17236
|
-
else
|
|
17234
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
17235
|
+
if (selection.fields) _chunkEWYHXSV4js.printJson.call(void 0, play, selection.fields);
|
|
17236
|
+
else _chunkEWYHXSV4js.printCompactJson.call(void 0, play);
|
|
17237
17237
|
return 0;
|
|
17238
17238
|
}
|
|
17239
17239
|
printPlayDescription(play);
|
|
@@ -17277,7 +17277,7 @@ async function handlePlaySave(args) {
|
|
|
17277
17277
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
17278
17278
|
};
|
|
17279
17279
|
if (options.jsonOutput) {
|
|
17280
|
-
|
|
17280
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, result);
|
|
17281
17281
|
} else {
|
|
17282
17282
|
console.error(result.message);
|
|
17283
17283
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -17299,7 +17299,7 @@ async function handlePlaySave(args) {
|
|
|
17299
17299
|
};
|
|
17300
17300
|
if (options.dryRun) {
|
|
17301
17301
|
if (options.jsonOutput) {
|
|
17302
|
-
|
|
17302
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, dryRun);
|
|
17303
17303
|
} else {
|
|
17304
17304
|
console.log(`Dry run: ${playName}`);
|
|
17305
17305
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17308,7 +17308,7 @@ async function handlePlaySave(args) {
|
|
|
17308
17308
|
}
|
|
17309
17309
|
return 0;
|
|
17310
17310
|
}
|
|
17311
|
-
const client = new (0,
|
|
17311
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
17312
17312
|
try {
|
|
17313
17313
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
17314
17314
|
"cli.play_save_compile_manifests",
|
|
@@ -17344,7 +17344,7 @@ async function handlePlaySave(args) {
|
|
|
17344
17344
|
}
|
|
17345
17345
|
};
|
|
17346
17346
|
if (options.jsonOutput) {
|
|
17347
|
-
|
|
17347
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, result);
|
|
17348
17348
|
} else {
|
|
17349
17349
|
console.log(
|
|
17350
17350
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -17370,7 +17370,7 @@ async function handlePlayPublish(args) {
|
|
|
17370
17370
|
}
|
|
17371
17371
|
const { target: playName, useLatest } = options;
|
|
17372
17372
|
let revisionId = options.revisionId;
|
|
17373
|
-
const client = new (0,
|
|
17373
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
17374
17374
|
if (isFileTarget2(playName)) {
|
|
17375
17375
|
if (revisionId || useLatest) {
|
|
17376
17376
|
console.error(
|
|
@@ -17402,7 +17402,7 @@ async function handlePlayPublish(args) {
|
|
|
17402
17402
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
17403
17403
|
};
|
|
17404
17404
|
if (options.jsonOutput) {
|
|
17405
|
-
|
|
17405
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, result3);
|
|
17406
17406
|
} else {
|
|
17407
17407
|
console.error(result3.message);
|
|
17408
17408
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -17425,7 +17425,7 @@ async function handlePlayPublish(args) {
|
|
|
17425
17425
|
};
|
|
17426
17426
|
if (options.dryRun) {
|
|
17427
17427
|
if (options.jsonOutput) {
|
|
17428
|
-
|
|
17428
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, dryRun);
|
|
17429
17429
|
} else {
|
|
17430
17430
|
console.log(`Dry run: ${rootPlayName}`);
|
|
17431
17431
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17493,7 +17493,7 @@ async function handlePlayPublish(args) {
|
|
|
17493
17493
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
17494
17494
|
};
|
|
17495
17495
|
if (options.jsonOutput) {
|
|
17496
|
-
|
|
17496
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, result2);
|
|
17497
17497
|
} else {
|
|
17498
17498
|
printPublishReceipt({
|
|
17499
17499
|
name: rootPlayName,
|
|
@@ -17524,7 +17524,7 @@ async function handlePlayPublish(args) {
|
|
|
17524
17524
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
17525
17525
|
latest: useLatest
|
|
17526
17526
|
};
|
|
17527
|
-
|
|
17527
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, result2);
|
|
17528
17528
|
return 0;
|
|
17529
17529
|
}
|
|
17530
17530
|
const resolvedName = parseReferencedPlayTarget3(playName).playName;
|
|
@@ -17548,7 +17548,7 @@ async function handlePlayPublish(args) {
|
|
|
17548
17548
|
revisionId ? { revisionId } : {}
|
|
17549
17549
|
);
|
|
17550
17550
|
if (options.jsonOutput) {
|
|
17551
|
-
|
|
17551
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, result);
|
|
17552
17552
|
} else {
|
|
17553
17553
|
printPublishReceipt({
|
|
17554
17554
|
name: result.name,
|
|
@@ -17588,7 +17588,7 @@ async function handlePlayDelete(args) {
|
|
|
17588
17588
|
);
|
|
17589
17589
|
return 2;
|
|
17590
17590
|
}
|
|
17591
|
-
const client = new (0,
|
|
17591
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
17592
17592
|
let detail;
|
|
17593
17593
|
try {
|
|
17594
17594
|
detail = await client.getPlay(parseReferencedPlayTarget3(playName).playName);
|
|
@@ -17612,8 +17612,8 @@ async function handlePlayDelete(args) {
|
|
|
17612
17612
|
name: resolvedName,
|
|
17613
17613
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
17614
17614
|
};
|
|
17615
|
-
if (
|
|
17616
|
-
|
|
17615
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
17616
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, result2);
|
|
17617
17617
|
} else {
|
|
17618
17618
|
process.stdout.write(
|
|
17619
17619
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -17623,8 +17623,8 @@ async function handlePlayDelete(args) {
|
|
|
17623
17623
|
return 0;
|
|
17624
17624
|
}
|
|
17625
17625
|
const result = await client.deletePlay(resolvedName);
|
|
17626
|
-
if (
|
|
17627
|
-
|
|
17626
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
17627
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, result);
|
|
17628
17628
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
17629
17629
|
}
|
|
17630
17630
|
if (result.alreadyArchived) {
|
|
@@ -17663,13 +17663,13 @@ async function handlePlayRestore(args) {
|
|
|
17663
17663
|
);
|
|
17664
17664
|
return 2;
|
|
17665
17665
|
}
|
|
17666
|
-
const client = new (0,
|
|
17666
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
17667
17667
|
try {
|
|
17668
17668
|
const result = await client.restorePlay(
|
|
17669
17669
|
parseReferencedPlayTarget3(playName).playName
|
|
17670
17670
|
);
|
|
17671
|
-
if (
|
|
17672
|
-
|
|
17671
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
17672
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, result);
|
|
17673
17673
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
17674
17674
|
}
|
|
17675
17675
|
if (result.alreadyActive) {
|
|
@@ -17776,7 +17776,7 @@ Examples:
|
|
|
17776
17776
|
).action(async (target, options) => {
|
|
17777
17777
|
process.exitCode = await handlePlayCheck([
|
|
17778
17778
|
target,
|
|
17779
|
-
...
|
|
17779
|
+
..._chunkEWYHXSV4js.jsonFieldArgs.call(void 0, options.json),
|
|
17780
17780
|
...options.full ? ["--full"] : []
|
|
17781
17781
|
]);
|
|
17782
17782
|
});
|
|
@@ -18005,9 +18005,9 @@ Examples:
|
|
|
18005
18005
|
const limit = Number(options.historyLimit);
|
|
18006
18006
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
18007
18007
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
18008
|
-
const client = new (0,
|
|
18008
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
18009
18009
|
if (options.binding) {
|
|
18010
|
-
|
|
18010
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0,
|
|
18011
18011
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
18012
18012
|
);
|
|
18013
18013
|
return;
|
|
@@ -18015,7 +18015,7 @@ Examples:
|
|
|
18015
18015
|
const result = await client.listPlayTriggerInventory({
|
|
18016
18016
|
cursor: options.cursor
|
|
18017
18017
|
});
|
|
18018
|
-
|
|
18018
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, {
|
|
18019
18019
|
...result,
|
|
18020
18020
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
|
|
18021
18021
|
});
|
|
@@ -18062,7 +18062,7 @@ Examples:
|
|
|
18062
18062
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
18063
18063
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
18064
18064
|
}
|
|
18065
|
-
const result = await new (0,
|
|
18065
|
+
const result = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().getPlaysActivity({
|
|
18066
18066
|
timeZone: options.timeZone,
|
|
18067
18067
|
days,
|
|
18068
18068
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -18076,7 +18076,7 @@ Examples:
|
|
|
18076
18076
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
18077
18077
|
);
|
|
18078
18078
|
}
|
|
18079
|
-
|
|
18079
|
+
_chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
|
|
18080
18080
|
{ ...result },
|
|
18081
18081
|
{
|
|
18082
18082
|
json: options.json || !process.stdout.isTTY,
|
|
@@ -18105,7 +18105,7 @@ Examples:
|
|
|
18105
18105
|
false
|
|
18106
18106
|
);
|
|
18107
18107
|
});
|
|
18108
|
-
|
|
18108
|
+
_chunk6NM2IY4Bjs.registerDeprecatedSearchCommand.call(void 0,
|
|
18109
18109
|
play,
|
|
18110
18110
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
18111
18111
|
);
|
|
@@ -18149,7 +18149,7 @@ Examples:
|
|
|
18149
18149
|
);
|
|
18150
18150
|
_chunkMX53GIOBjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
18151
18151
|
async (target, options) => {
|
|
18152
|
-
const ownView = () => handlePlayDescribe(
|
|
18152
|
+
const ownView = () => handlePlayDescribe(_chunkEWYHXSV4js.describeArgs.call(void 0, target, options));
|
|
18153
18153
|
const [flagText] = [options.json].filter(
|
|
18154
18154
|
(value) => typeof value === "string"
|
|
18155
18155
|
);
|
|
@@ -18160,7 +18160,7 @@ Examples:
|
|
|
18160
18160
|
process.exitCode = await ownView();
|
|
18161
18161
|
return;
|
|
18162
18162
|
}
|
|
18163
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
18163
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-ZQXDXWKZ.js")));
|
|
18164
18164
|
process.exitCode = await describeAnything(
|
|
18165
18165
|
name,
|
|
18166
18166
|
{
|
|
@@ -18277,7 +18277,7 @@ Examples:
|
|
|
18277
18277
|
deepline plays deployments <deployment-id>
|
|
18278
18278
|
`
|
|
18279
18279
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
|
|
18280
|
-
async (id, options) => id ?
|
|
18280
|
+
async (id, options) => id ? _chunkNX4WJO5Pjs.handleDeploymentGet.call(void 0, id, options) : _chunkNX4WJO5Pjs.handleDeploymentsList.call(void 0, options)
|
|
18281
18281
|
);
|
|
18282
18282
|
addPublishHelp(
|
|
18283
18283
|
play.command("publish <target>").description(
|
|
@@ -18457,7 +18457,7 @@ Examples:
|
|
|
18457
18457
|
).action(async (runId, options) => {
|
|
18458
18458
|
process.exitCode = await handleRunGet([
|
|
18459
18459
|
runId,
|
|
18460
|
-
...
|
|
18460
|
+
..._chunkEWYHXSV4js.jsonFieldArgs.call(void 0, options.json),
|
|
18461
18461
|
...options.full ? ["--full"] : [],
|
|
18462
18462
|
...options.input ? ["--input"] : [],
|
|
18463
18463
|
...options.config ? ["--config"] : [],
|
|
@@ -18733,7 +18733,7 @@ Examples:
|
|
|
18733
18733
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
18734
18734
|
...options.wait ? ["--wait"] : [],
|
|
18735
18735
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
18736
|
-
...
|
|
18736
|
+
..._chunkEWYHXSV4js.jsonFieldArgs.call(void 0, options.json)
|
|
18737
18737
|
]);
|
|
18738
18738
|
});
|
|
18739
18739
|
const share = play.command("share").description(
|
|
@@ -18899,10 +18899,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18899
18899
|
return 2;
|
|
18900
18900
|
}
|
|
18901
18901
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
18902
|
-
const status = await new (0,
|
|
18902
|
+
const status = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().getSharePage(name);
|
|
18903
18903
|
const outputStatus = shareStatusForOutput(status);
|
|
18904
|
-
if (
|
|
18905
|
-
|
|
18904
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
18905
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, outputStatus);
|
|
18906
18906
|
return 0;
|
|
18907
18907
|
}
|
|
18908
18908
|
if (!outputStatus.share) {
|
|
@@ -18941,7 +18941,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18941
18941
|
return 2;
|
|
18942
18942
|
}
|
|
18943
18943
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
18944
|
-
const client = new (0,
|
|
18944
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
18945
18945
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18946
18946
|
let resolvedVersion;
|
|
18947
18947
|
if (!revisionId) {
|
|
@@ -18972,8 +18972,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18972
18972
|
);
|
|
18973
18973
|
if (!hasCompleted) {
|
|
18974
18974
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18975
|
-
if (
|
|
18976
|
-
|
|
18975
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
18976
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, {
|
|
18977
18977
|
ok: false,
|
|
18978
18978
|
code: "NO_SUCCESSFUL_RUN",
|
|
18979
18979
|
message,
|
|
@@ -18997,8 +18997,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18997
18997
|
};
|
|
18998
18998
|
if (args.includes("--dry-run")) {
|
|
18999
18999
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
19000
|
-
if (
|
|
19001
|
-
|
|
19000
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
19001
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, plan);
|
|
19002
19002
|
} else {
|
|
19003
19003
|
console.log(
|
|
19004
19004
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -19008,8 +19008,8 @@ async function handlePlaySharePublish(args) {
|
|
|
19008
19008
|
}
|
|
19009
19009
|
const status = await client.publishSharePage(name, request);
|
|
19010
19010
|
const outputStatus = shareStatusForOutput(status);
|
|
19011
|
-
if (
|
|
19012
|
-
|
|
19011
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
19012
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, outputStatus);
|
|
19013
19013
|
return 0;
|
|
19014
19014
|
}
|
|
19015
19015
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -19040,9 +19040,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
19040
19040
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
19041
19041
|
...seoIndexing ? { seoIndexing } : {}
|
|
19042
19042
|
};
|
|
19043
|
-
const status = await new (0,
|
|
19044
|
-
if (
|
|
19045
|
-
|
|
19043
|
+
const status = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().updateSharePage(name, request);
|
|
19044
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
19045
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, status);
|
|
19046
19046
|
return 0;
|
|
19047
19047
|
}
|
|
19048
19048
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -19057,7 +19057,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
19057
19057
|
return 2;
|
|
19058
19058
|
}
|
|
19059
19059
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
19060
|
-
const client = new (0,
|
|
19060
|
+
const client = new (0, _chunk5IYFQJHXjs.DeeplineClient)();
|
|
19061
19061
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
19062
19062
|
const versionFlag = shareFlagValue(args, "--version");
|
|
19063
19063
|
if (!revisionId && versionFlag) {
|
|
@@ -19074,8 +19074,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
19074
19074
|
revisionId ? { revisionId } : {}
|
|
19075
19075
|
);
|
|
19076
19076
|
const outputStatus = shareStatusForOutput(status);
|
|
19077
|
-
if (
|
|
19078
|
-
|
|
19077
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
19078
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, outputStatus);
|
|
19079
19079
|
return 0;
|
|
19080
19080
|
}
|
|
19081
19081
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -19100,9 +19100,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
19100
19100
|
return 2;
|
|
19101
19101
|
}
|
|
19102
19102
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
19103
|
-
const status = await new (0,
|
|
19104
|
-
if (
|
|
19105
|
-
|
|
19103
|
+
const status = await new (0, _chunk5IYFQJHXjs.DeeplineClient)().unpublishSharePage(name);
|
|
19104
|
+
if (_chunkEWYHXSV4js.argsWantJson.call(void 0, args)) {
|
|
19105
|
+
_chunkEWYHXSV4js.printCompactJson.call(void 0, status);
|
|
19106
19106
|
return 0;
|
|
19107
19107
|
}
|
|
19108
19108
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|