deepline 0.3.344 → 0.3.345
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +240 -66
- package/dist/cli/auth-4HCZZPZH.js +31 -0
- package/dist/cli/{auth-KHHPB2DO.mjs → auth-YQSQYS2V.mjs} +4 -4
- package/dist/cli/{billing-RLK734WE.mjs → billing-HA75G3SK.mjs} +4 -4
- package/dist/cli/{billing-HAR4AJZT.js → billing-JRP2ZFMV.js} +71 -71
- package/dist/cli/{chunk-475OQE7H.js → chunk-2OTDDG2J.js} +2 -2
- package/dist/cli/{chunk-2MSG6WCC.mjs → chunk-3XKBPPP7.mjs} +2 -2
- package/dist/cli/{chunk-UWV3BA43.js → chunk-4INBT3OR.js} +225 -225
- package/dist/cli/{chunk-4DIFNYJZ.mjs → chunk-5QPHJFNN.mjs} +2 -2
- package/dist/cli/{chunk-CIV43IXR.mjs → chunk-AW2G44QA.mjs} +4 -4
- package/dist/cli/{chunk-BQYPKV4P.mjs → chunk-DOPNLW2H.mjs} +6 -6
- package/dist/cli/{chunk-TYPYDSNY.js → chunk-EEPFLZ7V.js} +9 -9
- package/dist/cli/{chunk-RN7NIZIL.mjs → chunk-EWYAS4WD.mjs} +1 -1
- package/dist/cli/{chunk-JXCEXXKW.js → chunk-FBUWH67Y.js} +48 -48
- package/dist/cli/{chunk-ZUHK5OX3.js → chunk-FDH572QX.js} +45 -45
- package/dist/cli/{chunk-GJYCHN2L.mjs → chunk-GGRQBO3S.mjs} +2 -2
- package/dist/cli/{chunk-MQIHCQ5Z.js → chunk-IT6MAYZ3.js} +8 -8
- package/dist/cli/{chunk-VL5IYXS3.js → chunk-ITOJRSOU.js} +6 -6
- package/dist/cli/{chunk-J5NN6XCF.mjs → chunk-JDSRPSES.mjs} +1 -1
- package/dist/cli/{chunk-LELCMU5K.js → chunk-KXFPDFUO.js} +26 -26
- package/dist/cli/{chunk-XRZUDK6O.mjs → chunk-MLO7ZGSH.mjs} +2 -2
- package/dist/cli/{chunk-SJIF45BK.js → chunk-MO6QJPEB.js} +4 -4
- package/dist/cli/{chunk-M5FYGL42.mjs → chunk-N3GUUSDO.mjs} +1 -1
- package/dist/cli/{chunk-DRHVFFMJ.mjs → chunk-NTIWTBEH.mjs} +1 -1
- package/dist/cli/{chunk-CMK6UNJA.mjs → chunk-S3JKJL44.mjs} +5 -5
- package/dist/cli/{chunk-23D4YCM6.mjs → chunk-TAX3OOC6.mjs} +1 -1
- package/dist/cli/{chunk-QO6T7ETF.js → chunk-TDW3RU7S.js} +15 -15
- package/dist/cli/{chunk-Y6PJVWDY.js → chunk-UJCHR3J3.js} +1 -1
- package/dist/cli/{chunk-J5P35NOT.js → chunk-URPZWUVN.js} +60 -60
- package/dist/cli/{chunk-FHCBNR7M.js → chunk-WRTLSH6R.js} +8 -8
- package/dist/cli/{chunk-QZMF7VDU.mjs → chunk-YGQ4AIK7.mjs} +3 -3
- package/dist/cli/{client-JWDU663V.mjs → client-VKQGBPZ5.mjs} +3 -3
- package/dist/cli/client-VOXK5Z4D.js +20 -0
- package/dist/cli/{csv-7AW5GZ4K.js → csv-UNP7KAXF.js} +12 -12
- package/dist/cli/{csv-CIAWYPZO.mjs → csv-ZFMAI2HY.mjs} +3 -3
- package/dist/cli/{db-SX73JJBH.mjs → db-C5YWXRLY.mjs} +4 -4
- package/dist/cli/{db-UENUIWQN.js → db-LDLXC2JQ.js} +29 -29
- package/dist/cli/{describe-7OGZQAGF.js → describe-FO62H2CB.js} +15 -15
- package/dist/cli/{describe-4SC5G2FG.mjs → describe-UYNKJV6T.mjs} +8 -8
- package/dist/cli/{executions-UDXQNB34.js → executions-DIADSK2E.js} +6 -6
- package/dist/cli/{executions-YB4IAUTW.mjs → executions-JYKV3GQJ.mjs} +4 -4
- package/dist/cli/{feedback-76QWZSW3.mjs → feedback-4UEJJFRL.mjs} +3 -3
- package/dist/cli/{feedback-5SGAGRAW.js → feedback-YBO47O7G.js} +7 -7
- package/dist/cli/{git-ESESPEVB.mjs → git-A6DPLCMU.mjs} +4 -4
- package/dist/cli/git-FPC5VIIK.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-E74OIJCW.js → legacy-noops-F6TJLZV2.js} +7 -7
- package/dist/cli/{legacy-noops-6F6QSRDB.mjs → legacy-noops-HCAOJI7X.mjs} +4 -4
- package/dist/cli/{monitors-4MIXICCR.js → monitors-B5QFSFK7.js} +85 -85
- package/dist/cli/{monitors-USOHPXUY.mjs → monitors-XYP7XNCT.mjs} +4 -4
- package/dist/cli/{org-DO3Q6L7S.js → org-NMWNBQZI.js} +60 -60
- package/dist/cli/{org-2RRIFNXJ.mjs → org-O5VBVLSP.mjs} +4 -4
- package/dist/cli/play-D2SCAJXG.js +153 -0
- package/dist/cli/{play-KAXYPLCQ.mjs → play-Z2STHYQB.mjs} +7 -7
- package/dist/cli/{providers-RCUITFFY.js → providers-BAPO54GE.js} +7 -7
- package/dist/cli/{providers-FKHLPGQO.mjs → providers-WGIJLFBZ.mjs} +4 -4
- package/dist/cli/{quickstart-XGU4M4Z5.js → quickstart-JGRMJ6M4.js} +5 -5
- package/dist/cli/{quickstart-CDBWA6IK.mjs → quickstart-LL6KUMJ5.mjs} +3 -3
- package/dist/cli/{search-QA4DAJPS.mjs → search-P7BVN4OI.mjs} +5 -5
- package/dist/cli/search-UNJN5P72.js +26 -0
- package/dist/cli/{secrets-6S2CDL2M.mjs → secrets-5JHLILQD.mjs} +4 -4
- package/dist/cli/{secrets-KYKXEHNR.js → secrets-QUBFPBE5.js} +13 -13
- package/dist/cli/{sessions-WGLVMQYC.mjs → sessions-3BYS3WQZ.mjs} +4 -4
- package/dist/cli/{sessions-PWAIUF7I.js → sessions-TATDTEY6.js} +5 -5
- package/dist/cli/{settings-CNWO5VFJ.js → settings-SLFYXPRP.js} +74 -74
- package/dist/cli/{settings-FQ5CWYNQ.mjs → settings-TXWQLO34.mjs} +7 -7
- package/dist/cli/{setup-ABIO2LJD.js → setup-A3CXCYRI.js} +41 -41
- package/dist/cli/{setup-RRT66ENS.mjs → setup-XTAW2JS2.mjs} +6 -6
- package/dist/cli/{skills-3LY2RQE3.mjs → skills-P323CMPH.mjs} +4 -4
- package/dist/cli/skills-ZOUUC72T.js +28 -0
- package/dist/cli/{tools-TQMHPW3U.mjs → tools-FMSH7Z7I.mjs} +6 -6
- package/dist/cli/tools-O7TLYHFT.js +40 -0
- package/dist/cli/update-3LT6YSIP.js +28 -0
- package/dist/cli/{update-6U4ASVZX.mjs → update-CGKRTVOD.mjs} +6 -6
- package/dist/cli/{workflow-XLE4N3W3.mjs → workflow-2DVIYBLG.mjs} +5 -5
- package/dist/cli/{workflow-GVXAFVXF.js → workflow-EFOSJKW7.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 +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-6ABMIWQQ.js +0 -31
- package/dist/cli/client-KETSZR46.js +0 -20
- package/dist/cli/git-4PRJV7B3.js +0 -23
- package/dist/cli/play-SHRBJAO4.js +0 -153
- package/dist/cli/search-ZHYH2BA3.js +0 -26
- package/dist/cli/skills-OBTT3OF7.js +0 -28
- package/dist/cli/tools-DMXHSMU2.js +0 -40
- package/dist/cli/update-4CK752WQ.js +0 -28
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkITOJRSOUjs = require('./chunk-ITOJRSOU.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkMO6QJPEBjs = require('./chunk-MO6QJPEB.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 } = _chunkITOJRSOUjs.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
|
+
_chunkITOJRSOUjs.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 } = _chunkITOJRSOUjs.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
|
+
_chunkITOJRSOUjs.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 } = _chunkITOJRSOUjs.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
|
+
_chunkITOJRSOUjs.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 } = _chunkITOJRSOUjs.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 } = _chunkITOJRSOUjs.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
|
+
_chunkITOJRSOUjs.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 } = _chunkITOJRSOUjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkITOJRSOUjs.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 } = _chunkITOJRSOUjs.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
|
+
_chunkITOJRSOUjs.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 } = _chunkITOJRSOUjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkITOJRSOUjs.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 = _chunkMO6QJPEBjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkITOJRSOUjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkITOJRSOUjs.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 } = _chunkITOJRSOUjs.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
|
+
_chunkITOJRSOUjs.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 } = _chunkITOJRSOUjs.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
|
+
_chunkITOJRSOUjs.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 } = _chunkITOJRSOUjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NTIWTBEH.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-JDSRPSES.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkUJCHR3J3js = require('./chunk-UJCHR3J3.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
// src/version.ts
|
|
746
|
-
var SDK_VERSION =
|
|
747
|
-
var SDK_API_MAJOR =
|
|
748
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
746
|
+
var SDK_VERSION = _chunkUJCHR3J3js.SDK_RELEASE.version;
|
|
747
|
+
var SDK_API_MAJOR = _chunkUJCHR3J3js.SDK_RELEASE.contracts.api.currentMajor;
|
|
748
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkUJCHR3J3js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
749
749
|
|
|
750
750
|
// src/agent-runtime.ts
|
|
751
751
|
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
recentSearchRef,
|
|
12
12
|
registerDeprecatedSearchCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-YGQ4AIK7.mjs";
|
|
14
14
|
import {
|
|
15
15
|
extractSummaryFields,
|
|
16
16
|
projectRowOutput,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
import {
|
|
23
23
|
DeeplineClient,
|
|
24
24
|
validateExecutionIdempotencyKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TAX3OOC6.mjs";
|
|
26
26
|
import {
|
|
27
27
|
beginToolExecuteCommand,
|
|
28
28
|
getToolExecuteInvocationId,
|
|
@@ -36,11 +36,11 @@ import {
|
|
|
36
36
|
printJsonError,
|
|
37
37
|
renderCommandEnvelopeText,
|
|
38
38
|
shouldEmitJson
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-NTIWTBEH.mjs";
|
|
40
40
|
import {
|
|
41
41
|
resolveConfig,
|
|
42
42
|
sdkCliStateDirPath
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-JDSRPSES.mjs";
|
|
44
44
|
import {
|
|
45
45
|
playToolListGetterMode
|
|
46
46
|
} from "./chunk-NTVTZAVZ.mjs";
|
|
@@ -1029,7 +1029,7 @@ Examples:
|
|
|
1029
1029
|
process.exitCode = await narrowView();
|
|
1030
1030
|
return;
|
|
1031
1031
|
}
|
|
1032
|
-
const { describeAnything } = await import("./describe-
|
|
1032
|
+
const { describeAnything } = await import("./describe-UYNKJV6T.mjs");
|
|
1033
1033
|
process.exitCode = await describeAnything(
|
|
1034
1034
|
toolId,
|
|
1035
1035
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -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 _chunk2OTDDG2Jjs = require('./chunk-2OTDDG2J.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkURPZWUVNjs = require('./chunk-URPZWUVN.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkITOJRSOUjs = require('./chunk-ITOJRSOU.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkMO6QJPEBjs = require('./chunk-MO6QJPEB.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 = _chunkURPZWUVNjs.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 ? _chunk2OTDDG2Jjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunk2OTDDG2Jjs.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()]) || _chunkMO6QJPEBjs.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 = _chunkURPZWUVNjs.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, () => ( _chunkMO6QJPEBjs.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 _chunkURPZWUVNjs.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
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunkITOJRSOUjs.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
|
+
_chunkITOJRSOUjs.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
|
+
_chunkITOJRSOUjs.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.345",
|
|
53
53
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|