deepline 0.3.351 → 0.3.352
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/cli/{auth-NQLQ5QBV.mjs → auth-6ZAHOPUC.mjs} +4 -4
- package/dist/cli/auth-ZYLA55Y2.js +31 -0
- package/dist/cli/{billing-AZCBAJ6Q.js → billing-FTCAIIPO.js} +73 -73
- package/dist/cli/{billing-AXSNXOTN.mjs → billing-KE6CAAO5.mjs} +4 -4
- package/dist/cli/{chunk-L7YXXM5W.js → chunk-27JIZEAJ.js} +1 -1
- package/dist/cli/{chunk-WY5N3SSC.js → chunk-2JXDY3LE.js} +2 -2
- package/dist/cli/{chunk-BOOZ7D7V.js → chunk-2PQR43BD.js} +225 -225
- package/dist/cli/{chunk-DBWASDYS.mjs → chunk-2ULH52Q7.mjs} +27 -3
- package/dist/cli/{chunk-722274AA.mjs → chunk-3EIK6KTE.mjs} +1 -1
- package/dist/cli/{chunk-CIDP2FSO.js → chunk-4W3B4CNE.js} +9 -9
- package/dist/cli/{chunk-URBPUPJS.mjs → chunk-54IUI747.mjs} +5 -5
- package/dist/cli/{chunk-QD7W3OBA.js → chunk-5TQPSUU6.js} +8 -8
- package/dist/cli/{chunk-XFTGWGZ5.mjs → chunk-EHYJYOXF.mjs} +1 -1
- package/dist/cli/{chunk-CFALTV4O.mjs → chunk-HD2RKIVK.mjs} +2 -2
- package/dist/cli/{chunk-H5JUSKHB.mjs → chunk-HMN5SUFL.mjs} +1 -1
- package/dist/cli/{chunk-OF4N5X7Z.mjs → chunk-J5MZZVDK.mjs} +2 -2
- package/dist/cli/{chunk-JV6GFIQQ.js → chunk-L6BHFEYM.js} +45 -45
- package/dist/cli/{chunk-IKC7EPDS.mjs → chunk-NNMGGD5Z.mjs} +1 -1
- package/dist/cli/{chunk-AQQFVUDI.mjs → chunk-OWG4Y7JK.mjs} +2 -2
- package/dist/cli/{chunk-BKOYPUK2.js → chunk-P6CGAEDF.js} +26 -26
- package/dist/cli/{chunk-NUD2WO3E.js → chunk-Q3CSXWFU.js} +4 -4
- package/dist/cli/{chunk-ICZTTYDS.js → chunk-QOIXZWOE.js} +40 -16
- package/dist/cli/{chunk-QOYD2THS.mjs → chunk-SGFPTY4H.mjs} +2 -2
- package/dist/cli/{chunk-73J3BGJ3.js → chunk-SM4G43FY.js} +60 -60
- package/dist/cli/{chunk-GT5HPOM3.mjs → chunk-ULX7APDZ.mjs} +1 -1
- package/dist/cli/{chunk-7ZAG2XG5.js → chunk-V5JPRCQ2.js} +6 -6
- package/dist/cli/{chunk-SDLFAGQS.js → chunk-VLQPMYSU.js} +15 -15
- package/dist/cli/{chunk-BWFUBETD.js → chunk-VQFBIGMU.js} +48 -48
- package/dist/cli/{chunk-7BGGBA4V.mjs → chunk-XK7AH232.mjs} +4 -4
- package/dist/cli/{chunk-BR3XFSXN.mjs → chunk-YIO2PX4J.mjs} +6 -6
- package/dist/cli/{client-NTEDBLQK.mjs → client-25RBAXIY.mjs} +3 -3
- package/dist/cli/client-AY2RSEDD.js +20 -0
- package/dist/cli/{csv-SSSPKSKU.mjs → csv-7BOK5ZD7.mjs} +3 -3
- package/dist/cli/{csv-6PZZ4ARC.js → csv-7XXJZ736.js} +12 -12
- package/dist/cli/{db-XEVVDWOP.mjs → db-7Q7L5SKP.mjs} +4 -4
- package/dist/cli/{db-3YL7YWTM.js → db-TFPYJCZ5.js} +29 -29
- package/dist/cli/{describe-YZ365BKT.mjs → describe-JTEJNG67.mjs} +8 -8
- package/dist/cli/{describe-XZNQXFXD.js → describe-TQYXSFZ2.js} +15 -15
- package/dist/cli/{executions-ZAV7YCQC.mjs → executions-33MNWCXR.mjs} +4 -4
- package/dist/cli/{executions-WBTIT2RU.js → executions-XYCJEW5I.js} +6 -6
- package/dist/cli/{feedback-PRVJ26X7.js → feedback-D3RSQCQE.js} +7 -7
- package/dist/cli/{feedback-NOYG63QE.mjs → feedback-LXSEEBNL.mjs} +3 -3
- package/dist/cli/git-56MVO4Y5.js +23 -0
- package/dist/cli/{git-AOSMM4US.mjs → git-IES2ZBYO.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-T6DKTGZY.mjs → legacy-noops-ILCWGUAR.mjs} +4 -4
- package/dist/cli/{legacy-noops-RTNAEYVF.js → legacy-noops-YIOGLZXX.js} +7 -7
- package/dist/cli/{monitors-7ERJ4277.js → monitors-MQSSH43U.js} +85 -85
- package/dist/cli/{monitors-QIR3T2QR.mjs → monitors-R3CZHVU2.mjs} +4 -4
- package/dist/cli/{org-7P46IVVU.js → org-62P7YRHW.js} +60 -60
- package/dist/cli/{org-WNRQQZNP.mjs → org-Z75A63SM.mjs} +4 -4
- package/dist/cli/{play-57XTHKER.mjs → play-FUUFAV34.mjs} +7 -7
- package/dist/cli/play-K4RS3VMC.js +153 -0
- package/dist/cli/{providers-ET6UBGWJ.mjs → providers-OQNPHTKA.mjs} +4 -4
- package/dist/cli/{providers-USRX4UVZ.js → providers-Q2VZF65A.js} +7 -7
- package/dist/cli/{quickstart-OGZ7BZKS.mjs → quickstart-7X6HUVWX.mjs} +3 -3
- package/dist/cli/{quickstart-BPPQFMWI.js → quickstart-VZ7BYW4Y.js} +5 -5
- package/dist/cli/search-H3TNOWKP.js +26 -0
- package/dist/cli/{search-MZARI5XA.mjs → search-SJKLKSER.mjs} +5 -5
- package/dist/cli/{secrets-O6XG35SA.js → secrets-EKH3FPAO.js} +13 -13
- package/dist/cli/{secrets-WMUJ6PB4.mjs → secrets-JQUKCHON.mjs} +4 -4
- package/dist/cli/{sessions-LCHVGXMV.js → sessions-NDLKL26C.js} +5 -5
- package/dist/cli/{sessions-EYALESPC.mjs → sessions-RSFW7OYD.mjs} +4 -4
- package/dist/cli/{settings-LUGKMDDX.mjs → settings-DR4YKJTJ.mjs} +7 -7
- package/dist/cli/{settings-25YT2IQK.js → settings-HPUE5C2G.js} +74 -74
- package/dist/cli/{setup-KSRA3V42.mjs → setup-4FT6NMU6.mjs} +6 -6
- package/dist/cli/{setup-AKZWHNKU.js → setup-Y2HCWQ4D.js} +41 -41
- package/dist/cli/{skills-VJJIB4F5.mjs → skills-EQR5K67V.mjs} +4 -4
- package/dist/cli/skills-OGQZAKOB.js +28 -0
- package/dist/cli/tools-3HM7A7XQ.js +40 -0
- package/dist/cli/{tools-NYQD3VSU.mjs → tools-ZRCNCMOO.mjs} +6 -6
- package/dist/cli/{update-GU4TALAI.mjs → update-UJNIMTRS.mjs} +6 -6
- package/dist/cli/update-ZB6CXLCS.js +28 -0
- package/dist/cli/{workflow-TFOUWNEJ.js → workflow-4M63OBSC.js} +15 -15
- package/dist/cli/{workflow-T4VNPJA4.mjs → workflow-EN3TQFKU.mjs} +5 -5
- 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-YTDZKDCB.js +0 -31
- package/dist/cli/client-3GCQER5K.js +0 -20
- package/dist/cli/git-ZI4H72YR.js +0 -23
- package/dist/cli/play-QIX7RZ74.js +0 -153
- package/dist/cli/search-P447HWLU.js +0 -26
- package/dist/cli/skills-GYWMMOFQ.js +0 -28
- package/dist/cli/tools-HN6E2AH6.js +0 -40
- package/dist/cli/update-IIEKVC75.js +0 -28
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ULX7APDZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-3EIK6KTE.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkV5JPRCQ2js = require('./chunk-V5JPRCQ2.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkQ3CSXWFUjs = require('./chunk-Q3CSXWFU.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 } = _chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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 } = _chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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 } = _chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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 } = _chunkV5JPRCQ2js.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 } = _chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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 } = _chunkV5JPRCQ2js.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkV5JPRCQ2js.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 } = _chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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 } = _chunkV5JPRCQ2js.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkV5JPRCQ2js.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 = _chunkQ3CSXWFUjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkV5JPRCQ2js.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkV5JPRCQ2js.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 } = _chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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 } = _chunkV5JPRCQ2js.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
|
+
_chunkV5JPRCQ2js.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 } = _chunkV5JPRCQ2js.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkV5JPRCQ2js.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk27JIZEAJjs = require('./chunk-27JIZEAJ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
// src/version.ts
|
|
746
|
-
var SDK_VERSION =
|
|
747
|
-
var SDK_API_MAJOR =
|
|
748
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
746
|
+
var SDK_VERSION = _chunk27JIZEAJjs.SDK_RELEASE.version;
|
|
747
|
+
var SDK_API_MAJOR = _chunk27JIZEAJjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
748
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk27JIZEAJjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
749
749
|
|
|
750
750
|
// src/agent-runtime.ts
|
|
751
751
|
|
|
@@ -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 _chunk4W3B4CNEjs = require('./chunk-4W3B4CNE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkV5JPRCQ2js = require('./chunk-V5JPRCQ2.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkQ3CSXWFUjs = require('./chunk-Q3CSXWFU.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, _chunkQ3CSXWFUjs.sdkCliStateDirPath.call(void 0, _chunkQ3CSXWFUjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
22
22
|
}
|
|
23
23
|
function rememberSearchRef(searchRef) {
|
|
24
24
|
try {
|
|
@@ -113,6 +113,20 @@ function pricingDisplay(item) {
|
|
|
113
113
|
notes: display ? [clipSummary(display)] : []
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
+
var RATE_WINDOW_UNITS = {
|
|
117
|
+
1e3: "s",
|
|
118
|
+
6e4: "min",
|
|
119
|
+
36e5: "hr"
|
|
120
|
+
};
|
|
121
|
+
function rateLimitDisplay(item) {
|
|
122
|
+
const limits = (Array.isArray(item.rateLimits) ? item.rateLimits : []).filter(
|
|
123
|
+
(limit) => typeof _optionalChain([limit, 'optionalAccess', _3 => _3.requestsPerWindow]) === "number" && typeof _optionalChain([limit, 'optionalAccess', _4 => _4.windowMs]) === "number" && limit.windowMs > 0
|
|
124
|
+
);
|
|
125
|
+
const [tightest] = limits.sort(
|
|
126
|
+
(a, b) => a.requestsPerWindow / a.windowMs - b.requestsPerWindow / b.windowMs
|
|
127
|
+
);
|
|
128
|
+
return tightest ? `${tightest.requestsPerWindow}/${_nullishCoalesce(RATE_WINDOW_UNITS[tightest.windowMs], () => ( `${tightest.windowMs / 1e3}s`))}` : "\u2014";
|
|
129
|
+
}
|
|
116
130
|
function searchRow(item) {
|
|
117
131
|
const { cost, notes } = pricingDisplay(item);
|
|
118
132
|
if (item.credentialStatus === "requires_connection") {
|
|
@@ -124,13 +138,14 @@ function searchRow(item) {
|
|
|
124
138
|
id: item.id,
|
|
125
139
|
kind: item.kind,
|
|
126
140
|
cost,
|
|
141
|
+
rateLimit: rateLimitDisplay(item),
|
|
127
142
|
summary: clipSummary(_nullishCoalesce(item.description, () => ( ""))),
|
|
128
143
|
notes
|
|
129
144
|
};
|
|
130
145
|
}
|
|
131
146
|
function renderSearchResults(result) {
|
|
132
147
|
if (result.results.length === 0)
|
|
133
|
-
return
|
|
148
|
+
return _chunkV5JPRCQ2js.renderCommandEnvelopeText.call(void 0, result);
|
|
134
149
|
const rows = result.results.map(searchRow);
|
|
135
150
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
136
151
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -138,16 +153,23 @@ function renderSearchResults(result) {
|
|
|
138
153
|
{ header: onlyTools ? "TOOL" : "ID", value: (row) => row.id },
|
|
139
154
|
...!onlyTools ? [{ header: "KIND", value: (row) => row.kind }] : [],
|
|
140
155
|
{ header: "CREDITS", value: (row) => row.cost, alignment: "right" },
|
|
156
|
+
...rows.some((row) => row.rateLimit !== "\u2014") ? [
|
|
157
|
+
{
|
|
158
|
+
header: "RATE LIMIT",
|
|
159
|
+
value: (row) => row.rateLimit,
|
|
160
|
+
alignment: "right"
|
|
161
|
+
}
|
|
162
|
+
] : [],
|
|
141
163
|
{ header: "SUMMARY", value: (row) => row.summary }
|
|
142
164
|
];
|
|
143
165
|
const render = result.render;
|
|
144
|
-
const title = _nullishCoalesce(_optionalChain([render, 'optionalAccess',
|
|
166
|
+
const title = _nullishCoalesce(_optionalChain([render, 'optionalAccess', _5 => _5.sections, 'optionalAccess', _6 => _6[0], 'optionalAccess', _7 => _7.title]), () => ( `${_nullishCoalesce(result.total, () => ( rows.length))} matches \u2014 showing ${rows.length}`));
|
|
145
167
|
const remaining = {
|
|
146
|
-
sections: _optionalChain([render, 'optionalAccess',
|
|
147
|
-
actions: _optionalChain([render, 'optionalAccess',
|
|
168
|
+
sections: _optionalChain([render, 'optionalAccess', _8 => _8.sections, 'optionalAccess', _9 => _9.slice, 'call', _10 => _10(1)]),
|
|
169
|
+
actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
|
|
148
170
|
};
|
|
149
|
-
const followUps = _optionalChain([remaining, 'access',
|
|
150
|
-
${
|
|
171
|
+
const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
|
|
172
|
+
${_chunkV5JPRCQ2js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
151
173
|
const notes = rows.flatMap(
|
|
152
174
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
153
175
|
);
|
|
@@ -205,8 +227,8 @@ function addSearchOptions(command) {
|
|
|
205
227
|
function pointAtDescribe(result) {
|
|
206
228
|
const old = /`deepline (tools|plays) describe [^`]*`/;
|
|
207
229
|
const render = result.render;
|
|
208
|
-
for (const section of _nullishCoalesce(_optionalChain([render, 'optionalAccess',
|
|
209
|
-
if (!_optionalChain([section, 'access',
|
|
230
|
+
for (const section of _nullishCoalesce(_optionalChain([render, 'optionalAccess', _16 => _16.sections]), () => ( []))) {
|
|
231
|
+
if (!_optionalChain([section, 'access', _17 => _17.lines, 'optionalAccess', _18 => _18.some, 'call', _19 => _19((line) => old.test(line))])) continue;
|
|
210
232
|
section.lines = [
|
|
211
233
|
"Run `deepline describe <id>` before executing a tool or running a play.",
|
|
212
234
|
...section.lines.filter((line) => !old.test(line))
|
|
@@ -218,13 +240,13 @@ function pointAtDescribe(result) {
|
|
|
218
240
|
}
|
|
219
241
|
}
|
|
220
242
|
async function runSearch(queryInput, options, types, exclude = []) {
|
|
221
|
-
const query = _nullishCoalesce(_optionalChain([queryInput, 'optionalAccess',
|
|
243
|
+
const query = _nullishCoalesce(_optionalChain([queryInput, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]), () => ( ""));
|
|
222
244
|
const searchTerms = _nullishCoalesce(options.searchTerms, () => ( options.search_terms));
|
|
223
|
-
if (!query && !_optionalChain([options, 'access',
|
|
245
|
+
if (!query && !_optionalChain([options, 'access', _22 => _22.categories, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) && !_optionalChain([searchTerms, 'optionalAccess', _25 => _25.trim, 'call', _26 => _26()])) {
|
|
224
246
|
console.error(USAGE);
|
|
225
247
|
return 1;
|
|
226
248
|
}
|
|
227
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
249
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunk4W3B4CNEjs.DeeplineClient)().search({
|
|
228
250
|
query,
|
|
229
251
|
types,
|
|
230
252
|
exclude,
|
|
@@ -238,7 +260,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
238
260
|
});
|
|
239
261
|
if (searchRef) rememberSearchRef(searchRef);
|
|
240
262
|
pointAtDescribe(result);
|
|
241
|
-
|
|
263
|
+
_chunkV5JPRCQ2js.printCommandEnvelope.call(void 0, result, {
|
|
242
264
|
json: options.json === true,
|
|
243
265
|
text: renderSearchResults(result)
|
|
244
266
|
});
|
|
@@ -296,6 +318,8 @@ Notes:
|
|
|
296
318
|
the recommended form. Pass --json only when a program parses the result.
|
|
297
319
|
Readable prices are Deepline credits with a per-row unit. Estimates and
|
|
298
320
|
observed historical charges are labelled; usage-based prices are not quotes.
|
|
321
|
+
RATE LIMIT is the tightest request rate Deepline paces the tool at; a dash
|
|
322
|
+
means none is declared, not that the tool is unlimited.
|
|
299
323
|
|
|
300
324
|
Examples:
|
|
301
325
|
deepline search "first name, last name and company domain -> verified work email"
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ULX7APDZ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-3EIK6KTE.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|