deepline 0.3.327 → 0.3.329
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/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/play.ts +55 -45
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +16 -0
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +31 -15
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +22 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +29 -11
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +145 -19
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +37 -10
- package/dist/bundling-sources/shared_libs/plays/dataset.ts +3 -0
- package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +59 -10
- package/dist/bundling-sources/shared_libs/security/secret-redaction.ts +4 -0
- package/dist/cli/{auth-EBBDOKNV.mjs → auth-MFFVOITR.mjs} +4 -4
- package/dist/cli/auth-W2MQM6GQ.js +31 -0
- package/dist/cli/{billing-IM2QUFX4.mjs → billing-LRBHWLIQ.mjs} +30 -16
- package/dist/cli/{billing-6AAB7WPJ.js → billing-V4Y4OVQ7.js} +96 -82
- package/dist/cli/{chunk-D6GD5AVN.mjs → chunk-3RZJ3GEG.mjs} +135 -5
- package/dist/cli/{chunk-MOP6D7Z5.js → chunk-4FLEXYUC.js} +141 -11
- package/dist/cli/{chunk-DSDX6EUW.js → chunk-75ZOTF3K.js} +15 -15
- package/dist/cli/{chunk-ZOFARJWH.mjs → chunk-7T6DX5RK.mjs} +21 -14
- package/dist/cli/{chunk-3MXRNPBN.js → chunk-AD23W4S5.js} +1 -1
- package/dist/cli/{chunk-F45425TB.mjs → chunk-EROOAI5G.mjs} +1 -1
- package/dist/cli/{chunk-REP2MYBI.mjs → chunk-ERU2OR6F.mjs} +2 -2
- package/dist/cli/{chunk-YIY74KUF.mjs → chunk-EV4QJE4J.mjs} +1 -1
- package/dist/cli/{chunk-CCRQ2VGJ.mjs → chunk-FK7PW6BP.mjs} +1 -1
- package/dist/cli/{chunk-2HKPAZVJ.js → chunk-FKKNYKDY.js} +14 -3
- package/dist/cli/{chunk-G5774EFF.mjs → chunk-GCNER3HV.mjs} +1 -1
- package/dist/cli/{chunk-4ZARCCPT.js → chunk-GY2EEO2Y.js} +9 -9
- package/dist/cli/{chunk-HOWQKN6J.mjs → chunk-HI7TAWFS.mjs} +79 -26
- package/dist/cli/{chunk-RSEVBSFE.mjs → chunk-HVPRQGF4.mjs} +1 -1
- package/dist/cli/{chunk-CISKBOXD.js → chunk-J2E5R2VH.js} +60 -60
- package/dist/cli/{chunk-7RCJDAJX.js → chunk-KHZQFFOQ.js} +2 -2
- package/dist/cli/{chunk-DVV4FPS7.mjs → chunk-MFQQINUY.mjs} +2 -2
- package/dist/cli/{chunk-DCAU6PND.mjs → chunk-MO2XSC5I.mjs} +4 -4
- package/dist/cli/{chunk-KP7W5NO6.mjs → chunk-NTVTZAVZ.mjs} +13 -2
- package/dist/cli/{chunk-HZZJR2GV.js → chunk-OUTIWGKY.js} +26 -26
- package/dist/cli/{chunk-QZAP5VOS.mjs → chunk-OZGU7P2S.mjs} +1 -1
- package/dist/cli/{chunk-A5SKM3GL.mjs → chunk-SJV5MTOJ.mjs} +1 -1
- package/dist/cli/{chunk-UROXKPND.js → chunk-U2N4CYT7.js} +6 -6
- package/dist/cli/{chunk-4TO56P22.js → chunk-U4CTHVN7.js} +255 -248
- package/dist/cli/{chunk-AGH6YP2T.js → chunk-UQV5M6HN.js} +3 -3
- package/dist/cli/{chunk-DM3SHV6U.js → chunk-VDIHLKGG.js} +4 -4
- package/dist/cli/{chunk-77RAV5XX.js → chunk-VLDLJZ75.js} +48 -48
- package/dist/cli/{chunk-NWIJLTRL.js → chunk-XRYKLK56.js} +119 -66
- package/dist/cli/{chunk-3ITDKXNC.mjs → chunk-YNSCELIJ.mjs} +2 -2
- package/dist/cli/{chunk-TAGHNT5P.js → chunk-ZXGUYTIT.js} +6 -6
- package/dist/cli/client-5AIFBLKQ.js +20 -0
- package/dist/cli/{client-JCMSACT4.mjs → client-BNLD775D.mjs} +3 -3
- package/dist/cli/{csv-NPMWVM5D.mjs → csv-7MVQECWG.mjs} +3 -3
- package/dist/cli/{csv-OILKDKUX.js → csv-ZT6ZRQ3Z.js} +12 -12
- package/dist/cli/{db-AZUAOWPQ.mjs → db-ABLWLMX5.mjs} +4 -4
- package/dist/cli/{db-MNDRYYEX.js → db-C4BMZXJK.js} +29 -29
- package/dist/cli/{describe-KJWOHMKC.mjs → describe-XWOWAR32.mjs} +10 -10
- package/dist/cli/{describe-QENLDLM2.js → describe-YALVN4WH.js} +17 -17
- package/dist/cli/{executions-QZNQWF6F.mjs → executions-7IZVKQ3O.mjs} +4 -4
- package/dist/cli/{executions-P36UHBPG.js → executions-U4TNRP26.js} +6 -6
- package/dist/cli/{feedback-RQ6HSZSG.mjs → feedback-GO5XPEKY.mjs} +3 -3
- package/dist/cli/{feedback-K4UGTLFD.js → feedback-NWMRT5W4.js} +6 -6
- package/dist/cli/{git-PBRMCBMI.mjs → git-R53WS4WA.mjs} +4 -4
- package/dist/cli/git-YWRLAOBY.js +23 -0
- package/dist/cli/index.js +95 -80
- package/dist/cli/index.mjs +54 -39
- package/dist/cli/{legacy-noops-G7GWJ5UC.mjs → legacy-noops-6QAZW7WJ.mjs} +4 -4
- package/dist/cli/{legacy-noops-X74FM35Q.js → legacy-noops-NJWM53DE.js} +7 -7
- package/dist/cli/{monitors-VKURX3YM.js → monitors-2I2MYAPS.js} +85 -85
- package/dist/cli/{monitors-KL2MCR57.mjs → monitors-2N4BRU5M.mjs} +4 -4
- package/dist/cli/{org-DT53KTNW.mjs → org-D3RHK2Q7.mjs} +4 -4
- package/dist/cli/{org-ZYXJDC44.js → org-XVNAE2JV.js} +60 -60
- package/dist/cli/{play-WIJGQYTB.mjs → play-L7MYJZ65.mjs} +9 -9
- package/dist/cli/play-OYRHI7G3.js +153 -0
- package/dist/cli/{providers-GRTW4TXX.js → providers-5BTDAZHN.js} +7 -7
- package/dist/cli/{providers-GYGKGS2J.mjs → providers-YM4E7WZD.mjs} +4 -4
- package/dist/cli/{quickstart-WB26543C.js → quickstart-5A3FHAH3.js} +5 -5
- package/dist/cli/{quickstart-XF3M2M2S.mjs → quickstart-ARPLJOLH.mjs} +3 -3
- package/dist/cli/{search-ANJLTOF2.mjs → search-KKJEVV27.mjs} +5 -5
- package/dist/cli/search-VE3O3ZEM.js +26 -0
- package/dist/cli/{secrets-D6UR5CTW.mjs → secrets-DGRJ4DO5.mjs} +4 -4
- package/dist/cli/{secrets-5KBUGMTK.js → secrets-DVPVCSZD.js} +13 -13
- package/dist/cli/{sessions-S7N4JEWK.mjs → sessions-56EHXLZD.mjs} +4 -4
- package/dist/cli/{sessions-46PXFULL.js → sessions-VG4ATQ5Y.js} +5 -5
- package/dist/cli/{settings-V6U3SRTH.mjs → settings-4U5XG7QI.mjs} +7 -7
- package/dist/cli/{settings-KMNBITSU.js → settings-BLOTIW2G.js} +74 -74
- package/dist/cli/{setup-4K5FY6AU.js → setup-L7AMAXCH.js} +41 -41
- package/dist/cli/{setup-OGITSLTN.mjs → setup-RHJAHPOR.mjs} +6 -6
- package/dist/cli/skills-QB4OQGGP.js +28 -0
- package/dist/cli/{skills-AXWAYPBY.mjs → skills-VU55YFCI.mjs} +4 -4
- package/dist/cli/tools-2CPFYNK7.js +40 -0
- package/dist/cli/{tools-LJCY6B23.mjs → tools-JS3YIDOH.mjs} +7 -6
- package/dist/cli/{update-DDR5XIUB.mjs → update-EHI5QUXM.mjs} +6 -6
- package/dist/cli/update-WXP24GU5.js +28 -0
- package/dist/cli/{workflow-PRNCVANQ.mjs → workflow-BITLTLRF.mjs} +5 -5
- package/dist/cli/{workflow-7CTCDWL3.js → workflow-NE4SYRAT.js} +15 -15
- package/dist/{client-wiWPZhnI.d.mts → client-D5XOQKsA.d.mts} +20 -1
- package/dist/{client-DHq8dJ56.d.ts → client-l-IoLh8Z.d.ts} +20 -1
- package/dist/{compiler-manifest-9TkZ_ykI.d.mts → compiler-manifest-82q4jtfQ.d.mts} +44 -17
- package/dist/{compiler-manifest-9TkZ_ykI.d.ts → compiler-manifest-82q4jtfQ.d.ts} +44 -17
- package/dist/{index-B-5_Xhud.d.mts → index-BPbW2XHF.d.mts} +1 -1
- package/dist/{index-ykksoEyR.d.ts → index-k0rquHIm.d.ts} +1 -1
- package/dist/index.d.mts +14 -8
- package/dist/index.d.ts +14 -8
- package/dist/index.js +194 -69
- package/dist/index.mjs +162 -37
- package/dist/install-integrity.json +84 -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 +2 -1
- package/dist/cli/auth-67YOPQ6M.js +0 -31
- package/dist/cli/client-7LZCG4VD.js +0 -20
- package/dist/cli/git-RPFH3NJ2.js +0 -23
- package/dist/cli/play-BUQV47E2.js +0 -153
- package/dist/cli/search-CR2GZLCM.js +0 -26
- package/dist/cli/skills-4FP2MZKL.js +0 -28
- package/dist/cli/tools-7YZPH6WC.js +0 -39
- package/dist/cli/update-3VUOW6AP.js +0 -28
|
@@ -10,11 +10,11 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
10
10
|
var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk4FLEXYUCjs = require('./chunk-4FLEXYUC.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkOUTIWGKYjs = require('./chunk-OUTIWGKY.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
@@ -39,7 +39,7 @@ var _chunkLVEDPCLJjs = require('./chunk-LVEDPCLJ.js');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkGY2EEO2Yjs = require('./chunk-GY2EEO2Y.js');
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
@@ -71,10 +71,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunkU2N4CYT7js = require('./chunk-U2N4CYT7.js');
|
|
75
75
|
|
|
76
76
|
|
|
77
|
-
var
|
|
77
|
+
var _chunkVDIHLKGGjs = require('./chunk-VDIHLKGG.js');
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
@@ -82,7 +82,7 @@ var _chunkDM3SHV6Ujs = require('./chunk-DM3SHV6U.js');
|
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
var
|
|
85
|
+
var _chunkUQV5M6HNjs = require('./chunk-UQV5M6HN.js');
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -2066,7 +2066,7 @@ function resolveField(key, command) {
|
|
|
2066
2066
|
function printSettings(result, json, name) {
|
|
2067
2067
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2068
2068
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2069
|
-
|
|
2069
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
2070
2070
|
{
|
|
2071
2071
|
...result,
|
|
2072
2072
|
settings: Object.fromEntries(
|
|
@@ -2110,7 +2110,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2110
2110
|
valueSyntax: field.cli.valueSyntax,
|
|
2111
2111
|
examples: field.cli.examples
|
|
2112
2112
|
}));
|
|
2113
|
-
|
|
2113
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
2114
2114
|
{
|
|
2115
2115
|
fields: descriptions,
|
|
2116
2116
|
render: {
|
|
@@ -2135,7 +2135,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2135
2135
|
async (options, command) => {
|
|
2136
2136
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2137
2137
|
printSettings(
|
|
2138
|
-
await new (0,
|
|
2138
|
+
await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2139
2139
|
options.json,
|
|
2140
2140
|
options.name
|
|
2141
2141
|
);
|
|
@@ -2166,7 +2166,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2166
2166
|
);
|
|
2167
2167
|
}
|
|
2168
2168
|
if (options.dryRun) {
|
|
2169
|
-
|
|
2169
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
2170
2170
|
{
|
|
2171
2171
|
dryRun: true,
|
|
2172
2172
|
play,
|
|
@@ -2187,7 +2187,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2187
2187
|
return;
|
|
2188
2188
|
}
|
|
2189
2189
|
printSettings(
|
|
2190
|
-
await new (0,
|
|
2190
|
+
await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2191
2191
|
options.json
|
|
2192
2192
|
);
|
|
2193
2193
|
};
|
|
@@ -2213,13 +2213,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2213
2213
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2214
2214
|
{ exitCode: 2 }
|
|
2215
2215
|
);
|
|
2216
|
-
const page = await new (0,
|
|
2216
|
+
const page = await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2217
2217
|
root: options.root,
|
|
2218
2218
|
limit,
|
|
2219
2219
|
cursor: options.cursor
|
|
2220
2220
|
});
|
|
2221
2221
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""} --json` : null;
|
|
2222
|
-
|
|
2222
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
2223
2223
|
{
|
|
2224
2224
|
...page,
|
|
2225
2225
|
nextCommand,
|
|
@@ -2270,7 +2270,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2270
2270
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2271
2271
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2272
2272
|
};
|
|
2273
|
-
const client = new (0,
|
|
2273
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
2274
2274
|
const paths = [];
|
|
2275
2275
|
let cursor;
|
|
2276
2276
|
do {
|
|
@@ -2332,7 +2332,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2332
2332
|
moved.push(move.playName);
|
|
2333
2333
|
}
|
|
2334
2334
|
}
|
|
2335
|
-
|
|
2335
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
2336
2336
|
{
|
|
2337
2337
|
dryRun: Boolean(options.dryRun),
|
|
2338
2338
|
from: options.from,
|
|
@@ -2460,7 +2460,7 @@ function triggerLines(view) {
|
|
|
2460
2460
|
return lines;
|
|
2461
2461
|
}
|
|
2462
2462
|
function printView(view, json) {
|
|
2463
|
-
|
|
2463
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
2464
2464
|
{
|
|
2465
2465
|
...view,
|
|
2466
2466
|
render: {
|
|
@@ -2473,7 +2473,7 @@ function printView(view, json) {
|
|
|
2473
2473
|
);
|
|
2474
2474
|
}
|
|
2475
2475
|
function printResult(result, json) {
|
|
2476
|
-
|
|
2476
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
2477
2477
|
{
|
|
2478
2478
|
...result,
|
|
2479
2479
|
render: {
|
|
@@ -2503,7 +2503,7 @@ async function mutate(command, options, build) {
|
|
|
2503
2503
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2504
2504
|
}
|
|
2505
2505
|
if (options.dryRun) {
|
|
2506
|
-
|
|
2506
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
2507
2507
|
{
|
|
2508
2508
|
dryRun: true,
|
|
2509
2509
|
play: options.play,
|
|
@@ -2522,7 +2522,7 @@ async function mutate(command, options, build) {
|
|
|
2522
2522
|
return;
|
|
2523
2523
|
}
|
|
2524
2524
|
printResult(
|
|
2525
|
-
await new (0,
|
|
2525
|
+
await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2526
2526
|
options.json
|
|
2527
2527
|
);
|
|
2528
2528
|
}
|
|
@@ -2555,7 +2555,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2555
2555
|
}).addHelpText("after", help2);
|
|
2556
2556
|
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) => {
|
|
2557
2557
|
printView(
|
|
2558
|
-
await new (0,
|
|
2558
|
+
await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2559
2559
|
options.json
|
|
2560
2560
|
);
|
|
2561
2561
|
});
|
|
@@ -2599,7 +2599,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2599
2599
|
if (options.auth === void 0) {
|
|
2600
2600
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2601
2601
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2602
|
-
const current = await new (0,
|
|
2602
|
+
const current = await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2603
2603
|
options.play
|
|
2604
2604
|
);
|
|
2605
2605
|
return {
|
|
@@ -2676,7 +2676,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2676
2676
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2677
2677
|
"runtime.event": "Other event."
|
|
2678
2678
|
};
|
|
2679
|
-
var RUN_LOGS_KIND_HELP =
|
|
2679
|
+
var RUN_LOGS_KIND_HELP = _chunkGY2EEO2Yjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2680
2680
|
kind,
|
|
2681
2681
|
description: KIND_DESCRIPTIONS[kind]
|
|
2682
2682
|
}));
|
|
@@ -2813,9 +2813,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2813
2813
|
const args = program.args;
|
|
2814
2814
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2815
2815
|
error.exitCode = 2;
|
|
2816
|
-
if (
|
|
2817
|
-
|
|
2818
|
-
Object.assign(new (0,
|
|
2816
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2817
|
+
_chunkU2N4CYT7js.printJsonError.call(void 0,
|
|
2818
|
+
Object.assign(new (0, _chunkGY2EEO2Yjs.RunEventQueryInputError)(error.message), {
|
|
2819
2819
|
exitCode: 2,
|
|
2820
2820
|
retryable: false
|
|
2821
2821
|
})
|
|
@@ -2859,14 +2859,14 @@ function parseQuery(args, resource) {
|
|
|
2859
2859
|
if (VALUE_FLAGS.has(flag)) {
|
|
2860
2860
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2861
2861
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2862
|
-
throw new (0,
|
|
2862
|
+
throw new (0, _chunkGY2EEO2Yjs.RunEventQueryInputError)(
|
|
2863
2863
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2864
2864
|
);
|
|
2865
2865
|
}
|
|
2866
2866
|
if (flag === "--sum") sums.push(value);
|
|
2867
2867
|
else {
|
|
2868
2868
|
if (values[flag] !== void 0) {
|
|
2869
|
-
throw new (0,
|
|
2869
|
+
throw new (0, _chunkGY2EEO2Yjs.RunEventQueryInputError)(
|
|
2870
2870
|
`${flag} may only be supplied once.`
|
|
2871
2871
|
);
|
|
2872
2872
|
}
|
|
@@ -2880,12 +2880,12 @@ function parseQuery(args, resource) {
|
|
|
2880
2880
|
}
|
|
2881
2881
|
if (arg.startsWith("-")) {
|
|
2882
2882
|
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.";
|
|
2883
|
-
throw new (0,
|
|
2883
|
+
throw new (0, _chunkGY2EEO2Yjs.RunEventQueryInputError)(
|
|
2884
2884
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2885
2885
|
);
|
|
2886
2886
|
}
|
|
2887
2887
|
if (runId !== void 0) {
|
|
2888
|
-
throw new (0,
|
|
2888
|
+
throw new (0, _chunkGY2EEO2Yjs.RunEventQueryInputError)(
|
|
2889
2889
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2890
2890
|
);
|
|
2891
2891
|
}
|
|
@@ -2893,7 +2893,7 @@ function parseQuery(args, resource) {
|
|
|
2893
2893
|
}
|
|
2894
2894
|
if (switches.has("--fields")) {
|
|
2895
2895
|
if (runId !== void 0) {
|
|
2896
|
-
throw new (0,
|
|
2896
|
+
throw new (0, _chunkGY2EEO2Yjs.RunEventQueryInputError)(
|
|
2897
2897
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2898
2898
|
);
|
|
2899
2899
|
}
|
|
@@ -2906,18 +2906,18 @@ function parseQuery(args, resource) {
|
|
|
2906
2906
|
)
|
|
2907
2907
|
];
|
|
2908
2908
|
if (incompatible.length) {
|
|
2909
|
-
throw new (0,
|
|
2909
|
+
throw new (0, _chunkGY2EEO2Yjs.RunEventQueryInputError)(
|
|
2910
2910
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2911
2911
|
);
|
|
2912
2912
|
}
|
|
2913
2913
|
}
|
|
2914
2914
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2915
|
-
throw new (0,
|
|
2915
|
+
throw new (0, _chunkGY2EEO2Yjs.RunEventQueryInputError)(
|
|
2916
2916
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2917
2917
|
);
|
|
2918
2918
|
}
|
|
2919
2919
|
if (sums.length && switches.has("--count")) {
|
|
2920
|
-
throw new (0,
|
|
2920
|
+
throw new (0, _chunkGY2EEO2Yjs.RunEventQueryInputError)(
|
|
2921
2921
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2922
2922
|
);
|
|
2923
2923
|
}
|
|
@@ -2925,7 +2925,7 @@ function parseQuery(args, resource) {
|
|
|
2925
2925
|
if (operation === "count") {
|
|
2926
2926
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2927
2927
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2928
|
-
throw new (0,
|
|
2928
|
+
throw new (0, _chunkGY2EEO2Yjs.RunEventQueryInputError)(
|
|
2929
2929
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2930
2930
|
);
|
|
2931
2931
|
}
|
|
@@ -2960,16 +2960,16 @@ function parseQuery(args, resource) {
|
|
|
2960
2960
|
];
|
|
2961
2961
|
}
|
|
2962
2962
|
}
|
|
2963
|
-
const request =
|
|
2963
|
+
const request = _chunkGY2EEO2Yjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2964
2964
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2965
2965
|
const backend = values["--runtime-backend"];
|
|
2966
2966
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2967
|
-
throw new (0,
|
|
2967
|
+
throw new (0, _chunkGY2EEO2Yjs.RunEventQueryInputError)(
|
|
2968
2968
|
"--runtime-backend must be daytona or modal."
|
|
2969
2969
|
);
|
|
2970
2970
|
}
|
|
2971
2971
|
if (backend && !namespace) {
|
|
2972
|
-
throw new (0,
|
|
2972
|
+
throw new (0, _chunkGY2EEO2Yjs.RunEventQueryInputError)(
|
|
2973
2973
|
"--runtime-backend requires --runtime-namespace."
|
|
2974
2974
|
);
|
|
2975
2975
|
}
|
|
@@ -3017,12 +3017,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3017
3017
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3018
3018
|
const record3 = failure;
|
|
3019
3019
|
const status = record3.statusCode;
|
|
3020
|
-
const exitCode = error instanceof
|
|
3020
|
+
const exitCode = error instanceof _chunkGY2EEO2Yjs.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;
|
|
3021
3021
|
const diagnostic = Object.assign(failure, {
|
|
3022
3022
|
exitCode,
|
|
3023
3023
|
retryable: exitCode === 5
|
|
3024
3024
|
});
|
|
3025
|
-
if (
|
|
3025
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) _chunkU2N4CYT7js.printJsonError.call(void 0, diagnostic);
|
|
3026
3026
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3027
3027
|
return exitCode;
|
|
3028
3028
|
}
|
|
@@ -3037,7 +3037,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3037
3037
|
...criteria
|
|
3038
3038
|
} = request;
|
|
3039
3039
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3040
|
-
const client = new (0,
|
|
3040
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
3041
3041
|
let result;
|
|
3042
3042
|
if (request.operation === "fields") {
|
|
3043
3043
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3103,13 +3103,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3103
3103
|
lines.push(`Next page: ${nextPage}`);
|
|
3104
3104
|
}
|
|
3105
3105
|
}
|
|
3106
|
-
|
|
3106
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
3107
3107
|
{
|
|
3108
3108
|
...result,
|
|
3109
3109
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3110
3110
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3111
3111
|
},
|
|
3112
|
-
{ json:
|
|
3112
|
+
{ json: _chunkU2N4CYT7js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3113
3113
|
` }
|
|
3114
3114
|
);
|
|
3115
3115
|
return 0;
|
|
@@ -3929,7 +3929,7 @@ function checkedRunExample(plays, target) {
|
|
|
3929
3929
|
const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
|
|
3930
3930
|
const base = `deepline plays run --file ${quote(target)}`;
|
|
3931
3931
|
return {
|
|
3932
|
-
command: `${base}${
|
|
3932
|
+
command: `${base}${_chunkGY2EEO2Yjs.playInputExampleArgs.call(void 0, schema)} --json`,
|
|
3933
3933
|
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."
|
|
3934
3934
|
};
|
|
3935
3935
|
}
|
|
@@ -5180,10 +5180,13 @@ function generateProviderSourceBlock(input) {
|
|
|
5180
5180
|
input: ${inputName},
|
|
5181
5181
|
description: ${jsString(`Seed ${input.entity} rows from ${input.provider}.`)},
|
|
5182
5182
|
});
|
|
5183
|
-
// extractedLists.${getter}.get() returns
|
|
5183
|
+
// extractedLists.${getter}.get() returns provider-shaped rows. Do not assume canonical fields;
|
|
5184
5184
|
// inspect source_${input.index}.extractedLists.${getter}.keys or the provider output schema, then map explicitly below.
|
|
5185
|
-
const
|
|
5186
|
-
|
|
5185
|
+
const sourceList_${input.index} = ${accessorExpression(`source_${input.index}.extractedLists`, getter)}.get();
|
|
5186
|
+
// Legacy admitted Plays use a dataset getter; the new contract returns an ordinary array.
|
|
5187
|
+
const sourceRows_${input.index} = (Array.isArray(sourceList_${input.index})
|
|
5188
|
+
? sourceList_${input.index}.slice(0, limit)
|
|
5189
|
+
: await sourceList_${input.index}.peek(limit)) as ${input.collectionType}[];`;
|
|
5187
5190
|
}
|
|
5188
5191
|
function generateProviderSourceRowsBlock(input) {
|
|
5189
5192
|
const blocks = input.source.values.map(
|
|
@@ -5549,7 +5552,7 @@ async function runPlayBootstrap(args) {
|
|
|
5549
5552
|
return runMonitorBootstrap(args);
|
|
5550
5553
|
}
|
|
5551
5554
|
const options = parsePlayBootstrapOptions(args);
|
|
5552
|
-
const client = new (0,
|
|
5555
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
5553
5556
|
const contracts = await loadBootstrapContracts(client, options);
|
|
5554
5557
|
const csvContext = loadCsvContext(options.from);
|
|
5555
5558
|
const source = generateBootstrapPlaySource({
|
|
@@ -5704,7 +5707,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5704
5707
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
5705
5708
|
);
|
|
5706
5709
|
}
|
|
5707
|
-
const response = await new (0,
|
|
5710
|
+
const response = await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
5708
5711
|
keys
|
|
5709
5712
|
});
|
|
5710
5713
|
const failed = response.receipts.filter(
|
|
@@ -5716,7 +5719,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5716
5719
|
JSON.stringify(response, null, 2) + "\n",
|
|
5717
5720
|
{ flag: "wx", mode: 384 }
|
|
5718
5721
|
);
|
|
5719
|
-
|
|
5722
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
5720
5723
|
{
|
|
5721
5724
|
runId,
|
|
5722
5725
|
out: options.out,
|
|
@@ -5726,7 +5729,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
5726
5729
|
{ json: true }
|
|
5727
5730
|
);
|
|
5728
5731
|
} else {
|
|
5729
|
-
|
|
5732
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
5730
5733
|
}
|
|
5731
5734
|
if (failed)
|
|
5732
5735
|
process.exitCode = response.receipts.some(
|
|
@@ -5765,7 +5768,7 @@ includes nextCommand when another page is available.
|
|
|
5765
5768
|
{ exitCode: 2 }
|
|
5766
5769
|
);
|
|
5767
5770
|
}
|
|
5768
|
-
const page = await new (0,
|
|
5771
|
+
const page = await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().runs.children(parentRunId, {
|
|
5769
5772
|
launchKey: options.launchKey,
|
|
5770
5773
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
5771
5774
|
limit
|
|
@@ -5781,7 +5784,7 @@ includes nextCommand when another page is available.
|
|
|
5781
5784
|
String(limit),
|
|
5782
5785
|
"--json"
|
|
5783
5786
|
].join(" ") : null;
|
|
5784
|
-
|
|
5787
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
5785
5788
|
{
|
|
5786
5789
|
parentRunId,
|
|
5787
5790
|
launchKey: options.launchKey,
|
|
@@ -5817,7 +5820,7 @@ async function handleRunsHistory(options) {
|
|
|
5817
5820
|
throw new Error("--limit must be a positive integer.");
|
|
5818
5821
|
}
|
|
5819
5822
|
}
|
|
5820
|
-
const page = await new (0,
|
|
5823
|
+
const page = await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().runs.history({
|
|
5821
5824
|
cursor: options.cursor,
|
|
5822
5825
|
orgId: options.org,
|
|
5823
5826
|
search: options.search,
|
|
@@ -5833,7 +5836,7 @@ async function handleRunsHistory(options) {
|
|
|
5833
5836
|
);
|
|
5834
5837
|
}
|
|
5835
5838
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
5836
|
-
|
|
5839
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
5837
5840
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
5838
5841
|
options.json ? { json: true } : {}
|
|
5839
5842
|
);
|
|
@@ -6109,7 +6112,7 @@ function projectRunDatasetCell(value) {
|
|
|
6109
6112
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
6110
6113
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
6111
6114
|
if (typeof logicalValue === "object") {
|
|
6112
|
-
return
|
|
6115
|
+
return _chunkU2N4CYT7js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
6113
6116
|
}
|
|
6114
6117
|
return logicalValue;
|
|
6115
6118
|
}
|
|
@@ -7633,10 +7636,10 @@ function resolveOwnedPlayReferenceName(reference, ownerSlug) {
|
|
|
7633
7636
|
// ../plays/deploy/run-deployment.ts
|
|
7634
7637
|
var RUN_PLAY_METHOD_NAMES = /* @__PURE__ */ new Set(["runPlay", "runPlayAsync"]);
|
|
7635
7638
|
function isRunPlayReceiver(node) {
|
|
7636
|
-
return
|
|
7639
|
+
return _chunkUQV5M6HNjs.isAstNode.call(void 0, node) && node.type === "Identifier" && typeof node.name === "string" && (node.name === "ctx" || node.name.endsWith("Ctx"));
|
|
7637
7640
|
}
|
|
7638
7641
|
function stringLiteralValue(node) {
|
|
7639
|
-
if (!
|
|
7642
|
+
if (!_chunkUQV5M6HNjs.isAstNode.call(void 0, node)) return null;
|
|
7640
7643
|
if (node.type === "Literal" && typeof node.value === "string") {
|
|
7641
7644
|
return node.value;
|
|
7642
7645
|
}
|
|
@@ -7647,12 +7650,12 @@ function stringLiteralValue(node) {
|
|
|
7647
7650
|
return null;
|
|
7648
7651
|
}
|
|
7649
7652
|
async function extractRunPlayStringTargets(sourceCode) {
|
|
7650
|
-
const program =
|
|
7653
|
+
const program = _chunkUQV5M6HNjs.parsePlaySourceForAnalysis.call(void 0, sourceCode);
|
|
7651
7654
|
if (!program) return await _asyncNullishCoalesce(await extractWithCompiler(sourceCode), async () => ( []));
|
|
7652
7655
|
const targets = /* @__PURE__ */ new Set();
|
|
7653
7656
|
const visit = (node) => {
|
|
7654
7657
|
const callee = node.callee;
|
|
7655
|
-
if (node.type === "CallExpression" &&
|
|
7658
|
+
if (node.type === "CallExpression" && _chunkUQV5M6HNjs.isAstNode.call(void 0, callee) && callee.type === "MemberExpression" && callee.computed !== true && _chunkUQV5M6HNjs.isAstNode.call(void 0, callee.property) && RUN_PLAY_METHOD_NAMES.has(String(callee.property.name)) && isRunPlayReceiver(callee.object) && Array.isArray(node.arguments)) {
|
|
7656
7659
|
const playRef = stringLiteralValue(node.arguments[1]);
|
|
7657
7660
|
const ownedName = playRef === null ? null : resolveOwnedPlayReferenceName(playRef);
|
|
7658
7661
|
if (ownedName) targets.add(ownedName);
|
|
@@ -7660,7 +7663,7 @@ async function extractRunPlayStringTargets(sourceCode) {
|
|
|
7660
7663
|
for (const [key, value] of Object.entries(node)) {
|
|
7661
7664
|
if (key === "loc") continue;
|
|
7662
7665
|
for (const child of Array.isArray(value) ? value : [value]) {
|
|
7663
|
-
if (
|
|
7666
|
+
if (_chunkUQV5M6HNjs.isAstNode.call(void 0, child)) visit(child);
|
|
7664
7667
|
}
|
|
7665
7668
|
}
|
|
7666
7669
|
};
|
|
@@ -8526,7 +8529,7 @@ function renderOutcome(outcome) {
|
|
|
8526
8529
|
function printResult2(input) {
|
|
8527
8530
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
8528
8531
|
if (failed) process.exitCode = 1;
|
|
8529
|
-
|
|
8532
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
8530
8533
|
{
|
|
8531
8534
|
deployment: { ...input.deployment, status: input.status },
|
|
8532
8535
|
plays: input.outcomes,
|
|
@@ -8551,7 +8554,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
8551
8554
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
8552
8555
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
8553
8556
|
});
|
|
8554
|
-
const { http, config } =
|
|
8557
|
+
const { http, config } = _chunkU2N4CYT7js.getAuthedHttpClient.call(void 0, );
|
|
8555
8558
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
8556
8559
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
8557
8560
|
deliveryId,
|
|
@@ -8578,7 +8581,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
8578
8581
|
},
|
|
8579
8582
|
{
|
|
8580
8583
|
bundle: bundleDeployPlayFile,
|
|
8581
|
-
fetchImpl:
|
|
8584
|
+
fetchImpl: _chunkVDIHLKGGjs.fetchWithDeploymentProtection,
|
|
8582
8585
|
// The plays are already here: "opening" the source is naming it.
|
|
8583
8586
|
openSource: async () => ({
|
|
8584
8587
|
open: async () => ({ repoRoot: root })
|
|
@@ -9146,7 +9149,7 @@ function parseInputFlagValue(raw) {
|
|
|
9146
9149
|
return raw;
|
|
9147
9150
|
}
|
|
9148
9151
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
9149
|
-
const selection =
|
|
9152
|
+
const selection = _chunkU2N4CYT7js.parseJsonFields.call(void 0, args, "run");
|
|
9150
9153
|
args = selection.args;
|
|
9151
9154
|
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.";
|
|
9152
9155
|
let filePath = null;
|
|
@@ -9156,7 +9159,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
9156
9159
|
let revisionSelector = null;
|
|
9157
9160
|
const watch = !args.includes("--no-wait");
|
|
9158
9161
|
const dryRun = args.includes("--dry-run");
|
|
9159
|
-
let jsonOutput = dryRun ?
|
|
9162
|
+
let jsonOutput = dryRun ? _chunkU2N4CYT7js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkU2N4CYT7js.argsWantJson.call(void 0, args);
|
|
9160
9163
|
const fullJson = args.includes("--full");
|
|
9161
9164
|
const force = args.includes("--force");
|
|
9162
9165
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -9203,7 +9206,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
9203
9206
|
"--log-level requires one of: debug, info, warn, error."
|
|
9204
9207
|
);
|
|
9205
9208
|
}
|
|
9206
|
-
const parsed =
|
|
9209
|
+
const parsed = _chunkGY2EEO2Yjs.parseLogLevel.call(void 0, value);
|
|
9207
9210
|
if (!parsed) {
|
|
9208
9211
|
throw new Error(
|
|
9209
9212
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -9240,7 +9243,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
9240
9243
|
throw new Error("--profile requires an execution profile id.");
|
|
9241
9244
|
}
|
|
9242
9245
|
profile = value.trim();
|
|
9243
|
-
|
|
9246
|
+
_chunkUQV5M6HNjs.resolveEnabledExecutionProfile.call(void 0, profile);
|
|
9244
9247
|
index += 1;
|
|
9245
9248
|
continue;
|
|
9246
9249
|
}
|
|
@@ -9478,7 +9481,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
9478
9481
|
if (dryRun && resolvedTarget.kind !== "file")
|
|
9479
9482
|
throw new Error("--dry-run currently requires a local Play file.");
|
|
9480
9483
|
const profile = _nullishCoalesce(_optionalChain([stringOption, 'call', _274 => _274(options.profile, "--profile"), 'optionalAccess', _275 => _275.trim, 'call', _276 => _276()]), () => ( base.profile));
|
|
9481
|
-
if (profile !== null)
|
|
9484
|
+
if (profile !== null) _chunkUQV5M6HNjs.resolveEnabledExecutionProfile.call(void 0, profile);
|
|
9482
9485
|
const countOption = (value, flag) => {
|
|
9483
9486
|
if (value === void 0) return void 0;
|
|
9484
9487
|
if (!/^[1-9]\d*$/.test(value))
|
|
@@ -9510,7 +9513,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
9510
9513
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
9511
9514
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
9512
9515
|
);
|
|
9513
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
9516
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkGY2EEO2Yjs.parseLogLevel.call(void 0, options.logLevel);
|
|
9514
9517
|
if (!logLevel)
|
|
9515
9518
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
9516
9519
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -9524,13 +9527,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
9524
9527
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
9525
9528
|
logLevel = "debug";
|
|
9526
9529
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
9527
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
9528
|
-
[...fullJson ? ["--full"] : [], ...
|
|
9530
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkU2N4CYT7js.parseJsonFields.call(void 0,
|
|
9531
|
+
[...fullJson ? ["--full"] : [], ..._chunkU2N4CYT7js.jsonFieldArgs.call(void 0, options.json)],
|
|
9529
9532
|
"run"
|
|
9530
9533
|
).fields;
|
|
9531
9534
|
const watch = options.wait === false ? false : base.watch;
|
|
9532
9535
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
9533
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
9536
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkU2N4CYT7js.argsWantJson.call(void 0, []) : explicitJson;
|
|
9534
9537
|
const verboseLogs = Boolean(
|
|
9535
9538
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
9536
9539
|
);
|
|
@@ -9574,7 +9577,7 @@ function playAuthoringGraphPath(parent, filePath) {
|
|
|
9574
9577
|
// src/cli/renderers/local-play-execution.ts
|
|
9575
9578
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
9576
9579
|
if (options.dryRun) {
|
|
9577
|
-
|
|
9580
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
9578
9581
|
return;
|
|
9579
9582
|
}
|
|
9580
9583
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -10113,7 +10116,7 @@ function buildMissingDefinePlayError(filePath) {
|
|
|
10113
10116
|
);
|
|
10114
10117
|
}
|
|
10115
10118
|
function extractPlayName(code, filePath) {
|
|
10116
|
-
const definedPlayName =
|
|
10119
|
+
const definedPlayName = _chunkUQV5M6HNjs.extractDefinedPlayName.call(void 0, code);
|
|
10117
10120
|
if (definedPlayName) {
|
|
10118
10121
|
return definedPlayName;
|
|
10119
10122
|
}
|
|
@@ -10339,11 +10342,11 @@ function formatUnresolvedPackagedFiles(filePath, unresolvedFileReferences) {
|
|
|
10339
10342
|
const details = unresolvedFileReferences.map((unresolved) => `${unresolved.sourceFragment}: ${unresolved.message}`).join("; ");
|
|
10340
10343
|
return `Failed to package local ctx.csv(...) files in ${filePath}: ${details}`;
|
|
10341
10344
|
}
|
|
10342
|
-
async function collectBundledPlayGraph(entryFile, profile = null, entryExportName =
|
|
10345
|
+
async function collectBundledPlayGraph(entryFile, profile = null, entryExportName = _chunkUQV5M6HNjs.PLAY_DEFAULT_EXPORT, options = {}) {
|
|
10343
10346
|
const playBundler = await loadPlayBundler();
|
|
10344
10347
|
const nodes = /* @__PURE__ */ new Map();
|
|
10345
10348
|
const visiting = /* @__PURE__ */ new Set();
|
|
10346
|
-
const artifactKind =
|
|
10349
|
+
const artifactKind = _chunkUQV5M6HNjs.resolveEnabledExecutionProfile.call(void 0, profile).artifactKind;
|
|
10347
10350
|
const rootPath = normalizePlayPath(entryFile);
|
|
10348
10351
|
const visit = async (filePath) => {
|
|
10349
10352
|
const absolutePath = normalizePlayPath(filePath);
|
|
@@ -10361,7 +10364,7 @@ async function collectBundledPlayGraph(entryFile, profile = null, entryExportNam
|
|
|
10361
10364
|
const bundleResult = await playBundler.bundlePlayFile(absolutePath, {
|
|
10362
10365
|
target: artifactKind,
|
|
10363
10366
|
...options.cache === false ? { cache: false } : {},
|
|
10364
|
-
...absolutePath === rootPath && entryExportName !==
|
|
10367
|
+
...absolutePath === rootPath && entryExportName !== _chunkUQV5M6HNjs.PLAY_DEFAULT_EXPORT ? { exportName: entryExportName } : {}
|
|
10365
10368
|
});
|
|
10366
10369
|
if (bundleResult.success === false) {
|
|
10367
10370
|
throw new Error(
|
|
@@ -10540,7 +10543,7 @@ function playStatusErrorText(status) {
|
|
|
10540
10543
|
function isRetryablePendingStartFailure(status) {
|
|
10541
10544
|
if (status.status !== "failed") return false;
|
|
10542
10545
|
if (status.runId && status.runId !== "pending") return false;
|
|
10543
|
-
return
|
|
10546
|
+
return _chunkGY2EEO2Yjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
10544
10547
|
}
|
|
10545
10548
|
function pendingStartFailureStatus(input) {
|
|
10546
10549
|
const message = input.error instanceof Error ? input.error.message : String(input.error);
|
|
@@ -10567,13 +10570,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
|
10567
10570
|
var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
10568
10571
|
function watchSurfaceReaches(state, provenance, level) {
|
|
10569
10572
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
10570
|
-
if (!
|
|
10573
|
+
if (!_chunkGY2EEO2Yjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
10571
10574
|
return false;
|
|
10572
10575
|
}
|
|
10573
|
-
if (
|
|
10576
|
+
if (_chunkGY2EEO2Yjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
10574
10577
|
return true;
|
|
10575
10578
|
}
|
|
10576
|
-
return state.verbose === true &&
|
|
10579
|
+
return state.verbose === true && _chunkGY2EEO2Yjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
10577
10580
|
}
|
|
10578
10581
|
function getEventPayload(event) {
|
|
10579
10582
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -11075,7 +11078,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
|
|
|
11075
11078
|
}
|
|
11076
11079
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
11077
11080
|
if (open2 && dashboardUrl) {
|
|
11078
|
-
|
|
11081
|
+
_chunkU2N4CYT7js.openInBrowser.call(void 0, dashboardUrl);
|
|
11079
11082
|
}
|
|
11080
11083
|
}
|
|
11081
11084
|
function printPlayLogLines(input) {
|
|
@@ -11137,7 +11140,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
11137
11140
|
billing: false
|
|
11138
11141
|
});
|
|
11139
11142
|
} catch (error) {
|
|
11140
|
-
if (
|
|
11143
|
+
if (_chunkGY2EEO2Yjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
11141
11144
|
return null;
|
|
11142
11145
|
}
|
|
11143
11146
|
throw error;
|
|
@@ -11326,7 +11329,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11326
11329
|
billing: false
|
|
11327
11330
|
});
|
|
11328
11331
|
} catch (error) {
|
|
11329
|
-
if (
|
|
11332
|
+
if (_chunkGY2EEO2Yjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11330
11333
|
return null;
|
|
11331
11334
|
}
|
|
11332
11335
|
throw error;
|
|
@@ -11534,7 +11537,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11534
11537
|
lastPhase
|
|
11535
11538
|
});
|
|
11536
11539
|
}
|
|
11537
|
-
if (lastKnownWorkflowId &&
|
|
11540
|
+
if (lastKnownWorkflowId && _chunkGY2EEO2Yjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11538
11541
|
if (timeout) {
|
|
11539
11542
|
clearTimeout(timeout);
|
|
11540
11543
|
}
|
|
@@ -11570,7 +11573,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
11570
11573
|
onRunAdmitted: confirmAdmission
|
|
11571
11574
|
});
|
|
11572
11575
|
}
|
|
11573
|
-
if (!lastKnownWorkflowId &&
|
|
11576
|
+
if (!lastKnownWorkflowId && _chunkGY2EEO2Yjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
11574
11577
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
11575
11578
|
phase: "cli.play_start_stream_transient_failure",
|
|
11576
11579
|
ms: Date.now() - startedAt,
|
|
@@ -11669,7 +11672,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
11669
11672
|
"logs"
|
|
11670
11673
|
]);
|
|
11671
11674
|
function formatPlayLogLine(rawLine, state) {
|
|
11672
|
-
const classified =
|
|
11675
|
+
const classified = _chunkGY2EEO2Yjs.classifyLogLine.call(void 0, rawLine);
|
|
11673
11676
|
const line = classified.line;
|
|
11674
11677
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
11675
11678
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _348 => _348[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -11684,14 +11687,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11684
11687
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
11685
11688
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
11686
11689
|
if (providerWait && !state.verbose) {
|
|
11687
|
-
return
|
|
11690
|
+
return _chunkGY2EEO2Yjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
11688
11691
|
}
|
|
11689
11692
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
11690
11693
|
if (mapProgress && !state.verbose) {
|
|
11691
|
-
return
|
|
11694
|
+
return _chunkGY2EEO2Yjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
11692
11695
|
}
|
|
11693
11696
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
11694
|
-
if (!
|
|
11697
|
+
if (!_chunkGY2EEO2Yjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11695
11698
|
return null;
|
|
11696
11699
|
}
|
|
11697
11700
|
if (state.emittedRunnerStarted) {
|
|
@@ -11704,7 +11707,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11704
11707
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
11705
11708
|
);
|
|
11706
11709
|
if (mapStart) {
|
|
11707
|
-
if (!
|
|
11710
|
+
if (!_chunkGY2EEO2Yjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11708
11711
|
return null;
|
|
11709
11712
|
}
|
|
11710
11713
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -11714,7 +11717,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
11714
11717
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
11715
11718
|
);
|
|
11716
11719
|
if (mapDone) {
|
|
11717
|
-
if (!
|
|
11720
|
+
if (!_chunkGY2EEO2Yjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
11718
11721
|
return null;
|
|
11719
11722
|
}
|
|
11720
11723
|
const [, results, executed, cached] = mapDone;
|
|
@@ -13003,7 +13006,7 @@ function formatRecentRunLogLines(value) {
|
|
|
13003
13006
|
(line) => typeof line === "string"
|
|
13004
13007
|
);
|
|
13005
13008
|
if (tail.length === 0) return [];
|
|
13006
|
-
const shown = tail.map((line) =>
|
|
13009
|
+
const shown = tail.map((line) => _chunkGY2EEO2Yjs.classifyLogLine.call(void 0, line)).filter(
|
|
13007
13010
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
13008
13011
|
).slice(-8);
|
|
13009
13012
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -13282,7 +13285,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13282
13285
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _429 => _429.hits]), () => ( null));
|
|
13283
13286
|
if (jsonOutput) {
|
|
13284
13287
|
const payload2 = _optionalChain([options, 'optionalAccess', _430 => _430.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
13285
|
-
|
|
13288
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
13286
13289
|
hits ? { ...payload2, hits } : payload2,
|
|
13287
13290
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _431 => _431.jsonFields]) }
|
|
13288
13291
|
);
|
|
@@ -13298,7 +13301,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13298
13301
|
...buildPlayCompletionTextLines(status),
|
|
13299
13302
|
...formatRunHitsLines(hits)
|
|
13300
13303
|
];
|
|
13301
|
-
|
|
13304
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0, displayPackage, {
|
|
13302
13305
|
json: false,
|
|
13303
13306
|
text: `${lines2.join("\n")}
|
|
13304
13307
|
`
|
|
@@ -13349,7 +13352,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
13349
13352
|
lines.push(...buildBillingRollupTextLines(status));
|
|
13350
13353
|
const compact = compactPlayStatus(status);
|
|
13351
13354
|
const payload = _optionalChain([options, 'optionalAccess', _433 => _433.fullJson]) ? status : compact;
|
|
13352
|
-
|
|
13355
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
13353
13356
|
{
|
|
13354
13357
|
...payload,
|
|
13355
13358
|
render: {
|
|
@@ -14106,7 +14109,7 @@ function writeStartedPlayRun(input) {
|
|
|
14106
14109
|
dashboardUrl: input.dashboardUrl,
|
|
14107
14110
|
package: input.package
|
|
14108
14111
|
};
|
|
14109
|
-
|
|
14112
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
14110
14113
|
json: true,
|
|
14111
14114
|
fields: input.jsonFields
|
|
14112
14115
|
});
|
|
@@ -14128,7 +14131,7 @@ function writeStartedPlayRun(input) {
|
|
|
14128
14131
|
input.progress.writeLine(output2, process.stdout);
|
|
14129
14132
|
return;
|
|
14130
14133
|
}
|
|
14131
|
-
|
|
14134
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0, input.package, {
|
|
14132
14135
|
json: false,
|
|
14133
14136
|
text: `${output2}
|
|
14134
14137
|
`
|
|
@@ -14157,7 +14160,7 @@ function writeStartedPlayRun(input) {
|
|
|
14157
14160
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)} --json`] : []
|
|
14158
14161
|
];
|
|
14159
14162
|
if (input.jsonOutput) {
|
|
14160
|
-
|
|
14163
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
14161
14164
|
return;
|
|
14162
14165
|
}
|
|
14163
14166
|
if (input.dashboardUrl) {
|
|
@@ -14168,7 +14171,7 @@ function writeStartedPlayRun(input) {
|
|
|
14168
14171
|
input.progress.writeLine(output, process.stdout);
|
|
14169
14172
|
return;
|
|
14170
14173
|
}
|
|
14171
|
-
|
|
14174
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
14172
14175
|
{
|
|
14173
14176
|
...payload,
|
|
14174
14177
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -14178,7 +14181,7 @@ function writeStartedPlayRun(input) {
|
|
|
14178
14181
|
);
|
|
14179
14182
|
}
|
|
14180
14183
|
function parsePlayCheckOptions(args) {
|
|
14181
|
-
const selection =
|
|
14184
|
+
const selection = _chunkU2N4CYT7js.parseJsonFields.call(void 0, args, "check");
|
|
14182
14185
|
args = selection.args;
|
|
14183
14186
|
const target = args[0];
|
|
14184
14187
|
if (!target || target.startsWith("-")) {
|
|
@@ -14190,7 +14193,7 @@ function parsePlayCheckOptions(args) {
|
|
|
14190
14193
|
if (arg !== "--json" && arg !== "--full")
|
|
14191
14194
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
14192
14195
|
}
|
|
14193
|
-
const jsonOutput =
|
|
14196
|
+
const jsonOutput = _chunkU2N4CYT7js.argsWantJson.call(void 0, args);
|
|
14194
14197
|
return {
|
|
14195
14198
|
target,
|
|
14196
14199
|
jsonOutput,
|
|
@@ -14266,7 +14269,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
14266
14269
|
useLatest,
|
|
14267
14270
|
expectedArtifactHash,
|
|
14268
14271
|
dryRun,
|
|
14269
|
-
jsonOutput:
|
|
14272
|
+
jsonOutput: _chunkU2N4CYT7js.argsWantJson.call(void 0, args)
|
|
14270
14273
|
};
|
|
14271
14274
|
}
|
|
14272
14275
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -14307,7 +14310,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
14307
14310
|
target,
|
|
14308
14311
|
expectedArtifactHash,
|
|
14309
14312
|
dryRun,
|
|
14310
|
-
jsonOutput:
|
|
14313
|
+
jsonOutput: _chunkU2N4CYT7js.argsWantJson.call(void 0, args)
|
|
14311
14314
|
};
|
|
14312
14315
|
}
|
|
14313
14316
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -14518,7 +14521,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
14518
14521
|
async function handlePlayCheck(args) {
|
|
14519
14522
|
const options = parsePlayCheckOptions(args);
|
|
14520
14523
|
if (!isFileTarget2(options.target)) {
|
|
14521
|
-
const client = new (0,
|
|
14524
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
14522
14525
|
try {
|
|
14523
14526
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
14524
14527
|
command: "check"
|
|
@@ -14547,7 +14550,7 @@ async function handlePlayCheck(args) {
|
|
|
14547
14550
|
},
|
|
14548
14551
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
14549
14552
|
};
|
|
14550
|
-
|
|
14553
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0, result, {
|
|
14551
14554
|
json: options.jsonOutput,
|
|
14552
14555
|
fields: options.jsonFields,
|
|
14553
14556
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -14557,7 +14560,7 @@ async function handlePlayCheck(args) {
|
|
|
14557
14560
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
14558
14561
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
14559
14562
|
if (options.jsonOutput) {
|
|
14560
|
-
|
|
14563
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
14561
14564
|
{
|
|
14562
14565
|
kind: "play_check",
|
|
14563
14566
|
checked: "named_contract",
|
|
@@ -14590,7 +14593,7 @@ async function handlePlayCheck(args) {
|
|
|
14590
14593
|
);
|
|
14591
14594
|
}
|
|
14592
14595
|
const primary = outcomes.find(
|
|
14593
|
-
(outcome) => outcome.exportName ===
|
|
14596
|
+
(outcome) => outcome.exportName === _chunkUQV5M6HNjs.PLAY_DEFAULT_EXPORT
|
|
14594
14597
|
);
|
|
14595
14598
|
const output = buildPlayCheckOutput({
|
|
14596
14599
|
outcomes,
|
|
@@ -14599,7 +14602,7 @@ async function handlePlayCheck(args) {
|
|
|
14599
14602
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full --json`,
|
|
14600
14603
|
publishCommand: _optionalChain([primary, 'optionalAccess', _479 => _479.result, 'access', _480 => _480.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
14601
14604
|
});
|
|
14602
|
-
|
|
14605
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0, output, {
|
|
14603
14606
|
json: options.jsonOutput,
|
|
14604
14607
|
fields: options.jsonFields,
|
|
14605
14608
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -14607,8 +14610,8 @@ async function handlePlayCheck(args) {
|
|
|
14607
14610
|
return output.valid ? 0 : 1;
|
|
14608
14611
|
}
|
|
14609
14612
|
function resolvePlayCheckExportNames(sourceCode) {
|
|
14610
|
-
const exports =
|
|
14611
|
-
if (!exports || exports.length === 0) return [
|
|
14613
|
+
const exports = _chunkUQV5M6HNjs.listPlayFileExports.call(void 0, sourceCode);
|
|
14614
|
+
if (!exports || exports.length === 0) return [_chunkUQV5M6HNjs.PLAY_DEFAULT_EXPORT];
|
|
14612
14615
|
return exports.map((entry) => entry.name);
|
|
14613
14616
|
}
|
|
14614
14617
|
function artifactForProductionCompatibilityCheck(artifact) {
|
|
@@ -14661,7 +14664,7 @@ async function checkOneExportedPlay(input) {
|
|
|
14661
14664
|
result: { valid: false, errors: descriptionErrors }
|
|
14662
14665
|
};
|
|
14663
14666
|
}
|
|
14664
|
-
const client = new (0,
|
|
14667
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
14665
14668
|
const integrationMode = resolveEvalIntegrationMode();
|
|
14666
14669
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
14667
14670
|
playName: node.playName,
|
|
@@ -14674,7 +14677,7 @@ async function checkOneExportedPlay(input) {
|
|
|
14674
14677
|
sourceFiles: graph.root.sourceFiles,
|
|
14675
14678
|
description: _nullishCoalesce(graph.root.playDescription, () => ( void 0)),
|
|
14676
14679
|
artifact: artifactForProductionCompatibilityCheck(graph.root.artifact),
|
|
14677
|
-
...exportName ===
|
|
14680
|
+
...exportName === _chunkUQV5M6HNjs.PLAY_DEFAULT_EXPORT ? {} : { exportName },
|
|
14678
14681
|
...importedPlays.length > 0 ? { importedPlays } : {},
|
|
14679
14682
|
...integrationMode ? { integrationMode } : {}
|
|
14680
14683
|
});
|
|
@@ -14722,7 +14725,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
14722
14725
|
() => collectBundledPlayGraph(
|
|
14723
14726
|
absolutePlayPath,
|
|
14724
14727
|
options.profile,
|
|
14725
|
-
|
|
14728
|
+
_chunkUQV5M6HNjs.PLAY_DEFAULT_EXPORT,
|
|
14726
14729
|
{ cache: !options.dryRun }
|
|
14727
14730
|
)
|
|
14728
14731
|
);
|
|
@@ -14735,7 +14738,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
14735
14738
|
);
|
|
14736
14739
|
return 0;
|
|
14737
14740
|
}
|
|
14738
|
-
client = new (0,
|
|
14741
|
+
client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)(playRunClientOptions(options));
|
|
14739
14742
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
14740
14743
|
if (canDeferCompilerManifest) {
|
|
14741
14744
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -14930,7 +14933,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14930
14933
|
if (options.target.kind !== "name") {
|
|
14931
14934
|
throw new Error("Expected a named play run target.");
|
|
14932
14935
|
}
|
|
14933
|
-
const client = new (0,
|
|
14936
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)(playRunClientOptions(options));
|
|
14934
14937
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
14935
14938
|
const playName = options.target.name;
|
|
14936
14939
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -15327,10 +15330,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
15327
15330
|
);
|
|
15328
15331
|
return `${lines.join("\n")}
|
|
15329
15332
|
|
|
15330
|
-
${
|
|
15333
|
+
${_chunkU2N4CYT7js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
15331
15334
|
}
|
|
15332
15335
|
async function handleRunGet(args) {
|
|
15333
|
-
const selection =
|
|
15336
|
+
const selection = _chunkU2N4CYT7js.parseJsonFields.call(void 0,
|
|
15334
15337
|
args,
|
|
15335
15338
|
args.includes("--config") ? "config" : "get"
|
|
15336
15339
|
);
|
|
@@ -15343,7 +15346,7 @@ async function handleRunGet(args) {
|
|
|
15343
15346
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15344
15347
|
return 1;
|
|
15345
15348
|
}
|
|
15346
|
-
const client = new (0,
|
|
15349
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
15347
15350
|
if (args.includes("--config")) {
|
|
15348
15351
|
if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
|
|
15349
15352
|
console.error(
|
|
@@ -15357,7 +15360,7 @@ async function handleRunGet(args) {
|
|
|
15357
15360
|
"This server does not support recorded configuration reads."
|
|
15358
15361
|
);
|
|
15359
15362
|
}
|
|
15360
|
-
|
|
15363
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
15361
15364
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
15362
15365
|
{ json: true, fields: selection.fields }
|
|
15363
15366
|
);
|
|
@@ -15365,7 +15368,7 @@ async function handleRunGet(args) {
|
|
|
15365
15368
|
}
|
|
15366
15369
|
if (args.includes("--input")) {
|
|
15367
15370
|
const input = await client.getRunInput(runId);
|
|
15368
|
-
|
|
15371
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0, input, { json: true });
|
|
15369
15372
|
return 0;
|
|
15370
15373
|
}
|
|
15371
15374
|
const full = args.includes("--full");
|
|
@@ -15378,8 +15381,8 @@ async function handleRunGet(args) {
|
|
|
15378
15381
|
full: true,
|
|
15379
15382
|
failedLogs: args.includes("--log-failed")
|
|
15380
15383
|
}) : status;
|
|
15381
|
-
if (
|
|
15382
|
-
|
|
15384
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
15385
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
15383
15386
|
full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
15384
15387
|
{ json: true, fields: selection.fields }
|
|
15385
15388
|
);
|
|
@@ -15395,8 +15398,8 @@ async function handleRunGet(args) {
|
|
|
15395
15398
|
readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
|
|
15396
15399
|
]);
|
|
15397
15400
|
const hitLines = formatRunHitsLines(hits);
|
|
15398
|
-
const json =
|
|
15399
|
-
|
|
15401
|
+
const json = _chunkU2N4CYT7js.argsWantJson.call(void 0, args);
|
|
15402
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
15400
15403
|
{
|
|
15401
15404
|
...overview,
|
|
15402
15405
|
credits,
|
|
@@ -15499,9 +15502,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
15499
15502
|
console.error(error instanceof Error ? error.message : usage2);
|
|
15500
15503
|
return 1;
|
|
15501
15504
|
}
|
|
15502
|
-
const status = await new (0,
|
|
15503
|
-
if (
|
|
15504
|
-
|
|
15505
|
+
const status = await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().runs.status(runId);
|
|
15506
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
15507
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0, status, { json: true });
|
|
15505
15508
|
return 0;
|
|
15506
15509
|
}
|
|
15507
15510
|
if (!status.available) {
|
|
@@ -15575,12 +15578,12 @@ async function handleRunsRerun(args) {
|
|
|
15575
15578
|
index += 1;
|
|
15576
15579
|
}
|
|
15577
15580
|
}
|
|
15578
|
-
const result = await new (0,
|
|
15581
|
+
const result = await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().runs.rerun(runId, {
|
|
15579
15582
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
15580
15583
|
...inputOverrides ? { inputOverrides } : {}
|
|
15581
15584
|
});
|
|
15582
|
-
if (
|
|
15583
|
-
|
|
15585
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
15586
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0, result, { json: true });
|
|
15584
15587
|
} else {
|
|
15585
15588
|
console.log(
|
|
15586
15589
|
result.deduplicated === true ? `
|
|
@@ -15650,8 +15653,8 @@ ${usage2}
|
|
|
15650
15653
|
Discover Plays: ${next.discover}
|
|
15651
15654
|
Active runs: ${next.running}`
|
|
15652
15655
|
);
|
|
15653
|
-
if (
|
|
15654
|
-
|
|
15656
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
15657
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
15655
15658
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
15656
15659
|
{ json: true }
|
|
15657
15660
|
);
|
|
@@ -15666,7 +15669,7 @@ Active runs: ${next.running}`
|
|
|
15666
15669
|
console.error("--offset requires --play.");
|
|
15667
15670
|
return 1;
|
|
15668
15671
|
}
|
|
15669
|
-
const client = new (0,
|
|
15672
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
15670
15673
|
const page = await client.runs.listPage({
|
|
15671
15674
|
...playName ? { play: playName } : {},
|
|
15672
15675
|
...statusFilter ? { status: statusFilter } : {},
|
|
@@ -15675,13 +15678,14 @@ Active runs: ${next.running}`
|
|
|
15675
15678
|
...offset !== void 0 ? { offset } : {}
|
|
15676
15679
|
});
|
|
15677
15680
|
const runs = page.runs.map((run) => ({
|
|
15681
|
+
id: run.workflowId,
|
|
15678
15682
|
runId: run.workflowId,
|
|
15679
15683
|
// `workflowId` is the legacy SDK name for the same public Deepline run
|
|
15680
15684
|
// identity. Keep it during the compatibility window, but never label the
|
|
15681
15685
|
// duplicate as a Temporal/runtime id.
|
|
15682
15686
|
workflowId: run.workflowId,
|
|
15683
15687
|
// Retain the runtime identifier for existing JSON consumers. It is not a
|
|
15684
|
-
// stable Deepline run id; `
|
|
15688
|
+
// stable Deepline run id; `id` above is the canonical public id.
|
|
15685
15689
|
temporalRunId: _nullishCoalesce(run.runId, () => ( null)),
|
|
15686
15690
|
parentRunId: _nullishCoalesce(run.parentRunId, () => ( null)),
|
|
15687
15691
|
rootRunId: _nullishCoalesce(run.rootRunId, () => ( null)),
|
|
@@ -15702,12 +15706,12 @@ Active runs: ${next.running}`
|
|
|
15702
15706
|
playName ? `No runs found for ${playName}.` : `No runs found for status ${statusFilter}.`
|
|
15703
15707
|
] : runs.map((run) => {
|
|
15704
15708
|
const lines2 = [
|
|
15705
|
-
`${run.
|
|
15709
|
+
`${run.id} ${run.status}`,
|
|
15706
15710
|
` created: ${formatTimestamp(run.createdAt)}`,
|
|
15707
15711
|
` started: ${formatTimestamp(run.startedAt)}`,
|
|
15708
15712
|
` finished: ${formatTimestamp(run.finishedAt)}`,
|
|
15709
15713
|
` credits: ${typeof run.billingTotalCredits === "number" && Number.isFinite(run.billingTotalCredits) ? formatCreditAmount2(run.billingTotalCredits) : "\u2014"}`,
|
|
15710
|
-
` inspect: deepline runs get ${run.
|
|
15714
|
+
` inspect: deepline runs get ${run.id} --json`
|
|
15711
15715
|
];
|
|
15712
15716
|
if (run.parentRunId) lines2.push(` parent: ${run.parentRunId}`);
|
|
15713
15717
|
if (run.rootRunId) lines2.push(` root: ${run.rootRunId}`);
|
|
@@ -15734,7 +15738,7 @@ Active runs: ${next.running}`
|
|
|
15734
15738
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
15735
15739
|
);
|
|
15736
15740
|
}
|
|
15737
|
-
|
|
15741
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
15738
15742
|
{
|
|
15739
15743
|
runs,
|
|
15740
15744
|
count: runs.length,
|
|
@@ -15744,11 +15748,11 @@ Active runs: ${next.running}`
|
|
|
15744
15748
|
...page.hasMore !== void 0 ? { has_more: page.hasMore, is_truncated: page.hasMore } : {},
|
|
15745
15749
|
next: {
|
|
15746
15750
|
page: nextPage,
|
|
15747
|
-
get: _optionalChain([runs, 'access', _518 => _518[0], 'optionalAccess', _519 => _519.
|
|
15751
|
+
get: _optionalChain([runs, 'access', _518 => _518[0], 'optionalAccess', _519 => _519.id]) ? `deepline runs get ${runs[0].id} --json` : null
|
|
15748
15752
|
},
|
|
15749
15753
|
render: { sections: [{ title: "runs", lines }] }
|
|
15750
15754
|
},
|
|
15751
|
-
{ json:
|
|
15755
|
+
{ json: _chunkU2N4CYT7js.argsWantJson.call(void 0, args) }
|
|
15752
15756
|
);
|
|
15753
15757
|
return 0;
|
|
15754
15758
|
}
|
|
@@ -15778,7 +15782,7 @@ async function handleRunTail(args) {
|
|
|
15778
15782
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15779
15783
|
return 1;
|
|
15780
15784
|
}
|
|
15781
|
-
const parsed =
|
|
15785
|
+
const parsed = _chunkGY2EEO2Yjs.parseLogLevel.call(void 0, value);
|
|
15782
15786
|
if (!parsed) {
|
|
15783
15787
|
console.error(
|
|
15784
15788
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15816,9 +15820,9 @@ async function handleRunTail(args) {
|
|
|
15816
15820
|
);
|
|
15817
15821
|
return 1;
|
|
15818
15822
|
}
|
|
15819
|
-
const client = new (0,
|
|
15823
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
15820
15824
|
const jsonLines = args.includes("--jsonl");
|
|
15821
|
-
const jsonOutput = !jsonLines &&
|
|
15825
|
+
const jsonOutput = !jsonLines && _chunkU2N4CYT7js.argsWantJson.call(void 0, args);
|
|
15822
15826
|
const compact = args.includes("--compact");
|
|
15823
15827
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
15824
15828
|
const compactState = {
|
|
@@ -15899,7 +15903,7 @@ async function handleRunLogs(args) {
|
|
|
15899
15903
|
]);
|
|
15900
15904
|
const cursorIndex = args.indexOf("--cursor");
|
|
15901
15905
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15902
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
15906
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkGY2EEO2Yjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
15903
15907
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
15904
15908
|
return handleRunEventSearch(args);
|
|
15905
15909
|
}
|
|
@@ -15933,7 +15937,7 @@ async function handleRunLogs(args) {
|
|
|
15933
15937
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15934
15938
|
return 1;
|
|
15935
15939
|
}
|
|
15936
|
-
const parsed =
|
|
15940
|
+
const parsed = _chunkGY2EEO2Yjs.parseLogLevel.call(void 0, value);
|
|
15937
15941
|
if (!parsed) {
|
|
15938
15942
|
console.error(
|
|
15939
15943
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15980,12 +15984,12 @@ async function handleRunLogs(args) {
|
|
|
15980
15984
|
);
|
|
15981
15985
|
return 1;
|
|
15982
15986
|
}
|
|
15983
|
-
const client = new (0,
|
|
15987
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
15984
15988
|
if (outPath) {
|
|
15985
15989
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
15986
|
-
const logs = result2.entries.filter((line) =>
|
|
15990
|
+
const logs = result2.entries.filter((line) => _chunkGY2EEO2Yjs.logLevelReaches.call(void 0, _chunkGY2EEO2Yjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkGY2EEO2Yjs.classifyLogLine.call(void 0, line).line);
|
|
15987
15991
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
15988
|
-
|
|
15992
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
15989
15993
|
{
|
|
15990
15994
|
runId: result2.runId,
|
|
15991
15995
|
log_path: outPath,
|
|
@@ -16008,7 +16012,7 @@ async function handleRunLogs(args) {
|
|
|
16008
16012
|
]
|
|
16009
16013
|
}
|
|
16010
16014
|
},
|
|
16011
|
-
{ json:
|
|
16015
|
+
{ json: _chunkU2N4CYT7js.argsWantJson.call(void 0, args) }
|
|
16012
16016
|
);
|
|
16013
16017
|
return 0;
|
|
16014
16018
|
}
|
|
@@ -16039,7 +16043,7 @@ async function handleRunLogs(args) {
|
|
|
16039
16043
|
}
|
|
16040
16044
|
};
|
|
16041
16045
|
const text = buildRunLogsText(filteredResult);
|
|
16042
|
-
|
|
16046
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
16043
16047
|
{
|
|
16044
16048
|
runId: result.runId,
|
|
16045
16049
|
totalCount: result.totalCount,
|
|
@@ -16063,7 +16067,7 @@ async function handleRunLogs(args) {
|
|
|
16063
16067
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
16064
16068
|
},
|
|
16065
16069
|
{
|
|
16066
|
-
json:
|
|
16070
|
+
json: _chunkU2N4CYT7js.argsWantJson.call(void 0, args),
|
|
16067
16071
|
text
|
|
16068
16072
|
}
|
|
16069
16073
|
);
|
|
@@ -16087,7 +16091,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
16087
16091
|
);
|
|
16088
16092
|
}
|
|
16089
16093
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
16090
|
-
(entry) =>
|
|
16094
|
+
(entry) => _chunkGY2EEO2Yjs.logLevelReaches.call(void 0, _chunkGY2EEO2Yjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
16091
16095
|
);
|
|
16092
16096
|
const selected = matching.slice(-limit);
|
|
16093
16097
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -16097,7 +16101,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
16097
16101
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _522 => _522.at, 'call', _523 => _523(-1), 'optionalAccess', _524 => _524.seq]), () => ( null)),
|
|
16098
16102
|
truncated: result.truncated || olderMatchesExist,
|
|
16099
16103
|
hasMore: olderMatchesExist,
|
|
16100
|
-
nextCursor: olderMatchesExist ?
|
|
16104
|
+
nextCursor: olderMatchesExist ? _chunkGY2EEO2Yjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
16101
16105
|
};
|
|
16102
16106
|
}
|
|
16103
16107
|
async function handleRunEventSearch(args) {
|
|
@@ -16164,7 +16168,7 @@ ${usage2}`);
|
|
|
16164
16168
|
namespace,
|
|
16165
16169
|
...backend ? { backend } : {}
|
|
16166
16170
|
} : void 0;
|
|
16167
|
-
const client = new (0,
|
|
16171
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
16168
16172
|
const result = await client.runs.searchEvents({
|
|
16169
16173
|
...runId ? { runId } : {},
|
|
16170
16174
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -16237,7 +16241,7 @@ ${renderedDetails}` : ""}`;
|
|
|
16237
16241
|
String(limit),
|
|
16238
16242
|
"--json"
|
|
16239
16243
|
].join(" ") : null;
|
|
16240
|
-
|
|
16244
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
16241
16245
|
{
|
|
16242
16246
|
events,
|
|
16243
16247
|
nextCursor: result.nextCursor,
|
|
@@ -16248,14 +16252,14 @@ ${renderedDetails}` : ""}`;
|
|
|
16248
16252
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
16249
16253
|
},
|
|
16250
16254
|
{
|
|
16251
|
-
json:
|
|
16255
|
+
json: _chunkU2N4CYT7js.argsWantJson.call(void 0, args),
|
|
16252
16256
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
16253
16257
|
}
|
|
16254
16258
|
);
|
|
16255
16259
|
return 0;
|
|
16256
16260
|
}
|
|
16257
16261
|
function buildRunLogsText(result) {
|
|
16258
|
-
const lines = result.entries.map((line) =>
|
|
16262
|
+
const lines = result.entries.map((line) => _chunkGY2EEO2Yjs.classifyLogLine.call(void 0, line).line);
|
|
16259
16263
|
if (result.warning) {
|
|
16260
16264
|
if (lines.length > 0) lines.push("");
|
|
16261
16265
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -16289,7 +16293,7 @@ async function handleRunStop(args) {
|
|
|
16289
16293
|
reason = args[++index];
|
|
16290
16294
|
}
|
|
16291
16295
|
}
|
|
16292
|
-
const client = new (0,
|
|
16296
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
16293
16297
|
const result = await client.runs.stop(runId, { reason });
|
|
16294
16298
|
const state = resolveRunStopState(result);
|
|
16295
16299
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -16304,7 +16308,7 @@ async function handleRunStop(args) {
|
|
|
16304
16308
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
16305
16309
|
`inspect: deepline runs get ${runId} --full --json`
|
|
16306
16310
|
];
|
|
16307
|
-
|
|
16311
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
16308
16312
|
{
|
|
16309
16313
|
...cancelling,
|
|
16310
16314
|
state,
|
|
@@ -16319,7 +16323,7 @@ async function handleRunStop(args) {
|
|
|
16319
16323
|
]
|
|
16320
16324
|
}
|
|
16321
16325
|
},
|
|
16322
|
-
{ json:
|
|
16326
|
+
{ json: _chunkU2N4CYT7js.argsWantJson.call(void 0, args) }
|
|
16323
16327
|
);
|
|
16324
16328
|
return 0;
|
|
16325
16329
|
}
|
|
@@ -16336,7 +16340,7 @@ async function handleRunStop(args) {
|
|
|
16336
16340
|
];
|
|
16337
16341
|
process.stderr.write(`${lines2.join("\n")}
|
|
16338
16342
|
`);
|
|
16339
|
-
|
|
16343
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
16340
16344
|
{
|
|
16341
16345
|
...result,
|
|
16342
16346
|
render: {
|
|
@@ -16351,7 +16355,7 @@ async function handleRunStop(args) {
|
|
|
16351
16355
|
]
|
|
16352
16356
|
}
|
|
16353
16357
|
},
|
|
16354
|
-
{ json:
|
|
16358
|
+
{ json: _chunkU2N4CYT7js.argsWantJson.call(void 0, args) }
|
|
16355
16359
|
);
|
|
16356
16360
|
return 1;
|
|
16357
16361
|
}
|
|
@@ -16362,12 +16366,12 @@ async function handleRunStop(args) {
|
|
|
16362
16366
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
16363
16367
|
] : []
|
|
16364
16368
|
];
|
|
16365
|
-
|
|
16369
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
16366
16370
|
{
|
|
16367
16371
|
...result,
|
|
16368
16372
|
render: { sections: [{ title: "run stop", lines }] }
|
|
16369
16373
|
},
|
|
16370
|
-
{ json:
|
|
16374
|
+
{ json: _chunkU2N4CYT7js.argsWantJson.call(void 0, args) }
|
|
16371
16375
|
);
|
|
16372
16376
|
return 0;
|
|
16373
16377
|
}
|
|
@@ -16417,18 +16421,18 @@ async function handleRunStopAll(args) {
|
|
|
16417
16421
|
reason = args[++index];
|
|
16418
16422
|
}
|
|
16419
16423
|
}
|
|
16420
|
-
const client = new (0,
|
|
16424
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
16421
16425
|
if (dryRun) {
|
|
16422
16426
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
16423
16427
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
16424
|
-
|
|
16428
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
16425
16429
|
{
|
|
16426
16430
|
...result2,
|
|
16427
16431
|
render: {
|
|
16428
16432
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
16429
16433
|
}
|
|
16430
16434
|
},
|
|
16431
|
-
{ json:
|
|
16435
|
+
{ json: _chunkU2N4CYT7js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
16432
16436
|
` }
|
|
16433
16437
|
);
|
|
16434
16438
|
return 0;
|
|
@@ -16441,17 +16445,17 @@ async function handleRunStopAll(args) {
|
|
|
16441
16445
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
16442
16446
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
16443
16447
|
];
|
|
16444
|
-
|
|
16448
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
16445
16449
|
{
|
|
16446
16450
|
...result,
|
|
16447
16451
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
16448
16452
|
},
|
|
16449
|
-
{ json:
|
|
16453
|
+
{ json: _chunkU2N4CYT7js.argsWantJson.call(void 0, args) }
|
|
16450
16454
|
);
|
|
16451
16455
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
16452
16456
|
}
|
|
16453
16457
|
async function handleRunExport(args) {
|
|
16454
|
-
const selection =
|
|
16458
|
+
const selection = _chunkU2N4CYT7js.parseJsonFields.call(void 0, args, "export");
|
|
16455
16459
|
args = selection.args;
|
|
16456
16460
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--json]";
|
|
16457
16461
|
let runId;
|
|
@@ -16510,16 +16514,16 @@ async function handleRunExport(args) {
|
|
|
16510
16514
|
"INVALID_ARGUMENT"
|
|
16511
16515
|
);
|
|
16512
16516
|
}
|
|
16513
|
-
const client = new (0,
|
|
16517
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
16514
16518
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
16515
16519
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
16516
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
16520
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkU2N4CYT7js.argsWantJson.call(void 0, args));
|
|
16517
16521
|
try {
|
|
16518
16522
|
await waitForPlayCompletionByWatch({
|
|
16519
16523
|
client,
|
|
16520
16524
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
16521
16525
|
workflowId: runId,
|
|
16522
|
-
jsonOutput:
|
|
16526
|
+
jsonOutput: _chunkU2N4CYT7js.argsWantJson.call(void 0, args),
|
|
16523
16527
|
emitLogs: false,
|
|
16524
16528
|
waitTimeoutMs,
|
|
16525
16529
|
startedAt: Date.now(),
|
|
@@ -16618,8 +16622,8 @@ async function handleRunExport(args) {
|
|
|
16618
16622
|
"utf-8"
|
|
16619
16623
|
);
|
|
16620
16624
|
}
|
|
16621
|
-
|
|
16622
|
-
json:
|
|
16625
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0, payload, {
|
|
16626
|
+
json: _chunkU2N4CYT7js.argsWantJson.call(void 0, args),
|
|
16623
16627
|
fields: selection.fields,
|
|
16624
16628
|
text: `${lines.join("\n")}
|
|
16625
16629
|
`
|
|
@@ -16640,10 +16644,10 @@ async function handlePlayGet(args) {
|
|
|
16640
16644
|
);
|
|
16641
16645
|
return 2;
|
|
16642
16646
|
}
|
|
16643
|
-
const client = new (0,
|
|
16647
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
16644
16648
|
const explicitJson = args.includes("--json");
|
|
16645
16649
|
const sourceOutput = args.includes("--source");
|
|
16646
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
16650
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkU2N4CYT7js.argsWantJson.call(void 0, args);
|
|
16647
16651
|
const requestedRevisionFlags = [
|
|
16648
16652
|
args.includes("--working"),
|
|
16649
16653
|
args.includes("--live"),
|
|
@@ -16703,7 +16707,7 @@ async function handlePlayGet(args) {
|
|
|
16703
16707
|
}
|
|
16704
16708
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
16705
16709
|
if (jsonOutput) {
|
|
16706
|
-
|
|
16710
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, {
|
|
16707
16711
|
...detail,
|
|
16708
16712
|
...materializedFile ? {
|
|
16709
16713
|
message: loadedMessage,
|
|
@@ -16790,8 +16794,8 @@ async function handlePlayVersions(args) {
|
|
|
16790
16794
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
16791
16795
|
return 1;
|
|
16792
16796
|
}
|
|
16793
|
-
const client = new (0,
|
|
16794
|
-
const jsonOutput =
|
|
16797
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
16798
|
+
const jsonOutput = _chunkU2N4CYT7js.argsWantJson.call(void 0, args);
|
|
16795
16799
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16796
16800
|
command: "versions"
|
|
16797
16801
|
});
|
|
@@ -16799,7 +16803,7 @@ async function handlePlayVersions(args) {
|
|
|
16799
16803
|
parseReferencedPlayTarget3(playName).playName
|
|
16800
16804
|
);
|
|
16801
16805
|
if (jsonOutput) {
|
|
16802
|
-
|
|
16806
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, { versions });
|
|
16803
16807
|
return 0;
|
|
16804
16808
|
}
|
|
16805
16809
|
if (versions.length === 0) {
|
|
@@ -16831,9 +16835,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
16831
16835
|
"signals"
|
|
16832
16836
|
];
|
|
16833
16837
|
async function handlePlayList(args) {
|
|
16834
|
-
const jsonOutput =
|
|
16838
|
+
const jsonOutput = _chunkU2N4CYT7js.argsWantJson.call(void 0, args);
|
|
16835
16839
|
const showCost = args.includes("--show-cost");
|
|
16836
|
-
const client = new (0,
|
|
16840
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
16837
16841
|
const categoriesIndex = args.indexOf("--categories");
|
|
16838
16842
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _560 => _560[categoriesIndex + 1], 'optionalAccess', _561 => _561.trim, 'call', _562 => _562()]) : void 0;
|
|
16839
16843
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -16930,7 +16934,7 @@ async function handlePlayList(args) {
|
|
|
16930
16934
|
lines.push("List truncated \u2014 more plays are available.");
|
|
16931
16935
|
lines.push(`Next page: ${nextPage}`);
|
|
16932
16936
|
}
|
|
16933
|
-
|
|
16937
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
16934
16938
|
{
|
|
16935
16939
|
plays,
|
|
16936
16940
|
count: plays.length,
|
|
@@ -16948,7 +16952,7 @@ async function handlePlayList(args) {
|
|
|
16948
16952
|
}
|
|
16949
16953
|
async function handlePlayPin(args, pinned) {
|
|
16950
16954
|
const target = _optionalChain([args, 'access', _569 => _569.find, 'call', _570 => _570((arg) => !arg.startsWith("-")), 'optionalAccess', _571 => _571.trim, 'call', _572 => _572()]);
|
|
16951
|
-
const jsonOutput =
|
|
16955
|
+
const jsonOutput = _chunkU2N4CYT7js.argsWantJson.call(void 0, args);
|
|
16952
16956
|
const dryRun = args.includes("--dry-run");
|
|
16953
16957
|
if (!target) {
|
|
16954
16958
|
console.error(
|
|
@@ -16966,11 +16970,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
16966
16970
|
const name = parsedTarget.playName;
|
|
16967
16971
|
const plan = { name, pinned, dryRun };
|
|
16968
16972
|
if (dryRun) {
|
|
16969
|
-
|
|
16973
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, plan);
|
|
16970
16974
|
return 0;
|
|
16971
16975
|
}
|
|
16972
|
-
const result = await new (0,
|
|
16973
|
-
if (jsonOutput)
|
|
16976
|
+
const result = await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
16977
|
+
if (jsonOutput) _chunkU2N4CYT7js.printCompactJson.call(void 0, result);
|
|
16974
16978
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
16975
16979
|
return 0;
|
|
16976
16980
|
}
|
|
@@ -16986,7 +16990,7 @@ function csvColumnLines(csvInput) {
|
|
|
16986
16990
|
const headers = [defaults[column]].flat().filter((header) => header && header !== column);
|
|
16987
16991
|
return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
|
|
16988
16992
|
}),
|
|
16989
|
-
|
|
16993
|
+
_chunkGY2EEO2Yjs.CSV_HEADER_MATCHING_NOTE
|
|
16990
16994
|
];
|
|
16991
16995
|
}
|
|
16992
16996
|
function describedPlay(play) {
|
|
@@ -17130,12 +17134,12 @@ async function handlePlayGrep(args) {
|
|
|
17130
17134
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
17131
17135
|
return 1;
|
|
17132
17136
|
}
|
|
17133
|
-
const client = new (0,
|
|
17137
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
17134
17138
|
const results = (await client.listPlays({ grep: query })).map(
|
|
17135
17139
|
summarizePlayGrepResult
|
|
17136
17140
|
);
|
|
17137
|
-
if (
|
|
17138
|
-
|
|
17141
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
17142
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, {
|
|
17139
17143
|
plays: results,
|
|
17140
17144
|
count: results.length,
|
|
17141
17145
|
query,
|
|
@@ -17158,7 +17162,7 @@ async function handlePlayGrep(args) {
|
|
|
17158
17162
|
return 0;
|
|
17159
17163
|
}
|
|
17160
17164
|
async function handlePlayDescribe(args) {
|
|
17161
|
-
const selection =
|
|
17165
|
+
const selection = _chunkU2N4CYT7js.parseJsonFields.call(void 0, args, "describe");
|
|
17162
17166
|
args = selection.args;
|
|
17163
17167
|
const playName = args[0];
|
|
17164
17168
|
if (!playName) {
|
|
@@ -17192,8 +17196,8 @@ async function handlePlayDescribe(args) {
|
|
|
17192
17196
|
`deepline plays check ${playName}`,
|
|
17193
17197
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
17194
17198
|
];
|
|
17195
|
-
if (
|
|
17196
|
-
|
|
17199
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
17200
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, {
|
|
17197
17201
|
ok: false,
|
|
17198
17202
|
error: { message },
|
|
17199
17203
|
next
|
|
@@ -17207,7 +17211,7 @@ async function handlePlayDescribe(args) {
|
|
|
17207
17211
|
}
|
|
17208
17212
|
return 2;
|
|
17209
17213
|
}
|
|
17210
|
-
const client = new (0,
|
|
17214
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
17211
17215
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
17212
17216
|
command: "describe"
|
|
17213
17217
|
});
|
|
@@ -17217,9 +17221,9 @@ async function handlePlayDescribe(args) {
|
|
|
17217
17221
|
compact: args.includes("--compact")
|
|
17218
17222
|
}
|
|
17219
17223
|
);
|
|
17220
|
-
if (
|
|
17221
|
-
if (selection.fields)
|
|
17222
|
-
else
|
|
17224
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
17225
|
+
if (selection.fields) _chunkU2N4CYT7js.printJson.call(void 0, play, selection.fields);
|
|
17226
|
+
else _chunkU2N4CYT7js.printCompactJson.call(void 0, play);
|
|
17223
17227
|
return 0;
|
|
17224
17228
|
}
|
|
17225
17229
|
printPlayDescription(play);
|
|
@@ -17263,7 +17267,7 @@ async function handlePlaySave(args) {
|
|
|
17263
17267
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
17264
17268
|
};
|
|
17265
17269
|
if (options.jsonOutput) {
|
|
17266
|
-
|
|
17270
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, result);
|
|
17267
17271
|
} else {
|
|
17268
17272
|
console.error(result.message);
|
|
17269
17273
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -17285,7 +17289,7 @@ async function handlePlaySave(args) {
|
|
|
17285
17289
|
};
|
|
17286
17290
|
if (options.dryRun) {
|
|
17287
17291
|
if (options.jsonOutput) {
|
|
17288
|
-
|
|
17292
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, dryRun);
|
|
17289
17293
|
} else {
|
|
17290
17294
|
console.log(`Dry run: ${playName}`);
|
|
17291
17295
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17294,7 +17298,7 @@ async function handlePlaySave(args) {
|
|
|
17294
17298
|
}
|
|
17295
17299
|
return 0;
|
|
17296
17300
|
}
|
|
17297
|
-
const client = new (0,
|
|
17301
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
17298
17302
|
try {
|
|
17299
17303
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
17300
17304
|
"cli.play_save_compile_manifests",
|
|
@@ -17330,7 +17334,7 @@ async function handlePlaySave(args) {
|
|
|
17330
17334
|
}
|
|
17331
17335
|
};
|
|
17332
17336
|
if (options.jsonOutput) {
|
|
17333
|
-
|
|
17337
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, result);
|
|
17334
17338
|
} else {
|
|
17335
17339
|
console.log(
|
|
17336
17340
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -17356,7 +17360,7 @@ async function handlePlayPublish(args) {
|
|
|
17356
17360
|
}
|
|
17357
17361
|
const { target: playName, useLatest } = options;
|
|
17358
17362
|
let revisionId = options.revisionId;
|
|
17359
|
-
const client = new (0,
|
|
17363
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
17360
17364
|
if (isFileTarget2(playName)) {
|
|
17361
17365
|
if (revisionId || useLatest) {
|
|
17362
17366
|
console.error(
|
|
@@ -17388,7 +17392,7 @@ async function handlePlayPublish(args) {
|
|
|
17388
17392
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
17389
17393
|
};
|
|
17390
17394
|
if (options.jsonOutput) {
|
|
17391
|
-
|
|
17395
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, result3);
|
|
17392
17396
|
} else {
|
|
17393
17397
|
console.error(result3.message);
|
|
17394
17398
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -17411,7 +17415,7 @@ async function handlePlayPublish(args) {
|
|
|
17411
17415
|
};
|
|
17412
17416
|
if (options.dryRun) {
|
|
17413
17417
|
if (options.jsonOutput) {
|
|
17414
|
-
|
|
17418
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, dryRun);
|
|
17415
17419
|
} else {
|
|
17416
17420
|
console.log(`Dry run: ${rootPlayName}`);
|
|
17417
17421
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -17479,7 +17483,7 @@ async function handlePlayPublish(args) {
|
|
|
17479
17483
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
17480
17484
|
};
|
|
17481
17485
|
if (options.jsonOutput) {
|
|
17482
|
-
|
|
17486
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, result2);
|
|
17483
17487
|
} else {
|
|
17484
17488
|
printPublishReceipt({
|
|
17485
17489
|
name: rootPlayName,
|
|
@@ -17510,7 +17514,7 @@ async function handlePlayPublish(args) {
|
|
|
17510
17514
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
17511
17515
|
latest: useLatest
|
|
17512
17516
|
};
|
|
17513
|
-
|
|
17517
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, result2);
|
|
17514
17518
|
return 0;
|
|
17515
17519
|
}
|
|
17516
17520
|
const resolvedName = parseReferencedPlayTarget3(playName).playName;
|
|
@@ -17534,7 +17538,7 @@ async function handlePlayPublish(args) {
|
|
|
17534
17538
|
revisionId ? { revisionId } : {}
|
|
17535
17539
|
);
|
|
17536
17540
|
if (options.jsonOutput) {
|
|
17537
|
-
|
|
17541
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, result);
|
|
17538
17542
|
} else {
|
|
17539
17543
|
printPublishReceipt({
|
|
17540
17544
|
name: result.name,
|
|
@@ -17574,7 +17578,7 @@ async function handlePlayDelete(args) {
|
|
|
17574
17578
|
);
|
|
17575
17579
|
return 2;
|
|
17576
17580
|
}
|
|
17577
|
-
const client = new (0,
|
|
17581
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
17578
17582
|
let detail;
|
|
17579
17583
|
try {
|
|
17580
17584
|
detail = await client.getPlay(parseReferencedPlayTarget3(playName).playName);
|
|
@@ -17598,8 +17602,8 @@ async function handlePlayDelete(args) {
|
|
|
17598
17602
|
name: resolvedName,
|
|
17599
17603
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
17600
17604
|
};
|
|
17601
|
-
if (
|
|
17602
|
-
|
|
17605
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
17606
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, result2);
|
|
17603
17607
|
} else {
|
|
17604
17608
|
process.stdout.write(
|
|
17605
17609
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -17609,8 +17613,8 @@ async function handlePlayDelete(args) {
|
|
|
17609
17613
|
return 0;
|
|
17610
17614
|
}
|
|
17611
17615
|
const result = await client.deletePlay(resolvedName);
|
|
17612
|
-
if (
|
|
17613
|
-
|
|
17616
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
17617
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, result);
|
|
17614
17618
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
17615
17619
|
}
|
|
17616
17620
|
if (result.alreadyArchived) {
|
|
@@ -17649,13 +17653,13 @@ async function handlePlayRestore(args) {
|
|
|
17649
17653
|
);
|
|
17650
17654
|
return 2;
|
|
17651
17655
|
}
|
|
17652
|
-
const client = new (0,
|
|
17656
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
17653
17657
|
try {
|
|
17654
17658
|
const result = await client.restorePlay(
|
|
17655
17659
|
parseReferencedPlayTarget3(playName).playName
|
|
17656
17660
|
);
|
|
17657
|
-
if (
|
|
17658
|
-
|
|
17661
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
17662
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, result);
|
|
17659
17663
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
17660
17664
|
}
|
|
17661
17665
|
if (result.alreadyActive) {
|
|
@@ -17762,7 +17766,7 @@ Examples:
|
|
|
17762
17766
|
).action(async (target, options) => {
|
|
17763
17767
|
process.exitCode = await handlePlayCheck([
|
|
17764
17768
|
target,
|
|
17765
|
-
...
|
|
17769
|
+
..._chunkU2N4CYT7js.jsonFieldArgs.call(void 0, options.json),
|
|
17766
17770
|
...options.full ? ["--full"] : []
|
|
17767
17771
|
]);
|
|
17768
17772
|
});
|
|
@@ -17991,9 +17995,9 @@ Examples:
|
|
|
17991
17995
|
const limit = Number(options.historyLimit);
|
|
17992
17996
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
17993
17997
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
17994
|
-
const client = new (0,
|
|
17998
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
17995
17999
|
if (options.binding) {
|
|
17996
|
-
|
|
18000
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0,
|
|
17997
18001
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
17998
18002
|
);
|
|
17999
18003
|
return;
|
|
@@ -18001,7 +18005,7 @@ Examples:
|
|
|
18001
18005
|
const result = await client.listPlayTriggerInventory({
|
|
18002
18006
|
cursor: options.cursor
|
|
18003
18007
|
});
|
|
18004
|
-
|
|
18008
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, {
|
|
18005
18009
|
...result,
|
|
18006
18010
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)} --json`
|
|
18007
18011
|
});
|
|
@@ -18048,7 +18052,7 @@ Examples:
|
|
|
18048
18052
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
18049
18053
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
18050
18054
|
}
|
|
18051
|
-
const result = await new (0,
|
|
18055
|
+
const result = await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().getPlaysActivity({
|
|
18052
18056
|
timeZone: options.timeZone,
|
|
18053
18057
|
days,
|
|
18054
18058
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -18062,7 +18066,7 @@ Examples:
|
|
|
18062
18066
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
18063
18067
|
);
|
|
18064
18068
|
}
|
|
18065
|
-
|
|
18069
|
+
_chunkU2N4CYT7js.printCommandEnvelope.call(void 0,
|
|
18066
18070
|
{ ...result },
|
|
18067
18071
|
{
|
|
18068
18072
|
json: options.json || !process.stdout.isTTY,
|
|
@@ -18091,7 +18095,7 @@ Examples:
|
|
|
18091
18095
|
false
|
|
18092
18096
|
);
|
|
18093
18097
|
});
|
|
18094
|
-
|
|
18098
|
+
_chunk4FLEXYUCjs.registerDeprecatedSearchCommand.call(void 0,
|
|
18095
18099
|
play,
|
|
18096
18100
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
18097
18101
|
);
|
|
@@ -18135,7 +18139,7 @@ Examples:
|
|
|
18135
18139
|
);
|
|
18136
18140
|
_chunkAFNEQ43Jjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
18137
18141
|
async (target, options) => {
|
|
18138
|
-
const ownView = () => handlePlayDescribe(
|
|
18142
|
+
const ownView = () => handlePlayDescribe(_chunkU2N4CYT7js.describeArgs.call(void 0, target, options));
|
|
18139
18143
|
const [flagText] = [options.json].filter(
|
|
18140
18144
|
(value) => typeof value === "string"
|
|
18141
18145
|
);
|
|
@@ -18146,7 +18150,7 @@ Examples:
|
|
|
18146
18150
|
process.exitCode = await ownView();
|
|
18147
18151
|
return;
|
|
18148
18152
|
}
|
|
18149
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
18153
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-YALVN4WH.js")));
|
|
18150
18154
|
process.exitCode = await describeAnything(
|
|
18151
18155
|
name,
|
|
18152
18156
|
{
|
|
@@ -18263,7 +18267,7 @@ Examples:
|
|
|
18263
18267
|
deepline plays deployments <deployment-id>
|
|
18264
18268
|
`
|
|
18265
18269
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output. Also automatic when stdout is piped").action(
|
|
18266
|
-
async (id, options) => id ?
|
|
18270
|
+
async (id, options) => id ? _chunkOUTIWGKYjs.handleDeploymentGet.call(void 0, id, options) : _chunkOUTIWGKYjs.handleDeploymentsList.call(void 0, options)
|
|
18267
18271
|
);
|
|
18268
18272
|
addPublishHelp(
|
|
18269
18273
|
play.command("publish <target>").description(
|
|
@@ -18443,7 +18447,7 @@ Examples:
|
|
|
18443
18447
|
).action(async (runId, options) => {
|
|
18444
18448
|
process.exitCode = await handleRunGet([
|
|
18445
18449
|
runId,
|
|
18446
|
-
...
|
|
18450
|
+
..._chunkU2N4CYT7js.jsonFieldArgs.call(void 0, options.json),
|
|
18447
18451
|
...options.full ? ["--full"] : [],
|
|
18448
18452
|
...options.input ? ["--input"] : [],
|
|
18449
18453
|
...options.config ? ["--config"] : [],
|
|
@@ -18494,6 +18498,9 @@ Notes:
|
|
|
18494
18498
|
Use the exact qualified Play reference, such as workspace/my-play or prebuilt/my-play.
|
|
18495
18499
|
--offset requires --play; narrow status-only lists with a Play reference to paginate.
|
|
18496
18500
|
Common statuses include running, completed, failed, and stopped.
|
|
18501
|
+
JSON runs[].id is the public ID accepted by runs get, watch, export, and stop.
|
|
18502
|
+
runId and workflowId are compatibility aliases; temporalRunId is not the public ID.
|
|
18503
|
+
Use the ID returned by plays run for your execution, not the latest inventory entry.
|
|
18497
18504
|
|
|
18498
18505
|
Examples:
|
|
18499
18506
|
deepline runs list --play my-play
|
|
@@ -18718,7 +18725,7 @@ Examples:
|
|
|
18718
18725
|
...options.metadataOut ? ["--metadata-out", options.metadataOut] : [],
|
|
18719
18726
|
...options.wait ? ["--wait"] : [],
|
|
18720
18727
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
18721
|
-
...
|
|
18728
|
+
..._chunkU2N4CYT7js.jsonFieldArgs.call(void 0, options.json)
|
|
18722
18729
|
]);
|
|
18723
18730
|
});
|
|
18724
18731
|
const share = play.command("share").description(
|
|
@@ -18884,10 +18891,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18884
18891
|
return 2;
|
|
18885
18892
|
}
|
|
18886
18893
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
18887
|
-
const status = await new (0,
|
|
18894
|
+
const status = await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().getSharePage(name);
|
|
18888
18895
|
const outputStatus = shareStatusForOutput(status);
|
|
18889
|
-
if (
|
|
18890
|
-
|
|
18896
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
18897
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, outputStatus);
|
|
18891
18898
|
return 0;
|
|
18892
18899
|
}
|
|
18893
18900
|
if (!outputStatus.share) {
|
|
@@ -18926,7 +18933,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18926
18933
|
return 2;
|
|
18927
18934
|
}
|
|
18928
18935
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
18929
|
-
const client = new (0,
|
|
18936
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
18930
18937
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18931
18938
|
let resolvedVersion;
|
|
18932
18939
|
if (!revisionId) {
|
|
@@ -18957,8 +18964,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18957
18964
|
);
|
|
18958
18965
|
if (!hasCompleted) {
|
|
18959
18966
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18960
|
-
if (
|
|
18961
|
-
|
|
18967
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
18968
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, {
|
|
18962
18969
|
ok: false,
|
|
18963
18970
|
code: "NO_SUCCESSFUL_RUN",
|
|
18964
18971
|
message,
|
|
@@ -18982,8 +18989,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18982
18989
|
};
|
|
18983
18990
|
if (args.includes("--dry-run")) {
|
|
18984
18991
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
18985
|
-
if (
|
|
18986
|
-
|
|
18992
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
18993
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, plan);
|
|
18987
18994
|
} else {
|
|
18988
18995
|
console.log(
|
|
18989
18996
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -18993,8 +19000,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18993
19000
|
}
|
|
18994
19001
|
const status = await client.publishSharePage(name, request);
|
|
18995
19002
|
const outputStatus = shareStatusForOutput(status);
|
|
18996
|
-
if (
|
|
18997
|
-
|
|
19003
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
19004
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, outputStatus);
|
|
18998
19005
|
return 0;
|
|
18999
19006
|
}
|
|
19000
19007
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -19025,9 +19032,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
19025
19032
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
19026
19033
|
...seoIndexing ? { seoIndexing } : {}
|
|
19027
19034
|
};
|
|
19028
|
-
const status = await new (0,
|
|
19029
|
-
if (
|
|
19030
|
-
|
|
19035
|
+
const status = await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().updateSharePage(name, request);
|
|
19036
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
19037
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, status);
|
|
19031
19038
|
return 0;
|
|
19032
19039
|
}
|
|
19033
19040
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -19042,7 +19049,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
19042
19049
|
return 2;
|
|
19043
19050
|
}
|
|
19044
19051
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
19045
|
-
const client = new (0,
|
|
19052
|
+
const client = new (0, _chunkGY2EEO2Yjs.DeeplineClient)();
|
|
19046
19053
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
19047
19054
|
const versionFlag = shareFlagValue(args, "--version");
|
|
19048
19055
|
if (!revisionId && versionFlag) {
|
|
@@ -19059,8 +19066,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
19059
19066
|
revisionId ? { revisionId } : {}
|
|
19060
19067
|
);
|
|
19061
19068
|
const outputStatus = shareStatusForOutput(status);
|
|
19062
|
-
if (
|
|
19063
|
-
|
|
19069
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
19070
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, outputStatus);
|
|
19064
19071
|
return 0;
|
|
19065
19072
|
}
|
|
19066
19073
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -19085,9 +19092,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
19085
19092
|
return 2;
|
|
19086
19093
|
}
|
|
19087
19094
|
const name = parseReferencedPlayTarget3(target).playName;
|
|
19088
|
-
const status = await new (0,
|
|
19089
|
-
if (
|
|
19090
|
-
|
|
19095
|
+
const status = await new (0, _chunkGY2EEO2Yjs.DeeplineClient)().unpublishSharePage(name);
|
|
19096
|
+
if (_chunkU2N4CYT7js.argsWantJson.call(void 0, args)) {
|
|
19097
|
+
_chunkU2N4CYT7js.printCompactJson.call(void 0, status);
|
|
19091
19098
|
return 0;
|
|
19092
19099
|
}
|
|
19093
19100
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|