@codai/axiom-mcp 1.0.12 → 1.0.13
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/dist/mcp-stdio.js +1 -1
- package/package.json +1 -1
- package/scripts/prepublish.js +25 -25
package/dist/mcp-stdio.js
CHANGED
package/package.json
CHANGED
package/scripts/prepublish.js
CHANGED
|
@@ -13,40 +13,40 @@ import { fileURLToPath } from 'url';
|
|
|
13
13
|
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
14
14
|
|
|
15
15
|
const INTERNAL_PACKAGES = [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
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
23
|
];
|
|
24
24
|
|
|
25
25
|
function copyDir(src, dest) {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
+
}
|
|
37
38
|
}
|
|
38
|
-
}
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
console.log('📦 Bundling internal dependencies...\n');
|
|
42
42
|
|
|
43
43
|
for (const pkg of INTERNAL_PACKAGES) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
50
|
}
|
|
51
51
|
|
|
52
52
|
console.log('✅ Bundle complete! Package is self-contained.\n');
|