deepline 0.3.521 → 0.3.522
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/durable-runs-rollout.ts +8 -1
- package/dist/cli/{artifacts-JGH464N2.js → artifacts-GIZZH5VA.js} +18 -18
- package/dist/cli/{artifacts-TYPU37IU.mjs → artifacts-RY2MK74N.mjs} +6 -6
- package/dist/cli/auth-JSES2JOQ.js +43 -0
- package/dist/cli/{auth-XPQT6NUB.mjs → auth-YIBY5IKT.mjs} +5 -5
- package/dist/cli/{billing-47AMHOMP.mjs → billing-G3IX3SNY.mjs} +6 -6
- package/dist/cli/{billing-6D4KXBFJ.js → billing-UDKL53GI.js} +79 -79
- package/dist/cli/{chunk-PUKWFJXW.js → chunk-37SXIFIU.js} +44 -44
- package/dist/cli/{chunk-LNBMEFOI.mjs → chunk-3KMGVOBM.mjs} +4 -4
- package/dist/cli/{chunk-DY6634MN.js → chunk-4DFWDA2Q.js} +9 -9
- package/dist/cli/{chunk-QGTWGHYD.js → chunk-4MF44THR.js} +7 -7
- package/dist/cli/{chunk-A6USUS4L.mjs → chunk-4TUMKJZX.mjs} +2 -2
- package/dist/cli/{chunk-5T7QKHQL.mjs → chunk-52MHE7B4.mjs} +1 -1
- package/dist/cli/{chunk-MRU4N33M.js → chunk-534YYHIF.js} +6 -6
- package/dist/cli/{chunk-DQURY3WH.mjs → chunk-5477PEHL.mjs} +1 -1
- package/dist/cli/{chunk-WL6WPW6X.js → chunk-5BQPEHEP.js} +14 -14
- package/dist/cli/{chunk-MD43YAL6.js → chunk-5H22VJPE.js} +6 -6
- package/dist/cli/{chunk-6N72GHAV.js → chunk-6SJPZV5E.js} +2 -2
- package/dist/cli/{chunk-7LRALARF.mjs → chunk-7J5PLHII.mjs} +1 -1
- package/dist/cli/{chunk-UAZKOH3J.js → chunk-7JEN3FX4.js} +5 -5
- package/dist/cli/{chunk-Y7IR4LBU.mjs → chunk-BONXEWYF.mjs} +3 -3
- package/dist/cli/{chunk-EW3EAEWZ.js → chunk-BZY335JP.js} +5 -5
- package/dist/cli/{chunk-CBBCUYIN.mjs → chunk-C6WGMODR.mjs} +2 -2
- package/dist/cli/{chunk-4I7I5CGB.mjs → chunk-CFXERH7F.mjs} +1 -1
- package/dist/cli/{chunk-4MN65FRF.js → chunk-DARD7TJ7.js} +53 -53
- package/dist/cli/{chunk-HSFLMTED.js → chunk-DLDWAPA5.js} +4 -4
- package/dist/cli/{chunk-FTZX4QZN.js → chunk-DNJJ3ULJ.js} +2 -2
- package/dist/cli/{chunk-HD3KYCDC.js → chunk-DRDZBRXV.js} +7 -7
- package/dist/cli/{chunk-LGU2NIOT.js → chunk-EJBW7Y6Z.js} +96 -96
- package/dist/cli/{chunk-NNDAVVBG.mjs → chunk-ENWJFUWK.mjs} +2 -2
- package/dist/cli/{chunk-ULW2KBKL.js → chunk-F5D623KO.js} +26 -26
- package/dist/cli/{chunk-3Q7HEEH2.js → chunk-FNHUDCJE.js} +10 -10
- package/dist/cli/{chunk-E4ZS2B2J.mjs → chunk-FQQAAR3Q.mjs} +1 -1
- package/dist/cli/{chunk-7IYDCHTG.mjs → chunk-G65FJ5JX.mjs} +2 -2
- package/dist/cli/{chunk-EILHJRPW.js → chunk-GMYDVW7Z.js} +3 -3
- package/dist/cli/{chunk-VYY5V4M5.js → chunk-GVKW3LCA.js} +11 -11
- package/dist/cli/{chunk-VSH3AE5E.js → chunk-ISUUSSS4.js} +16 -16
- package/dist/cli/{chunk-JFQJNYTB.js → chunk-KMBF3N2Z.js} +16 -16
- package/dist/cli/{chunk-A2B5AAU3.mjs → chunk-LFSOBW7E.mjs} +10 -10
- package/dist/cli/{chunk-TBIWR7M2.mjs → chunk-MD524MRB.mjs} +1 -1
- package/dist/cli/{chunk-EZNZDOAG.mjs → chunk-NDNG3MAT.mjs} +5 -5
- package/dist/cli/{chunk-4DB6JV7X.mjs → chunk-OAQIVJFY.mjs} +2 -2
- package/dist/cli/{chunk-HHBJJYKL.mjs → chunk-PDLRUZ42.mjs} +5 -5
- package/dist/cli/{chunk-4GGXAYKI.mjs → chunk-RDJTCW3I.mjs} +3 -3
- package/dist/cli/{chunk-AMVKLEPH.js → chunk-RI672VNY.js} +2 -2
- package/dist/cli/{chunk-2DQPB5HT.mjs → chunk-RKE5YTHY.mjs} +5 -5
- package/dist/cli/{chunk-FQJFONFT.mjs → chunk-SFMCKB57.mjs} +1 -1
- package/dist/cli/{chunk-7AUXX6M5.mjs → chunk-UV6XCHOZ.mjs} +1 -1
- package/dist/cli/{chunk-4MONKWYE.mjs → chunk-VFCVH2LV.mjs} +5 -5
- package/dist/cli/{chunk-Y23TOHNV.js → chunk-VIM6I7RC.js} +41 -41
- package/dist/cli/{chunk-ZO2XJVFH.mjs → chunk-XR6TN5DT.mjs} +6 -6
- package/dist/cli/{chunk-6DCBTJZP.js → chunk-XT25FX6T.js} +3 -3
- package/dist/cli/{chunk-6UHYXNCP.mjs → chunk-XXY4E57R.mjs} +2 -2
- package/dist/cli/{chunk-6V2RI3AL.mjs → chunk-Y3LDRCMB.mjs} +2 -2
- package/dist/cli/{chunk-GNYSODBR.js → chunk-ZUAKRBZB.js} +1 -1
- package/dist/cli/{chunk-HRWVEIAX.mjs → chunk-ZZ7U4YJS.mjs} +1 -1
- package/dist/cli/{chunk-YROP3H6T.js → chunk-ZZLZCO6Y.js} +22 -22
- package/dist/cli/{csv-5TM2OSYP.js → csv-3HIE4VCO.js} +13 -13
- package/dist/cli/{csv-PM3WDXDF.mjs → csv-PE35WGRO.mjs} +4 -4
- package/dist/cli/{db-5P72NPRL.mjs → db-L7ZMMQKW.mjs} +6 -6
- package/dist/cli/{db-3LJ32FZM.js → db-O2YRTTDO.js} +27 -27
- package/dist/cli/describe-EB336DAO.js +50 -0
- package/dist/cli/{describe-ZLCMBGHG.mjs → describe-NI324Y2M.mjs} +18 -18
- package/dist/cli/{executions-JMFL6AV7.mjs → executions-T6KU2OKK.mjs} +6 -6
- package/dist/cli/{executions-4AJ5TQVY.js → executions-VH4DKLFI.js} +8 -8
- package/dist/cli/{feedback-DKMG2QB7.mjs → feedback-SCSJC3FX.mjs} +5 -5
- package/dist/cli/{feedback-I2BLXMGH.js → feedback-ZLC6G5OK.js} +10 -10
- package/dist/cli/git-23T7TXAH.js +25 -0
- package/dist/cli/{git-ARG223MY.mjs → git-I4LVQCID.mjs} +5 -5
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-24LOAOZN.mjs → legacy-noops-44FQ2256.mjs} +6 -6
- package/dist/cli/{legacy-noops-N7SVA7PL.js → legacy-noops-UPFWEHPG.js} +9 -9
- package/dist/cli/{monitors-XNCYLOJM.js → monitors-JN6IQGK6.js} +100 -100
- package/dist/cli/{monitors-RYQFWM2T.mjs → monitors-LMSASWXE.mjs} +7 -7
- package/dist/cli/{org-I33TKZXF.js → org-F7O3ZU5O.js} +72 -72
- package/dist/cli/{org-ORIH56E5.mjs → org-QYLVEE7A.mjs} +6 -6
- package/dist/cli/{pages-ME43HSBL.mjs → pages-5XE4LBZN.mjs} +6 -6
- package/dist/cli/{pages-2UXXGIMF.js → pages-KEL3Y4L4.js} +18 -18
- package/dist/cli/{play-XEKNY46M.mjs → play-MWQG3G32.mjs} +18 -18
- package/dist/cli/{play-F4QOFU37.js → play-OURHH6KV.js} +317 -317
- package/dist/cli/{providers-XKU44G74.mjs → providers-IQY7LUBB.mjs} +6 -6
- package/dist/cli/{providers-E7DPCBNX.js → providers-ZCBWPE3C.js} +9 -9
- package/dist/cli/{quickstart-J7NVEXV5.mjs → quickstart-L45NGRMI.mjs} +4 -4
- package/dist/cli/{quickstart-ICLF2F6A.js → quickstart-O53OXTN6.js} +6 -6
- package/dist/cli/{run-MQ5ZONGL.mjs → run-VCSIWLEU.mjs} +23 -23
- package/dist/cli/{run-HJMHUQBN.js → run-W745Z3Z5.js} +41 -41
- package/dist/cli/search-R6K7ZAMU.js +33 -0
- package/dist/cli/{search-GGRC77CV.mjs → search-THELKULN.mjs} +8 -8
- package/dist/cli/{search-output-NY4GDBRU.mjs → search-output-N7MJLYYD.mjs} +4 -4
- package/dist/cli/{search-output-MXZTZI2P.js → search-output-SJW7LEOM.js} +6 -6
- package/dist/cli/{secrets-FA37G4Q2.mjs → secrets-44ST3FJH.mjs} +6 -6
- package/dist/cli/{secrets-PFESG72B.js → secrets-GDXPX3KB.js} +15 -15
- package/dist/cli/sessions-2V5ZFOWL.js +18 -0
- package/dist/cli/{sessions-BLLXPETU.mjs → sessions-LYCBI77S.mjs} +6 -6
- package/dist/cli/{settings-32VPG4Z2.js → settings-3WOFF642.js} +86 -86
- package/dist/cli/{settings-U26S7MPH.mjs → settings-GXPDMJFG.mjs} +13 -13
- package/dist/cli/{setup-R6NSENH7.js → setup-YHLMBJP4.js} +50 -50
- package/dist/cli/{setup-4AXBCX7C.mjs → setup-YM6JEB64.mjs} +10 -10
- package/dist/cli/{skills-JUH7AVUL.mjs → skills-WX4XWEAT.mjs} +8 -8
- package/dist/cli/skills-XNGADDO6.js +37 -0
- package/dist/cli/{tools-FOYLU3FH.mjs → tools-K24VSQ7S.mjs} +17 -17
- package/dist/cli/tools-ROUMCB7B.js +57 -0
- package/dist/cli/{update-FUVX22VM.mjs → update-PSSCF5AT.mjs} +10 -10
- package/dist/cli/update-RXURGIRW.js +35 -0
- package/dist/cli/{workflow-QLT22BLT.mjs → workflow-DGOPYATO.mjs} +7 -7
- package/dist/cli/{workflow-JACZW4GJ.js → workflow-FPVI3NIA.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +104 -104
- 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-JWR3VSNT.js +0 -43
- package/dist/cli/describe-GRS3IRSX.js +0 -50
- package/dist/cli/git-2LNT43A2.js +0 -25
- package/dist/cli/search-V6IBJ4TX.js +0 -33
- package/dist/cli/sessions-DNFTQOQH.js +0 -18
- package/dist/cli/skills-G4ZE3OS5.js +0 -37
- package/dist/cli/tools-27LHZFJD.js +0 -57
- package/dist/cli/update-KNZ7N242.js +0 -35
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SFMCKB57.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5477PEHL.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGMYDVW7Zjs = require('./chunk-GMYDVW7Z.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 } = _chunkDRDZBRXVjs.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
|
+
_chunkDRDZBRXVjs.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 } = _chunkDRDZBRXVjs.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
|
+
_chunkDRDZBRXVjs.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 } = _chunkDRDZBRXVjs.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
|
+
_chunkDRDZBRXVjs.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 } = _chunkDRDZBRXVjs.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 } = _chunkDRDZBRXVjs.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
|
+
_chunkDRDZBRXVjs.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 } = _chunkDRDZBRXVjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkDRDZBRXVjs.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 } = _chunkDRDZBRXVjs.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
|
+
_chunkDRDZBRXVjs.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 } = _chunkDRDZBRXVjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkDRDZBRXVjs.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 = _chunkGMYDVW7Zjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkDRDZBRXVjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkDRDZBRXVjs.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 } = _chunkDRDZBRXVjs.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
|
+
_chunkDRDZBRXVjs.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 } = _chunkDRDZBRXVjs.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
|
+
_chunkDRDZBRXVjs.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 } = _chunkDRDZBRXVjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkRI672VNYjs = require('./chunk-RI672VNY.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkDLDWAPA5js = require('./chunk-DLDWAPA5.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/commands/sessions.ts
|
|
13
13
|
|
|
@@ -142,7 +142,7 @@ function currentSessionFile(agent) {
|
|
|
142
142
|
const newestFirst = listSessionFiles(agent).sort(
|
|
143
143
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
144
144
|
);
|
|
145
|
-
const sessionId =
|
|
145
|
+
const sessionId = _chunkDLDWAPA5js.agentSessionIdFromEnvironment.call(void 0,
|
|
146
146
|
process.env,
|
|
147
147
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
148
148
|
);
|
|
@@ -454,7 +454,7 @@ function buildSessionUploadContent(raw) {
|
|
|
454
454
|
return { encodedContent: encoded, needsChunking: true };
|
|
455
455
|
}
|
|
456
456
|
async function uploadPayload(path, payload) {
|
|
457
|
-
const { http } =
|
|
457
|
+
const { http } = _chunkDRDZBRXVjs.getAuthedHttpClient.call(void 0, );
|
|
458
458
|
return await http.post(path, payload);
|
|
459
459
|
}
|
|
460
460
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -487,7 +487,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
487
487
|
...options.rating ? { rating: options.rating } : {}
|
|
488
488
|
});
|
|
489
489
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
490
|
-
|
|
490
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
|
|
491
491
|
{
|
|
492
492
|
...response,
|
|
493
493
|
ok: true,
|
|
@@ -508,7 +508,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
510
|
async function handleSessionsSend(options) {
|
|
511
|
-
if (
|
|
511
|
+
if (_chunkRI672VNYjs.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
512
512
|
const rating = parseSessionRating(options.rating);
|
|
513
513
|
if (options.file) {
|
|
514
514
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -520,7 +520,7 @@ async function handleSessionsSend(options) {
|
|
|
520
520
|
filename: _path.basename.call(void 0, filePath),
|
|
521
521
|
...rating ? { rating } : {}
|
|
522
522
|
});
|
|
523
|
-
|
|
523
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
|
|
524
524
|
{
|
|
525
525
|
...response2,
|
|
526
526
|
ok: true,
|
|
@@ -570,7 +570,7 @@ async function handleSessionsSend(options) {
|
|
|
570
570
|
...rating ? { rating } : {}
|
|
571
571
|
});
|
|
572
572
|
const sessionIds = built.map((session) => session.sessionId);
|
|
573
|
-
|
|
573
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
|
|
574
574
|
{
|
|
575
575
|
...response,
|
|
576
576
|
ok: true,
|
|
@@ -678,7 +678,7 @@ ${refreshMeta}
|
|
|
678
678
|
</body>
|
|
679
679
|
</html>`;
|
|
680
680
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
681
|
-
|
|
681
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
|
|
682
682
|
{
|
|
683
683
|
ok: true,
|
|
684
684
|
file: outputPath,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SFMCKB57.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5477PEHL.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -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 _chunkDLDWAPA5js = require('./chunk-DLDWAPA5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkDLDWAPA5js.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 _chunkDLDWAPA5js.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk7JEN3FX4js = require('./chunk-7JEN3FX4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunk5BQPEHEPjs = require('./chunk-5BQPEHEP.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkGMYDVW7Zjs = require('./chunk-GMYDVW7Z.js');
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
var _commander = require('commander');
|
|
@@ -24,7 +24,7 @@ var _fs = require('fs');
|
|
|
24
24
|
var _path = require('path');
|
|
25
25
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
26
26
|
function lastSearchPath() {
|
|
27
|
-
return _path.join.call(void 0,
|
|
27
|
+
return _path.join.call(void 0, _chunkGMYDVW7Zjs.sdkCliStateDirPath.call(void 0, _chunkGMYDVW7Zjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
28
28
|
}
|
|
29
29
|
function rememberSearchRef(searchRef) {
|
|
30
30
|
writeSearchRefs({ searchRef });
|
|
@@ -134,9 +134,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
console.error("--summary-width must be an integer of at least 2.");
|
|
135
135
|
return 1;
|
|
136
136
|
}
|
|
137
|
-
const client = new (0,
|
|
137
|
+
const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-SJW7LEOM.js")));
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -159,7 +159,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
159
159
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
160
160
|
if (!multiple) {
|
|
161
161
|
if (searchRef) rememberSearchRef(searchRef);
|
|
162
|
-
|
|
162
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, result, { json, text });
|
|
163
163
|
return 0;
|
|
164
164
|
}
|
|
165
165
|
searches.push({ ...result, query });
|
|
@@ -173,8 +173,8 @@ ${text}`);
|
|
|
173
173
|
}
|
|
174
174
|
} catch (error) {
|
|
175
175
|
if (!multiple) throw error;
|
|
176
|
-
const payload =
|
|
177
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
176
|
+
const payload = _chunkDRDZBRXVjs.errorToJsonPayload.call(void 0, error);
|
|
177
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunk5BQPEHEPjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
178
178
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
179
179
|
if (!json) {
|
|
180
180
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -186,7 +186,7 @@ Search failed.
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
rememberSearchRefsByTool(refs);
|
|
189
|
-
|
|
189
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
|
|
190
190
|
{ searches },
|
|
191
191
|
{
|
|
192
192
|
json,
|
|
@@ -1,19 +1,19 @@
|
|
|
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 _chunk6SJPZV5Ejs = require('./chunk-6SJPZV5E.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkVIM6I7RCjs = require('./chunk-VIM6I7RC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk37SXIFIUjs = require('./chunk-37SXIFIU.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkGMYDVW7Zjs = require('./chunk-GMYDVW7Z.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunk37SXIFIUjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunk6SJPZV5Ejs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunk6SJPZV5Ejs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkGMYDVW7Zjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunk37SXIFIUjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkGMYDVW7Zjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkVIM6I7RCjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkEJBW7Y6Zjs = require('./chunk-EJBW7Y6Z.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5H22VJPEjs = require('./chunk-5H22VJPE.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,18 +14,18 @@ var _chunkRVHUW4TNjs = require('./chunk-RVHUW4TN.js');
|
|
|
14
14
|
var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk7JEN3FX4js = require('./chunk-7JEN3FX4.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk5BQPEHEPjs = require('./chunk-5BQPEHEP.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkDRDZBRXVjs = require('./chunk-DRDZBRXV.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkGMYDVW7Zjs = require('./chunk-GMYDVW7Z.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
var _fs = require('fs');
|
|
@@ -34,14 +34,14 @@ var _path = require('path');
|
|
|
34
34
|
// src/cli/doc-read-reporting.ts
|
|
35
35
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
36
36
|
async function reportDocRead(docId) {
|
|
37
|
-
if (
|
|
37
|
+
if (_chunk5BQPEHEPjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
38
38
|
try {
|
|
39
|
-
const baseUrl =
|
|
40
|
-
const apiKey =
|
|
39
|
+
const baseUrl = _chunkGMYDVW7Zjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
40
|
+
const apiKey = _chunkGMYDVW7Zjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
41
41
|
if (!apiKey) return;
|
|
42
42
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
43
43
|
method: "POST",
|
|
44
|
-
headers:
|
|
44
|
+
headers: _chunk5BQPEHEPjs.failureReportHeaders.call(void 0, apiKey),
|
|
45
45
|
body: JSON.stringify({ doc_id: docId }),
|
|
46
46
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
47
47
|
});
|
|
@@ -54,16 +54,16 @@ function nothingNamed(name) {
|
|
|
54
54
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
55
55
|
}
|
|
56
56
|
function findNamed2(name, options) {
|
|
57
|
-
return _chunkRVHUW4TNjs.findNamed.call(void 0, name, options, _chunkRVHUW4TNjs.describeLookupsFor.call(void 0, new (0,
|
|
57
|
+
return _chunkRVHUW4TNjs.findNamed.call(void 0, name, options, _chunkRVHUW4TNjs.describeLookupsFor.call(void 0, new (0, _chunk7JEN3FX4js.DeeplineClient)()));
|
|
58
58
|
}
|
|
59
59
|
async function describeAnything(name, options, onMissing) {
|
|
60
|
-
const client = new (0,
|
|
60
|
+
const client = new (0, _chunk7JEN3FX4js.DeeplineClient)();
|
|
61
61
|
const lookups = _chunkRVHUW4TNjs.describeLookupsFor.call(void 0, client);
|
|
62
62
|
const outcome = await _chunkRVHUW4TNjs.describeName.call(void 0, name, options, {
|
|
63
63
|
...lookups,
|
|
64
64
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
65
65
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
66
|
-
seedStarterScript:
|
|
66
|
+
seedStarterScript: _chunkEJBW7Y6Zjs.seedToolListScript
|
|
67
67
|
});
|
|
68
68
|
if (outcome.status === "missing") {
|
|
69
69
|
if (onMissing) return onMissing();
|
|
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
89
89
|
` : text;
|
|
90
90
|
_fs.writeFileSync.call(void 0, path, content);
|
|
91
91
|
const bytes = Buffer.byteLength(content);
|
|
92
|
-
|
|
92
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0,
|
|
93
93
|
{ path, bytes },
|
|
94
94
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
95
95
|
` }
|
|
96
96
|
);
|
|
97
97
|
return 0;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
_chunkDRDZBRXVjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
100
100
|
return 0;
|
|
101
101
|
}
|
|
102
102
|
function registerDescribeCommand(program) {
|
|
103
|
-
|
|
103
|
+
_chunk5H22VJPEjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
104
104
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
105
105
|
).addHelpText(
|
|
106
106
|
"after",
|