deepline 0.3.370 → 0.3.372
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/README.md +1 -1
- package/dist/bundling-sources/sdk/src/client.ts +8 -8
- package/dist/bundling-sources/sdk/src/release.ts +1 -7
- package/dist/bundling-sources/sdk/src/runs/overview.ts +7 -7
- package/dist/bundling-sources/sdk/src/tool-output.ts +5 -1
- package/dist/bundling-sources/sdk/src/types.ts +2 -2
- package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -5
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +18 -18
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/dataset-lifecycle-log.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/launch/input-contract.ts +34 -9
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +15 -3
- package/dist/cli/auth-4SXMV3CD.js +33 -0
- package/dist/cli/{auth-RIH4S7NC.mjs → auth-ODSACXLF.mjs} +4 -4
- package/dist/cli/{billing-Q65H5GJM.js → billing-4ERXY2DZ.js} +148 -148
- package/dist/cli/{billing-ERNGN6WK.mjs → billing-OPIOZLAN.mjs} +79 -79
- package/dist/cli/{chunk-MX53GIOB.js → chunk-2JRRXXTA.js} +2 -2
- package/dist/cli/{chunk-H4IQJRFC.mjs → chunk-2RC5JQ3C.mjs} +9 -9
- package/dist/cli/{chunk-IDBLJSLL.mjs → chunk-3CTB7V5F.mjs} +5 -5
- package/dist/cli/{chunk-Z6B4UPM4.mjs → chunk-3GK3SH3G.mjs} +2 -2
- package/dist/cli/{chunk-RLXMRC6P.mjs → chunk-46JCJ7FT.mjs} +49 -96
- package/dist/cli/{chunk-YQMUTC2H.mjs → chunk-4LIUZ4QR.mjs} +11 -11
- package/dist/cli/{chunk-BGXG3GEI.mjs → chunk-5HYD3GMS.mjs} +5 -5
- package/dist/cli/{chunk-DFJDVQMH.js → chunk-6MDAGRZP.js} +2 -2
- package/dist/cli/{chunk-NHB3UWTZ.js → chunk-AQFA7HMN.js} +17 -17
- package/dist/cli/{chunk-LNEBKWXM.mjs → chunk-BFLPCGOR.mjs} +1 -1
- package/dist/cli/{chunk-5DUTNG37.mjs → chunk-BVUGPOU3.mjs} +10 -10
- package/dist/cli/{chunk-A6DJC2RC.js → chunk-D6O3NJHX.js} +68 -68
- package/dist/cli/{chunk-666HPUIZ.js → chunk-DM5QUZJR.js} +1 -6
- package/dist/cli/{chunk-HHH4MPFY.mjs → chunk-DONL233W.mjs} +6 -6
- package/dist/cli/{chunk-NXDRDJ4K.js → chunk-E5UD3JDQ.js} +3 -1
- package/dist/cli/{chunk-XTKVXHGD.js → chunk-EFJL5FCU.js} +17 -17
- package/dist/cli/{chunk-LJWOPNJJ.mjs → chunk-FGHRRJ3D.mjs} +1 -1
- package/dist/cli/{chunk-WQZ22EQU.js → chunk-GZQKUFM5.js} +26 -26
- package/dist/cli/{chunk-Y2B56VN7.js → chunk-IUWPC5K6.js} +53 -53
- package/dist/cli/{chunk-NEY2M4EZ.mjs → chunk-JAERLCMH.mjs} +1 -6
- package/dist/cli/{chunk-MIMASXO4.mjs → chunk-JB6ERQUV.mjs} +3 -1
- package/dist/cli/{chunk-CTMA3C3N.js → chunk-JSK6GUY6.js} +49 -96
- package/dist/cli/{chunk-T64NZ2A7.mjs → chunk-KC2YOJTU.mjs} +46 -47
- package/dist/cli/{chunk-GGRVNAOH.mjs → chunk-MIMV5LTU.mjs} +3 -3
- package/dist/cli/{chunk-SFI7U6CA.js → chunk-ML2ZY7YD.js} +4 -4
- package/dist/cli/{chunk-A4OX52RV.js → chunk-N5TPMNTT.js} +10 -10
- package/dist/cli/{chunk-YEEESF2T.js → chunk-RJ7JJMQO.js} +419 -413
- package/dist/cli/{chunk-4Y5UDYQK.js → chunk-RUYZAREB.js} +17 -17
- package/dist/cli/{chunk-BKHNCIQD.mjs → chunk-U3W7E5WT.mjs} +193 -187
- package/dist/cli/{chunk-MKFHZDBO.js → chunk-VVFH745L.js} +8 -8
- package/dist/cli/{chunk-R7AAYFDQ.js → chunk-WJWO74MM.js} +102 -103
- package/dist/cli/{chunk-A5RFERJQ.mjs → chunk-XSPAI6MF.mjs} +2 -2
- package/dist/cli/{client-QXOERIFI.mjs → client-KF2J754U.mjs} +3 -3
- package/dist/cli/client-UUNLXOHF.js +20 -0
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-ZKIUSDIV.js → csv-UJ3M7NFP.js} +12 -12
- package/dist/cli/{csv-V7UKQ7AC.mjs → csv-UL3MCD5D.mjs} +3 -3
- package/dist/cli/{db-GWKRVHKS.js → db-444XYOTV.js} +42 -43
- package/dist/cli/{db-QQ4BYMPY.mjs → db-SIOWA63T.mjs} +17 -18
- package/dist/cli/{describe-XMWXEFMS.mjs → describe-GI5GHAKO.mjs} +12 -12
- package/dist/cli/{describe-3AJI2BOS.js → describe-RRBESS3S.js} +28 -28
- package/dist/cli/{executions-QV7UE5YG.mjs → executions-4YDP6BXI.mjs} +4 -4
- package/dist/cli/{executions-2IMCCV34.js → executions-ERXZUOL5.js} +6 -6
- package/dist/cli/{feedback-7SSJ7VPF.js → feedback-3M7D7DZQ.js} +12 -12
- package/dist/cli/{feedback-K6WNXZDB.mjs → feedback-CPWQL5LU.mjs} +8 -8
- package/dist/cli/git-ITSCNUVB.js +23 -0
- package/dist/cli/{git-UOE2K2XQ.mjs → git-XN6C3TJZ.mjs} +4 -4
- package/dist/cli/index.js +98 -109
- package/dist/cli/index.mjs +46 -57
- package/dist/cli/{legacy-noops-GC43OSXL.js → legacy-noops-5XDGOFWH.js} +9 -9
- package/dist/cli/{legacy-noops-SOYPIA2X.mjs → legacy-noops-KXQ6TFFL.mjs} +6 -6
- package/dist/cli/{monitors-FLCGMXVH.mjs → monitors-33IU5JR6.mjs} +59 -59
- package/dist/cli/{monitors-AXANB6WK.js → monitors-KH22PDOC.js} +140 -140
- package/dist/cli/{org-Q7EDNZMN.mjs → org-MHYMWUEP.mjs} +28 -27
- package/dist/cli/{org-MXD4BTQI.js → org-X4NSLQG5.js} +88 -87
- package/dist/cli/play-4QRPOBWW.js +155 -0
- package/dist/cli/{play-TZROCF7E.mjs → play-LCZKHKW2.mjs} +10 -8
- package/dist/cli/{providers-LOS4MHAG.js → providers-J6LWCF5R.js} +10 -10
- package/dist/cli/{providers-JEY4FTWG.mjs → providers-L5FJTSEA.mjs} +7 -7
- package/dist/cli/{quickstart-WO5KVVER.mjs → quickstart-NE3BTWGL.mjs} +4 -4
- package/dist/cli/{quickstart-27UQGHEH.js → quickstart-OOPFA4MX.js} +6 -6
- package/dist/cli/{search-LZHWXC2C.mjs → search-DBXOEOIE.mjs} +5 -5
- package/dist/cli/search-UGQDBP76.js +26 -0
- package/dist/cli/{secrets-AVJGZABR.mjs → secrets-U2MLWZH2.mjs} +5 -5
- package/dist/cli/{secrets-PE7P4L7N.js → secrets-WPMU7UBD.js} +14 -14
- package/dist/cli/{sessions-ZDSZTYZV.mjs → sessions-WYNC4AUE.mjs} +4 -4
- package/dist/cli/{sessions-I6UDBN7M.js → sessions-YYZ3UJDS.js} +5 -5
- package/dist/cli/{settings-SPWH3FET.mjs → settings-FQZSHFC6.mjs} +10 -10
- package/dist/cli/{settings-3SLMJHJ2.js → settings-WQDFX3X6.js} +77 -77
- package/dist/cli/{setup-R4LUWQE4.js → setup-DKYVNDTM.js} +50 -50
- package/dist/cli/{setup-Q3CJ4T2Q.mjs → setup-JKYJT35S.mjs} +15 -15
- package/dist/cli/skills-VBQMXDAX.js +28 -0
- package/dist/cli/{skills-FGXH432G.mjs → skills-VHVCJJJY.mjs} +4 -4
- package/dist/cli/tools-ACEJZMJD.js +40 -0
- package/dist/cli/{tools-O7C6PFF2.mjs → tools-E23PU7KM.mjs} +8 -8
- package/dist/cli/{update-PPCQV3CD.mjs → update-4A4VU6CW.mjs} +6 -6
- package/dist/cli/update-V5KMYHVE.js +28 -0
- package/dist/cli/{workflow-Z2KYQ2JE.mjs → workflow-2ZR2ECTG.mjs} +7 -7
- package/dist/cli/{workflow-ALKU4ZFD.js → workflow-WB2USWAA.js} +17 -17
- package/dist/{client-CjHv4K6D.d.mts → client-Cw0e2Uec.d.mts} +8 -7
- package/dist/{client-rTuhNN-x.d.ts → client-CwdiawoG.d.ts} +8 -7
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -15
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +82 -82
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -5
- package/dist/release.d.ts +1 -5
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-DD3PVIRQ.js +0 -33
- package/dist/cli/client-DNAFHKWV.js +0 -20
- package/dist/cli/git-EBSF3254.js +0 -23
- package/dist/cli/play-YWQXVOBT.js +0 -153
- package/dist/cli/search-OQ3OEFUA.js +0 -26
- package/dist/cli/skills-IDXBBOUW.js +0 -28
- package/dist/cli/tools-WHLD4Y4O.js +0 -40
- package/dist/cli/update-K6HE3XKO.js +0 -28
package/dist/cli/index.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkAQFA7HMNjs = require('./chunk-AQFA7HMN.js');
|
|
8
|
+
require('./chunk-6MDAGRZP.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -28,7 +28,7 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkD6O3NJHXjs = require('./chunk-D6O3NJHX.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
@@ -38,7 +38,7 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkVVFH745Ljs = require('./chunk-VVFH745L.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
@@ -48,16 +48,16 @@ var _chunkMKFHZDBOjs = require('./chunk-MKFHZDBO.js');
|
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
51
|
-
var
|
|
51
|
+
var _chunkML2ZY7YDjs = require('./chunk-ML2ZY7YD.js');
|
|
52
52
|
require('./chunk-XNYIZMNQ.js');
|
|
53
53
|
require('./chunk-7P5AA3SN.js');
|
|
54
|
-
require('./chunk-
|
|
54
|
+
require('./chunk-DM5QUZJR.js');
|
|
55
55
|
require('./chunk-OG64RBAC.js');
|
|
56
56
|
|
|
57
57
|
|
|
58
58
|
|
|
59
59
|
|
|
60
|
-
var
|
|
60
|
+
var _chunkJSK6GUY6js = require('./chunk-JSK6GUY6.js');
|
|
61
61
|
require('./chunk-COGTRVWW.js');
|
|
62
62
|
|
|
63
63
|
// src/cli/command-invocation.ts
|
|
@@ -121,48 +121,48 @@ var _os = require('os');
|
|
|
121
121
|
var COMMAND_GROUPS = [
|
|
122
122
|
{
|
|
123
123
|
names: ["auth"],
|
|
124
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
124
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-4SXMV3CD.js")))).registerAuthCommands
|
|
125
125
|
},
|
|
126
126
|
{
|
|
127
127
|
names: ["providers"],
|
|
128
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
128
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-J6LWCF5R.js")))).registerProviderCommands
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
131
|
names: ["search"],
|
|
132
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
132
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-UGQDBP76.js")))).registerSearchCommand
|
|
133
133
|
},
|
|
134
134
|
{
|
|
135
135
|
names: ["describe"],
|
|
136
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
136
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-RRBESS3S.js")))).registerDescribeCommand
|
|
137
137
|
},
|
|
138
138
|
{
|
|
139
139
|
names: ["tools"],
|
|
140
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
140
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-ACEJZMJD.js")))).registerToolsCommands
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
names: ["executions"],
|
|
144
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
144
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-ERXZUOL5.js")))).registerExecutionsCommands
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
147
|
names: ["plays", "runs"],
|
|
148
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
148
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-4QRPOBWW.js")))).registerPlayCommands
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
names: ["sessions"],
|
|
152
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
152
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-YYZ3UJDS.js")))).registerSessionsCommands
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
names: ["workflows"],
|
|
156
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
156
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-WB2USWAA.js")))).registerWorkflowCommands
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
159
|
names: ["secrets"],
|
|
160
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
160
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-WPMU7UBD.js")))).registerSecretsCommands
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
names: ["settings", "notifications"],
|
|
164
164
|
load: async () => {
|
|
165
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
165
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-WQDFX3X6.js")));
|
|
166
166
|
return (p) => {
|
|
167
167
|
commands.registerSettingsCommands(p);
|
|
168
168
|
commands.registerNotificationCommands(p);
|
|
@@ -171,51 +171,51 @@ var COMMAND_GROUPS = [
|
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
names: ["billing"],
|
|
174
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
174
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-4ERXY2DZ.js")))).registerBillingCommands
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
names: ["monitors"],
|
|
178
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
178
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-KH22PDOC.js")))).registerMonitorsCommands
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
names: ["org"],
|
|
182
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
182
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-X4NSLQG5.js")))).registerOrgCommands
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
185
|
names: ["git", "projects", "deployments"],
|
|
186
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
186
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-ITSCNUVB.js")))).registerGitCommands
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
189
|
names: ["csv"],
|
|
190
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
190
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-UJ3M7NFP.js")))).registerCsvCommands
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
names: ["db"],
|
|
194
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
194
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-444XYOTV.js")))).registerDbCommands
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
197
|
names: ["feedback"],
|
|
198
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
198
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-3M7D7DZQ.js")))).registerFeedbackCommands
|
|
199
199
|
},
|
|
200
200
|
{
|
|
201
201
|
names: ["enrich", "session", "backend"],
|
|
202
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
202
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-5XDGOFWH.js")))).registerDeprecatedCommands
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
205
|
names: ["update"],
|
|
206
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
206
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-V5KMYHVE.js")))).registerUpdateCommand
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
209
|
names: ["skills", "skills-auto-sync"],
|
|
210
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
210
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-VBQMXDAX.js")))).registerSkillsCommand
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
names: ["setup", "doctor"],
|
|
214
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
214
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-DKYVNDTM.js")))).registerSetupCommands
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
217
|
names: ["quickstart"],
|
|
218
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
218
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-OOPFA4MX.js")))).registerQuickstartCommands
|
|
219
219
|
}
|
|
220
220
|
];
|
|
221
221
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -226,7 +226,7 @@ async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
|
226
226
|
for (const register of registrars) register(program);
|
|
227
227
|
}
|
|
228
228
|
function registerDeeplineInlineCommands(program) {
|
|
229
|
-
const preflight = program.command("preflight").description(
|
|
229
|
+
const preflight = program.command("preflight", { hidden: true }).description(
|
|
230
230
|
"Run compact CLI version, health, auth, and Deepline billing checks."
|
|
231
231
|
).option("--json", "Force JSON output.");
|
|
232
232
|
const health = program.command("health").description("Check server health.").option("--json", "Force JSON output.").option(
|
|
@@ -252,8 +252,8 @@ var MAX_SESSIONS = 20;
|
|
|
252
252
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
253
253
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
254
254
|
}
|
|
255
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
256
|
-
const explicit =
|
|
255
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkML2ZY7YDjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
256
|
+
const explicit = _chunkJSK6GUY6js.helpDetailFromArgv.call(void 0, argv);
|
|
257
257
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
258
258
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
259
259
|
const path = helpSeenPath(homeDir);
|
|
@@ -334,7 +334,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
334
334
|
async function reportAutoUpdateEvent(input) {
|
|
335
335
|
let apiKey = "";
|
|
336
336
|
try {
|
|
337
|
-
apiKey =
|
|
337
|
+
apiKey = _chunkML2ZY7YDjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
338
338
|
} catch (e2) {
|
|
339
339
|
return;
|
|
340
340
|
}
|
|
@@ -350,15 +350,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
350
350
|
headers: {
|
|
351
351
|
Authorization: `Bearer ${apiKey}`,
|
|
352
352
|
"Content-Type": "application/json",
|
|
353
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
353
|
+
"User-Agent": `deepline-ts-sdk/${_chunkML2ZY7YDjs.SDK_VERSION}`,
|
|
354
354
|
"X-Deepline-Client-Family": "sdk",
|
|
355
355
|
"X-Deepline-CLI-Family": "sdk",
|
|
356
|
-
"X-Deepline-CLI-Version":
|
|
357
|
-
"X-Deepline-SDK-Version":
|
|
356
|
+
"X-Deepline-CLI-Version": _chunkML2ZY7YDjs.SDK_VERSION,
|
|
357
|
+
"X-Deepline-SDK-Version": _chunkML2ZY7YDjs.SDK_VERSION
|
|
358
358
|
},
|
|
359
359
|
body: JSON.stringify({
|
|
360
360
|
event: input.event,
|
|
361
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
361
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkML2ZY7YDjs.SDK_VERSION,
|
|
362
362
|
target_version: input.response.latest,
|
|
363
363
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
364
364
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -377,7 +377,7 @@ function envTruthy(name) {
|
|
|
377
377
|
return value === "1" || value === "true" || value === "yes";
|
|
378
378
|
}
|
|
379
379
|
function shouldSkipSelfUpdate(policy) {
|
|
380
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
380
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkAQFA7HMNjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkD6O3NJHXjs.isCiEnvironment.call(void 0, );
|
|
381
381
|
}
|
|
382
382
|
function parseSemver(version) {
|
|
383
383
|
const trimmed = _optionalChain([version, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]);
|
|
@@ -407,7 +407,7 @@ function compareSemver(left, right) {
|
|
|
407
407
|
}
|
|
408
408
|
function isDowngradeAutoUpdateResponse(response) {
|
|
409
409
|
const target = _optionalChain([response, 'optionalAccess', _19 => _19.latest, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
|
|
410
|
-
const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
410
|
+
const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkML2ZY7YDjs.SDK_VERSION;
|
|
411
411
|
if (!target) return false;
|
|
412
412
|
return compareSemver(target, current) < 0;
|
|
413
413
|
}
|
|
@@ -446,7 +446,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
446
446
|
}
|
|
447
447
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
448
448
|
const target = response.latest;
|
|
449
|
-
const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) ||
|
|
449
|
+
const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) || _chunkML2ZY7YDjs.SDK_VERSION;
|
|
450
450
|
process.stderr.write(
|
|
451
451
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
452
452
|
`
|
|
@@ -454,12 +454,12 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
454
454
|
return false;
|
|
455
455
|
}
|
|
456
456
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
457
|
-
const plan =
|
|
457
|
+
const plan = _chunkAQFA7HMNjs.resolveUpdatePlan.call(void 0, {
|
|
458
458
|
packageSpec,
|
|
459
459
|
requireVerifiedNpmOwnership: true,
|
|
460
460
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
461
461
|
});
|
|
462
|
-
if (!
|
|
462
|
+
if (!_chunkAQFA7HMNjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
463
463
|
return false;
|
|
464
464
|
}
|
|
465
465
|
const label = autoUpdate.reason === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : autoUpdate.reason === "deprecated" ? "is deprecated and will update automatically" : autoUpdate.required ? "requires an update" : "has an update available and will update automatically";
|
|
@@ -473,7 +473,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
473
473
|
event: "started",
|
|
474
474
|
installKind: plan.kind
|
|
475
475
|
});
|
|
476
|
-
const updateResult = await
|
|
476
|
+
const updateResult = await _chunkAQFA7HMNjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
477
477
|
if (updateResult.status === "skipped_previous_failure") {
|
|
478
478
|
void reportAutoUpdateEvent({
|
|
479
479
|
baseUrl,
|
|
@@ -623,7 +623,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
623
623
|
});
|
|
624
624
|
let exitCode = 1;
|
|
625
625
|
try {
|
|
626
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
626
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-4QRPOBWW.js")));
|
|
627
627
|
exitCode = await handlePlayRun([
|
|
628
628
|
file,
|
|
629
629
|
"--input",
|
|
@@ -663,7 +663,7 @@ function preflightErrorMessage(error) {
|
|
|
663
663
|
return error instanceof Error ? error.message : String(error);
|
|
664
664
|
}
|
|
665
665
|
async function runPreflightCheck() {
|
|
666
|
-
const baseUrl =
|
|
666
|
+
const baseUrl = _chunkML2ZY7YDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
667
667
|
const healthController = new AbortController();
|
|
668
668
|
const healthTimeout = setTimeout(
|
|
669
669
|
() => healthController.abort(),
|
|
@@ -678,9 +678,9 @@ async function runPreflightCheck() {
|
|
|
678
678
|
version: pickString(payload, "version")
|
|
679
679
|
};
|
|
680
680
|
}).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
|
|
681
|
-
const apiKey =
|
|
682
|
-
const http = apiKey ? new (0,
|
|
683
|
-
|
|
681
|
+
const apiKey = _chunkML2ZY7YDjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
682
|
+
const http = apiKey ? new (0, _chunkML2ZY7YDjs.HttpClient)(
|
|
683
|
+
_chunkML2ZY7YDjs.resolveConfig.call(void 0, {
|
|
684
684
|
baseUrl,
|
|
685
685
|
apiKey,
|
|
686
686
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -725,7 +725,7 @@ async function runPreflightCheck() {
|
|
|
725
725
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
726
726
|
return {
|
|
727
727
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
728
|
-
cli_version:
|
|
728
|
+
cli_version: _chunkML2ZY7YDjs.SDK_VERSION,
|
|
729
729
|
host: baseUrl,
|
|
730
730
|
health: {
|
|
731
731
|
status: healthResult.status,
|
|
@@ -751,7 +751,7 @@ async function runPreflightCheck() {
|
|
|
751
751
|
{
|
|
752
752
|
title: "preflight",
|
|
753
753
|
lines: [
|
|
754
|
-
`cli: ${
|
|
754
|
+
`cli: ${_chunkML2ZY7YDjs.SDK_VERSION}`,
|
|
755
755
|
`host: ${baseUrl}`,
|
|
756
756
|
`health: ${healthResult.status}`,
|
|
757
757
|
`auth: ${authStatus}`,
|
|
@@ -776,12 +776,12 @@ function printPreflightHuman(data) {
|
|
|
776
776
|
}
|
|
777
777
|
async function newerCliCommandHint(baseUrl, command) {
|
|
778
778
|
if (!command.trim()) return null;
|
|
779
|
-
const { response, error } = await
|
|
779
|
+
const { response, error } = await _chunkD6O3NJHXjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
780
780
|
if (error || !response) return null;
|
|
781
781
|
const introduced = response.command_introduced_in;
|
|
782
782
|
if (introduced) {
|
|
783
783
|
return [
|
|
784
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
784
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkML2ZY7YDjs.SDK_VERSION}.`,
|
|
785
785
|
` ${introduced.reason}`,
|
|
786
786
|
` Update with: ${response.update_command}`,
|
|
787
787
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -790,7 +790,7 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
790
790
|
if (!response.update_required) return null;
|
|
791
791
|
return [
|
|
792
792
|
response.message,
|
|
793
|
-
` Installed: ${
|
|
793
|
+
` Installed: ${_chunkML2ZY7YDjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
794
794
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
795
795
|
].join("\n");
|
|
796
796
|
}
|
|
@@ -809,7 +809,7 @@ async function runMain(ensureTransport) {
|
|
|
809
809
|
const program = new (0, _commander.Command)();
|
|
810
810
|
program.name("deepline").description(
|
|
811
811
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
812
|
-
).version(
|
|
812
|
+
).version(_chunkML2ZY7YDjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
813
813
|
"--maintenance <policy>",
|
|
814
814
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
815
815
|
parseCliMaintenancePolicy,
|
|
@@ -821,15 +821,14 @@ async function runMain(ensureTransport) {
|
|
|
821
821
|
"after",
|
|
822
822
|
`
|
|
823
823
|
Common commands:
|
|
824
|
-
deepline preflight
|
|
825
824
|
deepline health
|
|
826
|
-
deepline auth status
|
|
827
|
-
deepline sessions send --current-session
|
|
828
|
-
deepline search "name and company domain -> work email" --type prebuilts
|
|
829
|
-
deepline describe person-linkedin-to-email
|
|
825
|
+
deepline auth status
|
|
826
|
+
deepline sessions send --current-session
|
|
827
|
+
deepline search "name and company domain -> work email" --type prebuilts
|
|
828
|
+
deepline describe person-linkedin-to-email
|
|
830
829
|
deepline plays run my.play.ts --input '{"domain":"stripe.com"}'
|
|
831
830
|
deepline secrets check HUBSPOT_TOKEN
|
|
832
|
-
deepline providers list --changed
|
|
831
|
+
deepline providers list --changed
|
|
833
832
|
deepline tools execute hunter_email_verifier --input '{"email":"a@b.com"}'
|
|
834
833
|
deepline update
|
|
835
834
|
|
|
@@ -840,8 +839,9 @@ Product model:
|
|
|
840
839
|
Live plays are promoted revisions used by named play runs.
|
|
841
840
|
|
|
842
841
|
Output:
|
|
843
|
-
|
|
844
|
-
|
|
842
|
+
Commands print human-readable output. Pass --json for JSON.
|
|
843
|
+
tools execute is the exception: it prints JSON; --output-format csv prints a
|
|
844
|
+
readable summary and writes the rows to a CSV file.
|
|
845
845
|
|
|
846
846
|
Safety:
|
|
847
847
|
Commands that mutate state, open a browser, write files, stop work, or spend credits say so in their help.
|
|
@@ -854,9 +854,9 @@ Exit codes:
|
|
|
854
854
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
855
855
|
`
|
|
856
856
|
).addHelpText("afterAll", ({ command }) => {
|
|
857
|
-
const key =
|
|
857
|
+
const key = _chunkJSK6GUY6js.commandDocKey.call(void 0, command);
|
|
858
858
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
859
|
-
return
|
|
859
|
+
return _chunkJSK6GUY6js.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
860
860
|
});
|
|
861
861
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
862
862
|
const maintenance = resolveCliMaintenancePolicy(
|
|
@@ -865,7 +865,7 @@ Exit codes:
|
|
|
865
865
|
if (actionCommand.name() !== "version") {
|
|
866
866
|
await ensureTransport();
|
|
867
867
|
}
|
|
868
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
868
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkD6O3NJHXjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
869
869
|
return;
|
|
870
870
|
}
|
|
871
871
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
@@ -878,16 +878,16 @@ Exit codes:
|
|
|
878
878
|
_optionalChain([progress, 'optionalAccess', _37 => _37.phase, 'call', _38 => _38("checking sdk compatibility")]);
|
|
879
879
|
}
|
|
880
880
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
881
|
-
const baseUrl =
|
|
882
|
-
if (maintenance !== "off")
|
|
881
|
+
const baseUrl = _chunkML2ZY7YDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
882
|
+
if (maintenance !== "off") _chunkD6O3NJHXjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
883
883
|
const shouldDeferSkillsSync = maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
884
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
885
|
-
const trusted =
|
|
884
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkML2ZY7YDjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
885
|
+
const trusted = _chunkD6O3NJHXjs.readTrustedCleanCompatibility.call(void 0,
|
|
886
886
|
baseUrl,
|
|
887
887
|
compatibilityCommand,
|
|
888
888
|
skillsVersion
|
|
889
889
|
);
|
|
890
|
-
const fastDeadline = trusted === null &&
|
|
890
|
+
const fastDeadline = trusted === null && _chunkD6O3NJHXjs.readFreshCleanCompatibility.call(void 0,
|
|
891
891
|
baseUrl,
|
|
892
892
|
compatibilityCommand,
|
|
893
893
|
skillsVersion
|
|
@@ -911,12 +911,12 @@ Exit codes:
|
|
|
911
911
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
912
912
|
fastDeadline
|
|
913
913
|
},
|
|
914
|
-
() =>
|
|
914
|
+
() => _chunkD6O3NJHXjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
915
915
|
command: compatibilityCommand,
|
|
916
916
|
skillsVersion,
|
|
917
917
|
persistCache: maintenance !== "off",
|
|
918
918
|
catalog: _chunkQJBJZVG6js.compatibilityCatalog.call(void 0, actionCommand),
|
|
919
|
-
...fastDeadline ? { timeoutMs:
|
|
919
|
+
...fastDeadline ? { timeoutMs: _chunkD6O3NJHXjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
920
920
|
})
|
|
921
921
|
);
|
|
922
922
|
if (compatibility.error) {
|
|
@@ -940,7 +940,7 @@ Exit codes:
|
|
|
940
940
|
response: compatibility.response
|
|
941
941
|
};
|
|
942
942
|
}
|
|
943
|
-
|
|
943
|
+
_chunkD6O3NJHXjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
944
944
|
quietAdvisory: process.argv.includes("--json")
|
|
945
945
|
});
|
|
946
946
|
return {
|
|
@@ -961,7 +961,7 @@ Exit codes:
|
|
|
961
961
|
() => _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
962
962
|
"cli.sdk_skills_sync",
|
|
963
963
|
{ baseUrl: startup.baseUrl },
|
|
964
|
-
() =>
|
|
964
|
+
() => _chunkD6O3NJHXjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
965
965
|
update: skillsUpdate,
|
|
966
966
|
mode: "detached"
|
|
967
967
|
})
|
|
@@ -985,12 +985,12 @@ Notes:
|
|
|
985
985
|
|
|
986
986
|
Examples:
|
|
987
987
|
deepline preflight
|
|
988
|
-
deepline preflight
|
|
988
|
+
deepline preflight
|
|
989
989
|
`
|
|
990
990
|
).action(async (options) => {
|
|
991
991
|
const data = await runPreflightCheck();
|
|
992
|
-
if (
|
|
993
|
-
|
|
992
|
+
if (_chunkVVFH745Ljs.shouldEmitJson.call(void 0, options.json)) {
|
|
993
|
+
_chunkVVFH745Ljs.printJson.call(void 0, data);
|
|
994
994
|
} else {
|
|
995
995
|
printPreflightHuman(data);
|
|
996
996
|
}
|
|
@@ -1012,13 +1012,13 @@ Examples:
|
|
|
1012
1012
|
try {
|
|
1013
1013
|
if (options.playRunner) {
|
|
1014
1014
|
const data2 = await runPlayRunnerHealthCheck();
|
|
1015
|
-
|
|
1015
|
+
_chunkVVFH745Ljs.printJson.call(void 0, data2);
|
|
1016
1016
|
return;
|
|
1017
1017
|
}
|
|
1018
|
-
const { DeeplineClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./client-
|
|
1018
|
+
const { DeeplineClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./client-UUNLXOHF.js")));
|
|
1019
1019
|
const client = new DeeplineClient();
|
|
1020
1020
|
const data = await client.health();
|
|
1021
|
-
|
|
1021
|
+
_chunkVVFH745Ljs.printJson.call(void 0, data);
|
|
1022
1022
|
} catch (error) {
|
|
1023
1023
|
throw new Error(
|
|
1024
1024
|
`Cannot reach Deepline API: ${error instanceof Error ? error.message : String(error)}`
|
|
@@ -1034,31 +1034,20 @@ Notes:
|
|
|
1034
1034
|
|
|
1035
1035
|
Examples:
|
|
1036
1036
|
deepline version
|
|
1037
|
-
deepline version
|
|
1037
|
+
deepline version
|
|
1038
1038
|
deepline --version
|
|
1039
1039
|
`
|
|
1040
1040
|
).action((options) => {
|
|
1041
1041
|
if (options.json) {
|
|
1042
|
-
|
|
1042
|
+
_chunkVVFH745Ljs.printCompactJson.call(void 0, { version: _chunkML2ZY7YDjs.SDK_VERSION });
|
|
1043
1043
|
return;
|
|
1044
1044
|
}
|
|
1045
|
-
process.stdout.write(`deepline ${
|
|
1045
|
+
process.stdout.write(`deepline ${_chunkML2ZY7YDjs.SDK_VERSION}
|
|
1046
1046
|
`);
|
|
1047
1047
|
});
|
|
1048
1048
|
if (process.argv.slice(2).length === 0) {
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
ok: false,
|
|
1052
|
-
exitCode: 2,
|
|
1053
|
-
code: "MISSING_COMMAND",
|
|
1054
|
-
message: "No command provided.",
|
|
1055
|
-
next: "deepline --help"
|
|
1056
|
-
});
|
|
1057
|
-
console.error("error: missing command (see: deepline --help)");
|
|
1058
|
-
} else {
|
|
1059
|
-
program.outputHelp({ error: true });
|
|
1060
|
-
console.error("\nerror: missing command (see usage above)");
|
|
1061
|
-
}
|
|
1049
|
+
program.outputHelp({ error: true });
|
|
1050
|
+
console.error("\nerror: missing command (see usage above)");
|
|
1062
1051
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
1063
1052
|
phase: "cli.main_total",
|
|
1064
1053
|
ms: Date.now() - mainStartedAt,
|
|
@@ -1071,7 +1060,7 @@ Examples:
|
|
|
1071
1060
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1072
1061
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1073
1062
|
console.error(`error: unknown command '${requestedTopLevelCommand}'`);
|
|
1074
|
-
const baseUrl =
|
|
1063
|
+
const baseUrl = _chunkML2ZY7YDjs.autoDetectBaseUrl.call(void 0, );
|
|
1075
1064
|
await ensureTransport();
|
|
1076
1065
|
const versionHint = await newerCliCommandHint(
|
|
1077
1066
|
baseUrl,
|
|
@@ -1089,8 +1078,8 @@ Examples:
|
|
|
1089
1078
|
const helpArgs = process.argv.slice(2);
|
|
1090
1079
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1091
1080
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1092
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1093
|
-
rootHelpStatus = `Version: ${
|
|
1081
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-4SXMV3CD.js")));
|
|
1082
|
+
rootHelpStatus = `Version: ${_chunkML2ZY7YDjs.SDK_VERSION}
|
|
1094
1083
|
${await authStatusLine()}
|
|
1095
1084
|
`;
|
|
1096
1085
|
}
|
|
@@ -1100,7 +1089,7 @@ ${await authStatusLine()}
|
|
|
1100
1089
|
ms: Date.now() - mainStartedAt,
|
|
1101
1090
|
ok: true
|
|
1102
1091
|
});
|
|
1103
|
-
await
|
|
1092
|
+
await _chunkD6O3NJHXjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1104
1093
|
argv: process.argv.slice(2),
|
|
1105
1094
|
startedAtMs: mainStartedAt,
|
|
1106
1095
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1125,7 +1114,7 @@ ${await authStatusLine()}
|
|
|
1125
1114
|
const commandPath = invocation.commandPath || requestedTopLevelCommand;
|
|
1126
1115
|
await ensureTransport();
|
|
1127
1116
|
const versionHint = await newerCliCommandHint(
|
|
1128
|
-
|
|
1117
|
+
_chunkML2ZY7YDjs.autoDetectBaseUrl.call(void 0, ),
|
|
1129
1118
|
commandPath
|
|
1130
1119
|
);
|
|
1131
1120
|
if (versionHint) console.error(versionHint);
|
|
@@ -1136,24 +1125,24 @@ ${await authStatusLine()}
|
|
|
1136
1125
|
process.exitCode = commanderError.code === "commander.unknownCommand" && !wantsJson ? 2 : _nullishCoalesce(commanderError.exitCode, () => ( 1));
|
|
1137
1126
|
return;
|
|
1138
1127
|
} else if (wantsJson) {
|
|
1139
|
-
|
|
1140
|
-
...
|
|
1141
|
-
...error instanceof
|
|
1128
|
+
_chunkVVFH745Ljs.printJson.call(void 0, {
|
|
1129
|
+
..._chunkVVFH745Ljs.errorToJsonPayload.call(void 0, error),
|
|
1130
|
+
...error instanceof _chunkML2ZY7YDjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1142
1131
|
});
|
|
1143
1132
|
} else if (error instanceof Error) {
|
|
1144
1133
|
console.error(`Error: ${error.message}`);
|
|
1145
|
-
if (error instanceof
|
|
1134
|
+
if (error instanceof _chunkML2ZY7YDjs.AuthError) {
|
|
1146
1135
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1147
1136
|
}
|
|
1148
|
-
const providerConcurrency =
|
|
1137
|
+
const providerConcurrency = _chunkVVFH745Ljs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1149
1138
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1150
1139
|
} else {
|
|
1151
1140
|
console.error(`Error: ${String(error)}`);
|
|
1152
1141
|
}
|
|
1153
1142
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1154
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1143
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkD6O3NJHXjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1155
1144
|
process.exitCode = failureExitCode;
|
|
1156
|
-
await
|
|
1145
|
+
await _chunkD6O3NJHXjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1157
1146
|
argv: process.argv.slice(2),
|
|
1158
1147
|
startedAtMs: mainStartedAt,
|
|
1159
1148
|
exitCode: failureExitCode,
|