helixevo 0.2.14 → 0.2.15

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.
@@ -1,18 +1,34 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  // src/postinstall.ts
4
- import { createRequire } from "node:module";
4
+ import { readFileSync } from "node:fs";
5
5
  import { join, dirname } from "node:path";
6
6
  import { fileURLToPath } from "node:url";
7
- var require2 = createRequire(import.meta.url);
8
- var pkg = require2(join(dirname(fileURLToPath(import.meta.url)), "..", "package.json"));
7
+ var __dirname = "/Users/tianchichen/Documents/GitHub/helixevo/src";
8
+ var version = "unknown";
9
+ try {
10
+ const candidates = [
11
+ join(dirname(fileURLToPath(import.meta.url)), "..", "package.json"),
12
+ join(process.cwd(), "package.json"),
13
+ join(__dirname, "..", "package.json")
14
+ ];
15
+ for (const p of candidates) {
16
+ try {
17
+ const pkg = JSON.parse(readFileSync(p, "utf-8"));
18
+ if (pkg.name === "helixevo" && pkg.version) {
19
+ version = pkg.version;
20
+ break;
21
+ }
22
+ } catch {}
23
+ }
24
+ } catch {}
9
25
  var green = "\x1B[32m";
10
26
  var cyan = "\x1B[36m";
11
27
  var bold = "\x1B[1m";
12
28
  var dim = "\x1B[2m";
13
29
  var reset = "\x1B[0m";
14
30
  console.log();
15
- console.log(` ${green}✓${reset} ${bold}HelixEvo v${pkg.version}${reset} installed successfully`);
31
+ console.log(` ${green}✓${reset} ${bold}HelixEvo v${version}${reset} installed successfully`);
16
32
  console.log();
17
33
  console.log(` ${dim}Get started:${reset}`);
18
34
  console.log(` ${cyan}helixevo init${reset} Import skills + generate skill tests`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "helixevo",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "Self-evolving skill ecosystem for AI agents. Skills and projects co-evolve through multi-judge evaluation and a Pareto frontier.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -24,7 +24,7 @@
24
24
  "typecheck": "tsc --noEmit",
25
25
  "prepare": "npm run build",
26
26
  "prepublishOnly": "npm run typecheck && npm run build",
27
- "postinstall": "node dist/postinstall.js 2>/dev/null || true"
27
+ "postinstall": "node dist/postinstall.js || true"
28
28
  },
29
29
  "dependencies": {
30
30
  "commander": "^13.1.0",