deepline 0.3.358 → 0.3.360
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 +7 -1
- package/dist/bundling-sources/shared_libs/monitors/quickstart-prompts.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +53 -3
- package/dist/cli/auth-5ZEJNJGA.js +33 -0
- package/dist/cli/{auth-QSEB4OI6.mjs → auth-WIK56FTM.mjs} +4 -4
- package/dist/cli/{billing-UE2CP5O5.js → billing-E2YWHGEG.js} +73 -73
- package/dist/cli/{billing-KNJ6ZHSN.mjs → billing-Z5INYWJF.mjs} +4 -4
- package/dist/cli/{chunk-Q77PWYDF.mjs → chunk-24ANFAKD.mjs} +4 -4
- package/dist/cli/{chunk-4IUOBUNS.mjs → chunk-3KPODTZE.mjs} +1 -1
- package/dist/cli/{chunk-YWGKGXSH.mjs → chunk-3ZTBGOJ3.mjs} +2 -2
- package/dist/cli/{chunk-LOSZZCER.js → chunk-47GSGU6B.js} +2 -2
- package/dist/cli/{chunk-UZQWPQ6V.js → chunk-47MAIUPI.js} +4 -4
- package/dist/cli/{chunk-EVPWVNJV.mjs → chunk-655HMFLH.mjs} +1 -1
- package/dist/cli/{chunk-5PJ6XYRV.js → chunk-ABGZWLSA.js} +60 -60
- package/dist/cli/{chunk-SPJ3IDR4.mjs → chunk-AH3DNTXN.mjs} +2 -2
- package/dist/cli/{chunk-SJY4SUCH.mjs → chunk-CDIMKTXU.mjs} +6 -1
- package/dist/cli/{chunk-NMHQTEIQ.mjs → chunk-DLY2RISW.mjs} +2 -2
- package/dist/cli/{chunk-EL62MLRD.mjs → chunk-EYIROXZM.mjs} +1 -1
- package/dist/cli/{chunk-KIRDHNX5.js → chunk-G6C345OF.js} +9 -9
- package/dist/cli/{chunk-VZBNBCEB.mjs → chunk-GB76G34M.mjs} +1 -1
- package/dist/cli/{chunk-5RWJSROL.js → chunk-J6ITJPCD.js} +8 -8
- package/dist/cli/{chunk-HGLESMAC.mjs → chunk-JIECDRJ5.mjs} +2 -2
- package/dist/cli/{chunk-OO3MYL2Y.js → chunk-JVELAXQN.js} +26 -26
- package/dist/cli/{chunk-WYVUMIEF.mjs → chunk-KRKGZZWZ.mjs} +5 -5
- package/dist/cli/{chunk-GYDSDOXB.js → chunk-LBIP5OGA.js} +50 -50
- package/dist/cli/{chunk-WVO6AJM7.js → chunk-LEV3TVKG.js} +15 -15
- package/dist/cli/{chunk-BVPN57AD.js → chunk-QKOCMGEF.js} +6 -6
- package/dist/cli/{chunk-HKRJUIRL.js → chunk-RXH44EQO.js} +45 -45
- package/dist/cli/{chunk-QH6PV7IJ.mjs → chunk-S5MGA7JG.mjs} +3 -3
- package/dist/cli/{chunk-HNAFCPM4.js → chunk-TSUDECVA.js} +8 -8
- package/dist/cli/{chunk-3DP24EZA.mjs → chunk-UOBW6B2A.mjs} +6 -6
- package/dist/cli/{chunk-V4MVLHOW.js → chunk-VF7JBQBP.js} +224 -224
- package/dist/cli/{chunk-OVUDXZCK.js → chunk-W7ZGLLOM.js} +6 -1
- package/dist/cli/{client-M2TQV23S.mjs → client-H4GIBJEM.mjs} +3 -3
- package/dist/cli/client-IGY5ULGD.js +20 -0
- package/dist/cli/{csv-VSVZWQ24.js → csv-HHPA7FJT.js} +12 -12
- package/dist/cli/{csv-OQUTHAMD.mjs → csv-QBPUHPT6.mjs} +3 -3
- package/dist/cli/{db-QH56PKPT.mjs → db-JFB6NXGD.mjs} +4 -4
- package/dist/cli/{db-6QNWRH47.js → db-VZDYPTH2.js} +29 -29
- package/dist/cli/{describe-NCUJW2JG.mjs → describe-7YDQ6X4L.mjs} +8 -8
- package/dist/cli/{describe-BKJNG2I5.js → describe-KOTIPFHY.js} +15 -15
- package/dist/cli/{executions-NOZELHEN.mjs → executions-SYDFJPUP.mjs} +4 -4
- package/dist/cli/{executions-63CSEYKE.js → executions-YQ4UVHK7.js} +6 -6
- package/dist/cli/{feedback-T4FGM7DY.js → feedback-HU4GBNRY.js} +7 -7
- package/dist/cli/{feedback-GL7YHJAK.mjs → feedback-YOSAFSEC.mjs} +3 -3
- package/dist/cli/git-AXOGXUBF.js +23 -0
- package/dist/cli/{git-C3SPUEUB.mjs → git-TFGQOVE6.mjs} +4 -4
- package/dist/cli/index.js +82 -82
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-W6UWORVY.js → legacy-noops-IDVIJV7Y.js} +7 -7
- package/dist/cli/{legacy-noops-BBDNHMAW.mjs → legacy-noops-VWUMF3R6.mjs} +4 -4
- package/dist/cli/{monitors-R32SKFE3.js → monitors-GUYQVP3C.js} +85 -85
- package/dist/cli/{monitors-LEGM63T3.mjs → monitors-HNDXF2DV.mjs} +4 -4
- package/dist/cli/{org-RBIBSVP3.mjs → org-BWAZSZBF.mjs} +4 -4
- package/dist/cli/{org-RYRHB22V.js → org-EQZMRW7P.js} +60 -60
- package/dist/cli/play-RXDF5ZEA.js +153 -0
- package/dist/cli/{play-FMPNHLXU.mjs → play-ZPTBDDX7.mjs} +7 -7
- package/dist/cli/{providers-WAUWYRTK.js → providers-K236SWCW.js} +7 -7
- package/dist/cli/{providers-5JHHZWMF.mjs → providers-Q3UVYCU6.mjs} +4 -4
- package/dist/cli/{quickstart-RYKNMAFN.mjs → quickstart-H6W5GM2C.mjs} +3 -3
- package/dist/cli/{quickstart-V5LHMW2X.js → quickstart-REECR6WN.js} +5 -5
- package/dist/cli/search-CICEFEUG.js +26 -0
- package/dist/cli/{search-B2BB2MHO.mjs → search-V75LFUFC.mjs} +5 -5
- package/dist/cli/{secrets-BEAESK2H.js → secrets-BFGK3D5L.js} +13 -13
- package/dist/cli/{secrets-XJOXWVUG.mjs → secrets-O3SO6JKW.mjs} +4 -4
- package/dist/cli/{sessions-ELBTWKLS.js → sessions-AT2ZDTED.js} +5 -5
- package/dist/cli/{sessions-VRDJCPKE.mjs → sessions-KNMG5C5R.mjs} +4 -4
- package/dist/cli/{settings-V5RI4UWE.js → settings-B65AQVIF.js} +74 -74
- package/dist/cli/{settings-QEL2SD7N.mjs → settings-MM5LQN5C.mjs} +7 -7
- package/dist/cli/{setup-CS3IACGU.js → setup-DCJZLL5Q.js} +41 -41
- package/dist/cli/{setup-FNVP5XQR.mjs → setup-XDVYHF5Z.mjs} +6 -6
- package/dist/cli/{skills-73PM6I6F.mjs → skills-2QD2ECZC.mjs} +4 -4
- package/dist/cli/skills-PBCTBNZ4.js +28 -0
- package/dist/cli/tools-NIOHIQID.js +40 -0
- package/dist/cli/{tools-N2H5HJYP.mjs → tools-PYVK75OA.mjs} +6 -6
- package/dist/cli/update-2O3MQ4OU.js +28 -0
- package/dist/cli/{update-MUMZ6L7J.mjs → update-QV7SWPRZ.mjs} +6 -6
- package/dist/cli/{workflow-WY2CL73A.mjs → workflow-3YH3SYG5.mjs} +5 -5
- package/dist/cli/{workflow-X66V6L3H.js → workflow-Q7XOX2UK.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- package/dist/release.d.mts +5 -1
- package/dist/release.d.ts +5 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-VP5WIGFS.js +0 -33
- package/dist/cli/client-I4RRFLPM.js +0 -20
- package/dist/cli/git-4EBFGJAN.js +0 -23
- package/dist/cli/play-GDDOUU3I.js +0 -153
- package/dist/cli/search-RQLY5D2A.js +0 -26
- package/dist/cli/skills-OH3X3OUA.js +0 -28
- package/dist/cli/tools-BY6D7M4I.js +0 -40
- package/dist/cli/update-PEGDRQ3G.js +0 -28
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkQKOCMGEFjs = require('./chunk-QKOCMGEF.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk47MAIUPIjs = require('./chunk-47MAIUPI.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkQKOCMGEFjs.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkQKOCMGEFjs.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkQKOCMGEFjs.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkQKOCMGEFjs.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkQKOCMGEFjs.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkQKOCMGEFjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkQKOCMGEFjs.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkQKOCMGEFjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunk47MAIUPIjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkQKOCMGEFjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkQKOCMGEFjs.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkQKOCMGEFjs.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkQKOCMGEFjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
recentSearchRef,
|
|
13
13
|
registerDeprecatedSearchCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-S5MGA7JG.mjs";
|
|
15
15
|
import {
|
|
16
16
|
extractSummaryFields,
|
|
17
17
|
projectRowOutput,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
DeeplineClient,
|
|
28
28
|
validateExecutionIdempotencyKey
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-655HMFLH.mjs";
|
|
30
30
|
import {
|
|
31
31
|
beginToolExecuteCommand,
|
|
32
32
|
getToolExecuteInvocationId,
|
|
@@ -40,11 +40,11 @@ import {
|
|
|
40
40
|
printJsonError,
|
|
41
41
|
renderCommandEnvelopeText,
|
|
42
42
|
shouldEmitJson
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-EYIROXZM.mjs";
|
|
44
44
|
import {
|
|
45
45
|
resolveConfig,
|
|
46
46
|
sdkCliStateDirPath
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-GB76G34M.mjs";
|
|
48
48
|
import {
|
|
49
49
|
DeeplineError
|
|
50
50
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -1030,7 +1030,7 @@ Examples:
|
|
|
1030
1030
|
process.exitCode = await narrowView();
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
const { describeAnything } = await import("./describe-
|
|
1033
|
+
const { describeAnything } = await import("./describe-7YDQ6X4L.mjs");
|
|
1034
1034
|
process.exitCode = await describeAnything(
|
|
1035
1035
|
toolId,
|
|
1036
1036
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkQKOCMGEFjs = require('./chunk-QKOCMGEF.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -25,7 +25,7 @@ var _chunkBVPN57ADjs = require('./chunk-BVPN57AD.js');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunk47MAIUPIjs = require('./chunk-47MAIUPI.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
|
|
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
|
|
|
52
52
|
return `Service notice: ${banner.message}`;
|
|
53
53
|
}
|
|
54
54
|
function envFilePath(baseUrl) {
|
|
55
|
-
return
|
|
55
|
+
return _chunk47MAIUPIjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
56
56
|
}
|
|
57
57
|
function normalizeAuthScope(value) {
|
|
58
58
|
if (!value || value === "global") return "global";
|
|
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
|
|
|
65
65
|
}
|
|
66
66
|
function pendingClaimPath(baseUrl, scope) {
|
|
67
67
|
if (scope === "folder") {
|
|
68
|
-
const target =
|
|
68
|
+
const target = _chunk47MAIUPIjs.resolveProjectPinTarget.call(void 0, );
|
|
69
69
|
if (!target.ok) {
|
|
70
70
|
throw new Error(
|
|
71
71
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
75
75
|
}
|
|
76
76
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
77
77
|
}
|
|
78
|
-
return `${
|
|
78
|
+
return `${_chunk47MAIUPIjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
79
79
|
}
|
|
80
80
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
81
|
-
return `${
|
|
81
|
+
return `${_chunk47MAIUPIjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
82
82
|
}
|
|
83
83
|
function savePendingClaim(baseUrl, claim) {
|
|
84
84
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
|
|
|
180
180
|
function shouldWaitForRegisterClaim(mode) {
|
|
181
181
|
if (mode === "yes") return true;
|
|
182
182
|
if (mode === "no") return false;
|
|
183
|
-
return
|
|
183
|
+
return _chunk47MAIUPIjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
184
184
|
}
|
|
185
185
|
function saveEnvValues(values, baseUrl, scope) {
|
|
186
186
|
const filtered = {
|
|
187
|
-
...values[
|
|
188
|
-
...values[
|
|
189
|
-
...values[
|
|
190
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
187
|
+
...values[_chunk47MAIUPIjs.HOST_URL_ENV] ? { [_chunk47MAIUPIjs.HOST_URL_ENV]: values[_chunk47MAIUPIjs.HOST_URL_ENV] } : {},
|
|
188
|
+
...values[_chunk47MAIUPIjs.API_KEY_ENV] ? { [_chunk47MAIUPIjs.API_KEY_ENV]: values[_chunk47MAIUPIjs.API_KEY_ENV] } : {},
|
|
189
|
+
...values[_chunk47MAIUPIjs.ACTIVE_ORG_ID_ENV] ? { [_chunk47MAIUPIjs.ACTIVE_ORG_ID_ENV]: values[_chunk47MAIUPIjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
190
|
+
...Object.prototype.hasOwnProperty.call(values, _chunk47MAIUPIjs.ACTIVE_ORG_NAME_ENV) ? { [_chunk47MAIUPIjs.ACTIVE_ORG_NAME_ENV]: values[_chunk47MAIUPIjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
191
191
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
192
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
192
|
+
...Object.prototype.hasOwnProperty.call(values, _chunk47MAIUPIjs.FEATURES_ENV) ? { [_chunk47MAIUPIjs.FEATURES_ENV]: values[_chunk47MAIUPIjs.FEATURES_ENV] } : {}
|
|
193
193
|
};
|
|
194
194
|
if (scope === "folder") {
|
|
195
|
-
|
|
195
|
+
_chunk47MAIUPIjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
196
196
|
} else {
|
|
197
|
-
|
|
197
|
+
_chunk47MAIUPIjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
function activeOrgEnvValues(data) {
|
|
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
|
|
|
202
202
|
if (!orgId) return {};
|
|
203
203
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
204
204
|
return {
|
|
205
|
-
[
|
|
206
|
-
[
|
|
207
|
-
...
|
|
205
|
+
[_chunk47MAIUPIjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
206
|
+
[_chunk47MAIUPIjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
207
|
+
..._chunk47MAIUPIjs.featureEnvValues.call(void 0, data)
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
211
211
|
const headers = {
|
|
212
212
|
"Content-Type": "application/json",
|
|
213
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
213
|
+
"User-Agent": `deepline-ts-sdk/${_chunk47MAIUPIjs.SDK_VERSION}`,
|
|
214
214
|
"X-Deepline-Client-Family": "sdk",
|
|
215
215
|
"X-Deepline-CLI-Family": "sdk",
|
|
216
|
-
"X-Deepline-Agent-Runtime":
|
|
217
|
-
"X-Deepline-CLI-Version":
|
|
218
|
-
"X-Deepline-SDK-Version":
|
|
219
|
-
"X-Deepline-API-Contract":
|
|
216
|
+
"X-Deepline-Agent-Runtime": _chunk47MAIUPIjs.detectAgentRuntime.call(void 0, ),
|
|
217
|
+
"X-Deepline-CLI-Version": _chunk47MAIUPIjs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-SDK-Version": _chunk47MAIUPIjs.SDK_VERSION,
|
|
219
|
+
"X-Deepline-API-Contract": _chunk47MAIUPIjs.SDK_API_CONTRACT
|
|
220
220
|
};
|
|
221
221
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
222
222
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -254,7 +254,7 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
254
254
|
throw lastError instanceof Error ? lastError : new Error(String(lastError));
|
|
255
255
|
}
|
|
256
256
|
async function reportSetupCompleted(input) {
|
|
257
|
-
const apiKey = input.authScope === "folder" ?
|
|
257
|
+
const apiKey = input.authScope === "folder" ? _chunk47MAIUPIjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk47MAIUPIjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
258
258
|
if (!apiKey) return;
|
|
259
259
|
try {
|
|
260
260
|
await httpJson(
|
|
@@ -351,7 +351,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
|
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
async function handleRegister(args) {
|
|
354
|
-
const baseUrl =
|
|
354
|
+
const baseUrl = _chunk47MAIUPIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
355
355
|
let orgName = "";
|
|
356
356
|
let orgId = "";
|
|
357
357
|
let agentName = "";
|
|
@@ -406,19 +406,19 @@ async function handleRegister(args) {
|
|
|
406
406
|
});
|
|
407
407
|
saveEnvValues(
|
|
408
408
|
{
|
|
409
|
-
[
|
|
409
|
+
[_chunk47MAIUPIjs.HOST_URL_ENV]: baseUrl
|
|
410
410
|
},
|
|
411
411
|
baseUrl,
|
|
412
412
|
authScope
|
|
413
413
|
);
|
|
414
414
|
}
|
|
415
415
|
if (claimUrl) {
|
|
416
|
-
const shouldOpen = waitMode !== "no" &&
|
|
416
|
+
const shouldOpen = waitMode !== "no" && _chunk47MAIUPIjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
417
417
|
console.log(
|
|
418
418
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
419
419
|
);
|
|
420
420
|
console.log(` ${claimUrl}`);
|
|
421
|
-
if (shouldOpen)
|
|
421
|
+
if (shouldOpen) _chunkQKOCMGEFjs.openInBrowser.call(void 0, claimUrl);
|
|
422
422
|
}
|
|
423
423
|
if (data.cli_message) {
|
|
424
424
|
console.log(String(data.cli_message));
|
|
@@ -461,8 +461,8 @@ async function handleRegister(args) {
|
|
|
461
461
|
if (apiKey) {
|
|
462
462
|
saveEnvValues(
|
|
463
463
|
{
|
|
464
|
-
[
|
|
465
|
-
[
|
|
464
|
+
[_chunk47MAIUPIjs.HOST_URL_ENV]: baseUrl,
|
|
465
|
+
[_chunk47MAIUPIjs.API_KEY_ENV]: apiKey,
|
|
466
466
|
...activeOrgEnvValues(statusData)
|
|
467
467
|
},
|
|
468
468
|
baseUrl,
|
|
@@ -484,7 +484,7 @@ async function handleRegister(args) {
|
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
async function handleWait(args) {
|
|
487
|
-
const baseUrl =
|
|
487
|
+
const baseUrl = _chunk47MAIUPIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
488
488
|
let timeoutSeconds = 300;
|
|
489
489
|
let requestedScope;
|
|
490
490
|
if (args.includes("--auth-scope")) {
|
|
@@ -508,7 +508,7 @@ async function handleWait(args) {
|
|
|
508
508
|
const authScope = resumed.scope;
|
|
509
509
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _11 => _11.claimToken]), () => ( ""));
|
|
510
510
|
if (!pendingClaim) {
|
|
511
|
-
const scopedApiKey = authScope === "folder" ?
|
|
511
|
+
const scopedApiKey = authScope === "folder" ? _chunk47MAIUPIjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk47MAIUPIjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
512
512
|
if (scopedApiKey) {
|
|
513
513
|
console.log("Already connected.");
|
|
514
514
|
return EXIT_OK;
|
|
@@ -551,8 +551,8 @@ async function handleWait(args) {
|
|
|
551
551
|
if (apiKey) {
|
|
552
552
|
saveEnvValues(
|
|
553
553
|
{
|
|
554
|
-
[
|
|
555
|
-
[
|
|
554
|
+
[_chunk47MAIUPIjs.HOST_URL_ENV]: baseUrl,
|
|
555
|
+
[_chunk47MAIUPIjs.API_KEY_ENV]: apiKey,
|
|
556
556
|
...activeOrgEnvValues(data)
|
|
557
557
|
},
|
|
558
558
|
baseUrl,
|
|
@@ -576,8 +576,8 @@ async function handleWait(args) {
|
|
|
576
576
|
return EXIT_AUTH;
|
|
577
577
|
}
|
|
578
578
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
579
|
-
const baseUrl =
|
|
580
|
-
const apiKey =
|
|
579
|
+
const baseUrl = _chunk47MAIUPIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
580
|
+
const apiKey = _chunk47MAIUPIjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
581
581
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
582
582
|
try {
|
|
583
583
|
const { status, data } = await httpJson(
|
|
@@ -600,9 +600,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
async function handleStatus(args) {
|
|
603
|
-
const baseUrl =
|
|
603
|
+
const baseUrl = _chunk47MAIUPIjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
604
604
|
const reveal = args.includes("--reveal");
|
|
605
|
-
const jsonOutput =
|
|
605
|
+
const jsonOutput = _chunkQKOCMGEFjs.argsWantJson.call(void 0, args);
|
|
606
606
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
607
607
|
let authScope = null;
|
|
608
608
|
if (hasExplicitAuthScope) {
|
|
@@ -642,14 +642,14 @@ async function handleStatus(args) {
|
|
|
642
642
|
};
|
|
643
643
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
644
644
|
}
|
|
645
|
-
const apiKey = authScope === "folder" ?
|
|
645
|
+
const apiKey = authScope === "folder" ? _chunk47MAIUPIjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk47MAIUPIjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk47MAIUPIjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
646
646
|
if (!apiKey) {
|
|
647
647
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
648
648
|
baseUrl,
|
|
649
649
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
650
650
|
);
|
|
651
651
|
if (pendingClaim) {
|
|
652
|
-
|
|
652
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
653
653
|
{
|
|
654
654
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
655
655
|
status: "pending",
|
|
@@ -670,7 +670,7 @@ async function handleStatus(args) {
|
|
|
670
670
|
);
|
|
671
671
|
return EXIT_OK;
|
|
672
672
|
}
|
|
673
|
-
|
|
673
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
674
674
|
{
|
|
675
675
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
676
676
|
status: "not connected",
|
|
@@ -703,7 +703,7 @@ async function handleStatus(args) {
|
|
|
703
703
|
}
|
|
704
704
|
);
|
|
705
705
|
if (status === 401 || status === 403) {
|
|
706
|
-
|
|
706
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
707
707
|
{
|
|
708
708
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
709
709
|
status: "unauthorized",
|
|
@@ -730,7 +730,7 @@ async function handleStatus(args) {
|
|
|
730
730
|
console.error(`Auth status error (status ${status}).`);
|
|
731
731
|
return EXIT_SERVER;
|
|
732
732
|
}
|
|
733
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
733
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunk47MAIUPIjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
734
734
|
clearSatisfiedPendingClaim(
|
|
735
735
|
baseUrl,
|
|
736
736
|
resolvedAuthScope,
|
|
@@ -758,28 +758,28 @@ async function handleStatus(args) {
|
|
|
758
758
|
if (apiKeyResp) {
|
|
759
759
|
saveEnvValues(
|
|
760
760
|
{
|
|
761
|
-
[
|
|
762
|
-
[
|
|
761
|
+
[_chunk47MAIUPIjs.HOST_URL_ENV]: baseUrl,
|
|
762
|
+
[_chunk47MAIUPIjs.API_KEY_ENV]: apiKeyResp,
|
|
763
763
|
...activeOrgEnvValues(data)
|
|
764
764
|
},
|
|
765
765
|
baseUrl,
|
|
766
766
|
resolvedAuthScope
|
|
767
767
|
);
|
|
768
768
|
if (resolvedAuthScope === "folder") {
|
|
769
|
-
const target =
|
|
769
|
+
const target = _chunk47MAIUPIjs.resolveProjectPinTarget.call(void 0, );
|
|
770
770
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
771
771
|
} else {
|
|
772
772
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
776
|
-
saveEnvValues(
|
|
775
|
+
} else if (resolvedAuthScope === "folder" || _chunk47MAIUPIjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
776
|
+
saveEnvValues(_chunk47MAIUPIjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
777
777
|
}
|
|
778
|
-
|
|
778
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
779
779
|
{
|
|
780
780
|
...payload,
|
|
781
|
-
...
|
|
782
|
-
command_context:
|
|
781
|
+
..._chunk47MAIUPIjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
782
|
+
command_context: _chunk47MAIUPIjs.resolveCliCommandContext.call(void 0,
|
|
783
783
|
{ baseUrl, apiKey },
|
|
784
784
|
resolvedAuthScope
|
|
785
785
|
)
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk47GSGU6Bjs = require('./chunk-47GSGU6B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkABGZWLSAjs = require('./chunk-ABGZWLSA.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkQKOCMGEFjs = require('./chunk-QKOCMGEF.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk47MAIUPIjs = require('./chunk-47MAIUPI.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
|
|
|
489
489
|
}
|
|
490
490
|
function resolveNpmGlobalPrefix(env) {
|
|
491
491
|
try {
|
|
492
|
-
const plan =
|
|
492
|
+
const plan = _chunkABGZWLSAjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
493
493
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
494
494
|
encoding: "utf8",
|
|
495
495
|
env,
|
|
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
545
545
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
546
546
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
547
547
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
548
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
549
|
-
const npmGlobalInstallFlags =
|
|
548
|
+
const npmVersion = options.npmVersion === void 0 ? _chunk47GSGU6Bjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunk47GSGU6Bjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
550
550
|
const args = installPrefix ? [
|
|
551
551
|
"install",
|
|
552
552
|
"-g",
|
|
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
packageSpec
|
|
557
557
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
558
558
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
559
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
559
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunk47MAIUPIjs.autoDetectBaseUrl.call(void 0, )
|
|
560
560
|
);
|
|
561
561
|
return {
|
|
562
562
|
kind: "npm-global",
|
|
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
703
703
|
function runCommand(command, args, env = process.env) {
|
|
704
704
|
return new Promise((resolveResult) => {
|
|
705
705
|
let output = "";
|
|
706
|
-
const plan =
|
|
706
|
+
const plan = _chunkABGZWLSAjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
707
707
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
708
708
|
stdio: ["inherit", "pipe", "pipe"],
|
|
709
709
|
shell: plan.shell,
|
|
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1079
1079
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1080
1080
|
}
|
|
1081
1081
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1082
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1082
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk47MAIUPIjs.autoDetectBaseUrl));
|
|
1083
1083
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1084
1084
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1085
1085
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1086
1086
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1087
1087
|
process.stdout.write = (() => true);
|
|
1088
1088
|
try {
|
|
1089
|
-
const exitCode = await
|
|
1089
|
+
const exitCode = await _chunkABGZWLSAjs.runSkillsCommand.call(void 0, { json: true });
|
|
1090
1090
|
if (exitCode !== 0) {
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1157
1157
|
]
|
|
1158
1158
|
};
|
|
1159
1159
|
if (options.json && !options.executeWithJson) {
|
|
1160
|
-
|
|
1160
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
...plan,
|
|
1167
1167
|
render: {
|
|
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1174
1174
|
return 0;
|
|
1175
1175
|
}
|
|
1176
1176
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1177
|
-
|
|
1177
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
}
|
|
1180
1180
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
|
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.executeWithJson && options.json) {
|
|
1207
|
-
|
|
1207
|
+
_chunkQKOCMGEFjs.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk47MAIUPIjs = require('./chunk-47MAIUPI.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -225,8 +225,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
225
225
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
226
226
|
var defaultBrowserCommandRunner = childProcess;
|
|
227
227
|
function getAuthedHttpClient() {
|
|
228
|
-
const config =
|
|
229
|
-
return { config, http: new (0,
|
|
228
|
+
const config = _chunk47MAIUPIjs.resolveConfig.call(void 0, );
|
|
229
|
+
return { config, http: new (0, _chunk47MAIUPIjs.HttpClient)(config) };
|
|
230
230
|
}
|
|
231
231
|
function stableOsUserId() {
|
|
232
232
|
try {
|
|
@@ -566,7 +566,7 @@ function collectLocalEnvInfo() {
|
|
|
566
566
|
os: `${process.platform} ${process.arch}`,
|
|
567
567
|
node_version: process.version,
|
|
568
568
|
home_dir: homeDir,
|
|
569
|
-
agent_runtime:
|
|
569
|
+
agent_runtime: _chunk47MAIUPIjs.detectAgentRuntime.call(void 0, )
|
|
570
570
|
};
|
|
571
571
|
const env = process.env;
|
|
572
572
|
const optional = {
|
|
@@ -813,9 +813,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
813
813
|
}
|
|
814
814
|
function withAgentCommandContext(value) {
|
|
815
815
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
816
|
-
return
|
|
816
|
+
return _chunk47MAIUPIjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
817
817
|
...valueRecord,
|
|
818
|
-
command_context:
|
|
818
|
+
command_context: _chunk47MAIUPIjs.resolveCliCommandContext.call(void 0, )
|
|
819
819
|
} : value;
|
|
820
820
|
}
|
|
821
821
|
function printJson(value, fields) {
|