deepline 0.3.388 → 0.3.389
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/cli/auth-AOM2LA73.js +39 -0
- package/dist/cli/{auth-2DIKNI7P.mjs → auth-DEASEYUJ.mjs} +4 -4
- package/dist/cli/{billing-LTUXLRQO.js → billing-QIWD5GYZ.js} +73 -73
- package/dist/cli/{billing-YAFQ5HOL.mjs → billing-TUTB4H6F.mjs} +4 -4
- package/dist/cli/{chunk-FYSQW6H7.mjs → chunk-2L6BBM7Z.mjs} +4 -4
- package/dist/cli/{chunk-WETP5XUS.js → chunk-5VCRXKAU.js} +50 -50
- package/dist/cli/{chunk-XUOAS7EU.mjs → chunk-63ZXA57X.mjs} +3 -3
- package/dist/cli/{chunk-YXUBGP4Y.js → chunk-7IPMWJNZ.js} +226 -226
- package/dist/cli/{chunk-QPGEZ4PU.mjs → chunk-7WQGDKNO.mjs} +1 -1
- package/dist/cli/{chunk-4GNF7MCF.js → chunk-ABLS54ZL.js} +61 -61
- package/dist/cli/{chunk-E5TZ64CK.mjs → chunk-B6BQ6EAR.mjs} +6 -6
- package/dist/cli/{chunk-HSE4BI6X.mjs → chunk-CCIEPJSX.mjs} +2 -2
- package/dist/cli/{chunk-H7P6DX42.js → chunk-CLOICRTK.js} +6 -6
- package/dist/cli/{chunk-5SCZSNX4.js → chunk-CMWDXAQH.js} +26 -26
- package/dist/cli/{chunk-34I3JQML.js → chunk-FZXZLFNC.js} +15 -15
- package/dist/cli/{chunk-JKDY7FUD.js → chunk-FZZC3A7J.js} +8 -8
- package/dist/cli/{chunk-BECUIDJV.mjs → chunk-GB3KEA34.mjs} +1 -1
- package/dist/cli/{chunk-UCORN5KB.mjs → chunk-HHRQYYHK.mjs} +7 -6
- package/dist/cli/{chunk-2N2KHFOU.js → chunk-KWGB3RWA.js} +9 -9
- package/dist/cli/{chunk-MEWZNXLA.mjs → chunk-M6BQYSV3.mjs} +1 -1
- package/dist/cli/{chunk-2UFLY7CC.js → chunk-MCWGQIDV.js} +50 -49
- package/dist/cli/{chunk-OHJRJM7E.mjs → chunk-MP7FWY76.mjs} +2 -2
- package/dist/cli/{chunk-NRJPUSLB.mjs → chunk-NBXJJBBT.mjs} +1 -1
- package/dist/cli/{chunk-RFZP7MP2.js → chunk-OWP6SI5W.js} +8 -8
- package/dist/cli/{chunk-VJOZGWNO.mjs → chunk-PPKNOVMF.mjs} +2 -2
- package/dist/cli/{chunk-XJ2OSKPI.mjs → chunk-RHAP7ZW5.mjs} +2 -2
- package/dist/cli/{chunk-G6IRNEMJ.js → chunk-RPGSXBS3.js} +1 -1
- package/dist/cli/{chunk-YKCMTH5P.js → chunk-WRLYF4DS.js} +2 -2
- package/dist/cli/{chunk-ZFDWBWCQ.js → chunk-Z43SUQUL.js} +4 -4
- package/dist/cli/{chunk-YOHRMAY4.mjs → chunk-Z4ZB2CDV.mjs} +1 -1
- package/dist/cli/{csv-Y3HV4QXT.js → csv-FYI4XWEA.js} +12 -12
- package/dist/cli/{csv-SW5B4K6E.mjs → csv-GQ5K6MDD.mjs} +3 -3
- package/dist/cli/{db-4RFE5IQD.mjs → db-DYXQOAWZ.mjs} +4 -4
- package/dist/cli/{db-5KDJZJ6C.js → db-WYSI3J43.js} +29 -29
- package/dist/cli/{describe-5XNBGYTP.js → describe-T25AHZEJ.js} +18 -18
- package/dist/cli/{describe-6DPM37PH.mjs → describe-YIIUMAZF.mjs} +8 -8
- package/dist/cli/{executions-HQQ6HZUQ.js → executions-3D7KAJ2C.js} +6 -6
- package/dist/cli/{executions-W7U4YG4K.mjs → executions-RYFSOPMQ.mjs} +4 -4
- package/dist/cli/{feedback-CBYEXLGT.mjs → feedback-CIZXMDMJ.mjs} +3 -3
- package/dist/cli/{feedback-GTFLUBFS.js → feedback-I7FWPC7V.js} +7 -7
- package/dist/cli/{git-3XPDF4K5.mjs → git-JCURDXPQ.mjs} +4 -4
- package/dist/cli/git-MVMIPHQ6.js +23 -0
- package/dist/cli/index.js +89 -89
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-IUBG6DMZ.mjs → legacy-noops-4BW4EZJG.mjs} +4 -4
- package/dist/cli/{legacy-noops-FRO5YR7L.js → legacy-noops-G6F5LNUM.js} +7 -7
- package/dist/cli/{monitors-LW5N2HWG.js → monitors-43UXU5C3.js} +85 -85
- package/dist/cli/{monitors-2L3ZJT62.mjs → monitors-LTKH5IWE.mjs} +4 -4
- package/dist/cli/{org-E3ELO53D.js → org-7MSUEPXL.js} +64 -64
- package/dist/cli/{org-5RN6RRNU.mjs → org-I3WHUV67.mjs} +4 -4
- package/dist/cli/{play-KCRWX7DC.mjs → play-HRZXSNXV.mjs} +7 -7
- package/dist/cli/play-R5TYLP5L.js +157 -0
- package/dist/cli/{providers-WTLOWJDB.mjs → providers-BY6JPMKP.mjs} +4 -4
- package/dist/cli/{providers-IL7DAKQH.js → providers-DWLWK5VX.js} +7 -7
- package/dist/cli/{quickstart-KXOL5CFD.mjs → quickstart-E647CKUQ.mjs} +3 -3
- package/dist/cli/{quickstart-YZJTOKOX.js → quickstart-QO6GCK4U.js} +5 -5
- package/dist/cli/search-34AC6FC7.js +26 -0
- package/dist/cli/{search-TFYOO37D.mjs → search-3WUQBHRV.mjs} +5 -5
- package/dist/cli/{secrets-IANLD3A7.js → secrets-CPNHE5XI.js} +13 -13
- package/dist/cli/{secrets-3Q6MHCB2.mjs → secrets-WTGMFFP7.mjs} +4 -4
- package/dist/cli/{sessions-FVLRLE6E.mjs → sessions-6Q5E7GSY.mjs} +4 -4
- package/dist/cli/{sessions-ZCZ6FWW4.js → sessions-UFGGEDZP.js} +5 -5
- package/dist/cli/{settings-VRNHWJLI.js → settings-NF5726RU.js} +74 -74
- package/dist/cli/{settings-4MHQZKQD.mjs → settings-QMEIKOUI.mjs} +7 -7
- package/dist/cli/{setup-QH6UM6IR.js → setup-J35MMJ7C.js} +41 -41
- package/dist/cli/{setup-R3U6EATD.mjs → setup-ZOQOJMJ7.mjs} +6 -6
- package/dist/cli/{skills-Q7BJMZTK.mjs → skills-UFDKCSYR.mjs} +4 -4
- package/dist/cli/skills-WGYISRE5.js +28 -0
- package/dist/cli/{tools-5YA7M5EA.mjs → tools-3SU3EUQT.mjs} +6 -6
- package/dist/cli/tools-Q642ZZ2M.js +40 -0
- package/dist/cli/{update-M6HYEZ5G.mjs → update-SXYX4PMC.mjs} +6 -6
- package/dist/cli/update-T5MNWAQC.js +28 -0
- package/dist/cli/{workflow-73Q3PWVZ.mjs → workflow-2LINUMOP.mjs} +5 -5
- package/dist/cli/{workflow-AAIQODIZ.js → workflow-XAIEXDUI.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +72 -72
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-Z4NL25WP.js +0 -39
- package/dist/cli/git-F2AUBR6I.js +0 -23
- package/dist/cli/play-SUYAMCPX.js +0 -157
- package/dist/cli/search-UFKDJ5TO.js +0 -26
- package/dist/cli/skills-I7URUOO7.js +0 -28
- package/dist/cli/tools-MPJGF7F2.js +0 -40
- package/dist/cli/update-EY7PSSDF.js +0 -28
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkCLOICRTKjs = require('./chunk-CLOICRTK.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZ43SUQULjs = require('./chunk-Z43SUQUL.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 } = _chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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 } = _chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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 } = _chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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 } = _chunkCLOICRTKjs.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 } = _chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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 } = _chunkCLOICRTKjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkCLOICRTKjs.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 } = _chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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 } = _chunkCLOICRTKjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkCLOICRTKjs.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 = _chunkZ43SUQULjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkCLOICRTKjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkCLOICRTKjs.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 } = _chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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 } = _chunkCLOICRTKjs.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
|
+
_chunkCLOICRTKjs.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 } = _chunkCLOICRTKjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -1,17 +1,17 @@
|
|
|
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 _chunkWRLYF4DSjs = require('./chunk-WRLYF4DS.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkABLS54ZLjs = require('./chunk-ABLS54ZL.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkCLOICRTKjs = require('./chunk-CLOICRTK.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZ43SUQULjs = require('./chunk-Z43SUQUL.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
|
|
|
489
489
|
}
|
|
490
490
|
function resolveNpmGlobalPrefix(env) {
|
|
491
491
|
try {
|
|
492
|
-
const plan =
|
|
492
|
+
const plan = _chunkABLS54ZLjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
493
493
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
494
494
|
encoding: "utf8",
|
|
495
495
|
env,
|
|
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
545
545
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
546
546
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
547
547
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
548
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
549
|
-
const npmGlobalInstallFlags =
|
|
548
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkWRLYF4DSjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunkWRLYF4DSjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
550
550
|
const args = installPrefix ? [
|
|
551
551
|
"install",
|
|
552
552
|
"-g",
|
|
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
packageSpec
|
|
557
557
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
558
558
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
559
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
559
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkZ43SUQULjs.autoDetectBaseUrl.call(void 0, )
|
|
560
560
|
);
|
|
561
561
|
return {
|
|
562
562
|
kind: "npm-global",
|
|
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
703
703
|
function runCommand(command, args, env = process.env) {
|
|
704
704
|
return new Promise((resolveResult) => {
|
|
705
705
|
let output = "";
|
|
706
|
-
const plan =
|
|
706
|
+
const plan = _chunkABLS54ZLjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
707
707
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
708
708
|
stdio: ["inherit", "pipe", "pipe"],
|
|
709
709
|
shell: plan.shell,
|
|
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1079
1079
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1080
1080
|
}
|
|
1081
1081
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1082
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1082
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkZ43SUQULjs.autoDetectBaseUrl));
|
|
1083
1083
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1084
1084
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1085
1085
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1086
1086
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1087
1087
|
process.stdout.write = (() => true);
|
|
1088
1088
|
try {
|
|
1089
|
-
const exitCode = await
|
|
1089
|
+
const exitCode = await _chunkABLS54ZLjs.runSkillsCommand.call(void 0, { json: true });
|
|
1090
1090
|
if (exitCode !== 0) {
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1157
1157
|
]
|
|
1158
1158
|
};
|
|
1159
1159
|
if (options.json && !options.executeWithJson) {
|
|
1160
|
-
|
|
1160
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
...plan,
|
|
1167
1167
|
render: {
|
|
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1174
1174
|
return 0;
|
|
1175
1175
|
}
|
|
1176
1176
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1177
|
-
|
|
1177
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
}
|
|
1180
1180
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills
|
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.executeWithJson && options.json) {
|
|
1207
|
-
|
|
1207
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|
|
@@ -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 _chunkCLOICRTKjs = require('./chunk-CLOICRTK.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZ43SUQULjs = require('./chunk-Z43SUQUL.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 = _chunkZ43SUQULjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
143
143
|
const cwd = process.cwd();
|
|
144
144
|
return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
|
|
145
145
|
(candidate) => sessionStartedInDirectory(candidate, cwd)
|
|
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
|
|
|
448
448
|
return { encodedContent: encoded, needsChunking: true };
|
|
449
449
|
}
|
|
450
450
|
async function uploadPayload(path, payload) {
|
|
451
|
-
const { http } =
|
|
451
|
+
const { http } = _chunkCLOICRTKjs.getAuthedHttpClient.call(void 0, );
|
|
452
452
|
return await http.post(path, payload);
|
|
453
453
|
}
|
|
454
454
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
481
481
|
...options.rating ? { rating: options.rating } : {}
|
|
482
482
|
});
|
|
483
483
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
484
|
-
|
|
484
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
485
485
|
{
|
|
486
486
|
...response,
|
|
487
487
|
ok: true,
|
|
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
|
|
|
513
513
|
filename: _path.basename.call(void 0, filePath),
|
|
514
514
|
...rating ? { rating } : {}
|
|
515
515
|
});
|
|
516
|
-
|
|
516
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
517
517
|
{
|
|
518
518
|
...response2,
|
|
519
519
|
ok: true,
|
|
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
|
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
565
|
const sessionIds = built.map((session) => session.sessionId);
|
|
566
|
-
|
|
566
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
567
567
|
{
|
|
568
568
|
...response,
|
|
569
569
|
ok: true,
|
|
@@ -671,7 +671,7 @@ ${refreshMeta}
|
|
|
671
671
|
</body>
|
|
672
672
|
</html>`;
|
|
673
673
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
674
|
-
|
|
674
|
+
_chunkCLOICRTKjs.printCommandEnvelope.call(void 0,
|
|
675
675
|
{
|
|
676
676
|
ok: true,
|
|
677
677
|
file: outputPath,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
observedMaxText,
|
|
14
14
|
recentSearchRef,
|
|
15
15
|
registerDeprecatedSearchCommand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-63ZXA57X.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS,
|
|
19
19
|
EMAIL_STATUS_JSON_SCHEMA,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
DeeplineClient,
|
|
34
34
|
validateExecutionIdempotencyKey
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-M6BQYSV3.mjs";
|
|
36
36
|
import {
|
|
37
37
|
beginToolExecuteCommand,
|
|
38
38
|
getToolExecuteInvocationId,
|
|
@@ -46,11 +46,11 @@ import {
|
|
|
46
46
|
printJsonError,
|
|
47
47
|
renderCommandEnvelopeText,
|
|
48
48
|
shouldEmitJson
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-GB3KEA34.mjs";
|
|
50
50
|
import {
|
|
51
51
|
resolveConfig,
|
|
52
52
|
sdkCliStateDirPath
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-7WQGDKNO.mjs";
|
|
54
54
|
import {
|
|
55
55
|
DeeplineError
|
|
56
56
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -1112,7 +1112,7 @@ Examples:
|
|
|
1112
1112
|
process.exitCode = await narrowView();
|
|
1113
1113
|
return;
|
|
1114
1114
|
}
|
|
1115
|
-
const { describeAnything } = await import("./describe-
|
|
1115
|
+
const { describeAnything } = await import("./describe-YIIUMAZF.mjs");
|
|
1116
1116
|
process.exitCode = await describeAnything(
|
|
1117
1117
|
toolId,
|
|
1118
1118
|
{
|
|
@@ -1689,7 +1689,8 @@ function describedTool(tool, requestedToolId) {
|
|
|
1689
1689
|
return { field, node };
|
|
1690
1690
|
});
|
|
1691
1691
|
};
|
|
1692
|
-
const
|
|
1692
|
+
const declaredLists = getterOutputs("extractedLists", [outputSchema]);
|
|
1693
|
+
const lists = declaredLists.some(({ node }) => node) ? declaredLists.filter(({ node }) => node) : declaredLists;
|
|
1693
1694
|
const values = getterOutputs("extractedValues", [
|
|
1694
1695
|
outputSchema,
|
|
1695
1696
|
...lists.map(({ node }) => node?.items)
|
|
@@ -21,7 +21,7 @@ var _chunkPAIMOGCMjs = require('./chunk-PAIMOGCM.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkZ43SUQULjs = require('./chunk-Z43SUQUL.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -137,7 +137,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
137
137
|
if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _ => _.code, 'optionalAccess', _2 => _2.startsWith, 'call', _3 => _3("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
|
|
138
138
|
// lost connections and explicitly unknown transaction resolution.
|
|
139
139
|
/^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
|
|
140
|
-
throw new (0,
|
|
140
|
+
throw new (0, _chunkZ43SUQULjs.CustomerDbQueryOutcomeUnknownError)(
|
|
141
141
|
error,
|
|
142
142
|
plan.request.body.operation_key
|
|
143
143
|
);
|
|
@@ -145,7 +145,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
145
145
|
throw error;
|
|
146
146
|
}
|
|
147
147
|
if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
|
|
148
|
-
throw new (0,
|
|
148
|
+
throw new (0, _chunkZ43SUQULjs.CustomerDbQueryOutcomeUnknownError)(
|
|
149
149
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
150
150
|
"The SQL response did not contain a valid result.",
|
|
151
151
|
200,
|
|
@@ -156,7 +156,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
156
156
|
}
|
|
157
157
|
const operation = result.operation;
|
|
158
158
|
if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
|
|
159
|
-
throw new (0,
|
|
159
|
+
throw new (0, _chunkZ43SUQULjs.CustomerDbQueryOutcomeUnknownError)(
|
|
160
160
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
161
161
|
"The server did not confirm the original atomic SQL operation.",
|
|
162
162
|
200,
|
|
@@ -2911,8 +2911,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2911
2911
|
}
|
|
2912
2912
|
const receivers = _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
|
|
2913
2913
|
return {
|
|
2914
|
-
[
|
|
2915
|
-
...receivers ? { [
|
|
2914
|
+
[_chunkZ43SUQULjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2915
|
+
...receivers ? { [_chunkZ43SUQULjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2916
2916
|
};
|
|
2917
2917
|
}
|
|
2918
2918
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2928,7 +2928,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2928
2928
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2929
2929
|
);
|
|
2930
2930
|
}
|
|
2931
|
-
return { [
|
|
2931
|
+
return { [_chunkZ43SUQULjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2932
2932
|
}
|
|
2933
2933
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2934
2934
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3218,8 +3218,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3218
3218
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3219
3219
|
*/
|
|
3220
3220
|
constructor(options) {
|
|
3221
|
-
this.config =
|
|
3222
|
-
this.http = new (0,
|
|
3221
|
+
this.config = _chunkZ43SUQULjs.resolveConfig.call(void 0, options);
|
|
3222
|
+
this.http = new (0, _chunkZ43SUQULjs.HttpClient)(this.config);
|
|
3223
3223
|
this.toolCalls = new ToolCalls(
|
|
3224
3224
|
this.http,
|
|
3225
3225
|
this.config.timeout,
|