@dogfood-lab/ai-crucible 0.2.0 → 0.4.0

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/bin/ai-crucible.js +10 -4
  2. package/package.json +3 -2
@@ -5,14 +5,20 @@
5
5
  // the release-asset names from convention, downloads the platform binary from the ai-crucible
6
6
  // GitHub Release, verifies its SHA256 against checksums-<version>.txt, caches it, and runs it
7
7
  // with full arg passthrough.
8
- // binary: ai-crucible-0.2.0-linux-x64
9
- // checksums: checksums-0.2.0.txt
8
+ //
9
+ // version + tag are read from THIS package's package.json at runtime — NEVER hardcoded — so the
10
+ // launcher can never drift from the published package. A hardcoded version silently fetched the
11
+ // previous release's binaries after a bump (the published 0.3.0 package shipped a bin pinned to
12
+ // 0.2.0, so `npx` ran 0.2.0 code); deriving it makes that drift structurally impossible.
13
+ // binary: ai-crucible-<version>-<os>-<arch>
14
+ // checksums: checksums-<version>.txt
15
+ const { version } = require("../package.json");
10
16
  process.env.MCPTOOLSHOP_LAUNCH_CONFIG = JSON.stringify({
11
17
  toolName: "ai-crucible",
12
18
  owner: "dogfood-lab",
13
19
  repo: "ai-crucible",
14
- version: "0.2.0",
15
- tag: "v0.2.0",
20
+ version: version,
21
+ tag: "v" + version,
16
22
  });
17
23
 
18
24
  require("@mcptoolshop/npm-launcher/bin/mcptoolshop-launch.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dogfood-lab/ai-crucible",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "ai-crucible — a diagnostic measurement instrument: a cross-family panel of local LLM judges under a sealed boundary, scoring against a hidden oracle. Zero-prerequisite npx install via a verified binary launcher. Research preview.",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
@@ -17,7 +17,8 @@
17
17
  "LICENSE"
18
18
  ],
19
19
  "scripts": {
20
- "verify": "node -e \"require('./bin/ai-crucible.js')\" 2>&1 || true"
20
+ "verify": "node -e \"require('./bin/ai-crucible.js')\" 2>&1 || true",
21
+ "test": "node test/version-derive.test.js"
21
22
  },
22
23
  "keywords": [
23
24
  "llm",