deepline 0.3.572 → 0.3.574
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/config.ts +19 -0
- package/dist/bundling-sources/sdk/src/play.ts +7 -4
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +43 -7
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +56 -20
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +4 -3
- package/dist/cli/agents-6WN5LYUP.mjs +833 -0
- package/dist/cli/agents-7ZZSF4FS.js +833 -0
- package/dist/cli/{auth-YUDM3YOC.mjs → auth-I2QVO677.mjs} +5 -5
- package/dist/cli/auth-UKPV5U2B.js +44 -0
- package/dist/cli/{billing-F3ZGOWKL.js → billing-44QFBUWA.js} +106 -106
- package/dist/cli/{billing-O7WUC4TU.mjs → billing-YPH4GEWU.mjs} +10 -10
- package/dist/cli/{chunk-ITQPBWDS.js → chunk-2QYU57RG.js} +15 -7
- package/dist/cli/{chunk-LBNP52C4.js → chunk-2RPRSTHD.js} +5 -5
- package/dist/cli/{chunk-I4WKB3HO.mjs → chunk-2TMAKJBT.mjs} +2 -2
- package/dist/cli/{chunk-PQ6PM4V6.mjs → chunk-4T2U72SP.mjs} +1 -1
- package/dist/cli/{chunk-HYCJNHZ4.js → chunk-5E2PAGF5.js} +27 -20
- package/dist/cli/{chunk-W3HLZ24Q.js → chunk-6B5EZOI3.js} +10 -10
- package/dist/cli/{chunk-YOST7EJF.js → chunk-6GZIT3TH.js} +20 -20
- package/dist/cli/{chunk-72WI67H4.mjs → chunk-7334X74C.mjs} +2 -2
- package/dist/cli/{chunk-PI4TKE2B.js → chunk-7GQU46SZ.js} +26 -26
- package/dist/cli/{chunk-NOKSEYMS.js → chunk-7UR57HPJ.js} +1 -1
- package/dist/cli/{chunk-6ASDTHEN.js → chunk-AFPGYZBH.js} +21 -17
- package/dist/cli/{chunk-V2W7GX2I.mjs → chunk-B2XLIQPH.mjs} +3 -3
- package/dist/cli/{chunk-XNJXRS3B.js → chunk-BUBOZKH2.js} +2 -2
- package/dist/cli/{chunk-K4LAEKHS.js → chunk-D6ZVRKJ2.js} +41 -41
- package/dist/cli/{chunk-5VUD7HGD.js → chunk-DG56RWI2.js} +2 -2
- package/dist/cli/{chunk-UKD5ZBQD.js → chunk-DOZIWA66.js} +7 -7
- package/dist/cli/{chunk-EKWDSE6H.mjs → chunk-DX646HO7.mjs} +4 -4
- package/dist/cli/{chunk-43GCEVHO.js → chunk-ECLCRE5P.js} +3 -3
- package/dist/cli/{chunk-UUYB6IXC.js → chunk-G2HW2SAP.js} +13 -13
- package/dist/cli/{chunk-BWWDU6FN.mjs → chunk-G7OR3GVD.mjs} +5 -5
- package/dist/cli/{chunk-UQWYDNGB.mjs → chunk-GMQZFWQU.mjs} +17 -10
- package/dist/cli/{chunk-VGPHXXPI.js → chunk-H7PVSG3L.js} +15 -15
- package/dist/cli/{chunk-EL4LME5Y.js → chunk-I62ZBEKH.js} +48 -48
- package/dist/cli/{chunk-QA733N7N.mjs → chunk-IA2LTIWO.mjs} +2 -2
- package/dist/cli/{chunk-FGBX2WVJ.js → chunk-IB225ZK4.js} +4 -4
- package/dist/cli/{chunk-VZ4S5JRC.js → chunk-ID3LGPOE.js} +23 -23
- package/dist/cli/{chunk-LHPYCJNL.js → chunk-IXYVHTRZ.js} +19 -6
- package/dist/cli/{chunk-64MOX3SN.mjs → chunk-JCO226JM.mjs} +111 -2
- package/dist/cli/{chunk-SJI56XPM.mjs → chunk-JY7RKJ65.mjs} +21 -16
- package/dist/cli/{chunk-N6KF6X3D.js → chunk-KSHZY52O.js} +114 -5
- package/dist/cli/{chunk-BM4GE67C.mjs → chunk-L2NXB4WG.mjs} +19 -6
- package/dist/cli/{chunk-UFUXGMHL.mjs → chunk-LCAXLGAY.mjs} +2 -2
- package/dist/cli/{chunk-AHNJGA6Z.js → chunk-LJLM4BUL.js} +6 -6
- package/dist/cli/{chunk-EKIWY5DD.mjs → chunk-LLSCFLFU.mjs} +1 -1
- package/dist/cli/{chunk-OUVQKSVC.mjs → chunk-MAMGREBW.mjs} +1 -1
- package/dist/cli/{chunk-CYW6PE3G.mjs → chunk-MGF3MK27.mjs} +5 -5
- package/dist/cli/{chunk-PZGK6EEB.js → chunk-N6I3BB2O.js} +280 -275
- package/dist/cli/{chunk-4W5EFHHY.js → chunk-NDDGFX4X.js} +11 -11
- package/dist/cli/{chunk-RIA73OAZ.mjs → chunk-NRVEVKXR.mjs} +2 -2
- package/dist/cli/{chunk-UY6Z3XWW.mjs → chunk-OH6WOID2.mjs} +2 -2
- package/dist/cli/{chunk-GX4VZL4Z.mjs → chunk-OIZUFRTE.mjs} +3 -3
- package/dist/cli/{chunk-3SFLY3T3.js → chunk-PP5RMEQQ.js} +5 -5
- package/dist/cli/{chunk-UMP76GYQ.mjs → chunk-PW6NKI2A.mjs} +3 -3
- package/dist/cli/{chunk-ENHQBPR5.mjs → chunk-Q3A53SWK.mjs} +4 -3
- package/dist/cli/{chunk-X6F4XOT2.mjs → chunk-QPSBV4FD.mjs} +2 -2
- package/dist/cli/{chunk-6R57HEPF.mjs → chunk-S22FSNNC.mjs} +1 -1
- package/dist/cli/{chunk-XVQE6IBS.js → chunk-SLXCVPN7.js} +2 -2
- package/dist/cli/{chunk-AJO3I3LL.mjs → chunk-SRUNYWQ2.mjs} +9 -1
- package/dist/cli/{chunk-5EMYPLTW.js → chunk-UXIUAIL2.js} +53 -53
- package/dist/cli/{chunk-MVQ5XGRO.mjs → chunk-VGIDPJXM.mjs} +3 -3
- package/dist/cli/{chunk-PRDCU7BY.js → chunk-VLUBEMWM.js} +20 -20
- package/dist/cli/{chunk-W3RHISD6.js → chunk-VYSUJMB5.js} +8 -8
- package/dist/cli/{chunk-W742U53L.mjs → chunk-W6UCS3O6.mjs} +5 -5
- package/dist/cli/{chunk-Q6H5RRTG.mjs → chunk-X7RKCAMX.mjs} +4 -4
- package/dist/cli/{chunk-TBLP7HDL.js → chunk-XMBTAPHR.js} +10 -9
- package/dist/cli/{chunk-EDAG7ZU4.mjs → chunk-XVBEEGI4.mjs} +1 -1
- package/dist/cli/{chunk-JJEN7TRR.mjs → chunk-YR4REP4D.mjs} +1 -1
- package/dist/cli/{chunk-QMIMGKR2.js → chunk-Z3XFXFRT.js} +9 -9
- package/dist/cli/{chunk-JEI7PHET.mjs → chunk-ZFXDD7VM.mjs} +1 -1
- package/dist/cli/{chunk-HUJMFETO.mjs → chunk-ZTCP5BHH.mjs} +7 -3
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/concurrent-runs-help-BFVCUJF4.js +22 -0
- package/dist/cli/{concurrent-runs-help-5BKCGFGL.mjs → concurrent-runs-help-ROQM6UB3.mjs} +7 -7
- package/dist/cli/{csv-7ZAWND7L.js → csv-FWGSY4GE.js} +13 -13
- package/dist/cli/{csv-MO5WZZDN.mjs → csv-R7GV33BC.mjs} +4 -4
- package/dist/cli/{db-36LX7JBQ.js → db-OCH35YJG.js} +27 -27
- package/dist/cli/{db-OYMULINA.mjs → db-UWXA4RRV.mjs} +6 -6
- package/dist/cli/describe-6OI5K2SH.js +50 -0
- package/dist/cli/{describe-JLAERB6X.mjs → describe-QI4HMUGE.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-AQ32J4BZ.js → executions-7CFGC24E.js} +8 -8
- package/dist/cli/{executions-IZAB2XNC.mjs → executions-YF3KMZZN.mjs} +6 -6
- package/dist/cli/{feedback-WA6EBE5H.mjs → feedback-DWIWBS7O.mjs} +6 -6
- package/dist/cli/{feedback-3IV54HOH.js → feedback-YCZHHSBS.js} +14 -14
- package/dist/cli/git-TGLNZRS3.js +26 -0
- package/dist/cli/{git-OSLU6HIK.mjs → git-XCGMQQOD.mjs} +5 -5
- package/dist/cli/index.js +152 -148
- package/dist/cli/index.mjs +51 -47
- package/dist/cli/{integrations-WOXFOC4M.mjs → integrations-5ABAJBSW.mjs} +7 -7
- package/dist/cli/{integrations-65SYNL53.js → integrations-IEZA3TGK.js} +29 -29
- package/dist/cli/{legacy-noops-3SGXDAV6.js → legacy-noops-KNFLJ5P2.js} +9 -9
- package/dist/cli/{legacy-noops-4FNG2JY3.mjs → legacy-noops-OZMY73Y3.mjs} +6 -6
- package/dist/cli/{mcp-PX27RHCY.js → mcp-NLQAO7KP.js} +24 -24
- package/dist/cli/{mcp-RZLWMZHH.mjs → mcp-WSPFKQPZ.mjs} +4 -4
- package/dist/cli/{monitors-F5BLGS4R.js → monitors-BJYOB4S3.js} +100 -100
- package/dist/cli/{monitors-VK2LW7VU.mjs → monitors-LPKFFTOX.mjs} +7 -7
- package/dist/cli/{org-7AEBTN6Y.mjs → org-RYPMUYUW.mjs} +6 -6
- package/dist/cli/{org-UU3V7U4K.js → org-WIVHI4WT.js} +121 -121
- package/dist/cli/{outcomes-BWERSUJL.mjs → outcomes-FADJYC4I.mjs} +9 -7
- package/dist/cli/{outcomes-GCTBGPMK.js → outcomes-QKX7IE3O.js} +17 -15
- package/dist/cli/{play-TX3RAAYS.mjs → play-4ZKK5Q7U.mjs} +88 -33
- package/dist/cli/{play-7NBCCL26.js → play-ID73J3NP.js} +393 -338
- package/dist/cli/{providers-KFWZXDCV.mjs → providers-LURYBSNO.mjs} +6 -6
- package/dist/cli/{providers-IL2IVKHB.js → providers-WCCGYGW6.js} +9 -9
- package/dist/cli/{quickstart-RAMDGRRI.mjs → quickstart-KCCSEE5J.mjs} +4 -4
- package/dist/cli/{quickstart-MPA6TUK5.js → quickstart-LVPOU25V.js} +6 -6
- package/dist/cli/{run-WBUSXBUS.js → run-2QMJRCVA.js} +48 -48
- package/dist/cli/{run-QNJSKPBN.mjs → run-XXK7DDUF.mjs} +26 -26
- package/dist/cli/search-AQSAXA6D.js +32 -0
- package/dist/cli/{search-2X4P2FXR.mjs → search-ZYAWW3CK.mjs} +7 -7
- package/dist/cli/{search-output-MNJ4AQLV.mjs → search-output-N45AIOB4.mjs} +9 -6
- package/dist/cli/{search-output-P2WNCHA3.js → search-output-YNXAZSKT.js} +12 -9
- package/dist/cli/{secrets-XX54OU22.mjs → secrets-7Q3AOUAS.mjs} +6 -6
- package/dist/cli/{secrets-K5CNDUVR.js → secrets-MHT27L2M.js} +15 -15
- package/dist/cli/{sessions-C4GQ6ZVO.mjs → sessions-6QKOM7M3.mjs} +6 -6
- package/dist/cli/sessions-RGD7L4LC.js +23 -0
- package/dist/cli/{settings-7HBTADGW.mjs → settings-NPVIDENI.mjs} +12 -12
- package/dist/cli/{settings-QP3DVFPS.js → settings-OP7Q6YX6.js} +85 -85
- package/dist/cli/{setup-VPDAKY2G.mjs → setup-OOT3EIMF.mjs} +9 -9
- package/dist/cli/{setup-X6J7U6B4.js → setup-RT6GHL3W.js} +49 -49
- package/dist/cli/skills-ERAA734H.js +37 -0
- package/dist/cli/{skills-UGY6W4AC.mjs → skills-TEXI4CLZ.mjs} +7 -7
- package/dist/cli/tools-D5SZSIIH.js +57 -0
- package/dist/cli/{tools-SVBUAHDD.mjs → tools-G5L36M3X.mjs} +19 -19
- package/dist/cli/update-WZ6527EF.js +37 -0
- package/dist/cli/{update-SDNKNDNW.mjs → update-YNKQTE4D.mjs} +9 -9
- package/dist/cli/{views-M6RBPC65.mjs → views-IQFMUMLU.mjs} +6 -6
- package/dist/cli/{views-JBFSHQBU.js → views-OVQ5AQAU.js} +21 -21
- package/dist/cli/{workflow-UAMTGHQC.js → workflow-RCBYXIFZ.js} +17 -17
- package/dist/cli/{workflow-RYVRAIHV.mjs → workflow-Y5IFMI7N.mjs} +7 -7
- package/dist/{client-DCnExziW.d.ts → client-BrdMPFCM.d.ts} +1 -1
- package/dist/{client-ClJlqkKt.d.mts → client-CF-bsrtI.d.mts} +1 -1
- package/dist/{client-core-DAOPQnGD.d.mts → client-core-DM1ZedOG.d.mts} +8 -0
- package/dist/{client-core-BKq5ZNAl.d.ts → client-core-rMoUWSYM.d.ts} +8 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +128 -126
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- 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 +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-PXIVGUVZ.js +0 -44
- package/dist/cli/concurrent-runs-help-KGELXJIQ.js +0 -22
- package/dist/cli/describe-AVGE4MH6.js +0 -50
- package/dist/cli/git-VOFO6V5W.js +0 -26
- package/dist/cli/search-CJHG3VA4.js +0 -32
- package/dist/cli/sessions-3RMRBBJZ.js +0 -23
- package/dist/cli/skills-JUGXGSX2.js +0 -37
- package/dist/cli/tools-ZEI42NSP.js +0 -57
- package/dist/cli/update-VC4UEGMR.js +0 -37
- /package/dist/cli/{chunk-2RIKOPIM.mjs → chunk-HECXJBED.mjs} +0 -0
- /package/dist/cli/{chunk-H4ALLC2X.js → chunk-TJCENACZ.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } async function _asyncOptionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = await fn(value); } else if (op === 'call' || op === 'optionalCall') { value = await fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk7GQU46SZjs = require('./chunk-7GQU46SZ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -9,7 +9,7 @@ var _chunkPI4TKE2Bjs = require('./chunk-PI4TKE2B.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkZ3XFXFRTjs = require('./chunk-Z3XFXFRT.js');
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
@@ -22,15 +22,15 @@ var _chunkQMIMGKR2js = require('./chunk-QMIMGKR2.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkNDDGFX4Xjs = require('./chunk-NDDGFX4X.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk6B5EZOI3js = require('./chunk-6B5EZOI3.js');
|
|
29
29
|
require('./chunk-D3BCSAN7.js');
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkIXYVHTRZjs = require('./chunk-IXYVHTRZ.js');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
var _chunkBVXIGOBZjs = require('./chunk-BVXIGOBZ.js');
|
|
@@ -51,10 +51,10 @@ var _chunkR6DZ6NQ2js = require('./chunk-R6DZ6NQ2.js');
|
|
|
51
51
|
|
|
52
52
|
|
|
53
53
|
|
|
54
|
-
var
|
|
54
|
+
var _chunkPP5RMEQQjs = require('./chunk-PP5RMEQQ.js');
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunk2RPRSTHDjs = require('./chunk-2RPRSTHD.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -67,7 +67,7 @@ var _chunkLBNP52C4js = require('./chunk-LBNP52C4.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunkVYSUJMB5js = require('./chunk-VYSUJMB5.js');
|
|
71
71
|
require('./chunk-4WAM6TLD.js');
|
|
72
72
|
|
|
73
73
|
|
|
@@ -90,18 +90,18 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
90
90
|
|
|
91
91
|
|
|
92
92
|
|
|
93
|
-
var
|
|
93
|
+
var _chunkLJLM4BULjs = require('./chunk-LJLM4BUL.js');
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
|
|
99
|
-
var
|
|
100
|
-
require('./chunk-
|
|
99
|
+
var _chunkSLXCVPN7js = require('./chunk-SLXCVPN7.js');
|
|
100
|
+
require('./chunk-I62ZBEKH.js');
|
|
101
101
|
|
|
102
102
|
|
|
103
103
|
|
|
104
|
-
var
|
|
104
|
+
var _chunkECLCRE5Pjs = require('./chunk-ECLCRE5P.js');
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
var _chunkE2G2DNABjs = require('./chunk-E2G2DNAB.js');
|
|
@@ -122,13 +122,14 @@ var _chunkYGCKMI5Pjs = require('./chunk-YGCKMI5P.js');
|
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
|
|
125
|
-
var
|
|
125
|
+
var _chunkVLUBEMWMjs = require('./chunk-VLUBEMWM.js');
|
|
126
126
|
|
|
127
127
|
|
|
128
|
-
var _chunkITQPBWDSjs = require('./chunk-ITQPBWDS.js');
|
|
129
128
|
|
|
129
|
+
var _chunk2QYU57RGjs = require('./chunk-2QYU57RG.js');
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
|
|
132
|
+
var _chunkIB225ZK4js = require('./chunk-IB225ZK4.js');
|
|
132
133
|
require('./chunk-6VLFQZK6.js');
|
|
133
134
|
require('./chunk-XNYIZMNQ.js');
|
|
134
135
|
|
|
@@ -138,7 +139,7 @@ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
|
138
139
|
|
|
139
140
|
|
|
140
141
|
var _chunkCFJFUVX2js = require('./chunk-CFJFUVX2.js');
|
|
141
|
-
require('./chunk-
|
|
142
|
+
require('./chunk-7UR57HPJ.js');
|
|
142
143
|
require('./chunk-OG64RBAC.js');
|
|
143
144
|
|
|
144
145
|
|
|
@@ -2120,7 +2121,7 @@ function resolveField(key, command) {
|
|
|
2120
2121
|
function printSettings(result, json, name) {
|
|
2121
2122
|
result = { ...result, settings: parsePlaySettings(result.settings) };
|
|
2122
2123
|
const selected = fields.filter(([key]) => !name || key === name);
|
|
2123
|
-
|
|
2124
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
2124
2125
|
{
|
|
2125
2126
|
...result,
|
|
2126
2127
|
settings: Object.fromEntries(
|
|
@@ -2164,7 +2165,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2164
2165
|
valueSyntax: field.cli.valueSyntax,
|
|
2165
2166
|
examples: field.cli.examples
|
|
2166
2167
|
}));
|
|
2167
|
-
|
|
2168
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
2168
2169
|
{
|
|
2169
2170
|
fields: descriptions,
|
|
2170
2171
|
render: {
|
|
@@ -2189,7 +2190,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2189
2190
|
async (options, command) => {
|
|
2190
2191
|
if (options.name !== void 0) resolveField(options.name, command);
|
|
2191
2192
|
printSettings(
|
|
2192
|
-
await new (0,
|
|
2193
|
+
await new (0, _chunk2RPRSTHDjs.DeeplineClient)().getPlaySettings(options.play),
|
|
2193
2194
|
options.json,
|
|
2194
2195
|
options.name
|
|
2195
2196
|
);
|
|
@@ -2220,7 +2221,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2220
2221
|
);
|
|
2221
2222
|
}
|
|
2222
2223
|
if (options.dryRun) {
|
|
2223
|
-
|
|
2224
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
2224
2225
|
{
|
|
2225
2226
|
dryRun: true,
|
|
2226
2227
|
play,
|
|
@@ -2241,7 +2242,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2241
2242
|
return;
|
|
2242
2243
|
}
|
|
2243
2244
|
printSettings(
|
|
2244
|
-
await new (0,
|
|
2245
|
+
await new (0, _chunk2RPRSTHDjs.DeeplineClient)().updatePlaySettings(play, patch),
|
|
2245
2246
|
options.json
|
|
2246
2247
|
);
|
|
2247
2248
|
};
|
|
@@ -2267,13 +2268,13 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2267
2268
|
"--root must be person or team; --limit must be 1\u2013100.",
|
|
2268
2269
|
{ exitCode: 2 }
|
|
2269
2270
|
);
|
|
2270
|
-
const page = await new (0,
|
|
2271
|
+
const page = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().listPlaySettingsPaths({
|
|
2271
2272
|
root: options.root,
|
|
2272
2273
|
limit,
|
|
2273
2274
|
cursor: options.cursor
|
|
2274
2275
|
});
|
|
2275
2276
|
const nextCommand = page.hasMore ? `deepline plays settings paths --cursor '${page.cursor}'${options.root ? ` --root ${options.root}` : ""}` : null;
|
|
2276
|
-
|
|
2277
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
2277
2278
|
{
|
|
2278
2279
|
...page,
|
|
2279
2280
|
nextCommand,
|
|
@@ -2324,7 +2325,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2324
2325
|
root: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _12 => _12.root]), () => ( "person")),
|
|
2325
2326
|
folders: _nullishCoalesce(_optionalChain([toPath, 'optionalAccess', _13 => _13.folders]), () => ( []))
|
|
2326
2327
|
};
|
|
2327
|
-
const client = new (0,
|
|
2328
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
2328
2329
|
const paths = [];
|
|
2329
2330
|
let cursor;
|
|
2330
2331
|
do {
|
|
@@ -2386,7 +2387,7 @@ function registerPlaySettingsCommands(plays) {
|
|
|
2386
2387
|
moved.push(move.playName);
|
|
2387
2388
|
}
|
|
2388
2389
|
}
|
|
2389
|
-
|
|
2390
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
2390
2391
|
{
|
|
2391
2392
|
dryRun: Boolean(options.dryRun),
|
|
2392
2393
|
from: options.from,
|
|
@@ -2531,7 +2532,7 @@ function triggerLines(view) {
|
|
|
2531
2532
|
return lines;
|
|
2532
2533
|
}
|
|
2533
2534
|
function printView(view, json) {
|
|
2534
|
-
|
|
2535
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
2535
2536
|
{
|
|
2536
2537
|
...view,
|
|
2537
2538
|
render: {
|
|
@@ -2544,7 +2545,7 @@ function printView(view, json) {
|
|
|
2544
2545
|
);
|
|
2545
2546
|
}
|
|
2546
2547
|
function printResult(result, json) {
|
|
2547
|
-
|
|
2548
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
2548
2549
|
{
|
|
2549
2550
|
...result,
|
|
2550
2551
|
render: {
|
|
@@ -2574,7 +2575,7 @@ async function mutate(command, options, build) {
|
|
|
2574
2575
|
usage(command, `Invalid trigger: ${formatPlayTriggerConfigError(error)}`);
|
|
2575
2576
|
}
|
|
2576
2577
|
if (options.dryRun) {
|
|
2577
|
-
|
|
2578
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
2578
2579
|
{
|
|
2579
2580
|
dryRun: true,
|
|
2580
2581
|
play: options.play,
|
|
@@ -2593,7 +2594,7 @@ async function mutate(command, options, build) {
|
|
|
2593
2594
|
return;
|
|
2594
2595
|
}
|
|
2595
2596
|
printResult(
|
|
2596
|
-
await new (0,
|
|
2597
|
+
await new (0, _chunk2RPRSTHDjs.DeeplineClient)().updatePlayTriggerConfig(options.play, update),
|
|
2597
2598
|
options.json
|
|
2598
2599
|
);
|
|
2599
2600
|
}
|
|
@@ -2626,7 +2627,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2626
2627
|
}).addHelpText("after", help2);
|
|
2627
2628
|
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) => {
|
|
2628
2629
|
printView(
|
|
2629
|
-
await new (0,
|
|
2630
|
+
await new (0, _chunk2RPRSTHDjs.DeeplineClient)().getPlayTriggerConfig(options.play),
|
|
2630
2631
|
options.json
|
|
2631
2632
|
);
|
|
2632
2633
|
});
|
|
@@ -2679,7 +2680,7 @@ function registerPlayTriggerConfigCommands(plays) {
|
|
|
2679
2680
|
if (options.auth === void 0) {
|
|
2680
2681
|
if (secrets.length || options.header || options.signaturePrefix)
|
|
2681
2682
|
usage(setWebhook, "--secret/--header need --auth.");
|
|
2682
|
-
const current = await new (0,
|
|
2683
|
+
const current = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().getPlayTriggerConfig(
|
|
2683
2684
|
options.play
|
|
2684
2685
|
);
|
|
2685
2686
|
return {
|
|
@@ -2756,7 +2757,7 @@ var KIND_DESCRIPTIONS = {
|
|
|
2756
2757
|
"receipt.skipped": "Saved work result: skipped.",
|
|
2757
2758
|
"runtime.event": "Other event."
|
|
2758
2759
|
};
|
|
2759
|
-
var RUN_LOGS_KIND_HELP =
|
|
2760
|
+
var RUN_LOGS_KIND_HELP = _chunkVYSUJMB5js.RUN_EVENT_SEARCH_KIND_VALUES.map((kind) => ({
|
|
2760
2761
|
kind,
|
|
2761
2762
|
description: KIND_DESCRIPTIONS[kind]
|
|
2762
2763
|
}));
|
|
@@ -2893,9 +2894,9 @@ function configureRunQueryCommandErrors(command, resource) {
|
|
|
2893
2894
|
const args = program.args;
|
|
2894
2895
|
if (error.exitCode !== 0 && (resource === "events" || requestsStructuredLogs(args))) {
|
|
2895
2896
|
error.exitCode = 2;
|
|
2896
|
-
if (
|
|
2897
|
-
|
|
2898
|
-
Object.assign(new (0,
|
|
2897
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args) || command.optsWithGlobals().json === true) {
|
|
2898
|
+
_chunkVLUBEMWMjs.printJsonError.call(void 0,
|
|
2899
|
+
Object.assign(new (0, _chunkVYSUJMB5js.RunEventQueryInputError)(error.message), {
|
|
2899
2900
|
exitCode: 2,
|
|
2900
2901
|
retryable: false
|
|
2901
2902
|
})
|
|
@@ -2939,14 +2940,14 @@ function parseQuery(args, resource) {
|
|
|
2939
2940
|
if (VALUE_FLAGS.has(flag)) {
|
|
2940
2941
|
const value = equals > 0 ? arg.slice(equals + 1) : args[++index];
|
|
2941
2942
|
if (!value || equals < 0 && value.startsWith("--") && flag !== "--query" && flag !== "--where") {
|
|
2942
|
-
throw new (0,
|
|
2943
|
+
throw new (0, _chunkVYSUJMB5js.RunEventQueryInputError)(
|
|
2943
2944
|
`${flag} requires a value. Use ${flag} <value>.`
|
|
2944
2945
|
);
|
|
2945
2946
|
}
|
|
2946
2947
|
if (flag === "--sum") sums.push(value);
|
|
2947
2948
|
else {
|
|
2948
2949
|
if (values[flag] !== void 0) {
|
|
2949
|
-
throw new (0,
|
|
2950
|
+
throw new (0, _chunkVYSUJMB5js.RunEventQueryInputError)(
|
|
2950
2951
|
`${flag} may only be supplied once.`
|
|
2951
2952
|
);
|
|
2952
2953
|
}
|
|
@@ -2960,12 +2961,12 @@ function parseQuery(args, resource) {
|
|
|
2960
2961
|
}
|
|
2961
2962
|
if (arg.startsWith("-")) {
|
|
2962
2963
|
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.";
|
|
2963
|
-
throw new (0,
|
|
2964
|
+
throw new (0, _chunkVYSUJMB5js.RunEventQueryInputError)(
|
|
2964
2965
|
`Unsupported query flag ${flag}. ${correction}`
|
|
2965
2966
|
);
|
|
2966
2967
|
}
|
|
2967
2968
|
if (runId !== void 0) {
|
|
2968
|
-
throw new (0,
|
|
2969
|
+
throw new (0, _chunkVYSUJMB5js.RunEventQueryInputError)(
|
|
2969
2970
|
`Unexpected argument ${JSON.stringify(arg)}. Supply one run ID.`
|
|
2970
2971
|
);
|
|
2971
2972
|
}
|
|
@@ -2973,7 +2974,7 @@ function parseQuery(args, resource) {
|
|
|
2973
2974
|
}
|
|
2974
2975
|
if (switches.has("--fields")) {
|
|
2975
2976
|
if (runId !== void 0) {
|
|
2976
|
-
throw new (0,
|
|
2977
|
+
throw new (0, _chunkVYSUJMB5js.RunEventQueryInputError)(
|
|
2977
2978
|
"--fields does not use a run ID. Omit the positional run ID."
|
|
2978
2979
|
);
|
|
2979
2980
|
}
|
|
@@ -2986,18 +2987,18 @@ function parseQuery(args, resource) {
|
|
|
2986
2987
|
)
|
|
2987
2988
|
];
|
|
2988
2989
|
if (incompatible.length) {
|
|
2989
|
-
throw new (0,
|
|
2990
|
+
throw new (0, _chunkVYSUJMB5js.RunEventQueryInputError)(
|
|
2990
2991
|
`--fields cannot be combined with ${incompatible.join(", ")}. Use --fields alone to discover the query contract.`
|
|
2991
2992
|
);
|
|
2992
2993
|
}
|
|
2993
2994
|
}
|
|
2994
2995
|
if (switches.has("--count") && values["--group-by"] !== void 0) {
|
|
2995
|
-
throw new (0,
|
|
2996
|
+
throw new (0, _chunkVYSUJMB5js.RunEventQueryInputError)(
|
|
2996
2997
|
"--count cannot be combined with --group-by. Use --group-by for counts per group."
|
|
2997
2998
|
);
|
|
2998
2999
|
}
|
|
2999
3000
|
if (sums.length && switches.has("--count")) {
|
|
3000
|
-
throw new (0,
|
|
3001
|
+
throw new (0, _chunkVYSUJMB5js.RunEventQueryInputError)(
|
|
3001
3002
|
"--sum cannot be combined with --count. Use --sum for the exact count and numeric total."
|
|
3002
3003
|
);
|
|
3003
3004
|
}
|
|
@@ -3005,7 +3006,7 @@ function parseQuery(args, resource) {
|
|
|
3005
3006
|
if (operation === "count") {
|
|
3006
3007
|
for (const flag of ["--limit", "--cursor", "--payloads"]) {
|
|
3007
3008
|
if (values[flag] !== void 0 || switches.has(flag)) {
|
|
3008
|
-
throw new (0,
|
|
3009
|
+
throw new (0, _chunkVYSUJMB5js.RunEventQueryInputError)(
|
|
3009
3010
|
`--count cannot be combined with ${flag}. Remove ${flag} to count all matching retained records.`
|
|
3010
3011
|
);
|
|
3011
3012
|
}
|
|
@@ -3040,16 +3041,16 @@ function parseQuery(args, resource) {
|
|
|
3040
3041
|
];
|
|
3041
3042
|
}
|
|
3042
3043
|
}
|
|
3043
|
-
const request =
|
|
3044
|
+
const request = _chunkVYSUJMB5js.normalizeRunEventOperationRequest.call(void 0, body);
|
|
3044
3045
|
const namespace = _nullishCoalesce(values["--runtime-namespace"], () => ( (process.env.DEEPLINE_RUNTIME_ENVIRONMENT === "preview" ? process.env.DEEPLINE_RUNTIME_NAMESPACE : void 0)));
|
|
3045
3046
|
const backend = values["--runtime-backend"];
|
|
3046
3047
|
if (backend && backend !== "daytona" && backend !== "modal") {
|
|
3047
|
-
throw new (0,
|
|
3048
|
+
throw new (0, _chunkVYSUJMB5js.RunEventQueryInputError)(
|
|
3048
3049
|
"--runtime-backend must be daytona or modal."
|
|
3049
3050
|
);
|
|
3050
3051
|
}
|
|
3051
3052
|
if (backend && !namespace) {
|
|
3052
|
-
throw new (0,
|
|
3053
|
+
throw new (0, _chunkVYSUJMB5js.RunEventQueryInputError)(
|
|
3053
3054
|
"--runtime-backend requires --runtime-namespace."
|
|
3054
3055
|
);
|
|
3055
3056
|
}
|
|
@@ -3096,12 +3097,12 @@ async function handleRunEventQuery(args, resource = "logs") {
|
|
|
3096
3097
|
const failure = error instanceof Error ? error : new Error(String(error));
|
|
3097
3098
|
const record5 = failure;
|
|
3098
3099
|
const status = record5.statusCode;
|
|
3099
|
-
const exitCode = error instanceof
|
|
3100
|
+
const exitCode = error instanceof _chunkVYSUJMB5js.RunEventQueryInputError || status === 400 || status === 422 || record5.code === "INVALID_RUNTIME_SELECTION" ? 2 : status === 401 || status === 403 || record5.code === "CONFIG_ERROR" || record5.code === "RUNTIME_ENVIRONMENT_TOKEN_REQUIRED" ? 3 : status === 404 ? 4 : 5;
|
|
3100
3101
|
const diagnostic = Object.assign(failure, {
|
|
3101
3102
|
exitCode,
|
|
3102
3103
|
retryable: exitCode === 5
|
|
3103
3104
|
});
|
|
3104
|
-
if (
|
|
3105
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) _chunkVLUBEMWMjs.printJsonError.call(void 0, diagnostic);
|
|
3105
3106
|
else console.error(`Error: ${diagnostic.message}`);
|
|
3106
3107
|
return exitCode;
|
|
3107
3108
|
}
|
|
@@ -3116,7 +3117,7 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3116
3117
|
...criteria
|
|
3117
3118
|
} = request;
|
|
3118
3119
|
const options = { ...criteria, ...runtime ? { runtime } : {} };
|
|
3119
|
-
const client = new (0,
|
|
3120
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
3120
3121
|
let result;
|
|
3121
3122
|
if (request.operation === "fields") {
|
|
3122
3123
|
result = await client.runs[resource].fields(runtime ? { runtime } : {});
|
|
@@ -3182,13 +3183,13 @@ async function executeRunEventQuery(args, resource) {
|
|
|
3182
3183
|
lines.push(`Next page: ${nextPage}`);
|
|
3183
3184
|
}
|
|
3184
3185
|
}
|
|
3185
|
-
|
|
3186
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
3186
3187
|
{
|
|
3187
3188
|
...result,
|
|
3188
3189
|
...nextPage ? { next: { page: nextPage } } : {},
|
|
3189
3190
|
render: { sections: [{ title: `run ${resource}`, lines }] }
|
|
3190
3191
|
},
|
|
3191
|
-
{ json:
|
|
3192
|
+
{ json: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args), text: `${lines.join("\n")}
|
|
3192
3193
|
` }
|
|
3193
3194
|
);
|
|
3194
3195
|
return 0;
|
|
@@ -4935,7 +4936,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4935
4936
|
...text3.split(/\r?\n/).map((key) => key.trim()).filter(Boolean)
|
|
4936
4937
|
);
|
|
4937
4938
|
}
|
|
4938
|
-
const response = await new (0,
|
|
4939
|
+
const response = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().runs.getReceipts(runId, {
|
|
4939
4940
|
keys
|
|
4940
4941
|
});
|
|
4941
4942
|
const failed = response.receipts.filter(
|
|
@@ -4947,7 +4948,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4947
4948
|
JSON.stringify(response, null, 2) + "\n",
|
|
4948
4949
|
{ flag: "wx", mode: 384 }
|
|
4949
4950
|
);
|
|
4950
|
-
|
|
4951
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
4951
4952
|
{
|
|
4952
4953
|
runId,
|
|
4953
4954
|
out: options.out,
|
|
@@ -4957,7 +4958,7 @@ Existing credential redactions and referenced-list previews remain as stored.
|
|
|
4957
4958
|
{ json: true }
|
|
4958
4959
|
);
|
|
4959
4960
|
} else {
|
|
4960
|
-
|
|
4961
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, { ...response }, { json: true });
|
|
4961
4962
|
}
|
|
4962
4963
|
if (failed)
|
|
4963
4964
|
process.exitCode = response.receipts.some(
|
|
@@ -4996,7 +4997,7 @@ includes nextCommand when another page is available.
|
|
|
4996
4997
|
{ exitCode: 2 }
|
|
4997
4998
|
);
|
|
4998
4999
|
}
|
|
4999
|
-
const page = await new (0,
|
|
5000
|
+
const page = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().runs.children(parentRunId, {
|
|
5000
5001
|
launchKey: options.launchKey,
|
|
5001
5002
|
...options.cursor !== void 0 ? { cursor: options.cursor } : {},
|
|
5002
5003
|
limit
|
|
@@ -5011,7 +5012,7 @@ includes nextCommand when another page is available.
|
|
|
5011
5012
|
"--limit",
|
|
5012
5013
|
String(limit)
|
|
5013
5014
|
].join(" ") : null;
|
|
5014
|
-
|
|
5015
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
5015
5016
|
{
|
|
5016
5017
|
parentRunId,
|
|
5017
5018
|
launchKey: options.launchKey,
|
|
@@ -5047,7 +5048,7 @@ async function handleRunsHistory(options) {
|
|
|
5047
5048
|
throw new Error("--limit must be a positive integer.");
|
|
5048
5049
|
}
|
|
5049
5050
|
}
|
|
5050
|
-
const page = await new (0,
|
|
5051
|
+
const page = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().runs.history({
|
|
5051
5052
|
cursor: options.cursor,
|
|
5052
5053
|
orgId: options.org,
|
|
5053
5054
|
search: options.search,
|
|
@@ -5063,7 +5064,7 @@ async function handleRunsHistory(options) {
|
|
|
5063
5064
|
);
|
|
5064
5065
|
}
|
|
5065
5066
|
if (page.hasMore) lines.push(`Next cursor: ${page.nextCursor}`);
|
|
5066
|
-
|
|
5067
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
5067
5068
|
{ ...page, render: { sections: [{ title: "Run history", lines }] } },
|
|
5068
5069
|
options.json ? { json: true } : {}
|
|
5069
5070
|
);
|
|
@@ -5113,12 +5114,12 @@ async function runRunsRerunCommand(runId, options) {
|
|
|
5113
5114
|
}
|
|
5114
5115
|
}
|
|
5115
5116
|
if (options.notice) console.error(options.notice);
|
|
5116
|
-
const result = await new (0,
|
|
5117
|
+
const result = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().runs.rerun(runId, {
|
|
5117
5118
|
...idempotencyKey === void 0 ? {} : { idempotencyKey },
|
|
5118
5119
|
...inputOverrides === void 0 ? {} : { inputOverrides }
|
|
5119
5120
|
});
|
|
5120
|
-
if (
|
|
5121
|
-
|
|
5121
|
+
if (_chunkVLUBEMWMjs.shouldEmitJson.call(void 0, options.json)) {
|
|
5122
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
5122
5123
|
} else if (result.rateLimited) {
|
|
5123
5124
|
console.log(`
|
|
5124
5125
|
${result.rateLimited.message}`);
|
|
@@ -5142,7 +5143,7 @@ Rerun started from ${runId}${inputOverrides ? " with input overrides" : ""}.`
|
|
|
5142
5143
|
// src/cli/operations/runs-resume.ts
|
|
5143
5144
|
async function runRunsResumeCommand(runId) {
|
|
5144
5145
|
try {
|
|
5145
|
-
const result = await new (0,
|
|
5146
|
+
const result = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().runs.resume(runId);
|
|
5146
5147
|
if (result.runId !== runId || result.resumed !== true || !Number.isSafeInteger(result.epoch) || result.epoch < 1)
|
|
5147
5148
|
throw new Error(
|
|
5148
5149
|
"Invalid resume receipt: expected the requested run and a new positive epoch."
|
|
@@ -5984,13 +5985,13 @@ var RunDataset = class _RunDataset {
|
|
|
5984
5985
|
const absolutePath = _path.resolve.call(void 0, outPath);
|
|
5985
5986
|
_fs.writeFileSync.call(void 0,
|
|
5986
5987
|
absolutePath,
|
|
5987
|
-
`${JSON.stringify(
|
|
5988
|
+
`${JSON.stringify(_chunkNDDGFX4Xjs.orderRunExportJson.call(void 0, this.rows), null, 2)}
|
|
5988
5989
|
`,
|
|
5989
5990
|
"utf-8"
|
|
5990
5991
|
);
|
|
5991
5992
|
return absolutePath;
|
|
5992
5993
|
}
|
|
5993
|
-
return
|
|
5994
|
+
return _chunkNDDGFX4Xjs.writeRunDatasetCsv.call(void 0, {
|
|
5994
5995
|
rows: this.rows,
|
|
5995
5996
|
columns: this.#info.columns,
|
|
5996
5997
|
outPath
|
|
@@ -7473,7 +7474,7 @@ function renderOutcome(outcome) {
|
|
|
7473
7474
|
function printResult2(input) {
|
|
7474
7475
|
const failed = input.status === "failed" || input.status === "cancelled";
|
|
7475
7476
|
if (failed) process.exitCode = 1;
|
|
7476
|
-
|
|
7477
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
7477
7478
|
{
|
|
7478
7479
|
deployment: { ...input.deployment, status: input.status },
|
|
7479
7480
|
plays: input.outcomes,
|
|
@@ -7498,7 +7499,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
7498
7499
|
const root = await _promises.realpath.call(void 0, _path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))).catch(() => {
|
|
7499
7500
|
throw new Error(`No such directory: ${_path.resolve.call(void 0, _nullishCoalesce(directory, () => ( ".")))}`);
|
|
7500
7501
|
});
|
|
7501
|
-
const { http, config } =
|
|
7502
|
+
const { http, config } = _chunkVLUBEMWMjs.getAuthedHttpClient.call(void 0, );
|
|
7502
7503
|
const deliveryId = `local:${_crypto.randomUUID.call(void 0, )}`;
|
|
7503
7504
|
const startDeployment = () => http.post("/api/v2/deployments", {
|
|
7504
7505
|
deliveryId,
|
|
@@ -7525,7 +7526,7 @@ async function handlePlaysDeploy(directory, options) {
|
|
|
7525
7526
|
},
|
|
7526
7527
|
{
|
|
7527
7528
|
bundle: bundleDeployPlayFile,
|
|
7528
|
-
fetchImpl:
|
|
7529
|
+
fetchImpl: _chunkIB225ZK4js.fetchWithDeploymentProtection,
|
|
7529
7530
|
// The plays are already here: "opening" the source is naming it.
|
|
7530
7531
|
openSource: async () => ({
|
|
7531
7532
|
open: async () => ({ repoRoot: root })
|
|
@@ -7652,7 +7653,7 @@ async function checkLocalPlayGraph(input) {
|
|
|
7652
7653
|
// src/cli/renderers/local-play-execution.ts
|
|
7653
7654
|
function renderLocalPlayExecutionPlan(plan, options = {}) {
|
|
7654
7655
|
if (options.dryRun) {
|
|
7655
|
-
|
|
7656
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, { dryRun: true, ...plan }, { json: options.json });
|
|
7656
7657
|
return;
|
|
7657
7658
|
}
|
|
7658
7659
|
process.stderr.write(`Local Play execution plan: ${JSON.stringify(plan)}
|
|
@@ -7824,7 +7825,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7824
7825
|
const startedAt = Date.now();
|
|
7825
7826
|
try {
|
|
7826
7827
|
const result = run();
|
|
7827
|
-
|
|
7828
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
7828
7829
|
phase,
|
|
7829
7830
|
ms: Date.now() - startedAt,
|
|
7830
7831
|
ok: true,
|
|
@@ -7832,7 +7833,7 @@ function traceCliSync(phase, fields2, run) {
|
|
|
7832
7833
|
});
|
|
7833
7834
|
return result;
|
|
7834
7835
|
} catch (error) {
|
|
7835
|
-
|
|
7836
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
7836
7837
|
phase,
|
|
7837
7838
|
ms: Date.now() - startedAt,
|
|
7838
7839
|
ok: false,
|
|
@@ -8645,7 +8646,7 @@ function playStatusErrorText(status) {
|
|
|
8645
8646
|
function isRetryablePendingStartFailure(status) {
|
|
8646
8647
|
if (status.status !== "failed") return false;
|
|
8647
8648
|
if (status.runId && status.runId !== "pending") return false;
|
|
8648
|
-
return
|
|
8649
|
+
return _chunkVYSUJMB5js.isTransientPlayRunReadError.call(void 0, new Error(playStatusErrorText(status)));
|
|
8649
8650
|
}
|
|
8650
8651
|
function isAmbiguousPlayStartOutcomeError(error) {
|
|
8651
8652
|
if (error instanceof _chunkLFQJW4S2js.DeeplineError && typeof error.statusCode === "number") {
|
|
@@ -8706,7 +8707,7 @@ async function startPlayRunWithTransientRetry(input) {
|
|
|
8706
8707
|
`[play start] response was ambiguous; retrying the same caller intent (${reason})`
|
|
8707
8708
|
);
|
|
8708
8709
|
}
|
|
8709
|
-
|
|
8710
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
8710
8711
|
phase: "cli.play_start_json_retry",
|
|
8711
8712
|
ms: 0,
|
|
8712
8713
|
ok: true,
|
|
@@ -8764,13 +8765,13 @@ var PlayStartOutcomeUnknownError = (_class = class extends _chunkLFQJW4S2js.Deep
|
|
|
8764
8765
|
}, _class);
|
|
8765
8766
|
function watchSurfaceReaches(state, provenance, level) {
|
|
8766
8767
|
const minimumLevel = _nullishCoalesce(state.logLevel, () => ( (state.verbose ? "debug" : "info")));
|
|
8767
|
-
if (!
|
|
8768
|
+
if (!_chunkVYSUJMB5js.logLevelReaches.call(void 0, level, minimumLevel)) {
|
|
8768
8769
|
return false;
|
|
8769
8770
|
}
|
|
8770
|
-
if (
|
|
8771
|
+
if (_chunkVYSUJMB5js.logProvenanceReaches.call(void 0, provenance, "watch")) {
|
|
8771
8772
|
return true;
|
|
8772
8773
|
}
|
|
8773
|
-
return state.verbose === true &&
|
|
8774
|
+
return state.verbose === true && _chunkVYSUJMB5js.logProvenanceReaches.call(void 0, provenance, "debug");
|
|
8774
8775
|
}
|
|
8775
8776
|
function getEventPayload(event) {
|
|
8776
8777
|
return event.payload && typeof event.payload === "object" ? event.payload : {};
|
|
@@ -9280,7 +9281,7 @@ function resolvePlayRunUrl(input) {
|
|
|
9280
9281
|
}
|
|
9281
9282
|
function openPlayDashboard(url, open2) {
|
|
9282
9283
|
if (open2 && url) {
|
|
9283
|
-
|
|
9284
|
+
_chunkVLUBEMWMjs.openInBrowser.call(void 0, url);
|
|
9284
9285
|
}
|
|
9285
9286
|
}
|
|
9286
9287
|
function printPlayLogLines(input) {
|
|
@@ -9361,7 +9362,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9361
9362
|
...input.fullJson === void 0 ? {} : { full: input.fullJson }
|
|
9362
9363
|
});
|
|
9363
9364
|
} catch (error) {
|
|
9364
|
-
if (
|
|
9365
|
+
if (_chunkVYSUJMB5js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9365
9366
|
return null;
|
|
9366
9367
|
}
|
|
9367
9368
|
throw error;
|
|
@@ -9442,9 +9443,9 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9442
9443
|
signal: controller.signal,
|
|
9443
9444
|
deferLogs: !input.emitLogs,
|
|
9444
9445
|
omitTerminalLogs: !input.emitLogs,
|
|
9445
|
-
...
|
|
9446
|
+
..._chunkSLXCVPN7js.isCliTraceEnabled.call(void 0, ) ? {
|
|
9446
9447
|
onPoll: (observation) => {
|
|
9447
|
-
|
|
9448
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
9448
9449
|
phase: "play_watch_poll",
|
|
9449
9450
|
workflowId: input.workflowId,
|
|
9450
9451
|
ms: observation.durationMs,
|
|
@@ -9458,7 +9459,7 @@ async function waitForPlayCompletionByWatch(input) {
|
|
|
9458
9459
|
full: input.fullJson,
|
|
9459
9460
|
billing: false,
|
|
9460
9461
|
onStatus: async (status) => {
|
|
9461
|
-
|
|
9462
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
9462
9463
|
phase: "play_watch_terminal_status",
|
|
9463
9464
|
workflowId: input.workflowId,
|
|
9464
9465
|
full: input.fullJson === true
|
|
@@ -9547,7 +9548,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9547
9548
|
signal: controller.signal,
|
|
9548
9549
|
cliAdmission: useCliAdmission
|
|
9549
9550
|
});
|
|
9550
|
-
|
|
9551
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
9551
9552
|
phase: "cli.play_start_admission_attempt",
|
|
9552
9553
|
ms: Date.now() - postStartedAt,
|
|
9553
9554
|
ok: true,
|
|
@@ -9559,7 +9560,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9559
9560
|
});
|
|
9560
9561
|
break;
|
|
9561
9562
|
} catch (error) {
|
|
9562
|
-
|
|
9563
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
9563
9564
|
phase: "cli.play_start_admission_attempt",
|
|
9564
9565
|
ms: Date.now() - postStartedAt,
|
|
9565
9566
|
ok: false,
|
|
@@ -9610,7 +9611,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9610
9611
|
prepared.workflowId
|
|
9611
9612
|
);
|
|
9612
9613
|
}
|
|
9613
|
-
await
|
|
9614
|
+
await _chunkLJLM4BULjs.checkPlayRunCompatibility.call(void 0,
|
|
9614
9615
|
input.client.baseUrl,
|
|
9615
9616
|
input.maintenancePolicy,
|
|
9616
9617
|
controller.signal
|
|
@@ -9629,7 +9630,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9629
9630
|
`[play start] response was ambiguous; retrying the same caller intent (${error instanceof Error ? error.message : String(error)})`
|
|
9630
9631
|
);
|
|
9631
9632
|
}
|
|
9632
|
-
|
|
9633
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
9633
9634
|
phase: "cli.play_start_json_retry",
|
|
9634
9635
|
ms: 0,
|
|
9635
9636
|
ok: true,
|
|
@@ -9687,7 +9688,11 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9687
9688
|
}
|
|
9688
9689
|
await _optionalChain([input, 'access', _352 => _352.onRunStarted, 'optionalCall', _353 => _353(workflowId)]);
|
|
9689
9690
|
await _optionalChain([input, 'access', _354 => _354.onRunAdmitted, 'optionalCall', _355 => _355(workflowId)]);
|
|
9690
|
-
const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => (
|
|
9691
|
+
const dashboardUrl = _nullishCoalesce(started.dashboardUrl, () => ( _chunkIXYVHTRZjs.buildPlayDashboardUrl.call(void 0,
|
|
9692
|
+
input.client.baseUrl,
|
|
9693
|
+
input.playName,
|
|
9694
|
+
_chunk2QYU57RGjs.resolveCliDashboardOrgId.call(void 0, input.client.baseUrl)
|
|
9695
|
+
)));
|
|
9691
9696
|
const rateLimited = _nullishCoalesce(started.rateLimited, () => ( null));
|
|
9692
9697
|
if (!input.jsonOutput) {
|
|
9693
9698
|
writeStartedPlayRun({
|
|
@@ -9709,7 +9714,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9709
9714
|
_nullishCoalesce(input.open, () => ( false))
|
|
9710
9715
|
);
|
|
9711
9716
|
input.progress.phase("running");
|
|
9712
|
-
|
|
9717
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
9713
9718
|
phase: "cli.play_start_admitted",
|
|
9714
9719
|
ms: Date.now() - startedAt,
|
|
9715
9720
|
ok: true,
|
|
@@ -9727,7 +9732,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9727
9732
|
startedAt,
|
|
9728
9733
|
waitTimeoutMs: input.waitTimeoutMs
|
|
9729
9734
|
});
|
|
9730
|
-
const initialStatus =
|
|
9735
|
+
const initialStatus = _chunkVYSUJMB5js.normalizePlayStatus.call(void 0, initialTerminal);
|
|
9731
9736
|
const status2 = await resolvePlayRunOutputStatus({
|
|
9732
9737
|
client: input.client,
|
|
9733
9738
|
status: initialStatus,
|
|
@@ -9735,7 +9740,7 @@ async function startAndWaitForPlayCompletion(input) {
|
|
|
9735
9740
|
jsonOutput: input.jsonOutput,
|
|
9736
9741
|
fromDurableStatus: true
|
|
9737
9742
|
});
|
|
9738
|
-
|
|
9743
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
9739
9744
|
phase: "play_watch_terminal_status",
|
|
9740
9745
|
workflowId,
|
|
9741
9746
|
full: true,
|
|
@@ -9840,7 +9845,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9840
9845
|
});
|
|
9841
9846
|
}
|
|
9842
9847
|
if (error instanceof _chunkMJTVX4QKjs.CliPlayAdmissionUnsupportedError && input.cliAdmission) {
|
|
9843
|
-
await
|
|
9848
|
+
await _chunkLJLM4BULjs.checkPlayRunCompatibility.call(void 0,
|
|
9844
9849
|
input.client.baseUrl,
|
|
9845
9850
|
input.maintenancePolicy,
|
|
9846
9851
|
admissionDeadline.signal
|
|
@@ -9881,7 +9886,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9881
9886
|
`[play watch] start response was ambiguous; retrying the same caller intent (${error.message})`
|
|
9882
9887
|
);
|
|
9883
9888
|
}
|
|
9884
|
-
|
|
9889
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
9885
9890
|
phase: "cli.play_start_stream_retry",
|
|
9886
9891
|
ms: 0,
|
|
9887
9892
|
ok: true,
|
|
@@ -9902,7 +9907,7 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9902
9907
|
`[play watch] start failed before run id with a transient error; retrying (${playStatusErrorText(status)})`
|
|
9903
9908
|
);
|
|
9904
9909
|
}
|
|
9905
|
-
|
|
9910
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
9906
9911
|
phase: "cli.play_start_stream_retry",
|
|
9907
9912
|
ms: 0,
|
|
9908
9913
|
ok: true,
|
|
@@ -9932,9 +9937,10 @@ async function startAndWaitForPlayCompletionByStream(input) {
|
|
|
9932
9937
|
}
|
|
9933
9938
|
async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
9934
9939
|
const startedAt = Date.now();
|
|
9935
|
-
const dashboardUrl =
|
|
9940
|
+
const dashboardUrl = _chunkIXYVHTRZjs.buildPlayDashboardUrl.call(void 0,
|
|
9936
9941
|
input.client.baseUrl,
|
|
9937
|
-
input.playName
|
|
9942
|
+
input.playName,
|
|
9943
|
+
_chunk2QYU57RGjs.resolveCliDashboardOrgId.call(void 0, input.client.baseUrl)
|
|
9938
9944
|
);
|
|
9939
9945
|
const state = {
|
|
9940
9946
|
emittedRunnerStarted: false,
|
|
@@ -9959,7 +9965,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9959
9965
|
if (launchConfirmed || !runId || runId === "pending") return;
|
|
9960
9966
|
launchConfirmed = true;
|
|
9961
9967
|
await _optionalChain([input, 'access', _366 => _366.onRunAdmitted, 'optionalCall', _367 => _367(runId)]);
|
|
9962
|
-
|
|
9968
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
9963
9969
|
phase: "cli.play_start_admitted",
|
|
9964
9970
|
ms: Date.now() - startedAt,
|
|
9965
9971
|
ok: true,
|
|
@@ -9993,7 +9999,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
9993
9999
|
full: input.fullJson
|
|
9994
10000
|
});
|
|
9995
10001
|
} catch (error) {
|
|
9996
|
-
if (
|
|
10002
|
+
if (_chunkVYSUJMB5js.isTransientPlayRunReadError.call(void 0, error) || isAdmittedRunVisibilityDelay(error)) {
|
|
9997
10003
|
return null;
|
|
9998
10004
|
}
|
|
9999
10005
|
throw error;
|
|
@@ -10164,7 +10170,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10164
10170
|
};
|
|
10165
10171
|
}
|
|
10166
10172
|
if (!canonicalTerminal) {
|
|
10167
|
-
|
|
10173
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
10168
10174
|
phase: "cli.play_start_stream_stale_terminal_ignored",
|
|
10169
10175
|
ms: Date.now() - startedAt,
|
|
10170
10176
|
ok: true,
|
|
@@ -10185,14 +10191,14 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10185
10191
|
fromDurableStatus
|
|
10186
10192
|
}) : canonicalTerminal;
|
|
10187
10193
|
if (input.fullJson === true) {
|
|
10188
|
-
|
|
10194
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
10189
10195
|
phase: "play_watch_terminal_status",
|
|
10190
10196
|
workflowId: outputTerminal.runId || lastKnownWorkflowId || void 0,
|
|
10191
10197
|
full: true,
|
|
10192
10198
|
source: outputTerminal === canonicalTerminal ? fromDurableStatus ? "start_stream_durable" : "start_stream" : "durable_repair"
|
|
10193
10199
|
});
|
|
10194
10200
|
}
|
|
10195
|
-
|
|
10201
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
10196
10202
|
phase: "cli.play_start_stream_terminal",
|
|
10197
10203
|
ms: Date.now() - startedAt,
|
|
10198
10204
|
ok: true,
|
|
@@ -10212,7 +10218,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10212
10218
|
clearTimeout(timeout);
|
|
10213
10219
|
}
|
|
10214
10220
|
controller.abort();
|
|
10215
|
-
|
|
10221
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
10216
10222
|
phase: "cli.play_start_stream_handoff_to_tail",
|
|
10217
10223
|
ms: Date.now() - startedAt,
|
|
10218
10224
|
ok: true,
|
|
@@ -10243,7 +10249,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10243
10249
|
if (timedOut) {
|
|
10244
10250
|
const terminal = await fetchKnownTerminalStatus();
|
|
10245
10251
|
if (terminal) {
|
|
10246
|
-
|
|
10252
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
10247
10253
|
phase: "cli.play_start_stream_timeout_status_reconcile",
|
|
10248
10254
|
ms: Date.now() - startedAt,
|
|
10249
10255
|
ok: true,
|
|
@@ -10263,7 +10269,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10263
10269
|
lastPhase
|
|
10264
10270
|
});
|
|
10265
10271
|
}
|
|
10266
|
-
if (lastKnownWorkflowId && (terminalWindowExpired ||
|
|
10272
|
+
if (lastKnownWorkflowId && (terminalWindowExpired || _chunkVYSUJMB5js.isTransientPlayRunReadError.call(void 0, error))) {
|
|
10267
10273
|
if (timeout) {
|
|
10268
10274
|
clearTimeout(timeout);
|
|
10269
10275
|
}
|
|
@@ -10274,7 +10280,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10274
10280
|
`
|
|
10275
10281
|
);
|
|
10276
10282
|
}
|
|
10277
|
-
|
|
10283
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
10278
10284
|
phase: "cli.play_start_stream_reconnect",
|
|
10279
10285
|
ms: Date.now() - startedAt,
|
|
10280
10286
|
ok: true,
|
|
@@ -10301,7 +10307,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10301
10307
|
});
|
|
10302
10308
|
}
|
|
10303
10309
|
if (!lastKnownWorkflowId && isAmbiguousPlayStartOutcomeError(error)) {
|
|
10304
|
-
|
|
10310
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
10305
10311
|
phase: "cli.play_start_stream_transient_failure",
|
|
10306
10312
|
ms: Date.now() - startedAt,
|
|
10307
10313
|
ok: false,
|
|
@@ -10329,7 +10335,7 @@ async function startAndWaitForPlayCompletionByStreamOnce(input) {
|
|
|
10329
10335
|
`[play watch] start stream ended after run ${lastKnownWorkflowId}; reconnecting to canonical run stream`
|
|
10330
10336
|
);
|
|
10331
10337
|
}
|
|
10332
|
-
|
|
10338
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
10333
10339
|
phase: "cli.play_start_stream_reconnect",
|
|
10334
10340
|
ms: Date.now() - startedAt,
|
|
10335
10341
|
ok: true,
|
|
@@ -10409,7 +10415,7 @@ var BULKY_RETURN_KEYS = /* @__PURE__ */ new Set([
|
|
|
10409
10415
|
"logs"
|
|
10410
10416
|
]);
|
|
10411
10417
|
function formatPlayLogLine(rawLine, state) {
|
|
10412
|
-
const classified =
|
|
10418
|
+
const classified = _chunkVYSUJMB5js.classifyLogLine.call(void 0, rawLine);
|
|
10413
10419
|
const line = classified.line;
|
|
10414
10420
|
const timestampMatch = line.match(/^\[([^\]]+)\]\s*(.*)$/);
|
|
10415
10421
|
const parsedTimestamp = _optionalChain([timestampMatch, 'optionalAccess', _389 => _389[1]]) ? new Date(timestampMatch[1]) : null;
|
|
@@ -10424,14 +10430,14 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10424
10430
|
if (!state.verbose && isProviderRowWaitLogLine(line)) return null;
|
|
10425
10431
|
const providerWait = formatProviderCapacityWaitLogLine(line);
|
|
10426
10432
|
if (providerWait && !state.verbose) {
|
|
10427
|
-
return
|
|
10433
|
+
return _chunkVYSUJMB5js.logLevelReaches.call(void 0, "warn", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${providerWait}` : null;
|
|
10428
10434
|
}
|
|
10429
10435
|
const mapProgress = formatMapProgressDiagnosticLogLine(line);
|
|
10430
10436
|
if (mapProgress && !state.verbose) {
|
|
10431
|
-
return
|
|
10437
|
+
return _chunkVYSUJMB5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info"))) ? `${prefix}${mapProgress}` : null;
|
|
10432
10438
|
}
|
|
10433
10439
|
if (/\[worker\] picked up run\b/.test(message)) {
|
|
10434
|
-
if (!
|
|
10440
|
+
if (!_chunkVYSUJMB5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10435
10441
|
return null;
|
|
10436
10442
|
}
|
|
10437
10443
|
if (state.emittedRunnerStarted) {
|
|
@@ -10444,7 +10450,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10444
10450
|
/^Starting map over (\d+) items with (\d+) fields \(key: ([^;]+); (\d+) already satisfied; (\d+) pending\)$/
|
|
10445
10451
|
);
|
|
10446
10452
|
if (mapStart) {
|
|
10447
|
-
if (!
|
|
10453
|
+
if (!_chunkVYSUJMB5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10448
10454
|
return null;
|
|
10449
10455
|
}
|
|
10450
10456
|
const [, rows, fields2, namespace, cached, pending] = mapStart;
|
|
@@ -10454,7 +10460,7 @@ function formatPlayLogLine(rawLine, state) {
|
|
|
10454
10460
|
/^Map completed: (\d+) results \((\d+) executed, (\d+) already satisfied\)$/
|
|
10455
10461
|
);
|
|
10456
10462
|
if (mapDone) {
|
|
10457
|
-
if (!
|
|
10463
|
+
if (!_chunkVYSUJMB5js.logLevelReaches.call(void 0, "info", _nullishCoalesce(state.logLevel, () => ( "info")))) {
|
|
10458
10464
|
return null;
|
|
10459
10465
|
}
|
|
10460
10466
|
const [, results, executed, cached] = mapDone;
|
|
@@ -11776,7 +11782,7 @@ function formatRecentRunLogLines(value) {
|
|
|
11776
11782
|
(line) => typeof line === "string"
|
|
11777
11783
|
);
|
|
11778
11784
|
if (tail.length === 0) return [];
|
|
11779
|
-
const shown = tail.map((line) =>
|
|
11785
|
+
const shown = tail.map((line) => _chunkVYSUJMB5js.classifyLogLine.call(void 0, line)).filter(
|
|
11780
11786
|
(entry) => entry.level !== "debug" && !isProviderRowWaitLogLine(entry.line)
|
|
11781
11787
|
).slice(-8);
|
|
11782
11788
|
const total = readNonNegativeInteger(logs.totalCount);
|
|
@@ -12081,11 +12087,11 @@ function buildPlayCompletionTextLines(status) {
|
|
|
12081
12087
|
}
|
|
12082
12088
|
function writePlayResult(status, jsonOutput, options) {
|
|
12083
12089
|
const packaged = getPlayRunPackage(status);
|
|
12084
|
-
if (status.package)
|
|
12090
|
+
if (status.package) _chunkNDDGFX4Xjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
12085
12091
|
const hits = _nullishCoalesce(_optionalChain([options, 'optionalAccess', _480 => _480.hits]), () => ( null));
|
|
12086
12092
|
if (jsonOutput) {
|
|
12087
12093
|
const payload2 = _optionalChain([options, 'optionalAccess', _481 => _481.fullJson]) ? status.package ? buildRunOverview(status, status) : { ...buildRunLaunch(status), diagnostics: status } : buildRunLaunch(status);
|
|
12088
|
-
|
|
12094
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
12089
12095
|
hits ? { ...payload2, hits } : payload2,
|
|
12090
12096
|
{ json: true, fields: _optionalChain([options, 'optionalAccess', _482 => _482.jsonFields]) }
|
|
12091
12097
|
);
|
|
@@ -12101,7 +12107,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12101
12107
|
...buildPlayCompletionTextLines(status),
|
|
12102
12108
|
...formatRunHitsLines(hits)
|
|
12103
12109
|
];
|
|
12104
|
-
|
|
12110
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, displayPackage, {
|
|
12105
12111
|
json: false,
|
|
12106
12112
|
text: `${lines2.join("\n")}
|
|
12107
12113
|
`
|
|
@@ -12151,7 +12157,7 @@ function writePlayResult(status, jsonOutput, options) {
|
|
|
12151
12157
|
lines.push(...buildBillingRollupTextLines(status));
|
|
12152
12158
|
const compact = compactPlayStatus(status);
|
|
12153
12159
|
const payload = _optionalChain([options, 'optionalAccess', _484 => _484.fullJson]) ? status : compact;
|
|
12154
|
-
|
|
12160
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
12155
12161
|
{
|
|
12156
12162
|
...payload,
|
|
12157
12163
|
render: {
|
|
@@ -12375,7 +12381,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
12375
12381
|
}
|
|
12376
12382
|
offset += page.rows.length;
|
|
12377
12383
|
}
|
|
12378
|
-
const withError =
|
|
12384
|
+
const withError = _chunkNDDGFX4Xjs.tableExportHasFailedRows.call(void 0,
|
|
12379
12385
|
sheetRows.filter(
|
|
12380
12386
|
(row) => Boolean(row) && typeof row === "object" && !Array.isArray(row)
|
|
12381
12387
|
)
|
|
@@ -12391,7 +12397,7 @@ async function fetchBackingDatasetRows(input) {
|
|
|
12391
12397
|
return [
|
|
12392
12398
|
withError ? {
|
|
12393
12399
|
...exported,
|
|
12394
|
-
[
|
|
12400
|
+
[_chunkNDDGFX4Xjs.TABLE_EXPORT_ERROR_COLUMN]: _chunkNDDGFX4Xjs.tableExportErrorCell.call(void 0,
|
|
12395
12401
|
row
|
|
12396
12402
|
)
|
|
12397
12403
|
} : exported
|
|
@@ -12940,7 +12946,7 @@ function renderServerResultView(value) {
|
|
|
12940
12946
|
function writeStartedPlayRun(input) {
|
|
12941
12947
|
if (input.package && isPlayRunPackageValue(input.package)) {
|
|
12942
12948
|
const run = input.package.run;
|
|
12943
|
-
|
|
12949
|
+
_chunkNDDGFX4Xjs.recordPlayTermination.call(void 0, {
|
|
12944
12950
|
id: run.id,
|
|
12945
12951
|
status: run.status,
|
|
12946
12952
|
finishedAt: run.finishedAt
|
|
@@ -12953,7 +12959,7 @@ function writeStartedPlayRun(input) {
|
|
|
12953
12959
|
dashboardUrl: input.dashboardUrl,
|
|
12954
12960
|
package: input.package
|
|
12955
12961
|
};
|
|
12956
|
-
|
|
12962
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, buildRunLaunch(status), {
|
|
12957
12963
|
json: true,
|
|
12958
12964
|
fields: input.jsonFields
|
|
12959
12965
|
});
|
|
@@ -12975,7 +12981,7 @@ function writeStartedPlayRun(input) {
|
|
|
12975
12981
|
input.progress.writeLine(output2, process.stdout);
|
|
12976
12982
|
return;
|
|
12977
12983
|
}
|
|
12978
|
-
|
|
12984
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, input.package, {
|
|
12979
12985
|
json: false,
|
|
12980
12986
|
text: `${output2}
|
|
12981
12987
|
`
|
|
@@ -13010,7 +13016,7 @@ function writeStartedPlayRun(input) {
|
|
|
13010
13016
|
) ? [`Stop: deepline runs stop ${_chunkBVXIGOBZjs.shellQuote.call(void 0, input.runId)}`] : []
|
|
13011
13017
|
];
|
|
13012
13018
|
if (input.jsonOutput) {
|
|
13013
|
-
|
|
13019
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, payload, { json: true, fields: input.jsonFields });
|
|
13014
13020
|
return;
|
|
13015
13021
|
}
|
|
13016
13022
|
const output = lines.join("\n");
|
|
@@ -13018,7 +13024,7 @@ function writeStartedPlayRun(input) {
|
|
|
13018
13024
|
input.progress.writeLine(output, process.stdout);
|
|
13019
13025
|
return;
|
|
13020
13026
|
}
|
|
13021
|
-
|
|
13027
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
13022
13028
|
{
|
|
13023
13029
|
...payload,
|
|
13024
13030
|
render: { sections: [{ title: "play run", lines }] }
|
|
@@ -13028,7 +13034,7 @@ function writeStartedPlayRun(input) {
|
|
|
13028
13034
|
);
|
|
13029
13035
|
}
|
|
13030
13036
|
function parsePlayCheckOptions(args) {
|
|
13031
|
-
const selection =
|
|
13037
|
+
const selection = _chunkVLUBEMWMjs.parseJsonFields.call(void 0, args, "check");
|
|
13032
13038
|
args = selection.args;
|
|
13033
13039
|
const target = args[0];
|
|
13034
13040
|
if (!target || target.startsWith("-")) {
|
|
@@ -13040,7 +13046,7 @@ function parsePlayCheckOptions(args) {
|
|
|
13040
13046
|
if (arg !== "--json" && arg !== "--full")
|
|
13041
13047
|
throw new Error(`Unknown plays check option: ${arg}`);
|
|
13042
13048
|
}
|
|
13043
|
-
const jsonOutput =
|
|
13049
|
+
const jsonOutput = _chunkVLUBEMWMjs.argsWantJson.call(void 0, args);
|
|
13044
13050
|
return {
|
|
13045
13051
|
target,
|
|
13046
13052
|
jsonOutput,
|
|
@@ -13116,7 +13122,7 @@ ${PLAY_PUBLISH_USAGE}`
|
|
|
13116
13122
|
useLatest,
|
|
13117
13123
|
expectedArtifactHash,
|
|
13118
13124
|
dryRun,
|
|
13119
|
-
jsonOutput:
|
|
13125
|
+
jsonOutput: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args)
|
|
13120
13126
|
};
|
|
13121
13127
|
}
|
|
13122
13128
|
var PLAY_SAVE_USAGE = "Usage: deepline plays save <play-file.ts> [--expected-artifact <hash>] [--watch-play <play-reference>] [--dry-run] [--json]\nUse --watch-play to show invalid source on your own open working canvas while keeping the last valid diagram.";
|
|
@@ -13165,7 +13171,7 @@ ${PLAY_SAVE_USAGE}`);
|
|
|
13165
13171
|
expectedArtifactHash,
|
|
13166
13172
|
watchPlay,
|
|
13167
13173
|
dryRun,
|
|
13168
|
-
jsonOutput:
|
|
13174
|
+
jsonOutput: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args)
|
|
13169
13175
|
};
|
|
13170
13176
|
}
|
|
13171
13177
|
function printScheduledPlayCapacity(capacity) {
|
|
@@ -13354,7 +13360,7 @@ function printBundledRuntimeWarning(bundle) {
|
|
|
13354
13360
|
async function handlePlayCheck(args) {
|
|
13355
13361
|
const options = parsePlayCheckOptions(args);
|
|
13356
13362
|
if (!isFileTarget(options.target)) {
|
|
13357
|
-
const client = new (0,
|
|
13363
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
13358
13364
|
try {
|
|
13359
13365
|
await assertCanonicalNamedPlayReference(client, options.target, {
|
|
13360
13366
|
command: "check"
|
|
@@ -13383,7 +13389,7 @@ async function handlePlayCheck(args) {
|
|
|
13383
13389
|
},
|
|
13384
13390
|
...options.full ? { diagnostics: { staticPipeline: _nullishCoalesce(play.staticPipeline, () => ( null)) } } : {}
|
|
13385
13391
|
};
|
|
13386
|
-
|
|
13392
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, result, {
|
|
13387
13393
|
json: options.jsonOutput,
|
|
13388
13394
|
fields: options.jsonFields,
|
|
13389
13395
|
text: renderPlayCheckOutput(result) + "\n"
|
|
@@ -13393,7 +13399,7 @@ async function handlePlayCheck(args) {
|
|
|
13393
13399
|
const resolved = _path.resolve.call(void 0, options.target);
|
|
13394
13400
|
const message = error instanceof Error && error.message ? error.message : `File not found: ${resolved}`;
|
|
13395
13401
|
if (options.jsonOutput) {
|
|
13396
|
-
|
|
13402
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
13397
13403
|
{
|
|
13398
13404
|
kind: "play_check",
|
|
13399
13405
|
checked: "named_contract",
|
|
@@ -13427,7 +13433,7 @@ async function handlePlayCheck(args) {
|
|
|
13427
13433
|
full: options.full,
|
|
13428
13434
|
publishCommand: _optionalChain([primary, 'optionalAccess', _534 => _534.result, 'access', _535 => _535.artifactHash]) ? `deepline plays publish ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.target)} --expected-artifact ${primary.result.artifactHash}` : void 0
|
|
13429
13435
|
});
|
|
13430
|
-
|
|
13436
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, output, {
|
|
13431
13437
|
json: options.jsonOutput,
|
|
13432
13438
|
fields: options.jsonFields,
|
|
13433
13439
|
jsonLayout: "readable",
|
|
@@ -13499,7 +13505,7 @@ async function checkOneExportedPlay(input) {
|
|
|
13499
13505
|
}
|
|
13500
13506
|
const playName = _nullishCoalesce(graph.root.playName, () => ( fallbackName));
|
|
13501
13507
|
const authoringErrors = collectPlayGraphAuthoringErrors(graph);
|
|
13502
|
-
const client = _nullishCoalesce(input.client, () => ( new (0,
|
|
13508
|
+
const client = _nullishCoalesce(input.client, () => ( new (0, _chunk2RPRSTHDjs.DeeplineClient)()));
|
|
13503
13509
|
const integrationMode = resolveEvalIntegrationMode();
|
|
13504
13510
|
const checked = await checkLocalPlayGraph({
|
|
13505
13511
|
client,
|
|
@@ -13561,8 +13567,8 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13561
13567
|
let prefetchClient;
|
|
13562
13568
|
let admissionCapability;
|
|
13563
13569
|
let cancelAdmissionCapability;
|
|
13564
|
-
let cliAdmission =
|
|
13565
|
-
const progress = _nullishCoalesce(
|
|
13570
|
+
let cliAdmission = _chunkLJLM4BULjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13571
|
+
const progress = _nullishCoalesce(_chunkECLCRE5Pjs.getActiveCliProgress.call(void 0, ), () => ( _chunkECLCRE5Pjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13566
13572
|
const reportError = _nullishCoalesce(_optionalChain([hooks, 'optionalAccess', _544 => _544.writeDryRunError]), () => ( ((error) => console.error(error instanceof Error ? error.message : String(error)))));
|
|
13567
13573
|
const absolutePlayPath = _path.resolve.call(void 0, options.target.path);
|
|
13568
13574
|
progress.phase("compiling play");
|
|
@@ -13579,11 +13585,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13579
13585
|
return 1;
|
|
13580
13586
|
}
|
|
13581
13587
|
if (!options.dryRun && options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13582
|
-
const clientForPrefetch = new (0,
|
|
13588
|
+
const clientForPrefetch = new (0, _chunk2RPRSTHDjs.DeeplineClient)(playRunClientOptions(options));
|
|
13583
13589
|
prefetchClient = clientForPrefetch;
|
|
13584
13590
|
const capabilityController = new AbortController();
|
|
13585
13591
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13586
|
-
admissionCapability =
|
|
13592
|
+
admissionCapability = _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
13587
13593
|
"cli.play_admission_capability_prefetch",
|
|
13588
13594
|
{ targetKind: "file" },
|
|
13589
13595
|
() => clientForPrefetch.prefetchPlayRunAdmissionCapability({
|
|
@@ -13594,7 +13600,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13594
13600
|
}
|
|
13595
13601
|
let graph;
|
|
13596
13602
|
try {
|
|
13597
|
-
graph = await
|
|
13603
|
+
graph = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
13598
13604
|
"cli.play_file_bundle_graph",
|
|
13599
13605
|
{ targetKind: "file" },
|
|
13600
13606
|
() => collectBundledPlayGraph(
|
|
@@ -13607,7 +13613,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13607
13613
|
assertPlayGraphAuthoring(graph);
|
|
13608
13614
|
if (options.dryRun) {
|
|
13609
13615
|
progress.complete();
|
|
13610
|
-
const plan =
|
|
13616
|
+
const plan = _chunkPP5RMEQQjs.planLocalPlayExecution.call(void 0, graph, {
|
|
13611
13617
|
runIdFile: options.runIdFile
|
|
13612
13618
|
});
|
|
13613
13619
|
if (_optionalChain([hooks, 'optionalAccess', _545 => _545.writeDryRunPlan])) hooks.writeDryRunPlan(plan);
|
|
@@ -13618,9 +13624,9 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13618
13624
|
});
|
|
13619
13625
|
return 0;
|
|
13620
13626
|
}
|
|
13621
|
-
client = _nullishCoalesce(prefetchClient, () => ( new (0,
|
|
13627
|
+
client = _nullishCoalesce(prefetchClient, () => ( new (0, _chunk2RPRSTHDjs.DeeplineClient)(playRunClientOptions(options))));
|
|
13622
13628
|
if (cliAdmission && (graph.root.importedPlayDependencies.length > 0 || inputContainsLocalFilePath(runtimeInput))) {
|
|
13623
|
-
await
|
|
13629
|
+
await _chunkLJLM4BULjs.checkPlayRunCompatibility.call(void 0,
|
|
13624
13630
|
client.baseUrl,
|
|
13625
13631
|
options.maintenancePolicy
|
|
13626
13632
|
);
|
|
@@ -13633,7 +13639,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13633
13639
|
});
|
|
13634
13640
|
const canDeferCompilerManifest = graph.root.importedPlayDependencies.length === 0 && !sourceGraphMentionsRunPlay(graph.root) && !inputContainsLocalFilePath(runtimeInput) && !mayBindBareFileName(graph.root, runtimeInput);
|
|
13635
13641
|
if (canDeferCompilerManifest) {
|
|
13636
|
-
|
|
13642
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
13637
13643
|
phase: "cli.play_file_compile_manifests",
|
|
13638
13644
|
ms: 0,
|
|
13639
13645
|
ok: true,
|
|
@@ -13642,7 +13648,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13642
13648
|
reason: "validated_by_run_route"
|
|
13643
13649
|
});
|
|
13644
13650
|
} else {
|
|
13645
|
-
await
|
|
13651
|
+
await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
13646
13652
|
"cli.play_file_compile_manifests",
|
|
13647
13653
|
{ targetKind: "file", skipped: false },
|
|
13648
13654
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
@@ -13650,7 +13656,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13650
13656
|
}
|
|
13651
13657
|
progress.phase("compiled play");
|
|
13652
13658
|
} catch (error) {
|
|
13653
|
-
if (error instanceof
|
|
13659
|
+
if (error instanceof _chunkNDDGFX4Xjs.ExecutionOutputError) throw error;
|
|
13654
13660
|
progress.fail();
|
|
13655
13661
|
reportError(normalizePlayValidationError(error));
|
|
13656
13662
|
return 1;
|
|
@@ -13661,13 +13667,13 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13661
13667
|
if (bundleResult.importedPlayDependencies.length > 0) {
|
|
13662
13668
|
try {
|
|
13663
13669
|
renderLocalPlayExecutionPlan(
|
|
13664
|
-
|
|
13670
|
+
_chunkPP5RMEQQjs.planLocalPlayExecution.call(void 0, graph, { runIdFile: options.runIdFile })
|
|
13665
13671
|
);
|
|
13666
13672
|
progress.phase("pinning imported plays");
|
|
13667
|
-
graph = await
|
|
13673
|
+
graph = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
13668
13674
|
"cli.play_file_pin_imports",
|
|
13669
13675
|
{ targetKind: "file" },
|
|
13670
|
-
() =>
|
|
13676
|
+
() => _chunkPP5RMEQQjs.pinLocalPlayImports.call(void 0, client, graph)
|
|
13671
13677
|
);
|
|
13672
13678
|
bundleResult = graph.root;
|
|
13673
13679
|
} catch (error) {
|
|
@@ -13684,7 +13690,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13684
13690
|
inputSchema: _optionalChain([compilerManifest, 'optionalAccess', _546 => _546.authoringContract, 'optionalAccess', _547 => _547.inputSchema]),
|
|
13685
13691
|
staticPipeline: _optionalChain([compilerManifest, 'optionalAccess', _548 => _548.staticPipeline])
|
|
13686
13692
|
});
|
|
13687
|
-
const stagedFileInputs = await
|
|
13693
|
+
const stagedFileInputs = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
13688
13694
|
"cli.play_stage_inputs",
|
|
13689
13695
|
{
|
|
13690
13696
|
targetKind: "file",
|
|
@@ -13735,7 +13741,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13735
13741
|
};
|
|
13736
13742
|
if (options.watch) {
|
|
13737
13743
|
progress.phase("starting run");
|
|
13738
|
-
const finalStatus = await
|
|
13744
|
+
const finalStatus = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
13739
13745
|
"cli.play_start_watch",
|
|
13740
13746
|
{ targetKind: "file", playName },
|
|
13741
13747
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -13797,7 +13803,7 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13797
13803
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
13798
13804
|
}
|
|
13799
13805
|
progress.phase("starting run");
|
|
13800
|
-
const started = await
|
|
13806
|
+
const started = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
13801
13807
|
"cli.play_start_unwatched",
|
|
13802
13808
|
{ targetKind: "file", playName },
|
|
13803
13809
|
() => startPlayRunWithTransientRetry({
|
|
@@ -13813,7 +13819,11 @@ async function handleFileBackedRun(options, hooks) {
|
|
|
13813
13819
|
);
|
|
13814
13820
|
await _optionalChain([hooks, 'optionalAccess', _556 => _556.onRunStarted, 'optionalCall', _557 => _557(started.workflowId)]);
|
|
13815
13821
|
await _optionalChain([hooks, 'optionalAccess', _558 => _558.onRunAdmitted, 'optionalCall', _559 => _559(started.workflowId)]);
|
|
13816
|
-
const resolvedDashboardUrl =
|
|
13822
|
+
const resolvedDashboardUrl = _chunkIXYVHTRZjs.buildPlayDashboardUrl.call(void 0,
|
|
13823
|
+
client.baseUrl,
|
|
13824
|
+
playName,
|
|
13825
|
+
_chunk2QYU57RGjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
13826
|
+
);
|
|
13817
13827
|
openPlayDashboard(
|
|
13818
13828
|
resolvePlayRunUrl({
|
|
13819
13829
|
runId: started.workflowId,
|
|
@@ -13870,9 +13880,9 @@ async function handleNamedRun(options, hooks) {
|
|
|
13870
13880
|
if (options.target.kind !== "name") {
|
|
13871
13881
|
throw new Error("Expected a named play run target.");
|
|
13872
13882
|
}
|
|
13873
|
-
const client = new (0,
|
|
13874
|
-
let cliAdmission =
|
|
13875
|
-
const progress = _nullishCoalesce(
|
|
13883
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)(playRunClientOptions(options));
|
|
13884
|
+
let cliAdmission = _chunkLJLM4BULjs.usesCliPlayAdmission.call(void 0, "plays run", process.argv.slice(2));
|
|
13885
|
+
const progress = _nullishCoalesce(_chunkECLCRE5Pjs.getActiveCliProgress.call(void 0, ), () => ( _chunkECLCRE5Pjs.createCliProgress.call(void 0, !options.jsonOutput)));
|
|
13876
13886
|
const playName = options.target.name;
|
|
13877
13887
|
const runtimeInput = options.input ? { ...options.input } : {};
|
|
13878
13888
|
try {
|
|
@@ -13890,7 +13900,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13890
13900
|
if (options.watch && cliAdmission && Boolean(options.runIdFile) && options.maxTotalCredits === null && !needsPlayDefinition && !inputContainsLocalFilePath(runtimeInput)) {
|
|
13891
13901
|
const capabilityController = new AbortController();
|
|
13892
13902
|
cancelAdmissionCapability = () => capabilityController.abort();
|
|
13893
|
-
admissionCapability =
|
|
13903
|
+
admissionCapability = _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
13894
13904
|
"cli.play_admission_capability_prefetch",
|
|
13895
13905
|
{ targetKind: "name", playName },
|
|
13896
13906
|
() => client.prefetchPlayRunAdmissionCapability({
|
|
@@ -13901,14 +13911,14 @@ async function handleNamedRun(options, hooks) {
|
|
|
13901
13911
|
}
|
|
13902
13912
|
const playDetail = needsPlayDefinition ? await (async () => {
|
|
13903
13913
|
progress.phase("loading play definition");
|
|
13904
|
-
return
|
|
13914
|
+
return _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
13905
13915
|
"cli.play_load_definition",
|
|
13906
13916
|
{ targetKind: "name", playName, skipped: false },
|
|
13907
13917
|
() => assertCanonicalNamedPlayReference(client, playName, {
|
|
13908
13918
|
command: "run"
|
|
13909
13919
|
})
|
|
13910
13920
|
);
|
|
13911
|
-
})() : (
|
|
13921
|
+
})() : (_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
13912
13922
|
phase: "cli.play_load_definition",
|
|
13913
13923
|
ms: 0,
|
|
13914
13924
|
ok: true,
|
|
@@ -13917,7 +13927,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13917
13927
|
skipped: true
|
|
13918
13928
|
}), null);
|
|
13919
13929
|
progress.phase("selecting revision");
|
|
13920
|
-
const selectedRevisionId = await
|
|
13930
|
+
const selectedRevisionId = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
13921
13931
|
"cli.play_select_revision",
|
|
13922
13932
|
{
|
|
13923
13933
|
targetKind: "name",
|
|
@@ -13942,10 +13952,10 @@ async function handleNamedRun(options, hooks) {
|
|
|
13942
13952
|
..._chunkMJTVX4QKjs.fileInputBindingsFromStaticPipeline.call(void 0, playDetail.play.staticPipeline)
|
|
13943
13953
|
] : [];
|
|
13944
13954
|
if (cliAdmission && fileInputBindings.length > 0) {
|
|
13945
|
-
await
|
|
13955
|
+
await _chunkLJLM4BULjs.checkPlayRunCompatibility.call(void 0, client.baseUrl, options.maintenancePolicy);
|
|
13946
13956
|
cliAdmission = false;
|
|
13947
13957
|
}
|
|
13948
|
-
const stagedFileInputs = await
|
|
13958
|
+
const stagedFileInputs = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
13949
13959
|
"cli.play_stage_inputs",
|
|
13950
13960
|
{
|
|
13951
13961
|
targetKind: "name",
|
|
@@ -13990,7 +14000,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
13990
14000
|
});
|
|
13991
14001
|
if (options.watch) {
|
|
13992
14002
|
progress.phase("starting run");
|
|
13993
|
-
const finalStatus = await
|
|
14003
|
+
const finalStatus = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
13994
14004
|
"cli.play_start_watch",
|
|
13995
14005
|
{ targetKind: "name", playName },
|
|
13996
14006
|
() => (options.runIdFile ? startAndWaitForPlayCompletionByStream : startAndWaitForPlayCompletion)({
|
|
@@ -14055,7 +14065,7 @@ async function handleNamedRun(options, hooks) {
|
|
|
14055
14065
|
return outputStatus.status === "completed" ? 0 : 1;
|
|
14056
14066
|
}
|
|
14057
14067
|
progress.phase("starting run");
|
|
14058
|
-
const started = await
|
|
14068
|
+
const started = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
14059
14069
|
"cli.play_start_unwatched",
|
|
14060
14070
|
{ targetKind: "name", playName },
|
|
14061
14071
|
() => startPlayRunWithTransientRetry({
|
|
@@ -14073,7 +14083,11 @@ async function handleNamedRun(options, hooks) {
|
|
|
14073
14083
|
);
|
|
14074
14084
|
await _optionalChain([hooks, 'optionalAccess', _569 => _569.onRunStarted, 'optionalCall', _570 => _570(started.workflowId)]);
|
|
14075
14085
|
await _optionalChain([hooks, 'optionalAccess', _571 => _571.onRunAdmitted, 'optionalCall', _572 => _572(started.workflowId)]);
|
|
14076
|
-
const resolvedDashboardUrl =
|
|
14086
|
+
const resolvedDashboardUrl = _chunkIXYVHTRZjs.buildPlayDashboardUrl.call(void 0,
|
|
14087
|
+
client.baseUrl,
|
|
14088
|
+
playName,
|
|
14089
|
+
_chunk2QYU57RGjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14090
|
+
);
|
|
14077
14091
|
openPlayDashboard(
|
|
14078
14092
|
resolvePlayRunUrl({
|
|
14079
14093
|
runId: started.workflowId,
|
|
@@ -14122,11 +14136,18 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14122
14136
|
const next = { status: `deepline runs get ${status.runId}` };
|
|
14123
14137
|
const playName = _nullishCoalesce(_nullishCoalesce(_optionalChain([/^play\/(.+)\/run\//, 'access', _576 => _576.exec, 'call', _577 => _577(status.runId), 'optionalAccess', _578 => _578[1]]), () => ( extractRunPlayName(status))), () => ( null));
|
|
14124
14138
|
if (!terminal) {
|
|
14125
|
-
|
|
14139
|
+
_chunkNDDGFX4Xjs.writeExecutionOutput.call(void 0,
|
|
14126
14140
|
{
|
|
14127
14141
|
id: status.runId,
|
|
14128
14142
|
status: status.status,
|
|
14129
|
-
...playName ? {
|
|
14143
|
+
...playName ? {
|
|
14144
|
+
page: _chunkIXYVHTRZjs.buildPlayRunUrl.call(void 0,
|
|
14145
|
+
client.baseUrl,
|
|
14146
|
+
playName,
|
|
14147
|
+
status.runId,
|
|
14148
|
+
_chunk2QYU57RGjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14149
|
+
)
|
|
14150
|
+
} : {},
|
|
14130
14151
|
next
|
|
14131
14152
|
},
|
|
14132
14153
|
output
|
|
@@ -14202,11 +14223,11 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14202
14223
|
};
|
|
14203
14224
|
}
|
|
14204
14225
|
const byRows = new Map(collections.map((c) => [c.rows, c]));
|
|
14205
|
-
const allCollections =
|
|
14226
|
+
const allCollections = _chunkNDDGFX4Xjs.outputCollections.call(void 0, data).map(
|
|
14206
14227
|
(collection) => _nullishCoalesce(byRows.get(collection.rows), () => ( collection))
|
|
14207
14228
|
);
|
|
14208
14229
|
const credits = _nullishCoalesce(_nullishCoalesce(status.billingTotalCreditsRollup, () => ( _optionalChain([status, 'access', _585 => _585.billing, 'optionalAccess', _586 => _586.totalCredits]))), () => ( null));
|
|
14209
|
-
|
|
14230
|
+
_chunkNDDGFX4Xjs.writeExecutionOutput.call(void 0,
|
|
14210
14231
|
{
|
|
14211
14232
|
id: status.runId,
|
|
14212
14233
|
status: status.status,
|
|
@@ -14216,7 +14237,14 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14216
14237
|
error,
|
|
14217
14238
|
credits,
|
|
14218
14239
|
...credits !== null ? { creditsPostedSoFar: true } : {},
|
|
14219
|
-
...playName ? {
|
|
14240
|
+
...playName ? {
|
|
14241
|
+
page: _chunkIXYVHTRZjs.buildPlayRunUrl.call(void 0,
|
|
14242
|
+
client.baseUrl,
|
|
14243
|
+
playName,
|
|
14244
|
+
status.runId,
|
|
14245
|
+
_chunk2QYU57RGjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14246
|
+
)
|
|
14247
|
+
} : {},
|
|
14220
14248
|
warnings: [
|
|
14221
14249
|
...buildRunWarnings(status, null),
|
|
14222
14250
|
...status.status === "completed" && collections.length && collections.every((collection) => collection.rows.length === 0) ? ["Run completed with 0 output rows."] : []
|
|
@@ -14231,7 +14259,7 @@ async function writePlayRunReceipt(client, status, output) {
|
|
|
14231
14259
|
}
|
|
14232
14260
|
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;
|
|
14233
14261
|
async function handlePlayRun(args, hooks) {
|
|
14234
|
-
const parsedOptions = Array.isArray(args) ?
|
|
14262
|
+
const parsedOptions = Array.isArray(args) ? _chunkZ3XFXFRTjs.parsePlayRunOptions.call(void 0, args) : args;
|
|
14235
14263
|
const options = parsedOptions.runIdFile ? {
|
|
14236
14264
|
...parsedOptions,
|
|
14237
14265
|
runIdFile: parsedOptions.dryRun ? _path.resolve.call(void 0, parsedOptions.runIdFile) : await preflightRunIdFile(parsedOptions.runIdFile)
|
|
@@ -14248,7 +14276,7 @@ async function handlePlayRun(args, hooks) {
|
|
|
14248
14276
|
JSON.stringify({
|
|
14249
14277
|
version: 1,
|
|
14250
14278
|
admissionState: "submitted_unknown",
|
|
14251
|
-
baseUrl: new (0,
|
|
14279
|
+
baseUrl: new (0, _chunk2RPRSTHDjs.DeeplineClient)().baseUrl,
|
|
14252
14280
|
...intent
|
|
14253
14281
|
})
|
|
14254
14282
|
);
|
|
@@ -14514,7 +14542,7 @@ function renderRunOverviewText(overview, extras = {}) {
|
|
|
14514
14542
|
);
|
|
14515
14543
|
return `${lines.join("\n")}
|
|
14516
14544
|
|
|
14517
|
-
${
|
|
14545
|
+
${_chunkVLUBEMWMjs.renderCommandEnvelopeText.call(void 0, { render: { sections, actions: actions2 } })}`;
|
|
14518
14546
|
}
|
|
14519
14547
|
var RUN_READ_TIMING_PROGRESS_INTERVAL_MS = 15e3;
|
|
14520
14548
|
async function withRunReadTiming(command, stage, enabled, action) {
|
|
@@ -14540,14 +14568,14 @@ async function withRunReadTiming(command, stage, enabled, action) {
|
|
|
14540
14568
|
async function handleRunGet(args) {
|
|
14541
14569
|
return explainingRunNotFound(
|
|
14542
14570
|
() => parseRunIdPositional(
|
|
14543
|
-
|
|
14571
|
+
_chunkVLUBEMWMjs.parseJsonFields.call(void 0, args, args.includes("--config") ? "config" : "get").args,
|
|
14544
14572
|
""
|
|
14545
14573
|
),
|
|
14546
14574
|
() => handleRunGetAndPrint(args)
|
|
14547
14575
|
);
|
|
14548
14576
|
}
|
|
14549
14577
|
async function handleRunGetAndPrint(args) {
|
|
14550
|
-
const selection =
|
|
14578
|
+
const selection = _chunkVLUBEMWMjs.parseJsonFields.call(void 0,
|
|
14551
14579
|
args,
|
|
14552
14580
|
args.includes("--config") ? "config" : "get"
|
|
14553
14581
|
);
|
|
@@ -14560,7 +14588,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14560
14588
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14561
14589
|
return 1;
|
|
14562
14590
|
}
|
|
14563
|
-
const client = new (0,
|
|
14591
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
14564
14592
|
const timing = args.includes("--timing");
|
|
14565
14593
|
const web = args.includes("--web");
|
|
14566
14594
|
if (web || args.includes("--web-url")) {
|
|
@@ -14575,11 +14603,20 @@ async function handleRunGetAndPrint(args) {
|
|
|
14575
14603
|
console.error(`Run ${runId} does not name its play; no run page URL.`);
|
|
14576
14604
|
return 1;
|
|
14577
14605
|
}
|
|
14578
|
-
const dashboardUrl2 =
|
|
14579
|
-
|
|
14606
|
+
const dashboardUrl2 = _chunkIXYVHTRZjs.buildPlayDashboardUrl.call(void 0,
|
|
14607
|
+
client.baseUrl,
|
|
14608
|
+
playName2,
|
|
14609
|
+
_chunk2QYU57RGjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14610
|
+
);
|
|
14611
|
+
const runUrl2 = _chunkIXYVHTRZjs.buildPlayRunUrl.call(void 0,
|
|
14612
|
+
client.baseUrl,
|
|
14613
|
+
playName2,
|
|
14614
|
+
runId,
|
|
14615
|
+
_chunk2QYU57RGjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14616
|
+
);
|
|
14580
14617
|
if (web) {
|
|
14581
|
-
const opened =
|
|
14582
|
-
|
|
14618
|
+
const opened = _chunkVLUBEMWMjs.openInBrowser.call(void 0, runUrl2);
|
|
14619
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
14583
14620
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2, opened: opened === "opened" },
|
|
14584
14621
|
{
|
|
14585
14622
|
json: args.includes("--json"),
|
|
@@ -14590,7 +14627,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14590
14627
|
);
|
|
14591
14628
|
return 0;
|
|
14592
14629
|
}
|
|
14593
|
-
|
|
14630
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
14594
14631
|
{ dashboardUrl: dashboardUrl2, runUrl: runUrl2 },
|
|
14595
14632
|
{ json: args.includes("--json"), text: `${runUrl2}
|
|
14596
14633
|
` }
|
|
@@ -14615,7 +14652,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14615
14652
|
"This server does not support recorded configuration reads."
|
|
14616
14653
|
);
|
|
14617
14654
|
}
|
|
14618
|
-
|
|
14655
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
14619
14656
|
{ runId, contract: _nullishCoalesce(status2.contract, () => ( null)) },
|
|
14620
14657
|
{ json: true, fields: selection.fields }
|
|
14621
14658
|
);
|
|
@@ -14628,7 +14665,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14628
14665
|
timing,
|
|
14629
14666
|
() => client.getRunInput(runId)
|
|
14630
14667
|
);
|
|
14631
|
-
|
|
14668
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, input, { json: true });
|
|
14632
14669
|
return 0;
|
|
14633
14670
|
}
|
|
14634
14671
|
const full = args.includes("--full");
|
|
@@ -14643,7 +14680,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14643
14680
|
failedLogs: args.includes("--log-failed")
|
|
14644
14681
|
})
|
|
14645
14682
|
);
|
|
14646
|
-
if (status.package)
|
|
14683
|
+
if (status.package) _chunkNDDGFX4Xjs.recordPlayTermination.call(void 0, buildRunOverview(status).run);
|
|
14647
14684
|
if (!status.package) {
|
|
14648
14685
|
const legacyStatus = full ? await withRunReadTiming(
|
|
14649
14686
|
"runs get",
|
|
@@ -14655,10 +14692,19 @@ async function handleRunGetAndPrint(args) {
|
|
|
14655
14692
|
})
|
|
14656
14693
|
) : status;
|
|
14657
14694
|
const legacyPlayName = resolveRunPlayName(legacyStatus, runId);
|
|
14658
|
-
const legacyDashboardUrl = legacyPlayName ?
|
|
14659
|
-
|
|
14660
|
-
|
|
14661
|
-
|
|
14695
|
+
const legacyDashboardUrl = legacyPlayName ? _chunkIXYVHTRZjs.buildPlayDashboardUrl.call(void 0,
|
|
14696
|
+
client.baseUrl,
|
|
14697
|
+
legacyPlayName,
|
|
14698
|
+
_chunk2QYU57RGjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14699
|
+
) : null;
|
|
14700
|
+
const legacyRunUrl = legacyPlayName ? _chunkIXYVHTRZjs.buildPlayRunUrl.call(void 0,
|
|
14701
|
+
client.baseUrl,
|
|
14702
|
+
legacyPlayName,
|
|
14703
|
+
runId,
|
|
14704
|
+
_chunk2QYU57RGjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14705
|
+
) : null;
|
|
14706
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
14707
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
14662
14708
|
{
|
|
14663
14709
|
...full ? legacyStatus : compactPlayStatus(legacyStatus),
|
|
14664
14710
|
...legacyDashboardUrl ? { dashboardUrl: legacyDashboardUrl } : {},
|
|
@@ -14669,7 +14715,7 @@ async function handleRunGetAndPrint(args) {
|
|
|
14669
14715
|
} else {
|
|
14670
14716
|
writePlayResult(legacyStatus, false, { fullJson: full });
|
|
14671
14717
|
if (legacyRunUrl)
|
|
14672
|
-
|
|
14718
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
14673
14719
|
{ dashboardUrl: legacyDashboardUrl, runUrl: legacyRunUrl },
|
|
14674
14720
|
{ json: false, text: `run page: ${legacyRunUrl}
|
|
14675
14721
|
` }
|
|
@@ -14699,11 +14745,20 @@ async function handleRunGetAndPrint(args) {
|
|
|
14699
14745
|
)
|
|
14700
14746
|
]);
|
|
14701
14747
|
const hitLines = formatRunHitsLines(hits);
|
|
14702
|
-
const json =
|
|
14748
|
+
const json = _chunkVLUBEMWMjs.argsWantJson.call(void 0, args);
|
|
14703
14749
|
const playName = resolveRunPlayName(status, runId);
|
|
14704
|
-
const dashboardUrl = playName ?
|
|
14705
|
-
|
|
14706
|
-
|
|
14750
|
+
const dashboardUrl = playName ? _chunkIXYVHTRZjs.buildPlayDashboardUrl.call(void 0,
|
|
14751
|
+
client.baseUrl,
|
|
14752
|
+
playName,
|
|
14753
|
+
_chunk2QYU57RGjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14754
|
+
) : void 0;
|
|
14755
|
+
const runUrl = playName ? _chunkIXYVHTRZjs.buildPlayRunUrl.call(void 0,
|
|
14756
|
+
client.baseUrl,
|
|
14757
|
+
playName,
|
|
14758
|
+
runId,
|
|
14759
|
+
_chunk2QYU57RGjs.resolveCliDashboardOrgId.call(void 0, client.baseUrl)
|
|
14760
|
+
) : void 0;
|
|
14761
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
14707
14762
|
{
|
|
14708
14763
|
...overview,
|
|
14709
14764
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
@@ -14808,9 +14863,9 @@ async function handleRunLifecycleStatus(args) {
|
|
|
14808
14863
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14809
14864
|
return 1;
|
|
14810
14865
|
}
|
|
14811
|
-
const status = await new (0,
|
|
14812
|
-
if (
|
|
14813
|
-
|
|
14866
|
+
const status = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().runs.status(runId);
|
|
14867
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
14868
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, status, { json: true });
|
|
14814
14869
|
return 0;
|
|
14815
14870
|
}
|
|
14816
14871
|
if (!status.available) {
|
|
@@ -14876,7 +14931,7 @@ async function handleRunsRerun(args) {
|
|
|
14876
14931
|
console.error(error instanceof Error ? error.message : usage2);
|
|
14877
14932
|
return 1;
|
|
14878
14933
|
}
|
|
14879
|
-
const options = { json:
|
|
14934
|
+
const options = { json: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args) };
|
|
14880
14935
|
for (let index = 0; index < args.length; index += 1) {
|
|
14881
14936
|
if (args[index] === "--idempotency-key") {
|
|
14882
14937
|
options.idempotencyKey = _nullishCoalesce(args[++index], () => ( ""));
|
|
@@ -14944,8 +14999,8 @@ ${usage2}
|
|
|
14944
14999
|
Discover Plays: ${next.discover}
|
|
14945
15000
|
Active runs: ${next.running}`
|
|
14946
15001
|
);
|
|
14947
|
-
if (
|
|
14948
|
-
|
|
15002
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
15003
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
14949
15004
|
{ ok: false, exitCode: 1, code: "RUN_FILTER_REQUIRED", message, next },
|
|
14950
15005
|
{ json: true }
|
|
14951
15006
|
);
|
|
@@ -14974,7 +15029,7 @@ Active runs: ${next.running}`
|
|
|
14974
15029
|
console.error("--offset requires --play.");
|
|
14975
15030
|
return 1;
|
|
14976
15031
|
}
|
|
14977
|
-
const client = new (0,
|
|
15032
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
14978
15033
|
const page = await withRunReadTiming(
|
|
14979
15034
|
"runs list",
|
|
14980
15035
|
"run inventory",
|
|
@@ -15055,14 +15110,14 @@ Active runs: ${next.running}`
|
|
|
15055
15110
|
return lines2.join("\n");
|
|
15056
15111
|
});
|
|
15057
15112
|
const nextOffset = (_nullishCoalesce(_nullishCoalesce(page.offset, () => ( offset)), () => ( 0))) + runs.length;
|
|
15058
|
-
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkBVXIGOBZjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkBVXIGOBZjs.shellQuote.call(void 0, nodeId)}` : ""}${wantsSteps ? " --steps" : ""}${statusFilter ? ` --status ${_chunkBVXIGOBZjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${
|
|
15113
|
+
const nextPage = page.hasMore && playName ? `deepline runs list --play ${_chunkBVXIGOBZjs.shellQuote.call(void 0, playName)}${nodeId ? ` --node ${_chunkBVXIGOBZjs.shellQuote.call(void 0, nodeId)}` : ""}${wantsSteps ? " --steps" : ""}${statusFilter ? ` --status ${_chunkBVXIGOBZjs.shellQuote.call(void 0, statusFilter)}` : ""} --limit ${_nullishCoalesce(_nullishCoalesce(page.limit, () => ( limit)), () => ( 20))} --offset ${nextOffset}${_chunkVLUBEMWMjs.argsWantJson.call(void 0, args) ? " --json" : ""}` : null;
|
|
15059
15114
|
if (page.hasMore) {
|
|
15060
15115
|
lines.push("List truncated \u2014 more runs match this filter.");
|
|
15061
15116
|
lines.push(
|
|
15062
15117
|
nextPage ? `Next page: ${nextPage}` : "Narrow with --play <play-name> to page through runs."
|
|
15063
15118
|
);
|
|
15064
15119
|
}
|
|
15065
|
-
|
|
15120
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
15066
15121
|
{
|
|
15067
15122
|
runs,
|
|
15068
15123
|
...wantsSteps ? {
|
|
@@ -15080,7 +15135,7 @@ Active runs: ${next.running}`
|
|
|
15080
15135
|
},
|
|
15081
15136
|
render: { sections: [{ title: "runs", lines }] }
|
|
15082
15137
|
},
|
|
15083
|
-
{ json:
|
|
15138
|
+
{ json: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args) }
|
|
15084
15139
|
);
|
|
15085
15140
|
return 0;
|
|
15086
15141
|
}
|
|
@@ -15110,7 +15165,7 @@ async function handleRunTail(args) {
|
|
|
15110
15165
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15111
15166
|
return 1;
|
|
15112
15167
|
}
|
|
15113
|
-
const parsed =
|
|
15168
|
+
const parsed = _chunkVYSUJMB5js.parseLogLevel.call(void 0, value);
|
|
15114
15169
|
if (!parsed) {
|
|
15115
15170
|
console.error(
|
|
15116
15171
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15148,9 +15203,9 @@ async function handleRunTail(args) {
|
|
|
15148
15203
|
);
|
|
15149
15204
|
return 1;
|
|
15150
15205
|
}
|
|
15151
|
-
const client = new (0,
|
|
15206
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
15152
15207
|
const jsonLines = args.includes("--jsonl");
|
|
15153
|
-
const jsonOutput = !jsonLines &&
|
|
15208
|
+
const jsonOutput = !jsonLines && _chunkVLUBEMWMjs.argsWantJson.call(void 0, args);
|
|
15154
15209
|
const compact = args.includes("--compact");
|
|
15155
15210
|
const showLiveLogs = debug || hasExplicitLogLevel || !jsonOutput && !compact;
|
|
15156
15211
|
const compactState = {
|
|
@@ -15231,7 +15286,7 @@ async function handleRunLogs(args) {
|
|
|
15231
15286
|
]);
|
|
15232
15287
|
const cursorIndex = args.indexOf("--cursor");
|
|
15233
15288
|
const cursorValue = cursorIndex >= 0 ? args[cursorIndex + 1] : void 0;
|
|
15234
|
-
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue &&
|
|
15289
|
+
const continuesEventSearch = cursorIndex >= 0 && !(cursorValue && _chunkVYSUJMB5js.isRunLogsCursor.call(void 0, cursorValue));
|
|
15235
15290
|
if (!args[0] || args[0].startsWith("--") || continuesEventSearch || args.some((arg) => searchFlags.has(arg))) {
|
|
15236
15291
|
return handleRunEventSearch(args);
|
|
15237
15292
|
}
|
|
@@ -15265,7 +15320,7 @@ async function handleRunLogs(args) {
|
|
|
15265
15320
|
console.error("--log-level requires one of: debug, info, warn, error.");
|
|
15266
15321
|
return 1;
|
|
15267
15322
|
}
|
|
15268
|
-
const parsed =
|
|
15323
|
+
const parsed = _chunkVYSUJMB5js.parseLogLevel.call(void 0, value);
|
|
15269
15324
|
if (!parsed) {
|
|
15270
15325
|
console.error(
|
|
15271
15326
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -15312,12 +15367,12 @@ async function handleRunLogs(args) {
|
|
|
15312
15367
|
);
|
|
15313
15368
|
return 1;
|
|
15314
15369
|
}
|
|
15315
|
-
const client = new (0,
|
|
15370
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
15316
15371
|
if (outPath) {
|
|
15317
15372
|
const result2 = await client.runs.logs(runId, { all: true });
|
|
15318
|
-
const logs = result2.entries.filter((line) =>
|
|
15373
|
+
const logs = result2.entries.filter((line) => _chunkVYSUJMB5js.logLevelReaches.call(void 0, _chunkVYSUJMB5js.classifyLogLine.call(void 0, line).level, logLevel)).map((line) => _chunkVYSUJMB5js.classifyLogLine.call(void 0, line).line);
|
|
15319
15374
|
_fs.writeFileSync.call(void 0, outPath, `${logs.join("\n")}${logs.length > 0 ? "\n" : ""}`);
|
|
15320
|
-
|
|
15375
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
15321
15376
|
{
|
|
15322
15377
|
runId: result2.runId,
|
|
15323
15378
|
log_path: outPath,
|
|
@@ -15340,7 +15395,7 @@ async function handleRunLogs(args) {
|
|
|
15340
15395
|
]
|
|
15341
15396
|
}
|
|
15342
15397
|
},
|
|
15343
|
-
{ json:
|
|
15398
|
+
{ json: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args) }
|
|
15344
15399
|
);
|
|
15345
15400
|
return 0;
|
|
15346
15401
|
}
|
|
@@ -15371,7 +15426,7 @@ async function handleRunLogs(args) {
|
|
|
15371
15426
|
}
|
|
15372
15427
|
};
|
|
15373
15428
|
const text3 = buildRunLogsText(filteredResult);
|
|
15374
|
-
|
|
15429
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
15375
15430
|
{
|
|
15376
15431
|
runId: result.runId,
|
|
15377
15432
|
totalCount: result.totalCount,
|
|
@@ -15395,7 +15450,7 @@ async function handleRunLogs(args) {
|
|
|
15395
15450
|
render: { sections: [{ title: "run logs", lines: entries }] }
|
|
15396
15451
|
},
|
|
15397
15452
|
{
|
|
15398
|
-
json:
|
|
15453
|
+
json: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args),
|
|
15399
15454
|
text: text3
|
|
15400
15455
|
}
|
|
15401
15456
|
);
|
|
@@ -15419,7 +15474,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15419
15474
|
);
|
|
15420
15475
|
}
|
|
15421
15476
|
const matching = result.entries.map((line, index) => ({ line, seq: first + index })).filter(
|
|
15422
|
-
(entry) =>
|
|
15477
|
+
(entry) => _chunkVYSUJMB5js.logLevelReaches.call(void 0, _chunkVYSUJMB5js.classifyLogLine.call(void 0, entry.line).level, logLevel)
|
|
15423
15478
|
);
|
|
15424
15479
|
const selected = matching.slice(-limit);
|
|
15425
15480
|
const olderMatchesExist = matching.length > selected.length;
|
|
@@ -15429,7 +15484,7 @@ function selectRunLogTailPage(result, logLevel, limit) {
|
|
|
15429
15484
|
lastSequence: _nullishCoalesce(_optionalChain([selected, 'access', _611 => _611.at, 'call', _612 => _612(-1), 'optionalAccess', _613 => _613.seq]), () => ( null)),
|
|
15430
15485
|
truncated: result.truncated || olderMatchesExist,
|
|
15431
15486
|
hasMore: olderMatchesExist,
|
|
15432
|
-
nextCursor: olderMatchesExist ?
|
|
15487
|
+
nextCursor: olderMatchesExist ? _chunkVYSUJMB5js.encodeRunLogsCursor.call(void 0, selected[0].seq) : null
|
|
15433
15488
|
};
|
|
15434
15489
|
}
|
|
15435
15490
|
async function handleRunEventSearch(args) {
|
|
@@ -15496,7 +15551,7 @@ ${usage2}`);
|
|
|
15496
15551
|
namespace,
|
|
15497
15552
|
...backend ? { backend } : {}
|
|
15498
15553
|
} : void 0;
|
|
15499
|
-
const client = new (0,
|
|
15554
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
15500
15555
|
const result = await client.runs.searchEvents({
|
|
15501
15556
|
...runId ? { runId } : {},
|
|
15502
15557
|
...values["--since"] ? { since: values["--since"] } : {},
|
|
@@ -15568,7 +15623,7 @@ ${renderedDetails}` : ""}`;
|
|
|
15568
15623
|
"--limit",
|
|
15569
15624
|
String(limit)
|
|
15570
15625
|
].join(" ") : null;
|
|
15571
|
-
|
|
15626
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
15572
15627
|
{
|
|
15573
15628
|
events,
|
|
15574
15629
|
nextCursor: result.nextCursor,
|
|
@@ -15579,14 +15634,14 @@ ${renderedDetails}` : ""}`;
|
|
|
15579
15634
|
render: { sections: [{ title: "runtime events", lines }] }
|
|
15580
15635
|
},
|
|
15581
15636
|
{
|
|
15582
|
-
json:
|
|
15637
|
+
json: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args),
|
|
15583
15638
|
text: `${lines.join("\n")}${lines.length ? "\n" : ""}`
|
|
15584
15639
|
}
|
|
15585
15640
|
);
|
|
15586
15641
|
return 0;
|
|
15587
15642
|
}
|
|
15588
15643
|
function buildRunLogsText(result) {
|
|
15589
|
-
const lines = result.entries.map((line) =>
|
|
15644
|
+
const lines = result.entries.map((line) => _chunkVYSUJMB5js.classifyLogLine.call(void 0, line).line);
|
|
15590
15645
|
if (result.warning) {
|
|
15591
15646
|
if (lines.length > 0) lines.push("");
|
|
15592
15647
|
lines.push(`warning: ${result.warning}`);
|
|
@@ -15620,7 +15675,7 @@ async function handleRunStop(args) {
|
|
|
15620
15675
|
reason = args[++index];
|
|
15621
15676
|
}
|
|
15622
15677
|
}
|
|
15623
|
-
const client = new (0,
|
|
15678
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
15624
15679
|
const result = await client.runs.stop(runId, { reason });
|
|
15625
15680
|
const communicationNotes = [
|
|
15626
15681
|
...result.communicationCancelledCount ? [
|
|
@@ -15644,7 +15699,7 @@ async function handleRunStop(args) {
|
|
|
15644
15699
|
...result.hitlCancelledCount > 0 ? [`cancelled HITL waits: ${result.hitlCancelledCount}`] : [],
|
|
15645
15700
|
`inspect: deepline runs get ${runId} --full`
|
|
15646
15701
|
];
|
|
15647
|
-
|
|
15702
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
15648
15703
|
{
|
|
15649
15704
|
...cancelling,
|
|
15650
15705
|
state,
|
|
@@ -15659,7 +15714,7 @@ async function handleRunStop(args) {
|
|
|
15659
15714
|
]
|
|
15660
15715
|
}
|
|
15661
15716
|
},
|
|
15662
|
-
{ json:
|
|
15717
|
+
{ json: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args) }
|
|
15663
15718
|
);
|
|
15664
15719
|
return 0;
|
|
15665
15720
|
}
|
|
@@ -15677,7 +15732,7 @@ async function handleRunStop(args) {
|
|
|
15677
15732
|
];
|
|
15678
15733
|
process.stderr.write(`${lines2.join("\n")}
|
|
15679
15734
|
`);
|
|
15680
|
-
|
|
15735
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
15681
15736
|
{
|
|
15682
15737
|
...result,
|
|
15683
15738
|
render: {
|
|
@@ -15692,7 +15747,7 @@ async function handleRunStop(args) {
|
|
|
15692
15747
|
]
|
|
15693
15748
|
}
|
|
15694
15749
|
},
|
|
15695
|
-
{ json:
|
|
15750
|
+
{ json: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args) }
|
|
15696
15751
|
);
|
|
15697
15752
|
return 1;
|
|
15698
15753
|
}
|
|
@@ -15704,12 +15759,12 @@ async function handleRunStop(args) {
|
|
|
15704
15759
|
`warning: HITL cancellation or Slack card refresh is still pending; retry 'deepline runs stop ${runId}'`
|
|
15705
15760
|
] : []
|
|
15706
15761
|
];
|
|
15707
|
-
|
|
15762
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
15708
15763
|
{
|
|
15709
15764
|
...result,
|
|
15710
15765
|
render: { sections: [{ title: "run stop", lines }] }
|
|
15711
15766
|
},
|
|
15712
|
-
{ json:
|
|
15767
|
+
{ json: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args) }
|
|
15713
15768
|
);
|
|
15714
15769
|
return 0;
|
|
15715
15770
|
}
|
|
@@ -15759,18 +15814,18 @@ async function handleRunStopAll(args) {
|
|
|
15759
15814
|
reason = args[++index];
|
|
15760
15815
|
}
|
|
15761
15816
|
}
|
|
15762
|
-
const client = new (0,
|
|
15817
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
15763
15818
|
if (dryRun) {
|
|
15764
15819
|
const result2 = await client.runs.stopAll({ dryRun: true, reason });
|
|
15765
15820
|
const lines2 = buildStopAllDryRunTextLines(result2);
|
|
15766
|
-
|
|
15821
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
15767
15822
|
{
|
|
15768
15823
|
...result2,
|
|
15769
15824
|
render: {
|
|
15770
15825
|
sections: [{ title: "org stop-all (dry run)", lines: lines2 }]
|
|
15771
15826
|
}
|
|
15772
15827
|
},
|
|
15773
|
-
{ json:
|
|
15828
|
+
{ json: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args), text: `${lines2.join("\n")}
|
|
15774
15829
|
` }
|
|
15775
15830
|
);
|
|
15776
15831
|
return 0;
|
|
@@ -15783,23 +15838,23 @@ async function handleRunStopAll(args) {
|
|
|
15783
15838
|
...result.failed > 0 ? [`failed stops: ${result.failed}`] : [],
|
|
15784
15839
|
...result.skipped > 0 ? [`skipped: ${result.skipped}`] : []
|
|
15785
15840
|
];
|
|
15786
|
-
|
|
15841
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
15787
15842
|
{
|
|
15788
15843
|
...result,
|
|
15789
15844
|
render: { sections: [{ title: "org stop-all", lines }] }
|
|
15790
15845
|
},
|
|
15791
|
-
{ json:
|
|
15846
|
+
{ json: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args) }
|
|
15792
15847
|
);
|
|
15793
15848
|
return result.failed > 0 || result.partial ? 1 : 0;
|
|
15794
15849
|
}
|
|
15795
15850
|
async function handleRunExport(args) {
|
|
15796
15851
|
return explainingRunNotFound(
|
|
15797
|
-
() => parseRunIdPositional(
|
|
15852
|
+
() => parseRunIdPositional(_chunkVLUBEMWMjs.parseJsonFields.call(void 0, args, "export").args, ""),
|
|
15798
15853
|
() => handleRunExportAndWrite(args)
|
|
15799
15854
|
);
|
|
15800
15855
|
}
|
|
15801
15856
|
async function handleRunExportAndWrite(args) {
|
|
15802
|
-
const selection =
|
|
15857
|
+
const selection = _chunkVLUBEMWMjs.parseJsonFields.call(void 0, args, "export");
|
|
15803
15858
|
args = selection.args;
|
|
15804
15859
|
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]";
|
|
15805
15860
|
let runId;
|
|
@@ -15870,17 +15925,17 @@ async function handleRunExportAndWrite(args) {
|
|
|
15870
15925
|
"INVALID_ARGUMENT"
|
|
15871
15926
|
);
|
|
15872
15927
|
}
|
|
15873
|
-
const client = new (0,
|
|
15928
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
15874
15929
|
let status = await client.getPlayStatus(runId, { full: true });
|
|
15875
15930
|
runId = assertRunExportStatusIdentity(status, runId);
|
|
15876
15931
|
if (wait && !TERMINAL_PLAY_STATUSES.has(status.status)) {
|
|
15877
|
-
const progress =
|
|
15932
|
+
const progress = _chunkECLCRE5Pjs.createCliProgress.call(void 0, !_chunkVLUBEMWMjs.argsWantJson.call(void 0, args));
|
|
15878
15933
|
try {
|
|
15879
15934
|
await waitForPlayCompletionByWatch({
|
|
15880
15935
|
client,
|
|
15881
15936
|
playName: _nullishCoalesce(extractRunPlayName(status), () => ( runId)),
|
|
15882
15937
|
workflowId: runId,
|
|
15883
|
-
jsonOutput:
|
|
15938
|
+
jsonOutput: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args),
|
|
15884
15939
|
emitLogs: false,
|
|
15885
15940
|
waitTimeoutMs,
|
|
15886
15941
|
startedAt: Date.now(),
|
|
@@ -15948,7 +16003,7 @@ async function handleRunExportAndWrite(args) {
|
|
|
15948
16003
|
rowCount: _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _627 => _627.rowsInfo, 'access', _628 => _628.totalRows]), () => ( null)),
|
|
15949
16004
|
...exportedRowOutcomes ? { rowOutcomes: exportedRowOutcomes } : {},
|
|
15950
16005
|
...rowFailures ? { rowFailures } : {},
|
|
15951
|
-
columns:
|
|
16006
|
+
columns: _chunkNDDGFX4Xjs.underscoreKeysLast.call(void 0, _nullishCoalesce(_optionalChain([exportResult, 'optionalAccess', _629 => _629.rowsInfo, 'access', _630 => _630.columns]), () => ( []))),
|
|
15952
16007
|
...currentTableNotice ? { notice: currentTableNotice } : {},
|
|
15953
16008
|
...metadataOutPath ? { metadata_path: metadataOutPath } : {},
|
|
15954
16009
|
...!TERMINAL_PLAY_STATUSES.has(status.status) ? { completionCommand: `${exportCommand} --wait` } : {}
|
|
@@ -15982,8 +16037,8 @@ async function handleRunExportAndWrite(args) {
|
|
|
15982
16037
|
"utf-8"
|
|
15983
16038
|
);
|
|
15984
16039
|
}
|
|
15985
|
-
|
|
15986
|
-
json:
|
|
16040
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, payload, {
|
|
16041
|
+
json: _chunkVLUBEMWMjs.argsWantJson.call(void 0, args),
|
|
15987
16042
|
fields: selection.fields,
|
|
15988
16043
|
text: `${lines.join("\n")}
|
|
15989
16044
|
`
|
|
@@ -16021,10 +16076,10 @@ async function handlePlayGet(args) {
|
|
|
16021
16076
|
);
|
|
16022
16077
|
return 2;
|
|
16023
16078
|
}
|
|
16024
|
-
const client = new (0,
|
|
16079
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
16025
16080
|
const explicitJson = args.includes("--json");
|
|
16026
16081
|
const sourceOutput = args.includes("--source");
|
|
16027
|
-
const jsonOutput = sourceOutput ? explicitJson :
|
|
16082
|
+
const jsonOutput = sourceOutput ? explicitJson : _chunkVLUBEMWMjs.argsWantJson.call(void 0, args);
|
|
16028
16083
|
const requestedRevisionFlags = [
|
|
16029
16084
|
args.includes("--working"),
|
|
16030
16085
|
args.includes("--live"),
|
|
@@ -16087,7 +16142,7 @@ async function handlePlayGet(args) {
|
|
|
16087
16142
|
}
|
|
16088
16143
|
const loadedMessage = materializedFile ? formatLoadedPlayMessage(materializedFile) : null;
|
|
16089
16144
|
if (jsonOutput) {
|
|
16090
|
-
|
|
16145
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, {
|
|
16091
16146
|
...detail,
|
|
16092
16147
|
...materializedFile ? {
|
|
16093
16148
|
message: loadedMessage,
|
|
@@ -16179,8 +16234,8 @@ async function handlePlayVersions(args) {
|
|
|
16179
16234
|
console.error("Usage: deepline plays versions --name <name> [--json]");
|
|
16180
16235
|
return 1;
|
|
16181
16236
|
}
|
|
16182
|
-
const client = new (0,
|
|
16183
|
-
const jsonOutput =
|
|
16237
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
16238
|
+
const jsonOutput = _chunkVLUBEMWMjs.argsWantJson.call(void 0, args);
|
|
16184
16239
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16185
16240
|
command: "versions"
|
|
16186
16241
|
});
|
|
@@ -16188,7 +16243,7 @@ async function handlePlayVersions(args) {
|
|
|
16188
16243
|
parseReferencedPlayTarget(playName).playName
|
|
16189
16244
|
);
|
|
16190
16245
|
if (jsonOutput) {
|
|
16191
|
-
|
|
16246
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, { versions });
|
|
16192
16247
|
return 0;
|
|
16193
16248
|
}
|
|
16194
16249
|
if (versions.length === 0) {
|
|
@@ -16227,8 +16282,8 @@ async function handlePlayCost(args) {
|
|
|
16227
16282
|
console.error("Usage: deepline plays cost <play> [--json]");
|
|
16228
16283
|
return 2;
|
|
16229
16284
|
}
|
|
16230
|
-
const result = await new (0,
|
|
16231
|
-
if (
|
|
16285
|
+
const result = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().getPlayCostEstimate(name);
|
|
16286
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) console.log(JSON.stringify(result, null, 2));
|
|
16232
16287
|
else
|
|
16233
16288
|
console.log(
|
|
16234
16289
|
`${result.reference}: ${formatPlayCostEstimate(result.costEstimate)}`
|
|
@@ -16236,9 +16291,9 @@ async function handlePlayCost(args) {
|
|
|
16236
16291
|
return 0;
|
|
16237
16292
|
}
|
|
16238
16293
|
async function handlePlayList(args) {
|
|
16239
|
-
const jsonOutput =
|
|
16294
|
+
const jsonOutput = _chunkVLUBEMWMjs.argsWantJson.call(void 0, args);
|
|
16240
16295
|
const showCost = args.includes("--show-cost");
|
|
16241
|
-
const client = new (0,
|
|
16296
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
16242
16297
|
const categoriesIndex = args.indexOf("--categories");
|
|
16243
16298
|
const categories = categoriesIndex >= 0 ? _optionalChain([args, 'access', _649 => _649[categoriesIndex + 1], 'optionalAccess', _650 => _650.trim, 'call', _651 => _651()]) : void 0;
|
|
16244
16299
|
const tags = args.flatMap((arg, index) => arg === "--tag" ? [args[index + 1]] : []).flatMap((value) => (_nullishCoalesce(value, () => ( ""))).split(",")).map((value) => value.trim()).filter(Boolean);
|
|
@@ -16336,7 +16391,7 @@ async function handlePlayList(args) {
|
|
|
16336
16391
|
lines.push("List truncated \u2014 more plays are available.");
|
|
16337
16392
|
lines.push(`Next page: ${nextPage}`);
|
|
16338
16393
|
}
|
|
16339
|
-
|
|
16394
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
16340
16395
|
{
|
|
16341
16396
|
plays,
|
|
16342
16397
|
count: plays.length,
|
|
@@ -16354,7 +16409,7 @@ async function handlePlayList(args) {
|
|
|
16354
16409
|
}
|
|
16355
16410
|
async function handlePlayPin(args, pinned) {
|
|
16356
16411
|
const target = _optionalChain([args, 'access', _660 => _660.find, 'call', _661 => _661((arg) => !arg.startsWith("-")), 'optionalAccess', _662 => _662.trim, 'call', _663 => _663()]);
|
|
16357
|
-
const jsonOutput =
|
|
16412
|
+
const jsonOutput = _chunkVLUBEMWMjs.argsWantJson.call(void 0, args);
|
|
16358
16413
|
const dryRun = args.includes("--dry-run");
|
|
16359
16414
|
if (!target) {
|
|
16360
16415
|
console.error(
|
|
@@ -16372,11 +16427,11 @@ async function handlePlayPin(args, pinned) {
|
|
|
16372
16427
|
const name = parsedTarget.playName;
|
|
16373
16428
|
const plan = { name, pinned, dryRun };
|
|
16374
16429
|
if (dryRun) {
|
|
16375
|
-
|
|
16430
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, plan);
|
|
16376
16431
|
return 0;
|
|
16377
16432
|
}
|
|
16378
|
-
const result = await new (0,
|
|
16379
|
-
if (jsonOutput)
|
|
16433
|
+
const result = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().setPlayPinned(name, pinned);
|
|
16434
|
+
if (jsonOutput) _chunkVLUBEMWMjs.printCompactJson.call(void 0, result);
|
|
16380
16435
|
else console.log(`${result.pinned ? "Pinned" : "Unpinned"} ${result.name}.`);
|
|
16381
16436
|
return 0;
|
|
16382
16437
|
}
|
|
@@ -16502,12 +16557,12 @@ async function handlePlayGrep(args) {
|
|
|
16502
16557
|
console.error("Usage: deepline plays grep <query> [--json]");
|
|
16503
16558
|
return 1;
|
|
16504
16559
|
}
|
|
16505
|
-
const client = new (0,
|
|
16560
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
16506
16561
|
const results = (await client.listPlays({ grep: query })).map(
|
|
16507
16562
|
summarizePlayGrepResult
|
|
16508
16563
|
);
|
|
16509
|
-
if (
|
|
16510
|
-
|
|
16564
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
16565
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, {
|
|
16511
16566
|
plays: results,
|
|
16512
16567
|
count: results.length,
|
|
16513
16568
|
query,
|
|
@@ -16530,7 +16585,7 @@ async function handlePlayGrep(args) {
|
|
|
16530
16585
|
return 0;
|
|
16531
16586
|
}
|
|
16532
16587
|
async function handlePlayDescribe(args) {
|
|
16533
|
-
const selection =
|
|
16588
|
+
const selection = _chunkVLUBEMWMjs.parseJsonFields.call(void 0, args, "describe");
|
|
16534
16589
|
args = selection.args;
|
|
16535
16590
|
const playName = args[0];
|
|
16536
16591
|
if (!playName) {
|
|
@@ -16564,8 +16619,8 @@ async function handlePlayDescribe(args) {
|
|
|
16564
16619
|
`deepline plays check ${playName}`,
|
|
16565
16620
|
...definedName ? [`deepline describe <workspace>/${definedName}`] : []
|
|
16566
16621
|
];
|
|
16567
|
-
if (
|
|
16568
|
-
|
|
16622
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
16623
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, {
|
|
16569
16624
|
ok: false,
|
|
16570
16625
|
error: { message },
|
|
16571
16626
|
next
|
|
@@ -16579,7 +16634,7 @@ async function handlePlayDescribe(args) {
|
|
|
16579
16634
|
}
|
|
16580
16635
|
return 2;
|
|
16581
16636
|
}
|
|
16582
|
-
const client = new (0,
|
|
16637
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
16583
16638
|
await assertCanonicalNamedPlayReference(client, playName, {
|
|
16584
16639
|
command: "describe"
|
|
16585
16640
|
});
|
|
@@ -16589,9 +16644,9 @@ async function handlePlayDescribe(args) {
|
|
|
16589
16644
|
compact: args.includes("--compact")
|
|
16590
16645
|
}
|
|
16591
16646
|
);
|
|
16592
|
-
if (
|
|
16593
|
-
if (selection.fields)
|
|
16594
|
-
else
|
|
16647
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
16648
|
+
if (selection.fields) _chunkVLUBEMWMjs.printJson.call(void 0, play, selection.fields);
|
|
16649
|
+
else _chunkVLUBEMWMjs.printCompactJson.call(void 0, play);
|
|
16595
16650
|
return 0;
|
|
16596
16651
|
}
|
|
16597
16652
|
printPlayDescription(play);
|
|
@@ -16612,7 +16667,7 @@ async function handlePlaySave(args) {
|
|
|
16612
16667
|
return 2;
|
|
16613
16668
|
}
|
|
16614
16669
|
const watchPlay = options.dryRun ? void 0 : options.watchPlay;
|
|
16615
|
-
const client = watchPlay ? new (0,
|
|
16670
|
+
const client = watchPlay ? new (0, _chunk2RPRSTHDjs.DeeplineClient)() : void 0;
|
|
16616
16671
|
let attempt;
|
|
16617
16672
|
if (watchPlay && client) {
|
|
16618
16673
|
try {
|
|
@@ -16636,7 +16691,7 @@ async function handlePlaySave(args) {
|
|
|
16636
16691
|
};
|
|
16637
16692
|
let graph;
|
|
16638
16693
|
try {
|
|
16639
|
-
graph = await
|
|
16694
|
+
graph = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
16640
16695
|
"cli.play_save_bundle_graph",
|
|
16641
16696
|
{ targetKind: "file" },
|
|
16642
16697
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, options.target))
|
|
@@ -16665,7 +16720,7 @@ async function handlePlaySave(args) {
|
|
|
16665
16720
|
next: `deepline plays check ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.target)}`
|
|
16666
16721
|
};
|
|
16667
16722
|
if (options.jsonOutput) {
|
|
16668
|
-
|
|
16723
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, result);
|
|
16669
16724
|
} else {
|
|
16670
16725
|
console.error(result.message);
|
|
16671
16726
|
console.error(` checked artifact: ${result.expectedArtifactHash}`);
|
|
@@ -16687,7 +16742,7 @@ async function handlePlaySave(args) {
|
|
|
16687
16742
|
};
|
|
16688
16743
|
if (options.dryRun) {
|
|
16689
16744
|
if (options.jsonOutput) {
|
|
16690
|
-
|
|
16745
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, dryRun);
|
|
16691
16746
|
} else {
|
|
16692
16747
|
console.log(`Dry run: ${playName}`);
|
|
16693
16748
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16696,14 +16751,14 @@ async function handlePlaySave(args) {
|
|
|
16696
16751
|
}
|
|
16697
16752
|
return 0;
|
|
16698
16753
|
}
|
|
16699
|
-
const saveClient = _nullishCoalesce(client, () => ( new (0,
|
|
16754
|
+
const saveClient = _nullishCoalesce(client, () => ( new (0, _chunk2RPRSTHDjs.DeeplineClient)()));
|
|
16700
16755
|
try {
|
|
16701
|
-
await
|
|
16756
|
+
await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
16702
16757
|
"cli.play_save_compile_manifests",
|
|
16703
16758
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16704
16759
|
() => compileBundledPlayGraphManifests(saveClient, graph)
|
|
16705
16760
|
);
|
|
16706
|
-
const saved = await
|
|
16761
|
+
const saved = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
16707
16762
|
"cli.play_save_register_draft",
|
|
16708
16763
|
{ targetKind: "file", playName, artifactHash },
|
|
16709
16764
|
() => saveClient.registerPlayArtifact({
|
|
@@ -16733,7 +16788,7 @@ async function handlePlaySave(args) {
|
|
|
16733
16788
|
}
|
|
16734
16789
|
};
|
|
16735
16790
|
if (options.jsonOutput) {
|
|
16736
|
-
|
|
16791
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, result);
|
|
16737
16792
|
} else {
|
|
16738
16793
|
console.log(
|
|
16739
16794
|
`\u2713 Saved ${playName} working draft as v${_nullishCoalesce(result.version, () => ( "?"))}`
|
|
@@ -16753,7 +16808,7 @@ async function handlePlaySave(args) {
|
|
|
16753
16808
|
}
|
|
16754
16809
|
}
|
|
16755
16810
|
async function enforceOutcomeGuardrail(input) {
|
|
16756
|
-
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-
|
|
16811
|
+
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-QKX7IE3O.js")));
|
|
16757
16812
|
try {
|
|
16758
16813
|
const gate = await requireOutcomeGuardrail({ ...input, phase: "reserve" });
|
|
16759
16814
|
return {
|
|
@@ -16781,7 +16836,7 @@ async function enforceOutcomeGuardrail(input) {
|
|
|
16781
16836
|
}
|
|
16782
16837
|
}
|
|
16783
16838
|
async function settleOutcomeApproval(input) {
|
|
16784
|
-
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-
|
|
16839
|
+
const { requireOutcomeGuardrail } = await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-QKX7IE3O.js")));
|
|
16785
16840
|
const id = `${input.outcome}/${input.approval.seq}`;
|
|
16786
16841
|
try {
|
|
16787
16842
|
await requireOutcomeGuardrail({
|
|
@@ -16813,7 +16868,7 @@ async function handlePlayPublish(args) {
|
|
|
16813
16868
|
}
|
|
16814
16869
|
const { target: playName, useLatest } = options;
|
|
16815
16870
|
let revisionId = options.revisionId;
|
|
16816
|
-
const client = new (0,
|
|
16871
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
16817
16872
|
if (isFileTarget(playName)) {
|
|
16818
16873
|
if (revisionId || useLatest) {
|
|
16819
16874
|
console.error(
|
|
@@ -16823,7 +16878,7 @@ async function handlePlayPublish(args) {
|
|
|
16823
16878
|
}
|
|
16824
16879
|
let graph;
|
|
16825
16880
|
try {
|
|
16826
|
-
graph = await
|
|
16881
|
+
graph = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
16827
16882
|
"cli.play_publish_bundle_graph",
|
|
16828
16883
|
{ targetKind: "file" },
|
|
16829
16884
|
() => collectBundledPlayGraph(_path.resolve.call(void 0, playName))
|
|
@@ -16845,7 +16900,7 @@ async function handlePlayPublish(args) {
|
|
|
16845
16900
|
next: `deepline plays check ${_chunkBVXIGOBZjs.shellQuote.call(void 0, playName)}`
|
|
16846
16901
|
};
|
|
16847
16902
|
if (options.jsonOutput) {
|
|
16848
|
-
|
|
16903
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, result3);
|
|
16849
16904
|
} else {
|
|
16850
16905
|
console.error(result3.message);
|
|
16851
16906
|
console.error(` checked artifact: ${result3.expectedArtifactHash}`);
|
|
@@ -16868,7 +16923,7 @@ async function handlePlayPublish(args) {
|
|
|
16868
16923
|
};
|
|
16869
16924
|
if (options.dryRun) {
|
|
16870
16925
|
if (options.jsonOutput) {
|
|
16871
|
-
|
|
16926
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, dryRun);
|
|
16872
16927
|
} else {
|
|
16873
16928
|
console.log(`Dry run: ${rootPlayName}`);
|
|
16874
16929
|
console.log(` source: ${dryRun.sourceHash}`);
|
|
@@ -16887,12 +16942,12 @@ async function handlePlayPublish(args) {
|
|
|
16887
16942
|
}
|
|
16888
16943
|
}
|
|
16889
16944
|
try {
|
|
16890
|
-
await
|
|
16945
|
+
await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
16891
16946
|
"cli.play_publish_compile_manifests",
|
|
16892
16947
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16893
16948
|
() => compileBundledPlayGraphManifests(client, graph)
|
|
16894
16949
|
);
|
|
16895
|
-
await
|
|
16950
|
+
await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
16896
16951
|
"cli.play_publish_imports",
|
|
16897
16952
|
{ targetKind: "file", nodeCount: graph.nodes.size },
|
|
16898
16953
|
() => publishImportedPlayDependencies(client, graph)
|
|
@@ -16901,7 +16956,7 @@ async function handlePlayPublish(args) {
|
|
|
16901
16956
|
console.error(error instanceof Error ? error.message : String(error));
|
|
16902
16957
|
return 1;
|
|
16903
16958
|
}
|
|
16904
|
-
const published = await
|
|
16959
|
+
const published = await _chunkSLXCVPN7js.traceCliSpan.call(void 0,
|
|
16905
16960
|
"cli.play_publish_register_root",
|
|
16906
16961
|
{
|
|
16907
16962
|
targetKind: "file",
|
|
@@ -16936,7 +16991,7 @@ async function handlePlayPublish(args) {
|
|
|
16936
16991
|
triggerBindings: _nullishCoalesce(published.triggerBindings, () => ( []))
|
|
16937
16992
|
};
|
|
16938
16993
|
if (options.jsonOutput) {
|
|
16939
|
-
|
|
16994
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, result2);
|
|
16940
16995
|
} else {
|
|
16941
16996
|
printPublishReceipt({
|
|
16942
16997
|
name: rootPlayName,
|
|
@@ -16967,7 +17022,7 @@ async function handlePlayPublish(args) {
|
|
|
16967
17022
|
revisionId: _nullishCoalesce(revisionId, () => ( null)),
|
|
16968
17023
|
latest: useLatest
|
|
16969
17024
|
};
|
|
16970
|
-
|
|
17025
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, result2);
|
|
16971
17026
|
return 0;
|
|
16972
17027
|
}
|
|
16973
17028
|
const resolvedName = parseReferencedPlayTarget(playName).playName;
|
|
@@ -16991,7 +17046,7 @@ async function handlePlayPublish(args) {
|
|
|
16991
17046
|
revisionId ? { revisionId } : {}
|
|
16992
17047
|
);
|
|
16993
17048
|
if (options.jsonOutput) {
|
|
16994
|
-
|
|
17049
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, result);
|
|
16995
17050
|
} else {
|
|
16996
17051
|
printPublishReceipt({
|
|
16997
17052
|
name: result.name,
|
|
@@ -17031,7 +17086,7 @@ async function handlePlayDelete(args) {
|
|
|
17031
17086
|
);
|
|
17032
17087
|
return 2;
|
|
17033
17088
|
}
|
|
17034
|
-
const client = new (0,
|
|
17089
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
17035
17090
|
let detail;
|
|
17036
17091
|
try {
|
|
17037
17092
|
detail = await client.getPlay(parseReferencedPlayTarget(playName).playName);
|
|
@@ -17055,8 +17110,8 @@ async function handlePlayDelete(args) {
|
|
|
17055
17110
|
name: resolvedName,
|
|
17056
17111
|
plannedMutation: "move saved org-owned play to Trash and stop triggers"
|
|
17057
17112
|
};
|
|
17058
|
-
if (
|
|
17059
|
-
|
|
17113
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
17114
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, result2);
|
|
17060
17115
|
} else {
|
|
17061
17116
|
process.stdout.write(
|
|
17062
17117
|
`Dry run: would move ${result2.name} to Trash and stop its active triggers.
|
|
@@ -17066,8 +17121,8 @@ async function handlePlayDelete(args) {
|
|
|
17066
17121
|
return 0;
|
|
17067
17122
|
}
|
|
17068
17123
|
const result = await client.deletePlay(resolvedName);
|
|
17069
|
-
if (
|
|
17070
|
-
|
|
17124
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
17125
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, result);
|
|
17071
17126
|
return result.archived || result.alreadyArchived ? 0 : 4;
|
|
17072
17127
|
}
|
|
17073
17128
|
if (result.alreadyArchived) {
|
|
@@ -17106,13 +17161,13 @@ async function handlePlayRestore(args) {
|
|
|
17106
17161
|
);
|
|
17107
17162
|
return 2;
|
|
17108
17163
|
}
|
|
17109
|
-
const client = new (0,
|
|
17164
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
17110
17165
|
try {
|
|
17111
17166
|
const result = await client.restorePlay(
|
|
17112
17167
|
parseReferencedPlayTarget(playName).playName
|
|
17113
17168
|
);
|
|
17114
|
-
if (
|
|
17115
|
-
|
|
17169
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
17170
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, result);
|
|
17116
17171
|
return result.restored || result.alreadyActive ? 0 : 4;
|
|
17117
17172
|
}
|
|
17118
17173
|
if (result.alreadyActive) {
|
|
@@ -17239,21 +17294,21 @@ Common commands:
|
|
|
17239
17294
|
resume: `deepline plays resume-submission ${_chunkBVXIGOBZjs.shellQuote.call(void 0, path)} --json`
|
|
17240
17295
|
}
|
|
17241
17296
|
};
|
|
17242
|
-
|
|
17297
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0, result2, {
|
|
17243
17298
|
json: options.json,
|
|
17244
17299
|
text: `Submission ${saved.workflowId}: admission is unknown. ${result2.next.inspect}
|
|
17245
17300
|
`
|
|
17246
17301
|
});
|
|
17247
17302
|
return;
|
|
17248
17303
|
}
|
|
17249
|
-
const client = new (0,
|
|
17304
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
17250
17305
|
if (new URL(saved.baseUrl).origin !== new URL(client.baseUrl).origin) {
|
|
17251
17306
|
throw new Error(
|
|
17252
17307
|
"The submission belongs to a different API origin. Select its original host before recovery."
|
|
17253
17308
|
);
|
|
17254
17309
|
}
|
|
17255
17310
|
const result = await client.startPlayRun(saved.request);
|
|
17256
|
-
|
|
17311
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
17257
17312
|
{ ...result },
|
|
17258
17313
|
{
|
|
17259
17314
|
json: options.json,
|
|
@@ -17289,7 +17344,7 @@ Examples:
|
|
|
17289
17344
|
).action(async (target, options) => {
|
|
17290
17345
|
process.exitCode = await handlePlayCheck([
|
|
17291
17346
|
target,
|
|
17292
|
-
...
|
|
17347
|
+
..._chunkVLUBEMWMjs.jsonFieldArgs.call(void 0, options.json),
|
|
17293
17348
|
...options.full ? ["--full"] : []
|
|
17294
17349
|
]);
|
|
17295
17350
|
});
|
|
@@ -17336,10 +17391,10 @@ Notes:
|
|
|
17336
17391
|
with a changed input is refused with a 409 conflict. Use one stable key per
|
|
17337
17392
|
exact intent. Without a key, each invocation starts a new run.
|
|
17338
17393
|
--max-concurrent-external-calls controls the per-run provider-tool/deepline.fetch
|
|
17339
|
-
resident-work ceiling. Default: ${
|
|
17394
|
+
resident-work ceiling. Default: ${_chunkZ3XFXFRTjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS}; accepted range: 1-${_chunkZ3XFXFRTjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS}.
|
|
17340
17395
|
Provider pacing and sandbox memory limits still apply.
|
|
17341
17396
|
--max-concurrent-rows sets the run-wide default and ceiling for live map row
|
|
17342
|
-
resolvers. Accepted range: 1-${
|
|
17397
|
+
resolvers. Accepted range: 1-${_chunkZ3XFXFRTjs.MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
|
|
17343
17398
|
may lower it when source-row size exceeds the active-row memory budget.
|
|
17344
17399
|
--max-credits replaces the play's billing.maxCreditsPerRun for this run.
|
|
17345
17400
|
Before each tool call, its quoted price is added to what the run has
|
|
@@ -17471,10 +17526,10 @@ Examples:
|
|
|
17471
17526
|
).hideHelp()
|
|
17472
17527
|
).option(
|
|
17473
17528
|
"--max-concurrent-external-calls <count>",
|
|
17474
|
-
`Concurrent provider-tool and deepline.fetch executions (${
|
|
17529
|
+
`Concurrent provider-tool and deepline.fetch executions (${_chunkZ3XFXFRTjs.DEFAULT_MAX_CONCURRENT_EXTERNAL_CALLS} default, max ${_chunkZ3XFXFRTjs.MAX_CONFIGURABLE_CONCURRENT_EXTERNAL_CALLS})`
|
|
17475
17530
|
).option(
|
|
17476
17531
|
"--max-concurrent-rows <count>",
|
|
17477
|
-
`Run-wide dataset map row resolver ceiling (max ${
|
|
17532
|
+
`Run-wide dataset map row resolver ceiling (max ${_chunkZ3XFXFRTjs.MAX_CONFIGURABLE_CONCURRENT_ROWS})`
|
|
17478
17533
|
).option("--max-credits <credits>", "Deepline-credit cap for this run").addOption(
|
|
17479
17534
|
// Internal only: the server refuses it without play_run.cache_reuse_window.
|
|
17480
17535
|
new (0, _commander.Option)(
|
|
@@ -17575,14 +17630,14 @@ JSON field selection:
|
|
|
17575
17630
|
passthroughArgs.shift();
|
|
17576
17631
|
}
|
|
17577
17632
|
const exitCode = await handlePlayRun(
|
|
17578
|
-
|
|
17633
|
+
_chunkZ3XFXFRTjs.resolvePlayRunCliOptions.call(void 0,
|
|
17579
17634
|
_nullishCoalesce(effectiveTarget, () => ( void 0)),
|
|
17580
17635
|
options,
|
|
17581
17636
|
passthroughArgs,
|
|
17582
|
-
|
|
17637
|
+
_chunkSLXCVPN7js.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
|
|
17583
17638
|
)
|
|
17584
17639
|
);
|
|
17585
|
-
|
|
17640
|
+
_chunkSLXCVPN7js.recordCliTrace.call(void 0, {
|
|
17586
17641
|
phase: "cli.play_command_exit",
|
|
17587
17642
|
exitCode
|
|
17588
17643
|
});
|
|
@@ -17631,9 +17686,9 @@ Examples:
|
|
|
17631
17686
|
const limit = Number(options.historyLimit);
|
|
17632
17687
|
if (!Number.isInteger(limit) || limit < 1 || limit > 30)
|
|
17633
17688
|
throw new Error("--history-limit must be an integer from 1 to 30.");
|
|
17634
|
-
const client = new (0,
|
|
17689
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
17635
17690
|
if (options.binding) {
|
|
17636
|
-
|
|
17691
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0,
|
|
17637
17692
|
await client.getPlayTriggerHistory(options.binding, { limit })
|
|
17638
17693
|
);
|
|
17639
17694
|
return;
|
|
@@ -17641,7 +17696,7 @@ Examples:
|
|
|
17641
17696
|
const result = await client.listPlayTriggerInventory({
|
|
17642
17697
|
cursor: options.cursor
|
|
17643
17698
|
});
|
|
17644
|
-
|
|
17699
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, {
|
|
17645
17700
|
...result,
|
|
17646
17701
|
next: result.isDone ? null : `deepline plays triggers --cursor ${JSON.stringify(result.continueCursor)}`
|
|
17647
17702
|
});
|
|
@@ -17698,7 +17753,7 @@ Examples:
|
|
|
17698
17753
|
if (options.groupBy !== "kind" && options.groupBy !== "trigger_source") {
|
|
17699
17754
|
throw new Error("--group-by must be kind or trigger_source.");
|
|
17700
17755
|
}
|
|
17701
|
-
const result = await new (0,
|
|
17756
|
+
const result = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().getPlaysActivity({
|
|
17702
17757
|
timeZone: options.timeZone,
|
|
17703
17758
|
days,
|
|
17704
17759
|
...options.endDate ? { endDate: options.endDate } : {},
|
|
@@ -17712,7 +17767,7 @@ Examples:
|
|
|
17712
17767
|
`${bucket.key} ${groups} failed_play_runs=${bucket.failedPlayRuns} ${coverage}`
|
|
17713
17768
|
);
|
|
17714
17769
|
}
|
|
17715
|
-
|
|
17770
|
+
_chunkVLUBEMWMjs.printCommandEnvelope.call(void 0,
|
|
17716
17771
|
{ ...result },
|
|
17717
17772
|
{
|
|
17718
17773
|
json: Boolean(options.json),
|
|
@@ -17741,7 +17796,7 @@ Examples:
|
|
|
17741
17796
|
false
|
|
17742
17797
|
);
|
|
17743
17798
|
});
|
|
17744
|
-
|
|
17799
|
+
_chunk6B5EZOI3js.registerDeprecatedSearchCommand.call(void 0,
|
|
17745
17800
|
play,
|
|
17746
17801
|
(options) => options.all ? ["prebuilts", "custom"] : ["prebuilts"]
|
|
17747
17802
|
);
|
|
@@ -17782,9 +17837,9 @@ Examples:
|
|
|
17782
17837
|
"--json [fields]",
|
|
17783
17838
|
"JSON output; optionally select comma-separated dotted paths"
|
|
17784
17839
|
);
|
|
17785
|
-
|
|
17840
|
+
_chunkNDDGFX4Xjs.addDescribeOptions.call(void 0, describeCommand, { json: false }).action(
|
|
17786
17841
|
async (target, options) => {
|
|
17787
|
-
const ownView = () => handlePlayDescribe(
|
|
17842
|
+
const ownView = () => handlePlayDescribe(_chunkVLUBEMWMjs.describeArgs.call(void 0, target, options));
|
|
17788
17843
|
const [flagText] = [options.json].filter(
|
|
17789
17844
|
(value) => typeof value === "string"
|
|
17790
17845
|
);
|
|
@@ -17795,7 +17850,7 @@ Examples:
|
|
|
17795
17850
|
process.exitCode = await ownView();
|
|
17796
17851
|
return;
|
|
17797
17852
|
}
|
|
17798
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
17853
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-6OI5K2SH.js")));
|
|
17799
17854
|
process.exitCode = await describeAnything(
|
|
17800
17855
|
name,
|
|
17801
17856
|
{
|
|
@@ -17918,7 +17973,7 @@ Examples:
|
|
|
17918
17973
|
deepline plays deployments <deployment-id>
|
|
17919
17974
|
`
|
|
17920
17975
|
).option("--limit <n>", "Max rows (default 50)").option("--json", "Emit JSON output").action(
|
|
17921
|
-
async (id, options) => id ?
|
|
17976
|
+
async (id, options) => id ? _chunk7GQU46SZjs.handleDeploymentGet.call(void 0, id, options) : _chunk7GQU46SZjs.handleDeploymentsList.call(void 0, options)
|
|
17922
17977
|
);
|
|
17923
17978
|
addPublishHelp(
|
|
17924
17979
|
play.command("publish <target>").description(
|
|
@@ -17946,10 +18001,10 @@ Examples:
|
|
|
17946
18001
|
new (0, _commander.Option)(
|
|
17947
18002
|
"--outcome <outcome>",
|
|
17948
18003
|
"Run under this outcome. Refused (exit 3) when it asks before plays.set-live and no approval exists"
|
|
17949
|
-
).hideHelp(!
|
|
18004
|
+
).hideHelp(!_chunk2QYU57RGjs.cliFeatureEnabled.call(void 0, "outcomes"))
|
|
17950
18005
|
).addOption(
|
|
17951
18006
|
new (0, _commander.Option)("--as <agent>", "With --outcome: the agent acting").hideHelp(
|
|
17952
|
-
!
|
|
18007
|
+
!_chunk2QYU57RGjs.cliFeatureEnabled.call(void 0, "outcomes")
|
|
17953
18008
|
)
|
|
17954
18009
|
).option("--json", "Emit JSON output").action(async (target, options) => {
|
|
17955
18010
|
const guarded = options.outcome && !options.dryRun ? {
|
|
@@ -18101,14 +18156,14 @@ Examples:
|
|
|
18101
18156
|
const limit = Number(options.limit);
|
|
18102
18157
|
if (!Number.isSafeInteger(limit) || limit < 1 || limit > 1e3)
|
|
18103
18158
|
throw new Error("--limit must be an integer from 1 to 1000.");
|
|
18104
|
-
const result = await new (0,
|
|
18159
|
+
const result = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().runs.rowHistory({
|
|
18105
18160
|
playName: options.play,
|
|
18106
18161
|
runId,
|
|
18107
18162
|
tableNamespace: options.dataset,
|
|
18108
18163
|
limit,
|
|
18109
18164
|
cursor: options.cursor
|
|
18110
18165
|
});
|
|
18111
|
-
|
|
18166
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, {
|
|
18112
18167
|
...result,
|
|
18113
18168
|
...result.nextCursor ? {
|
|
18114
18169
|
next: `deepline runs rows-history ${_chunkBVXIGOBZjs.shellQuote.call(void 0, runId)} --play ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.play)} --dataset ${_chunkBVXIGOBZjs.shellQuote.call(void 0, options.dataset)} --limit ${limit} --cursor ${_chunkBVXIGOBZjs.shellQuote.call(void 0, result.nextCursor)} --json`
|
|
@@ -18186,7 +18241,7 @@ Examples:
|
|
|
18186
18241
|
new (0, _commander.Option)("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
18187
18242
|
).action(async (runId, options) => {
|
|
18188
18243
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
18189
|
-
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
18244
|
+
const { getToolExecutionReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-D5SZSIIH.js")));
|
|
18190
18245
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
18191
18246
|
receiptJson: options.json !== void 0
|
|
18192
18247
|
});
|
|
@@ -18194,7 +18249,7 @@ Examples:
|
|
|
18194
18249
|
}
|
|
18195
18250
|
process.exitCode = await handleRunGet([
|
|
18196
18251
|
runId,
|
|
18197
|
-
...
|
|
18252
|
+
..._chunkVLUBEMWMjs.jsonFieldArgs.call(void 0, options.json),
|
|
18198
18253
|
...options.web ? ["--web"] : [],
|
|
18199
18254
|
...options.webUrl ? ["--web-url"] : [],
|
|
18200
18255
|
...options.full ? ["--full"] : [],
|
|
@@ -18524,7 +18579,7 @@ Examples:
|
|
|
18524
18579
|
...options.allowEmpty ? ["--allow-empty"] : [],
|
|
18525
18580
|
...options.wait ? ["--wait"] : [],
|
|
18526
18581
|
...options.timeoutMs ? ["--timeout-ms", options.timeoutMs] : [],
|
|
18527
|
-
...
|
|
18582
|
+
..._chunkVLUBEMWMjs.jsonFieldArgs.call(void 0, options.json)
|
|
18528
18583
|
]);
|
|
18529
18584
|
});
|
|
18530
18585
|
const share = play.command("share").description(
|
|
@@ -18690,10 +18745,10 @@ async function handlePlayShareStatus(args) {
|
|
|
18690
18745
|
return 2;
|
|
18691
18746
|
}
|
|
18692
18747
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18693
|
-
const status = await new (0,
|
|
18748
|
+
const status = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().getSharePage(name);
|
|
18694
18749
|
const outputStatus = shareStatusForOutput(status);
|
|
18695
|
-
if (
|
|
18696
|
-
|
|
18750
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
18751
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, outputStatus);
|
|
18697
18752
|
return 0;
|
|
18698
18753
|
}
|
|
18699
18754
|
if (!outputStatus.share) {
|
|
@@ -18732,7 +18787,7 @@ async function handlePlaySharePublish(args) {
|
|
|
18732
18787
|
return 2;
|
|
18733
18788
|
}
|
|
18734
18789
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18735
|
-
const client = new (0,
|
|
18790
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
18736
18791
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18737
18792
|
let resolvedVersion;
|
|
18738
18793
|
if (!revisionId) {
|
|
@@ -18763,8 +18818,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18763
18818
|
);
|
|
18764
18819
|
if (!hasCompleted) {
|
|
18765
18820
|
const message = `No completed run for ${name}. Publish a play only after it has run successfully. (Override with --no-run-check.)`;
|
|
18766
|
-
if (
|
|
18767
|
-
|
|
18821
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
18822
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, {
|
|
18768
18823
|
ok: false,
|
|
18769
18824
|
code: "NO_SUCCESSFUL_RUN",
|
|
18770
18825
|
message,
|
|
@@ -18788,8 +18843,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18788
18843
|
};
|
|
18789
18844
|
if (args.includes("--dry-run")) {
|
|
18790
18845
|
const plan = { dryRun: true, name, version: resolvedVersion, ...request };
|
|
18791
|
-
if (
|
|
18792
|
-
|
|
18846
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
18847
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, plan);
|
|
18793
18848
|
} else {
|
|
18794
18849
|
console.log(
|
|
18795
18850
|
`Would publish ${name}${resolvedVersion ? ` v${resolvedVersion}` : ""} (revision ${revisionId}).`
|
|
@@ -18799,8 +18854,8 @@ async function handlePlaySharePublish(args) {
|
|
|
18799
18854
|
}
|
|
18800
18855
|
const status = await client.publishSharePage(name, request);
|
|
18801
18856
|
const outputStatus = shareStatusForOutput(status);
|
|
18802
|
-
if (
|
|
18803
|
-
|
|
18857
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
18858
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, outputStatus);
|
|
18804
18859
|
return 0;
|
|
18805
18860
|
}
|
|
18806
18861
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18831,9 +18886,9 @@ async function handlePlayShareUpdate(args) {
|
|
|
18831
18886
|
...args.includes("--show-latency") ? { showAverageLatency: true } : args.includes("--hide-latency") ? { showAverageLatency: false } : {},
|
|
18832
18887
|
...seoIndexing ? { seoIndexing } : {}
|
|
18833
18888
|
};
|
|
18834
|
-
const status = await new (0,
|
|
18835
|
-
if (
|
|
18836
|
-
|
|
18889
|
+
const status = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().updateSharePage(name, request);
|
|
18890
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
18891
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, status);
|
|
18837
18892
|
return 0;
|
|
18838
18893
|
}
|
|
18839
18894
|
console.log(`Updated ${name} share settings.`);
|
|
@@ -18848,7 +18903,7 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18848
18903
|
return 2;
|
|
18849
18904
|
}
|
|
18850
18905
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18851
|
-
const client = new (0,
|
|
18906
|
+
const client = new (0, _chunk2RPRSTHDjs.DeeplineClient)();
|
|
18852
18907
|
let revisionId = shareFlagValue(args, "--revision-id");
|
|
18853
18908
|
const versionFlag = shareFlagValue(args, "--version");
|
|
18854
18909
|
if (!revisionId && versionFlag) {
|
|
@@ -18865,8 +18920,8 @@ async function handlePlayShareRegenerate(args) {
|
|
|
18865
18920
|
revisionId ? { revisionId } : {}
|
|
18866
18921
|
);
|
|
18867
18922
|
const outputStatus = shareStatusForOutput(status);
|
|
18868
|
-
if (
|
|
18869
|
-
|
|
18923
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
18924
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, outputStatus);
|
|
18870
18925
|
return 0;
|
|
18871
18926
|
}
|
|
18872
18927
|
const urls = shareUrlFields(outputStatus);
|
|
@@ -18891,9 +18946,9 @@ async function handlePlayShareUnpublish(args) {
|
|
|
18891
18946
|
return 2;
|
|
18892
18947
|
}
|
|
18893
18948
|
const name = parseReferencedPlayTarget(target).playName;
|
|
18894
|
-
const status = await new (0,
|
|
18895
|
-
if (
|
|
18896
|
-
|
|
18949
|
+
const status = await new (0, _chunk2RPRSTHDjs.DeeplineClient)().unpublishSharePage(name);
|
|
18950
|
+
if (_chunkVLUBEMWMjs.argsWantJson.call(void 0, args)) {
|
|
18951
|
+
_chunkVLUBEMWMjs.printCompactJson.call(void 0, status);
|
|
18897
18952
|
return 0;
|
|
18898
18953
|
}
|
|
18899
18954
|
console.log(`Unpublished ${name}; the public page has been removed.`);
|
|
@@ -18974,4 +19029,4 @@ async function handlePlayShareUnpublish(args) {
|
|
|
18974
19029
|
|
|
18975
19030
|
|
|
18976
19031
|
|
|
18977
|
-
exports.PLAY_START_TRANSIENT_RETRY_DELAYS_MS = PLAY_START_TRANSIENT_RETRY_DELAYS_MS; exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.assertRunExportStatusIdentity = assertRunExportStatusIdentity; 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 =
|
|
19032
|
+
exports.PLAY_START_TRANSIENT_RETRY_DELAYS_MS = PLAY_START_TRANSIENT_RETRY_DELAYS_MS; exports.PREBUILT_PLAY_TAG_KEYS = PREBUILT_PLAY_TAG_KEYS; exports.assertDatasetHasExportableRows = assertDatasetHasExportableRows; exports.assertRunExportStatusIdentity = assertRunExportStatusIdentity; 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 = _chunkZ3XFXFRTjs.parsePlayRunHeaderFlag; exports.parsePlayRunOptions = _chunkZ3XFXFRTjs.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.startPlayRunWithTransientRetry = startPlayRunWithTransientRetry; exports.takeFromRunRerunArgs = takeFromRunRerunArgs; exports.truncateErrorForDisplay = truncateErrorForDisplay; exports.waitForPlayCompletionByWatch = waitForPlayCompletionByWatch; exports.withTerminalPlayIdentity = withTerminalPlayIdentity; exports.writeInlinePlay = writeInlinePlay; exports.writePlayRunIdFile = writePlayRunIdFile; exports.writePlayRunReceipt = writePlayRunReceipt;
|