@iamoberlin/chorus 1.3.8 → 1.3.9

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.
Files changed (2) hide show
  1. package/index.ts +8 -2
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -37,8 +37,14 @@ import {
37
37
  } from "./src/purpose-research.js";
38
38
  import * as prayers from "./src/prayers/prayers.js";
39
39
  import * as prayerStore from "./src/prayers/store.js";
40
-
41
- const VERSION = "1.3.4"; // Restore --message flag (required by openclaw agent CLI)
40
+ import { readFileSync } from "fs";
41
+ import { fileURLToPath } from "url";
42
+ import { dirname, join } from "path";
43
+
44
+ // Read version from package.json to prevent drift
45
+ const __dirname = dirname(fileURLToPath(import.meta.url));
46
+ const pkg = JSON.parse(readFileSync(join(__dirname, "package.json"), "utf-8"));
47
+ const VERSION = pkg.version;
42
48
 
43
49
  const plugin = {
44
50
  id: "chorus",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iamoberlin/chorus",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "CHORUS: Hierarchy Of Recursive Unified Self-improvement — with Prayer Requests social network",
5
5
  "author": "Oberlin <iam@oberlin.ai>",
6
6
  "license": "MIT",