deepline 0.3.489 → 0.3.491
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/client-core.ts +6 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +4 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/direct-admission-deadline.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +10 -0
- package/dist/cli/{auth-5RIU6GT7.mjs → auth-FXAC472Y.mjs} +5 -5
- package/dist/cli/auth-QIDL3YCW.js +43 -0
- package/dist/cli/{billing-T5MAGF25.js → billing-PDOA3KZ3.js} +79 -79
- package/dist/cli/{billing-T4TMPRFS.mjs → billing-UM4LE33K.mjs} +6 -6
- package/dist/cli/{chunk-SZHNIKTR.js → chunk-27MRSV6O.js} +26 -26
- package/dist/cli/{chunk-NBHCEVWY.mjs → chunk-2MW6TGNZ.mjs} +4 -4
- package/dist/cli/{chunk-FL7NHJTS.js → chunk-3FMU6F6E.js} +15 -15
- package/dist/cli/{chunk-TMQ3PCSY.mjs → chunk-3K4IAV7I.mjs} +2 -2
- package/dist/cli/{chunk-LMUOUIBV.mjs → chunk-3WRWPNHE.mjs} +5 -5
- package/dist/cli/{chunk-IAYSWZDJ.js → chunk-4IP5MLWU.js} +1 -1
- package/dist/cli/{chunk-6V7KVRR5.js → chunk-4OLXMJ2L.js} +13 -2
- package/dist/cli/{chunk-WIKIF67Q.js → chunk-5KMGKG4B.js} +8 -8
- package/dist/cli/{chunk-WRJ6MEY5.mjs → chunk-6PMM7VJN.mjs} +1 -1
- package/dist/cli/{chunk-GW6HV7Z7.js → chunk-6UARNRXT.js} +7 -7
- package/dist/cli/{chunk-UYZNRLDE.js → chunk-74H5OTRM.js} +1 -1
- package/dist/cli/{chunk-K2RUSHZ7.js → chunk-AEKJZJ4R.js} +4 -4
- package/dist/cli/{chunk-F3TDT57M.js → chunk-B2TXKEED.js} +5 -5
- package/dist/cli/{chunk-RI2PLVD4.js → chunk-BCKIBVEJ.js} +7 -7
- package/dist/cli/{chunk-S5PMBDY6.mjs → chunk-CFPFTS3A.mjs} +12 -12
- package/dist/cli/{chunk-J7EENGKJ.mjs → chunk-CGDUFVNE.mjs} +2 -2
- package/dist/cli/{chunk-S4F2R2LO.js → chunk-CRBBGKRH.js} +9 -9
- package/dist/cli/{chunk-JVHOS3K3.mjs → chunk-DEJIN4DF.mjs} +1 -1
- package/dist/cli/{chunk-FH7ZABHW.js → chunk-DUFRH43S.js} +261 -261
- package/dist/cli/{chunk-H66YVVT7.mjs → chunk-EPD7NSDJ.mjs} +2 -2
- package/dist/cli/{chunk-INW22YP7.mjs → chunk-FTXIJTV2.mjs} +3 -5
- package/dist/cli/{chunk-G7POOFBJ.mjs → chunk-H6UIS36S.mjs} +2 -2
- package/dist/cli/{chunk-CSBMKHTV.js → chunk-HHTVRICE.js} +17 -17
- package/dist/cli/{chunk-YSB44HZB.js → chunk-HNG2U3IG.js} +2 -2
- package/dist/cli/{chunk-L2GMFNAO.mjs → chunk-HSJK6EMU.mjs} +3 -3
- package/dist/cli/{chunk-R23HZ6AV.js → chunk-I64PYCTB.js} +2 -2
- package/dist/cli/{chunk-5DEJ3TLB.js → chunk-IG3GSBBE.js} +122 -119
- package/dist/cli/{chunk-C55LNEUF.mjs → chunk-IIO7UOVW.mjs} +5 -2
- package/dist/cli/{chunk-QJ4FWKUU.mjs → chunk-KGJVDR4Q.mjs} +2 -2
- package/dist/cli/{chunk-3S5VBG6Z.mjs → chunk-LMG7O6XJ.mjs} +2 -2
- package/dist/cli/{chunk-RACN23LT.mjs → chunk-MAM6ZOVS.mjs} +18 -4
- package/dist/cli/{chunk-VP65YKOA.js → chunk-MN6DCV63.js} +5 -5
- package/dist/cli/{chunk-7R243PYK.mjs → chunk-NUOKAKZW.mjs} +1 -1
- package/dist/cli/{chunk-ZICPJKMP.mjs → chunk-OLHWZM4A.mjs} +5 -5
- package/dist/cli/{chunk-6PHHQDM6.mjs → chunk-ORKLMANE.mjs} +1 -1
- package/dist/cli/{chunk-4GWEZPZR.mjs → chunk-OYJTLEB4.mjs} +1 -1
- package/dist/cli/{chunk-2QUROYZU.mjs → chunk-PIPEPCRL.mjs} +1 -1
- package/dist/cli/{chunk-FNKSRKTA.js → chunk-Q7G7CU4W.js} +3 -3
- package/dist/cli/{chunk-35N4S2E6.mjs → chunk-QBOE5LEH.mjs} +1 -1
- package/dist/cli/{chunk-FFDWL5N2.js → chunk-RFSXXDH7.js} +16 -16
- package/dist/cli/{chunk-DHAJSTSH.mjs → chunk-S4CYM4EC.mjs} +6 -6
- package/dist/cli/{chunk-UI67QLIR.js → chunk-SJOHQ2WW.js} +53 -53
- package/dist/cli/{chunk-I4NWMPT3.js → chunk-SUMKWA53.js} +53 -53
- package/dist/cli/{chunk-6FMP5XRF.js → chunk-TH7JLR5D.js} +6 -6
- package/dist/cli/{chunk-Q2EIZKVX.mjs → chunk-TKLDKIJU.mjs} +12 -1
- package/dist/cli/{chunk-DY7T6VNT.js → chunk-TMAS3WH3.js} +21 -21
- package/dist/cli/{chunk-Y3SG26KP.mjs → chunk-VC3SH4QW.mjs} +4 -4
- package/dist/cli/{chunk-OTQ2CO6M.mjs → chunk-WCWVXN3R.mjs} +2 -2
- package/dist/cli/{chunk-YEX3VNAY.mjs → chunk-X75ONMDJ.mjs} +2 -2
- package/dist/cli/{chunk-4EFD6R2V.js → chunk-X7YOVJBC.js} +52 -38
- package/dist/cli/{chunk-LOX3BISD.js → chunk-YNWET57Z.js} +9 -11
- package/dist/cli/{chunk-QXWE6PHI.mjs → chunk-YV4DP6KQ.mjs} +2 -2
- package/dist/cli/{chunk-UZ7VPOTA.js → chunk-ZEZ3CZ3X.js} +3 -3
- package/dist/cli/{chunk-LM5UIDFA.js → chunk-ZX2FXZJN.js} +7 -7
- package/dist/cli/{csv-XTKN255I.js → csv-IGPAPAES.js} +13 -13
- package/dist/cli/{csv-WAD54M7T.mjs → csv-RNMQHECI.mjs} +4 -4
- package/dist/cli/{db-TTS6Y4FI.js → db-32OXM3TO.js} +27 -27
- package/dist/cli/{db-2ELZMJFC.mjs → db-CKMVVGXJ.mjs} +6 -6
- package/dist/cli/describe-67GMIEIO.js +50 -0
- package/dist/cli/{describe-Z7GWMGKU.mjs → describe-QR7I3VOF.mjs} +21 -20
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-WUBVVJXN.js → executions-PCZS7B2M.js} +8 -8
- package/dist/cli/{executions-2TQH54AB.mjs → executions-S4M4JMCU.mjs} +6 -6
- package/dist/cli/{feedback-6KAY4LE6.js → feedback-6EGKPZ3U.js} +8 -8
- package/dist/cli/{feedback-QI75ZVF2.mjs → feedback-FGUJVCBS.mjs} +4 -4
- package/dist/cli/getting-started.d.mts +17 -2
- package/dist/cli/getting-started.d.ts +17 -2
- package/dist/cli/getting-started.js +8 -2
- package/dist/cli/getting-started.mjs +9 -3
- package/dist/cli/{git-3PI2SXVS.mjs → git-LR4ARG5H.mjs} +5 -5
- package/dist/cli/git-PIH5Z5LN.js +25 -0
- package/dist/cli/index.js +138 -137
- package/dist/cli/index.mjs +41 -40
- package/dist/cli/{legacy-noops-SIDE3HLT.mjs → legacy-noops-S37PJ7OJ.mjs} +5 -5
- package/dist/cli/{legacy-noops-BNEVRTQT.js → legacy-noops-VX4JEQR6.js} +8 -8
- package/dist/cli/{monitors-WRWVVXUZ.js → monitors-ADASJI72.js} +91 -91
- package/dist/cli/{monitors-BYQ5V5MX.mjs → monitors-H3AX6CZG.mjs} +7 -7
- package/dist/cli/{org-OZNDX3G2.mjs → org-D3F5LUDW.mjs} +6 -6
- package/dist/cli/{org-KWCSSJ3Y.js → org-ZRJ3C56J.js} +72 -72
- package/dist/cli/{pages-OQVOMVF5.js → pages-5TKO3644.js} +17 -17
- package/dist/cli/{pages-DXU3TNND.mjs → pages-PSHU366M.mjs} +6 -6
- package/dist/cli/{play-ZFG4HDDX.mjs → play-AUDDK7XB.mjs} +20 -19
- package/dist/cli/{play-6D7U66KO.js → play-VDAETQDI.js} +323 -322
- package/dist/cli/{providers-H7R3Z5HS.js → providers-IURPWRWD.js} +9 -9
- package/dist/cli/{providers-4RRQIK3Q.mjs → providers-X7YMZSKQ.mjs} +6 -6
- package/dist/cli/{quickstart-TFKRPMCH.mjs → quickstart-6AGWVFNX.mjs} +5 -5
- package/dist/cli/{quickstart-FQ5E5G6O.js → quickstart-Y6GFXLDV.js} +13 -13
- package/dist/cli/{run-GRCGGUUM.mjs → run-TG7J45NS.mjs} +26 -25
- package/dist/cli/{run-QRDJTXKB.js → run-TQFGOXNT.js} +41 -40
- package/dist/cli/{search-OEVSDE3U.mjs → search-3G4J2GC6.mjs} +7 -7
- package/dist/cli/search-VC43NUY7.js +32 -0
- package/dist/cli/{search-output-F6KBWKT2.js → search-output-NPZICK5C.js} +6 -6
- package/dist/cli/{search-output-VK5ZDVKL.mjs → search-output-ZGNHDCLL.mjs} +4 -4
- package/dist/cli/{secrets-DCRVVQV2.mjs → secrets-EAWJBRUD.mjs} +6 -6
- package/dist/cli/{secrets-KKAAZENS.js → secrets-KTTHT4ZG.js} +15 -15
- package/dist/cli/{sessions-XVBIXCXU.mjs → sessions-D4Q3LCEQ.mjs} +5 -5
- package/dist/cli/{sessions-FDHENJVG.js → sessions-S4YVBPAW.js} +6 -6
- package/dist/cli/{settings-36HMWFAP.js → settings-BAK3VOWW.js} +79 -78
- package/dist/cli/{settings-OBVR52US.mjs → settings-JUORW6NL.mjs} +12 -11
- package/dist/cli/{setup-KFYQZYP3.mjs → setup-AXFGCXJE.mjs} +17 -12
- package/dist/cli/{setup-M6OWOPMB.js → setup-NJPHTW32.js} +60 -55
- package/dist/cli/skills-4NQZISNK.js +36 -0
- package/dist/cli/{skills-AZDPA6IQ.mjs → skills-SKJVDJEF.mjs} +10 -7
- package/dist/cli/{tools-F6XEUK7H.mjs → tools-63THJVJZ.mjs} +19 -18
- package/dist/cli/tools-BAHK33FQ.js +57 -0
- package/dist/cli/update-EMIGRGJ7.js +34 -0
- package/dist/cli/{update-QMGJRICE.mjs → update-KSID5F74.mjs} +10 -9
- package/dist/cli/{workflow-M4YPUASM.js → workflow-BLSMWBKW.js} +17 -17
- package/dist/cli/{workflow-L5WNCAPB.mjs → workflow-C4B54X2Z.mjs} +7 -7
- package/dist/{client-BkbDHRIg.d.mts → client-B4R1scm2.d.mts} +1 -1
- package/dist/{client-D3hVHXjK.d.ts → client-CQgGFxAH.d.ts} +1 -1
- package/dist/{client-core-DUdVqO_m.d.ts → client-core-BUNjKBKq.d.ts} +6 -1
- package/dist/{client-core-BZoSMKcY.d.mts → client-core-DMvHWjub.d.mts} +6 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +110 -110
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- 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.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-PSIS3XA6.js +0 -43
- package/dist/cli/describe-2V7H5LJP.js +0 -49
- package/dist/cli/git-DCADFTQ6.js +0 -25
- package/dist/cli/search-2FB7WQUS.js +0 -32
- package/dist/cli/skills-URCPOKZZ.js +0 -33
- package/dist/cli/tools-4G5J5NQP.js +0 -56
- package/dist/cli/update-UWVL2OYA.js +0 -33
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.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 } = _chunkBCKIBVEJjs.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
|
+
_chunkBCKIBVEJjs.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 } = _chunkBCKIBVEJjs.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
|
+
_chunkBCKIBVEJjs.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 } = _chunkBCKIBVEJjs.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
|
+
_chunkBCKIBVEJjs.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 } = _chunkBCKIBVEJjs.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 } = _chunkBCKIBVEJjs.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
|
+
_chunkBCKIBVEJjs.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 } = _chunkBCKIBVEJjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkBCKIBVEJjs.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 } = _chunkBCKIBVEJjs.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
|
+
_chunkBCKIBVEJjs.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 } = _chunkBCKIBVEJjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkBCKIBVEJjs.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 = _chunkZEZ3CZ3Xjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkBCKIBVEJjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkBCKIBVEJjs.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 } = _chunkBCKIBVEJjs.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
|
+
_chunkBCKIBVEJjs.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 } = _chunkBCKIBVEJjs.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
|
+
_chunkBCKIBVEJjs.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 } = _chunkBCKIBVEJjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YV4DP6KQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X75ONMDJ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
resolveConfig,
|
|
12
12
|
sdkCliStateDirPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PIPEPCRL.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
import { Option } from "commander";
|
|
@@ -132,7 +132,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
132
132
|
});
|
|
133
133
|
if (searchRef) rememberSearchRef(searchRef);
|
|
134
134
|
pointAtDescribe(result);
|
|
135
|
-
const { renderSearchResults } = await import("./search-output-
|
|
135
|
+
const { renderSearchResults } = await import("./search-output-ZGNHDCLL.mjs");
|
|
136
136
|
printCommandEnvelope(result, {
|
|
137
137
|
json: options.json === true,
|
|
138
138
|
text: renderSearchResults(result, summaryWidth)
|
|
@@ -1,23 +1,23 @@
|
|
|
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 _chunkDUFRH43Sjs = require('./chunk-DUFRH43S.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk6UARNRXTjs = require('./chunk-6UARNRXT.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkHHTVRICEjs = require('./chunk-HHTVRICE.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk4IP5MLWUjs = require('./chunk-4IP5MLWU.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkB2TXKEEDjs = require('./chunk-B2TXKEED.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
var _fs = require('fs');
|
|
@@ -26,16 +26,16 @@ function nothingNamed(name) {
|
|
|
26
26
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
27
27
|
}
|
|
28
28
|
function findNamed2(name, options) {
|
|
29
|
-
return
|
|
29
|
+
return _chunkHHTVRICEjs.findNamed.call(void 0, name, options, _chunkHHTVRICEjs.describeLookupsFor.call(void 0, new (0, _chunkB2TXKEEDjs.DeeplineClient)()));
|
|
30
30
|
}
|
|
31
31
|
async function describeAnything(name, options, onMissing) {
|
|
32
|
-
const client = new (0,
|
|
33
|
-
const lookups =
|
|
34
|
-
const outcome = await
|
|
32
|
+
const client = new (0, _chunkB2TXKEEDjs.DeeplineClient)();
|
|
33
|
+
const lookups = _chunkHHTVRICEjs.describeLookupsFor.call(void 0, client);
|
|
34
|
+
const outcome = await _chunkHHTVRICEjs.describeName.call(void 0, name, options, {
|
|
35
35
|
...lookups,
|
|
36
36
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
37
37
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
38
|
-
seedStarterScript:
|
|
38
|
+
seedStarterScript: _chunkDUFRH43Sjs.seedToolListScript
|
|
39
39
|
});
|
|
40
40
|
if (outcome.status === "missing") {
|
|
41
41
|
if (onMissing) return onMissing();
|
|
@@ -60,18 +60,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
60
60
|
` : text;
|
|
61
61
|
_fs.writeFileSync.call(void 0, path, content);
|
|
62
62
|
const bytes = Buffer.byteLength(content);
|
|
63
|
-
|
|
63
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
64
64
|
{ path, bytes },
|
|
65
65
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
66
66
|
` }
|
|
67
67
|
);
|
|
68
68
|
return 0;
|
|
69
69
|
}
|
|
70
|
-
|
|
70
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
71
71
|
return 0;
|
|
72
72
|
}
|
|
73
73
|
function registerDescribeCommand(program) {
|
|
74
|
-
|
|
74
|
+
_chunk6UARNRXTjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
75
75
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
76
76
|
).addHelpText(
|
|
77
77
|
"after",
|
|
@@ -108,7 +108,7 @@ Schema size and format:
|
|
|
108
108
|
by default; the output names them, and --verbose shows them.
|
|
109
109
|
--fields email,miss_reason shows only the fields you name, plus every
|
|
110
110
|
required input, and names the rest. Use it when you know what you need.
|
|
111
|
-
A schema over ${
|
|
111
|
+
A schema over ${_chunk4IP5MLWUjs.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
|
|
112
112
|
names. A shape used more than once is printed once under Types.
|
|
113
113
|
--full-schema the normal output, with the schema not folded
|
|
114
114
|
--schema-only only the schema, not folded, and nothing else
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QBOE5LEH.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VC3SH4QW.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OLHWZM4A.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VC3SH4QW.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-X75ONMDJ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PIPEPCRL.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-6PMM7VJN.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -196,7 +196,7 @@ function rateLimitSummary(limits) {
|
|
|
196
196
|
864e5: "day"
|
|
197
197
|
};
|
|
198
198
|
const parts = (Array.isArray(limits) ? limits : []).flatMap((limit) => {
|
|
199
|
-
if (!isRecord(limit)) return [];
|
|
199
|
+
if (!isRecord(limit) || limit.scope === "provider_shared") return [];
|
|
200
200
|
const { requestsPerWindow: requests, windowMs } = limit;
|
|
201
201
|
if (typeof requests !== "number" || typeof windowMs !== "number") return [];
|
|
202
202
|
return [
|
|
@@ -34,16 +34,24 @@ var DEEPLINE_GTM_STARTER_PROMPTS = [
|
|
|
34
34
|
var DEEPLINE_GTM_PRIMARY_STARTER_PROMPT = DEEPLINE_GTM_STARTER_PROMPTS[0].prompt;
|
|
35
35
|
var DEEPLINE_GTM_HANDOFF_QUESTION = "What would you like to do with Deepline?";
|
|
36
36
|
var DEEPLINE_GTM_CUSTOM_OPTION = "Tell me what you want to accomplish and I'll help you build it";
|
|
37
|
+
var DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE = "~/.agents/skills/deepline-gtm/SKILL.md";
|
|
38
|
+
function deeplineGtmStarterSkillStep(codexSkillFile) {
|
|
39
|
+
return `Load the deepline-gtm skill first. Claude Code: invoke it with the selected prompt. Codex and others: read ${codexSkillFile}, installed mid-session so unlisted. Then run the starter command as written, adding no flags.`;
|
|
40
|
+
}
|
|
41
|
+
var DEEPLINE_GTM_STARTER_SKILL_STEP = deeplineGtmStarterSkillStep(
|
|
42
|
+
`${DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE} (project .agents/skills/ if setup reports local scope)`
|
|
43
|
+
);
|
|
37
44
|
var DEEPLINE_GTM_STARTER_OPTIONS = [
|
|
38
45
|
...DEEPLINE_GTM_STARTER_PROMPTS.map(({ prompt }) => prompt),
|
|
39
46
|
DEEPLINE_GTM_CUSTOM_OPTION
|
|
40
47
|
];
|
|
41
|
-
function deeplineGtmGettingStartedPayload() {
|
|
48
|
+
function deeplineGtmGettingStartedPayload(codexSkillFile = DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE) {
|
|
42
49
|
return {
|
|
43
50
|
skill: DEEPLINE_GTM_SKILL,
|
|
44
51
|
examples: DEEPLINE_GTM_STARTER_PROMPTS,
|
|
45
52
|
question: DEEPLINE_GTM_HANDOFF_QUESTION,
|
|
46
53
|
customOption: DEEPLINE_GTM_CUSTOM_OPTION,
|
|
54
|
+
starterBehavior: deeplineGtmStarterSkillStep(codexSkillFile),
|
|
47
55
|
customProblemBehavior: "Turn the business problem into one exact /deepline-gtm prompt, show that reusable prompt, then execute it without asking the user to paste it again."
|
|
48
56
|
};
|
|
49
57
|
}
|
|
@@ -56,4 +64,7 @@ function deeplineGtmGettingStartedPayload() {
|
|
|
56
64
|
|
|
57
65
|
|
|
58
66
|
|
|
59
|
-
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
exports.DEEPLINE_GTM_SKILL = DEEPLINE_GTM_SKILL; exports.DEEPLINE_GTM_STARTER_PROMPTS = DEEPLINE_GTM_STARTER_PROMPTS; exports.DEEPLINE_GTM_PRIMARY_STARTER_PROMPT = DEEPLINE_GTM_PRIMARY_STARTER_PROMPT; exports.DEEPLINE_GTM_HANDOFF_QUESTION = DEEPLINE_GTM_HANDOFF_QUESTION; exports.DEEPLINE_GTM_CUSTOM_OPTION = DEEPLINE_GTM_CUSTOM_OPTION; exports.DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE = DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE; exports.deeplineGtmStarterSkillStep = deeplineGtmStarterSkillStep; exports.DEEPLINE_GTM_STARTER_SKILL_STEP = DEEPLINE_GTM_STARTER_SKILL_STEP; exports.DEEPLINE_GTM_STARTER_OPTIONS = DEEPLINE_GTM_STARTER_OPTIONS; exports.deeplineGtmGettingStartedPayload = deeplineGtmGettingStartedPayload;
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkAEKJZJ4Rjs = require('./chunk-AEKJZJ4R.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkAEKJZJ4Rjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkBCKIBVEJjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk4IP5MLWUjs = require('./chunk-4IP5MLWU.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
|
|
10
10
|
|
|
11
11
|
// src/cli/describe-options.ts
|
|
12
12
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -24,7 +24,7 @@ function addDescribeOptions(command, options = {}) {
|
|
|
24
24
|
"Show only the in-play example, and explain how it takes inputs and returns outputs"
|
|
25
25
|
).option("--no-example", "Hide the run examples").option(
|
|
26
26
|
"--full-schema",
|
|
27
|
-
`Print every field: a long schema unfolded (over ${
|
|
27
|
+
`Print every field: a long schema unfolded (over ${_chunk4IP5MLWUjs.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
|
|
28
28
|
).option(
|
|
29
29
|
"--fields <names>",
|
|
30
30
|
"Show only these fields, comma-separated, plus every required input"
|
|
@@ -247,7 +247,7 @@ function projectRunDatasetCell(value) {
|
|
|
247
247
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
248
248
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
249
249
|
if (typeof logicalValue === "object") {
|
|
250
|
-
return
|
|
250
|
+
return _chunkBCKIBVEJjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
251
251
|
}
|
|
252
252
|
return logicalValue;
|
|
253
253
|
}
|
|
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
|
|
|
642
642
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
643
643
|
columns
|
|
644
644
|
});
|
|
645
|
-
return
|
|
645
|
+
return _chunkBCKIBVEJjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
646
646
|
}
|
|
647
647
|
function writeExecutionOutput(result, options) {
|
|
648
648
|
let temp;
|
|
@@ -868,9 +868,9 @@ function annotated(schema, values) {
|
|
|
868
868
|
function shapeLines(title, data) {
|
|
869
869
|
const schema = annotated(observedSchema(data), [data]);
|
|
870
870
|
const block = (heading, fieldSchema) => {
|
|
871
|
-
const { lines, folded } =
|
|
871
|
+
const { lines, folded } = _chunk4IP5MLWUjs.fieldBlockLines.call(void 0,
|
|
872
872
|
heading,
|
|
873
|
-
|
|
873
|
+
_chunk4IP5MLWUjs.schemaFields.call(void 0, fieldSchema)
|
|
874
874
|
);
|
|
875
875
|
return [
|
|
876
876
|
...lines,
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.491",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunk74H5OTRMjs = require('./chunk-74H5OTRM.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunk74H5OTRMjs.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunk74H5OTRMjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk74H5OTRMjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkIG3GSBBEjs = require('./chunk-IG3GSBBE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkIG3GSBBEjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkZEZ3CZ3Xjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkZEZ3CZ3Xjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkAEKJZJ4Rjs = require('./chunk-AEKJZJ4R.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -290,8 +290,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
290
290
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
291
291
|
var defaultBrowserCommandRunner = childProcess;
|
|
292
292
|
function getAuthedHttpClient() {
|
|
293
|
-
const config =
|
|
294
|
-
return { config, http: new (0,
|
|
293
|
+
const config = _chunkZEZ3CZ3Xjs.resolveConfig.call(void 0, );
|
|
294
|
+
return { config, http: new (0, _chunkZEZ3CZ3Xjs.HttpClient)(config) };
|
|
295
295
|
}
|
|
296
296
|
function stableOsUserId() {
|
|
297
297
|
try {
|
|
@@ -631,7 +631,7 @@ function collectLocalEnvInfo() {
|
|
|
631
631
|
os: `${process.platform} ${process.arch}`,
|
|
632
632
|
node_version: process.version,
|
|
633
633
|
home_dir: homeDir,
|
|
634
|
-
agent_runtime:
|
|
634
|
+
agent_runtime: _chunkAEKJZJ4Rjs.detectAgentRuntime.call(void 0, )
|
|
635
635
|
};
|
|
636
636
|
const env = process.env;
|
|
637
637
|
const optional = {
|
|
@@ -878,9 +878,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
878
878
|
}
|
|
879
879
|
function withAgentCommandContext(value) {
|
|
880
880
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
881
|
-
return
|
|
881
|
+
return _chunkAEKJZJ4Rjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
882
882
|
...valueRecord,
|
|
883
|
-
command_context:
|
|
883
|
+
command_context: _chunkZEZ3CZ3Xjs.resolveCliCommandContext.call(void 0, )
|
|
884
884
|
} : value;
|
|
885
885
|
}
|
|
886
886
|
function printJson(value, fields) {
|