deepline 0.3.349 → 0.3.350
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-budget-state.ts +30 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +114 -25
- package/dist/cli/{auth-MPHXSP64.mjs → auth-7X3G2MCE.mjs} +4 -4
- package/dist/cli/auth-CYXUWRLU.js +31 -0
- package/dist/cli/{billing-2KUUGVDZ.js → billing-2J4WREAL.js} +73 -73
- package/dist/cli/{billing-K5WCTRBE.mjs → billing-DOVYL5TT.mjs} +4 -4
- package/dist/cli/{chunk-QCSLIEMC.js → chunk-2COBRUUH.js} +6 -6
- package/dist/cli/{chunk-GXN7DGNL.mjs → chunk-2KLYUZI7.mjs} +2 -2
- package/dist/cli/{chunk-SPB6CF4S.mjs → chunk-2NI75UNO.mjs} +2 -2
- package/dist/cli/{chunk-WOFHIUOT.mjs → chunk-2Z6HV7BK.mjs} +2 -2
- package/dist/cli/{chunk-S347PHNB.js → chunk-36MFVS4Q.js} +9 -9
- package/dist/cli/{chunk-ZQ6UF55Y.mjs → chunk-4ODBHH6X.mjs} +1 -1
- package/dist/cli/{chunk-UE7DS2YV.mjs → chunk-5ZFDADDM.mjs} +3 -3
- package/dist/cli/{chunk-QAM2K3CG.js → chunk-AWJ2A2CP.js} +48 -48
- package/dist/cli/{chunk-O2FM2MS5.mjs → chunk-CYCJBDW6.mjs} +6 -6
- package/dist/cli/{chunk-IHYVEM5Q.js → chunk-FUQQ3U62.js} +8 -8
- package/dist/cli/{chunk-BEGPN6NG.mjs → chunk-FYZFB2CS.mjs} +1 -1
- package/dist/cli/{chunk-KW25DKRC.js → chunk-GMOMXQR6.js} +1 -1
- package/dist/cli/{chunk-JKJSTQ2I.mjs → chunk-H4MOKDCV.mjs} +1 -1
- package/dist/cli/{chunk-MVQ3JAJA.js → chunk-IHMNFNL3.js} +225 -225
- package/dist/cli/{chunk-DOHULRK2.mjs → chunk-LDILBDLL.mjs} +4 -4
- package/dist/cli/{chunk-I4VZKXMX.js → chunk-LE7DZZVE.js} +26 -26
- package/dist/cli/{chunk-M42H2BPA.js → chunk-NWN23EZM.js} +8 -8
- package/dist/cli/{chunk-6OVLJLYH.mjs → chunk-NZMVPYBQ.mjs} +1 -1
- package/dist/cli/{chunk-TVS3TAFR.js → chunk-QMMMMGAB.js} +15 -15
- package/dist/cli/{chunk-HVD3DK7S.mjs → chunk-TFGKO7XG.mjs} +5 -5
- package/dist/cli/{chunk-GHYMVZID.js → chunk-UKOXXA75.js} +60 -60
- package/dist/cli/{chunk-VDOH4A34.mjs → chunk-VC7D7OXL.mjs} +1 -1
- package/dist/cli/{chunk-BPJTGASI.mjs → chunk-WWJOE6JQ.mjs} +2 -2
- package/dist/cli/{chunk-6YZDQZE6.js → chunk-YCBWMF2O.js} +2 -2
- package/dist/cli/{chunk-CRSMVSER.js → chunk-Z5RG3AOP.js} +45 -45
- package/dist/cli/{chunk-JBGR6U57.js → chunk-ZIUELPGR.js} +4 -4
- package/dist/cli/client-R4VF7KSK.js +20 -0
- package/dist/cli/{client-JWKYNLCR.mjs → client-YM7EV7JZ.mjs} +3 -3
- package/dist/cli/{csv-IW75DRFX.js → csv-3CE5IY4L.js} +12 -12
- package/dist/cli/{csv-Y2O237NO.mjs → csv-IERAXUNG.mjs} +3 -3
- package/dist/cli/{db-JW6UUJXC.mjs → db-M2ONKJRD.mjs} +4 -4
- package/dist/cli/{db-6Q4VK5T2.js → db-VYSLD53P.js} +29 -29
- package/dist/cli/{describe-DI65QISF.js → describe-2XFXS2SX.js} +15 -15
- package/dist/cli/{describe-JLN4RTGM.mjs → describe-W6FCAXZR.mjs} +8 -8
- package/dist/cli/{executions-UK6LA2O5.mjs → executions-OUP6IVMO.mjs} +4 -4
- package/dist/cli/{executions-GB2E3BU6.js → executions-P7EK3RC7.js} +6 -6
- package/dist/cli/{feedback-N2KAFS3R.mjs → feedback-Q5QTIZSG.mjs} +3 -3
- package/dist/cli/{feedback-MJE3A5ON.js → feedback-UHG2PISO.js} +7 -7
- package/dist/cli/{git-NWRJFNII.mjs → git-DMG3Z36A.mjs} +4 -4
- package/dist/cli/git-IQRVNMQL.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-RR4W2TTE.mjs → legacy-noops-ARAPGQUN.mjs} +4 -4
- package/dist/cli/{legacy-noops-EIO65N6W.js → legacy-noops-DZJRLQUN.js} +7 -7
- package/dist/cli/{monitors-HNUCJYET.mjs → monitors-7GSSQILT.mjs} +4 -4
- package/dist/cli/{monitors-U7NVJDQL.js → monitors-B7HLL45A.js} +85 -85
- package/dist/cli/{org-O7MFRQNG.mjs → org-UR72VY3A.mjs} +4 -4
- package/dist/cli/{org-UBHNTBSB.js → org-VIY2LH6L.js} +60 -60
- package/dist/cli/{play-4EIIEFQK.mjs → play-ATTKGZLK.mjs} +7 -7
- package/dist/cli/play-FT7EUE2Y.js +153 -0
- package/dist/cli/{providers-CJ56HZIT.js → providers-RDOEU4FO.js} +7 -7
- package/dist/cli/{providers-REJIT7CX.mjs → providers-ZBZED4TK.mjs} +4 -4
- package/dist/cli/{quickstart-DQN2LYBC.mjs → quickstart-JT5FW7EB.mjs} +3 -3
- package/dist/cli/{quickstart-BZUQWQK5.js → quickstart-Y2GPRMC7.js} +5 -5
- package/dist/cli/{search-35UOMFL2.mjs → search-73OTM3ZZ.mjs} +5 -5
- package/dist/cli/search-LHD6BP42.js +26 -0
- package/dist/cli/{secrets-YJB66UXU.mjs → secrets-AHDWUIVL.mjs} +4 -4
- package/dist/cli/{secrets-G4RYNUUD.js → secrets-EEXG43XS.js} +13 -13
- package/dist/cli/{sessions-BUWSRUSJ.mjs → sessions-LDZMTST4.mjs} +4 -4
- package/dist/cli/{sessions-DGS7S6XX.js → sessions-SHSSRPN5.js} +5 -5
- package/dist/cli/{settings-OTWDMCM5.js → settings-FMM4KYDS.js} +74 -74
- package/dist/cli/{settings-OCMJXIFD.mjs → settings-JBCSG3JV.mjs} +7 -7
- package/dist/cli/{setup-UXYFRGIX.mjs → setup-4M6GZEV6.mjs} +6 -6
- package/dist/cli/{setup-MYD34DUG.js → setup-VF3WHT2K.js} +41 -41
- package/dist/cli/{skills-LOWITZWQ.mjs → skills-5GSHPGQR.mjs} +4 -4
- package/dist/cli/skills-RKY6BV2Y.js +28 -0
- package/dist/cli/{tools-YJHZJLES.mjs → tools-7G6TW3MO.mjs} +6 -6
- package/dist/cli/tools-RSVWPCZT.js +40 -0
- package/dist/cli/{update-PB5UCW4I.mjs → update-NY2LA7HX.mjs} +6 -6
- package/dist/cli/update-ZD7UN6FA.js +28 -0
- package/dist/cli/{workflow-IH2FQSYZ.mjs → workflow-JPNJ5D2W.mjs} +5 -5
- package/dist/cli/{workflow-DJYTA2YM.js → workflow-TZ4UU3MV.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-KGXZELZ3.js +0 -31
- package/dist/cli/client-O4DPNWVJ.js +0 -20
- package/dist/cli/git-A7J4SSRV.js +0 -23
- package/dist/cli/play-IHLNNVPR.js +0 -153
- package/dist/cli/search-4EPCIU2T.js +0 -26
- package/dist/cli/skills-7UHWU7XL.js +0 -28
- package/dist/cli/tools-CBYKQ7IY.js +0 -40
- package/dist/cli/update-5M3OKPEU.js +0 -28
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FYZFB2CS.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-2NI75UNO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4ODBHH6X.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-H4MOKDCV.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk2COBRUUHjs = require('./chunk-2COBRUUH.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZIUELPGRjs = require('./chunk-ZIUELPGR.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 } = _chunk2COBRUUHjs.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
|
+
_chunk2COBRUUHjs.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 } = _chunk2COBRUUHjs.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
|
+
_chunk2COBRUUHjs.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 } = _chunk2COBRUUHjs.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
|
+
_chunk2COBRUUHjs.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 } = _chunk2COBRUUHjs.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 } = _chunk2COBRUUHjs.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
|
+
_chunk2COBRUUHjs.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunk2COBRUUHjs.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 } = _chunk2COBRUUHjs.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
|
+
_chunk2COBRUUHjs.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunk2COBRUUHjs.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 = _chunkZIUELPGRjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunk2COBRUUHjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunk2COBRUUHjs.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 } = _chunk2COBRUUHjs.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
|
+
_chunk2COBRUUHjs.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 } = _chunk2COBRUUHjs.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
|
+
_chunk2COBRUUHjs.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 } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk36MFVS4Qjs = require('./chunk-36MFVS4Q.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2COBRUUHjs = require('./chunk-2COBRUUH.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkZIUELPGRjs = require('./chunk-ZIUELPGR.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
var _commander = require('commander');
|
|
@@ -18,7 +18,7 @@ var _fs = require('fs');
|
|
|
18
18
|
var _path = require('path');
|
|
19
19
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
20
20
|
function lastSearchPath() {
|
|
21
|
-
return _path.join.call(void 0,
|
|
21
|
+
return _path.join.call(void 0, _chunkZIUELPGRjs.sdkCliStateDirPath.call(void 0, _chunkZIUELPGRjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
22
22
|
}
|
|
23
23
|
function rememberSearchRef(searchRef) {
|
|
24
24
|
try {
|
|
@@ -130,7 +130,7 @@ function searchRow(item) {
|
|
|
130
130
|
}
|
|
131
131
|
function renderSearchResults(result) {
|
|
132
132
|
if (result.results.length === 0)
|
|
133
|
-
return
|
|
133
|
+
return _chunk2COBRUUHjs.renderCommandEnvelopeText.call(void 0, result);
|
|
134
134
|
const rows = result.results.map(searchRow);
|
|
135
135
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
136
136
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -147,7 +147,7 @@ function renderSearchResults(result) {
|
|
|
147
147
|
actions: _optionalChain([render, 'optionalAccess', _9 => _9.actions])
|
|
148
148
|
};
|
|
149
149
|
const followUps = _optionalChain([remaining, 'access', _10 => _10.sections, 'optionalAccess', _11 => _11.length]) || _optionalChain([remaining, 'access', _12 => _12.actions, 'optionalAccess', _13 => _13.length]) ? `
|
|
150
|
-
${
|
|
150
|
+
${_chunk2COBRUUHjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
151
151
|
const notes = rows.flatMap(
|
|
152
152
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
153
153
|
);
|
|
@@ -224,7 +224,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
224
224
|
console.error(USAGE);
|
|
225
225
|
return 1;
|
|
226
226
|
}
|
|
227
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
227
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunk36MFVS4Qjs.DeeplineClient)().search({
|
|
228
228
|
query,
|
|
229
229
|
types,
|
|
230
230
|
exclude,
|
|
@@ -238,7 +238,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
238
238
|
});
|
|
239
239
|
if (searchRef) rememberSearchRef(searchRef);
|
|
240
240
|
pointAtDescribe(result);
|
|
241
|
-
|
|
241
|
+
_chunk2COBRUUHjs.printCommandEnvelope.call(void 0, result, {
|
|
242
242
|
json: options.json === true,
|
|
243
243
|
text: renderSearchResults(result)
|
|
244
244
|
});
|
|
@@ -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.350",
|
|
53
53
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkYCBWMF2Ojs = require('./chunk-YCBWMF2O.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkUKOXXA75js = require('./chunk-UKOXXA75.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk2COBRUUHjs = require('./chunk-2COBRUUH.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZIUELPGRjs = require('./chunk-ZIUELPGR.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
|
|
|
489
489
|
}
|
|
490
490
|
function resolveNpmGlobalPrefix(env) {
|
|
491
491
|
try {
|
|
492
|
-
const plan =
|
|
492
|
+
const plan = _chunkUKOXXA75js.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
493
493
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
494
494
|
encoding: "utf8",
|
|
495
495
|
env,
|
|
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
545
545
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
546
546
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
547
547
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
548
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
549
|
-
const npmGlobalInstallFlags =
|
|
548
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkYCBWMF2Ojs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunkYCBWMF2Ojs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
550
550
|
const args = installPrefix ? [
|
|
551
551
|
"install",
|
|
552
552
|
"-g",
|
|
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
packageSpec
|
|
557
557
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
558
558
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
559
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
559
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkZIUELPGRjs.autoDetectBaseUrl.call(void 0, )
|
|
560
560
|
);
|
|
561
561
|
return {
|
|
562
562
|
kind: "npm-global",
|
|
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
703
703
|
function runCommand(command, args, env = process.env) {
|
|
704
704
|
return new Promise((resolveResult) => {
|
|
705
705
|
let output = "";
|
|
706
|
-
const plan =
|
|
706
|
+
const plan = _chunkUKOXXA75js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
707
707
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
708
708
|
stdio: ["inherit", "pipe", "pipe"],
|
|
709
709
|
shell: plan.shell,
|
|
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1079
1079
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1080
1080
|
}
|
|
1081
1081
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1082
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1082
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkZIUELPGRjs.autoDetectBaseUrl));
|
|
1083
1083
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1084
1084
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1085
1085
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1086
1086
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1087
1087
|
process.stdout.write = (() => true);
|
|
1088
1088
|
try {
|
|
1089
|
-
const exitCode = await
|
|
1089
|
+
const exitCode = await _chunkUKOXXA75js.runSkillsCommand.call(void 0, { json: true });
|
|
1090
1090
|
if (exitCode !== 0) {
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1157
1157
|
]
|
|
1158
1158
|
};
|
|
1159
1159
|
if (options.json && !options.executeWithJson) {
|
|
1160
|
-
|
|
1160
|
+
_chunk2COBRUUHjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
...plan,
|
|
1167
1167
|
render: {
|
|
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1174
1174
|
return 0;
|
|
1175
1175
|
}
|
|
1176
1176
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1177
|
-
|
|
1177
|
+
_chunk2COBRUUHjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
}
|
|
1180
1180
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
|
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.executeWithJson && options.json) {
|
|
1207
|
-
|
|
1207
|
+
_chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
recentSearchRef,
|
|
13
13
|
registerDeprecatedSearchCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5ZFDADDM.mjs";
|
|
15
15
|
import {
|
|
16
16
|
extractSummaryFields,
|
|
17
17
|
projectRowOutput,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
DeeplineClient,
|
|
25
25
|
validateExecutionIdempotencyKey
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-VC7D7OXL.mjs";
|
|
27
27
|
import {
|
|
28
28
|
beginToolExecuteCommand,
|
|
29
29
|
getToolExecuteInvocationId,
|
|
@@ -37,11 +37,11 @@ import {
|
|
|
37
37
|
printJsonError,
|
|
38
38
|
renderCommandEnvelopeText,
|
|
39
39
|
shouldEmitJson
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-4ODBHH6X.mjs";
|
|
41
41
|
import {
|
|
42
42
|
resolveConfig,
|
|
43
43
|
sdkCliStateDirPath
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-H4MOKDCV.mjs";
|
|
45
45
|
import {
|
|
46
46
|
playToolListGetterMode
|
|
47
47
|
} from "./chunk-7E66A24V.mjs";
|
|
@@ -1030,7 +1030,7 @@ Examples:
|
|
|
1030
1030
|
process.exitCode = await narrowView();
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
const { describeAnything } = await import("./describe-
|
|
1033
|
+
const { describeAnything } = await import("./describe-W6FCAXZR.mjs");
|
|
1034
1034
|
process.exitCode = await describeAnything(
|
|
1035
1035
|
toolId,
|
|
1036
1036
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|