@rbbtsn0w/adg 0.9.0-dev.pr114.11f047b → 0.9.0-dev.pr114.2187d51

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.
@@ -236,8 +236,9 @@ export function pruneStaleAntigravity(opts = {}) {
236
236
  // ignore
237
237
  }
238
238
  }
239
- // 2. Whitelist: Servers and plugin names from all active plugins in global scanDir and optional projectPluginsDir.
239
+ // 2. Whitelist: Servers and prefixes from all active plugins in global scanDir and optional projectPluginsDir.
240
240
  const retainedPluginNames = new Set();
241
+ const retainedPrefixes = new Set();
241
242
  const scanDirs = [join(home, "config", "plugins")];
242
243
  if (opts.projectPluginsDir) {
243
244
  scanDirs.push(opts.projectPluginsDir);
@@ -257,6 +258,7 @@ export function pruneStaleAntigravity(opts = {}) {
257
258
  if (!exists(join(entryDir, ANTIGRAVITY_MANIFEST)))
258
259
  continue;
259
260
  retainedPluginNames.add(entry);
261
+ retainedPrefixes.add(`${entry}_`);
260
262
  for (const s of collectPluginServers(entryDir, exists, readFile)) {
261
263
  retainedServers.add(s);
262
264
  retainedServers.add(`${entry}_${s}`);
@@ -283,6 +285,15 @@ export function pruneStaleAntigravity(opts = {}) {
283
285
  continue;
284
286
  if (retainedPluginNames.has(entry))
285
287
  continue;
288
+ let hasMatchingPrefix = false;
289
+ for (const p of retainedPrefixes) {
290
+ if (entry.startsWith(p)) {
291
+ hasMatchingPrefix = true;
292
+ break;
293
+ }
294
+ }
295
+ if (hasMatchingPrefix)
296
+ continue;
286
297
  try {
287
298
  removeDir(fullPath);
288
299
  removed.push({ name: entry, path: fullPath });
@@ -279,11 +279,6 @@ export const antigravityAgent = {
279
279
  for (const p of ctx.plugins) {
280
280
  const entry = lock[p];
281
281
  const realDir = entry ? installedPluginDir(ctx.pluginsDir, p, entry.origin) : undefined;
282
- const target = join(scanDir, p);
283
- adoptLegacyExposure(target, p);
284
- if ((!realDir || resolve(target) !== resolve(realDir)) && observeSlot(target).kind === "foreign") {
285
- continue;
286
- }
287
282
  reconcileAntigravityDeactivation(p, scanDir, realDir);
288
283
  removeProjection(scanDir, p, realDir);
289
284
  affected.push(p);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbbtsn0w/adg",
3
- "version": "0.9.0-dev.pr114.11f047b",
3
+ "version": "0.9.0-dev.pr114.2187d51",
4
4
  "description": "Agent Directory Group (ADG) toolkit — two domains: plugins and skills.",
5
5
  "type": "module",
6
6
  "license": "MIT",