@aethrekh/pi-cs 0.2.0-alpha.0 → 0.2.0-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.2.0-alpha.1](https://github.com/AshishBagdane/pi-cs/compare/v0.2.0-alpha.0...v0.2.0-alpha.1) (2026-06-05)
11
+
12
+ ### ### Fixed
13
+
14
+ * resolve package.json path for both pack and dev layouts in /pisces --version ([4cb59b5](https://github.com/AshishBagdane/pi-cs/commit/4cb59b5c80f80434c9931beddb6845c7b34d033e))
15
+
10
16
  ## [0.2.0-alpha.0](https://github.com/AshishBagdane/pi-cs/compare/v0.1.10...v0.2.0-alpha.0) (2026-06-05)
11
17
 
12
18
  ### ### Added
@@ -250,12 +250,22 @@ function default_1(pi) {
250
250
  if (flag === "--version") {
251
251
  // Read version from package.json at runtime to stay in sync with releases
252
252
  let version = "unknown";
253
- try {
254
- const pkgPath = path.resolve(__dirname, "../../package.json");
255
- const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf-8"));
256
- version = pkg.version;
253
+ // Pack layout: <install>/extensions/progress-tracker.js → ../package.json
254
+ // Dev layout: src/extensions/progress-tracker.ts → ../../package.json
255
+ const pkgCandidates = [
256
+ path.resolve(__dirname, "../package.json"),
257
+ path.resolve(__dirname, "../../package.json"),
258
+ ];
259
+ for (const p of pkgCandidates) {
260
+ try {
261
+ const pkg = JSON.parse(fs.readFileSync(p, "utf-8"));
262
+ if (pkg.version) {
263
+ version = pkg.version;
264
+ break;
265
+ }
266
+ }
267
+ catch { /* try next */ }
257
268
  }
258
- catch { /* fall through */ }
259
269
  ctx.ui.notify(`🐠 pi-cs (Pisces) v${version}`, "info");
260
270
  return;
261
271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aethrekh/pi-cs",
3
- "version": "0.2.0-alpha.0",
3
+ "version": "0.2.0-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.2.0-alpha.0",
4
- "built_at": "2026-06-05T15:48:00.508Z",
3
+ "version": "0.2.0-alpha.1",
4
+ "built_at": "2026-06-05T16:24:49.514Z",
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.2.0-alpha.0
2
+ version: 0.2.0-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