deepline 0.3.580 → 0.3.581
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/app-runtime-api.ts +42 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +49 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +13 -4
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +12 -0
- package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +20 -0
- package/dist/cli/{agents-BF5VX5ZB.js → agents-UDTRMWPA.js} +81 -39
- package/dist/cli/{agents-JRFTZE7G.mjs → agents-VDQSVDSM.mjs} +51 -9
- package/dist/cli/{auth-XJXZ64R4.mjs → auth-SRN5FXUQ.mjs} +5 -5
- package/dist/cli/auth-UYQHRHYR.js +44 -0
- package/dist/cli/{billing-VGMTJI7W.js → billing-HGHIOFSA.js} +111 -111
- package/dist/cli/{billing-TXJBGP2I.mjs → billing-PR2SIEJM.mjs} +11 -11
- package/dist/cli/{chunk-IG3CXIJY.mjs → chunk-2MIJMDGF.mjs} +1 -1
- package/dist/cli/{chunk-2ZCFAUCV.js → chunk-2RLMHWXW.js} +3 -3
- package/dist/cli/{chunk-IM322G7M.mjs → chunk-3FMGBMT3.mjs} +1 -1
- package/dist/cli/{chunk-SQBSK74D.mjs → chunk-3I6GA5QW.mjs} +1 -1
- package/dist/cli/{chunk-XFVJ3JNA.js → chunk-3LP7J63L.js} +5 -5
- package/dist/cli/{chunk-H3B6QM6V.mjs → chunk-46EBSUZF.mjs} +3 -3
- package/dist/cli/{chunk-WJUAVMQC.js → chunk-5XVDZVCR.js} +8 -8
- package/dist/cli/{chunk-COAAKSFX.js → chunk-6U3THMRI.js} +5 -5
- package/dist/cli/{chunk-LRZGS6RZ.mjs → chunk-7MMEW2WU.mjs} +1 -1
- package/dist/cli/{chunk-URZPR54R.js → chunk-7VOSQARZ.js} +6 -6
- package/dist/cli/{chunk-ZADJC22U.js → chunk-A4IOPFEJ.js} +3 -3
- package/dist/cli/{chunk-IERWFFDB.mjs → chunk-ALXIC5U5.mjs} +5 -5
- package/dist/cli/{chunk-EI7KTESB.mjs → chunk-BDNQDWGI.mjs} +2 -2
- package/dist/cli/{chunk-3OSNEWGR.js → chunk-BQL34VOQ.js} +100 -100
- package/dist/cli/{chunk-APJ7IPRT.js → chunk-BULUFFST.js} +15 -15
- package/dist/cli/{chunk-GE4ZEMMA.mjs → chunk-CDIMI54H.mjs} +2 -2
- package/dist/cli/{chunk-ANX3PYLT.js → chunk-CN4MXBZ3.js} +13 -13
- package/dist/cli/{chunk-R77IVVEZ.js → chunk-CNRPE3AE.js} +53 -53
- package/dist/cli/{chunk-O7AWGIDD.mjs → chunk-DZMQV5FL.mjs} +2 -2
- package/dist/cli/{chunk-HEZ24K5F.js → chunk-E2EGQNOS.js} +2 -2
- package/dist/cli/{chunk-MCYZO3RB.js → chunk-E5ITZIWK.js} +16 -16
- package/dist/cli/{chunk-LC4ETCOA.mjs → chunk-E5O4CMHZ.mjs} +2 -2
- package/dist/cli/{chunk-MEDA3STC.mjs → chunk-EHTD65FE.mjs} +1 -1
- package/dist/cli/{chunk-E2G2DNAB.js → chunk-EP3GZAHK.js} +7 -7
- package/dist/cli/{chunk-MBOPKQJF.js → chunk-FXSDDEAR.js} +1 -1
- package/dist/cli/{chunk-TSOXJZSW.js → chunk-INRXX4SX.js} +41 -41
- package/dist/cli/{chunk-MP6XUVAJ.mjs → chunk-INXRW5AF.mjs} +2 -2
- package/dist/cli/{chunk-GDBNH57Z.js → chunk-IT3F7P6O.js} +10 -10
- package/dist/cli/{chunk-XQUVLYOL.js → chunk-J6ITN2X6.js} +7 -7
- package/dist/cli/{chunk-D6I7QWOZ.js → chunk-JQK42HZQ.js} +2 -2
- package/dist/cli/{chunk-NV5IJ3NY.mjs → chunk-KDITCSPN.mjs} +21 -1
- package/dist/cli/{chunk-Z6DERGHY.js → chunk-KO6OLYSD.js} +48 -48
- package/dist/cli/{chunk-YY6EB252.js → chunk-LJZESBNY.js} +2 -2
- package/dist/cli/{chunk-VOQWPUIF.js → chunk-MSCYYFLY.js} +20 -20
- package/dist/cli/{chunk-7ORX33JX.mjs → chunk-N5VJVVVV.mjs} +5 -5
- package/dist/cli/{chunk-LHV3HPAY.js → chunk-O5FIWG2O.js} +26 -26
- package/dist/cli/{chunk-U4VCAECC.mjs → chunk-OVJWDFIL.mjs} +1 -1
- package/dist/cli/{chunk-BAXLPQTM.mjs → chunk-P5ZZY4RM.mjs} +4 -4
- package/dist/cli/{chunk-PFNYLTCZ.js → chunk-PLGJG5FX.js} +5 -5
- package/dist/cli/{chunk-FCJJPEKN.mjs → chunk-RA3BWUTD.mjs} +5 -5
- package/dist/cli/{chunk-6VSUP4WN.js → chunk-SNYH4QY2.js} +4 -4
- package/dist/cli/{chunk-7HOG3JZE.mjs → chunk-SZ76UE7C.mjs} +11 -11
- package/dist/cli/{chunk-3ZBPXNSW.mjs → chunk-ULU4MEXN.mjs} +2 -2
- package/dist/cli/{chunk-V5NDHTBB.js → chunk-VJR4CKYJ.js} +23 -23
- package/dist/cli/{chunk-3P4QZIJ5.mjs → chunk-VNW454PP.mjs} +1 -1
- package/dist/cli/{chunk-ZR7PDXIA.mjs → chunk-VTPMBOHZ.mjs} +2 -2
- package/dist/cli/{chunk-GIZIWNL5.mjs → chunk-VVENTTSA.mjs} +1 -1
- package/dist/cli/{chunk-NNWEQDZR.js → chunk-VWPM4OIC.js} +20 -20
- package/dist/cli/{chunk-5BPJW6X5.mjs → chunk-WCNJSZHC.mjs} +5 -5
- package/dist/cli/{chunk-C6YXUGX2.mjs → chunk-WS5ZX4RB.mjs} +3 -3
- package/dist/cli/{chunk-VF3EGTHU.mjs → chunk-WVFDPC4K.mjs} +3 -3
- package/dist/cli/{chunk-AZTQJJH7.js → chunk-Y36SQMSN.js} +22 -2
- package/dist/cli/{chunk-HLMF53HZ.mjs → chunk-YTPXKG4C.mjs} +1 -1
- package/dist/cli/{chunk-X5RXG6VS.mjs → chunk-Z3MJX3PP.mjs} +1 -1
- package/dist/cli/{chunk-DQEHBAHL.js → chunk-ZAKNDIK7.js} +9 -9
- package/dist/cli/{chunk-BK4Z62CF.mjs → chunk-ZTKLJADJ.mjs} +4 -4
- package/dist/cli/command-docs.js +4 -4
- package/dist/cli/command-docs.mjs +3 -3
- package/dist/cli/concurrent-runs-help-QWDTLZUX.js +22 -0
- package/dist/cli/{concurrent-runs-help-DSUQRWZQ.mjs → concurrent-runs-help-Z27MIIH3.mjs} +6 -6
- package/dist/cli/{csv-HSHF6JYZ.js → csv-4TP36F5O.js} +13 -13
- package/dist/cli/{csv-QNXJBT5T.mjs → csv-4YFTMVWQ.mjs} +4 -4
- package/dist/cli/{db-VHYWVLLU.js → db-L5EGGO72.js} +27 -27
- package/dist/cli/{db-RAWY3SWS.mjs → db-U5KR6SYI.mjs} +6 -6
- package/dist/cli/describe-G3SUS76P.js +50 -0
- package/dist/cli/{describe-WZOVHWAM.mjs → describe-LZXXSQ26.mjs} +18 -18
- package/dist/cli/{executions-DQIFH4Z6.js → executions-VZKRFDGM.js} +8 -8
- package/dist/cli/{executions-QABOXV4K.mjs → executions-ZWEC5DDR.mjs} +6 -6
- package/dist/cli/{feedback-6IER2W4G.js → feedback-BTJIJCQF.js} +14 -14
- package/dist/cli/{feedback-DW4O63DG.mjs → feedback-HXQTHXEZ.mjs} +6 -6
- package/dist/cli/{git-3NAPGZGR.mjs → git-P6A45MMT.mjs} +5 -5
- package/dist/cli/git-QU673DBV.js +26 -0
- package/dist/cli/index.js +150 -150
- package/dist/cli/index.mjs +49 -49
- package/dist/cli/{integrations-TSRUTENK.mjs → integrations-4POM2CJ3.mjs} +7 -7
- package/dist/cli/{integrations-5LHIBBXB.js → integrations-VSJQBRFS.js} +29 -29
- package/dist/cli/{legacy-noops-4N63A6H7.mjs → legacy-noops-I65MIKH2.mjs} +6 -6
- package/dist/cli/{legacy-noops-S22XGYGN.js → legacy-noops-QOJGSGVO.js} +9 -9
- package/dist/cli/{mcp-4EJHRRFV.mjs → mcp-TGY6SRAC.mjs} +4 -4
- package/dist/cli/{mcp-JERBGJYE.js → mcp-WTKBSLSD.js} +24 -24
- package/dist/cli/{monitors-7BTLBD6S.mjs → monitors-E2ENT4RY.mjs} +7 -7
- package/dist/cli/{monitors-FF35CGC4.js → monitors-TLWVEXW6.js} +100 -100
- package/dist/cli/{org-QYIIBKA2.mjs → org-J2LGW5ZR.mjs} +6 -6
- package/dist/cli/{org-ADCDO7KU.js → org-PZPJJU7K.js} +121 -121
- package/dist/cli/{outcomes-C5DIBG4Q.mjs → outcomes-TMJDASU5.mjs} +6 -6
- package/dist/cli/{outcomes-2LW4GK2L.js → outcomes-Z6ZNBJ3U.js} +14 -14
- package/dist/cli/{play-DTTDTISL.mjs → play-S3Z24HUS.mjs} +21 -21
- package/dist/cli/{play-S5MZ2GRA.js → play-ZOOC57X4.js} +342 -342
- package/dist/cli/{providers-AXOEFQ6Q.mjs → providers-ETD6YLFL.mjs} +6 -6
- package/dist/cli/{providers-N2IWEJBW.js → providers-O4Y2YBS7.js} +9 -9
- package/dist/cli/{quickstart-UC5AJZWU.js → quickstart-NZALIRBP.js} +6 -6
- package/dist/cli/{quickstart-ADWSZBV6.mjs → quickstart-QZX32Y5T.mjs} +4 -4
- package/dist/cli/{run-6TDYUL7L.js → run-5UXSWJ7N.js} +44 -44
- package/dist/cli/{run-R2FVH3K6.mjs → run-HCVBRE2P.mjs} +23 -23
- package/dist/cli/search-T3SLR55O.js +32 -0
- package/dist/cli/{search-GRHUFSLY.mjs → search-Z247K76U.mjs} +7 -7
- package/dist/cli/{search-output-UPQNAFAF.mjs → search-output-XCJI3XRA.mjs} +4 -4
- package/dist/cli/{search-output-O7NY3VMD.js → search-output-XFKEGUJA.js} +6 -6
- package/dist/cli/{secrets-NKAEJLIQ.mjs → secrets-7JZXHLRU.mjs} +6 -6
- package/dist/cli/{secrets-72GJHFER.js → secrets-VUQLTUTM.js} +15 -15
- package/dist/cli/sessions-GHW2H7N2.js +23 -0
- package/dist/cli/{sessions-VIMF3UF5.mjs → sessions-UNGJ342N.mjs} +6 -6
- package/dist/cli/{settings-KCQHBFNZ.mjs → settings-67TIT4MZ.mjs} +12 -12
- package/dist/cli/{settings-HFAW5HIF.js → settings-WG5YNHC5.js} +85 -85
- package/dist/cli/{setup-2MHWGEAD.js → setup-IYUNW5ZP.js} +49 -49
- package/dist/cli/{setup-2ZD5ZIUH.mjs → setup-KMAAJOZM.mjs} +9 -9
- package/dist/cli/skills-JVLCEUBF.js +37 -0
- package/dist/cli/{skills-X2DZZG5P.mjs → skills-UVS4DODN.mjs} +7 -7
- package/dist/cli/{tools-KPTOWKD4.mjs → tools-B42JY4BX.mjs} +17 -17
- package/dist/cli/tools-ETA3BJNM.js +57 -0
- package/dist/cli/{update-6PMQCEUP.mjs → update-EBYZZ7BW.mjs} +9 -9
- package/dist/cli/update-XZEBQCEY.js +37 -0
- package/dist/cli/{views-MNBHNO6C.js → views-DOUEKLEV.js} +21 -21
- package/dist/cli/{views-VRZ5CTFL.mjs → views-QK3AFD2D.mjs} +6 -6
- package/dist/cli/{workflow-SSMFO7YE.js → workflow-TAKT2T7A.js} +17 -17
- package/dist/cli/{workflow-7JUJWA5S.mjs → workflow-UBJPGRKF.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +120 -120
- package/dist/plays/bundle-play-file.mjs +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-25MVD7TK.js +0 -44
- package/dist/cli/concurrent-runs-help-DEN63DUM.js +0 -22
- package/dist/cli/describe-YHZ2EGBQ.js +0 -50
- package/dist/cli/git-SQ2MAKAH.js +0 -26
- package/dist/cli/search-V7ANBX3J.js +0 -32
- package/dist/cli/sessions-EO6RTMUC.js +0 -23
- package/dist/cli/skills-ID6KKDLH.js +0 -37
- package/dist/cli/tools-7UY7GERW.js +0 -57
- package/dist/cli/update-T2RDLLSY.js +0 -37
- /package/dist/cli/{chunk-YGCKMI5P.js → chunk-2M3VVGMZ.js} +0 -0
- /package/dist/cli/{chunk-7I4B6V2S.mjs → chunk-VMGJIFSB.mjs} +0 -0
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 _chunk7VOSQARZjs = require('./chunk-7VOSQARZ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJQK42HZQjs = require('./chunk-JQK42HZQ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,17 +13,17 @@ var _chunkD6I7QWOZjs = require('./chunk-D6I7QWOZ.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkVJR4CKYJjs = require('./chunk-VJR4CKYJ.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 _chunkE2EGQNOSjs = require('./chunk-E2EGQNOS.js');
|
|
24
|
+
require('./chunk-MSCYYFLY.js');
|
|
25
|
+
require('./chunk-LJZESBNY.js');
|
|
26
|
+
require('./chunk-INRXX4SX.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -35,18 +35,18 @@ require('./chunk-TSOXJZSW.js');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkKO6OLYSDjs = require('./chunk-KO6OLYSD.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkA4IOPFEJjs = require('./chunk-A4IOPFEJ.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkY36SQMSNjs = require('./chunk-Y36SQMSN.js');
|
|
47
47
|
require('./chunk-TJCENACZ.js');
|
|
48
|
-
require('./chunk-
|
|
49
|
-
require('./chunk-
|
|
48
|
+
require('./chunk-EP3GZAHK.js');
|
|
49
|
+
require('./chunk-2M3VVGMZ.js');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
@@ -65,7 +65,7 @@ require('./chunk-YGCKMI5P.js');
|
|
|
65
65
|
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
var
|
|
68
|
+
var _chunkVWPM4OICjs = require('./chunk-VWPM4OIC.js');
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
@@ -73,19 +73,19 @@ var _chunkNNWEQDZRjs = require('./chunk-NNWEQDZR.js');
|
|
|
73
73
|
|
|
74
74
|
|
|
75
75
|
|
|
76
|
-
var
|
|
76
|
+
var _chunk2RLMHWXWjs = require('./chunk-2RLMHWXW.js');
|
|
77
77
|
|
|
78
78
|
|
|
79
79
|
|
|
80
80
|
|
|
81
|
-
var
|
|
81
|
+
var _chunkSNYH4QY2js = require('./chunk-SNYH4QY2.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-FXSDDEAR.js');
|
|
89
89
|
require('./chunk-OG64RBAC.js');
|
|
90
90
|
require('./chunk-RLX5ZFNX.js');
|
|
91
91
|
require('./chunk-COGTRVWW.js');
|
|
@@ -166,72 +166,72 @@ 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-UYQHRHYR.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-O4Y2YBS7.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-VSJQBRFS.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-T3SLR55O.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-G3SUS76P.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-5UXSWJ7N.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-ETA3BJNM.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-VZKRFDGM.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-ZOOC57X4.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-GHW2H7N2.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-TAKT2T7A.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-Z6ZNBJ3U.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-DOUEKLEV.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-VUQLTUTM.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-WTKBSLSD.js")))).registerMcpCommands
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
names: ["agents"],
|
|
229
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./agents-
|
|
229
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./agents-UDTRMWPA.js")))).registerAgentsCommands
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
names: ["settings", "notifications"],
|
|
233
233
|
load: async () => {
|
|
234
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
234
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-WG5YNHC5.js")));
|
|
235
235
|
return (p) => {
|
|
236
236
|
commands.registerSettingsCommands(p);
|
|
237
237
|
commands.registerNotificationCommands(p);
|
|
@@ -240,51 +240,51 @@ var COMMAND_GROUPS = [
|
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
names: ["billing"],
|
|
243
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
243
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-HGHIOFSA.js")))).registerBillingCommands
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
names: ["monitors"],
|
|
247
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
247
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-TLWVEXW6.js")))).registerMonitorsCommands
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
250
|
names: ["org"],
|
|
251
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
251
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-PZPJJU7K.js")))).registerOrgCommands
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
names: ["git", "projects", "deployments"],
|
|
255
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
255
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-QU673DBV.js")))).registerGitCommands
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
names: ["csv"],
|
|
259
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
259
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-4TP36F5O.js")))).registerCsvCommands
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
names: ["db"],
|
|
263
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
263
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-L5EGGO72.js")))).registerDbCommands
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
names: ["feedback"],
|
|
267
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
267
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-BTJIJCQF.js")))).registerFeedbackCommands
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
names: ["enrich", "session", "backend"],
|
|
271
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
271
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-QOJGSGVO.js")))).registerDeprecatedCommands
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
274
|
names: ["update"],
|
|
275
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
275
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-XZEBQCEY.js")))).registerUpdateCommand
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
names: ["skills", "skills-auto-sync"],
|
|
279
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
279
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-JVLCEUBF.js")))).registerSkillsCommand
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
names: ["setup", "doctor"],
|
|
283
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
283
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-IYUNW5ZP.js")))).registerSetupCommands
|
|
284
284
|
},
|
|
285
285
|
{
|
|
286
286
|
names: ["quickstart"],
|
|
287
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
287
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-NZALIRBP.js")))).registerQuickstartCommands
|
|
288
288
|
}
|
|
289
289
|
];
|
|
290
290
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -310,8 +310,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
310
310
|
function createDeferredPlayRunMaintenance(input) {
|
|
311
311
|
return async () => {
|
|
312
312
|
try {
|
|
313
|
-
const skillsVersion =
|
|
314
|
-
const compatibility = await
|
|
313
|
+
const skillsVersion = _chunk2RLMHWXWjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
314
|
+
const compatibility = await _chunkE2EGQNOSjs.traceCliSpan.call(void 0,
|
|
315
315
|
"cli.sdk_compatibility_deferred",
|
|
316
316
|
{
|
|
317
317
|
baseUrl: input.baseUrl,
|
|
@@ -319,24 +319,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
319
319
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
320
320
|
},
|
|
321
321
|
async () => {
|
|
322
|
-
const trusted =
|
|
322
|
+
const trusted = _chunkKO6OLYSDjs.readTrustedCleanCompatibility.call(void 0,
|
|
323
323
|
input.baseUrl,
|
|
324
324
|
"plays run",
|
|
325
325
|
skillsVersion
|
|
326
326
|
);
|
|
327
327
|
if (trusted) return { response: trusted, error: null };
|
|
328
|
-
return
|
|
328
|
+
return _chunkKO6OLYSDjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
329
329
|
command: "plays run",
|
|
330
330
|
skillsVersion,
|
|
331
331
|
persistCache: input.policy !== "off",
|
|
332
|
-
catalog:
|
|
332
|
+
catalog: _chunkVJR4CKYJjs.compatibilityCatalog.call(void 0, input.command)
|
|
333
333
|
});
|
|
334
334
|
}
|
|
335
335
|
);
|
|
336
336
|
if (compatibility.error || !compatibility.response) return;
|
|
337
337
|
const automaticUpdate = compatibility.response.auto_update;
|
|
338
338
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
339
|
-
await
|
|
339
|
+
await _chunkVJR4CKYJjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
340
340
|
compatibility.response,
|
|
341
341
|
input.baseUrl,
|
|
342
342
|
input.policy
|
|
@@ -346,7 +346,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
346
346
|
compatibility.response,
|
|
347
347
|
"skills"
|
|
348
348
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
349
|
-
await
|
|
349
|
+
await _chunkKO6OLYSDjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
350
350
|
update: skillsUpdate,
|
|
351
351
|
mode: "detached"
|
|
352
352
|
});
|
|
@@ -374,8 +374,8 @@ var MAX_SESSIONS = 20;
|
|
|
374
374
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
375
375
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
376
376
|
}
|
|
377
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
378
|
-
const explicit =
|
|
377
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkSNYH4QY2js.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
378
|
+
const explicit = _chunkY36SQMSNjs.helpDetailFromArgv.call(void 0, argv);
|
|
379
379
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
380
380
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
381
381
|
const path = helpSeenPath(homeDir);
|
|
@@ -472,7 +472,7 @@ function shouldReport(stdout, stderr) {
|
|
|
472
472
|
}
|
|
473
473
|
function toolName(action) {
|
|
474
474
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
475
|
-
return typeof toolId === "string" ?
|
|
475
|
+
return typeof toolId === "string" ? _chunkVWPM4OICjs.redactFailureText.call(void 0, toolId) : null;
|
|
476
476
|
}
|
|
477
477
|
function chunkText(chunk) {
|
|
478
478
|
if (typeof chunk === "string") return chunk;
|
|
@@ -503,14 +503,14 @@ function watch(stream) {
|
|
|
503
503
|
}
|
|
504
504
|
async function postCommandOutput(body) {
|
|
505
505
|
try {
|
|
506
|
-
const baseUrl =
|
|
507
|
-
const apiKey =
|
|
506
|
+
const baseUrl = _chunk2RLMHWXWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
507
|
+
const apiKey = _chunk2RLMHWXWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
508
508
|
if (!apiKey) return;
|
|
509
|
-
const agentSessionId =
|
|
509
|
+
const agentSessionId = _chunkSNYH4QY2js.agentSessionIdFromEnvironment.call(void 0, );
|
|
510
510
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
511
511
|
method: "POST",
|
|
512
512
|
headers: {
|
|
513
|
-
...
|
|
513
|
+
..._chunkVWPM4OICjs.failureReportHeaders.call(void 0, apiKey),
|
|
514
514
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
515
515
|
},
|
|
516
516
|
body: JSON.stringify(body),
|
|
@@ -526,14 +526,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
526
526
|
const stdoutWatch = watch(streams.stdout);
|
|
527
527
|
const stderrWatch = watch(streams.stderr);
|
|
528
528
|
return async (finished) => {
|
|
529
|
-
if (
|
|
529
|
+
if (_chunkVWPM4OICjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
530
530
|
const [stdout, stderr] = await Promise.all([
|
|
531
531
|
stdoutWatch.settled(),
|
|
532
532
|
stderrWatch.settled()
|
|
533
533
|
]);
|
|
534
534
|
if (!shouldReport(stdout, stderr)) return;
|
|
535
535
|
await postCommandOutput({
|
|
536
|
-
command:
|
|
536
|
+
command: _chunkVWPM4OICjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
537
537
|
tool: toolName(finished.action),
|
|
538
538
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
539
539
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -564,7 +564,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
564
564
|
function printUsageErrorJson(code, message, commandPath) {
|
|
565
565
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
566
566
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
567
|
-
|
|
567
|
+
_chunkVWPM4OICjs.printJson.call(void 0, {
|
|
568
568
|
ok: false,
|
|
569
569
|
error: {
|
|
570
570
|
code,
|
|
@@ -622,7 +622,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
622
622
|
);
|
|
623
623
|
}
|
|
624
624
|
async function runPlayRunnerHealthCheck() {
|
|
625
|
-
|
|
625
|
+
_chunk2RLMHWXWjs.resolveConfig.call(void 0, );
|
|
626
626
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
627
627
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
628
628
|
try {
|
|
@@ -652,7 +652,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
652
652
|
});
|
|
653
653
|
let exitCode = 1;
|
|
654
654
|
try {
|
|
655
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
655
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-ZOOC57X4.js")));
|
|
656
656
|
exitCode = await handlePlayRun([
|
|
657
657
|
file,
|
|
658
658
|
"--input",
|
|
@@ -692,7 +692,7 @@ function preflightErrorMessage(error) {
|
|
|
692
692
|
return error instanceof Error ? error.message : String(error);
|
|
693
693
|
}
|
|
694
694
|
async function runPreflightCheck() {
|
|
695
|
-
const baseUrl =
|
|
695
|
+
const baseUrl = _chunk2RLMHWXWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
696
696
|
const healthController = new AbortController();
|
|
697
697
|
const healthTimeout = setTimeout(
|
|
698
698
|
() => healthController.abort(),
|
|
@@ -709,14 +709,14 @@ async function runPreflightCheck() {
|
|
|
709
709
|
}).catch((error) => ({
|
|
710
710
|
status: "unreachable",
|
|
711
711
|
version: null,
|
|
712
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
712
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkSNYH4QY2js.connectionFailureMessage.call(void 0,
|
|
713
713
|
baseUrl,
|
|
714
714
|
error instanceof Error ? error : new Error(String(error))
|
|
715
715
|
)
|
|
716
716
|
})).finally(() => clearTimeout(healthTimeout));
|
|
717
|
-
const apiKey =
|
|
718
|
-
const http = apiKey ? new (0,
|
|
719
|
-
|
|
717
|
+
const apiKey = _chunk2RLMHWXWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
718
|
+
const http = apiKey ? new (0, _chunk2RLMHWXWjs.HttpClient)(
|
|
719
|
+
_chunk2RLMHWXWjs.resolveConfig.call(void 0, {
|
|
720
720
|
baseUrl,
|
|
721
721
|
apiKey,
|
|
722
722
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -761,7 +761,7 @@ async function runPreflightCheck() {
|
|
|
761
761
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
762
762
|
return {
|
|
763
763
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
764
|
-
cli_version:
|
|
764
|
+
cli_version: _chunkSNYH4QY2js.SDK_VERSION,
|
|
765
765
|
host: baseUrl,
|
|
766
766
|
health: {
|
|
767
767
|
status: healthResult.status,
|
|
@@ -788,7 +788,7 @@ async function runPreflightCheck() {
|
|
|
788
788
|
{
|
|
789
789
|
title: "preflight",
|
|
790
790
|
lines: [
|
|
791
|
-
`cli: ${
|
|
791
|
+
`cli: ${_chunkSNYH4QY2js.SDK_VERSION}`,
|
|
792
792
|
`host: ${baseUrl}`,
|
|
793
793
|
`health: ${healthResult.status}`,
|
|
794
794
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -815,12 +815,12 @@ function printPreflightHuman(data) {
|
|
|
815
815
|
}
|
|
816
816
|
async function newerCliCommandHint(baseUrl, command) {
|
|
817
817
|
if (!command.trim()) return null;
|
|
818
|
-
const { response, error } = await
|
|
818
|
+
const { response, error } = await _chunkKO6OLYSDjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
819
819
|
if (error || !response) return null;
|
|
820
820
|
const introduced = response.command_introduced_in;
|
|
821
821
|
if (introduced) {
|
|
822
822
|
return [
|
|
823
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
823
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkSNYH4QY2js.SDK_VERSION}.`,
|
|
824
824
|
` ${introduced.reason}`,
|
|
825
825
|
` Update with: ${response.update_command}`,
|
|
826
826
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -829,36 +829,36 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
829
829
|
if (!response.update_required) return null;
|
|
830
830
|
return [
|
|
831
831
|
response.message,
|
|
832
|
-
` Installed: ${
|
|
832
|
+
` Installed: ${_chunkSNYH4QY2js.SDK_VERSION}. Run: ${response.update_command}`,
|
|
833
833
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
834
834
|
].join("\n");
|
|
835
835
|
}
|
|
836
836
|
async function runMain(ensureTransport, onAction, suppressOutputReport) {
|
|
837
837
|
const mainStartedAt = Date.now();
|
|
838
|
-
|
|
838
|
+
_chunkVWPM4OICjs.installJsonStderrGuard.call(void 0, );
|
|
839
839
|
let rootHelpStatus = "";
|
|
840
840
|
let concurrentRunsHelpStatus = "";
|
|
841
841
|
let commandFailed = false;
|
|
842
842
|
const deferredMaintenance = { inlinePlay: null };
|
|
843
|
-
|
|
843
|
+
_chunkE2EGQNOSjs.recordCliTrace.call(void 0, {
|
|
844
844
|
phase: "cli.main_start",
|
|
845
845
|
argv: process.argv.slice(2)
|
|
846
846
|
});
|
|
847
847
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
848
|
-
const progress = printStartupPhase ?
|
|
848
|
+
const progress = printStartupPhase ? _chunkA4IOPFEJjs.createCliProgress.call(void 0, true) : null;
|
|
849
849
|
if (printStartupPhase) {
|
|
850
850
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
851
851
|
}
|
|
852
852
|
const program = new (0, _commander.Command)();
|
|
853
853
|
program.name("deepline").description(
|
|
854
854
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
855
|
-
).version(
|
|
855
|
+
).version(_chunkSNYH4QY2js.SDK_VERSION, "-v, --version", "Show version").option(
|
|
856
856
|
"--workspace <workspace-id>",
|
|
857
857
|
"Act in this workspace (default: DEEPLINE_WORKSPACE_ID, else the workspace saved by org workspace set, else the org's default workspace)"
|
|
858
858
|
).option(
|
|
859
859
|
"--maintenance <policy>",
|
|
860
860
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
861
|
-
|
|
861
|
+
_chunkE2EGQNOSjs.parseCliMaintenancePolicy,
|
|
862
862
|
"configured"
|
|
863
863
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
864
864
|
"beforeAll",
|
|
@@ -907,9 +907,9 @@ Exit codes:
|
|
|
907
907
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
908
908
|
`
|
|
909
909
|
).addHelpText("afterAll", ({ command }) => {
|
|
910
|
-
const key =
|
|
910
|
+
const key = _chunkY36SQMSNjs.commandDocKey.call(void 0, command);
|
|
911
911
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
912
|
-
const explanation =
|
|
912
|
+
const explanation = _chunkY36SQMSNjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
913
913
|
return detail !== "quiet" && concurrentRunsHelpStatus ? `${explanation}${concurrentRunsHelpStatus}` : explanation;
|
|
914
914
|
});
|
|
915
915
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
@@ -918,7 +918,7 @@ Exit codes:
|
|
|
918
918
|
path: compatibilityCommand,
|
|
919
919
|
args: actionCommand.processedArgs
|
|
920
920
|
});
|
|
921
|
-
const maintenance =
|
|
921
|
+
const maintenance = _chunkE2EGQNOSjs.resolveCliMaintenancePolicy.call(void 0,
|
|
922
922
|
actionCommand.optsWithGlobals()
|
|
923
923
|
);
|
|
924
924
|
const workspace = actionCommand.optsWithGlobals().workspace;
|
|
@@ -928,19 +928,19 @@ Exit codes:
|
|
|
928
928
|
if (actionCommand.name() !== "version") {
|
|
929
929
|
await ensureTransport();
|
|
930
930
|
}
|
|
931
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
931
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkKO6OLYSDjs.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(
|
|
932
932
|
compatibilityCommand
|
|
933
|
-
) &&
|
|
933
|
+
) && _chunkJQK42HZQjs.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
|
|
934
934
|
return;
|
|
935
935
|
}
|
|
936
936
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
937
937
|
if (isToolExecuteCommand) {
|
|
938
|
-
|
|
938
|
+
_chunkVJR4CKYJjs.beginToolExecuteCommand.call(void 0, );
|
|
939
939
|
}
|
|
940
940
|
if (isToolExecuteCommand) {
|
|
941
|
-
const baseUrl =
|
|
942
|
-
if (maintenance !== "off")
|
|
943
|
-
|
|
941
|
+
const baseUrl = _chunk2RLMHWXWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
942
|
+
if (maintenance !== "off") _chunkKO6OLYSDjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
943
|
+
_chunkE2EGQNOSjs.recordCliTrace.call(void 0, {
|
|
944
944
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
945
945
|
baseUrl,
|
|
946
946
|
command: compatibilityCommand
|
|
@@ -948,9 +948,9 @@ Exit codes:
|
|
|
948
948
|
return;
|
|
949
949
|
}
|
|
950
950
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
951
|
-
if (!playDryRun &&
|
|
951
|
+
if (!playDryRun && _chunk7VOSQARZjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
952
952
|
if (maintenance !== "off") {
|
|
953
|
-
const baseUrl =
|
|
953
|
+
const baseUrl = _chunk2RLMHWXWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
954
954
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
955
955
|
baseUrl,
|
|
956
956
|
command: actionCommand,
|
|
@@ -959,27 +959,27 @@ Exit codes:
|
|
|
959
959
|
}
|
|
960
960
|
return;
|
|
961
961
|
}
|
|
962
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
962
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkVJR4CKYJjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
963
963
|
if (printStartupPhase) {
|
|
964
964
|
_optionalChain([progress, 'optionalAccess', _18 => _18.phase, 'call', _19 => _19("checking sdk compatibility")]);
|
|
965
965
|
}
|
|
966
966
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
967
|
-
const baseUrl =
|
|
968
|
-
if (maintenance !== "off")
|
|
967
|
+
const baseUrl = _chunk2RLMHWXWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
968
|
+
if (maintenance !== "off") _chunkKO6OLYSDjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
969
969
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
970
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
971
|
-
const trusted = isToolExecuteCommand ? null :
|
|
970
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunk2RLMHWXWjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
971
|
+
const trusted = isToolExecuteCommand ? null : _chunkKO6OLYSDjs.readTrustedCleanCompatibility.call(void 0,
|
|
972
972
|
baseUrl,
|
|
973
973
|
compatibilityCommand,
|
|
974
974
|
skillsVersion
|
|
975
975
|
);
|
|
976
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
976
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkKO6OLYSDjs.readFreshCleanCompatibility.call(void 0,
|
|
977
977
|
baseUrl,
|
|
978
978
|
compatibilityCommand,
|
|
979
979
|
skillsVersion
|
|
980
980
|
) !== null;
|
|
981
981
|
if (trusted) {
|
|
982
|
-
|
|
982
|
+
_chunkE2EGQNOSjs.recordCliTrace.call(void 0, {
|
|
983
983
|
phase: "cli.sdk_compatibility",
|
|
984
984
|
ms: 0,
|
|
985
985
|
ok: true,
|
|
@@ -989,7 +989,7 @@ Exit codes:
|
|
|
989
989
|
source: "trusted_cache"
|
|
990
990
|
});
|
|
991
991
|
}
|
|
992
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
992
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkE2EGQNOSjs.traceCliSpan.call(void 0,
|
|
993
993
|
"cli.sdk_compatibility",
|
|
994
994
|
{
|
|
995
995
|
baseUrl,
|
|
@@ -997,12 +997,12 @@ Exit codes:
|
|
|
997
997
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
998
998
|
fastDeadline
|
|
999
999
|
},
|
|
1000
|
-
() =>
|
|
1000
|
+
() => _chunkKO6OLYSDjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1001
1001
|
command: compatibilityCommand,
|
|
1002
1002
|
skillsVersion,
|
|
1003
1003
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
1004
|
-
catalog:
|
|
1005
|
-
...fastDeadline ? { timeoutMs:
|
|
1004
|
+
catalog: _chunkVJR4CKYJjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
1005
|
+
...fastDeadline ? { timeoutMs: _chunkKO6OLYSDjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
1006
1006
|
})
|
|
1007
1007
|
);
|
|
1008
1008
|
if (compatibility.error) {
|
|
@@ -1013,7 +1013,7 @@ Exit codes:
|
|
|
1013
1013
|
response: null
|
|
1014
1014
|
};
|
|
1015
1015
|
}
|
|
1016
|
-
const relaunched = await
|
|
1016
|
+
const relaunched = await _chunkVJR4CKYJjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
1017
1017
|
compatibility.response,
|
|
1018
1018
|
baseUrl,
|
|
1019
1019
|
maintenance
|
|
@@ -1027,14 +1027,14 @@ Exit codes:
|
|
|
1027
1027
|
};
|
|
1028
1028
|
}
|
|
1029
1029
|
const policy = compatibility.response;
|
|
1030
|
-
const jsonOutput =
|
|
1031
|
-
|
|
1030
|
+
const jsonOutput = _chunkVWPM4OICjs.isJsonOutputMode.call(void 0, );
|
|
1031
|
+
_chunkKO6OLYSDjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1032
1032
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1033
|
-
|
|
1033
|
+
_chunkVJR4CKYJjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkKO6OLYSDjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1034
1034
|
});
|
|
1035
1035
|
const advisory = compatibility.response;
|
|
1036
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1037
|
-
|
|
1036
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkKO6OLYSDjs.isCiEnvironment.call(void 0, ) && !_chunkVJR4CKYJjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1037
|
+
_chunkVWPM4OICjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1038
1038
|
}
|
|
1039
1039
|
return {
|
|
1040
1040
|
shouldContinue: true,
|
|
@@ -1051,10 +1051,10 @@ Exit codes:
|
|
|
1051
1051
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1052
1052
|
await runStartupStage(
|
|
1053
1053
|
"agent skills sync",
|
|
1054
|
-
() =>
|
|
1054
|
+
() => _chunkE2EGQNOSjs.traceCliSpan.call(void 0,
|
|
1055
1055
|
"cli.sdk_skills_sync",
|
|
1056
1056
|
{ baseUrl: startup.baseUrl },
|
|
1057
|
-
() =>
|
|
1057
|
+
() => _chunkKO6OLYSDjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1058
1058
|
update: skillsUpdate,
|
|
1059
1059
|
mode: "detached"
|
|
1060
1060
|
})
|
|
@@ -1068,16 +1068,16 @@ Exit codes:
|
|
|
1068
1068
|
);
|
|
1069
1069
|
const carriesFeedback = requestedCommand === "feedback" || requestedCommand === "session" || requestedCommand === "sessions";
|
|
1070
1070
|
if (carriesFeedback) suppressOutputReport();
|
|
1071
|
-
const commandRegistrationStartedAt =
|
|
1071
|
+
const commandRegistrationStartedAt = _chunkE2EGQNOSjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1072
1072
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1073
1073
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1074
|
-
|
|
1074
|
+
_chunkE2EGQNOSjs.recordCliTrace.call(void 0, {
|
|
1075
1075
|
phase: "cli.command_registration",
|
|
1076
1076
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1077
1077
|
});
|
|
1078
1078
|
}
|
|
1079
1079
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1080
|
-
if (
|
|
1080
|
+
if (_chunkVWPM4OICjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1081
1081
|
preflight.addHelpText(
|
|
1082
1082
|
"after",
|
|
1083
1083
|
`
|
|
@@ -1093,8 +1093,8 @@ Examples:
|
|
|
1093
1093
|
`
|
|
1094
1094
|
).action(async (options) => {
|
|
1095
1095
|
const data = await runPreflightCheck();
|
|
1096
|
-
if (
|
|
1097
|
-
|
|
1096
|
+
if (_chunkVWPM4OICjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1097
|
+
_chunkVWPM4OICjs.printJson.call(void 0, data);
|
|
1098
1098
|
} else {
|
|
1099
1099
|
printPreflightHuman(data);
|
|
1100
1100
|
}
|
|
@@ -1119,7 +1119,7 @@ Examples:
|
|
|
1119
1119
|
).action(async (options) => {
|
|
1120
1120
|
if (options.playRunner) {
|
|
1121
1121
|
const data = await runPlayRunnerHealthCheck();
|
|
1122
|
-
|
|
1122
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0, data, {
|
|
1123
1123
|
json: options.json,
|
|
1124
1124
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1125
1125
|
`
|
|
@@ -1127,15 +1127,15 @@ Examples:
|
|
|
1127
1127
|
return;
|
|
1128
1128
|
}
|
|
1129
1129
|
try {
|
|
1130
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1131
|
-
const baseUrl =
|
|
1130
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-UYQHRHYR.js")));
|
|
1131
|
+
const baseUrl = _chunk2RLMHWXWjs.resolveBaseUrlOnly.call(void 0, );
|
|
1132
1132
|
const [{ status, data }, banner] = await Promise.all([
|
|
1133
1133
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1134
1134
|
readStatusBanner(baseUrl)
|
|
1135
1135
|
]);
|
|
1136
1136
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1137
1137
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1138
|
-
|
|
1138
|
+
_chunkVWPM4OICjs.printCommandEnvelope.call(void 0,
|
|
1139
1139
|
{ ...data, status_banner: banner },
|
|
1140
1140
|
{
|
|
1141
1141
|
json: options.json,
|
|
@@ -1163,16 +1163,16 @@ Examples:
|
|
|
1163
1163
|
`
|
|
1164
1164
|
).action((options) => {
|
|
1165
1165
|
if (options.json) {
|
|
1166
|
-
|
|
1166
|
+
_chunkVWPM4OICjs.printCompactJson.call(void 0, { version: _chunkSNYH4QY2js.SDK_VERSION });
|
|
1167
1167
|
return;
|
|
1168
1168
|
}
|
|
1169
|
-
process.stdout.write(`deepline ${
|
|
1169
|
+
process.stdout.write(`deepline ${_chunkSNYH4QY2js.SDK_VERSION}
|
|
1170
1170
|
`);
|
|
1171
1171
|
});
|
|
1172
1172
|
if (process.argv.slice(2).length === 0) {
|
|
1173
1173
|
program.outputHelp({ error: true });
|
|
1174
1174
|
console.error("\nerror: missing command (see usage above)");
|
|
1175
|
-
|
|
1175
|
+
_chunkE2EGQNOSjs.recordCliTrace.call(void 0, {
|
|
1176
1176
|
phase: "cli.main_total",
|
|
1177
1177
|
ms: Date.now() - mainStartedAt,
|
|
1178
1178
|
ok: false,
|
|
@@ -1184,16 +1184,16 @@ Examples:
|
|
|
1184
1184
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1185
1185
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1186
1186
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1187
|
-
if (!
|
|
1188
|
-
const baseUrl =
|
|
1187
|
+
if (!_chunkVWPM4OICjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1188
|
+
const baseUrl = _chunk2RLMHWXWjs.autoDetectBaseUrl.call(void 0, );
|
|
1189
1189
|
await ensureTransport();
|
|
1190
1190
|
const versionHint = await newerCliCommandHint(
|
|
1191
1191
|
baseUrl,
|
|
1192
1192
|
requestedTopLevelCommand
|
|
1193
1193
|
);
|
|
1194
|
-
if (
|
|
1194
|
+
if (_chunkVWPM4OICjs.isJsonOutputMode.call(void 0, )) {
|
|
1195
1195
|
if (versionHint) {
|
|
1196
|
-
|
|
1196
|
+
_chunkVWPM4OICjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1197
1197
|
}
|
|
1198
1198
|
printUsageErrorJson(
|
|
1199
1199
|
"commander.unknownCommand",
|
|
@@ -1215,26 +1215,26 @@ Examples:
|
|
|
1215
1215
|
const helpArgs = process.argv.slice(2);
|
|
1216
1216
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1217
1217
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1218
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1219
|
-
rootHelpStatus = `Version: ${
|
|
1218
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-UYQHRHYR.js")));
|
|
1219
|
+
rootHelpStatus = `Version: ${_chunkSNYH4QY2js.SDK_VERSION}
|
|
1220
1220
|
${await authStatusLine()}
|
|
1221
1221
|
`;
|
|
1222
1222
|
}
|
|
1223
1223
|
if ((helpArgs.includes("--help") || helpArgs.includes("-h")) && helpPositionals.length >= 2) {
|
|
1224
|
-
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-
|
|
1224
|
+
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-QWDTLZUX.js")));
|
|
1225
1225
|
if (CONCURRENT_RUNS_HELP_COMMANDS.has(helpPositionals.slice(0, 2).join(" "))) {
|
|
1226
1226
|
await ensureTransport();
|
|
1227
1227
|
concurrentRunsHelpStatus = await read();
|
|
1228
1228
|
}
|
|
1229
1229
|
}
|
|
1230
1230
|
await program.parseAsync(process.argv);
|
|
1231
|
-
|
|
1231
|
+
_chunkE2EGQNOSjs.recordCliTrace.call(void 0, {
|
|
1232
1232
|
phase: "cli.main_total",
|
|
1233
1233
|
ms: Date.now() - mainStartedAt,
|
|
1234
1234
|
ok: true
|
|
1235
1235
|
});
|
|
1236
1236
|
if (!carriesFeedback) {
|
|
1237
|
-
await
|
|
1237
|
+
await _chunkVWPM4OICjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1238
1238
|
argv: process.argv.slice(2),
|
|
1239
1239
|
startedAtMs: mainStartedAt,
|
|
1240
1240
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1243,14 +1243,14 @@ ${await authStatusLine()}
|
|
|
1243
1243
|
} catch (error) {
|
|
1244
1244
|
commandFailed = true;
|
|
1245
1245
|
const commanderError = asCommanderError(error);
|
|
1246
|
-
|
|
1246
|
+
_chunkE2EGQNOSjs.recordCliTrace.call(void 0, {
|
|
1247
1247
|
phase: "cli.main_total",
|
|
1248
1248
|
ms: Date.now() - mainStartedAt,
|
|
1249
1249
|
ok: false,
|
|
1250
1250
|
error: error instanceof Error ? error.message : String(error)
|
|
1251
1251
|
});
|
|
1252
1252
|
_optionalChain([progress, 'optionalAccess', _22 => _22.fail, 'call', _23 => _23()]);
|
|
1253
|
-
const wantsJson =
|
|
1253
|
+
const wantsJson = _chunkVWPM4OICjs.isJsonOutputMode.call(void 0, );
|
|
1254
1254
|
if (commanderError) {
|
|
1255
1255
|
const grammarError = [
|
|
1256
1256
|
"commander.unknownCommand",
|
|
@@ -1261,12 +1261,12 @@ ${await authStatusLine()}
|
|
|
1261
1261
|
if (grammarError) {
|
|
1262
1262
|
await ensureTransport();
|
|
1263
1263
|
const versionHint = await newerCliCommandHint(
|
|
1264
|
-
|
|
1264
|
+
_chunk2RLMHWXWjs.autoDetectBaseUrl.call(void 0, ),
|
|
1265
1265
|
commandPath
|
|
1266
1266
|
);
|
|
1267
1267
|
if (wantsJson) {
|
|
1268
1268
|
if (versionHint) {
|
|
1269
|
-
|
|
1269
|
+
_chunkVWPM4OICjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1270
1270
|
}
|
|
1271
1271
|
} else {
|
|
1272
1272
|
if (versionHint) console.error(versionHint);
|
|
@@ -1286,43 +1286,43 @@ ${await authStatusLine()}
|
|
|
1286
1286
|
return;
|
|
1287
1287
|
} else if (wantsJson) {
|
|
1288
1288
|
if (error instanceof _chunk6VLFQZK6js.AuthError) {
|
|
1289
|
-
|
|
1289
|
+
_chunkVWPM4OICjs.addJsonNotice.call(void 0, {
|
|
1290
1290
|
code: "auth_required",
|
|
1291
1291
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1292
1292
|
});
|
|
1293
1293
|
}
|
|
1294
|
-
const providerConcurrency =
|
|
1294
|
+
const providerConcurrency = _chunkVWPM4OICjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1295
1295
|
if (providerConcurrency) {
|
|
1296
|
-
|
|
1296
|
+
_chunkVWPM4OICjs.addJsonNotice.call(void 0, {
|
|
1297
1297
|
code: "provider_concurrency",
|
|
1298
1298
|
message: providerConcurrency
|
|
1299
1299
|
});
|
|
1300
1300
|
}
|
|
1301
|
-
const payload =
|
|
1302
|
-
|
|
1301
|
+
const payload = _chunkVWPM4OICjs.errorToJsonPayload.call(void 0, error);
|
|
1302
|
+
_chunkVWPM4OICjs.printJson.call(void 0, {
|
|
1303
1303
|
...payload,
|
|
1304
1304
|
// The envelope names the code the process exits with, so a caller
|
|
1305
1305
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1306
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1306
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkVWPM4OICjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1307
1307
|
...error instanceof _chunk6VLFQZK6js.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1308
1308
|
});
|
|
1309
1309
|
} else if (error instanceof Error) {
|
|
1310
1310
|
console.error(`Error: ${error.message}`);
|
|
1311
|
-
const toolDiagnostic =
|
|
1311
|
+
const toolDiagnostic = _chunkVWPM4OICjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1312
1312
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1313
1313
|
if (error instanceof _chunk6VLFQZK6js.AuthError) {
|
|
1314
1314
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1315
1315
|
}
|
|
1316
|
-
const providerConcurrency =
|
|
1316
|
+
const providerConcurrency = _chunkVWPM4OICjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1317
1317
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1318
1318
|
} else {
|
|
1319
1319
|
console.error(`Error: ${String(error)}`);
|
|
1320
1320
|
}
|
|
1321
1321
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1322
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1322
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkVWPM4OICjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1323
1323
|
process.exitCode = failureExitCode;
|
|
1324
1324
|
if (!carriesFeedback) {
|
|
1325
|
-
await
|
|
1325
|
+
await _chunkVWPM4OICjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1326
1326
|
argv: process.argv.slice(2),
|
|
1327
1327
|
startedAtMs: mainStartedAt,
|
|
1328
1328
|
exitCode: failureExitCode,
|
|
@@ -1330,13 +1330,13 @@ ${await authStatusLine()}
|
|
|
1330
1330
|
});
|
|
1331
1331
|
}
|
|
1332
1332
|
} finally {
|
|
1333
|
-
|
|
1333
|
+
_chunkVJR4CKYJjs.finishToolExecuteCommand.call(void 0, );
|
|
1334
1334
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1335
1335
|
deferredMaintenance.inlinePlay = null;
|
|
1336
1336
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1337
1337
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _24 => _24()]);
|
|
1338
1338
|
}
|
|
1339
|
-
await
|
|
1339
|
+
await _chunkVJR4CKYJjs.runDeferredAutoUpdate.call(void 0, );
|
|
1340
1340
|
}
|
|
1341
1341
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1342
1342
|
}
|
|
@@ -1344,7 +1344,7 @@ async function main() {
|
|
|
1344
1344
|
let disposeTransport;
|
|
1345
1345
|
const ensureTransport = async () => {
|
|
1346
1346
|
if (disposeTransport) return;
|
|
1347
|
-
const transportStartedAt =
|
|
1347
|
+
const transportStartedAt = _chunkE2EGQNOSjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1348
1348
|
const hasProxy = [
|
|
1349
1349
|
"HTTP_PROXY",
|
|
1350
1350
|
"http_proxy",
|
|
@@ -1356,7 +1356,7 @@ async function main() {
|
|
|
1356
1356
|
disposeTransport = configureCliTransport();
|
|
1357
1357
|
}
|
|
1358
1358
|
if (transportStartedAt !== void 0) {
|
|
1359
|
-
|
|
1359
|
+
_chunkE2EGQNOSjs.recordCliTrace.call(void 0, {
|
|
1360
1360
|
phase: "cli.transport_setup",
|
|
1361
1361
|
ms: performance.now() - transportStartedAt
|
|
1362
1362
|
});
|
|
@@ -1379,9 +1379,9 @@ async function main() {
|
|
|
1379
1379
|
skipOutputReport = true;
|
|
1380
1380
|
}
|
|
1381
1381
|
);
|
|
1382
|
-
const silentFailure =
|
|
1382
|
+
const silentFailure = _chunkVWPM4OICjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1383
1383
|
if (silentFailure) {
|
|
1384
|
-
|
|
1384
|
+
_chunkVWPM4OICjs.printJson.call(void 0, {
|
|
1385
1385
|
ok: false,
|
|
1386
1386
|
exitCode: Number(process.exitCode),
|
|
1387
1387
|
error: { code: "CLI_ERROR", message: silentFailure }
|