deepline 0.3.507 → 0.3.508
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/monitors/package.json +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-admission-codes.ts +11 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +3 -1
- package/dist/cli/{auth-BNP3M27C.mjs → auth-2URIN52G.mjs} +5 -5
- package/dist/cli/auth-LFU77QDI.js +43 -0
- package/dist/cli/{billing-JKJ2AEZ6.mjs → billing-IW23GSR5.mjs} +6 -6
- package/dist/cli/{billing-7HIVX4YJ.js → billing-R2HY2ZVJ.js} +79 -79
- package/dist/cli/{chunk-YAAJHS6W.mjs → chunk-2LY42EZJ.mjs} +1 -1
- package/dist/cli/{chunk-WQAHMVBT.mjs → chunk-2PYFXXYA.mjs} +2 -2
- package/dist/cli/{chunk-MQRT5NYP.js → chunk-2YOM5J3G.js} +26 -26
- package/dist/cli/{chunk-56SRWY5F.js → chunk-3BZ74K27.js} +16 -16
- package/dist/cli/{chunk-GMRWVXU2.mjs → chunk-3C6VBHNW.mjs} +2 -2
- package/dist/cli/{chunk-D2T4W5LR.mjs → chunk-3XBI4KZM.mjs} +2 -2
- package/dist/cli/{chunk-E5HGDYU3.js → chunk-3ZNPIJX6.js} +41 -41
- package/dist/cli/{chunk-EEJLV77L.mjs → chunk-4DAR2GYV.mjs} +2 -2
- package/dist/cli/{chunk-REFT4DMJ.js → chunk-63BGKU3A.js} +96 -96
- package/dist/cli/{chunk-LSONU2E2.mjs → chunk-63MCLOR2.mjs} +6 -6
- package/dist/cli/{chunk-5PXGAA2M.js → chunk-74UO7THC.js} +4 -4
- package/dist/cli/{chunk-ILUZ7IHP.js → chunk-7PELFO3C.js} +21 -21
- package/dist/cli/{chunk-E7YIIEZU.js → chunk-AYNO4VFW.js} +11 -11
- package/dist/cli/{chunk-TVR4R2E6.mjs → chunk-C6TP4DR3.mjs} +1 -1
- package/dist/cli/{chunk-V2K34NAO.js → chunk-D73YB5NQ.js} +2 -2
- package/dist/cli/{chunk-H6PABDS4.mjs → chunk-DWV7KM6H.mjs} +10 -10
- package/dist/cli/{chunk-H334EFON.mjs → chunk-DZ7JCRAL.mjs} +2 -2
- package/dist/cli/{chunk-JPN6OBPW.js → chunk-ESVK4Z7S.js} +1 -1
- package/dist/cli/{chunk-IWZRQ6YW.mjs → chunk-FRT5MFLF.mjs} +1 -1
- package/dist/cli/{chunk-MN5HO2PN.js → chunk-FXKKFM7J.js} +9 -9
- package/dist/cli/{chunk-JCE2JNGD.mjs → chunk-GRGZKXLL.mjs} +5 -5
- package/dist/cli/{chunk-5I2XKXLS.mjs → chunk-IF242BIJ.mjs} +5 -5
- package/dist/cli/{chunk-3D5ZNYYI.js → chunk-IZZ7FFWP.js} +44 -44
- package/dist/cli/{chunk-TZ7APOBM.js → chunk-J3LJ37WD.js} +3 -3
- package/dist/cli/{chunk-IBKWVFWP.mjs → chunk-JEB6BNIU.mjs} +2 -2
- package/dist/cli/{chunk-OBATCFZO.js → chunk-JRHMPZJX.js} +7 -7
- package/dist/cli/{chunk-6AQO5OJ5.js → chunk-JUYW6TSU.js} +7 -7
- package/dist/cli/{chunk-7TZA6LJI.mjs → chunk-JXYVBF5L.mjs} +5 -5
- package/dist/cli/{chunk-QWRSWQ7Z.js → chunk-JYNHHO3J.js} +6 -6
- package/dist/cli/{chunk-T6FUNWXX.mjs → chunk-K4RME7AV.mjs} +1 -1
- package/dist/cli/{chunk-XKGNEN4P.mjs → chunk-KSQO32L5.mjs} +1 -1
- package/dist/cli/{chunk-2ZINJVWW.js → chunk-M37I4A2Z.js} +16 -16
- package/dist/cli/{chunk-V4GGTOCX.js → chunk-N5HRBS4K.js} +3 -3
- package/dist/cli/{chunk-5A66OJZD.mjs → chunk-NC2FIUPX.mjs} +1 -1
- package/dist/cli/{chunk-NJRJGXVF.mjs → chunk-OWH7SSBO.mjs} +2 -2
- package/dist/cli/{chunk-RFJANXCC.js → chunk-P7GOQTUN.js} +14 -14
- package/dist/cli/{chunk-RTLWYERT.mjs → chunk-Q4I5YKN4.mjs} +1 -1
- package/dist/cli/{chunk-EYZJDHXA.mjs → chunk-QBZECLNG.mjs} +3 -3
- package/dist/cli/{chunk-WOPWSAGS.js → chunk-R4S2AK3Q.js} +53 -53
- package/dist/cli/{chunk-OPEJASMJ.mjs → chunk-RNZQ7RDW.mjs} +2 -2
- package/dist/cli/{chunk-HPZONIDF.js → chunk-RUD77W2Y.js} +5 -5
- package/dist/cli/{chunk-AXYLMDU3.js → chunk-RWXHMG6F.js} +8 -8
- package/dist/cli/{chunk-WTY2R4R3.js → chunk-TVADI7K5.js} +5 -5
- package/dist/cli/{chunk-2OKEMB5A.mjs → chunk-UDH3YMBI.mjs} +1 -1
- package/dist/cli/{chunk-VQLD5M43.mjs → chunk-VXNL4HLE.mjs} +5 -5
- package/dist/cli/{chunk-VGEBRTHF.mjs → chunk-XSOLA2ED.mjs} +4 -4
- package/dist/cli/{chunk-76R5I7HR.js → chunk-ZL2ME3UT.js} +6 -6
- package/dist/cli/{chunk-ZCNGMQVD.js → chunk-ZLIAUR2E.js} +2 -2
- package/dist/cli/{csv-LZTQOPP2.mjs → csv-CMJSMC2I.mjs} +4 -4
- package/dist/cli/{csv-WYJVU5HV.js → csv-DPDO6BU6.js} +13 -13
- package/dist/cli/{db-UCUXPY7S.js → db-PPPKNTT5.js} +27 -27
- package/dist/cli/{db-D6XFOQP3.mjs → db-SL3EFN6V.mjs} +6 -6
- package/dist/cli/describe-JKZ67X3E.js +50 -0
- package/dist/cli/{describe-HKL2XK67.mjs → describe-XLN33FJX.mjs} +18 -18
- package/dist/cli/{executions-5CF5NM7V.js → executions-6YDTV2J6.js} +8 -8
- package/dist/cli/{executions-AFHYXH73.mjs → executions-O6Z5B5NY.mjs} +6 -6
- package/dist/cli/{feedback-GJAX3JZE.js → feedback-BZ434BN4.js} +8 -8
- package/dist/cli/{feedback-MLKQ572F.mjs → feedback-DP7LPWAD.mjs} +4 -4
- package/dist/cli/{git-BMLROZOU.mjs → git-MI7E5WGL.mjs} +5 -5
- package/dist/cli/git-U5N6CTML.js +25 -0
- package/dist/cli/index.js +138 -138
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-FHRDF7MC.js → legacy-noops-65WNPQVZ.js} +8 -8
- package/dist/cli/{legacy-noops-Y7JSQVLQ.mjs → legacy-noops-6VYXF2MG.mjs} +5 -5
- package/dist/cli/{monitors-Z6RPIQIH.js → monitors-BYUCTVSC.js} +100 -100
- package/dist/cli/{monitors-ZEVK3UD7.mjs → monitors-Y7I5ZVCN.mjs} +7 -7
- package/dist/cli/{org-TXJ3RES5.js → org-F2ASWTFY.js} +72 -72
- package/dist/cli/{org-PFLVANIN.mjs → org-IW3YD6JZ.mjs} +6 -6
- package/dist/cli/{pages-BKEMQ2J7.mjs → pages-H2CXNIDB.mjs} +6 -6
- package/dist/cli/{pages-ESKKBK5Y.js → pages-X6HLRQNV.js} +18 -18
- package/dist/cli/{play-AAFOZJKQ.js → play-H2EM7DTI.js} +317 -317
- package/dist/cli/{play-4Z6Z7KVY.mjs → play-LLEEDXRX.mjs} +18 -18
- package/dist/cli/{providers-WEU4UNKY.js → providers-6R2SPOEV.js} +9 -9
- package/dist/cli/{providers-KYP2UWDV.mjs → providers-BZR5JONN.mjs} +6 -6
- package/dist/cli/{quickstart-7EUDF4IL.mjs → quickstart-KVES7R6D.mjs} +4 -4
- package/dist/cli/{quickstart-DXYZCOJY.js → quickstart-PW7ONQUH.js} +6 -6
- package/dist/cli/{run-3YN6P26W.js → run-HVUQROBE.js} +41 -41
- package/dist/cli/{run-MB2R5PQ7.mjs → run-RDI3Q6GO.mjs} +23 -23
- package/dist/cli/{search-MIFBESRE.mjs → search-3TJ24CUF.mjs} +8 -8
- package/dist/cli/search-NKEEGLY6.js +33 -0
- package/dist/cli/{search-output-NUWL47SR.js → search-output-JHT553SL.js} +6 -6
- package/dist/cli/{search-output-2IR3UA4W.mjs → search-output-Y57OBQXX.mjs} +4 -4
- package/dist/cli/{secrets-E6WIYONW.mjs → secrets-OZK7GRD5.mjs} +6 -6
- package/dist/cli/{secrets-6UT6BIDJ.js → secrets-U5JHWAXU.js} +15 -15
- package/dist/cli/{sessions-AP7L6YCL.mjs → sessions-D6DSEQ2T.mjs} +5 -5
- package/dist/cli/{sessions-NF2RBXMJ.js → sessions-PNMYAJNB.js} +6 -6
- package/dist/cli/{settings-FZWXYP4W.js → settings-DLPEHYGS.js} +82 -82
- package/dist/cli/{settings-MMLHJ5E5.mjs → settings-ITLSLT2R.mjs} +12 -12
- package/dist/cli/{setup-WJNN2CZZ.mjs → setup-XTYLF2CF.mjs} +10 -10
- package/dist/cli/{setup-YHXAAJNZ.js → setup-Y5ZYEC6U.js} +50 -50
- package/dist/cli/{skills-KXZ5PJU2.mjs → skills-C4WCAVII.mjs} +8 -8
- package/dist/cli/skills-K6FVG3BX.js +37 -0
- package/dist/cli/tools-LSALTN7I.js +57 -0
- package/dist/cli/{tools-K6S7RX7B.mjs → tools-ZESAPVOW.mjs} +17 -17
- package/dist/cli/{update-2SFWEVM6.mjs → update-4PCKVDCS.mjs} +10 -10
- package/dist/cli/update-P5KGNFNL.js +35 -0
- package/dist/cli/{workflow-IR3RCVHZ.mjs → workflow-42CL4TVR.mjs} +7 -7
- package/dist/cli/{workflow-SM3Q45X5.js → workflow-XXKXMPTI.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +101 -100
- 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/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-6PJ4G5PC.js +0 -43
- package/dist/cli/describe-XS4OIASD.js +0 -50
- package/dist/cli/git-RIXUHRDL.js +0 -25
- package/dist/cli/search-Z7GUKVFE.js +0 -33
- package/dist/cli/skills-4YYUFNMS.js +0 -37
- package/dist/cli/tools-OCYEMMUP.js +0 -57
- package/dist/cli/update-WQIPUQ4K.js +0 -35
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkJUYW6TSUjs = require('./chunk-JUYW6TSU.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkJ3LJ37WDjs = require('./chunk-J3LJ37WD.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 } = _chunkJUYW6TSUjs.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
|
+
_chunkJUYW6TSUjs.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 } = _chunkJUYW6TSUjs.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
|
+
_chunkJUYW6TSUjs.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 } = _chunkJUYW6TSUjs.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
|
+
_chunkJUYW6TSUjs.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 } = _chunkJUYW6TSUjs.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 } = _chunkJUYW6TSUjs.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
|
+
_chunkJUYW6TSUjs.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 } = _chunkJUYW6TSUjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkJUYW6TSUjs.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 } = _chunkJUYW6TSUjs.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
|
+
_chunkJUYW6TSUjs.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 } = _chunkJUYW6TSUjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkJUYW6TSUjs.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 = _chunkJ3LJ37WDjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkJUYW6TSUjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkJUYW6TSUjs.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 } = _chunkJUYW6TSUjs.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
|
+
_chunkJUYW6TSUjs.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 } = _chunkJUYW6TSUjs.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
|
+
_chunkJUYW6TSUjs.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 } = _chunkJUYW6TSUjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk63BGKU3Ajs = require('./chunk-63BGKU3A.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkZL2ME3UTjs = require('./chunk-ZL2ME3UT.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,18 +14,18 @@ var _chunkTMQUMILMjs = require('./chunk-TMQUMILM.js');
|
|
|
14
14
|
var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkTVADI7K5js = require('./chunk-TVADI7K5.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkP7GOQTUNjs = require('./chunk-P7GOQTUN.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkJUYW6TSUjs = require('./chunk-JUYW6TSU.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkJ3LJ37WDjs = require('./chunk-J3LJ37WD.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
var _fs = require('fs');
|
|
@@ -34,14 +34,14 @@ var _path = require('path');
|
|
|
34
34
|
// src/cli/doc-read-reporting.ts
|
|
35
35
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
36
36
|
async function reportDocRead(docId) {
|
|
37
|
-
if (
|
|
37
|
+
if (_chunkP7GOQTUNjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
38
38
|
try {
|
|
39
|
-
const baseUrl =
|
|
40
|
-
const apiKey =
|
|
39
|
+
const baseUrl = _chunkJ3LJ37WDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
40
|
+
const apiKey = _chunkJ3LJ37WDjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
41
41
|
if (!apiKey) return;
|
|
42
42
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
43
43
|
method: "POST",
|
|
44
|
-
headers:
|
|
44
|
+
headers: _chunkP7GOQTUNjs.failureReportHeaders.call(void 0, apiKey),
|
|
45
45
|
body: JSON.stringify({ doc_id: docId }),
|
|
46
46
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
47
47
|
});
|
|
@@ -54,16 +54,16 @@ function nothingNamed(name) {
|
|
|
54
54
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
55
55
|
}
|
|
56
56
|
function findNamed2(name, options) {
|
|
57
|
-
return _chunkTMQUMILMjs.findNamed.call(void 0, name, options, _chunkTMQUMILMjs.describeLookupsFor.call(void 0, new (0,
|
|
57
|
+
return _chunkTMQUMILMjs.findNamed.call(void 0, name, options, _chunkTMQUMILMjs.describeLookupsFor.call(void 0, new (0, _chunkTVADI7K5js.DeeplineClient)()));
|
|
58
58
|
}
|
|
59
59
|
async function describeAnything(name, options, onMissing) {
|
|
60
|
-
const client = new (0,
|
|
60
|
+
const client = new (0, _chunkTVADI7K5js.DeeplineClient)();
|
|
61
61
|
const lookups = _chunkTMQUMILMjs.describeLookupsFor.call(void 0, client);
|
|
62
62
|
const outcome = await _chunkTMQUMILMjs.describeName.call(void 0, name, options, {
|
|
63
63
|
...lookups,
|
|
64
64
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
65
65
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
66
|
-
seedStarterScript:
|
|
66
|
+
seedStarterScript: _chunk63BGKU3Ajs.seedToolListScript
|
|
67
67
|
});
|
|
68
68
|
if (outcome.status === "missing") {
|
|
69
69
|
if (onMissing) return onMissing();
|
|
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
89
89
|
` : text;
|
|
90
90
|
_fs.writeFileSync.call(void 0, path, content);
|
|
91
91
|
const bytes = Buffer.byteLength(content);
|
|
92
|
-
|
|
92
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
93
93
|
{ path, bytes },
|
|
94
94
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
95
95
|
` }
|
|
96
96
|
);
|
|
97
97
|
return 0;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
100
100
|
return 0;
|
|
101
101
|
}
|
|
102
102
|
function registerDescribeCommand(program) {
|
|
103
|
-
|
|
103
|
+
_chunkZL2ME3UTjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
104
104
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
105
105
|
).addHelpText(
|
|
106
106
|
"after",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Q4I5YKN4.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FRT5MFLF.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoDetectBaseUrl,
|
|
3
3
|
resolveApiKeyForBaseUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FRT5MFLF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SDK_VERSION,
|
|
7
7
|
agentSessionIdFromEnvironment,
|
|
8
8
|
deploymentProtectionHeaders,
|
|
9
9
|
detectAgentRuntime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2LY42EZJ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
DeeplineError
|
|
13
13
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkIZZ7FFWPjs = require('./chunk-IZZ7FFWP.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkJUYW6TSUjs = require('./chunk-JUYW6TSU.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunkJ3LJ37WDjs = require('./chunk-J3LJ37WD.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk74UO7THCjs = require('./chunk-74UO7THC.js');
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
|
|
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
145
145
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
146
146
|
}
|
|
147
147
|
function resolveLocalRoot() {
|
|
148
|
-
const target =
|
|
148
|
+
const target = _chunkJ3LJ37WDjs.resolveProjectPinTarget.call(void 0, );
|
|
149
149
|
if (!target.ok) {
|
|
150
150
|
throw new Error(
|
|
151
151
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
|
|
|
156
156
|
return target.dir;
|
|
157
157
|
}
|
|
158
158
|
function detectSkillsAgents(input) {
|
|
159
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
159
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunk74UO7THCjs.detectAgentRuntime.call(void 0, )));
|
|
160
160
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
161
161
|
if (knownAgent) return [knownAgent];
|
|
162
162
|
const roots = [
|
|
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
|
|
|
171
171
|
return detected.length > 0 ? detected : ["*"];
|
|
172
172
|
}
|
|
173
173
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
174
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
174
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkJ3LJ37WDjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
175
175
|
}
|
|
176
176
|
function buildSkillsPlan(input) {
|
|
177
177
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
178
|
-
const legacyNames = [...
|
|
178
|
+
const legacyNames = [..._chunkIZZ7FFWPjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
179
179
|
(a, b) => a.localeCompare(b)
|
|
180
180
|
);
|
|
181
181
|
return {
|
|
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
|
|
|
189
189
|
args: [
|
|
190
190
|
"exec",
|
|
191
191
|
"--yes",
|
|
192
|
-
`--package=${
|
|
192
|
+
`--package=${_chunkIZZ7FFWPjs.SKILLS_NPX_PACKAGE}`,
|
|
193
193
|
"--",
|
|
194
194
|
"skills",
|
|
195
195
|
"remove",
|
|
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
|
|
|
205
205
|
args: [
|
|
206
206
|
"exec",
|
|
207
207
|
"--yes",
|
|
208
|
-
`--package=${
|
|
208
|
+
`--package=${_chunkIZZ7FFWPjs.SKILLS_NPX_PACKAGE}`,
|
|
209
209
|
"--",
|
|
210
210
|
"skills",
|
|
211
211
|
"add",
|
|
212
|
-
|
|
212
|
+
_chunkIZZ7FFWPjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
213
213
|
"--agent",
|
|
214
214
|
...input.agents,
|
|
215
215
|
...scopeArgs,
|
|
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
|
|
|
246
246
|
}
|
|
247
247
|
function runProcess(command, args, cwd) {
|
|
248
248
|
return new Promise((resolve, reject) => {
|
|
249
|
-
const plan =
|
|
249
|
+
const plan = _chunkIZZ7FFWPjs.resolveShellSpawn.call(void 0,
|
|
250
250
|
command,
|
|
251
251
|
args,
|
|
252
252
|
process.platform,
|
|
@@ -268,7 +268,7 @@ function runProcess(command, args, cwd) {
|
|
|
268
268
|
child.kill("SIGTERM");
|
|
269
269
|
reject(
|
|
270
270
|
new Error(
|
|
271
|
-
`${
|
|
271
|
+
`${_chunkIZZ7FFWPjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
272
272
|
)
|
|
273
273
|
);
|
|
274
274
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -279,7 +279,7 @@ function runProcess(command, args, cwd) {
|
|
|
279
279
|
child.once("close", (code) => {
|
|
280
280
|
clearTimeout(timeout);
|
|
281
281
|
if (code && stderr.trim()) {
|
|
282
|
-
process.stderr.write(`${
|
|
282
|
+
process.stderr.write(`${_chunkIZZ7FFWPjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
283
283
|
`);
|
|
284
284
|
}
|
|
285
285
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -287,7 +287,7 @@ function runProcess(command, args, cwd) {
|
|
|
287
287
|
});
|
|
288
288
|
}
|
|
289
289
|
async function showSkills(options, name) {
|
|
290
|
-
const baseUrl =
|
|
290
|
+
const baseUrl = _chunkJ3LJ37WDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
291
291
|
const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
|
|
292
292
|
try {
|
|
293
293
|
const response = await fetch(url, {
|
|
@@ -300,7 +300,7 @@ async function showSkills(options, name) {
|
|
|
300
300
|
}
|
|
301
301
|
if (name) {
|
|
302
302
|
const markdown = await response.text();
|
|
303
|
-
|
|
303
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
304
304
|
{ ok: true, status: "completed", skill: { name, markdown } },
|
|
305
305
|
{ json: options.json, text: markdown }
|
|
306
306
|
);
|
|
@@ -310,7 +310,7 @@ async function showSkills(options, name) {
|
|
|
310
310
|
const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
|
|
311
311
|
(skill) => skill.install_surface === "v1" && skill.name
|
|
312
312
|
);
|
|
313
|
-
|
|
313
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
314
314
|
{
|
|
315
315
|
ok: true,
|
|
316
316
|
status: "completed",
|
|
@@ -327,7 +327,7 @@ Read one with: deepline skills show <name>
|
|
|
327
327
|
);
|
|
328
328
|
return 0;
|
|
329
329
|
} catch (error) {
|
|
330
|
-
|
|
330
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
331
331
|
{
|
|
332
332
|
ok: false,
|
|
333
333
|
status: "failed",
|
|
@@ -350,7 +350,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
350
350
|
scope = normalizeScope(options.scope);
|
|
351
351
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
352
352
|
} catch (error) {
|
|
353
|
-
|
|
353
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
354
354
|
{
|
|
355
355
|
ok: false,
|
|
356
356
|
status: "failed",
|
|
@@ -362,22 +362,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
362
362
|
);
|
|
363
363
|
return 2;
|
|
364
364
|
}
|
|
365
|
-
const baseUrl =
|
|
365
|
+
const baseUrl = _chunkJ3LJ37WDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
366
366
|
const catalog = {
|
|
367
|
-
skillNames: [...
|
|
368
|
-
version:
|
|
367
|
+
skillNames: [..._chunkIZZ7FFWPjs.DEFAULT_SDK_SKILL_NAMES],
|
|
368
|
+
version: _chunk74UO7THCjs.SDK_VERSION
|
|
369
369
|
};
|
|
370
370
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
371
371
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
372
372
|
if (options.dryRun) {
|
|
373
|
-
|
|
373
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
374
374
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
375
375
|
{ json: options.json }
|
|
376
376
|
);
|
|
377
377
|
return 0;
|
|
378
378
|
}
|
|
379
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
380
|
-
|
|
379
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkIZZ7FFWPjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
380
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
381
381
|
{
|
|
382
382
|
ok: true,
|
|
383
383
|
status: "current",
|
|
@@ -409,10 +409,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
409
409
|
}
|
|
410
410
|
if (scope === "local" && root) {
|
|
411
411
|
const managedNames = [
|
|
412
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
412
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkIZZ7FFWPjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
413
413
|
];
|
|
414
414
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
415
|
-
|
|
415
|
+
_chunkJ3LJ37WDjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
416
416
|
".deepline/",
|
|
417
417
|
...agentRoots.flatMap(
|
|
418
418
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -421,7 +421,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
421
421
|
}
|
|
422
422
|
let lease;
|
|
423
423
|
try {
|
|
424
|
-
lease = scope === "global" ? await
|
|
424
|
+
lease = scope === "global" ? await _chunkIZZ7FFWPjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
425
425
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
426
426
|
onWait: () => process.stderr.write(
|
|
427
427
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -429,8 +429,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
429
429
|
}) : { release: () => {
|
|
430
430
|
} };
|
|
431
431
|
} catch (error) {
|
|
432
|
-
if (!(error instanceof
|
|
433
|
-
|
|
432
|
+
if (!(error instanceof _chunkIZZ7FFWPjs.SkillsStateUnavailableError)) throw error;
|
|
433
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
434
434
|
{
|
|
435
435
|
ok: false,
|
|
436
436
|
status: "failed",
|
|
@@ -446,7 +446,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
446
446
|
return 5;
|
|
447
447
|
}
|
|
448
448
|
if (!lease) {
|
|
449
|
-
|
|
449
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
450
450
|
{
|
|
451
451
|
ok: false,
|
|
452
452
|
status: "failed",
|
|
@@ -455,7 +455,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
455
455
|
scope,
|
|
456
456
|
agents,
|
|
457
457
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
458
|
-
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${
|
|
458
|
+
next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkIZZ7FFWPjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
459
459
|
},
|
|
460
460
|
{ json: options.json }
|
|
461
461
|
);
|
|
@@ -504,7 +504,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
} catch (error) {
|
|
507
|
-
|
|
507
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
508
508
|
{
|
|
509
509
|
ok: false,
|
|
510
510
|
status: "failed",
|
|
@@ -520,7 +520,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
520
520
|
return 5;
|
|
521
521
|
}
|
|
522
522
|
if (missing.length > 0) {
|
|
523
|
-
|
|
523
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
524
524
|
{
|
|
525
525
|
ok: false,
|
|
526
526
|
status: "failed",
|
|
@@ -560,7 +560,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
560
560
|
{
|
|
561
561
|
schemaVersion: 1,
|
|
562
562
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
563
|
-
cliVersion:
|
|
563
|
+
cliVersion: _chunk74UO7THCjs.SDK_VERSION,
|
|
564
564
|
scope,
|
|
565
565
|
agents,
|
|
566
566
|
skillsVersion: plan.version,
|
|
@@ -573,9 +573,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
573
573
|
"utf8"
|
|
574
574
|
);
|
|
575
575
|
if (scope === "global") {
|
|
576
|
-
|
|
576
|
+
_chunkIZZ7FFWPjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
577
577
|
}
|
|
578
|
-
|
|
578
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
579
579
|
{
|
|
580
580
|
ok: true,
|
|
581
581
|
status: "complete",
|
|
@@ -624,7 +624,7 @@ Examples:
|
|
|
624
624
|
"after",
|
|
625
625
|
`
|
|
626
626
|
Notes:
|
|
627
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
627
|
+
This command reinstalls current Deepline-managed skills using ${_chunkIZZ7FFWPjs.SKILLS_NPX_PACKAGE},
|
|
628
628
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
629
629
|
persistent project.
|
|
630
630
|
|
|
@@ -636,13 +636,13 @@ Examples:
|
|
|
636
636
|
).action(async (options) => {
|
|
637
637
|
process.exitCode = await runSkillsCommand(options);
|
|
638
638
|
});
|
|
639
|
-
program.command(
|
|
639
|
+
program.command(_chunkIZZ7FFWPjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
640
640
|
"--claim <token>",
|
|
641
641
|
"Owner token of the leases this child was started for."
|
|
642
642
|
).action(async (options) => {
|
|
643
643
|
const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
|
|
644
644
|
if (!claim) {
|
|
645
|
-
|
|
645
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
646
646
|
{
|
|
647
647
|
ok: false,
|
|
648
648
|
status: "failed",
|
|
@@ -655,7 +655,7 @@ Examples:
|
|
|
655
655
|
process.exitCode = 2;
|
|
656
656
|
return;
|
|
657
657
|
}
|
|
658
|
-
await
|
|
658
|
+
await _chunkIZZ7FFWPjs.syncSdkSkillsIfNeeded.call(void 0, _chunkJ3LJ37WDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
659
659
|
mode: "inline",
|
|
660
660
|
notices: "defer",
|
|
661
661
|
claim
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-Q4I5YKN4.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-N4TR6QRI.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DZ7JCRAL.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|