deepline 0.3.573 → 0.3.575
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/observability/scheduled-jobs.json +0 -18
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/builtin-pacing.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +4 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +0 -14
- package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +4 -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/runner-backends/backends/modal.ts +45 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +6 -66
- package/dist/cli/agents-BCLO3KQJ.js +996 -0
- package/dist/cli/agents-ULGDKUTM.mjs +996 -0
- package/dist/cli/{auth-XX3HLRQ2.mjs → auth-4WCL7A6W.mjs} +5 -5
- package/dist/cli/auth-DXUHEL5I.js +44 -0
- package/dist/cli/{billing-QASEPOBL.mjs → billing-7JQ6EUQU.mjs} +10 -10
- package/dist/cli/{billing-6TY2HMC6.js → billing-BF5LVXOM.js} +106 -106
- package/dist/cli/{chunk-NUH56LTU.mjs → chunk-2T7XOKVL.mjs} +5 -5
- package/dist/cli/{chunk-KQZBN7TB.js → chunk-2UM3I2MY.js} +1 -1
- package/dist/cli/{chunk-MQOJ7SP4.mjs → chunk-3PVKXUSJ.mjs} +9 -1
- package/dist/cli/{chunk-6JTJP3WO.mjs → chunk-56N3XAT6.mjs} +5 -5
- package/dist/cli/{chunk-T2QI52F2.mjs → chunk-5D7OJY4W.mjs} +1 -1
- package/dist/cli/{chunk-JAW75RAO.js → chunk-5H6254MJ.js} +27 -20
- package/dist/cli/{chunk-N3VZTISZ.js → chunk-5VSHQG5E.js} +8 -8
- package/dist/cli/{chunk-KART6FR6.js → chunk-636GD4IR.js} +2 -2
- package/dist/cli/{chunk-XWO4J34B.js → chunk-6IKLITVH.js} +6 -6
- package/dist/cli/{chunk-Z6KWSBOX.js → chunk-737Y7QGT.js} +41 -41
- package/dist/cli/{chunk-XVFRNNL2.js → chunk-7DLAJ6JJ.js} +53 -53
- package/dist/cli/{chunk-GWPXWKQR.js → chunk-AO56MZ7D.js} +15 -7
- package/dist/cli/{chunk-DIZI5YGW.js → chunk-AS5XGOZY.js} +2 -2
- package/dist/cli/{chunk-ESKNCTFI.mjs → chunk-BM536WWR.mjs} +1 -1
- package/dist/cli/{chunk-LPYUGPTF.mjs → chunk-BONMEBWZ.mjs} +4 -4
- package/dist/cli/{chunk-4LWBURSS.mjs → chunk-BQUAE6LQ.mjs} +1 -1
- package/dist/cli/{chunk-QDQOXHXQ.mjs → chunk-CVY4MBXH.mjs} +5 -5
- package/dist/cli/{chunk-N6KF6X3D.js → chunk-DMPGJCNZ.js} +177 -6
- package/dist/cli/{chunk-ENHQBPR5.mjs → chunk-DWUESXDD.mjs} +4 -3
- package/dist/cli/{chunk-5NEJOCOK.mjs → chunk-E4RYSSXX.mjs} +2 -2
- package/dist/cli/{chunk-IZK2BLBW.js → chunk-EV3OPDHF.js} +20 -20
- package/dist/cli/{chunk-YKHXWO7N.js → chunk-EZIXKNKM.js} +3 -3
- package/dist/cli/{chunk-64MOX3SN.mjs → chunk-FDCU3VAJ.mjs} +174 -3
- package/dist/cli/{chunk-X3BGF6UU.js → chunk-FXXERR52.js} +10 -10
- package/dist/cli/{chunk-BM4GE67C.mjs → chunk-FYKHAT2F.mjs} +81 -7
- package/dist/cli/{chunk-UNTBQY64.js → chunk-G2H6SQQY.js} +11 -11
- package/dist/cli/{chunk-WQEGXOUT.js → chunk-G4WPDCXA.js} +48 -48
- package/dist/cli/{chunk-OG3YWDYA.js → chunk-GB4IZ5TV.js} +13 -13
- package/dist/cli/{chunk-N5VL6BHF.mjs → chunk-GQZFZG6R.mjs} +2 -2
- package/dist/cli/{chunk-JCVAVHDP.mjs → chunk-H3CG72RZ.mjs} +21 -16
- package/dist/cli/{chunk-FXLVMWWA.js → chunk-H6JMRLAZ.js} +280 -275
- package/dist/cli/{chunk-UBTEDSIK.js → chunk-HEOM3FAC.js} +20 -20
- package/dist/cli/{chunk-CY3BUFMG.js → chunk-HO76C7AE.js} +2 -2
- package/dist/cli/{chunk-XAIXTB74.mjs → chunk-IAJ65IDZ.mjs} +4 -4
- package/dist/cli/{chunk-ENLJ67CZ.mjs → chunk-IBYMGR5Y.mjs} +1 -1
- package/dist/cli/{chunk-4K6UVILG.mjs → chunk-IOWLFWWG.mjs} +2 -2
- package/dist/cli/{chunk-NJTTRJ32.mjs → chunk-JGLCK2XF.mjs} +2 -2
- package/dist/cli/{chunk-DLWVJ66I.js → chunk-KNCNFL76.js} +4 -4
- package/dist/cli/{chunk-XLN4Z654.mjs → chunk-MN7JLH2T.mjs} +2 -2
- package/dist/cli/{chunk-IXCGWJJZ.mjs → chunk-MWLOBURN.mjs} +2 -2
- package/dist/cli/{chunk-6ASDTHEN.js → chunk-MXK4M7HP.js} +21 -17
- package/dist/cli/{chunk-C52RRBYB.mjs → chunk-NF722E6C.mjs} +1 -1
- package/dist/cli/{chunk-TNCJ2J76.js → chunk-PQYDO72W.js} +26 -26
- package/dist/cli/{chunk-PW3PADXI.mjs → chunk-QEDRUURT.mjs} +1 -1
- package/dist/cli/{chunk-QFDT35HF.mjs → chunk-QKP3WYSZ.mjs} +3 -3
- package/dist/cli/{chunk-M2UJWUWX.mjs → chunk-RHRRY2BX.mjs} +3 -3
- package/dist/cli/{chunk-HUJMFETO.mjs → chunk-RW3URFZK.mjs} +7 -3
- package/dist/cli/{chunk-TBLP7HDL.js → chunk-SKHUWQZE.js} +10 -9
- package/dist/cli/{chunk-WSXRJ2RZ.mjs → chunk-SYQTBHRX.mjs} +3 -3
- package/dist/cli/{chunk-ANSHNREL.mjs → chunk-TMFR2B45.mjs} +3 -3
- package/dist/cli/{chunk-5MCC4D25.mjs → chunk-TTBZ7QXX.mjs} +1 -1
- package/dist/cli/{chunk-ROSPYLDN.mjs → chunk-UQZP7XBQ.mjs} +17 -10
- package/dist/cli/{chunk-TJSKDOXN.js → chunk-V5XLENWK.js} +7 -7
- package/dist/cli/{chunk-DSE45YP4.mjs → chunk-X47J55ZJ.mjs} +2 -2
- package/dist/cli/{chunk-FUVVTHXE.js → chunk-XFV353R2.js} +23 -23
- package/dist/cli/{chunk-OPD6XUIG.js → chunk-YNAXKA23.js} +5 -5
- package/dist/cli/{chunk-LHPYCJNL.js → chunk-ZO65VJRJ.js} +87 -13
- package/dist/cli/{chunk-2USXCXPZ.js → chunk-ZQXJYO5P.js} +5 -5
- package/dist/cli/{chunk-UZLTBBAG.js → chunk-ZS6DT4LD.js} +15 -15
- package/dist/cli/{chunk-KQLIG4YR.js → chunk-ZYSJND73.js} +9 -9
- package/dist/cli/command-docs.js +3 -3
- package/dist/cli/command-docs.mjs +2 -2
- package/dist/cli/{concurrent-runs-help-IILHMHBX.mjs → concurrent-runs-help-HITK6EOO.mjs} +7 -7
- package/dist/cli/concurrent-runs-help-JLWY54WL.js +22 -0
- package/dist/cli/{csv-OSJQVDAS.js → csv-RS7XHQ4P.js} +13 -13
- package/dist/cli/{csv-VGYW2PQZ.mjs → csv-V2T23MXT.mjs} +4 -4
- package/dist/cli/{db-3IQYT3WD.mjs → db-OQ4RNTGE.mjs} +6 -6
- package/dist/cli/{db-2IMS6K2F.js → db-WFIVRPKY.js} +27 -27
- package/dist/cli/describe-33PBWO5O.js +50 -0
- package/dist/cli/{describe-IGJ4CHUC.mjs → describe-AXV2EEX3.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +13 -2
- package/dist/cli/describe-core.d.ts +13 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-VOJN4NPF.js → executions-5H2RIWZ3.js} +8 -8
- package/dist/cli/{executions-6F3PLVCR.mjs → executions-THP5ZDBQ.mjs} +6 -6
- package/dist/cli/{feedback-BP5G27DT.mjs → feedback-2EJPILGE.mjs} +6 -6
- package/dist/cli/{feedback-5N7GKSMC.js → feedback-UOI6UEGA.js} +14 -14
- package/dist/cli/git-2OPYEPYW.js +26 -0
- package/dist/cli/{git-FHNCP7QA.mjs → git-DI3LJIAT.mjs} +5 -5
- package/dist/cli/index.js +152 -148
- package/dist/cli/index.mjs +51 -47
- package/dist/cli/{integrations-KKCEEWDU.mjs → integrations-DJYS5VRK.mjs} +7 -7
- package/dist/cli/{integrations-JZV55BZT.js → integrations-TYN2BSQ6.js} +29 -29
- package/dist/cli/{legacy-noops-OVOHF47E.js → legacy-noops-GXQHNLGJ.js} +9 -9
- package/dist/cli/{legacy-noops-YOPWDLRG.mjs → legacy-noops-Z457BB6O.mjs} +6 -6
- package/dist/cli/{mcp-SJAXFYTI.mjs → mcp-NAW3GFNN.mjs} +4 -4
- package/dist/cli/{mcp-F2XGBA6W.js → mcp-WMBOOTQL.js} +24 -24
- package/dist/cli/{monitors-PFH3FQLD.mjs → monitors-A7NYAXSJ.mjs} +7 -7
- package/dist/cli/{monitors-RQRNQRYB.js → monitors-OOQVE7XR.js} +100 -100
- package/dist/cli/{org-PZC6SUZD.mjs → org-7YCDUSZE.mjs} +6 -6
- package/dist/cli/{org-WPOEKMTG.js → org-D2AMIVBS.js} +121 -121
- package/dist/cli/{outcomes-EXOCNHOC.js → outcomes-2FKZDJSQ.js} +17 -15
- package/dist/cli/{outcomes-ZS7XD3KQ.mjs → outcomes-TNTKCUEO.mjs} +9 -7
- package/dist/cli/{play-UKSRFVIU.mjs → play-L6CVHSN4.mjs} +88 -33
- package/dist/cli/{play-JS2TEEE7.js → play-NWKHCHVZ.js} +393 -338
- package/dist/cli/{providers-U6IODPMJ.mjs → providers-22LO747B.mjs} +6 -6
- package/dist/cli/{providers-3U4MWBLU.js → providers-PZGOI5CN.js} +9 -9
- package/dist/cli/{quickstart-G5QN5CUE.mjs → quickstart-3ZRVKGMH.mjs} +4 -4
- package/dist/cli/{quickstart-SHBAEDX6.js → quickstart-LLWOC2GR.js} +6 -6
- package/dist/cli/{run-3ZOJ6V7C.mjs → run-D46W2GUA.mjs} +48 -27
- package/dist/cli/{run-SZRKNLUT.js → run-SNF23STR.js} +70 -49
- package/dist/cli/search-H57MZPLF.js +32 -0
- package/dist/cli/{search-2VX5WNMJ.mjs → search-XWVCICIX.mjs} +7 -7
- package/dist/cli/{search-output-WGDHYYHX.js → search-output-36GHD67U.js} +12 -9
- package/dist/cli/{search-output-U5N2O6IA.mjs → search-output-YM5QXFQQ.mjs} +9 -6
- package/dist/cli/{secrets-SQKP5ILO.mjs → secrets-7PTZEFRC.mjs} +6 -6
- package/dist/cli/{secrets-UITJOGVQ.js → secrets-UXCIHG5I.js} +15 -15
- package/dist/cli/{sessions-LSXO2OKX.mjs → sessions-DTXJKRP4.mjs} +6 -6
- package/dist/cli/sessions-JJZMQSH4.js +23 -0
- package/dist/cli/{settings-YGYRDPOK.mjs → settings-74B6UOS4.mjs} +12 -12
- package/dist/cli/{settings-VZI675JG.js → settings-EYSDZE37.js} +85 -85
- package/dist/cli/{setup-GXGXRWKN.mjs → setup-2QRZ36CH.mjs} +9 -9
- package/dist/cli/{setup-OJ33NOWK.js → setup-E7PVXBPL.js} +49 -49
- package/dist/cli/{skills-3VDYIFAX.mjs → skills-2WZ7N3UW.mjs} +7 -7
- package/dist/cli/skills-RIF2DCZI.js +37 -0
- package/dist/cli/tools-7VRQ4GSI.js +57 -0
- package/dist/cli/{tools-3TKEGDBP.mjs → tools-YK5SCUZD.mjs} +19 -19
- package/dist/cli/{update-K6A4QXTC.mjs → update-563YQK53.mjs} +9 -9
- package/dist/cli/update-CMZAIAES.js +37 -0
- package/dist/cli/{views-2PPIVWDK.mjs → views-ISNCRZUP.mjs} +6 -6
- package/dist/cli/{views-SGGO77XS.js → views-OLPS6TPG.js} +21 -21
- package/dist/cli/{workflow-JTG6QEFO.mjs → workflow-B3ZKU3OR.mjs} +7 -7
- package/dist/cli/{workflow-YSFOOTPB.js → workflow-CUSCTYMW.js} +17 -17
- 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-DGR7ZQJL.js +0 -44
- package/dist/cli/concurrent-runs-help-HEIDXAM2.js +0 -22
- package/dist/cli/describe-LBU4I6SU.js +0 -50
- package/dist/cli/git-JUSPUUOH.js +0 -26
- package/dist/cli/search-TAFMLK4K.js +0 -32
- package/dist/cli/sessions-RA6FBIHJ.js +0 -23
- package/dist/cli/skills-J5QVWKLQ.js +0 -37
- package/dist/cli/tools-3PQXQGXL.js +0 -57
- package/dist/cli/update-CA3DZ75E.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
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"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(); } } 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; }
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk6IKLITVHjs = require('./chunk-6IKLITVH.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAS5XGOZYjs = require('./chunk-AS5XGOZY.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,17 +13,17 @@ var _chunkDIZI5YGWjs = require('./chunk-DIZI5YGW.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkXFV353R2js = require('./chunk-XFV353R2.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
23
|
+
var _chunk636GD4IRjs = require('./chunk-636GD4IR.js');
|
|
24
|
+
require('./chunk-HEOM3FAC.js');
|
|
25
|
+
require('./chunk-HO76C7AE.js');
|
|
26
|
+
require('./chunk-737Y7QGT.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -35,16 +35,16 @@ require('./chunk-Z6KWSBOX.js');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkG4WPDCXAjs = require('./chunk-G4WPDCXA.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkEZIXKNKMjs = require('./chunk-EZIXKNKM.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
47
|
-
require('./chunk-
|
|
46
|
+
var _chunkDMPGJCNZjs = require('./chunk-DMPGJCNZ.js');
|
|
47
|
+
require('./chunk-TJCENACZ.js');
|
|
48
48
|
require('./chunk-E2G2DNAB.js');
|
|
49
49
|
require('./chunk-YGCKMI5P.js');
|
|
50
50
|
|
|
@@ -65,7 +65,7 @@ require('./chunk-YGCKMI5P.js');
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var _chunkEV3OPDHFjs = require('./chunk-EV3OPDHF.js');
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
@@ -73,19 +73,19 @@ var _chunkIZK2BLBWjs = require('./chunk-IZK2BLBW.js');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunkAO56MZ7Djs = require('./chunk-AO56MZ7D.js');
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkKNCNFL76js = require('./chunk-KNCNFL76.js');
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
85
85
|
require('./chunk-XNYIZMNQ.js');
|
|
86
86
|
require('./chunk-LFQJW4S2.js');
|
|
87
87
|
require('./chunk-CFJFUVX2.js');
|
|
88
|
-
require('./chunk-
|
|
88
|
+
require('./chunk-2UM3I2MY.js');
|
|
89
89
|
require('./chunk-OG64RBAC.js');
|
|
90
90
|
require('./chunk-RLX5ZFNX.js');
|
|
91
91
|
require('./chunk-COGTRVWW.js');
|
|
@@ -166,68 +166,72 @@ var _os = require('os');
|
|
|
166
166
|
var COMMAND_GROUPS = [
|
|
167
167
|
{
|
|
168
168
|
names: ["auth"],
|
|
169
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
169
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-DXUHEL5I.js")))).registerAuthCommands
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
names: ["providers"],
|
|
173
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
173
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-PZGOI5CN.js")))).registerProviderCommands
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
names: ["integrations"],
|
|
177
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./integrations-
|
|
177
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./integrations-TYN2BSQ6.js")))).registerIntegrationsCommands
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
names: ["search"],
|
|
181
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
181
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-H57MZPLF.js")))).registerSearchCommand
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
names: ["describe"],
|
|
185
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
185
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-33PBWO5O.js")))).registerDescribeCommand
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
names: ["run"],
|
|
189
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
189
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-SNF23STR.js")))).registerRunCommand
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
names: ["tools"],
|
|
193
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
193
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-7VRQ4GSI.js")))).registerToolsCommands
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
names: ["executions"],
|
|
197
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
197
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-5H2RIWZ3.js")))).registerExecutionsCommands
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
names: ["plays", "runs"],
|
|
201
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
201
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-NWKHCHVZ.js")))).registerPlayCommands
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
names: ["sessions"],
|
|
205
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
205
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-JJZMQSH4.js")))).registerSessionsCommands
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
names: ["workflows"],
|
|
209
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
209
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-CUSCTYMW.js")))).registerWorkflowCommands
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
names: ["outcomes"],
|
|
213
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-
|
|
213
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-2FKZDJSQ.js")))).registerOutcomesCommands
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
names: ["views"],
|
|
217
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-
|
|
217
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-OLPS6TPG.js")))).registerViewsCommands
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
names: ["secrets"],
|
|
221
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
221
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-UXCIHG5I.js")))).registerSecretsCommands
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
names: ["mcp"],
|
|
225
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-
|
|
225
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-WMBOOTQL.js")))).registerMcpCommands
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
names: ["agents"],
|
|
229
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./agents-BCLO3KQJ.js")))).registerAgentsCommands
|
|
226
230
|
},
|
|
227
231
|
{
|
|
228
232
|
names: ["settings", "notifications"],
|
|
229
233
|
load: async () => {
|
|
230
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
234
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-EYSDZE37.js")));
|
|
231
235
|
return (p) => {
|
|
232
236
|
commands.registerSettingsCommands(p);
|
|
233
237
|
commands.registerNotificationCommands(p);
|
|
@@ -236,51 +240,51 @@ var COMMAND_GROUPS = [
|
|
|
236
240
|
},
|
|
237
241
|
{
|
|
238
242
|
names: ["billing"],
|
|
239
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
243
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-BF5LVXOM.js")))).registerBillingCommands
|
|
240
244
|
},
|
|
241
245
|
{
|
|
242
246
|
names: ["monitors"],
|
|
243
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
247
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-OOQVE7XR.js")))).registerMonitorsCommands
|
|
244
248
|
},
|
|
245
249
|
{
|
|
246
250
|
names: ["org"],
|
|
247
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
251
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-D2AMIVBS.js")))).registerOrgCommands
|
|
248
252
|
},
|
|
249
253
|
{
|
|
250
254
|
names: ["git", "projects", "deployments"],
|
|
251
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
255
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-2OPYEPYW.js")))).registerGitCommands
|
|
252
256
|
},
|
|
253
257
|
{
|
|
254
258
|
names: ["csv"],
|
|
255
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
259
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-RS7XHQ4P.js")))).registerCsvCommands
|
|
256
260
|
},
|
|
257
261
|
{
|
|
258
262
|
names: ["db"],
|
|
259
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
263
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-WFIVRPKY.js")))).registerDbCommands
|
|
260
264
|
},
|
|
261
265
|
{
|
|
262
266
|
names: ["feedback"],
|
|
263
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
267
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-UOI6UEGA.js")))).registerFeedbackCommands
|
|
264
268
|
},
|
|
265
269
|
{
|
|
266
270
|
names: ["enrich", "session", "backend"],
|
|
267
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
271
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-GXQHNLGJ.js")))).registerDeprecatedCommands
|
|
268
272
|
},
|
|
269
273
|
{
|
|
270
274
|
names: ["update"],
|
|
271
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
275
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-CMZAIAES.js")))).registerUpdateCommand
|
|
272
276
|
},
|
|
273
277
|
{
|
|
274
278
|
names: ["skills", "skills-auto-sync"],
|
|
275
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
279
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-RIF2DCZI.js")))).registerSkillsCommand
|
|
276
280
|
},
|
|
277
281
|
{
|
|
278
282
|
names: ["setup", "doctor"],
|
|
279
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
283
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-E7PVXBPL.js")))).registerSetupCommands
|
|
280
284
|
},
|
|
281
285
|
{
|
|
282
286
|
names: ["quickstart"],
|
|
283
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
287
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-LLWOC2GR.js")))).registerQuickstartCommands
|
|
284
288
|
}
|
|
285
289
|
];
|
|
286
290
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -306,8 +310,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
306
310
|
function createDeferredPlayRunMaintenance(input) {
|
|
307
311
|
return async () => {
|
|
308
312
|
try {
|
|
309
|
-
const skillsVersion =
|
|
310
|
-
const compatibility = await
|
|
313
|
+
const skillsVersion = _chunkAO56MZ7Djs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
314
|
+
const compatibility = await _chunk636GD4IRjs.traceCliSpan.call(void 0,
|
|
311
315
|
"cli.sdk_compatibility_deferred",
|
|
312
316
|
{
|
|
313
317
|
baseUrl: input.baseUrl,
|
|
@@ -315,24 +319,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
315
319
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
316
320
|
},
|
|
317
321
|
async () => {
|
|
318
|
-
const trusted =
|
|
322
|
+
const trusted = _chunkG4WPDCXAjs.readTrustedCleanCompatibility.call(void 0,
|
|
319
323
|
input.baseUrl,
|
|
320
324
|
"plays run",
|
|
321
325
|
skillsVersion
|
|
322
326
|
);
|
|
323
327
|
if (trusted) return { response: trusted, error: null };
|
|
324
|
-
return
|
|
328
|
+
return _chunkG4WPDCXAjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
325
329
|
command: "plays run",
|
|
326
330
|
skillsVersion,
|
|
327
331
|
persistCache: input.policy !== "off",
|
|
328
|
-
catalog:
|
|
332
|
+
catalog: _chunkXFV353R2js.compatibilityCatalog.call(void 0, input.command)
|
|
329
333
|
});
|
|
330
334
|
}
|
|
331
335
|
);
|
|
332
336
|
if (compatibility.error || !compatibility.response) return;
|
|
333
337
|
const automaticUpdate = compatibility.response.auto_update;
|
|
334
338
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
335
|
-
await
|
|
339
|
+
await _chunkXFV353R2js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
336
340
|
compatibility.response,
|
|
337
341
|
input.baseUrl,
|
|
338
342
|
input.policy
|
|
@@ -342,7 +346,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
342
346
|
compatibility.response,
|
|
343
347
|
"skills"
|
|
344
348
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
345
|
-
await
|
|
349
|
+
await _chunkG4WPDCXAjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
346
350
|
update: skillsUpdate,
|
|
347
351
|
mode: "detached"
|
|
348
352
|
});
|
|
@@ -370,8 +374,8 @@ var MAX_SESSIONS = 20;
|
|
|
370
374
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
371
375
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
372
376
|
}
|
|
373
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
374
|
-
const explicit =
|
|
377
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkKNCNFL76js.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
378
|
+
const explicit = _chunkDMPGJCNZjs.helpDetailFromArgv.call(void 0, argv);
|
|
375
379
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
376
380
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
377
381
|
const path = helpSeenPath(homeDir);
|
|
@@ -468,7 +472,7 @@ function shouldReport(stdout, stderr) {
|
|
|
468
472
|
}
|
|
469
473
|
function toolName(action) {
|
|
470
474
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
471
|
-
return typeof toolId === "string" ?
|
|
475
|
+
return typeof toolId === "string" ? _chunkEV3OPDHFjs.redactFailureText.call(void 0, toolId) : null;
|
|
472
476
|
}
|
|
473
477
|
function chunkText(chunk) {
|
|
474
478
|
if (typeof chunk === "string") return chunk;
|
|
@@ -499,14 +503,14 @@ function watch(stream) {
|
|
|
499
503
|
}
|
|
500
504
|
async function postCommandOutput(body) {
|
|
501
505
|
try {
|
|
502
|
-
const baseUrl =
|
|
503
|
-
const apiKey =
|
|
506
|
+
const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
507
|
+
const apiKey = _chunkAO56MZ7Djs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
504
508
|
if (!apiKey) return;
|
|
505
|
-
const agentSessionId =
|
|
509
|
+
const agentSessionId = _chunkKNCNFL76js.agentSessionIdFromEnvironment.call(void 0, );
|
|
506
510
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
507
511
|
method: "POST",
|
|
508
512
|
headers: {
|
|
509
|
-
...
|
|
513
|
+
..._chunkEV3OPDHFjs.failureReportHeaders.call(void 0, apiKey),
|
|
510
514
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
511
515
|
},
|
|
512
516
|
body: JSON.stringify(body),
|
|
@@ -522,14 +526,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
522
526
|
const stdoutWatch = watch(streams.stdout);
|
|
523
527
|
const stderrWatch = watch(streams.stderr);
|
|
524
528
|
return async (finished) => {
|
|
525
|
-
if (
|
|
529
|
+
if (_chunkEV3OPDHFjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
526
530
|
const [stdout, stderr] = await Promise.all([
|
|
527
531
|
stdoutWatch.settled(),
|
|
528
532
|
stderrWatch.settled()
|
|
529
533
|
]);
|
|
530
534
|
if (!shouldReport(stdout, stderr)) return;
|
|
531
535
|
await postCommandOutput({
|
|
532
|
-
command:
|
|
536
|
+
command: _chunkEV3OPDHFjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
533
537
|
tool: toolName(finished.action),
|
|
534
538
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
535
539
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -560,7 +564,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
560
564
|
function printUsageErrorJson(code, message, commandPath) {
|
|
561
565
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
562
566
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
563
|
-
|
|
567
|
+
_chunkEV3OPDHFjs.printJson.call(void 0, {
|
|
564
568
|
ok: false,
|
|
565
569
|
error: {
|
|
566
570
|
code,
|
|
@@ -618,7 +622,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
618
622
|
);
|
|
619
623
|
}
|
|
620
624
|
async function runPlayRunnerHealthCheck() {
|
|
621
|
-
|
|
625
|
+
_chunkAO56MZ7Djs.resolveConfig.call(void 0, );
|
|
622
626
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
623
627
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
624
628
|
try {
|
|
@@ -648,7 +652,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
648
652
|
});
|
|
649
653
|
let exitCode = 1;
|
|
650
654
|
try {
|
|
651
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
655
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-NWKHCHVZ.js")));
|
|
652
656
|
exitCode = await handlePlayRun([
|
|
653
657
|
file,
|
|
654
658
|
"--input",
|
|
@@ -688,7 +692,7 @@ function preflightErrorMessage(error) {
|
|
|
688
692
|
return error instanceof Error ? error.message : String(error);
|
|
689
693
|
}
|
|
690
694
|
async function runPreflightCheck() {
|
|
691
|
-
const baseUrl =
|
|
695
|
+
const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
692
696
|
const healthController = new AbortController();
|
|
693
697
|
const healthTimeout = setTimeout(
|
|
694
698
|
() => healthController.abort(),
|
|
@@ -705,14 +709,14 @@ async function runPreflightCheck() {
|
|
|
705
709
|
}).catch((error) => ({
|
|
706
710
|
status: "unreachable",
|
|
707
711
|
version: null,
|
|
708
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
712
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkKNCNFL76js.connectionFailureMessage.call(void 0,
|
|
709
713
|
baseUrl,
|
|
710
714
|
error instanceof Error ? error : new Error(String(error))
|
|
711
715
|
)
|
|
712
716
|
})).finally(() => clearTimeout(healthTimeout));
|
|
713
|
-
const apiKey =
|
|
714
|
-
const http = apiKey ? new (0,
|
|
715
|
-
|
|
717
|
+
const apiKey = _chunkAO56MZ7Djs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
718
|
+
const http = apiKey ? new (0, _chunkAO56MZ7Djs.HttpClient)(
|
|
719
|
+
_chunkAO56MZ7Djs.resolveConfig.call(void 0, {
|
|
716
720
|
baseUrl,
|
|
717
721
|
apiKey,
|
|
718
722
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -757,7 +761,7 @@ async function runPreflightCheck() {
|
|
|
757
761
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
758
762
|
return {
|
|
759
763
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
760
|
-
cli_version:
|
|
764
|
+
cli_version: _chunkKNCNFL76js.SDK_VERSION,
|
|
761
765
|
host: baseUrl,
|
|
762
766
|
health: {
|
|
763
767
|
status: healthResult.status,
|
|
@@ -784,7 +788,7 @@ async function runPreflightCheck() {
|
|
|
784
788
|
{
|
|
785
789
|
title: "preflight",
|
|
786
790
|
lines: [
|
|
787
|
-
`cli: ${
|
|
791
|
+
`cli: ${_chunkKNCNFL76js.SDK_VERSION}`,
|
|
788
792
|
`host: ${baseUrl}`,
|
|
789
793
|
`health: ${healthResult.status}`,
|
|
790
794
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -811,12 +815,12 @@ function printPreflightHuman(data) {
|
|
|
811
815
|
}
|
|
812
816
|
async function newerCliCommandHint(baseUrl, command) {
|
|
813
817
|
if (!command.trim()) return null;
|
|
814
|
-
const { response, error } = await
|
|
818
|
+
const { response, error } = await _chunkG4WPDCXAjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
815
819
|
if (error || !response) return null;
|
|
816
820
|
const introduced = response.command_introduced_in;
|
|
817
821
|
if (introduced) {
|
|
818
822
|
return [
|
|
819
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
823
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkKNCNFL76js.SDK_VERSION}.`,
|
|
820
824
|
` ${introduced.reason}`,
|
|
821
825
|
` Update with: ${response.update_command}`,
|
|
822
826
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -825,36 +829,36 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
825
829
|
if (!response.update_required) return null;
|
|
826
830
|
return [
|
|
827
831
|
response.message,
|
|
828
|
-
` Installed: ${
|
|
832
|
+
` Installed: ${_chunkKNCNFL76js.SDK_VERSION}. Run: ${response.update_command}`,
|
|
829
833
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
830
834
|
].join("\n");
|
|
831
835
|
}
|
|
832
836
|
async function runMain(ensureTransport, onAction, suppressOutputReport) {
|
|
833
837
|
const mainStartedAt = Date.now();
|
|
834
|
-
|
|
838
|
+
_chunkEV3OPDHFjs.installJsonStderrGuard.call(void 0, );
|
|
835
839
|
let rootHelpStatus = "";
|
|
836
840
|
let concurrentRunsHelpStatus = "";
|
|
837
841
|
let commandFailed = false;
|
|
838
842
|
const deferredMaintenance = { inlinePlay: null };
|
|
839
|
-
|
|
843
|
+
_chunk636GD4IRjs.recordCliTrace.call(void 0, {
|
|
840
844
|
phase: "cli.main_start",
|
|
841
845
|
argv: process.argv.slice(2)
|
|
842
846
|
});
|
|
843
847
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
844
|
-
const progress = printStartupPhase ?
|
|
848
|
+
const progress = printStartupPhase ? _chunkEZIXKNKMjs.createCliProgress.call(void 0, true) : null;
|
|
845
849
|
if (printStartupPhase) {
|
|
846
850
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
847
851
|
}
|
|
848
852
|
const program = new (0, _commander.Command)();
|
|
849
853
|
program.name("deepline").description(
|
|
850
854
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
851
|
-
).version(
|
|
855
|
+
).version(_chunkKNCNFL76js.SDK_VERSION, "-v, --version", "Show version").option(
|
|
852
856
|
"--workspace <workspace-id>",
|
|
853
857
|
"Act in this workspace (default: DEEPLINE_WORKSPACE_ID, else the workspace saved by org workspace set, else the org's default workspace)"
|
|
854
858
|
).option(
|
|
855
859
|
"--maintenance <policy>",
|
|
856
860
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
857
|
-
|
|
861
|
+
_chunk636GD4IRjs.parseCliMaintenancePolicy,
|
|
858
862
|
"configured"
|
|
859
863
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
860
864
|
"beforeAll",
|
|
@@ -903,9 +907,9 @@ Exit codes:
|
|
|
903
907
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
904
908
|
`
|
|
905
909
|
).addHelpText("afterAll", ({ command }) => {
|
|
906
|
-
const key =
|
|
910
|
+
const key = _chunkDMPGJCNZjs.commandDocKey.call(void 0, command);
|
|
907
911
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
908
|
-
const explanation =
|
|
912
|
+
const explanation = _chunkDMPGJCNZjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
909
913
|
return detail !== "quiet" && concurrentRunsHelpStatus ? `${explanation}${concurrentRunsHelpStatus}` : explanation;
|
|
910
914
|
});
|
|
911
915
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
@@ -914,7 +918,7 @@ Exit codes:
|
|
|
914
918
|
path: compatibilityCommand,
|
|
915
919
|
args: actionCommand.processedArgs
|
|
916
920
|
});
|
|
917
|
-
const maintenance =
|
|
921
|
+
const maintenance = _chunk636GD4IRjs.resolveCliMaintenancePolicy.call(void 0,
|
|
918
922
|
actionCommand.optsWithGlobals()
|
|
919
923
|
);
|
|
920
924
|
const workspace = actionCommand.optsWithGlobals().workspace;
|
|
@@ -924,19 +928,19 @@ Exit codes:
|
|
|
924
928
|
if (actionCommand.name() !== "version") {
|
|
925
929
|
await ensureTransport();
|
|
926
930
|
}
|
|
927
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
931
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkG4WPDCXAjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || compatibilityCommand === "settings autoupdate" || compatibilityCommand.startsWith("settings autoupdate ") || compatibilityCommand === "settings skills-sync" || isDeprecatedCommandInvocation() || compatibilityCommand === "settings feedback" || compatibilityCommand.startsWith("settings feedback ") || ["feedback send", "sessions send", "session send"].includes(
|
|
928
932
|
compatibilityCommand
|
|
929
|
-
) &&
|
|
933
|
+
) && _chunkAS5XGOZYjs.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
|
|
930
934
|
return;
|
|
931
935
|
}
|
|
932
936
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
933
937
|
if (isToolExecuteCommand) {
|
|
934
|
-
|
|
938
|
+
_chunkXFV353R2js.beginToolExecuteCommand.call(void 0, );
|
|
935
939
|
}
|
|
936
940
|
if (isToolExecuteCommand) {
|
|
937
|
-
const baseUrl =
|
|
938
|
-
if (maintenance !== "off")
|
|
939
|
-
|
|
941
|
+
const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
942
|
+
if (maintenance !== "off") _chunkG4WPDCXAjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
943
|
+
_chunk636GD4IRjs.recordCliTrace.call(void 0, {
|
|
940
944
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
941
945
|
baseUrl,
|
|
942
946
|
command: compatibilityCommand
|
|
@@ -944,9 +948,9 @@ Exit codes:
|
|
|
944
948
|
return;
|
|
945
949
|
}
|
|
946
950
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
947
|
-
if (!playDryRun &&
|
|
951
|
+
if (!playDryRun && _chunk6IKLITVHjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
948
952
|
if (maintenance !== "off") {
|
|
949
|
-
const baseUrl =
|
|
953
|
+
const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
950
954
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
951
955
|
baseUrl,
|
|
952
956
|
command: actionCommand,
|
|
@@ -955,27 +959,27 @@ Exit codes:
|
|
|
955
959
|
}
|
|
956
960
|
return;
|
|
957
961
|
}
|
|
958
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
962
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkXFV353R2js.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
959
963
|
if (printStartupPhase) {
|
|
960
964
|
_optionalChain([progress, 'optionalAccess', _18 => _18.phase, 'call', _19 => _19("checking sdk compatibility")]);
|
|
961
965
|
}
|
|
962
966
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
963
|
-
const baseUrl =
|
|
964
|
-
if (maintenance !== "off")
|
|
967
|
+
const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
968
|
+
if (maintenance !== "off") _chunkG4WPDCXAjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
965
969
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
966
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
967
|
-
const trusted = isToolExecuteCommand ? null :
|
|
970
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkAO56MZ7Djs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
971
|
+
const trusted = isToolExecuteCommand ? null : _chunkG4WPDCXAjs.readTrustedCleanCompatibility.call(void 0,
|
|
968
972
|
baseUrl,
|
|
969
973
|
compatibilityCommand,
|
|
970
974
|
skillsVersion
|
|
971
975
|
);
|
|
972
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
976
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkG4WPDCXAjs.readFreshCleanCompatibility.call(void 0,
|
|
973
977
|
baseUrl,
|
|
974
978
|
compatibilityCommand,
|
|
975
979
|
skillsVersion
|
|
976
980
|
) !== null;
|
|
977
981
|
if (trusted) {
|
|
978
|
-
|
|
982
|
+
_chunk636GD4IRjs.recordCliTrace.call(void 0, {
|
|
979
983
|
phase: "cli.sdk_compatibility",
|
|
980
984
|
ms: 0,
|
|
981
985
|
ok: true,
|
|
@@ -985,7 +989,7 @@ Exit codes:
|
|
|
985
989
|
source: "trusted_cache"
|
|
986
990
|
});
|
|
987
991
|
}
|
|
988
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
992
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunk636GD4IRjs.traceCliSpan.call(void 0,
|
|
989
993
|
"cli.sdk_compatibility",
|
|
990
994
|
{
|
|
991
995
|
baseUrl,
|
|
@@ -993,12 +997,12 @@ Exit codes:
|
|
|
993
997
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
994
998
|
fastDeadline
|
|
995
999
|
},
|
|
996
|
-
() =>
|
|
1000
|
+
() => _chunkG4WPDCXAjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
997
1001
|
command: compatibilityCommand,
|
|
998
1002
|
skillsVersion,
|
|
999
1003
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
1000
|
-
catalog:
|
|
1001
|
-
...fastDeadline ? { timeoutMs:
|
|
1004
|
+
catalog: _chunkXFV353R2js.compatibilityCatalog.call(void 0, actionCommand),
|
|
1005
|
+
...fastDeadline ? { timeoutMs: _chunkG4WPDCXAjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
1002
1006
|
})
|
|
1003
1007
|
);
|
|
1004
1008
|
if (compatibility.error) {
|
|
@@ -1009,7 +1013,7 @@ Exit codes:
|
|
|
1009
1013
|
response: null
|
|
1010
1014
|
};
|
|
1011
1015
|
}
|
|
1012
|
-
const relaunched = await
|
|
1016
|
+
const relaunched = await _chunkXFV353R2js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
1013
1017
|
compatibility.response,
|
|
1014
1018
|
baseUrl,
|
|
1015
1019
|
maintenance
|
|
@@ -1023,14 +1027,14 @@ Exit codes:
|
|
|
1023
1027
|
};
|
|
1024
1028
|
}
|
|
1025
1029
|
const policy = compatibility.response;
|
|
1026
|
-
const jsonOutput =
|
|
1027
|
-
|
|
1030
|
+
const jsonOutput = _chunkEV3OPDHFjs.isJsonOutputMode.call(void 0, );
|
|
1031
|
+
_chunkG4WPDCXAjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1028
1032
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1029
|
-
|
|
1033
|
+
_chunkXFV353R2js.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkG4WPDCXAjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1030
1034
|
});
|
|
1031
1035
|
const advisory = compatibility.response;
|
|
1032
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1033
|
-
|
|
1036
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkG4WPDCXAjs.isCiEnvironment.call(void 0, ) && !_chunkXFV353R2js.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1037
|
+
_chunkEV3OPDHFjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1034
1038
|
}
|
|
1035
1039
|
return {
|
|
1036
1040
|
shouldContinue: true,
|
|
@@ -1047,10 +1051,10 @@ Exit codes:
|
|
|
1047
1051
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1048
1052
|
await runStartupStage(
|
|
1049
1053
|
"agent skills sync",
|
|
1050
|
-
() =>
|
|
1054
|
+
() => _chunk636GD4IRjs.traceCliSpan.call(void 0,
|
|
1051
1055
|
"cli.sdk_skills_sync",
|
|
1052
1056
|
{ baseUrl: startup.baseUrl },
|
|
1053
|
-
() =>
|
|
1057
|
+
() => _chunkG4WPDCXAjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1054
1058
|
update: skillsUpdate,
|
|
1055
1059
|
mode: "detached"
|
|
1056
1060
|
})
|
|
@@ -1064,16 +1068,16 @@ Exit codes:
|
|
|
1064
1068
|
);
|
|
1065
1069
|
const carriesFeedback = requestedCommand === "feedback" || requestedCommand === "session" || requestedCommand === "sessions";
|
|
1066
1070
|
if (carriesFeedback) suppressOutputReport();
|
|
1067
|
-
const commandRegistrationStartedAt =
|
|
1071
|
+
const commandRegistrationStartedAt = _chunk636GD4IRjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1068
1072
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1069
1073
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1070
|
-
|
|
1074
|
+
_chunk636GD4IRjs.recordCliTrace.call(void 0, {
|
|
1071
1075
|
phase: "cli.command_registration",
|
|
1072
1076
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1073
1077
|
});
|
|
1074
1078
|
}
|
|
1075
1079
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1076
|
-
if (
|
|
1080
|
+
if (_chunkEV3OPDHFjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1077
1081
|
preflight.addHelpText(
|
|
1078
1082
|
"after",
|
|
1079
1083
|
`
|
|
@@ -1089,8 +1093,8 @@ Examples:
|
|
|
1089
1093
|
`
|
|
1090
1094
|
).action(async (options) => {
|
|
1091
1095
|
const data = await runPreflightCheck();
|
|
1092
|
-
if (
|
|
1093
|
-
|
|
1096
|
+
if (_chunkEV3OPDHFjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1097
|
+
_chunkEV3OPDHFjs.printJson.call(void 0, data);
|
|
1094
1098
|
} else {
|
|
1095
1099
|
printPreflightHuman(data);
|
|
1096
1100
|
}
|
|
@@ -1115,7 +1119,7 @@ Examples:
|
|
|
1115
1119
|
).action(async (options) => {
|
|
1116
1120
|
if (options.playRunner) {
|
|
1117
1121
|
const data = await runPlayRunnerHealthCheck();
|
|
1118
|
-
|
|
1122
|
+
_chunkEV3OPDHFjs.printCommandEnvelope.call(void 0, data, {
|
|
1119
1123
|
json: options.json,
|
|
1120
1124
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1121
1125
|
`
|
|
@@ -1123,15 +1127,15 @@ Examples:
|
|
|
1123
1127
|
return;
|
|
1124
1128
|
}
|
|
1125
1129
|
try {
|
|
1126
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1127
|
-
const baseUrl =
|
|
1130
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-DXUHEL5I.js")));
|
|
1131
|
+
const baseUrl = _chunkAO56MZ7Djs.resolveBaseUrlOnly.call(void 0, );
|
|
1128
1132
|
const [{ status, data }, banner] = await Promise.all([
|
|
1129
1133
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1130
1134
|
readStatusBanner(baseUrl)
|
|
1131
1135
|
]);
|
|
1132
1136
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1133
1137
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1134
|
-
|
|
1138
|
+
_chunkEV3OPDHFjs.printCommandEnvelope.call(void 0,
|
|
1135
1139
|
{ ...data, status_banner: banner },
|
|
1136
1140
|
{
|
|
1137
1141
|
json: options.json,
|
|
@@ -1159,16 +1163,16 @@ Examples:
|
|
|
1159
1163
|
`
|
|
1160
1164
|
).action((options) => {
|
|
1161
1165
|
if (options.json) {
|
|
1162
|
-
|
|
1166
|
+
_chunkEV3OPDHFjs.printCompactJson.call(void 0, { version: _chunkKNCNFL76js.SDK_VERSION });
|
|
1163
1167
|
return;
|
|
1164
1168
|
}
|
|
1165
|
-
process.stdout.write(`deepline ${
|
|
1169
|
+
process.stdout.write(`deepline ${_chunkKNCNFL76js.SDK_VERSION}
|
|
1166
1170
|
`);
|
|
1167
1171
|
});
|
|
1168
1172
|
if (process.argv.slice(2).length === 0) {
|
|
1169
1173
|
program.outputHelp({ error: true });
|
|
1170
1174
|
console.error("\nerror: missing command (see usage above)");
|
|
1171
|
-
|
|
1175
|
+
_chunk636GD4IRjs.recordCliTrace.call(void 0, {
|
|
1172
1176
|
phase: "cli.main_total",
|
|
1173
1177
|
ms: Date.now() - mainStartedAt,
|
|
1174
1178
|
ok: false,
|
|
@@ -1180,16 +1184,16 @@ Examples:
|
|
|
1180
1184
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1181
1185
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1182
1186
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1183
|
-
if (!
|
|
1184
|
-
const baseUrl =
|
|
1187
|
+
if (!_chunkEV3OPDHFjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1188
|
+
const baseUrl = _chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, );
|
|
1185
1189
|
await ensureTransport();
|
|
1186
1190
|
const versionHint = await newerCliCommandHint(
|
|
1187
1191
|
baseUrl,
|
|
1188
1192
|
requestedTopLevelCommand
|
|
1189
1193
|
);
|
|
1190
|
-
if (
|
|
1194
|
+
if (_chunkEV3OPDHFjs.isJsonOutputMode.call(void 0, )) {
|
|
1191
1195
|
if (versionHint) {
|
|
1192
|
-
|
|
1196
|
+
_chunkEV3OPDHFjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1193
1197
|
}
|
|
1194
1198
|
printUsageErrorJson(
|
|
1195
1199
|
"commander.unknownCommand",
|
|
@@ -1211,26 +1215,26 @@ Examples:
|
|
|
1211
1215
|
const helpArgs = process.argv.slice(2);
|
|
1212
1216
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1213
1217
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1214
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1215
|
-
rootHelpStatus = `Version: ${
|
|
1218
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-DXUHEL5I.js")));
|
|
1219
|
+
rootHelpStatus = `Version: ${_chunkKNCNFL76js.SDK_VERSION}
|
|
1216
1220
|
${await authStatusLine()}
|
|
1217
1221
|
`;
|
|
1218
1222
|
}
|
|
1219
1223
|
if ((helpArgs.includes("--help") || helpArgs.includes("-h")) && helpPositionals.length >= 2) {
|
|
1220
|
-
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-
|
|
1224
|
+
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-JLWY54WL.js")));
|
|
1221
1225
|
if (CONCURRENT_RUNS_HELP_COMMANDS.has(helpPositionals.slice(0, 2).join(" "))) {
|
|
1222
1226
|
await ensureTransport();
|
|
1223
1227
|
concurrentRunsHelpStatus = await read();
|
|
1224
1228
|
}
|
|
1225
1229
|
}
|
|
1226
1230
|
await program.parseAsync(process.argv);
|
|
1227
|
-
|
|
1231
|
+
_chunk636GD4IRjs.recordCliTrace.call(void 0, {
|
|
1228
1232
|
phase: "cli.main_total",
|
|
1229
1233
|
ms: Date.now() - mainStartedAt,
|
|
1230
1234
|
ok: true
|
|
1231
1235
|
});
|
|
1232
1236
|
if (!carriesFeedback) {
|
|
1233
|
-
await
|
|
1237
|
+
await _chunkEV3OPDHFjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1234
1238
|
argv: process.argv.slice(2),
|
|
1235
1239
|
startedAtMs: mainStartedAt,
|
|
1236
1240
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1239,14 +1243,14 @@ ${await authStatusLine()}
|
|
|
1239
1243
|
} catch (error) {
|
|
1240
1244
|
commandFailed = true;
|
|
1241
1245
|
const commanderError = asCommanderError(error);
|
|
1242
|
-
|
|
1246
|
+
_chunk636GD4IRjs.recordCliTrace.call(void 0, {
|
|
1243
1247
|
phase: "cli.main_total",
|
|
1244
1248
|
ms: Date.now() - mainStartedAt,
|
|
1245
1249
|
ok: false,
|
|
1246
1250
|
error: error instanceof Error ? error.message : String(error)
|
|
1247
1251
|
});
|
|
1248
1252
|
_optionalChain([progress, 'optionalAccess', _22 => _22.fail, 'call', _23 => _23()]);
|
|
1249
|
-
const wantsJson =
|
|
1253
|
+
const wantsJson = _chunkEV3OPDHFjs.isJsonOutputMode.call(void 0, );
|
|
1250
1254
|
if (commanderError) {
|
|
1251
1255
|
const grammarError = [
|
|
1252
1256
|
"commander.unknownCommand",
|
|
@@ -1257,12 +1261,12 @@ ${await authStatusLine()}
|
|
|
1257
1261
|
if (grammarError) {
|
|
1258
1262
|
await ensureTransport();
|
|
1259
1263
|
const versionHint = await newerCliCommandHint(
|
|
1260
|
-
|
|
1264
|
+
_chunkAO56MZ7Djs.autoDetectBaseUrl.call(void 0, ),
|
|
1261
1265
|
commandPath
|
|
1262
1266
|
);
|
|
1263
1267
|
if (wantsJson) {
|
|
1264
1268
|
if (versionHint) {
|
|
1265
|
-
|
|
1269
|
+
_chunkEV3OPDHFjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1266
1270
|
}
|
|
1267
1271
|
} else {
|
|
1268
1272
|
if (versionHint) console.error(versionHint);
|
|
@@ -1282,43 +1286,43 @@ ${await authStatusLine()}
|
|
|
1282
1286
|
return;
|
|
1283
1287
|
} else if (wantsJson) {
|
|
1284
1288
|
if (error instanceof _chunk6VLFQZK6js.AuthError) {
|
|
1285
|
-
|
|
1289
|
+
_chunkEV3OPDHFjs.addJsonNotice.call(void 0, {
|
|
1286
1290
|
code: "auth_required",
|
|
1287
1291
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1288
1292
|
});
|
|
1289
1293
|
}
|
|
1290
|
-
const providerConcurrency =
|
|
1294
|
+
const providerConcurrency = _chunkEV3OPDHFjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1291
1295
|
if (providerConcurrency) {
|
|
1292
|
-
|
|
1296
|
+
_chunkEV3OPDHFjs.addJsonNotice.call(void 0, {
|
|
1293
1297
|
code: "provider_concurrency",
|
|
1294
1298
|
message: providerConcurrency
|
|
1295
1299
|
});
|
|
1296
1300
|
}
|
|
1297
|
-
const payload =
|
|
1298
|
-
|
|
1301
|
+
const payload = _chunkEV3OPDHFjs.errorToJsonPayload.call(void 0, error);
|
|
1302
|
+
_chunkEV3OPDHFjs.printJson.call(void 0, {
|
|
1299
1303
|
...payload,
|
|
1300
1304
|
// The envelope names the code the process exits with, so a caller
|
|
1301
1305
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1302
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1306
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkEV3OPDHFjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1303
1307
|
...error instanceof _chunk6VLFQZK6js.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1304
1308
|
});
|
|
1305
1309
|
} else if (error instanceof Error) {
|
|
1306
1310
|
console.error(`Error: ${error.message}`);
|
|
1307
|
-
const toolDiagnostic =
|
|
1311
|
+
const toolDiagnostic = _chunkEV3OPDHFjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1308
1312
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1309
1313
|
if (error instanceof _chunk6VLFQZK6js.AuthError) {
|
|
1310
1314
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1311
1315
|
}
|
|
1312
|
-
const providerConcurrency =
|
|
1316
|
+
const providerConcurrency = _chunkEV3OPDHFjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1313
1317
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1314
1318
|
} else {
|
|
1315
1319
|
console.error(`Error: ${String(error)}`);
|
|
1316
1320
|
}
|
|
1317
1321
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1318
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1322
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkEV3OPDHFjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1319
1323
|
process.exitCode = failureExitCode;
|
|
1320
1324
|
if (!carriesFeedback) {
|
|
1321
|
-
await
|
|
1325
|
+
await _chunkEV3OPDHFjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1322
1326
|
argv: process.argv.slice(2),
|
|
1323
1327
|
startedAtMs: mainStartedAt,
|
|
1324
1328
|
exitCode: failureExitCode,
|
|
@@ -1326,13 +1330,13 @@ ${await authStatusLine()}
|
|
|
1326
1330
|
});
|
|
1327
1331
|
}
|
|
1328
1332
|
} finally {
|
|
1329
|
-
|
|
1333
|
+
_chunkXFV353R2js.finishToolExecuteCommand.call(void 0, );
|
|
1330
1334
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1331
1335
|
deferredMaintenance.inlinePlay = null;
|
|
1332
1336
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1333
1337
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _24 => _24()]);
|
|
1334
1338
|
}
|
|
1335
|
-
await
|
|
1339
|
+
await _chunkXFV353R2js.runDeferredAutoUpdate.call(void 0, );
|
|
1336
1340
|
}
|
|
1337
1341
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1338
1342
|
}
|
|
@@ -1340,7 +1344,7 @@ async function main() {
|
|
|
1340
1344
|
let disposeTransport;
|
|
1341
1345
|
const ensureTransport = async () => {
|
|
1342
1346
|
if (disposeTransport) return;
|
|
1343
|
-
const transportStartedAt =
|
|
1347
|
+
const transportStartedAt = _chunk636GD4IRjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1344
1348
|
const hasProxy = [
|
|
1345
1349
|
"HTTP_PROXY",
|
|
1346
1350
|
"http_proxy",
|
|
@@ -1352,7 +1356,7 @@ async function main() {
|
|
|
1352
1356
|
disposeTransport = configureCliTransport();
|
|
1353
1357
|
}
|
|
1354
1358
|
if (transportStartedAt !== void 0) {
|
|
1355
|
-
|
|
1359
|
+
_chunk636GD4IRjs.recordCliTrace.call(void 0, {
|
|
1356
1360
|
phase: "cli.transport_setup",
|
|
1357
1361
|
ms: performance.now() - transportStartedAt
|
|
1358
1362
|
});
|
|
@@ -1375,9 +1379,9 @@ async function main() {
|
|
|
1375
1379
|
skipOutputReport = true;
|
|
1376
1380
|
}
|
|
1377
1381
|
);
|
|
1378
|
-
const silentFailure =
|
|
1382
|
+
const silentFailure = _chunkEV3OPDHFjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1379
1383
|
if (silentFailure) {
|
|
1380
|
-
|
|
1384
|
+
_chunkEV3OPDHFjs.printJson.call(void 0, {
|
|
1381
1385
|
ok: false,
|
|
1382
1386
|
exitCode: Number(process.exitCode),
|
|
1383
1387
|
error: { code: "CLI_ERROR", message: silentFailure }
|