@kevin0181/memoc 1.4.11 → 1.4.12
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/bin/cli.js
CHANGED
|
@@ -3962,7 +3962,6 @@ function runInstallPlugin() {
|
|
|
3962
3962
|
const skillLockPath = path.join(agentsDir, '.skill-lock.json');
|
|
3963
3963
|
const skillsSrc = path.join(pkgRoot, 'skills');
|
|
3964
3964
|
const piDir = process.env.PI_CODING_AGENT_DIR || path.join(os.homedir(), '.pi', 'agent');
|
|
3965
|
-
const piSkills = path.join(piDir, 'skills');
|
|
3966
3965
|
const piExtension = path.join(piDir, 'extensions', 'memoc.ts');
|
|
3967
3966
|
const piSettingsPath = path.join(piDir, 'settings.json');
|
|
3968
3967
|
|
|
@@ -3975,12 +3974,11 @@ function runInstallPlugin() {
|
|
|
3975
3974
|
delete skillLock.skills[name];
|
|
3976
3975
|
}
|
|
3977
3976
|
for (const name of SKILL_NAMES) {
|
|
3978
|
-
const src = path.join(skillsSrc, name);
|
|
3979
|
-
if (!fs.existsSync(src)) continue;
|
|
3977
|
+
const src = path.join(skillsSrc, name);
|
|
3978
|
+
if (!fs.existsSync(src)) continue;
|
|
3980
3979
|
copyDirSync(src, path.join(agentSkills, name));
|
|
3981
|
-
copyDirSync(src, path.join(piSkills, name));
|
|
3982
3980
|
const prev = skillLock.skills[name] || {};
|
|
3983
|
-
skillLock.skills[name] = {
|
|
3981
|
+
skillLock.skills[name] = {
|
|
3984
3982
|
source: 'neneee0181/memoc',
|
|
3985
3983
|
sourceType: 'npm',
|
|
3986
3984
|
sourceUrl: 'https://github.com/neneee0181/memoc.git',
|
|
@@ -3993,8 +3991,10 @@ function runInstallPlugin() {
|
|
|
3993
3991
|
fs.mkdirSync(agentsDir, { recursive: true });
|
|
3994
3992
|
fs.writeFileSync(skillLockPath, JSON.stringify(skillLock, null, 2) + '\n');
|
|
3995
3993
|
|
|
3996
|
-
|
|
3997
|
-
|
|
3994
|
+
// Pi Dev also reads ~/.agents/skills. Keep only the extension in ~/.pi/agent
|
|
3995
|
+
// so startup does not report duplicate skill conflicts.
|
|
3996
|
+
for (const name of [...SKILL_NAMES, ...DEPRECATED_SKILL_NAMES]) {
|
|
3997
|
+
const oldPiDest = path.join(piDir, 'skills', name);
|
|
3998
3998
|
if (fs.existsSync(oldPiDest)) fs.rmSync(oldPiDest, { recursive: true, force: true });
|
|
3999
3999
|
}
|
|
4000
4000
|
writePiMemocExtension(piExtension, SKILL_NAMES);
|
|
@@ -4008,7 +4008,7 @@ function runInstallPlugin() {
|
|
|
4008
4008
|
console.log(' Claude Code ~/.claude/plugins/cache/memoc/ + ~/.claude/plugins/marketplaces/memoc/');
|
|
4009
4009
|
console.log(' Codex Desktop ~/.agents/skills/');
|
|
4010
4010
|
console.log(' Skills spec ~/.agents/skills/ (Cursor, Windsurf, and other supported agents)');
|
|
4011
|
-
console.log(' Pi Dev ~/.pi/agent/
|
|
4011
|
+
console.log(' Pi Dev ~/.pi/agent/extensions/memoc.ts (uses ~/.agents/skills/)');
|
|
4012
4012
|
console.log('\n Skills:');
|
|
4013
4013
|
for (const s of SKILL_NAMES) console.log(` /${s}`);
|
|
4014
4014
|
console.log('\n Restart open agent apps to reload skills.\n');
|
package/package.json
CHANGED