@humain/terminal 0.1.1 → 0.2.1
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/CHANGELOG.md +16 -0
- package/dist/bundle/chunks/{anthropic-messages-XULXUBIG.js → anthropic-messages-QFCEKGI3.js} +1 -1
- package/dist/bundle/chunks/{azure-openai-responses-JEG2XOYC.js → azure-openai-responses-G4ZMHV37.js} +1 -1
- package/dist/bundle/chunks/chunk-7T6XCLJF.js +22 -0
- package/dist/bundle/chunks/chunk-D6HHRSB5.js +103 -0
- package/dist/bundle/chunks/chunk-EY4DWHQU.js +2 -0
- package/dist/bundle/chunks/{chunk-LYAMSPR2.js → chunk-I47ZWR55.js} +483 -506
- package/dist/bundle/chunks/{chunk-JUPSJTFQ.js → chunk-K4JAZYQH.js} +1 -1
- package/dist/bundle/chunks/{chunk-HPPQHK3J.js → chunk-KKIB2TVR.js} +1 -1
- package/dist/bundle/chunks/chunk-LI2YVPWP.js +2 -0
- package/dist/bundle/chunks/{chunk-BZQ53VGE.js → chunk-XSR434CO.js} +1 -1
- package/dist/bundle/chunks/compat-QCV26HNS.js +2 -0
- package/dist/bundle/chunks/dist-PRPIUY3U.js +2 -0
- package/dist/bundle/chunks/esm-E7UVEYTO.js +4 -0
- package/dist/bundle/chunks/{extract-TRW5FBY6.js → extract-CTIFQZDJ.js} +15 -14
- package/dist/bundle/chunks/{google-generative-ai-OX6VSCA6.js → google-generative-ai-RSUU4MWO.js} +1 -1
- package/dist/bundle/chunks/{google-vertex-GW76GSS2.js → google-vertex-CKQPOITO.js} +1 -1
- package/dist/bundle/chunks/host-WP3MVKS2.js +2 -0
- package/dist/bundle/chunks/{node-KOIP55YZ.js → node-NF43OPII.js} +1 -1
- package/dist/bundle/chunks/{node-XY3CBY3C.js → node-UMFM7CDZ.js} +1 -1
- package/dist/bundle/chunks/{openai-codex-responses-NPLWP6ZC.js → openai-codex-responses-S34V5ZSD.js} +1 -1
- package/dist/bundle/chunks/{openai-completions-OT2GTJKC.js → openai-completions-T2IGVUEI.js} +1 -1
- package/dist/bundle/chunks/{openai-responses-5A6CR7GI.js → openai-responses-GYZODCT3.js} +1 -1
- package/dist/bundle/chunks/readability-LAGF34IB.js +3 -0
- package/dist/bundle/chunks/turndown.cjs-HRMZVRUL.js +2 -0
- package/dist/bundle/cli.js +1 -1
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/core/tools/file-mutation-queue.d.ts.map +1 -1
- package/dist/core/tools/file-mutation-queue.js +21 -8
- package/dist/core/tools/file-mutation-queue.js.map +1 -1
- package/dist/core/tools/subagent-env.d.ts +18 -0
- package/dist/core/tools/subagent-env.d.ts.map +1 -0
- package/dist/core/tools/subagent-env.js +43 -0
- package/dist/core/tools/subagent-env.js.map +1 -0
- package/dist/core/tools/subagent-scheduler.d.ts +31 -0
- package/dist/core/tools/subagent-scheduler.d.ts.map +1 -0
- package/dist/core/tools/subagent-scheduler.js +203 -0
- package/dist/core/tools/subagent-scheduler.js.map +1 -0
- package/dist/core/tools/subagent.d.ts +83 -3
- package/dist/core/tools/subagent.d.ts.map +1 -1
- package/dist/core/tools/subagent.js +214 -76
- package/dist/core/tools/subagent.js.map +1 -1
- package/dist/humain/mcp-adapter/vendor/CHANGELOG.md +78 -0
- package/dist/humain/mcp-adapter/vendor/README.md +125 -19
- package/dist/humain/mcp-adapter/vendor/agent-plugin-loader.ts +69 -30
- package/dist/humain/mcp-adapter/vendor/agent-plugin-provenance.ts +36 -0
- package/dist/humain/mcp-adapter/vendor/claude-plugin-loader.ts +365 -0
- package/dist/humain/mcp-adapter/vendor/commands.ts +13 -15
- package/dist/humain/mcp-adapter/vendor/config.ts +198 -30
- package/dist/humain/mcp-adapter/vendor/consent-manager.ts +40 -9
- package/dist/humain/mcp-adapter/vendor/direct-tool-surface.ts +250 -0
- package/dist/humain/mcp-adapter/vendor/direct-tools.ts +9 -228
- package/dist/humain/mcp-adapter/vendor/dist/agent-plugin-loader.js +74 -32
- package/dist/humain/mcp-adapter/vendor/dist/agent-plugin-loader.js.map +1 -1
- package/dist/humain/mcp-adapter/vendor/dist/agent-plugin-provenance.d.ts +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/agent-plugin-provenance.js +31 -0
- package/dist/humain/mcp-adapter/vendor/dist/agent-plugin-provenance.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/claude-plugin-loader.d.ts +9 -0
- package/dist/humain/mcp-adapter/vendor/dist/claude-plugin-loader.js +362 -0
- package/dist/humain/mcp-adapter/vendor/dist/claude-plugin-loader.js.map +1 -0
- package/dist/humain/mcp-adapter/vendor/dist/config.d.ts +3 -1
- package/dist/humain/mcp-adapter/vendor/dist/config.js +189 -27
- package/dist/humain/mcp-adapter/vendor/dist/config.js.map +1 -1
- package/dist/humain/mcp-adapter/vendor/dist/metadata-cache.js +7 -16
- package/dist/humain/mcp-adapter/vendor/dist/metadata-cache.js.map +1 -1
- package/dist/humain/mcp-adapter/vendor/dist/package-mcp-loader.js +5 -17
- package/dist/humain/mcp-adapter/vendor/dist/package-mcp-loader.js.map +1 -1
- package/dist/humain/mcp-adapter/vendor/dist/types.d.ts +30 -4
- package/dist/humain/mcp-adapter/vendor/dist/types.js +26 -0
- package/dist/humain/mcp-adapter/vendor/dist/types.js.map +1 -1
- package/dist/humain/mcp-adapter/vendor/dist/utils.d.ts +6 -0
- package/dist/humain/mcp-adapter/vendor/dist/utils.js +65 -6
- package/dist/humain/mcp-adapter/vendor/dist/utils.js.map +1 -1
- package/dist/humain/mcp-adapter/vendor/host-html-template.ts +20 -19
- package/dist/humain/mcp-adapter/vendor/http-ca.ts +84 -0
- package/dist/humain/mcp-adapter/vendor/index.bundle.mjs +37102 -15103
- package/dist/humain/mcp-adapter/vendor/index.ts +828 -164
- package/dist/humain/mcp-adapter/vendor/init.ts +48 -10
- package/dist/humain/mcp-adapter/vendor/lazy-loader.ts +7 -0
- package/dist/humain/mcp-adapter/vendor/mcp-auth-fetch.ts +113 -0
- package/dist/humain/mcp-adapter/vendor/mcp-auth-flow.ts +256 -77
- package/dist/humain/mcp-adapter/vendor/mcp-auth.ts +316 -54
- package/dist/humain/mcp-adapter/vendor/mcp-code.ts +45 -18
- package/dist/humain/mcp-adapter/vendor/mcp-install.ts +60 -0
- package/dist/humain/mcp-adapter/vendor/mcp-oauth-provider.ts +70 -6
- package/dist/humain/mcp-adapter/vendor/mcp-output-guard.ts +53 -42
- package/dist/humain/mcp-adapter/vendor/mcp-panel-theme.ts +105 -0
- package/dist/humain/mcp-adapter/vendor/mcp-panel.ts +366 -331
- package/dist/humain/mcp-adapter/vendor/mcp-references.ts +9 -14
- package/dist/humain/mcp-adapter/vendor/mcp-script-worker.mjs +3 -1
- package/dist/humain/mcp-adapter/vendor/mcp-setup-panel.ts +383 -341
- package/dist/humain/mcp-adapter/vendor/mcp-status.ts +5 -0
- package/dist/humain/mcp-adapter/vendor/metadata-cache.ts +7 -16
- package/dist/humain/mcp-adapter/vendor/namespace-tools.ts +61 -3
- package/dist/humain/mcp-adapter/vendor/oauth.ts +6 -2
- package/dist/humain/mcp-adapter/vendor/package-mcp-loader.ts +5 -17
- package/dist/humain/mcp-adapter/vendor/package.json +13 -3
- package/dist/humain/mcp-adapter/vendor/prompts.ts +35 -3
- package/dist/humain/mcp-adapter/vendor/proxy-modes.ts +108 -7
- package/dist/humain/mcp-adapter/vendor/runtime-owner.ts +16 -1
- package/dist/humain/mcp-adapter/vendor/sampling-handler.ts +9 -32
- package/dist/humain/mcp-adapter/vendor/sandbox-proxy-template.ts +20 -93
- package/dist/humain/mcp-adapter/vendor/server-manager.ts +227 -40
- package/dist/humain/mcp-adapter/vendor/session-approvals.ts +187 -0
- package/dist/humain/mcp-adapter/vendor/skills/mcp-scripting/SKILL.md +9 -1
- package/dist/humain/mcp-adapter/vendor/state.ts +10 -1
- package/dist/humain/mcp-adapter/vendor/tool-approval.ts +10 -22
- package/dist/humain/mcp-adapter/vendor/tool-metadata.ts +14 -0
- package/dist/humain/mcp-adapter/vendor/types.ts +57 -4
- package/dist/humain/mcp-adapter/vendor/ui-server.ts +36 -28
- package/dist/humain/mcp-adapter/vendor/utils.ts +64 -6
- package/dist/humain/web-access/vendor/abortable.d.ts +3 -0
- package/dist/humain/web-access/vendor/abortable.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/abortable.js +22 -0
- package/dist/humain/web-access/vendor/abortable.js.map +1 -0
- package/dist/humain/web-access/vendor/crawl4ai.d.ts +9 -0
- package/dist/humain/web-access/vendor/crawl4ai.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/crawl4ai.js +187 -0
- package/dist/humain/web-access/vendor/crawl4ai.js.map +1 -0
- package/dist/humain/web-access/vendor/credential-source.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/credential-source.js +1 -0
- package/dist/humain/web-access/vendor/credential-source.js.map +1 -1
- package/dist/humain/web-access/vendor/curator-page.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-page.js +20 -2
- package/dist/humain/web-access/vendor/curator-page.js.map +1 -1
- package/dist/humain/web-access/vendor/curator-run.d.ts +11 -0
- package/dist/humain/web-access/vendor/curator-run.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/curator-run.js +38 -0
- package/dist/humain/web-access/vendor/curator-run.js.map +1 -0
- package/dist/humain/web-access/vendor/curator-server.d.ts +1 -0
- package/dist/humain/web-access/vendor/curator-server.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/curator-server.js +2 -0
- package/dist/humain/web-access/vendor/curator-server.js.map +1 -1
- package/dist/humain/web-access/vendor/duckduckgo.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/duckduckgo.js +1 -1
- package/dist/humain/web-access/vendor/duckduckgo.js.map +1 -1
- package/dist/humain/web-access/vendor/extract.d.ts +1 -1
- package/dist/humain/web-access/vendor/extract.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/extract.js +58 -11
- package/dist/humain/web-access/vendor/extract.js.map +1 -1
- package/dist/humain/web-access/vendor/fetch-params.js +1 -1
- package/dist/humain/web-access/vendor/fetch-params.js.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.d.ts +2 -2
- package/dist/humain/web-access/vendor/gemini-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/gemini-search.js +12 -5
- package/dist/humain/web-access/vendor/gemini-search.js.map +1 -1
- package/dist/humain/web-access/vendor/index.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/index.js +23 -19
- package/dist/humain/web-access/vendor/index.js.map +1 -1
- package/dist/humain/web-access/vendor/openai-search.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/openai-search.js +40 -14
- package/dist/humain/web-access/vendor/openai-search.js.map +1 -1
- package/dist/humain/web-access/vendor/page-query.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/page-query.js +6 -2
- package/dist/humain/web-access/vendor/page-query.js.map +1 -1
- package/dist/humain/web-access/vendor/query-rewrite.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/query-rewrite.js +6 -2
- package/dist/humain/web-access/vendor/query-rewrite.js.map +1 -1
- package/dist/humain/web-access/vendor/serpapi.d.ts +4 -0
- package/dist/humain/web-access/vendor/serpapi.d.ts.map +1 -0
- package/dist/humain/web-access/vendor/serpapi.js +215 -0
- package/dist/humain/web-access/vendor/serpapi.js.map +1 -0
- package/dist/humain/web-access/vendor/ssrf-protection.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/ssrf-protection.js +5 -1
- package/dist/humain/web-access/vendor/ssrf-protection.js.map +1 -1
- package/dist/humain/web-access/vendor/storage.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/storage.js +9 -0
- package/dist/humain/web-access/vendor/storage.js.map +1 -1
- package/dist/humain/web-access/vendor/summary-review.d.ts +1 -1
- package/dist/humain/web-access/vendor/summary-review.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/summary-review.js +35 -24
- package/dist/humain/web-access/vendor/summary-review.js.map +1 -1
- package/dist/humain/web-access/vendor/utils.d.ts.map +1 -1
- package/dist/humain/web-access/vendor/utils.js +5 -3
- package/dist/humain/web-access/vendor/utils.js.map +1 -1
- package/dist/modes/json-event.d.ts +8 -0
- package/dist/modes/json-event.d.ts.map +1 -1
- package/dist/modes/json-event.js +17 -0
- package/dist/modes/json-event.js.map +1 -1
- package/dist/modes/print-mode.d.ts.map +1 -1
- package/dist/modes/print-mode.js +3 -2
- package/dist/modes/print-mode.js.map +1 -1
- package/docs/environment-variables.md +8 -0
- package/docs/json.md +16 -0
- package/npm-shrinkwrap.json +6 -6
- package/package.json +2 -2
- package/src/humain/mcp-adapter/UPSTREAM.md +56 -7
- package/src/humain/mcp-adapter/upstream.json +6 -4
- package/src/humain/mcp-adapter/vendor/CHANGELOG.md +78 -0
- package/src/humain/web-access/UPSTREAM.md +18 -8
- package/src/humain/web-access/upstream.json +6 -5
- package/dist/bundle/chunks/chunk-2LC3S3VV.js +0 -105
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
import { closeSync, constants, existsSync, fstatSync, openSync, readFileSync, readdirSync, realpathSync, statSync } from "node:fs";
|
|
2
|
+
import { basename, isAbsolute, relative, resolve, sep } from "node:path";
|
|
3
|
+
import { formatServerNamespace } from "./types.js";
|
|
4
|
+
import { parseJsonWithComments } from "./utils.js";
|
|
5
|
+
export function loadClaudePluginBundles(plugins, cwd, validateConfig, components) {
|
|
6
|
+
const mcpServers = {};
|
|
7
|
+
const skillPaths = [];
|
|
8
|
+
const seenRoots = new Set();
|
|
9
|
+
const seenNames = new Map();
|
|
10
|
+
const serverSources = new Map();
|
|
11
|
+
const normalizedServerNames = new Map();
|
|
12
|
+
for (const plugin of plugins ?? []) {
|
|
13
|
+
const configuredPath = resolvePluginPath(plugin.path, cwd);
|
|
14
|
+
const pluginRoot = resolvePluginRoot(configuredPath);
|
|
15
|
+
if (!pluginRoot)
|
|
16
|
+
continue;
|
|
17
|
+
if (seenRoots.has(pluginRoot)) {
|
|
18
|
+
console.warn(`Claude plugin path is configured more than once: ${pluginRoot}`);
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
seenRoots.add(pluginRoot);
|
|
22
|
+
const manifest = readPluginManifest(pluginRoot);
|
|
23
|
+
if (manifest === false)
|
|
24
|
+
continue;
|
|
25
|
+
const pluginName = manifest?.name ?? basename(pluginRoot);
|
|
26
|
+
const previousPluginRoot = seenNames.get(pluginName);
|
|
27
|
+
if (previousPluginRoot && previousPluginRoot !== pluginRoot) {
|
|
28
|
+
console.warn(`Claude plugin name conflict for "${pluginName}": ${previousPluginRoot} and ${pluginRoot}`);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
seenNames.set(pluginName, pluginRoot);
|
|
32
|
+
}
|
|
33
|
+
if (components.mcp && plugin.mcp === true) {
|
|
34
|
+
const configPath = resolveContainedComponent(pluginRoot, ".mcp.json", "file", pluginName);
|
|
35
|
+
if (configPath) {
|
|
36
|
+
const config = readPluginMcpConfig(configPath, pluginName, pluginRoot, validateConfig);
|
|
37
|
+
for (const [serverName, server] of Object.entries(config.mcpServers)) {
|
|
38
|
+
const normalizedName = formatServerNamespace(serverName);
|
|
39
|
+
const previousName = normalizedServerNames.get(normalizedName);
|
|
40
|
+
const previousSource = previousName ? serverSources.get(previousName) : undefined;
|
|
41
|
+
if (previousName && previousSource) {
|
|
42
|
+
console.warn(`Claude plugin MCP server name conflict for "${serverName}": normalized name collides with "${previousName}" from ${previousSource}; the first plugin wins over ${configPath}`);
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
normalizedServerNames.set(normalizedName, serverName);
|
|
46
|
+
serverSources.set(serverName, configPath);
|
|
47
|
+
mcpServers[serverName] = server;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
if (components.skills && plugin.skills === true) {
|
|
52
|
+
const skillsPath = resolveContainedComponent(pluginRoot, "skills", "directory", pluginName);
|
|
53
|
+
if (skillsPath) {
|
|
54
|
+
try {
|
|
55
|
+
for (const skillPath of discoverContainedSkillFiles(skillsPath, pluginName)) {
|
|
56
|
+
if (!skillPaths.includes(skillPath))
|
|
57
|
+
skillPaths.push(skillPath);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
catch (error) {
|
|
61
|
+
console.warn(`Claude plugin "${pluginName}" skills could not be read at ${skillsPath}: ${formatError(error)}`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return { mcpServers, skillPaths };
|
|
67
|
+
}
|
|
68
|
+
function resolvePluginPath(path, cwd) {
|
|
69
|
+
if (path === "~")
|
|
70
|
+
return resolve(process.env.HOME ?? "", ".");
|
|
71
|
+
if (path.startsWith("~/"))
|
|
72
|
+
return resolve(process.env.HOME ?? "", path.slice(2));
|
|
73
|
+
return isAbsolute(path) ? resolve(path) : resolve(cwd, path);
|
|
74
|
+
}
|
|
75
|
+
function resolvePluginRoot(path) {
|
|
76
|
+
if (!existsSync(path)) {
|
|
77
|
+
console.warn(`Claude plugin path does not exist: ${path}`);
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
const stats = safeStat(path, "Claude plugin path");
|
|
81
|
+
if (!stats)
|
|
82
|
+
return null;
|
|
83
|
+
if (!stats.isDirectory()) {
|
|
84
|
+
console.warn(`Claude plugin path is not a directory: ${path}`);
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
return safeRealpath(path, "Claude plugin path");
|
|
88
|
+
}
|
|
89
|
+
function readPluginManifest(pluginRoot) {
|
|
90
|
+
const configuredManifestPath = resolve(pluginRoot, ".claude-plugin", "plugin.json");
|
|
91
|
+
if (!existsSync(configuredManifestPath))
|
|
92
|
+
return null;
|
|
93
|
+
const stats = safeStat(configuredManifestPath, "Claude plugin manifest");
|
|
94
|
+
if (!stats)
|
|
95
|
+
return null;
|
|
96
|
+
if (!stats.isFile()) {
|
|
97
|
+
console.warn(`Claude plugin manifest is not a regular file: ${configuredManifestPath}`);
|
|
98
|
+
return false;
|
|
99
|
+
}
|
|
100
|
+
const manifestPath = safeRealpath(configuredManifestPath, "Claude plugin manifest");
|
|
101
|
+
if (!manifestPath)
|
|
102
|
+
return null;
|
|
103
|
+
if (!isContainedPath(pluginRoot, manifestPath)) {
|
|
104
|
+
console.warn(`Claude plugin manifest resolves outside the configured plugin directory: ${manifestPath}`);
|
|
105
|
+
return false;
|
|
106
|
+
}
|
|
107
|
+
const manifestText = safeReadFile(manifestPath, "Claude plugin manifest", pluginRoot);
|
|
108
|
+
if (manifestText === null)
|
|
109
|
+
return null;
|
|
110
|
+
let raw;
|
|
111
|
+
try {
|
|
112
|
+
raw = parseJsonWithComments(manifestText);
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
console.warn(`Claude plugin manifest contains invalid JSON at ${manifestPath}: ${formatError(error)}`);
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
119
|
+
console.warn(`Claude plugin manifest must be a JSON object: ${manifestPath}`);
|
|
120
|
+
return false;
|
|
121
|
+
}
|
|
122
|
+
const manifest = raw;
|
|
123
|
+
if (typeof manifest.name !== "string" || !/^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(manifest.name)) {
|
|
124
|
+
console.warn(`Claude plugin manifest has an invalid name at ${manifestPath}: expected kebab-case`);
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
if (!hasValidManifestFieldTypes(manifest)) {
|
|
128
|
+
console.warn(`Claude plugin manifest has invalid field types at ${manifestPath}`);
|
|
129
|
+
return false;
|
|
130
|
+
}
|
|
131
|
+
return { name: manifest.name };
|
|
132
|
+
}
|
|
133
|
+
function hasValidManifestFieldTypes(manifest) {
|
|
134
|
+
for (const field of ["$schema", "displayName", "version", "description", "homepage", "repository", "license"]) {
|
|
135
|
+
if (manifest[field] !== undefined && typeof manifest[field] !== "string")
|
|
136
|
+
return false;
|
|
137
|
+
}
|
|
138
|
+
for (const field of ["commands", "agents", "skills", "hooks", "mcpServers", "lspServers", "outputStyles"]) {
|
|
139
|
+
const value = manifest[field];
|
|
140
|
+
if (value !== undefined && typeof value !== "string" && (!Array.isArray(value) || value.some(item => typeof item !== "string")))
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
if (manifest.defaultEnabled !== undefined && typeof manifest.defaultEnabled !== "boolean")
|
|
144
|
+
return false;
|
|
145
|
+
if (manifest.keywords !== undefined && (!Array.isArray(manifest.keywords) || manifest.keywords.some(value => typeof value !== "string")))
|
|
146
|
+
return false;
|
|
147
|
+
if (manifest.author !== undefined) {
|
|
148
|
+
if (!manifest.author || typeof manifest.author !== "object" || Array.isArray(manifest.author))
|
|
149
|
+
return false;
|
|
150
|
+
const author = manifest.author;
|
|
151
|
+
if (typeof author.name !== "string")
|
|
152
|
+
return false;
|
|
153
|
+
if (author.email !== undefined && typeof author.email !== "string")
|
|
154
|
+
return false;
|
|
155
|
+
if (author.url !== undefined && typeof author.url !== "string")
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
if (manifest.metadata !== undefined && (!manifest.metadata || typeof manifest.metadata !== "object" || Array.isArray(manifest.metadata)))
|
|
159
|
+
return false;
|
|
160
|
+
return true;
|
|
161
|
+
}
|
|
162
|
+
function resolveContainedComponent(pluginRoot, component, expected, pluginName) {
|
|
163
|
+
const path = resolve(pluginRoot, component);
|
|
164
|
+
if (!existsSync(path)) {
|
|
165
|
+
console.warn(`Claude plugin "${pluginName}" is missing ${component}: ${path}`);
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
const stats = safeStat(path, `Claude plugin "${pluginName}" ${component}`);
|
|
169
|
+
if (!stats)
|
|
170
|
+
return null;
|
|
171
|
+
if (expected === "file" ? !stats.isFile() : !stats.isDirectory()) {
|
|
172
|
+
console.warn(`Claude plugin "${pluginName}" ${component} is not a ${expected}: ${path}`);
|
|
173
|
+
return null;
|
|
174
|
+
}
|
|
175
|
+
const realPath = safeRealpath(path, `Claude plugin "${pluginName}" ${component}`);
|
|
176
|
+
if (!realPath)
|
|
177
|
+
return null;
|
|
178
|
+
if (!isContainedPath(pluginRoot, realPath)) {
|
|
179
|
+
console.warn(`Claude plugin "${pluginName}" ${component} resolves outside the configured plugin directory: ${realPath}`);
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
return realPath;
|
|
183
|
+
}
|
|
184
|
+
function discoverContainedSkillFiles(skillsRoot, pluginName) {
|
|
185
|
+
const skillFiles = [];
|
|
186
|
+
const visitedDirectories = new Set();
|
|
187
|
+
const visit = (directory) => {
|
|
188
|
+
const realDirectory = safeRealpath(directory, `Claude plugin "${pluginName}" skill directory`);
|
|
189
|
+
if (!realDirectory)
|
|
190
|
+
return;
|
|
191
|
+
if (!isContainedPath(skillsRoot, realDirectory)) {
|
|
192
|
+
console.warn(`Claude plugin "${pluginName}" skill path resolves outside its skills directory: ${directory} -> ${realDirectory}`);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
if (visitedDirectories.has(realDirectory))
|
|
196
|
+
return;
|
|
197
|
+
visitedDirectories.add(realDirectory);
|
|
198
|
+
const entries = safeReadDir(realDirectory, `Claude plugin "${pluginName}" skill directory`);
|
|
199
|
+
if (!entries)
|
|
200
|
+
return;
|
|
201
|
+
for (const entry of entries.sort((left, right) => left.name.localeCompare(right.name))) {
|
|
202
|
+
const path = resolve(realDirectory, entry.name);
|
|
203
|
+
if (entry.isSymbolicLink()) {
|
|
204
|
+
const target = safeRealpath(path, `Claude plugin "${pluginName}" skill path`);
|
|
205
|
+
if (!target)
|
|
206
|
+
continue;
|
|
207
|
+
if (!isContainedPath(skillsRoot, target)) {
|
|
208
|
+
console.warn(`Claude plugin "${pluginName}" skill path resolves outside its skills directory: ${path} -> ${target}`);
|
|
209
|
+
continue;
|
|
210
|
+
}
|
|
211
|
+
const targetStats = safeStat(target, `Claude plugin "${pluginName}" skill path`);
|
|
212
|
+
if (!targetStats)
|
|
213
|
+
continue;
|
|
214
|
+
if (targetStats.isDirectory())
|
|
215
|
+
visit(target);
|
|
216
|
+
else if (targetStats.isFile() && entry.name === "SKILL.md")
|
|
217
|
+
skillFiles.push(target);
|
|
218
|
+
}
|
|
219
|
+
else if (entry.isDirectory()) {
|
|
220
|
+
visit(path);
|
|
221
|
+
}
|
|
222
|
+
else if (entry.isFile() && entry.name === "SKILL.md") {
|
|
223
|
+
const realPath = safeRealpath(path, `Claude plugin "${pluginName}" skill path`);
|
|
224
|
+
if (!realPath)
|
|
225
|
+
continue;
|
|
226
|
+
if (!isContainedPath(skillsRoot, realPath)) {
|
|
227
|
+
console.warn(`Claude plugin "${pluginName}" skill path resolves outside its skills directory: ${path} -> ${realPath}`);
|
|
228
|
+
continue;
|
|
229
|
+
}
|
|
230
|
+
skillFiles.push(realPath);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
visit(skillsRoot);
|
|
235
|
+
return skillFiles;
|
|
236
|
+
}
|
|
237
|
+
function readPluginMcpConfig(configPath, pluginName, pluginRoot, validateConfig) {
|
|
238
|
+
let raw;
|
|
239
|
+
try {
|
|
240
|
+
const configText = safeReadFile(configPath, `Claude plugin "${pluginName}" MCP config`, pluginRoot);
|
|
241
|
+
if (configText === null)
|
|
242
|
+
return { mcpServers: {} };
|
|
243
|
+
raw = parseJsonWithComments(configText);
|
|
244
|
+
}
|
|
245
|
+
catch (error) {
|
|
246
|
+
console.warn(`Claude plugin "${pluginName}" has invalid MCP config at ${configPath}: ${formatError(error)}`);
|
|
247
|
+
return { mcpServers: {} };
|
|
248
|
+
}
|
|
249
|
+
if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
|
|
250
|
+
console.warn(`Claude plugin "${pluginName}" MCP config must be a JSON object: ${configPath}`);
|
|
251
|
+
return { mcpServers: {} };
|
|
252
|
+
}
|
|
253
|
+
const servers = raw.mcpServers;
|
|
254
|
+
if (!servers || typeof servers !== "object" || Array.isArray(servers)) {
|
|
255
|
+
console.warn(`Claude plugin "${pluginName}" MCP config must contain an mcpServers object: ${configPath}`);
|
|
256
|
+
return { mcpServers: {} };
|
|
257
|
+
}
|
|
258
|
+
const config = validateConfig(raw);
|
|
259
|
+
const validated = {};
|
|
260
|
+
for (const serverName of Object.keys(servers)) {
|
|
261
|
+
if (serverName.trim().length === 0) {
|
|
262
|
+
console.warn(`Claude plugin "${pluginName}" has an empty MCP server name at ${configPath}`);
|
|
263
|
+
continue;
|
|
264
|
+
}
|
|
265
|
+
const parsed = config.mcpServers[serverName];
|
|
266
|
+
if (!parsed || !hasValidServerTransport(parsed)) {
|
|
267
|
+
console.warn(`Claude plugin "${pluginName}" has invalid MCP server "${serverName}" at ${configPath}: expected exactly one non-empty command, url, or socket transport`);
|
|
268
|
+
continue;
|
|
269
|
+
}
|
|
270
|
+
validated[serverName] = replacePluginRoot(parsed, pluginRoot);
|
|
271
|
+
}
|
|
272
|
+
return { mcpServers: validated };
|
|
273
|
+
}
|
|
274
|
+
function hasValidServerTransport(entry) {
|
|
275
|
+
return [entry.command, entry.url, entry.socket].filter(value => typeof value === "string" && value.trim().length > 0).length === 1;
|
|
276
|
+
}
|
|
277
|
+
function replacePluginRoot(entry, pluginRoot) {
|
|
278
|
+
const replace = (value) => value.replaceAll("${CLAUDE_PLUGIN_ROOT}", pluginRoot);
|
|
279
|
+
const replaced = replaceStrings(entry, replace);
|
|
280
|
+
if (typeof replaced.command === "string") {
|
|
281
|
+
replaced.env = { ...replaced.env, CLAUDE_PLUGIN_ROOT: pluginRoot };
|
|
282
|
+
}
|
|
283
|
+
return replaced;
|
|
284
|
+
}
|
|
285
|
+
function replaceStrings(value, replace) {
|
|
286
|
+
if (typeof value === "string")
|
|
287
|
+
return replace(value);
|
|
288
|
+
if (Array.isArray(value))
|
|
289
|
+
return value.map(item => replaceStrings(item, replace));
|
|
290
|
+
if (!value || typeof value !== "object")
|
|
291
|
+
return value;
|
|
292
|
+
return Object.fromEntries(Object.entries(value).map(([key, entry]) => [key, replaceStrings(entry, replace)]));
|
|
293
|
+
}
|
|
294
|
+
function isContainedPath(root, path) {
|
|
295
|
+
const rel = relative(root, path);
|
|
296
|
+
return rel === "" || (!rel.startsWith("..") && !rel.startsWith(sep) && !isAbsolute(rel));
|
|
297
|
+
}
|
|
298
|
+
function safeStat(path, description) {
|
|
299
|
+
try {
|
|
300
|
+
return statSync(path);
|
|
301
|
+
}
|
|
302
|
+
catch (error) {
|
|
303
|
+
console.warn(`${description} could not be read: ${path}: ${formatError(error)}`);
|
|
304
|
+
return null;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
function safeRealpath(path, description) {
|
|
308
|
+
try {
|
|
309
|
+
return realpathSync(path);
|
|
310
|
+
}
|
|
311
|
+
catch (error) {
|
|
312
|
+
console.warn(`${description} could not be read: ${path}: ${formatError(error)}`);
|
|
313
|
+
return null;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
function safeReadFile(path, description, containmentRoot) {
|
|
317
|
+
let fd;
|
|
318
|
+
try {
|
|
319
|
+
fd = openSync(path, constants.O_RDONLY | constants.O_NOFOLLOW);
|
|
320
|
+
const openedStats = fstatSync(fd);
|
|
321
|
+
if (!openedStats.isFile()) {
|
|
322
|
+
console.warn(`${description} is not a regular file: ${path}`);
|
|
323
|
+
return null;
|
|
324
|
+
}
|
|
325
|
+
const resolvedPath = safeRealpath(path, description);
|
|
326
|
+
if (!resolvedPath)
|
|
327
|
+
return null;
|
|
328
|
+
if (!isContainedPath(containmentRoot, resolvedPath)) {
|
|
329
|
+
console.warn(`${description} resolves outside the configured plugin directory: ${resolvedPath}`);
|
|
330
|
+
return null;
|
|
331
|
+
}
|
|
332
|
+
const currentStats = safeStat(resolvedPath, description);
|
|
333
|
+
if (!currentStats)
|
|
334
|
+
return null;
|
|
335
|
+
if (openedStats.dev !== currentStats.dev || openedStats.ino !== currentStats.ino) {
|
|
336
|
+
console.warn(`${description} changed while being read: ${path}`);
|
|
337
|
+
return null;
|
|
338
|
+
}
|
|
339
|
+
return readFileSync(fd, "utf8");
|
|
340
|
+
}
|
|
341
|
+
catch (error) {
|
|
342
|
+
console.warn(`${description} could not be read: ${path}: ${formatError(error)}`);
|
|
343
|
+
return null;
|
|
344
|
+
}
|
|
345
|
+
finally {
|
|
346
|
+
if (fd !== undefined)
|
|
347
|
+
closeSync(fd);
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
function safeReadDir(path, description) {
|
|
351
|
+
try {
|
|
352
|
+
return readdirSync(path, { withFileTypes: true });
|
|
353
|
+
}
|
|
354
|
+
catch (error) {
|
|
355
|
+
console.warn(`${description} could not be read: ${path}: ${formatError(error)}`);
|
|
356
|
+
return null;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
function formatError(error) {
|
|
360
|
+
return error instanceof Error ? error.message : String(error);
|
|
361
|
+
}
|
|
362
|
+
//# sourceMappingURL=claude-plugin-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claude-plugin-loader.js","sourceRoot":"","sources":["../claude-plugin-loader.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAA2B,MAAM,SAAS,CAAC;AAC5J,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,EAAE,qBAAqB,EAA6D,MAAM,YAAY,CAAC;AAC9G,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAWnD,MAAM,UAAU,uBAAuB,CACrC,OAAkD,EAClD,GAAW,EACX,cAA2C,EAC3C,UAA6C;IAE7C,MAAM,UAAU,GAAgC,EAAE,CAAC;IACnD,MAAM,UAAU,GAAa,EAAE,CAAC;IAChC,MAAM,SAAS,GAAG,IAAI,GAAG,EAAU,CAAC;IACpC,MAAM,SAAS,GAAG,IAAI,GAAG,EAAk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,IAAI,CAAC;QACd,CAAC;QACD,OAAO,YAAY,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;IAClC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,GAAG,WAAW,uBAAuB,IAAI,KAAK,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACjF,OAAO,IAAI,CAAC;IACd,CAAC;YAAS,CAAC;QACT,IAAI,EAAE,KAAK,SAAS;YAAE,SAAS,CAAC,EAAE,CAAC,CAAC;IACtC,CAAC;AACH,CAAC;AAED,SAAS,WAAW,CAAC,IAAY,EAAE,WAAmB;IACpD,IAAI,CAAC;QACH,OAAO,WAAW,CAAC,IAAI,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,IAAI,CAAC,GAAG,WAAW,uBAAuB,IAAI,KAAK,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;QACjF,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAChE,CAAC"}
|
|
@@ -8,7 +8,7 @@ export interface KnownServerPreset {
|
|
|
8
8
|
}
|
|
9
9
|
export declare const KNOWN_SERVER_PRESETS: readonly KnownServerPreset[];
|
|
10
10
|
interface ConfigSourceSpec {
|
|
11
|
-
id: "shared-global" | "agents-global" | "agents-nested-global" | "pi-global" | "shared-project" | "pi-project";
|
|
11
|
+
id: "shared-global" | "agents-global" | "agents-nested-global" | "pi-global" | "shared-project-ancestor" | "pi-project-ancestor" | "shared-project" | "pi-project";
|
|
12
12
|
label: string;
|
|
13
13
|
readPath: string;
|
|
14
14
|
writePath: string;
|
|
@@ -99,6 +99,8 @@ export declare function getMcpDiscoverySummary(overridePath?: string, cwd?: stri
|
|
|
99
99
|
}): McpDiscoverySummary;
|
|
100
100
|
export declare function cloneMcpConfig(config: McpConfig): McpConfig;
|
|
101
101
|
export declare function loadMcpConfig(overridePath?: string, cwd?: string): McpConfig;
|
|
102
|
+
export declare function resolveConfiguredClaudePluginMcp(config: McpConfig, cwd?: string): McpConfig;
|
|
103
|
+
export declare function discoverConfiguredClaudePluginSkills(config: McpConfig, cwd?: string): string[];
|
|
102
104
|
export interface ServerDisabledOverrideResult {
|
|
103
105
|
path: string;
|
|
104
106
|
changed: boolean;
|