@rbbtsn0w/adg 0.9.0-dev.pr114.2187d51 → 0.9.1-beta.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.
@@ -236,9 +236,8 @@ export function pruneStaleAntigravity(opts = {}) {
236
236
  // ignore
237
237
  }
238
238
  }
239
- // 2. Whitelist: Servers and prefixes from all active plugins in global scanDir and optional projectPluginsDir.
239
+ // 2. Whitelist: Servers and plugin names from all active plugins in global scanDir and optional projectPluginsDir.
240
240
  const retainedPluginNames = new Set();
241
- const retainedPrefixes = new Set();
242
241
  const scanDirs = [join(home, "config", "plugins")];
243
242
  if (opts.projectPluginsDir) {
244
243
  scanDirs.push(opts.projectPluginsDir);
@@ -258,7 +257,6 @@ export function pruneStaleAntigravity(opts = {}) {
258
257
  if (!exists(join(entryDir, ANTIGRAVITY_MANIFEST)))
259
258
  continue;
260
259
  retainedPluginNames.add(entry);
261
- retainedPrefixes.add(`${entry}_`);
262
260
  for (const s of collectPluginServers(entryDir, exists, readFile)) {
263
261
  retainedServers.add(s);
264
262
  retainedServers.add(`${entry}_${s}`);
@@ -285,15 +283,6 @@ export function pruneStaleAntigravity(opts = {}) {
285
283
  continue;
286
284
  if (retainedPluginNames.has(entry))
287
285
  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;
297
286
  try {
298
287
  removeDir(fullPath);
299
288
  removed.push({ name: entry, path: fullPath });
@@ -279,6 +279,11 @@ 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
+ }
282
287
  reconcileAntigravityDeactivation(p, scanDir, realDir);
283
288
  removeProjection(scanDir, p, realDir);
284
289
  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.2187d51",
3
+ "version": "0.9.1-beta.1",
4
4
  "description": "Agent Directory Group (ADG) toolkit — two domains: plugins and skills.",
5
5
  "type": "module",
6
6
  "license": "MIT",