deepline 0.3.403 → 0.3.405
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/client.ts +4 -4
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +114 -50
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +6 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +379 -133
- package/dist/cli/{auth-AHF355KV.mjs → auth-D4GXO4IN.mjs} +4 -4
- package/dist/cli/auth-IJKAKAHG.js +40 -0
- package/dist/cli/{billing-LSZECOCV.mjs → billing-NVV5VSUJ.mjs} +4 -4
- package/dist/cli/{billing-5L5X2OAC.js → billing-TQ4UM4D4.js} +73 -73
- package/dist/cli/{chunk-VNO3VAJT.mjs → chunk-3DWMYKWU.mjs} +1 -1
- package/dist/cli/{chunk-CC3QT7Q5.mjs → chunk-3FF3SPSE.mjs} +2 -2
- package/dist/cli/{chunk-JZ7TJL7G.js → chunk-3MVBOBV4.js} +2 -2
- package/dist/cli/{chunk-RXVJYS76.mjs → chunk-4ONG2MWB.mjs} +1 -1
- package/dist/cli/{chunk-57GMG2DV.js → chunk-6HXTHMHZ.js} +26 -26
- package/dist/cli/{chunk-SGPGIC3M.js → chunk-AAIV3ACM.js} +50 -50
- package/dist/cli/{chunk-QN55SQYI.mjs → chunk-B6ME2XIO.mjs} +5 -5
- package/dist/cli/{chunk-FQL75GML.js → chunk-BZBV2GY2.js} +8 -8
- package/dist/cli/{chunk-V4PLPRWQ.js → chunk-CB6AJNHI.js} +4 -4
- package/dist/cli/{chunk-JHNYOTWR.mjs → chunk-EKWJXPIX.mjs} +1 -1
- package/dist/cli/{chunk-GJECLPJP.mjs → chunk-EVLCUV64.mjs} +4 -4
- package/dist/cli/{chunk-C27DGNII.mjs → chunk-HG5PMETP.mjs} +5 -5
- package/dist/cli/{chunk-DJSPH5T2.js → chunk-HYAA3F6U.js} +10 -10
- package/dist/cli/{chunk-4BWZA57I.js → chunk-JPNBAZBR.js} +6 -6
- package/dist/cli/{chunk-77FZLY5L.js → chunk-LM2JHRZM.js} +1 -1
- package/dist/cli/{chunk-KTBMDDEQ.mjs → chunk-MPXPTSGJ.mjs} +3 -3
- package/dist/cli/{chunk-J3OZIYU4.js → chunk-MZ4LBCV7.js} +15 -15
- package/dist/cli/{chunk-MJ4OWXFM.js → chunk-NAJEB3N4.js} +44 -44
- package/dist/cli/{chunk-5SGQF4QF.js → chunk-NLT6GCWZ.js} +8 -8
- package/dist/cli/{chunk-HPEIY4UR.mjs → chunk-TECEX3K5.mjs} +3 -3
- package/dist/cli/{chunk-BYBRENKM.mjs → chunk-TPYRDAU7.mjs} +1 -1
- package/dist/cli/{chunk-VYDYDELF.js → chunk-WGX7SIGL.js} +65 -65
- package/dist/cli/{chunk-B4Y2CZKS.mjs → chunk-YRZIKG47.mjs} +2 -2
- package/dist/cli/{chunk-MQWZYCQJ.mjs → chunk-YX7JSSJ2.mjs} +2 -2
- package/dist/cli/{csv-IO2BKRNX.js → csv-5AASYDRF.js} +12 -12
- package/dist/cli/{csv-J6ZPUWE4.mjs → csv-H7LD6IQK.mjs} +3 -3
- package/dist/cli/{db-QICV6JWY.mjs → db-CG3UQUA7.mjs} +4 -4
- package/dist/cli/{db-ZVRBVSPU.js → db-MJBZBDWZ.js} +25 -25
- package/dist/cli/{describe-WX6VWGH6.js → describe-2A7GARI2.js} +10 -10
- package/dist/cli/{describe-YA35XS55.mjs → describe-INFC5ACQ.mjs} +6 -6
- package/dist/cli/{executions-YQAUBJLS.js → executions-AUDQ5HOJ.js} +6 -6
- package/dist/cli/{executions-X3PDLFKO.mjs → executions-DO47P6MX.mjs} +4 -4
- package/dist/cli/{feedback-M2WMOY5B.js → feedback-MNWNDZVU.js} +7 -7
- package/dist/cli/{feedback-HSERSHDV.mjs → feedback-XGZSJM2N.mjs} +3 -3
- package/dist/cli/{git-3JMX455D.mjs → git-2ECFQKAA.mjs} +4 -4
- package/dist/cli/git-6S64UBWC.js +24 -0
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-EMUCJ5KW.js → legacy-noops-3UZTD4DS.js} +7 -7
- package/dist/cli/{legacy-noops-OKC6VDD3.mjs → legacy-noops-534TKEMO.mjs} +4 -4
- package/dist/cli/{monitors-RH3FIA63.mjs → monitors-5ARELE2S.mjs} +4 -4
- package/dist/cli/{monitors-M6DU2JXC.js → monitors-G4S54JSX.js} +84 -84
- package/dist/cli/{org-KK3C5J6E.mjs → org-BAMOOXQW.mjs} +4 -4
- package/dist/cli/{org-BZDZO32O.js → org-RIWF2TLI.js} +64 -64
- package/dist/cli/{play-ZKYHO2KC.js → play-32XSQMFK.js} +231 -231
- package/dist/cli/{play-QXBNDI6C.mjs → play-WV4UNGPR.mjs} +7 -7
- package/dist/cli/{providers-JRN5FNXI.mjs → providers-SMSRO23R.mjs} +4 -4
- package/dist/cli/{providers-VCT7HFYW.js → providers-XKY2CNKH.js} +7 -7
- package/dist/cli/{quickstart-Y33XAQDY.mjs → quickstart-BFYYEVSS.mjs} +3 -3
- package/dist/cli/{quickstart-X2IC2U6U.js → quickstart-Q2TA72HD.js} +5 -5
- package/dist/cli/search-GK7P3AZY.js +30 -0
- package/dist/cli/{search-R443WBN7.mjs → search-I2TVB2P5.mjs} +5 -5
- package/dist/cli/{secrets-U6V4M7R3.js → secrets-B4NYTSL7.js} +13 -13
- package/dist/cli/{secrets-EUKR5NG2.mjs → secrets-BHKICIE3.mjs} +4 -4
- package/dist/cli/{sessions-RZVHJSVB.mjs → sessions-IOR2ZNNH.mjs} +4 -4
- package/dist/cli/{sessions-IPKYJT4M.js → sessions-XY2UREJ7.js} +5 -5
- package/dist/cli/{settings-W4YFY5JJ.js → settings-ASGROQDE.js} +74 -74
- package/dist/cli/{settings-FKU7KJ24.mjs → settings-W6S7B4NH.mjs} +7 -7
- package/dist/cli/{setup-6WIECL4V.mjs → setup-UUWGI3IN.mjs} +6 -6
- package/dist/cli/{setup-BEIN6536.js → setup-YIYQ73OV.js} +41 -41
- package/dist/cli/{skills-CV72BOP7.mjs → skills-CHA4QCGI.mjs} +4 -4
- package/dist/cli/skills-LKNKHB2I.js +29 -0
- package/dist/cli/{tools-2ADAYBNB.js → tools-43ZFJWAQ.js} +7 -7
- package/dist/cli/{tools-2SH4RIFD.mjs → tools-PMZDYKTT.mjs} +6 -6
- package/dist/cli/{update-YTR4JUPG.mjs → update-6VSEGTSG.mjs} +6 -6
- package/dist/cli/update-R7FODDIW.js +29 -0
- package/dist/cli/{workflow-446CNNRV.js → workflow-26EOXZ7M.js} +15 -15
- package/dist/cli/{workflow-BBSL2QKK.mjs → workflow-SVMVLQOF.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +70 -70
- 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-O7A7JS2M.js +0 -40
- package/dist/cli/git-IUDHAE5O.js +0 -24
- package/dist/cli/search-7257KVSQ.js +0 -30
- package/dist/cli/skills-A7ATFQEL.js +0 -29
- package/dist/cli/update-AUYYCJUT.js +0 -29
package/dist/cli/index.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
8
|
-
require('./chunk-
|
|
7
|
+
var _chunkMZ4LBCV7js = require('./chunk-MZ4LBCV7.js');
|
|
8
|
+
require('./chunk-3MVBOBV4.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -22,7 +22,7 @@ require('./chunk-JZ7TJL7G.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkWGX7SIGLjs = require('./chunk-WGX7SIGL.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
@@ -44,7 +44,7 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
47
|
+
var _chunkJPNBAZBRjs = require('./chunk-JPNBAZBR.js');
|
|
48
48
|
|
|
49
49
|
|
|
50
50
|
|
|
@@ -54,13 +54,13 @@ var _chunk4BWZA57Ijs = require('./chunk-4BWZA57I.js');
|
|
|
54
54
|
|
|
55
55
|
|
|
56
56
|
|
|
57
|
-
var
|
|
57
|
+
var _chunkCB6AJNHIjs = require('./chunk-CB6AJNHI.js');
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
var _chunkQ2E4E4FJjs = require('./chunk-Q2E4E4FJ.js');
|
|
61
61
|
require('./chunk-XNYIZMNQ.js');
|
|
62
62
|
require('./chunk-7P5AA3SN.js');
|
|
63
|
-
require('./chunk-
|
|
63
|
+
require('./chunk-LM2JHRZM.js');
|
|
64
64
|
require('./chunk-OG64RBAC.js');
|
|
65
65
|
|
|
66
66
|
|
|
@@ -130,48 +130,48 @@ var _os = require('os');
|
|
|
130
130
|
var COMMAND_GROUPS = [
|
|
131
131
|
{
|
|
132
132
|
names: ["auth"],
|
|
133
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
133
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-IJKAKAHG.js")))).registerAuthCommands
|
|
134
134
|
},
|
|
135
135
|
{
|
|
136
136
|
names: ["providers"],
|
|
137
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
137
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-XKY2CNKH.js")))).registerProviderCommands
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
names: ["search"],
|
|
141
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
141
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-GK7P3AZY.js")))).registerSearchCommand
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
names: ["describe"],
|
|
145
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
145
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-2A7GARI2.js")))).registerDescribeCommand
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
names: ["tools"],
|
|
149
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
149
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-43ZFJWAQ.js")))).registerToolsCommands
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
names: ["executions"],
|
|
153
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
153
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-AUDQ5HOJ.js")))).registerExecutionsCommands
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
names: ["plays", "runs"],
|
|
157
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
157
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-32XSQMFK.js")))).registerPlayCommands
|
|
158
158
|
},
|
|
159
159
|
{
|
|
160
160
|
names: ["sessions"],
|
|
161
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
161
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-XY2UREJ7.js")))).registerSessionsCommands
|
|
162
162
|
},
|
|
163
163
|
{
|
|
164
164
|
names: ["workflows"],
|
|
165
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
165
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-26EOXZ7M.js")))).registerWorkflowCommands
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
names: ["secrets"],
|
|
169
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
169
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-B4NYTSL7.js")))).registerSecretsCommands
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
names: ["settings", "notifications"],
|
|
173
173
|
load: async () => {
|
|
174
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
174
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-ASGROQDE.js")));
|
|
175
175
|
return (p) => {
|
|
176
176
|
commands.registerSettingsCommands(p);
|
|
177
177
|
commands.registerNotificationCommands(p);
|
|
@@ -180,51 +180,51 @@ var COMMAND_GROUPS = [
|
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
182
|
names: ["billing"],
|
|
183
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
183
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-TQ4UM4D4.js")))).registerBillingCommands
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
186
|
names: ["monitors"],
|
|
187
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
187
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-G4S54JSX.js")))).registerMonitorsCommands
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
190
|
names: ["org"],
|
|
191
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
191
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-RIWF2TLI.js")))).registerOrgCommands
|
|
192
192
|
},
|
|
193
193
|
{
|
|
194
194
|
names: ["git", "projects", "deployments"],
|
|
195
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
195
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-6S64UBWC.js")))).registerGitCommands
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
names: ["csv"],
|
|
199
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
199
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-5AASYDRF.js")))).registerCsvCommands
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
202
|
names: ["db"],
|
|
203
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
203
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-MJBZBDWZ.js")))).registerDbCommands
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
206
|
names: ["feedback"],
|
|
207
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
207
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-MNWNDZVU.js")))).registerFeedbackCommands
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
names: ["enrich", "session", "backend"],
|
|
211
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
211
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-3UZTD4DS.js")))).registerDeprecatedCommands
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
names: ["update"],
|
|
215
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
215
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-R7FODDIW.js")))).registerUpdateCommand
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
names: ["skills", "skills-auto-sync"],
|
|
219
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
219
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-LKNKHB2I.js")))).registerSkillsCommand
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
names: ["setup", "doctor"],
|
|
223
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
223
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-YIYQ73OV.js")))).registerSetupCommands
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
226
|
names: ["quickstart"],
|
|
227
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
227
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-Q2TA72HD.js")))).registerQuickstartCommands
|
|
228
228
|
}
|
|
229
229
|
];
|
|
230
230
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -261,7 +261,7 @@ var MAX_SESSIONS = 20;
|
|
|
261
261
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
262
262
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
263
263
|
}
|
|
264
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
264
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkCB6AJNHIjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
265
265
|
const explicit = _chunkURWF7NGQjs.helpDetailFromArgv.call(void 0, argv);
|
|
266
266
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
267
267
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
@@ -343,7 +343,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
343
343
|
async function reportAutoUpdateEvent(input) {
|
|
344
344
|
let apiKey = "";
|
|
345
345
|
try {
|
|
346
|
-
apiKey =
|
|
346
|
+
apiKey = _chunkCB6AJNHIjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
347
347
|
} catch (e2) {
|
|
348
348
|
return;
|
|
349
349
|
}
|
|
@@ -359,15 +359,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
359
359
|
headers: {
|
|
360
360
|
Authorization: `Bearer ${apiKey}`,
|
|
361
361
|
"Content-Type": "application/json",
|
|
362
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
362
|
+
"User-Agent": `deepline-ts-sdk/${_chunkCB6AJNHIjs.SDK_VERSION}`,
|
|
363
363
|
"X-Deepline-Client-Family": "sdk",
|
|
364
364
|
"X-Deepline-CLI-Family": "sdk",
|
|
365
|
-
"X-Deepline-CLI-Version":
|
|
366
|
-
"X-Deepline-SDK-Version":
|
|
365
|
+
"X-Deepline-CLI-Version": _chunkCB6AJNHIjs.SDK_VERSION,
|
|
366
|
+
"X-Deepline-SDK-Version": _chunkCB6AJNHIjs.SDK_VERSION
|
|
367
367
|
},
|
|
368
368
|
body: JSON.stringify({
|
|
369
369
|
event: input.event,
|
|
370
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
370
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkCB6AJNHIjs.SDK_VERSION,
|
|
371
371
|
target_version: input.response.latest,
|
|
372
372
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
373
373
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -386,7 +386,7 @@ function envTruthy(name) {
|
|
|
386
386
|
return value === "1" || value === "true" || value === "yes";
|
|
387
387
|
}
|
|
388
388
|
function shouldSkipSelfUpdate(policy) {
|
|
389
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
389
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkMZ4LBCV7js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkWGX7SIGLjs.isCiEnvironment.call(void 0, );
|
|
390
390
|
}
|
|
391
391
|
function parseSemver(version) {
|
|
392
392
|
const trimmed = _optionalChain([version, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]);
|
|
@@ -416,7 +416,7 @@ function compareSemver(left, right) {
|
|
|
416
416
|
}
|
|
417
417
|
function isDowngradeAutoUpdateResponse(response) {
|
|
418
418
|
const target = _optionalChain([response, 'optionalAccess', _19 => _19.latest, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]);
|
|
419
|
-
const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
419
|
+
const current = _optionalChain([response, 'optionalAccess', _22 => _22.current, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkCB6AJNHIjs.SDK_VERSION;
|
|
420
420
|
if (!target) return false;
|
|
421
421
|
return compareSemver(target, current) < 0;
|
|
422
422
|
}
|
|
@@ -455,7 +455,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
455
455
|
}
|
|
456
456
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
457
457
|
const target = response.latest;
|
|
458
|
-
const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) ||
|
|
458
|
+
const current = _optionalChain([response, 'access', _27 => _27.current, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()]) || _chunkCB6AJNHIjs.SDK_VERSION;
|
|
459
459
|
process.stderr.write(
|
|
460
460
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
461
461
|
`
|
|
@@ -463,12 +463,12 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
463
463
|
return false;
|
|
464
464
|
}
|
|
465
465
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
466
|
-
const plan =
|
|
466
|
+
const plan = _chunkMZ4LBCV7js.resolveUpdatePlan.call(void 0, {
|
|
467
467
|
packageSpec,
|
|
468
468
|
requireVerifiedNpmOwnership: true,
|
|
469
469
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
470
470
|
});
|
|
471
|
-
if (!
|
|
471
|
+
if (!_chunkMZ4LBCV7js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
472
472
|
return false;
|
|
473
473
|
}
|
|
474
474
|
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";
|
|
@@ -482,7 +482,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
482
482
|
event: "started",
|
|
483
483
|
installKind: plan.kind
|
|
484
484
|
});
|
|
485
|
-
const updateResult = await
|
|
485
|
+
const updateResult = await _chunkMZ4LBCV7js.runAutomaticUpdatePlan.call(void 0, plan);
|
|
486
486
|
if (updateResult.status === "skipped_previous_failure") {
|
|
487
487
|
void reportAutoUpdateEvent({
|
|
488
488
|
baseUrl,
|
|
@@ -574,7 +574,7 @@ function shouldReport(stdout, stderr) {
|
|
|
574
574
|
}
|
|
575
575
|
function toolName(action) {
|
|
576
576
|
const [toolId] = _optionalChain([action, 'optionalAccess', _30 => _30.path]) === "tools execute" ? action.args : [];
|
|
577
|
-
return typeof toolId === "string" ?
|
|
577
|
+
return typeof toolId === "string" ? _chunkWGX7SIGLjs.redactFailureText.call(void 0, toolId) : null;
|
|
578
578
|
}
|
|
579
579
|
function chunkText(chunk) {
|
|
580
580
|
if (typeof chunk === "string") return chunk;
|
|
@@ -605,14 +605,14 @@ function watch(stream) {
|
|
|
605
605
|
}
|
|
606
606
|
async function postCommandOutput(body) {
|
|
607
607
|
try {
|
|
608
|
-
const baseUrl =
|
|
609
|
-
const apiKey =
|
|
608
|
+
const baseUrl = _chunkCB6AJNHIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
609
|
+
const apiKey = _chunkCB6AJNHIjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
610
610
|
if (!apiKey) return;
|
|
611
|
-
const agentSessionId =
|
|
611
|
+
const agentSessionId = _chunkCB6AJNHIjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
612
612
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
613
613
|
method: "POST",
|
|
614
614
|
headers: {
|
|
615
|
-
...
|
|
615
|
+
..._chunkWGX7SIGLjs.failureReportHeaders.call(void 0, apiKey),
|
|
616
616
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
617
617
|
},
|
|
618
618
|
body: JSON.stringify(body),
|
|
@@ -628,14 +628,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
628
628
|
const stdoutWatch = watch(streams.stdout);
|
|
629
629
|
const stderrWatch = watch(streams.stderr);
|
|
630
630
|
return async (finished) => {
|
|
631
|
-
if (
|
|
631
|
+
if (_chunkWGX7SIGLjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
632
632
|
const [stdout, stderr] = await Promise.all([
|
|
633
633
|
stdoutWatch.settled(),
|
|
634
634
|
stderrWatch.settled()
|
|
635
635
|
]);
|
|
636
636
|
if (!shouldReport(stdout, stderr)) return;
|
|
637
637
|
await postCommandOutput({
|
|
638
|
-
command:
|
|
638
|
+
command: _chunkWGX7SIGLjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
639
639
|
tool: toolName(finished.action),
|
|
640
640
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
641
641
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -709,7 +709,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
709
709
|
);
|
|
710
710
|
}
|
|
711
711
|
async function runPlayRunnerHealthCheck() {
|
|
712
|
-
|
|
712
|
+
_chunkCB6AJNHIjs.resolveConfig.call(void 0, );
|
|
713
713
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
714
714
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
715
715
|
try {
|
|
@@ -739,7 +739,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
739
739
|
});
|
|
740
740
|
let exitCode = 1;
|
|
741
741
|
try {
|
|
742
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
742
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-32XSQMFK.js")));
|
|
743
743
|
exitCode = await handlePlayRun([
|
|
744
744
|
file,
|
|
745
745
|
"--input",
|
|
@@ -779,7 +779,7 @@ function preflightErrorMessage(error) {
|
|
|
779
779
|
return error instanceof Error ? error.message : String(error);
|
|
780
780
|
}
|
|
781
781
|
async function runPreflightCheck() {
|
|
782
|
-
const baseUrl =
|
|
782
|
+
const baseUrl = _chunkCB6AJNHIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
783
783
|
const healthController = new AbortController();
|
|
784
784
|
const healthTimeout = setTimeout(
|
|
785
785
|
() => healthController.abort(),
|
|
@@ -794,9 +794,9 @@ async function runPreflightCheck() {
|
|
|
794
794
|
version: pickString(payload, "version")
|
|
795
795
|
};
|
|
796
796
|
}).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
|
|
797
|
-
const apiKey =
|
|
798
|
-
const http = apiKey ? new (0,
|
|
799
|
-
|
|
797
|
+
const apiKey = _chunkCB6AJNHIjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
798
|
+
const http = apiKey ? new (0, _chunkCB6AJNHIjs.HttpClient)(
|
|
799
|
+
_chunkCB6AJNHIjs.resolveConfig.call(void 0, {
|
|
800
800
|
baseUrl,
|
|
801
801
|
apiKey,
|
|
802
802
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -841,7 +841,7 @@ async function runPreflightCheck() {
|
|
|
841
841
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
842
842
|
return {
|
|
843
843
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
844
|
-
cli_version:
|
|
844
|
+
cli_version: _chunkCB6AJNHIjs.SDK_VERSION,
|
|
845
845
|
host: baseUrl,
|
|
846
846
|
health: {
|
|
847
847
|
status: healthResult.status,
|
|
@@ -867,7 +867,7 @@ async function runPreflightCheck() {
|
|
|
867
867
|
{
|
|
868
868
|
title: "preflight",
|
|
869
869
|
lines: [
|
|
870
|
-
`cli: ${
|
|
870
|
+
`cli: ${_chunkCB6AJNHIjs.SDK_VERSION}`,
|
|
871
871
|
`host: ${baseUrl}`,
|
|
872
872
|
`health: ${healthResult.status}`,
|
|
873
873
|
`auth: ${authStatus}`,
|
|
@@ -892,12 +892,12 @@ function printPreflightHuman(data) {
|
|
|
892
892
|
}
|
|
893
893
|
async function newerCliCommandHint(baseUrl, command) {
|
|
894
894
|
if (!command.trim()) return null;
|
|
895
|
-
const { response, error } = await
|
|
895
|
+
const { response, error } = await _chunkWGX7SIGLjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
896
896
|
if (error || !response) return null;
|
|
897
897
|
const introduced = response.command_introduced_in;
|
|
898
898
|
if (introduced) {
|
|
899
899
|
return [
|
|
900
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
900
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkCB6AJNHIjs.SDK_VERSION}.`,
|
|
901
901
|
` ${introduced.reason}`,
|
|
902
902
|
` Update with: ${response.update_command}`,
|
|
903
903
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -906,7 +906,7 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
906
906
|
if (!response.update_required) return null;
|
|
907
907
|
return [
|
|
908
908
|
response.message,
|
|
909
|
-
` Installed: ${
|
|
909
|
+
` Installed: ${_chunkCB6AJNHIjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
910
910
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
911
911
|
].join("\n");
|
|
912
912
|
}
|
|
@@ -925,7 +925,7 @@ async function runMain(ensureTransport, onAction) {
|
|
|
925
925
|
const program = new (0, _commander.Command)();
|
|
926
926
|
program.name("deepline").description(
|
|
927
927
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
928
|
-
).version(
|
|
928
|
+
).version(_chunkCB6AJNHIjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
929
929
|
"--maintenance <policy>",
|
|
930
930
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
931
931
|
parseCliMaintenancePolicy,
|
|
@@ -985,7 +985,7 @@ Exit codes:
|
|
|
985
985
|
if (actionCommand.name() !== "version") {
|
|
986
986
|
await ensureTransport();
|
|
987
987
|
}
|
|
988
|
-
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() ===
|
|
988
|
+
if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkWGX7SIGLjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
989
989
|
return;
|
|
990
990
|
}
|
|
991
991
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
@@ -998,16 +998,16 @@ Exit codes:
|
|
|
998
998
|
_optionalChain([progress, 'optionalAccess', _38 => _38.phase, 'call', _39 => _39("checking sdk compatibility")]);
|
|
999
999
|
}
|
|
1000
1000
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
1001
|
-
const baseUrl =
|
|
1002
|
-
if (maintenance !== "off")
|
|
1001
|
+
const baseUrl = _chunkCB6AJNHIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
1002
|
+
if (maintenance !== "off") _chunkWGX7SIGLjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
1003
1003
|
const shouldDeferSkillsSync = maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
1004
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
1005
|
-
const trusted =
|
|
1004
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkCB6AJNHIjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1005
|
+
const trusted = _chunkWGX7SIGLjs.readTrustedCleanCompatibility.call(void 0,
|
|
1006
1006
|
baseUrl,
|
|
1007
1007
|
compatibilityCommand,
|
|
1008
1008
|
skillsVersion
|
|
1009
1009
|
);
|
|
1010
|
-
const fastDeadline = trusted === null &&
|
|
1010
|
+
const fastDeadline = trusted === null && _chunkWGX7SIGLjs.readFreshCleanCompatibility.call(void 0,
|
|
1011
1011
|
baseUrl,
|
|
1012
1012
|
compatibilityCommand,
|
|
1013
1013
|
skillsVersion
|
|
@@ -1031,12 +1031,12 @@ Exit codes:
|
|
|
1031
1031
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
1032
1032
|
fastDeadline
|
|
1033
1033
|
},
|
|
1034
|
-
() =>
|
|
1034
|
+
() => _chunkWGX7SIGLjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
1035
1035
|
command: compatibilityCommand,
|
|
1036
1036
|
skillsVersion,
|
|
1037
1037
|
persistCache: maintenance !== "off",
|
|
1038
1038
|
catalog: _chunkQJBJZVG6js.compatibilityCatalog.call(void 0, actionCommand),
|
|
1039
|
-
...fastDeadline ? { timeoutMs:
|
|
1039
|
+
...fastDeadline ? { timeoutMs: _chunkWGX7SIGLjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
1040
1040
|
})
|
|
1041
1041
|
);
|
|
1042
1042
|
if (compatibility.error) {
|
|
@@ -1060,7 +1060,7 @@ Exit codes:
|
|
|
1060
1060
|
response: compatibility.response
|
|
1061
1061
|
};
|
|
1062
1062
|
}
|
|
1063
|
-
|
|
1063
|
+
_chunkWGX7SIGLjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
1064
1064
|
quietAdvisory: process.argv.includes("--json")
|
|
1065
1065
|
});
|
|
1066
1066
|
return {
|
|
@@ -1081,7 +1081,7 @@ Exit codes:
|
|
|
1081
1081
|
() => _chunkAYHLUHE5js.traceCliSpan.call(void 0,
|
|
1082
1082
|
"cli.sdk_skills_sync",
|
|
1083
1083
|
{ baseUrl: startup.baseUrl },
|
|
1084
|
-
() =>
|
|
1084
|
+
() => _chunkWGX7SIGLjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1085
1085
|
update: skillsUpdate,
|
|
1086
1086
|
mode: "detached"
|
|
1087
1087
|
})
|
|
@@ -1109,8 +1109,8 @@ Examples:
|
|
|
1109
1109
|
`
|
|
1110
1110
|
).action(async (options) => {
|
|
1111
1111
|
const data = await runPreflightCheck();
|
|
1112
|
-
if (
|
|
1113
|
-
|
|
1112
|
+
if (_chunkJPNBAZBRjs.shouldEmitJson.call(void 0, options.json)) {
|
|
1113
|
+
_chunkJPNBAZBRjs.printJson.call(void 0, data);
|
|
1114
1114
|
} else {
|
|
1115
1115
|
printPreflightHuman(data);
|
|
1116
1116
|
}
|
|
@@ -1132,7 +1132,7 @@ Examples:
|
|
|
1132
1132
|
).action(async (options) => {
|
|
1133
1133
|
if (options.playRunner) {
|
|
1134
1134
|
const data = await runPlayRunnerHealthCheck();
|
|
1135
|
-
|
|
1135
|
+
_chunkJPNBAZBRjs.printCommandEnvelope.call(void 0, data, {
|
|
1136
1136
|
json: options.json,
|
|
1137
1137
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1138
1138
|
`
|
|
@@ -1140,15 +1140,15 @@ Examples:
|
|
|
1140
1140
|
return;
|
|
1141
1141
|
}
|
|
1142
1142
|
try {
|
|
1143
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1144
|
-
const baseUrl =
|
|
1143
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-IJKAKAHG.js")));
|
|
1144
|
+
const baseUrl = _chunkCB6AJNHIjs.resolveBaseUrlOnly.call(void 0, );
|
|
1145
1145
|
const [{ status, data }, banner] = await Promise.all([
|
|
1146
1146
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1147
1147
|
readStatusBanner(baseUrl)
|
|
1148
1148
|
]);
|
|
1149
1149
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1150
1150
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1151
|
-
|
|
1151
|
+
_chunkJPNBAZBRjs.printCommandEnvelope.call(void 0,
|
|
1152
1152
|
{ ...data, status_banner: banner },
|
|
1153
1153
|
{
|
|
1154
1154
|
json: options.json,
|
|
@@ -1176,10 +1176,10 @@ Examples:
|
|
|
1176
1176
|
`
|
|
1177
1177
|
).action((options) => {
|
|
1178
1178
|
if (options.json) {
|
|
1179
|
-
|
|
1179
|
+
_chunkJPNBAZBRjs.printCompactJson.call(void 0, { version: _chunkCB6AJNHIjs.SDK_VERSION });
|
|
1180
1180
|
return;
|
|
1181
1181
|
}
|
|
1182
|
-
process.stdout.write(`deepline ${
|
|
1182
|
+
process.stdout.write(`deepline ${_chunkCB6AJNHIjs.SDK_VERSION}
|
|
1183
1183
|
`);
|
|
1184
1184
|
});
|
|
1185
1185
|
if (process.argv.slice(2).length === 0) {
|
|
@@ -1197,7 +1197,7 @@ Examples:
|
|
|
1197
1197
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1198
1198
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1199
1199
|
console.error(`error: unknown command '${requestedTopLevelCommand}'`);
|
|
1200
|
-
const baseUrl =
|
|
1200
|
+
const baseUrl = _chunkCB6AJNHIjs.autoDetectBaseUrl.call(void 0, );
|
|
1201
1201
|
await ensureTransport();
|
|
1202
1202
|
const versionHint = await newerCliCommandHint(
|
|
1203
1203
|
baseUrl,
|
|
@@ -1215,8 +1215,8 @@ Examples:
|
|
|
1215
1215
|
const helpArgs = process.argv.slice(2);
|
|
1216
1216
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1217
1217
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1218
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1219
|
-
rootHelpStatus = `Version: ${
|
|
1218
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-IJKAKAHG.js")));
|
|
1219
|
+
rootHelpStatus = `Version: ${_chunkCB6AJNHIjs.SDK_VERSION}
|
|
1220
1220
|
${await authStatusLine()}
|
|
1221
1221
|
`;
|
|
1222
1222
|
}
|
|
@@ -1226,7 +1226,7 @@ ${await authStatusLine()}
|
|
|
1226
1226
|
ms: Date.now() - mainStartedAt,
|
|
1227
1227
|
ok: true
|
|
1228
1228
|
});
|
|
1229
|
-
await
|
|
1229
|
+
await _chunkWGX7SIGLjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1230
1230
|
argv: process.argv.slice(2),
|
|
1231
1231
|
startedAtMs: mainStartedAt,
|
|
1232
1232
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1251,7 +1251,7 @@ ${await authStatusLine()}
|
|
|
1251
1251
|
const commandPath = invocation.commandPath || requestedTopLevelCommand;
|
|
1252
1252
|
await ensureTransport();
|
|
1253
1253
|
const versionHint = await newerCliCommandHint(
|
|
1254
|
-
|
|
1254
|
+
_chunkCB6AJNHIjs.autoDetectBaseUrl.call(void 0, ),
|
|
1255
1255
|
commandPath
|
|
1256
1256
|
);
|
|
1257
1257
|
if (versionHint) console.error(versionHint);
|
|
@@ -1262,26 +1262,26 @@ ${await authStatusLine()}
|
|
|
1262
1262
|
process.exitCode = commanderError.code === "commander.unknownCommand" && !wantsJson ? 2 : _nullishCoalesce(commanderError.exitCode, () => ( 1));
|
|
1263
1263
|
return;
|
|
1264
1264
|
} else if (wantsJson) {
|
|
1265
|
-
|
|
1266
|
-
...
|
|
1265
|
+
_chunkJPNBAZBRjs.printJson.call(void 0, {
|
|
1266
|
+
..._chunkJPNBAZBRjs.errorToJsonPayload.call(void 0, error),
|
|
1267
1267
|
...error instanceof _chunkQ2E4E4FJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1268
1268
|
});
|
|
1269
1269
|
} else if (error instanceof Error) {
|
|
1270
1270
|
console.error(`Error: ${error.message}`);
|
|
1271
|
-
const toolDiagnostic =
|
|
1271
|
+
const toolDiagnostic = _chunkJPNBAZBRjs.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1272
1272
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1273
1273
|
if (error instanceof _chunkQ2E4E4FJjs.AuthError) {
|
|
1274
1274
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1275
1275
|
}
|
|
1276
|
-
const providerConcurrency =
|
|
1276
|
+
const providerConcurrency = _chunkJPNBAZBRjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1277
1277
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1278
1278
|
} else {
|
|
1279
1279
|
console.error(`Error: ${String(error)}`);
|
|
1280
1280
|
}
|
|
1281
1281
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1282
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1282
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkWGX7SIGLjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1283
1283
|
process.exitCode = failureExitCode;
|
|
1284
|
-
await
|
|
1284
|
+
await _chunkWGX7SIGLjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1285
1285
|
argv: process.argv.slice(2),
|
|
1286
1286
|
startedAtMs: mainStartedAt,
|
|
1287
1287
|
exitCode: failureExitCode,
|