@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aethrekh/pi-cs",
3
- "version": "0.1.10-alpha.0",
3
+ "version": "0.1.10-alpha.1",
4
4
  "description": "Pisces — The CS Student Edition for Pi Coding Agent. Your personal AI teaching assistant from homework to thesis.",
5
5
  "keywords": [
6
6
  "academic",
package/pi-cs.meta.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-cs",
3
- "version": "0.1.10-alpha.0",
4
- "built_at": "2026-06-05T09:26:35.040Z",
3
+ "version": "0.1.10-alpha.1",
4
+ "built_at": "2026-06-05T10:16:13.700Z",
5
5
  "entry": "index.js",
6
6
  "node_minimum": "18.0.0"
7
7
  }
package/pi-package.yaml CHANGED
@@ -1,5 +1,5 @@
1
1
  name: pi-cs
2
- version: 0.1.10-alpha.0
2
+ version: 0.1.10-alpha.1
3
3
  display_name: "pi-cs (Pisces)"
4
4
  description: "The CS Student Edition for Pi — Your personal AI teaching assistant for Computer Science, from homework to thesis."
5
5
  icon: public/pisces-logo-512.png