@codai/axiom-mcp 1.0.7 → 1.0.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.
- package/package.json +8 -8
- package/scripts/prepublish.js +52 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codai/axiom-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"axiom-mcp": "dist/server.js",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"postinstall": "node dist/postinstall.js"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@codai/axiom-core": "
|
|
24
|
-
"@codai/axiom-emitter-apiservice": "
|
|
25
|
-
"@codai/axiom-emitter-batchjob": "
|
|
26
|
-
"@codai/axiom-emitter-docker": "
|
|
27
|
-
"@codai/axiom-emitter-webapp": "
|
|
28
|
-
"@codai/axiom-engine": "
|
|
29
|
-
"@codai/axiom-policies": "
|
|
23
|
+
"@codai/axiom-core": "^1.0.1",
|
|
24
|
+
"@codai/axiom-emitter-apiservice": "^1.0.1",
|
|
25
|
+
"@codai/axiom-emitter-batchjob": "^1.0.1",
|
|
26
|
+
"@codai/axiom-emitter-docker": "^1.0.1",
|
|
27
|
+
"@codai/axiom-emitter-webapp": "^1.0.1",
|
|
28
|
+
"@codai/axiom-engine": "^1.0.2",
|
|
29
|
+
"@codai/axiom-policies": "^1.0.1",
|
|
30
30
|
"@modelcontextprotocol/sdk": "^1.20.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* AXIOM MCP Prepublish Script
|
|
4
|
+
*
|
|
5
|
+
* Bundles all internal workspace dependencies into axiom-mcp dist/
|
|
6
|
+
* so that the published package is self-contained and doesn't require workspace:* protocol.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { copyFileSync, mkdirSync, readdirSync, statSync } from 'fs';
|
|
10
|
+
import { join, dirname } from 'path';
|
|
11
|
+
import { fileURLToPath } from 'url';
|
|
12
|
+
|
|
13
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
14
|
+
|
|
15
|
+
const INTERNAL_PACKAGES = [
|
|
16
|
+
'axiom-core',
|
|
17
|
+
'axiom-engine',
|
|
18
|
+
'axiom-policies',
|
|
19
|
+
'axiom-emitter-apiservice',
|
|
20
|
+
'axiom-emitter-batchjob',
|
|
21
|
+
'axiom-emitter-docker',
|
|
22
|
+
'axiom-emitter-webapp'
|
|
23
|
+
];
|
|
24
|
+
|
|
25
|
+
function copyDir(src, dest) {
|
|
26
|
+
mkdirSync(dest, { recursive: true });
|
|
27
|
+
|
|
28
|
+
for (const file of readdirSync(src)) {
|
|
29
|
+
const srcPath = join(src, file);
|
|
30
|
+
const destPath = join(dest, file);
|
|
31
|
+
|
|
32
|
+
if (statSync(srcPath).isDirectory()) {
|
|
33
|
+
copyDir(srcPath, destPath);
|
|
34
|
+
} else if (file.endsWith('.js') || file.endsWith('.d.ts')) {
|
|
35
|
+
copyFileSync(srcPath, destPath);
|
|
36
|
+
console.log(` ✓ ${file}`);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
console.log('📦 Bundling internal dependencies...\n');
|
|
42
|
+
|
|
43
|
+
for (const pkg of INTERNAL_PACKAGES) {
|
|
44
|
+
const srcDir = join(__dirname, '..', '..', pkg, 'dist');
|
|
45
|
+
const destDir = join(__dirname, '..', 'dist', 'vendor', pkg);
|
|
46
|
+
|
|
47
|
+
console.log(`Bundling @codai/${pkg}:`);
|
|
48
|
+
copyDir(srcDir, destDir);
|
|
49
|
+
console.log('');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
console.log('✅ Bundle complete! Package is self-contained.\n');
|