deepline 0.3.485 → 0.3.486
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/ledger-safe-payload.ts +8 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +37 -44
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +2 -9
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +7 -26
- package/dist/cli/auth-ARKH3OAU.js +43 -0
- package/dist/cli/{auth-OWMUENCU.mjs → auth-B4DJO4FB.mjs} +5 -5
- package/dist/cli/{billing-2FMNQGOX.js → billing-GDWAMARK.js} +79 -79
- package/dist/cli/{billing-JX4H3VFF.mjs → billing-IIQ3VNXU.mjs} +6 -6
- package/dist/cli/{chunk-3Z24NKW7.mjs → chunk-2DVFQYPG.mjs} +10 -10
- package/dist/cli/{chunk-T4G2T5DS.js → chunk-5DUP4ZUE.js} +21 -21
- package/dist/cli/{chunk-KZTNNLIL.mjs → chunk-5QYZ4MEW.mjs} +2 -2
- package/dist/cli/{chunk-TSCUWWTM.mjs → chunk-5RLVCOKH.mjs} +1 -1
- package/dist/cli/{chunk-JD6HKNKD.mjs → chunk-5Y7LLRWO.mjs} +1 -1
- package/dist/cli/{chunk-ECIXZNSW.js → chunk-5YILTBF7.js} +53 -53
- package/dist/cli/{chunk-JQXUWYWX.js → chunk-7FTQKEZ6.js} +10 -10
- package/dist/cli/{chunk-TMCC7ORQ.mjs → chunk-A456YVDE.mjs} +1 -1
- package/dist/cli/{chunk-S3WQJ5VG.js → chunk-BJL7RYQN.js} +3 -3
- package/dist/cli/{chunk-IHMYIHF4.js → chunk-BNB2RK4L.js} +5 -5
- package/dist/cli/{chunk-BSKPQB2P.js → chunk-BYEDI5PM.js} +7 -7
- package/dist/cli/{chunk-5DCQWQCP.js → chunk-C4GFBB52.js} +26 -26
- package/dist/cli/{chunk-DMNVM34J.js → chunk-DFHS5XVZ.js} +4 -4
- package/dist/cli/{chunk-E73JXJA3.mjs → chunk-F3G2HAUQ.mjs} +1 -1
- package/dist/cli/{chunk-UQ3LQ6IF.js → chunk-FCAKAW6S.js} +5 -5
- package/dist/cli/{chunk-W33OL4F2.mjs → chunk-FGPJXQEJ.mjs} +2 -2
- package/dist/cli/{chunk-C6QWRSMQ.js → chunk-FSCOYTRV.js} +6 -6
- package/dist/cli/{chunk-NKPTM7SK.js → chunk-GCEUOHJW.js} +7 -7
- package/dist/cli/{chunk-3OF7NSGR.js → chunk-KPIVQFXZ.js} +94 -94
- package/dist/cli/{chunk-GHHJWCMD.mjs → chunk-MJ56FCYU.mjs} +1 -1
- package/dist/cli/{chunk-TVW6USSG.js → chunk-NSPMJLYA.js} +3 -3
- package/dist/cli/{chunk-3DBW6C7M.mjs → chunk-P6KGYOCM.mjs} +2 -2
- package/dist/cli/{chunk-NLRTFJGH.js → chunk-PCYZDTDC.js} +9 -9
- package/dist/cli/{chunk-U6WEGDD3.js → chunk-PHWFY26F.js} +2 -2
- package/dist/cli/{chunk-FJY6K3BG.mjs → chunk-PKOFEHZL.mjs} +1 -1
- package/dist/cli/{chunk-L352NOE3.mjs → chunk-PQHDZHZG.mjs} +2 -2
- package/dist/cli/{chunk-NRNWPWBW.js → chunk-PTM3QRAT.js} +37 -37
- package/dist/cli/{chunk-YDA3PMKK.mjs → chunk-PV7AYBKQ.mjs} +2 -2
- package/dist/cli/{chunk-ACTUAZYP.mjs → chunk-PYDHVRAF.mjs} +4 -4
- package/dist/cli/{chunk-775AZTO7.js → chunk-QD22TY33.js} +7 -7
- package/dist/cli/{chunk-EC2CVPN5.js → chunk-QEQ3KHVY.js} +3 -3
- package/dist/cli/{chunk-L7IQ3DFH.js → chunk-S5EYODEG.js} +53 -53
- package/dist/cli/{chunk-HKGXGGIV.js → chunk-S7OILDJH.js} +1 -1
- package/dist/cli/{chunk-G5PI3RNT.mjs → chunk-T3Q6BMVH.mjs} +1 -1
- package/dist/cli/{chunk-RZE5I2XJ.mjs → chunk-TBE2K5W4.mjs} +4 -4
- package/dist/cli/{chunk-CW6TAQBF.mjs → chunk-TE2QT2MX.mjs} +4 -4
- package/dist/cli/{chunk-AFADYKFE.js → chunk-TNHY3ATN.js} +8 -8
- package/dist/cli/{chunk-3DYU3JQN.mjs → chunk-U23L57VU.mjs} +2 -2
- package/dist/cli/{chunk-VZYTLWOM.mjs → chunk-UEJLWUJ3.mjs} +2 -2
- package/dist/cli/{chunk-676NZ7K4.mjs → chunk-VJLL5XIP.mjs} +1 -1
- package/dist/cli/{chunk-2ZEQ43B7.mjs → chunk-WCOJH4W4.mjs} +3 -3
- package/dist/cli/{chunk-SR6S4EYG.mjs → chunk-XAZWUW6I.mjs} +5 -5
- package/dist/cli/{chunk-UPHXGZCE.mjs → chunk-YIKHNZ6B.mjs} +4 -4
- package/dist/cli/{chunk-2ILND7XX.js → chunk-YS6JOYYS.js} +2 -2
- package/dist/cli/{chunk-62PJ6PK7.mjs → chunk-ZMRZ3BXG.mjs} +5 -5
- package/dist/cli/{chunk-OW4OTEFF.js → chunk-ZQI26KE4.js} +16 -16
- package/dist/cli/{csv-HFEQPGNY.js → csv-3PSMPZM5.js} +13 -13
- package/dist/cli/{csv-OHF3Y5KB.mjs → csv-LFCT3WQ4.mjs} +4 -4
- package/dist/cli/{db-M456OUXD.mjs → db-HULKVAMU.mjs} +6 -6
- package/dist/cli/{db-VLQKCYQS.js → db-R7I2PPTV.js} +27 -27
- package/dist/cli/{describe-M6VXFYVL.mjs → describe-D55V42LH.mjs} +17 -17
- package/dist/cli/describe-H47BLOEP.js +49 -0
- package/dist/cli/{executions-4FGRBPJF.mjs → executions-ICVVOYVG.mjs} +6 -6
- package/dist/cli/{executions-GKINJZI6.js → executions-O37FN2SK.js} +8 -8
- package/dist/cli/{feedback-D2WMGK3V.mjs → feedback-3K3QPGCQ.mjs} +4 -4
- package/dist/cli/{feedback-ZH5K7WV7.js → feedback-MAZQ7C6S.js} +8 -8
- package/dist/cli/{git-OCIJ5ME4.mjs → git-2MMD5KJS.mjs} +5 -5
- package/dist/cli/git-RQ2XLFYZ.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-QNIVP7LO.js → legacy-noops-2OX2Y3Y2.js} +8 -8
- package/dist/cli/{legacy-noops-V6Q2X34P.mjs → legacy-noops-VLSWJ6VE.mjs} +5 -5
- package/dist/cli/{monitors-2USHTG5G.mjs → monitors-2NODQQWG.mjs} +7 -7
- package/dist/cli/{monitors-5DNK7W2K.js → monitors-UCSV5FOR.js} +91 -91
- package/dist/cli/{org-RPGM5AN4.js → org-4YY73VTW.js} +72 -72
- package/dist/cli/{org-TL2YPYSE.mjs → org-W7AUQCDE.mjs} +6 -6
- package/dist/cli/{pages-PNUKPFWV.js → pages-FBZEUMXK.js} +17 -17
- package/dist/cli/{pages-XDEW6EE3.mjs → pages-ZRP7U5PO.mjs} +6 -6
- package/dist/cli/{play-F5LHRKV5.js → play-LFCTQJXA.js} +312 -312
- package/dist/cli/{play-WINNQ4HZ.mjs → play-XF2BSGTP.mjs} +17 -17
- package/dist/cli/{providers-BD4IS5U5.js → providers-5456JNHP.js} +9 -9
- package/dist/cli/{providers-PXGL3FRE.mjs → providers-SICAPKGI.mjs} +6 -6
- package/dist/cli/{quickstart-7LVF6HZF.js → quickstart-2KLLIPIU.js} +6 -6
- package/dist/cli/{quickstart-XTH3UQWZ.mjs → quickstart-IBVG6GX6.mjs} +4 -4
- package/dist/cli/{run-NH2BAWPA.js → run-DNLDGJRC.js} +36 -36
- package/dist/cli/{run-MBMUENR7.mjs → run-XPIZIQ7H.mjs} +22 -22
- package/dist/cli/search-2KQA65LH.js +32 -0
- package/dist/cli/{search-BMRWBV66.mjs → search-PW22AEAL.mjs} +7 -7
- package/dist/cli/{search-output-5NNT337U.js → search-output-H6F6QMRF.js} +6 -6
- package/dist/cli/{search-output-QKKRD4MF.mjs → search-output-JFD53H2N.mjs} +4 -4
- package/dist/cli/{secrets-AWEXBTJV.mjs → secrets-542CTZRZ.mjs} +6 -6
- package/dist/cli/{secrets-KQSTOREN.js → secrets-LCCRRAN7.js} +15 -15
- package/dist/cli/{sessions-DSPLZYCJ.js → sessions-5FYDQE3N.js} +6 -6
- package/dist/cli/{sessions-RO25Q67X.mjs → sessions-CALLS2XD.mjs} +5 -5
- package/dist/cli/{settings-JMGXGK4Z.mjs → settings-GSKPHUEC.mjs} +11 -11
- package/dist/cli/{settings-7JXIKNKI.js → settings-ORGKOBP6.js} +78 -78
- package/dist/cli/{setup-5QFAQQRW.js → setup-4BUWJKB6.js} +47 -47
- package/dist/cli/{setup-ZQZ47FHB.mjs → setup-V57GHVAF.mjs} +9 -9
- package/dist/cli/skills-KYZPPGSN.js +33 -0
- package/dist/cli/{skills-W3H2DL56.mjs → skills-NGLCFQFT.mjs} +7 -7
- package/dist/cli/tools-AFYXUEMD.js +56 -0
- package/dist/cli/{tools-2BZCVNBS.mjs → tools-G2YNCFNX.mjs} +16 -16
- package/dist/cli/{update-GAWYMGAW.mjs → update-IZ3Z5T5C.mjs} +9 -9
- package/dist/cli/update-T6JJ7A3K.js +33 -0
- package/dist/cli/{workflow-ZPTDFPKW.js → workflow-7AHST2XV.js} +17 -17
- package/dist/cli/{workflow-M6LLHQ2I.mjs → workflow-L7ROQIM7.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +98 -98
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-ABZBH55L.js +0 -43
- package/dist/cli/describe-CP35DZ5Z.js +0 -49
- package/dist/cli/git-IDALMZDN.js +0 -25
- package/dist/cli/search-R3MQJQMT.js +0 -32
- package/dist/cli/skills-EDZXY7DV.js +0 -33
- package/dist/cli/tools-2EY2ETCZ.js +0 -56
- package/dist/cli/update-UKDQKNBY.js +0 -33
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkBYEDI5PMjs = require('./chunk-BYEDI5PM.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkBJL7RYQNjs = require('./chunk-BJL7RYQN.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkDFHS5XVZjs = require('./chunk-DFHS5XVZ.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
|
|
|
60
60
|
return `Service notice: ${banner.message}`;
|
|
61
61
|
}
|
|
62
62
|
function envFilePath(baseUrl) {
|
|
63
|
-
return
|
|
63
|
+
return _chunkBJL7RYQNjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
64
64
|
}
|
|
65
65
|
function normalizeAuthScope(value) {
|
|
66
66
|
if (!value || value === "global") return "global";
|
|
@@ -73,7 +73,7 @@ function parseAuthScope(args) {
|
|
|
73
73
|
}
|
|
74
74
|
function pendingClaimPath(baseUrl, scope) {
|
|
75
75
|
if (scope === "folder") {
|
|
76
|
-
const target =
|
|
76
|
+
const target = _chunkBJL7RYQNjs.resolveProjectPinTarget.call(void 0, );
|
|
77
77
|
if (!target.ok) {
|
|
78
78
|
throw new Error(
|
|
79
79
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -83,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
83
83
|
}
|
|
84
84
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
85
85
|
}
|
|
86
|
-
return `${
|
|
86
|
+
return `${_chunkBJL7RYQNjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkBJL7RYQNjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
90
90
|
}
|
|
91
91
|
function savePendingClaim(baseUrl, claim) {
|
|
92
92
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -190,21 +190,21 @@ function parseRegisterWaitMode(args) {
|
|
|
190
190
|
function shouldWaitForRegisterClaim(mode) {
|
|
191
191
|
if (mode === "yes") return true;
|
|
192
192
|
if (mode === "no") return false;
|
|
193
|
-
return
|
|
193
|
+
return _chunkDFHS5XVZjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
194
194
|
}
|
|
195
195
|
function saveEnvValues(values, baseUrl, scope) {
|
|
196
196
|
const filtered = {
|
|
197
|
-
...values[
|
|
198
|
-
...values[
|
|
199
|
-
...values[
|
|
200
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
197
|
+
...values[_chunkBJL7RYQNjs.HOST_URL_ENV] ? { [_chunkBJL7RYQNjs.HOST_URL_ENV]: values[_chunkBJL7RYQNjs.HOST_URL_ENV] } : {},
|
|
198
|
+
...values[_chunkBJL7RYQNjs.API_KEY_ENV] ? { [_chunkBJL7RYQNjs.API_KEY_ENV]: values[_chunkBJL7RYQNjs.API_KEY_ENV] } : {},
|
|
199
|
+
...values[_chunkBJL7RYQNjs.ACTIVE_ORG_ID_ENV] ? { [_chunkBJL7RYQNjs.ACTIVE_ORG_ID_ENV]: values[_chunkBJL7RYQNjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
200
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkBJL7RYQNjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkBJL7RYQNjs.ACTIVE_ORG_NAME_ENV]: values[_chunkBJL7RYQNjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
201
201
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
202
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
202
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkBJL7RYQNjs.FEATURES_ENV) ? { [_chunkBJL7RYQNjs.FEATURES_ENV]: values[_chunkBJL7RYQNjs.FEATURES_ENV] } : {}
|
|
203
203
|
};
|
|
204
204
|
if (scope === "folder") {
|
|
205
|
-
|
|
205
|
+
_chunkBJL7RYQNjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
206
206
|
} else {
|
|
207
|
-
|
|
207
|
+
_chunkBJL7RYQNjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
function activeOrgEnvValues(data) {
|
|
@@ -212,21 +212,21 @@ function activeOrgEnvValues(data) {
|
|
|
212
212
|
if (!orgId) return {};
|
|
213
213
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
214
214
|
return {
|
|
215
|
-
[
|
|
216
|
-
[
|
|
217
|
-
...
|
|
215
|
+
[_chunkBJL7RYQNjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
216
|
+
[_chunkBJL7RYQNjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
217
|
+
..._chunkBJL7RYQNjs.featureEnvValues.call(void 0, data)
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
221
221
|
const headers = {
|
|
222
222
|
"Content-Type": "application/json",
|
|
223
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
223
|
+
"User-Agent": `deepline-ts-sdk/${_chunkDFHS5XVZjs.SDK_VERSION}`,
|
|
224
224
|
"X-Deepline-Client-Family": "sdk",
|
|
225
225
|
"X-Deepline-CLI-Family": "sdk",
|
|
226
|
-
"X-Deepline-Agent-Runtime":
|
|
227
|
-
"X-Deepline-CLI-Version":
|
|
228
|
-
"X-Deepline-SDK-Version":
|
|
229
|
-
"X-Deepline-API-Contract":
|
|
226
|
+
"X-Deepline-Agent-Runtime": _chunkDFHS5XVZjs.detectAgentRuntime.call(void 0, ),
|
|
227
|
+
"X-Deepline-CLI-Version": _chunkDFHS5XVZjs.SDK_VERSION,
|
|
228
|
+
"X-Deepline-SDK-Version": _chunkDFHS5XVZjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-API-Contract": _chunkDFHS5XVZjs.SDK_API_CONTRACT
|
|
230
230
|
};
|
|
231
231
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
232
232
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -265,10 +265,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
265
265
|
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
266
266
|
throw failure;
|
|
267
267
|
}
|
|
268
|
-
const causeCode =
|
|
268
|
+
const causeCode = _chunkDFHS5XVZjs.networkCauseCode.call(void 0, failure);
|
|
269
269
|
throw Object.assign(
|
|
270
270
|
new (0, _chunkDIAWYWT5js.DeeplineError)(
|
|
271
|
-
|
|
271
|
+
_chunkDFHS5XVZjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
|
|
272
272
|
void 0,
|
|
273
273
|
"NETWORK_ERROR",
|
|
274
274
|
causeCode ? { causeCode } : void 0
|
|
@@ -285,7 +285,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
285
285
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
286
286
|
}
|
|
287
287
|
async function reportSetupCompleted(input) {
|
|
288
|
-
const apiKey = input.authScope === "folder" ?
|
|
288
|
+
const apiKey = input.authScope === "folder" ? _chunkBJL7RYQNjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkBJL7RYQNjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
289
289
|
if (!apiKey) return;
|
|
290
290
|
try {
|
|
291
291
|
await httpJson(
|
|
@@ -398,7 +398,7 @@ async function reportApprovalLinkShown(baseUrl, claim, mode) {
|
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
async function handleRegister(args, options) {
|
|
401
|
-
const baseUrl =
|
|
401
|
+
const baseUrl = _chunkBJL7RYQNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
402
402
|
let orgName = "";
|
|
403
403
|
let orgId = "";
|
|
404
404
|
let agentName = "";
|
|
@@ -457,19 +457,19 @@ async function handleRegister(args, options) {
|
|
|
457
457
|
savePendingClaim(baseUrl, pendingClaim);
|
|
458
458
|
saveEnvValues(
|
|
459
459
|
{
|
|
460
|
-
[
|
|
460
|
+
[_chunkBJL7RYQNjs.HOST_URL_ENV]: baseUrl
|
|
461
461
|
},
|
|
462
462
|
baseUrl,
|
|
463
463
|
authScope
|
|
464
464
|
);
|
|
465
465
|
}
|
|
466
466
|
if (claimUrl) {
|
|
467
|
-
const shouldOpen = waitMode !== "no" &&
|
|
467
|
+
const shouldOpen = waitMode !== "no" && _chunkDFHS5XVZjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
468
468
|
console.log(
|
|
469
469
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
470
470
|
);
|
|
471
471
|
console.log(` ${claimUrl}`);
|
|
472
|
-
if (shouldOpen)
|
|
472
|
+
if (shouldOpen) _chunkBYEDI5PMjs.openInBrowser.call(void 0, claimUrl);
|
|
473
473
|
if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
|
|
474
474
|
await reportApprovalLinkShown(
|
|
475
475
|
baseUrl,
|
|
@@ -519,8 +519,8 @@ async function handleRegister(args, options) {
|
|
|
519
519
|
if (apiKey) {
|
|
520
520
|
saveEnvValues(
|
|
521
521
|
{
|
|
522
|
-
[
|
|
523
|
-
[
|
|
522
|
+
[_chunkBJL7RYQNjs.HOST_URL_ENV]: baseUrl,
|
|
523
|
+
[_chunkBJL7RYQNjs.API_KEY_ENV]: apiKey,
|
|
524
524
|
...activeOrgEnvValues(statusData)
|
|
525
525
|
},
|
|
526
526
|
baseUrl,
|
|
@@ -542,7 +542,7 @@ async function handleRegister(args, options) {
|
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
544
|
async function handleWait(args) {
|
|
545
|
-
const baseUrl =
|
|
545
|
+
const baseUrl = _chunkBJL7RYQNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
546
546
|
let timeoutSeconds = 300;
|
|
547
547
|
let requestedScope;
|
|
548
548
|
if (args.includes("--auth-scope")) {
|
|
@@ -566,7 +566,7 @@ async function handleWait(args) {
|
|
|
566
566
|
const authScope = resumed.scope;
|
|
567
567
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
|
|
568
568
|
if (!pendingClaim) {
|
|
569
|
-
const scopedApiKey = authScope === "folder" ?
|
|
569
|
+
const scopedApiKey = authScope === "folder" ? _chunkBJL7RYQNjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkBJL7RYQNjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
570
570
|
if (scopedApiKey) {
|
|
571
571
|
console.log("Already connected.");
|
|
572
572
|
return EXIT_OK;
|
|
@@ -609,8 +609,8 @@ async function handleWait(args) {
|
|
|
609
609
|
if (apiKey) {
|
|
610
610
|
saveEnvValues(
|
|
611
611
|
{
|
|
612
|
-
[
|
|
613
|
-
[
|
|
612
|
+
[_chunkBJL7RYQNjs.HOST_URL_ENV]: baseUrl,
|
|
613
|
+
[_chunkBJL7RYQNjs.API_KEY_ENV]: apiKey,
|
|
614
614
|
...activeOrgEnvValues(data)
|
|
615
615
|
},
|
|
616
616
|
baseUrl,
|
|
@@ -634,8 +634,8 @@ async function handleWait(args) {
|
|
|
634
634
|
return EXIT_AUTH;
|
|
635
635
|
}
|
|
636
636
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
637
|
-
const baseUrl =
|
|
638
|
-
const apiKey =
|
|
637
|
+
const baseUrl = _chunkBJL7RYQNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
638
|
+
const apiKey = _chunkBJL7RYQNjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
639
639
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
640
640
|
try {
|
|
641
641
|
const { status, data } = await httpJson(
|
|
@@ -658,9 +658,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
async function handleStatus(args) {
|
|
661
|
-
const baseUrl =
|
|
661
|
+
const baseUrl = _chunkBJL7RYQNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
662
662
|
const reveal = args.includes("--reveal");
|
|
663
|
-
const jsonOutput =
|
|
663
|
+
const jsonOutput = _chunkBYEDI5PMjs.argsWantJson.call(void 0, args);
|
|
664
664
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
665
665
|
let authScope = null;
|
|
666
666
|
if (hasExplicitAuthScope) {
|
|
@@ -701,14 +701,14 @@ async function handleStatus(args) {
|
|
|
701
701
|
};
|
|
702
702
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
703
703
|
}
|
|
704
|
-
const apiKey = authScope === "folder" ?
|
|
704
|
+
const apiKey = authScope === "folder" ? _chunkBJL7RYQNjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkBJL7RYQNjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkBJL7RYQNjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
705
705
|
if (!apiKey) {
|
|
706
706
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
707
707
|
baseUrl,
|
|
708
708
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
709
709
|
);
|
|
710
710
|
if (pendingClaim) {
|
|
711
|
-
|
|
711
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
712
712
|
{
|
|
713
713
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
714
714
|
status: "pending",
|
|
@@ -729,7 +729,7 @@ async function handleStatus(args) {
|
|
|
729
729
|
);
|
|
730
730
|
return EXIT_OK;
|
|
731
731
|
}
|
|
732
|
-
|
|
732
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
733
733
|
{
|
|
734
734
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
735
735
|
status: "not connected",
|
|
@@ -762,7 +762,7 @@ async function handleStatus(args) {
|
|
|
762
762
|
}
|
|
763
763
|
);
|
|
764
764
|
if (status === 401 || status === 403) {
|
|
765
|
-
|
|
765
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
766
766
|
{
|
|
767
767
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
768
768
|
status: "unauthorized",
|
|
@@ -789,7 +789,7 @@ async function handleStatus(args) {
|
|
|
789
789
|
console.error(`Auth status error (status ${status}).`);
|
|
790
790
|
return EXIT_SERVER;
|
|
791
791
|
}
|
|
792
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
792
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkBJL7RYQNjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
793
793
|
clearSatisfiedPendingClaim(
|
|
794
794
|
baseUrl,
|
|
795
795
|
resolvedAuthScope,
|
|
@@ -817,28 +817,28 @@ async function handleStatus(args) {
|
|
|
817
817
|
if (apiKeyResp) {
|
|
818
818
|
saveEnvValues(
|
|
819
819
|
{
|
|
820
|
-
[
|
|
821
|
-
[
|
|
820
|
+
[_chunkBJL7RYQNjs.HOST_URL_ENV]: baseUrl,
|
|
821
|
+
[_chunkBJL7RYQNjs.API_KEY_ENV]: apiKeyResp,
|
|
822
822
|
...activeOrgEnvValues(data)
|
|
823
823
|
},
|
|
824
824
|
baseUrl,
|
|
825
825
|
resolvedAuthScope
|
|
826
826
|
);
|
|
827
827
|
if (resolvedAuthScope === "folder") {
|
|
828
|
-
const target =
|
|
828
|
+
const target = _chunkBJL7RYQNjs.resolveProjectPinTarget.call(void 0, );
|
|
829
829
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
830
830
|
} else {
|
|
831
831
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
832
832
|
}
|
|
833
833
|
}
|
|
834
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
835
|
-
saveEnvValues(
|
|
834
|
+
} else if (resolvedAuthScope === "folder" || _chunkBJL7RYQNjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
835
|
+
saveEnvValues(_chunkBJL7RYQNjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
836
836
|
}
|
|
837
|
-
|
|
837
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
838
838
|
{
|
|
839
839
|
...payload,
|
|
840
|
-
...
|
|
841
|
-
command_context:
|
|
840
|
+
..._chunkDFHS5XVZjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
841
|
+
command_context: _chunkBJL7RYQNjs.resolveCliCommandContext.call(void 0,
|
|
842
842
|
{ baseUrl, apiKey },
|
|
843
843
|
resolvedAuthScope
|
|
844
844
|
)
|
|
@@ -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.486",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-U23L57VU.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PQHDZHZG.mjs";
|
|
10
10
|
import {
|
|
11
11
|
resolveConfig,
|
|
12
12
|
sdkCliStateDirPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-T3Q6BMVH.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
import { Option } from "commander";
|
|
@@ -132,7 +132,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
132
132
|
});
|
|
133
133
|
if (searchRef) rememberSearchRef(searchRef);
|
|
134
134
|
pointAtDescribe(result);
|
|
135
|
-
const { renderSearchResults } = await import("./search-output-
|
|
135
|
+
const { renderSearchResults } = await import("./search-output-JFD53H2N.mjs");
|
|
136
136
|
printCommandEnvelope(result, {
|
|
137
137
|
json: options.json === true,
|
|
138
138
|
text: renderSearchResults(result, summaryWidth)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-A456YVDE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
sdkCliStateDirPath,
|
|
13
13
|
skillsAgentPathSegment,
|
|
14
14
|
writeSdkSkillsLocalVersion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-T3Q6BMVH.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SDK_API_CONTRACT,
|
|
18
18
|
SDK_API_MAJOR,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
agentSessionIdFromEnvironment,
|
|
21
21
|
deploymentProtectionHeaders,
|
|
22
22
|
detectAgentRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-MJ56FCYU.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SDK_RELEASE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-5RLVCOKH.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -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 _chunkBYEDI5PMjs = require('./chunk-BYEDI5PM.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkDFHS5XVZjs = require('./chunk-DFHS5XVZ.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 = _chunkDFHS5XVZjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkBYEDI5PMjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PKOFEHZL.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-T3Q6BMVH.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-PQHDZHZG.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MJ56FCYU.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-PQHDZHZG.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-T3Q6BMVH.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MJ56FCYU.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-F3G2HAUQ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YIKHNZ6B.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TE2QT2MX.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PQHDZHZG.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-T3Q6BMVH.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TE2QT2MX.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PQHDZHZG.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-T3Q6BMVH.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MJ56FCYU.mjs";
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/skills.ts
|
|
30
30
|
import { spawn } from "child_process";
|
|
@@ -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 _chunk5YILTBF7js = require('./chunk-5YILTBF7.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 = _chunk5YILTBF7js.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,
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-XAZWUW6I.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TE2QT2MX.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PQHDZHZG.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-T3Q6BMVH.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-MJ56FCYU.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|