@bangdao-ai/acw-tools 1.7.2 → 1.7.3-beta.1
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/cursorConversationParser.js +1 -1
- package/index.js +1 -1
- package/manifest.json +1 -1
- package/package.json +1 -1
- package/postinstall.js +1 -1
package/manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ACW工具集",
|
|
3
3
|
"description": "ACW平台工具集:智能下载规则/技能到项目、上传技能到Skills广场",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.3",
|
|
5
5
|
"author": "邦道科技 - 产品技术中心",
|
|
6
6
|
"homepage": "https://www.npmjs.com/package/@bangdao-ai/acw-tools",
|
|
7
7
|
"repository": "https://www.npmjs.com/package/@bangdao-ai/acw-tools?activeTab=readme",
|
package/package.json
CHANGED
package/postinstall.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
(function(
|
|
2
|
+
const _0x53a5dc=_0x90cd;(function(_0x1b39e5,_0x4b5d04){const _0xdfe56e=_0x90cd,_0x3ddb15=_0x1b39e5();while(!![]){try{const _0x39fbfe=parseInt(_0xdfe56e(0x1f8))/0x1*(-parseInt(_0xdfe56e(0x1df))/0x2)+parseInt(_0xdfe56e(0x1d9))/0x3*(parseInt(_0xdfe56e(0x1e2))/0x4)+parseInt(_0xdfe56e(0x1d7))/0x5*(parseInt(_0xdfe56e(0x1dd))/0x6)+-parseInt(_0xdfe56e(0x1fc))/0x7+parseInt(_0xdfe56e(0x1c6))/0x8+parseInt(_0xdfe56e(0x203))/0x9+-parseInt(_0xdfe56e(0x1d3))/0xa*(-parseInt(_0xdfe56e(0x1de))/0xb);if(_0x39fbfe===_0x4b5d04)break;else _0x3ddb15['push'](_0x3ddb15['shift']());}catch(_0x13dfaa){_0x3ddb15['push'](_0x3ddb15['shift']());}}}(_0x1f52,0xbbe06));import _0x517730 from'fs';import _0x1a2dbc from'path';import{fileURLToPath as _0x4f0851}from'url';import{execSync as _0x3da9e9}from'child_process';import _0x46d689 from'https';import _0x3a5e32 from'http';import _0x758e21 from'zlib';function _0x1f52(){const _0x4e8f3c=['HTTP\x20','dirname','1120380svSJIH','282524phzaXg','12mnOmrN','timeout','log','5068GOZBqe','。请帮我在终端执行以下命令修复:1)\x20以管理员身份运行\x20npm\x20install\x20--global\x20windows-build-tools\x20安装编译工具;2)\x20npm\x20cache\x20clean\x20--force\x20清除缓存;3)\x20npm\x20install\x20-g\x20@bangdao-ai/acw-tools\x20重新安装。','error','115','gunzipSync','was\x20compiled\x20against','。请帮我在终端执行以下命令修复:1)\x20sudo\x20apt-get\x20install\x20build-essential\x20python3\x20安装编译工具;2)\x20npm\x20cache\x20clean\x20--force\x20清除缓存;3)\x20npm\x20install\x20-g\x20@bangdao-ai/acw-tools\x20重新安装。',')\x20没有预编译包,需要本地编译','[WARN]\x20预编译包安装后测试失败:\x20','statusCode','close','mkdirSync','\x20KB)','[OK]\x20安装完成','utf8','data','无法找到\x20better-sqlite3\x20模块路径','\x20|\x20Node\x20','modules','━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━','versions','headers','188263VmuNvL','better-sqlite3','未知错误','复制以下提示词发送给\x20Cursor,让\x20AI\x20帮你修复:','9149161QwQIET','end','version','。请帮我在终端执行以下命令修复:1)\x20xcode-select\x20--install\x20安装编译工具;2)\x20npm\x20cache\x20clean\x20--force\x20清除缓存;3)\x20npm\x20install\x20-g\x20@bangdao-ai/acw-tools\x20重新安装。','toString','unshift','startsWith','6004575eESLfl','slice','replace','111','concat','Request\x20timeout','destroy','length','fromCharCode','[OK]\x20better-sqlite3\x20加载成功','get','137','package.json','5323536dBYJPs','message','pipe','unknown','includes','[INFO]\x20建议升级到\x20Node.js\x2020/22/23/24\x20以获得最佳兼容性','arch','node\x20-e\x20\x22require(\x27better-sqlite3\x27)(\x27:memory:\x27).close()\x22','darwin','exit','cwd','node_modules','prebuilds','270KrnsGg','win32','existsSync','131','5eWuhpD','platform','2352Alpbyh','join'];_0x1f52=function(){return _0x4e8f3c;};return _0x1f52();}var h='12.4.1',N='https://bd-acw.oss-cn-beijing.aliyuncs.com/prebuilds/better-sqlite3',I={0x12:'108',0x13:_0x53a5dc(0x1bc),0x14:_0x53a5dc(0x1e5),0x15:'120',0x16:'127',0x17:_0x53a5dc(0x1d6),0x18:'137',0x19:'137'},q=[_0x53a5dc(0x1e5),'127','131',_0x53a5dc(0x1c4)];function _0x90cd(_0x1e912f,_0x2bb555){_0x1e912f=_0x1e912f-0x1ba;const _0x1f5272=_0x1f52();let _0x90cda4=_0x1f5272[_0x1e912f];return _0x90cda4;}function u(){const _0x1545f4=_0x53a5dc;let _0xe816d5=parseInt(process[_0x1545f4(0x1fe)]['slice'](0x1)['split']('.')[0x0],0xa);return I[_0xe816d5]||process[_0x1545f4(0x1f6)][_0x1545f4(0x1f4)];}function E(){const _0x3d524a=_0x53a5dc;let _0x61421e=h,_0x39a845=u(),_0x142d03=process['platform'],_0x510c40=process[_0x3d524a(0x1cc)];return'better-sqlite3-v'+_0x61421e+'-node-v'+_0x39a845+'-'+_0x142d03+'-'+_0x510c40+'.tar.gz';}function b(_0x2c79c8){return new Promise((_0x38552a,_0x59d99d)=>{const _0x5248bc=_0x90cd;let _0x2667fc=(_0x2c79c8[_0x5248bc(0x202)]('https')?_0x46d689:_0x3a5e32)[_0x5248bc(0x1c3)](_0x2c79c8,{'timeout':0x7530},_0x2fa11f=>{const _0x146fa8=_0x5248bc;if(_0x2fa11f[_0x146fa8(0x1eb)]===0x12d||_0x2fa11f[_0x146fa8(0x1eb)]===0x12e){b(_0x2fa11f[_0x146fa8(0x1f7)]['location'])['then'](_0x38552a)['catch'](_0x59d99d);return;}if(_0x2fa11f[_0x146fa8(0x1eb)]!==0xc8){_0x59d99d(new Error(_0x146fa8(0x1db)+_0x2fa11f[_0x146fa8(0x1eb)]));return;}let _0x2cbd14=[];_0x2fa11f['on'](_0x146fa8(0x1f1),_0x6155dd=>_0x2cbd14['push'](_0x6155dd)),_0x2fa11f['on'](_0x146fa8(0x1fd),()=>_0x38552a(Buffer[_0x146fa8(0x1bd)](_0x2cbd14))),_0x2fa11f['on'](_0x146fa8(0x1e4),_0x59d99d);});_0x2667fc['on']('error',_0x59d99d),_0x2667fc['on'](_0x5248bc(0x1e0),()=>{const _0x4e65e0=_0x5248bc;_0x2667fc[_0x4e65e0(0x1bf)](),_0x59d99d(new Error(_0x4e65e0(0x1be)));});});}async function P(_0x1c2977,_0x1c7658){const _0xa6e4c8=_0x53a5dc;let _0x56de66=_0x758e21[_0xa6e4c8(0x1e6)](_0x1c2977),_0x68bc3=0x200,_0x57511f=0x0;for(;_0x57511f<_0x56de66[_0xa6e4c8(0x1c0)]-_0x68bc3;){let _0x257569=_0x56de66[_0xa6e4c8(0x1ba)](_0x57511f,_0x57511f+_0x68bc3);if(_0x257569[0x0]===0x0)break;let _0x2b9b5d=_0x257569[_0xa6e4c8(0x1ba)](0x0,0x64)[_0xa6e4c8(0x200)](_0xa6e4c8(0x1f0))[_0xa6e4c8(0x1bb)](/\0/g,'')['trim'](),_0x3c6426=_0x257569['slice'](0x7c,0x88)['toString'](_0xa6e4c8(0x1f0))['replace'](/\0/g,'')['trim'](),_0x7b4845=parseInt(_0x3c6426,0x8)||0x0,_0x40ea05=String[_0xa6e4c8(0x1c1)](_0x257569[0x9c]);if(_0x57511f+=_0x68bc3,_0x2b9b5d&&_0x40ea05==='0'||_0x40ea05==='\x00'){let _0x7bb6c2=_0x56de66[_0xa6e4c8(0x1ba)](_0x57511f,_0x57511f+_0x7b4845),_0x1e34f3=_0x1a2dbc[_0xa6e4c8(0x1da)](_0x1c7658,_0x1a2dbc['basename'](_0x2b9b5d));_0x517730[_0xa6e4c8(0x1ed)](_0x1a2dbc[_0xa6e4c8(0x1dc)](_0x1e34f3),{'recursive':!0x0}),_0x517730['writeFileSync'](_0x1e34f3,_0x7bb6c2);}_0x57511f+=Math['ceil'](_0x7b4845/_0x68bc3)*_0x68bc3;}}function d(){const _0x33981a=_0x53a5dc;let _0xff7b0f=[_0x1a2dbc[_0x33981a(0x1da)](process[_0x33981a(0x1d0)](),'node_modules','better-sqlite3'),_0x1a2dbc[_0x33981a(0x1da)](_0x4f0851(import.meta.url),'..',_0x33981a(0x1d1),'better-sqlite3')];try{let _0x3bab65=import.meta.resolve(_0x33981a(0x1f9));if(_0x3bab65){let _0xbc0296=_0x4f0851(_0x3bab65);_0xff7b0f[_0x33981a(0x201)](_0x1a2dbc['dirname'](_0x1a2dbc[_0x33981a(0x1dc)](_0xbc0296)));}}catch{}for(let _0x5920d4 of _0xff7b0f)if(_0x517730['existsSync'](_0x1a2dbc[_0x33981a(0x1da)](_0x5920d4,_0x33981a(0x1c5))))return _0x5920d4;return null;}async function _(){const _0xb396bf=_0x53a5dc;let _0xfc2486=E(),_0x1b09bb=N+'/v'+h+'/'+_0xfc2486;console['log']('[INFO]\x20尝试从\x20OSS\x20下载预编译包:\x20'+_0xfc2486);let _0x5ea298=await b(_0x1b09bb);console['log']('[INFO]\x20下载成功\x20('+(_0x5ea298[_0xb396bf(0x1c0)]/0x400)['toFixed'](0x1)+_0xb396bf(0x1ee));let _0xd03fbb=d();if(!_0xd03fbb)throw new Error(_0xb396bf(0x1f2));let _0x1b9df0=_0x1a2dbc[_0xb396bf(0x1da)](_0xd03fbb,_0xb396bf(0x1d2),process['platform']+'-'+process[_0xb396bf(0x1cc)]);return _0x517730[_0xb396bf(0x1ed)](_0x1b9df0,{'recursive':!0x0}),await P(_0x5ea298,_0x1b9df0),console[_0xb396bf(0x1e1)]('[INFO]\x20预编译包已安装到:\x20'+_0x1b9df0),!0x0;}async function v(){const _0xc20dcc=_0x53a5dc;let _0x4cb050=(await import('better-sqlite3'))['default'];return new _0x4cb050(':memory:')[_0xc20dcc(0x1ec)](),!0x0;}((async()=>{const _0x4ba44d=_0x53a5dc;try{let _0x4c55b3=_0x4f0851(import.meta.url),_0x4ae565=_0x1a2dbc[_0x4ba44d(0x1dc)](_0x4c55b3),_0x1d29d0='unknown';try{let _0x72ef93=_0x1a2dbc['join'](_0x4ae565,'package.json');_0x517730[_0x4ba44d(0x1d5)](_0x72ef93)&&(_0x1d29d0=JSON['parse'](_0x517730['readFileSync'](_0x72ef93,_0x4ba44d(0x1f0)))['version']||_0x4ba44d(0x1c9));}catch{}console['log']('ACW\x20Tools\x20MCP\x20安装后检查...'),console['log']('v'+_0x1d29d0+_0x4ba44d(0x1f3)+process['version']+'\x20(ABI\x20'+u()+')\x20|\x20'+process[_0x4ba44d(0x1d8)]+'/'+process['arch']);let _0x2d2915=!0x1,_0xb691a8=null;try{await v(),console['log'](_0x4ba44d(0x1c2)),_0x2d2915=!0x0;}catch(_0xea2f68){if(_0xb691a8=_0xea2f68,console['log']('[INFO]\x20better-sqlite3\x20原生加载失败:\x20'+_0xea2f68['message']),_0xea2f68[_0x4ba44d(0x1c7)]['includes']('NODE_MODULE_VERSION')||_0xea2f68[_0x4ba44d(0x1c7)][_0x4ba44d(0x1ca)](_0x4ba44d(0x1e7))){let _0x4c219a=u();q['includes'](_0x4c219a)||(console[_0x4ba44d(0x1e1)]('[INFO]\x20Node.js\x20'+process['version']+'\x20(ABI\x20v'+_0x4c219a+_0x4ba44d(0x1e9)),console[_0x4ba44d(0x1e1)](_0x4ba44d(0x1cb))),console['log']('[INFO]\x20检测到\x20Node.js\x20版本不匹配,尝试修复...');try{await _(),console[_0x4ba44d(0x1e1)]('[INFO]\x20预编译包已安装,重新测试...');try{_0x3da9e9(_0x4ba44d(0x1cd),{'cwd':d()?_0x1a2dbc[_0x4ba44d(0x1dc)](d()):process['cwd'](),'stdio':_0x4ba44d(0x1c8),'env':{...process['env']}}),console['log']('[OK]\x20better-sqlite3\x20修复成功!'),_0x2d2915=!0x0;}catch(_0x11bcdc){console['warn'](_0x4ba44d(0x1ea)+_0x11bcdc[_0x4ba44d(0x1c7)]);}}catch(_0xb60c25){console['warn']('[WARN]\x20OSS\x20预编译包下载失败:\x20'+_0xb60c25[_0x4ba44d(0x1c7)]);}}}if(!_0x2d2915){let _0x2fdac1=_0xb691a8?.['message']||_0x4ba44d(0x1fa);console['error'](''),console['error']('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'),console['error']('[ERROR]\x20better-sqlite3\x20模块加载失败,安装中止'),console[_0x4ba44d(0x1e4)](_0x4ba44d(0x1f5)),console['error'](''),console['error']('错误信息:\x20'+_0x2fdac1),console['error'](''),console[_0x4ba44d(0x1e4)](_0x4ba44d(0x1fb)),console[_0x4ba44d(0x1e4)](''),process[_0x4ba44d(0x1d8)]===_0x4ba44d(0x1d4)?console['error']('我的\x20ACW\x20MCP\x20工具安装失败,better-sqlite3\x20模块加载失败,错误信息:'+_0x2fdac1+_0x4ba44d(0x1e3)):process[_0x4ba44d(0x1d8)]===_0x4ba44d(0x1ce)?console[_0x4ba44d(0x1e4)]('我的\x20ACW\x20MCP\x20工具安装失败,better-sqlite3\x20模块加载失败,错误信息:'+_0x2fdac1+_0x4ba44d(0x1ff)):console[_0x4ba44d(0x1e4)]('我的\x20ACW\x20MCP\x20工具安装失败,better-sqlite3\x20模块加载失败,错误信息:'+_0x2fdac1+_0x4ba44d(0x1e8)),console['error'](''),console['error'](_0x4ba44d(0x1f5)),process[_0x4ba44d(0x1cf)](0x1);}console['log'](_0x4ba44d(0x1ef));}catch(_0x557419){console[_0x4ba44d(0x1e4)]('[ERROR]\x20postinstall\x20脚本执行出错:',_0x557419[_0x4ba44d(0x1c7)]),process[_0x4ba44d(0x1cf)](0x1);}})());
|