agent-skillboard 0.2.13 → 0.2.14

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 CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.2.14 — 2026-07-03
6
+
7
+ ### Fixed
8
+
9
+ - Sudo ownership restoration now only chowns managed guidance paths inside the
10
+ resolved invoking user's home, avoiding accidental ownership changes for
11
+ explicit agent roots outside that home.
12
+
5
13
  ## 0.2.13 — 2026-07-03
6
14
 
7
15
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-skillboard",
3
- "version": "0.2.13",
3
+ "version": "0.2.14",
4
4
  "description": "Let AI agents pick and use allowed skills in each workflow.",
5
5
  "keywords": [
6
6
  "ai-agent",
@@ -376,6 +376,9 @@ async function applyOwnership(path, ownership) {
376
376
  function ownershipPaths(path, home) {
377
377
  const resolvedHome = resolve(home);
378
378
  const resolvedPath = resolve(path);
379
+ if (!isInside(resolvedPath, resolvedHome)) {
380
+ return [];
381
+ }
379
382
  const directories = [];
380
383
  let current = dirname(resolvedPath);
381
384
  while (current !== resolvedHome && isInside(current, resolvedHome)) {
@@ -386,9 +389,6 @@ function ownershipPaths(path, home) {
386
389
  }
387
390
  current = parent;
388
391
  }
389
- if (directories.length === 0) {
390
- directories.push(dirname(resolvedPath));
391
- }
392
392
  return [...directories.reverse(), resolvedPath];
393
393
  }
394
394