deepline 0.3.504 → 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/sdk/src/types.ts +5 -0
- 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 +9 -9
- 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 +157 -47
- 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/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +18 -0
- package/dist/bundling-sources/shared_libs/product-notifications/onboarding-unsubscribe.ts +23 -0
- package/dist/cli/auth-MMHG2OFE.js +43 -0
- package/dist/cli/{auth-3L5AA5AX.mjs → auth-ZHFONT2D.mjs} +5 -5
- package/dist/cli/{billing-HOGXVE2V.js → billing-3Z7N4WTL.js} +101 -91
- package/dist/cli/{billing-E7EASVPO.mjs → billing-B2YEMNHE.mjs} +27 -17
- package/dist/cli/{chunk-UXQQPMYO.js → chunk-26DJ4BDY.js} +2 -2
- package/dist/cli/{chunk-3MLFFWDM.mjs → chunk-2CFTDVEP.mjs} +2 -2
- package/dist/cli/{chunk-QOLX2O2S.mjs → chunk-2IXXB7OA.mjs} +93 -34
- package/dist/cli/{chunk-6JNBMTCZ.js → chunk-2OY5DXTC.js} +1 -1
- package/dist/cli/{chunk-SVFTZTCI.mjs → chunk-3BFZEHBH.mjs} +1 -1
- package/dist/cli/{chunk-67OI26OE.js → chunk-3F676QXJ.js} +96 -37
- package/dist/cli/{chunk-KCKAFTPY.js → chunk-5ARG7J7A.js} +6 -6
- package/dist/cli/{chunk-5CHBIJIM.mjs → chunk-6RYVIZRP.mjs} +2 -2
- package/dist/cli/{chunk-QKKU2FH4.js → chunk-75NAFY36.js} +7 -7
- package/dist/cli/{chunk-7P2QVMBP.js → chunk-AD2WJUZA.js} +91 -48
- package/dist/cli/{chunk-UFYJTRSF.mjs → chunk-AFSYNOG4.mjs} +42 -7
- package/dist/cli/{chunk-VJVJWZ6I.mjs → chunk-BJ5OX62J.mjs} +5 -5
- package/dist/cli/{chunk-HUX5DZO6.mjs → chunk-BQBPVUFJ.mjs} +3 -3
- package/dist/cli/{chunk-MLMWM5DV.mjs → chunk-CHGRURBN.mjs} +5 -5
- package/dist/cli/{chunk-22OCKCYS.mjs → chunk-D7OCORZ7.mjs} +1 -1
- package/dist/cli/{chunk-SMSQVRHE.js → chunk-DB54ROPH.js} +5 -5
- package/dist/cli/{chunk-KGUGNEKL.js → chunk-E554XCJI.js} +96 -96
- package/dist/cli/{chunk-GGBXNQCR.mjs → chunk-EN7GXLFX.mjs} +4 -4
- package/dist/cli/{chunk-2W77YCKH.js → chunk-F53SGS3C.js} +5 -5
- package/dist/cli/{chunk-6SMR7LU7.js → chunk-F7IQQYKV.js} +2 -2
- package/dist/cli/chunk-FFGQR5J3.mjs +405 -0
- package/dist/cli/{chunk-UJMBG5JU.js → chunk-FWSEGIT6.js} +4 -4
- package/dist/cli/{chunk-GJ2DA35C.js → chunk-GDHLL5EQ.js} +42 -7
- package/dist/cli/{chunk-XHZSPMNC.mjs → chunk-GJNIC2CO.mjs} +84 -441
- package/dist/cli/chunk-GRESJ3H3.js +405 -0
- package/dist/cli/{chunk-WZSFIJMG.js → chunk-HINTYT5H.js} +113 -470
- package/dist/cli/{chunk-A6LA42JY.js → chunk-LRSRJJPD.js} +16 -16
- package/dist/cli/{chunk-WBIDPDKJ.js → chunk-MHRR47VQ.js} +3 -3
- package/dist/cli/{chunk-FTRVCIGC.js → chunk-N7G36GXB.js} +26 -26
- package/dist/cli/{chunk-BTWUNKKX.mjs → chunk-ND4WPLTE.mjs} +2 -2
- package/dist/cli/{chunk-NZ7Z7WNM.mjs → chunk-O4DZG4VA.mjs} +2 -2
- package/dist/cli/{chunk-LHXYCZYO.js → chunk-OD6TASBP.js} +8 -8
- package/dist/cli/{chunk-GRAGUYIE.js → chunk-OHNMJ5XQ.js} +41 -41
- package/dist/cli/{chunk-OX2D6BG4.mjs → chunk-ONBXTEFQ.mjs} +46 -3
- package/dist/cli/{chunk-7F4OEHQK.mjs → chunk-OPBXKB57.mjs} +1 -1
- package/dist/cli/{chunk-Y7VEHKID.mjs → chunk-OUGJUM5X.mjs} +6 -6
- package/dist/cli/{chunk-USTJEEND.js → chunk-PRIHD5XS.js} +9 -9
- package/dist/cli/{chunk-IGNQKOWT.mjs → chunk-QAY5AS2H.mjs} +12 -12
- package/dist/cli/{chunk-5Z6EULD5.js → chunk-QP333GFE.js} +7 -7
- package/dist/cli/{chunk-JPR2546F.js → chunk-SUJIVF6L.js} +16 -16
- package/dist/cli/{chunk-DEAJVQEG.mjs → chunk-TEMORCEE.mjs} +1 -1
- package/dist/cli/{chunk-YOQ2NNDO.mjs → chunk-TS4KFQKS.mjs} +1 -1
- package/dist/cli/{chunk-4CC67XH5.mjs → chunk-XUY7WQ2R.mjs} +3 -3
- package/dist/cli/{chunk-Z6FXUDIL.mjs → chunk-YEX6RPUO.mjs} +1 -1
- package/dist/cli/{chunk-MJTK6Q3G.js → chunk-YJKKOSXS.js} +3 -3
- package/dist/cli/{chunk-Y6XKCEPK.mjs → chunk-YVOS5KSG.mjs} +1 -1
- package/dist/cli/{chunk-2ABRDH3B.mjs → chunk-YWZEBPXK.mjs} +2 -2
- package/dist/cli/{chunk-BX45XMXZ.mjs → chunk-Z7EHY2MF.mjs} +2 -2
- package/dist/cli/{chunk-FISP4LCK.js → chunk-ZM5BJ5MP.js} +53 -53
- package/dist/cli/{chunk-IPAMOMGP.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-2XWGPITO.js → csv-7K7LK63Y.js} +13 -13
- package/dist/cli/{csv-433JEHLQ.mjs → csv-ARHQ54HA.mjs} +4 -4
- package/dist/cli/{db-K747DH43.mjs → db-JBX24NJY.mjs} +6 -6
- package/dist/cli/{db-PJJMD4VH.js → db-V4Z2I6DY.js} +27 -27
- package/dist/cli/describe-AYXVS6DZ.js +50 -0
- package/dist/cli/{describe-VEDDYW4P.mjs → describe-RBDSGSZ7.mjs} +18 -17
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-JWRX3XCT.mjs → executions-BAZEU63W.mjs} +6 -6
- package/dist/cli/{executions-HM5T72H6.js → executions-XEZKV5QU.js} +8 -8
- package/dist/cli/{feedback-34UG4BO3.js → feedback-LOERESRU.js} +8 -8
- package/dist/cli/{feedback-MNSIA63Y.mjs → feedback-YDSWBHCO.mjs} +4 -4
- package/dist/cli/{git-ZKEOXV3A.mjs → git-4Z3W2CQU.mjs} +5 -5
- package/dist/cli/git-T6WKO7EA.js +25 -0
- package/dist/cli/index.js +146 -148
- package/dist/cli/index.mjs +53 -55
- package/dist/cli/{legacy-noops-YXSI4FVU.js → legacy-noops-4QIQPVE5.js} +8 -8
- package/dist/cli/{legacy-noops-5M4T4ZVT.mjs → legacy-noops-E4HH7S5O.mjs} +5 -5
- package/dist/cli/{monitors-C65OC4AW.mjs → monitors-FPDW5DDM.mjs} +305 -8
- package/dist/cli/{monitors-O25GDOYE.js → monitors-QBHDSDA7.js} +423 -126
- package/dist/cli/{org-2GSPLY2A.js → org-JO4GGSAH.js} +72 -72
- package/dist/cli/{org-ZRMG5NS2.mjs → org-UCDHIHAD.mjs} +6 -6
- package/dist/cli/{pages-TZZUFBRO.mjs → pages-6V52IZXY.mjs} +6 -6
- package/dist/cli/{pages-45DPADK6.js → pages-FJAAXAWO.js} +18 -18
- package/dist/cli/{play-RCGMND6X.js → play-F3AENS6W.js} +317 -316
- package/dist/cli/{play-3D7HH273.mjs → play-MF4DWROJ.mjs} +18 -17
- package/dist/cli/{providers-PSAKV6CJ.mjs → providers-NJJLTECA.mjs} +6 -6
- package/dist/cli/{providers-3N3ECMTY.js → providers-XXOQLPX7.js} +9 -9
- package/dist/cli/{quickstart-6R6AIXM6.js → quickstart-JCE3XGQG.js} +6 -6
- package/dist/cli/{quickstart-2A35SMGC.mjs → quickstart-Z5MSMI7S.mjs} +4 -4
- package/dist/cli/{run-F3TLDGUO.mjs → run-56UGPIRL.mjs} +23 -22
- package/dist/cli/{run-F6ZXTASZ.js → run-X2DNIW3F.js} +41 -40
- package/dist/cli/search-B753RTKC.js +33 -0
- package/dist/cli/{search-CZLCY3D2.mjs → search-SZYI4NBB.mjs} +8 -7
- package/dist/cli/{search-output-R5XDNILW.js → search-output-7UNT6EMP.js} +6 -6
- package/dist/cli/{search-output-MQTSTLN5.mjs → search-output-T35QNZUF.mjs} +4 -4
- package/dist/cli/{secrets-DCJYHDSY.js → secrets-JMUAVIVC.js} +15 -15
- package/dist/cli/{secrets-D3GF4B2Z.mjs → secrets-Q36VC35L.mjs} +6 -6
- package/dist/cli/{sessions-QGEQ2UYZ.mjs → sessions-HG6I3HMY.mjs} +5 -5
- package/dist/cli/{sessions-Z4JYJSDP.js → sessions-SUXU7OM7.js} +6 -6
- package/dist/cli/{settings-UVXXAT4A.js → settings-UIELQ5CV.js} +106 -78
- package/dist/cli/{settings-G7QEXA4N.mjs → settings-Z76XW4KF.mjs} +39 -11
- package/dist/cli/{setup-5I42W7D4.js → setup-2L7H5P2O.js} +50 -49
- package/dist/cli/{setup-QHJU3DUI.mjs → setup-OXNYAOQ4.mjs} +10 -9
- package/dist/cli/skills-DEVXYGYH.js +37 -0
- package/dist/cli/{skills-5LRF4UKX.mjs → skills-XSNLXJGI.mjs} +8 -7
- package/dist/cli/tools-SCGHABDL.js +57 -0
- package/dist/cli/{tools-PUT6STVG.mjs → tools-SUSFAYFH.mjs} +17 -16
- package/dist/cli/update-BSIILGO3.js +35 -0
- package/dist/cli/{update-CJ2GA64X.mjs → update-ENSTG3QO.mjs} +10 -9
- package/dist/cli/{workflow-O67MEBCP.js → workflow-FMBZNY4F.js} +17 -17
- package/dist/cli/{workflow-HVEWRTXD.mjs → workflow-Z33QE6VT.mjs} +7 -7
- package/dist/{client-DYAfJpaN.d.mts → client-BDbouy3Y.d.mts} +1 -1
- package/dist/{client-CIwenMFS.d.ts → client-Cx0420fs.d.ts} +1 -1
- package/dist/{client-core-CRjtyMAI.d.ts → client-core-B4hq0-m2.d.ts} +56 -4
- package/dist/{client-core-DlzP8vEs.d.mts → client-core-CwiVaMZ5.d.mts} +56 -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 +116 -110
- 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-UPK4IIIN.js +0 -43
- package/dist/cli/describe-OYS7LZJD.js +0 -49
- package/dist/cli/git-5YQJSJFR.js +0 -25
- package/dist/cli/search-R5VEWJO2.js +0 -32
- package/dist/cli/skills-FB6TV52O.js +0 -36
- package/dist/cli/tools-L2364RPA.js +0 -56
- package/dist/cli/update-ESYJGYVZ.js +0 -34
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 _chunk5Z6EULD5js = require('./chunk-5Z6EULD5.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,21 +32,23 @@ require('./chunk-GRAGUYIE.js');
|
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
|
|
35
|
+
var _chunkHINTYT5Hjs = require('./chunk-HINTYT5H.js');
|
|
35
36
|
|
|
36
37
|
|
|
38
|
+
var _chunkYJKKOSXSjs = require('./chunk-YJKKOSXS.js');
|
|
37
39
|
|
|
38
40
|
|
|
39
41
|
|
|
40
42
|
|
|
41
|
-
var _chunkWZSFIJMGjs = require('./chunk-WZSFIJMG.js');
|
|
42
43
|
|
|
43
44
|
|
|
44
|
-
var _chunkMJTK6Q3Gjs = require('./chunk-MJTK6Q3G.js');
|
|
45
45
|
|
|
46
|
+
var _chunkGRESJ3H3js = require('./chunk-GRESJ3H3.js');
|
|
46
47
|
|
|
47
48
|
|
|
48
49
|
|
|
49
|
-
|
|
50
|
+
|
|
51
|
+
var _chunkGDHLL5EQjs = require('./chunk-GDHLL5EQ.js');
|
|
50
52
|
require('./chunk-R7J7CJPZ.js');
|
|
51
53
|
require('./chunk-YGCKMI5P.js');
|
|
52
54
|
|
|
@@ -61,7 +63,7 @@ require('./chunk-YGCKMI5P.js');
|
|
|
61
63
|
|
|
62
64
|
|
|
63
65
|
|
|
64
|
-
var
|
|
66
|
+
var _chunk75NAFY36js = require('./chunk-75NAFY36.js');
|
|
65
67
|
|
|
66
68
|
|
|
67
69
|
|
|
@@ -69,18 +71,18 @@ var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
|
|
|
69
71
|
|
|
70
72
|
|
|
71
73
|
|
|
72
|
-
var
|
|
74
|
+
var _chunkMHRR47VQjs = require('./chunk-MHRR47VQ.js');
|
|
73
75
|
|
|
74
76
|
|
|
75
77
|
|
|
76
78
|
|
|
77
|
-
var
|
|
79
|
+
var _chunkFWSEGIT6js = require('./chunk-FWSEGIT6.js');
|
|
78
80
|
|
|
79
81
|
|
|
80
82
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
81
83
|
require('./chunk-XNYIZMNQ.js');
|
|
82
84
|
require('./chunk-DIAWYWT5.js');
|
|
83
|
-
require('./chunk-
|
|
85
|
+
require('./chunk-2OY5DXTC.js');
|
|
84
86
|
require('./chunk-OG64RBAC.js');
|
|
85
87
|
require('./chunk-RLX5ZFNX.js');
|
|
86
88
|
require('./chunk-COGTRVWW.js');
|
|
@@ -161,56 +163,56 @@ var _os = require('os');
|
|
|
161
163
|
var COMMAND_GROUPS = [
|
|
162
164
|
{
|
|
163
165
|
names: ["auth"],
|
|
164
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
166
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MMHG2OFE.js")))).registerAuthCommands
|
|
165
167
|
},
|
|
166
168
|
{
|
|
167
169
|
names: ["providers"],
|
|
168
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
170
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-XXOQLPX7.js")))).registerProviderCommands
|
|
169
171
|
},
|
|
170
172
|
{
|
|
171
173
|
names: ["search"],
|
|
172
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
174
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-B753RTKC.js")))).registerSearchCommand
|
|
173
175
|
},
|
|
174
176
|
{
|
|
175
177
|
names: ["describe"],
|
|
176
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
178
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-AYXVS6DZ.js")))).registerDescribeCommand
|
|
177
179
|
},
|
|
178
180
|
{
|
|
179
181
|
names: ["run"],
|
|
180
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
182
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-X2DNIW3F.js")))).registerRunCommand
|
|
181
183
|
},
|
|
182
184
|
{
|
|
183
185
|
names: ["tools"],
|
|
184
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
186
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-SCGHABDL.js")))).registerToolsCommands
|
|
185
187
|
},
|
|
186
188
|
{
|
|
187
189
|
names: ["executions"],
|
|
188
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
190
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-XEZKV5QU.js")))).registerExecutionsCommands
|
|
189
191
|
},
|
|
190
192
|
{
|
|
191
193
|
names: ["plays", "runs"],
|
|
192
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
194
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-F3AENS6W.js")))).registerPlayCommands
|
|
193
195
|
},
|
|
194
196
|
{
|
|
195
197
|
names: ["sessions"],
|
|
196
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
198
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-SUXU7OM7.js")))).registerSessionsCommands
|
|
197
199
|
},
|
|
198
200
|
{
|
|
199
201
|
names: ["workflows"],
|
|
200
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
202
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-FMBZNY4F.js")))).registerWorkflowCommands
|
|
201
203
|
},
|
|
202
204
|
{
|
|
203
205
|
names: ["pages"],
|
|
204
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-
|
|
206
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-FJAAXAWO.js")))).registerPagesCommands
|
|
205
207
|
},
|
|
206
208
|
{
|
|
207
209
|
names: ["secrets"],
|
|
208
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
210
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-JMUAVIVC.js")))).registerSecretsCommands
|
|
209
211
|
},
|
|
210
212
|
{
|
|
211
213
|
names: ["settings", "notifications"],
|
|
212
214
|
load: async () => {
|
|
213
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
215
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-UIELQ5CV.js")));
|
|
214
216
|
return (p) => {
|
|
215
217
|
commands.registerSettingsCommands(p);
|
|
216
218
|
commands.registerNotificationCommands(p);
|
|
@@ -219,51 +221,51 @@ var COMMAND_GROUPS = [
|
|
|
219
221
|
},
|
|
220
222
|
{
|
|
221
223
|
names: ["billing"],
|
|
222
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
224
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-3Z7N4WTL.js")))).registerBillingCommands
|
|
223
225
|
},
|
|
224
226
|
{
|
|
225
227
|
names: ["monitors"],
|
|
226
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
228
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-QBHDSDA7.js")))).registerMonitorsCommands
|
|
227
229
|
},
|
|
228
230
|
{
|
|
229
231
|
names: ["org"],
|
|
230
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
232
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-JO4GGSAH.js")))).registerOrgCommands
|
|
231
233
|
},
|
|
232
234
|
{
|
|
233
235
|
names: ["git", "projects", "deployments"],
|
|
234
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
236
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-T6WKO7EA.js")))).registerGitCommands
|
|
235
237
|
},
|
|
236
238
|
{
|
|
237
239
|
names: ["csv"],
|
|
238
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
240
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-7K7LK63Y.js")))).registerCsvCommands
|
|
239
241
|
},
|
|
240
242
|
{
|
|
241
243
|
names: ["db"],
|
|
242
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
244
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-V4Z2I6DY.js")))).registerDbCommands
|
|
243
245
|
},
|
|
244
246
|
{
|
|
245
247
|
names: ["feedback"],
|
|
246
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
248
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-LOERESRU.js")))).registerFeedbackCommands
|
|
247
249
|
},
|
|
248
250
|
{
|
|
249
251
|
names: ["enrich", "session", "backend"],
|
|
250
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
252
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-4QIQPVE5.js")))).registerDeprecatedCommands
|
|
251
253
|
},
|
|
252
254
|
{
|
|
253
255
|
names: ["update"],
|
|
254
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
256
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-BSIILGO3.js")))).registerUpdateCommand
|
|
255
257
|
},
|
|
256
258
|
{
|
|
257
259
|
names: ["skills", "skills-auto-sync"],
|
|
258
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
260
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-DEVXYGYH.js")))).registerSkillsCommand
|
|
259
261
|
},
|
|
260
262
|
{
|
|
261
263
|
names: ["setup", "doctor"],
|
|
262
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
264
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-2L7H5P2O.js")))).registerSetupCommands
|
|
263
265
|
},
|
|
264
266
|
{
|
|
265
267
|
names: ["quickstart"],
|
|
266
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
268
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-JCE3XGQG.js")))).registerQuickstartCommands
|
|
267
269
|
}
|
|
268
270
|
];
|
|
269
271
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -289,8 +291,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
289
291
|
function createDeferredPlayRunMaintenance(input) {
|
|
290
292
|
return async () => {
|
|
291
293
|
try {
|
|
292
|
-
const skillsVersion =
|
|
293
|
-
const compatibility = await
|
|
294
|
+
const skillsVersion = _chunkMHRR47VQjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
295
|
+
const compatibility = await _chunk26DJ4BDYjs.traceCliSpan.call(void 0,
|
|
294
296
|
"cli.sdk_compatibility_deferred",
|
|
295
297
|
{
|
|
296
298
|
baseUrl: input.baseUrl,
|
|
@@ -298,24 +300,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
298
300
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
299
301
|
},
|
|
300
302
|
async () => {
|
|
301
|
-
const trusted =
|
|
303
|
+
const trusted = _chunkHINTYT5Hjs.readTrustedCleanCompatibility.call(void 0,
|
|
302
304
|
input.baseUrl,
|
|
303
305
|
"plays run",
|
|
304
306
|
skillsVersion
|
|
305
307
|
);
|
|
306
308
|
if (trusted) return { response: trusted, error: null };
|
|
307
|
-
return
|
|
309
|
+
return _chunkHINTYT5Hjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
308
310
|
command: "plays run",
|
|
309
311
|
skillsVersion,
|
|
310
312
|
persistCache: input.policy !== "off",
|
|
311
|
-
catalog:
|
|
313
|
+
catalog: _chunkZZDTWVCQjs.compatibilityCatalog.call(void 0, input.command)
|
|
312
314
|
});
|
|
313
315
|
}
|
|
314
316
|
);
|
|
315
317
|
if (compatibility.error || !compatibility.response) return;
|
|
316
318
|
const automaticUpdate = compatibility.response.auto_update;
|
|
317
319
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
318
|
-
await
|
|
320
|
+
await _chunkZZDTWVCQjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
319
321
|
compatibility.response,
|
|
320
322
|
input.baseUrl,
|
|
321
323
|
input.policy
|
|
@@ -325,7 +327,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
325
327
|
compatibility.response,
|
|
326
328
|
"skills"
|
|
327
329
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
328
|
-
await
|
|
330
|
+
await _chunkHINTYT5Hjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
329
331
|
update: skillsUpdate,
|
|
330
332
|
mode: "detached"
|
|
331
333
|
});
|
|
@@ -353,8 +355,8 @@ var MAX_SESSIONS = 20;
|
|
|
353
355
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
354
356
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
355
357
|
}
|
|
356
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
357
|
-
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);
|
|
358
360
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
359
361
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
360
362
|
const path = helpSeenPath(homeDir);
|
|
@@ -451,7 +453,7 @@ function shouldReport(stdout, stderr) {
|
|
|
451
453
|
}
|
|
452
454
|
function toolName(action) {
|
|
453
455
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
454
|
-
return typeof toolId === "string" ?
|
|
456
|
+
return typeof toolId === "string" ? _chunkGRESJ3H3js.redactFailureText.call(void 0, toolId) : null;
|
|
455
457
|
}
|
|
456
458
|
function chunkText(chunk) {
|
|
457
459
|
if (typeof chunk === "string") return chunk;
|
|
@@ -482,14 +484,14 @@ function watch(stream) {
|
|
|
482
484
|
}
|
|
483
485
|
async function postCommandOutput(body) {
|
|
484
486
|
try {
|
|
485
|
-
const baseUrl =
|
|
486
|
-
const apiKey =
|
|
487
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
488
|
+
const apiKey = _chunkMHRR47VQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
487
489
|
if (!apiKey) return;
|
|
488
|
-
const agentSessionId =
|
|
490
|
+
const agentSessionId = _chunkFWSEGIT6js.agentSessionIdFromEnvironment.call(void 0, );
|
|
489
491
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
490
492
|
method: "POST",
|
|
491
493
|
headers: {
|
|
492
|
-
...
|
|
494
|
+
..._chunkGRESJ3H3js.failureReportHeaders.call(void 0, apiKey),
|
|
493
495
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
494
496
|
},
|
|
495
497
|
body: JSON.stringify(body),
|
|
@@ -505,14 +507,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
505
507
|
const stdoutWatch = watch(streams.stdout);
|
|
506
508
|
const stderrWatch = watch(streams.stderr);
|
|
507
509
|
return async (finished) => {
|
|
508
|
-
if (
|
|
510
|
+
if (_chunkGRESJ3H3js.isFailureReportingDisabled.call(void 0, )) return;
|
|
509
511
|
const [stdout, stderr] = await Promise.all([
|
|
510
512
|
stdoutWatch.settled(),
|
|
511
513
|
stderrWatch.settled()
|
|
512
514
|
]);
|
|
513
515
|
if (!shouldReport(stdout, stderr)) return;
|
|
514
516
|
await postCommandOutput({
|
|
515
|
-
command:
|
|
517
|
+
command: _chunkGRESJ3H3js.sanitizeCommand.call(void 0, invocation.argv),
|
|
516
518
|
tool: toolName(finished.action),
|
|
517
519
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
518
520
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -543,7 +545,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
543
545
|
function printUsageErrorJson(code, message, commandPath) {
|
|
544
546
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
545
547
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
546
|
-
|
|
548
|
+
_chunk75NAFY36js.printJson.call(void 0, {
|
|
547
549
|
ok: false,
|
|
548
550
|
error: {
|
|
549
551
|
code,
|
|
@@ -581,10 +583,6 @@ function isDeprecatedCommandInvocation() {
|
|
|
581
583
|
const command = process.argv.slice(2)[0];
|
|
582
584
|
return command === "session" || command === "backend" || command === "enrich";
|
|
583
585
|
}
|
|
584
|
-
function isAutoUpdateSettingsInvocation() {
|
|
585
|
-
const [command, subcommand] = process.argv.slice(2);
|
|
586
|
-
return command === "settings" && subcommand === "autoupdate";
|
|
587
|
-
}
|
|
588
586
|
function compatibilityCommandPath(command) {
|
|
589
587
|
const names = [];
|
|
590
588
|
let current = command;
|
|
@@ -605,7 +603,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
605
603
|
);
|
|
606
604
|
}
|
|
607
605
|
async function runPlayRunnerHealthCheck() {
|
|
608
|
-
|
|
606
|
+
_chunkMHRR47VQjs.resolveConfig.call(void 0, );
|
|
609
607
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
610
608
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
611
609
|
try {
|
|
@@ -635,7 +633,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
635
633
|
});
|
|
636
634
|
let exitCode = 1;
|
|
637
635
|
try {
|
|
638
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
636
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-F3AENS6W.js")));
|
|
639
637
|
exitCode = await handlePlayRun([
|
|
640
638
|
file,
|
|
641
639
|
"--input",
|
|
@@ -675,7 +673,7 @@ function preflightErrorMessage(error) {
|
|
|
675
673
|
return error instanceof Error ? error.message : String(error);
|
|
676
674
|
}
|
|
677
675
|
async function runPreflightCheck() {
|
|
678
|
-
const baseUrl =
|
|
676
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
679
677
|
const healthController = new AbortController();
|
|
680
678
|
const healthTimeout = setTimeout(
|
|
681
679
|
() => healthController.abort(),
|
|
@@ -692,14 +690,14 @@ async function runPreflightCheck() {
|
|
|
692
690
|
}).catch((error) => ({
|
|
693
691
|
status: "unreachable",
|
|
694
692
|
version: null,
|
|
695
|
-
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,
|
|
696
694
|
baseUrl,
|
|
697
695
|
error instanceof Error ? error : new Error(String(error))
|
|
698
696
|
)
|
|
699
697
|
})).finally(() => clearTimeout(healthTimeout));
|
|
700
|
-
const apiKey =
|
|
701
|
-
const http = apiKey ? new (0,
|
|
702
|
-
|
|
698
|
+
const apiKey = _chunkMHRR47VQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
699
|
+
const http = apiKey ? new (0, _chunkMHRR47VQjs.HttpClient)(
|
|
700
|
+
_chunkMHRR47VQjs.resolveConfig.call(void 0, {
|
|
703
701
|
baseUrl,
|
|
704
702
|
apiKey,
|
|
705
703
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -744,7 +742,7 @@ async function runPreflightCheck() {
|
|
|
744
742
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
745
743
|
return {
|
|
746
744
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
747
|
-
cli_version:
|
|
745
|
+
cli_version: _chunkFWSEGIT6js.SDK_VERSION,
|
|
748
746
|
host: baseUrl,
|
|
749
747
|
health: {
|
|
750
748
|
status: healthResult.status,
|
|
@@ -771,7 +769,7 @@ async function runPreflightCheck() {
|
|
|
771
769
|
{
|
|
772
770
|
title: "preflight",
|
|
773
771
|
lines: [
|
|
774
|
-
`cli: ${
|
|
772
|
+
`cli: ${_chunkFWSEGIT6js.SDK_VERSION}`,
|
|
775
773
|
`host: ${baseUrl}`,
|
|
776
774
|
`health: ${healthResult.status}`,
|
|
777
775
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -798,12 +796,12 @@ function printPreflightHuman(data) {
|
|
|
798
796
|
}
|
|
799
797
|
async function newerCliCommandHint(baseUrl, command) {
|
|
800
798
|
if (!command.trim()) return null;
|
|
801
|
-
const { response, error } = await
|
|
799
|
+
const { response, error } = await _chunkHINTYT5Hjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
802
800
|
if (error || !response) return null;
|
|
803
801
|
const introduced = response.command_introduced_in;
|
|
804
802
|
if (introduced) {
|
|
805
803
|
return [
|
|
806
|
-
`\`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}.`,
|
|
807
805
|
` ${introduced.reason}`,
|
|
808
806
|
` Update with: ${response.update_command}`,
|
|
809
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."
|
|
@@ -812,32 +810,32 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
812
810
|
if (!response.update_required) return null;
|
|
813
811
|
return [
|
|
814
812
|
response.message,
|
|
815
|
-
` Installed: ${
|
|
813
|
+
` Installed: ${_chunkFWSEGIT6js.SDK_VERSION}. Run: ${response.update_command}`,
|
|
816
814
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
817
815
|
].join("\n");
|
|
818
816
|
}
|
|
819
817
|
async function runMain(ensureTransport, onAction) {
|
|
820
818
|
const mainStartedAt = Date.now();
|
|
821
|
-
|
|
819
|
+
_chunk75NAFY36js.installJsonStderrGuard.call(void 0, );
|
|
822
820
|
let rootHelpStatus = "";
|
|
823
821
|
let commandFailed = false;
|
|
824
822
|
const deferredMaintenance = { inlinePlay: null };
|
|
825
|
-
|
|
823
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
826
824
|
phase: "cli.main_start",
|
|
827
825
|
argv: process.argv.slice(2)
|
|
828
826
|
});
|
|
829
827
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
830
|
-
const progress = printStartupPhase ?
|
|
828
|
+
const progress = printStartupPhase ? _chunkYJKKOSXSjs.createCliProgress.call(void 0, true) : null;
|
|
831
829
|
if (printStartupPhase) {
|
|
832
830
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
833
831
|
}
|
|
834
832
|
const program = new (0, _commander.Command)();
|
|
835
833
|
program.name("deepline").description(
|
|
836
834
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
837
|
-
).version(
|
|
835
|
+
).version(_chunkFWSEGIT6js.SDK_VERSION, "-v, --version", "Show version").option(
|
|
838
836
|
"--maintenance <policy>",
|
|
839
837
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
840
|
-
|
|
838
|
+
_chunk26DJ4BDYjs.parseCliMaintenancePolicy,
|
|
841
839
|
"configured"
|
|
842
840
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
843
841
|
"beforeAll",
|
|
@@ -879,40 +877,40 @@ Safety:
|
|
|
879
877
|
Environment:
|
|
880
878
|
DEEPLINE_SKIP_SELF_UPDATE=1 Skip automatic CLI updates for this invocation.
|
|
881
879
|
DEEPLINE_SKIP_SKILLS_SYNC=1 Skip automatic agent-skill sync for this invocation.
|
|
882
|
-
|
|
880
|
+
To persist either preference, use deepline settings autoupdate off or deepline settings skills-sync off.
|
|
883
881
|
|
|
884
882
|
Exit codes:
|
|
885
883
|
0 success; 2 usage/local input error; 3 auth/permission error; 4 not found;
|
|
886
884
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
887
885
|
`
|
|
888
886
|
).addHelpText("afterAll", ({ command }) => {
|
|
889
|
-
const key =
|
|
887
|
+
const key = _chunkGDHLL5EQjs.commandDocKey.call(void 0, command);
|
|
890
888
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
891
|
-
return
|
|
889
|
+
return _chunkGDHLL5EQjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
892
890
|
});
|
|
893
891
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
892
|
+
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
894
893
|
onAction({
|
|
895
|
-
path:
|
|
894
|
+
path: compatibilityCommand,
|
|
896
895
|
args: actionCommand.processedArgs
|
|
897
896
|
});
|
|
898
|
-
const maintenance =
|
|
897
|
+
const maintenance = _chunk26DJ4BDYjs.resolveCliMaintenancePolicy.call(void 0,
|
|
899
898
|
actionCommand.optsWithGlobals()
|
|
900
899
|
);
|
|
901
900
|
if (actionCommand.name() !== "version") {
|
|
902
901
|
await ensureTransport();
|
|
903
902
|
}
|
|
904
|
-
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()) {
|
|
905
904
|
return;
|
|
906
905
|
}
|
|
907
|
-
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
908
906
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
909
907
|
if (isToolExecuteCommand) {
|
|
910
|
-
|
|
908
|
+
_chunkZZDTWVCQjs.beginToolExecuteCommand.call(void 0, );
|
|
911
909
|
}
|
|
912
910
|
if (isToolExecuteCommand) {
|
|
913
|
-
const baseUrl =
|
|
914
|
-
if (maintenance !== "off")
|
|
915
|
-
|
|
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, {
|
|
916
914
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
917
915
|
baseUrl,
|
|
918
916
|
command: compatibilityCommand
|
|
@@ -920,9 +918,9 @@ Exit codes:
|
|
|
920
918
|
return;
|
|
921
919
|
}
|
|
922
920
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
923
|
-
if (!playDryRun &&
|
|
921
|
+
if (!playDryRun && _chunkQP333GFEjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
924
922
|
if (maintenance !== "off") {
|
|
925
|
-
const baseUrl =
|
|
923
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
926
924
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
927
925
|
baseUrl,
|
|
928
926
|
command: actionCommand,
|
|
@@ -931,27 +929,27 @@ Exit codes:
|
|
|
931
929
|
}
|
|
932
930
|
return;
|
|
933
931
|
}
|
|
934
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
932
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkZZDTWVCQjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
935
933
|
if (printStartupPhase) {
|
|
936
934
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
937
935
|
}
|
|
938
936
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
939
|
-
const baseUrl =
|
|
940
|
-
if (maintenance !== "off")
|
|
937
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
938
|
+
if (maintenance !== "off") _chunkHINTYT5Hjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
941
939
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
942
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
943
|
-
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,
|
|
944
942
|
baseUrl,
|
|
945
943
|
compatibilityCommand,
|
|
946
944
|
skillsVersion
|
|
947
945
|
);
|
|
948
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
946
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkHINTYT5Hjs.readFreshCleanCompatibility.call(void 0,
|
|
949
947
|
baseUrl,
|
|
950
948
|
compatibilityCommand,
|
|
951
949
|
skillsVersion
|
|
952
950
|
) !== null;
|
|
953
951
|
if (trusted) {
|
|
954
|
-
|
|
952
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
955
953
|
phase: "cli.sdk_compatibility",
|
|
956
954
|
ms: 0,
|
|
957
955
|
ok: true,
|
|
@@ -961,7 +959,7 @@ Exit codes:
|
|
|
961
959
|
source: "trusted_cache"
|
|
962
960
|
});
|
|
963
961
|
}
|
|
964
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
962
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunk26DJ4BDYjs.traceCliSpan.call(void 0,
|
|
965
963
|
"cli.sdk_compatibility",
|
|
966
964
|
{
|
|
967
965
|
baseUrl,
|
|
@@ -969,12 +967,12 @@ Exit codes:
|
|
|
969
967
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
970
968
|
fastDeadline
|
|
971
969
|
},
|
|
972
|
-
() =>
|
|
970
|
+
() => _chunkHINTYT5Hjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
973
971
|
command: compatibilityCommand,
|
|
974
972
|
skillsVersion,
|
|
975
973
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
976
|
-
catalog:
|
|
977
|
-
...fastDeadline ? { timeoutMs:
|
|
974
|
+
catalog: _chunkZZDTWVCQjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
975
|
+
...fastDeadline ? { timeoutMs: _chunkHINTYT5Hjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
978
976
|
})
|
|
979
977
|
);
|
|
980
978
|
if (compatibility.error) {
|
|
@@ -985,7 +983,7 @@ Exit codes:
|
|
|
985
983
|
response: null
|
|
986
984
|
};
|
|
987
985
|
}
|
|
988
|
-
const relaunched = await
|
|
986
|
+
const relaunched = await _chunkZZDTWVCQjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
989
987
|
compatibility.response,
|
|
990
988
|
baseUrl,
|
|
991
989
|
maintenance
|
|
@@ -999,14 +997,14 @@ Exit codes:
|
|
|
999
997
|
};
|
|
1000
998
|
}
|
|
1001
999
|
const policy = compatibility.response;
|
|
1002
|
-
const jsonOutput =
|
|
1003
|
-
|
|
1000
|
+
const jsonOutput = _chunk75NAFY36js.isJsonOutputMode.call(void 0, );
|
|
1001
|
+
_chunkHINTYT5Hjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1004
1002
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1005
|
-
|
|
1003
|
+
_chunkZZDTWVCQjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkHINTYT5Hjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1006
1004
|
});
|
|
1007
1005
|
const advisory = compatibility.response;
|
|
1008
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1009
|
-
|
|
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 });
|
|
1010
1008
|
}
|
|
1011
1009
|
return {
|
|
1012
1010
|
shouldContinue: true,
|
|
@@ -1023,10 +1021,10 @@ Exit codes:
|
|
|
1023
1021
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1024
1022
|
await runStartupStage(
|
|
1025
1023
|
"agent skills sync",
|
|
1026
|
-
() =>
|
|
1024
|
+
() => _chunk26DJ4BDYjs.traceCliSpan.call(void 0,
|
|
1027
1025
|
"cli.sdk_skills_sync",
|
|
1028
1026
|
{ baseUrl: startup.baseUrl },
|
|
1029
|
-
() =>
|
|
1027
|
+
() => _chunkHINTYT5Hjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1030
1028
|
update: skillsUpdate,
|
|
1031
1029
|
mode: "detached"
|
|
1032
1030
|
})
|
|
@@ -1038,16 +1036,16 @@ Exit codes:
|
|
|
1038
1036
|
program,
|
|
1039
1037
|
process.argv.slice(2)
|
|
1040
1038
|
);
|
|
1041
|
-
const commandRegistrationStartedAt =
|
|
1039
|
+
const commandRegistrationStartedAt = _chunk26DJ4BDYjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1042
1040
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1043
1041
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1044
|
-
|
|
1042
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
1045
1043
|
phase: "cli.command_registration",
|
|
1046
1044
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1047
1045
|
});
|
|
1048
1046
|
}
|
|
1049
1047
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1050
|
-
if (
|
|
1048
|
+
if (_chunk75NAFY36js.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1051
1049
|
preflight.addHelpText(
|
|
1052
1050
|
"after",
|
|
1053
1051
|
`
|
|
@@ -1063,8 +1061,8 @@ Examples:
|
|
|
1063
1061
|
`
|
|
1064
1062
|
).action(async (options) => {
|
|
1065
1063
|
const data = await runPreflightCheck();
|
|
1066
|
-
if (
|
|
1067
|
-
|
|
1064
|
+
if (_chunk75NAFY36js.shouldEmitJson.call(void 0, options.json)) {
|
|
1065
|
+
_chunk75NAFY36js.printJson.call(void 0, data);
|
|
1068
1066
|
} else {
|
|
1069
1067
|
printPreflightHuman(data);
|
|
1070
1068
|
}
|
|
@@ -1089,7 +1087,7 @@ Examples:
|
|
|
1089
1087
|
).action(async (options) => {
|
|
1090
1088
|
if (options.playRunner) {
|
|
1091
1089
|
const data = await runPlayRunnerHealthCheck();
|
|
1092
|
-
|
|
1090
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0, data, {
|
|
1093
1091
|
json: options.json,
|
|
1094
1092
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1095
1093
|
`
|
|
@@ -1097,15 +1095,15 @@ Examples:
|
|
|
1097
1095
|
return;
|
|
1098
1096
|
}
|
|
1099
1097
|
try {
|
|
1100
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1101
|
-
const baseUrl =
|
|
1098
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MMHG2OFE.js")));
|
|
1099
|
+
const baseUrl = _chunkMHRR47VQjs.resolveBaseUrlOnly.call(void 0, );
|
|
1102
1100
|
const [{ status, data }, banner] = await Promise.all([
|
|
1103
1101
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1104
1102
|
readStatusBanner(baseUrl)
|
|
1105
1103
|
]);
|
|
1106
1104
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1107
1105
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1108
|
-
|
|
1106
|
+
_chunk75NAFY36js.printCommandEnvelope.call(void 0,
|
|
1109
1107
|
{ ...data, status_banner: banner },
|
|
1110
1108
|
{
|
|
1111
1109
|
json: options.json,
|
|
@@ -1133,16 +1131,16 @@ Examples:
|
|
|
1133
1131
|
`
|
|
1134
1132
|
).action((options) => {
|
|
1135
1133
|
if (options.json) {
|
|
1136
|
-
|
|
1134
|
+
_chunk75NAFY36js.printCompactJson.call(void 0, { version: _chunkFWSEGIT6js.SDK_VERSION });
|
|
1137
1135
|
return;
|
|
1138
1136
|
}
|
|
1139
|
-
process.stdout.write(`deepline ${
|
|
1137
|
+
process.stdout.write(`deepline ${_chunkFWSEGIT6js.SDK_VERSION}
|
|
1140
1138
|
`);
|
|
1141
1139
|
});
|
|
1142
1140
|
if (process.argv.slice(2).length === 0) {
|
|
1143
1141
|
program.outputHelp({ error: true });
|
|
1144
1142
|
console.error("\nerror: missing command (see usage above)");
|
|
1145
|
-
|
|
1143
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
1146
1144
|
phase: "cli.main_total",
|
|
1147
1145
|
ms: Date.now() - mainStartedAt,
|
|
1148
1146
|
ok: false,
|
|
@@ -1154,16 +1152,16 @@ Examples:
|
|
|
1154
1152
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1155
1153
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1156
1154
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1157
|
-
if (!
|
|
1158
|
-
const baseUrl =
|
|
1155
|
+
if (!_chunk75NAFY36js.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1156
|
+
const baseUrl = _chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, );
|
|
1159
1157
|
await ensureTransport();
|
|
1160
1158
|
const versionHint = await newerCliCommandHint(
|
|
1161
1159
|
baseUrl,
|
|
1162
1160
|
requestedTopLevelCommand
|
|
1163
1161
|
);
|
|
1164
|
-
if (
|
|
1162
|
+
if (_chunk75NAFY36js.isJsonOutputMode.call(void 0, )) {
|
|
1165
1163
|
if (versionHint) {
|
|
1166
|
-
|
|
1164
|
+
_chunk75NAFY36js.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1167
1165
|
}
|
|
1168
1166
|
printUsageErrorJson(
|
|
1169
1167
|
"commander.unknownCommand",
|
|
@@ -1185,18 +1183,18 @@ Examples:
|
|
|
1185
1183
|
const helpArgs = process.argv.slice(2);
|
|
1186
1184
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1187
1185
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1188
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1189
|
-
rootHelpStatus = `Version: ${
|
|
1186
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MMHG2OFE.js")));
|
|
1187
|
+
rootHelpStatus = `Version: ${_chunkFWSEGIT6js.SDK_VERSION}
|
|
1190
1188
|
${await authStatusLine()}
|
|
1191
1189
|
`;
|
|
1192
1190
|
}
|
|
1193
1191
|
await program.parseAsync(process.argv);
|
|
1194
|
-
|
|
1192
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
1195
1193
|
phase: "cli.main_total",
|
|
1196
1194
|
ms: Date.now() - mainStartedAt,
|
|
1197
1195
|
ok: true
|
|
1198
1196
|
});
|
|
1199
|
-
await
|
|
1197
|
+
await _chunkGRESJ3H3js.maybeReportSdkCliFailure.call(void 0, {
|
|
1200
1198
|
argv: process.argv.slice(2),
|
|
1201
1199
|
startedAtMs: mainStartedAt,
|
|
1202
1200
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1204,14 +1202,14 @@ ${await authStatusLine()}
|
|
|
1204
1202
|
} catch (error) {
|
|
1205
1203
|
commandFailed = true;
|
|
1206
1204
|
const commanderError = asCommanderError(error);
|
|
1207
|
-
|
|
1205
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
1208
1206
|
phase: "cli.main_total",
|
|
1209
1207
|
ms: Date.now() - mainStartedAt,
|
|
1210
1208
|
ok: false,
|
|
1211
1209
|
error: error instanceof Error ? error.message : String(error)
|
|
1212
1210
|
});
|
|
1213
1211
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1214
|
-
const wantsJson =
|
|
1212
|
+
const wantsJson = _chunk75NAFY36js.isJsonOutputMode.call(void 0, );
|
|
1215
1213
|
if (commanderError) {
|
|
1216
1214
|
const grammarError = [
|
|
1217
1215
|
"commander.unknownCommand",
|
|
@@ -1222,12 +1220,12 @@ ${await authStatusLine()}
|
|
|
1222
1220
|
if (grammarError) {
|
|
1223
1221
|
await ensureTransport();
|
|
1224
1222
|
const versionHint = await newerCliCommandHint(
|
|
1225
|
-
|
|
1223
|
+
_chunkMHRR47VQjs.autoDetectBaseUrl.call(void 0, ),
|
|
1226
1224
|
commandPath
|
|
1227
1225
|
);
|
|
1228
1226
|
if (wantsJson) {
|
|
1229
1227
|
if (versionHint) {
|
|
1230
|
-
|
|
1228
|
+
_chunk75NAFY36js.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1231
1229
|
}
|
|
1232
1230
|
} else {
|
|
1233
1231
|
if (versionHint) console.error(versionHint);
|
|
@@ -1247,55 +1245,55 @@ ${await authStatusLine()}
|
|
|
1247
1245
|
return;
|
|
1248
1246
|
} else if (wantsJson) {
|
|
1249
1247
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1250
|
-
|
|
1248
|
+
_chunk75NAFY36js.addJsonNotice.call(void 0, {
|
|
1251
1249
|
code: "auth_required",
|
|
1252
1250
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1253
1251
|
});
|
|
1254
1252
|
}
|
|
1255
|
-
const providerConcurrency =
|
|
1253
|
+
const providerConcurrency = _chunk75NAFY36js.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1256
1254
|
if (providerConcurrency) {
|
|
1257
|
-
|
|
1255
|
+
_chunk75NAFY36js.addJsonNotice.call(void 0, {
|
|
1258
1256
|
code: "provider_concurrency",
|
|
1259
1257
|
message: providerConcurrency
|
|
1260
1258
|
});
|
|
1261
1259
|
}
|
|
1262
|
-
const payload =
|
|
1263
|
-
|
|
1260
|
+
const payload = _chunk75NAFY36js.errorToJsonPayload.call(void 0, error);
|
|
1261
|
+
_chunk75NAFY36js.printJson.call(void 0, {
|
|
1264
1262
|
...payload,
|
|
1265
1263
|
// The envelope names the code the process exits with, so a caller
|
|
1266
1264
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1267
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1265
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkGRESJ3H3js.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1268
1266
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1269
1267
|
});
|
|
1270
1268
|
} else if (error instanceof Error) {
|
|
1271
1269
|
console.error(`Error: ${error.message}`);
|
|
1272
|
-
const toolDiagnostic =
|
|
1270
|
+
const toolDiagnostic = _chunk75NAFY36js.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1273
1271
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1274
1272
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1275
1273
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1276
1274
|
}
|
|
1277
|
-
const providerConcurrency =
|
|
1275
|
+
const providerConcurrency = _chunk75NAFY36js.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1278
1276
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1279
1277
|
} else {
|
|
1280
1278
|
console.error(`Error: ${String(error)}`);
|
|
1281
1279
|
}
|
|
1282
1280
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1283
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1281
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkGRESJ3H3js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1284
1282
|
process.exitCode = failureExitCode;
|
|
1285
|
-
await
|
|
1283
|
+
await _chunkGRESJ3H3js.maybeReportSdkCliFailure.call(void 0, {
|
|
1286
1284
|
argv: process.argv.slice(2),
|
|
1287
1285
|
startedAtMs: mainStartedAt,
|
|
1288
1286
|
exitCode: failureExitCode,
|
|
1289
1287
|
error
|
|
1290
1288
|
});
|
|
1291
1289
|
} finally {
|
|
1292
|
-
|
|
1290
|
+
_chunkZZDTWVCQjs.finishToolExecuteCommand.call(void 0, );
|
|
1293
1291
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1294
1292
|
deferredMaintenance.inlinePlay = null;
|
|
1295
1293
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1296
1294
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1297
1295
|
}
|
|
1298
|
-
await
|
|
1296
|
+
await _chunkZZDTWVCQjs.runDeferredAutoUpdate.call(void 0, );
|
|
1299
1297
|
}
|
|
1300
1298
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1301
1299
|
}
|
|
@@ -1303,7 +1301,7 @@ async function main() {
|
|
|
1303
1301
|
let disposeTransport;
|
|
1304
1302
|
const ensureTransport = async () => {
|
|
1305
1303
|
if (disposeTransport) return;
|
|
1306
|
-
const transportStartedAt =
|
|
1304
|
+
const transportStartedAt = _chunk26DJ4BDYjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1307
1305
|
const hasProxy = [
|
|
1308
1306
|
"HTTP_PROXY",
|
|
1309
1307
|
"http_proxy",
|
|
@@ -1315,7 +1313,7 @@ async function main() {
|
|
|
1315
1313
|
disposeTransport = configureCliTransport();
|
|
1316
1314
|
}
|
|
1317
1315
|
if (transportStartedAt !== void 0) {
|
|
1318
|
-
|
|
1316
|
+
_chunk26DJ4BDYjs.recordCliTrace.call(void 0, {
|
|
1319
1317
|
phase: "cli.transport_setup",
|
|
1320
1318
|
ms: performance.now() - transportStartedAt
|
|
1321
1319
|
});
|
|
@@ -1332,9 +1330,9 @@ async function main() {
|
|
|
1332
1330
|
action = dispatched;
|
|
1333
1331
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1334
1332
|
});
|
|
1335
|
-
const silentFailure =
|
|
1333
|
+
const silentFailure = _chunk75NAFY36js.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1336
1334
|
if (silentFailure) {
|
|
1337
|
-
|
|
1335
|
+
_chunk75NAFY36js.printJson.call(void 0, {
|
|
1338
1336
|
ok: false,
|
|
1339
1337
|
exitCode: Number(process.exitCode),
|
|
1340
1338
|
error: { code: "CLI_ERROR", message: silentFailure }
|