deepline 0.3.478 → 0.3.479
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +11 -0
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +2 -1
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +57 -5
- package/dist/bundling-sources/shared_libs/product-notifications/slack-transport.ts +19 -0
- package/dist/cli/{auth-SA4DJCSO.mjs → auth-D7DYB57R.mjs} +5 -5
- package/dist/cli/auth-MZDFNRPG.js +41 -0
- package/dist/cli/{billing-462SAHWX.js → billing-DHGSNM6E.js} +79 -79
- package/dist/cli/{billing-Z4D35MV5.mjs → billing-DT4JT4QN.mjs} +6 -6
- package/dist/cli/{chunk-VE25VUTE.js → chunk-27GSBTWD.js} +53 -53
- package/dist/cli/{chunk-645RNF2Y.mjs → chunk-27PXHD2P.mjs} +1 -1
- package/dist/cli/{chunk-KBBZXWXF.js → chunk-33O2JGHE.js} +4 -4
- package/dist/cli/{chunk-QVZNUQAP.js → chunk-3GIM7XRH.js} +2 -2
- package/dist/cli/{chunk-BLAZVZVD.mjs → chunk-3PHOAUU4.mjs} +3 -3
- package/dist/cli/{chunk-TW3TTKW5.js → chunk-3SGA53DX.js} +3 -3
- package/dist/cli/{chunk-JH775FF6.mjs → chunk-6C3QY5JS.mjs} +1 -1
- package/dist/cli/{chunk-ABBP5ZCI.mjs → chunk-6QIXWFPO.mjs} +3 -3
- package/dist/cli/{chunk-AYW242XF.js → chunk-AFHFZU5V.js} +37 -37
- package/dist/cli/{chunk-SCHE5QRN.js → chunk-AKVNUNL7.js} +3 -3
- package/dist/cli/{chunk-TQWI7LJX.js → chunk-CK2Q6AWR.js} +26 -26
- package/dist/cli/{chunk-PHBOI24Y.mjs → chunk-D6MLXRMQ.mjs} +10 -10
- package/dist/cli/{chunk-HMUBLAT4.js → chunk-EMVWC5LP.js} +5 -5
- package/dist/cli/{chunk-XOORR6P3.js → chunk-FBEXJVQL.js} +93 -93
- package/dist/cli/{chunk-S7UEKKOX.mjs → chunk-FKEZ5DIJ.mjs} +1 -1
- package/dist/cli/{chunk-D2LKEQKI.js → chunk-FV7WGK5X.js} +5 -5
- package/dist/cli/{chunk-SXY4DOVA.js → chunk-G6V34EQ5.js} +16 -16
- package/dist/cli/{chunk-ZSU3C4ST.mjs → chunk-GICSDK72.mjs} +2 -2
- package/dist/cli/{chunk-3V7INABZ.mjs → chunk-GONL4EFT.mjs} +2 -2
- package/dist/cli/{chunk-S3BKOCVB.js → chunk-GQCH6Y7W.js} +1 -1
- package/dist/cli/{chunk-2MSKG4ER.js → chunk-GSULE54L.js} +6 -6
- package/dist/cli/{chunk-4RJRGQ5Y.mjs → chunk-GZ43YXHT.mjs} +2 -2
- package/dist/cli/{chunk-UXQVSDFP.js → chunk-J5VDE42G.js} +3 -3
- package/dist/cli/{chunk-QB3Q73LP.mjs → chunk-JFGOMQW6.mjs} +2 -2
- package/dist/cli/{chunk-PPHHPAQV.mjs → chunk-JKUFOP7M.mjs} +1 -1
- package/dist/cli/{chunk-A5LPDB6N.js → chunk-JMCTNS6S.js} +6 -6
- package/dist/cli/{chunk-3LTLQAU4.mjs → chunk-JNFNNJ75.mjs} +4 -4
- package/dist/cli/{chunk-4C3TMIF3.mjs → chunk-K5RRY7DJ.mjs} +4 -4
- package/dist/cli/{chunk-4RV7U3RP.js → chunk-LXYDN5FE.js} +7 -7
- package/dist/cli/{chunk-XFY3JOP2.js → chunk-N4M6CO5H.js} +9 -9
- package/dist/cli/{chunk-F2SJYUBW.mjs → chunk-N7E25EU2.mjs} +5 -5
- package/dist/cli/{chunk-75DAGCEX.mjs → chunk-O5BUFQ2P.mjs} +1 -1
- package/dist/cli/{chunk-IWYWZXCA.js → chunk-OVFCPV24.js} +53 -53
- package/dist/cli/{chunk-2JS5DNVX.mjs → chunk-PUOKABQF.mjs} +5 -5
- package/dist/cli/{chunk-2FTUPGTN.mjs → chunk-RJVUILW4.mjs} +2 -2
- package/dist/cli/{chunk-TLF3KGWG.mjs → chunk-TZCHXF4R.mjs} +2 -2
- package/dist/cli/{chunk-F44O4PEP.mjs → chunk-UOYA35OT.mjs} +1 -1
- package/dist/cli/{chunk-6EEMW7YP.js → chunk-VKBLXJCK.js} +8 -8
- package/dist/cli/{chunk-PZHRNSMU.js → chunk-VRZXGJXH.js} +21 -21
- package/dist/cli/{chunk-V7I65ME7.js → chunk-W4HIOBQQ.js} +2 -2
- package/dist/cli/{chunk-AQYSZYNE.js → chunk-W6N2S5N7.js} +8 -8
- package/dist/cli/{chunk-PLJV6SX4.mjs → chunk-XBYW5EHY.mjs} +1 -1
- package/dist/cli/{chunk-M5USVQ33.mjs → chunk-XDFARN7U.mjs} +1 -1
- package/dist/cli/{chunk-J3ZYRN5L.js → chunk-Y2MVDYV6.js} +10 -10
- package/dist/cli/{chunk-7HTWT3Z4.mjs → chunk-YC2QBF2W.mjs} +2 -2
- package/dist/cli/{chunk-N573OK4W.mjs → chunk-ZJRVHQSZ.mjs} +4 -4
- package/dist/cli/{csv-LAYTDYIF.js → csv-DQWOZ2BL.js} +13 -13
- package/dist/cli/{csv-3SNWBO5F.mjs → csv-JXFOD7DJ.mjs} +4 -4
- package/dist/cli/{db-72JKGQSK.mjs → db-NOGMZAQE.mjs} +6 -6
- package/dist/cli/{db-OOUOSURL.js → db-Q2OAAXRX.js} +27 -27
- package/dist/cli/describe-THHHNUEA.js +48 -0
- package/dist/cli/{describe-KDPNOEUJ.mjs → describe-VKZTZLX6.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-RJNMGJEE.js → executions-B3GDZ4GQ.js} +8 -8
- package/dist/cli/{executions-O6JS3UKX.mjs → executions-XU3JMNI3.mjs} +6 -6
- package/dist/cli/{feedback-FXB6NV3Y.js → feedback-5IW3ZKRP.js} +8 -8
- package/dist/cli/{feedback-T3JH3CWC.mjs → feedback-R5UQXINE.mjs} +4 -4
- package/dist/cli/{git-6KAQSH5J.mjs → git-7B4H7VEL.mjs} +5 -5
- package/dist/cli/git-BX27JAW4.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-PAOGRKUK.js → legacy-noops-AVT6T5QI.js} +8 -8
- package/dist/cli/{legacy-noops-7HDGEGTK.mjs → legacy-noops-KY7JAALE.mjs} +5 -5
- package/dist/cli/{monitors-LE2AYK3Z.mjs → monitors-G7L7AFXR.mjs} +7 -7
- package/dist/cli/{monitors-KQFI7TVJ.js → monitors-GZB6CWK2.js} +91 -91
- package/dist/cli/{org-Z4DMJ72I.mjs → org-QDUBOQTH.mjs} +6 -6
- package/dist/cli/{org-J6XFHDJE.js → org-ZHHKAPCE.js} +72 -72
- package/dist/cli/{pages-FIXBZQJG.js → pages-5P3SPMN5.js} +17 -17
- package/dist/cli/{pages-5LYS6Y4I.mjs → pages-Q4WGQCST.mjs} +6 -6
- package/dist/cli/{play-D7WPXADH.js → play-IRLKESZB.js} +306 -306
- package/dist/cli/{play-GILXXIN7.mjs → play-WRSHD4RE.mjs} +17 -17
- package/dist/cli/{providers-OQWL4Q4W.mjs → providers-7CQUHS57.mjs} +6 -6
- package/dist/cli/{providers-KN7YACT6.js → providers-LKEYLN6D.js} +9 -9
- package/dist/cli/{quickstart-2LRIORFM.mjs → quickstart-I6NYGMEE.mjs} +4 -4
- package/dist/cli/{quickstart-M2OBP3W3.js → quickstart-KS45M5SR.js} +6 -6
- package/dist/cli/{run-GYRBKQZT.mjs → run-AZETCL7R.mjs} +22 -22
- package/dist/cli/{run-6YZZO7VM.js → run-BLMOBNAN.js} +36 -36
- package/dist/cli/{search-VUPK6BNU.mjs → search-EEKEP67Y.mjs} +7 -7
- package/dist/cli/search-PEQXXY2B.js +32 -0
- package/dist/cli/{secrets-ULRGU7NM.mjs → secrets-HAULG2EW.mjs} +6 -6
- package/dist/cli/{secrets-RE3UMZB7.js → secrets-M6NU3TD2.js} +15 -15
- package/dist/cli/{sessions-2ZZVJ3P2.mjs → sessions-5MB4XKOK.mjs} +5 -5
- package/dist/cli/{sessions-T4UMHNDW.js → sessions-DSR5AHIA.js} +6 -6
- package/dist/cli/{settings-BRV6AYFM.js → settings-6US327NQ.js} +78 -78
- package/dist/cli/{settings-PDY4TJU6.mjs → settings-JUQP4HYQ.mjs} +11 -11
- package/dist/cli/{setup-JONYJYBK.js → setup-5ZRSEQUD.js} +44 -44
- package/dist/cli/{setup-CXL6C5Z5.mjs → setup-JRH4UC47.mjs} +9 -9
- package/dist/cli/{skills-TOMVQD5O.mjs → skills-HFOZ5WDH.mjs} +7 -7
- package/dist/cli/skills-P67KCVDR.js +33 -0
- package/dist/cli/{tools-B2LJK4MM.mjs → tools-CJEBZNPB.mjs} +16 -16
- package/dist/cli/tools-PDBEAI22.js +55 -0
- package/dist/cli/update-G6DI3BQW.js +33 -0
- package/dist/cli/{update-CD6T2REC.mjs → update-VQJEPAAK.mjs} +9 -9
- package/dist/cli/{workflow-ZAOBP6I7.mjs → workflow-EYWE3T75.mjs} +7 -7
- package/dist/cli/{workflow-PZML43E2.js → workflow-NKPDRZOP.js} +17 -17
- package/dist/{client-B1s1yJdT.d.mts → client-B9N1bcGc.d.mts} +1 -1
- package/dist/{client-DqUseRzd.d.ts → client-Btw075Hq.d.ts} +1 -1
- package/dist/{client-core-Bd7tP9Uz.d.ts → client-core-DvGWlwtX.d.ts} +1 -1
- package/dist/{client-core-BijQEQ70.d.mts → client-core-TulbIeRB.d.mts} +1 -1
- package/dist/{compiler-manifest-B1m5tRzz.d.ts → compiler-manifest-gkO9ZkVg.d.mts} +14 -0
- package/dist/{compiler-manifest-B1m5tRzz.d.mts → compiler-manifest-gkO9ZkVg.d.ts} +14 -0
- package/dist/{errors-3g71OMXy.d.ts → errors-Cc92LKH-.d.ts} +1 -1
- package/dist/{errors-QiC6am-q.d.mts → errors-CeCCOKSA.d.mts} +1 -1
- package/dist/{index-CIBiwzhK.d.ts → index-DJQKdV76.d.ts} +1 -1
- package/dist/{index-Biz5toO4.d.mts → index-DsqWJL3Q.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +106 -106
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-U5SNVC5F.js +0 -41
- package/dist/cli/describe-7HYV44MO.js +0 -48
- package/dist/cli/git-5LTKPXGN.js +0 -25
- package/dist/cli/search-OVKWA4AV.js +0 -32
- package/dist/cli/skills-UK5AK35I.js +0 -33
- package/dist/cli/tools-HH6E5G7J.js +0 -55
- package/dist/cli/update-EGXT3EIJ.js +0 -33
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkN4M6CO5Hjs = require('./chunk-N4M6CO5H.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,14 +17,14 @@ var _chunkXFY3JOP2js = require('./chunk-XFY3JOP2.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkJ5VDE42Gjs = require('./chunk-J5VDE42G.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkVKBLXJCKjs = require('./chunk-VKBLXJCK.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkCK2Q6AWRjs = require('./chunk-CK2Q6AWR.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
@@ -60,10 +60,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
60
60
|
|
|
61
61
|
|
|
62
62
|
|
|
63
|
-
var
|
|
63
|
+
var _chunkFV7WGK5Xjs = require('./chunk-FV7WGK5X.js');
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
var
|
|
66
|
+
var _chunkEMVWC5LPjs = require('./chunk-EMVWC5LP.js');
|
|
67
67
|
require('./chunk-VKKVSFRD.js');
|
|
68
68
|
|
|
69
69
|
|
|
@@ -77,7 +77,7 @@ require('./chunk-VKKVSFRD.js');
|
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
|
-
var
|
|
80
|
+
var _chunkGSULE54Ljs = require('./chunk-GSULE54L.js');
|
|
81
81
|
require('./chunk-E4CABWXL.js');
|
|
82
82
|
|
|
83
83
|
|
|
@@ -97,18 +97,18 @@ require('./chunk-XDVT3GOM.js');
|
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
var
|
|
100
|
+
var _chunkJMCTNS6Sjs = require('./chunk-JMCTNS6S.js');
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
105
|
|
|
106
|
-
var
|
|
107
|
-
require('./chunk-
|
|
106
|
+
var _chunkW4HIOBQQjs = require('./chunk-W4HIOBQQ.js');
|
|
107
|
+
require('./chunk-OVFCPV24.js');
|
|
108
108
|
|
|
109
109
|
|
|
110
110
|
|
|
111
|
-
var
|
|
111
|
+
var _chunkAKVNUNL7js = require('./chunk-AKVNUNL7.js');
|
|
112
112
|
|
|
113
113
|
|
|
114
114
|
|
|
@@ -122,17 +122,17 @@ var _chunkSCHE5QRNjs = require('./chunk-SCHE5QRN.js');
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
var
|
|
126
|
-
require('./chunk-
|
|
125
|
+
var _chunkLXYDN5FEjs = require('./chunk-LXYDN5FE.js');
|
|
126
|
+
require('./chunk-3SGA53DX.js');
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
var
|
|
129
|
+
var _chunk33O2JGHEjs = require('./chunk-33O2JGHE.js');
|
|
130
130
|
require('./chunk-ALJJRZNJ.js');
|
|
131
131
|
require('./chunk-XNYIZMNQ.js');
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
135
|
-
require('./chunk-
|
|
135
|
+
require('./chunk-GQCH6Y7W.js');
|
|
136
136
|
require('./chunk-OG64RBAC.js');
|
|
137
137
|
|
|
138
138
|
|
|
@@ -2114,7 +2114,7 @@ function resolveField(key, command) {
|
|
|
2114
2114
|
function printSettings(result, json, name) {
|
|
2115
2115
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2116
2116
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2117
|
-
|
|
2117
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2118
2118
|
{
|
|
2119
2119
|
...result,
|
|
2120
2120
|
settings: Object.fromEntries(
|
|
@@ -2158,7 +2158,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2158
2158
|
valueSyntax: field.cli.valueSyntax,
|
|
2159
2159
|
examples: field.cli.examples
|
|
2160
2160
|
}));
|
|
2161
|
-
|
|
2161
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2162
2162
|
{
|
|
2163
2163
|
fields: descriptions,
|
|
2164
2164
|
render: {
|
|
@@ -2183,7 +2183,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2183
2183
|
async (options, command) => {
|
|
2184
2184
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2185
2185
|
printSettings(
|
|
2186
|
-
await new (0,
|
|
2186
|
+
await new (0, _chunkEMVWC5LPjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2187
2187
|
options.json,
|
|
2188
2188
|
options.name
|
|
2189
2189
|
);
|
|
@@ -2214,7 +2214,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2214
2214
|
);
|
|
2215
2215
|
}
|
|
2216
2216
|
if (options.dryRun) {
|
|
2217
|
-
|
|
2217
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2218
2218
|
{
|
|
2219
2219
|
dryRun: true,
|
|
2220
2220
|
play,
|
|
@@ -2235,7 +2235,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2235
2235
|
return;
|
|
2236
2236
|
}
|
|
2237
2237
|
printSettings(
|
|
2238
|
-
await new (0,
|
|
2238
|
+
await new (0, _chunkEMVWC5LPjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2239
2239
|
options.json
|
|
2240
2240
|
);
|
|
2241
2241
|
};
|
|
@@ -2261,13 +2261,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2261
2261
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2262
2262
|
{ exitCode: 2 }
|
|
2263
2263
|
);
|
|
2264
|
-
const page = await new (0,
|
|
2264
|
+
const page = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2265
2265
|
root: options.root,
|
|
2266
2266
|
limit,
|
|
2267
2267
|
cursor: options.cursor
|
|
2268
2268
|
});
|
|
2269
2269
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2270
|
-
|
|
2270
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2271
2271
|
{
|
|
2272
2272
|
...page,
|
|
2273
2273
|
nextCommand,
|
|
@@ -2318,7 +2318,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2318
2318
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2319
2319
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2320
2320
|
};
|
|
2321
|
-
const client = new (0,
|
|
2321
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
2322
2322
|
const paths = [];
|
|
2323
2323
|
let cursor;
|
|
2324
2324
|
do {
|
|
@@ -2380,7 +2380,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2380
2380
|
moved.push(move.playName);
|
|
2381
2381
|
}
|
|
2382
2382
|
}
|
|
2383
|
-
|
|
2383
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2384
2384
|
{
|
|
2385
2385
|
dryRun: Boolean(options.dryRun),
|
|
2386
2386
|
from: options.from,
|
|
@@ -2508,7 +2508,7 @@ function triggerLines(view) {
|
|
|
2508
2508
|
return lines;
|
|
2509
2509
|
}
|
|
2510
2510
|
function printView(view, json) {
|
|
2511
|
-
|
|
2511
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2512
2512
|
{
|
|
2513
2513
|
...view,
|
|
2514
2514
|
render: {
|
|
@@ -2521,7 +2521,7 @@ function printView(view, json) {
|
|
|
2521
2521
|
);
|
|
2522
2522
|
}
|
|
2523
2523
|
function printResult(result, json) {
|
|
2524
|
-
|
|
2524
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2525
2525
|
{
|
|
2526
2526
|
...result,
|
|
2527
2527
|
render: {
|
|
@@ -2551,7 +2551,7 @@ async function mutate(command, options, build) {
|
|
|
2551
2551
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2552
2552
|
}
|
|
2553
2553
|
if (options.dryRun) {
|
|
2554
|
-
|
|
2554
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
2555
2555
|
{
|
|
2556
2556
|
dryRun: true,
|
|
2557
2557
|
play: options.play,
|
|
@@ -2570,7 +2570,7 @@ async function mutate(command, options, build) {
|
|
|
2570
2570
|
return;
|
|
2571
2571
|
}
|
|
2572
2572
|
printResult(
|
|
2573
|
-
await new (0,
|
|
2573
|
+
await new (0, _chunkEMVWC5LPjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2574
2574
|
options.json
|
|
2575
2575
|
);
|
|
2576
2576
|
}
|
|
@@ -2603,7 +2603,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2603
2603
|
}).addHelpText("after", help2);
|
|
2604
2604
|
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) => {
|
|
2605
2605
|
printView(
|
|
2606
|
-
await new (0,
|
|
2606
|
+
await new (0, _chunkEMVWC5LPjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2607
2607
|
options.json
|
|
2608
2608
|
);
|
|
2609
2609
|
});
|
|
@@ -2647,7 +2647,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2647
2647
|
if (options.auth === void 0) {
|
|
2648
2648
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2649
2649
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2650
|
-
const current = await new (0,
|
|
2650
|
+
const current = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2651
2651
|
options.play
|
|
2652
2652
|
);
|
|
2653
2653
|
return {
|
|
@@ -2724,7 +2724,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2724
2724
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2725
2725
|
"runtime.event": "Other event."
|
|
2726
2726
|
};
|
|
2727
|
-
var RUN_LOGS_KIND_HELP =
|
|
2727
|
+
var RUN_LOGS_KIND_HELP = _chunkGSULE54Ljs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2728
2728
|
kind,
|
|
2729
2729
|
description: KIND_DESCRIPTIONS[kind]
|
|
2730
2730
|
}));
|
|
@@ -2861,9 +2861,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2861
2861
|
const args = program.args;
|
|
2862
2862
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2863
2863
|
error.exitCode = 2;
|
|
2864
|
-
if (
|
|
2865
|
-
|
|
2866
|
-
Object.assign(new (0,
|
|
2864
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2865
|
+
_chunkLXYDN5FEjs.printJsonError.call(void 0,
|
|
2866
|
+
Object.assign(new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(error.message), {
|
|
2867
2867
|
exitCode: 2,
|
|
2868
2868
|
retryable: false
|
|
2869
2869
|
})
|
|
@@ -2907,14 +2907,14 @@ function parseQuery(args, resource) {
|
|
|
2907
2907
|
if (VALUE_FLAGS.has(flag)) {
|
|
2908
2908
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2909
2909
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2910
|
-
throw new (0,
|
|
2910
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2911
2911
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2912
2912
|
);
|
|
2913
2913
|
}
|
|
2914
2914
|
if (flag === "--sum") sums.push(value);
|
|
2915
2915
|
else {
|
|
2916
2916
|
if (values[flag] !== void 0) {
|
|
2917
|
-
throw new (0,
|
|
2917
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2918
2918
|
`${flag} may only be supplied once.`
|
|
2919
2919
|
);
|
|
2920
2920
|
}
|
|
@@ -2928,12 +2928,12 @@ function parseQuery(args, resource) {
|
|
|
2928
2928
|
}
|
|
2929
2929
|
if (arg.startsWith("-")) {
|
|
2930
2930
|
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.";
|
|
2931
|
-
throw new (0,
|
|
2931
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2932
2932
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2933
2933
|
);
|
|
2934
2934
|
}
|
|
2935
2935
|
if (runId !== void 0) {
|
|
2936
|
-
throw new (0,
|
|
2936
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2937
2937
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2938
2938
|
);
|
|
2939
2939
|
}
|
|
@@ -2941,7 +2941,7 @@ function parseQuery(args, resource) {
|
|
|
2941
2941
|
}
|
|
2942
2942
|
if (switches.has("--fields")) {
|
|
2943
2943
|
if (runId !== void 0) {
|
|
2944
|
-
throw new (0,
|
|
2944
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2945
2945
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2946
2946
|
);
|
|
2947
2947
|
}
|
|
@@ -2954,18 +2954,18 @@ function parseQuery(args, resource) {
|
|
|
2954
2954
|
)
|
|
2955
2955
|
];
|
|
2956
2956
|
if (incompatible.length) {
|
|
2957
|
-
throw new (0,
|
|
2957
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2958
2958
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2959
2959
|
);
|
|
2960
2960
|
}
|
|
2961
2961
|
}
|
|
2962
2962
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2963
|
-
throw new (0,
|
|
2963
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2964
2964
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2965
2965
|
);
|
|
2966
2966
|
}
|
|
2967
2967
|
if (sums.length && switches.has("--count")) {
|
|
2968
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2969
2969
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2970
2970
|
);
|
|
2971
2971
|
}
|
|
@@ -2973,7 +2973,7 @@ function parseQuery(args, resource) {
|
|
|
2973
2973
|
if (operation === "count") {
|
|
2974
2974
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2975
2975
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2976
|
-
throw new (0,
|
|
2976
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
2977
2977
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2978
2978
|
);
|
|
2979
2979
|
}
|
|
@@ -3008,16 +3008,16 @@ function parseQuery(args, resource) {
|
|
|
3008
3008
|
];
|
|
3009
3009
|
}
|
|
3010
3010
|
}
|
|
3011
|
-
const request =
|
|
3011
|
+
const request = _chunkGSULE54Ljs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3012
3012
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3013
3013
|
const backend = values["--runtime-backend"];
|
|
3014
3014
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3015
|
-
throw new (0,
|
|
3015
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
3016
3016
|
"--runtime-backend must be daytona or modal."
|
|
3017
3017
|
);
|
|
3018
3018
|
}
|
|
3019
3019
|
if (backend && !namespace) {
|
|
3020
|
-
throw new (0,
|
|
3020
|
+
throw new (0, _chunkGSULE54Ljs.RunEventQueryInputError)(
|
|
3021
3021
|
"--runtime-backend requires --runtime-namespace."
|
|
3022
3022
|
);
|
|
3023
3023
|
}
|
|
@@ -3064,12 +3064,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3064
3064
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3065
3065
|
const record3 = failure;
|
|
3066
3066
|
const status = record3.statusCode;
|
|
3067
|
-
const exitCode = error instanceof
|
|
3067
|
+
const exitCode = error instanceof _chunkGSULE54Ljs.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;
|
|
3068
3068
|
const diagnostic = Object.assign(failure, {
|
|
3069
3069
|
exitCode,
|
|
3070
3070
|
retryable: exitCode === 5
|
|
3071
3071
|
});
|
|
3072
|
-
if (
|
|
3072
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) _chunkLXYDN5FEjs.printJsonError.call(void 0, diagnostic);
|
|
3073
3073
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3074
3074
|
return exitCode;
|
|
3075
3075
|
}
|
|
@@ -3084,7 +3084,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3084
3084
|
...criteria
|
|
3085
3085
|
} = request;
|
|
3086
3086
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3087
|
-
const client = new (0,
|
|
3087
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
3088
3088
|
let result;
|
|
3089
3089
|
if (request.operation === "fields") {
|
|
3090
3090
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3150,13 +3150,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3150
3150
|
lines.push(`Next page: ${nextPage}`);
|
|
3151
3151
|
}
|
|
3152
3152
|
}
|
|
3153
|
-
|
|
3153
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
3154
3154
|
{
|
|
3155
3155
|
...result,
|
|
3156
3156
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3157
3157
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3158
3158
|
},
|
|
3159
|
-
{ json:
|
|
3159
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3160
3160
|
` }
|
|
3161
3161
|
);
|
|
3162
3162
|
return 0;
|
|
@@ -4075,7 +4075,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4075
4075
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4076
4076
|
);
|
|
4077
4077
|
}
|
|
4078
|
-
const response = await new (0,
|
|
4078
|
+
const response = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4079
4079
|
keys
|
|
4080
4080
|
});
|
|
4081
4081
|
const failed = response.receipts.filter(
|
|
@@ -4087,7 +4087,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4087
4087
|
JSON.stringify(response, null, 2) + "\n",
|
|
4088
4088
|
{ flag: "wx", mode: 384 }
|
|
4089
4089
|
);
|
|
4090
|
-
|
|
4090
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
4091
4091
|
{
|
|
4092
4092
|
runId,
|
|
4093
4093
|
out: options.out,
|
|
@@ -4097,7 +4097,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4097
4097
|
{ json: true }
|
|
4098
4098
|
);
|
|
4099
4099
|
} else {
|
|
4100
|
-
|
|
4100
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4101
4101
|
}
|
|
4102
4102
|
if (failed)
|
|
4103
4103
|
process.exitCode = response.receipts.some(
|
|
@@ -4136,7 +4136,7 @@ includes nextCommand when another page is available.
|
|
|
4136
4136
|
{ exitCode: 2 }
|
|
4137
4137
|
);
|
|
4138
4138
|
}
|
|
4139
|
-
const page = await new (0,
|
|
4139
|
+
const page = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4140
4140
|
launchKey: options.launchKey,
|
|
4141
4141
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4142
4142
|
limit
|
|
@@ -4151,7 +4151,7 @@ includes nextCommand when another page is available.
|
|
|
4151
4151
|
"--limit",
|
|
4152
4152
|
String(limit)
|
|
4153
4153
|
].join(" ") : null;
|
|
4154
|
-
|
|
4154
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
4155
4155
|
{
|
|
4156
4156
|
parentRunId,
|
|
4157
4157
|
launchKey: options.launchKey,
|
|
@@ -4187,7 +4187,7 @@ async function handleRunsHistory(options) {
|
|
|
4187
4187
|
throw new Error("--limit must be a positive integer.");
|
|
4188
4188
|
}
|
|
4189
4189
|
}
|
|
4190
|
-
const page = await new (0,
|
|
4190
|
+
const page = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().runs.history({
|
|
4191
4191
|
cursor: options.cursor,
|
|
4192
4192
|
orgId: options.org,
|
|
4193
4193
|
search: options.search,
|
|
@@ -4203,7 +4203,7 @@ async function handleRunsHistory(options) {
|
|
|
4203
4203
|
);
|
|
4204
4204
|
}
|
|
4205
4205
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4206
|
-
|
|
4206
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
4207
4207
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4208
4208
|
options.json ? { json: true } : {}
|
|
4209
4209
|
);
|
|
@@ -4255,12 +4255,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4255
4255
|
return 1;
|
|
4256
4256
|
}
|
|
4257
4257
|
}
|
|
4258
|
-
const result = await new (0,
|
|
4258
|
+
const result = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().runs.rerun(runId, {
|
|
4259
4259
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4260
4260
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4261
4261
|
});
|
|
4262
|
-
if (
|
|
4263
|
-
|
|
4262
|
+
if (_chunkLXYDN5FEjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4263
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4264
4264
|
} else if (result.rateLimited) {
|
|
4265
4265
|
console.log(`
|
|
4266
4266
|
${result.rateLimited.message}`);
|
|
@@ -5084,13 +5084,13 @@ var RunDataset = class _RunDataset {
|
|
|
5084
5084
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5085
5085
|
_fs.writeFileSync.call(void 0,
|
|
5086
5086
|
absolutePath,
|
|
5087
|
-
`${JSON.stringify(
|
|
5087
|
+
`${JSON.stringify(_chunkJ5VDE42Gjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5088
5088
|
`,
|
|
5089
5089
|
"utf-8"
|
|
5090
5090
|
);
|
|
5091
5091
|
return absolutePath;
|
|
5092
5092
|
}
|
|
5093
|
-
return
|
|
5093
|
+
return _chunkJ5VDE42Gjs.writeRunDatasetCsv.call(void 0, {
|
|
5094
5094
|
rows: this.rows,
|
|
5095
5095
|
columns: this.#info.columns,
|
|
5096
5096
|
outPath
|
|
@@ -6787,7 +6787,7 @@ function renderOutcome(outcome) {
|
|
|
6787
6787
|
function printResult2(input) {
|
|
6788
6788
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6789
6789
|
if (failed) process.exitCode = 1;
|
|
6790
|
-
|
|
6790
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
6791
6791
|
{
|
|
6792
6792
|
deployment: { ...input.deployment, status: input.status },
|
|
6793
6793
|
plays: input.outcomes,
|
|
@@ -6812,7 +6812,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6812
6812
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6813
6813
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6814
6814
|
});
|
|
6815
|
-
const { http, config } =
|
|
6815
|
+
const { http, config } = _chunkLXYDN5FEjs.getAuthedHttpClient.call(void 0, );
|
|
6816
6816
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6817
6817
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6818
6818
|
deliveryId,
|
|
@@ -6839,7 +6839,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6839
6839
|
},
|
|
6840
6840
|
{
|
|
6841
6841
|
bundle: bundleDeployPlayFile,
|
|
6842
|
-
fetchImpl:
|
|
6842
|
+
fetchImpl: _chunk33O2JGHEjs.fetchWithDeploymentProtection,
|
|
6843
6843
|
// The plays are already here: "opening" the source is naming it.
|
|
6844
6844
|
openSource: async () => ({
|
|
6845
6845
|
open: async () => ({ repoRoot: root })
|
|
@@ -6965,7 +6965,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6965
6965
|
// src/cli/renderers/local-play-execution.ts
|
|
6966
6966
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6967
6967
|
if (options.dryRun) {
|
|
6968
|
-
|
|
6968
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6969
6969
|
return;
|
|
6970
6970
|
}
|
|
6971
6971
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7137,7 +7137,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7137
7137
|
const startedAt = Date.now();
|
|
7138
7138
|
try {
|
|
7139
7139
|
const result = run();
|
|
7140
|
-
|
|
7140
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
7141
7141
|
phase,
|
|
7142
7142
|
ms: Date.now() - startedAt,
|
|
7143
7143
|
ok: true,
|
|
@@ -7145,7 +7145,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7145
7145
|
});
|
|
7146
7146
|
return result;
|
|
7147
7147
|
} catch (error) {
|
|
7148
|
-
|
|
7148
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
7149
7149
|
phase,
|
|
7150
7150
|
ms: Date.now() - startedAt,
|
|
7151
7151
|
ok: false,
|
|
@@ -7932,7 +7932,7 @@ function playStatusErrorText(status) {
|
|
|
7932
7932
|
function isRetryablePendingStartFailure(status) {
|
|
7933
7933
|
if (status.status !== "failed") return false;
|
|
7934
7934
|
if (status.runId && status.runId !== "pending") return false;
|
|
7935
|
-
return
|
|
7935
|
+
return _chunkGSULE54Ljs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7936
7936
|
}
|
|
7937
7937
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7938
7938
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -7981,13 +7981,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
7981
7981
|
}, _class);
|
|
7982
7982
|
function watchSurfaceReaches(state, provenance, level) {
|
|
7983
7983
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
7984
|
-
if (!
|
|
7984
|
+
if (!_chunkGSULE54Ljs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
7985
7985
|
return false;
|
|
7986
7986
|
}
|
|
7987
|
-
if (
|
|
7987
|
+
if (_chunkGSULE54Ljs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
7988
7988
|
return true;
|
|
7989
7989
|
}
|
|
7990
|
-
return state.verbose === true &&
|
|
7990
|
+
return state.verbose === true && _chunkGSULE54Ljs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
7991
7991
|
}
|
|
7992
7992
|
function getEventPayload(event) {
|
|
7993
7993
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8489,7 +8489,7 @@ function resolveRunPlayName(status, runId) {
|
|
|
8489
8489
|
}
|
|
8490
8490
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
8491
8491
|
if (open2 && dashboardUrl) {
|
|
8492
|
-
|
|
8492
|
+
_chunkLXYDN5FEjs.openInBrowser.call(void 0, dashboardUrl);
|
|
8493
8493
|
}
|
|
8494
8494
|
}
|
|
8495
8495
|
function printPlayLogLines(input) {
|
|
@@ -8566,7 +8566,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8566
8566
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8567
8567
|
});
|
|
8568
8568
|
} catch (error) {
|
|
8569
|
-
if (
|
|
8569
|
+
if (_chunkGSULE54Ljs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8570
8570
|
return null;
|
|
8571
8571
|
}
|
|
8572
8572
|
throw error;
|
|
@@ -8646,9 +8646,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8646
8646
|
signal: controller.signal,
|
|
8647
8647
|
deferLogs: !input.emitLogs,
|
|
8648
8648
|
omitTerminalLogs: !input.emitLogs,
|
|
8649
|
-
...
|
|
8649
|
+
..._chunkW4HIOBQQjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8650
8650
|
onPoll: (observation) => {
|
|
8651
|
-
|
|
8651
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
8652
8652
|
phase: "play_watch_poll",
|
|
8653
8653
|
workflowId: input.workflowId,
|
|
8654
8654
|
ms: observation.durationMs,
|
|
@@ -8662,7 +8662,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8662
8662
|
full: input.fullJson,
|
|
8663
8663
|
billing: false,
|
|
8664
8664
|
onStatus: async (status) => {
|
|
8665
|
-
|
|
8665
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
8666
8666
|
phase: "play_watch_terminal_status",
|
|
8667
8667
|
workflowId: input.workflowId,
|
|
8668
8668
|
full: input.fullJson === true
|
|
@@ -8732,7 +8732,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8732
8732
|
});
|
|
8733
8733
|
} catch (error) {
|
|
8734
8734
|
if (!(error instanceof _chunkJDMR33HSjs.CliPlayAdmissionUnsupportedError)) throw error;
|
|
8735
|
-
await
|
|
8735
|
+
await _chunkJMCTNS6Sjs.checkPlayRunCompatibility.call(void 0,
|
|
8736
8736
|
input.client.baseUrl,
|
|
8737
8737
|
input.maintenancePolicy
|
|
8738
8738
|
);
|
|
@@ -8780,7 +8780,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8780
8780
|
}
|
|
8781
8781
|
openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
|
|
8782
8782
|
input.progress.phase("running");
|
|
8783
|
-
|
|
8783
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
8784
8784
|
phase: "cli.play_start_admitted",
|
|
8785
8785
|
ms: Date.now() - startedAt,
|
|
8786
8786
|
ok: true,
|
|
@@ -8797,7 +8797,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8797
8797
|
startedAt,
|
|
8798
8798
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8799
8799
|
});
|
|
8800
|
-
const initialStatus =
|
|
8800
|
+
const initialStatus = _chunkGSULE54Ljs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8801
8801
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8802
8802
|
client: input.client,
|
|
8803
8803
|
status: initialStatus,
|
|
@@ -8805,7 +8805,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8805
8805
|
jsonOutput: input.jsonOutput,
|
|
8806
8806
|
fromDurableStatus: true
|
|
8807
8807
|
});
|
|
8808
|
-
|
|
8808
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
8809
8809
|
phase: "play_watch_terminal_status",
|
|
8810
8810
|
workflowId,
|
|
8811
8811
|
full: true,
|
|
@@ -8860,7 +8860,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8860
8860
|
);
|
|
8861
8861
|
} catch (error) {
|
|
8862
8862
|
if (error instanceof _chunkJDMR33HSjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
8863
|
-
await
|
|
8863
|
+
await _chunkJMCTNS6Sjs.checkPlayRunCompatibility.call(void 0,
|
|
8864
8864
|
input.client.baseUrl,
|
|
8865
8865
|
input.maintenancePolicy
|
|
8866
8866
|
);
|
|
@@ -8887,7 +8887,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8887
8887
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
8888
8888
|
);
|
|
8889
8889
|
}
|
|
8890
|
-
|
|
8890
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
8891
8891
|
phase: "cli.play_start_stream_retry",
|
|
8892
8892
|
ms: 0,
|
|
8893
8893
|
ok: true,
|
|
@@ -8908,7 +8908,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8908
8908
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
8909
8909
|
);
|
|
8910
8910
|
}
|
|
8911
|
-
|
|
8911
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
8912
8912
|
phase: "cli.play_start_stream_retry",
|
|
8913
8913
|
ms: 0,
|
|
8914
8914
|
ok: true,
|
|
@@ -8953,7 +8953,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
8953
8953
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
8954
8954
|
launchConfirmed = true;
|
|
8955
8955
|
await _optionalChain([input, 'access', _312 => _312.onRunAdmitted, 'optionalCall', _313 => _313(runId)]);
|
|
8956
|
-
|
|
8956
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
8957
8957
|
phase: "cli.play_start_admitted",
|
|
8958
8958
|
ms: Date.now() - startedAt,
|
|
8959
8959
|
ok: true,
|
|
@@ -8987,7 +8987,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
8987
8987
|
full: input.fullJson
|
|
8988
8988
|
});
|
|
8989
8989
|
} catch (error) {
|
|
8990
|
-
if (
|
|
8990
|
+
if (_chunkGSULE54Ljs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
8991
8991
|
return null;
|
|
8992
8992
|
}
|
|
8993
8993
|
throw error;
|
|
@@ -9125,7 +9125,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9125
9125
|
};
|
|
9126
9126
|
}
|
|
9127
9127
|
if (!canonicalTerminal) {
|
|
9128
|
-
|
|
9128
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9129
9129
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9130
9130
|
ms: Date.now() - startedAt,
|
|
9131
9131
|
ok: true,
|
|
@@ -9146,14 +9146,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9146
9146
|
fromDurableStatus
|
|
9147
9147
|
}) : canonicalTerminal;
|
|
9148
9148
|
if (input.fullJson === true) {
|
|
9149
|
-
|
|
9149
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9150
9150
|
phase: "play_watch_terminal_status",
|
|
9151
9151
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9152
9152
|
full: true,
|
|
9153
9153
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9154
9154
|
});
|
|
9155
9155
|
}
|
|
9156
|
-
|
|
9156
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9157
9157
|
phase: "cli.play_start_stream_terminal",
|
|
9158
9158
|
ms: Date.now() - startedAt,
|
|
9159
9159
|
ok: true,
|
|
@@ -9173,7 +9173,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9173
9173
|
clearTimeout(timeout);
|
|
9174
9174
|
}
|
|
9175
9175
|
controller.abort();
|
|
9176
|
-
|
|
9176
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9177
9177
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9178
9178
|
ms: Date.now() - startedAt,
|
|
9179
9179
|
ok: true,
|
|
@@ -9204,7 +9204,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9204
9204
|
if (timedOut) {
|
|
9205
9205
|
const terminal = await fetchKnownTerminalStatus();
|
|
9206
9206
|
if (terminal) {
|
|
9207
|
-
|
|
9207
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9208
9208
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9209
9209
|
ms: Date.now() - startedAt,
|
|
9210
9210
|
ok: true,
|
|
@@ -9224,7 +9224,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9224
9224
|
lastPhase
|
|
9225
9225
|
});
|
|
9226
9226
|
}
|
|
9227
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9227
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkGSULE54Ljs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9228
9228
|
if (timeout) {
|
|
9229
9229
|
clearTimeout(timeout);
|
|
9230
9230
|
}
|
|
@@ -9235,7 +9235,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9235
9235
|
`
|
|
9236
9236
|
);
|
|
9237
9237
|
}
|
|
9238
|
-
|
|
9238
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9239
9239
|
phase: "cli.play_start_stream_reconnect",
|
|
9240
9240
|
ms: Date.now() - startedAt,
|
|
9241
9241
|
ok: true,
|
|
@@ -9262,7 +9262,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9262
9262
|
});
|
|
9263
9263
|
}
|
|
9264
9264
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9265
|
-
|
|
9265
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9266
9266
|
phase: "cli.play_start_stream_transient_failure",
|
|
9267
9267
|
ms: Date.now() - startedAt,
|
|
9268
9268
|
ok: false,
|
|
@@ -9290,7 +9290,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9290
9290
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9291
9291
|
);
|
|
9292
9292
|
}
|
|
9293
|
-
|
|
9293
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
9294
9294
|
phase: "cli.play_start_stream_reconnect",
|
|
9295
9295
|
ms: Date.now() - startedAt,
|
|
9296
9296
|
ok: true,
|
|
@@ -9370,7 +9370,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9370
9370
|
"logs"
|
|
9371
9371
|
]);
|
|
9372
9372
|
function formatPlayLogLine(rawLine, state) {
|
|
9373
|
-
const classified =
|
|
9373
|
+
const classified = _chunkGSULE54Ljs.classifyLogLine.call(void 0, rawLine);
|
|
9374
9374
|
const line = classified.line;
|
|
9375
9375
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9376
9376
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _318 => _318[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9385,14 +9385,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9385
9385
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9386
9386
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9387
9387
|
if (providerWait && !state.verbose) {
|
|
9388
|
-
return
|
|
9388
|
+
return _chunkGSULE54Ljs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9389
9389
|
}
|
|
9390
9390
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9391
9391
|
if (mapProgress && !state.verbose) {
|
|
9392
|
-
return
|
|
9392
|
+
return _chunkGSULE54Ljs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9393
9393
|
}
|
|
9394
9394
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9395
|
-
if (!
|
|
9395
|
+
if (!_chunkGSULE54Ljs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9396
9396
|
return null;
|
|
9397
9397
|
}
|
|
9398
9398
|
if (state.emittedRunnerStarted) {
|
|
@@ -9405,7 +9405,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9405
9405
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9406
9406
|
);
|
|
9407
9407
|
if (mapStart) {
|
|
9408
|
-
if (!
|
|
9408
|
+
if (!_chunkGSULE54Ljs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9409
9409
|
return null;
|
|
9410
9410
|
}
|
|
9411
9411
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9415,7 +9415,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9415
9415
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9416
9416
|
);
|
|
9417
9417
|
if (mapDone) {
|
|
9418
|
-
if (!
|
|
9418
|
+
if (!_chunkGSULE54Ljs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9419
9419
|
return null;
|
|
9420
9420
|
}
|
|
9421
9421
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10704,7 +10704,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10704
10704
|
(line) => typeof line === "string"
|
|
10705
10705
|
);
|
|
10706
10706
|
if (tail.length === 0) return [];
|
|
10707
|
-
const shown = tail.map((line) =>
|
|
10707
|
+
const shown = tail.map((line) => _chunkGSULE54Ljs.classifyLogLine.call(void 0, line)).filter(
|
|
10708
10708
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10709
10709
|
).slice(-8);
|
|
10710
10710
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -10999,11 +10999,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
10999
10999
|
}
|
|
11000
11000
|
function writePlayResult(status, jsonOutput, options) {
|
|
11001
11001
|
const packaged = getPlayRunPackage(status);
|
|
11002
|
-
if (status.package)
|
|
11002
|
+
if (status.package) _chunkJ5VDE42Gjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11003
11003
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _401 => _401.hits]), () => ( null));
|
|
11004
11004
|
if (jsonOutput) {
|
|
11005
11005
|
const payload2 = _optionalChain([options, 'optionalAccess', _402 => _402.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11006
|
-
|
|
11006
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
11007
11007
|
hits ? { ...payload2, hits } : payload2,
|
|
11008
11008
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _403 => _403.jsonFields]) }
|
|
11009
11009
|
);
|
|
@@ -11019,7 +11019,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11019
11019
|
...buildPlayCompletionTextLines(status),
|
|
11020
11020
|
...formatRunHitsLines(hits)
|
|
11021
11021
|
];
|
|
11022
|
-
|
|
11022
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11023
11023
|
json: false,
|
|
11024
11024
|
text: `${lines2.join("\n")}
|
|
11025
11025
|
`
|
|
@@ -11070,7 +11070,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11070
11070
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11071
11071
|
const compact = compactPlayStatus(status);
|
|
11072
11072
|
const payload = _optionalChain([options, 'optionalAccess', _405 => _405.fullJson]) ? status : compact;
|
|
11073
|
-
|
|
11073
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
11074
11074
|
{
|
|
11075
11075
|
...payload,
|
|
11076
11076
|
render: {
|
|
@@ -11279,7 +11279,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11279
11279
|
}
|
|
11280
11280
|
offset += page.rows.length;
|
|
11281
11281
|
}
|
|
11282
|
-
const withError =
|
|
11282
|
+
const withError = _chunkJ5VDE42Gjs.tableExportHasFailedRows.call(void 0,
|
|
11283
11283
|
sheetRows.filter(
|
|
11284
11284
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11285
11285
|
)
|
|
@@ -11295,7 +11295,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11295
11295
|
return [
|
|
11296
11296
|
withError ? {
|
|
11297
11297
|
...exported,
|
|
11298
|
-
[
|
|
11298
|
+
[_chunkJ5VDE42Gjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkJ5VDE42Gjs.tableExportErrorCell.call(void 0,
|
|
11299
11299
|
row
|
|
11300
11300
|
)
|
|
11301
11301
|
} : exported
|
|
@@ -11830,7 +11830,7 @@ function renderServerResultView(value) {
|
|
|
11830
11830
|
function writeStartedPlayRun(input) {
|
|
11831
11831
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
11832
11832
|
const run = input.package.run;
|
|
11833
|
-
|
|
11833
|
+
_chunkJ5VDE42Gjs.recordPlayTermination.call(void 0, {
|
|
11834
11834
|
id: run.id,
|
|
11835
11835
|
status: run.status,
|
|
11836
11836
|
finishedAt: run.finishedAt
|
|
@@ -11843,7 +11843,7 @@ function writeStartedPlayRun(input) {
|
|
|
11843
11843
|
dashboardUrl: input.dashboardUrl,
|
|
11844
11844
|
package: input.package
|
|
11845
11845
|
};
|
|
11846
|
-
|
|
11846
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
11847
11847
|
json: true,
|
|
11848
11848
|
fields: input.jsonFields
|
|
11849
11849
|
});
|
|
@@ -11865,7 +11865,7 @@ function writeStartedPlayRun(input) {
|
|
|
11865
11865
|
input.progress.writeLine(output2, process.stdout);
|
|
11866
11866
|
return;
|
|
11867
11867
|
}
|
|
11868
|
-
|
|
11868
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, input.package, {
|
|
11869
11869
|
json: false,
|
|
11870
11870
|
text: `${output2}
|
|
11871
11871
|
`
|
|
@@ -11894,7 +11894,7 @@ function writeStartedPlayRun(input) {
|
|
|
11894
11894
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
11895
11895
|
];
|
|
11896
11896
|
if (input.jsonOutput) {
|
|
11897
|
-
|
|
11897
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
11898
11898
|
return;
|
|
11899
11899
|
}
|
|
11900
11900
|
if (input.dashboardUrl) {
|
|
@@ -11905,7 +11905,7 @@ function writeStartedPlayRun(input) {
|
|
|
11905
11905
|
input.progress.writeLine(output, process.stdout);
|
|
11906
11906
|
return;
|
|
11907
11907
|
}
|
|
11908
|
-
|
|
11908
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
11909
11909
|
{
|
|
11910
11910
|
...payload,
|
|
11911
11911
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -11915,7 +11915,7 @@ function writeStartedPlayRun(input) {
|
|
|
11915
11915
|
);
|
|
11916
11916
|
}
|
|
11917
11917
|
function parsePlayCheckOptions(args) {
|
|
11918
|
-
const selection =
|
|
11918
|
+
const selection = _chunkLXYDN5FEjs.parseJsonFields.call(void 0, args, "check");
|
|
11919
11919
|
args = selection.args;
|
|
11920
11920
|
const target = args[0];
|
|
11921
11921
|
if (!target || target.startsWith("-")) {
|
|
@@ -11927,7 +11927,7 @@ function parsePlayCheckOptions(args) {
|
|
|
11927
11927
|
if (arg !== "--json" && arg !== "--full")
|
|
11928
11928
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
11929
11929
|
}
|
|
11930
|
-
const jsonOutput =
|
|
11930
|
+
const jsonOutput = _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
11931
11931
|
return {
|
|
11932
11932
|
target,
|
|
11933
11933
|
jsonOutput,
|
|
@@ -12003,7 +12003,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12003
12003
|
useLatest,
|
|
12004
12004
|
expectedArtifactHash,
|
|
12005
12005
|
dryRun,
|
|
12006
|
-
jsonOutput:
|
|
12006
|
+
jsonOutput: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args)
|
|
12007
12007
|
};
|
|
12008
12008
|
}
|
|
12009
12009
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12044,7 +12044,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12044
12044
|
target,
|
|
12045
12045
|
expectedArtifactHash,
|
|
12046
12046
|
dryRun,
|
|
12047
|
-
jsonOutput:
|
|
12047
|
+
jsonOutput: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args)
|
|
12048
12048
|
};
|
|
12049
12049
|
}
|
|
12050
12050
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12255,7 +12255,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12255
12255
|
async function handlePlayCheck(args) {
|
|
12256
12256
|
const options = parsePlayCheckOptions(args);
|
|
12257
12257
|
if (!isFileTarget(options.target)) {
|
|
12258
|
-
const client = new (0,
|
|
12258
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
12259
12259
|
try {
|
|
12260
12260
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12261
12261
|
command: "check"
|
|
@@ -12284,7 +12284,7 @@ async function handlePlayCheck(args) {
|
|
|
12284
12284
|
},
|
|
12285
12285
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12286
12286
|
};
|
|
12287
|
-
|
|
12287
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, result, {
|
|
12288
12288
|
json: options.jsonOutput,
|
|
12289
12289
|
fields: options.jsonFields,
|
|
12290
12290
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12294,7 +12294,7 @@ async function handlePlayCheck(args) {
|
|
|
12294
12294
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12295
12295
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12296
12296
|
if (options.jsonOutput) {
|
|
12297
|
-
|
|
12297
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
12298
12298
|
{
|
|
12299
12299
|
kind: "play_check",
|
|
12300
12300
|
checked: "named_contract",
|
|
@@ -12336,7 +12336,7 @@ async function handlePlayCheck(args) {
|
|
|
12336
12336
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12337
12337
|
publishCommand: _optionalChain([primary, 'optionalAccess', _455 => _455.result, 'access', _456 => _456.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12338
12338
|
});
|
|
12339
|
-
|
|
12339
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, output, {
|
|
12340
12340
|
json: options.jsonOutput,
|
|
12341
12341
|
fields: options.jsonFields,
|
|
12342
12342
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12390,7 +12390,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12390
12390
|
}
|
|
12391
12391
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12392
12392
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12393
|
-
const client = new (0,
|
|
12393
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
12394
12394
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12395
12395
|
const checked = await checkLocalPlayGraph({
|
|
12396
12396
|
client,
|
|
@@ -12443,11 +12443,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12443
12443
|
throw new Error("Expected a file-backed play run target.");
|
|
12444
12444
|
}
|
|
12445
12445
|
let client;
|
|
12446
|
-
let cliAdmission =
|
|
12446
|
+
let cliAdmission = _chunkJMCTNS6Sjs.usesInlinePlayAdmission.call(void 0,
|
|
12447
12447
|
"plays run",
|
|
12448
12448
|
process.argv.slice(2)
|
|
12449
12449
|
);
|
|
12450
|
-
const progress = _nullishCoalesce(
|
|
12450
|
+
const progress = _nullishCoalesce(_chunkAKVNUNL7js.getActiveCliProgress.call(void 0, ), () => ( _chunkAKVNUNL7js.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12451
12451
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12452
12452
|
progress.phase("compiling play");
|
|
12453
12453
|
const sourceCode = traceCliSync(
|
|
@@ -12464,7 +12464,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12464
12464
|
}
|
|
12465
12465
|
let graph;
|
|
12466
12466
|
try {
|
|
12467
|
-
graph = await
|
|
12467
|
+
graph = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12468
12468
|
"cli.play_file_bundle_graph",
|
|
12469
12469
|
{ targetKind: "file" },
|
|
12470
12470
|
() => collectBundledPlayGraph(
|
|
@@ -12478,14 +12478,14 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12478
12478
|
if (options.dryRun) {
|
|
12479
12479
|
progress.complete();
|
|
12480
12480
|
renderLocalPlayExecutionPlan(
|
|
12481
|
-
|
|
12481
|
+
_chunkFV7WGK5Xjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
|
|
12482
12482
|
{ dryRun: true, json: options.jsonOutput }
|
|
12483
12483
|
);
|
|
12484
12484
|
return 0;
|
|
12485
12485
|
}
|
|
12486
|
-
client = new (0,
|
|
12486
|
+
client = new (0, _chunkEMVWC5LPjs.DeeplineClient)(playRunClientOptions(options));
|
|
12487
12487
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12488
|
-
await
|
|
12488
|
+
await _chunkJMCTNS6Sjs.checkPlayRunCompatibility.call(void 0,
|
|
12489
12489
|
client.baseUrl,
|
|
12490
12490
|
options.maintenancePolicy
|
|
12491
12491
|
);
|
|
@@ -12498,7 +12498,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12498
12498
|
});
|
|
12499
12499
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12500
12500
|
if (canDeferCompilerManifest) {
|
|
12501
|
-
|
|
12501
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
12502
12502
|
phase: "cli.play_file_compile_manifests",
|
|
12503
12503
|
ms: 0,
|
|
12504
12504
|
ok: true,
|
|
@@ -12507,7 +12507,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12507
12507
|
reason: "validated_by_run_route"
|
|
12508
12508
|
});
|
|
12509
12509
|
} else {
|
|
12510
|
-
await
|
|
12510
|
+
await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12511
12511
|
"cli.play_file_compile_manifests",
|
|
12512
12512
|
{ targetKind: "file", skipped: false },
|
|
12513
12513
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12528,13 +12528,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12528
12528
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12529
12529
|
try {
|
|
12530
12530
|
renderLocalPlayExecutionPlan(
|
|
12531
|
-
|
|
12531
|
+
_chunkFV7WGK5Xjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12532
12532
|
);
|
|
12533
12533
|
progress.phase("pinning imported plays");
|
|
12534
|
-
graph = await
|
|
12534
|
+
graph = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12535
12535
|
"cli.play_file_pin_imports",
|
|
12536
12536
|
{ targetKind: "file" },
|
|
12537
|
-
() =>
|
|
12537
|
+
() => _chunkFV7WGK5Xjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12538
12538
|
);
|
|
12539
12539
|
bundleResult = graph.root;
|
|
12540
12540
|
} catch (error) {
|
|
@@ -12550,7 +12550,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12550
12550
|
const fileInputBindings = _chunkJDMR33HSjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12551
12551
|
_optionalChain([compilerManifest, 'optionalAccess', _465 => _465.staticPipeline])
|
|
12552
12552
|
);
|
|
12553
|
-
const stagedFileInputs = await
|
|
12553
|
+
const stagedFileInputs = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12554
12554
|
"cli.play_stage_inputs",
|
|
12555
12555
|
{
|
|
12556
12556
|
targetKind: "file",
|
|
@@ -12597,7 +12597,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12597
12597
|
};
|
|
12598
12598
|
if (options.watch) {
|
|
12599
12599
|
progress.phase("starting run");
|
|
12600
|
-
const finalStatus = await
|
|
12600
|
+
const finalStatus = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12601
12601
|
"cli.play_start_watch",
|
|
12602
12602
|
{ targetKind: "file", playName },
|
|
12603
12603
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12657,7 +12657,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12657
12657
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12658
12658
|
}
|
|
12659
12659
|
progress.phase("starting run");
|
|
12660
|
-
const started = await
|
|
12660
|
+
const started = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12661
12661
|
"cli.play_start_unwatched",
|
|
12662
12662
|
{ targetKind: "file", playName },
|
|
12663
12663
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _472 => _472.onSubmission]) }).catch(async (error) => {
|
|
@@ -12708,12 +12708,12 @@ async function handleNamedRun(options, hooks) {
|
|
|
12708
12708
|
if (options.target.kind !== "name") {
|
|
12709
12709
|
throw new Error("Expected a named play run target.");
|
|
12710
12710
|
}
|
|
12711
|
-
const client = new (0,
|
|
12712
|
-
let cliAdmission =
|
|
12711
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)(playRunClientOptions(options));
|
|
12712
|
+
let cliAdmission = _chunkJMCTNS6Sjs.usesInlinePlayAdmission.call(void 0,
|
|
12713
12713
|
"plays run",
|
|
12714
12714
|
process.argv.slice(2)
|
|
12715
12715
|
);
|
|
12716
|
-
const progress = _nullishCoalesce(
|
|
12716
|
+
const progress = _nullishCoalesce(_chunkAKVNUNL7js.getActiveCliProgress.call(void 0, ), () => ( _chunkAKVNUNL7js.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12717
12717
|
const playName = options.target.name;
|
|
12718
12718
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
12719
12719
|
try {
|
|
@@ -12728,14 +12728,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
12728
12728
|
});
|
|
12729
12729
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
12730
12730
|
progress.phase("loading play definition");
|
|
12731
|
-
return
|
|
12731
|
+
return _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12732
12732
|
"cli.play_load_definition",
|
|
12733
12733
|
{ targetKind: "name", playName, skipped: false },
|
|
12734
12734
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
12735
12735
|
command: "run"
|
|
12736
12736
|
})
|
|
12737
12737
|
);
|
|
12738
|
-
})() : (
|
|
12738
|
+
})() : (_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
12739
12739
|
phase: "cli.play_load_definition",
|
|
12740
12740
|
ms: 0,
|
|
12741
12741
|
ok: true,
|
|
@@ -12744,7 +12744,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12744
12744
|
skipped: true
|
|
12745
12745
|
}), null);
|
|
12746
12746
|
progress.phase("selecting revision");
|
|
12747
|
-
const selectedRevisionId = await
|
|
12747
|
+
const selectedRevisionId = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12748
12748
|
"cli.play_select_revision",
|
|
12749
12749
|
{
|
|
12750
12750
|
targetKind: "name",
|
|
@@ -12769,10 +12769,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
12769
12769
|
..._chunkJDMR33HSjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
12770
12770
|
] : [];
|
|
12771
12771
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
12772
|
-
await
|
|
12772
|
+
await _chunkJMCTNS6Sjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
12773
12773
|
cliAdmission = false;
|
|
12774
12774
|
}
|
|
12775
|
-
const stagedFileInputs = await
|
|
12775
|
+
const stagedFileInputs = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12776
12776
|
"cli.play_stage_inputs",
|
|
12777
12777
|
{
|
|
12778
12778
|
targetKind: "name",
|
|
@@ -12816,7 +12816,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12816
12816
|
});
|
|
12817
12817
|
if (options.watch) {
|
|
12818
12818
|
progress.phase("starting run");
|
|
12819
|
-
const finalStatus = await
|
|
12819
|
+
const finalStatus = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12820
12820
|
"cli.play_start_watch",
|
|
12821
12821
|
{ targetKind: "name", playName },
|
|
12822
12822
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12879,7 +12879,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12879
12879
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12880
12880
|
}
|
|
12881
12881
|
progress.phase("starting run");
|
|
12882
|
-
const started = await
|
|
12882
|
+
const started = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
12883
12883
|
"cli.play_start_unwatched",
|
|
12884
12884
|
{ targetKind: "name", playName },
|
|
12885
12885
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _485 => _485.onSubmission]) }).catch(async (error) => {
|
|
@@ -12924,7 +12924,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
12924
12924
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
12925
12925
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _493 => _493.exec, 'call', _494 => _494(status.runId), 'optionalAccess', _495 => _495[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
12926
12926
|
if (!terminal) {
|
|
12927
|
-
|
|
12927
|
+
_chunkJ5VDE42Gjs.writeExecutionOutput.call(void 0,
|
|
12928
12928
|
{ id: status.runId, status: status.status, next },
|
|
12929
12929
|
output
|
|
12930
12930
|
);
|
|
@@ -12999,10 +12999,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
12999
12999
|
};
|
|
13000
13000
|
}
|
|
13001
13001
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13002
|
-
const allCollections =
|
|
13002
|
+
const allCollections = _chunkJ5VDE42Gjs.outputCollections.call(void 0, data).map(
|
|
13003
13003
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13004
13004
|
);
|
|
13005
|
-
|
|
13005
|
+
_chunkJ5VDE42Gjs.writeExecutionOutput.call(void 0,
|
|
13006
13006
|
{
|
|
13007
13007
|
id: status.runId,
|
|
13008
13008
|
status: status.status,
|
|
@@ -13023,7 +13023,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13023
13023
|
}
|
|
13024
13024
|
var TOOL_EXECUTION_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
13025
13025
|
async function handlePlayRun(args, hooks) {
|
|
13026
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13026
|
+
const parsedOptions = Array.isArray(args) ? _chunkN4M6CO5Hjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13027
13027
|
const options = parsedOptions.runIdFile ? {
|
|
13028
13028
|
...parsedOptions,
|
|
13029
13029
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13040,7 +13040,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13040
13040
|
JSON.stringify({
|
|
13041
13041
|
version: 1,
|
|
13042
13042
|
admissionState: "submitted_unknown",
|
|
13043
|
-
baseUrl: new (0,
|
|
13043
|
+
baseUrl: new (0, _chunkEMVWC5LPjs.DeeplineClient)().baseUrl,
|
|
13044
13044
|
...intent
|
|
13045
13045
|
})
|
|
13046
13046
|
);
|
|
@@ -13269,7 +13269,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13269
13269
|
);
|
|
13270
13270
|
return `${lines.join("\n")}
|
|
13271
13271
|
|
|
13272
|
-
${
|
|
13272
|
+
${_chunkLXYDN5FEjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13273
13273
|
}
|
|
13274
13274
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13275
13275
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13293,7 +13293,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13293
13293
|
}
|
|
13294
13294
|
}
|
|
13295
13295
|
async function handleRunGet(args) {
|
|
13296
|
-
const selection =
|
|
13296
|
+
const selection = _chunkLXYDN5FEjs.parseJsonFields.call(void 0,
|
|
13297
13297
|
args,
|
|
13298
13298
|
args.includes("--config") ? "config" : "get"
|
|
13299
13299
|
);
|
|
@@ -13306,7 +13306,7 @@ async function handleRunGet(args) {
|
|
|
13306
13306
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13307
13307
|
return 1;
|
|
13308
13308
|
}
|
|
13309
|
-
const client = new (0,
|
|
13309
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
13310
13310
|
const timing = args.includes("--timing");
|
|
13311
13311
|
if (args.includes("--web-url")) {
|
|
13312
13312
|
const status2 = await withRunReadTiming(
|
|
@@ -13321,7 +13321,7 @@ async function handleRunGet(args) {
|
|
|
13321
13321
|
return 1;
|
|
13322
13322
|
}
|
|
13323
13323
|
const dashboardUrl2 = _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13324
|
-
|
|
13324
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13325
13325
|
{ dashboardUrl: dashboardUrl2 },
|
|
13326
13326
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
13327
13327
|
` }
|
|
@@ -13346,7 +13346,7 @@ async function handleRunGet(args) {
|
|
|
13346
13346
|
"This server does not support recorded configuration reads."
|
|
13347
13347
|
);
|
|
13348
13348
|
}
|
|
13349
|
-
|
|
13349
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13350
13350
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13351
13351
|
{ json: true, fields: selection.fields }
|
|
13352
13352
|
);
|
|
@@ -13359,7 +13359,7 @@ async function handleRunGet(args) {
|
|
|
13359
13359
|
timing,
|
|
13360
13360
|
() => client.getRunInput(runId)
|
|
13361
13361
|
);
|
|
13362
|
-
|
|
13362
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13363
13363
|
return 0;
|
|
13364
13364
|
}
|
|
13365
13365
|
const full = args.includes("--full");
|
|
@@ -13372,7 +13372,7 @@ async function handleRunGet(args) {
|
|
|
13372
13372
|
failedLogs: args.includes("--log-failed")
|
|
13373
13373
|
})
|
|
13374
13374
|
);
|
|
13375
|
-
if (status.package)
|
|
13375
|
+
if (status.package) _chunkJ5VDE42Gjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13376
13376
|
if (!status.package) {
|
|
13377
13377
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13378
13378
|
"runs get",
|
|
@@ -13385,8 +13385,8 @@ async function handleRunGet(args) {
|
|
|
13385
13385
|
) : status;
|
|
13386
13386
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13387
13387
|
const legacyDashboardUrl = legacyPlayName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13388
|
-
if (
|
|
13389
|
-
|
|
13388
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
13389
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13390
13390
|
{
|
|
13391
13391
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13392
13392
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -13396,7 +13396,7 @@ async function handleRunGet(args) {
|
|
|
13396
13396
|
} else {
|
|
13397
13397
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13398
13398
|
if (legacyDashboardUrl)
|
|
13399
|
-
|
|
13399
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13400
13400
|
{ dashboardUrl: legacyDashboardUrl },
|
|
13401
13401
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
13402
13402
|
` }
|
|
@@ -13426,10 +13426,10 @@ async function handleRunGet(args) {
|
|
|
13426
13426
|
)
|
|
13427
13427
|
]);
|
|
13428
13428
|
const hitLines = formatRunHitsLines(hits);
|
|
13429
|
-
const json =
|
|
13429
|
+
const json = _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
13430
13430
|
const playName = resolveRunPlayName(status, runId);
|
|
13431
13431
|
const dashboardUrl = playName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13432
|
-
|
|
13432
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13433
13433
|
{
|
|
13434
13434
|
...overview,
|
|
13435
13435
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13533,9 +13533,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13533
13533
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13534
13534
|
return 1;
|
|
13535
13535
|
}
|
|
13536
|
-
const status = await new (0,
|
|
13537
|
-
if (
|
|
13538
|
-
|
|
13536
|
+
const status = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().runs.status(runId);
|
|
13537
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
13538
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13539
13539
|
return 0;
|
|
13540
13540
|
}
|
|
13541
13541
|
if (!status.available) {
|
|
@@ -13575,7 +13575,7 @@ async function handleRunsRerun(args) {
|
|
|
13575
13575
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13576
13576
|
return 1;
|
|
13577
13577
|
}
|
|
13578
|
-
const options = { json:
|
|
13578
|
+
const options = { json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) };
|
|
13579
13579
|
for (let index = 0; index < args.length; index += 1) {
|
|
13580
13580
|
if (args[index] === "--idempotency-key") {
|
|
13581
13581
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13641,8 +13641,8 @@ ${usage2}
|
|
|
13641
13641
|
Discover Plays: ${next.discover}
|
|
13642
13642
|
Active runs: ${next.running}`
|
|
13643
13643
|
);
|
|
13644
|
-
if (
|
|
13645
|
-
|
|
13644
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
13645
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13646
13646
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13647
13647
|
{ json: true }
|
|
13648
13648
|
);
|
|
@@ -13657,7 +13657,7 @@ Active runs: ${next.running}`
|
|
|
13657
13657
|
console.error("--offset requires --play.");
|
|
13658
13658
|
return 1;
|
|
13659
13659
|
}
|
|
13660
|
-
const client = new (0,
|
|
13660
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
13661
13661
|
const page = await withRunReadTiming(
|
|
13662
13662
|
"runs list",
|
|
13663
13663
|
"run inventory",
|
|
@@ -13724,14 +13724,14 @@ Active runs: ${next.running}`
|
|
|
13724
13724
|
return lines2.join("\n");
|
|
13725
13725
|
});
|
|
13726
13726
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
13727
|
-
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${
|
|
13727
|
+
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkAID3OYVJjs.shellQuote.call(void 0, nodeId)}` : ""}${statusFilter ? ` --status ${_chunkAID3OYVJjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkLXYDN5FEjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
13728
13728
|
if (page.hasMore) {
|
|
13729
13729
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
13730
13730
|
lines.push(
|
|
13731
13731
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
13732
13732
|
);
|
|
13733
13733
|
}
|
|
13734
|
-
|
|
13734
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13735
13735
|
{
|
|
13736
13736
|
runs,
|
|
13737
13737
|
count: runs.length,
|
|
@@ -13745,7 +13745,7 @@ Active runs: ${next.running}`
|
|
|
13745
13745
|
},
|
|
13746
13746
|
render: { sections: [{ title: "runs", lines }] }
|
|
13747
13747
|
},
|
|
13748
|
-
{ json:
|
|
13748
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) }
|
|
13749
13749
|
);
|
|
13750
13750
|
return 0;
|
|
13751
13751
|
}
|
|
@@ -13775,7 +13775,7 @@ async function handleRunTail(args) {
|
|
|
13775
13775
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
13776
13776
|
return 1;
|
|
13777
13777
|
}
|
|
13778
|
-
const parsed =
|
|
13778
|
+
const parsed = _chunkGSULE54Ljs.parseLogLevel.call(void 0, value);
|
|
13779
13779
|
if (!parsed) {
|
|
13780
13780
|
console.error(
|
|
13781
13781
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -13813,9 +13813,9 @@ async function handleRunTail(args) {
|
|
|
13813
13813
|
);
|
|
13814
13814
|
return 1;
|
|
13815
13815
|
}
|
|
13816
|
-
const client = new (0,
|
|
13816
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
13817
13817
|
const jsonLines = args.includes("--jsonl");
|
|
13818
|
-
const jsonOutput = !jsonLines &&
|
|
13818
|
+
const jsonOutput = !jsonLines && _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
13819
13819
|
const compact = args.includes("--compact");
|
|
13820
13820
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
13821
13821
|
const compactState = {
|
|
@@ -13896,7 +13896,7 @@ async function handleRunLogs(args) {
|
|
|
13896
13896
|
]);
|
|
13897
13897
|
const cursorIndex = args.indexOf("--cursor");
|
|
13898
13898
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
13899
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
13899
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkGSULE54Ljs.isRunLogsCursor.call(void 0, cursorValue));
|
|
13900
13900
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
13901
13901
|
return handleRunEventSearch(args);
|
|
13902
13902
|
}
|
|
@@ -13930,7 +13930,7 @@ async function handleRunLogs(args) {
|
|
|
13930
13930
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
13931
13931
|
return 1;
|
|
13932
13932
|
}
|
|
13933
|
-
const parsed =
|
|
13933
|
+
const parsed = _chunkGSULE54Ljs.parseLogLevel.call(void 0, value);
|
|
13934
13934
|
if (!parsed) {
|
|
13935
13935
|
console.error(
|
|
13936
13936
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -13977,12 +13977,12 @@ async function handleRunLogs(args) {
|
|
|
13977
13977
|
);
|
|
13978
13978
|
return 1;
|
|
13979
13979
|
}
|
|
13980
|
-
const client = new (0,
|
|
13980
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
13981
13981
|
if (outPath) {
|
|
13982
13982
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
13983
|
-
const logs = result2.entries.filter((line) =>
|
|
13983
|
+
const logs = result2.entries.filter((line) => _chunkGSULE54Ljs.logLevelReaches.call(void 0, _chunkGSULE54Ljs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkGSULE54Ljs.classifyLogLine.call(void 0, line).line);
|
|
13984
13984
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
13985
|
-
|
|
13985
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
13986
13986
|
{
|
|
13987
13987
|
runId: result2.runId,
|
|
13988
13988
|
log_path: outPath,
|
|
@@ -14005,7 +14005,7 @@ async function handleRunLogs(args) {
|
|
|
14005
14005
|
]
|
|
14006
14006
|
}
|
|
14007
14007
|
},
|
|
14008
|
-
{ json:
|
|
14008
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) }
|
|
14009
14009
|
);
|
|
14010
14010
|
return 0;
|
|
14011
14011
|
}
|
|
@@ -14036,7 +14036,7 @@ async function handleRunLogs(args) {
|
|
|
14036
14036
|
}
|
|
14037
14037
|
};
|
|
14038
14038
|
const text = buildRunLogsText(filteredResult);
|
|
14039
|
-
|
|
14039
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14040
14040
|
{
|
|
14041
14041
|
runId: result.runId,
|
|
14042
14042
|
totalCount: result.totalCount,
|
|
@@ -14060,7 +14060,7 @@ async function handleRunLogs(args) {
|
|
|
14060
14060
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14061
14061
|
},
|
|
14062
14062
|
{
|
|
14063
|
-
json:
|
|
14063
|
+
json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args),
|
|
14064
14064
|
text
|
|
14065
14065
|
}
|
|
14066
14066
|
);
|
|
@@ -14084,7 +14084,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14084
14084
|
);
|
|
14085
14085
|
}
|
|
14086
14086
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14087
|
-
(entry) =>
|
|
14087
|
+
(entry) => _chunkGSULE54Ljs.logLevelReaches.call(void 0, _chunkGSULE54Ljs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14088
14088
|
);
|
|
14089
14089
|
const selected = matching.slice(-limit);
|
|
14090
14090
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14094,7 +14094,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14094
14094
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _527 => _527.at, 'call', _528 => _528(-1), 'optionalAccess', _529 => _529.seq]), () => ( null)),
|
|
14095
14095
|
truncated: result.truncated || olderMatchesExist,
|
|
14096
14096
|
hasMore: olderMatchesExist,
|
|
14097
|
-
nextCursor: olderMatchesExist ?
|
|
14097
|
+
nextCursor: olderMatchesExist ? _chunkGSULE54Ljs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14098
14098
|
};
|
|
14099
14099
|
}
|
|
14100
14100
|
async function handleRunEventSearch(args) {
|
|
@@ -14161,7 +14161,7 @@ ${usage2}`);
|
|
|
14161
14161
|
namespace,
|
|
14162
14162
|
...backend ? { backend } : {}
|
|
14163
14163
|
} : void 0;
|
|
14164
|
-
const client = new (0,
|
|
14164
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14165
14165
|
const result = await client.runs.searchEvents({
|
|
14166
14166
|
...runId ? { runId } : {},
|
|
14167
14167
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14233,7 +14233,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14233
14233
|
"--limit",
|
|
14234
14234
|
String(limit)
|
|
14235
14235
|
].join(" ") : null;
|
|
14236
|
-
|
|
14236
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14237
14237
|
{
|
|
14238
14238
|
events,
|
|
14239
14239
|
nextCursor: result.nextCursor,
|
|
@@ -14244,14 +14244,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14244
14244
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14245
14245
|
},
|
|
14246
14246
|
{
|
|
14247
|
-
json:
|
|
14247
|
+
json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args),
|
|
14248
14248
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14249
14249
|
}
|
|
14250
14250
|
);
|
|
14251
14251
|
return 0;
|
|
14252
14252
|
}
|
|
14253
14253
|
function buildRunLogsText(result) {
|
|
14254
|
-
const lines = result.entries.map((line) =>
|
|
14254
|
+
const lines = result.entries.map((line) => _chunkGSULE54Ljs.classifyLogLine.call(void 0, line).line);
|
|
14255
14255
|
if (result.warning) {
|
|
14256
14256
|
if (lines.length > 0) lines.push("");
|
|
14257
14257
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14285,7 +14285,7 @@ async function handleRunStop(args) {
|
|
|
14285
14285
|
reason = args[++index];
|
|
14286
14286
|
}
|
|
14287
14287
|
}
|
|
14288
|
-
const client = new (0,
|
|
14288
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14289
14289
|
const result = await client.runs.stop(runId, { reason });
|
|
14290
14290
|
const state = resolveRunStopState(result);
|
|
14291
14291
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14300,7 +14300,7 @@ async function handleRunStop(args) {
|
|
|
14300
14300
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14301
14301
|
`inspect: deepline runs get ${runId} --full`
|
|
14302
14302
|
];
|
|
14303
|
-
|
|
14303
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14304
14304
|
{
|
|
14305
14305
|
...cancelling,
|
|
14306
14306
|
state,
|
|
@@ -14315,7 +14315,7 @@ async function handleRunStop(args) {
|
|
|
14315
14315
|
]
|
|
14316
14316
|
}
|
|
14317
14317
|
},
|
|
14318
|
-
{ json:
|
|
14318
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) }
|
|
14319
14319
|
);
|
|
14320
14320
|
return 0;
|
|
14321
14321
|
}
|
|
@@ -14332,7 +14332,7 @@ async function handleRunStop(args) {
|
|
|
14332
14332
|
];
|
|
14333
14333
|
process.stderr.write(`${lines2.join("\n")}
|
|
14334
14334
|
`);
|
|
14335
|
-
|
|
14335
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14336
14336
|
{
|
|
14337
14337
|
...result,
|
|
14338
14338
|
render: {
|
|
@@ -14347,7 +14347,7 @@ async function handleRunStop(args) {
|
|
|
14347
14347
|
]
|
|
14348
14348
|
}
|
|
14349
14349
|
},
|
|
14350
|
-
{ json:
|
|
14350
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) }
|
|
14351
14351
|
);
|
|
14352
14352
|
return 1;
|
|
14353
14353
|
}
|
|
@@ -14358,12 +14358,12 @@ async function handleRunStop(args) {
|
|
|
14358
14358
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14359
14359
|
] : []
|
|
14360
14360
|
];
|
|
14361
|
-
|
|
14361
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14362
14362
|
{
|
|
14363
14363
|
...result,
|
|
14364
14364
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14365
14365
|
},
|
|
14366
|
-
{ json:
|
|
14366
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) }
|
|
14367
14367
|
);
|
|
14368
14368
|
return 0;
|
|
14369
14369
|
}
|
|
@@ -14413,18 +14413,18 @@ async function handleRunStopAll(args) {
|
|
|
14413
14413
|
reason = args[++index];
|
|
14414
14414
|
}
|
|
14415
14415
|
}
|
|
14416
|
-
const client = new (0,
|
|
14416
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14417
14417
|
if (dryRun) {
|
|
14418
14418
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14419
14419
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14420
|
-
|
|
14420
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14421
14421
|
{
|
|
14422
14422
|
...result2,
|
|
14423
14423
|
render: {
|
|
14424
14424
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14425
14425
|
}
|
|
14426
14426
|
},
|
|
14427
|
-
{ json:
|
|
14427
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14428
14428
|
` }
|
|
14429
14429
|
);
|
|
14430
14430
|
return 0;
|
|
@@ -14437,17 +14437,17 @@ async function handleRunStopAll(args) {
|
|
|
14437
14437
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14438
14438
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14439
14439
|
];
|
|
14440
|
-
|
|
14440
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14441
14441
|
{
|
|
14442
14442
|
...result,
|
|
14443
14443
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14444
14444
|
},
|
|
14445
|
-
{ json:
|
|
14445
|
+
{ json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args) }
|
|
14446
14446
|
);
|
|
14447
14447
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14448
14448
|
}
|
|
14449
14449
|
async function handleRunExport(args) {
|
|
14450
|
-
const selection =
|
|
14450
|
+
const selection = _chunkLXYDN5FEjs.parseJsonFields.call(void 0, args, "export");
|
|
14451
14451
|
args = selection.args;
|
|
14452
14452
|
const usage2 = "Usage: deepline runs export <run-id> [--dataset result.rows] --out <path> [--format csv|json] [--summary full|counts] [--wait] [--timeout-ms 300000] [--metadata-out export.json] [--allow-empty] [--json]";
|
|
14453
14453
|
let runId;
|
|
@@ -14518,17 +14518,17 @@ async function handleRunExport(args) {
|
|
|
14518
14518
|
"INVALID_ARGUMENT"
|
|
14519
14519
|
);
|
|
14520
14520
|
}
|
|
14521
|
-
const client = new (0,
|
|
14521
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14522
14522
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14523
14523
|
assertRunExportStatusIdentity(status, runId);
|
|
14524
14524
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14525
|
-
const progress =
|
|
14525
|
+
const progress = _chunkAKVNUNL7js.createCliProgress.call(void 0, !_chunkLXYDN5FEjs.argsWantJson.call(void 0, args));
|
|
14526
14526
|
try {
|
|
14527
14527
|
await waitForPlayCompletionByWatch({
|
|
14528
14528
|
client,
|
|
14529
14529
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14530
14530
|
workflowId: runId,
|
|
14531
|
-
jsonOutput:
|
|
14531
|
+
jsonOutput: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args),
|
|
14532
14532
|
emitLogs: false,
|
|
14533
14533
|
waitTimeoutMs,
|
|
14534
14534
|
startedAt: Date.now(),
|
|
@@ -14596,7 +14596,7 @@ async function handleRunExport(args) {
|
|
|
14596
14596
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _543 => _543.rowsInfo, 'access', _544 => _544.totalRows]), () => ( null)),
|
|
14597
14597
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14598
14598
|
...rowFailures ? { rowFailures } : {},
|
|
14599
|
-
columns:
|
|
14599
|
+
columns: _chunkJ5VDE42Gjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _545 => _545.rowsInfo, 'access', _546 => _546.columns]), () => ( []))),
|
|
14600
14600
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14601
14601
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14602
14602
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -14630,8 +14630,8 @@ async function handleRunExport(args) {
|
|
|
14630
14630
|
"utf-8"
|
|
14631
14631
|
);
|
|
14632
14632
|
}
|
|
14633
|
-
|
|
14634
|
-
json:
|
|
14633
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, payload, {
|
|
14634
|
+
json: _chunkLXYDN5FEjs.argsWantJson.call(void 0, args),
|
|
14635
14635
|
fields: selection.fields,
|
|
14636
14636
|
text: `${lines.join("\n")}
|
|
14637
14637
|
`
|
|
@@ -14665,10 +14665,10 @@ async function handlePlayGet(args) {
|
|
|
14665
14665
|
);
|
|
14666
14666
|
return 2;
|
|
14667
14667
|
}
|
|
14668
|
-
const client = new (0,
|
|
14668
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14669
14669
|
const explicitJson = args.includes("--json");
|
|
14670
14670
|
const sourceOutput = args.includes("--source");
|
|
14671
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14671
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
14672
14672
|
const requestedRevisionFlags = [
|
|
14673
14673
|
args.includes("--working"),
|
|
14674
14674
|
args.includes("--live"),
|
|
@@ -14728,7 +14728,7 @@ async function handlePlayGet(args) {
|
|
|
14728
14728
|
}
|
|
14729
14729
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
14730
14730
|
if (jsonOutput) {
|
|
14731
|
-
|
|
14731
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, {
|
|
14732
14732
|
...detail,
|
|
14733
14733
|
...materializedFile ? {
|
|
14734
14734
|
message: loadedMessage,
|
|
@@ -14820,8 +14820,8 @@ async function handlePlayVersions(args) {
|
|
|
14820
14820
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
14821
14821
|
return 1;
|
|
14822
14822
|
}
|
|
14823
|
-
const client = new (0,
|
|
14824
|
-
const jsonOutput =
|
|
14823
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14824
|
+
const jsonOutput = _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
14825
14825
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
14826
14826
|
command: "versions"
|
|
14827
14827
|
});
|
|
@@ -14829,7 +14829,7 @@ async function handlePlayVersions(args) {
|
|
|
14829
14829
|
parseReferencedPlayTarget(playName).playName
|
|
14830
14830
|
);
|
|
14831
14831
|
if (jsonOutput) {
|
|
14832
|
-
|
|
14832
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, { versions });
|
|
14833
14833
|
return 0;
|
|
14834
14834
|
}
|
|
14835
14835
|
if (versions.length === 0) {
|
|
@@ -14872,8 +14872,8 @@ async function handlePlayCost(args) {
|
|
|
14872
14872
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
14873
14873
|
return 2;
|
|
14874
14874
|
}
|
|
14875
|
-
const result = await new (0,
|
|
14876
|
-
if (
|
|
14875
|
+
const result = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
14876
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
14877
14877
|
else
|
|
14878
14878
|
console.log(
|
|
14879
14879
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -14881,9 +14881,9 @@ async function handlePlayCost(args) {
|
|
|
14881
14881
|
return 0;
|
|
14882
14882
|
}
|
|
14883
14883
|
async function handlePlayList(args) {
|
|
14884
|
-
const jsonOutput =
|
|
14884
|
+
const jsonOutput = _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
14885
14885
|
const showCost = args.includes("--show-cost");
|
|
14886
|
-
const client = new (0,
|
|
14886
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
14887
14887
|
const categoriesIndex = args.indexOf("--categories");
|
|
14888
14888
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _566 => _566[categoriesIndex + 1], 'optionalAccess', _567 => _567.trim, 'call', _568 => _568()]) : void 0;
|
|
14889
14889
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -14981,7 +14981,7 @@ async function handlePlayList(args) {
|
|
|
14981
14981
|
lines.push("List truncated \u2014 more plays are available.");
|
|
14982
14982
|
lines.push(`Next page: ${nextPage}`);
|
|
14983
14983
|
}
|
|
14984
|
-
|
|
14984
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
14985
14985
|
{
|
|
14986
14986
|
plays,
|
|
14987
14987
|
count: plays.length,
|
|
@@ -14999,7 +14999,7 @@ async function handlePlayList(args) {
|
|
|
14999
14999
|
}
|
|
15000
15000
|
async function handlePlayPin(args, pinned) {
|
|
15001
15001
|
const target = _optionalChain([args, 'access', _577 => _577.find, 'call', _578 => _578((arg) => !arg.startsWith("-")), 'optionalAccess', _579 => _579.trim, 'call', _580 => _580()]);
|
|
15002
|
-
const jsonOutput =
|
|
15002
|
+
const jsonOutput = _chunkLXYDN5FEjs.argsWantJson.call(void 0, args);
|
|
15003
15003
|
const dryRun = args.includes("--dry-run");
|
|
15004
15004
|
if (!target) {
|
|
15005
15005
|
console.error(
|
|
@@ -15017,11 +15017,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15017
15017
|
const name = parsedTarget.playName;
|
|
15018
15018
|
const plan = { name, pinned, dryRun };
|
|
15019
15019
|
if (dryRun) {
|
|
15020
|
-
|
|
15020
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, plan);
|
|
15021
15021
|
return 0;
|
|
15022
15022
|
}
|
|
15023
|
-
const result = await new (0,
|
|
15024
|
-
if (jsonOutput)
|
|
15023
|
+
const result = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15024
|
+
if (jsonOutput) _chunkLXYDN5FEjs.printCompactJson.call(void 0, result);
|
|
15025
15025
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15026
15026
|
return 0;
|
|
15027
15027
|
}
|
|
@@ -15147,12 +15147,12 @@ async function handlePlayGrep(args) {
|
|
|
15147
15147
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15148
15148
|
return 1;
|
|
15149
15149
|
}
|
|
15150
|
-
const client = new (0,
|
|
15150
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15151
15151
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15152
15152
|
summarizePlayGrepResult
|
|
15153
15153
|
);
|
|
15154
|
-
if (
|
|
15155
|
-
|
|
15154
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
15155
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, {
|
|
15156
15156
|
plays: results,
|
|
15157
15157
|
count: results.length,
|
|
15158
15158
|
query,
|
|
@@ -15175,7 +15175,7 @@ async function handlePlayGrep(args) {
|
|
|
15175
15175
|
return 0;
|
|
15176
15176
|
}
|
|
15177
15177
|
async function handlePlayDescribe(args) {
|
|
15178
|
-
const selection =
|
|
15178
|
+
const selection = _chunkLXYDN5FEjs.parseJsonFields.call(void 0, args, "describe");
|
|
15179
15179
|
args = selection.args;
|
|
15180
15180
|
const playName = args[0];
|
|
15181
15181
|
if (!playName) {
|
|
@@ -15209,8 +15209,8 @@ async function handlePlayDescribe(args) {
|
|
|
15209
15209
|
`deepline plays check ${playName}`,
|
|
15210
15210
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15211
15211
|
];
|
|
15212
|
-
if (
|
|
15213
|
-
|
|
15212
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
15213
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, {
|
|
15214
15214
|
ok: false,
|
|
15215
15215
|
error: { message },
|
|
15216
15216
|
next
|
|
@@ -15224,7 +15224,7 @@ async function handlePlayDescribe(args) {
|
|
|
15224
15224
|
}
|
|
15225
15225
|
return 2;
|
|
15226
15226
|
}
|
|
15227
|
-
const client = new (0,
|
|
15227
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15228
15228
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15229
15229
|
command: "describe"
|
|
15230
15230
|
});
|
|
@@ -15234,9 +15234,9 @@ async function handlePlayDescribe(args) {
|
|
|
15234
15234
|
compact: args.includes("--compact")
|
|
15235
15235
|
}
|
|
15236
15236
|
);
|
|
15237
|
-
if (
|
|
15238
|
-
if (selection.fields)
|
|
15239
|
-
else
|
|
15237
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
15238
|
+
if (selection.fields) _chunkLXYDN5FEjs.printJson.call(void 0, play, selection.fields);
|
|
15239
|
+
else _chunkLXYDN5FEjs.printCompactJson.call(void 0, play);
|
|
15240
15240
|
return 0;
|
|
15241
15241
|
}
|
|
15242
15242
|
printPlayDescription(play);
|
|
@@ -15258,7 +15258,7 @@ async function handlePlaySave(args) {
|
|
|
15258
15258
|
}
|
|
15259
15259
|
let graph;
|
|
15260
15260
|
try {
|
|
15261
|
-
graph = await
|
|
15261
|
+
graph = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15262
15262
|
"cli.play_save_bundle_graph",
|
|
15263
15263
|
{ targetKind: "file" },
|
|
15264
15264
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15280,7 +15280,7 @@ async function handlePlaySave(args) {
|
|
|
15280
15280
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15281
15281
|
};
|
|
15282
15282
|
if (options.jsonOutput) {
|
|
15283
|
-
|
|
15283
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result);
|
|
15284
15284
|
} else {
|
|
15285
15285
|
console.error(result.message);
|
|
15286
15286
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15302,7 +15302,7 @@ async function handlePlaySave(args) {
|
|
|
15302
15302
|
};
|
|
15303
15303
|
if (options.dryRun) {
|
|
15304
15304
|
if (options.jsonOutput) {
|
|
15305
|
-
|
|
15305
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, dryRun);
|
|
15306
15306
|
} else {
|
|
15307
15307
|
console.log(`Dry run: ${playName}`);
|
|
15308
15308
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15311,14 +15311,14 @@ async function handlePlaySave(args) {
|
|
|
15311
15311
|
}
|
|
15312
15312
|
return 0;
|
|
15313
15313
|
}
|
|
15314
|
-
const client = new (0,
|
|
15314
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15315
15315
|
try {
|
|
15316
|
-
await
|
|
15316
|
+
await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15317
15317
|
"cli.play_save_compile_manifests",
|
|
15318
15318
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15319
15319
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15320
15320
|
);
|
|
15321
|
-
const saved = await
|
|
15321
|
+
const saved = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15322
15322
|
"cli.play_save_register_draft",
|
|
15323
15323
|
{ targetKind: "file", playName, artifactHash },
|
|
15324
15324
|
() => client.registerPlayArtifact({
|
|
@@ -15347,7 +15347,7 @@ async function handlePlaySave(args) {
|
|
|
15347
15347
|
}
|
|
15348
15348
|
};
|
|
15349
15349
|
if (options.jsonOutput) {
|
|
15350
|
-
|
|
15350
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result);
|
|
15351
15351
|
} else {
|
|
15352
15352
|
console.log(
|
|
15353
15353
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15373,7 +15373,7 @@ async function handlePlayPublish(args) {
|
|
|
15373
15373
|
}
|
|
15374
15374
|
const { target: playName, useLatest } = options;
|
|
15375
15375
|
let revisionId = options.revisionId;
|
|
15376
|
-
const client = new (0,
|
|
15376
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15377
15377
|
if (isFileTarget(playName)) {
|
|
15378
15378
|
if (revisionId || useLatest) {
|
|
15379
15379
|
console.error(
|
|
@@ -15383,7 +15383,7 @@ async function handlePlayPublish(args) {
|
|
|
15383
15383
|
}
|
|
15384
15384
|
let graph;
|
|
15385
15385
|
try {
|
|
15386
|
-
graph = await
|
|
15386
|
+
graph = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15387
15387
|
"cli.play_publish_bundle_graph",
|
|
15388
15388
|
{ targetKind: "file" },
|
|
15389
15389
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15405,7 +15405,7 @@ async function handlePlayPublish(args) {
|
|
|
15405
15405
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15406
15406
|
};
|
|
15407
15407
|
if (options.jsonOutput) {
|
|
15408
|
-
|
|
15408
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result3);
|
|
15409
15409
|
} else {
|
|
15410
15410
|
console.error(result3.message);
|
|
15411
15411
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15428,7 +15428,7 @@ async function handlePlayPublish(args) {
|
|
|
15428
15428
|
};
|
|
15429
15429
|
if (options.dryRun) {
|
|
15430
15430
|
if (options.jsonOutput) {
|
|
15431
|
-
|
|
15431
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, dryRun);
|
|
15432
15432
|
} else {
|
|
15433
15433
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15434
15434
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15447,12 +15447,12 @@ async function handlePlayPublish(args) {
|
|
|
15447
15447
|
}
|
|
15448
15448
|
}
|
|
15449
15449
|
try {
|
|
15450
|
-
await
|
|
15450
|
+
await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15451
15451
|
"cli.play_publish_compile_manifests",
|
|
15452
15452
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15453
15453
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15454
15454
|
);
|
|
15455
|
-
await
|
|
15455
|
+
await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15456
15456
|
"cli.play_publish_imports",
|
|
15457
15457
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15458
15458
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15461,7 +15461,7 @@ async function handlePlayPublish(args) {
|
|
|
15461
15461
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15462
15462
|
return 1;
|
|
15463
15463
|
}
|
|
15464
|
-
const published = await
|
|
15464
|
+
const published = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
15465
15465
|
"cli.play_publish_register_root",
|
|
15466
15466
|
{
|
|
15467
15467
|
targetKind: "file",
|
|
@@ -15496,7 +15496,7 @@ async function handlePlayPublish(args) {
|
|
|
15496
15496
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15497
15497
|
};
|
|
15498
15498
|
if (options.jsonOutput) {
|
|
15499
|
-
|
|
15499
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result2);
|
|
15500
15500
|
} else {
|
|
15501
15501
|
printPublishReceipt({
|
|
15502
15502
|
name: rootPlayName,
|
|
@@ -15527,7 +15527,7 @@ async function handlePlayPublish(args) {
|
|
|
15527
15527
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15528
15528
|
latest: useLatest
|
|
15529
15529
|
};
|
|
15530
|
-
|
|
15530
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result2);
|
|
15531
15531
|
return 0;
|
|
15532
15532
|
}
|
|
15533
15533
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15551,7 +15551,7 @@ async function handlePlayPublish(args) {
|
|
|
15551
15551
|
revisionId ? { revisionId } : {}
|
|
15552
15552
|
);
|
|
15553
15553
|
if (options.jsonOutput) {
|
|
15554
|
-
|
|
15554
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result);
|
|
15555
15555
|
} else {
|
|
15556
15556
|
printPublishReceipt({
|
|
15557
15557
|
name: result.name,
|
|
@@ -15591,7 +15591,7 @@ async function handlePlayDelete(args) {
|
|
|
15591
15591
|
);
|
|
15592
15592
|
return 2;
|
|
15593
15593
|
}
|
|
15594
|
-
const client = new (0,
|
|
15594
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15595
15595
|
let detail;
|
|
15596
15596
|
try {
|
|
15597
15597
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15615,8 +15615,8 @@ async function handlePlayDelete(args) {
|
|
|
15615
15615
|
name: resolvedName,
|
|
15616
15616
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15617
15617
|
};
|
|
15618
|
-
if (
|
|
15619
|
-
|
|
15618
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
15619
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result2);
|
|
15620
15620
|
} else {
|
|
15621
15621
|
process.stdout.write(
|
|
15622
15622
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15626,8 +15626,8 @@ async function handlePlayDelete(args) {
|
|
|
15626
15626
|
return 0;
|
|
15627
15627
|
}
|
|
15628
15628
|
const result = await client.deletePlay(resolvedName);
|
|
15629
|
-
if (
|
|
15630
|
-
|
|
15629
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
15630
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result);
|
|
15631
15631
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15632
15632
|
}
|
|
15633
15633
|
if (result.alreadyArchived) {
|
|
@@ -15666,13 +15666,13 @@ async function handlePlayRestore(args) {
|
|
|
15666
15666
|
);
|
|
15667
15667
|
return 2;
|
|
15668
15668
|
}
|
|
15669
|
-
const client = new (0,
|
|
15669
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15670
15670
|
try {
|
|
15671
15671
|
const result = await client.restorePlay(
|
|
15672
15672
|
parseReferencedPlayTarget(playName).playName
|
|
15673
15673
|
);
|
|
15674
|
-
if (
|
|
15675
|
-
|
|
15674
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
15675
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, result);
|
|
15676
15676
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
15677
15677
|
}
|
|
15678
15678
|
if (result.alreadyActive) {
|
|
@@ -15799,21 +15799,21 @@ Common commands:
|
|
|
15799
15799
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
15800
15800
|
}
|
|
15801
15801
|
};
|
|
15802
|
-
|
|
15802
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, result2, {
|
|
15803
15803
|
json: options.json,
|
|
15804
15804
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
15805
15805
|
`
|
|
15806
15806
|
});
|
|
15807
15807
|
return;
|
|
15808
15808
|
}
|
|
15809
|
-
const client = new (0,
|
|
15809
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
15810
15810
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
15811
15811
|
throw new Error(
|
|
15812
15812
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
15813
15813
|
);
|
|
15814
15814
|
}
|
|
15815
15815
|
const result = await client.startPlayRun(saved.request);
|
|
15816
|
-
|
|
15816
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
15817
15817
|
{ ...result },
|
|
15818
15818
|
{
|
|
15819
15819
|
json: options.json,
|
|
@@ -15849,7 +15849,7 @@ Examples:
|
|
|
15849
15849
|
).action(async (target, options) => {
|
|
15850
15850
|
process.exitCode = await handlePlayCheck([
|
|
15851
15851
|
target,
|
|
15852
|
-
...
|
|
15852
|
+
..._chunkLXYDN5FEjs.jsonFieldArgs.call(void 0, options.json),
|
|
15853
15853
|
...options.full ? ["--full"] : []
|
|
15854
15854
|
]);
|
|
15855
15855
|
});
|
|
@@ -15888,10 +15888,10 @@ Notes:
|
|
|
15888
15888
|
--force-tool-refresh re-executes completed tool receipts and may repeat billed
|
|
15889
15889
|
provider calls. It is independent from --force.
|
|
15890
15890
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
15891
|
-
resident-work ceiling. Default: ${
|
|
15891
|
+
resident-work ceiling. Default: ${_chunkN4M6CO5Hjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkN4M6CO5Hjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
15892
15892
|
Provider pacing and sandbox memory limits still apply.
|
|
15893
15893
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
15894
|
-
resolvers. Accepted range: 1-${
|
|
15894
|
+
resolvers. Accepted range: 1-${_chunkN4M6CO5Hjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
15895
15895
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
15896
15896
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
15897
15897
|
Tool calls that would exceed it are denied.
|
|
@@ -16005,10 +16005,10 @@ Examples:
|
|
|
16005
16005
|
"Refresh completed tool receipts; may repeat billed provider calls"
|
|
16006
16006
|
).option(
|
|
16007
16007
|
"--max-concurrent-external-calls <count>",
|
|
16008
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16008
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkN4M6CO5Hjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkN4M6CO5Hjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16009
16009
|
).option(
|
|
16010
16010
|
"--max-concurrent-rows <count>",
|
|
16011
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16011
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkN4M6CO5Hjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16012
16012
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the play page in a browser after the run starts").option(
|
|
16013
16013
|
"--debug-map-latency",
|
|
16014
16014
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16053,14 +16053,14 @@ JSON field selection:
|
|
|
16053
16053
|
passthroughArgs.shift();
|
|
16054
16054
|
}
|
|
16055
16055
|
const exitCode = await handlePlayRun(
|
|
16056
|
-
|
|
16056
|
+
_chunkN4M6CO5Hjs.resolvePlayRunCliOptions.call(void 0,
|
|
16057
16057
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16058
16058
|
options,
|
|
16059
16059
|
passthroughArgs,
|
|
16060
|
-
|
|
16060
|
+
_chunkW4HIOBQQjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16061
16061
|
)
|
|
16062
16062
|
);
|
|
16063
|
-
|
|
16063
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
16064
16064
|
phase: "cli.play_command_exit",
|
|
16065
16065
|
exitCode
|
|
16066
16066
|
});
|
|
@@ -16109,9 +16109,9 @@ Examples:
|
|
|
16109
16109
|
const limit = Number(options.historyLimit);
|
|
16110
16110
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16111
16111
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16112
|
-
const client = new (0,
|
|
16112
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
16113
16113
|
if (options.binding) {
|
|
16114
|
-
|
|
16114
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0,
|
|
16115
16115
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16116
16116
|
);
|
|
16117
16117
|
return;
|
|
@@ -16119,7 +16119,7 @@ Examples:
|
|
|
16119
16119
|
const result = await client.listPlayTriggerInventory({
|
|
16120
16120
|
cursor: options.cursor
|
|
16121
16121
|
});
|
|
16122
|
-
|
|
16122
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, {
|
|
16123
16123
|
...result,
|
|
16124
16124
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16125
16125
|
});
|
|
@@ -16178,7 +16178,7 @@ Examples:
|
|
|
16178
16178
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16179
16179
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16180
16180
|
}
|
|
16181
|
-
const result = await new (0,
|
|
16181
|
+
const result = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().getPlaysActivity({
|
|
16182
16182
|
timeZone: options.timeZone,
|
|
16183
16183
|
days,
|
|
16184
16184
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16192,7 +16192,7 @@ Examples:
|
|
|
16192
16192
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16193
16193
|
);
|
|
16194
16194
|
}
|
|
16195
|
-
|
|
16195
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
16196
16196
|
{ ...result },
|
|
16197
16197
|
{
|
|
16198
16198
|
json: Boolean(options.json),
|
|
@@ -16221,7 +16221,7 @@ Examples:
|
|
|
16221
16221
|
false
|
|
16222
16222
|
);
|
|
16223
16223
|
});
|
|
16224
|
-
|
|
16224
|
+
_chunkVKBLXJCKjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16225
16225
|
play,
|
|
16226
16226
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16227
16227
|
);
|
|
@@ -16262,9 +16262,9 @@ Examples:
|
|
|
16262
16262
|
"--json [fields]",
|
|
16263
16263
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16264
16264
|
);
|
|
16265
|
-
|
|
16265
|
+
_chunkJ5VDE42Gjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16266
16266
|
async (target, options) => {
|
|
16267
|
-
const ownView = () => handlePlayDescribe(
|
|
16267
|
+
const ownView = () => handlePlayDescribe(_chunkLXYDN5FEjs.describeArgs.call(void 0, target, options));
|
|
16268
16268
|
const [flagText] = [options.json].filter(
|
|
16269
16269
|
(value) => typeof value === "string"
|
|
16270
16270
|
);
|
|
@@ -16275,7 +16275,7 @@ Examples:
|
|
|
16275
16275
|
process.exitCode = await ownView();
|
|
16276
16276
|
return;
|
|
16277
16277
|
}
|
|
16278
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16278
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-THHHNUEA.js")));
|
|
16279
16279
|
process.exitCode = await describeAnything(
|
|
16280
16280
|
name,
|
|
16281
16281
|
{
|
|
@@ -16393,7 +16393,7 @@ Examples:
|
|
|
16393
16393
|
deepline plays deployments <deployment-id>
|
|
16394
16394
|
`
|
|
16395
16395
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16396
|
-
async (id, options) => id ?
|
|
16396
|
+
async (id, options) => id ? _chunkCK2Q6AWRjs.handleDeploymentGet.call(void 0, id, options) : _chunkCK2Q6AWRjs.handleDeploymentsList.call(void 0, options)
|
|
16397
16397
|
);
|
|
16398
16398
|
addPublishHelp(
|
|
16399
16399
|
play.command("publish <target>").description(
|
|
@@ -16528,14 +16528,14 @@ Examples:
|
|
|
16528
16528
|
const limit = Number(options.limit);
|
|
16529
16529
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16530
16530
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16531
|
-
const result = await new (0,
|
|
16531
|
+
const result = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().runs.rowHistory({
|
|
16532
16532
|
playName: options.play,
|
|
16533
16533
|
runId,
|
|
16534
16534
|
tableNamespace: options.dataset,
|
|
16535
16535
|
limit,
|
|
16536
16536
|
cursor: options.cursor
|
|
16537
16537
|
});
|
|
16538
|
-
|
|
16538
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, {
|
|
16539
16539
|
...result,
|
|
16540
16540
|
...result.nextCursor ? {
|
|
16541
16541
|
next: `deepline runs rows-history ${_chunkAID3OYVJjs.shellQuote.call(void 0, runId)} --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkAID3OYVJjs.shellQuote.call(void 0, result.nextCursor)} --json`
|
|
@@ -16609,7 +16609,7 @@ Examples:
|
|
|
16609
16609
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16610
16610
|
).action(async (runId, options) => {
|
|
16611
16611
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16612
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16612
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-PDBEAI22.js")));
|
|
16613
16613
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16614
16614
|
receiptJson: options.json !== void 0
|
|
16615
16615
|
});
|
|
@@ -16617,7 +16617,7 @@ Examples:
|
|
|
16617
16617
|
}
|
|
16618
16618
|
process.exitCode = await handleRunGet([
|
|
16619
16619
|
runId,
|
|
16620
|
-
...
|
|
16620
|
+
..._chunkLXYDN5FEjs.jsonFieldArgs.call(void 0, options.json),
|
|
16621
16621
|
...options.webUrl ? ["--web-url"] : [],
|
|
16622
16622
|
...options.full ? ["--full"] : [],
|
|
16623
16623
|
...options.input ? ["--input"] : [],
|
|
@@ -16907,7 +16907,7 @@ Examples:
|
|
|
16907
16907
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
16908
16908
|
...options.wait ? ["--wait"] : [],
|
|
16909
16909
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
16910
|
-
...
|
|
16910
|
+
..._chunkLXYDN5FEjs.jsonFieldArgs.call(void 0, options.json)
|
|
16911
16911
|
]);
|
|
16912
16912
|
});
|
|
16913
16913
|
const share = play.command("share").description(
|
|
@@ -17073,10 +17073,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17073
17073
|
return 2;
|
|
17074
17074
|
}
|
|
17075
17075
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17076
|
-
const status = await new (0,
|
|
17076
|
+
const status = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().getSharePage(name);
|
|
17077
17077
|
const outputStatus = shareStatusForOutput(status);
|
|
17078
|
-
if (
|
|
17079
|
-
|
|
17078
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17079
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, outputStatus);
|
|
17080
17080
|
return 0;
|
|
17081
17081
|
}
|
|
17082
17082
|
if (!outputStatus.share) {
|
|
@@ -17115,7 +17115,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17115
17115
|
return 2;
|
|
17116
17116
|
}
|
|
17117
17117
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17118
|
-
const client = new (0,
|
|
17118
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
17119
17119
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17120
17120
|
let resolvedVersion;
|
|
17121
17121
|
if (!revisionId) {
|
|
@@ -17146,8 +17146,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17146
17146
|
);
|
|
17147
17147
|
if (!hasCompleted) {
|
|
17148
17148
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17149
|
-
if (
|
|
17150
|
-
|
|
17149
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17150
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, {
|
|
17151
17151
|
ok: false,
|
|
17152
17152
|
code: "NO_SUCCESSFUL_RUN",
|
|
17153
17153
|
message,
|
|
@@ -17171,8 +17171,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17171
17171
|
};
|
|
17172
17172
|
if (args.includes("--dry-run")) {
|
|
17173
17173
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17174
|
-
if (
|
|
17175
|
-
|
|
17174
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17175
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, plan);
|
|
17176
17176
|
} else {
|
|
17177
17177
|
console.log(
|
|
17178
17178
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17182,8 +17182,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17182
17182
|
}
|
|
17183
17183
|
const status = await client.publishSharePage(name, request);
|
|
17184
17184
|
const outputStatus = shareStatusForOutput(status);
|
|
17185
|
-
if (
|
|
17186
|
-
|
|
17185
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17186
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, outputStatus);
|
|
17187
17187
|
return 0;
|
|
17188
17188
|
}
|
|
17189
17189
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17214,9 +17214,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17214
17214
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17215
17215
|
...seoIndexing ? { seoIndexing } : {}
|
|
17216
17216
|
};
|
|
17217
|
-
const status = await new (0,
|
|
17218
|
-
if (
|
|
17219
|
-
|
|
17217
|
+
const status = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().updateSharePage(name, request);
|
|
17218
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17219
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, status);
|
|
17220
17220
|
return 0;
|
|
17221
17221
|
}
|
|
17222
17222
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17231,7 +17231,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17231
17231
|
return 2;
|
|
17232
17232
|
}
|
|
17233
17233
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17234
|
-
const client = new (0,
|
|
17234
|
+
const client = new (0, _chunkEMVWC5LPjs.DeeplineClient)();
|
|
17235
17235
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17236
17236
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17237
17237
|
if (!revisionId && versionFlag) {
|
|
@@ -17248,8 +17248,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17248
17248
|
revisionId ? { revisionId } : {}
|
|
17249
17249
|
);
|
|
17250
17250
|
const outputStatus = shareStatusForOutput(status);
|
|
17251
|
-
if (
|
|
17252
|
-
|
|
17251
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17252
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, outputStatus);
|
|
17253
17253
|
return 0;
|
|
17254
17254
|
}
|
|
17255
17255
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17274,9 +17274,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17274
17274
|
return 2;
|
|
17275
17275
|
}
|
|
17276
17276
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17277
|
-
const status = await new (0,
|
|
17278
|
-
if (
|
|
17279
|
-
|
|
17277
|
+
const status = await new (0, _chunkEMVWC5LPjs.DeeplineClient)().unpublishSharePage(name);
|
|
17278
|
+
if (_chunkLXYDN5FEjs.argsWantJson.call(void 0, args)) {
|
|
17279
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, status);
|
|
17280
17280
|
return 0;
|
|
17281
17281
|
}
|
|
17282
17282
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17351,4 +17351,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17351
17351
|
|
|
17352
17352
|
|
|
17353
17353
|
|
|
17354
|
-
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag =
|
|
17354
|
+
exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.buildPlayCompletionTextLines = buildPlayCompletionTextLines; exports.buildRunActivityTextLines = buildRunActivityTextLines; exports.buildRunLaunch = buildRunLaunch; exports.buildRunLogsText = buildRunLogsText; exports.buildRunPackageTextLines = buildRunPackageTextLines; exports.buildStopAllDryRunTextLines = buildStopAllDryRunTextLines; exports.clampJsonPreviewText = clampJsonPreviewText; exports.compactPlayStatus = compactPlayStatus; exports.csvColumnLines = csvColumnLines; exports.describeSleepUntil = describeSleepUntil; exports.exportPlayStatusRows = exportPlayStatusRows; exports.formatPlaySandboxRuntimeWarning = formatPlaySandboxRuntimeWarning; exports.formatStepLabelFromNodeId = formatStepLabelFromNodeId; exports.getFinalStatusFromLiveEvent = getFinalStatusFromLiveEvent; exports.getProgressLinesFromLiveEvent = getProgressLinesFromLiveEvent; exports.getRunningHeartbeatLine = getRunningHeartbeatLine; exports.getStepTransitionLineFromLiveEvent = getStepTransitionLineFromLiveEvent; exports.handlePlayCheck = handlePlayCheck; exports.handlePlayCost = handlePlayCost; exports.handlePlayDelete = handlePlayDelete; exports.handlePlayDescribe = handlePlayDescribe; exports.handlePlayGet = handlePlayGet; exports.handlePlayGrep = handlePlayGrep; exports.handlePlayList = handlePlayList; exports.handlePlayPin = handlePlayPin; exports.handlePlayPublish = handlePlayPublish; exports.handlePlayRestore = handlePlayRestore; exports.handlePlayRun = handlePlayRun; exports.handlePlaySave = handlePlaySave; exports.handlePlaySharePublish = handlePlaySharePublish; exports.handlePlayShareRegenerate = handlePlayShareRegenerate; exports.handlePlayShareStatus = handlePlayShareStatus; exports.handlePlayShareUnpublish = handlePlayShareUnpublish; exports.handlePlayShareUpdate = handlePlayShareUpdate; exports.handlePlayVersions = handlePlayVersions; exports.handleRunEventSearch = handleRunEventSearch; exports.handleRunExport = handleRunExport; exports.handleRunGet = handleRunGet; exports.handleRunLifecycleStatus = handleRunLifecycleStatus; exports.handleRunLogs = handleRunLogs; exports.handleRunStop = handleRunStop; exports.handleRunStopAll = handleRunStopAll; exports.handleRunTail = handleRunTail; exports.handleRunsList = handleRunsList; exports.handleRunsRerun = handleRunsRerun; exports.liveMaxCreditsPerRun = liveMaxCreditsPerRun; exports.loadPlayBundler = loadPlayBundler; exports.parsePlayPublishOptions = parsePlayPublishOptions; exports.parsePlayRunHeaderFlag = _chunkN4M6CO5Hjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkN4M6CO5Hjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolveRunStopState = resolveRunStopState; exports.selectRunLogTailPage = selectRunLogTailPage; exports.shouldPrintPlayProgressLine = shouldPrintPlayProgressLine; exports.startAndWaitForPlayCompletion = startAndWaitForPlayCompletion; exports.startAndWaitForPlayCompletionByStream = startAndWaitForPlayCompletionByStream; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
|