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 +8 -0
- package/package.json +1 -1
- package/src/lifecycle-cli.mjs +3 -3
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
package/src/lifecycle-cli.mjs
CHANGED
|
@@ -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
|
|