deepline 0.3.299 → 0.3.300
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/client.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +4 -0
- package/dist/cli/auth-6JUPJXSW.js +31 -0
- package/dist/cli/{auth-GWIEEZWL.mjs → auth-RVK23SLA.mjs} +4 -4
- package/dist/cli/{billing-K5EVUVEH.js → billing-6LEQNTUS.js} +70 -70
- package/dist/cli/{billing-O5RAKWXK.mjs → billing-CBWRPMBG.mjs} +4 -4
- package/dist/cli/{chunk-CL4YLYGW.js → chunk-2C5H32YE.js} +6 -6
- package/dist/cli/{chunk-TRSF2X3K.mjs → chunk-6AUI2MS4.mjs} +1 -1
- package/dist/cli/{chunk-DMTWRFPD.js → chunk-6CLYAWXK.js} +4 -4
- package/dist/cli/{chunk-S34ZVHGJ.mjs → chunk-BFGSCAZ7.mjs} +1 -1
- package/dist/cli/{chunk-FKKCGFQ2.mjs → chunk-BLANZQG2.mjs} +2 -2
- package/dist/cli/{chunk-XUMCCIOY.js → chunk-BW3WGFLG.js} +48 -48
- package/dist/cli/{chunk-WF7XMZAC.js → chunk-DRLNWL4W.js} +6 -6
- package/dist/cli/{chunk-5465KL4F.mjs → chunk-E6S4RTMG.mjs} +4 -4
- package/dist/cli/{chunk-FT2TIKOX.mjs → chunk-GQISQAAZ.mjs} +2 -2
- package/dist/cli/{chunk-BQ63LCEL.mjs → chunk-LH7IBCW2.mjs} +3 -3
- package/dist/cli/{chunk-SJK2LSDQ.js → chunk-M5SHROFS.js} +7 -6
- package/dist/cli/{chunk-W2N5FICT.mjs → chunk-MFGPKFJC.mjs} +1 -1
- package/dist/cli/{chunk-2BISKKLW.js → chunk-N5A3LWPC.js} +57 -57
- package/dist/cli/{chunk-D2P4AM5M.js → chunk-NMTG3N2J.js} +6 -6
- package/dist/cli/{chunk-QAEIUQPS.mjs → chunk-NXOML2N6.mjs} +1 -1
- package/dist/cli/{chunk-ACSNZYU3.js → chunk-OCKGMK6B.js} +2 -2
- package/dist/cli/{chunk-4B7VWFHW.js → chunk-OKKAFDXS.js} +15 -15
- package/dist/cli/{chunk-6ECTEH6V.mjs → chunk-RLDEQJQQ.mjs} +2 -2
- package/dist/cli/{chunk-3M3LQJUV.js → chunk-XUA3QCZU.js} +26 -26
- package/dist/cli/{chunk-ZWUOF7WR.mjs → chunk-YLYVPHEG.mjs} +1 -1
- package/dist/cli/{chunk-REFGDIMC.js → chunk-YR26QBMJ.js} +1 -1
- package/dist/cli/{chunk-CJBMCJW7.mjs → chunk-Z3RMVRCQ.mjs} +2 -1
- package/dist/cli/{client-OXUEAZD2.mjs → client-6D6UBKDX.mjs} +3 -3
- package/dist/cli/client-HAGQESNI.js +20 -0
- package/dist/cli/{csv-J24BXLDP.js → csv-O4HDE34Y.js} +12 -12
- package/dist/cli/{csv-NV6QBRGT.mjs → csv-VK327Z63.mjs} +3 -3
- package/dist/cli/{db-FL4N5LXG.js → db-IL35EIOE.js} +20 -20
- package/dist/cli/{db-IY4LHKLR.mjs → db-TRNRYJL6.mjs} +4 -4
- package/dist/cli/{executions-OYGLF6K2.js → executions-CFWDNHOQ.js} +6 -6
- package/dist/cli/{executions-72PNXJWI.mjs → executions-JEUBKNUA.mjs} +4 -4
- package/dist/cli/{feedback-NGPJBTUS.mjs → feedback-BSSEEXR2.mjs} +3 -3
- package/dist/cli/{feedback-WHOLOKBU.js → feedback-F7HXHQY3.js} +6 -6
- package/dist/cli/{git-HQKCORLT.mjs → git-I3AAHTCJ.mjs} +4 -4
- package/dist/cli/git-T5WWT3DW.js +23 -0
- package/dist/cli/index.js +73 -73
- package/dist/cli/index.mjs +30 -30
- package/dist/cli/{legacy-noops-5RHXWONK.js → legacy-noops-HNN7WPWF.js} +7 -7
- package/dist/cli/{legacy-noops-MCAHTGPU.mjs → legacy-noops-KTRWO7NA.mjs} +4 -4
- package/dist/cli/{monitors-MC4QEQ7N.js → monitors-4Y4M3ZJ3.js} +85 -85
- package/dist/cli/{monitors-X2KE6CL6.mjs → monitors-D64KB7G2.mjs} +4 -4
- package/dist/cli/{org-75TWPW5D.js → org-ELLMCZRC.js} +60 -60
- package/dist/cli/{org-YW6EKMHL.mjs → org-UGIVFU7B.mjs} +4 -4
- package/dist/cli/{play-DEBY5SCV.mjs → play-LUNGZ5ZJ.mjs} +9 -6
- package/dist/cli/{play-CAMPEI5I.js → play-NXV5UJYW.js} +203 -200
- package/dist/cli/{providers-VNOHQ2AS.js → providers-AL6YIZVA.js} +7 -7
- package/dist/cli/{providers-IA77P6YJ.mjs → providers-YCNHAEFJ.mjs} +4 -4
- package/dist/cli/{quickstart-LDTV2HGI.js → quickstart-LK5IBLYY.js} +5 -5
- package/dist/cli/{quickstart-K7HQS543.mjs → quickstart-R6AOCVA2.mjs} +3 -3
- package/dist/cli/{search-536X3UCU.mjs → search-77YOO5TG.mjs} +5 -5
- package/dist/cli/{search-SN5OPRXZ.js → search-PGW2ZEZ3.js} +6 -6
- package/dist/cli/{secrets-2EW56WXT.js → secrets-5OV4C2UI.js} +13 -13
- package/dist/cli/{secrets-B3AJVZEX.mjs → secrets-OWNCPA6L.mjs} +4 -4
- package/dist/cli/{sessions-3VDMBHNS.js → sessions-NOLZ4NAQ.js} +5 -5
- package/dist/cli/{sessions-WBJUUGWS.mjs → sessions-RVJHCSYH.mjs} +4 -4
- package/dist/cli/{settings-KABYSG3X.js → settings-326S34JQ.js} +74 -74
- package/dist/cli/{settings-RLDDNKLV.mjs → settings-LEYUQDYL.mjs} +7 -7
- package/dist/cli/{setup-CSOSGT4H.js → setup-7RTEC2RE.js} +41 -41
- package/dist/cli/{setup-LXS6GANX.mjs → setup-CNE25BAJ.mjs} +6 -6
- package/dist/cli/{skills-63SF5XTZ.mjs → skills-R4EC4IXL.mjs} +4 -4
- package/dist/cli/skills-SE54MI6I.js +28 -0
- package/dist/cli/{tools-HNP35FVR.mjs → tools-BEBLJVVA.mjs} +5 -5
- package/dist/cli/{tools-RHL5K6UA.js → tools-ZVTN62JI.js} +50 -50
- package/dist/cli/{update-BIUXK2GK.mjs → update-5JG7TQZ4.mjs} +6 -6
- package/dist/cli/update-IQYOCMLG.js +28 -0
- package/dist/cli/{workflow-EKLCRCUD.mjs → workflow-FQVZBGT3.mjs} +5 -5
- package/dist/cli/{workflow-45YNQNPE.js → workflow-VTDHF75U.js} +15 -15
- package/dist/{client-Ct4jmvAg.d.ts → client-DjJfoW8r.d.ts} +4 -0
- package/dist/{client-Ct9GKrwu.d.mts → client-Me88eH3z.d.mts} +4 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +70 -70
- 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-4WFBFN3L.js +0 -31
- package/dist/cli/client-ZBLK3VOY.js +0 -20
- package/dist/cli/git-GD5I7YOP.js +0 -23
- package/dist/cli/skills-C7MLZJEK.js +0 -28
- package/dist/cli/update-NFJGKKZ6.js +0 -28
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDRLNWL4Wjs = require('./chunk-DRLNWL4W.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -22,7 +22,7 @@ var _chunkWF7XMZACjs = require('./chunk-WF7XMZAC.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk6CLYAWXKjs = require('./chunk-6CLYAWXK.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -116,7 +116,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
116
116
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
117
117
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
118
118
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
119
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
119
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunk6CLYAWXKjs.DEFAULT_SKILL_AGENTS));
|
|
120
120
|
const values = {
|
|
121
121
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
122
122
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -192,7 +192,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
192
192
|
return value === "1" || value === "true" || value === "yes";
|
|
193
193
|
}
|
|
194
194
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
|
|
195
|
-
return _path.join.call(void 0,
|
|
195
|
+
return _path.join.call(void 0, _chunk6CLYAWXKjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
196
196
|
}
|
|
197
197
|
function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
198
198
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -200,9 +200,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
|
|
|
200
200
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
201
201
|
return JSON.stringify({
|
|
202
202
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
203
|
-
version:
|
|
204
|
-
apiContract:
|
|
205
|
-
apiMajor:
|
|
203
|
+
version: _chunk6CLYAWXKjs.SDK_VERSION,
|
|
204
|
+
apiContract: _chunk6CLYAWXKjs.SDK_API_CONTRACT,
|
|
205
|
+
apiMajor: _chunk6CLYAWXKjs.SDK_API_MAJOR,
|
|
206
206
|
command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
|
|
207
207
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
208
208
|
});
|
|
@@ -210,8 +210,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
210
210
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
211
211
|
return JSON.stringify({
|
|
212
212
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
213
|
-
version:
|
|
214
|
-
apiContract:
|
|
213
|
+
version: _chunk6CLYAWXKjs.SDK_VERSION,
|
|
214
|
+
apiContract: _chunk6CLYAWXKjs.SDK_API_CONTRACT,
|
|
215
215
|
command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
|
|
216
216
|
});
|
|
217
217
|
}
|
|
@@ -304,7 +304,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
304
304
|
);
|
|
305
305
|
try {
|
|
306
306
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
307
|
-
url.searchParams.set("version",
|
|
307
|
+
url.searchParams.set("version", _chunk6CLYAWXKjs.SDK_VERSION);
|
|
308
308
|
if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
|
|
309
309
|
url.searchParams.set("command", options.command.trim());
|
|
310
310
|
}
|
|
@@ -314,11 +314,11 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
314
314
|
const response = await fetch(url, {
|
|
315
315
|
method: "GET",
|
|
316
316
|
headers: {
|
|
317
|
-
...
|
|
318
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
319
|
-
"X-Deepline-SDK-Version":
|
|
320
|
-
"X-Deepline-API-Major": String(
|
|
321
|
-
"X-Deepline-API-Contract":
|
|
317
|
+
..._chunk6CLYAWXKjs.deploymentProtectionHeaders.call(void 0, ),
|
|
318
|
+
"User-Agent": `deepline-ts-sdk/${_chunk6CLYAWXKjs.SDK_VERSION}`,
|
|
319
|
+
"X-Deepline-SDK-Version": _chunk6CLYAWXKjs.SDK_VERSION,
|
|
320
|
+
"X-Deepline-API-Major": String(_chunk6CLYAWXKjs.SDK_API_MAJOR),
|
|
321
|
+
"X-Deepline-API-Contract": _chunk6CLYAWXKjs.SDK_API_CONTRACT,
|
|
322
322
|
"X-Deepline-CLI-Update-Preferences": "1"
|
|
323
323
|
},
|
|
324
324
|
signal: controller.signal
|
|
@@ -534,7 +534,7 @@ function buildEnvironmentContext() {
|
|
|
534
534
|
node_version: process.version,
|
|
535
535
|
runtime: "Node.js",
|
|
536
536
|
hostname: _os.hostname.call(void 0, ),
|
|
537
|
-
agent_runtime:
|
|
537
|
+
agent_runtime: _chunk6CLYAWXKjs.detectAgentRuntime.call(void 0, )
|
|
538
538
|
};
|
|
539
539
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
540
540
|
const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
|
|
@@ -558,12 +558,12 @@ function failureReportHeaders(apiKey) {
|
|
|
558
558
|
return {
|
|
559
559
|
Authorization: `Bearer ${apiKey}`,
|
|
560
560
|
"Content-Type": "application/json",
|
|
561
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
561
|
+
"User-Agent": `deepline-ts-sdk/${_chunk6CLYAWXKjs.SDK_VERSION}`,
|
|
562
562
|
"X-Deepline-Client-Family": "sdk",
|
|
563
563
|
"X-Deepline-CLI-Family": "sdk",
|
|
564
|
-
"X-Deepline-Agent-Runtime":
|
|
565
|
-
"X-Deepline-CLI-Version":
|
|
566
|
-
"X-Deepline-SDK-Version":
|
|
564
|
+
"X-Deepline-Agent-Runtime": _chunk6CLYAWXKjs.detectAgentRuntime.call(void 0, ),
|
|
565
|
+
"X-Deepline-CLI-Version": _chunk6CLYAWXKjs.SDK_VERSION,
|
|
566
|
+
"X-Deepline-SDK-Version": _chunk6CLYAWXKjs.SDK_VERSION
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
569
|
async function postFailureReport(input) {
|
|
@@ -591,7 +591,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
591
591
|
if (isFailureReportingDisabled()) return false;
|
|
592
592
|
let apiKey = "";
|
|
593
593
|
try {
|
|
594
|
-
apiKey =
|
|
594
|
+
apiKey = _chunk6CLYAWXKjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
595
595
|
} catch (e6) {
|
|
596
596
|
return false;
|
|
597
597
|
}
|
|
@@ -618,7 +618,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
618
618
|
failure_code: failureCode2,
|
|
619
619
|
failure_stage: failureStage,
|
|
620
620
|
error_body: "Automatic Deepline skills installation failed.",
|
|
621
|
-
cli_version:
|
|
621
|
+
cli_version: _chunk6CLYAWXKjs.SDK_VERSION,
|
|
622
622
|
context: {
|
|
623
623
|
environment: buildEnvironmentContext(),
|
|
624
624
|
skills_sync: {
|
|
@@ -738,7 +738,7 @@ function buildFailureReport(input) {
|
|
|
738
738
|
failure_kind: failureKind,
|
|
739
739
|
failure_code: code,
|
|
740
740
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
741
|
-
cli_version:
|
|
741
|
+
cli_version: _chunk6CLYAWXKjs.SDK_VERSION,
|
|
742
742
|
context: {
|
|
743
743
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
744
744
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -758,8 +758,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
758
758
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
759
759
|
const exitCode = resolvedExitCode(input);
|
|
760
760
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
761
|
-
const baseUrl =
|
|
762
|
-
const apiKey =
|
|
761
|
+
const baseUrl = _chunk6CLYAWXKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
762
|
+
const apiKey = _chunk6CLYAWXKjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
763
763
|
if (!apiKey) return false;
|
|
764
764
|
return postFailureReport({
|
|
765
765
|
baseUrl,
|
|
@@ -780,25 +780,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
780
780
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
781
781
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
782
782
|
function shouldSkipSkillsSync() {
|
|
783
|
-
if (
|
|
783
|
+
if (_chunk6CLYAWXKjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
784
784
|
return true;
|
|
785
785
|
}
|
|
786
786
|
const value = _optionalChain([process, 'access', _56 => _56.env, 'access', _57 => _57.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _58 => _58.trim, 'call', _59 => _59(), 'access', _60 => _60.toLowerCase, 'call', _61 => _61()]);
|
|
787
787
|
return value === "1" || value === "true" || value === "yes" || value === "on";
|
|
788
788
|
}
|
|
789
789
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
790
|
-
return _path.join.call(void 0,
|
|
790
|
+
return _path.join.call(void 0, _chunk6CLYAWXKjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
791
791
|
}
|
|
792
792
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
793
793
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
794
|
-
var agentLeaseSegment =
|
|
794
|
+
var agentLeaseSegment = _chunk6CLYAWXKjs.skillsAgentPathSegment;
|
|
795
795
|
function sortedLeaseAgents(agents) {
|
|
796
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
796
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunk6CLYAWXKjs.KNOWN_SKILL_AGENTS] : agents;
|
|
797
797
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
798
798
|
}
|
|
799
799
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
800
800
|
return _path.join.call(void 0,
|
|
801
|
-
|
|
801
|
+
_chunk6CLYAWXKjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
802
802
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
803
803
|
);
|
|
804
804
|
}
|
|
@@ -1015,7 +1015,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
1017
1017
|
return _path.join.call(void 0,
|
|
1018
|
-
|
|
1018
|
+
_chunk6CLYAWXKjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1019
1019
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
1020
1020
|
);
|
|
1021
1021
|
}
|
|
@@ -1049,8 +1049,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
1049
1049
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
1050
1050
|
}
|
|
1051
1051
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
1052
|
-
if (shouldSkipSkillsSync() ||
|
|
1053
|
-
const agents =
|
|
1052
|
+
if (shouldSkipSkillsSync() || _chunk6CLYAWXKjs.hasActivePluginSkills.call(void 0, )) return;
|
|
1053
|
+
const agents = _chunk6CLYAWXKjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1054
1054
|
if (agents.length === 0) return;
|
|
1055
1055
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1056
1056
|
}
|
|
@@ -1066,7 +1066,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
|
|
|
1066
1066
|
}
|
|
1067
1067
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
1068
1068
|
return _path.join.call(void 0,
|
|
1069
|
-
|
|
1069
|
+
_chunk6CLYAWXKjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1070
1070
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
1071
1071
|
);
|
|
1072
1072
|
}
|
|
@@ -1095,7 +1095,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
1095
1095
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
1096
1096
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
1097
1097
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
1098
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
1098
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunk6CLYAWXKjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
1099
1099
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _66 => _66.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
1100
1100
|
notice(
|
|
1101
1101
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -1182,7 +1182,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
1182
1182
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
1183
1183
|
}
|
|
1184
1184
|
function isDefaultAgentSet(agents) {
|
|
1185
|
-
return agents.length ===
|
|
1185
|
+
return agents.length === _chunk6CLYAWXKjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk6CLYAWXKjs.DEFAULT_SKILL_AGENTS[index]);
|
|
1186
1186
|
}
|
|
1187
1187
|
function safeSkillFilePath(value) {
|
|
1188
1188
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1379,7 +1379,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1379
1379
|
}
|
|
1380
1380
|
function noInstallerProbePath(baseUrl) {
|
|
1381
1381
|
return _path.join.call(void 0,
|
|
1382
|
-
|
|
1382
|
+
_chunk6CLYAWXKjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1383
1383
|
"skills-sync-no-installer-unknown.json"
|
|
1384
1384
|
);
|
|
1385
1385
|
}
|
|
@@ -1435,7 +1435,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1435
1435
|
function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
|
|
1436
1436
|
return resolveShellSpawn(install.command, install.args, platform2);
|
|
1437
1437
|
}
|
|
1438
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1438
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk6CLYAWXKjs.DEFAULT_SKILL_AGENTS) {
|
|
1439
1439
|
const commands = [];
|
|
1440
1440
|
if (hasCommand("bunx")) {
|
|
1441
1441
|
const bunxArgs = buildBunxSkillsInstallArgs(baseUrl, skillNames, agents);
|
|
@@ -1586,11 +1586,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1588
1588
|
if (shouldSkipSkillsSync()) return;
|
|
1589
|
-
const usingPluginSkills =
|
|
1589
|
+
const usingPluginSkills = _chunk6CLYAWXKjs.hasActivePluginSkills.call(void 0, );
|
|
1590
1590
|
if (usingPluginSkills) {
|
|
1591
1591
|
return;
|
|
1592
1592
|
}
|
|
1593
|
-
const agents =
|
|
1593
|
+
const agents = _chunk6CLYAWXKjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1594
1594
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1595
1595
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1596
1596
|
}
|
|
@@ -1614,7 +1614,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1614
1614
|
if (outcome !== "unavailable") return;
|
|
1615
1615
|
}
|
|
1616
1616
|
try {
|
|
1617
|
-
const localVersion =
|
|
1617
|
+
const localVersion = _chunk6CLYAWXKjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1618
1618
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1619
1619
|
needsUpdate: options.update.needs_update,
|
|
1620
1620
|
remoteVersion: options.update.remote.version
|
|
@@ -1769,7 +1769,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1769
1769
|
}
|
|
1770
1770
|
}
|
|
1771
1771
|
runLegacySkillsCleanup(agents);
|
|
1772
|
-
if (!
|
|
1772
|
+
if (!_chunk6CLYAWXKjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1773
1773
|
notice(
|
|
1774
1774
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1775
1775
|
);
|
|
@@ -1827,7 +1827,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
|
|
|
1827
1827
|
return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
|
|
1828
1828
|
}
|
|
1829
1829
|
function resolveLocalRoot() {
|
|
1830
|
-
const target =
|
|
1830
|
+
const target = _chunk6CLYAWXKjs.resolveProjectPinTarget.call(void 0, );
|
|
1831
1831
|
if (!target.ok) {
|
|
1832
1832
|
throw new Error(
|
|
1833
1833
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -1838,7 +1838,7 @@ function resolveLocalRoot() {
|
|
|
1838
1838
|
return target.dir;
|
|
1839
1839
|
}
|
|
1840
1840
|
function detectSkillsAgents(input) {
|
|
1841
|
-
const runtime = _nullishCoalesce(input.runtime, () => (
|
|
1841
|
+
const runtime = _nullishCoalesce(input.runtime, () => ( _chunk6CLYAWXKjs.detectAgentRuntime.call(void 0, )));
|
|
1842
1842
|
const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
|
|
1843
1843
|
if (knownAgent) return [knownAgent];
|
|
1844
1844
|
const roots = [
|
|
@@ -1853,7 +1853,7 @@ function detectSkillsAgents(input) {
|
|
|
1853
1853
|
return detected.length > 0 ? detected : ["*"];
|
|
1854
1854
|
}
|
|
1855
1855
|
function skillsStatePathForScope(baseUrl, scope, root) {
|
|
1856
|
-
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0,
|
|
1856
|
+
return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk6CLYAWXKjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
|
|
1857
1857
|
}
|
|
1858
1858
|
function buildSkillsPlan(input) {
|
|
1859
1859
|
const scopeArgs = input.scope === "global" ? ["--global"] : [];
|
|
@@ -1969,7 +1969,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
1969
1969
|
scope = normalizeScope(options.scope);
|
|
1970
1970
|
root = scope === "local" ? resolveLocalRoot() : null;
|
|
1971
1971
|
} catch (error) {
|
|
1972
|
-
|
|
1972
|
+
_chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
|
|
1973
1973
|
{
|
|
1974
1974
|
ok: false,
|
|
1975
1975
|
status: "failed",
|
|
@@ -1981,22 +1981,22 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
1981
1981
|
);
|
|
1982
1982
|
return 2;
|
|
1983
1983
|
}
|
|
1984
|
-
const baseUrl =
|
|
1984
|
+
const baseUrl = _chunk6CLYAWXKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
1985
1985
|
const catalog = {
|
|
1986
1986
|
skillNames: [...DEFAULT_SDK_SKILL_NAMES],
|
|
1987
|
-
version:
|
|
1987
|
+
version: _chunk6CLYAWXKjs.SDK_VERSION
|
|
1988
1988
|
};
|
|
1989
1989
|
const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
|
|
1990
1990
|
const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
|
|
1991
1991
|
if (options.dryRun) {
|
|
1992
|
-
|
|
1992
|
+
_chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
|
|
1993
1993
|
{ ok: true, status: "planned", dryRun: true, ...plan },
|
|
1994
1994
|
{ json: options.json }
|
|
1995
1995
|
);
|
|
1996
1996
|
return 0;
|
|
1997
1997
|
}
|
|
1998
1998
|
if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
|
|
1999
|
-
|
|
1999
|
+
_chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
|
|
2000
2000
|
{
|
|
2001
2001
|
ok: true,
|
|
2002
2002
|
status: "current",
|
|
@@ -2031,7 +2031,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2031
2031
|
.../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
|
|
2032
2032
|
];
|
|
2033
2033
|
const agentRoots = workspaceSkillRootsForAgents(plan.agents);
|
|
2034
|
-
|
|
2034
|
+
_chunk6CLYAWXKjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
|
|
2035
2035
|
".deepline/",
|
|
2036
2036
|
...agentRoots.flatMap(
|
|
2037
2037
|
(agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
|
|
@@ -2046,7 +2046,7 @@ async function runSkillsCommand(options, dependencies = {}) {
|
|
|
2046
2046
|
}) : { release: () => {
|
|
2047
2047
|
} };
|
|
2048
2048
|
if (!lease) {
|
|
2049
|
-
|
|
2049
|
+
_chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
|
|
2050
2050
|
{
|
|
2051
2051
|
ok: false,
|
|
2052
2052
|
status: "failed",
|
|
@@ -2092,7 +2092,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2092
2092
|
throw new Error("Could not install the current Deepline skills.");
|
|
2093
2093
|
}
|
|
2094
2094
|
} catch (error) {
|
|
2095
|
-
|
|
2095
|
+
_chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
|
|
2096
2096
|
{
|
|
2097
2097
|
ok: false,
|
|
2098
2098
|
status: "failed",
|
|
@@ -2131,7 +2131,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2131
2131
|
{
|
|
2132
2132
|
schemaVersion: 1,
|
|
2133
2133
|
installedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
2134
|
-
cliVersion:
|
|
2134
|
+
cliVersion: _chunk6CLYAWXKjs.SDK_VERSION,
|
|
2135
2135
|
scope,
|
|
2136
2136
|
agents,
|
|
2137
2137
|
skillsVersion: plan.version,
|
|
@@ -2146,7 +2146,7 @@ async function runSkillsInstallWithLease(input) {
|
|
|
2146
2146
|
if (scope === "global") {
|
|
2147
2147
|
clearFailedAutomaticSkillsSync(baseUrl, agents);
|
|
2148
2148
|
}
|
|
2149
|
-
|
|
2149
|
+
_chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
|
|
2150
2150
|
{
|
|
2151
2151
|
ok: true,
|
|
2152
2152
|
status: "complete",
|
|
@@ -2195,7 +2195,7 @@ Examples:
|
|
|
2195
2195
|
).action(async (options) => {
|
|
2196
2196
|
const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
|
|
2197
2197
|
if (!claim) {
|
|
2198
|
-
|
|
2198
|
+
_chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
|
|
2199
2199
|
{
|
|
2200
2200
|
ok: false,
|
|
2201
2201
|
status: "failed",
|
|
@@ -2208,7 +2208,7 @@ Examples:
|
|
|
2208
2208
|
process.exitCode = 2;
|
|
2209
2209
|
return;
|
|
2210
2210
|
}
|
|
2211
|
-
await syncSdkSkillsIfNeeded(
|
|
2211
|
+
await syncSdkSkillsIfNeeded(_chunk6CLYAWXKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
|
|
2212
2212
|
mode: "inline",
|
|
2213
2213
|
notices: "defer",
|
|
2214
2214
|
claim
|
|
@@ -1,20 +1,20 @@
|
|
|
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 _chunkM5SHROFSjs = require('./chunk-M5SHROFS.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDRLNWL4Wjs = require('./chunk-DRLNWL4W.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunk6CLYAWXKjs = require('./chunk-6CLYAWXK.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/search-ref.ts
|
|
13
13
|
var _fs = require('fs');
|
|
14
14
|
var _path = require('path');
|
|
15
15
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
16
16
|
function lastSearchPath() {
|
|
17
|
-
return _path.join.call(void 0,
|
|
17
|
+
return _path.join.call(void 0, _chunk6CLYAWXKjs.sdkCliStateDirPath.call(void 0, _chunk6CLYAWXKjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
18
18
|
}
|
|
19
19
|
function rememberSearchRef(searchRef) {
|
|
20
20
|
try {
|
|
@@ -82,7 +82,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
82
82
|
console.error(USAGE);
|
|
83
83
|
return 1;
|
|
84
84
|
}
|
|
85
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
85
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkM5SHROFSjs.DeeplineClient)().search({
|
|
86
86
|
query,
|
|
87
87
|
types,
|
|
88
88
|
exclude,
|
|
@@ -95,7 +95,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
95
95
|
includeSearchDebug: Boolean(options.includeSearchDebug)
|
|
96
96
|
});
|
|
97
97
|
if (searchRef) rememberSearchRef(searchRef);
|
|
98
|
-
|
|
98
|
+
_chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, result, {
|
|
99
99
|
json: options.json === true
|
|
100
100
|
});
|
|
101
101
|
return 0;
|
|
@@ -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.300",
|
|
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,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 _chunkN5A3LWPCjs = require('./chunk-N5A3LWPC.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 = _chunkN5A3LWPCjs.resolveShellSpawn.call(void 0, "npm", ["--version"]);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -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 _chunkOCKGMK6Bjs = require('./chunk-OCKGMK6B.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkN5A3LWPCjs = require('./chunk-N5A3LWPC.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkDRLNWL4Wjs = require('./chunk-DRLNWL4W.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk6CLYAWXKjs = require('./chunk-6CLYAWXK.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 = _chunkN5A3LWPCjs.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 ? _chunkOCKGMK6Bjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
564
|
+
const npmGlobalInstallFlags = _chunkOCKGMK6Bjs.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()]) || _chunk6CLYAWXKjs.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 = _chunkN5A3LWPCjs.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, () => ( _chunk6CLYAWXKjs.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 _chunkN5A3LWPCjs.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
|
+
_chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1176
1176
|
return 0;
|
|
1177
1177
|
}
|
|
1178
1178
|
if (options.printCommand) {
|
|
1179
|
-
|
|
1179
|
+
_chunkDRLNWL4Wjs.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
|
+
_chunkDRLNWL4Wjs.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
|
+
_chunkDRLNWL4Wjs.printCommandEnvelope.call(void 0,
|
|
1223
1223
|
{
|
|
1224
1224
|
ok: true,
|
|
1225
1225
|
pinnedVersion
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6AUI2MS4.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BFGSCAZ7.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|