deepline 0.3.369 → 0.3.371
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/README.md +1 -1
- package/dist/bundling-sources/sdk/src/client.ts +8 -8
- package/dist/bundling-sources/sdk/src/release.ts +1 -7
- package/dist/bundling-sources/sdk/src/runs/overview.ts +7 -7
- package/dist/bundling-sources/sdk/src/tool-output.ts +5 -1
- package/dist/bundling-sources/sdk/src/types.ts +2 -2
- package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -5
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +4 -2
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +18 -18
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/dataset-lifecycle-log.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +34 -9
- package/dist/cli/auth-DQVK3ZI6.js +33 -0
- package/dist/cli/{auth-F5YPFL6L.mjs → auth-LCSEXQA2.mjs} +4 -4
- package/dist/cli/{billing-3HHLCETY.js → billing-KISDL67A.js} +148 -148
- package/dist/cli/{billing-LNO6FPPM.mjs → billing-Z7PLJC5C.mjs} +79 -79
- package/dist/cli/{chunk-MX53GIOB.js → chunk-2JRRXXTA.js} +2 -2
- package/dist/cli/{chunk-COEBGYBW.mjs → chunk-2L6LBJVC.mjs} +193 -187
- package/dist/cli/{chunk-H4N6FMJ5.mjs → chunk-3FTYFVYN.mjs} +5 -5
- package/dist/cli/{chunk-Z6B4UPM4.mjs → chunk-3GK3SH3G.mjs} +2 -2
- package/dist/cli/{chunk-KGZRUGL7.js → chunk-44SHFHA3.js} +17 -17
- package/dist/cli/{chunk-QFBHEQCQ.mjs → chunk-46JCJ7FT.mjs} +56 -97
- package/dist/cli/{chunk-6A3GNWSU.js → chunk-5BCVKWLV.js} +17 -17
- package/dist/cli/{chunk-TRRFXE4X.mjs → chunk-5S525TQV.mjs} +2 -2
- package/dist/cli/{chunk-X6FNDFTD.js → chunk-5Z7JFUNX.js} +26 -26
- package/dist/cli/{chunk-JGLIB4JN.mjs → chunk-73NIXYKH.mjs} +90 -50
- package/dist/cli/{chunk-2AENFV3B.js → chunk-A7X7KFXX.js} +4 -4
- package/dist/cli/{chunk-KU4X5TWN.mjs → chunk-AIZKDTFF.mjs} +11 -11
- package/dist/cli/{chunk-ERMXQOIV.js → chunk-BO3ADIBV.js} +8 -8
- package/dist/cli/{chunk-FXVRQHJC.js → chunk-C3IPN4E6.js} +17 -17
- package/dist/cli/{chunk-LH3BV773.js → chunk-C553OZGG.js} +10 -10
- package/dist/cli/{chunk-EJC3INZD.mjs → chunk-DOXAN2I7.mjs} +3 -3
- package/dist/cli/{chunk-XH3EIQAZ.js → chunk-DPVBWLBF.js} +419 -413
- package/dist/cli/{chunk-PRMAO43X.js → chunk-DQMTJXLK.js} +145 -105
- package/dist/cli/{chunk-NXDRDJ4K.js → chunk-E5UD3JDQ.js} +3 -1
- package/dist/cli/{chunk-U5VEW7LL.mjs → chunk-IWY7T6MR.mjs} +1 -1
- package/dist/cli/{chunk-MIMASXO4.mjs → chunk-JB6ERQUV.mjs} +3 -1
- package/dist/cli/{chunk-QILHWZFP.js → chunk-JSK6GUY6.js} +56 -97
- package/dist/cli/{chunk-VUYCB2RY.mjs → chunk-KBJO7HIF.mjs} +9 -9
- package/dist/cli/{chunk-SDOPEZYS.mjs → chunk-KGRAQ4OR.mjs} +6 -6
- package/dist/cli/{chunk-5IXQ6VP4.mjs → chunk-KKRRIFR3.mjs} +1 -1
- package/dist/cli/{chunk-74XTRGY5.js → chunk-N34UX4TW.js} +2 -2
- package/dist/cli/{chunk-KR5NWPWI.js → chunk-NMDNUOVI.js} +1 -6
- package/dist/cli/{chunk-YCLPW7QO.mjs → chunk-SEDS6ZVR.mjs} +10 -10
- package/dist/cli/{chunk-RIT4UED6.mjs → chunk-SENW5J4O.mjs} +5 -5
- package/dist/cli/{chunk-P7W5OMQ6.js → chunk-TT2YWFYW.js} +53 -53
- package/dist/cli/{chunk-OEQC4QLU.js → chunk-YENBXYUH.js} +68 -68
- package/dist/cli/{chunk-4RVNJQ7D.mjs → chunk-YYFLULK7.mjs} +1 -6
- package/dist/cli/client-JFSRNUVD.js +20 -0
- package/dist/cli/{client-HURLYTDV.mjs → client-Z3Z5EDDJ.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-ZECPS6DF.mjs → csv-TEVHLGGA.mjs} +3 -3
- package/dist/cli/{csv-BZ7QNGLU.js → csv-XGFXV7JE.js} +12 -12
- package/dist/cli/{db-JXLCCIML.js → db-LLZJ7UH5.js} +42 -43
- package/dist/cli/{db-EUNDS5UG.mjs → db-OB7PMWSZ.mjs} +17 -18
- package/dist/cli/{describe-L6LADCXI.mjs → describe-GZIRANUZ.mjs} +12 -12
- package/dist/cli/{describe-DNDL3TC6.js → describe-NWU7LI3I.js} +28 -28
- package/dist/cli/{executions-GPKPWEHO.js → executions-64YZGSOW.js} +6 -6
- package/dist/cli/{executions-GRCD2GHT.mjs → executions-7UZ3ZGJ3.mjs} +4 -4
- package/dist/cli/{feedback-5WG2HNZ6.mjs → feedback-2WRQRW3U.mjs} +8 -8
- package/dist/cli/{feedback-VJCNBYVQ.js → feedback-MN5CXULH.js} +12 -12
- package/dist/cli/{git-3G5Q4TPI.mjs → git-BPYVLLTY.mjs} +4 -4
- package/dist/cli/git-TJIPVSAE.js +23 -0
- package/dist/cli/index.js +98 -109
- package/dist/cli/index.mjs +46 -57
- package/dist/cli/{legacy-noops-YAO3LDPI.js → legacy-noops-VMXJPLMW.js} +9 -9
- package/dist/cli/{legacy-noops-7WLCNXLD.mjs → legacy-noops-ZRPWEPX6.mjs} +6 -6
- package/dist/cli/{monitors-NRQN7M3A.mjs → monitors-5BRTBL7E.mjs} +59 -59
- package/dist/cli/{monitors-MQ6KNDOH.js → monitors-OQSI2VOL.js} +140 -140
- package/dist/cli/{org-TGKGLAB4.js → org-F5QS3HG4.js} +88 -87
- package/dist/cli/{org-X46ICV24.mjs → org-SMZ7AGR3.mjs} +28 -27
- package/dist/cli/{play-PCLCMTVK.mjs → play-CJZNLQL7.mjs} +10 -8
- package/dist/cli/play-K7HE4LBB.js +155 -0
- package/dist/cli/{providers-T2S532QL.mjs → providers-CBWXJRDG.mjs} +7 -7
- package/dist/cli/{providers-IPH3TV6J.js → providers-SH2HYOVR.js} +10 -10
- package/dist/cli/{quickstart-6CO5FGYE.mjs → quickstart-342ENF6Q.mjs} +4 -4
- package/dist/cli/{quickstart-GXFHMZL7.js → quickstart-B6EL7WDG.js} +6 -6
- package/dist/cli/{search-6HML4FB2.mjs → search-E7DKH3SI.mjs} +5 -5
- package/dist/cli/search-SEEYCQED.js +26 -0
- package/dist/cli/{secrets-KCNIINW5.mjs → secrets-FSYIPRVS.mjs} +5 -5
- package/dist/cli/{secrets-J6T743DQ.js → secrets-M2AW5RGE.js} +14 -14
- package/dist/cli/{sessions-ABXL2OZV.js → sessions-AFE4C3FQ.js} +5 -5
- package/dist/cli/{sessions-FQHM34TD.mjs → sessions-DJPGWPNA.mjs} +4 -4
- package/dist/cli/{settings-3UXXWUZ3.mjs → settings-KLN2A3PQ.mjs} +10 -10
- package/dist/cli/{settings-HB5DSAUW.js → settings-VUWBNATC.js} +77 -77
- package/dist/cli/{setup-2MOBCKAB.mjs → setup-BE6N5YV6.mjs} +15 -15
- package/dist/cli/{setup-TMJJLEYX.js → setup-I5IMTQCX.js} +50 -50
- package/dist/cli/skills-7XH5GMZB.js +28 -0
- package/dist/cli/{skills-LWS7PNTF.mjs → skills-GSNPQDUG.mjs} +4 -4
- package/dist/cli/tools-JCL4ABAF.js +40 -0
- package/dist/cli/{tools-TIUE2AK7.mjs → tools-ORCGHV4P.mjs} +8 -8
- package/dist/cli/{update-IYXAP5MI.mjs → update-UXEUWVWS.mjs} +6 -6
- package/dist/cli/update-YNZOS77Z.js +28 -0
- package/dist/cli/{workflow-3CVYOEKJ.mjs → workflow-JBQY7JJN.mjs} +7 -7
- package/dist/cli/{workflow-SGF3DFKJ.js → workflow-R7SDICTU.js} +17 -17
- package/dist/{client-CjHv4K6D.d.mts → client-CZFMQEgO.d.mts} +6 -6
- package/dist/{client-rTuhNN-x.d.ts → client-CgSwpnb-.d.ts} +6 -6
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -15
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +82 -82
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -5
- package/dist/release.d.ts +1 -5
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-L3ZF67G5.js +0 -33
- package/dist/cli/client-HL2AHZPQ.js +0 -20
- package/dist/cli/git-MSJ6SFLT.js +0 -23
- package/dist/cli/play-TJBPVFUK.js +0 -153
- package/dist/cli/search-34MPYWVW.js +0 -26
- package/dist/cli/skills-D3IIQSUK.js +0 -28
- package/dist/cli/tools-XWUSCNVK.js +0 -40
- package/dist/cli/update-7O5MXP5K.js +0 -28
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2JRRXXTAjs = require('./chunk-2JRRXXTA.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
@@ -19,11 +19,11 @@ var _chunkQGKPTBRRjs = require('./chunk-QGKPTBRR.js');
|
|
|
19
19
|
var _chunk5JLQPVNXjs = require('./chunk-5JLQPVNX.js');
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkC553OZGGjs = require('./chunk-C553OZGG.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk5Z7JFUNXjs = require('./chunk-5Z7JFUNX.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -42,7 +42,7 @@ var _chunkGEJDBXXMjs = require('./chunk-GEJDBXXM.js');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunk44SHFHA3js = require('./chunk-44SHFHA3.js');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
@@ -75,10 +75,10 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
|
-
var
|
|
78
|
+
var _chunkBO3ADIBVjs = require('./chunk-BO3ADIBV.js');
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkA7X7KFXXjs = require('./chunk-A7X7KFXX.js');
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -2038,13 +2038,13 @@ Roots:
|
|
|
2038
2038
|
${PLAY_LOCATION_ROOTS.map((root) => ` ${root.value}: ${root.description}`).join("\n")}
|
|
2039
2039
|
|
|
2040
2040
|
Examples:
|
|
2041
|
-
deepline plays settings describe --name path
|
|
2042
|
-
deepline plays settings get --play company-research
|
|
2041
|
+
deepline plays settings describe --name path
|
|
2042
|
+
deepline plays settings get --play company-research
|
|
2043
2043
|
deepline plays settings get --play company-research --name path
|
|
2044
2044
|
deepline plays settings set --play company-research --name path --value person/Research/ICP
|
|
2045
2045
|
deepline plays settings set --play company-research --name path --value team/Research
|
|
2046
2046
|
deepline plays settings reset --play company-research --name path
|
|
2047
|
-
deepline plays settings paths --root team
|
|
2047
|
+
deepline plays settings paths --root team
|
|
2048
2048
|
deepline plays settings move-folder --from team/Research --to team/Archive/Research
|
|
2049
2049
|
deepline plays settings move-folder --from person/ICP --to person/Accounts --dry-run
|
|
2050
2050
|
|
|
@@ -2062,7 +2062,7 @@ function resolveField(key, command) {
|
|
|
2062
2062
|
function printSettings(result, json, name) {
|
|
2063
2063
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2064
2064
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2065
|
-
|
|
2065
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
2066
2066
|
{
|
|
2067
2067
|
...result,
|
|
2068
2068
|
settings: Object.fromEntries(
|
|
@@ -2095,7 +2095,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2095
2095
|
).option(
|
|
2096
2096
|
"--name <setting>",
|
|
2097
2097
|
`Describe one setting. Available: ${fields.map(([key]) => key).join(", ")}`
|
|
2098
|
-
).option("--json", "Emit JSON
|
|
2098
|
+
).option("--json", "Emit JSON").addHelpText("after", help).action((options, command) => {
|
|
2099
2099
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2100
2100
|
const descriptions = fields.filter(([name]) => !options.name || options.name === name).map(([name, field]) => ({
|
|
2101
2101
|
key: name,
|
|
@@ -2106,7 +2106,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2106
2106
|
valueSyntax: field.cli.valueSyntax,
|
|
2107
2107
|
examples: field.cli.examples
|
|
2108
2108
|
}));
|
|
2109
|
-
|
|
2109
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
2110
2110
|
{
|
|
2111
2111
|
fields: descriptions,
|
|
2112
2112
|
render: {
|
|
@@ -2127,11 +2127,11 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2127
2127
|
settings.command("get").usage("--play <play> [--name <setting>] [options]").description("Read all settings, or one setting selected with --name.").requiredOption("--play <play>", "Play to read").option(
|
|
2128
2128
|
"--name <setting>",
|
|
2129
2129
|
`Read one setting. Available: ${fields.map(([key]) => key).join(", ")}`
|
|
2130
|
-
).option("--json", "Emit JSON
|
|
2130
|
+
).option("--json", "Emit JSON").addHelpText("after", help).action(
|
|
2131
2131
|
async (options, command) => {
|
|
2132
2132
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2133
2133
|
printSettings(
|
|
2134
|
-
await new (0,
|
|
2134
|
+
await new (0, _chunk44SHFHA3js.DeeplineClient)().getPlaySettings(options.play),
|
|
2135
2135
|
options.json,
|
|
2136
2136
|
options.name
|
|
2137
2137
|
);
|
|
@@ -2162,7 +2162,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2162
2162
|
);
|
|
2163
2163
|
}
|
|
2164
2164
|
if (options.dryRun) {
|
|
2165
|
-
|
|
2165
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
2166
2166
|
{
|
|
2167
2167
|
dryRun: true,
|
|
2168
2168
|
play,
|
|
@@ -2183,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2183
2183
|
return;
|
|
2184
2184
|
}
|
|
2185
2185
|
printSettings(
|
|
2186
|
-
await new (0,
|
|
2186
|
+
await new (0, _chunk44SHFHA3js.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2187
2187
|
options.json
|
|
2188
2188
|
);
|
|
2189
2189
|
};
|
|
@@ -2191,7 +2191,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2191
2191
|
[set, false],
|
|
2192
2192
|
[reset, true]
|
|
2193
2193
|
])
|
|
2194
|
-
command.option("--dry-run", "Show the patch without changing settings").option("--json", "Emit JSON
|
|
2194
|
+
command.option("--dry-run", "Show the patch without changing settings").option("--json", "Emit JSON").addHelpText("after", help).action(
|
|
2195
2195
|
(options) => change(
|
|
2196
2196
|
command,
|
|
2197
2197
|
options.play,
|
|
@@ -2201,7 +2201,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2201
2201
|
resetting
|
|
2202
2202
|
)
|
|
2203
2203
|
);
|
|
2204
|
-
settings.command("paths").description("List existing locations (one bounded page).").option("--root <person|team>", "Filter by root").option("--limit <n>", "Plays to inspect, 1\u2013100", "50").option("--cursor <cursor>", "Continue from a previous page").option("--json", "Emit JSON
|
|
2204
|
+
settings.command("paths").description("List existing locations (one bounded page).").option("--root <person|team>", "Filter by root").option("--limit <n>", "Plays to inspect, 1\u2013100", "50").option("--cursor <cursor>", "Continue from a previous page").option("--json", "Emit JSON").addHelpText("after", help).action(
|
|
2205
2205
|
async (options, command) => {
|
|
2206
2206
|
const limit = Number(options.limit);
|
|
2207
2207
|
if (options.root !== void 0 && options.root !== "person" && options.root !== "team" || !Number.isInteger(limit) || limit < 1 || limit > 100)
|
|
@@ -2209,13 +2209,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2209
2209
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2210
2210
|
{ exitCode: 2 }
|
|
2211
2211
|
);
|
|
2212
|
-
const page = await new (0,
|
|
2212
|
+
const page = await new (0, _chunk44SHFHA3js.DeeplineClient)().listPlaySettingsPaths({
|
|
2213
2213
|
root: options.root,
|
|
2214
2214
|
limit,
|
|
2215
2215
|
cursor: options.cursor
|
|
2216
2216
|
});
|
|
2217
|
-
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}
|
|
2218
|
-
|
|
2217
|
+
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2218
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
2219
2219
|
{
|
|
2220
2220
|
...page,
|
|
2221
2221
|
nextCommand,
|
|
@@ -2245,7 +2245,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2245
2245
|
).option(
|
|
2246
2246
|
"--owner <user-id>",
|
|
2247
2247
|
"Personal-root owner, when several people have the --from folder or --to is person"
|
|
2248
|
-
).option("--dry-run", "Show the planned moves without changing settings").option("--json", "Emit JSON
|
|
2248
|
+
).option("--dry-run", "Show the planned moves without changing settings").option("--json", "Emit JSON").addHelpText("after", help).action(
|
|
2249
2249
|
async (options, command) => {
|
|
2250
2250
|
let fromPath;
|
|
2251
2251
|
let toPath;
|
|
@@ -2266,7 +2266,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2266
2266
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.root]), () => ( "person")),
|
|
2267
2267
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _14 => _14.folders]), () => ( []))
|
|
2268
2268
|
};
|
|
2269
|
-
const client = new (0,
|
|
2269
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
2270
2270
|
const paths = [];
|
|
2271
2271
|
let cursor;
|
|
2272
2272
|
do {
|
|
@@ -2328,7 +2328,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2328
2328
|
moved.push(move.playName);
|
|
2329
2329
|
}
|
|
2330
2330
|
}
|
|
2331
|
-
|
|
2331
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
2332
2332
|
{
|
|
2333
2333
|
dryRun: Boolean(options.dryRun),
|
|
2334
2334
|
from: options.from,
|
|
@@ -2427,7 +2427,7 @@ already live does nothing. Git-deployed Plays are read-only here: change the
|
|
|
2427
2427
|
trigger in the repository.
|
|
2428
2428
|
|
|
2429
2429
|
Examples:
|
|
2430
|
-
deepline plays trigger get --play daily-sync
|
|
2430
|
+
deepline plays trigger get --play daily-sync
|
|
2431
2431
|
deepline plays trigger set-cron --play daily-sync --schedule "0 9 * * 1-5" --timezone America/New_York
|
|
2432
2432
|
deepline plays trigger set-cron --play daily-sync --schedule "0 * * * *" --input '{"domain":"example.com"}'
|
|
2433
2433
|
deepline plays trigger clear-cron --play daily-sync
|
|
@@ -2456,7 +2456,7 @@ function triggerLines(view) {
|
|
|
2456
2456
|
return lines;
|
|
2457
2457
|
}
|
|
2458
2458
|
function printView(view, json) {
|
|
2459
|
-
|
|
2459
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
2460
2460
|
{
|
|
2461
2461
|
...view,
|
|
2462
2462
|
render: {
|
|
@@ -2469,7 +2469,7 @@ function printView(view, json) {
|
|
|
2469
2469
|
);
|
|
2470
2470
|
}
|
|
2471
2471
|
function printResult(result, json) {
|
|
2472
|
-
|
|
2472
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
2473
2473
|
{
|
|
2474
2474
|
...result,
|
|
2475
2475
|
render: {
|
|
@@ -2499,7 +2499,7 @@ async function mutate(command, options, build) {
|
|
|
2499
2499
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2500
2500
|
}
|
|
2501
2501
|
if (options.dryRun) {
|
|
2502
|
-
|
|
2502
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
2503
2503
|
{
|
|
2504
2504
|
dryRun: true,
|
|
2505
2505
|
play: options.play,
|
|
@@ -2518,7 +2518,7 @@ async function mutate(command, options, build) {
|
|
|
2518
2518
|
return;
|
|
2519
2519
|
}
|
|
2520
2520
|
printResult(
|
|
2521
|
-
await new (0,
|
|
2521
|
+
await new (0, _chunk44SHFHA3js.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2522
2522
|
options.json
|
|
2523
2523
|
);
|
|
2524
2524
|
}
|
|
@@ -2526,7 +2526,7 @@ function withMutationOptions(command) {
|
|
|
2526
2526
|
return command.requiredOption("--play <play>", "Play to change").option(
|
|
2527
2527
|
"--expected-revision <id>",
|
|
2528
2528
|
"Refuse the change if the live revision is no longer this one"
|
|
2529
|
-
).option("--dry-run", "Show the change without publishing").option("--json", "Emit JSON
|
|
2529
|
+
).option("--dry-run", "Show the change without publishing").option("--json", "Emit JSON").addHelpText("after", help2);
|
|
2530
2530
|
}
|
|
2531
2531
|
function parseInput(command, raw) {
|
|
2532
2532
|
let parsed;
|
|
@@ -2549,9 +2549,9 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2549
2549
|
if (error.exitCode !== 0) error.exitCode = 2;
|
|
2550
2550
|
throw error;
|
|
2551
2551
|
}).addHelpText("after", help2);
|
|
2552
|
-
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON
|
|
2552
|
+
trigger.command("get").description("Show the cron and webhook triggers of a Play.").requiredOption("--play <play>", "Play to read").option("--json", "Emit JSON").addHelpText("after", help2).action(async (options) => {
|
|
2553
2553
|
printView(
|
|
2554
|
-
await new (0,
|
|
2554
|
+
await new (0, _chunk44SHFHA3js.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2555
2555
|
options.json
|
|
2556
2556
|
);
|
|
2557
2557
|
});
|
|
@@ -2595,7 +2595,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2595
2595
|
if (options.auth === void 0) {
|
|
2596
2596
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2597
2597
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2598
|
-
const current = await new (0,
|
|
2598
|
+
const current = await new (0, _chunk44SHFHA3js.DeeplineClient)().getPlayTriggerConfig(
|
|
2599
2599
|
options.play
|
|
2600
2600
|
);
|
|
2601
2601
|
return {
|
|
@@ -2672,7 +2672,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2672
2672
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2673
2673
|
"runtime.event": "Other event."
|
|
2674
2674
|
};
|
|
2675
|
-
var RUN_LOGS_KIND_HELP =
|
|
2675
|
+
var RUN_LOGS_KIND_HELP = _chunk44SHFHA3js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2676
2676
|
kind,
|
|
2677
2677
|
description: KIND_DESCRIPTIONS[kind]
|
|
2678
2678
|
}));
|
|
@@ -2683,35 +2683,35 @@ var READ_EXAMPLES = [
|
|
|
2683
2683
|
var FILTER_EXAMPLES = [
|
|
2684
2684
|
{
|
|
2685
2685
|
label: "Failed work with saved details",
|
|
2686
|
-
command: `deepline runs logs --kind receipt.failed --where '$.status == "failed"' --payloads
|
|
2686
|
+
command: `deepline runs logs --kind receipt.failed --where '$.status == "failed"' --payloads`
|
|
2687
2687
|
},
|
|
2688
2688
|
{
|
|
2689
2689
|
label: "One failed step",
|
|
2690
|
-
command: `deepline runs logs --kind step.failed --where '$.stepId == "company-lookup"' --payloads
|
|
2690
|
+
command: `deepline runs logs --kind step.failed --where '$.stepId == "company-lookup"' --payloads`
|
|
2691
2691
|
},
|
|
2692
2692
|
{
|
|
2693
2693
|
label: "Provider and operation",
|
|
2694
|
-
command: `deepline runs logs --kind activity.observed --where '$.provider == "apollo" && $.operation == "company_lookup"'
|
|
2694
|
+
command: `deepline runs logs --kind activity.observed --where '$.provider == "apollo" && $.operation == "company_lookup"'`
|
|
2695
2695
|
},
|
|
2696
2696
|
{
|
|
2697
2697
|
label: "Failed dataset",
|
|
2698
|
-
command: `deepline runs logs --kind dataset.lifecycle --where '$.datasetId == "companies" && $.phase == "failed"' --payloads
|
|
2698
|
+
command: `deepline runs logs --kind dataset.lifecycle --where '$.datasetId == "companies" && $.phase == "failed"' --payloads`
|
|
2699
2699
|
},
|
|
2700
2700
|
{
|
|
2701
2701
|
label: "String log context",
|
|
2702
|
-
command: `deepline runs logs --kind log.appended --where '$.context.companyId == "acme_123"'
|
|
2702
|
+
command: `deepline runs logs --kind log.appended --where '$.context.companyId == "acme_123"'`
|
|
2703
2703
|
},
|
|
2704
2704
|
{
|
|
2705
2705
|
label: "Number and boolean log context",
|
|
2706
|
-
command: "deepline runs logs --kind log.appended --where '$.context.attempt == 2 && $.context.cached == false'
|
|
2706
|
+
command: "deepline runs logs --kind log.appended --where '$.context.attempt == 2 && $.context.cached == false'"
|
|
2707
2707
|
},
|
|
2708
2708
|
{
|
|
2709
2709
|
label: "One run and step",
|
|
2710
|
-
command: `deepline runs logs '<run-id>' --where '$.stepId == "company-lookup"'
|
|
2710
|
+
command: `deepline runs logs '<run-id>' --where '$.stepId == "company-lookup"'`
|
|
2711
2711
|
},
|
|
2712
2712
|
{
|
|
2713
2713
|
label: "Error logs for one step",
|
|
2714
|
-
command: `deepline runs logs --kind log.appended --where '$.level == "error" && $.stepId == "company-lookup"' --payloads
|
|
2714
|
+
command: `deepline runs logs --kind log.appended --where '$.level == "error" && $.stepId == "company-lookup"' --payloads`
|
|
2715
2715
|
}
|
|
2716
2716
|
];
|
|
2717
2717
|
function wrapParagraph(text) {
|
|
@@ -2733,9 +2733,9 @@ function renderRunLogsHelp() {
|
|
|
2733
2733
|
"Examples:",
|
|
2734
2734
|
` ${READ_EXAMPLES[0]}`,
|
|
2735
2735
|
" deepline runs logs '<run-id>' --step company-lookup --level warn --since 1h",
|
|
2736
|
-
" deepline runs logs '<run-id>' --query timeout --count
|
|
2737
|
-
` deepline runs logs --where '$.eventId == "receipt:5a32ee1a-46cf-4853-b72b-5f1d782ffab4"' --payloads
|
|
2738
|
-
" deepline runs logs --kind run.failed
|
|
2736
|
+
" deepline runs logs '<run-id>' --query timeout --count",
|
|
2737
|
+
` deepline runs logs --where '$.eventId == "receipt:5a32ee1a-46cf-4853-b72b-5f1d782ffab4"' --payloads`,
|
|
2738
|
+
" deepline runs logs --kind run.failed",
|
|
2739
2739
|
...[
|
|
2740
2740
|
FILTER_EXAMPLES[1],
|
|
2741
2741
|
FILTER_EXAMPLES[2],
|
|
@@ -2809,9 +2809,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2809
2809
|
const args = program.args;
|
|
2810
2810
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2811
2811
|
error.exitCode = 2;
|
|
2812
|
-
if (
|
|
2813
|
-
|
|
2814
|
-
Object.assign(new (0,
|
|
2812
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2813
|
+
_chunkBO3ADIBVjs.printJsonError.call(void 0,
|
|
2814
|
+
Object.assign(new (0, _chunk44SHFHA3js.RunEventQueryInputError)(error.message), {
|
|
2815
2815
|
exitCode: 2,
|
|
2816
2816
|
retryable: false
|
|
2817
2817
|
})
|
|
@@ -2855,14 +2855,14 @@ function parseQuery(args, resource) {
|
|
|
2855
2855
|
if (VALUE_FLAGS.has(flag)) {
|
|
2856
2856
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2857
2857
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2858
|
-
throw new (0,
|
|
2858
|
+
throw new (0, _chunk44SHFHA3js.RunEventQueryInputError)(
|
|
2859
2859
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2860
2860
|
);
|
|
2861
2861
|
}
|
|
2862
2862
|
if (flag === "--sum") sums.push(value);
|
|
2863
2863
|
else {
|
|
2864
2864
|
if (values[flag] !== void 0) {
|
|
2865
|
-
throw new (0,
|
|
2865
|
+
throw new (0, _chunk44SHFHA3js.RunEventQueryInputError)(
|
|
2866
2866
|
`${flag} may only be supplied once.`
|
|
2867
2867
|
);
|
|
2868
2868
|
}
|
|
@@ -2876,12 +2876,12 @@ function parseQuery(args, resource) {
|
|
|
2876
2876
|
}
|
|
2877
2877
|
if (arg.startsWith("-")) {
|
|
2878
2878
|
const correction = flag === "--log-level" ? "Use --level for structured severity filtering." : flag === "--out" || flag === "--failed" || flag === "--all" ? "Use this flag with a plain runs logs <run-id> text read." : "Use --step, --level, --query, --where, --count, --group-by or --fields; see runs logs --help.";
|
|
2879
|
-
throw new (0,
|
|
2879
|
+
throw new (0, _chunk44SHFHA3js.RunEventQueryInputError)(
|
|
2880
2880
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2881
2881
|
);
|
|
2882
2882
|
}
|
|
2883
2883
|
if (runId !== void 0) {
|
|
2884
|
-
throw new (0,
|
|
2884
|
+
throw new (0, _chunk44SHFHA3js.RunEventQueryInputError)(
|
|
2885
2885
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2886
2886
|
);
|
|
2887
2887
|
}
|
|
@@ -2889,7 +2889,7 @@ function parseQuery(args, resource) {
|
|
|
2889
2889
|
}
|
|
2890
2890
|
if (switches.has("--fields")) {
|
|
2891
2891
|
if (runId !== void 0) {
|
|
2892
|
-
throw new (0,
|
|
2892
|
+
throw new (0, _chunk44SHFHA3js.RunEventQueryInputError)(
|
|
2893
2893
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2894
2894
|
);
|
|
2895
2895
|
}
|
|
@@ -2902,18 +2902,18 @@ function parseQuery(args, resource) {
|
|
|
2902
2902
|
)
|
|
2903
2903
|
];
|
|
2904
2904
|
if (incompatible.length) {
|
|
2905
|
-
throw new (0,
|
|
2905
|
+
throw new (0, _chunk44SHFHA3js.RunEventQueryInputError)(
|
|
2906
2906
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2907
2907
|
);
|
|
2908
2908
|
}
|
|
2909
2909
|
}
|
|
2910
2910
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2911
|
-
throw new (0,
|
|
2911
|
+
throw new (0, _chunk44SHFHA3js.RunEventQueryInputError)(
|
|
2912
2912
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2913
2913
|
);
|
|
2914
2914
|
}
|
|
2915
2915
|
if (sums.length && switches.has("--count")) {
|
|
2916
|
-
throw new (0,
|
|
2916
|
+
throw new (0, _chunk44SHFHA3js.RunEventQueryInputError)(
|
|
2917
2917
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2918
2918
|
);
|
|
2919
2919
|
}
|
|
@@ -2921,7 +2921,7 @@ function parseQuery(args, resource) {
|
|
|
2921
2921
|
if (operation === "count") {
|
|
2922
2922
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2923
2923
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2924
|
-
throw new (0,
|
|
2924
|
+
throw new (0, _chunk44SHFHA3js.RunEventQueryInputError)(
|
|
2925
2925
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2926
2926
|
);
|
|
2927
2927
|
}
|
|
@@ -2956,16 +2956,16 @@ function parseQuery(args, resource) {
|
|
|
2956
2956
|
];
|
|
2957
2957
|
}
|
|
2958
2958
|
}
|
|
2959
|
-
const request =
|
|
2959
|
+
const request = _chunk44SHFHA3js.normalizeRunEventOperationRequest.call(void 0, body);
|
|
2960
2960
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
2961
2961
|
const backend = values["--runtime-backend"];
|
|
2962
2962
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
2963
|
-
throw new (0,
|
|
2963
|
+
throw new (0, _chunk44SHFHA3js.RunEventQueryInputError)(
|
|
2964
2964
|
"--runtime-backend must be daytona or modal."
|
|
2965
2965
|
);
|
|
2966
2966
|
}
|
|
2967
2967
|
if (backend && !namespace) {
|
|
2968
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunk44SHFHA3js.RunEventQueryInputError)(
|
|
2969
2969
|
"--runtime-backend requires --runtime-namespace."
|
|
2970
2970
|
);
|
|
2971
2971
|
}
|
|
@@ -3002,8 +3002,7 @@ function continuation(parsed, query, cursor) {
|
|
|
3002
3002
|
"--limit",
|
|
3003
3003
|
String("limit" in request ? request.limit : ""),
|
|
3004
3004
|
"--cursor",
|
|
3005
|
-
shellQuote2(cursor)
|
|
3006
|
-
"--json"
|
|
3005
|
+
shellQuote2(cursor)
|
|
3007
3006
|
].join(" ");
|
|
3008
3007
|
}
|
|
3009
3008
|
async function handleRunEventQuery(args, resource = "logs") {
|
|
@@ -3013,12 +3012,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3013
3012
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3014
3013
|
const record3 = failure;
|
|
3015
3014
|
const status = record3.statusCode;
|
|
3016
|
-
const exitCode = error instanceof
|
|
3015
|
+
const exitCode = error instanceof _chunk44SHFHA3js.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;
|
|
3017
3016
|
const diagnostic = Object.assign(failure, {
|
|
3018
3017
|
exitCode,
|
|
3019
3018
|
retryable: exitCode === 5
|
|
3020
3019
|
});
|
|
3021
|
-
if (
|
|
3020
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) _chunkBO3ADIBVjs.printJsonError.call(void 0, diagnostic);
|
|
3022
3021
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3023
3022
|
return exitCode;
|
|
3024
3023
|
}
|
|
@@ -3033,7 +3032,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3033
3032
|
...criteria
|
|
3034
3033
|
} = request;
|
|
3035
3034
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3036
|
-
const client = new (0,
|
|
3035
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
3037
3036
|
let result;
|
|
3038
3037
|
if (request.operation === "fields") {
|
|
3039
3038
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3099,13 +3098,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3099
3098
|
lines.push(`Next page: ${nextPage}`);
|
|
3100
3099
|
}
|
|
3101
3100
|
}
|
|
3102
|
-
|
|
3101
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
3103
3102
|
{
|
|
3104
3103
|
...result,
|
|
3105
3104
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3106
3105
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3107
3106
|
},
|
|
3108
|
-
{ json:
|
|
3107
|
+
{ json: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3109
3108
|
` }
|
|
3110
3109
|
);
|
|
3111
3110
|
return 0;
|
|
@@ -3116,7 +3115,7 @@ function registerRunEventsCommand(runs) {
|
|
|
3116
3115
|
"Count and sum numeric values; repeatable, optionally grouped",
|
|
3117
3116
|
(field, previous) => [...previous, field],
|
|
3118
3117
|
[]
|
|
3119
|
-
).option("--fields", "Discover filter fields, types and operators").option("--limit <count>", "Rows or groups per page (maximum 200)").option("--cursor <token>", "Continue the exact preceding query").option("--payloads", "Include saved details: at most 10 events and 16 MiB").option("--json", "JSON output
|
|
3118
|
+
).option("--fields", "Discover filter fields, types and operators").option("--limit <count>", "Rows or groups per page (maximum 200)").option("--cursor <token>", "Continue the exact preceding query").option("--payloads", "Include saved details: at most 10 events and 16 MiB").option("--json", "JSON output").addOption(
|
|
3120
3119
|
new (0, _commander.Option)(
|
|
3121
3120
|
"--runtime-namespace <name>",
|
|
3122
3121
|
"Authorized Preview namespace"
|
|
@@ -3128,7 +3127,7 @@ function registerRunEventsCommand(runs) {
|
|
|
3128
3127
|
).hideHelp()
|
|
3129
3128
|
).addHelpText(
|
|
3130
3129
|
"after",
|
|
3131
|
-
"\nExamples:\n deepline runs events --kind step.failed --since 1h
|
|
3130
|
+
"\nExamples:\n deepline runs events --kind step.failed --since 1h\n deepline runs events --group-by kind --since 1h\n deepline runs events --fields\n"
|
|
3132
3131
|
).action(async (runId, options) => {
|
|
3133
3132
|
const args = runId ? [runId] : [];
|
|
3134
3133
|
for (const [key, flag] of [
|
|
@@ -3505,9 +3504,9 @@ function excludePreviewMetadata(value) {
|
|
|
3505
3504
|
}
|
|
3506
3505
|
function lifecycleActions(status, id, state) {
|
|
3507
3506
|
return {
|
|
3508
|
-
...["started", "queued", "running", "waiting"].includes(_nullishCoalesce(state, () => ( ""))) ? { stopRunCmd: `deepline runs stop ${id}
|
|
3507
|
+
...["started", "queued", "running", "waiting"].includes(_nullishCoalesce(state, () => ( ""))) ? { stopRunCmd: `deepline runs stop ${id}` } : {},
|
|
3509
3508
|
...state === "failed" ? {
|
|
3510
|
-
getFailedLogsCmd: `deepline runs logs ${id} --failed
|
|
3509
|
+
getFailedLogsCmd: `deepline runs logs ${id} --failed`,
|
|
3511
3510
|
...status.rerunCommand ? { rerunCmd: status.rerunCommand } : {}
|
|
3512
3511
|
} : {}
|
|
3513
3512
|
};
|
|
@@ -3639,7 +3638,7 @@ function buildRunOverview(status, fullStatus) {
|
|
|
3639
3638
|
const pkg = inspectedStatus.package;
|
|
3640
3639
|
if (!pkg) {
|
|
3641
3640
|
throw new Error(
|
|
3642
|
-
"This server did not return a run package; use runs get --full
|
|
3641
|
+
"This server did not return a run package; use runs get --full."
|
|
3643
3642
|
);
|
|
3644
3643
|
}
|
|
3645
3644
|
const outputs = Object.entries(pkg.outputs);
|
|
@@ -3806,7 +3805,7 @@ function buildRunOverview(status, fullStatus) {
|
|
|
3806
3805
|
function receiptAction(id) {
|
|
3807
3806
|
const quotedId = `'${id.replace(/'/g, "'\\''")}'`;
|
|
3808
3807
|
return {
|
|
3809
|
-
getReceiptCmd: `deepline runs logs ${quotedId} --kind receipt.completed --payloads
|
|
3808
|
+
getReceiptCmd: `deepline runs logs ${quotedId} --kind receipt.completed --payloads`
|
|
3810
3809
|
};
|
|
3811
3810
|
}
|
|
3812
3811
|
function buildRunNavigation(status) {
|
|
@@ -3821,9 +3820,9 @@ function buildRunNavigation(status) {
|
|
|
3821
3820
|
datasets: [],
|
|
3822
3821
|
actions: {
|
|
3823
3822
|
...lifecycleActions(status, id, status.status),
|
|
3824
|
-
getRunCmd: `deepline runs get ${id}
|
|
3825
|
-
getFullRunCmd: `deepline runs get ${id} --full
|
|
3826
|
-
getLogsCmd: `deepline runs logs ${id} --limit 100
|
|
3823
|
+
getRunCmd: `deepline runs get ${id}`,
|
|
3824
|
+
getFullRunCmd: `deepline runs get ${id} --full`,
|
|
3825
|
+
getLogsCmd: `deepline runs logs ${id} --limit 100`,
|
|
3827
3826
|
...receiptAction(id)
|
|
3828
3827
|
}
|
|
3829
3828
|
};
|
|
@@ -3925,8 +3924,8 @@ function checkedRunExample(plays, target) {
|
|
|
3925
3924
|
const quote = (value) => `'${value.replace(/'/g, `'\\''`)}'`;
|
|
3926
3925
|
const base = `deepline plays run --file ${quote(target)}`;
|
|
3927
3926
|
return {
|
|
3928
|
-
command: `${base}${
|
|
3929
|
-
note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema.
|
|
3927
|
+
command: `${base}${_chunk44SHFHA3js.playInputExampleArgs.call(void 0, schema)}`,
|
|
3928
|
+
note: "Runs the local file without publishing and may spend credits. Supply the indicated file; JSON input must match inputSchema."
|
|
3930
3929
|
};
|
|
3931
3930
|
}
|
|
3932
3931
|
function buildPlayCheckOutput(input) {
|
|
@@ -4003,7 +4002,7 @@ function registerRunReceiptCommand(runs) {
|
|
|
4003
4002
|
"after",
|
|
4004
4003
|
`
|
|
4005
4004
|
Examples:
|
|
4006
|
-
deepline runs logs <run-id> --kind receipt.completed --payloads
|
|
4005
|
+
deepline runs logs <run-id> --kind receipt.completed --payloads
|
|
4007
4006
|
|
|
4008
4007
|
Returns one outcome per key, preserving order and duplicates. A missing or
|
|
4009
4008
|
unavailable result is explicit; other keys are still returned. Exit 4 means
|
|
@@ -4023,7 +4022,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4023
4022
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4024
4023
|
);
|
|
4025
4024
|
}
|
|
4026
|
-
const response = await new (0,
|
|
4025
|
+
const response = await new (0, _chunk44SHFHA3js.DeeplineClient)().runs.getReceipts(runId, {
|
|
4027
4026
|
keys
|
|
4028
4027
|
});
|
|
4029
4028
|
const failed = response.receipts.filter(
|
|
@@ -4035,7 +4034,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4035
4034
|
JSON.stringify(response, null, 2) + "\n",
|
|
4036
4035
|
{ flag: "wx", mode: 384 }
|
|
4037
4036
|
);
|
|
4038
|
-
|
|
4037
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
4039
4038
|
{
|
|
4040
4039
|
runId,
|
|
4041
4040
|
out: options.out,
|
|
@@ -4045,7 +4044,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4045
4044
|
{ json: true }
|
|
4046
4045
|
);
|
|
4047
4046
|
} else {
|
|
4048
|
-
|
|
4047
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4049
4048
|
}
|
|
4050
4049
|
if (failed)
|
|
4051
4050
|
process.exitCode = response.receipts.some(
|
|
@@ -4065,12 +4064,12 @@ function registerRunChildrenCommand(runs) {
|
|
|
4065
4064
|
).requiredOption(
|
|
4066
4065
|
"--launch-key <key>",
|
|
4067
4066
|
"Authored ctx.runPlayAsync launch key"
|
|
4068
|
-
).option("--cursor <cursor>", "Opaque cursor from the previous page").option("--limit <number>", "Rows to request (1\u201350; default 50)", "50").option("--json", "Emit JSON output
|
|
4067
|
+
).option("--cursor <cursor>", "Opaque cursor from the previous page").option("--limit <number>", "Rows to request (1\u201350; default 50)", "50").option("--json", "Emit JSON output").addHelpText(
|
|
4069
4068
|
"after",
|
|
4070
4069
|
`
|
|
4071
4070
|
Examples:
|
|
4072
|
-
deepline runs children 'play/demo/run/parent' --launch-key approval
|
|
4073
|
-
deepline runs children 'play/demo/run/parent' --launch-key approval --cursor '<cursor>' --limit 25
|
|
4071
|
+
deepline runs children 'play/demo/run/parent' --launch-key approval
|
|
4072
|
+
deepline runs children 'play/demo/run/parent' --launch-key approval --cursor '<cursor>' --limit 25
|
|
4074
4073
|
|
|
4075
4074
|
The command is read-only. Each response contains at most 50 child Runs and
|
|
4076
4075
|
includes nextCommand when another page is available.
|
|
@@ -4084,7 +4083,7 @@ includes nextCommand when another page is available.
|
|
|
4084
4083
|
{ exitCode: 2 }
|
|
4085
4084
|
);
|
|
4086
4085
|
}
|
|
4087
|
-
const page = await new (0,
|
|
4086
|
+
const page = await new (0, _chunk44SHFHA3js.DeeplineClient)().runs.children(parentRunId, {
|
|
4088
4087
|
launchKey: options.launchKey,
|
|
4089
4088
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4090
4089
|
limit
|
|
@@ -4097,10 +4096,9 @@ includes nextCommand when another page is available.
|
|
|
4097
4096
|
"--cursor",
|
|
4098
4097
|
shellQuote3(page.nextCursor),
|
|
4099
4098
|
"--limit",
|
|
4100
|
-
String(limit)
|
|
4101
|
-
"--json"
|
|
4099
|
+
String(limit)
|
|
4102
4100
|
].join(" ") : null;
|
|
4103
|
-
|
|
4101
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
4104
4102
|
{
|
|
4105
4103
|
parentRunId,
|
|
4106
4104
|
launchKey: options.launchKey,
|
|
@@ -4136,7 +4134,7 @@ async function handleRunsHistory(options) {
|
|
|
4136
4134
|
throw new Error("--limit must be a positive integer.");
|
|
4137
4135
|
}
|
|
4138
4136
|
}
|
|
4139
|
-
const page = await new (0,
|
|
4137
|
+
const page = await new (0, _chunk44SHFHA3js.DeeplineClient)().runs.history({
|
|
4140
4138
|
cursor: options.cursor,
|
|
4141
4139
|
orgId: options.org,
|
|
4142
4140
|
search: options.search,
|
|
@@ -4152,7 +4150,7 @@ async function handleRunsHistory(options) {
|
|
|
4152
4150
|
);
|
|
4153
4151
|
}
|
|
4154
4152
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4155
|
-
|
|
4153
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
4156
4154
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4157
4155
|
options.json ? { json: true } : {}
|
|
4158
4156
|
);
|
|
@@ -4170,9 +4168,9 @@ function registerRunHistoryCommand(runs) {
|
|
|
4170
4168
|
).option(
|
|
4171
4169
|
"--org <id>",
|
|
4172
4170
|
"Workspace ID (must match the authenticated workspace)"
|
|
4173
|
-
).option("--json", "Emit JSON output
|
|
4171
|
+
).option("--json", "Emit JSON output").addHelpText(
|
|
4174
4172
|
"after",
|
|
4175
|
-
"\nUse the opaque --cursor returned by the previous page to continue.\n\nExample:\n deepline runs history --limit 100
|
|
4173
|
+
"\nUse the opaque --cursor returned by the previous page to continue.\n\nExample:\n deepline runs history --limit 100\n"
|
|
4176
4174
|
).action(handleRunsHistory);
|
|
4177
4175
|
}
|
|
4178
4176
|
|
|
@@ -4204,19 +4202,19 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4204
4202
|
return 1;
|
|
4205
4203
|
}
|
|
4206
4204
|
}
|
|
4207
|
-
const result = await new (0,
|
|
4205
|
+
const result = await new (0, _chunk44SHFHA3js.DeeplineClient)().runs.rerun(runId, {
|
|
4208
4206
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4209
4207
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4210
4208
|
});
|
|
4211
|
-
if (
|
|
4212
|
-
|
|
4209
|
+
if (_chunkBO3ADIBVjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4210
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4213
4211
|
} else {
|
|
4214
4212
|
console.log(
|
|
4215
4213
|
result.deduplicated === true ? `
|
|
4216
4214
|
Rerun already exists for ${runId} (matched by idempotency key): ${result.runId}` : `
|
|
4217
4215
|
Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
4218
4216
|
);
|
|
4219
|
-
console.log(` inspect: deepline runs get ${result.runId}
|
|
4217
|
+
console.log(` inspect: deepline runs get ${result.runId}`);
|
|
4220
4218
|
console.log(` original input: deepline runs get ${result.runId} --input`);
|
|
4221
4219
|
console.log(
|
|
4222
4220
|
result.deduplicated === true ? " No new run was started. Use a different --idempotency-key to start another rerun." : ` This is a fresh run using the original input${inputOverrides ? " with the supplied field overrides" : ""} and pinned revision. Normal tool receipt reuse still applies.`
|
|
@@ -4477,7 +4475,7 @@ function projectRunDatasetCell(value) {
|
|
|
4477
4475
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
4478
4476
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
4479
4477
|
if (typeof logicalValue === "object") {
|
|
4480
|
-
return
|
|
4478
|
+
return _chunkBO3ADIBVjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
4481
4479
|
}
|
|
4482
4480
|
return logicalValue;
|
|
4483
4481
|
}
|
|
@@ -6894,7 +6892,7 @@ function renderOutcome(outcome) {
|
|
|
6894
6892
|
function printResult2(input) {
|
|
6895
6893
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6896
6894
|
if (failed) process.exitCode = 1;
|
|
6897
|
-
|
|
6895
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
6898
6896
|
{
|
|
6899
6897
|
deployment: { ...input.deployment, status: input.status },
|
|
6900
6898
|
plays: input.outcomes,
|
|
@@ -6919,7 +6917,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6919
6917
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6920
6918
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6921
6919
|
});
|
|
6922
|
-
const { http, config } =
|
|
6920
|
+
const { http, config } = _chunkBO3ADIBVjs.getAuthedHttpClient.call(void 0, );
|
|
6923
6921
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6924
6922
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6925
6923
|
deliveryId,
|
|
@@ -6946,7 +6944,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6946
6944
|
},
|
|
6947
6945
|
{
|
|
6948
6946
|
bundle: bundleDeployPlayFile,
|
|
6949
|
-
fetchImpl:
|
|
6947
|
+
fetchImpl: _chunkA7X7KFXXjs.fetchWithDeploymentProtection,
|
|
6950
6948
|
// The plays are already here: "opening" the source is naming it.
|
|
6951
6949
|
openSource: async () => ({
|
|
6952
6950
|
open: async () => ({ repoRoot: root })
|
|
@@ -7514,7 +7512,7 @@ function parseInputFlagValue(raw) {
|
|
|
7514
7512
|
return raw;
|
|
7515
7513
|
}
|
|
7516
7514
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
7517
|
-
const selection =
|
|
7515
|
+
const selection = _chunkBO3ADIBVjs.parseJsonFields.call(void 0, args, "run");
|
|
7518
7516
|
args = selection.args;
|
|
7519
7517
|
const usage2 = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and ctx.dataset guidance.";
|
|
7520
7518
|
let filePath = null;
|
|
@@ -7524,7 +7522,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7524
7522
|
let revisionSelector = null;
|
|
7525
7523
|
const watch = !args.includes("--no-wait");
|
|
7526
7524
|
const dryRun = args.includes("--dry-run");
|
|
7527
|
-
let jsonOutput = dryRun ?
|
|
7525
|
+
let jsonOutput = dryRun ? _chunkBO3ADIBVjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkBO3ADIBVjs.argsWantJson.call(void 0, args);
|
|
7528
7526
|
const fullJson = args.includes("--full");
|
|
7529
7527
|
const force = args.includes("--force");
|
|
7530
7528
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -7571,7 +7569,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
7571
7569
|
"--log-level requires one of: debug, info, warn, error."
|
|
7572
7570
|
);
|
|
7573
7571
|
}
|
|
7574
|
-
const parsed =
|
|
7572
|
+
const parsed = _chunk44SHFHA3js.parseLogLevel.call(void 0, value);
|
|
7575
7573
|
if (!parsed) {
|
|
7576
7574
|
throw new Error(
|
|
7577
7575
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -7878,7 +7876,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7878
7876
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
7879
7877
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
7880
7878
|
);
|
|
7881
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
7879
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk44SHFHA3js.parseLogLevel.call(void 0, options.logLevel);
|
|
7882
7880
|
if (!logLevel)
|
|
7883
7881
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
7884
7882
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -7892,13 +7890,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
|
|
|
7892
7890
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
7893
7891
|
logLevel = "debug";
|
|
7894
7892
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
7895
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
7896
|
-
[...fullJson ? ["--full"] : [], ...
|
|
7893
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkBO3ADIBVjs.parseJsonFields.call(void 0,
|
|
7894
|
+
[...fullJson ? ["--full"] : [], ..._chunkBO3ADIBVjs.jsonFieldArgs.call(void 0, options.json)],
|
|
7897
7895
|
"run"
|
|
7898
7896
|
).fields;
|
|
7899
7897
|
const watch = options.wait === false ? false : base.watch;
|
|
7900
7898
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
7901
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
7899
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkBO3ADIBVjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
7902
7900
|
const verboseLogs = Boolean(
|
|
7903
7901
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
7904
7902
|
);
|
|
@@ -7942,7 +7940,7 @@ function playAuthoringGraphPath(parent, filePath) {
|
|
|
7942
7940
|
// src/cli/renderers/local-play-execution.ts
|
|
7943
7941
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7944
7942
|
if (options.dryRun) {
|
|
7945
|
-
|
|
7943
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7946
7944
|
return;
|
|
7947
7945
|
}
|
|
7948
7946
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7976,6 +7974,14 @@ async function loadPlayBundler() {
|
|
|
7976
7974
|
})();
|
|
7977
7975
|
return playBundlerPromise;
|
|
7978
7976
|
}
|
|
7977
|
+
function liveMaxCreditsPerRun(sourceCode) {
|
|
7978
|
+
if (!sourceCode) return "source unavailable";
|
|
7979
|
+
if (!/\bmaxCreditsPerRun\b/.test(sourceCode)) return "not set";
|
|
7980
|
+
const literal = /\bmaxCreditsPerRun\s*:\s*([0-9][0-9_]*(?:\.[0-9]+)?)\b/.exec(
|
|
7981
|
+
sourceCode
|
|
7982
|
+
);
|
|
7983
|
+
return literal ? literal[1].replace(/_/g, "") : "not a literal (read it with plays get --source --live)";
|
|
7984
|
+
}
|
|
7979
7985
|
function resolveEvalIntegrationMode() {
|
|
7980
7986
|
const mode = process.env.DEEPLINE_EVAL_INTEGRATION_MODE;
|
|
7981
7987
|
if (mode === "live" || mode === "eval_stub" || mode === "fixture") {
|
|
@@ -8265,12 +8271,12 @@ function buildPlayReferenceNotFoundMessage(input) {
|
|
|
8265
8271
|
` deepline plays run ${suggestion.reference} --input '{...}'`
|
|
8266
8272
|
);
|
|
8267
8273
|
} else if (input.command === "get") {
|
|
8268
|
-
lines.push(` deepline plays get ${suggestion.reference}
|
|
8274
|
+
lines.push(` deepline plays get ${suggestion.reference}`);
|
|
8269
8275
|
} else if (input.command === "check") {
|
|
8270
|
-
lines.push(` deepline plays check ${suggestion.reference}
|
|
8276
|
+
lines.push(` deepline plays check ${suggestion.reference}`);
|
|
8271
8277
|
} else if (input.command === "versions") {
|
|
8272
8278
|
lines.push(
|
|
8273
|
-
` deepline plays versions --name ${suggestion.reference}
|
|
8279
|
+
` deepline plays versions --name ${suggestion.reference}`
|
|
8274
8280
|
);
|
|
8275
8281
|
} else {
|
|
8276
8282
|
lines.push(` deepline describe ${suggestion.reference}`);
|
|
@@ -8282,7 +8288,7 @@ function buildPlayReferenceNotFoundMessage(input) {
|
|
|
8282
8288
|
lines.push(
|
|
8283
8289
|
"",
|
|
8284
8290
|
"Search visible plays:",
|
|
8285
|
-
` deepline search --type plays ${_chunkAID3OYVJjs.shellQuote.call(void 0, searchQuery)}
|
|
8291
|
+
` deepline search --type plays ${_chunkAID3OYVJjs.shellQuote.call(void 0, searchQuery)}`
|
|
8286
8292
|
);
|
|
8287
8293
|
}
|
|
8288
8294
|
return lines.join("\n");
|
|
@@ -8496,8 +8502,8 @@ function looksLikeRunId(target) {
|
|
|
8496
8502
|
function formatPlayCommandReceivedRunIdError(input) {
|
|
8497
8503
|
return `\`deepline plays ${input.command} <run-id>\` expects a play name, but this looks like a run id.
|
|
8498
8504
|
Use:
|
|
8499
|
-
deepline runs get ${input.runId}
|
|
8500
|
-
deepline runs logs ${input.runId}
|
|
8505
|
+
deepline runs get ${input.runId}
|
|
8506
|
+
deepline runs logs ${input.runId}
|
|
8501
8507
|
deepline runs export ${input.runId} --out output.csv`;
|
|
8502
8508
|
}
|
|
8503
8509
|
function looksLikeFilePath2(target) {
|
|
@@ -8898,7 +8904,7 @@ function playStatusErrorText(status) {
|
|
|
8898
8904
|
function isRetryablePendingStartFailure(status) {
|
|
8899
8905
|
if (status.status !== "failed") return false;
|
|
8900
8906
|
if (status.runId && status.runId !== "pending") return false;
|
|
8901
|
-
return
|
|
8907
|
+
return _chunk44SHFHA3js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8902
8908
|
}
|
|
8903
8909
|
function pendingStartFailureStatus(input) {
|
|
8904
8910
|
const message = input.error instanceof Error ? input.error.message : String(input.error);
|
|
@@ -8925,13 +8931,13 @@ var PLAY_PROGRESS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
|
8925
8931
|
var PLAY_STATUS_HEARTBEAT_INTERVAL_MS = 15e3;
|
|
8926
8932
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8927
8933
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8928
|
-
if (!
|
|
8934
|
+
if (!_chunk44SHFHA3js.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8929
8935
|
return false;
|
|
8930
8936
|
}
|
|
8931
|
-
if (
|
|
8937
|
+
if (_chunk44SHFHA3js.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8932
8938
|
return true;
|
|
8933
8939
|
}
|
|
8934
|
-
return state.verbose === true &&
|
|
8940
|
+
return state.verbose === true && _chunk44SHFHA3js.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8935
8941
|
}
|
|
8936
8942
|
function getEventPayload(event) {
|
|
8937
8943
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9018,7 +9024,7 @@ function getRunLifecycleHint(input) {
|
|
|
9018
9024
|
}
|
|
9019
9025
|
const activity = getLiveRunActivity(input.event);
|
|
9020
9026
|
const activityConflictsWithDurableWait = status === "waiting" && _optionalChain([activity, 'optionalAccess', _282 => _282.observation, 'access', _283 => _283.state, 'access', _284 => _284.kind]) === "active" && activity.observation.target.kind !== "runner";
|
|
9021
|
-
const inspect = `'deepline runs get ${runId} --full
|
|
9027
|
+
const inspect = `'deepline runs get ${runId} --full'`;
|
|
9022
9028
|
const sleepState = _optionalChain([activity, 'optionalAccess', _285 => _285.observation, 'access', _286 => _286.state, 'access', _287 => _287.kind]) === "scheduled" && activity.observation.state.reason === "sleep" ? activity.observation.state : null;
|
|
9023
9029
|
if (status === "waiting" && (sleepState !== null || getLiveRunStringField(input.event, "waitKind") === "sleep")) {
|
|
9024
9030
|
const recordedWake = readLiveRunField(input.event, "waitUntil");
|
|
@@ -9124,7 +9130,7 @@ function getLogLinesFromLiveEvent(event) {
|
|
|
9124
9130
|
return Array.isArray(lines) ? lines.filter((line) => typeof line === "string") : [];
|
|
9125
9131
|
}
|
|
9126
9132
|
function buildRunInspectCommand(runId) {
|
|
9127
|
-
return `deepline runs get ${runId} --full
|
|
9133
|
+
return `deepline runs get ${runId} --full`;
|
|
9128
9134
|
}
|
|
9129
9135
|
function extractTableNamespaceFromLiveEvent(event) {
|
|
9130
9136
|
const payload = getEventPayload(event);
|
|
@@ -9433,7 +9439,7 @@ function buildPlayDashboardUrl(baseUrl, playName) {
|
|
|
9433
9439
|
}
|
|
9434
9440
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
9435
9441
|
if (open2 && dashboardUrl) {
|
|
9436
|
-
|
|
9442
|
+
_chunkBO3ADIBVjs.openInBrowser.call(void 0, dashboardUrl);
|
|
9437
9443
|
}
|
|
9438
9444
|
}
|
|
9439
9445
|
function printPlayLogLines(input) {
|
|
@@ -9449,7 +9455,7 @@ function assertPlayWaitNotTimedOut(input) {
|
|
|
9449
9455
|
if (input.waitTimeoutMs !== null && Date.now() - input.startedAt >= input.waitTimeoutMs) {
|
|
9450
9456
|
const hasRealRunId = input.workflowId.length > 0 && input.workflowId !== "pending";
|
|
9451
9457
|
const phaseSuffix = input.lastPhase && input.lastPhase.trim() ? ` (last observed phase: ${input.lastPhase.trim()})` : "";
|
|
9452
|
-
const tailHint = hasRealRunId ? ` The CLI stopped waiting; it did not cancel the run. Check its current state with 'deepline runs get ${input.workflowId}
|
|
9458
|
+
const tailHint = hasRealRunId ? ` The CLI stopped waiting; it did not cancel the run. Check its current state with 'deepline runs get ${input.workflowId}', or reattach with 'deepline runs watch ${input.workflowId}'. Do not start another run just to retrieve results.` : ` No run id was received, so acceptance is unknown. Check recent runs with 'deepline runs list --play <play-name>' before submitting again.`;
|
|
9453
9459
|
throw new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
9454
9460
|
`Timed out waiting for play ${hasRealRunId ? input.workflowId : "<no run id>"} after ${Math.ceil(input.waitTimeoutMs / 1e3)}s${phaseSuffix}.${tailHint}`,
|
|
9455
9461
|
void 0,
|
|
@@ -9495,7 +9501,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9495
9501
|
billing: false
|
|
9496
9502
|
});
|
|
9497
9503
|
} catch (error) {
|
|
9498
|
-
if (
|
|
9504
|
+
if (_chunk44SHFHA3js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9499
9505
|
return null;
|
|
9500
9506
|
}
|
|
9501
9507
|
throw error;
|
|
@@ -9684,7 +9690,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9684
9690
|
billing: false
|
|
9685
9691
|
});
|
|
9686
9692
|
} catch (error) {
|
|
9687
|
-
if (
|
|
9693
|
+
if (_chunk44SHFHA3js.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9688
9694
|
return null;
|
|
9689
9695
|
}
|
|
9690
9696
|
throw error;
|
|
@@ -9892,7 +9898,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9892
9898
|
lastPhase
|
|
9893
9899
|
});
|
|
9894
9900
|
}
|
|
9895
|
-
if (lastKnownWorkflowId &&
|
|
9901
|
+
if (lastKnownWorkflowId && _chunk44SHFHA3js.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9896
9902
|
if (timeout) {
|
|
9897
9903
|
clearTimeout(timeout);
|
|
9898
9904
|
}
|
|
@@ -9928,7 +9934,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9928
9934
|
onRunAdmitted: confirmAdmission
|
|
9929
9935
|
});
|
|
9930
9936
|
}
|
|
9931
|
-
if (!lastKnownWorkflowId &&
|
|
9937
|
+
if (!lastKnownWorkflowId && _chunk44SHFHA3js.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9932
9938
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
9933
9939
|
phase: "cli.play_start_stream_transient_failure",
|
|
9934
9940
|
ms: Date.now() - startedAt,
|
|
@@ -9985,7 +9991,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9985
9991
|
const phaseSuffix = lastPhase && lastPhase.trim() ? ` (last observed phase: ${lastPhase.trim()})` : "";
|
|
9986
9992
|
const idSuffix = lastKnownWorkflowId ? ` runId=${lastKnownWorkflowId}` : "";
|
|
9987
9993
|
throw new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
9988
|
-
`Play start request ended before terminal status was observed${idSuffix}${phaseSuffix}. If a run id was printed, inspect it with 'deepline runs get <run-id> --full
|
|
9994
|
+
`Play start request ended before terminal status was observed${idSuffix}${phaseSuffix}. If a run id was printed, inspect it with 'deepline runs get <run-id> --full' or continue watching with 'deepline runs watch <run-id>'.`,
|
|
9989
9995
|
void 0,
|
|
9990
9996
|
"PLAY_START_STREAM_ENDED",
|
|
9991
9997
|
{
|
|
@@ -10027,7 +10033,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10027
10033
|
"logs"
|
|
10028
10034
|
]);
|
|
10029
10035
|
function formatPlayLogLine(rawLine, state) {
|
|
10030
|
-
const classified =
|
|
10036
|
+
const classified = _chunk44SHFHA3js.classifyLogLine.call(void 0, rawLine);
|
|
10031
10037
|
const line = classified.line;
|
|
10032
10038
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10033
10039
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _308 => _308[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10042,14 +10048,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10042
10048
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10043
10049
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10044
10050
|
if (providerWait && !state.verbose) {
|
|
10045
|
-
return
|
|
10051
|
+
return _chunk44SHFHA3js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10046
10052
|
}
|
|
10047
10053
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10048
10054
|
if (mapProgress && !state.verbose) {
|
|
10049
|
-
return
|
|
10055
|
+
return _chunk44SHFHA3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10050
10056
|
}
|
|
10051
10057
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10052
|
-
if (!
|
|
10058
|
+
if (!_chunk44SHFHA3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10053
10059
|
return null;
|
|
10054
10060
|
}
|
|
10055
10061
|
if (state.emittedRunnerStarted) {
|
|
@@ -10062,7 +10068,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10062
10068
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10063
10069
|
);
|
|
10064
10070
|
if (mapStart) {
|
|
10065
|
-
if (!
|
|
10071
|
+
if (!_chunk44SHFHA3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10066
10072
|
return null;
|
|
10067
10073
|
}
|
|
10068
10074
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10072,7 +10078,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10072
10078
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10073
10079
|
);
|
|
10074
10080
|
if (mapDone) {
|
|
10075
|
-
if (!
|
|
10081
|
+
if (!_chunk44SHFHA3js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10076
10082
|
return null;
|
|
10077
10083
|
}
|
|
10078
10084
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10290,28 +10296,28 @@ function buildRunNextCommands(status) {
|
|
|
10290
10296
|
if (!runId) {
|
|
10291
10297
|
const playName = extractRunPlayName(status);
|
|
10292
10298
|
return playName ? {
|
|
10293
|
-
list: `deepline runs list --play ${playName}
|
|
10299
|
+
list: `deepline runs list --play ${playName}`
|
|
10294
10300
|
} : {
|
|
10295
|
-
list: "deepline runs list
|
|
10301
|
+
list: "deepline runs list"
|
|
10296
10302
|
};
|
|
10297
10303
|
}
|
|
10298
10304
|
const actions2 = buildRunNavigation(status).actions;
|
|
10299
10305
|
const exportDatasetCmds = Array.isArray(actions2.exportDatasetCmds) ? actions2.exportDatasetCmds : !status.package && extractCanonicalRowsInfo(status) ? [`deepline runs export ${runId} --out output.csv`] : [];
|
|
10300
10306
|
const commands = {
|
|
10301
|
-
get: String(_nullishCoalesce(actions2.getRunCmd, () => ( `deepline runs get ${runId}
|
|
10307
|
+
get: String(_nullishCoalesce(actions2.getRunCmd, () => ( `deepline runs get ${runId}`))),
|
|
10302
10308
|
full: String(
|
|
10303
|
-
_nullishCoalesce(actions2.getFullRunCmd, () => ( `deepline runs get ${runId} --full
|
|
10309
|
+
_nullishCoalesce(actions2.getFullRunCmd, () => ( `deepline runs get ${runId} --full`))
|
|
10304
10310
|
),
|
|
10305
10311
|
...exportDatasetCmds.length === 1 ? { export: String(exportDatasetCmds[0]) } : {},
|
|
10306
10312
|
logs: String(
|
|
10307
|
-
!status.package ? `deepline runs logs ${runId} --out run.log
|
|
10313
|
+
!status.package ? `deepline runs logs ${runId} --out run.log` : _nullishCoalesce(actions2.getLogsCmd, () => ( `deepline runs logs ${runId} --limit 100`))
|
|
10308
10314
|
)
|
|
10309
10315
|
};
|
|
10310
10316
|
if (["started", "queued", "running", "waiting"].includes(_nullishCoalesce(status.status, () => ( "")))) {
|
|
10311
|
-
commands.stop = `deepline runs stop ${runId}
|
|
10317
|
+
commands.stop = `deepline runs stop ${runId}`;
|
|
10312
10318
|
}
|
|
10313
10319
|
if (status.status === "failed") {
|
|
10314
|
-
commands.failedLogs = `deepline runs logs ${runId} --failed
|
|
10320
|
+
commands.failedLogs = `deepline runs logs ${runId} --failed`;
|
|
10315
10321
|
if (status.rerunCommand) commands.run = status.rerunCommand;
|
|
10316
10322
|
}
|
|
10317
10323
|
if (status.dashboardUrl) {
|
|
@@ -10379,8 +10385,8 @@ function insufficientCreditsRecoveryCommands(billing) {
|
|
|
10379
10385
|
_nullishCoalesce(billing.recommended_add_credits, () => ( billing.needed_credits))
|
|
10380
10386
|
);
|
|
10381
10387
|
return {
|
|
10382
|
-
topUp: `deepline billing top-up ${topUpCredits}
|
|
10383
|
-
checkout: `deepline billing checkout --credits ${topUpCredits} --no-open
|
|
10388
|
+
topUp: `deepline billing top-up ${topUpCredits}`,
|
|
10389
|
+
checkout: `deepline billing checkout --credits ${topUpCredits} --no-open`
|
|
10384
10390
|
};
|
|
10385
10391
|
}
|
|
10386
10392
|
function extractJsonObjectFromText(text) {
|
|
@@ -10508,7 +10514,7 @@ function buildInsufficientCreditsSummaryLines(input) {
|
|
|
10508
10514
|
lines.push(` checkout fallback: ${recovery.checkout}`);
|
|
10509
10515
|
const runId = _optionalChain([input, 'access', _325 => _325.status, 'access', _326 => _326.runId, 'optionalAccess', _327 => _327.trim, 'call', _328 => _328()]);
|
|
10510
10516
|
if (runId) {
|
|
10511
|
-
lines.push(` inspect: deepline runs get ${runId}
|
|
10517
|
+
lines.push(` inspect: deepline runs get ${runId}`);
|
|
10512
10518
|
lines.push(
|
|
10513
10519
|
` export partial: deepline runs export ${runId} --out output.csv`
|
|
10514
10520
|
);
|
|
@@ -10744,7 +10750,7 @@ function compactPlayStatus(status) {
|
|
|
10744
10750
|
next: {
|
|
10745
10751
|
..._nullishCoalesce(readRecord(packaged.next), () => ( {})),
|
|
10746
10752
|
...status.failedLogs ? {
|
|
10747
|
-
failedLogs: `deepline runs logs ${status.runId} --failed
|
|
10753
|
+
failedLogs: `deepline runs logs ${status.runId} --failed`
|
|
10748
10754
|
} : {},
|
|
10749
10755
|
...status.rerunCommand ? { run: status.rerunCommand } : {}
|
|
10750
10756
|
}
|
|
@@ -10757,14 +10763,14 @@ function compactPlayStatus(status) {
|
|
|
10757
10763
|
...status.failedLogs ? {
|
|
10758
10764
|
next: {
|
|
10759
10765
|
..._nullishCoalesce(readRecord(packaged.next), () => ( {})),
|
|
10760
|
-
failedLogs: `deepline runs logs ${status.runId} --failed
|
|
10766
|
+
failedLogs: `deepline runs logs ${status.runId} --failed`
|
|
10761
10767
|
}
|
|
10762
10768
|
} : {},
|
|
10763
10769
|
...status.rerunCommand ? {
|
|
10764
10770
|
next: {
|
|
10765
10771
|
..._nullishCoalesce(readRecord(packaged.next), () => ( {})),
|
|
10766
10772
|
...status.failedLogs ? {
|
|
10767
|
-
failedLogs: `deepline runs logs ${status.runId} --failed
|
|
10773
|
+
failedLogs: `deepline runs logs ${status.runId} --failed`
|
|
10768
10774
|
} : {},
|
|
10769
10775
|
run: status.rerunCommand
|
|
10770
10776
|
}
|
|
@@ -10925,13 +10931,13 @@ function actionToCommand(action) {
|
|
|
10925
10931
|
return record3.command.trim();
|
|
10926
10932
|
}
|
|
10927
10933
|
if (record3.kind === "deepline_run_inspect" && typeof record3.runId === "string") {
|
|
10928
|
-
return `deepline runs get ${record3.runId}
|
|
10934
|
+
return `deepline runs get ${record3.runId}`;
|
|
10929
10935
|
}
|
|
10930
10936
|
if (record3.kind === "deepline_run_full" && typeof record3.runId === "string") {
|
|
10931
|
-
return `deepline runs get ${record3.runId} --full
|
|
10937
|
+
return `deepline runs get ${record3.runId} --full`;
|
|
10932
10938
|
}
|
|
10933
10939
|
if (record3.kind === "deepline_run_billing" && typeof record3.runId === "string") {
|
|
10934
|
-
return `deepline billing usage --run-id ${record3.runId}
|
|
10940
|
+
return `deepline billing usage --run-id ${record3.runId}`;
|
|
10935
10941
|
}
|
|
10936
10942
|
if (record3.kind === "deepline_run_export" && typeof record3.runId === "string" && typeof record3.datasetPath === "string") {
|
|
10937
10943
|
return `deepline runs export ${record3.runId} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0,
|
|
@@ -10943,12 +10949,12 @@ function actionToCommand(action) {
|
|
|
10943
10949
|
return record3.command;
|
|
10944
10950
|
}
|
|
10945
10951
|
if (typeof record3.runId === "string") {
|
|
10946
|
-
return record3.view === "failed" ? `deepline runs logs ${record3.runId} --failed
|
|
10952
|
+
return record3.view === "failed" ? `deepline runs logs ${record3.runId} --failed` : `deepline runs logs ${record3.runId}`;
|
|
10947
10953
|
}
|
|
10948
10954
|
}
|
|
10949
10955
|
if (record3.kind === "deepline_db_query" && typeof record3.sql === "string") {
|
|
10950
10956
|
const maxRows = typeof record3.maxRows === "number" && Number.isFinite(record3.maxRows) ? Math.trunc(record3.maxRows) : 20;
|
|
10951
|
-
return `deepline db query --sql ${_chunkAID3OYVJjs.shellQuote.call(void 0, record3.sql)} --max-rows ${maxRows}
|
|
10957
|
+
return `deepline db query --sql ${_chunkAID3OYVJjs.shellQuote.call(void 0, record3.sql)} --max-rows ${maxRows}`;
|
|
10952
10958
|
}
|
|
10953
10959
|
return null;
|
|
10954
10960
|
}
|
|
@@ -11361,7 +11367,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11361
11367
|
(line) => typeof line === "string"
|
|
11362
11368
|
);
|
|
11363
11369
|
if (tail.length === 0) return [];
|
|
11364
|
-
const shown = tail.map((line) =>
|
|
11370
|
+
const shown = tail.map((line) => _chunk44SHFHA3js.classifyLogLine.call(void 0, line)).filter(
|
|
11365
11371
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11366
11372
|
).slice(-8);
|
|
11367
11373
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11637,11 +11643,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11637
11643
|
}
|
|
11638
11644
|
function writePlayResult(status, jsonOutput, options) {
|
|
11639
11645
|
const packaged = getPlayRunPackage(status);
|
|
11640
|
-
if (status.package)
|
|
11646
|
+
if (status.package) _chunk2JRRXXTAjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11641
11647
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _389 => _389.hits]), () => ( null));
|
|
11642
11648
|
if (jsonOutput) {
|
|
11643
11649
|
const payload2 = _optionalChain([options, 'optionalAccess', _390 => _390.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11644
|
-
|
|
11650
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
11645
11651
|
hits ? { ...payload2, hits } : payload2,
|
|
11646
11652
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _391 => _391.jsonFields]) }
|
|
11647
11653
|
);
|
|
@@ -11657,7 +11663,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11657
11663
|
...buildPlayCompletionTextLines(status),
|
|
11658
11664
|
...formatRunHitsLines(hits)
|
|
11659
11665
|
];
|
|
11660
|
-
|
|
11666
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11661
11667
|
json: false,
|
|
11662
11668
|
text: `${lines2.join("\n")}
|
|
11663
11669
|
`
|
|
@@ -11690,7 +11696,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11690
11696
|
)
|
|
11691
11697
|
);
|
|
11692
11698
|
if (status.status === "failed") {
|
|
11693
|
-
lines.push(` failed logs: deepline runs logs ${runId} --failed
|
|
11699
|
+
lines.push(` failed logs: deepline runs logs ${runId} --failed`);
|
|
11694
11700
|
if (status.rerunCommand) {
|
|
11695
11701
|
lines.push(" run again (completed work is reused):");
|
|
11696
11702
|
lines.push(` ${status.rerunCommand}`);
|
|
@@ -11708,7 +11714,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11708
11714
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11709
11715
|
const compact = compactPlayStatus(status);
|
|
11710
11716
|
const payload = _optionalChain([options, 'optionalAccess', _393 => _393.fullJson]) ? status : compact;
|
|
11711
|
-
|
|
11717
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
11712
11718
|
{
|
|
11713
11719
|
...payload,
|
|
11714
11720
|
render: {
|
|
@@ -12012,7 +12018,7 @@ function assertDatasetHasExportableRows(input) {
|
|
|
12012
12018
|
input.rowsInfo.rows.length
|
|
12013
12019
|
);
|
|
12014
12020
|
const terminalRunWithMissingAdvertisedRows = advertisedRows > 0 && (runStatus === "completed" || runStatus === "failed" || runStatus === "cancelled");
|
|
12015
|
-
const inspectCommand = `deepline runs get ${input.status.runId} --full
|
|
12021
|
+
const inspectCommand = `deepline runs get ${input.status.runId} --full`;
|
|
12016
12022
|
const retryCommand = runExportRetryCommand(
|
|
12017
12023
|
input.status.runId,
|
|
12018
12024
|
_nullishCoalesce(input.outPath, () => ( "output.csv")),
|
|
@@ -12290,9 +12296,9 @@ function formatActiveRunConflictError(input) {
|
|
|
12290
12296
|
lines.push(
|
|
12291
12297
|
` active: ${runId}${status ? ` status=${status}` : ""}${startedAt ? ` startedAt=${startedAt}` : ""}`
|
|
12292
12298
|
);
|
|
12293
|
-
lines.push(` get: deepline runs get ${runId}
|
|
12299
|
+
lines.push(` get: deepline runs get ${runId}`);
|
|
12294
12300
|
lines.push(
|
|
12295
|
-
` stop: deepline runs stop ${runId} --reason "stale lock"
|
|
12301
|
+
` stop: deepline runs stop ${runId} --reason "stale lock"`
|
|
12296
12302
|
);
|
|
12297
12303
|
}
|
|
12298
12304
|
lines.push(
|
|
@@ -12467,7 +12473,7 @@ function renderServerResultView(value) {
|
|
|
12467
12473
|
function writeStartedPlayRun(input) {
|
|
12468
12474
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12469
12475
|
const run = input.package.run;
|
|
12470
|
-
|
|
12476
|
+
_chunk2JRRXXTAjs.recordPlayTermination.call(void 0, {
|
|
12471
12477
|
id: run.id,
|
|
12472
12478
|
status: run.status,
|
|
12473
12479
|
finishedAt: run.finishedAt
|
|
@@ -12480,7 +12486,7 @@ function writeStartedPlayRun(input) {
|
|
|
12480
12486
|
dashboardUrl: input.dashboardUrl,
|
|
12481
12487
|
package: input.package
|
|
12482
12488
|
};
|
|
12483
|
-
|
|
12489
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12484
12490
|
json: true,
|
|
12485
12491
|
fields: input.jsonFields
|
|
12486
12492
|
});
|
|
@@ -12502,7 +12508,7 @@ function writeStartedPlayRun(input) {
|
|
|
12502
12508
|
input.progress.writeLine(output2, process.stdout);
|
|
12503
12509
|
return;
|
|
12504
12510
|
}
|
|
12505
|
-
|
|
12511
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12506
12512
|
json: false,
|
|
12507
12513
|
text: `${output2}
|
|
12508
12514
|
`
|
|
@@ -12528,10 +12534,10 @@ function writeStartedPlayRun(input) {
|
|
|
12528
12534
|
`Logs: deepline runs logs ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`,
|
|
12529
12535
|
...["started", "queued", "running", "waiting"].includes(
|
|
12530
12536
|
_nullishCoalesce(input.status, () => ( "started"))
|
|
12531
|
-
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}
|
|
12537
|
+
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12532
12538
|
];
|
|
12533
12539
|
if (input.jsonOutput) {
|
|
12534
|
-
|
|
12540
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12535
12541
|
return;
|
|
12536
12542
|
}
|
|
12537
12543
|
if (input.dashboardUrl) {
|
|
@@ -12542,7 +12548,7 @@ function writeStartedPlayRun(input) {
|
|
|
12542
12548
|
input.progress.writeLine(output, process.stdout);
|
|
12543
12549
|
return;
|
|
12544
12550
|
}
|
|
12545
|
-
|
|
12551
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
12546
12552
|
{
|
|
12547
12553
|
...payload,
|
|
12548
12554
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12552,7 +12558,7 @@ function writeStartedPlayRun(input) {
|
|
|
12552
12558
|
);
|
|
12553
12559
|
}
|
|
12554
12560
|
function parsePlayCheckOptions(args) {
|
|
12555
|
-
const selection =
|
|
12561
|
+
const selection = _chunkBO3ADIBVjs.parseJsonFields.call(void 0, args, "check");
|
|
12556
12562
|
args = selection.args;
|
|
12557
12563
|
const target = args[0];
|
|
12558
12564
|
if (!target || target.startsWith("-")) {
|
|
@@ -12564,7 +12570,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12564
12570
|
if (arg !== "--json" && arg !== "--full")
|
|
12565
12571
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12566
12572
|
}
|
|
12567
|
-
const jsonOutput =
|
|
12573
|
+
const jsonOutput = _chunkBO3ADIBVjs.argsWantJson.call(void 0, args);
|
|
12568
12574
|
return {
|
|
12569
12575
|
target,
|
|
12570
12576
|
jsonOutput,
|
|
@@ -12640,7 +12646,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12640
12646
|
useLatest,
|
|
12641
12647
|
expectedArtifactHash,
|
|
12642
12648
|
dryRun,
|
|
12643
|
-
jsonOutput:
|
|
12649
|
+
jsonOutput: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args)
|
|
12644
12650
|
};
|
|
12645
12651
|
}
|
|
12646
12652
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12681,7 +12687,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12681
12687
|
target,
|
|
12682
12688
|
expectedArtifactHash,
|
|
12683
12689
|
dryRun,
|
|
12684
|
-
jsonOutput:
|
|
12690
|
+
jsonOutput: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args)
|
|
12685
12691
|
};
|
|
12686
12692
|
}
|
|
12687
12693
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12892,7 +12898,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12892
12898
|
async function handlePlayCheck(args) {
|
|
12893
12899
|
const options = parsePlayCheckOptions(args);
|
|
12894
12900
|
if (!isFileTarget2(options.target)) {
|
|
12895
|
-
const client = new (0,
|
|
12901
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
12896
12902
|
try {
|
|
12897
12903
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12898
12904
|
command: "check"
|
|
@@ -12916,12 +12922,12 @@ async function handlePlayCheck(args) {
|
|
|
12916
12922
|
runtimeLimit: _nullishCoalesce(play.runtimeLimit, () => ( null)),
|
|
12917
12923
|
activeScheduledPlays: _nullishCoalesce(play.activeScheduledPlays, () => ( null)),
|
|
12918
12924
|
actions: {
|
|
12919
|
-
getFullCheckCmd: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full
|
|
12925
|
+
getFullCheckCmd: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12920
12926
|
...play.runCommand ? { runCmd: play.runCommand } : {}
|
|
12921
12927
|
},
|
|
12922
12928
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12923
12929
|
};
|
|
12924
|
-
|
|
12930
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, result, {
|
|
12925
12931
|
json: options.jsonOutput,
|
|
12926
12932
|
fields: options.jsonFields,
|
|
12927
12933
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12931,7 +12937,7 @@ async function handlePlayCheck(args) {
|
|
|
12931
12937
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12932
12938
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12933
12939
|
if (options.jsonOutput) {
|
|
12934
|
-
|
|
12940
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
12935
12941
|
{
|
|
12936
12942
|
kind: "play_check",
|
|
12937
12943
|
checked: "named_contract",
|
|
@@ -12970,10 +12976,10 @@ async function handlePlayCheck(args) {
|
|
|
12970
12976
|
outcomes,
|
|
12971
12977
|
target: options.target,
|
|
12972
12978
|
full: options.full,
|
|
12973
|
-
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full
|
|
12979
|
+
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12974
12980
|
publishCommand: _optionalChain([primary, 'optionalAccess', _440 => _440.result, 'access', _441 => _441.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12975
12981
|
});
|
|
12976
|
-
|
|
12982
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, output, {
|
|
12977
12983
|
json: options.jsonOutput,
|
|
12978
12984
|
fields: options.jsonFields,
|
|
12979
12985
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -13027,7 +13033,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13027
13033
|
}
|
|
13028
13034
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13029
13035
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13030
|
-
const client = new (0,
|
|
13036
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
13031
13037
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13032
13038
|
const importedPlays = [...graph.nodes.values()].filter((node) => node.filePath !== graph.root.filePath).map((node) => ({
|
|
13033
13039
|
playName: node.playName,
|
|
@@ -13104,7 +13110,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13104
13110
|
);
|
|
13105
13111
|
return 0;
|
|
13106
13112
|
}
|
|
13107
|
-
client = new (0,
|
|
13113
|
+
client = new (0, _chunk44SHFHA3js.DeeplineClient)(playRunClientOptions(options));
|
|
13108
13114
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
13109
13115
|
if (canDeferCompilerManifest) {
|
|
13110
13116
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -13299,7 +13305,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13299
13305
|
if (options.target.kind !== "name") {
|
|
13300
13306
|
throw new Error("Expected a named play run target.");
|
|
13301
13307
|
}
|
|
13302
|
-
const client = new (0,
|
|
13308
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)(playRunClientOptions(options));
|
|
13303
13309
|
const progress = _nullishCoalesce(_chunkWJYPBHTEjs.getActiveCliProgress.call(void 0, ), () => ( _chunkWJYPBHTEjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13304
13310
|
const playName = options.target.name;
|
|
13305
13311
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
@@ -13487,7 +13493,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13487
13493
|
await writePlayRunIdFile(options.runIdFile, runId);
|
|
13488
13494
|
} catch (error) {
|
|
13489
13495
|
throw new Error(
|
|
13490
|
-
`Run ${runId} was accepted, but its identity could not be persisted to ${options.runIdFile}: ${error instanceof Error ? error.message : String(error)}. Inspect it with 'deepline runs get ${runId} --full
|
|
13496
|
+
`Run ${runId} was accepted, but its identity could not be persisted to ${options.runIdFile}: ${error instanceof Error ? error.message : String(error)}. Inspect it with 'deepline runs get ${runId} --full'; do not submit a replacement run.`,
|
|
13491
13497
|
{ cause: error }
|
|
13492
13498
|
);
|
|
13493
13499
|
}
|
|
@@ -13500,7 +13506,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13500
13506
|
});
|
|
13501
13507
|
} catch (error) {
|
|
13502
13508
|
throw new Error(
|
|
13503
|
-
`Run ${runId} was admitted, but its confirmation could not be persisted to ${options.runIdFile}: ${error instanceof Error ? error.message : String(error)}. Inspect it with 'deepline runs get ${runId}
|
|
13509
|
+
`Run ${runId} was admitted, but its confirmation could not be persisted to ${options.runIdFile}: ${error instanceof Error ? error.message : String(error)}. Inspect it with 'deepline runs get ${runId}'; do not submit a replacement run.`,
|
|
13504
13510
|
{ cause: error }
|
|
13505
13511
|
);
|
|
13506
13512
|
}
|
|
@@ -13696,10 +13702,10 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13696
13702
|
);
|
|
13697
13703
|
return `${lines.join("\n")}
|
|
13698
13704
|
|
|
13699
|
-
${
|
|
13705
|
+
${_chunkBO3ADIBVjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13700
13706
|
}
|
|
13701
13707
|
async function handleRunGet(args) {
|
|
13702
|
-
const selection =
|
|
13708
|
+
const selection = _chunkBO3ADIBVjs.parseJsonFields.call(void 0,
|
|
13703
13709
|
args,
|
|
13704
13710
|
args.includes("--config") ? "config" : "get"
|
|
13705
13711
|
);
|
|
@@ -13712,7 +13718,7 @@ async function handleRunGet(args) {
|
|
|
13712
13718
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13713
13719
|
return 1;
|
|
13714
13720
|
}
|
|
13715
|
-
const client = new (0,
|
|
13721
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
13716
13722
|
if (args.includes("--config")) {
|
|
13717
13723
|
if (args.some((arg) => ["--input", "--full", "--log-failed"].includes(arg))) {
|
|
13718
13724
|
console.error(
|
|
@@ -13726,7 +13732,7 @@ async function handleRunGet(args) {
|
|
|
13726
13732
|
"This server does not support recorded configuration reads."
|
|
13727
13733
|
);
|
|
13728
13734
|
}
|
|
13729
|
-
|
|
13735
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
13730
13736
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13731
13737
|
{ json: true, fields: selection.fields }
|
|
13732
13738
|
);
|
|
@@ -13734,7 +13740,7 @@ async function handleRunGet(args) {
|
|
|
13734
13740
|
}
|
|
13735
13741
|
if (args.includes("--input")) {
|
|
13736
13742
|
const input = await client.getRunInput(runId);
|
|
13737
|
-
|
|
13743
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13738
13744
|
return 0;
|
|
13739
13745
|
}
|
|
13740
13746
|
const full = args.includes("--full");
|
|
@@ -13742,14 +13748,14 @@ async function handleRunGet(args) {
|
|
|
13742
13748
|
full: false,
|
|
13743
13749
|
failedLogs: args.includes("--log-failed")
|
|
13744
13750
|
});
|
|
13745
|
-
if (status.package)
|
|
13751
|
+
if (status.package) _chunk2JRRXXTAjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13746
13752
|
if (!status.package) {
|
|
13747
13753
|
const legacyStatus = full ? await client.runs.get(runId, {
|
|
13748
13754
|
full: true,
|
|
13749
13755
|
failedLogs: args.includes("--log-failed")
|
|
13750
13756
|
}) : status;
|
|
13751
|
-
if (
|
|
13752
|
-
|
|
13757
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
13758
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
13753
13759
|
full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13754
13760
|
{ json: true, fields: selection.fields }
|
|
13755
13761
|
);
|
|
@@ -13765,8 +13771,8 @@ async function handleRunGet(args) {
|
|
|
13765
13771
|
readRunCredits(client, runId, !TERMINAL_PLAY_STATUSES.has(status.status))
|
|
13766
13772
|
]);
|
|
13767
13773
|
const hitLines = formatRunHitsLines(hits);
|
|
13768
|
-
const json =
|
|
13769
|
-
|
|
13774
|
+
const json = _chunkBO3ADIBVjs.argsWantJson.call(void 0, args);
|
|
13775
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
13770
13776
|
{
|
|
13771
13777
|
...overview,
|
|
13772
13778
|
credits,
|
|
@@ -13869,9 +13875,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13869
13875
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13870
13876
|
return 1;
|
|
13871
13877
|
}
|
|
13872
|
-
const status = await new (0,
|
|
13873
|
-
if (
|
|
13874
|
-
|
|
13878
|
+
const status = await new (0, _chunk44SHFHA3js.DeeplineClient)().runs.status(runId);
|
|
13879
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
13880
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13875
13881
|
return 0;
|
|
13876
13882
|
}
|
|
13877
13883
|
if (!status.available) {
|
|
@@ -13911,7 +13917,7 @@ async function handleRunsRerun(args) {
|
|
|
13911
13917
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13912
13918
|
return 1;
|
|
13913
13919
|
}
|
|
13914
|
-
const options = { json:
|
|
13920
|
+
const options = { json: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args) };
|
|
13915
13921
|
for (let index = 0; index < args.length; index += 1) {
|
|
13916
13922
|
if (args[index] === "--idempotency-key") {
|
|
13917
13923
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13967,8 +13973,8 @@ async function handleRunsList(args) {
|
|
|
13967
13973
|
if (!playName && !statusFilter) {
|
|
13968
13974
|
const message = "runs list requires --play or --status.";
|
|
13969
13975
|
const next = {
|
|
13970
|
-
discover: "deepline plays list
|
|
13971
|
-
running: "deepline runs list --status running
|
|
13976
|
+
discover: "deepline plays list",
|
|
13977
|
+
running: "deepline runs list --status running"
|
|
13972
13978
|
};
|
|
13973
13979
|
console.error(
|
|
13974
13980
|
`${message}
|
|
@@ -13976,8 +13982,8 @@ ${usage2}
|
|
|
13976
13982
|
Discover Plays: ${next.discover}
|
|
13977
13983
|
Active runs: ${next.running}`
|
|
13978
13984
|
);
|
|
13979
|
-
if (
|
|
13980
|
-
|
|
13985
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
13986
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
13981
13987
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13982
13988
|
{ json: true }
|
|
13983
13989
|
);
|
|
@@ -13992,7 +13998,7 @@ Active runs: ${next.running}`
|
|
|
13992
13998
|
console.error("--offset requires --play.");
|
|
13993
13999
|
return 1;
|
|
13994
14000
|
}
|
|
13995
|
-
const client = new (0,
|
|
14001
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
13996
14002
|
const page = await client.runs.listPage({
|
|
13997
14003
|
...playName ? { play: playName } : {},
|
|
13998
14004
|
...statusFilter ? { status: statusFilter } : {},
|
|
@@ -14034,7 +14040,7 @@ Active runs: ${next.running}`
|
|
|
14034
14040
|
` started: ${formatTimestamp(run.startedAt)}`,
|
|
14035
14041
|
` finished: ${formatTimestamp(run.finishedAt)}`,
|
|
14036
14042
|
` credits: ${typeof run.billingTotalCredits === "number" && Number.isFinite(run.billingTotalCredits) ? formatCreditAmount2(run.billingTotalCredits) : "\u2014"}`,
|
|
14037
|
-
` inspect: deepline runs get ${run.id}
|
|
14043
|
+
` inspect: deepline runs get ${run.id}`
|
|
14038
14044
|
];
|
|
14039
14045
|
if (run.parentRunId) lines2.push(` parent: ${run.parentRunId}`);
|
|
14040
14046
|
if (run.rootRunId) lines2.push(` root: ${run.rootRunId}`);
|
|
@@ -14054,14 +14060,14 @@ Active runs: ${next.running}`
|
|
|
14054
14060
|
return lines2.join("\n");
|
|
14055
14061
|
});
|
|
14056
14062
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
14057
|
-
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}
|
|
14063
|
+
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}` : null;
|
|
14058
14064
|
if (page.hasMore) {
|
|
14059
14065
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
14060
14066
|
lines.push(
|
|
14061
14067
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
14062
14068
|
);
|
|
14063
14069
|
}
|
|
14064
|
-
|
|
14070
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
14065
14071
|
{
|
|
14066
14072
|
runs,
|
|
14067
14073
|
count: runs.length,
|
|
@@ -14071,11 +14077,11 @@ Active runs: ${next.running}`
|
|
|
14071
14077
|
...page.hasMore !== void 0 ? { has_more: page.hasMore, is_truncated: page.hasMore } : {},
|
|
14072
14078
|
next: {
|
|
14073
14079
|
page: nextPage,
|
|
14074
|
-
get: _optionalChain([runs, 'access', _479 => _479[0], 'optionalAccess', _480 => _480.id]) ? `deepline runs get ${runs[0].id}
|
|
14080
|
+
get: _optionalChain([runs, 'access', _479 => _479[0], 'optionalAccess', _480 => _480.id]) ? `deepline runs get ${runs[0].id}` : null
|
|
14075
14081
|
},
|
|
14076
14082
|
render: { sections: [{ title: "runs", lines }] }
|
|
14077
14083
|
},
|
|
14078
|
-
{ json:
|
|
14084
|
+
{ json: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args) }
|
|
14079
14085
|
);
|
|
14080
14086
|
return 0;
|
|
14081
14087
|
}
|
|
@@ -14105,7 +14111,7 @@ async function handleRunTail(args) {
|
|
|
14105
14111
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14106
14112
|
return 1;
|
|
14107
14113
|
}
|
|
14108
|
-
const parsed =
|
|
14114
|
+
const parsed = _chunk44SHFHA3js.parseLogLevel.call(void 0, value);
|
|
14109
14115
|
if (!parsed) {
|
|
14110
14116
|
console.error(
|
|
14111
14117
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14143,9 +14149,9 @@ async function handleRunTail(args) {
|
|
|
14143
14149
|
);
|
|
14144
14150
|
return 1;
|
|
14145
14151
|
}
|
|
14146
|
-
const client = new (0,
|
|
14152
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
14147
14153
|
const jsonLines = args.includes("--jsonl");
|
|
14148
|
-
const jsonOutput = !jsonLines &&
|
|
14154
|
+
const jsonOutput = !jsonLines && _chunkBO3ADIBVjs.argsWantJson.call(void 0, args);
|
|
14149
14155
|
const compact = args.includes("--compact");
|
|
14150
14156
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14151
14157
|
const compactState = {
|
|
@@ -14226,7 +14232,7 @@ async function handleRunLogs(args) {
|
|
|
14226
14232
|
]);
|
|
14227
14233
|
const cursorIndex = args.indexOf("--cursor");
|
|
14228
14234
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14229
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14235
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk44SHFHA3js.isRunLogsCursor.call(void 0, cursorValue));
|
|
14230
14236
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14231
14237
|
return handleRunEventSearch(args);
|
|
14232
14238
|
}
|
|
@@ -14260,7 +14266,7 @@ async function handleRunLogs(args) {
|
|
|
14260
14266
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14261
14267
|
return 1;
|
|
14262
14268
|
}
|
|
14263
|
-
const parsed =
|
|
14269
|
+
const parsed = _chunk44SHFHA3js.parseLogLevel.call(void 0, value);
|
|
14264
14270
|
if (!parsed) {
|
|
14265
14271
|
console.error(
|
|
14266
14272
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14307,12 +14313,12 @@ async function handleRunLogs(args) {
|
|
|
14307
14313
|
);
|
|
14308
14314
|
return 1;
|
|
14309
14315
|
}
|
|
14310
|
-
const client = new (0,
|
|
14316
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
14311
14317
|
if (outPath) {
|
|
14312
14318
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14313
|
-
const logs = result2.entries.filter((line) =>
|
|
14319
|
+
const logs = result2.entries.filter((line) => _chunk44SHFHA3js.logLevelReaches.call(void 0, _chunk44SHFHA3js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk44SHFHA3js.classifyLogLine.call(void 0, line).line);
|
|
14314
14320
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14315
|
-
|
|
14321
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
14316
14322
|
{
|
|
14317
14323
|
runId: result2.runId,
|
|
14318
14324
|
log_path: outPath,
|
|
@@ -14335,7 +14341,7 @@ async function handleRunLogs(args) {
|
|
|
14335
14341
|
]
|
|
14336
14342
|
}
|
|
14337
14343
|
},
|
|
14338
|
-
{ json:
|
|
14344
|
+
{ json: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args) }
|
|
14339
14345
|
);
|
|
14340
14346
|
return 0;
|
|
14341
14347
|
}
|
|
@@ -14352,7 +14358,7 @@ async function handleRunLogs(args) {
|
|
|
14352
14358
|
nextCursor: void 0
|
|
14353
14359
|
} : selectRunLogTailPage(result, logLevel, limit);
|
|
14354
14360
|
const entries = page.entries;
|
|
14355
|
-
const nextPage = page.nextCursor ? `deepline runs logs ${result.runId} --limit ${limit}${logLevel === "debug" ? "" : ` --log-level ${logLevel}`} --cursor ${page.nextCursor}
|
|
14361
|
+
const nextPage = page.nextCursor ? `deepline runs logs ${result.runId} --limit ${limit}${logLevel === "debug" ? "" : ` --log-level ${logLevel}`} --cursor ${page.nextCursor}` : null;
|
|
14356
14362
|
const filteredResult = {
|
|
14357
14363
|
...result,
|
|
14358
14364
|
entries,
|
|
@@ -14362,11 +14368,11 @@ async function handleRunLogs(args) {
|
|
|
14362
14368
|
view: failed ? result.view : "tail",
|
|
14363
14369
|
next: {
|
|
14364
14370
|
..._nullishCoalesce(result.next, () => ( {})),
|
|
14365
|
-
logs: `deepline runs logs ${result.runId} --out run.log --log-level ${logLevel}
|
|
14371
|
+
logs: `deepline runs logs ${result.runId} --out run.log --log-level ${logLevel}`
|
|
14366
14372
|
}
|
|
14367
14373
|
};
|
|
14368
14374
|
const text = buildRunLogsText(filteredResult);
|
|
14369
|
-
|
|
14375
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
14370
14376
|
{
|
|
14371
14377
|
runId: result.runId,
|
|
14372
14378
|
totalCount: result.totalCount,
|
|
@@ -14385,12 +14391,12 @@ async function handleRunLogs(args) {
|
|
|
14385
14391
|
next: {
|
|
14386
14392
|
..._nullishCoalesce(result.next, () => ( {})),
|
|
14387
14393
|
...nextPage ? { page: nextPage } : {},
|
|
14388
|
-
export: `deepline runs logs ${result.runId} --out run.log --log-level ${logLevel}
|
|
14394
|
+
export: `deepline runs logs ${result.runId} --out run.log --log-level ${logLevel}`
|
|
14389
14395
|
},
|
|
14390
14396
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14391
14397
|
},
|
|
14392
14398
|
{
|
|
14393
|
-
json:
|
|
14399
|
+
json: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args),
|
|
14394
14400
|
text
|
|
14395
14401
|
}
|
|
14396
14402
|
);
|
|
@@ -14414,7 +14420,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14414
14420
|
);
|
|
14415
14421
|
}
|
|
14416
14422
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14417
|
-
(entry) =>
|
|
14423
|
+
(entry) => _chunk44SHFHA3js.logLevelReaches.call(void 0, _chunk44SHFHA3js.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14418
14424
|
);
|
|
14419
14425
|
const selected = matching.slice(-limit);
|
|
14420
14426
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14424,7 +14430,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14424
14430
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _483 => _483.at, 'call', _484 => _484(-1), 'optionalAccess', _485 => _485.seq]), () => ( null)),
|
|
14425
14431
|
truncated: result.truncated || olderMatchesExist,
|
|
14426
14432
|
hasMore: olderMatchesExist,
|
|
14427
|
-
nextCursor: olderMatchesExist ?
|
|
14433
|
+
nextCursor: olderMatchesExist ? _chunk44SHFHA3js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14428
14434
|
};
|
|
14429
14435
|
}
|
|
14430
14436
|
async function handleRunEventSearch(args) {
|
|
@@ -14491,7 +14497,7 @@ ${usage2}`);
|
|
|
14491
14497
|
namespace,
|
|
14492
14498
|
...backend ? { backend } : {}
|
|
14493
14499
|
} : void 0;
|
|
14494
|
-
const client = new (0,
|
|
14500
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
14495
14501
|
const result = await client.runs.searchEvents({
|
|
14496
14502
|
...runId ? { runId } : {},
|
|
14497
14503
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14561,10 +14567,9 @@ ${renderedDetails}` : ""}`;
|
|
|
14561
14567
|
"--cursor",
|
|
14562
14568
|
_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor),
|
|
14563
14569
|
"--limit",
|
|
14564
|
-
String(limit)
|
|
14565
|
-
"--json"
|
|
14570
|
+
String(limit)
|
|
14566
14571
|
].join(" ") : null;
|
|
14567
|
-
|
|
14572
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
14568
14573
|
{
|
|
14569
14574
|
events,
|
|
14570
14575
|
nextCursor: result.nextCursor,
|
|
@@ -14575,19 +14580,19 @@ ${renderedDetails}` : ""}`;
|
|
|
14575
14580
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14576
14581
|
},
|
|
14577
14582
|
{
|
|
14578
|
-
json:
|
|
14583
|
+
json: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args),
|
|
14579
14584
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14580
14585
|
}
|
|
14581
14586
|
);
|
|
14582
14587
|
return 0;
|
|
14583
14588
|
}
|
|
14584
14589
|
function buildRunLogsText(result) {
|
|
14585
|
-
const lines = result.entries.map((line) =>
|
|
14590
|
+
const lines = result.entries.map((line) => _chunk44SHFHA3js.classifyLogLine.call(void 0, line).line);
|
|
14586
14591
|
if (result.warning) {
|
|
14587
14592
|
if (lines.length > 0) lines.push("");
|
|
14588
14593
|
lines.push(`warning: ${result.warning}`);
|
|
14589
14594
|
lines.push(
|
|
14590
|
-
`retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _486 => _486.next, 'optionalAccess', _487 => _487.logs]), () => ( `deepline runs logs ${result.runId} --out run.log
|
|
14595
|
+
`retained logs: ${_nullishCoalesce(_optionalChain([result, 'access', _486 => _486.next, 'optionalAccess', _487 => _487.logs]), () => ( `deepline runs logs ${result.runId} --out run.log`))}`
|
|
14591
14596
|
);
|
|
14592
14597
|
}
|
|
14593
14598
|
return `${lines.join("\n")}${lines.length > 0 ? "\n" : ""}`;
|
|
@@ -14616,7 +14621,7 @@ async function handleRunStop(args) {
|
|
|
14616
14621
|
reason = args[++index];
|
|
14617
14622
|
}
|
|
14618
14623
|
}
|
|
14619
|
-
const client = new (0,
|
|
14624
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
14620
14625
|
const result = await client.runs.stop(runId, { reason });
|
|
14621
14626
|
const state = resolveRunStopState(result);
|
|
14622
14627
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14629,9 +14634,9 @@ async function handleRunStop(args) {
|
|
|
14629
14634
|
const lines2 = [
|
|
14630
14635
|
`Cancelling run ${result.runId || runId}; sandbox cleanup and the final run update are pending.`,
|
|
14631
14636
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14632
|
-
`inspect: deepline runs get ${runId} --full
|
|
14637
|
+
`inspect: deepline runs get ${runId} --full`
|
|
14633
14638
|
];
|
|
14634
|
-
|
|
14639
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
14635
14640
|
{
|
|
14636
14641
|
...cancelling,
|
|
14637
14642
|
state,
|
|
@@ -14646,7 +14651,7 @@ async function handleRunStop(args) {
|
|
|
14646
14651
|
]
|
|
14647
14652
|
}
|
|
14648
14653
|
},
|
|
14649
|
-
{ json:
|
|
14654
|
+
{ json: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args) }
|
|
14650
14655
|
);
|
|
14651
14656
|
return 0;
|
|
14652
14657
|
}
|
|
@@ -14659,11 +14664,11 @@ async function handleRunStop(args) {
|
|
|
14659
14664
|
"warning: HITL cancellation or same-card Slack refresh is still pending"
|
|
14660
14665
|
] : [],
|
|
14661
14666
|
`retry: deepline runs stop ${runId}`,
|
|
14662
|
-
`inspect: deepline runs get ${runId} --full
|
|
14667
|
+
`inspect: deepline runs get ${runId} --full`
|
|
14663
14668
|
];
|
|
14664
14669
|
process.stderr.write(`${lines2.join("\n")}
|
|
14665
14670
|
`);
|
|
14666
|
-
|
|
14671
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
14667
14672
|
{
|
|
14668
14673
|
...result,
|
|
14669
14674
|
render: {
|
|
@@ -14678,7 +14683,7 @@ async function handleRunStop(args) {
|
|
|
14678
14683
|
]
|
|
14679
14684
|
}
|
|
14680
14685
|
},
|
|
14681
|
-
{ json:
|
|
14686
|
+
{ json: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args) }
|
|
14682
14687
|
);
|
|
14683
14688
|
return 1;
|
|
14684
14689
|
}
|
|
@@ -14689,12 +14694,12 @@ async function handleRunStop(args) {
|
|
|
14689
14694
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14690
14695
|
] : []
|
|
14691
14696
|
];
|
|
14692
|
-
|
|
14697
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
14693
14698
|
{
|
|
14694
14699
|
...result,
|
|
14695
14700
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14696
14701
|
},
|
|
14697
|
-
{ json:
|
|
14702
|
+
{ json: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args) }
|
|
14698
14703
|
);
|
|
14699
14704
|
return 0;
|
|
14700
14705
|
}
|
|
@@ -14744,18 +14749,18 @@ async function handleRunStopAll(args) {
|
|
|
14744
14749
|
reason = args[++index];
|
|
14745
14750
|
}
|
|
14746
14751
|
}
|
|
14747
|
-
const client = new (0,
|
|
14752
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
14748
14753
|
if (dryRun) {
|
|
14749
14754
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14750
14755
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14751
|
-
|
|
14756
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
14752
14757
|
{
|
|
14753
14758
|
...result2,
|
|
14754
14759
|
render: {
|
|
14755
14760
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14756
14761
|
}
|
|
14757
14762
|
},
|
|
14758
|
-
{ json:
|
|
14763
|
+
{ json: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14759
14764
|
` }
|
|
14760
14765
|
);
|
|
14761
14766
|
return 0;
|
|
@@ -14768,17 +14773,17 @@ async function handleRunStopAll(args) {
|
|
|
14768
14773
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14769
14774
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14770
14775
|
];
|
|
14771
|
-
|
|
14776
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
14772
14777
|
{
|
|
14773
14778
|
...result,
|
|
14774
14779
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14775
14780
|
},
|
|
14776
|
-
{ json:
|
|
14781
|
+
{ json: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args) }
|
|
14777
14782
|
);
|
|
14778
14783
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14779
14784
|
}
|
|
14780
14785
|
async function handleRunExport(args) {
|
|
14781
|
-
const selection =
|
|
14786
|
+
const selection = _chunkBO3ADIBVjs.parseJsonFields.call(void 0, args, "export");
|
|
14782
14787
|
args = selection.args;
|
|
14783
14788
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
|
|
14784
14789
|
let runId;
|
|
@@ -14837,16 +14842,16 @@ async function handleRunExport(args) {
|
|
|
14837
14842
|
"INVALID_ARGUMENT"
|
|
14838
14843
|
);
|
|
14839
14844
|
}
|
|
14840
|
-
const client = new (0,
|
|
14845
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
14841
14846
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14842
14847
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14843
|
-
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !
|
|
14848
|
+
const progress = _chunkWJYPBHTEjs.createCliProgress.call(void 0, !_chunkBO3ADIBVjs.argsWantJson.call(void 0, args));
|
|
14844
14849
|
try {
|
|
14845
14850
|
await waitForPlayCompletionByWatch({
|
|
14846
14851
|
client,
|
|
14847
14852
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14848
14853
|
workflowId: runId,
|
|
14849
|
-
jsonOutput:
|
|
14854
|
+
jsonOutput: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args),
|
|
14850
14855
|
emitLogs: false,
|
|
14851
14856
|
waitTimeoutMs,
|
|
14852
14857
|
startedAt: Date.now(),
|
|
@@ -14874,7 +14879,7 @@ async function handleRunExport(args) {
|
|
|
14874
14879
|
const currentTableNotice = _optionalChain([exportResult, 'optionalAccess', _490 => _490.currentTable]) ? {
|
|
14875
14880
|
code: "CURRENT_SHARED_DATASET",
|
|
14876
14881
|
message: "This export is the current shared dataset and may include writes from another run.",
|
|
14877
|
-
full_run_output_command: `deepline runs get ${status.runId} --full
|
|
14882
|
+
full_run_output_command: `deepline runs get ${status.runId} --full`
|
|
14878
14883
|
} : null;
|
|
14879
14884
|
const navigation = buildRunNavigation(status);
|
|
14880
14885
|
const resolved = _optionalChain([exportResult, 'optionalAccess', _491 => _491.datasetInfo]);
|
|
@@ -14893,7 +14898,7 @@ async function handleRunExport(args) {
|
|
|
14893
14898
|
const rowFailures = exportedRowOutcomes && exportedRowOutcomes.failed > 0 ? {
|
|
14894
14899
|
count: exportedRowOutcomes.failed,
|
|
14895
14900
|
message: "Failed rows can retain values from stages that completed earlier; those values do not prove the row succeeded.",
|
|
14896
|
-
inspectCommand: `deepline runs get ${status.runId}
|
|
14901
|
+
inspectCommand: `deepline runs get ${status.runId}`
|
|
14897
14902
|
} : null;
|
|
14898
14903
|
const payload = {
|
|
14899
14904
|
runId: status.runId,
|
|
@@ -14924,7 +14929,7 @@ async function handleRunExport(args) {
|
|
|
14924
14929
|
`Partial export: run is ${status.status}; more rows may be saved.`,
|
|
14925
14930
|
`Export after completion: ${exportCommand} --wait`
|
|
14926
14931
|
] : status.status === "failed" || status.status === "cancelled" ? [
|
|
14927
|
-
`Saved rows from a ${status.status} run. Inspect: deepline runs get ${status.runId}
|
|
14932
|
+
`Saved rows from a ${status.status} run. Inspect: deepline runs get ${status.runId}`
|
|
14928
14933
|
] : [],
|
|
14929
14934
|
...currentTableNotice ? [
|
|
14930
14935
|
"Current shared dataset: this export may include writes from another run.",
|
|
@@ -14946,8 +14951,8 @@ async function handleRunExport(args) {
|
|
|
14946
14951
|
"utf-8"
|
|
14947
14952
|
);
|
|
14948
14953
|
}
|
|
14949
|
-
|
|
14950
|
-
json:
|
|
14954
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0, payload, {
|
|
14955
|
+
json: _chunkBO3ADIBVjs.argsWantJson.call(void 0, args),
|
|
14951
14956
|
fields: selection.fields,
|
|
14952
14957
|
text: `${lines.join("\n")}
|
|
14953
14958
|
`
|
|
@@ -14968,10 +14973,10 @@ async function handlePlayGet(args) {
|
|
|
14968
14973
|
);
|
|
14969
14974
|
return 2;
|
|
14970
14975
|
}
|
|
14971
|
-
const client = new (0,
|
|
14976
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
14972
14977
|
const explicitJson = args.includes("--json");
|
|
14973
14978
|
const sourceOutput = args.includes("--source");
|
|
14974
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14979
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkBO3ADIBVjs.argsWantJson.call(void 0, args);
|
|
14975
14980
|
const requestedRevisionFlags = [
|
|
14976
14981
|
args.includes("--working"),
|
|
14977
14982
|
args.includes("--live"),
|
|
@@ -15031,7 +15036,7 @@ async function handlePlayGet(args) {
|
|
|
15031
15036
|
}
|
|
15032
15037
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
15033
15038
|
if (jsonOutput) {
|
|
15034
|
-
|
|
15039
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, {
|
|
15035
15040
|
...detail,
|
|
15036
15041
|
...materializedFile ? {
|
|
15037
15042
|
message: loadedMessage,
|
|
@@ -15075,6 +15080,11 @@ async function handlePlayGet(args) {
|
|
|
15075
15080
|
`Working version: ${_nullishCoalesce(_optionalChain([detail, 'access', _506 => _506.play, 'access', _507 => _507.workingRevision, 'optionalAccess', _508 => _508.version]), () => ( "\u2014"))}`
|
|
15076
15081
|
);
|
|
15077
15082
|
console.log(`Live version: ${_nullishCoalesce(_optionalChain([detail, 'access', _509 => _509.play, 'access', _510 => _510.liveRevision, 'optionalAccess', _511 => _511.version]), () => ( "\u2014"))}`);
|
|
15083
|
+
if (detail.play.liveRevision) {
|
|
15084
|
+
console.log(
|
|
15085
|
+
`Live max credits per run: ${liveMaxCreditsPerRun(detail.play.liveRevision.sourceCode)}`
|
|
15086
|
+
);
|
|
15087
|
+
}
|
|
15078
15088
|
console.log(`Draft dirty: ${detail.play.isDraftDirty ? "yes" : "no"}`);
|
|
15079
15089
|
if (detail.play.isDraftDirty && _optionalChain([detail, 'access', _512 => _512.play, 'access', _513 => _513.liveRevision, 'optionalAccess', _514 => _514.version])) {
|
|
15080
15090
|
console.log(
|
|
@@ -15118,8 +15128,8 @@ async function handlePlayVersions(args) {
|
|
|
15118
15128
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15119
15129
|
return 1;
|
|
15120
15130
|
}
|
|
15121
|
-
const client = new (0,
|
|
15122
|
-
const jsonOutput =
|
|
15131
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
15132
|
+
const jsonOutput = _chunkBO3ADIBVjs.argsWantJson.call(void 0, args);
|
|
15123
15133
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15124
15134
|
command: "versions"
|
|
15125
15135
|
});
|
|
@@ -15127,7 +15137,7 @@ async function handlePlayVersions(args) {
|
|
|
15127
15137
|
parseReferencedPlayTarget2(playName).playName
|
|
15128
15138
|
);
|
|
15129
15139
|
if (jsonOutput) {
|
|
15130
|
-
|
|
15140
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, { versions });
|
|
15131
15141
|
return 0;
|
|
15132
15142
|
}
|
|
15133
15143
|
if (versions.length === 0) {
|
|
@@ -15159,9 +15169,9 @@ var PREBUILT_PLAY_TAG_KEYS = [
|
|
|
15159
15169
|
"signals"
|
|
15160
15170
|
];
|
|
15161
15171
|
async function handlePlayList(args) {
|
|
15162
|
-
const jsonOutput =
|
|
15172
|
+
const jsonOutput = _chunkBO3ADIBVjs.argsWantJson.call(void 0, args);
|
|
15163
15173
|
const showCost = args.includes("--show-cost");
|
|
15164
|
-
const client = new (0,
|
|
15174
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
15165
15175
|
const categoriesIndex = args.indexOf("--categories");
|
|
15166
15176
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _521 => _521[categoriesIndex + 1], 'optionalAccess', _522 => _522.trim, 'call', _523 => _523()]) : void 0;
|
|
15167
15177
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15203,7 +15213,7 @@ async function handlePlayList(args) {
|
|
|
15203
15213
|
);
|
|
15204
15214
|
return 1;
|
|
15205
15215
|
}
|
|
15206
|
-
const nextPage = page.hasMore && page.cursor ? `deepline plays list${categories ? ` --categories ${_chunkAID3OYVJjs.shellQuote.call(void 0, categories)}` : ""}${tags.map((tag) => ` --tag ${_chunkAID3OYVJjs.shellQuote.call(void 0, tag)}`).join("")}${limit ? ` --limit ${limit}` : ""}${showCost ? " --show-cost" : ""} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, page.cursor)}
|
|
15216
|
+
const nextPage = page.hasMore && page.cursor ? `deepline plays list${categories ? ` --categories ${_chunkAID3OYVJjs.shellQuote.call(void 0, categories)}` : ""}${tags.map((tag) => ` --tag ${_chunkAID3OYVJjs.shellQuote.call(void 0, tag)}`).join("")}${limit ? ` --limit ${limit}` : ""}${showCost ? " --show-cost" : ""} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, page.cursor)}` : null;
|
|
15207
15217
|
if (page.hasMore && !nextPage) {
|
|
15208
15218
|
throw new Error(
|
|
15209
15219
|
"Play list reported more results without a continuation cursor"
|
|
@@ -15258,7 +15268,7 @@ async function handlePlayList(args) {
|
|
|
15258
15268
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15259
15269
|
lines.push(`Next page: ${nextPage}`);
|
|
15260
15270
|
}
|
|
15261
|
-
|
|
15271
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
15262
15272
|
{
|
|
15263
15273
|
plays,
|
|
15264
15274
|
count: plays.length,
|
|
@@ -15276,7 +15286,7 @@ async function handlePlayList(args) {
|
|
|
15276
15286
|
}
|
|
15277
15287
|
async function handlePlayPin(args, pinned) {
|
|
15278
15288
|
const target = _optionalChain([args, 'access', _530 => _530.find, 'call', _531 => _531((arg) => !arg.startsWith("-")), 'optionalAccess', _532 => _532.trim, 'call', _533 => _533()]);
|
|
15279
|
-
const jsonOutput =
|
|
15289
|
+
const jsonOutput = _chunkBO3ADIBVjs.argsWantJson.call(void 0, args);
|
|
15280
15290
|
const dryRun = args.includes("--dry-run");
|
|
15281
15291
|
if (!target) {
|
|
15282
15292
|
console.error(
|
|
@@ -15294,11 +15304,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15294
15304
|
const name = parsedTarget.playName;
|
|
15295
15305
|
const plan = { name, pinned, dryRun };
|
|
15296
15306
|
if (dryRun) {
|
|
15297
|
-
|
|
15307
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, plan);
|
|
15298
15308
|
return 0;
|
|
15299
15309
|
}
|
|
15300
|
-
const result = await new (0,
|
|
15301
|
-
if (jsonOutput)
|
|
15310
|
+
const result = await new (0, _chunk44SHFHA3js.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15311
|
+
if (jsonOutput) _chunkBO3ADIBVjs.printCompactJson.call(void 0, result);
|
|
15302
15312
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15303
15313
|
return 0;
|
|
15304
15314
|
}
|
|
@@ -15314,7 +15324,7 @@ function csvColumnLines(csvInput) {
|
|
|
15314
15324
|
const headers = [defaults[column]].flat().filter((header) => header && header !== column);
|
|
15315
15325
|
return `${column}${required.has(column) ? " (required)" : ""}${headers.length > 0 ? `, default header: ${headers.join(" or ")}` : ""}`;
|
|
15316
15326
|
}),
|
|
15317
|
-
|
|
15327
|
+
_chunk44SHFHA3js.CSV_HEADER_MATCHING_NOTE
|
|
15318
15328
|
];
|
|
15319
15329
|
}
|
|
15320
15330
|
function describedPlay(play) {
|
|
@@ -15322,7 +15332,7 @@ function describedPlay(play) {
|
|
|
15322
15332
|
const starter = _nullishCoalesce(play.cloneEditStarter, () => ( buildCloneEditStarter(play)));
|
|
15323
15333
|
const csv = _nullishCoalesce(play.csvInput, () => ( {}));
|
|
15324
15334
|
const headers = isRecord2(csv.defaultColumns) ? csv.defaultColumns : {};
|
|
15325
|
-
const rowInputs =
|
|
15335
|
+
const rowInputs = _chunk2JRRXXTAjs.schemaFields.call(void 0, csv.rowInputSchema).map((field) => {
|
|
15326
15336
|
const header = [headers[field.name]].flat().filter((name) => name && name !== field.name).join(" or ");
|
|
15327
15337
|
return header ? {
|
|
15328
15338
|
...field,
|
|
@@ -15331,7 +15341,7 @@ function describedPlay(play) {
|
|
|
15331
15341
|
});
|
|
15332
15342
|
const rowOutput = _nullishCoalesce(play.rowOutputSchema, () => ( {}));
|
|
15333
15343
|
const added = isRecord2(rowOutput.addedColumns) ? rowOutput.addedColumns : {};
|
|
15334
|
-
const rowOutputs =
|
|
15344
|
+
const rowOutputs = _chunk2JRRXXTAjs.schemaFields.call(void 0,
|
|
15335
15345
|
Object.keys(added).length ? { properties: added } : rowOutput
|
|
15336
15346
|
).map((field) => ({ ...field, required: true }));
|
|
15337
15347
|
return {
|
|
@@ -15341,8 +15351,8 @@ function describedPlay(play) {
|
|
|
15341
15351
|
...play.description ? { description: play.description } : {},
|
|
15342
15352
|
...play.observedCost ? { cost: play.observedCost.displayText } : {},
|
|
15343
15353
|
guidance: [],
|
|
15344
|
-
inputs:
|
|
15345
|
-
outputs:
|
|
15354
|
+
inputs: _chunk2JRRXXTAjs.schemaFields.call(void 0, play.inputSchema),
|
|
15355
|
+
outputs: _chunk2JRRXXTAjs.schemaFields.call(void 0, play.outputSchema),
|
|
15346
15356
|
...rowInputs.length ? { rowInputs } : {},
|
|
15347
15357
|
...rowOutputs.length ? { rowOutputs } : {},
|
|
15348
15358
|
runner: {
|
|
@@ -15461,12 +15471,12 @@ async function handlePlayGrep(args) {
|
|
|
15461
15471
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15462
15472
|
return 1;
|
|
15463
15473
|
}
|
|
15464
|
-
const client = new (0,
|
|
15474
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
15465
15475
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15466
15476
|
summarizePlayGrepResult
|
|
15467
15477
|
);
|
|
15468
|
-
if (
|
|
15469
|
-
|
|
15478
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
15479
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, {
|
|
15470
15480
|
plays: results,
|
|
15471
15481
|
count: results.length,
|
|
15472
15482
|
query,
|
|
@@ -15489,7 +15499,7 @@ async function handlePlayGrep(args) {
|
|
|
15489
15499
|
return 0;
|
|
15490
15500
|
}
|
|
15491
15501
|
async function handlePlayDescribe(args) {
|
|
15492
|
-
const selection =
|
|
15502
|
+
const selection = _chunkBO3ADIBVjs.parseJsonFields.call(void 0, args, "describe");
|
|
15493
15503
|
args = selection.args;
|
|
15494
15504
|
const playName = args[0];
|
|
15495
15505
|
if (!playName) {
|
|
@@ -15523,8 +15533,8 @@ async function handlePlayDescribe(args) {
|
|
|
15523
15533
|
`deepline plays check ${playName}`,
|
|
15524
15534
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15525
15535
|
];
|
|
15526
|
-
if (
|
|
15527
|
-
|
|
15536
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
15537
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, {
|
|
15528
15538
|
ok: false,
|
|
15529
15539
|
error: { message },
|
|
15530
15540
|
next
|
|
@@ -15538,7 +15548,7 @@ async function handlePlayDescribe(args) {
|
|
|
15538
15548
|
}
|
|
15539
15549
|
return 2;
|
|
15540
15550
|
}
|
|
15541
|
-
const client = new (0,
|
|
15551
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
15542
15552
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15543
15553
|
command: "describe"
|
|
15544
15554
|
});
|
|
@@ -15548,9 +15558,9 @@ async function handlePlayDescribe(args) {
|
|
|
15548
15558
|
compact: args.includes("--compact")
|
|
15549
15559
|
}
|
|
15550
15560
|
);
|
|
15551
|
-
if (
|
|
15552
|
-
if (selection.fields)
|
|
15553
|
-
else
|
|
15561
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
15562
|
+
if (selection.fields) _chunkBO3ADIBVjs.printJson.call(void 0, play, selection.fields);
|
|
15563
|
+
else _chunkBO3ADIBVjs.printCompactJson.call(void 0, play);
|
|
15554
15564
|
return 0;
|
|
15555
15565
|
}
|
|
15556
15566
|
printPlayDescription(play);
|
|
@@ -15594,7 +15604,7 @@ async function handlePlaySave(args) {
|
|
|
15594
15604
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15595
15605
|
};
|
|
15596
15606
|
if (options.jsonOutput) {
|
|
15597
|
-
|
|
15607
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, result);
|
|
15598
15608
|
} else {
|
|
15599
15609
|
console.error(result.message);
|
|
15600
15610
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15616,7 +15626,7 @@ async function handlePlaySave(args) {
|
|
|
15616
15626
|
};
|
|
15617
15627
|
if (options.dryRun) {
|
|
15618
15628
|
if (options.jsonOutput) {
|
|
15619
|
-
|
|
15629
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, dryRun);
|
|
15620
15630
|
} else {
|
|
15621
15631
|
console.log(`Dry run: ${playName}`);
|
|
15622
15632
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15625,7 +15635,7 @@ async function handlePlaySave(args) {
|
|
|
15625
15635
|
}
|
|
15626
15636
|
return 0;
|
|
15627
15637
|
}
|
|
15628
|
-
const client = new (0,
|
|
15638
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
15629
15639
|
try {
|
|
15630
15640
|
await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
15631
15641
|
"cli.play_save_compile_manifests",
|
|
@@ -15661,7 +15671,7 @@ async function handlePlaySave(args) {
|
|
|
15661
15671
|
}
|
|
15662
15672
|
};
|
|
15663
15673
|
if (options.jsonOutput) {
|
|
15664
|
-
|
|
15674
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, result);
|
|
15665
15675
|
} else {
|
|
15666
15676
|
console.log(
|
|
15667
15677
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15687,7 +15697,7 @@ async function handlePlayPublish(args) {
|
|
|
15687
15697
|
}
|
|
15688
15698
|
const { target: playName, useLatest } = options;
|
|
15689
15699
|
let revisionId = options.revisionId;
|
|
15690
|
-
const client = new (0,
|
|
15700
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
15691
15701
|
if (isFileTarget2(playName)) {
|
|
15692
15702
|
if (revisionId || useLatest) {
|
|
15693
15703
|
console.error(
|
|
@@ -15719,7 +15729,7 @@ async function handlePlayPublish(args) {
|
|
|
15719
15729
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15720
15730
|
};
|
|
15721
15731
|
if (options.jsonOutput) {
|
|
15722
|
-
|
|
15732
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, result3);
|
|
15723
15733
|
} else {
|
|
15724
15734
|
console.error(result3.message);
|
|
15725
15735
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15742,7 +15752,7 @@ async function handlePlayPublish(args) {
|
|
|
15742
15752
|
};
|
|
15743
15753
|
if (options.dryRun) {
|
|
15744
15754
|
if (options.jsonOutput) {
|
|
15745
|
-
|
|
15755
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, dryRun);
|
|
15746
15756
|
} else {
|
|
15747
15757
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15748
15758
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15810,7 +15820,7 @@ async function handlePlayPublish(args) {
|
|
|
15810
15820
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15811
15821
|
};
|
|
15812
15822
|
if (options.jsonOutput) {
|
|
15813
|
-
|
|
15823
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, result2);
|
|
15814
15824
|
} else {
|
|
15815
15825
|
printPublishReceipt({
|
|
15816
15826
|
name: rootPlayName,
|
|
@@ -15841,7 +15851,7 @@ async function handlePlayPublish(args) {
|
|
|
15841
15851
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15842
15852
|
latest: useLatest
|
|
15843
15853
|
};
|
|
15844
|
-
|
|
15854
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, result2);
|
|
15845
15855
|
return 0;
|
|
15846
15856
|
}
|
|
15847
15857
|
const resolvedName = parseReferencedPlayTarget2(playName).playName;
|
|
@@ -15865,7 +15875,7 @@ async function handlePlayPublish(args) {
|
|
|
15865
15875
|
revisionId ? { revisionId } : {}
|
|
15866
15876
|
);
|
|
15867
15877
|
if (options.jsonOutput) {
|
|
15868
|
-
|
|
15878
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, result);
|
|
15869
15879
|
} else {
|
|
15870
15880
|
printPublishReceipt({
|
|
15871
15881
|
name: result.name,
|
|
@@ -15905,7 +15915,7 @@ async function handlePlayDelete(args) {
|
|
|
15905
15915
|
);
|
|
15906
15916
|
return 2;
|
|
15907
15917
|
}
|
|
15908
|
-
const client = new (0,
|
|
15918
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
15909
15919
|
let detail;
|
|
15910
15920
|
try {
|
|
15911
15921
|
detail = await client.getPlay(parseReferencedPlayTarget2(playName).playName);
|
|
@@ -15929,8 +15939,8 @@ async function handlePlayDelete(args) {
|
|
|
15929
15939
|
name: resolvedName,
|
|
15930
15940
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15931
15941
|
};
|
|
15932
|
-
if (
|
|
15933
|
-
|
|
15942
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
15943
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, result2);
|
|
15934
15944
|
} else {
|
|
15935
15945
|
process.stdout.write(
|
|
15936
15946
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15940,8 +15950,8 @@ async function handlePlayDelete(args) {
|
|
|
15940
15950
|
return 0;
|
|
15941
15951
|
}
|
|
15942
15952
|
const result = await client.deletePlay(resolvedName);
|
|
15943
|
-
if (
|
|
15944
|
-
|
|
15953
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
15954
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, result);
|
|
15945
15955
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15946
15956
|
}
|
|
15947
15957
|
if (result.alreadyArchived) {
|
|
@@ -15980,13 +15990,13 @@ async function handlePlayRestore(args) {
|
|
|
15980
15990
|
);
|
|
15981
15991
|
return 2;
|
|
15982
15992
|
}
|
|
15983
|
-
const client = new (0,
|
|
15993
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
15984
15994
|
try {
|
|
15985
15995
|
const result = await client.restorePlay(
|
|
15986
15996
|
parseReferencedPlayTarget2(playName).playName
|
|
15987
15997
|
);
|
|
15988
|
-
if (
|
|
15989
|
-
|
|
15998
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
15999
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, result);
|
|
15990
16000
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
15991
16001
|
}
|
|
15992
16002
|
if (result.alreadyActive) {
|
|
@@ -16024,12 +16034,12 @@ Concepts:
|
|
|
16024
16034
|
New Plays start at person; publishing moves them to team, preserving folders.
|
|
16025
16035
|
|
|
16026
16036
|
Run and retrieve results:
|
|
16027
|
-
1. Discover a Play: deepline plays search email
|
|
16037
|
+
1. Discover a Play: deepline plays search email
|
|
16028
16038
|
Inspect its input contract: deepline describe <play-name>
|
|
16029
16039
|
2. Start and follow a new run: deepline plays run workflow.play.ts --csv contacts.csv
|
|
16030
16040
|
This example requires input.csv. Use the selected Play's actual input fields.
|
|
16031
16041
|
Run waits and shows progress by default; --no-wait returns immediately.
|
|
16032
|
-
3. Read its overview: deepline runs get <run-id>
|
|
16042
|
+
3. Read its overview: deepline runs get <run-id>
|
|
16033
16043
|
4. Export complete rows: deepline runs export <run-id> --dataset <returned-selector> --out results.csv
|
|
16034
16044
|
If disconnected, attach to the SAME run with deepline runs tail <run-id>.
|
|
16035
16045
|
Repeating plays run starts another run; tail does not.
|
|
@@ -16059,11 +16069,11 @@ Authoring:
|
|
|
16059
16069
|
Play work unless the caller explicitly asks to leave the inferred graph.
|
|
16060
16070
|
|
|
16061
16071
|
Common commands:
|
|
16062
|
-
deepline search "name and company domain -> work email" --type prebuilts
|
|
16072
|
+
deepline search "name and company domain -> work email" --type prebuilts
|
|
16063
16073
|
deepline describe prebuilt/person-linkedin-to-email
|
|
16064
16074
|
deepline plays check prebuilt/name-and-domain-to-email-waterfall-batch
|
|
16065
16075
|
deepline plays run prebuilt/person-linkedin-to-email --input '{"linkedin_url":"..."}'
|
|
16066
|
-
deepline plays get prebuilt/person-linkedin-to-email
|
|
16076
|
+
deepline plays get prebuilt/person-linkedin-to-email
|
|
16067
16077
|
`
|
|
16068
16078
|
);
|
|
16069
16079
|
play.command("check <target>").description("Check a local play file or named/prebuilt play contract.").addHelpText(
|
|
@@ -16082,10 +16092,9 @@ Notes:
|
|
|
16082
16092
|
|
|
16083
16093
|
Examples:
|
|
16084
16094
|
deepline plays check prebuilt/name-and-domain-to-email-waterfall-batch
|
|
16085
|
-
deepline plays check my-play
|
|
16086
|
-
deepline plays check my.play.ts
|
|
16087
|
-
deepline plays check my.play.ts --
|
|
16088
|
-
deepline plays check my.play.ts --full --json
|
|
16095
|
+
deepline plays check my-play
|
|
16096
|
+
deepline plays check my.play.ts
|
|
16097
|
+
deepline plays check my.play.ts --full
|
|
16089
16098
|
`
|
|
16090
16099
|
).option("--full", "Include compiler diagnostics").option(
|
|
16091
16100
|
"--json [fields]",
|
|
@@ -16093,7 +16102,7 @@ Examples:
|
|
|
16093
16102
|
).action(async (target, options) => {
|
|
16094
16103
|
process.exitCode = await handlePlayCheck([
|
|
16095
16104
|
target,
|
|
16096
|
-
...
|
|
16105
|
+
..._chunkBO3ADIBVjs.jsonFieldArgs.call(void 0, options.json),
|
|
16097
16106
|
...options.full ? ["--full"] : []
|
|
16098
16107
|
]);
|
|
16099
16108
|
});
|
|
@@ -16178,7 +16187,7 @@ Examples:
|
|
|
16178
16187
|
deepline plays run my.play.ts --input '{"domain":"stripe.com"}' --log-level debug
|
|
16179
16188
|
deepline plays run my.play.ts --profile absurd
|
|
16180
16189
|
deepline plays run my.play.ts --max-concurrent-external-calls 20
|
|
16181
|
-
deepline plays run my.play.ts --input @input.json
|
|
16190
|
+
deepline plays run my.play.ts --input @input.json
|
|
16182
16191
|
deepline plays run cto-search.play.ts --limit 5
|
|
16183
16192
|
deepline runs export <run-id> --out output.csv
|
|
16184
16193
|
deepline runs get <run-id>
|
|
@@ -16291,12 +16300,11 @@ Notes:
|
|
|
16291
16300
|
|
|
16292
16301
|
Examples:
|
|
16293
16302
|
deepline plays get prebuilt/person-linkedin-to-email
|
|
16294
|
-
deepline plays get prebuilt/person-linkedin-to-email --json | jq '.play.liveRevision'
|
|
16295
16303
|
deepline plays get prebuilt/name-and-domain-to-email-waterfall-batch --source > email-waterfall.play.ts
|
|
16296
16304
|
deepline plays get my-play --source --out ./my-play/ --working
|
|
16297
16305
|
deepline plays get my-play --source --out ./my-play-v3/ --revision 3
|
|
16298
16306
|
`
|
|
16299
|
-
).option("--json", "Emit JSON output
|
|
16307
|
+
).option("--json", "Emit JSON output").option(
|
|
16300
16308
|
"--source",
|
|
16301
16309
|
"Read source; prints single-file Plays or combines with --out to write the full bundle"
|
|
16302
16310
|
).option(
|
|
@@ -16321,9 +16329,9 @@ Examples:
|
|
|
16321
16329
|
const limit = Number(options.historyLimit);
|
|
16322
16330
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16323
16331
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16324
|
-
const client = new (0,
|
|
16332
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
16325
16333
|
if (options.binding) {
|
|
16326
|
-
|
|
16334
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0,
|
|
16327
16335
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16328
16336
|
);
|
|
16329
16337
|
return;
|
|
@@ -16331,9 +16339,9 @@ Examples:
|
|
|
16331
16339
|
const result = await client.listPlayTriggerInventory({
|
|
16332
16340
|
cursor: options.cursor
|
|
16333
16341
|
});
|
|
16334
|
-
|
|
16342
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, {
|
|
16335
16343
|
...result,
|
|
16336
|
-
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}
|
|
16344
|
+
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16337
16345
|
});
|
|
16338
16346
|
});
|
|
16339
16347
|
play.command("list").description("List saved and prebuilt plays.").addHelpText(
|
|
@@ -16351,10 +16359,10 @@ Notes:
|
|
|
16351
16359
|
|
|
16352
16360
|
Examples:
|
|
16353
16361
|
deepline plays list
|
|
16354
|
-
deepline plays list --tag smb
|
|
16355
|
-
deepline search "name and company domain -> work email" --type prebuilts
|
|
16362
|
+
deepline plays list --tag smb
|
|
16363
|
+
deepline search "name and company domain -> work email" --type prebuilts
|
|
16356
16364
|
`
|
|
16357
|
-
).option("--limit <count>", "Page size").option("--cursor <cursor>", "Continue a previous page").option("--show-cost", "Include the per-row or per-run cost estimate").option("--json", "Emit JSON output
|
|
16365
|
+
).option("--limit <count>", "Page size").option("--cursor <cursor>", "Continue a previous page").option("--show-cost", "Include the per-row or per-run cost estimate").option("--json", "Emit JSON output").option(
|
|
16358
16366
|
"--categories <categories>",
|
|
16359
16367
|
"Filter by comma-separated canonical tool categories"
|
|
16360
16368
|
).option(
|
|
@@ -16378,7 +16386,7 @@ Examples:
|
|
|
16378
16386
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16379
16387
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16380
16388
|
}
|
|
16381
|
-
const result = await new (0,
|
|
16389
|
+
const result = await new (0, _chunk44SHFHA3js.DeeplineClient)().getPlaysActivity({
|
|
16382
16390
|
timeZone: options.timeZone,
|
|
16383
16391
|
days,
|
|
16384
16392
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16392,10 +16400,10 @@ Examples:
|
|
|
16392
16400
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16393
16401
|
);
|
|
16394
16402
|
}
|
|
16395
|
-
|
|
16403
|
+
_chunkBO3ADIBVjs.printCommandEnvelope.call(void 0,
|
|
16396
16404
|
{ ...result },
|
|
16397
16405
|
{
|
|
16398
|
-
json: options.json
|
|
16406
|
+
json: Boolean(options.json),
|
|
16399
16407
|
text: `${lines.join("\n")}
|
|
16400
16408
|
`
|
|
16401
16409
|
}
|
|
@@ -16421,7 +16429,7 @@ Examples:
|
|
|
16421
16429
|
false
|
|
16422
16430
|
);
|
|
16423
16431
|
});
|
|
16424
|
-
|
|
16432
|
+
_chunkC553OZGGjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16425
16433
|
play,
|
|
16426
16434
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16427
16435
|
);
|
|
@@ -16435,10 +16443,10 @@ Notes:
|
|
|
16435
16443
|
Prebuilt and archived Plays are not part of this index.
|
|
16436
16444
|
|
|
16437
16445
|
Examples:
|
|
16438
|
-
deepline plays grep email
|
|
16446
|
+
deepline plays grep email
|
|
16439
16447
|
deepline describe prebuilt/company-to-contact
|
|
16440
16448
|
`
|
|
16441
|
-
).option("--json", "Emit JSON output
|
|
16449
|
+
).option("--json", "Emit JSON output").action(async (query, options) => {
|
|
16442
16450
|
process.exitCode = await handlePlayGrep([
|
|
16443
16451
|
query,
|
|
16444
16452
|
...options.json ? ["--json"] : []
|
|
@@ -16454,18 +16462,17 @@ Notes:
|
|
|
16454
16462
|
Use \`get\` when you need full metadata, revisions, source fields, or latest runs.
|
|
16455
16463
|
|
|
16456
16464
|
Examples:
|
|
16457
|
-
deepline
|
|
16458
|
-
deepline
|
|
16459
|
-
deepline plays describe prebuilt/person-linkedin-to-email --json inputSchema,runCommand
|
|
16465
|
+
deepline describe prebuilt/person-linkedin-to-email
|
|
16466
|
+
deepline describe prebuilt/person-linkedin-to-email
|
|
16460
16467
|
deepline plays get prebuilt/person-linkedin-to-email --source --out ./person-linkedin-to-email.play.ts
|
|
16461
16468
|
`
|
|
16462
16469
|
).option("--compact", "Emit compact schemas").option(
|
|
16463
16470
|
"--json [fields]",
|
|
16464
16471
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16465
16472
|
);
|
|
16466
|
-
|
|
16473
|
+
_chunk2JRRXXTAjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16467
16474
|
async (target, options) => {
|
|
16468
|
-
const ownView = () => handlePlayDescribe(
|
|
16475
|
+
const ownView = () => handlePlayDescribe(_chunkBO3ADIBVjs.describeArgs.call(void 0, target, options));
|
|
16469
16476
|
const [flagText] = [options.json].filter(
|
|
16470
16477
|
(value) => typeof value === "string"
|
|
16471
16478
|
);
|
|
@@ -16476,7 +16483,7 @@ Examples:
|
|
|
16476
16483
|
process.exitCode = await ownView();
|
|
16477
16484
|
return;
|
|
16478
16485
|
}
|
|
16479
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16486
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-NWU7LI3I.js")));
|
|
16480
16487
|
process.exitCode = await describeAnything(
|
|
16481
16488
|
name,
|
|
16482
16489
|
{
|
|
@@ -16498,10 +16505,10 @@ Notes:
|
|
|
16498
16505
|
|
|
16499
16506
|
Examples:
|
|
16500
16507
|
deepline plays versions --name my-play
|
|
16501
|
-
deepline plays versions --name my-play
|
|
16508
|
+
deepline plays versions --name my-play
|
|
16502
16509
|
deepline plays run my-play --revision-id <revision-id>
|
|
16503
16510
|
`
|
|
16504
|
-
).option("--name <name>", "Saved play name").option("--json", "Emit JSON output
|
|
16511
|
+
).option("--name <name>", "Saved play name").option("--json", "Emit JSON output").action(async (options) => {
|
|
16505
16512
|
process.exitCode = await handlePlayVersions([
|
|
16506
16513
|
...options.name ? ["--name", options.name] : [],
|
|
16507
16514
|
...options.json ? ["--json"] : []
|
|
@@ -16519,13 +16526,13 @@ Notes:
|
|
|
16519
16526
|
|
|
16520
16527
|
Examples:
|
|
16521
16528
|
deepline plays save ./company-research.play.ts
|
|
16522
|
-
deepline plays save ./company-research.play.ts --dry-run
|
|
16529
|
+
deepline plays save ./company-research.play.ts --dry-run
|
|
16523
16530
|
deepline plays publish ./company-research.play.ts
|
|
16524
16531
|
`
|
|
16525
16532
|
).option("--expected-artifact <hash>", "Require the checked artifact hash").option(
|
|
16526
16533
|
"--dry-run",
|
|
16527
16534
|
"Bundle and show the planned draft save without mutation"
|
|
16528
|
-
).option("--json", "Emit JSON output
|
|
16535
|
+
).option("--json", "Emit JSON output").action(async (file, options) => {
|
|
16529
16536
|
process.exitCode = await handlePlaySave([
|
|
16530
16537
|
file,
|
|
16531
16538
|
...options.expectedArtifact ? ["--expected-artifact", options.expectedArtifact] : [],
|
|
@@ -16548,13 +16555,13 @@ Notes:
|
|
|
16548
16555
|
Change location with: deepline plays settings set --play <play> --name path --value team/Research
|
|
16549
16556
|
|
|
16550
16557
|
Examples:
|
|
16551
|
-
deepline plays set-live my-play --latest
|
|
16552
|
-
deepline plays set-live my-play --revision-id <revision-id>
|
|
16553
|
-
deepline plays set-live my.play.ts
|
|
16554
|
-
deepline plays publish my.play.ts
|
|
16558
|
+
deepline plays set-live my-play --latest
|
|
16559
|
+
deepline plays set-live my-play --revision-id <revision-id>
|
|
16560
|
+
deepline plays set-live my.play.ts
|
|
16561
|
+
deepline plays publish my.play.ts
|
|
16555
16562
|
deepline plays check my.play.ts
|
|
16556
16563
|
deepline plays publish my.play.ts --expected-artifact <artifact-hash>
|
|
16557
|
-
deepline plays publish my.play.ts --dry-run
|
|
16564
|
+
deepline plays publish my.play.ts --dry-run
|
|
16558
16565
|
`
|
|
16559
16566
|
);
|
|
16560
16567
|
play.command("deploy [directory]").description(
|
|
@@ -16576,7 +16583,7 @@ Examples:
|
|
|
16576
16583
|
).option(
|
|
16577
16584
|
"--manifest <file>",
|
|
16578
16585
|
"Manifest file name in the directory (default: deepline.json)"
|
|
16579
|
-
).option("--repo <owner/name>", "Repository to record on the deployment").option("--ref <ref>", "Branch or ref to record on the deployment").option("--commit <sha>", "Commit to record on the deployment").option("--json", "Emit JSON output
|
|
16586
|
+
).option("--repo <owner/name>", "Repository to record on the deployment").option("--ref <ref>", "Branch or ref to record on the deployment").option("--commit <sha>", "Commit to record on the deployment").option("--json", "Emit JSON output").action(
|
|
16580
16587
|
async (directory, options) => handlePlaysDeploy(directory, options)
|
|
16581
16588
|
);
|
|
16582
16589
|
play.command("deployments [id]").description(
|
|
@@ -16592,8 +16599,8 @@ Examples:
|
|
|
16592
16599
|
deepline plays deployments
|
|
16593
16600
|
deepline plays deployments <deployment-id>
|
|
16594
16601
|
`
|
|
16595
|
-
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output
|
|
16596
|
-
async (id, options) => id ?
|
|
16602
|
+
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16603
|
+
async (id, options) => id ? _chunk5Z7JFUNXjs.handleDeploymentGet.call(void 0, id, options) : _chunk5Z7JFUNXjs.handleDeploymentsList.call(void 0, options)
|
|
16597
16604
|
);
|
|
16598
16605
|
addPublishHelp(
|
|
16599
16606
|
play.command("publish <target>").description(
|
|
@@ -16602,7 +16609,7 @@ Examples:
|
|
|
16602
16609
|
).option("--latest", "Promote the newest saved revision").option("--revision-id <id>", "Revision to promote").option(
|
|
16603
16610
|
"--expected-artifact <hash>",
|
|
16604
16611
|
"Require the local file to produce this checked artifact hash"
|
|
16605
|
-
).option("--dry-run", "Bundle and show the planned publish without mutation").option("--json", "Emit JSON output
|
|
16612
|
+
).option("--dry-run", "Bundle and show the planned publish without mutation").option("--json", "Emit JSON output").action(async (target, options) => {
|
|
16606
16613
|
process.exitCode = await handlePlayPublish([
|
|
16607
16614
|
target,
|
|
16608
16615
|
...options.latest ? ["--latest"] : [],
|
|
@@ -16617,7 +16624,7 @@ Examples:
|
|
|
16617
16624
|
).option("--latest", "Promote the newest saved revision").option("--revision-id <id>", "Revision to promote").option(
|
|
16618
16625
|
"--expected-artifact <hash>",
|
|
16619
16626
|
"Require the local file to produce this checked artifact hash"
|
|
16620
|
-
).option("--dry-run", "Bundle and show the planned publish without mutation").option("--json", "Emit JSON output
|
|
16627
|
+
).option("--dry-run", "Bundle and show the planned publish without mutation").option("--json", "Emit JSON output").action(async (target, options) => {
|
|
16621
16628
|
process.exitCode = await handlePlayPublish([
|
|
16622
16629
|
target,
|
|
16623
16630
|
...options.latest ? ["--latest"] : [],
|
|
@@ -16637,10 +16644,10 @@ Notes:
|
|
|
16637
16644
|
|
|
16638
16645
|
Examples:
|
|
16639
16646
|
deepline plays delete my-play --yes
|
|
16640
|
-
deepline plays delete my-play --yes
|
|
16641
|
-
deepline plays delete my-play --yes --dry-run
|
|
16647
|
+
deepline plays delete my-play --yes
|
|
16648
|
+
deepline plays delete my-play --yes --dry-run
|
|
16642
16649
|
`
|
|
16643
|
-
).option("-y, --yes", "Confirm deletion").option("--dry-run", "Show the planned archive without mutating the play").option("--json", "Emit JSON output
|
|
16650
|
+
).option("-y, --yes", "Confirm deletion").option("--dry-run", "Show the planned archive without mutating the play").option("--json", "Emit JSON output").action(async (target, options) => {
|
|
16644
16651
|
process.exitCode = await handlePlayDelete([
|
|
16645
16652
|
target,
|
|
16646
16653
|
...options.yes ? ["--yes"] : [],
|
|
@@ -16656,9 +16663,9 @@ Notes:
|
|
|
16656
16663
|
|
|
16657
16664
|
Examples:
|
|
16658
16665
|
deepline plays restore my-play
|
|
16659
|
-
deepline plays restore my-play
|
|
16666
|
+
deepline plays restore my-play
|
|
16660
16667
|
`
|
|
16661
|
-
).option("--json", "Emit JSON output
|
|
16668
|
+
).option("--json", "Emit JSON output").action(async (target, options) => {
|
|
16662
16669
|
process.exitCode = await handlePlayRestore([
|
|
16663
16670
|
target,
|
|
16664
16671
|
...options.json ? ["--json"] : []
|
|
@@ -16677,8 +16684,8 @@ Concepts:
|
|
|
16677
16684
|
stop requests cancellation. rerun starts new work and may spend credits.
|
|
16678
16685
|
|
|
16679
16686
|
Retrieve results:
|
|
16680
|
-
deepline runs get <run-id>
|
|
16681
|
-
deepline runs children <parent-run-id> --launch-key approval
|
|
16687
|
+
deepline runs get <run-id>
|
|
16688
|
+
deepline runs children <parent-run-id> --launch-key approval
|
|
16682
16689
|
deepline runs export <run-id> --dataset <returned-selector> --out results.csv
|
|
16683
16690
|
Choose the selector returned by get, not a guessed internal table name.
|
|
16684
16691
|
Overview previews are samples, not complete rows. --full adds diagnostics,
|
|
@@ -16700,17 +16707,17 @@ More options:
|
|
|
16700
16707
|
|
|
16701
16708
|
Debug a run:
|
|
16702
16709
|
Active: deepline runs watch <run-id> --log-level debug
|
|
16703
|
-
Historical: deepline runs logs <run-id> --out run.log --log-level debug
|
|
16704
|
-
Full state: deepline runs get <run-id> --full
|
|
16710
|
+
Historical: deepline runs logs <run-id> --out run.log --log-level debug
|
|
16711
|
+
Full state: deepline runs get <run-id> --full
|
|
16705
16712
|
|
|
16706
16713
|
Examples:
|
|
16707
|
-
deepline runs get play/my-play/run/20260501t000000-000
|
|
16714
|
+
deepline runs get play/my-play/run/20260501t000000-000
|
|
16708
16715
|
deepline runs watch play/my-play/run/20260501t000000-000
|
|
16709
|
-
deepline runs logs play/my-play/run/20260501t000000-000 --out run.log --log-level debug
|
|
16710
|
-
deepline runs list --play my-play --status failed
|
|
16711
|
-
deepline runs list --status running
|
|
16712
|
-
deepline runs stop play/my-play/run/20260501t000000-000 --reason "stale lock"
|
|
16713
|
-
deepline runs stop-all --reason "unjam workspace"
|
|
16716
|
+
deepline runs logs play/my-play/run/20260501t000000-000 --out run.log --log-level debug
|
|
16717
|
+
deepline runs list --play my-play --status failed
|
|
16718
|
+
deepline runs list --status running
|
|
16719
|
+
deepline runs stop play/my-play/run/20260501t000000-000 --reason "stale lock"
|
|
16720
|
+
deepline runs stop-all --reason "unjam workspace"
|
|
16714
16721
|
deepline runs export play/my-play/run/20260501t000000-000 --out output.csv
|
|
16715
16722
|
`
|
|
16716
16723
|
);
|
|
@@ -16720,7 +16727,7 @@ Examples:
|
|
|
16720
16727
|
registerRunEventsCommand(runs);
|
|
16721
16728
|
runs.command("status <runId>").description(
|
|
16722
16729
|
"Legacy scalar-only read. Use runs get for canonical status, progress, logs, and results."
|
|
16723
|
-
).option("--json", "Emit JSON output
|
|
16730
|
+
).option("--json", "Emit JSON output").action(async (runId, options) => {
|
|
16724
16731
|
process.exitCode = await handleRunLifecycleStatus([
|
|
16725
16732
|
runId,
|
|
16726
16733
|
...options.json ? ["--json"] : []
|
|
@@ -16732,7 +16739,7 @@ Examples:
|
|
|
16732
16739
|
"after",
|
|
16733
16740
|
`
|
|
16734
16741
|
Notes:
|
|
16735
|
-
Shows a readable overview
|
|
16742
|
+
Shows a readable overview; --json emits JSON.
|
|
16736
16743
|
Both views use the same overview with one entry per dataset, summaries,
|
|
16737
16744
|
labeled previews, the retained result, and top-level command hints. If a
|
|
16738
16745
|
result requires full retrieval, resultState is available_in_full and result
|
|
@@ -16749,12 +16756,11 @@ Notes:
|
|
|
16749
16756
|
|
|
16750
16757
|
Examples:
|
|
16751
16758
|
deepline runs get play/my-play/run/20260501t000000-000
|
|
16752
|
-
deepline runs get play/my-play/run/20260501t000000-000
|
|
16753
|
-
deepline runs
|
|
16754
|
-
deepline runs
|
|
16755
|
-
deepline runs get play/my-play/run/20260501t000000-000 --full --json
|
|
16759
|
+
deepline runs get play/my-play/run/20260501t000000-000
|
|
16760
|
+
deepline runs logs play/my-play/run/20260501t000000-000 --failed
|
|
16761
|
+
deepline runs get play/my-play/run/20260501t000000-000 --full
|
|
16756
16762
|
deepline runs get play/my-play/run/20260501t000000-000 --input
|
|
16757
|
-
deepline runs get play/my-play/run/20260501t000000-000 --config
|
|
16763
|
+
deepline runs get play/my-play/run/20260501t000000-000 --config
|
|
16758
16764
|
`
|
|
16759
16765
|
).option(
|
|
16760
16766
|
"--json [fields]",
|
|
@@ -16773,7 +16779,7 @@ Examples:
|
|
|
16773
16779
|
).action(async (runId, options) => {
|
|
16774
16780
|
process.exitCode = await handleRunGet([
|
|
16775
16781
|
runId,
|
|
16776
|
-
...
|
|
16782
|
+
..._chunkBO3ADIBVjs.jsonFieldArgs.call(void 0, options.json),
|
|
16777
16783
|
...options.full ? ["--full"] : [],
|
|
16778
16784
|
...options.input ? ["--input"] : [],
|
|
16779
16785
|
...options.config ? ["--config"] : [],
|
|
@@ -16797,9 +16803,9 @@ Notes:
|
|
|
16797
16803
|
started. A different key intentionally starts another rerun.
|
|
16798
16804
|
|
|
16799
16805
|
Examples:
|
|
16800
|
-
deepline runs rerun play/my-play/webhook/abc
|
|
16801
|
-
deepline runs rerun play/my-play/webhook/abc --idempotency-key incident-42
|
|
16802
|
-
deepline runs rerun play/my-play/webhook/abc --input-overrides '{"domain":"example.com"}'
|
|
16806
|
+
deepline runs rerun play/my-play/webhook/abc
|
|
16807
|
+
deepline runs rerun play/my-play/webhook/abc --idempotency-key incident-42
|
|
16808
|
+
deepline runs rerun play/my-play/webhook/abc --input-overrides '{"domain":"example.com"}'
|
|
16803
16809
|
`
|
|
16804
16810
|
).option(
|
|
16805
16811
|
"--idempotency-key <key>",
|
|
@@ -16807,14 +16813,14 @@ Examples:
|
|
|
16807
16813
|
).option(
|
|
16808
16814
|
"--input-overrides <json>",
|
|
16809
16815
|
"Override existing scalar fields in the retained input for this rerun"
|
|
16810
|
-
).option("--json", "Emit JSON output
|
|
16816
|
+
).option("--json", "Emit JSON output").action(async (runId, options) => {
|
|
16811
16817
|
process.exitCode = await runRunsRerunCommand(runId, options);
|
|
16812
16818
|
});
|
|
16813
16819
|
runs.command("list").description("List play runs.").addHelpText(
|
|
16814
16820
|
"after",
|
|
16815
16821
|
`
|
|
16816
16822
|
Notes:
|
|
16817
|
-
Requires --play or --status. Discover Play references with deepline plays list
|
|
16823
|
+
Requires --play or --status. Discover Play references with deepline plays list.
|
|
16818
16824
|
Bounded inventory for a play's recent runs. Use --compact for agent loops.
|
|
16819
16825
|
Use the exact qualified Play reference, such as workspace/my-play or prebuilt/my-play.
|
|
16820
16826
|
--offset requires --play; narrow status-only lists with a Play reference to paginate.
|
|
@@ -16825,11 +16831,11 @@ Notes:
|
|
|
16825
16831
|
|
|
16826
16832
|
Examples:
|
|
16827
16833
|
deepline runs list --play my-play
|
|
16828
|
-
deepline runs list --play workspace/my-play
|
|
16829
|
-
deepline runs list --play my-play --status failed --compact
|
|
16830
|
-
deepline runs list --status running --compact
|
|
16834
|
+
deepline runs list --play workspace/my-play
|
|
16835
|
+
deepline runs list --play my-play --status failed --compact
|
|
16836
|
+
deepline runs list --status running --compact
|
|
16831
16837
|
`
|
|
16832
|
-
).option("--play <name>", "Play name to filter runs").option("--status <status>", "Filter by run status").option("--limit <count>", "Maximum runs to return").option("--offset <count>", "Zero-based page offset (requires --play)").option("--compact", "Drop verbose fields from JSON output").option("--json", "Emit JSON output
|
|
16838
|
+
).option("--play <name>", "Play name to filter runs").option("--status <status>", "Filter by run status").option("--limit <count>", "Maximum runs to return").option("--offset <count>", "Zero-based page offset (requires --play)").option("--compact", "Drop verbose fields from JSON output").option("--json", "Emit JSON output").action(async (options) => {
|
|
16833
16839
|
process.exitCode = await handleRunsList([
|
|
16834
16840
|
...options.play ? ["--play", options.play] : [],
|
|
16835
16841
|
...options.status ? ["--status", options.status] : [],
|
|
@@ -16851,14 +16857,13 @@ Notes:
|
|
|
16851
16857
|
|
|
16852
16858
|
Examples:
|
|
16853
16859
|
deepline runs stop-all --dry-run
|
|
16854
|
-
deepline runs stop-all --dry-run --json
|
|
16855
16860
|
deepline runs stop-all --reason "unjam workspace"
|
|
16856
|
-
deepline runs stop-all
|
|
16861
|
+
deepline runs stop-all
|
|
16857
16862
|
`
|
|
16858
16863
|
).option("--reason <text>", "Reason to include with each stop request").option(
|
|
16859
16864
|
"--dry-run",
|
|
16860
16865
|
"List the runs that would be stopped without cancelling anything"
|
|
16861
|
-
).option("--json", "Emit JSON output
|
|
16866
|
+
).option("--json", "Emit JSON output").action(async (options) => {
|
|
16862
16867
|
process.exitCode = await handleRunStopAll([
|
|
16863
16868
|
...options.reason ? ["--reason", options.reason] : [],
|
|
16864
16869
|
...options.dryRun ? ["--dry-run"] : [],
|
|
@@ -16939,7 +16944,7 @@ Examples:
|
|
|
16939
16944
|
"--debug",
|
|
16940
16945
|
"Compatibility alias for --log-level debug"
|
|
16941
16946
|
).hideHelp()
|
|
16942
|
-
).option("--json", "JSON output
|
|
16947
|
+
).option("--json", "JSON output").option("--since <timestamp>", "Search from this UTC time").option("--until <timestamp>", "Search before this UTC time").option("--play <name>", "Filter by Play").option("--kind <kind>", "Filter by event kind").option("--where <filter>", "Match event fields; examples below").option("--payloads", "Include available details or saved results").option(
|
|
16943
16948
|
"--cursor <token>",
|
|
16944
16949
|
"Continue to older logs or the next events page"
|
|
16945
16950
|
).addOption(
|
|
@@ -16990,9 +16995,9 @@ Notes:
|
|
|
16990
16995
|
|
|
16991
16996
|
Examples:
|
|
16992
16997
|
deepline runs stop play/my-play/run/20260501t000000-000 --reason "stale lock"
|
|
16993
|
-
deepline runs stop play/my-play/run/20260501t000000-000
|
|
16998
|
+
deepline runs stop play/my-play/run/20260501t000000-000
|
|
16994
16999
|
`
|
|
16995
|
-
).option("--reason <text>", "Reason to include with the stop request").option("--json", "Emit JSON output
|
|
17000
|
+
).option("--reason <text>", "Reason to include with the stop request").option("--json", "Emit JSON output").action(async (runId, options) => {
|
|
16996
17001
|
process.exitCode = await handleRunStop([
|
|
16997
17002
|
runId,
|
|
16998
17003
|
...options.reason ? ["--reason", options.reason] : [],
|
|
@@ -17024,7 +17029,7 @@ Examples:
|
|
|
17024
17029
|
deepline runs export play/my-play/run/20260501t000000-000 --out output.csv
|
|
17025
17030
|
deepline runs export play/my-play/run/20260501t000000-000 --dataset result.rows --out output.csv
|
|
17026
17031
|
deepline runs export play/my-play/run/20260501t000000-000 --out output.csv --metadata-out output.meta.json
|
|
17027
|
-
deepline runs export play/my-play/run/20260501t000000-000 --out output.csv
|
|
17032
|
+
deepline runs export play/my-play/run/20260501t000000-000 --out output.csv
|
|
17028
17033
|
deepline runs export play/my-play/run/20260501t000000-000 --format json --out rows.json
|
|
17029
17034
|
deepline runs export play/my-play/run/20260501t000000-000 --out rows.csv --wait --timeout-ms 600000
|
|
17030
17035
|
`
|
|
@@ -17049,7 +17054,7 @@ Examples:
|
|
|
17049
17054
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17050
17055
|
...options.wait ? ["--wait"] : [],
|
|
17051
17056
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17052
|
-
...
|
|
17057
|
+
..._chunkBO3ADIBVjs.jsonFieldArgs.call(void 0, options.json)
|
|
17053
17058
|
]);
|
|
17054
17059
|
});
|
|
17055
17060
|
const share = play.command("share").description(
|
|
@@ -17077,15 +17082,15 @@ What is exposed:
|
|
|
17077
17082
|
--seo noindex to keep the page out of search engines if you must share it.
|
|
17078
17083
|
|
|
17079
17084
|
Examples:
|
|
17080
|
-
deepline plays share status company-to-contact
|
|
17085
|
+
deepline plays share status company-to-contact
|
|
17081
17086
|
deepline plays share publish company-to-contact --yes
|
|
17082
17087
|
deepline plays share publish company-to-contact --version 3 --seo noindex --yes
|
|
17083
|
-
deepline plays share update company-to-contact --show-latency
|
|
17084
|
-
deepline plays share regenerate company-to-contact
|
|
17088
|
+
deepline plays share update company-to-contact --show-latency
|
|
17089
|
+
deepline plays share regenerate company-to-contact
|
|
17085
17090
|
deepline plays share unpublish company-to-contact --yes
|
|
17086
17091
|
`
|
|
17087
17092
|
);
|
|
17088
|
-
share.command("status <play>").description("Show a play's share-page status and revision picker.").option("--json", "Emit JSON output
|
|
17093
|
+
share.command("status <play>").description("Show a play's share-page status and revision picker.").option("--json", "Emit JSON output").action(async (playName, options) => {
|
|
17089
17094
|
process.exitCode = await handlePlayShareStatus([
|
|
17090
17095
|
playName,
|
|
17091
17096
|
...options.json ? ["--json"] : []
|
|
@@ -17096,7 +17101,7 @@ Examples:
|
|
|
17096
17101
|
).option("--latest", "Publish the newest revision (default).").option("--version <n>", "Publish a specific version number.").option("--revision-id <id>", "Publish a specific revision id.").option("--seo <mode>", "SEO indexing: index | noindex.").option("--show-cost", "Show average Deepline credit cost on the page.").option("--show-latency", "Show average latency on the page.").option("--no-run-check", 'Skip the "must have a completed run" gate.').option(
|
|
17097
17102
|
"-y, --yes",
|
|
17098
17103
|
"Confirm public exposure of the play code/structure (required)."
|
|
17099
|
-
).option("--dry-run", "Show the planned publish without writing.").option("--json", "Emit JSON output
|
|
17104
|
+
).option("--dry-run", "Show the planned publish without writing.").option("--json", "Emit JSON output").addHelpText(
|
|
17100
17105
|
"after",
|
|
17101
17106
|
`
|
|
17102
17107
|
WARNING \u2014 not recommended by default.
|
|
@@ -17117,7 +17122,7 @@ Exit codes: 0 ok; 2 usage/missing --yes; 4 play or version not found;
|
|
|
17117
17122
|
|
|
17118
17123
|
Examples:
|
|
17119
17124
|
deepline plays share publish company-to-contact --yes
|
|
17120
|
-
deepline plays share publish company-to-contact --version 3 --seo noindex --yes
|
|
17125
|
+
deepline plays share publish company-to-contact --version 3 --seo noindex --yes
|
|
17121
17126
|
`
|
|
17122
17127
|
).action(async (playName, options) => {
|
|
17123
17128
|
process.exitCode = await handlePlaySharePublish([
|
|
@@ -17134,7 +17139,7 @@ Examples:
|
|
|
17134
17139
|
...options.json ? ["--json"] : []
|
|
17135
17140
|
]);
|
|
17136
17141
|
});
|
|
17137
|
-
share.command("update <play>").description("Update share-page settings without moving the pointer.").option("--seo <mode>", "SEO indexing: index | noindex.").option("--show-cost", "Show average Deepline credit cost.").option("--hide-cost", "Hide average Deepline credit cost.").option("--show-latency", "Show average latency.").option("--hide-latency", "Hide average latency.").option("--json", "Emit JSON output
|
|
17142
|
+
share.command("update <play>").description("Update share-page settings without moving the pointer.").option("--seo <mode>", "SEO indexing: index | noindex.").option("--show-cost", "Show average Deepline credit cost.").option("--hide-cost", "Hide average Deepline credit cost.").option("--show-latency", "Show average latency.").option("--hide-latency", "Hide average latency.").option("--json", "Emit JSON output").action(async (playName, options) => {
|
|
17138
17143
|
process.exitCode = await handlePlayShareUpdate([
|
|
17139
17144
|
playName,
|
|
17140
17145
|
...options.seo ? ["--seo", options.seo] : [],
|
|
@@ -17145,7 +17150,7 @@ Examples:
|
|
|
17145
17150
|
...options.json ? ["--json"] : []
|
|
17146
17151
|
]);
|
|
17147
17152
|
});
|
|
17148
|
-
share.command("regenerate <play>").description("Regenerate the public page's LLM copy for a revision.").option("--version <n>", "Regenerate a specific version number.").option("--revision-id <id>", "Regenerate a specific revision id.").option("--json", "Emit JSON output
|
|
17153
|
+
share.command("regenerate <play>").description("Regenerate the public page's LLM copy for a revision.").option("--version <n>", "Regenerate a specific version number.").option("--revision-id <id>", "Regenerate a specific revision id.").option("--json", "Emit JSON output").action(async (playName, options) => {
|
|
17149
17154
|
process.exitCode = await handlePlayShareRegenerate([
|
|
17150
17155
|
playName,
|
|
17151
17156
|
...options.version ? ["--version", String(options.version)] : [],
|
|
@@ -17155,7 +17160,7 @@ Examples:
|
|
|
17155
17160
|
});
|
|
17156
17161
|
share.command("unpublish <play>").description(
|
|
17157
17162
|
"Unshare: permanently delete the public page (frees it). Requires --yes."
|
|
17158
|
-
).option("-y, --yes", "Confirm taking the public page down (required).").option("--json", "Emit JSON output
|
|
17163
|
+
).option("-y, --yes", "Confirm taking the public page down (required).").option("--json", "Emit JSON output").addHelpText(
|
|
17159
17164
|
"after",
|
|
17160
17165
|
`
|
|
17161
17166
|
Mutates cloud state. Hard-deletes the page + its generated cards; the URL stops
|
|
@@ -17215,10 +17220,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17215
17220
|
return 2;
|
|
17216
17221
|
}
|
|
17217
17222
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17218
|
-
const status = await new (0,
|
|
17223
|
+
const status = await new (0, _chunk44SHFHA3js.DeeplineClient)().getSharePage(name);
|
|
17219
17224
|
const outputStatus = shareStatusForOutput(status);
|
|
17220
|
-
if (
|
|
17221
|
-
|
|
17225
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
17226
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, outputStatus);
|
|
17222
17227
|
return 0;
|
|
17223
17228
|
}
|
|
17224
17229
|
if (!outputStatus.share) {
|
|
@@ -17257,7 +17262,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17257
17262
|
return 2;
|
|
17258
17263
|
}
|
|
17259
17264
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17260
|
-
const client = new (0,
|
|
17265
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
17261
17266
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17262
17267
|
let resolvedVersion;
|
|
17263
17268
|
if (!revisionId) {
|
|
@@ -17288,8 +17293,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17288
17293
|
);
|
|
17289
17294
|
if (!hasCompleted) {
|
|
17290
17295
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17291
|
-
if (
|
|
17292
|
-
|
|
17296
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
17297
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, {
|
|
17293
17298
|
ok: false,
|
|
17294
17299
|
code: "NO_SUCCESSFUL_RUN",
|
|
17295
17300
|
message,
|
|
@@ -17313,8 +17318,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17313
17318
|
};
|
|
17314
17319
|
if (args.includes("--dry-run")) {
|
|
17315
17320
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17316
|
-
if (
|
|
17317
|
-
|
|
17321
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
17322
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, plan);
|
|
17318
17323
|
} else {
|
|
17319
17324
|
console.log(
|
|
17320
17325
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17324,8 +17329,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17324
17329
|
}
|
|
17325
17330
|
const status = await client.publishSharePage(name, request);
|
|
17326
17331
|
const outputStatus = shareStatusForOutput(status);
|
|
17327
|
-
if (
|
|
17328
|
-
|
|
17332
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
17333
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, outputStatus);
|
|
17329
17334
|
return 0;
|
|
17330
17335
|
}
|
|
17331
17336
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17356,9 +17361,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17356
17361
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17357
17362
|
...seoIndexing ? { seoIndexing } : {}
|
|
17358
17363
|
};
|
|
17359
|
-
const status = await new (0,
|
|
17360
|
-
if (
|
|
17361
|
-
|
|
17364
|
+
const status = await new (0, _chunk44SHFHA3js.DeeplineClient)().updateSharePage(name, request);
|
|
17365
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
17366
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, status);
|
|
17362
17367
|
return 0;
|
|
17363
17368
|
}
|
|
17364
17369
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17373,7 +17378,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17373
17378
|
return 2;
|
|
17374
17379
|
}
|
|
17375
17380
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17376
|
-
const client = new (0,
|
|
17381
|
+
const client = new (0, _chunk44SHFHA3js.DeeplineClient)();
|
|
17377
17382
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17378
17383
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17379
17384
|
if (!revisionId && versionFlag) {
|
|
@@ -17390,8 +17395,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17390
17395
|
revisionId ? { revisionId } : {}
|
|
17391
17396
|
);
|
|
17392
17397
|
const outputStatus = shareStatusForOutput(status);
|
|
17393
|
-
if (
|
|
17394
|
-
|
|
17398
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
17399
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, outputStatus);
|
|
17395
17400
|
return 0;
|
|
17396
17401
|
}
|
|
17397
17402
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17416,9 +17421,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17416
17421
|
return 2;
|
|
17417
17422
|
}
|
|
17418
17423
|
const name = parseReferencedPlayTarget2(target).playName;
|
|
17419
|
-
const status = await new (0,
|
|
17420
|
-
if (
|
|
17421
|
-
|
|
17424
|
+
const status = await new (0, _chunk44SHFHA3js.DeeplineClient)().unpublishSharePage(name);
|
|
17425
|
+
if (_chunkBO3ADIBVjs.argsWantJson.call(void 0, args)) {
|
|
17426
|
+
_chunkBO3ADIBVjs.printCompactJson.call(void 0, status);
|
|
17422
17427
|
return 0;
|
|
17423
17428
|
}
|
|
17424
17429
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17490,4 +17495,5 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17490
17495
|
|
|
17491
17496
|
|
|
17492
17497
|
|
|
17493
|
-
|
|
17498
|
+
|
|
17499
|
+
exports.resolveDatasetByName = resolveDatasetByName; exports.parsePlayRunHeaderFlag = parsePlayRunHeaderFlag; exports.parsePlayRunOptions = parsePlayRunOptions; exports.loadPlayBundler = loadPlayBundler; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.writePlayRunIdFile = writePlayRunIdFile; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.describeSleepUntil = describeSleepUntil; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.clampJsonPreviewText = clampJsonPreviewText; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.compactPlayStatus = compactPlayStatus; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.exportPlayStatusRows = exportPlayStatusRows; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayRun = handlePlayRun; exports.renderRunOverviewText = renderRunOverviewText; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunsRerun = handleRunsRerun; exports.handleRunsList = handleRunsList; exports.handleRunTail = handleRunTail; exports.handleRunLogs = handleRunLogs; exports.selectRunLogTailPage = selectRunLogTailPage; exports.handleRunEventSearch = handleRunEventSearch; exports.buildRunLogsText = buildRunLogsText; exports.resolveRunStopState = resolveRunStopState; exports.handleRunStop = handleRunStop; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.handleRunStopAll = handleRunStopAll; exports.handleRunExport = handleRunExport; exports.handlePlayGet = handlePlayGet; exports.handlePlayVersions = handlePlayVersions; exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.csvColumnLines = csvColumnLines; exports.describedPlay = describedPlay; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlaySave = handlePlaySave; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayRestore = handlePlayRestore; exports.registerPlayCommands = registerPlayCommands; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareUnpublish = handlePlayShareUnpublish;
|