deepline 0.3.353 → 0.3.355
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.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +54 -40
- package/dist/cli/{auth-FVIZVTCB.mjs → auth-3IQKHFUS.mjs} +4 -4
- package/dist/cli/auth-Q4OX2XOA.js +31 -0
- package/dist/cli/{billing-PYTYGWPG.mjs → billing-2O2HPRIQ.mjs} +4 -4
- package/dist/cli/{billing-NWL7KQPZ.js → billing-QACLO2L4.js} +73 -73
- package/dist/cli/{chunk-NFEQHNDQ.js → chunk-56UZ4LCT.js} +26 -26
- package/dist/cli/{chunk-ZDEO3EGW.mjs → chunk-5TFTY4H5.mjs} +1 -1
- package/dist/cli/{chunk-ZCCXX55K.js → chunk-63CWWQE6.js} +45 -45
- package/dist/cli/{chunk-D477W2OQ.mjs → chunk-64YA2SCL.mjs} +4 -4
- package/dist/cli/{chunk-IVGFLYQ6.mjs → chunk-6745OKK5.mjs} +1 -1
- package/dist/cli/{chunk-GFLHAA2O.mjs → chunk-B2C2PR6I.mjs} +1 -1
- package/dist/cli/{chunk-2UWRFDI4.js → chunk-CG5JEYRX.js} +60 -60
- package/dist/cli/{chunk-55XOA2VW.js → chunk-CKBJ2PQR.js} +8 -8
- package/dist/cli/{chunk-HU4SUDWU.js → chunk-CL6NZN6X.js} +224 -224
- package/dist/cli/{chunk-VALAAQQM.js → chunk-CQXFJZ57.js} +48 -48
- package/dist/cli/{chunk-CXMSK2VV.mjs → chunk-DYWM3EZG.mjs} +2 -2
- package/dist/cli/{chunk-BVHUTDCW.mjs → chunk-FC2SOWXT.mjs} +5 -5
- package/dist/cli/{chunk-Z6LVVOOJ.js → chunk-GGM6CX2R.js} +15 -15
- package/dist/cli/{chunk-DY253DRK.mjs → chunk-IQJBKSMD.mjs} +2 -2
- package/dist/cli/{chunk-R2T4HQ64.js → chunk-J2WSV37F.js} +6 -6
- package/dist/cli/{chunk-M4UPRX3M.js → chunk-J6I4RSDG.js} +8 -8
- package/dist/cli/{chunk-NPU4SMKT.js → chunk-PGBSGPQ3.js} +9 -9
- package/dist/cli/{chunk-XI5IMY45.js → chunk-QYKLKWQO.js} +2 -2
- package/dist/cli/{chunk-RRDCBCRI.mjs → chunk-R2O2BKDH.mjs} +1 -1
- package/dist/cli/{chunk-U3FUXTIB.mjs → chunk-SDZW7NSO.mjs} +1 -1
- package/dist/cli/{chunk-EDEO7NG4.js → chunk-TKWCYYIM.js} +1 -1
- package/dist/cli/{chunk-NZNUDZDW.mjs → chunk-UAPP5IVJ.mjs} +2 -2
- package/dist/cli/{chunk-LLI4RITH.mjs → chunk-USB6LFMD.mjs} +3 -3
- package/dist/cli/{chunk-CQQ5N4YO.mjs → chunk-VALEHQXO.mjs} +2 -2
- package/dist/cli/{chunk-JHPVZR6F.js → chunk-WMULUP2K.js} +4 -4
- package/dist/cli/{chunk-37F4EUJA.mjs → chunk-XXC7ST6U.mjs} +6 -6
- package/dist/cli/client-ISC4LLIX.js +20 -0
- package/dist/cli/{client-IH7I5D7T.mjs → client-QQMVHMOY.mjs} +3 -3
- package/dist/cli/{csv-TJIWKUCX.js → csv-DQBAUFB6.js} +12 -12
- package/dist/cli/{csv-G5WXNCLQ.mjs → csv-DWIYPLLH.mjs} +3 -3
- package/dist/cli/{db-EBHV2MGE.mjs → db-LFLTGHKA.mjs} +4 -4
- package/dist/cli/{db-3DCS2JXS.js → db-QET2DLHP.js} +29 -29
- package/dist/cli/{describe-QUOLGZKH.mjs → describe-LR5QXOKB.mjs} +8 -8
- package/dist/cli/{describe-5XKBPWD7.js → describe-Z2YFVBNO.js} +15 -15
- package/dist/cli/{executions-NYIOENKH.js → executions-5T2TL6CL.js} +6 -6
- package/dist/cli/{executions-EERWIJ5I.mjs → executions-ARKMIMHM.mjs} +4 -4
- package/dist/cli/{feedback-Z2I5MQYZ.js → feedback-4POM6CBJ.js} +7 -7
- package/dist/cli/{feedback-4RYJJCYL.mjs → feedback-YAEIOXMS.mjs} +3 -3
- package/dist/cli/{git-EMU7AKX3.mjs → git-OCMBR5FC.mjs} +4 -4
- package/dist/cli/git-RZCZI3ER.js +23 -0
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-HHLNM523.mjs → legacy-noops-DCZUS7ES.mjs} +4 -4
- package/dist/cli/{legacy-noops-BEUYYRSU.js → legacy-noops-IKM26VQP.js} +7 -7
- package/dist/cli/{monitors-BVJSHUV4.mjs → monitors-FYDK5HOY.mjs} +4 -4
- package/dist/cli/{monitors-KQXLMPZ4.js → monitors-P5FGTRL3.js} +85 -85
- package/dist/cli/{org-HRYNVOUH.js → org-HAQEVMOO.js} +60 -60
- package/dist/cli/{org-KSROOKSJ.mjs → org-P3EKASXE.mjs} +4 -4
- package/dist/cli/{play-PGFW6PFE.mjs → play-VQPA3FJM.mjs} +7 -7
- package/dist/cli/play-YEQ4JQUW.js +153 -0
- package/dist/cli/{providers-EUKJK6ZE.mjs → providers-ATI5HUBZ.mjs} +4 -4
- package/dist/cli/{providers-BJM725CV.js → providers-M34KOQTE.js} +7 -7
- package/dist/cli/{quickstart-72JYHUJC.mjs → quickstart-7YP5G2PM.mjs} +3 -3
- package/dist/cli/{quickstart-FEERYTYY.js → quickstart-WBAHFDVT.js} +5 -5
- package/dist/cli/{search-LUAIOM56.mjs → search-5DI73SZD.mjs} +5 -5
- package/dist/cli/search-USWDT7PW.js +26 -0
- package/dist/cli/{secrets-J65QCH57.js → secrets-C4HJ7BTJ.js} +13 -13
- package/dist/cli/{secrets-YYFRYS2Z.mjs → secrets-F6TOYGUG.mjs} +4 -4
- package/dist/cli/{sessions-WBA67YYT.mjs → sessions-JG5Y4YHP.mjs} +4 -4
- package/dist/cli/{sessions-FWUUEK6V.js → sessions-P6ED3JWC.js} +5 -5
- package/dist/cli/{settings-I7AZ4JVI.js → settings-UVT6MUZH.js} +74 -74
- package/dist/cli/{settings-RUMTSUE5.mjs → settings-YERL4MKN.mjs} +7 -7
- package/dist/cli/{setup-BHRRNT5C.mjs → setup-C6NYXZX4.mjs} +6 -6
- package/dist/cli/{setup-R3IUFNDP.js → setup-LREJO56L.js} +41 -41
- package/dist/cli/{skills-EKD5O7GQ.mjs → skills-4HU5RV5M.mjs} +4 -4
- package/dist/cli/skills-74GBPOGS.js +28 -0
- package/dist/cli/tools-GUFCJGVW.js +40 -0
- package/dist/cli/{tools-L5OA2343.mjs → tools-SR46KMKA.mjs} +6 -6
- package/dist/cli/update-K47QQUCB.js +28 -0
- package/dist/cli/{update-UUHL6FER.mjs → update-XFV6ELFK.mjs} +6 -6
- package/dist/cli/{workflow-7NBSG5OT.js → workflow-E2BSA6OI.js} +15 -15
- package/dist/cli/{workflow-V24VHOQT.mjs → workflow-OHS4NXMP.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-GJZ3S4QH.js +0 -31
- package/dist/cli/client-Z6BCEGFA.js +0 -20
- package/dist/cli/git-QYQ5ZFIG.js +0 -23
- package/dist/cli/play-CRHUA45Q.js +0 -153
- package/dist/cli/search-X25S2U54.js +0 -26
- package/dist/cli/skills-OOZ5SDVB.js +0 -28
- package/dist/cli/tools-MYH33NTL.js +0 -40
- package/dist/cli/update-EWNPE3NF.js +0 -28
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkJ2WSV37Fjs = require('./chunk-J2WSV37F.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkWMULUP2Kjs = require('./chunk-WMULUP2K.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 } = _chunkJ2WSV37Fjs.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
|
+
_chunkJ2WSV37Fjs.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 } = _chunkJ2WSV37Fjs.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
|
+
_chunkJ2WSV37Fjs.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 } = _chunkJ2WSV37Fjs.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
|
+
_chunkJ2WSV37Fjs.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 } = _chunkJ2WSV37Fjs.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 } = _chunkJ2WSV37Fjs.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
|
+
_chunkJ2WSV37Fjs.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 } = _chunkJ2WSV37Fjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkJ2WSV37Fjs.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 } = _chunkJ2WSV37Fjs.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
|
+
_chunkJ2WSV37Fjs.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 } = _chunkJ2WSV37Fjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkJ2WSV37Fjs.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 = _chunkWMULUP2Kjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkJ2WSV37Fjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkJ2WSV37Fjs.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 } = _chunkJ2WSV37Fjs.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
|
+
_chunkJ2WSV37Fjs.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 } = _chunkJ2WSV37Fjs.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
|
+
_chunkJ2WSV37Fjs.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 } = _chunkJ2WSV37Fjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -11,7 +11,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkJ6I4RSDGjs = require('./chunk-J6I4RSDG.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -23,7 +23,7 @@ var _chunkNXDRDJ4Kjs = require('./chunk-NXDRDJ4K.js');
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkPGBSGPQ3js = require('./chunk-PGBSGPQ3.js');
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
@@ -37,11 +37,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkJ2WSV37Fjs = require('./chunk-J2WSV37F.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkWMULUP2Kjs = require('./chunk-WMULUP2K.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
var _chunk5O4B6AUNjs = require('./chunk-5O4B6AUN.js');
|
|
@@ -89,10 +89,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
|
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
91
|
function pendingToolExecutionPath(input) {
|
|
92
|
-
const config =
|
|
92
|
+
const config = _chunkWMULUP2Kjs.resolveConfig.call(void 0, );
|
|
93
93
|
const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkNXDRDJ4Kjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
|
|
94
94
|
return _path.join.call(void 0,
|
|
95
|
-
|
|
95
|
+
_chunkWMULUP2Kjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
|
|
96
96
|
`pending-tool-execution-${fingerprint}.json`
|
|
97
97
|
);
|
|
98
98
|
}
|
|
@@ -536,12 +536,12 @@ function categoryEnumerationRender(summaries) {
|
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
538
|
async function listToolCategories(emitJson, compact) {
|
|
539
|
-
const client = new (0,
|
|
539
|
+
const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
|
|
540
540
|
const rawTools = await client.listTools({ compact });
|
|
541
541
|
const items = rawTools.map(toListedTool);
|
|
542
542
|
const summaries = aggregateCategorySummaries(rawTools);
|
|
543
543
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
544
|
-
|
|
544
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
|
|
545
545
|
{
|
|
546
546
|
tools: outputItems,
|
|
547
547
|
count: outputItems.length,
|
|
@@ -560,7 +560,7 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
560
560
|
const known = summaries.map((item) => item.name);
|
|
561
561
|
const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
|
|
562
562
|
if (emitJson) {
|
|
563
|
-
|
|
563
|
+
_chunkJ2WSV37Fjs.printJson.call(void 0, {
|
|
564
564
|
ok: false,
|
|
565
565
|
exitCode: 4,
|
|
566
566
|
code: "TOOL_CATEGORY_NOT_FOUND",
|
|
@@ -574,13 +574,13 @@ function unknownCategoryError(category, summaries, emitJson) {
|
|
|
574
574
|
const render = categoryEnumerationRender(summaries);
|
|
575
575
|
console.error(message);
|
|
576
576
|
console.error("");
|
|
577
|
-
console.error(
|
|
577
|
+
console.error(_chunkJ2WSV37Fjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
|
|
578
578
|
console.error("");
|
|
579
579
|
console.error(`Valid categories: ${known.join(", ")}`);
|
|
580
580
|
return 4;
|
|
581
581
|
}
|
|
582
582
|
async function listToolsInCategory(category, emitJson) {
|
|
583
|
-
const client = new (0,
|
|
583
|
+
const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
|
|
584
584
|
const rawTools = await client.listTools({
|
|
585
585
|
categories: category,
|
|
586
586
|
compact: false
|
|
@@ -617,7 +617,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
617
617
|
}
|
|
618
618
|
]
|
|
619
619
|
};
|
|
620
|
-
|
|
620
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
|
|
621
621
|
{
|
|
622
622
|
category,
|
|
623
623
|
total: rows.length,
|
|
@@ -630,7 +630,7 @@ async function listToolsInCategory(category, emitJson) {
|
|
|
630
630
|
return 0;
|
|
631
631
|
}
|
|
632
632
|
async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
|
|
633
|
-
const client = new (0,
|
|
633
|
+
const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
|
|
634
634
|
const items = (await client.listTools({
|
|
635
635
|
categories: requestedCategories.join(","),
|
|
636
636
|
compact
|
|
@@ -659,7 +659,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
|
|
|
659
659
|
]
|
|
660
660
|
};
|
|
661
661
|
const outputItems = compact ? items.map(compactTool) : items;
|
|
662
|
-
|
|
662
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
|
|
663
663
|
{
|
|
664
664
|
tools: outputItems,
|
|
665
665
|
count: outputItems.length,
|
|
@@ -678,13 +678,13 @@ async function listTools(category, options = {}) {
|
|
|
678
678
|
const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]), () => ( ""));
|
|
679
679
|
const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
|
|
680
680
|
const compact = options.compact !== false;
|
|
681
|
-
const emitJson = options.json === true ||
|
|
681
|
+
const emitJson = options.json === true || _chunkJ2WSV37Fjs.shouldEmitJson.call(void 0, );
|
|
682
682
|
if (positional && flagCategories.length > 0) {
|
|
683
683
|
const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
|
|
684
684
|
if (!flagIsSameSingle) {
|
|
685
685
|
const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
|
|
686
686
|
if (emitJson) {
|
|
687
|
-
|
|
687
|
+
_chunkJ2WSV37Fjs.printJson.call(void 0, {
|
|
688
688
|
ok: false,
|
|
689
689
|
exitCode: 2,
|
|
690
690
|
code: "TOOL_LIST_CATEGORY_CONFLICT",
|
|
@@ -711,7 +711,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
711
711
|
console.error("Usage: deepline tools grep <query> [--json]");
|
|
712
712
|
return 1;
|
|
713
713
|
}
|
|
714
|
-
const client = new (0,
|
|
714
|
+
const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
|
|
715
715
|
const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
|
|
716
716
|
const mode = _nullishCoalesce(options.mode, () => ( "all"));
|
|
717
717
|
const jsonOutput = options.json === true;
|
|
@@ -754,7 +754,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
754
754
|
query,
|
|
755
755
|
mode
|
|
756
756
|
}) : null;
|
|
757
|
-
|
|
757
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
|
|
758
758
|
{
|
|
759
759
|
tools: outputTools,
|
|
760
760
|
count: outputTools.length,
|
|
@@ -772,7 +772,7 @@ async function grepTools(queryInput, options = {}) {
|
|
|
772
772
|
} : {},
|
|
773
773
|
commandTemplates: TOOL_COMMAND_TEMPLATES
|
|
774
774
|
},
|
|
775
|
-
{ json: options.json ||
|
|
775
|
+
{ json: options.json || _chunkJ2WSV37Fjs.shouldEmitJson.call(void 0, ) }
|
|
776
776
|
);
|
|
777
777
|
return 0;
|
|
778
778
|
}
|
|
@@ -928,7 +928,7 @@ Examples:
|
|
|
928
928
|
json: Boolean(options.json)
|
|
929
929
|
});
|
|
930
930
|
});
|
|
931
|
-
|
|
931
|
+
_chunkJ6I4RSDGjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
|
|
932
932
|
tools.command("grep <query>").description(
|
|
933
933
|
"Literal grep over tool ids, descriptions, categories, and input fields."
|
|
934
934
|
).addHelpText(
|
|
@@ -1030,7 +1030,7 @@ Examples:
|
|
|
1030
1030
|
process.exitCode = await narrowView();
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
1033
|
+
const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-Z2YFVBNO.js")));
|
|
1034
1034
|
process.exitCode = await describeAnything(
|
|
1035
1035
|
toolId,
|
|
1036
1036
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -1112,7 +1112,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1112
1112
|
console.error("Usage: deepline tools describe <toolId> [--json]");
|
|
1113
1113
|
return 1;
|
|
1114
1114
|
}
|
|
1115
|
-
const client = new (0,
|
|
1115
|
+
const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
|
|
1116
1116
|
let tool;
|
|
1117
1117
|
try {
|
|
1118
1118
|
tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
|
|
@@ -1166,7 +1166,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1166
1166
|
const lines = toolPricingOnlyLines(tool, toolId);
|
|
1167
1167
|
if (inferenceQuote)
|
|
1168
1168
|
lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
|
|
1169
|
-
|
|
1169
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
|
|
1170
1170
|
{
|
|
1171
1171
|
toolId: String(tool.toolId || toolId),
|
|
1172
1172
|
cost: Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
@@ -1184,7 +1184,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1184
1184
|
}
|
|
1185
1185
|
if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
|
|
1186
1186
|
const contract = toolContractJsonForDescribe(tool, toolId);
|
|
1187
|
-
|
|
1187
|
+
_chunkJ2WSV37Fjs.printCompactJson.call(void 0, {
|
|
1188
1188
|
toolId: contract.toolId,
|
|
1189
1189
|
...options.schemaOnly ? {
|
|
1190
1190
|
inputSchema: contract.inputSchema,
|
|
@@ -1207,7 +1207,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1207
1207
|
return 0;
|
|
1208
1208
|
}
|
|
1209
1209
|
if (options.contractJson) {
|
|
1210
|
-
|
|
1210
|
+
_chunkJ2WSV37Fjs.printCompactJson.call(void 0, {
|
|
1211
1211
|
...toolContractJsonForDescribe(tool, toolId),
|
|
1212
1212
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1213
1213
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -1216,7 +1216,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
const emitJson = options.json === true;
|
|
1218
1218
|
if (emitJson) {
|
|
1219
|
-
|
|
1219
|
+
_chunkJ2WSV37Fjs.printCompactJson.call(void 0, {
|
|
1220
1220
|
...toolMetadataJsonForDescribe(tool, toolId),
|
|
1221
1221
|
...modelDescription ? { modelOptions: modelDescription } : {},
|
|
1222
1222
|
...inferenceQuote ? { inferenceQuote } : {}
|
|
@@ -2627,7 +2627,7 @@ function parseExecuteOptions(toolId, options, output) {
|
|
|
2627
2627
|
outputFormat = normalizeOutputFormat(options.outputFormat);
|
|
2628
2628
|
}
|
|
2629
2629
|
if (options.idempotencyKey !== void 0) {
|
|
2630
|
-
|
|
2630
|
+
_chunkPGBSGPQ3js.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
|
|
2631
2631
|
}
|
|
2632
2632
|
if (options.recoveryTimeoutMs !== void 0) {
|
|
2633
2633
|
const parsed = Number(options.recoveryTimeoutMs);
|
|
@@ -2938,20 +2938,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
|
|
|
2938
2938
|
}
|
|
2939
2939
|
async function executeTool(toolId, options) {
|
|
2940
2940
|
const output = toolExecuteJsonOption(options.json);
|
|
2941
|
-
const wantsJson =
|
|
2941
|
+
const wantsJson = _chunkJ2WSV37Fjs.shouldEmitJson.call(void 0, output.requested);
|
|
2942
2942
|
let parsed;
|
|
2943
2943
|
try {
|
|
2944
2944
|
parsed = parseExecuteOptions(toolId, options, output);
|
|
2945
2945
|
} catch (error) {
|
|
2946
2946
|
if (wantsJson) {
|
|
2947
|
-
|
|
2947
|
+
_chunkJ2WSV37Fjs.printJsonError.call(void 0, error);
|
|
2948
2948
|
} else {
|
|
2949
2949
|
console.error(error instanceof Error ? error.message : String(error));
|
|
2950
2950
|
}
|
|
2951
2951
|
return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
|
|
2952
2952
|
}
|
|
2953
2953
|
const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
|
|
2954
|
-
const client = new (0,
|
|
2954
|
+
const client = new (0, _chunkPGBSGPQ3js.DeeplineClient)();
|
|
2955
2955
|
let metadata;
|
|
2956
2956
|
try {
|
|
2957
2957
|
metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
|
|
@@ -2966,7 +2966,7 @@ async function executeTool(toolId, options) {
|
|
|
2966
2966
|
);
|
|
2967
2967
|
if (play) {
|
|
2968
2968
|
if (wantsJson) {
|
|
2969
|
-
|
|
2969
|
+
_chunkJ2WSV37Fjs.printJsonError.call(void 0,
|
|
2970
2970
|
new Error(playAliasToolErrorMessage(parsed.toolId, play))
|
|
2971
2971
|
);
|
|
2972
2972
|
} else {
|
|
@@ -2979,7 +2979,7 @@ async function executeTool(toolId, options) {
|
|
|
2979
2979
|
}
|
|
2980
2980
|
if (isPlayLikeTool(metadata)) {
|
|
2981
2981
|
if (wantsJson) {
|
|
2982
|
-
|
|
2982
|
+
_chunkJ2WSV37Fjs.printJsonError.call(void 0,
|
|
2983
2983
|
new Error(
|
|
2984
2984
|
playLikeToolExecuteErrorMessage(
|
|
2985
2985
|
parsed.toolId,
|
|
@@ -3015,7 +3015,7 @@ async function executeTool(toolId, options) {
|
|
|
3015
3015
|
responseIntent,
|
|
3016
3016
|
...idempotencyKey ? { idempotencyKey } : {},
|
|
3017
3017
|
...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
|
|
3018
|
-
searchRef:
|
|
3018
|
+
searchRef: _chunkJ6I4RSDGjs.recentSearchRef.call(void 0, ),
|
|
3019
3019
|
cliInvocationId,
|
|
3020
3020
|
onResponseReceived: _chunkMX53GIOBjs.recordApiResponse
|
|
3021
3021
|
}).catch((error) => {
|
|
@@ -3055,8 +3055,8 @@ async function executeTool(toolId, options) {
|
|
|
3055
3055
|
);
|
|
3056
3056
|
const executeExitCode = toolExecuteExitCode(baseEnvelope);
|
|
3057
3057
|
const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
|
|
3058
|
-
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" &&
|
|
3059
|
-
|
|
3058
|
+
if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && _chunkJ2WSV37Fjs.shouldEmitJson.call(void 0, ))) {
|
|
3059
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
|
|
3060
3060
|
return true;
|
|
3061
3061
|
}
|
|
3062
3062
|
if (parsed.outputFormat === "json_file") {
|
|
@@ -3064,7 +3064,7 @@ async function executeTool(toolId, options) {
|
|
|
3064
3064
|
rawResponse,
|
|
3065
3065
|
`payload_${parsed.toolId}`
|
|
3066
3066
|
);
|
|
3067
|
-
|
|
3067
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
|
|
3068
3068
|
{
|
|
3069
3069
|
...baseEnvelope,
|
|
3070
3070
|
local: {
|
|
@@ -3086,7 +3086,7 @@ async function executeTool(toolId, options) {
|
|
|
3086
3086
|
`${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
|
|
3087
3087
|
);
|
|
3088
3088
|
if (wantsJson) {
|
|
3089
|
-
|
|
3089
|
+
_chunkJ2WSV37Fjs.printJsonError.call(void 0, error);
|
|
3090
3090
|
} else {
|
|
3091
3091
|
console.error(error.message);
|
|
3092
3092
|
}
|
|
@@ -3097,18 +3097,18 @@ async function executeTool(toolId, options) {
|
|
|
3097
3097
|
rawResponse,
|
|
3098
3098
|
`payload_${parsed.toolId}`
|
|
3099
3099
|
);
|
|
3100
|
-
|
|
3100
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
|
|
3101
3101
|
{
|
|
3102
3102
|
...baseEnvelope,
|
|
3103
3103
|
local: {
|
|
3104
3104
|
payload_file: jsonPath
|
|
3105
3105
|
}
|
|
3106
3106
|
},
|
|
3107
|
-
{ json: parsed.outputFormat === "csv_file" ||
|
|
3107
|
+
{ json: parsed.outputFormat === "csv_file" || _chunkJ2WSV37Fjs.shouldEmitJson.call(void 0, ) }
|
|
3108
3108
|
);
|
|
3109
3109
|
return true;
|
|
3110
3110
|
}
|
|
3111
|
-
|
|
3111
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
|
|
3112
3112
|
return true;
|
|
3113
3113
|
}
|
|
3114
3114
|
const rowOutput = _chunkNXDRDJ4Kjs.projectRowOutput.call(void 0, listConversion);
|
|
@@ -3132,7 +3132,7 @@ async function executeTool(toolId, options) {
|
|
|
3132
3132
|
seededScript
|
|
3133
3133
|
});
|
|
3134
3134
|
if (parsed.outputFormat === "csv_file") {
|
|
3135
|
-
|
|
3135
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
|
|
3136
3136
|
return true;
|
|
3137
3137
|
}
|
|
3138
3138
|
if (parsed.outPath) {
|
|
@@ -3140,7 +3140,7 @@ async function executeTool(toolId, options) {
|
|
|
3140
3140
|
toolId: parsed.toolId,
|
|
3141
3141
|
idempotencyKey
|
|
3142
3142
|
});
|
|
3143
|
-
|
|
3143
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
|
|
3144
3144
|
json: wantsJson,
|
|
3145
3145
|
text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
|
|
3146
3146
|
inspect: ${inspection.inspect}
|
|
@@ -3149,7 +3149,7 @@ inspect: ${inspection.inspect}
|
|
|
3149
3149
|
return true;
|
|
3150
3150
|
}
|
|
3151
3151
|
if (parsed.noPreview) {
|
|
3152
|
-
|
|
3152
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0,
|
|
3153
3153
|
{
|
|
3154
3154
|
...materializedEnvelope,
|
|
3155
3155
|
local: {
|
|
@@ -3157,12 +3157,12 @@ inspect: ${inspection.inspect}
|
|
|
3157
3157
|
output_path: csv.path
|
|
3158
3158
|
}
|
|
3159
3159
|
},
|
|
3160
|
-
{ json:
|
|
3160
|
+
{ json: _chunkJ2WSV37Fjs.shouldEmitJson.call(void 0, ), text: `${csv.path}
|
|
3161
3161
|
` }
|
|
3162
3162
|
);
|
|
3163
3163
|
return true;
|
|
3164
3164
|
}
|
|
3165
|
-
|
|
3165
|
+
_chunkJ2WSV37Fjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: false });
|
|
3166
3166
|
return true;
|
|
3167
3167
|
});
|
|
3168
3168
|
if (delivered) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-B2C2PR6I.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DYWM3EZG.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5TFTY4H5.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SDZW7NSO.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|