deepline 0.3.379 → 0.3.381
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/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/row-failure-summary.ts +1 -0
- package/dist/cli/{auth-POBP5XKE.mjs → auth-M2WCVLXM.mjs} +4 -4
- package/dist/cli/auth-T3F2NI55.js +39 -0
- package/dist/cli/{billing-VSJ474AZ.mjs → billing-B4XB5L63.mjs} +4 -4
- package/dist/cli/{billing-CDJTZO3L.js → billing-J5FSVZB4.js} +73 -73
- package/dist/cli/{chunk-PD2WRTDS.js → chunk-2IB2RBCY.js} +1 -1
- package/dist/cli/{chunk-5YUA2FQG.mjs → chunk-4P35MBCK.mjs} +1 -1
- package/dist/cli/{chunk-W5I5QMMM.mjs → chunk-4Q4SQJBF.mjs} +1 -1
- package/dist/cli/{chunk-IKXDUCBB.js → chunk-5UC6VEXF.js} +4 -4
- package/dist/cli/{chunk-BB6WCOYN.js → chunk-AQ4HP2GF.js} +9 -9
- package/dist/cli/{chunk-5YEUVV6X.mjs → chunk-CFHQRESG.mjs} +1 -1
- package/dist/cli/{chunk-CXS5E3NC.js → chunk-D2G6W7ES.js} +50 -50
- package/dist/cli/{chunk-KIF5UJZ3.js → chunk-FDB2YGWF.js} +15 -15
- package/dist/cli/{chunk-6L5GTW3W.js → chunk-HJWXXZVG.js} +8 -8
- package/dist/cli/{chunk-J72WM3BY.mjs → chunk-IX6IEN5B.mjs} +2 -2
- package/dist/cli/{chunk-5W7JQ3A2.mjs → chunk-IXRQGX74.mjs} +4 -4
- package/dist/cli/{chunk-HKDAWSF6.js → chunk-KQFDSP5O.js} +6 -6
- package/dist/cli/{chunk-DB5IP3TV.mjs → chunk-N36BQUUU.mjs} +2 -2
- package/dist/cli/{chunk-UNFRQUUM.mjs → chunk-NEU3YVPF.mjs} +6 -6
- package/dist/cli/{chunk-A3E7TCQK.js → chunk-OKGOQKW7.js} +48 -48
- package/dist/cli/{chunk-XFR73M2S.js → chunk-PPO4FG7O.js} +224 -224
- package/dist/cli/{chunk-GW6EUKW7.mjs → chunk-PWCQM4SD.mjs} +2 -2
- package/dist/cli/{chunk-U3EL4YRM.mjs → chunk-Q7VDVBZW.mjs} +3 -3
- package/dist/cli/{chunk-XI5NWXP4.mjs → chunk-QOK7SKSZ.mjs} +1 -1
- package/dist/cli/{chunk-TA37L7MY.mjs → chunk-RJDYOGD3.mjs} +2 -2
- package/dist/cli/{chunk-ZHGVS5YI.js → chunk-RK72YKI7.js} +26 -26
- package/dist/cli/{chunk-Q7QP3XU2.js → chunk-RWSPU3RI.js} +2 -2
- package/dist/cli/{chunk-MPFXZAIY.js → chunk-SPJI6J44.js} +8 -8
- package/dist/cli/{chunk-T3ZCYEAL.js → chunk-UTVDVZTM.js} +60 -60
- package/dist/cli/{chunk-ZNU5IDYI.mjs → chunk-Y3FOW4TU.mjs} +5 -5
- package/dist/cli/{chunk-YQQSGVAD.mjs → chunk-Z2EKAUHJ.mjs} +1 -1
- package/dist/cli/{csv-N2RLF7AD.js → csv-RG6EPZAF.js} +12 -12
- package/dist/cli/{csv-D47DWKWT.mjs → csv-XK2U7OOP.mjs} +3 -3
- package/dist/cli/{db-IAT26T3O.js → db-LVFZMURX.js} +29 -29
- package/dist/cli/{db-XB6L44DP.mjs → db-LVXEM4JK.mjs} +4 -4
- package/dist/cli/{describe-77RUVCP4.mjs → describe-CGNNGI7D.mjs} +8 -8
- package/dist/cli/{describe-FHCK2IPO.js → describe-F52KVIU5.js} +16 -16
- package/dist/cli/{executions-5LZ6VLOO.mjs → executions-IFQ4VFOW.mjs} +4 -4
- package/dist/cli/{executions-5V3FSXDR.js → executions-QVNYM6G5.js} +6 -6
- package/dist/cli/{feedback-KV765KDS.js → feedback-GE2HJ3RV.js} +7 -7
- package/dist/cli/{feedback-JNBF5H7D.mjs → feedback-XQZGZLJD.mjs} +3 -3
- package/dist/cli/git-QADGD7ZL.js +23 -0
- package/dist/cli/{git-YJUJAHZE.mjs → git-VHYPESNC.mjs} +4 -4
- package/dist/cli/index.js +83 -83
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-QKV3SQ6S.mjs → legacy-noops-H3LBMAJD.mjs} +4 -4
- package/dist/cli/{legacy-noops-V3QK7KGI.js → legacy-noops-MEVZKOQO.js} +7 -7
- package/dist/cli/{monitors-K33FLA4Q.js → monitors-6LBPWRV2.js} +85 -85
- package/dist/cli/{monitors-MH624SEV.mjs → monitors-QCDXTRJG.mjs} +4 -4
- package/dist/cli/{org-V7K4VKWJ.mjs → org-R3Q75N6B.mjs} +4 -4
- package/dist/cli/{org-SLSIKOID.js → org-ZCGJFGH2.js} +64 -64
- package/dist/cli/play-AFDVNXFL.js +155 -0
- package/dist/cli/{play-ZW3YPHCZ.mjs → play-AQ6P4KHZ.mjs} +7 -7
- package/dist/cli/{providers-3HJQ7S56.mjs → providers-DD7F2EB3.mjs} +4 -4
- package/dist/cli/{providers-M44EZVKP.js → providers-HQRVMENG.js} +7 -7
- package/dist/cli/{quickstart-MTSZ5GDD.js → quickstart-IHSZ24SF.js} +5 -5
- package/dist/cli/{quickstart-H5CP5Z4N.mjs → quickstart-IQOBN4JH.mjs} +3 -3
- package/dist/cli/{search-FQBY77R7.mjs → search-DQERH2AR.mjs} +5 -5
- package/dist/cli/search-KQNM6AHE.js +26 -0
- package/dist/cli/{secrets-JT7RDYJD.mjs → secrets-WNAU3O75.mjs} +4 -4
- package/dist/cli/{secrets-4E6RJKMK.js → secrets-XY5226V2.js} +13 -13
- package/dist/cli/{sessions-5I3VX7GL.mjs → sessions-P7UZU5LC.mjs} +4 -4
- package/dist/cli/{sessions-7QUTJ4IX.js → sessions-R53JPCM4.js} +5 -5
- package/dist/cli/{settings-KOMLTFDA.js → settings-5QHIIX4A.js} +74 -74
- package/dist/cli/{settings-WLFMKYRS.mjs → settings-JQLWULCE.mjs} +7 -7
- package/dist/cli/{setup-DSRHIY6M.js → setup-3UXOGSKW.js} +41 -41
- package/dist/cli/{setup-KUDUUQ77.mjs → setup-BKCG5BRF.mjs} +6 -6
- package/dist/cli/{skills-RNQS5ABC.mjs → skills-5BBTJHXZ.mjs} +4 -4
- package/dist/cli/skills-7X24WLXD.js +28 -0
- package/dist/cli/{tools-S5QDXE5W.mjs → tools-7EQFFGWU.mjs} +6 -6
- package/dist/cli/tools-HQFR3CYC.js +40 -0
- package/dist/cli/{update-MT6PD7B5.mjs → update-KFMOWN7F.mjs} +6 -6
- package/dist/cli/update-MP6SY5LY.js +28 -0
- package/dist/cli/{workflow-WWEWE4WP.mjs → workflow-JMBTBZGY.mjs} +5 -5
- package/dist/cli/{workflow-QABG23XQ.js → workflow-PGSPHWFA.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +72 -72
- 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-5I2DJ7WL.js +0 -39
- package/dist/cli/git-YYRUQD4K.js +0 -23
- package/dist/cli/play-F7CATHIR.js +0 -155
- package/dist/cli/search-M3ZEKREB.js +0 -26
- package/dist/cli/skills-HNAWVPEB.js +0 -28
- package/dist/cli/tools-IB4WTAKE.js +0 -40
- package/dist/cli/update-I2ZBIT52.js +0 -28
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QOK7SKSZ.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-4P35MBCK.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-Z2EKAUHJ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope,
|
|
6
6
|
renderCommandEnvelopeText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QOK7SKSZ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveConfig,
|
|
10
10
|
sdkCliStateDirPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4P35MBCK.mjs";
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
import { Option } from "commander";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-QOK7SKSZ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4P35MBCK.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 _chunkKQFDSP5Ojs = require('./chunk-KQFDSP5O.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk5UC6VEXFjs = require('./chunk-5UC6VEXF.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 } = _chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.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 } = _chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.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 } = _chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.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 } = _chunkKQFDSP5Ojs.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 } = _chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.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 } = _chunkKQFDSP5Ojs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkKQFDSP5Ojs.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 } = _chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.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 } = _chunkKQFDSP5Ojs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkKQFDSP5Ojs.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 = _chunk5UC6VEXFjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkKQFDSP5Ojs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkKQFDSP5Ojs.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 } = _chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.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 } = _chunkKQFDSP5Ojs.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
|
+
_chunkKQFDSP5Ojs.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 } = _chunkKQFDSP5Ojs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUTVDVZTMjs = require('./chunk-UTVDVZTM.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkUTVDVZTMjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -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 _chunkAQ4HP2GFjs = require('./chunk-AQ4HP2GF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkKQFDSP5Ojs = require('./chunk-KQFDSP5O.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk5UC6VEXFjs = require('./chunk-5UC6VEXF.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, _chunk5UC6VEXFjs.sdkCliStateDirPath.call(void 0, _chunk5UC6VEXFjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
22
22
|
}
|
|
23
23
|
function rememberSearchRef(searchRef) {
|
|
24
24
|
try {
|
|
@@ -259,7 +259,7 @@ function searchRow(item) {
|
|
|
259
259
|
}
|
|
260
260
|
function renderSearchResults(result) {
|
|
261
261
|
if (result.results.length === 0)
|
|
262
|
-
return
|
|
262
|
+
return _chunkKQFDSP5Ojs.renderCommandEnvelopeText.call(void 0, result);
|
|
263
263
|
const rows = result.results.map(searchRow);
|
|
264
264
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
265
265
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -283,7 +283,7 @@ function renderSearchResults(result) {
|
|
|
283
283
|
actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
|
|
284
284
|
};
|
|
285
285
|
const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
|
|
286
|
-
${
|
|
286
|
+
${_chunkKQFDSP5Ojs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
287
287
|
const notes = rows.flatMap(
|
|
288
288
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
289
289
|
);
|
|
@@ -360,7 +360,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
360
360
|
console.error(USAGE);
|
|
361
361
|
return 1;
|
|
362
362
|
}
|
|
363
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
363
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkAQ4HP2GFjs.DeeplineClient)().search({
|
|
364
364
|
query,
|
|
365
365
|
types,
|
|
366
366
|
exclude,
|
|
@@ -374,7 +374,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
374
374
|
});
|
|
375
375
|
if (searchRef) rememberSearchRef(searchRef);
|
|
376
376
|
pointAtDescribe(result);
|
|
377
|
-
|
|
377
|
+
_chunkKQFDSP5Ojs.printCommandEnvelope.call(void 0, result, {
|
|
378
378
|
json: options.json === true,
|
|
379
379
|
text: renderSearchResults(result)
|
|
380
380
|
});
|