deepline 0.3.538 → 0.3.540
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/shared_libs/integration-contracts/billing-entitlements.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +8 -4
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +8 -1
- package/dist/bundling-sources/shared_libs/play-runtime/baked-runner-image.ts +66 -4
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +0 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +14 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +136 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-execution-queries.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +20 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +30 -11
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
- package/dist/cli/{auth-KYH7N7RQ.mjs → auth-32TURPHH.mjs} +5 -5
- package/dist/cli/auth-XA3K5LH2.js +43 -0
- package/dist/cli/{billing-4KTUVZ4S.js → billing-6433M4BX.js} +105 -94
- package/dist/cli/{billing-WK346KAI.mjs → billing-NSH3NOHV.mjs} +21 -10
- package/dist/cli/{chunk-KCUQNH4K.js → chunk-2U4VACUA.js} +2 -2
- package/dist/cli/{chunk-6JG3MRTM.mjs → chunk-37VFUQMU.mjs} +2 -2
- package/dist/cli/chunk-3GVIVIER.js +54 -0
- package/dist/cli/{chunk-M3NCXGNN.mjs → chunk-AB6DFHGL.mjs} +2 -2
- package/dist/cli/{chunk-LPTBHNGB.js → chunk-AJVK4XC5.js} +4 -4
- package/dist/cli/{chunk-B2BTBHX2.js → chunk-AOYW62XO.js} +3 -3
- package/dist/cli/{chunk-UE7JHAZ2.mjs → chunk-B6UZUQ2O.mjs} +1 -1
- package/dist/cli/{chunk-JTOV5RUA.mjs → chunk-BD3VAPB4.mjs} +1 -1
- package/dist/cli/{chunk-ESX3H7Q7.js → chunk-BGBRA2S6.js} +22 -22
- package/dist/cli/{chunk-25RGHJQL.js → chunk-BNNGM2E5.js} +15 -15
- package/dist/cli/{chunk-VCHV4LS3.mjs → chunk-BZVVSUE2.mjs} +1 -1
- package/dist/cli/{chunk-YQURGSRB.js → chunk-DV3ESQ4X.js} +1 -1
- package/dist/cli/{chunk-ICTA5ICE.mjs → chunk-DWE2VE5I.mjs} +1 -1
- package/dist/cli/{chunk-34PLG5OE.js → chunk-EXAXDEIF.js} +13 -13
- package/dist/cli/chunk-FANIRW74.mjs +9 -0
- package/dist/cli/{chunk-JPEBKN3K.mjs → chunk-FR3AII3W.mjs} +2 -2
- package/dist/cli/chunk-GWHA4DAC.js +9 -0
- package/dist/cli/{chunk-VIFLWQXS.js → chunk-H6IA6XRE.js} +2 -2
- package/dist/cli/{chunk-JCLRSMUP.js → chunk-HKWJD45V.js} +5 -5
- package/dist/cli/{chunk-7XDJKIM2.mjs → chunk-HLHDCFKL.mjs} +4 -4
- package/dist/cli/{chunk-E7D37PLM.mjs → chunk-IDDKNMFX.mjs} +36 -0
- package/dist/cli/{chunk-35OCRH5C.mjs → chunk-IYQZVEV4.mjs} +5 -5
- package/dist/cli/{chunk-6SLQLWWL.js → chunk-J3TAEPFA.js} +26 -26
- package/dist/cli/{chunk-FJ5KPGCS.mjs → chunk-JGFGWWOF.mjs} +10 -10
- package/dist/cli/{chunk-4NEOGPKD.mjs → chunk-JPU5YLQG.mjs} +1 -1
- package/dist/cli/{chunk-4KZF6OYY.mjs → chunk-KFAJYK2N.mjs} +3 -3
- package/dist/cli/chunk-KN6ELDPL.mjs +54 -0
- package/dist/cli/{chunk-UEZNIPFO.js → chunk-LPMI4CYW.js} +107 -107
- package/dist/cli/{chunk-BBS2BLPV.js → chunk-LXLCQP4A.js} +16 -16
- package/dist/cli/{chunk-MYSPQUAO.js → chunk-M4DB6BBP.js} +44 -44
- package/dist/cli/{chunk-ZDLDCXY3.mjs → chunk-MH22LQKZ.mjs} +2 -2
- package/dist/cli/{chunk-OOLBE6FR.js → chunk-MLDLN6WG.js} +53 -53
- package/dist/cli/{chunk-IMLFB66A.js → chunk-MVIVF4BW.js} +3 -3
- package/dist/cli/{chunk-MNBIGX6O.js → chunk-N6DMKVKO.js} +10 -10
- package/dist/cli/{chunk-TWWYCJJW.mjs → chunk-PJOMRUFP.mjs} +5 -5
- package/dist/cli/{chunk-KNIYEZVV.mjs → chunk-S3ULSGFH.mjs} +2 -2
- package/dist/cli/{chunk-FWE37N2P.mjs → chunk-SGMDRYAD.mjs} +1 -1
- package/dist/cli/{chunk-ZU6JBRV5.mjs → chunk-SINNEITW.mjs} +4 -4
- package/dist/cli/{chunk-ALARRSMZ.mjs → chunk-SXVYFOBG.mjs} +3 -3
- package/dist/cli/{chunk-5VSPRRTI.js → chunk-TNUM4DFA.js} +7 -7
- package/dist/cli/{chunk-T6GPTJ5F.mjs → chunk-TZVW5JH3.mjs} +1 -1
- package/dist/cli/{chunk-N5HSG4OV.js → chunk-UJYX4VLX.js} +5 -5
- package/dist/cli/{chunk-XTYHZEJ2.js → chunk-V4EYJKGJ.js} +36 -0
- package/dist/cli/{chunk-PQKD5DMT.js → chunk-VAOGM5VS.js} +19 -19
- package/dist/cli/{chunk-A6E7TCK2.mjs → chunk-WCM64BRH.mjs} +5 -5
- package/dist/cli/{chunk-P3DP56HB.js → chunk-WDHHQEWQ.js} +41 -41
- package/dist/cli/{chunk-ADLDU2QG.js → chunk-WHYNYL3M.js} +6 -6
- package/dist/cli/{chunk-3I5TU5XE.js → chunk-XIIQNSWA.js} +8 -8
- package/dist/cli/{chunk-YZ2ZPHWR.js → chunk-XL3CEPZA.js} +9 -9
- package/dist/cli/{chunk-CLO562KG.mjs → chunk-XYM3SQZN.mjs} +1 -1
- package/dist/cli/{chunk-IP3XJTWA.mjs → chunk-Y6647AIY.mjs} +2 -2
- package/dist/cli/{chunk-4WQR4DG4.mjs → chunk-Z2OYTXLK.mjs} +1 -1
- package/dist/cli/{chunk-N2BCPZVR.mjs → chunk-ZJFU2COM.mjs} +5 -5
- package/dist/cli/{chunk-O765M4LT.js → chunk-ZTJQKHLM.js} +2 -2
- package/dist/cli/command-docs.js +3 -2
- package/dist/cli/command-docs.mjs +2 -1
- package/dist/cli/concurrent-runs-help-DU5STFGB.mjs +21 -0
- package/dist/cli/concurrent-runs-help-HIPM5BBV.js +21 -0
- package/dist/cli/{csv-LM7FBECI.js → csv-FBNS6SM3.js} +13 -13
- package/dist/cli/{csv-2YKLUKDR.mjs → csv-OJCMBODT.mjs} +4 -4
- package/dist/cli/{db-234UBWJH.mjs → db-43RQRF64.mjs} +6 -6
- package/dist/cli/{db-5PMA4IVW.js → db-XRGJJ2KA.js} +27 -27
- package/dist/cli/{describe-W26LW5O7.mjs → describe-I42Y3PWR.mjs} +17 -17
- package/dist/cli/describe-LWZCGAXU.js +49 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-3S736GXX.js → executions-LH46O4PG.js} +8 -8
- package/dist/cli/{executions-GD7GXTJM.mjs → executions-QXGVQHQF.mjs} +6 -6
- package/dist/cli/{feedback-GBV5HJJZ.mjs → feedback-ELFINGTM.mjs} +6 -6
- package/dist/cli/{feedback-BUWTDY4R.js → feedback-ERYIV6MT.js} +14 -14
- package/dist/cli/git-OV2TGYVE.js +25 -0
- package/dist/cli/{git-YXJGTDQL.mjs → git-V2XWB6LN.mjs} +5 -5
- package/dist/cli/index.js +153 -143
- package/dist/cli/index.mjs +53 -43
- package/dist/cli/{legacy-noops-UJM6GBNP.mjs → legacy-noops-ULL2EA37.mjs} +6 -6
- package/dist/cli/{legacy-noops-ZSF64V2U.js → legacy-noops-Y3OKNVWH.js} +9 -9
- package/dist/cli/{monitors-XQ2GNH6D.js → monitors-DNQXCRJZ.js} +100 -100
- package/dist/cli/{monitors-UERUQ6CT.mjs → monitors-L34NROM3.mjs} +7 -7
- package/dist/cli/{org-IF6MPVNR.js → org-JETA62CO.js} +86 -86
- package/dist/cli/{org-CP4VLH6M.mjs → org-L3HTEEXL.mjs} +6 -6
- package/dist/cli/{play-2NHQO5MO.js → play-GTGJRNWI.js} +473 -455
- package/dist/cli/{play-ZWDYYVPI.mjs → play-JHGLSSJP.mjs} +35 -17
- package/dist/cli/{providers-LOPXQN56.js → providers-7VH7PH2Q.js} +9 -9
- package/dist/cli/{providers-2CVIATU4.mjs → providers-IQVHZJ27.mjs} +6 -6
- package/dist/cli/{quickstart-N4WDEQZY.js → quickstart-M25JNU3O.js} +6 -6
- package/dist/cli/{quickstart-KVCFXLID.mjs → quickstart-ZDBC45PM.mjs} +4 -4
- package/dist/cli/{run-BDT5LK3I.js → run-MPZGX3YD.js} +42 -42
- package/dist/cli/{run-RUXHYWLF.mjs → run-NEEWZBTX.mjs} +22 -22
- package/dist/cli/search-HUN2YRQE.js +32 -0
- package/dist/cli/{search-BFUTNPA5.mjs → search-YXAFB4QQ.mjs} +7 -7
- package/dist/cli/{search-output-CTXI2QZU.js → search-output-4PH5HSJC.js} +6 -6
- package/dist/cli/{search-output-WUGH4PZA.mjs → search-output-67BBIXIZ.mjs} +4 -4
- package/dist/cli/{secrets-Z4XQVTC6.mjs → secrets-445FER3C.mjs} +6 -6
- package/dist/cli/{secrets-BZJZYFOU.js → secrets-HLUBDN3H.js} +15 -15
- package/dist/cli/{sessions-VZXR3MQZ.mjs → sessions-CCKXJNWT.mjs} +6 -6
- package/dist/cli/sessions-T2RNWC6B.js +22 -0
- package/dist/cli/{settings-VYEZFR4L.mjs → settings-3XCZGGVF.mjs} +12 -12
- package/dist/cli/{settings-WBYA4JMM.js → settings-WXJIQS5J.js} +85 -85
- package/dist/cli/{setup-FS2RMSS2.js → setup-CKETRFFN.js} +49 -49
- package/dist/cli/{setup-H7KCI4SO.mjs → setup-TOSX6NER.mjs} +9 -9
- package/dist/cli/skills-FXM2RHHO.js +36 -0
- package/dist/cli/{skills-YQNSJUUG.mjs → skills-Q7NLCIJJ.mjs} +7 -7
- package/dist/cli/{tools-ZF6SVEGW.mjs → tools-GY6QMYTZ.mjs} +16 -16
- package/dist/cli/tools-XLVDZTWQ.js +56 -0
- package/dist/cli/{update-RKQNNJM4.mjs → update-A7JRUN4S.mjs} +9 -9
- package/dist/cli/update-AZINHILP.js +34 -0
- package/dist/cli/{views-KN7FEDGT.js → views-GUWC4SNI.js} +21 -21
- package/dist/cli/{views-JHHOTWDU.mjs → views-JG7FDEJR.mjs} +6 -6
- package/dist/cli/{workflow-2WHSKTTV.js → workflow-CXNW7ICH.js} +17 -17
- package/dist/cli/{workflow-AAYLCLWA.mjs → workflow-QZCYSQ5G.mjs} +7 -7
- package/dist/{client-DZTnAv4B.d.ts → client-B1fixtK1.d.ts} +1 -1
- package/dist/{client-D0uDBybG.d.mts → client-CE4QBVbp.d.mts} +1 -1
- package/dist/{client-core-BhWf8Y1b.d.mts → client-core-2BkNBgrx.d.mts} +3 -1
- package/dist/{client-core-og3AP1LL.d.ts → client-core-C-3FVlVq.d.ts} +3 -1
- package/dist/{compiler-manifest-Bes3OVA3.d.mts → compiler-manifest-Cys06iYg.d.mts} +14 -0
- package/dist/{compiler-manifest-Bes3OVA3.d.ts → compiler-manifest-Cys06iYg.d.ts} +14 -0
- package/dist/{errors-Dc5r42ks.d.mts → errors-B6eMjKcr.d.mts} +1 -1
- package/dist/{errors-BJm4lLWc.d.ts → errors-rdOUqcU2.d.ts} +1 -1
- package/dist/{index-DTkiz_Ur.d.mts → index-CZdYO81A.d.mts} +1 -1
- package/dist/{index-BfV7mRPF.d.ts → index-ejWadAL5.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +119 -112
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +1 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-4WEVLYK4.js +0 -43
- package/dist/cli/describe-C7GOSGYB.js +0 -49
- package/dist/cli/git-YG36MROC.js +0 -25
- package/dist/cli/search-ATDDVADT.js +0 -32
- package/dist/cli/sessions-HNU35AFM.js +0 -22
- package/dist/cli/skills-VPIURCAZ.js +0 -36
- package/dist/cli/tools-273GS5HU.js +0 -56
- package/dist/cli/update-TOD3XY55.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 _chunkWHYNYL3Mjs = require('./chunk-WHYNYL3M.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZTJQKHLMjs = require('./chunk-ZTJQKHLM.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,17 +13,17 @@ var _chunkO765M4LTjs = require('./chunk-O765M4LT.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkBGBRA2S6js = require('./chunk-BGBRA2S6.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 _chunkH6IA6XREjs = require('./chunk-H6IA6XRE.js');
|
|
24
|
+
require('./chunk-LXLCQP4A.js');
|
|
25
|
+
require('./chunk-2U4VACUA.js');
|
|
26
|
+
require('./chunk-WDHHQEWQ.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -35,15 +35,16 @@ require('./chunk-P3DP56HB.js');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkM4DB6BBPjs = require('./chunk-M4DB6BBP.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkAOYW62XOjs = require('./chunk-AOYW62XO.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkV4EYJKGJjs = require('./chunk-V4EYJKGJ.js');
|
|
47
|
+
require('./chunk-GWHA4DAC.js');
|
|
47
48
|
require('./chunk-R7J7CJPZ.js');
|
|
48
49
|
require('./chunk-YGCKMI5P.js');
|
|
49
50
|
|
|
@@ -64,7 +65,7 @@ require('./chunk-YGCKMI5P.js');
|
|
|
64
65
|
|
|
65
66
|
|
|
66
67
|
|
|
67
|
-
var
|
|
68
|
+
var _chunkVAOGM5VSjs = require('./chunk-VAOGM5VS.js');
|
|
68
69
|
|
|
69
70
|
|
|
70
71
|
|
|
@@ -72,18 +73,18 @@ var _chunkPQKD5DMTjs = require('./chunk-PQKD5DMT.js');
|
|
|
72
73
|
|
|
73
74
|
|
|
74
75
|
|
|
75
|
-
var
|
|
76
|
+
var _chunkMVIVF4BWjs = require('./chunk-MVIVF4BW.js');
|
|
76
77
|
|
|
77
78
|
|
|
78
79
|
|
|
79
80
|
|
|
80
|
-
var
|
|
81
|
+
var _chunkAJVK4XC5js = require('./chunk-AJVK4XC5.js');
|
|
81
82
|
|
|
82
83
|
|
|
83
84
|
var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
|
|
84
85
|
require('./chunk-XNYIZMNQ.js');
|
|
85
86
|
require('./chunk-BBTKAASQ.js');
|
|
86
|
-
require('./chunk-
|
|
87
|
+
require('./chunk-DV3ESQ4X.js');
|
|
87
88
|
require('./chunk-OG64RBAC.js');
|
|
88
89
|
require('./chunk-RLX5ZFNX.js');
|
|
89
90
|
require('./chunk-COGTRVWW.js');
|
|
@@ -164,56 +165,56 @@ var _os = require('os');
|
|
|
164
165
|
var COMMAND_GROUPS = [
|
|
165
166
|
{
|
|
166
167
|
names: ["auth"],
|
|
167
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
168
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-XA3K5LH2.js")))).registerAuthCommands
|
|
168
169
|
},
|
|
169
170
|
{
|
|
170
171
|
names: ["providers"],
|
|
171
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
172
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-7VH7PH2Q.js")))).registerProviderCommands
|
|
172
173
|
},
|
|
173
174
|
{
|
|
174
175
|
names: ["search"],
|
|
175
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
176
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-HUN2YRQE.js")))).registerSearchCommand
|
|
176
177
|
},
|
|
177
178
|
{
|
|
178
179
|
names: ["describe"],
|
|
179
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
180
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-LWZCGAXU.js")))).registerDescribeCommand
|
|
180
181
|
},
|
|
181
182
|
{
|
|
182
183
|
names: ["run"],
|
|
183
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
184
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-MPZGX3YD.js")))).registerRunCommand
|
|
184
185
|
},
|
|
185
186
|
{
|
|
186
187
|
names: ["tools"],
|
|
187
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
188
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-XLVDZTWQ.js")))).registerToolsCommands
|
|
188
189
|
},
|
|
189
190
|
{
|
|
190
191
|
names: ["executions"],
|
|
191
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
192
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-LH46O4PG.js")))).registerExecutionsCommands
|
|
192
193
|
},
|
|
193
194
|
{
|
|
194
195
|
names: ["plays", "runs"],
|
|
195
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
196
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-GTGJRNWI.js")))).registerPlayCommands
|
|
196
197
|
},
|
|
197
198
|
{
|
|
198
199
|
names: ["sessions"],
|
|
199
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
200
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-T2RNWC6B.js")))).registerSessionsCommands
|
|
200
201
|
},
|
|
201
202
|
{
|
|
202
203
|
names: ["workflows"],
|
|
203
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
204
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-CXNW7ICH.js")))).registerWorkflowCommands
|
|
204
205
|
},
|
|
205
206
|
{
|
|
206
207
|
names: ["views"],
|
|
207
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-
|
|
208
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-GUWC4SNI.js")))).registerViewsCommands
|
|
208
209
|
},
|
|
209
210
|
{
|
|
210
211
|
names: ["secrets"],
|
|
211
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
212
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-HLUBDN3H.js")))).registerSecretsCommands
|
|
212
213
|
},
|
|
213
214
|
{
|
|
214
215
|
names: ["settings", "notifications"],
|
|
215
216
|
load: async () => {
|
|
216
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
217
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-WXJIQS5J.js")));
|
|
217
218
|
return (p) => {
|
|
218
219
|
commands.registerSettingsCommands(p);
|
|
219
220
|
commands.registerNotificationCommands(p);
|
|
@@ -222,51 +223,51 @@ var COMMAND_GROUPS = [
|
|
|
222
223
|
},
|
|
223
224
|
{
|
|
224
225
|
names: ["billing"],
|
|
225
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
226
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-6433M4BX.js")))).registerBillingCommands
|
|
226
227
|
},
|
|
227
228
|
{
|
|
228
229
|
names: ["monitors"],
|
|
229
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
230
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-DNQXCRJZ.js")))).registerMonitorsCommands
|
|
230
231
|
},
|
|
231
232
|
{
|
|
232
233
|
names: ["org"],
|
|
233
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
234
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-JETA62CO.js")))).registerOrgCommands
|
|
234
235
|
},
|
|
235
236
|
{
|
|
236
237
|
names: ["git", "projects", "deployments"],
|
|
237
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
238
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-OV2TGYVE.js")))).registerGitCommands
|
|
238
239
|
},
|
|
239
240
|
{
|
|
240
241
|
names: ["csv"],
|
|
241
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
242
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-FBNS6SM3.js")))).registerCsvCommands
|
|
242
243
|
},
|
|
243
244
|
{
|
|
244
245
|
names: ["db"],
|
|
245
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
246
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-XRGJJ2KA.js")))).registerDbCommands
|
|
246
247
|
},
|
|
247
248
|
{
|
|
248
249
|
names: ["feedback"],
|
|
249
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
250
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-ERYIV6MT.js")))).registerFeedbackCommands
|
|
250
251
|
},
|
|
251
252
|
{
|
|
252
253
|
names: ["enrich", "session", "backend"],
|
|
253
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
254
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-Y3OKNVWH.js")))).registerDeprecatedCommands
|
|
254
255
|
},
|
|
255
256
|
{
|
|
256
257
|
names: ["update"],
|
|
257
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
258
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-AZINHILP.js")))).registerUpdateCommand
|
|
258
259
|
},
|
|
259
260
|
{
|
|
260
261
|
names: ["skills", "skills-auto-sync"],
|
|
261
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
262
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-FXM2RHHO.js")))).registerSkillsCommand
|
|
262
263
|
},
|
|
263
264
|
{
|
|
264
265
|
names: ["setup", "doctor"],
|
|
265
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
266
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-CKETRFFN.js")))).registerSetupCommands
|
|
266
267
|
},
|
|
267
268
|
{
|
|
268
269
|
names: ["quickstart"],
|
|
269
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
270
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-M25JNU3O.js")))).registerQuickstartCommands
|
|
270
271
|
}
|
|
271
272
|
];
|
|
272
273
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -292,8 +293,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
292
293
|
function createDeferredPlayRunMaintenance(input) {
|
|
293
294
|
return async () => {
|
|
294
295
|
try {
|
|
295
|
-
const skillsVersion =
|
|
296
|
-
const compatibility = await
|
|
296
|
+
const skillsVersion = _chunkMVIVF4BWjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
297
|
+
const compatibility = await _chunkH6IA6XREjs.traceCliSpan.call(void 0,
|
|
297
298
|
"cli.sdk_compatibility_deferred",
|
|
298
299
|
{
|
|
299
300
|
baseUrl: input.baseUrl,
|
|
@@ -301,24 +302,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
301
302
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
302
303
|
},
|
|
303
304
|
async () => {
|
|
304
|
-
const trusted =
|
|
305
|
+
const trusted = _chunkM4DB6BBPjs.readTrustedCleanCompatibility.call(void 0,
|
|
305
306
|
input.baseUrl,
|
|
306
307
|
"plays run",
|
|
307
308
|
skillsVersion
|
|
308
309
|
);
|
|
309
310
|
if (trusted) return { response: trusted, error: null };
|
|
310
|
-
return
|
|
311
|
+
return _chunkM4DB6BBPjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
311
312
|
command: "plays run",
|
|
312
313
|
skillsVersion,
|
|
313
314
|
persistCache: input.policy !== "off",
|
|
314
|
-
catalog:
|
|
315
|
+
catalog: _chunkBGBRA2S6js.compatibilityCatalog.call(void 0, input.command)
|
|
315
316
|
});
|
|
316
317
|
}
|
|
317
318
|
);
|
|
318
319
|
if (compatibility.error || !compatibility.response) return;
|
|
319
320
|
const automaticUpdate = compatibility.response.auto_update;
|
|
320
321
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
321
|
-
await
|
|
322
|
+
await _chunkBGBRA2S6js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
322
323
|
compatibility.response,
|
|
323
324
|
input.baseUrl,
|
|
324
325
|
input.policy
|
|
@@ -328,7 +329,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
328
329
|
compatibility.response,
|
|
329
330
|
"skills"
|
|
330
331
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
331
|
-
await
|
|
332
|
+
await _chunkM4DB6BBPjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
332
333
|
update: skillsUpdate,
|
|
333
334
|
mode: "detached"
|
|
334
335
|
});
|
|
@@ -356,8 +357,8 @@ var MAX_SESSIONS = 20;
|
|
|
356
357
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
357
358
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
358
359
|
}
|
|
359
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
360
|
-
const explicit =
|
|
360
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkAJVK4XC5js.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
361
|
+
const explicit = _chunkV4EYJKGJjs.helpDetailFromArgv.call(void 0, argv);
|
|
361
362
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
362
363
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
363
364
|
const path = helpSeenPath(homeDir);
|
|
@@ -454,7 +455,7 @@ function shouldReport(stdout, stderr) {
|
|
|
454
455
|
}
|
|
455
456
|
function toolName(action) {
|
|
456
457
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
457
|
-
return typeof toolId === "string" ?
|
|
458
|
+
return typeof toolId === "string" ? _chunkVAOGM5VSjs.redactFailureText.call(void 0, toolId) : null;
|
|
458
459
|
}
|
|
459
460
|
function chunkText(chunk) {
|
|
460
461
|
if (typeof chunk === "string") return chunk;
|
|
@@ -485,14 +486,14 @@ function watch(stream) {
|
|
|
485
486
|
}
|
|
486
487
|
async function postCommandOutput(body) {
|
|
487
488
|
try {
|
|
488
|
-
const baseUrl =
|
|
489
|
-
const apiKey =
|
|
489
|
+
const baseUrl = _chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
490
|
+
const apiKey = _chunkMVIVF4BWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
490
491
|
if (!apiKey) return;
|
|
491
|
-
const agentSessionId =
|
|
492
|
+
const agentSessionId = _chunkAJVK4XC5js.agentSessionIdFromEnvironment.call(void 0, );
|
|
492
493
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
493
494
|
method: "POST",
|
|
494
495
|
headers: {
|
|
495
|
-
...
|
|
496
|
+
..._chunkVAOGM5VSjs.failureReportHeaders.call(void 0, apiKey),
|
|
496
497
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
497
498
|
},
|
|
498
499
|
body: JSON.stringify(body),
|
|
@@ -508,14 +509,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
508
509
|
const stdoutWatch = watch(streams.stdout);
|
|
509
510
|
const stderrWatch = watch(streams.stderr);
|
|
510
511
|
return async (finished) => {
|
|
511
|
-
if (
|
|
512
|
+
if (_chunkVAOGM5VSjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
512
513
|
const [stdout, stderr] = await Promise.all([
|
|
513
514
|
stdoutWatch.settled(),
|
|
514
515
|
stderrWatch.settled()
|
|
515
516
|
]);
|
|
516
517
|
if (!shouldReport(stdout, stderr)) return;
|
|
517
518
|
await postCommandOutput({
|
|
518
|
-
command:
|
|
519
|
+
command: _chunkVAOGM5VSjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
519
520
|
tool: toolName(finished.action),
|
|
520
521
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
521
522
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -546,7 +547,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
546
547
|
function printUsageErrorJson(code, message, commandPath) {
|
|
547
548
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
548
549
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
549
|
-
|
|
550
|
+
_chunkVAOGM5VSjs.printJson.call(void 0, {
|
|
550
551
|
ok: false,
|
|
551
552
|
error: {
|
|
552
553
|
code,
|
|
@@ -604,7 +605,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
604
605
|
);
|
|
605
606
|
}
|
|
606
607
|
async function runPlayRunnerHealthCheck() {
|
|
607
|
-
|
|
608
|
+
_chunkMVIVF4BWjs.resolveConfig.call(void 0, );
|
|
608
609
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
609
610
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
610
611
|
try {
|
|
@@ -634,7 +635,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
634
635
|
});
|
|
635
636
|
let exitCode = 1;
|
|
636
637
|
try {
|
|
637
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
638
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-GTGJRNWI.js")));
|
|
638
639
|
exitCode = await handlePlayRun([
|
|
639
640
|
file,
|
|
640
641
|
"--input",
|
|
@@ -674,7 +675,7 @@ function preflightErrorMessage(error) {
|
|
|
674
675
|
return error instanceof Error ? error.message : String(error);
|
|
675
676
|
}
|
|
676
677
|
async function runPreflightCheck() {
|
|
677
|
-
const baseUrl =
|
|
678
|
+
const baseUrl = _chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
678
679
|
const healthController = new AbortController();
|
|
679
680
|
const healthTimeout = setTimeout(
|
|
680
681
|
() => healthController.abort(),
|
|
@@ -691,14 +692,14 @@ async function runPreflightCheck() {
|
|
|
691
692
|
}).catch((error) => ({
|
|
692
693
|
status: "unreachable",
|
|
693
694
|
version: null,
|
|
694
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
695
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkAJVK4XC5js.connectionFailureMessage.call(void 0,
|
|
695
696
|
baseUrl,
|
|
696
697
|
error instanceof Error ? error : new Error(String(error))
|
|
697
698
|
)
|
|
698
699
|
})).finally(() => clearTimeout(healthTimeout));
|
|
699
|
-
const apiKey =
|
|
700
|
-
const http = apiKey ? new (0,
|
|
701
|
-
|
|
700
|
+
const apiKey = _chunkMVIVF4BWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
701
|
+
const http = apiKey ? new (0, _chunkMVIVF4BWjs.HttpClient)(
|
|
702
|
+
_chunkMVIVF4BWjs.resolveConfig.call(void 0, {
|
|
702
703
|
baseUrl,
|
|
703
704
|
apiKey,
|
|
704
705
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -743,7 +744,7 @@ async function runPreflightCheck() {
|
|
|
743
744
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
744
745
|
return {
|
|
745
746
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
746
|
-
cli_version:
|
|
747
|
+
cli_version: _chunkAJVK4XC5js.SDK_VERSION,
|
|
747
748
|
host: baseUrl,
|
|
748
749
|
health: {
|
|
749
750
|
status: healthResult.status,
|
|
@@ -770,7 +771,7 @@ async function runPreflightCheck() {
|
|
|
770
771
|
{
|
|
771
772
|
title: "preflight",
|
|
772
773
|
lines: [
|
|
773
|
-
`cli: ${
|
|
774
|
+
`cli: ${_chunkAJVK4XC5js.SDK_VERSION}`,
|
|
774
775
|
`host: ${baseUrl}`,
|
|
775
776
|
`health: ${healthResult.status}`,
|
|
776
777
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -797,12 +798,12 @@ function printPreflightHuman(data) {
|
|
|
797
798
|
}
|
|
798
799
|
async function newerCliCommandHint(baseUrl, command) {
|
|
799
800
|
if (!command.trim()) return null;
|
|
800
|
-
const { response, error } = await
|
|
801
|
+
const { response, error } = await _chunkM4DB6BBPjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
801
802
|
if (error || !response) return null;
|
|
802
803
|
const introduced = response.command_introduced_in;
|
|
803
804
|
if (introduced) {
|
|
804
805
|
return [
|
|
805
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
806
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkAJVK4XC5js.SDK_VERSION}.`,
|
|
806
807
|
` ${introduced.reason}`,
|
|
807
808
|
` Update with: ${response.update_command}`,
|
|
808
809
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -811,32 +812,33 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
811
812
|
if (!response.update_required) return null;
|
|
812
813
|
return [
|
|
813
814
|
response.message,
|
|
814
|
-
` Installed: ${
|
|
815
|
+
` Installed: ${_chunkAJVK4XC5js.SDK_VERSION}. Run: ${response.update_command}`,
|
|
815
816
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
816
817
|
].join("\n");
|
|
817
818
|
}
|
|
818
819
|
async function runMain(ensureTransport, onAction, suppressOutputReport) {
|
|
819
820
|
const mainStartedAt = Date.now();
|
|
820
|
-
|
|
821
|
+
_chunkVAOGM5VSjs.installJsonStderrGuard.call(void 0, );
|
|
821
822
|
let rootHelpStatus = "";
|
|
823
|
+
let concurrentRunsHelpStatus = "";
|
|
822
824
|
let commandFailed = false;
|
|
823
825
|
const deferredMaintenance = { inlinePlay: null };
|
|
824
|
-
|
|
826
|
+
_chunkH6IA6XREjs.recordCliTrace.call(void 0, {
|
|
825
827
|
phase: "cli.main_start",
|
|
826
828
|
argv: process.argv.slice(2)
|
|
827
829
|
});
|
|
828
830
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
829
|
-
const progress = printStartupPhase ?
|
|
831
|
+
const progress = printStartupPhase ? _chunkAOYW62XOjs.createCliProgress.call(void 0, true) : null;
|
|
830
832
|
if (printStartupPhase) {
|
|
831
833
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
832
834
|
}
|
|
833
835
|
const program = new (0, _commander.Command)();
|
|
834
836
|
program.name("deepline").description(
|
|
835
837
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
836
|
-
).version(
|
|
838
|
+
).version(_chunkAJVK4XC5js.SDK_VERSION, "-v, --version", "Show version").option(
|
|
837
839
|
"--maintenance <policy>",
|
|
838
840
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
839
|
-
|
|
841
|
+
_chunkH6IA6XREjs.parseCliMaintenancePolicy,
|
|
840
842
|
"configured"
|
|
841
843
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
842
844
|
"beforeAll",
|
|
@@ -885,9 +887,10 @@ Exit codes:
|
|
|
885
887
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
886
888
|
`
|
|
887
889
|
).addHelpText("afterAll", ({ command }) => {
|
|
888
|
-
const key =
|
|
890
|
+
const key = _chunkV4EYJKGJjs.commandDocKey.call(void 0, command);
|
|
889
891
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
890
|
-
|
|
892
|
+
const explanation = _chunkV4EYJKGJjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
893
|
+
return detail !== "quiet" && concurrentRunsHelpStatus ? `${explanation}${concurrentRunsHelpStatus}` : explanation;
|
|
891
894
|
});
|
|
892
895
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
893
896
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
@@ -895,25 +898,25 @@ Exit codes:
|
|
|
895
898
|
path: compatibilityCommand,
|
|
896
899
|
args: actionCommand.processedArgs
|
|
897
900
|
});
|
|
898
|
-
const maintenance =
|
|
901
|
+
const maintenance = _chunkH6IA6XREjs.resolveCliMaintenancePolicy.call(void 0,
|
|
899
902
|
actionCommand.optsWithGlobals()
|
|
900
903
|
);
|
|
901
904
|
if (actionCommand.name() !== "version") {
|
|
902
905
|
await ensureTransport();
|
|
903
906
|
}
|
|
904
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
907
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkM4DB6BBPjs.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(
|
|
905
908
|
compatibilityCommand
|
|
906
|
-
) &&
|
|
909
|
+
) && _chunkZTJQKHLMjs.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
|
|
907
910
|
return;
|
|
908
911
|
}
|
|
909
912
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
910
913
|
if (isToolExecuteCommand) {
|
|
911
|
-
|
|
914
|
+
_chunkBGBRA2S6js.beginToolExecuteCommand.call(void 0, );
|
|
912
915
|
}
|
|
913
916
|
if (isToolExecuteCommand) {
|
|
914
|
-
const baseUrl =
|
|
915
|
-
if (maintenance !== "off")
|
|
916
|
-
|
|
917
|
+
const baseUrl = _chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
918
|
+
if (maintenance !== "off") _chunkM4DB6BBPjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
919
|
+
_chunkH6IA6XREjs.recordCliTrace.call(void 0, {
|
|
917
920
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
918
921
|
baseUrl,
|
|
919
922
|
command: compatibilityCommand
|
|
@@ -921,9 +924,9 @@ Exit codes:
|
|
|
921
924
|
return;
|
|
922
925
|
}
|
|
923
926
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
924
|
-
if (!playDryRun &&
|
|
927
|
+
if (!playDryRun && _chunkWHYNYL3Mjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
925
928
|
if (maintenance !== "off") {
|
|
926
|
-
const baseUrl =
|
|
929
|
+
const baseUrl = _chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
927
930
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
928
931
|
baseUrl,
|
|
929
932
|
command: actionCommand,
|
|
@@ -932,27 +935,27 @@ Exit codes:
|
|
|
932
935
|
}
|
|
933
936
|
return;
|
|
934
937
|
}
|
|
935
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
938
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkBGBRA2S6js.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
936
939
|
if (printStartupPhase) {
|
|
937
940
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
938
941
|
}
|
|
939
942
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
940
|
-
const baseUrl =
|
|
941
|
-
if (maintenance !== "off")
|
|
943
|
+
const baseUrl = _chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
944
|
+
if (maintenance !== "off") _chunkM4DB6BBPjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
942
945
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
943
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
944
|
-
const trusted = isToolExecuteCommand ? null :
|
|
946
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkMVIVF4BWjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
947
|
+
const trusted = isToolExecuteCommand ? null : _chunkM4DB6BBPjs.readTrustedCleanCompatibility.call(void 0,
|
|
945
948
|
baseUrl,
|
|
946
949
|
compatibilityCommand,
|
|
947
950
|
skillsVersion
|
|
948
951
|
);
|
|
949
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
952
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkM4DB6BBPjs.readFreshCleanCompatibility.call(void 0,
|
|
950
953
|
baseUrl,
|
|
951
954
|
compatibilityCommand,
|
|
952
955
|
skillsVersion
|
|
953
956
|
) !== null;
|
|
954
957
|
if (trusted) {
|
|
955
|
-
|
|
958
|
+
_chunkH6IA6XREjs.recordCliTrace.call(void 0, {
|
|
956
959
|
phase: "cli.sdk_compatibility",
|
|
957
960
|
ms: 0,
|
|
958
961
|
ok: true,
|
|
@@ -962,7 +965,7 @@ Exit codes:
|
|
|
962
965
|
source: "trusted_cache"
|
|
963
966
|
});
|
|
964
967
|
}
|
|
965
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
968
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkH6IA6XREjs.traceCliSpan.call(void 0,
|
|
966
969
|
"cli.sdk_compatibility",
|
|
967
970
|
{
|
|
968
971
|
baseUrl,
|
|
@@ -970,12 +973,12 @@ Exit codes:
|
|
|
970
973
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
971
974
|
fastDeadline
|
|
972
975
|
},
|
|
973
|
-
() =>
|
|
976
|
+
() => _chunkM4DB6BBPjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
974
977
|
command: compatibilityCommand,
|
|
975
978
|
skillsVersion,
|
|
976
979
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
977
|
-
catalog:
|
|
978
|
-
...fastDeadline ? { timeoutMs:
|
|
980
|
+
catalog: _chunkBGBRA2S6js.compatibilityCatalog.call(void 0, actionCommand),
|
|
981
|
+
...fastDeadline ? { timeoutMs: _chunkM4DB6BBPjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
979
982
|
})
|
|
980
983
|
);
|
|
981
984
|
if (compatibility.error) {
|
|
@@ -986,7 +989,7 @@ Exit codes:
|
|
|
986
989
|
response: null
|
|
987
990
|
};
|
|
988
991
|
}
|
|
989
|
-
const relaunched = await
|
|
992
|
+
const relaunched = await _chunkBGBRA2S6js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
990
993
|
compatibility.response,
|
|
991
994
|
baseUrl,
|
|
992
995
|
maintenance
|
|
@@ -1000,14 +1003,14 @@ Exit codes:
|
|
|
1000
1003
|
};
|
|
1001
1004
|
}
|
|
1002
1005
|
const policy = compatibility.response;
|
|
1003
|
-
const jsonOutput =
|
|
1004
|
-
|
|
1006
|
+
const jsonOutput = _chunkVAOGM5VSjs.isJsonOutputMode.call(void 0, );
|
|
1007
|
+
_chunkM4DB6BBPjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1005
1008
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1006
|
-
|
|
1009
|
+
_chunkBGBRA2S6js.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkM4DB6BBPjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1007
1010
|
});
|
|
1008
1011
|
const advisory = compatibility.response;
|
|
1009
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1010
|
-
|
|
1012
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkM4DB6BBPjs.isCiEnvironment.call(void 0, ) && !_chunkBGBRA2S6js.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1013
|
+
_chunkVAOGM5VSjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1011
1014
|
}
|
|
1012
1015
|
return {
|
|
1013
1016
|
shouldContinue: true,
|
|
@@ -1024,10 +1027,10 @@ Exit codes:
|
|
|
1024
1027
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1025
1028
|
await runStartupStage(
|
|
1026
1029
|
"agent skills sync",
|
|
1027
|
-
() =>
|
|
1030
|
+
() => _chunkH6IA6XREjs.traceCliSpan.call(void 0,
|
|
1028
1031
|
"cli.sdk_skills_sync",
|
|
1029
1032
|
{ baseUrl: startup.baseUrl },
|
|
1030
|
-
() =>
|
|
1033
|
+
() => _chunkM4DB6BBPjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1031
1034
|
update: skillsUpdate,
|
|
1032
1035
|
mode: "detached"
|
|
1033
1036
|
})
|
|
@@ -1041,16 +1044,16 @@ Exit codes:
|
|
|
1041
1044
|
);
|
|
1042
1045
|
const carriesFeedback = requestedCommand === "feedback" || requestedCommand === "session" || requestedCommand === "sessions";
|
|
1043
1046
|
if (carriesFeedback) suppressOutputReport();
|
|
1044
|
-
const commandRegistrationStartedAt =
|
|
1047
|
+
const commandRegistrationStartedAt = _chunkH6IA6XREjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1045
1048
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1046
1049
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1047
|
-
|
|
1050
|
+
_chunkH6IA6XREjs.recordCliTrace.call(void 0, {
|
|
1048
1051
|
phase: "cli.command_registration",
|
|
1049
1052
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1050
1053
|
});
|
|
1051
1054
|
}
|
|
1052
1055
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1053
|
-
if (
|
|
1056
|
+
if (_chunkVAOGM5VSjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1054
1057
|
preflight.addHelpText(
|
|
1055
1058
|
"after",
|
|
1056
1059
|
`
|
|
@@ -1066,8 +1069,8 @@ Examples:
|
|
|
1066
1069
|
`
|
|
1067
1070
|
).action(async (options) => {
|
|
1068
1071
|
const data = await runPreflightCheck();
|
|
1069
|
-
if (
|
|
1070
|
-
|
|
1072
|
+
if (_chunkVAOGM5VSjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1073
|
+
_chunkVAOGM5VSjs.printJson.call(void 0, data);
|
|
1071
1074
|
} else {
|
|
1072
1075
|
printPreflightHuman(data);
|
|
1073
1076
|
}
|
|
@@ -1092,7 +1095,7 @@ Examples:
|
|
|
1092
1095
|
).action(async (options) => {
|
|
1093
1096
|
if (options.playRunner) {
|
|
1094
1097
|
const data = await runPlayRunnerHealthCheck();
|
|
1095
|
-
|
|
1098
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0, data, {
|
|
1096
1099
|
json: options.json,
|
|
1097
1100
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1098
1101
|
`
|
|
@@ -1100,15 +1103,15 @@ Examples:
|
|
|
1100
1103
|
return;
|
|
1101
1104
|
}
|
|
1102
1105
|
try {
|
|
1103
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1104
|
-
const baseUrl =
|
|
1106
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-XA3K5LH2.js")));
|
|
1107
|
+
const baseUrl = _chunkMVIVF4BWjs.resolveBaseUrlOnly.call(void 0, );
|
|
1105
1108
|
const [{ status, data }, banner] = await Promise.all([
|
|
1106
1109
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1107
1110
|
readStatusBanner(baseUrl)
|
|
1108
1111
|
]);
|
|
1109
1112
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1110
1113
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1111
|
-
|
|
1114
|
+
_chunkVAOGM5VSjs.printCommandEnvelope.call(void 0,
|
|
1112
1115
|
{ ...data, status_banner: banner },
|
|
1113
1116
|
{
|
|
1114
1117
|
json: options.json,
|
|
@@ -1136,16 +1139,16 @@ Examples:
|
|
|
1136
1139
|
`
|
|
1137
1140
|
).action((options) => {
|
|
1138
1141
|
if (options.json) {
|
|
1139
|
-
|
|
1142
|
+
_chunkVAOGM5VSjs.printCompactJson.call(void 0, { version: _chunkAJVK4XC5js.SDK_VERSION });
|
|
1140
1143
|
return;
|
|
1141
1144
|
}
|
|
1142
|
-
process.stdout.write(`deepline ${
|
|
1145
|
+
process.stdout.write(`deepline ${_chunkAJVK4XC5js.SDK_VERSION}
|
|
1143
1146
|
`);
|
|
1144
1147
|
});
|
|
1145
1148
|
if (process.argv.slice(2).length === 0) {
|
|
1146
1149
|
program.outputHelp({ error: true });
|
|
1147
1150
|
console.error("\nerror: missing command (see usage above)");
|
|
1148
|
-
|
|
1151
|
+
_chunkH6IA6XREjs.recordCliTrace.call(void 0, {
|
|
1149
1152
|
phase: "cli.main_total",
|
|
1150
1153
|
ms: Date.now() - mainStartedAt,
|
|
1151
1154
|
ok: false,
|
|
@@ -1157,16 +1160,16 @@ Examples:
|
|
|
1157
1160
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1158
1161
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1159
1162
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1160
|
-
if (!
|
|
1161
|
-
const baseUrl =
|
|
1163
|
+
if (!_chunkVAOGM5VSjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1164
|
+
const baseUrl = _chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, );
|
|
1162
1165
|
await ensureTransport();
|
|
1163
1166
|
const versionHint = await newerCliCommandHint(
|
|
1164
1167
|
baseUrl,
|
|
1165
1168
|
requestedTopLevelCommand
|
|
1166
1169
|
);
|
|
1167
|
-
if (
|
|
1170
|
+
if (_chunkVAOGM5VSjs.isJsonOutputMode.call(void 0, )) {
|
|
1168
1171
|
if (versionHint) {
|
|
1169
|
-
|
|
1172
|
+
_chunkVAOGM5VSjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1170
1173
|
}
|
|
1171
1174
|
printUsageErrorJson(
|
|
1172
1175
|
"commander.unknownCommand",
|
|
@@ -1188,19 +1191,26 @@ Examples:
|
|
|
1188
1191
|
const helpArgs = process.argv.slice(2);
|
|
1189
1192
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1190
1193
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1191
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1192
|
-
rootHelpStatus = `Version: ${
|
|
1194
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-XA3K5LH2.js")));
|
|
1195
|
+
rootHelpStatus = `Version: ${_chunkAJVK4XC5js.SDK_VERSION}
|
|
1193
1196
|
${await authStatusLine()}
|
|
1194
1197
|
`;
|
|
1195
1198
|
}
|
|
1199
|
+
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-HIPM5BBV.js")));
|
|
1201
|
+
if (CONCURRENT_RUNS_HELP_COMMANDS.has(helpPositionals.slice(0, 2).join(" "))) {
|
|
1202
|
+
await ensureTransport();
|
|
1203
|
+
concurrentRunsHelpStatus = await read();
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1196
1206
|
await program.parseAsync(process.argv);
|
|
1197
|
-
|
|
1207
|
+
_chunkH6IA6XREjs.recordCliTrace.call(void 0, {
|
|
1198
1208
|
phase: "cli.main_total",
|
|
1199
1209
|
ms: Date.now() - mainStartedAt,
|
|
1200
1210
|
ok: true
|
|
1201
1211
|
});
|
|
1202
1212
|
if (!carriesFeedback) {
|
|
1203
|
-
await
|
|
1213
|
+
await _chunkVAOGM5VSjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1204
1214
|
argv: process.argv.slice(2),
|
|
1205
1215
|
startedAtMs: mainStartedAt,
|
|
1206
1216
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1209,14 +1219,14 @@ ${await authStatusLine()}
|
|
|
1209
1219
|
} catch (error) {
|
|
1210
1220
|
commandFailed = true;
|
|
1211
1221
|
const commanderError = asCommanderError(error);
|
|
1212
|
-
|
|
1222
|
+
_chunkH6IA6XREjs.recordCliTrace.call(void 0, {
|
|
1213
1223
|
phase: "cli.main_total",
|
|
1214
1224
|
ms: Date.now() - mainStartedAt,
|
|
1215
1225
|
ok: false,
|
|
1216
1226
|
error: error instanceof Error ? error.message : String(error)
|
|
1217
1227
|
});
|
|
1218
1228
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1219
|
-
const wantsJson =
|
|
1229
|
+
const wantsJson = _chunkVAOGM5VSjs.isJsonOutputMode.call(void 0, );
|
|
1220
1230
|
if (commanderError) {
|
|
1221
1231
|
const grammarError = [
|
|
1222
1232
|
"commander.unknownCommand",
|
|
@@ -1227,12 +1237,12 @@ ${await authStatusLine()}
|
|
|
1227
1237
|
if (grammarError) {
|
|
1228
1238
|
await ensureTransport();
|
|
1229
1239
|
const versionHint = await newerCliCommandHint(
|
|
1230
|
-
|
|
1240
|
+
_chunkMVIVF4BWjs.autoDetectBaseUrl.call(void 0, ),
|
|
1231
1241
|
commandPath
|
|
1232
1242
|
);
|
|
1233
1243
|
if (wantsJson) {
|
|
1234
1244
|
if (versionHint) {
|
|
1235
|
-
|
|
1245
|
+
_chunkVAOGM5VSjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1236
1246
|
}
|
|
1237
1247
|
} else {
|
|
1238
1248
|
if (versionHint) console.error(versionHint);
|
|
@@ -1252,43 +1262,43 @@ ${await authStatusLine()}
|
|
|
1252
1262
|
return;
|
|
1253
1263
|
} else if (wantsJson) {
|
|
1254
1264
|
if (error instanceof _chunk2GJZLIKWjs.AuthError) {
|
|
1255
|
-
|
|
1265
|
+
_chunkVAOGM5VSjs.addJsonNotice.call(void 0, {
|
|
1256
1266
|
code: "auth_required",
|
|
1257
1267
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1258
1268
|
});
|
|
1259
1269
|
}
|
|
1260
|
-
const providerConcurrency =
|
|
1270
|
+
const providerConcurrency = _chunkVAOGM5VSjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1261
1271
|
if (providerConcurrency) {
|
|
1262
|
-
|
|
1272
|
+
_chunkVAOGM5VSjs.addJsonNotice.call(void 0, {
|
|
1263
1273
|
code: "provider_concurrency",
|
|
1264
1274
|
message: providerConcurrency
|
|
1265
1275
|
});
|
|
1266
1276
|
}
|
|
1267
|
-
const payload =
|
|
1268
|
-
|
|
1277
|
+
const payload = _chunkVAOGM5VSjs.errorToJsonPayload.call(void 0, error);
|
|
1278
|
+
_chunkVAOGM5VSjs.printJson.call(void 0, {
|
|
1269
1279
|
...payload,
|
|
1270
1280
|
// The envelope names the code the process exits with, so a caller
|
|
1271
1281
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1272
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1282
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkVAOGM5VSjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1273
1283
|
...error instanceof _chunk2GJZLIKWjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1274
1284
|
});
|
|
1275
1285
|
} else if (error instanceof Error) {
|
|
1276
1286
|
console.error(`Error: ${error.message}`);
|
|
1277
|
-
const toolDiagnostic =
|
|
1287
|
+
const toolDiagnostic = _chunkVAOGM5VSjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1278
1288
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1279
1289
|
if (error instanceof _chunk2GJZLIKWjs.AuthError) {
|
|
1280
1290
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1281
1291
|
}
|
|
1282
|
-
const providerConcurrency =
|
|
1292
|
+
const providerConcurrency = _chunkVAOGM5VSjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1283
1293
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1284
1294
|
} else {
|
|
1285
1295
|
console.error(`Error: ${String(error)}`);
|
|
1286
1296
|
}
|
|
1287
1297
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1288
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1298
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkVAOGM5VSjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1289
1299
|
process.exitCode = failureExitCode;
|
|
1290
1300
|
if (!carriesFeedback) {
|
|
1291
|
-
await
|
|
1301
|
+
await _chunkVAOGM5VSjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1292
1302
|
argv: process.argv.slice(2),
|
|
1293
1303
|
startedAtMs: mainStartedAt,
|
|
1294
1304
|
exitCode: failureExitCode,
|
|
@@ -1296,13 +1306,13 @@ ${await authStatusLine()}
|
|
|
1296
1306
|
});
|
|
1297
1307
|
}
|
|
1298
1308
|
} finally {
|
|
1299
|
-
|
|
1309
|
+
_chunkBGBRA2S6js.finishToolExecuteCommand.call(void 0, );
|
|
1300
1310
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1301
1311
|
deferredMaintenance.inlinePlay = null;
|
|
1302
1312
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1303
1313
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1304
1314
|
}
|
|
1305
|
-
await
|
|
1315
|
+
await _chunkBGBRA2S6js.runDeferredAutoUpdate.call(void 0, );
|
|
1306
1316
|
}
|
|
1307
1317
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1308
1318
|
}
|
|
@@ -1310,7 +1320,7 @@ async function main() {
|
|
|
1310
1320
|
let disposeTransport;
|
|
1311
1321
|
const ensureTransport = async () => {
|
|
1312
1322
|
if (disposeTransport) return;
|
|
1313
|
-
const transportStartedAt =
|
|
1323
|
+
const transportStartedAt = _chunkH6IA6XREjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1314
1324
|
const hasProxy = [
|
|
1315
1325
|
"HTTP_PROXY",
|
|
1316
1326
|
"http_proxy",
|
|
@@ -1322,7 +1332,7 @@ async function main() {
|
|
|
1322
1332
|
disposeTransport = configureCliTransport();
|
|
1323
1333
|
}
|
|
1324
1334
|
if (transportStartedAt !== void 0) {
|
|
1325
|
-
|
|
1335
|
+
_chunkH6IA6XREjs.recordCliTrace.call(void 0, {
|
|
1326
1336
|
phase: "cli.transport_setup",
|
|
1327
1337
|
ms: performance.now() - transportStartedAt
|
|
1328
1338
|
});
|
|
@@ -1345,9 +1355,9 @@ async function main() {
|
|
|
1345
1355
|
skipOutputReport = true;
|
|
1346
1356
|
}
|
|
1347
1357
|
);
|
|
1348
|
-
const silentFailure =
|
|
1358
|
+
const silentFailure = _chunkVAOGM5VSjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1349
1359
|
if (silentFailure) {
|
|
1350
|
-
|
|
1360
|
+
_chunkVAOGM5VSjs.printJson.call(void 0, {
|
|
1351
1361
|
ok: false,
|
|
1352
1362
|
exitCode: Number(process.exitCode),
|
|
1353
1363
|
error: { code: "CLI_ERROR", message: silentFailure }
|