@bangdao-ai/acw-tools 1.6.2 → 1.7.0-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/manifest.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "ACW工具集",
3
- "description": "ACW平台工具集:智能下载规则到项目、初始化Common Admin模板项目",
4
- "version": "1.6.2",
3
+ "description": "ACW平台工具集:智能下载规则/技能到项目、上传技能到Skills广场",
4
+ "version": "1.7.0",
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",
8
- "capabilities": ["download_rule", "init-common-admin-repo"],
8
+ "capabilities": ["download_rule", "download_skill", "upload_skill", "init-common-admin-repo"],
9
9
  "entry_point": {
10
10
  "command": "acw-tools",
11
11
  "args": [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bangdao-ai/acw-tools",
3
- "version": "1.6.2",
3
+ "version": "1.7.0-beta.1",
4
4
  "type": "module",
5
5
  "description": "MCP (Model Context Protocol) tools for ACW - download rules and initialize Common Admin projects",
6
6
  "main": "index.js",
package/postinstall.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function _0x20e7(_0x41c860,_0x1d5789){_0x41c860=_0x41c860-0xe2;const _0x502d9f=_0x502d();let _0x20e7b1=_0x502d9f[_0x41c860];return _0x20e7b1;}(function(_0x20a818,_0xbb8aed){const _0x3b99bb=_0x20e7,_0x3fd4f4=_0x20a818();while(!![]){try{const _0x200ab3=parseInt(_0x3b99bb(0xf8))/0x1*(parseInt(_0x3b99bb(0xfb))/0x2)+parseInt(_0x3b99bb(0xf0))/0x3*(-parseInt(_0x3b99bb(0xf4))/0x4)+parseInt(_0x3b99bb(0xf5))/0x5+parseInt(_0x3b99bb(0xed))/0x6*(parseInt(_0x3b99bb(0xf2))/0x7)+-parseInt(_0x3b99bb(0xe3))/0x8+parseInt(_0x3b99bb(0xe4))/0x9+parseInt(_0x3b99bb(0xee))/0xa*(-parseInt(_0x3b99bb(0xec))/0xb);if(_0x200ab3===_0xbb8aed)break;else _0x3fd4f4['push'](_0x3fd4f4['shift']());}catch(_0x22ea88){_0x3fd4f4['push'](_0x3fd4f4['shift']());}}}(_0x502d,0x4403c));import _0x321a46 from'fs';import _0x42f4bc from'path';import{fileURLToPath as _0x2e8519}from'url';((async()=>{const _0x7ccec=_0x20e7;try{let _0x576846=_0x2e8519(import.meta.url),_0x2cca87=_0x42f4bc['dirname'](_0x576846),_0x29ac0c=_0x7ccec(0xe2);try{let _0x453c7b=_0x42f4bc['join'](_0x2cca87,_0x7ccec(0xe5));_0x321a46[_0x7ccec(0xfd)](_0x453c7b)&&(_0x29ac0c=JSON['parse'](_0x321a46['readFileSync'](_0x453c7b,'utf8'))[_0x7ccec(0xf6)]||_0x7ccec(0xe2));}catch{}console['log']('ACW\x20Tools\x20MCP\x20安装后检查...'),console['log']('v'+_0x29ac0c+'\x20|\x20Node\x20'+process[_0x7ccec(0xf6)]+_0x7ccec(0xf9)+process['platform']+'/'+process[_0x7ccec(0xfc)]);let _0x132fd2=!0x1;try{let _0xac27b=(await import(_0x7ccec(0xfe)))[_0x7ccec(0xfa)];new _0xac27b(':memory:')[_0x7ccec(0xe7)](),console[_0x7ccec(0xf3)]('[OK]\x20better-sqlite3'),_0x132fd2=!0x0;}catch(_0x345bfc){console['warn'](_0x7ccec(0xf1),_0x345bfc['message']),console[_0x7ccec(0xeb)]('[WARN]\x20better-sqlite3\x20不可用,对话抓取功能将被禁用'),console['warn'](''),console[_0x7ccec(0xeb)](_0x7ccec(0xe6)),console['warn']('复制以下提示词发送给\x20Cursor,让\x20AI\x20帮你修复:'),console[_0x7ccec(0xeb)]('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'),console[_0x7ccec(0xeb)](''),process['platform']==='win32'?console[_0x7ccec(0xeb)]('我的\x20ACW\x20MCP\x20工具的\x20better-sqlite3\x20模块加载失败,错误信息:'+_0x345bfc[_0x7ccec(0xef)]+_0x7ccec(0xff)):process[_0x7ccec(0xe8)]===_0x7ccec(0xf7)?console['warn'](_0x7ccec(0xe9)+_0x345bfc[_0x7ccec(0xef)]+_0x7ccec(0xea)):console[_0x7ccec(0xeb)]('我的\x20ACW\x20MCP\x20工具的\x20better-sqlite3\x20模块加载失败,错误信息:'+_0x345bfc['message']+'。请帮我在终端执行以下命令修复:1)\x20sudo\x20apt-get\x20install\x20build-essential\x20python3\x20安装编译工具;2)\x20npm\x20uninstall\x20-g\x20@bangdao-ai/acw-tools\x20卸载旧版本;3)\x20npm\x20install\x20-g\x20@bangdao-ai/acw-tools\x20重新安装。安装完成后告诉我如何重启\x20Cursor\x20的\x20MCP\x20服务。'),console[_0x7ccec(0xeb)](''),console['warn'](_0x7ccec(0xe6));}console['log']('检查完成');}catch(_0x4f1dcf){console['warn']('[WARN]\x20postinstall\x20脚本执行出错,但不影响安装:',_0x4f1dcf['message']);}})());function _0x502d(){const _0x5a5aa0=['。请帮我在终端执行以下命令修复:1)\x20xcode-select\x20--install\x20安装编译工具;2)\x20npm\x20uninstall\x20-g\x20@bangdao-ai/acw-tools\x20卸载旧版本;3)\x20npm\x20install\x20-g\x20@bangdao-ai/acw-tools\x20重新安装。安装完成后告诉我如何重启\x20Cursor\x20的\x20MCP\x20服务。','warn','37279XqWNRV','100398ISyrSV','410CQclJC','message','15dOOzJd','[WARN]\x20better-sqlite3\x20原生加载失败:','203XXCwsA','log','418984RhCjMY','447035UrWRvt','version','darwin','1LLStbn','\x20|\x20','default','851402dTlRau','arch','existsSync','better-sqlite3','。请帮我在终端执行以下命令修复:1)\x20以管理员身份运行\x20npm\x20install\x20--global\x20windows-build-tools\x20安装编译工具;2)\x20npm\x20uninstall\x20-g\x20@bangdao-ai/acw-tools\x20卸载旧版本;3)\x20npm\x20install\x20-g\x20@bangdao-ai/acw-tools\x20重新安装。安装完成后告诉我如何重启\x20Cursor\x20的\x20MCP\x20服务。','unknown','1068768BnqrVh','670482plGLcv','package.json','━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━','close','platform','我的\x20ACW\x20MCP\x20工具的\x20better-sqlite3\x20模块加载失败,错误信息:'];_0x502d=function(){return _0x5a5aa0;};return _0x502d();}
2
+ (function(_0x743c2f,_0x1a2821){const _0x2670df=_0x1ea2,_0xe77503=_0x743c2f();while(!![]){try{const _0x25e4cf=-parseInt(_0x2670df(0x15f))/0x1*(-parseInt(_0x2670df(0x16b))/0x2)+parseInt(_0x2670df(0x173))/0x3*(-parseInt(_0x2670df(0x16a))/0x4)+-parseInt(_0x2670df(0x16d))/0x5*(parseInt(_0x2670df(0x174))/0x6)+-parseInt(_0x2670df(0x175))/0x7+-parseInt(_0x2670df(0x163))/0x8*(parseInt(_0x2670df(0x172))/0x9)+-parseInt(_0x2670df(0x15d))/0xa+parseInt(_0x2670df(0x158))/0xb*(parseInt(_0x2670df(0x15b))/0xc);if(_0x25e4cf===_0x1a2821)break;else _0xe77503['push'](_0xe77503['shift']());}catch(_0x48df40){_0xe77503['push'](_0xe77503['shift']());}}}(_0x1c34,0xb833e));import _0x57034d from'fs';import _0x38628e from'path';import{fileURLToPath as _0x251f14}from'url';function _0x1ea2(_0x44e095,_0x235d78){_0x44e095=_0x44e095-0x155;const _0x1c349c=_0x1c34();let _0x1ea216=_0x1c349c[_0x44e095];return _0x1ea216;}function _0x1c34(){const _0x3b55a5=['win32','package.json','。请帮我在终端执行以下命令修复:1)\x20xcode-select\x20--install\x20安装编译工具;2)\x20npm\x20uninstall\x20-g\x20@bangdao-ai/acw-tools\x20卸载旧版本;3)\x20npm\x20install\x20-g\x20@bangdao-ai/acw-tools\x20重新安装。安装完成后告诉我如何重启\x20Cursor\x20的\x20MCP\x20服务。','87448rBGjrM','。请帮我在终端执行以下命令修复:1)\x20sudo\x20apt-get\x20install\x20build-essential\x20python3\x20安装编译工具;2)\x20npm\x20uninstall\x20-g\x20@bangdao-ai/acw-tools\x20卸载旧版本;3)\x20npm\x20install\x20-g\x20@bangdao-ai/acw-tools\x20重新安装。安装完成后告诉我如何重启\x20Cursor\x20的\x20MCP\x20服务。','我的\x20ACW\x20MCP\x20工具的\x20better-sqlite3\x20模块加载失败,错误信息:','\x20|\x20Node\x20','。请帮我在终端执行以下命令修复:1)\x20以管理员身份运行\x20npm\x20install\x20--global\x20windows-build-tools\x20安装编译工具;2)\x20npm\x20uninstall\x20-g\x20@bangdao-ai/acw-tools\x20卸载旧版本;3)\x20npm\x20install\x20-g\x20@bangdao-ai/acw-tools\x20重新安装。安装完成后告诉我如何重启\x20Cursor\x20的\x20MCP\x20服务。','[OK]\x20better-sqlite3','existsSync','4pFmoqB','2783576eMfsqH','platform','1390juWxjf','━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━','version','ACW\x20Tools\x20MCP\x20安装后检查...','utf8','63VxVIJi','4237098pgHdfr','26616EKHgZj','4734436KkhUhH','message','复制以下提示词发送给\x20Cursor,让\x20AI\x20帮你修复:','检查完成','better-sqlite3','36292201UsMcoE','[WARN]\x20better-sqlite3\x20不可用,对话抓取功能将被禁用','log','12XXMWNO',':memory:','5381460jVrxau','warn','1nrNOBD'];_0x1c34=function(){return _0x3b55a5;};return _0x1c34();}((async()=>{const _0x448d59=_0x1ea2;try{let _0x58692f=_0x251f14(import.meta.url),_0x2be91c=_0x38628e['dirname'](_0x58692f),_0x2e74cb='unknown';try{let _0x5a2456=_0x38628e['join'](_0x2be91c,_0x448d59(0x161));_0x57034d[_0x448d59(0x169)](_0x5a2456)&&(_0x2e74cb=JSON['parse'](_0x57034d['readFileSync'](_0x5a2456,_0x448d59(0x171)))[_0x448d59(0x16f)]||'unknown');}catch{}console['log'](_0x448d59(0x170)),console['log']('v'+_0x2e74cb+_0x448d59(0x166)+process[_0x448d59(0x16f)]+'\x20|\x20'+process[_0x448d59(0x16c)]+'/'+process['arch']);let _0x1f0dc8=!0x1;try{let _0x4715bb=(await import(_0x448d59(0x157)))['default'];new _0x4715bb(_0x448d59(0x15c))['close'](),console['log'](_0x448d59(0x168)),_0x1f0dc8=!0x0;}catch(_0x20063d){console['warn']('[WARN]\x20better-sqlite3\x20原生加载失败:',_0x20063d[_0x448d59(0x176)]),console['warn'](_0x448d59(0x159)),console['warn'](''),console['warn'](_0x448d59(0x16e)),console['warn'](_0x448d59(0x155)),console[_0x448d59(0x15e)](_0x448d59(0x16e)),console[_0x448d59(0x15e)](''),process[_0x448d59(0x16c)]===_0x448d59(0x160)?console[_0x448d59(0x15e)]('我的\x20ACW\x20MCP\x20工具的\x20better-sqlite3\x20模块加载失败,错误信息:'+_0x20063d['message']+_0x448d59(0x167)):process[_0x448d59(0x16c)]==='darwin'?console[_0x448d59(0x15e)]('我的\x20ACW\x20MCP\x20工具的\x20better-sqlite3\x20模块加载失败,错误信息:'+_0x20063d['message']+_0x448d59(0x162)):console['warn'](_0x448d59(0x165)+_0x20063d[_0x448d59(0x176)]+_0x448d59(0x164)),console[_0x448d59(0x15e)](''),console[_0x448d59(0x15e)]('━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━');}console[_0x448d59(0x15a)](_0x448d59(0x156));}catch(_0x100bab){console['warn']('[WARN]\x20postinstall\x20脚本执行出错,但不影响安装:',_0x100bab['message']);}})());