@sansavision/atlas 0.1.1 → 0.1.3
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/README.md +5 -5
- package/bin/atlas-mcp.js +2 -2
- package/bin/atlas.js +1 -1
- package/index.js +1 -1
- package/install.js +6 -3
- package/package.json +9 -8
- package/bin/atlas +0 -0
- package/bin/atlas-mcp +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# atlas
|
|
1
|
+
# @sansavision/atlas
|
|
2
2
|
|
|
3
3
|
> Atlas Context Engine — MCP-native context engine for AI coding agents.
|
|
4
4
|
|
|
@@ -13,9 +13,9 @@ The correct binary for your platform is fetched automatically during `npm instal
|
|
|
13
13
|
## Installation
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
npm install -g atlas
|
|
16
|
+
npm install -g @sansavision/atlas
|
|
17
17
|
# or locally in a project
|
|
18
|
-
npm install atlas
|
|
18
|
+
npm install @sansavision/atlas
|
|
19
19
|
```
|
|
20
20
|
|
|
21
21
|
## CLI usage
|
|
@@ -38,7 +38,7 @@ atlas-mcp --help
|
|
|
38
38
|
## Programmatic usage (Node.js)
|
|
39
39
|
|
|
40
40
|
```js
|
|
41
|
-
const { startMcpServer } = require('atlas
|
|
41
|
+
const { startMcpServer } = require('@sansavision/atlas');
|
|
42
42
|
|
|
43
43
|
// Spawn atlas-mcp in the current working directory
|
|
44
44
|
const server = startMcpServer(['--port', '8080']);
|
|
@@ -56,7 +56,7 @@ server.on('close', (code) => console.log(`atlas-mcp exited with code ${code}`));
|
|
|
56
56
|
|
|
57
57
|
## Building from source
|
|
58
58
|
|
|
59
|
-
See the [main repository](https://github.com/
|
|
59
|
+
See the [main repository](https://github.com/Sansa-Organisation/atlas#building) for
|
|
60
60
|
Rust build instructions.
|
|
61
61
|
|
|
62
62
|
## License
|
package/bin/atlas-mcp.js
CHANGED
|
@@ -14,8 +14,8 @@ const binary = path.join(__dirname, name);
|
|
|
14
14
|
if (!fs.existsSync(binary)) {
|
|
15
15
|
console.error(
|
|
16
16
|
"atlas-mcp: native binary not found.\n" +
|
|
17
|
-
"Try reinstalling: npm install atlas
|
|
18
|
-
"Or build from source: https://github.com/
|
|
17
|
+
"Try reinstalling: npm install @sansavision/atlas\n" +
|
|
18
|
+
"Or build from source: https://github.com/Sansa-Organisation/atlas#building",
|
|
19
19
|
);
|
|
20
20
|
process.exit(1);
|
|
21
21
|
}
|
package/bin/atlas.js
CHANGED
|
@@ -15,7 +15,7 @@ if (!fs.existsSync(binary)) {
|
|
|
15
15
|
console.error(
|
|
16
16
|
"atlas: native binary not found.\n" +
|
|
17
17
|
"Try reinstalling: npm install @sansavision/atlas\n" +
|
|
18
|
-
"Or build from source: https://github.com/
|
|
18
|
+
"Or build from source: https://github.com/Sansa-Organisation/atlas#building",
|
|
19
19
|
);
|
|
20
20
|
process.exit(1);
|
|
21
21
|
}
|
package/index.js
CHANGED
|
@@ -58,7 +58,7 @@ function startMcpServer(args = [], opts = {}) {
|
|
|
58
58
|
if (!bin) {
|
|
59
59
|
throw new Error(
|
|
60
60
|
"atlas-mcp binary not found. " +
|
|
61
|
-
"Reinstall the package to trigger the download: npm install atlas
|
|
61
|
+
"Reinstall the package to trigger the download: npm install @sansavision/atlas",
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
64
|
return spawn(bin, args, { stdio: "inherit", ...opts });
|
package/install.js
CHANGED
|
@@ -19,11 +19,12 @@ function detectTarget() {
|
|
|
19
19
|
if (p === "linux" && a === "x64") return "x86_64-unknown-linux-musl";
|
|
20
20
|
if (p === "darwin" && a === "arm64") return "aarch64-apple-darwin";
|
|
21
21
|
if (p === "darwin" && a === "x64") return "x86_64-apple-darwin";
|
|
22
|
+
// Windows x64 — ship MSVC binaries (preferred on Windows).
|
|
22
23
|
if (p === "win32" && a === "x64") return "x86_64-pc-windows-msvc";
|
|
23
24
|
|
|
24
25
|
throw new Error(
|
|
25
26
|
`Unsupported platform: ${p}/${a}. ` +
|
|
26
|
-
"See https://github.com/
|
|
27
|
+
"See https://github.com/Sansa-Organisation/atlas for build-from-source instructions.",
|
|
27
28
|
);
|
|
28
29
|
}
|
|
29
30
|
|
|
@@ -100,7 +101,9 @@ async function main() {
|
|
|
100
101
|
const ext = isWindows ? ".zip" : ".tar.gz";
|
|
101
102
|
|
|
102
103
|
const archiveName = `atlas-v${version}-${target}${ext}`;
|
|
103
|
-
|
|
104
|
+
// Binaries must be publicly downloadable for npm installs to work.
|
|
105
|
+
// The main code repo may be private; use the public releases mirror.
|
|
106
|
+
const downloadUrl = `https://github.com/Sansa-Organisation/atlas-releases/releases/download/v${version}/${archiveName}`;
|
|
104
107
|
|
|
105
108
|
fs.mkdirSync(binDir, { recursive: true });
|
|
106
109
|
|
|
@@ -124,7 +127,7 @@ async function main() {
|
|
|
124
127
|
// Non-fatal: user can still build from source
|
|
125
128
|
console.warn(`atlas-context: binary download failed — ${err.message}`);
|
|
126
129
|
console.warn(
|
|
127
|
-
"You can build from source: https://github.com/
|
|
130
|
+
"You can build from source: https://github.com/Sansa-Organisation/atlas#building",
|
|
128
131
|
);
|
|
129
132
|
process.exit(0); // Don't fail `npm install`
|
|
130
133
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sansavision/atlas",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Atlas Context Engine — MCP-native context engine for AI coding agents",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
7
|
-
"access": "
|
|
7
|
+
"access": "public",
|
|
8
8
|
"registry": "https://registry.npmjs.org"
|
|
9
9
|
},
|
|
10
10
|
"keywords": [
|
|
@@ -15,28 +15,29 @@
|
|
|
15
15
|
"coding-agent",
|
|
16
16
|
"llm"
|
|
17
17
|
],
|
|
18
|
-
"homepage": "https://github.com/
|
|
18
|
+
"homepage": "https://github.com/Sansa-Organisation/atlas",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/
|
|
21
|
+
"url": "git+https://github.com/Sansa-Organisation/atlas.git"
|
|
22
22
|
},
|
|
23
23
|
"bugs": {
|
|
24
|
-
"url": "https://github.com/
|
|
24
|
+
"url": "https://github.com/Sansa-Organisation/atlas/issues"
|
|
25
25
|
},
|
|
26
26
|
"license": "MIT",
|
|
27
27
|
"engines": {
|
|
28
28
|
"node": ">=18"
|
|
29
29
|
},
|
|
30
30
|
"bin": {
|
|
31
|
-
"atlas": "
|
|
32
|
-
"atlas-mcp": "
|
|
31
|
+
"atlas": "bin/atlas.js",
|
|
32
|
+
"atlas-mcp": "bin/atlas-mcp.js"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"postinstall": "node install.js"
|
|
36
36
|
},
|
|
37
37
|
"files": [
|
|
38
38
|
"install.js",
|
|
39
|
-
"bin/",
|
|
39
|
+
"bin/atlas.js",
|
|
40
|
+
"bin/atlas-mcp.js",
|
|
40
41
|
"index.js",
|
|
41
42
|
"README.md"
|
|
42
43
|
]
|
package/bin/atlas
DELETED
|
Binary file
|
package/bin/atlas-mcp
DELETED
|
Binary file
|