deepline 0.3.571 → 0.3.572
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +11 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +28 -17
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +360 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +274 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-scheduler-topology.ts +35 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +28 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +11 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-claim-affinity.ts +67 -43
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +23 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-listener-hint.ts +62 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +11 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +54 -5
- package/dist/cli/auth-PXIVGUVZ.js +44 -0
- package/dist/cli/{auth-ARGNQK7A.mjs → auth-YUDM3YOC.mjs} +5 -5
- package/dist/cli/{billing-KAKODYTN.js → billing-F3ZGOWKL.js} +99 -99
- package/dist/cli/{billing-QRZTHCBX.mjs → billing-O7WUC4TU.mjs} +8 -8
- package/dist/cli/{chunk-C27FK36H.js → chunk-3SFLY3T3.js} +5 -5
- package/dist/cli/{chunk-GOUKX6XD.js → chunk-43GCEVHO.js} +3 -3
- package/dist/cli/{chunk-PTM5V5FV.js → chunk-4W5EFHHY.js} +7 -7
- package/dist/cli/{chunk-2IZOCGOA.js → chunk-5EMYPLTW.js} +53 -53
- package/dist/cli/{chunk-IXFFOZZQ.js → chunk-5VUD7HGD.js} +2 -2
- package/dist/cli/{chunk-7HAYEKC4.mjs → chunk-6R57HEPF.mjs} +1 -1
- package/dist/cli/{chunk-H6QMUX7Y.mjs → chunk-72WI67H4.mjs} +2 -2
- package/dist/cli/{chunk-MFBFQUQK.js → chunk-AHNJGA6Z.js} +6 -6
- package/dist/cli/{chunk-CR6IPQBB.mjs → chunk-AJO3I3LL.mjs} +1 -1
- package/dist/cli/{chunk-UBNRPJKO.mjs → chunk-BWWDU6FN.mjs} +5 -5
- package/dist/cli/{chunk-ETGM6PIR.mjs → chunk-CYW6PE3G.mjs} +5 -5
- package/dist/cli/{chunk-Z3DSCE5F.mjs → chunk-EDAG7ZU4.mjs} +1 -1
- package/dist/cli/{chunk-FQP5VSVF.mjs → chunk-EKIWY5DD.mjs} +1 -1
- package/dist/cli/{chunk-336AHC7H.mjs → chunk-EKWDSE6H.mjs} +4 -4
- package/dist/cli/{chunk-6OP5UW7C.js → chunk-EL4LME5Y.js} +48 -48
- package/dist/cli/{chunk-7JGHNZTD.js → chunk-FGBX2WVJ.js} +4 -4
- package/dist/cli/{chunk-TJU2BECV.mjs → chunk-GX4VZL4Z.mjs} +3 -3
- package/dist/cli/{chunk-YGGHPEWP.js → chunk-HYCJNHZ4.js} +15 -15
- package/dist/cli/{chunk-QRMTITKL.mjs → chunk-I4WKB3HO.mjs} +2 -2
- package/dist/cli/{chunk-A5HDA22N.js → chunk-ITQPBWDS.js} +3 -3
- package/dist/cli/{chunk-A3IVPA6Q.mjs → chunk-JEI7PHET.mjs} +1 -1
- package/dist/cli/{chunk-J5KW2ZDB.mjs → chunk-JJEN7TRR.mjs} +1 -1
- package/dist/cli/{chunk-ILKUKEWX.js → chunk-K4LAEKHS.js} +41 -41
- package/dist/cli/{chunk-HGER4CJA.js → chunk-LBNP52C4.js} +5 -5
- package/dist/cli/{chunk-A3B54QEW.mjs → chunk-MVQ5XGRO.mjs} +3 -3
- package/dist/cli/{chunk-IFKZQCPX.js → chunk-NOKSEYMS.js} +1 -1
- package/dist/cli/{chunk-PO3NOBHU.mjs → chunk-OUVQKSVC.mjs} +1 -1
- package/dist/cli/{chunk-CITDBSXI.js → chunk-PI4TKE2B.js} +26 -26
- package/dist/cli/{chunk-WZOUXILM.mjs → chunk-PQ6PM4V6.mjs} +1 -1
- package/dist/cli/{chunk-6N3NTEJ6.js → chunk-PRDCU7BY.js} +20 -20
- package/dist/cli/{chunk-RBPR5ZNN.js → chunk-PZGK6EEB.js} +100 -100
- package/dist/cli/{chunk-CF6CSAMJ.mjs → chunk-Q6H5RRTG.mjs} +4 -4
- package/dist/cli/{chunk-UTGHPC5D.mjs → chunk-QA733N7N.mjs} +1 -1
- package/dist/cli/{chunk-VLQB65HI.js → chunk-QMIMGKR2.js} +9 -9
- package/dist/cli/{chunk-YDULFKDL.mjs → chunk-RIA73OAZ.mjs} +2 -2
- package/dist/cli/{chunk-GCE5KOJJ.mjs → chunk-SJI56XPM.mjs} +11 -11
- package/dist/cli/{chunk-GRD3DLH7.mjs → chunk-UFUXGMHL.mjs} +2 -2
- package/dist/cli/{chunk-NAGGCF6Y.js → chunk-UKD5ZBQD.js} +5 -5
- package/dist/cli/{chunk-C6XV2DPY.mjs → chunk-UMP76GYQ.mjs} +3 -3
- package/dist/cli/{chunk-VULSFPD4.mjs → chunk-UQWYDNGB.mjs} +5 -5
- package/dist/cli/{chunk-SJYLLHHZ.js → chunk-UUYB6IXC.js} +13 -13
- package/dist/cli/{chunk-Z6OUUAIV.mjs → chunk-UY6Z3XWW.mjs} +2 -2
- package/dist/cli/{chunk-CFMIWRGD.mjs → chunk-V2W7GX2I.mjs} +2 -2
- package/dist/cli/{chunk-GACQOGRS.js → chunk-VGPHXXPI.js} +15 -15
- package/dist/cli/{chunk-WOU2WS6S.js → chunk-VZ4S5JRC.js} +23 -23
- package/dist/cli/{chunk-AOMVAXGX.js → chunk-W3HLZ24Q.js} +10 -10
- package/dist/cli/{chunk-XD4MT4BH.js → chunk-W3RHISD6.js} +8 -8
- package/dist/cli/{chunk-YDM5WSXO.mjs → chunk-W742U53L.mjs} +5 -5
- package/dist/cli/{chunk-AD7BGMTL.mjs → chunk-X6F4XOT2.mjs} +2 -2
- package/dist/cli/{chunk-YQ36Z23U.js → chunk-XNJXRS3B.js} +2 -2
- package/dist/cli/{chunk-C3FHMJ4A.js → chunk-XVQE6IBS.js} +2 -2
- package/dist/cli/{chunk-73P76DCN.js → chunk-YOST7EJF.js} +20 -20
- package/dist/cli/{concurrent-runs-help-VPYB4ODC.mjs → concurrent-runs-help-5BKCGFGL.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-KGELXJIQ.js +22 -0
- package/dist/cli/{csv-GHGDSFNV.js → csv-7ZAWND7L.js} +13 -13
- package/dist/cli/{csv-RALLG3MG.mjs → csv-MO5WZZDN.mjs} +4 -4
- package/dist/cli/{db-722SKSIB.js → db-36LX7JBQ.js} +27 -27
- package/dist/cli/{db-HB65VYRR.mjs → db-OYMULINA.mjs} +6 -6
- package/dist/cli/describe-AVGE4MH6.js +50 -0
- package/dist/cli/{describe-Q6M7PUBU.mjs → describe-JLAERB6X.mjs} +18 -18
- package/dist/cli/{executions-GQNV3LNU.js → executions-AQ32J4BZ.js} +8 -8
- package/dist/cli/{executions-G3M75HW2.mjs → executions-IZAB2XNC.mjs} +6 -6
- package/dist/cli/{feedback-B43F2FBL.js → feedback-3IV54HOH.js} +14 -14
- package/dist/cli/{feedback-CSDBYSRS.mjs → feedback-WA6EBE5H.mjs} +6 -6
- package/dist/cli/{git-IZ4Y3RAW.mjs → git-OSLU6HIK.mjs} +5 -5
- package/dist/cli/git-VOFO6V5W.js +26 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-OLCUWZ6Z.js → integrations-65SYNL53.js} +29 -29
- package/dist/cli/{integrations-DT7EGM2Y.mjs → integrations-WOXFOC4M.mjs} +7 -7
- package/dist/cli/{legacy-noops-FTGNTO3U.js → legacy-noops-3SGXDAV6.js} +9 -9
- package/dist/cli/{legacy-noops-4TPT534L.mjs → legacy-noops-4FNG2JY3.mjs} +6 -6
- package/dist/cli/{mcp-3IDWLBKK.js → mcp-PX27RHCY.js} +24 -24
- package/dist/cli/{mcp-5KDJJT7M.mjs → mcp-RZLWMZHH.mjs} +4 -4
- package/dist/cli/{monitors-7GOZBKJR.js → monitors-F5BLGS4R.js} +100 -100
- package/dist/cli/{monitors-EOAA5RQO.mjs → monitors-VK2LW7VU.mjs} +7 -7
- package/dist/cli/{org-H5I56A4F.mjs → org-7AEBTN6Y.mjs} +6 -6
- package/dist/cli/{org-UJ5SWQJ5.js → org-UU3V7U4K.js} +121 -121
- package/dist/cli/{outcomes-MG57YXJX.mjs → outcomes-BWERSUJL.mjs} +6 -6
- package/dist/cli/{outcomes-24KFY2X5.js → outcomes-GCTBGPMK.js} +14 -14
- package/dist/cli/{play-PPPACSQE.js → play-7NBCCL26.js} +324 -324
- package/dist/cli/{play-MXPXRAUM.mjs → play-TX3RAAYS.mjs} +19 -19
- package/dist/cli/{providers-LTYNEXLB.js → providers-IL2IVKHB.js} +9 -9
- package/dist/cli/{providers-5ZN3MO6E.mjs → providers-KFWZXDCV.mjs} +6 -6
- package/dist/cli/{quickstart-UBDHX7PT.js → quickstart-MPA6TUK5.js} +6 -6
- package/dist/cli/{quickstart-ENDTTNLE.mjs → quickstart-RAMDGRRI.mjs} +4 -4
- package/dist/cli/{run-QJJSP35C.mjs → run-QNJSKPBN.mjs} +23 -23
- package/dist/cli/{run-6O6LQVWD.js → run-WBUSXBUS.js} +44 -44
- package/dist/cli/{search-PXZPVXDK.mjs → search-2X4P2FXR.mjs} +7 -7
- package/dist/cli/search-CJHG3VA4.js +32 -0
- package/dist/cli/{search-output-KRR4YOJX.mjs → search-output-MNJ4AQLV.mjs} +4 -4
- package/dist/cli/{search-output-H3ZQLJUF.js → search-output-P2WNCHA3.js} +6 -6
- package/dist/cli/{secrets-QZMXBI64.js → secrets-K5CNDUVR.js} +15 -15
- package/dist/cli/{secrets-HIGERL4N.mjs → secrets-XX54OU22.mjs} +6 -6
- package/dist/cli/sessions-3RMRBBJZ.js +23 -0
- package/dist/cli/{sessions-4SGQAX3F.mjs → sessions-C4GQ6ZVO.mjs} +6 -6
- package/dist/cli/{settings-UQLHVBOP.mjs → settings-7HBTADGW.mjs} +12 -12
- package/dist/cli/{settings-FFTTVDRV.js → settings-QP3DVFPS.js} +85 -85
- package/dist/cli/{setup-R5MBUG5M.mjs → setup-VPDAKY2G.mjs} +9 -9
- package/dist/cli/{setup-SS3MABJP.js → setup-X6J7U6B4.js} +49 -49
- package/dist/cli/skills-JUGXGSX2.js +37 -0
- package/dist/cli/{skills-X6PNEVWX.mjs → skills-UGY6W4AC.mjs} +7 -7
- package/dist/cli/{tools-YFW3FXAB.mjs → tools-SVBUAHDD.mjs} +17 -17
- package/dist/cli/tools-ZEI42NSP.js +57 -0
- package/dist/cli/{update-HX5BNFLQ.mjs → update-SDNKNDNW.mjs} +9 -9
- package/dist/cli/update-VC4UEGMR.js +37 -0
- package/dist/cli/{views-BGCRC22G.js → views-JBFSHQBU.js} +21 -21
- package/dist/cli/{views-FH5XL2PU.mjs → views-M6RBPC65.mjs} +6 -6
- package/dist/cli/{workflow-VLNDGNJI.mjs → workflow-RYVRAIHV.mjs} +7 -7
- package/dist/cli/{workflow-UY5PZBIK.js → workflow-UAMTGHQC.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -112
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-FKYYYCME.js +0 -44
- package/dist/cli/concurrent-runs-help-VUMIMYO7.js +0 -22
- package/dist/cli/describe-SG2N62VE.js +0 -50
- package/dist/cli/git-IJHKRWTR.js +0 -26
- package/dist/cli/search-TYPJWK4I.js +0 -32
- package/dist/cli/sessions-OS4ZBU4K.js +0 -23
- package/dist/cli/skills-FVDSEEUL.js +0 -37
- package/dist/cli/tools-ORTGWD63.js +0 -57
- package/dist/cli/update-RWVNNNHN.js +0 -37
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkAHNJGA6Zjs = require('./chunk-AHNJGA6Z.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXNJXRS3Bjs = require('./chunk-XNJXRS3B.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,17 +13,17 @@ var _chunkYQ36Z23Ujs = require('./chunk-YQ36Z23U.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkVZ4S5JRCjs = require('./chunk-VZ4S5JRC.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
26
|
-
require('./chunk-
|
|
23
|
+
var _chunkXVQE6IBSjs = require('./chunk-XVQE6IBS.js');
|
|
24
|
+
require('./chunk-YOST7EJF.js');
|
|
25
|
+
require('./chunk-5VUD7HGD.js');
|
|
26
|
+
require('./chunk-K4LAEKHS.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -35,10 +35,10 @@ require('./chunk-ILKUKEWX.js');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkEL4LME5Yjs = require('./chunk-EL4LME5Y.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunk43GCEVHOjs = require('./chunk-43GCEVHO.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -65,7 +65,7 @@ require('./chunk-YGCKMI5P.js');
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var _chunkPRDCU7BYjs = require('./chunk-PRDCU7BY.js');
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
@@ -73,19 +73,19 @@ var _chunk6N3NTEJ6js = require('./chunk-6N3NTEJ6.js');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunkITQPBWDSjs = require('./chunk-ITQPBWDS.js');
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkFGBX2WVJjs = require('./chunk-FGBX2WVJ.js');
|
|
82
82
|
|
|
83
83
|
|
|
84
84
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
85
85
|
require('./chunk-XNYIZMNQ.js');
|
|
86
86
|
require('./chunk-LFQJW4S2.js');
|
|
87
87
|
require('./chunk-CFJFUVX2.js');
|
|
88
|
-
require('./chunk-
|
|
88
|
+
require('./chunk-NOKSEYMS.js');
|
|
89
89
|
require('./chunk-OG64RBAC.js');
|
|
90
90
|
require('./chunk-RLX5ZFNX.js');
|
|
91
91
|
require('./chunk-COGTRVWW.js');
|
|
@@ -166,68 +166,68 @@ var _os = require('os');
|
|
|
166
166
|
var COMMAND_GROUPS = [
|
|
167
167
|
{
|
|
168
168
|
names: ["auth"],
|
|
169
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
169
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-PXIVGUVZ.js")))).registerAuthCommands
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
names: ["providers"],
|
|
173
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
173
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-IL2IVKHB.js")))).registerProviderCommands
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
names: ["integrations"],
|
|
177
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./integrations-
|
|
177
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./integrations-65SYNL53.js")))).registerIntegrationsCommands
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
names: ["search"],
|
|
181
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
181
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-CJHG3VA4.js")))).registerSearchCommand
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
names: ["describe"],
|
|
185
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
185
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-AVGE4MH6.js")))).registerDescribeCommand
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
names: ["run"],
|
|
189
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
189
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-WBUSXBUS.js")))).registerRunCommand
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
names: ["tools"],
|
|
193
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
193
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-ZEI42NSP.js")))).registerToolsCommands
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
names: ["executions"],
|
|
197
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
197
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-AQ32J4BZ.js")))).registerExecutionsCommands
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
names: ["plays", "runs"],
|
|
201
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
201
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-7NBCCL26.js")))).registerPlayCommands
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
names: ["sessions"],
|
|
205
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
205
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-3RMRBBJZ.js")))).registerSessionsCommands
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
names: ["workflows"],
|
|
209
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
209
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-UAMTGHQC.js")))).registerWorkflowCommands
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
names: ["outcomes"],
|
|
213
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-
|
|
213
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./outcomes-GCTBGPMK.js")))).registerOutcomesCommands
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
names: ["views"],
|
|
217
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-
|
|
217
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-JBFSHQBU.js")))).registerViewsCommands
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
names: ["secrets"],
|
|
221
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
221
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-K5CNDUVR.js")))).registerSecretsCommands
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
names: ["mcp"],
|
|
225
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-
|
|
225
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-PX27RHCY.js")))).registerMcpCommands
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
names: ["settings", "notifications"],
|
|
229
229
|
load: async () => {
|
|
230
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
230
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-QP3DVFPS.js")));
|
|
231
231
|
return (p) => {
|
|
232
232
|
commands.registerSettingsCommands(p);
|
|
233
233
|
commands.registerNotificationCommands(p);
|
|
@@ -236,51 +236,51 @@ var COMMAND_GROUPS = [
|
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
names: ["billing"],
|
|
239
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
239
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-F3ZGOWKL.js")))).registerBillingCommands
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
names: ["monitors"],
|
|
243
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
243
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-F5BLGS4R.js")))).registerMonitorsCommands
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
names: ["org"],
|
|
247
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
247
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-UU3V7U4K.js")))).registerOrgCommands
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
250
|
names: ["git", "projects", "deployments"],
|
|
251
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
251
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-VOFO6V5W.js")))).registerGitCommands
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
names: ["csv"],
|
|
255
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
255
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-7ZAWND7L.js")))).registerCsvCommands
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
names: ["db"],
|
|
259
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
259
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-36LX7JBQ.js")))).registerDbCommands
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
names: ["feedback"],
|
|
263
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
263
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-3IV54HOH.js")))).registerFeedbackCommands
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
names: ["enrich", "session", "backend"],
|
|
267
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
267
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-3SGXDAV6.js")))).registerDeprecatedCommands
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
names: ["update"],
|
|
271
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
271
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-VC4UEGMR.js")))).registerUpdateCommand
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
274
|
names: ["skills", "skills-auto-sync"],
|
|
275
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
275
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-JUGXGSX2.js")))).registerSkillsCommand
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
names: ["setup", "doctor"],
|
|
279
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
279
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-X6J7U6B4.js")))).registerSetupCommands
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
names: ["quickstart"],
|
|
283
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
283
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-MPA6TUK5.js")))).registerQuickstartCommands
|
|
284
284
|
}
|
|
285
285
|
];
|
|
286
286
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -306,8 +306,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
306
306
|
function createDeferredPlayRunMaintenance(input) {
|
|
307
307
|
return async () => {
|
|
308
308
|
try {
|
|
309
|
-
const skillsVersion =
|
|
310
|
-
const compatibility = await
|
|
309
|
+
const skillsVersion = _chunkITQPBWDSjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
310
|
+
const compatibility = await _chunkXVQE6IBSjs.traceCliSpan.call(void 0,
|
|
311
311
|
"cli.sdk_compatibility_deferred",
|
|
312
312
|
{
|
|
313
313
|
baseUrl: input.baseUrl,
|
|
@@ -315,24 +315,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
315
315
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
316
316
|
},
|
|
317
317
|
async () => {
|
|
318
|
-
const trusted =
|
|
318
|
+
const trusted = _chunkEL4LME5Yjs.readTrustedCleanCompatibility.call(void 0,
|
|
319
319
|
input.baseUrl,
|
|
320
320
|
"plays run",
|
|
321
321
|
skillsVersion
|
|
322
322
|
);
|
|
323
323
|
if (trusted) return { response: trusted, error: null };
|
|
324
|
-
return
|
|
324
|
+
return _chunkEL4LME5Yjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
325
325
|
command: "plays run",
|
|
326
326
|
skillsVersion,
|
|
327
327
|
persistCache: input.policy !== "off",
|
|
328
|
-
catalog:
|
|
328
|
+
catalog: _chunkVZ4S5JRCjs.compatibilityCatalog.call(void 0, input.command)
|
|
329
329
|
});
|
|
330
330
|
}
|
|
331
331
|
);
|
|
332
332
|
if (compatibility.error || !compatibility.response) return;
|
|
333
333
|
const automaticUpdate = compatibility.response.auto_update;
|
|
334
334
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
335
|
-
await
|
|
335
|
+
await _chunkVZ4S5JRCjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
336
336
|
compatibility.response,
|
|
337
337
|
input.baseUrl,
|
|
338
338
|
input.policy
|
|
@@ -342,7 +342,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
342
342
|
compatibility.response,
|
|
343
343
|
"skills"
|
|
344
344
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
345
|
-
await
|
|
345
|
+
await _chunkEL4LME5Yjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
346
346
|
update: skillsUpdate,
|
|
347
347
|
mode: "detached"
|
|
348
348
|
});
|
|
@@ -370,7 +370,7 @@ var MAX_SESSIONS = 20;
|
|
|
370
370
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
371
371
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
372
372
|
}
|
|
373
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
373
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkFGBX2WVJjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
374
374
|
const explicit = _chunkN6KF6X3Djs.helpDetailFromArgv.call(void 0, argv);
|
|
375
375
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
376
376
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
@@ -468,7 +468,7 @@ function shouldReport(stdout, stderr) {
|
|
|
468
468
|
}
|
|
469
469
|
function toolName(action) {
|
|
470
470
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
471
|
-
return typeof toolId === "string" ?
|
|
471
|
+
return typeof toolId === "string" ? _chunkPRDCU7BYjs.redactFailureText.call(void 0, toolId) : null;
|
|
472
472
|
}
|
|
473
473
|
function chunkText(chunk) {
|
|
474
474
|
if (typeof chunk === "string") return chunk;
|
|
@@ -499,14 +499,14 @@ function watch(stream) {
|
|
|
499
499
|
}
|
|
500
500
|
async function postCommandOutput(body) {
|
|
501
501
|
try {
|
|
502
|
-
const baseUrl =
|
|
503
|
-
const apiKey =
|
|
502
|
+
const baseUrl = _chunkITQPBWDSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
503
|
+
const apiKey = _chunkITQPBWDSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
504
504
|
if (!apiKey) return;
|
|
505
|
-
const agentSessionId =
|
|
505
|
+
const agentSessionId = _chunkFGBX2WVJjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
506
506
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
507
507
|
method: "POST",
|
|
508
508
|
headers: {
|
|
509
|
-
...
|
|
509
|
+
..._chunkPRDCU7BYjs.failureReportHeaders.call(void 0, apiKey),
|
|
510
510
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
511
511
|
},
|
|
512
512
|
body: JSON.stringify(body),
|
|
@@ -522,14 +522,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
522
522
|
const stdoutWatch = watch(streams.stdout);
|
|
523
523
|
const stderrWatch = watch(streams.stderr);
|
|
524
524
|
return async (finished) => {
|
|
525
|
-
if (
|
|
525
|
+
if (_chunkPRDCU7BYjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
526
526
|
const [stdout, stderr] = await Promise.all([
|
|
527
527
|
stdoutWatch.settled(),
|
|
528
528
|
stderrWatch.settled()
|
|
529
529
|
]);
|
|
530
530
|
if (!shouldReport(stdout, stderr)) return;
|
|
531
531
|
await postCommandOutput({
|
|
532
|
-
command:
|
|
532
|
+
command: _chunkPRDCU7BYjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
533
533
|
tool: toolName(finished.action),
|
|
534
534
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
535
535
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -560,7 +560,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
560
560
|
function printUsageErrorJson(code, message, commandPath) {
|
|
561
561
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
562
562
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
563
|
-
|
|
563
|
+
_chunkPRDCU7BYjs.printJson.call(void 0, {
|
|
564
564
|
ok: false,
|
|
565
565
|
error: {
|
|
566
566
|
code,
|
|
@@ -618,7 +618,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
618
618
|
);
|
|
619
619
|
}
|
|
620
620
|
async function runPlayRunnerHealthCheck() {
|
|
621
|
-
|
|
621
|
+
_chunkITQPBWDSjs.resolveConfig.call(void 0, );
|
|
622
622
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
623
623
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
624
624
|
try {
|
|
@@ -648,7 +648,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
648
648
|
});
|
|
649
649
|
let exitCode = 1;
|
|
650
650
|
try {
|
|
651
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
651
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-7NBCCL26.js")));
|
|
652
652
|
exitCode = await handlePlayRun([
|
|
653
653
|
file,
|
|
654
654
|
"--input",
|
|
@@ -688,7 +688,7 @@ function preflightErrorMessage(error) {
|
|
|
688
688
|
return error instanceof Error ? error.message : String(error);
|
|
689
689
|
}
|
|
690
690
|
async function runPreflightCheck() {
|
|
691
|
-
const baseUrl =
|
|
691
|
+
const baseUrl = _chunkITQPBWDSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
692
692
|
const healthController = new AbortController();
|
|
693
693
|
const healthTimeout = setTimeout(
|
|
694
694
|
() => healthController.abort(),
|
|
@@ -705,14 +705,14 @@ async function runPreflightCheck() {
|
|
|
705
705
|
}).catch((error) => ({
|
|
706
706
|
status: "unreachable",
|
|
707
707
|
version: null,
|
|
708
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
708
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkFGBX2WVJjs.connectionFailureMessage.call(void 0,
|
|
709
709
|
baseUrl,
|
|
710
710
|
error instanceof Error ? error : new Error(String(error))
|
|
711
711
|
)
|
|
712
712
|
})).finally(() => clearTimeout(healthTimeout));
|
|
713
|
-
const apiKey =
|
|
714
|
-
const http = apiKey ? new (0,
|
|
715
|
-
|
|
713
|
+
const apiKey = _chunkITQPBWDSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
714
|
+
const http = apiKey ? new (0, _chunkITQPBWDSjs.HttpClient)(
|
|
715
|
+
_chunkITQPBWDSjs.resolveConfig.call(void 0, {
|
|
716
716
|
baseUrl,
|
|
717
717
|
apiKey,
|
|
718
718
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -757,7 +757,7 @@ async function runPreflightCheck() {
|
|
|
757
757
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
758
758
|
return {
|
|
759
759
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
760
|
-
cli_version:
|
|
760
|
+
cli_version: _chunkFGBX2WVJjs.SDK_VERSION,
|
|
761
761
|
host: baseUrl,
|
|
762
762
|
health: {
|
|
763
763
|
status: healthResult.status,
|
|
@@ -784,7 +784,7 @@ async function runPreflightCheck() {
|
|
|
784
784
|
{
|
|
785
785
|
title: "preflight",
|
|
786
786
|
lines: [
|
|
787
|
-
`cli: ${
|
|
787
|
+
`cli: ${_chunkFGBX2WVJjs.SDK_VERSION}`,
|
|
788
788
|
`host: ${baseUrl}`,
|
|
789
789
|
`health: ${healthResult.status}`,
|
|
790
790
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -811,12 +811,12 @@ function printPreflightHuman(data) {
|
|
|
811
811
|
}
|
|
812
812
|
async function newerCliCommandHint(baseUrl, command) {
|
|
813
813
|
if (!command.trim()) return null;
|
|
814
|
-
const { response, error } = await
|
|
814
|
+
const { response, error } = await _chunkEL4LME5Yjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
815
815
|
if (error || !response) return null;
|
|
816
816
|
const introduced = response.command_introduced_in;
|
|
817
817
|
if (introduced) {
|
|
818
818
|
return [
|
|
819
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
819
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkFGBX2WVJjs.SDK_VERSION}.`,
|
|
820
820
|
` ${introduced.reason}`,
|
|
821
821
|
` Update with: ${response.update_command}`,
|
|
822
822
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -825,36 +825,36 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
825
825
|
if (!response.update_required) return null;
|
|
826
826
|
return [
|
|
827
827
|
response.message,
|
|
828
|
-
` Installed: ${
|
|
828
|
+
` Installed: ${_chunkFGBX2WVJjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
829
829
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
830
830
|
].join("\n");
|
|
831
831
|
}
|
|
832
832
|
async function runMain(ensureTransport, onAction, suppressOutputReport) {
|
|
833
833
|
const mainStartedAt = Date.now();
|
|
834
|
-
|
|
834
|
+
_chunkPRDCU7BYjs.installJsonStderrGuard.call(void 0, );
|
|
835
835
|
let rootHelpStatus = "";
|
|
836
836
|
let concurrentRunsHelpStatus = "";
|
|
837
837
|
let commandFailed = false;
|
|
838
838
|
const deferredMaintenance = { inlinePlay: null };
|
|
839
|
-
|
|
839
|
+
_chunkXVQE6IBSjs.recordCliTrace.call(void 0, {
|
|
840
840
|
phase: "cli.main_start",
|
|
841
841
|
argv: process.argv.slice(2)
|
|
842
842
|
});
|
|
843
843
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
844
|
-
const progress = printStartupPhase ?
|
|
844
|
+
const progress = printStartupPhase ? _chunk43GCEVHOjs.createCliProgress.call(void 0, true) : null;
|
|
845
845
|
if (printStartupPhase) {
|
|
846
846
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
847
847
|
}
|
|
848
848
|
const program = new (0, _commander.Command)();
|
|
849
849
|
program.name("deepline").description(
|
|
850
850
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
851
|
-
).version(
|
|
851
|
+
).version(_chunkFGBX2WVJjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
852
852
|
"--workspace <workspace-id>",
|
|
853
853
|
"Act in this workspace (default: DEEPLINE_WORKSPACE_ID, else the workspace saved by org workspace set, else the org's default workspace)"
|
|
854
854
|
).option(
|
|
855
855
|
"--maintenance <policy>",
|
|
856
856
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
857
|
-
|
|
857
|
+
_chunkXVQE6IBSjs.parseCliMaintenancePolicy,
|
|
858
858
|
"configured"
|
|
859
859
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
860
860
|
"beforeAll",
|
|
@@ -914,7 +914,7 @@ Exit codes:
|
|
|
914
914
|
path: compatibilityCommand,
|
|
915
915
|
args: actionCommand.processedArgs
|
|
916
916
|
});
|
|
917
|
-
const maintenance =
|
|
917
|
+
const maintenance = _chunkXVQE6IBSjs.resolveCliMaintenancePolicy.call(void 0,
|
|
918
918
|
actionCommand.optsWithGlobals()
|
|
919
919
|
);
|
|
920
920
|
const workspace = actionCommand.optsWithGlobals().workspace;
|
|
@@ -924,19 +924,19 @@ Exit codes:
|
|
|
924
924
|
if (actionCommand.name() !== "version") {
|
|
925
925
|
await ensureTransport();
|
|
926
926
|
}
|
|
927
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
927
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkEL4LME5Yjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || compatibilityCommand === "settings autoupdate" || compatibilityCommand.startsWith("settings autoupdate ") || compatibilityCommand === "settings skills-sync" || isDeprecatedCommandInvocation() || compatibilityCommand === "settings feedback" || compatibilityCommand.startsWith("settings feedback ") || ["feedback send", "sessions send", "session send"].includes(
|
|
928
928
|
compatibilityCommand
|
|
929
|
-
) &&
|
|
929
|
+
) && _chunkXNJXRS3Bjs.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
|
|
930
930
|
return;
|
|
931
931
|
}
|
|
932
932
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
933
933
|
if (isToolExecuteCommand) {
|
|
934
|
-
|
|
934
|
+
_chunkVZ4S5JRCjs.beginToolExecuteCommand.call(void 0, );
|
|
935
935
|
}
|
|
936
936
|
if (isToolExecuteCommand) {
|
|
937
|
-
const baseUrl =
|
|
938
|
-
if (maintenance !== "off")
|
|
939
|
-
|
|
937
|
+
const baseUrl = _chunkITQPBWDSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
938
|
+
if (maintenance !== "off") _chunkEL4LME5Yjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
939
|
+
_chunkXVQE6IBSjs.recordCliTrace.call(void 0, {
|
|
940
940
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
941
941
|
baseUrl,
|
|
942
942
|
command: compatibilityCommand
|
|
@@ -944,9 +944,9 @@ Exit codes:
|
|
|
944
944
|
return;
|
|
945
945
|
}
|
|
946
946
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
947
|
-
if (!playDryRun &&
|
|
947
|
+
if (!playDryRun && _chunkAHNJGA6Zjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
948
948
|
if (maintenance !== "off") {
|
|
949
|
-
const baseUrl =
|
|
949
|
+
const baseUrl = _chunkITQPBWDSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
950
950
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
951
951
|
baseUrl,
|
|
952
952
|
command: actionCommand,
|
|
@@ -955,27 +955,27 @@ Exit codes:
|
|
|
955
955
|
}
|
|
956
956
|
return;
|
|
957
957
|
}
|
|
958
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
958
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkVZ4S5JRCjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
959
959
|
if (printStartupPhase) {
|
|
960
960
|
_optionalChain([progress, 'optionalAccess', _18 => _18.phase, 'call', _19 => _19("checking sdk compatibility")]);
|
|
961
961
|
}
|
|
962
962
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
963
|
-
const baseUrl =
|
|
964
|
-
if (maintenance !== "off")
|
|
963
|
+
const baseUrl = _chunkITQPBWDSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
964
|
+
if (maintenance !== "off") _chunkEL4LME5Yjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
965
965
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
966
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
967
|
-
const trusted = isToolExecuteCommand ? null :
|
|
966
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkITQPBWDSjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
967
|
+
const trusted = isToolExecuteCommand ? null : _chunkEL4LME5Yjs.readTrustedCleanCompatibility.call(void 0,
|
|
968
968
|
baseUrl,
|
|
969
969
|
compatibilityCommand,
|
|
970
970
|
skillsVersion
|
|
971
971
|
);
|
|
972
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
972
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkEL4LME5Yjs.readFreshCleanCompatibility.call(void 0,
|
|
973
973
|
baseUrl,
|
|
974
974
|
compatibilityCommand,
|
|
975
975
|
skillsVersion
|
|
976
976
|
) !== null;
|
|
977
977
|
if (trusted) {
|
|
978
|
-
|
|
978
|
+
_chunkXVQE6IBSjs.recordCliTrace.call(void 0, {
|
|
979
979
|
phase: "cli.sdk_compatibility",
|
|
980
980
|
ms: 0,
|
|
981
981
|
ok: true,
|
|
@@ -985,7 +985,7 @@ Exit codes:
|
|
|
985
985
|
source: "trusted_cache"
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
988
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkXVQE6IBSjs.traceCliSpan.call(void 0,
|
|
989
989
|
"cli.sdk_compatibility",
|
|
990
990
|
{
|
|
991
991
|
baseUrl,
|
|
@@ -993,12 +993,12 @@ Exit codes:
|
|
|
993
993
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
994
994
|
fastDeadline
|
|
995
995
|
},
|
|
996
|
-
() =>
|
|
996
|
+
() => _chunkEL4LME5Yjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
997
997
|
command: compatibilityCommand,
|
|
998
998
|
skillsVersion,
|
|
999
999
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
1000
|
-
catalog:
|
|
1001
|
-
...fastDeadline ? { timeoutMs:
|
|
1000
|
+
catalog: _chunkVZ4S5JRCjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
1001
|
+
...fastDeadline ? { timeoutMs: _chunkEL4LME5Yjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
1002
1002
|
})
|
|
1003
1003
|
);
|
|
1004
1004
|
if (compatibility.error) {
|
|
@@ -1009,7 +1009,7 @@ Exit codes:
|
|
|
1009
1009
|
response: null
|
|
1010
1010
|
};
|
|
1011
1011
|
}
|
|
1012
|
-
const relaunched = await
|
|
1012
|
+
const relaunched = await _chunkVZ4S5JRCjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
1013
1013
|
compatibility.response,
|
|
1014
1014
|
baseUrl,
|
|
1015
1015
|
maintenance
|
|
@@ -1023,14 +1023,14 @@ Exit codes:
|
|
|
1023
1023
|
};
|
|
1024
1024
|
}
|
|
1025
1025
|
const policy = compatibility.response;
|
|
1026
|
-
const jsonOutput =
|
|
1027
|
-
|
|
1026
|
+
const jsonOutput = _chunkPRDCU7BYjs.isJsonOutputMode.call(void 0, );
|
|
1027
|
+
_chunkEL4LME5Yjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1028
1028
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1029
|
-
|
|
1029
|
+
_chunkVZ4S5JRCjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkEL4LME5Yjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1030
1030
|
});
|
|
1031
1031
|
const advisory = compatibility.response;
|
|
1032
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1033
|
-
|
|
1032
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkEL4LME5Yjs.isCiEnvironment.call(void 0, ) && !_chunkVZ4S5JRCjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1033
|
+
_chunkPRDCU7BYjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1034
1034
|
}
|
|
1035
1035
|
return {
|
|
1036
1036
|
shouldContinue: true,
|
|
@@ -1047,10 +1047,10 @@ Exit codes:
|
|
|
1047
1047
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1048
1048
|
await runStartupStage(
|
|
1049
1049
|
"agent skills sync",
|
|
1050
|
-
() =>
|
|
1050
|
+
() => _chunkXVQE6IBSjs.traceCliSpan.call(void 0,
|
|
1051
1051
|
"cli.sdk_skills_sync",
|
|
1052
1052
|
{ baseUrl: startup.baseUrl },
|
|
1053
|
-
() =>
|
|
1053
|
+
() => _chunkEL4LME5Yjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1054
1054
|
update: skillsUpdate,
|
|
1055
1055
|
mode: "detached"
|
|
1056
1056
|
})
|
|
@@ -1064,16 +1064,16 @@ Exit codes:
|
|
|
1064
1064
|
);
|
|
1065
1065
|
const carriesFeedback = requestedCommand === "feedback" || requestedCommand === "session" || requestedCommand === "sessions";
|
|
1066
1066
|
if (carriesFeedback) suppressOutputReport();
|
|
1067
|
-
const commandRegistrationStartedAt =
|
|
1067
|
+
const commandRegistrationStartedAt = _chunkXVQE6IBSjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1068
1068
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1069
1069
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1070
|
-
|
|
1070
|
+
_chunkXVQE6IBSjs.recordCliTrace.call(void 0, {
|
|
1071
1071
|
phase: "cli.command_registration",
|
|
1072
1072
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
1075
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1076
|
-
if (
|
|
1076
|
+
if (_chunkPRDCU7BYjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1077
1077
|
preflight.addHelpText(
|
|
1078
1078
|
"after",
|
|
1079
1079
|
`
|
|
@@ -1089,8 +1089,8 @@ Examples:
|
|
|
1089
1089
|
`
|
|
1090
1090
|
).action(async (options) => {
|
|
1091
1091
|
const data = await runPreflightCheck();
|
|
1092
|
-
if (
|
|
1093
|
-
|
|
1092
|
+
if (_chunkPRDCU7BYjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1093
|
+
_chunkPRDCU7BYjs.printJson.call(void 0, data);
|
|
1094
1094
|
} else {
|
|
1095
1095
|
printPreflightHuman(data);
|
|
1096
1096
|
}
|
|
@@ -1115,7 +1115,7 @@ Examples:
|
|
|
1115
1115
|
).action(async (options) => {
|
|
1116
1116
|
if (options.playRunner) {
|
|
1117
1117
|
const data = await runPlayRunnerHealthCheck();
|
|
1118
|
-
|
|
1118
|
+
_chunkPRDCU7BYjs.printCommandEnvelope.call(void 0, data, {
|
|
1119
1119
|
json: options.json,
|
|
1120
1120
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1121
1121
|
`
|
|
@@ -1123,15 +1123,15 @@ Examples:
|
|
|
1123
1123
|
return;
|
|
1124
1124
|
}
|
|
1125
1125
|
try {
|
|
1126
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1127
|
-
const baseUrl =
|
|
1126
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-PXIVGUVZ.js")));
|
|
1127
|
+
const baseUrl = _chunkITQPBWDSjs.resolveBaseUrlOnly.call(void 0, );
|
|
1128
1128
|
const [{ status, data }, banner] = await Promise.all([
|
|
1129
1129
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1130
1130
|
readStatusBanner(baseUrl)
|
|
1131
1131
|
]);
|
|
1132
1132
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1133
1133
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1134
|
-
|
|
1134
|
+
_chunkPRDCU7BYjs.printCommandEnvelope.call(void 0,
|
|
1135
1135
|
{ ...data, status_banner: banner },
|
|
1136
1136
|
{
|
|
1137
1137
|
json: options.json,
|
|
@@ -1159,16 +1159,16 @@ Examples:
|
|
|
1159
1159
|
`
|
|
1160
1160
|
).action((options) => {
|
|
1161
1161
|
if (options.json) {
|
|
1162
|
-
|
|
1162
|
+
_chunkPRDCU7BYjs.printCompactJson.call(void 0, { version: _chunkFGBX2WVJjs.SDK_VERSION });
|
|
1163
1163
|
return;
|
|
1164
1164
|
}
|
|
1165
|
-
process.stdout.write(`deepline ${
|
|
1165
|
+
process.stdout.write(`deepline ${_chunkFGBX2WVJjs.SDK_VERSION}
|
|
1166
1166
|
`);
|
|
1167
1167
|
});
|
|
1168
1168
|
if (process.argv.slice(2).length === 0) {
|
|
1169
1169
|
program.outputHelp({ error: true });
|
|
1170
1170
|
console.error("\nerror: missing command (see usage above)");
|
|
1171
|
-
|
|
1171
|
+
_chunkXVQE6IBSjs.recordCliTrace.call(void 0, {
|
|
1172
1172
|
phase: "cli.main_total",
|
|
1173
1173
|
ms: Date.now() - mainStartedAt,
|
|
1174
1174
|
ok: false,
|
|
@@ -1180,16 +1180,16 @@ Examples:
|
|
|
1180
1180
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1181
1181
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1182
1182
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1183
|
-
if (!
|
|
1184
|
-
const baseUrl =
|
|
1183
|
+
if (!_chunkPRDCU7BYjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1184
|
+
const baseUrl = _chunkITQPBWDSjs.autoDetectBaseUrl.call(void 0, );
|
|
1185
1185
|
await ensureTransport();
|
|
1186
1186
|
const versionHint = await newerCliCommandHint(
|
|
1187
1187
|
baseUrl,
|
|
1188
1188
|
requestedTopLevelCommand
|
|
1189
1189
|
);
|
|
1190
|
-
if (
|
|
1190
|
+
if (_chunkPRDCU7BYjs.isJsonOutputMode.call(void 0, )) {
|
|
1191
1191
|
if (versionHint) {
|
|
1192
|
-
|
|
1192
|
+
_chunkPRDCU7BYjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1193
1193
|
}
|
|
1194
1194
|
printUsageErrorJson(
|
|
1195
1195
|
"commander.unknownCommand",
|
|
@@ -1211,26 +1211,26 @@ Examples:
|
|
|
1211
1211
|
const helpArgs = process.argv.slice(2);
|
|
1212
1212
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1213
1213
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1214
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1215
|
-
rootHelpStatus = `Version: ${
|
|
1214
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-PXIVGUVZ.js")));
|
|
1215
|
+
rootHelpStatus = `Version: ${_chunkFGBX2WVJjs.SDK_VERSION}
|
|
1216
1216
|
${await authStatusLine()}
|
|
1217
1217
|
`;
|
|
1218
1218
|
}
|
|
1219
1219
|
if ((helpArgs.includes("--help") || helpArgs.includes("-h")) && helpPositionals.length >= 2) {
|
|
1220
|
-
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-
|
|
1220
|
+
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-KGELXJIQ.js")));
|
|
1221
1221
|
if (CONCURRENT_RUNS_HELP_COMMANDS.has(helpPositionals.slice(0, 2).join(" "))) {
|
|
1222
1222
|
await ensureTransport();
|
|
1223
1223
|
concurrentRunsHelpStatus = await read();
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
1226
1226
|
await program.parseAsync(process.argv);
|
|
1227
|
-
|
|
1227
|
+
_chunkXVQE6IBSjs.recordCliTrace.call(void 0, {
|
|
1228
1228
|
phase: "cli.main_total",
|
|
1229
1229
|
ms: Date.now() - mainStartedAt,
|
|
1230
1230
|
ok: true
|
|
1231
1231
|
});
|
|
1232
1232
|
if (!carriesFeedback) {
|
|
1233
|
-
await
|
|
1233
|
+
await _chunkPRDCU7BYjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1234
1234
|
argv: process.argv.slice(2),
|
|
1235
1235
|
startedAtMs: mainStartedAt,
|
|
1236
1236
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1239,14 +1239,14 @@ ${await authStatusLine()}
|
|
|
1239
1239
|
} catch (error) {
|
|
1240
1240
|
commandFailed = true;
|
|
1241
1241
|
const commanderError = asCommanderError(error);
|
|
1242
|
-
|
|
1242
|
+
_chunkXVQE6IBSjs.recordCliTrace.call(void 0, {
|
|
1243
1243
|
phase: "cli.main_total",
|
|
1244
1244
|
ms: Date.now() - mainStartedAt,
|
|
1245
1245
|
ok: false,
|
|
1246
1246
|
error: error instanceof Error ? error.message : String(error)
|
|
1247
1247
|
});
|
|
1248
1248
|
_optionalChain([progress, 'optionalAccess', _22 => _22.fail, 'call', _23 => _23()]);
|
|
1249
|
-
const wantsJson =
|
|
1249
|
+
const wantsJson = _chunkPRDCU7BYjs.isJsonOutputMode.call(void 0, );
|
|
1250
1250
|
if (commanderError) {
|
|
1251
1251
|
const grammarError = [
|
|
1252
1252
|
"commander.unknownCommand",
|
|
@@ -1257,12 +1257,12 @@ ${await authStatusLine()}
|
|
|
1257
1257
|
if (grammarError) {
|
|
1258
1258
|
await ensureTransport();
|
|
1259
1259
|
const versionHint = await newerCliCommandHint(
|
|
1260
|
-
|
|
1260
|
+
_chunkITQPBWDSjs.autoDetectBaseUrl.call(void 0, ),
|
|
1261
1261
|
commandPath
|
|
1262
1262
|
);
|
|
1263
1263
|
if (wantsJson) {
|
|
1264
1264
|
if (versionHint) {
|
|
1265
|
-
|
|
1265
|
+
_chunkPRDCU7BYjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1266
1266
|
}
|
|
1267
1267
|
} else {
|
|
1268
1268
|
if (versionHint) console.error(versionHint);
|
|
@@ -1282,43 +1282,43 @@ ${await authStatusLine()}
|
|
|
1282
1282
|
return;
|
|
1283
1283
|
} else if (wantsJson) {
|
|
1284
1284
|
if (error instanceof _chunk6VLFQZK6js.AuthError) {
|
|
1285
|
-
|
|
1285
|
+
_chunkPRDCU7BYjs.addJsonNotice.call(void 0, {
|
|
1286
1286
|
code: "auth_required",
|
|
1287
1287
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1288
1288
|
});
|
|
1289
1289
|
}
|
|
1290
|
-
const providerConcurrency =
|
|
1290
|
+
const providerConcurrency = _chunkPRDCU7BYjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1291
1291
|
if (providerConcurrency) {
|
|
1292
|
-
|
|
1292
|
+
_chunkPRDCU7BYjs.addJsonNotice.call(void 0, {
|
|
1293
1293
|
code: "provider_concurrency",
|
|
1294
1294
|
message: providerConcurrency
|
|
1295
1295
|
});
|
|
1296
1296
|
}
|
|
1297
|
-
const payload =
|
|
1298
|
-
|
|
1297
|
+
const payload = _chunkPRDCU7BYjs.errorToJsonPayload.call(void 0, error);
|
|
1298
|
+
_chunkPRDCU7BYjs.printJson.call(void 0, {
|
|
1299
1299
|
...payload,
|
|
1300
1300
|
// The envelope names the code the process exits with, so a caller
|
|
1301
1301
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1302
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1302
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkPRDCU7BYjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1303
1303
|
...error instanceof _chunk6VLFQZK6js.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1304
1304
|
});
|
|
1305
1305
|
} else if (error instanceof Error) {
|
|
1306
1306
|
console.error(`Error: ${error.message}`);
|
|
1307
|
-
const toolDiagnostic =
|
|
1307
|
+
const toolDiagnostic = _chunkPRDCU7BYjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1308
1308
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1309
1309
|
if (error instanceof _chunk6VLFQZK6js.AuthError) {
|
|
1310
1310
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1311
1311
|
}
|
|
1312
|
-
const providerConcurrency =
|
|
1312
|
+
const providerConcurrency = _chunkPRDCU7BYjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1313
1313
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1314
1314
|
} else {
|
|
1315
1315
|
console.error(`Error: ${String(error)}`);
|
|
1316
1316
|
}
|
|
1317
1317
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1318
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1318
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkPRDCU7BYjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1319
1319
|
process.exitCode = failureExitCode;
|
|
1320
1320
|
if (!carriesFeedback) {
|
|
1321
|
-
await
|
|
1321
|
+
await _chunkPRDCU7BYjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1322
1322
|
argv: process.argv.slice(2),
|
|
1323
1323
|
startedAtMs: mainStartedAt,
|
|
1324
1324
|
exitCode: failureExitCode,
|
|
@@ -1326,13 +1326,13 @@ ${await authStatusLine()}
|
|
|
1326
1326
|
});
|
|
1327
1327
|
}
|
|
1328
1328
|
} finally {
|
|
1329
|
-
|
|
1329
|
+
_chunkVZ4S5JRCjs.finishToolExecuteCommand.call(void 0, );
|
|
1330
1330
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1331
1331
|
deferredMaintenance.inlinePlay = null;
|
|
1332
1332
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1333
1333
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _24 => _24()]);
|
|
1334
1334
|
}
|
|
1335
|
-
await
|
|
1335
|
+
await _chunkVZ4S5JRCjs.runDeferredAutoUpdate.call(void 0, );
|
|
1336
1336
|
}
|
|
1337
1337
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1338
1338
|
}
|
|
@@ -1340,7 +1340,7 @@ async function main() {
|
|
|
1340
1340
|
let disposeTransport;
|
|
1341
1341
|
const ensureTransport = async () => {
|
|
1342
1342
|
if (disposeTransport) return;
|
|
1343
|
-
const transportStartedAt =
|
|
1343
|
+
const transportStartedAt = _chunkXVQE6IBSjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1344
1344
|
const hasProxy = [
|
|
1345
1345
|
"HTTP_PROXY",
|
|
1346
1346
|
"http_proxy",
|
|
@@ -1352,7 +1352,7 @@ async function main() {
|
|
|
1352
1352
|
disposeTransport = configureCliTransport();
|
|
1353
1353
|
}
|
|
1354
1354
|
if (transportStartedAt !== void 0) {
|
|
1355
|
-
|
|
1355
|
+
_chunkXVQE6IBSjs.recordCliTrace.call(void 0, {
|
|
1356
1356
|
phase: "cli.transport_setup",
|
|
1357
1357
|
ms: performance.now() - transportStartedAt
|
|
1358
1358
|
});
|
|
@@ -1375,9 +1375,9 @@ async function main() {
|
|
|
1375
1375
|
skipOutputReport = true;
|
|
1376
1376
|
}
|
|
1377
1377
|
);
|
|
1378
|
-
const silentFailure =
|
|
1378
|
+
const silentFailure = _chunkPRDCU7BYjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1379
1379
|
if (silentFailure) {
|
|
1380
|
-
|
|
1380
|
+
_chunkPRDCU7BYjs.printJson.call(void 0, {
|
|
1381
1381
|
ok: false,
|
|
1382
1382
|
exitCode: Number(process.exitCode),
|
|
1383
1383
|
error: { code: "CLI_ERROR", message: silentFailure }
|