deepline 0.3.540 → 0.3.542
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +7 -1
- package/dist/cli/auth-2PH6RSKL.js +43 -0
- package/dist/cli/{auth-32TURPHH.mjs → auth-IGBGOB4E.mjs} +5 -5
- package/dist/cli/{billing-6433M4BX.js → billing-IB2TWE74.js} +92 -92
- package/dist/cli/{billing-NSH3NOHV.mjs → billing-N37W2I62.mjs} +8 -8
- package/dist/cli/{chunk-XYM3SQZN.mjs → chunk-2VRKBHMD.mjs} +1 -1
- package/dist/cli/{chunk-FR3AII3W.mjs → chunk-2ZGSHVZE.mjs} +2 -2
- package/dist/cli/{chunk-SINNEITW.mjs → chunk-3LEUSRV3.mjs} +4 -4
- package/dist/cli/{chunk-M4DB6BBP.js → chunk-3XXXMSSP.js} +44 -44
- package/dist/cli/{chunk-KN6ELDPL.mjs → chunk-46V7QSJE.mjs} +2 -2
- package/dist/cli/{chunk-XIIQNSWA.js → chunk-4I47NCRI.js} +8 -8
- package/dist/cli/{chunk-B6UZUQ2O.mjs → chunk-5APOJWJF.mjs} +1 -1
- package/dist/cli/{chunk-MLDLN6WG.js → chunk-5CAVURVS.js} +53 -53
- package/dist/cli/{chunk-UJYX4VLX.js → chunk-6SLEHAXX.js} +5 -5
- package/dist/cli/{chunk-IYQZVEV4.mjs → chunk-6WQDHEVF.mjs} +5 -5
- package/dist/cli/{chunk-S3ULSGFH.mjs → chunk-ACVTMAW4.mjs} +2 -2
- package/dist/cli/{chunk-WHYNYL3M.js → chunk-AKY7KZRJ.js} +6 -6
- package/dist/cli/{chunk-N6DMKVKO.js → chunk-AUFE624T.js} +10 -10
- package/dist/cli/{chunk-AOYW62XO.js → chunk-AWLPERL3.js} +3 -3
- package/dist/cli/{chunk-Y6647AIY.mjs → chunk-B5NP3SHX.mjs} +2 -2
- package/dist/cli/{chunk-J3TAEPFA.js → chunk-CFZCRM6R.js} +26 -26
- package/dist/cli/{chunk-XL3CEPZA.js → chunk-D44DP4KJ.js} +9 -9
- package/dist/cli/{chunk-TNUM4DFA.js → chunk-D7GWEBMF.js} +7 -7
- package/dist/cli/{chunk-AB6DFHGL.mjs → chunk-DADH3WPE.mjs} +2 -2
- package/dist/cli/{chunk-ZTJQKHLM.js → chunk-DMXLZ57N.js} +2 -2
- package/dist/cli/{chunk-BGBRA2S6.js → chunk-DNGACHFX.js} +22 -22
- package/dist/cli/{chunk-VAOGM5VS.js → chunk-E7B73LGT.js} +19 -19
- package/dist/cli/{chunk-SXVYFOBG.mjs → chunk-EGOCGWCI.mjs} +3 -3
- package/dist/cli/{chunk-AJVK4XC5.js → chunk-EHLCWGWN.js} +4 -4
- package/dist/cli/{chunk-SGMDRYAD.mjs → chunk-FFDZT255.mjs} +1 -1
- package/dist/cli/{chunk-BNNGM2E5.js → chunk-FGGPCAGC.js} +15 -15
- package/dist/cli/{chunk-MH22LQKZ.mjs → chunk-FX4OWXKK.mjs} +2 -2
- package/dist/cli/{chunk-WDHHQEWQ.js → chunk-GM73TZ2W.js} +41 -41
- package/dist/cli/{chunk-LXLCQP4A.js → chunk-HAITCPCG.js} +16 -16
- package/dist/cli/{chunk-JPU5YLQG.mjs → chunk-I5EAIFGO.mjs} +1 -1
- package/dist/cli/{chunk-2U4VACUA.js → chunk-JPT6VE54.js} +2 -2
- package/dist/cli/{chunk-HKWJD45V.js → chunk-LFMQVSEI.js} +5 -5
- package/dist/cli/{chunk-EXAXDEIF.js → chunk-NDNEARE3.js} +13 -13
- package/dist/cli/{chunk-WCM64BRH.mjs → chunk-NLZHLEHD.mjs} +5 -5
- package/dist/cli/{chunk-PJOMRUFP.mjs → chunk-ORA5TMML.mjs} +5 -5
- package/dist/cli/{chunk-BD3VAPB4.mjs → chunk-P4MDTBAA.mjs} +1 -1
- package/dist/cli/{chunk-ZJFU2COM.mjs → chunk-PLIKPGOO.mjs} +5 -5
- package/dist/cli/{chunk-H6IA6XRE.js → chunk-Q7WDXLYO.js} +2 -2
- package/dist/cli/{chunk-Z2OYTXLK.mjs → chunk-QONO7FRF.mjs} +1 -1
- package/dist/cli/{chunk-DV3ESQ4X.js → chunk-QXNOSCYL.js} +1 -1
- package/dist/cli/{chunk-BZVVSUE2.mjs → chunk-SCLP5H4P.mjs} +1 -1
- package/dist/cli/{chunk-TZVW5JH3.mjs → chunk-SWO5QOXB.mjs} +1 -1
- package/dist/cli/{chunk-37VFUQMU.mjs → chunk-TT4JUUC3.mjs} +2 -2
- package/dist/cli/{chunk-LPMI4CYW.js → chunk-TTBHOMAA.js} +107 -107
- package/dist/cli/{chunk-MVIVF4BW.js → chunk-VHJUH3TB.js} +3 -3
- package/dist/cli/{chunk-KFAJYK2N.mjs → chunk-WACIN4PR.mjs} +3 -3
- package/dist/cli/{chunk-3GVIVIER.js → chunk-WL2GUGNZ.js} +5 -5
- package/dist/cli/{chunk-JGFGWWOF.mjs → chunk-YK7NNZD4.mjs} +10 -10
- package/dist/cli/{chunk-DWE2VE5I.mjs → chunk-Z5YRKX7K.mjs} +1 -1
- package/dist/cli/{chunk-HLHDCFKL.mjs → chunk-ZVNYBQ77.mjs} +4 -4
- package/dist/cli/concurrent-runs-help-BNIDBKML.js +21 -0
- package/dist/cli/{concurrent-runs-help-DU5STFGB.mjs → concurrent-runs-help-DIBGMEIN.mjs} +6 -6
- package/dist/cli/{csv-OJCMBODT.mjs → csv-CAVA3EMS.mjs} +4 -4
- package/dist/cli/{csv-FBNS6SM3.js → csv-XZAM7EYZ.js} +13 -13
- package/dist/cli/{db-43RQRF64.mjs → db-HD332QI7.mjs} +6 -6
- package/dist/cli/{db-XRGJJ2KA.js → db-PPGEOBNG.js} +27 -27
- package/dist/cli/describe-5TFFB2PM.js +49 -0
- package/dist/cli/{describe-I42Y3PWR.mjs → describe-THQU7N47.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-LH46O4PG.js → executions-4ZKBL7IC.js} +8 -8
- package/dist/cli/{executions-QXGVQHQF.mjs → executions-AFEOLB4A.mjs} +6 -6
- package/dist/cli/{feedback-ELFINGTM.mjs → feedback-J2YPLKMF.mjs} +6 -6
- package/dist/cli/{feedback-ERYIV6MT.js → feedback-M6Y33JKT.js} +14 -14
- package/dist/cli/{git-V2XWB6LN.mjs → git-632RYEF6.mjs} +5 -5
- package/dist/cli/git-AQLQYWRI.js +25 -0
- package/dist/cli/index.js +144 -140
- package/dist/cli/index.mjs +46 -42
- package/dist/cli/{legacy-noops-Y3OKNVWH.js → legacy-noops-4Y62TKPC.js} +9 -9
- package/dist/cli/{legacy-noops-ULL2EA37.mjs → legacy-noops-KWZMXYAU.mjs} +6 -6
- package/dist/cli/mcp-35QA6YG7.js +352 -0
- package/dist/cli/mcp-PESLHAAC.mjs +352 -0
- package/dist/cli/{monitors-DNQXCRJZ.js → monitors-4DTUZLAI.js} +100 -100
- package/dist/cli/{monitors-L34NROM3.mjs → monitors-YVBKBJBU.mjs} +7 -7
- package/dist/cli/{org-L3HTEEXL.mjs → org-DJNKMFCZ.mjs} +82 -6
- package/dist/cli/{org-JETA62CO.js → org-FWCBZMER.js} +162 -86
- package/dist/cli/{play-GTGJRNWI.js → play-FZ45M4KD.js} +317 -317
- package/dist/cli/{play-JHGLSSJP.mjs → play-PHVQEEEZ.mjs} +17 -17
- package/dist/cli/{providers-IQVHZJ27.mjs → providers-46E67QG7.mjs} +6 -6
- package/dist/cli/{providers-7VH7PH2Q.js → providers-QJU6FMDD.js} +9 -9
- package/dist/cli/{quickstart-ZDBC45PM.mjs → quickstart-6HMJJ4RR.mjs} +4 -4
- package/dist/cli/{quickstart-M25JNU3O.js → quickstart-HOL7H5FS.js} +6 -6
- package/dist/cli/{run-NEEWZBTX.mjs → run-2W2TJ6QA.mjs} +22 -22
- package/dist/cli/{run-MPZGX3YD.js → run-WKSIRXEC.js} +42 -42
- package/dist/cli/{search-YXAFB4QQ.mjs → search-Y2CFLSYB.mjs} +7 -7
- package/dist/cli/search-YLJFCJTK.js +32 -0
- package/dist/cli/{search-output-4PH5HSJC.js → search-output-2IK6ZZDY.js} +6 -6
- package/dist/cli/{search-output-67BBIXIZ.mjs → search-output-FCZ35PHF.mjs} +4 -4
- package/dist/cli/{secrets-HLUBDN3H.js → secrets-JVJIHGU4.js} +15 -15
- package/dist/cli/{secrets-445FER3C.mjs → secrets-PNPNUZLX.mjs} +6 -6
- package/dist/cli/{sessions-CCKXJNWT.mjs → sessions-GY5VVQGO.mjs} +6 -6
- package/dist/cli/sessions-TZ33UCPS.js +22 -0
- package/dist/cli/{settings-WXJIQS5J.js → settings-5WHMFRNQ.js} +85 -85
- package/dist/cli/{settings-3XCZGGVF.mjs → settings-YQOPF3AI.mjs} +12 -12
- package/dist/cli/{setup-CKETRFFN.js → setup-3VJMKDEU.js} +49 -49
- package/dist/cli/{setup-TOSX6NER.mjs → setup-O5U5IEVW.mjs} +9 -9
- package/dist/cli/{skills-Q7NLCIJJ.mjs → skills-G6J5PF35.mjs} +7 -7
- package/dist/cli/skills-WZY3XDT3.js +36 -0
- package/dist/cli/{tools-GY6QMYTZ.mjs → tools-AG7SWL5Y.mjs} +16 -16
- package/dist/cli/tools-BXQBL72Q.js +56 -0
- package/dist/cli/{update-A7JRUN4S.mjs → update-K73DD6CR.mjs} +9 -9
- package/dist/cli/update-XYP5EII6.js +34 -0
- package/dist/cli/{views-GUWC4SNI.js → views-4D2OTLIO.js} +21 -21
- package/dist/cli/{views-JG7FDEJR.mjs → views-MO6DIOMR.mjs} +6 -6
- package/dist/cli/{workflow-QZCYSQ5G.mjs → workflow-MMZMAELI.mjs} +7 -7
- package/dist/cli/{workflow-CXNW7ICH.js → workflow-ZEMFCS4Y.js} +17 -17
- package/dist/{client-CE4QBVbp.d.mts → client-DLG9mHDh.d.mts} +1 -1
- package/dist/{client-B1fixtK1.d.ts → client-X-FJD5Dp.d.ts} +1 -1
- package/dist/{client-core-C-3FVlVq.d.ts → client-core-0jmHfFBv.d.ts} +1 -1
- package/dist/{client-core-2BkNBgrx.d.mts → client-core-WtnqyBwY.d.mts} +1 -1
- 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 +110 -108
- 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-XA3K5LH2.js +0 -43
- package/dist/cli/concurrent-runs-help-HIPM5BBV.js +0 -21
- package/dist/cli/describe-LWZCGAXU.js +0 -49
- package/dist/cli/git-OV2TGYVE.js +0 -25
- package/dist/cli/search-HUN2YRQE.js +0 -32
- package/dist/cli/sessions-T2RNWC6B.js +0 -22
- package/dist/cli/skills-FXM2RHHO.js +0 -36
- package/dist/cli/tools-XLVDZTWQ.js +0 -56
- package/dist/cli/update-AZINHILP.js +0 -34
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 _chunkAKY7KZRJjs = require('./chunk-AKY7KZRJ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDMXLZ57Njs = require('./chunk-DMXLZ57N.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,17 +13,17 @@ var _chunkZTJQKHLMjs = require('./chunk-ZTJQKHLM.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkDNGACHFXjs = require('./chunk-DNGACHFX.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 _chunkQ7WDXLYOjs = require('./chunk-Q7WDXLYO.js');
|
|
24
|
+
require('./chunk-HAITCPCG.js');
|
|
25
|
+
require('./chunk-JPT6VE54.js');
|
|
26
|
+
require('./chunk-GM73TZ2W.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -35,10 +35,10 @@ require('./chunk-WDHHQEWQ.js');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunk3XXXMSSPjs = require('./chunk-3XXXMSSP.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkAWLPERL3js = require('./chunk-AWLPERL3.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -65,7 +65,7 @@ require('./chunk-YGCKMI5P.js');
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var _chunkE7B73LGTjs = require('./chunk-E7B73LGT.js');
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
@@ -73,18 +73,18 @@ var _chunkVAOGM5VSjs = require('./chunk-VAOGM5VS.js');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunkVHJUH3TBjs = require('./chunk-VHJUH3TB.js');
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkEHLCWGWNjs = require('./chunk-EHLCWGWN.js');
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
|
|
85
85
|
require('./chunk-XNYIZMNQ.js');
|
|
86
86
|
require('./chunk-BBTKAASQ.js');
|
|
87
|
-
require('./chunk-
|
|
87
|
+
require('./chunk-QXNOSCYL.js');
|
|
88
88
|
require('./chunk-OG64RBAC.js');
|
|
89
89
|
require('./chunk-RLX5ZFNX.js');
|
|
90
90
|
require('./chunk-COGTRVWW.js');
|
|
@@ -165,56 +165,60 @@ var _os = require('os');
|
|
|
165
165
|
var COMMAND_GROUPS = [
|
|
166
166
|
{
|
|
167
167
|
names: ["auth"],
|
|
168
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
168
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-2PH6RSKL.js")))).registerAuthCommands
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
names: ["providers"],
|
|
172
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
172
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-QJU6FMDD.js")))).registerProviderCommands
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
175
|
names: ["search"],
|
|
176
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
176
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-YLJFCJTK.js")))).registerSearchCommand
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
179
|
names: ["describe"],
|
|
180
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
180
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5TFFB2PM.js")))).registerDescribeCommand
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
names: ["run"],
|
|
184
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
184
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-WKSIRXEC.js")))).registerRunCommand
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
names: ["tools"],
|
|
188
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
188
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-BXQBL72Q.js")))).registerToolsCommands
|
|
189
189
|
},
|
|
190
190
|
{
|
|
191
191
|
names: ["executions"],
|
|
192
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
192
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-4ZKBL7IC.js")))).registerExecutionsCommands
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
195
|
names: ["plays", "runs"],
|
|
196
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
196
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-FZ45M4KD.js")))).registerPlayCommands
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
names: ["sessions"],
|
|
200
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
200
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-TZ33UCPS.js")))).registerSessionsCommands
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
names: ["workflows"],
|
|
204
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
204
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-ZEMFCS4Y.js")))).registerWorkflowCommands
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
names: ["views"],
|
|
208
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-
|
|
208
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-4D2OTLIO.js")))).registerViewsCommands
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
names: ["secrets"],
|
|
212
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
212
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-JVJIHGU4.js")))).registerSecretsCommands
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
names: ["mcp"],
|
|
216
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-35QA6YG7.js")))).registerMcpCommands
|
|
213
217
|
},
|
|
214
218
|
{
|
|
215
219
|
names: ["settings", "notifications"],
|
|
216
220
|
load: async () => {
|
|
217
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
221
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-5WHMFRNQ.js")));
|
|
218
222
|
return (p) => {
|
|
219
223
|
commands.registerSettingsCommands(p);
|
|
220
224
|
commands.registerNotificationCommands(p);
|
|
@@ -223,51 +227,51 @@ var COMMAND_GROUPS = [
|
|
|
223
227
|
},
|
|
224
228
|
{
|
|
225
229
|
names: ["billing"],
|
|
226
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
230
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-IB2TWE74.js")))).registerBillingCommands
|
|
227
231
|
},
|
|
228
232
|
{
|
|
229
233
|
names: ["monitors"],
|
|
230
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
234
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-4DTUZLAI.js")))).registerMonitorsCommands
|
|
231
235
|
},
|
|
232
236
|
{
|
|
233
237
|
names: ["org"],
|
|
234
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
238
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-FWCBZMER.js")))).registerOrgCommands
|
|
235
239
|
},
|
|
236
240
|
{
|
|
237
241
|
names: ["git", "projects", "deployments"],
|
|
238
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
242
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-AQLQYWRI.js")))).registerGitCommands
|
|
239
243
|
},
|
|
240
244
|
{
|
|
241
245
|
names: ["csv"],
|
|
242
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
246
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-XZAM7EYZ.js")))).registerCsvCommands
|
|
243
247
|
},
|
|
244
248
|
{
|
|
245
249
|
names: ["db"],
|
|
246
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
250
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-PPGEOBNG.js")))).registerDbCommands
|
|
247
251
|
},
|
|
248
252
|
{
|
|
249
253
|
names: ["feedback"],
|
|
250
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
254
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-M6Y33JKT.js")))).registerFeedbackCommands
|
|
251
255
|
},
|
|
252
256
|
{
|
|
253
257
|
names: ["enrich", "session", "backend"],
|
|
254
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
258
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-4Y62TKPC.js")))).registerDeprecatedCommands
|
|
255
259
|
},
|
|
256
260
|
{
|
|
257
261
|
names: ["update"],
|
|
258
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
262
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-XYP5EII6.js")))).registerUpdateCommand
|
|
259
263
|
},
|
|
260
264
|
{
|
|
261
265
|
names: ["skills", "skills-auto-sync"],
|
|
262
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
266
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-WZY3XDT3.js")))).registerSkillsCommand
|
|
263
267
|
},
|
|
264
268
|
{
|
|
265
269
|
names: ["setup", "doctor"],
|
|
266
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
270
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-3VJMKDEU.js")))).registerSetupCommands
|
|
267
271
|
},
|
|
268
272
|
{
|
|
269
273
|
names: ["quickstart"],
|
|
270
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
274
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-HOL7H5FS.js")))).registerQuickstartCommands
|
|
271
275
|
}
|
|
272
276
|
];
|
|
273
277
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -293,8 +297,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
293
297
|
function createDeferredPlayRunMaintenance(input) {
|
|
294
298
|
return async () => {
|
|
295
299
|
try {
|
|
296
|
-
const skillsVersion =
|
|
297
|
-
const compatibility = await
|
|
300
|
+
const skillsVersion = _chunkVHJUH3TBjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
301
|
+
const compatibility = await _chunkQ7WDXLYOjs.traceCliSpan.call(void 0,
|
|
298
302
|
"cli.sdk_compatibility_deferred",
|
|
299
303
|
{
|
|
300
304
|
baseUrl: input.baseUrl,
|
|
@@ -302,24 +306,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
302
306
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
303
307
|
},
|
|
304
308
|
async () => {
|
|
305
|
-
const trusted =
|
|
309
|
+
const trusted = _chunk3XXXMSSPjs.readTrustedCleanCompatibility.call(void 0,
|
|
306
310
|
input.baseUrl,
|
|
307
311
|
"plays run",
|
|
308
312
|
skillsVersion
|
|
309
313
|
);
|
|
310
314
|
if (trusted) return { response: trusted, error: null };
|
|
311
|
-
return
|
|
315
|
+
return _chunk3XXXMSSPjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
312
316
|
command: "plays run",
|
|
313
317
|
skillsVersion,
|
|
314
318
|
persistCache: input.policy !== "off",
|
|
315
|
-
catalog:
|
|
319
|
+
catalog: _chunkDNGACHFXjs.compatibilityCatalog.call(void 0, input.command)
|
|
316
320
|
});
|
|
317
321
|
}
|
|
318
322
|
);
|
|
319
323
|
if (compatibility.error || !compatibility.response) return;
|
|
320
324
|
const automaticUpdate = compatibility.response.auto_update;
|
|
321
325
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
322
|
-
await
|
|
326
|
+
await _chunkDNGACHFXjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
323
327
|
compatibility.response,
|
|
324
328
|
input.baseUrl,
|
|
325
329
|
input.policy
|
|
@@ -329,7 +333,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
329
333
|
compatibility.response,
|
|
330
334
|
"skills"
|
|
331
335
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
332
|
-
await
|
|
336
|
+
await _chunk3XXXMSSPjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
333
337
|
update: skillsUpdate,
|
|
334
338
|
mode: "detached"
|
|
335
339
|
});
|
|
@@ -357,7 +361,7 @@ var MAX_SESSIONS = 20;
|
|
|
357
361
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
358
362
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
359
363
|
}
|
|
360
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
364
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkEHLCWGWNjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
361
365
|
const explicit = _chunkV4EYJKGJjs.helpDetailFromArgv.call(void 0, argv);
|
|
362
366
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
363
367
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
@@ -455,7 +459,7 @@ function shouldReport(stdout, stderr) {
|
|
|
455
459
|
}
|
|
456
460
|
function toolName(action) {
|
|
457
461
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
458
|
-
return typeof toolId === "string" ?
|
|
462
|
+
return typeof toolId === "string" ? _chunkE7B73LGTjs.redactFailureText.call(void 0, toolId) : null;
|
|
459
463
|
}
|
|
460
464
|
function chunkText(chunk) {
|
|
461
465
|
if (typeof chunk === "string") return chunk;
|
|
@@ -486,14 +490,14 @@ function watch(stream) {
|
|
|
486
490
|
}
|
|
487
491
|
async function postCommandOutput(body) {
|
|
488
492
|
try {
|
|
489
|
-
const baseUrl =
|
|
490
|
-
const apiKey =
|
|
493
|
+
const baseUrl = _chunkVHJUH3TBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
494
|
+
const apiKey = _chunkVHJUH3TBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
491
495
|
if (!apiKey) return;
|
|
492
|
-
const agentSessionId =
|
|
496
|
+
const agentSessionId = _chunkEHLCWGWNjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
493
497
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
494
498
|
method: "POST",
|
|
495
499
|
headers: {
|
|
496
|
-
...
|
|
500
|
+
..._chunkE7B73LGTjs.failureReportHeaders.call(void 0, apiKey),
|
|
497
501
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
498
502
|
},
|
|
499
503
|
body: JSON.stringify(body),
|
|
@@ -509,14 +513,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
509
513
|
const stdoutWatch = watch(streams.stdout);
|
|
510
514
|
const stderrWatch = watch(streams.stderr);
|
|
511
515
|
return async (finished) => {
|
|
512
|
-
if (
|
|
516
|
+
if (_chunkE7B73LGTjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
513
517
|
const [stdout, stderr] = await Promise.all([
|
|
514
518
|
stdoutWatch.settled(),
|
|
515
519
|
stderrWatch.settled()
|
|
516
520
|
]);
|
|
517
521
|
if (!shouldReport(stdout, stderr)) return;
|
|
518
522
|
await postCommandOutput({
|
|
519
|
-
command:
|
|
523
|
+
command: _chunkE7B73LGTjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
520
524
|
tool: toolName(finished.action),
|
|
521
525
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
522
526
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -547,7 +551,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
547
551
|
function printUsageErrorJson(code, message, commandPath) {
|
|
548
552
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
549
553
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
550
|
-
|
|
554
|
+
_chunkE7B73LGTjs.printJson.call(void 0, {
|
|
551
555
|
ok: false,
|
|
552
556
|
error: {
|
|
553
557
|
code,
|
|
@@ -605,7 +609,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
605
609
|
);
|
|
606
610
|
}
|
|
607
611
|
async function runPlayRunnerHealthCheck() {
|
|
608
|
-
|
|
612
|
+
_chunkVHJUH3TBjs.resolveConfig.call(void 0, );
|
|
609
613
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
610
614
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
611
615
|
try {
|
|
@@ -635,7 +639,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
635
639
|
});
|
|
636
640
|
let exitCode = 1;
|
|
637
641
|
try {
|
|
638
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
642
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-FZ45M4KD.js")));
|
|
639
643
|
exitCode = await handlePlayRun([
|
|
640
644
|
file,
|
|
641
645
|
"--input",
|
|
@@ -675,7 +679,7 @@ function preflightErrorMessage(error) {
|
|
|
675
679
|
return error instanceof Error ? error.message : String(error);
|
|
676
680
|
}
|
|
677
681
|
async function runPreflightCheck() {
|
|
678
|
-
const baseUrl =
|
|
682
|
+
const baseUrl = _chunkVHJUH3TBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
679
683
|
const healthController = new AbortController();
|
|
680
684
|
const healthTimeout = setTimeout(
|
|
681
685
|
() => healthController.abort(),
|
|
@@ -692,14 +696,14 @@ async function runPreflightCheck() {
|
|
|
692
696
|
}).catch((error) => ({
|
|
693
697
|
status: "unreachable",
|
|
694
698
|
version: null,
|
|
695
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
699
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkEHLCWGWNjs.connectionFailureMessage.call(void 0,
|
|
696
700
|
baseUrl,
|
|
697
701
|
error instanceof Error ? error : new Error(String(error))
|
|
698
702
|
)
|
|
699
703
|
})).finally(() => clearTimeout(healthTimeout));
|
|
700
|
-
const apiKey =
|
|
701
|
-
const http = apiKey ? new (0,
|
|
702
|
-
|
|
704
|
+
const apiKey = _chunkVHJUH3TBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
705
|
+
const http = apiKey ? new (0, _chunkVHJUH3TBjs.HttpClient)(
|
|
706
|
+
_chunkVHJUH3TBjs.resolveConfig.call(void 0, {
|
|
703
707
|
baseUrl,
|
|
704
708
|
apiKey,
|
|
705
709
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -744,7 +748,7 @@ async function runPreflightCheck() {
|
|
|
744
748
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
745
749
|
return {
|
|
746
750
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
747
|
-
cli_version:
|
|
751
|
+
cli_version: _chunkEHLCWGWNjs.SDK_VERSION,
|
|
748
752
|
host: baseUrl,
|
|
749
753
|
health: {
|
|
750
754
|
status: healthResult.status,
|
|
@@ -771,7 +775,7 @@ async function runPreflightCheck() {
|
|
|
771
775
|
{
|
|
772
776
|
title: "preflight",
|
|
773
777
|
lines: [
|
|
774
|
-
`cli: ${
|
|
778
|
+
`cli: ${_chunkEHLCWGWNjs.SDK_VERSION}`,
|
|
775
779
|
`host: ${baseUrl}`,
|
|
776
780
|
`health: ${healthResult.status}`,
|
|
777
781
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -798,12 +802,12 @@ function printPreflightHuman(data) {
|
|
|
798
802
|
}
|
|
799
803
|
async function newerCliCommandHint(baseUrl, command) {
|
|
800
804
|
if (!command.trim()) return null;
|
|
801
|
-
const { response, error } = await
|
|
805
|
+
const { response, error } = await _chunk3XXXMSSPjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
802
806
|
if (error || !response) return null;
|
|
803
807
|
const introduced = response.command_introduced_in;
|
|
804
808
|
if (introduced) {
|
|
805
809
|
return [
|
|
806
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
810
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkEHLCWGWNjs.SDK_VERSION}.`,
|
|
807
811
|
` ${introduced.reason}`,
|
|
808
812
|
` Update with: ${response.update_command}`,
|
|
809
813
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -812,33 +816,33 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
812
816
|
if (!response.update_required) return null;
|
|
813
817
|
return [
|
|
814
818
|
response.message,
|
|
815
|
-
` Installed: ${
|
|
819
|
+
` Installed: ${_chunkEHLCWGWNjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
816
820
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
817
821
|
].join("\n");
|
|
818
822
|
}
|
|
819
823
|
async function runMain(ensureTransport, onAction, suppressOutputReport) {
|
|
820
824
|
const mainStartedAt = Date.now();
|
|
821
|
-
|
|
825
|
+
_chunkE7B73LGTjs.installJsonStderrGuard.call(void 0, );
|
|
822
826
|
let rootHelpStatus = "";
|
|
823
827
|
let concurrentRunsHelpStatus = "";
|
|
824
828
|
let commandFailed = false;
|
|
825
829
|
const deferredMaintenance = { inlinePlay: null };
|
|
826
|
-
|
|
830
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
|
|
827
831
|
phase: "cli.main_start",
|
|
828
832
|
argv: process.argv.slice(2)
|
|
829
833
|
});
|
|
830
834
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
831
|
-
const progress = printStartupPhase ?
|
|
835
|
+
const progress = printStartupPhase ? _chunkAWLPERL3js.createCliProgress.call(void 0, true) : null;
|
|
832
836
|
if (printStartupPhase) {
|
|
833
837
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
834
838
|
}
|
|
835
839
|
const program = new (0, _commander.Command)();
|
|
836
840
|
program.name("deepline").description(
|
|
837
841
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
838
|
-
).version(
|
|
842
|
+
).version(_chunkEHLCWGWNjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
839
843
|
"--maintenance <policy>",
|
|
840
844
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
841
|
-
|
|
845
|
+
_chunkQ7WDXLYOjs.parseCliMaintenancePolicy,
|
|
842
846
|
"configured"
|
|
843
847
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
844
848
|
"beforeAll",
|
|
@@ -898,25 +902,25 @@ Exit codes:
|
|
|
898
902
|
path: compatibilityCommand,
|
|
899
903
|
args: actionCommand.processedArgs
|
|
900
904
|
});
|
|
901
|
-
const maintenance =
|
|
905
|
+
const maintenance = _chunkQ7WDXLYOjs.resolveCliMaintenancePolicy.call(void 0,
|
|
902
906
|
actionCommand.optsWithGlobals()
|
|
903
907
|
);
|
|
904
908
|
if (actionCommand.name() !== "version") {
|
|
905
909
|
await ensureTransport();
|
|
906
910
|
}
|
|
907
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
911
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunk3XXXMSSPjs.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(
|
|
908
912
|
compatibilityCommand
|
|
909
|
-
) &&
|
|
913
|
+
) && _chunkDMXLZ57Njs.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
|
|
910
914
|
return;
|
|
911
915
|
}
|
|
912
916
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
913
917
|
if (isToolExecuteCommand) {
|
|
914
|
-
|
|
918
|
+
_chunkDNGACHFXjs.beginToolExecuteCommand.call(void 0, );
|
|
915
919
|
}
|
|
916
920
|
if (isToolExecuteCommand) {
|
|
917
|
-
const baseUrl =
|
|
918
|
-
if (maintenance !== "off")
|
|
919
|
-
|
|
921
|
+
const baseUrl = _chunkVHJUH3TBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
922
|
+
if (maintenance !== "off") _chunk3XXXMSSPjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
923
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
|
|
920
924
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
921
925
|
baseUrl,
|
|
922
926
|
command: compatibilityCommand
|
|
@@ -924,9 +928,9 @@ Exit codes:
|
|
|
924
928
|
return;
|
|
925
929
|
}
|
|
926
930
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
927
|
-
if (!playDryRun &&
|
|
931
|
+
if (!playDryRun && _chunkAKY7KZRJjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
928
932
|
if (maintenance !== "off") {
|
|
929
|
-
const baseUrl =
|
|
933
|
+
const baseUrl = _chunkVHJUH3TBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
930
934
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
931
935
|
baseUrl,
|
|
932
936
|
command: actionCommand,
|
|
@@ -935,27 +939,27 @@ Exit codes:
|
|
|
935
939
|
}
|
|
936
940
|
return;
|
|
937
941
|
}
|
|
938
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
942
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkDNGACHFXjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
939
943
|
if (printStartupPhase) {
|
|
940
944
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
941
945
|
}
|
|
942
946
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
943
|
-
const baseUrl =
|
|
944
|
-
if (maintenance !== "off")
|
|
947
|
+
const baseUrl = _chunkVHJUH3TBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
948
|
+
if (maintenance !== "off") _chunk3XXXMSSPjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
945
949
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
946
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
947
|
-
const trusted = isToolExecuteCommand ? null :
|
|
950
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkVHJUH3TBjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
951
|
+
const trusted = isToolExecuteCommand ? null : _chunk3XXXMSSPjs.readTrustedCleanCompatibility.call(void 0,
|
|
948
952
|
baseUrl,
|
|
949
953
|
compatibilityCommand,
|
|
950
954
|
skillsVersion
|
|
951
955
|
);
|
|
952
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
956
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunk3XXXMSSPjs.readFreshCleanCompatibility.call(void 0,
|
|
953
957
|
baseUrl,
|
|
954
958
|
compatibilityCommand,
|
|
955
959
|
skillsVersion
|
|
956
960
|
) !== null;
|
|
957
961
|
if (trusted) {
|
|
958
|
-
|
|
962
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
|
|
959
963
|
phase: "cli.sdk_compatibility",
|
|
960
964
|
ms: 0,
|
|
961
965
|
ok: true,
|
|
@@ -965,7 +969,7 @@ Exit codes:
|
|
|
965
969
|
source: "trusted_cache"
|
|
966
970
|
});
|
|
967
971
|
}
|
|
968
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
972
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkQ7WDXLYOjs.traceCliSpan.call(void 0,
|
|
969
973
|
"cli.sdk_compatibility",
|
|
970
974
|
{
|
|
971
975
|
baseUrl,
|
|
@@ -973,12 +977,12 @@ Exit codes:
|
|
|
973
977
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
974
978
|
fastDeadline
|
|
975
979
|
},
|
|
976
|
-
() =>
|
|
980
|
+
() => _chunk3XXXMSSPjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
977
981
|
command: compatibilityCommand,
|
|
978
982
|
skillsVersion,
|
|
979
983
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
980
|
-
catalog:
|
|
981
|
-
...fastDeadline ? { timeoutMs:
|
|
984
|
+
catalog: _chunkDNGACHFXjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
985
|
+
...fastDeadline ? { timeoutMs: _chunk3XXXMSSPjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
982
986
|
})
|
|
983
987
|
);
|
|
984
988
|
if (compatibility.error) {
|
|
@@ -989,7 +993,7 @@ Exit codes:
|
|
|
989
993
|
response: null
|
|
990
994
|
};
|
|
991
995
|
}
|
|
992
|
-
const relaunched = await
|
|
996
|
+
const relaunched = await _chunkDNGACHFXjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
993
997
|
compatibility.response,
|
|
994
998
|
baseUrl,
|
|
995
999
|
maintenance
|
|
@@ -1003,14 +1007,14 @@ Exit codes:
|
|
|
1003
1007
|
};
|
|
1004
1008
|
}
|
|
1005
1009
|
const policy = compatibility.response;
|
|
1006
|
-
const jsonOutput =
|
|
1007
|
-
|
|
1010
|
+
const jsonOutput = _chunkE7B73LGTjs.isJsonOutputMode.call(void 0, );
|
|
1011
|
+
_chunk3XXXMSSPjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1008
1012
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1009
|
-
|
|
1013
|
+
_chunkDNGACHFXjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunk3XXXMSSPjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1010
1014
|
});
|
|
1011
1015
|
const advisory = compatibility.response;
|
|
1012
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1013
|
-
|
|
1016
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunk3XXXMSSPjs.isCiEnvironment.call(void 0, ) && !_chunkDNGACHFXjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1017
|
+
_chunkE7B73LGTjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1014
1018
|
}
|
|
1015
1019
|
return {
|
|
1016
1020
|
shouldContinue: true,
|
|
@@ -1027,10 +1031,10 @@ Exit codes:
|
|
|
1027
1031
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1028
1032
|
await runStartupStage(
|
|
1029
1033
|
"agent skills sync",
|
|
1030
|
-
() =>
|
|
1034
|
+
() => _chunkQ7WDXLYOjs.traceCliSpan.call(void 0,
|
|
1031
1035
|
"cli.sdk_skills_sync",
|
|
1032
1036
|
{ baseUrl: startup.baseUrl },
|
|
1033
|
-
() =>
|
|
1037
|
+
() => _chunk3XXXMSSPjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1034
1038
|
update: skillsUpdate,
|
|
1035
1039
|
mode: "detached"
|
|
1036
1040
|
})
|
|
@@ -1044,16 +1048,16 @@ Exit codes:
|
|
|
1044
1048
|
);
|
|
1045
1049
|
const carriesFeedback = requestedCommand === "feedback" || requestedCommand === "session" || requestedCommand === "sessions";
|
|
1046
1050
|
if (carriesFeedback) suppressOutputReport();
|
|
1047
|
-
const commandRegistrationStartedAt =
|
|
1051
|
+
const commandRegistrationStartedAt = _chunkQ7WDXLYOjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1048
1052
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1049
1053
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1050
|
-
|
|
1054
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
|
|
1051
1055
|
phase: "cli.command_registration",
|
|
1052
1056
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1053
1057
|
});
|
|
1054
1058
|
}
|
|
1055
1059
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1056
|
-
if (
|
|
1060
|
+
if (_chunkE7B73LGTjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1057
1061
|
preflight.addHelpText(
|
|
1058
1062
|
"after",
|
|
1059
1063
|
`
|
|
@@ -1069,8 +1073,8 @@ Examples:
|
|
|
1069
1073
|
`
|
|
1070
1074
|
).action(async (options) => {
|
|
1071
1075
|
const data = await runPreflightCheck();
|
|
1072
|
-
if (
|
|
1073
|
-
|
|
1076
|
+
if (_chunkE7B73LGTjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1077
|
+
_chunkE7B73LGTjs.printJson.call(void 0, data);
|
|
1074
1078
|
} else {
|
|
1075
1079
|
printPreflightHuman(data);
|
|
1076
1080
|
}
|
|
@@ -1095,7 +1099,7 @@ Examples:
|
|
|
1095
1099
|
).action(async (options) => {
|
|
1096
1100
|
if (options.playRunner) {
|
|
1097
1101
|
const data = await runPlayRunnerHealthCheck();
|
|
1098
|
-
|
|
1102
|
+
_chunkE7B73LGTjs.printCommandEnvelope.call(void 0, data, {
|
|
1099
1103
|
json: options.json,
|
|
1100
1104
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1101
1105
|
`
|
|
@@ -1103,15 +1107,15 @@ Examples:
|
|
|
1103
1107
|
return;
|
|
1104
1108
|
}
|
|
1105
1109
|
try {
|
|
1106
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1107
|
-
const baseUrl =
|
|
1110
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-2PH6RSKL.js")));
|
|
1111
|
+
const baseUrl = _chunkVHJUH3TBjs.resolveBaseUrlOnly.call(void 0, );
|
|
1108
1112
|
const [{ status, data }, banner] = await Promise.all([
|
|
1109
1113
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1110
1114
|
readStatusBanner(baseUrl)
|
|
1111
1115
|
]);
|
|
1112
1116
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1113
1117
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1114
|
-
|
|
1118
|
+
_chunkE7B73LGTjs.printCommandEnvelope.call(void 0,
|
|
1115
1119
|
{ ...data, status_banner: banner },
|
|
1116
1120
|
{
|
|
1117
1121
|
json: options.json,
|
|
@@ -1139,16 +1143,16 @@ Examples:
|
|
|
1139
1143
|
`
|
|
1140
1144
|
).action((options) => {
|
|
1141
1145
|
if (options.json) {
|
|
1142
|
-
|
|
1146
|
+
_chunkE7B73LGTjs.printCompactJson.call(void 0, { version: _chunkEHLCWGWNjs.SDK_VERSION });
|
|
1143
1147
|
return;
|
|
1144
1148
|
}
|
|
1145
|
-
process.stdout.write(`deepline ${
|
|
1149
|
+
process.stdout.write(`deepline ${_chunkEHLCWGWNjs.SDK_VERSION}
|
|
1146
1150
|
`);
|
|
1147
1151
|
});
|
|
1148
1152
|
if (process.argv.slice(2).length === 0) {
|
|
1149
1153
|
program.outputHelp({ error: true });
|
|
1150
1154
|
console.error("\nerror: missing command (see usage above)");
|
|
1151
|
-
|
|
1155
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
|
|
1152
1156
|
phase: "cli.main_total",
|
|
1153
1157
|
ms: Date.now() - mainStartedAt,
|
|
1154
1158
|
ok: false,
|
|
@@ -1160,16 +1164,16 @@ Examples:
|
|
|
1160
1164
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1161
1165
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1162
1166
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1163
|
-
if (!
|
|
1164
|
-
const baseUrl =
|
|
1167
|
+
if (!_chunkE7B73LGTjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1168
|
+
const baseUrl = _chunkVHJUH3TBjs.autoDetectBaseUrl.call(void 0, );
|
|
1165
1169
|
await ensureTransport();
|
|
1166
1170
|
const versionHint = await newerCliCommandHint(
|
|
1167
1171
|
baseUrl,
|
|
1168
1172
|
requestedTopLevelCommand
|
|
1169
1173
|
);
|
|
1170
|
-
if (
|
|
1174
|
+
if (_chunkE7B73LGTjs.isJsonOutputMode.call(void 0, )) {
|
|
1171
1175
|
if (versionHint) {
|
|
1172
|
-
|
|
1176
|
+
_chunkE7B73LGTjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1173
1177
|
}
|
|
1174
1178
|
printUsageErrorJson(
|
|
1175
1179
|
"commander.unknownCommand",
|
|
@@ -1191,26 +1195,26 @@ Examples:
|
|
|
1191
1195
|
const helpArgs = process.argv.slice(2);
|
|
1192
1196
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1193
1197
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1194
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1195
|
-
rootHelpStatus = `Version: ${
|
|
1198
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-2PH6RSKL.js")));
|
|
1199
|
+
rootHelpStatus = `Version: ${_chunkEHLCWGWNjs.SDK_VERSION}
|
|
1196
1200
|
${await authStatusLine()}
|
|
1197
1201
|
`;
|
|
1198
1202
|
}
|
|
1199
1203
|
if ((helpArgs.includes("--help") || helpArgs.includes("-h")) && helpPositionals.length >= 2) {
|
|
1200
|
-
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-
|
|
1204
|
+
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-BNIDBKML.js")));
|
|
1201
1205
|
if (CONCURRENT_RUNS_HELP_COMMANDS.has(helpPositionals.slice(0, 2).join(" "))) {
|
|
1202
1206
|
await ensureTransport();
|
|
1203
1207
|
concurrentRunsHelpStatus = await read();
|
|
1204
1208
|
}
|
|
1205
1209
|
}
|
|
1206
1210
|
await program.parseAsync(process.argv);
|
|
1207
|
-
|
|
1211
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
|
|
1208
1212
|
phase: "cli.main_total",
|
|
1209
1213
|
ms: Date.now() - mainStartedAt,
|
|
1210
1214
|
ok: true
|
|
1211
1215
|
});
|
|
1212
1216
|
if (!carriesFeedback) {
|
|
1213
|
-
await
|
|
1217
|
+
await _chunkE7B73LGTjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1214
1218
|
argv: process.argv.slice(2),
|
|
1215
1219
|
startedAtMs: mainStartedAt,
|
|
1216
1220
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1219,14 +1223,14 @@ ${await authStatusLine()}
|
|
|
1219
1223
|
} catch (error) {
|
|
1220
1224
|
commandFailed = true;
|
|
1221
1225
|
const commanderError = asCommanderError(error);
|
|
1222
|
-
|
|
1226
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
|
|
1223
1227
|
phase: "cli.main_total",
|
|
1224
1228
|
ms: Date.now() - mainStartedAt,
|
|
1225
1229
|
ok: false,
|
|
1226
1230
|
error: error instanceof Error ? error.message : String(error)
|
|
1227
1231
|
});
|
|
1228
1232
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1229
|
-
const wantsJson =
|
|
1233
|
+
const wantsJson = _chunkE7B73LGTjs.isJsonOutputMode.call(void 0, );
|
|
1230
1234
|
if (commanderError) {
|
|
1231
1235
|
const grammarError = [
|
|
1232
1236
|
"commander.unknownCommand",
|
|
@@ -1237,12 +1241,12 @@ ${await authStatusLine()}
|
|
|
1237
1241
|
if (grammarError) {
|
|
1238
1242
|
await ensureTransport();
|
|
1239
1243
|
const versionHint = await newerCliCommandHint(
|
|
1240
|
-
|
|
1244
|
+
_chunkVHJUH3TBjs.autoDetectBaseUrl.call(void 0, ),
|
|
1241
1245
|
commandPath
|
|
1242
1246
|
);
|
|
1243
1247
|
if (wantsJson) {
|
|
1244
1248
|
if (versionHint) {
|
|
1245
|
-
|
|
1249
|
+
_chunkE7B73LGTjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1246
1250
|
}
|
|
1247
1251
|
} else {
|
|
1248
1252
|
if (versionHint) console.error(versionHint);
|
|
@@ -1262,43 +1266,43 @@ ${await authStatusLine()}
|
|
|
1262
1266
|
return;
|
|
1263
1267
|
} else if (wantsJson) {
|
|
1264
1268
|
if (error instanceof _chunk2GJZLIKWjs.AuthError) {
|
|
1265
|
-
|
|
1269
|
+
_chunkE7B73LGTjs.addJsonNotice.call(void 0, {
|
|
1266
1270
|
code: "auth_required",
|
|
1267
1271
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1268
1272
|
});
|
|
1269
1273
|
}
|
|
1270
|
-
const providerConcurrency =
|
|
1274
|
+
const providerConcurrency = _chunkE7B73LGTjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1271
1275
|
if (providerConcurrency) {
|
|
1272
|
-
|
|
1276
|
+
_chunkE7B73LGTjs.addJsonNotice.call(void 0, {
|
|
1273
1277
|
code: "provider_concurrency",
|
|
1274
1278
|
message: providerConcurrency
|
|
1275
1279
|
});
|
|
1276
1280
|
}
|
|
1277
|
-
const payload =
|
|
1278
|
-
|
|
1281
|
+
const payload = _chunkE7B73LGTjs.errorToJsonPayload.call(void 0, error);
|
|
1282
|
+
_chunkE7B73LGTjs.printJson.call(void 0, {
|
|
1279
1283
|
...payload,
|
|
1280
1284
|
// The envelope names the code the process exits with, so a caller
|
|
1281
1285
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1282
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1286
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkE7B73LGTjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1283
1287
|
...error instanceof _chunk2GJZLIKWjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1284
1288
|
});
|
|
1285
1289
|
} else if (error instanceof Error) {
|
|
1286
1290
|
console.error(`Error: ${error.message}`);
|
|
1287
|
-
const toolDiagnostic =
|
|
1291
|
+
const toolDiagnostic = _chunkE7B73LGTjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1288
1292
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1289
1293
|
if (error instanceof _chunk2GJZLIKWjs.AuthError) {
|
|
1290
1294
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1291
1295
|
}
|
|
1292
|
-
const providerConcurrency =
|
|
1296
|
+
const providerConcurrency = _chunkE7B73LGTjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1293
1297
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1294
1298
|
} else {
|
|
1295
1299
|
console.error(`Error: ${String(error)}`);
|
|
1296
1300
|
}
|
|
1297
1301
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1298
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1302
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkE7B73LGTjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1299
1303
|
process.exitCode = failureExitCode;
|
|
1300
1304
|
if (!carriesFeedback) {
|
|
1301
|
-
await
|
|
1305
|
+
await _chunkE7B73LGTjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1302
1306
|
argv: process.argv.slice(2),
|
|
1303
1307
|
startedAtMs: mainStartedAt,
|
|
1304
1308
|
exitCode: failureExitCode,
|
|
@@ -1306,13 +1310,13 @@ ${await authStatusLine()}
|
|
|
1306
1310
|
});
|
|
1307
1311
|
}
|
|
1308
1312
|
} finally {
|
|
1309
|
-
|
|
1313
|
+
_chunkDNGACHFXjs.finishToolExecuteCommand.call(void 0, );
|
|
1310
1314
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1311
1315
|
deferredMaintenance.inlinePlay = null;
|
|
1312
1316
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1313
1317
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1314
1318
|
}
|
|
1315
|
-
await
|
|
1319
|
+
await _chunkDNGACHFXjs.runDeferredAutoUpdate.call(void 0, );
|
|
1316
1320
|
}
|
|
1317
1321
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1318
1322
|
}
|
|
@@ -1320,7 +1324,7 @@ async function main() {
|
|
|
1320
1324
|
let disposeTransport;
|
|
1321
1325
|
const ensureTransport = async () => {
|
|
1322
1326
|
if (disposeTransport) return;
|
|
1323
|
-
const transportStartedAt =
|
|
1327
|
+
const transportStartedAt = _chunkQ7WDXLYOjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1324
1328
|
const hasProxy = [
|
|
1325
1329
|
"HTTP_PROXY",
|
|
1326
1330
|
"http_proxy",
|
|
@@ -1332,7 +1336,7 @@ async function main() {
|
|
|
1332
1336
|
disposeTransport = configureCliTransport();
|
|
1333
1337
|
}
|
|
1334
1338
|
if (transportStartedAt !== void 0) {
|
|
1335
|
-
|
|
1339
|
+
_chunkQ7WDXLYOjs.recordCliTrace.call(void 0, {
|
|
1336
1340
|
phase: "cli.transport_setup",
|
|
1337
1341
|
ms: performance.now() - transportStartedAt
|
|
1338
1342
|
});
|
|
@@ -1355,9 +1359,9 @@ async function main() {
|
|
|
1355
1359
|
skipOutputReport = true;
|
|
1356
1360
|
}
|
|
1357
1361
|
);
|
|
1358
|
-
const silentFailure =
|
|
1362
|
+
const silentFailure = _chunkE7B73LGTjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1359
1363
|
if (silentFailure) {
|
|
1360
|
-
|
|
1364
|
+
_chunkE7B73LGTjs.printJson.call(void 0, {
|
|
1361
1365
|
ok: false,
|
|
1362
1366
|
exitCode: Number(process.exitCode),
|
|
1363
1367
|
error: { code: "CLI_ERROR", message: silentFailure }
|