deepline 0.3.475 → 0.3.477
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/play.ts +2 -2
- package/dist/bundling-sources/sdk/src/release.ts +3 -3
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +19 -6
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +4 -4
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +33 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +90 -1
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-run-recovery-policy.ts +21 -4
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-compute-usage.ts +6 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +8 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +167 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +104 -6
- package/dist/bundling-sources/shared_libs/play-runtime/worker-api-types.ts +42 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
- package/dist/cli/auth-QITP34OX.js +41 -0
- package/dist/cli/{auth-CFDYJ7FZ.mjs → auth-XVXRRWIQ.mjs} +5 -5
- package/dist/cli/{billing-XLIL3FLK.js → billing-2H7GFJDT.js} +79 -79
- package/dist/cli/{billing-PEXWWLRT.mjs → billing-EOPUJ4JI.mjs} +6 -6
- package/dist/cli/{chunk-TLPW2SHS.js → chunk-23EEVP5W.js} +6 -6
- package/dist/cli/{chunk-ZQYBKDPA.js → chunk-255O6APS.js} +2 -2
- package/dist/cli/{chunk-D6SXN34W.mjs → chunk-2GZFIWSA.mjs} +4 -4
- package/dist/cli/{chunk-M7K5BCWP.js → chunk-2QT6KN54.js} +10 -10
- package/dist/cli/{chunk-MUDOASYL.mjs → chunk-2YNLW43I.mjs} +2 -2
- package/dist/cli/{chunk-BSK2TGB4.js → chunk-347EE4YE.js} +8 -8
- package/dist/cli/{chunk-V4ILQ2DS.mjs → chunk-3A7TDUZV.mjs} +1 -1
- package/dist/cli/{chunk-G4SGYWKV.js → chunk-3UKKM6OS.js} +6 -6
- package/dist/cli/{chunk-NBVYS6VG.js → chunk-3W6E3WVU.js} +9 -9
- package/dist/cli/{chunk-F4FNMXI3.js → chunk-4RAENEAX.js} +53 -53
- package/dist/cli/{chunk-42F6LTBJ.mjs → chunk-6IJJCRE5.mjs} +3 -3
- package/dist/cli/{chunk-CKSRTD45.js → chunk-6KKDIISC.js} +3 -3
- package/dist/cli/{chunk-7SWRXZ4A.js → chunk-75NLWBYQ.js} +93 -93
- package/dist/cli/{chunk-KTWXY73Q.js → chunk-7CILZKLE.js} +5 -5
- package/dist/cli/{chunk-B7NJ5JQ2.js → chunk-ACDXGOXE.js} +4 -4
- package/dist/cli/{chunk-FC4C7MZM.mjs → chunk-C2AN2HTB.mjs} +4 -4
- package/dist/cli/{chunk-EA45HSEC.mjs → chunk-C2V2HQDW.mjs} +2 -2
- package/dist/cli/{chunk-YMS7VYFA.mjs → chunk-C46DWB56.mjs} +1 -1
- package/dist/cli/{chunk-3MQJJ6YX.js → chunk-CH4VMDB5.js} +51 -51
- package/dist/cli/{chunk-7U3L2S7X.mjs → chunk-DFKHXZQ7.mjs} +10 -10
- package/dist/cli/{chunk-VBGPRRJ6.js → chunk-DMWHEYZM.js} +2 -2
- package/dist/cli/{chunk-3WVA7E7O.mjs → chunk-DS3DZUES.mjs} +2 -2
- package/dist/cli/{chunk-Z5VSBCFV.js → chunk-E2CUSH56.js} +16 -16
- package/dist/cli/{chunk-AD7KL6AI.mjs → chunk-ISEUOYCB.mjs} +97 -12
- package/dist/cli/{chunk-VFP3MFLD.mjs → chunk-JS4UO6G4.mjs} +1 -1
- package/dist/cli/{chunk-HMHH7JQD.mjs → chunk-KMXBZIKO.mjs} +2 -2
- package/dist/cli/{chunk-M4QO3GRD.js → chunk-KWQNNPMH.js} +3 -3
- package/dist/cli/{chunk-3QSFSHCJ.mjs → chunk-LJYTYNQZ.mjs} +1 -1
- package/dist/cli/{chunk-TZRTT7EI.js → chunk-LXKGZKTL.js} +26 -26
- package/dist/cli/{chunk-U3F63UWD.js → chunk-M2UL4ZS5.js} +7 -7
- package/dist/cli/{chunk-DKR7QPEO.js → chunk-MZSLFWOT.js} +1 -1
- package/dist/cli/{chunk-BLW2K6YH.js → chunk-NC52JG66.js} +3 -3
- package/dist/cli/{chunk-HALAYT3Y.mjs → chunk-NJMYX2TP.mjs} +3 -3
- package/dist/cli/{chunk-NHQP4UPJ.mjs → chunk-NO7ZC2GV.mjs} +5 -5
- package/dist/cli/{chunk-YAAQNDP6.mjs → chunk-PQQNMMWM.mjs} +3 -3
- package/dist/cli/{chunk-BVAYLXMH.mjs → chunk-QODW5ILA.mjs} +2 -2
- package/dist/cli/{chunk-QKMWQTMI.js → chunk-R5FNCFEK.js} +3 -3
- package/dist/cli/{chunk-7XTBEYLS.js → chunk-RGNMMDSJ.js} +131 -46
- package/dist/cli/{chunk-6PRYHABU.mjs → chunk-RHIFH3GD.mjs} +1 -1
- package/dist/cli/{chunk-4QHAP3MR.mjs → chunk-RLCAECZH.mjs} +5 -5
- package/dist/cli/{chunk-DIMKSDF6.mjs → chunk-SG2SZQ4K.mjs} +2 -2
- package/dist/cli/{chunk-VTCXSICG.mjs → chunk-SVU2VR6Q.mjs} +2 -2
- package/dist/cli/{chunk-D3Q4FUFS.js → chunk-THMGJOR4.js} +8 -8
- package/dist/cli/{chunk-4QHQ3WYW.js → chunk-UBNS6GSV.js} +21 -21
- package/dist/cli/{chunk-DUGZKPRK.mjs → chunk-UYA7LJGC.mjs} +2 -2
- package/dist/cli/{chunk-5QS4T4KR.js → chunk-WFVEMDQL.js} +2 -2
- package/dist/cli/{chunk-M27SSAQ7.mjs → chunk-WRHLAAGN.mjs} +1 -1
- package/dist/cli/{chunk-VD3E3QMI.mjs → chunk-XQLYPHYW.mjs} +1 -1
- package/dist/cli/{chunk-NGOKBSBH.mjs → chunk-YZA5UJXM.mjs} +1 -1
- package/dist/cli/{chunk-ZANUM4XV.js → chunk-ZDPL5AIK.js} +5 -5
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-4YHSYV2C.js → csv-ECB7TYR2.js} +13 -13
- package/dist/cli/{csv-WC7ILC7P.mjs → csv-IDRPTSSC.mjs} +4 -4
- package/dist/cli/{db-I5PV6NTC.mjs → db-FOBZD44N.mjs} +6 -6
- package/dist/cli/{db-APZNM2GI.js → db-S74XZZ77.js} +27 -27
- package/dist/cli/{describe-XH5F3X5W.mjs → describe-KMTPPI2J.mjs} +17 -17
- package/dist/cli/describe-PI7HCT7K.js +48 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-PIY4XM7T.mjs → executions-4JAIVE2E.mjs} +6 -6
- package/dist/cli/{executions-VIXFKZYU.js → executions-ZE3JMNA4.js} +8 -8
- package/dist/cli/{feedback-IGDHBWGT.mjs → feedback-EUX5PDBA.mjs} +4 -4
- package/dist/cli/{feedback-WCLIFQTR.js → feedback-W6VA47A3.js} +8 -8
- package/dist/cli/git-NDOGCQZY.js +25 -0
- package/dist/cli/{git-FRICPPTA.mjs → git-UOVG4PLH.mjs} +5 -5
- package/dist/cli/index.js +139 -139
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-DSFOPYDY.js → legacy-noops-3H35EH5Y.js} +8 -8
- package/dist/cli/{legacy-noops-ROAXEG6D.mjs → legacy-noops-ZBWUNFWV.mjs} +5 -5
- package/dist/cli/{monitors-FZ5PRLW6.mjs → monitors-AYSGSUAK.mjs} +7 -7
- package/dist/cli/{monitors-KUCYQLU5.js → monitors-PI3KPLR2.js} +91 -91
- package/dist/cli/{org-DRNND5XU.mjs → org-2BIG7U4V.mjs} +6 -6
- package/dist/cli/{org-SRHMWKQR.js → org-MVS3Y6BK.js} +72 -72
- package/dist/cli/{pages-XNGA356T.mjs → pages-4TRRL24G.mjs} +6 -6
- package/dist/cli/{pages-TEJQIHTU.js → pages-VB6FOVDE.js} +17 -17
- package/dist/cli/{play-GCGFQSFP.js → play-BLT6IT2O.js} +340 -323
- package/dist/cli/{play-NE45ROIZ.mjs → play-JR3VUOZM.mjs} +37 -20
- package/dist/cli/{providers-57TJOSMV.mjs → providers-547DPK4S.mjs} +6 -6
- package/dist/cli/{providers-VHMUR63R.js → providers-BBXIAGW4.js} +9 -9
- package/dist/cli/{quickstart-K3SH4NXP.mjs → quickstart-NTLXD7HS.mjs} +4 -4
- package/dist/cli/{quickstart-BPXWO4UD.js → quickstart-RNPI5B6J.js} +6 -6
- package/dist/cli/{run-553AAXDU.js → run-BCCEXBOG.js} +36 -36
- package/dist/cli/{run-ZRWJUEN2.mjs → run-QZ4SFECD.mjs} +22 -22
- package/dist/cli/{search-BW6XRS4I.mjs → search-PYNELH4C.mjs} +7 -7
- package/dist/cli/search-YHEICYQL.js +32 -0
- package/dist/cli/{secrets-OYYCFGZE.mjs → secrets-O5WGREQ7.mjs} +6 -6
- package/dist/cli/{secrets-AMYQYUL5.js → secrets-VD35LMYJ.js} +15 -15
- package/dist/cli/{sessions-O4SVVOMO.mjs → sessions-2TL6Z5J5.mjs} +5 -5
- package/dist/cli/{sessions-RYCJUMJ2.js → sessions-NGGIBYXF.js} +6 -6
- package/dist/cli/{settings-QK7DHDU7.mjs → settings-6KM74AJT.mjs} +11 -11
- package/dist/cli/{settings-7R5FQKII.js → settings-ERFNZRHO.js} +78 -78
- package/dist/cli/{setup-OTQDQHDN.js → setup-6X7EJ6RG.js} +44 -44
- package/dist/cli/{setup-VDAAVCKK.mjs → setup-Y3BN6XRS.mjs} +9 -9
- package/dist/cli/skills-F7MPYC4P.js +33 -0
- package/dist/cli/{skills-HRK5O5JO.mjs → skills-OUBQASHI.mjs} +9 -7
- package/dist/cli/{tools-O7BM62QV.mjs → tools-EELZ5FF5.mjs} +16 -16
- package/dist/cli/tools-MCWDAK53.js +55 -0
- package/dist/cli/update-G5BRJOVT.js +33 -0
- package/dist/cli/{update-UHKHCSTY.mjs → update-TX7SW32Y.mjs} +9 -9
- package/dist/cli/{workflow-7Z5NCTGG.js → workflow-5AI2BJA7.js} +17 -17
- package/dist/cli/{workflow-T2EDR7L4.mjs → workflow-PUNQG7LG.mjs} +7 -7
- package/dist/{client-Bgl0_zXi.d.mts → client-AjmfA5nR.d.mts} +1 -1
- package/dist/{client-_ah6IuhK.d.ts → client-DMyY-QL8.d.ts} +1 -1
- package/dist/{client-core-C-ZF5vh9.d.ts → client-core-C705vFyV.d.ts} +1 -1
- package/dist/{client-core-Bfsedm0_.d.mts → client-core-CpBbvLEX.d.mts} +1 -1
- package/dist/{compiler-manifest-CCOqDGjU.d.mts → compiler-manifest-hqIAukR0.d.mts} +1 -1
- package/dist/{compiler-manifest-CCOqDGjU.d.ts → compiler-manifest-hqIAukR0.d.ts} +1 -1
- package/dist/{errors-Cy3kPnsi.d.ts → errors-CRO2qQ6k.d.ts} +1 -1
- package/dist/{errors-BLccD7tG.d.mts → errors-DIHVetNY.d.mts} +1 -1
- package/dist/{index-D5e4h1-H.d.ts → index-B8DVoeYt.d.ts} +1 -1
- package/dist/{index-4-j44HuT.d.mts → index-DVZ_X4Gb.d.mts} +1 -1
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +9 -9
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +110 -110
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +1 -1
- 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 +3 -3
- package/dist/release.d.ts +3 -3
- 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-7GVCW24N.js +0 -41
- package/dist/cli/describe-OR7FZBCD.js +0 -48
- package/dist/cli/git-CKN2F32Y.js +0 -25
- package/dist/cli/search-WF26AUDJ.js +0 -32
- package/dist/cli/skills-VNLMEOXW.js +0 -31
- package/dist/cli/tools-C3MUHL7G.js +0 -55
- package/dist/cli/update-TCKTU6QJ.js +0 -33
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk3W6E3WVUjs = require('./chunk-3W6E3WVU.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -17,14 +17,14 @@ var _chunkNBVYS6VGjs = require('./chunk-NBVYS6VG.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkR5FNCFEKjs = require('./chunk-R5FNCFEK.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkTHMGJOR4js = require('./chunk-THMGJOR4.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkLXKGZKTLjs = require('./chunk-LXKGZKTL.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
|
|
@@ -40,7 +40,7 @@ require('./chunk-ZM2YPJQJ.js');
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
|
-
var
|
|
43
|
+
var _chunkMZSLFWOTjs = require('./chunk-MZSLFWOT.js');
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
@@ -52,10 +52,10 @@ var _chunkA6QCMBGLjs = require('./chunk-A6QCMBGL.js');
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
var
|
|
55
|
+
var _chunkZDPL5AIKjs = require('./chunk-ZDPL5AIK.js');
|
|
56
56
|
|
|
57
57
|
|
|
58
|
-
var
|
|
58
|
+
var _chunk7CILZKLEjs = require('./chunk-7CILZKLE.js');
|
|
59
59
|
require('./chunk-VKKVSFRD.js');
|
|
60
60
|
|
|
61
61
|
|
|
@@ -69,7 +69,7 @@ require('./chunk-VKKVSFRD.js');
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
var
|
|
72
|
+
var _chunk3UKKM6OSjs = require('./chunk-3UKKM6OS.js');
|
|
73
73
|
require('./chunk-E4CABWXL.js');
|
|
74
74
|
|
|
75
75
|
|
|
@@ -89,18 +89,18 @@ require('./chunk-XDVT3GOM.js');
|
|
|
89
89
|
|
|
90
90
|
|
|
91
91
|
|
|
92
|
-
var
|
|
92
|
+
var _chunk23EEVP5Wjs = require('./chunk-23EEVP5W.js');
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
|
-
var
|
|
99
|
-
require('./chunk-
|
|
98
|
+
var _chunkDMWHEYZMjs = require('./chunk-DMWHEYZM.js');
|
|
99
|
+
require('./chunk-4RAENEAX.js');
|
|
100
100
|
|
|
101
101
|
|
|
102
102
|
|
|
103
|
-
var
|
|
103
|
+
var _chunkKWQNNPMHjs = require('./chunk-KWQNNPMH.js');
|
|
104
104
|
|
|
105
105
|
|
|
106
106
|
|
|
@@ -114,17 +114,17 @@ var _chunkM4QO3GRDjs = require('./chunk-M4QO3GRD.js');
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
|
|
117
|
-
var
|
|
118
|
-
require('./chunk-
|
|
117
|
+
var _chunkM2UL4ZS5js = require('./chunk-M2UL4ZS5.js');
|
|
118
|
+
require('./chunk-NC52JG66.js');
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
var
|
|
121
|
+
var _chunkACDXGOXEjs = require('./chunk-ACDXGOXE.js');
|
|
122
122
|
require('./chunk-ALJJRZNJ.js');
|
|
123
123
|
require('./chunk-XNYIZMNQ.js');
|
|
124
124
|
|
|
125
125
|
|
|
126
126
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
127
|
-
require('./chunk-
|
|
127
|
+
require('./chunk-6KKDIISC.js');
|
|
128
128
|
require('./chunk-OG64RBAC.js');
|
|
129
129
|
|
|
130
130
|
|
|
@@ -2106,7 +2106,7 @@ function resolveField(key, command) {
|
|
|
2106
2106
|
function printSettings(result, json, name) {
|
|
2107
2107
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2108
2108
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2109
|
-
|
|
2109
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
2110
2110
|
{
|
|
2111
2111
|
...result,
|
|
2112
2112
|
settings: Object.fromEntries(
|
|
@@ -2150,7 +2150,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2150
2150
|
valueSyntax: field.cli.valueSyntax,
|
|
2151
2151
|
examples: field.cli.examples
|
|
2152
2152
|
}));
|
|
2153
|
-
|
|
2153
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
2154
2154
|
{
|
|
2155
2155
|
fields: descriptions,
|
|
2156
2156
|
render: {
|
|
@@ -2175,7 +2175,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2175
2175
|
async (options, command) => {
|
|
2176
2176
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2177
2177
|
printSettings(
|
|
2178
|
-
await new (0,
|
|
2178
|
+
await new (0, _chunk7CILZKLEjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2179
2179
|
options.json,
|
|
2180
2180
|
options.name
|
|
2181
2181
|
);
|
|
@@ -2206,7 +2206,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2206
2206
|
);
|
|
2207
2207
|
}
|
|
2208
2208
|
if (options.dryRun) {
|
|
2209
|
-
|
|
2209
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
2210
2210
|
{
|
|
2211
2211
|
dryRun: true,
|
|
2212
2212
|
play,
|
|
@@ -2227,7 +2227,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2227
2227
|
return;
|
|
2228
2228
|
}
|
|
2229
2229
|
printSettings(
|
|
2230
|
-
await new (0,
|
|
2230
|
+
await new (0, _chunk7CILZKLEjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2231
2231
|
options.json
|
|
2232
2232
|
);
|
|
2233
2233
|
};
|
|
@@ -2253,13 +2253,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2253
2253
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2254
2254
|
{ exitCode: 2 }
|
|
2255
2255
|
);
|
|
2256
|
-
const page = await new (0,
|
|
2256
|
+
const page = await new (0, _chunk7CILZKLEjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2257
2257
|
root: options.root,
|
|
2258
2258
|
limit,
|
|
2259
2259
|
cursor: options.cursor
|
|
2260
2260
|
});
|
|
2261
2261
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2262
|
-
|
|
2262
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
2263
2263
|
{
|
|
2264
2264
|
...page,
|
|
2265
2265
|
nextCommand,
|
|
@@ -2310,7 +2310,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2310
2310
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2311
2311
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2312
2312
|
};
|
|
2313
|
-
const client = new (0,
|
|
2313
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
2314
2314
|
const paths = [];
|
|
2315
2315
|
let cursor;
|
|
2316
2316
|
do {
|
|
@@ -2372,7 +2372,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2372
2372
|
moved.push(move.playName);
|
|
2373
2373
|
}
|
|
2374
2374
|
}
|
|
2375
|
-
|
|
2375
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
2376
2376
|
{
|
|
2377
2377
|
dryRun: Boolean(options.dryRun),
|
|
2378
2378
|
from: options.from,
|
|
@@ -2500,7 +2500,7 @@ function triggerLines(view) {
|
|
|
2500
2500
|
return lines;
|
|
2501
2501
|
}
|
|
2502
2502
|
function printView(view, json) {
|
|
2503
|
-
|
|
2503
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
2504
2504
|
{
|
|
2505
2505
|
...view,
|
|
2506
2506
|
render: {
|
|
@@ -2513,7 +2513,7 @@ function printView(view, json) {
|
|
|
2513
2513
|
);
|
|
2514
2514
|
}
|
|
2515
2515
|
function printResult(result, json) {
|
|
2516
|
-
|
|
2516
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
2517
2517
|
{
|
|
2518
2518
|
...result,
|
|
2519
2519
|
render: {
|
|
@@ -2543,7 +2543,7 @@ async function mutate(command, options, build) {
|
|
|
2543
2543
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2544
2544
|
}
|
|
2545
2545
|
if (options.dryRun) {
|
|
2546
|
-
|
|
2546
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
2547
2547
|
{
|
|
2548
2548
|
dryRun: true,
|
|
2549
2549
|
play: options.play,
|
|
@@ -2562,7 +2562,7 @@ async function mutate(command, options, build) {
|
|
|
2562
2562
|
return;
|
|
2563
2563
|
}
|
|
2564
2564
|
printResult(
|
|
2565
|
-
await new (0,
|
|
2565
|
+
await new (0, _chunk7CILZKLEjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2566
2566
|
options.json
|
|
2567
2567
|
);
|
|
2568
2568
|
}
|
|
@@ -2595,7 +2595,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2595
2595
|
}).addHelpText("after", help2);
|
|
2596
2596
|
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) => {
|
|
2597
2597
|
printView(
|
|
2598
|
-
await new (0,
|
|
2598
|
+
await new (0, _chunk7CILZKLEjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2599
2599
|
options.json
|
|
2600
2600
|
);
|
|
2601
2601
|
});
|
|
@@ -2639,7 +2639,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2639
2639
|
if (options.auth === void 0) {
|
|
2640
2640
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2641
2641
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2642
|
-
const current = await new (0,
|
|
2642
|
+
const current = await new (0, _chunk7CILZKLEjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2643
2643
|
options.play
|
|
2644
2644
|
);
|
|
2645
2645
|
return {
|
|
@@ -2716,7 +2716,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2716
2716
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2717
2717
|
"runtime.event": "Other event."
|
|
2718
2718
|
};
|
|
2719
|
-
var RUN_LOGS_KIND_HELP =
|
|
2719
|
+
var RUN_LOGS_KIND_HELP = _chunk3UKKM6OSjs.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2720
2720
|
kind,
|
|
2721
2721
|
description: KIND_DESCRIPTIONS[kind]
|
|
2722
2722
|
}));
|
|
@@ -2853,9 +2853,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2853
2853
|
const args = program.args;
|
|
2854
2854
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2855
2855
|
error.exitCode = 2;
|
|
2856
|
-
if (
|
|
2857
|
-
|
|
2858
|
-
Object.assign(new (0,
|
|
2856
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2857
|
+
_chunkM2UL4ZS5js.printJsonError.call(void 0,
|
|
2858
|
+
Object.assign(new (0, _chunk3UKKM6OSjs.RunEventQueryInputError)(error.message), {
|
|
2859
2859
|
exitCode: 2,
|
|
2860
2860
|
retryable: false
|
|
2861
2861
|
})
|
|
@@ -2899,14 +2899,14 @@ function parseQuery(args, resource) {
|
|
|
2899
2899
|
if (VALUE_FLAGS.has(flag)) {
|
|
2900
2900
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2901
2901
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2902
|
-
throw new (0,
|
|
2902
|
+
throw new (0, _chunk3UKKM6OSjs.RunEventQueryInputError)(
|
|
2903
2903
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2904
2904
|
);
|
|
2905
2905
|
}
|
|
2906
2906
|
if (flag === "--sum") sums.push(value);
|
|
2907
2907
|
else {
|
|
2908
2908
|
if (values[flag] !== void 0) {
|
|
2909
|
-
throw new (0,
|
|
2909
|
+
throw new (0, _chunk3UKKM6OSjs.RunEventQueryInputError)(
|
|
2910
2910
|
`${flag} may only be supplied once.`
|
|
2911
2911
|
);
|
|
2912
2912
|
}
|
|
@@ -2920,12 +2920,12 @@ function parseQuery(args, resource) {
|
|
|
2920
2920
|
}
|
|
2921
2921
|
if (arg.startsWith("-")) {
|
|
2922
2922
|
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.";
|
|
2923
|
-
throw new (0,
|
|
2923
|
+
throw new (0, _chunk3UKKM6OSjs.RunEventQueryInputError)(
|
|
2924
2924
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2925
2925
|
);
|
|
2926
2926
|
}
|
|
2927
2927
|
if (runId !== void 0) {
|
|
2928
|
-
throw new (0,
|
|
2928
|
+
throw new (0, _chunk3UKKM6OSjs.RunEventQueryInputError)(
|
|
2929
2929
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2930
2930
|
);
|
|
2931
2931
|
}
|
|
@@ -2933,7 +2933,7 @@ function parseQuery(args, resource) {
|
|
|
2933
2933
|
}
|
|
2934
2934
|
if (switches.has("--fields")) {
|
|
2935
2935
|
if (runId !== void 0) {
|
|
2936
|
-
throw new (0,
|
|
2936
|
+
throw new (0, _chunk3UKKM6OSjs.RunEventQueryInputError)(
|
|
2937
2937
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2938
2938
|
);
|
|
2939
2939
|
}
|
|
@@ -2946,18 +2946,18 @@ function parseQuery(args, resource) {
|
|
|
2946
2946
|
)
|
|
2947
2947
|
];
|
|
2948
2948
|
if (incompatible.length) {
|
|
2949
|
-
throw new (0,
|
|
2949
|
+
throw new (0, _chunk3UKKM6OSjs.RunEventQueryInputError)(
|
|
2950
2950
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2951
2951
|
);
|
|
2952
2952
|
}
|
|
2953
2953
|
}
|
|
2954
2954
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2955
|
-
throw new (0,
|
|
2955
|
+
throw new (0, _chunk3UKKM6OSjs.RunEventQueryInputError)(
|
|
2956
2956
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2957
2957
|
);
|
|
2958
2958
|
}
|
|
2959
2959
|
if (sums.length && switches.has("--count")) {
|
|
2960
|
-
throw new (0,
|
|
2960
|
+
throw new (0, _chunk3UKKM6OSjs.RunEventQueryInputError)(
|
|
2961
2961
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2962
2962
|
);
|
|
2963
2963
|
}
|
|
@@ -2965,7 +2965,7 @@ function parseQuery(args, resource) {
|
|
|
2965
2965
|
if (operation === "count") {
|
|
2966
2966
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2967
2967
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2968
|
-
throw new (0,
|
|
2968
|
+
throw new (0, _chunk3UKKM6OSjs.RunEventQueryInputError)(
|
|
2969
2969
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2970
2970
|
);
|
|
2971
2971
|
}
|
|
@@ -3000,16 +3000,16 @@ function parseQuery(args, resource) {
|
|
|
3000
3000
|
];
|
|
3001
3001
|
}
|
|
3002
3002
|
}
|
|
3003
|
-
const request =
|
|
3003
|
+
const request = _chunk3UKKM6OSjs.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3004
3004
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3005
3005
|
const backend = values["--runtime-backend"];
|
|
3006
3006
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3007
|
-
throw new (0,
|
|
3007
|
+
throw new (0, _chunk3UKKM6OSjs.RunEventQueryInputError)(
|
|
3008
3008
|
"--runtime-backend must be daytona or modal."
|
|
3009
3009
|
);
|
|
3010
3010
|
}
|
|
3011
3011
|
if (backend && !namespace) {
|
|
3012
|
-
throw new (0,
|
|
3012
|
+
throw new (0, _chunk3UKKM6OSjs.RunEventQueryInputError)(
|
|
3013
3013
|
"--runtime-backend requires --runtime-namespace."
|
|
3014
3014
|
);
|
|
3015
3015
|
}
|
|
@@ -3056,12 +3056,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3056
3056
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3057
3057
|
const record3 = failure;
|
|
3058
3058
|
const status = record3.statusCode;
|
|
3059
|
-
const exitCode = error instanceof
|
|
3059
|
+
const exitCode = error instanceof _chunk3UKKM6OSjs.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;
|
|
3060
3060
|
const diagnostic = Object.assign(failure, {
|
|
3061
3061
|
exitCode,
|
|
3062
3062
|
retryable: exitCode === 5
|
|
3063
3063
|
});
|
|
3064
|
-
if (
|
|
3064
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) _chunkM2UL4ZS5js.printJsonError.call(void 0, diagnostic);
|
|
3065
3065
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3066
3066
|
return exitCode;
|
|
3067
3067
|
}
|
|
@@ -3076,7 +3076,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3076
3076
|
...criteria
|
|
3077
3077
|
} = request;
|
|
3078
3078
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3079
|
-
const client = new (0,
|
|
3079
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
3080
3080
|
let result;
|
|
3081
3081
|
if (request.operation === "fields") {
|
|
3082
3082
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3142,13 +3142,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3142
3142
|
lines.push(`Next page: ${nextPage}`);
|
|
3143
3143
|
}
|
|
3144
3144
|
}
|
|
3145
|
-
|
|
3145
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
3146
3146
|
{
|
|
3147
3147
|
...result,
|
|
3148
3148
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3149
3149
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3150
3150
|
},
|
|
3151
|
-
{ json:
|
|
3151
|
+
{ json: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3152
3152
|
` }
|
|
3153
3153
|
);
|
|
3154
3154
|
return 0;
|
|
@@ -4067,7 +4067,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4067
4067
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4068
4068
|
);
|
|
4069
4069
|
}
|
|
4070
|
-
const response = await new (0,
|
|
4070
|
+
const response = await new (0, _chunk7CILZKLEjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4071
4071
|
keys
|
|
4072
4072
|
});
|
|
4073
4073
|
const failed = response.receipts.filter(
|
|
@@ -4079,7 +4079,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4079
4079
|
JSON.stringify(response, null, 2) + "\n",
|
|
4080
4080
|
{ flag: "wx", mode: 384 }
|
|
4081
4081
|
);
|
|
4082
|
-
|
|
4082
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
4083
4083
|
{
|
|
4084
4084
|
runId,
|
|
4085
4085
|
out: options.out,
|
|
@@ -4089,7 +4089,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4089
4089
|
{ json: true }
|
|
4090
4090
|
);
|
|
4091
4091
|
} else {
|
|
4092
|
-
|
|
4092
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4093
4093
|
}
|
|
4094
4094
|
if (failed)
|
|
4095
4095
|
process.exitCode = response.receipts.some(
|
|
@@ -4128,7 +4128,7 @@ includes nextCommand when another page is available.
|
|
|
4128
4128
|
{ exitCode: 2 }
|
|
4129
4129
|
);
|
|
4130
4130
|
}
|
|
4131
|
-
const page = await new (0,
|
|
4131
|
+
const page = await new (0, _chunk7CILZKLEjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4132
4132
|
launchKey: options.launchKey,
|
|
4133
4133
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4134
4134
|
limit
|
|
@@ -4143,7 +4143,7 @@ includes nextCommand when another page is available.
|
|
|
4143
4143
|
"--limit",
|
|
4144
4144
|
String(limit)
|
|
4145
4145
|
].join(" ") : null;
|
|
4146
|
-
|
|
4146
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
4147
4147
|
{
|
|
4148
4148
|
parentRunId,
|
|
4149
4149
|
launchKey: options.launchKey,
|
|
@@ -4179,7 +4179,7 @@ async function handleRunsHistory(options) {
|
|
|
4179
4179
|
throw new Error("--limit must be a positive integer.");
|
|
4180
4180
|
}
|
|
4181
4181
|
}
|
|
4182
|
-
const page = await new (0,
|
|
4182
|
+
const page = await new (0, _chunk7CILZKLEjs.DeeplineClient)().runs.history({
|
|
4183
4183
|
cursor: options.cursor,
|
|
4184
4184
|
orgId: options.org,
|
|
4185
4185
|
search: options.search,
|
|
@@ -4195,7 +4195,7 @@ async function handleRunsHistory(options) {
|
|
|
4195
4195
|
);
|
|
4196
4196
|
}
|
|
4197
4197
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4198
|
-
|
|
4198
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
4199
4199
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4200
4200
|
options.json ? { json: true } : {}
|
|
4201
4201
|
);
|
|
@@ -4247,12 +4247,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4247
4247
|
return 1;
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
4250
|
-
const result = await new (0,
|
|
4250
|
+
const result = await new (0, _chunk7CILZKLEjs.DeeplineClient)().runs.rerun(runId, {
|
|
4251
4251
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4252
4252
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4253
4253
|
});
|
|
4254
|
-
if (
|
|
4255
|
-
|
|
4254
|
+
if (_chunkM2UL4ZS5js.shouldEmitJson.call(void 0, options.json)) {
|
|
4255
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4256
4256
|
} else if (result.rateLimited) {
|
|
4257
4257
|
console.log(`
|
|
4258
4258
|
${result.rateLimited.message}`);
|
|
@@ -5076,13 +5076,13 @@ var RunDataset = class _RunDataset {
|
|
|
5076
5076
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5077
5077
|
_fs.writeFileSync.call(void 0,
|
|
5078
5078
|
absolutePath,
|
|
5079
|
-
`${JSON.stringify(
|
|
5079
|
+
`${JSON.stringify(_chunkR5FNCFEKjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5080
5080
|
`,
|
|
5081
5081
|
"utf-8"
|
|
5082
5082
|
);
|
|
5083
5083
|
return absolutePath;
|
|
5084
5084
|
}
|
|
5085
|
-
return
|
|
5085
|
+
return _chunkR5FNCFEKjs.writeRunDatasetCsv.call(void 0, {
|
|
5086
5086
|
rows: this.rows,
|
|
5087
5087
|
columns: this.#info.columns,
|
|
5088
5088
|
outPath
|
|
@@ -5409,6 +5409,15 @@ function sandboxSizeMetadata(cpu, memoryGiB) {
|
|
|
5409
5409
|
);
|
|
5410
5410
|
return entry ? { sandboxSize: entry[0] } : {};
|
|
5411
5411
|
}
|
|
5412
|
+
function runtimeLimitMetadata(maxBillingDurationSeconds, observedWallTimeSeconds) {
|
|
5413
|
+
if (typeof maxBillingDurationSeconds !== "number" || !Number.isFinite(maxBillingDurationSeconds) || maxBillingDurationSeconds <= 0) {
|
|
5414
|
+
return {};
|
|
5415
|
+
}
|
|
5416
|
+
return {
|
|
5417
|
+
maxBillingDurationSeconds,
|
|
5418
|
+
...typeof observedWallTimeSeconds === "number" && Number.isFinite(observedWallTimeSeconds) ? { observedWallTimeSeconds: Math.max(0, observedWallTimeSeconds) } : {}
|
|
5419
|
+
};
|
|
5420
|
+
}
|
|
5412
5421
|
function resolveDaytonaSandboxComputeItem(input) {
|
|
5413
5422
|
const billableSeconds = Math.max(1, Math.ceil(input.wallTimeSeconds));
|
|
5414
5423
|
const cpu = Math.max(0, input.cpu);
|
|
@@ -5434,7 +5443,11 @@ function resolveDaytonaSandboxComputeItem(input) {
|
|
|
5434
5443
|
diskGiB: Math.max(0, input.diskGiB),
|
|
5435
5444
|
billableDiskGiB,
|
|
5436
5445
|
startedAt: input.startedAt,
|
|
5437
|
-
endedAt: input.endedAt
|
|
5446
|
+
endedAt: input.endedAt,
|
|
5447
|
+
...runtimeLimitMetadata(
|
|
5448
|
+
input.maxBillingDurationSeconds,
|
|
5449
|
+
input.observedWallTimeSeconds
|
|
5450
|
+
)
|
|
5438
5451
|
}
|
|
5439
5452
|
};
|
|
5440
5453
|
}
|
|
@@ -5467,7 +5480,11 @@ function resolveModalSandboxComputeItem(input) {
|
|
|
5467
5480
|
costBasis: "reserved_resources"
|
|
5468
5481
|
},
|
|
5469
5482
|
startedAt: input.startedAt,
|
|
5470
|
-
endedAt: input.endedAt
|
|
5483
|
+
endedAt: input.endedAt,
|
|
5484
|
+
...runtimeLimitMetadata(
|
|
5485
|
+
input.maxBillingDurationSeconds,
|
|
5486
|
+
input.observedWallTimeSeconds
|
|
5487
|
+
)
|
|
5471
5488
|
}
|
|
5472
5489
|
};
|
|
5473
5490
|
}
|
|
@@ -5970,10 +5987,10 @@ function resolveOwnedPlayReferenceName(reference, ownerSlug) {
|
|
|
5970
5987
|
// ../plays/deploy/run-deployment.ts
|
|
5971
5988
|
var RUN_PLAY_METHOD_NAMES = /* @__PURE__ */ new Set(["runPlay", "runPlayAsync"]);
|
|
5972
5989
|
function isRunPlayReceiver(node) {
|
|
5973
|
-
return
|
|
5990
|
+
return _chunkMZSLFWOTjs.isAstNode.call(void 0, node) && node.type === "Identifier" && typeof node.name === "string" && (node.name === "ctx" || node.name.endsWith("Ctx"));
|
|
5974
5991
|
}
|
|
5975
5992
|
function stringLiteralValue(node) {
|
|
5976
|
-
if (!
|
|
5993
|
+
if (!_chunkMZSLFWOTjs.isAstNode.call(void 0, node)) return null;
|
|
5977
5994
|
if (node.type === "Literal" && typeof node.value === "string") {
|
|
5978
5995
|
return node.value;
|
|
5979
5996
|
}
|
|
@@ -5984,12 +6001,12 @@ function stringLiteralValue(node) {
|
|
|
5984
6001
|
return null;
|
|
5985
6002
|
}
|
|
5986
6003
|
async function extractRunPlayStringTargets(sourceCode) {
|
|
5987
|
-
const program =
|
|
6004
|
+
const program = _chunkMZSLFWOTjs.parsePlaySourceForAnalysis.call(void 0, sourceCode);
|
|
5988
6005
|
if (!program) return await _asyncNullishCoalesce(await extractWithCompiler(sourceCode), async () => ( []));
|
|
5989
6006
|
const targets = /* @__PURE__ */ new Set();
|
|
5990
6007
|
const visit = (node) => {
|
|
5991
6008
|
const callee = node.callee;
|
|
5992
|
-
if (node.type === "CallExpression" &&
|
|
6009
|
+
if (node.type === "CallExpression" && _chunkMZSLFWOTjs.isAstNode.call(void 0, callee) && callee.type === "MemberExpression" && callee.computed !== true && _chunkMZSLFWOTjs.isAstNode.call(void 0, callee.property) && RUN_PLAY_METHOD_NAMES.has(String(callee.property.name)) && isRunPlayReceiver(callee.object) && Array.isArray(node.arguments)) {
|
|
5993
6010
|
const playRef = stringLiteralValue(node.arguments[1]);
|
|
5994
6011
|
const ownedName = playRef === null ? null : resolveOwnedPlayReferenceName(playRef);
|
|
5995
6012
|
if (ownedName) targets.add(ownedName);
|
|
@@ -5997,7 +6014,7 @@ async function extractRunPlayStringTargets(sourceCode) {
|
|
|
5997
6014
|
for (const [key, value] of Object.entries(node)) {
|
|
5998
6015
|
if (key === "loc") continue;
|
|
5999
6016
|
for (const child of Array.isArray(value) ? value : [value]) {
|
|
6000
|
-
if (
|
|
6017
|
+
if (_chunkMZSLFWOTjs.isAstNode.call(void 0, child)) visit(child);
|
|
6001
6018
|
}
|
|
6002
6019
|
}
|
|
6003
6020
|
};
|
|
@@ -6863,7 +6880,7 @@ function renderOutcome(outcome) {
|
|
|
6863
6880
|
function printResult2(input) {
|
|
6864
6881
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6865
6882
|
if (failed) process.exitCode = 1;
|
|
6866
|
-
|
|
6883
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
6867
6884
|
{
|
|
6868
6885
|
deployment: { ...input.deployment, status: input.status },
|
|
6869
6886
|
plays: input.outcomes,
|
|
@@ -6888,7 +6905,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6888
6905
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6889
6906
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6890
6907
|
});
|
|
6891
|
-
const { http, config } =
|
|
6908
|
+
const { http, config } = _chunkM2UL4ZS5js.getAuthedHttpClient.call(void 0, );
|
|
6892
6909
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6893
6910
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6894
6911
|
deliveryId,
|
|
@@ -6915,7 +6932,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6915
6932
|
},
|
|
6916
6933
|
{
|
|
6917
6934
|
bundle: bundleDeployPlayFile,
|
|
6918
|
-
fetchImpl:
|
|
6935
|
+
fetchImpl: _chunkACDXGOXEjs.fetchWithDeploymentProtection,
|
|
6919
6936
|
// The plays are already here: "opening" the source is naming it.
|
|
6920
6937
|
openSource: async () => ({
|
|
6921
6938
|
open: async () => ({ repoRoot: root })
|
|
@@ -7041,7 +7058,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
7041
7058
|
// src/cli/renderers/local-play-execution.ts
|
|
7042
7059
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7043
7060
|
if (options.dryRun) {
|
|
7044
|
-
|
|
7061
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7045
7062
|
return;
|
|
7046
7063
|
}
|
|
7047
7064
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7213,7 +7230,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7213
7230
|
const startedAt = Date.now();
|
|
7214
7231
|
try {
|
|
7215
7232
|
const result = run();
|
|
7216
|
-
|
|
7233
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
7217
7234
|
phase,
|
|
7218
7235
|
ms: Date.now() - startedAt,
|
|
7219
7236
|
ok: true,
|
|
@@ -7221,7 +7238,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7221
7238
|
});
|
|
7222
7239
|
return result;
|
|
7223
7240
|
} catch (error) {
|
|
7224
|
-
|
|
7241
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
7225
7242
|
phase,
|
|
7226
7243
|
ms: Date.now() - startedAt,
|
|
7227
7244
|
ok: false,
|
|
@@ -7581,8 +7598,8 @@ async function ensureEditableRemotePlay(client, target) {
|
|
|
7581
7598
|
return detail;
|
|
7582
7599
|
}
|
|
7583
7600
|
function writeInlinePlay(code) {
|
|
7584
|
-
const filePath = _path.resolve.call(void 0,
|
|
7585
|
-
const source =
|
|
7601
|
+
const filePath = _path.resolve.call(void 0, _chunkMZSLFWOTjs.INLINE_PLAY_FILE);
|
|
7602
|
+
const source = _chunkMZSLFWOTjs.inlinePlaySource.call(void 0, code);
|
|
7586
7603
|
try {
|
|
7587
7604
|
_fs.writeFileSync.call(void 0, filePath, source, { flag: "wx" });
|
|
7588
7605
|
} catch (error) {
|
|
@@ -7601,7 +7618,7 @@ function buildMissingDefinePlayError(filePath) {
|
|
|
7601
7618
|
);
|
|
7602
7619
|
}
|
|
7603
7620
|
function extractPlayName(code, filePath) {
|
|
7604
|
-
const definedPlayName =
|
|
7621
|
+
const definedPlayName = _chunkMZSLFWOTjs.extractDefinedPlayName.call(void 0, code, filePath);
|
|
7605
7622
|
if (definedPlayName) {
|
|
7606
7623
|
return definedPlayName;
|
|
7607
7624
|
}
|
|
@@ -7830,7 +7847,7 @@ function unresolvedPackagedFilesMessage(node) {
|
|
|
7830
7847
|
const details = node.unresolvedFileReferences.map((unresolved) => `${unresolved.sourceFragment}: ${unresolved.message}`).join("; ");
|
|
7831
7848
|
return `Failed to package local deepline.csv(...) files in ${node.filePath}: ${details}`;
|
|
7832
7849
|
}
|
|
7833
|
-
async function collectBundledPlayGraph(entryFile, profile = null, entryExportName =
|
|
7850
|
+
async function collectBundledPlayGraph(entryFile, profile = null, entryExportName = _chunkMZSLFWOTjs.PLAY_DEFAULT_EXPORT, options = {}) {
|
|
7834
7851
|
const playBundler = await loadPlayBundler();
|
|
7835
7852
|
const nodes = /* @__PURE__ */ new Map();
|
|
7836
7853
|
const diagnostics = [];
|
|
@@ -7844,7 +7861,7 @@ async function collectBundledPlayGraph(entryFile, profile = null, entryExportNam
|
|
|
7844
7861
|
const bundleResult = await playBundler.bundlePlayFile(absolutePath, {
|
|
7845
7862
|
target: artifactKind,
|
|
7846
7863
|
...options.cache === false ? { cache: false } : {},
|
|
7847
|
-
...absolutePath === rootPath && entryExportName !==
|
|
7864
|
+
...absolutePath === rootPath && entryExportName !== _chunkMZSLFWOTjs.PLAY_DEFAULT_EXPORT ? { exportName: entryExportName } : {}
|
|
7848
7865
|
});
|
|
7849
7866
|
if (bundleResult.success === false) {
|
|
7850
7867
|
diagnostics.push(
|
|
@@ -8008,7 +8025,7 @@ function playStatusErrorText(status) {
|
|
|
8008
8025
|
function isRetryablePendingStartFailure(status) {
|
|
8009
8026
|
if (status.status !== "failed") return false;
|
|
8010
8027
|
if (status.runId && status.runId !== "pending") return false;
|
|
8011
|
-
return
|
|
8028
|
+
return _chunk3UKKM6OSjs.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8012
8029
|
}
|
|
8013
8030
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
8014
8031
|
if (error instanceof _chunkDIAWYWT5js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -8057,13 +8074,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
8057
8074
|
}, _class);
|
|
8058
8075
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8059
8076
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8060
|
-
if (!
|
|
8077
|
+
if (!_chunk3UKKM6OSjs.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8061
8078
|
return false;
|
|
8062
8079
|
}
|
|
8063
|
-
if (
|
|
8080
|
+
if (_chunk3UKKM6OSjs.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8064
8081
|
return true;
|
|
8065
8082
|
}
|
|
8066
|
-
return state.verbose === true &&
|
|
8083
|
+
return state.verbose === true && _chunk3UKKM6OSjs.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8067
8084
|
}
|
|
8068
8085
|
function getEventPayload(event) {
|
|
8069
8086
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8565,7 +8582,7 @@ function resolveRunPlayName(status, runId) {
|
|
|
8565
8582
|
}
|
|
8566
8583
|
function openPlayDashboard(dashboardUrl, open2) {
|
|
8567
8584
|
if (open2 && dashboardUrl) {
|
|
8568
|
-
|
|
8585
|
+
_chunkM2UL4ZS5js.openInBrowser.call(void 0, dashboardUrl);
|
|
8569
8586
|
}
|
|
8570
8587
|
}
|
|
8571
8588
|
function printPlayLogLines(input) {
|
|
@@ -8642,7 +8659,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8642
8659
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8643
8660
|
});
|
|
8644
8661
|
} catch (error) {
|
|
8645
|
-
if (
|
|
8662
|
+
if (_chunk3UKKM6OSjs.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8646
8663
|
return null;
|
|
8647
8664
|
}
|
|
8648
8665
|
throw error;
|
|
@@ -8722,9 +8739,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8722
8739
|
signal: controller.signal,
|
|
8723
8740
|
deferLogs: !input.emitLogs,
|
|
8724
8741
|
omitTerminalLogs: !input.emitLogs,
|
|
8725
|
-
...
|
|
8742
|
+
..._chunkDMWHEYZMjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8726
8743
|
onPoll: (observation) => {
|
|
8727
|
-
|
|
8744
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
8728
8745
|
phase: "play_watch_poll",
|
|
8729
8746
|
workflowId: input.workflowId,
|
|
8730
8747
|
ms: observation.durationMs,
|
|
@@ -8738,7 +8755,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8738
8755
|
full: input.fullJson,
|
|
8739
8756
|
billing: false,
|
|
8740
8757
|
onStatus: async (status) => {
|
|
8741
|
-
|
|
8758
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
8742
8759
|
phase: "play_watch_terminal_status",
|
|
8743
8760
|
workflowId: input.workflowId,
|
|
8744
8761
|
full: input.fullJson === true
|
|
@@ -8808,7 +8825,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8808
8825
|
});
|
|
8809
8826
|
} catch (error) {
|
|
8810
8827
|
if (!(error instanceof _chunkJDMR33HSjs.CliPlayAdmissionUnsupportedError)) throw error;
|
|
8811
|
-
await
|
|
8828
|
+
await _chunk23EEVP5Wjs.checkPlayRunCompatibility.call(void 0,
|
|
8812
8829
|
input.client.baseUrl,
|
|
8813
8830
|
input.maintenancePolicy
|
|
8814
8831
|
);
|
|
@@ -8856,7 +8873,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8856
8873
|
}
|
|
8857
8874
|
openPlayDashboard(dashboardUrl, _nullishCoalesce(input.open, () => ( false)));
|
|
8858
8875
|
input.progress.phase("running");
|
|
8859
|
-
|
|
8876
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
8860
8877
|
phase: "cli.play_start_admitted",
|
|
8861
8878
|
ms: Date.now() - startedAt,
|
|
8862
8879
|
ok: true,
|
|
@@ -8873,7 +8890,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8873
8890
|
startedAt,
|
|
8874
8891
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8875
8892
|
});
|
|
8876
|
-
const initialStatus =
|
|
8893
|
+
const initialStatus = _chunk3UKKM6OSjs.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8877
8894
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8878
8895
|
client: input.client,
|
|
8879
8896
|
status: initialStatus,
|
|
@@ -8881,7 +8898,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8881
8898
|
jsonOutput: input.jsonOutput,
|
|
8882
8899
|
fromDurableStatus: true
|
|
8883
8900
|
});
|
|
8884
|
-
|
|
8901
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
8885
8902
|
phase: "play_watch_terminal_status",
|
|
8886
8903
|
workflowId,
|
|
8887
8904
|
full: true,
|
|
@@ -8936,7 +8953,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8936
8953
|
);
|
|
8937
8954
|
} catch (error) {
|
|
8938
8955
|
if (error instanceof _chunkJDMR33HSjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
8939
|
-
await
|
|
8956
|
+
await _chunk23EEVP5Wjs.checkPlayRunCompatibility.call(void 0,
|
|
8940
8957
|
input.client.baseUrl,
|
|
8941
8958
|
input.maintenancePolicy
|
|
8942
8959
|
);
|
|
@@ -8963,7 +8980,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8963
8980
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
8964
8981
|
);
|
|
8965
8982
|
}
|
|
8966
|
-
|
|
8983
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
8967
8984
|
phase: "cli.play_start_stream_retry",
|
|
8968
8985
|
ms: 0,
|
|
8969
8986
|
ok: true,
|
|
@@ -8984,7 +9001,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8984
9001
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
8985
9002
|
);
|
|
8986
9003
|
}
|
|
8987
|
-
|
|
9004
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
8988
9005
|
phase: "cli.play_start_stream_retry",
|
|
8989
9006
|
ms: 0,
|
|
8990
9007
|
ok: true,
|
|
@@ -9029,7 +9046,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9029
9046
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9030
9047
|
launchConfirmed = true;
|
|
9031
9048
|
await _optionalChain([input, 'access', _317 => _317.onRunAdmitted, 'optionalCall', _318 => _318(runId)]);
|
|
9032
|
-
|
|
9049
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
9033
9050
|
phase: "cli.play_start_admitted",
|
|
9034
9051
|
ms: Date.now() - startedAt,
|
|
9035
9052
|
ok: true,
|
|
@@ -9063,7 +9080,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9063
9080
|
full: input.fullJson
|
|
9064
9081
|
});
|
|
9065
9082
|
} catch (error) {
|
|
9066
|
-
if (
|
|
9083
|
+
if (_chunk3UKKM6OSjs.isTransientPlayRunReadError.call(void 0, error)) {
|
|
9067
9084
|
return null;
|
|
9068
9085
|
}
|
|
9069
9086
|
throw error;
|
|
@@ -9201,7 +9218,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9201
9218
|
};
|
|
9202
9219
|
}
|
|
9203
9220
|
if (!canonicalTerminal) {
|
|
9204
|
-
|
|
9221
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
9205
9222
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9206
9223
|
ms: Date.now() - startedAt,
|
|
9207
9224
|
ok: true,
|
|
@@ -9222,14 +9239,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9222
9239
|
fromDurableStatus
|
|
9223
9240
|
}) : canonicalTerminal;
|
|
9224
9241
|
if (input.fullJson === true) {
|
|
9225
|
-
|
|
9242
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
9226
9243
|
phase: "play_watch_terminal_status",
|
|
9227
9244
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9228
9245
|
full: true,
|
|
9229
9246
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9230
9247
|
});
|
|
9231
9248
|
}
|
|
9232
|
-
|
|
9249
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
9233
9250
|
phase: "cli.play_start_stream_terminal",
|
|
9234
9251
|
ms: Date.now() - startedAt,
|
|
9235
9252
|
ok: true,
|
|
@@ -9249,7 +9266,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9249
9266
|
clearTimeout(timeout);
|
|
9250
9267
|
}
|
|
9251
9268
|
controller.abort();
|
|
9252
|
-
|
|
9269
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
9253
9270
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9254
9271
|
ms: Date.now() - startedAt,
|
|
9255
9272
|
ok: true,
|
|
@@ -9280,7 +9297,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9280
9297
|
if (timedOut) {
|
|
9281
9298
|
const terminal = await fetchKnownTerminalStatus();
|
|
9282
9299
|
if (terminal) {
|
|
9283
|
-
|
|
9300
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
9284
9301
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9285
9302
|
ms: Date.now() - startedAt,
|
|
9286
9303
|
ok: true,
|
|
@@ -9300,7 +9317,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9300
9317
|
lastPhase
|
|
9301
9318
|
});
|
|
9302
9319
|
}
|
|
9303
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9320
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunk3UKKM6OSjs.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9304
9321
|
if (timeout) {
|
|
9305
9322
|
clearTimeout(timeout);
|
|
9306
9323
|
}
|
|
@@ -9311,7 +9328,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9311
9328
|
`
|
|
9312
9329
|
);
|
|
9313
9330
|
}
|
|
9314
|
-
|
|
9331
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
9315
9332
|
phase: "cli.play_start_stream_reconnect",
|
|
9316
9333
|
ms: Date.now() - startedAt,
|
|
9317
9334
|
ok: true,
|
|
@@ -9338,7 +9355,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9338
9355
|
});
|
|
9339
9356
|
}
|
|
9340
9357
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9341
|
-
|
|
9358
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
9342
9359
|
phase: "cli.play_start_stream_transient_failure",
|
|
9343
9360
|
ms: Date.now() - startedAt,
|
|
9344
9361
|
ok: false,
|
|
@@ -9366,7 +9383,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9366
9383
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9367
9384
|
);
|
|
9368
9385
|
}
|
|
9369
|
-
|
|
9386
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
9370
9387
|
phase: "cli.play_start_stream_reconnect",
|
|
9371
9388
|
ms: Date.now() - startedAt,
|
|
9372
9389
|
ok: true,
|
|
@@ -9446,7 +9463,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9446
9463
|
"logs"
|
|
9447
9464
|
]);
|
|
9448
9465
|
function formatPlayLogLine(rawLine, state) {
|
|
9449
|
-
const classified =
|
|
9466
|
+
const classified = _chunk3UKKM6OSjs.classifyLogLine.call(void 0, rawLine);
|
|
9450
9467
|
const line = classified.line;
|
|
9451
9468
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9452
9469
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _323 => _323[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9461,14 +9478,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9461
9478
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9462
9479
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9463
9480
|
if (providerWait && !state.verbose) {
|
|
9464
|
-
return
|
|
9481
|
+
return _chunk3UKKM6OSjs.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9465
9482
|
}
|
|
9466
9483
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9467
9484
|
if (mapProgress && !state.verbose) {
|
|
9468
|
-
return
|
|
9485
|
+
return _chunk3UKKM6OSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9469
9486
|
}
|
|
9470
9487
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9471
|
-
if (!
|
|
9488
|
+
if (!_chunk3UKKM6OSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9472
9489
|
return null;
|
|
9473
9490
|
}
|
|
9474
9491
|
if (state.emittedRunnerStarted) {
|
|
@@ -9481,7 +9498,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9481
9498
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9482
9499
|
);
|
|
9483
9500
|
if (mapStart) {
|
|
9484
|
-
if (!
|
|
9501
|
+
if (!_chunk3UKKM6OSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9485
9502
|
return null;
|
|
9486
9503
|
}
|
|
9487
9504
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9491,7 +9508,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9491
9508
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9492
9509
|
);
|
|
9493
9510
|
if (mapDone) {
|
|
9494
|
-
if (!
|
|
9511
|
+
if (!_chunk3UKKM6OSjs.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9495
9512
|
return null;
|
|
9496
9513
|
}
|
|
9497
9514
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10780,7 +10797,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10780
10797
|
(line) => typeof line === "string"
|
|
10781
10798
|
);
|
|
10782
10799
|
if (tail.length === 0) return [];
|
|
10783
|
-
const shown = tail.map((line) =>
|
|
10800
|
+
const shown = tail.map((line) => _chunk3UKKM6OSjs.classifyLogLine.call(void 0, line)).filter(
|
|
10784
10801
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10785
10802
|
).slice(-8);
|
|
10786
10803
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11075,11 +11092,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11075
11092
|
}
|
|
11076
11093
|
function writePlayResult(status, jsonOutput, options) {
|
|
11077
11094
|
const packaged = getPlayRunPackage(status);
|
|
11078
|
-
if (status.package)
|
|
11095
|
+
if (status.package) _chunkR5FNCFEKjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11079
11096
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _406 => _406.hits]), () => ( null));
|
|
11080
11097
|
if (jsonOutput) {
|
|
11081
11098
|
const payload2 = _optionalChain([options, 'optionalAccess', _407 => _407.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11082
|
-
|
|
11099
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
11083
11100
|
hits ? { ...payload2, hits } : payload2,
|
|
11084
11101
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _408 => _408.jsonFields]) }
|
|
11085
11102
|
);
|
|
@@ -11095,7 +11112,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11095
11112
|
...buildPlayCompletionTextLines(status),
|
|
11096
11113
|
...formatRunHitsLines(hits)
|
|
11097
11114
|
];
|
|
11098
|
-
|
|
11115
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11099
11116
|
json: false,
|
|
11100
11117
|
text: `${lines2.join("\n")}
|
|
11101
11118
|
`
|
|
@@ -11146,7 +11163,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11146
11163
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11147
11164
|
const compact = compactPlayStatus(status);
|
|
11148
11165
|
const payload = _optionalChain([options, 'optionalAccess', _410 => _410.fullJson]) ? status : compact;
|
|
11149
|
-
|
|
11166
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
11150
11167
|
{
|
|
11151
11168
|
...payload,
|
|
11152
11169
|
render: {
|
|
@@ -11355,7 +11372,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11355
11372
|
}
|
|
11356
11373
|
offset += page.rows.length;
|
|
11357
11374
|
}
|
|
11358
|
-
const withError =
|
|
11375
|
+
const withError = _chunkR5FNCFEKjs.tableExportHasFailedRows.call(void 0,
|
|
11359
11376
|
sheetRows.filter(
|
|
11360
11377
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11361
11378
|
)
|
|
@@ -11371,7 +11388,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11371
11388
|
return [
|
|
11372
11389
|
withError ? {
|
|
11373
11390
|
...exported,
|
|
11374
|
-
[
|
|
11391
|
+
[_chunkR5FNCFEKjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkR5FNCFEKjs.tableExportErrorCell.call(void 0,
|
|
11375
11392
|
row
|
|
11376
11393
|
)
|
|
11377
11394
|
} : exported
|
|
@@ -11906,7 +11923,7 @@ function renderServerResultView(value) {
|
|
|
11906
11923
|
function writeStartedPlayRun(input) {
|
|
11907
11924
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
11908
11925
|
const run = input.package.run;
|
|
11909
|
-
|
|
11926
|
+
_chunkR5FNCFEKjs.recordPlayTermination.call(void 0, {
|
|
11910
11927
|
id: run.id,
|
|
11911
11928
|
status: run.status,
|
|
11912
11929
|
finishedAt: run.finishedAt
|
|
@@ -11919,7 +11936,7 @@ function writeStartedPlayRun(input) {
|
|
|
11919
11936
|
dashboardUrl: input.dashboardUrl,
|
|
11920
11937
|
package: input.package
|
|
11921
11938
|
};
|
|
11922
|
-
|
|
11939
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
11923
11940
|
json: true,
|
|
11924
11941
|
fields: input.jsonFields
|
|
11925
11942
|
});
|
|
@@ -11941,7 +11958,7 @@ function writeStartedPlayRun(input) {
|
|
|
11941
11958
|
input.progress.writeLine(output2, process.stdout);
|
|
11942
11959
|
return;
|
|
11943
11960
|
}
|
|
11944
|
-
|
|
11961
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, input.package, {
|
|
11945
11962
|
json: false,
|
|
11946
11963
|
text: `${output2}
|
|
11947
11964
|
`
|
|
@@ -11970,7 +11987,7 @@ function writeStartedPlayRun(input) {
|
|
|
11970
11987
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
11971
11988
|
];
|
|
11972
11989
|
if (input.jsonOutput) {
|
|
11973
|
-
|
|
11990
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
11974
11991
|
return;
|
|
11975
11992
|
}
|
|
11976
11993
|
if (input.dashboardUrl) {
|
|
@@ -11981,7 +11998,7 @@ function writeStartedPlayRun(input) {
|
|
|
11981
11998
|
input.progress.writeLine(output, process.stdout);
|
|
11982
11999
|
return;
|
|
11983
12000
|
}
|
|
11984
|
-
|
|
12001
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
11985
12002
|
{
|
|
11986
12003
|
...payload,
|
|
11987
12004
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -11991,7 +12008,7 @@ function writeStartedPlayRun(input) {
|
|
|
11991
12008
|
);
|
|
11992
12009
|
}
|
|
11993
12010
|
function parsePlayCheckOptions(args) {
|
|
11994
|
-
const selection =
|
|
12011
|
+
const selection = _chunkM2UL4ZS5js.parseJsonFields.call(void 0, args, "check");
|
|
11995
12012
|
args = selection.args;
|
|
11996
12013
|
const target = args[0];
|
|
11997
12014
|
if (!target || target.startsWith("-")) {
|
|
@@ -12003,7 +12020,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12003
12020
|
if (arg !== "--json" && arg !== "--full")
|
|
12004
12021
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12005
12022
|
}
|
|
12006
|
-
const jsonOutput =
|
|
12023
|
+
const jsonOutput = _chunkM2UL4ZS5js.argsWantJson.call(void 0, args);
|
|
12007
12024
|
return {
|
|
12008
12025
|
target,
|
|
12009
12026
|
jsonOutput,
|
|
@@ -12079,7 +12096,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12079
12096
|
useLatest,
|
|
12080
12097
|
expectedArtifactHash,
|
|
12081
12098
|
dryRun,
|
|
12082
|
-
jsonOutput:
|
|
12099
|
+
jsonOutput: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args)
|
|
12083
12100
|
};
|
|
12084
12101
|
}
|
|
12085
12102
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12120,7 +12137,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12120
12137
|
target,
|
|
12121
12138
|
expectedArtifactHash,
|
|
12122
12139
|
dryRun,
|
|
12123
|
-
jsonOutput:
|
|
12140
|
+
jsonOutput: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args)
|
|
12124
12141
|
};
|
|
12125
12142
|
}
|
|
12126
12143
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12331,7 +12348,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12331
12348
|
async function handlePlayCheck(args) {
|
|
12332
12349
|
const options = parsePlayCheckOptions(args);
|
|
12333
12350
|
if (!isFileTarget(options.target)) {
|
|
12334
|
-
const client = new (0,
|
|
12351
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
12335
12352
|
try {
|
|
12336
12353
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12337
12354
|
command: "check"
|
|
@@ -12360,7 +12377,7 @@ async function handlePlayCheck(args) {
|
|
|
12360
12377
|
},
|
|
12361
12378
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12362
12379
|
};
|
|
12363
|
-
|
|
12380
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, result, {
|
|
12364
12381
|
json: options.jsonOutput,
|
|
12365
12382
|
fields: options.jsonFields,
|
|
12366
12383
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12370,7 +12387,7 @@ async function handlePlayCheck(args) {
|
|
|
12370
12387
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12371
12388
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12372
12389
|
if (options.jsonOutput) {
|
|
12373
|
-
|
|
12390
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
12374
12391
|
{
|
|
12375
12392
|
kind: "play_check",
|
|
12376
12393
|
checked: "named_contract",
|
|
@@ -12403,7 +12420,7 @@ async function handlePlayCheck(args) {
|
|
|
12403
12420
|
);
|
|
12404
12421
|
}
|
|
12405
12422
|
const primary = outcomes.find(
|
|
12406
|
-
(outcome) => outcome.exportName ===
|
|
12423
|
+
(outcome) => outcome.exportName === _chunkMZSLFWOTjs.PLAY_DEFAULT_EXPORT
|
|
12407
12424
|
);
|
|
12408
12425
|
const output = buildPlayCheckOutput({
|
|
12409
12426
|
outcomes,
|
|
@@ -12412,7 +12429,7 @@ async function handlePlayCheck(args) {
|
|
|
12412
12429
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12413
12430
|
publishCommand: _optionalChain([primary, 'optionalAccess', _460 => _460.result, 'access', _461 => _461.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12414
12431
|
});
|
|
12415
|
-
|
|
12432
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, output, {
|
|
12416
12433
|
json: options.jsonOutput,
|
|
12417
12434
|
fields: options.jsonFields,
|
|
12418
12435
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12420,8 +12437,8 @@ async function handlePlayCheck(args) {
|
|
|
12420
12437
|
return output.valid ? 0 : 1;
|
|
12421
12438
|
}
|
|
12422
12439
|
function resolvePlayCheckExportNames(sourceCode) {
|
|
12423
|
-
const exports =
|
|
12424
|
-
if (!exports || exports.length === 0) return [
|
|
12440
|
+
const exports = _chunkMZSLFWOTjs.listPlayFileExports.call(void 0, sourceCode);
|
|
12441
|
+
if (!exports || exports.length === 0) return [_chunkMZSLFWOTjs.PLAY_DEFAULT_EXPORT];
|
|
12425
12442
|
return exports.map((entry) => entry.name);
|
|
12426
12443
|
}
|
|
12427
12444
|
function artifactForProductionCompatibilityCheck(artifact) {
|
|
@@ -12466,7 +12483,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12466
12483
|
}
|
|
12467
12484
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12468
12485
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12469
|
-
const client = new (0,
|
|
12486
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
12470
12487
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12471
12488
|
const checked = await checkLocalPlayGraph({
|
|
12472
12489
|
client,
|
|
@@ -12519,11 +12536,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12519
12536
|
throw new Error("Expected a file-backed play run target.");
|
|
12520
12537
|
}
|
|
12521
12538
|
let client;
|
|
12522
|
-
let cliAdmission =
|
|
12539
|
+
let cliAdmission = _chunk23EEVP5Wjs.usesInlinePlayAdmission.call(void 0,
|
|
12523
12540
|
"plays run",
|
|
12524
12541
|
process.argv.slice(2)
|
|
12525
12542
|
);
|
|
12526
|
-
const progress = _nullishCoalesce(
|
|
12543
|
+
const progress = _nullishCoalesce(_chunkKWQNNPMHjs.getActiveCliProgress.call(void 0, ), () => ( _chunkKWQNNPMHjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12527
12544
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12528
12545
|
progress.phase("compiling play");
|
|
12529
12546
|
const sourceCode = traceCliSync(
|
|
@@ -12540,13 +12557,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12540
12557
|
}
|
|
12541
12558
|
let graph;
|
|
12542
12559
|
try {
|
|
12543
|
-
graph = await
|
|
12560
|
+
graph = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
12544
12561
|
"cli.play_file_bundle_graph",
|
|
12545
12562
|
{ targetKind: "file" },
|
|
12546
12563
|
() => collectBundledPlayGraph(
|
|
12547
12564
|
absolutePlayPath,
|
|
12548
12565
|
options.profile,
|
|
12549
|
-
|
|
12566
|
+
_chunkMZSLFWOTjs.PLAY_DEFAULT_EXPORT,
|
|
12550
12567
|
{ cache: !options.dryRun }
|
|
12551
12568
|
)
|
|
12552
12569
|
);
|
|
@@ -12554,14 +12571,14 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12554
12571
|
if (options.dryRun) {
|
|
12555
12572
|
progress.complete();
|
|
12556
12573
|
renderLocalPlayExecutionPlan(
|
|
12557
|
-
|
|
12574
|
+
_chunkZDPL5AIKjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile }),
|
|
12558
12575
|
{ dryRun: true, json: options.jsonOutput }
|
|
12559
12576
|
);
|
|
12560
12577
|
return 0;
|
|
12561
12578
|
}
|
|
12562
|
-
client = new (0,
|
|
12579
|
+
client = new (0, _chunk7CILZKLEjs.DeeplineClient)(playRunClientOptions(options));
|
|
12563
12580
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12564
|
-
await
|
|
12581
|
+
await _chunk23EEVP5Wjs.checkPlayRunCompatibility.call(void 0,
|
|
12565
12582
|
client.baseUrl,
|
|
12566
12583
|
options.maintenancePolicy
|
|
12567
12584
|
);
|
|
@@ -12574,7 +12591,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12574
12591
|
});
|
|
12575
12592
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12576
12593
|
if (canDeferCompilerManifest) {
|
|
12577
|
-
|
|
12594
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
12578
12595
|
phase: "cli.play_file_compile_manifests",
|
|
12579
12596
|
ms: 0,
|
|
12580
12597
|
ok: true,
|
|
@@ -12583,7 +12600,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12583
12600
|
reason: "validated_by_run_route"
|
|
12584
12601
|
});
|
|
12585
12602
|
} else {
|
|
12586
|
-
await
|
|
12603
|
+
await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
12587
12604
|
"cli.play_file_compile_manifests",
|
|
12588
12605
|
{ targetKind: "file", skipped: false },
|
|
12589
12606
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12604,13 +12621,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12604
12621
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12605
12622
|
try {
|
|
12606
12623
|
renderLocalPlayExecutionPlan(
|
|
12607
|
-
|
|
12624
|
+
_chunkZDPL5AIKjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12608
12625
|
);
|
|
12609
12626
|
progress.phase("pinning imported plays");
|
|
12610
|
-
graph = await
|
|
12627
|
+
graph = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
12611
12628
|
"cli.play_file_pin_imports",
|
|
12612
12629
|
{ targetKind: "file" },
|
|
12613
|
-
() =>
|
|
12630
|
+
() => _chunkZDPL5AIKjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12614
12631
|
);
|
|
12615
12632
|
bundleResult = graph.root;
|
|
12616
12633
|
} catch (error) {
|
|
@@ -12626,7 +12643,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12626
12643
|
const fileInputBindings = _chunkJDMR33HSjs.fileInputBindingsFromStaticPipeline.call(void 0,
|
|
12627
12644
|
_optionalChain([compilerManifest, 'optionalAccess', _470 => _470.staticPipeline])
|
|
12628
12645
|
);
|
|
12629
|
-
const stagedFileInputs = await
|
|
12646
|
+
const stagedFileInputs = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
12630
12647
|
"cli.play_stage_inputs",
|
|
12631
12648
|
{
|
|
12632
12649
|
targetKind: "file",
|
|
@@ -12673,7 +12690,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12673
12690
|
};
|
|
12674
12691
|
if (options.watch) {
|
|
12675
12692
|
progress.phase("starting run");
|
|
12676
|
-
const finalStatus = await
|
|
12693
|
+
const finalStatus = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
12677
12694
|
"cli.play_start_watch",
|
|
12678
12695
|
{ targetKind: "file", playName },
|
|
12679
12696
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12733,7 +12750,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12733
12750
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12734
12751
|
}
|
|
12735
12752
|
progress.phase("starting run");
|
|
12736
|
-
const started = await
|
|
12753
|
+
const started = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
12737
12754
|
"cli.play_start_unwatched",
|
|
12738
12755
|
{ targetKind: "file", playName },
|
|
12739
12756
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _477 => _477.onSubmission]) }).catch(async (error) => {
|
|
@@ -12784,12 +12801,12 @@ async function handleNamedRun(options, hooks) {
|
|
|
12784
12801
|
if (options.target.kind !== "name") {
|
|
12785
12802
|
throw new Error("Expected a named play run target.");
|
|
12786
12803
|
}
|
|
12787
|
-
const client = new (0,
|
|
12788
|
-
let cliAdmission =
|
|
12804
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)(playRunClientOptions(options));
|
|
12805
|
+
let cliAdmission = _chunk23EEVP5Wjs.usesInlinePlayAdmission.call(void 0,
|
|
12789
12806
|
"plays run",
|
|
12790
12807
|
process.argv.slice(2)
|
|
12791
12808
|
);
|
|
12792
|
-
const progress = _nullishCoalesce(
|
|
12809
|
+
const progress = _nullishCoalesce(_chunkKWQNNPMHjs.getActiveCliProgress.call(void 0, ), () => ( _chunkKWQNNPMHjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12793
12810
|
const playName = options.target.name;
|
|
12794
12811
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
12795
12812
|
try {
|
|
@@ -12804,14 +12821,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
12804
12821
|
});
|
|
12805
12822
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
12806
12823
|
progress.phase("loading play definition");
|
|
12807
|
-
return
|
|
12824
|
+
return _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
12808
12825
|
"cli.play_load_definition",
|
|
12809
12826
|
{ targetKind: "name", playName, skipped: false },
|
|
12810
12827
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
12811
12828
|
command: "run"
|
|
12812
12829
|
})
|
|
12813
12830
|
);
|
|
12814
|
-
})() : (
|
|
12831
|
+
})() : (_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
12815
12832
|
phase: "cli.play_load_definition",
|
|
12816
12833
|
ms: 0,
|
|
12817
12834
|
ok: true,
|
|
@@ -12820,7 +12837,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12820
12837
|
skipped: true
|
|
12821
12838
|
}), null);
|
|
12822
12839
|
progress.phase("selecting revision");
|
|
12823
|
-
const selectedRevisionId = await
|
|
12840
|
+
const selectedRevisionId = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
12824
12841
|
"cli.play_select_revision",
|
|
12825
12842
|
{
|
|
12826
12843
|
targetKind: "name",
|
|
@@ -12845,10 +12862,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
12845
12862
|
..._chunkJDMR33HSjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
12846
12863
|
] : [];
|
|
12847
12864
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
12848
|
-
await
|
|
12865
|
+
await _chunk23EEVP5Wjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
12849
12866
|
cliAdmission = false;
|
|
12850
12867
|
}
|
|
12851
|
-
const stagedFileInputs = await
|
|
12868
|
+
const stagedFileInputs = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
12852
12869
|
"cli.play_stage_inputs",
|
|
12853
12870
|
{
|
|
12854
12871
|
targetKind: "name",
|
|
@@ -12892,7 +12909,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12892
12909
|
});
|
|
12893
12910
|
if (options.watch) {
|
|
12894
12911
|
progress.phase("starting run");
|
|
12895
|
-
const finalStatus = await
|
|
12912
|
+
const finalStatus = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
12896
12913
|
"cli.play_start_watch",
|
|
12897
12914
|
{ targetKind: "name", playName },
|
|
12898
12915
|
() => (options.runIdFile || cliAdmission ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12955,7 +12972,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12955
12972
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12956
12973
|
}
|
|
12957
12974
|
progress.phase("starting run");
|
|
12958
|
-
const started = await
|
|
12975
|
+
const started = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
12959
12976
|
"cli.play_start_unwatched",
|
|
12960
12977
|
{ targetKind: "name", playName },
|
|
12961
12978
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _490 => _490.onSubmission]) }).catch(async (error) => {
|
|
@@ -13000,7 +13017,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13000
13017
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13001
13018
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _498 => _498.exec, 'call', _499 => _499(status.runId), 'optionalAccess', _500 => _500[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13002
13019
|
if (!terminal) {
|
|
13003
|
-
|
|
13020
|
+
_chunkR5FNCFEKjs.writeExecutionOutput.call(void 0,
|
|
13004
13021
|
{ id: status.runId, status: status.status, next },
|
|
13005
13022
|
output
|
|
13006
13023
|
);
|
|
@@ -13075,10 +13092,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13075
13092
|
};
|
|
13076
13093
|
}
|
|
13077
13094
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13078
|
-
const allCollections =
|
|
13095
|
+
const allCollections = _chunkR5FNCFEKjs.outputCollections.call(void 0, data).map(
|
|
13079
13096
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13080
13097
|
);
|
|
13081
|
-
|
|
13098
|
+
_chunkR5FNCFEKjs.writeExecutionOutput.call(void 0,
|
|
13082
13099
|
{
|
|
13083
13100
|
id: status.runId,
|
|
13084
13101
|
status: status.status,
|
|
@@ -13099,7 +13116,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13099
13116
|
}
|
|
13100
13117
|
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;
|
|
13101
13118
|
async function handlePlayRun(args, hooks) {
|
|
13102
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13119
|
+
const parsedOptions = Array.isArray(args) ? _chunk3W6E3WVUjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13103
13120
|
const options = parsedOptions.runIdFile ? {
|
|
13104
13121
|
...parsedOptions,
|
|
13105
13122
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13116,7 +13133,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13116
13133
|
JSON.stringify({
|
|
13117
13134
|
version: 1,
|
|
13118
13135
|
admissionState: "submitted_unknown",
|
|
13119
|
-
baseUrl: new (0,
|
|
13136
|
+
baseUrl: new (0, _chunk7CILZKLEjs.DeeplineClient)().baseUrl,
|
|
13120
13137
|
...intent
|
|
13121
13138
|
})
|
|
13122
13139
|
);
|
|
@@ -13345,7 +13362,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13345
13362
|
);
|
|
13346
13363
|
return `${lines.join("\n")}
|
|
13347
13364
|
|
|
13348
|
-
${
|
|
13365
|
+
${_chunkM2UL4ZS5js.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13349
13366
|
}
|
|
13350
13367
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13351
13368
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13369,7 +13386,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13369
13386
|
}
|
|
13370
13387
|
}
|
|
13371
13388
|
async function handleRunGet(args) {
|
|
13372
|
-
const selection =
|
|
13389
|
+
const selection = _chunkM2UL4ZS5js.parseJsonFields.call(void 0,
|
|
13373
13390
|
args,
|
|
13374
13391
|
args.includes("--config") ? "config" : "get"
|
|
13375
13392
|
);
|
|
@@ -13382,7 +13399,7 @@ async function handleRunGet(args) {
|
|
|
13382
13399
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13383
13400
|
return 1;
|
|
13384
13401
|
}
|
|
13385
|
-
const client = new (0,
|
|
13402
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
13386
13403
|
const timing = args.includes("--timing");
|
|
13387
13404
|
if (args.includes("--web-url")) {
|
|
13388
13405
|
const status2 = await withRunReadTiming(
|
|
@@ -13397,7 +13414,7 @@ async function handleRunGet(args) {
|
|
|
13397
13414
|
return 1;
|
|
13398
13415
|
}
|
|
13399
13416
|
const dashboardUrl2 = _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13400
|
-
|
|
13417
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
13401
13418
|
{ dashboardUrl: dashboardUrl2 },
|
|
13402
13419
|
{ json: args.includes("--json"), text: `${dashboardUrl2}
|
|
13403
13420
|
` }
|
|
@@ -13422,7 +13439,7 @@ async function handleRunGet(args) {
|
|
|
13422
13439
|
"This server does not support recorded configuration reads."
|
|
13423
13440
|
);
|
|
13424
13441
|
}
|
|
13425
|
-
|
|
13442
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
13426
13443
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13427
13444
|
{ json: true, fields: selection.fields }
|
|
13428
13445
|
);
|
|
@@ -13435,7 +13452,7 @@ async function handleRunGet(args) {
|
|
|
13435
13452
|
timing,
|
|
13436
13453
|
() => client.getRunInput(runId)
|
|
13437
13454
|
);
|
|
13438
|
-
|
|
13455
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13439
13456
|
return 0;
|
|
13440
13457
|
}
|
|
13441
13458
|
const full = args.includes("--full");
|
|
@@ -13448,7 +13465,7 @@ async function handleRunGet(args) {
|
|
|
13448
13465
|
failedLogs: args.includes("--log-failed")
|
|
13449
13466
|
})
|
|
13450
13467
|
);
|
|
13451
|
-
if (status.package)
|
|
13468
|
+
if (status.package) _chunkR5FNCFEKjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13452
13469
|
if (!status.package) {
|
|
13453
13470
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13454
13471
|
"runs get",
|
|
@@ -13461,8 +13478,8 @@ async function handleRunGet(args) {
|
|
|
13461
13478
|
) : status;
|
|
13462
13479
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13463
13480
|
const legacyDashboardUrl = legacyPlayName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13464
|
-
if (
|
|
13465
|
-
|
|
13481
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
13482
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
13466
13483
|
{
|
|
13467
13484
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13468
13485
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {}
|
|
@@ -13472,7 +13489,7 @@ async function handleRunGet(args) {
|
|
|
13472
13489
|
} else {
|
|
13473
13490
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13474
13491
|
if (legacyDashboardUrl)
|
|
13475
|
-
|
|
13492
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
13476
13493
|
{ dashboardUrl: legacyDashboardUrl },
|
|
13477
13494
|
{ json: false, text: `play page: ${legacyDashboardUrl}
|
|
13478
13495
|
` }
|
|
@@ -13502,10 +13519,10 @@ async function handleRunGet(args) {
|
|
|
13502
13519
|
)
|
|
13503
13520
|
]);
|
|
13504
13521
|
const hitLines = formatRunHitsLines(hits);
|
|
13505
|
-
const json =
|
|
13522
|
+
const json = _chunkM2UL4ZS5js.argsWantJson.call(void 0, args);
|
|
13506
13523
|
const playName = resolveRunPlayName(status, runId);
|
|
13507
13524
|
const dashboardUrl = playName ? _chunkIAYSWZDJjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13508
|
-
|
|
13525
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
13509
13526
|
{
|
|
13510
13527
|
...overview,
|
|
13511
13528
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13609,9 +13626,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13609
13626
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13610
13627
|
return 1;
|
|
13611
13628
|
}
|
|
13612
|
-
const status = await new (0,
|
|
13613
|
-
if (
|
|
13614
|
-
|
|
13629
|
+
const status = await new (0, _chunk7CILZKLEjs.DeeplineClient)().runs.status(runId);
|
|
13630
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
13631
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13615
13632
|
return 0;
|
|
13616
13633
|
}
|
|
13617
13634
|
if (!status.available) {
|
|
@@ -13651,7 +13668,7 @@ async function handleRunsRerun(args) {
|
|
|
13651
13668
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13652
13669
|
return 1;
|
|
13653
13670
|
}
|
|
13654
|
-
const options = { json:
|
|
13671
|
+
const options = { json: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args) };
|
|
13655
13672
|
for (let index = 0; index < args.length; index += 1) {
|
|
13656
13673
|
if (args[index] === "--idempotency-key") {
|
|
13657
13674
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13717,8 +13734,8 @@ ${usage2}
|
|
|
13717
13734
|
Discover Plays: ${next.discover}
|
|
13718
13735
|
Active runs: ${next.running}`
|
|
13719
13736
|
);
|
|
13720
|
-
if (
|
|
13721
|
-
|
|
13737
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
13738
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
13722
13739
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13723
13740
|
{ json: true }
|
|
13724
13741
|
);
|
|
@@ -13733,7 +13750,7 @@ Active runs: ${next.running}`
|
|
|
13733
13750
|
console.error("--offset requires --play.");
|
|
13734
13751
|
return 1;
|
|
13735
13752
|
}
|
|
13736
|
-
const client = new (0,
|
|
13753
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
13737
13754
|
const page = await withRunReadTiming(
|
|
13738
13755
|
"runs list",
|
|
13739
13756
|
"run inventory",
|
|
@@ -13800,14 +13817,14 @@ Active runs: ${next.running}`
|
|
|
13800
13817
|
return lines2.join("\n");
|
|
13801
13818
|
});
|
|
13802
13819
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
13803
|
-
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}${
|
|
13820
|
+
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}${_chunkM2UL4ZS5js.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
13804
13821
|
if (page.hasMore) {
|
|
13805
13822
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
13806
13823
|
lines.push(
|
|
13807
13824
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
13808
13825
|
);
|
|
13809
13826
|
}
|
|
13810
|
-
|
|
13827
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
13811
13828
|
{
|
|
13812
13829
|
runs,
|
|
13813
13830
|
count: runs.length,
|
|
@@ -13821,7 +13838,7 @@ Active runs: ${next.running}`
|
|
|
13821
13838
|
},
|
|
13822
13839
|
render: { sections: [{ title: "runs", lines }] }
|
|
13823
13840
|
},
|
|
13824
|
-
{ json:
|
|
13841
|
+
{ json: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args) }
|
|
13825
13842
|
);
|
|
13826
13843
|
return 0;
|
|
13827
13844
|
}
|
|
@@ -13851,7 +13868,7 @@ async function handleRunTail(args) {
|
|
|
13851
13868
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
13852
13869
|
return 1;
|
|
13853
13870
|
}
|
|
13854
|
-
const parsed =
|
|
13871
|
+
const parsed = _chunk3UKKM6OSjs.parseLogLevel.call(void 0, value);
|
|
13855
13872
|
if (!parsed) {
|
|
13856
13873
|
console.error(
|
|
13857
13874
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -13889,9 +13906,9 @@ async function handleRunTail(args) {
|
|
|
13889
13906
|
);
|
|
13890
13907
|
return 1;
|
|
13891
13908
|
}
|
|
13892
|
-
const client = new (0,
|
|
13909
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
13893
13910
|
const jsonLines = args.includes("--jsonl");
|
|
13894
|
-
const jsonOutput = !jsonLines &&
|
|
13911
|
+
const jsonOutput = !jsonLines && _chunkM2UL4ZS5js.argsWantJson.call(void 0, args);
|
|
13895
13912
|
const compact = args.includes("--compact");
|
|
13896
13913
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
13897
13914
|
const compactState = {
|
|
@@ -13972,7 +13989,7 @@ async function handleRunLogs(args) {
|
|
|
13972
13989
|
]);
|
|
13973
13990
|
const cursorIndex = args.indexOf("--cursor");
|
|
13974
13991
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
13975
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
13992
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunk3UKKM6OSjs.isRunLogsCursor.call(void 0, cursorValue));
|
|
13976
13993
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
13977
13994
|
return handleRunEventSearch(args);
|
|
13978
13995
|
}
|
|
@@ -14006,7 +14023,7 @@ async function handleRunLogs(args) {
|
|
|
14006
14023
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14007
14024
|
return 1;
|
|
14008
14025
|
}
|
|
14009
|
-
const parsed =
|
|
14026
|
+
const parsed = _chunk3UKKM6OSjs.parseLogLevel.call(void 0, value);
|
|
14010
14027
|
if (!parsed) {
|
|
14011
14028
|
console.error(
|
|
14012
14029
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14053,12 +14070,12 @@ async function handleRunLogs(args) {
|
|
|
14053
14070
|
);
|
|
14054
14071
|
return 1;
|
|
14055
14072
|
}
|
|
14056
|
-
const client = new (0,
|
|
14073
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
14057
14074
|
if (outPath) {
|
|
14058
14075
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14059
|
-
const logs = result2.entries.filter((line) =>
|
|
14076
|
+
const logs = result2.entries.filter((line) => _chunk3UKKM6OSjs.logLevelReaches.call(void 0, _chunk3UKKM6OSjs.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunk3UKKM6OSjs.classifyLogLine.call(void 0, line).line);
|
|
14060
14077
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14061
|
-
|
|
14078
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
14062
14079
|
{
|
|
14063
14080
|
runId: result2.runId,
|
|
14064
14081
|
log_path: outPath,
|
|
@@ -14081,7 +14098,7 @@ async function handleRunLogs(args) {
|
|
|
14081
14098
|
]
|
|
14082
14099
|
}
|
|
14083
14100
|
},
|
|
14084
|
-
{ json:
|
|
14101
|
+
{ json: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args) }
|
|
14085
14102
|
);
|
|
14086
14103
|
return 0;
|
|
14087
14104
|
}
|
|
@@ -14112,7 +14129,7 @@ async function handleRunLogs(args) {
|
|
|
14112
14129
|
}
|
|
14113
14130
|
};
|
|
14114
14131
|
const text = buildRunLogsText(filteredResult);
|
|
14115
|
-
|
|
14132
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
14116
14133
|
{
|
|
14117
14134
|
runId: result.runId,
|
|
14118
14135
|
totalCount: result.totalCount,
|
|
@@ -14136,7 +14153,7 @@ async function handleRunLogs(args) {
|
|
|
14136
14153
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14137
14154
|
},
|
|
14138
14155
|
{
|
|
14139
|
-
json:
|
|
14156
|
+
json: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args),
|
|
14140
14157
|
text
|
|
14141
14158
|
}
|
|
14142
14159
|
);
|
|
@@ -14160,7 +14177,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14160
14177
|
);
|
|
14161
14178
|
}
|
|
14162
14179
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14163
|
-
(entry) =>
|
|
14180
|
+
(entry) => _chunk3UKKM6OSjs.logLevelReaches.call(void 0, _chunk3UKKM6OSjs.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14164
14181
|
);
|
|
14165
14182
|
const selected = matching.slice(-limit);
|
|
14166
14183
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14170,7 +14187,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14170
14187
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _532 => _532.at, 'call', _533 => _533(-1), 'optionalAccess', _534 => _534.seq]), () => ( null)),
|
|
14171
14188
|
truncated: result.truncated || olderMatchesExist,
|
|
14172
14189
|
hasMore: olderMatchesExist,
|
|
14173
|
-
nextCursor: olderMatchesExist ?
|
|
14190
|
+
nextCursor: olderMatchesExist ? _chunk3UKKM6OSjs.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14174
14191
|
};
|
|
14175
14192
|
}
|
|
14176
14193
|
async function handleRunEventSearch(args) {
|
|
@@ -14237,7 +14254,7 @@ ${usage2}`);
|
|
|
14237
14254
|
namespace,
|
|
14238
14255
|
...backend ? { backend } : {}
|
|
14239
14256
|
} : void 0;
|
|
14240
|
-
const client = new (0,
|
|
14257
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
14241
14258
|
const result = await client.runs.searchEvents({
|
|
14242
14259
|
...runId ? { runId } : {},
|
|
14243
14260
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14309,7 +14326,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14309
14326
|
"--limit",
|
|
14310
14327
|
String(limit)
|
|
14311
14328
|
].join(" ") : null;
|
|
14312
|
-
|
|
14329
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
14313
14330
|
{
|
|
14314
14331
|
events,
|
|
14315
14332
|
nextCursor: result.nextCursor,
|
|
@@ -14320,14 +14337,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14320
14337
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14321
14338
|
},
|
|
14322
14339
|
{
|
|
14323
|
-
json:
|
|
14340
|
+
json: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args),
|
|
14324
14341
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14325
14342
|
}
|
|
14326
14343
|
);
|
|
14327
14344
|
return 0;
|
|
14328
14345
|
}
|
|
14329
14346
|
function buildRunLogsText(result) {
|
|
14330
|
-
const lines = result.entries.map((line) =>
|
|
14347
|
+
const lines = result.entries.map((line) => _chunk3UKKM6OSjs.classifyLogLine.call(void 0, line).line);
|
|
14331
14348
|
if (result.warning) {
|
|
14332
14349
|
if (lines.length > 0) lines.push("");
|
|
14333
14350
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14361,7 +14378,7 @@ async function handleRunStop(args) {
|
|
|
14361
14378
|
reason = args[++index];
|
|
14362
14379
|
}
|
|
14363
14380
|
}
|
|
14364
|
-
const client = new (0,
|
|
14381
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
14365
14382
|
const result = await client.runs.stop(runId, { reason });
|
|
14366
14383
|
const state = resolveRunStopState(result);
|
|
14367
14384
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14376,7 +14393,7 @@ async function handleRunStop(args) {
|
|
|
14376
14393
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14377
14394
|
`inspect: deepline runs get ${runId} --full`
|
|
14378
14395
|
];
|
|
14379
|
-
|
|
14396
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
14380
14397
|
{
|
|
14381
14398
|
...cancelling,
|
|
14382
14399
|
state,
|
|
@@ -14391,7 +14408,7 @@ async function handleRunStop(args) {
|
|
|
14391
14408
|
]
|
|
14392
14409
|
}
|
|
14393
14410
|
},
|
|
14394
|
-
{ json:
|
|
14411
|
+
{ json: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args) }
|
|
14395
14412
|
);
|
|
14396
14413
|
return 0;
|
|
14397
14414
|
}
|
|
@@ -14408,7 +14425,7 @@ async function handleRunStop(args) {
|
|
|
14408
14425
|
];
|
|
14409
14426
|
process.stderr.write(`${lines2.join("\n")}
|
|
14410
14427
|
`);
|
|
14411
|
-
|
|
14428
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
14412
14429
|
{
|
|
14413
14430
|
...result,
|
|
14414
14431
|
render: {
|
|
@@ -14423,7 +14440,7 @@ async function handleRunStop(args) {
|
|
|
14423
14440
|
]
|
|
14424
14441
|
}
|
|
14425
14442
|
},
|
|
14426
|
-
{ json:
|
|
14443
|
+
{ json: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args) }
|
|
14427
14444
|
);
|
|
14428
14445
|
return 1;
|
|
14429
14446
|
}
|
|
@@ -14434,12 +14451,12 @@ async function handleRunStop(args) {
|
|
|
14434
14451
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14435
14452
|
] : []
|
|
14436
14453
|
];
|
|
14437
|
-
|
|
14454
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
14438
14455
|
{
|
|
14439
14456
|
...result,
|
|
14440
14457
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14441
14458
|
},
|
|
14442
|
-
{ json:
|
|
14459
|
+
{ json: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args) }
|
|
14443
14460
|
);
|
|
14444
14461
|
return 0;
|
|
14445
14462
|
}
|
|
@@ -14489,18 +14506,18 @@ async function handleRunStopAll(args) {
|
|
|
14489
14506
|
reason = args[++index];
|
|
14490
14507
|
}
|
|
14491
14508
|
}
|
|
14492
|
-
const client = new (0,
|
|
14509
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
14493
14510
|
if (dryRun) {
|
|
14494
14511
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14495
14512
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14496
|
-
|
|
14513
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
14497
14514
|
{
|
|
14498
14515
|
...result2,
|
|
14499
14516
|
render: {
|
|
14500
14517
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14501
14518
|
}
|
|
14502
14519
|
},
|
|
14503
|
-
{ json:
|
|
14520
|
+
{ json: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14504
14521
|
` }
|
|
14505
14522
|
);
|
|
14506
14523
|
return 0;
|
|
@@ -14513,17 +14530,17 @@ async function handleRunStopAll(args) {
|
|
|
14513
14530
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14514
14531
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14515
14532
|
];
|
|
14516
|
-
|
|
14533
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
14517
14534
|
{
|
|
14518
14535
|
...result,
|
|
14519
14536
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14520
14537
|
},
|
|
14521
|
-
{ json:
|
|
14538
|
+
{ json: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args) }
|
|
14522
14539
|
);
|
|
14523
14540
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14524
14541
|
}
|
|
14525
14542
|
async function handleRunExport(args) {
|
|
14526
|
-
const selection =
|
|
14543
|
+
const selection = _chunkM2UL4ZS5js.parseJsonFields.call(void 0, args, "export");
|
|
14527
14544
|
args = selection.args;
|
|
14528
14545
|
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]";
|
|
14529
14546
|
let runId;
|
|
@@ -14594,17 +14611,17 @@ async function handleRunExport(args) {
|
|
|
14594
14611
|
"INVALID_ARGUMENT"
|
|
14595
14612
|
);
|
|
14596
14613
|
}
|
|
14597
|
-
const client = new (0,
|
|
14614
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
14598
14615
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14599
14616
|
assertRunExportStatusIdentity(status, runId);
|
|
14600
14617
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14601
|
-
const progress =
|
|
14618
|
+
const progress = _chunkKWQNNPMHjs.createCliProgress.call(void 0, !_chunkM2UL4ZS5js.argsWantJson.call(void 0, args));
|
|
14602
14619
|
try {
|
|
14603
14620
|
await waitForPlayCompletionByWatch({
|
|
14604
14621
|
client,
|
|
14605
14622
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14606
14623
|
workflowId: runId,
|
|
14607
|
-
jsonOutput:
|
|
14624
|
+
jsonOutput: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args),
|
|
14608
14625
|
emitLogs: false,
|
|
14609
14626
|
waitTimeoutMs,
|
|
14610
14627
|
startedAt: Date.now(),
|
|
@@ -14672,7 +14689,7 @@ async function handleRunExport(args) {
|
|
|
14672
14689
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _548 => _548.rowsInfo, 'access', _549 => _549.totalRows]), () => ( null)),
|
|
14673
14690
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14674
14691
|
...rowFailures ? { rowFailures } : {},
|
|
14675
|
-
columns:
|
|
14692
|
+
columns: _chunkR5FNCFEKjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _550 => _550.rowsInfo, 'access', _551 => _551.columns]), () => ( []))),
|
|
14676
14693
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14677
14694
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14678
14695
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -14706,8 +14723,8 @@ async function handleRunExport(args) {
|
|
|
14706
14723
|
"utf-8"
|
|
14707
14724
|
);
|
|
14708
14725
|
}
|
|
14709
|
-
|
|
14710
|
-
json:
|
|
14726
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, payload, {
|
|
14727
|
+
json: _chunkM2UL4ZS5js.argsWantJson.call(void 0, args),
|
|
14711
14728
|
fields: selection.fields,
|
|
14712
14729
|
text: `${lines.join("\n")}
|
|
14713
14730
|
`
|
|
@@ -14741,10 +14758,10 @@ async function handlePlayGet(args) {
|
|
|
14741
14758
|
);
|
|
14742
14759
|
return 2;
|
|
14743
14760
|
}
|
|
14744
|
-
const client = new (0,
|
|
14761
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
14745
14762
|
const explicitJson = args.includes("--json");
|
|
14746
14763
|
const sourceOutput = args.includes("--source");
|
|
14747
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14764
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkM2UL4ZS5js.argsWantJson.call(void 0, args);
|
|
14748
14765
|
const requestedRevisionFlags = [
|
|
14749
14766
|
args.includes("--working"),
|
|
14750
14767
|
args.includes("--live"),
|
|
@@ -14804,7 +14821,7 @@ async function handlePlayGet(args) {
|
|
|
14804
14821
|
}
|
|
14805
14822
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
14806
14823
|
if (jsonOutput) {
|
|
14807
|
-
|
|
14824
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, {
|
|
14808
14825
|
...detail,
|
|
14809
14826
|
...materializedFile ? {
|
|
14810
14827
|
message: loadedMessage,
|
|
@@ -14896,8 +14913,8 @@ async function handlePlayVersions(args) {
|
|
|
14896
14913
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
14897
14914
|
return 1;
|
|
14898
14915
|
}
|
|
14899
|
-
const client = new (0,
|
|
14900
|
-
const jsonOutput =
|
|
14916
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
14917
|
+
const jsonOutput = _chunkM2UL4ZS5js.argsWantJson.call(void 0, args);
|
|
14901
14918
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
14902
14919
|
command: "versions"
|
|
14903
14920
|
});
|
|
@@ -14905,7 +14922,7 @@ async function handlePlayVersions(args) {
|
|
|
14905
14922
|
parseReferencedPlayTarget(playName).playName
|
|
14906
14923
|
);
|
|
14907
14924
|
if (jsonOutput) {
|
|
14908
|
-
|
|
14925
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, { versions });
|
|
14909
14926
|
return 0;
|
|
14910
14927
|
}
|
|
14911
14928
|
if (versions.length === 0) {
|
|
@@ -14948,8 +14965,8 @@ async function handlePlayCost(args) {
|
|
|
14948
14965
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
14949
14966
|
return 2;
|
|
14950
14967
|
}
|
|
14951
|
-
const result = await new (0,
|
|
14952
|
-
if (
|
|
14968
|
+
const result = await new (0, _chunk7CILZKLEjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
14969
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
14953
14970
|
else
|
|
14954
14971
|
console.log(
|
|
14955
14972
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -14957,9 +14974,9 @@ async function handlePlayCost(args) {
|
|
|
14957
14974
|
return 0;
|
|
14958
14975
|
}
|
|
14959
14976
|
async function handlePlayList(args) {
|
|
14960
|
-
const jsonOutput =
|
|
14977
|
+
const jsonOutput = _chunkM2UL4ZS5js.argsWantJson.call(void 0, args);
|
|
14961
14978
|
const showCost = args.includes("--show-cost");
|
|
14962
|
-
const client = new (0,
|
|
14979
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
14963
14980
|
const categoriesIndex = args.indexOf("--categories");
|
|
14964
14981
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _571 => _571[categoriesIndex + 1], 'optionalAccess', _572 => _572.trim, 'call', _573 => _573()]) : void 0;
|
|
14965
14982
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15057,7 +15074,7 @@ async function handlePlayList(args) {
|
|
|
15057
15074
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15058
15075
|
lines.push(`Next page: ${nextPage}`);
|
|
15059
15076
|
}
|
|
15060
|
-
|
|
15077
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
15061
15078
|
{
|
|
15062
15079
|
plays,
|
|
15063
15080
|
count: plays.length,
|
|
@@ -15075,7 +15092,7 @@ async function handlePlayList(args) {
|
|
|
15075
15092
|
}
|
|
15076
15093
|
async function handlePlayPin(args, pinned) {
|
|
15077
15094
|
const target = _optionalChain([args, 'access', _582 => _582.find, 'call', _583 => _583((arg) => !arg.startsWith("-")), 'optionalAccess', _584 => _584.trim, 'call', _585 => _585()]);
|
|
15078
|
-
const jsonOutput =
|
|
15095
|
+
const jsonOutput = _chunkM2UL4ZS5js.argsWantJson.call(void 0, args);
|
|
15079
15096
|
const dryRun = args.includes("--dry-run");
|
|
15080
15097
|
if (!target) {
|
|
15081
15098
|
console.error(
|
|
@@ -15093,11 +15110,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15093
15110
|
const name = parsedTarget.playName;
|
|
15094
15111
|
const plan = { name, pinned, dryRun };
|
|
15095
15112
|
if (dryRun) {
|
|
15096
|
-
|
|
15113
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, plan);
|
|
15097
15114
|
return 0;
|
|
15098
15115
|
}
|
|
15099
|
-
const result = await new (0,
|
|
15100
|
-
if (jsonOutput)
|
|
15116
|
+
const result = await new (0, _chunk7CILZKLEjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15117
|
+
if (jsonOutput) _chunkM2UL4ZS5js.printCompactJson.call(void 0, result);
|
|
15101
15118
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15102
15119
|
return 0;
|
|
15103
15120
|
}
|
|
@@ -15223,12 +15240,12 @@ async function handlePlayGrep(args) {
|
|
|
15223
15240
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15224
15241
|
return 1;
|
|
15225
15242
|
}
|
|
15226
|
-
const client = new (0,
|
|
15243
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
15227
15244
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15228
15245
|
summarizePlayGrepResult
|
|
15229
15246
|
);
|
|
15230
|
-
if (
|
|
15231
|
-
|
|
15247
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
15248
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, {
|
|
15232
15249
|
plays: results,
|
|
15233
15250
|
count: results.length,
|
|
15234
15251
|
query,
|
|
@@ -15251,7 +15268,7 @@ async function handlePlayGrep(args) {
|
|
|
15251
15268
|
return 0;
|
|
15252
15269
|
}
|
|
15253
15270
|
async function handlePlayDescribe(args) {
|
|
15254
|
-
const selection =
|
|
15271
|
+
const selection = _chunkM2UL4ZS5js.parseJsonFields.call(void 0, args, "describe");
|
|
15255
15272
|
args = selection.args;
|
|
15256
15273
|
const playName = args[0];
|
|
15257
15274
|
if (!playName) {
|
|
@@ -15285,8 +15302,8 @@ async function handlePlayDescribe(args) {
|
|
|
15285
15302
|
`deepline plays check ${playName}`,
|
|
15286
15303
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15287
15304
|
];
|
|
15288
|
-
if (
|
|
15289
|
-
|
|
15305
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
15306
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, {
|
|
15290
15307
|
ok: false,
|
|
15291
15308
|
error: { message },
|
|
15292
15309
|
next
|
|
@@ -15300,7 +15317,7 @@ async function handlePlayDescribe(args) {
|
|
|
15300
15317
|
}
|
|
15301
15318
|
return 2;
|
|
15302
15319
|
}
|
|
15303
|
-
const client = new (0,
|
|
15320
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
15304
15321
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15305
15322
|
command: "describe"
|
|
15306
15323
|
});
|
|
@@ -15310,9 +15327,9 @@ async function handlePlayDescribe(args) {
|
|
|
15310
15327
|
compact: args.includes("--compact")
|
|
15311
15328
|
}
|
|
15312
15329
|
);
|
|
15313
|
-
if (
|
|
15314
|
-
if (selection.fields)
|
|
15315
|
-
else
|
|
15330
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
15331
|
+
if (selection.fields) _chunkM2UL4ZS5js.printJson.call(void 0, play, selection.fields);
|
|
15332
|
+
else _chunkM2UL4ZS5js.printCompactJson.call(void 0, play);
|
|
15316
15333
|
return 0;
|
|
15317
15334
|
}
|
|
15318
15335
|
printPlayDescription(play);
|
|
@@ -15334,7 +15351,7 @@ async function handlePlaySave(args) {
|
|
|
15334
15351
|
}
|
|
15335
15352
|
let graph;
|
|
15336
15353
|
try {
|
|
15337
|
-
graph = await
|
|
15354
|
+
graph = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
15338
15355
|
"cli.play_save_bundle_graph",
|
|
15339
15356
|
{ targetKind: "file" },
|
|
15340
15357
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15356,7 +15373,7 @@ async function handlePlaySave(args) {
|
|
|
15356
15373
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15357
15374
|
};
|
|
15358
15375
|
if (options.jsonOutput) {
|
|
15359
|
-
|
|
15376
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, result);
|
|
15360
15377
|
} else {
|
|
15361
15378
|
console.error(result.message);
|
|
15362
15379
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15378,7 +15395,7 @@ async function handlePlaySave(args) {
|
|
|
15378
15395
|
};
|
|
15379
15396
|
if (options.dryRun) {
|
|
15380
15397
|
if (options.jsonOutput) {
|
|
15381
|
-
|
|
15398
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, dryRun);
|
|
15382
15399
|
} else {
|
|
15383
15400
|
console.log(`Dry run: ${playName}`);
|
|
15384
15401
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15387,14 +15404,14 @@ async function handlePlaySave(args) {
|
|
|
15387
15404
|
}
|
|
15388
15405
|
return 0;
|
|
15389
15406
|
}
|
|
15390
|
-
const client = new (0,
|
|
15407
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
15391
15408
|
try {
|
|
15392
|
-
await
|
|
15409
|
+
await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
15393
15410
|
"cli.play_save_compile_manifests",
|
|
15394
15411
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15395
15412
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15396
15413
|
);
|
|
15397
|
-
const saved = await
|
|
15414
|
+
const saved = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
15398
15415
|
"cli.play_save_register_draft",
|
|
15399
15416
|
{ targetKind: "file", playName, artifactHash },
|
|
15400
15417
|
() => client.registerPlayArtifact({
|
|
@@ -15423,7 +15440,7 @@ async function handlePlaySave(args) {
|
|
|
15423
15440
|
}
|
|
15424
15441
|
};
|
|
15425
15442
|
if (options.jsonOutput) {
|
|
15426
|
-
|
|
15443
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, result);
|
|
15427
15444
|
} else {
|
|
15428
15445
|
console.log(
|
|
15429
15446
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15449,7 +15466,7 @@ async function handlePlayPublish(args) {
|
|
|
15449
15466
|
}
|
|
15450
15467
|
const { target: playName, useLatest } = options;
|
|
15451
15468
|
let revisionId = options.revisionId;
|
|
15452
|
-
const client = new (0,
|
|
15469
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
15453
15470
|
if (isFileTarget(playName)) {
|
|
15454
15471
|
if (revisionId || useLatest) {
|
|
15455
15472
|
console.error(
|
|
@@ -15459,7 +15476,7 @@ async function handlePlayPublish(args) {
|
|
|
15459
15476
|
}
|
|
15460
15477
|
let graph;
|
|
15461
15478
|
try {
|
|
15462
|
-
graph = await
|
|
15479
|
+
graph = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
15463
15480
|
"cli.play_publish_bundle_graph",
|
|
15464
15481
|
{ targetKind: "file" },
|
|
15465
15482
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15481,7 +15498,7 @@ async function handlePlayPublish(args) {
|
|
|
15481
15498
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15482
15499
|
};
|
|
15483
15500
|
if (options.jsonOutput) {
|
|
15484
|
-
|
|
15501
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, result3);
|
|
15485
15502
|
} else {
|
|
15486
15503
|
console.error(result3.message);
|
|
15487
15504
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15504,7 +15521,7 @@ async function handlePlayPublish(args) {
|
|
|
15504
15521
|
};
|
|
15505
15522
|
if (options.dryRun) {
|
|
15506
15523
|
if (options.jsonOutput) {
|
|
15507
|
-
|
|
15524
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, dryRun);
|
|
15508
15525
|
} else {
|
|
15509
15526
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15510
15527
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15523,12 +15540,12 @@ async function handlePlayPublish(args) {
|
|
|
15523
15540
|
}
|
|
15524
15541
|
}
|
|
15525
15542
|
try {
|
|
15526
|
-
await
|
|
15543
|
+
await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
15527
15544
|
"cli.play_publish_compile_manifests",
|
|
15528
15545
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15529
15546
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15530
15547
|
);
|
|
15531
|
-
await
|
|
15548
|
+
await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
15532
15549
|
"cli.play_publish_imports",
|
|
15533
15550
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15534
15551
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15537,7 +15554,7 @@ async function handlePlayPublish(args) {
|
|
|
15537
15554
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15538
15555
|
return 1;
|
|
15539
15556
|
}
|
|
15540
|
-
const published = await
|
|
15557
|
+
const published = await _chunkDMWHEYZMjs.traceCliSpan.call(void 0,
|
|
15541
15558
|
"cli.play_publish_register_root",
|
|
15542
15559
|
{
|
|
15543
15560
|
targetKind: "file",
|
|
@@ -15572,7 +15589,7 @@ async function handlePlayPublish(args) {
|
|
|
15572
15589
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15573
15590
|
};
|
|
15574
15591
|
if (options.jsonOutput) {
|
|
15575
|
-
|
|
15592
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, result2);
|
|
15576
15593
|
} else {
|
|
15577
15594
|
printPublishReceipt({
|
|
15578
15595
|
name: rootPlayName,
|
|
@@ -15603,7 +15620,7 @@ async function handlePlayPublish(args) {
|
|
|
15603
15620
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15604
15621
|
latest: useLatest
|
|
15605
15622
|
};
|
|
15606
|
-
|
|
15623
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, result2);
|
|
15607
15624
|
return 0;
|
|
15608
15625
|
}
|
|
15609
15626
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15627,7 +15644,7 @@ async function handlePlayPublish(args) {
|
|
|
15627
15644
|
revisionId ? { revisionId } : {}
|
|
15628
15645
|
);
|
|
15629
15646
|
if (options.jsonOutput) {
|
|
15630
|
-
|
|
15647
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, result);
|
|
15631
15648
|
} else {
|
|
15632
15649
|
printPublishReceipt({
|
|
15633
15650
|
name: result.name,
|
|
@@ -15667,7 +15684,7 @@ async function handlePlayDelete(args) {
|
|
|
15667
15684
|
);
|
|
15668
15685
|
return 2;
|
|
15669
15686
|
}
|
|
15670
|
-
const client = new (0,
|
|
15687
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
15671
15688
|
let detail;
|
|
15672
15689
|
try {
|
|
15673
15690
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15691,8 +15708,8 @@ async function handlePlayDelete(args) {
|
|
|
15691
15708
|
name: resolvedName,
|
|
15692
15709
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15693
15710
|
};
|
|
15694
|
-
if (
|
|
15695
|
-
|
|
15711
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
15712
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, result2);
|
|
15696
15713
|
} else {
|
|
15697
15714
|
process.stdout.write(
|
|
15698
15715
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15702,8 +15719,8 @@ async function handlePlayDelete(args) {
|
|
|
15702
15719
|
return 0;
|
|
15703
15720
|
}
|
|
15704
15721
|
const result = await client.deletePlay(resolvedName);
|
|
15705
|
-
if (
|
|
15706
|
-
|
|
15722
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
15723
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, result);
|
|
15707
15724
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15708
15725
|
}
|
|
15709
15726
|
if (result.alreadyArchived) {
|
|
@@ -15742,13 +15759,13 @@ async function handlePlayRestore(args) {
|
|
|
15742
15759
|
);
|
|
15743
15760
|
return 2;
|
|
15744
15761
|
}
|
|
15745
|
-
const client = new (0,
|
|
15762
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
15746
15763
|
try {
|
|
15747
15764
|
const result = await client.restorePlay(
|
|
15748
15765
|
parseReferencedPlayTarget(playName).playName
|
|
15749
15766
|
);
|
|
15750
|
-
if (
|
|
15751
|
-
|
|
15767
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
15768
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, result);
|
|
15752
15769
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
15753
15770
|
}
|
|
15754
15771
|
if (result.alreadyActive) {
|
|
@@ -15875,21 +15892,21 @@ Common commands:
|
|
|
15875
15892
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
15876
15893
|
}
|
|
15877
15894
|
};
|
|
15878
|
-
|
|
15895
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0, result2, {
|
|
15879
15896
|
json: options.json,
|
|
15880
15897
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
15881
15898
|
`
|
|
15882
15899
|
});
|
|
15883
15900
|
return;
|
|
15884
15901
|
}
|
|
15885
|
-
const client = new (0,
|
|
15902
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
15886
15903
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
15887
15904
|
throw new Error(
|
|
15888
15905
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
15889
15906
|
);
|
|
15890
15907
|
}
|
|
15891
15908
|
const result = await client.startPlayRun(saved.request);
|
|
15892
|
-
|
|
15909
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
15893
15910
|
{ ...result },
|
|
15894
15911
|
{
|
|
15895
15912
|
json: options.json,
|
|
@@ -15925,7 +15942,7 @@ Examples:
|
|
|
15925
15942
|
).action(async (target, options) => {
|
|
15926
15943
|
process.exitCode = await handlePlayCheck([
|
|
15927
15944
|
target,
|
|
15928
|
-
...
|
|
15945
|
+
..._chunkM2UL4ZS5js.jsonFieldArgs.call(void 0, options.json),
|
|
15929
15946
|
...options.full ? ["--full"] : []
|
|
15930
15947
|
]);
|
|
15931
15948
|
});
|
|
@@ -15964,10 +15981,10 @@ Notes:
|
|
|
15964
15981
|
--force-tool-refresh re-executes completed tool receipts and may repeat billed
|
|
15965
15982
|
provider calls. It is independent from --force.
|
|
15966
15983
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
15967
|
-
resident-work ceiling. Default: ${
|
|
15984
|
+
resident-work ceiling. Default: ${_chunk3W6E3WVUjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunk3W6E3WVUjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
15968
15985
|
Provider pacing and sandbox memory limits still apply.
|
|
15969
15986
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
15970
|
-
resolvers. Accepted range: 1-${
|
|
15987
|
+
resolvers. Accepted range: 1-${_chunk3W6E3WVUjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
15971
15988
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
15972
15989
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
15973
15990
|
Tool calls that would exceed it are denied.
|
|
@@ -16081,10 +16098,10 @@ Examples:
|
|
|
16081
16098
|
"Refresh completed tool receipts; may repeat billed provider calls"
|
|
16082
16099
|
).option(
|
|
16083
16100
|
"--max-concurrent-external-calls <count>",
|
|
16084
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16101
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunk3W6E3WVUjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunk3W6E3WVUjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16085
16102
|
).option(
|
|
16086
16103
|
"--max-concurrent-rows <count>",
|
|
16087
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16104
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunk3W6E3WVUjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16088
16105
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the play page in a browser after the run starts").option(
|
|
16089
16106
|
"--debug-map-latency",
|
|
16090
16107
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16129,14 +16146,14 @@ JSON field selection:
|
|
|
16129
16146
|
passthroughArgs.shift();
|
|
16130
16147
|
}
|
|
16131
16148
|
const exitCode = await handlePlayRun(
|
|
16132
|
-
|
|
16149
|
+
_chunk3W6E3WVUjs.resolvePlayRunCliOptions.call(void 0,
|
|
16133
16150
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16134
16151
|
options,
|
|
16135
16152
|
passthroughArgs,
|
|
16136
|
-
|
|
16153
|
+
_chunkDMWHEYZMjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16137
16154
|
)
|
|
16138
16155
|
);
|
|
16139
|
-
|
|
16156
|
+
_chunkDMWHEYZMjs.recordCliTrace.call(void 0, {
|
|
16140
16157
|
phase: "cli.play_command_exit",
|
|
16141
16158
|
exitCode
|
|
16142
16159
|
});
|
|
@@ -16185,9 +16202,9 @@ Examples:
|
|
|
16185
16202
|
const limit = Number(options.historyLimit);
|
|
16186
16203
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16187
16204
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16188
|
-
const client = new (0,
|
|
16205
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
16189
16206
|
if (options.binding) {
|
|
16190
|
-
|
|
16207
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0,
|
|
16191
16208
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16192
16209
|
);
|
|
16193
16210
|
return;
|
|
@@ -16195,7 +16212,7 @@ Examples:
|
|
|
16195
16212
|
const result = await client.listPlayTriggerInventory({
|
|
16196
16213
|
cursor: options.cursor
|
|
16197
16214
|
});
|
|
16198
|
-
|
|
16215
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, {
|
|
16199
16216
|
...result,
|
|
16200
16217
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16201
16218
|
});
|
|
@@ -16254,7 +16271,7 @@ Examples:
|
|
|
16254
16271
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16255
16272
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16256
16273
|
}
|
|
16257
|
-
const result = await new (0,
|
|
16274
|
+
const result = await new (0, _chunk7CILZKLEjs.DeeplineClient)().getPlaysActivity({
|
|
16258
16275
|
timeZone: options.timeZone,
|
|
16259
16276
|
days,
|
|
16260
16277
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16268,7 +16285,7 @@ Examples:
|
|
|
16268
16285
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16269
16286
|
);
|
|
16270
16287
|
}
|
|
16271
|
-
|
|
16288
|
+
_chunkM2UL4ZS5js.printCommandEnvelope.call(void 0,
|
|
16272
16289
|
{ ...result },
|
|
16273
16290
|
{
|
|
16274
16291
|
json: Boolean(options.json),
|
|
@@ -16297,7 +16314,7 @@ Examples:
|
|
|
16297
16314
|
false
|
|
16298
16315
|
);
|
|
16299
16316
|
});
|
|
16300
|
-
|
|
16317
|
+
_chunkTHMGJOR4js.registerDeprecatedSearchCommand.call(void 0,
|
|
16301
16318
|
play,
|
|
16302
16319
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16303
16320
|
);
|
|
@@ -16338,9 +16355,9 @@ Examples:
|
|
|
16338
16355
|
"--json [fields]",
|
|
16339
16356
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16340
16357
|
);
|
|
16341
|
-
|
|
16358
|
+
_chunkR5FNCFEKjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16342
16359
|
async (target, options) => {
|
|
16343
|
-
const ownView = () => handlePlayDescribe(
|
|
16360
|
+
const ownView = () => handlePlayDescribe(_chunkM2UL4ZS5js.describeArgs.call(void 0, target, options));
|
|
16344
16361
|
const [flagText] = [options.json].filter(
|
|
16345
16362
|
(value) => typeof value === "string"
|
|
16346
16363
|
);
|
|
@@ -16351,7 +16368,7 @@ Examples:
|
|
|
16351
16368
|
process.exitCode = await ownView();
|
|
16352
16369
|
return;
|
|
16353
16370
|
}
|
|
16354
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16371
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-PI7HCT7K.js")));
|
|
16355
16372
|
process.exitCode = await describeAnything(
|
|
16356
16373
|
name,
|
|
16357
16374
|
{
|
|
@@ -16469,7 +16486,7 @@ Examples:
|
|
|
16469
16486
|
deepline plays deployments <deployment-id>
|
|
16470
16487
|
`
|
|
16471
16488
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16472
|
-
async (id, options) => id ?
|
|
16489
|
+
async (id, options) => id ? _chunkLXKGZKTLjs.handleDeploymentGet.call(void 0, id, options) : _chunkLXKGZKTLjs.handleDeploymentsList.call(void 0, options)
|
|
16473
16490
|
);
|
|
16474
16491
|
addPublishHelp(
|
|
16475
16492
|
play.command("publish <target>").description(
|
|
@@ -16604,14 +16621,14 @@ Examples:
|
|
|
16604
16621
|
const limit = Number(options.limit);
|
|
16605
16622
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16606
16623
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16607
|
-
const result = await new (0,
|
|
16624
|
+
const result = await new (0, _chunk7CILZKLEjs.DeeplineClient)().runs.rowHistory({
|
|
16608
16625
|
playName: options.play,
|
|
16609
16626
|
runId,
|
|
16610
16627
|
tableNamespace: options.dataset,
|
|
16611
16628
|
limit,
|
|
16612
16629
|
cursor: options.cursor
|
|
16613
16630
|
});
|
|
16614
|
-
|
|
16631
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, {
|
|
16615
16632
|
...result,
|
|
16616
16633
|
...result.nextCursor ? {
|
|
16617
16634
|
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`
|
|
@@ -16685,7 +16702,7 @@ Examples:
|
|
|
16685
16702
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16686
16703
|
).action(async (runId, options) => {
|
|
16687
16704
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16688
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16705
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-MCWDAK53.js")));
|
|
16689
16706
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16690
16707
|
receiptJson: options.json !== void 0
|
|
16691
16708
|
});
|
|
@@ -16693,7 +16710,7 @@ Examples:
|
|
|
16693
16710
|
}
|
|
16694
16711
|
process.exitCode = await handleRunGet([
|
|
16695
16712
|
runId,
|
|
16696
|
-
...
|
|
16713
|
+
..._chunkM2UL4ZS5js.jsonFieldArgs.call(void 0, options.json),
|
|
16697
16714
|
...options.webUrl ? ["--web-url"] : [],
|
|
16698
16715
|
...options.full ? ["--full"] : [],
|
|
16699
16716
|
...options.input ? ["--input"] : [],
|
|
@@ -16983,7 +17000,7 @@ Examples:
|
|
|
16983
17000
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
16984
17001
|
...options.wait ? ["--wait"] : [],
|
|
16985
17002
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
16986
|
-
...
|
|
17003
|
+
..._chunkM2UL4ZS5js.jsonFieldArgs.call(void 0, options.json)
|
|
16987
17004
|
]);
|
|
16988
17005
|
});
|
|
16989
17006
|
const share = play.command("share").description(
|
|
@@ -17149,10 +17166,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17149
17166
|
return 2;
|
|
17150
17167
|
}
|
|
17151
17168
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17152
|
-
const status = await new (0,
|
|
17169
|
+
const status = await new (0, _chunk7CILZKLEjs.DeeplineClient)().getSharePage(name);
|
|
17153
17170
|
const outputStatus = shareStatusForOutput(status);
|
|
17154
|
-
if (
|
|
17155
|
-
|
|
17171
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
17172
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, outputStatus);
|
|
17156
17173
|
return 0;
|
|
17157
17174
|
}
|
|
17158
17175
|
if (!outputStatus.share) {
|
|
@@ -17191,7 +17208,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17191
17208
|
return 2;
|
|
17192
17209
|
}
|
|
17193
17210
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17194
|
-
const client = new (0,
|
|
17211
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
17195
17212
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17196
17213
|
let resolvedVersion;
|
|
17197
17214
|
if (!revisionId) {
|
|
@@ -17222,8 +17239,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17222
17239
|
);
|
|
17223
17240
|
if (!hasCompleted) {
|
|
17224
17241
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17225
|
-
if (
|
|
17226
|
-
|
|
17242
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
17243
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, {
|
|
17227
17244
|
ok: false,
|
|
17228
17245
|
code: "NO_SUCCESSFUL_RUN",
|
|
17229
17246
|
message,
|
|
@@ -17247,8 +17264,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17247
17264
|
};
|
|
17248
17265
|
if (args.includes("--dry-run")) {
|
|
17249
17266
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17250
|
-
if (
|
|
17251
|
-
|
|
17267
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
17268
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, plan);
|
|
17252
17269
|
} else {
|
|
17253
17270
|
console.log(
|
|
17254
17271
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17258,8 +17275,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17258
17275
|
}
|
|
17259
17276
|
const status = await client.publishSharePage(name, request);
|
|
17260
17277
|
const outputStatus = shareStatusForOutput(status);
|
|
17261
|
-
if (
|
|
17262
|
-
|
|
17278
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
17279
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, outputStatus);
|
|
17263
17280
|
return 0;
|
|
17264
17281
|
}
|
|
17265
17282
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17290,9 +17307,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17290
17307
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17291
17308
|
...seoIndexing ? { seoIndexing } : {}
|
|
17292
17309
|
};
|
|
17293
|
-
const status = await new (0,
|
|
17294
|
-
if (
|
|
17295
|
-
|
|
17310
|
+
const status = await new (0, _chunk7CILZKLEjs.DeeplineClient)().updateSharePage(name, request);
|
|
17311
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
17312
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, status);
|
|
17296
17313
|
return 0;
|
|
17297
17314
|
}
|
|
17298
17315
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17307,7 +17324,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17307
17324
|
return 2;
|
|
17308
17325
|
}
|
|
17309
17326
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17310
|
-
const client = new (0,
|
|
17327
|
+
const client = new (0, _chunk7CILZKLEjs.DeeplineClient)();
|
|
17311
17328
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17312
17329
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17313
17330
|
if (!revisionId && versionFlag) {
|
|
@@ -17324,8 +17341,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17324
17341
|
revisionId ? { revisionId } : {}
|
|
17325
17342
|
);
|
|
17326
17343
|
const outputStatus = shareStatusForOutput(status);
|
|
17327
|
-
if (
|
|
17328
|
-
|
|
17344
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
17345
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, outputStatus);
|
|
17329
17346
|
return 0;
|
|
17330
17347
|
}
|
|
17331
17348
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17350,9 +17367,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17350
17367
|
return 2;
|
|
17351
17368
|
}
|
|
17352
17369
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17353
|
-
const status = await new (0,
|
|
17354
|
-
if (
|
|
17355
|
-
|
|
17370
|
+
const status = await new (0, _chunk7CILZKLEjs.DeeplineClient)().unpublishSharePage(name);
|
|
17371
|
+
if (_chunkM2UL4ZS5js.argsWantJson.call(void 0, args)) {
|
|
17372
|
+
_chunkM2UL4ZS5js.printCompactJson.call(void 0, status);
|
|
17356
17373
|
return 0;
|
|
17357
17374
|
}
|
|
17358
17375
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17427,4 +17444,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17427
17444
|
|
|
17428
17445
|
|
|
17429
17446
|
|
|
17430
|
-
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 =
|
|
17447
|
+
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 = _chunk3W6E3WVUjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunk3W6E3WVUjs.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;
|