pluginParsers.ts ×7

Frontier kind: Code frontier

unlabeled · c_0f464fd874e1

61 tests · 20186 LOC · 66 files · introduces 0 tests · 26 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
7 ranges26 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2370 ranges20186 lines · 66 files · Browse complete extent
All tests (intent)
61 testsBrowse complete intent

Neighbourhood graph

The orange circle is the focus. Violet and green circles are every ancestor and descendant, broader and narrower, at any distance; blue squares and pink diamonds are the introduced files and exact introduced tests of every visible concept, not only the focus's. Arrows point from broader to narrower concepts and bridge only concepts omitted from this view. Undirected links show source or test introduction. Concept and file size follows LOC; exact test nodes use test-count units.

Introduced files, introduced tests, and structurally relevant concept specialization

In the embedded map, ordinary wheel input scrolls the page; use the visible controls to zoom and drag to pan. Open the full-screen map for canvas navigation: wheel pans, Ctrl/Command plus wheel zooms, and arrow keys pan when this region is focused. On touch screens, open the full-screen map to pan or pinch. If JavaScript or WebGL is unavailable, use the native relationship evidence on this page.

Graph controls are ready.

Interactive rendering requires JavaScript and WebGL. Use the native relationship evidence on this page while the interactive map is unavailable.

Native relationship evidence

Every exact file and test below is linked only from the concept that introduces it.

Introduced tests

Every collected test enters the hierarchy at exactly one concept.

No tests are introduced at this concept. Its intent tests are introduced by other concepts.

Introduced code

Every collected source range enters the hierarchy at exactly one concept.

1 file ranked by introduced lines: 26 introduced LOC across 7 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentPlugins/common/pluginParsers.ts 26 introduced LOC · 7 ranges

Open complete file

218 }
219
220 > export async function readPluginManifest(pluginUri: URI, format: IPluginFormatConfig, fileService: IFileService): Promise<Record<string, unknown> | undefined> { pluginParsers.ts
221 > if (format.format === PluginFormat.AgentPlugin) {
222 const manifest = await readAgentPluginManifest(pluginUri, fileService);
223 return manifest ? { ...manifest } : undefined;
224 }
225 const json = await readJsonFile(joinPath(pluginUri, format.manifestPath), fileService);
226 > return json && typeof json === 'object' && !Array.isArray(json) ? json as Record<string, unknown> : undefined; pluginParsers.ts
227 > }
228
229 export function getPluginManifestComponent(format: IPluginFormatConfig, component: PluginComponent, manifest: Record<string, unknown> | undefined): unknown {
230 > return format.componentPaths && Object.hasOwn(format.componentPaths, component) ? undefined : manifest?.[component]; pluginParsers.ts
231 > }
232
233 export function resolvePluginComponentDirs(
234 > pluginUri: URI, pluginParsers.ts
235 > format: IPluginFormatConfig,
236 > component: PluginComponent,
237 > fallbackPath: string,
238 > manifestSection: unknown,
239 > boundaryUri?: URI,
240 > ): readonly URI[] {
241 > const componentPath = format.componentPaths?.[component];
242 > if (format.componentPaths && Object.hasOwn(format.componentPaths, component)) {
243 return typeof componentPath === 'string'
244 ? resolveComponentDirs(pluginUri, componentPath, emptyComponentPathConfig, boundaryUri)
932 }
933
934 > export async function readPluginSkills(pluginRoot: URI, dirs: readonly URI[], format: IPluginFormatConfig, fileService: IFileService): Promise<readonly INamedPluginResource[]> { pluginParsers.ts
935 > return readSkills(pluginRoot, dirs, fileService, format.format === PluginFormat.AgentPlugin
936 ? { childDirectoriesOnly: true, containmentRoot: pluginRoot }
937 > : undefined); pluginParsers.ts
938 > }
939
940 async function isResolvedWithin(root: URI, resource: URI, fileService: IFileService): Promise<boolean> {
1184
1185 export function parseMcpServerDefinitionMap(
1186 > definitionURI: URI, pluginParsers.ts
1187 > raw: unknown,
1188 > pluginFsPath: string,
1189 > formatConfig: IPluginFormatConfig,
1190 > ): IMcpServerDefinition[] {
1191 > const mcpServers = resolveMcpServersMap(raw);
1192 > if (!mcpServers) {
1193 return [];
1194 }