specops 0.4.0 → 3.11.0

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 (34) 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
@@ -1 +1 @@
1
- (function(_0x2b75d4,_0x2f49c8){const _0x2fca2b={_0x24a02d:0x584,_0x48c1ab:0x544,_0x5df7a1:0x53c,_0x414fe8:0x552,_0x307929:0x57f,_0x4eb5ad:0x560,_0x54f97c:0x572,_0x2dc89e:0x5ab,_0x1d4426:0x585,_0x2cbc2d:0x580,_0x35883c:0x5d5,_0x1453c9:0x565,_0x5296af:0x5a9,_0x1363e0:0x5c9,_0x4c9296:0x5dd};function _0x58332a(_0x556bf7,_0x55991a){return _0x37fd(_0x55991a-0x367,_0x556bf7);}function _0x24b00e(_0x5982c2,_0x1417b0){return _0x37fd(_0x1417b0-0x351,_0x5982c2);}const _0x4ba5a0=_0x2b75d4();while(!![]){try{const _0x4ffcfd=parseInt(_0x24b00e(0x55c,_0x2fca2b._0x24a02d))/(0xf1*-0x25+-0x5b*-0x4a+-0xe*-0x9c)*(-parseInt(_0x24b00e(0x599,0x5b1))/(0xe*-0x119+0x1a70+-0x2*0x588))+-parseInt(_0x24b00e(_0x2fca2b._0x48c1ab,_0x2fca2b._0x5df7a1))/(0x15af+0x1*0xed2+-0x247e)*(parseInt(_0x58332a(_0x2fca2b._0x414fe8,_0x2fca2b._0x307929))/(0x17*0x199+-0x5*-0x6a6+-0x45f9))+-parseInt(_0x58332a(_0x2fca2b._0x4eb5ad,_0x2fca2b._0x54f97c))/(-0xeb9*0x2+-0x13a2+0x3119)*(parseInt(_0x24b00e(_0x2fca2b._0x2dc89e,0x56c))/(0x16e*-0x6+-0x239*0x2+-0x29c*-0x5))+parseInt(_0x58332a(0x53f,0x554))/(0x6a*0x5+-0x3*0x24f+0x4e2)*(parseInt(_0x58332a(0x57a,_0x2fca2b._0x1d4426))/(0x26c3+-0x4*0x221+-0x253*0xd))+-parseInt(_0x58332a(_0x2fca2b._0x2cbc2d,0x5b3))/(0x1*-0x246f+0x1491+-0x3b*-0x45)*(-parseInt(_0x58332a(0x610,_0x2fca2b._0x35883c))/(0xa16+-0x5*0x4ee+0x26f*0x6))+-parseInt(_0x58332a(0x5ae,0x575))/(0x50e*0x6+0x253c+0x4385*-0x1)*(parseInt(_0x24b00e(0x52e,_0x2fca2b._0x1453c9))/(-0x7*0x1c7+0x1213+-0x596))+-parseInt(_0x58332a(_0x2fca2b._0x5296af,_0x2fca2b._0x1363e0))/(-0x1*-0x11b6+0x13e+-0x12e7)*(-parseInt(_0x24b00e(0x5a5,_0x2fca2b._0x4c9296))/(-0x1393*-0x1+0x915+-0x2*0xe4d));if(_0x4ffcfd===_0x2f49c8)break;else _0x4ba5a0['push'](_0x4ba5a0['shift']());}catch(_0x121927){_0x4ba5a0['push'](_0x4ba5a0['shift']());}}}(_0x1174,0xfe6cb+-0x5*-0x1aed3+-0xe5120));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 _0x37fd(_0x55ab17,_0x235489){_0x55ab17=_0x55ab17-(-0x26cb+-0x2b*-0x71+0x1*0x15b5);const _0x593632=_0x1174();let _0x45c95a=_0x593632[_0x55ab17];if(_0x37fd['bIJgXI']===undefined){var _0x2cf58b=function(_0x19a2e2){const _0x43fb5d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4f549a='',_0x49ebe1='';for(let _0x1c9827=-0x9c0*-0x1+-0x1d77+0x13b7,_0x47d2ce,_0x268da2,_0x1c110b=0x15ee+-0x1*-0x1195+0x55*-0x77;_0x268da2=_0x19a2e2['charAt'](_0x1c110b++);~_0x268da2&&(_0x47d2ce=_0x1c9827%(-0x9*-0x1d9+-0x1ded+0xd50)?_0x47d2ce*(-0x573*-0x2+-0x1*0x2692+0x1bec)+_0x268da2:_0x268da2,_0x1c9827++%(-0x7b0+-0x1d99+0x254d))?_0x4f549a+=String['fromCharCode'](0x1*-0x100+-0x1*0x170f+0x190e&_0x47d2ce>>(-(0x126*-0x7+-0x20*0xfb+0x276c)*_0x1c9827&-0x1855+-0x1353+0x2bae*0x1)):0x1*0x1a31+-0xb3b+-0x2fe*0x5){_0x268da2=_0x43fb5d['indexOf'](_0x268da2);}for(let _0x50a12a=-0x2277*-0x1+-0x446*0x7+0xe9*-0x5,_0x3efaf5=_0x4f549a['length'];_0x50a12a<_0x3efaf5;_0x50a12a++){_0x49ebe1+='%'+('00'+_0x4f549a['charCodeAt'](_0x50a12a)['toString'](0x2e6+0x65*-0x15+-0x117*-0x5))['slice'](-(-0xfe5+-0x5*0x5c+-0xc5*-0x17));}return decodeURIComponent(_0x49ebe1);};_0x37fd['mOEmSV']=_0x2cf58b,_0x37fd['eRsmKU']={},_0x37fd['bIJgXI']=!![];}const _0x1a2004=_0x593632[-0x264f+-0x16*0x124+0x3f67*0x1],_0x408ed2=_0x55ab17+_0x1a2004,_0x15e79e=_0x37fd['eRsmKU'][_0x408ed2];return!_0x15e79e?(_0x45c95a=_0x37fd['mOEmSV'](_0x45c95a),_0x37fd['eRsmKU'][_0x408ed2]=_0x45c95a):_0x45c95a=_0x15e79e,_0x45c95a;}const _0x1cab2a={};_0x1cab2a['requiremen'+_0x15965f(-0xff,-0xf2)]=_0x15965f(-0x128,-0xfc),_0x1cab2a['demand_ana'+_0x23756f(0x441,0x411)]=_0x15965f(-0xca,-0xfc),_0x1cab2a['competitor'+_0x23756f(0x3fc,0x426)]=_0x23756f(0x3c4,0x3c4);function _0x1174(){const _0x27fa42=['odi0u2vKywHK','BgvUz3rO','wwDVB2S','icaG5PQc5PEGiefNzw4','5OQa5PYV6ycj5z6l','DxrMltG','y3vYCMvUDfbOyq','ywDLBNrZ','z05Hs0e','uNDYsui','BeX4tgS','icaG6Ag555UUoIa','CgfKrw5K','sMzrtKq','AwrSzq','DMvYAwz5','6zYa5Rgc5yIg5P6q','AgH4swG','8j+gLsdPOBNNM67LT7lLIjVLU7O6ia','EvHAEfy','zgTwB0q','mti1nZm3ouflBLrbvq','tNHPs2C','zMLSDgvY','icaGicaGicb8ia','cUkCHsbbz2vUDca','Df9HBMfSExnPCW','BgLUzE+8JoEBToAoPEAjP+IHJa','CLffAgS','CMvHza','DuX4C0i','ChjVAMvJDcdLKB3KU6q','5yQH5lIn6lwW5A6m5Pw0ifbPCgu','uff5EKW','DgvJAf9ZzwXLyW','t2PXC3O','BhLZAxm','ze15CeC','icaGicaGicaGia','BwfW','wffduwe','ChnOB3q','y2HPBgrjzhm','4PQHiow/Q+MaN+s7U+wkOEAOOEw8JW','icaGqwDLBNqGsq','5lMq6kEc6zsb5yAY56Qb','mJGYodqZtuLRrNjp','wfLtthC','rxrPqxu','C2XPy2u','77Ym6k+35ywi6l+q6kgmig5LDY0','Ew5SBfe','y29TCgXLDgvK','AMr0uMy','icaG5PU05PAW5PE26zE0oIa','se5mEgK','vwjzr1i','x2fUywX5C2LZ','BfvWCNO','tgXOB0W','ANPUt2u','icaG6zI25Q615BQp5yIxoIa','6zsaoIa','iefNzw50kq','icaG54Mi5PYSoIa','rwPAswq','mMLoDLvqzG','zs5QC29U','ntm0ode1ntHJs1rfEe4','wMXtsxG','tLLUvwC','CMvWzwf0','CxvPy2S','ihWG6zI25Q61icaGica','BxfUtwC','DxbKyxrLzef0','icaG','zxbvCMm','jsaO','icaG54I2iefNzw50','ndbVB2PQuwK','5yAmoIa','CvbWAfi','thjmseS','iow3SUwUJoAiKowfQoMdQoMyTUAUTq','zhzuq2K','z0rewhq','wwvNrLG','icaGicaGFcdMK43KVzW','BMXlyvy','8j+tIIdPOBNNM67NIRBMGie6ia','uMzQC3u','DcdORRdLVzu','ELHrA3C','ywDLBNrjza','y3vYCMvUDe9Wzq','AKDSChK','5yQF6io95yIg5P6q','CMf0Aw9U','iokgKIa','A2v5CW','xsdLT7lLROZMIjdLHAJPG6JPMlBMRRu','y0jtvuO','icaGicaG','CM91BMq','Dfzmz20','4PQG77Ipicbbz2vUDca','tMflDuq','ChvZAa','ChjVAMvJDa','mtrZvLjqrgO','icaG6zI25Q61oIa','4P2miefNzw50ia','BwfJAgLUzvnUyq','xsdMK43KVzZLT7lMM7tMLRa6ia','wgv5vLe','icaG5A6m5OIq5BQMoIa','nduZotnABLLlqKK','zgLZy3vZCW','mJa5mZbNqvnXwKm','ExrpzNq','C1Htu1i','ywX5C2LZ','icaG5B2t5yMn6zI25Q61oIa','CgfYzw50swq','icaGqwDLBNq6ia','AKzhufK','56UE5zob5yIg5P6q','DMvYC2LVBG','rcaGicaGicaGia','zw50CMLLCW','CMvJDxjZAxzL','4PYfiefNzw50iow3SUAZQa','wLnrq2C','CKPPyvy','4PYfioAjGoACIsbbz2vUDa','D3jPDgu','CgHHC2u','yNrjyue','AM9PBG','y1bdB1K','tg1rrwq','Cxrpvha','icaG8j+tIcdPMlBMRRxLIiBLUim6','zM9Tuxu','y3vYCMvUDfnRAq','ioIVPUAdHtO','icaG5lU75yQHoIa','vwn0rMu','mtvPthHnCuy','z3neu1G','yuLQDLq','mte0nZu0mK5yt3Lkta','vNPWEe0','4PYfifS','ios4JEwTMowCQos6JIbZDgf0','icaG5yID5AEliefNzw4','4PQG77IpicdNIRBMGihMLOFKU7BKUi3LRzJLNkG','mta4uNfIrK5o','ihWG','BMfTzq','ios4JEwTMowCQa','mtG0teznDuTN','qxjqB3m','rNjUDK8','mJaWmda3mfL6zxbpAG','CgfYC2u','uNrerxa'];_0x1174=function(){return _0x27fa42;};return _0x1174();}function _0x23756f(_0x34b2c1,_0x5dad0b){const _0xf5ca31={_0x212495:0x1cf};return _0x37fd(_0x5dad0b-_0xf5ca31._0x212495,_0x34b2c1);}_0x1cab2a['feature_an'+_0x15965f(-0x175,-0x13a)]=_0x15965f(-0xda,-0xab),_0x1cab2a[_0x15965f(-0xb3,-0xea)+'tion']=_0x15965f(-0x10f,-0x108),_0x1cab2a[_0x23756f(0x36b,0x3bb)]='讨论',_0x1cab2a['plan']='规划';function _0x15965f(_0xe46f2,_0x3f8c23){return _0x37fd(_0x3f8c23- -0x32a,_0xe46f2);}_0x1cab2a['execute']='执行',_0x1cab2a[_0x15965f(-0xb2,-0xfd)]='验证';const PHASE_NAMES=_0x1cab2a,MAX_RETRIES=-0x1573+-0xce*0x2+0x1714;async function readStateFile(_0x37f3f3){const _0x263a2e={_0x368de8:0x7,_0x23e448:0x16},_0x105b7f={_0x417e1f:0xec};function _0x48c240(_0x47c896,_0x41c41c){return _0x23756f(_0x47c896,_0x41c41c- -_0x105b7f._0x417e1f);}function _0x1883bf(_0x5e311b,_0x29b656){return _0x23756f(_0x5e311b,_0x29b656- -0x438);}const _0x3a3837={'zXQkw':function(_0x358ff9,_0x34829d){return _0x358ff9(_0x34829d);}};if(!_0x3a3837[_0x1883bf(-_0x263a2e._0x368de8,0x12)](existsSync,_0x37f3f3))return null;const _0x30c695=new StateFileManager(_0x37f3f3);return _0x30c695[_0x1883bf(-_0x263a2e._0x23e448,-0x2e)]();}async function writeStateFile(_0x3a09a7,_0x321677){const _0x446a1e={_0x44d446:0x21,_0x140112:0x46,_0x502eb8:0x12,_0x3437ce:0x5b,_0x51873f:0x92,_0x14d515:0x169,_0x36bbe9:0x2e,_0x5a1abe:0x68,_0x45d62a:0x35,_0x7481d9:0x98,_0x23e8ad:0x141,_0x545abf:0xe4,_0x1e18ac:0x132,_0x36681b:0x6d,_0x264482:0x1d,_0x3b04da:0x107,_0x11ebd2:0x2a,_0x1ad515:0x6a,_0x4a8055:0x13,_0x2f0265:0xf0,_0x5ecdb4:0x91},_0x199f63={};function _0x5237d2(_0x441b19,_0x54c119){return _0x15965f(_0x441b19,_0x54c119-0x149);}_0x199f63[_0x5237d2(_0x446a1e._0x44d446,_0x446a1e._0x140112)]=function(_0x5e4b4e,_0x3a5583){return _0x5e4b4e<_0x3a5583;},_0x199f63[_0x5237d2(_0x446a1e._0x502eb8,_0x446a1e._0x3437ce)]=_0x1022d1(-0x125,-0x15a);function _0x1022d1(_0x6ecc43,_0x6e1bb){return _0x15965f(_0x6ecc43,_0x6e1bb- -0x50);}_0x199f63[_0x5237d2(0xb5,_0x446a1e._0x51873f)]=function(_0x400802,_0x9ffea){return _0x400802===_0x9ffea;},_0x199f63[_0x1022d1(-_0x446a1e._0x14d515,-0x124)]=_0x5237d2(0x53,_0x446a1e._0x36bbe9),_0x199f63[_0x5237d2(_0x446a1e._0x5a1abe,0x8f)]=function(_0x31fa83,_0x58a766){return _0x31fa83 instanceof _0x58a766;},_0x199f63[_0x5237d2(-0x27,0x13)]=function(_0x2abba8,_0xf62971){return _0x2abba8-_0xf62971;};const _0x496a90=_0x199f63;for(let _0x490f6d=-0x12ed+-0x5*-0x182+-0x35*-0x37;_0x496a90[_0x5237d2(_0x446a1e._0x45d62a,0x46)](_0x490f6d,MAX_RETRIES);_0x490f6d++){if(_0x5237d2(0x64,_0x446a1e._0x7481d9)===_0x496a90[_0x1022d1(-_0x446a1e._0x23e8ad,-0x13e)]){const _0x46ef03={..._0x415860};_0x46ef03[_0x1022d1(-_0x446a1e._0x545abf,-_0x446a1e._0x1e18ac)]=[..._0xf0f777[_0x1022d1(-0xef,-_0x446a1e._0x1e18ac)],_0x3f60c1],_0x51d6a0[_0x24a184]=_0x46ef03;}else try{const _0x1ad9dc=new StateFileManager(_0x3a09a7);await _0x1ad9dc[_0x5237d2(_0x446a1e._0x36681b,0x5a)](),await _0x1ad9dc[_0x5237d2(-0x14,_0x446a1e._0x264482)](_0x321677);return;}catch(_0x33a105){if(_0x496a90[_0x1022d1(-0x10e,-_0x446a1e._0x3b04da)](_0x5237d2(0x7f,0x2e),_0x496a90['UbYGR'])){if(_0x496a90['qPphR'](_0x33a105,Error)&&_0x33a105['message']['includes'](_0x5237d2(_0x446a1e._0x11ebd2,_0x446a1e._0x1ad515))&&_0x496a90['RwrIB'](_0x490f6d,_0x496a90[_0x5237d2(0x57,_0x446a1e._0x4a8055)](MAX_RETRIES,0x16*0xd7+0x11e4+-0x245d))){await new Promise(_0x4f4e31=>setTimeout(_0x4f4e31,0xf51*0x1+-0x1108+0x1e9+Math['random']()*(0x2*0xa42+-0x2350+0xf30)));continue;}throw _0x33a105;}else _0x15e79e[_0x1022d1(-0x114,-_0x446a1e._0x2f0265)](_0x1022d1(-0x127,-0x143)+_0x19a2e2+_0x5237d2(0xcd,_0x446a1e._0x5ecdb4));}}}function computeOverallPhase(_0x448f23){const _0x1e9fbd={_0x433501:0x4de,_0x31d6ba:0x4e6,_0x54ca77:0x4b9,_0x1f870f:0x4d5,_0x3d292a:0x4f9,_0x4c2ef4:0xe8,_0x2ff4e4:0x112},_0x30748c={};function _0x4f6172(_0x2d1bd3,_0x550f80){return _0x15965f(_0x550f80,_0x2d1bd3- -0x10);}function _0x218e5e(_0xe0f7ed,_0x572488){return _0x23756f(_0xe0f7ed,_0x572488-0xeb);}_0x30748c[_0x4f6172(-0x151,-0x15e)]=function(_0x2fbea8,_0x437ee6){return _0x2fbea8!==_0x437ee6;},_0x30748c[_0x218e5e(_0x1e9fbd._0x433501,0x4f9)]=_0x4f6172(-0xe8,-0xb1);const _0xac5de2=_0x30748c;for(const _0x27f7a2 of Object['keys'](_0x448f23)){if(_0xac5de2['XeyVQ'](_0x448f23[_0x27f7a2][_0x218e5e(_0x1e9fbd._0x31d6ba,_0x1e9fbd._0x54ca77)],_0xac5de2[_0x218e5e(_0x1e9fbd._0x1f870f,_0x1e9fbd._0x3d292a)]))return _0x448f23[_0x27f7a2]['phase'];}return _0x4f6172(-_0x1e9fbd._0x4c2ef4,-_0x1e9fbd._0x2ff4e4);}export async function getStatus(_0x56b21e){const _0x1bdef5={_0x429d6c:0x82,_0x356b99:0xe6,_0x3b4135:0xa6,_0x4b2024:0x76,_0x4becfc:0x11a,_0x4b20dc:0xb0,_0xf8a689:0xad,_0x1eb9b2:0xf6,_0x4bcee9:0xc9,_0x32aa25:0x112,_0x4796f9:0xf0,_0x256072:0xc0,_0x3f9ceb:0xc7,_0x4d6f0a:0xd6,_0x115231:0x7d,_0x1f6cf1:0x5b,_0x4671d8:0x7e,_0x1ee191:0x59,_0x227f2d:0x5e,_0x16b369:0x58,_0x5f1c06:0xbf,_0x3bb718:0x7d,_0x266eee:0xbc,_0x31f1f3:0x73,_0x478c9b:0x78,_0x55cf45:0xbc,_0x1034ac:0x7a,_0x56e8c7:0xa8,_0x3aa71b:0xaf,_0x17e73e:0xc2,_0x5a2bd6:0x12c,_0x1423a4:0xe2,_0x33c067:0x98,_0x212e9e:0x69,_0x53b495:0x133,_0x40e0df:0x30,_0x22b5d0:0x64,_0x1ab822:0x93,_0x413701:0x1f,_0x11c582:0xe4,_0xef81b8:0x112,_0xfa79db:0x38,_0x2e9a96:0x67,_0x4b44f5:0x46,_0xacfd29:0x124,_0x2e4cbc:0xe8,_0xb46eb3:0x36,_0xc1c69c:0x79,_0x14b56c:0x72,_0x45c308:0xce,_0x5bc2c6:0x87,_0x2415d8:0x92,_0x51587c:0xce,_0x2e6754:0x11a,_0x168c0f:0x136},_0x260322={};_0x260322['lUprz']=_0x2ae098(0x68,_0x1bdef5._0x429d6c),_0x260322[_0x2ae098(0xbf,_0x1bdef5._0x356b99)]=_0x695e5(-0xd0,-0xcc)+_0x2ae098(0xe0,0xb8)+_0x695e5(-_0x1bdef5._0x3b4135,-_0x1bdef5._0x4b2024),_0x260322[_0x695e5(-0xf4,-_0x1bdef5._0x4becfc)]=function(_0x304544,_0x5804ab){return _0x304544===_0x5804ab;},_0x260322['rJiaV']=_0x695e5(-0x99,-0x5b)+_0x2ae098(_0x1bdef5._0x4b20dc,0x5f)+_0x695e5(-0x7c,-0x57)+'\x20\x20\x20\x20\x20\x20|\x20操作'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x695e5(-_0x1bdef5._0xf8a689,-_0x1bdef5._0x1eb9b2)+'工具',_0x260322['cPCoY']=_0x2ae098(0xa3,0xd2);const _0x2dc311=_0x260322;if(!existsSync(_0x56b21e))return _0x2dc311[_0x695e5(-0x8b,-0x89)]===_0x695e5(-_0x1bdef5._0x4bcee9,-_0x1bdef5._0x32aa25)?_0x2dc311[_0x2ae098(0x94,0xe6)]:_0x2ae098(0x125,_0x1bdef5._0x4796f9)+_0x5be8c6+_0x695e5(-0xcc,-0x88);const _0x481bdb=readFileSync(_0x56b21e,_0x695e5(-_0x1bdef5._0x256072,-0x81)),_0x253286=JSON[_0x695e5(-_0x1bdef5._0x3f9ceb,-_0x1bdef5._0x429d6c)](_0x481bdb),_0x1127e4=[];_0x1127e4[_0x2ae098(_0x1bdef5._0x4d6f0a,0xf2)](_0x2ae098(0xaf,0xe0)+_0x253286[_0x695e5(-0x58,-_0x1bdef5._0x115231)][_0x2ae098(_0x1bdef5._0x1f6cf1,_0x1bdef5._0x4671d8)]);function _0x695e5(_0x787eb7,_0x2d99d9){return _0x23756f(_0x2d99d9,_0x787eb7- -0x4b2);}_0x1127e4[_0x695e5(-_0x1bdef5._0x1ee191,-0x7f)](_0x2ae098(_0x1bdef5._0x227f2d,0x59)+(PHASE_NAMES[_0x253286[_0x695e5(-_0x1bdef5._0x16b369,-0xa0)][_0x695e5(-_0x1bdef5._0x5f1c06,-_0x1bdef5._0x3bb718)+'se']]??_0x253286['project'][_0x695e5(-0xbf,-_0x1bdef5._0x266eee)+'se'])),_0x1127e4[_0x695e5(-0x59,-0x40)](_0x695e5(-0x85,-_0x1bdef5._0x31f1f3)+_0x253286['version']),_0x1127e4['push'](_0x2ae098(_0x1bdef5._0x478c9b,_0x1bdef5._0x55cf45)+_0x253286[_0x695e5(-_0x1bdef5._0x1034ac,-_0x1bdef5._0x56e8c7)]);const _0x4dc402=_0x253286[_0x2ae098(0x55,0x8d)],_0x2e3cbd=Object[_0x2ae098(_0x1bdef5._0x3aa71b,0xea)](_0x4dc402);if(_0x2dc311['sXSSR'](_0x2e3cbd['length'],-0x1c9*0x4+-0x4e6+0xc0a))return _0x1127e4[_0x695e5(-0x59,-0x20)](_0x695e5(-_0x1bdef5._0x17e73e,-0x7b)+_0x2ae098(_0x1bdef5._0x5a2bd6,_0x1bdef5._0x1423a4)),_0x1127e4[_0x2ae098(_0x1bdef5._0x33c067,_0x1bdef5._0x212e9e)]('\x0a');_0x1127e4[_0x2ae098(_0x1bdef5._0x53b495,0xf2)]('');function _0x2ae098(_0x4a0c72,_0x2456a0){return _0x15965f(_0x4a0c72,_0x2456a0-0x192);}_0x1127e4[_0x695e5(-_0x1bdef5._0x1ee191,-_0x1bdef5._0x40e0df)](_0x2dc311[_0x2ae098(0x19,_0x1bdef5._0x22b5d0)]),_0x1127e4[_0x695e5(-0x59,-_0x1bdef5._0x1ab822)](_0x2dc311[_0x2ae098(_0x1bdef5._0x413701,0x6a)]+'-'['repeat'](-0x2*-0xf50+0x24c2+-0xca*0x55));for(const _0xf3e5d9 of _0x2e3cbd){const _0x58cee9=_0x4dc402[_0xf3e5d9],_0x55d748=PHASE_NAMES[_0x58cee9[_0x695e5(-_0x1bdef5._0x11c582,-_0x1bdef5._0xef81b8)]]??_0x58cee9[_0x2ae098(_0x1bdef5._0xfa79db,_0x1bdef5._0x2e9a96)],_0x20e060=_0x58cee9[_0x695e5(-0x66,-_0x1bdef5._0x4b44f5)+_0x2ae098(_0x1bdef5._0xacfd29,_0x1bdef5._0x2e4cbc)]||'-',_0x51f6b9=_0x58cee9[_0x2ae098(_0x1bdef5._0xb46eb3,0x6f)+'ll']||'-';_0x1127e4['push'](_0x695e5(-_0x1bdef5._0xc1c69c,-0xa2)+_0xf3e5d9[_0x2ae098(_0x1bdef5._0x14b56c,0x92)](-0x1940+0x2e+0x2*0xc92)+_0x695e5(-_0x1bdef5._0x45c308,-_0x1bdef5._0x5bc2c6)+_0x55d748[_0x2ae098(0xae,_0x1bdef5._0x2415d8)](-0x350+0xe02+-0x2*0x552)+'\x20|\x20'+_0x20e060['padEnd'](-0x1*-0x1b3b+0x740*-0x4+0x9e*0x3)+_0x695e5(-_0x1bdef5._0x51587c,-_0x1bdef5._0x2e6754)+_0x51f6b9);}return _0x1127e4[_0x695e5(-_0x1bdef5._0x1423a4,-_0x1bdef5._0x168c0f)]('\x0a');}export async function advancePhase(_0x43c50f,_0x581248){const _0x2e1b44={_0x23e0e8:0x3bf,_0x3bfe9e:0x39f,_0x4d75d0:0x3b1,_0x2ecc84:0x3b9,_0x447f02:0x396,_0x535461:0x372,_0x29711c:0x391,_0x585863:0x385,_0x4fef13:0x389,_0xdd39a8:0x38d,_0x3202e2:0x382,_0x42dfe9:0x380,_0x3fa95a:0x37b,_0x2d5a22:0x3c3,_0x35a16b:0x350,_0x316543:0x3af,_0x37c7af:0x34f,_0x29c758:0x36e,_0x1c30df:0x33f,_0x5e103a:0x35a,_0x57acc8:0x395,_0x8b2597:0x362,_0x362922:0x3a1,_0x5e4184:0x381,_0x18b895:0x32d,_0x101289:0x3bd,_0x21ea21:0x3f9,_0x28eed3:0x354,_0x4e055b:0x429,_0x1c02ba:0x3d8,_0x174587:0x31a,_0x32d538:0x394,_0x142f0e:0x309,_0x53a02d:0x351,_0x22e5eb:0x3d4,_0x2b8bcd:0x384,_0x340d87:0x37d},_0xbfd25f={_0x40625f:0x477},_0x5c8485={_0x63dff9:0x4a6},_0x3d70df={'NxiKg':function(_0x149f57,_0x16aa55){return _0x149f57(_0x16aa55);},'XQCQa':'✅\x20所有\x20Agent'+_0x67c7b8(0x3c9,_0x2e1b44._0x23e0e8),'fomQu':function(_0x4c01c2,_0x187440){return _0x4c01c2===_0x187440;},'LmQEd':'vfWTQ','mqnMg':function(_0x40b253,_0x4a127e){return _0x40b253(_0x4a127e);},'qtOTp':function(_0x260bb9,_0x37c62d,_0x1ead41){return _0x260bb9(_0x37c62d,_0x1ead41);},'cBSUJ':_0x67c7b8(0x3e9,_0x2e1b44._0x3bfe9e)},_0x539b2a=await _0x3d70df[_0x67c7b8(0x3a0,0x381)](readStateFile,_0x43c50f);if(!_0x539b2a)return _0xaea4a7(0x3bb,0x38f)+_0x67c7b8(0x3aa,0x39d)+_0xaea4a7(_0x2e1b44._0x4d75d0,_0x2e1b44._0x2ecc84);function _0xaea4a7(_0x3974ca,_0x60dae1){return _0x15965f(_0x3974ca,_0x60dae1-_0x5c8485._0x63dff9);}const _0x20e34e=_0x581248??Object['keys'](_0x539b2a[_0x67c7b8(_0x2e1b44._0x447f02,_0x2e1b44._0x535461)])['find'](_0x35e678=>_0x539b2a[_0x67c7b8(0x367,0x372)][_0x35e678][_0xaea4a7(0x37e,0x37b)]!==_0xaea4a7(0x3f6,0x3ce));if(!_0x20e34e)return _0x3d70df[_0x67c7b8(_0x2e1b44._0x29711c,0x393)];const _0x24b6ad=_0x539b2a[_0xaea4a7(_0x2e1b44._0x585863,0x3a1)][_0x20e34e];if(!_0x24b6ad)return'❌\x20Agent\x20'+_0x20e34e+(_0xaea4a7(_0x2e1b44._0x4fef13,_0x2e1b44._0xdd39a8)+_0x67c7b8(0x3a9,0x3ae));if(_0x3d70df[_0xaea4a7(0x392,_0x2e1b44._0x3202e2)](_0x24b6ad[_0xaea4a7(_0x2e1b44._0x42dfe9,_0x2e1b44._0x3fa95a)],_0x67c7b8(_0x2e1b44._0x2d5a22,0x39f))){if(_0x3d70df[_0x67c7b8(0x33a,_0x2e1b44._0x35a16b)]!==_0x3d70df[_0xaea4a7(_0x2e1b44._0x316543,0x37f)]){const _0x2aa0fa=_0x16be86[_0x505b5d[_0xaea4a7(_0x2e1b44._0x37c7af,_0x2e1b44._0x29c758)]];_0x1b6ad7[_0x255680[_0x67c7b8(_0x2e1b44._0x1c30df,_0x2e1b44._0x1c30df)]]={..._0x2aa0fa,'childIds':_0x2aa0fa[_0x67c7b8(_0x2e1b44._0x5e103a,_0x2e1b44._0x57acc8)][_0x67c7b8(_0x2e1b44._0x8b2597,0x382)](_0x1ac3c8=>_0x1ac3c8!==_0xb50233)};}else return'['+_0x20e34e+_0x67c7b8(0x3b0,0x3d0);}const _0x3eaae7=_0x3d70df[_0x67c7b8(_0x2e1b44._0x362922,_0x2e1b44._0x5e4184)](computeNextPhase,_0x24b6ad[_0xaea4a7(_0x2e1b44._0x18b895,_0x2e1b44._0x3fa95a)]),_0x18ad92=PHASE_NAMES[_0x24b6ad[_0xaea4a7(0x3c3,_0x2e1b44._0x3fa95a)]]??_0x24b6ad['phase'],_0x43d5ba=PHASE_NAMES[_0x3eaae7]??_0x3eaae7,_0x15078b={..._0x539b2a[_0x67c7b8(_0x2e1b44._0x101289,_0x2e1b44._0x535461)]},_0x4fa69f=_0x15078b,_0xc39f9c={..._0x24b6ad};function _0x67c7b8(_0x24312e,_0x385095){return _0x15965f(_0x24312e,_0x385095-_0xbfd25f._0x40625f);}_0xc39f9c[_0xaea4a7(0x383,0x37b)]=_0x3eaae7,_0xc39f9c[_0xaea4a7(0x430,_0x2e1b44._0x21ea21)+'ration']='',_0xc39f9c[_0x67c7b8(_0x2e1b44._0xdd39a8,_0x2e1b44._0x28eed3)+'ll']='',_0x4fa69f[_0x20e34e]=_0xc39f9c;const _0x328ab7=_0x3d70df[_0x67c7b8(0x39d,0x3b5)](computeOverallPhase,_0x4fa69f),_0x659cc2={..._0x539b2a[_0x67c7b8(_0x2e1b44._0x4e055b,_0x2e1b44._0x1c02ba)]};_0x659cc2['currentPha'+'se']=_0x328ab7;const _0x5067f1={};_0x5067f1[_0x67c7b8(0x422,0x3d8)]=_0x659cc2,_0x5067f1[_0xaea4a7(0x3e2,_0x2e1b44._0x362922)]=_0x4fa69f,_0x5067f1[_0xaea4a7(_0x2e1b44._0x174587,0x363)+_0xaea4a7(0x405,_0x2e1b44._0x2d5a22)]=_0x539b2a['machineSna'+_0x67c7b8(0x3b6,_0x2e1b44._0x32d538)],await _0x3d70df[_0x67c7b8(_0x2e1b44._0x142f0e,_0x2e1b44._0x53a02d)](writeStateFile,_0x43c50f,_0x5067f1);const _0x3054db=[];return _0x3054db[_0x67c7b8(0x415,0x3d7)]('['+_0x20e34e+']\x20'+_0x18ad92+_0xaea4a7(0x3b6,0x3fd)+_0x43d5ba),_0x3d70df['fomQu'](_0x3eaae7,_0x3d70df[_0x67c7b8(0x39d,0x3d1)])&&_0x3054db[_0xaea4a7(0x452,0x406)](_0x67c7b8(_0x2e1b44._0x22e5eb,_0x2e1b44._0x2b8bcd)+_0x20e34e+'\x20已完成全部阶段'),_0x3054db[_0xaea4a7(0x349,_0x2e1b44._0x340d87)]('\x0a');}function computeNextPhase(_0x189c5a){const _0xed89f4={_0x38b982:0x40d,_0x457bc8:0x3ac,_0x3216f3:0x3f9,_0x84a114:0x3ec,_0x4567b7:0x39f,_0x5276ed:0x3d5,_0x23f937:0x418,_0x465437:0x406,_0x2d7f8f:0x3f0,_0x1d37f8:0x3d0,_0x488636:0x412,_0x4f3bf6:0x385,_0x9fa1d5:0x3ca,_0x591696:0x41d,_0x8e48a7:0x43f,_0x3a76b6:0x438,_0x43c628:0x465,_0x306a7c:0x43b,_0x1daaaa:0x407,_0x3b18da:0x417,_0x4cea24:0x3fe,_0x1ff3c5:0x3fc,_0x17f639:0x3dd,_0x1a1eb1:0x3e8},_0x8d58db={};_0x8d58db[_0x41d6db(_0xed89f4._0x38b982,0x3c9)]=function(_0x175e07,_0x309f96){return _0x175e07-_0x309f96;},_0x8d58db[_0x208d5e(0x3b4,_0xed89f4._0x457bc8)]=function(_0x4e731c,_0x3b4884){return _0x4e731c>=_0x3b4884;},_0x8d58db['QdFpw']=_0x41d6db(_0xed89f4._0x3216f3,0x429),_0x8d58db[_0x208d5e(_0xed89f4._0x84a114,0x40b)]=_0x208d5e(0x372,_0xed89f4._0x4567b7),_0x8d58db[_0x41d6db(0x417,0x45b)]=function(_0x564502,_0x494a22){return _0x564502<_0x494a22;},_0x8d58db[_0x41d6db(0x3c2,0x383)]=function(_0x5929d5,_0x57b796){return _0x5929d5+_0x57b796;},_0x8d58db['jyiwZ']=function(_0x22a472,_0x3de47b){return _0x22a472===_0x3de47b;};const _0xfefb22=_0x8d58db,_0x121ad2=PHASES['indexOf'](_0x189c5a);if(_0xfefb22[_0x208d5e(0x3b9,0x3ac)](_0x121ad2,0x224c+0xc48+-0x2e94))return _0xfefb22['QdFpw']===_0x41d6db(_0xed89f4._0x5276ed,0x39f)?_0x208d5e(0x3e3,0x397)+_0x22e796+(_0x208d5e(_0xed89f4._0x5276ed,0x3c2)+_0x41d6db(0x419,_0xed89f4._0x23f937)):_0x121ad2<_0xfefb22[_0x208d5e(0x3df,_0xed89f4._0x465437)](PHASES[_0x208d5e(_0xed89f4._0x2d7f8f,_0xed89f4._0x1d37f8)],0x1*0x1c95+-0x1b40+-0x154)?PHASES[_0x121ad2+(0x445+-0x1*-0x6b5+-0xaf9*0x1)]:'completed';const _0x5c6cd0=PIPELINE_PHASES['indexOf'](_0x189c5a);if(_0xfefb22['ZSQCg'](_0x5c6cd0,0x2*0xb11+0x1b1*0x8+-0x23aa)){if(_0xfefb22[_0x41d6db(_0xed89f4._0x488636,0x432)]===_0x208d5e(_0xed89f4._0x4f3bf6,_0xed89f4._0x9fa1d5)){const _0x25a48f=_0x1e96cf[_0x1ed35a]??_0x270ed3,_0x5a229='█'[_0x41d6db(_0xed89f4._0x591696,_0xed89f4._0x8e48a7)](_0x5567f4)+'░'[_0x41d6db(_0xed89f4._0x591696,_0xed89f4._0x3a76b6)](_0x2e1de3['max'](-0x13f6+-0x2*0x330+-0xd2b*-0x2,_0xfefb22['HNLxi'](_0x278ef6,_0x3a1144)));_0x274e70[_0x208d5e(_0xed89f4._0x43c628,_0xed89f4._0x306a7c)]('\x20\x20\x20\x20\x20\x20'+_0x25a48f[_0x41d6db(0x3e2,_0xed89f4._0x1daaaa)](-0x295*0xb+-0x4de+0x2153)+'\x20'+_0x5a229+'\x20'+_0x573eda);}else return _0xfefb22[_0x41d6db(_0xed89f4._0x3b18da,0x44f)](_0x5c6cd0,_0xfefb22[_0x41d6db(_0xed89f4._0x38b982,_0xed89f4._0x4cea24)](PIPELINE_PHASES['length'],0x985*0x1+0x2587+0x2f0b*-0x1))?PIPELINE_PHASES[_0xfefb22[_0x41d6db(0x3c2,_0xed89f4._0x1ff3c5)](_0x5c6cd0,0x1*0x2635+-0x1b77+-0xabd)]:'completed';}function _0x208d5e(_0x107507,_0x40fc08){return _0x23756f(_0x107507,_0x40fc08- -0x1e);}function _0x41d6db(_0x4724b4,_0x31c2f2){return _0x23756f(_0x31c2f2,_0x4724b4- -0x17);}if(_0xfefb22['jyiwZ'](_0x189c5a,_0x208d5e(0x406,_0xed89f4._0x17f639)))return PHASES[0xc41*0x1+-0x1bca+0xf89];return _0x208d5e(_0xed89f4._0x1a1eb1,0x403);}export async function newProject(_0x110700,_0x4f3bfd){const _0x26e5fb={_0x4cea60:0x16f,_0x12b4d1:0x14f,_0x23209a:0x4b,_0x5540ed:0x75,_0x2d28b9:0x119,_0x3a2d91:0x41,_0x27b07e:0x8,_0x3cfec3:0x161,_0x50fd06:0x12e,_0x22fb62:0x157,_0x20003f:0x152,_0x3b7289:0x10e,_0x3cd403:0x14b,_0x1370a6:0x190,_0x228d40:0x1b1,_0x4daca9:0x83,_0x379e37:0x53,_0x146285:0x35,_0x5badd8:0x122,_0x48452e:0x16c,_0x3f0081:0x174},_0x3e5632={_0x16d949:0x123},_0x371d11={'nlKaV':function(_0x1b6bd,_0x3f5be0,_0x22abe6){return _0x1b6bd(_0x3f5be0,_0x22abe6);},'lLxLk':function(_0xc749d5,_0x5c86c9,_0x2b8541){return _0xc749d5(_0x5c86c9,_0x2b8541);},'ynllQ':'\x20→\x20'},_0x2468b2=_0x371d11[_0x38b80c(0x1bb,0x19e)](resolve,_0x110700,'..');if(!existsSync(_0x2468b2)){const _0x3f0bbc={};_0x3f0bbc['recursive']=!![],_0x371d11[_0x38b80c(_0x26e5fb._0x4cea60,_0x26e5fb._0x12b4d1)](mkdirSync,_0x2468b2,_0x3f0bbc);}const _0x277571=generateAgentId(),_0x11d822={};_0x11d822[_0x355da9(_0x26e5fb._0x23209a,_0x26e5fb._0x5540ed)]=_0x277571,_0x11d822[_0x38b80c(0xf2,_0x26e5fb._0x2d28b9)]=null,_0x11d822[_0x355da9(0x69,_0x26e5fb._0x3a2d91)]=[],_0x11d822[_0x355da9(0x5,-_0x26e5fb._0x27b07e)]='idle',_0x11d822['currentOpe'+'ration']='',_0x11d822[_0x38b80c(_0x26e5fb._0x3cfec3,_0x26e5fb._0x50fd06)+'ll']='';const _0x531dc4=_0x11d822,_0x334168={};_0x334168['name']=_0x4f3bfd,_0x334168[_0x38b80c(_0x26e5fb._0x22fb62,0x14b)+'se']=_0x38b80c(_0x26e5fb._0x20003f,0x153);const _0x7773fa={};_0x7773fa[_0x277571]=_0x531dc4;function _0x355da9(_0x1effda,_0x8857e3){return _0x15965f(_0x1effda,_0x8857e3-_0x3e5632._0x16d949);}const _0x33bf04={};_0x33bf04['project']=_0x334168;function _0x38b80c(_0x568e3e,_0x2e43c7){return _0x15965f(_0x568e3e,_0x2e43c7-0x251);}_0x33bf04[_0x355da9(0x53,0x1e)]=_0x7773fa,_0x33bf04[_0x38b80c(0x102,_0x26e5fb._0x3b7289)+'pshot']=null,await _0x371d11[_0x38b80c(_0x26e5fb._0x3cd403,0x19e)](writeStateFile,_0x110700,_0x33bf04);const _0x53bf33=[];return _0x53bf33[_0x38b80c(_0x26e5fb._0x1370a6,_0x26e5fb._0x228d40)](_0x355da9(0x4,0x29)+_0x4f3bfd),_0x53bf33[_0x355da9(0x8a,_0x26e5fb._0x4daca9)]('\x20\x20\x20目录:\x20'+_0x2468b2),_0x53bf33['push'](_0x355da9(_0x26e5fb._0x379e37,0xb)+'t:\x20'+_0x277571),_0x53bf33[_0x355da9(_0x26e5fb._0x146285,0x83)](_0x355da9(0x25,0x54)+PIPELINE_PHASES[_0x38b80c(_0x26e5fb._0x5badd8,_0x26e5fb._0x48452e)](_0xc26889=>PHASE_NAMES[_0xc26889]??_0xc26889)['join'](_0x371d11[_0x38b80c(_0x26e5fb._0x3f0081,0x178)])),_0x53bf33[_0x38b80c(0x154,0x128)]('\x0a');}export async function updateOperation(_0x5a5fb3,_0x1becd6,_0x2edc0d,_0x2ba449){const _0x4e5b27={_0x16e0e4:0x25f,_0x4ffab7:0x2a4,_0x4de59e:0x3e2,_0x14ec59:0x272,_0x3b834e:0x236,_0x116ab2:0x32e,_0xbbd8f6:0x3a9,_0x469627:0x284,_0x327b74:0x234,_0x31d20b:0x3c8,_0x51ea70:0x3d3,_0x586d17:0x36d,_0x26c829:0x3a6,_0x5aba94:0x246,_0x4ecc98:0x27d,_0x18519a:0x38f,_0x4d1bf7:0x299},_0x3d1301={_0x127717:0x170},_0xbd2999={'gDDXt':function(_0x2c7b3e,_0x3ef236){return _0x2c7b3e(_0x3ef236);},'btIaA':function(_0x4b72d5,_0x19f1eb){return _0x4b72d5===_0x19f1eb;},'rQEhk':function(_0x403db3,_0x513e98,_0x70b86c){return _0x403db3(_0x513e98,_0x70b86c);}},_0x802f84=await _0xbd2999[_0x50c1e6(0x2d3,0x2dd)](readStateFile,_0x5a5fb3);if(!_0x802f84)return _0xbd2999[_0x50c1e6(_0x4e5b27._0x16e0e4,_0x4e5b27._0x4ffab7)](_0x50c1e6(0x2ac,0x27f),_0x233f04(0x3bd,_0x4e5b27._0x4de59e))?_0x51f2a0[-0x4*-0x6c3+-0x9c*0x1+-0x1a70]:_0x50c1e6(_0x4e5b27._0x14ec59,_0x4e5b27._0x3b834e);const _0x9251d=_0x802f84['agents'][_0x1becd6];if(!_0x9251d)return _0x233f04(_0x4e5b27._0x116ab2,0x31e)+_0x1becd6+('\x20不存在于\x20stat'+_0x233f04(_0x4e5b27._0xbbd8f6,0x393));const _0x1971b1={..._0x802f84[_0x50c1e6(_0x4e5b27._0x469627,_0x4e5b27._0x327b74)]},_0x554ea1=_0x1971b1,_0x4fe618={..._0x9251d};_0x4fe618['currentOpe'+_0x233f04(_0x4e5b27._0x31d20b,0x414)]=_0x2edc0d,_0x4fe618['currentSki'+'ll']=_0x2ba449;function _0x233f04(_0x88686c,_0x12f5d4){return _0x23756f(_0x12f5d4,_0x88686c- -0x87);}_0x554ea1[_0x1becd6]=_0x4fe618;const _0x3fc224={};_0x3fc224[_0x233f04(_0x4e5b27._0x51ea70,0x411)]=_0x802f84[_0x50c1e6(0x2ea,0x2b4)],_0x3fc224[_0x233f04(_0x4e5b27._0x586d17,_0x4e5b27._0x26c829)]=_0x554ea1,_0x3fc224[_0x233f04(0x32f,0x315)+_0x50c1e6(0x2a6,0x2fa)]=_0x802f84[_0x50c1e6(_0x4e5b27._0x5aba94,_0x4e5b27._0x4ecc98)+_0x233f04(_0x4e5b27._0x18519a,0x395)];function _0x50c1e6(_0x5e1e95,_0x2b7a6d){return _0x23756f(_0x2b7a6d,_0x5e1e95- -_0x3d1301._0x127717);}return await _0xbd2999[_0x50c1e6(_0x4e5b27._0x4d1bf7,0x24a)](writeStateFile,_0x5a5fb3,_0x3fc224),_0x233f04(0x358,0x339)+_0x1becd6+_0x233f04(0x330,0x380)+_0x2edc0d+'\x20('+_0x2ba449+')';}export async function registerAgent(_0xf8fe39,_0x1eecbf,_0x4ef9d2={}){const _0x3d0a10={_0x2f3802:0x58,_0x2a98e5:0x452,_0x4b7642:0x406,_0x3e0842:0x3e2,_0x372f9a:0x3,_0x20a20f:0x19,_0x3953f6:0x3fc,_0xbc38c5:0x3f4,_0x405f70:0x13,_0x48a8aa:0x446,_0x3ac129:0x2b,_0x347b7b:0x6b,_0x5dc6d2:0x2f,_0x5e2656:0x437,_0x4a08a8:0x454,_0xc94194:0x37,_0x8614da:0x56,_0x83e083:0x3b4,_0x21c4b9:0x3b0,_0x5b9da2:0x15,_0x8f07df:0x408,_0x5d957b:0x3ae,_0x5f4edf:0x2e,_0x5bf736:0x436,_0x190310:0x5f,_0x5889d8:0x5b},_0x2c4f80={_0x29a6bd:0xce},_0x47a374={_0x1d5251:0x6},_0x4cfa27={'JfQND':'⚠️\x20\x20状态文件不存在','aIjvT':function(_0x1bf530,_0x4017a6){return _0x1bf530(_0x4017a6);},'NaKuD':_0x5b4f9f(-_0x3d0a10._0x2f3802,-0x30)},_0x370571=await _0x4cfa27[_0x14c8da(0x38d,0x3d6)](readStateFile,_0xf8fe39);if(!_0x370571)return'⚠️\x20\x20状态文件不存在'+_0x14c8da(0x434,0x419)+_0x14c8da(_0x3d0a10._0x2a98e5,_0x3d0a10._0x4b7642);if(_0x370571[_0x5b4f9f(-0x33,-0x37)][_0x1eecbf])return _0x14c8da(_0x3d0a10._0x3e0842,0x40c)!==_0x5b4f9f(-_0x3d0a10._0x372f9a,-_0x3d0a10._0x20a20f)?_0x4cfa27[_0x14c8da(_0x3d0a10._0x3953f6,_0x3d0a10._0xbc38c5)]:'⚠️\x20\x20Agent\x20'+_0x1eecbf+'\x20已存在,跳过注册';const _0x3bb1fa=_0x4ef9d2['phase']??_0x4cfa27[_0x14c8da(0x421,_0x3d0a10._0x2a98e5)],_0x8e6bc2=_0x4ef9d2['parentId']??null,_0x458ba5={};_0x458ba5['agentId']=_0x1eecbf,_0x458ba5['parentId']=_0x8e6bc2,_0x458ba5[_0x5b4f9f(-_0x3d0a10._0x405f70,-0x14)]=[],_0x458ba5[_0x5b4f9f(-0x79,-0x5d)]=_0x3bb1fa,_0x458ba5[_0x14c8da(0x44f,_0x3d0a10._0x48a8aa)+_0x14c8da(0x41a,0x449)]='',_0x458ba5['currentSki'+'ll']='';const _0x4d414a=_0x458ba5,_0x2ff78d={..._0x370571[_0x5b4f9f(-_0x3d0a10._0x3ac129,-0x37)]};_0x2ff78d[_0x1eecbf]=_0x4d414a;const _0x5001e5=_0x2ff78d;if(_0x8e6bc2&&_0x5001e5[_0x8e6bc2]){const _0x47d8f5=_0x5001e5[_0x8e6bc2];if(!_0x47d8f5[_0x14c8da(0x454,0x411)]['includes'](_0x1eecbf)){const _0xeccf1e={..._0x47d8f5};_0xeccf1e[_0x14c8da(0x3fd,0x411)]=[..._0x47d8f5['childIds'],_0x1eecbf],_0x5001e5[_0x8e6bc2]=_0xeccf1e;}}const _0x1b7d08={};_0x1b7d08[_0x5b4f9f(_0x3d0a10._0x347b7b,_0x3d0a10._0x5dc6d2)]=_0x370571[_0x14c8da(_0x3d0a10._0x5e2656,_0x3d0a10._0x4a08a8)],_0x1b7d08[_0x5b4f9f(0x1c,-_0x3d0a10._0xc94194)]=_0x5001e5,_0x1b7d08[_0x5b4f9f(-_0x3d0a10._0x8614da,-0x75)+'pshot']=_0x370571[_0x14c8da(_0x3d0a10._0x83e083,_0x3d0a10._0x21c4b9)+_0x5b4f9f(-0x43,-_0x3d0a10._0x5b9da2)],await writeStateFile(_0xf8fe39,_0x1b7d08);function _0x14c8da(_0xfeffbd,_0x47229){return _0x23756f(_0xfeffbd,_0x47229- -_0x47a374._0x1d5251);}const _0x344d82=PHASE_NAMES[_0x3bb1fa]??_0x3bb1fa,_0x9af4b6=[];function _0x5b4f9f(_0x170a65,_0x70a88c){return _0x15965f(_0x170a65,_0x70a88c-_0x2c4f80._0x29a6bd);}_0x9af4b6[_0x14c8da(_0x3d0a10._0x8f07df,0x453)](_0x14c8da(_0x3d0a10._0x21c4b9,0x3c3)+_0x5b4f9f(0x2d,0x13)+_0x1eecbf),_0x9af4b6['push'](_0x14c8da(0x3b7,_0x3d0a10._0x5d957b)+_0x344d82);if(_0x8e6bc2)_0x9af4b6[_0x5b4f9f(0x24,_0x3d0a10._0x5f4edf)](_0x14c8da(0x3e3,_0x3d0a10._0x5bf736)+':\x20'+_0x8e6bc2);return _0x9af4b6[_0x5b4f9f(-_0x3d0a10._0x190310,-_0x3d0a10._0x5889d8)]('\x0a');}export async function deregisterAgent(_0x4c06a8,_0x4a30b3){const _0x1bc912={_0x293f9e:0x2d8,_0x465a6e:0x2ca,_0x45cbf8:0x2c3,_0x1414e2:0x2d8,_0x400931:0x99,_0x248fe4:0x86,_0x1ffe20:0x2a5,_0x59a328:0x2da,_0x5a7549:0x3b,_0x254182:0x43,_0x5b2c0a:0xa,_0x46d9e6:0x2d2,_0x479a6e:0x28d,_0x7b0d97:0x2b,_0x17d709:0x3c,_0x10f329:0x54,_0x58b4d4:0x2d8,_0x475b79:0x320,_0x52ee18:0x91,_0x342660:0x2fa,_0x2ff748:0x30f,_0x470c45:0x31b},_0x572e46={_0xdb33b7:0xb2},_0x5bffae={'epUrc':function(_0x441967,_0x44805f){return _0x441967>_0x44805f;},'hfwWg':function(_0x33edf1,_0x11b302){return _0x33edf1(_0x11b302);},'kGkLU':function(_0x479a3d,_0x224832,_0x2d8c29){return _0x479a3d(_0x224832,_0x2d8c29);}},_0x5c8c26=await readStateFile(_0x4c06a8);if(!_0x5c8c26)return _0x5b9332(-0x83,-0x65);if(!_0x5c8c26[_0x5d800c(_0x1bc912._0x293f9e,0x2c4)][_0x4a30b3])return'⚠️\x20\x20Agent\x20'+_0x4a30b3+_0x5d800c(_0x1bc912._0x465a6e,_0x1bc912._0x45cbf8);const _0x2f31a5=_0x5c8c26[_0x5d800c(_0x1bc912._0x1414e2,0x294)][_0x4a30b3],_0x202ac4={..._0x5c8c26['agents']},_0x3da25e=_0x202ac4;delete _0x3da25e[_0x4a30b3];if(_0x2f31a5[_0x5d800c(0x2a5,0x2ac)]&&_0x3da25e[_0x2f31a5[_0x5b9332(-_0x1bc912._0x400931,-_0x1bc912._0x248fe4)]]){const _0x46feaa=_0x3da25e[_0x2f31a5[_0x5d800c(_0x1bc912._0x1ffe20,0x2c3)]];_0x3da25e[_0x2f31a5[_0x5d800c(_0x1bc912._0x1ffe20,_0x1bc912._0x59a328)]]={..._0x46feaa,'childIds':_0x46feaa['childIds'][_0x5b9332(-_0x1bc912._0x5a7549,-_0x1bc912._0x254182)](_0x4fc202=>_0x4fc202!==_0x4a30b3)};}function _0x5b9332(_0x54c7d6,_0x57584e){return _0x15965f(_0x54c7d6,_0x57584e-_0x572e46._0xdb33b7);}const _0x1c8feb=Object[_0x5b9332(-0x30,_0x1bc912._0x5b2c0a)](_0x3da25e),_0xac6f85=_0x5bffae[_0x5b9332(-0x44,-0xd)](_0x1c8feb[_0x5d800c(_0x1bc912._0x46d9e6,_0x1bc912._0x479a6e)],0x11*-0x64+0x14*0x192+-0x631*0x4)?_0x5bffae['hfwWg'](computeOverallPhase,_0x3da25e):'idle';function _0x5d800c(_0x427ad0,_0x360be0){return _0x23756f(_0x360be0,_0x427ad0- -0x11c);}const _0x3b3576={..._0x5c8c26[_0x5b9332(_0x1bc912._0x7b0d97,0x13)]};_0x3b3576[_0x5b9332(-_0x1bc912._0x17d709,-_0x1bc912._0x10f329)+'se']=_0xac6f85;const _0x4db4d3={};return _0x4db4d3['project']=_0x3b3576,_0x4db4d3[_0x5d800c(_0x1bc912._0x58b4d4,_0x1bc912._0x475b79)]=_0x3da25e,_0x4db4d3['machineSna'+'pshot']=_0x5c8c26[_0x5b9332(-0x80,-_0x1bc912._0x52ee18)+_0x5d800c(_0x1bc912._0x342660,0x319)],await _0x5bffae['kGkLU'](writeStateFile,_0x4c06a8,_0x4db4d3),_0x5d800c(0x2ad,0x2bd)+_0x5d800c(_0x1bc912._0x2ff748,_0x1bc912._0x470c45)+_0x4a30b3;}export async function showProgress(_0x299631){const _0x242d8e={_0xe3275d:0x595,_0xb125b:0x62e,_0x39d839:0x606,_0x213f5d:0x4e6,_0x28df1f:0x52a,_0x1a64dd:0x5c9,_0x3a329b:0x548,_0xe8ec4a:0x509,_0x3d454c:0x535,_0x3ad83b:0x51d,_0x31a3ca:0x53e,_0xc14b78:0x57a,_0x2a9f35:0x5f2,_0x46408:0x610,_0x3d4820:0x5db,_0x275fb4:0x643,_0x245cad:0x5f7,_0x20bf75:0x583,_0x4cdeb9:0x647,_0xf79922:0x64e,_0x2f0d6e:0x4fb,_0x2ea439:0x648,_0x53a341:0x51c,_0x46b2d0:0x626,_0x420e2a:0x578,_0x2121f2:0x556,_0x30a845:0x4ee,_0x28e23f:0x4f9,_0x483d89:0x54c,_0x405660:0x584,_0x4b3066:0x61a,_0x5493f8:0x66e,_0x3d8bbd:0x5f5,_0x287d92:0x625,_0x36b75e:0x5b5,_0x4b432d:0x5e1,_0x318613:0x513,_0xb1172d:0x647,_0x68b1f9:0x658,_0x46acf7:0x5f1,_0x18100f:0x582,_0x5c5e01:0x566,_0x43e3d0:0x517,_0x538899:0x582,_0x27d261:0x5c5,_0x3fae6f:0x58d,_0x4d4005:0x55f,_0x4712b6:0x601,_0x219e08:0x52e,_0x1f7a6a:0x576,_0x17eba9:0x55d,_0x78a4ab:0x63d,_0x34f416:0x5ef,_0x55944c:0x5ba,_0x3d0551:0x62f,_0x2b3da0:0x665,_0x92397e:0x4f7,_0x555754:0x553,_0x1952de:0x5fa,_0x152ae8:0x5d2,_0x369a7b:0x61e,_0x674954:0x521,_0x3e516e:0x607,_0x473aca:0x5a6},_0x5f3b14={_0x4ab527:0x129},_0x4e77a1={};_0x4e77a1['jdtRf']=function(_0x431525,_0x51547c){return _0x431525>_0x51547c;},_0x4e77a1['NYnUg']=function(_0x10b364,_0x1a81a7){return _0x10b364+_0x1a81a7;},_0x4e77a1['Kkvci']=_0x43e3e4(0x5c2,0x5da),_0x4e77a1['dNzaz']=function(_0x517637,_0x1c1a6f){return _0x517637+_0x1c1a6f;},_0x4e77a1[_0x6fcefc(_0x242d8e._0xe3275d,0x57f)]=function(_0x37abd2,_0x4d4fe3){return _0x37abd2>_0x4d4fe3;},_0x4e77a1[_0x43e3e4(_0x242d8e._0xb125b,_0x242d8e._0x39d839)]=function(_0x278533,_0x534568){return _0x278533!==_0x534568;},_0x4e77a1[_0x6fcefc(_0x242d8e._0x213f5d,_0x242d8e._0x28df1f)]=_0x43e3e4(_0x242d8e._0x1a64dd,0x5b6);const _0x3c7b88=_0x4e77a1,_0x25a56f=await readStateFile(_0x299631);if(!_0x25a56f)return'⚠️\x20\x20状态文件不存在'+_0x6fcefc(0x58b,_0x242d8e._0x3a329b)+_0x6fcefc(_0x242d8e._0xe8ec4a,_0x242d8e._0x3d454c);const _0x41d861=_0x25a56f[_0x6fcefc(_0x242d8e._0x3ad83b,_0x242d8e._0x3ad83b)],_0x1072c0=Object[_0x6fcefc(_0x242d8e._0x31a3ca,_0x242d8e._0xc14b78)](_0x41d861),_0x5a4065=_0x1072c0['length'],_0x2b23c3=_0x1072c0[_0x43e3e4(_0x242d8e._0x2a9f35,0x637)](_0x52d80e=>_0x41d861[_0x52d80e][_0x43e3e4(0x5bc,0x5b3)]===_0x43e3e4(0x60f,0x623))[_0x6fcefc(0x4f2,0x517)];function _0x6fcefc(_0x446df5,_0x300cc1){return _0x23756f(_0x446df5,_0x300cc1-_0x5f3b14._0x4ab527);}const _0x4b7cf6=_0x3c7b88[_0x43e3e4(_0x242d8e._0x46408,_0x242d8e._0x3d4820)](_0x5a4065,-0x165*0x5+0x1a9b+-0x13a2)?Math[_0x43e3e4(_0x242d8e._0x275fb4,0x633)](_0x2b23c3/_0x5a4065*(0x5bb+0x1c*0x28+-0x3*0x33d)):-0xdc*0x20+-0x9db+0x255b,_0x417aee={};for(const _0x202d12 of _0x1072c0){const _0x4ad0d4=_0x41d861[_0x202d12][_0x43e3e4(0x5bc,_0x242d8e._0x245cad)];_0x417aee[_0x4ad0d4]=_0x3c7b88[_0x6fcefc(0x545,0x55c)](_0x417aee[_0x4ad0d4]??-0x114a+-0x201d*0x1+0x3167,-0x5*-0x321+-0x3b+0x107*-0xf);}const _0x79e147=[];_0x79e147[_0x6fcefc(0x542,0x582)]('📊\x20项目进度:\x20'+_0x25a56f[_0x6fcefc(0x574,_0x242d8e._0x20bf75)]['name']),_0x79e147[_0x43e3e4(_0x242d8e._0x4cdeb9,_0x242d8e._0xf79922)](_0x6fcefc(_0x242d8e._0x2f0d6e,0x4e9)+(PHASE_NAMES[_0x25a56f[_0x43e3e4(_0x242d8e._0x2ea439,0x60e)][_0x6fcefc(0x509,_0x242d8e._0x53a341)+'se']]??_0x25a56f[_0x43e3e4(_0x242d8e._0x2ea439,_0x242d8e._0x46b2d0)]['currentPha'+'se'])),_0x79e147[_0x43e3e4(0x647,0x611)](_0x6fcefc(_0x242d8e._0x420e2a,_0x242d8e._0x2121f2)+_0x25a56f[_0x6fcefc(0x4e8,_0x242d8e._0x30a845)]),_0x79e147[_0x6fcefc(0x532,0x582)](_0x6fcefc(_0x242d8e._0x28e23f,_0x242d8e._0x483d89)+_0x25a56f['updatedAt']),_0x79e147['push'](_0x43e3e4(0x5a7,_0x242d8e._0x405660)+_0x4b7cf6+_0x6fcefc(0x599,0x564)+_0x2b23c3+'/'+_0x5a4065+_0x43e3e4(_0x242d8e._0x4b3066,_0x242d8e._0x5493f8)),_0x79e147[_0x43e3e4(0x647,_0x242d8e._0x3d8bbd)](''),_0x79e147[_0x43e3e4(_0x242d8e._0x4cdeb9,_0x242d8e._0x287d92)](_0x3c7b88['Kkvci']);for(const [_0x1130b6,_0x5c2a16]of Object[_0x43e3e4(_0x242d8e._0x36b75e,_0x242d8e._0x4b432d)](_0x417aee)){const _0x48eaee=PHASE_NAMES[_0x1130b6]??_0x1130b6,_0x183535=_0x3c7b88['dNzaz']('█'['repeat'](_0x5c2a16),'░'[_0x6fcefc(_0x242d8e._0x318613,0x55d)](Math['max'](0xdfc+0x7*0x9b+-0x1239,_0x5a4065-_0x5c2a16)));_0x79e147[_0x43e3e4(_0x242d8e._0xb1172d,_0x242d8e._0x68b1f9)](_0x6fcefc(0x584,0x57d)+_0x48eaee[_0x43e3e4(0x5e7,_0x242d8e._0x46acf7)](-0x2179+0x2*0x108e+0x6b)+'\x20'+_0x183535+'\x20'+_0x5c2a16);}_0x79e147[_0x6fcefc(0x54c,_0x242d8e._0x18100f)]('');function _0x43e3e4(_0x1f8b02,_0x3dc6b9){return _0x15965f(_0x3dc6b9,_0x1f8b02-0x6e7);}if(_0x3c7b88['tVLgm'](_0x1072c0[_0x6fcefc(_0x242d8e._0x5c5e01,_0x242d8e._0x43e3d0)],-0x9*0x8c+-0xd4*-0x3+0x270)){_0x79e147[_0x6fcefc(0x54b,_0x242d8e._0x538899)]('\x20\x20\x20🤖\x20Agent'+_0x43e3e4(_0x242d8e._0x27d261,_0x242d8e._0x405660)),_0x79e147[_0x43e3e4(0x647,0x663)]('\x20\x20\x20Agent\x20I'+'D\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x6fcefc(_0x242d8e._0x3fae6f,_0x242d8e._0x4d4005)+_0x6fcefc(0x594,0x56e)+_0x43e3e4(_0x242d8e._0x4712b6,0x649)+_0x6fcefc(0x576,_0x242d8e._0x219e08)+'工具'),_0x79e147[_0x6fcefc(0x56b,0x582)](_0x6fcefc(0x56b,0x562)+'-'[_0x6fcefc(_0x242d8e._0x1f7a6a,_0x242d8e._0x17eba9)](-0x3*0xb9+-0x1923+0x1b9e));for(const _0x2e982d of _0x1072c0){if(_0x3c7b88[_0x43e3e4(0x62e,_0x242d8e._0x78a4ab)](_0x6fcefc(0x4f0,0x504),_0x3c7b88[_0x43e3e4(_0x242d8e._0x34f416,0x62a)]))return _0x43e3e4(_0x242d8e._0x55944c,0x5c3)+_0x43e3e4(_0x242d8e._0x3d0551,_0x242d8e._0x2b3da0);else{const _0x25622a=_0x41d861[_0x2e982d],_0x1300a1=PHASE_NAMES[_0x25622a[_0x6fcefc(0x53c,_0x242d8e._0x92397e)]]??_0x25622a[_0x6fcefc(0x525,_0x242d8e._0x92397e)],_0x2c95e7=_0x25622a[_0x6fcefc(0x5a6,0x575)+_0x6fcefc(0x5aa,_0x242d8e._0x420e2a)]||'-',_0x3e71f9=_0x25622a['currentSki'+'ll']||'-';_0x79e147[_0x6fcefc(_0x242d8e._0x555754,_0x242d8e._0x538899)]('\x20\x20\x20'+_0x2e982d[_0x43e3e4(0x5e7,_0x242d8e._0x1952de)](0xbba+0x85d+0xcd*-0x19)+_0x43e3e4(_0x242d8e._0x152ae8,_0x242d8e._0x369a7b)+_0x1300a1[_0x6fcefc(_0x242d8e._0x674954,0x522)](-0x154a+0xa1a+0xb3e)+'\x20|\x20'+_0x2c95e7[_0x43e3e4(0x5e7,_0x242d8e._0x3e516e)](-0x1*-0x1bce+0x243c+-0x7*0x923)+_0x43e3e4(0x5d2,_0x242d8e._0x473aca)+_0x3e71f9);}}}return _0x79e147[_0x6fcefc(0x4b9,0x4f9)]('\x0a');}export async function quickTask(_0x5919d9,_0x18fc09){const _0x565698={_0x9aa7a2:0x3ad,_0x563d73:0x8,_0x1c8957:0x3ae,_0x471938:0x36a,_0x2f3de6:0x1a,_0x282366:0x335,_0x400b44:0xa,_0x2b3322:0x12,_0x3c9ce9:0x75,_0x2d4363:0x2a,_0x140ad2:0x27,_0x5374eb:0x348,_0x54ed37:0x394,_0x3d010e:0x3aa,_0x4f856f:0x3d5,_0x478989:0x35,_0x881b37:0xf,_0x389c96:0x1b,_0x19a43c:0x354,_0x305b8f:0x33e,_0xca5f39:0x3cb,_0x283ef1:0x3,_0xdcf169:0x360,_0x102b19:0x3b,_0x3ab0a1:0x37},_0x10f7f9={'SiAxy':function(_0x37945d,_0x5bb4ab){return _0x37945d<_0x5bb4ab;},'yXZxV':function(_0x5ba88e,_0xc7f73){return _0x5ba88e(_0xc7f73);},'bfvOz':function(_0xdc5cc1,_0x3b9b5f){return _0xdc5cc1(_0x3b9b5f);},'LlhoL':function(_0x5acd44,_0x2fa146){return _0x5acd44===_0x2fa146;},'EtiAu':_0x82099d(_0x565698._0x9aa7a2,0x37a),'gNaKA':function(_0x5a256c,_0x834304,_0x40ad99){return _0x5a256c(_0x834304,_0x40ad99);},'EojGK':'quick-task','nUwad':'execute','qdiAO':_0x4255fc(0x6,0x2e)},_0x18b0bb=await _0x10f7f9[_0x4255fc(-0x59,-0x7)](readStateFile,_0x5919d9);if(!_0x18b0bb){const _0x194116=resolve(_0x5919d9,'..');if(!_0x10f7f9['bfvOz'](existsSync,_0x194116)){if(_0x10f7f9[_0x4255fc(-_0x565698._0x563d73,0x21)](_0x82099d(0x386,_0x565698._0x1c8957),_0x10f7f9[_0x4255fc(-0xf,0x16)]))return _0x10f7f9['SiAxy'](_0x3f1626,_0x98bc63[_0x82099d(0x380,_0x565698._0x471938)]-(-0x8*-0x29+0xeda+-0x1021*0x1))?_0x58a455[_0xba9404+(-0xe72+-0x2339+0x31ac)]:_0x4255fc(-0x28,_0x565698._0x2f3de6);else{const _0x3968e8={};_0x3968e8[_0x82099d(_0x565698._0x282366,0x344)]=!![],_0x10f7f9[_0x4255fc(-_0x565698._0x400b44,-_0x565698._0x2b3322)](mkdirSync,_0x194116,_0x3968e8);}}}const _0x315e4d=_0x18b0bb?.['project'][_0x4255fc(-0x5,-0x22)]??_0x10f7f9['EojGK'],_0x160fd6=_0x18b0bb?Object['keys'](_0x18b0bb['agents'])[-0x1*-0x781+0xa12+-0xb*0x199]??generateAgentId():generateAgentId();function _0x4255fc(_0x5682f7,_0x4a08aa){return _0x23756f(_0x5682f7,_0x4a08aa- -0x407);}const _0x4bd993={'agentId':_0x160fd6,'parentId':null,'childIds':[],'phase':_0x10f7f9['nUwad'],'currentOperation':_0x18fc09[_0x82099d(0x3cf,0x39a)](-0x321*0x5+-0x135b+0x2300,-0x53*-0x3d+-0x540+-0xe23),'currentSkill':_0x10f7f9['qdiAO']},_0x38dfc5={};_0x38dfc5[_0x4255fc(-_0x565698._0x3c9ce9,-0x22)]=_0x315e4d,_0x38dfc5['currentPha'+'se']=_0x82099d(0x3a9,0x3b1);const _0x1edac0={};_0x1edac0[_0x160fd6]=_0x4bd993;const _0x2de22f={};_0x2de22f[_0x4255fc(0x21,0x53)]=_0x38dfc5,_0x2de22f[_0x4255fc(_0x565698._0x2d4363,-0x13)]=_0x1edac0,_0x2de22f[_0x4255fc(-_0x565698._0x140ad2,-0x51)+'pshot']=null,await writeStateFile(_0x5919d9,_0x2de22f);const _0x32d085=[];_0x32d085['push'](_0x82099d(_0x565698._0x5374eb,_0x565698._0x54ed37)),_0x32d085[_0x82099d(_0x565698._0x3d010e,_0x565698._0x4f856f)](_0x4255fc(-_0x565698._0x478989,-_0x565698._0x881b37)+_0x315e4d),_0x32d085[_0x4255fc(_0x565698._0x389c96,0x52)](_0x82099d(0x366,_0x565698._0x19a43c)+_0x18fc09);function _0x82099d(_0x407597,_0x36c388){return _0x23756f(_0x407597,_0x36c388- -0x84);}return _0x32d085[_0x82099d(0x3e5,0x3d5)](_0x82099d(0x36e,_0x565698._0x305b8f)+_0x160fd6),_0x32d085[_0x82099d(_0x565698._0xca5f39,0x3d5)]('\x20\x20\x20提示:\x20快速任'+_0x4255fc(-_0x565698._0x283ef1,0x6)+_0x82099d(_0x565698._0xdcf169,0x384)),_0x32d085[_0x4255fc(-_0x565698._0x102b19,-_0x565698._0x3ab0a1)]('\x0a');}
1
+ (function(_0x3eb4be,_0x404c26){const _0xa5c76={_0x2bc3fa:0x196,_0x10d5e7:0x1c5,_0x3bb017:0x149,_0x4591f1:0x1c8,_0x32c554:0x17f,_0x3bd1e1:0x55b,_0xc9f3b7:0x535,_0x5ab1d8:0x57e,_0x4d054a:0x5ac,_0x5b0fa6:0x172};function _0x2ed478(_0x5c774c,_0x4f3e90){return _0x1b6b(_0x4f3e90- -0x337,_0x5c774c);}const _0x49e5d8=_0x3eb4be();function _0x46344b(_0x2da9f5,_0x341c8e){return _0x1b6b(_0x2da9f5-0x3d3,_0x341c8e);}while(!![]){try{const _0x2e8064=-parseInt(_0x46344b(0x524,0x577))/(-0x24a0*-0x1+-0x1*0x23ff+-0xa0)+parseInt(_0x2ed478(-_0xa5c76._0x2bc3fa,-_0xa5c76._0x10d5e7))/(-0x9*0x1a1+-0x49*-0x81+-0x161e)+parseInt(_0x2ed478(-_0xa5c76._0x3bb017,-0x194))/(-0x21ca+0x12*-0x8+0x225d)+-parseInt(_0x2ed478(-_0xa5c76._0x4591f1,-_0xa5c76._0x32c554))/(0x17d6+0x1121*-0x1+-0x6b1)+-parseInt(_0x46344b(_0xa5c76._0x3bd1e1,0x550))/(0x502+0x18a5+-0x1da2)*(parseInt(_0x46344b(_0xa5c76._0xc9f3b7,_0xa5c76._0x5ab1d8))/(0x4*0x109+-0x956*-0x1+-0x29*0x54))+-parseInt(_0x46344b(0x597,_0xa5c76._0x4d054a))/(-0x1*0x1be6+-0x4e+-0x21*-0xdb)+parseInt(_0x46344b(0x575,0x568))/(-0x242b+0x10b8+-0x137b*-0x1)*(parseInt(_0x2ed478(-0x198,-_0xa5c76._0x5b0fa6))/(0xb84+0xf3*0x7+-0x1d*0xa0));if(_0x2e8064===_0x404c26)break;else _0x49e5d8['push'](_0x49e5d8['shift']());}catch(_0x5f55a4){_0x49e5d8['push'](_0x49e5d8['shift']());}}}(_0x512c,0x15*0x90d+0x1*-0x27daf+0x3a688));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';const _0x5f9a69={};_0x5f9a69[_0x4fac01(0x4fa,0x4c8)+_0x4fac01(0x565,0x548)]=_0x30b0a(0x4fe,0x557),_0x5f9a69['demand_ana'+_0x30b0a(0x533,0x517)]=_0x30b0a(0x4fe,0x4af),_0x5f9a69['competitor'+'_analysis']=_0x30b0a(0x4ee,0x543),_0x5f9a69[_0x30b0a(0x4bf,0x4e3)+'alysis']=_0x30b0a(0x539,0x589),_0x5f9a69[_0x4fac01(0x4e6,0x498)+_0x4fac01(0x4cd,0x51b)]='技术选型',_0x5f9a69[_0x4fac01(0x4cc,0x50e)]='讨论',_0x5f9a69[_0x30b0a(0x4eb,0x544)]='规划',_0x5f9a69['execute']='执行',_0x5f9a69['verify']='验证';const PHASE_NAMES=_0x5f9a69,MAX_RETRIES=-0x4f*0x8+-0x1a*-0xb2+-0xf97;async function readStateFile(_0x48c114){const _0x4e5456={_0x184216:0x383};function _0x5ad855(_0x49f9df,_0x2cc624){return _0x4fac01(_0x2cc624- -0x1f3,_0x49f9df);}if(!existsSync(_0x48c114))return null;const _0x130fee=new StateFileManager(_0x48c114);return _0x130fee[_0x5ad855(_0x4e5456._0x184216,0x374)]();}function _0x512c(){const _0x589451=['t2TcwMu','CMvXDwLYzw1LBG','BMHjv3u','cUkCHsbbz2vUDca','twLRqxq','ChnOB3q','AM9PBG','4PQG77Ipicbbz2vUDca','mJi2mJyZuxnZCuLO','icaG5lU75yQHoIa','BgvUz3rO','renZzKq','y3vYCMvUDe9Wzq','icaGicaGFcdMK43KVzW','A2v5CW','ChjVAMvJDa','icaGqwDLBNqGsq','y3vYCMvUDfnRAq','tfzesei','z2X3C3u','ugLSt1m','icaG54I2iefNzw50','BKrtvKC','tNnKq2y','CgfYzw50swq','nKTPAuTiyq','icaGicaGicaGia','ChvZAa','jsaO','y2XZvve','CgfYC2u','CgXHBG','ioIVPUAdHtO','icaGicaG','56UE5zob5yIg5P6q','ihWG','8j+gLsdPOBNNM67LT7lLIjVLU7O6ia','BfvqDM8','vM9nyMC','Cg5my3K','Aw5KzxHpzG','mJG3mJu0yxviz2jK','icaG5PQc5PEGiefNzw4','CxvPy2STDgfZAW','BwvZC2fNzq','BuDOtvu','ios4JEwTMowCQa','zLz0y3C','s0Hyvg8','ExzhtMe','6zYa5Rgc5yIg5P6q','DMvYC2LVBG','ruXqufK','D3jPDgu','CKHxuLu','CgHHC2u','DKPcD2y','4PQG77IpicdNIRBMGihMLOFKU7BKUi3LRzJLNkG','vxb1BuK','z3bkuwe','BwnztxG','rMvwzLe','icaG5A6m5OIq5BQMoIa','nJyYmJa1tMLtr2vi','xsdLT7lLROZMIjdLHAJPG6JPMlBMRRu','6zsaoIa','revjy1O','icaGicaGicb8ia','ufvTrxi','Du13q3u','CMvJDxjZAxzL','CMvWzwf0','B3PSENi','icaG5B2t5yMn6zI25Q61oIa','ANvfDxG','icaG5O+q56s6oIdLV6VPGj/KU7S','iow3SUwUJoAiKowfQoMdQoMyTUAUTq','zMLSDgvY','yMHyywW','zMLUza','DxrMltG','ExzQs0G','zs5QC29U','y2HPBgrjzhm','u3HIr2C','B2XSEKq','Bwf4','vMfjsgq','vK95t1O','mZq0wKT5tKHL','mJaYodG3B0jwt25c','zw50CMLLCW','tNbuwMC','qNzrtui','Dhb3EeK','AwrSzq','DxbKyxrLzef0','qxHJt08','4PYfioAjGoACIsbbz2vUDa','shzguu8','tvDAuxa','y3vYCMvUDfbOyq','rcaGicaGicaGia','BhLZAxm','iow3SUwTMowCQo+8JoI3S+I/H+AZQowgJa','ChjVAMvJDcdLKB3KU6q','xsdMK43KVzZLT7lMM7tMLRa6ia','icaG54Mi5PYSoIa','Df9HBMfSExnPCW','5yQF6io95yIg5P6q','CMvHza','ntGWmZq0CMTPwhHf','Au1rrNa','zxHLy3v0zq','77Ym6k+35ywi6l+q6kgmig5LDY0','CfDHEM0','AMzWzNq','BMfTzq','CNn2s2W','ChPnEwW','Aw5JBhvKzxm','y29TCgXLDgvK','4PYfifS','nZmWodqYzMfzrunv','mta5mtCWCvPdDKXL','u0nSyxy','C2XPy2u','icaG6Ag555UUoIa','ywDLBNrjza','wgzWCMG','wuDTAwO','BwfJAgLUzvnUyq','Dhnxtge','uhzMAvm','zgLZy3vZCW','DgLVBG','y1jwCwy','CxvPy2S','icaG5PU05PAW5PE26zE0oIa','BwfW','wvzQs0e','EhbMt1a','CMzcwwC','yw5dCxu','ios4JEwTMowCQos6JIbZDgf0','DwvUCem','icaG6zI25Q615BQp5yIxoIa','s3fOyxy','ywDLBNrZ','s0rVvue','D3vzEva','wLD3z3K','8j+tIIdPOBNNM67NIRBMGie6ia','icaGqwDLBNq6ia','icaG8j+tIcdPMlBMRRxLIiBLUim6','iefNzw50kq','DwvZBLa','4P2miefNzw50ia','C3bRqMi','vuHMr2O','DgvJAf9ZzwXLyW','z2PMyvK','DdOG','CMfUzg9T','ihWG6zI25Q61icaGica','icaG','zMvHDhvYzv9HBG','iokgKIa','rfDguwe','rfblExe','4PQHiow/Q+MaN+s7U+wkOEAOOEw8JW','CgfKrw5K','icaG55UU5B2voIa','vxzvrg4','rKrXsg0','t2fMv0G','DLbLr0y','Buf4tMm','CMf0Aw9U'];_0x512c=function(){return _0x589451;};return _0x512c();}async function writeStateFile(_0x1af4a4,_0x12bd10){const _0x12a95c={_0x1a44b0:0x359,_0x1a86a9:0x32b,_0x994f1e:0x31a,_0x1e401a:0x2d2,_0x4eb162:0x23e,_0x1d6b35:0x33f,_0x179854:0x2ef,_0x3e63bd:0x19d,_0x23eb67:0x186,_0x37f016:0x159,_0x8146b9:0x2ff,_0x5a49dd:0x218,_0x429a72:0x1b8,_0x262bb3:0x19d,_0x244466:0x1c2,_0xfaf977:0x1e7,_0x1ebd9e:0x35b,_0x435719:0x379,_0x572682:0x24c,_0x1df541:0x288},_0x695f85={_0x44b6df:0x216},_0x3dfaba={};_0x3dfaba[_0x2e07bb(0x2be,0x268)]=function(_0x3a902d,_0x17ef55){return _0x3a902d!==_0x17ef55;},_0x3dfaba[_0x2e07bb(_0x12a95c._0x1a44b0,0x31d)]=function(_0x10fef4,_0x5f12b3){return _0x10fef4===_0x5f12b3;},_0x3dfaba[_0x2e07bb(_0x12a95c._0x1a86a9,_0x12a95c._0x994f1e)]=_0x2e07bb(0x325,_0x12a95c._0x1e401a),_0x3dfaba[_0x44c34(-0x278,-_0x12a95c._0x4eb162)]=_0x44c34(-0x1db,-0x1c2),_0x3dfaba[_0x44c34(-0x204,-0x1d8)]=function(_0x2fad0d,_0x59f026){return _0x2fad0d instanceof _0x59f026;},_0x3dfaba[_0x2e07bb(0x346,0x386)]='乐观锁冲突';function _0x2e07bb(_0x3600d2,_0x411a92){return _0x4fac01(_0x3600d2- -_0x695f85._0x44b6df,_0x411a92);}_0x3dfaba[_0x2e07bb(0x364,0x3b3)]=function(_0x3c6c2b,_0x26c992){return _0x3c6c2b<_0x26c992;},_0x3dfaba[_0x2e07bb(_0x12a95c._0x1d6b35,_0x12a95c._0x179854)]=function(_0x1e1232,_0x254788){return _0x1e1232-_0x254788;};const _0x32e522=_0x3dfaba;function _0x44c34(_0x13ae71,_0x547cc4){return _0x4fac01(_0x547cc4- -0x70c,_0x13ae71);}for(let _0x10d888=0x255a+-0x2f1*0x4+-0x1996;_0x10d888<MAX_RETRIES;_0x10d888++){try{if(_0x32e522[_0x44c34(-0x1d3,-_0x12a95c._0x3e63bd)](_0x44c34(-_0x12a95c._0x23eb67,-0x1d1),_0x32e522[_0x44c34(-0x211,-0x1cb)])){const _0x245028=new StateFileManager(_0x1af4a4);await _0x245028[_0x44c34(-_0x12a95c._0x37f016,-0x1a5)](),await _0x245028[_0x2e07bb(0x318,_0x12a95c._0x8146b9)](_0x12bd10);return;}else return _0x44c34(-_0x12a95c._0x5a49dd,-0x1da)+',请先运行\x20new-'+_0x44c34(-_0x12a95c._0x429a72,-0x1aa);}catch(_0x31b0d1){if(_0x32e522[_0x44c34(-_0x12a95c._0x429a72,-_0x12a95c._0x262bb3)](_0x44c34(-0x17e,-_0x12a95c._0x244466),_0x32e522[_0x44c34(-0x20d,-0x23e)])){if(_0x32e522['gpJQa'](_0x31b0d1,Error)&&_0x31b0d1[_0x44c34(-0x21d,-_0x12a95c._0xfaf977)][_0x2e07bb(_0x12a95c._0x1ebd9e,_0x12a95c._0x435719)](_0x32e522['HvFQO'])&&_0x32e522['Xfprh'](_0x10d888,_0x32e522['NpTZg'](MAX_RETRIES,0x29d*-0x2+0x1*-0x2281+0x27bc))){await new Promise(_0x162cb2=>setTimeout(_0x162cb2,0x16bd*0x1+-0x30*-0xb9+-0x393b+Math[_0x2e07bb(0x2d3,0x2a5)]()*(0x1265+0x24fd+-0x36fe)));continue;}throw _0x31b0d1;}else{for(const _0x276f99 of _0x2ea739[_0x44c34(-_0x12a95c._0x572682,-0x205)](_0x291751)){if(_0x32e522[_0x44c34(-_0x12a95c._0x1df541,-0x238)](_0x5bc77b[_0x276f99]['phase'],'completed'))return _0x5440ff[_0x276f99]['phase'];}return'completed';}}}}function computeOverallPhase(_0x43ab9a){const _0x580bce={_0x1a9400:0x272,_0x52c59b:0xb7,_0x428d92:0x26d,_0x3b2bac:0x2d},_0x2adb6b={_0x2211e3:0x5be},_0x58adf6={};_0x58adf6['HLydp']=_0x3a3856(_0x580bce._0x1a9400,0x2af);const _0x2d2771=_0x58adf6;function _0x3a3856(_0x454ca6,_0x48febc){return _0x30b0a(_0x48febc- -0x296,_0x454ca6);}function _0x171a5b(_0x3a63ea,_0x3786c0){return _0x4fac01(_0x3a63ea- -_0x2adb6b._0x2211e3,_0x3786c0);}for(const _0x47e6aa of Object[_0x171a5b(-_0x580bce._0x52c59b,-0xbe)](_0x43ab9a)){if(_0x43ab9a[_0x47e6aa]['phase']!==_0x2d2771['HLydp'])return _0x43ab9a[_0x47e6aa][_0x3a3856(0x2be,_0x580bce._0x428d92)];}return _0x171a5b(-0x4c,-_0x580bce._0x3b2bac);}export async function getStatus(_0x39ac7d){const _0x4f123c={_0x399c69:0x8c,_0x5aa3fe:0x68,_0x29a3df:0xc3,_0x508153:0x9a,_0x8c34e6:0xaa,_0x5905e8:0x4c,_0x38841c:0x57,_0x5b4b18:0x27,_0x48bedd:0xee,_0x4a1797:0x109,_0xcc88ab:0x10c,_0x566681:0xb2,_0x7413f7:0x10d,_0x3d7286:0xdd,_0x3aa81a:0xc2,_0x100cdc:0x106,_0x2bb94f:0x87,_0x18589b:0x60,_0x1f38a1:0x53,_0x16ddaf:0x150,_0x3ab3ee:0x103,_0x139cd3:0x93,_0x5159bc:0x8d,_0x2fbde4:0x11d,_0x27d8e9:0x66,_0x38a52d:0x6c,_0x583fca:0x96,_0x5b4f52:0x3d,_0x35cf8d:0x48,_0x5c1223:0x10c,_0x194ab8:0x9,_0x34b5c6:0x70,_0x2ed60b:0x120,_0x147270:0x135,_0x47a10e:0x148,_0x39a8aa:0xe0,_0x165571:0xcc,_0x326d97:0x64,_0x4c15b2:0x167,_0x1d50c9:0xcf,_0xd5f9f:0x135,_0x509761:0x73,_0x3f54a4:0x25,_0x4509ed:0x64,_0x49488f:0x25,_0x408cf2:0x12f,_0x48c3b6:0x140},_0x132b06={_0x3e7919:0x49f},_0x280c0f={};_0x280c0f['jWfZi']=_0x16ac2b(0x78,0x66)+_0x16ac2b(_0x4f123c._0x399c69,0x9f)+'project\x20命令',_0x280c0f[_0x16ac2b(_0x4f123c._0x5aa3fe,0x6a)]=function(_0x2926fd,_0x37d9ef){return _0x2926fd!==_0x37d9ef;},_0x280c0f[_0xd73827(-_0x4f123c._0x29a3df,-_0x4f123c._0x508153)]='oQGVw',_0x280c0f[_0x16ac2b(0xa8,_0x4f123c._0x8c34e6)]=_0x16ac2b(_0x4f123c._0x5905e8,_0x4f123c._0x38841c)+'t\x20记录',_0x280c0f[_0x16ac2b(0x32,_0x4f123c._0x5b4b18)]=function(_0x5404ff,_0x4c23e9){return _0x5404ff+_0x4c23e9;};const _0x466509=_0x280c0f;if(!existsSync(_0x39ac7d))return _0x466509['jWfZi'];const _0x2c1d1a=readFileSync(_0x39ac7d,_0xd73827(-0xd7,-_0x4f123c._0x48bedd)),_0x315693=JSON[_0xd73827(-_0x4f123c._0x4a1797,-0x115)](_0x2c1d1a),_0xd57353=[];_0xd57353[_0xd73827(-_0x4f123c._0xcc88ab,-0xde)](_0x16ac2b(-0x1f,0x12)+_0x315693['project'][_0xd73827(-_0x4f123c._0x566681,-0x74)]),_0xd57353[_0xd73827(-0x10c,-_0x4f123c._0x7413f7)](_0xd73827(-0xde,-_0x4f123c._0x3d7286)+(PHASE_NAMES[_0x315693[_0xd73827(-0x118,-0x13e)]['currentPha'+'se']]??_0x315693['project'][_0xd73827(-_0x4f123c._0x3aa81a,-0xe5)+'se']));function _0x16ac2b(_0x5a0bd9,_0x390a03){return _0x30b0a(_0x390a03- -_0x132b06._0x3e7919,_0x5a0bd9);}_0xd57353[_0xd73827(-_0x4f123c._0xcc88ab,-_0x4f123c._0x100cdc)](_0x16ac2b(_0x4f123c._0x2bb94f,0x98)+_0x315693[_0x16ac2b(0x6f,_0x4f123c._0x18589b)]),_0xd57353[_0x16ac2b(_0x4f123c._0x1f38a1,0x48)](_0xd73827(-_0x4f123c._0x16ddaf,-_0x4f123c._0x3ab3ee)+_0x315693[_0x16ac2b(_0x4f123c._0x139cd3,_0x4f123c._0x5159bc)]);const _0x58c718=_0x315693['agents'],_0x350056=Object['keys'](_0x58c718);if(_0x350056[_0xd73827(-_0x4f123c._0x2fbde4,-0x15c)]===-0x633+-0x453*0x1+0x543*0x2)return _0x466509['FeVfQ'](_0x466509[_0xd73827(-0xc3,-0x82)],_0x16ac2b(0x30,0x63))?(_0xd57353['push'](_0x466509[_0xd73827(-0xaa,-0x9a)]),_0xd57353[_0xd73827(-0x121,-0xce)]('\x0a')):_0x16ac2b(0x18,_0x4f123c._0x27d8e9)+_0xd73827(-0xb5,-_0x4f123c._0x38a52d)+_0xd73827(-0xbe,-_0x4f123c._0x583fca);_0xd57353[_0x16ac2b(_0x4f123c._0x5b4f52,_0x4f123c._0x35cf8d)](''),_0xd57353[_0xd73827(-_0x4f123c._0x5c1223,-0x10b)](_0x16ac2b(-_0x4f123c._0x194ab8,_0x4f123c._0x5b4f52)+_0xd73827(-0xc1,-0xfd)+_0x16ac2b(0x1e,0x1e)+_0xd73827(-0x11a,-0x11e)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x16ac2b(0x54,_0x4f123c._0x34b5c6)+'工具'),_0xd57353[_0xd73827(-0x10c,-_0x4f123c._0x2ed60b)](_0x466509[_0x16ac2b(-0x2d,_0x4f123c._0x5b4b18)](_0xd73827(-_0x4f123c._0x147270,-_0x4f123c._0x47a10e),'-'[_0xd73827(-_0x4f123c._0x39a8aa,-_0x4f123c._0x165571)](0xba1+0x11f+-0xc70)));function _0xd73827(_0x3da3b2,_0x4da73d){return _0x30b0a(_0x3da3b2- -0x5f3,_0x4da73d);}for(const _0x1146e1 of _0x350056){const _0xf00369=_0x58c718[_0x1146e1],_0x5d02d8=PHASE_NAMES[_0xf00369[_0x16ac2b(0x82,_0x4f123c._0x326d97)]]??_0xf00369['phase'],_0x21a0ed=_0xf00369[_0xd73827(-0x11b,-_0x4f123c._0x4c15b2)+_0xd73827(-0x128,-_0x4f123c._0x1d50c9)]||'-',_0x5c5d08=_0xf00369[_0xd73827(-0x116,-0x135)+'ll']||'-';_0xd57353[_0xd73827(-0x10c,-0xfc)](_0xd73827(-_0x4f123c._0xd5f9f,-0x18d)+_0x1146e1[_0x16ac2b(_0x4f123c._0x509761,_0x4f123c._0x3f54a4)](-0x2674+-0x211c+0x47a2)+_0x16ac2b(_0x4f123c._0x4509ed,0x50)+_0x5d02d8[_0x16ac2b(0xa,_0x4f123c._0x49488f)](0x304*-0x3+-0x26ed+0x1*0x3007)+'\x20|\x20'+_0x21a0ed[_0xd73827(-_0x4f123c._0x408cf2,-0xfa)](0x1*0x1f2a+0x15eb+-0x10*0x350)+'\x20|\x20'+_0x5c5d08);}return _0xd57353[_0xd73827(-0x121,-_0x4f123c._0x48c3b6)]('\x0a');}function _0x4fac01(_0x5605cf,_0x4b01dd){return _0x1b6b(_0x5605cf-0x3b0,_0x4b01dd);}function _0x1b6b(_0x3fa802,_0x57f6f8){_0x3fa802=_0x3fa802-(-0x21*-0x35+0x1d68+-0x2325);const _0x52e1a0=_0x512c();let _0x2c68ff=_0x52e1a0[_0x3fa802];if(_0x1b6b['BEPaTP']===undefined){var _0x517b1a=function(_0x1971b8){const _0x165349='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x16a883='',_0x3fdedb='';for(let _0x4c5a86=0x13*0x100+-0x17*0x31+-0xe99,_0x2d454d,_0x41f7e1,_0x455a6b=0x1c9*-0xb+-0x2*0x943+0x2629;_0x41f7e1=_0x1971b8['charAt'](_0x455a6b++);~_0x41f7e1&&(_0x2d454d=_0x4c5a86%(0x263*-0xb+0x1*0xdff+-0x1*-0xc46)?_0x2d454d*(-0x568*0x1+-0x1ca3*0x1+0x224b)+_0x41f7e1:_0x41f7e1,_0x4c5a86++%(0x9*0x293+-0x1*0xa63+-0xcc4))?_0x16a883+=String['fromCharCode'](-0x1*0x5b6+0x1e12+-0x175d*0x1&_0x2d454d>>(-(0x6b*0x59+-0x22ff+0x2*-0x119)*_0x4c5a86&-0x56b+-0x1311+0x1882)):0x1*0x1742+-0x2394+0xc52){_0x41f7e1=_0x165349['indexOf'](_0x41f7e1);}for(let _0x147971=-0x21e6+0x1f6f*0x1+0x277,_0x2071f3=_0x16a883['length'];_0x147971<_0x2071f3;_0x147971++){_0x3fdedb+='%'+('00'+_0x16a883['charCodeAt'](_0x147971)['toString'](0x15ca+0x1e6a+-0x3424))['slice'](-(0xca0+0xef*0xf+-0x1a9f));}return decodeURIComponent(_0x3fdedb);};_0x1b6b['BmoUNz']=_0x517b1a,_0x1b6b['MhDtzZ']={},_0x1b6b['BEPaTP']=!![];}const _0x579360=_0x52e1a0[-0x1*0x14b7+0x7f2*0x1+0xcc5],_0x250145=_0x3fa802+_0x579360,_0x1b6e9a=_0x1b6b['MhDtzZ'][_0x250145];return!_0x1b6e9a?(_0x2c68ff=_0x1b6b['BmoUNz'](_0x2c68ff),_0x1b6b['MhDtzZ'][_0x250145]=_0x2c68ff):_0x2c68ff=_0x1b6e9a,_0x2c68ff;}export async function advancePhase(_0xf009d9,_0x3e40bd){const _0x4ced3d={_0x1314a8:0x438,_0x36cc65:0x441,_0x13aab8:0xd5,_0x2df974:0x7e,_0x3c739b:0xc8,_0xba9882:0xf1,_0x57002e:0x151,_0x1cead2:0x400,_0x253e04:0x3f8,_0x586ded:0xcc,_0x11fcaf:0x3bf,_0x448c3b:0x103,_0x10bff6:0x126,_0x56dcde:0x460,_0x13c21c:0x122,_0x5505b4:0x103,_0x512991:0x170,_0x19acb0:0x16c,_0x3a8138:0x3d9,_0x1c6e21:0x3a0,_0x440d21:0x15c,_0xf66d99:0x18f,_0x125149:0x13e,_0x2c5af3:0x3cd,_0xd9b88a:0x3e3,_0x4a4d3b:0x3cb,_0x19f5e6:0x410},_0x1c6aab={_0x5e800d:0x104},_0x1035a6={'tsWLa':_0x5bc085(0x42a,_0x4ced3d._0x1314a8)+'\x20已完成全部阶段','BvQMB':_0x5bc085(0x3ef,0x424),'juEux':function(_0x52b375,_0x5df77a){return _0x52b375===_0x5df77a;},'PilOS':_0x5bc085(_0x4ced3d._0x36cc65,0x441),'spkBb':function(_0x3d91a5,_0x446415){return _0x3d91a5(_0x446415);}},_0x2d9c9a=await readStateFile(_0xf009d9);if(!_0x2d9c9a)return _0x3c8f7c(-_0x4ced3d._0x13aab8,-0x101)+_0x3c8f7c(-_0x4ced3d._0x2df974,-_0x4ced3d._0x3c739b)+_0x3c8f7c(-_0x4ced3d._0xba9882,-0xd1);const _0x25ebb8=_0x3e40bd??Object[_0x3c8f7c(-0x114,-0x12c)](_0x2d9c9a[_0x3c8f7c(-_0x4ced3d._0x57002e,-0x159)])[_0x5bc085(0x417,_0x4ced3d._0x1cead2)](_0x3b70b1=>_0x2d9c9a['agents'][_0x3b70b1][_0x3c8f7c(-0x124,-0x103)]!=='completed');if(!_0x25ebb8)return _0x1035a6[_0x5bc085(0x399,0x356)];const _0x4f8138=_0x2d9c9a['agents'][_0x25ebb8];if(!_0x4f8138){if(_0x1035a6[_0x3c8f7c(-0x127,-0xdd)]===_0x1035a6['BvQMB'])return _0x5bc085(0x3b2,_0x4ced3d._0x253e04)+_0x25ebb8+(_0x5bc085(0x3a5,0x361)+'e.json');else{if(!_0x1914c4(_0x387e00))return null;const _0x44c766=new _0x4fa438(_0x41da89);return _0x44c766[_0x3c8f7c(-0xd0,-_0x4ced3d._0x586ded)]();}}if(_0x1035a6[_0x5bc085(0x412,_0x4ced3d._0x11fcaf)](_0x4f8138[_0x3c8f7c(-0xf3,-_0x4ced3d._0x448c3b)],_0x1035a6[_0x3c8f7c(-0xd8,-_0x4ced3d._0x10bff6)]))return'['+_0x25ebb8+_0x5bc085(0x408,_0x4ced3d._0x56dcde);const _0x58cbde=_0x1035a6[_0x3c8f7c(-_0x4ced3d._0x13c21c,-0x14f)](computeNextPhase,_0x4f8138['phase']),_0x54442a=PHASE_NAMES[_0x4f8138[_0x3c8f7c(-0xe9,-_0x4ced3d._0x5505b4)]]??_0x4f8138[_0x3c8f7c(-0xdf,-0x103)],_0x5eafac=PHASE_NAMES[_0x58cbde]??_0x58cbde,_0x4a89e7={..._0x2d9c9a[_0x3c8f7c(-_0x4ced3d._0x512991,-0x159)]},_0xe60e96=_0x4a89e7;function _0x3c8f7c(_0x196bcd,_0x34f024){return _0x4fac01(_0x34f024- -0x633,_0x196bcd);}const _0x525332={..._0x4f8138};_0x525332[_0x3c8f7c(-0x106,-0x103)]=_0x58cbde,_0x525332[_0x3c8f7c(-_0x4ced3d._0x19acb0,-0x12e)+'ration']='',_0x525332[_0x5bc085(_0x4ced3d._0x3a8138,_0x4ced3d._0x1c6e21)+'ll']='',_0xe60e96[_0x25ebb8]=_0x525332;const _0x1cafa5=computeOverallPhase(_0xe60e96),_0x1b97db={..._0x2d9c9a['project']};_0x1b97db['currentPha'+'se']=_0x1cafa5;const _0x27a900={};_0x27a900[_0x3c8f7c(-_0x4ced3d._0x440d21,-0x12b)]=_0x1b97db,_0x27a900[_0x3c8f7c(-_0x4ced3d._0xf66d99,-0x159)]=_0xe60e96,_0x27a900[_0x3c8f7c(-_0x4ced3d._0x125149,-0x16a)+_0x5bc085(_0x4ced3d._0x2c5af3,0x3a4)]=_0x2d9c9a[_0x3c8f7c(-0x134,-0x16a)+'pshot'],await writeStateFile(_0xf009d9,_0x27a900);const _0x5c2086=[];function _0x5bc085(_0x382443,_0x44f501){return _0x30b0a(_0x382443- -_0x1c6aab._0x5e800d,_0x44f501);}return _0x5c2086[_0x5bc085(_0x4ced3d._0xd9b88a,0x38b)]('['+_0x25ebb8+']\x20'+_0x54442a+_0x3c8f7c(-0x109,-0x146)+_0x5eafac),_0x58cbde==='completed'&&_0x5c2086[_0x3c8f7c(-0xe6,-0x11f)](_0x5bc085(_0x4ced3d._0x4a4d3b,_0x4ced3d._0x19f5e6)+_0x25ebb8+'\x20已完成全部阶段'),_0x5c2086[_0x5bc085(0x3ce,0x389)]('\x0a');}function computeNextPhase(_0x1b7b7c){const _0x36dad3={_0x1ee7d8:0x49b,_0x166884:0x494,_0x272eb4:0x4c9,_0x43dad9:0x4e5,_0x21482e:0x492,_0x4541c5:0xa2,_0x4c743f:0x132,_0x12db24:0x52c,_0x6625b5:0x52a,_0x272d7e:0x113,_0x2a91d4:0x139,_0x53fdf6:0x4e9,_0x27c009:0xf3,_0x2c9645:0x135,_0xc3926:0x136,_0x275fd0:0x134,_0x250483:0x526,_0x462bb0:0x166,_0x2eeda5:0x132,_0x37aa17:0x144,_0x2f423a:0xf5},_0x28d6a4={_0xb177c1:0x43},_0x151780={};_0x151780[_0x1f6396(0x4a8,0x4ea)]=function(_0x1cac3c,_0x57312c){return _0x1cac3c-_0x57312c;},_0x151780[_0x1f6396(_0x36dad3._0x1ee7d8,_0x36dad3._0x166884)]='completed',_0x151780[_0x1f6396(_0x36dad3._0x272eb4,_0x36dad3._0x43dad9)]=function(_0x50e2be,_0x266cef){return _0x50e2be-_0x266cef;},_0x151780[_0x1f6396(0x474,_0x36dad3._0x21482e)]=function(_0xa4653b,_0x2a2b16){return _0xa4653b+_0x2a2b16;},_0x151780[_0x155ba5(-0x5f,-_0x36dad3._0x4541c5)]='idle',_0x151780[_0x155ba5(-0x124,-_0x36dad3._0x4c743f)]=function(_0x99ad27,_0x25af83){return _0x99ad27!==_0x25af83;},_0x151780[_0x155ba5(-0xb4,-0xf5)]=_0x1f6396(_0x36dad3._0x12db24,_0x36dad3._0x6625b5);function _0x1f6396(_0x96dd42,_0x2591ca){return _0x4fac01(_0x2591ca- -_0x28d6a4._0xb177c1,_0x96dd42);}const _0x7184d2=_0x151780,_0x23e1b2=PHASES['indexOf'](_0x1b7b7c);if(_0x23e1b2>=-0x183a+0x26ff*-0x1+0x3f39)return _0x23e1b2<_0x7184d2[_0x155ba5(-_0x36dad3._0x272d7e,-0xde)](PHASES[_0x155ba5(-_0x36dad3._0x2a91d4,-0x108)],-0x2673+-0x6c*0x5c+0x4*0x1351)?PHASES[_0x23e1b2+(-0x222c+-0x16d9+-0x3906*-0x1)]:_0x7184d2[_0x1f6396(_0x36dad3._0x53fdf6,_0x36dad3._0x166884)];const _0x215056=PIPELINE_PHASES[_0x155ba5(-0xd2,-0xea)](_0x1b7b7c);if(_0x215056>=-0x6fc+0x1*-0x21cf+0x28cb)return _0x215056<_0x7184d2[_0x155ba5(-_0x36dad3._0x27c009,-0xe3)](PIPELINE_PHASES[_0x155ba5(-_0x36dad3._0x2c9645,-0x108)],0xc55+-0x586+-0x86*0xd)?PIPELINE_PHASES[_0x7184d2[_0x155ba5(-0x159,-_0x36dad3._0xc3926)](_0x215056,0x3c6+0x1*-0x7a5+-0x2*-0x1f0)]:_0x7184d2[_0x155ba5(-_0x36dad3._0x275fd0,-0x134)];if(_0x1b7b7c===_0x7184d2[_0x1f6396(0x55e,_0x36dad3._0x250483)]){if(_0x7184d2[_0x155ba5(-_0x36dad3._0x462bb0,-_0x36dad3._0x2eeda5)](_0x7184d2[_0x155ba5(-_0x36dad3._0x37aa17,-_0x36dad3._0x2f423a)],_0x1f6396(0x4d3,0x4f2)))return PHASES[0xdf6*-0x1+-0x68*0xe+0x13a6];else{const _0x565564=_0x59a271(_0x4dff97,'..');if(!_0x5d5d04(_0x565564)){const _0x4bb443={};_0x4bb443[_0x1f6396(0x4df,0x4fc)]=!![],_0x3c99c5(_0x565564,_0x4bb443);}}}function _0x155ba5(_0x92e87f,_0x254948){return _0x4fac01(_0x254948- -0x60b,_0x92e87f);}return'completed';}export async function newProject(_0x5c9cd2,_0x1e3024){const _0x266826={_0x1fb42b:0x221,_0x3768a7:0x1ef,_0x2cc55:0x3ac,_0x309640:0x232,_0x239dcc:0x26f,_0x23b5e4:0x32f,_0x4260ed:0x35f,_0x4d6a25:0x34b,_0x455224:0x37a,_0x58fa28:0x343,_0x5989f1:0x232,_0x14357b:0x26d,_0xfd8b88:0x1fc,_0x5c3d61:0x29f,_0x4b6c5b:0x2dc,_0x40a44a:0x21e,_0x2abe11:0x1e5,_0x55a27a:0x230,_0x20ec1c:0x360,_0x1f9141:0x243,_0x488bfb:0x240,_0x3b80a7:0x274,_0x16a813:0x368,_0x20945b:0x1d6,_0x17d382:0x368,_0x570950:0x349,_0x539519:0x225,_0x3f002d:0x20e,_0x15d56c:0x276,_0x12d2b5:0x281,_0x2f4295:0x225,_0x57314d:0x20a},_0x52fa76={'glwsu':function(_0x5030c5,_0x103bbd,_0x495a44){return _0x5030c5(_0x103bbd,_0x495a44);},'KDoUA':function(_0x4c4b57,_0x2570ff){return _0x4c4b57(_0x2570ff);},'LVDHB':function(_0x121fcb,_0x552154){return _0x121fcb!==_0x552154;},'mGhMU':_0x25c5a2(_0x266826._0x1fb42b,_0x266826._0x3768a7),'LDxWw':'dPiNp','xeuVI':_0x1e4251(_0x266826._0x2cc55,0x38a),'VaIHd':'\x20→\x20'};function _0x25c5a2(_0x753575,_0x13db9d){return _0x30b0a(_0x753575- -0x2ad,_0x13db9d);}const _0x19c504=_0x52fa76[_0x25c5a2(_0x266826._0x309640,_0x266826._0x239dcc)](resolve,_0x5c9cd2,'..');if(!_0x52fa76[_0x1e4251(_0x266826._0x23b5e4,0x388)](existsSync,_0x19c504)){if(_0x52fa76[_0x1e4251(_0x266826._0x4260ed,_0x266826._0x4d6a25)](_0x52fa76[_0x1e4251(_0x266826._0x455224,0x3a1)],_0x52fa76['LDxWw'])){const _0x460894={};_0x460894[_0x1e4251(0x393,_0x266826._0x58fa28)]=!![],_0x52fa76[_0x25c5a2(_0x266826._0x5989f1,_0x266826._0x14357b)](mkdirSync,_0x19c504,_0x460894);}else return _0x1e4251(0x337,0x2f9)+_0x123420+(_0x25c5a2(_0x266826._0xfd8b88,0x1af)+'e.json');}const _0x201a90=generateAgentId();function _0x1e4251(_0x1e9af2,_0x44e0cf){return _0x30b0a(_0x1e9af2- -0x17f,_0x44e0cf);}const _0x5116e3={};_0x5116e3[_0x25c5a2(_0x266826._0x5c3d61,_0x266826._0x4b6c5b)]=_0x201a90,_0x5116e3['parentId']=null,_0x5116e3[_0x25c5a2(0x272,0x21e)]=[],_0x5116e3['phase']='idle',_0x5116e3[_0x1e4251(0x359,0x386)+_0x25c5a2(_0x266826._0x40a44a,_0x266826._0x2abe11)]='',_0x5116e3[_0x25c5a2(_0x266826._0x55a27a,0x211)+'ll']='';const _0x182ae6=_0x5116e3,_0x395fe7={};_0x395fe7[_0x201a90]=_0x182ae6,await _0x52fa76[_0x1e4251(_0x266826._0x20ec1c,0x335)](writeStateFile,_0x5c9cd2,{'project':{'name':_0x1e3024,'currentPhase':_0x52fa76['xeuVI']},'agents':_0x395fe7,'machineSnapshot':null});const _0x99a887=[];return _0x99a887[_0x1e4251(0x368,0x380)](_0x25c5a2(_0x266826._0x1f9141,_0x266826._0x488bfb)+_0x1e3024),_0x99a887[_0x25c5a2(0x23a,_0x266826._0x3b80a7)](_0x25c5a2(0x218,0x1f0)+_0x19c504),_0x99a887[_0x1e4251(_0x266826._0x16a813,0x398)]('\x20\x20\x20初始\x20Agen'+_0x25c5a2(0x20e,_0x266826._0x20945b)+_0x201a90),_0x99a887[_0x1e4251(_0x266826._0x17d382,0x356)](_0x25c5a2(0x1fe,0x23e)+PIPELINE_PHASES[_0x1e4251(0x325,_0x266826._0x570950)](_0xf13ab8=>PHASE_NAMES[_0xf13ab8]??_0xf13ab8)[_0x25c5a2(_0x266826._0x539519,_0x266826._0x3f002d)](_0x52fa76[_0x25c5a2(_0x266826._0x15d56c,_0x266826._0x12d2b5)])),_0x99a887[_0x25c5a2(_0x266826._0x2f4295,_0x266826._0x57314d)]('\x0a');}export async function updateOperation(_0x4855b3,_0x4f073b,_0x46ffbf,_0x1aa88f){const _0x392a14={_0x1fcbea:0x304,_0x3a90ef:0x2d4,_0x5f3555:0x229,_0x2f60a6:0x27d,_0x5d24a2:0x2e7,_0x2b8fe3:0x1bf,_0x10ac28:0x1e0,_0x57cc87:0x28f,_0x624d8a:0x28f,_0x305320:0x2aa,_0x162bad:0x253,_0x359dab:0x241,_0x332c8d:0x2a9,_0x5afff6:0x2bd,_0x4dc70d:0x297,_0x2e6e9b:0x2b3,_0x128d1b:0x24d,_0x5d45f9:0x1d8,_0x26ef81:0x20f},_0x4d9123={_0x1c1d68:0x74b},_0x14508f={'VOyOZ':function(_0x5d7425,_0x34fbe4){return _0x5d7425!==_0x34fbe4;},'MikAt':_0x140c17(_0x392a14._0x1fcbea,_0x392a14._0x3a90ef),'UJzGw':'⚠️\x20\x20状态文件不存在','lUPvo':function(_0xb33d0d,_0x2f9543,_0x522476){return _0xb33d0d(_0x2f9543,_0x522476);}};function _0x561562(_0x3f49ec,_0x4f2170){return _0x4fac01(_0x4f2170- -_0x4d9123._0x1c1d68,_0x3f49ec);}const _0x38c3c3=await readStateFile(_0x4855b3);if(!_0x38c3c3)return _0x14508f[_0x561562(-_0x392a14._0x5f3555,-0x1fa)](_0x561562(-_0x392a14._0x2f60a6,-0x23c),_0x14508f[_0x561562(-0x21a,-0x24e)])?_0x14508f['UJzGw']:_0x140c17(0x2df,_0x392a14._0x5d24a2)+_0x561562(-_0x392a14._0x2b8fe3,-_0x392a14._0x10ac28)+'project\x20命令';const _0x4d75d0=_0x38c3c3[_0x140c17(0x252,_0x392a14._0x57cc87)][_0x4f073b];if(!_0x4d75d0)return'❌\x20Agent\x20'+_0x4f073b+(_0x140c17(_0x392a14._0x3a90ef,0x28b)+_0x561562(-0x1be,-0x200));const _0x39af2f={..._0x38c3c3[_0x140c17(0x259,_0x392a14._0x624d8a)]},_0x555d7b=_0x39af2f,_0x3d73f9={..._0x4d75d0};_0x3d73f9['currentOpe'+_0x561562(-_0x392a14._0x305320,-_0x392a14._0x162bad)]=_0x46ffbf,_0x3d73f9[_0x561562(-0x200,-_0x392a14._0x359dab)+'ll']=_0x1aa88f;function _0x140c17(_0x474938,_0x14241d){return _0x30b0a(_0x14241d- -0x21e,_0x474938);}_0x555d7b[_0x4f073b]=_0x3d73f9;const _0x199e6d={};return _0x199e6d[_0x140c17(_0x392a14._0x332c8d,_0x392a14._0x5afff6)]=_0x38c3c3[_0x140c17(_0x392a14._0x4dc70d,_0x392a14._0x5afff6)],_0x199e6d[_0x140c17(0x2ad,_0x392a14._0x624d8a)]=_0x555d7b,_0x199e6d[_0x561562(-0x2af,-0x282)+_0x140c17(0x285,_0x392a14._0x2e6e9b)]=_0x38c3c3['machineSna'+_0x561562(-0x256,-_0x392a14._0x128d1b)],await _0x14508f[_0x140c17(0x2cc,0x2d3)](writeStateFile,_0x4855b3,_0x199e6d),_0x561562(-0x22e,-_0x392a14._0x5d45f9)+_0x4f073b+_0x561562(-_0x392a14._0x26ef81,-0x1e8)+_0x46ffbf+'\x20('+_0x1aa88f+')';}function _0x30b0a(_0x2abe6f,_0x3143e6){const _0xf54a00={_0xa3aa60:0x383};return _0x1b6b(_0x2abe6f-_0xf54a00._0xa3aa60,_0x3143e6);}export async function registerAgent(_0x6d6043,_0x3555fa,_0x43524c={}){const _0x5523e7={_0x17ce42:0x13b,_0x23ebac:0x171,_0x315f27:0x3c4,_0x13ca90:0x398,_0xba1c4d:0x3a4,_0x1edfab:0x391,_0x4f566e:0x3de,_0x2ad979:0x195,_0x3ac127:0x18d,_0x40e3b2:0x3bb,_0xae6599:0x1c7,_0x2886a1:0x1b0,_0xe5e246:0x18a,_0x10aad1:0x35c,_0x55cfc3:0x3d1,_0x110aba:0x38f,_0x411c73:0x331,_0xac0ce4:0x374,_0x5af149:0x1ac,_0x3bb316:0x1fe,_0xb5274c:0x154,_0x321706:0x14c,_0x25ab9e:0x402,_0x21cf7e:0x3c6,_0x430ea3:0x383,_0x1cb908:0x1c7,_0x56b58a:0x3c2,_0x3c911b:0x3bf,_0xe0a9ce:0x3be,_0x2d1018:0x3af,_0x432e23:0x1aa,_0x35d23b:0x384,_0x45a0ee:0x376,_0x5b9501:0x389,_0x576389:0x355,_0x4a0197:0x393,_0x5319c8:0x371,_0x41c5bc:0x36a,_0xdf993a:0x16b,_0x7eca36:0x1aa,_0xffcb4:0x1ab,_0x3310f5:0x363,_0x1a2451:0x370,_0x3cc8ce:0x395,_0x1b1239:0x17a,_0x5eb85b:0x42c,_0x28b5d8:0x3e0,_0x5ec052:0x16c,_0x5e6023:0x390,_0x3ef073:0x3cb,_0x45af35:0x1aa,_0x32b4c1:0x17f,_0x3a4275:0x15e,_0x5e5b47:0x17d,_0x58dec5:0x1c6,_0x3525fa:0x1b9,_0x47fceb:0x182,_0x3d211f:0x387,_0x557608:0x359,_0x36a5c6:0x348,_0x14a25b:0x17b,_0x31abbb:0x178,_0x149a5f:0x19e,_0xc02506:0x18e,_0x412b60:0x188},_0x16a3df={};_0x16a3df[_0xc2ae41(_0x5523e7._0x17ce42,_0x5523e7._0x23ebac)]='\x20\x20\x20🤖\x20Agent'+_0x4a7794(_0x5523e7._0x315f27,_0x5523e7._0x13ca90),_0x16a3df['DCsfD']=_0x4a7794(_0x5523e7._0xba1c4d,0x388)+_0x4a7794(_0x5523e7._0x1edfab,_0x5523e7._0x4f566e)+_0xc2ae41(_0x5523e7._0x2ad979,0x164)+_0x4a7794(0x363,0x385)+_0xc2ae41(0x1d1,_0x5523e7._0x3ac127)+_0x4a7794(0x3e5,_0x5523e7._0x40e3b2)+'工具',_0x16a3df[_0xc2ae41(0x173,_0x5523e7._0xae6599)]=_0xc2ae41(_0x5523e7._0x2ad979,0x165),_0x16a3df[_0xc2ae41(_0x5523e7._0x2886a1,_0x5523e7._0xe5e246)]='mPmzY',_0x16a3df[_0xc2ae41(0x19c,0x16f)]='QLaLF',_0x16a3df[_0x4a7794(0x394,_0x5523e7._0x10aad1)]=_0xc2ae41(0x1aa,0x161);const _0x343b55=_0x16a3df,_0x4409ca=await readStateFile(_0x6d6043);if(!_0x4409ca)return _0x343b55[_0x4a7794(_0x5523e7._0x55cfc3,_0x5523e7._0x110aba)]!==_0x343b55[_0x4a7794(_0x5523e7._0x411c73,_0x5523e7._0xac0ce4)]?_0xc2ae41(0x19e,_0x5523e7._0x5af149)+_0x4a7794(0x3b6,0x3ea)+_0xc2ae41(_0x5523e7._0x3bb316,0x1dc):'⚠️\x20\x20状态文件不存在';function _0x4a7794(_0x28ce89,_0x5461c1){return _0x4fac01(_0x5461c1- -0x181,_0x28ce89);}if(_0x4409ca[_0xc2ae41(0x100,_0x5523e7._0xb5274c)][_0x3555fa]){if(_0xc2ae41(0x121,_0x5523e7._0x321706)===_0x4a7794(_0x5523e7._0x25ab9e,_0x5523e7._0x21cf7e)){_0x16e168['push'](_0x343b55[_0x4a7794(0x3b3,0x376)]),_0x5e4c66['push'](_0x343b55[_0x4a7794(0x3bd,_0x5523e7._0x430ea3)]),_0x136f0e[_0xc2ae41(0x147,0x18e)](_0x343b55[_0xc2ae41(0x1d6,_0x5523e7._0x1cb908)]+'-'[_0x4a7794(_0x5523e7._0x56b58a,_0x5523e7._0x3c911b)](-0x259*-0xf+-0x1*0xece+-0x1419));for(const _0x5e8c34 of _0x43a9b1){const _0x5b256a=_0x8e1d7f[_0x5e8c34],_0xbdd6a3=_0x250d0c[_0x5b256a[_0x4a7794(_0x5523e7._0xe0a9ce,_0x5523e7._0x2d1018)]]??_0x5b256a[_0xc2ae41(0x15b,_0x5523e7._0x432e23)],_0x5eda4e=_0x5b256a[_0x4a7794(0x3ae,_0x5523e7._0x35d23b)+_0x4a7794(_0x5523e7._0xe0a9ce,0x377)]||'-',_0x569caa=_0x5b256a[_0x4a7794(_0x5523e7._0x45a0ee,_0x5523e7._0x5b9501)+'ll']||'-';_0x2e33db[_0x4a7794(_0x5523e7._0x576389,_0x5523e7._0x4a0197)](_0x4a7794(_0x5523e7._0x5319c8,_0x5523e7._0x41c5bc)+_0x5e8c34[_0xc2ae41(0x1ba,_0x5523e7._0xdf993a)](0x1ac9+0x89*0x1f+-0x2b4e)+_0xc2ae41(_0x5523e7._0x7eca36,0x196)+_0xbdd6a3[_0xc2ae41(_0x5523e7._0xffcb4,0x16b)](-0x15f1+-0xc79+0x2278)+_0x4a7794(_0x5523e7._0x3310f5,0x39b)+_0x5eda4e[_0x4a7794(0x330,_0x5523e7._0x1a2451)](-0x49*-0x71+-0x1838+-0x7ec)+_0x4a7794(_0x5523e7._0x3cc8ce,0x39b)+_0x569caa);}}else return _0xc2ae41(0x178,_0x5523e7._0x1b1239)+_0x3555fa+_0x4a7794(_0x5523e7._0x5eb85b,_0x5523e7._0x28b5d8);}const _0x440f37=_0x43524c[_0xc2ae41(_0x5523e7._0x5ec052,0x1aa)]??'idle',_0x209fd5=_0x43524c[_0x4a7794(0x3b1,_0x5523e7._0x5e6023)]??null,_0x3ec6fa={};_0x3ec6fa['agentId']=_0x3555fa,_0x3ec6fa['parentId']=_0x209fd5,_0x3ec6fa[_0x4a7794(_0x5523e7._0x4a0197,_0x5523e7._0x3ef073)]=[],_0x3ec6fa['phase']=_0x440f37,_0x3ec6fa[_0xc2ae41(_0x5523e7._0x45af35,_0x5523e7._0x32b4c1)+_0x4a7794(0x39a,0x377)]='',_0x3ec6fa[_0x4a7794(0x36a,0x389)+'ll']='';const _0xee7bdf=_0x3ec6fa,_0x226f88={..._0x4409ca['agents']};_0x226f88[_0x3555fa]=_0xee7bdf;const _0x4a5d36=_0x226f88;if(_0x209fd5&&_0x4a5d36[_0x209fd5]){if(_0xc2ae41(0x156,0x161)!==_0x343b55[_0x4a7794(0x374,0x35c)])return'['+_0x1b6e9a+_0xc2ae41(_0x5523e7._0x3a4275,0x1b3);else{const _0x229bca=_0x4a5d36[_0x209fd5];if(!_0x229bca[_0xc2ae41(_0x5523e7._0x5e5b47,_0x5523e7._0x58dec5)][_0xc2ae41(_0x5523e7._0x3525fa,0x1eb)](_0x3555fa)){const _0x5d4938={..._0x229bca};_0x5d4938['childIds']=[..._0x229bca['childIds'],_0x3555fa],_0x4a5d36[_0x209fd5]=_0x5d4938;}}}const _0x317936={};_0x317936[_0xc2ae41(0x1be,_0x5523e7._0x47fceb)]=_0x4409ca[_0x4a7794(0x36a,_0x5523e7._0x3d211f)];function _0xc2ae41(_0x206a7f,_0x15b36d){return _0x30b0a(_0x15b36d- -0x359,_0x206a7f);}_0x317936[_0x4a7794(0x336,_0x5523e7._0x557608)]=_0x4a5d36,_0x317936[_0x4a7794(0x315,_0x5523e7._0x36a5c6)+_0xc2ae41(0x1c5,0x178)]=_0x4409ca['machineSna'+_0xc2ae41(_0x5523e7._0x14a25b,_0x5523e7._0x31abbb)],await writeStateFile(_0x6d6043,_0x317936);const _0x59660b=PHASE_NAMES[_0x440f37]??_0x440f37,_0x31890a=[];_0x31890a[_0xc2ae41(_0x5523e7._0x149a5f,_0x5523e7._0xc02506)]('✅\x20Agent\x20已注'+'册:\x20'+_0x3555fa),_0x31890a[_0xc2ae41(0x177,_0x5523e7._0xc02506)]('\x20\x20\x20阶段:\x20'+_0x59660b);if(_0x209fd5)_0x31890a[_0x4a7794(0x3b3,0x393)](_0xc2ae41(0x1a0,_0x5523e7._0x412b60)+':\x20'+_0x209fd5);return _0x31890a['join']('\x0a');}export async function deregisterAgent(_0x1988e5,_0x57975e){const _0x154609={_0x86c53a:0x252,_0x4f397f:0x145,_0x17d067:0x190,_0x3bda49:0x26a,_0x3a03f0:0xc8,_0x287f1e:0xee,_0x18dcba:0x10f,_0x288d43:0xda,_0x29b65b:0x13e,_0x3a4120:0x137,_0x126c1d:0x14c,_0x34500a:0x146,_0x4fa943:0xfd,_0x5433db:0x1fe,_0x448917:0x207,_0x243150:0x1fa,_0x46fb11:0x228,_0x20582a:0x108,_0x2c323d:0x15e,_0x464237:0x18d,_0x42ae4e:0x9d,_0xa55923:0xe2,_0x5332d9:0x207,_0x1a5036:0xc2,_0x40ffe8:0x231,_0x7c8334:0x26f},_0x3a81a1={_0xfc494c:0x400};function _0x581c79(_0x5c3f07,_0x3faa4a){return _0x4fac01(_0x5c3f07- -_0x3a81a1._0xfc494c,_0x3faa4a);}const _0x212d76={'FgGNy':_0x5d403c(_0x154609._0x86c53a,0x245)+_0x581c79(_0x154609._0x4f397f,_0x154609._0x17d067),'YGmij':function(_0xf4a370,_0x14f098){return _0xf4a370(_0x14f098);},'uMwCu':_0x5d403c(0x1ed,0x223),'vJBwf':function(_0x163649,_0x2fb6dc){return _0x163649(_0x2fb6dc);},'DWFQa':_0x5d403c(0x24f,_0x154609._0x3bda49),'UHfGj':function(_0x16ea6a,_0x3835f3,_0xc08001){return _0x16ea6a(_0x3835f3,_0xc08001);}},_0x57beaf=await _0x212d76[_0x581c79(_0x154609._0x3a03f0,0xb5)](readStateFile,_0x1988e5);if(!_0x57beaf)return'⚠️\x20\x20状态文件不存在';if(!_0x57beaf[_0x581c79(0xda,_0x154609._0x287f1e)][_0x57975e])return _0x581c79(0x100,_0x154609._0x18dcba)+_0x57975e+_0x581c79(0x127,0xe3);function _0x5d403c(_0x273228,_0x172f8a){return _0x30b0a(_0x273228- -0x2dc,_0x172f8a);}const _0x285088=_0x57beaf[_0x581c79(_0x154609._0x288d43,0xc4)][_0x57975e],_0x16bcd9={..._0x57beaf['agents']},_0x560f73=_0x16bcd9;delete _0x560f73[_0x57975e];if(_0x285088[_0x581c79(0x111,0x14f)]&&_0x560f73[_0x285088['parentId']]){if(_0x212d76[_0x581c79(_0x154609._0x29b65b,_0x154609._0x3a4120)]==='vPeGF'){const _0x1cc354=_0x560f73[_0x285088['parentId']];_0x560f73[_0x285088[_0x5d403c(0x208,0x23c)]]={..._0x1cc354,'childIds':_0x1cc354[_0x581c79(_0x154609._0x126c1d,0x199)][_0x581c79(_0x154609._0x34500a,_0x154609._0x4fa943)](_0x4fc882=>_0x4fc882!==_0x57975e)};}else return _0x212d76['FgGNy'];}const _0x54376b=Object[_0x5d403c(_0x154609._0x5433db,_0x154609._0x448917)](_0x560f73),_0x490fae=_0x54376b[_0x5d403c(_0x154609._0x243150,0x24e)]>-0xa*0x373+-0x26e4+0x4962?_0x212d76[_0x5d403c(_0x154609._0x46fb11,0x276)](computeOverallPhase,_0x560f73):_0x212d76[_0x5d403c(0x1e5,0x192)],_0x3f5512={..._0x57beaf[_0x581c79(_0x154609._0x20582a,0xd1)]};_0x3f5512[_0x581c79(_0x154609._0x2c323d,_0x154609._0x464237)+'se']=_0x490fae;const _0x4ecc14={};return _0x4ecc14[_0x5d403c(0x1ff,0x1b2)]=_0x3f5512,_0x4ecc14[_0x581c79(0xda,_0x154609._0x42ae4e)]=_0x560f73,_0x4ecc14[_0x5d403c(0x1c0,0x19a)+_0x5d403c(0x1f5,0x206)]=_0x57beaf[_0x581c79(0xc9,_0x154609._0xa55923)+_0x5d403c(0x1f5,_0x154609._0x5332d9)],await _0x212d76[_0x581c79(0xe5,_0x154609._0x1a5036)](writeStateFile,_0x1988e5,_0x4ecc14),'✅\x20Agent\x20已注'+_0x5d403c(_0x154609._0x40ffe8,_0x154609._0x7c8334)+_0x57975e;}export async function showProgress(_0x3b613e){const _0x3d7b85={_0x21b7db:0x345,_0x5e0dfa:0x391,_0x3258f7:0x16a,_0x4897c8:0xdc,_0x2d539a:0x154,_0x480868:0x150,_0x37bdc9:0xe3,_0x70eacc:0x41f,_0x9a061a:0x37a,_0x312967:0x3aa,_0x183fb7:0xfe,_0x206d4d:0x3b9,_0xca7269:0xf2,_0x48da18:0x12c,_0x48ed3c:0x100,_0x265db6:0x15f,_0x3aa7a7:0x18e,_0x2374a7:0x374,_0x118ac4:0x39a,_0x1d2eb1:0x3c3,_0x1b38f7:0xd6,_0x1f3dd0:0xbc,_0x2870c2:0x123,_0x4a30de:0x3aa,_0x546ae8:0x146,_0x43692e:0x40c,_0x117f2c:0x3ea,_0x16e515:0x142,_0x10b870:0x18c,_0x22d9f2:0xaa,_0x15baa1:0x415,_0x179cdd:0x3c8,_0x4b96d9:0x3ba,_0x22b5b6:0x3d4,_0xea631f:0x15e,_0x2e1b90:0x3ec,_0x2536b2:0xd6,_0x53bfd6:0x390,_0xd196da:0xe2,_0x3dcc64:0x3f6,_0x54aec1:0x3f7,_0x1ff1c5:0x3b4,_0x7458e2:0x3a1,_0x1f27e9:0x37c,_0x504c52:0xda,_0x36bc12:0x124,_0x6d07e8:0x14e,_0x3225eb:0x13a,_0x531370:0x163,_0x4259bd:0x181,_0x449bed:0x414,_0x541f70:0x40f,_0x5ee1f4:0x10e,_0x55539c:0x14c,_0x4b24ae:0x114,_0x52230b:0x3b1,_0x1ba1d4:0x10e,_0x2f2102:0xf0,_0x598c49:0x3c5,_0x48c89a:0x438,_0x519abc:0x3de,_0x5939ef:0x41a,_0x2170ad:0x13c,_0x274a9b:0x12a,_0x2531fa:0x17f,_0x502986:0x3f0,_0x882526:0xff,_0x21d22e:0x12f,_0x6b53f3:0xf2,_0x4bb759:0x10e,_0x498d2a:0x3ab,_0x433715:0x116,_0x2621cf:0xea,_0x40db38:0x116,_0x1b3709:0x14e,_0x140312:0x3ce,_0x20a507:0x3bf},_0x2f1095={_0x337a46:0x3d9},_0x557bd0={};_0x557bd0[_0x3a30e7(_0x3d7b85._0x21b7db,0x393)]=function(_0x50d02a,_0x55d633){return _0x50d02a>_0x55d633;},_0x557bd0['wuYyP']=function(_0x141070,_0x3f84ae){return _0x141070*_0x3f84ae;},_0x557bd0[_0x386bce(0x148,0x16d)]=function(_0x151cda,_0x4e1690){return _0x151cda!==_0x4e1690;},_0x557bd0[_0x3a30e7(_0x3d7b85._0x5e0dfa,0x3ea)]=function(_0x342613,_0x17f639){return _0x342613+_0x17f639;},_0x557bd0[_0x386bce(_0x3d7b85._0x3258f7,0x15e)]=function(_0x4c43fc,_0x34ab11){return _0x4c43fc+_0x34ab11;},_0x557bd0[_0x386bce(_0x3d7b85._0x4897c8,0xf2)]=function(_0x471f22,_0xe2859c){return _0x471f22>_0xe2859c;},_0x557bd0[_0x386bce(_0x3d7b85._0x2d539a,_0x3d7b85._0x480868)]=_0x386bce(0x103,_0x3d7b85._0x37bdc9)+_0x3a30e7(0x475,_0x3d7b85._0x70eacc)+_0x3a30e7(_0x3d7b85._0x9a061a,_0x3d7b85._0x312967)+_0x386bce(0x100,_0x3d7b85._0x183fb7)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'\x20\x20\x20\x20\x20\x20\x20\x20|\x20'+'工具',_0x557bd0['pWazm']=_0x3a30e7(_0x3d7b85._0x206d4d,0x3ab);const _0x3b3564=_0x557bd0,_0x7cc31c=await readStateFile(_0x3b613e);if(!_0x7cc31c){if('tGspJ'!==_0x386bce(0x12d,_0x3d7b85._0xca7269))return _0x386bce(_0x3d7b85._0x48da18,_0x3d7b85._0x48ed3c)+_0x386bce(0x165,_0x3d7b85._0x265db6)+_0x386bce(0x15c,0x15d);else{const _0x4e3e78={};_0x4e3e78[_0x386bce(0x139,_0x3d7b85._0x3aa7a7)]=!![],_0x80e12c(_0x58168e,_0x4e3e78);}}const _0x2a80a3=_0x7cc31c[_0x3a30e7(_0x3d7b85._0x2374a7,_0x3d7b85._0x118ac4)];function _0x386bce(_0x3cb95d,_0x4ba98d){return _0x30b0a(_0x3cb95d- -_0x2f1095._0x337a46,_0x4ba98d);}const _0xebe563=Object[_0x3a30e7(0x3c5,0x3c7)](_0x2a80a3),_0x3f5a66=_0xebe563[_0x3a30e7(0x3ed,_0x3d7b85._0x1d2eb1)];function _0x3a30e7(_0x230580,_0x207a4d){return _0x4fac01(_0x207a4d- -0x140,_0x230580);}const _0x4cc1b5=_0xebe563[_0x3a30e7(0x3dc,0x406)](_0x2ef3b0=>_0x2a80a3[_0x2ef3b0][_0x386bce(0x12a,0x162)]===_0x386bce(0x16c,0x117))[_0x3a30e7(0x413,_0x3d7b85._0x1d2eb1)],_0x2b5184=_0x3b3564['xpfOP'](_0x3f5a66,-0x1829+0x1*0x1ed3+0x2*-0x355)?Math['round'](_0x3b3564[_0x386bce(_0x3d7b85._0x1b38f7,_0x3d7b85._0x1f3dd0)](_0x4cc1b5/_0x3f5a66,-0x1ba9+-0x30*-0x42+-0xfad*-0x1)):-0xd53+-0x230e*-0x1+-0x15bb,_0x4718c2={};for(const _0x4acb71 of _0xebe563){if(_0x3b3564['ollzD'](_0x386bce(_0x3d7b85._0x2870c2,0x13b),_0x3a30e7(_0x3d7b85._0x4a30de,0x3e9))){const _0x52fde0={..._0x18383c};_0x52fde0[_0x386bce(_0x3d7b85._0x546ae8,0x141)]=[..._0x223019[_0x3a30e7(0x43d,_0x3d7b85._0x43692e)],_0x54090d],_0x5ac839[_0x32b23e]=_0x52fde0;}else{const _0x490dfd=_0x2a80a3[_0x4acb71]['phase'];_0x4718c2[_0x490dfd]=_0x3b3564[_0x3a30e7(0x441,_0x3d7b85._0x117f2c)](_0x4718c2[_0x490dfd]??0x2298+0xd*-0x53+-0x1e61,0xb01+-0x1517+0x7b*0x15);}}const _0x2451ad=[];_0x2451ad[_0x386bce(0x10e,_0x3d7b85._0x16e515)]('📊\x20项目进度:\x20'+_0x7cc31c[_0x3a30e7(0x3ed,0x3c8)]['name']),_0x2451ad['push'](_0x386bce(0x13c,_0x3d7b85._0x10b870)+(PHASE_NAMES[_0x7cc31c[_0x386bce(0x102,_0x3d7b85._0x22d9f2)]['currentPha'+'se']]??_0x7cc31c[_0x3a30e7(_0x3d7b85._0x15baa1,_0x3d7b85._0x179cdd)]['currentPha'+'se'])),_0x2451ad[_0x3a30e7(_0x3d7b85._0x4b96d9,_0x3d7b85._0x22b5b6)](_0x386bce(_0x3d7b85._0xea631f,0x18b)+_0x7cc31c[_0x3a30e7(0x42f,_0x3d7b85._0x2e1b90)]),_0x2451ad[_0x386bce(0x10e,_0x3d7b85._0x2536b2)](_0x3a30e7(0x3af,_0x3d7b85._0x53bfd6)+_0x7cc31c['updatedAt']),_0x2451ad[_0x386bce(0x10e,_0x3d7b85._0xd196da)](_0x3a30e7(_0x3d7b85._0x3dcc64,_0x3d7b85._0x54aec1)+_0x2b5184+_0x3a30e7(0x3c6,0x3d5)+_0x4cc1b5+'/'+_0x3f5a66+_0x3a30e7(_0x3d7b85._0x1ff1c5,_0x3d7b85._0x7458e2)),_0x2451ad[_0x3a30e7(_0x3d7b85._0x1f27e9,0x3d4)](''),_0x2451ad['push'](_0x386bce(_0x3d7b85._0x504c52,_0x3d7b85._0x36bc12));for(const [_0x336381,_0x48465c]of Object[_0x386bce(_0x3d7b85._0x6d07e8,0x186)](_0x4718c2)){const _0x5d2d1d=PHASE_NAMES[_0x336381]??_0x336381,_0x130c14=_0x3b3564[_0x386bce(0x16a,0x18a)]('█'[_0x386bce(_0x3d7b85._0x3225eb,_0x3d7b85._0x531370)](_0x48465c),'░'[_0x386bce(_0x3d7b85._0x3225eb,_0x3d7b85._0x4259bd)](Math[_0x3a30e7(_0x3d7b85._0x449bed,_0x3d7b85._0x541f70)](-0x22*-0xb0+-0x269e+0xf3e,_0x3f5a66-_0x48465c)));_0x2451ad[_0x386bce(_0x3d7b85._0x5ee1f4,_0x3d7b85._0x55539c)](_0x386bce(_0x3d7b85._0x4b24ae,0x112)+_0x5d2d1d[_0x3a30e7(0x380,_0x3d7b85._0x52230b)](-0x1c1*0x1+-0x1b07+0x1*0x1cd6)+'\x20'+_0x130c14+'\x20'+_0x48465c);}_0x2451ad[_0x386bce(_0x3d7b85._0x1ba1d4,0xf2)]('');if(_0x3b3564[_0x386bce(0xdc,_0x3d7b85._0x2f2102)](_0xebe563[_0x3a30e7(_0x3d7b85._0x598c49,_0x3d7b85._0x1d2eb1)],0x191e+0x2596+-0x1f5a*0x2)){if(_0x3a30e7(_0x3d7b85._0x48c89a,0x417)===_0x386bce(0xee,0xae))return _0x93bd89[0x1*-0xfad+0x1cb1*-0x1+-0x2c5e*-0x1];else{_0x2451ad[_0x3a30e7(0x41f,_0x3d7b85._0x22b5b6)]('\x20\x20\x20🤖\x20Agent'+'\x20详情:'),_0x2451ad[_0x3a30e7(_0x3d7b85._0x519abc,0x3d4)](_0x3b3564[_0x3a30e7(0x474,_0x3d7b85._0x5939ef)]),_0x2451ad['push'](_0x3b3564[_0x386bce(0x166,_0x3d7b85._0x2170ad)]+'-'[_0x3a30e7(0x3f2,0x400)](-0x3f7+0x16e+-0x51*-0x9));for(const _0x10f089 of _0xebe563){const _0x5b3eab=_0x2a80a3[_0x10f089],_0x41cae8=PHASE_NAMES[_0x5b3eab[_0x386bce(_0x3d7b85._0x274a9b,_0x3d7b85._0x2531fa)]]??_0x5b3eab[_0x3a30e7(0x436,_0x3d7b85._0x502986)],_0x2d950e=_0x5b3eab[_0x386bce(_0x3d7b85._0x882526,_0x3d7b85._0x21d22e)+_0x386bce(_0x3d7b85._0x6b53f3,0x126)]||'-',_0x32d7d3=_0x5b3eab[_0x3a30e7(0x3e1,0x3ca)+'ll']||'-';_0x2451ad[_0x386bce(_0x3d7b85._0x4bb759,0x101)](_0x3a30e7(0x398,_0x3d7b85._0x498d2a)+_0x10f089['padEnd'](-0x17cb*-0x1+-0x371+-0x1448)+_0x386bce(_0x3d7b85._0x433715,_0x3d7b85._0x2621cf)+_0x41cae8['padEnd'](-0x137+0x61*0x2f+0x49*-0x3a)+_0x386bce(_0x3d7b85._0x40db38,_0x3d7b85._0x2d539a)+_0x2d950e[_0x386bce(0xeb,0x123)](-0xdac+0x1c21+-0xe60)+_0x386bce(0x116,_0x3d7b85._0x1b3709)+_0x32d7d3);}}}return _0x2451ad[_0x3a30e7(_0x3d7b85._0x140312,_0x3d7b85._0x20a507)]('\x0a');}export async function quickTask(_0x122daf,_0x5cb474){const _0x165849={_0x2aeed7:0x14b,_0x5b288c:0x16a,_0x2da53c:0x2ae,_0x1c0287:0xfd,_0x5587b9:0x116,_0xb4e519:0x17c,_0x34fdb5:0x1a7,_0x20efb3:0x293,_0x3e2279:0x2d9,_0x495c0:0x2f4,_0x2abc3a:0x283,_0x13bb23:0x252,_0x23ab61:0x186,_0x599c78:0x150,_0x1fce34:0x166,_0x270c28:0x122,_0x2380fc:0x152,_0x10b2ef:0x12f},_0x5a8f71={'PUmEr':function(_0x46fa98,_0x130353){return _0x46fa98(_0x130353);},'SeduB':_0xba6863(0x23a,0x231),'ctCUi':function(_0x4cfca4,_0x136910){return _0x4cfca4(_0x136910);},'DPKyq':function(_0x3f60ae,_0x18f755,_0x4ee6d2){return _0x3f60ae(_0x18f755,_0x4ee6d2);},'BTsoa':function(_0x14fae1){return _0x14fae1();},'OkBZe':_0x4afa57(0xdd,0xce),'vfFIL':function(_0x66b6f,_0x59b925,_0x3fc657){return _0x66b6f(_0x59b925,_0x3fc657);}},_0x41920b=await _0x5a8f71[_0x4afa57(_0x165849._0x2aeed7,_0x165849._0x5b288c)](readStateFile,_0x122daf);function _0x4afa57(_0x4f9f05,_0x4d2441){return _0x30b0a(_0x4f9f05- -0x3c5,_0x4d2441);}if(!_0x41920b){if(_0xba6863(0x23a,0x21c)!==_0x5a8f71['SeduB']){const _0x35ff90=_0x330f1f[_0x3cf86e]['phase'];_0x4b4c96[_0x35ff90]=(_0xa4fc87[_0x35ff90]??-0x125a+-0x218d+0x2b*0x135)+(-0x1b*0x7f+0x1a*0xc1+-0x634);}else{const _0x2c4b50=resolve(_0x122daf,'..');if(!_0x5a8f71['ctCUi'](existsSync,_0x2c4b50)){const _0xfc7dc8={};_0xfc7dc8[_0xba6863(_0x165849._0x2da53c,0x279)]=!![],_0x5a8f71[_0x4afa57(_0x165849._0x1c0287,0xba)](mkdirSync,_0x2c4b50,_0xfc7dc8);}}}const _0x1e88ef=_0x41920b?.[_0x4afa57(_0x165849._0x5587b9,0x149)][_0x4afa57(_0x165849._0xb4e519,_0x165849._0x34fdb5)]??_0xba6863(_0x165849._0x20efb3,0x260),_0x2f10af=_0x41920b?Object['keys'](_0x41920b['agents'])[-0x1*0x1aca+-0xd*-0x1ac+0x50e]??generateAgentId():_0x5a8f71['BTsoa'](generateAgentId),_0x2e339d={'agentId':_0x2f10af,'parentId':null,'childIds':[],'phase':_0xba6863(_0x165849._0x3e2279,0x2c6),'currentOperation':_0x5cb474[_0xba6863(0x2e6,_0x165849._0x495c0)](0x1*0x1676+0x15*-0x1d+-0x1415,-0x1661+-0x31a*0x5+-0x2647*-0x1),'currentSkill':_0x5a8f71['OkBZe']},_0xc8ed9d={};_0xc8ed9d[_0x2f10af]=_0x2e339d,await _0x5a8f71['vfFIL'](writeStateFile,_0x122daf,{'project':{'name':_0x1e88ef,'currentPhase':_0x5a8f71[_0x4afa57(0x107,0xf5)]},'agents':_0xc8ed9d,'machineSnapshot':null});function _0xba6863(_0x3dee15,_0x5a0ffb){return _0x4fac01(_0x3dee15- -0x291,_0x5a0ffb);}const _0x556a76=[];return _0x556a76['push'](_0xba6863(0x25f,0x21b)),_0x556a76[_0xba6863(_0x165849._0x2abc3a,_0x165849._0x13bb23)](_0x4afa57(_0x165849._0x23ab61,_0x165849._0x599c78)+_0x1e88ef),_0x556a76['push'](_0x4afa57(0x110,_0x165849._0x1fce34)+_0x5cb474),_0x556a76[_0xba6863(0x283,0x298)](_0xba6863(0x24e,0x291)+_0x2f10af),_0x556a76[_0x4afa57(_0x165849._0x270c28,0xcb)](_0x4afa57(_0x165849._0x2380fc,_0x165849._0x10b2ef)+'务不走完整\x20Pipe'+'line,直接执行'),_0x556a76[_0xba6863(0x26e,0x235)]('\x0a');}
package/dist/plugin.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2d4f7b,_0x5d74f4){const _0x3761b5={_0x624b7a:0x3cd,_0x2a901a:0x473,_0x78cdcd:0x428,_0x270e8f:0x523,_0x37dc2d:0x577},_0x16a383=_0x2d4f7b();function _0x4bef10(_0x4c19b0,_0x3047c7){return _0x3a4e(_0x4c19b0-0x230,_0x3047c7);}function _0x16fb76(_0x18e760,_0x56f8c9){return _0x3a4e(_0x18e760-0x365,_0x56f8c9);}while(!![]){try{const _0x443ffe=-parseInt(_0x4bef10(0x3e5,_0x3761b5._0x624b7a))/(0xfe3+-0x13d*-0xd+-0x1ffb)+-parseInt(_0x16fb76(0x560,0x532))/(0xcc3+0xf9e+-0x9*0x327)+parseInt(_0x4bef10(0x449,_0x3761b5._0x2a901a))/(-0x3*0x327+0x331*0x3+-0x1b*0x1)*(parseInt(_0x4bef10(0x44b,0x44f))/(0x1*0x12eb+-0x273+-0x1074))+parseInt(_0x4bef10(0x427,_0x3761b5._0x78cdcd))/(-0x1f83*-0x1+-0x25c1+0x643)+-parseInt(_0x16fb76(_0x3761b5._0x270e8f,0x532))/(0x2d*0x6e+0xa2*-0x36+0x6*0x27a)+parseInt(_0x16fb76(0x518,0x530))/(-0x103+0xf6b*-0x1+0x1075)+parseInt(_0x16fb76(0x54f,_0x3761b5._0x37dc2d))/(-0x490+0x1*0x16d9+-0x1*0x1241);if(_0x443ffe===_0x5d74f4)break;else _0x16a383['push'](_0x16a383['shift']());}catch(_0x5d16e0){_0x16a383['push'](_0x16a383['shift']());}}}(_0x24be,-0xfaa9b+-0x21a1*-0x97+-0x3457*-0x28));import{tool}from'@opencode-ai/plugin';import{resolve}from'node:path';import*as _0xd9f808 from'./plugin-engine.js';import{createAnalyzeRequirementsTool}from'./requirement-analysis/tools/analyze-requirements.js';function _0x3a4e(_0x4db0e1,_0x4bea61){_0x4db0e1=_0x4db0e1-(-0x244b+-0x112*0x4+0x2a44);const _0x12ce9a=_0x24be();let _0x271e33=_0x12ce9a[_0x4db0e1];if(_0x3a4e['KAPyft']===undefined){var _0x1fb5c4=function(_0x53aabf){const _0x1e0e93='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x15a618='',_0x3167ff='';for(let _0x4529c5=-0x1*-0x87b+-0x220e+0x1993,_0x4c6e32,_0x2ae36d,_0x3db10d=-0x26f3+-0x19ee+0x40e1;_0x2ae36d=_0x53aabf['charAt'](_0x3db10d++);~_0x2ae36d&&(_0x4c6e32=_0x4529c5%(0x22bc+-0x1*-0x150b+-0x37c3)?_0x4c6e32*(-0x7*0x203+0x7*-0x3ce+-0x28f7*-0x1)+_0x2ae36d:_0x2ae36d,_0x4529c5++%(-0x16a+-0x2507+-0x1*-0x2675))?_0x15a618+=String['fromCharCode'](-0x174b+0x83*0x9+-0x13af*-0x1&_0x4c6e32>>(-(0xcd*-0x7+-0x6*0x1ca+0x1059)*_0x4529c5&0x5b*0x4f+0x16c7+0x6*-0x879)):0xb*0x181+0x31*-0x87+0x94c){_0x2ae36d=_0x1e0e93['indexOf'](_0x2ae36d);}for(let _0x35a214=-0x1d05+0xc92+0x1073*0x1,_0x1d01f6=_0x15a618['length'];_0x35a214<_0x1d01f6;_0x35a214++){_0x3167ff+='%'+('00'+_0x15a618['charCodeAt'](_0x35a214)['toString'](0x8c6*0x1+0x997+-0x124d))['slice'](-(-0x1*0x13b8+-0x1669*-0x1+-0x2af*0x1));}return decodeURIComponent(_0x3167ff);};_0x3a4e['amyZYw']=_0x1fb5c4,_0x3a4e['CHwLfF']={},_0x3a4e['KAPyft']=!![];}const _0x4cae5a=_0x12ce9a[-0x22cc+-0x1*0x1b73+-0x5*-0xc73],_0xbc5c7c=_0x4db0e1+_0x4cae5a,_0x182a91=_0x3a4e['CHwLfF'][_0xbc5c7c];return!_0x182a91?(_0x271e33=_0x3a4e['amyZYw'](_0x271e33),_0x3a4e['CHwLfF'][_0xbc5c7c]=_0x271e33):_0x271e33=_0x182a91,_0x271e33;}function getStateFilePath(_0x1c9fc3){const _0x53515c={_0x55afc2:0x336,_0x5733a4:0x14d,_0x253982:0x30d},_0x272870={_0x5d4860:0x185},_0x12699d={};_0x12699d[_0x29fda1(0x345,_0x53515c._0x55afc2)]=_0x30bec5(0x13b,_0x53515c._0x5733a4);function _0x29fda1(_0x3a17dc,_0x4215e2){return _0x3a4e(_0x3a17dc-_0x272870._0x5d4860,_0x4215e2);}function _0x30bec5(_0x4fb167,_0x2e8ec6){return _0x3a4e(_0x4fb167- -0xa3,_0x2e8ec6);}const _0x351a22=_0x12699d;return resolve(_0x1c9fc3,_0x29fda1(0x372,0x385),_0x351a22[_0x29fda1(0x345,_0x53515c._0x253982)]);}function createStatusTool(_0x3183c7){const _0x289620={_0x442104:0x537,_0x28f681:0x1d3,_0x59d5bb:0x20d,_0xea8d07:0x178,_0x3951c2:0x150,_0x34712e:0x55e,_0x3465ff:0x532},_0x5a8014={_0x402467:0x101},_0x566534={_0x54e90a:0x35f},_0x3d3f7f={'jXXbe':function(_0x29cd76,_0xe3898f){return _0x29cd76(_0xe3898f);}},_0x4a1136=getStateFilePath(_0x3183c7);function _0x2fa327(_0x2cd763,_0x2fd9ff){return _0x3a4e(_0x2cd763- -0x3e,_0x2fd9ff);}function _0x5a99a7(_0x4d8e5e,_0x161d63){return _0x3a4e(_0x161d63-_0x566534._0x54e90a,_0x4d8e5e);}return _0x3d3f7f[_0x5a99a7(0x555,0x537)](tool,{'description':_0x5a99a7(_0x289620._0x442104,0x53c)+_0x2fa327(_0x289620._0x28f681,_0x289620._0x59d5bb)+_0x2fa327(_0x289620._0xea8d07,_0x289620._0x3951c2)+_0x5a99a7(_0x289620._0x34712e,0x554)+_0x5a99a7(0x56b,_0x289620._0x3465ff),'args':{},async 'execute'(){const _0x2ce496={_0xd45dee:0x255};function _0x1d0847(_0x14f3a1,_0x5c5abc){return _0x2fa327(_0x14f3a1-_0x2ce496._0xd45dee,_0x5c5abc);}function _0x53167c(_0x1cf1b2,_0x50d247){return _0x2fa327(_0x50d247- -_0x5a8014._0x402467,_0x1cf1b2);}try{return await _0xd9f808['getStatus'](_0x4a1136);}catch(_0x1b6654){return _0x1d0847(0x3f2,0x3e7)+(_0x1b6654 instanceof Error?_0x1b6654[_0x53167c(0x10e,0xd9)]:String(_0x1b6654));}}});}function createAdvanceTool(_0x1699c2){const _0x51a8ba={_0x5241b3:0x579,_0x5d9eb4:0x55f,_0x1907d9:0x540,_0x3b0bb9:0x547,_0x4016a7:0x561,_0x460c50:0x54e,_0x490f46:0x54f,_0x579058:0x58b,_0x1b0f22:0x581,_0x363321:0x55d,_0x4d369c:0x586,_0x2a8ecc:0x575,_0x4e0b8d:0x577},_0x1949f6={_0x139800:0xf0,_0x355855:0x120,_0x412147:0x218,_0x566f89:0xcb,_0xeaf3e2:0x87,_0x3ad2b7:0xcf,_0x295bcb:0x102,_0x2879ce:0xb6,_0x2ffacd:0xbf,_0x286977:0x232,_0xa0bdc0:0x216,_0x8044ef:0x1ce,_0x51bba2:0x1ea,_0x2e0fcf:0x205,_0x2f88c9:0x217,_0x237405:0x23d,_0x2b0fb6:0x256,_0x2f62dc:0x211},_0x495578={_0xf84cc4:0xe0},_0x2e1d18={'BBdXm':function(_0x5269b6,_0x5e8a2c){return _0x5269b6(_0x5e8a2c);},'WTADk':function(_0x3df55b,_0x5b27ff){return _0x3df55b(_0x5b27ff);},'VCtXR':function(_0x1f06bf,_0x874f83){return _0x1f06bf===_0x874f83;},'trwdC':_0x5276aa(0x5a7,_0x51a8ba._0x5241b3),'usKTp':function(_0x200385,_0x5ab375){return _0x200385(_0x5ab375);},'RjUXJ':_0x5276aa(_0x51a8ba._0x5d9eb4,0x53f)+_0x5276aa(0x52a,_0x51a8ba._0x1907d9)+_0x5276aa(_0x51a8ba._0x3b0bb9,_0x51a8ba._0x4016a7)};function _0x5b9e58(_0x52d479,_0x154cf1){return _0x3a4e(_0x154cf1-0x39e,_0x52d479);}const _0x859a3c=getStateFilePath(_0x1699c2);function _0x5276aa(_0x3ed426,_0x57c4ff){return _0x3a4e(_0x57c4ff-0x375,_0x3ed426);}return _0x2e1d18['usKTp'](tool,{'description':_0x5276aa(0x55c,_0x51a8ba._0x460c50)+'\x20阶段。将指定\x20Ag'+_0x5276aa(0x5aa,0x574)+'成的\x20Agent)推'+_0x5276aa(0x552,_0x51a8ba._0x490f46)+_0x5276aa(0x594,_0x51a8ba._0x579058)+_0x5b9e58(_0x51a8ba._0x1b0f22,_0x51a8ba._0x363321)+_0x5b9e58(0x5d6,0x5b1)+'eted','args':{'agent_id':tool[_0x5b9e58(_0x51a8ba._0x4d369c,0x57a)]['string']()[_0x5276aa(0x59f,0x594)]()[_0x5276aa(_0x51a8ba._0x2a8ecc,_0x51a8ba._0x4e0b8d)](_0x2e1d18['RjUXJ'])},async 'execute'(_0x210156){const _0x193a95={_0x2d3481:0x64c},_0xc7acca={_0x5cf005:0x102};function _0x4b33b7(_0x5a103c,_0x1e8510){return _0x5b9e58(_0x1e8510,_0x5a103c- -0x379);}const _0x2c6dbb={'JixuO':function(_0x417bd7,_0x2f7455){return _0x417bd7 instanceof _0x2f7455;},'ziUdJ':function(_0x4aff4f,_0x35fee2){function _0xaf1f62(_0x401738,_0x49e444){return _0x3a4e(_0x401738- -_0xc7acca._0x5cf005,_0x49e444);}return _0x2e1d18[_0xaf1f62(_0x495578._0xf84cc4,0xaa)](_0x4aff4f,_0x35fee2);}};function _0x4eff51(_0x17711d,_0x1431aa){return _0x5276aa(_0x17711d,_0x1431aa- -_0x193a95._0x2d3481);}if(_0x2e1d18[_0x4eff51(-_0x1949f6._0x139800,-_0x1949f6._0x355855)](_0x2e1d18[_0x4b33b7(_0x1949f6._0x412147,0x1ee)],_0x4eff51(-0xca,-_0x1949f6._0x566f89)))return _0x4eff51(-_0x1949f6._0xeaf3e2,-0xba)+_0x4eff51(-_0x1949f6._0x3ad2b7,-_0x1949f6._0x295bcb)+(_0x10260f instanceof _0x3d8b71?_0x3df5c4[_0x4eff51(-_0x1949f6._0x2879ce,-_0x1949f6._0x2ffacd)]:_0x2e1d18[_0x4b33b7(_0x1949f6._0x286977,_0x1949f6._0xa0bdc0)](_0x4aac9a,_0x440c5a));else try{return'bCJIb'!=='UhCAN'?await _0xd9f808[_0x4b33b7(0x1d7,_0x1949f6._0x8044ef)+'se'](_0x859a3c,_0x210156[_0x4b33b7(_0x1949f6._0x51bba2,_0x1949f6._0x2e0fcf)]):_0x4b33b7(0x200,_0x1949f6._0x2f88c9)+(_0x2c6dbb[_0x4eff51(-0xd6,-0x10f)](_0x1e6c04,_0x55717f)?_0x2cbbeb[_0x4b33b7(_0x1949f6._0x237405,_0x1949f6._0x2b0fb6)]:_0x2c6dbb[_0x4b33b7(_0x1949f6._0xa0bdc0,0x21d)](_0x25f57f,_0x1e800a));}catch(_0x48c024){return _0x4b33b7(0x1e7,_0x1949f6._0x2f62dc)+(_0x48c024 instanceof Error?_0x48c024[_0x4b33b7(0x23d,0x22f)]:String(_0x48c024));}}});}function _0x24be(){const _0x4f8a7c=['AgX6swm','DeXqwei','4P2mioAoQoI/M+MyTUAUTEwKSEI0PtOG','5lU75yQH44cc','CMvNAxn0zxjbzW','ywDLBNrFAwq','zgvYzwDPC3rLCG','qwDLBNqGsuq','sML4Du8','CgHHC2u','6kAb5O6O6l+B55QeiefNzw50','ieLe77Yi5lIn5OYh5A6A5yIz6iEQ5yQO','C2TPBgW','DhHnreq','5PE277Ym5Q+p5lIQigfNzw50','z0DTtfe','5y+rigfNzw50ioE8LUAoKG','ioEAHow9K+wjJEAtJEs9NoApJ+I/SowsJos9VW','AK9PwKe','55Qe54Q25Ocb6kgO5Qc844cc','zgXL77Yj','iowKSEI0PtOG','B1Puvum','5yIg5BId5zU+44cbqwDLBNqG','ALHyyMu','5O6O6l+BihnWzwnVChm','6l+B5yIW5lIl5lIa5lIQ6zI25Q6144cccUMyTG','4P2mioIoT+wpLUEkTUAaGEwKSEI0PtOG','C2nOzw1H','6i635y+wihnWzwnVChm','C3rHDguUANnVBG','5PI+56s6ihnWzwnVChm','C3rYAw5N','5PU05PAW5OYh5A6AiefNzw50','v1rbrgS','DMzYze0','cUMaGUEuQos6JUwWJ+wEI+oaGEAyJUEHRUEAHa','5RoO5yAm5PAW55QeiefNzw50','DxbKyxrLt3bLCG','iowiScbZCgvJB3bZ','ieLe','rNbPzxe','mtyZndmWnZjpq2PIAe4','ioAZQowgJoIhQUw3SEEAHoEkTUAaGEoaGG','6ycj5OUP56YS5lIa5lIQ5PYQ5A6m5OIq55Qe77Yj','lNnWzwnVChm','5yIB5BU65PAW55QeihnWzwnV','EfnKBwW','5Pw0ifbPCgvSAw5L','EMLvzeO','5zcR5A6m5OIq5BQM55M+5yIg5Q+u44cb6zI25Q61','Dhj3zem','77Ym55U05O6L6l+B5ywL5OMN6kgm6zI25Q6144cc','44cb5OMa5PYjiefNzw50ia','Dgf0zs5QC29U77Ym','odq0nJm1D2PuBKLt','ug9IC00','6Ag555UU5zcn56EW','6k+M5Oof6kgO5Qc844cc','mty5nJa5ogfRyuLvAq','tKDlrMS','zNjVtLa','zgLYzwn0B3j5','zw5077Yi5OIw56YS5lIa5lIQ5PYQ5A6m','4P2miowiM+w7UUMHUEEBRUwKSEI0PtOG','5B2t5yMn5l2/55sO55Qe5BEL5yw3l+AkGoIdVq','zgvZy3jPyMu','DgfZAW','sMfwzg8','txvLAeC','thHez0W','yxvdweq','5lU75yQH5O+p6l+W','5lQo5A6E5PE26l+96lIQiefNzw4','wffnzK4','yxrPB24','uxb1wNC','qKjKwg0','qMvyweq','5B+R6ycF5lU75yQH5QIH5BYp44cc6lEZ6l+h5A6m','5yID5AEl6zI25Q6177Yi6BUy6k6KoIbP','ioMHUEEBRUw9K+wjJEEkTUAaGEoaGGRMMl4','54I2iefNzw50ieLe','6AQm6k+biokgKIbJB21WBa','EhHUsve','4P2mioIoT+wpLUI/M+w6PUwKSEI0PtOG','5Q615BQp5yIxoIdORQJORROG4OAsia','ChmG6Ag555UU44cc5yID5AEl5yYwia','BwvZC2fNzq','nK9mwhHyvq','54Q25Ocb57o757UF5RoO6zsaiefNzq','mJm2nJu0ogPmDM90vW','5zcn56EW77Yi5AAciMv4CgXV','4P2mioAZQowgJcbbz2vUDa','wKfZvKW','B3b0Aw9UywW','y2HPBgrjzhpJGii','CvPure8','54I2iefNzw50ioEAHca','AvjgDK0','CMvYiU+8Iq','zhjjqMO','tefRv1q','77Yi5y+V6ycj77Yj','4P2mioABToAwSoAtJEs9NowKSEI0PtOG','ywr2yw5JzvbOyq','mZmYnZi4ouzSrvbbrW','5lUoihnWzwnVChmG','mtaZntq3oufND2nhBq','56s66Ag555UU5zcn56EW44cb5B2t5yMn6zI25Q61','vKn0wfi','qwDLBNq','CLvYzg4','55sO55Qe5BEL5yw3l+AkGoIdVEoaGGRNLkG','BMv3uhjVAMvJDa','C2HVD1bYB2DYzq','4P2miow/Q+MaN+s7U+wkOEwKSEI0PtOG','nZa2nJa4mgvetfb0yq','6kEe5yIsiokgKIdMIAFOOyWG4OAsia'];_0x24be=function(){return _0x4f8a7c;};return _0x24be();}function createNewProjectTool(_0x541249){const _0x361e6b={_0x569c2d:0x123,_0x275520:0x138,_0x1c198c:0x124,_0x38052a:0xf5,_0x15103c:0x11d,_0x5c348c:0x15f,_0x233586:0xcc},_0x116c7e={_0x1e34f6:0x89,_0x312179:0x109,_0x310eef:0xf8,_0x334a02:0xb5,_0x124eff:0xc6,_0x1d63cc:0xe9,_0x2dc966:0xd3},_0x52dc78={_0x6477e8:0xb},_0x1313a6={_0x173991:0x103},_0xb66122={_0xe02f16:0x33b};function _0x31fb3(_0x10672b,_0x38fefc){return _0x3a4e(_0x10672b- -_0xb66122._0xe02f16,_0x38fefc);}const _0x5110e1={'vfrdM':function(_0x271772,_0x26e305){return _0x271772 instanceof _0x26e305;},'drIBj':function(_0x781e01,_0xe8049b){return _0x781e01(_0xe8049b);},'Fpieq':_0x36c3c7(_0x361e6b._0x569c2d,_0x361e6b._0x275520),'LxDgL':function(_0xbebbfd,_0x3d2076){return _0xbebbfd instanceof _0x3d2076;},'RYtWy':function(_0x32673c,_0x539c0f){return _0x32673c(_0x539c0f);},'gGmLQ':_0x36c3c7(0xf6,0x12a)},_0x516fe9=getStateFilePath(_0x541249);function _0x36c3c7(_0x13e4a3,_0x5d7205){return _0x3a4e(_0x13e4a3- -_0x1313a6._0x173991,_0x5d7205);}return _0x5110e1[_0x31fb3(-0x116,-0x127)](tool,{'description':_0x31fb3(-0x14d,-0x143)+_0x31fb3(-_0x361e6b._0x1c198c,-_0x361e6b._0x38052a)+'.specops/s'+_0x31fb3(-0x145,-_0x361e6b._0x15103c)+'创建初始\x20Agent'+'。','args':{'project_name':tool[_0x31fb3(-_0x361e6b._0x5c348c,-0x15c)][_0x31fb3(-0x15b,-0x12f)]()[_0x31fb3(-0x139,-0x134)](_0x5110e1[_0x36c3c7(_0x361e6b._0x233586,0xfc)])},async 'execute'(_0x3223be){const _0xa2704b={_0x1549b0:0x4f};function _0x332933(_0x4d722b,_0x3ef142){return _0x36c3c7(_0x3ef142- -_0xa2704b._0x1549b0,_0x4d722b);}function _0x185e22(_0x1eb1f8,_0x445daf){return _0x36c3c7(_0x445daf- -_0x52dc78._0x6477e8,_0x1eb1f8);}try{return await _0xd9f808[_0x332933(_0x116c7e._0x1e34f6,0x69)](_0x516fe9,_0x3223be['project_na'+'me']);}catch(_0x4bdbd7){return'NUMhP'!==_0x5110e1[_0x185e22(_0x116c7e._0x312179,0xdb)]?_0x332933(0xa3,0xae)+(_0x5110e1[_0x185e22(0xc7,_0x116c7e._0x310eef)](_0x4bdbd7,Error)?_0x4bdbd7[_0x332933(_0x116c7e._0x334a02,_0x116c7e._0x124eff)]:_0x5110e1['RYtWy'](String,_0x4bdbd7)):_0x185e22(_0x116c7e._0x1d63cc,0xf2)+(_0x5110e1[_0x185e22(0x101,0xd5)](_0x164cd1,_0x586837)?_0x486a9e[_0x332933(0xef,0xc6)]:_0x5110e1[_0x332933(0xf1,_0x116c7e._0x2dc966)](_0x4cbd05,_0xd0219c));}}});}function createUpdateOperationTool(_0x1f6c71){const _0x43a3aa={_0x25bd19:0xa4,_0x195447:0x30,_0x4cc3e4:0x3e,_0x418cc5:0xb,_0xa01eb3:0x27,_0x20c31b:0x11f,_0x2790ff:0x4a,_0x30ada8:0x4d,_0x4c2cb8:0x11b,_0xe19729:0x6f,_0x5594da:0x89,_0x10decd:0x91},_0x114b5e={_0xa1cc9a:0x39b,_0x2ca3ca:0x362,_0x1d8b70:0x387,_0x2716c8:0x27d,_0x136c52:0x2a0,_0x579e6d:0x2c7,_0x59b4ed:0x307},_0x274c29={_0x5afe77:0x193},_0x15a637={_0x560c9e:0x2fb},_0x226a60={'XQMfN':function(_0x53f074,_0x21076f){return _0x53f074 instanceof _0x21076f;},'NGKFk':function(_0x5c94ad,_0xd60458){return _0x5c94ad(_0xd60458);},'auCXD':_0x1571a7(0x8,0x34)},_0x57e7c7=_0x226a60[_0x1571a7(_0x43a3aa._0x25bd19,0x69)](getStateFilePath,_0x1f6c71);function _0x418a99(_0x56adbb,_0x33d11a){return _0x3a4e(_0x56adbb- -_0x15a637._0x560c9e,_0x33d11a);}function _0x1571a7(_0x512dab,_0x1bcb89){return _0x3a4e(_0x1bcb89- -_0x274c29._0x5afe77,_0x512dab);}return tool({'description':_0x418a99(-0x11a,-0x13c)+_0x1571a7(_0x43a3aa._0x195447,_0x43a3aa._0x4cc3e4)+_0x1571a7(_0x43a3aa._0x418cc5,_0x43a3aa._0xa01eb3)+_0x418a99(-0xf2,-0x114)+'t\x20正在做什么。','args':{'agent_id':tool[_0x418a99(-_0x43a3aa._0x20c31b,-0x157)][_0x1571a7(0x60,0x4d)]()['describe'](_0x226a60[_0x1571a7(_0x43a3aa._0x2790ff,0x74)]),'operation':tool['schema'][_0x1571a7(0x2d,_0x43a3aa._0x30ada8)]()['describe']('当前操作描述(如\x22分'+'析需求文档\x22)'),'skill':tool[_0x1571a7(0x78,0x49)][_0x418a99(-_0x43a3aa._0x4c2cb8,-0x124)]()[_0x1571a7(0x65,_0x43a3aa._0xe19729)](_0x1571a7(0x78,0x6e)+_0x1571a7(0xc2,_0x43a3aa._0x5594da)+_0x1571a7(0x98,_0x43a3aa._0x10decd))},async 'execute'(_0x4fe5a4){function _0x56f3dc(_0x5983a3,_0x4ed247){return _0x1571a7(_0x5983a3,_0x4ed247-0x30f);}function _0x23d12e(_0x200555,_0x2fd141){return _0x1571a7(_0x200555,_0x2fd141-0x282);}try{return await _0xd9f808[_0x56f3dc(_0x114b5e._0xa1cc9a,_0x114b5e._0x2ca3ca)+_0x56f3dc(0x35a,_0x114b5e._0x1d8b70)](_0x57e7c7,_0x4fe5a4['agent_id'],_0x4fe5a4['operation'],_0x4fe5a4[_0x23d12e(0x2a9,0x2bb)]);}catch(_0x196579){return _0x23d12e(_0x114b5e._0x2716c8,_0x114b5e._0x136c52)+(_0x226a60[_0x23d12e(_0x114b5e._0x579e6d,0x2f9)](_0x196579,Error)?_0x196579[_0x23d12e(0x323,_0x114b5e._0x59b4ed)]:String(_0x196579));}}});}function createRegisterAgentTool(_0x9edc8f){const _0x5abf56={_0xe06f5c:0x22c,_0x23f37d:0x553,_0x39cf9b:0x58f,_0x5419b5:0x568,_0x4522fe:0x549,_0x3723da:0x551,_0x1f400e:0x515,_0x28445f:0x1c5,_0x1f12c6:0x4ea,_0x22a3aa:0x1fc,_0x5ec867:0x1d2,_0x34a85f:0x521,_0x4f0d4e:0x544,_0x418737:0x1d8,_0x5b6c4b:0x1c3,_0x1f7d15:0x51d,_0x397cb3:0x528,_0xf0eb9c:0x254,_0x54ec06:0x209,_0x5a0bfc:0x208,_0x55a1bf:0x1ed,_0x418c00:0x204,_0xe5b782:0x1f1,_0x463603:0x213,_0x53a700:0x234,_0x24aec4:0x254},_0xc4c51f={_0x334aab:0x407,_0xb6ed74:0x40c,_0xfd4342:0x419,_0x97f0e3:0x3e8},_0xd9ef42={};_0xd9ef42[_0x210306(0x209,_0x5abf56._0xe06f5c)]=_0x1b54cb(_0x5abf56._0x23f37d,_0x5abf56._0x39cf9b)+_0x1b54cb(_0x5abf56._0x5419b5,0x54e);function _0x1b54cb(_0x5b8a03,_0x2df199){return _0x3a4e(_0x5b8a03-0x341,_0x2df199);}_0xd9ef42[_0x1b54cb(0x564,_0x5abf56._0x4522fe)]=_0x1b54cb(_0x5abf56._0x3723da,0x580)+_0x1b54cb(_0x5abf56._0x1f400e,0x53e);function _0x210306(_0x22d0bc,_0x37fbff){return _0x3a4e(_0x22d0bc-0x11,_0x37fbff);}const _0x508ab5=_0xd9ef42,_0x165ef9=getStateFilePath(_0x9edc8f);return tool({'description':_0x1b54cb(0x526,0x530)+_0x210306(0x1f8,_0x5abf56._0x28445f)+'\x20状态系统。\x0a用于并'+_0x1b54cb(0x511,0x532)+_0x1b54cb(0x50f,_0x5abf56._0x1f12c6)+_0x210306(_0x5abf56._0x22a3aa,_0x5abf56._0x5ec867),'args':{'agent_id':tool['schema'][_0x1b54cb(_0x5abf56._0x34a85f,_0x5abf56._0x4f0d4e)]()['describe'](_0x210306(_0x5abf56._0x418737,_0x5abf56._0x5b6c4b)),'parent_id':tool[_0x1b54cb(_0x5abf56._0x1f7d15,_0x5abf56._0x397cb3)]['string']()[_0x210306(0x230,_0x5abf56._0xf0eb9c)]()['describe'](_0x508ab5[_0x210306(_0x5abf56._0x54ec06,_0x5abf56._0x5a0bfc)]),'phase':tool[_0x210306(_0x5abf56._0x55a1bf,_0x5abf56._0x418c00)][_0x210306(_0x5abf56._0xe5b782,0x1bb)]()['optional']()[_0x210306(_0x5abf56._0x463603,0x21d)](_0x508ab5[_0x210306(_0x5abf56._0x53a700,_0x5abf56._0x24aec4)])},async 'execute'(_0x175149){function _0x273c0a(_0x5abb06,_0x368579){return _0x1b54cb(_0x5abb06- -0x163,_0x368579);}function _0x434797(_0x459707,_0x472401){return _0x210306(_0x459707-0x232,_0x472401);}try{return await _0xd9f808[_0x434797(_0xc4c51f._0x334aab,0x43e)+'ent'](_0x165ef9,_0x175149['agent_id'],{'parentId':_0x175149['parent_id'],'phase':_0x175149[_0x434797(_0xc4c51f._0xb6ed74,_0xc4c51f._0xfd4342)]});}catch(_0x3ff92c){return _0x273c0a(0x3fb,_0xc4c51f._0x97f0e3)+_0x273c0a(0x3b3,0x3ed)+(_0x3ff92c instanceof Error?_0x3ff92c[_0x434797(0x45b,0x45f)]:String(_0x3ff92c));}}});}function createDeregisterAgentTool(_0x46b661){const _0x4ba25d={_0x19e668:0x53d,_0x175ea5:0x1cc,_0xf10e15:0x14c,_0x512fee:0x55f,_0x25a9b7:0x16e,_0x5a0587:0x18a,_0x2ce411:0x186,_0xfe356e:0x17e},_0x4e3886={_0x23f25d:0x4aa,_0x3d0aca:0x49c,_0x5cfa36:0xcc,_0x4239a8:0xa7},_0x237712={_0x5ce6a1:0x64a},_0x5c37e6={_0xcc1878:0x366},_0x4a8cd8={_0x5bd567:0x33f},_0x4bdc80={'DJQUg':function(_0x2f5d87,_0x243393){return _0x2f5d87 instanceof _0x243393;},'qZTDO':function(_0x61c1a2,_0x1f1b46){return _0x61c1a2(_0x1f1b46);}};function _0x1bf65a(_0x3c8c38,_0x50a494){return _0x3a4e(_0x50a494-_0x4a8cd8._0x5bd567,_0x3c8c38);}const _0x14a695=getStateFilePath(_0x46b661);function _0x44e789(_0x39b093,_0xf6bb9a){return _0x3a4e(_0xf6bb9a- -_0x5c37e6._0xcc1878,_0x39b093);}return _0x4bdc80[_0x1bf65a(_0x4ba25d._0x19e668,0x560)](tool,{'description':_0x44e789(-_0x4ba25d._0x175ea5,-0x1b2)+_0x44e789(-0x173,-_0x4ba25d._0xf10e15)+'nt。\x0a移除\x20Age'+'nt\x20记录,同时更新'+_0x44e789(-0x12f,-0x144)+_0x1bf65a(0x535,_0x4ba25d._0x512fee),'args':{'agent_id':tool[_0x44e789(-_0x4ba25d._0x25a9b7,-_0x4ba25d._0x5a0587)][_0x44e789(-0x1a6,-_0x4ba25d._0x2ce411)]()[_0x44e789(-0x132,-0x164)]('要注销的\x20Agent'+_0x44e789(-0x18a,-_0x4ba25d._0xfe356e))},async 'execute'(_0x53a547){function _0x83f572(_0xdb2e8c,_0x1123f7){return _0x44e789(_0xdb2e8c,_0x1123f7-0xf5);}function _0x55bac9(_0x189c47,_0x43403f){return _0x44e789(_0x43403f,_0x189c47-_0x237712._0x5ce6a1);}try{return await _0xd9f808[_0x55bac9(_0x4e3886._0x23f25d,0x4d9)+_0x55bac9(_0x4e3886._0x3d0aca,0x470)](_0x14a695,_0x53a547[_0x83f572(-_0x4e3886._0x5cfa36,-0xac)]);}catch(_0x477950){return'❌\x20注销\x20Agent'+_0x83f572(-_0x4e3886._0x4239a8,-0x9c)+(_0x4bdc80['DJQUg'](_0x477950,Error)?_0x477950[_0x55bac9(0x4fc,0x4dc)]:_0x4bdc80['qZTDO'](String,_0x477950));}}});}function createProgressTool(_0xdc3db0){const _0x2938e6={_0x5669d6:0x16d,_0x4c55e5:0x166,_0x5935ef:0x3f8,_0x5d6fb0:0x3c7,_0x34b968:0x3d4},_0x366044={_0x1390d4:0x4c,_0x8022f0:0x17,_0x2a9183:0x60,_0x14e16e:0x2f,_0x48f534:0x6f,_0xacdec9:0x15,_0x2e02ee:0x7,_0x224bb2:0x4e,_0x4ab13f:0x4},_0x26769b={_0x20aad6:0x1cd},_0x1f29bd={_0x5f5069:0x75},_0x1205f4={'MuehG':function(_0x86a2a,_0x1a5f3a){return _0x86a2a!==_0x1a5f3a;},'rUrdn':_0xc5cabc(0x39a,0x364),'tLPXB':function(_0x110047,_0x348e3c){return _0x110047 instanceof _0x348e3c;},'froNP':function(_0x224057,_0x2fd923){return _0x224057(_0x2fd923);}};function _0x25b2d0(_0x187143,_0x6be69a){return _0x3a4e(_0x187143- -_0x1f29bd._0x5f5069,_0x6be69a);}function _0xc5cabc(_0x121297,_0x296843){return _0x3a4e(_0x121297-_0x26769b._0x20aad6,_0x296843);}const _0xc9c99c=getStateFilePath(_0xdc3db0);return _0x1205f4[_0x25b2d0(0x188,_0x2938e6._0x5669d6)](tool,{'description':_0x25b2d0(0x16a,_0x2938e6._0x4c55e5)+'\x20项目详细进度。\x0a包'+_0xc5cabc(0x3bf,_0x2938e6._0x5935ef)+_0x25b2d0(0x162,_0x2938e6._0x5669d6)+_0xc5cabc(_0x2938e6._0x5d6fb0,_0x2938e6._0x34b968),'args':{},async 'execute'(){const _0x160e3f={_0xd9bd69:0x1a7};function _0x3f7dfc(_0x1b7565,_0x2fcd88){return _0xc5cabc(_0x2fcd88- -0x337,_0x1b7565);}function _0x5dddd9(_0x5eded8,_0x1a1a41){return _0x25b2d0(_0x1a1a41- -_0x160e3f._0xd9bd69,_0x5eded8);}try{return _0x1205f4[_0x5dddd9(-_0x366044._0x1390d4,-_0x366044._0x8022f0)]('ADSBk',_0x1205f4[_0x5dddd9(-0x48,-0x63)])?await _0xd9f808[_0x5dddd9(-0x64,-_0x366044._0x2a9183)+'ss'](_0xc9c99c):_0x26e58(_0x1009d5,_0x5dddd9(-0x3e,-_0x366044._0x14e16e),_0x5dddd9(-_0x366044._0x48f534,-0x3e));}catch(_0x3fc627){return _0x5dddd9(_0x366044._0xacdec9,-_0x366044._0x2e02ee)+(_0x1205f4[_0x5dddd9(-_0x366044._0x224bb2,-0x5b)](_0x3fc627,Error)?_0x3fc627[_0x5dddd9(0xf,-_0x366044._0x4ab13f)]:_0x1205f4[_0x3f7dfc(0x67,0x93)](String,_0x3fc627));}}});}function createQuickTool(_0x4970d9){const _0x3bc6dc={_0x41aa1e:0x463,_0x227415:0x479,_0x12af85:0x4a4,_0x1e563c:0x215,_0x2966d9:0x415,_0x498d49:0x42b,_0x53f16f:0x1ca},_0x4ff986={_0x2d1daa:0x92,_0xcb5499:0x263,_0x348e33:0x291,_0x49914d:0x86,_0x41e871:0xa2,_0x2fa9fa:0x271},_0x38bfd6={_0xc90910:0x21};function _0x3c443c(_0x52011,_0x21252b){return _0x3a4e(_0x52011-_0x38bfd6._0xc90910,_0x21252b);}function _0x9d7af9(_0x2be759,_0x169007){return _0x3a4e(_0x2be759-0x25b,_0x169007);}const _0x226326={'BeXXD':function(_0x18e76c,_0x216725){return _0x18e76c instanceof _0x216725;},'ZAsVL':function(_0x1bb87c,_0x3b3a9c){return _0x1bb87c(_0x3b3a9c);},'jOiZA':_0x9d7af9(_0x3bc6dc._0x41aa1e,0x46a)},_0xa70c80=getStateFilePath(_0x4970d9);return _0x226326[_0x9d7af9(_0x3bc6dc._0x227415,0x483)](tool,{'description':_0x9d7af9(0x46a,_0x3bc6dc._0x12af85)+_0x3c443c(0x211,0x1e6)+_0x3c443c(_0x3bc6dc._0x1e563c,0x1ec)+_0x9d7af9(0x43f,_0x3bc6dc._0x2966d9)+_0x9d7af9(0x41e,_0x3bc6dc._0x498d49),'args':{'task':tool['schema'][_0x3c443c(0x201,_0x3bc6dc._0x53f16f)]()[_0x9d7af9(0x45d,0x464)](_0x226326[_0x9d7af9(0x42d,0x45b)])},async 'execute'(_0x5a0b48){const _0x100510={_0x1dc690:0x2db};function _0x1514fc(_0x3c88b8,_0xe530ce){return _0x3c443c(_0xe530ce- -_0x100510._0x1dc690,_0x3c88b8);}function _0x4360b3(_0x433736,_0x195c23){return _0x3c443c(_0x433736-0x34,_0x195c23);}try{return await _0xd9f808['quickTask'](_0xa70c80,_0x5a0b48[_0x1514fc(-_0x4ff986._0x2d1daa,-0xb7)]);}catch(_0x2aa25d){return _0x1514fc(-0x116,-0xfd)+(_0x226326[_0x4360b3(_0x4ff986._0xcb5499,_0x4ff986._0x348e33)](_0x2aa25d,Error)?_0x2aa25d[_0x1514fc(-_0x4ff986._0x49914d,-_0x4ff986._0x41e871)]:_0x226326[_0x4360b3(0x273,_0x4ff986._0x2fa9fa)](String,_0x2aa25d));}}});}const SpecOpsPlugin=async _0x1b18f7=>{const _0x428389={_0x3b6cab:0xee,_0xa495a3:0x141,_0x3a8a3f:0x112,_0x3e2739:0x109,_0x276a45:0xf9,_0x968cc0:0x2dd,_0x57d1ac:0x2a3},_0x5d459f={'xxnIQ':'specops','xSdml':function(_0x153157,_0xe7d5b9){return _0x153157(_0xe7d5b9);},'oZTUC':function(_0x2fdeaa,_0x299337){return _0x2fdeaa(_0x299337);}};function _0x1c30d0(_0xb40da4,_0x8b9950){return _0x3a4e(_0x8b9950- -0xdd,_0xb40da4);}function _0x53be8a(_0x209d98,_0x290858){return _0x3a4e(_0x290858-0xcd,_0x209d98);}const _0x5316c2=_0x1b18f7[_0x1c30d0(_0x428389._0x3b6cab,0x121)];return{'name':_0x5d459f[_0x1c30d0(0x112,0x137)],'tool':{'specops_status':_0x5d459f[_0x1c30d0(_0x428389._0xa495a3,_0x428389._0x3a8a3f)](createStatusTool,_0x5316c2),'specops_advance':createAdvanceTool(_0x5316c2),'specops_new_project':_0x5d459f[_0x1c30d0(_0x428389._0x3e2739,_0x428389._0x276a45)](createNewProjectTool,_0x5316c2),'specops_update_operation':createUpdateOperationTool(_0x5316c2),'specops_register_agent':_0x5d459f['xSdml'](createRegisterAgentTool,_0x5316c2),'specops_deregister_agent':createDeregisterAgentTool(_0x5316c2),'specops_progress':createProgressTool(_0x5316c2),'specops_quick':createQuickTool(_0x5316c2),'specops_analyze_requirements':_0x5d459f[_0x53be8a(_0x428389._0x968cc0,_0x428389._0x57d1ac)](createAnalyzeRequirementsTool,_0x5316c2)},'event':async _0x3ef8b1=>{}};};export default SpecOpsPlugin;
1
+ (function(_0x429a86,_0x1fa353){const _0x598378={_0x592ee4:0x3d6,_0x55868e:0xc3,_0x2a4f37:0xb7,_0x274da3:0x3f3,_0x6affe0:0x427,_0x4f6f67:0x3d0,_0x106f08:0x3fb,_0x37eddb:0x443,_0xf51695:0x3bd};function _0x4e21a4(_0x258354,_0x3642fb){return _0x235d(_0x258354- -0xad,_0x3642fb);}function _0x27e21c(_0x5e6dfc,_0x47f218){return _0x235d(_0x47f218-0x274,_0x5e6dfc);}const _0x571e68=_0x429a86();while(!![]){try{const _0x382d1d=parseInt(_0x27e21c(0x3f3,_0x598378._0x592ee4))/(-0x1*0x2416+-0x707*-0x5+0xf4)+-parseInt(_0x4e21a4(_0x598378._0x55868e,_0x598378._0x2a4f37))/(-0x21a6+0x1d40+0x11a*0x4)*(parseInt(_0x27e21c(0x3cb,_0x598378._0x274da3))/(0xda2+0x247f+-0x321e))+-parseInt(_0x27e21c(0x3f8,0x410))/(-0x3f+-0x35c*-0x7+-0x1741*0x1)*(parseInt(_0x4e21a4(0xf8,0xc3))/(-0x38b+-0x1831*-0x1+-0x1*0x14a1))+parseInt(_0x27e21c(0x44b,_0x598378._0x6affe0))/(-0x119*-0x2+0x1c*-0xe5+0x16e0)+-parseInt(_0x27e21c(0x3fe,0x420))/(0xb49*0x3+-0x2c4*-0x7+-0x3530)+-parseInt(_0x27e21c(_0x598378._0x4f6f67,_0x598378._0x106f08))/(0x1*0x1fa1+-0x1*-0x6aa+-0x2643)+parseInt(_0x27e21c(_0x598378._0x37eddb,0x41c))/(-0x1a5b+0x99e*0x4+-0xc14)*(parseInt(_0x27e21c(_0x598378._0xf51695,0x3fe))/(0x3*0x9c7+-0x1*-0x2383+0x46*-0xed));if(_0x382d1d===_0x1fa353)break;else _0x571e68['push'](_0x571e68['shift']());}catch(_0x2335f2){_0x571e68['push'](_0x571e68['shift']());}}}(_0x5986,-0xa538a+0x5*-0x6a37+0x12af69));function _0x235d(_0x17a103,_0x27fce6){_0x17a103=_0x17a103-(-0x18*0x15e+0x1661*-0x1+0x3886);const _0x58e817=_0x5986();let _0x3cddc8=_0x58e817[_0x17a103];if(_0x235d['GmGpFt']===undefined){var _0x5c1562=function(_0x69080b){const _0x3353e9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xa847c2='',_0x36cd2b='';for(let _0x4fd475=-0x26f2+-0x1*-0x1ba7+0x19d*0x7,_0x3acd13,_0x35d17c,_0x5a418d=0x1*0x1dff+0x1787+-0x3586;_0x35d17c=_0x69080b['charAt'](_0x5a418d++);~_0x35d17c&&(_0x3acd13=_0x4fd475%(-0x22*-0xd6+-0x2024+-0x4*-0xef)?_0x3acd13*(0x378+0x10ba+-0x1*0x13f2)+_0x35d17c:_0x35d17c,_0x4fd475++%(0x19f1+-0x11cf+-0x81e))?_0xa847c2+=String['fromCharCode'](0x1635+0x1274*0x1+0x2*-0x13d5&_0x3acd13>>(-(-0x2256+0x1a74+0x7e4)*_0x4fd475&-0x104a+-0xd21+0x1d71)):0x14f7*-0x1+-0x1*-0x2273+0x6be*-0x2){_0x35d17c=_0x3353e9['indexOf'](_0x35d17c);}for(let _0x11a4c3=-0xda2+0x263+-0xb3f*-0x1,_0x4d617c=_0xa847c2['length'];_0x11a4c3<_0x4d617c;_0x11a4c3++){_0x36cd2b+='%'+('00'+_0xa847c2['charCodeAt'](_0x11a4c3)['toString'](-0x1*0x2b3+0xa60*0x3+0x89*-0x35))['slice'](-(0x2396*-0x1+-0x527*0x6+-0x2*-0x2141));}return decodeURIComponent(_0x36cd2b);};_0x235d['ERdrEZ']=_0x5c1562,_0x235d['YmcXht']={},_0x235d['GmGpFt']=!![];}const _0x355052=_0x58e817[-0x26eb+-0x5b*-0x17+0x1ebe],_0x5b01c3=_0x17a103+_0x355052,_0x3fa2cf=_0x235d['YmcXht'][_0x5b01c3];return!_0x3fa2cf?(_0x3cddc8=_0x235d['ERdrEZ'](_0x3cddc8),_0x235d['YmcXht'][_0x5b01c3]=_0x3cddc8):_0x3cddc8=_0x3fa2cf,_0x3cddc8;}import{tool}from'@opencode-ai/plugin';import{resolve}from'node:path';import*as _0x39c928 from'./plugin-engine.js';import{createAnalyzeRequirementsTool}from'./requirement-analysis/tools/analyze-requirements.js';function getStateFilePath(_0x8d918c){const _0x37824a={_0x91a76c:0x368,_0x430f3b:0x390,_0x2dee9b:0x35,_0x20c372:0x46,_0x49640d:0x343,_0x11881b:0x317},_0x3d23a2={_0x5f3e24:0x167};function _0x5a42ed(_0x1c6167,_0x4c4ce6){return _0x235d(_0x1c6167-0x18e,_0x4c4ce6);}function _0x509b23(_0x25d941,_0x3c2b59){return _0x235d(_0x25d941- -_0x3d23a2._0x5f3e24,_0x3c2b59);}const _0x4933d0={'mvQBW':function(_0x21cc83,_0x11f247,_0x85ee5d,_0x2b23ec){return _0x21cc83(_0x11f247,_0x85ee5d,_0x2b23ec);},'eiDFs':_0x5a42ed(_0x37824a._0x91a76c,_0x37824a._0x430f3b)};return _0x4933d0[_0x509b23(0x19,_0x37824a._0x2dee9b)](resolve,_0x8d918c,_0x509b23(0x2d,_0x37824a._0x20c372),_0x4933d0[_0x5a42ed(_0x37824a._0x49640d,_0x37824a._0x11881b)]);}function createStatusTool(_0xd18cc5){const _0x1360bc={_0x1d6365:0x248,_0x3dceff:0x224,_0x438a80:0x235},_0x3359f8={_0x3afef4:0x344,_0x59d247:0x1ab},_0x36b62f={_0x57fa5c:0x1bb},_0x15a3cc={_0x2dc951:0x94},_0x4ad48b={_0x1ea86f:0x14};function _0x128218(_0x38b92e,_0xfc538){return _0x235d(_0x38b92e-_0x4ad48b._0x1ea86f,_0xfc538);}function _0x5a4516(_0x5d198f,_0x124220){return _0x235d(_0x124220-_0x15a3cc._0x2dc951,_0x5d198f);}const _0x43e3ea={'BqYyN':function(_0x30c738,_0xaa5d0){return _0x30c738(_0xaa5d0);}},_0x5aa73c=_0x43e3ea['BqYyN'](getStateFilePath,_0xd18cc5);return tool({'description':_0x128218(0x18a,0x1b7)+_0x5a4516(_0x1360bc._0x1d6365,_0x1360bc._0x3dceff)+'示项目名称、当前阶段'+_0x5a4516(0x216,_0x1360bc._0x438a80)+'的状态表格。','args':{},async 'execute'(){function _0xb555c0(_0x3893fa,_0x30715c){return _0x128218(_0x30715c-_0x36b62f._0x57fa5c,_0x3893fa);}function _0x2c1475(_0x386eb7,_0xb2ea01){return _0x128218(_0x386eb7- -0x36a,_0xb2ea01);}try{return await _0x39c928[_0xb555c0(0x305,_0x3359f8._0x3afef4)](_0x5aa73c);}catch(_0x93f0f5){return'❌\x20获取状态失败:\x20'+(_0x93f0f5 instanceof Error?_0x93f0f5['message']:_0x43e3ea[_0x2c1475(-_0x3359f8._0x59d247,-0x1a3)](String,_0x93f0f5));}}});}function createAdvanceTool(_0x3e08f9){const _0x517d66={_0x20a1e1:0x5b,_0x5064ac:0x41,_0x4a31a2:0xac,_0x88a9c2:0x34b,_0x30b5a9:0x36,_0xd5537e:0x62,_0x5a714b:0xd0,_0x390088:0x3d2,_0xa24c5c:0x92,_0x4e61e9:0x89,_0x511364:0x38c,_0xfbfb68:0x36f,_0xb6b9db:0xa7,_0x4089b8:0xbc,_0x5b0177:0x90,_0x33b948:0xbb,_0x20bb6c:0xb3,_0xb731e8:0x88,_0x3e2ceb:0xa6,_0xd36c0e:0x385},_0xdd4c44={_0x5e4372:0x2e2,_0x2dac44:0x2cb,_0x415514:0x313,_0x5094c2:0x2b2,_0x661d62:0x20,_0x5c7263:0x35,_0x328fa2:0x2ac},_0x583d22={_0x15f453:0x1d8},_0x436858={_0x743e3f:0x213},_0x3019ca={};_0x3019ca['MfTXY']=_0x20a5c0(-0x7f,-0xae),_0x3019ca['Dtusp']='state.json';function _0x20a5c0(_0x17ce6b,_0x5b72da){return _0x235d(_0x17ce6b- -_0x436858._0x743e3f,_0x5b72da);}_0x3019ca['YxAkv']=function(_0x5dd370,_0x4bd322){return _0x5dd370!==_0x4bd322;},_0x3019ca[_0x20a5c0(-_0x517d66._0x20a1e1,-0x53)]=_0x20a5c0(-_0x517d66._0x5064ac,-0x68);function _0x3544f9(_0x1b837e,_0x11a98c){return _0x235d(_0x11a98c-_0x583d22._0x15f453,_0x1b837e);}_0x3019ca[_0x20a5c0(-0x9b,-_0x517d66._0x4a31a2)]=function(_0x31f45b,_0x4f6787){return _0x31f45b instanceof _0x4f6787;},_0x3019ca['ffLeo']=_0x3544f9(0x34c,_0x517d66._0x88a9c2)+_0x20a5c0(-_0x517d66._0x30b5a9,-_0x517d66._0xd5537e)+_0x20a5c0(-0xae,-_0x517d66._0x5a714b);const _0x2d9130=_0x3019ca,_0x49f30a=getStateFilePath(_0x3e08f9);return tool({'description':_0x3544f9(_0x517d66._0x390088,0x3ab)+'\x20阶段。将指定\x20Ag'+_0x20a5c0(-0xb8,-0x90)+_0x20a5c0(-0x7d,-0x61)+_0x20a5c0(-_0x517d66._0xa24c5c,-_0x517d66._0x4e61e9)+'段序列:\x20讨论\x20→\x20'+'规划\x20→\x20执行\x20→\x20'+_0x3544f9(_0x517d66._0x511364,_0x517d66._0xfbfb68)+_0x20a5c0(-_0x517d66._0xb6b9db,-0x85),'args':{'agent_id':tool['schema'][_0x20a5c0(-_0x517d66._0x4089b8,-_0x517d66._0x5b0177)]()[_0x20a5c0(-_0x517d66._0x33b948,-_0x517d66._0x20bb6c)]()[_0x20a5c0(-_0x517d66._0xb731e8,-_0x517d66._0x3e2ceb)](_0x2d9130[_0x3544f9(0x350,_0x517d66._0xd36c0e)])},async 'execute'(_0x29b473){function _0xd87b7c(_0x1cd73d,_0x5d737d){return _0x20a5c0(_0x5d737d-0x326,_0x1cd73d);}function _0x33ffad(_0x24ee3d,_0x5b9056){return _0x20a5c0(_0x5b9056-0x37,_0x24ee3d);}try{return await _0x39c928['advancePha'+'se'](_0x49f30a,_0x29b473['agent_id']);}catch(_0x4089a2){return _0x2d9130[_0x33ffad(0x1,-0x1b)](_0x2d9130[_0xd87b7c(_0xdd4c44._0x5e4372,_0xdd4c44._0x2dac44)],_0xd87b7c(_0xdd4c44._0x415514,0x2e5))?_0x4c2321(_0x53bfb3,_0x2d9130[_0xd87b7c(0x2e6,_0xdd4c44._0x5094c2)],_0x2d9130[_0x33ffad(-_0xdd4c44._0x661d62,-_0xdd4c44._0x5c7263)]):'❌\x20推进阶段失败:\x20'+(_0x2d9130['PnZmN'](_0x4089a2,Error)?_0x4089a2[_0xd87b7c(_0xdd4c44._0x328fa2,0x2e0)]:String(_0x4089a2));}}});}function createNewProjectTool(_0x297f00){const _0x192492={_0x57dbd9:0x290,_0x1fb509:0x292,_0x336bb3:0x2c2,_0x5bcc73:0x2c9,_0x253b3d:0x28c,_0x33b939:0x195,_0x4863e3:0x168,_0x20e38f:0x133,_0x46096e:0x177,_0x3ac1d1:0x1b5,_0x5128f3:0x11d},_0x3b6eca={_0x45646a:0x18d,_0x1ec0d6:0x1ba,_0x13ac7a:0x1f2,_0x488882:0x22b,_0x18aae1:0x17a,_0x294a32:0x154},_0x4d7658={_0x3351e7:0x30e},_0x33f3a2={_0x5745b4:0x2d6};function _0x45d9df(_0x4542ed,_0x1563bd){return _0x235d(_0x1563bd-0x129,_0x4542ed);}function _0x10427f(_0x284346,_0x490e9e){return _0x235d(_0x490e9e- -_0x33f3a2._0x5745b4,_0x284346);}const _0x38572a={'uurVk':function(_0xdb99b0,_0x1926f2){return _0xdb99b0 instanceof _0x1926f2;},'YAGmw':function(_0x429867,_0x376607){return _0x429867(_0x376607);},'xplCA':function(_0x52a9f5,_0x2a7676){return _0x52a9f5===_0x2a7676;},'YsDGR':'kLhic','ClWHm':function(_0x2d3a01,_0x5e5b2e){return _0x2d3a01(_0x5e5b2e);}},_0x545f90=getStateFilePath(_0x297f00);return _0x38572a[_0x45d9df(_0x192492._0x57dbd9,_0x192492._0x1fb509)](tool,{'description':_0x45d9df(_0x192492._0x336bb3,0x285)+_0x45d9df(_0x192492._0x5bcc73,_0x192492._0x253b3d)+_0x10427f(-0xd5,-0x102)+_0x10427f(-_0x192492._0x33b939,-_0x192492._0x4863e3)+_0x10427f(-_0x192492._0x20e38f,-0x141)+'。','args':{'project_name':tool[_0x10427f(-0x1af,-_0x192492._0x46096e)][_0x10427f(-_0x192492._0x3ac1d1,-0x17f)]()[_0x10427f(-0x149,-0x14b)](_0x10427f(-0x115,-_0x192492._0x5128f3))},async 'execute'(_0x470b9a){const _0x4ddeae={_0x4b50ca:0x1b},_0x1869e9={_0x352a1e:0x1d3},_0x3c1b53={_0x3dcedf:0x3cc},_0x318fe2={'TLDhP':function(_0x3f1c6d,_0x1fb653){const _0x85c9d8={_0x4b65e5:0x23b};function _0x2287ae(_0x263cc2,_0x120ef2){return _0x235d(_0x263cc2-_0x85c9d8._0x4b65e5,_0x120ef2);}return _0x38572a[_0x2287ae(0x3aa,_0x3c1b53._0x3dcedf)](_0x3f1c6d,_0x1fb653);},'DpBLl':function(_0x200489,_0x1bc077){function _0x3d2330(_0xcf8bfc,_0x4b5ba9){return _0x235d(_0x4b5ba9-0x61,_0xcf8bfc);}return _0x38572a[_0x3d2330(_0x1869e9._0x352a1e,0x1ca)](_0x200489,_0x1bc077);}};function _0x1674fb(_0xf7b9a9,_0x21a810){return _0x10427f(_0xf7b9a9,_0x21a810- -_0x4ddeae._0x4b50ca);}function _0x3d95fb(_0x1f4a58,_0x4a5964){return _0x10427f(_0x4a5964,_0x1f4a58-_0x4d7658._0x3351e7);}try{return _0x38572a[_0x1674fb(-0x12c,-0x153)]('kLhic',_0x38572a['YsDGR'])?await _0x39c928[_0x3d95fb(_0x3b6eca._0x45646a,0x191)](_0x545f90,_0x470b9a[_0x3d95fb(_0x3b6eca._0x1ec0d6,0x181)+'me']):_0x3d95fb(0x1d5,0x1af)+(_0x318fe2[_0x3d95fb(0x1bd,0x17c)](_0x4635df,_0x146dc6)?_0x4e1ab4['message']:_0x318fe2[_0x3d95fb(_0x3b6eca._0x13ac7a,_0x3b6eca._0x488882)](_0x598f15,_0x31f157));}catch(_0x5b64c7){return _0x1674fb(-_0x3b6eca._0x18aae1,-_0x3b6eca._0x294a32)+(_0x38572a['uurVk'](_0x5b64c7,Error)?_0x5b64c7['message']:_0x38572a['ClWHm'](String,_0x5b64c7));}}});}function createUpdateOperationTool(_0x5c6f89){const _0x3c9146={_0x55a5d5:0x11c,_0x5b55fe:0x20a,_0x1764c8:0x128,_0x21918b:0x16a,_0x370826:0x1c4,_0x4e3583:0x1d8,_0x20a0b4:0x22c,_0x11006d:0x1f2,_0x47c3b5:0x20e,_0x5a0d50:0x13a,_0x33c8d1:0x14f,_0x1d1448:0x14e,_0x110015:0x1ad,_0x527679:0x195,_0x118559:0x181,_0x706bf:0x1a9,_0x24a445:0x1a6,_0x4e877f:0xf8,_0xa4df03:0x181,_0x73fe65:0x1a3,_0x38bf15:0x1bc,_0x1f4c63:0x123},_0x3cf3f1={_0x20e7f7:0x24b,_0x4d61c0:0x263,_0x1a4fbe:0x229,_0x77c85d:0x262,_0x20766c:0x28d,_0x3cb929:0x275,_0x1891ef:0x4b,_0x12aeaa:0x60,_0x59ec8:0xb3,_0x1d6058:0xbb,_0x39e60b:0x61,_0x48c3a1:0x71,_0x18738d:0x30,_0x512717:0x225,_0x21563c:0x226,_0x5716d4:0x6c,_0x28496f:0x8e,_0x16186e:0x20f},_0x5db208={_0x27f37c:0x93},_0x536343={_0x2fbb14:0x3fe},_0x547d34={_0x6d6f93:0x22};function _0x27a07c(_0x2196c6,_0x174b66){return _0x235d(_0x2196c6-_0x547d34._0x6d6f93,_0x174b66);}function _0x442dbd(_0x29901f,_0x531cab){return _0x235d(_0x29901f- -0x2ae,_0x531cab);}const _0x5c0c19={'TgvVq':function(_0x543e3b,_0x42d6cb){return _0x543e3b instanceof _0x42d6cb;},'PNoZK':function(_0xc4a950,_0x3aca12){return _0xc4a950!==_0x3aca12;},'yvRgb':_0x442dbd(-0x100,-_0x3c9146._0x55a5d5),'XnHBw':_0x27a07c(0x1f1,_0x3c9146._0x5b55fe),'tkDsx':function(_0x3d1daf,_0x4c47d2){return _0x3d1daf===_0x4c47d2;},'FyYyA':_0x442dbd(-0x10e,-0x14e),'VPUky':function(_0x559fc2,_0x3b9603){return _0x559fc2 instanceof _0x3b9603;},'EKINL':function(_0x276e34,_0x50b039){return _0x276e34(_0x50b039);},'JDjel':function(_0x53d438,_0x349ec6){return _0x53d438(_0x349ec6);},'QUAxU':_0x442dbd(-_0x3c9146._0x1764c8,-_0x3c9146._0x21918b)},_0x25cd28=_0x5c0c19[_0x27a07c(_0x3c9146._0x370826,_0x3c9146._0x4e3583)](getStateFilePath,_0x5c6f89);return tool({'description':_0x27a07c(0x1fe,_0x3c9146._0x20a0b4)+_0x27a07c(_0x3c9146._0x11006d,_0x3c9146._0x47c3b5)+'用的工具/技能。\x0a用'+_0x442dbd(-0xe2,-0x114)+_0x442dbd(-_0x3c9146._0x5a0d50,-0x12e),'args':{'agent_id':tool[_0x442dbd(-_0x3c9146._0x33c8d1,-0x13c)][_0x442dbd(-0x157,-_0x3c9146._0x1d1448)]()[_0x27a07c(_0x3c9146._0x110015,_0x3c9146._0x527679)](_0x5c0c19['QUAxU']),'operation':tool[_0x27a07c(_0x3c9146._0x118559,_0x3c9146._0x706bf)]['string']()[_0x27a07c(0x1ad,0x197)](_0x27a07c(0x19f,_0x3c9146._0x24a445)+_0x442dbd(-0xe9,-_0x3c9146._0x4e877f)),'skill':tool[_0x27a07c(_0x3c9146._0xa4df03,_0x3c9146._0x73fe65)][_0x27a07c(0x179,_0x3c9146._0x38bf15)]()[_0x442dbd(-_0x3c9146._0x1f4c63,-0xf7)]('当前使用的工具/技能'+_0x27a07c(0x17c,0x1a3)+_0x442dbd(-_0x3c9146._0x55a5d5,-0x106))},async 'execute'(_0x452d29){function _0xdd6011(_0x3758d1,_0x31734a){return _0x27a07c(_0x31734a- -_0x536343._0x2fbb14,_0x3758d1);}function _0x1f2022(_0x3ae814,_0x58ccee){return _0x442dbd(_0x58ccee-_0x5db208._0x27f37c,_0x3ae814);}const _0x1d9581={'lyIxO':function(_0x197fdb,_0x1fbdab){return _0x5c0c19['TgvVq'](_0x197fdb,_0x1fbdab);}};if(_0x5c0c19[_0xdd6011(-_0x3cf3f1._0x20e7f7,-0x220)](_0x5c0c19['yvRgb'],_0x5c0c19[_0xdd6011(-0x239,-_0x3cf3f1._0x4d61c0)]))try{return _0x5c0c19[_0x1f2022(-0xfc,-0xbe)](_0xdd6011(-_0x3cf3f1._0x1a4fbe,-_0x3cf3f1._0x77c85d),_0x5c0c19['FyYyA'])?_0xdd6011(-_0x3cf3f1._0x20766c,-_0x3cf3f1._0x3cb929)+_0x1f2022(-_0x3cf3f1._0x1891ef,-_0x3cf3f1._0x12aeaa)+(_0x1d9581[_0x1f2022(-_0x3cf3f1._0x59ec8,-_0x3cf3f1._0x1d6058)](_0x3ee5bc,_0x252dc8)?_0x486e7d[_0x1f2022(-0x9,-0x4e)]:_0x550e87(_0x1f0d23)):await _0x39c928[_0x1f2022(-_0x3cf3f1._0x39e60b,-_0x3cf3f1._0x48c3a1)+_0x1f2022(-0x4f,-0x92)](_0x25cd28,_0x452d29[_0xdd6011(-0x24d,-0x228)],_0x452d29[_0x1f2022(-_0x3cf3f1._0x18738d,-0x5c)],_0x452d29[_0xdd6011(-0x243,-_0x3cf3f1._0x512717)]);}catch(_0x5c4560){return _0xdd6011(-0x26a,-0x265)+(_0x5c0c19[_0xdd6011(-0x234,-_0x3cf3f1._0x21563c)](_0x5c4560,Error)?_0x5c4560['message']:_0x5c0c19['EKINL'](String,_0x5c4560));}else return'❌\x20获取进度失败:\x20'+(_0x5c0c19[_0x1f2022(-_0x3cf3f1._0x5716d4,-_0x3cf3f1._0x28496f)](_0x454d12,_0x5caa08)?_0x4aa986[_0xdd6011(-0x209,-_0x3cf3f1._0x16186e)]:_0x16c2ef(_0x37acdc));}});}function _0x5986(){const _0x1a9e86=['CxvPy2TuyxnR','5PU05PAW5OYh5A6AiefNzw50','ieLe77Yi5lIn5OYh5A6A5yIz6iEQ5yQO','4P2mioIoT+wpLUI/M+w6PUwKSEI0PtOG','BMv3uhjVAMvJDa','ioMHUEEBRUIVPUE7HUI/M+w6PUoaGGRLJiu','C3rYAw5N','B3b0Aw9UywW','5zcR5A6m5OIq5BQM55M+5yIg5Q+u44cb6zI25Q61','5zcn56EW77Yi5AAciMv4CgXV','zw5077Yi5OIw56YS5lIa5lIQ5PYQ5A6m','5yIB5BU65PAW55QeihnWzwnV','DgTeC3G','swH4tee','C2nOzw1H','BhLjEe8','uxzwBLO','nJC3nJK0rg9yu2vM','ChmG6Ag555UU44cc5yID5AEl5yYwia','C3bLy29WCW','6ycj5OUP56YS5lIa5lIQ5PYQ5A6m5OIq55Qe77Yj','CuHVAMi','4P2mioAZQowgJcbbz2vUDa','5lU75yQH44cc','wufhBxC','5yID5AEl6zI25Q6177Yi6BUy6k6KoIbP','DgfZAW','zxrLza','ioEkTUAaGEEZU+E7N+oaGGRNLkJKUO7LUBy','Dgf0zs5QC29U77Ym','DxvYvMS','mMzVz3PPqG','zw94ruO','Bu9vtvq','6kAb5O6O6l+B55QeiefNzw50','DcdMRApLNkJLGzRKU4dKUyJJGii','z2v0u3rHDhvZ','6i635y+wihnWzwnVChm','4P2mioABToAwSoAtJEs9NowKSEI0PtOG','ug5ABu4','wg5iqNC','wufxwNy','4P2mioAoQoI/M+MyTUAUTEwKSEI0PtOG','u0T4reK','5B2t5yMn5Pon5l2C5O+p6l+W77Yi5AAciUwiHG','AKXtD0m','mJm5ntq3m0LsDhr6wG','BxzrqLC','6l+B5yIW5lIl5lIa5lIQ6zI25Q6144cccUMyTG','ChjVAMvJDf9Uyq','rxHJt3i','DMHsu0W','veXeAfa','qwDLBNqGsuq','ndeZote0nhfAqMHorq','B0fHv3q','yxrPB24','mtbkwNvREhC','zgvZy3jPyMu','AK1uEwG','vgD2vNe','BfDtD1i','77Yi5y+V6ycj77Yj','ioMHUEEBRUw9K+wjJEEkTUAaGEoaGGRMMl4','C2HVD1bYB2DYzq','CMvYiU+8Iq','uhn0Awm','lNnWzwnVChm','5yIB5BU65yID5AEliefNzw50','5OIq55QeiefNzw5077Yj5O6O','6AQm6k+biokgKIbJB21WBa','tKzRvxa','ioAZQowgJoIhQUw3SEEAHoEkTUAaGEoaGG','4P2mioIoT+wpLUEkTUAaGEwKSEI0PtOG','q1HeA08','mty4Ahb4zMzW','4P2miowiM+w7UUMHUEEBRUwKSEI0PtOG','EhbSq0e','twzuwfK','zu5XDwi','44cb5OMa5PYjiefNzw50ia','sKrQzwW','zeThEKC','AMHZqw8','nJG3mdbnEvbwuLG','y2HPBgrjzhpJGii','rhr1C3a','otK3nJK3n0j1uwTbvW','sNbMCxO','DxbKyxrLt3bLCG','qNfzEu4','ody4ntz5C1H2DhK','zMzmzw8','z3jHvLO','CgHHC2u','CurSsee','DLbgt0W','zgLYzwn0B3j5','mZe4ntG2mLr5uvfpqG','ywDLBNrFAwq','zwLerNm','vLbvA3K','C2TPBgW','revevxm','6Ag555UU5zcn56EW','rhbctgW','iowKSEI0PtOG','ue5VwKS','5lU75yQH5O+p6l+W','vxDuEM4','B3bLCMf0Aw9U','zgvYzwDPC3rLCG','wxHbA3y','5PE277Ym5Q+p5lIQigfNzw50','4P2mioAZQoMuGcbbz2vUDa','DwXlB1K','5P6q6zYa5Rgc5PAh5QgJiU+8Iq','cUMaGUEuQos6JUwWJ+wEI+oaGEAyJUEHRUEAHa','54I2iefNzw50ieLe','5Pw0ifbPCgvSAw5L','zw50','CgfYzw50x2LK','wfHmq00','5lQo5A6E5PE26l+96lIQiefNzw4','BwvZC2fNzq','u3bZwvu','AeDKtfC','ioEAHow9K+wjJEAtJEs9NoApJ+I/SowsJos9VW','ru9tzgq','CeXKAKy','5O6O6l+BihnWzwnVChm','lNnWzwnVChmVCW','BNtJGiik56E76zMKiefNzq','t3foCfa','6kAb5RoO6zsa55QeiefNzw50','6k+M5Oof6kgO5Qc844cc','iowiScbZCgvJB3bZ','C3rHDguUANnVBG'];_0x5986=function(){return _0x1a9e86;};return _0x5986();}function createRegisterAgentTool(_0x78aeb7){const _0x48c94e={_0x45bda3:0x556,_0x43f179:0x561,_0x592d80:0x541,_0x422705:0x1d9,_0x232f46:0x5ac,_0x4dfcd7:0x1ac,_0x3e3b1b:0x1f7,_0x2dd6da:0x1d7,_0x4f1095:0x532,_0x5611ba:0x55e,_0x563c75:0x19e,_0x184543:0x19a,_0x43ae93:0x51f,_0x32c262:0x51c,_0xb4bd28:0x1fd,_0x21e163:0x210,_0x136821:0x1c6,_0x2c97dd:0x196,_0x38b746:0x1a9,_0x2232d8:0x185},_0x12d88b={_0x63035e:0x92,_0x31416a:0xa6,_0x81f037:0x31e,_0x3924eb:0x2f5,_0x252111:0xcd,_0x5aec8d:0x10d,_0x11b177:0xd3,_0x170b54:0x302,_0x1f72a9:0x2fd,_0x85ef4e:0x2d5,_0x3ca5fb:0xb1,_0x42b822:0x2f6,_0x5019c1:0x88,_0x1c6537:0x7a},_0x18026a={_0xb71d01:0x4c9},_0x4099b9={_0x9e0e5e:0x3f},_0x29d246={_0x35c271:0x3d3};function _0x456725(_0x35fd7a,_0x40ca57){return _0x235d(_0x40ca57-_0x29d246._0x35c271,_0x35fd7a);}const _0x2cf28d={'SvQAw':function(_0x448a18,_0x245df8){return _0x448a18 instanceof _0x245df8;},'KsJLI':function(_0x244b0a,_0x232565){return _0x244b0a(_0x232565);},'YBOFo':function(_0x529d5d,_0x3db69f){return _0x529d5d(_0x3db69f);},'oAaWt':function(_0x26ec87,_0x44ba45){return _0x26ec87!==_0x44ba45;},'XXLCM':_0x456725(_0x48c94e._0x45bda3,_0x48c94e._0x43f179),'XlKnO':function(_0x1d2819,_0xcbedc0){return _0x1d2819!==_0xcbedc0;},'mOUMT':function(_0x20c6de,_0x42550f){return _0x20c6de instanceof _0x42550f;},'qDlHA':function(_0x4e55e5,_0x53af18){return _0x4e55e5(_0x53af18);},'UwTzn':_0x2ab349(0x206,0x1f8)+_0x456725(_0x48c94e._0x592d80,0x562)};function _0x2ab349(_0xd2b11,_0x24fabd){return _0x235d(_0xd2b11-_0x4099b9._0x9e0e5e,_0x24fabd);}const _0x333799=getStateFilePath(_0x78aeb7);return _0x2cf28d[_0x2ab349(0x1ef,_0x48c94e._0x422705)](tool,{'description':'注册新的\x20Agent'+_0x456725(0x57f,_0x48c94e._0x232f46)+_0x2ab349(_0x48c94e._0x4dfcd7,0x182)+'发\x20agent\x20编排'+_0x2ab349(0x201,_0x48c94e._0x3e3b1b)+_0x2ab349(0x1d8,_0x48c94e._0x2dd6da),'args':{'agent_id':tool[_0x456725(0x550,_0x48c94e._0x4f1095)]['string']()[_0x456725(0x51f,_0x48c94e._0x5611ba)]('Agent\x20ID'),'parent_id':tool[_0x2ab349(_0x48c94e._0x563c75,_0x48c94e._0x184543)][_0x456725(0x543,0x52a)]()[_0x456725(_0x48c94e._0x43ae93,0x52b)]()[_0x456725(_0x48c94e._0x32c262,0x55e)](_0x2cf28d[_0x2ab349(_0x48c94e._0xb4bd28,_0x48c94e._0x21e163)]),'phase':tool[_0x2ab349(0x19e,_0x48c94e._0x136821)][_0x2ab349(_0x48c94e._0x2c97dd,0x158)]()['optional']()[_0x456725(_0x48c94e._0x45bda3,_0x48c94e._0x5611ba)](_0x2ab349(_0x48c94e._0x38b746,_0x48c94e._0x2232d8)+'dle)')},async 'execute'(_0x57befd){function _0x3e49d4(_0x18a4b6,_0x561057){return _0x456725(_0x561057,_0x18a4b6- -_0x18026a._0xb71d01);}function _0x342777(_0x3f5ebe,_0x46f217){return _0x2ab349(_0x3f5ebe-0x114,_0x46f217);}const _0x4cffda={'dKGzG':function(_0x220eda,_0xfd385e){return _0x220eda(_0xfd385e);},'jLSwC':function(_0x40ddb0,_0x1419c5){return _0x2cf28d['YBOFo'](_0x40ddb0,_0x1419c5);},'UHYmz':function(_0x3e5633,_0x29460d){return _0x2cf28d['YBOFo'](_0x3e5633,_0x29460d);}};if(_0x2cf28d[_0x3e49d4(_0x12d88b._0x63035e,_0x12d88b._0x31416a)](_0x2cf28d[_0x342777(0x31e,0x358)],_0x2cf28d[_0x342777(_0x12d88b._0x81f037,_0x12d88b._0x3924eb)]))return _0x3e49d4(_0x12d88b._0x252111,_0x12d88b._0x5aec8d)+_0x3e49d4(0xc5,0xd5)+(_0x2cf28d['SvQAw'](_0x2c6469,_0x55ad8b)?_0x45ed2d[_0x3e49d4(0xd7,0xdb)]:_0x2cf28d['KsJLI'](_0x1893c5,_0x417308));else try{return await _0x39c928['registerAg'+_0x3e49d4(_0x12d88b._0x11b177,0xdc)](_0x333799,_0x57befd['agent_id'],{'parentId':_0x57befd[_0x342777(0x31d,0x313)],'phase':_0x57befd[_0x342777(_0x12d88b._0x170b54,_0x12d88b._0x1f72a9)]});}catch(_0x1e5649){if(_0x2cf28d['XlKnO'](_0x342777(0x317,_0x12d88b._0x85ef4e),'ulKoY')){const _0x16d28c=_0x3acd13[_0x342777(0x305,0x30e)];return{'name':_0x3e49d4(0x6e,_0x12d88b._0x3ca5fb),'tool':{'specops_status':_0x4cffda[_0x342777(_0x12d88b._0x42b822,_0x12d88b._0x3924eb)](_0x35d17c,_0x16d28c),'specops_advance':_0x5a418d(_0x16d28c),'specops_new_project':_0x4cffda[_0x3e49d4(_0x12d88b._0x5019c1,0x54)](_0x11a4c3,_0x16d28c),'specops_update_operation':_0x4d617c(_0x16d28c),'specops_register_agent':_0x33014a(_0x16d28c),'specops_deregister_agent':_0x4cf54f(_0x16d28c),'specops_progress':_0x4cffda['UHYmz'](_0x345b3d,_0x16d28c),'specops_quick':_0x315fd7(_0x16d28c),'specops_analyze_requirements':_0x4cffda[_0x342777(0x2f6,0x30a)](_0x49148c,_0x16d28c)},'event':async _0x5dec6e=>{}};}else return _0x3e49d4(0x71,0x50)+'\x20失败:\x20'+(_0x2cf28d[_0x3e49d4(0x7c,_0x12d88b._0x1c6537)](_0x1e5649,Error)?_0x1e5649['message']:String(_0x1e5649));}}});}function createDeregisterAgentTool(_0x3a3b5c){const _0x5af558={_0x2e9f34:0x2d4,_0x2be111:0x312,_0x4a9df3:0x467,_0x441e2a:0x48d,_0x4b081b:0x2ec,_0x529573:0x4a5,_0x56bbca:0x417,_0x5b198f:0x3f4},_0xb85cb3={_0x4b71b3:0x72,_0x4e610c:0x44,_0x56751a:0x1,_0x592dfc:0x16,_0x31da11:0x16,_0x206e1a:0x7,_0x1e76ae:0x2ff,_0x5bee8b:0x11,_0x3a207f:0x12,_0x4e9846:0x2ff,_0x39f0ed:0x21},_0x1a4285={_0x10c11:0x2fb},_0x354ea2={_0x551223:0x151},_0x102c6f={'NFkUp':function(_0x29d743,_0x58d1f1){return _0x29d743 instanceof _0x58d1f1;},'CXDkO':function(_0x4c2dff,_0x4eae24){return _0x4c2dff(_0x4eae24);},'qHojb':function(_0x3ee934,_0x593470){return _0x3ee934!==_0x593470;},'Pstic':_0x17e594(_0x5af558._0x2e9f34,_0x5af558._0x2be111),'jhsAo':function(_0x4eacde,_0x80f2d){return _0x4eacde===_0x80f2d;},'QHIdV':_0x3ff8d7(_0x5af558._0x4a9df3,0x43b),'QvVnZ':_0x3ff8d7(_0x5af558._0x441e2a,0x4a4)+'\x20ID'};function _0x3ff8d7(_0x4f56df,_0x2ab8b3){return _0x235d(_0x4f56df-0x2b6,_0x2ab8b3);}function _0x17e594(_0xae18fa,_0x4a4c36){return _0x235d(_0xae18fa-_0x354ea2._0x551223,_0x4a4c36);}const _0x2292fa=_0x102c6f[_0x17e594(_0x5af558._0x4b081b,0x2de)](getStateFilePath,_0x3a3b5c);return tool({'description':'从\x20specops\x20'+'状态系统注销\x20Age'+_0x3ff8d7(0x48b,_0x5af558._0x529573)+'nt\x20记录,同时更新'+'父\x20Agent\x20的\x20'+_0x3ff8d7(0x45c,0x45c),'args':{'agent_id':tool['schema']['string']()['describe'](_0x102c6f[_0x3ff8d7(_0x5af558._0x56bbca,_0x5af558._0x5b198f)])},async 'execute'(_0x39c108){const _0x14fa3c={_0x2b5bef:0x1f};function _0x46e57a(_0x4a337b,_0x538914){return _0x17e594(_0x538914- -_0x1a4285._0x10c11,_0x4a337b);}function _0x86552b(_0x4ac443,_0x3a9305){return _0x17e594(_0x4ac443- -_0x14fa3c._0x2b5bef,_0x3a9305);}if(_0x102c6f[_0x46e57a(-_0xb85cb3._0x4b71b3,-_0xb85cb3._0x4e610c)](_0x102c6f[_0x46e57a(-0x7,-0x17)],_0x46e57a(-0x2b,-_0xb85cb3._0x56751a)))try{return await _0x39c928[_0x46e57a(_0xb85cb3._0x592dfc,_0xb85cb3._0x31da11)+'Agent'](_0x2292fa,_0x39c108[_0x86552b(0x2e6,0x2f9)]);}catch(_0x5b83c){return _0x102c6f[_0x46e57a(-_0xb85cb3._0x206e1a,-0x6)](_0x102c6f['QHIdV'],_0x102c6f['QHIdV'])?_0x86552b(0x2f5,_0xb85cb3._0x1e76ae)+_0x46e57a(0x1,_0xb85cb3._0x5bee8b)+(_0x102c6f[_0x46e57a(-0x2e,-_0xb85cb3._0x3a207f)](_0x5b83c,Error)?_0x5b83c[_0x86552b(_0xb85cb3._0x4e9846,0x2d5)]:String(_0x5b83c)):'❌\x20快速任务失败:\x20'+(_0x102c6f[_0x46e57a(-_0xb85cb3._0x39f0ed,-0x12)](_0x14d6e7,_0x263580)?_0x17a103[_0x46e57a(0x24,0x23)]:_0x102c6f[_0x86552b(0x2cd,0x2b5)](_0x27fce6,_0x58e817));}else return _0x86552b(0x2ad,0x282)+(_0xd9106b instanceof _0x2a31a0?_0x3ab1c2[_0x46e57a(0x53,0x23)]:_0x2d090c(_0x4f597e));}});}function createProgressTool(_0x23020b){const _0x57c887={_0x394ae7:0x52f,_0x53dd75:0x178,_0x36cdcd:0x175},_0x497c3e={_0x5b8447:0x2ea,_0xbf79ca:0x2eb,_0x2c4d13:0xd8,_0x2af5b2:0xe0,_0x3b1612:0x350},_0x42cd27={_0x4a1623:0x451},_0x134335={_0xed3241:0x380};function _0x48f612(_0x211da5,_0x443ace){return _0x235d(_0x443ace- -0x2ce,_0x211da5);}const _0x159de4={'EOSdd':function(_0x3c8c7c,_0x1d2601){return _0x3c8c7c(_0x1d2601);}},_0x4e915e=getStateFilePath(_0x23020b);function _0x4c2e72(_0x57c69f,_0x101a4b){return _0x235d(_0x57c69f-_0x134335._0xed3241,_0x101a4b);}return _0x159de4[_0x4c2e72(0x551,_0x57c887._0x394ae7)](tool,{'description':'显示\x20specops'+_0x48f612(-0x149,-_0x57c887._0x53dd75)+_0x48f612(-0x1b0,-_0x57c887._0x36cdcd)+'分布图、Agent\x20'+_0x4c2e72(0x558,0x54b),'args':{},async 'execute'(){const _0x119a10={_0x21e514:0x32};function _0x323e0f(_0x43ae0c,_0xdab10c){return _0x48f612(_0x43ae0c,_0xdab10c-_0x42cd27._0x4a1623);}function _0x506007(_0x1c98a7,_0x163e97){return _0x48f612(_0x1c98a7,_0x163e97-_0x119a10._0x21e514);}if(_0x323e0f(_0x497c3e._0x5b8447,0x2e1)==='IhxLA')try{return await _0x39c928[_0x323e0f(_0x497c3e._0xbf79ca,0x314)+'ss'](_0x4e915e);}catch(_0x3c80d3){return _0x506007(-_0x497c3e._0x2c4d13,-0xbe)+(_0x3c80d3 instanceof Error?_0x3c80d3[_0x323e0f(0x34e,0x350)]:String(_0x3c80d3));}else return _0x506007(-_0x497c3e._0x2af5b2,-0x102)+(_0x1a1d8e instanceof _0x526102?_0x87554e[_0x323e0f(0x346,_0x497c3e._0x3b1612)]:_0x317c21(_0x1f16d7));}});}function createQuickTool(_0x409291){const _0x3fcf53={_0x3a976c:0x247,_0x47514c:0x28a,_0x5939ce:0x413,_0x390bfb:0x421,_0x4437aa:0x411,_0x467cb6:0x411,_0x50c95e:0x1fc,_0x13f2a1:0x213,_0x28ba74:0x24d,_0x7bfe41:0x23f,_0x1d7a5a:0x271},_0x4fd37a={_0x2ed1e1:0x344,_0x4aa962:0x1c,_0x22cb90:0x31,_0x2e7729:0x46,_0x41745e:0x14,_0x71a485:0x3,_0x392290:0xc},_0x2975c2={_0x2cb2f4:0xb4},_0x21f53c={'goQIQ':function(_0xf1b008,_0x1ebc28){return _0xf1b008===_0x1ebc28;},'OqNpP':function(_0x1371b4,_0xdf42a6){return _0x1371b4(_0xdf42a6);}},_0x48af6b=_0x21f53c['OqNpP'](getStateFilePath,_0x409291);function _0x3832c1(_0x2fb775,_0x224acc){return _0x235d(_0x224acc-_0x2975c2._0x2cb2f4,_0x2fb775);}function _0x5d2258(_0x1c7658,_0x1da649){return _0x235d(_0x1c7658-0x24b,_0x1da649);}return _0x21f53c[_0x3832c1(_0x3fcf53._0x3a976c,_0x3fcf53._0x47514c)](tool,{'description':'快速任务模式。跳过完'+_0x5d2258(_0x3fcf53._0x5939ce,_0x3fcf53._0x390bfb)+',直接进入执行阶段。'+_0x5d2258(_0x3fcf53._0x4437aa,_0x3fcf53._0x467cb6)+_0x3832c1(0x257,0x21c),'args':{'task':tool[_0x3832c1(_0x3fcf53._0x50c95e,_0x3fcf53._0x13f2a1)][_0x3832c1(0x1d7,0x20b)]()[_0x3832c1(_0x3fcf53._0x28ba74,_0x3fcf53._0x7bfe41)](_0x3832c1(0x297,_0x3fcf53._0x1d7a5a))},async 'execute'(_0x2422b2){const _0x3886f7={'vhRSL':function(_0x1125b9,_0x20e647){return _0x1125b9 instanceof _0x20e647;},'eoxEJ':function(_0x4fb28a,_0x3b4407){return _0x4fb28a(_0x3b4407);}};function _0x51081c(_0x5b875e,_0x45fb91){return _0x5d2258(_0x45fb91- -0x415,_0x5b875e);}function _0xa6a60d(_0x2212eb,_0xa8d9a6){return _0x5d2258(_0x2212eb- -0x93,_0xa8d9a6);}try{return _0x21f53c['goQIQ']('jMTyh',_0xa6a60d(_0x4fd37a._0x2ed1e1,0x37e))?await _0x39c928[_0x51081c(-_0x4fd37a._0x4aa962,0x11)](_0x48af6b,_0x2422b2[_0x51081c(-0x45,-0x5f)]):'❌\x20更新操作失败:\x20'+(_0x3886f7[_0x51081c(-_0x4fd37a._0x22cb90,-_0x4fd37a._0x2e7729)](_0x9ca0d8,_0x1bce93)?_0x1fa9e4[_0x51081c(0x38,0x3)]:_0x3886f7[_0xa6a60d(0x329,0x365)](_0x63c1a,_0x2b59d8));}catch(_0x2f2161){return'❌\x20快速任务失败:\x20'+(_0x2f2161 instanceof Error?_0x2f2161[_0x51081c(-_0x4fd37a._0x41745e,_0x4fd37a._0x71a485)]:_0x21f53c[_0x51081c(0x1,_0x4fd37a._0x392290)](String,_0x2f2161));}}});}const SpecOpsPlugin=async _0x2a63b9=>{const _0x526c3e={_0x375b75:0x443,_0x13b86e:0x470,_0x26132b:0x4d5,_0x28fcbe:0x189,_0x5e44b1:0x45b,_0x1b3c98:0x49a},_0x4529d3={_0x2298ce:0x357},_0x5b2a9e={'SpsYU':function(_0xd054d7,_0x28ee32){return _0xd054d7(_0x28ee32);},'SKxDI':function(_0x16225d,_0x39582b){return _0x16225d(_0x39582b);}};function _0x26dfbe(_0x230f03,_0x3bf13e){return _0x235d(_0x3bf13e- -_0x4529d3._0x2298ce,_0x230f03);}const _0x675874=_0x2a63b9['directory'];function _0x4f90ad(_0x46fb1a,_0x1d2831){return _0x235d(_0x46fb1a-0x2df,_0x1d2831);}return{'name':_0x4f90ad(_0x526c3e._0x375b75,_0x526c3e._0x13b86e),'tool':{'specops_status':_0x5b2a9e[_0x4f90ad(0x4ad,_0x526c3e._0x26132b)](createStatusTool,_0x675874),'specops_advance':createAdvanceTool(_0x675874),'specops_new_project':_0x5b2a9e[_0x26dfbe(-0x1bb,-_0x526c3e._0x28fcbe)](createNewProjectTool,_0x675874),'specops_update_operation':createUpdateOperationTool(_0x675874),'specops_register_agent':createRegisterAgentTool(_0x675874),'specops_deregister_agent':createDeregisterAgentTool(_0x675874),'specops_progress':_0x5b2a9e[_0x4f90ad(_0x526c3e._0x5e44b1,0x45f)](createProgressTool,_0x675874),'specops_quick':_0x5b2a9e[_0x4f90ad(_0x526c3e._0x5e44b1,_0x526c3e._0x1b3c98)](createQuickTool,_0x675874),'specops_analyze_requirements':createAnalyzeRequirementsTool(_0x675874)},'event':async _0x779672=>{}};};export default SpecOpsPlugin;