deepline 0.3.302 → 0.3.303
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/scheduler-backends/runtime-event-search.ts +82 -0
- package/dist/bundling-sources/shared_libs/plays/tool-response-contract.ts +25 -0
- package/dist/cli/{auth-WHKDFARX.mjs → auth-337SVWQD.mjs} +4 -4
- package/dist/cli/auth-4ME3NANJ.js +31 -0
- package/dist/cli/{billing-IMFI76GS.js → billing-CVQURTWQ.js} +71 -71
- package/dist/cli/{billing-7C66HEMK.mjs → billing-SVGYQSJI.mjs} +5 -5
- package/dist/cli/{chunk-OUREAAOT.js → chunk-4D5YQETI.js} +6 -6
- package/dist/cli/{chunk-V4WVYW3G.mjs → chunk-4LRG6AJZ.mjs} +2 -2
- package/dist/cli/{chunk-JCS5TPNY.mjs → chunk-4NIQA6S7.mjs} +1 -1
- package/dist/cli/{chunk-7AXKBZWF.js → chunk-5NEXN4MZ.js} +2 -2
- package/dist/cli/{chunk-GWIY7C7U.mjs → chunk-BVJSAJKV.mjs} +1 -1
- package/dist/cli/{chunk-PZOHVTQ3.mjs → chunk-DH6LEJWD.mjs} +3 -3
- package/dist/cli/{chunk-NRIVXKMQ.js → chunk-EAIGGEV5.js} +6 -6
- package/dist/cli/{chunk-KEPIGAJS.js → chunk-GQUI3NYN.js} +57 -57
- package/dist/cli/{chunk-AAZBNN6N.js → chunk-HIXYNASX.js} +4 -4
- package/dist/cli/{chunk-S6XS2ABF.mjs → chunk-IVT2CZPM.mjs} +2 -2
- package/dist/cli/{chunk-J2PPXZE4.js → chunk-JGEFX6FQ.js} +6 -6
- package/dist/cli/{chunk-GHYU5YWJ.mjs → chunk-JWUOPLAR.mjs} +1 -1
- package/dist/cli/{chunk-TVBPWUII.mjs → chunk-LGGR7CGZ.mjs} +4 -4
- package/dist/cli/{chunk-A4UUUINX.mjs → chunk-MTICVDNY.mjs} +1 -1
- package/dist/cli/{chunk-5FKCLTLS.js → chunk-NFWFUCGM.js} +11 -11
- package/dist/cli/{chunk-GXYR7DV4.js → chunk-OOQ4IRP4.js} +1 -1
- package/dist/cli/{chunk-OTAGK5MS.js → chunk-P2KELOST.js} +48 -48
- package/dist/cli/{chunk-2TCHWWRP.mjs → chunk-PUKK7SZX.mjs} +1 -1
- package/dist/cli/{chunk-JX3CNS4W.js → chunk-RY6WID7C.js} +26 -26
- package/dist/cli/{chunk-GONRLVV3.js → chunk-W7INSYJS.js} +9 -9
- package/dist/cli/{chunk-KI5DPDF2.js → chunk-WJGRIDWQ.js} +15 -15
- package/dist/cli/{chunk-AIIVF62D.mjs → chunk-XKW6HTWO.mjs} +1 -1
- package/dist/cli/{chunk-DTGPHQFC.mjs → chunk-XXQYOQWO.mjs} +2 -2
- package/dist/cli/{chunk-YLVIJZ2W.mjs → chunk-YZLPXH7G.mjs} +2 -2
- package/dist/cli/{client-M7OBRULN.mjs → client-AMSHGQFH.mjs} +4 -4
- package/dist/cli/client-WN33QCMV.js +20 -0
- package/dist/cli/{csv-SAJB2PYV.js → csv-B2OKPMNX.js} +12 -12
- package/dist/cli/{csv-AKVUO3PP.mjs → csv-F4RPWI4E.mjs} +3 -3
- package/dist/cli/{db-AASVDGJB.js → db-AJYYK5HH.js} +21 -21
- package/dist/cli/{db-KREGQID3.mjs → db-QP4WNVSS.mjs} +5 -5
- package/dist/cli/{executions-XSKRZWVG.js → executions-4LHEJCCY.js} +7 -7
- package/dist/cli/{executions-YL5UM6BY.mjs → executions-NY7HYAEH.mjs} +5 -5
- package/dist/cli/{feedback-XZNAGHZ4.js → feedback-CXXJJARR.js} +6 -6
- package/dist/cli/{feedback-ITNK5A5V.mjs → feedback-SJYHLVYY.mjs} +3 -3
- package/dist/cli/{git-IXYZ5H7T.mjs → git-DUODO3NL.mjs} +4 -4
- package/dist/cli/git-K7YPSXLC.js +23 -0
- package/dist/cli/index.d.mts +1 -6
- package/dist/cli/index.d.ts +1 -6
- package/dist/cli/index.js +100 -87
- package/dist/cli/index.mjs +54 -41
- package/dist/cli/{legacy-noops-BJZ3P455.js → legacy-noops-3UYJVVNW.js} +7 -7
- package/dist/cli/{legacy-noops-MT5VFDXS.mjs → legacy-noops-IUDXZFYO.mjs} +4 -4
- package/dist/cli/{monitors-XU62FCBX.js → monitors-IEEVACOD.js} +86 -86
- package/dist/cli/{monitors-QL4XDOQT.mjs → monitors-PDWE6BGA.mjs} +5 -5
- package/dist/cli/{org-6WSIPHVV.js → org-NUFEZRY7.js} +61 -61
- package/dist/cli/{org-NKFPS763.mjs → org-VSPO2YF3.mjs} +5 -5
- package/dist/cli/{play-CKL7RDIS.mjs → play-KMHPJVWH.mjs} +21 -19
- package/dist/cli/{play-RZO7CZKL.js → play-MXYK2BRE.js} +229 -227
- package/dist/cli/{providers-UKNXDCPJ.mjs → providers-7ENB4EYV.mjs} +5 -5
- package/dist/cli/{providers-PQPH374E.js → providers-YE5YRIML.js} +8 -8
- package/dist/cli/{proxy-env-M4ZHXHRL.mjs → proxy-env-NWUIGWS3.mjs} +34 -17
- package/dist/cli/{proxy-env-EBANZHPV.js → proxy-env-ZV2WZFAT.js} +37 -20
- package/dist/cli/{quickstart-JUTTMWIC.mjs → quickstart-GFOOHX2U.mjs} +3 -3
- package/dist/cli/{quickstart-3FFTESEL.js → quickstart-KXCU2MZ2.js} +5 -5
- package/dist/cli/{search-WGBQ5LE5.mjs → search-KESXCJDL.mjs} +6 -6
- package/dist/cli/search-R426JJQW.js +18 -0
- package/dist/cli/{secrets-GGQRCGLA.js → secrets-BRB5SIXG.js} +14 -14
- package/dist/cli/{secrets-EV6IOJLN.mjs → secrets-HDR522GC.mjs} +5 -5
- package/dist/cli/{sessions-VZJ23U7E.js → sessions-IK3OSQC6.js} +5 -5
- package/dist/cli/{sessions-HL3Q22O5.mjs → sessions-VOOSWVLS.mjs} +4 -4
- package/dist/cli/{settings-M5MSM7U6.mjs → settings-BZKDIHTX.mjs} +8 -8
- package/dist/cli/{settings-LJB5VZWM.js → settings-OPGEFGXL.js} +75 -75
- package/dist/cli/{setup-ZURYYFBI.mjs → setup-RVPS7AJJ.mjs} +6 -6
- package/dist/cli/{setup-ASOUDNYM.js → setup-TP2VWSCU.js} +41 -41
- package/dist/cli/{skills-4SRVGVA6.mjs → skills-7BDD2F4V.mjs} +4 -4
- package/dist/cli/skills-TK2CIWVS.js +28 -0
- package/dist/cli/{tools-UNDZCH7R.js → tools-46ILS57M.js} +51 -51
- package/dist/cli/{tools-UEFB5OPX.mjs → tools-XLGGDBM3.mjs} +6 -6
- package/dist/cli/{update-WUIQXM5B.mjs → update-2JEM7WUF.mjs} +6 -6
- package/dist/cli/update-3JOCQWNF.js +28 -0
- package/dist/cli/{workflow-BCXLF24Z.mjs → workflow-SSTGMXOQ.mjs} +6 -6
- package/dist/cli/{workflow-FUXRNNWD.js → workflow-ZKGPY7T4.js} +16 -16
- package/dist/index.js +7 -7
- package/dist/index.mjs +4 -4
- package/dist/install-integrity.json +74 -74
- package/dist/plays/bundle-play-file.mjs +2 -2
- 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-ZJDK7HFJ.js +0 -31
- package/dist/cli/client-FVPE6PB4.js +0 -20
- package/dist/cli/git-IOUJDZDJ.js +0 -23
- package/dist/cli/search-TKLHBKKK.js +0 -18
- package/dist/cli/skills-KMGB73LN.js +0 -28
- package/dist/cli/update-4AZ7S666.js +0 -28
- /package/dist/cli/{chunk-GVUJJJ5G.mjs → chunk-6IKARAYD.mjs} +0 -0
- /package/dist/cli/{chunk-6A3TJUWC.js → chunk-S6R3OX7B.js} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkEAIGGEV5js = require('./chunk-EAIGGEV5.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -25,7 +25,7 @@ var _chunkNRIVXKMQjs = require('./chunk-NRIVXKMQ.js');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkHIXYNASXjs = require('./chunk-HIXYNASX.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 _chunkHIXYNASXjs.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 = _chunkHIXYNASXjs.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 `${_chunkHIXYNASXjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
79
79
|
}
|
|
80
80
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
81
|
-
return `${
|
|
81
|
+
return `${_chunkHIXYNASXjs.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 _chunkHIXYNASXjs.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[_chunkHIXYNASXjs.HOST_URL_ENV] ? { [_chunkHIXYNASXjs.HOST_URL_ENV]: values[_chunkHIXYNASXjs.HOST_URL_ENV] } : {},
|
|
188
|
+
...values[_chunkHIXYNASXjs.API_KEY_ENV] ? { [_chunkHIXYNASXjs.API_KEY_ENV]: values[_chunkHIXYNASXjs.API_KEY_ENV] } : {},
|
|
189
|
+
...values[_chunkHIXYNASXjs.ACTIVE_ORG_ID_ENV] ? { [_chunkHIXYNASXjs.ACTIVE_ORG_ID_ENV]: values[_chunkHIXYNASXjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
190
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkHIXYNASXjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkHIXYNASXjs.ACTIVE_ORG_NAME_ENV]: values[_chunkHIXYNASXjs.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, _chunkHIXYNASXjs.FEATURES_ENV) ? { [_chunkHIXYNASXjs.FEATURES_ENV]: values[_chunkHIXYNASXjs.FEATURES_ENV] } : {}
|
|
193
193
|
};
|
|
194
194
|
if (scope === "folder") {
|
|
195
|
-
|
|
195
|
+
_chunkHIXYNASXjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
196
196
|
} else {
|
|
197
|
-
|
|
197
|
+
_chunkHIXYNASXjs.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
|
+
[_chunkHIXYNASXjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
206
|
+
[_chunkHIXYNASXjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
207
|
+
..._chunkHIXYNASXjs.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/${_chunkHIXYNASXjs.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": _chunkHIXYNASXjs.detectAgentRuntime.call(void 0, ),
|
|
217
|
+
"X-Deepline-CLI-Version": _chunkHIXYNASXjs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-SDK-Version": _chunkHIXYNASXjs.SDK_VERSION,
|
|
219
|
+
"X-Deepline-API-Contract": _chunkHIXYNASXjs.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" ? _chunkHIXYNASXjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkHIXYNASXjs.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 = _chunkHIXYNASXjs.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
|
+
[_chunkHIXYNASXjs.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" && _chunkHIXYNASXjs.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) _chunkEAIGGEV5js.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
|
+
[_chunkHIXYNASXjs.HOST_URL_ENV]: baseUrl,
|
|
465
|
+
[_chunkHIXYNASXjs.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 = _chunkHIXYNASXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
488
488
|
let timeoutSeconds = 300;
|
|
489
489
|
let requestedScope;
|
|
490
490
|
if (args.includes("--auth-scope")) {
|
|
@@ -508,7 +508,7 @@ 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" ? _chunkHIXYNASXjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkHIXYNASXjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
512
512
|
if (scopedApiKey) {
|
|
513
513
|
console.log("Already connected.");
|
|
514
514
|
return EXIT_OK;
|
|
@@ -551,8 +551,8 @@ async function handleWait(args) {
|
|
|
551
551
|
if (apiKey) {
|
|
552
552
|
saveEnvValues(
|
|
553
553
|
{
|
|
554
|
-
[
|
|
555
|
-
[
|
|
554
|
+
[_chunkHIXYNASXjs.HOST_URL_ENV]: baseUrl,
|
|
555
|
+
[_chunkHIXYNASXjs.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 = _chunkHIXYNASXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
580
580
|
const reveal = args.includes("--reveal");
|
|
581
|
-
const jsonOutput =
|
|
581
|
+
const jsonOutput = _chunkEAIGGEV5js.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" ? _chunkHIXYNASXjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkHIXYNASXjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkHIXYNASXjs.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
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
629
629
|
{
|
|
630
630
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
631
631
|
status: "pending",
|
|
@@ -646,7 +646,7 @@ async function handleStatus(args) {
|
|
|
646
646
|
);
|
|
647
647
|
return EXIT_OK;
|
|
648
648
|
}
|
|
649
|
-
|
|
649
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
650
650
|
{
|
|
651
651
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
652
652
|
status: "not connected",
|
|
@@ -682,7 +682,7 @@ async function handleStatus(args) {
|
|
|
682
682
|
}
|
|
683
683
|
);
|
|
684
684
|
if (status === 401 || status === 403) {
|
|
685
|
-
|
|
685
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
686
686
|
{
|
|
687
687
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
688
688
|
status: "unauthorized",
|
|
@@ -712,7 +712,7 @@ async function handleStatus(args) {
|
|
|
712
712
|
console.error(`Auth status error (status ${status}).`);
|
|
713
713
|
return EXIT_SERVER;
|
|
714
714
|
}
|
|
715
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
715
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkHIXYNASXjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
716
716
|
clearSatisfiedPendingClaim(
|
|
717
717
|
baseUrl,
|
|
718
718
|
resolvedAuthScope,
|
|
@@ -740,28 +740,28 @@ async function handleStatus(args) {
|
|
|
740
740
|
if (apiKeyResp) {
|
|
741
741
|
saveEnvValues(
|
|
742
742
|
{
|
|
743
|
-
[
|
|
744
|
-
[
|
|
743
|
+
[_chunkHIXYNASXjs.HOST_URL_ENV]: baseUrl,
|
|
744
|
+
[_chunkHIXYNASXjs.API_KEY_ENV]: apiKeyResp,
|
|
745
745
|
...activeOrgEnvValues(data)
|
|
746
746
|
},
|
|
747
747
|
baseUrl,
|
|
748
748
|
resolvedAuthScope
|
|
749
749
|
);
|
|
750
750
|
if (resolvedAuthScope === "folder") {
|
|
751
|
-
const target =
|
|
751
|
+
const target = _chunkHIXYNASXjs.resolveProjectPinTarget.call(void 0, );
|
|
752
752
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
753
753
|
} else {
|
|
754
754
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
758
|
-
saveEnvValues(
|
|
757
|
+
} else if (resolvedAuthScope === "folder" || _chunkHIXYNASXjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
758
|
+
saveEnvValues(_chunkHIXYNASXjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
759
759
|
}
|
|
760
|
-
|
|
760
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
761
761
|
{
|
|
762
762
|
...payload,
|
|
763
|
-
...
|
|
764
|
-
command_context:
|
|
763
|
+
..._chunkHIXYNASXjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
764
|
+
command_context: _chunkHIXYNASXjs.resolveCliCommandContext.call(void 0,
|
|
765
765
|
{ baseUrl, apiKey },
|
|
766
766
|
resolvedAuthScope
|
|
767
767
|
)
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkEAIGGEV5js = require('./chunk-EAIGGEV5.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkHIXYNASXjs = require('./chunk-HIXYNASX.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkEAIGGEV5js.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkEAIGGEV5js.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkEAIGGEV5js.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkEAIGGEV5js.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkEAIGGEV5js.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkEAIGGEV5js.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkEAIGGEV5js.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkEAIGGEV5js.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkHIXYNASXjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkEAIGGEV5js.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkEAIGGEV5js.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkEAIGGEV5js.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkEAIGGEV5js.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -10,7 +10,7 @@ var _chunkZDO3TO3Mjs = require('./chunk-ZDO3TO3M.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkS6R3OX7Bjs = require('./chunk-S6R3OX7B.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -55,9 +55,9 @@ function buildPlayContractCompatibility(input) {
|
|
|
55
55
|
runtimeBackend: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _ => _.runtimeBackend]), () => ( null)),
|
|
56
56
|
toolErrorSchemaVersion: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _2 => _2.toolErrorSchemaVersion]), () => ( _chunk7P5AA3SNjs.TOOL_EXECUTION_ERROR_SCHEMA_VERSION)),
|
|
57
57
|
authoringContractEdition: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _3 => _3.authoringContractEdition]), () => ( _chunkZDO3TO3Mjs.PLAY_AUTHORING_CONTRACT_EDITION)),
|
|
58
|
-
toolResponseContract: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _4 => _4.toolResponseContract]), () => (
|
|
59
|
-
toolResponseReceiptRevision:
|
|
60
|
-
_nullishCoalesce(_optionalChain([input, 'optionalAccess', _5 => _5.toolResponseReceiptRevision]), () => (
|
|
58
|
+
toolResponseContract: _nullishCoalesce(_optionalChain([input, 'optionalAccess', _4 => _4.toolResponseContract]), () => ( _chunkS6R3OX7Bjs.RAW_V2_TOOL_RESPONSE_CONTRACT)),
|
|
59
|
+
toolResponseReceiptRevision: _chunkS6R3OX7Bjs.normalizeToolResponseReceiptRevision.call(void 0,
|
|
60
|
+
_nullishCoalesce(_optionalChain([input, 'optionalAccess', _5 => _5.toolResponseReceiptRevision]), () => ( _chunkS6R3OX7Bjs.RAW_V2_TOOL_RESPONSE_RECEIPT_REVISION))
|
|
61
61
|
)
|
|
62
62
|
};
|
|
63
63
|
}
|
|
@@ -2629,7 +2629,7 @@ async function writeArtifactCache(artifact, adapter) {
|
|
|
2629
2629
|
/* turbopackIgnore: true */
|
|
2630
2630
|
artifactCachePath(
|
|
2631
2631
|
artifact.graphHash,
|
|
2632
|
-
_nullishCoalesce(artifact.artifactKind, () => (
|
|
2632
|
+
_nullishCoalesce(artifact.artifactKind, () => ( _chunkS6R3OX7Bjs.PLAY_ARTIFACT_KINDS.cjsNode20)),
|
|
2633
2633
|
adapter
|
|
2634
2634
|
),
|
|
2635
2635
|
JSON.stringify(artifact),
|
|
@@ -2714,7 +2714,7 @@ async function runEsbuildForCjsNode(entryFile, customerSourceFilePaths, imported
|
|
|
2714
2714
|
}
|
|
2715
2715
|
async function bundlePlayFile(filePath, options) {
|
|
2716
2716
|
const adapter = options.adapter;
|
|
2717
|
-
const target = _nullishCoalesce(options.target, () => (
|
|
2717
|
+
const target = _nullishCoalesce(options.target, () => ( _chunkS6R3OX7Bjs.PLAY_ARTIFACT_KINDS.cjsNode20));
|
|
2718
2718
|
const exportName = _optionalChain([options, 'access', _98 => _98.exportName, 'optionalAccess', _99 => _99.trim, 'call', _100 => _100()]) || "default";
|
|
2719
2719
|
assertValidExportName(exportName);
|
|
2720
2720
|
const absolutePath = await normalizeLocalPath(filePath);
|
|
@@ -2932,8 +2932,8 @@ var PLAY_RUNTIME_PROVIDERS = {
|
|
|
2932
2932
|
// Server runs execute on Daytona; the local-dev/test shape swaps the runner
|
|
2933
2933
|
// axis to local_process (same as the local profile) via an explicit
|
|
2934
2934
|
// runtimeBackend override at submit while tests drive local_process.
|
|
2935
|
-
runner:
|
|
2936
|
-
artifactKind:
|
|
2935
|
+
runner: _chunkS6R3OX7Bjs.PLAY_RUNTIME_BACKENDS.daytona,
|
|
2936
|
+
artifactKind: _chunkS6R3OX7Bjs.PLAY_ARTIFACT_KINDS.cjsNode20,
|
|
2937
2937
|
label: "Absurd (Postgres-native durable) scheduler + one-shot Daytona runner"
|
|
2938
2938
|
}
|
|
2939
2939
|
};
|
|
@@ -3417,7 +3417,7 @@ async function bundlePlayFile2(filePath, options = {}) {
|
|
|
3417
3417
|
}
|
|
3418
3418
|
async function bundleDeployPlayFile(entryFile, options) {
|
|
3419
3419
|
return bundlePlayFile(entryFile, {
|
|
3420
|
-
target:
|
|
3420
|
+
target: _chunkS6R3OX7Bjs.PLAY_ARTIFACT_KINDS.cjsNode20,
|
|
3421
3421
|
adapter: {
|
|
3422
3422
|
...createSdkPlayBundlingAdapter(),
|
|
3423
3423
|
sourceIdentityRoot: options.sourceIdentityRoot,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5NEXN4MZjs = require('./chunk-5NEXN4MZ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkGQUI3NYNjs = require('./chunk-GQUI3NYN.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkEAIGGEV5js = require('./chunk-EAIGGEV5.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkHIXYNASXjs = require('./chunk-HIXYNASX.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -504,7 +504,7 @@ function normalizedNpmPrefix(value) {
|
|
|
504
504
|
}
|
|
505
505
|
function resolveNpmGlobalPrefix(env) {
|
|
506
506
|
try {
|
|
507
|
-
const plan =
|
|
507
|
+
const plan = _chunkGQUI3NYNjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"]);
|
|
508
508
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
509
509
|
encoding: "utf8",
|
|
510
510
|
env,
|
|
@@ -560,8 +560,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
560
560
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
561
561
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
562
562
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
563
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
564
|
-
const npmGlobalInstallFlags =
|
|
563
|
+
const npmVersion = options.npmVersion === void 0 ? _chunk5NEXN4MZjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
564
|
+
const npmGlobalInstallFlags = _chunk5NEXN4MZjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
565
565
|
const args = installPrefix ? [
|
|
566
566
|
"install",
|
|
567
567
|
"-g",
|
|
@@ -571,7 +571,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
571
571
|
packageSpec
|
|
572
572
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
573
573
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
574
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
574
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkHIXYNASXjs.autoDetectBaseUrl.call(void 0, )
|
|
575
575
|
);
|
|
576
576
|
return {
|
|
577
577
|
kind: "npm-global",
|
|
@@ -718,7 +718,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
718
718
|
function runCommand(command, args, env = process.env) {
|
|
719
719
|
return new Promise((resolveResult) => {
|
|
720
720
|
let output = "";
|
|
721
|
-
const plan =
|
|
721
|
+
const plan = _chunkGQUI3NYNjs.resolveShellSpawn.call(void 0, command, args);
|
|
722
722
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
723
723
|
stdio: ["inherit", "pipe", "pipe"],
|
|
724
724
|
shell: plan.shell,
|
|
@@ -1094,14 +1094,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1094
1094
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1095
1095
|
}
|
|
1096
1096
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1097
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1097
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkHIXYNASXjs.autoDetectBaseUrl));
|
|
1098
1098
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1099
1099
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1100
1100
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1101
1101
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1102
1102
|
process.stdout.write = (() => true);
|
|
1103
1103
|
try {
|
|
1104
|
-
const exitCode = await
|
|
1104
|
+
const exitCode = await _chunkGQUI3NYNjs.runSkillsCommand.call(void 0, { json: true });
|
|
1105
1105
|
if (exitCode !== 0) {
|
|
1106
1106
|
throw new Error(
|
|
1107
1107
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1172,11 +1172,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1172
1172
|
]
|
|
1173
1173
|
};
|
|
1174
1174
|
if (options.json && !options.executeWithJson) {
|
|
1175
|
-
|
|
1175
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1176
1176
|
return 0;
|
|
1177
1177
|
}
|
|
1178
1178
|
if (options.printCommand) {
|
|
1179
|
-
|
|
1179
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
1180
1180
|
{
|
|
1181
1181
|
...plan,
|
|
1182
1182
|
render: {
|
|
@@ -1189,7 +1189,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1189
1189
|
return 0;
|
|
1190
1190
|
}
|
|
1191
1191
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1192
|
-
|
|
1192
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1193
1193
|
return 0;
|
|
1194
1194
|
}
|
|
1195
1195
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1219,7 +1219,7 @@ To retry with full installer output, run: deepline skills --json
|
|
|
1219
1219
|
);
|
|
1220
1220
|
}
|
|
1221
1221
|
if (options.executeWithJson && options.json) {
|
|
1222
|
-
|
|
1222
|
+
_chunkEAIGGEV5js.printCommandEnvelope.call(void 0,
|
|
1223
1223
|
{
|
|
1224
1224
|
ok: true,
|
|
1225
1225
|
pinnedVersion
|