@mgantlett/nomos 4.27.1 → 4.28.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/nomos-cli.mjs +6 -3
  2. package/package.json +15 -15
package/bin/nomos-cli.mjs CHANGED
@@ -22,7 +22,7 @@ async function resolveEffectiveVersion() {
22
22
  const res = await fetch('https://api.github.com/repos/mgantlett/nomos/releases/latest', {
23
23
  headers: {
24
24
  Accept: 'application/vnd.github+json',
25
- 'User-Agent': 'sophialabs-nomos-npx-launcher'
25
+ 'User-Agent': 'mgantlett-nomos-npx-launcher'
26
26
  },
27
27
  signal: AbortSignal.timeout(2500)
28
28
  });
@@ -82,7 +82,7 @@ function parseExpectedSha256(checksumsText, archiveName) {
82
82
  }
83
83
 
84
84
  async function fetchReleaseBytes(url) {
85
- const res = await fetch(url, { headers: { 'User-Agent': 'sophialabs-nomos-npx-launcher' } });
85
+ const res = await fetch(url, { headers: { 'User-Agent': 'mgantlett-nomos-npx-launcher' } });
86
86
  if (!res.ok) {
87
87
  throw new Error(`Download failed (${res.status}) for ${url}`);
88
88
  }
@@ -90,7 +90,10 @@ async function fetchReleaseBytes(url) {
90
90
  }
91
91
 
92
92
  async function ensureCachedBinary(target) {
93
- const releaseBase = `https://github.com/mgantlett/nomos/releases/download/v${target.version}`;
93
+ const releaseBase = String(
94
+ process.env.NOMOS_RELEASE_BASE_URL ||
95
+ `https://github.com/mgantlett/nomos/releases/download/v${target.version}`
96
+ ).replace(/\/+$/, '');
94
97
  const cacheRoot = process.env.NOMOS_CACHE_DIR || path.join(os.homedir(), '.cache', 'nomos-launcher');
95
98
  const verDir = path.join(cacheRoot, `v${target.version}-${target.goos}-${target.goarch}`);
96
99
  const binPath = path.join(verDir, target.binName);
package/package.json CHANGED
@@ -1,24 +1,15 @@
1
1
  {
2
- "name": "@mgantlett/nomos",
3
- "version": "4.27.1",
4
- "description": "Zero-dependency launcher for Nomos: Apache-2.0 static Go AST & Git execution substrate for AI coding agents (nomos xray, nomos init, nomos verify, nomos mcp).",
5
- "license": "Apache-2.0",
6
- "type": "module",
7
2
  "bin": {
8
- "nomos": "bin/nomos-cli.mjs"
3
+ "nomos": "./bin/nomos-cli.mjs"
4
+ },
5
+ "description": "Zero-dependency launcher for Nomos: Apache-2.0 static Go AST \u0026 Git execution substrate for AI coding agents (nomos xray, nomos init, nomos verify, nomos mcp).",
6
+ "engines": {
7
+ "node": "\u003e=18.0.0"
9
8
  },
10
9
  "files": [
11
10
  "bin/nomos-cli.mjs",
12
11
  "README.md"
13
12
  ],
14
- "engines": {
15
- "node": ">=18.0.0"
16
- },
17
- "repository": {
18
- "type": "git",
19
- "url": "git+https://github.com/mgantlett/nomos.git",
20
- "directory": "packaging/npm"
21
- },
22
13
  "homepage": "https://sophialabs.ca/docs/introduction",
23
14
  "keywords": [
24
15
  "ai-agents",
@@ -34,5 +25,14 @@
34
25
  "model-context-protocol",
35
26
  "sarif"
36
27
  ],
37
- "mcpName": "io.github.mgantlett/nomos"
28
+ "license": "Apache-2.0",
29
+ "mcpName": "io.github.mgantlett/nomos",
30
+ "name": "@mgantlett/nomos",
31
+ "repository": {
32
+ "directory": "packaging/npm",
33
+ "type": "git",
34
+ "url": "git+https://github.com/mgantlett/nomos.git"
35
+ },
36
+ "type": "module",
37
+ "version": "4.28.0"
38
38
  }