deepline 0.3.462 → 0.3.463
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +17 -17
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +28 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +12 -9
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +17 -7
- package/dist/cli/{auth-JDLEY7VU.mjs → auth-LZLBR4C3.mjs} +5 -5
- package/dist/cli/auth-XPGKBJKB.js +41 -0
- package/dist/cli/{billing-HXAXB3XZ.js → billing-6TJPNJQD.js} +77 -77
- package/dist/cli/{billing-SDHLBLMV.mjs → billing-OTOP5RE4.mjs} +6 -6
- package/dist/cli/{chunk-NBLSCHKK.js → chunk-2NISBXMN.js} +51 -51
- package/dist/cli/{chunk-XANRM3QA.js → chunk-2ZIRCBYG.js} +6 -6
- package/dist/cli/{chunk-7VZHXVOQ.js → chunk-3BOIOCNX.js} +1 -1
- package/dist/cli/{chunk-4KQ6SIBC.mjs → chunk-3BVLLJ3H.mjs} +2 -2
- package/dist/cli/{chunk-PHSEINNH.mjs → chunk-3U5EAP6E.mjs} +5 -5
- package/dist/cli/{chunk-WIY6U6GD.mjs → chunk-4YZKBBLZ.mjs} +4 -4
- package/dist/cli/{chunk-UAJFWWZE.js → chunk-5DRNNC72.js} +5 -5
- package/dist/cli/{chunk-3ACMRZRV.js → chunk-5LHXOIPT.js} +7 -7
- package/dist/cli/{chunk-V3MEA7NB.mjs → chunk-7D6X7IXW.mjs} +4 -4
- package/dist/cli/{chunk-OMQ23IXL.js → chunk-7FCYPAPP.js} +2 -2
- package/dist/cli/{chunk-I6VHOU5O.js → chunk-7XYDDCQ2.js} +26 -26
- package/dist/cli/{chunk-OPJAJBD4.js → chunk-ALZBANZI.js} +8 -8
- package/dist/cli/{chunk-PKHVSIJG.mjs → chunk-BAPTQDLF.mjs} +2 -2
- package/dist/cli/{chunk-Y4DPU4OM.js → chunk-BGNWI3KH.js} +3 -3
- package/dist/cli/{chunk-LFXLQEZN.mjs → chunk-C25QE4CH.mjs} +1 -1
- package/dist/cli/{chunk-GEGW5HPZ.js → chunk-CBZP6J3V.js} +21 -21
- package/dist/cli/{chunk-ZUK6LIJB.mjs → chunk-CTQ56DXP.mjs} +1 -1
- package/dist/cli/{chunk-7U3XNPOA.mjs → chunk-CVQ7N5CV.mjs} +10 -10
- package/dist/cli/{chunk-6NNVJDVR.mjs → chunk-DHXCBITQ.mjs} +3 -3
- package/dist/cli/{chunk-D6DXOUTO.mjs → chunk-F2RHUPVH.mjs} +1 -1
- package/dist/cli/{chunk-7LFIMWMW.js → chunk-FK2HNDCN.js} +2 -2
- package/dist/cli/{chunk-MUUQZIOF.mjs → chunk-GUT7CLOL.mjs} +3 -3
- package/dist/cli/{chunk-6RNQGWFD.mjs → chunk-I624J4H5.mjs} +1 -1
- package/dist/cli/{chunk-3KZCFOZ6.mjs → chunk-IKWRUNAP.mjs} +1 -1
- package/dist/cli/{chunk-ULK7JGGI.js → chunk-JVDKZJUH.js} +93 -93
- package/dist/cli/{chunk-FKVYR3QA.mjs → chunk-LYFKBLJI.mjs} +1 -1
- package/dist/cli/{chunk-QJZ6WNWD.js → chunk-NAPTMYTY.js} +8 -8
- package/dist/cli/{chunk-VFGVXXZP.js → chunk-NDHJR2WZ.js} +36 -36
- package/dist/cli/{chunk-7MJ6VI2T.mjs → chunk-NTLI6P6Y.mjs} +2 -2
- package/dist/cli/{chunk-S6UAJR6V.mjs → chunk-O3BJYD6D.mjs} +2 -2
- package/dist/cli/{chunk-EM4TXCCI.js → chunk-PVY4DPPF.js} +10 -10
- package/dist/cli/{chunk-UDRPEZ5F.mjs → chunk-RD6IQ2JY.mjs} +1 -1
- package/dist/cli/{chunk-7SWNPNML.js → chunk-RGOUCIIZ.js} +3 -3
- package/dist/cli/{chunk-O2RX5A66.mjs → chunk-S4XQCFES.mjs} +5 -5
- package/dist/cli/{chunk-JF3TLIMQ.js → chunk-SKU6ECIY.js} +5 -5
- package/dist/cli/{chunk-LROWFPGN.js → chunk-TIRBDQ3W.js} +16 -16
- package/dist/cli/{chunk-BGTPIMSM.js → chunk-UC4SFYNU.js} +6 -6
- package/dist/cli/{chunk-S42YIQNE.mjs → chunk-UIURR26V.mjs} +4 -4
- package/dist/cli/{chunk-HUB3CCM2.js → chunk-UROQDCVW.js} +3 -3
- package/dist/cli/{chunk-AT636LLU.mjs → chunk-VDGTTH7K.mjs} +2 -2
- package/dist/cli/{chunk-V335HGX5.js → chunk-VY2GBNTX.js} +9 -9
- package/dist/cli/{chunk-NHRWZPWZ.mjs → chunk-WUMIYOXQ.mjs} +2 -2
- package/dist/cli/{chunk-ZGQSFYD2.js → chunk-WUZS2HK6.js} +53 -53
- package/dist/cli/{chunk-XZAFIOUQ.mjs → chunk-XDWS2JJT.mjs} +1 -1
- package/dist/cli/{chunk-CKSOY47X.mjs → chunk-XW2JIYG7.mjs} +2 -2
- package/dist/cli/{chunk-YT5EODJO.js → chunk-YGGIZ3VT.js} +4 -4
- package/dist/cli/{csv-C56GSCEU.js → csv-EH5QWR4O.js} +13 -13
- package/dist/cli/{csv-L54JS7TF.mjs → csv-OK45Z5XQ.mjs} +4 -4
- package/dist/cli/{db-MOGRMZTA.js → db-3ESJKETS.js} +27 -27
- package/dist/cli/{db-YVBUW2DX.mjs → db-6Z5E4HKN.mjs} +6 -6
- package/dist/cli/{describe-NLZKKT7C.mjs → describe-PNDQB7YS.mjs} +17 -17
- package/dist/cli/describe-QUF7VTTR.js +48 -0
- package/dist/cli/{executions-ZBGSTT37.mjs → executions-2NTWQFEG.mjs} +6 -6
- package/dist/cli/{executions-A7L4ULPP.js → executions-KUOBRX5V.js} +8 -8
- package/dist/cli/{feedback-G6GU37FD.mjs → feedback-7RPRMSGY.mjs} +4 -4
- package/dist/cli/{feedback-OHLY7RYD.js → feedback-UPHAZJ4C.js} +8 -8
- package/dist/cli/{git-PKZW3QD5.mjs → git-SCYP6WSZ.mjs} +5 -5
- package/dist/cli/git-UH653WHV.js +25 -0
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-5LM3D724.js → legacy-noops-7XMFCVRG.js} +8 -8
- package/dist/cli/{legacy-noops-LJJYG6YA.mjs → legacy-noops-A4KYAGI6.mjs} +5 -5
- package/dist/cli/{monitors-72QV4ALO.mjs → monitors-FLC5J7RI.mjs} +7 -7
- package/dist/cli/{monitors-UX3H5DC2.js → monitors-NZV6IX5H.js} +91 -91
- package/dist/cli/{org-IF7ISUVB.js → org-IZ7UP3XF.js} +68 -68
- package/dist/cli/{org-6RRRKOCP.mjs → org-LUETJ7Z5.mjs} +6 -6
- package/dist/cli/{pages-3SU3HKL7.js → pages-22ML3O7O.js} +17 -17
- package/dist/cli/{pages-DXDYYKEK.mjs → pages-EUX5EAGF.mjs} +6 -6
- package/dist/cli/{play-AHASKRLA.mjs → play-CDHPAKKM.mjs} +17 -17
- package/dist/cli/{play-EUIUVLUH.js → play-USJBQADG.js} +304 -304
- package/dist/cli/{providers-GWGE3WY3.mjs → providers-CCXZ3SQF.mjs} +6 -6
- package/dist/cli/{providers-V5WU4VXJ.js → providers-WFEUNPGC.js} +9 -9
- package/dist/cli/{quickstart-QP65I5PF.js → quickstart-O4JSUORZ.js} +6 -6
- package/dist/cli/{quickstart-OXKQ5ZST.mjs → quickstart-ZUULI635.mjs} +4 -4
- package/dist/cli/{run-F3FTYS56.js → run-ISDJYJMU.js} +36 -36
- package/dist/cli/{run-6MM72IGL.mjs → run-QJ4NX5F5.mjs} +22 -22
- package/dist/cli/{search-ZMEBVJZB.mjs → search-IX3XKZJ3.mjs} +7 -7
- package/dist/cli/search-TIFNLRPM.js +32 -0
- package/dist/cli/{secrets-XRCJFF3L.mjs → secrets-7VUDXTUZ.mjs} +6 -6
- package/dist/cli/{secrets-ACND5N6A.js → secrets-ELQSNCTR.js} +15 -15
- package/dist/cli/{sessions-ZGRJPCFF.js → sessions-A3FG3AZX.js} +6 -6
- package/dist/cli/{sessions-RTK3CEW6.mjs → sessions-VOIQ62GB.mjs} +5 -5
- package/dist/cli/{settings-XDRBPRDE.mjs → settings-S6N6EFBG.mjs} +11 -11
- package/dist/cli/{settings-PD5KWQQZ.js → settings-ZTXQEMZI.js} +78 -78
- package/dist/cli/{setup-3HPYAOCC.mjs → setup-AYPIK4JE.mjs} +9 -9
- package/dist/cli/{setup-E2Q6PXHC.js → setup-Y3WOIFLS.js} +44 -44
- package/dist/cli/{skills-OOQFMPOV.mjs → skills-5SF5QWNI.mjs} +7 -7
- package/dist/cli/skills-MWFRMG3H.js +31 -0
- package/dist/cli/{tools-C5ZT3UIC.mjs → tools-3XNZ4J64.mjs} +16 -16
- package/dist/cli/tools-XEC4OD3R.js +55 -0
- package/dist/cli/{update-ZWJTADIW.mjs → update-3U4OVX5R.mjs} +9 -9
- package/dist/cli/update-DWYEYTZE.js +33 -0
- package/dist/cli/{workflow-23NMPAJ7.mjs → workflow-2M5JP7SA.mjs} +7 -7
- package/dist/cli/{workflow-TCXU5YJV.js → workflow-RM7H7555.js} +17 -17
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +96 -96
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-UXKY6TCC.js +0 -41
- package/dist/cli/describe-KYEULWPG.js +0 -48
- package/dist/cli/git-P76N4NDQ.js +0 -25
- package/dist/cli/search-OYKOOI7A.js +0 -32
- package/dist/cli/skills-XYWV52KB.js +0 -31
- package/dist/cli/tools-ASCDZJCK.js +0 -55
- package/dist/cli/update-5RQSEIFM.js +0 -33
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk5LHXOIPTjs = require('./chunk-5LHXOIPT.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkBGNWI3KHjs = require('./chunk-BGNWI3KH.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 } = _chunk5LHXOIPTjs.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
|
+
_chunk5LHXOIPTjs.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 } = _chunk5LHXOIPTjs.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
|
+
_chunk5LHXOIPTjs.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 } = _chunk5LHXOIPTjs.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
|
+
_chunk5LHXOIPTjs.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 } = _chunk5LHXOIPTjs.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 } = _chunk5LHXOIPTjs.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
|
+
_chunk5LHXOIPTjs.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 } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunk5LHXOIPTjs.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 } = _chunk5LHXOIPTjs.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
|
+
_chunk5LHXOIPTjs.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 } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunk5LHXOIPTjs.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 = _chunkBGNWI3KHjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunk5LHXOIPTjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunk5LHXOIPTjs.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 } = _chunk5LHXOIPTjs.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
|
+
_chunk5LHXOIPTjs.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 } = _chunk5LHXOIPTjs.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
|
+
_chunk5LHXOIPTjs.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 } = _chunk5LHXOIPTjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunk5LHXOIPTjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkSKU6ECIYjs = require('./chunk-SKU6ECIY.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk5LHXOIPTjs = require('./chunk-5LHXOIPT.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkBGNWI3KHjs = require('./chunk-BGNWI3KH.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
|
|
|
5713
5713
|
var _path = require('path');
|
|
5714
5714
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
5715
5715
|
function lastSearchPath() {
|
|
5716
|
-
return _path.join.call(void 0,
|
|
5716
|
+
return _path.join.call(void 0, _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, _chunkBGNWI3KHjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
5717
5717
|
}
|
|
5718
5718
|
function rememberSearchRef(searchRef) {
|
|
5719
5719
|
try {
|
|
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5877
5877
|
];
|
|
5878
5878
|
function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
5879
5879
|
if (result.results.length === 0)
|
|
5880
|
-
return
|
|
5880
|
+
return _chunk5LHXOIPTjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5881
5881
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5882
5882
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5883
5883
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
|
5902
5902
|
actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
|
|
5903
5903
|
};
|
|
5904
5904
|
const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
|
|
5905
|
-
${
|
|
5905
|
+
${_chunk5LHXOIPTjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5906
5906
|
const notes = rows.flatMap(
|
|
5907
5907
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5908
5908
|
);
|
|
@@ -5997,7 +5997,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5997
5997
|
console.error("--summary-width must be an integer of at least 2.");
|
|
5998
5998
|
return 1;
|
|
5999
5999
|
}
|
|
6000
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
6000
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkSKU6ECIYjs.DeeplineClient)().search({
|
|
6001
6001
|
query,
|
|
6002
6002
|
types,
|
|
6003
6003
|
exclude,
|
|
@@ -6011,7 +6011,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
6011
6011
|
});
|
|
6012
6012
|
if (searchRef) rememberSearchRef(searchRef);
|
|
6013
6013
|
pointAtDescribe(result);
|
|
6014
|
-
|
|
6014
|
+
_chunk5LHXOIPTjs.printCommandEnvelope.call(void 0, result, {
|
|
6015
6015
|
json: options.json === true,
|
|
6016
6016
|
text: renderSearchResults(result, summaryWidth)
|
|
6017
6017
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RD6IQ2JY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-F2RHUPVH.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunkYGGIZ3VTjs = require('./chunk-YGGIZ3VT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkYGGIZ3VTjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkYGGIZ3VTjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTIRBDQ3Wjs = require('./chunk-TIRBDQ3W.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkWUZS2HK6js = require('./chunk-WUZS2HK6.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk5LHXOIPTjs = require('./chunk-5LHXOIPT.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkBGNWI3KHjs = require('./chunk-BGNWI3KH.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkYGGIZ3VTjs = require('./chunk-YGGIZ3VT.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
44
44
|
async function reportAutoUpdateEvent(input) {
|
|
45
45
|
let apiKey = "";
|
|
46
46
|
try {
|
|
47
|
-
apiKey =
|
|
47
|
+
apiKey = _chunkBGNWI3KHjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
48
48
|
} catch (e2) {
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
60
60
|
headers: {
|
|
61
61
|
Authorization: `Bearer ${apiKey}`,
|
|
62
62
|
"Content-Type": "application/json",
|
|
63
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
63
|
+
"User-Agent": `deepline-ts-sdk/${_chunkYGGIZ3VTjs.SDK_VERSION}`,
|
|
64
64
|
"X-Deepline-Client-Family": "sdk",
|
|
65
65
|
"X-Deepline-CLI-Family": "sdk",
|
|
66
|
-
"X-Deepline-CLI-Version":
|
|
67
|
-
"X-Deepline-SDK-Version":
|
|
66
|
+
"X-Deepline-CLI-Version": _chunkYGGIZ3VTjs.SDK_VERSION,
|
|
67
|
+
"X-Deepline-SDK-Version": _chunkYGGIZ3VTjs.SDK_VERSION
|
|
68
68
|
},
|
|
69
69
|
body: JSON.stringify({
|
|
70
70
|
event: input.event,
|
|
71
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
71
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkYGGIZ3VTjs.SDK_VERSION,
|
|
72
72
|
target_version: input.response.latest,
|
|
73
73
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
74
74
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -87,13 +87,13 @@ function envTruthy(name) {
|
|
|
87
87
|
return value === "1" || value === "true" || value === "yes";
|
|
88
88
|
}
|
|
89
89
|
function shouldSkipSelfUpdate(policy) {
|
|
90
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
90
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkTIRBDQ3Wjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkWUZS2HK6js.isCiEnvironment.call(void 0, );
|
|
91
91
|
}
|
|
92
92
|
function isDowngradeAutoUpdateResponse(response) {
|
|
93
93
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
94
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
94
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkYGGIZ3VTjs.SDK_VERSION;
|
|
95
95
|
if (!target) return false;
|
|
96
|
-
return
|
|
96
|
+
return _chunkTIRBDQ3Wjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
97
97
|
}
|
|
98
98
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
99
99
|
return new Promise((resolve) => {
|
|
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
146
146
|
}
|
|
147
147
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
148
148
|
const target = response.latest;
|
|
149
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
149
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkYGGIZ3VTjs.SDK_VERSION;
|
|
150
150
|
process.stderr.write(
|
|
151
151
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
152
152
|
`
|
|
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
154
154
|
return false;
|
|
155
155
|
}
|
|
156
156
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
157
|
-
const plan =
|
|
157
|
+
const plan = _chunkTIRBDQ3Wjs.resolveUpdatePlan.call(void 0, {
|
|
158
158
|
packageSpec,
|
|
159
159
|
requireVerifiedNpmOwnership: true,
|
|
160
160
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
161
161
|
});
|
|
162
|
-
if (!
|
|
162
|
+
if (!_chunkTIRBDQ3Wjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
165
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
166
166
|
deferredAutoUpdate = async () => {
|
|
167
167
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
168
168
|
};
|
|
169
|
-
if (
|
|
169
|
+
if (_chunk5LHXOIPTjs.isJsonOutputMode.call(void 0, )) {
|
|
170
170
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
171
|
-
|
|
171
|
+
_chunk5LHXOIPTjs.addJsonNotice.call(void 0, {
|
|
172
172
|
code: "sdk_update_queued",
|
|
173
173
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
174
174
|
});
|
|
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
183
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
184
|
-
if (!
|
|
184
|
+
if (!_chunkTIRBDQ3Wjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
185
185
|
const autoUpdate = response.auto_update;
|
|
186
186
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
187
187
|
process.stderr.write(
|
|
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
194
194
|
event: "started",
|
|
195
195
|
installKind: plan.kind
|
|
196
196
|
});
|
|
197
|
-
const updateResult = await
|
|
197
|
+
const updateResult = await _chunkTIRBDQ3Wjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
198
198
|
if (updateResult.status === "skipped_previous_failure") {
|
|
199
199
|
void reportAutoUpdateEvent({
|
|
200
200
|
baseUrl,
|
|
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
|
|
|
245
245
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
246
246
|
var activeToolExecuteCommand = null;
|
|
247
247
|
function progressLine(line) {
|
|
248
|
-
if (!
|
|
248
|
+
if (!_chunk5LHXOIPTjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
249
249
|
}
|
|
250
250
|
function beginToolExecuteCommand() {
|
|
251
251
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LYFKBLJI.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-GUT7CLOL.mjs";
|
|
10
10
|
import {
|
|
11
11
|
arrayField,
|
|
12
12
|
formatModelDescription,
|
|
@@ -48,10 +48,10 @@ import {
|
|
|
48
48
|
} from "./chunk-FIVKWNMT.mjs";
|
|
49
49
|
import {
|
|
50
50
|
DeeplineClient
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-NTLI6P6Y.mjs";
|
|
52
52
|
import {
|
|
53
53
|
validateExecutionIdempotencyKey
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-RD6IQ2JY.mjs";
|
|
55
55
|
import {
|
|
56
56
|
stableStringify
|
|
57
57
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -61,18 +61,18 @@ import {
|
|
|
61
61
|
maybeAutoUpdateAndRelaunch,
|
|
62
62
|
registerCompatibilityCatalog,
|
|
63
63
|
runToolExecuteStage
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-S4XQCFES.mjs";
|
|
65
65
|
import {
|
|
66
66
|
isCliTraceEnabled,
|
|
67
67
|
recordCliTrace,
|
|
68
68
|
resolveCliMaintenancePolicy
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-C25QE4CH.mjs";
|
|
70
70
|
import {
|
|
71
71
|
checkSdkCompatibility,
|
|
72
72
|
enforceSdkCompatibilityResponse,
|
|
73
73
|
flushDeferredSkillsSyncNotices,
|
|
74
74
|
syncSdkSkillsIfNeeded
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-UIURR26V.mjs";
|
|
76
76
|
import {
|
|
77
77
|
printCommandEnvelope,
|
|
78
78
|
printCompactJson,
|
|
@@ -80,12 +80,12 @@ import {
|
|
|
80
80
|
printJsonError,
|
|
81
81
|
renderCommandEnvelopeText,
|
|
82
82
|
shouldEmitJson
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-WUMIYOXQ.mjs";
|
|
84
84
|
import {
|
|
85
85
|
readSdkSkillsLocalVersion,
|
|
86
86
|
resolveConfig,
|
|
87
87
|
sdkCliStateDirPath
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-F2RHUPVH.mjs";
|
|
89
89
|
import {
|
|
90
90
|
DeeplineError
|
|
91
91
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1038,7 +1038,7 @@ Examples:
|
|
|
1038
1038
|
process.exitCode = await narrowView();
|
|
1039
1039
|
return;
|
|
1040
1040
|
}
|
|
1041
|
-
const { describeAnything } = await import("./describe-
|
|
1041
|
+
const { describeAnything } = await import("./describe-PNDQB7YS.mjs");
|
|
1042
1042
|
process.exitCode = await describeAnything(
|
|
1043
1043
|
toolId,
|
|
1044
1044
|
{
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WUMIYOXQ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,12 +22,12 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-F2RHUPVH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
detectAgentRuntime
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-I624J4H5.mjs";
|
|
31
31
|
|
|
32
32
|
// src/cli/commands/auth.ts
|
|
33
33
|
import {
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk5LHXOIPTjs = require('./chunk-5LHXOIPT.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunk5LHXOIPTjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./chunk-LJ5747UC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NTLI6P6Y.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope,
|
|
9
9
|
renderCommandEnvelopeText
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WUMIYOXQ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
resolveConfig,
|
|
13
13
|
sdkCliStateDirPath
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-F2RHUPVH.mjs";
|
|
15
15
|
import {
|
|
16
16
|
__commonJS,
|
|
17
17
|
__toESM
|