deepline 0.3.505 → 0.3.506
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/client-core.ts +121 -5
- package/dist/bundling-sources/sdk/src/index.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +176 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +17 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/overview.ts +118 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +29 -1
- package/dist/bundling-sources/shared_libs/monitors/legacy-radar-retirement.ts +29 -10
- package/dist/bundling-sources/shared_libs/monitors/package.json +4 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +8 -8
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +52 -5
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +48 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +13 -40
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +36 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-egress.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +66 -0
- package/dist/cli/auth-MMHG2OFE.js +43 -0
- package/dist/cli/{auth-AHE2EDQA.mjs → auth-ZHFONT2D.mjs} +5 -5
- package/dist/cli/{billing-JOIZPHON.js → billing-3Z7N4WTL.js} +101 -91
- package/dist/cli/{billing-7CPWTGGI.mjs → billing-B2YEMNHE.mjs} +27 -17
- package/dist/cli/{chunk-CA3SYXCS.js → chunk-26DJ4BDY.js} +2 -2
- package/dist/cli/{chunk-PZN24YQQ.mjs → chunk-2CFTDVEP.mjs} +2 -2
- package/dist/cli/{chunk-OMEDQ77C.mjs → chunk-2IXXB7OA.mjs} +5 -5
- package/dist/cli/{chunk-XHPB6RGY.js → chunk-2OY5DXTC.js} +1 -1
- package/dist/cli/{chunk-CSLLQWAB.mjs → chunk-3BFZEHBH.mjs} +1 -1
- package/dist/cli/{chunk-3YEOOXD4.js → chunk-3F676QXJ.js} +11 -11
- package/dist/cli/{chunk-WTQLUULB.js → chunk-5ARG7J7A.js} +6 -6
- package/dist/cli/{chunk-NARJWXBR.mjs → chunk-6RYVIZRP.mjs} +2 -2
- package/dist/cli/{chunk-EMUFF6EU.js → chunk-75NAFY36.js} +7 -7
- package/dist/cli/{chunk-BWAYMJ23.js → chunk-AD2WJUZA.js} +91 -48
- package/dist/cli/{chunk-JVKEZT7L.mjs → chunk-AFSYNOG4.mjs} +22 -1
- package/dist/cli/{chunk-OA6U5NVB.mjs → chunk-BJ5OX62J.mjs} +5 -5
- package/dist/cli/{chunk-7DDKLFOY.mjs → chunk-BQBPVUFJ.mjs} +3 -3
- package/dist/cli/{chunk-UZ24SF7N.mjs → chunk-CHGRURBN.mjs} +5 -5
- package/dist/cli/{chunk-JA7YBRP4.mjs → chunk-D7OCORZ7.mjs} +1 -1
- package/dist/cli/{chunk-IDAE5VDH.js → chunk-DB54ROPH.js} +5 -5
- package/dist/cli/{chunk-GAUNJCXQ.js → chunk-E554XCJI.js} +96 -96
- package/dist/cli/{chunk-IZYOYXG7.mjs → chunk-EN7GXLFX.mjs} +4 -4
- package/dist/cli/{chunk-7QLK2GHL.js → chunk-F53SGS3C.js} +5 -5
- package/dist/cli/{chunk-JSTKLYYD.js → chunk-F7IQQYKV.js} +2 -2
- package/dist/cli/{chunk-FIQ5UEIF.mjs → chunk-FFGQR5J3.mjs} +2 -2
- package/dist/cli/{chunk-SPN7U3MV.js → chunk-FWSEGIT6.js} +4 -4
- package/dist/cli/{chunk-K26YOPDO.js → chunk-GDHLL5EQ.js} +22 -1
- package/dist/cli/{chunk-ACI6CUDX.mjs → chunk-GJNIC2CO.mjs} +78 -45
- package/dist/cli/{chunk-QYGYVCRI.js → chunk-GRESJ3H3.js} +14 -14
- package/dist/cli/{chunk-MHZAG2ZQ.js → chunk-HINTYT5H.js} +93 -60
- package/dist/cli/{chunk-HASFFOSU.js → chunk-LRSRJJPD.js} +16 -16
- package/dist/cli/{chunk-ZLN2B5YA.js → chunk-MHRR47VQ.js} +3 -3
- package/dist/cli/{chunk-6FEN6VWZ.js → chunk-N7G36GXB.js} +26 -26
- package/dist/cli/{chunk-MAFZ64RN.mjs → chunk-ND4WPLTE.mjs} +2 -2
- package/dist/cli/{chunk-5XT4DZQL.mjs → chunk-O4DZG4VA.mjs} +2 -2
- package/dist/cli/{chunk-OORPAQVC.js → chunk-OD6TASBP.js} +8 -8
- package/dist/cli/{chunk-Y52XY56V.js → chunk-OHNMJ5XQ.js} +41 -41
- package/dist/cli/{chunk-4OFSAZN6.mjs → chunk-ONBXTEFQ.mjs} +46 -3
- package/dist/cli/{chunk-6U3AGJWI.mjs → chunk-OPBXKB57.mjs} +1 -1
- package/dist/cli/{chunk-W6I4N4JN.mjs → chunk-OUGJUM5X.mjs} +6 -6
- package/dist/cli/{chunk-VXKWF3AD.js → chunk-PRIHD5XS.js} +9 -9
- package/dist/cli/{chunk-RT3HJBIH.mjs → chunk-QAY5AS2H.mjs} +10 -10
- package/dist/cli/{chunk-GXMNOUHP.js → chunk-QP333GFE.js} +7 -7
- package/dist/cli/{chunk-7DDACLMX.js → chunk-SUJIVF6L.js} +16 -16
- package/dist/cli/{chunk-QGNNAZ5M.mjs → chunk-TEMORCEE.mjs} +1 -1
- package/dist/cli/{chunk-7AD565DO.mjs → chunk-TS4KFQKS.mjs} +1 -1
- package/dist/cli/{chunk-YBIVVAL7.mjs → chunk-XUY7WQ2R.mjs} +3 -3
- package/dist/cli/{chunk-PDLOPF5L.mjs → chunk-YEX6RPUO.mjs} +1 -1
- package/dist/cli/{chunk-WPCF7C6B.js → chunk-YJKKOSXS.js} +3 -3
- package/dist/cli/{chunk-SHKRL7CW.mjs → chunk-YVOS5KSG.mjs} +1 -1
- package/dist/cli/{chunk-52FPW2RD.mjs → chunk-YWZEBPXK.mjs} +2 -2
- package/dist/cli/{chunk-WTUC5VKB.mjs → chunk-Z7EHY2MF.mjs} +2 -2
- package/dist/cli/{chunk-LC4FG34E.js → chunk-ZM5BJ5MP.js} +53 -53
- package/dist/cli/{chunk-45XYW477.js → chunk-ZZDTWVCQ.js} +21 -21
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-DZHVIW3G.js → csv-7K7LK63Y.js} +13 -13
- package/dist/cli/{csv-WTPI6ZON.mjs → csv-ARHQ54HA.mjs} +4 -4
- package/dist/cli/{db-NR4PJ6AF.mjs → db-JBX24NJY.mjs} +6 -6
- package/dist/cli/{db-D7LPPNCC.js → db-V4Z2I6DY.js} +27 -27
- package/dist/cli/describe-AYXVS6DZ.js +50 -0
- package/dist/cli/{describe-NCKAJPUG.mjs → describe-RBDSGSZ7.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-RQVJ4LAB.mjs → executions-BAZEU63W.mjs} +6 -6
- package/dist/cli/{executions-UQG6LWEN.js → executions-XEZKV5QU.js} +8 -8
- package/dist/cli/{feedback-TCHA67IA.js → feedback-LOERESRU.js} +8 -8
- package/dist/cli/{feedback-RD4Y3YQR.mjs → feedback-YDSWBHCO.mjs} +4 -4
- package/dist/cli/{git-Z7434B7Y.mjs → git-4Z3W2CQU.mjs} +5 -5
- package/dist/cli/git-T6WKO7EA.js +25 -0
- package/dist/cli/index.js +145 -149
- package/dist/cli/index.mjs +46 -50
- package/dist/cli/{legacy-noops-23WRA7DH.js → legacy-noops-4QIQPVE5.js} +8 -8
- package/dist/cli/{legacy-noops-LQJU4UIV.mjs → legacy-noops-E4HH7S5O.mjs} +5 -5
- package/dist/cli/{monitors-Z6VYUZ2W.mjs → monitors-FPDW5DDM.mjs} +305 -8
- package/dist/cli/{monitors-KOWN7M3V.js → monitors-QBHDSDA7.js} +423 -126
- package/dist/cli/{org-2T5K2VP5.js → org-JO4GGSAH.js} +72 -72
- package/dist/cli/{org-UBNRO5XO.mjs → org-UCDHIHAD.mjs} +6 -6
- package/dist/cli/{pages-GHPJBVV3.mjs → pages-6V52IZXY.mjs} +6 -6
- package/dist/cli/{pages-SRXTU7XO.js → pages-FJAAXAWO.js} +18 -18
- package/dist/cli/{play-2HMZ57EZ.js → play-F3AENS6W.js} +317 -317
- package/dist/cli/{play-HRQKGTXA.mjs → play-MF4DWROJ.mjs} +18 -18
- package/dist/cli/{providers-JWJRFRR5.mjs → providers-NJJLTECA.mjs} +6 -6
- package/dist/cli/{providers-P5O676MZ.js → providers-XXOQLPX7.js} +9 -9
- package/dist/cli/{quickstart-YCY72TAO.js → quickstart-JCE3XGQG.js} +6 -6
- package/dist/cli/{quickstart-S7NZUQRO.mjs → quickstart-Z5MSMI7S.mjs} +4 -4
- package/dist/cli/{run-QWMRIUIU.mjs → run-56UGPIRL.mjs} +23 -23
- package/dist/cli/{run-MHLLGF4G.js → run-X2DNIW3F.js} +41 -41
- package/dist/cli/search-B753RTKC.js +33 -0
- package/dist/cli/{search-4BFTQUEP.mjs → search-SZYI4NBB.mjs} +8 -8
- package/dist/cli/{search-output-62LBVZHN.js → search-output-7UNT6EMP.js} +6 -6
- package/dist/cli/{search-output-LIYHDTBP.mjs → search-output-T35QNZUF.mjs} +4 -4
- package/dist/cli/{secrets-KKKHVSOO.js → secrets-JMUAVIVC.js} +15 -15
- package/dist/cli/{secrets-GW27V77E.mjs → secrets-Q36VC35L.mjs} +6 -6
- package/dist/cli/{sessions-R75LBGIL.mjs → sessions-HG6I3HMY.mjs} +5 -5
- package/dist/cli/{sessions-R3OEINAR.js → sessions-SUXU7OM7.js} +6 -6
- package/dist/cli/{settings-MQIHAEZN.js → settings-UIELQ5CV.js} +106 -79
- package/dist/cli/{settings-I3AQZSYG.mjs → settings-Z76XW4KF.mjs} +39 -12
- package/dist/cli/{setup-X3QRJERP.js → setup-2L7H5P2O.js} +50 -50
- package/dist/cli/{setup-2YA5MYMS.mjs → setup-OXNYAOQ4.mjs} +10 -10
- package/dist/cli/skills-DEVXYGYH.js +37 -0
- package/dist/cli/{skills-7252FOOI.mjs → skills-XSNLXJGI.mjs} +8 -8
- package/dist/cli/tools-SCGHABDL.js +57 -0
- package/dist/cli/{tools-SKQTSVGE.mjs → tools-SUSFAYFH.mjs} +17 -17
- package/dist/cli/update-BSIILGO3.js +35 -0
- package/dist/cli/{update-GNBBSKTB.mjs → update-ENSTG3QO.mjs} +10 -10
- package/dist/cli/{workflow-QB7YYWPP.js → workflow-FMBZNY4F.js} +17 -17
- package/dist/cli/{workflow-OJSAL5FO.mjs → workflow-Z33QE6VT.mjs} +7 -7
- package/dist/{client-DEJg0CZn.d.mts → client-BDbouy3Y.d.mts} +1 -1
- package/dist/{client-B3GSaSFn.d.ts → client-Cx0420fs.d.ts} +1 -1
- package/dist/{client-core-GQmy3N8y.d.ts → client-core-B4hq0-m2.d.ts} +51 -4
- package/dist/{client-core-C404E33V.d.mts → client-core-CwiVaMZ5.d.mts} +51 -4
- package/dist/{compiler-manifest-DaJrA2KV.d.mts → compiler-manifest-BeURaD5Y.d.mts} +2 -0
- package/dist/{compiler-manifest-DaJrA2KV.d.ts → compiler-manifest-BeURaD5Y.d.ts} +2 -0
- package/dist/{errors-KLga4bLr.d.ts → errors-BoPXPrSy.d.ts} +1 -1
- package/dist/{errors-BKnSYueU.d.mts → errors-kBuT4kGK.d.mts} +1 -1
- package/dist/{index-C5nAZ-VS.d.ts → index-D0crdGM1.d.ts} +1 -1
- package/dist/{index-C-8AFpWy.d.mts → index-DC7oRAAC.d.mts} +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 +115 -112
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- 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-SEPKNRHV.js +0 -43
- package/dist/cli/describe-HVQBTKFM.js +0 -50
- package/dist/cli/git-TUB2ZUEH.js +0 -25
- package/dist/cli/search-QPUHOEIL.js +0 -33
- package/dist/cli/skills-BPZWMZSL.js +0 -37
- package/dist/cli/tools-F7RVQ3IK.js +0 -57
- package/dist/cli/update-TLSY6LC2.js +0 -35
package/dist/cli/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkQP333GFEjs = require('./chunk-QP333GFE.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -10,17 +10,17 @@ var _chunkGXMNOUHPjs = require('./chunk-GXMNOUHP.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkZZDTWVCQjs = require('./chunk-ZZDTWVCQ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
20
|
+
var _chunk26DJ4BDYjs = require('./chunk-26DJ4BDY.js');
|
|
21
|
+
require('./chunk-LRSRJJPD.js');
|
|
22
|
+
require('./chunk-F7IQQYKV.js');
|
|
23
|
+
require('./chunk-OHNMJ5XQ.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -32,10 +32,10 @@ require('./chunk-Y52XY56V.js');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
-
var
|
|
35
|
+
var _chunkHINTYT5Hjs = require('./chunk-HINTYT5H.js');
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkYJKKOSXSjs = require('./chunk-YJKKOSXS.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
@@ -43,12 +43,12 @@ var _chunkWPCF7C6Bjs = require('./chunk-WPCF7C6B.js');
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkGRESJ3H3js = require('./chunk-GRESJ3H3.js');
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var
|
|
51
|
+
var _chunkGDHLL5EQjs = require('./chunk-GDHLL5EQ.js');
|
|
52
52
|
require('./chunk-R7J7CJPZ.js');
|
|
53
53
|
require('./chunk-YGCKMI5P.js');
|
|
54
54
|
|
|
@@ -63,7 +63,7 @@ require('./chunk-YGCKMI5P.js');
|
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
66
|
-
var
|
|
66
|
+
var _chunk75NAFY36js = require('./chunk-75NAFY36.js');
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
@@ -71,18 +71,18 @@ var _chunkEMUFF6EUjs = require('./chunk-EMUFF6EU.js');
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
|
-
var
|
|
74
|
+
var _chunkMHRR47VQjs = require('./chunk-MHRR47VQ.js');
|
|
75
75
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunkFWSEGIT6js = require('./chunk-FWSEGIT6.js');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
83
83
|
require('./chunk-XNYIZMNQ.js');
|
|
84
84
|
require('./chunk-DIAWYWT5.js');
|
|
85
|
-
require('./chunk-
|
|
85
|
+
require('./chunk-2OY5DXTC.js');
|
|
86
86
|
require('./chunk-OG64RBAC.js');
|
|
87
87
|
require('./chunk-RLX5ZFNX.js');
|
|
88
88
|
require('./chunk-COGTRVWW.js');
|
|
@@ -163,56 +163,56 @@ var _os = require('os');
|
|
|
163
163
|
var COMMAND_GROUPS = [
|
|
164
164
|
{
|
|
165
165
|
names: ["auth"],
|
|
166
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
166
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MMHG2OFE.js")))).registerAuthCommands
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
names: ["providers"],
|
|
170
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
170
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-XXOQLPX7.js")))).registerProviderCommands
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
names: ["search"],
|
|
174
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
174
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-B753RTKC.js")))).registerSearchCommand
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
names: ["describe"],
|
|
178
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
178
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-AYXVS6DZ.js")))).registerDescribeCommand
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
names: ["run"],
|
|
182
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
182
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-X2DNIW3F.js")))).registerRunCommand
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
names: ["tools"],
|
|
186
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
186
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-SCGHABDL.js")))).registerToolsCommands
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
names: ["executions"],
|
|
190
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
190
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-XEZKV5QU.js")))).registerExecutionsCommands
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
names: ["plays", "runs"],
|
|
194
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
194
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-F3AENS6W.js")))).registerPlayCommands
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
names: ["sessions"],
|
|
198
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
198
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-SUXU7OM7.js")))).registerSessionsCommands
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
names: ["workflows"],
|
|
202
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
202
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-FMBZNY4F.js")))).registerWorkflowCommands
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
names: ["pages"],
|
|
206
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-
|
|
206
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-FJAAXAWO.js")))).registerPagesCommands
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
names: ["secrets"],
|
|
210
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
210
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-JMUAVIVC.js")))).registerSecretsCommands
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
names: ["settings", "notifications"],
|
|
214
214
|
load: async () => {
|
|
215
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
215
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-UIELQ5CV.js")));
|
|
216
216
|
return (p) => {
|
|
217
217
|
commands.registerSettingsCommands(p);
|
|
218
218
|
commands.registerNotificationCommands(p);
|
|
@@ -221,51 +221,51 @@ var COMMAND_GROUPS = [
|
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
names: ["billing"],
|
|
224
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
224
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-3Z7N4WTL.js")))).registerBillingCommands
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
names: ["monitors"],
|
|
228
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
228
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-QBHDSDA7.js")))).registerMonitorsCommands
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
names: ["org"],
|
|
232
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
232
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-JO4GGSAH.js")))).registerOrgCommands
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
names: ["git", "projects", "deployments"],
|
|
236
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
236
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-T6WKO7EA.js")))).registerGitCommands
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
names: ["csv"],
|
|
240
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
240
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-7K7LK63Y.js")))).registerCsvCommands
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
names: ["db"],
|
|
244
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
244
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-V4Z2I6DY.js")))).registerDbCommands
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
names: ["feedback"],
|
|
248
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
248
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-LOERESRU.js")))).registerFeedbackCommands
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
names: ["enrich", "session", "backend"],
|
|
252
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
252
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-4QIQPVE5.js")))).registerDeprecatedCommands
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
names: ["update"],
|
|
256
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
256
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-BSIILGO3.js")))).registerUpdateCommand
|
|
257
257
|
},
|
|
258
258
|
{
|
|
259
259
|
names: ["skills", "skills-auto-sync"],
|
|
260
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
260
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-DEVXYGYH.js")))).registerSkillsCommand
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
names: ["setup", "doctor"],
|
|
264
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
264
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-2L7H5P2O.js")))).registerSetupCommands
|
|
265
265
|
},
|
|
266
266
|
{
|
|
267
267
|
names: ["quickstart"],
|
|
268
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
268
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-JCE3XGQG.js")))).registerQuickstartCommands
|
|
269
269
|
}
|
|
270
270
|
];
|
|
271
271
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -291,8 +291,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
291
291
|
function createDeferredPlayRunMaintenance(input) {
|
|
292
292
|
return async () => {
|
|
293
293
|
try {
|
|
294
|
-
const skillsVersion =
|
|
295
|
-
const compatibility = await
|
|
294
|
+
const skillsVersion = _chunkMHRR47VQjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
295
|
+
const compatibility = await _chunk26DJ4BDYjs.traceCliSpan.call(void 0,
|
|
296
296
|
"cli.sdk_compatibility_deferred",
|
|
297
297
|
{
|
|
298
298
|
baseUrl: input.baseUrl,
|
|
@@ -300,24 +300,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
300
300
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
301
301
|
},
|
|
302
302
|
async () => {
|
|
303
|
-
const trusted =
|
|
303
|
+
const trusted = _chunkHINTYT5Hjs.readTrustedCleanCompatibility.call(void 0,
|
|
304
304
|
input.baseUrl,
|
|
305
305
|
"plays run",
|
|
306
306
|
skillsVersion
|
|
307
307
|
);
|
|
308
308
|
if (trusted) return { response: trusted, error: null };
|
|
309
|
-
return
|
|
309
|
+
return _chunkHINTYT5Hjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
310
310
|
command: "plays run",
|
|
311
311
|
skillsVersion,
|
|
312
312
|
persistCache: input.policy !== "off",
|
|
313
|
-
catalog:
|
|
313
|
+
catalog: _chunkZZDTWVCQjs.compatibilityCatalog.call(void 0, input.command)
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
);
|
|
317
317
|
if (compatibility.error || !compatibility.response) return;
|
|
318
318
|
const automaticUpdate = compatibility.response.auto_update;
|
|
319
319
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
320
|
-
await
|
|
320
|
+
await _chunkZZDTWVCQjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
321
321
|
compatibility.response,
|
|
322
322
|
input.baseUrl,
|
|
323
323
|
input.policy
|
|
@@ -327,7 +327,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
327
327
|
compatibility.response,
|
|
328
328
|
"skills"
|
|
329
329
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
330
|
-
await
|
|
330
|
+
await _chunkHINTYT5Hjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
331
331
|
update: skillsUpdate,
|
|
332
332
|
mode: "detached"
|
|
333
333
|
});
|
|
@@ -355,8 +355,8 @@ var MAX_SESSIONS = 20;
|
|
|
355
355
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
356
356
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
357
357
|
}
|
|
358
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
359
|
-
const explicit =
|
|
358
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkFWSEGIT6js.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
359
|
+
const explicit = _chunkGDHLL5EQjs.helpDetailFromArgv.call(void 0, argv);
|
|
360
360
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
361
361
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
362
362
|
const path = helpSeenPath(homeDir);
|
|
@@ -453,7 +453,7 @@ function shouldReport(stdout, stderr) {
|
|
|
453
453
|
}
|
|
454
454
|
function toolName(action) {
|
|
455
455
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
456
|
-
return typeof toolId === "string" ?
|
|
456
|
+
return typeof toolId === "string" ? _chunkGRESJ3H3js.redactFailureText.call(void 0, toolId) : null;
|
|
457
457
|
}
|
|
458
458
|
function chunkText(chunk) {
|
|
459
459
|
if (typeof chunk === "string") return chunk;
|
|
@@ -484,14 +484,14 @@ function watch(stream) {
|
|
|
484
484
|
}
|
|
485
485
|
async function postCommandOutput(body) {
|
|
486
486
|
try {
|
|
487
|
-
const baseUrl =
|
|
488
|
-
const apiKey =
|
|
487
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
488
|
+
const apiKey = _chunkMHRR47VQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
489
489
|
if (!apiKey) return;
|
|
490
|
-
const agentSessionId =
|
|
490
|
+
const agentSessionId = _chunkFWSEGIT6js.agentSessionIdFromEnvironment.call(void 0, );
|
|
491
491
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
492
492
|
method: "POST",
|
|
493
493
|
headers: {
|
|
494
|
-
...
|
|
494
|
+
..._chunkGRESJ3H3js.failureReportHeaders.call(void 0, apiKey),
|
|
495
495
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
496
496
|
},
|
|
497
497
|
body: JSON.stringify(body),
|
|
@@ -507,14 +507,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
507
507
|
const stdoutWatch = watch(streams.stdout);
|
|
508
508
|
const stderrWatch = watch(streams.stderr);
|
|
509
509
|
return async (finished) => {
|
|
510
|
-
if (
|
|
510
|
+
if (_chunkGRESJ3H3js.isFailureReportingDisabled.call(void 0, )) return;
|
|
511
511
|
const [stdout, stderr] = await Promise.all([
|
|
512
512
|
stdoutWatch.settled(),
|
|
513
513
|
stderrWatch.settled()
|
|
514
514
|
]);
|
|
515
515
|
if (!shouldReport(stdout, stderr)) return;
|
|
516
516
|
await postCommandOutput({
|
|
517
|
-
command:
|
|
517
|
+
command: _chunkGRESJ3H3js.sanitizeCommand.call(void 0, invocation.argv),
|
|
518
518
|
tool: toolName(finished.action),
|
|
519
519
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
520
520
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -545,7 +545,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
545
545
|
function printUsageErrorJson(code, message, commandPath) {
|
|
546
546
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
547
547
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
548
|
-
|
|
548
|
+
_chunk75NAFY36js.printJson.call(void 0, {
|
|
549
549
|
ok: false,
|
|
550
550
|
error: {
|
|
551
551
|
code,
|
|
@@ -583,10 +583,6 @@ function isDeprecatedCommandInvocation() {
|
|
|
583
583
|
const command = process.argv.slice(2)[0];
|
|
584
584
|
return command === "session" || command === "backend" || command === "enrich";
|
|
585
585
|
}
|
|
586
|
-
function isAutoUpdateSettingsInvocation() {
|
|
587
|
-
const [command, subcommand] = process.argv.slice(2);
|
|
588
|
-
return command === "settings" && subcommand === "autoupdate";
|
|
589
|
-
}
|
|
590
586
|
function compatibilityCommandPath(command) {
|
|
591
587
|
const names = [];
|
|
592
588
|
let current = command;
|
|
@@ -607,7 +603,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
607
603
|
);
|
|
608
604
|
}
|
|
609
605
|
async function runPlayRunnerHealthCheck() {
|
|
610
|
-
|
|
606
|
+
_chunkMHRR47VQjs.resolveConfig.call(void 0, );
|
|
611
607
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
612
608
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
613
609
|
try {
|
|
@@ -637,7 +633,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
637
633
|
});
|
|
638
634
|
let exitCode = 1;
|
|
639
635
|
try {
|
|
640
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
636
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-F3AENS6W.js")));
|
|
641
637
|
exitCode = await handlePlayRun([
|
|
642
638
|
file,
|
|
643
639
|
"--input",
|
|
@@ -677,7 +673,7 @@ function preflightErrorMessage(error) {
|
|
|
677
673
|
return error instanceof Error ? error.message : String(error);
|
|
678
674
|
}
|
|
679
675
|
async function runPreflightCheck() {
|
|
680
|
-
const baseUrl =
|
|
676
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
681
677
|
const healthController = new AbortController();
|
|
682
678
|
const healthTimeout = setTimeout(
|
|
683
679
|
() => healthController.abort(),
|
|
@@ -694,14 +690,14 @@ async function runPreflightCheck() {
|
|
|
694
690
|
}).catch((error) => ({
|
|
695
691
|
status: "unreachable",
|
|
696
692
|
version: null,
|
|
697
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
693
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkFWSEGIT6js.connectionFailureMessage.call(void 0,
|
|
698
694
|
baseUrl,
|
|
699
695
|
error instanceof Error ? error : new Error(String(error))
|
|
700
696
|
)
|
|
701
697
|
})).finally(() => clearTimeout(healthTimeout));
|
|
702
|
-
const apiKey =
|
|
703
|
-
const http = apiKey ? new (0,
|
|
704
|
-
|
|
698
|
+
const apiKey = _chunkMHRR47VQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
699
|
+
const http = apiKey ? new (0, _chunkMHRR47VQjs.HttpClient)(
|
|
700
|
+
_chunkMHRR47VQjs.resolveConfig.call(void 0, {
|
|
705
701
|
baseUrl,
|
|
706
702
|
apiKey,
|
|
707
703
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -746,7 +742,7 @@ async function runPreflightCheck() {
|
|
|
746
742
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
747
743
|
return {
|
|
748
744
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
749
|
-
cli_version:
|
|
745
|
+
cli_version: _chunkFWSEGIT6js.SDK_VERSION,
|
|
750
746
|
host: baseUrl,
|
|
751
747
|
health: {
|
|
752
748
|
status: healthResult.status,
|
|
@@ -773,7 +769,7 @@ async function runPreflightCheck() {
|
|
|
773
769
|
{
|
|
774
770
|
title: "preflight",
|
|
775
771
|
lines: [
|
|
776
|
-
`cli: ${
|
|
772
|
+
`cli: ${_chunkFWSEGIT6js.SDK_VERSION}`,
|
|
777
773
|
`host: ${baseUrl}`,
|
|
778
774
|
`health: ${healthResult.status}`,
|
|
779
775
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -800,12 +796,12 @@ function printPreflightHuman(data) {
|
|
|
800
796
|
}
|
|
801
797
|
async function newerCliCommandHint(baseUrl, command) {
|
|
802
798
|
if (!command.trim()) return null;
|
|
803
|
-
const { response, error } = await
|
|
799
|
+
const { response, error } = await _chunkHINTYT5Hjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
804
800
|
if (error || !response) return null;
|
|
805
801
|
const introduced = response.command_introduced_in;
|
|
806
802
|
if (introduced) {
|
|
807
803
|
return [
|
|
808
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
804
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkFWSEGIT6js.SDK_VERSION}.`,
|
|
809
805
|
` ${introduced.reason}`,
|
|
810
806
|
` Update with: ${response.update_command}`,
|
|
811
807
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -814,32 +810,32 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
814
810
|
if (!response.update_required) return null;
|
|
815
811
|
return [
|
|
816
812
|
response.message,
|
|
817
|
-
` Installed: ${
|
|
813
|
+
` Installed: ${_chunkFWSEGIT6js.SDK_VERSION}. Run: ${response.update_command}`,
|
|
818
814
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
819
815
|
].join("\n");
|
|
820
816
|
}
|
|
821
817
|
async function runMain(ensureTransport, onAction) {
|
|
822
818
|
const mainStartedAt = Date.now();
|
|
823
|
-
|
|
819
|
+
_chunk75NAFY36js.installJsonStderrGuard.call(void 0, );
|
|
824
820
|
let rootHelpStatus = "";
|
|
825
821
|
let commandFailed = false;
|
|
826
822
|
const deferredMaintenance = { inlinePlay: null };
|
|
827
|
-
|
|
823
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
828
824
|
phase: "cli.main_start",
|
|
829
825
|
argv: process.argv.slice(2)
|
|
830
826
|
});
|
|
831
827
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
832
|
-
const progress = printStartupPhase ?
|
|
828
|
+
const progress = printStartupPhase ? _chunkYJKKOSXSjs.createCliProgress.call(void 0, true) : null;
|
|
833
829
|
if (printStartupPhase) {
|
|
834
830
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
835
831
|
}
|
|
836
832
|
const program = new (0, _commander.Command)();
|
|
837
833
|
program.name("deepline").description(
|
|
838
834
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
839
|
-
).version(
|
|
835
|
+
).version(_chunkFWSEGIT6js.SDK_VERSION, "-v, --version", "Show version").option(
|
|
840
836
|
"--maintenance <policy>",
|
|
841
837
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
842
|
-
|
|
838
|
+
_chunk26DJ4BDYjs.parseCliMaintenancePolicy,
|
|
843
839
|
"configured"
|
|
844
840
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
845
841
|
"beforeAll",
|
|
@@ -881,40 +877,40 @@ Safety:
|
|
|
881
877
|
Environment:
|
|
882
878
|
DEEPLINE_SKIP_SELF_UPDATE=1 Skip automatic CLI updates for this invocation.
|
|
883
879
|
DEEPLINE_SKIP_SKILLS_SYNC=1 Skip automatic agent-skill sync for this invocation.
|
|
884
|
-
|
|
880
|
+
To persist either preference, use deepline settings autoupdate off or deepline settings skills-sync off.
|
|
885
881
|
|
|
886
882
|
Exit codes:
|
|
887
883
|
0 success; 2 usage/local input error; 3 auth/permission error; 4 not found;
|
|
888
884
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
889
885
|
`
|
|
890
886
|
).addHelpText("afterAll", ({ command }) => {
|
|
891
|
-
const key =
|
|
887
|
+
const key = _chunkGDHLL5EQjs.commandDocKey.call(void 0, command);
|
|
892
888
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
893
|
-
return
|
|
889
|
+
return _chunkGDHLL5EQjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
894
890
|
});
|
|
895
891
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
892
|
+
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
896
893
|
onAction({
|
|
897
|
-
path:
|
|
894
|
+
path: compatibilityCommand,
|
|
898
895
|
args: actionCommand.processedArgs
|
|
899
896
|
});
|
|
900
|
-
const maintenance =
|
|
897
|
+
const maintenance = _chunk26DJ4BDYjs.resolveCliMaintenancePolicy.call(void 0,
|
|
901
898
|
actionCommand.optsWithGlobals()
|
|
902
899
|
);
|
|
903
900
|
if (actionCommand.name() !== "version") {
|
|
904
901
|
await ensureTransport();
|
|
905
902
|
}
|
|
906
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
903
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkHINTYT5Hjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || compatibilityCommand === "settings autoupdate" || compatibilityCommand.startsWith("settings autoupdate ") || compatibilityCommand === "settings skills-sync" || isDeprecatedCommandInvocation()) {
|
|
907
904
|
return;
|
|
908
905
|
}
|
|
909
|
-
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
910
906
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
911
907
|
if (isToolExecuteCommand) {
|
|
912
|
-
|
|
908
|
+
_chunkZZDTWVCQjs.beginToolExecuteCommand.call(void 0, );
|
|
913
909
|
}
|
|
914
910
|
if (isToolExecuteCommand) {
|
|
915
|
-
const baseUrl =
|
|
916
|
-
if (maintenance !== "off")
|
|
917
|
-
|
|
911
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
912
|
+
if (maintenance !== "off") _chunkHINTYT5Hjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
913
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
918
914
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
919
915
|
baseUrl,
|
|
920
916
|
command: compatibilityCommand
|
|
@@ -922,9 +918,9 @@ Exit codes:
|
|
|
922
918
|
return;
|
|
923
919
|
}
|
|
924
920
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
925
|
-
if (!playDryRun &&
|
|
921
|
+
if (!playDryRun && _chunkQP333GFEjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
926
922
|
if (maintenance !== "off") {
|
|
927
|
-
const baseUrl =
|
|
923
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
928
924
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
929
925
|
baseUrl,
|
|
930
926
|
command: actionCommand,
|
|
@@ -933,27 +929,27 @@ Exit codes:
|
|
|
933
929
|
}
|
|
934
930
|
return;
|
|
935
931
|
}
|
|
936
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
932
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkZZDTWVCQjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
937
933
|
if (printStartupPhase) {
|
|
938
934
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
939
935
|
}
|
|
940
936
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
941
|
-
const baseUrl =
|
|
942
|
-
if (maintenance !== "off")
|
|
937
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
938
|
+
if (maintenance !== "off") _chunkHINTYT5Hjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
943
939
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
944
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
945
|
-
const trusted = isToolExecuteCommand ? null :
|
|
940
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkMHRR47VQjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
941
|
+
const trusted = isToolExecuteCommand ? null : _chunkHINTYT5Hjs.readTrustedCleanCompatibility.call(void 0,
|
|
946
942
|
baseUrl,
|
|
947
943
|
compatibilityCommand,
|
|
948
944
|
skillsVersion
|
|
949
945
|
);
|
|
950
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
946
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkHINTYT5Hjs.readFreshCleanCompatibility.call(void 0,
|
|
951
947
|
baseUrl,
|
|
952
948
|
compatibilityCommand,
|
|
953
949
|
skillsVersion
|
|
954
950
|
) !== null;
|
|
955
951
|
if (trusted) {
|
|
956
|
-
|
|
952
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
957
953
|
phase: "cli.sdk_compatibility",
|
|
958
954
|
ms: 0,
|
|
959
955
|
ok: true,
|
|
@@ -963,7 +959,7 @@ Exit codes:
|
|
|
963
959
|
source: "trusted_cache"
|
|
964
960
|
});
|
|
965
961
|
}
|
|
966
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
962
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunk26DJ4BDYjs.traceCliSpan.call(void 0,
|
|
967
963
|
"cli.sdk_compatibility",
|
|
968
964
|
{
|
|
969
965
|
baseUrl,
|
|
@@ -971,12 +967,12 @@ Exit codes:
|
|
|
971
967
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
972
968
|
fastDeadline
|
|
973
969
|
},
|
|
974
|
-
() =>
|
|
970
|
+
() => _chunkHINTYT5Hjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
975
971
|
command: compatibilityCommand,
|
|
976
972
|
skillsVersion,
|
|
977
973
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
978
|
-
catalog:
|
|
979
|
-
...fastDeadline ? { timeoutMs:
|
|
974
|
+
catalog: _chunkZZDTWVCQjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
975
|
+
...fastDeadline ? { timeoutMs: _chunkHINTYT5Hjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
980
976
|
})
|
|
981
977
|
);
|
|
982
978
|
if (compatibility.error) {
|
|
@@ -987,7 +983,7 @@ Exit codes:
|
|
|
987
983
|
response: null
|
|
988
984
|
};
|
|
989
985
|
}
|
|
990
|
-
const relaunched = await
|
|
986
|
+
const relaunched = await _chunkZZDTWVCQjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
991
987
|
compatibility.response,
|
|
992
988
|
baseUrl,
|
|
993
989
|
maintenance
|
|
@@ -1001,14 +997,14 @@ Exit codes:
|
|
|
1001
997
|
};
|
|
1002
998
|
}
|
|
1003
999
|
const policy = compatibility.response;
|
|
1004
|
-
const jsonOutput =
|
|
1005
|
-
|
|
1000
|
+
const jsonOutput = _chunk75NAFY36js.isJsonOutputMode.call(void 0, );
|
|
1001
|
+
_chunkHINTYT5Hjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1006
1002
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1007
|
-
|
|
1003
|
+
_chunkZZDTWVCQjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkHINTYT5Hjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1008
1004
|
});
|
|
1009
1005
|
const advisory = compatibility.response;
|
|
1010
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1011
|
-
|
|
1006
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkHINTYT5Hjs.isCiEnvironment.call(void 0, ) && !_chunkZZDTWVCQjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1007
|
+
_chunk75NAFY36js.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1012
1008
|
}
|
|
1013
1009
|
return {
|
|
1014
1010
|
shouldContinue: true,
|
|
@@ -1025,10 +1021,10 @@ Exit codes:
|
|
|
1025
1021
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1026
1022
|
await runStartupStage(
|
|
1027
1023
|
"agent skills sync",
|
|
1028
|
-
() =>
|
|
1024
|
+
() => _chunk26DJ4BDYjs.traceCliSpan.call(void 0,
|
|
1029
1025
|
"cli.sdk_skills_sync",
|
|
1030
1026
|
{ baseUrl: startup.baseUrl },
|
|
1031
|
-
() =>
|
|
1027
|
+
() => _chunkHINTYT5Hjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1032
1028
|
update: skillsUpdate,
|
|
1033
1029
|
mode: "detached"
|
|
1034
1030
|
})
|
|
@@ -1040,16 +1036,16 @@ Exit codes:
|
|
|
1040
1036
|
program,
|
|
1041
1037
|
process.argv.slice(2)
|
|
1042
1038
|
);
|
|
1043
|
-
const commandRegistrationStartedAt =
|
|
1039
|
+
const commandRegistrationStartedAt = _chunk26DJ4BDYjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1044
1040
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1045
1041
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1046
|
-
|
|
1042
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
1047
1043
|
phase: "cli.command_registration",
|
|
1048
1044
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1049
1045
|
});
|
|
1050
1046
|
}
|
|
1051
1047
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1052
|
-
if (
|
|
1048
|
+
if (_chunk75NAFY36js.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1053
1049
|
preflight.addHelpText(
|
|
1054
1050
|
"after",
|
|
1055
1051
|
`
|
|
@@ -1065,8 +1061,8 @@ Examples:
|
|
|
1065
1061
|
`
|
|
1066
1062
|
).action(async (options) => {
|
|
1067
1063
|
const data = await runPreflightCheck();
|
|
1068
|
-
if (
|
|
1069
|
-
|
|
1064
|
+
if (_chunk75NAFY36js.shouldEmitJson.call(void 0, options.json)) {
|
|
1065
|
+
_chunk75NAFY36js.printJson.call(void 0, data);
|
|
1070
1066
|
} else {
|
|
1071
1067
|
printPreflightHuman(data);
|
|
1072
1068
|
}
|
|
@@ -1091,7 +1087,7 @@ Examples:
|
|
|
1091
1087
|
).action(async (options) => {
|
|
1092
1088
|
if (options.playRunner) {
|
|
1093
1089
|
const data = await runPlayRunnerHealthCheck();
|
|
1094
|
-
|
|
1090
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0, data, {
|
|
1095
1091
|
json: options.json,
|
|
1096
1092
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1097
1093
|
`
|
|
@@ -1099,15 +1095,15 @@ Examples:
|
|
|
1099
1095
|
return;
|
|
1100
1096
|
}
|
|
1101
1097
|
try {
|
|
1102
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1103
|
-
const baseUrl =
|
|
1098
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MMHG2OFE.js")));
|
|
1099
|
+
const baseUrl = _chunkMHRR47VQjs.resolveBaseUrlOnly.call(void 0, );
|
|
1104
1100
|
const [{ status, data }, banner] = await Promise.all([
|
|
1105
1101
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1106
1102
|
readStatusBanner(baseUrl)
|
|
1107
1103
|
]);
|
|
1108
1104
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1109
1105
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1110
|
-
|
|
1106
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
1111
1107
|
{ ...data, status_banner: banner },
|
|
1112
1108
|
{
|
|
1113
1109
|
json: options.json,
|
|
@@ -1135,16 +1131,16 @@ Examples:
|
|
|
1135
1131
|
`
|
|
1136
1132
|
).action((options) => {
|
|
1137
1133
|
if (options.json) {
|
|
1138
|
-
|
|
1134
|
+
_chunk75NAFY36js.printCompactJson.call(void 0, { version: _chunkFWSEGIT6js.SDK_VERSION });
|
|
1139
1135
|
return;
|
|
1140
1136
|
}
|
|
1141
|
-
process.stdout.write(`deepline ${
|
|
1137
|
+
process.stdout.write(`deepline ${_chunkFWSEGIT6js.SDK_VERSION}
|
|
1142
1138
|
`);
|
|
1143
1139
|
});
|
|
1144
1140
|
if (process.argv.slice(2).length === 0) {
|
|
1145
1141
|
program.outputHelp({ error: true });
|
|
1146
1142
|
console.error("\nerror: missing command (see usage above)");
|
|
1147
|
-
|
|
1143
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
1148
1144
|
phase: "cli.main_total",
|
|
1149
1145
|
ms: Date.now() - mainStartedAt,
|
|
1150
1146
|
ok: false,
|
|
@@ -1156,16 +1152,16 @@ Examples:
|
|
|
1156
1152
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1157
1153
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1158
1154
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1159
|
-
if (!
|
|
1160
|
-
const baseUrl =
|
|
1155
|
+
if (!_chunk75NAFY36js.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1156
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, );
|
|
1161
1157
|
await ensureTransport();
|
|
1162
1158
|
const versionHint = await newerCliCommandHint(
|
|
1163
1159
|
baseUrl,
|
|
1164
1160
|
requestedTopLevelCommand
|
|
1165
1161
|
);
|
|
1166
|
-
if (
|
|
1162
|
+
if (_chunk75NAFY36js.isJsonOutputMode.call(void 0, )) {
|
|
1167
1163
|
if (versionHint) {
|
|
1168
|
-
|
|
1164
|
+
_chunk75NAFY36js.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1169
1165
|
}
|
|
1170
1166
|
printUsageErrorJson(
|
|
1171
1167
|
"commander.unknownCommand",
|
|
@@ -1187,18 +1183,18 @@ Examples:
|
|
|
1187
1183
|
const helpArgs = process.argv.slice(2);
|
|
1188
1184
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1189
1185
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1190
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1191
|
-
rootHelpStatus = `Version: ${
|
|
1186
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MMHG2OFE.js")));
|
|
1187
|
+
rootHelpStatus = `Version: ${_chunkFWSEGIT6js.SDK_VERSION}
|
|
1192
1188
|
${await authStatusLine()}
|
|
1193
1189
|
`;
|
|
1194
1190
|
}
|
|
1195
1191
|
await program.parseAsync(process.argv);
|
|
1196
|
-
|
|
1192
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
1197
1193
|
phase: "cli.main_total",
|
|
1198
1194
|
ms: Date.now() - mainStartedAt,
|
|
1199
1195
|
ok: true
|
|
1200
1196
|
});
|
|
1201
|
-
await
|
|
1197
|
+
await _chunkGRESJ3H3js.maybeReportSdkCliFailure.call(void 0, {
|
|
1202
1198
|
argv: process.argv.slice(2),
|
|
1203
1199
|
startedAtMs: mainStartedAt,
|
|
1204
1200
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1206,14 +1202,14 @@ ${await authStatusLine()}
|
|
|
1206
1202
|
} catch (error) {
|
|
1207
1203
|
commandFailed = true;
|
|
1208
1204
|
const commanderError = asCommanderError(error);
|
|
1209
|
-
|
|
1205
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
1210
1206
|
phase: "cli.main_total",
|
|
1211
1207
|
ms: Date.now() - mainStartedAt,
|
|
1212
1208
|
ok: false,
|
|
1213
1209
|
error: error instanceof Error ? error.message : String(error)
|
|
1214
1210
|
});
|
|
1215
1211
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1216
|
-
const wantsJson =
|
|
1212
|
+
const wantsJson = _chunk75NAFY36js.isJsonOutputMode.call(void 0, );
|
|
1217
1213
|
if (commanderError) {
|
|
1218
1214
|
const grammarError = [
|
|
1219
1215
|
"commander.unknownCommand",
|
|
@@ -1224,12 +1220,12 @@ ${await authStatusLine()}
|
|
|
1224
1220
|
if (grammarError) {
|
|
1225
1221
|
await ensureTransport();
|
|
1226
1222
|
const versionHint = await newerCliCommandHint(
|
|
1227
|
-
|
|
1223
|
+
_chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ),
|
|
1228
1224
|
commandPath
|
|
1229
1225
|
);
|
|
1230
1226
|
if (wantsJson) {
|
|
1231
1227
|
if (versionHint) {
|
|
1232
|
-
|
|
1228
|
+
_chunk75NAFY36js.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1233
1229
|
}
|
|
1234
1230
|
} else {
|
|
1235
1231
|
if (versionHint) console.error(versionHint);
|
|
@@ -1249,55 +1245,55 @@ ${await authStatusLine()}
|
|
|
1249
1245
|
return;
|
|
1250
1246
|
} else if (wantsJson) {
|
|
1251
1247
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1252
|
-
|
|
1248
|
+
_chunk75NAFY36js.addJsonNotice.call(void 0, {
|
|
1253
1249
|
code: "auth_required",
|
|
1254
1250
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1255
1251
|
});
|
|
1256
1252
|
}
|
|
1257
|
-
const providerConcurrency =
|
|
1253
|
+
const providerConcurrency = _chunk75NAFY36js.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1258
1254
|
if (providerConcurrency) {
|
|
1259
|
-
|
|
1255
|
+
_chunk75NAFY36js.addJsonNotice.call(void 0, {
|
|
1260
1256
|
code: "provider_concurrency",
|
|
1261
1257
|
message: providerConcurrency
|
|
1262
1258
|
});
|
|
1263
1259
|
}
|
|
1264
|
-
const payload =
|
|
1265
|
-
|
|
1260
|
+
const payload = _chunk75NAFY36js.errorToJsonPayload.call(void 0, error);
|
|
1261
|
+
_chunk75NAFY36js.printJson.call(void 0, {
|
|
1266
1262
|
...payload,
|
|
1267
1263
|
// The envelope names the code the process exits with, so a caller
|
|
1268
1264
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1269
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1265
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkGRESJ3H3js.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1270
1266
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1271
1267
|
});
|
|
1272
1268
|
} else if (error instanceof Error) {
|
|
1273
1269
|
console.error(`Error: ${error.message}`);
|
|
1274
|
-
const toolDiagnostic =
|
|
1270
|
+
const toolDiagnostic = _chunk75NAFY36js.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1275
1271
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1276
1272
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1277
1273
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1278
1274
|
}
|
|
1279
|
-
const providerConcurrency =
|
|
1275
|
+
const providerConcurrency = _chunk75NAFY36js.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1280
1276
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1281
1277
|
} else {
|
|
1282
1278
|
console.error(`Error: ${String(error)}`);
|
|
1283
1279
|
}
|
|
1284
1280
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1285
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1281
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkGRESJ3H3js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1286
1282
|
process.exitCode = failureExitCode;
|
|
1287
|
-
await
|
|
1283
|
+
await _chunkGRESJ3H3js.maybeReportSdkCliFailure.call(void 0, {
|
|
1288
1284
|
argv: process.argv.slice(2),
|
|
1289
1285
|
startedAtMs: mainStartedAt,
|
|
1290
1286
|
exitCode: failureExitCode,
|
|
1291
1287
|
error
|
|
1292
1288
|
});
|
|
1293
1289
|
} finally {
|
|
1294
|
-
|
|
1290
|
+
_chunkZZDTWVCQjs.finishToolExecuteCommand.call(void 0, );
|
|
1295
1291
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1296
1292
|
deferredMaintenance.inlinePlay = null;
|
|
1297
1293
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1298
1294
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1299
1295
|
}
|
|
1300
|
-
await
|
|
1296
|
+
await _chunkZZDTWVCQjs.runDeferredAutoUpdate.call(void 0, );
|
|
1301
1297
|
}
|
|
1302
1298
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1303
1299
|
}
|
|
@@ -1305,7 +1301,7 @@ async function main() {
|
|
|
1305
1301
|
let disposeTransport;
|
|
1306
1302
|
const ensureTransport = async () => {
|
|
1307
1303
|
if (disposeTransport) return;
|
|
1308
|
-
const transportStartedAt =
|
|
1304
|
+
const transportStartedAt = _chunk26DJ4BDYjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1309
1305
|
const hasProxy = [
|
|
1310
1306
|
"HTTP_PROXY",
|
|
1311
1307
|
"http_proxy",
|
|
@@ -1317,7 +1313,7 @@ async function main() {
|
|
|
1317
1313
|
disposeTransport = configureCliTransport();
|
|
1318
1314
|
}
|
|
1319
1315
|
if (transportStartedAt !== void 0) {
|
|
1320
|
-
|
|
1316
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
1321
1317
|
phase: "cli.transport_setup",
|
|
1322
1318
|
ms: performance.now() - transportStartedAt
|
|
1323
1319
|
});
|
|
@@ -1334,9 +1330,9 @@ async function main() {
|
|
|
1334
1330
|
action = dispatched;
|
|
1335
1331
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1336
1332
|
});
|
|
1337
|
-
const silentFailure =
|
|
1333
|
+
const silentFailure = _chunk75NAFY36js.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1338
1334
|
if (silentFailure) {
|
|
1339
|
-
|
|
1335
|
+
_chunk75NAFY36js.printJson.call(void 0, {
|
|
1340
1336
|
ok: false,
|
|
1341
1337
|
exitCode: Number(process.exitCode),
|
|
1342
1338
|
error: { code: "CLI_ERROR", message: silentFailure }
|