claudeNativePluginScan.ts ×6

Frontier kind: Code frontier

unlabeled · c_3047de29102f

10 tests · 21233 LOC · 67 files · introduces 0 tests · 23 LOC · 1 file

Introduces — evidence that enters the hierarchy at this concept

Code
6 ranges23 lines · 1 files
Tests
0 tests

Contains — complete concept membership

All code (extent)
2714 ranges21233 lines · 67 files · Browse complete extent
All tests (intent)
10 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: 23 introduced LOC across 6 ranges. Expand a file to inspect source; the > gutter marks introduced lines.

src/vs/platform/agentHost/node/claude/customizations/scan/claudeNativePluginScan.ts 23 introduced LOC · 6 ranges

Open complete file

138 * manifest-bearing candidate is found.
139 */
140 > async function resolveMarketplaceCacheRoot(plugin: string, marketplace: string, userHome: URI, fileService: IFileService): Promise<URI | undefined> { claudeNativePluginScan.ts
141 > const base = URI.joinPath(userHome, '.claude', 'plugins', 'cache', marketplace, plugin);
142 > if (await hasManifest(base, fileService)) {
143 return base;
144 }
145 > let stat; claudeNativePluginScan.ts
146 > try {
147 > stat = await fileService.resolve(base);
148 > } catch {
149 return undefined;
150 }
151 > if (!stat.isDirectory || !stat.children) { claudeNativePluginScan.ts
152 return undefined;
153 }
154 > let best: { readonly uri: URI; readonly mtime: number; readonly name: string } | undefined; claudeNativePluginScan.ts
155 > for (const child of stat.children) {
156 > if (!child.isDirectory || !(await hasManifest(child.resource, fileService))) {
157 continue;
158 }
159 > const mtime = child.mtime ?? 0; claudeNativePluginScan.ts
160 > // Newest install wins; the dir name breaks ties deterministically when
161 > // mtimes collide or are missing. Compare numerically (`{ numeric: true }`)
162 > // so version dirs order naturally — `0.0.10` after `0.0.9`, not before.
163 > if (!best || mtime > best.mtime || (mtime === best.mtime && child.name.localeCompare(best.name, undefined, { numeric: true }) > 0)) {
164 > best = { uri: child.resource, mtime, name: child.name };
165 > }
166 > }
167 > return best?.uri;
168 > }
169
170 /**
200 const root = parts.marketplace === SKILLS_DIR_MARKETPLACE
201 ? await resolveSkillsDirRoot(parts.plugin, workingDirectory, userHome, fileService)
202 > : await resolveMarketplaceCacheRoot(parts.plugin, parts.marketplace, userHome, fileService); claudeNativePluginScan.ts
203 > if (!root) {
204 logService.warn(`[claudeNativePluginScan] could not resolve an on-disk root for enabled plugin '${id}'`);
205 continue;