deepline 0.3.478 → 0.3.479
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 +11 -0
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +2 -1
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +57 -5
- package/dist/bundling-sources/shared_libs/product-notifications/slack-transport.ts +19 -0
- package/dist/cli/{auth-SA4DJCSO.mjs → auth-D7DYB57R.mjs} +5 -5
- package/dist/cli/auth-MZDFNRPG.js +41 -0
- package/dist/cli/{billing-462SAHWX.js → billing-DHGSNM6E.js} +79 -79
- package/dist/cli/{billing-Z4D35MV5.mjs → billing-DT4JT4QN.mjs} +6 -6
- package/dist/cli/{chunk-VE25VUTE.js → chunk-27GSBTWD.js} +53 -53
- package/dist/cli/{chunk-645RNF2Y.mjs → chunk-27PXHD2P.mjs} +1 -1
- package/dist/cli/{chunk-KBBZXWXF.js → chunk-33O2JGHE.js} +4 -4
- package/dist/cli/{chunk-QVZNUQAP.js → chunk-3GIM7XRH.js} +2 -2
- package/dist/cli/{chunk-BLAZVZVD.mjs → chunk-3PHOAUU4.mjs} +3 -3
- package/dist/cli/{chunk-TW3TTKW5.js → chunk-3SGA53DX.js} +3 -3
- package/dist/cli/{chunk-JH775FF6.mjs → chunk-6C3QY5JS.mjs} +1 -1
- package/dist/cli/{chunk-ABBP5ZCI.mjs → chunk-6QIXWFPO.mjs} +3 -3
- package/dist/cli/{chunk-AYW242XF.js → chunk-AFHFZU5V.js} +37 -37
- package/dist/cli/{chunk-SCHE5QRN.js → chunk-AKVNUNL7.js} +3 -3
- package/dist/cli/{chunk-TQWI7LJX.js → chunk-CK2Q6AWR.js} +26 -26
- package/dist/cli/{chunk-PHBOI24Y.mjs → chunk-D6MLXRMQ.mjs} +10 -10
- package/dist/cli/{chunk-HMUBLAT4.js → chunk-EMVWC5LP.js} +5 -5
- package/dist/cli/{chunk-XOORR6P3.js → chunk-FBEXJVQL.js} +93 -93
- package/dist/cli/{chunk-S7UEKKOX.mjs → chunk-FKEZ5DIJ.mjs} +1 -1
- package/dist/cli/{chunk-D2LKEQKI.js → chunk-FV7WGK5X.js} +5 -5
- package/dist/cli/{chunk-SXY4DOVA.js → chunk-G6V34EQ5.js} +16 -16
- package/dist/cli/{chunk-ZSU3C4ST.mjs → chunk-GICSDK72.mjs} +2 -2
- package/dist/cli/{chunk-3V7INABZ.mjs → chunk-GONL4EFT.mjs} +2 -2
- package/dist/cli/{chunk-S3BKOCVB.js → chunk-GQCH6Y7W.js} +1 -1
- package/dist/cli/{chunk-2MSKG4ER.js → chunk-GSULE54L.js} +6 -6
- package/dist/cli/{chunk-4RJRGQ5Y.mjs → chunk-GZ43YXHT.mjs} +2 -2
- package/dist/cli/{chunk-UXQVSDFP.js → chunk-J5VDE42G.js} +3 -3
- package/dist/cli/{chunk-QB3Q73LP.mjs → chunk-JFGOMQW6.mjs} +2 -2
- package/dist/cli/{chunk-PPHHPAQV.mjs → chunk-JKUFOP7M.mjs} +1 -1
- package/dist/cli/{chunk-A5LPDB6N.js → chunk-JMCTNS6S.js} +6 -6
- package/dist/cli/{chunk-3LTLQAU4.mjs → chunk-JNFNNJ75.mjs} +4 -4
- package/dist/cli/{chunk-4C3TMIF3.mjs → chunk-K5RRY7DJ.mjs} +4 -4
- package/dist/cli/{chunk-4RV7U3RP.js → chunk-LXYDN5FE.js} +7 -7
- package/dist/cli/{chunk-XFY3JOP2.js → chunk-N4M6CO5H.js} +9 -9
- package/dist/cli/{chunk-F2SJYUBW.mjs → chunk-N7E25EU2.mjs} +5 -5
- package/dist/cli/{chunk-75DAGCEX.mjs → chunk-O5BUFQ2P.mjs} +1 -1
- package/dist/cli/{chunk-IWYWZXCA.js → chunk-OVFCPV24.js} +53 -53
- package/dist/cli/{chunk-2JS5DNVX.mjs → chunk-PUOKABQF.mjs} +5 -5
- package/dist/cli/{chunk-2FTUPGTN.mjs → chunk-RJVUILW4.mjs} +2 -2
- package/dist/cli/{chunk-TLF3KGWG.mjs → chunk-TZCHXF4R.mjs} +2 -2
- package/dist/cli/{chunk-F44O4PEP.mjs → chunk-UOYA35OT.mjs} +1 -1
- package/dist/cli/{chunk-6EEMW7YP.js → chunk-VKBLXJCK.js} +8 -8
- package/dist/cli/{chunk-PZHRNSMU.js → chunk-VRZXGJXH.js} +21 -21
- package/dist/cli/{chunk-V7I65ME7.js → chunk-W4HIOBQQ.js} +2 -2
- package/dist/cli/{chunk-AQYSZYNE.js → chunk-W6N2S5N7.js} +8 -8
- package/dist/cli/{chunk-PLJV6SX4.mjs → chunk-XBYW5EHY.mjs} +1 -1
- package/dist/cli/{chunk-M5USVQ33.mjs → chunk-XDFARN7U.mjs} +1 -1
- package/dist/cli/{chunk-J3ZYRN5L.js → chunk-Y2MVDYV6.js} +10 -10
- package/dist/cli/{chunk-7HTWT3Z4.mjs → chunk-YC2QBF2W.mjs} +2 -2
- package/dist/cli/{chunk-N573OK4W.mjs → chunk-ZJRVHQSZ.mjs} +4 -4
- package/dist/cli/{csv-LAYTDYIF.js → csv-DQWOZ2BL.js} +13 -13
- package/dist/cli/{csv-3SNWBO5F.mjs → csv-JXFOD7DJ.mjs} +4 -4
- package/dist/cli/{db-72JKGQSK.mjs → db-NOGMZAQE.mjs} +6 -6
- package/dist/cli/{db-OOUOSURL.js → db-Q2OAAXRX.js} +27 -27
- package/dist/cli/describe-THHHNUEA.js +48 -0
- package/dist/cli/{describe-KDPNOEUJ.mjs → describe-VKZTZLX6.mjs} +17 -17
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-RJNMGJEE.js → executions-B3GDZ4GQ.js} +8 -8
- package/dist/cli/{executions-O6JS3UKX.mjs → executions-XU3JMNI3.mjs} +6 -6
- package/dist/cli/{feedback-FXB6NV3Y.js → feedback-5IW3ZKRP.js} +8 -8
- package/dist/cli/{feedback-T3JH3CWC.mjs → feedback-R5UQXINE.mjs} +4 -4
- package/dist/cli/{git-6KAQSH5J.mjs → git-7B4H7VEL.mjs} +5 -5
- package/dist/cli/git-BX27JAW4.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-PAOGRKUK.js → legacy-noops-AVT6T5QI.js} +8 -8
- package/dist/cli/{legacy-noops-7HDGEGTK.mjs → legacy-noops-KY7JAALE.mjs} +5 -5
- package/dist/cli/{monitors-LE2AYK3Z.mjs → monitors-G7L7AFXR.mjs} +7 -7
- package/dist/cli/{monitors-KQFI7TVJ.js → monitors-GZB6CWK2.js} +91 -91
- package/dist/cli/{org-Z4DMJ72I.mjs → org-QDUBOQTH.mjs} +6 -6
- package/dist/cli/{org-J6XFHDJE.js → org-ZHHKAPCE.js} +72 -72
- package/dist/cli/{pages-FIXBZQJG.js → pages-5P3SPMN5.js} +17 -17
- package/dist/cli/{pages-5LYS6Y4I.mjs → pages-Q4WGQCST.mjs} +6 -6
- package/dist/cli/{play-D7WPXADH.js → play-IRLKESZB.js} +306 -306
- package/dist/cli/{play-GILXXIN7.mjs → play-WRSHD4RE.mjs} +17 -17
- package/dist/cli/{providers-OQWL4Q4W.mjs → providers-7CQUHS57.mjs} +6 -6
- package/dist/cli/{providers-KN7YACT6.js → providers-LKEYLN6D.js} +9 -9
- package/dist/cli/{quickstart-2LRIORFM.mjs → quickstart-I6NYGMEE.mjs} +4 -4
- package/dist/cli/{quickstart-M2OBP3W3.js → quickstart-KS45M5SR.js} +6 -6
- package/dist/cli/{run-GYRBKQZT.mjs → run-AZETCL7R.mjs} +22 -22
- package/dist/cli/{run-6YZZO7VM.js → run-BLMOBNAN.js} +36 -36
- package/dist/cli/{search-VUPK6BNU.mjs → search-EEKEP67Y.mjs} +7 -7
- package/dist/cli/search-PEQXXY2B.js +32 -0
- package/dist/cli/{secrets-ULRGU7NM.mjs → secrets-HAULG2EW.mjs} +6 -6
- package/dist/cli/{secrets-RE3UMZB7.js → secrets-M6NU3TD2.js} +15 -15
- package/dist/cli/{sessions-2ZZVJ3P2.mjs → sessions-5MB4XKOK.mjs} +5 -5
- package/dist/cli/{sessions-T4UMHNDW.js → sessions-DSR5AHIA.js} +6 -6
- package/dist/cli/{settings-BRV6AYFM.js → settings-6US327NQ.js} +78 -78
- package/dist/cli/{settings-PDY4TJU6.mjs → settings-JUQP4HYQ.mjs} +11 -11
- package/dist/cli/{setup-JONYJYBK.js → setup-5ZRSEQUD.js} +44 -44
- package/dist/cli/{setup-CXL6C5Z5.mjs → setup-JRH4UC47.mjs} +9 -9
- package/dist/cli/{skills-TOMVQD5O.mjs → skills-HFOZ5WDH.mjs} +7 -7
- package/dist/cli/skills-P67KCVDR.js +33 -0
- package/dist/cli/{tools-B2LJK4MM.mjs → tools-CJEBZNPB.mjs} +16 -16
- package/dist/cli/tools-PDBEAI22.js +55 -0
- package/dist/cli/update-G6DI3BQW.js +33 -0
- package/dist/cli/{update-CD6T2REC.mjs → update-VQJEPAAK.mjs} +9 -9
- package/dist/cli/{workflow-ZAOBP6I7.mjs → workflow-EYWE3T75.mjs} +7 -7
- package/dist/cli/{workflow-PZML43E2.js → workflow-NKPDRZOP.js} +17 -17
- package/dist/{client-B1s1yJdT.d.mts → client-B9N1bcGc.d.mts} +1 -1
- package/dist/{client-DqUseRzd.d.ts → client-Btw075Hq.d.ts} +1 -1
- package/dist/{client-core-Bd7tP9Uz.d.ts → client-core-DvGWlwtX.d.ts} +1 -1
- package/dist/{client-core-BijQEQ70.d.mts → client-core-TulbIeRB.d.mts} +1 -1
- package/dist/{compiler-manifest-B1m5tRzz.d.ts → compiler-manifest-gkO9ZkVg.d.mts} +14 -0
- package/dist/{compiler-manifest-B1m5tRzz.d.mts → compiler-manifest-gkO9ZkVg.d.ts} +14 -0
- package/dist/{errors-3g71OMXy.d.ts → errors-Cc92LKH-.d.ts} +1 -1
- package/dist/{errors-QiC6am-q.d.mts → errors-CeCCOKSA.d.mts} +1 -1
- package/dist/{index-CIBiwzhK.d.ts → index-DJQKdV76.d.ts} +1 -1
- package/dist/{index-Biz5toO4.d.mts → index-DsqWJL3Q.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +106 -106
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-U5SNVC5F.js +0 -41
- package/dist/cli/describe-7HYV44MO.js +0 -48
- package/dist/cli/git-5LTKPXGN.js +0 -25
- package/dist/cli/search-OVKWA4AV.js +0 -32
- package/dist/cli/skills-UK5AK35I.js +0 -33
- package/dist/cli/tools-HH6E5G7J.js +0 -55
- package/dist/cli/update-EGXT3EIJ.js +0 -33
package/dist/cli/index.js
CHANGED
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
10
|
+
var _chunkVRZXGJXHjs = require('./chunk-VRZXGJXH.js');
|
|
11
|
+
require('./chunk-G6V34EQ5.js');
|
|
12
|
+
require('./chunk-3GIM7XRH.js');
|
|
13
|
+
require('./chunk-AFHFZU5V.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkJMCTNS6Sjs = require('./chunk-JMCTNS6S.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkW4HIOBQQjs = require('./chunk-W4HIOBQQ.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -38,10 +38,10 @@ var _chunkV7I65ME7js = require('./chunk-V7I65ME7.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkOVFCPV24js = require('./chunk-OVFCPV24.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkAKVNUNL7js = require('./chunk-AKVNUNL7.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
@@ -59,7 +59,7 @@ var _chunkOKAZHDYNjs = require('./chunk-OKAZHDYN.js');
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
-
var
|
|
62
|
+
var _chunkLXYDN5FEjs = require('./chunk-LXYDN5FE.js');
|
|
63
63
|
|
|
64
64
|
|
|
65
65
|
|
|
@@ -67,18 +67,18 @@ var _chunk4RV7U3RPjs = require('./chunk-4RV7U3RP.js');
|
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
|
|
70
|
-
var
|
|
70
|
+
var _chunk3SGA53DXjs = require('./chunk-3SGA53DX.js');
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
|
|
74
74
|
|
|
75
|
-
var
|
|
75
|
+
var _chunk33O2JGHEjs = require('./chunk-33O2JGHE.js');
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
79
79
|
require('./chunk-XNYIZMNQ.js');
|
|
80
80
|
require('./chunk-DIAWYWT5.js');
|
|
81
|
-
require('./chunk-
|
|
81
|
+
require('./chunk-GQCH6Y7W.js');
|
|
82
82
|
require('./chunk-OG64RBAC.js');
|
|
83
83
|
require('./chunk-COGTRVWW.js');
|
|
84
84
|
|
|
@@ -143,56 +143,56 @@ var _os = require('os');
|
|
|
143
143
|
var COMMAND_GROUPS = [
|
|
144
144
|
{
|
|
145
145
|
names: ["auth"],
|
|
146
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
146
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MZDFNRPG.js")))).registerAuthCommands
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
names: ["providers"],
|
|
150
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
150
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-LKEYLN6D.js")))).registerProviderCommands
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
names: ["search"],
|
|
154
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
154
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-PEQXXY2B.js")))).registerSearchCommand
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
names: ["describe"],
|
|
158
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
158
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-THHHNUEA.js")))).registerDescribeCommand
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
names: ["run"],
|
|
162
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
162
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-BLMOBNAN.js")))).registerRunCommand
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
165
|
names: ["tools"],
|
|
166
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
166
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-PDBEAI22.js")))).registerToolsCommands
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
names: ["executions"],
|
|
170
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
170
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-B3GDZ4GQ.js")))).registerExecutionsCommands
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
names: ["plays", "runs"],
|
|
174
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
174
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-IRLKESZB.js")))).registerPlayCommands
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
names: ["sessions"],
|
|
178
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
178
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-DSR5AHIA.js")))).registerSessionsCommands
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
names: ["workflows"],
|
|
182
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
182
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-NKPDRZOP.js")))).registerWorkflowCommands
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
names: ["pages"],
|
|
186
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-
|
|
186
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-5P3SPMN5.js")))).registerPagesCommands
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
names: ["secrets"],
|
|
190
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
190
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-M6NU3TD2.js")))).registerSecretsCommands
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
names: ["settings", "notifications"],
|
|
194
194
|
load: async () => {
|
|
195
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
195
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-6US327NQ.js")));
|
|
196
196
|
return (p) => {
|
|
197
197
|
commands.registerSettingsCommands(p);
|
|
198
198
|
commands.registerNotificationCommands(p);
|
|
@@ -201,51 +201,51 @@ var COMMAND_GROUPS = [
|
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
names: ["billing"],
|
|
204
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
204
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-DHGSNM6E.js")))).registerBillingCommands
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
207
|
names: ["monitors"],
|
|
208
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
208
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-GZB6CWK2.js")))).registerMonitorsCommands
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
211
|
names: ["org"],
|
|
212
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
212
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-ZHHKAPCE.js")))).registerOrgCommands
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
215
|
names: ["git", "projects", "deployments"],
|
|
216
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
216
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-BX27JAW4.js")))).registerGitCommands
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
219
|
names: ["csv"],
|
|
220
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
220
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-DQWOZ2BL.js")))).registerCsvCommands
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
names: ["db"],
|
|
224
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
224
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-Q2OAAXRX.js")))).registerDbCommands
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
227
|
names: ["feedback"],
|
|
228
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
228
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-5IW3ZKRP.js")))).registerFeedbackCommands
|
|
229
229
|
},
|
|
230
230
|
{
|
|
231
231
|
names: ["enrich", "session", "backend"],
|
|
232
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
232
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-AVT6T5QI.js")))).registerDeprecatedCommands
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
names: ["update"],
|
|
236
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
236
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-G6DI3BQW.js")))).registerUpdateCommand
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
names: ["skills", "skills-auto-sync"],
|
|
240
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
240
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-P67KCVDR.js")))).registerSkillsCommand
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
names: ["setup", "doctor"],
|
|
244
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
244
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-5ZRSEQUD.js")))).registerSetupCommands
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
names: ["quickstart"],
|
|
248
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
248
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-KS45M5SR.js")))).registerQuickstartCommands
|
|
249
249
|
}
|
|
250
250
|
];
|
|
251
251
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -271,25 +271,25 @@ function registerDeeplineInlineCommands(program) {
|
|
|
271
271
|
function createDeferredPlayRunMaintenance(input) {
|
|
272
272
|
return async () => {
|
|
273
273
|
try {
|
|
274
|
-
const skillsVersion =
|
|
275
|
-
const compatibility = await
|
|
274
|
+
const skillsVersion = _chunk3SGA53DXjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
275
|
+
const compatibility = await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
276
276
|
"cli.sdk_compatibility_deferred",
|
|
277
277
|
{
|
|
278
278
|
baseUrl: input.baseUrl,
|
|
279
279
|
command: "plays run",
|
|
280
280
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
281
281
|
},
|
|
282
|
-
() =>
|
|
282
|
+
() => _chunkOVFCPV24js.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
283
283
|
command: "plays run",
|
|
284
284
|
skillsVersion,
|
|
285
285
|
persistCache: input.policy !== "off",
|
|
286
|
-
catalog:
|
|
286
|
+
catalog: _chunkVRZXGJXHjs.compatibilityCatalog.call(void 0, input.command)
|
|
287
287
|
})
|
|
288
288
|
);
|
|
289
289
|
if (compatibility.error || !compatibility.response) return;
|
|
290
290
|
const automaticUpdate = compatibility.response.auto_update;
|
|
291
291
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
292
|
-
await
|
|
292
|
+
await _chunkVRZXGJXHjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
293
293
|
compatibility.response,
|
|
294
294
|
input.baseUrl,
|
|
295
295
|
input.policy
|
|
@@ -299,7 +299,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
299
299
|
compatibility.response,
|
|
300
300
|
"skills"
|
|
301
301
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
302
|
-
await
|
|
302
|
+
await _chunkOVFCPV24js.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
303
303
|
update: skillsUpdate,
|
|
304
304
|
mode: "detached"
|
|
305
305
|
});
|
|
@@ -327,7 +327,7 @@ var MAX_SESSIONS = 20;
|
|
|
327
327
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
328
328
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
329
329
|
}
|
|
330
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
330
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunk33O2JGHEjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
331
331
|
const explicit = _chunkOKAZHDYNjs.helpDetailFromArgv.call(void 0, argv);
|
|
332
332
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
333
333
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
@@ -425,7 +425,7 @@ function shouldReport(stdout, stderr) {
|
|
|
425
425
|
}
|
|
426
426
|
function toolName(action) {
|
|
427
427
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
428
|
-
return typeof toolId === "string" ?
|
|
428
|
+
return typeof toolId === "string" ? _chunkOVFCPV24js.redactFailureText.call(void 0, toolId) : null;
|
|
429
429
|
}
|
|
430
430
|
function chunkText(chunk) {
|
|
431
431
|
if (typeof chunk === "string") return chunk;
|
|
@@ -456,14 +456,14 @@ function watch(stream) {
|
|
|
456
456
|
}
|
|
457
457
|
async function postCommandOutput(body) {
|
|
458
458
|
try {
|
|
459
|
-
const baseUrl =
|
|
460
|
-
const apiKey =
|
|
459
|
+
const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
460
|
+
const apiKey = _chunk3SGA53DXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
461
461
|
if (!apiKey) return;
|
|
462
|
-
const agentSessionId =
|
|
462
|
+
const agentSessionId = _chunk33O2JGHEjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
463
463
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
464
464
|
method: "POST",
|
|
465
465
|
headers: {
|
|
466
|
-
...
|
|
466
|
+
..._chunkOVFCPV24js.failureReportHeaders.call(void 0, apiKey),
|
|
467
467
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
468
468
|
},
|
|
469
469
|
body: JSON.stringify(body),
|
|
@@ -479,14 +479,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
479
479
|
const stdoutWatch = watch(streams.stdout);
|
|
480
480
|
const stderrWatch = watch(streams.stderr);
|
|
481
481
|
return async (finished) => {
|
|
482
|
-
if (
|
|
482
|
+
if (_chunkOVFCPV24js.isFailureReportingDisabled.call(void 0, )) return;
|
|
483
483
|
const [stdout, stderr] = await Promise.all([
|
|
484
484
|
stdoutWatch.settled(),
|
|
485
485
|
stderrWatch.settled()
|
|
486
486
|
]);
|
|
487
487
|
if (!shouldReport(stdout, stderr)) return;
|
|
488
488
|
await postCommandOutput({
|
|
489
|
-
command:
|
|
489
|
+
command: _chunkOVFCPV24js.sanitizeCommand.call(void 0, invocation.argv),
|
|
490
490
|
tool: toolName(finished.action),
|
|
491
491
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
492
492
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -517,7 +517,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
517
517
|
function printUsageErrorJson(code, message, commandPath) {
|
|
518
518
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
519
519
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
520
|
-
|
|
520
|
+
_chunkLXYDN5FEjs.printJson.call(void 0, {
|
|
521
521
|
ok: false,
|
|
522
522
|
error: {
|
|
523
523
|
code,
|
|
@@ -579,7 +579,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
579
579
|
);
|
|
580
580
|
}
|
|
581
581
|
async function runPlayRunnerHealthCheck() {
|
|
582
|
-
|
|
582
|
+
_chunk3SGA53DXjs.resolveConfig.call(void 0, );
|
|
583
583
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
584
584
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
585
585
|
try {
|
|
@@ -609,7 +609,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
609
609
|
});
|
|
610
610
|
let exitCode = 1;
|
|
611
611
|
try {
|
|
612
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
612
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-IRLKESZB.js")));
|
|
613
613
|
exitCode = await handlePlayRun([
|
|
614
614
|
file,
|
|
615
615
|
"--input",
|
|
@@ -649,7 +649,7 @@ function preflightErrorMessage(error) {
|
|
|
649
649
|
return error instanceof Error ? error.message : String(error);
|
|
650
650
|
}
|
|
651
651
|
async function runPreflightCheck() {
|
|
652
|
-
const baseUrl =
|
|
652
|
+
const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
653
653
|
const healthController = new AbortController();
|
|
654
654
|
const healthTimeout = setTimeout(
|
|
655
655
|
() => healthController.abort(),
|
|
@@ -666,14 +666,14 @@ async function runPreflightCheck() {
|
|
|
666
666
|
}).catch((error) => ({
|
|
667
667
|
status: "unreachable",
|
|
668
668
|
version: null,
|
|
669
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
669
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunk33O2JGHEjs.connectionFailureMessage.call(void 0,
|
|
670
670
|
baseUrl,
|
|
671
671
|
error instanceof Error ? error : new Error(String(error))
|
|
672
672
|
)
|
|
673
673
|
})).finally(() => clearTimeout(healthTimeout));
|
|
674
|
-
const apiKey =
|
|
675
|
-
const http = apiKey ? new (0,
|
|
676
|
-
|
|
674
|
+
const apiKey = _chunk3SGA53DXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
675
|
+
const http = apiKey ? new (0, _chunk3SGA53DXjs.HttpClient)(
|
|
676
|
+
_chunk3SGA53DXjs.resolveConfig.call(void 0, {
|
|
677
677
|
baseUrl,
|
|
678
678
|
apiKey,
|
|
679
679
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -718,7 +718,7 @@ async function runPreflightCheck() {
|
|
|
718
718
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
719
719
|
return {
|
|
720
720
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
721
|
-
cli_version:
|
|
721
|
+
cli_version: _chunk33O2JGHEjs.SDK_VERSION,
|
|
722
722
|
host: baseUrl,
|
|
723
723
|
health: {
|
|
724
724
|
status: healthResult.status,
|
|
@@ -745,7 +745,7 @@ async function runPreflightCheck() {
|
|
|
745
745
|
{
|
|
746
746
|
title: "preflight",
|
|
747
747
|
lines: [
|
|
748
|
-
`cli: ${
|
|
748
|
+
`cli: ${_chunk33O2JGHEjs.SDK_VERSION}`,
|
|
749
749
|
`host: ${baseUrl}`,
|
|
750
750
|
`health: ${healthResult.status}`,
|
|
751
751
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -772,12 +772,12 @@ function printPreflightHuman(data) {
|
|
|
772
772
|
}
|
|
773
773
|
async function newerCliCommandHint(baseUrl, command) {
|
|
774
774
|
if (!command.trim()) return null;
|
|
775
|
-
const { response, error } = await
|
|
775
|
+
const { response, error } = await _chunkOVFCPV24js.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
776
776
|
if (error || !response) return null;
|
|
777
777
|
const introduced = response.command_introduced_in;
|
|
778
778
|
if (introduced) {
|
|
779
779
|
return [
|
|
780
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
780
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunk33O2JGHEjs.SDK_VERSION}.`,
|
|
781
781
|
` ${introduced.reason}`,
|
|
782
782
|
` Update with: ${response.update_command}`,
|
|
783
783
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -786,31 +786,31 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
786
786
|
if (!response.update_required) return null;
|
|
787
787
|
return [
|
|
788
788
|
response.message,
|
|
789
|
-
` Installed: ${
|
|
789
|
+
` Installed: ${_chunk33O2JGHEjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
790
790
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
791
791
|
].join("\n");
|
|
792
792
|
}
|
|
793
793
|
async function runMain(ensureTransport, onAction) {
|
|
794
794
|
const mainStartedAt = Date.now();
|
|
795
|
-
|
|
795
|
+
_chunkLXYDN5FEjs.installJsonStderrGuard.call(void 0, );
|
|
796
796
|
let rootHelpStatus = "";
|
|
797
797
|
const deferredMaintenance = { inlinePlay: null };
|
|
798
|
-
|
|
798
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
799
799
|
phase: "cli.main_start",
|
|
800
800
|
argv: process.argv.slice(2)
|
|
801
801
|
});
|
|
802
802
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
803
|
-
const progress = printStartupPhase ?
|
|
803
|
+
const progress = printStartupPhase ? _chunkAKVNUNL7js.createCliProgress.call(void 0, true) : null;
|
|
804
804
|
if (printStartupPhase) {
|
|
805
805
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
806
806
|
}
|
|
807
807
|
const program = new (0, _commander.Command)();
|
|
808
808
|
program.name("deepline").description(
|
|
809
809
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
810
|
-
).version(
|
|
810
|
+
).version(_chunk33O2JGHEjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
811
811
|
"--maintenance <policy>",
|
|
812
812
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
813
|
-
|
|
813
|
+
_chunkW4HIOBQQjs.parseCliMaintenancePolicy,
|
|
814
814
|
"configured"
|
|
815
815
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
816
816
|
"beforeAll",
|
|
@@ -868,24 +868,24 @@ Exit codes:
|
|
|
868
868
|
path: compatibilityCommandPath(actionCommand),
|
|
869
869
|
args: actionCommand.processedArgs
|
|
870
870
|
});
|
|
871
|
-
const maintenance =
|
|
871
|
+
const maintenance = _chunkW4HIOBQQjs.resolveCliMaintenancePolicy.call(void 0,
|
|
872
872
|
actionCommand.optsWithGlobals()
|
|
873
873
|
);
|
|
874
874
|
if (actionCommand.name() !== "version") {
|
|
875
875
|
await ensureTransport();
|
|
876
876
|
}
|
|
877
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
877
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkOVFCPV24js.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
878
878
|
return;
|
|
879
879
|
}
|
|
880
880
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
881
881
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
882
882
|
if (isToolExecuteCommand) {
|
|
883
|
-
|
|
883
|
+
_chunkVRZXGJXHjs.beginToolExecuteCommand.call(void 0, );
|
|
884
884
|
}
|
|
885
885
|
if (isToolExecuteCommand) {
|
|
886
|
-
const baseUrl =
|
|
887
|
-
if (maintenance !== "off")
|
|
888
|
-
|
|
886
|
+
const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
887
|
+
if (maintenance !== "off") _chunkOVFCPV24js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
888
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
889
889
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
890
890
|
baseUrl,
|
|
891
891
|
command: compatibilityCommand
|
|
@@ -893,10 +893,10 @@ Exit codes:
|
|
|
893
893
|
return;
|
|
894
894
|
}
|
|
895
895
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
896
|
-
if (!playDryRun &&
|
|
896
|
+
if (!playDryRun && _chunkJMCTNS6Sjs.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
897
897
|
if (maintenance !== "off") {
|
|
898
|
-
const baseUrl =
|
|
899
|
-
|
|
898
|
+
const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
899
|
+
_chunkOVFCPV24js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
900
900
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
901
901
|
baseUrl,
|
|
902
902
|
command: actionCommand,
|
|
@@ -905,27 +905,27 @@ Exit codes:
|
|
|
905
905
|
}
|
|
906
906
|
return;
|
|
907
907
|
}
|
|
908
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
908
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkVRZXGJXHjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
909
909
|
if (printStartupPhase) {
|
|
910
910
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
911
911
|
}
|
|
912
912
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
913
|
-
const baseUrl =
|
|
914
|
-
if (maintenance !== "off")
|
|
913
|
+
const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
914
|
+
if (maintenance !== "off") _chunkOVFCPV24js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
915
915
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
916
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
917
|
-
const trusted = isToolExecuteCommand ? null :
|
|
916
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunk3SGA53DXjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
917
|
+
const trusted = isToolExecuteCommand ? null : _chunkOVFCPV24js.readTrustedCleanCompatibility.call(void 0,
|
|
918
918
|
baseUrl,
|
|
919
919
|
compatibilityCommand,
|
|
920
920
|
skillsVersion
|
|
921
921
|
);
|
|
922
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
922
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkOVFCPV24js.readFreshCleanCompatibility.call(void 0,
|
|
923
923
|
baseUrl,
|
|
924
924
|
compatibilityCommand,
|
|
925
925
|
skillsVersion
|
|
926
926
|
) !== null;
|
|
927
927
|
if (trusted) {
|
|
928
|
-
|
|
928
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
929
929
|
phase: "cli.sdk_compatibility",
|
|
930
930
|
ms: 0,
|
|
931
931
|
ok: true,
|
|
@@ -935,7 +935,7 @@ Exit codes:
|
|
|
935
935
|
source: "trusted_cache"
|
|
936
936
|
});
|
|
937
937
|
}
|
|
938
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
938
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
939
939
|
"cli.sdk_compatibility",
|
|
940
940
|
{
|
|
941
941
|
baseUrl,
|
|
@@ -943,12 +943,12 @@ Exit codes:
|
|
|
943
943
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
944
944
|
fastDeadline
|
|
945
945
|
},
|
|
946
|
-
() =>
|
|
946
|
+
() => _chunkOVFCPV24js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
947
947
|
command: compatibilityCommand,
|
|
948
948
|
skillsVersion,
|
|
949
949
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
950
|
-
catalog:
|
|
951
|
-
...fastDeadline ? { timeoutMs:
|
|
950
|
+
catalog: _chunkVRZXGJXHjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
951
|
+
...fastDeadline ? { timeoutMs: _chunkOVFCPV24js.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
952
952
|
})
|
|
953
953
|
);
|
|
954
954
|
if (compatibility.error) {
|
|
@@ -959,7 +959,7 @@ Exit codes:
|
|
|
959
959
|
response: null
|
|
960
960
|
};
|
|
961
961
|
}
|
|
962
|
-
const relaunched = await
|
|
962
|
+
const relaunched = await _chunkVRZXGJXHjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
963
963
|
compatibility.response,
|
|
964
964
|
baseUrl,
|
|
965
965
|
maintenance
|
|
@@ -973,14 +973,14 @@ Exit codes:
|
|
|
973
973
|
};
|
|
974
974
|
}
|
|
975
975
|
const policy = compatibility.response;
|
|
976
|
-
const jsonOutput =
|
|
977
|
-
|
|
976
|
+
const jsonOutput = _chunkLXYDN5FEjs.isJsonOutputMode.call(void 0, );
|
|
977
|
+
_chunkOVFCPV24js.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
978
978
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
979
|
-
|
|
979
|
+
_chunkVRZXGJXHjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkOVFCPV24js.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
980
980
|
});
|
|
981
981
|
const advisory = compatibility.response;
|
|
982
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
983
|
-
|
|
982
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkOVFCPV24js.isCiEnvironment.call(void 0, ) && !_chunkVRZXGJXHjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
983
|
+
_chunkLXYDN5FEjs.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
984
984
|
}
|
|
985
985
|
return {
|
|
986
986
|
shouldContinue: true,
|
|
@@ -997,10 +997,10 @@ Exit codes:
|
|
|
997
997
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
998
998
|
await runStartupStage(
|
|
999
999
|
"agent skills sync",
|
|
1000
|
-
() =>
|
|
1000
|
+
() => _chunkW4HIOBQQjs.traceCliSpan.call(void 0,
|
|
1001
1001
|
"cli.sdk_skills_sync",
|
|
1002
1002
|
{ baseUrl: startup.baseUrl },
|
|
1003
|
-
() =>
|
|
1003
|
+
() => _chunkOVFCPV24js.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1004
1004
|
update: skillsUpdate,
|
|
1005
1005
|
mode: "detached"
|
|
1006
1006
|
})
|
|
@@ -1009,19 +1009,19 @@ Exit codes:
|
|
|
1009
1009
|
}
|
|
1010
1010
|
});
|
|
1011
1011
|
const requestedCommand = process.argv[2];
|
|
1012
|
-
const commandRegistrationStartedAt =
|
|
1012
|
+
const commandRegistrationStartedAt = _chunkW4HIOBQQjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1013
1013
|
await registerDeeplineCommandGroups(
|
|
1014
1014
|
program,
|
|
1015
1015
|
!requestedCommand || requestedCommand === "help" || requestedCommand.startsWith("-") && !["-v", "--version"].includes(requestedCommand) ? void 0 : requestedCommand
|
|
1016
1016
|
);
|
|
1017
1017
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1018
|
-
|
|
1018
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
1019
1019
|
phase: "cli.command_registration",
|
|
1020
1020
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1021
1021
|
});
|
|
1022
1022
|
}
|
|
1023
1023
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1024
|
-
if (
|
|
1024
|
+
if (_chunkLXYDN5FEjs.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1025
1025
|
preflight.addHelpText(
|
|
1026
1026
|
"after",
|
|
1027
1027
|
`
|
|
@@ -1037,8 +1037,8 @@ Examples:
|
|
|
1037
1037
|
`
|
|
1038
1038
|
).action(async (options) => {
|
|
1039
1039
|
const data = await runPreflightCheck();
|
|
1040
|
-
if (
|
|
1041
|
-
|
|
1040
|
+
if (_chunkLXYDN5FEjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1041
|
+
_chunkLXYDN5FEjs.printJson.call(void 0, data);
|
|
1042
1042
|
} else {
|
|
1043
1043
|
printPreflightHuman(data);
|
|
1044
1044
|
}
|
|
@@ -1063,7 +1063,7 @@ Examples:
|
|
|
1063
1063
|
).action(async (options) => {
|
|
1064
1064
|
if (options.playRunner) {
|
|
1065
1065
|
const data = await runPlayRunnerHealthCheck();
|
|
1066
|
-
|
|
1066
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0, data, {
|
|
1067
1067
|
json: options.json,
|
|
1068
1068
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1069
1069
|
`
|
|
@@ -1071,15 +1071,15 @@ Examples:
|
|
|
1071
1071
|
return;
|
|
1072
1072
|
}
|
|
1073
1073
|
try {
|
|
1074
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1075
|
-
const baseUrl =
|
|
1074
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MZDFNRPG.js")));
|
|
1075
|
+
const baseUrl = _chunk3SGA53DXjs.resolveBaseUrlOnly.call(void 0, );
|
|
1076
1076
|
const [{ status, data }, banner] = await Promise.all([
|
|
1077
1077
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1078
1078
|
readStatusBanner(baseUrl)
|
|
1079
1079
|
]);
|
|
1080
1080
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1081
1081
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1082
|
-
|
|
1082
|
+
_chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
|
|
1083
1083
|
{ ...data, status_banner: banner },
|
|
1084
1084
|
{
|
|
1085
1085
|
json: options.json,
|
|
@@ -1107,16 +1107,16 @@ Examples:
|
|
|
1107
1107
|
`
|
|
1108
1108
|
).action((options) => {
|
|
1109
1109
|
if (options.json) {
|
|
1110
|
-
|
|
1110
|
+
_chunkLXYDN5FEjs.printCompactJson.call(void 0, { version: _chunk33O2JGHEjs.SDK_VERSION });
|
|
1111
1111
|
return;
|
|
1112
1112
|
}
|
|
1113
|
-
process.stdout.write(`deepline ${
|
|
1113
|
+
process.stdout.write(`deepline ${_chunk33O2JGHEjs.SDK_VERSION}
|
|
1114
1114
|
`);
|
|
1115
1115
|
});
|
|
1116
1116
|
if (process.argv.slice(2).length === 0) {
|
|
1117
1117
|
program.outputHelp({ error: true });
|
|
1118
1118
|
console.error("\nerror: missing command (see usage above)");
|
|
1119
|
-
|
|
1119
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
1120
1120
|
phase: "cli.main_total",
|
|
1121
1121
|
ms: Date.now() - mainStartedAt,
|
|
1122
1122
|
ok: false,
|
|
@@ -1128,16 +1128,16 @@ Examples:
|
|
|
1128
1128
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1129
1129
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1130
1130
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1131
|
-
if (!
|
|
1132
|
-
const baseUrl =
|
|
1131
|
+
if (!_chunkLXYDN5FEjs.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1132
|
+
const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, );
|
|
1133
1133
|
await ensureTransport();
|
|
1134
1134
|
const versionHint = await newerCliCommandHint(
|
|
1135
1135
|
baseUrl,
|
|
1136
1136
|
requestedTopLevelCommand
|
|
1137
1137
|
);
|
|
1138
|
-
if (
|
|
1138
|
+
if (_chunkLXYDN5FEjs.isJsonOutputMode.call(void 0, )) {
|
|
1139
1139
|
if (versionHint) {
|
|
1140
|
-
|
|
1140
|
+
_chunkLXYDN5FEjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1141
1141
|
}
|
|
1142
1142
|
printUsageErrorJson(
|
|
1143
1143
|
"commander.unknownCommand",
|
|
@@ -1159,32 +1159,32 @@ Examples:
|
|
|
1159
1159
|
const helpArgs = process.argv.slice(2);
|
|
1160
1160
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1161
1161
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1162
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1163
|
-
rootHelpStatus = `Version: ${
|
|
1162
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-MZDFNRPG.js")));
|
|
1163
|
+
rootHelpStatus = `Version: ${_chunk33O2JGHEjs.SDK_VERSION}
|
|
1164
1164
|
${await authStatusLine()}
|
|
1165
1165
|
`;
|
|
1166
1166
|
}
|
|
1167
1167
|
await program.parseAsync(process.argv);
|
|
1168
|
-
|
|
1168
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
1169
1169
|
phase: "cli.main_total",
|
|
1170
1170
|
ms: Date.now() - mainStartedAt,
|
|
1171
1171
|
ok: true
|
|
1172
1172
|
});
|
|
1173
|
-
await
|
|
1173
|
+
await _chunkOVFCPV24js.maybeReportSdkCliFailure.call(void 0, {
|
|
1174
1174
|
argv: process.argv.slice(2),
|
|
1175
1175
|
startedAtMs: mainStartedAt,
|
|
1176
1176
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
1177
1177
|
});
|
|
1178
1178
|
} catch (error) {
|
|
1179
1179
|
const commanderError = asCommanderError(error);
|
|
1180
|
-
|
|
1180
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
1181
1181
|
phase: "cli.main_total",
|
|
1182
1182
|
ms: Date.now() - mainStartedAt,
|
|
1183
1183
|
ok: false,
|
|
1184
1184
|
error: error instanceof Error ? error.message : String(error)
|
|
1185
1185
|
});
|
|
1186
1186
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1187
|
-
const wantsJson =
|
|
1187
|
+
const wantsJson = _chunkLXYDN5FEjs.isJsonOutputMode.call(void 0, );
|
|
1188
1188
|
if (commanderError) {
|
|
1189
1189
|
const grammarError = [
|
|
1190
1190
|
"commander.unknownCommand",
|
|
@@ -1195,12 +1195,12 @@ ${await authStatusLine()}
|
|
|
1195
1195
|
if (grammarError) {
|
|
1196
1196
|
await ensureTransport();
|
|
1197
1197
|
const versionHint = await newerCliCommandHint(
|
|
1198
|
-
|
|
1198
|
+
_chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ),
|
|
1199
1199
|
commandPath
|
|
1200
1200
|
);
|
|
1201
1201
|
if (wantsJson) {
|
|
1202
1202
|
if (versionHint) {
|
|
1203
|
-
|
|
1203
|
+
_chunkLXYDN5FEjs.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1204
1204
|
}
|
|
1205
1205
|
} else {
|
|
1206
1206
|
if (versionHint) console.error(versionHint);
|
|
@@ -1220,53 +1220,53 @@ ${await authStatusLine()}
|
|
|
1220
1220
|
return;
|
|
1221
1221
|
} else if (wantsJson) {
|
|
1222
1222
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1223
|
-
|
|
1223
|
+
_chunkLXYDN5FEjs.addJsonNotice.call(void 0, {
|
|
1224
1224
|
code: "auth_required",
|
|
1225
1225
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1226
1226
|
});
|
|
1227
1227
|
}
|
|
1228
|
-
const providerConcurrency =
|
|
1228
|
+
const providerConcurrency = _chunkLXYDN5FEjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1229
1229
|
if (providerConcurrency) {
|
|
1230
|
-
|
|
1230
|
+
_chunkLXYDN5FEjs.addJsonNotice.call(void 0, {
|
|
1231
1231
|
code: "provider_concurrency",
|
|
1232
1232
|
message: providerConcurrency
|
|
1233
1233
|
});
|
|
1234
1234
|
}
|
|
1235
|
-
const payload =
|
|
1236
|
-
|
|
1235
|
+
const payload = _chunkLXYDN5FEjs.errorToJsonPayload.call(void 0, error);
|
|
1236
|
+
_chunkLXYDN5FEjs.printJson.call(void 0, {
|
|
1237
1237
|
...payload,
|
|
1238
1238
|
// The envelope names the code the process exits with, so a caller
|
|
1239
1239
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1240
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1240
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkOVFCPV24js.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1241
1241
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1242
1242
|
});
|
|
1243
1243
|
} else if (error instanceof Error) {
|
|
1244
1244
|
console.error(`Error: ${error.message}`);
|
|
1245
|
-
const toolDiagnostic =
|
|
1245
|
+
const toolDiagnostic = _chunkLXYDN5FEjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1246
1246
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1247
1247
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1248
1248
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1249
1249
|
}
|
|
1250
|
-
const providerConcurrency =
|
|
1250
|
+
const providerConcurrency = _chunkLXYDN5FEjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1251
1251
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1252
1252
|
} else {
|
|
1253
1253
|
console.error(`Error: ${String(error)}`);
|
|
1254
1254
|
}
|
|
1255
1255
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1256
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1256
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkOVFCPV24js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1257
1257
|
process.exitCode = failureExitCode;
|
|
1258
|
-
await
|
|
1258
|
+
await _chunkOVFCPV24js.maybeReportSdkCliFailure.call(void 0, {
|
|
1259
1259
|
argv: process.argv.slice(2),
|
|
1260
1260
|
startedAtMs: mainStartedAt,
|
|
1261
1261
|
exitCode: failureExitCode,
|
|
1262
1262
|
error
|
|
1263
1263
|
});
|
|
1264
1264
|
} finally {
|
|
1265
|
-
|
|
1265
|
+
_chunkVRZXGJXHjs.finishToolExecuteCommand.call(void 0, );
|
|
1266
1266
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1267
1267
|
deferredMaintenance.inlinePlay = null;
|
|
1268
1268
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1269
|
-
await
|
|
1269
|
+
await _chunkVRZXGJXHjs.runDeferredAutoUpdate.call(void 0, );
|
|
1270
1270
|
}
|
|
1271
1271
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1272
1272
|
}
|
|
@@ -1274,7 +1274,7 @@ async function main() {
|
|
|
1274
1274
|
let disposeTransport;
|
|
1275
1275
|
const ensureTransport = async () => {
|
|
1276
1276
|
if (disposeTransport) return;
|
|
1277
|
-
const transportStartedAt =
|
|
1277
|
+
const transportStartedAt = _chunkW4HIOBQQjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1278
1278
|
const hasProxy = [
|
|
1279
1279
|
"HTTP_PROXY",
|
|
1280
1280
|
"http_proxy",
|
|
@@ -1286,7 +1286,7 @@ async function main() {
|
|
|
1286
1286
|
disposeTransport = configureCliTransport();
|
|
1287
1287
|
}
|
|
1288
1288
|
if (transportStartedAt !== void 0) {
|
|
1289
|
-
|
|
1289
|
+
_chunkW4HIOBQQjs.recordCliTrace.call(void 0, {
|
|
1290
1290
|
phase: "cli.transport_setup",
|
|
1291
1291
|
ms: performance.now() - transportStartedAt
|
|
1292
1292
|
});
|
|
@@ -1303,9 +1303,9 @@ async function main() {
|
|
|
1303
1303
|
action = dispatched;
|
|
1304
1304
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1305
1305
|
});
|
|
1306
|
-
const silentFailure =
|
|
1306
|
+
const silentFailure = _chunkLXYDN5FEjs.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1307
1307
|
if (silentFailure) {
|
|
1308
|
-
|
|
1308
|
+
_chunkLXYDN5FEjs.printJson.call(void 0, {
|
|
1309
1309
|
ok: false,
|
|
1310
1310
|
exitCode: Number(process.exitCode),
|
|
1311
1311
|
error: { code: "CLI_ERROR", message: silentFailure }
|