deepline 0.3.387 → 0.3.388
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/cli/{auth-CKRRMJQU.mjs → auth-2DIKNI7P.mjs} +4 -4
- package/dist/cli/auth-Z4NL25WP.js +39 -0
- package/dist/cli/{billing-CVBGUOM6.js → billing-LTUXLRQO.js} +73 -73
- package/dist/cli/{billing-QXZB3SP4.mjs → billing-YAFQ5HOL.mjs} +4 -4
- package/dist/cli/{chunk-CQ6B46NN.js → chunk-2N2KHFOU.js} +9 -9
- package/dist/cli/{chunk-S7HRCOFT.js → chunk-2UFLY7CC.js} +48 -48
- package/dist/cli/{chunk-3W3AW37A.js → chunk-34I3JQML.js} +15 -15
- package/dist/cli/{chunk-CPB7PL4B.js → chunk-4GNF7MCF.js} +61 -61
- package/dist/cli/{chunk-GJGHN34W.js → chunk-5SCZSNX4.js} +26 -26
- package/dist/cli/{chunk-BXRWG6ZG.mjs → chunk-BECUIDJV.mjs} +1 -1
- package/dist/cli/{chunk-HMSWH2JW.mjs → chunk-E5TZ64CK.mjs} +6 -6
- package/dist/cli/{chunk-4HFMNLCQ.mjs → chunk-FYSQW6H7.mjs} +4 -4
- package/dist/cli/{chunk-7JETEXCL.js → chunk-G6IRNEMJ.js} +1 -1
- package/dist/cli/{chunk-FUTYFVJR.js → chunk-H7P6DX42.js} +6 -6
- package/dist/cli/{chunk-MTGIBXYZ.mjs → chunk-HSE4BI6X.mjs} +2 -2
- package/dist/cli/{chunk-UKBXVON4.js → chunk-JKDY7FUD.js} +8 -8
- package/dist/cli/{chunk-EUFASY6H.mjs → chunk-MEWZNXLA.mjs} +1 -1
- package/dist/cli/{chunk-CWZRBSMO.mjs → chunk-NRJPUSLB.mjs} +1 -1
- package/dist/cli/{chunk-4KTBZLGR.mjs → chunk-OHJRJM7E.mjs} +2 -2
- package/dist/cli/{chunk-7F5HBT3S.mjs → chunk-QPGEZ4PU.mjs} +1 -1
- package/dist/cli/{chunk-NJRWEFAY.js → chunk-RFZP7MP2.js} +8 -8
- package/dist/cli/{chunk-BEEH7ZAL.mjs → chunk-UCORN5KB.mjs} +5 -5
- package/dist/cli/{chunk-EWKW7ADZ.mjs → chunk-VJOZGWNO.mjs} +2 -2
- package/dist/cli/{chunk-DVVYOV2O.js → chunk-WETP5XUS.js} +50 -50
- package/dist/cli/{chunk-RKYFX5G5.mjs → chunk-XJ2OSKPI.mjs} +2 -2
- package/dist/cli/{chunk-MZBR5BX2.mjs → chunk-XUOAS7EU.mjs} +3 -3
- package/dist/cli/{chunk-LA6WXHEG.js → chunk-YKCMTH5P.js} +2 -2
- package/dist/cli/{chunk-LQUNC2VM.mjs → chunk-YOHRMAY4.mjs} +1 -1
- package/dist/cli/{chunk-7AOECVD3.js → chunk-YXUBGP4Y.js} +226 -226
- package/dist/cli/{chunk-A5L54JX6.js → chunk-ZFDWBWCQ.js} +4 -4
- package/dist/cli/{csv-L3NMNEK2.mjs → csv-SW5B4K6E.mjs} +3 -3
- package/dist/cli/{csv-IBQSV2LF.js → csv-Y3HV4QXT.js} +12 -12
- package/dist/cli/{db-6OPCFP3J.mjs → db-4RFE5IQD.mjs} +4 -4
- package/dist/cli/{db-AWKMYFXN.js → db-5KDJZJ6C.js} +29 -29
- package/dist/cli/{describe-IFJ34VUV.js → describe-5XNBGYTP.js} +18 -18
- package/dist/cli/{describe-NEHPRI33.mjs → describe-6DPM37PH.mjs} +8 -8
- package/dist/cli/{executions-FLGLIGRM.js → executions-HQQ6HZUQ.js} +6 -6
- package/dist/cli/{executions-LDZEOSBO.mjs → executions-W7U4YG4K.mjs} +4 -4
- package/dist/cli/{feedback-PWFQTP4G.mjs → feedback-CBYEXLGT.mjs} +3 -3
- package/dist/cli/{feedback-W3LOHQOV.js → feedback-GTFLUBFS.js} +7 -7
- package/dist/cli/{git-E3G5SPN7.mjs → git-3XPDF4K5.mjs} +4 -4
- package/dist/cli/git-F2AUBR6I.js +23 -0
- package/dist/cli/index.js +117 -105
- package/dist/cli/index.mjs +52 -40
- package/dist/cli/{legacy-noops-LLIS3SCA.js → legacy-noops-FRO5YR7L.js} +7 -7
- package/dist/cli/{legacy-noops-43UAYJOG.mjs → legacy-noops-IUBG6DMZ.mjs} +4 -4
- package/dist/cli/{monitors-VFSBTSHJ.mjs → monitors-2L3ZJT62.mjs} +4 -4
- package/dist/cli/{monitors-IRTHA34J.js → monitors-LW5N2HWG.js} +85 -85
- package/dist/cli/{org-C3BNJMYT.mjs → org-5RN6RRNU.mjs} +4 -4
- package/dist/cli/{org-3Z5SRXPW.js → org-E3ELO53D.js} +64 -64
- package/dist/cli/{play-W5XTHGLT.mjs → play-KCRWX7DC.mjs} +7 -7
- package/dist/cli/play-SUYAMCPX.js +157 -0
- package/dist/cli/{providers-W3O4DRDG.js → providers-IL7DAKQH.js} +7 -7
- package/dist/cli/{providers-ANLUHMBV.mjs → providers-WTLOWJDB.mjs} +4 -4
- package/dist/cli/{quickstart-5G65T2IR.mjs → quickstart-KXOL5CFD.mjs} +3 -3
- package/dist/cli/{quickstart-6JAZF3FG.js → quickstart-YZJTOKOX.js} +5 -5
- package/dist/cli/{search-XQRGKA3F.mjs → search-TFYOO37D.mjs} +5 -5
- package/dist/cli/search-UFKDJ5TO.js +26 -0
- package/dist/cli/{secrets-DF3EL5RU.mjs → secrets-3Q6MHCB2.mjs} +4 -4
- package/dist/cli/{secrets-PUWRCDTC.js → secrets-IANLD3A7.js} +13 -13
- package/dist/cli/{sessions-OYFE2CUC.mjs → sessions-FVLRLE6E.mjs} +4 -4
- package/dist/cli/{sessions-OTRBNAPA.js → sessions-ZCZ6FWW4.js} +5 -5
- package/dist/cli/{settings-JSB64G57.mjs → settings-4MHQZKQD.mjs} +7 -7
- package/dist/cli/{settings-R7H4JXVO.js → settings-VRNHWJLI.js} +74 -74
- package/dist/cli/{setup-PL4QRM4U.js → setup-QH6UM6IR.js} +41 -41
- package/dist/cli/{setup-AJD5R5TW.mjs → setup-R3U6EATD.mjs} +6 -6
- package/dist/cli/skills-I7URUOO7.js +28 -0
- package/dist/cli/{skills-YN2BR22T.mjs → skills-Q7BJMZTK.mjs} +4 -4
- package/dist/cli/{tools-ATIA3P4H.mjs → tools-5YA7M5EA.mjs} +6 -6
- package/dist/cli/tools-MPJGF7F2.js +40 -0
- package/dist/cli/update-EY7PSSDF.js +28 -0
- package/dist/cli/{update-CWAXNG5N.mjs → update-M6HYEZ5G.mjs} +6 -6
- package/dist/cli/{workflow-ENCTHGP4.mjs → workflow-73Q3PWVZ.mjs} +5 -5
- package/dist/cli/{workflow-O2CW5YKT.js → workflow-AAIQODIZ.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +72 -72
- 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/package.json +1 -1
- package/dist/cli/auth-M65RW5ZI.js +0 -39
- package/dist/cli/git-UJJKVNZ5.js +0 -23
- package/dist/cli/play-4QE3H5KN.js +0 -157
- package/dist/cli/search-HIY4H3T3.js +0 -26
- package/dist/cli/skills-HJXJ2R6P.js +0 -28
- package/dist/cli/tools-Y3HQI53B.js +0 -40
- package/dist/cli/update-F6RQFNQ5.js +0 -28
package/dist/cli/index.js
CHANGED
|
@@ -10,8 +10,8 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
14
|
-
require('./chunk-
|
|
13
|
+
var _chunk34I3JQMLjs = require('./chunk-34I3JQML.js');
|
|
14
|
+
require('./chunk-YKCMTH5P.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -27,7 +27,7 @@ require('./chunk-LA6WXHEG.js');
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunk4GNF7MCFjs = require('./chunk-4GNF7MCF.js');
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
@@ -42,7 +42,7 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkH7P6DX42js = require('./chunk-H7P6DX42.js');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
@@ -53,10 +53,10 @@ var _chunkFUTYFVJRjs = require('./chunk-FUTYFVJR.js');
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
var
|
|
56
|
+
var _chunkZFDWBWCQjs = require('./chunk-ZFDWBWCQ.js');
|
|
57
57
|
require('./chunk-XNYIZMNQ.js');
|
|
58
58
|
require('./chunk-7P5AA3SN.js');
|
|
59
|
-
require('./chunk-
|
|
59
|
+
require('./chunk-G6IRNEMJ.js');
|
|
60
60
|
require('./chunk-OG64RBAC.js');
|
|
61
61
|
|
|
62
62
|
|
|
@@ -126,48 +126,48 @@ var _os = require('os');
|
|
|
126
126
|
var COMMAND_GROUPS = [
|
|
127
127
|
{
|
|
128
128
|
names: ["auth"],
|
|
129
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
129
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-Z4NL25WP.js")))).registerAuthCommands
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
names: ["providers"],
|
|
133
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
133
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-IL7DAKQH.js")))).registerProviderCommands
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
names: ["search"],
|
|
137
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
137
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-UFKDJ5TO.js")))).registerSearchCommand
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
names: ["describe"],
|
|
141
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
141
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5XNBGYTP.js")))).registerDescribeCommand
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
names: ["tools"],
|
|
145
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
145
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-MPJGF7F2.js")))).registerToolsCommands
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
names: ["executions"],
|
|
149
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
149
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-HQQ6HZUQ.js")))).registerExecutionsCommands
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
names: ["plays", "runs"],
|
|
153
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
153
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-SUYAMCPX.js")))).registerPlayCommands
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
names: ["sessions"],
|
|
157
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
157
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-ZCZ6FWW4.js")))).registerSessionsCommands
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
names: ["workflows"],
|
|
161
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
161
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-AAIQODIZ.js")))).registerWorkflowCommands
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
names: ["secrets"],
|
|
165
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
165
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-IANLD3A7.js")))).registerSecretsCommands
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
names: ["settings", "notifications"],
|
|
169
169
|
load: async () => {
|
|
170
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
170
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-VRNHWJLI.js")));
|
|
171
171
|
return (p) => {
|
|
172
172
|
commands.registerSettingsCommands(p);
|
|
173
173
|
commands.registerNotificationCommands(p);
|
|
@@ -176,51 +176,51 @@ var COMMAND_GROUPS = [
|
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
names: ["billing"],
|
|
179
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
179
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-LTUXLRQO.js")))).registerBillingCommands
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
names: ["monitors"],
|
|
183
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
183
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-LW5N2HWG.js")))).registerMonitorsCommands
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
names: ["org"],
|
|
187
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
187
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-E3ELO53D.js")))).registerOrgCommands
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
names: ["git", "projects", "deployments"],
|
|
191
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
191
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-F2AUBR6I.js")))).registerGitCommands
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
names: ["csv"],
|
|
195
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
195
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-Y3HV4QXT.js")))).registerCsvCommands
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
names: ["db"],
|
|
199
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
199
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-5KDJZJ6C.js")))).registerDbCommands
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
names: ["feedback"],
|
|
203
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
203
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-GTFLUBFS.js")))).registerFeedbackCommands
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
names: ["enrich", "session", "backend"],
|
|
207
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
207
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-FRO5YR7L.js")))).registerDeprecatedCommands
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
names: ["update"],
|
|
211
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
211
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-EY7PSSDF.js")))).registerUpdateCommand
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
names: ["skills", "skills-auto-sync"],
|
|
215
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
215
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-I7URUOO7.js")))).registerSkillsCommand
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
names: ["setup", "doctor"],
|
|
219
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
219
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-QH6UM6IR.js")))).registerSetupCommands
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
names: ["quickstart"],
|
|
223
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
223
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-YZJTOKOX.js")))).registerQuickstartCommands
|
|
224
224
|
}
|
|
225
225
|
];
|
|
226
226
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -257,7 +257,7 @@ var MAX_SESSIONS = 20;
|
|
|
257
257
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
258
258
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
259
259
|
}
|
|
260
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
260
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkZFDWBWCQjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
261
261
|
const explicit = _chunkHXENYWVSjs.helpDetailFromArgv.call(void 0, argv);
|
|
262
262
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
263
263
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
@@ -339,7 +339,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
339
339
|
async function reportAutoUpdateEvent(input) {
|
|
340
340
|
let apiKey = "";
|
|
341
341
|
try {
|
|
342
|
-
apiKey =
|
|
342
|
+
apiKey = _chunkZFDWBWCQjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
343
343
|
} catch (e2) {
|
|
344
344
|
return;
|
|
345
345
|
}
|
|
@@ -355,15 +355,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
355
355
|
headers: {
|
|
356
356
|
Authorization: `Bearer ${apiKey}`,
|
|
357
357
|
"Content-Type": "application/json",
|
|
358
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
358
|
+
"User-Agent": `deepline-ts-sdk/${_chunkZFDWBWCQjs.SDK_VERSION}`,
|
|
359
359
|
"X-Deepline-Client-Family": "sdk",
|
|
360
360
|
"X-Deepline-CLI-Family": "sdk",
|
|
361
|
-
"X-Deepline-CLI-Version":
|
|
362
|
-
"X-Deepline-SDK-Version":
|
|
361
|
+
"X-Deepline-CLI-Version": _chunkZFDWBWCQjs.SDK_VERSION,
|
|
362
|
+
"X-Deepline-SDK-Version": _chunkZFDWBWCQjs.SDK_VERSION
|
|
363
363
|
},
|
|
364
364
|
body: JSON.stringify({
|
|
365
365
|
event: input.event,
|
|
366
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
366
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkZFDWBWCQjs.SDK_VERSION,
|
|
367
367
|
target_version: input.response.latest,
|
|
368
368
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
369
369
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -382,7 +382,7 @@ function envTruthy(name) {
|
|
|
382
382
|
return value === "1" || value === "true" || value === "yes";
|
|
383
383
|
}
|
|
384
384
|
function shouldSkipSelfUpdate(policy) {
|
|
385
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
385
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk34I3JQMLjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk4GNF7MCFjs.isCiEnvironment.call(void 0, );
|
|
386
386
|
}
|
|
387
387
|
function parseSemver(version) {
|
|
388
388
|
const trimmed = _optionalChain([version, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]);
|
|
@@ -412,7 +412,7 @@ function compareSemver(left, right) {
|
|
|
412
412
|
}
|
|
413
413
|
function isDowngradeAutoUpdateResponse(response) {
|
|
414
414
|
const target = _optionalChain([response, 'optionalAccess', _19 => _19.latest, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
|
|
415
|
-
const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
415
|
+
const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkZFDWBWCQjs.SDK_VERSION;
|
|
416
416
|
if (!target) return false;
|
|
417
417
|
return compareSemver(target, current) < 0;
|
|
418
418
|
}
|
|
@@ -451,7 +451,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
451
451
|
}
|
|
452
452
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
453
453
|
const target = response.latest;
|
|
454
|
-
const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) ||
|
|
454
|
+
const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) || _chunkZFDWBWCQjs.SDK_VERSION;
|
|
455
455
|
process.stderr.write(
|
|
456
456
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
457
457
|
`
|
|
@@ -459,12 +459,12 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
459
459
|
return false;
|
|
460
460
|
}
|
|
461
461
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
462
|
-
const plan =
|
|
462
|
+
const plan = _chunk34I3JQMLjs.resolveUpdatePlan.call(void 0, {
|
|
463
463
|
packageSpec,
|
|
464
464
|
requireVerifiedNpmOwnership: true,
|
|
465
465
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
466
466
|
});
|
|
467
|
-
if (!
|
|
467
|
+
if (!_chunk34I3JQMLjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
468
468
|
return false;
|
|
469
469
|
}
|
|
470
470
|
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";
|
|
@@ -478,7 +478,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
478
478
|
event: "started",
|
|
479
479
|
installKind: plan.kind
|
|
480
480
|
});
|
|
481
|
-
const updateResult = await
|
|
481
|
+
const updateResult = await _chunk34I3JQMLjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
482
482
|
if (updateResult.status === "skipped_previous_failure") {
|
|
483
483
|
void reportAutoUpdateEvent({
|
|
484
484
|
baseUrl,
|
|
@@ -568,6 +568,10 @@ function streamOutput({
|
|
|
568
568
|
function shouldReport(stdout, stderr) {
|
|
569
569
|
return stdout.epipe || stderr.epipe || stdout.lines + stderr.lines > REPORT_MIN_LINES;
|
|
570
570
|
}
|
|
571
|
+
function toolName(action) {
|
|
572
|
+
const [toolId] = _optionalChain([action, 'optionalAccess', _30 => _30.path]) === "tools execute" ? action.args : [];
|
|
573
|
+
return typeof toolId === "string" ? toolId : null;
|
|
574
|
+
}
|
|
571
575
|
function chunkText(chunk) {
|
|
572
576
|
if (typeof chunk === "string") return chunk;
|
|
573
577
|
if (chunk instanceof Uint8Array) return Buffer.from(chunk).toString();
|
|
@@ -597,14 +601,14 @@ function watch(stream) {
|
|
|
597
601
|
}
|
|
598
602
|
async function postCommandOutput(body) {
|
|
599
603
|
try {
|
|
600
|
-
const baseUrl =
|
|
601
|
-
const apiKey =
|
|
604
|
+
const baseUrl = _chunkZFDWBWCQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
605
|
+
const apiKey = _chunkZFDWBWCQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
602
606
|
if (!apiKey) return;
|
|
603
|
-
const agentSessionId =
|
|
607
|
+
const agentSessionId = _chunkZFDWBWCQjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
604
608
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
605
609
|
method: "POST",
|
|
606
610
|
headers: {
|
|
607
|
-
...
|
|
611
|
+
..._chunk4GNF7MCFjs.failureReportHeaders.call(void 0, apiKey),
|
|
608
612
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
609
613
|
},
|
|
610
614
|
body: JSON.stringify(body),
|
|
@@ -613,23 +617,24 @@ async function postCommandOutput(body) {
|
|
|
613
617
|
} catch (e4) {
|
|
614
618
|
}
|
|
615
619
|
}
|
|
616
|
-
function startOutputSizeReporting(
|
|
620
|
+
function startOutputSizeReporting(invocation, streams = {
|
|
617
621
|
stdout: process.stdout,
|
|
618
622
|
stderr: process.stderr
|
|
619
623
|
}) {
|
|
620
624
|
const stdoutWatch = watch(streams.stdout);
|
|
621
625
|
const stderrWatch = watch(streams.stderr);
|
|
622
|
-
return async (
|
|
623
|
-
if (
|
|
626
|
+
return async (finished) => {
|
|
627
|
+
if (_chunk4GNF7MCFjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
624
628
|
const [stdout, stderr] = await Promise.all([
|
|
625
629
|
stdoutWatch.settled(),
|
|
626
630
|
stderrWatch.settled()
|
|
627
631
|
]);
|
|
628
632
|
if (!shouldReport(stdout, stderr)) return;
|
|
629
633
|
await postCommandOutput({
|
|
630
|
-
command:
|
|
631
|
-
|
|
632
|
-
|
|
634
|
+
command: _chunk4GNF7MCFjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
635
|
+
tool: toolName(finished.action),
|
|
636
|
+
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
637
|
+
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
633
638
|
stdout_chars: stdout.chars,
|
|
634
639
|
stderr_chars: stderr.chars,
|
|
635
640
|
stdout_lines: stdout.lines,
|
|
@@ -683,7 +688,7 @@ function isAutoUpdateSettingsInvocation() {
|
|
|
683
688
|
function compatibilityCommandPath(command) {
|
|
684
689
|
const names = [];
|
|
685
690
|
let current = command;
|
|
686
|
-
while (_optionalChain([current, 'optionalAccess',
|
|
691
|
+
while (_optionalChain([current, 'optionalAccess', _31 => _31.parent])) {
|
|
687
692
|
const name = current.name();
|
|
688
693
|
if (name) names.unshift(name);
|
|
689
694
|
current = current.parent;
|
|
@@ -700,7 +705,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
700
705
|
);
|
|
701
706
|
}
|
|
702
707
|
async function runPlayRunnerHealthCheck() {
|
|
703
|
-
|
|
708
|
+
_chunkZFDWBWCQjs.resolveConfig.call(void 0, );
|
|
704
709
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
705
710
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
706
711
|
try {
|
|
@@ -730,7 +735,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
730
735
|
});
|
|
731
736
|
let exitCode = 1;
|
|
732
737
|
try {
|
|
733
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
738
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-SUYAMCPX.js")));
|
|
734
739
|
exitCode = await handlePlayRun([
|
|
735
740
|
file,
|
|
736
741
|
"--input",
|
|
@@ -770,7 +775,7 @@ function preflightErrorMessage(error) {
|
|
|
770
775
|
return error instanceof Error ? error.message : String(error);
|
|
771
776
|
}
|
|
772
777
|
async function runPreflightCheck() {
|
|
773
|
-
const baseUrl =
|
|
778
|
+
const baseUrl = _chunkZFDWBWCQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
774
779
|
const healthController = new AbortController();
|
|
775
780
|
const healthTimeout = setTimeout(
|
|
776
781
|
() => healthController.abort(),
|
|
@@ -785,9 +790,9 @@ async function runPreflightCheck() {
|
|
|
785
790
|
version: pickString(payload, "version")
|
|
786
791
|
};
|
|
787
792
|
}).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
|
|
788
|
-
const apiKey =
|
|
789
|
-
const http = apiKey ? new (0,
|
|
790
|
-
|
|
793
|
+
const apiKey = _chunkZFDWBWCQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
794
|
+
const http = apiKey ? new (0, _chunkZFDWBWCQjs.HttpClient)(
|
|
795
|
+
_chunkZFDWBWCQjs.resolveConfig.call(void 0, {
|
|
791
796
|
baseUrl,
|
|
792
797
|
apiKey,
|
|
793
798
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -832,7 +837,7 @@ async function runPreflightCheck() {
|
|
|
832
837
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
833
838
|
return {
|
|
834
839
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
835
|
-
cli_version:
|
|
840
|
+
cli_version: _chunkZFDWBWCQjs.SDK_VERSION,
|
|
836
841
|
host: baseUrl,
|
|
837
842
|
health: {
|
|
838
843
|
status: healthResult.status,
|
|
@@ -858,7 +863,7 @@ async function runPreflightCheck() {
|
|
|
858
863
|
{
|
|
859
864
|
title: "preflight",
|
|
860
865
|
lines: [
|
|
861
|
-
`cli: ${
|
|
866
|
+
`cli: ${_chunkZFDWBWCQjs.SDK_VERSION}`,
|
|
862
867
|
`host: ${baseUrl}`,
|
|
863
868
|
`health: ${healthResult.status}`,
|
|
864
869
|
`auth: ${authStatus}`,
|
|
@@ -872,8 +877,8 @@ async function runPreflightCheck() {
|
|
|
872
877
|
}
|
|
873
878
|
function printPreflightHuman(data) {
|
|
874
879
|
const render = data.render;
|
|
875
|
-
const lines = _optionalChain([render, 'optionalAccess',
|
|
876
|
-
if (_optionalChain([lines, 'optionalAccess',
|
|
880
|
+
const lines = _optionalChain([render, 'optionalAccess', _32 => _32.sections, 'optionalAccess', _33 => _33.flatMap, 'call', _34 => _34((section) => _nullishCoalesce(section.lines, () => ( [])))]);
|
|
881
|
+
if (_optionalChain([lines, 'optionalAccess', _35 => _35.length])) {
|
|
877
882
|
process.stdout.write(`${lines.join("\n")}
|
|
878
883
|
`);
|
|
879
884
|
return;
|
|
@@ -883,12 +888,12 @@ function printPreflightHuman(data) {
|
|
|
883
888
|
}
|
|
884
889
|
async function newerCliCommandHint(baseUrl, command) {
|
|
885
890
|
if (!command.trim()) return null;
|
|
886
|
-
const { response, error } = await
|
|
891
|
+
const { response, error } = await _chunk4GNF7MCFjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
887
892
|
if (error || !response) return null;
|
|
888
893
|
const introduced = response.command_introduced_in;
|
|
889
894
|
if (introduced) {
|
|
890
895
|
return [
|
|
891
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
896
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkZFDWBWCQjs.SDK_VERSION}.`,
|
|
892
897
|
` ${introduced.reason}`,
|
|
893
898
|
` Update with: ${response.update_command}`,
|
|
894
899
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -897,11 +902,11 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
897
902
|
if (!response.update_required) return null;
|
|
898
903
|
return [
|
|
899
904
|
response.message,
|
|
900
|
-
` Installed: ${
|
|
905
|
+
` Installed: ${_chunkZFDWBWCQjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
901
906
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
902
907
|
].join("\n");
|
|
903
908
|
}
|
|
904
|
-
async function runMain(ensureTransport) {
|
|
909
|
+
async function runMain(ensureTransport, onAction) {
|
|
905
910
|
const mainStartedAt = Date.now();
|
|
906
911
|
let rootHelpStatus = "";
|
|
907
912
|
_chunkAYHLUHE5js.recordCliTrace.call(void 0, {
|
|
@@ -911,12 +916,12 @@ async function runMain(ensureTransport) {
|
|
|
911
916
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
912
917
|
const progress = printStartupPhase ? _chunkWJYPBHTEjs.createCliProgress.call(void 0, true) : null;
|
|
913
918
|
if (printStartupPhase) {
|
|
914
|
-
_optionalChain([progress, 'optionalAccess',
|
|
919
|
+
_optionalChain([progress, 'optionalAccess', _36 => _36.phase, 'call', _37 => _37("loading deepline cli")]);
|
|
915
920
|
}
|
|
916
921
|
const program = new (0, _commander.Command)();
|
|
917
922
|
program.name("deepline").description(
|
|
918
923
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
919
|
-
).version(
|
|
924
|
+
).version(_chunkZFDWBWCQjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
920
925
|
"--maintenance <policy>",
|
|
921
926
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
922
927
|
parseCliMaintenancePolicy,
|
|
@@ -966,13 +971,17 @@ Exit codes:
|
|
|
966
971
|
return _chunkHXENYWVSjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
967
972
|
});
|
|
968
973
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
974
|
+
onAction({
|
|
975
|
+
path: compatibilityCommandPath(actionCommand),
|
|
976
|
+
args: actionCommand.processedArgs
|
|
977
|
+
});
|
|
969
978
|
const maintenance = resolveCliMaintenancePolicy(
|
|
970
979
|
actionCommand.optsWithGlobals()
|
|
971
980
|
);
|
|
972
981
|
if (actionCommand.name() !== "version") {
|
|
973
982
|
await ensureTransport();
|
|
974
983
|
}
|
|
975
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
984
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunk4GNF7MCFjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
976
985
|
return;
|
|
977
986
|
}
|
|
978
987
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
@@ -982,19 +991,19 @@ Exit codes:
|
|
|
982
991
|
}
|
|
983
992
|
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
984
993
|
if (printStartupPhase) {
|
|
985
|
-
_optionalChain([progress, 'optionalAccess',
|
|
994
|
+
_optionalChain([progress, 'optionalAccess', _38 => _38.phase, 'call', _39 => _39("checking sdk compatibility")]);
|
|
986
995
|
}
|
|
987
996
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
988
|
-
const baseUrl =
|
|
989
|
-
if (maintenance !== "off")
|
|
997
|
+
const baseUrl = _chunkZFDWBWCQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
998
|
+
if (maintenance !== "off") _chunk4GNF7MCFjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
990
999
|
const shouldDeferSkillsSync = maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
991
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
992
|
-
const trusted =
|
|
1000
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkZFDWBWCQjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1001
|
+
const trusted = _chunk4GNF7MCFjs.readTrustedCleanCompatibility.call(void 0,
|
|
993
1002
|
baseUrl,
|
|
994
1003
|
compatibilityCommand,
|
|
995
1004
|
skillsVersion
|
|
996
1005
|
);
|
|
997
|
-
const fastDeadline = trusted === null &&
|
|
1006
|
+
const fastDeadline = trusted === null && _chunk4GNF7MCFjs.readFreshCleanCompatibility.call(void 0,
|
|
998
1007
|
baseUrl,
|
|
999
1008
|
compatibilityCommand,
|
|
1000
1009
|
skillsVersion
|
|
@@ -1018,12 +1027,12 @@ Exit codes:
|
|
|
1018
1027
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
1019
1028
|
fastDeadline
|
|
1020
1029
|
},
|
|
1021
|
-
() =>
|
|
1030
|
+
() => _chunk4GNF7MCFjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1022
1031
|
command: compatibilityCommand,
|
|
1023
1032
|
skillsVersion,
|
|
1024
1033
|
persistCache: maintenance !== "off",
|
|
1025
1034
|
catalog: _chunkQJBJZVG6js.compatibilityCatalog.call(void 0, actionCommand),
|
|
1026
|
-
...fastDeadline ? { timeoutMs:
|
|
1035
|
+
...fastDeadline ? { timeoutMs: _chunk4GNF7MCFjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
1027
1036
|
})
|
|
1028
1037
|
);
|
|
1029
1038
|
if (compatibility.error) {
|
|
@@ -1047,7 +1056,7 @@ Exit codes:
|
|
|
1047
1056
|
response: compatibility.response
|
|
1048
1057
|
};
|
|
1049
1058
|
}
|
|
1050
|
-
|
|
1059
|
+
_chunk4GNF7MCFjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
1051
1060
|
quietAdvisory: process.argv.includes("--json")
|
|
1052
1061
|
});
|
|
1053
1062
|
return {
|
|
@@ -1059,7 +1068,7 @@ Exit codes:
|
|
|
1059
1068
|
});
|
|
1060
1069
|
if (!startup.shouldContinue) return;
|
|
1061
1070
|
if (printStartupPhase) {
|
|
1062
|
-
_optionalChain([progress, 'optionalAccess',
|
|
1071
|
+
_optionalChain([progress, 'optionalAccess', _40 => _40.phase, 'call', _41 => _41("checking sdk skills")]);
|
|
1063
1072
|
}
|
|
1064
1073
|
if (!startup.shouldDeferSkillsSync) {
|
|
1065
1074
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
@@ -1068,7 +1077,7 @@ Exit codes:
|
|
|
1068
1077
|
() => _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
1069
1078
|
"cli.sdk_skills_sync",
|
|
1070
1079
|
{ baseUrl: startup.baseUrl },
|
|
1071
|
-
() =>
|
|
1080
|
+
() => _chunk4GNF7MCFjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1072
1081
|
update: skillsUpdate,
|
|
1073
1082
|
mode: "detached"
|
|
1074
1083
|
})
|
|
@@ -1096,8 +1105,8 @@ Examples:
|
|
|
1096
1105
|
`
|
|
1097
1106
|
).action(async (options) => {
|
|
1098
1107
|
const data = await runPreflightCheck();
|
|
1099
|
-
if (
|
|
1100
|
-
|
|
1108
|
+
if (_chunkH7P6DX42js.shouldEmitJson.call(void 0, options.json)) {
|
|
1109
|
+
_chunkH7P6DX42js.printJson.call(void 0, data);
|
|
1101
1110
|
} else {
|
|
1102
1111
|
printPreflightHuman(data);
|
|
1103
1112
|
}
|
|
@@ -1119,7 +1128,7 @@ Examples:
|
|
|
1119
1128
|
).action(async (options) => {
|
|
1120
1129
|
if (options.playRunner) {
|
|
1121
1130
|
const data = await runPlayRunnerHealthCheck();
|
|
1122
|
-
|
|
1131
|
+
_chunkH7P6DX42js.printCommandEnvelope.call(void 0, data, {
|
|
1123
1132
|
json: options.json,
|
|
1124
1133
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1125
1134
|
`
|
|
@@ -1127,15 +1136,15 @@ Examples:
|
|
|
1127
1136
|
return;
|
|
1128
1137
|
}
|
|
1129
1138
|
try {
|
|
1130
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1131
|
-
const baseUrl =
|
|
1139
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-Z4NL25WP.js")));
|
|
1140
|
+
const baseUrl = _chunkZFDWBWCQjs.resolveBaseUrlOnly.call(void 0, );
|
|
1132
1141
|
const [{ status, data }, banner] = await Promise.all([
|
|
1133
1142
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1134
1143
|
readStatusBanner(baseUrl)
|
|
1135
1144
|
]);
|
|
1136
1145
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1137
1146
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1138
|
-
|
|
1147
|
+
_chunkH7P6DX42js.printCommandEnvelope.call(void 0,
|
|
1139
1148
|
{ ...data, status_banner: banner },
|
|
1140
1149
|
{
|
|
1141
1150
|
json: options.json,
|
|
@@ -1163,10 +1172,10 @@ Examples:
|
|
|
1163
1172
|
`
|
|
1164
1173
|
).action((options) => {
|
|
1165
1174
|
if (options.json) {
|
|
1166
|
-
|
|
1175
|
+
_chunkH7P6DX42js.printCompactJson.call(void 0, { version: _chunkZFDWBWCQjs.SDK_VERSION });
|
|
1167
1176
|
return;
|
|
1168
1177
|
}
|
|
1169
|
-
process.stdout.write(`deepline ${
|
|
1178
|
+
process.stdout.write(`deepline ${_chunkZFDWBWCQjs.SDK_VERSION}
|
|
1170
1179
|
`);
|
|
1171
1180
|
});
|
|
1172
1181
|
if (process.argv.slice(2).length === 0) {
|
|
@@ -1184,7 +1193,7 @@ Examples:
|
|
|
1184
1193
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1185
1194
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1186
1195
|
console.error(`error: unknown command '${requestedTopLevelCommand}'`);
|
|
1187
|
-
const baseUrl =
|
|
1196
|
+
const baseUrl = _chunkZFDWBWCQjs.autoDetectBaseUrl.call(void 0, );
|
|
1188
1197
|
await ensureTransport();
|
|
1189
1198
|
const versionHint = await newerCliCommandHint(
|
|
1190
1199
|
baseUrl,
|
|
@@ -1202,8 +1211,8 @@ Examples:
|
|
|
1202
1211
|
const helpArgs = process.argv.slice(2);
|
|
1203
1212
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1204
1213
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1205
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1206
|
-
rootHelpStatus = `Version: ${
|
|
1214
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-Z4NL25WP.js")));
|
|
1215
|
+
rootHelpStatus = `Version: ${_chunkZFDWBWCQjs.SDK_VERSION}
|
|
1207
1216
|
${await authStatusLine()}
|
|
1208
1217
|
`;
|
|
1209
1218
|
}
|
|
@@ -1213,7 +1222,7 @@ ${await authStatusLine()}
|
|
|
1213
1222
|
ms: Date.now() - mainStartedAt,
|
|
1214
1223
|
ok: true
|
|
1215
1224
|
});
|
|
1216
|
-
await
|
|
1225
|
+
await _chunk4GNF7MCFjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1217
1226
|
argv: process.argv.slice(2),
|
|
1218
1227
|
startedAtMs: mainStartedAt,
|
|
1219
1228
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1226,7 +1235,7 @@ ${await authStatusLine()}
|
|
|
1226
1235
|
ok: false,
|
|
1227
1236
|
error: error instanceof Error ? error.message : String(error)
|
|
1228
1237
|
});
|
|
1229
|
-
_optionalChain([progress, 'optionalAccess',
|
|
1238
|
+
_optionalChain([progress, 'optionalAccess', _42 => _42.fail, 'call', _43 => _43()]);
|
|
1230
1239
|
const wantsJson = process.argv.includes("--json");
|
|
1231
1240
|
if (commanderError) {
|
|
1232
1241
|
if ([
|
|
@@ -1238,7 +1247,7 @@ ${await authStatusLine()}
|
|
|
1238
1247
|
const commandPath = invocation.commandPath || requestedTopLevelCommand;
|
|
1239
1248
|
await ensureTransport();
|
|
1240
1249
|
const versionHint = await newerCliCommandHint(
|
|
1241
|
-
|
|
1250
|
+
_chunkZFDWBWCQjs.autoDetectBaseUrl.call(void 0, ),
|
|
1242
1251
|
commandPath
|
|
1243
1252
|
);
|
|
1244
1253
|
if (versionHint) console.error(versionHint);
|
|
@@ -1249,24 +1258,24 @@ ${await authStatusLine()}
|
|
|
1249
1258
|
process.exitCode = commanderError.code === "commander.unknownCommand" && !wantsJson ? 2 : _nullishCoalesce(commanderError.exitCode, () => ( 1));
|
|
1250
1259
|
return;
|
|
1251
1260
|
} else if (wantsJson) {
|
|
1252
|
-
|
|
1253
|
-
...
|
|
1254
|
-
...error instanceof
|
|
1261
|
+
_chunkH7P6DX42js.printJson.call(void 0, {
|
|
1262
|
+
..._chunkH7P6DX42js.errorToJsonPayload.call(void 0, error),
|
|
1263
|
+
...error instanceof _chunkZFDWBWCQjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1255
1264
|
});
|
|
1256
1265
|
} else if (error instanceof Error) {
|
|
1257
1266
|
console.error(`Error: ${error.message}`);
|
|
1258
|
-
if (error instanceof
|
|
1267
|
+
if (error instanceof _chunkZFDWBWCQjs.AuthError) {
|
|
1259
1268
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1260
1269
|
}
|
|
1261
|
-
const providerConcurrency =
|
|
1270
|
+
const providerConcurrency = _chunkH7P6DX42js.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1262
1271
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1263
1272
|
} else {
|
|
1264
1273
|
console.error(`Error: ${String(error)}`);
|
|
1265
1274
|
}
|
|
1266
1275
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1267
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1276
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunk4GNF7MCFjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1268
1277
|
process.exitCode = failureExitCode;
|
|
1269
|
-
await
|
|
1278
|
+
await _chunk4GNF7MCFjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1270
1279
|
argv: process.argv.slice(2),
|
|
1271
1280
|
startedAtMs: mainStartedAt,
|
|
1272
1281
|
exitCode: failureExitCode,
|
|
@@ -1286,7 +1295,7 @@ async function main() {
|
|
|
1286
1295
|
"http_proxy",
|
|
1287
1296
|
"HTTPS_PROXY",
|
|
1288
1297
|
"https_proxy"
|
|
1289
|
-
].some((name) => _optionalChain([process, 'access',
|
|
1298
|
+
].some((name) => _optionalChain([process, 'access', _44 => _44.env, 'access', _45 => _45[name], 'optionalAccess', _46 => _46.trim, 'call', _47 => _47()]));
|
|
1290
1299
|
if (!process.versions.bun || hasProxy) {
|
|
1291
1300
|
const { configureCliTransport } = await Promise.resolve().then(() => _interopRequireWildcard(require("./proxy-env-ZV2WZFAT.js")));
|
|
1292
1301
|
disposeTransport = configureCliTransport();
|
|
@@ -1296,12 +1305,15 @@ async function main() {
|
|
|
1296
1305
|
argv: process.argv.slice(2),
|
|
1297
1306
|
startedAtMs: Date.now()
|
|
1298
1307
|
});
|
|
1308
|
+
let action = null;
|
|
1299
1309
|
try {
|
|
1300
|
-
await runMain(ensureTransport)
|
|
1310
|
+
await runMain(ensureTransport, (dispatched) => {
|
|
1311
|
+
action = dispatched;
|
|
1312
|
+
});
|
|
1301
1313
|
await ensureTransport();
|
|
1302
|
-
await reportOutputSize(process.exitCode);
|
|
1314
|
+
await reportOutputSize({ exitCode: process.exitCode, action });
|
|
1303
1315
|
} finally {
|
|
1304
|
-
await _optionalChain([disposeTransport, 'optionalCall',
|
|
1316
|
+
await _optionalChain([disposeTransport, 'optionalCall', _48 => _48()]);
|
|
1305
1317
|
}
|
|
1306
1318
|
}
|
|
1307
1319
|
var DEV_CLI_AWAIT_MAIN = Symbol.for("@deepline/sdk/dev-cli-await-main");
|