Skip to content

Commit 7677f6f

Browse files
release: v0.0.15
1 parent c98f197 commit 7677f6f

File tree

5 files changed

+34
-6
lines changed

5 files changed

+34
-6
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
---
99

10+
## [0.0.15] — 2026-04-02
11+
12+
### Fixed
13+
14+
- Moved synced skills cache from `~/.neuroloop/skills` to `~/.neuroloop/skills-cache` to avoid Pi auto-loading conflicts.
15+
- Added migration from legacy cache path and automatic sidelining of legacy dir when both paths exist.
16+
- Updated protocol-skill path resolution to support both legacy and new cache locations during transition.
17+
18+
---
19+
1020
## [0.0.14] — 2026-04-02
1121

1222
### Fixed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "neuroloop",
3-
"version": "0.0.14",
3+
"version": "0.0.15",
44
"author": "NeuroSkill team (https://neuroskill.com)",
55
"contributors": [
66
"Nataliya Kosmyna <nkosmyna@mit.edu>",

src/neuroskill/context.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,14 @@ const BUNDLED_SKILLS_ROOT = join(
1919
dirname(fileURLToPath(import.meta.url)),
2020
"..", "..", "skills",
2121
);
22-
const AGENT_SKILLS_ROOT = join(homedir(), ".neuroloop", "skills");
22+
const AGENT_SKILLS_ROOT = join(homedir(), ".neuroloop", "skills-cache");
23+
const LEGACY_AGENT_SKILLS_ROOT = join(homedir(), ".neuroloop", "skills");
2324

2425
const PROTOCOLS_SKILL_PATHS = [
2526
join(AGENT_SKILLS_ROOT, "skills", "neuroskill-protocols", "SKILL.md"),
2627
join(AGENT_SKILLS_ROOT, "neuroskill-protocols", "SKILL.md"),
28+
join(LEGACY_AGENT_SKILLS_ROOT, "skills", "neuroskill-protocols", "SKILL.md"),
29+
join(LEGACY_AGENT_SKILLS_ROOT, "neuroskill-protocols", "SKILL.md"),
2730
join(BUNDLED_SKILLS_ROOT, "skills", "neuroskill-protocols", "SKILL.md"),
2831
join(BUNDLED_SKILLS_ROOT, "neuroskill-protocols", "SKILL.md"),
2932
];

src/skills-sync.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import { execFileSync } from "node:child_process";
2-
import { existsSync, mkdirSync, readdirSync } from "node:fs";
2+
import { existsSync, mkdirSync, readdirSync, renameSync } from "node:fs";
33
import { homedir } from "node:os";
44
import { dirname, join } from "node:path";
55
import { fileURLToPath } from "node:url";
66

77
const SRC_DIR = dirname(fileURLToPath(import.meta.url));
88
const BUNDLED_SKILLS_DIR = join(SRC_DIR, "..", "skills");
9-
const AGENT_SKILLS_DIR = join(homedir(), ".neuroloop", "skills");
9+
const AGENT_SKILLS_DIR = join(homedir(), ".neuroloop", "skills-cache");
10+
const LEGACY_AGENT_SKILLS_DIR = join(homedir(), ".neuroloop", "skills");
1011
const SKILLS_REPO_URL = "https://github.com/NeuroSkill-com/skills.git";
1112

1213
export interface SkillsSyncResult {
@@ -75,6 +76,20 @@ export async function syncSkillsFromGitHub(
7576
const report = (stage: string, percent: number) => onProgress?.({ stage, percent });
7677
const parentDir = dirname(AGENT_SKILLS_DIR);
7778
mkdirSync(parentDir, { recursive: true });
79+
if (existsSync(LEGACY_AGENT_SKILLS_DIR)) {
80+
try {
81+
if (!existsSync(AGENT_SKILLS_DIR)) {
82+
renameSync(LEGACY_AGENT_SKILLS_DIR, AGENT_SKILLS_DIR);
83+
} else {
84+
const legacyDisabled = join(parentDir, "skills-legacy-disabled");
85+
if (!existsSync(legacyDisabled)) {
86+
renameSync(LEGACY_AGENT_SKILLS_DIR, legacyDisabled);
87+
}
88+
}
89+
} catch {
90+
// Non-fatal; we'll continue and clone into the new cache dir if needed.
91+
}
92+
}
7893
report("Preparing skills sync", 5);
7994

8095
try {

0 commit comments

Comments
 (0)