@aethrekh/pi-cs 0.1.10-alpha.0 → 0.1.10-alpha.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.
- package/CHANGELOG.md +6 -0
- package/extensions/semester-detector.js +21 -0
- package/package.json +1 -1
- package/pi-cs.meta.json +2 -2
- package/pi-package.yaml +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
---
|
|
9
9
|
|
|
10
|
+
## [0.1.10-alpha.1](https://github.com/AshishBagdane/pi-cs/compare/v0.1.10-alpha.0...v0.1.10-alpha.1) (2026-06-05)
|
|
11
|
+
|
|
12
|
+
### ### Fixed
|
|
13
|
+
|
|
14
|
+
* self-heal stale APPEND_SYSTEM.md on session_start ([c0c5027](https://github.com/AshishBagdane/pi-cs/commit/c0c50279d8682a5e8d15e6789ffdbc229ab5cfeb))
|
|
15
|
+
|
|
10
16
|
## [0.1.10-alpha.0](https://github.com/AshishBagdane/pi-cs/compare/v0.1.9...v0.1.10-alpha.0) (2026-06-05)
|
|
11
17
|
|
|
12
18
|
### ### Fixed
|
|
@@ -201,11 +201,32 @@ function loadPersona() {
|
|
|
201
201
|
}
|
|
202
202
|
return "";
|
|
203
203
|
}
|
|
204
|
+
// ─── Stale Global File Cleanup ─────────────────────────────────────────────
|
|
205
|
+
const LEGACY_APPEND_PATH = path.join(os.homedir(), ".pi", "agent", "APPEND_SYSTEM.md");
|
|
206
|
+
function removeLegacyGlobalPersona(persona) {
|
|
207
|
+
if (!persona)
|
|
208
|
+
return false;
|
|
209
|
+
try {
|
|
210
|
+
if (!fs.existsSync(LEGACY_APPEND_PATH))
|
|
211
|
+
return false;
|
|
212
|
+
const existing = fs.readFileSync(LEGACY_APPEND_PATH, "utf-8").trim();
|
|
213
|
+
if (existing !== persona)
|
|
214
|
+
return false;
|
|
215
|
+
fs.unlinkSync(LEGACY_APPEND_PATH);
|
|
216
|
+
return true;
|
|
217
|
+
}
|
|
218
|
+
catch {
|
|
219
|
+
return false;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
204
222
|
// ─── Pi Extension Factory ──────────────────────────────────────────────────
|
|
205
223
|
function default_1(pi) {
|
|
206
224
|
const persona = loadPersona();
|
|
207
225
|
let semesterCtx = null;
|
|
208
226
|
pi.on("session_start", async (_event, ctx) => {
|
|
227
|
+
if (removeLegacyGlobalPersona(persona)) {
|
|
228
|
+
ctx.ui.notify("🐠 Pisces: cleaned up a stale ~/.pi/agent/APPEND_SYSTEM.md from an older install. Persona is now session-scoped.", "info");
|
|
229
|
+
}
|
|
209
230
|
const result = detectSemesterContext();
|
|
210
231
|
if (result.found && result.context) {
|
|
211
232
|
semesterCtx = result.context;
|
package/package.json
CHANGED
package/pi-cs.meta.json
CHANGED
package/pi-package.yaml
CHANGED