deepline 0.3.483 → 0.3.484
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/signal-radars/inbound-dead-letter.ts +100 -9
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/ambiguous-modal-create-state.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/compute-billing-job-state.ts +23 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-retirement-state.ts +25 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/integration-operation-value-retirement.ts +15 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/outbox-repair-operation-state.ts +30 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +95 -33
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +9 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/sandbox-cleanup-job-state.ts +23 -0
- package/dist/bundling-sources/shared_libs/product-notifications/destination-state.ts +93 -0
- package/dist/cli/{auth-2NXF6Q3Q.mjs → auth-EBFOTF7X.mjs} +5 -5
- package/dist/cli/auth-L5CSV3UO.js +43 -0
- package/dist/cli/{billing-W2Y4EOZP.mjs → billing-2ZOIMW5V.mjs} +6 -6
- package/dist/cli/{billing-5PW4L5WD.js → billing-G2G3EF3I.js} +79 -79
- package/dist/cli/{chunk-2MKX3HV3.js → chunk-2AWYJXBX.js} +5 -5
- package/dist/cli/{chunk-5LHU7NUS.js → chunk-3XQIVEAT.js} +3 -3
- package/dist/cli/{chunk-C3LJSOQ6.mjs → chunk-4OEOM6GP.mjs} +4 -4
- package/dist/cli/{chunk-7APXZ3CX.mjs → chunk-4OVHIWE7.mjs} +2 -2
- package/dist/cli/{chunk-EDMCD7MX.mjs → chunk-4SFC2XUF.mjs} +5 -5
- package/dist/cli/{chunk-JYEZ6BWX.mjs → chunk-5GOG5ZGC.mjs} +2 -2
- package/dist/cli/{chunk-ISP7ZENV.mjs → chunk-5K5CAND4.mjs} +4 -4
- package/dist/cli/{chunk-DS455RPF.js → chunk-5KNRQWHE.js} +3 -3
- package/dist/cli/{chunk-XRIQN6EP.js → chunk-6GRZEYSG.js} +7 -7
- package/dist/cli/{chunk-YL64JIQ7.mjs → chunk-6NPWXE32.mjs} +1 -1
- package/dist/cli/{chunk-NREZRYPU.mjs → chunk-7K5CWKKZ.mjs} +2 -2
- package/dist/cli/{chunk-FAZTLYJO.mjs → chunk-AF7MOUZP.mjs} +2 -2
- package/dist/cli/{chunk-5JCXS4MP.js → chunk-C62NI2X6.js} +5 -5
- package/dist/cli/{chunk-MYB6JVSD.js → chunk-CYWBAV5H.js} +16 -16
- package/dist/cli/{chunk-7TKLISLM.js → chunk-DBJ62RAO.js} +3 -3
- package/dist/cli/{chunk-4X23YY2E.mjs → chunk-DEXSQGXB.mjs} +5 -5
- package/dist/cli/{chunk-GGJQ4HJW.mjs → chunk-EACX7QXO.mjs} +2 -2
- package/dist/cli/{chunk-2JWG2H2N.js → chunk-FQK7BULS.js} +1 -1
- package/dist/cli/{chunk-T5GZZJ7O.js → chunk-FRD5WFT4.js} +6 -6
- package/dist/cli/{chunk-SCPFOH5Z.mjs → chunk-HEI3BWIV.mjs} +1 -1
- package/dist/cli/{chunk-B7HQL77V.js → chunk-IXWQOVNW.js} +53 -53
- package/dist/cli/{chunk-PHDEQ6W3.js → chunk-KA2LNIUP.js} +6 -6
- package/dist/cli/{chunk-WI2HNYQX.js → chunk-KGOC6HGI.js} +53 -53
- package/dist/cli/{chunk-JJSLEMQQ.mjs → chunk-LTZXLYKE.mjs} +1 -1
- package/dist/cli/{chunk-UGBZ6MCR.js → chunk-M4PG7FGC.js} +2 -2
- package/dist/cli/{chunk-QSYA6VE4.js → chunk-NW4QJE54.js} +2 -2
- package/dist/cli/{chunk-UY7OXFVU.js → chunk-OHKKDPA5.js} +10 -10
- package/dist/cli/{chunk-J7S3DJB4.mjs → chunk-PU52JXKA.mjs} +2 -2
- package/dist/cli/{chunk-VFEW53L5.js → chunk-QIDDTIVZ.js} +93 -93
- package/dist/cli/{chunk-62XGOB2D.js → chunk-RLLEH2SP.js} +26 -26
- package/dist/cli/{chunk-AWAFYRFV.mjs → chunk-TIRSKEZH.mjs} +1 -1
- package/dist/cli/{chunk-EGHYGTJM.mjs → chunk-TN2GW57M.mjs} +1 -1
- package/dist/cli/{chunk-FK47YUPC.mjs → chunk-TRLDJNVE.mjs} +1 -1
- package/dist/cli/{chunk-GONUMUBM.js → chunk-U7IJAGWB.js} +7 -7
- package/dist/cli/{chunk-WKB6Y43W.js → chunk-UKM74PAA.js} +37 -37
- package/dist/cli/{chunk-75IIHFN6.js → chunk-UT4YMA2N.js} +4 -4
- package/dist/cli/{chunk-2T4OSJEH.js → chunk-UWOY74RU.js} +21 -21
- package/dist/cli/{chunk-FGEC5SWP.mjs → chunk-V7JCMBLU.mjs} +4 -4
- package/dist/cli/{chunk-5ICAG4RE.js → chunk-VEVGM6B5.js} +9 -9
- package/dist/cli/{chunk-25IGCYJP.mjs → chunk-WXRM3UC6.mjs} +3 -3
- package/dist/cli/{chunk-GRE3ID5E.mjs → chunk-WYUCDLVR.mjs} +1 -1
- package/dist/cli/{chunk-IEV5UWPN.mjs → chunk-XZXIWPT3.mjs} +1 -1
- package/dist/cli/{chunk-S24CK3CJ.mjs → chunk-YGN77QA5.mjs} +2 -2
- package/dist/cli/{chunk-PRL7EKJZ.mjs → chunk-YHA3EV3I.mjs} +4 -4
- package/dist/cli/{chunk-UDF2CY4D.mjs → chunk-YWC5AN26.mjs} +10 -10
- package/dist/cli/{chunk-R2OR4RHV.js → chunk-ZOKM7DVA.js} +8 -8
- package/dist/cli/{csv-DIFVIR23.mjs → csv-NLWVWD3H.mjs} +4 -4
- package/dist/cli/{csv-EKEFLUIW.js → csv-S3CHUKI6.js} +13 -13
- package/dist/cli/{db-DOW4EVEU.mjs → db-OGRPAEEM.mjs} +6 -6
- package/dist/cli/{db-S7DDRUHX.js → db-WBSKMMOH.js} +27 -27
- package/dist/cli/{describe-KSZFOWKV.mjs → describe-FAD3Z7LN.mjs} +17 -17
- package/dist/cli/describe-UIAYCHWW.js +49 -0
- package/dist/cli/{executions-CAG7YC5K.mjs → executions-LYCL344R.mjs} +6 -6
- package/dist/cli/{executions-3DU5IXB6.js → executions-SOAZHCY4.js} +8 -8
- package/dist/cli/{feedback-BQMPTE47.mjs → feedback-AVF6V7SV.mjs} +4 -4
- package/dist/cli/{feedback-I65JMCP2.js → feedback-OROUPUNJ.js} +8 -8
- package/dist/cli/git-ATMWC27D.js +25 -0
- package/dist/cli/{git-UQUCD7XZ.mjs → git-J5N5M57H.mjs} +5 -5
- package/dist/cli/index.js +138 -138
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-JXKLHUI3.mjs → legacy-noops-ENRRM7BL.mjs} +5 -5
- package/dist/cli/{legacy-noops-OLNT2BG5.js → legacy-noops-QAQMZMEG.js} +8 -8
- package/dist/cli/{monitors-DLTHHAFQ.mjs → monitors-CKQ65WRL.mjs} +7 -7
- package/dist/cli/{monitors-Z5X56AZN.js → monitors-SFMQ5LFR.js} +91 -91
- package/dist/cli/{org-XBHJLKUG.js → org-3UNTDLT2.js} +72 -72
- package/dist/cli/{org-6EZZHD3M.mjs → org-K4UIEU5P.mjs} +6 -6
- package/dist/cli/{pages-MYXROSVK.mjs → pages-6GPGBIAH.mjs} +6 -6
- package/dist/cli/{pages-XVJ34SCN.js → pages-NKZTGB4C.js} +17 -17
- package/dist/cli/{play-5PV4LAHE.mjs → play-62BEE7IX.mjs} +17 -17
- package/dist/cli/{play-ACC4T2XQ.js → play-BDEADESI.js} +309 -309
- package/dist/cli/{providers-JCI3KNE4.js → providers-SXGP44GH.js} +9 -9
- package/dist/cli/{providers-2DLUGIFF.mjs → providers-X3CUWMFP.mjs} +6 -6
- package/dist/cli/{quickstart-NSL3C76K.mjs → quickstart-7LN22BKX.mjs} +4 -4
- package/dist/cli/{quickstart-PDSQEDLD.js → quickstart-XQ4426M4.js} +6 -6
- package/dist/cli/{run-UCFMHOQC.js → run-PBJ4ZJ4W.js} +36 -36
- package/dist/cli/{run-X5MXCM4P.mjs → run-XXSN3B5A.mjs} +22 -22
- package/dist/cli/search-IGHLRLBD.js +32 -0
- package/dist/cli/{search-RPEMXV6N.mjs → search-M75VMADD.mjs} +7 -7
- package/dist/cli/{search-output-MZH3HLVE.js → search-output-F6HCFYEI.js} +6 -6
- package/dist/cli/{search-output-6UO47B7G.mjs → search-output-NUQAKWDM.mjs} +4 -4
- package/dist/cli/{secrets-NLEQURD3.mjs → secrets-J2H6V33R.mjs} +6 -6
- package/dist/cli/{secrets-UFBASYGY.js → secrets-LRYY4QPE.js} +15 -15
- package/dist/cli/{sessions-3ALFLWVU.mjs → sessions-IMT336UV.mjs} +5 -5
- package/dist/cli/{sessions-JYH4DBEE.js → sessions-YPF62CZE.js} +6 -6
- package/dist/cli/{settings-MQYKNAMB.js → settings-35YYC5WA.js} +78 -78
- package/dist/cli/{settings-YPRILREA.mjs → settings-PDWVQIGH.mjs} +11 -11
- package/dist/cli/{setup-DK4GM227.mjs → setup-DG5DISSE.mjs} +9 -9
- package/dist/cli/{setup-5IGSHH4E.js → setup-UR7GOR7H.js} +47 -47
- package/dist/cli/skills-4U5WC4MJ.js +33 -0
- package/dist/cli/{skills-KYBZH3IT.mjs → skills-U6NJD5J7.mjs} +7 -7
- package/dist/cli/{tools-4B2MHNBN.mjs → tools-2HGEOELR.mjs} +16 -16
- package/dist/cli/tools-PYJTQVVS.js +56 -0
- package/dist/cli/update-344OTRFM.js +33 -0
- package/dist/cli/{update-S6VEO7NB.mjs → update-FRAYBAHK.mjs} +9 -9
- package/dist/cli/{workflow-KXZZYFEF.mjs → workflow-DDKVTF36.mjs} +7 -7
- package/dist/cli/{workflow-FU2XVPUK.js → workflow-JKKLOMBX.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +104 -98
- 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-JHQKM6QY.js +0 -43
- package/dist/cli/describe-RXYQCJRR.js +0 -49
- package/dist/cli/git-ADIABNMQ.js +0 -25
- package/dist/cli/search-YILJZD36.js +0 -32
- package/dist/cli/skills-I4IUZN3U.js +0 -33
- package/dist/cli/tools-NLZR7ABS.js +0 -56
- package/dist/cli/update-RVDEUJTE.js +0 -33
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkU7IJAGWBjs = require('./chunk-U7IJAGWB.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk3XQIVEATjs = require('./chunk-3XQIVEAT.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 } = _chunkU7IJAGWBjs.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
|
+
_chunkU7IJAGWBjs.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 } = _chunkU7IJAGWBjs.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
|
+
_chunkU7IJAGWBjs.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 } = _chunkU7IJAGWBjs.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
|
+
_chunkU7IJAGWBjs.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 } = _chunkU7IJAGWBjs.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 } = _chunkU7IJAGWBjs.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
|
+
_chunkU7IJAGWBjs.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 } = _chunkU7IJAGWBjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkU7IJAGWBjs.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 } = _chunkU7IJAGWBjs.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
|
+
_chunkU7IJAGWBjs.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 } = _chunkU7IJAGWBjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkU7IJAGWBjs.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 = _chunk3XQIVEATjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkU7IJAGWBjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkU7IJAGWBjs.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 } = _chunkU7IJAGWBjs.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
|
+
_chunkU7IJAGWBjs.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 } = _chunkU7IJAGWBjs.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
|
+
_chunkU7IJAGWBjs.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 } = _chunkU7IJAGWBjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkU7IJAGWBjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk3XQIVEATjs = require('./chunk-3XQIVEAT.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkUT4YMA2Njs = require('./chunk-UT4YMA2N.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -290,8 +290,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
290
290
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
291
291
|
var defaultBrowserCommandRunner = childProcess;
|
|
292
292
|
function getAuthedHttpClient() {
|
|
293
|
-
const config =
|
|
294
|
-
return { config, http: new (0,
|
|
293
|
+
const config = _chunk3XQIVEATjs.resolveConfig.call(void 0, );
|
|
294
|
+
return { config, http: new (0, _chunk3XQIVEATjs.HttpClient)(config) };
|
|
295
295
|
}
|
|
296
296
|
function stableOsUserId() {
|
|
297
297
|
try {
|
|
@@ -631,7 +631,7 @@ function collectLocalEnvInfo() {
|
|
|
631
631
|
os: `${process.platform} ${process.arch}`,
|
|
632
632
|
node_version: process.version,
|
|
633
633
|
home_dir: homeDir,
|
|
634
|
-
agent_runtime:
|
|
634
|
+
agent_runtime: _chunkUT4YMA2Njs.detectAgentRuntime.call(void 0, )
|
|
635
635
|
};
|
|
636
636
|
const env = process.env;
|
|
637
637
|
const optional = {
|
|
@@ -878,9 +878,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
878
878
|
}
|
|
879
879
|
function withAgentCommandContext(value) {
|
|
880
880
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
881
|
-
return
|
|
881
|
+
return _chunkUT4YMA2Njs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
882
882
|
...valueRecord,
|
|
883
|
-
command_context:
|
|
883
|
+
command_context: _chunk3XQIVEATjs.resolveCliCommandContext.call(void 0, )
|
|
884
884
|
} : value;
|
|
885
885
|
}
|
|
886
886
|
function printJson(value, fields) {
|
|
@@ -11,20 +11,20 @@
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkIXWQOVNWjs = require('./chunk-IXWQOVNW.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkU7IJAGWBjs = require('./chunk-U7IJAGWB.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
23
|
+
var _chunk3XQIVEATjs = require('./chunk-3XQIVEAT.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkUT4YMA2Njs = require('./chunk-UT4YMA2N.js');
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
var _child_process = require('child_process');
|
|
@@ -132,7 +132,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
132
132
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
133
133
|
}
|
|
134
134
|
function resolveLocalRoot() {
|
|
135
|
-
const target =
|
|
135
|
+
const target = _chunk3XQIVEATjs.resolveProjectPinTarget.call(void 0, );
|
|
136
136
|
if (!target.ok) {
|
|
137
137
|
throw new Error(
|
|
138
138
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -143,7 +143,7 @@ function resolveLocalRoot() {
|
|
|
143
143
|
return target.dir;
|
|
144
144
|
}
|
|
145
145
|
function detectSkillsAgents(input) {
|
|
146
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
146
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunkUT4YMA2Njs.detectAgentRuntime.call(void 0, )));
|
|
147
147
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
148
148
|
if (knownAgent) return [knownAgent];
|
|
149
149
|
const roots = [
|
|
@@ -158,11 +158,11 @@ function detectSkillsAgents(input) {
|
|
|
158
158
|
return detected.length > 0 ? detected : ["*"];
|
|
159
159
|
}
|
|
160
160
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
161
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
161
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk3XQIVEATjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
162
162
|
}
|
|
163
163
|
function buildSkillsPlan(input) {
|
|
164
164
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
165
|
-
const legacyNames = [...
|
|
165
|
+
const legacyNames = [..._chunkIXWQOVNWjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
|
|
166
166
|
(a, b) => a.localeCompare(b)
|
|
167
167
|
);
|
|
168
168
|
return {
|
|
@@ -176,7 +176,7 @@ function buildSkillsPlan(input) {
|
|
|
176
176
|
args: [
|
|
177
177
|
"exec",
|
|
178
178
|
"--yes",
|
|
179
|
-
`--package=${
|
|
179
|
+
`--package=${_chunkIXWQOVNWjs.SKILLS_NPX_PACKAGE}`,
|
|
180
180
|
"--",
|
|
181
181
|
"skills",
|
|
182
182
|
"remove",
|
|
@@ -192,11 +192,11 @@ function buildSkillsPlan(input) {
|
|
|
192
192
|
args: [
|
|
193
193
|
"exec",
|
|
194
194
|
"--yes",
|
|
195
|
-
`--package=${
|
|
195
|
+
`--package=${_chunkIXWQOVNWjs.SKILLS_NPX_PACKAGE}`,
|
|
196
196
|
"--",
|
|
197
197
|
"skills",
|
|
198
198
|
"add",
|
|
199
|
-
|
|
199
|
+
_chunkIXWQOVNWjs.skillsSourceUrl.call(void 0, input.baseUrl),
|
|
200
200
|
"--agent",
|
|
201
201
|
...input.agents,
|
|
202
202
|
...scopeArgs,
|
|
@@ -233,7 +233,7 @@ function readSkillsInstallState(path) {
|
|
|
233
233
|
}
|
|
234
234
|
function runProcess(command, args, cwd) {
|
|
235
235
|
return new Promise((resolve, reject) => {
|
|
236
|
-
const plan =
|
|
236
|
+
const plan = _chunkIXWQOVNWjs.resolveShellSpawn.call(void 0,
|
|
237
237
|
command,
|
|
238
238
|
args,
|
|
239
239
|
process.platform,
|
|
@@ -255,7 +255,7 @@ function runProcess(command, args, cwd) {
|
|
|
255
255
|
child.kill("SIGTERM");
|
|
256
256
|
reject(
|
|
257
257
|
new Error(
|
|
258
|
-
`${
|
|
258
|
+
`${_chunkIXWQOVNWjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
|
|
259
259
|
)
|
|
260
260
|
);
|
|
261
261
|
}, SKILLS_PROCESS_TIMEOUT_MS);
|
|
@@ -266,7 +266,7 @@ function runProcess(command, args, cwd) {
|
|
|
266
266
|
child.once("close", (code) => {
|
|
267
267
|
clearTimeout(timeout);
|
|
268
268
|
if (code && stderr.trim()) {
|
|
269
|
-
process.stderr.write(`${
|
|
269
|
+
process.stderr.write(`${_chunkIXWQOVNWjs.SKILLS_NPX_PACKAGE} exited ${code}.
|
|
270
270
|
`);
|
|
271
271
|
}
|
|
272
272
|
resolve(_nullishCoalesce(code, () => ( 1)));
|
|
@@ -280,7 +280,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
280
280
|
scope = normalizeScope(options.scope);
|
|
281
281
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
282
282
|
} catch (error) {
|
|
283
|
-
|
|
283
|
+
_chunkU7IJAGWBjs.printCommandEnvelope.call(void 0,
|
|
284
284
|
{
|
|
285
285
|
ok: false,
|
|
286
286
|
status: "failed",
|
|
@@ -292,22 +292,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
292
292
|
);
|
|
293
293
|
return 2;
|
|
294
294
|
}
|
|
295
|
-
const baseUrl =
|
|
295
|
+
const baseUrl = _chunk3XQIVEATjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
296
296
|
const catalog = {
|
|
297
|
-
skillNames: [...
|
|
298
|
-
version:
|
|
297
|
+
skillNames: [..._chunkIXWQOVNWjs.DEFAULT_SDK_SKILL_NAMES],
|
|
298
|
+
version: _chunkUT4YMA2Njs.SDK_VERSION
|
|
299
299
|
};
|
|
300
300
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
301
301
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
302
302
|
if (options.dryRun) {
|
|
303
|
-
|
|
303
|
+
_chunkU7IJAGWBjs.printCommandEnvelope.call(void 0,
|
|
304
304
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
305
305
|
{ json: options.json }
|
|
306
306
|
);
|
|
307
307
|
return 0;
|
|
308
308
|
}
|
|
309
|
-
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !
|
|
310
|
-
|
|
309
|
+
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkIXWQOVNWjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
|
|
310
|
+
_chunkU7IJAGWBjs.printCommandEnvelope.call(void 0,
|
|
311
311
|
{
|
|
312
312
|
ok: true,
|
|
313
313
|
status: "current",
|
|
@@ -339,10 +339,10 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
339
339
|
}
|
|
340
340
|
if (scope === "local" && root) {
|
|
341
341
|
const managedNames = [
|
|
342
|
-
.../* @__PURE__ */ new Set([...plan.skillNames, ...
|
|
342
|
+
.../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkIXWQOVNWjs.LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
343
343
|
];
|
|
344
344
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
345
|
-
|
|
345
|
+
_chunk3XQIVEATjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
346
346
|
".deepline/",
|
|
347
347
|
...agentRoots.flatMap(
|
|
348
348
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
351
351
|
}
|
|
352
352
|
let lease;
|
|
353
353
|
try {
|
|
354
|
-
lease = scope === "global" ? await
|
|
354
|
+
lease = scope === "global" ? await _chunkIXWQOVNWjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
|
|
355
355
|
waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
|
|
356
356
|
onWait: () => process.stderr.write(
|
|
357
357
|
"Waiting for a background Deepline skills refresh to finish...\n"
|
|
@@ -359,8 +359,8 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
359
359
|
}) : { release: () => {
|
|
360
360
|
} };
|
|
361
361
|
} catch (error) {
|
|
362
|
-
if (!(error instanceof
|
|
363
|
-
|
|
362
|
+
if (!(error instanceof _chunkIXWQOVNWjs.SkillsStateUnavailableError)) throw error;
|
|
363
|
+
_chunkU7IJAGWBjs.printCommandEnvelope.call(void 0,
|
|
364
364
|
{
|
|
365
365
|
ok: false,
|
|
366
366
|
status: "failed",
|
|
@@ -376,7 +376,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
376
376
|
return 5;
|
|
377
377
|
}
|
|
378
378
|
if (!lease) {
|
|
379
|
-
|
|
379
|
+
_chunkU7IJAGWBjs.printCommandEnvelope.call(void 0,
|
|
380
380
|
{
|
|
381
381
|
ok: false,
|
|
382
382
|
status: "failed",
|
|
@@ -385,7 +385,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
385
385
|
scope,
|
|
386
386
|
agents,
|
|
387
387
|
message: "A background Deepline skills refresh is still running for these agents.",
|
|
388
|
-
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${
|
|
388
|
+
next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkIXWQOVNWjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
|
|
389
389
|
},
|
|
390
390
|
{ json: options.json }
|
|
391
391
|
);
|
|
@@ -434,7 +434,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
434
434
|
}
|
|
435
435
|
}
|
|
436
436
|
} catch (error) {
|
|
437
|
-
|
|
437
|
+
_chunkU7IJAGWBjs.printCommandEnvelope.call(void 0,
|
|
438
438
|
{
|
|
439
439
|
ok: false,
|
|
440
440
|
status: "failed",
|
|
@@ -450,7 +450,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
450
450
|
return 5;
|
|
451
451
|
}
|
|
452
452
|
if (missing.length > 0) {
|
|
453
|
-
|
|
453
|
+
_chunkU7IJAGWBjs.printCommandEnvelope.call(void 0,
|
|
454
454
|
{
|
|
455
455
|
ok: false,
|
|
456
456
|
status: "failed",
|
|
@@ -490,7 +490,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
490
490
|
{
|
|
491
491
|
schemaVersion: 1,
|
|
492
492
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
493
|
-
cliVersion:
|
|
493
|
+
cliVersion: _chunkUT4YMA2Njs.SDK_VERSION,
|
|
494
494
|
scope,
|
|
495
495
|
agents,
|
|
496
496
|
skillsVersion: plan.version,
|
|
@@ -503,9 +503,9 @@ async function runSkillsInstallWithLease(input) {
|
|
|
503
503
|
"utf8"
|
|
504
504
|
);
|
|
505
505
|
if (scope === "global") {
|
|
506
|
-
|
|
506
|
+
_chunkIXWQOVNWjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
|
|
507
507
|
}
|
|
508
|
-
|
|
508
|
+
_chunkU7IJAGWBjs.printCommandEnvelope.call(void 0,
|
|
509
509
|
{
|
|
510
510
|
ok: true,
|
|
511
511
|
status: "complete",
|
|
@@ -536,7 +536,7 @@ function registerSkillsCommand(program) {
|
|
|
536
536
|
"after",
|
|
537
537
|
`
|
|
538
538
|
Notes:
|
|
539
|
-
This command reinstalls current Deepline-managed skills using ${
|
|
539
|
+
This command reinstalls current Deepline-managed skills using ${_chunkIXWQOVNWjs.SKILLS_NPX_PACKAGE},
|
|
540
540
|
then removes legacy Deepline skill names. Local scope writes into the resolved
|
|
541
541
|
persistent project.
|
|
542
542
|
|
|
@@ -548,13 +548,13 @@ Examples:
|
|
|
548
548
|
).action(async (options) => {
|
|
549
549
|
process.exitCode = await runSkillsCommand(options);
|
|
550
550
|
});
|
|
551
|
-
program.command(
|
|
551
|
+
program.command(_chunkIXWQOVNWjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
|
|
552
552
|
"--claim <token>",
|
|
553
553
|
"Owner token of the leases this child was started for."
|
|
554
554
|
).action(async (options) => {
|
|
555
555
|
const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
|
|
556
556
|
if (!claim) {
|
|
557
|
-
|
|
557
|
+
_chunkU7IJAGWBjs.printCommandEnvelope.call(void 0,
|
|
558
558
|
{
|
|
559
559
|
ok: false,
|
|
560
560
|
status: "failed",
|
|
@@ -567,7 +567,7 @@ Examples:
|
|
|
567
567
|
process.exitCode = 2;
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
570
|
-
await
|
|
570
|
+
await _chunkIXWQOVNWjs.syncSdkSkillsIfNeeded.call(void 0, _chunk3XQIVEATjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
571
571
|
mode: "inline",
|
|
572
572
|
notices: "defer",
|
|
573
573
|
claim
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkFQK7BULSjs = require('./chunk-FQK7BULS.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunkFQK7BULSjs.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkFQK7BULSjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkFQK7BULSjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|