deepline 0.3.417 → 0.3.418
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/sdk/src/types.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/tool-category-descriptions.ts +9 -0
- package/dist/cli/auth-3OX637KU.js +40 -0
- package/dist/cli/{auth-2WNDS7OY.mjs → auth-V5ACU3O2.mjs} +4 -4
- package/dist/cli/{billing-P26TYS3F.js → billing-UB4MHOT3.js} +73 -73
- package/dist/cli/{billing-4Z7QGTTO.mjs → billing-ZIRQHJFE.mjs} +4 -4
- package/dist/cli/{chunk-3U6CYHMT.mjs → chunk-32UTANSY.mjs} +1 -1
- package/dist/cli/{chunk-C3YRH3EQ.js → chunk-7L622O4Y.js} +2 -2
- package/dist/cli/{chunk-OLCY3CTW.js → chunk-AJ3NO7DO.js} +2 -2
- package/dist/cli/{chunk-OW7VBN4Q.js → chunk-CC2IVEOS.js} +6 -6
- package/dist/cli/{chunk-WRM2OWWT.mjs → chunk-IPKEHXR3.mjs} +2 -2
- package/dist/cli/{chunk-YGZV4IVP.js → chunk-IQD57S4D.js} +85 -79
- package/dist/cli/{chunk-QS7WRPCP.js → chunk-IRIY5HJ2.js} +50 -50
- package/dist/cli/{chunk-Y2HY7GL3.js → chunk-K6T5LK2V.js} +20 -20
- package/dist/cli/{chunk-W2DLQJ35.mjs → chunk-MBD53IKH.mjs} +3 -3
- package/dist/cli/{chunk-5D477CAK.js → chunk-MC2WIGSK.js} +8 -8
- package/dist/cli/{chunk-723EDOP2.mjs → chunk-MN6AKSIF.mjs} +2 -2
- package/dist/cli/{chunk-IX6CRC7R.js → chunk-OPYLSD2Y.js} +6 -6
- package/dist/cli/{chunk-H25KUAJM.mjs → chunk-OX2RL4U2.mjs} +1 -1
- package/dist/cli/{chunk-ZJFUKGDR.js → chunk-QMLU6FR6.js} +26 -26
- package/dist/cli/{chunk-Z7IVSY3A.mjs → chunk-RTK7HFI2.mjs} +3 -3
- package/dist/cli/{chunk-MRBM5H5V.mjs → chunk-SWMW7CGZ.mjs} +4 -4
- package/dist/cli/{chunk-R7HAELOE.js → chunk-TBSHWXLW.js} +52 -52
- package/dist/cli/{chunk-H67BP5SQ.mjs → chunk-TX7M4PHR.mjs} +3 -3
- package/dist/cli/{chunk-GRIE5VE3.mjs → chunk-U4ZC7W7F.mjs} +1 -1
- package/dist/cli/{chunk-EHGFSE44.js → chunk-UMKUJEPH.js} +1 -1
- package/dist/cli/{chunk-RRBYMSN6.mjs → chunk-VCXODFZY.mjs} +2 -2
- package/dist/cli/{chunk-CCRV2MCO.mjs → chunk-W4DLZBGA.mjs} +1 -1
- package/dist/cli/{chunk-L5YPTOLF.js → chunk-X4L2TVBM.js} +10 -10
- package/dist/cli/{chunk-ECKCIGJC.mjs → chunk-X6TVPUPJ.mjs} +1 -1
- package/dist/cli/{chunk-A3G7FZXB.js → chunk-XMISTHAV.js} +35 -35
- package/dist/cli/{chunk-2HQOCIFE.mjs → chunk-XRAEC3CY.mjs} +2 -2
- package/dist/cli/{chunk-ULGMHMTD.js → chunk-Y26NGVRJ.js} +8 -8
- package/dist/cli/{chunk-NATVQHG6.mjs → chunk-YKCQ6C72.mjs} +5 -5
- package/dist/cli/{chunk-IHHPUALO.mjs → chunk-YVJ45IPJ.mjs} +1 -1
- package/dist/cli/{chunk-QLP4Z6JG.js → chunk-ZLPLABLC.js} +4 -4
- package/dist/cli/{chunk-3FPDXTYQ.js → chunk-ZTZO2CCM.js} +16 -16
- package/dist/cli/{chunk-TNFYPFMU.mjs → chunk-ZVIFW7LC.mjs} +14 -8
- package/dist/cli/{csv-UKZDQDD5.mjs → csv-NUXKAO75.mjs} +3 -3
- package/dist/cli/{csv-PHHEOCRC.js → csv-YMB7KQ4Y.js} +12 -12
- package/dist/cli/{db-DUMQYDPZ.js → db-DZZVILTC.js} +25 -25
- package/dist/cli/{db-K3N4AJHP.mjs → db-KZDA6JI2.mjs} +4 -4
- package/dist/cli/{describe-RSQAAZWX.js → describe-AEPMZMC5.js} +16 -16
- package/dist/cli/{describe-LYS7YLGP.mjs → describe-F3YVMAIW.mjs} +12 -12
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/{executions-FQI2EGXY.js → executions-45F3UHOR.js} +6 -6
- package/dist/cli/{executions-A7OT35MH.mjs → executions-FZHTM5M6.mjs} +4 -4
- package/dist/cli/{feedback-EGTCQ4VW.js → feedback-BB3Z4UEA.js} +7 -7
- package/dist/cli/{feedback-E77JS5G4.mjs → feedback-Z3DPAIUE.mjs} +3 -3
- package/dist/cli/git-MFVTGD4N.js +24 -0
- package/dist/cli/{git-Y66QSXUA.mjs → git-VB7DKQIF.mjs} +4 -4
- package/dist/cli/index.js +131 -131
- package/dist/cli/index.mjs +36 -36
- package/dist/cli/{legacy-noops-E7NYDS2S.mjs → legacy-noops-FUCTWERE.mjs} +4 -4
- package/dist/cli/{legacy-noops-BUEO7ZIG.js → legacy-noops-KNXHDWXZ.js} +7 -7
- package/dist/cli/{monitors-IGOA4L5O.js → monitors-JAA2QU5X.js} +84 -84
- package/dist/cli/{monitors-YGX7XZHL.mjs → monitors-QVY6M22O.mjs} +4 -4
- package/dist/cli/{org-QOVN4IJE.js → org-6REABQZW.js} +64 -64
- package/dist/cli/{org-IUCMNFCG.mjs → org-J4SVIQHM.mjs} +4 -4
- package/dist/cli/{play-GCQETZW6.js → play-2PSN3ZIQ.js} +283 -283
- package/dist/cli/{play-BASBWJY7.mjs → play-6JEILD2O.mjs} +10 -10
- package/dist/cli/{providers-VC5QBJZ3.js → providers-KC2TT6IK.js} +7 -7
- package/dist/cli/{providers-RF7LEMAP.mjs → providers-VWOLONCJ.mjs} +4 -4
- package/dist/cli/{quickstart-64EULHRG.js → quickstart-CP7L4OHB.js} +5 -5
- package/dist/cli/{quickstart-7GAOQSQA.mjs → quickstart-ZAC3IDFO.mjs} +3 -3
- package/dist/cli/search-FOUJGAMG.js +30 -0
- package/dist/cli/{search-UOMJJUVT.mjs → search-ZN5ZNNMY.mjs} +5 -5
- package/dist/cli/{secrets-MIIKANZ7.mjs → secrets-LNUVVSXM.mjs} +4 -4
- package/dist/cli/{secrets-GGXQOSGV.js → secrets-V6SPFXBE.js} +13 -13
- package/dist/cli/{sessions-L7OMZEPU.js → sessions-5CZX2SXB.js} +5 -5
- package/dist/cli/{sessions-VQENKFWC.mjs → sessions-7RW3QBGB.mjs} +4 -4
- package/dist/cli/{settings-GKI7CZ62.js → settings-TSAEGFLE.js} +75 -75
- package/dist/cli/{settings-JCJPJCKF.mjs → settings-YEM3ZFDW.mjs} +8 -8
- package/dist/cli/{setup-P4AM7K34.js → setup-AAHA5LHX.js} +42 -42
- package/dist/cli/{setup-BN25RDMT.mjs → setup-JJD4K7W2.mjs} +7 -7
- package/dist/cli/{skills-3M2OV4EQ.mjs → skills-PH7JSP56.mjs} +5 -5
- package/dist/cli/skills-RU3O66D5.js +29 -0
- package/dist/cli/{tools-337Y5WWW.mjs → tools-5GBFL3JE.mjs} +12 -12
- package/dist/cli/tools-7Q3YFIFR.js +44 -0
- package/dist/cli/update-4RBEYEQ5.js +31 -0
- package/dist/cli/{update-A3Y6PY7O.mjs → update-IKTFZC6V.mjs} +7 -7
- package/dist/cli/{workflow-LPO25MX7.mjs → workflow-RNV56CI7.mjs} +5 -5
- package/dist/cli/{workflow-XQATHEOS.js → workflow-ZFIZP6U6.js} +15 -15
- package/dist/{client-CNfY1AzH.d.mts → client-CCWIUnk7.d.mts} +2 -0
- package/dist/{client-CNjtvsqn.d.ts → client-vHqBm-OL.d.ts} +2 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +80 -80
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- 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-3NIULVL4.js +0 -40
- package/dist/cli/git-PHGV243L.js +0 -24
- package/dist/cli/search-7TOXLL4V.js +0 -30
- package/dist/cli/skills-NGE2YPQJ.js +0 -29
- package/dist/cli/tools-ROHOYYLK.js +0 -44
- package/dist/cli/update-6ZC2XCW6.js +0 -31
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkCC2IVEOSjs = require('./chunk-CC2IVEOS.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZLPLABLCjs = require('./chunk-ZLPLABLC.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 } = _chunkCC2IVEOSjs.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
|
+
_chunkCC2IVEOSjs.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 } = _chunkCC2IVEOSjs.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
|
+
_chunkCC2IVEOSjs.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 } = _chunkCC2IVEOSjs.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
|
+
_chunkCC2IVEOSjs.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 } = _chunkCC2IVEOSjs.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 } = _chunkCC2IVEOSjs.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
|
+
_chunkCC2IVEOSjs.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 } = _chunkCC2IVEOSjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkCC2IVEOSjs.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 } = _chunkCC2IVEOSjs.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
|
+
_chunkCC2IVEOSjs.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 } = _chunkCC2IVEOSjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkCC2IVEOSjs.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 = _chunkZLPLABLCjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkCC2IVEOSjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkCC2IVEOSjs.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 } = _chunkCC2IVEOSjs.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
|
+
_chunkCC2IVEOSjs.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 } = _chunkCC2IVEOSjs.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
|
+
_chunkCC2IVEOSjs.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 } = _chunkCC2IVEOSjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkCC2IVEOSjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isJsonOutputMode
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-W4DLZBGA.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
sdkCliStateDirPath,
|
|
18
18
|
skillsAgentPathSegment,
|
|
19
19
|
writeSdkSkillsLocalVersion
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-OX2RL4U2.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DeeplineError
|
|
23
23
|
} from "./chunk-E4IXDAZI.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_RELEASE
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-32UTANSY.mjs";
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
import { randomUUID } from "crypto";
|
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YKCQ6C72.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RTK7HFI2.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-W4DLZBGA.mjs";
|
|
15
15
|
import {
|
|
16
16
|
SDK_VERSION,
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-OX2RL4U2.mjs";
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -1,6 +1,6 @@
|
|
|
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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkCC2IVEOSjs = require('./chunk-CC2IVEOS.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
@@ -17,13 +17,13 @@ var _chunkOW7VBN4Qjs = require('./chunk-OW7VBN4Q.js');
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkZLPLABLCjs = require('./chunk-ZLPLABLC.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkUMKUJEPHjs = require('./chunk-UMKUJEPH.js');
|
|
27
27
|
|
|
28
28
|
// src/compat.ts
|
|
29
29
|
var _crypto = require('crypto');
|
|
@@ -58,7 +58,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
58
58
|
return value === "1" || value === "true" || value === "yes";
|
|
59
59
|
}
|
|
60
60
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
61
|
-
return _path.join.call(void 0,
|
|
61
|
+
return _path.join.call(void 0, _chunkZLPLABLCjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
62
62
|
}
|
|
63
63
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
64
64
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -66,9 +66,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
66
66
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
67
67
|
return JSON.stringify({
|
|
68
68
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
69
|
-
version:
|
|
70
|
-
apiContract:
|
|
71
|
-
apiMajor:
|
|
69
|
+
version: _chunkZLPLABLCjs.SDK_VERSION,
|
|
70
|
+
apiContract: _chunkZLPLABLCjs.SDK_API_CONTRACT,
|
|
71
|
+
apiMajor: _chunkZLPLABLCjs.SDK_API_MAJOR,
|
|
72
72
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
73
73
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
74
74
|
});
|
|
@@ -76,8 +76,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
76
76
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
77
77
|
return JSON.stringify({
|
|
78
78
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
79
|
-
version:
|
|
80
|
-
apiContract:
|
|
79
|
+
version: _chunkZLPLABLCjs.SDK_VERSION,
|
|
80
|
+
apiContract: _chunkZLPLABLCjs.SDK_API_CONTRACT,
|
|
81
81
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -102,7 +102,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
102
102
|
}
|
|
103
103
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
104
104
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
105
|
-
const path = _path.join.call(void 0,
|
|
105
|
+
const path = _path.join.call(void 0, _chunkZLPLABLCjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
106
106
|
try {
|
|
107
107
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
108
108
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -186,7 +186,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
186
186
|
);
|
|
187
187
|
try {
|
|
188
188
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
189
|
-
url.searchParams.set("version",
|
|
189
|
+
url.searchParams.set("version", _chunkZLPLABLCjs.SDK_VERSION);
|
|
190
190
|
if (_optionalChain([options, 'access', _27 => _27.command, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) {
|
|
191
191
|
url.searchParams.set("command", options.command.trim());
|
|
192
192
|
}
|
|
@@ -194,7 +194,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
194
194
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
195
195
|
url.searchParams.set(
|
|
196
196
|
"skills_cli_capability",
|
|
197
|
-
String(
|
|
197
|
+
String(_chunkUMKUJEPHjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
200
|
if (options.catalog) {
|
|
@@ -206,14 +206,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
206
206
|
const response = await fetch(url, {
|
|
207
207
|
method: "GET",
|
|
208
208
|
headers: {
|
|
209
|
-
...
|
|
210
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
211
|
-
"X-Deepline-SDK-Version":
|
|
212
|
-
"X-Deepline-API-Major": String(
|
|
213
|
-
"X-Deepline-API-Contract":
|
|
209
|
+
..._chunkZLPLABLCjs.deploymentProtectionHeaders.call(void 0, ),
|
|
210
|
+
"User-Agent": `deepline-ts-sdk/${_chunkZLPLABLCjs.SDK_VERSION}`,
|
|
211
|
+
"X-Deepline-SDK-Version": _chunkZLPLABLCjs.SDK_VERSION,
|
|
212
|
+
"X-Deepline-API-Major": String(_chunkZLPLABLCjs.SDK_API_MAJOR),
|
|
213
|
+
"X-Deepline-API-Contract": _chunkZLPLABLCjs.SDK_API_CONTRACT,
|
|
214
214
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
215
215
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
216
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
216
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkZLPLABLCjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
217
217
|
..._optionalChain([options, 'access', _30 => _30.catalog, 'optionalAccess', _31 => _31.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
218
218
|
},
|
|
219
219
|
signal: controller.signal
|
|
@@ -374,7 +374,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
374
374
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
375
375
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
376
376
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
377
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
377
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkZLPLABLCjs.DEFAULT_SKILL_AGENTS));
|
|
378
378
|
const values = {
|
|
379
379
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
380
380
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -413,7 +413,7 @@ var CliProgress = (_class = class {
|
|
|
413
413
|
|
|
414
414
|
// --json output is one JSON document: progress never renders under it.
|
|
415
415
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);
|
|
416
|
-
this.enabled = enabled && !
|
|
416
|
+
this.enabled = enabled && !_chunkCC2IVEOSjs.isJsonOutputMode.call(void 0, );
|
|
417
417
|
}
|
|
418
418
|
phase(message) {
|
|
419
419
|
if (!this.enabled || this.lastMessage === message) {
|
|
@@ -438,7 +438,7 @@ var CliProgress = (_class = class {
|
|
|
438
438
|
this.settle("\u2717");
|
|
439
439
|
}
|
|
440
440
|
writeLogLine(line) {
|
|
441
|
-
if (
|
|
441
|
+
if (_chunkCC2IVEOSjs.isJsonOutputMode.call(void 0, )) return;
|
|
442
442
|
if (!this.enabled) {
|
|
443
443
|
process.stderr.write(`${line}
|
|
444
444
|
`);
|
|
@@ -740,7 +740,7 @@ function buildEnvironmentContext() {
|
|
|
740
740
|
node_version: process.version,
|
|
741
741
|
runtime: "Node.js",
|
|
742
742
|
hostname: _os.hostname.call(void 0, ),
|
|
743
|
-
agent_runtime:
|
|
743
|
+
agent_runtime: _chunkZLPLABLCjs.detectAgentRuntime.call(void 0, )
|
|
744
744
|
};
|
|
745
745
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
746
746
|
const normalized = _optionalChain([process, 'access', _60 => _60.env, 'access', _61 => _61[key], 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
|
|
@@ -762,15 +762,15 @@ function buildEnvironmentContext() {
|
|
|
762
762
|
}
|
|
763
763
|
function failureReportHeaders(apiKey) {
|
|
764
764
|
return {
|
|
765
|
-
...
|
|
765
|
+
..._chunkZLPLABLCjs.deploymentProtectionHeaders.call(void 0, ),
|
|
766
766
|
Authorization: `Bearer ${apiKey}`,
|
|
767
767
|
"Content-Type": "application/json",
|
|
768
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
768
|
+
"User-Agent": `deepline-ts-sdk/${_chunkZLPLABLCjs.SDK_VERSION}`,
|
|
769
769
|
"X-Deepline-Client-Family": "sdk",
|
|
770
770
|
"X-Deepline-CLI-Family": "sdk",
|
|
771
|
-
"X-Deepline-Agent-Runtime":
|
|
772
|
-
"X-Deepline-CLI-Version":
|
|
773
|
-
"X-Deepline-SDK-Version":
|
|
771
|
+
"X-Deepline-Agent-Runtime": _chunkZLPLABLCjs.detectAgentRuntime.call(void 0, ),
|
|
772
|
+
"X-Deepline-CLI-Version": _chunkZLPLABLCjs.SDK_VERSION,
|
|
773
|
+
"X-Deepline-SDK-Version": _chunkZLPLABLCjs.SDK_VERSION
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
776
|
async function postFailureReport(input) {
|
|
@@ -798,7 +798,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
798
798
|
if (isFailureReportingDisabled()) return false;
|
|
799
799
|
let apiKey = "";
|
|
800
800
|
try {
|
|
801
|
-
apiKey =
|
|
801
|
+
apiKey = _chunkZLPLABLCjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
802
802
|
} catch (e9) {
|
|
803
803
|
return false;
|
|
804
804
|
}
|
|
@@ -825,7 +825,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
825
825
|
failure_code: failureCode2,
|
|
826
826
|
failure_stage: failureStage,
|
|
827
827
|
error_body: "Automatic Deepline skills installation failed.",
|
|
828
|
-
cli_version:
|
|
828
|
+
cli_version: _chunkZLPLABLCjs.SDK_VERSION,
|
|
829
829
|
context: {
|
|
830
830
|
environment: buildEnvironmentContext(),
|
|
831
831
|
skills_sync: {
|
|
@@ -945,7 +945,7 @@ function buildFailureReport(input) {
|
|
|
945
945
|
failure_kind: failureKind,
|
|
946
946
|
failure_code: code,
|
|
947
947
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
948
|
-
cli_version:
|
|
948
|
+
cli_version: _chunkZLPLABLCjs.SDK_VERSION,
|
|
949
949
|
context: {
|
|
950
950
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
951
951
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -965,8 +965,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
965
965
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
966
966
|
const exitCode = resolvedExitCode(input);
|
|
967
967
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
968
|
-
const baseUrl =
|
|
969
|
-
const apiKey =
|
|
968
|
+
const baseUrl = _chunkZLPLABLCjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
969
|
+
const apiKey = _chunkZLPLABLCjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
970
970
|
if (!apiKey) return false;
|
|
971
971
|
return postFailureReport({
|
|
972
972
|
baseUrl,
|
|
@@ -1003,25 +1003,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
1003
1003
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
1004
1004
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
1005
1005
|
function shouldSkipSkillsSync() {
|
|
1006
|
-
if (
|
|
1006
|
+
if (_chunkZLPLABLCjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
1007
1007
|
return true;
|
|
1008
1008
|
}
|
|
1009
1009
|
const value = _optionalChain([process, 'access', _84 => _84.env, 'access', _85 => _85.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _86 => _86.trim, 'call', _87 => _87(), 'access', _88 => _88.toLowerCase, 'call', _89 => _89()]);
|
|
1010
1010
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
1011
1011
|
}
|
|
1012
1012
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
1013
|
-
return _path.join.call(void 0,
|
|
1013
|
+
return _path.join.call(void 0, _chunkZLPLABLCjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
1014
1014
|
}
|
|
1015
1015
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
1016
1016
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
1017
|
-
var agentLeaseSegment =
|
|
1017
|
+
var agentLeaseSegment = _chunkZLPLABLCjs.skillsAgentPathSegment;
|
|
1018
1018
|
function sortedLeaseAgents(agents) {
|
|
1019
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
1019
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkZLPLABLCjs.KNOWN_SKILL_AGENTS] : agents;
|
|
1020
1020
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
1021
1021
|
}
|
|
1022
1022
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
1023
1023
|
return _path.join.call(void 0,
|
|
1024
|
-
|
|
1024
|
+
_chunkZLPLABLCjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1025
1025
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
1026
1026
|
);
|
|
1027
1027
|
}
|
|
@@ -1180,7 +1180,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
1180
1180
|
constructor(baseUrl, error) {
|
|
1181
1181
|
const detail = error instanceof Error ? error.message : String(error);
|
|
1182
1182
|
super(
|
|
1183
|
-
`Could not save skills state in ${
|
|
1183
|
+
`Could not save skills state in ${_chunkZLPLABLCjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
1184
1184
|
);
|
|
1185
1185
|
this.name = "SkillsStateUnavailableError";
|
|
1186
1186
|
}
|
|
@@ -1265,7 +1265,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1267
1267
|
return _path.join.call(void 0,
|
|
1268
|
-
|
|
1268
|
+
_chunkZLPLABLCjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1269
1269
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1270
1270
|
);
|
|
1271
1271
|
}
|
|
@@ -1299,8 +1299,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1299
1299
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1300
1300
|
}
|
|
1301
1301
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1302
|
-
if (shouldSkipSkillsSync() ||
|
|
1303
|
-
const agents =
|
|
1302
|
+
if (shouldSkipSkillsSync() || _chunkZLPLABLCjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1303
|
+
const agents = _chunkZLPLABLCjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1304
1304
|
if (agents.length === 0) return;
|
|
1305
1305
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1306
1306
|
}
|
|
@@ -1316,7 +1316,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1316
1316
|
}
|
|
1317
1317
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1318
1318
|
return _path.join.call(void 0,
|
|
1319
|
-
|
|
1319
|
+
_chunkZLPLABLCjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1320
1320
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1321
1321
|
);
|
|
1322
1322
|
}
|
|
@@ -1345,7 +1345,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1345
1345
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1346
1346
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1347
1347
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1348
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1348
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkZLPLABLCjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1349
1349
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _94 => _94.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
1350
1350
|
notice(
|
|
1351
1351
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1433,7 +1433,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1433
1433
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1434
1434
|
}
|
|
1435
1435
|
function isDefaultAgentSet(agents) {
|
|
1436
|
-
return agents.length ===
|
|
1436
|
+
return agents.length === _chunkZLPLABLCjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkZLPLABLCjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1437
1437
|
}
|
|
1438
1438
|
function safeSkillFilePath(value) {
|
|
1439
1439
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1590,10 +1590,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1590
1590
|
method: "POST",
|
|
1591
1591
|
headers: { "Content-Type": "application/json" },
|
|
1592
1592
|
body: JSON.stringify({
|
|
1593
|
-
sdk_cli: { version:
|
|
1593
|
+
sdk_cli: { version: _chunkZLPLABLCjs.SDK_VERSION },
|
|
1594
1594
|
skills: {
|
|
1595
1595
|
version: localVersion,
|
|
1596
|
-
capability:
|
|
1596
|
+
capability: _chunkUMKUJEPHjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1597
1597
|
}
|
|
1598
1598
|
}),
|
|
1599
1599
|
signal: controller.signal
|
|
@@ -1632,7 +1632,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1632
1632
|
}
|
|
1633
1633
|
function noInstallerProbePath(baseUrl) {
|
|
1634
1634
|
return _path.join.call(void 0,
|
|
1635
|
-
|
|
1635
|
+
_chunkZLPLABLCjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1636
1636
|
"skills-sync-no-installer-unknown.json"
|
|
1637
1637
|
);
|
|
1638
1638
|
}
|
|
@@ -1711,7 +1711,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1711
1711
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1712
1712
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1713
1713
|
}
|
|
1714
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1714
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkZLPLABLCjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1715
1715
|
const commands = [];
|
|
1716
1716
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1717
1717
|
if (probes.bunx === "available") {
|
|
@@ -1863,11 +1863,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1863
1863
|
}
|
|
1864
1864
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1865
1865
|
if (shouldSkipSkillsSync()) return;
|
|
1866
|
-
const usingPluginSkills =
|
|
1866
|
+
const usingPluginSkills = _chunkZLPLABLCjs.hasActivePluginSkills.call(void 0, );
|
|
1867
1867
|
if (usingPluginSkills) {
|
|
1868
1868
|
return;
|
|
1869
1869
|
}
|
|
1870
|
-
const agents =
|
|
1870
|
+
const agents = _chunkZLPLABLCjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1871
1871
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1872
1872
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1873
1873
|
}
|
|
@@ -1895,7 +1895,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1895
1895
|
return;
|
|
1896
1896
|
}
|
|
1897
1897
|
try {
|
|
1898
|
-
const localVersion =
|
|
1898
|
+
const localVersion = _chunkZLPLABLCjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1899
1899
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1900
1900
|
needsUpdate: options.update.needs_update,
|
|
1901
1901
|
remoteVersion: options.update.remote.version
|
|
@@ -2061,7 +2061,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
}
|
|
2063
2063
|
runLegacySkillsCleanup(agents);
|
|
2064
|
-
if (!
|
|
2064
|
+
if (!_chunkZLPLABLCjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
2065
2065
|
notice(
|
|
2066
2066
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
2067
2067
|
);
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-RTK7HFI2.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-W4DLZBGA.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION,
|
|
20
20
|
autoDetectBaseUrl,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
ensureProjectPrivatePathsIgnored,
|
|
23
23
|
resolveProjectPinTarget,
|
|
24
24
|
sdkCliStateDirPath
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-OX2RL4U2.mjs";
|
|
26
26
|
|
|
27
27
|
// src/cli/commands/skills.ts
|
|
28
28
|
import { spawn } from "child_process";
|
|
@@ -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.418",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "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."
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-W4DLZBGA.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OX2RL4U2.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|