deepline 0.3.382 → 0.3.384
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-K7TZOYYE.mjs → auth-54CAXSHD.mjs} +4 -4
- package/dist/cli/auth-JLX4WME4.js +39 -0
- package/dist/cli/{billing-4P4N53UW.js → billing-2XWGPZ5O.js} +73 -73
- package/dist/cli/{billing-TDW5SHSL.mjs → billing-PXGESNMZ.mjs} +4 -4
- package/dist/cli/{chunk-TOLORRDI.js → chunk-4EMAJ3QX.js} +61 -60
- package/dist/cli/{chunk-UKG2DJLZ.mjs → chunk-4GSECA4G.mjs} +1 -1
- package/dist/cli/{chunk-YYHROETZ.js → chunk-4SRTIXOV.js} +15 -15
- package/dist/cli/{chunk-3BRXZZNU.js → chunk-5HWGQYSK.js} +50 -50
- package/dist/cli/{chunk-JLNMJAWS.js → chunk-6XWYHSKE.js} +9 -9
- package/dist/cli/{chunk-5XYEFAFI.mjs → chunk-7TGFUXT3.mjs} +1 -1
- package/dist/cli/{chunk-DHV54G6M.mjs → chunk-BT5Y6UNH.mjs} +5 -5
- package/dist/cli/{chunk-FEIKELZA.mjs → chunk-D6Z646OQ.mjs} +4 -4
- package/dist/cli/{chunk-IWNJYV27.js → chunk-EIEJKNLZ.js} +8 -8
- package/dist/cli/{chunk-BNRRVGGW.mjs → chunk-FFXJKVSX.mjs} +1 -1
- package/dist/cli/{chunk-ZPD4NZKT.mjs → chunk-GIMBOV7B.mjs} +2 -2
- package/dist/cli/{chunk-ZP7Z3TZ3.js → chunk-HNAXRSVI.js} +8 -8
- package/dist/cli/{chunk-3QHSILOH.mjs → chunk-IHYRCMS2.mjs} +2 -2
- package/dist/cli/{chunk-H4Q2JRPD.mjs → chunk-IWP4FVK6.mjs} +1 -1
- package/dist/cli/{chunk-ANHZWK2M.mjs → chunk-JV3I3SPK.mjs} +1 -1
- package/dist/cli/{chunk-LFY4APCO.mjs → chunk-LDTDN3RX.mjs} +3 -2
- package/dist/cli/{chunk-BSPOALWK.js → chunk-MPVA2MUT.js} +226 -226
- package/dist/cli/{chunk-ERGADEMS.js → chunk-O4XVGZDX.js} +2 -2
- package/dist/cli/{chunk-NYS7324H.mjs → chunk-OT35I43P.mjs} +6 -6
- package/dist/cli/{chunk-J6253YWF.mjs → chunk-QX473E5P.mjs} +3 -3
- package/dist/cli/{chunk-SGG4X23E.js → chunk-R3B7XJ3J.js} +26 -26
- package/dist/cli/{chunk-IMKWP4UQ.js → chunk-SOV673GH.js} +4 -4
- package/dist/cli/{chunk-5WVT7NHI.js → chunk-SPSQXIRR.js} +48 -48
- package/dist/cli/{chunk-QGBXUPY3.mjs → chunk-UMVIHIQR.mjs} +2 -2
- package/dist/cli/{chunk-ID57OQBZ.js → chunk-W5THLO6U.js} +1 -1
- package/dist/cli/{chunk-SK6KH37M.js → chunk-XPJKXSQS.js} +6 -6
- package/dist/cli/{csv-GJB3PQ6I.js → csv-H4ZACHHS.js} +12 -12
- package/dist/cli/{csv-T4A374D5.mjs → csv-J4JP3DPS.mjs} +3 -3
- package/dist/cli/{db-J2J5BJOH.js → db-XO7FOC3Y.js} +29 -29
- package/dist/cli/{db-CMXCGD3G.mjs → db-Y75OULXT.mjs} +4 -4
- package/dist/cli/{describe-MN4MJ6DD.mjs → describe-EQWRAHDB.mjs} +8 -8
- package/dist/cli/{describe-HW2SROYB.js → describe-YNB27VDP.js} +18 -18
- package/dist/cli/{executions-DZB6R7OV.js → executions-ERDR36BX.js} +6 -6
- package/dist/cli/{executions-O4CCBVC4.mjs → executions-YVEIAM7M.mjs} +4 -4
- package/dist/cli/{feedback-YMOM6INL.mjs → feedback-DVLIEVMN.mjs} +3 -3
- package/dist/cli/{feedback-N6HDCLQ6.js → feedback-NED6Q7KT.js} +7 -7
- package/dist/cli/getting-started.d.mts +2 -0
- package/dist/cli/getting-started.d.ts +2 -0
- package/dist/cli/{git-LEC7GJLK.mjs → git-4RKNN3VY.mjs} +4 -4
- package/dist/cli/git-Q4YJMTMJ.js +23 -0
- package/dist/cli/index.js +93 -91
- package/dist/cli/index.mjs +34 -32
- package/dist/cli/{legacy-noops-K27TS7LE.mjs → legacy-noops-6E2X2I3N.mjs} +4 -4
- package/dist/cli/{legacy-noops-GFXVUEHX.js → legacy-noops-RVUHMAGK.js} +7 -7
- package/dist/cli/{monitors-QCLSYMKW.mjs → monitors-7LHN35U7.mjs} +4 -4
- package/dist/cli/{monitors-HFT37OOR.js → monitors-J2MY6A2I.js} +85 -85
- package/dist/cli/{org-UXQ6LVOX.mjs → org-V4QQMVEU.mjs} +4 -4
- package/dist/cli/{org-4CADZYFV.js → org-XSQK5EXX.js} +64 -64
- package/dist/cli/play-QM2EHIEQ.js +157 -0
- package/dist/cli/{play-FOQPC7BY.mjs → play-UN5R5WLC.mjs} +7 -7
- package/dist/cli/{providers-HG3GZRFS.mjs → providers-2GCHGAPY.mjs} +4 -4
- package/dist/cli/{providers-W3RK2G2A.js → providers-RUZNJEZU.js} +7 -7
- package/dist/cli/{quickstart-7VXWMWC6.js → quickstart-QI7C3OE6.js} +5 -5
- package/dist/cli/{quickstart-DQKAUJFG.mjs → quickstart-SQJ3LD5S.mjs} +3 -3
- package/dist/cli/search-4D6JH4UN.js +26 -0
- package/dist/cli/{search-LDGEJTLL.mjs → search-UXEFJH6M.mjs} +5 -5
- package/dist/cli/{secrets-3NHMB236.js → secrets-UELQR4TK.js} +13 -13
- package/dist/cli/{secrets-VEOZ5FT6.mjs → secrets-VUXPAPWB.mjs} +4 -4
- package/dist/cli/{sessions-UYLIL756.mjs → sessions-NZBULFH2.mjs} +4 -4
- package/dist/cli/{sessions-I4FKREEM.js → sessions-VJJA2IAJ.js} +5 -5
- package/dist/cli/{settings-RA3XIJWS.mjs → settings-IYSP5GKF.mjs} +7 -7
- package/dist/cli/{settings-BLNPNNLM.js → settings-QUPYXEFE.js} +74 -74
- package/dist/cli/{setup-YFJJQF6T.js → setup-33FAUBBY.js} +41 -41
- package/dist/cli/{setup-OAU6HQOG.mjs → setup-6AIDWIE5.mjs} +6 -6
- package/dist/cli/skills-VOZR6NYH.js +28 -0
- package/dist/cli/{skills-XF7YND7M.mjs → skills-WQI5O2YD.mjs} +4 -4
- package/dist/cli/{tools-7CJTNQDV.mjs → tools-JRII45GV.mjs} +6 -6
- package/dist/cli/tools-NRW7RTA2.js +40 -0
- package/dist/cli/{update-WD2X3EZD.mjs → update-GSWO4TJZ.mjs} +6 -6
- package/dist/cli/update-IKYKBHCM.js +28 -0
- package/dist/cli/{workflow-32EMNRWX.js → workflow-HTFJ4KF7.js} +15 -15
- package/dist/cli/{workflow-AW6GZHG2.mjs → workflow-RDDDDQEH.mjs} +5 -5
- 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-GFQMA47B.js +0 -39
- package/dist/cli/git-FCDTBBB3.js +0 -23
- package/dist/cli/play-2EJN5QAI.js +0 -157
- package/dist/cli/search-MLQXX25Z.js +0 -26
- package/dist/cli/skills-P3HX4XRQ.js +0 -28
- package/dist/cli/tools-SHVTCQ2K.js +0 -40
- package/dist/cli/update-TI6YJEOZ.js +0 -28
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXPJKXSQSjs = require('./chunk-XPJKXSQS.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -25,7 +25,7 @@ var _chunkSK6KH37Mjs = require('./chunk-SK6KH37M.js');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkSOV673GHjs = require('./chunk-SOV673GH.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
|
|
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
|
|
|
52
52
|
return `Service notice: ${banner.message}`;
|
|
53
53
|
}
|
|
54
54
|
function envFilePath(baseUrl) {
|
|
55
|
-
return
|
|
55
|
+
return _chunkSOV673GHjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
56
56
|
}
|
|
57
57
|
function normalizeAuthScope(value) {
|
|
58
58
|
if (!value || value === "global") return "global";
|
|
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
|
|
|
65
65
|
}
|
|
66
66
|
function pendingClaimPath(baseUrl, scope) {
|
|
67
67
|
if (scope === "folder") {
|
|
68
|
-
const target =
|
|
68
|
+
const target = _chunkSOV673GHjs.resolveProjectPinTarget.call(void 0, );
|
|
69
69
|
if (!target.ok) {
|
|
70
70
|
throw new Error(
|
|
71
71
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
75
75
|
}
|
|
76
76
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
77
77
|
}
|
|
78
|
-
return `${
|
|
78
|
+
return `${_chunkSOV673GHjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
79
79
|
}
|
|
80
80
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
81
|
-
return `${
|
|
81
|
+
return `${_chunkSOV673GHjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
82
82
|
}
|
|
83
83
|
function savePendingClaim(baseUrl, claim) {
|
|
84
84
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
|
|
|
180
180
|
function shouldWaitForRegisterClaim(mode) {
|
|
181
181
|
if (mode === "yes") return true;
|
|
182
182
|
if (mode === "no") return false;
|
|
183
|
-
return
|
|
183
|
+
return _chunkSOV673GHjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
184
184
|
}
|
|
185
185
|
function saveEnvValues(values, baseUrl, scope) {
|
|
186
186
|
const filtered = {
|
|
187
|
-
...values[
|
|
188
|
-
...values[
|
|
189
|
-
...values[
|
|
190
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
187
|
+
...values[_chunkSOV673GHjs.HOST_URL_ENV] ? { [_chunkSOV673GHjs.HOST_URL_ENV]: values[_chunkSOV673GHjs.HOST_URL_ENV] } : {},
|
|
188
|
+
...values[_chunkSOV673GHjs.API_KEY_ENV] ? { [_chunkSOV673GHjs.API_KEY_ENV]: values[_chunkSOV673GHjs.API_KEY_ENV] } : {},
|
|
189
|
+
...values[_chunkSOV673GHjs.ACTIVE_ORG_ID_ENV] ? { [_chunkSOV673GHjs.ACTIVE_ORG_ID_ENV]: values[_chunkSOV673GHjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
190
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkSOV673GHjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkSOV673GHjs.ACTIVE_ORG_NAME_ENV]: values[_chunkSOV673GHjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
191
191
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
192
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
192
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkSOV673GHjs.FEATURES_ENV) ? { [_chunkSOV673GHjs.FEATURES_ENV]: values[_chunkSOV673GHjs.FEATURES_ENV] } : {}
|
|
193
193
|
};
|
|
194
194
|
if (scope === "folder") {
|
|
195
|
-
|
|
195
|
+
_chunkSOV673GHjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
196
196
|
} else {
|
|
197
|
-
|
|
197
|
+
_chunkSOV673GHjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
function activeOrgEnvValues(data) {
|
|
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
|
|
|
202
202
|
if (!orgId) return {};
|
|
203
203
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
204
204
|
return {
|
|
205
|
-
[
|
|
206
|
-
[
|
|
207
|
-
...
|
|
205
|
+
[_chunkSOV673GHjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
206
|
+
[_chunkSOV673GHjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
207
|
+
..._chunkSOV673GHjs.featureEnvValues.call(void 0, data)
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
211
211
|
const headers = {
|
|
212
212
|
"Content-Type": "application/json",
|
|
213
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
213
|
+
"User-Agent": `deepline-ts-sdk/${_chunkSOV673GHjs.SDK_VERSION}`,
|
|
214
214
|
"X-Deepline-Client-Family": "sdk",
|
|
215
215
|
"X-Deepline-CLI-Family": "sdk",
|
|
216
|
-
"X-Deepline-Agent-Runtime":
|
|
217
|
-
"X-Deepline-CLI-Version":
|
|
218
|
-
"X-Deepline-SDK-Version":
|
|
219
|
-
"X-Deepline-API-Contract":
|
|
216
|
+
"X-Deepline-Agent-Runtime": _chunkSOV673GHjs.detectAgentRuntime.call(void 0, ),
|
|
217
|
+
"X-Deepline-CLI-Version": _chunkSOV673GHjs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-SDK-Version": _chunkSOV673GHjs.SDK_VERSION,
|
|
219
|
+
"X-Deepline-API-Contract": _chunkSOV673GHjs.SDK_API_CONTRACT
|
|
220
220
|
};
|
|
221
221
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
222
222
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -262,7 +262,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
262
262
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
263
263
|
}
|
|
264
264
|
async function reportSetupCompleted(input) {
|
|
265
|
-
const apiKey = input.authScope === "folder" ?
|
|
265
|
+
const apiKey = input.authScope === "folder" ? _chunkSOV673GHjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkSOV673GHjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
266
266
|
if (!apiKey) return;
|
|
267
267
|
try {
|
|
268
268
|
await httpJson(
|
|
@@ -359,7 +359,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
|
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
361
|
async function handleRegister(args) {
|
|
362
|
-
const baseUrl =
|
|
362
|
+
const baseUrl = _chunkSOV673GHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
363
363
|
let orgName = "";
|
|
364
364
|
let orgId = "";
|
|
365
365
|
let agentName = "";
|
|
@@ -414,19 +414,19 @@ async function handleRegister(args) {
|
|
|
414
414
|
});
|
|
415
415
|
saveEnvValues(
|
|
416
416
|
{
|
|
417
|
-
[
|
|
417
|
+
[_chunkSOV673GHjs.HOST_URL_ENV]: baseUrl
|
|
418
418
|
},
|
|
419
419
|
baseUrl,
|
|
420
420
|
authScope
|
|
421
421
|
);
|
|
422
422
|
}
|
|
423
423
|
if (claimUrl) {
|
|
424
|
-
const shouldOpen = waitMode !== "no" &&
|
|
424
|
+
const shouldOpen = waitMode !== "no" && _chunkSOV673GHjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
425
425
|
console.log(
|
|
426
426
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
427
427
|
);
|
|
428
428
|
console.log(` ${claimUrl}`);
|
|
429
|
-
if (shouldOpen)
|
|
429
|
+
if (shouldOpen) _chunkXPJKXSQSjs.openInBrowser.call(void 0, claimUrl);
|
|
430
430
|
}
|
|
431
431
|
if (data.cli_message) {
|
|
432
432
|
console.log(String(data.cli_message));
|
|
@@ -469,8 +469,8 @@ async function handleRegister(args) {
|
|
|
469
469
|
if (apiKey) {
|
|
470
470
|
saveEnvValues(
|
|
471
471
|
{
|
|
472
|
-
[
|
|
473
|
-
[
|
|
472
|
+
[_chunkSOV673GHjs.HOST_URL_ENV]: baseUrl,
|
|
473
|
+
[_chunkSOV673GHjs.API_KEY_ENV]: apiKey,
|
|
474
474
|
...activeOrgEnvValues(statusData)
|
|
475
475
|
},
|
|
476
476
|
baseUrl,
|
|
@@ -492,7 +492,7 @@ async function handleRegister(args) {
|
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
async function handleWait(args) {
|
|
495
|
-
const baseUrl =
|
|
495
|
+
const baseUrl = _chunkSOV673GHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
496
496
|
let timeoutSeconds = 300;
|
|
497
497
|
let requestedScope;
|
|
498
498
|
if (args.includes("--auth-scope")) {
|
|
@@ -516,7 +516,7 @@ async function handleWait(args) {
|
|
|
516
516
|
const authScope = resumed.scope;
|
|
517
517
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _12 => _12.claimToken]), () => ( ""));
|
|
518
518
|
if (!pendingClaim) {
|
|
519
|
-
const scopedApiKey = authScope === "folder" ?
|
|
519
|
+
const scopedApiKey = authScope === "folder" ? _chunkSOV673GHjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkSOV673GHjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
520
520
|
if (scopedApiKey) {
|
|
521
521
|
console.log("Already connected.");
|
|
522
522
|
return EXIT_OK;
|
|
@@ -559,8 +559,8 @@ async function handleWait(args) {
|
|
|
559
559
|
if (apiKey) {
|
|
560
560
|
saveEnvValues(
|
|
561
561
|
{
|
|
562
|
-
[
|
|
563
|
-
[
|
|
562
|
+
[_chunkSOV673GHjs.HOST_URL_ENV]: baseUrl,
|
|
563
|
+
[_chunkSOV673GHjs.API_KEY_ENV]: apiKey,
|
|
564
564
|
...activeOrgEnvValues(data)
|
|
565
565
|
},
|
|
566
566
|
baseUrl,
|
|
@@ -584,8 +584,8 @@ async function handleWait(args) {
|
|
|
584
584
|
return EXIT_AUTH;
|
|
585
585
|
}
|
|
586
586
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
587
|
-
const baseUrl =
|
|
588
|
-
const apiKey =
|
|
587
|
+
const baseUrl = _chunkSOV673GHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
588
|
+
const apiKey = _chunkSOV673GHjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
589
589
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
590
590
|
try {
|
|
591
591
|
const { status, data } = await httpJson(
|
|
@@ -608,9 +608,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
610
|
async function handleStatus(args) {
|
|
611
|
-
const baseUrl =
|
|
611
|
+
const baseUrl = _chunkSOV673GHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
612
612
|
const reveal = args.includes("--reveal");
|
|
613
|
-
const jsonOutput =
|
|
613
|
+
const jsonOutput = _chunkXPJKXSQSjs.argsWantJson.call(void 0, args);
|
|
614
614
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
615
615
|
let authScope = null;
|
|
616
616
|
if (hasExplicitAuthScope) {
|
|
@@ -651,14 +651,14 @@ async function handleStatus(args) {
|
|
|
651
651
|
};
|
|
652
652
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
653
653
|
}
|
|
654
|
-
const apiKey = authScope === "folder" ?
|
|
654
|
+
const apiKey = authScope === "folder" ? _chunkSOV673GHjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkSOV673GHjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkSOV673GHjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
655
655
|
if (!apiKey) {
|
|
656
656
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
657
657
|
baseUrl,
|
|
658
658
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
659
659
|
);
|
|
660
660
|
if (pendingClaim) {
|
|
661
|
-
|
|
661
|
+
_chunkXPJKXSQSjs.printCommandEnvelope.call(void 0,
|
|
662
662
|
{
|
|
663
663
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
664
664
|
status: "pending",
|
|
@@ -679,7 +679,7 @@ async function handleStatus(args) {
|
|
|
679
679
|
);
|
|
680
680
|
return EXIT_OK;
|
|
681
681
|
}
|
|
682
|
-
|
|
682
|
+
_chunkXPJKXSQSjs.printCommandEnvelope.call(void 0,
|
|
683
683
|
{
|
|
684
684
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
685
685
|
status: "not connected",
|
|
@@ -712,7 +712,7 @@ async function handleStatus(args) {
|
|
|
712
712
|
}
|
|
713
713
|
);
|
|
714
714
|
if (status === 401 || status === 403) {
|
|
715
|
-
|
|
715
|
+
_chunkXPJKXSQSjs.printCommandEnvelope.call(void 0,
|
|
716
716
|
{
|
|
717
717
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
718
718
|
status: "unauthorized",
|
|
@@ -739,7 +739,7 @@ async function handleStatus(args) {
|
|
|
739
739
|
console.error(`Auth status error (status ${status}).`);
|
|
740
740
|
return EXIT_SERVER;
|
|
741
741
|
}
|
|
742
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
742
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkSOV673GHjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
743
743
|
clearSatisfiedPendingClaim(
|
|
744
744
|
baseUrl,
|
|
745
745
|
resolvedAuthScope,
|
|
@@ -767,28 +767,28 @@ async function handleStatus(args) {
|
|
|
767
767
|
if (apiKeyResp) {
|
|
768
768
|
saveEnvValues(
|
|
769
769
|
{
|
|
770
|
-
[
|
|
771
|
-
[
|
|
770
|
+
[_chunkSOV673GHjs.HOST_URL_ENV]: baseUrl,
|
|
771
|
+
[_chunkSOV673GHjs.API_KEY_ENV]: apiKeyResp,
|
|
772
772
|
...activeOrgEnvValues(data)
|
|
773
773
|
},
|
|
774
774
|
baseUrl,
|
|
775
775
|
resolvedAuthScope
|
|
776
776
|
);
|
|
777
777
|
if (resolvedAuthScope === "folder") {
|
|
778
|
-
const target =
|
|
778
|
+
const target = _chunkSOV673GHjs.resolveProjectPinTarget.call(void 0, );
|
|
779
779
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
780
780
|
} else {
|
|
781
781
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
785
|
-
saveEnvValues(
|
|
784
|
+
} else if (resolvedAuthScope === "folder" || _chunkSOV673GHjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
785
|
+
saveEnvValues(_chunkSOV673GHjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
786
786
|
}
|
|
787
|
-
|
|
787
|
+
_chunkXPJKXSQSjs.printCommandEnvelope.call(void 0,
|
|
788
788
|
{
|
|
789
789
|
...payload,
|
|
790
|
-
...
|
|
791
|
-
command_context:
|
|
790
|
+
..._chunkSOV673GHjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
791
|
+
command_context: _chunkSOV673GHjs.resolveCliCommandContext.call(void 0,
|
|
792
792
|
{ baseUrl, apiKey },
|
|
793
793
|
resolvedAuthScope
|
|
794
794
|
)
|
|
@@ -21,7 +21,7 @@ var _chunkPAIMOGCMjs = require('./chunk-PAIMOGCM.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkSOV673GHjs = require('./chunk-SOV673GH.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, _chunkSOV673GHjs.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, _chunkSOV673GHjs.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, _chunkSOV673GHjs.CustomerDbQueryOutcomeUnknownError)(
|
|
160
160
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
161
161
|
"The server did not confirm the original atomic SQL operation.",
|
|
162
162
|
200,
|
|
@@ -2910,8 +2910,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2910
2910
|
}
|
|
2911
2911
|
const receivers = _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
|
|
2912
2912
|
return {
|
|
2913
|
-
[
|
|
2914
|
-
...receivers ? { [
|
|
2913
|
+
[_chunkSOV673GHjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2914
|
+
...receivers ? { [_chunkSOV673GHjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2915
2915
|
};
|
|
2916
2916
|
}
|
|
2917
2917
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2927,7 +2927,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2927
2927
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2928
2928
|
);
|
|
2929
2929
|
}
|
|
2930
|
-
return { [
|
|
2930
|
+
return { [_chunkSOV673GHjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2931
2931
|
}
|
|
2932
2932
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2933
2933
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3217,8 +3217,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3217
3217
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3218
3218
|
*/
|
|
3219
3219
|
constructor(options) {
|
|
3220
|
-
this.config =
|
|
3221
|
-
this.http = new (0,
|
|
3220
|
+
this.config = _chunkSOV673GHjs.resolveConfig.call(void 0, options);
|
|
3221
|
+
this.http = new (0, _chunkSOV673GHjs.HttpClient)(this.config);
|
|
3222
3222
|
this.toolCalls = new ToolCalls(
|
|
3223
3223
|
this.http,
|
|
3224
3224
|
this.config.timeout,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
observedMaxText,
|
|
14
14
|
recentSearchRef,
|
|
15
15
|
registerDeprecatedSearchCommand
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QX473E5P.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-7TGFUXT3.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-JV3I3SPK.mjs";
|
|
50
50
|
import {
|
|
51
51
|
resolveConfig,
|
|
52
52
|
sdkCliStateDirPath
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-4GSECA4G.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-EQWRAHDB.mjs");
|
|
1116
1116
|
process.exitCode = await describeAnything(
|
|
1117
1117
|
toolId,
|
|
1118
1118
|
{
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IWP4FVK6.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-LDTDN3RX.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JV3I3SPK.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-4GSECA4G.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunk6XWYHSKEjs = require('./chunk-6XWYHSKE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXPJKXSQSjs = require('./chunk-XPJKXSQS.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkSOV673GHjs = require('./chunk-SOV673GH.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
var _commander = require('commander');
|
|
@@ -18,7 +18,7 @@ var _fs = require('fs');
|
|
|
18
18
|
var _path = require('path');
|
|
19
19
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
20
20
|
function lastSearchPath() {
|
|
21
|
-
return _path.join.call(void 0,
|
|
21
|
+
return _path.join.call(void 0, _chunkSOV673GHjs.sdkCliStateDirPath.call(void 0, _chunkSOV673GHjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
22
22
|
}
|
|
23
23
|
function rememberSearchRef(searchRef) {
|
|
24
24
|
try {
|
|
@@ -259,7 +259,7 @@ function searchRow(item) {
|
|
|
259
259
|
}
|
|
260
260
|
function renderSearchResults(result) {
|
|
261
261
|
if (result.results.length === 0)
|
|
262
|
-
return
|
|
262
|
+
return _chunkXPJKXSQSjs.renderCommandEnvelopeText.call(void 0, result);
|
|
263
263
|
const rows = result.results.map(searchRow);
|
|
264
264
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
265
265
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -283,7 +283,7 @@ function renderSearchResults(result) {
|
|
|
283
283
|
actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
|
|
284
284
|
};
|
|
285
285
|
const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
|
|
286
|
-
${
|
|
286
|
+
${_chunkXPJKXSQSjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
287
287
|
const notes = rows.flatMap(
|
|
288
288
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
289
289
|
);
|
|
@@ -360,7 +360,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
360
360
|
console.error(USAGE);
|
|
361
361
|
return 1;
|
|
362
362
|
}
|
|
363
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
363
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunk6XWYHSKEjs.DeeplineClient)().search({
|
|
364
364
|
query,
|
|
365
365
|
types,
|
|
366
366
|
exclude,
|
|
@@ -374,7 +374,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
374
374
|
});
|
|
375
375
|
if (searchRef) rememberSearchRef(searchRef);
|
|
376
376
|
pointAtDescribe(result);
|
|
377
|
-
|
|
377
|
+
_chunkXPJKXSQSjs.printCommandEnvelope.call(void 0, result, {
|
|
378
378
|
json: options.json === true,
|
|
379
379
|
text: renderSearchResults(result)
|
|
380
380
|
});
|
|
@@ -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.384",
|
|
53
53
|
updateSummary: "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.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JV3I3SPK.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-4GSECA4G.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -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 _chunkXPJKXSQSjs = require('./chunk-XPJKXSQS.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSOV673GHjs = require('./chunk-SOV673GH.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 = _chunkSOV673GHjs.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 } = _chunkXPJKXSQSjs.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
|
+
_chunkXPJKXSQSjs.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
|
+
_chunkXPJKXSQSjs.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
|
+
_chunkXPJKXSQSjs.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
|
+
_chunkXPJKXSQSjs.printCommandEnvelope.call(void 0,
|
|
675
675
|
{
|
|
676
676
|
ok: true,
|
|
677
677
|
file: outputPath,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JV3I3SPK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4GSECA4G.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-GAMFK2ZP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JV3I3SPK.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
sdkCliStateDirPath,
|
|
23
23
|
skillsAgentPathSegment,
|
|
24
24
|
writeSdkSkillsLocalVersion
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4GSECA4G.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|
|
28
28
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -605,6 +605,7 @@ function buildEnvironmentContext() {
|
|
|
605
605
|
}
|
|
606
606
|
function failureReportHeaders(apiKey) {
|
|
607
607
|
return {
|
|
608
|
+
...deploymentProtectionHeaders(),
|
|
608
609
|
Authorization: `Bearer ${apiKey}`,
|
|
609
610
|
"Content-Type": "application/json",
|
|
610
611
|
"User-Agent": `deepline-ts-sdk/${SDK_VERSION}`,
|