specops 0.3.5 → 0.3.6

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.
Files changed (35) hide show
  1. package/dist/__integration__/fixtures/generator.js +1 -1
  2. package/dist/__integration__/mocks/server.js +1 -1
  3. package/dist/__integration__/setup.js +1 -1
  4. package/dist/acceptance/lazyDetector.js +1 -1
  5. package/dist/acceptance/reporter.js +1 -1
  6. package/dist/acceptance/runner.js +1 -1
  7. package/dist/cli.js +1 -1
  8. package/dist/context/index.js +1 -1
  9. package/dist/context/promptTemplate.js +1 -1
  10. package/dist/context/techContextLoader.js +1 -1
  11. package/dist/engine.js +1 -1
  12. package/dist/evolution/distiller.js +1 -1
  13. package/dist/evolution/index.js +1 -1
  14. package/dist/evolution/memoryGraph.js +1 -1
  15. package/dist/evolution/selector.js +1 -1
  16. package/dist/evolution/signals.js +1 -1
  17. package/dist/evolution/solidify.js +1 -1
  18. package/dist/evolution/store.js +1 -1
  19. package/dist/evolution/types.js +1 -1
  20. package/dist/init.js +1 -1
  21. package/dist/machines/agentMachine.js +1 -1
  22. package/dist/machines/supervisorMachine.js +1 -1
  23. package/dist/persistence/schema.js +1 -1
  24. package/dist/persistence/stateFile.js +1 -1
  25. package/dist/plugin-engine.js +1 -1
  26. package/dist/plugin.js +1 -1
  27. package/dist/requirement-analysis/analyzers/repository-parser.js +1 -1
  28. package/dist/requirement-analysis/generators/prd-generator.js +1 -1
  29. package/dist/requirement-analysis/integrations/v1-integration.js +1 -1
  30. package/dist/requirement-analysis/tools/analyze-requirements.js +1 -1
  31. package/dist/requirement-analysis/utils/error-handler.js +1 -1
  32. package/dist/types/index.js +1 -1
  33. package/dist/utils/id.js +1 -1
  34. package/package.json +1 -1
  35. package/scripts/postinstall.mjs +0 -1
@@ -1 +1 @@
1
- (function(_0x119226,_0xa4249d){const _0x297112={_0x26f47d:0x34a,_0x387b1a:0x309,_0x2663dc:0x57a,_0x3cd2ac:0x527,_0x3c2dd8:0x530,_0x31f678:0x2a3,_0x18866c:0x2c9,_0x20cc55:0x4f0},_0x2d1098={_0xcdb642:0x3e6},_0x4ed010=_0x119226();function _0x420e90(_0x3aa220,_0x55a02a){return _0x5c2b(_0x55a02a-_0x2d1098._0xcdb642,_0x3aa220);}function _0x5be7e3(_0x3c81b3,_0xbd63d0){return _0x5c2b(_0xbd63d0-0x1b6,_0x3c81b3);}while(!![]){try{const _0x462383=-parseInt(_0x420e90(0x55f,0x552))/(0x1415+0x2*-0x59f+0x8d6*-0x1)+-parseInt(_0x5be7e3(_0x297112._0x26f47d,_0x297112._0x387b1a))/(-0x128a+0xefa+0x392)+parseInt(_0x420e90(0x51a,0x531))/(-0x234f*-0x1+0x15a0+-0x1c76*0x2)*(-parseInt(_0x420e90(0x517,0x525))/(-0x100*-0x5+0xa*0x3ad+-0x29be))+parseInt(_0x420e90(_0x297112._0x2663dc,0x580))/(0xdff+0x3be*0x5+-0x10*0x20b)+parseInt(_0x5be7e3(0x30f,0x2f1))/(0x9d*0x3d+-0x9*-0x3dc+0x1*-0x481f)+-parseInt(_0x420e90(0x54c,0x518))/(0x18a4+-0x162e+-0x26f)*(-parseInt(_0x420e90(_0x297112._0x3cd2ac,_0x297112._0x3c2dd8))/(-0x243*-0xd+-0x1b89+-0x5e*0x5))+-parseInt(_0x5be7e3(_0x297112._0x31f678,_0x297112._0x18866c))/(0x9*-0x2ee+0x188a+0x1dd)*(-parseInt(_0x420e90(0x4e1,_0x297112._0x20cc55))/(0x1a*-0xe+-0x2*0x5d4+0xd1e));if(_0x462383===_0xa4249d)break;else _0x4ed010['push'](_0x4ed010['shift']());}catch(_0x3b16ef){_0x4ed010['push'](_0x4ed010['shift']());}}}(_0x5b65,-0xc0ce6*0x1+-0xcf8b1+0x27faa5));import{existsSync,readFileSync,mkdirSync}from'node:fs';import{resolve}from'node:path';function _0x5b65(){const _0x1f3a64=['4PQHiow/Q+MaN+s7U+wkOEAOOEw8JW','CMfUzg9T','icaG5B2t5yMn6zI25Q61oIa','qMroBwC','icaG','4P2miefNzw50ia','iow3SUwUJoAiKowfQoMdQoMyTUAUTq','4PYfifS','DvLMsNm','AMTkDMq','uuDmB1q','EKncsgW','s3vWveW','ios4JEwTMowCQa','zxHLy3v0zq','4PQG77IpicdNIRBMGihMLOFKU7BKUi3LRzJLNkG','z0nMCvi','y3vYCMvUDe9Wzq','icaG5yID5AEliefNzw4','wKDwA3i','EKHQsvK','z0v0Cfu','s1rrwum','BwDwwei','DgLVBG','DxbKyxrLzef0','qwLkD3q','svvJyKS','CgDuy2S','r0PwzLC','mtmWntG5mLDcsMDWzq','Aw5JBhvKzxm','EwPgu2u','5lMq6kEc6zsb5yAY56Qb','AgX6Eue','ChjVAMvJDa','y2HPBgrjzhm','icaGicaG','icaG5A6m5OIq5BQMoIa','mJi1mtG1nefjuLzztq','DxrMltG','vKPIu2e','ywX5C2LZ','mJa0y1nhEgvQ','z0D4BLe','Axriyxq','BvHqCxm','x2fUywX5C2LZ','BeHsCg4','EvHQtKG','CMvXDwLYzw1LBG','jsaO','BgLUzE+8JoEBToAoPEAjP+IHJa','CM91BMq','mJr5sK9JCfy','mta0ndyZu3zoq01X','tLPktLG','AwrSzq','zgvTyw5Kx2fUyq','vKj4ve4','ios4JEwTMowCQos6JIbZDgf0','DffSue4','rcaGicaGicaGia','mty2mdiWDxjXELH3','ihWG','xsdMK43KVzZLT7lMM7tMLRa6ia','suntv3u','rfPXy0y','u0Tcy3e','CMf0Aw9U','ruzcA0y','se9Kr08','z3jUB1m','BgvUz3rO','venWAha','AhHiCKO','Df9HBMfSExnPCW','BhLZAxm','z0fuBvG','y29TCgv0AxrVCG','y3vYCMvUDfnRAq','4PYfioAjGoACIsbbz2vUDa','icaGicaGFcdMK43KVzW','uwDUrfq','y29TCgXLDgvK','CKX1tfK','DeDoC24','CgfYC2u','otGYmdi0sNrVDwju','ChjVAMvJDcdLKB3KU6q','v1nwtg8','icaG5lU75yQHoIa','CgfKrw5K','BwfJAgLUzvnUyq','Bwf4','y3vYCMvUDfbOyq','y3bIC2W','t2TxtK4','5OQa5PYV6ycj5z6l','ywDLBNrjza','C0Ttu28','BuHkshG','CMvWzwf0','icaGqwDLBNqGsq','A2v5CW','q1PXvNm','CMvJDxjZAxzL','8j+tIIdPOBNNM67OV5VLUQy6ia','ihWG6zI25Q61icaGica','iefNzw50kq','tM1mEha','zvLtAum','77Ym6k+35ywi6l+q6kgmig5LDY0','BwPvrvm','tKzvz2m','wgPOyxq','ywDLBNrZ','CNrivum','5yAmoIa','BwfW','ywrMz1e','rhrwrum','rNn5u1u','icaG55UU5B2voIa','BNrLrwq','qMj4y1y','Bxvwy2K','q1fRvvi','icaG8j+KLIbbz2vUDa','Aw5KzxHpzG','4PQG77Ipicbbz2vUDca','CMviDfO','icaGicaGicb8ia','6zsaoIa','ndaZntq3meX0se14uW','CgfYzw50swq','B3voAK4','icaG54Mi5PYSoIa','yKvgqNK','D3jPDgu','suHSDw4','icaG8j+tIcdPMlBMRRxLIiBLUim6','DcdORRdLVzu','ChvZAa','ChnOB3q','BKzsuw0','DMvYC2LVBG','CgHHC2u','zMLSDgvY','5yQF6io95yIg5P6q','Cwf1D3G','cUkCHsbbz2vUDca','icaGqwDLBNq6ia','CMvHza','icaGicaGicaGia','icaG5PQc5PEGiefNzw4','A0DVEfe','u255vg0','swHLBhy','zs5QC29U','6zYa5Rgc5yIg5P6q','v0D4Ae4','BMfTzq','AM9PBG','vfLkr0C','BwvZC2fNzq','4PYfiefNzw50iow3SUAZQa','tK5cwvm','icaG5PU05PAW5PE26zE0oIa','xsdLT7lLROZMIjdLHAJPG6JPMlBMRRu','mti5otqYmhDkEu53rW','zgLZy3vZCW','qvjyu2u','iow3SUwTMowCQo+8JoI3S+I/H+AZQowgJa','DgPHA3u','DdOG','s2jiyxy','sKj2zLG','C2XPy2u','mtq0B3HJuhbq'];_0x5b65=function(){return _0x1f3a64;};return _0x5b65();}import{StateFileManager}from'./persistence/stateFile.js';import{PHASES,PIPELINE_PHASES}from'./types/index.js';function _0x5b782a(_0x50053d,_0x34a78f){const _0x3b8216={_0x1732ce:0x246};return _0x5c2b(_0x50053d- -_0x3b8216._0x1732ce,_0x34a78f);}import{generateAgentId}from'./utils/id.js';const _0x22936f={};_0x22936f[_0x5b782a(-0x100,-0x14f)+_0x5b782a(-0xe6,-0xe5)]=_0x5b782a(-0x146,-0x102),_0x22936f[_0x5b782a(-0xf8,-0x117)+_0x36720f(0x4ac,0x4ad)]=_0x5b782a(-0x146,-0x127),_0x22936f[_0x36720f(0x4ae,0x4cc)+_0x36720f(0x48e,0x479)]='竞品分析',_0x22936f['feature_an'+_0x36720f(0x489,0x46c)]=_0x5b782a(-0x151,-0x111),_0x22936f['tech_selec'+_0x5b782a(-0x11a,-0x162)]=_0x36720f(0x4c1,0x50e),_0x22936f[_0x36720f(0x456,0x413)]='讨论',_0x22936f['plan']='规划',_0x22936f[_0x5b782a(-0x124,-0xe5)]='执行',_0x22936f['verify']='验证';const PHASE_NAMES=_0x22936f,MAX_RETRIES=-0x1*-0xfdd+-0xde9+-0x1ef*0x1;async function readStateFile(_0x49add9){const _0x562799={_0x14f679:0x4d7,_0x4722b7:0x4cc,_0x3ee901:0x471},_0x236cc0={_0x174283:0xc6};function _0x1b5052(_0x4ccf27,_0x482f52){return _0x5b782a(_0x4ccf27-0x5be,_0x482f52);}const _0x858d08={'hxHrJ':function(_0x159fd8,_0x27e615){return _0x159fd8(_0x27e615);}};function _0xfb9752(_0x4bacdc,_0x297eb2){return _0x5b782a(_0x4bacdc-_0x236cc0._0x174283,_0x297eb2);}if(!_0x858d08[_0x1b5052(_0x562799._0x14f679,_0x562799._0x4722b7)](existsSync,_0x49add9))return null;const _0x412913=new StateFileManager(_0x49add9);return _0x412913[_0x1b5052(_0x562799._0x3ee901,0x478)]();}function _0x5c2b(_0x25800d,_0x479a7b){_0x25800d=_0x25800d-(0x538*0x1+-0x29*-0xd5+-0x2663);const _0x24b3b8=_0x5b65();let _0x55e802=_0x24b3b8[_0x25800d];if(_0x5c2b['YSStLl']===undefined){var _0x570e93=function(_0x57b673){const _0x2fbdf3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x76104c='',_0x4491f7='';for(let _0x65663b=0x634+0x23*0xbe+-0x202e,_0x84f310,_0x4acf46,_0x1b0c37=0x229a+-0x76d+0x1*-0x1b2d;_0x4acf46=_0x57b673['charAt'](_0x1b0c37++);~_0x4acf46&&(_0x84f310=_0x65663b%(0x69*0x24+0x1*0x9c7+-0x1887)?_0x84f310*(-0x12e*-0x1+0x1309+-0x13f7)+_0x4acf46:_0x4acf46,_0x65663b++%(0x40*0x94+0xbc+-0x44*0x8e))?_0x76104c+=String['fromCharCode'](-0x3*-0x83d+-0xacb+0x3*-0x44f&_0x84f310>>(-(-0x1*0x1465+-0x2*0x1252+0x390b*0x1)*_0x65663b&0xa*-0x2a0+0xfb8+0xa8e)):-0x5e3+0x13f4+-0xe11){_0x4acf46=_0x2fbdf3['indexOf'](_0x4acf46);}for(let _0x2734bd=0x5ac+0x8f*0x5+-0xc5*0xb,_0x3574cc=_0x76104c['length'];_0x2734bd<_0x3574cc;_0x2734bd++){_0x4491f7+='%'+('00'+_0x76104c['charCodeAt'](_0x2734bd)['toString'](0x5*0x794+0x81*-0x18+-0x19bc))['slice'](-(0x14ae+-0xe7b+0x5*-0x13d));}return decodeURIComponent(_0x4491f7);};_0x5c2b['eJUJLS']=_0x570e93,_0x5c2b['VZNDCO']={},_0x5c2b['YSStLl']=!![];}const _0x33c582=_0x24b3b8[-0xc67+0x6bb*-0x2+0x19dd],_0x3e7d35=_0x25800d+_0x33c582,_0x172c63=_0x5c2b['VZNDCO'][_0x3e7d35];return!_0x172c63?(_0x55e802=_0x5c2b['eJUJLS'](_0x55e802),_0x5c2b['VZNDCO'][_0x3e7d35]=_0x55e802):_0x55e802=_0x172c63,_0x55e802;}async function writeStateFile(_0xfca258,_0x1cafcc){const _0x32f749={_0x925f90:0x31b,_0x3043d7:0x351,_0x305e9c:0x320,_0x2bef6d:0x26a,_0x3a69d4:0x234,_0x2757f7:0x279,_0x4d1383:0x213,_0x391f0a:0x2e1,_0x325839:0x2e8,_0xe4c526:0x332,_0x4be9e4:0x2be,_0x2de029:0x3ae,_0x3f4fdf:0x364,_0x2cf9f0:0x217,_0x15ce2d:0x2f4,_0x50a26a:0x2fa,_0x5246ee:0x25d},_0x3a6519={};function _0x3ad9a6(_0x185dcc,_0x442ab6){return _0x5b782a(_0x442ab6-0x40b,_0x185dcc);}_0x3a6519[_0x8b4f5c(-0x234,-0x260)]=function(_0x28cc79,_0x45b077){return _0x28cc79<_0x45b077;},_0x3a6519['yXjNH']=function(_0x121f68,_0x59d20a){return _0x121f68!==_0x59d20a;},_0x3a6519[_0x3ad9a6(0x2fb,_0x32f749._0x925f90)]=_0x3ad9a6(_0x32f749._0x3043d7,0x347),_0x3a6519[_0x3ad9a6(0x346,0x34c)]=_0x3ad9a6(0x2f6,_0x32f749._0x305e9c);function _0x8b4f5c(_0xcc1009,_0x105653){return _0x5b782a(_0xcc1009- -0x158,_0x105653);}_0x3a6519['IUcbK']=function(_0x576d7d,_0x3cb207){return _0x576d7d instanceof _0x3cb207;},_0x3a6519[_0x8b4f5c(-_0x32f749._0x2bef6d,-0x285)]=function(_0x4d21f2,_0x2cb18c){return _0x4d21f2-_0x2cb18c;};const _0x3ed095=_0x3a6519;for(let _0x5de5f3=0x6aa+-0x1*-0x1769+-0x1e13*0x1;_0x3ed095[_0x8b4f5c(-_0x32f749._0x3a69d4,-_0x32f749._0x2757f7)](_0x5de5f3,MAX_RETRIES);_0x5de5f3++){try{if(_0x3ed095[_0x8b4f5c(-0x259,-0x22f)]('NmLxp',_0x3ed095[_0x8b4f5c(-0x248,-_0x32f749._0x4d1383)]))return _0x3ad9a6(_0x32f749._0x391f0a,_0x32f749._0x325839)+_0x8b4f5c(-0x21a,-0x247)+_0x3ad9a6(0x339,_0x32f749._0xe4c526);else{const _0x343860=new StateFileManager(_0xfca258);await _0x343860[_0x3ad9a6(0x287,_0x32f749._0x4be9e4)](),await _0x343860[_0x3ad9a6(_0x32f749._0x2de029,_0x32f749._0x3f4fdf)](_0x1cafcc);return;}}catch(_0x499b5b){if('HOdGO'===_0x3ed095[_0x8b4f5c(-_0x32f749._0x2cf9f0,-0x230)]){if(_0x3ed095[_0x3ad9a6(0x2d3,_0x32f749._0x15ce2d)](_0x499b5b,Error)&&_0x499b5b[_0x8b4f5c(-0x299,-0x2a2)][_0x3ad9a6(0x32a,0x2f8)](_0x3ad9a6(0x354,_0x32f749._0x50a26a))&&_0x5de5f3<_0x3ed095['yjFSe'](MAX_RETRIES,-0x21b5+0xa7b*-0x1+-0x1*-0x2c31)){await new Promise(_0x5e78ab=>setTimeout(_0x5e78ab,-0xc79+-0x2*-0xefc+-0x114d+Math[_0x8b4f5c(-0x289,-0x2c5)]()*(0x21b4+-0xa63*-0x1+-0x2bb3)));continue;}throw _0x499b5b;}else{const _0x8791f2=_0x4600f4[_0x39a4b8][_0x8b4f5c(-0x2ab,-_0x32f749._0x5246ee)];_0x48eb8f[_0x8791f2]=(_0x396ef2[_0x8791f2]??-0x2*-0xb8+0x5ec+0x2*-0x3ae)+(0x32b+0x3*0x16+-0x36c);}}}}function computeOverallPhase(_0x464878){const _0x52bf2a={_0x4a1c9c:0x1b8,_0x46df91:0x4fd,_0x47101c:0x4c0,_0x4f30ab:0x19f,_0x44c6c4:0x190,_0x332b72:0x518,_0x8d5928:0x1f4,_0x271802:0x4ed,_0x35aeb0:0x4a6,_0x1dffe2:0x18b,_0x41f695:0x182,_0x19b06a:0x4d1,_0x10072a:0x519,_0x3b4fbf:0x5a8,_0x5a4159:0x551,_0x4d9869:0x112,_0x2b490c:0x14e,_0x286eea:0x15d,_0x2b89fa:0x17a,_0x4508f3:0x170,_0x573117:0x19d,_0x469cb6:0x147,_0x3052a2:0x4db,_0x132e10:0x1ec,_0x1a5976:0x1f7};function _0x5f11b4(_0x2af5ee,_0x284cd4){return _0x5b782a(_0x284cd4-0x605,_0x2af5ee);}const _0x51dae9={};_0x51dae9['DtVEC']=function(_0x5a5fc0,_0xb199f1){return _0x5a5fc0+_0xb199f1;},_0x51dae9[_0xf7e232(-_0x52bf2a._0x4a1c9c,-0x1e6)]=function(_0x4a4c54,_0x46b593){return _0x4a4c54-_0x46b593;},_0x51dae9[_0x5f11b4(_0x52bf2a._0x46df91,_0x52bf2a._0x47101c)]=function(_0x1f4e81,_0x106e4b){return _0x1f4e81!==_0x106e4b;},_0x51dae9[_0xf7e232(-_0x52bf2a._0x4f30ab,-_0x52bf2a._0x44c6c4)]=function(_0x3ab08c,_0x1e0083){return _0x3ab08c===_0x1e0083;},_0x51dae9[_0x5f11b4(_0x52bf2a._0x332b72,0x551)]=_0xf7e232(-0x249,-_0x52bf2a._0x8d5928);const _0x548d87=_0x51dae9;for(const _0x305b6b of Object[_0x5f11b4(0x51a,0x53b)](_0x464878)){if(_0x548d87[_0x5f11b4(_0x52bf2a._0x271802,0x4c0)](_0x464878[_0x305b6b][_0x5f11b4(_0x52bf2a._0x35aeb0,0x4b2)],_0xf7e232(-_0x52bf2a._0x1dffe2,-_0x52bf2a._0x41f695))){if(_0x548d87[_0x5f11b4(_0x52bf2a._0x19b06a,_0x52bf2a._0x10072a)](_0x548d87[_0x5f11b4(_0x52bf2a._0x3b4fbf,_0x52bf2a._0x5a4159)],_0xf7e232(-_0x52bf2a._0x4d9869,-_0x52bf2a._0x2b490c))){const _0x44ac07=_0x546f47[_0x3938e2]??_0x523bc3,_0x5c72d0=_0x548d87[_0xf7e232(-0x14c,-_0x52bf2a._0x286eea)]('█'[_0xf7e232(-_0x52bf2a._0x2b89fa,-_0x52bf2a._0x4508f3)](_0x484542),'░'[_0xf7e232(-0x1a9,-_0x52bf2a._0x4508f3)](_0x42f47f[_0xf7e232(-0x136,-0x178)](0x1*-0x1753+-0x5*-0x42d+0x1*0x272,_0x548d87['TYJGG'](_0x27a2ad,_0x362485))));_0x51d941[_0xf7e232(-_0x52bf2a._0x573117,-_0x52bf2a._0x469cb6)](_0x5f11b4(_0x52bf2a._0x3052a2,0x4f8)+_0x44ac07['padEnd'](0x485+-0x12ab+0xe34)+'\x20'+_0x5c72d0+'\x20'+_0xbbfbaa);}else return _0x464878[_0x305b6b][_0xf7e232(-_0x52bf2a._0x132e10,-_0x52bf2a._0x1a5976)];}}function _0xf7e232(_0x2563d1,_0x50a6be){return _0x5b782a(_0x50a6be- -0xa4,_0x2563d1);}return _0xf7e232(-0x1d8,-0x182);}export async function getStatus(_0x58828b){const _0x5eb4dc={_0x2627f2:0x154,_0x76c000:0x16e,_0x18f403:0x3ec,_0x173970:0x41e,_0x2dda40:0x1b0,_0x62bbf5:0x163,_0x5e53a4:0x43e,_0x3af62a:0x43a,_0x2c2ab3:0x102,_0x485f99:0x41b,_0x4c122d:0x3d0,_0x5d37ad:0x3a2,_0x5e6fae:0x453,_0x214a56:0x46f,_0x26fbc4:0x153,_0x4a4af0:0x3dd,_0x502096:0x3fa,_0x4e8d53:0x22c,_0x98dcaf:0x1ee,_0x39898e:0x14c,_0x1d510a:0x452,_0x56d68f:0x47e,_0x5ba116:0x3f9,_0x10c875:0x413,_0x5cc040:0x192,_0x1d6166:0x1cb,_0x3d1456:0x416,_0x26b9ec:0x448,_0x259c95:0x159,_0xa57879:0x13e,_0x29fcc9:0x170,_0x4191c0:0x409,_0x35cd47:0x405,_0x43e6c3:0x414,_0x1b97f4:0x471,_0x2e4f0a:0x375,_0xa62b37:0x1bb,_0x5e7bed:0x404,_0x7ff53c:0x1bb,_0x17eb1b:0x431},_0x29e337={'FsySU':_0x1fdc76(_0x5eb4dc._0x2627f2,_0x5eb4dc._0x76c000)+',请先运行\x20new-'+'project\x20命令','luojk':function(_0x4430cc,_0x12ae8b,_0x5c6a60){return _0x4430cc(_0x12ae8b,_0x5c6a60);},'Ihelv':_0x3bab51(_0x5eb4dc._0x18f403,_0x5eb4dc._0x173970),'pKAia':function(_0x523b98,_0x4a9108){return _0x523b98===_0x4a9108;},'sKSSo':function(_0xededae,_0xbad619){return _0xededae+_0xbad619;},'LYBXR':_0x1fdc76(_0x5eb4dc._0x2dda40,_0x5eb4dc._0x62bbf5)};if(!existsSync(_0x58828b))return _0x29e337[_0x3bab51(_0x5eb4dc._0x5e53a4,_0x5eb4dc._0x3af62a)];const _0x145fad=_0x29e337['luojk'](readFileSync,_0x58828b,_0x29e337[_0x1fdc76(_0x5eb4dc._0x2c2ab3,0x149)]),_0x4524d0=JSON[_0x3bab51(_0x5eb4dc._0x485f99,0x428)](_0x145fad),_0x5828bc=[];_0x5828bc[_0x1fdc76(0x1d9,0x1ee)]('📊\x20项目状态:\x20'+_0x4524d0[_0x3bab51(0x3e7,0x42c)][_0x3bab51(0x3b2,0x3ce)]),_0x5828bc[_0x3bab51(0x453,0x4a4)]('\x20\x20\x20当前阶段:\x20'+(PHASE_NAMES[_0x4524d0[_0x3bab51(0x3e7,_0x5eb4dc._0x4c122d)][_0x1fdc76(0x1d4,0x1be)+'se']]??_0x4524d0['project'][_0x3bab51(0x423,0x423)+'se']));function _0x3bab51(_0x35f72f,_0x574dae){return _0x36720f(_0x35f72f- -0x9b,_0x574dae);}_0x5828bc['push'](_0x3bab51(0x44d,0x3fc)+_0x4524d0[_0x3bab51(_0x5eb4dc._0x5d37ad,0x3f9)]),_0x5828bc[_0x3bab51(_0x5eb4dc._0x5e6fae,_0x5eb4dc._0x214a56)](_0x1fdc76(0x118,_0x5eb4dc._0x26fbc4)+_0x4524d0[_0x3bab51(_0x5eb4dc._0x4a4af0,0x3e8)]);const _0x2f0179=_0x4524d0[_0x3bab51(0x438,_0x5eb4dc._0x502096)];function _0x1fdc76(_0x449911,_0x4ce721){return _0x5b782a(_0x4ce721-0x291,_0x449911);}const _0x16ee7a=Object['keys'](_0x2f0179);if(_0x29e337['pKAia'](_0x16ee7a['length'],0x1824+0x1d9f*0x1+0x1*-0x35c3))return _0x5828bc[_0x1fdc76(_0x5eb4dc._0x4e8d53,_0x5eb4dc._0x98dcaf)](_0x1fdc76(_0x5eb4dc._0x39898e,0x146)+_0x3bab51(_0x5eb4dc._0x1d510a,_0x5eb4dc._0x56d68f)),_0x5828bc[_0x3bab51(0x3b3,0x385)]('\x0a');_0x5828bc[_0x3bab51(_0x5eb4dc._0x5e6fae,_0x5eb4dc._0x5ba116)](''),_0x5828bc[_0x3bab51(_0x5eb4dc._0x5e6fae,_0x5eb4dc._0x10c875)](_0x1fdc76(0x1e4,0x1c6)+'D\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1fdc76(_0x5eb4dc._0x5cc040,_0x5eb4dc._0x1d6166)+_0x3bab51(_0x5eb4dc._0x3d1456,0x453)+_0x3bab51(0x3aa,0x36a)+_0x3bab51(_0x5eb4dc._0x26b9ec,0x49d)+'工具'),_0x5828bc[_0x3bab51(0x453,0x41a)](_0x29e337[_0x1fdc76(0x16b,0x1c3)](_0x29e337['LYBXR'],'-'['repeat'](-0x1*0xa97+0x2cf*-0x6+-0x5*-0x58d)));for(const _0x257f1d of _0x16ee7a){const _0x4e7247=_0x2f0179[_0x257f1d],_0x223923=PHASE_NAMES[_0x4e7247[_0x1fdc76(_0x5eb4dc._0x259c95,_0x5eb4dc._0xa57879)]]??_0x4e7247[_0x3bab51(0x3a3,0x3be)],_0x5064c9=_0x4e7247[_0x1fdc76(0x191,_0x5eb4dc._0x29fcc9)+_0x3bab51(_0x5eb4dc._0x4191c0,_0x5eb4dc._0x35cd47)]||'-',_0x1fc915=_0x4e7247[_0x3bab51(_0x5eb4dc._0x43e6c3,0x444)+'ll']||'-';_0x5828bc[_0x3bab51(0x453,_0x5eb4dc._0x1b97f4)](_0x3bab51(0x3c8,_0x5eb4dc._0x2e4f0a)+_0x257f1d[_0x1fdc76(0x209,_0x5eb4dc._0xa62b37)](0x123*-0x12+0x534*-0x2+0x8*0x3de)+_0x3bab51(_0x5eb4dc._0x5e7bed,0x441)+_0x223923[_0x1fdc76(0x1f4,0x1bb)](0x20b9+-0xdcf+-0x12dc)+_0x1fdc76(0x15f,0x19f)+_0x5064c9[_0x1fdc76(0x1f4,_0x5eb4dc._0x7ff53c)](-0x2512+0x1550+0xfd7)+_0x3bab51(0x404,_0x5eb4dc._0x17eb1b)+_0x1fc915);}return _0x5828bc['join']('\x0a');}export async function advancePhase(_0x502a05,_0x49d090){const _0x5e8173={_0x3786e3:0x17,_0x475673:0x3b,_0x3d12a1:0x42f,_0x121850:0x46a,_0xb1a8db:0x20,_0x146405:0x413,_0x5ddd0c:0x440,_0x3de66a:0x382,_0x1f1abc:0x429,_0x4ec4df:0x3fa,_0x32468e:0x430,_0x102973:0x3e4,_0x18e6c8:0x42a,_0x3b20bd:0x3cc,_0x368110:0x3eb,_0x51e786:0x3aa,_0x4ef515:0x6b,_0x16caf6:0x14,_0x62fe8:0x0,_0x28024c:0x6b,_0x279165:0xb0,_0x57b225:0x6b,_0xafec9c:0x433,_0x391591:0x487,_0x3f080e:0x3fa,_0x49a355:0x73,_0x5f152b:0x27,_0x1e26a1:0x438,_0xc4af70:0x12,_0x26e6c5:0x27,_0x55ec3f:0x3b,_0x595cf2:0x2a,_0x1b1762:0x4f,_0x2fea07:0x45,_0x3ed6c6:0xe,_0x83f537:0x35,_0x1820c8:0x18,_0x2be0e3:0x44,_0x10a2d7:0x4a,_0x2d68a6:0x413,_0x291b92:0x427,_0x2d3454:0x3ae,_0x2ed223:0x3e8},_0x7cb1ef={_0x12a304:0x4f1},_0x2d2911={'DZqcF':function(_0xa1567,_0x8ff93a){return _0xa1567<_0x8ff93a;},'eYSiC':function(_0x289d4e,_0x7a1f58){return _0x289d4e+_0x7a1f58;},'AiJwt':_0xbaa9aa(_0x5e8173._0x3786e3,-_0x5e8173._0x475673)+_0x28e682(_0x5e8173._0x3d12a1,_0x5e8173._0x121850)+'project\x20命令','mjUES':_0xbaa9aa(-_0x5e8173._0xb1a8db,0x35),'sztRB':function(_0x29a64f,_0x4d1cab){return _0x29a64f===_0x4d1cab;},'gATmX':_0x28e682(_0x5e8173._0x146405,_0x5e8173._0x5ddd0c),'mXPqs':function(_0x359a63,_0x1e3f0c){return _0x359a63(_0x1e3f0c);},'gEtpU':_0x28e682(0x3d6,_0x5e8173._0x3de66a)},_0x168f39=await readStateFile(_0x502a05);if(!_0x168f39)return _0x2d2911[_0xbaa9aa(-0x51,-0x30)];const _0x361961=_0x49d090??Object[_0x28e682(0x427,0x44b)](_0x168f39[_0x28e682(0x433,_0x5e8173._0x1f1abc)])['find'](_0x41f637=>_0x168f39[_0x28e682(0x433,0x3f0)][_0x41f637]['phase']!==_0x28e682(0x413,0x44e));if(!_0x361961)return _0x28e682(_0x5e8173._0x4ec4df,0x3d9)!==_0x2d2911[_0x28e682(_0x5e8173._0x32468e,_0x5e8173._0x102973)]?_0xbaa9aa(-0x31,0x7)+'\x20已完成全部阶段':_0x28e682(0x441,_0x5e8173._0x18e6c8)+_0x37480d+_0x28e682(_0x5e8173._0x3b20bd,0x372);const _0x371db1=_0x168f39['agents'][_0x361961];if(!_0x371db1)return _0x2d2911['sztRB']('CacWJ','iqoPx')?_0x1df7fc[-0x1795*-0x1+0x43e+0x11*-0x1a3]:'❌\x20Agent\x20'+_0x361961+(_0x28e682(0x3fb,_0x5e8173._0x368110)+_0x28e682(_0x5e8173._0x51e786,0x39c));if(_0x371db1[_0xbaa9aa(-0x98,-_0x5e8173._0x4ef515)]===_0x2d2911[_0xbaa9aa(-_0x5e8173._0x16caf6,0x4)])return'['+_0x361961+_0xbaa9aa(_0x5e8173._0x62fe8,-0x55);const _0x23e866=_0x2d2911[_0xbaa9aa(-0xf,-0x1c)](computeNextPhase,_0x371db1['phase']),_0x4b7414=PHASE_NAMES[_0x371db1[_0xbaa9aa(-0x29,-_0x5e8173._0x28024c)]]??_0x371db1[_0xbaa9aa(-_0x5e8173._0x279165,-_0x5e8173._0x57b225)],_0x5e01d6=PHASE_NAMES[_0x23e866]??_0x23e866,_0x1398e1={..._0x168f39[_0x28e682(_0x5e8173._0xafec9c,_0x5e8173._0x391591)]},_0x31eadb=_0x1398e1,_0x2b2db0={..._0x371db1};_0x2b2db0[_0xbaa9aa(-0x7d,-_0x5e8173._0x4ef515)]=_0x23e866,_0x2b2db0['currentOpe'+_0x28e682(0x404,0x3b7)]='',_0x2b2db0[_0x28e682(0x40f,_0x5e8173._0x3f080e)+'ll']='',_0x31eadb[_0x361961]=_0x2b2db0;function _0xbaa9aa(_0x1264db,_0x2d1863){return _0x36720f(_0x2d1863- -0x4a9,_0x1264db);}function _0x28e682(_0x4afa94,_0x58506b){return _0x5b782a(_0x4afa94-_0x7cb1ef._0x12a304,_0x58506b);}const _0x1a5c44=computeOverallPhase(_0x31eadb),_0x54f31e={..._0x168f39[_0xbaa9aa(-_0x5e8173._0x49a355,-_0x5e8173._0x5f152b)]};_0x54f31e[_0x28e682(0x41e,_0x5e8173._0x1e26a1)+'se']=_0x1a5c44;const _0x2af2a9={};_0x2af2a9[_0xbaa9aa(_0x5e8173._0xc4af70,-_0x5e8173._0x26e6c5)]=_0x54f31e,_0x2af2a9[_0xbaa9aa(_0x5e8173._0x55ec3f,_0x5e8173._0x595cf2)]=_0x31eadb,_0x2af2a9[_0xbaa9aa(-0x14,0x13)+_0x28e682(0x44f,0x454)]=_0x168f39[_0xbaa9aa(0x22,0x13)+_0x28e682(0x44f,0x47e)],await writeStateFile(_0x502a05,_0x2af2a9);const _0x10ba93=[];_0x10ba93[_0xbaa9aa(_0x5e8173._0x1b1762,_0x5e8173._0x2fea07)]('['+_0x361961+']\x20'+_0x4b7414+'\x20→\x20'+_0x5e01d6);if(_0x23e866===_0x28e682(0x413,0x40d)){if(_0x2d2911[_0xbaa9aa(-_0x5e8173._0x3ed6c6,-_0x5e8173._0x83f537)]===_0x2d2911[_0xbaa9aa(_0x5e8173._0x1820c8,-0x35)])_0x10ba93['push'](_0x28e682(0x3a2,0x3c0)+_0x361961+_0xbaa9aa(-0x74,-_0x5e8173._0x2be0e3));else return _0x2d2911[_0xbaa9aa(-_0x5e8173._0x10a2d7,-0x7)](_0x2938da,_0x5c540a[_0x28e682(0x408,0x3d0)]-(0xc*0x17f+0x2*0x96b+-0x49*0x81))?_0x366f34[_0x2d2911[_0xbaa9aa(0x40,0x25)](_0x532904,0xa27+0x7*0x4f+0x17*-0x89)]:_0x28e682(_0x5e8173._0x2d68a6,_0x5e8173._0x291b92);}return _0x10ba93[_0x28e682(_0x5e8173._0x2d3454,_0x5e8173._0x2ed223)]('\x0a');}function computeNextPhase(_0x10f1d1){const _0xef29c1={_0x23c5dc:0x388,_0x177bb4:0x2fa,_0x430453:0x352,_0x4605cf:0x35b,_0x18eea5:0x331,_0x13b26a:0x145,_0x53a38b:0x136,_0x13594e:0xd9,_0x4670be:0x6b,_0xd4dfa8:0xf6,_0x1c8dfc:0x346,_0x4390c7:0xbe,_0x213447:0x2ec,_0x35889a:0x13b,_0x3190ed:0x30f,_0x118d29:0x2ed,_0x57c941:0x343,_0x3f8974:0x339,_0x430c45:0x306,_0x109fa5:0x12b},_0x3a5af7={};_0x3a5af7[_0x15b745(0x347,_0xef29c1._0x23c5dc)]=function(_0x167875,_0x4f22fb){return _0x167875-_0x4f22fb;},_0x3a5af7[_0x15b745(_0xef29c1._0x177bb4,_0xef29c1._0x430453)]=function(_0x1d12a9,_0x43d092){return _0x1d12a9+_0x43d092;},_0x3a5af7[_0x15b745(_0xef29c1._0x4605cf,_0xef29c1._0x18eea5)]=function(_0x4ecccc,_0x3872cf){return _0x4ecccc===_0x3872cf;},_0x3a5af7[_0x4b9cf2(-_0xef29c1._0x13b26a,-0x120)]='idle';function _0x4b9cf2(_0x1ea67c,_0x525896){return _0x5b782a(_0x1ea67c- -0xd,_0x525896);}_0x3a5af7[_0x4b9cf2(-_0xef29c1._0x53a38b,-0x10c)]=function(_0x1099e4,_0x26390b){return _0x1099e4===_0x26390b;},_0x3a5af7[_0x15b745(0x30f,0x2e2)]=_0x4b9cf2(-0xec,-0xb4),_0x3a5af7[_0x4b9cf2(-0x12b,-_0xef29c1._0x13594e)]='completed';const _0x384b75=_0x3a5af7,_0x23593b=PHASES[_0x4b9cf2(-0xbe,-_0xef29c1._0x4670be)](_0x10f1d1);if(_0x23593b>=0x1052+-0x1a8*-0x4+-0x16f2)return _0x23593b<_0x384b75['rLuLY'](PHASES[_0x4b9cf2(-_0xef29c1._0xd4dfa8,-0x9f)],0x7*0xe1+-0xeef*0x1+0x8c9)?PHASES[_0x23593b+(0x4d*-0x1f+0x10*-0x227+0x2bc4)]:_0x15b745(_0xef29c1._0x1c8dfc,0x337);const _0x5259f2=PIPELINE_PHASES[_0x4b9cf2(-_0xef29c1._0x4390c7,-0x70)](_0x10f1d1);if(_0x5259f2>=0x2*-0x1e2+-0x6*-0x9d+-0x2*-0xb)return _0x5259f2<PIPELINE_PHASES['length']-(0xc47+-0x673*-0x1+0x1*-0x12b9)?PIPELINE_PHASES[_0x384b75['uYfJs'](_0x5259f2,-0x11*-0x190+0x6*-0x5fb+-0x1*-0x953)]:'completed';function _0x15b745(_0x2006db,_0x1cb16f){return _0x36720f(_0x2006db- -0x16d,_0x1cb16f);}if(_0x384b75[_0x15b745(_0xef29c1._0x4605cf,0x31f)](_0x10f1d1,_0x384b75[_0x15b745(_0xef29c1._0x213447,0x294)]))return _0x384b75[_0x4b9cf2(-0x136,-_0xef29c1._0x35889a)](_0x384b75[_0x15b745(_0xef29c1._0x3190ed,_0xef29c1._0x118d29)],_0x384b75['GJVfW'])?PHASES[0x1*0x99f+-0x1118+-0x779*-0x1]:_0x15b745(_0xef29c1._0x57c941,_0xef29c1._0x3f8974)+_0x15b745(0x2f8,_0xef29c1._0x430c45);return _0x384b75[_0x4b9cf2(-_0xef29c1._0x109fa5,-0xe0)];}export async function newProject(_0xf8b5b3,_0x264fca){const _0x3e5962={_0x58aaf9:0x37e,_0x4a3c33:0x39e,_0x1f7b51:0x38f,_0x2d7d51:0x2a0,_0x3fb75d:0x2b9,_0x1a420e:0x243,_0x27945d:0x28b,_0x3cbd4c:0x277,_0x358675:0x36d,_0x4f10f4:0x3a8,_0x159c9f:0x391,_0x3132db:0x35a,_0x5dd0af:0x3c4,_0x5514ee:0x323,_0x2b571f:0x2ad,_0x324883:0x2bb,_0x3e34ab:0x2fa,_0x4cd935:0x32f,_0x32b702:0x3c3,_0x5ccbed:0x3dc,_0x22c642:0x250},_0x5e916f={_0x35011:0x364},_0x493bea={'TCphp':function(_0x2e292a,_0x5ec974,_0x1e2a5f){return _0x2e292a(_0x5ec974,_0x1e2a5f);},'itHat':function(_0x3ad659,_0x36a4dd,_0x392413){return _0x3ad659(_0x36a4dd,_0x392413);},'MLEAL':function(_0x39e7ee){return _0x39e7ee();},'BbxcV':_0x20baf4(0x26b,0x289),'QGLoT':'\x20→\x20'},_0x3342b2=_0x493bea[_0x50aebb(_0x3e5962._0x58aaf9,0x350)](resolve,_0xf8b5b3,'..');if(!existsSync(_0x3342b2)){const _0x464c77={};_0x464c77[_0x50aebb(_0x3e5962._0x4a3c33,_0x3e5962._0x1f7b51)]=!![],_0x493bea['itHat'](mkdirSync,_0x3342b2,_0x464c77);}const _0x3e5061=_0x493bea['MLEAL'](generateAgentId),_0x2ef08d={};_0x2ef08d[_0x20baf4(0x295,_0x3e5962._0x2d7d51)]=_0x3e5061,_0x2ef08d[_0x20baf4(_0x3e5962._0x3fb75d,0x280)]=null,_0x2ef08d['childIds']=[],_0x2ef08d['phase']=_0x493bea[_0x50aebb(0x3b1,0x3f2)],_0x2ef08d[_0x20baf4(_0x3e5962._0x1a420e,_0x3e5962._0x27945d)+_0x20baf4(_0x3e5962._0x3cbd4c,0x2ac)]='',_0x2ef08d['currentSki'+'ll']='';const _0x45a9a0=_0x2ef08d;function _0x20baf4(_0x5ab437,_0x14a7aa){return _0x5b782a(_0x5ab437-_0x5e916f._0x35011,_0x14a7aa);}const _0x4b1b1a={};_0x4b1b1a['name']=_0x264fca,_0x4b1b1a['currentPha'+'se']=_0x50aebb(_0x3e5962._0x358675,0x39c);const _0x3b3f72={};_0x3b3f72[_0x3e5061]=_0x45a9a0;const _0xd6e677={};_0xd6e677[_0x20baf4(0x255,0x29f)]=_0x4b1b1a,_0xd6e677[_0x50aebb(_0x3e5962._0x4f10f4,_0x3e5962._0x58aaf9)]=_0x3b3f72,_0xd6e677[_0x50aebb(_0x3e5962._0x159c9f,_0x3e5962._0x3132db)+_0x50aebb(_0x3e5962._0x5dd0af,0x3eb)]=null,await _0x493bea[_0x50aebb(0x361,_0x3e5962._0x5514ee)](writeStateFile,_0xf8b5b3,_0xd6e677);const _0x3ba8cb=[];_0x3ba8cb[_0x20baf4(0x2c1,0x2f7)]('🆕\x20项目已创建:\x20'+_0x264fca),_0x3ba8cb['push'](_0x20baf4(_0x3e5962._0x2b571f,_0x3e5962._0x324883)+_0x3342b2),_0x3ba8cb[_0x20baf4(0x2c1,_0x3e5962._0x3e34ab)](_0x50aebb(0x346,0x388)+_0x50aebb(_0x3e5962._0x4cd935,0x37f)+_0x3e5061),_0x3ba8cb[_0x50aebb(_0x3e5962._0x32b702,_0x3e5962._0x5ccbed)]('\x20\x20\x20阶段序列:\x20'+PIPELINE_PHASES[_0x20baf4(0x2a9,0x263)](_0x4cd050=>PHASE_NAMES[_0x4cd050]??_0x4cd050)['join'](_0x493bea[_0x20baf4(0x23c,_0x3e5962._0x22c642)]));function _0x50aebb(_0x254e46,_0x42e33a){return _0x36720f(_0x254e46- -0x12b,_0x42e33a);}return _0x3ba8cb[_0x20baf4(0x221,0x267)]('\x0a');}export async function updateOperation(_0x4204a5,_0x656b,_0x1c7c7d,_0x519de3){const _0x2f4fdb={_0x1f3e78:0x487,_0x379244:0x490,_0x446fd9:0x204,_0x28e538:0x22c,_0x5cc160:0x26a,_0x2edb8b:0x4a1,_0x110194:0x1ec,_0x148d88:0x1e5,_0x52e102:0x1d4,_0x295b3b:0x434,_0x14c9a6:0x3f3,_0x28468c:0x46e,_0x433f5e:0x445},_0x4ef475={'WSVLo':'⚠️\x20\x20状态文件不存在','LuLTO':function(_0x425e13,_0x4ff682,_0x5d8997){return _0x425e13(_0x4ff682,_0x5d8997);}},_0x46e163=await readStateFile(_0x4204a5);if(!_0x46e163)return _0x4ef475[_0x5118cb(_0x2f4fdb._0x1f3e78,_0x2f4fdb._0x379244)];const _0x2abba3=_0x46e163[_0x5118cb(0x4a1,0x47b)][_0x656b];if(!_0x2abba3)return _0x1d13ed(-_0x2f4fdb._0x446fd9,-_0x2f4fdb._0x28e538)+_0x656b+('\x20不存在于\x20stat'+_0x1d13ed(-_0x2f4fdb._0x5cc160,-0x246));function _0x5118cb(_0x369c37,_0x5ae6db){return _0x5b782a(_0x369c37-0x55f,_0x5ae6db);}const _0x10127f={..._0x46e163[_0x5118cb(_0x2f4fdb._0x2edb8b,0x4b3)]},_0x352fd7=_0x10127f,_0x5e2fe5={..._0x2abba3};_0x5e2fe5[_0x5118cb(0x43e,0x42c)+_0x1d13ed(-0x1de,-_0x2f4fdb._0x110194)]=_0x1c7c7d,_0x5e2fe5['currentSki'+'ll']=_0x519de3,_0x352fd7[_0x656b]=_0x5e2fe5;const _0x3066c2={};_0x3066c2[_0x1d13ed(-_0x2f4fdb._0x148d88,-0x20e)]=_0x46e163['project'],_0x3066c2[_0x5118cb(0x4a1,0x4d2)]=_0x352fd7,_0x3066c2[_0x5118cb(0x48a,0x487)+'pshot']=_0x46e163[_0x1d13ed(-0x1a1,-_0x2f4fdb._0x52e102)+_0x1d13ed(-0x1e8,-0x1a1)],await _0x4ef475['LuLTO'](writeStateFile,_0x4204a5,_0x3066c2);function _0x1d13ed(_0x477d83,_0x597a60){return _0x5b782a(_0x597a60- -0xff,_0x477d83);}return _0x5118cb(_0x2f4fdb._0x295b3b,_0x2f4fdb._0x14c9a6)+_0x656b+_0x5118cb(_0x2f4fdb._0x28468c,_0x2f4fdb._0x433f5e)+_0x1c7c7d+'\x20('+_0x519de3+')';}export async function registerAgent(_0x32a643,_0xab4f23,_0x3fafde={}){const _0x289b02={_0x11fec7:0x2c1,_0x566e94:0x27c,_0x338dce:0x106,_0x2e6fce:0x25a,_0xe083ea:0x283,_0x432435:0x2a6,_0x3d904a:0x2a2,_0x1e2e69:0x307,_0x375481:0x2b5,_0xbc3e08:0xfe,_0xb834d7:0x75,_0x57f47e:0x9c,_0x26d2f4:0xf6,_0x2398e6:0x24c,_0x51a079:0x113,_0x5bf309:0x336,_0x362027:0x7e,_0x57e37a:0x10f,_0x1fc165:0xf7,_0x198206:0x118,_0x11a085:0x29e,_0xbea4ce:0x266,_0x29c358:0xba,_0x25980d:0x24c,_0x1b6b63:0xa6,_0x41d881:0x2bd,_0x46c16b:0x143,_0x48a260:0x2bb,_0x1b3e0e:0x291,_0x1c1794:0x24d,_0x54d232:0x290,_0x4c190b:0x318,_0x3e921a:0xb7,_0x1f163f:0x286,_0x37bbe7:0x126,_0x4d7271:0x33d,_0x1adfd0:0x2fc,_0x490aa6:0x10c,_0x1f36ce:0x2fc,_0x9013c1:0x2cc,_0x1c3574:0x2fc},_0x1a08f7={_0x1e4560:0x3c9},_0x5a5404={'cpbsl':_0x36350f(0x2e3,_0x289b02._0x11fec7),'NFUgc':_0x36350f(0x268,_0x289b02._0x566e94)+_0x3201e3(0xcd,_0x289b02._0x338dce)+_0x3201e3(0x9a,0xef),'ARXSe':function(_0x349083,_0x4399f5){return _0x349083(_0x4399f5);},'grnoS':function(_0x2bb9c3,_0x31ab70){return _0x2bb9c3===_0x31ab70;},'mHJHx':'exSMO','OkWNN':_0x36350f(_0x289b02._0x2e6fce,_0x289b02._0xe083ea),'ePrXl':_0x36350f(0x2ad,_0x289b02._0x432435),'JkmVA':function(_0x22997e,_0x2fff90){return _0x22997e===_0x2fff90;},'nFRQm':_0x36350f(_0x289b02._0x3d904a,0x260)};function _0x3201e3(_0x3f6894,_0x1b4575){return _0x36720f(_0x1b4575- -_0x1a08f7._0x1e4560,_0x3f6894);}const _0x252139=await _0x5a5404[_0x3201e3(0xae,0x8e)](readStateFile,_0x32a643);if(!_0x252139){if(_0x5a5404[_0x36350f(_0x289b02._0x1e2e69,_0x289b02._0x375481)](_0x5a5404[_0x3201e3(0x13a,0xfb)],_0x36350f(0x2d7,0x2f9))){for(const _0x229be7 of _0x46eb9c[_0x3201e3(0x134,_0x289b02._0xbc3e08)](_0x36ea27)){if(_0x139a6c[_0x229be7][_0x3201e3(0x5b,_0x289b02._0xb834d7)]!==_0x5a5404[_0x3201e3(_0x289b02._0x57f47e,_0x289b02._0x26d2f4)])return _0x3095f3[_0x229be7][_0x36350f(0x28e,_0x289b02._0x2398e6)];}return _0x5a5404[_0x3201e3(_0x289b02._0x51a079,_0x289b02._0x26d2f4)];}else return _0x5a5404[_0x36350f(0x330,0x2df)];}if(_0x252139[_0x36350f(_0x289b02._0x5bf309,0x2e1)][_0xab4f23])return _0x3201e3(0x81,_0x289b02._0x362027)!==_0x5a5404[_0x3201e3(_0x289b02._0x57e37a,_0x289b02._0x1fc165)]?_0x3201e3(0xcd,_0x289b02._0x198206)+_0xab4f23+_0x36350f(_0x289b02._0x11a085,_0x289b02._0xbea4ce):_0x5a5404['NFUgc'];const _0x53081f=_0x3fafde['phase']??_0x5a5404['ePrXl'],_0x21f874=_0x3fafde['parentId']??null,_0x5c77d1={};_0x5c77d1['agentId']=_0xab4f23,_0x5c77d1[_0x3201e3(0x102,0x11d)]=_0x21f874,_0x5c77d1[_0x3201e3(0xf8,_0x289b02._0x29c358)]=[];function _0x36350f(_0x2dc076,_0x317092){return _0x5b782a(_0x317092-0x39f,_0x2dc076);}_0x5c77d1[_0x36350f(0x247,_0x289b02._0x25980d)]=_0x53081f,_0x5c77d1['currentOpe'+_0x3201e3(_0x289b02._0x1b6b63,0xdb)]='',_0x5c77d1[_0x36350f(0x274,_0x289b02._0x41d881)+'ll']='';const _0x448ec6=_0x5c77d1,_0x5d0cd5={..._0x252139[_0x3201e3(_0x289b02._0x46c16b,0x10a)]};_0x5d0cd5[_0xab4f23]=_0x448ec6;const _0x55be02=_0x5d0cd5;if(_0x21f874&&_0x55be02[_0x21f874]){if(_0x5a5404['JkmVA']('imqWk',_0x5a5404[_0x3201e3(_0x289b02._0x338dce,0x127)])){const _0x189657=_0x193cf5[_0x2a1087[_0x36350f(_0x289b02._0x48a260,0x2f4)]];_0x4fc5c9[_0x50d77f[_0x3201e3(0x16e,0x11d)]]={..._0x189657,'childIds':_0x189657[_0x36350f(0x25c,_0x289b02._0x1b3e0e)][_0x36350f(0x217,_0x289b02._0x1c1794)](_0x3f9f1c=>_0x3f9f1c!==_0x239ef4)};}else{const _0x17c677=_0x55be02[_0x21f874];if(!_0x17c677['childIds'][_0x3201e3(0x79,0xb5)](_0xab4f23)){const _0x5aa215={..._0x17c677};_0x5aa215[_0x36350f(0x2c8,_0x289b02._0x1b3e0e)]=[..._0x17c677[_0x3201e3(0x9a,_0x289b02._0x29c358)],_0xab4f23],_0x55be02[_0x21f874]=_0x5aa215;}}}const _0x5aeaac={};_0x5aeaac[_0x36350f(_0x289b02._0x54d232,0x290)]=_0x252139['project'],_0x5aeaac[_0x36350f(_0x289b02._0x4c190b,0x2e1)]=_0x55be02,_0x5aeaac[_0x3201e3(_0x289b02._0x3e921a,0xf3)+_0x3201e3(0x100,0x126)]=_0x252139[_0x36350f(_0x289b02._0x1f163f,0x2ca)+_0x3201e3(0x119,_0x289b02._0x37bbe7)],await writeStateFile(_0x32a643,_0x5aeaac);const _0x1eec83=PHASE_NAMES[_0x53081f]??_0x53081f,_0x5f0219=[];_0x5f0219[_0x36350f(_0x289b02._0x4d7271,_0x289b02._0x1adfd0)](_0x3201e3(0xa6,0x88)+_0x3201e3(0xe6,_0x289b02._0x490aa6)+_0xab4f23),_0x5f0219[_0x36350f(_0x289b02._0x1f36ce,0x2fc)]('\x20\x20\x20阶段:\x20'+_0x1eec83);if(_0x21f874)_0x5f0219[_0x36350f(_0x289b02._0x9013c1,_0x289b02._0x1c3574)]('\x20\x20\x20父\x20Agent'+':\x20'+_0x21f874);return _0x5f0219['join']('\x0a');}export async function deregisterAgent(_0x530f34,_0xb50c8a){const _0x3a89b9={_0x1e330e:0x38,_0x276a0a:0x7f,_0x2583cf:0x3f,_0x5f354e:0xaf,_0x203444:0x3c,_0x1d81c7:0x1e,_0xd108d0:0x35,_0x5b9127:0x4d,_0x5f28cf:0x1f,_0x44c430:0x66,_0x34df1d:0x55,_0x371928:0x39,_0x4f98f0:0xa1,_0x19ebf3:0x1c,_0x4ef723:0x27,_0x1a8bf9:0xa9,_0x4baaba:0x5f,_0x52ad04:0x19},_0x369de3={_0x2c4624:0x4a2},_0x143cbd={_0x49ad57:0x51b};function _0xb1cafc(_0x381dc6,_0x41d23e){return _0x36720f(_0x41d23e- -_0x143cbd._0x49ad57,_0x381dc6);}const _0xb9431={'BdNmg':function(_0x188971,_0x3d055c){return _0x188971(_0x3d055c);},'tQlPN':_0x65f60e(-0x34,-_0x3a89b9._0x1e330e),'GWWUD':function(_0x411012,_0x31f165){return _0x411012>_0x31f165;},'reHtZ':function(_0x8c1a1d,_0x218626){return _0x8c1a1d(_0x218626);}},_0x22541e=await _0xb9431[_0x65f60e(-0x40,-0x2e)](readStateFile,_0x530f34);if(!_0x22541e)return _0xb9431[_0xb1cafc(-0x91,-_0x3a89b9._0x276a0a)];if(!_0x22541e[_0x65f60e(0x31,-0x16)][_0xb50c8a])return _0x65f60e(_0x3a89b9._0x2583cf,0x45)+_0xb50c8a+_0xb1cafc(-0xf9,-_0x3a89b9._0x5f354e);const _0x104836=_0x22541e[_0xb1cafc(-0x77,-0x48)][_0xb50c8a];function _0x65f60e(_0x42db2b,_0x421f87){return _0x36720f(_0x42db2b- -_0x369de3._0x2c4624,_0x421f87);}const _0x31fe78={..._0x22541e[_0x65f60e(0x31,0x7c)]},_0x3d281d=_0x31fe78;delete _0x3d281d[_0xb50c8a];if(_0x104836[_0x65f60e(0x44,_0x3a89b9._0x203444)]&&_0x3d281d[_0x104836[_0xb1cafc(-_0x3a89b9._0x1d81c7,-_0x3a89b9._0xd108d0)]]){const _0x18f849=_0x3d281d[_0x104836['parentId']];_0x3d281d[_0x104836[_0xb1cafc(-_0x3a89b9._0x5b9127,-_0x3a89b9._0xd108d0)]]={..._0x18f849,'childIds':_0x18f849[_0x65f60e(-_0x3a89b9._0x5f28cf,0x20)][_0x65f60e(-0x63,-_0x3a89b9._0x44c430)](_0x117035=>_0x117035!==_0xb50c8a)};}const _0x39b9ba=Object['keys'](_0x3d281d),_0x30f10a=_0xb9431['GWWUD'](_0x39b9ba[_0xb1cafc(-_0x3a89b9._0x34df1d,-0x73)],0x3*0xa2b+-0x3d3*-0x1+-0x2254)?_0xb9431[_0xb1cafc(-0x3f,-_0x3a89b9._0x371928)](computeOverallPhase,_0x3d281d):_0xb1cafc(-_0x3a89b9._0x4f98f0,-0x83),_0x2bf7e9={..._0x22541e[_0xb1cafc(-0x77,-0x99)]};_0x2bf7e9[_0x65f60e(_0x3a89b9._0x19ebf3,-0x26)+'se']=_0x30f10a;const _0x567edf={};return _0x567edf['project']=_0x2bf7e9,_0x567edf[_0xb1cafc(-0x7d,-0x48)]=_0x3d281d,_0x567edf['machineSna'+_0xb1cafc(-_0x3a89b9._0x4ef723,-0x2c)]=_0x22541e[_0xb1cafc(-_0x3a89b9._0x1a8bf9,-_0x3a89b9._0x4baaba)+_0xb1cafc(-0x49,-0x2c)],await writeStateFile(_0x530f34,_0x567edf),'✅\x20Agent\x20已注'+_0x65f60e(0x42,_0x3a89b9._0x52ad04)+_0xb50c8a;}export async function showProgress(_0xd2a10d){const _0x3e1d23={_0x1f4ae4:0x277,_0x351fc1:0x543,_0x4e37ef:0x4e6,_0x50252c:0x4ac,_0x228bfb:0x4a9,_0x32ee07:0x2af,_0x5ee324:0x497,_0x7a3c8b:0x26b,_0x174654:0x286,_0x11c574:0x271,_0x1bfe61:0x4da,_0x5809fb:0x2b7,_0x47ba8f:0x246,_0x3373e7:0x22f,_0x256a56:0x1d5,_0xcc3b16:0x50c,_0x229dee:0x21c,_0x2bf8cb:0x1f4,_0x46b333:0x4f8,_0x522238:0x4e1,_0x5ba0a8:0x424,_0x2f6cc2:0x2a3,_0x11cdf0:0x4e2,_0x26dab3:0x519,_0x334705:0x44e,_0x1f772a:0x4b7,_0x27bc6a:0x268,_0x371b22:0x2b9,_0x3c9b03:0x3fc,_0x31fd00:0x255,_0x4d2943:0x2a9,_0x4551f1:0x4d9,_0x3d02b2:0x2ad,_0x5b7341:0x470,_0x239a10:0x2c2,_0x3647d0:0x2f4,_0xe3674e:0x2cd,_0x1199c0:0x462,_0x4d76eb:0x487,_0x15a2a3:0x4aa,_0x407d17:0x494,_0x227680:0x486,_0x281623:0x469,_0x1d9002:0x277,_0x4e41be:0x222,_0x39aecc:0x299,_0x357f37:0x49f,_0x468c2a:0x304,_0x530a84:0x27c,_0xa1e3d4:0x475,_0x3b0038:0x41a,_0x51bce4:0x474,_0x3106a3:0x4ab,_0x5f530f:0x4ee,_0x24a615:0x4fd,_0x191a26:0x542,_0x4514e8:0x457,_0xbf5fb5:0x455,_0x287768:0x4a1,_0x2b81c5:0x461,_0x42f2b5:0x44a,_0xc8de53:0x49d,_0xbd1198:0x279,_0x32cd9b:0x4be,_0x16618f:0x2c2,_0x43bc16:0x472,_0x89fe66:0x458,_0x3a7bc2:0x273,_0x396cad:0x240,_0x29290c:0x2cd,_0x2062e:0x4c5,_0x3846ea:0x4ae,_0x57f948:0x4a5,_0x2cf330:0x256},_0x346db3={_0x1cef6f:0x365},_0x16eb9b={_0x3df1ff:0xf},_0x4c069f={};_0x4c069f[_0x2e50bc(0x490,0x47c)]=function(_0x5ec4c1,_0x491744){return _0x5ec4c1+_0x491744;},_0x4c069f[_0x55d1af(_0x3e1d23._0x1f4ae4,0x241)]=_0x2e50bc(0x4fb,_0x3e1d23._0x351fc1),_0x4c069f[_0x2e50bc(_0x3e1d23._0x4e37ef,_0x3e1d23._0x50252c)]=function(_0x50d6dc,_0x1dd986){return _0x50d6dc-_0x1dd986;},_0x4c069f[_0x2e50bc(0x49a,_0x3e1d23._0x228bfb)]=function(_0x33f755,_0x4acf53){return _0x33f755>_0x4acf53;};function _0x2e50bc(_0x41ea29,_0xad0afd){return _0x36720f(_0x41ea29-_0x16eb9b._0x3df1ff,_0xad0afd);}_0x4c069f[_0x55d1af(_0x3e1d23._0x32ee07,0x2d1)]=_0x2e50bc(_0x3e1d23._0x5ee324,0x49a),_0x4c069f[_0x55d1af(_0x3e1d23._0x7a3c8b,_0x3e1d23._0x174654)]='\x20\x20\x20Agent\x20I'+_0x55d1af(_0x3e1d23._0x11c574,0x225)+_0x2e50bc(_0x3e1d23._0x1bfe61,0x4de)+'\x20\x20\x20\x20\x20\x20|\x20操作'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x55d1af(_0x3e1d23._0x5809fb,0x2b2)+'工具',_0x4c069f[_0x55d1af(_0x3e1d23._0x47ba8f,0x240)]=function(_0x52dd25,_0x1b0f60){return _0x52dd25===_0x1b0f60;};function _0x55d1af(_0x24cb8d,_0x4fe57e){return _0x5b782a(_0x24cb8d-_0x346db3._0x1cef6f,_0x4fe57e);}_0x4c069f[_0x55d1af(_0x3e1d23._0x3373e7,_0x3e1d23._0x256a56)]=_0x2e50bc(0x4e3,_0x3e1d23._0xcc3b16),_0x4c069f[_0x55d1af(_0x3e1d23._0x229dee,_0x3e1d23._0x2bf8cb)]=_0x2e50bc(_0x3e1d23._0x46b333,_0x3e1d23._0x522238);const _0x6e0117=_0x4c069f,_0x47a576=await readStateFile(_0xd2a10d);if(!_0x47a576)return _0x2e50bc(0x47d,_0x3e1d23._0x5ba0a8)+_0x55d1af(_0x3e1d23._0x2f6cc2,0x286)+_0x2e50bc(0x4c7,0x495);const _0x5b4841=_0x47a576[_0x2e50bc(_0x3e1d23._0x11cdf0,_0x3e1d23._0x26dab3)],_0x3661c5=Object[_0x2e50bc(0x4d6,0x4a6)](_0x5b4841),_0x263099=_0x3661c5[_0x2e50bc(0x4b7,0x4a9)],_0x5cdac1=_0x3661c5[_0x2e50bc(_0x3e1d23._0x334705,0x42b)](_0x2f80e3=>_0x5b4841[_0x2f80e3]['phase']===_0x55d1af(0x287,0x2d2))[_0x2e50bc(_0x3e1d23._0x1f772a,0x49b)],_0x2533ff=_0x263099>-0x2489+0x1aff+0x4a*0x21?Math[_0x55d1af(_0x3e1d23._0x27bc6a,_0x3e1d23._0x371b22)](_0x5cdac1/_0x263099*(0x18b+0x15b0+0x16d7*-0x1)):0x1986+0x1532*-0x1+-0x115*0x4,_0x318735={};for(const _0x57fb39 of _0x3661c5){const _0x18ee98=_0x5b4841[_0x57fb39][_0x2e50bc(0x44d,_0x3e1d23._0x3c9b03)];_0x318735[_0x18ee98]=_0x6e0117[_0x55d1af(_0x3e1d23._0x31fd00,_0x3e1d23._0x4d2943)](_0x318735[_0x18ee98]??0x1*0x5e8+0x7*0x351+-0x429*0x7,0x1607+-0xb*0x11e+0x2*-0x4de);}const _0x44dc92=[];_0x44dc92[_0x2e50bc(0x4fd,0x4c8)](_0x2e50bc(_0x3e1d23._0x4551f1,0x523)+_0x47a576['project'][_0x2e50bc(0x45c,0x4b2)]),_0x44dc92[_0x55d1af(0x2c2,_0x3e1d23._0x3d02b2)](_0x2e50bc(_0x3e1d23._0x5b7341,0x495)+(PHASE_NAMES[_0x47a576['project']['currentPha'+'se']]??_0x47a576['project']['currentPha'+'se'])),_0x44dc92[_0x55d1af(_0x3e1d23._0x239a10,0x2f7)](_0x55d1af(0x2bc,_0x3e1d23._0x3647d0)+_0x47a576['version']),_0x44dc92[_0x55d1af(_0x3e1d23._0x239a10,_0x3e1d23._0xe3674e)](_0x2e50bc(_0x3e1d23._0x1199c0,0x427)+_0x47a576[_0x2e50bc(_0x3e1d23._0x4d76eb,_0x3e1d23._0x15a2a3)]),_0x44dc92['push'](_0x2e50bc(_0x3e1d23._0x407d17,_0x3e1d23._0x227680)+_0x2533ff+_0x2e50bc(0x4a1,_0x3e1d23._0x281623)+_0x5cdac1+'/'+_0x263099+_0x55d1af(0x2a0,0x28b)),_0x44dc92[_0x55d1af(0x2c2,0x2b1)](''),_0x44dc92['push'](_0x6e0117[_0x55d1af(_0x3e1d23._0x1d9002,_0x3e1d23._0x4e41be)]);for(const [_0x28db54,_0x155522]of Object['entries'](_0x318735)){const _0x368c0c=PHASE_NAMES[_0x28db54]??_0x28db54,_0x2fffe7='█'[_0x55d1af(0x299,_0x3e1d23._0x2f6cc2)](_0x155522)+'░'[_0x55d1af(_0x3e1d23._0x39aecc,0x275)](Math['max'](-0x1f90+-0x1cf*0x1+-0x215f*-0x1,_0x6e0117[_0x2e50bc(_0x3e1d23._0x4e37ef,_0x3e1d23._0x357f37)](_0x263099,_0x155522)));_0x44dc92[_0x55d1af(_0x3e1d23._0x239a10,_0x3e1d23._0x468c2a)](_0x55d1af(0x258,0x255)+_0x368c0c[_0x2e50bc(0x4ca,0x4f0)](-0x2*-0x493+-0xf5f+0x647)+'\x20'+_0x2fffe7+'\x20'+_0x155522);}_0x44dc92['push']('');if(_0x6e0117[_0x2e50bc(0x49a,0x4c7)](_0x3661c5[_0x55d1af(_0x3e1d23._0x530a84,0x229)],-0x1*-0x1089+0x194*-0x14+0xf07)){if(_0x6e0117[_0x55d1af(0x2af,0x2f1)]===_0x2e50bc(0x47e,_0x3e1d23._0xa1e3d4))_0x76104c['push'](_0x2e50bc(0x451,_0x3e1d23._0x3b0038)+_0x4491f7+_0x2e50bc(_0x3e1d23._0x51bce4,_0x3e1d23._0x3106a3));else{_0x44dc92['push'](_0x2e50bc(_0x3e1d23._0x5f530f,0x544)+'\x20详情:'),_0x44dc92[_0x55d1af(_0x3e1d23._0x239a10,0x2b4)](_0x6e0117[_0x2e50bc(0x4a6,0x4da)]),_0x44dc92[_0x2e50bc(_0x3e1d23._0x24a615,_0x3e1d23._0x191a26)](_0x2e50bc(0x472,0x457)+'-'[_0x2e50bc(0x4d4,0x4d7)](0x2*0xc75+0x255+0xc5*-0x23));for(const _0x3fc0e8 of _0x3661c5){if(_0x6e0117['ZGVkr'](_0x6e0117[_0x2e50bc(0x46a,0x474)],_0x6e0117[_0x2e50bc(_0x3e1d23._0x4514e8,_0x3e1d23._0xbf5fb5)]))return _0x2e50bc(0x4f0,_0x3e1d23._0x287768)+_0x4eb415+_0x2e50bc(0x467,_0x3e1d23._0x2b81c5);else{const _0x444f47=_0x5b4841[_0x3fc0e8],_0x59a5f6=PHASE_NAMES[_0x444f47[_0x2e50bc(0x44d,_0x3e1d23._0x42f2b5)]]??_0x444f47[_0x2e50bc(0x44d,_0x3e1d23._0xc8de53)],_0xc0ec89=_0x444f47[_0x2e50bc(0x47f,0x42a)+_0x55d1af(0x278,_0x3e1d23._0xbd1198)]||'-',_0x5a7d39=_0x444f47[_0x2e50bc(0x4be,_0x3e1d23._0x32cd9b)+'ll']||'-';_0x44dc92[_0x55d1af(_0x3e1d23._0x16618f,0x30f)](_0x2e50bc(_0x3e1d23._0x43bc16,_0x3e1d23._0x89fe66)+_0x3fc0e8['padEnd'](0x1134*0x1+0x19b0+-0x2ad2)+_0x55d1af(_0x3e1d23._0x3a7bc2,_0x3e1d23._0x396cad)+_0x59a5f6['padEnd'](-0x1924*0x1+-0x21ea+0x3b1c)+_0x55d1af(0x273,_0x3e1d23._0x29290c)+_0xc0ec89[_0x2e50bc(0x4ca,_0x3e1d23._0x2062e)](0xb3f+0x24f6+-0x3020)+_0x2e50bc(_0x3e1d23._0x3846ea,_0x3e1d23._0x57f948)+_0x5a7d39);}}}}return _0x44dc92[_0x55d1af(0x222,_0x3e1d23._0x2cf330)]('\x0a');}function _0x36720f(_0x4e6fa1,_0x1795e5){const _0x3387e1={_0x3db05f:0x34b};return _0x5c2b(_0x4e6fa1-_0x3387e1._0x3db05f,_0x1795e5);}export async function quickTask(_0x5542fd,_0x5b0ee8){const _0x27ddaa={_0x178134:0x38b,_0x514c32:0x3be,_0x3d80d2:0x3e0,_0x47b5ce:0x43b,_0x23878f:0x37c,_0x3e1553:0x398,_0xe3d2c6:0x399,_0x41a163:0xc4,_0x5c88cc:0x417,_0x53e2bf:0x3ed,_0x1145e2:0x3aa,_0x36ed0a:0x456,_0x4fd3e7:0x41d,_0x22a22a:0x23,_0x41d4ea:0x3d2,_0x3e8ce7:0x7a,_0x45803d:0xce,_0x369634:0xad,_0x3fe34f:0x7e},_0x6ac90e={_0x30b253:0x511};function _0x7a434d(_0x4ab630,_0x517ffb){return _0x36720f(_0x517ffb- -0xd1,_0x4ab630);}const _0x285c41={'lHRpn':function(_0x4f9673,_0x7a1295){return _0x4f9673!==_0x7a1295;},'pgTck':function(_0x519c67,_0xe7b371,_0x1e3a2e){return _0x519c67(_0xe7b371,_0x1e3a2e);},'KupTL':'quick-task','zCBHl':'quick'},_0x29e3d6=await readStateFile(_0x5542fd);if(!_0x29e3d6){if(_0x285c41[_0x7a434d(_0x27ddaa._0x178134,_0x27ddaa._0x514c32)](_0x7a434d(_0x27ddaa._0x3d80d2,0x38b),'SLsOe')){const _0x4c3146=_0x285c41['pgTck'](resolve,_0x5542fd,'..');if(!existsSync(_0x4c3146)){const _0x34ce9b={};_0x34ce9b[_0x7a434d(_0x27ddaa._0x47b5ce,0x3f8)]=!![],mkdirSync(_0x4c3146,_0x34ce9b);}}else return'['+_0x172c63+']\x20已完成全部阶段';}const _0xf2e35c=_0x29e3d6?.['project'][_0x7a434d(_0x27ddaa._0x23878f,0x37c)]??_0x285c41[_0x7a434d(_0x27ddaa._0x3e1553,0x39a)],_0x4cab90=_0x29e3d6?Object['keys'](_0x29e3d6['agents'])[0x1*0x1fc3+0xc99+-0xb17*0x4]??generateAgentId():generateAgentId(),_0x2d94ce={'agentId':_0x4cab90,'parentId':null,'childIds':[],'phase':_0x7a434d(0x366,0x39c),'currentOperation':_0x5b0ee8[_0x7a434d(0x334,0x38c)](-0x30d*-0x2+0x517+-0x23d*0x5,0x18b8+-0x1f02+-0x39*-0x1e),'currentSkill':_0x285c41[_0x7a434d(0x344,_0x27ddaa._0xe3d2c6)]},_0x462a6b={};_0x462a6b[_0x12b657(-0xcc,-_0x27ddaa._0x41a163)]=_0xf2e35c,_0x462a6b[_0x7a434d(_0x27ddaa._0x5c88cc,_0x27ddaa._0x53e2bf)+'se']='quick';const _0x58c001={};_0x58c001[_0x4cab90]=_0x2d94ce;const _0x180ce5={};_0x180ce5[_0x7a434d(0x406,0x3b1)]=_0x462a6b,_0x180ce5[_0x12b657(-0x1c,-0x3e)]=_0x58c001,_0x180ce5['machineSna'+_0x7a434d(0x45e,0x41e)]=null,await _0x285c41[_0x7a434d(0x3ce,_0x27ddaa._0x1145e2)](writeStateFile,_0x5542fd,_0x180ce5);const _0x3466a5=[];_0x3466a5['push'](_0x7a434d(0x370,0x38e));function _0x12b657(_0x160f72,_0x325281){return _0x36720f(_0x325281- -_0x6ac90e._0x30b253,_0x160f72);}return _0x3466a5[_0x7a434d(_0x27ddaa._0x36ed0a,_0x27ddaa._0x4fd3e7)]('\x20\x20\x20项目:\x20'+_0xf2e35c),_0x3466a5[_0x12b657(-0x5d,-_0x27ddaa._0x22a22a)](_0x7a434d(_0x27ddaa._0x41d4ea,0x3e9)+_0x5b0ee8),_0x3466a5[_0x12b657(-_0x27ddaa._0x3e8ce7,-0x23)](_0x12b657(-0x11e,-_0x27ddaa._0x45803d)+_0x4cab90),_0x3466a5['push']('\x20\x20\x20提示:\x20快速任'+'务不走完整\x20Pipe'+_0x12b657(-_0x27ddaa._0x369634,-_0x27ddaa._0x3fe34f)),_0x3466a5[_0x7a434d(0x381,0x37d)]('\x0a');}
1
+ function _0x33e7(){const _0x32475c=['BwfTs0e','5OQa5PYV6ycj5z6l','zMLSDgvY','zeXkCwe','77Ym6k+35ywi6l+q6kgmig5LDY0','tuvht00','u0TSr2y','zMLUza','4PQG77IpicdNIRBMGihMLOFKU7BKUi3LRzJLNkG','r2j4tK8','q1PUshq','y29TCgv0AxrVCG','DgLVBG','CMvJDxjZAxzL','8j+tIIdPOBNNM67NIRBMGie6ia','Aw5KzxHpzG','icaG55UU5B2voIa','qM9NvwS','rxLpy1G','ChjVAMvJDcdLKB3KU6q','xsdMK43KVzZLT7lMM7tMLRa6ia','renwEeu','qxruANi','CMvWzwf0','CgfYzw50swq','iow3SUwUJoAiKowfQoMdQoMyTUAUTq','veHoAg4','5yQF6io95yIg5P6q','qKP5r08','DxbKyxrLzef0','BgLUzE+8JoEBToAoPEAjP+IHJa','icaG54I2iefNzw50','tgrKD1O','icaG5B2t5yMn6zI25Q61oIa','BwfJAgLUzvnUyq','BwfW','mJeWntK1mhnutgXirG','Aw5JBhvKzxm','CgfKrw5K','4PQHiow/Q+MaN+s7U+wkOEAOOEw8JW','zKTUzxG','Avbjrhi','reXMthC','mZK3n2Dwwu92wq','EgThwM8','x2fUywX5C2LZ','r1LSCfa','CxvPy2S','BxzgCgq','qwXRC0O','CMvXDwLYzw1LBG','thLOBLK','y29TCgXLDgvK','D3jPDgu','icaG6Ag555UUoIa','AuDRvfO','rcaGicaGicaGia','iokgKIa','4PYfifS','q0XcAMm','y3vYCMvUDfbOyq','v3fZCxC','BMfTzq','ywDLBNrjza','BgvUz3rO','jsaO','mti3mtbVBuHtDwu','AKHjy0y','AwrSzq','icaG5yID5AEliefNzw4','zgvTyw5Kx2fUyq','4PQG77Ipicbbz2vUDca','AenvseK','ruDWDey','icaG8j+KLIbbz2vUDa','icaGqwDLBNqGsq','mJK1mM5RwKHPDa','mtKYnZiWwwzKthrO','y0DkAKS','Eg9urgm','C2TZy1C','icaGicaGicaGia','y3vYCMvUDfnRAq','4P2miefNzw50ia','ntu0nZe1BfPTBwHu','icaGicaGicb8ia','whvorKW','DK9ZtwW','wvHfEu8','AgPQA3q','icaG5O+q56s6oIdLV6VPGj/KU7S','icaG5PQc5PEGiefNzw4','CvHIEfO','rg1yv28','4PYfioAjGoACIsbbz2vUDa','zw50CMLLCW','icaG6zI25Q61oIa','ios4JEwTMowCQos6JIbZDgf0','4PYfiefNzw50iow3SUAZQa','xsdLT7lLROZMIjdLHAJPG6JPMlBMRRu','DdOG','6zYa5Rgc5yIg5P6q','icaG5A6m5OIq5BQMoIa','ChjVAMvJDa','ChnOB3q','zxHLy3v0zq','ihWG6zI25Q61icaGica','zfzQuui','y3vYCMvUDe9Wzq','DMvYC2LVBG','CvHrvNC','iefNzw50kq','y2HPBgrjzhm','C2XPy2u','nu1cy3zPyW','AM9PBG','nJy2AwHJzfL3','r1n0zve','zs5QC29U','CgHHC2u','icaG5lU75yQHoIa','svzLA2i','ChvZAa','cUkCHsbbz2vUDca','DMvYAwz5','ndzcrKzzDeq','A3rmtwO','A2v5CW','wfvwvKS','ihWG','5yQH5lIn6lwW5A6m5Pw0ifbPCgu','wvDWEKW','DgvJAf9ZzwXLyW','56UE5zob5yIg5P6q','icaG','oduXmdKYuhL0BLHS','DxrMltG','C0zHA28','ve5osKi','ioIVPUAdHtO','6zsaoIa','ywDLBNrZ','qwrtrLq','CgfYC2u','DvPZueS','BNb4yuW','vevxAuG','wNrqreu','EgLAv3y','icaGicaGFcdMK43KVzW','reHeyxq','icaG5PU05PAW5PE26zE0oIa','DfHtB0y','rwHLD0m','iow3SUwTMowCQo+8JoI3S+I/H+AZQowgJa','icaG8j+tIcdPMlBMRRxLIiBLUim6','zgLZy3vZCW','y0TWuKq','CMvHza','ndCXmunKrg1wwa','8j+gLsdPOBNNM67LT7lLIjVLU7O6ia','5yAmoIa','CMf0Aw9U','vwjgt1y'];_0x33e7=function(){return _0x32475c;};return _0x33e7();}(function(_0x223754,_0x2f3d95){const _0x307cc3={_0x955d0f:0x458,_0x2becd0:0x3ca,_0x382049:0x495,_0x4d19e7:0x429,_0x271a11:0x3ef,_0x1937b0:0x3c6,_0x5a7afe:0x3da,_0x1ac7a8:0x23a,_0x5ad4de:0x23f,_0x21f9ef:0x20f,_0x2baea9:0x213,_0x5dc2b7:0x1a4,_0x7ffff6:0x464,_0x198486:0x44e,_0x5881d1:0x451,_0xee0f73:0x430},_0x3631e8={_0x10273e:0x240},_0x44d01b={_0x341ccc:0x3d6};function _0x4a27b4(_0x632efa,_0x23cf29){return _0x31e7(_0x632efa- -_0x44d01b._0x341ccc,_0x23cf29);}function _0x754bc6(_0x4f276e,_0x333730){return _0x31e7(_0x333730-_0x3631e8._0x10273e,_0x4f276e);}const _0xb95a3d=_0x223754();while(!![]){try{const _0x534774=parseInt(_0x754bc6(_0x307cc3._0x955d0f,0x437))/(-0x1567*-0x1+0x6cb*0x2+0x117e*-0x2)*(parseInt(_0x754bc6(_0x307cc3._0x2becd0,0x3e5))/(0x5*0x2e9+-0x2259+0x4e*0x41))+parseInt(_0x754bc6(_0x307cc3._0x382049,0x460))/(0x2659+-0x14f*0x16+0xd*-0xbc)+-parseInt(_0x754bc6(_0x307cc3._0x4d19e7,_0x307cc3._0x271a11))/(0x19d9*-0x1+-0x13*-0x17d+-0x26a)*(-parseInt(_0x754bc6(_0x307cc3._0x1937b0,_0x307cc3._0x5a7afe))/(-0x1b64+-0x5*-0x26a+0xf57))+parseInt(_0x4a27b4(-_0x307cc3._0x1ac7a8,-_0x307cc3._0x5ad4de))/(0x40c+-0xbe9+0x7e3*0x1)*(-parseInt(_0x4a27b4(-_0x307cc3._0x21f9ef,-_0x307cc3._0x2baea9))/(0x2*0xa1+-0x181+0x46))+parseInt(_0x754bc6(0x43a,0x459))/(-0x1a6*0xc+0x7ec+0xbe4)+parseInt(_0x4a27b4(-0x1be,-_0x307cc3._0x5dc2b7))/(-0x11be+0x3*-0x2bb+0x19f8)*(-parseInt(_0x754bc6(_0x307cc3._0x7ffff6,_0x307cc3._0x198486))/(0x7f5+0x5*-0x4a2+0x3*0x515))+parseInt(_0x754bc6(_0x307cc3._0x5881d1,_0x307cc3._0xee0f73))/(0x2572+0x1*-0xe5+0x2*-0x1241);if(_0x534774===_0x2f3d95)break;else _0xb95a3d['push'](_0xb95a3d['shift']());}catch(_0x49a4d8){_0xb95a3d['push'](_0xb95a3d['shift']());}}}(_0x33e7,-0xad94+-0x172c7+-0x1*-0x560c5));import{existsSync,readFileSync,mkdirSync}from'node:fs';import{resolve}from'node:path';import{StateFileManager}from'./persistence/stateFile.js';import{PHASES,PIPELINE_PHASES}from'./types/index.js';import{generateAgentId}from'./utils/id.js';function _0x159861(_0x9b3f96,_0x485ae5){return _0x31e7(_0x9b3f96-0xb5,_0x485ae5);}const _0x30cb70={};_0x30cb70[_0x3fca42(0x4a8,0x463)+'t_analysis']=_0x159861(0x242,0x27c),_0x30cb70[_0x3fca42(0x443,0x477)+'lysis']=_0x159861(0x242,0x292),_0x30cb70[_0x159861(0x28c,0x2b1)+_0x159861(0x2ae,0x2f4)]=_0x3fca42(0x453,0x412),_0x30cb70['feature_an'+'alysis']=_0x159861(0x29c,0x291),_0x30cb70[_0x3fca42(0x44f,0x411)+_0x3fca42(0x47b,0x43d)]=_0x159861(0x282,0x2a3),_0x30cb70[_0x3fca42(0x45b,0x429)]='讨论',_0x30cb70['plan']='规划',_0x30cb70[_0x159861(0x246,0x22f)]='执行',_0x30cb70[_0x159861(0x259,0x2a6)]='验证';const PHASE_NAMES=_0x30cb70,MAX_RETRIES=0x2*-0xa57+0x53*0x1+-0x2*-0xa30;async function readStateFile(_0x2d8b0a){if(!existsSync(_0x2d8b0a))return null;const _0x3d97a3=new StateFileManager(_0x2d8b0a);return _0x3d97a3['read']();}function _0x3fca42(_0x5bb85a,_0x5647d2){const _0x3eefee={_0x3fbbc2:0x265};return _0x31e7(_0x5647d2-_0x3eefee._0x3fbbc2,_0x5bb85a);}async function writeStateFile(_0x362741,_0x2c6ea1){const _0x188c26={_0x192203:0xcf,_0x12283c:0x68,_0x35b108:0xb3,_0x170612:0x2b,_0x4bdab0:0xb4,_0x525115:0x133,_0x4ffd24:0xeb,_0x329335:0x38,_0x4b63be:0x72,_0x4eeb58:0x21,_0x11092b:0x42,_0x52bcb7:0x6d},_0x3e2f21={_0xa13b87:0x41e},_0x1a2f63={};_0x1a2f63[_0x443d81(0xd5,_0x188c26._0x192203)]='cGJjK',_0x1a2f63['AlksJ']=function(_0x1a64f7,_0x420f80){return _0x1a64f7===_0x420f80;};function _0x443d81(_0x123d9d,_0x712292){return _0x3fca42(_0x123d9d,_0x712292- -0x377);}function _0x2e621c(_0x553371,_0x187faa){return _0x3fca42(_0x187faa,_0x553371- -_0x3e2f21._0xa13b87);}_0x1a2f63[_0x443d81(_0x188c26._0x12283c,_0x188c26._0x35b108)]='uFhVy';const _0x502035=_0x1a2f63;for(let _0x5cc92c=-0x9df*0x1+-0x763+0x1142;_0x5cc92c<MAX_RETRIES;_0x5cc92c++){if(_0x443d81(0x112,0x108)!==_0x502035['DCVxE']){const _0x37ddd7=_0x2f4262[_0x5a0231[_0x2e621c(_0x188c26._0x170612,-0x26)]];_0x382858[_0x43fc34['parentId']]={..._0x37ddd7,'childIds':_0x37ddd7[_0x2e621c(-0x21,-0x2b)]['filter'](_0x319288=>_0x319288!==_0x50934c)};}else try{const _0x4fe235=new StateFileManager(_0x362741);await _0x4fe235[_0x443d81(0x106,_0x188c26._0x4bdab0)](),await _0x4fe235[_0x443d81(0xaf,0xef)](_0x2c6ea1);return;}catch(_0x98348f){if(_0x502035[_0x443d81(_0x188c26._0x525115,_0x188c26._0x4ffd24)](_0x502035['cKpRD'],_0x502035['cKpRD'])){if(_0x98348f instanceof Error&&_0x98348f['message'][_0x2e621c(_0x188c26._0x329335,_0x188c26._0x4b63be)]('乐观锁冲突')&&_0x5cc92c<MAX_RETRIES-(0x65e+-0x1*0x3d1+-0xa3*0x4)){await new Promise(_0x414ced=>setTimeout(_0x414ced,0x153e+-0xfb7+-0x555+Math['random']()*(0x29e*-0x4+0x21c1*0x1+-0x16e5)));continue;}throw _0x98348f;}else{const _0x453591={..._0x1f8ae7};_0x453591[_0x2e621c(-_0x188c26._0x4eeb58,-_0x188c26._0x11092b)]=[..._0x7d1828[_0x443d81(_0x188c26._0x52bcb7,0x86)],_0x38247e],_0x4ef9f8[_0x494589]=_0x453591;}}}}function computeOverallPhase(_0x26f1d5){const _0xb005e1={_0x75baa2:0x371,_0x15b63d:0x543,_0x3d592f:0x39e,_0x1fb7bc:0x50d,_0xa96e07:0x519,_0x17fa8b:0x38a},_0x46401c={_0x4b6e6e:0x2b1},_0x1f133e={};function _0x3ca5d2(_0x438398,_0x28a46b){return _0x159861(_0x438398-_0x46401c._0x4b6e6e,_0x28a46b);}_0x1f133e[_0x85444c(0x357,_0xb005e1._0x75baa2)]=function(_0x268d7e,_0x4b4a0c){return _0x268d7e!==_0x4b4a0c;},_0x1f133e[_0x3ca5d2(_0xb005e1._0x15b63d,0x57f)]=_0x85444c(_0xb005e1._0x3d592f,0x36b);const _0x55fbe7=_0x1f133e;for(const _0x37b539 of Object[_0x3ca5d2(_0xb005e1._0x1fb7bc,_0xb005e1._0xa96e07)](_0x26f1d5)){if(_0x55fbe7['npxaL'](_0x26f1d5[_0x37b539]['phase'],_0x55fbe7[_0x85444c(0x37b,_0xb005e1._0x17fa8b)]))return _0x26f1d5[_0x37b539]['phase'];}function _0x85444c(_0x55566b,_0x573dd5){return _0x3fca42(_0x573dd5,_0x55566b- -0xc7);}return'completed';}export async function getStatus(_0x23096e){const _0x1df636={_0x6eae1d:0x526,_0x2d486c:0x516,_0x262992:0x157,_0x3f74ac:0x17a,_0xf77485:0x1cb,_0x5737d8:0x490,_0x69d1e4:0x18d,_0xf42432:0x51f,_0x2aad4a:0x540,_0x72b8be:0x142,_0x56d265:0x4ac,_0x3b3325:0x4d6,_0x11515e:0x4f1,_0x5acaf1:0x189,_0x15d020:0x143,_0x2b86de:0x4be,_0x883171:0x50b,_0x16fbbf:0x4c2,_0x438d7a:0x50c,_0x4b7512:0x151,_0x5c2ba8:0x168,_0x4c74e8:0x544,_0x17548c:0x52d,_0x3154b6:0x4c8,_0x4f6aef:0x11a,_0x57d4dd:0x53e,_0x4c33c0:0x58f,_0x39d493:0x178,_0x539d5e:0x4b9,_0x5d829e:0x4cb,_0x15f8f2:0x1b7,_0x557eee:0x1a4,_0x55e2db:0x132,_0x23a89a:0x4d4,_0x4ef2bd:0x502,_0x5603c7:0x1bd,_0xbc65ef:0x538,_0x27b2a8:0x515,_0x2cba35:0x4dd,_0x30c6cc:0x18c,_0x55e866:0x180,_0x24fc10:0x539,_0x37d364:0x13f,_0x6d3cb:0x4ab,_0x428a13:0x4bd,_0x3d930e:0x4b9,_0x235a37:0x192,_0xfe7c5f:0x16c,_0x4dc5d4:0x509,_0x2d76bb:0x4c0,_0xb2cf39:0x4f0},_0x381c1d={_0x144e2d:0xb2},_0xe6a0c4={_0xd18015:0x2c5},_0x5538aa={'LyhnY':function(_0x5a3ea3,_0x14f7f6,_0x40b006){return _0x5a3ea3(_0x14f7f6,_0x40b006);},'Hqtyh':_0x468991(0x150,0x177),'SKlGf':function(_0x4ee902,_0x248d1c){return _0x4ee902===_0x248d1c;},'iPIDr':function(_0x4feee0,_0x3f1f59){return _0x4feee0!==_0x3f1f59;},'AdSFT':'sFako','LddwZ':function(_0x1fa388,_0x2720f1){return _0x1fa388+_0x2720f1;},'xiZWv':'\x20\x20\x20'};if(!existsSync(_0x23096e))return _0x54635d(0x4eb,_0x1df636._0x6eae1d)+',请先运行\x20new-'+_0x54635d(0x4f6,0x508);function _0x468991(_0x1e3c87,_0x111a8a){return _0x3fca42(_0x111a8a,_0x1e3c87- -_0xe6a0c4._0xd18015);}const _0x4892e2=_0x5538aa[_0x54635d(_0x1df636._0x2d486c,0x526)](readFileSync,_0x23096e,_0x5538aa['Hqtyh']),_0x13e525=JSON[_0x468991(_0x1df636._0x262992,0x127)](_0x4892e2),_0x494e01=[];_0x494e01['push'](_0x468991(_0x1df636._0x3f74ac,_0x1df636._0xf77485)+_0x13e525[_0x468991(0x12f,0x15e)]['name']),_0x494e01[_0x54635d(0x4b9,_0x1df636._0x5737d8)](_0x468991(_0x1df636._0x69d1e4,0x1a7)+(PHASE_NAMES[_0x13e525[_0x468991(0x12f,0xf5)][_0x54635d(_0x1df636._0xf42432,_0x1df636._0x2aad4a)+'se']]??_0x13e525[_0x54635d(0x4a6,0x4b2)]['currentPha'+'se'])),_0x494e01[_0x468991(_0x1df636._0x72b8be,0x185)]('\x20\x20\x20版本:\x20'+_0x13e525[_0x54635d(_0x1df636._0x56d265,0x497)]),_0x494e01[_0x54635d(0x4b9,0x4f4)](_0x54635d(_0x1df636._0x3b3325,_0x1df636._0x11515e)+_0x13e525[_0x468991(_0x1df636._0x5acaf1,_0x1df636._0x15d020)]);const _0x227c03=_0x13e525['agents'],_0xa772a4=Object[_0x54635d(_0x1df636._0x2b86de,_0x1df636._0x883171)](_0x227c03);function _0x54635d(_0x55151d,_0x19e3a4){return _0x3fca42(_0x19e3a4,_0x55151d-_0x381c1d._0x144e2d);}if(_0x5538aa[_0x54635d(0x4e9,_0x1df636._0x16fbbf)](_0xa772a4['length'],0x961*-0x2+-0xb2b*0x1+0x2f*0xa3))return _0x5538aa[_0x54635d(_0x1df636._0x438d7a,0x4fb)](_0x468991(_0x1df636._0x4b7512,_0x1df636._0x5c2ba8),_0x5538aa[_0x468991(0x156,0x12d)])?_0x54635d(0x536,0x518)+_0x2a56ec+(_0x54635d(_0x1df636._0x4c74e8,_0x1df636._0x17548c)+_0x54635d(0x4b5,_0x1df636._0x3154b6)):(_0x494e01[_0x468991(0x142,_0x1df636._0x4f6aef)](_0x54635d(_0x1df636._0x57d4dd,_0x1df636._0x4c33c0)+'t\x20记录'),_0x494e01['join']('\x0a'));_0x494e01[_0x468991(0x142,_0x1df636._0x39d493)](''),_0x494e01[_0x54635d(_0x1df636._0x539d5e,_0x1df636._0x5d829e)](_0x468991(_0x1df636._0x15f8f2,0x1c4)+_0x468991(_0x1df636._0x557eee,0x17a)+_0x468991(_0x1df636._0x55e2db,0xf7)+_0x54635d(_0x1df636._0x23a89a,_0x1df636._0x4ef2bd)+_0x468991(_0x1df636._0x5603c7,0x1fc)+_0x54635d(_0x1df636._0xbc65ef,_0x1df636._0x27b2a8)+'工具'),_0x494e01[_0x54635d(0x4b9,_0x1df636._0x2cba35)](_0x5538aa[_0x468991(_0x1df636._0x30c6cc,_0x1df636._0x55e866)](_0x5538aa[_0x468991(0x15c,0x11d)],'-'[_0x54635d(0x4fa,_0x1df636._0x24fc10)](0x100d*-0x1+-0x5*-0x653+0x7*-0x22e)));for(const _0x19cd43 of _0xa772a4){const _0x150e7f=_0x227c03[_0x19cd43],_0x4a69a7=PHASE_NAMES[_0x150e7f[_0x468991(_0x1df636._0x37d364,0x17c)]]??_0x150e7f['phase'],_0x59cef5=_0x150e7f[_0x54635d(_0x1df636._0x6d3cb,_0x1df636._0x428a13)+'ration']||'-',_0x1dbbc3=_0x150e7f['currentSki'+'ll']||'-';_0x494e01[_0x54635d(_0x1df636._0x3d930e,0x4ec)]('\x20\x20\x20'+_0x19cd43[_0x468991(_0x1df636._0x235a37,_0x1df636._0xfe7c5f)](-0x1*-0x500+-0x3b*0xa3+0xf*0x22d)+'\x20|\x20'+_0x4a69a7[_0x54635d(_0x1df636._0x4dc5d4,_0x1df636._0x2aad4a)](0x26f6+-0x1959+-0xd8f)+_0x54635d(0x4c0,0x4ad)+_0x59cef5[_0x54635d(0x509,0x535)](-0x83*-0x9+0x1675+-0x1afb*0x1)+_0x54635d(_0x1df636._0x2d76bb,_0x1df636._0xb2cf39)+_0x1dbbc3);}return _0x494e01['join']('\x0a');}export async function advancePhase(_0x10b10f,_0x21d92f){const _0x50e7c0={_0x4c51e2:0x2ea,_0x2560a1:0x319,_0x32fab4:0x2fa,_0x2492b7:0x31f,_0x5a1262:0x35b,_0x4d0ab7:0x34a,_0x5d13f0:0x122,_0x59374d:0x159,_0x54415f:0x18d,_0x2e32db:0x1b0,_0x3452cb:0xfb,_0x5baab0:0x18a,_0x2d84b6:0x15e,_0x355e53:0xcd,_0x2a26a4:0x11e,_0x296253:0x300,_0xe6254f:0x2f0,_0x51a1c0:0x348,_0x1cf323:0x13e,_0x1856f7:0x29d,_0x2d327c:0x2ef,_0x4d3a60:0x2f2,_0x4f8401:0x304,_0x5720e7:0x30b,_0x26184a:0x2e3,_0x19dd3d:0x38a,_0x282a5b:0x2f7,_0x58d2e8:0x328,_0x3d3a8c:0x320,_0x5da05d:0x28b},_0x771077={_0x13a5fa:0x57b},_0x267622={'fKnex':function(_0x3814b0,_0x4f61e4){return _0x3814b0(_0x4f61e4);},'IEgBI':'⚠️\x20\x20状态文件不存在'+_0x243f2d(0x30a,_0x50e7c0._0x4c51e2)+_0x243f2d(_0x50e7c0._0x2560a1,_0x50e7c0._0x32fab4),'GSteQ':'✅\x20所有\x20Agent'+_0x243f2d(_0x50e7c0._0x2492b7,0x302),'qpNRM':function(_0xf3196a,_0x200753){return _0xf3196a===_0x200753;},'xoTDc':_0x243f2d(0x30f,_0x50e7c0._0x5a1262),'woHnM':function(_0x19d482,_0x1b07cf){return _0x19d482===_0x1b07cf;},'uZsPK':_0x3c1f34(-0xcb,-0x116),'DmXWo':function(_0x1a2b2e,_0x4231a4){return _0x1a2b2e!==_0x4231a4;},'xkGZo':_0x243f2d(0x320,_0x50e7c0._0x4d0ab7)},_0x19ddf1=await _0x267622[_0x3c1f34(-0x16e,-_0x50e7c0._0x5d13f0)](readStateFile,_0x10b10f);if(!_0x19ddf1)return _0x267622['IEgBI'];const _0x38482e=_0x21d92f??Object[_0x243f2d(0x2e1,0x2ad)](_0x19ddf1[_0x3c1f34(-_0x50e7c0._0x59374d,-0x161)])[_0x3c1f34(-_0x50e7c0._0x54415f,-0x143)](_0x135cc2=>_0x19ddf1[_0x243f2d(0x2ef,0x2f4)][_0x135cc2]['phase']!==_0x243f2d(0x33a,0x31f));if(!_0x38482e)return _0x267622[_0x3c1f34(-_0x50e7c0._0x2e32db,-0x179)];const _0x574793=_0x19ddf1['agents'][_0x38482e];if(!_0x574793){if(_0x267622['qpNRM'](_0x267622[_0x3c1f34(-0x108,-_0x50e7c0._0x3452cb)],'LaSOL')){const _0xf3172d=_0x564ab8[_0xd0e4b5]['phase'];_0x1f46d0[_0xf3172d]=(_0x5eae9a[_0xf3172d]??-0x891+0x1*0x552+-0x115*-0x3)+(0x12*0x169+-0x427*0x1+-0x153a);}else return'❌\x20Agent\x20'+_0x38482e+('\x20不存在于\x20stat'+_0x3c1f34(-_0x50e7c0._0x5baab0,-0x178));}if(_0x267622['woHnM'](_0x574793[_0x3c1f34(-0x18f,-0x177)],_0x267622[_0x3c1f34(-0x19b,-_0x50e7c0._0x2d84b6)])){if(_0x267622[_0x243f2d(0x363,0x32b)]('ElQZi',_0x267622[_0x3c1f34(-_0x50e7c0._0x355e53,-_0x50e7c0._0x2a26a4)]))return'['+_0x38482e+']\x20已完成全部阶段';else{if(!_0x267622[_0x243f2d(0x32e,0x31e)](_0x36eef8,_0x54a63c))return null;const _0x34df62=new _0x24a2bc(_0x2b3d8a);return _0x34df62[_0x243f2d(_0x50e7c0._0x296253,_0x50e7c0._0xe6254f)]();}}function _0x243f2d(_0x1a6616,_0x57e3a5){return _0x3fca42(_0x57e3a5,_0x1a6616- -0x12b);}const _0x4ffbb0=_0x267622[_0x243f2d(0x32e,_0x50e7c0._0x51a1c0)](computeNextPhase,_0x574793[_0x3c1f34(-0x136,-0x177)]);function _0x3c1f34(_0x10c9f6,_0x5e72c9){return _0x3fca42(_0x10c9f6,_0x5e72c9- -_0x771077._0x13a5fa);}const _0x3a0b5d=PHASE_NAMES[_0x574793[_0x3c1f34(-_0x50e7c0._0x1cf323,-0x177)]]??_0x574793[_0x243f2d(0x2d9,_0x50e7c0._0x1856f7)],_0x4e221b=PHASE_NAMES[_0x4ffbb0]??_0x4ffbb0,_0x56eea1={..._0x19ddf1[_0x243f2d(_0x50e7c0._0x2d327c,0x2fc)]},_0x4dbc5c=_0x56eea1,_0x535c0b={..._0x574793};_0x535c0b[_0x243f2d(0x2d9,_0x50e7c0._0x4d3a60)]=_0x4ffbb0,_0x535c0b['currentOpe'+_0x243f2d(_0x50e7c0._0x4f8401,_0x50e7c0._0x5720e7)]='',_0x535c0b[_0x243f2d(0x358,0x392)+'ll']='',_0x4dbc5c[_0x38482e]=_0x535c0b;const _0x3f805d=_0x267622[_0x243f2d(0x32e,_0x50e7c0._0x26184a)](computeOverallPhase,_0x4dbc5c),_0x32b7a8={..._0x19ddf1['project']};_0x32b7a8[_0x243f2d(0x342,_0x50e7c0._0x19dd3d)+'se']=_0x3f805d;const _0xfad677={};_0xfad677[_0x243f2d(0x2c9,_0x50e7c0._0x282a5b)]=_0x32b7a8,_0xfad677[_0x3c1f34(-0x166,-0x161)]=_0x4dbc5c,_0xfad677['machineSna'+'pshot']=_0x19ddf1[_0x243f2d(_0x50e7c0._0x58d2e8,_0x50e7c0._0x3d3a8c)+'pshot'],await writeStateFile(_0x10b10f,_0xfad677);const _0x5658b2=[];return _0x5658b2[_0x243f2d(0x2dc,0x2e3)]('['+_0x38482e+']\x20'+_0x3a0b5d+'\x20→\x20'+_0x4e221b),_0x267622['woHnM'](_0x4ffbb0,'completed')&&_0x5658b2['push'](_0x243f2d(0x2dd,_0x50e7c0._0x5da05d)+_0x38482e+_0x243f2d(0x31f,0x331)),_0x5658b2[_0x243f2d(0x2d5,0x322)]('\x0a');}function computeNextPhase(_0x36a79f){const _0x24ed5e={_0x4e3754:0x195,_0x395d6a:0x40c,_0x47db3f:0x3d6,_0x27408b:0x400,_0x48a989:0x3f1,_0xcf2bb3:0x3c1,_0x2c1ba0:0x424,_0x23f249:0x367,_0xda6706:0x253,_0x4bcc4c:0x3c9,_0x1e4550:0x3f6,_0x48a091:0x169,_0x58096a:0x402,_0x4a47e8:0x41b,_0x122bca:0x427,_0x34da22:0x1c6,_0x147842:0x3fa,_0x459e07:0x1f7,_0x106cee:0x1e8,_0x18f7d6:0x209,_0xf15365:0x1bc},_0x2703ba={_0x5f368c:0x166},_0x396d70={};_0x396d70[_0x36cbb5(_0x24ed5e._0x4e3754,0x19f)]=function(_0x296a8a,_0x560d36){return _0x296a8a>=_0x560d36;},_0x396d70[_0x284aef(_0x24ed5e._0x395d6a,_0x24ed5e._0x47db3f)]=function(_0x3fbc7a,_0x2e5809){return _0x3fbc7a<_0x2e5809;},_0x396d70[_0x284aef(_0x24ed5e._0x27408b,_0x24ed5e._0x48a989)]=function(_0x4c13d2,_0x548c37){return _0x4c13d2-_0x548c37;},_0x396d70[_0x284aef(0x3ce,_0x24ed5e._0xcf2bb3)]=function(_0x5c882f,_0x3a98a3){return _0x5c882f>=_0x3a98a3;},_0x396d70['qXbxZ']=function(_0x97161,_0x11da69){return _0x97161-_0x11da69;},_0x396d70[_0x284aef(0x41f,0x411)]=function(_0x3b8e59,_0x405d0e){return _0x3b8e59+_0x405d0e;},_0x396d70[_0x284aef(0x45c,_0x24ed5e._0x2c1ba0)]=function(_0x38364a,_0x49ca6c){return _0x38364a===_0x49ca6c;},_0x396d70[_0x284aef(_0x24ed5e._0x23f249,0x3b1)]=_0x284aef(0x3fd,0x43d),_0x396d70[_0x36cbb5(0x209,_0x24ed5e._0xda6706)]=_0x284aef(_0x24ed5e._0x4bcc4c,0x41b);function _0x36cbb5(_0x2dba10,_0x48fd45){return _0x3fca42(_0x48fd45,_0x2dba10- -0x271);}const _0x52867f=_0x396d70;function _0x284aef(_0xc7b2a5,_0x31148b){return _0x159861(_0x31148b-_0x2703ba._0x5f368c,_0xc7b2a5);}const _0x3e0205=PHASES[_0x284aef(0x3f8,_0x24ed5e._0x1e4550)](_0x36a79f);if(_0x52867f['IVekb'](_0x3e0205,0x3d9*0x8+-0x1*-0x22f+-0x20f7))return _0x52867f[_0x36cbb5(0x1af,_0x24ed5e._0x48a091)](_0x3e0205,_0x52867f[_0x284aef(0x3ab,_0x24ed5e._0x48a989)](PHASES[_0x36cbb5(0x200,0x1fc)],0xa5c+0x4*0x294+0x1e1*-0xb))?PHASES[_0x3e0205+(-0x119*-0x16+0x2577+-0x3d9c)]:_0x284aef(_0x24ed5e._0x58096a,_0x24ed5e._0x4a47e8);const _0x4f3181=PIPELINE_PHASES[_0x36cbb5(0x1cf,0x1dd)](_0x36a79f);if(_0x52867f[_0x284aef(0x403,0x3c1)](_0x4f3181,-0x238c+-0x2378+-0x11c1*-0x4))return _0x4f3181<_0x52867f[_0x36cbb5(0x21c,0x1fa)](PIPELINE_PHASES[_0x284aef(0x462,_0x24ed5e._0x122bca)],-0x1115+0x18a*0x11+-0x914)?PIPELINE_PHASES[_0x52867f[_0x36cbb5(0x1ea,0x23c)](_0x4f3181,0x460+0x1*0x4d1+0x70*-0x15)]:'completed';if(_0x52867f[_0x36cbb5(0x1fd,_0x24ed5e._0x34da22)](_0x36a79f,'idle'))return _0x52867f[_0x284aef(_0x24ed5e._0x147842,0x424)](_0x36cbb5(_0x24ed5e._0x459e07,_0x24ed5e._0x106cee),_0x52867f[_0x36cbb5(0x18a,0x16a)])?_0x33eaa1[0x115a*-0x1+-0x17b2+0x290c]:PHASES[-0x1*-0x2b+0x1f3f*0x1+0x1f6a*-0x1];return _0x52867f[_0x36cbb5(_0x24ed5e._0x18f7d6,_0x24ed5e._0xf15365)];}export async function newProject(_0x28e57c,_0x453a66){const _0x5b6397={_0x2218b6:0x97,_0x22d49a:0xae,_0x4a1e73:0x74,_0x4076a1:0x8c,_0x2830be:0x387,_0x227a0c:0x3bd,_0x342704:0x383,_0xad57b3:0x453,_0x1b6bfc:0x3a5,_0x159942:0x3d1,_0x4dd46d:0x38d,_0x270ea4:0x11b,_0x14ece5:0x3bb,_0x157571:0x374,_0x3561ac:0xc8,_0x57d445:0x40b,_0x4417ba:0x397,_0x3b07b3:0x395,_0x33f338:0x39e,_0x4fa780:0x354,_0x131a7c:0x3f8,_0x2edd45:0x34f},_0x4e82c2={'mvFpd':function(_0x326076,_0x15541a,_0x2cdf7e){return _0x326076(_0x15541a,_0x2cdf7e);},'YXEyO':function(_0x17127e){return _0x17127e();},'TNNJB':function(_0x6791bb,_0x2ebb03,_0x27b8b3){return _0x6791bb(_0x2ebb03,_0x27b8b3);},'EyOcX':_0x190eed(-0x60,-0x4d)};function _0x3cc2b2(_0x132618,_0x341f7d){return _0x159861(_0x132618-0x13e,_0x341f7d);}const _0x410b1a=resolve(_0x28e57c,'..');if(!existsSync(_0x410b1a)){const _0x4dcae9={};_0x4dcae9[_0x190eed(-_0x5b6397._0x2218b6,-_0x5b6397._0x22d49a)]=!![],_0x4e82c2[_0x190eed(-_0x5b6397._0x4a1e73,-0xb5)](mkdirSync,_0x410b1a,_0x4dcae9);}const _0x1e0bb7=_0x4e82c2[_0x190eed(-0x4c,-0x4d)](generateAgentId),_0x2e7402={};function _0x190eed(_0x4c74ad,_0x55ff2f){return _0x159861(_0x4c74ad- -0x325,_0x55ff2f);}_0x2e7402['agentId']=_0x1e0bb7,_0x2e7402[_0x190eed(-_0x5b6397._0x4076a1,-0x73)]=null,_0x2e7402[_0x3cc2b2(0x38b,0x3bf)]=[],_0x2e7402['phase']='idle',_0x2e7402[_0x3cc2b2(_0x5b6397._0x2830be,0x37c)+_0x3cc2b2(_0x5b6397._0x227a0c,_0x5b6397._0x342704)]='',_0x2e7402[_0x3cc2b2(0x411,_0x5b6397._0xad57b3)+'ll']='';const _0x26f346=_0x2e7402,_0x1159e8={};_0x1159e8[_0x1e0bb7]=_0x26f346,await _0x4e82c2[_0x3cc2b2(_0x5b6397._0x1b6bfc,_0x5b6397._0x342704)](writeStateFile,_0x28e57c,{'project':{'name':_0x453a66,'currentPhase':_0x4e82c2[_0x3cc2b2(_0x5b6397._0x159942,_0x5b6397._0x4dd46d)]},'agents':_0x1159e8,'machineSnapshot':null});const _0x420028=[];return _0x420028[_0x190eed(-0xce,-_0x5b6397._0x270ea4)](_0x3cc2b2(_0x5b6397._0x14ece5,_0x5b6397._0x157571)+_0x453a66),_0x420028['push'](_0x190eed(-0x94,-_0x5b6397._0x3561ac)+_0x410b1a),_0x420028['push'](_0x3cc2b2(0x404,_0x5b6397._0x57d445)+_0x3cc2b2(0x37f,_0x5b6397._0x4417ba)+_0x1e0bb7),_0x420028[_0x3cc2b2(_0x5b6397._0x3b07b3,_0x5b6397._0x33f338)]('\x20\x20\x20阶段序列:\x20'+PIPELINE_PHASES[_0x3cc2b2(0x3e2,0x428)](_0x1d0891=>PHASE_NAMES[_0x1d0891]??_0x1d0891)[_0x3cc2b2(0x38e,_0x5b6397._0x4fa780)](_0x3cc2b2(_0x5b6397._0x131a7c,0x3f8))),_0x420028[_0x3cc2b2(0x38e,_0x5b6397._0x2edd45)]('\x0a');}export async function updateOperation(_0x2e5feb,_0x527a03,_0x191ef7,_0x5178a9){const _0x53c74c={_0x4cb0a9:0x6,_0x32796f:0x2bb,_0xdfca65:0x2a9,_0x424322:0x332,_0x27e954:0x2ec,_0x2628b2:0x4a,_0x11a0f0:0x279,_0x2472ec:0x24e,_0x42703c:0x274,_0x31cabe:0x14,_0x37c42d:0x244,_0x26b973:0x24f,_0x4420e6:0x28f,_0x5cf5ce:0x42,_0xdc21aa:0x6},_0x2c626e={_0x2d72e5:0x28f},_0x464ff0={_0x335943:0xa},_0x3bc196={};_0x3bc196['dsmgj']=_0x1263ff(_0x53c74c._0x4cb0a9,-0x6);const _0x1761a3=_0x3bc196,_0x5bb48f=await readStateFile(_0x2e5feb);if(!_0x5bb48f)return _0x1761a3['dsmgj'];const _0x32d34f=_0x5bb48f[_0x5c4b0a(_0x53c74c._0x32796f,0x274)][_0x527a03];function _0x5c4b0a(_0x43729b,_0x470fa4){return _0x159861(_0x470fa4-_0x464ff0._0x335943,_0x43729b);}if(!_0x32d34f)return _0x5c4b0a(_0x53c74c._0xdfca65,0x2de)+_0x527a03+(_0x5c4b0a(_0x53c74c._0x424322,_0x53c74c._0x27e954)+'e.json');const _0x20fe5c={..._0x5bb48f[_0x1263ff(-_0x53c74c._0x2628b2,-0x25)]};function _0x1263ff(_0x4a4f78,_0x2211a9){return _0x159861(_0x2211a9- -_0x2c626e._0x2d72e5,_0x4a4f78);}const _0x571cad=_0x20fe5c,_0x5f18c4={..._0x32d34f};_0x5f18c4[_0x1263ff(-0x84,-0x46)+_0x1263ff(-0x24,-0x10)]=_0x191ef7,_0x5f18c4['currentSki'+'ll']=_0x5178a9,_0x571cad[_0x527a03]=_0x5f18c4;const _0x566252={};return _0x566252[_0x5c4b0a(_0x53c74c._0x11a0f0,0x24e)]=_0x5bb48f[_0x5c4b0a(0x230,_0x53c74c._0x2472ec)],_0x566252[_0x5c4b0a(0x264,_0x53c74c._0x42703c)]=_0x571cad,_0x566252[_0x1263ff(-0x16,_0x53c74c._0x31cabe)+_0x5c4b0a(_0x53c74c._0x37c42d,_0x53c74c._0x26b973)]=_0x5bb48f[_0x5c4b0a(_0x53c74c._0x4420e6,0x2ad)+_0x1263ff(-0x20,-_0x53c74c._0x2628b2)],await writeStateFile(_0x2e5feb,_0x566252),_0x5c4b0a(0x27e,0x2c5)+_0x527a03+_0x1263ff(_0x53c74c._0x5cf5ce,_0x53c74c._0xdc21aa)+_0x191ef7+'\x20('+_0x5178a9+')';}export async function registerAgent(_0xbf9720,_0x1b3180,_0x393d8f={}){const _0x96d512={_0x44b711:0x574,_0x5c8a58:0x594,_0x4b9052:0x462,_0x24eade:0x3ff,_0x35f729:0x3e9,_0x321327:0x530,_0x428eb8:0x4e5,_0xe893ca:0x4e8,_0x2b34fe:0x558,_0x4b35c6:0x5a6,_0xbf992e:0x471,_0xd1c9a3:0x45b,_0xc6579e:0x564,_0x1ced4d:0x3dd,_0x552916:0x3f1,_0x1602fb:0x3fe,_0x4dffdc:0x4b0,_0x1514d6:0x535,_0x4f38b3:0x45d,_0x30d55f:0x51b,_0x47195e:0x408,_0x131c04:0x4e5,_0x5c8494:0x49c,_0x23aaf1:0x465,_0x1ec9bb:0x47e,_0x13ab4f:0x40c,_0x3b0382:0x40f,_0x33b1bf:0x56d,_0x47998d:0x542,_0x5ca846:0x4e9,_0x1cfa0d:0x51b,_0x41ff2d:0x4e0,_0x3e5bea:0x49d,_0x264ce7:0x513,_0x2e6fef:0x53f,_0x81b260:0x3e2,_0x118d06:0x3c4,_0xafd334:0x440,_0x1dcf8c:0x4e1,_0x5a561a:0x4f3,_0x14a681:0x40d,_0x1f6ea1:0x47e},_0x3c5530={_0x1048f7:0x13},_0x464f20={'EhewC':function(_0x14b790,_0x57e8be){return _0x14b790(_0x57e8be);},'CLBjc':_0x3d809c(_0x96d512._0x44b711,_0x96d512._0x5c8a58),'hjjkt':_0x20d4b2(_0x96d512._0x4b9052,0x498),'TEWiH':function(_0x2c2818,_0x434bf8){return _0x2c2818===_0x434bf8;},'XUVVK':_0x3d809c(0x56d,0x5b6),'lYDVC':function(_0x3876a3,_0xf66710,_0x5a1a67){return _0x3876a3(_0xf66710,_0x5a1a67);}},_0xb99cf0=await _0x464f20[_0x20d4b2(0x413,_0x96d512._0x24eade)](readStateFile,_0xbf9720);if(!_0xb99cf0)return _0x20d4b2(0x426,0x46d)+_0x20d4b2(0x422,_0x96d512._0x35f729)+_0x3d809c(_0x96d512._0x321327,_0x96d512._0x428eb8);if(_0xb99cf0[_0x3d809c(0x506,_0x96d512._0xe893ca)][_0x1b3180])return _0x464f20[_0x3d809c(_0x96d512._0x2b34fe,_0x96d512._0x4b35c6)]!==_0x464f20[_0x3d809c(0x558,0x58f)]?_0x20d4b2(_0x96d512._0xbf992e,_0x96d512._0xd1c9a3)+_0x5e797c+(_0x20d4b2(0x47f,0x490)+'e.json'):_0x3d809c(_0x96d512._0xc6579e,0x526)+_0x1b3180+_0x20d4b2(0x414,_0x96d512._0x1ced4d);const _0x40d7a7=_0x393d8f[_0x20d4b2(_0x96d512._0x552916,_0x96d512._0x1602fb)]??_0x464f20[_0x20d4b2(0x477,_0x96d512._0x4dffdc)],_0x287115=_0x393d8f[_0x3d809c(_0x96d512._0x1514d6,0x4e4)]??null;function _0x3d809c(_0x4ccac8,_0x26f131){return _0x159861(_0x4ccac8-0x29c,_0x26f131);}const _0x1473c7={};_0x1473c7[_0x20d4b2(_0x96d512._0x4f38b3,0x49a)]=_0x1b3180,_0x1473c7[_0x3d809c(_0x96d512._0x1514d6,_0x96d512._0x30d55f)]=_0x287115,_0x1473c7['childIds']=[],_0x1473c7[_0x20d4b2(_0x96d512._0x552916,_0x96d512._0x47195e)]=_0x40d7a7,_0x1473c7[_0x3d809c(_0x96d512._0x131c04,_0x96d512._0x5c8494)+_0x20d4b2(0x41c,_0x96d512._0x23aaf1)]='',_0x1473c7[_0x20d4b2(0x470,_0x96d512._0x1ec9bb)+'ll']='';const _0x5e6a1a=_0x1473c7,_0x366f54={..._0xb99cf0['agents']};_0x366f54[_0x1b3180]=_0x5e6a1a;const _0x36a7b8=_0x366f54;if(_0x287115&&_0x36a7b8[_0x287115]){if(_0x464f20[_0x20d4b2(_0x96d512._0x13ab4f,_0x96d512._0x3b0382)](_0x3d809c(_0x96d512._0x33b1bf,_0x96d512._0x47998d),_0x464f20[_0x20d4b2(0x3fa,0x3c0)])){const _0x127fe2=_0x36a7b8[_0x287115];if(!_0x127fe2[_0x3d809c(_0x96d512._0x5ca846,0x4bf)]['includes'](_0x1b3180)){const _0x5e95c2={..._0x127fe2};_0x5e95c2['childIds']=[..._0x127fe2[_0x3d809c(0x4e9,_0x96d512._0x1cfa0d)],_0x1b3180],_0x36a7b8[_0x287115]=_0x5e95c2;}}else return'['+_0x1e34e5+_0x3d809c(0x580,0x580);}const _0x411c71={};_0x411c71[_0x3d809c(_0x96d512._0x41ff2d,_0x96d512._0x3e5bea)]=_0xb99cf0[_0x3d809c(0x4e0,_0x96d512._0x264ce7)],_0x411c71['agents']=_0x36a7b8;function _0x20d4b2(_0x1c3fec,_0x217cc4){return _0x3fca42(_0x217cc4,_0x1c3fec- -_0x3c5530._0x1048f7);}_0x411c71[_0x3d809c(_0x96d512._0x2e6fef,0x514)+_0x20d4b2(_0x96d512._0x81b260,_0x96d512._0x118d06)]=_0xb99cf0[_0x20d4b2(_0x96d512._0xafd334,0x3f6)+_0x3d809c(_0x96d512._0x1dcf8c,0x501)],await _0x464f20['lYDVC'](writeStateFile,_0xbf9720,_0x411c71);const _0x286159=PHASE_NAMES[_0x40d7a7]??_0x40d7a7,_0xc6776b=[];_0xc6776b[_0x3d809c(_0x96d512._0x5a561a,0x4b3)]('✅\x20Agent\x20已注'+_0x20d4b2(0x41b,_0x96d512._0x14a681)+_0x1b3180),_0xc6776b[_0x20d4b2(0x3f4,0x3ee)](_0x20d4b2(_0x96d512._0x1f6ea1,0x445)+_0x286159);if(_0x287115)_0xc6776b[_0x20d4b2(0x3f4,0x442)](_0x20d4b2(0x43d,0x446)+':\x20'+_0x287115);return _0xc6776b['join']('\x0a');}export async function deregisterAgent(_0x5c0e1a,_0x894ac4){const _0x21b564={_0x5ddef5:0x51,_0x46be34:0x89,_0x5cdbf6:0x2cc,_0x343da6:0x2f9,_0x41ed5b:0x281,_0x1b5705:0x2cc,_0xce394d:0x35d,_0x24e58d:0x31f,_0x22e430:0x12,_0x5f1a77:0x2cc,_0x43bb63:0x2ee,_0x3cd2f5:0x361,_0x4d548a:0x36f,_0x4c4132:0x31d,_0x32da04:0x7e,_0x510157:0x9d,_0x1271f7:0x32e,_0x119a49:0x345,_0xb928ae:0x20,_0x31b67a:0x2a7,_0x5ddaa1:0x2d,_0x1cd6ba:0x2c9,_0x37ed0e:0x2b9,_0x3d7240:0x2a5},_0x115e4d={_0x3433e9:0x84},_0x57c1bd={'GiXpL':function(_0x1b2c1c,_0x45d33e){return _0x1b2c1c(_0x45d33e);},'BJyGO':_0x47c2d2(-_0x21b564._0x5ddef5,-_0x21b564._0x46be34),'tXSoF':function(_0x53913f,_0x2c7231){return _0x53913f!==_0x2c7231;},'UbFOV':_0xc4a942(0x2f9,_0x21b564._0x5cdbf6),'sWCgP':function(_0x44b731,_0x1c6603){return _0x44b731>_0x1c6603;}},_0x14d703=await _0x57c1bd['GiXpL'](readStateFile,_0x5c0e1a);if(!_0x14d703)return _0x57c1bd[_0x47c2d2(-0x3d,-0x18)];if(!_0x14d703['agents'][_0x894ac4])return _0x57c1bd[_0xc4a942(0x323,_0x21b564._0x343da6)](_0xc4a942(_0x21b564._0x41ed5b,_0x21b564._0x1b5705),_0x57c1bd[_0xc4a942(0x2be,0x304)])?_0xc4a942(_0x21b564._0xce394d,0x363)+_0xc4a942(_0x21b564._0x24e58d,0x31e):_0x47c2d2(-_0x21b564._0x22e430,-0x60)+_0x894ac4+'\x20不存在';const _0x38de37=_0x14d703[_0xc4a942(0x2c7,0x2ee)][_0x894ac4];function _0x47c2d2(_0x5cf979,_0x31d6bc){return _0x3fca42(_0x31d6bc,_0x5cf979- -0x48a);}const _0x5f088b={..._0x14d703[_0xc4a942(_0x21b564._0x5f1a77,_0x21b564._0x43bb63)]};function _0xc4a942(_0x357f3,_0x2e16ba){return _0x159861(_0x2e16ba-_0x115e4d._0x3433e9,_0x357f3);}const _0x29e132=_0x5f088b;delete _0x29e132[_0x894ac4];if(_0x38de37[_0xc4a942(_0x21b564._0x3cd2f5,0x31d)]&&_0x29e132[_0x38de37[_0xc4a942(0x2d8,0x31d)]]){const _0x1bd483=_0x29e132[_0x38de37[_0xc4a942(_0x21b564._0x4d548a,_0x21b564._0x4c4132)]];_0x29e132[_0x38de37['parentId']]={..._0x1bd483,'childIds':_0x1bd483['childIds'][_0xc4a942(0x2f6,0x307)](_0x45ae84=>_0x45ae84!==_0x894ac4)};}const _0x4c2ea4=Object[_0x47c2d2(-_0x21b564._0x32da04,-_0x21b564._0x510157)](_0x29e132),_0x370ba8=_0x57c1bd['sWCgP'](_0x4c2ea4[_0xc4a942(_0x21b564._0x1271f7,_0x21b564._0x119a49)],-0x1ff+-0x1668+0x1*0x1867)?computeOverallPhase(_0x29e132):_0x47c2d2(-0x15,-0x5f),_0x2757ff={..._0x14d703['project']};_0x2757ff[_0x47c2d2(-0x1d,_0x21b564._0xb928ae)+'se']=_0x370ba8;const _0x5d4510={};return _0x5d4510['project']=_0x2757ff,_0x5d4510[_0xc4a942(_0x21b564._0x31b67a,0x2ee)]=_0x29e132,_0x5d4510[_0x47c2d2(-0x37,-_0x21b564._0x5ddaa1)+_0xc4a942(0x29e,_0x21b564._0x1cd6ba)]=_0x14d703['machineSna'+_0xc4a942(_0x21b564._0x37ed0e,0x2c9)],await writeStateFile(_0x5c0e1a,_0x5d4510),_0x47c2d2(0x9,0xb)+_0xc4a942(_0x21b564._0x3d7240,0x2ed)+_0x894ac4;}export async function showProgress(_0x3d873d){const _0x2b0e60={_0x362e4d:0x458,_0x134f33:0x40b,_0x52cfe5:0xea,_0x54cd1a:0x159,_0x165d70:0x137,_0x320f24:0x128,_0x115e79:0x16d,_0x467253:0x3b1,_0x45ba70:0x3a2,_0x5514df:0x3ca,_0x37001f:0x118,_0x370820:0x3c9,_0xfd5efd:0x13e,_0x3b594f:0x38b,_0x5de4ce:0x404,_0xee1abb:0x3ad,_0xa1bf1f:0x3e5,_0x46da3f:0x39e,_0x545f30:0x39a,_0x8162a3:0x397,_0x446c87:0x10d,_0x501ec9:0x454,_0xd4957b:0x149,_0x51bb2c:0xf4,_0x27400d:0x13b,_0x10d592:0x14f,_0x285bb3:0x3ba,_0x1351e1:0x39e,_0x45770e:0xfb,_0x10b3ac:0xfa,_0x59a664:0x165,_0x4701aa:0x14a,_0x529665:0x3c2,_0x281b12:0x46e,_0x5048c7:0x358,_0x6d47f0:0x3f6,_0x51c499:0x3df,_0x8afe52:0x375,_0x50f47e:0x119,_0x1bbe7c:0x3c6,_0x54b84e:0xe9,_0x11d574:0x135,_0x3be04d:0x159,_0x209fd3:0x156,_0x194809:0x3ee,_0x3032bb:0x3a8,_0x33dd80:0x147,_0x487c8d:0x15e,_0x4a4dce:0x16c,_0x3a7733:0x153},_0x311929={};_0x311929['DHDat']=function(_0x1b94cf,_0x272a5a){return _0x1b94cf+_0x272a5a;},_0x311929['mamKA']=function(_0x5233dc,_0x51f506){return _0x5233dc-_0x51f506;},_0x311929[_0x19cb7e(_0x2b0e60._0x362e4d,_0x2b0e60._0x134f33)]=_0x5e2725(-0xf1,-_0x2b0e60._0x52cfe5)+_0x19cb7e(0x3af,0x3af),_0x311929['GYlpP']=_0x5e2725(-_0x2b0e60._0x54cd1a,-0x13c);const _0x3ddd3b=_0x311929,_0x232bb1=await readStateFile(_0x3d873d);if(!_0x232bb1)return'⚠️\x20\x20状态文件不存在'+_0x5e2725(-_0x2b0e60._0x165d70,-0x142)+_0x5e2725(-_0x2b0e60._0x320f24,-_0x2b0e60._0x115e79);const _0x45694b=_0x232bb1[_0x19cb7e(0x3e3,_0x2b0e60._0x467253)],_0x5a25ae=Object[_0x19cb7e(_0x2b0e60._0x45ba70,0x3a3)](_0x45694b),_0x3d714c=_0x5a25ae['length'],_0x37b8b4=_0x5a25ae[_0x19cb7e(0x37a,_0x2b0e60._0x5514df)](_0x2fab6d=>_0x45694b[_0x2fab6d][_0x5e2725(-0x168,-0x144)]===_0x5e2725(-0x107,-0x123))[_0x19cb7e(0x402,0x408)],_0x426166=_0x3d714c>0x1*0x184+0x1d06+0x6*-0x517?Math['round'](_0x37b8b4/_0x3d714c*(0xcbf*-0x2+-0x21*0x11b+0xc79*0x5)):0x18e3+-0xb*-0x379+-0x13*0x352,_0x31a000={};for(const _0x356e77 of _0x5a25ae){const _0x39e412=_0x45694b[_0x356e77]['phase'];_0x31a000[_0x39e412]=(_0x31a000[_0x39e412]??0x1*0x7d4+0x11cf+-0x19a3*0x1)+(0x10d1+-0x2ff*-0x2+-0x16ce);}const _0x25899d=[];_0x25899d['push']('📊\x20项目进度:\x20'+_0x232bb1[_0x19cb7e(0x355,0x38b)][_0x5e2725(-0xfd,-_0x2b0e60._0x37001f)]),_0x25899d[_0x19cb7e(_0x2b0e60._0x370820,0x39e)](_0x5e2725(-0x11a,-_0x2b0e60._0xfd5efd)+(PHASE_NAMES[_0x232bb1[_0x19cb7e(0x384,_0x2b0e60._0x3b594f)][_0x19cb7e(0x3ba,_0x2b0e60._0x5de4ce)+'se']]??_0x232bb1['project'][_0x19cb7e(0x3f2,_0x2b0e60._0x5de4ce)+'se'])),_0x25899d[_0x19cb7e(0x3ce,0x39e)]('\x20\x20\x20版本:\x20'+_0x232bb1['version']),_0x25899d[_0x19cb7e(0x3e6,0x39e)]('\x20\x20\x20更新时间:\x20'+_0x232bb1[_0x19cb7e(_0x2b0e60._0xee1abb,_0x2b0e60._0xa1bf1f)]);function _0x5e2725(_0x4ec727,_0x4948f7){return _0x159861(_0x4ec727- -0x3bc,_0x4948f7);}_0x25899d[_0x19cb7e(0x3d2,_0x2b0e60._0x46da3f)](_0x19cb7e(_0x2b0e60._0x545f30,0x38a)+_0x426166+_0x19cb7e(0x44a,0x409)+_0x37b8b4+'/'+_0x3d714c+_0x5e2725(-0x170,-0x18a)),_0x25899d[_0x19cb7e(_0x2b0e60._0x8162a3,0x39e)](''),_0x25899d[_0x19cb7e(0x381,0x39e)](_0x5e2725(-0x144,-_0x2b0e60._0x446c87));for(const [_0x114a2a,_0x2db629]of Object[_0x19cb7e(_0x2b0e60._0x501ec9,0x427)](_0x31a000)){const _0x17fd05=PHASE_NAMES[_0x114a2a]??_0x114a2a,_0x16b983=_0x3ddd3b[_0x5e2725(-_0x2b0e60._0xd4957b,-0x174)]('█'['repeat'](_0x2db629),'░'[_0x5e2725(-0x124,-_0x2b0e60._0x51bb2c)](Math['max'](0x1*0x2645+-0x25d3*-0x1+-0x4c18,_0x3ddd3b[_0x5e2725(-_0x2b0e60._0x27400d,-_0x2b0e60._0x10d592)](_0x3d714c,_0x2db629))));_0x25899d[_0x19cb7e(_0x2b0e60._0x285bb3,0x39e)]('\x20\x20\x20\x20\x20\x20'+_0x17fd05['padEnd'](-0x21e1+0x171*-0x11+0x3a70)+'\x20'+_0x16b983+'\x20'+_0x2db629);}_0x25899d[_0x19cb7e(0x35e,_0x2b0e60._0x1351e1)]('');if(_0x5a25ae[_0x5e2725(-_0x2b0e60._0x45770e,-_0x2b0e60._0x10b3ac)]>-0x21ff+0x10dd+0x1122){_0x25899d[_0x5e2725(-_0x2b0e60._0x59a664,-0x1b5)](_0x3ddd3b['jHIcF']),_0x25899d['push']('\x20\x20\x20Agent\x20I'+_0x5e2725(-0x103,-_0x2b0e60._0x4701aa)+_0x19cb7e(_0x2b0e60._0x529665,0x38e)+'\x20\x20\x20\x20\x20\x20|\x20操作'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x19cb7e(_0x2b0e60._0x281b12,0x41d)+'工具'),_0x25899d[_0x19cb7e(_0x2b0e60._0x5048c7,0x39e)](_0x3ddd3b['DHDat'](_0x3ddd3b[_0x19cb7e(0x3df,_0x2b0e60._0x6d47f0)],'-'[_0x19cb7e(0x418,_0x2b0e60._0x51c499)](-0x3*0xab5+-0x10bc+0x312b)));for(const _0x8805ea of _0x5a25ae){const _0x4d8023=_0x45694b[_0x8805ea],_0x42436c=PHASE_NAMES[_0x4d8023[_0x19cb7e(_0x2b0e60._0x8afe52,0x39b)]]??_0x4d8023[_0x5e2725(-0x168,-_0x2b0e60._0x50f47e)],_0x4410ec=_0x4d8023[_0x19cb7e(0x397,0x390)+_0x19cb7e(0x396,_0x2b0e60._0x1bbe7c)]||'-',_0x357cf9=_0x4d8023[_0x5e2725(-_0x2b0e60._0x54b84e,-_0x2b0e60._0x11d574)+'ll']||'-';_0x25899d['push'](_0x5e2725(-_0x2b0e60._0x3be04d,-_0x2b0e60._0x209fd3)+_0x8805ea[_0x19cb7e(0x3d9,_0x2b0e60._0x194809)](0x1*0x14c5+0x40*-0x76+0x8cd)+_0x19cb7e(_0x2b0e60._0x3032bb,0x3a5)+_0x42436c[_0x5e2725(-0x115,-_0x2b0e60._0x33dd80)](0x17*0x97+-0x405*-0x8+-0x2dab)+_0x19cb7e(0x3e5,0x3a5)+_0x4410ec[_0x19cb7e(0x3d9,_0x2b0e60._0x194809)](-0x4*-0x9a3+0x1dca*0x1+0x4441*-0x1)+_0x5e2725(-_0x2b0e60._0x487c8d,-0x133)+_0x357cf9);}}function _0x19cb7e(_0x5b9b71,_0x3f34d8){return _0x159861(_0x3f34d8-0x147,_0x5b9b71);}return _0x25899d[_0x5e2725(-_0x2b0e60._0x4a4dce,-_0x2b0e60._0x3a7733)]('\x0a');}function _0x31e7(_0x12deaa,_0x114060){_0x12deaa=_0x12deaa-(0x1*0x753+-0x33*0xaf+0x1d16);const _0x2a56ec=_0x33e7();let _0x5e777e=_0x2a56ec[_0x12deaa];if(_0x31e7['Fzyybs']===undefined){var _0x1e34e5=function(_0xdb93b4){const _0x25b7de='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xee3d6='',_0x30fb34='';for(let _0x2c939a=0x23ef+-0x1e5*0x2+-0x2025,_0x17f39e,_0x44cca2,_0x2442f7=-0x5*-0xc3+0x5f0+-0x9bf;_0x44cca2=_0xdb93b4['charAt'](_0x2442f7++);~_0x44cca2&&(_0x17f39e=_0x2c939a%(0x4cb+0x5d*-0x61+0xf3b*0x2)?_0x17f39e*(0x1df*0x4+-0x124a+0x587*0x2)+_0x44cca2:_0x44cca2,_0x2c939a++%(0x1f13+0x562+0x1*-0x2471))?_0xee3d6+=String['fromCharCode'](0x1*0x123b+-0xfdb+-0x161&_0x17f39e>>(-(-0x71d+0xd*-0x179+0x1*0x1a44)*_0x2c939a&-0x49*-0x2f+-0xa36*-0x2+-0x21cd)):0x94f*0x1+0x309*0x2+-0x7f*0x1f){_0x44cca2=_0x25b7de['indexOf'](_0x44cca2);}for(let _0x1dc29c=-0x20bf*0x1+-0x1*0x1173+0x1*0x3232,_0x560fd1=_0xee3d6['length'];_0x1dc29c<_0x560fd1;_0x1dc29c++){_0x30fb34+='%'+('00'+_0xee3d6['charCodeAt'](_0x1dc29c)['toString'](-0xd68+-0x7b+0xdf3))['slice'](-(0x16f1*0x1+0xc82+-0xd3*0x2b));}return decodeURIComponent(_0x30fb34);};_0x31e7['YpUUxz']=_0x1e34e5,_0x31e7['fqsHgz']={},_0x31e7['Fzyybs']=!![];}const _0x43afdf=_0x2a56ec[0x9*0x6+-0x2022*-0x1+-0x2058],_0x61b938=_0x12deaa+_0x43afdf,_0x454c1b=_0x31e7['fqsHgz'][_0x61b938];return!_0x454c1b?(_0x5e777e=_0x31e7['YpUUxz'](_0x5e777e),_0x31e7['fqsHgz'][_0x61b938]=_0x5e777e):_0x5e777e=_0x454c1b,_0x5e777e;}export async function quickTask(_0x2505d3,_0x233dfd){const _0x2761f9={_0x1726fb:0x2e7,_0x21b856:0x30e,_0x5ab6b6:0x5e3,_0x49124:0x57a,_0x138577:0x2f1,_0x246ee4:0x5f8,_0x5b883a:0x5d9,_0x287c38:0x323,_0x14f733:0x53c,_0x54cd2d:0x584,_0x2614b3:0x269,_0x42ad9b:0x2cb,_0x55640e:0x2be,_0x3abf18:0x2b5,_0x308c48:0x2fb,_0x22560c:0x5c2,_0x5dfe82:0x5d1,_0x66fb1e:0x571,_0x2cc577:0x543,_0x2a1e37:0x5c0,_0x29f819:0x5f5,_0xfd7919:0x579},_0x35f04b={_0x43680a:0x31a},_0x59345c={'hCUHI':_0x80aaad(_0x2761f9._0x1726fb,0x313),'vifed':function(_0x36e5b5,_0x112b6c){return _0x36e5b5!==_0x112b6c;},'eezph':'iOFzd','YWpzL':function(_0x5450e0,_0x39537b,_0x3493cf){return _0x5450e0(_0x39537b,_0x3493cf);},'dLJqa':'quick-task','MEGOM':function(_0x2708e3){return _0x2708e3();},'AtTjr':_0x80aaad(_0x2761f9._0x21b856,0x2c2)},_0x4f39fb=await readStateFile(_0x2505d3);if(!_0x4f39fb){if(_0x59345c['vifed']('iOFzd',_0x59345c['eezph']))return _0x59345c[_0x58fee4(0x5e1,_0x2761f9._0x5ab6b6)];else{const _0x39d497=resolve(_0x2505d3,'..');if(!existsSync(_0x39d497)){const _0x123e4f={};_0x123e4f[_0x80aaad(0x2ec,0x2b5)]=!![],_0x59345c[_0x58fee4(0x589,_0x2761f9._0x49124)](mkdirSync,_0x39d497,_0x123e4f);}}}const _0xdea7c9=_0x4f39fb?.[_0x80aaad(0x2a2,_0x2761f9._0x138577)][_0x58fee4(_0x2761f9._0x246ee4,_0x2761f9._0x5b883a)]??_0x59345c[_0x80aaad(0x2e2,_0x2761f9._0x287c38)];function _0x58fee4(_0x54b3fa,_0x208cbf){return _0x159861(_0x208cbf-_0x35f04b._0x43680a,_0x54b3fa);}function _0x80aaad(_0x39437f,_0x57d2f8){return _0x3fca42(_0x57d2f8,_0x39437f- -0x152);}const _0x58764a=_0x4f39fb?Object[_0x58fee4(_0x2761f9._0x14f733,0x576)](_0x4f39fb[_0x58fee4(0x551,_0x2761f9._0x54cd2d)])[0x9*-0x20c+0x7df*0x1+0x25*0x49]??generateAgentId():_0x59345c[_0x80aaad(0x2e4,0x2d3)](generateAgentId),_0x262c53={'agentId':_0x58764a,'parentId':null,'childIds':[],'phase':_0x58fee4(0x528,0x560),'currentOperation':_0x233dfd[_0x80aaad(0x2ac,_0x2761f9._0x2614b3)](0xf*0x1c9+0x638+-0x20ff*0x1,-0x1*-0x158c+-0x1b44+0x2*0x30e),'currentSkill':_0x59345c[_0x80aaad(0x2f5,_0x2761f9._0x42ad9b)]},_0x169898={};_0x169898[_0x58764a]=_0x262c53,await _0x59345c[_0x80aaad(_0x2761f9._0x55640e,0x2e4)](writeStateFile,_0x2505d3,{'project':{'name':_0xdea7c9,'currentPhase':_0x59345c[_0x58fee4(0x596,0x5b1)]},'agents':_0x169898,'machineSnapshot':null});const _0xaf966f=[];return _0xaf966f[_0x80aaad(_0x2761f9._0x3abf18,_0x2761f9._0x308c48)](_0x58fee4(0x5c9,_0x2761f9._0x22560c)),_0xaf966f['push'](_0x58fee4(0x5d5,_0x2761f9._0x5dfe82)+_0xdea7c9),_0xaf966f[_0x58fee4(0x584,_0x2761f9._0x66fb1e)](_0x80aaad(0x2b3,0x2d6)+_0x233dfd),_0xaf966f[_0x58fee4(_0x2761f9._0x2cc577,0x571)]('\x20\x20\x20Agent:\x20'+_0x58764a),_0xaf966f['push'](_0x58fee4(_0x2761f9._0x2a1e37,_0x2761f9._0x29f819)+_0x58fee4(0x5a5,_0x2761f9._0xfd7919)+_0x58fee4(0x5f7,0x5b9)),_0xaf966f['join']('\x0a');}
package/dist/plugin.js CHANGED
@@ -1 +1 @@
1
- (function(_0xacde17,_0x27ea12){const _0xd90152={_0x51c7f3:0x69,_0x52ccb3:0x24d,_0x124766:0x273,_0x1e6597:0x113,_0x21795:0xb8,_0x56ba86:0xb2,_0x5ab85e:0xd7,_0x4d890a:0x252,_0x299b68:0x24a,_0x333aa2:0x270,_0x2b0f91:0x294,_0x5486f5:0xd0,_0x4888c2:0x9e,_0x278b44:0xa5,_0x45d21d:0x1ef},_0x5bd1b0=_0xacde17();function _0x348e39(_0x268a4a,_0x131d5f){return _0x2f24(_0x268a4a- -0x185,_0x131d5f);}function _0xdb586a(_0x239aa8,_0x32d9b7){return _0x2f24(_0x239aa8- -0x2f7,_0x32d9b7);}while(!![]){try{const _0x55773a=parseInt(_0xdb586a(-0x223,-0x1e8))/(0x12ac+-0x23ec+0x1141)+-parseInt(_0x348e39(-0x85,-_0xd90152._0x51c7f3))/(0x8*0x22a+0x265f+-0x37ad)*(-parseInt(_0xdb586a(-0x1f6,-0x22e))/(-0x23a3+0x785*-0x5+0x493f))+parseInt(_0xdb586a(-_0xd90152._0x52ccb3,-_0xd90152._0x124766))/(0x1506+0x173*-0xe+-0xb8)*(parseInt(_0x348e39(-0xee,-_0xd90152._0x1e6597))/(0x121+0x251*0xb+0x1*-0x1a97))+parseInt(_0x348e39(-_0xd90152._0x21795,-0x86))/(0x3b*-0x86+0x16b9+0x82f)*(parseInt(_0x348e39(-_0xd90152._0x56ba86,-_0xd90152._0x5ab85e))/(0x1993+0xc*0x27+-0x1b60))+-parseInt(_0xdb586a(-_0xd90152._0x4d890a,-_0xd90152._0x299b68))/(-0x7*0x111+-0x758+-0xed7*-0x1)+parseInt(_0xdb586a(-_0xd90152._0x333aa2,-_0xd90152._0x2b0f91))/(0x1b4d+0x46*-0x87+-0x41*-0x26)*(parseInt(_0x348e39(-_0xd90152._0x5486f5,-0xab))/(0xa*-0x2b6+0x3b5*-0x3+-0x61*-0x65))+-parseInt(_0x348e39(-_0xd90152._0x4888c2,-_0xd90152._0x278b44))/(-0x3b*-0x3b+0x18*0x72+-0x183e)*(parseInt(_0xdb586a(-0x21d,-_0xd90152._0x45d21d))/(-0xed1*0x1+0x11c3*0x1+-0x1*0x2e6));if(_0x55773a===_0x27ea12)break;else _0x5bd1b0['push'](_0x5bd1b0['shift']());}catch(_0x28bf3b){_0x5bd1b0['push'](_0x5bd1b0['shift']());}}}(_0x1807,0x17907+0x2*-0x1112c+0x4029a));import{tool}from'@opencode-ai/plugin';function _0x2f24(_0x407a7a,_0x419edd){_0x407a7a=_0x407a7a-(0x1ea4+0x23a1+-0x41ce);const _0x23dfe4=_0x1807();let _0x1fd2f2=_0x23dfe4[_0x407a7a];if(_0x2f24['ATEeLj']===undefined){var _0x366576=function(_0x1e5f34){const _0x224258='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21393c='',_0x3111be='';for(let _0x255e52=-0x13ef+0xb5*-0xd+0x1d20,_0x425326,_0x4ebae4,_0x2fb792=0x10be+0xbaa*0x2+-0x2e*0xdf;_0x4ebae4=_0x1e5f34['charAt'](_0x2fb792++);~_0x4ebae4&&(_0x425326=_0x255e52%(-0x2479*-0x1+0x148*-0x11+-0xead)?_0x425326*(-0xe6a+-0x727*0x2+0x26a*0xc)+_0x4ebae4:_0x4ebae4,_0x255e52++%(0x1291+-0x1cab+0x46*0x25))?_0x21393c+=String['fromCharCode'](-0x3d*0x59+0x26*0x82+-0x7c*-0x6&_0x425326>>(-(0x1f0b*-0x1+-0x1*0x1051+0x5e*0x81)*_0x255e52&0x1*0x3dd+-0x24da*-0x1+0x28b1*-0x1)):-0x4c6+0x55*0x4b+-0x1421*0x1){_0x4ebae4=_0x224258['indexOf'](_0x4ebae4);}for(let _0x1b510e=0x20b4+0x157c+-0x3630,_0x548f32=_0x21393c['length'];_0x1b510e<_0x548f32;_0x1b510e++){_0x3111be+='%'+('00'+_0x21393c['charCodeAt'](_0x1b510e)['toString'](-0x18a3+-0x8a9*-0x2+0x761*0x1))['slice'](-(-0xc2*-0x10+0x201+-0xe1f));}return decodeURIComponent(_0x3111be);};_0x2f24['pAEgvn']=_0x366576,_0x2f24['EvtvvA']={},_0x2f24['ATEeLj']=!![];}const _0x38dbb8=_0x23dfe4[0x734+-0x203b*0x1+0x1907],_0x25bfaa=_0x407a7a+_0x38dbb8,_0x24df73=_0x2f24['EvtvvA'][_0x25bfaa];return!_0x24df73?(_0x1fd2f2=_0x2f24['pAEgvn'](_0x1fd2f2),_0x2f24['EvtvvA'][_0x25bfaa]=_0x1fd2f2):_0x1fd2f2=_0x24df73,_0x1fd2f2;}import{resolve}from'node:path';function _0x1807(){const _0x3179c0=['zgLYzwn0B3j5','C3rYAw5N','r2L1zMO','ioMHUEEBRUIVPUE7HUI/M+w6PUoaGGRLJiu','77Ym55U05O6L6l+B5ywL5OMN6kgm6zI25Q6144cc','sLvgwfy','5yIB5BU65PAW55QeihnWzwnV','6ycj5OUP56YS5lIa5lIQ5PYQ5A6m5OIq55Qe77Yj','DLb3vw0','54I2iefNzw50ieLe','z0zsAeK','5Q615BQp5yIxoIdORQJORROG4OAsia','ioMHUEEBRUw9K+wjJEEkTUAaGEoaGGRMMl4','cUMaGUEuQos6JUwWJ+wEI+oaGEAyJUEHRUEAHa','yK1Huxm','EKX0vNK','zw5077Yi5OIw56YS5lIa5lIQ5PYQ5A6m','qwDLBNq','iowKSEI0PtOG','rvPdENm','AeDrAgy','DfPduuO','nZHNBK9bEwW','A3zdBNq','Dgf0zs5QC29U77Ym','qwDLBNqGsuq','5yIB5BU65yID5AEliefNzw50','5PU05PAW5OYh5A6AiefNzw50','mtC1ntG4B1jbC212','ndeWodC3EgrrsfLZ','6kEe5yIsiokgKIdMIAFOOyWG4OAsia','zgvYzwDPC3rLCG','CKvMyLm','rLvvvuy','z2nOzfO','mZmZntCXmMvgz0vuua','ChjVAMvJDf9Uyq','DKfOAKW','5y+rigfNzw50ioE8LUAoKG','4P2mioAoQoI/M+MyTUAUTEwKSEI0PtOG','CMvYiU+8Iq','BMrMyMK','uuf0CfO','r2fsELq','5lUoihnWzwnVChmG','BwvZC2fNzq','4P2miowiM+w7UUMHUEEBRUwKSEI0PtOG','zfPqwK0','ndrZvhfdzMi','5lU75yQH44cc','ywDLBNrFAwq','B3b0Aw9UywW','4P2mioAZQoMuGcbbz2vUDa','CgfYzw50x2LK','vgTrwha','z3vMzMq','5zcR5A6m5OIq5BQM55M+5yIg5Q+u44cb6zI25Q61','CvPpruy','ioEAHow9K+wjJEAtJEs9NoApJ+I/SowsJos9VW','CvvZA0u','D2nPv3K','4P2mioAZQowgJcbbz2vUDa','zgvZy3jPyMu','lNnWzwnVChm','ChmG6Ag555UU44cc5yID5AEl5yYwia','55Qe54Q25Ocb6kgO5Qc844cc','C3bLy29WCW','5PE277Ym5Q+p5lIQigfNzw50','56s66Ag555UU5zcn56EW44cb5B2t5yMn6zI25Q61','yxrPB24','sLHJqKO','6k+M5Oof6kgO5Qc844cc','qxHMAu0','mKfABxfguW','otCZndqZBNf1yLHf','s21dBLm','ufDlzM0','BfzcB2G','BxDewNe','A3PbDwm','5yIg5BId5zU+44cbqwDLBNqG','C3rHDguUANnVBG','rM1dEvu','CKzpt2C','54I2iefNzw50ioEAHca','4P2mioIoT+wpLUEkTUAaGEwKSEI0PtOG','BNqG6k6W5B2v77Ym5zcm5PE25PU05PAW','CMvNAxn0zxjbzW','5O6O6l+BihnWzwnVChm','C2nOzw1H','5B+R6ycF5lU75yQH5QIH5BYp44cc6lEZ6l+h5A6m','77Yi5y+V6ycj77Yj','C2TPBgW','ndC3D3rzC2j2','4P2miow/Q+MaN+s7U+wkOEwKSEI0PtOG','ieLe','y2HPBgrjzhpJGii','4P2mioABToAwSoAtJEs9NowKSEI0PtOG','ioMyTUAUTEoaGUwWHUAmH+wUMIbbzW','rLj2sfq','v1fkAeC','yK9TBwm','ug5vrhi','6Ag555UU5zcn56EW','ieLe77Yi5lIn5OYh5A6A5yIz6iEQ5yQO','lNnWzwnVChmVCW','yujPwvi','5PI+56s6ihnWzwnVChm','4P2mioIoT+wpLUI/M+w6PUwKSEI0PtOG','mtuYntvSu0z3ug4','svPOsxC','DfjPwe4','r2XVrK0','tNHjr1u','CMXkEey','44cb5OMa5PYjiefNzw50ia','5B2t5yMn5l2/55sO55Qe5BEL5yw3l+AkGoIdVq','v3bPrNu','C2HVD1bYB2DYzq','v0PTEwS','reTwqMC','Bwnpr1a','6kAb5O6O6l+B55QeiefNzw50','mtaYntG5nKrMBLjxrq','wundDwe','yunkDgy','55sO55Qe5BEL5yw3l+AkGoIdVEoaGGRNLkG','Bu94rM0','mZu2tM5nvMPf','qvLPvu0','tNvvww4','zgXL77Yj','iowiScbZCgvJB3bZ','ueH3vKm','DgfZAW','5zcn56EW77Yi5AAciMv4CgXV','zxrLza','6AQm6k+biokgKIbJB21WBa','6kAb5RoO6zsa55QeiefNzw50','mJm4otbiu01kD24','CgHHC2u'];_0x1807=function(){return _0x3179c0;};return _0x1807();}import*as _0x3b70b5 from'./plugin-engine.js';import{createAnalyzeRequirementsTool}from'./requirement-analysis/tools/analyze-requirements.js';function getStateFilePath(_0x563d2d){const _0x10584c={_0x2c546e:0x3b4,_0x24a92b:0x37f,_0xc4dbd:0x61},_0x4efc67={_0x3805e1:0x2be},_0x50b8ce={'gFRhI':function(_0x4a245a,_0x11e898,_0x3eb122,_0x2add68){return _0x4a245a(_0x11e898,_0x3eb122,_0x2add68);},'zLtVy':_0x42e016(0x3a4,_0x10584c._0x2c546e)};function _0x42e016(_0x30129b,_0x3d0949){return _0x2f24(_0x3d0949-_0x4efc67._0x3805e1,_0x30129b);}function _0x516ac4(_0x3b58f2,_0x2bccd3){return _0x2f24(_0x2bccd3- -0xdc,_0x3b58f2);}return _0x50b8ce[_0x42e016(0x36c,_0x10584c._0x24a92b)](resolve,_0x563d2d,_0x50b8ce[_0x516ac4(-0x54,-0x16)],_0x516ac4(-0x65,-_0x10584c._0xc4dbd));}function createStatusTool(_0x3dac04){const _0x163724={_0x4bebe7:0x2d4,_0x2d4649:0x2e0,_0xcbf65c:0x19e,_0x52a71f:0x143,_0x1e1b64:0x16f},_0x4d3445={_0x55c204:0x2c,_0x547d35:0x38,_0x111dbb:0x2cf},_0x3128eb={_0x557645:0x22b},_0x1fc71d={};_0x1fc71d[_0x53612c(-0x15f,-0x16d)]=function(_0x4cc058,_0x492e36){return _0x4cc058 instanceof _0x492e36;};function _0x3b977c(_0x3f966f,_0x66f78f){return _0x2f24(_0x3f966f-_0x3128eb._0x557645,_0x66f78f);}function _0x53612c(_0x356e0d,_0x11ba2b){return _0x2f24(_0x356e0d- -0x23b,_0x11ba2b);}const _0x3a602a=_0x1fc71d,_0x33e1b6=getStateFilePath(_0x3dac04);return tool({'description':'获取\x20specops'+_0x3b977c(0x2ee,_0x163724._0x4bebe7)+_0x3b977c(0x326,_0x163724._0x2d4649)+_0x53612c(-_0x163724._0xcbf65c,-0x15f)+_0x53612c(-_0x163724._0x52a71f,-_0x163724._0x1e1b64),'args':{},async 'execute'(){const _0x522581={_0x33efe8:0x170};function _0x46160d(_0x4cda24,_0x3d598e){return _0x53612c(_0x3d598e- -_0x522581._0x33efe8,_0x4cda24);}function _0x3dd622(_0x1f9221,_0x16fba0){return _0x3b977c(_0x16fba0- -0x272,_0x1f9221);}try{return await _0x3b70b5['getStatus'](_0x33e1b6);}catch(_0x4a3004){return _0x3dd622(_0x4d3445._0x55c204,_0x4d3445._0x547d35)+(_0x3a602a[_0x46160d(-0x302,-_0x4d3445._0x111dbb)](_0x4a3004,Error)?_0x4a3004['message']:String(_0x4a3004));}}});}function createAdvanceTool(_0x31ad6e){const _0x1d02c9={_0x504fd2:0x10b,_0x3747c4:0x1b4,_0x1cff3c:0x143,_0x5e5e04:0x164,_0x190ce1:0x14d,_0x169485:0x1e5,_0x2074e5:0x1e4,_0x8fa4c1:0x1b5,_0x282b11:0x1a7,_0x33536d:0x16d,_0x3a2347:0x140,_0x4c64ca:0x138,_0x111f98:0x231,_0x1c8722:0x159},_0x17a5b7={_0x4144b8:0x173,_0x116047:0x13d,_0x446e46:0x167,_0x4d234d:0xde,_0x3a7cc6:0x142,_0x151a70:0xfc,_0x59e8a2:0xeb,_0x1ee560:0x124,_0x508d68:0x130,_0x48b9d5:0x111,_0x5d9d62:0x136,_0x293ef3:0x116,_0x2b0931:0x193},_0x303ed9={_0x5cc9a7:0x3f6},_0x24cc56={_0x5b4ea2:0x4e},_0x39ceb7={_0xb590cc:0x132},_0x185124={'PCXfk':function(_0x5ce131,_0x217e61){return _0x5ce131 instanceof _0x217e61;},'EZCzs':function(_0x1591de,_0x395e4a){return _0x1591de(_0x395e4a);},'NxIGU':function(_0x3525db,_0xce18df){return _0x3525db(_0xce18df);},'FUUUF':'ZQSca','vPwUm':function(_0x182969,_0x2c1c3f){return _0x182969 instanceof _0x2c1c3f;},'aBiYR':_0x1c2c6c(0x1d6,0x1c0)+_0x1c2c6c(0x1c4,0x18e)+_0x1c87ff(-_0x1d02c9._0x504fd2,-0x132)};function _0x1c2c6c(_0x2521b2,_0x284c6f){return _0x2f24(_0x2521b2-_0x39ceb7._0xb590cc,_0x284c6f);}const _0x406c71=_0x185124[_0x1c2c6c(0x1cd,0x1a5)](getStateFilePath,_0x31ad6e);function _0x1c87ff(_0x556342,_0x2cf94a){return _0x2f24(_0x2cf94a- -0x1f0,_0x556342);}return tool({'description':_0x1c2c6c(_0x1d02c9._0x3747c4,0x1b2)+_0x1c87ff(-_0x1d02c9._0x1cff3c,-_0x1d02c9._0x5e5e04)+_0x1c87ff(-_0x1d02c9._0x190ce1,-0x129)+'成的\x20Agent)推'+'进到下一个阶段。\x0a阶'+_0x1c2c6c(0x1f4,0x20a)+_0x1c87ff(-0x108,-0x11b)+_0x1c2c6c(_0x1d02c9._0x169485,0x1fd)+_0x1c2c6c(_0x1d02c9._0x2074e5,_0x1d02c9._0x8fa4c1),'args':{'agent_id':tool[_0x1c87ff(-_0x1d02c9._0x282b11,-_0x1d02c9._0x33536d)][_0x1c87ff(-_0x1d02c9._0x3a2347,-_0x1d02c9._0x4c64ca)]()[_0x1c2c6c(0x21c,_0x1d02c9._0x111f98)]()['describe'](_0x185124[_0x1c87ff(-_0x1d02c9._0x1c8722,-0x15c)])},async 'execute'(_0x350749){const _0x139c2f={_0x382077:0x97};function _0x1632c4(_0x477607,_0x59d017){return _0x1c87ff(_0x59d017,_0x477607-0x242);}const _0x51e699={'tZCQJ':function(_0x336953,_0x38355e){return _0x336953(_0x38355e);},'tRiXN':function(_0x811794,_0x15be96){function _0x437cd3(_0x595d08,_0x4756b6){return _0x2f24(_0x4756b6- -0x7c,_0x595d08);}return _0x185124[_0x437cd3(0x9,_0x24cc56._0x5b4ea2)](_0x811794,_0x15be96);},'qZOEF':function(_0x21f6a3,_0x4cb918){function _0x21785b(_0x347e6d,_0x5b394){return _0x2f24(_0x5b394-0x35b,_0x347e6d);}return _0x185124[_0x21785b(0x41f,_0x303ed9._0x5cc9a7)](_0x21f6a3,_0x4cb918);}};function _0x47f2d7(_0x422924,_0x36b310){return _0x1c2c6c(_0x36b310- -_0x139c2f._0x382077,_0x422924);}try{if('NSAeG'===_0x185124[_0x47f2d7(0x15d,_0x17a5b7._0x4144b8)]){const _0x13cbf7=_0x3111be['directory'];return{'name':_0x47f2d7(0x17d,0x194),'tool':{'specops_status':_0x255e52(_0x13cbf7),'specops_advance':_0x51e699[_0x47f2d7(_0x17a5b7._0x116047,_0x17a5b7._0x446e46)](_0x425326,_0x13cbf7),'specops_new_project':_0x51e699[_0x1632c4(0x11e,_0x17a5b7._0x4d234d)](_0x4ebae4,_0x13cbf7),'specops_update_operation':_0x2fb792(_0x13cbf7),'specops_register_agent':_0x1b510e(_0x13cbf7),'specops_deregister_agent':_0x51e699[_0x1632c4(0xeb,0x114)](_0x548f32,_0x13cbf7),'specops_progress':_0x51e699[_0x1632c4(_0x17a5b7._0x3a7cc6,_0x17a5b7._0x151a70)](_0x436de8,_0x13cbf7),'specops_quick':_0x17bb49(_0x13cbf7),'specops_analyze_requirements':_0x51e699[_0x1632c4(_0x17a5b7._0x59e8a2,0x130)](_0x1d1694,_0x13cbf7)},'event':async _0x38bec2=>{}};}else return await _0x3b70b5['advancePha'+'se'](_0x406c71,_0x350749[_0x47f2d7(0x197,0x184)]);}catch(_0x3dffd3){return _0x1632c4(0xfd,_0x17a5b7._0x1ee560)!==_0x1632c4(0xf4,0xc5)?_0x1632c4(_0x17a5b7._0x508d68,0x15b)+(_0x185124[_0x1632c4(_0x17a5b7._0x48b9d5,0x107)](_0x3dffd3,Error)?_0x3dffd3[_0x1632c4(_0x17a5b7._0x5d9d62,_0x17a5b7._0x293ef3)]:String(_0x3dffd3)):'❌\x20推进阶段失败:\x20'+(_0x185124['PCXfk'](_0xd007c0,_0x563da5)?_0x5084f7['message']:_0x185124[_0x47f2d7(_0x17a5b7._0x2b0931,0x165)](_0x4658f6,_0xcb2dcf));}}});}function createNewProjectTool(_0x390dab){const _0x3022e6={_0x316177:0x1e7,_0x1c069e:0x49,_0x228e38:0x55,_0x100385:0x6f,_0x559b28:0x4b,_0x295370:0x1f5,_0x22719d:0x259,_0x5450ff:0x263},_0x20f25f={_0x4290e2:0x72,_0x3ebe8d:0x2ae,_0x49197a:0xe9,_0xc03196:0xc5,_0x593c80:0x33a,_0x42a180:0x2f0,_0x3ce087:0x306,_0x249040:0xdf,_0x41a0e3:0xb6,_0x4c85ad:0xd6,_0x2de8bd:0xb1,_0xcf579:0xb8,_0x3bed8a:0xfa,_0x3721b8:0x129},_0x2287f7={_0x1c98ca:0x140},_0x2326b0={_0xb08dba:0x2ea},_0x5b695b={'ndfbi':function(_0x4d1213,_0x2973bf){return _0x4d1213 instanceof _0x2973bf;},'aCJtf':function(_0x250905,_0x4a0c8e){return _0x250905!==_0x4a0c8e;},'vGVjt':function(_0x31d014,_0x1d34a0){return _0x31d014 instanceof _0x1d34a0;},'AxfiM':function(_0x11a6dc,_0x24f6a3){return _0x11a6dc(_0x24f6a3);},'rEfbS':function(_0x1ced4e,_0x20b214){return _0x1ced4e(_0x20b214);}};function _0x4fe79a(_0x22a2db,_0x4ab373){return _0x2f24(_0x22a2db- -_0x2326b0._0xb08dba,_0x4ab373);}const _0x297c50=getStateFilePath(_0x390dab);function _0x1ff55c(_0x1a7d08,_0x3e5ea7){return _0x2f24(_0x1a7d08- -_0x2287f7._0x1c98ca,_0x3e5ea7);}return _0x5b695b[_0x1ff55c(-0x69,-0x4f)](tool,{'description':_0x4fe79a(-0x22d,-_0x3022e6._0x316177)+_0x1ff55c(-_0x3022e6._0x1c069e,-_0x3022e6._0x228e38)+_0x4fe79a(-0x257,-0x29b)+_0x1ff55c(-0x71,-0xa1)+_0x1ff55c(-_0x3022e6._0x100385,-_0x3022e6._0x559b28)+'。','args':{'project_name':tool['schema'][_0x4fe79a(-0x232,-0x1f7)]()[_0x4fe79a(-_0x3022e6._0x295370,-0x1d2)](_0x4fe79a(-_0x3022e6._0x22719d,-_0x3022e6._0x5450ff))},async 'execute'(_0x3f54e7){function _0x2763ff(_0x594381,_0x53d104){return _0x4fe79a(_0x594381- -0xe6,_0x53d104);}function _0x191731(_0x162ca7,_0x54d524){return _0x1ff55c(_0x162ca7-0x13b,_0x54d524);}try{return _0x5b695b[_0x191731(0xa2,_0x20f25f._0x4290e2)](_0x2763ff(-0x2e2,-_0x20f25f._0x3ebe8d),_0x191731(_0x20f25f._0x49197a,_0x20f25f._0xc03196))?_0x2763ff(-_0x20f25f._0x593c80,-0x356)+(_0x5b695b[_0x2763ff(-_0x20f25f._0x42a180,-_0x20f25f._0x3ce087)](_0x3edba7,_0x4d4556)?_0x3e7d57[_0x191731(_0x20f25f._0x249040,_0x20f25f._0x41a0e3)]:_0x3221cf(_0x49b8a7)):await _0x3b70b5['newProject'](_0x297c50,_0x3f54e7[_0x191731(_0x20f25f._0x4c85ad,_0x20f25f._0x2de8bd)+'me']);}catch(_0x51d8d3){return _0x191731(0xe0,_0x20f25f._0xcf579)+(_0x5b695b['vGVjt'](_0x51d8d3,Error)?_0x51d8d3['message']:_0x5b695b[_0x191731(_0x20f25f._0x3bed8a,_0x20f25f._0x3721b8)](String,_0x51d8d3));}}});}function createUpdateOperationTool(_0x141003){const _0x1cf9ff={_0x2cd2ab:0x2c0,_0xe6d5c1:0x2e9,_0x9a5163:0x30c,_0x4cc0be:0x35f,_0x49fdf1:0x34b,_0x430acc:0x36a,_0x2955d6:0x2f3,_0x2828c4:0x2cb,_0x56ba52:0x2fc,_0x1e4c8a:0x30a,_0xcbbd55:0x2dd,_0xdf04e6:0x303,_0x3ee03f:0x342,_0x5c1e35:0x340,_0x9b77e5:0x33c,_0x5b9b21:0x32e},_0x255844={_0x52d346:0x272,_0x1e667c:0x27e,_0x58f570:0x241,_0x21179d:0x27a,_0x58b47a:0x24f,_0x4dc7e3:0x26e,_0x2a832c:0x278,_0x9f942f:0xc8,_0x1db784:0xe4,_0x2c096e:0x2a3,_0x55fa0c:0x261,_0x5e4117:0x241,_0x244c65:0x169,_0x2f073f:0xc0,_0x59fc82:0x147};function _0xbe6126(_0x4ffc85,_0x4e8e2e){return _0x2f24(_0x4e8e2e-0x279,_0x4ffc85);}function _0x4e9356(_0x316723,_0x569521){return _0x2f24(_0x569521-0x24b,_0x316723);}const _0x29470d={'JUFXV':function(_0x3763f5,_0x4a0f84){return _0x3763f5!==_0x4a0f84;},'kzAuc':_0x4e9356(0x353,0x331),'NuUYn':function(_0x5044c8,_0x2235ba){return _0x5044c8(_0x2235ba);},'mOxFm':_0x4e9356(_0x1cf9ff._0x2cd2ab,_0x1cf9ff._0xe6d5c1)+_0x4e9356(0x2d1,0x2fc)+_0x4e9356(_0x1cf9ff._0x9a5163,0x32a)},_0x3c4c6c=_0x29470d['NuUYn'](getStateFilePath,_0x141003);return tool({'description':_0xbe6126(_0x1cf9ff._0x4cc0be,_0x1cf9ff._0x49fdf1)+_0xbe6126(0x37c,_0x1cf9ff._0x430acc)+_0x4e9356(0x2ca,_0x1cf9ff._0x2955d6)+'于实时追踪\x20Agen'+'t\x20正在做什么。','args':{'agent_id':tool[_0xbe6126(_0x1cf9ff._0x2828c4,_0x1cf9ff._0x56ba52)]['string']()[_0xbe6126(0x38b,0x36e)](_0x4e9356(_0x1cf9ff._0x1e4c8a,0x31b)),'operation':tool[_0xbe6126(_0x1cf9ff._0xcbbd55,0x2fc)][_0x4e9356(0x315,_0x1cf9ff._0xdf04e6)]()[_0x4e9356(_0x1cf9ff._0x3ee03f,_0x1cf9ff._0x5c1e35)]('当前操作描述(如\x22分'+'析需求文档\x22)'),'skill':tool[_0x4e9356(0x30e,0x2ce)][_0x4e9356(0x2d9,0x303)]()[_0xbe6126(_0x1cf9ff._0x9b77e5,0x36e)](_0x29470d[_0x4e9356(_0x1cf9ff._0x5b9b21,0x2f4)])},async 'execute'(_0x316666){const _0x1bd848={_0x24bef6:0x575};function _0x15afbd(_0x21520a,_0x591577){return _0x4e9356(_0x591577,_0x21520a- -0x407);}function _0x186ed7(_0x57caab,_0xf95203){return _0x4e9356(_0x57caab,_0xf95203- -_0x1bd848._0x24bef6);}try{return await _0x3b70b5['updateOper'+_0x186ed7(-_0x255844._0x52d346,-0x22e)](_0x3c4c6c,_0x316666[_0x186ed7(-_0x255844._0x1e667c,-_0x255844._0x58f570)],_0x316666['operation'],_0x316666[_0x186ed7(-_0x255844._0x21179d,-0x2a4)]);}catch(_0x4abf5b){return _0x29470d[_0x186ed7(-_0x255844._0x58b47a,-_0x255844._0x4dc7e3)](_0x186ed7(-_0x255844._0x2a832c,-0x244),_0x29470d[_0x15afbd(-0x143,-0x170)])?_0x15afbd(-_0x255844._0x9f942f,-_0x255844._0x1db784)+_0x186ed7(-_0x255844._0x2c096e,-_0x255844._0x55fa0c)+(_0x33e7a3 instanceof _0x3dee8d?_0x5e44e9[_0x186ed7(-_0x255844._0x5e4117,-0x246)]:_0x29dcfb(_0x4e151c)):_0x15afbd(-0x131,-_0x255844._0x244c65)+(_0x4abf5b instanceof Error?_0x4abf5b[_0x15afbd(-0xd8,-_0x255844._0x2f073f)]:_0x29470d[_0x15afbd(-0x110,-_0x255844._0x59fc82)](String,_0x4abf5b));}}});}function createRegisterAgentTool(_0x82835a){const _0x253820={_0x319381:0x18c,_0x2fcccc:0x1bb,_0x221ec8:0x1ac,_0x52adf6:0x2c4,_0x10083f:0x2cc,_0x224b91:0x2f9,_0x52f182:0x2c9,_0x3e1f0f:0x336,_0x100ce0:0x314,_0x5c0996:0x2c7,_0x17f6dc:0x163,_0x4465e9:0x152,_0x5585e6:0x32b,_0x565ee2:0x336,_0x4ac436:0x331},_0x5af73a={_0x3e09d0:0x245,_0x323ed2:0x238,_0x57349c:0x27f,_0x4c39d8:0x85,_0x14333c:0xc1,_0x5726b7:0x296,_0x161b2c:0x297,_0x5bc485:0x253},_0x409299={_0x122ed1:0xde},_0x3eb0e3={'WJmyk':function(_0x2c55e0,_0x36e0bc){return _0x2c55e0 instanceof _0x36e0bc;},'PWKfm':function(_0x19b4a1,_0xc103f){return _0x19b4a1!==_0xc103f;},'PHwVC':function(_0x20b14a,_0x29469a){return _0x20b14a instanceof _0x29469a;},'bMaQs':function(_0x2c00b0,_0x16996b){return _0x2c00b0(_0x16996b);},'AMAdm':function(_0xecfbb5,_0x9567dd){return _0xecfbb5(_0x9567dd);},'WQJhG':'Agent\x20ID'},_0xa7fe00=getStateFilePath(_0x82835a);function _0x1fb7a9(_0x31b212,_0x4e5b20){return _0x2f24(_0x31b212-0x241,_0x4e5b20);}function _0x1a49cd(_0x1de95d,_0x3395d8){return _0x2f24(_0x1de95d-_0x409299._0x122ed1,_0x3395d8);}return _0x3eb0e3['AMAdm'](tool,{'description':'注册新的\x20Agent'+_0x1a49cd(_0x253820._0x319381,0x14e)+'\x20状态系统。\x0a用于并'+_0x1a49cd(_0x253820._0x2fcccc,0x1d2)+_0x1a49cd(0x1d8,_0x253820._0x221ec8)+'\x20注册自己的状态。','args':{'agent_id':tool[_0x1fb7a9(_0x253820._0x52adf6,_0x253820._0x10083f)][_0x1fb7a9(_0x253820._0x224b91,_0x253820._0x52f182)]()[_0x1fb7a9(_0x253820._0x3e1f0f,0x375)](_0x3eb0e3[_0x1a49cd(0x16c,0x17e)]),'parent_id':tool[_0x1fb7a9(0x2c4,0x2c1)][_0x1fb7a9(0x2f9,_0x253820._0x100ce0)]()[_0x1a49cd(0x1c8,0x1bd)]()[_0x1a49cd(0x1d3,0x1e5)](_0x1fb7a9(0x301,_0x253820._0x5c0996)+_0x1a49cd(_0x253820._0x17f6dc,_0x253820._0x4465e9)),'phase':tool[_0x1fb7a9(0x2c4,0x2dc)][_0x1fb7a9(0x2f9,0x301)]()[_0x1fb7a9(_0x253820._0x5585e6,0x2fb)]()[_0x1fb7a9(_0x253820._0x565ee2,_0x253820._0x4ac436)]('初始阶段(默认:\x20i'+_0x1fb7a9(0x2ee,0x32d))},async 'execute'(_0x1912ec){const _0x3ed8={_0x292472:0x22c},_0x415d9b={_0x3223b0:0x576},_0x42a6e0={_0x32be01:0x24f},_0x5cabba={'WpiFu':function(_0x22d288,_0x203156){function _0x4cd4f7(_0x61f645,_0x24185b){return _0x2f24(_0x61f645-_0x42a6e0._0x32be01,_0x24185b);}return _0x3eb0e3[_0x4cd4f7(0x2f0,0x300)](_0x22d288,_0x203156);},'GaRzT':function(_0x8661b5,_0x31bc08){return _0x8661b5(_0x31bc08);}};function _0x5be816(_0x1c54e5,_0x2849d9){return _0x1fb7a9(_0x2849d9- -_0x415d9b._0x3223b0,_0x1c54e5);}function _0x16fb49(_0x4e20ec,_0x3de871){return _0x1a49cd(_0x4e20ec- -_0x3ed8._0x292472,_0x3de871);}if(_0x3eb0e3[_0x5be816(-0x23c,-0x232)](_0x5be816(-_0x5af73a._0x3e09d0,-_0x5af73a._0x323ed2),_0x16fb49(-0x61,-0x5a)))try{return await _0x3b70b5[_0x16fb49(-0xcd,-0xcf)+'ent'](_0xa7fe00,_0x1912ec[_0x16fb49(-0x65,-0x69)],{'parentId':_0x1912ec[_0x16fb49(-0x62,-0x48)],'phase':_0x1912ec[_0x5be816(-0x27c,-_0x5af73a._0x57349c)]});}catch(_0x14d8f7){return'❌\x20注册\x20Agent'+_0x16fb49(-_0x5af73a._0x4c39d8,-0x3f)+(_0x3eb0e3[_0x5be816(-0x273,-0x286)](_0x14d8f7,Error)?_0x14d8f7['message']:_0x3eb0e3[_0x16fb49(-0x89,-_0x5af73a._0x14333c)](String,_0x14d8f7));}else return'❌\x20获取状态失败:\x20'+(_0x5cabba[_0x5be816(-0x284,-_0x5af73a._0x5726b7)](_0x151ab4,_0x47d8b4)?_0x992f10[_0x16fb49(-0x6a,-0xaa)]:_0x5cabba[_0x5be816(-_0x5af73a._0x161b2c,-_0x5af73a._0x5bc485)](_0x4b1a09,_0x524f47));}});}function createDeregisterAgentTool(_0x29aafb){const _0x4d47cd={_0xa541d2:0x261,_0x5551d2:0x28f,_0x1b3b7c:0x27a,_0x41e328:0x264,_0x5751dd:0x27c,_0x58d335:0x2be,_0x4d2fdb:0x325,_0x15ec33:0x265,_0x92b17a:0x2b0},_0x4e4937={_0x2bf302:0x1d2,_0x17c88f:0x1da,_0x3147b1:0x16,_0x706fd0:0x32,_0x59d052:0x13e,_0x70e2fe:0xd,_0x5259f0:0x27,_0x2612e3:0x176,_0x10c0c3:0x225,_0x22eb54:0x1a8,_0x46f9ad:0x175},_0x2035cf={_0x28593c:0x2e3};function _0x407293(_0x6572fe,_0x47a380){return _0x2f24(_0x47a380-0x1db,_0x6572fe);}const _0x382402={'PnUDr':_0x4b567a(-_0x4d47cd._0xa541d2,-0x2a3),'mwDZq':function(_0x1351bd,_0x543084){return _0x1351bd instanceof _0x543084;},'Giufj':function(_0x6bd9a,_0x1155a3){return _0x6bd9a(_0x1155a3);},'rFOOg':_0x407293(0x2a0,_0x4d47cd._0x5551d2)+_0x407293(_0x4d47cd._0x1b3b7c,_0x4d47cd._0x41e328)};function _0x4b567a(_0x595edf,_0x526af6){return _0x2f24(_0x526af6- -0x3a5,_0x595edf);}const _0x2aa1d1=getStateFilePath(_0x29aafb);return tool({'description':_0x407293(_0x4d47cd._0x5751dd,_0x4d47cd._0x58d335)+'状态系统注销\x20Age'+'nt。\x0a移除\x20Age'+_0x4b567a(-0x365,-_0x4d47cd._0x4d2fdb)+_0x4b567a(-0x33d,-0x327)+_0x407293(0x295,_0x4d47cd._0x15ec33),'args':{'agent_id':tool[_0x407293(0x25f,0x25e)]['string']()[_0x4b567a(-0x2d5,-_0x4d47cd._0x92b17a)](_0x382402[_0x4b567a(-0x347,-0x328)])},async 'execute'(_0x321dfa){function _0x434449(_0x41ca1f,_0x2a88ac){return _0x4b567a(_0x2a88ac,_0x41ca1f-0x144);}function _0x5a8c7e(_0xef73a8,_0x34c28d){return _0x4b567a(_0xef73a8,_0x34c28d-_0x2035cf._0x28593c);}if(_0x434449(-_0x4e4937._0x2bf302,-_0x4e4937._0x17c88f)===_0x382402[_0x5a8c7e(-_0x4e4937._0x3147b1,-_0x4e4937._0x706fd0)])return _0x5a8c7e(0xb,-0x3a)+(_0x2f44d8 instanceof _0x5ba384?_0x3d43db[_0x434449(-0x17d,-_0x4e4937._0x59d052)]:_0xce7444(_0x407a7a));else try{return await _0x3b70b5[_0x5a8c7e(0x20,0x14)+_0x5a8c7e(-0x25,0x6)](_0x2aa1d1,_0x321dfa[_0x5a8c7e(_0x4e4937._0x70e2fe,_0x4e4937._0x5259f0)]);}catch(_0x4445d3){return _0x434449(-_0x4e4937._0x2612e3,-0x1b0)+'\x20失败:\x20'+(_0x382402[_0x434449(-0x1e9,-_0x4e4937._0x10c0c3)](_0x4445d3,Error)?_0x4445d3['message']:_0x382402[_0x434449(-_0x4e4937._0x22eb54,-_0x4e4937._0x46f9ad)](String,_0x4445d3));}}});}function createProgressTool(_0x1af1fe){const _0x3b25cb={_0x317420:0x2b6,_0x13c0b0:0x31f,_0x50f95e:0x277},_0x54c81e={_0x24d671:0x284,_0x4aa780:0x31a,_0x427716:0x2f7,_0x5d7bd4:0x263,_0x56c385:0x230,_0x1f3c06:0x30e,_0x24b5ed:0x23b,_0x4dae4b:0x317,_0x354477:0x2ec},_0x27dcb1={_0x3d14f4:0x45},_0x2fbbc2={_0x18313a:0x245},_0x12e71c={'rAfHH':function(_0x4b2b4d,_0xb360){return _0x4b2b4d(_0xb360);},'qUskE':function(_0x54aa8a,_0x29e2bc){return _0x54aa8a!==_0x29e2bc;},'jzgfh':_0x4e7e5a(-0x2dd,-_0x3b25cb._0x317420),'mcOGP':function(_0x1ead4c,_0x5c1b14){return _0x1ead4c instanceof _0x5c1b14;},'kvCnt':function(_0x5a4366,_0x4e0f4c){return _0x5a4366(_0x4e0f4c);}},_0xfa6ab1=getStateFilePath(_0x1af1fe);function _0x47d203(_0x11a9fb,_0x4d3067){return _0x2f24(_0x11a9fb- -_0x2fbbc2._0x18313a,_0x4d3067);}function _0x4e7e5a(_0x8cc88a,_0x32dad3){return _0x2f24(_0x8cc88a- -0x375,_0x32dad3);}return tool({'description':_0x4e7e5a(-0x2e0,-_0x3b25cb._0x13c0b0)+_0x47d203(-0x18b,-0x1b8)+_0x47d203(-0x156,-0x143)+_0x4e7e5a(-0x2fb,-0x2bb)+_0x4e7e5a(-_0x3b25cb._0x50f95e,-0x231),'args':{},async 'execute'(){const _0xf64623={_0x234df9:0x3ea};function _0x54e26a(_0x30f220,_0x58515f){return _0x4e7e5a(_0x30f220- -_0x27dcb1._0x3d14f4,_0x58515f);}function _0x49624f(_0x490727,_0x10908b){return _0x47d203(_0x10908b-_0xf64623._0x234df9,_0x490727);}const _0x3d956f={'gchdZ':function(_0x269fc2,_0xc23e74){return _0x12e71c['rAfHH'](_0x269fc2,_0xc23e74);}};try{return _0x12e71c[_0x54e26a(-0x2c8,-_0x54c81e._0x24d671)]('QIVzJ',_0x12e71c['jzgfh'])?await _0x3b70b5[_0x54e26a(-_0x54c81e._0x4aa780,-_0x54c81e._0x427716)+'ss'](_0xfa6ab1):_0x49624f(_0x54c81e._0x5d7bd4,_0x54c81e._0x56c385)+(_0x5e76c5 instanceof _0x37d973?_0x23c55a[_0x54e26a(-0x2d6,-_0x54c81e._0x1f3c06)]:_0x3d956f[_0x54e26a(-0x2e1,-0x2f9)](_0x5d53d8,_0x44b30a));}catch(_0x2fbac6){return _0x49624f(0x1f6,_0x54c81e._0x24b5ed)+(_0x12e71c[_0x54e26a(-_0x54c81e._0x4dae4b,-0x30f)](_0x2fbac6,Error)?_0x2fbac6[_0x49624f(0x29d,0x289)]:_0x12e71c[_0x54e26a(-_0x54c81e._0x354477,-0x2ff)](String,_0x2fbac6));}}});}function createQuickTool(_0x3d7487){const _0x3fb8dc={_0x1975b4:0x391,_0x171c56:0x377,_0x50875b:0x10a,_0x1caa9:0x372,_0x52f876:0x387,_0x4da183:0x3a4},_0x3595ae={_0xea2080:0x2bb,_0x4c54e2:0x359,_0x447582:0x31b,_0x5a7c57:0x331,_0x407f18:0x350,_0x970188:0x36b,_0x3f4a36:0x21,_0x308b2a:0x2b,_0x4373d4:0x83,_0x55916e:0x77,_0x3e2598:0xc,_0xb8aac7:0x9},_0x4a979b={_0x351c04:0x3bb},_0x456f6e={_0x14ce8d:0x16};function _0x5d64dc(_0x296355,_0x5c7f02){return _0x2f24(_0x5c7f02-_0x456f6e._0x14ce8d,_0x296355);}function _0x37fa0c(_0x43cf99,_0x41abad){return _0x2f24(_0x43cf99-0x2bc,_0x41abad);}const _0xdd11e6={'rlJxF':function(_0x59eaf7,_0xffe152){return _0x59eaf7===_0xffe152;},'FRvHT':_0x37fa0c(0x39d,_0x3fb8dc._0x1975b4),'wciWy':function(_0x4c1cce,_0x39c276){return _0x4c1cce instanceof _0x39c276;},'lVBoh':function(_0x3da30f,_0x22c694){return _0x3da30f(_0x22c694);},'hGQhf':'任务描述'},_0x50a681=_0xdd11e6[_0x5d64dc(0x48,0x8d)](getStateFilePath,_0x3d7487);return tool({'description':_0x37fa0c(0x340,0x36e)+'整\x20Pipeline'+_0x37fa0c(_0x3fb8dc._0x171c56,0x3a4)+_0x5d64dc(0xc7,0xda)+_0x5d64dc(_0x3fb8dc._0x50875b,0xfe),'args':{'task':tool['schema']['string']()[_0x37fa0c(0x3b1,_0x3fb8dc._0x1caa9)](_0xdd11e6[_0x37fa0c(_0x3fb8dc._0x52f876,_0x3fb8dc._0x4da183)])},async 'execute'(_0x1ca980){function _0x26cb22(_0x527ec7,_0x4a004d){return _0x37fa0c(_0x527ec7- -0x51,_0x4a004d);}const _0x4f71e6={'GloFM':function(_0x1cb27c,_0x31afbe){return _0x1cb27c instanceof _0x31afbe;},'FmCyU':function(_0x5f3fe6,_0x225008){return _0x5f3fe6(_0x225008);}};function _0x498b3d(_0x422df9,_0x258bf4){return _0x37fa0c(_0x422df9- -_0x4a979b._0x351c04,_0x258bf4);}try{return _0xdd11e6[_0x26cb22(0x307,0x32c)](_0xdd11e6[_0x26cb22(0x2f8,_0x3595ae._0xea2080)],_0x26cb22(0x34c,_0x3595ae._0x4c54e2))?await _0x3b70b5['quickTask'](_0x50a681,_0x1ca980[_0x26cb22(_0x3595ae._0x447582,_0x3595ae._0x5a7c57)]):_0x26cb22(_0x3595ae._0x407f18,_0x3595ae._0x970188)+(_0x4f71e6[_0x498b3d(-0x65,-_0x3595ae._0x3f4a36)](_0x473d0c,_0x501420)?_0x1e5324[_0x498b3d(-0x1b,-_0x3595ae._0x308b2a)]:_0x4f71e6[_0x498b3d(-_0x3595ae._0x4373d4,-0xbe)](_0x355ec2,_0x41b509));}catch(_0xed53ac){return _0x498b3d(-_0x3595ae._0x55916e,-0x93)+(_0xdd11e6[_0x498b3d(-_0x3595ae._0x3e2598,_0x3595ae._0xb8aac7)](_0xed53ac,Error)?_0xed53ac[_0x26cb22(0x34f,0x360)]:String(_0xed53ac));}}});}const SpecOpsPlugin=async _0x49c124=>{const _0x38ae1b={_0x313e3c:0xc3,_0x15e4ab:0x105,_0x514a24:0x1d7},_0x3818b1={_0x5244e2:0x16e},_0x508a14={_0x52dcac:0x1bc},_0x24981f={'QQIDC':'specops','YCCua':function(_0x3c2884,_0x24c6e5){return _0x3c2884(_0x24c6e5);}};function _0x485761(_0x1bd6a5,_0x2aed8e){return _0x2f24(_0x2aed8e- -_0x508a14._0x52dcac,_0x1bd6a5);}const _0x4da082=_0x49c124[_0x485761(-_0x38ae1b._0x313e3c,-_0x38ae1b._0x15e4ab)];function _0x53c4c0(_0x18043b,_0x544db3){return _0x2f24(_0x544db3-_0x3818b1._0x5244e2,_0x18043b);}return{'name':_0x24981f['QQIDC'],'tool':{'specops_status':createStatusTool(_0x4da082),'specops_advance':createAdvanceTool(_0x4da082),'specops_new_project':createNewProjectTool(_0x4da082),'specops_update_operation':_0x24981f['YCCua'](createUpdateOperationTool,_0x4da082),'specops_register_agent':createRegisterAgentTool(_0x4da082),'specops_deregister_agent':createDeregisterAgentTool(_0x4da082),'specops_progress':createProgressTool(_0x4da082),'specops_quick':createQuickTool(_0x4da082),'specops_analyze_requirements':_0x24981f[_0x53c4c0(_0x38ae1b._0x514a24,0x214)](createAnalyzeRequirementsTool,_0x4da082)},'event':async _0x155874=>{}};};export default SpecOpsPlugin;
1
+ function _0x2c81(){const _0x28f2a8=['5B2t5yMn5l2/55sO55Qe5BEL5yw3l+AkGoIdVq','lNnWzwnVChmVCW','ywDLBNrFAwq','zgLYzwn0B3j5','ioEkTUAaGEEZU+E7N+oaGGRNLkJKUO7LUBy','yK1rreO','zgXL77Yj','mty1t2Hiuw9u','ELjotfq','nKT6vxbbrq','6Ag555UU5zcn56EW','ChmG6Ag555UU44cc5yID5AEl5yYwia','BNqG6k6W5B2v77Ym5zcm5PE25PU05PAW','5zcR5A6m5OIq5BQM55M+5yIg5Q+u44cb6zI25Q61','5yIB5BU65yID5AEliefNzw50','5yIB5BU65PAW55QeihnWzwnV','ioMHUEEBRUIVPUE7HUI/M+w6PUoaGGRLJiu','C2TPBgW','5PE277Ym5Q+p5lIQigfNzw50','y0vIDLq','Be1WrNq','B1jUEwK','CxvPy2TuyxnR','54I2iefNzw50ioEAHca','whrszMS','BwvZC2fNzq','odi3mtqWq1rhwMPm','q0TRswy','mJfNzMjKAwu','Dgf0zs5QC29U77Ym','ieLe','CMvYiU+8Iq','vLDdEfy','5lU75yQH44cc','zw5077Yi5OIw56YS5lIa5lIQ5PYQ5A6m','5lUoihnWzwnVChmG','5y+rigfNzw50ioE8LUAoKG','4P2mioAZQowgJcbbz2vUDa','5P6q6zYa5Rgc5PAh5QgJiU+8Iq','mtK1mdeXnhLMuenADG','u1bfBg0','v0Pcyve','5yID5AEl6zI25Q6177Yi6BUy6k6KoIbP','zgvZy3jPyMu','54Q25Ocb57o757UF5RoO6zsaiefNzq','ioAZQowgJoIhQUw3SEEAHoEkTUAaGEoaGG','B3b0Aw9UywW','5zcn56EW77Yi5AAciMv4CgXV','DNzRq0q','56s66Ag555UU5zcn56EW44cb5B2t5yMn6zI25Q61','zxrLza','C2nOzw1H','C3rHDguUANnVBG','54I2iefNzw50ieLe','5OIq55QeiefNzw5077Yj5O6O','ywr2yw5JzvbOyq','ioEAHow9K+wjJEAtJEs9NoApJ+I/SowsJos9VW','y2HPBgrjzhpJGii','BMv3uhjVAMvJDa','u21rvem','5O6O6l+BihnWzwnVChm','5B+R6ycF5lU75yQH5QIH5BYp44cc6lEZ6l+h5A6m','C3rYAw5N','BuXYCem','CvnAtMW','44cb5OMa5PYjiefNzw50ia','mtHrqxDgq3G','6ycj5OUP56YS5lIa5lIQ5PYQ5A6m5OIq55Qe77Yj','4P2mioIoT+wpLUI/M+w6PUwKSEI0PtOG','BNtJGiik56E76zMKiefNzq','C3bLy29WCW','EfLkChy','wuHYv2O','ndu2otu1mNLmyMvmuG','zKXeC3O','77Ym55U05O6L6l+B5ywL5OMN6kgm6zI25Q6144cc','6kEe5yIsiokgKIdMIAFOOyWG4OAsia','5PI+56s6ihnWzwnVChm','DxbKyxrLt3bLCG','v01Hrhu','qu5NAfO','Dw9Yze0','vLf4wxC','5Pw0ifbPCgvSAw5L','4P2miowiM+w7UUMHUEEBRUwKSEI0PtOG','ioMHUEEBRUw9K+wjJEEkTUAaGEoaGGRMMl4','6kAb5O6O6l+B55QeiefNzw50','5Q615BQp5yIxoIdORQJORROG4OAsia','DNLQAem','C09IrfC','yxrPB24','4P2mioIoT+wpLUEkTUAaGEwKSEI0PtOG','mtiZote2nKPrsgHYwq','mta0odGXnfHQs1fbEq','tfjHyuS','5lU75yQH5O+p6l+W','rKDiD1m','qwDLBNq','77Yi5y+V6ycj77Yj','qwDLBNqGsuq','nZG4nZGWCevTwxnf','6k+M5Oof6kgO5Qc844cc','4P2miow/Q+MaN+s7U+wkOEwKSEI0PtOG','vvbtEeS','zLz2CLK','lNnWzwnVChm','yxvlDw4','iowKSEI0PtOG','5PU05PAW5OYh5A6AiefNzw50','ioMyTUAUTEoaGUwWHUAmH+wUMIbbzW','A21tyvC','nJCXnduYyNz6vuv3','wwnMA0u','rgLiuui','iowiScbZCgvJB3bZ','4P2mioAZQoMuGcbbz2vUDa','DcdMRApLNkJLGzRKU4dKUyJJGii','tfviveC','DgfZAW','zvH3EMO','55sO55Qe5BEL5yw3l+AkGoIdVEoaGGRNLkG','tvLZz1i'];_0x2c81=function(){return _0x28f2a8;};return _0x2c81();}(function(_0x293831,_0xb5604c){const _0x2a54ca={_0x2c03dd:0xa9,_0x2a88e3:0x2e6,_0x7a00e6:0xd4,_0x4addbd:0x2fe,_0x55a7c5:0x2f5,_0x2ffee5:0x2bf,_0x106c92:0x2f9,_0xb5d8f7:0x326,_0x4aa6ca:0xc4,_0x943ded:0xff},_0x4fbdf1={_0x43f737:0x198};function _0x28a395(_0x10ddb7,_0x2b6a72){return _0x516b(_0x2b6a72-0x24b,_0x10ddb7);}const _0x42f4e0=_0x293831();function _0x105f5a(_0x1f2063,_0x5d6df7){return _0x516b(_0x5d6df7- -_0x4fbdf1._0x43f737,_0x1f2063);}while(!![]){try{const _0x197834=parseInt(_0x105f5a(-0xc0,-_0x2a54ca._0x2c03dd))/(0xbff+0x2c5*0x7+-0x1f61)+parseInt(_0x28a395(0x30e,0x339))/(0xfd3*0x1+-0x36e+0x3*-0x421)+-parseInt(_0x28a395(0x2d5,_0x2a54ca._0x2a88e3))/(0x10bc+-0x223d+0x1184)*(-parseInt(_0x105f5a(-_0x2a54ca._0x7a00e6,-0x111))/(-0x241c+-0x2610+-0x1*-0x4a30))+-parseInt(_0x28a395(_0x2a54ca._0x4addbd,0x2c7))/(0x28*0xd7+0x1aa+-0x233d)+-parseInt(_0x28a395(_0x2a54ca._0x55a7c5,0x304))/(-0x6b*-0x21+-0x1fb3+-0x2d*-0x66)*(parseInt(_0x28a395(_0x2a54ca._0x2ffee5,_0x2a54ca._0x106c92))/(0x247d+-0x5d5+0x1ea1*-0x1))+-parseInt(_0x28a395(0x340,_0x2a54ca._0xb5d8f7))/(-0xc+0x687+0x1*-0x673)*(-parseInt(_0x105f5a(-0xc2,-_0x2a54ca._0x4aa6ca))/(-0xefa+-0xa3*-0x39+-0x4*0x552))+parseInt(_0x105f5a(-0xb9,-0xec))/(-0x10ca*0x1+0xa03+-0x15d*-0x5)*(-parseInt(_0x105f5a(-0x124,-_0x2a54ca._0x943ded))/(-0x1de7+0x3*0x73b+0x841));if(_0x197834===_0xb5604c)break;else _0x42f4e0['push'](_0x42f4e0['shift']());}catch(_0x371c8b){_0x42f4e0['push'](_0x42f4e0['shift']());}}}(_0x2c81,-0x10e4fb+-0xea2*-0x6e+0x1666db));import{tool}from'@opencode-ai/plugin';import{resolve}from'node:path';import*as _0x227c07 from'./plugin-engine.js';import{createAnalyzeRequirementsTool}from'./requirement-analysis/tools/analyze-requirements.js';function getStateFilePath(_0x44b363){const _0x18c235={_0x84987d:0x182,_0x3889f7:0x275,_0x5662b3:0x289},_0x25dbc0={_0x32a177:0x1c3},_0x58ac32={_0x42e494:0x239},_0x2e134d={};_0x2e134d[_0x50483b(-0x145,-0x15d)]=_0x50483b(-_0x18c235._0x84987d,-0x1b8);function _0x50483b(_0x360053,_0x32d3b0){return _0x516b(_0x32d3b0- -_0x58ac32._0x42e494,_0x360053);}_0x2e134d[_0xb9e078(0x241,_0x18c235._0x3889f7)]=_0xb9e078(0x26d,_0x18c235._0x5662b3);function _0xb9e078(_0x260e25,_0x54e35f){return _0x516b(_0x54e35f-_0x25dbc0._0x32a177,_0x260e25);}const _0x8a9faf=_0x2e134d;return resolve(_0x44b363,_0x8a9faf['fLDsz'],_0x8a9faf['VWCxV']);}function createStatusTool(_0x225a3b){const _0x9c3b48={_0x2034f4:0xca,_0x3e26f6:0xf8,_0x361e76:0xff},_0x1d70bc={_0x6bdfb0:0x36a,_0x2be00c:0x3b3},_0x5d5728=getStateFilePath(_0x225a3b);function _0x55d921(_0x272a20,_0x1f178f){return _0x516b(_0x272a20- -0x260,_0x1f178f);}function _0x4099d8(_0x3ba722,_0x4ae02f){return _0x516b(_0x4ae02f- -0x1bb,_0x3ba722);}return tool({'description':'获取\x20specops'+_0x4099d8(-0x108,-0xd4)+_0x4099d8(-_0x9c3b48._0x2034f4,-_0x9c3b48._0x3e26f6)+_0x4099d8(-_0x9c3b48._0x361e76,-0xe8)+'的状态表格。','args':{},async 'execute'(){const _0x460a63={_0x1e9974:0x4dd},_0x253efc={_0x147693:0x568};function _0x19612b(_0x3d3d37,_0x27b15d){return _0x55d921(_0x3d3d37-_0x253efc._0x147693,_0x27b15d);}function _0x331f08(_0x1a1769,_0x3bda15){return _0x55d921(_0x1a1769-_0x460a63._0x1e9974,_0x3bda15);}try{return await _0x227c07['getStatus'](_0x5d5728);}catch(_0x22d9b6){return _0x331f08(_0x1d70bc._0x6bdfb0,0x37a)+(_0x22d9b6 instanceof Error?_0x22d9b6[_0x19612b(_0x1d70bc._0x2be00c,0x3b3)]:String(_0x22d9b6));}}});}function _0x516b(_0x1b8e9b,_0x55656f){_0x1b8e9b=_0x1b8e9b-(0x1a03+0x1*-0x72e+0x125d*-0x1);const _0x4370cc=_0x2c81();let _0x2818c8=_0x4370cc[_0x1b8e9b];if(_0x516b['mvoXZs']===undefined){var _0x464ab2=function(_0x9ca373){const _0x35da93='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17a9ff='',_0xfab5c8='';for(let _0x2edc27=-0x2*0x7f7+0x9e0+0x60e,_0x2a6680,_0x10bf31,_0x44e95e=0x1ea5+-0x2cc+-0x1bd9;_0x10bf31=_0x9ca373['charAt'](_0x44e95e++);~_0x10bf31&&(_0x2a6680=_0x2edc27%(-0x1a67+-0x2*-0xbc3+0x2e5)?_0x2a6680*(-0xb92+-0x7b8*0x5+-0x1935*-0x2)+_0x10bf31:_0x10bf31,_0x2edc27++%(-0xfa4+-0x25aa+0x3552))?_0x17a9ff+=String['fromCharCode'](0x1*0x2421+0x10a4+-0x11a*0x2f&_0x2a6680>>(-(-0xa11*-0x1+0xff1+-0x1a00)*_0x2edc27&0x837+-0x37*0x65+0xd82)):0x1*-0xeb4+-0x2*-0x470+0x5d4){_0x10bf31=_0x35da93['indexOf'](_0x10bf31);}for(let _0x2215a6=0x2520+0x5*-0x176+-0x1dd2*0x1,_0x412a3f=_0x17a9ff['length'];_0x2215a6<_0x412a3f;_0x2215a6++){_0xfab5c8+='%'+('00'+_0x17a9ff['charCodeAt'](_0x2215a6)['toString'](-0x1605+-0x12d3*-0x1+0x1a1*0x2))['slice'](-(0x191*0xa+0x3*-0x45+-0x3*0x4f3));}return decodeURIComponent(_0xfab5c8);};_0x516b['IJDhKt']=_0x464ab2,_0x516b['aLZKLY']={},_0x516b['mvoXZs']=!![];}const _0x4ccaab=_0x4370cc[-0x4a5+0x1484+0x11*-0xef],_0x1b5f84=_0x1b8e9b+_0x4ccaab,_0xa21570=_0x516b['aLZKLY'][_0x1b5f84];return!_0xa21570?(_0x2818c8=_0x516b['IJDhKt'](_0x2818c8),_0x516b['aLZKLY'][_0x1b5f84]=_0x2818c8):_0x2818c8=_0xa21570,_0x2818c8;}function createAdvanceTool(_0x28a19e){const _0x6bb01c={_0x25aa23:0x18c,_0x56f20d:0x19c,_0x1ff8e4:0x12f,_0xaa6995:0x141,_0x40a02e:0x1ca,_0x4b1344:0x155,_0x34d9ab:0x15b,_0x90cfbc:0x1a4,_0x584138:0x12d,_0x4966e2:0x16e,_0x4dfd95:0x12e,_0x856c69:0x16f,_0x5a3514:0x199,_0x2c8351:0x16c,_0x4c699e:0x159,_0x1c6a11:0x16b},_0x1ac120={_0x53ac2c:0x29d,_0x38a7df:0x284,_0x497376:0x24c,_0x442361:0x390,_0x3e6670:0x3c8,_0x3049f6:0x3aa,_0x4c8fda:0x394,_0x3f5fa6:0x3d5,_0xf6c798:0x40b,_0x879af1:0x37e,_0x2f1908:0x39f},_0x4d8d12={_0x2a1f2b:0x229},_0x45bfa5={_0x7ffa19:0xab},_0x46db8f={'XtRfk':function(_0x4f0f19,_0x40c026){return _0x4f0f19(_0x40c026);},'ribWM':function(_0x94971d,_0x5877a3){return _0x94971d===_0x5877a3;},'jGpxk':_0x5aede2(-_0x6bb01c._0x25aa23,-_0x6bb01c._0x56f20d),'WJBaQ':function(_0x4207f6,_0x3c1803){return _0x4207f6 instanceof _0x3c1803;},'cEbvT':function(_0x17037f,_0x373eec){return _0x17037f(_0x373eec);},'ANghZ':function(_0x46eebe,_0x5b719d){return _0x46eebe(_0x5b719d);},'WiHxs':_0x5aede2(-_0x6bb01c._0x1ff8e4,-_0x6bb01c._0xaa6995)+'\x20ID(不指定则自动'+_0x5aede2(-0x141,-0x154)},_0x4cfa12=_0x46db8f[_0x325ebf(0x18d,_0x6bb01c._0x40a02e)](getStateFilePath,_0x28a19e);function _0x325ebf(_0x575a0b,_0x375b83){return _0x516b(_0x575a0b-_0x45bfa5._0x7ffa19,_0x375b83);}function _0x5aede2(_0x232441,_0x27bf51){return _0x516b(_0x27bf51- -_0x4d8d12._0x2a1f2b,_0x232441);}return _0x46db8f[_0x325ebf(_0x6bb01c._0x4b1344,0x11e)](tool,{'description':_0x5aede2(-0x146,-_0x6bb01c._0x34d9ab)+_0x5aede2(-0x17f,-_0x6bb01c._0x90cfbc)+_0x325ebf(0x15f,_0x6bb01c._0x584138)+_0x325ebf(0x173,_0x6bb01c._0x4966e2)+'进到下一个阶段。\x0a阶'+_0x5aede2(-_0x6bb01c._0x4dfd95,-0x140)+_0x325ebf(0x189,0x165)+'验证\x20→\x20compl'+_0x325ebf(_0x6bb01c._0x856c69,0x147),'args':{'agent_id':tool[_0x5aede2(-_0x6bb01c._0x5a3514,-0x164)][_0x5aede2(-_0x6bb01c._0x2c8351,-_0x6bb01c._0x4c699e)]()[_0x325ebf(_0x6bb01c._0x1c6a11,0x157)]()['describe'](_0x46db8f['WiHxs'])},async 'execute'(_0xc79751){const _0x217fd9={_0x1256d4:0x105},_0x20ed9f={_0x5bced8:0x20e},_0x527bea={_0x1e5d92:0x518};function _0x53ff67(_0x2bb76d,_0x3661d7){return _0x5aede2(_0x3661d7,_0x2bb76d-_0x527bea._0x1e5d92);}const _0x163456={'eXwzj':function(_0x16514d,_0x1416db){return _0x16514d instanceof _0x1416db;},'JoKar':function(_0x425492,_0x3e7d50){function _0x3caa04(_0x43e26b,_0x1ddde6){return _0x516b(_0x1ddde6- -0x2b8,_0x43e26b);}return _0x46db8f[_0x3caa04(-0x20b,-_0x20ed9f._0x5bced8)](_0x425492,_0x3e7d50);}};function _0x43d6ad(_0x29eb5a,_0x287dd4){return _0x5aede2(_0x29eb5a,_0x287dd4- -_0x217fd9._0x1256d4);}try{return _0x46db8f['ribWM'](_0x46db8f['jGpxk'],'yhxKC')?_0x43d6ad(-0x21d,-0x241)+(_0x4c65fa instanceof _0x124da2?_0x3b997d[_0x43d6ad(-_0x1ac120._0x53ac2c,-0x283)]:_0x46db8f[_0x43d6ad(-0x28b,-_0x1ac120._0x38a7df)](_0x19ac2b,_0x29f481)):await _0x227c07[_0x43d6ad(-_0x1ac120._0x497376,-0x265)+'se'](_0x4cfa12,_0xc79751[_0x53ff67(0x383,_0x1ac120._0x442361)]);}catch(_0x45b1a4){return'dECDQ'!==_0x53ff67(_0x1ac120._0x3e6670,0x3ae)?'❌\x20推进阶段失败:\x20'+(_0x46db8f[_0x53ff67(_0x1ac120._0x3049f6,0x3c7)](_0x45b1a4,Error)?_0x45b1a4['message']:_0x46db8f[_0x53ff67(_0x1ac120._0x4c8fda,0x35e)](String,_0x45b1a4)):_0x53ff67(_0x1ac120._0x3f5fa6,_0x1ac120._0xf6c798)+(_0x163456[_0x53ff67(_0x1ac120._0x879af1,_0x1ac120._0x2f1908)](_0x32824c,_0x1fa1ce)?_0x5405ce['message']:_0x163456['JoKar'](_0x1323be,_0x3bf92c));}}});}function createNewProjectTool(_0x454ef6){const _0x29237f={_0x422aa6:0x32c,_0xe6b96f:0x2d5,_0x319d61:0x311,_0xb962f1:0x319,_0x575ee5:0x7,_0x110b31:0x28},_0x12fc9d={_0x539405:0xf2,_0x46acf7:0xe9},_0x5ccad7={_0x3de02c:0xc4};function _0x5f0f60(_0x34245c,_0x263090){return _0x516b(_0x34245c- -_0x5ccad7._0x3de02c,_0x263090);}function _0x32e65e(_0x4affbe,_0x40294f){return _0x516b(_0x40294f- -0x3b1,_0x4affbe);}const _0x24f713={'fVvrY':function(_0x582745,_0x23c133){return _0x582745 instanceof _0x23c133;},'mLrpC':function(_0x5a9e76,_0x3b163a){return _0x5a9e76(_0x3b163a);}},_0x501495=getStateFilePath(_0x454ef6);return tool({'description':_0x32e65e(-0x332,-0x310)+_0x5f0f60(-0x27,0x2)+_0x32e65e(-_0x29237f._0x422aa6,-0x31e)+_0x32e65e(-_0x29237f._0xe6b96f,-0x302)+_0x32e65e(-0x306,-_0x29237f._0x319d61)+'。','args':{'project_name':tool['schema'][_0x32e65e(-_0x29237f._0xb962f1,-0x2e1)]()[_0x5f0f60(-_0x29237f._0x575ee5,-0x19)](_0x5f0f60(-_0x29237f._0x110b31,-0x31))},async 'execute'(_0x351484){const _0x3ffc45={_0x4f58fa:0xd0},_0x31010f={_0x44596e:0x23d};function _0x423452(_0x5d78ec,_0xdf3b93){return _0x5f0f60(_0x5d78ec-_0x31010f._0x44596e,_0xdf3b93);}function _0x17c04a(_0x20c3cb,_0x18f30d){return _0x5f0f60(_0x20c3cb-_0x3ffc45._0x4f58fa,_0x18f30d);}try{return await _0x227c07[_0x423452(0x245,0x24b)](_0x501495,_0x351484['project_na'+'me']);}catch(_0x3e59b2){return _0x17c04a(_0x12fc9d._0x539405,_0x12fc9d._0x46acf7)+(_0x24f713[_0x17c04a(0x8c,0xa5)](_0x3e59b2,Error)?_0x3e59b2[_0x423452(0x224,0x206)]:_0x24f713[_0x423452(0x24a,0x273)](String,_0x3e59b2));}}});}function createUpdateOperationTool(_0x25330b){const _0x5b61da={_0x1e2aa4:0x39c,_0x3a00f0:0x3ab,_0x123c08:0x396,_0x50311e:0x44e,_0x1db620:0x3e7,_0x44b361:0x3bc,_0x33df1e:0x3e3,_0x53eace:0x3ae,_0x5edcce:0x3df,_0x4ba24b:0x39b,_0x3c1622:0x3cb,_0x2ec5bd:0x37c,_0x3c3a0b:0x3ef,_0x320f91:0x427,_0x4b0f44:0x407,_0x1720f1:0x419,_0xce7f2c:0x408},_0x4a5e2f={_0x183841:0x158,_0x111bdd:0x15c,_0xa220dd:0x198,_0x14791b:0x176,_0x452ddc:0x19f,_0x42c7b2:0x1d4,_0x5c8ef9:0x12b,_0x39ddba:0x183,_0x14b5fe:0x197,_0x318b0f:0x1ad,_0x1b0bd5:0x176,_0x3c321f:0x19a,_0x4e7b57:0x1b2,_0x3e46d2:0x16a,_0x1ac7d3:0x14a},_0x34346d={_0x4781ed:0x2de},_0x3a12d2={_0x5549c7:0x357},_0x3efcc0={'bHjNU':function(_0x76df33,_0x10321f){return _0x76df33 instanceof _0x10321f;},'UPSxK':_0x11d10d(0x3b0,0x394),'sObDW':function(_0x3390c7,_0x4c9492){return _0x3390c7!==_0x4c9492;},'auKun':_0x1506b3(0x418,0x3dd),'lMpFt':function(_0x22f0f2,_0x4b2d63){return _0x22f0f2 instanceof _0x4b2d63;},'SmQTC':function(_0x234da9,_0x2e1bbf){return _0x234da9(_0x2e1bbf);},'uordM':'当前操作描述(如\x22分'+_0x11d10d(0x396,_0x5b61da._0x1e2aa4)};function _0x1506b3(_0x51ece4,_0x46d30a){return _0x516b(_0x46d30a-_0x3a12d2._0x5549c7,_0x51ece4);}function _0x11d10d(_0x488d40,_0x16c73a){return _0x516b(_0x488d40-_0x34346d._0x4781ed,_0x16c73a);}const _0x21dd4a=_0x3efcc0[_0x11d10d(_0x5b61da._0x3a00f0,0x382)](getStateFilePath,_0x25330b);return _0x3efcc0[_0x1506b3(0x455,0x424)](tool,{'description':_0x11d10d(0x362,_0x5b61da._0x123c08)+_0x1506b3(_0x5b61da._0x50311e,0x421)+_0x1506b3(0x420,_0x5b61da._0x1db620)+'于实时追踪\x20Agen'+_0x1506b3(_0x5b61da._0x44b361,_0x5b61da._0x33df1e),'args':{'agent_id':tool[_0x11d10d(0x3a3,0x36a)][_0x1506b3(0x42e,0x427)]()['describe']('Agent\x20ID'),'operation':tool['schema'][_0x11d10d(_0x5b61da._0x53eace,_0x5b61da._0x5edcce)]()[_0x11d10d(_0x5b61da._0x4ba24b,0x376)](_0x3efcc0[_0x11d10d(0x3c1,_0x5b61da._0x3c1622)]),'skill':tool[_0x11d10d(0x3a3,_0x5b61da._0x2ec5bd)][_0x1506b3(_0x5b61da._0x3c3a0b,_0x5b61da._0x320f91)]()[_0x1506b3(_0x5b61da._0x4b0f44,0x414)](_0x1506b3(_0x5b61da._0x1720f1,0x3e9)+_0x1506b3(0x424,0x418)+_0x1506b3(0x411,_0x5b61da._0xce7f2c))},async 'execute'(_0xd888a8){const _0x315691={_0xbaaa08:0x4f5},_0x565079={'CKkIf':function(_0x12ec3d,_0x2aee4b){return _0x3efcc0['bHjNU'](_0x12ec3d,_0x2aee4b);}};function _0x52970a(_0x5bd19d,_0x34e2a5){return _0x11d10d(_0x34e2a5- -_0x315691._0xbaaa08,_0x5bd19d);}function _0x485e2e(_0x2c368e,_0x2b0750){return _0x11d10d(_0x2c368e- -0x1ea,_0x2b0750);}if(_0x485e2e(0x185,_0x4a5e2f._0x183841)===_0x3efcc0[_0x52970a(-_0x4a5e2f._0x111bdd,-_0x4a5e2f._0xa220dd)])return'❌\x20更新操作失败:\x20'+(_0x565079[_0x52970a(-_0x4a5e2f._0x14791b,-0x16a)](_0x39b6cd,_0x15341b)?_0x1c6c11[_0x485e2e(_0x4a5e2f._0x452ddc,0x1c9)]:_0x5a1da8(_0x1c953e));else try{return await _0x227c07[_0x485e2e(_0x4a5e2f._0x42c7b2,0x1bc)+_0x52970a(-0x13e,-_0x4a5e2f._0x5c8ef9)](_0x21dd4a,_0xd888a8[_0x52970a(-0x1b4,-_0x4a5e2f._0x39ddba)],_0xd888a8['operation'],_0xd888a8[_0x485e2e(_0x4a5e2f._0x14b5fe,_0x4a5e2f._0x318b0f)]);}catch(_0x3a7362){return _0x3efcc0[_0x485e2e(0x1df,0x1f9)](_0x485e2e(0x17a,0x178),_0x3efcc0[_0x485e2e(_0x4a5e2f._0x1b0bd5,0x154)])?'❌\x20注销\x20Agent'+_0x485e2e(0x177,0x142)+(_0x14d0a8 instanceof _0x46a95a?_0x194128[_0x52970a(-0x15b,-0x16c)]:_0x3e785a(_0x7cc1b2)):'❌\x20更新操作失败:\x20'+(_0x3efcc0[_0x485e2e(_0x4a5e2f._0x3c321f,_0x4a5e2f._0x4e7b57)](_0x3a7362,Error)?_0x3a7362[_0x485e2e(0x19f,0x1db)]:_0x3efcc0[_0x52970a(-_0x4a5e2f._0x3e46d2,-_0x4a5e2f._0x1ac7d3)](String,_0x3a7362));}}});}function createRegisterAgentTool(_0x111d31){const _0x2cdd2e={_0x545a4c:0xec,_0x104ab4:0x8e,_0x261404:0x18f,_0xd9b7a8:0x1c5,_0x542e93:0xa9,_0x510518:0x1a4,_0x2e8547:0x18c,_0x408a5b:0x17d,_0x13832a:0xe3,_0x51ded6:0xd3,_0x1f9cde:0x185,_0x21ff2e:0x9d,_0x5d11f8:0x181,_0x9e37d3:0xad},_0x167f10={_0x44649f:0x1c8,_0x4c1564:0x19d,_0x459ee2:0x1ac,_0x4014c1:0x1cb,_0x191c6a:0x207,_0x1bd545:0x13f,_0x9e3d08:0x174},_0x4d1e53={'YHrWj':'specops','vyjhC':function(_0x144124,_0x579dd1){return _0x144124(_0x579dd1);},'YcfkE':function(_0x3dbd3d,_0x5a042b){return _0x3dbd3d(_0x5a042b);},'csiWA':_0x1fe1f2(_0x2cdd2e._0x545a4c,0xd5),'WMaDu':function(_0x20f86d,_0x5a160d){return _0x20f86d instanceof _0x5a160d;},'LRaaK':function(_0x1c82e2,_0x276e98){return _0x1c82e2(_0x276e98);},'oRnyi':function(_0x65910a,_0x5d14f9){return _0x65910a(_0x5d14f9);},'baCzJ':_0x1fe1f2(0xa8,_0x2cdd2e._0x104ab4),'CzRDq':_0x1fe1f2(0xac,0xda)+_0x10548a(-_0x2cdd2e._0x261404,-0x1c8)},_0x458a3f=_0x4d1e53['vyjhC'](getStateFilePath,_0x111d31);function _0x10548a(_0x468aa0,_0xf0805b){return _0x516b(_0xf0805b- -0x242,_0x468aa0);}function _0x1fe1f2(_0x25e4e3,_0x17be3c){return _0x516b(_0x17be3c-0x13,_0x25e4e3);}return _0x4d1e53[_0x1fe1f2(0xec,0xba)](tool,{'description':'注册新的\x20Agent'+_0x10548a(-_0x2cdd2e._0xd9b7a8,-0x1b8)+_0x1fe1f2(0xa0,_0x2cdd2e._0x542e93)+_0x10548a(-_0x2cdd2e._0x510518,-_0x2cdd2e._0x2e8547)+_0x1fe1f2(0x7d,0xb7)+_0x10548a(-0x1b6,-0x183),'args':{'agent_id':tool[_0x10548a(-0x19e,-_0x2cdd2e._0x408a5b)]['string']()[_0x10548a(-0x168,-0x185)](_0x4d1e53['baCzJ']),'parent_id':tool['schema'][_0x1fe1f2(0xae,_0x2cdd2e._0x13832a)]()[_0x1fe1f2(0x98,_0x2cdd2e._0x51ded6)]()[_0x10548a(-0x162,-_0x2cdd2e._0x1f9cde)](_0x4d1e53['CzRDq']),'phase':tool[_0x10548a(-0x155,-0x17d)][_0x10548a(-0x13b,-0x172)]()[_0x1fe1f2(_0x2cdd2e._0x21ff2e,_0x2cdd2e._0x51ded6)]()[_0x1fe1f2(0xc3,0xd0)](_0x10548a(-_0x2cdd2e._0x5d11f8,-0x186)+_0x1fe1f2(_0x2cdd2e._0x9e37d3,0xab))},async 'execute'(_0x2200eb){const _0xf65596={_0x4415fe:0x242};function _0x5492ce(_0x10465c,_0x4c89e9){return _0x1fe1f2(_0x4c89e9,_0x10465c- -_0xf65596._0x4415fe);}function _0x5e0fd0(_0x5945b2,_0x4a0bea){return _0x1fe1f2(_0x4a0bea,_0x5945b2- -0x2c5);}try{return await _0x227c07['registerAg'+'ent'](_0x458a3f,_0x2200eb[_0x5e0fd0(-0x21e,-0x1e8)],{'parentId':_0x2200eb['parent_id'],'phase':_0x2200eb['phase']});}catch(_0x4ba1ae){if(_0x4d1e53['csiWA']!==_0x4d1e53['csiWA']){const _0xa8418c=_0x10bf31[_0x5492ce(-0x19a,-0x1b4)];return{'name':_0x4d1e53[_0x5492ce(-0x155,-0x171)],'tool':{'specops_status':_0x4d1e53[_0x5e0fd0(-0x1c8,-0x1a4)](_0x44e95e,_0xa8418c),'specops_advance':_0x2215a6(_0xa8418c),'specops_new_project':_0x412a3f(_0xa8418c),'specops_update_operation':_0x578a3e(_0xa8418c),'specops_register_agent':_0x7352cb(_0xa8418c),'specops_deregister_agent':_0xdf1d9f(_0xa8418c),'specops_progress':_0x507015(_0xa8418c),'specops_quick':_0x4d1e53[_0x5e0fd0(-_0x167f10._0x44649f,-_0x167f10._0x4c1564)](_0x2f7d09,_0xa8418c),'specops_analyze_requirements':_0x4d1e53[_0x5492ce(-0x1a7,-0x1ad)](_0x382541,_0xa8418c)},'event':async _0x19a822=>{}};}else return _0x5e0fd0(-0x1fb,-0x205)+_0x5492ce(-_0x167f10._0x459ee2,-_0x167f10._0x4014c1)+(_0x4d1e53[_0x5492ce(-0x14e,-0x13a)](_0x4ba1ae,Error)?_0x4ba1ae[_0x5e0fd0(-_0x167f10._0x191c6a,-0x1f5)]:_0x4d1e53[_0x5492ce(-_0x167f10._0x1bd545,-_0x167f10._0x9e3d08)](String,_0x4ba1ae));}}});}function createDeregisterAgentTool(_0x30c9f7){const _0x25fc24={_0x30cd47:0x29d,_0x129fd3:0xe6,_0x424e37:0x2d2,_0x28e011:0xef,_0x597f25:0x2a4,_0x26271d:0x11c,_0x42bc41:0x14b,_0x309d25:0x2a8,_0x596928:0x2c0,_0x1f4e28:0x2b5},_0x114535={_0x2c595b:0xe8,_0x1ed85a:0x97,_0xd8b89:0xbe,_0xcd7d11:0x101,_0x32a86c:0x243,_0x15a0fe:0x26b,_0x1317cf:0x277,_0x18f2c6:0x21e,_0x3fdee4:0x271,_0x279524:0xc1,_0x315132:0xf1},_0x1990b6={_0x518e45:0xb},_0x282167={_0x3283bf:0x51},_0x44ba80={'bMQDJ':function(_0x4439cf,_0x9f19e2){return _0x4439cf instanceof _0x9f19e2;},'DiHQB':function(_0xc7cf91,_0x5d08cd){return _0xc7cf91(_0x5d08cd);},'SPElm':'要注销的\x20Agent'+_0x3cedea(0x290,0x2ab)};function _0x2ff250(_0x2c4b5f,_0x47e3b2){return _0x516b(_0x2c4b5f-_0x282167._0x3283bf,_0x47e3b2);}const _0x1a1472=_0x44ba80[_0x3cedea(0x2ac,0x284)](getStateFilePath,_0x30c9f7);function _0x3cedea(_0x5d1478,_0x5070da){return _0x516b(_0x5070da-0x1fb,_0x5d1478);}return _0x44ba80['DiHQB'](tool,{'description':_0x3cedea(_0x25fc24._0x30cd47,0x2b0)+_0x2ff250(0x10f,_0x25fc24._0x129fd3)+_0x3cedea(0x2ed,_0x25fc24._0x424e37)+_0x2ff250(_0x25fc24._0x28e011,0xc3)+_0x3cedea(0x284,_0x25fc24._0x597f25)+_0x2ff250(_0x25fc24._0x26271d,_0x25fc24._0x42bc41),'args':{'agent_id':tool['schema']['string']()[_0x3cedea(_0x25fc24._0x309d25,0x2b8)](_0x44ba80[_0x3cedea(_0x25fc24._0x596928,_0x25fc24._0x1f4e28)])},async 'execute'(_0x17a327){function _0x290bb3(_0x5475d0,_0x2c7861){return _0x2ff250(_0x2c7861- -_0x1990b6._0x518e45,_0x5475d0);}function _0x5848b5(_0x4d382f,_0x14b366){return _0x3cedea(_0x14b366,_0x4d382f- -0x3b);}if(_0x290bb3(_0x114535._0x2c595b,0xbe)===_0x290bb3(_0x114535._0x1ed85a,_0x114535._0xd8b89))try{return await _0x227c07['deregister'+_0x290bb3(0xb1,0xbf)](_0x1a1472,_0x17a327[_0x290bb3(0xa0,0xda)]);}catch(_0x27af58){return _0x290bb3(_0x114535._0xcd7d11,0xd1)+_0x5848b5(_0x114535._0x32a86c,0x22a)+(_0x27af58 instanceof Error?_0x27af58[_0x5848b5(_0x114535._0x15a0fe,0x265)]:String(_0x27af58));}else return _0x5848b5(_0x114535._0x1317cf,0x252)+_0x5848b5(0x243,_0x114535._0x18f2c6)+(_0x44ba80[_0x5848b5(0x257,_0x114535._0x3fdee4)](_0x3704db,_0x2992c5)?_0x2b8835[_0x290bb3(_0x114535._0x279524,_0x114535._0x315132)]:_0x44ba80[_0x290bb3(0x106,0xcf)](_0x5d000c,_0x26c586));}});}function createProgressTool(_0xdc3180){const _0x68bb6c={_0x586bb9:0x130,_0x3b34f7:0x109,_0x274264:0xeb,_0x3370b2:0x115},_0xc1babe={_0x4e8617:0x371,_0x4b746d:0x324,_0x43c143:0x347},_0x1d270a={_0x17d695:0x1ca},_0x32acb1={_0x160d40:0x3e1};function _0xedad08(_0x4c3b1f,_0x909af0){return _0x516b(_0x909af0-_0x32acb1._0x160d40,_0x4c3b1f);}const _0x487b25={'zRNLT':function(_0x11c480,_0x28692d){return _0x11c480(_0x28692d);}};function _0x258557(_0x5f0213,_0x129aec){return _0x516b(_0x5f0213- -_0x1d270a._0x17d695,_0x129aec);}const _0x1414e9=_0x487b25[_0x258557(-_0x68bb6c._0x586bb9,-_0x68bb6c._0x3b34f7)](getStateFilePath,_0xdc3180);return tool({'description':_0x258557(-_0x68bb6c._0x274264,-0xc9)+_0x258557(-0x128,-_0x68bb6c._0x3370b2)+_0xedad08(0x450,0x480)+'分布图、Agent\x20'+_0xedad08(0x489,0x45e),'args':{},async 'execute'(){const _0x3586af={_0x542c1b:0x145};function _0xdedc7b(_0x55cb67,_0x2fc0fe){return _0x258557(_0x55cb67-0x465,_0x2fc0fe);}function _0x338144(_0x33fb45,_0x3654c7){return _0xedad08(_0x33fb45,_0x3654c7- -_0x3586af._0x542c1b);}try{return await _0x227c07['showProgre'+'ss'](_0x1414e9);}catch(_0x210667){return _0xdedc7b(_0xc1babe._0x4e8617,0x390)+(_0x210667 instanceof Error?_0x210667[_0x338144(_0xc1babe._0x4b746d,_0xc1babe._0x43c143)]:String(_0x210667));}}});}function createQuickTool(_0x5727fe){const _0x52fa53={_0x5c75a6:0x108,_0xaac132:0xed,_0x169536:0x2ea,_0x3f945c:0x2d6},_0x5f8f0b={_0x3d832c:0x10f,_0x3afb03:0xee},_0x9d56d1={_0x28df31:0x36},_0x47cdaf={'QiBTN':function(_0x24a5f0,_0x3909ec){return _0x24a5f0 instanceof _0x3909ec;},'VQxYw':function(_0xcdca06,_0x2d4ba0){return _0xcdca06(_0x2d4ba0);}},_0x212362=getStateFilePath(_0x5727fe);function _0x1db980(_0x5db0aa,_0x2b70b7){return _0x516b(_0x5db0aa-0x201,_0x2b70b7);}function _0x48729d(_0x4be839,_0x3cf375){return _0x516b(_0x3cf375- -0x1a2,_0x4be839);}return tool({'description':_0x48729d(-_0x52fa53._0x5c75a6,-0xd3)+_0x48729d(-_0x52fa53._0xaac132,-0xbd)+_0x1db980(0x2de,0x2b5)+'\x0a适用于小型、明确的'+_0x1db980(0x2b4,0x2be),'args':{'task':tool['schema'][_0x48729d(-0xa6,-0xd2)]()[_0x1db980(0x2be,_0x52fa53._0x169536)](_0x1db980(0x2f2,_0x52fa53._0x3f945c))},async 'execute'(_0x116a04){const _0x5bd94c={_0x34fad4:0x4f0};function _0x153a70(_0x4d5f26,_0x467182){return _0x48729d(_0x4d5f26,_0x467182-_0x9d56d1._0x28df31);}function _0x61f489(_0x33202a,_0x1c641d){return _0x1db980(_0x1c641d- -_0x5bd94c._0x34fad4,_0x33202a);}try{return await _0x227c07[_0x61f489(-0x259,-0x247)](_0x212362,_0x116a04[_0x153a70(-_0x5f8f0b._0x3d832c,-0xde)]);}catch(_0x4a7cba){return _0x153a70(-0xeb,-_0x5f8f0b._0x3afb03)+(_0x47cdaf['QiBTN'](_0x4a7cba,Error)?_0x4a7cba['message']:_0x47cdaf[_0x61f489(-0x21d,-0x20b)](String,_0x4a7cba));}}});}const SpecOpsPlugin=async _0x4dc7ca=>{const _0x4529ff={_0x37bf88:0x5a,_0x446fe7:0x8b},_0x49f2c6={_0x1bde4a:0x4d},_0xa265bc={_0x215e4f:0x22e},_0x1b1f7c={'aMSzQ':function(_0x5c3b98,_0x517974){return _0x5c3b98(_0x517974);}};function _0x4b027d(_0x1fdd45,_0xb18ead){return _0x516b(_0x1fdd45-_0xa265bc._0x215e4f,_0xb18ead);}const _0x6f8ca1=_0x4dc7ca[_0x2ccf35(_0x4529ff._0x37bf88,0x48)];function _0x2ccf35(_0x5b66a5,_0x269567){return _0x516b(_0x269567- -_0x49f2c6._0x1bde4a,_0x5b66a5);}return{'name':_0x2ccf35(0x82,_0x4529ff._0x446fe7),'tool':{'specops_status':createStatusTool(_0x6f8ca1),'specops_advance':_0x1b1f7c['aMSzQ'](createAdvanceTool,_0x6f8ca1),'specops_new_project':_0x1b1f7c['aMSzQ'](createNewProjectTool,_0x6f8ca1),'specops_update_operation':_0x1b1f7c['aMSzQ'](createUpdateOperationTool,_0x6f8ca1),'specops_register_agent':createRegisterAgentTool(_0x6f8ca1),'specops_deregister_agent':createDeregisterAgentTool(_0x6f8ca1),'specops_progress':createProgressTool(_0x6f8ca1),'specops_quick':createQuickTool(_0x6f8ca1),'specops_analyze_requirements':createAnalyzeRequirementsTool(_0x6f8ca1)},'event':async _0x40dc97=>{}};};export default SpecOpsPlugin;