deepline 0.3.514 → 0.3.516
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/errors.ts +1 -0
- package/dist/bundling-sources/sdk/src/http-core.ts +9 -4
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +30 -15
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +71 -1
- package/dist/bundling-sources/shared_libs/play-runtime/secret-redaction.ts +20 -7
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +3 -1
- package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +45 -0
- package/dist/bundling-sources/shared_libs/tool-execution-error.ts +45 -0
- package/dist/cli/{artifacts-GNFL5LY4.mjs → artifacts-G56FISIE.mjs} +9 -9
- package/dist/cli/{artifacts-OZRO4LHT.js → artifacts-KMWS32R5.js} +21 -21
- package/dist/cli/auth-6EIEZ3UE.js +43 -0
- package/dist/cli/{auth-53EDAX7Y.mjs → auth-RSS7MOBV.mjs} +7 -7
- package/dist/cli/{billing-ZMX2V5X3.mjs → billing-2ALO3XEG.mjs} +10 -10
- package/dist/cli/{billing-B6V3FELL.js → billing-RCC6WBIZ.js} +93 -93
- package/dist/cli/{chunk-753MZFDF.mjs → chunk-2YEFJHAF.mjs} +3 -3
- package/dist/cli/{chunk-BBDWIUJA.js → chunk-4IIK6GIY.js} +17 -17
- package/dist/cli/{chunk-DMBCJFGY.mjs → chunk-5NU37KME.mjs} +2 -2
- package/dist/cli/{chunk-Z5WO6IBV.mjs → chunk-6ADGVZRX.mjs} +21 -6
- package/dist/cli/{chunk-RNSHCJME.js → chunk-6Y3DDRRN.js} +30 -30
- package/dist/cli/{chunk-NXT52SIV.js → chunk-6ZLL5GDN.js} +2 -2
- package/dist/cli/{chunk-QSFAUGFK.js → chunk-72L5HQ3J.js} +5 -5
- package/dist/cli/{chunk-DLYWOHO4.mjs → chunk-72MFP7V4.mjs} +1 -1
- package/dist/cli/{chunk-MF7ZVWJK.js → chunk-7R2V5Z6O.js} +41 -41
- package/dist/cli/{chunk-W3TN352L.mjs → chunk-C2SR3X7Y.mjs} +4 -4
- package/dist/cli/{chunk-76M3DL5G.mjs → chunk-C72J6JE3.mjs} +1 -1
- package/dist/cli/{chunk-RMRZ4BC4.mjs → chunk-CA24C3XL.mjs} +4 -4
- package/dist/cli/{chunk-2RCZCWPO.js → chunk-CKEZXNMV.js} +6 -6
- package/dist/cli/{chunk-C24VEYSP.js → chunk-D4OZSC3C.js} +8 -4
- package/dist/cli/{chunk-EVTD3ELD.mjs → chunk-E7ZM2ZRD.mjs} +5 -5
- package/dist/cli/{chunk-MJIS4XAZ.mjs → chunk-EYWP5JPU.mjs} +4 -4
- package/dist/cli/{chunk-TG4IMWAL.js → chunk-FIIBDWAO.js} +55 -55
- package/dist/cli/{chunk-7MJYZ33I.mjs → chunk-GJYLC4JB.mjs} +1 -1
- package/dist/cli/{chunk-7MBI2OLW.mjs → chunk-H6BSB2YJ.mjs} +1 -1
- package/dist/cli/{chunk-N4TR6QRI.mjs → chunk-HT675XNR.mjs} +1 -1
- package/dist/cli/{chunk-IZJGOMCW.mjs → chunk-HY6KAW5H.mjs} +5 -5
- package/dist/cli/{chunk-ILITNKGM.mjs → chunk-J4VMWSQK.mjs} +7 -7
- package/dist/cli/{chunk-TZS4G7CS.js → chunk-JB6FEEDQ.js} +2 -2
- package/dist/cli/{chunk-6FYGFIXD.mjs → chunk-JPLEDOEW.mjs} +2 -2
- package/dist/cli/{chunk-7ZCXQDOQ.mjs → chunk-LCKAG5RL.mjs} +2 -2
- package/dist/cli/{chunk-RVMV4MXO.mjs → chunk-LWUFEX26.mjs} +3 -3
- package/dist/cli/{chunk-FPWOEK7G.js → chunk-LZROM6VQ.js} +2 -2
- package/dist/cli/{chunk-RLVSWAWB.js → chunk-N6Q5SDGA.js} +62 -51
- package/dist/cli/{chunk-A6QCMBGL.js → chunk-NRO3NTVO.js} +5 -5
- package/dist/cli/{chunk-VLIDBQYL.js → chunk-P6AADORO.js} +3 -3
- package/dist/cli/{chunk-55WBE4UK.js → chunk-PKKSXXZ5.js} +26 -26
- package/dist/cli/{chunk-G6PUQQJP.js → chunk-PMS3LQ6B.js} +5 -5
- package/dist/cli/{chunk-JC3ABOZP.js → chunk-PPYJXP4Z.js} +38 -23
- package/dist/cli/{chunk-6SSISVXD.mjs → chunk-PVVWKOEB.mjs} +8 -7
- package/dist/cli/{chunk-DBBLPDXK.mjs → chunk-Q47MAAHI.mjs} +1 -1
- package/dist/cli/{chunk-2CTTSNFE.js → chunk-QG3MRMU5.js} +58 -57
- package/dist/cli/{chunk-53F6JDQ3.mjs → chunk-QG4LIOGI.mjs} +2 -2
- package/dist/cli/{chunk-4QF2K7TM.mjs → chunk-QNHHZ63P.mjs} +1 -1
- package/dist/cli/{chunk-A253CMOI.js → chunk-QUSYG3VP.js} +8 -8
- package/dist/cli/{chunk-T4NQ2ZOH.js → chunk-QX7WDG4V.js} +11 -11
- package/dist/cli/{chunk-MQK5SY5N.js → chunk-RB3OR32I.js} +16 -16
- package/dist/cli/{chunk-RFN7OKT2.mjs → chunk-RB5EMAWD.mjs} +1 -1
- package/dist/cli/{chunk-WP3ULMRU.js → chunk-RLI6FDQM.js} +6 -6
- package/dist/cli/{chunk-TMQUMILM.js → chunk-RVHUW4TN.js} +2 -2
- package/dist/cli/{chunk-DIAWYWT5.js → chunk-SQWET4SL.js} +18 -1
- package/dist/cli/{chunk-OZDT2CZW.mjs → chunk-STR5LXK4.mjs} +1 -1
- package/dist/cli/{chunk-ALJJRZNJ.js → chunk-T2N3B7IQ.js} +8 -8
- package/dist/cli/{chunk-OQ4JV3IW.js → chunk-TZNQRKDF.js} +1 -1
- package/dist/cli/{chunk-CUMA6DE2.js → chunk-UW5QWTUG.js} +19 -19
- package/dist/cli/{chunk-G6A7CGFV.mjs → chunk-V46UBZBJ.mjs} +6 -3
- package/dist/cli/{chunk-R5PJ6XZI.js → chunk-VIZJIBI4.js} +10 -10
- package/dist/cli/{chunk-Y2RIMVEM.js → chunk-W5I53WQ4.js} +112 -112
- package/dist/cli/{chunk-H7L5MS5E.mjs → chunk-WCQ7JGDV.mjs} +4 -4
- package/dist/cli/{chunk-7KD4IYLA.js → chunk-WE223LFR.js} +19 -19
- package/dist/cli/{chunk-H53YG6QG.mjs → chunk-X2YP36YP.mjs} +1 -1
- package/dist/cli/{chunk-LV2DGEJ3.js → chunk-XEQBYK4B.js} +16 -13
- package/dist/cli/{chunk-5LBXLQRW.js → chunk-YS7AI7R6.js} +108 -108
- package/dist/cli/{chunk-HJ5B67S3.mjs → chunk-YXGTO5XA.mjs} +8 -4
- package/dist/cli/{chunk-54IH5U3I.mjs → chunk-Z3KLCDCB.mjs} +23 -12
- package/dist/cli/{chunk-6OIRN4PC.mjs → chunk-ZFRN3B2R.mjs} +2 -2
- package/dist/cli/{chunk-EO52BKGA.mjs → chunk-ZMCQP4EU.mjs} +11 -11
- package/dist/cli/{chunk-HBL4PM5Q.mjs → chunk-ZPGGW27Q.mjs} +17 -0
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-2BLYUV2G.js → csv-RPR64UBS.js} +15 -15
- package/dist/cli/{csv-ONKAMLL4.mjs → csv-YXK5TB47.mjs} +6 -6
- package/dist/cli/{db-YKT6LEQ3.js → db-KO3JCGRG.js} +36 -36
- package/dist/cli/{db-4GVSGAXL.mjs → db-UQYILAMF.mjs} +9 -9
- package/dist/cli/describe-BPX3U2BF.js +50 -0
- package/dist/cli/describe-P2OK5X2S.mjs +50 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-VFCU5NGH.js → executions-5Z7H7HV3.js} +11 -11
- package/dist/cli/{executions-7OSL25KJ.mjs → executions-IQCRQXVA.mjs} +9 -9
- package/dist/cli/{feedback-ERTOLEC4.js → feedback-EDZJDARP.js} +12 -12
- package/dist/cli/{feedback-RPZELEA5.mjs → feedback-ZO6A4HTV.mjs} +7 -7
- package/dist/cli/{git-XKRQZ4A6.mjs → git-OBXSILWM.mjs} +7 -7
- package/dist/cli/git-Y34J73QC.js +25 -0
- package/dist/cli/index.js +150 -150
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/{legacy-noops-MZCFS2FQ.mjs → legacy-noops-4UJM3FMN.mjs} +8 -8
- package/dist/cli/{legacy-noops-HG3M5HGZ.js → legacy-noops-HKXU2EU6.js} +11 -11
- package/dist/cli/{monitors-MESMMU5P.js → monitors-7EP3Q2DX.js} +110 -110
- package/dist/cli/{monitors-GBO5XAEZ.mjs → monitors-ZXF2KCW7.mjs} +10 -10
- package/dist/cli/{org-DJRNWIPO.mjs → org-EDHCUR6V.mjs} +9 -9
- package/dist/cli/{org-EZPREEWH.js → org-GFGOTUWP.js} +75 -75
- package/dist/cli/{pages-36BHVOFL.mjs → pages-EGEWMPJN.mjs} +9 -9
- package/dist/cli/{pages-ACI7VV6I.js → pages-TLFQQL5S.js} +21 -21
- package/dist/cli/{play-SUSVQHX5.mjs → play-NBO3MPDL.mjs} +22 -22
- package/dist/cli/{play-KCLLAGWR.js → play-XDHJY5R4.js} +392 -392
- package/dist/cli/{providers-MV2YW3J5.mjs → providers-NXJ7WPNH.mjs} +9 -9
- package/dist/cli/{providers-YFO3EFLK.js → providers-RU6BGEDM.js} +12 -12
- package/dist/cli/{quickstart-MATFTZVQ.js → quickstart-4ZZBMZPF.js} +8 -8
- package/dist/cli/{quickstart-KMXU2T3Z.mjs → quickstart-YBNDPNAR.mjs} +6 -6
- package/dist/cli/{run-UW5FM64G.js → run-374CTJBV.js} +46 -46
- package/dist/cli/{run-YRYVGUCJ.mjs → run-LX52KVZM.mjs} +27 -27
- package/dist/cli/{search-WF3Q3I5X.mjs → search-EH6JPV62.mjs} +11 -11
- package/dist/cli/search-YS4DHSQC.js +33 -0
- package/dist/cli/{search-output-BG743WAM.js → search-output-NATLJOWW.js} +9 -9
- package/dist/cli/{search-output-THOAHTCU.mjs → search-output-XIQERUHF.mjs} +7 -7
- package/dist/cli/{secrets-EOGBWN44.js → secrets-A3UXDE5V.js} +18 -18
- package/dist/cli/{secrets-LM7OTAUE.mjs → secrets-VRJQFUKF.mjs} +9 -9
- package/dist/cli/sessions-5TTH5FGZ.mjs +18 -0
- package/dist/cli/sessions-EXII5VOV.js +18 -0
- package/dist/cli/{settings-OWE3EEG7.js → settings-LX5EGLVT.js} +89 -89
- package/dist/cli/{settings-JXTFX5G2.mjs → settings-VRGFTOTJ.mjs} +16 -16
- package/dist/cli/{setup-FG37SKMB.mjs → setup-FXP5Y3Y6.mjs} +12 -12
- package/dist/cli/{setup-Z5BEQKA7.js → setup-QL4YWKOR.js} +52 -52
- package/dist/cli/skills-5L4CYX3V.js +37 -0
- package/dist/cli/{skills-UGNCBZTJ.mjs → skills-ET4PMBJE.mjs} +10 -10
- package/dist/cli/tools-5V77VIUA.js +57 -0
- package/dist/cli/{tools-J3PKLQSL.mjs → tools-WPL3NZAA.mjs} +20 -20
- package/dist/cli/update-G5RSSWM5.js +35 -0
- package/dist/cli/{update-GGZ2XTMZ.mjs → update-OCAHAKL2.mjs} +12 -12
- package/dist/cli/{workflow-AUZCSCZP.js → workflow-CWO3XL4O.js} +20 -20
- package/dist/cli/{workflow-C66BBXHH.mjs → workflow-NPZ2RLQG.mjs} +10 -10
- package/dist/{client-CmlKSBXd.d.ts → client-CQSPuqxh.d.ts} +1 -1
- package/dist/{client-By7bUS8h.d.mts → client-K1g4ab5Y.d.mts} +1 -1
- package/dist/{client-core-BZ3tpY_J.d.mts → client-core-BksGf5Gd.d.mts} +1 -1
- package/dist/{client-core-BM0mKhgp.d.ts → client-core-BlaqOlQ7.d.ts} +1 -1
- package/dist/{compiler-manifest-BeURaD5Y.d.mts → compiler-manifest-BliMS7ax.d.mts} +14 -1
- package/dist/{compiler-manifest-BeURaD5Y.d.ts → compiler-manifest-BliMS7ax.d.ts} +14 -1
- package/dist/{errors-kBuT4kGK.d.mts → errors-BZ6Zq1cz.d.mts} +1 -1
- package/dist/{errors-BoPXPrSy.d.ts → errors-xfNscfS1.d.ts} +1 -1
- package/dist/{index-DC7oRAAC.d.mts → index-DbvCg4zg.d.mts} +1 -1
- package/dist/{index-D0crdGM1.d.ts → index-FGdQv8J8.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +13 -13
- package/dist/index.mjs +9 -9
- package/dist/install-integrity.json +126 -126
- 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/csv-data-input.js +3 -3
- package/dist/plays/csv-data-input.mjs +2 -2
- 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/plays/run-request.js +3 -3
- package/dist/plays/run-request.mjs +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +12 -12
- package/dist/server.mjs +6 -6
- package/package.json +1 -1
- package/dist/cli/auth-SM5GLO45.js +0 -43
- package/dist/cli/describe-KPGQP4LH.js +0 -50
- package/dist/cli/describe-PRT2WQMS.mjs +0 -50
- package/dist/cli/git-U353JURQ.js +0 -25
- package/dist/cli/search-4ZQOFG7G.js +0 -33
- package/dist/cli/sessions-GDSJ72XI.js +0 -18
- package/dist/cli/sessions-SP2JL27H.mjs +0 -18
- package/dist/cli/skills-SIX5OTNX.js +0 -37
- package/dist/cli/tools-EZOV37MQ.js +0 -57
- package/dist/cli/update-ISU7YN34.js +0 -35
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk4IIK6GIYjs = require('./chunk-4IIK6GIY.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -18,15 +18,15 @@ var _chunkBBDWIUJAjs = require('./chunk-BBDWIUJA.js');
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkRLI6FDQMjs = require('./chunk-RLI6FDQM.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkQX7WDG4Vjs = require('./chunk-QX7WDG4V.js');
|
|
25
25
|
require('./chunk-D3BCSAN7.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var _chunkPKKSXXZ5js = require('./chunk-PKKSXXZ5.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
@@ -47,14 +47,14 @@ var _chunkKQSTV4MWjs = require('./chunk-KQSTV4MW.js');
|
|
|
47
47
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
48
48
|
|
|
49
49
|
|
|
50
|
-
var
|
|
50
|
+
var _chunkNRO3NTVOjs = require('./chunk-NRO3NTVO.js');
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunk72L5HQ3Jjs = require('./chunk-72L5HQ3J.js');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkPMS3LQ6Bjs = require('./chunk-PMS3LQ6B.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -67,7 +67,7 @@ var _chunkG6PUQQJPjs = require('./chunk-G6PUQQJP.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkYS7AI7R6js = require('./chunk-YS7AI7R6.js');
|
|
71
71
|
require('./chunk-E4CABWXL.js');
|
|
72
72
|
|
|
73
73
|
|
|
@@ -82,7 +82,7 @@ require('./chunk-E4CABWXL.js');
|
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
|
|
85
|
-
var
|
|
85
|
+
var _chunk6Y3DDRRNjs = require('./chunk-6Y3DDRRN.js');
|
|
86
86
|
|
|
87
87
|
|
|
88
88
|
|
|
@@ -91,19 +91,19 @@ require('./chunk-WSGXBROE.js');
|
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
|
|
94
|
-
var
|
|
94
|
+
var _chunkCKEZXNMVjs = require('./chunk-CKEZXNMV.js');
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
|
|
100
|
-
var
|
|
101
|
-
require('./chunk-
|
|
100
|
+
var _chunkLZROM6VQjs = require('./chunk-LZROM6VQ.js');
|
|
101
|
+
require('./chunk-N6Q5SDGA.js');
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
|
|
105
|
-
var
|
|
106
|
-
require('./chunk-
|
|
105
|
+
var _chunkP6AADOROjs = require('./chunk-P6AADORO.js');
|
|
106
|
+
require('./chunk-UW5QWTUG.js');
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
var _chunkR7J7CJPZjs = require('./chunk-R7J7CJPZ.js');
|
|
@@ -123,17 +123,17 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
|
123
123
|
|
|
124
124
|
|
|
125
125
|
|
|
126
|
-
var
|
|
127
|
-
require('./chunk-
|
|
126
|
+
var _chunkXEQBYK4Bjs = require('./chunk-XEQBYK4B.js');
|
|
127
|
+
require('./chunk-QUSYG3VP.js');
|
|
128
128
|
|
|
129
129
|
|
|
130
|
-
var
|
|
131
|
-
require('./chunk-
|
|
130
|
+
var _chunkQG3MRMU5js = require('./chunk-QG3MRMU5.js');
|
|
131
|
+
require('./chunk-T2N3B7IQ.js');
|
|
132
132
|
require('./chunk-XNYIZMNQ.js');
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
var
|
|
136
|
-
require('./chunk-
|
|
135
|
+
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
136
|
+
require('./chunk-TZNQRKDF.js');
|
|
137
137
|
require('./chunk-OG64RBAC.js');
|
|
138
138
|
|
|
139
139
|
|
|
@@ -2115,7 +2115,7 @@ function resolveField(key, command) {
|
|
|
2115
2115
|
function printSettings(result, json, name) {
|
|
2116
2116
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2117
2117
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2118
|
-
|
|
2118
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
2119
2119
|
{
|
|
2120
2120
|
...result,
|
|
2121
2121
|
settings: Object.fromEntries(
|
|
@@ -2159,7 +2159,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2159
2159
|
valueSyntax: field.cli.valueSyntax,
|
|
2160
2160
|
examples: field.cli.examples
|
|
2161
2161
|
}));
|
|
2162
|
-
|
|
2162
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
2163
2163
|
{
|
|
2164
2164
|
fields: descriptions,
|
|
2165
2165
|
render: {
|
|
@@ -2184,7 +2184,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2184
2184
|
async (options, command) => {
|
|
2185
2185
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2186
2186
|
printSettings(
|
|
2187
|
-
await new (0,
|
|
2187
|
+
await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2188
2188
|
options.json,
|
|
2189
2189
|
options.name
|
|
2190
2190
|
);
|
|
@@ -2215,7 +2215,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2215
2215
|
);
|
|
2216
2216
|
}
|
|
2217
2217
|
if (options.dryRun) {
|
|
2218
|
-
|
|
2218
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
2219
2219
|
{
|
|
2220
2220
|
dryRun: true,
|
|
2221
2221
|
play,
|
|
@@ -2236,7 +2236,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2236
2236
|
return;
|
|
2237
2237
|
}
|
|
2238
2238
|
printSettings(
|
|
2239
|
-
await new (0,
|
|
2239
|
+
await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2240
2240
|
options.json
|
|
2241
2241
|
);
|
|
2242
2242
|
};
|
|
@@ -2262,13 +2262,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2262
2262
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2263
2263
|
{ exitCode: 2 }
|
|
2264
2264
|
);
|
|
2265
|
-
const page = await new (0,
|
|
2265
|
+
const page = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2266
2266
|
root: options.root,
|
|
2267
2267
|
limit,
|
|
2268
2268
|
cursor: options.cursor
|
|
2269
2269
|
});
|
|
2270
2270
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2271
|
-
|
|
2271
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
2272
2272
|
{
|
|
2273
2273
|
...page,
|
|
2274
2274
|
nextCommand,
|
|
@@ -2319,7 +2319,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2319
2319
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2320
2320
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2321
2321
|
};
|
|
2322
|
-
const client = new (0,
|
|
2322
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
2323
2323
|
const paths = [];
|
|
2324
2324
|
let cursor;
|
|
2325
2325
|
do {
|
|
@@ -2381,7 +2381,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2381
2381
|
moved.push(move.playName);
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
2384
|
-
|
|
2384
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
2385
2385
|
{
|
|
2386
2386
|
dryRun: Boolean(options.dryRun),
|
|
2387
2387
|
from: options.from,
|
|
@@ -2509,7 +2509,7 @@ function triggerLines(view) {
|
|
|
2509
2509
|
return lines;
|
|
2510
2510
|
}
|
|
2511
2511
|
function printView(view, json) {
|
|
2512
|
-
|
|
2512
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
2513
2513
|
{
|
|
2514
2514
|
...view,
|
|
2515
2515
|
render: {
|
|
@@ -2522,7 +2522,7 @@ function printView(view, json) {
|
|
|
2522
2522
|
);
|
|
2523
2523
|
}
|
|
2524
2524
|
function printResult(result, json) {
|
|
2525
|
-
|
|
2525
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
2526
2526
|
{
|
|
2527
2527
|
...result,
|
|
2528
2528
|
render: {
|
|
@@ -2552,7 +2552,7 @@ async function mutate(command, options, build) {
|
|
|
2552
2552
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2553
2553
|
}
|
|
2554
2554
|
if (options.dryRun) {
|
|
2555
|
-
|
|
2555
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
2556
2556
|
{
|
|
2557
2557
|
dryRun: true,
|
|
2558
2558
|
play: options.play,
|
|
@@ -2571,7 +2571,7 @@ async function mutate(command, options, build) {
|
|
|
2571
2571
|
return;
|
|
2572
2572
|
}
|
|
2573
2573
|
printResult(
|
|
2574
|
-
await new (0,
|
|
2574
|
+
await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2575
2575
|
options.json
|
|
2576
2576
|
);
|
|
2577
2577
|
}
|
|
@@ -2604,7 +2604,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2604
2604
|
}).addHelpText("after", help2);
|
|
2605
2605
|
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) => {
|
|
2606
2606
|
printView(
|
|
2607
|
-
await new (0,
|
|
2607
|
+
await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2608
2608
|
options.json
|
|
2609
2609
|
);
|
|
2610
2610
|
});
|
|
@@ -2648,7 +2648,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2648
2648
|
if (options.auth === void 0) {
|
|
2649
2649
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2650
2650
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2651
|
-
const current = await new (0,
|
|
2651
|
+
const current = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2652
2652
|
options.play
|
|
2653
2653
|
);
|
|
2654
2654
|
return {
|
|
@@ -2725,7 +2725,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2725
2725
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2726
2726
|
"runtime.event": "Other event."
|
|
2727
2727
|
};
|
|
2728
|
-
var RUN_LOGS_KIND_HELP =
|
|
2728
|
+
var RUN_LOGS_KIND_HELP = _chunkYS7AI7R6js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2729
2729
|
kind,
|
|
2730
2730
|
description: KIND_DESCRIPTIONS[kind]
|
|
2731
2731
|
}));
|
|
@@ -2862,9 +2862,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2862
2862
|
const args = program.args;
|
|
2863
2863
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2864
2864
|
error.exitCode = 2;
|
|
2865
|
-
if (
|
|
2866
|
-
|
|
2867
|
-
Object.assign(new (0,
|
|
2865
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2866
|
+
_chunkXEQBYK4Bjs.printJsonError.call(void 0,
|
|
2867
|
+
Object.assign(new (0, _chunkYS7AI7R6js.RunEventQueryInputError)(error.message), {
|
|
2868
2868
|
exitCode: 2,
|
|
2869
2869
|
retryable: false
|
|
2870
2870
|
})
|
|
@@ -2908,14 +2908,14 @@ function parseQuery(args, resource) {
|
|
|
2908
2908
|
if (VALUE_FLAGS.has(flag)) {
|
|
2909
2909
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2910
2910
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2911
|
-
throw new (0,
|
|
2911
|
+
throw new (0, _chunkYS7AI7R6js.RunEventQueryInputError)(
|
|
2912
2912
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2913
2913
|
);
|
|
2914
2914
|
}
|
|
2915
2915
|
if (flag === "--sum") sums.push(value);
|
|
2916
2916
|
else {
|
|
2917
2917
|
if (values[flag] !== void 0) {
|
|
2918
|
-
throw new (0,
|
|
2918
|
+
throw new (0, _chunkYS7AI7R6js.RunEventQueryInputError)(
|
|
2919
2919
|
`${flag} may only be supplied once.`
|
|
2920
2920
|
);
|
|
2921
2921
|
}
|
|
@@ -2929,12 +2929,12 @@ function parseQuery(args, resource) {
|
|
|
2929
2929
|
}
|
|
2930
2930
|
if (arg.startsWith("-")) {
|
|
2931
2931
|
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.";
|
|
2932
|
-
throw new (0,
|
|
2932
|
+
throw new (0, _chunkYS7AI7R6js.RunEventQueryInputError)(
|
|
2933
2933
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2934
2934
|
);
|
|
2935
2935
|
}
|
|
2936
2936
|
if (runId !== void 0) {
|
|
2937
|
-
throw new (0,
|
|
2937
|
+
throw new (0, _chunkYS7AI7R6js.RunEventQueryInputError)(
|
|
2938
2938
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2939
2939
|
);
|
|
2940
2940
|
}
|
|
@@ -2942,7 +2942,7 @@ function parseQuery(args, resource) {
|
|
|
2942
2942
|
}
|
|
2943
2943
|
if (switches.has("--fields")) {
|
|
2944
2944
|
if (runId !== void 0) {
|
|
2945
|
-
throw new (0,
|
|
2945
|
+
throw new (0, _chunkYS7AI7R6js.RunEventQueryInputError)(
|
|
2946
2946
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2947
2947
|
);
|
|
2948
2948
|
}
|
|
@@ -2955,18 +2955,18 @@ function parseQuery(args, resource) {
|
|
|
2955
2955
|
)
|
|
2956
2956
|
];
|
|
2957
2957
|
if (incompatible.length) {
|
|
2958
|
-
throw new (0,
|
|
2958
|
+
throw new (0, _chunkYS7AI7R6js.RunEventQueryInputError)(
|
|
2959
2959
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2960
2960
|
);
|
|
2961
2961
|
}
|
|
2962
2962
|
}
|
|
2963
2963
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2964
|
-
throw new (0,
|
|
2964
|
+
throw new (0, _chunkYS7AI7R6js.RunEventQueryInputError)(
|
|
2965
2965
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2966
2966
|
);
|
|
2967
2967
|
}
|
|
2968
2968
|
if (sums.length && switches.has("--count")) {
|
|
2969
|
-
throw new (0,
|
|
2969
|
+
throw new (0, _chunkYS7AI7R6js.RunEventQueryInputError)(
|
|
2970
2970
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
2971
2971
|
);
|
|
2972
2972
|
}
|
|
@@ -2974,7 +2974,7 @@ function parseQuery(args, resource) {
|
|
|
2974
2974
|
if (operation === "count") {
|
|
2975
2975
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
2976
2976
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
2977
|
-
throw new (0,
|
|
2977
|
+
throw new (0, _chunkYS7AI7R6js.RunEventQueryInputError)(
|
|
2978
2978
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
2979
2979
|
);
|
|
2980
2980
|
}
|
|
@@ -3009,16 +3009,16 @@ function parseQuery(args, resource) {
|
|
|
3009
3009
|
];
|
|
3010
3010
|
}
|
|
3011
3011
|
}
|
|
3012
|
-
const request =
|
|
3012
|
+
const request = _chunkYS7AI7R6js.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3013
3013
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3014
3014
|
const backend = values["--runtime-backend"];
|
|
3015
3015
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3016
|
-
throw new (0,
|
|
3016
|
+
throw new (0, _chunkYS7AI7R6js.RunEventQueryInputError)(
|
|
3017
3017
|
"--runtime-backend must be daytona or modal."
|
|
3018
3018
|
);
|
|
3019
3019
|
}
|
|
3020
3020
|
if (backend && !namespace) {
|
|
3021
|
-
throw new (0,
|
|
3021
|
+
throw new (0, _chunkYS7AI7R6js.RunEventQueryInputError)(
|
|
3022
3022
|
"--runtime-backend requires --runtime-namespace."
|
|
3023
3023
|
);
|
|
3024
3024
|
}
|
|
@@ -3065,12 +3065,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3065
3065
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3066
3066
|
const record3 = failure;
|
|
3067
3067
|
const status = record3.statusCode;
|
|
3068
|
-
const exitCode = error instanceof
|
|
3068
|
+
const exitCode = error instanceof _chunkYS7AI7R6js.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;
|
|
3069
3069
|
const diagnostic = Object.assign(failure, {
|
|
3070
3070
|
exitCode,
|
|
3071
3071
|
retryable: exitCode === 5
|
|
3072
3072
|
});
|
|
3073
|
-
if (
|
|
3073
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) _chunkXEQBYK4Bjs.printJsonError.call(void 0, diagnostic);
|
|
3074
3074
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3075
3075
|
return exitCode;
|
|
3076
3076
|
}
|
|
@@ -3085,7 +3085,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3085
3085
|
...criteria
|
|
3086
3086
|
} = request;
|
|
3087
3087
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3088
|
-
const client = new (0,
|
|
3088
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
3089
3089
|
let result;
|
|
3090
3090
|
if (request.operation === "fields") {
|
|
3091
3091
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3151,13 +3151,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3151
3151
|
lines.push(`Next page: ${nextPage}`);
|
|
3152
3152
|
}
|
|
3153
3153
|
}
|
|
3154
|
-
|
|
3154
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
3155
3155
|
{
|
|
3156
3156
|
...result,
|
|
3157
3157
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3158
3158
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3159
3159
|
},
|
|
3160
|
-
{ json:
|
|
3160
|
+
{ json: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3161
3161
|
` }
|
|
3162
3162
|
);
|
|
3163
3163
|
return 0;
|
|
@@ -3228,7 +3228,7 @@ function rowCountsFrom(input) {
|
|
|
3228
3228
|
return { completed: c, failed: f, total: known };
|
|
3229
3229
|
}
|
|
3230
3230
|
function decodeRunStatus(status) {
|
|
3231
|
-
return
|
|
3231
|
+
return _chunk6Y3DDRRNjs.decodePlayRunPublicStatus.call(void 0, status);
|
|
3232
3232
|
}
|
|
3233
3233
|
function deriveRunExecutionState(input) {
|
|
3234
3234
|
const status = decodeRunStatus(input.status);
|
|
@@ -4076,7 +4076,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4076
4076
|
...text.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4077
4077
|
);
|
|
4078
4078
|
}
|
|
4079
|
-
const response = await new (0,
|
|
4079
|
+
const response = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4080
4080
|
keys
|
|
4081
4081
|
});
|
|
4082
4082
|
const failed = response.receipts.filter(
|
|
@@ -4088,7 +4088,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4088
4088
|
JSON.stringify(response, null, 2) + "\n",
|
|
4089
4089
|
{ flag: "wx", mode: 384 }
|
|
4090
4090
|
);
|
|
4091
|
-
|
|
4091
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
4092
4092
|
{
|
|
4093
4093
|
runId,
|
|
4094
4094
|
out: options.out,
|
|
@@ -4098,7 +4098,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4098
4098
|
{ json: true }
|
|
4099
4099
|
);
|
|
4100
4100
|
} else {
|
|
4101
|
-
|
|
4101
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4102
4102
|
}
|
|
4103
4103
|
if (failed)
|
|
4104
4104
|
process.exitCode = response.receipts.some(
|
|
@@ -4137,7 +4137,7 @@ includes nextCommand when another page is available.
|
|
|
4137
4137
|
{ exitCode: 2 }
|
|
4138
4138
|
);
|
|
4139
4139
|
}
|
|
4140
|
-
const page = await new (0,
|
|
4140
|
+
const page = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().runs.children(parentRunId, {
|
|
4141
4141
|
launchKey: options.launchKey,
|
|
4142
4142
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
4143
4143
|
limit
|
|
@@ -4152,7 +4152,7 @@ includes nextCommand when another page is available.
|
|
|
4152
4152
|
"--limit",
|
|
4153
4153
|
String(limit)
|
|
4154
4154
|
].join(" ") : null;
|
|
4155
|
-
|
|
4155
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
4156
4156
|
{
|
|
4157
4157
|
parentRunId,
|
|
4158
4158
|
launchKey: options.launchKey,
|
|
@@ -4188,7 +4188,7 @@ async function handleRunsHistory(options) {
|
|
|
4188
4188
|
throw new Error("--limit must be a positive integer.");
|
|
4189
4189
|
}
|
|
4190
4190
|
}
|
|
4191
|
-
const page = await new (0,
|
|
4191
|
+
const page = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().runs.history({
|
|
4192
4192
|
cursor: options.cursor,
|
|
4193
4193
|
orgId: options.org,
|
|
4194
4194
|
search: options.search,
|
|
@@ -4204,7 +4204,7 @@ async function handleRunsHistory(options) {
|
|
|
4204
4204
|
);
|
|
4205
4205
|
}
|
|
4206
4206
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
4207
|
-
|
|
4207
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
4208
4208
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
4209
4209
|
options.json ? { json: true } : {}
|
|
4210
4210
|
);
|
|
@@ -4257,12 +4257,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
4257
4257
|
}
|
|
4258
4258
|
}
|
|
4259
4259
|
if (options.notice) console.error(options.notice);
|
|
4260
|
-
const result = await new (0,
|
|
4260
|
+
const result = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().runs.rerun(runId, {
|
|
4261
4261
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
4262
4262
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
4263
4263
|
});
|
|
4264
|
-
if (
|
|
4265
|
-
|
|
4264
|
+
if (_chunkXEQBYK4Bjs.shouldEmitJson.call(void 0, options.json)) {
|
|
4265
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
4266
4266
|
} else if (result.rateLimited) {
|
|
4267
4267
|
console.log(`
|
|
4268
4268
|
${result.rateLimited.message}`);
|
|
@@ -4286,7 +4286,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
4286
4286
|
// src/cli/operations/runs-resume.ts
|
|
4287
4287
|
async function runRunsResumeCommand(runId) {
|
|
4288
4288
|
try {
|
|
4289
|
-
const result = await new (0,
|
|
4289
|
+
const result = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().runs.resume(runId);
|
|
4290
4290
|
if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
|
|
4291
4291
|
throw new Error(
|
|
4292
4292
|
"Invalid resume receipt: expected the requested run and a new positive epoch."
|
|
@@ -4297,7 +4297,7 @@ async function runRunsResumeCommand(runId) {
|
|
|
4297
4297
|
console.log(` inspect: deepline runs get ${result.runId}`);
|
|
4298
4298
|
return 0;
|
|
4299
4299
|
} catch (error) {
|
|
4300
|
-
if (error instanceof
|
|
4300
|
+
if (error instanceof _chunkSQWET4SLjs.DeeplineError && error.code && !error.message.includes(error.code))
|
|
4301
4301
|
error.message = `${error.code}: ${error.message}`;
|
|
4302
4302
|
throw error;
|
|
4303
4303
|
}
|
|
@@ -4337,7 +4337,7 @@ function resolveCliFileInput(value, binding, environment = hostFileInputPathEnvi
|
|
|
4337
4337
|
};
|
|
4338
4338
|
}
|
|
4339
4339
|
if (isUnambiguousLocalFilePath(trimmed)) {
|
|
4340
|
-
throw new (0,
|
|
4340
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
4341
4341
|
`Input ${binding.inputPath} is a local file path that is not a readable file: ${trimmed} (resolved to ${absolutePath}). Pass a readable file path or an https:// URL. No run was created.`,
|
|
4342
4342
|
void 0,
|
|
4343
4343
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -4392,7 +4392,7 @@ function runTableHitCounts(tableNamespace, summary) {
|
|
|
4392
4392
|
const columns = {};
|
|
4393
4393
|
for (const column of Object.keys(_nullishCoalesce(summary.columns, () => ( {})))) {
|
|
4394
4394
|
if (column.includes(".")) continue;
|
|
4395
|
-
const physical =
|
|
4395
|
+
const physical = _chunk6Y3DDRRNjs.sqlSafePlayColumnName.call(void 0, column);
|
|
4396
4396
|
if (legColumns.has(physical)) continue;
|
|
4397
4397
|
const count2 = filled[physical];
|
|
4398
4398
|
if (typeof count2 === "number") columns[column] = count2;
|
|
@@ -5120,13 +5120,13 @@ var RunDataset = class _RunDataset {
|
|
|
5120
5120
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5121
5121
|
_fs.writeFileSync.call(void 0,
|
|
5122
5122
|
absolutePath,
|
|
5123
|
-
`${JSON.stringify(
|
|
5123
|
+
`${JSON.stringify(_chunkRLI6FDQMjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5124
5124
|
`,
|
|
5125
5125
|
"utf-8"
|
|
5126
5126
|
);
|
|
5127
5127
|
return absolutePath;
|
|
5128
5128
|
}
|
|
5129
|
-
return
|
|
5129
|
+
return _chunkRLI6FDQMjs.writeRunDatasetCsv.call(void 0, {
|
|
5130
5130
|
rows: this.rows,
|
|
5131
5131
|
columns: this.#info.columns,
|
|
5132
5132
|
outPath
|
|
@@ -5143,7 +5143,7 @@ function resolveDatasetByName(available, datasetPath) {
|
|
|
5143
5143
|
function uniqueDatasetMatch(infos, selector) {
|
|
5144
5144
|
const matches = distinctCanonicalRowsInfos(infos);
|
|
5145
5145
|
if (matches.length > 1) {
|
|
5146
|
-
throw new (0,
|
|
5146
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
5147
5147
|
`Dataset selector '${selector}' is ambiguous; it matches multiple identities. Choose a unique Dataset ID or path.`,
|
|
5148
5148
|
void 0,
|
|
5149
5149
|
"RUN_EXPORT_DATASET_AMBIGUOUS",
|
|
@@ -5236,7 +5236,7 @@ function resolveReturnedDataset(output, available) {
|
|
|
5236
5236
|
if (legacy && (!datasetId || !legacy.datasetId)) {
|
|
5237
5237
|
return datasetId ? { ...legacy, datasetId } : legacy;
|
|
5238
5238
|
}
|
|
5239
|
-
throw new (0,
|
|
5239
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
5240
5240
|
`Returned Dataset '${_nullishCoalesce(_nullishCoalesce(datasetId, () => ( path)), () => ( "unknown"))}' is missing from the run catalog; cannot choose another dataset in its place.`,
|
|
5241
5241
|
void 0,
|
|
5242
5242
|
"RUN_EXPORT_DATASET_NOT_FOUND",
|
|
@@ -6631,7 +6631,7 @@ function renderOutcome(outcome) {
|
|
|
6631
6631
|
function printResult2(input) {
|
|
6632
6632
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
6633
6633
|
if (failed) process.exitCode = 1;
|
|
6634
|
-
|
|
6634
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
6635
6635
|
{
|
|
6636
6636
|
deployment: { ...input.deployment, status: input.status },
|
|
6637
6637
|
plays: input.outcomes,
|
|
@@ -6656,7 +6656,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6656
6656
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
6657
6657
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
6658
6658
|
});
|
|
6659
|
-
const { http, config } =
|
|
6659
|
+
const { http, config } = _chunkXEQBYK4Bjs.getAuthedHttpClient.call(void 0, );
|
|
6660
6660
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
6661
6661
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
6662
6662
|
deliveryId,
|
|
@@ -6683,7 +6683,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
6683
6683
|
},
|
|
6684
6684
|
{
|
|
6685
6685
|
bundle: bundleDeployPlayFile,
|
|
6686
|
-
fetchImpl:
|
|
6686
|
+
fetchImpl: _chunkQG3MRMU5js.fetchWithDeploymentProtection,
|
|
6687
6687
|
// The plays are already here: "opening" the source is naming it.
|
|
6688
6688
|
openSource: async () => ({
|
|
6689
6689
|
open: async () => ({ repoRoot: root })
|
|
@@ -6809,7 +6809,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
6809
6809
|
// src/cli/renderers/local-play-execution.ts
|
|
6810
6810
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
6811
6811
|
if (options.dryRun) {
|
|
6812
|
-
|
|
6812
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
6813
6813
|
return;
|
|
6814
6814
|
}
|
|
6815
6815
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -6981,7 +6981,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
6981
6981
|
const startedAt = Date.now();
|
|
6982
6982
|
try {
|
|
6983
6983
|
const result = run();
|
|
6984
|
-
|
|
6984
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
6985
6985
|
phase,
|
|
6986
6986
|
ms: Date.now() - startedAt,
|
|
6987
6987
|
ok: true,
|
|
@@ -6989,7 +6989,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
6989
6989
|
});
|
|
6990
6990
|
return result;
|
|
6991
6991
|
} catch (error) {
|
|
6992
|
-
|
|
6992
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
6993
6993
|
phase,
|
|
6994
6994
|
ms: Date.now() - startedAt,
|
|
6995
6995
|
ok: false,
|
|
@@ -7042,10 +7042,10 @@ function buildBarePrebuiltReferenceError(input) {
|
|
|
7042
7042
|
return new Error(buildBarePrebuiltReferenceMessage(input));
|
|
7043
7043
|
}
|
|
7044
7044
|
function isPlayNotFoundError(error) {
|
|
7045
|
-
return error instanceof
|
|
7045
|
+
return error instanceof _chunkSQWET4SLjs.DeeplineError && (error.statusCode === 404 || error.code === "PLAY_NOT_FOUND" || error.code === "NOT_FOUND");
|
|
7046
7046
|
}
|
|
7047
7047
|
function isExplicitMissingPlayReferenceError(error) {
|
|
7048
|
-
if (!(error instanceof
|
|
7048
|
+
if (!(error instanceof _chunkSQWET4SLjs.DeeplineError)) {
|
|
7049
7049
|
return false;
|
|
7050
7050
|
}
|
|
7051
7051
|
if (error.statusCode !== 404 && error.code !== "PLAY_NOT_FOUND") {
|
|
@@ -7196,9 +7196,9 @@ async function buildPlayReferenceNotFoundError(input) {
|
|
|
7196
7196
|
} catch (e8) {
|
|
7197
7197
|
suggestions = [];
|
|
7198
7198
|
}
|
|
7199
|
-
const sourceError = input.sourceError instanceof
|
|
7199
|
+
const sourceError = input.sourceError instanceof _chunkSQWET4SLjs.DeeplineError ? input.sourceError : null;
|
|
7200
7200
|
const code = _optionalChain([sourceError, 'optionalAccess', _250 => _250.code]) && sourceError.code !== "API_ERROR" ? sourceError.code : "PLAY_NOT_FOUND";
|
|
7201
|
-
return new (0,
|
|
7201
|
+
return new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
7202
7202
|
buildPlayReferenceNotFoundMessage({
|
|
7203
7203
|
requested: input.target,
|
|
7204
7204
|
command: input.command,
|
|
@@ -7213,7 +7213,7 @@ async function isMissingRunPlayReferenceError(input) {
|
|
|
7213
7213
|
if (isExplicitMissingPlayReferenceError(input.error)) {
|
|
7214
7214
|
return true;
|
|
7215
7215
|
}
|
|
7216
|
-
if (!(input.error instanceof
|
|
7216
|
+
if (!(input.error instanceof _chunkSQWET4SLjs.DeeplineError) || input.error.statusCode !== 404 || !/^no artifact-backed revision found for play:/i.test(
|
|
7217
7217
|
input.error.message.trim()
|
|
7218
7218
|
)) {
|
|
7219
7219
|
return false;
|
|
@@ -7467,7 +7467,7 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
|
|
|
7467
7467
|
if (!trimmed || isUrlValue(trimmed)) {
|
|
7468
7468
|
return;
|
|
7469
7469
|
}
|
|
7470
|
-
const keyIsCsvData = key ===
|
|
7470
|
+
const keyIsCsvData = key === _chunk6Y3DDRRNjs.CSV_DATA_INPUT_KEY;
|
|
7471
7471
|
const endsWithCsv = /\.csv$/i.test(trimmed);
|
|
7472
7472
|
const looksLikeFile = /\.[a-z0-9]{1,8}$/i.test(trimmed);
|
|
7473
7473
|
if (keyIsCsvData) {
|
|
@@ -7498,14 +7498,14 @@ function collectLocalFileInputRefs(value, inputPath, key, out) {
|
|
|
7498
7498
|
}
|
|
7499
7499
|
}
|
|
7500
7500
|
function preflightLocalFileInputs(runtimeInput) {
|
|
7501
|
-
if (
|
|
7502
|
-
const csvValue = runtimeInput[
|
|
7501
|
+
if (_chunk6Y3DDRRNjs.CSV_DATA_INPUT_KEY in runtimeInput) {
|
|
7502
|
+
const csvValue = runtimeInput[_chunk6Y3DDRRNjs.CSV_DATA_INPUT_KEY];
|
|
7503
7503
|
if (typeof csvValue === "string" && csvValue.trim().length === 0) {
|
|
7504
|
-
throw new (0,
|
|
7505
|
-
`Input ${
|
|
7504
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
7505
|
+
`Input ${_chunk6Y3DDRRNjs.CSV_DATA_INPUT_KEY} is an empty string. Provide a path to a CSV file (or a CSV URL). No run was created.`,
|
|
7506
7506
|
void 0,
|
|
7507
7507
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
7508
|
-
{ inputPath:
|
|
7508
|
+
{ inputPath: _chunk6Y3DDRRNjs.CSV_DATA_INPUT_KEY, reason: "csv_empty_string" }
|
|
7509
7509
|
);
|
|
7510
7510
|
}
|
|
7511
7511
|
}
|
|
@@ -7516,7 +7516,7 @@ function preflightLocalFileInputs(runtimeInput) {
|
|
|
7516
7516
|
for (const ref of refs) {
|
|
7517
7517
|
const absolutePath = _path.resolve.call(void 0, ref.value);
|
|
7518
7518
|
if (!_fs.existsSync.call(void 0, absolutePath)) {
|
|
7519
|
-
throw new (0,
|
|
7519
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
7520
7520
|
`Input ${ref.inputPath} references a local file that does not exist: ${ref.value} (resolved to ${absolutePath}). No run was created.`,
|
|
7521
7521
|
void 0,
|
|
7522
7522
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -7527,7 +7527,7 @@ function preflightLocalFileInputs(runtimeInput) {
|
|
|
7527
7527
|
try {
|
|
7528
7528
|
stat2 = _fs.statSync.call(void 0, absolutePath);
|
|
7529
7529
|
} catch (error) {
|
|
7530
|
-
throw new (0,
|
|
7530
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
7531
7531
|
`Input ${ref.inputPath} references a local file that is not readable: ${ref.value} (${error instanceof Error ? error.message : String(error)}). No run was created.`,
|
|
7532
7532
|
void 0,
|
|
7533
7533
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -7535,7 +7535,7 @@ function preflightLocalFileInputs(runtimeInput) {
|
|
|
7535
7535
|
);
|
|
7536
7536
|
}
|
|
7537
7537
|
if (!stat2.isFile()) {
|
|
7538
|
-
throw new (0,
|
|
7538
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
7539
7539
|
`Input ${ref.inputPath} references ${ref.value}, which is not a file. No run was created.`,
|
|
7540
7540
|
void 0,
|
|
7541
7541
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
@@ -7553,14 +7553,14 @@ function preflightCsvDataInput(ref, absolutePath) {
|
|
|
7553
7553
|
try {
|
|
7554
7554
|
content = _fs.readFileSync.call(void 0, absolutePath, "utf-8");
|
|
7555
7555
|
} catch (error) {
|
|
7556
|
-
throw new (0,
|
|
7556
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
7557
7557
|
`Input ${ref.inputPath} CSV ${ref.value} is not readable: ${error instanceof Error ? error.message : String(error)}. No run was created.`,
|
|
7558
7558
|
void 0,
|
|
7559
7559
|
"PLAY_INPUT_FILE_PREFLIGHT",
|
|
7560
7560
|
{ inputPath: ref.inputPath, path: ref.value }
|
|
7561
7561
|
);
|
|
7562
7562
|
}
|
|
7563
|
-
|
|
7563
|
+
_chunkNRO3NTVOjs.parseCsvDataInput.call(void 0, { inputPath: ref.inputPath, value: ref.value }, content);
|
|
7564
7564
|
}
|
|
7565
7565
|
function namedRunNeedsPlayDefinition(input) {
|
|
7566
7566
|
return input.revisionSelector === "latest" || inputContainsLocalFilePath(input.runtimeInput);
|
|
@@ -7572,7 +7572,7 @@ var NODE_STAGED_FILE_CODEC = {
|
|
|
7572
7572
|
)
|
|
7573
7573
|
};
|
|
7574
7574
|
async function stageFileInputArgs(input) {
|
|
7575
|
-
return
|
|
7575
|
+
return _chunk6Y3DDRRNjs.stageFileInputs.call(void 0, {
|
|
7576
7576
|
stage: (files) => input.client.stagePlayFiles(files),
|
|
7577
7577
|
runtimeInput: input.runtimeInput,
|
|
7578
7578
|
bindings: input.bindings,
|
|
@@ -7589,7 +7589,7 @@ function stageFile(logicalPath, absolutePath) {
|
|
|
7589
7589
|
logicalPath,
|
|
7590
7590
|
contentBase64: buffer.toString("base64"),
|
|
7591
7591
|
contentHash: _crypto.createHash.call(void 0, "sha256").update(buffer).digest("hex"),
|
|
7592
|
-
contentType:
|
|
7592
|
+
contentType: _chunk6Y3DDRRNjs.stagedFileContentType.call(void 0, absolutePath),
|
|
7593
7593
|
bytes: buffer.byteLength
|
|
7594
7594
|
};
|
|
7595
7595
|
}
|
|
@@ -7788,10 +7788,10 @@ function playStatusErrorText(status) {
|
|
|
7788
7788
|
function isRetryablePendingStartFailure(status) {
|
|
7789
7789
|
if (status.status !== "failed") return false;
|
|
7790
7790
|
if (status.runId && status.runId !== "pending") return false;
|
|
7791
|
-
return
|
|
7791
|
+
return _chunkYS7AI7R6js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
7792
7792
|
}
|
|
7793
7793
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
7794
|
-
if (error instanceof
|
|
7794
|
+
if (error instanceof _chunkSQWET4SLjs.DeeplineError && typeof error.statusCode === "number") {
|
|
7795
7795
|
return error.statusCode >= 500;
|
|
7796
7796
|
}
|
|
7797
7797
|
return true;
|
|
@@ -7814,14 +7814,14 @@ var RetryablePlayStartAttemptError = class extends Error {
|
|
|
7814
7814
|
this.name = "RetryablePlayStartAttemptError";
|
|
7815
7815
|
}
|
|
7816
7816
|
};
|
|
7817
|
-
var PlayStartOutcomeUnknownError = (_class = class extends
|
|
7817
|
+
var PlayStartOutcomeUnknownError = (_class = class extends _chunkSQWET4SLjs.DeeplineError {
|
|
7818
7818
|
__init() {this.retryable = false}
|
|
7819
7819
|
constructor(playName, cause, workflowId) {
|
|
7820
7820
|
const causeMessage = cause instanceof Error ? cause.message : String(cause);
|
|
7821
7821
|
const recoveryCommand = workflowId ? `deepline runs get ${_chunkAID3OYVJjs.shellQuote.call(void 0, workflowId)} --json` : `deepline runs list --play ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)} --json`;
|
|
7822
7822
|
super(
|
|
7823
7823
|
`Play ${playName}${workflowId ? ` (${workflowId})` : ""} may have started, but the CLI did not receive confirmation. Do not run it again until you inspect the original workspace with: ${recoveryCommand}`,
|
|
7824
|
-
cause instanceof
|
|
7824
|
+
cause instanceof _chunkSQWET4SLjs.DeeplineError ? cause.statusCode : void 0,
|
|
7825
7825
|
"PLAY_START_OUTCOME_UNKNOWN",
|
|
7826
7826
|
{
|
|
7827
7827
|
outcome: "unknown",
|
|
@@ -7838,13 +7838,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkDIAWYWT5js.Deep
|
|
|
7838
7838
|
}, _class);
|
|
7839
7839
|
function watchSurfaceReaches(state, provenance, level) {
|
|
7840
7840
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
7841
|
-
if (!
|
|
7841
|
+
if (!_chunkYS7AI7R6js.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
7842
7842
|
return false;
|
|
7843
7843
|
}
|
|
7844
|
-
if (
|
|
7844
|
+
if (_chunkYS7AI7R6js.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
7845
7845
|
return true;
|
|
7846
7846
|
}
|
|
7847
|
-
return state.verbose === true &&
|
|
7847
|
+
return state.verbose === true && _chunkYS7AI7R6js.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
7848
7848
|
}
|
|
7849
7849
|
function getEventPayload(event) {
|
|
7850
7850
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -8354,7 +8354,7 @@ function resolvePlayRunUrl(input) {
|
|
|
8354
8354
|
}
|
|
8355
8355
|
function openPlayDashboard(url, open2) {
|
|
8356
8356
|
if (open2 && url) {
|
|
8357
|
-
|
|
8357
|
+
_chunkXEQBYK4Bjs.openInBrowser.call(void 0, url);
|
|
8358
8358
|
}
|
|
8359
8359
|
}
|
|
8360
8360
|
function printPlayLogLines(input) {
|
|
@@ -8371,7 +8371,7 @@ function assertPlayWaitNotTimedOut(input) {
|
|
|
8371
8371
|
const hasRealRunId = input.workflowId.length > 0 && input.workflowId !== "pending";
|
|
8372
8372
|
const phaseSuffix = input.lastPhase && input.lastPhase.trim() ? ` (last observed phase: ${input.lastPhase.trim()})` : "";
|
|
8373
8373
|
const tailHint = hasRealRunId ? ` The CLI stopped waiting; it did not cancel the run. Check its current state with 'deepline runs get ${input.workflowId}', or reattach with 'deepline runs watch ${input.workflowId}'. Do not start another run just to retrieve results.` : ` No run id was received, so acceptance is unknown. Check recent runs with 'deepline runs list --play <play-name>' before submitting again.`;
|
|
8374
|
-
throw new (0,
|
|
8374
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
8375
8375
|
`Timed out waiting for play ${hasRealRunId ? input.workflowId : "<no run id>"} after ${Math.ceil(input.waitTimeoutMs / 1e3)}s${phaseSuffix}.${tailHint}`,
|
|
8376
8376
|
void 0,
|
|
8377
8377
|
"PLAY_WAIT_TIMEOUT",
|
|
@@ -8386,7 +8386,7 @@ function assertPlayWaitNotTimedOut(input) {
|
|
|
8386
8386
|
var RUN_WATCH_RETRY_INTERVAL_MS = 2e3;
|
|
8387
8387
|
var RUN_WATCH_ADMISSION_VISIBILITY_RETRY_INTERVAL_MS = 500;
|
|
8388
8388
|
function isAdmittedRunVisibilityDelay(error) {
|
|
8389
|
-
return error instanceof
|
|
8389
|
+
return error instanceof _chunkSQWET4SLjs.DeeplineError && error.statusCode === 404 && error.message.trim() === "Workflow run not found.";
|
|
8390
8390
|
}
|
|
8391
8391
|
async function waitForPlayCompletionByWatch(input) {
|
|
8392
8392
|
let lastPhase = null;
|
|
@@ -8435,7 +8435,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8435
8435
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
8436
8436
|
});
|
|
8437
8437
|
} catch (error) {
|
|
8438
|
-
if (
|
|
8438
|
+
if (_chunkYS7AI7R6js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
8439
8439
|
return null;
|
|
8440
8440
|
}
|
|
8441
8441
|
throw error;
|
|
@@ -8516,9 +8516,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8516
8516
|
signal: controller.signal,
|
|
8517
8517
|
deferLogs: !input.emitLogs,
|
|
8518
8518
|
omitTerminalLogs: !input.emitLogs,
|
|
8519
|
-
...
|
|
8519
|
+
..._chunkLZROM6VQjs.isCliTraceEnabled.call(void 0, ) ? {
|
|
8520
8520
|
onPoll: (observation) => {
|
|
8521
|
-
|
|
8521
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
8522
8522
|
phase: "play_watch_poll",
|
|
8523
8523
|
workflowId: input.workflowId,
|
|
8524
8524
|
ms: observation.durationMs,
|
|
@@ -8532,7 +8532,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8532
8532
|
full: input.fullJson,
|
|
8533
8533
|
billing: false,
|
|
8534
8534
|
onStatus: async (status) => {
|
|
8535
|
-
|
|
8535
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
8536
8536
|
phase: "play_watch_terminal_status",
|
|
8537
8537
|
workflowId: input.workflowId,
|
|
8538
8538
|
full: input.fullJson === true
|
|
@@ -8573,7 +8573,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
8573
8573
|
const terminal = await fetchTerminalStatus();
|
|
8574
8574
|
if (terminal) return terminal;
|
|
8575
8575
|
assertPlayWaitNotTimedOut({ ...input, lastPhase });
|
|
8576
|
-
throw new (0,
|
|
8576
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
8577
8577
|
`Run watch for ${input.workflowId} ended before a terminal status.`,
|
|
8578
8578
|
void 0,
|
|
8579
8579
|
"PLAY_WATCH_ENDED"
|
|
@@ -8621,7 +8621,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8621
8621
|
signal: controller.signal,
|
|
8622
8622
|
cliAdmission: useCliAdmission
|
|
8623
8623
|
});
|
|
8624
|
-
|
|
8624
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
8625
8625
|
phase: "cli.play_start_admission_attempt",
|
|
8626
8626
|
ms: Date.now() - postStartedAt,
|
|
8627
8627
|
ok: true,
|
|
@@ -8633,7 +8633,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8633
8633
|
});
|
|
8634
8634
|
break;
|
|
8635
8635
|
} catch (error) {
|
|
8636
|
-
|
|
8636
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
8637
8637
|
phase: "cli.play_start_admission_attempt",
|
|
8638
8638
|
ms: Date.now() - postStartedAt,
|
|
8639
8639
|
ok: false,
|
|
@@ -8655,7 +8655,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8655
8655
|
prepared.workflowId
|
|
8656
8656
|
);
|
|
8657
8657
|
}
|
|
8658
|
-
if (callerIntentV2 && error instanceof
|
|
8658
|
+
if (callerIntentV2 && error instanceof _chunk6Y3DDRRNjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
|
|
8659
8659
|
if (currentAttempt > 1) {
|
|
8660
8660
|
throw new PlayStartOutcomeUnknownError(
|
|
8661
8661
|
input.playName,
|
|
@@ -8676,7 +8676,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8676
8676
|
waitTimeoutMs: remaining === null ? null : Math.max(1, remaining)
|
|
8677
8677
|
});
|
|
8678
8678
|
}
|
|
8679
|
-
if (useCliAdmission && error instanceof
|
|
8679
|
+
if (useCliAdmission && error instanceof _chunk6Y3DDRRNjs.CliPlayAdmissionUnsupportedError) {
|
|
8680
8680
|
if (currentAttempt > 1) {
|
|
8681
8681
|
throw new PlayStartOutcomeUnknownError(
|
|
8682
8682
|
input.playName,
|
|
@@ -8684,7 +8684,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8684
8684
|
prepared.workflowId
|
|
8685
8685
|
);
|
|
8686
8686
|
}
|
|
8687
|
-
await
|
|
8687
|
+
await _chunkCKEZXNMVjs.checkPlayRunCompatibility.call(void 0,
|
|
8688
8688
|
input.client.baseUrl,
|
|
8689
8689
|
input.maintenancePolicy
|
|
8690
8690
|
);
|
|
@@ -8702,7 +8702,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8702
8702
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
8703
8703
|
);
|
|
8704
8704
|
}
|
|
8705
|
-
|
|
8705
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
8706
8706
|
phase: "cli.play_start_json_retry",
|
|
8707
8707
|
ms: 0,
|
|
8708
8708
|
ok: true,
|
|
@@ -8752,7 +8752,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8752
8752
|
}
|
|
8753
8753
|
const workflowId = started.workflowId;
|
|
8754
8754
|
if (!workflowId || workflowId === "pending") {
|
|
8755
|
-
throw new (0,
|
|
8755
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
8756
8756
|
"Play admission returned no run id. Check recent runs before submitting again.",
|
|
8757
8757
|
void 0,
|
|
8758
8758
|
"PLAY_START_MISSING_RUN_ID"
|
|
@@ -8782,7 +8782,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8782
8782
|
_nullishCoalesce(input.open, () => ( false))
|
|
8783
8783
|
);
|
|
8784
8784
|
input.progress.phase("running");
|
|
8785
|
-
|
|
8785
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
8786
8786
|
phase: "cli.play_start_admitted",
|
|
8787
8787
|
ms: Date.now() - startedAt,
|
|
8788
8788
|
ok: true,
|
|
@@ -8800,7 +8800,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8800
8800
|
startedAt,
|
|
8801
8801
|
waitTimeoutMs: input.waitTimeoutMs
|
|
8802
8802
|
});
|
|
8803
|
-
const initialStatus =
|
|
8803
|
+
const initialStatus = _chunkYS7AI7R6js.normalizePlayStatus.call(void 0, initialTerminal);
|
|
8804
8804
|
const status2 = await resolvePlayRunOutputStatus({
|
|
8805
8805
|
client: input.client,
|
|
8806
8806
|
status: initialStatus,
|
|
@@ -8808,7 +8808,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
8808
8808
|
jsonOutput: input.jsonOutput,
|
|
8809
8809
|
fromDurableStatus: true
|
|
8810
8810
|
});
|
|
8811
|
-
|
|
8811
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
8812
8812
|
phase: "play_watch_terminal_status",
|
|
8813
8813
|
workflowId,
|
|
8814
8814
|
full: true,
|
|
@@ -8899,7 +8899,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8899
8899
|
notice.value
|
|
8900
8900
|
);
|
|
8901
8901
|
} catch (error) {
|
|
8902
|
-
if (callerIntentV2 && error instanceof
|
|
8902
|
+
if (callerIntentV2 && error instanceof _chunk6Y3DDRRNjs.CliPlayAdmissionCallerIntentV2UnsupportedError) {
|
|
8903
8903
|
const remaining = input.waitTimeoutMs === null ? null : input.waitTimeoutMs - (Date.now() - admissionStartedAt);
|
|
8904
8904
|
assertPlayWaitNotTimedOut({
|
|
8905
8905
|
workflowId: "",
|
|
@@ -8912,8 +8912,8 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8912
8912
|
waitTimeoutMs: remaining === null ? null : Math.max(1, remaining)
|
|
8913
8913
|
});
|
|
8914
8914
|
}
|
|
8915
|
-
if (error instanceof
|
|
8916
|
-
await
|
|
8915
|
+
if (error instanceof _chunk6Y3DDRRNjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
8916
|
+
await _chunkCKEZXNMVjs.checkPlayRunCompatibility.call(void 0,
|
|
8917
8917
|
input.client.baseUrl,
|
|
8918
8918
|
input.maintenancePolicy,
|
|
8919
8919
|
admissionDeadline.signal
|
|
@@ -8940,7 +8940,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8940
8940
|
if (!(error instanceof RetryablePlayStartAttemptError)) throw error;
|
|
8941
8941
|
const retryDelayMs2 = retryDelays[attempt];
|
|
8942
8942
|
if (retryDelayMs2 === void 0) {
|
|
8943
|
-
throw new (0,
|
|
8943
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
8944
8944
|
`Play ${input.playName} did not start after retrying transient start failures.`,
|
|
8945
8945
|
void 0,
|
|
8946
8946
|
"PLAY_START_RETRY_EXHAUSTED",
|
|
@@ -8954,7 +8954,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8954
8954
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
8955
8955
|
);
|
|
8956
8956
|
}
|
|
8957
|
-
|
|
8957
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
8958
8958
|
phase: "cli.play_start_stream_retry",
|
|
8959
8959
|
ms: 0,
|
|
8960
8960
|
ok: true,
|
|
@@ -8975,7 +8975,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8975
8975
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
8976
8976
|
);
|
|
8977
8977
|
}
|
|
8978
|
-
|
|
8978
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
8979
8979
|
phase: "cli.play_start_stream_retry",
|
|
8980
8980
|
ms: 0,
|
|
8981
8981
|
ok: true,
|
|
@@ -8985,7 +8985,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
8985
8985
|
});
|
|
8986
8986
|
await sleepOrAbort(retryDelayMs, admissionDeadline.signal);
|
|
8987
8987
|
}
|
|
8988
|
-
throw new (0,
|
|
8988
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
8989
8989
|
`Play ${input.playName} did not start after retrying transient start failures.`,
|
|
8990
8990
|
void 0,
|
|
8991
8991
|
"PLAY_START_RETRY_EXHAUSTED"
|
|
@@ -9032,7 +9032,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9032
9032
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9033
9033
|
launchConfirmed = true;
|
|
9034
9034
|
await _optionalChain([input, 'access', _313 => _313.onRunAdmitted, 'optionalCall', _314 => _314(runId)]);
|
|
9035
|
-
|
|
9035
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
9036
9036
|
phase: "cli.play_start_admitted",
|
|
9037
9037
|
ms: Date.now() - startedAt,
|
|
9038
9038
|
ok: true,
|
|
@@ -9066,7 +9066,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9066
9066
|
full: input.fullJson
|
|
9067
9067
|
});
|
|
9068
9068
|
} catch (error) {
|
|
9069
|
-
if (
|
|
9069
|
+
if (_chunkYS7AI7R6js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9070
9070
|
return null;
|
|
9071
9071
|
}
|
|
9072
9072
|
throw error;
|
|
@@ -9208,7 +9208,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9208
9208
|
let fromDurableStatus = reuseFullTerminal;
|
|
9209
9209
|
let canonicalTerminal;
|
|
9210
9210
|
const streamedTerminalPackage = getPlayRunPackage(finalStatus);
|
|
9211
|
-
const streamedTerminalPlayRunPackage =
|
|
9211
|
+
const streamedTerminalPlayRunPackage = _chunk6Y3DDRRNjs.isPlayRunPackage.call(void 0,
|
|
9212
9212
|
streamedTerminalPackage
|
|
9213
9213
|
) ? streamedTerminalPackage : null;
|
|
9214
9214
|
const terminalEnvelopeIsComplete = finalStatus.status === "completed" && (event.type === "play.run.snapshot" || event.type === "play.run.final_status") && getEventPayload(event).replayed !== true && finalStatus.runId === lastKnownWorkflowId && !playRunPackageTextLedgerIncomplete(streamedTerminalPackage);
|
|
@@ -9237,7 +9237,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9237
9237
|
};
|
|
9238
9238
|
}
|
|
9239
9239
|
if (!canonicalTerminal) {
|
|
9240
|
-
|
|
9240
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
9241
9241
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
9242
9242
|
ms: Date.now() - startedAt,
|
|
9243
9243
|
ok: true,
|
|
@@ -9258,14 +9258,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9258
9258
|
fromDurableStatus
|
|
9259
9259
|
}) : canonicalTerminal;
|
|
9260
9260
|
if (input.fullJson === true) {
|
|
9261
|
-
|
|
9261
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
9262
9262
|
phase: "play_watch_terminal_status",
|
|
9263
9263
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
9264
9264
|
full: true,
|
|
9265
9265
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
9266
9266
|
});
|
|
9267
9267
|
}
|
|
9268
|
-
|
|
9268
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
9269
9269
|
phase: "cli.play_start_stream_terminal",
|
|
9270
9270
|
ms: Date.now() - startedAt,
|
|
9271
9271
|
ok: true,
|
|
@@ -9285,7 +9285,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9285
9285
|
clearTimeout(timeout);
|
|
9286
9286
|
}
|
|
9287
9287
|
controller.abort();
|
|
9288
|
-
|
|
9288
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
9289
9289
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
9290
9290
|
ms: Date.now() - startedAt,
|
|
9291
9291
|
ok: true,
|
|
@@ -9316,7 +9316,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9316
9316
|
if (timedOut) {
|
|
9317
9317
|
const terminal = await fetchKnownTerminalStatus();
|
|
9318
9318
|
if (terminal) {
|
|
9319
|
-
|
|
9319
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
9320
9320
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
9321
9321
|
ms: Date.now() - startedAt,
|
|
9322
9322
|
ok: true,
|
|
@@ -9336,7 +9336,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9336
9336
|
lastPhase
|
|
9337
9337
|
});
|
|
9338
9338
|
}
|
|
9339
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
9339
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkYS7AI7R6js.isTransientPlayRunReadError.call(void 0, error))) {
|
|
9340
9340
|
if (timeout) {
|
|
9341
9341
|
clearTimeout(timeout);
|
|
9342
9342
|
}
|
|
@@ -9347,7 +9347,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9347
9347
|
`
|
|
9348
9348
|
);
|
|
9349
9349
|
}
|
|
9350
|
-
|
|
9350
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
9351
9351
|
phase: "cli.play_start_stream_reconnect",
|
|
9352
9352
|
ms: Date.now() - startedAt,
|
|
9353
9353
|
ok: true,
|
|
@@ -9374,7 +9374,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9374
9374
|
});
|
|
9375
9375
|
}
|
|
9376
9376
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
9377
|
-
|
|
9377
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
9378
9378
|
phase: "cli.play_start_stream_transient_failure",
|
|
9379
9379
|
ms: Date.now() - startedAt,
|
|
9380
9380
|
ok: false,
|
|
@@ -9402,7 +9402,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9402
9402
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
9403
9403
|
);
|
|
9404
9404
|
}
|
|
9405
|
-
|
|
9405
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
9406
9406
|
phase: "cli.play_start_stream_reconnect",
|
|
9407
9407
|
ms: Date.now() - startedAt,
|
|
9408
9408
|
ok: true,
|
|
@@ -9431,7 +9431,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9431
9431
|
}
|
|
9432
9432
|
const phaseSuffix = lastPhase && lastPhase.trim() ? ` (last observed phase: ${lastPhase.trim()})` : "";
|
|
9433
9433
|
const idSuffix = lastKnownWorkflowId ? ` runId=${lastKnownWorkflowId}` : "";
|
|
9434
|
-
const endedBeforeConfirmation = new (0,
|
|
9434
|
+
const endedBeforeConfirmation = new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
9435
9435
|
`Play start request ended before terminal status was observed${idSuffix}${phaseSuffix}.`,
|
|
9436
9436
|
void 0,
|
|
9437
9437
|
"PLAY_START_STREAM_ENDED",
|
|
@@ -9482,7 +9482,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
9482
9482
|
"logs"
|
|
9483
9483
|
]);
|
|
9484
9484
|
function formatPlayLogLine(rawLine, state) {
|
|
9485
|
-
const classified =
|
|
9485
|
+
const classified = _chunkYS7AI7R6js.classifyLogLine.call(void 0, rawLine);
|
|
9486
9486
|
const line = classified.line;
|
|
9487
9487
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
9488
9488
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _336 => _336[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -9497,14 +9497,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9497
9497
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
9498
9498
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
9499
9499
|
if (providerWait && !state.verbose) {
|
|
9500
|
-
return
|
|
9500
|
+
return _chunkYS7AI7R6js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
9501
9501
|
}
|
|
9502
9502
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
9503
9503
|
if (mapProgress && !state.verbose) {
|
|
9504
|
-
return
|
|
9504
|
+
return _chunkYS7AI7R6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
9505
9505
|
}
|
|
9506
9506
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
9507
|
-
if (!
|
|
9507
|
+
if (!_chunkYS7AI7R6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9508
9508
|
return null;
|
|
9509
9509
|
}
|
|
9510
9510
|
if (state.emittedRunnerStarted) {
|
|
@@ -9517,7 +9517,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9517
9517
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
9518
9518
|
);
|
|
9519
9519
|
if (mapStart) {
|
|
9520
|
-
if (!
|
|
9520
|
+
if (!_chunkYS7AI7R6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9521
9521
|
return null;
|
|
9522
9522
|
}
|
|
9523
9523
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -9527,7 +9527,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
9527
9527
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
9528
9528
|
);
|
|
9529
9529
|
if (mapDone) {
|
|
9530
|
-
if (!
|
|
9530
|
+
if (!_chunkYS7AI7R6js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
9531
9531
|
return null;
|
|
9532
9532
|
}
|
|
9533
9533
|
const [, results, executed, cached] = mapDone;
|
|
@@ -10827,7 +10827,7 @@ function formatRecentRunLogLines(value) {
|
|
|
10827
10827
|
(line) => typeof line === "string"
|
|
10828
10828
|
);
|
|
10829
10829
|
if (tail.length === 0) return [];
|
|
10830
|
-
const shown = tail.map((line) =>
|
|
10830
|
+
const shown = tail.map((line) => _chunkYS7AI7R6js.classifyLogLine.call(void 0, line)).filter(
|
|
10831
10831
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
10832
10832
|
).slice(-8);
|
|
10833
10833
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -11125,11 +11125,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
11125
11125
|
}
|
|
11126
11126
|
function writePlayResult(status, jsonOutput, options) {
|
|
11127
11127
|
const packaged = getPlayRunPackage(status);
|
|
11128
|
-
if (status.package)
|
|
11128
|
+
if (status.package) _chunkRLI6FDQMjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
11129
11129
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _424 => _424.hits]), () => ( null));
|
|
11130
11130
|
if (jsonOutput) {
|
|
11131
11131
|
const payload2 = _optionalChain([options, 'optionalAccess', _425 => _425.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
11132
|
-
|
|
11132
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
11133
11133
|
hits ? { ...payload2, hits } : payload2,
|
|
11134
11134
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _426 => _426.jsonFields]) }
|
|
11135
11135
|
);
|
|
@@ -11145,7 +11145,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11145
11145
|
...buildPlayCompletionTextLines(status),
|
|
11146
11146
|
...formatRunHitsLines(hits)
|
|
11147
11147
|
];
|
|
11148
|
-
|
|
11148
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
11149
11149
|
json: false,
|
|
11150
11150
|
text: `${lines2.join("\n")}
|
|
11151
11151
|
`
|
|
@@ -11196,7 +11196,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
11196
11196
|
lines.push(...buildBillingRollupTextLines(status));
|
|
11197
11197
|
const compact = compactPlayStatus(status);
|
|
11198
11198
|
const payload = _optionalChain([options, 'optionalAccess', _428 => _428.fullJson]) ? status : compact;
|
|
11199
|
-
|
|
11199
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
11200
11200
|
{
|
|
11201
11201
|
...payload,
|
|
11202
11202
|
render: {
|
|
@@ -11395,7 +11395,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11395
11395
|
if (seenEnvelopeKeys.has(key)) {
|
|
11396
11396
|
const activeRun = !TERMINAL_PLAY_STATUSES.has(input.status.status);
|
|
11397
11397
|
const waitCommand = `${input.retryCommand} --wait`;
|
|
11398
|
-
throw new (0,
|
|
11398
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
11399
11399
|
"The backing dataset returned a Runtime Sheet row more than once while paging; the export is not ready to write. " + (activeRun ? `Wait for this same run: ${waitCommand}. Do not rerun the Play to retrieve results.` : `Retry with: ${input.retryCommand}`),
|
|
11400
11400
|
void 0,
|
|
11401
11401
|
"RUN_EXPORT_NOT_READY",
|
|
@@ -11420,7 +11420,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11420
11420
|
}
|
|
11421
11421
|
offset += page.rows.length;
|
|
11422
11422
|
}
|
|
11423
|
-
const withError =
|
|
11423
|
+
const withError = _chunkRLI6FDQMjs.tableExportHasFailedRows.call(void 0,
|
|
11424
11424
|
sheetRows.filter(
|
|
11425
11425
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
11426
11426
|
)
|
|
@@ -11436,7 +11436,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
11436
11436
|
return [
|
|
11437
11437
|
withError ? {
|
|
11438
11438
|
...exported,
|
|
11439
|
-
[
|
|
11439
|
+
[_chunkRLI6FDQMjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkRLI6FDQMjs.tableExportErrorCell.call(void 0,
|
|
11440
11440
|
row
|
|
11441
11441
|
)
|
|
11442
11442
|
} : exported
|
|
@@ -11526,7 +11526,7 @@ function assertDatasetHasExportableRows(input) {
|
|
|
11526
11526
|
const currentTableQueryCommand2 = input.rowsInfo.currentTableQueryCommand;
|
|
11527
11527
|
if (!TERMINAL_PLAY_STATUSES.has(input.status.status)) {
|
|
11528
11528
|
const waitCommand = `${retryCommand} --wait`;
|
|
11529
|
-
throw new (0,
|
|
11529
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
11530
11530
|
`Run ${input.status.runId} is ${runStatus}; this dataset has zero rows to export yet. Wait for this same run: ${waitCommand}. Do not start another run to retrieve results.`,
|
|
11531
11531
|
void 0,
|
|
11532
11532
|
"RUN_EXPORT_EMPTY",
|
|
@@ -11544,7 +11544,7 @@ function assertDatasetHasExportableRows(input) {
|
|
|
11544
11544
|
);
|
|
11545
11545
|
}
|
|
11546
11546
|
const explanation = terminalRunWithMissingAdvertisedRows ? ` The terminal result advertised ${advertisedRows} row(s), but none are currently attributed to this run's durable sheet. Those rows may have been reused from an earlier run or the projection may still be lagging; export refuses to guess another run's rows. Retry the same export after projection catches up (do not rerun the Play): ${retryCommand}. If it remains empty, inspect the full package with ${inspectCommand}` + (currentTableQueryCommand2 ? `, then inspect the current table's _run_id/_writer_run_id with ${currentTableQueryCommand2} and export the run that owns those rows` : " and export the run that owns the durable dataset") + "; this command will not use a database-wide table query that could mix runs." : ` The run status is '${runStatus || "unknown"}', so it likely failed before persisting rows to this dataset. That means provider calls may have been billed without a durable row; inspect ${inspectCommand}, fix the failure cause, then rerun the Play so completed receipts can be reused.`;
|
|
11547
|
-
throw new (0,
|
|
11547
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
11548
11548
|
`Run ${input.status.runId} has zero rows to export from dataset '${datasetLabel}'.` + explanation + (available.length > 0 ? ` Available datasets: ${available.join(", ")}.` : " No datasets were materialized for this run."),
|
|
11549
11549
|
void 0,
|
|
11550
11550
|
"RUN_EXPORT_EMPTY",
|
|
@@ -11599,7 +11599,7 @@ async function exportPlayStatusRows(client, status, outPath, options = {}) {
|
|
|
11599
11599
|
outPath,
|
|
11600
11600
|
options
|
|
11601
11601
|
});
|
|
11602
|
-
throw new (0,
|
|
11602
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
11603
11603
|
`Run ${status.runId} did not return a dataset at ${options.datasetPath}.` + (available.length > 0 ? ` Available datasets: ${available.join(", ")}.
|
|
11604
11604
|
${commands.join("\n")}` : ""),
|
|
11605
11605
|
void 0,
|
|
@@ -11615,7 +11615,7 @@ ${commands.join("\n")}` : ""),
|
|
|
11615
11615
|
outPath,
|
|
11616
11616
|
options
|
|
11617
11617
|
});
|
|
11618
|
-
throw new (0,
|
|
11618
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
11619
11619
|
`Run ${status.runId} returned multiple datasets. Choose one:
|
|
11620
11620
|
${commands.join("\n")}`,
|
|
11621
11621
|
void 0,
|
|
@@ -11638,7 +11638,7 @@ ${commands.join("\n")}`,
|
|
|
11638
11638
|
outPath,
|
|
11639
11639
|
options
|
|
11640
11640
|
});
|
|
11641
|
-
throw new (0,
|
|
11641
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
11642
11642
|
`Run ${status.runId} has multiple recovered datasets. Choose one:
|
|
11643
11643
|
${commands.join("\n")}`,
|
|
11644
11644
|
void 0,
|
|
@@ -11654,14 +11654,14 @@ ${commands.join("\n")}`,
|
|
|
11654
11654
|
);
|
|
11655
11655
|
}
|
|
11656
11656
|
if (!rowsInfo) {
|
|
11657
|
-
throw new (0,
|
|
11657
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
11658
11658
|
`Run ${status.runId} did not expose a row-shaped final output to export.`
|
|
11659
11659
|
);
|
|
11660
11660
|
}
|
|
11661
11661
|
const canExportPreview = rowsInfo.complete && !rowsInfo.currentTable;
|
|
11662
11662
|
if (rowsInfo.exportUnavailableReason === "returned_dataset_not_persisted") {
|
|
11663
11663
|
const datasetLabel = _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(options.datasetPath, () => ( rowsInfo.source)), () => ( rowsInfo.datasetId)), () => ( "result.rows"));
|
|
11664
|
-
throw new (0,
|
|
11664
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
11665
11665
|
_nullishCoalesce(rowsInfo.exportUnavailableMessage, () => ( `Run ${status.runId} returned rows for '${datasetLabel}' without a run-scoped durable dataset. Persist the rows with deepline.dataset("rows", rows).run() before returning them.`)),
|
|
11666
11666
|
void 0,
|
|
11667
11667
|
"RUN_EXPORT_NOT_AVAILABLE",
|
|
@@ -11696,7 +11696,7 @@ ${commands.join("\n")}`,
|
|
|
11696
11696
|
summary: options.summary
|
|
11697
11697
|
});
|
|
11698
11698
|
} catch (error) {
|
|
11699
|
-
if (error instanceof
|
|
11699
|
+
if (error instanceof _chunkSQWET4SLjs.DeeplineError && (error.code === "RUN_EXPORT_SCOPE_MISMATCH" || error.code === "RUN_EXPORT_NOT_READY")) {
|
|
11700
11700
|
throw error;
|
|
11701
11701
|
}
|
|
11702
11702
|
if (!canExportPreview) {
|
|
@@ -11737,7 +11737,7 @@ ${commands.join("\n")}`,
|
|
|
11737
11737
|
const previewReason = rowsInfo.currentTable ? "Legacy shared-table metadata does not prove this preview belongs to the run" : `Run output only includes ${rowsInfo.rows.length} preview row(s) of ${rowsInfo.totalRows}`;
|
|
11738
11738
|
const activeRun = !TERMINAL_PLAY_STATUSES.has(status.status);
|
|
11739
11739
|
const waitCommand = `${retryCommand} --wait`;
|
|
11740
|
-
throw new (0,
|
|
11740
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
11741
11741
|
`${previewReason}; the backing dataset was not ready to export yet. ` + (activeRun ? `The run is ${status.status}. Wait for this same run: ${waitCommand}. Do not rerun the Play to retrieve results.` : `Retry with: ${retryCommand}`),
|
|
11742
11742
|
void 0,
|
|
11743
11743
|
"RUN_EXPORT_NOT_READY",
|
|
@@ -11765,7 +11765,7 @@ ${commands.join("\n")}`,
|
|
|
11765
11765
|
return writeExport(guarded);
|
|
11766
11766
|
}
|
|
11767
11767
|
function extractActiveRunsFromError(error) {
|
|
11768
|
-
if (!(error instanceof
|
|
11768
|
+
if (!(error instanceof _chunkSQWET4SLjs.DeeplineError)) {
|
|
11769
11769
|
return [];
|
|
11770
11770
|
}
|
|
11771
11771
|
const response = _optionalChain([error, 'access', _451 => _451.details, 'optionalAccess', _452 => _452.response]);
|
|
@@ -11814,7 +11814,7 @@ function stringArrayField(record3, key) {
|
|
|
11814
11814
|
return value.filter((entry) => typeof entry === "string");
|
|
11815
11815
|
}
|
|
11816
11816
|
function extractPlayValidationErrors(value) {
|
|
11817
|
-
if (value instanceof
|
|
11817
|
+
if (value instanceof _chunkSQWET4SLjs.DeeplineError) {
|
|
11818
11818
|
return extractPlayValidationErrors(value.details);
|
|
11819
11819
|
}
|
|
11820
11820
|
if (!isRecord2(value)) {
|
|
@@ -11853,21 +11853,21 @@ function normalizePlayValidationError(error) {
|
|
|
11853
11853
|
if (!message.trim()) {
|
|
11854
11854
|
return error;
|
|
11855
11855
|
}
|
|
11856
|
-
return new (0,
|
|
11856
|
+
return new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
11857
11857
|
message,
|
|
11858
|
-
error instanceof
|
|
11859
|
-
error instanceof
|
|
11860
|
-
error instanceof
|
|
11858
|
+
error instanceof _chunkSQWET4SLjs.DeeplineError ? error.statusCode : void 0,
|
|
11859
|
+
error instanceof _chunkSQWET4SLjs.DeeplineError ? error.code : "PLAY_VALIDATION_ERROR",
|
|
11860
|
+
error instanceof _chunkSQWET4SLjs.DeeplineError ? error.details : void 0
|
|
11861
11861
|
);
|
|
11862
11862
|
}
|
|
11863
11863
|
async function normalizePlayStartError(client, error, playName, options = {}) {
|
|
11864
11864
|
const activeRuns = extractActiveRunsFromError(error);
|
|
11865
11865
|
if (activeRuns.length > 0) {
|
|
11866
|
-
return new (0,
|
|
11866
|
+
return new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
11867
11867
|
formatActiveRunConflictError({ playName, activeRuns }),
|
|
11868
|
-
error instanceof
|
|
11868
|
+
error instanceof _chunkSQWET4SLjs.DeeplineError ? error.statusCode : 409,
|
|
11869
11869
|
"ACTIVE_RUN_EXISTS",
|
|
11870
|
-
error instanceof
|
|
11870
|
+
error instanceof _chunkSQWET4SLjs.DeeplineError ? error.details : void 0
|
|
11871
11871
|
);
|
|
11872
11872
|
}
|
|
11873
11873
|
if (options.suggestMissingPlay && await isMissingRunPlayReferenceError({ client, error, playName })) {
|
|
@@ -11971,7 +11971,7 @@ function renderServerResultView(value) {
|
|
|
11971
11971
|
function writeStartedPlayRun(input) {
|
|
11972
11972
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
11973
11973
|
const run = input.package.run;
|
|
11974
|
-
|
|
11974
|
+
_chunkRLI6FDQMjs.recordPlayTermination.call(void 0, {
|
|
11975
11975
|
id: run.id,
|
|
11976
11976
|
status: run.status,
|
|
11977
11977
|
finishedAt: run.finishedAt
|
|
@@ -11984,7 +11984,7 @@ function writeStartedPlayRun(input) {
|
|
|
11984
11984
|
dashboardUrl: input.dashboardUrl,
|
|
11985
11985
|
package: input.package
|
|
11986
11986
|
};
|
|
11987
|
-
|
|
11987
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
11988
11988
|
json: true,
|
|
11989
11989
|
fields: input.jsonFields
|
|
11990
11990
|
});
|
|
@@ -12006,7 +12006,7 @@ function writeStartedPlayRun(input) {
|
|
|
12006
12006
|
input.progress.writeLine(output2, process.stdout);
|
|
12007
12007
|
return;
|
|
12008
12008
|
}
|
|
12009
|
-
|
|
12009
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12010
12010
|
json: false,
|
|
12011
12011
|
text: `${output2}
|
|
12012
12012
|
`
|
|
@@ -12041,7 +12041,7 @@ function writeStartedPlayRun(input) {
|
|
|
12041
12041
|
) ? [`Stop: deepline runs stop ${_chunkAID3OYVJjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
12042
12042
|
];
|
|
12043
12043
|
if (input.jsonOutput) {
|
|
12044
|
-
|
|
12044
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
12045
12045
|
return;
|
|
12046
12046
|
}
|
|
12047
12047
|
const output = lines.join("\n");
|
|
@@ -12049,7 +12049,7 @@ function writeStartedPlayRun(input) {
|
|
|
12049
12049
|
input.progress.writeLine(output, process.stdout);
|
|
12050
12050
|
return;
|
|
12051
12051
|
}
|
|
12052
|
-
|
|
12052
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
12053
12053
|
{
|
|
12054
12054
|
...payload,
|
|
12055
12055
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -12059,7 +12059,7 @@ function writeStartedPlayRun(input) {
|
|
|
12059
12059
|
);
|
|
12060
12060
|
}
|
|
12061
12061
|
function parsePlayCheckOptions(args) {
|
|
12062
|
-
const selection =
|
|
12062
|
+
const selection = _chunkXEQBYK4Bjs.parseJsonFields.call(void 0, args, "check");
|
|
12063
12063
|
args = selection.args;
|
|
12064
12064
|
const target = args[0];
|
|
12065
12065
|
if (!target || target.startsWith("-")) {
|
|
@@ -12071,7 +12071,7 @@ function parsePlayCheckOptions(args) {
|
|
|
12071
12071
|
if (arg !== "--json" && arg !== "--full")
|
|
12072
12072
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
12073
12073
|
}
|
|
12074
|
-
const jsonOutput =
|
|
12074
|
+
const jsonOutput = _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args);
|
|
12075
12075
|
return {
|
|
12076
12076
|
target,
|
|
12077
12077
|
jsonOutput,
|
|
@@ -12147,7 +12147,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
12147
12147
|
useLatest,
|
|
12148
12148
|
expectedArtifactHash,
|
|
12149
12149
|
dryRun,
|
|
12150
|
-
jsonOutput:
|
|
12150
|
+
jsonOutput: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)
|
|
12151
12151
|
};
|
|
12152
12152
|
}
|
|
12153
12153
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--dry-run] [--json]";
|
|
@@ -12188,7 +12188,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
12188
12188
|
target,
|
|
12189
12189
|
expectedArtifactHash,
|
|
12190
12190
|
dryRun,
|
|
12191
|
-
jsonOutput:
|
|
12191
|
+
jsonOutput: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)
|
|
12192
12192
|
};
|
|
12193
12193
|
}
|
|
12194
12194
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -12399,7 +12399,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
12399
12399
|
async function handlePlayCheck(args) {
|
|
12400
12400
|
const options = parsePlayCheckOptions(args);
|
|
12401
12401
|
if (!isFileTarget(options.target)) {
|
|
12402
|
-
const client = new (0,
|
|
12402
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
12403
12403
|
try {
|
|
12404
12404
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
12405
12405
|
command: "check"
|
|
@@ -12428,7 +12428,7 @@ async function handlePlayCheck(args) {
|
|
|
12428
12428
|
},
|
|
12429
12429
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
12430
12430
|
};
|
|
12431
|
-
|
|
12431
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, result, {
|
|
12432
12432
|
json: options.jsonOutput,
|
|
12433
12433
|
fields: options.jsonFields,
|
|
12434
12434
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -12438,7 +12438,7 @@ async function handlePlayCheck(args) {
|
|
|
12438
12438
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
12439
12439
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
12440
12440
|
if (options.jsonOutput) {
|
|
12441
|
-
|
|
12441
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
12442
12442
|
{
|
|
12443
12443
|
kind: "play_check",
|
|
12444
12444
|
checked: "named_contract",
|
|
@@ -12469,7 +12469,7 @@ async function handlePlayCheck(args) {
|
|
|
12469
12469
|
detailsCommand: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --full`,
|
|
12470
12470
|
publishCommand: _optionalChain([primary, 'optionalAccess', _478 => _478.result, 'access', _479 => _479.artifactHash]) ? `deepline plays publish ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
12471
12471
|
});
|
|
12472
|
-
|
|
12472
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, output, {
|
|
12473
12473
|
json: options.jsonOutput,
|
|
12474
12474
|
fields: options.jsonFields,
|
|
12475
12475
|
text: renderPlayCheckOutput(output) + "\n"
|
|
@@ -12537,7 +12537,7 @@ async function checkOneExportedPlay(input) {
|
|
|
12537
12537
|
}
|
|
12538
12538
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
12539
12539
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
12540
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
12540
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunkPMS3LQ6Bjs.DeeplineClient)()));
|
|
12541
12541
|
const integrationMode = resolveEvalIntegrationMode();
|
|
12542
12542
|
const checked = await checkLocalPlayGraph({
|
|
12543
12543
|
client,
|
|
@@ -12593,8 +12593,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12593
12593
|
let prefetchClient;
|
|
12594
12594
|
let admissionCapability;
|
|
12595
12595
|
let cancelAdmissionCapability;
|
|
12596
|
-
let cliAdmission =
|
|
12597
|
-
const progress = _nullishCoalesce(
|
|
12596
|
+
let cliAdmission = _chunkCKEZXNMVjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12597
|
+
const progress = _nullishCoalesce(_chunkP6AADOROjs.getActiveCliProgress.call(void 0, ), () => ( _chunkP6AADOROjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12598
12598
|
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _488 => _488.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
12599
12599
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
12600
12600
|
progress.phase("compiling play");
|
|
@@ -12611,11 +12611,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12611
12611
|
return 1;
|
|
12612
12612
|
}
|
|
12613
12613
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12614
|
-
const clientForPrefetch = new (0,
|
|
12614
|
+
const clientForPrefetch = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)(playRunClientOptions(options));
|
|
12615
12615
|
prefetchClient = clientForPrefetch;
|
|
12616
12616
|
const capabilityController = new AbortController();
|
|
12617
12617
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12618
|
-
admissionCapability =
|
|
12618
|
+
admissionCapability = _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
12619
12619
|
"cli.play_admission_capability_prefetch",
|
|
12620
12620
|
{ targetKind: "file" },
|
|
12621
12621
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -12626,7 +12626,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12626
12626
|
}
|
|
12627
12627
|
let graph;
|
|
12628
12628
|
try {
|
|
12629
|
-
graph = await
|
|
12629
|
+
graph = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
12630
12630
|
"cli.play_file_bundle_graph",
|
|
12631
12631
|
{ targetKind: "file" },
|
|
12632
12632
|
() => collectBundledPlayGraph(
|
|
@@ -12639,7 +12639,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12639
12639
|
assertPlayGraphAuthoring(graph);
|
|
12640
12640
|
if (options.dryRun) {
|
|
12641
12641
|
progress.complete();
|
|
12642
|
-
const plan =
|
|
12642
|
+
const plan = _chunk72L5HQ3Jjs.planLocalPlayExecution.call(void 0, graph, {
|
|
12643
12643
|
runIdFile: options.runIdFile
|
|
12644
12644
|
});
|
|
12645
12645
|
if (_optionalChain([hooks, 'optionalAccess', _489 => _489.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
@@ -12650,9 +12650,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12650
12650
|
});
|
|
12651
12651
|
return 0;
|
|
12652
12652
|
}
|
|
12653
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
12653
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunkPMS3LQ6Bjs.DeeplineClient)(playRunClientOptions(options))));
|
|
12654
12654
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
12655
|
-
await
|
|
12655
|
+
await _chunkCKEZXNMVjs.checkPlayRunCompatibility.call(void 0,
|
|
12656
12656
|
client.baseUrl,
|
|
12657
12657
|
options.maintenancePolicy
|
|
12658
12658
|
);
|
|
@@ -12665,7 +12665,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12665
12665
|
});
|
|
12666
12666
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput);
|
|
12667
12667
|
if (canDeferCompilerManifest) {
|
|
12668
|
-
|
|
12668
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
12669
12669
|
phase: "cli.play_file_compile_manifests",
|
|
12670
12670
|
ms: 0,
|
|
12671
12671
|
ok: true,
|
|
@@ -12674,7 +12674,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12674
12674
|
reason: "validated_by_run_route"
|
|
12675
12675
|
});
|
|
12676
12676
|
} else {
|
|
12677
|
-
await
|
|
12677
|
+
await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
12678
12678
|
"cli.play_file_compile_manifests",
|
|
12679
12679
|
{ targetKind: "file", skipped: false },
|
|
12680
12680
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -12682,7 +12682,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12682
12682
|
}
|
|
12683
12683
|
progress.phase("compiled play");
|
|
12684
12684
|
} catch (error) {
|
|
12685
|
-
if (error instanceof
|
|
12685
|
+
if (error instanceof _chunkRLI6FDQMjs.ExecutionOutputError) throw error;
|
|
12686
12686
|
progress.fail();
|
|
12687
12687
|
reportError(normalizePlayValidationError(error));
|
|
12688
12688
|
return 1;
|
|
@@ -12693,13 +12693,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12693
12693
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
12694
12694
|
try {
|
|
12695
12695
|
renderLocalPlayExecutionPlan(
|
|
12696
|
-
|
|
12696
|
+
_chunk72L5HQ3Jjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
12697
12697
|
);
|
|
12698
12698
|
progress.phase("pinning imported plays");
|
|
12699
|
-
graph = await
|
|
12699
|
+
graph = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
12700
12700
|
"cli.play_file_pin_imports",
|
|
12701
12701
|
{ targetKind: "file" },
|
|
12702
|
-
() =>
|
|
12702
|
+
() => _chunk72L5HQ3Jjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
12703
12703
|
);
|
|
12704
12704
|
bundleResult = graph.root;
|
|
12705
12705
|
} catch (error) {
|
|
@@ -12712,11 +12712,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12712
12712
|
(file) => stageFile(file.logicalPath, file.absolutePath)
|
|
12713
12713
|
);
|
|
12714
12714
|
const compilerManifest = _nullishCoalesce(bundleResult.compilerManifest, () => ( null));
|
|
12715
|
-
const fileInputBindings =
|
|
12715
|
+
const fileInputBindings = _chunk6Y3DDRRNjs.playRunFileInputBindings.call(void 0, {
|
|
12716
12716
|
inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _490 => _490.authoringContract, 'optionalAccess', _491 => _491.inputSchema]),
|
|
12717
12717
|
staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _492 => _492.staticPipeline])
|
|
12718
12718
|
});
|
|
12719
|
-
const stagedFileInputs = await
|
|
12719
|
+
const stagedFileInputs = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
12720
12720
|
"cli.play_stage_inputs",
|
|
12721
12721
|
{
|
|
12722
12722
|
targetKind: "file",
|
|
@@ -12763,7 +12763,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12763
12763
|
};
|
|
12764
12764
|
if (options.watch) {
|
|
12765
12765
|
progress.phase("starting run");
|
|
12766
|
-
const finalStatus = await
|
|
12766
|
+
const finalStatus = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
12767
12767
|
"cli.play_start_watch",
|
|
12768
12768
|
{ targetKind: "file", playName },
|
|
12769
12769
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -12825,7 +12825,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
12825
12825
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
12826
12826
|
}
|
|
12827
12827
|
progress.phase("starting run");
|
|
12828
|
-
const started = await
|
|
12828
|
+
const started = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
12829
12829
|
"cli.play_start_unwatched",
|
|
12830
12830
|
{ targetKind: "file", playName },
|
|
12831
12831
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _499 => _499.onSubmission]) }).catch(async (error) => {
|
|
@@ -12891,9 +12891,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
12891
12891
|
if (options.target.kind !== "name") {
|
|
12892
12892
|
throw new Error("Expected a named play run target.");
|
|
12893
12893
|
}
|
|
12894
|
-
const client = new (0,
|
|
12895
|
-
let cliAdmission =
|
|
12896
|
-
const progress = _nullishCoalesce(
|
|
12894
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)(playRunClientOptions(options));
|
|
12895
|
+
let cliAdmission = _chunkCKEZXNMVjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
12896
|
+
const progress = _nullishCoalesce(_chunkP6AADOROjs.getActiveCliProgress.call(void 0, ), () => ( _chunkP6AADOROjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
12897
12897
|
const playName = options.target.name;
|
|
12898
12898
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
12899
12899
|
try {
|
|
@@ -12911,7 +12911,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12911
12911
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
12912
12912
|
const capabilityController = new AbortController();
|
|
12913
12913
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
12914
|
-
admissionCapability =
|
|
12914
|
+
admissionCapability = _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
12915
12915
|
"cli.play_admission_capability_prefetch",
|
|
12916
12916
|
{ targetKind: "name", playName },
|
|
12917
12917
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -12922,14 +12922,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
12922
12922
|
}
|
|
12923
12923
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
12924
12924
|
progress.phase("loading play definition");
|
|
12925
|
-
return
|
|
12925
|
+
return _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
12926
12926
|
"cli.play_load_definition",
|
|
12927
12927
|
{ targetKind: "name", playName, skipped: false },
|
|
12928
12928
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
12929
12929
|
command: "run"
|
|
12930
12930
|
})
|
|
12931
12931
|
);
|
|
12932
|
-
})() : (
|
|
12932
|
+
})() : (_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
12933
12933
|
phase: "cli.play_load_definition",
|
|
12934
12934
|
ms: 0,
|
|
12935
12935
|
ok: true,
|
|
@@ -12938,7 +12938,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12938
12938
|
skipped: true
|
|
12939
12939
|
}), null);
|
|
12940
12940
|
progress.phase("selecting revision");
|
|
12941
|
-
const selectedRevisionId = await
|
|
12941
|
+
const selectedRevisionId = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
12942
12942
|
"cli.play_select_revision",
|
|
12943
12943
|
{
|
|
12944
12944
|
targetKind: "name",
|
|
@@ -12959,14 +12959,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
12959
12959
|
maxTotalCredits: options.maxTotalCredits
|
|
12960
12960
|
});
|
|
12961
12961
|
const fileInputBindings = playDetail ? [
|
|
12962
|
-
...
|
|
12963
|
-
...
|
|
12962
|
+
..._chunk6Y3DDRRNjs.fileInputBindingsFromPlaySchema.call(void 0, playDetail.play.inputSchema),
|
|
12963
|
+
..._chunk6Y3DDRRNjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
12964
12964
|
] : [];
|
|
12965
12965
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
12966
|
-
await
|
|
12966
|
+
await _chunkCKEZXNMVjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
12967
12967
|
cliAdmission = false;
|
|
12968
12968
|
}
|
|
12969
|
-
const stagedFileInputs = await
|
|
12969
|
+
const stagedFileInputs = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
12970
12970
|
"cli.play_stage_inputs",
|
|
12971
12971
|
{
|
|
12972
12972
|
targetKind: "name",
|
|
@@ -12989,7 +12989,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
12989
12989
|
const testPolicyOverrides = {
|
|
12990
12990
|
...options.debugMapLatency ? { mapLatencyProfile: true } : {}
|
|
12991
12991
|
};
|
|
12992
|
-
const startRequest =
|
|
12992
|
+
const startRequest = _chunk6Y3DDRRNjs.buildNamedPlayRunRequest.call(void 0, {
|
|
12993
12993
|
name: playName,
|
|
12994
12994
|
revisionId: selectedRevisionId,
|
|
12995
12995
|
runtimeInput,
|
|
@@ -13010,7 +13010,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13010
13010
|
});
|
|
13011
13011
|
if (options.watch) {
|
|
13012
13012
|
progress.phase("starting run");
|
|
13013
|
-
const finalStatus = await
|
|
13013
|
+
const finalStatus = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
13014
13014
|
"cli.play_start_watch",
|
|
13015
13015
|
{ targetKind: "name", playName },
|
|
13016
13016
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13075,7 +13075,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13075
13075
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13076
13076
|
}
|
|
13077
13077
|
progress.phase("starting run");
|
|
13078
|
-
const started = await
|
|
13078
|
+
const started = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
13079
13079
|
"cli.play_start_unwatched",
|
|
13080
13080
|
{ targetKind: "name", playName },
|
|
13081
13081
|
() => client.startPlayRun(startRequest, { onSubmission: _optionalChain([hooks, 'optionalAccess', _512 => _512.onSubmission]) }).catch(async (error) => {
|
|
@@ -13135,7 +13135,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13135
13135
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
13136
13136
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _520 => _520.exec, 'call', _521 => _521(status.runId), 'optionalAccess', _522 => _522[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
13137
13137
|
if (!terminal) {
|
|
13138
|
-
|
|
13138
|
+
_chunkRLI6FDQMjs.writeExecutionOutput.call(void 0,
|
|
13139
13139
|
{
|
|
13140
13140
|
id: status.runId,
|
|
13141
13141
|
status: status.status,
|
|
@@ -13163,11 +13163,11 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13163
13163
|
retryCommand: `deepline runs export ${status.runId}`
|
|
13164
13164
|
}), async () => ( info));
|
|
13165
13165
|
} catch (fetchError) {
|
|
13166
|
-
if (!info.complete || info.currentTable || fetchError instanceof
|
|
13166
|
+
if (!info.complete || info.currentTable || fetchError instanceof _chunkSQWET4SLjs.DeeplineError && fetchError.code === "RUN_EXPORT_SCOPE_MISMATCH")
|
|
13167
13167
|
throw fetchError;
|
|
13168
13168
|
}
|
|
13169
13169
|
if (!info.complete)
|
|
13170
|
-
throw new (0,
|
|
13170
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
13171
13171
|
`Dataset ${dataset.source} is incomplete. Export it with deepline runs export ${status.runId}; do not restart the run.`,
|
|
13172
13172
|
void 0,
|
|
13173
13173
|
"RUN_EXPORT_NOT_READY"
|
|
@@ -13215,10 +13215,10 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13215
13215
|
};
|
|
13216
13216
|
}
|
|
13217
13217
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
13218
|
-
const allCollections =
|
|
13218
|
+
const allCollections = _chunkRLI6FDQMjs.outputCollections.call(void 0, data).map(
|
|
13219
13219
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
13220
13220
|
);
|
|
13221
|
-
|
|
13221
|
+
_chunkRLI6FDQMjs.writeExecutionOutput.call(void 0,
|
|
13222
13222
|
{
|
|
13223
13223
|
id: status.runId,
|
|
13224
13224
|
status: status.status,
|
|
@@ -13239,7 +13239,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
13239
13239
|
}
|
|
13240
13240
|
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;
|
|
13241
13241
|
async function handlePlayRun(args, hooks) {
|
|
13242
|
-
const parsedOptions = Array.isArray(args) ?
|
|
13242
|
+
const parsedOptions = Array.isArray(args) ? _chunk4IIK6GIYjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
13243
13243
|
const options = parsedOptions.runIdFile ? {
|
|
13244
13244
|
...parsedOptions,
|
|
13245
13245
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -13256,7 +13256,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
13256
13256
|
JSON.stringify({
|
|
13257
13257
|
version: 1,
|
|
13258
13258
|
admissionState: "submitted_unknown",
|
|
13259
|
-
baseUrl: new (0,
|
|
13259
|
+
baseUrl: new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().baseUrl,
|
|
13260
13260
|
...intent
|
|
13261
13261
|
})
|
|
13262
13262
|
);
|
|
@@ -13344,7 +13344,7 @@ function parseRunIdPositional(args, usage2) {
|
|
|
13344
13344
|
return arg;
|
|
13345
13345
|
}
|
|
13346
13346
|
}
|
|
13347
|
-
throw new (0,
|
|
13347
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(usage2);
|
|
13348
13348
|
}
|
|
13349
13349
|
function formatRunFactLines(value) {
|
|
13350
13350
|
if (Array.isArray(value)) return value.flatMap(formatRunFactLines);
|
|
@@ -13490,7 +13490,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
13490
13490
|
);
|
|
13491
13491
|
return `${lines.join("\n")}
|
|
13492
13492
|
|
|
13493
|
-
${
|
|
13493
|
+
${_chunkXEQBYK4Bjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
13494
13494
|
}
|
|
13495
13495
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
13496
13496
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -13514,7 +13514,7 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
13514
13514
|
}
|
|
13515
13515
|
}
|
|
13516
13516
|
async function handleRunGet(args) {
|
|
13517
|
-
const selection =
|
|
13517
|
+
const selection = _chunkXEQBYK4Bjs.parseJsonFields.call(void 0,
|
|
13518
13518
|
args,
|
|
13519
13519
|
args.includes("--config") ? "config" : "get"
|
|
13520
13520
|
);
|
|
@@ -13527,7 +13527,7 @@ async function handleRunGet(args) {
|
|
|
13527
13527
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13528
13528
|
return 1;
|
|
13529
13529
|
}
|
|
13530
|
-
const client = new (0,
|
|
13530
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
13531
13531
|
const timing = args.includes("--timing");
|
|
13532
13532
|
const web = args.includes("--web");
|
|
13533
13533
|
if (web || args.includes("--web-url")) {
|
|
@@ -13545,8 +13545,8 @@ async function handleRunGet(args) {
|
|
|
13545
13545
|
const dashboardUrl2 = _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName2);
|
|
13546
13546
|
const runUrl2 = _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName2, runId);
|
|
13547
13547
|
if (web) {
|
|
13548
|
-
const opened =
|
|
13549
|
-
|
|
13548
|
+
const opened = _chunkXEQBYK4Bjs.openInBrowser.call(void 0, runUrl2);
|
|
13549
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
13550
13550
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
13551
13551
|
{
|
|
13552
13552
|
json: args.includes("--json"),
|
|
@@ -13557,7 +13557,7 @@ async function handleRunGet(args) {
|
|
|
13557
13557
|
);
|
|
13558
13558
|
return 0;
|
|
13559
13559
|
}
|
|
13560
|
-
|
|
13560
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
13561
13561
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
13562
13562
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
13563
13563
|
` }
|
|
@@ -13582,7 +13582,7 @@ async function handleRunGet(args) {
|
|
|
13582
13582
|
"This server does not support recorded configuration reads."
|
|
13583
13583
|
);
|
|
13584
13584
|
}
|
|
13585
|
-
|
|
13585
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
13586
13586
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
13587
13587
|
{ json: true, fields: selection.fields }
|
|
13588
13588
|
);
|
|
@@ -13595,7 +13595,7 @@ async function handleRunGet(args) {
|
|
|
13595
13595
|
timing,
|
|
13596
13596
|
() => client.getRunInput(runId)
|
|
13597
13597
|
);
|
|
13598
|
-
|
|
13598
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
13599
13599
|
return 0;
|
|
13600
13600
|
}
|
|
13601
13601
|
const full = args.includes("--full");
|
|
@@ -13608,7 +13608,7 @@ async function handleRunGet(args) {
|
|
|
13608
13608
|
failedLogs: args.includes("--log-failed")
|
|
13609
13609
|
})
|
|
13610
13610
|
);
|
|
13611
|
-
if (status.package)
|
|
13611
|
+
if (status.package) _chunkRLI6FDQMjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
13612
13612
|
if (!status.package) {
|
|
13613
13613
|
const legacyStatus = full ? await withRunReadTiming(
|
|
13614
13614
|
"runs get",
|
|
@@ -13622,8 +13622,8 @@ async function handleRunGet(args) {
|
|
|
13622
13622
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
13623
13623
|
const legacyDashboardUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, legacyPlayName) : null;
|
|
13624
13624
|
const legacyRunUrl = legacyPlayName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, legacyPlayName, runId) : null;
|
|
13625
|
-
if (
|
|
13626
|
-
|
|
13625
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
13626
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
13627
13627
|
{
|
|
13628
13628
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
13629
13629
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -13634,7 +13634,7 @@ async function handleRunGet(args) {
|
|
|
13634
13634
|
} else {
|
|
13635
13635
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
13636
13636
|
if (legacyRunUrl)
|
|
13637
|
-
|
|
13637
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
13638
13638
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
13639
13639
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
13640
13640
|
` }
|
|
@@ -13664,11 +13664,11 @@ async function handleRunGet(args) {
|
|
|
13664
13664
|
)
|
|
13665
13665
|
]);
|
|
13666
13666
|
const hitLines = formatRunHitsLines(hits);
|
|
13667
|
-
const json =
|
|
13667
|
+
const json = _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args);
|
|
13668
13668
|
const playName = resolveRunPlayName(status, runId);
|
|
13669
13669
|
const dashboardUrl = playName ? _chunkNTLBZUHDjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, playName) : void 0;
|
|
13670
13670
|
const runUrl = playName ? _chunkNTLBZUHDjs.buildPlayRunUrl.call(void 0, client.baseUrl, playName, runId) : void 0;
|
|
13671
|
-
|
|
13671
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
13672
13672
|
{
|
|
13673
13673
|
...overview,
|
|
13674
13674
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -13773,9 +13773,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
13773
13773
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13774
13774
|
return 1;
|
|
13775
13775
|
}
|
|
13776
|
-
const status = await new (0,
|
|
13777
|
-
if (
|
|
13778
|
-
|
|
13776
|
+
const status = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().runs.status(runId);
|
|
13777
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
13778
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
13779
13779
|
return 0;
|
|
13780
13780
|
}
|
|
13781
13781
|
if (!status.available) {
|
|
@@ -13818,7 +13818,7 @@ async function handleRunsRerun(args) {
|
|
|
13818
13818
|
console.error(error instanceof Error ? error.message : usage2);
|
|
13819
13819
|
return 1;
|
|
13820
13820
|
}
|
|
13821
|
-
const options = { json:
|
|
13821
|
+
const options = { json: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args) };
|
|
13822
13822
|
for (let index = 0; index < args.length; index += 1) {
|
|
13823
13823
|
if (args[index] === "--idempotency-key") {
|
|
13824
13824
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -13884,8 +13884,8 @@ ${usage2}
|
|
|
13884
13884
|
Discover Plays: ${next.discover}
|
|
13885
13885
|
Active runs: ${next.running}`
|
|
13886
13886
|
);
|
|
13887
|
-
if (
|
|
13888
|
-
|
|
13887
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
13888
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
13889
13889
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
13890
13890
|
{ json: true }
|
|
13891
13891
|
);
|
|
@@ -13900,7 +13900,7 @@ Active runs: ${next.running}`
|
|
|
13900
13900
|
console.error("--offset requires --play.");
|
|
13901
13901
|
return 1;
|
|
13902
13902
|
}
|
|
13903
|
-
const client = new (0,
|
|
13903
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
13904
13904
|
const page = await withRunReadTiming(
|
|
13905
13905
|
"runs list",
|
|
13906
13906
|
"run inventory",
|
|
@@ -13967,14 +13967,14 @@ Active runs: ${next.running}`
|
|
|
13967
13967
|
return lines2.join("\n");
|
|
13968
13968
|
});
|
|
13969
13969
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
13970
|
-
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}${
|
|
13970
|
+
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}${_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
13971
13971
|
if (page.hasMore) {
|
|
13972
13972
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
13973
13973
|
lines.push(
|
|
13974
13974
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
13975
13975
|
);
|
|
13976
13976
|
}
|
|
13977
|
-
|
|
13977
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
13978
13978
|
{
|
|
13979
13979
|
runs,
|
|
13980
13980
|
count: runs.length,
|
|
@@ -13988,7 +13988,7 @@ Active runs: ${next.running}`
|
|
|
13988
13988
|
},
|
|
13989
13989
|
render: { sections: [{ title: "runs", lines }] }
|
|
13990
13990
|
},
|
|
13991
|
-
{ json:
|
|
13991
|
+
{ json: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args) }
|
|
13992
13992
|
);
|
|
13993
13993
|
return 0;
|
|
13994
13994
|
}
|
|
@@ -14018,7 +14018,7 @@ async function handleRunTail(args) {
|
|
|
14018
14018
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14019
14019
|
return 1;
|
|
14020
14020
|
}
|
|
14021
|
-
const parsed =
|
|
14021
|
+
const parsed = _chunkYS7AI7R6js.parseLogLevel.call(void 0, value);
|
|
14022
14022
|
if (!parsed) {
|
|
14023
14023
|
console.error(
|
|
14024
14024
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14056,9 +14056,9 @@ async function handleRunTail(args) {
|
|
|
14056
14056
|
);
|
|
14057
14057
|
return 1;
|
|
14058
14058
|
}
|
|
14059
|
-
const client = new (0,
|
|
14059
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
14060
14060
|
const jsonLines = args.includes("--jsonl");
|
|
14061
|
-
const jsonOutput = !jsonLines &&
|
|
14061
|
+
const jsonOutput = !jsonLines && _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args);
|
|
14062
14062
|
const compact = args.includes("--compact");
|
|
14063
14063
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
14064
14064
|
const compactState = {
|
|
@@ -14139,7 +14139,7 @@ async function handleRunLogs(args) {
|
|
|
14139
14139
|
]);
|
|
14140
14140
|
const cursorIndex = args.indexOf("--cursor");
|
|
14141
14141
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
14142
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
14142
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkYS7AI7R6js.isRunLogsCursor.call(void 0, cursorValue));
|
|
14143
14143
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
14144
14144
|
return handleRunEventSearch(args);
|
|
14145
14145
|
}
|
|
@@ -14173,7 +14173,7 @@ async function handleRunLogs(args) {
|
|
|
14173
14173
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
14174
14174
|
return 1;
|
|
14175
14175
|
}
|
|
14176
|
-
const parsed =
|
|
14176
|
+
const parsed = _chunkYS7AI7R6js.parseLogLevel.call(void 0, value);
|
|
14177
14177
|
if (!parsed) {
|
|
14178
14178
|
console.error(
|
|
14179
14179
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -14220,12 +14220,12 @@ async function handleRunLogs(args) {
|
|
|
14220
14220
|
);
|
|
14221
14221
|
return 1;
|
|
14222
14222
|
}
|
|
14223
|
-
const client = new (0,
|
|
14223
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
14224
14224
|
if (outPath) {
|
|
14225
14225
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
14226
|
-
const logs = result2.entries.filter((line) =>
|
|
14226
|
+
const logs = result2.entries.filter((line) => _chunkYS7AI7R6js.logLevelReaches.call(void 0, _chunkYS7AI7R6js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkYS7AI7R6js.classifyLogLine.call(void 0, line).line);
|
|
14227
14227
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
14228
|
-
|
|
14228
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
14229
14229
|
{
|
|
14230
14230
|
runId: result2.runId,
|
|
14231
14231
|
log_path: outPath,
|
|
@@ -14248,7 +14248,7 @@ async function handleRunLogs(args) {
|
|
|
14248
14248
|
]
|
|
14249
14249
|
}
|
|
14250
14250
|
},
|
|
14251
|
-
{ json:
|
|
14251
|
+
{ json: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args) }
|
|
14252
14252
|
);
|
|
14253
14253
|
return 0;
|
|
14254
14254
|
}
|
|
@@ -14279,7 +14279,7 @@ async function handleRunLogs(args) {
|
|
|
14279
14279
|
}
|
|
14280
14280
|
};
|
|
14281
14281
|
const text = buildRunLogsText(filteredResult);
|
|
14282
|
-
|
|
14282
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
14283
14283
|
{
|
|
14284
14284
|
runId: result.runId,
|
|
14285
14285
|
totalCount: result.totalCount,
|
|
@@ -14303,7 +14303,7 @@ async function handleRunLogs(args) {
|
|
|
14303
14303
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
14304
14304
|
},
|
|
14305
14305
|
{
|
|
14306
|
-
json:
|
|
14306
|
+
json: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args),
|
|
14307
14307
|
text
|
|
14308
14308
|
}
|
|
14309
14309
|
);
|
|
@@ -14327,7 +14327,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14327
14327
|
);
|
|
14328
14328
|
}
|
|
14329
14329
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
14330
|
-
(entry) =>
|
|
14330
|
+
(entry) => _chunkYS7AI7R6js.logLevelReaches.call(void 0, _chunkYS7AI7R6js.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
14331
14331
|
);
|
|
14332
14332
|
const selected = matching.slice(-limit);
|
|
14333
14333
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -14337,7 +14337,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
14337
14337
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _555 => _555.at, 'call', _556 => _556(-1), 'optionalAccess', _557 => _557.seq]), () => ( null)),
|
|
14338
14338
|
truncated: result.truncated || olderMatchesExist,
|
|
14339
14339
|
hasMore: olderMatchesExist,
|
|
14340
|
-
nextCursor: olderMatchesExist ?
|
|
14340
|
+
nextCursor: olderMatchesExist ? _chunkYS7AI7R6js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
14341
14341
|
};
|
|
14342
14342
|
}
|
|
14343
14343
|
async function handleRunEventSearch(args) {
|
|
@@ -14404,7 +14404,7 @@ ${usage2}`);
|
|
|
14404
14404
|
namespace,
|
|
14405
14405
|
...backend ? { backend } : {}
|
|
14406
14406
|
} : void 0;
|
|
14407
|
-
const client = new (0,
|
|
14407
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
14408
14408
|
const result = await client.runs.searchEvents({
|
|
14409
14409
|
...runId ? { runId } : {},
|
|
14410
14410
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -14476,7 +14476,7 @@ ${renderedDetails}` : ""}`;
|
|
|
14476
14476
|
"--limit",
|
|
14477
14477
|
String(limit)
|
|
14478
14478
|
].join(" ") : null;
|
|
14479
|
-
|
|
14479
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
14480
14480
|
{
|
|
14481
14481
|
events,
|
|
14482
14482
|
nextCursor: result.nextCursor,
|
|
@@ -14487,14 +14487,14 @@ ${renderedDetails}` : ""}`;
|
|
|
14487
14487
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
14488
14488
|
},
|
|
14489
14489
|
{
|
|
14490
|
-
json:
|
|
14490
|
+
json: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args),
|
|
14491
14491
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
14492
14492
|
}
|
|
14493
14493
|
);
|
|
14494
14494
|
return 0;
|
|
14495
14495
|
}
|
|
14496
14496
|
function buildRunLogsText(result) {
|
|
14497
|
-
const lines = result.entries.map((line) =>
|
|
14497
|
+
const lines = result.entries.map((line) => _chunkYS7AI7R6js.classifyLogLine.call(void 0, line).line);
|
|
14498
14498
|
if (result.warning) {
|
|
14499
14499
|
if (lines.length > 0) lines.push("");
|
|
14500
14500
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -14528,7 +14528,7 @@ async function handleRunStop(args) {
|
|
|
14528
14528
|
reason = args[++index];
|
|
14529
14529
|
}
|
|
14530
14530
|
}
|
|
14531
|
-
const client = new (0,
|
|
14531
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
14532
14532
|
const result = await client.runs.stop(runId, { reason });
|
|
14533
14533
|
const state = resolveRunStopState(result);
|
|
14534
14534
|
const hitlCleanupIncomplete = state === "cancelling" && result.hitlCancellationPending === true;
|
|
@@ -14543,7 +14543,7 @@ async function handleRunStop(args) {
|
|
|
14543
14543
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
14544
14544
|
`inspect: deepline runs get ${runId} --full`
|
|
14545
14545
|
];
|
|
14546
|
-
|
|
14546
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
14547
14547
|
{
|
|
14548
14548
|
...cancelling,
|
|
14549
14549
|
state,
|
|
@@ -14558,7 +14558,7 @@ async function handleRunStop(args) {
|
|
|
14558
14558
|
]
|
|
14559
14559
|
}
|
|
14560
14560
|
},
|
|
14561
|
-
{ json:
|
|
14561
|
+
{ json: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args) }
|
|
14562
14562
|
);
|
|
14563
14563
|
return 0;
|
|
14564
14564
|
}
|
|
@@ -14575,7 +14575,7 @@ async function handleRunStop(args) {
|
|
|
14575
14575
|
];
|
|
14576
14576
|
process.stderr.write(`${lines2.join("\n")}
|
|
14577
14577
|
`);
|
|
14578
|
-
|
|
14578
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
14579
14579
|
{
|
|
14580
14580
|
...result,
|
|
14581
14581
|
render: {
|
|
@@ -14590,7 +14590,7 @@ async function handleRunStop(args) {
|
|
|
14590
14590
|
]
|
|
14591
14591
|
}
|
|
14592
14592
|
},
|
|
14593
|
-
{ json:
|
|
14593
|
+
{ json: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args) }
|
|
14594
14594
|
);
|
|
14595
14595
|
return 1;
|
|
14596
14596
|
}
|
|
@@ -14601,12 +14601,12 @@ async function handleRunStop(args) {
|
|
|
14601
14601
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
14602
14602
|
] : []
|
|
14603
14603
|
];
|
|
14604
|
-
|
|
14604
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
14605
14605
|
{
|
|
14606
14606
|
...result,
|
|
14607
14607
|
render: { sections: [{ title: "run stop", lines }] }
|
|
14608
14608
|
},
|
|
14609
|
-
{ json:
|
|
14609
|
+
{ json: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args) }
|
|
14610
14610
|
);
|
|
14611
14611
|
return 0;
|
|
14612
14612
|
}
|
|
@@ -14656,18 +14656,18 @@ async function handleRunStopAll(args) {
|
|
|
14656
14656
|
reason = args[++index];
|
|
14657
14657
|
}
|
|
14658
14658
|
}
|
|
14659
|
-
const client = new (0,
|
|
14659
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
14660
14660
|
if (dryRun) {
|
|
14661
14661
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
14662
14662
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
14663
|
-
|
|
14663
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
14664
14664
|
{
|
|
14665
14665
|
...result2,
|
|
14666
14666
|
render: {
|
|
14667
14667
|
sections: [{ title: "workspace stop-all (dry run)", lines: lines2 }]
|
|
14668
14668
|
}
|
|
14669
14669
|
},
|
|
14670
|
-
{ json:
|
|
14670
|
+
{ json: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
14671
14671
|
` }
|
|
14672
14672
|
);
|
|
14673
14673
|
return 0;
|
|
@@ -14680,17 +14680,17 @@ async function handleRunStopAll(args) {
|
|
|
14680
14680
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
14681
14681
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
14682
14682
|
];
|
|
14683
|
-
|
|
14683
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
14684
14684
|
{
|
|
14685
14685
|
...result,
|
|
14686
14686
|
render: { sections: [{ title: "workspace stop-all", lines }] }
|
|
14687
14687
|
},
|
|
14688
|
-
{ json:
|
|
14688
|
+
{ json: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args) }
|
|
14689
14689
|
);
|
|
14690
14690
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
14691
14691
|
}
|
|
14692
14692
|
async function handleRunExport(args) {
|
|
14693
|
-
const selection =
|
|
14693
|
+
const selection = _chunkXEQBYK4Bjs.parseJsonFields.call(void 0, args, "export");
|
|
14694
14694
|
args = selection.args;
|
|
14695
14695
|
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]";
|
|
14696
14696
|
let runId;
|
|
@@ -14724,7 +14724,7 @@ async function handleRunExport(args) {
|
|
|
14724
14724
|
if (arg === "--summary") {
|
|
14725
14725
|
const value = args[++index];
|
|
14726
14726
|
if (value !== "full" && value !== "counts") {
|
|
14727
|
-
throw new (0,
|
|
14727
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
14728
14728
|
"Invalid --summary. Choose full or counts.",
|
|
14729
14729
|
void 0,
|
|
14730
14730
|
"INVALID_ARGUMENT"
|
|
@@ -14735,7 +14735,7 @@ async function handleRunExport(args) {
|
|
|
14735
14735
|
if (arg === "--timeout-ms") {
|
|
14736
14736
|
waitTimeoutMs = parsePositiveInteger(_nullishCoalesce(args[++index], () => ( "")), arg);
|
|
14737
14737
|
if (!wait) {
|
|
14738
|
-
throw new (0,
|
|
14738
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
14739
14739
|
"--timeout-ms requires --wait.",
|
|
14740
14740
|
void 0,
|
|
14741
14741
|
"INVALID_ARGUMENT"
|
|
@@ -14748,30 +14748,30 @@ async function handleRunExport(args) {
|
|
|
14748
14748
|
return 1;
|
|
14749
14749
|
}
|
|
14750
14750
|
if (format !== "csv" && format !== "json") {
|
|
14751
|
-
throw new (0,
|
|
14751
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
14752
14752
|
"Invalid --format. Choose csv or json.",
|
|
14753
14753
|
void 0,
|
|
14754
14754
|
"INVALID_ARGUMENT"
|
|
14755
14755
|
);
|
|
14756
14756
|
}
|
|
14757
14757
|
if (metadataOutPath === outPath) {
|
|
14758
|
-
throw new (0,
|
|
14758
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
14759
14759
|
"--metadata-out must differ from --out.",
|
|
14760
14760
|
void 0,
|
|
14761
14761
|
"INVALID_ARGUMENT"
|
|
14762
14762
|
);
|
|
14763
14763
|
}
|
|
14764
|
-
const client = new (0,
|
|
14764
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
14765
14765
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
14766
14766
|
assertRunExportStatusIdentity(status, runId);
|
|
14767
14767
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
14768
|
-
const progress =
|
|
14768
|
+
const progress = _chunkP6AADOROjs.createCliProgress.call(void 0, !_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args));
|
|
14769
14769
|
try {
|
|
14770
14770
|
await waitForPlayCompletionByWatch({
|
|
14771
14771
|
client,
|
|
14772
14772
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
14773
14773
|
workflowId: runId,
|
|
14774
|
-
jsonOutput:
|
|
14774
|
+
jsonOutput: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args),
|
|
14775
14775
|
emitLogs: false,
|
|
14776
14776
|
waitTimeoutMs,
|
|
14777
14777
|
startedAt: Date.now(),
|
|
@@ -14839,7 +14839,7 @@ async function handleRunExport(args) {
|
|
|
14839
14839
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _571 => _571.rowsInfo, 'access', _572 => _572.totalRows]), () => ( null)),
|
|
14840
14840
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
14841
14841
|
...rowFailures ? { rowFailures } : {},
|
|
14842
|
-
columns:
|
|
14842
|
+
columns: _chunkRLI6FDQMjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _573 => _573.rowsInfo, 'access', _574 => _574.columns]), () => ( []))),
|
|
14843
14843
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
14844
14844
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
14845
14845
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -14873,8 +14873,8 @@ async function handleRunExport(args) {
|
|
|
14873
14873
|
"utf-8"
|
|
14874
14874
|
);
|
|
14875
14875
|
}
|
|
14876
|
-
|
|
14877
|
-
json:
|
|
14876
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, payload, {
|
|
14877
|
+
json: _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args),
|
|
14878
14878
|
fields: selection.fields,
|
|
14879
14879
|
text: `${lines.join("\n")}
|
|
14880
14880
|
`
|
|
@@ -14883,7 +14883,7 @@ async function handleRunExport(args) {
|
|
|
14883
14883
|
}
|
|
14884
14884
|
function assertRunExportStatusIdentity(status, requestedRunId) {
|
|
14885
14885
|
if (status.runId === requestedRunId) return;
|
|
14886
|
-
throw new (0,
|
|
14886
|
+
throw new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
14887
14887
|
`Run status identity did not match requested run ${requestedRunId}; refusing to export rows for ${status.runId || "an unidentified run"}.`,
|
|
14888
14888
|
void 0,
|
|
14889
14889
|
"RUN_EXPORT_SCOPE_MISMATCH",
|
|
@@ -14908,10 +14908,10 @@ async function handlePlayGet(args) {
|
|
|
14908
14908
|
);
|
|
14909
14909
|
return 2;
|
|
14910
14910
|
}
|
|
14911
|
-
const client = new (0,
|
|
14911
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
14912
14912
|
const explicitJson = args.includes("--json");
|
|
14913
14913
|
const sourceOutput = args.includes("--source");
|
|
14914
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
14914
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args);
|
|
14915
14915
|
const requestedRevisionFlags = [
|
|
14916
14916
|
args.includes("--working"),
|
|
14917
14917
|
args.includes("--live"),
|
|
@@ -14974,7 +14974,7 @@ async function handlePlayGet(args) {
|
|
|
14974
14974
|
}
|
|
14975
14975
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
14976
14976
|
if (jsonOutput) {
|
|
14977
|
-
|
|
14977
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, {
|
|
14978
14978
|
...detail,
|
|
14979
14979
|
...materializedFile ? {
|
|
14980
14980
|
message: loadedMessage,
|
|
@@ -15066,8 +15066,8 @@ async function handlePlayVersions(args) {
|
|
|
15066
15066
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
15067
15067
|
return 1;
|
|
15068
15068
|
}
|
|
15069
|
-
const client = new (0,
|
|
15070
|
-
const jsonOutput =
|
|
15069
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
15070
|
+
const jsonOutput = _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args);
|
|
15071
15071
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15072
15072
|
command: "versions"
|
|
15073
15073
|
});
|
|
@@ -15075,7 +15075,7 @@ async function handlePlayVersions(args) {
|
|
|
15075
15075
|
parseReferencedPlayTarget(playName).playName
|
|
15076
15076
|
);
|
|
15077
15077
|
if (jsonOutput) {
|
|
15078
|
-
|
|
15078
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, { versions });
|
|
15079
15079
|
return 0;
|
|
15080
15080
|
}
|
|
15081
15081
|
if (versions.length === 0) {
|
|
@@ -15118,8 +15118,8 @@ async function handlePlayCost(args) {
|
|
|
15118
15118
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
15119
15119
|
return 2;
|
|
15120
15120
|
}
|
|
15121
|
-
const result = await new (0,
|
|
15122
|
-
if (
|
|
15121
|
+
const result = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
15122
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
15123
15123
|
else
|
|
15124
15124
|
console.log(
|
|
15125
15125
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -15127,9 +15127,9 @@ async function handlePlayCost(args) {
|
|
|
15127
15127
|
return 0;
|
|
15128
15128
|
}
|
|
15129
15129
|
async function handlePlayList(args) {
|
|
15130
|
-
const jsonOutput =
|
|
15130
|
+
const jsonOutput = _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args);
|
|
15131
15131
|
const showCost = args.includes("--show-cost");
|
|
15132
|
-
const client = new (0,
|
|
15132
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
15133
15133
|
const categoriesIndex = args.indexOf("--categories");
|
|
15134
15134
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _594 => _594[categoriesIndex + 1], 'optionalAccess', _595 => _595.trim, 'call', _596 => _596()]) : void 0;
|
|
15135
15135
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -15227,7 +15227,7 @@ async function handlePlayList(args) {
|
|
|
15227
15227
|
lines.push("List truncated \u2014 more plays are available.");
|
|
15228
15228
|
lines.push(`Next page: ${nextPage}`);
|
|
15229
15229
|
}
|
|
15230
|
-
|
|
15230
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
15231
15231
|
{
|
|
15232
15232
|
plays,
|
|
15233
15233
|
count: plays.length,
|
|
@@ -15245,7 +15245,7 @@ async function handlePlayList(args) {
|
|
|
15245
15245
|
}
|
|
15246
15246
|
async function handlePlayPin(args, pinned) {
|
|
15247
15247
|
const target = _optionalChain([args, 'access', _605 => _605.find, 'call', _606 => _606((arg) => !arg.startsWith("-")), 'optionalAccess', _607 => _607.trim, 'call', _608 => _608()]);
|
|
15248
|
-
const jsonOutput =
|
|
15248
|
+
const jsonOutput = _chunkXEQBYK4Bjs.argsWantJson.call(void 0, args);
|
|
15249
15249
|
const dryRun = args.includes("--dry-run");
|
|
15250
15250
|
if (!target) {
|
|
15251
15251
|
console.error(
|
|
@@ -15263,11 +15263,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
15263
15263
|
const name = parsedTarget.playName;
|
|
15264
15264
|
const plan = { name, pinned, dryRun };
|
|
15265
15265
|
if (dryRun) {
|
|
15266
|
-
|
|
15266
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, plan);
|
|
15267
15267
|
return 0;
|
|
15268
15268
|
}
|
|
15269
|
-
const result = await new (0,
|
|
15270
|
-
if (jsonOutput)
|
|
15269
|
+
const result = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
15270
|
+
if (jsonOutput) _chunkXEQBYK4Bjs.printCompactJson.call(void 0, result);
|
|
15271
15271
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
15272
15272
|
return 0;
|
|
15273
15273
|
}
|
|
@@ -15393,12 +15393,12 @@ async function handlePlayGrep(args) {
|
|
|
15393
15393
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
15394
15394
|
return 1;
|
|
15395
15395
|
}
|
|
15396
|
-
const client = new (0,
|
|
15396
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
15397
15397
|
const results = (await client.listPlays({ grep: query })).map(
|
|
15398
15398
|
summarizePlayGrepResult
|
|
15399
15399
|
);
|
|
15400
|
-
if (
|
|
15401
|
-
|
|
15400
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
15401
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, {
|
|
15402
15402
|
plays: results,
|
|
15403
15403
|
count: results.length,
|
|
15404
15404
|
query,
|
|
@@ -15421,7 +15421,7 @@ async function handlePlayGrep(args) {
|
|
|
15421
15421
|
return 0;
|
|
15422
15422
|
}
|
|
15423
15423
|
async function handlePlayDescribe(args) {
|
|
15424
|
-
const selection =
|
|
15424
|
+
const selection = _chunkXEQBYK4Bjs.parseJsonFields.call(void 0, args, "describe");
|
|
15425
15425
|
args = selection.args;
|
|
15426
15426
|
const playName = args[0];
|
|
15427
15427
|
if (!playName) {
|
|
@@ -15455,8 +15455,8 @@ async function handlePlayDescribe(args) {
|
|
|
15455
15455
|
`deepline plays check ${playName}`,
|
|
15456
15456
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
15457
15457
|
];
|
|
15458
|
-
if (
|
|
15459
|
-
|
|
15458
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
15459
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, {
|
|
15460
15460
|
ok: false,
|
|
15461
15461
|
error: { message },
|
|
15462
15462
|
next
|
|
@@ -15470,7 +15470,7 @@ async function handlePlayDescribe(args) {
|
|
|
15470
15470
|
}
|
|
15471
15471
|
return 2;
|
|
15472
15472
|
}
|
|
15473
|
-
const client = new (0,
|
|
15473
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
15474
15474
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
15475
15475
|
command: "describe"
|
|
15476
15476
|
});
|
|
@@ -15480,9 +15480,9 @@ async function handlePlayDescribe(args) {
|
|
|
15480
15480
|
compact: args.includes("--compact")
|
|
15481
15481
|
}
|
|
15482
15482
|
);
|
|
15483
|
-
if (
|
|
15484
|
-
if (selection.fields)
|
|
15485
|
-
else
|
|
15483
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
15484
|
+
if (selection.fields) _chunkXEQBYK4Bjs.printJson.call(void 0, play, selection.fields);
|
|
15485
|
+
else _chunkXEQBYK4Bjs.printCompactJson.call(void 0, play);
|
|
15486
15486
|
return 0;
|
|
15487
15487
|
}
|
|
15488
15488
|
printPlayDescription(play);
|
|
@@ -15504,7 +15504,7 @@ async function handlePlaySave(args) {
|
|
|
15504
15504
|
}
|
|
15505
15505
|
let graph;
|
|
15506
15506
|
try {
|
|
15507
|
-
graph = await
|
|
15507
|
+
graph = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
15508
15508
|
"cli.play_save_bundle_graph",
|
|
15509
15509
|
{ targetKind: "file" },
|
|
15510
15510
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -15526,7 +15526,7 @@ async function handlePlaySave(args) {
|
|
|
15526
15526
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, options.target)}`
|
|
15527
15527
|
};
|
|
15528
15528
|
if (options.jsonOutput) {
|
|
15529
|
-
|
|
15529
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, result);
|
|
15530
15530
|
} else {
|
|
15531
15531
|
console.error(result.message);
|
|
15532
15532
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -15548,7 +15548,7 @@ async function handlePlaySave(args) {
|
|
|
15548
15548
|
};
|
|
15549
15549
|
if (options.dryRun) {
|
|
15550
15550
|
if (options.jsonOutput) {
|
|
15551
|
-
|
|
15551
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, dryRun);
|
|
15552
15552
|
} else {
|
|
15553
15553
|
console.log(`Dry run: ${playName}`);
|
|
15554
15554
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15557,14 +15557,14 @@ async function handlePlaySave(args) {
|
|
|
15557
15557
|
}
|
|
15558
15558
|
return 0;
|
|
15559
15559
|
}
|
|
15560
|
-
const client = new (0,
|
|
15560
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
15561
15561
|
try {
|
|
15562
|
-
await
|
|
15562
|
+
await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
15563
15563
|
"cli.play_save_compile_manifests",
|
|
15564
15564
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15565
15565
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15566
15566
|
);
|
|
15567
|
-
const saved = await
|
|
15567
|
+
const saved = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
15568
15568
|
"cli.play_save_register_draft",
|
|
15569
15569
|
{ targetKind: "file", playName, artifactHash },
|
|
15570
15570
|
() => client.registerPlayArtifact({
|
|
@@ -15593,7 +15593,7 @@ async function handlePlaySave(args) {
|
|
|
15593
15593
|
}
|
|
15594
15594
|
};
|
|
15595
15595
|
if (options.jsonOutput) {
|
|
15596
|
-
|
|
15596
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, result);
|
|
15597
15597
|
} else {
|
|
15598
15598
|
console.log(
|
|
15599
15599
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -15619,7 +15619,7 @@ async function handlePlayPublish(args) {
|
|
|
15619
15619
|
}
|
|
15620
15620
|
const { target: playName, useLatest } = options;
|
|
15621
15621
|
let revisionId = options.revisionId;
|
|
15622
|
-
const client = new (0,
|
|
15622
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
15623
15623
|
if (isFileTarget(playName)) {
|
|
15624
15624
|
if (revisionId || useLatest) {
|
|
15625
15625
|
console.error(
|
|
@@ -15629,7 +15629,7 @@ async function handlePlayPublish(args) {
|
|
|
15629
15629
|
}
|
|
15630
15630
|
let graph;
|
|
15631
15631
|
try {
|
|
15632
|
-
graph = await
|
|
15632
|
+
graph = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
15633
15633
|
"cli.play_publish_bundle_graph",
|
|
15634
15634
|
{ targetKind: "file" },
|
|
15635
15635
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -15651,7 +15651,7 @@ async function handlePlayPublish(args) {
|
|
|
15651
15651
|
next: `deepline plays check ${_chunkAID3OYVJjs.shellQuote.call(void 0, playName)}`
|
|
15652
15652
|
};
|
|
15653
15653
|
if (options.jsonOutput) {
|
|
15654
|
-
|
|
15654
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, result3);
|
|
15655
15655
|
} else {
|
|
15656
15656
|
console.error(result3.message);
|
|
15657
15657
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -15674,7 +15674,7 @@ async function handlePlayPublish(args) {
|
|
|
15674
15674
|
};
|
|
15675
15675
|
if (options.dryRun) {
|
|
15676
15676
|
if (options.jsonOutput) {
|
|
15677
|
-
|
|
15677
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, dryRun);
|
|
15678
15678
|
} else {
|
|
15679
15679
|
console.log(`Dry run: ${rootPlayName}`);
|
|
15680
15680
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -15687,18 +15687,18 @@ async function handlePlayPublish(args) {
|
|
|
15687
15687
|
try {
|
|
15688
15688
|
previousLive = await _asyncNullishCoalesce((await client.getPlay(rootPlayName)).play.liveRevision, async () => ( null));
|
|
15689
15689
|
} catch (error) {
|
|
15690
|
-
if (!(error instanceof
|
|
15690
|
+
if (!(error instanceof _chunkSQWET4SLjs.DeeplineError) || error.statusCode !== 404) {
|
|
15691
15691
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15692
15692
|
return 5;
|
|
15693
15693
|
}
|
|
15694
15694
|
}
|
|
15695
15695
|
try {
|
|
15696
|
-
await
|
|
15696
|
+
await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
15697
15697
|
"cli.play_publish_compile_manifests",
|
|
15698
15698
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15699
15699
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
15700
15700
|
);
|
|
15701
|
-
await
|
|
15701
|
+
await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
15702
15702
|
"cli.play_publish_imports",
|
|
15703
15703
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
15704
15704
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -15707,7 +15707,7 @@ async function handlePlayPublish(args) {
|
|
|
15707
15707
|
console.error(error instanceof Error ? error.message : String(error));
|
|
15708
15708
|
return 1;
|
|
15709
15709
|
}
|
|
15710
|
-
const published = await
|
|
15710
|
+
const published = await _chunkLZROM6VQjs.traceCliSpan.call(void 0,
|
|
15711
15711
|
"cli.play_publish_register_root",
|
|
15712
15712
|
{
|
|
15713
15713
|
targetKind: "file",
|
|
@@ -15742,7 +15742,7 @@ async function handlePlayPublish(args) {
|
|
|
15742
15742
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
15743
15743
|
};
|
|
15744
15744
|
if (options.jsonOutput) {
|
|
15745
|
-
|
|
15745
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, result2);
|
|
15746
15746
|
} else {
|
|
15747
15747
|
printPublishReceipt({
|
|
15748
15748
|
name: rootPlayName,
|
|
@@ -15773,7 +15773,7 @@ async function handlePlayPublish(args) {
|
|
|
15773
15773
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
15774
15774
|
latest: useLatest
|
|
15775
15775
|
};
|
|
15776
|
-
|
|
15776
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, result2);
|
|
15777
15777
|
return 0;
|
|
15778
15778
|
}
|
|
15779
15779
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -15797,7 +15797,7 @@ async function handlePlayPublish(args) {
|
|
|
15797
15797
|
revisionId ? { revisionId } : {}
|
|
15798
15798
|
);
|
|
15799
15799
|
if (options.jsonOutput) {
|
|
15800
|
-
|
|
15800
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, result);
|
|
15801
15801
|
} else {
|
|
15802
15802
|
printPublishReceipt({
|
|
15803
15803
|
name: result.name,
|
|
@@ -15837,7 +15837,7 @@ async function handlePlayDelete(args) {
|
|
|
15837
15837
|
);
|
|
15838
15838
|
return 2;
|
|
15839
15839
|
}
|
|
15840
|
-
const client = new (0,
|
|
15840
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
15841
15841
|
let detail;
|
|
15842
15842
|
try {
|
|
15843
15843
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -15861,8 +15861,8 @@ async function handlePlayDelete(args) {
|
|
|
15861
15861
|
name: resolvedName,
|
|
15862
15862
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
15863
15863
|
};
|
|
15864
|
-
if (
|
|
15865
|
-
|
|
15864
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
15865
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, result2);
|
|
15866
15866
|
} else {
|
|
15867
15867
|
process.stdout.write(
|
|
15868
15868
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -15872,8 +15872,8 @@ async function handlePlayDelete(args) {
|
|
|
15872
15872
|
return 0;
|
|
15873
15873
|
}
|
|
15874
15874
|
const result = await client.deletePlay(resolvedName);
|
|
15875
|
-
if (
|
|
15876
|
-
|
|
15875
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
15876
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, result);
|
|
15877
15877
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
15878
15878
|
}
|
|
15879
15879
|
if (result.alreadyArchived) {
|
|
@@ -15912,13 +15912,13 @@ async function handlePlayRestore(args) {
|
|
|
15912
15912
|
);
|
|
15913
15913
|
return 2;
|
|
15914
15914
|
}
|
|
15915
|
-
const client = new (0,
|
|
15915
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
15916
15916
|
try {
|
|
15917
15917
|
const result = await client.restorePlay(
|
|
15918
15918
|
parseReferencedPlayTarget(playName).playName
|
|
15919
15919
|
);
|
|
15920
|
-
if (
|
|
15921
|
-
|
|
15920
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
15921
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, result);
|
|
15922
15922
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
15923
15923
|
}
|
|
15924
15924
|
if (result.alreadyActive) {
|
|
@@ -16045,21 +16045,21 @@ Common commands:
|
|
|
16045
16045
|
resume: `deepline plays resume-submission ${_chunkAID3OYVJjs.shellQuote.call(void 0, path)} --json`
|
|
16046
16046
|
}
|
|
16047
16047
|
};
|
|
16048
|
-
|
|
16048
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0, result2, {
|
|
16049
16049
|
json: options.json,
|
|
16050
16050
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
16051
16051
|
`
|
|
16052
16052
|
});
|
|
16053
16053
|
return;
|
|
16054
16054
|
}
|
|
16055
|
-
const client = new (0,
|
|
16055
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
16056
16056
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
16057
16057
|
throw new Error(
|
|
16058
16058
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
16059
16059
|
);
|
|
16060
16060
|
}
|
|
16061
16061
|
const result = await client.startPlayRun(saved.request);
|
|
16062
|
-
|
|
16062
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
16063
16063
|
{ ...result },
|
|
16064
16064
|
{
|
|
16065
16065
|
json: options.json,
|
|
@@ -16095,7 +16095,7 @@ Examples:
|
|
|
16095
16095
|
).action(async (target, options) => {
|
|
16096
16096
|
process.exitCode = await handlePlayCheck([
|
|
16097
16097
|
target,
|
|
16098
|
-
...
|
|
16098
|
+
..._chunkXEQBYK4Bjs.jsonFieldArgs.call(void 0, options.json),
|
|
16099
16099
|
...options.full ? ["--full"] : []
|
|
16100
16100
|
]);
|
|
16101
16101
|
});
|
|
@@ -16138,10 +16138,10 @@ Notes:
|
|
|
16138
16138
|
retained input and pinned revision, and returns once it starts. It accepts
|
|
16139
16139
|
only --json.
|
|
16140
16140
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
16141
|
-
resident-work ceiling. Default: ${
|
|
16141
|
+
resident-work ceiling. Default: ${_chunk4IIK6GIYjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunk4IIK6GIYjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
16142
16142
|
Provider pacing and sandbox memory limits still apply.
|
|
16143
16143
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
16144
|
-
resolvers. Accepted range: 1-${
|
|
16144
|
+
resolvers. Accepted range: 1-${_chunk4IIK6GIYjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
16145
16145
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
16146
16146
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
16147
16147
|
Tool calls that would exceed it are denied.
|
|
@@ -16266,10 +16266,10 @@ Examples:
|
|
|
16266
16266
|
).hideHelp()
|
|
16267
16267
|
).option(
|
|
16268
16268
|
"--max-concurrent-external-calls <count>",
|
|
16269
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
16269
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunk4IIK6GIYjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunk4IIK6GIYjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
16270
16270
|
).option(
|
|
16271
16271
|
"--max-concurrent-rows <count>",
|
|
16272
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
16272
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunk4IIK6GIYjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
16273
16273
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the run page in a browser after the run starts").option(
|
|
16274
16274
|
"--debug-map-latency",
|
|
16275
16275
|
"Internal diagnostics: emit one aggregate latency profile per dataset map"
|
|
@@ -16355,14 +16355,14 @@ JSON field selection:
|
|
|
16355
16355
|
passthroughArgs.shift();
|
|
16356
16356
|
}
|
|
16357
16357
|
const exitCode = await handlePlayRun(
|
|
16358
|
-
|
|
16358
|
+
_chunk4IIK6GIYjs.resolvePlayRunCliOptions.call(void 0,
|
|
16359
16359
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
16360
16360
|
options,
|
|
16361
16361
|
passthroughArgs,
|
|
16362
|
-
|
|
16362
|
+
_chunkLZROM6VQjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
16363
16363
|
)
|
|
16364
16364
|
);
|
|
16365
|
-
|
|
16365
|
+
_chunkLZROM6VQjs.recordCliTrace.call(void 0, {
|
|
16366
16366
|
phase: "cli.play_command_exit",
|
|
16367
16367
|
exitCode
|
|
16368
16368
|
});
|
|
@@ -16411,9 +16411,9 @@ Examples:
|
|
|
16411
16411
|
const limit = Number(options.historyLimit);
|
|
16412
16412
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
16413
16413
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
16414
|
-
const client = new (0,
|
|
16414
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
16415
16415
|
if (options.binding) {
|
|
16416
|
-
|
|
16416
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0,
|
|
16417
16417
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
16418
16418
|
);
|
|
16419
16419
|
return;
|
|
@@ -16421,7 +16421,7 @@ Examples:
|
|
|
16421
16421
|
const result = await client.listPlayTriggerInventory({
|
|
16422
16422
|
cursor: options.cursor
|
|
16423
16423
|
});
|
|
16424
|
-
|
|
16424
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, {
|
|
16425
16425
|
...result,
|
|
16426
16426
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
16427
16427
|
});
|
|
@@ -16480,7 +16480,7 @@ Examples:
|
|
|
16480
16480
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
16481
16481
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
16482
16482
|
}
|
|
16483
|
-
const result = await new (0,
|
|
16483
|
+
const result = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().getPlaysActivity({
|
|
16484
16484
|
timeZone: options.timeZone,
|
|
16485
16485
|
days,
|
|
16486
16486
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -16494,7 +16494,7 @@ Examples:
|
|
|
16494
16494
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
16495
16495
|
);
|
|
16496
16496
|
}
|
|
16497
|
-
|
|
16497
|
+
_chunkXEQBYK4Bjs.printCommandEnvelope.call(void 0,
|
|
16498
16498
|
{ ...result },
|
|
16499
16499
|
{
|
|
16500
16500
|
json: Boolean(options.json),
|
|
@@ -16523,7 +16523,7 @@ Examples:
|
|
|
16523
16523
|
false
|
|
16524
16524
|
);
|
|
16525
16525
|
});
|
|
16526
|
-
|
|
16526
|
+
_chunkQX7WDG4Vjs.registerDeprecatedSearchCommand.call(void 0,
|
|
16527
16527
|
play,
|
|
16528
16528
|
(options) => options.all ? ["plays"] : ["prebuilts"]
|
|
16529
16529
|
);
|
|
@@ -16564,9 +16564,9 @@ Examples:
|
|
|
16564
16564
|
"--json [fields]",
|
|
16565
16565
|
"JSON output; optionally select comma-separated dotted paths"
|
|
16566
16566
|
);
|
|
16567
|
-
|
|
16567
|
+
_chunkRLI6FDQMjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
16568
16568
|
async (target, options) => {
|
|
16569
|
-
const ownView = () => handlePlayDescribe(
|
|
16569
|
+
const ownView = () => handlePlayDescribe(_chunkXEQBYK4Bjs.describeArgs.call(void 0, target, options));
|
|
16570
16570
|
const [flagText] = [options.json].filter(
|
|
16571
16571
|
(value) => typeof value === "string"
|
|
16572
16572
|
);
|
|
@@ -16577,7 +16577,7 @@ Examples:
|
|
|
16577
16577
|
process.exitCode = await ownView();
|
|
16578
16578
|
return;
|
|
16579
16579
|
}
|
|
16580
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
16580
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-BPX3U2BF.js")));
|
|
16581
16581
|
process.exitCode = await describeAnything(
|
|
16582
16582
|
name,
|
|
16583
16583
|
{
|
|
@@ -16695,7 +16695,7 @@ Examples:
|
|
|
16695
16695
|
deepline plays deployments <deployment-id>
|
|
16696
16696
|
`
|
|
16697
16697
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
16698
|
-
async (id, options) => id ?
|
|
16698
|
+
async (id, options) => id ? _chunkPKKSXXZ5js.handleDeploymentGet.call(void 0, id, options) : _chunkPKKSXXZ5js.handleDeploymentsList.call(void 0, options)
|
|
16699
16699
|
);
|
|
16700
16700
|
addPublishHelp(
|
|
16701
16701
|
play.command("publish <target>").description(
|
|
@@ -16830,14 +16830,14 @@ Examples:
|
|
|
16830
16830
|
const limit = Number(options.limit);
|
|
16831
16831
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
16832
16832
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
16833
|
-
const result = await new (0,
|
|
16833
|
+
const result = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().runs.rowHistory({
|
|
16834
16834
|
playName: options.play,
|
|
16835
16835
|
runId,
|
|
16836
16836
|
tableNamespace: options.dataset,
|
|
16837
16837
|
limit,
|
|
16838
16838
|
cursor: options.cursor
|
|
16839
16839
|
});
|
|
16840
|
-
|
|
16840
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, {
|
|
16841
16841
|
...result,
|
|
16842
16842
|
...result.nextCursor ? {
|
|
16843
16843
|
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`
|
|
@@ -16915,7 +16915,7 @@ Examples:
|
|
|
16915
16915
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16916
16916
|
).action(async (runId, options) => {
|
|
16917
16917
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16918
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
16918
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-5V77VIUA.js")));
|
|
16919
16919
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16920
16920
|
receiptJson: options.json !== void 0
|
|
16921
16921
|
});
|
|
@@ -16923,7 +16923,7 @@ Examples:
|
|
|
16923
16923
|
}
|
|
16924
16924
|
process.exitCode = await handleRunGet([
|
|
16925
16925
|
runId,
|
|
16926
|
-
...
|
|
16926
|
+
..._chunkXEQBYK4Bjs.jsonFieldArgs.call(void 0, options.json),
|
|
16927
16927
|
...options.web ? ["--web"] : [],
|
|
16928
16928
|
...options.webUrl ? ["--web-url"] : [],
|
|
16929
16929
|
...options.full ? ["--full"] : [],
|
|
@@ -17240,7 +17240,7 @@ Examples:
|
|
|
17240
17240
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
17241
17241
|
...options.wait ? ["--wait"] : [],
|
|
17242
17242
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
17243
|
-
...
|
|
17243
|
+
..._chunkXEQBYK4Bjs.jsonFieldArgs.call(void 0, options.json)
|
|
17244
17244
|
]);
|
|
17245
17245
|
});
|
|
17246
17246
|
const share = play.command("share").description(
|
|
@@ -17406,10 +17406,10 @@ async function handlePlayShareStatus(args) {
|
|
|
17406
17406
|
return 2;
|
|
17407
17407
|
}
|
|
17408
17408
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17409
|
-
const status = await new (0,
|
|
17409
|
+
const status = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().getSharePage(name);
|
|
17410
17410
|
const outputStatus = shareStatusForOutput(status);
|
|
17411
|
-
if (
|
|
17412
|
-
|
|
17411
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
17412
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, outputStatus);
|
|
17413
17413
|
return 0;
|
|
17414
17414
|
}
|
|
17415
17415
|
if (!outputStatus.share) {
|
|
@@ -17448,7 +17448,7 @@ async function handlePlaySharePublish(args) {
|
|
|
17448
17448
|
return 2;
|
|
17449
17449
|
}
|
|
17450
17450
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17451
|
-
const client = new (0,
|
|
17451
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
17452
17452
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17453
17453
|
let resolvedVersion;
|
|
17454
17454
|
if (!revisionId) {
|
|
@@ -17479,8 +17479,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17479
17479
|
);
|
|
17480
17480
|
if (!hasCompleted) {
|
|
17481
17481
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
17482
|
-
if (
|
|
17483
|
-
|
|
17482
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
17483
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, {
|
|
17484
17484
|
ok: false,
|
|
17485
17485
|
code: "NO_SUCCESSFUL_RUN",
|
|
17486
17486
|
message,
|
|
@@ -17504,8 +17504,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17504
17504
|
};
|
|
17505
17505
|
if (args.includes("--dry-run")) {
|
|
17506
17506
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
17507
|
-
if (
|
|
17508
|
-
|
|
17507
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
17508
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, plan);
|
|
17509
17509
|
} else {
|
|
17510
17510
|
console.log(
|
|
17511
17511
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -17515,8 +17515,8 @@ async function handlePlaySharePublish(args) {
|
|
|
17515
17515
|
}
|
|
17516
17516
|
const status = await client.publishSharePage(name, request);
|
|
17517
17517
|
const outputStatus = shareStatusForOutput(status);
|
|
17518
|
-
if (
|
|
17519
|
-
|
|
17518
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
17519
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, outputStatus);
|
|
17520
17520
|
return 0;
|
|
17521
17521
|
}
|
|
17522
17522
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17547,9 +17547,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
17547
17547
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
17548
17548
|
...seoIndexing ? { seoIndexing } : {}
|
|
17549
17549
|
};
|
|
17550
|
-
const status = await new (0,
|
|
17551
|
-
if (
|
|
17552
|
-
|
|
17550
|
+
const status = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().updateSharePage(name, request);
|
|
17551
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
17552
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, status);
|
|
17553
17553
|
return 0;
|
|
17554
17554
|
}
|
|
17555
17555
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -17564,7 +17564,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17564
17564
|
return 2;
|
|
17565
17565
|
}
|
|
17566
17566
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17567
|
-
const client = new (0,
|
|
17567
|
+
const client = new (0, _chunkPMS3LQ6Bjs.DeeplineClient)();
|
|
17568
17568
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
17569
17569
|
const versionFlag = shareFlagValue(args, "--version");
|
|
17570
17570
|
if (!revisionId && versionFlag) {
|
|
@@ -17581,8 +17581,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
17581
17581
|
revisionId ? { revisionId } : {}
|
|
17582
17582
|
);
|
|
17583
17583
|
const outputStatus = shareStatusForOutput(status);
|
|
17584
|
-
if (
|
|
17585
|
-
|
|
17584
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
17585
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, outputStatus);
|
|
17586
17586
|
return 0;
|
|
17587
17587
|
}
|
|
17588
17588
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -17607,9 +17607,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17607
17607
|
return 2;
|
|
17608
17608
|
}
|
|
17609
17609
|
const name = parseReferencedPlayTarget(target).playName;
|
|
17610
|
-
const status = await new (0,
|
|
17611
|
-
if (
|
|
17612
|
-
|
|
17610
|
+
const status = await new (0, _chunkPMS3LQ6Bjs.DeeplineClient)().unpublishSharePage(name);
|
|
17611
|
+
if (_chunkXEQBYK4Bjs.argsWantJson.call(void 0, args)) {
|
|
17612
|
+
_chunkXEQBYK4Bjs.printCompactJson.call(void 0, status);
|
|
17613
17613
|
return 0;
|
|
17614
17614
|
}
|
|
17615
17615
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -17686,4 +17686,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
17686
17686
|
|
|
17687
17687
|
|
|
17688
17688
|
|
|
17689
|
-
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.checkPlayFileExports = checkPlayFileExports; 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 =
|
|
17689
|
+
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.checkPlayFileExports = checkPlayFileExports; 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 = _chunk4IIK6GIYjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunk4IIK6GIYjs.parsePlayRunOptions; exports.preflightLocalFileInputs = preflightLocalFileInputs; exports.registerPlayCommands = registerPlayCommands; exports.renderRunOverviewText = renderRunOverviewText; exports.resolveDatasetByName = resolveDatasetByName; exports.resolvePlayRunOutputStatus = resolvePlayRunOutputStatus; exports.resolvePlayRunUrl = resolvePlayRunUrl; 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;
|