deepline 0.3.341 → 0.3.343
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/http.ts +9 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +14 -0
- package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +2 -0
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +33 -0
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +15 -0
- package/dist/cli/{auth-VIQ6WBU5.mjs → auth-IPOSX2NV.mjs} +4 -4
- package/dist/cli/auth-J2C5CQ7M.js +31 -0
- package/dist/cli/{billing-7MIYVDBJ.mjs → billing-CWTZDAOC.mjs} +4 -4
- package/dist/cli/{billing-FW5TG3CQ.js → billing-ZZKX4IFS.js} +71 -71
- package/dist/cli/{chunk-IWSPBSV7.mjs → chunk-2Y2QZJBT.mjs} +1 -1
- package/dist/cli/{chunk-WQ5LPOFC.js → chunk-63UBRDGC.js} +60 -60
- package/dist/cli/{chunk-PIVZA4GI.js → chunk-AUB3AW3P.js} +8 -4
- package/dist/cli/{chunk-7IT3B2BL.js → chunk-BCF43TLG.js} +27 -28
- package/dist/cli/{chunk-5RSBKWF6.mjs → chunk-CVIAYYLR.mjs} +2 -2
- package/dist/cli/{chunk-Y2BTWBO7.mjs → chunk-DEDNTNXS.mjs} +1 -1
- package/dist/cli/{chunk-2DFZELZG.js → chunk-ELZ4HEPQ.js} +227 -227
- package/dist/cli/{chunk-FH6IVCYY.js → chunk-ERFIHZXT.js} +57 -67
- package/dist/cli/{chunk-5GQQMICZ.js → chunk-FM36CTMM.js} +9 -9
- package/dist/cli/{chunk-XQD53NOJ.js → chunk-FSNKEEBA.js} +1 -1
- package/dist/cli/{chunk-BX6GJWBS.mjs → chunk-GISYO3JA.mjs} +22 -23
- package/dist/cli/{chunk-LT33BWLY.js → chunk-IPEE3DIV.js} +6 -6
- package/dist/cli/{chunk-ASW2NN7E.js → chunk-JGW7AR5N.js} +2 -2
- package/dist/cli/{chunk-AFCZAA2Y.js → chunk-JS7JVUZZ.js} +8 -8
- package/dist/cli/{chunk-TU3WZZG4.mjs → chunk-KLEZD6JX.mjs} +8 -8
- package/dist/cli/{chunk-KIGZU235.mjs → chunk-LY33N2W6.mjs} +2 -2
- package/dist/cli/{chunk-ZK7BK7OD.mjs → chunk-QV2WIEUP.mjs} +11 -21
- package/dist/cli/{chunk-7ZBSHTYB.mjs → chunk-RB2ELEQ5.mjs} +4 -4
- package/dist/cli/{chunk-MGYI6JH2.js → chunk-RDXH4KXG.js} +26 -26
- package/dist/cli/{chunk-TVNBP3CX.mjs → chunk-U5L6FIIL.mjs} +1 -1
- package/dist/cli/{chunk-U4VULGDJ.mjs → chunk-UJFBO6QV.mjs} +2 -2
- package/dist/cli/{chunk-VO4RF766.mjs → chunk-W6LB26RC.mjs} +5 -1
- package/dist/cli/{chunk-4LXK5CMK.mjs → chunk-WBXTRZAX.mjs} +1 -1
- package/dist/cli/{chunk-NUIPBZVP.js → chunk-XOX3Y5OP.js} +48 -48
- package/dist/cli/{chunk-ATLE7AKN.js → chunk-ZGIXGBKF.js} +15 -15
- package/dist/cli/{chunk-24RQUGMX.mjs → chunk-ZQFYR6NT.mjs} +8 -8
- package/dist/cli/{client-5FQFKJS3.mjs → client-7ZUYHDCL.mjs} +3 -3
- package/dist/cli/client-CCDQC7ZY.js +20 -0
- package/dist/cli/{csv-J7CGFUZO.mjs → csv-6CFRU4CQ.mjs} +3 -3
- package/dist/cli/{csv-X5GUUDBX.js → csv-7BL43EOB.js} +12 -12
- package/dist/cli/{db-SQXA3O74.js → db-EJETRBBT.js} +29 -29
- package/dist/cli/{db-DXPCEPTU.mjs → db-RUKRHPBV.mjs} +4 -4
- package/dist/cli/{describe-VHW7FVBJ.mjs → describe-AVBCGKX4.mjs} +8 -8
- package/dist/cli/{describe-EQTSIVVZ.js → describe-N46DGDQ4.js} +15 -15
- package/dist/cli/{executions-OSF7KBAM.mjs → executions-FCTCQYY3.mjs} +4 -4
- package/dist/cli/{executions-4XLP2D45.js → executions-OPBBBSDT.js} +6 -6
- package/dist/cli/{feedback-7EBKMWNP.js → feedback-RSPSGS2W.js} +7 -7
- package/dist/cli/{feedback-HM4OG6GJ.mjs → feedback-XY7F7FF6.mjs} +3 -3
- package/dist/cli/git-DZTOBIUF.js +23 -0
- package/dist/cli/{git-LXIXK5ZP.mjs → git-ZQ534TRG.mjs} +4 -4
- package/dist/cli/index.js +80 -80
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-HEDDLUOF.mjs → legacy-noops-S4Q4TBKQ.mjs} +4 -4
- package/dist/cli/{legacy-noops-O5TQI3GH.js → legacy-noops-WCLAYQNO.js} +7 -7
- package/dist/cli/{monitors-6EX3T2US.mjs → monitors-7EONZILI.mjs} +4 -4
- package/dist/cli/{monitors-334IBGT6.js → monitors-UD6C7YUQ.js} +85 -85
- package/dist/cli/{org-VWLMFKI7.js → org-EGED4FVT.js} +60 -60
- package/dist/cli/{org-ZMKKQ5EY.mjs → org-SPZF2UBU.mjs} +4 -4
- package/dist/cli/play-5MDIQGCF.js +153 -0
- package/dist/cli/{play-CSMPSPXC.mjs → play-KXWJX7RB.mjs} +7 -7
- package/dist/cli/{providers-Z3F3M67Z.js → providers-HWGPSJZ7.js} +7 -7
- package/dist/cli/{providers-PE4K7ZNQ.mjs → providers-P2MRBKX2.mjs} +4 -4
- package/dist/cli/{quickstart-BBO4ZMFA.js → quickstart-CL4AB46M.js} +5 -5
- package/dist/cli/{quickstart-P6Q5NLOI.mjs → quickstart-VEEHUU7O.mjs} +3 -3
- package/dist/cli/search-6H77HQL3.js +26 -0
- package/dist/cli/{search-WLQSHUO5.mjs → search-D7CLJLVU.mjs} +5 -5
- package/dist/cli/{secrets-IITTIRV2.js → secrets-NGB5OD2W.js} +13 -13
- package/dist/cli/{secrets-JAYFSPQL.mjs → secrets-ZDW4MTJL.mjs} +4 -4
- package/dist/cli/{sessions-XIGZKWJG.mjs → sessions-HYUYIAHB.mjs} +4 -4
- package/dist/cli/{sessions-EAWCTMCB.js → sessions-MTN3SBTL.js} +5 -5
- package/dist/cli/{settings-XOZ3IVRT.mjs → settings-RMABGZ6N.mjs} +7 -7
- package/dist/cli/{settings-S6CF5T6U.js → settings-X43X7H54.js} +74 -74
- package/dist/cli/{setup-QGS4YTRD.mjs → setup-N7KUH3AM.mjs} +6 -6
- package/dist/cli/{setup-PO6TJJ5P.js → setup-QEM6U5TO.js} +41 -41
- package/dist/cli/skills-7H2OD626.js +28 -0
- package/dist/cli/{skills-I6ZYMTOV.mjs → skills-H3STANPK.mjs} +4 -4
- package/dist/cli/{tools-XLYFZCRO.mjs → tools-FSEOJNTY.mjs} +6 -6
- package/dist/cli/tools-UYW5T5PU.js +40 -0
- package/dist/cli/{update-JTTZPF4K.mjs → update-6BUK4OLS.mjs} +6 -6
- package/dist/cli/update-K743Q4EF.js +28 -0
- package/dist/cli/{workflow-D2YLWJDP.js → workflow-4GZCYDZS.js} +15 -15
- package/dist/cli/{workflow-2R4X2YR5.mjs → workflow-Q7RJGAKL.mjs} +5 -5
- package/dist/{client-B-hjM1NX.d.mts → client-BHReRdWK.d.mts} +41 -0
- package/dist/{client-txa3om01.d.ts → client-DW3zASj8.d.ts} +41 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +10 -6
- package/dist/index.mjs +7 -3
- package/dist/install-integrity.json +76 -76
- 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/package.json +1 -1
- package/dist/cli/auth-R7MYOAIT.js +0 -31
- package/dist/cli/client-HTXSC666.js +0 -20
- package/dist/cli/git-4VXVJGO6.js +0 -23
- package/dist/cli/play-4OUTDB4O.js +0 -153
- package/dist/cli/search-6MGGRBOO.js +0 -26
- package/dist/cli/skills-2LS3SJP6.js +0 -28
- package/dist/cli/tools-JEO4GEFK.js +0 -40
- package/dist/cli/update-NYIWSIRQ.js +0 -28
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkIPEE3DIVjs = require('./chunk-IPEE3DIV.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -25,7 +25,7 @@ var _chunkLT33BWLYjs = require('./chunk-LT33BWLY.js');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkAUB3AW3Pjs = require('./chunk-AUB3AW3P.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 _chunkAUB3AW3Pjs.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 = _chunkAUB3AW3Pjs.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 `${_chunkAUB3AW3Pjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
79
79
|
}
|
|
80
80
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
81
|
-
return `${
|
|
81
|
+
return `${_chunkAUB3AW3Pjs.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 _chunkAUB3AW3Pjs.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[_chunkAUB3AW3Pjs.HOST_URL_ENV] ? { [_chunkAUB3AW3Pjs.HOST_URL_ENV]: values[_chunkAUB3AW3Pjs.HOST_URL_ENV] } : {},
|
|
188
|
+
...values[_chunkAUB3AW3Pjs.API_KEY_ENV] ? { [_chunkAUB3AW3Pjs.API_KEY_ENV]: values[_chunkAUB3AW3Pjs.API_KEY_ENV] } : {},
|
|
189
|
+
...values[_chunkAUB3AW3Pjs.ACTIVE_ORG_ID_ENV] ? { [_chunkAUB3AW3Pjs.ACTIVE_ORG_ID_ENV]: values[_chunkAUB3AW3Pjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
190
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkAUB3AW3Pjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkAUB3AW3Pjs.ACTIVE_ORG_NAME_ENV]: values[_chunkAUB3AW3Pjs.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, _chunkAUB3AW3Pjs.FEATURES_ENV) ? { [_chunkAUB3AW3Pjs.FEATURES_ENV]: values[_chunkAUB3AW3Pjs.FEATURES_ENV] } : {}
|
|
193
193
|
};
|
|
194
194
|
if (scope === "folder") {
|
|
195
|
-
|
|
195
|
+
_chunkAUB3AW3Pjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
196
196
|
} else {
|
|
197
|
-
|
|
197
|
+
_chunkAUB3AW3Pjs.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
|
+
[_chunkAUB3AW3Pjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
206
|
+
[_chunkAUB3AW3Pjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
207
|
+
..._chunkAUB3AW3Pjs.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/${_chunkAUB3AW3Pjs.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": _chunkAUB3AW3Pjs.detectAgentRuntime.call(void 0, ),
|
|
217
|
+
"X-Deepline-CLI-Version": _chunkAUB3AW3Pjs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-SDK-Version": _chunkAUB3AW3Pjs.SDK_VERSION,
|
|
219
|
+
"X-Deepline-API-Contract": _chunkAUB3AW3Pjs.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()]);
|
|
@@ -254,7 +254,7 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
254
254
|
throw lastError instanceof Error ? lastError : new Error(String(lastError));
|
|
255
255
|
}
|
|
256
256
|
async function reportSetupCompleted(input) {
|
|
257
|
-
const apiKey = input.authScope === "folder" ?
|
|
257
|
+
const apiKey = input.authScope === "folder" ? _chunkAUB3AW3Pjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkAUB3AW3Pjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
258
258
|
if (!apiKey) return;
|
|
259
259
|
try {
|
|
260
260
|
await httpJson(
|
|
@@ -351,7 +351,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
|
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
async function handleRegister(args) {
|
|
354
|
-
const baseUrl =
|
|
354
|
+
const baseUrl = _chunkAUB3AW3Pjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
355
355
|
let orgName = "";
|
|
356
356
|
let orgId = "";
|
|
357
357
|
let agentName = "";
|
|
@@ -406,19 +406,19 @@ async function handleRegister(args) {
|
|
|
406
406
|
});
|
|
407
407
|
saveEnvValues(
|
|
408
408
|
{
|
|
409
|
-
[
|
|
409
|
+
[_chunkAUB3AW3Pjs.HOST_URL_ENV]: baseUrl
|
|
410
410
|
},
|
|
411
411
|
baseUrl,
|
|
412
412
|
authScope
|
|
413
413
|
);
|
|
414
414
|
}
|
|
415
415
|
if (claimUrl) {
|
|
416
|
-
const shouldOpen = waitMode !== "no" &&
|
|
416
|
+
const shouldOpen = waitMode !== "no" && _chunkAUB3AW3Pjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
417
417
|
console.log(
|
|
418
418
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
419
419
|
);
|
|
420
420
|
console.log(` ${claimUrl}`);
|
|
421
|
-
if (shouldOpen)
|
|
421
|
+
if (shouldOpen) _chunkIPEE3DIVjs.openInBrowser.call(void 0, claimUrl);
|
|
422
422
|
}
|
|
423
423
|
if (data.cli_message) {
|
|
424
424
|
console.log(String(data.cli_message));
|
|
@@ -461,8 +461,8 @@ async function handleRegister(args) {
|
|
|
461
461
|
if (apiKey) {
|
|
462
462
|
saveEnvValues(
|
|
463
463
|
{
|
|
464
|
-
[
|
|
465
|
-
[
|
|
464
|
+
[_chunkAUB3AW3Pjs.HOST_URL_ENV]: baseUrl,
|
|
465
|
+
[_chunkAUB3AW3Pjs.API_KEY_ENV]: apiKey,
|
|
466
466
|
...activeOrgEnvValues(statusData)
|
|
467
467
|
},
|
|
468
468
|
baseUrl,
|
|
@@ -484,7 +484,7 @@ async function handleRegister(args) {
|
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
async function handleWait(args) {
|
|
487
|
-
const baseUrl =
|
|
487
|
+
const baseUrl = _chunkAUB3AW3Pjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
488
488
|
let timeoutSeconds = 300;
|
|
489
489
|
let requestedScope;
|
|
490
490
|
if (args.includes("--auth-scope")) {
|
|
@@ -508,12 +508,12 @@ async function handleWait(args) {
|
|
|
508
508
|
const authScope = resumed.scope;
|
|
509
509
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _11 => _11.claimToken]), () => ( ""));
|
|
510
510
|
if (!pendingClaim) {
|
|
511
|
-
const scopedApiKey = authScope === "folder" ?
|
|
511
|
+
const scopedApiKey = authScope === "folder" ? _chunkAUB3AW3Pjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkAUB3AW3Pjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
512
512
|
if (scopedApiKey) {
|
|
513
513
|
console.log("Already connected.");
|
|
514
514
|
return EXIT_OK;
|
|
515
515
|
}
|
|
516
|
-
console.error("No pending approval. Run: deepline auth register
|
|
516
|
+
console.error("No pending approval. Run: deepline auth register");
|
|
517
517
|
return EXIT_AUTH;
|
|
518
518
|
}
|
|
519
519
|
const deadline = Date.now() + timeoutSeconds * 1e3;
|
|
@@ -551,8 +551,8 @@ async function handleWait(args) {
|
|
|
551
551
|
if (apiKey) {
|
|
552
552
|
saveEnvValues(
|
|
553
553
|
{
|
|
554
|
-
[
|
|
555
|
-
[
|
|
554
|
+
[_chunkAUB3AW3Pjs.HOST_URL_ENV]: baseUrl,
|
|
555
|
+
[_chunkAUB3AW3Pjs.API_KEY_ENV]: apiKey,
|
|
556
556
|
...activeOrgEnvValues(data)
|
|
557
557
|
},
|
|
558
558
|
baseUrl,
|
|
@@ -576,9 +576,9 @@ async function handleWait(args) {
|
|
|
576
576
|
return EXIT_AUTH;
|
|
577
577
|
}
|
|
578
578
|
async function handleStatus(args) {
|
|
579
|
-
const baseUrl =
|
|
579
|
+
const baseUrl = _chunkAUB3AW3Pjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
580
580
|
const reveal = args.includes("--reveal");
|
|
581
|
-
const jsonOutput =
|
|
581
|
+
const jsonOutput = _chunkIPEE3DIVjs.argsWantJson.call(void 0, args);
|
|
582
582
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
583
583
|
let authScope = null;
|
|
584
584
|
if (hasExplicitAuthScope) {
|
|
@@ -618,14 +618,14 @@ async function handleStatus(args) {
|
|
|
618
618
|
};
|
|
619
619
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
620
620
|
}
|
|
621
|
-
const apiKey = authScope === "folder" ?
|
|
621
|
+
const apiKey = authScope === "folder" ? _chunkAUB3AW3Pjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkAUB3AW3Pjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkAUB3AW3Pjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
622
622
|
if (!apiKey) {
|
|
623
623
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
624
624
|
baseUrl,
|
|
625
625
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
626
626
|
);
|
|
627
627
|
if (pendingClaim) {
|
|
628
|
-
|
|
628
|
+
_chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
|
|
629
629
|
{
|
|
630
630
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
631
631
|
status: "pending",
|
|
@@ -646,12 +646,12 @@ async function handleStatus(args) {
|
|
|
646
646
|
);
|
|
647
647
|
return EXIT_OK;
|
|
648
648
|
}
|
|
649
|
-
|
|
649
|
+
_chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
|
|
650
650
|
{
|
|
651
651
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
652
652
|
status: "not connected",
|
|
653
653
|
connected: false,
|
|
654
|
-
next: "deepline auth register
|
|
654
|
+
next: "deepline auth register && deepline auth wait",
|
|
655
655
|
render: {
|
|
656
656
|
sections: [
|
|
657
657
|
{
|
|
@@ -660,10 +660,7 @@ async function handleStatus(args) {
|
|
|
660
660
|
}
|
|
661
661
|
],
|
|
662
662
|
actions: [
|
|
663
|
-
{
|
|
664
|
-
label: "Register",
|
|
665
|
-
command: "deepline auth register --wait auto"
|
|
666
|
-
},
|
|
663
|
+
{ label: "Register", command: "deepline auth register" },
|
|
667
664
|
{ label: "Wait", command: "deepline auth wait" }
|
|
668
665
|
]
|
|
669
666
|
}
|
|
@@ -682,12 +679,12 @@ async function handleStatus(args) {
|
|
|
682
679
|
}
|
|
683
680
|
);
|
|
684
681
|
if (status === 401 || status === 403) {
|
|
685
|
-
|
|
682
|
+
_chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
|
|
686
683
|
{
|
|
687
684
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
688
685
|
status: "unauthorized",
|
|
689
686
|
connected: false,
|
|
690
|
-
next: "deepline auth register
|
|
687
|
+
next: "deepline auth register && deepline auth wait",
|
|
691
688
|
render: {
|
|
692
689
|
sections: [
|
|
693
690
|
{
|
|
@@ -696,10 +693,7 @@ async function handleStatus(args) {
|
|
|
696
693
|
}
|
|
697
694
|
],
|
|
698
695
|
actions: [
|
|
699
|
-
{
|
|
700
|
-
label: "Register",
|
|
701
|
-
command: "deepline auth register --wait auto"
|
|
702
|
-
},
|
|
696
|
+
{ label: "Register", command: "deepline auth register" },
|
|
703
697
|
{ label: "Wait", command: "deepline auth wait" }
|
|
704
698
|
]
|
|
705
699
|
}
|
|
@@ -712,7 +706,7 @@ async function handleStatus(args) {
|
|
|
712
706
|
console.error(`Auth status error (status ${status}).`);
|
|
713
707
|
return EXIT_SERVER;
|
|
714
708
|
}
|
|
715
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
709
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkAUB3AW3Pjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
716
710
|
clearSatisfiedPendingClaim(
|
|
717
711
|
baseUrl,
|
|
718
712
|
resolvedAuthScope,
|
|
@@ -740,28 +734,28 @@ async function handleStatus(args) {
|
|
|
740
734
|
if (apiKeyResp) {
|
|
741
735
|
saveEnvValues(
|
|
742
736
|
{
|
|
743
|
-
[
|
|
744
|
-
[
|
|
737
|
+
[_chunkAUB3AW3Pjs.HOST_URL_ENV]: baseUrl,
|
|
738
|
+
[_chunkAUB3AW3Pjs.API_KEY_ENV]: apiKeyResp,
|
|
745
739
|
...activeOrgEnvValues(data)
|
|
746
740
|
},
|
|
747
741
|
baseUrl,
|
|
748
742
|
resolvedAuthScope
|
|
749
743
|
);
|
|
750
744
|
if (resolvedAuthScope === "folder") {
|
|
751
|
-
const target =
|
|
745
|
+
const target = _chunkAUB3AW3Pjs.resolveProjectPinTarget.call(void 0, );
|
|
752
746
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
753
747
|
} else {
|
|
754
748
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
755
749
|
}
|
|
756
750
|
}
|
|
757
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
758
|
-
saveEnvValues(
|
|
751
|
+
} else if (resolvedAuthScope === "folder" || _chunkAUB3AW3Pjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
752
|
+
saveEnvValues(_chunkAUB3AW3Pjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
759
753
|
}
|
|
760
|
-
|
|
754
|
+
_chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
|
|
761
755
|
{
|
|
762
756
|
...payload,
|
|
763
|
-
...
|
|
764
|
-
command_context:
|
|
757
|
+
..._chunkAUB3AW3Pjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
758
|
+
command_context: _chunkAUB3AW3Pjs.resolveCliCommandContext.call(void 0,
|
|
765
759
|
{ baseUrl, apiKey },
|
|
766
760
|
resolvedAuthScope
|
|
767
761
|
)
|
|
@@ -805,15 +799,11 @@ function registerAuthCommands(program) {
|
|
|
805
799
|
`
|
|
806
800
|
Common commands:
|
|
807
801
|
deepline auth register
|
|
808
|
-
deepline auth register --wait no
|
|
809
802
|
deepline auth wait --timeout 300
|
|
810
803
|
deepline auth status
|
|
811
804
|
deepline auth status --json
|
|
812
805
|
|
|
813
806
|
Notes:
|
|
814
|
-
Registration uses --wait auto by default: it waits locally and returns after
|
|
815
|
-
opening the approval page in Cowork. Use --wait no in CI or agent runs, then
|
|
816
|
-
finish with deepline auth wait.
|
|
817
807
|
Auth status shows the target host and active workspace without printing secrets.
|
|
818
808
|
Registering again re-approves the same account; it does not change the active
|
|
819
809
|
workspace. To switch, use deepline org list and deepline org set <org-id>.
|
|
@@ -831,15 +821,15 @@ Notes:
|
|
|
831
821
|
"after",
|
|
832
822
|
`
|
|
833
823
|
Notes:
|
|
834
|
-
Opens a browser approval page
|
|
835
|
-
|
|
824
|
+
Opens a browser approval page and waits for approval. In Cowork it prints the
|
|
825
|
+
link and returns; finish with deepline auth wait. Keep the default --wait auto
|
|
826
|
+
unless you have an explicit reason to pick another mode.
|
|
836
827
|
The saved API key is scoped to the selected workspace and host.
|
|
837
828
|
|
|
838
829
|
Examples:
|
|
839
830
|
deepline auth register
|
|
840
831
|
deepline auth register --org-name Acme --agent-name local-cli
|
|
841
|
-
deepline auth register --
|
|
842
|
-
deepline auth register --auth-scope folder --wait no
|
|
832
|
+
deepline auth register --auth-scope folder
|
|
843
833
|
`
|
|
844
834
|
).option(
|
|
845
835
|
"--org-name <name>",
|
|
@@ -15,7 +15,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkAUB3AW3Pjs = require('./chunk-AUB3AW3P.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
167
167
|
if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
|
|
168
168
|
// lost connections and explicitly unknown transaction resolution.
|
|
169
169
|
/^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
|
|
170
|
-
throw new (0,
|
|
170
|
+
throw new (0, _chunkAUB3AW3Pjs.CustomerDbQueryOutcomeUnknownError)(
|
|
171
171
|
error,
|
|
172
172
|
plan.request.body.operation_key
|
|
173
173
|
);
|
|
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
175
175
|
throw error;
|
|
176
176
|
}
|
|
177
177
|
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) {
|
|
178
|
-
throw new (0,
|
|
178
|
+
throw new (0, _chunkAUB3AW3Pjs.CustomerDbQueryOutcomeUnknownError)(
|
|
179
179
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
180
180
|
"The SQL response did not contain a valid result.",
|
|
181
181
|
200,
|
|
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
186
186
|
}
|
|
187
187
|
const operation = result.operation;
|
|
188
188
|
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))) {
|
|
189
|
-
throw new (0,
|
|
189
|
+
throw new (0, _chunkAUB3AW3Pjs.CustomerDbQueryOutcomeUnknownError)(
|
|
190
190
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
191
191
|
"The server did not confirm the original atomic SQL operation.",
|
|
192
192
|
200,
|
|
@@ -2875,8 +2875,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2875
2875
|
}
|
|
2876
2876
|
const receivers = _optionalChain([process, 'access', _102 => _102.env, 'access', _103 => _103.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _104 => _104.trim, 'call', _105 => _105()]);
|
|
2877
2877
|
return {
|
|
2878
|
-
[
|
|
2879
|
-
...receivers ? { [
|
|
2878
|
+
[_chunkAUB3AW3Pjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2879
|
+
...receivers ? { [_chunkAUB3AW3Pjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2880
2880
|
};
|
|
2881
2881
|
}
|
|
2882
2882
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2892,7 +2892,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2892
2892
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2893
2893
|
);
|
|
2894
2894
|
}
|
|
2895
|
-
return { [
|
|
2895
|
+
return { [_chunkAUB3AW3Pjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2896
2896
|
}
|
|
2897
2897
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2898
2898
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3182,8 +3182,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3182
3182
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3183
3183
|
*/
|
|
3184
3184
|
constructor(options) {
|
|
3185
|
-
this.config =
|
|
3186
|
-
this.http = new (0,
|
|
3185
|
+
this.config = _chunkAUB3AW3Pjs.resolveConfig.call(void 0, options);
|
|
3186
|
+
this.http = new (0, _chunkAUB3AW3Pjs.HttpClient)(this.config);
|
|
3187
3187
|
this.toolCalls = new ToolCalls(
|
|
3188
3188
|
this.http,
|
|
3189
3189
|
this.config.timeout,
|
|
@@ -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.343",
|
|
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
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DEDNTNXS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope,
|
|
6
6
|
renderCommandEnvelopeText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2Y2QZJBT.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveConfig,
|
|
10
10
|
sdkCliStateDirPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-W6LB26RC.mjs";
|
|
12
|
+
|
|
13
|
+
// src/cli/commands/search.ts
|
|
14
|
+
import { Option } from "commander";
|
|
12
15
|
|
|
13
16
|
// src/cli/search-ref.ts
|
|
14
17
|
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -171,7 +174,7 @@ var SEARCH_TYPES = [
|
|
|
171
174
|
"prebuilts",
|
|
172
175
|
"custom"
|
|
173
176
|
];
|
|
174
|
-
var USAGE = "Usage: deepline search [
|
|
177
|
+
var USAGE = "Usage: deepline search [task] [--type <types>] [--categories <categories>] [--search_terms <terms>] [--json]";
|
|
175
178
|
function parseTypes(flag, raw) {
|
|
176
179
|
const names = (raw ?? "").split(",").map((name) => name.trim().toLowerCase()).filter(Boolean);
|
|
177
180
|
const unknown = names.filter(
|
|
@@ -193,14 +196,11 @@ function appendCsv(value, previous) {
|
|
|
193
196
|
function addSearchOptions(command) {
|
|
194
197
|
return command.option(
|
|
195
198
|
"--categories <categories>",
|
|
196
|
-
"Comma-separated tool categories; may be used without a
|
|
199
|
+
"Comma-separated tool categories; may be used without a task"
|
|
197
200
|
).option(
|
|
198
201
|
"--search_terms <terms>",
|
|
199
|
-
"Comma-separated structured search terms; may be used without a
|
|
200
|
-
).option("--search-terms <terms>", "Alias for --search_terms").option(
|
|
201
|
-
"--task <sentence>",
|
|
202
|
-
"What you are trying to accomplish: input you have -> result you need"
|
|
203
|
-
).option("--limit <count>", "Maximum ranked results to return (1-50)").option("--offset <count>", "Zero-based ranked result offset").option("--search-mode <mode>", "Ranked search mode: v1 or v2").option("--include-search-debug", "Include ranked search debug metadata").option("--json", "Emit JSON output instead of the readable default");
|
|
202
|
+
"Comma-separated structured search terms; may be used without a task"
|
|
203
|
+
).option("--search-terms <terms>", "Alias for --search_terms").addOption(new Option("--task <sentence>").hideHelp()).option("--limit <count>", "Maximum ranked results to return (1-50)").option("--offset <count>", "Zero-based ranked result offset").option("--search-mode <mode>", "Ranked search mode: v1 or v2").option("--include-search-debug", "Include ranked search debug metadata").option("--json", "Emit JSON output instead of the readable default");
|
|
204
204
|
}
|
|
205
205
|
function pointAtDescribe(result) {
|
|
206
206
|
const old = /`deepline (tools|plays) describe [^`]*`/;
|
|
@@ -247,7 +247,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
247
247
|
function registerDeprecatedSearchCommand(parent, typesFor) {
|
|
248
248
|
const name = `deepline ${parent.name()} search`;
|
|
249
249
|
addSearchOptions(
|
|
250
|
-
parent.command("search [
|
|
250
|
+
parent.command("search [task]").description(`Deprecated. Use deepline search --type <types>.`).addHelpText(
|
|
251
251
|
"after",
|
|
252
252
|
`
|
|
253
253
|
Notes:
|
|
@@ -255,7 +255,7 @@ Notes:
|
|
|
255
255
|
matching --type and returns the same results envelope.
|
|
256
256
|
|
|
257
257
|
Examples:
|
|
258
|
-
deepline search email --type ${typesFor({}).join(",")}
|
|
258
|
+
deepline search "name and company domain -> work email" --type ${typesFor({}).join(",")}
|
|
259
259
|
`
|
|
260
260
|
).option("--all", "Include plays your workspace created").option("--compact", "Accepted for compatibility; results are compact")
|
|
261
261
|
).action(async (query, options) => {
|
|
@@ -268,7 +268,7 @@ Examples:
|
|
|
268
268
|
}
|
|
269
269
|
function registerSearchCommand(program) {
|
|
270
270
|
addSearchOptions(
|
|
271
|
-
program.command("search [
|
|
271
|
+
program.command("search [task]").description(
|
|
272
272
|
"Search tools, monitors, and plays together, ranked by intent."
|
|
273
273
|
).addHelpText(
|
|
274
274
|
"after",
|
|
@@ -287,22 +287,21 @@ Notes:
|
|
|
287
287
|
Ranking uses a third-party AI relevance model. For plays your workspace
|
|
288
288
|
created it is sent only the play name and description, never play code.
|
|
289
289
|
Both flags may be repeated: --type tools --type prebuilts.
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
290
|
+
The task is one sentence on what you are trying to accomplish, written as
|
|
291
|
+
the input you have -> the result you need. Do not send keywords: the
|
|
292
|
+
sentence is what ranks the results. Omit it only when --categories and/or
|
|
293
|
+
--search_terms is supplied. Use --limit and --offset to page (limit 1-50,
|
|
294
|
+
offset zero-based); JSON includes next_offset.
|
|
295
295
|
Search prints a readable result list by default, piped or not, and that is
|
|
296
296
|
the recommended form. Pass --json only when a program parses the result.
|
|
297
297
|
Readable prices are Deepline credits with a per-row unit. Estimates and
|
|
298
298
|
observed historical charges are labelled; usage-based prices are not quotes.
|
|
299
299
|
|
|
300
300
|
Examples:
|
|
301
|
-
deepline search "
|
|
302
|
-
deepline search "
|
|
303
|
-
deepline search "company
|
|
304
|
-
deepline search "
|
|
305
|
-
deepline search linkedin --task "I have 200 LinkedIn profile URLs and need each person's current title and company"
|
|
301
|
+
deepline search "first name, last name and company domain -> verified work email"
|
|
302
|
+
deepline search "200 LinkedIn profile URLs -> each person's current title and company" --type tools --limit 10
|
|
303
|
+
deepline search "company domain -> contacts in sales leadership" --type plays
|
|
304
|
+
deepline search "company domain -> headcount, funding and industry" --exclude monitors,custom
|
|
306
305
|
deepline search --type tools --categories company_search --search_terms "investors,funding"
|
|
307
306
|
`
|
|
308
307
|
).option(
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkAUB3AW3Pjs = require('./chunk-AUB3AW3P.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -136,8 +136,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
136
136
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
137
137
|
var defaultBrowserCommandRunner = childProcess;
|
|
138
138
|
function getAuthedHttpClient() {
|
|
139
|
-
const config =
|
|
140
|
-
return { config, http: new (0,
|
|
139
|
+
const config = _chunkAUB3AW3Pjs.resolveConfig.call(void 0, );
|
|
140
|
+
return { config, http: new (0, _chunkAUB3AW3Pjs.HttpClient)(config) };
|
|
141
141
|
}
|
|
142
142
|
function stableOsUserId() {
|
|
143
143
|
try {
|
|
@@ -477,7 +477,7 @@ function collectLocalEnvInfo() {
|
|
|
477
477
|
os: `${process.platform} ${process.arch}`,
|
|
478
478
|
node_version: process.version,
|
|
479
479
|
home_dir: homeDir,
|
|
480
|
-
agent_runtime:
|
|
480
|
+
agent_runtime: _chunkAUB3AW3Pjs.detectAgentRuntime.call(void 0, )
|
|
481
481
|
};
|
|
482
482
|
const env = process.env;
|
|
483
483
|
const optional = {
|
|
@@ -725,9 +725,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
725
725
|
}
|
|
726
726
|
function withAgentCommandContext(value) {
|
|
727
727
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
728
|
-
return
|
|
728
|
+
return _chunkAUB3AW3Pjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
729
729
|
...valueRecord,
|
|
730
|
-
command_context:
|
|
730
|
+
command_context: _chunkAUB3AW3Pjs.resolveCliCommandContext.call(void 0, )
|
|
731
731
|
} : value;
|
|
732
732
|
}
|
|
733
733
|
function printJson(value, fields) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } 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 _chunk63UBRDGCjs = require('./chunk-63UBRDGC.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunk63UBRDGCjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|