deepline 0.3.539 → 0.3.541
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/billing-entitlements.ts +10 -0
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +8 -4
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-execution-queries.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-pool.ts +20 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +30 -11
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
- package/dist/cli/auth-V76O674K.js +43 -0
- package/dist/cli/{auth-QD7QGD3B.mjs → auth-WJXA7XGM.mjs} +5 -5
- package/dist/cli/{billing-KOQAF6WS.js → billing-34IV5DSV.js} +105 -94
- package/dist/cli/{billing-FIZXMHBW.mjs → billing-SHS4HMWT.mjs} +21 -10
- package/dist/cli/{chunk-FSQCB5SJ.js → chunk-2TAGAPLL.js} +2 -2
- package/dist/cli/{chunk-Q4HNK7JX.js → chunk-323I5KQ5.js} +8 -8
- package/dist/cli/{chunk-GLEGINSP.mjs → chunk-53QZ24DP.mjs} +2 -2
- package/dist/cli/chunk-5LNWLEO3.mjs +54 -0
- package/dist/cli/{chunk-TZBCJHV6.js → chunk-5N4ENMYE.js} +1 -1
- package/dist/cli/{chunk-JHEZQMOM.mjs → chunk-6PJAC3P5.mjs} +1 -1
- package/dist/cli/{chunk-K5MZHTK7.js → chunk-6TZEDCN7.js} +3 -3
- package/dist/cli/{chunk-G3UFDUYU.mjs → chunk-7AUQSK24.mjs} +1 -1
- package/dist/cli/{chunk-6KG4KVTH.mjs → chunk-ABDXKELH.mjs} +5 -5
- package/dist/cli/{chunk-FIRV7BXJ.mjs → chunk-AU7ZKXW5.mjs} +1 -1
- package/dist/cli/{chunk-APKZGUTU.mjs → chunk-BMNLD63A.mjs} +4 -4
- package/dist/cli/{chunk-FH3P3E4S.js → chunk-BUCTWJBM.js} +2 -2
- package/dist/cli/{chunk-KQTX545E.js → chunk-C2LYJ3EX.js} +13 -13
- package/dist/cli/{chunk-W32KT6LM.js → chunk-CNBPATLI.js} +5 -5
- package/dist/cli/{chunk-5QL4GJB2.js → chunk-CY5LW6DW.js} +2 -2
- package/dist/cli/{chunk-SDAP5MCO.mjs → chunk-DF7ARQRB.mjs} +2 -2
- package/dist/cli/{chunk-ADV2IB2C.mjs → chunk-DHC7EGI7.mjs} +5 -5
- package/dist/cli/{chunk-6NZBLFL4.mjs → chunk-ECPCZVDM.mjs} +1 -1
- package/dist/cli/{chunk-K22EKW6L.js → chunk-F3TLGM2U.js} +5 -5
- package/dist/cli/chunk-FANIRW74.mjs +9 -0
- package/dist/cli/{chunk-ISXX5DUD.js → chunk-FOCNY4GV.js} +3 -3
- package/dist/cli/{chunk-GLKUC5PO.mjs → chunk-FRPJSFNL.mjs} +2 -2
- package/dist/cli/{chunk-RULRGMMM.mjs → chunk-FTKX7OGB.mjs} +5 -5
- package/dist/cli/{chunk-EAZS52DL.js → chunk-FVZ5Y5L6.js} +15 -15
- package/dist/cli/{chunk-MI53W4DN.js → chunk-FYQWTENQ.js} +53 -53
- package/dist/cli/{chunk-Y66ZMOJI.mjs → chunk-GLINYHY7.mjs} +1 -1
- package/dist/cli/chunk-GWHA4DAC.js +9 -0
- package/dist/cli/{chunk-JBCQFG7G.mjs → chunk-H74CLEMB.mjs} +3 -3
- package/dist/cli/{chunk-E7D37PLM.mjs → chunk-IDDKNMFX.mjs} +36 -0
- package/dist/cli/{chunk-NR5PLMNG.js → chunk-IZXMX65M.js} +107 -107
- package/dist/cli/{chunk-6V3LNYK5.mjs → chunk-JZNKEHXQ.mjs} +2 -2
- package/dist/cli/{chunk-5RUB53KG.js → chunk-KIYETQ6K.js} +26 -26
- package/dist/cli/{chunk-GEO2EMM7.mjs → chunk-LRPFCB2P.mjs} +1 -1
- package/dist/cli/{chunk-V7DEGIYO.js → chunk-M6XIKHBS.js} +4 -4
- package/dist/cli/{chunk-KAEVL62Q.js → chunk-MPYM6TUO.js} +44 -44
- package/dist/cli/{chunk-LE5KN7CZ.mjs → chunk-NB4AIXEA.mjs} +3 -3
- package/dist/cli/{chunk-FTBWFDF3.js → chunk-OK4JMVTM.js} +7 -7
- package/dist/cli/chunk-POZPEDW7.js +54 -0
- package/dist/cli/{chunk-CQJCLHBE.js → chunk-Q66ADD4O.js} +41 -41
- package/dist/cli/{chunk-GNCIMHO2.mjs → chunk-QI76LGE3.mjs} +10 -10
- package/dist/cli/{chunk-F43MXIN3.mjs → chunk-RYYGNUNO.mjs} +2 -2
- package/dist/cli/{chunk-3YDI2PTN.js → chunk-S6FF7Q5P.js} +10 -10
- package/dist/cli/{chunk-YMQFQO3K.js → chunk-S7NKIEHL.js} +16 -16
- package/dist/cli/{chunk-DZFVVP3S.mjs → chunk-UC5QFQGC.mjs} +5 -5
- package/dist/cli/{chunk-VK5UTS5B.js → chunk-UKO6POLZ.js} +9 -9
- package/dist/cli/{chunk-5YF35HAV.js → chunk-UXXFCOE3.js} +6 -6
- package/dist/cli/{chunk-XTYHZEJ2.js → chunk-V4EYJKGJ.js} +36 -0
- package/dist/cli/{chunk-N3LPGGWD.mjs → chunk-VMIIUMAN.mjs} +1 -1
- package/dist/cli/{chunk-XZBXQCRJ.js → chunk-WIV3E6Y7.js} +22 -22
- package/dist/cli/{chunk-MKESK3SW.mjs → chunk-WZMG2M65.mjs} +4 -4
- package/dist/cli/{chunk-55ITVU2V.mjs → chunk-XO2SGONT.mjs} +2 -2
- package/dist/cli/{chunk-2XMFT44N.mjs → chunk-XTR32PMA.mjs} +1 -1
- package/dist/cli/{chunk-LEREPTAE.js → chunk-ZD673XAL.js} +19 -19
- package/dist/cli/{chunk-E4QHTDPF.mjs → chunk-ZL2DER5D.mjs} +1 -1
- package/dist/cli/command-docs.js +3 -2
- package/dist/cli/command-docs.mjs +2 -1
- package/dist/cli/concurrent-runs-help-MFEPUP6Y.js +21 -0
- package/dist/cli/concurrent-runs-help-ZJ77SAEU.mjs +21 -0
- package/dist/cli/{csv-BWWJYV2C.js → csv-MJLIZZOR.js} +13 -13
- package/dist/cli/{csv-G5RQQ74W.mjs → csv-PX7F5YJN.mjs} +4 -4
- package/dist/cli/{db-5KNDLADE.js → db-BNCNAY4G.js} +27 -27
- package/dist/cli/{db-AJZHWB3V.mjs → db-KPKGTHPA.mjs} +6 -6
- package/dist/cli/{describe-QY5TKWVD.mjs → describe-5OUJA5TH.mjs} +17 -17
- package/dist/cli/describe-7MF5AHIU.js +49 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-SJPH3MZT.mjs → executions-NMQY4GEY.mjs} +6 -6
- package/dist/cli/{executions-BCCW76BI.js → executions-YNOFR7T2.js} +8 -8
- package/dist/cli/{feedback-S6SZOFGK.mjs → feedback-LWYEO5LL.mjs} +6 -6
- package/dist/cli/{feedback-GF65JKK6.js → feedback-RCP5DPO6.js} +14 -14
- package/dist/cli/{git-F5FT5YVB.mjs → git-3O4PFP3Q.mjs} +5 -5
- package/dist/cli/git-WLQ3BS6K.js +25 -0
- package/dist/cli/index.js +157 -143
- package/dist/cli/index.mjs +57 -43
- package/dist/cli/{legacy-noops-NOA4P5NE.mjs → legacy-noops-KFP674JT.mjs} +6 -6
- package/dist/cli/{legacy-noops-ECR6FS6U.js → legacy-noops-ZPZRG366.js} +9 -9
- package/dist/cli/mcp-HCXDW6PL.js +352 -0
- package/dist/cli/mcp-OCYUXQ6L.mjs +352 -0
- package/dist/cli/{monitors-DEWBSURN.js → monitors-7Q7YT22Y.js} +100 -100
- package/dist/cli/{monitors-CTYSAGP4.mjs → monitors-V5KJIJJE.mjs} +7 -7
- package/dist/cli/{org-EKSKKT7H.mjs → org-C3QLHX7U.mjs} +6 -6
- package/dist/cli/{org-ZM2UUMZZ.js → org-S37K6QYH.js} +86 -86
- package/dist/cli/{play-6JQOM6DE.js → play-MLREAYHJ.js} +473 -455
- package/dist/cli/{play-R2BH374J.mjs → play-MXQ2DKML.mjs} +35 -17
- package/dist/cli/{providers-X7WMIWO4.mjs → providers-FDJ4ZOST.mjs} +6 -6
- package/dist/cli/{providers-CMIYHEMN.js → providers-PPDWY7DH.js} +9 -9
- package/dist/cli/{quickstart-ZZ7L6VZJ.mjs → quickstart-2Z57AMB7.mjs} +4 -4
- package/dist/cli/{quickstart-6HVPAMSW.js → quickstart-BOWQM7S7.js} +6 -6
- package/dist/cli/{run-FP32RKBU.mjs → run-5RNJGPQ2.mjs} +22 -22
- package/dist/cli/{run-OOHYH3GI.js → run-66HXNJNV.js} +42 -42
- package/dist/cli/{search-BDDNC23Z.mjs → search-7G4FYQYO.mjs} +7 -7
- package/dist/cli/search-LTUIIV6W.js +32 -0
- package/dist/cli/{search-output-QXJ6CV5G.mjs → search-output-6K4FHCVI.mjs} +4 -4
- package/dist/cli/{search-output-5VZIQQAM.js → search-output-L6ICQDBL.js} +6 -6
- package/dist/cli/{secrets-Z7CQSQGC.mjs → secrets-FTQPCU7O.mjs} +6 -6
- package/dist/cli/{secrets-EN2HQCO3.js → secrets-PWFJKF7G.js} +15 -15
- package/dist/cli/sessions-2IVFGTPA.js +22 -0
- package/dist/cli/{sessions-I2H37OTJ.mjs → sessions-YSSAAQVJ.mjs} +6 -6
- package/dist/cli/{settings-CTRAPFNZ.js → settings-CZEMF2WD.js} +85 -85
- package/dist/cli/{settings-IYSC5PPQ.mjs → settings-KN7GNZ5J.mjs} +12 -12
- package/dist/cli/{setup-PU3HOVI3.mjs → setup-5WLHGH57.mjs} +9 -9
- package/dist/cli/{setup-XIN53GEW.js → setup-RW4X6DX4.js} +49 -49
- package/dist/cli/{skills-TYBML2ZO.mjs → skills-DLVI7IZK.mjs} +7 -7
- package/dist/cli/skills-WT42AZVH.js +36 -0
- package/dist/cli/tools-D6STYBQG.js +56 -0
- package/dist/cli/{tools-ZVNE6M6J.mjs → tools-JVYQF7P3.mjs} +16 -16
- package/dist/cli/{update-54WENBNT.mjs → update-XKLXU7YS.mjs} +9 -9
- package/dist/cli/update-XTUKBC3J.js +34 -0
- package/dist/cli/{views-EUBB4ONT.mjs → views-QRRCWP6B.mjs} +6 -6
- package/dist/cli/{views-7L75EZOJ.js → views-YNUYFS3S.js} +21 -21
- package/dist/cli/{workflow-GUKGFJ72.mjs → workflow-KYFMA4LM.mjs} +7 -7
- package/dist/cli/{workflow-EZVYCR6Y.js → workflow-YUKADKCJ.js} +17 -17
- package/dist/{client-DZTnAv4B.d.ts → client-B1fixtK1.d.ts} +1 -1
- package/dist/{client-D0uDBybG.d.mts → client-CE4QBVbp.d.mts} +1 -1
- package/dist/{client-core-BhWf8Y1b.d.mts → client-core-2BkNBgrx.d.mts} +3 -1
- package/dist/{client-core-og3AP1LL.d.ts → client-core-C-3FVlVq.d.ts} +3 -1
- package/dist/{compiler-manifest-Bes3OVA3.d.ts → compiler-manifest-Cys06iYg.d.mts} +14 -0
- package/dist/{compiler-manifest-Bes3OVA3.d.mts → compiler-manifest-Cys06iYg.d.ts} +14 -0
- package/dist/{errors-Dc5r42ks.d.mts → errors-B6eMjKcr.d.mts} +1 -1
- package/dist/{errors-BJm4lLWc.d.ts → errors-rdOUqcU2.d.ts} +1 -1
- package/dist/{index-DTkiz_Ur.d.mts → index-CZdYO81A.d.mts} +1 -1
- package/dist/{index-BfV7mRPF.d.ts → index-ejWadAL5.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +120 -112
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +1 -1
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-O5Y2VYXK.js +0 -43
- package/dist/cli/describe-B6CN6CFJ.js +0 -49
- package/dist/cli/git-DX6NB7VF.js +0 -25
- package/dist/cli/search-34C6LFOJ.js +0 -32
- package/dist/cli/sessions-RYQX3NDD.js +0 -22
- package/dist/cli/skills-576CX7DK.js +0 -36
- package/dist/cli/tools-EXMUWA3Z.js +0 -56
- package/dist/cli/update-RAHETNL2.js +0 -34
package/dist/cli/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUXXFCOE3js = require('./chunk-UXXFCOE3.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCY5LW6DWjs = require('./chunk-CY5LW6DW.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -13,17 +13,17 @@ var _chunk5QL4GJB2js = require('./chunk-5QL4GJB2.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkWIV3E6Y7js = require('./chunk-WIV3E6Y7.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 _chunk2TAGAPLLjs = require('./chunk-2TAGAPLL.js');
|
|
24
|
+
require('./chunk-S7NKIEHL.js');
|
|
25
|
+
require('./chunk-BUCTWJBM.js');
|
|
26
|
+
require('./chunk-Q66ADD4O.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -35,15 +35,16 @@ require('./chunk-CQJCLHBE.js');
|
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
var
|
|
38
|
+
var _chunkMPYM6TUOjs = require('./chunk-MPYM6TUO.js');
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunk6TZEDCN7js = require('./chunk-6TZEDCN7.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
var
|
|
46
|
+
var _chunkV4EYJKGJjs = require('./chunk-V4EYJKGJ.js');
|
|
47
|
+
require('./chunk-GWHA4DAC.js');
|
|
47
48
|
require('./chunk-R7J7CJPZ.js');
|
|
48
49
|
require('./chunk-YGCKMI5P.js');
|
|
49
50
|
|
|
@@ -64,7 +65,7 @@ require('./chunk-YGCKMI5P.js');
|
|
|
64
65
|
|
|
65
66
|
|
|
66
67
|
|
|
67
|
-
var
|
|
68
|
+
var _chunkZD673XALjs = require('./chunk-ZD673XAL.js');
|
|
68
69
|
|
|
69
70
|
|
|
70
71
|
|
|
@@ -72,18 +73,18 @@ var _chunkLEREPTAEjs = require('./chunk-LEREPTAE.js');
|
|
|
72
73
|
|
|
73
74
|
|
|
74
75
|
|
|
75
|
-
var
|
|
76
|
+
var _chunkFOCNY4GVjs = require('./chunk-FOCNY4GV.js');
|
|
76
77
|
|
|
77
78
|
|
|
78
79
|
|
|
79
80
|
|
|
80
|
-
var
|
|
81
|
+
var _chunkM6XIKHBSjs = require('./chunk-M6XIKHBS.js');
|
|
81
82
|
|
|
82
83
|
|
|
83
84
|
var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
|
|
84
85
|
require('./chunk-XNYIZMNQ.js');
|
|
85
86
|
require('./chunk-BBTKAASQ.js');
|
|
86
|
-
require('./chunk-
|
|
87
|
+
require('./chunk-5N4ENMYE.js');
|
|
87
88
|
require('./chunk-OG64RBAC.js');
|
|
88
89
|
require('./chunk-RLX5ZFNX.js');
|
|
89
90
|
require('./chunk-COGTRVWW.js');
|
|
@@ -164,56 +165,60 @@ var _os = require('os');
|
|
|
164
165
|
var COMMAND_GROUPS = [
|
|
165
166
|
{
|
|
166
167
|
names: ["auth"],
|
|
167
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
168
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-V76O674K.js")))).registerAuthCommands
|
|
168
169
|
},
|
|
169
170
|
{
|
|
170
171
|
names: ["providers"],
|
|
171
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
172
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-PPDWY7DH.js")))).registerProviderCommands
|
|
172
173
|
},
|
|
173
174
|
{
|
|
174
175
|
names: ["search"],
|
|
175
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
176
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-LTUIIV6W.js")))).registerSearchCommand
|
|
176
177
|
},
|
|
177
178
|
{
|
|
178
179
|
names: ["describe"],
|
|
179
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
180
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-7MF5AHIU.js")))).registerDescribeCommand
|
|
180
181
|
},
|
|
181
182
|
{
|
|
182
183
|
names: ["run"],
|
|
183
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
184
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-66HXNJNV.js")))).registerRunCommand
|
|
184
185
|
},
|
|
185
186
|
{
|
|
186
187
|
names: ["tools"],
|
|
187
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
188
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-D6STYBQG.js")))).registerToolsCommands
|
|
188
189
|
},
|
|
189
190
|
{
|
|
190
191
|
names: ["executions"],
|
|
191
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
192
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-YNOFR7T2.js")))).registerExecutionsCommands
|
|
192
193
|
},
|
|
193
194
|
{
|
|
194
195
|
names: ["plays", "runs"],
|
|
195
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
196
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-MLREAYHJ.js")))).registerPlayCommands
|
|
196
197
|
},
|
|
197
198
|
{
|
|
198
199
|
names: ["sessions"],
|
|
199
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
200
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-2IVFGTPA.js")))).registerSessionsCommands
|
|
200
201
|
},
|
|
201
202
|
{
|
|
202
203
|
names: ["workflows"],
|
|
203
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
204
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-YUKADKCJ.js")))).registerWorkflowCommands
|
|
204
205
|
},
|
|
205
206
|
{
|
|
206
207
|
names: ["views"],
|
|
207
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-
|
|
208
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./views-YNUYFS3S.js")))).registerViewsCommands
|
|
208
209
|
},
|
|
209
210
|
{
|
|
210
211
|
names: ["secrets"],
|
|
211
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
212
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-PWFJKF7G.js")))).registerSecretsCommands
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
names: ["mcp"],
|
|
216
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./mcp-HCXDW6PL.js")))).registerMcpCommands
|
|
212
217
|
},
|
|
213
218
|
{
|
|
214
219
|
names: ["settings", "notifications"],
|
|
215
220
|
load: async () => {
|
|
216
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
221
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-CZEMF2WD.js")));
|
|
217
222
|
return (p) => {
|
|
218
223
|
commands.registerSettingsCommands(p);
|
|
219
224
|
commands.registerNotificationCommands(p);
|
|
@@ -222,51 +227,51 @@ var COMMAND_GROUPS = [
|
|
|
222
227
|
},
|
|
223
228
|
{
|
|
224
229
|
names: ["billing"],
|
|
225
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
230
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-34IV5DSV.js")))).registerBillingCommands
|
|
226
231
|
},
|
|
227
232
|
{
|
|
228
233
|
names: ["monitors"],
|
|
229
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
234
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-7Q7YT22Y.js")))).registerMonitorsCommands
|
|
230
235
|
},
|
|
231
236
|
{
|
|
232
237
|
names: ["org"],
|
|
233
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
238
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-S37K6QYH.js")))).registerOrgCommands
|
|
234
239
|
},
|
|
235
240
|
{
|
|
236
241
|
names: ["git", "projects", "deployments"],
|
|
237
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
242
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-WLQ3BS6K.js")))).registerGitCommands
|
|
238
243
|
},
|
|
239
244
|
{
|
|
240
245
|
names: ["csv"],
|
|
241
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
246
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-MJLIZZOR.js")))).registerCsvCommands
|
|
242
247
|
},
|
|
243
248
|
{
|
|
244
249
|
names: ["db"],
|
|
245
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
250
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-BNCNAY4G.js")))).registerDbCommands
|
|
246
251
|
},
|
|
247
252
|
{
|
|
248
253
|
names: ["feedback"],
|
|
249
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
254
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-RCP5DPO6.js")))).registerFeedbackCommands
|
|
250
255
|
},
|
|
251
256
|
{
|
|
252
257
|
names: ["enrich", "session", "backend"],
|
|
253
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
258
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-ZPZRG366.js")))).registerDeprecatedCommands
|
|
254
259
|
},
|
|
255
260
|
{
|
|
256
261
|
names: ["update"],
|
|
257
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
262
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-XTUKBC3J.js")))).registerUpdateCommand
|
|
258
263
|
},
|
|
259
264
|
{
|
|
260
265
|
names: ["skills", "skills-auto-sync"],
|
|
261
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
266
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-WT42AZVH.js")))).registerSkillsCommand
|
|
262
267
|
},
|
|
263
268
|
{
|
|
264
269
|
names: ["setup", "doctor"],
|
|
265
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
270
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-RW4X6DX4.js")))).registerSetupCommands
|
|
266
271
|
},
|
|
267
272
|
{
|
|
268
273
|
names: ["quickstart"],
|
|
269
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
274
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-BOWQM7S7.js")))).registerQuickstartCommands
|
|
270
275
|
}
|
|
271
276
|
];
|
|
272
277
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -292,8 +297,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
292
297
|
function createDeferredPlayRunMaintenance(input) {
|
|
293
298
|
return async () => {
|
|
294
299
|
try {
|
|
295
|
-
const skillsVersion =
|
|
296
|
-
const compatibility = await
|
|
300
|
+
const skillsVersion = _chunkFOCNY4GVjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
301
|
+
const compatibility = await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
|
|
297
302
|
"cli.sdk_compatibility_deferred",
|
|
298
303
|
{
|
|
299
304
|
baseUrl: input.baseUrl,
|
|
@@ -301,24 +306,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
301
306
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
302
307
|
},
|
|
303
308
|
async () => {
|
|
304
|
-
const trusted =
|
|
309
|
+
const trusted = _chunkMPYM6TUOjs.readTrustedCleanCompatibility.call(void 0,
|
|
305
310
|
input.baseUrl,
|
|
306
311
|
"plays run",
|
|
307
312
|
skillsVersion
|
|
308
313
|
);
|
|
309
314
|
if (trusted) return { response: trusted, error: null };
|
|
310
|
-
return
|
|
315
|
+
return _chunkMPYM6TUOjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
311
316
|
command: "plays run",
|
|
312
317
|
skillsVersion,
|
|
313
318
|
persistCache: input.policy !== "off",
|
|
314
|
-
catalog:
|
|
319
|
+
catalog: _chunkWIV3E6Y7js.compatibilityCatalog.call(void 0, input.command)
|
|
315
320
|
});
|
|
316
321
|
}
|
|
317
322
|
);
|
|
318
323
|
if (compatibility.error || !compatibility.response) return;
|
|
319
324
|
const automaticUpdate = compatibility.response.auto_update;
|
|
320
325
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
321
|
-
await
|
|
326
|
+
await _chunkWIV3E6Y7js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
322
327
|
compatibility.response,
|
|
323
328
|
input.baseUrl,
|
|
324
329
|
input.policy
|
|
@@ -328,7 +333,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
328
333
|
compatibility.response,
|
|
329
334
|
"skills"
|
|
330
335
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
331
|
-
await
|
|
336
|
+
await _chunkMPYM6TUOjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
332
337
|
update: skillsUpdate,
|
|
333
338
|
mode: "detached"
|
|
334
339
|
});
|
|
@@ -356,8 +361,8 @@ var MAX_SESSIONS = 20;
|
|
|
356
361
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
357
362
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
358
363
|
}
|
|
359
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
360
|
-
const explicit =
|
|
364
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkM6XIKHBSjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
365
|
+
const explicit = _chunkV4EYJKGJjs.helpDetailFromArgv.call(void 0, argv);
|
|
361
366
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
362
367
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
363
368
|
const path = helpSeenPath(homeDir);
|
|
@@ -454,7 +459,7 @@ function shouldReport(stdout, stderr) {
|
|
|
454
459
|
}
|
|
455
460
|
function toolName(action) {
|
|
456
461
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
457
|
-
return typeof toolId === "string" ?
|
|
462
|
+
return typeof toolId === "string" ? _chunkZD673XALjs.redactFailureText.call(void 0, toolId) : null;
|
|
458
463
|
}
|
|
459
464
|
function chunkText(chunk) {
|
|
460
465
|
if (typeof chunk === "string") return chunk;
|
|
@@ -485,14 +490,14 @@ function watch(stream) {
|
|
|
485
490
|
}
|
|
486
491
|
async function postCommandOutput(body) {
|
|
487
492
|
try {
|
|
488
|
-
const baseUrl =
|
|
489
|
-
const apiKey =
|
|
493
|
+
const baseUrl = _chunkFOCNY4GVjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
494
|
+
const apiKey = _chunkFOCNY4GVjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
490
495
|
if (!apiKey) return;
|
|
491
|
-
const agentSessionId =
|
|
496
|
+
const agentSessionId = _chunkM6XIKHBSjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
492
497
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
493
498
|
method: "POST",
|
|
494
499
|
headers: {
|
|
495
|
-
...
|
|
500
|
+
..._chunkZD673XALjs.failureReportHeaders.call(void 0, apiKey),
|
|
496
501
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
497
502
|
},
|
|
498
503
|
body: JSON.stringify(body),
|
|
@@ -508,14 +513,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
508
513
|
const stdoutWatch = watch(streams.stdout);
|
|
509
514
|
const stderrWatch = watch(streams.stderr);
|
|
510
515
|
return async (finished) => {
|
|
511
|
-
if (
|
|
516
|
+
if (_chunkZD673XALjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
512
517
|
const [stdout, stderr] = await Promise.all([
|
|
513
518
|
stdoutWatch.settled(),
|
|
514
519
|
stderrWatch.settled()
|
|
515
520
|
]);
|
|
516
521
|
if (!shouldReport(stdout, stderr)) return;
|
|
517
522
|
await postCommandOutput({
|
|
518
|
-
command:
|
|
523
|
+
command: _chunkZD673XALjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
519
524
|
tool: toolName(finished.action),
|
|
520
525
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
521
526
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -546,7 +551,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
546
551
|
function printUsageErrorJson(code, message, commandPath) {
|
|
547
552
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
548
553
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
549
|
-
|
|
554
|
+
_chunkZD673XALjs.printJson.call(void 0, {
|
|
550
555
|
ok: false,
|
|
551
556
|
error: {
|
|
552
557
|
code,
|
|
@@ -604,7 +609,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
604
609
|
);
|
|
605
610
|
}
|
|
606
611
|
async function runPlayRunnerHealthCheck() {
|
|
607
|
-
|
|
612
|
+
_chunkFOCNY4GVjs.resolveConfig.call(void 0, );
|
|
608
613
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
609
614
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
610
615
|
try {
|
|
@@ -634,7 +639,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
634
639
|
});
|
|
635
640
|
let exitCode = 1;
|
|
636
641
|
try {
|
|
637
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
642
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-MLREAYHJ.js")));
|
|
638
643
|
exitCode = await handlePlayRun([
|
|
639
644
|
file,
|
|
640
645
|
"--input",
|
|
@@ -674,7 +679,7 @@ function preflightErrorMessage(error) {
|
|
|
674
679
|
return error instanceof Error ? error.message : String(error);
|
|
675
680
|
}
|
|
676
681
|
async function runPreflightCheck() {
|
|
677
|
-
const baseUrl =
|
|
682
|
+
const baseUrl = _chunkFOCNY4GVjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
678
683
|
const healthController = new AbortController();
|
|
679
684
|
const healthTimeout = setTimeout(
|
|
680
685
|
() => healthController.abort(),
|
|
@@ -691,14 +696,14 @@ async function runPreflightCheck() {
|
|
|
691
696
|
}).catch((error) => ({
|
|
692
697
|
status: "unreachable",
|
|
693
698
|
version: null,
|
|
694
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
699
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkM6XIKHBSjs.connectionFailureMessage.call(void 0,
|
|
695
700
|
baseUrl,
|
|
696
701
|
error instanceof Error ? error : new Error(String(error))
|
|
697
702
|
)
|
|
698
703
|
})).finally(() => clearTimeout(healthTimeout));
|
|
699
|
-
const apiKey =
|
|
700
|
-
const http = apiKey ? new (0,
|
|
701
|
-
|
|
704
|
+
const apiKey = _chunkFOCNY4GVjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
705
|
+
const http = apiKey ? new (0, _chunkFOCNY4GVjs.HttpClient)(
|
|
706
|
+
_chunkFOCNY4GVjs.resolveConfig.call(void 0, {
|
|
702
707
|
baseUrl,
|
|
703
708
|
apiKey,
|
|
704
709
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -743,7 +748,7 @@ async function runPreflightCheck() {
|
|
|
743
748
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
744
749
|
return {
|
|
745
750
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
746
|
-
cli_version:
|
|
751
|
+
cli_version: _chunkM6XIKHBSjs.SDK_VERSION,
|
|
747
752
|
host: baseUrl,
|
|
748
753
|
health: {
|
|
749
754
|
status: healthResult.status,
|
|
@@ -770,7 +775,7 @@ async function runPreflightCheck() {
|
|
|
770
775
|
{
|
|
771
776
|
title: "preflight",
|
|
772
777
|
lines: [
|
|
773
|
-
`cli: ${
|
|
778
|
+
`cli: ${_chunkM6XIKHBSjs.SDK_VERSION}`,
|
|
774
779
|
`host: ${baseUrl}`,
|
|
775
780
|
`health: ${healthResult.status}`,
|
|
776
781
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -797,12 +802,12 @@ function printPreflightHuman(data) {
|
|
|
797
802
|
}
|
|
798
803
|
async function newerCliCommandHint(baseUrl, command) {
|
|
799
804
|
if (!command.trim()) return null;
|
|
800
|
-
const { response, error } = await
|
|
805
|
+
const { response, error } = await _chunkMPYM6TUOjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
801
806
|
if (error || !response) return null;
|
|
802
807
|
const introduced = response.command_introduced_in;
|
|
803
808
|
if (introduced) {
|
|
804
809
|
return [
|
|
805
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
810
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkM6XIKHBSjs.SDK_VERSION}.`,
|
|
806
811
|
` ${introduced.reason}`,
|
|
807
812
|
` Update with: ${response.update_command}`,
|
|
808
813
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -811,32 +816,33 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
811
816
|
if (!response.update_required) return null;
|
|
812
817
|
return [
|
|
813
818
|
response.message,
|
|
814
|
-
` Installed: ${
|
|
819
|
+
` Installed: ${_chunkM6XIKHBSjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
815
820
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
816
821
|
].join("\n");
|
|
817
822
|
}
|
|
818
823
|
async function runMain(ensureTransport, onAction, suppressOutputReport) {
|
|
819
824
|
const mainStartedAt = Date.now();
|
|
820
|
-
|
|
825
|
+
_chunkZD673XALjs.installJsonStderrGuard.call(void 0, );
|
|
821
826
|
let rootHelpStatus = "";
|
|
827
|
+
let concurrentRunsHelpStatus = "";
|
|
822
828
|
let commandFailed = false;
|
|
823
829
|
const deferredMaintenance = { inlinePlay: null };
|
|
824
|
-
|
|
830
|
+
_chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
|
|
825
831
|
phase: "cli.main_start",
|
|
826
832
|
argv: process.argv.slice(2)
|
|
827
833
|
});
|
|
828
834
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
829
|
-
const progress = printStartupPhase ?
|
|
835
|
+
const progress = printStartupPhase ? _chunk6TZEDCN7js.createCliProgress.call(void 0, true) : null;
|
|
830
836
|
if (printStartupPhase) {
|
|
831
837
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
832
838
|
}
|
|
833
839
|
const program = new (0, _commander.Command)();
|
|
834
840
|
program.name("deepline").description(
|
|
835
841
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
836
|
-
).version(
|
|
842
|
+
).version(_chunkM6XIKHBSjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
837
843
|
"--maintenance <policy>",
|
|
838
844
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
839
|
-
|
|
845
|
+
_chunk2TAGAPLLjs.parseCliMaintenancePolicy,
|
|
840
846
|
"configured"
|
|
841
847
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
842
848
|
"beforeAll",
|
|
@@ -885,9 +891,10 @@ Exit codes:
|
|
|
885
891
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
886
892
|
`
|
|
887
893
|
).addHelpText("afterAll", ({ command }) => {
|
|
888
|
-
const key =
|
|
894
|
+
const key = _chunkV4EYJKGJjs.commandDocKey.call(void 0, command);
|
|
889
895
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
890
|
-
|
|
896
|
+
const explanation = _chunkV4EYJKGJjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
897
|
+
return detail !== "quiet" && concurrentRunsHelpStatus ? `${explanation}${concurrentRunsHelpStatus}` : explanation;
|
|
891
898
|
});
|
|
892
899
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
893
900
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
@@ -895,25 +902,25 @@ Exit codes:
|
|
|
895
902
|
path: compatibilityCommand,
|
|
896
903
|
args: actionCommand.processedArgs
|
|
897
904
|
});
|
|
898
|
-
const maintenance =
|
|
905
|
+
const maintenance = _chunk2TAGAPLLjs.resolveCliMaintenancePolicy.call(void 0,
|
|
899
906
|
actionCommand.optsWithGlobals()
|
|
900
907
|
);
|
|
901
908
|
if (actionCommand.name() !== "version") {
|
|
902
909
|
await ensureTransport();
|
|
903
910
|
}
|
|
904
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
911
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkMPYM6TUOjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || compatibilityCommand === "settings autoupdate" || compatibilityCommand.startsWith("settings autoupdate ") || compatibilityCommand === "settings skills-sync" || isDeprecatedCommandInvocation() || compatibilityCommand === "settings feedback" || compatibilityCommand.startsWith("settings feedback ") || ["feedback send", "sessions send", "session send"].includes(
|
|
905
912
|
compatibilityCommand
|
|
906
|
-
) &&
|
|
913
|
+
) && _chunkCY5LW6DWjs.feedbackSendRestriction.call(void 0, actionCommand.optsWithGlobals().requested)) {
|
|
907
914
|
return;
|
|
908
915
|
}
|
|
909
916
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
910
917
|
if (isToolExecuteCommand) {
|
|
911
|
-
|
|
918
|
+
_chunkWIV3E6Y7js.beginToolExecuteCommand.call(void 0, );
|
|
912
919
|
}
|
|
913
920
|
if (isToolExecuteCommand) {
|
|
914
|
-
const baseUrl =
|
|
915
|
-
if (maintenance !== "off")
|
|
916
|
-
|
|
921
|
+
const baseUrl = _chunkFOCNY4GVjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
922
|
+
if (maintenance !== "off") _chunkMPYM6TUOjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
923
|
+
_chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
|
|
917
924
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
918
925
|
baseUrl,
|
|
919
926
|
command: compatibilityCommand
|
|
@@ -921,9 +928,9 @@ Exit codes:
|
|
|
921
928
|
return;
|
|
922
929
|
}
|
|
923
930
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
924
|
-
if (!playDryRun &&
|
|
931
|
+
if (!playDryRun && _chunkUXXFCOE3js.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
925
932
|
if (maintenance !== "off") {
|
|
926
|
-
const baseUrl =
|
|
933
|
+
const baseUrl = _chunkFOCNY4GVjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
927
934
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
928
935
|
baseUrl,
|
|
929
936
|
command: actionCommand,
|
|
@@ -932,27 +939,27 @@ Exit codes:
|
|
|
932
939
|
}
|
|
933
940
|
return;
|
|
934
941
|
}
|
|
935
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
942
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkWIV3E6Y7js.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
936
943
|
if (printStartupPhase) {
|
|
937
944
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
938
945
|
}
|
|
939
946
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
940
|
-
const baseUrl =
|
|
941
|
-
if (maintenance !== "off")
|
|
947
|
+
const baseUrl = _chunkFOCNY4GVjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
948
|
+
if (maintenance !== "off") _chunkMPYM6TUOjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
942
949
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
943
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
944
|
-
const trusted = isToolExecuteCommand ? null :
|
|
950
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkFOCNY4GVjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
951
|
+
const trusted = isToolExecuteCommand ? null : _chunkMPYM6TUOjs.readTrustedCleanCompatibility.call(void 0,
|
|
945
952
|
baseUrl,
|
|
946
953
|
compatibilityCommand,
|
|
947
954
|
skillsVersion
|
|
948
955
|
);
|
|
949
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
956
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkMPYM6TUOjs.readFreshCleanCompatibility.call(void 0,
|
|
950
957
|
baseUrl,
|
|
951
958
|
compatibilityCommand,
|
|
952
959
|
skillsVersion
|
|
953
960
|
) !== null;
|
|
954
961
|
if (trusted) {
|
|
955
|
-
|
|
962
|
+
_chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
|
|
956
963
|
phase: "cli.sdk_compatibility",
|
|
957
964
|
ms: 0,
|
|
958
965
|
ok: true,
|
|
@@ -962,7 +969,7 @@ Exit codes:
|
|
|
962
969
|
source: "trusted_cache"
|
|
963
970
|
});
|
|
964
971
|
}
|
|
965
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
972
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
|
|
966
973
|
"cli.sdk_compatibility",
|
|
967
974
|
{
|
|
968
975
|
baseUrl,
|
|
@@ -970,12 +977,12 @@ Exit codes:
|
|
|
970
977
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
971
978
|
fastDeadline
|
|
972
979
|
},
|
|
973
|
-
() =>
|
|
980
|
+
() => _chunkMPYM6TUOjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
974
981
|
command: compatibilityCommand,
|
|
975
982
|
skillsVersion,
|
|
976
983
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
977
|
-
catalog:
|
|
978
|
-
...fastDeadline ? { timeoutMs:
|
|
984
|
+
catalog: _chunkWIV3E6Y7js.compatibilityCatalog.call(void 0, actionCommand),
|
|
985
|
+
...fastDeadline ? { timeoutMs: _chunkMPYM6TUOjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
979
986
|
})
|
|
980
987
|
);
|
|
981
988
|
if (compatibility.error) {
|
|
@@ -986,7 +993,7 @@ Exit codes:
|
|
|
986
993
|
response: null
|
|
987
994
|
};
|
|
988
995
|
}
|
|
989
|
-
const relaunched = await
|
|
996
|
+
const relaunched = await _chunkWIV3E6Y7js.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
990
997
|
compatibility.response,
|
|
991
998
|
baseUrl,
|
|
992
999
|
maintenance
|
|
@@ -1000,14 +1007,14 @@ Exit codes:
|
|
|
1000
1007
|
};
|
|
1001
1008
|
}
|
|
1002
1009
|
const policy = compatibility.response;
|
|
1003
|
-
const jsonOutput =
|
|
1004
|
-
|
|
1010
|
+
const jsonOutput = _chunkZD673XALjs.isJsonOutputMode.call(void 0, );
|
|
1011
|
+
_chunkMPYM6TUOjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1005
1012
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1006
|
-
|
|
1013
|
+
_chunkWIV3E6Y7js.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkMPYM6TUOjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1007
1014
|
});
|
|
1008
1015
|
const advisory = compatibility.response;
|
|
1009
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1010
|
-
|
|
1016
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkMPYM6TUOjs.isCiEnvironment.call(void 0, ) && !_chunkWIV3E6Y7js.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1017
|
+
_chunkZD673XALjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1011
1018
|
}
|
|
1012
1019
|
return {
|
|
1013
1020
|
shouldContinue: true,
|
|
@@ -1024,10 +1031,10 @@ Exit codes:
|
|
|
1024
1031
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1025
1032
|
await runStartupStage(
|
|
1026
1033
|
"agent skills sync",
|
|
1027
|
-
() =>
|
|
1034
|
+
() => _chunk2TAGAPLLjs.traceCliSpan.call(void 0,
|
|
1028
1035
|
"cli.sdk_skills_sync",
|
|
1029
1036
|
{ baseUrl: startup.baseUrl },
|
|
1030
|
-
() =>
|
|
1037
|
+
() => _chunkMPYM6TUOjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1031
1038
|
update: skillsUpdate,
|
|
1032
1039
|
mode: "detached"
|
|
1033
1040
|
})
|
|
@@ -1041,16 +1048,16 @@ Exit codes:
|
|
|
1041
1048
|
);
|
|
1042
1049
|
const carriesFeedback = requestedCommand === "feedback" || requestedCommand === "session" || requestedCommand === "sessions";
|
|
1043
1050
|
if (carriesFeedback) suppressOutputReport();
|
|
1044
|
-
const commandRegistrationStartedAt =
|
|
1051
|
+
const commandRegistrationStartedAt = _chunk2TAGAPLLjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1045
1052
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1046
1053
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1047
|
-
|
|
1054
|
+
_chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
|
|
1048
1055
|
phase: "cli.command_registration",
|
|
1049
1056
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1050
1057
|
});
|
|
1051
1058
|
}
|
|
1052
1059
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1053
|
-
if (
|
|
1060
|
+
if (_chunkZD673XALjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1054
1061
|
preflight.addHelpText(
|
|
1055
1062
|
"after",
|
|
1056
1063
|
`
|
|
@@ -1066,8 +1073,8 @@ Examples:
|
|
|
1066
1073
|
`
|
|
1067
1074
|
).action(async (options) => {
|
|
1068
1075
|
const data = await runPreflightCheck();
|
|
1069
|
-
if (
|
|
1070
|
-
|
|
1076
|
+
if (_chunkZD673XALjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1077
|
+
_chunkZD673XALjs.printJson.call(void 0, data);
|
|
1071
1078
|
} else {
|
|
1072
1079
|
printPreflightHuman(data);
|
|
1073
1080
|
}
|
|
@@ -1092,7 +1099,7 @@ Examples:
|
|
|
1092
1099
|
).action(async (options) => {
|
|
1093
1100
|
if (options.playRunner) {
|
|
1094
1101
|
const data = await runPlayRunnerHealthCheck();
|
|
1095
|
-
|
|
1102
|
+
_chunkZD673XALjs.printCommandEnvelope.call(void 0, data, {
|
|
1096
1103
|
json: options.json,
|
|
1097
1104
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1098
1105
|
`
|
|
@@ -1100,15 +1107,15 @@ Examples:
|
|
|
1100
1107
|
return;
|
|
1101
1108
|
}
|
|
1102
1109
|
try {
|
|
1103
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1104
|
-
const baseUrl =
|
|
1110
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-V76O674K.js")));
|
|
1111
|
+
const baseUrl = _chunkFOCNY4GVjs.resolveBaseUrlOnly.call(void 0, );
|
|
1105
1112
|
const [{ status, data }, banner] = await Promise.all([
|
|
1106
1113
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1107
1114
|
readStatusBanner(baseUrl)
|
|
1108
1115
|
]);
|
|
1109
1116
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1110
1117
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1111
|
-
|
|
1118
|
+
_chunkZD673XALjs.printCommandEnvelope.call(void 0,
|
|
1112
1119
|
{ ...data, status_banner: banner },
|
|
1113
1120
|
{
|
|
1114
1121
|
json: options.json,
|
|
@@ -1136,16 +1143,16 @@ Examples:
|
|
|
1136
1143
|
`
|
|
1137
1144
|
).action((options) => {
|
|
1138
1145
|
if (options.json) {
|
|
1139
|
-
|
|
1146
|
+
_chunkZD673XALjs.printCompactJson.call(void 0, { version: _chunkM6XIKHBSjs.SDK_VERSION });
|
|
1140
1147
|
return;
|
|
1141
1148
|
}
|
|
1142
|
-
process.stdout.write(`deepline ${
|
|
1149
|
+
process.stdout.write(`deepline ${_chunkM6XIKHBSjs.SDK_VERSION}
|
|
1143
1150
|
`);
|
|
1144
1151
|
});
|
|
1145
1152
|
if (process.argv.slice(2).length === 0) {
|
|
1146
1153
|
program.outputHelp({ error: true });
|
|
1147
1154
|
console.error("\nerror: missing command (see usage above)");
|
|
1148
|
-
|
|
1155
|
+
_chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
|
|
1149
1156
|
phase: "cli.main_total",
|
|
1150
1157
|
ms: Date.now() - mainStartedAt,
|
|
1151
1158
|
ok: false,
|
|
@@ -1157,16 +1164,16 @@ Examples:
|
|
|
1157
1164
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1158
1165
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1159
1166
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1160
|
-
if (!
|
|
1161
|
-
const baseUrl =
|
|
1167
|
+
if (!_chunkZD673XALjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1168
|
+
const baseUrl = _chunkFOCNY4GVjs.autoDetectBaseUrl.call(void 0, );
|
|
1162
1169
|
await ensureTransport();
|
|
1163
1170
|
const versionHint = await newerCliCommandHint(
|
|
1164
1171
|
baseUrl,
|
|
1165
1172
|
requestedTopLevelCommand
|
|
1166
1173
|
);
|
|
1167
|
-
if (
|
|
1174
|
+
if (_chunkZD673XALjs.isJsonOutputMode.call(void 0, )) {
|
|
1168
1175
|
if (versionHint) {
|
|
1169
|
-
|
|
1176
|
+
_chunkZD673XALjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1170
1177
|
}
|
|
1171
1178
|
printUsageErrorJson(
|
|
1172
1179
|
"commander.unknownCommand",
|
|
@@ -1188,19 +1195,26 @@ Examples:
|
|
|
1188
1195
|
const helpArgs = process.argv.slice(2);
|
|
1189
1196
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1190
1197
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1191
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1192
|
-
rootHelpStatus = `Version: ${
|
|
1198
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-V76O674K.js")));
|
|
1199
|
+
rootHelpStatus = `Version: ${_chunkM6XIKHBSjs.SDK_VERSION}
|
|
1193
1200
|
${await authStatusLine()}
|
|
1194
1201
|
`;
|
|
1195
1202
|
}
|
|
1203
|
+
if ((helpArgs.includes("--help") || helpArgs.includes("-h")) && helpPositionals.length >= 2) {
|
|
1204
|
+
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await Promise.resolve().then(() => _interopRequireWildcard(require("./concurrent-runs-help-MFEPUP6Y.js")));
|
|
1205
|
+
if (CONCURRENT_RUNS_HELP_COMMANDS.has(helpPositionals.slice(0, 2).join(" "))) {
|
|
1206
|
+
await ensureTransport();
|
|
1207
|
+
concurrentRunsHelpStatus = await read();
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1196
1210
|
await program.parseAsync(process.argv);
|
|
1197
|
-
|
|
1211
|
+
_chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
|
|
1198
1212
|
phase: "cli.main_total",
|
|
1199
1213
|
ms: Date.now() - mainStartedAt,
|
|
1200
1214
|
ok: true
|
|
1201
1215
|
});
|
|
1202
1216
|
if (!carriesFeedback) {
|
|
1203
|
-
await
|
|
1217
|
+
await _chunkZD673XALjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1204
1218
|
argv: process.argv.slice(2),
|
|
1205
1219
|
startedAtMs: mainStartedAt,
|
|
1206
1220
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1209,14 +1223,14 @@ ${await authStatusLine()}
|
|
|
1209
1223
|
} catch (error) {
|
|
1210
1224
|
commandFailed = true;
|
|
1211
1225
|
const commanderError = asCommanderError(error);
|
|
1212
|
-
|
|
1226
|
+
_chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
|
|
1213
1227
|
phase: "cli.main_total",
|
|
1214
1228
|
ms: Date.now() - mainStartedAt,
|
|
1215
1229
|
ok: false,
|
|
1216
1230
|
error: error instanceof Error ? error.message : String(error)
|
|
1217
1231
|
});
|
|
1218
1232
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1219
|
-
const wantsJson =
|
|
1233
|
+
const wantsJson = _chunkZD673XALjs.isJsonOutputMode.call(void 0, );
|
|
1220
1234
|
if (commanderError) {
|
|
1221
1235
|
const grammarError = [
|
|
1222
1236
|
"commander.unknownCommand",
|
|
@@ -1227,12 +1241,12 @@ ${await authStatusLine()}
|
|
|
1227
1241
|
if (grammarError) {
|
|
1228
1242
|
await ensureTransport();
|
|
1229
1243
|
const versionHint = await newerCliCommandHint(
|
|
1230
|
-
|
|
1244
|
+
_chunkFOCNY4GVjs.autoDetectBaseUrl.call(void 0, ),
|
|
1231
1245
|
commandPath
|
|
1232
1246
|
);
|
|
1233
1247
|
if (wantsJson) {
|
|
1234
1248
|
if (versionHint) {
|
|
1235
|
-
|
|
1249
|
+
_chunkZD673XALjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1236
1250
|
}
|
|
1237
1251
|
} else {
|
|
1238
1252
|
if (versionHint) console.error(versionHint);
|
|
@@ -1252,43 +1266,43 @@ ${await authStatusLine()}
|
|
|
1252
1266
|
return;
|
|
1253
1267
|
} else if (wantsJson) {
|
|
1254
1268
|
if (error instanceof _chunk2GJZLIKWjs.AuthError) {
|
|
1255
|
-
|
|
1269
|
+
_chunkZD673XALjs.addJsonNotice.call(void 0, {
|
|
1256
1270
|
code: "auth_required",
|
|
1257
1271
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1258
1272
|
});
|
|
1259
1273
|
}
|
|
1260
|
-
const providerConcurrency =
|
|
1274
|
+
const providerConcurrency = _chunkZD673XALjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1261
1275
|
if (providerConcurrency) {
|
|
1262
|
-
|
|
1276
|
+
_chunkZD673XALjs.addJsonNotice.call(void 0, {
|
|
1263
1277
|
code: "provider_concurrency",
|
|
1264
1278
|
message: providerConcurrency
|
|
1265
1279
|
});
|
|
1266
1280
|
}
|
|
1267
|
-
const payload =
|
|
1268
|
-
|
|
1281
|
+
const payload = _chunkZD673XALjs.errorToJsonPayload.call(void 0, error);
|
|
1282
|
+
_chunkZD673XALjs.printJson.call(void 0, {
|
|
1269
1283
|
...payload,
|
|
1270
1284
|
// The envelope names the code the process exits with, so a caller
|
|
1271
1285
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1272
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1286
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkZD673XALjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1273
1287
|
...error instanceof _chunk2GJZLIKWjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1274
1288
|
});
|
|
1275
1289
|
} else if (error instanceof Error) {
|
|
1276
1290
|
console.error(`Error: ${error.message}`);
|
|
1277
|
-
const toolDiagnostic =
|
|
1291
|
+
const toolDiagnostic = _chunkZD673XALjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1278
1292
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1279
1293
|
if (error instanceof _chunk2GJZLIKWjs.AuthError) {
|
|
1280
1294
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1281
1295
|
}
|
|
1282
|
-
const providerConcurrency =
|
|
1296
|
+
const providerConcurrency = _chunkZD673XALjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1283
1297
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1284
1298
|
} else {
|
|
1285
1299
|
console.error(`Error: ${String(error)}`);
|
|
1286
1300
|
}
|
|
1287
1301
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1288
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1302
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkZD673XALjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1289
1303
|
process.exitCode = failureExitCode;
|
|
1290
1304
|
if (!carriesFeedback) {
|
|
1291
|
-
await
|
|
1305
|
+
await _chunkZD673XALjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1292
1306
|
argv: process.argv.slice(2),
|
|
1293
1307
|
startedAtMs: mainStartedAt,
|
|
1294
1308
|
exitCode: failureExitCode,
|
|
@@ -1296,13 +1310,13 @@ ${await authStatusLine()}
|
|
|
1296
1310
|
});
|
|
1297
1311
|
}
|
|
1298
1312
|
} finally {
|
|
1299
|
-
|
|
1313
|
+
_chunkWIV3E6Y7js.finishToolExecuteCommand.call(void 0, );
|
|
1300
1314
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1301
1315
|
deferredMaintenance.inlinePlay = null;
|
|
1302
1316
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1303
1317
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1304
1318
|
}
|
|
1305
|
-
await
|
|
1319
|
+
await _chunkWIV3E6Y7js.runDeferredAutoUpdate.call(void 0, );
|
|
1306
1320
|
}
|
|
1307
1321
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1308
1322
|
}
|
|
@@ -1310,7 +1324,7 @@ async function main() {
|
|
|
1310
1324
|
let disposeTransport;
|
|
1311
1325
|
const ensureTransport = async () => {
|
|
1312
1326
|
if (disposeTransport) return;
|
|
1313
|
-
const transportStartedAt =
|
|
1327
|
+
const transportStartedAt = _chunk2TAGAPLLjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1314
1328
|
const hasProxy = [
|
|
1315
1329
|
"HTTP_PROXY",
|
|
1316
1330
|
"http_proxy",
|
|
@@ -1322,7 +1336,7 @@ async function main() {
|
|
|
1322
1336
|
disposeTransport = configureCliTransport();
|
|
1323
1337
|
}
|
|
1324
1338
|
if (transportStartedAt !== void 0) {
|
|
1325
|
-
|
|
1339
|
+
_chunk2TAGAPLLjs.recordCliTrace.call(void 0, {
|
|
1326
1340
|
phase: "cli.transport_setup",
|
|
1327
1341
|
ms: performance.now() - transportStartedAt
|
|
1328
1342
|
});
|
|
@@ -1345,9 +1359,9 @@ async function main() {
|
|
|
1345
1359
|
skipOutputReport = true;
|
|
1346
1360
|
}
|
|
1347
1361
|
);
|
|
1348
|
-
const silentFailure =
|
|
1362
|
+
const silentFailure = _chunkZD673XALjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1349
1363
|
if (silentFailure) {
|
|
1350
|
-
|
|
1364
|
+
_chunkZD673XALjs.printJson.call(void 0, {
|
|
1351
1365
|
ok: false,
|
|
1352
1366
|
exitCode: Number(process.exitCode),
|
|
1353
1367
|
error: { code: "CLI_ERROR", message: silentFailure }
|