specops 3.15.0 → 3.17.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 (41) hide show
  1. package/README.md +5 -0
  2. package/commands/specops/brainstorm.md +39 -0
  3. package/dist/__integration__/fixtures/generator.js +1 -1
  4. package/dist/__integration__/mocks/server.js +1 -1
  5. package/dist/__integration__/setup.js +1 -1
  6. package/dist/acceptance/lazyDetector.js +1 -1
  7. package/dist/acceptance/reporter.js +1 -1
  8. package/dist/acceptance/runner.js +1 -1
  9. package/dist/cli.js +1 -1
  10. package/dist/config/kanbanSentinel.js +1 -1
  11. package/dist/config/modelConfig.js +1 -1
  12. package/dist/context/index.js +1 -1
  13. package/dist/context/promptTemplate.js +1 -1
  14. package/dist/context/techContextLoader.js +1 -1
  15. package/dist/engine.js +1 -1
  16. package/dist/evolution/distiller.js +1 -1
  17. package/dist/evolution/index.js +1 -1
  18. package/dist/evolution/memoryGraph.js +1 -1
  19. package/dist/evolution/selector.js +1 -1
  20. package/dist/evolution/signals.js +1 -1
  21. package/dist/evolution/solidify.js +1 -1
  22. package/dist/evolution/store.js +1 -1
  23. package/dist/evolution/types.js +1 -1
  24. package/dist/init.js +1 -1
  25. package/dist/machines/agentMachine.js +1 -1
  26. package/dist/machines/supervisorMachine.js +1 -1
  27. package/dist/persistence/schema.js +1 -1
  28. package/dist/persistence/stateFile.js +1 -1
  29. package/dist/plugin-engine.js +1 -1
  30. package/dist/plugin.js +1 -1
  31. package/dist/requirement-analysis/analyzers/repository-parser.js +1 -1
  32. package/dist/requirement-analysis/generators/prd-generator.js +1 -1
  33. package/dist/requirement-analysis/integrations/v1-integration.js +1 -1
  34. package/dist/requirement-analysis/tools/analyze-requirements.js +1 -1
  35. package/dist/requirement-analysis/utils/error-handler.js +1 -1
  36. package/dist/server/sentinel-server.d.ts +7 -0
  37. package/dist/server/sentinel-server.js +1 -0
  38. package/dist/swarm/bridge.js +1 -1
  39. package/dist/types/index.js +1 -1
  40. package/dist/utils/id.js +1 -1
  41. package/package.json +5 -2
@@ -1 +1 @@
1
- (function(_0x4cf0a7,_0x495fb3){const _0x3fa15d={_0xd4ee6e:0x433,_0x48b618:0xf8,_0x4f9df2:0x10d,_0x2baf89:0x1ba,_0x1ef0ab:0x44d,_0x5291d8:0x431,_0x429eab:0x174},_0x34036b={_0x56b8bc:0x259},_0x223bfd={_0x19a055:0x311};function _0x3c244a(_0x2c0292,_0x3bb2f2){return _0x5c62(_0x3bb2f2-_0x223bfd._0x19a055,_0x2c0292);}function _0x43c0e2(_0x2583ed,_0x3a501c){return _0x5c62(_0x2583ed- -_0x34036b._0x56b8bc,_0x3a501c);}const _0xbc5526=_0x4cf0a7();while(!![]){try{const _0x1500bb=-parseInt(_0x3c244a(0x4a2,0x45b))/(0x5*-0x31a+-0x805+0x1788)+-parseInt(_0x3c244a(_0x3fa15d._0xd4ee6e,0x46f))/(-0x25d5+0x79d*-0x4+0x444b*0x1)*(-parseInt(_0x43c0e2(-0x121,-_0x3fa15d._0x48b618))/(0x10e0*-0x2+0x359*0xa+0x49))+parseInt(_0x43c0e2(-0x113,-_0x3fa15d._0x4f9df2))/(-0x1ac6+0x0+-0x3*-0x8ee)*(-parseInt(_0x43c0e2(-0x185,-_0x3fa15d._0x2baf89))/(0x28f+0x2f9*-0x3+-0x1*-0x661))+-parseInt(_0x3c244a(_0x3fa15d._0x1ef0ab,_0x3fa15d._0x5291d8))/(-0x9f4+-0x31d*-0x3+-0xa3*-0x1)+parseInt(_0x43c0e2(-_0x3fa15d._0x429eab,-0x1a8))/(-0x7*-0x1cf+0x123e+-0x1ee0)+parseInt(_0x3c244a(0x3df,0x412))/(-0x245f+0x1ff9+0x7*0xa2)+parseInt(_0x3c244a(0x470,0x466))/(0x2ff*-0x4+0x1177+0x2*-0x2b9);if(_0x1500bb===_0x495fb3)break;else _0xbc5526['push'](_0xbc5526['shift']());}catch(_0x5be11e){_0xbc5526['push'](_0xbc5526['shift']());}}}(_0x3633,0xd1af*-0x9+0xe1a1b+0x10e65*0x2));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 _0x3633(){const _0x277fca=['Aw5KzxHpzG','wNDRvve','DMvYC2LVBG','uKniAKO','s0f1svu','Ee9LA1u','EMnpAKy','4PYfiefNzw50iow3SUAZQa','icaG6zI25Q615BQp5yIxoIa','oti3nvrnEKHkqW','C1D6AMW','A2v5CW','uxjLvxy','DgvJAf9ZzwXLyW','5OQa5PYV6ycj5z6l','vu9IsLC','ios4JEwTMowCQos6JIbZDgf0','BMfTzq','CgfYC2u','tK9AsgW','y29TCgv0AxrVCG','Chjgswu','BgLUzE+8JoEBToAoPEAjP+IHJa','icaG5yID5AEliefNzw4','icaG54Mi5PYSoIa','tufIseu','nduZoduYu01dvezN','rcaGicaGicaGia','DdOG','ChvZAa','6zYa5Rgc5yIg5P6q','5yAmoIa','CgHHC2u','Aw5JBhvKzxm','icaGqwDLBNq6ia','ywX5C2LZ','v05xBLe','B2nXC0y','wvr3ufu','vfnSDxK','CMf0Aw9U','shLHCwW','Cg1LEhe','zuDtAMO','ChnOB3q','CMvWzwf0','D2vzwKe','Bwf4','zMLSDgvY','AwrSzq','icaGicaGFcdMK43KVzW','icaGicaGicaGia','CxvPy2STDgfZAW','icaG6zI25Q61oIa','nde3otmYmg1ABeT2yW','icaG5B2t5yMn6zI25Q61oIa','t0fLC3q','icaGqwDLBNqGsq','icaG','cUkCHsbbz2vUDca','ihWG','rffJr2u','CgfYzw50swq','yxzAy0q','y29TCgXLDgvK','Cxj1r3u','CLPUseK','4PYfifS','iokgKIa','EMHfqMu','zuHgEKe','u1PzreC','icaG5PU05PAW5PE26zE0oIa','sg1wB2S','DejPuhu','8j+tIIdPOBNNM67NIRBMGie6ia','y3vYCMvUDfbOyq','5yQF6io95yIg5P6q','iow3SUwTMowCQo+8JoI3S+I/H+AZQowgJa','rLzSBMq','4PQG77Ipicbbz2vUDca','ywDLBNrjza','zs5QC29U','BhLZAxm','sNvhywe','otq2odG0Axvgtuf0','D2TTwhq','56UE5zob5yIg5P6q','4P2miefNzw50ia','qKLuCNi','DxbKyxrLzef0','DKDPwLq','icaG54I2iefNzw50','vLnxsfO','DuD5teu','CMfUzg9T','icaG5lU75yQHoIa','icaGicaGicb8ia','AM9PBG','ENvrA1a','BwvZC2fNzq','CgDxwK8','zxHLy3v0zq','CMvJDxjZAxzL','DcdORRdLVzu','iow3SUwUJoAiKowfQoMdQoMyTUAUTq','icaG8j+tIcdPMlBMRRxLIiBLUim6','y3vYCMvUDfnRAq','DLPWCw8','otC1mtaYyMfwvwHz','yunkvwW','tfrWAgy','ywDLBNrZ','CgXHBG','zMLUza','wKr5uwO','De9tzw4','CMvXDwLYzw1LBG','jsaO','CgfKrw5K','icaG6Ag555UUoIa','DhHXtNG','uM1SENu','mty4nhjutgjwrG','CK5Zs3y','C1LyyNy','ChjVAMvJDa','mtK4mJG1vufJD21v','6zsaoIa','CMvHza','vNzfueO','ChjVAMvJDcdLKB3KU6q','77Ym6k+35ywi6l+q6kgmig5LDY0','CM91BMq','CvH6wum','zgvTyw5Kx2fUyq','qu10ENu','rxbjyvm','mtm4nZK3muviu25VEG','icaG8j+KLIbbz2vUDa','z2zZwuy','8j+gLsdPOBNNM67LT7lLIjVLU7O6ia','y3vYCMvUDe9Wzq','qvLivNO','DuHzsee','sg9pvg8','wKPWvg8','nMreD3jtrq','DhPfEfC','CxvPy2S','tffWreO','vKDyr2G','y2HPBgrjzhm','4PYfioAjGoACIsbbz2vUDa','v2znB0q','icaG55UU5B2voIa','icaG5A6m5OIq5BQMoIa','BwfW','zMLRuuK','vhzKCxe','D3jPDgu','Cwj1qwe','icaG5O+q56s6oIdLV6VPGj/KU7S','4PQG77IpicdNIRBMGihMLOFKU7BKUi3LRzJLNkG','icaG5PQc5PEGiefNzw4','BgvUz3rO','4PQHiow/Q+MaN+s7U+wkOEAOOEw8JW','yMvms0K','icaGicaG','quTUAhy','BwfJAgLUzvnUyq','wKTpqxu','5lMq6kEc6zsb5yAY56Qb','BNjRD2O','x2fUywX5C2LZ','DMvYAwz5','ios4JEwTMowCQa','sNzdDfK','ihWG6zI25Q61icaGica'];_0x3633=function(){return _0x277fca;};return _0x3633();}function _0x42e262(_0x56a328,_0x463ba2){const _0x31a79a={_0x41c2d5:0x218};return _0x5c62(_0x56a328- -_0x31a79a._0x41c2d5,_0x463ba2);}function _0x5c62(_0x41b4ea,_0x36338e){_0x41b4ea=_0x41b4ea-(-0xd29+0x669*-0x4+-0xe*-0x2d4);const _0x199bc6=_0x3633();let _0x2f9748=_0x199bc6[_0x41b4ea];if(_0x5c62['zIVXRz']===undefined){var _0x36d608=function(_0x31f51c){const _0x20d328='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x103e43='',_0x587862='';for(let _0x3b71dc=0x195b+-0x1267+-0x6f4,_0x132278,_0x4ae6cd,_0x349f00=0x3*-0x45a+0x234c+0xb1f*-0x2;_0x4ae6cd=_0x31f51c['charAt'](_0x349f00++);~_0x4ae6cd&&(_0x132278=_0x3b71dc%(0x1*0x2603+-0x1*0x121d+-0x13e2)?_0x132278*(0x1472*-0x1+-0x315*-0x5+0x549*0x1)+_0x4ae6cd:_0x4ae6cd,_0x3b71dc++%(0x16*-0x142+0x2313+0x763*-0x1))?_0x103e43+=String['fromCharCode'](0x6*0x598+0x7ca+-0x285b&_0x132278>>(-(-0x698+-0xca1+0x3*0x669)*_0x3b71dc&0x1902+-0x95+0x1867*-0x1)):-0x1*0x1b6f+0x643+0x152c*0x1){_0x4ae6cd=_0x20d328['indexOf'](_0x4ae6cd);}for(let _0x4e2dba=0xe42+0x1a2b+-0x286d,_0x17a735=_0x103e43['length'];_0x4e2dba<_0x17a735;_0x4e2dba++){_0x587862+='%'+('00'+_0x103e43['charCodeAt'](_0x4e2dba)['toString'](0x1*-0x87c+0x1b40+-0x26*0x7e))['slice'](-(0x2a9+-0x1*-0x6e2+-0x989));}return decodeURIComponent(_0x587862);};_0x5c62['pautjU']=_0x36d608,_0x5c62['HefgAD']={},_0x5c62['zIVXRz']=!![];}const _0x5cf388=_0x199bc6[-0x348+0x227a+-0x1f32],_0x46b9de=_0x41b4ea+_0x5cf388,_0x4d03c7=_0x5c62['HefgAD'][_0x46b9de];return!_0x4d03c7?(_0x2f9748=_0x5c62['pautjU'](_0x2f9748),_0x5c62['HefgAD'][_0x46b9de]=_0x2f9748):_0x2f9748=_0x4d03c7,_0x2f9748;}const _0x435fe5={};_0x435fe5[_0x42e262(-0xd8,-0x98)+'t_analysis']=_0x42e262(-0x12f,-0x117),_0x435fe5[_0x5e12ea(0x34a,0x364)+_0x42e262(-0xfa,-0x129)]=_0x42e262(-0x12f,-0xdc);function _0x5e12ea(_0x336d83,_0x4435ed){return _0x5c62(_0x4435ed-0x212,_0x336d83);}_0x435fe5[_0x42e262(-0x139,-0x186)+_0x5e12ea(0x3e0,0x38b)]=_0x42e262(-0xf6,-0x10a),_0x435fe5['feature_an'+_0x42e262(-0x12a,-0xf8)]=_0x42e262(-0x100,-0xac),_0x435fe5[_0x42e262(-0x140,-0x103)+'tion']=_0x5e12ea(0x333,0x2eb),_0x435fe5['discuss']='讨论',_0x435fe5[_0x42e262(-0xdc,-0x98)]='规划',_0x435fe5[_0x42e262(-0xe7,-0xad)]='执行',_0x435fe5[_0x42e262(-0x9e,-0xba)]='验证';const PHASE_NAMES=_0x435fe5,MAX_RETRIES=-0xab2+-0xef2+0x19a9;async function readStateFile(_0x104f1a){const _0x249932={_0x7ded06:0x285,_0x29dbe1:0x388},_0x40bd16={_0x29f248:0x454},_0x1650fa={'pgWZO':function(_0x3fcaad,_0x2ddadb){return _0x3fcaad(_0x2ddadb);}};function _0x4429b3(_0x5b9464,_0x24b763){return _0x42e262(_0x24b763-0x36d,_0x5b9464);}if(!_0x1650fa[_0x4429b3(0x2ba,_0x249932._0x7ded06)](existsSync,_0x104f1a))return null;function _0x1ab82a(_0x580ded,_0x4e942e){return _0x42e262(_0x580ded-_0x40bd16._0x29f248,_0x4e942e);}const _0x482a5e=new StateFileManager(_0x104f1a);return _0x482a5e[_0x1ab82a(_0x249932._0x29dbe1,0x387)]();}async function writeStateFile(_0x1c5037,_0x1e1e29){const _0x525336={_0x2c820e:0x23,_0x4b3ba7:0x45,_0x230688:0x44,_0x7498e7:0x2a0,_0x1b09d8:0x66,_0x143d08:0x85,_0x33d95f:0x290,_0x160750:0x25e,_0x518090:0x2e3,_0xcd5027:0x3b,_0x3a193d:0x19,_0x1ea304:0xe,_0xf7de1d:0x30,_0x4c748b:0x1e,_0xeef692:0x37,_0x264536:0x2bf,_0x506507:0x2d3,_0x4e85bf:0x288,_0xac7d9b:0x2b7,_0x4281a3:0x25e,_0x38f112:0x34,_0x36d1f4:0x1c},_0x419b6a={_0x5adea3:0x5d1},_0x1b5aa8={};_0x1b5aa8['Rmlzu']=_0x89067f(0x53,0x57)+_0x89067f(_0x525336._0x2c820e,0x19),_0x1b5aa8['LQpDJ']=function(_0x2e97b0,_0xd95c26){return _0x2e97b0<_0xd95c26;};function _0x89067f(_0x2ecdf4,_0x89292c){return _0x5e12ea(_0x89292c,_0x2ecdf4- -0x323);}function _0x380bde(_0x57b36f,_0x1b3c84){return _0x5e12ea(_0x57b36f,_0x1b3c84- -_0x419b6a._0x5adea3);}_0x1b5aa8[_0x89067f(0xe,-_0x525336._0x4b3ba7)]=_0x89067f(0x49,_0x525336._0x230688),_0x1b5aa8[_0x380bde(-_0x525336._0x7498e7,-0x288)]=_0x89067f(_0x525336._0x1b09d8,_0x525336._0x143d08);const _0xe1c3b7=_0x1b5aa8;for(let _0x57da72=-0x202d+-0x527*-0x2+0x15df;_0xe1c3b7[_0x380bde(-_0x525336._0x33d95f,-_0x525336._0x160750)](_0x57da72,MAX_RETRIES);_0x57da72++){if(_0xe1c3b7[_0x380bde(-_0x525336._0x518090,-0x2a0)]===_0xe1c3b7[_0x380bde(-0x2ee,-0x2a0)])try{const _0xd9fa62=new StateFileManager(_0x1c5037);await _0xd9fa62[_0x89067f(_0x525336._0xcd5027,-_0x525336._0x3a193d)](),await _0xd9fa62[_0x380bde(-0x243,-0x254)](_0x1e1e29);return;}catch(_0x5f4098){if(_0x89067f(-_0x525336._0x1ea304,_0x525336._0xf7de1d)===_0x89067f(-_0x525336._0x1ea304,-0x52)){if(_0x5f4098 instanceof Error&&_0x5f4098[_0x89067f(_0x525336._0x4c748b,_0x525336._0xeef692)][_0x380bde(-_0x525336._0x264536,-_0x525336._0x506507)](_0xe1c3b7[_0x380bde(-0x28f,-_0x525336._0x4e85bf)])&&_0xe1c3b7[_0x380bde(-_0x525336._0xac7d9b,-_0x525336._0x4281a3)](_0x57da72,MAX_RETRIES-(0x1*-0x1a1+-0x1e58+0x1ffa))){await new Promise(_0x57c4a2=>setTimeout(_0x57c4a2,0x7*-0x39e+0x119*0xb+-0xd71*-0x1+Math[_0x89067f(0x19,0x6c)]()*(0x14c3+-0x2*0x12ce+0x113d)));continue;}throw _0x5f4098;}else return _0x89067f(0x12,0xb)+_0x10cd70+('\x20不存在于\x20stat'+'e.json');}else return _0xe1c3b7[_0x89067f(_0x525336._0x38f112,_0x525336._0x36d1f4)];}}function computeOverallPhase(_0x317ad0){const _0x2372f6={_0x24ab00:0x26c,_0x3a0698:0x26b,_0x147ff9:0x28c,_0x491a15:0x15b,_0x406a81:0x193,_0x2a584d:0x2c5,_0x38833d:0x110,_0x283a85:0x15e,_0x46cc51:0x16a,_0x475e66:0x15a,_0x40eed5:0x156,_0x260e7f:0x128,_0x30765f:0x2ef},_0x8cb541={_0x292ab9:0x1c9},_0x3caf4c={};_0x3caf4c['vyVqT']=_0x4ade6b(-0x27b,-_0x2372f6._0x24ab00)+',请先运行\x20new-'+_0x4ade6b(-_0x2372f6._0x3a0698,-_0x2372f6._0x147ff9),_0x3caf4c['AKnhv']=function(_0x4f6536,_0xb9afcf){return _0x4f6536!==_0xb9afcf;};function _0x4ade6b(_0x356adb,_0x3dadbc){return _0x42e262(_0x3dadbc- -0x1c2,_0x356adb);}_0x3caf4c[_0x544933(_0x2372f6._0x491a15,_0x2372f6._0x406a81)]='completed';function _0x544933(_0x4f33f0,_0x14bb0f){return _0x5e12ea(_0x14bb0f,_0x4f33f0- -_0x8cb541._0x292ab9);}const _0x4b5d62=_0x3caf4c;for(const _0x193911 of Object[_0x4ade6b(-_0x2372f6._0x2a584d,-0x304)](_0x317ad0)){if(_0x4b5d62[_0x544933(0x1bd,0x183)](_0x317ad0[_0x193911][_0x544933(0x134,_0x2372f6._0x38833d)],_0x4b5d62[_0x544933(0x15b,_0x2372f6._0x283a85)]))return _0x544933(_0x2372f6._0x46cc51,_0x2372f6._0x475e66)===_0x544933(_0x2372f6._0x40eed5,_0x2372f6._0x260e7f)?_0x4b5d62['vyVqT']:_0x317ad0[_0x193911][_0x4ade6b(-0x345,-_0x2372f6._0x30765f)];}return _0x544933(0x154,0x101);}export async function getStatus(_0x57af87){const _0x10a133={_0x330c2b:0x1dc,_0x20a4bd:0x238,_0x57e5c9:0x24a,_0x4c12d2:0x299,_0x25524c:0x2c8,_0x3b4fe2:0x27a,_0x499f98:0x27e,_0xfd6ee2:0x233,_0x1162dc:0x243,_0x4be3e6:0x1a6,_0x103097:0x1ba,_0x534bcd:0x212,_0x53b626:0x207,_0x23918e:0x22d,_0x5cfddd:0x25b,_0x3b6420:0x274,_0x4f3b28:0x22a,_0x14d5c4:0x242,_0x50f465:0x189,_0x41386a:0x1f8,_0x1de7c0:0x213,_0x5b71dd:0x266,_0x224710:0x2b4,_0x391401:0x201,_0xf117f9:0x1b5,_0x309e85:0x239,_0x4abcd8:0x1f6,_0x4f7737:0x1b1,_0x28f40f:0x1c6,_0x6faace:0x1b5,_0x4caea1:0x1fd,_0x5b4e48:0x261,_0x254b7b:0x21f,_0x5bbbf6:0x214,_0x1aa8e1:0x223,_0x50ac33:0x23a,_0xc50987:0x216,_0x44e426:0x284,_0x4750ef:0x268,_0x5b3e70:0x21e,_0x154fe0:0x1c5,_0x2b0d34:0x1ff,_0x2f8ee9:0x1d0,_0x4c9f8c:0x213,_0x1a42b7:0x20b,_0x776d4d:0x1c0,_0x1be019:0x1a7,_0x201243:0x26d,_0x20ebc5:0x282,_0xdf7de5:0x299,_0x3eebe1:0x1b4},_0x1c7b94={_0x1bf05b:0x2e1},_0x16586d={'ZDyQj':function(_0x10a271,_0x269192){return _0x10a271!==_0x269192;},'gfsYF':_0x2e28ba(0x236,_0x10a133._0x330c2b),'uGyLE':function(_0x58b91a,_0x278d6e,_0x149c4b){return _0x58b91a(_0x278d6e,_0x149c4b);},'fikQI':'utf-8','zuQkP':_0x1c8197(_0x10a133._0x20a4bd,_0x10a133._0x57e5c9)+_0x1c8197(0x1fc,0x1b2),'Hyaql':function(_0x5c3517,_0x35b373){return _0x5c3517+_0x35b373;},'TdXJk':_0x2e28ba(0x230,0x1f7)};if(!existsSync(_0x57af87))return _0x2e28ba(_0x10a133._0x4c12d2,_0x10a133._0x25524c)+_0x2e28ba(_0x10a133._0x3b4fe2,_0x10a133._0x499f98)+'project\x20命令';const _0x25c37e=_0x16586d[_0x1c8197(0x1f2,_0x10a133._0xfd6ee2)](readFileSync,_0x57af87,_0x16586d[_0x2e28ba(0x294,_0x10a133._0x1162dc)]),_0x293bd3=JSON[_0x1c8197(_0x10a133._0x4be3e6,0x198)](_0x25c37e);function _0x2e28ba(_0x10fce2,_0x6c0556){return _0x42e262(_0x10fce2-0x343,_0x6c0556);}const _0x48f387=[];function _0x1c8197(_0x2a94a6,_0x2442d0){return _0x42e262(_0x2a94a6-_0x1c7b94._0x1bf05b,_0x2442d0);}_0x48f387['push'](_0x1c8197(0x1df,_0x10a133._0x103097)+_0x293bd3[_0x1c8197(_0x10a133._0x534bcd,0x26b)][_0x2e28ba(_0x10a133._0x53b626,0x1cb)]),_0x48f387[_0x1c8197(0x1b1,0x182)](_0x2e28ba(_0x10a133._0x23918e,_0x10a133._0x5cfddd)+(PHASE_NAMES[_0x293bd3[_0x2e28ba(_0x10a133._0x3b6420,_0x10a133._0x4f3b28)][_0x2e28ba(_0x10a133._0x14d5c4,0x268)+'se']]??_0x293bd3[_0x2e28ba(_0x10a133._0x3b6420,0x287)]['currentPha'+'se'])),_0x48f387[_0x2e28ba(0x213,0x1c9)](_0x1c8197(0x1ac,_0x10a133._0x50f465)+_0x293bd3[_0x2e28ba(_0x10a133._0x41386a,0x20b)]),_0x48f387[_0x2e28ba(_0x10a133._0x1de7c0,0x1dd)]('\x20\x20\x20更新时间:\x20'+_0x293bd3['updatedAt']);const _0x58a786=_0x293bd3[_0x2e28ba(_0x10a133._0x5b71dd,_0x10a133._0x224710)],_0x586fae=Object[_0x2e28ba(_0x10a133._0x391401,_0x10a133._0xf117f9)](_0x58a786);if(_0x586fae[_0x1c8197(_0x10a133._0x309e85,0x27a)]===0x648+-0x1*-0xd96+-0x13de)return _0x48f387['push'](_0x16586d[_0x1c8197(0x1f7,0x1be)]),_0x48f387[_0x1c8197(_0x10a133._0x4abcd8,0x20f)]('\x0a');_0x48f387[_0x1c8197(_0x10a133._0x4f7737,0x18c)](''),_0x48f387[_0x1c8197(_0x10a133._0x4f7737,0x1df)]('\x20\x20\x20Agent\x20I'+'D\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2e28ba(0x2a8,0x250)+_0x1c8197(_0x10a133._0x28f40f,_0x10a133._0x6faace)+_0x2e28ba(0x229,_0x10a133._0x4caea1)+'\x20\x20\x20\x20\x20\x20\x20\x20|\x20'+'工具'),_0x48f387[_0x2e28ba(_0x10a133._0x1de7c0,_0x10a133._0x5b4e48)](_0x16586d[_0x2e28ba(_0x10a133._0x254b7b,_0x10a133._0x5bbbf6)](_0x16586d['TdXJk'],'-'[_0x2e28ba(_0x10a133._0x1aa8e1,_0x10a133._0x50ac33)](0x98d+-0xb*0x1d+-0x7fe)));for(const _0xe6d23c of _0x586fae){if('MAbHE'===_0x1c8197(0x1ad,0x1f3)){const _0x5056d5=_0x58a786[_0xe6d23c],_0x42b1c8=PHASE_NAMES[_0x5056d5[_0x2e28ba(_0x10a133._0xc50987,0x1ff)]]??_0x5056d5['phase'],_0x19b988=_0x5056d5[_0x2e28ba(_0x10a133._0x44e426,_0x10a133._0x4750ef)+_0x2e28ba(_0x10a133._0x5b3e70,_0x10a133._0x154fe0)]||'-',_0x1573ee=_0x5056d5[_0x1c8197(_0x10a133._0x2b0d34,_0x10a133._0x2f8ee9)+'ll']||'-';_0x48f387[_0x2e28ba(_0x10a133._0x4c9f8c,0x1db)]('\x20\x20\x20'+_0xe6d23c[_0x1c8197(0x20b,0x203)](0x1*-0xff+-0x16b0+0x17c1*0x1)+_0x1c8197(_0x10a133._0x2f8ee9,0x1fd)+_0x42b1c8[_0x1c8197(_0x10a133._0x1a42b7,_0x10a133._0x776d4d)](0x1c2+0xb7c+-0xd30)+_0x1c8197(0x1d0,_0x10a133._0x1be019)+_0x19b988[_0x2e28ba(_0x10a133._0x201243,0x21d)](0x11d*0x21+-0x1*-0x150a+-0x39b2)+'\x20|\x20'+_0x1573ee);}else{if(_0x16586d[_0x1c8197(0x207,0x243)](_0x4250d8[_0x5ebb5c]['phase'],_0x16586d[_0x2e28ba(_0x10a133._0x20ebc5,_0x10a133._0xdf7de5)]))return _0x45c4f9[_0x3b0167][_0x1c8197(_0x10a133._0x3eebe1,0x197)];}}return _0x48f387['join']('\x0a');}export async function advancePhase(_0xfce0c3,_0x1a97ee){const _0x2b8df2={_0x5ac2e6:0x4ca,_0x58c9bf:0x4e0,_0x153839:0x4ef,_0xd57245:0x4ee,_0x4cf5f6:0x4d8,_0x18b82e:0x47d,_0x4967d0:0x4c2,_0xdefc95:0x4b9,_0x39320a:0x52a,_0x535645:0x4b7,_0x1de5be:0x46b,_0x474e3d:0x451,_0x2960d5:0x450,_0x5f589e:0x464,_0x317576:0x4aa,_0x4b7721:0x44f,_0x507152:0x4a8,_0x5aae12:0x46d,_0x14d778:0x472,_0x5f05eb:0x49f,_0x2b7e5e:0x4de,_0x535b03:0x457,_0x57005d:0x4b6,_0x5a9927:0x48d,_0x8df652:0x4b6,_0x160551:0x42f,_0x67799f:0x4cd,_0x1704a8:0x467,_0x528b27:0x495,_0x490514:0x44c,_0x1c34d0:0x4c6,_0x2134e9:0x450,_0x3187c9:0x48a,_0x99010:0x4c5,_0x1f3775:0x48b,_0x2163d7:0x4ad,_0x3d4b82:0x4b3,_0x16b5be:0x45d,_0x4e7132:0x479,_0x33c361:0x448,_0x5731a3:0x43c,_0x8c9e8d:0x4a3,_0x100b74:0x4d4,_0x2d77f9:0x482,_0x41b9e8:0x47f,_0x40f7a8:0x477,_0x5d04f8:0x4a9,_0x134c3b:0x4cc},_0x2c94ee={_0x227a3d:0x594},_0x4a75c6={_0x2f5450:0x57e},_0x1d9ebd={'avZcD':'⚠️\x20\x20状态文件不存在'+_0x4660c1(0x4b5,0x4f2)+_0x3e6a10(_0x2b8df2._0x5ac2e6,0x4f6),'qbuAa':_0x3e6a10(_0x2b8df2._0x58c9bf,_0x2b8df2._0x153839)+'\x20已完成全部阶段','eHFzA':function(_0x5c8278,_0x4cc166){return _0x5c8278===_0x4cc166;},'sggdX':_0x4660c1(0x4c3,_0x2b8df2._0xd57245),'DQcGe':function(_0x65ed17,_0x2ad028){return _0x65ed17(_0x2ad028);},'ZwkUQ':function(_0x1ce1a1,_0x10bd60,_0x5a944a){return _0x1ce1a1(_0x10bd60,_0x5a944a);},'txqNx':_0x3e6a10(0x4c9,_0x2b8df2._0x4cf5f6)},_0x2511e9=await readStateFile(_0xfce0c3);if(!_0x2511e9)return _0x1d9ebd[_0x3e6a10(0x486,_0x2b8df2._0x18b82e)];const _0x4e0410=_0x1a97ee??Object['keys'](_0x2511e9[_0x3e6a10(0x4b7,_0x2b8df2._0x4967d0)])[_0x3e6a10(_0x2b8df2._0xdefc95,0x4e2)](_0x500ef7=>_0x2511e9[_0x3e6a10(0x4b7,0x498)][_0x500ef7]['phase']!==_0x4660c1(0x471,0x450));if(!_0x4e0410)return _0x1d9ebd[_0x4660c1(0x4d2,_0x2b8df2._0x39320a)];function _0x4660c1(_0xe3667d,_0x50ec0c){return _0x42e262(_0xe3667d-_0x4a75c6._0x2f5450,_0x50ec0c);}const _0x1c3037=_0x2511e9[_0x3e6a10(_0x2b8df2._0x535645,0x4c1)][_0x4e0410];if(!_0x1c3037){if(_0x1d9ebd[_0x3e6a10(0x48d,_0x2b8df2._0x1de5be)](_0x1d9ebd['sggdX'],_0x4660c1(0x47b,0x46b))){const _0x15bbbe=_0x2d8fd4[_0x289ff8],_0x305e2e=_0x2b1471[_0x15bbbe[_0x3e6a10(0x467,0x49d)]]??_0x15bbbe[_0x4660c1(_0x2b8df2._0x474e3d,0x3ff)],_0x64b5c3=_0x15bbbe['currentOpe'+'ration']||'-',_0x219784=_0x15bbbe[_0x4660c1(0x49c,_0x2b8df2._0x2960d5)+'ll']||'-';_0x41b4ea[_0x3e6a10(_0x2b8df2._0x5f589e,_0x2b8df2._0x317576)]('\x20\x20\x20'+_0x36338e['padEnd'](-0x4e5*0x5+-0x7*0x349+-0x1*-0x2f8a)+_0x3e6a10(0x483,0x4bd)+_0x305e2e['padEnd'](0x1ee1+0x403+-0x22d6)+_0x3e6a10(0x483,_0x2b8df2._0x4b7721)+_0x64b5c3[_0x4660c1(_0x2b8df2._0x507152,0x463)](-0x1d77+-0x1c69*-0x1+0x123)+_0x4660c1(_0x2b8df2._0x5aae12,_0x2b8df2._0x14d778)+_0x219784);}else return _0x3e6a10(_0x2b8df2._0x5f05eb,_0x2b8df2._0x2b7e5e)+_0x4e0410+(_0x3e6a10(_0x2b8df2._0x535b03,0x4a0)+_0x3e6a10(0x499,_0x2b8df2._0x57005d));}if(_0x1d9ebd[_0x3e6a10(_0x2b8df2._0x5a9927,_0x2b8df2._0x8df652)](_0x1c3037[_0x3e6a10(0x467,0x42b)],_0x4660c1(0x471,_0x2b8df2._0x160551)))return'['+_0x4e0410+']\x20已完成全部阶段';const _0xe8ce89=_0x1d9ebd[_0x3e6a10(0x484,_0x2b8df2._0x67799f)](computeNextPhase,_0x1c3037[_0x3e6a10(_0x2b8df2._0x1704a8,0x45f)]),_0x40208f=PHASE_NAMES[_0x1c3037[_0x3e6a10(0x467,0x410)]]??_0x1c3037[_0x4660c1(0x451,_0x2b8df2._0x528b27)],_0x2b8b45=PHASE_NAMES[_0xe8ce89]??_0xe8ce89,_0x162489={..._0x2511e9[_0x3e6a10(0x4b7,0x48e)]},_0x1dd75d=_0x162489,_0x204e2b={..._0x1c3037};_0x204e2b[_0x3e6a10(0x467,_0x2b8df2._0x490514)]=_0xe8ce89,_0x204e2b[_0x4660c1(0x4bf,_0x2b8df2._0x1c34d0)+_0x3e6a10(0x46f,_0x2b8df2._0x2134e9)]='',_0x204e2b[_0x3e6a10(0x4b2,_0x2b8df2._0x3187c9)+'ll']='',_0x1dd75d[_0x4e0410]=_0x204e2b;const _0x385a9b=computeOverallPhase(_0x1dd75d),_0x2b3f20={..._0x2511e9[_0x3e6a10(_0x2b8df2._0x99010,_0x2b8df2._0x1f3775)]};_0x2b3f20[_0x3e6a10(0x493,0x4dd)+'se']=_0x385a9b;const _0x39fd75={};_0x39fd75['project']=_0x2b3f20,_0x39fd75[_0x4660c1(0x4a1,_0x2b8df2._0x2163d7)]=_0x1dd75d,_0x39fd75[_0x3e6a10(0x4f1,_0x2b8df2._0x3d4b82)+_0x4660c1(_0x2b8df2._0x16b5be,0x4b7)]=_0x2511e9[_0x4660c1(0x4db,0x534)+_0x4660c1(_0x2b8df2._0x16b5be,_0x2b8df2._0x4e7132)],await _0x1d9ebd[_0x3e6a10(_0x2b8df2._0x33c361,0x45e)](writeStateFile,_0xfce0c3,_0x39fd75);const _0x9a0d2a=[];function _0x3e6a10(_0x2d6455,_0x4f28b3){return _0x42e262(_0x2d6455-_0x2c94ee._0x227a3d,_0x4f28b3);}_0x9a0d2a[_0x4660c1(0x44e,0x409)]('['+_0x4e0410+']\x20'+_0x40208f+_0x4660c1(0x475,_0x2b8df2._0x5731a3)+_0x2b8b45);if(_0xe8ce89==='completed'){if(_0x1d9ebd[_0x4660c1(0x4aa,_0x2b8df2._0x8c9e8d)]===_0x1d9ebd[_0x4660c1(_0x2b8df2._0x317576,_0x2b8df2._0x100b74)])_0x9a0d2a[_0x4660c1(0x44e,0x465)](_0x3e6a10(_0x2b8df2._0x2d77f9,_0x2b8df2._0x41b9e8)+_0x4e0410+_0x3e6a10(0x4b0,0x4d9));else{const _0x340d01=_0x13eaf2[_0x30694e[_0x4660c1(0x46f,0x422)]];_0x8a0a46[_0x8ed53['parentId']]={..._0x340d01,'childIds':_0x340d01[_0x4660c1(0x4c9,_0x2b8df2._0x1f3775)][_0x3e6a10(_0x2b8df2._0x40f7a8,0x450)](_0x528659=>_0x528659!==_0x409cc2)};}}return _0x9a0d2a[_0x3e6a10(_0x2b8df2._0x5d04f8,_0x2b8df2._0x134c3b)]('\x0a');}function computeNextPhase(_0x32f2b8){const _0x4d8959={_0x2243a6:0x333,_0x33be36:0x3c1,_0x368eb4:0x3f8,_0xb656c0:0x158,_0x213c42:0x143,_0x4dd530:0x158,_0x3105dd:0x167,_0x1f0ec0:0x34b,_0x256258:0x15f,_0x5b4565:0x411,_0xa96ff1:0xe4,_0x1aec08:0x10e,_0x14e66d:0x149,_0x12b560:0xf2,_0xa1ec7:0x17a,_0x3acaaa:0x15a,_0x1521ad:0x135};function _0x1ccb3c(_0x4d12b5,_0x16bdf7){return _0x42e262(_0x16bdf7-0x498,_0x4d12b5);}const _0x4f7dea={};_0x4f7dea[_0x1ccb3c(_0x4d8959._0x2243a6,0x375)]=function(_0x2da274,_0x14eeb4){return _0x2da274>=_0x14eeb4;},_0x4f7dea[_0x1ccb3c(_0x4d8959._0x33be36,_0x4d8959._0x368eb4)]=function(_0x517c0f,_0x177b68){return _0x517c0f-_0x177b68;},_0x4f7dea[_0x2b9d53(-0x11a,-_0x4d8959._0xb656c0)]=_0x2b9d53(-0x149,-_0x4d8959._0x213c42);function _0x2b9d53(_0x1308af,_0x877905){return _0x42e262(_0x1308af- -0x3c,_0x877905);}_0x4f7dea['BNRZB']=function(_0x2e9a42,_0x14e21c){return _0x2e9a42<_0x14e21c;},_0x4f7dea['IzKTF']=function(_0x5bf1e4,_0x2bd0b1){return _0x5bf1e4===_0x2bd0b1;},_0x4f7dea[_0x2b9d53(-0x165,-0x179)]=_0x2b9d53(-_0x4d8959._0x4dd530,-_0x4d8959._0x3105dd),_0x4f7dea[_0x2b9d53(-0xf2,-0xb3)]='HOsIK';const _0x1514a1=_0x4f7dea,_0x3603a8=PHASES[_0x1ccb3c(0x329,_0x4d8959._0x1f0ec0)](_0x32f2b8);if(_0x1514a1[_0x2b9d53(-_0x4d8959._0x256258,-0x15a)](_0x3603a8,-0x1*0x1f46+-0x7b*-0x4f+-0x6af))return _0x3603a8<_0x1514a1[_0x1ccb3c(_0x4d8959._0x5b4565,0x3f8)](PHASES[_0x2b9d53(-_0x4d8959._0xa96ff1,-0xf3)],0x24bc+0x3e3+-0x289e*0x1)?PHASES[_0x3603a8+(-0x1cc1*-0x1+0x14e5*-0x1+-0x7db)]:_0x1514a1[_0x2b9d53(-0x11a,-_0x4d8959._0x1aec08)];const _0x6a6dcd=PIPELINE_PHASES['indexOf'](_0x32f2b8);if(_0x6a6dcd>=0x14e0+0x1157*0x2+-0x378e)return _0x1514a1['BNRZB'](_0x6a6dcd,PIPELINE_PHASES['length']-(0x207*-0x4+0x1*-0x1597+0x1db4))?PIPELINE_PHASES[_0x6a6dcd+(-0x66e+0x1f95+0x3*-0x862)]:_0x2b9d53(-_0x4d8959._0x14e66d,-0x13b);if(_0x1514a1['IzKTF'](_0x32f2b8,_0x1514a1[_0x2b9d53(-0x165,-0x14d)]))return _0x1514a1[_0x2b9d53(-_0x4d8959._0x12b560,-0xaa)]===_0x2b9d53(-_0x4d8959._0xa1ec7,-_0x4d8959._0x3acaaa)?_0x1ccb3c(0x446,0x3ee)+',请先运行\x20new-'+'project\x20命令':PHASES[-0x1d27*-0x1+-0xc64+0x7*-0x265];return _0x2b9d53(-_0x4d8959._0x14e66d,-_0x4d8959._0x1521ad);}export async function newProject(_0x11ec04,_0x1bdd0d){const _0x4492b4={_0x4b6079:0x26e,_0x22776b:0x200,_0x21c568:0x1f4,_0x3fdad3:0x276,_0x3ec6a5:0xe4,_0x40143a:0x220,_0x983576:0x266,_0x189540:0x258,_0xb477be:0x189,_0x55aea9:0x143,_0x2788b4:0x10b,_0x317a8c:0x170,_0x451aa4:0x275,_0x338608:0x283,_0xa03d27:0x205,_0x278bca:0xf6,_0x1f1a7d:0x137,_0x1eedc1:0xe7,_0x2d5211:0x11b,_0x35c1a1:0x14c,_0x387e72:0x20a,_0x4a3dc2:0xf1},_0xda13ef={_0x4f6455:0x22c},_0x3e2771={'ZKOAu':function(_0x451348,_0x2e2222){return _0x451348(_0x2e2222);},'QreUv':_0x2877db(0x256,0x219),'HoOTo':function(_0x4f1f54,_0x1a5a13,_0x556950){return _0x4f1f54(_0x1a5a13,_0x556950);}},_0x5436c7=resolve(_0x11ec04,'..');if(!_0x3e2771[_0x2877db(_0x4492b4._0x4b6079,0x293)](existsSync,_0x5436c7)){const _0x1703de={};_0x1703de[_0x2877db(_0x4492b4._0x22776b,0x24f)]=!![],mkdirSync(_0x5436c7,_0x1703de);}const _0x199f5e=generateAgentId(),_0x2f6c93={};_0x2f6c93[_0x2877db(0x280,0x239)]=_0x199f5e,_0x2f6c93[_0x5c0776(0x11d,0xf7)]=null,_0x2f6c93[_0x5c0776(0x177,0x1c4)]=[],_0x2f6c93['phase']=_0x3e2771[_0x2877db(0x229,_0x4492b4._0x21c568)],_0x2f6c93[_0x2877db(0x27d,_0x4492b4._0x3fdad3)+_0x5c0776(0x107,_0x4492b4._0x3ec6a5)]='',_0x2f6c93[_0x2877db(0x2a4,0x253)+'ll']='';const _0x473178=_0x2f6c93,_0xf9929f={};_0xf9929f[_0x2877db(_0x4492b4._0x40143a,0x1f9)]=_0x1bdd0d,_0xf9929f[_0x2877db(0x25b,0x234)+'se']=_0x2877db(0x242,0x219);const _0x261a22={};_0x261a22[_0x199f5e]=_0x473178;const _0x3a1362={};_0x3a1362[_0x2877db(0x276,_0x4492b4._0x983576)]=_0xf9929f;function _0x2877db(_0x62184b,_0x23f570){return _0x42e262(_0x23f570-0x335,_0x62184b);}_0x3a1362[_0x2877db(0x250,_0x4492b4._0x189540)]=_0x261a22,_0x3a1362[_0x5c0776(_0x4492b4._0xb477be,_0x4492b4._0x55aea9)+_0x5c0776(_0x4492b4._0x2788b4,0xf8)]=null,await _0x3e2771[_0x5c0776(_0x4492b4._0x317a8c,0x1b0)](writeStateFile,_0x11ec04,_0x3a1362);const _0x4c2a7a=[];_0x4c2a7a['push'](_0x2877db(0x26f,_0x4492b4._0x451aa4)+_0x1bdd0d),_0x4c2a7a[_0x2877db(0x1cc,0x205)](_0x2877db(0x256,_0x4492b4._0x338608)+_0x5436c7),_0x4c2a7a[_0x2877db(0x1c5,_0x4492b4._0xa03d27)](_0x5c0776(_0x4492b4._0x278bca,0x134)+_0x2877db(0x252,0x204)+_0x199f5e);function _0x5c0776(_0x422fb5,_0x3e190e){return _0x42e262(_0x422fb5-_0xda13ef._0x4f6455,_0x3e190e);}return _0x4c2a7a[_0x5c0776(0xfc,_0x4492b4._0x1f1a7d)](_0x5c0776(_0x4492b4._0x1eedc1,_0x4492b4._0x2d5211)+PIPELINE_PHASES[_0x5c0776(0x17c,_0x4492b4._0x35c1a1)](_0x3623c9=>PHASE_NAMES[_0x3623c9]??_0x3623c9)[_0x2877db(_0x4492b4._0x387e72,0x24a)](_0x5c0776(0x123,_0x4492b4._0x4a3dc2))),_0x4c2a7a['join']('\x0a');}export async function updateOperation(_0x18bd39,_0x227ce5,_0x5f4843,_0x95e8d0){const _0x519ed9={_0x3915b5:0x376,_0x1294c3:0x343,_0x124708:0x316,_0x2f69ed:0x32b,_0x58b8e0:0x2ae,_0x134d15:0x28a,_0x6290ff:0x2fb,_0x516515:0x326,_0x734e50:0x351,_0x2d8acf:0x2e2,_0x5e3f77:0x214,_0x51407d:0x264,_0x1141fe:0x2c7,_0x4710e9:0x34c},_0x84bfac={_0x4e1ae8:0x420},_0x1e657d={_0x32a71d:0xa5},_0x4a7c7c={'TSluy':_0x30ad52(0x34f,_0x519ed9._0x3915b5),'ocqsF':function(_0x4d237c,_0x4080ed,_0x34ecd9){return _0x4d237c(_0x4080ed,_0x34ecd9);}},_0x3e85aa=await readStateFile(_0x18bd39);if(!_0x3e85aa)return _0x4a7c7c[_0x25f816(0x2ac,0x25f)];const _0x11acc0=_0x3e85aa[_0x30ad52(0x342,_0x519ed9._0x1294c3)][_0x227ce5];if(!_0x11acc0)return _0x30ad52(_0x519ed9._0x124708,_0x519ed9._0x2f69ed)+_0x227ce5+('\x20不存在于\x20stat'+_0x25f816(_0x519ed9._0x58b8e0,_0x519ed9._0x134d15));const _0x45ed86={..._0x3e85aa[_0x30ad52(0x38a,0x343)]},_0x3f47a2=_0x45ed86,_0x49553a={..._0x11acc0};_0x49553a[_0x25f816(0x318,0x2c6)+_0x30ad52(0x313,0x2fb)]=_0x5f4843,_0x49553a[_0x30ad52(_0x519ed9._0x6290ff,0x33e)+'ll']=_0x95e8d0;function _0x25f816(_0xb3971,_0x408f03){return _0x5e12ea(_0xb3971,_0x408f03- -_0x1e657d._0x32a71d);}_0x3f47a2[_0x227ce5]=_0x49553a;const _0x93a6b0={};_0x93a6b0[_0x25f816(0x267,0x2b6)]=_0x3e85aa[_0x30ad52(_0x519ed9._0x516515,_0x519ed9._0x734e50)],_0x93a6b0['agents']=_0x3f47a2;function _0x30ad52(_0x1b94ac,_0x218d2c){return _0x42e262(_0x218d2c-_0x84bfac._0x4e1ae8,_0x1b94ac);}return _0x93a6b0[_0x25f816(0x290,_0x519ed9._0x2d8acf)+_0x25f816(_0x519ed9._0x5e3f77,_0x519ed9._0x51407d)]=_0x3e85aa[_0x25f816(0x304,_0x519ed9._0x2d8acf)+'pshot'],await _0x4a7c7c[_0x30ad52(_0x519ed9._0x1141fe,0x2f8)](writeStateFile,_0x18bd39,_0x93a6b0),_0x30ad52(_0x519ed9._0x4710e9,_0x519ed9._0x124708)+_0x227ce5+']\x20操作已更新:\x20'+_0x5f4843+'\x20('+_0x95e8d0+')';}export async function registerAgent(_0x7b3280,_0x409b7d,_0x3f841d={}){const _0x8240f5={_0x5ed0f9:0x30b,_0x306293:0x36e,_0x47788c:0x4,_0x1ae8cd:0x306,_0x4184aa:0x339,_0x528c93:0x2db,_0x29ffe0:0x2d1,_0x4646f1:0x351,_0x29cf0c:0x33f,_0x5a87bf:0x2bf,_0x1a916a:0x2e1,_0x4b196d:0x314,_0x4ea816:0x3c,_0x14827c:0x2cb,_0x307409:0x2f,_0x424c4a:0x13,_0x5d8cce:0x7e,_0x500fdc:0x54,_0x288e8e:0x2b7,_0x54cdae:0x2cf,_0x4d5c7c:0x2b4,_0x362ec8:0x38,_0x58cddf:0x3b,_0xee6bfe:0xc6,_0x57a100:0x2e0,_0x3c9cd1:0x31c,_0xdf83b2:0x10,_0x396011:0x68,_0x5898f6:0x3a1,_0x58f286:0x372,_0x126743:0x22,_0x1ecfbf:0x333,_0x570b21:0x9b,_0x15e1fc:0x3a2,_0x51bc01:0x363,_0x2a122e:0x379,_0x5f13cf:0x21,_0x5a3c9a:0xa,_0x54c64b:0x370,_0xafcaa8:0x349,_0x48d365:0x22,_0xbc90fd:0x16,_0x1cf4fb:0x336,_0x4e9906:0x375,_0xa59732:0x330,_0x3c5a8e:0x81,_0x4ec2cd:0x33,_0xa5e911:0x69,_0x4098bd:0x300,_0x57ba8c:0x327},_0x9ceff4={_0x107a45:0x365},_0x188a31={'BITrr':function(_0x527102,_0x5f5ba9){return _0x527102>=_0x5f5ba9;},'ikWBq':function(_0x1ea760,_0x506904){return _0x1ea760-_0x506904;},'sWzjl':function(_0xee4f69,_0x316aec){return _0xee4f69+_0x316aec;},'FVlnd':_0x24de6b(0x2ea,_0x8240f5._0x5ed0f9),'EeOte':function(_0x21ca56,_0x488708){return _0x21ca56<_0x488708;},'lXxUH':function(_0x265bc6,_0x53e26c){return _0x265bc6+_0x53e26c;},'zhEBe':function(_0x14fb68,_0x43cee2){return _0x14fb68===_0x43cee2;},'KAuIU':_0x1f6e41(-0x57,-0x80),'vGiZT':function(_0x1adc6d,_0x3a2b91){return _0x1adc6d(_0x3a2b91);},'VSWHZ':_0x24de6b(0x34e,_0x8240f5._0x306293)+_0x1f6e41(-_0x8240f5._0x47788c,-0x4e)+_0x24de6b(_0x8240f5._0x1ae8cd,0x34e),'HmVok':'zdUbe','EpIaS':_0x24de6b(0x340,_0x8240f5._0x4184aa),'eGSjj':function(_0x896982,_0x5f1606){return _0x896982!==_0x5f1606;},'rmhrY':_0x24de6b(_0x8240f5._0x528c93,_0x8240f5._0x29ffe0),'YTwPU':_0x24de6b(_0x8240f5._0x4646f1,_0x8240f5._0x29cf0c)},_0x582798=await readStateFile(_0x7b3280);if(!_0x582798)return _0x188a31[_0x1f6e41(-0x2b,-0x42)];if(_0x582798['agents'][_0x409b7d]){if(_0x188a31[_0x24de6b(_0x8240f5._0x5a87bf,0x310)](_0x188a31[_0x24de6b(_0x8240f5._0x1a916a,_0x8240f5._0x4b196d)],_0x188a31[_0x1f6e41(0x1,-_0x8240f5._0x4ea816)])){const _0x3d0094=_0x48e838[_0x24de6b(0x307,_0x8240f5._0x14827c)](_0x1d73b0);if(_0x188a31[_0x1f6e41(-_0x8240f5._0x307409,-0x77)](_0x3d0094,-0x1c99+0xa99*0x1+0x1200))return _0x3d0094<_0x188a31['ikWBq'](_0xd62984[_0x1f6e41(0x1d,_0x8240f5._0x424c4a)],0x1a4c+-0x1a8f+0x44)?_0x1b4c93[_0x188a31[_0x1f6e41(-_0x8240f5._0x5d8cce,-0xc8)](_0x3d0094,-0x1c*0x31+-0x1*0x2cb+-0x3a*-0x24)]:_0x188a31['FVlnd'];const _0x364be8=_0x118d3b['indexOf'](_0x5d974f);if(_0x188a31[_0x1f6e41(-0x2f,0x1a)](_0x364be8,0x3*-0x5e7+-0x677+0x182c))return _0x188a31['EeOte'](_0x364be8,_0x5b892a[_0x24de6b(0x31f,0x370)]-(-0x9b2+-0x28d+0xc40))?_0x1d942c[_0x188a31['lXxUH'](_0x364be8,-0x1*0x1e11+-0xb82*0x2+-0x5a*-0x97)]:_0x188a31[_0x1f6e41(-0x39,-_0x8240f5._0x500fdc)];if(_0x188a31['zhEBe'](_0x467b34,_0x188a31[_0x24de6b(_0x8240f5._0x288e8e,_0x8240f5._0x54cdae)]))return _0x511b94[0x9*-0x347+-0x12*0xa6+0x3*0xdb9];return _0x24de6b(_0x8240f5._0x4d5c7c,0x30b);}else return _0x1f6e41(-_0x8240f5._0x362ec8,0x5)+_0x409b7d+_0x1f6e41(-0x3a,-_0x8240f5._0x58cddf);}const _0x38ec44=_0x3f841d['phase']??_0x188a31[_0x1f6e41(-0x84,-_0x8240f5._0xee6bfe)],_0x46e223=_0x3f841d[_0x24de6b(_0x8240f5._0x57a100,0x309)]??null,_0x2415fc={};_0x2415fc[_0x24de6b(0x330,_0x8240f5._0x3c9cd1)]=_0x409b7d,_0x2415fc['parentId']=_0x46e223,_0x2415fc[_0x1f6e41(_0x8240f5._0xdf83b2,0xb)]=[],_0x2415fc[_0x1f6e41(-_0x8240f5._0x396011,-0x23)]=_0x38ec44,_0x2415fc[_0x24de6b(_0x8240f5._0x5898f6,0x359)+_0x24de6b(0x29c,0x2f3)]='',_0x2415fc[_0x24de6b(_0x8240f5._0x58f286,0x336)+'ll']='';const _0x473948=_0x2415fc,_0xdc8cca={..._0x582798['agents']};_0xdc8cca[_0x409b7d]=_0x473948;const _0x482078=_0xdc8cca;function _0x1f6e41(_0x431ede,_0xc7ddcf){return _0x5e12ea(_0xc7ddcf,_0x431ede- -_0x9ceff4._0x107a45);}if(_0x46e223&&_0x482078[_0x46e223]){const _0xff43fb=_0x482078[_0x46e223];if(!_0xff43fb[_0x1f6e41(_0x8240f5._0xdf83b2,-_0x8240f5._0x126743)]['includes'](_0x409b7d)){if(_0x188a31[_0x24de6b(_0x8240f5._0x1ecfbf,0x2f6)](_0x188a31['rmhrY'],_0x188a31[_0x1f6e41(-0x62,-_0x8240f5._0x570b21)])){const _0x422bc4={..._0xff43fb};_0x422bc4['childIds']=[..._0xff43fb[_0x24de6b(_0x8240f5._0x15e1fc,_0x8240f5._0x51bc01)],_0x409b7d],_0x482078[_0x46e223]=_0x422bc4;}else{if(!_0x188a31[_0x24de6b(_0x8240f5._0x2a122e,0x326)](_0x480e10,_0x3fb693))return null;const _0x1b55de=new _0x204b27(_0x3d064c);return _0x1b55de[_0x1f6e41(-0x7,-_0x8240f5._0x5f13cf)]();}}}const _0x3fd524={};_0x3fd524[_0x1f6e41(-_0x8240f5._0x5a3c9a,-0x40)]=_0x582798[_0x24de6b(_0x8240f5._0x54c64b,_0x8240f5._0xafcaa8)],_0x3fd524[_0x1f6e41(-0x18,-0x55)]=_0x482078,_0x3fd524[_0x1f6e41(_0x8240f5._0x48d365,-0x12)+_0x1f6e41(-0x5c,-_0x8240f5._0xbc90fd)]=_0x582798[_0x24de6b(_0x8240f5._0x1cf4fb,_0x8240f5._0x4e9906)+_0x24de6b(_0x8240f5._0xa59732,0x2f7)],await writeStateFile(_0x7b3280,_0x3fd524);const _0x29840c=PHASE_NAMES[_0x38ec44]??_0x38ec44;function _0x24de6b(_0x3eb75b,_0x209699){return _0x5e12ea(_0x3eb75b,_0x209699- -0x12);}const _0x20f92e=[];_0x20f92e['push'](_0x1f6e41(-_0x8240f5._0x3c5a8e,-_0x8240f5._0x4ec2cd)+_0x1f6e41(-_0x8240f5._0xa5e911,-0xa7)+_0x409b7d),_0x20f92e[_0x24de6b(0x2db,0x2e8)](_0x24de6b(0x2ad,_0x8240f5._0x4098bd)+_0x29840c);if(_0x46e223)_0x20f92e['push'](_0x24de6b(0x30f,_0x8240f5._0x57ba8c)+':\x20'+_0x46e223);return _0x20f92e[_0x1f6e41(-0x26,-0x48)]('\x0a');}export async function deregisterAgent(_0x2273e6,_0x18eb6f){const _0x3b2884={_0x9d81e7:0x555,_0x674cd1:0x257,_0x49ba69:0x23a,_0x5badf7:0x26f,_0x4aefbb:0x557,_0xb0527b:0x1fd,_0x18f43a:0x4f3,_0x508cb3:0x509,_0x592cfc:0x1fb,_0x5a3c23:0x229,_0x362b89:0x255,_0x4b37f:0x209,_0x53089b:0x1c8,_0x3cc3a8:0x54c,_0x131903:0x4e3,_0x7a0e47:0x27d,_0x5a79e4:0x530,_0x97a580:0x22d,_0x3c5a9e:0x1d8,_0x50da71:0x518,_0xa66164:0x4bc,_0x3dfa9d:0x1e9,_0x4a6d1b:0x232,_0x41269f:0x1f7,_0x4afc0e:0x1e4},_0x406764={_0x465db2:0x30a},_0x50975c={'HaOAG':function(_0x3981f9,_0x2f6ed0){return _0x3981f9-_0x2f6ed0;},'JvCtY':_0x710487(_0x3b2884._0x9d81e7,0x549),'WfMoD':function(_0x32cbb8,_0x40f806){return _0x32cbb8(_0x40f806);},'TXxqq':function(_0x348d39,_0x22e9db){return _0x348d39!==_0x22e9db;},'qruGu':_0x710487(0x53a,0x54b),'weYZA':function(_0x2a39da,_0x57f001,_0x155462){return _0x2a39da(_0x57f001,_0x155462);}},_0xf8424e=await _0x50975c[_0x383946(_0x3b2884._0x674cd1,0x2aa)](readStateFile,_0x2273e6);if(!_0xf8424e)return _0x50975c[_0x710487(0x563,0x55f)];if(!_0xf8424e['agents'][_0x18eb6f])return _0x50975c['TXxqq'](_0x383946(_0x3b2884._0x49ba69,_0x3b2884._0x5badf7),'JOZgn')?_0x710487(0x502,0x4b1)+_0x18eb6f+_0x383946(0x26d,0x223):_0x43a3a6<_0x50975c['HaOAG'](_0x21f9a8[_0x710487(_0x3b2884._0x4aefbb,0x568)],-0x3c6+-0x1327*0x2+-0x15*-0x201)?_0x9f4f1c[_0x1d7f1d+(0x13c*0x5+0x109b+-0x35*0x6e)]:_0x383946(_0x3b2884._0xb0527b,0x214);const _0x2be778=_0xf8424e['agents'][_0x18eb6f],_0x19e399={..._0xf8424e[_0x383946(0x22d,0x277)]};function _0x383946(_0x55f404,_0x49f9e0){return _0x42e262(_0x55f404-_0x406764._0x465db2,_0x49f9e0);}const _0x50e732=_0x19e399;delete _0x50e732[_0x18eb6f];if(_0x2be778[_0x383946(0x1fb,0x24b)]&&_0x50e732[_0x2be778[_0x710487(0x4f0,0x525)]]){if(_0x50975c[_0x710487(_0x3b2884._0x18f43a,_0x3b2884._0x508cb3)]==='AMtzu'){const _0x4b541a=_0x50e732[_0x2be778[_0x383946(_0x3b2884._0x592cfc,0x250)]];_0x50e732[_0x2be778[_0x383946(0x1fb,_0x3b2884._0x5a3c23)]]={..._0x4b541a,'childIds':_0x4b541a[_0x383946(_0x3b2884._0x362b89,_0x3b2884._0x4b37f)]['filter'](_0x3f1477=>_0x3f1477!==_0x18eb6f)};}else return _0x50975c['JvCtY'];}const _0x3548aa=Object[_0x383946(_0x3b2884._0x53089b,0x206)](_0x50e732),_0x4bf231=_0x3548aa['length']>-0x47*-0x1+-0x1ef+0x1*0x1a8?_0x50975c[_0x710487(_0x3b2884._0x3cc3a8,0x533)](computeOverallPhase,_0x50e732):_0x710487(_0x3b2884._0x131903,0x503),_0x493b0a={..._0xf8424e[_0x383946(0x23b,_0x3b2884._0x7a0e47)]};function _0x710487(_0x15111b,_0x45de77){return _0x42e262(_0x15111b-0x5ff,_0x45de77);}_0x493b0a['currentPha'+'se']=_0x4bf231;const _0x4d088d={};return _0x4d088d[_0x710487(_0x3b2884._0x5a79e4,0x525)]=_0x493b0a,_0x4d088d[_0x383946(_0x3b2884._0x97a580,_0x3b2884._0x3c5a9e)]=_0x50e732,_0x4d088d[_0x710487(0x55c,_0x3b2884._0x50da71)+_0x710487(0x4de,_0x3b2884._0xa66164)]=_0xf8424e[_0x710487(0x55c,0x52c)+_0x383946(_0x3b2884._0x3dfa9d,_0x3b2884._0x4a6d1b)],await _0x50975c[_0x383946(0x1eb,_0x3b2884._0x41269f)](writeStateFile,_0x2273e6,_0x4d088d),'✅\x20Agent\x20已注'+_0x383946(0x23d,_0x3b2884._0x4afc0e)+_0x18eb6f;}export async function showProgress(_0x35052d){const _0x46fb4d={_0x488d54:0x1ed,_0x409561:0x3bb,_0x3eecc3:0x3e1,_0x41e8de:0x204,_0x801742:0x200,_0x25cac9:0x23c,_0x54a107:0x20e,_0x3d1e10:0x262,_0x2a4c03:0x264,_0x305a0f:0x3ce,_0x115800:0x3c3,_0x2ed0f6:0x3d2,_0x1bdf9b:0x349,_0x1f8244:0x35f,_0x26d3c1:0x283,_0x52ee52:0x2cb,_0x34bb9d:0x277,_0x58f506:0x2b3,_0x5b060d:0x251,_0x5dd5ff:0x38a,_0x469564:0x27c,_0x4e360e:0x340,_0x3b727a:0x277,_0x27cade:0x29f,_0x3d6291:0x23a,_0x4fda27:0x216,_0x2d3710:0x3f3,_0x3ab5d3:0x21e,_0x23de9b:0x277,_0x188cac:0x22d,_0x4cea7b:0x35e,_0x193cf4:0x1d5,_0x443264:0x36b,_0x35ee38:0x1a8,_0x2340d1:0x3f2,_0x1dc111:0x400,_0x5fbac6:0x3ce,_0x27ce8b:0x29d,_0x1382ff:0x3f8,_0x33a544:0x35b,_0x49fe20:0x33e,_0x2a2431:0x359,_0x4d5a49:0x211,_0x538401:0x39f,_0x29adb5:0x39f,_0x5eafe9:0x29f,_0x19bcc8:0x2c8,_0x51c72a:0x315,_0x488152:0x35e,_0x2097ae:0x366,_0x49686:0x229,_0x5e754b:0x272,_0x47de8a:0x25a,_0x303fd2:0x258,_0x323494:0x27d,_0x4810f6:0x32b,_0x596c8d:0x37a,_0x25c17a:0x34e,_0x5cc2b5:0x3a6},_0xe594ba={_0x45e72d:0x571},_0x1f2e09={};_0x1f2e09[_0xc3cb4a(-_0x46fb4d._0x488d54,-0x236)]=_0x365e67(_0x46fb4d._0x409561,_0x46fb4d._0x3eecc3)+_0x365e67(0x3e2,0x3c2)+'project\x20命令',_0x1f2e09[_0xc3cb4a(-_0x46fb4d._0x41e8de,-0x1b4)]=function(_0xf935b3,_0xbb1c21){return _0xf935b3>_0xbb1c21;},_0x1f2e09[_0xc3cb4a(-_0x46fb4d._0x801742,-_0x46fb4d._0x25cac9)]=function(_0x361de5,_0x2c675f){return _0x361de5*_0x2c675f;},_0x1f2e09[_0xc3cb4a(-0x27f,-0x279)]=function(_0xf4fb43,_0x30675a){return _0xf4fb43+_0x30675a;},_0x1f2e09[_0xc3cb4a(-_0x46fb4d._0x54a107,-0x1c2)]=_0x365e67(0x3c4,0x3a8),_0x1f2e09[_0xc3cb4a(-0x218,-_0x46fb4d._0x3d1e10)]=function(_0x2753b8,_0x3263e2){return _0x2753b8-_0x3263e2;};const _0x355685=_0x1f2e09,_0x5da2e4=await readStateFile(_0x35052d);if(!_0x5da2e4)return _0x355685[_0x365e67(0x3c6,0x3e5)];const _0x415210=_0x5da2e4['agents'],_0x108838=Object['keys'](_0x415210),_0x1695a2=_0x108838['length'],_0x102458=_0x108838[_0xc3cb4a(-_0x46fb4d._0x2a4c03,-0x2a4)](_0x56f3b3=>_0x415210[_0x56f3b3]['phase']==='completed')[_0x365e67(0x415,0x3e3)],_0x4bb01b=_0x355685[_0x365e67(0x378,_0x46fb4d._0x305a0f)](_0x1695a2,-0x184e+-0x1d*-0x151+-0x43*0x35)?Math[_0x365e67(0x3b2,_0x46fb4d._0x115800)](_0x355685[_0x365e67(0x385,_0x46fb4d._0x2ed0f6)](_0x102458/_0x1695a2,0x1d61+-0xa89*-0x3+-0x115*0x38)):-0x732+-0x106a+-0xbce*-0x2,_0x195eae={};for(const _0x43dc81 of _0x108838){const _0x2f9e44=_0x415210[_0x43dc81][_0xc3cb4a(-0x274,-0x2af)];_0x195eae[_0x2f9e44]=_0x355685[_0x365e67(_0x46fb4d._0x1bdf9b,0x353)](_0x195eae[_0x2f9e44]??-0xa16+-0x9ea+0x1400,-0x3*0x856+0x21a+0x16e9);}function _0x365e67(_0x3ed0eb,_0x5959aa){return _0x5e12ea(_0x3ed0eb,_0x5959aa-0x61);}const _0x8a770e=[];_0x8a770e[_0x365e67(_0x46fb4d._0x1f8244,0x35b)]('📊\x20项目进度:\x20'+_0x5da2e4['project'][_0xc3cb4a(-_0x46fb4d._0x26d3c1,-_0x46fb4d._0x52ee52)]),_0x8a770e[_0xc3cb4a(-_0x46fb4d._0x34bb9d,-0x237)](_0xc3cb4a(-0x25d,-_0x46fb4d._0x58f506)+(PHASE_NAMES[_0x5da2e4[_0x365e67(0x3ff,0x3bc)][_0x365e67(0x3ac,0x38a)+'se']]??_0x5da2e4[_0xc3cb4a(-0x216,-_0x46fb4d._0x5b060d)][_0x365e67(0x344,_0x46fb4d._0x5dd5ff)+'se'])),_0x8a770e[_0xc3cb4a(-_0x46fb4d._0x34bb9d,-0x29a)](_0xc3cb4a(-_0x46fb4d._0x469564,-0x227)+_0x5da2e4[_0x365e67(0x357,_0x46fb4d._0x4e360e)]),_0x8a770e[_0xc3cb4a(-_0x46fb4d._0x3b727a,-_0x46fb4d._0x27cade)](_0x365e67(0x389,0x386)+_0x5da2e4[_0xc3cb4a(-_0x46fb4d._0x3d6291,-_0x46fb4d._0x4fda27)]),_0x8a770e[_0x365e67(0x335,0x35b)](_0x365e67(_0x46fb4d._0x2d3710,0x3da)+_0x4bb01b+_0xc3cb4a(-_0x46fb4d._0x3ab5d3,-0x1e2)+_0x102458+'/'+_0x1695a2+'\x20Agent)'),_0x8a770e[_0xc3cb4a(-_0x46fb4d._0x23de9b,-_0x46fb4d._0x188cac)](''),_0x8a770e[_0x365e67(_0x46fb4d._0x4cea7b,0x35b)](_0x355685[_0xc3cb4a(-0x20e,-_0x46fb4d._0x193cf4)]);for(const [_0x4a6270,_0x3c2ab9]of Object['entries'](_0x195eae)){const _0x5194d1=PHASE_NAMES[_0x4a6270]??_0x4a6270,_0x26630c='█'[_0x365e67(0x392,_0x46fb4d._0x443264)](_0x3c2ab9)+'░'[_0x365e67(0x392,_0x46fb4d._0x443264)](Math[_0xc3cb4a(-0x265,-0x214)](-0x1b6a+0x517+0x1653,_0x355685[_0x365e67(0x3c7,0x3ba)](_0x1695a2,_0x3c2ab9)));_0x8a770e['push'](_0xc3cb4a(-0x1ec,-_0x46fb4d._0x35ee38)+_0x5194d1[_0x365e67(_0x46fb4d._0x2340d1,0x3b5)](-0x19f4+-0x66+0x1*0x1a68)+'\x20'+_0x26630c+'\x20'+_0x3c2ab9);}function _0xc3cb4a(_0x5086e8,_0x1ca9a8){return _0x5e12ea(_0x1ca9a8,_0x5086e8- -_0xe594ba._0x45e72d);}_0x8a770e[_0xc3cb4a(-0x277,-0x25b)]('');if(_0x355685[_0x365e67(_0x46fb4d._0x1dc111,_0x46fb4d._0x5fbac6)](_0x108838['length'],0x1*-0x25b3+0x1*0x16af+0xf04)){_0x8a770e[_0xc3cb4a(-0x277,-_0x46fb4d._0x27ce8b)](_0x365e67(_0x46fb4d._0x1382ff,0x3c9)+'\x20详情:'),_0x8a770e[_0x365e67(0x33f,_0x46fb4d._0x33a544)](_0x365e67(_0x46fb4d._0x49fe20,0x377)+_0x365e67(_0x46fb4d._0x5dd5ff,_0x46fb4d._0x2a2431)+_0xc3cb4a(-0x1e2,-_0x46fb4d._0x4d5a49)+'\x20\x20\x20\x20\x20\x20|\x20操作'+_0xc3cb4a(-0x261,-0x232)+_0x365e67(0x3b4,_0x46fb4d._0x538401)+'工具'),_0x8a770e[_0x365e67(_0x46fb4d._0x29adb5,0x35b)](_0xc3cb4a(-0x25a,-_0x46fb4d._0x5eafe9)+'-'[_0x365e67(0x3a3,0x36b)](-0x23d9*-0x1+-0x1bdf*0x1+0x6*-0x147));for(const _0x3fd928 of _0x108838){const _0x46fe44=_0x415210[_0x3fd928],_0x4edd54=PHASE_NAMES[_0x46fe44[_0xc3cb4a(-0x274,-_0x46fb4d._0x19bcc8)]]??_0x46fe44[_0x365e67(_0x46fb4d._0x51c72a,_0x46fb4d._0x488152)],_0x3b039e=_0x46fe44[_0x365e67(0x3ed,0x3cc)+_0x365e67(0x39a,_0x46fb4d._0x2097ae)]||'-',_0x3abd83=_0x46fe44[_0xc3cb4a(-_0x46fb4d._0x49686,-_0x46fb4d._0x5e754b)+'ll']||'-';_0x8a770e['push'](_0xc3cb4a(-_0x46fb4d._0x47de8a,-0x229)+_0x3fd928['padEnd'](-0x33*-0x4+0x2490+0xde*-0x2b)+_0xc3cb4a(-_0x46fb4d._0x303fd2,-_0x46fb4d._0x323494)+_0x4edd54['padEnd'](-0x1*0x1a8f+-0x19c9+-0x26*-0x161)+_0x365e67(_0x46fb4d._0x4810f6,_0x46fb4d._0x596c8d)+_0x3b039e['padEnd'](0xd3*-0x25+-0xaab*0x3+-0x25*-0x1b1)+_0x365e67(_0x46fb4d._0x25c17a,0x37a)+_0x3abd83);}}return _0x8a770e[_0x365e67(_0x46fb4d._0x5cc2b5,0x3a0)]('\x0a');}export async function quickTask(_0x140143,_0x3b1234){const _0x4afad1={_0x48f3f5:0x3f,_0x3d1a3a:0x1a1,_0x324fa4:0x1b4,_0x6ca164:0x11f,_0x10476b:0x35,_0x3872eb:0x1d,_0x484285:0x1b5,_0x470465:0x132,_0xcfde5b:0x14,_0x3efd90:0x111,_0x52f84e:0x7c,_0x2b4f48:0x81,_0x4ae070:0x67,_0x2337ec:0xc,_0x9d9ff2:0x16c,_0x2a083d:0x178,_0x5967b0:0x122,_0x447e47:0xd2},_0x142f37={_0x965f76:0xc9},_0xc4720d={_0x32cd31:0x1d1},_0x5dea2c={'DOtLv':function(_0x4d3ea5,_0x56b9f){return _0x4d3ea5(_0x56b9f);},'NOZHl':function(_0x15cf84,_0x5351df){return _0x15cf84(_0x5351df);},'HUNHg':_0xa8d6f6(-_0x4afad1._0x48f3f5,-0x50),'Tvdqq':'execute','xOekU':_0xa090a7(_0x4afad1._0x3d1a3a,_0x4afad1._0x324fa4),'RCHjJ':function(_0x16d168,_0x3c752f,_0x25bc95){return _0x16d168(_0x3c752f,_0x25bc95);}};function _0xa090a7(_0x21f74f,_0x54c4c1){return _0x5e12ea(_0x54c4c1,_0x21f74f- -_0xc4720d._0x32cd31);}const _0x5bc518=await _0x5dea2c['DOtLv'](readStateFile,_0x140143);if(!_0x5bc518){const _0x54c536=resolve(_0x140143,'..');if(!_0x5dea2c[_0xa090a7(_0x4afad1._0x6ca164,0x13e)](existsSync,_0x54c536)){const _0x10aaf6={};_0x10aaf6[_0xa8d6f6(-_0x4afad1._0x10476b,-_0x4afad1._0x3872eb)]=!![],mkdirSync(_0x54c536,_0x10aaf6);}}const _0x1becc1=_0x5bc518?.[_0xa090a7(0x18a,_0x4afad1._0x484285)][_0xa090a7(0x11d,_0x4afad1._0x470465)]??_0x5dea2c['HUNHg'],_0x560899=_0x5bc518?Object[_0xa8d6f6(-0xc5,-0x79)](_0x5bc518[_0xa8d6f6(-0x39,-_0x4afad1._0xcfde5b)])[0x146c+-0xdd3+-0x699]??generateAgentId():generateAgentId(),_0x38dd54={'agentId':_0x560899,'parentId':null,'childIds':[],'phase':_0x5dea2c[_0xa090a7(0x1ab,0x15c)],'currentOperation':_0x3b1234['slice'](0x13d5+0x1d09+-0x30de,0x11b2+-0x109d+0x3b*-0x3),'currentSkill':_0x5dea2c[_0xa090a7(_0x4afad1._0x3efd90,0xe3)]},_0x5cb2e0={};function _0xa8d6f6(_0x4e2833,_0x55bae7){return _0x42e262(_0x55bae7-_0x142f37._0x965f76,_0x4e2833);}_0x5cb2e0[_0x560899]=_0x38dd54,await _0x5dea2c[_0xa8d6f6(-_0x4afad1._0x52f84e,-_0x4afad1._0x2b4f48)](writeStateFile,_0x140143,{'project':{'name':_0x1becc1,'currentPhase':_0x5dea2c[_0xa090a7(0x111,0x137)]},'agents':_0x5cb2e0,'machineSnapshot':null});const _0x2e8340=[];return _0x2e8340['push'](_0xa090a7(0x1b2,0x1a7)),_0x2e8340[_0xa8d6f6(-0xa0,-_0x4afad1._0x4ae070)](_0xa8d6f6(0x16,-_0x4afad1._0x2337ec)+_0x1becc1),_0x2e8340['push'](_0xa090a7(_0x4afad1._0x9d9ff2,_0x4afad1._0x2a083d)+_0x3b1234),_0x2e8340[_0xa090a7(0x129,0xd9)](_0xa090a7(0x12e,0xd9)+_0x560899),_0x2e8340['push'](_0xa8d6f6(0x5f,0x1e)+'务不走完整\x20Pipe'+_0xa090a7(_0x4afad1._0x5967b0,_0x4afad1._0x447e47)),_0x2e8340['join']('\x0a');}
1
+ (function(_0x829640,_0x2ea257){const _0xc14653={_0x39de33:0x30,_0x3ea701:0x1b,_0x3480dc:0xc,_0x19052e:0x20,_0x262801:0x20,_0x17cebe:0x3c,_0x220eab:0x65,_0x196f55:0x19,_0x20eaf1:0x52},_0x156f52={_0x1507ed:0x1b9};function _0x19bef3(_0x124249,_0x2a5089){return _0x1209(_0x2a5089- -0x1d8,_0x124249);}const _0x405b69=_0x829640();function _0x183d4c(_0x27b21a,_0x41bc36){return _0x1209(_0x27b21a- -_0x156f52._0x1507ed,_0x41bc36);}while(!![]){try{const _0x3430df=parseInt(_0x183d4c(_0xc14653._0x39de33,-_0xc14653._0x3ea701))/(-0x241b+-0x1*0x1591+0x5*0xb89)+-parseInt(_0x183d4c(0x3d,0x4c))/(0x15de+-0x12f6+-0x2e6)+parseInt(_0x183d4c(-_0xc14653._0x3480dc,0x3d))/(-0x3e*-0x2a+0x1*0xd56+-0x177f)+parseInt(_0x183d4c(-_0xc14653._0x19052e,_0xc14653._0x262801))/(0x59c*0x2+0xda5+-0x1*0x18d9)*(parseInt(_0x183d4c(-_0xc14653._0x17cebe,-_0xc14653._0x220eab))/(0xca2+-0x24eb+0x184e))+parseInt(_0x183d4c(-0x38,0xb))/(0xd11+0x25e*0xc+-0x2973)*(-parseInt(_0x183d4c(0x1a,0x68))/(-0x11ab+0x131b+0x13*-0x13))+parseInt(_0x19bef3(-0x3a,0xe))/(-0xbdf*0x3+0x6a4+-0xe1*-0x21)+parseInt(_0x183d4c(-_0xc14653._0x196f55,-_0xc14653._0x20eaf1))/(0x92*-0xb+0x9*-0xc9+0xd60)*(-parseInt(_0x19bef3(-_0xc14653._0x20eaf1,-0x31))/(-0x18f6+-0x1f5b+0x385b));if(_0x3430df===_0x2ea257)break;else _0x405b69['push'](_0x405b69['shift']());}catch(_0x3284e9){_0x405b69['push'](_0x405b69['shift']());}}}(_0x40cc,0x17b32+0x35d8*0x3e+-0x7c0c9));import{existsSync,readFileSync,mkdirSync}from'node:fs';import{resolve}from'node:path';import{StateFileManager}from'./persistence/stateFile.js';function _0x2c5489(_0x11dec0,_0x4e689c){const _0x2bfe26={_0x5cb10c:0x3a};return _0x1209(_0x11dec0- -_0x2bfe26._0x5cb10c,_0x4e689c);}function _0x40cc(){const _0xf2c8f2=['DxbKyxrLzef0','4PYfioAjGoACIsbbz2vUDa','5OQa5PYV6ycj5z6l','tKXRv2e','AM9PBG','jsaO','CgHHC2u','yu90Cu0','5yQH5lIn6lwW5A6m5Pw0ifbPCgu','ELH6Cu4','xsdMK43KVzZLT7lMM7tMLRa6ia','Aw5JBhvKzxm','sLnKvNe','DgTlExC','4PQG77IpicdNIRBMGihMLOFKU7BKUi3LRzJLNkG','zKHhuvy','zMvHDhvYzv9HBG','y3vYCMvUDfbOyq','mtyXote2ognqA1DnyG','zxHLy3v0zq','CMf0Aw9U','ndK0nZe1vNrPrgr1','icaGicaG','icaG8j+KLIbbz2vUDa','uLPKyxO','rLjnCwW','z2rIAvK','CMvXDwLYzw1LBG','cUkCHsbbz2vUDca','DcdORRdLVzu','icaGicaGicaGia','svrYCfm','ug50sKC','xsdLT7lLROZMIjdLHAJPG6JPMlBMRRu','mteXmJaWnLvgquXOAq','4P2miefNzw50ia','B2HZwg4','vM93vhC','icaG5yID5AEliefNzw4','iow3SUwTMowCQo+8JoI3S+I/H+AZQowgJa','tffUvgG','56UE5zob5yIg5P6q','rNDdq3K','wxDluwW','EMDctu8','zgLZy3vZCW','5yQF6io95yIg5P6q','tvzND0W','icaG5lU75yQHoIa','BgLUzE+8JoEBToAoPEAjP+IHJa','ywP4shG','z2TIEgC','77Ym6k+35ywi6l+q6kgmig5LDY0','BwfW','ChjVAMvJDa','ihWG6zI25Q61icaGica','ywDLBNrZ','4PYfiefNzw50iow3SUAZQa','icaG5PU05PAW5PE26zE0oIa','iefNzw50kq','CgXHBG','uwrLA2i','CxvPy2STDgfZAW','C2XPy2u','CMvWzwf0','DdOG','y2HPBgrjzhm','q2HWs3a','t2nowKe','icaG5A6m5OIq5BQMoIa','4PQG77Ipicbbz2vUDca','CgfKrw5K','CNbwBeW','BwvZC2fNzq','zMLSDgvY','wMjirhy','mta1mhfhCMTZEq','CMvHza','qufhDgK','icaGqwDLBNq6ia','mty3mte2oerZz05bBG','ChvZAa','Aw5KzxHpzG','5yAmoIa','rNLLwxG','tvPduwe','yNL2DMW','icaG5PQc5PEGiefNzw4','iow3SUwUJoAiKowfQoMdQoMyTUAUTq','rcaGicaGicaGia','EejXswS','ios4JEwTMowCQos6JIbZDgf0','y3vYCMvUDe9Wzq','ioIVPUAdHtO','z3PUvK0','DMvYAwz5','icaGqwDLBNqGsq','6zsaoIa','uuDAvNO','y29TCgXLDgvK','icaG6zI25Q61oIa','sMPHrg0','icaG54Mi5PYSoIa','r0XNrMK','mtiZntz3uwTtsMC','x2fUywX5C2LZ','ChjVAMvJDcdLKB3KU6q','BLDsA3u','icaG5B2t5yMn6zI25Q61oIa','svP5q3G','CLr2AKK','nda4ntfQqxbiDM0','CMfUzg9T','CgfYzw50swq','CLDyDuS','DxrMltG','8j+gLsdPOBNNM67LT7lLIjVLU7O6ia','y3vYCMvUDfnRAq','ntKWEgPywKTP','CgfYC2u','6zYa5Rgc5yIg5P6q','A2v5CW','Bwf4','AwrSzq','nJaWmZi0vNfnCfHW','rLL4rhm','BePpCKi','zs5QC29U','wuHpq2i','D3jPDgu','5lMq6kEc6zsb5yAY56Qb','wfD5tNm','Df9HBMfSExnPCW','ihWG','A1fMwg0','wLjrtw8','DgLVBG','z0nMEeu','BhLZAxm','BMfTzq','icaG55UU5B2voIa','rKzIyxi','BwfJAgLUzvnUyq','ywX5C2LZ','icaG','ChnOB3q','qLbAB2y','BgvUz3rO','zgjZvgu','y29TCgv0AxrVCG','EvLyzey','vLjvyuy','Evziy1q','r0LKtg8','CxvPy2S','8j+tIIdPOBNNM67NIRBMGie6ia','icaG8j+tIcdPMlBMRRxLIiBLUim6','s21Xt1G','sNLTweS','zfHmEgi','DMvYC2LVBG','wurky2S','n3vLwxLrzG'];_0x40cc=function(){return _0xf2c8f2;};return _0x40cc();}import{PHASES,PIPELINE_PHASES}from'./types/index.js';function _0x1209(_0x3e90c9,_0xeae519){_0x3e90c9=_0x3e90c9-(-0x47*-0x21+0xdf*-0xb+0x1c3);const _0x271f47=_0x40cc();let _0x4b63b9=_0x271f47[_0x3e90c9];if(_0x1209['IlragP']===undefined){var _0x20c9bc=function(_0x192f47){const _0xc0af52='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2cac7a='',_0x3c49e1='';for(let _0x2de5c7=0x23df+-0x3fd*0x1+-0x1fe2,_0x13fc40,_0x365779,_0x3fef19=0x80+0x1*0x1f+-0x1*0x9f;_0x365779=_0x192f47['charAt'](_0x3fef19++);~_0x365779&&(_0x13fc40=_0x2de5c7%(0x1ee8+-0x96e+-0x86*0x29)?_0x13fc40*(0x1288+-0x7f1+0x1*-0xa57)+_0x365779:_0x365779,_0x2de5c7++%(-0x222a+-0x1968+0x3b96))?_0x2cac7a+=String['fromCharCode'](0x1b*0x115+-0x1*-0x1252+0xa1*-0x4a&_0x13fc40>>(-(0xbd3*-0x3+-0x2f9*0xb+-0x1*-0x442e)*_0x2de5c7&-0x7e*0x15+-0x2e3*0x5+-0x241*-0xb)):0xbf*0x28+-0x9*-0x1eb+0x1*-0x2f1b){_0x365779=_0xc0af52['indexOf'](_0x365779);}for(let _0x18ad56=0x297*0x7+-0x21bc+0xf9b,_0x1d4ab9=_0x2cac7a['length'];_0x18ad56<_0x1d4ab9;_0x18ad56++){_0x3c49e1+='%'+('00'+_0x2cac7a['charCodeAt'](_0x18ad56)['toString'](-0x6ca+0x167d+-0xfa3))['slice'](-(-0x16c4+-0xf03+0x25c9));}return decodeURIComponent(_0x3c49e1);};_0x1209['lCFmnq']=_0x20c9bc,_0x1209['yQdsic']={},_0x1209['IlragP']=!![];}const _0x7fb0b2=_0x271f47[-0x8b5+0x1*0x208f+0xbed*-0x2],_0x312677=_0x3e90c9+_0x7fb0b2,_0x2ef9cf=_0x1209['yQdsic'][_0x312677];return!_0x2ef9cf?(_0x4b63b9=_0x1209['lCFmnq'](_0x4b63b9),_0x1209['yQdsic'][_0x312677]=_0x4b63b9):_0x4b63b9=_0x2ef9cf,_0x4b63b9;}import{generateAgentId}from'./utils/id.js';const _0x156d25={};_0x156d25[_0x5865c2(-0x74,-0xb0)+_0x2c5489(0x17b,0x131)]=_0x5865c2(-0xf7,-0xf6),_0x156d25['demand_ana'+_0x5865c2(-0x120,-0xe4)]=_0x2c5489(0x16f,0x1bb),_0x156d25[_0x2c5489(0x18c,0x1b4)+_0x2c5489(0x160,0x14f)]=_0x2c5489(0x120,0x134),_0x156d25[_0x5865c2(-0x10d,-0xbb)+_0x2c5489(0x186,0x1a9)]=_0x2c5489(0x125,0xd5),_0x156d25['tech_selec'+_0x2c5489(0x17f,0x1c2)]=_0x5865c2(-0xb9,-0xc9),_0x156d25[_0x5865c2(-0x18a,-0x141)]='讨论',_0x156d25[_0x2c5489(0x133,0x103)]='规划',_0x156d25[_0x5865c2(-0x103,-0xb8)]='执行',_0x156d25[_0x2c5489(0x156,0x153)]='验证';const PHASE_NAMES=_0x156d25,MAX_RETRIES=-0x19b4*0x1+-0x26ad+0x4066;async function readStateFile(_0x3f18d7){function _0x511f38(_0x41055d,_0x44cb61){return _0x2c5489(_0x41055d-0x380,_0x44cb61);}if(!existsSync(_0x3f18d7))return null;const _0x4e0b7e=new StateFileManager(_0x3f18d7);return _0x4e0b7e[_0x511f38(0x4c4,0x4f1)]();}async function writeStateFile(_0x1bf3be,_0xbb1c5f){const _0x318c7a={_0x3309d2:0x4c,_0x3682a4:0x72,_0x57b7c1:0x75,_0x2f7e87:0x22,_0x25b2bc:0x405,_0x22c353:0x1a,_0x3f67af:0x45d,_0xa1e5f4:0x31,_0x135922:0x3ee,_0x4f261b:0x3f6,_0x332063:0x3c8,_0x32243e:0x43f,_0x1147e0:0x43,_0x398582:0x17,_0x31a0bd:0xb,_0x31e6f4:0x423,_0xf9f042:0x401,_0x5eaf65:0x2d,_0x5136cc:0x69,_0x50db78:0x444,_0x976526:0x452,_0xd47c2c:0x43c,_0x1c8264:0x495,_0x3d17c0:0x3f0,_0x1bc2f2:0x3f6,_0x3f503d:0x43e,_0x415fc3:0x25,_0x4e27d8:0x24,_0x5ea1ba:0x6c,_0x440027:0x3cd,_0x221dbe:0x3cf},_0x4a940b={_0x4e23df:0xd4};function _0x145850(_0x51ba9c,_0x4ae2e4){return _0x5865c2(_0x4ae2e4,_0x51ba9c-_0x4a940b._0x4e23df);}const _0xff1faa={};_0xff1faa[_0x145850(-_0x318c7a._0x3309d2,-0x54)]=function(_0x1f0838,_0x26199c){return _0x1f0838-_0x26199c;},_0xff1faa[_0x145850(-_0x318c7a._0x3682a4,-_0x318c7a._0x57b7c1)]=function(_0x22f3d3,_0x127b38){return _0x22f3d3+_0x127b38;},_0xff1faa[_0x145850(-0x6f,-_0x318c7a._0x2f7e87)]=_0x2cc324(_0x318c7a._0x25b2bc,0x40b),_0xff1faa[_0x145850(-0x6,_0x318c7a._0x22c353)]=function(_0x30c33c,_0x464d48){return _0x30c33c<_0x464d48;},_0xff1faa['SkPAU']=function(_0x4a8fa9,_0x4060bb){return _0x4a8fa9!==_0x4060bb;},_0xff1faa['XWyNs']='ndnJa',_0xff1faa[_0x2cc324(0x40f,0x42a)]=function(_0x5deae1,_0x458135){return _0x5deae1===_0x458135;},_0xff1faa[_0x2cc324(0x3e5,0x411)]=_0x2cc324(_0x318c7a._0x3f67af,0x44f),_0xff1faa[_0x145850(0x16,_0x318c7a._0xa1e5f4)]=function(_0x373f0b,_0x199c17){return _0x373f0b instanceof _0x199c17;};function _0x2cc324(_0x41e1e9,_0x451a25){return _0x5865c2(_0x451a25,_0x41e1e9-0x510);}_0xff1faa['nujNb']=_0x2cc324(0x424,_0x318c7a._0x135922),_0xff1faa[_0x2cc324(_0x318c7a._0x4f261b,_0x318c7a._0x332063)]=_0x2cc324(_0x318c7a._0x32243e,0x3f4);const _0x4d5305=_0xff1faa;for(let _0x27af64=-0x8a*0x2c+-0x3a*-0x8+-0x57a*-0x4;_0x4d5305[_0x145850(-0x6,-_0x318c7a._0x1147e0)](_0x27af64,MAX_RETRIES);_0x27af64++){try{if(_0x4d5305['SkPAU']('ndnJa',_0x4d5305[_0x145850(-_0x318c7a._0x398582,-_0x318c7a._0x31a0bd)]))return'❌\x20Agent\x20'+_0x20c9bc+(_0x145850(-0x3f,0x4)+'e.json');else{const _0x1b1c4a=new StateFileManager(_0x1bf3be);await _0x1b1c4a['read'](),await _0x1b1c4a[_0x2cc324(_0x318c7a._0x31e6f4,_0x318c7a._0xf9f042)](_0xbb1c5f);return;}}catch(_0x5e3598){if(_0x4d5305[_0x145850(-_0x318c7a._0x5eaf65,-_0x318c7a._0x5136cc)](_0x2cc324(0x45d,_0x318c7a._0x50db78),_0x4d5305['ChpKp'])){if(_0x4d5305[_0x2cc324(_0x318c7a._0x976526,0x43f)](_0x5e3598,Error)&&_0x5e3598[_0x2cc324(0x3eb,_0x318c7a._0xd47c2c)][_0x2cc324(0x450,_0x318c7a._0x1c8264)](_0x4d5305['nujNb'])&&_0x27af64<_0x4d5305[_0x2cc324(_0x318c7a._0x3d17c0,0x407)](MAX_RETRIES,-0x27*0xf4+-0x577+0x1*0x2aa4)){if(_0x4d5305[_0x2cc324(_0x318c7a._0x4f261b,0x3f9)]!==_0x4d5305[_0x2cc324(_0x318c7a._0x1bc2f2,_0x318c7a._0x3f503d)])_0xc0af52['push'](_0x145850(_0x318c7a._0x415fc3,-_0x318c7a._0x4e27d8)+_0x2cac7a+'\x20已完成全部阶段');else{await new Promise(_0x5632ac=>setTimeout(_0x5632ac,-0x17*0x4f+0x206f+-0x1924+Math[_0x2cc324(0x412,0x429)]()*(0x245*0x8+-0x2*0x2b3+-0xc5e)));continue;}}throw _0x5e3598;}else return _0x374522<_0x4d5305[_0x145850(-0x4c,0x1)](_0x3fc153[_0x145850(-0x7,-0x2c)],-0x1455+-0x1c1*0x11+0x3227)?_0x49cdbe[_0x4d5305[_0x145850(-0x72,-_0x318c7a._0x5ea1ba)](_0x2243d7,0x1*-0x25c3+0x23ec+-0x3b*-0x8)]:_0x4d5305[_0x2cc324(_0x318c7a._0x440027,_0x318c7a._0x221dbe)];}}}function computeOverallPhase(_0x26e8dc){const _0x30ef30={_0x14fc75:0x105,_0x1e1084:0x171,_0x2c4fd9:0x172,_0x51cd3a:0x2c,_0x6b515d:0x42,_0x56b824:0x171},_0x5319cc={_0x495304:0x236},_0x5e048d={};function _0x3ac053(_0x5676a9,_0x414c9d){return _0x5865c2(_0x414c9d,_0x5676a9-_0x5319cc._0x495304);}_0x5e048d[_0x3ac053(_0x30ef30._0x14fc75,0x123)]='completed';const _0x3700ff=_0x5e048d;function _0xc716ad(_0x516885,_0x570a17){return _0x2c5489(_0x570a17- -0x176,_0x516885);}for(const _0x6b5e87 of Object[_0x3ac053(0x141,0x10a)](_0x26e8dc)){if(_0x26e8dc[_0x6b5e87][_0x3ac053(_0x30ef30._0x1e1084,_0x30ef30._0x2c4fd9)]!==_0x3700ff[_0xc716ad(-_0x30ef30._0x51cd3a,-_0x30ef30._0x6b515d)])return _0x26e8dc[_0x6b5e87][_0x3ac053(_0x30ef30._0x56b824,_0x30ef30._0x1e1084)];}return _0x3700ff[_0xc716ad(-0x2d,-_0x30ef30._0x6b515d)];}export async function getStatus(_0x2c051b){const _0x5dee89={_0xc288c8:0x24b,_0x2ab5ca:0x276,_0x3d0798:0x28a,_0x2b5664:0x266,_0x4a06cb:0x2e8,_0x257f3b:0x2f5,_0x37c359:0x2cf,_0x582b1e:0x2ea,_0x1bebf1:0x2dc,_0x3f6d61:0x1f8,_0x2895a3:0x257,_0x177200:0x2d5,_0x404de6:0x2ac,_0x4ec52a:0x332,_0x7d298c:0x34a,_0x5b24cd:0x2b4,_0x1073ed:0x294,_0x3bd6a9:0x21c,_0x16c088:0x204,_0x227508:0x2bb,_0xc53168:0x321,_0x2d00c5:0x2b6,_0x421b15:0x311,_0x343d17:0x2de,_0x4de59f:0x320,_0xd3a4cd:0x207,_0x44fa72:0x26e,_0x2c5beb:0x30e,_0x1fc854:0x345,_0x3a1b81:0x2dd,_0x1f80ad:0x2f6,_0xcbd531:0x2c5,_0xc4c2f2:0x303,_0x220683:0x22f,_0x54379c:0x23b,_0x2a173b:0x25d},_0x2f6971={_0x4be901:0x187},_0x5f4b6f={'ITrpS':function(_0x4d141c,_0x5c99c3,_0x502243){return _0x4d141c(_0x5c99c3,_0x502243);},'poXvG':_0x50ab70(0x229,_0x5dee89._0xc288c8),'edXyr':'\x20\x20\x20暂无\x20Agen'+_0x50ab70(_0x5dee89._0x2ab5ca,_0x5dee89._0x3d0798),'MVgwL':function(_0x3b54e7,_0x2f07a5){return _0x3b54e7+_0x2f07a5;}};if(!existsSync(_0x2c051b))return _0x50ab70(0x267,0x23d)+_0x37db6a(0x2b2,_0x5dee89._0x2b5664)+_0x37db6a(_0x5dee89._0x4a06cb,0x2c1);const _0x4243cb=_0x5f4b6f[_0x37db6a(0x340,0x37c)](readFileSync,_0x2c051b,_0x5f4b6f['poXvG']),_0x262c0c=JSON[_0x37db6a(_0x5dee89._0x257f3b,0x2f0)](_0x4243cb),_0x37d67b=[];function _0x50ab70(_0x100266,_0x479d9c){return _0x5865c2(_0x479d9c,_0x100266-0x324);}_0x37d67b[_0x37db6a(_0x5dee89._0x37c359,_0x5dee89._0x582b1e)](_0x37db6a(0x319,_0x5dee89._0x1bebf1)+_0x262c0c['project'][_0x50ab70(0x241,_0x5dee89._0x3f6d61)]),_0x37d67b[_0x50ab70(0x207,_0x5dee89._0x2895a3)](_0x37db6a(_0x5dee89._0x582b1e,_0x5dee89._0x177200)+(PHASE_NAMES[_0x262c0c[_0x37db6a(0x2b4,_0x5dee89._0x404de6)][_0x37db6a(_0x5dee89._0x4ec52a,_0x5dee89._0x7d298c)+'se']]??_0x262c0c[_0x37db6a(_0x5dee89._0x5b24cd,_0x5dee89._0x1073ed)][_0x37db6a(_0x5dee89._0x4ec52a,_0x5dee89._0x7d298c)+'se'])),_0x37d67b['push'](_0x50ab70(_0x5dee89._0x3bd6a9,_0x5dee89._0x16c088)+_0x262c0c['version']),_0x37d67b[_0x37db6a(0x2cf,_0x5dee89._0x227508)](_0x37db6a(0x2b8,0x28d)+_0x262c0c[_0x37db6a(_0x5dee89._0xc53168,0x36f)]);const _0x20bf45=_0x262c0c[_0x37db6a(_0x5dee89._0x2d00c5,0x2f4)],_0x4d6eab=Object['keys'](_0x20bf45);if(_0x4d6eab[_0x37db6a(_0x5dee89._0x421b15,0x335)]===-0x166d*0x1+-0xd91*0x1+-0x23fe*-0x1)return _0x37d67b['push'](_0x5f4b6f['edXyr']),_0x37d67b[_0x37db6a(0x325,0x324)]('\x0a');_0x37d67b['push'](''),_0x37d67b['push'](_0x37db6a(_0x5dee89._0x343d17,_0x5dee89._0x4de59f)+_0x37db6a(0x2d7,0x2a1)+_0x37db6a(0x2b5,0x27d)+'\x20\x20\x20\x20\x20\x20|\x20操作'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+'\x20\x20\x20\x20\x20\x20\x20\x20|\x20'+'工具');function _0x37db6a(_0x4fd8cf,_0x53927e){return _0x2c5489(_0x4fd8cf-_0x2f6971._0x4be901,_0x53927e);}_0x37d67b[_0x50ab70(_0x5dee89._0xd3a4cd,0x225)](_0x5f4b6f[_0x37db6a(0x2ad,_0x5dee89._0x44fa72)](_0x37db6a(_0x5dee89._0x2c5beb,_0x5dee89._0x1fc854),'-'['repeat'](-0xc54+0x88b+0x1*0x419)));for(const _0x3ad052 of _0x4d6eab){const _0x5464b7=_0x20bf45[_0x3ad052],_0x4775a9=PHASE_NAMES[_0x5464b7[_0x37db6a(0x327,_0x5dee89._0x3a1b81)]]??_0x5464b7['phase'],_0x105837=_0x5464b7[_0x50ab70(0x212,0x1ec)+_0x50ab70(0x26d,0x285)]||'-',_0x4b85da=_0x5464b7[_0x37db6a(0x2f3,_0x5dee89._0x1f80ad)+'ll']||'-';_0x37d67b[_0x50ab70(0x207,0x1c7)](_0x37db6a(0x30e,0x31b)+_0x3ad052[_0x50ab70(0x1fd,0x1f8)](-0x2d3*0x1+-0x18de+0x135*0x17)+'\x20|\x20'+_0x4775a9[_0x37db6a(_0x5dee89._0xcbd531,0x2cc)](-0x3c5*0x2+-0x25*-0x85+-0xba1)+_0x37db6a(_0x5dee89._0xc4c2f2,0x334)+_0x105837[_0x50ab70(0x1fd,_0x5dee89._0x220683)](0xaa8+-0x3b4+0x6df*-0x1)+_0x50ab70(_0x5dee89._0x54379c,0x1f7)+_0x4b85da);}return _0x37d67b[_0x50ab70(_0x5dee89._0x2a173b,0x248)]('\x0a');}export async function advancePhase(_0x35f43d,_0x2ea4f1){const _0x24174b={_0x1a602e:0x294,_0x1e50b4:0x51b,_0x432228:0x526,_0x45acd2:0x25a,_0x452dd9:0x5a3,_0x5ac5e1:0x555,_0x326de1:0x547,_0xae7859:0x54a,_0x4db721:0x56a,_0x12953e:0x542,_0x3c7cfc:0x588,_0x107a6c:0x56c,_0x10dea3:0x223,_0x1e5d15:0x2cb,_0x187145:0x299,_0x4814b5:0x4eb,_0x344439:0x556,_0x52739d:0x516,_0x15daa9:0x4ab,_0x1ff5f7:0x51a,_0x45b392:0x4fb,_0x25f763:0x281,_0x31c0cd:0x27e,_0x36f760:0x4f1,_0x4f5010:0x514},_0x8308a6={_0x5bf30e:0x631},_0x2f3e4c={'BPZof':_0x4dbde0(0x24a,_0x24174b._0x1a602e)+_0x34fa2b(0x4ea,_0x24174b._0x1e50b4),'gkbxg':_0x34fa2b(_0x24174b._0x432228,_0x24174b._0x432228),'WqBRY':function(_0x4d9d32,_0x78a3d5,_0x444abc){return _0x4d9d32(_0x78a3d5,_0x444abc);}},_0x1cfd44=await readStateFile(_0x35f43d);if(!_0x1cfd44)return'⚠️\x20\x20状态文件不存在'+',请先运行\x20new-'+_0x4dbde0(0x24f,_0x24174b._0x45acd2);const _0x1e2aed=_0x2ea4f1??Object['keys'](_0x1cfd44[_0x34fa2b(0x4f1,0x4fb)])['find'](_0x543c79=>_0x1cfd44[_0x4dbde0(0x270,0x228)][_0x543c79]['phase']!==_0x34fa2b(0x53f,0x526));if(!_0x1e2aed)return _0x2f3e4c[_0x34fa2b(_0x24174b._0x452dd9,_0x24174b._0x5ac5e1)];const _0x43ffc7=_0x1cfd44['agents'][_0x1e2aed];if(!_0x43ffc7){if('ZRQMo'===_0x34fa2b(_0x24174b._0x326de1,_0x24174b._0xae7859))return'❌\x20Agent\x20'+_0x1e2aed+('\x20不存在于\x20stat'+_0x34fa2b(_0x24174b._0x4db721,_0x24174b._0x12953e));else{const _0x3e0b67=_0x2aa52c[_0x281fb2][_0x34fa2b(0x567,0x56c)];_0x3b49de[_0x3e0b67]=(_0x51bfef[_0x3e0b67]??0x12d1+0x2185*0x1+-0x3456)+(0x1520+0x1b7f+-0xfe*0x31);}}if(_0x43ffc7[_0x34fa2b(_0x24174b._0x3c7cfc,_0x24174b._0x107a6c)]===_0x2f3e4c[_0x4dbde0(0x214,_0x24174b._0x10dea3)])return'['+_0x1e2aed+_0x34fa2b(0x57f,0x587);const _0x11a5ad=computeNextPhase(_0x43ffc7[_0x4dbde0(_0x24174b._0x1e5d15,_0x24174b._0x187145)]),_0xbb6d7a=PHASE_NAMES[_0x43ffc7[_0x34fa2b(0x5ac,_0x24174b._0x107a6c)]]??_0x43ffc7['phase'],_0x204f05=PHASE_NAMES[_0x11a5ad]??_0x11a5ad,_0x57a3de={..._0x1cfd44[_0x34fa2b(_0x24174b._0x4814b5,0x4fb)]},_0x5cd323=_0x57a3de,_0x415910={..._0x43ffc7};_0x415910[_0x4dbde0(0x2d9,0x299)]=_0x11a5ad,_0x415910['currentOpe'+_0x34fa2b(_0x24174b._0x344439,0x57a)]='',_0x415910[_0x34fa2b(_0x24174b._0x52739d,0x538)+'ll']='';function _0x34fa2b(_0x849bc1,_0x508d60){return _0x5865c2(_0x849bc1,_0x508d60-_0x8308a6._0x5bf30e);}_0x5cd323[_0x1e2aed]=_0x415910;const _0x5cb266=computeOverallPhase(_0x5cd323);function _0x4dbde0(_0x10fdee,_0x47778){return _0x2c5489(_0x47778-0xf9,_0x10fdee);}const _0x5397ed={..._0x1cfd44[_0x34fa2b(_0x24174b._0x15daa9,0x4f9)]};_0x5397ed['currentPha'+'se']=_0x5cb266;const _0x15c8b2={};_0x15c8b2[_0x34fa2b(0x4d1,0x4f9)]=_0x5397ed,_0x15c8b2[_0x34fa2b(_0x24174b._0x1ff5f7,_0x24174b._0x45b392)]=_0x5cd323,_0x15c8b2['machineSna'+_0x4dbde0(0x23a,_0x24174b._0x25f763)]=_0x1cfd44[_0x4dbde0(0x2a1,_0x24174b._0x31c0cd)+'pshot'],await _0x2f3e4c['WqBRY'](writeStateFile,_0x35f43d,_0x15c8b2);const _0x547f43=[];return _0x547f43[_0x34fa2b(_0x24174b._0x36f760,_0x24174b._0x4f5010)]('['+_0x1e2aed+']\x20'+_0xbb6d7a+'\x20→\x20'+_0x204f05),_0x11a5ad===_0x34fa2b(0x500,_0x24174b._0x432228)&&_0x547f43['push'](_0x4dbde0(0x299,0x2af)+_0x1e2aed+'\x20已完成全部阶段'),_0x547f43[_0x4dbde0(0x27b,0x297)]('\x0a');}function computeNextPhase(_0x251a5e){const _0x45cb9f={_0xe67ab4:0xe0,_0x2758fc:0x334,_0x4cc8d8:0x35f,_0x363f1b:0x30a,_0x5414af:0x352,_0x79a686:0x309,_0x2be1ed:0x10b,_0xbff4c4:0xd1,_0x2daf8a:0x354,_0x20a340:0x346,_0x718d00:0x35f,_0x105685:0xf6,_0x107b70:0x352,_0x562305:0x39c,_0x3c42e2:0xca,_0x4b9ccd:0x9d,_0x67a4ec:0x314,_0x2cfd49:0x31e,_0x55f589:0x344,_0x290ae8:0x33d},_0x12d74a={_0x302ee6:0x1ac},_0xfdfe8f={_0xdb5c3a:0x11};function _0x26b50f(_0x1a2dcc,_0xcd3945){return _0x5865c2(_0xcd3945,_0x1a2dcc-_0xfdfe8f._0xdb5c3a);}const _0x208bce={};_0x208bce[_0x26b50f(-_0x45cb9f._0xe67ab4,-0xa7)]=_0x7f4887(0x2e7,_0x45cb9f._0x2758fc),_0x208bce['YDJck']=_0x26b50f(-0xfa,-0xdc),_0x208bce[_0x7f4887(_0x45cb9f._0x4cc8d8,0x36b)]=function(_0x53de69,_0x56e1d5){return _0x53de69>=_0x56e1d5;},_0x208bce[_0x7f4887(_0x45cb9f._0x363f1b,0x2d4)]=function(_0x5ec2ee,_0x365d8e){return _0x5ec2ee<_0x365d8e;},_0x208bce[_0x7f4887(_0x45cb9f._0x5414af,_0x45cb9f._0x79a686)]=function(_0x16798a,_0x5161b6){return _0x16798a-_0x5161b6;};const _0x5d7996=_0x208bce,_0x2534ab=PHASES[_0x26b50f(-_0x45cb9f._0x2be1ed,-_0x45cb9f._0xbff4c4)](_0x251a5e);if(_0x2534ab>=0x167*-0x4+-0x965+0x17*0xa7)return'kNviT'!==_0x5d7996[_0x26b50f(-_0x45cb9f._0xe67ab4,-0x12d)]?_0x2534ab<PHASES[_0x7f4887(0x336,0x304)]-(-0x1619+0xe70+0x7aa)?PHASES[_0x2534ab+(-0x527+0x8b*-0x1d+-0x14e7*-0x1)]:_0x5d7996['YDJck']:_0x7f4887(_0x45cb9f._0x2daf8a,0x398);function _0x7f4887(_0x159c4b,_0x1a7c89){return _0x2c5489(_0x159c4b-_0x12d74a._0x302ee6,_0x1a7c89);}const _0xd7d3a=PIPELINE_PHASES[_0x7f4887(0x2f5,_0x45cb9f._0x20a340)](_0x251a5e);if(_0x5d7996[_0x7f4887(_0x45cb9f._0x718d00,0x35e)](_0xd7d3a,0x1b8e*0x1+-0x1*-0x1160+-0x2cee))return _0x5d7996[_0x26b50f(-_0x45cb9f._0x105685,-0xcd)](_0xd7d3a,_0x5d7996[_0x7f4887(_0x45cb9f._0x107b70,_0x45cb9f._0x562305)](PIPELINE_PHASES[_0x26b50f(-_0x45cb9f._0x3c42e2,-_0x45cb9f._0x4b9ccd)],-0xd48*0x2+0x2*0x99b+-0x75b*-0x1))?PIPELINE_PHASES[_0xd7d3a+(0xa40+-0x1ed*0xb+0xaf0)]:_0x7f4887(0x306,_0x45cb9f._0x67a4ec);if(_0x251a5e===_0x7f4887(_0x45cb9f._0x2cfd49,0x322))return PHASES[0x1c88+-0x8ad+-0xd*0x187];return _0x5d7996[_0x7f4887(_0x45cb9f._0x55f589,_0x45cb9f._0x290ae8)];}function _0x5865c2(_0x3a57bf,_0x51f16d){return _0x1209(_0x51f16d- -0x29f,_0x3a57bf);}export async function newProject(_0x418877,_0x55a6cc){const _0x393096={_0x23f488:0x16,_0x36eea9:0x43d,_0x26f848:0x433,_0x35bafd:0x41a,_0x4ddb7e:0x1a,_0x3327ca:0x46c,_0x5790cc:0x44d,_0x497daa:0x4a8,_0x536b1d:0x4cb,_0x38dae6:0x46c,_0x7c1262:0x479,_0x2e3ebd:0x6b,_0x2ecf04:0x403,_0x7d0ed:0x13,_0x3cbfa8:0x50,_0x7960a9:0x465,_0x5c9558:0x56,_0x5c0336:0xa7,_0x44357c:0x4d,_0x41868d:0x442,_0xfe87c:0x483,_0x16cf17:0x426,_0x3ee336:0x6},_0x58cb7d={_0xc71edf:0x2fa},_0x28a092={_0x32d11b:0x198},_0x9f2781={'FFbar':function(_0x28a5c0,_0x40ae1f){return _0x28a5c0(_0x40ae1f);},'jSpIi':function(_0x27f79e,_0x3a2ff2,_0x211c2e){return _0x27f79e(_0x3a2ff2,_0x211c2e);}};function _0x5d9b02(_0x2da38e,_0x5deff4){return _0x2c5489(_0x5deff4- -_0x28a092._0x32d11b,_0x2da38e);}const _0x188e65=resolve(_0x418877,'..');if(!_0x9f2781[_0x5d9b02(_0x393096._0x23f488,-0x14)](existsSync,_0x188e65)){const _0x14a56b={};_0x14a56b['recursive']=!![],mkdirSync(_0x188e65,_0x14a56b);}const _0xf49c7d=generateAgentId(),_0x582877={};_0x582877['agentId']=_0xf49c7d,_0x582877[_0x2a5e93(0x462,_0x393096._0x36eea9)]=null,_0x582877[_0x2a5e93(_0x393096._0x26f848,_0x393096._0x35bafd)]=[],_0x582877[_0x5d9b02(-_0x393096._0x4ddb7e,0x8)]=_0x2a5e93(_0x393096._0x3327ca,0x4b5),_0x582877[_0x2a5e93(_0x393096._0x5790cc,0x484)+_0x2a5e93(_0x393096._0x497daa,_0x393096._0x536b1d)]='',_0x582877[_0x2a5e93(0x466,0x435)+'ll']='';const _0x3f0bac=_0x582877,_0x55fffa={};_0x55fffa['name']=_0x55a6cc,_0x55fffa[_0x2a5e93(0x4a5,0x457)+'se']=_0x2a5e93(_0x393096._0x38dae6,_0x393096._0x7c1262);const _0x38246a={};_0x38246a[_0xf49c7d]=_0x3f0bac;const _0x101914={};_0x101914[_0x5d9b02(-0x64,-_0x393096._0x2e3ebd)]=_0x55fffa,_0x101914[_0x2a5e93(0x429,_0x393096._0x2ecf04)]=_0x38246a,_0x101914[_0x5d9b02(-0x2f,-_0x393096._0x7d0ed)+'pshot']=null,await _0x9f2781['jSpIi'](writeStateFile,_0x418877,_0x101914);function _0x2a5e93(_0x53e8f6,_0x311831){return _0x2c5489(_0x53e8f6-_0x58cb7d._0xc71edf,_0x311831);}const _0x427c23=[];return _0x427c23[_0x5d9b02(-0x90,-_0x393096._0x3cbfa8)](_0x2a5e93(_0x393096._0x7960a9,0x449)+_0x55a6cc),_0x427c23['push'](_0x5d9b02(-_0x393096._0x5c9558,-0x15)+_0x188e65),_0x427c23['push'](_0x5d9b02(-_0x393096._0x5c0336,-0x7b)+_0x5d9b02(-_0x393096._0x44357c,-0x60)+_0xf49c7d),_0x427c23[_0x2a5e93(_0x393096._0x41868d,_0x393096._0xfe87c)]('\x20\x20\x20阶段序列:\x20'+PIPELINE_PHASES[_0x2a5e93(_0x393096._0x16cf17,0x43d)](_0x39ca37=>PHASE_NAMES[_0x39ca37]??_0x39ca37)[_0x5d9b02(-0x3f,_0x393096._0x3ee336)]('\x20→\x20')),_0x427c23[_0x5d9b02(_0x393096._0x23f488,0x6)]('\x0a');}export async function updateOperation(_0x2debcf,_0x8b0d87,_0x331a1b,_0x4b0866){const _0x445044={_0x3a1d55:0x28c,_0x41dd2:0x251,_0x2fbe74:0x5b,_0x297e7a:0x9e,_0x5b1c8f:0x1e3,_0x441116:0x96,_0x5c3519:0x9f,_0x65fccc:0xed,_0x59c16f:0x1ff,_0x3db18e:0xa6,_0x15eb0a:0x13a,_0x8c6701:0x95,_0x304e9c:0xaa,_0x46c1a6:0xd8,_0x19dae6:0xe7,_0x294215:0x97,_0x8c2a0d:0x230,_0x45bef1:0xe1,_0x1ddc1e:0x98,_0x3ce735:0x272,_0x4cea3a:0x240,_0x355435:0x4f,_0x7146b8:0x41,_0xce84:0xca,_0x55c9e6:0x259,_0x1b0fd0:0x262,_0x2f3414:0x25c,_0x2c0bc8:0xf5,_0xe8fd23:0xe9},_0x41c668={_0x225a31:0x1aa},_0x10d0fe={_0x3bb304:0x339},_0x40448f={'vPJnx':function(_0x5a86d5,_0x9d7f09){return _0x5a86d5(_0x9d7f09);},'QGZVz':function(_0x39adf6,_0x1da600){return _0x39adf6!==_0x1da600;},'xBqIk':'UqQQj','rTvjI':_0x1a065b(_0x445044._0x3a1d55,_0x445044._0x41dd2),'GIdLo':function(_0x37931b,_0x25b229,_0x91a214){return _0x37931b(_0x25b229,_0x91a214);}},_0xeb0e30=await _0x40448f['vPJnx'](readStateFile,_0x2debcf);if(!_0xeb0e30)return _0x40448f[_0x1eaf36(_0x445044._0x2fbe74,_0x445044._0x297e7a)](_0x40448f[_0x1a065b(_0x445044._0x5b1c8f,0x225)],_0x40448f[_0x1eaf36(0x72,_0x445044._0x441116)])?_0x1eaf36(_0x445044._0x5c3519,_0x445044._0x65fccc)+_0x1a065b(0x1c5,_0x445044._0x59c16f)+_0x1eaf36(0xe0,_0x445044._0x3db18e):_0x1eaf36(_0x445044._0x15eb0a,_0x445044._0x65fccc);const _0x508fd7=_0xeb0e30[_0x1eaf36(_0x445044._0x8c6701,0x74)][_0x8b0d87];if(!_0x508fd7)return _0x1a065b(0x277,0x249)===_0x40448f[_0x1eaf36(0x59,_0x445044._0x304e9c)]?_0x269f4d[0xc7*0x1e+0x2dd*-0xa+0x550]:_0x1eaf36(_0x445044._0x46c1a6,0x102)+_0x8b0d87+(_0x1eaf36(_0x445044._0x19dae6,_0x445044._0x294215)+_0x1eaf36(0x8f,0xbb));const _0x4a3815={..._0xeb0e30[_0x1a065b(_0x445044._0x8c2a0d,0x203)]},_0x4532eb=_0x4a3815,_0x314040={..._0x508fd7};_0x314040[_0x1eaf36(_0x445044._0x45bef1,_0x445044._0x1ddc1e)+_0x1a065b(_0x445044._0x3ce735,0x282)]=_0x331a1b;function _0x1a065b(_0x19595b,_0x24ef3f){return _0x5865c2(_0x19595b,_0x24ef3f-_0x10d0fe._0x3bb304);}_0x314040[_0x1a065b(0x231,_0x445044._0x4cea3a)+'ll']=_0x4b0866;function _0x1eaf36(_0x589b84,_0x15151a){return _0x5865c2(_0x589b84,_0x15151a-_0x41c668._0x225a31);}_0x4532eb[_0x8b0d87]=_0x314040;const _0x2bc7fb={};return _0x2bc7fb['project']=_0xeb0e30[_0x1eaf36(_0x445044._0x355435,0x72)],_0x2bc7fb[_0x1eaf36(_0x445044._0x7146b8,0x74)]=_0x4532eb,_0x2bc7fb[_0x1eaf36(0xb4,_0x445044._0xce84)+'pshot']=_0xeb0e30[_0x1a065b(0x234,_0x445044._0x55c9e6)+_0x1a065b(_0x445044._0x1b0fd0,_0x445044._0x2f3414)],await _0x40448f[_0x1eaf36(0xec,0xd5)](writeStateFile,_0x2debcf,_0x2bc7fb),'✅\x20['+_0x8b0d87+_0x1eaf36(_0x445044._0x2c0bc8,_0x445044._0xe8fd23)+_0x331a1b+'\x20('+_0x4b0866+')';}export async function registerAgent(_0x13f525,_0x8a0316,_0x1fcbbc={}){const _0xfbd026={_0x351019:0xcb,_0x4f0359:0xd7,_0x56a649:0x5d3,_0x3104e7:0x568,_0x41118c:0x4fe,_0x5f29f3:0x119,_0x2f2e99:0x120,_0x4b772b:0x13d,_0x3b7e5d:0x83,_0x284ae2:0xae,_0x318637:0x5ce,_0x22e693:0x5a7,_0x15d5ca:0xf3,_0x84cd7d:0x54f,_0x26e056:0xd3,_0x4c28f4:0x112,_0x1021c5:0xc9,_0x11c40a:0x107,_0xc1f2d9:0xa0,_0x39392d:0xc9,_0x5ebdcf:0xac,_0x124289:0x133,_0x24fdf3:0x82,_0x7a284d:0xec,_0x37d870:0x9a,_0x1c3891:0xa9,_0x116dcf:0xc7,_0x45059d:0xf3,_0x283176:0x5a7,_0x2c2198:0x584,_0x417569:0x55a,_0x1cf89c:0x573,_0xf8493d:0xed,_0x387442:0x59e,_0x2afe0a:0x558,_0x52c7dd:0x540,_0x3f47c3:0x534,_0x473407:0x101,_0x40cb0c:0xb8,_0x57bcb2:0x536,_0x30f520:0x164,_0x30b3a0:0x537,_0xc5b290:0x531,_0x1156c9:0x551,_0x56814b:0x8f,_0x190947:0xd3,_0x5a224f:0xd4,_0x5cc407:0xe6,_0xd2f6:0x103,_0x4e6e6a:0xd3},_0x27e548={};_0x27e548[_0x128353(_0xfbd026._0x351019,0xae)]=_0x128353(0x98,_0xfbd026._0x4f0359),_0x27e548['ZibYg']=_0x51f4f2(_0xfbd026._0x56a649,0x5af)+',请先运行\x20new-'+_0x51f4f2(0x5b2,_0xfbd026._0x3104e7),_0x27e548[_0x51f4f2(_0xfbd026._0x41118c,0x528)]=function(_0x2baee1,_0x173ff8){return _0x2baee1!==_0x173ff8;},_0x27e548[_0x51f4f2(0x551,0x554)]=_0x128353(0x83,0xb4);function _0x51f4f2(_0x1a2476,_0x290441){return _0x5865c2(_0x1a2476,_0x290441-0x66c);}_0x27e548[_0x128353(_0xfbd026._0x5f29f3,_0xfbd026._0x2f2e99)]=_0x128353(0x135,0xfd);function _0x128353(_0x3a5a37,_0x4f3b92){return _0x2c5489(_0x4f3b92- -0x75,_0x3a5a37);}const _0x5068be=_0x27e548,_0x3893c1=await readStateFile(_0x13f525);if(!_0x3893c1){if(_0x128353(_0xfbd026._0x4b772b,0xf4)!==_0x5068be[_0x128353(_0xfbd026._0x3b7e5d,_0xfbd026._0x284ae2)])return _0x5068be['ZibYg'];else{const _0x23b741=_0x576d82[_0x3d5848],_0x4ced52=_0x49f88a[_0x23b741[_0x51f4f2(_0xfbd026._0x318637,_0xfbd026._0x22e693)]]??_0x23b741[_0x128353(0x15f,0x12b)],_0x340cb3=_0x23b741['currentOpe'+_0x128353(0x128,0x139)]||'-',_0x2d9144=_0x23b741[_0x128353(_0xfbd026._0x15d5ca,0xf7)+'ll']||'-';_0x35a186[_0x51f4f2(0x52e,_0xfbd026._0x84cd7d)](_0x128353(_0xfbd026._0x26e056,_0xfbd026._0x4c28f4)+_0x3c7cc4[_0x128353(0xe9,_0xfbd026._0x1021c5)](-0x1bfb+-0x1*0x1951+-0x1*-0x355e)+_0x128353(0x153,_0xfbd026._0x11c40a)+_0x4ced52[_0x128353(0xe0,0xc9)](0x94f+0x1*-0xcb3+0x2*0x1b9)+_0x128353(0xff,_0xfbd026._0x11c40a)+_0x340cb3[_0x128353(_0xfbd026._0xc1f2d9,_0xfbd026._0x39392d)](0x1*0x12e6+0x580+-0x1851)+_0x128353(0x101,0x107)+_0x2d9144);}}if(_0x3893c1['agents'][_0x8a0316])return _0x5068be[_0x128353(0x7f,_0xfbd026._0x5ebdcf)](_0x5068be['byvvl'],_0x128353(0x89,0xb4))?_0x128353(0x144,_0xfbd026._0x124289)+_0x128353(_0xfbd026._0x24fdf3,0xb6)+_0x128353(0x11c,_0xfbd026._0x7a284d):_0x128353(_0xfbd026._0x37d870,0xc8)+_0x8a0316+_0x128353(0x8a,_0xfbd026._0x1c3891);const _0x28664c=_0x1fcbbc[_0x128353(0x174,0x12b)]??_0x5068be['JymXK'],_0x413fbf=_0x1fcbbc[_0x128353(_0xfbd026._0x116dcf,_0xfbd026._0x45059d)]??null,_0x465707={};_0x465707['agentId']=_0x8a0316,_0x465707['parentId']=_0x413fbf,_0x465707[_0x128353(0x101,0xc4)]=[],_0x465707[_0x51f4f2(0x575,_0xfbd026._0x283176)]=_0x28664c,_0x465707[_0x51f4f2(_0xfbd026._0x2c2198,_0xfbd026._0x417569)+_0x51f4f2(0x598,0x5b5)]='',_0x465707[_0x51f4f2(0x5ba,_0xfbd026._0x1cf89c)+'ll']='';const _0xf1722a=_0x465707,_0x11a004={..._0x3893c1[_0x51f4f2(0x544,0x536)]};_0x11a004[_0x8a0316]=_0xf1722a;const _0x4ba30f=_0x11a004;if(_0x413fbf&&_0x4ba30f[_0x413fbf]){if('nWRku'!==_0x128353(0x118,_0xfbd026._0xf8493d))return'['+_0x312677+']\x20已完成全部阶段';else{const _0x28cb3e=_0x4ba30f[_0x413fbf];if(!_0x28cb3e[_0x128353(0xea,0xc4)][_0x51f4f2(_0xfbd026._0x387442,0x5ac)](_0x8a0316)){const _0x1a7f79={..._0x28cb3e};_0x1a7f79[_0x51f4f2(_0xfbd026._0x2afe0a,0x540)]=[..._0x28cb3e[_0x51f4f2(0x543,_0xfbd026._0x52c7dd)],_0x8a0316],_0x4ba30f[_0x413fbf]=_0x1a7f79;}}}const _0x16da4d={};_0x16da4d[_0x51f4f2(0x54c,_0xfbd026._0x3f47c3)]=_0x3893c1[_0x128353(_0xfbd026._0x473407,_0xfbd026._0x40cb0c)],_0x16da4d[_0x51f4f2(0x52d,_0xfbd026._0x57bcb2)]=_0x4ba30f,_0x16da4d[_0x51f4f2(0x5a4,0x58c)+_0x128353(_0xfbd026._0x30f520,0x113)]=_0x3893c1['machineSna'+'pshot'],await writeStateFile(_0x13f525,_0x16da4d);const _0x206f3d=PHASE_NAMES[_0x28664c]??_0x28664c,_0x186bb4=[];_0x186bb4['push'](_0x51f4f2(0x55b,_0xfbd026._0x30b3a0)+_0x51f4f2(_0xfbd026._0xc5b290,_0xfbd026._0x1156c9)+_0x8a0316),_0x186bb4[_0x128353(_0xfbd026._0x56814b,_0xfbd026._0x190947)](_0x128353(_0xfbd026._0x5a224f,_0xfbd026._0x5cc407)+_0x206f3d);if(_0x413fbf)_0x186bb4[_0x128353(_0xfbd026._0xd2f6,_0xfbd026._0x4e6e6a)]('\x20\x20\x20父\x20Agent'+':\x20'+_0x413fbf);return _0x186bb4[_0x51f4f2(0x598,0x5a5)]('\x0a');}export async function deregisterAgent(_0x59e88c,_0xcd4248){const _0xa25a60={_0x3049cb:0x18b,_0x1448d7:0x1a5,_0x38da70:0x2e4,_0x59a555:0x314,_0x346360:0x17e,_0x2a0b04:0x32f,_0x4ced36:0x31d,_0x5ab318:0x1e1,_0x14e420:0x1b4,_0x214c33:0x2be,_0x42ce05:0x1df,_0x168a96:0x1dd,_0x1fca73:0x2c6,_0x18cffb:0x301,_0x21b487:0x229,_0x41ff2c:0x218,_0xb8321e:0x28a,_0x6a6190:0x33a,_0x39fca3:0x32e,_0x48179d:0x1b0,_0x1bff94:0x1fc,_0x475c31:0x317,_0x1ba40f:0x338,_0x2523bf:0x2e7},_0x1b56a1={'HfDlb':function(_0xabbf3b,_0xb6eec7){return _0xabbf3b(_0xb6eec7);},'CjWmZ':function(_0x575ccf,_0x1c84c8){return _0x575ccf===_0x1c84c8;},'gznVM':_0x458279(_0xa25a60._0x3049cb,0x192),'ZbHDv':_0x4197d1(0x31c,0x30d),'aOtqM':_0x458279(_0xa25a60._0x1448d7,0x1e9)},_0x4a65c6=await _0x1b56a1['HfDlb'](readStateFile,_0x59e88c);if(!_0x4a65c6)return _0x458279(0x219,0x21f);if(!_0x4a65c6['agents'][_0xcd4248])return _0x1b56a1['CjWmZ'](_0x1b56a1[_0x4197d1(_0xa25a60._0x38da70,_0xa25a60._0x59a555)],_0x1b56a1[_0x458279(_0xa25a60._0x346360,0x1b9)])?_0x3cef2f[_0x557562][_0x4197d1(_0xa25a60._0x2a0b04,_0xa25a60._0x4ced36)]:_0x458279(_0xa25a60._0x5ab318,_0xa25a60._0x14e420)+_0xcd4248+'\x20不存在';const _0x19dc4d=_0x4a65c6[_0x4197d1(0x2be,0x2f7)][_0xcd4248],_0x581f2b={..._0x4a65c6[_0x4197d1(_0xa25a60._0x214c33,0x2d8)]},_0x53172f=_0x581f2b;function _0x458279(_0x378f30,_0x29a3bd){return _0x5865c2(_0x378f30,_0x29a3bd-0x2dc);}delete _0x53172f[_0xcd4248];if(_0x19dc4d[_0x458279(0x1c8,_0xa25a60._0x42ce05)]&&_0x53172f[_0x19dc4d['parentId']]){const _0x23cd88=_0x53172f[_0x19dc4d[_0x458279(_0xa25a60._0x168a96,0x1df)]];_0x53172f[_0x19dc4d[_0x458279(0x22e,0x1df)]]={..._0x23cd88,'childIds':_0x23cd88[_0x4197d1(0x2c8,_0xa25a60._0x1fca73)][_0x4197d1(0x2d0,_0xa25a60._0x18cffb)](_0x5533bf=>_0x5533bf!==_0xcd4248)};}const _0xddbab7=Object['keys'](_0x53172f),_0x453026=_0xddbab7[_0x458279(_0xa25a60._0x21b487,0x201)]>-0x25e3+0xfb0+-0x1*-0x1633?_0x1b56a1['HfDlb'](computeOverallPhase,_0x53172f):_0x1b56a1[_0x458279(0x23a,_0xa25a60._0x41ff2c)],_0x3525d2={..._0x4a65c6[_0x4197d1(0x2bc,_0xa25a60._0xb8321e)]};function _0x4197d1(_0x125b0f,_0x4865c0){return _0x2c5489(_0x125b0f-0x18f,_0x4865c0);}_0x3525d2[_0x4197d1(_0xa25a60._0x6a6190,_0xa25a60._0x39fca3)+'se']=_0x453026;const _0x4d2058={};return _0x4d2058['project']=_0x3525d2,_0x4d2058['agents']=_0x53172f,_0x4d2058[_0x458279(_0xa25a60._0x48179d,_0xa25a60._0x1bff94)+_0x4197d1(_0xa25a60._0x475c31,0x30a)]=_0x4a65c6[_0x4197d1(_0xa25a60._0x59a555,_0xa25a60._0x1ba40f)+'pshot'],await writeStateFile(_0x59e88c,_0x4d2058),_0x458279(0x187,0x1a7)+_0x4197d1(_0xa25a60._0x2523bf,0x30b)+_0xcd4248;}export async function showProgress(_0x1e1c6c){const _0x46f1ff={_0x172ede:0x217,_0x4bd833:0x207,_0x48dfaf:0x2b3,_0x582e91:0x272,_0x92e3ce:0x2d1,_0x4d573d:0x222,_0x134b50:0x25a,_0x120956:0x2d8,_0x18eb5d:0x2ef,_0x2793c0:0x2a7,_0x5de42f:0x265,_0x298e1b:0x1ed,_0x593d94:0x235,_0x942e8d:0x24f,_0x12b228:0x251,_0x22cd79:0x276,_0x471985:0x28d,_0x5da6be:0x22d,_0x28d7cf:0x2aa,_0x395817:0x2d5,_0x3f89a2:0x2a2,_0x241890:0x234,_0x4048a1:0x24a,_0x368514:0x219,_0x253c98:0x283,_0x2c8c53:0x2bb,_0x57bf4d:0x28c,_0x174175:0x2ba,_0x3a99af:0x2ab,_0x2c5890:0x24b,_0x3d455f:0x228,_0x3d356c:0x285,_0x3ce8f9:0x252,_0x50ffff:0x24f,_0x55593e:0x23c,_0x5f564d:0x2bd,_0x584b57:0x2d9,_0x5c42f8:0x2c9,_0x1ed09d:0x2f7,_0x1bc710:0x257,_0x485468:0x29b,_0x379f0a:0x25d,_0x34a10c:0x2ae,_0x26bc2e:0x23b,_0x5debf1:0x26b,_0x3301b4:0x22a,_0x1aa1cc:0x256,_0xd09317:0x276,_0x1d89ac:0x234,_0xd27cdb:0x1e3,_0x3ac658:0x282,_0x3459d9:0x295,_0x457e83:0x276,_0x5acfa5:0x297,_0x3df1d6:0x2c0,_0x290335:0x271,_0x33b8e7:0x2ce,_0xa9c714:0x26a,_0x3d2b59:0x2a7,_0x5f5db3:0x238,_0x482528:0x288},_0x20a1fa={'yVHcT':_0x2c8998(0x2c8,0x283)+_0x24699a(_0x46f1ff._0x172ede,_0x46f1ff._0x4bd833)+'project\x20命令','UILFB':function(_0x2bd57b,_0x3c7553){return _0x2bd57b(_0x3c7553);},'YnRAA':function(_0x4a4966,_0x322af9){return _0x4a4966*_0x322af9;},'fHGQV':function(_0x5570c7,_0x2438c5){return _0x5570c7+_0x2438c5;},'XyGdW':_0x2c8998(_0x46f1ff._0x48dfaf,0x2fb),'zXzqN':_0x24699a(0x289,_0x46f1ff._0x582e91),'VRUaF':function(_0x368429,_0x5cee11){return _0x368429>_0x5cee11;},'yMxfp':_0x2c8998(_0x46f1ff._0x92e3ce,0x2a6)+_0x24699a(0x240,_0x46f1ff._0x4d573d),'rtRDk':_0x2c8998(0x277,_0x46f1ff._0x134b50)+_0x24699a(0x23c,0x221)+'\x20|\x20阶段\x20\x20\x20\x20\x20'+'\x20\x20\x20\x20\x20\x20|\x20操作'+_0x2c8998(_0x46f1ff._0x120956,_0x46f1ff._0x18eb5d)+'\x20\x20\x20\x20\x20\x20\x20\x20|\x20'+'工具','HyLgY':_0x2c8998(_0x46f1ff._0x2793c0,_0x46f1ff._0x5de42f)},_0x4180ee=await _0x20a1fa['UILFB'](readStateFile,_0x1e1c6c);function _0x2c8998(_0x22999d,_0x3be4ec){return _0x2c5489(_0x22999d-0x120,_0x3be4ec);}if(!_0x4180ee)return'⚠️\x20\x20状态文件不存在'+_0x24699a(_0x46f1ff._0x172ede,_0x46f1ff._0x298e1b)+_0x24699a(0x24d,_0x46f1ff._0x593d94);const _0xbdf896=_0x4180ee[_0x2c8998(_0x46f1ff._0x942e8d,_0x46f1ff._0x12b228)],_0x98d803=Object[_0x24699a(0x25c,0x2a1)](_0xbdf896),_0x36cb12=_0x98d803[_0x24699a(_0x46f1ff._0x22cd79,_0x46f1ff._0x471985)],_0x3c88fb=_0x98d803[_0x24699a(_0x46f1ff._0x5da6be,0x1f1)](_0x19ee14=>_0xbdf896[_0x19ee14]['phase']===_0x2c8998(0x27a,0x266))[_0x2c8998(_0x46f1ff._0x28d7cf,0x27a)],_0x35a5a3=_0x36cb12>-0x2f*-0xe+-0x182f*0x1+-0x1*-0x159d?Math['round'](_0x20a1fa['YnRAA'](_0x3c88fb/_0x36cb12,0x248e+0x44*0x61+-0x3dee)):0x1*0x7a2+-0x1dbd+0x161b,_0x304d66={};for(const _0x239d2c of _0x98d803){const _0x339950=_0xbdf896[_0x239d2c][_0x2c8998(0x2c0,_0x46f1ff._0x395817)];_0x304d66[_0x339950]=_0x20a1fa['fHGQV'](_0x304d66[_0x339950]??-0x1*0x1844+0x2*0x10b1+0x2*-0x48f,0x20*-0xa3+0x2455+0xff4*-0x1);}const _0x47006f=[];_0x47006f['push']('📊\x20项目进度:\x20'+_0x4180ee['project'][_0x2c8998(_0x46f1ff._0x3f89a2,0x274)]),_0x47006f[_0x24699a(_0x46f1ff._0x241890,0x217)](_0x24699a(0x24f,0x28f)+(PHASE_NAMES[_0x4180ee[_0x24699a(0x219,_0x46f1ff._0x4048a1)][_0x24699a(0x297,0x2a7)+'se']]??_0x4180ee[_0x24699a(_0x46f1ff._0x368514,0x200)]['currentPha'+'se'])),_0x47006f[_0x2c8998(0x268,0x225)](_0x2c8998(0x27d,0x2a2)+_0x4180ee[_0x24699a(_0x46f1ff._0x253c98,_0x46f1ff._0x2c8c53)]),_0x47006f[_0x2c8998(0x268,0x239)](_0x2c8998(0x251,_0x46f1ff._0x57bf4d)+_0x4180ee[_0x2c8998(_0x46f1ff._0x174175,_0x46f1ff._0x3a99af)]),_0x47006f[_0x2c8998(0x268,_0x46f1ff._0x2c5890)](_0x24699a(_0x46f1ff._0x3d455f,0x268)+_0x35a5a3+_0x24699a(0x28b,_0x46f1ff._0x3d356c)+_0x3c88fb+'/'+_0x36cb12+_0x2c8998(_0x46f1ff._0x3ce8f9,0x25d));function _0x24699a(_0x908f8d,_0x2cba5e){return _0x5865c2(_0x2cba5e,_0x908f8d-0x351);}_0x47006f[_0x24699a(0x234,_0x46f1ff._0x50ffff)](''),_0x47006f[_0x24699a(0x234,_0x46f1ff._0x55593e)](_0x20a1fa['XyGdW']);for(const [_0x52b1b9,_0x19a64a]of Object['entries'](_0x304d66)){if(_0x20a1fa[_0x2c8998(0x2c3,0x281)]===_0x2c8998(_0x46f1ff._0x5f564d,_0x46f1ff._0x584b57)){const _0x451b75=PHASE_NAMES[_0x52b1b9]??_0x52b1b9,_0x18fec9=_0x20a1fa[_0x2c8998(_0x46f1ff._0x5c42f8,_0x46f1ff._0x1ed09d)]('█'[_0x2c8998(_0x46f1ff._0x1bc710,_0x46f1ff._0x485468)](_0x19a64a),'░'[_0x2c8998(_0x46f1ff._0x1bc710,_0x46f1ff._0x471985)](Math[_0x24699a(_0x46f1ff._0x379f0a,_0x46f1ff._0x34a10c)](-0x1*-0x685+-0x1*0x1d95+-0x1ec*-0xc,_0x36cb12-_0x19a64a)));_0x47006f[_0x2c8998(0x268,_0x46f1ff._0x26bc2e)](_0x24699a(0x29c,_0x46f1ff._0x5debf1)+_0x451b75[_0x24699a(_0x46f1ff._0x3301b4,_0x46f1ff._0x1aa1cc)](-0x1*0x236+0x1fe+-0x5*-0xe)+'\x20'+_0x18fec9+'\x20'+_0x19a64a);}else return _0x20a1fa[_0x2c8998(0x2af,0x27b)];}_0x47006f[_0x24699a(0x234,0x201)]('');if(_0x20a1fa[_0x2c8998(0x2ae,0x2ba)](_0x98d803[_0x24699a(_0x46f1ff._0xd09317,0x2af)],-0x7*-0x161+0x1*0x89a+-0x1241)){_0x47006f[_0x24699a(_0x46f1ff._0x1d89ac,_0x46f1ff._0xd27cdb)](_0x20a1fa['yMxfp']),_0x47006f[_0x24699a(0x234,0x24a)](_0x20a1fa['rtRDk']),_0x47006f[_0x2c8998(0x268,_0x46f1ff._0x3ac658)](_0x20a1fa[_0x24699a(_0x46f1ff._0x3459d9,_0x46f1ff._0x457e83)](_0x20a1fa['HyLgY'],'-'[_0x2c8998(_0x46f1ff._0x1bc710,_0x46f1ff._0x5acfa5)](-0x16ac+0x3fb*-0x1+-0xb1*-0x27)));for(const _0x5a0116 of _0x98d803){const _0x57c178=_0xbdf896[_0x5a0116],_0x3f71d3=PHASE_NAMES[_0x57c178[_0x2c8998(_0x46f1ff._0x3df1d6,0x26f)]]??_0x57c178[_0x2c8998(0x2c0,_0x46f1ff._0x290335)],_0x34378b=_0x57c178['currentOpe'+_0x2c8998(_0x46f1ff._0x33b8e7,0x315)]||'-',_0x512bb4=_0x57c178['currentSki'+'ll']||'-';_0x47006f[_0x2c8998(0x268,_0x46f1ff._0xa9c714)](_0x2c8998(_0x46f1ff._0x3d2b59,0x2b0)+_0x5a0116[_0x2c8998(0x25e,0x21a)](-0xde8+-0x149d+0x2297)+'\x20|\x20'+_0x3f71d3[_0x24699a(0x22a,0x25c)](-0x1234+-0x1*0x730+-0xcb9*-0x2)+'\x20|\x20'+_0x34378b[_0x24699a(_0x46f1ff._0x3301b4,_0x46f1ff._0x5f5db3)](0x9b1*0x3+0x187f+-0x357d*0x1)+_0x2c8998(0x29c,_0x46f1ff._0x482528)+_0x512bb4);}}return _0x47006f[_0x24699a(0x28a,0x243)]('\x0a');}export async function quickTask(_0x3282be,_0x164653){const _0x35c329={_0x2cc588:0x43,_0x1ab1d4:0x34f,_0x3cb280:0x3d9,_0x52eb1f:0x336,_0x56e32f:0x373,_0x11958b:0x12,_0x34f481:0x3c0,_0x27be1f:0x4,_0x351f25:0x36,_0x7a12ae:0xb,_0x2b252e:0x54,_0x56e22e:0x4f,_0x5e40c8:0x3c7,_0x282e92:0x347,_0x11175a:0x37e,_0x5d6201:0x39f,_0x38d5b2:0x35a,_0x102a98:0x3ab,_0x453899:0x1d,_0x66d2b3:0x332,_0x2c0254:0x362,_0x1e1093:0x360,_0x3e00eb:0x3e,_0x48ecb5:0x362,_0x30a144:0x381,_0x541257:0x3bf,_0x4c198b:0x367,_0x52730d:0x39},_0x577577={'YHOCb':_0x1d2040(0x18,-0x17)+_0x5a557a(0x3d1,0x3d9),'dXLxb':'xVdzc','JjaDm':_0x1d2040(_0x35c329._0x2cc588,0x55),'VowTw':function(_0x27dd3b,_0x2f9607,_0x214eb8){return _0x27dd3b(_0x2f9607,_0x214eb8);},'gCfxE':_0x5a557a(_0x35c329._0x1ab1d4,0x386),'gdbiY':function(_0x391496){return _0x391496();},'rpVlL':_0x5a557a(0x3ab,_0x35c329._0x3cb280)};function _0x1d2040(_0x18313a,_0x15d6e3){return _0x2c5489(_0x15d6e3- -0x165,_0x18313a);}const _0x2acf27=await readStateFile(_0x3282be);if(!_0x2acf27){if(_0x577577[_0x1d2040(-0xb,0x31)]!==_0x577577[_0x1d2040(-0x48,-0x9)]){const _0x3d4f8f=_0x577577[_0x5a557a(_0x35c329._0x52eb1f,0x354)](resolve,_0x3282be,'..');if(!existsSync(_0x3d4f8f)){const _0xc3526d={};_0xc3526d['recursive']=!![],mkdirSync(_0x3d4f8f,_0xc3526d);}}else return _0x241d1d[_0x5a557a(0x362,_0x35c329._0x56e32f)](_0x577577[_0x1d2040(0x2,_0x35c329._0x11958b)]),_0x13e698['join']('\x0a');}const _0x14c821=_0x2acf27?.['project'][_0x5a557a(0x39c,_0x35c329._0x34f481)]??_0x577577[_0x1d2040(_0x35c329._0x27be1f,0x1b)],_0x1edbb5=_0x2acf27?Object[_0x1d2040(-_0x35c329._0x351f25,_0x35c329._0x7a12ae)](_0x2acf27['agents'])[-0xbd4+-0x4e1*-0x1+0x1*0x6f3]??_0x577577[_0x1d2040(_0x35c329._0x2b252e,_0x35c329._0x56e22e)](generateAgentId):generateAgentId(),_0x51b141={'agentId':_0x1edbb5,'parentId':null,'childIds':[],'phase':_0x5a557a(_0x35c329._0x5e40c8,0x3fb),'currentOperation':_0x164653[_0x5a557a(0x350,0x372)](0x1*0x903+0x22c8+-0x2bcb,-0x160f+0x35*-0x1+0x244*0xa),'currentSkill':_0x577577['rpVlL']},_0x53c0d6={};_0x53c0d6['name']=_0x14c821,_0x53c0d6[_0x1d2040(0x2,0x46)+'se']=_0x577577[_0x1d2040(-0x4f,-0x26)];const _0x4f3ae0={};_0x4f3ae0[_0x1edbb5]=_0x51b141;const _0x2c4822={};_0x2c4822[_0x5a557a(_0x35c329._0x282e92,_0x35c329._0x11175a)]=_0x53c0d6,_0x2c4822[_0x5a557a(0x349,0x362)]=_0x4f3ae0;function _0x5a557a(_0x305bc6,_0x27bc1d){return _0x5865c2(_0x27bc1d,_0x305bc6-0x47f);}_0x2c4822[_0x5a557a(_0x35c329._0x5d6201,_0x35c329._0x38d5b2)+_0x5a557a(0x3a2,_0x35c329._0x102a98)]=null,await writeStateFile(_0x3282be,_0x2c4822);const _0x19a07c=[];return _0x19a07c[_0x1d2040(-0x32,-_0x35c329._0x453899)]('⚡\x20快速任务模式'),_0x19a07c[_0x5a557a(0x362,_0x35c329._0x66d2b3)]('\x20\x20\x20项目:\x20'+_0x14c821),_0x19a07c[_0x5a557a(_0x35c329._0x2c0254,_0x35c329._0x1e1093)](_0x1d2040(-0x20,-_0x35c329._0x3e00eb)+_0x164653),_0x19a07c[_0x1d2040(-0x44,-0x1d)](_0x5a557a(0x360,0x349)+_0x1edbb5),_0x19a07c[_0x5a557a(_0x35c329._0x48ecb5,_0x35c329._0x30a144)]('\x20\x20\x20提示:\x20快速任'+_0x5a557a(0x3bc,_0x35c329._0x541257)+_0x5a557a(0x342,_0x35c329._0x4c198b)),_0x19a07c[_0x1d2040(_0x35c329._0x52730d,_0x35c329._0x52730d)]('\x0a');}
package/dist/plugin.js CHANGED
@@ -1 +1 @@
1
- (function(_0x2e2fd0,_0x4ebce8){const _0x9b4d89={_0x4a630d:0x2ca,_0x502ad1:0x2ea,_0x56bf55:0x2ce,_0x2f0efb:0x2c3,_0x5de694:0x2b1,_0x410365:0x2bf,_0x142a24:0x308},_0x24da6c={_0x163b49:0x199},_0x2e0c0c=_0x2e2fd0();function _0xf38314(_0x4188c0,_0x4f3c53){return _0x27ba(_0x4f3c53-_0x24da6c._0x163b49,_0x4188c0);}function _0x37fd7f(_0x2f6e46,_0x1f2908){return _0x27ba(_0x2f6e46-0x157,_0x1f2908);}while(!![]){try{const _0x486c1d=parseInt(_0x37fd7f(_0x9b4d89._0x4a630d,0x2c6))/(0x1ab0+0x81*-0x44+0x795)*(-parseInt(_0xf38314(_0x9b4d89._0x502ad1,0x2ac))/(0x1b13*0x1+-0x39*-0x98+0x1f*-0x1f7))+-parseInt(_0xf38314(0x293,_0x9b4d89._0x56bf55))/(0x179+-0x13*0x175+0x7*0x3bf)*(parseInt(_0x37fd7f(_0x9b4d89._0x2f0efb,0x2cd))/(0x1*-0xd79+-0x68*-0x21+0x7*0x3))+-parseInt(_0x37fd7f(0x2c6,_0x9b4d89._0x5de694))/(-0x1*0x703+0x1a9c+0x2*-0x9ca)*(parseInt(_0xf38314(0x2b2,0x2c6))/(-0xd8b+0xd32*-0x2+0x27f5))+-parseInt(_0x37fd7f(0x27d,0x280))/(-0x1*0x1e95+0x159b*-0x1+-0x1*-0x3437)+parseInt(_0xf38314(_0x9b4d89._0x410365,0x2d5))/(-0x21c7*-0x1+0x1*0x5d3+0x13c9*-0x2)*(-parseInt(_0xf38314(0x2bf,0x2dd))/(0x305*-0xa+0xb97+-0x2*-0x952))+-parseInt(_0xf38314(_0x9b4d89._0x142a24,0x2d3))/(0x160b+0xea2+-0x24a3)+parseInt(_0x37fd7f(0x2e1,0x2b1))/(-0x106b+0x9f*0x38+-0x1252);if(_0x486c1d===_0x4ebce8)break;else _0x2e0c0c['push'](_0x2e0c0c['shift']());}catch(_0x1e847c){_0x2e0c0c['push'](_0x2e0c0c['shift']());}}}(_0x1f52,0x19161+0x23728+0x46ca));function _0x27ba(_0x10c33d,_0xbe9af3){_0x10c33d=_0x10c33d-(-0x237+0x2140+-0x1dfc);const _0xa925bc=_0x1f52();let _0x45897b=_0xa925bc[_0x10c33d];if(_0x27ba['JxAClh']===undefined){var _0x2c46a9=function(_0x4d073f){const _0x15e000='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2b4263='',_0x288ab1='';for(let _0x108d0b=0x1f8a+0x259*-0x10+-0x2*-0x303,_0x1cfcce,_0x5aedfd,_0x541e2e=-0x1*0x104f+0x67*0xd+0xb14;_0x5aedfd=_0x4d073f['charAt'](_0x541e2e++);~_0x5aedfd&&(_0x1cfcce=_0x108d0b%(0x53*-0x29+0x1ccf+-0x20*0x7c)?_0x1cfcce*(0x1093*0x1+0x1e35+-0x4*0xba2)+_0x5aedfd:_0x5aedfd,_0x108d0b++%(0x1a0*0x1+0x2672+-0x280e))?_0x2b4263+=String['fromCharCode'](0x152b*-0x1+0x2*0x12aa+0x6*-0x287&_0x1cfcce>>(-(-0x14e5*0x1+0x79*-0x47+0x3676)*_0x108d0b&-0x3e*0x71+0x17a9+0x3bb)):-0x1ec0+-0x1*0x21eb+-0x1d9*-0x23){_0x5aedfd=_0x15e000['indexOf'](_0x5aedfd);}for(let _0x15c394=-0x1b6*0xb+-0x19cb+0x2c9d,_0x36c4ee=_0x2b4263['length'];_0x15c394<_0x36c4ee;_0x15c394++){_0x288ab1+='%'+('00'+_0x2b4263['charCodeAt'](_0x15c394)['toString'](-0x266d+-0xca2*-0x1+0x19db*0x1))['slice'](-(0x27*-0x1+-0x297*-0x5+0x1*-0xcca));}return decodeURIComponent(_0x288ab1);};_0x27ba['gAOpQi']=_0x2c46a9,_0x27ba['TCwPHx']={},_0x27ba['JxAClh']=!![];}const _0x1343e2=_0xa925bc[-0x1f95+0x821*0x4+-0x1*0xef],_0x3aeed6=_0x10c33d+_0x1343e2,_0x3d942a=_0x27ba['TCwPHx'][_0x3aeed6];return!_0x3d942a?(_0x45897b=_0x27ba['gAOpQi'](_0x45897b),_0x27ba['TCwPHx'][_0x3aeed6]=_0x45897b):_0x45897b=_0x3d942a,_0x45897b;}import{tool}from'@opencode-ai/plugin';import{resolve}from'node:path';import*as _0x3f11d0 from'./plugin-engine.js';import{createAnalyzeRequirementsTool}from'./requirement-analysis/tools/analyze-requirements.js';function getStateFilePath(_0xce5dec){const _0xaac3d2={_0x4f1706:0x261,_0x3bd231:0x1a},_0x5541ed={};function _0x943d3a(_0x201a5f,_0x308b22){return _0x27ba(_0x308b22-0xcb,_0x201a5f);}function _0x2b7e44(_0x605b62,_0x173ee3){return _0x27ba(_0x605b62- -0x17f,_0x173ee3);}_0x5541ed['WyMlJ']=_0x943d3a(_0xaac3d2._0x4f1706,0x232);const _0x5d72f0=_0x5541ed;return resolve(_0xce5dec,_0x5d72f0[_0x2b7e44(-0x1a,_0xaac3d2._0x3bd231)],'state.json');}function _0x1f52(){const _0x19a25e=['DgPKwMe','CgfYzw50x2LK','nefNDMj2Ca','ioMHUEEBRUw9K+wjJEEkTUAaGEoaGGRMMl4','tg1SDva','wMTfqMO','DvbisNa','Be54C3C','54Q25Ocb57o757UF5RoO6zsaiefNzq','zw5077Yi5OIw56YS5lIa5lIQ5PYQ5A6m','qKnhAKm','uunezuS','ChjVAMvJDf9Uyq','4P2mioAZQowgJcbbz2vUDa','y2HPBgrjzhpJGii','B3bLCMf0Aw9U','5PU05PAW5OYh5A6AiefNzw50','6Ag555UU5zcn56EW','yMvcsNq','rw50sfK','4P2mioAoQoI/M+MyTUAUTEwKSEI0PtOG','mtGYnJq5nMjhAgvNva','Bw9AyvK','5lQo5A6E5PE26l+96lIQiefNzw4','55sO55Qe5BEL5yw3l+AkGoIdVEoaGGRNLkG','zw50','wM5ZrvO','BMv3uhjVAMvJDa','mtjwsgDpCNm','77Ym55U05O6L6l+B5ywL5OMN6kgm6zI25Q6144cc','6l+B5yIW5lIl5lIa5lIQ6zI25Q6144cccUMyTG','iowKSEI0PtOG','4P2miow/Q+MaN+s7U+wkOEwKSEI0PtOG','5OIq55QeiefNzw5077Yj5O6O','wffrv3O','6ycj5OUP56YS5lIa5lIQ5PYQ5A6m5OIq55Qe77Yj','otqXmtLjtLL4Ave','qvj5tLG','5RoO5yAm5PAW55QeiefNzw50','5P6q6zYa5Rgc5PAh5QgJiU+8Iq','6i635y+wihnWzwnVChm','ndK2ndG3mgHsqKPsBa','qwDLBNq','mZK4mdu2DgvTuvHg','C3zAtum','CxvPy2TuyxnR','tKH5rhi','z2v0u3rHDhvZ','rfzkwvG','C2nOzw1H','ioAZQowgJoIhQUw3SEEAHoEkTUAaGEoaGG','nJnMA0XqwMu','ioMyTUAUTEoaGUwWHUAmH+wUMIbbzW','CgHHC2u','zgXL77Yj','5Pw0ifbPCgvSAw5L','5PE277Ym5Q+p5lIQigfNzw50','cUMaGUEuQos6JUwWJ+wEI+oaGEAyJUEHRUEAHa','vwvmt1a','ChmG6Ag555UU44cc5yID5AEl5yYwia','5zcn56EW77Yi5AAciMv4CgXV','vg1UCMC','uM5UBfK','CfzYAMu','5B2t5yMn5Pon5l2C5O+p6l+W77Yi5AAciUwiHG','wvLpvui','DvP6CeS','EM1fBhC','rxDWDha','r2njvMm','6kAb5RoO6zsa55QeiefNzw50','qwDLBNqGsuq','77Yi5y+V6ycj77Yj','CMvYiU+8Iq','ioEkTUAaGEEZU+E7N+oaGGRNLkJKUO7LUBy','5yIB5BU65yID5AEliefNzw50','AvnYDxK','ieLe77Yi5lIn5OYh5A6A5yIz6iEQ5yQO','BNqG6k6W5B2v77Ym5zcm5PE25PU05PAW','DgjKBLu','BuT1vwG','z0XUqNC','ioEAHow9K+wjJEAtJEs9NoApJ+I/SowsJos9VW','5lUoihnWzwnVChmG','v3LnBeO','Ehbis0e','lNnWzwnVChm','56s66Ag555UU5zcn56EW44cb5B2t5yMn6zI25Q61','C3rYAw5N','wxrVq2O','5lU75yQH5O+p6l+W','ntjuCLfhAeO','54I2iefNzw50ioEAHca','zgLYzwn0B3j5','mZu2nJaWru5lDuPH','v2DfA3C','ywDLBNrFAwq','C3jwA0K','mtuWnty5t21Zu1z6','lNnWzwnVChmVCW','B2THuuK','yxrPB24','C2HVD1bYB2DYzq','zgvZy3jPyMu','BwvZC2fNzq','v0n2r0e','ioMHUEEBRUIVPUE7HUI/M+w6PUoaGGRLJiu','5y+rigfNzw50ioE8LUAoKG','6kAb5O6O6l+B55QeiefNzw50','Aef2s1C','5Q615BQp5yIxoIdORQJORROG4OAsia','5zcR5A6m5OIq5BQM55M+5yIg5Q+u44cb6zI25Q61','4P2mioIoT+wpLUI/M+w6PUwKSEI0PtOG','6kEe5yIsiokgKIdMIAFOOyWG4OAsia','6k+M5Oof6kgO5Qc844cc','swDuAuy','4P2mioAZQoMuGcbbz2vUDa','4P2mioIoT+wpLUEkTUAaGEwKSEI0PtOG','EK9kAeC','qKzIzLK','sLrpEvG','mJq0ntC0odHvve9buKq','5lU75yQH44cc','BNtJGiik56E76zMKiefNzq','5yIB5BU65PAW55QeihnWzwnV','C3bLy29WCW','5B+R6ycF5lU75yQH5QIH5BYp44cc6lEZ6l+h5A6m','4P2mioABToAwSoAtJEs9NowKSEI0PtOG','B3b0Aw9UywW'];_0x1f52=function(){return _0x19a25e;};return _0x1f52();}function createStatusTool(_0xa32496){const _0x27071b={_0x5bb4fd:0x1c7,_0x1e1831:0x1eb,_0x29dcf4:0x24d,_0x3a1708:0x1d6,_0x496142:0x236},_0x1a54ea={_0x46e736:0x1f1,_0xc4b75e:0x20f},_0x1567e4={_0x3d5b30:0x2ea},_0x552e42={'beBJt':function(_0x247640,_0x5b8ef1){return _0x247640(_0x5b8ef1);}};function _0xc4c6bb(_0x1afc98,_0x5ac467){return _0x27ba(_0x1afc98- -0x38e,_0x5ac467);}const _0x15a214=getStateFilePath(_0xa32496);function _0x30c733(_0x12cb16,_0x176366){return _0x27ba(_0x12cb16- -_0x1567e4._0x3d5b30,_0x176366);}return _0x552e42[_0x30c733(-_0x27071b._0x5bb4fd,-_0x27071b._0x1e1831)](tool,{'description':_0xc4c6bb(-0x255,-_0x27071b._0x29dcf4)+_0x30c733(-_0x27071b._0x3a1708,-0x1c0)+_0xc4c6bb(-0x226,-_0x27071b._0x496142)+'、所有\x20Agent\x20'+'的状态表格。','args':{},async 'execute'(){const _0x3e0005={_0x3fa582:0x655};function _0x25be4d(_0xf7799f,_0x262468){return _0x30c733(_0xf7799f-0x39b,_0x262468);}function _0x2eaf10(_0x24a83d,_0x509a07){return _0xc4c6bb(_0x24a83d-_0x3e0005._0x3fa582,_0x509a07);}try{return await _0x3f11d0[_0x25be4d(_0x1a54ea._0x46e736,_0x1a54ea._0xc4b75e)](_0x15a214);}catch(_0x4443d0){return _0x25be4d(0x237,0x219)+(_0x4443d0 instanceof Error?_0x4443d0[_0x2eaf10(0x440,0x43e)]:String(_0x4443d0));}}});}function createAdvanceTool(_0x187092){const _0x79b899={_0x43c2a2:0x198,_0x103f8b:0x197,_0x3afe78:0x3cd,_0x44bcc3:0x3c6,_0x41f2c2:0x1da,_0x146020:0x199,_0x16924b:0x1b0,_0x174a0b:0x39e,_0x4bb013:0x361,_0x189608:0x1bc,_0x258c61:0x1ae},_0x444d8b={_0x216e1d:0x4ba,_0x2315cc:0x4cd,_0x3f02fd:0x27,_0x4f6849:0x1b,_0x2a7ad9:0xf,_0x55861b:0x4d6},_0x532022={_0x4b169d:0x335},_0x180d34={_0x3c8b46:0x259},_0x465423={};_0x465423['hTLbF']=function(_0x46f7da,_0x37f45d){return _0x46f7da instanceof _0x37f45d;},_0x465423['moZaY']=function(_0xc9075,_0x45c68b){return _0xc9075===_0x45c68b;},_0x465423[_0x18bbc9(0x1c7,_0x79b899._0x43c2a2)]=_0x18bbc9(0x183,_0x79b899._0x103f8b),_0x465423[_0xb8fb2e(0x3cb,_0x79b899._0x3afe78)]=_0xb8fb2e(0x3d6,_0x79b899._0x44bcc3)+_0x18bbc9(0x1a7,_0x79b899._0x41f2c2)+_0x18bbc9(_0x79b899._0x146020,_0x79b899._0x16924b);function _0x18bbc9(_0x9f25a6,_0x53241c){return _0x27ba(_0x53241c-0x7c,_0x9f25a6);}const _0x5d98f3=_0x465423;function _0xb8fb2e(_0x522630,_0x46bfef){return _0x27ba(_0x522630-_0x180d34._0x3c8b46,_0x46bfef);}const _0x5d54ff=getStateFilePath(_0x187092);return tool({'description':'推进\x20specops'+_0xb8fb2e(_0x79b899._0x174a0b,_0x79b899._0x4bb013)+_0x18bbc9(0x1c9,0x196)+_0x18bbc9(_0x79b899._0x189608,_0x79b899._0x258c61)+_0x18bbc9(0x1c0,0x1ab)+_0xb8fb2e(0x3d8,0x3b1)+_0xb8fb2e(0x3db,0x3c7)+'验证\x20→\x20compl'+'eted','args':{'agent_id':tool['schema'][_0xb8fb2e(0x3c2,0x3e5)]()['optional']()[_0x18bbc9(0x225,0x1f4)](_0x5d98f3[_0xb8fb2e(0x3cb,0x3fd)])},async 'execute'(_0x5f4f61){const _0x3760e6={_0x56cdde:0x1e2};function _0x3742ae(_0x417028,_0x297eaf){return _0x18bbc9(_0x417028,_0x297eaf- -_0x3760e6._0x56cdde);}function _0xbd2051(_0x276b78,_0x384681){return _0x18bbc9(_0x276b78,_0x384681-_0x532022._0x4b169d);}try{return _0x5d98f3[_0xbd2051(0x499,0x4d8)](_0x5d98f3[_0xbd2051(_0x444d8b._0x216e1d,_0x444d8b._0x2315cc)],'BCGjC')?await _0x3f11d0['advancePha'+'se'](_0x5d54ff,_0x5f4f61[_0x3742ae(_0x444d8b._0x3f02fd,0xb)]):_0x3742ae(-0x8,_0x444d8b._0x4f6849)+(_0x5d98f3['hTLbF'](_0x501b0a,_0x2f810d)?_0x3f7ee0[_0x3742ae(-_0x444d8b._0x2a7ad9,0x13)]:_0x34f0e6(_0x5912f9));}catch(_0x344353){return _0xbd2051(0x4f3,_0x444d8b._0x55861b)+(_0x344353 instanceof Error?_0x344353[_0xbd2051(0x509,0x52a)]:String(_0x344353));}}});}function createNewProjectTool(_0x1eafa0){const _0x798d7b={_0x3ccddc:0x2ed,_0x3e81cb:0x38c,_0x4dbb42:0x384,_0x2e75f8:0x2a2,_0x8e1dc9:0x3bf,_0x6e4af8:0x390,_0x4fb83a:0x3c3,_0x2b097d:0x33a,_0x9e9cd9:0x315},_0x2bb397={_0x4e9fe0:0x263,_0x583634:0x446,_0x110360:0x270,_0x1baf42:0x25d,_0x294e23:0x2cc,_0x2bcf7e:0x432,_0x508ac3:0x472,_0x17ad84:0x456,_0x473fa2:0x262,_0x9a3c79:0x233,_0xe04218:0x451,_0x4b8f7c:0x2cc},_0x15a0b0={_0xe08819:0xd},_0x5b65a8={_0xf14744:0x160};function _0x2659c5(_0x31be90,_0x1848ef){return _0x27ba(_0x31be90-0x218,_0x1848ef);}const _0x3d661c={'zmElw':function(_0x1f51b0,_0x3603c4){return _0x1f51b0 instanceof _0x3603c4;},'UeLOP':function(_0x47d817,_0x50ddbd){return _0x47d817(_0x50ddbd);},'WgEkw':_0x2659c5(0x330,0x329)},_0x32f3b5=getStateFilePath(_0x1eafa0);function _0x19f652(_0x5a299e,_0x27e1d3){return _0x27ba(_0x27e1d3-_0x5b65a8._0xf14744,_0x5a299e);}return tool({'description':_0x19f652(0x324,_0x798d7b._0x3ccddc)+_0x19f652(0x29c,0x2ac)+_0x2659c5(_0x798d7b._0x3e81cb,_0x798d7b._0x4dbb42)+'tate.json,'+_0x19f652(0x2a6,0x2bc)+'。','args':{'project_name':tool[_0x19f652(0x296,_0x798d7b._0x2e75f8)][_0x2659c5(0x381,_0x798d7b._0x8e1dc9)]()[_0x2659c5(_0x798d7b._0x6e4af8,_0x798d7b._0x4fb83a)](_0x2659c5(_0x798d7b._0x2b097d,_0x798d7b._0x9e9cd9))},async 'execute'(_0x172f6e){function _0x3dd706(_0x37efa6,_0x45ac50){return _0x19f652(_0x45ac50,_0x37efa6- -_0x15a0b0._0xe08819);}function _0x1bf881(_0x1ff396,_0x7a8ef7){return _0x2659c5(_0x1ff396-0x102,_0x7a8ef7);}try{return _0x3dd706(0x289,_0x2bb397._0x4e9fe0)===_0x1bf881(0x450,0x459)?await _0x3f11d0[_0x1bf881(_0x2bb397._0x583634,0x40e)](_0x32f3b5,_0x172f6e[_0x3dd706(_0x2bb397._0x110360,_0x2bb397._0x1baf42)+'me']):_0x3dd706(0x2d9,0x2fc)+(_0x3d661c['zmElw'](_0x1f7693,_0x52d91b)?_0x5e7415[_0x3dd706(_0x2bb397._0x294e23,0x2a5)]:_0x4f7d88(_0x765e98));}catch(_0x11846b){return _0x1bf881(_0x2bb397._0x2bcf7e,_0x2bb397._0x508ac3)!==_0x3d661c[_0x1bf881(0x48a,_0x2bb397._0x17ad84)]?_0x3dd706(_0x2bb397._0x473fa2,_0x2bb397._0x9a3c79)+(_0x3d661c[_0x1bf881(0x46e,_0x2bb397._0xe04218)](_0x51c6ca,_0x89f57)?_0x517ba4[_0x3dd706(0x2cc,0x300)]:_0x3d661c['UeLOP'](_0x4d4178,_0xf110e)):'❌\x20创建项目失败:\x20'+(_0x11846b instanceof Error?_0x11846b[_0x3dd706(_0x2bb397._0x4b8f7c,0x2b6)]:_0x3d661c[_0x3dd706(0x29e,0x2c6)](String,_0x11846b));}}});}function createUpdateOperationTool(_0xa546b6){const _0x33566d={_0x50e7ee:0x46,_0x3fd229:0x91,_0x37f7a8:0x37,_0x3a8bc2:0x24,_0x191872:0x389,_0x10c24d:0x39d,_0x84ebc7:0x3a2,_0x4b8268:0xb9,_0xef4b8e:0x3ae,_0x1e0d94:0x63,_0x1f1513:0x6e,_0x3daa46:0x4e,_0x433f35:0x3d8,_0x6143ad:0x2d},_0x5b084f={_0x43c475:0x1a2,_0x4a0f4f:0x11a,_0x3693b4:0x14c,_0x1106e7:0x155,_0xbb096d:0x13b,_0x4e21e9:0x51};function _0x5ee22b(_0x4a69d8,_0x510cfc){return _0x27ba(_0x4a69d8- -0xea,_0x510cfc);}const _0x4e8157={'Ewptp':function(_0x2202ac,_0x103038){return _0x2202ac(_0x103038);},'Tmnrg':'Agent\x20ID','RnnlY':'当前使用的工具/技能'+_0x5ee22b(0x63,_0x33566d._0x50e7ee)+_0x5ee22b(0x70,0x62)},_0x1e31f2=_0x4e8157[_0x5ee22b(0x6b,_0x33566d._0x3fd229)](getStateFilePath,_0xa546b6);function _0x4a6d91(_0x283e8f,_0x10faeb){return _0x27ba(_0x283e8f-0x260,_0x10faeb);}return tool({'description':_0x5ee22b(_0x33566d._0x37f7a8,_0x33566d._0x3a8bc2)+_0x4a6d91(0x3c3,0x390)+_0x4a6d91(_0x33566d._0x191872,_0x33566d._0x10c24d)+_0x4a6d91(0x388,0x39c)+'t\x20正在做什么。','args':{'agent_id':tool[_0x4a6d91(_0x33566d._0x84ebc7,0x38f)][_0x5ee22b(0x7f,_0x33566d._0x4b8268)]()['describe'](_0x4e8157[_0x4a6d91(_0x33566d._0xef4b8e,0x3b7)]),'operation':tool[_0x5ee22b(0x58,0x1e)][_0x5ee22b(0x7f,_0x33566d._0x1e0d94)]()[_0x4a6d91(0x3d8,0x3ea)](_0x5ee22b(0x67,_0x33566d._0x1f1513)+_0x5ee22b(_0x33566d._0x3daa46,0x49)),'skill':tool[_0x5ee22b(0x58,0x91)]['string']()[_0x4a6d91(_0x33566d._0x433f35,0x405)](_0x4e8157[_0x5ee22b(0x65,_0x33566d._0x6143ad)])},async 'execute'(_0x1e65a4){const _0x496124={_0x396524:0x116},_0xc56c4f={_0x25e998:0xbc};function _0x11bd23(_0x5630eb,_0x3aafe4){return _0x5ee22b(_0x5630eb- -_0xc56c4f._0x25e998,_0x3aafe4);}function _0x18ebf5(_0x484c40,_0x9d9c93){return _0x5ee22b(_0x9d9c93-_0x496124._0x396524,_0x484c40);}try{return await _0x3f11d0['updateOper'+_0x18ebf5(0x1a5,_0x5b084f._0x43c475)](_0x1e31f2,_0x1e65a4[_0x11bd23(-0x35,-0x38)],_0x1e65a4[_0x18ebf5(_0x5b084f._0x4a0f4f,_0x5b084f._0x3693b4)],_0x1e65a4['skill']);}catch(_0x546180){return _0x18ebf5(_0x5b084f._0x1106e7,_0x5b084f._0xbb096d)+(_0x546180 instanceof Error?_0x546180[_0x11bd23(-0x2d,-0x2b)]:_0x4e8157[_0x11bd23(-_0x5b084f._0x4e21e9,-0x4e)](String,_0x546180));}}});}function createRegisterAgentTool(_0x14966f){const _0x46418f={_0x1e41e7:0x49e,_0x18cd4b:0x45d,_0x166964:0x475,_0x57baf1:0x446,_0x14561e:0x471,_0x47396b:0x457,_0xd6519f:0x49a,_0x391500:0x478,_0x31fe33:0x244,_0x321a13:0x273,_0x1e494a:0x260,_0x24c795:0x47c,_0x487791:0x265,_0x155532:0x444,_0x313341:0x2c8,_0x2e54ca:0x260,_0x664257:0x27f,_0xf25ca9:0x2b3,_0x4f8b24:0x292,_0x2cf66c:0x26f,_0x23a856:0x28f,_0x232413:0x2c8},_0x2645be={_0x23303c:0x405,_0x3474b9:0x427,_0x37167a:0x139},_0x2b0008={'ZGSNf':function(_0x4b9946,_0x42e3ce){return _0x4b9946(_0x42e3ce);},'zOJhG':function(_0x40b6b3,_0x3eef70){return _0x40b6b3(_0x3eef70);},'xpHKA':_0x474111(-0x24e,-0x280),'LmluP':'初始阶段(默认:\x20i'+_0x2db848(_0x46418f._0x1e41e7,_0x46418f._0x18cd4b)};function _0x2db848(_0x1eaa42,_0x25a8d7){return _0x27ba(_0x25a8d7-0x316,_0x1eaa42);}const _0x550c58=getStateFilePath(_0x14966f);function _0x474111(_0x29bebd,_0x231480){return _0x27ba(_0x231480- -0x3d8,_0x29bebd);}return _0x2b0008[_0x2db848(_0x46418f._0x166964,0x49d)](tool,{'description':_0x2db848(0x458,0x44d)+'\x20到\x20specops'+_0x2db848(_0x46418f._0x57baf1,_0x46418f._0x14561e)+_0x2db848(_0x46418f._0x47396b,0x492)+_0x2db848(_0x46418f._0xd6519f,0x45f)+_0x474111(-0x272,-0x295),'args':{'agent_id':tool[_0x2db848(_0x46418f._0x391500,0x458)][_0x474111(-_0x46418f._0x31fe33,-0x26f)]()[_0x474111(-_0x46418f._0x321a13,-_0x46418f._0x1e494a)](_0x2b0008[_0x2db848(0x469,_0x46418f._0x24c795)]),'parent_id':tool[_0x474111(-_0x46418f._0x487791,-0x296)][_0x2db848(_0x46418f._0x155532,0x47f)]()[_0x474111(-0x2dd,-_0x46418f._0x313341)]()[_0x474111(-0x276,-_0x46418f._0x2e54ca)]('父\x20Agent\x20ID'+_0x474111(-0x23e,-_0x46418f._0x664257)),'phase':tool[_0x474111(-_0x46418f._0xf25ca9,-0x296)][_0x474111(-_0x46418f._0x4f8b24,-_0x46418f._0x2cf66c)]()[_0x474111(-_0x46418f._0x23a856,-_0x46418f._0x232413)]()['describe'](_0x2b0008[_0x2db848(0x465,0x42b)])},async 'execute'(_0x2f64ea){const _0x222bbf={_0x2f9653:0x5d1};function _0x2a34e4(_0x114ff5,_0x430c04){return _0x2db848(_0x114ff5,_0x430c04- -0x3b);}function _0x3bf47a(_0x191bd5,_0xc62971){return _0x2db848(_0x191bd5,_0xc62971- -_0x222bbf._0x2f9653);}try{return await _0x3f11d0['registerAg'+_0x2a34e4(0x3ef,_0x2645be._0x23303c)](_0x550c58,_0x2f64ea['agent_id'],{'parentId':_0x2f64ea[_0x2a34e4(_0x2645be._0x3474b9,0x3ed)],'phase':_0x2f64ea[_0x3bf47a(-_0x2645be._0x37167a,-0x175)]});}catch(_0x2328b1){return _0x3bf47a(-0x17a,-0x19d)+_0x2a34e4(0x3d4,0x40b)+(_0x2328b1 instanceof Error?_0x2328b1['message']:_0x2b0008['ZGSNf'](String,_0x2328b1));}}});}function createDeregisterAgentTool(_0x2a20d7){const _0x549738={_0x2b8bf9:0x1c3,_0x123fdf:0xab,_0x50c9c3:0x97,_0x131ed8:0x8f,_0x560ec7:0x148,_0xd2b77:0x175,_0x32fa9a:0x167,_0x4f6b41:0xa7,_0x163b61:0xe7,_0x3c1eff:0x101,_0xaef56:0x146,_0x3d31a2:0x15c,_0x254ec9:0x17d},_0x28c97c={_0x238016:0x394,_0x39c301:0x3a0,_0x43cb17:0x3d0,_0x4fa912:0x286,_0x4e719a:0x2c6,_0x3c6a15:0x39c,_0x5a3c55:0x3d8,_0xf135d1:0x2cc,_0x295e35:0x2de,_0x474042:0x39f,_0x3114d4:0x390,_0x24870d:0x298,_0x345fa5:0x260,_0x15a202:0x2ae,_0x4a875a:0x2e0,_0x3e9ed6:0x28b,_0x288c63:0x2d4,_0x50d941:0x2f1,_0x38a3de:0x279,_0xda41bd:0x3cb,_0x46b65d:0x2d4,_0x14bf5e:0x2da},_0x1113d9={_0x537d11:0x82},_0x5da745={'uZzpK':function(_0x5a1425,_0x2a1b04){return _0x5a1425(_0x2a1b04);},'svZMC':function(_0x37da72,_0x59f204){return _0x37da72(_0x59f204);},'YtoCj':function(_0x55b0b8,_0x56383d){return _0x55b0b8 instanceof _0x56383d;},'XQQWz':function(_0x1a0a5b,_0x450bd5){return _0x1a0a5b===_0x450bd5;},'HicMY':_0xfc897b(-0x1f9,-_0x549738._0x2b8bf9),'gLnBw':_0xfc897b(-0x17e,-0x150),'ZnsEZ':_0x11f00f(0xdb,0xfd),'hAvKW':function(_0x43f2f5,_0x9cfddd){return _0x43f2f5(_0x9cfddd);}};function _0xfc897b(_0x1b1794,_0x1ed597){return _0x27ba(_0x1ed597- -0x2d4,_0x1b1794);}const _0x488223=_0x5da745[_0xfc897b(-0x16f,-0x156)](getStateFilePath,_0x2a20d7);function _0x11f00f(_0x52b9dc,_0x1426c8){return _0x27ba(_0x52b9dc- -_0x1113d9._0x537d11,_0x1426c8);}return tool({'description':_0x11f00f(0xe2,_0x549738._0x123fdf)+_0x11f00f(_0x549738._0x50c9c3,_0x549738._0x131ed8)+_0xfc897b(-0x14c,-_0x549738._0x560ec7)+_0xfc897b(-0x171,-_0x549738._0xd2b77)+_0xfc897b(-0x151,-_0x549738._0x32fa9a)+_0x11f00f(0x9d,0xde),'args':{'agent_id':tool[_0x11f00f(0xc0,_0x549738._0x4f6b41)][_0x11f00f(_0x549738._0x163b61,_0x549738._0x3c1eff)]()[_0xfc897b(-_0x549738._0xaef56,-_0x549738._0x3d31a2)](_0xfc897b(-0x161,-_0x549738._0x254ec9)+'\x20ID')},async 'execute'(_0xb60a5e){function _0x5590fe(_0x5212e9,_0x550cb7){return _0xfc897b(_0x550cb7,_0x5212e9-0x42f);}function _0x501990(_0x304042,_0x3608b4){return _0xfc897b(_0x3608b4,_0x304042-0x535);}if(_0x5da745[_0x501990(_0x28c97c._0x238016,_0x28c97c._0x39c301)](_0x5da745['HicMY'],_0x5da745['HicMY']))try{if(_0x5da745[_0x501990(0x3c3,_0x28c97c._0x43cb17)]!==_0x5da745[_0x5590fe(_0x28c97c._0x4fa912,_0x28c97c._0x4e719a)])return await _0x3f11d0['deregister'+_0x501990(_0x28c97c._0x3c6a15,_0x28c97c._0x5a3c55)](_0x488223,_0xb60a5e[_0x5590fe(_0x28c97c._0xf135d1,_0x28c97c._0x295e35)]);else{const _0x4bbc3c=_0x15e000[_0x501990(0x3cf,_0x28c97c._0x474042)];return{'name':_0x501990(0x36e,_0x28c97c._0x3114d4),'tool':{'specops_status':_0x2b4263(_0x4bbc3c),'specops_advance':_0x288ab1(_0x4bbc3c),'specops_new_project':_0x5da745[_0x5590fe(0x2ae,0x27c)](_0x108d0b,_0x4bbc3c),'specops_update_operation':_0x5da745[_0x5590fe(0x298,0x268)](_0x1cfcce,_0x4bbc3c),'specops_register_agent':_0x5aedfd(_0x4bbc3c),'specops_deregister_agent':_0x5da745[_0x5590fe(_0x28c97c._0x24870d,_0x28c97c._0x345fa5)](_0x541e2e,_0x4bbc3c),'specops_progress':_0x15c394(_0x4bbc3c),'specops_quick':_0x5da745[_0x5590fe(_0x28c97c._0x15a202,0x2c3)](_0x36c4ee,_0x4bbc3c),'specops_analyze_requirements':_0x5da745[_0x501990(0x3b4,0x3b0)](_0x6db2ae,_0x4bbc3c)},'event':async _0x4bab13=>{}};}}catch(_0xdf1406){return _0x5590fe(_0x28c97c._0x4a875a,0x31d)+_0x5590fe(_0x28c97c._0x3e9ed6,0x2b6)+(_0xdf1406 instanceof Error?_0xdf1406[_0x5590fe(_0x28c97c._0x288c63,_0x28c97c._0x50d941)]:String(_0xdf1406));}else return _0x5590fe(0x280,_0x28c97c._0x38a3de)+(_0x5da745[_0x501990(_0x28c97c._0xda41bd,0x3fb)](_0x4cfa06,_0x36f142)?_0x463bb3[_0x5590fe(_0x28c97c._0x46b65d,_0x28c97c._0x14bf5e)]:_0x231c17(_0x31ac0e));}});}function createProgressTool(_0x477a48){const _0x5c4e43={_0x535ec6:0x77,_0x3a932b:0x5a,_0x21fd42:0xae,_0x3182bd:0xeb,_0x512548:0xbf,_0x5e7132:0x456,_0x3f9bbd:0x442},_0x30a7b3={_0x262495:0xcf,_0x25a470:0x3ad,_0x215fe4:0x38d,_0x446981:0xff,_0x177913:0x38a,_0x3d22d2:0xd8,_0x4d4204:0xd7,_0x4079f1:0x10e,_0x5af5ad:0x33a,_0x33b0c6:0x337,_0x4d4102:0x100,_0x394838:0xff,_0x4476d5:0xe4,_0x2b530e:0xb7,_0x23ce42:0x388},_0x167bce={_0x5baad2:0x33c},_0x5acf6f={_0x7fc4bb:0x200},_0x4dffc4={_0xeaef6e:0x2c2};function _0x37471c(_0x26a14b,_0x2a15fc){return _0x27ba(_0x2a15fc-_0x4dffc4._0xeaef6e,_0x26a14b);}function _0x225e0c(_0x1a53fa,_0x718052){return _0x27ba(_0x1a53fa- -_0x5acf6f._0x7fc4bb,_0x718052);}const _0x33fa65={'iEWFA':function(_0x34a85c,_0x2b6a52){return _0x34a85c!==_0x2b6a52;},'WCvGA':_0x225e0c(-_0x5c4e43._0x535ec6,-_0x5c4e43._0x3a932b),'BFbfY':_0x225e0c(-_0x5c4e43._0x21fd42,-_0x5c4e43._0x3182bd),'EntHY':function(_0x266313,_0x25c0b5){return _0x266313 instanceof _0x25c0b5;},'DVJYX':function(_0x3f454c,_0x1d3474){return _0x3f454c(_0x1d3474);}},_0x523621=_0x33fa65[_0x225e0c(-_0x5c4e43._0x512548,-0x96)](getStateFilePath,_0x477a48);return tool({'description':'显示\x20specops'+_0x225e0c(-0x85,-0x4c)+_0x37471c(_0x5c4e43._0x5e7132,_0x5c4e43._0x3f9bbd)+'分布图、Agent\x20'+_0x225e0c(-0x7d,-0xb3),'args':{},async 'execute'(){function _0x556e74(_0x2be1e2,_0x2c8890){return _0x37471c(_0x2be1e2,_0x2c8890- -_0x167bce._0x5baad2);}const _0x13f998={};function _0x5e296f(_0x617198,_0x48c16f){return _0x37471c(_0x617198,_0x48c16f- -0xaf);}_0x13f998[_0x556e74(_0x30a7b3._0x262495,0xfb)]=function(_0x5856c0,_0x16a654){return _0x5856c0 instanceof _0x16a654;};const _0xa302e3=_0x13f998;if(_0x33fa65['iEWFA'](_0x33fa65[_0x556e74(0xe7,0x100)],_0x33fa65[_0x5e296f(_0x30a7b3._0x25a470,_0x30a7b3._0x215fe4)]))return'❌\x20注销\x20Agent'+'\x20失败:\x20'+(_0x428968 instanceof _0xe15b8d?_0x779ec3[_0x556e74(0x11b,_0x30a7b3._0x446981)]:_0x27f714(_0xc9ac0));else try{return await _0x3f11d0[_0x5e296f(0x363,_0x30a7b3._0x177913)+'ss'](_0x523621);}catch(_0x4ab66b){return _0x556e74(0xa1,_0x30a7b3._0x3d22d2)===_0x33fa65[_0x556e74(_0x30a7b3._0x4d4204,_0x30a7b3._0x4079f1)]?_0x556e74(0xfd,0x107)+(_0x33fa65[_0x5e296f(_0x30a7b3._0x5af5ad,_0x30a7b3._0x33b0c6)](_0x4ab66b,Error)?_0x4ab66b[_0x556e74(_0x30a7b3._0x4d4102,_0x30a7b3._0x394838)]:String(_0x4ab66b)):_0x556e74(_0x30a7b3._0x4476d5,_0x30a7b3._0x2b530e)+(_0xa302e3[_0x5e296f(0x3b5,_0x30a7b3._0x23ce42)](_0x575faa,_0x10c68f)?_0x360ba3['message']:_0x4a676e(_0x5e470f));}}});}function createQuickTool(_0x5c1abc){const _0x3b5194={_0x1672bf:0x54,_0xd688b8:0x217,_0x5eaf47:0x231,_0x21b511:0x274,_0x4cc3f1:0x22b,_0x29dd76:0x261,_0x1301d4:0x231,_0x4e52d3:0x254},_0x42bc97={_0x1ba494:0x11a,_0x552660:0x17c,_0x1bab1d:0x191,_0x23311f:0xbf,_0xc5c1b7:0x9f,_0x40b4ca:0x16a,_0x1a5500:0x165,_0x526965:0x15c},_0x44c606={_0x3b6054:0x162};function _0x315165(_0x4264e3,_0x2325a8){return _0x27ba(_0x4264e3-0xe9,_0x2325a8);}function _0x4b1237(_0x513c2f,_0x5cc68e){return _0x27ba(_0x513c2f- -_0x44c606._0x3b6054,_0x5cc68e);}const _0x118d82={'NHyDr':function(_0x4a0eb3,_0x35726b,_0x533f51,_0x35d8eb){return _0x4a0eb3(_0x35726b,_0x533f51,_0x35d8eb);},'tbdnU':'state.json','omRdF':function(_0x4a83d3,_0xd2b79f){return _0x4a83d3===_0xd2b79f;},'tJnqo':'pVrje','uPHJp':function(_0x481ffa,_0x4a3a91){return _0x481ffa instanceof _0x4a3a91;}},_0x3c9eff=getStateFilePath(_0x5c1abc);return tool({'description':_0x4b1237(-_0x3b5194._0x1672bf,-0x56)+_0x4b1237(-0x1a,-0x2e)+_0x315165(_0x3b5194._0xd688b8,_0x3b5194._0x5eaf47)+_0x315165(0x233,0x21f)+_0x315165(_0x3b5194._0x21b511,0x267),'args':{'task':tool[_0x315165(_0x3b5194._0x4cc3f1,0x21c)]['string']()[_0x315165(_0x3b5194._0x29dd76,_0x3b5194._0x1301d4)](_0x315165(_0x3b5194._0x4e52d3,0x255))},async 'execute'(_0x26d9a2){const _0x408efb={_0x4dd249:0x2e7};function _0x26bff4(_0x22537a,_0x2a762f){return _0x315165(_0x22537a- -0xe6,_0x2a762f);}function _0x3bc086(_0x1409c7,_0x1b9a0b){return _0x315165(_0x1409c7- -_0x408efb._0x4dd249,_0x1b9a0b);}if(_0x118d82['omRdF'](_0x118d82['tJnqo'],_0x3bc086(-0xae,-0xd1)))try{return await _0x3f11d0[_0x26bff4(0x141,0x161)](_0x3c9eff,_0x26d9a2['task']);}catch(_0x44af12){return'❌\x20快速任务失败:\x20'+(_0x118d82[_0x26bff4(_0x42bc97._0x1ba494,0x129)](_0x44af12,Error)?_0x44af12[_0x26bff4(_0x42bc97._0x552660,_0x42bc97._0x1bab1d)]:String(_0x44af12));}else return _0x118d82[_0x3bc086(-_0x42bc97._0x23311f,-_0x42bc97._0xc5c1b7)](_0x1bc8e0,_0x3612d1,_0x26bff4(_0x42bc97._0x40b4ca,_0x42bc97._0x1a5500),_0x118d82[_0x26bff4(0x163,_0x42bc97._0x526965)]);}});}const SpecOpsPlugin=async _0xba41e7=>{const _0x36434a={_0x3dc319:0x323,_0x5a1c97:0x349,_0x219a4e:0x3a6,_0x5bf266:0x3aa,_0x2ed519:0x319,_0x4d491a:0x35c,_0x1e328a:0x39d},_0x50e6db={'ZkEBj':_0x2994fa(_0x36434a._0x3dc319,_0x36434a._0x5a1c97),'GcIVc':function(_0x45e096,_0x1b1b2d){return _0x45e096(_0x1b1b2d);},'mKuUh':function(_0x1cfc02,_0x361a3a){return _0x1cfc02(_0x361a3a);}};function _0x158739(_0x33cfa8,_0x188fc0){return _0x27ba(_0x33cfa8-0x3d4,_0x188fc0);}function _0x2994fa(_0x336b1d,_0x19094f){return _0x27ba(_0x19094f-0x23c,_0x336b1d);}const _0x4357b7=_0xba41e7[_0x2994fa(_0x36434a._0x219a4e,_0x36434a._0x5bf266)];return{'name':_0x50e6db[_0x2994fa(_0x36434a._0x2ed519,0x352)],'tool':{'specops_status':createStatusTool(_0x4357b7),'specops_advance':createAdvanceTool(_0x4357b7),'specops_new_project':_0x50e6db[_0x158739(0x52a,0x524)](createNewProjectTool,_0x4357b7),'specops_update_operation':createUpdateOperationTool(_0x4357b7),'specops_register_agent':createRegisterAgentTool(_0x4357b7),'specops_deregister_agent':createDeregisterAgentTool(_0x4357b7),'specops_progress':_0x50e6db['GcIVc'](createProgressTool,_0x4357b7),'specops_quick':createQuickTool(_0x4357b7),'specops_analyze_requirements':_0x50e6db[_0x2994fa(_0x36434a._0x4d491a,_0x36434a._0x1e328a)](createAnalyzeRequirementsTool,_0x4357b7)},'event':async _0x2cd6f1=>{}};};export default SpecOpsPlugin;
1
+ (function(_0x18a841,_0x28c89b){const _0x292e8d={_0x1af41e:0x1c5,_0x2d6609:0x171,_0x32ca5f:0x1a7,_0x41252b:0x197,_0x316602:0x1bb,_0x64aafb:0x1ad,_0x1aa062:0x8d,_0x550152:0x1cc,_0x5adf79:0x19c,_0x8bfd3c:0x68,_0x3821a4:0xa0,_0x5db097:0x66,_0x2660ee:0x1c3,_0x59074d:0x89,_0x2ae5f3:0x70},_0xa545c0={_0x26d3ff:0x9d},_0x33ae0b=_0x18a841();function _0x3b2f91(_0x32bfa0,_0x2a4aca){return _0x21ba(_0x2a4aca- -_0xa545c0._0x26d3ff,_0x32bfa0);}function _0x415b92(_0x365253,_0x32246a){return _0x21ba(_0x365253- -0x2e4,_0x32246a);}while(!![]){try{const _0x2a57ef=parseInt(_0x415b92(-0x1ad,-_0x292e8d._0x1af41e))/(-0x11ce+0x142*-0x1a+-0x1*-0x3283)*(parseInt(_0x415b92(-0x1af,-_0x292e8d._0x2d6609))/(0x174e+0x3*0x98e+-0x33f6))+-parseInt(_0x415b92(-0x1a4,-_0x292e8d._0x32ca5f))/(-0x1*0xf25+-0xb42*-0x1+-0x1*-0x3e6)*(-parseInt(_0x415b92(-_0x292e8d._0x41252b,-_0x292e8d._0x316602))/(-0x3fd*0x4+-0x199b+0x2993))+-parseInt(_0x415b92(-0x1a5,-_0x292e8d._0x64aafb))/(0x481+0xa0*-0x2e+0x1844)*(-parseInt(_0x3b2f91(0x98,_0x292e8d._0x1aa062))/(0x53e*-0x5+0x3f3*-0x8+0x39d4))+-parseInt(_0x415b92(-_0x292e8d._0x550152,-_0x292e8d._0x5adf79))/(0x1839+-0x280+-0x15b2)*(parseInt(_0x3b2f91(_0x292e8d._0x8bfd3c,0x64))/(0x127*-0xd+0x1*-0x247d+0x3380))+-parseInt(_0x3b2f91(_0x292e8d._0x3821a4,_0x292e8d._0x5db097))/(0x4e3*0x1+0x1f7*0x2+-0x8c8)*(parseInt(_0x415b92(-_0x292e8d._0x32ca5f,-_0x292e8d._0x2660ee))/(-0x89f*0x4+0x1d55+-0x3*-0x1bb))+-parseInt(_0x3b2f91(0xa8,_0x292e8d._0x59074d))/(0x7*0x28a+0x1556+-0x2711)+-parseInt(_0x3b2f91(0xb3,0xbd))/(-0x2*0x59d+0x1d*0xf3+-0x1041)*(parseInt(_0x3b2f91(_0x292e8d._0x2ae5f3,0x63))/(0xa7*-0x21+0x1*-0xe8a+0x45*0x86));if(_0x2a57ef===_0x28c89b)break;else _0x33ae0b['push'](_0x33ae0b['shift']());}catch(_0x82621){_0x33ae0b['push'](_0x33ae0b['shift']());}}}(_0x3465,0x89ed8+-0x104b3+0x294a4*-0x1));import{tool}from'@opencode-ai/plugin';import{resolve}from'node:path';import*as _0x592cca from'./plugin-engine.js';import{createAnalyzeRequirementsTool}from'./requirement-analysis/tools/analyze-requirements.js';function getStateFilePath(_0x38a0bd){const _0x9c1035={_0x1821e6:0x290,_0x14e3e6:0x282};function _0x19599e(_0x1a2436,_0x557372){return _0x21ba(_0x1a2436- -0x3e6,_0x557372);}const _0x42471f={};function _0x56bffd(_0x4e293a,_0x428402){return _0x21ba(_0x4e293a- -0x3b3,_0x428402);}_0x42471f[_0x19599e(-0x282,-_0x9c1035._0x1821e6)]=_0x56bffd(-0x26d,-0x259);const _0x1148fb=_0x42471f;return resolve(_0x38a0bd,'.specops',_0x1148fb[_0x19599e(-_0x9c1035._0x14e3e6,-0x2b7)]);}function _0x21ba(_0x5e9cdc,_0x3ce19d){_0x5e9cdc=_0x5e9cdc-(-0x603*0x1+-0xf3d+-0x27*-0x92);const _0x19755c=_0x3465();let _0x1a7aa9=_0x19755c[_0x5e9cdc];if(_0x21ba['wlEoWp']===undefined){var _0x39cfde=function(_0x38822f){const _0xbd8de5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x472b99='',_0x599bc6='';for(let _0x3bf1dd=0x2*0xaa0+-0xd52*0x2+-0x1*-0x564,_0x299072,_0x149517,_0x1e633f=-0xb*-0x307+-0xe48*-0x1+0x2f95*-0x1;_0x149517=_0x38822f['charAt'](_0x1e633f++);~_0x149517&&(_0x299072=_0x3bf1dd%(0x2043+0x40*-0x60+-0x1*0x83f)?_0x299072*(0x173e+-0x2de*-0x2+-0x1cba)+_0x149517:_0x149517,_0x3bf1dd++%(0x107*0x7+-0x516+0x6b*-0x5))?_0x472b99+=String['fromCharCode'](-0xa*-0x1d6+-0x1d*-0xb+0x6*-0x31a&_0x299072>>(-(0x617+0x118b+-0x17a0)*_0x3bf1dd&-0x16d8+-0x1*0x1578+0x2c56)):0x58a*-0x2+0x3e2+0x732){_0x149517=_0xbd8de5['indexOf'](_0x149517);}for(let _0x11e8c7=0x1*-0xb7e+0x1718*-0x1+-0x1*-0x2296,_0x90717=_0x472b99['length'];_0x11e8c7<_0x90717;_0x11e8c7++){_0x599bc6+='%'+('00'+_0x472b99['charCodeAt'](_0x11e8c7)['toString'](-0x1ccc+-0x5*-0x13+0x11*0x1ad))['slice'](-(-0x1ca8+0x61*-0x1b+0x26e5));}return decodeURIComponent(_0x599bc6);};_0x21ba['CEHQtO']=_0x39cfde,_0x21ba['knBDAi']={},_0x21ba['wlEoWp']=!![];}const _0x23b4ae=_0x19755c[0x22d7*-0x1+0x1a6b+0x86c],_0x1eecc2=_0x5e9cdc+_0x23b4ae,_0x1aecfe=_0x21ba['knBDAi'][_0x1eecc2];return!_0x1aecfe?(_0x1a7aa9=_0x21ba['CEHQtO'](_0x1a7aa9),_0x21ba['knBDAi'][_0x1eecc2]=_0x1a7aa9):_0x1a7aa9=_0x1aecfe,_0x1a7aa9;}function createStatusTool(_0x199b75){const _0x992419={_0xd5f488:0x367},_0x208660={_0x3f7c52:0xe1,_0x470390:0x10a,_0xf4de92:0x10d,_0x38054c:0x112,_0x2f956b:0x2ac},_0x37a914={_0x19044f:0x258},_0x4b863b={_0x5b18c6:0x19f},_0x46d1a4={_0x567be9:0x1ee},_0x1af9d6=getStateFilePath(_0x199b75);function _0x2dea44(_0x4f8464,_0x309ae1){return _0x21ba(_0x4f8464-_0x46d1a4._0x567be9,_0x309ae1);}function _0x1418b1(_0x5709ee,_0x4c33c1){return _0x21ba(_0x5709ee-_0x4b863b._0x5b18c6,_0x4c33c1);}return tool({'description':_0x1418b1(0x2c0,0x2ee)+_0x2dea44(0x357,0x321)+_0x2dea44(_0x992419._0xd5f488,0x365)+'、所有\x20Agent\x20'+'的状态表格。','args':{},async 'execute'(){function _0x11ece8(_0x3e20e0,_0x3c8638){return _0x2dea44(_0x3c8638- -0x85,_0x3e20e0);}function _0x37a58e(_0x224448,_0x1899d1){return _0x2dea44(_0x1899d1- -_0x37a914._0x19044f,_0x224448);}try{return await _0x592cca[_0x37a58e(_0x208660._0x3f7c52,_0x208660._0x470390)](_0x1af9d6);}catch(_0x117050){return _0x37a58e(_0x208660._0xf4de92,_0x208660._0x38054c)+(_0x117050 instanceof Error?_0x117050[_0x11ece8(_0x208660._0x2f956b,0x273)]:String(_0x117050));}}});}function createAdvanceTool(_0x7ea534){const _0xd12260={_0x28c6fc:0x24e,_0x526008:0x22e,_0x56c2e4:0x1d2,_0x1427ca:0x3dc,_0x685a8:0x3d3,_0x7ac616:0x3a8,_0x1d626a:0x3be,_0x3eed8c:0x239,_0xb3eedc:0x3d5,_0x362e1f:0x3a9,_0x6dbf8c:0x3aa,_0x412939:0x3f9,_0x1fe5a8:0x209,_0x10ed92:0x1db,_0x3f4e4f:0x1fd},_0x24550d={_0x767f0e:0x1c5,_0x62e59a:0x26a,_0x396af8:0x292,_0x11a8bc:0x1cf,_0x5870df:0x19b},_0x240ea0={_0x21253c:0x3b},_0x1a25fe={_0x6fcf0:0x299},_0x4458e={_0x22b7a:0xd7};function _0x1e93e1(_0x10bd1f,_0x216d67){return _0x21ba(_0x10bd1f-_0x4458e._0x22b7a,_0x216d67);}const _0x25bfb4={'tSVNg':function(_0x4f16e6,_0x5e5d2f){return _0x4f16e6!==_0x5e5d2f;},'Jxofj':_0x1e93e1(_0xd12260._0x28c6fc,_0xd12260._0x526008),'sQFqo':_0x1e93e1(0x1ea,_0xd12260._0x56c2e4),'YJhOn':function(_0x42f2f0,_0x3d0a81){return _0x42f2f0 instanceof _0x3d0a81;},'uCRBu':function(_0x3fecb2,_0x37bc49){return _0x3fecb2(_0x37bc49);},'zEbZi':'要推进的\x20Agent'+_0x58711d(_0xd12260._0x1427ca,0x3e5)+_0x58711d(_0xd12260._0x685a8,0x40f)},_0x124188=getStateFilePath(_0x7ea534);function _0x58711d(_0x3f6f78,_0x5072fc){return _0x21ba(_0x5072fc-_0x1a25fe._0x6fcf0,_0x3f6f78);}return _0x25bfb4[_0x58711d(0x392,_0xd12260._0x7ac616)](tool,{'description':_0x58711d(_0xd12260._0x1d626a,0x3db)+_0x58711d(0x3e9,0x3e9)+_0x1e93e1(0x23a,_0xd12260._0x3eed8c)+_0x58711d(_0xd12260._0xb3eedc,0x414)+_0x58711d(0x37b,_0xd12260._0x362e1f)+_0x58711d(0x3dc,0x3dd)+'规划\x20→\x20执行\x20→\x20'+_0x58711d(0x3c5,_0xd12260._0x6dbf8c)+'eted','args':{'agent_id':tool[_0x58711d(0x3f1,_0xd12260._0x412939)][_0x1e93e1(0x22b,_0xd12260._0x1fe5a8)]()[_0x1e93e1(_0xd12260._0x10ed92,_0xd12260._0x3f4e4f)]()[_0x1e93e1(0x205,0x1d4)](_0x25bfb4[_0x58711d(0x411,0x3e7)])},async 'execute'(_0x3ca651){function _0x51f78e(_0x1f5c0d,_0x2c67be){return _0x1e93e1(_0x1f5c0d-0x86,_0x2c67be);}function _0x268fe7(_0x5436a1,_0x52c00d){return _0x1e93e1(_0x5436a1- -_0x240ea0._0x21253c,_0x52c00d);}if(_0x25bfb4['tSVNg'](_0x25bfb4[_0x268fe7(0x1a1,0x1e1)],_0x25bfb4[_0x268fe7(0x1c3,0x1b8)]))try{return await _0x592cca['advancePha'+'se'](_0x124188,_0x3ca651[_0x268fe7(_0x24550d._0x767f0e,0x1a9)]);}catch(_0x5509cb){return'❌\x20推进阶段失败:\x20'+(_0x25bfb4[_0x51f78e(_0x24550d._0x62e59a,_0x24550d._0x396af8)](_0x5509cb,Error)?_0x5509cb['message']:String(_0x5509cb));}else return'❌\x20注册\x20Agent'+_0x268fe7(_0x24550d._0x11a8bc,_0x24550d._0x5870df)+(_0x5d8cca instanceof _0x2cdeb8?_0x16c7bb['message']:_0x222abd(_0x346d27));}});}function createNewProjectTool(_0x4f5749){const _0x27ce32={_0x29e5ae:0x2a6,_0x30a708:0x237,_0x5b7e28:0x26b,_0x4148d1:0x281,_0x108b99:0x289,_0x168b86:0x311,_0x166720:0x2de,_0x4bb983:0x28b,_0x13aea3:0x265,_0x3b8cca:0x24b,_0x423b98:0x278,_0x2203ea:0x27b},_0x188017={_0x3e3466:0x225,_0x516c03:0xd8,_0x1e6747:0xc5,_0x5d59e1:0x249,_0x4bec31:0x80,_0x5c1f07:0xc0,_0x2ff1f6:0x4a,_0x1dabff:0x87,_0x499a02:0x264,_0x562569:0x275},_0x32ffe5={_0x3446c3:0x11d},_0x52b6fe={'NbSVO':function(_0x3bde8b,_0x14ac96){return _0x3bde8b instanceof _0x14ac96;},'iEhLy':function(_0x2e6469,_0xf0665){return _0x2e6469===_0xf0665;},'gPEhk':function(_0x47150c,_0xb2fe6b){return _0x47150c(_0xb2fe6b);},'dOzez':_0x317ed4(0x2cc,_0x27ce32._0x29e5ae)},_0x12c356=getStateFilePath(_0x4f5749);function _0x317ed4(_0x3de312,_0x316c66){return _0x21ba(_0x316c66-0x170,_0x3de312);}function _0x57fd99(_0x243858,_0x3116d1){return _0x21ba(_0x243858-_0x32ffe5._0x3446c3,_0x3116d1);}return tool({'description':_0x57fd99(_0x27ce32._0x30a708,_0x27ce32._0x5b7e28)+_0x317ed4(_0x27ce32._0x4148d1,_0x27ce32._0x108b99)+_0x317ed4(_0x27ce32._0x168b86,_0x27ce32._0x166720)+_0x57fd99(0x297,_0x27ce32._0x4bb983)+_0x57fd99(0x228,_0x27ce32._0x13aea3)+'。','args':{'project_name':tool['schema']['string']()[_0x57fd99(_0x27ce32._0x3b8cca,_0x27ce32._0x423b98)](_0x52b6fe[_0x57fd99(_0x27ce32._0x2203ea,0x25b)])},async 'execute'(_0x3f6152){const _0x28a35a={_0x309304:0x1a0};function _0xc4176c(_0xaaa9f8,_0xf71d5e){return _0x57fd99(_0xf71d5e- -_0x28a35a._0x309304,_0xaaa9f8);}const _0x4d698a={'VbAnM':function(_0x635ccb,_0x29d2ee){function _0x3f2f67(_0x1d6e12,_0x3cac63){return _0x21ba(_0x3cac63- -0x10d,_0x1d6e12);}return _0x52b6fe[_0x3f2f67(0x5c,0x2b)](_0x635ccb,_0x29d2ee);}};function _0x47cd17(_0x49c92a,_0x219cb5){return _0x57fd99(_0x219cb5- -0x4ae,_0x49c92a);}try{return _0x52b6fe[_0x47cd17(-_0x188017._0x3e3466,-0x236)](_0xc4176c(_0x188017._0x516c03,_0x188017._0x1e6747),_0x47cd17(-0x26d,-_0x188017._0x5d59e1))?await _0x592cca[_0xc4176c(0x107,0xfa)](_0x12c356,_0x3f6152[_0xc4176c(_0x188017._0x4bec31,_0x188017._0x5c1f07)+'me']):'❌\x20注销\x20Agent'+_0xc4176c(0xbe,0xb0)+(_0x4d698a[_0x47cd17(-0x2c2,-0x289)](_0x13800e,_0x4758c6)?_0x3571b7[_0xc4176c(_0x188017._0x2ff1f6,_0x188017._0x1dabff)]:_0x47c5d7(_0x5d1307));}catch(_0x1c7598){return'❌\x20创建项目失败:\x20'+(_0x1c7598 instanceof Error?_0x1c7598[_0xc4176c(0x81,0x87)]:_0x52b6fe[_0x47cd17(-_0x188017._0x499a02,-_0x188017._0x562569)](String,_0x1c7598));}}});}function createUpdateOperationTool(_0x6e4d7e){const _0x5d1e58={_0x52bdb5:0x234,_0x5295eb:0x246,_0x3b585d:0x2a2,_0x26e1ff:0x27f,_0x554d78:0x22d,_0x43c375:0x24b,_0x5f5e9:0x12b,_0x342b61:0x253,_0x5bb7ce:0x281,_0x4bc86b:0x2aa,_0x12cc85:0x2a1,_0x560a6b:0x197,_0x2f0a2a:0x19c,_0x1fa81a:0x191,_0x23d2ce:0x190,_0x1bffa8:0x222,_0x55bfff:0x24d,_0x1de01c:0x268,_0x34700e:0x2a4,_0x1d6ab7:0x24b,_0x444c47:0x131,_0x5c6ce0:0x187,_0x159583:0x258,_0x177f5d:0x190,_0x12c713:0x27b,_0x498724:0x28a},_0x29cd20={_0x104ba9:0x279,_0xf99d4c:0x28c,_0x24706e:0xe5,_0x228338:0xf6,_0x8ad8df:0xcd,_0x42e5f3:0xd9,_0x443574:0x108},_0x2a8e21={_0x5153fc:0x10b},_0x54aabf={_0x3de814:0x179},_0x21f028={_0x36bddd:0x3b8},_0x224fe4={};function _0x2ce90a(_0x4dfb42,_0x3bc855){return _0x21ba(_0x3bc855- -_0x21f028._0x36bddd,_0x4dfb42);}_0x224fe4[_0x2ce90a(-_0x5d1e58._0x52bdb5,-_0x5d1e58._0x5295eb)]=function(_0x188fd5,_0x2452d1){return _0x188fd5 instanceof _0x2452d1;},_0x224fe4[_0x2ce90a(-_0x5d1e58._0x3b585d,-_0x5d1e58._0x26e1ff)]=_0x2ce90a(-_0x5d1e58._0x554d78,-_0x5d1e58._0x43c375)+_0x4fce84(_0x5d1e58._0x5f5e9,0x167)+'rer\x22)';const _0x1a7ea1=_0x224fe4;function _0x4fce84(_0x12db93,_0x10ee3e){return _0x21ba(_0x10ee3e-0x3c,_0x12db93);}const _0x5b16bd=getStateFilePath(_0x6e4d7e);return tool({'description':_0x2ce90a(-0x27f,-_0x5d1e58._0x342b61)+'\x20的当前操作描述和使'+'用的工具/技能。\x0a用'+_0x2ce90a(-_0x5d1e58._0x5bb7ce,-_0x5d1e58._0x4bc86b)+_0x2ce90a(-0x2d2,-_0x5d1e58._0x12cc85),'args':{'agent_id':tool[_0x4fce84(_0x5d1e58._0x560a6b,_0x5d1e58._0x2f0a2a)][_0x4fce84(_0x5d1e58._0x1fa81a,_0x5d1e58._0x23d2ce)]()['describe'](_0x2ce90a(-_0x5d1e58._0x1bffa8,-_0x5d1e58._0x55bfff)),'operation':tool[_0x2ce90a(-_0x5d1e58._0x1de01c,-0x258)][_0x2ce90a(-_0x5d1e58._0x34700e,-0x264)]()[_0x2ce90a(-_0x5d1e58._0x1d6ab7,-0x28a)](_0x4fce84(_0x5d1e58._0x444c47,0x15a)+_0x4fce84(_0x5d1e58._0x5c6ce0,0x187)),'skill':tool[_0x2ce90a(-0x289,-_0x5d1e58._0x159583)][_0x4fce84(0x197,_0x5d1e58._0x177f5d)]()[_0x2ce90a(-_0x5d1e58._0x12c713,-_0x5d1e58._0x498724)](_0x1a7ea1['vuaFF'])},async 'execute'(_0x24cea3){function _0x4bda67(_0x10de9f,_0x3e1863){return _0x2ce90a(_0x3e1863,_0x10de9f-_0x54aabf._0x3de814);}function _0x466596(_0x5f1f7c,_0x13adc8){return _0x4fce84(_0x5f1f7c,_0x13adc8-_0x2a8e21._0x5153fc);}try{return'wDOUF'==='qYaSZ'?_0x466596(_0x29cd20._0x104ba9,0x245)+(_0x190ad8 instanceof _0x4c0de6?_0x36b089[_0x466596(_0x29cd20._0xf99d4c,0x251)]:_0x209810(_0x42ce63)):await _0x592cca[_0x4bda67(-0x122,-_0x29cd20._0x24706e)+_0x4bda67(-0x11c,-0x130)](_0x5b16bd,_0x24cea3[_0x466596(0x28f,0x270)],_0x24cea3['operation'],_0x24cea3['skill']);}catch(_0x175c4b){return _0x4bda67(-0x103,-_0x29cd20._0x228338)+(_0x1a7ea1[_0x4bda67(-_0x29cd20._0x8ad8df,-_0x29cd20._0x42e5f3)](_0x175c4b,Error)?_0x175c4b[_0x4bda67(-0x135,-_0x29cd20._0x443574)]:String(_0x175c4b));}}});}function _0x3465(){const _0x2cc17d=['DNvHrKy','5B+R6ycF5lU75yQH5QIH5BYp44cc6lEZ6l+h5A6m','5RoO5yAm5PAW55QeiefNzw50','4P2mioABToAwSoAtJEs9NowKSEI0PtOG','oty3ntCWsK5ozevU','CgHHC2u','otC3mgf0CwzMBW','m1fWBhPyrW','EwjwvLG','5O6O6l+BihnWzwnVChm','ChjVAMvJDf9Uyq','5Q615BQp5yIxoIdORQJORROG4OAsia','zgXL77Yj','C3rHDguUANnVBG','77Yi5y+V6ycj77Yj','vefutei','5yIg5BId5zU+44cbqwDLBNqG','ioEkTUAaGEEZU+E7N+oaGGRNLkJKUO7LUBy','5P6q6zYa5Rgc5PAh5QgJiU+8Iq','ieLe77Yi5lIn5OYh5A6A5yIz6iEQ5yQO','mte0nti0rhrdswjj','EKvIwMK','6kAb5RoO6zsa55QeiefNzw50','ioMyTUAUTEoaGUwWHUAmH+wUMIbbzW','zw50','BNtJGiik56E76zMKiefNzq','5PI+56s6ihnWzwnVChm','C3rYAw5N','Be1xCfi','q1fAv24','iowiScbZCgvJB3bZ','CMvNAxn0zxjbzW','CxvPy2TuyxnR','oda0yKfMAMHZ','AuvOthK','54I2iefNzw50ioEAHca','zgHtBge','ze96zxO','ieLe','C2nOzw1H','4P2miow/Q+MaN+s7U+wkOEwKSEI0PtOG','A05Js00','zw5077Yi5OIw56YS5lIa5lIQ5PYQ5A6m','uwvRuLy','5PU05PAW5OYh5A6AiefNzw50','DgfZAW','tKjwvuu','rwjbDKS','ioMHUEEBRUw9K+wjJEEkTUAaGEoaGGRMMl4','y2HPBgrjzhpJGii','qwDLBNqGsuq','5Pw0ifbPCgvSAw5L','5B2t5yMn5l2/55sO55Qe5BEL5yw3l+AkGoIdVq','lNnWzwnVChmVCW','C3bLy29WCW','4P2mioIoT+wpLUI/M+w6PUwKSEI0PtOG','EMLst0y','svjbsLG','CKXhvwq','z2v0u3rHDhvZ','zgLYzwn0B3j5','6ycj5OUP56YS5lIa5lIQ5PYQ5A6m5OIq55Qe77Yj','DhzTweS','qwDLBNq','56s66Ag555UU5zcn56EW44cb5B2t5yMn6zI25Q61','Dgf0zs5QC29U77Ym','5OIq55QeiefNzw5077Yj5O6O','4P2mioIoT+wpLUEkTUAaGEwKSEI0PtOG','BMv3uhjVAMvJDa','cUMaGUEuQos6JUwWJ+wEI+oaGEAyJUEHRUEAHa','4P2mioAoQoI/M+MyTUAUTEwKSEI0PtOG','5PE277Ym5Q+p5lIQigfNzw50','ndCYodfjsKHcs3m','mJrjDurvseC','CgfYzw50x2LK','mtH1twXnBeG','B3b0Aw9UywW','sNHVzMO','ioAZQowgJoIhQUw3SEEAHoEkTUAaGEoaGG','4P2mioAZQowgJcbbz2vUDa','vMjbBK0','4P2mioAZQoMuGcbbz2vUDa','BwvZC2fNzq','5yIB5BU65yID5AEliefNzw50','54I2iefNzw50ieLe','wuPOt24','5lQo5A6E5PE26l+96lIQiefNzw4','DunsqNu','6l+B5yIW5lIl5lIa5lIQ6zI25Q6144cccUMyTG','6AQm6k+biokgKIbJB21WBa','5y+rigfNzw50ioE8LUAoKG','Aw1tshi','rgPrvKy','tMzoBvi','yMj0v2S','DcdMRApLNkJLGzRKU4dKUyJJGii','mJe3mZK5sMLVs3HM','ChmG6Ag555UU44cc5yID5AEl5yYwia','5yIB5BU65PAW55QeihnWzwnV','BgjWy3a','z1bfAgS','DxbKyxrLt3bLCG','5B2t5yMn5Pon5l2C5O+p6l+W77Yi5AAciUwiHG','5yID5AEl6zI25Q6177Yi6BUy6k6KoIbP','5lUoihnWzwnVChmG','6i635y+wihnWzwnVChm','5zcR5A6m5OIq5BQM55M+5yIg5Q+u44cb6zI25Q61','yxrPB24','yw9tELK','uLbfzve','ndq5nJy5mgvWrwjKsq','C1fgCw8','ELfHDvG','ywDLBNrFAwq','mtK2mMnoCLz2zG','5zcn56EW77Yi5AAciMv4CgXV','BNqG6k6W5B2v77Ym5zcm5PE25PU05PAW','54Q25Ocb57o757UF5RoO6zsaiefNzq','zgvZy3jPyMu','AerMrMC','z2XvCxG','lNnWzwnVChm','wKzPvw8','iowKSEI0PtOG','qxrTy3q','mLjuB1HAsa','6Ag555UU5zcn56EW','nJaWnJu0whHRCvr1','tMjtvK8'];_0x3465=function(){return _0x2cc17d;};return _0x3465();}function createRegisterAgentTool(_0x73abdc){const _0x10426c={_0x14e944:0x48e,_0x4547e5:0x4aa,_0x378d2c:0x465,_0x37d3bf:0x452,_0x1cf6fb:0x419,_0x3bd43c:0x262,_0x1569a5:0x23a,_0x4c6f0f:0x4a7,_0x1c8b5c:0x4a9,_0x345ce7:0x272,_0x1ff6d6:0x294,_0x39241d:0x242,_0x6ce3f1:0x25a,_0x43097e:0x255,_0x36e11b:0x269,_0x521398:0x279},_0x1a44cd={_0x13d665:0x92,_0x4e1046:0x99,_0x296047:0x75,_0x132710:0xd0,_0x5ec39d:0xc4,_0x5639cf:0x3d7,_0x3dbcf7:0x3bf,_0x296a5b:0x3ad,_0x17399e:0x3f6};function _0x42dc85(_0x22898a,_0x2566d2){return _0x21ba(_0x22898a-0x353,_0x2566d2);}const _0x5800d5={'NBVUE':function(_0x1f36b7,_0x2ebcae){return _0x1f36b7 instanceof _0x2ebcae;},'hDfFg':function(_0x13dd75,_0xccdf4b){return _0x13dd75(_0xccdf4b);},'CQZWn':'Agent\x20ID'},_0x4db1a1=getStateFilePath(_0x73abdc);function _0x2d9361(_0xdcc1bd,_0xd1aec2){return _0x21ba(_0xd1aec2-0x134,_0xdcc1bd);}return _0x5800d5[_0x42dc85(0x482,0x468)](tool,{'description':_0x42dc85(_0x10426c._0x14e944,0x4a3)+_0x42dc85(_0x10426c._0x4547e5,0x48c)+_0x42dc85(0x49d,0x479)+_0x42dc85(_0x10426c._0x378d2c,0x49d)+_0x42dc85(_0x10426c._0x37d3bf,_0x10426c._0x1cf6fb)+_0x2d9361(_0x10426c._0x3bd43c,_0x10426c._0x1569a5),'args':{'agent_id':tool[_0x42dc85(0x4b3,0x4d6)][_0x42dc85(_0x10426c._0x4c6f0f,0x4c5)]()[_0x2d9361(0x23b,0x262)](_0x5800d5[_0x42dc85(_0x10426c._0x1c8b5c,0x4dd)]),'parent_id':tool[_0x2d9361(_0x10426c._0x345ce7,_0x10426c._0x1ff6d6)][_0x2d9361(0x250,0x288)]()[_0x2d9361(_0x10426c._0x39241d,0x238)]()[_0x2d9361(0x27b,_0x10426c._0x3bd43c)](_0x42dc85(0x45f,0x431)+_0x2d9361(_0x10426c._0x39241d,0x27b)),'phase':tool[_0x2d9361(_0x10426c._0x6ce3f1,0x294)]['string']()['optional']()['describe'](_0x2d9361(_0x10426c._0x43097e,0x253)+_0x2d9361(_0x10426c._0x36e11b,_0x10426c._0x521398))},async 'execute'(_0x11ccf6){const _0x592354={_0x1dac21:0x53d};function _0x2d345e(_0x409c1c,_0x3b9686){return _0x2d9361(_0x409c1c,_0x3b9686-0x184);}function _0x31bd3d(_0x4b43a5,_0x114f1d){return _0x42dc85(_0x4b43a5- -_0x592354._0x1dac21,_0x114f1d);}try{return await _0x592cca[_0x31bd3d(-_0x1a44cd._0x13d665,-0x77)+_0x31bd3d(-_0x1a44cd._0x4e1046,-_0x1a44cd._0x296047)](_0x4db1a1,_0x11ccf6[_0x31bd3d(-0xc1,-_0x1a44cd._0x132710)],{'parentId':_0x11ccf6[_0x31bd3d(-0xe8,-_0x1a44cd._0x5ec39d)],'phase':_0x11ccf6[_0x31bd3d(-0xac,-0x88)]});}catch(_0x35bca9){return _0x2d345e(_0x1a44cd._0x5639cf,_0x1a44cd._0x3dbcf7)+_0x2d345e(_0x1a44cd._0x296a5b,0x3eb)+(_0x5800d5[_0x31bd3d(-0x83,-0x76)](_0x35bca9,Error)?_0x35bca9[_0x2d345e(_0x1a44cd._0x17399e,0x3c2)]:String(_0x35bca9));}}});}function createDeregisterAgentTool(_0x370099){const _0x773b85={_0xb61425:0x409,_0x2409b1:0x3f8,_0x3fe3c9:0x424,_0x5ddc56:0x39d,_0x54b515:0x1c2,_0x5a0bc3:0x406,_0x2ef1cb:0x1bf,_0x172afb:0x1e5,_0x22cd03:0x1a9},_0x5c5857={_0x7866c6:0x2f2,_0x5202e3:0x2fe,_0x39c822:0x2dc,_0x369d72:0x29f,_0x14948f:0x25f,_0x30b3cb:0x244,_0xfee506:0x222,_0x189421:0x2e2,_0x4d3d43:0x2c5,_0x89972a:0x2a4,_0x352b0d:0x283,_0x1a73eb:0x284,_0x47ce1a:0x26c},_0x450f1f={_0x5e1353:0x7b},_0x5bbc98={'EbAvK':_0x58783c(0x1ea,0x216),'DjQVF':function(_0x30d793,_0x5c416f){return _0x30d793(_0x5c416f);},'bbtWk':function(_0x4eda7c,_0x40d0af){return _0x4eda7c(_0x40d0af);},'zQauX':function(_0x11234b,_0x3d457b){return _0x11234b(_0x3d457b);},'emAjE':function(_0x66d49c,_0x37e618){return _0x66d49c(_0x37e618);},'dhSla':function(_0x218552,_0xfdfa79){return _0x218552(_0xfdfa79);},'kNcKM':function(_0x3340f4,_0x320b5b){return _0x3340f4===_0x320b5b;},'NfNmR':_0x5b76ef(_0x773b85._0xb61425,0x3eb),'glUqx':function(_0x3278e2,_0xb51f8f){return _0x3278e2(_0xb51f8f);},'ZFiUo':_0x5b76ef(0x403,_0x773b85._0x2409b1)+_0x5b76ef(0x413,_0x773b85._0x3fe3c9)};function _0x58783c(_0x511eed,_0x1681b3){return _0x21ba(_0x511eed-_0x450f1f._0x5e1353,_0x1681b3);}function _0x5b76ef(_0x3adac3,_0xc36f1c){return _0x21ba(_0x3adac3-0x2b4,_0xc36f1c);}const _0x4aa9de=getStateFilePath(_0x370099);return tool({'description':_0x5b76ef(0x3d4,_0x773b85._0x5ddc56)+_0x58783c(0x1a8,_0x773b85._0x54b515)+_0x5b76ef(_0x773b85._0x5a0bc3,0x3de)+_0x58783c(0x1a7,_0x773b85._0x2ef1cb)+_0x58783c(0x1d7,0x20d)+_0x58783c(_0x773b85._0x172afb,0x1ae),'args':{'agent_id':tool[_0x58783c(0x1db,0x209)][_0x58783c(0x1cf,0x1e8)]()[_0x58783c(_0x773b85._0x22cd03,0x1ac)](_0x5bbc98[_0x58783c(0x1ad,0x1ae)])},async 'execute'(_0x401734){function _0xcac77e(_0x34a01e,_0x26bd4f){return _0x5b76ef(_0x34a01e- -0x13a,_0x26bd4f);}function _0x3e1b0f(_0x2fee22,_0x1fdd1d){return _0x58783c(_0x2fee22- -0x434,_0x1fdd1d);}try{return await _0x592cca['deregister'+_0xcac77e(_0x5c5857._0x7866c6,_0x5c5857._0x5202e3)](_0x4aa9de,_0x401734['agent_id']);}catch(_0x49e9c5){if(_0x5bbc98[_0xcac77e(_0x5c5857._0x39c822,_0x5c5857._0x369d72)](_0x5bbc98[_0xcac77e(0x28f,_0x5c5857._0x14948f)],'gwvlE')){const _0x42f50c=_0xbd8de5[_0x3e1b0f(-_0x5c5857._0x30b3cb,-_0x5c5857._0xfee506)];return{'name':_0x5bbc98[_0xcac77e(_0x5c5857._0x189421,0x2ef)],'tool':{'specops_status':_0x472b99(_0x42f50c),'specops_advance':_0x599bc6(_0x42f50c),'specops_new_project':_0x5bbc98[_0x3e1b0f(-0x2a5,-_0x5c5857._0x4d3d43)](_0x3bf1dd,_0x42f50c),'specops_update_operation':_0x5bbc98[_0xcac77e(0x290,0x26d)](_0x299072,_0x42f50c),'specops_register_agent':_0x5bbc98['zQauX'](_0x149517,_0x42f50c),'specops_deregister_agent':_0x5bbc98[_0x3e1b0f(-0x291,-_0x5c5857._0x89972a)](_0x1e633f,_0x42f50c),'specops_progress':_0x11e8c7(_0x42f50c),'specops_quick':_0x5bbc98['emAjE'](_0x90717,_0x42f50c),'specops_analyze_requirements':_0x5bbc98[_0x3e1b0f(-0x25c,-0x293)](_0x424a8d,_0x42f50c)},'event':async _0x82d4d0=>{}};}else return _0xcac77e(_0x5c5857._0x352b0d,0x282)+_0xcac77e(0x2ad,0x271)+(_0x49e9c5 instanceof Error?_0x49e9c5[_0xcac77e(_0x5c5857._0x1a73eb,0x265)]:_0x5bbc98[_0xcac77e(0x2aa,_0x5c5857._0x47ce1a)](String,_0x49e9c5));}}});}function createProgressTool(_0x3fc5d6){const _0x1f63d6={_0x169a58:0x2cd,_0x516a85:0x203,_0x54c8a6:0x2c3},_0x454d90={_0x3e3ab5:0x187,_0xc7cf4:0x19c,_0x1efa33:0x1ed,_0x4b9439:0x22c},_0x41d865={_0x36a3bd:0x471},_0x328fd0={_0x2dc733:0xe1};function _0x456edc(_0x3310a3,_0x585ff2){return _0x21ba(_0x585ff2-_0x328fd0._0x2dc733,_0x3310a3);}const _0xbce651=getStateFilePath(_0x3fc5d6);function _0x1a9ad0(_0x1a234f,_0x485ea6){return _0x21ba(_0x485ea6-0x17a,_0x1a234f);}return tool({'description':_0x1a9ad0(0x2aa,_0x1f63d6._0x169a58)+'\x20项目详细进度。\x0a包'+_0x456edc(0x1d0,_0x1f63d6._0x516a85)+_0x1a9ad0(0x2dd,_0x1f63d6._0x54c8a6)+'详情表格。','args':{},async 'execute'(){function _0x1252fa(_0x18871f,_0x4bc945){return _0x1a9ad0(_0x4bc945,_0x18871f- -0x4be);}function _0x229972(_0x4bd99a,_0x2a0671){return _0x1a9ad0(_0x2a0671,_0x4bd99a- -_0x41d865._0x36a3bd);}try{return await _0x592cca['showProgre'+'ss'](_0xbce651);}catch(_0x329ad3){return _0x229972(-_0x454d90._0x3e3ab5,-_0x454d90._0xc7cf4)+(_0x329ad3 instanceof Error?_0x329ad3[_0x229972(-_0x454d90._0x1efa33,-_0x454d90._0x4b9439)]:String(_0x329ad3));}}});}function createQuickTool(_0x33c953){const _0x4d0920={_0x221e01:0xcc,_0x1b0b6c:0xfe,_0x3a4698:0x86,_0x1051b1:0xc5,_0x413a51:0x10f,_0x141f77:0xf7,_0x574ffd:0x39,_0xe781ca:0xd3},_0x30091b={_0x4aed30:0x284,_0x94443:0x106,_0x1ea5ec:0x84,_0x1f9ff3:0xc5,_0x2c476e:0xd1,_0x45a006:0x28c,_0x289e29:0x262,_0x2f8a51:0x235},_0x14ef4f={_0x466b45:0x111},_0x528e9a={_0x290635:0x171},_0x59eaa6={_0x2e705b:0x75};function _0x1cc79c(_0x47df85,_0x5ed030){return _0x21ba(_0x5ed030- -_0x59eaa6._0x2e705b,_0x47df85);}const _0x41a551={'RPEeQ':function(_0x27f3b3,_0x245ebc,_0x5c80a9,_0x341cbf){return _0x27f3b3(_0x245ebc,_0x5c80a9,_0x341cbf);},'lbpcp':_0x1cc79c(0xeb,_0x4d0920._0x221e01),'rLGUd':function(_0x4ce15c,_0x7cf306){return _0x4ce15c(_0x7cf306);}};function _0x5d66a8(_0xe53f66,_0x205154){return _0x21ba(_0xe53f66- -_0x528e9a._0x290635,_0x205154);}const _0x4211c8=getStateFilePath(_0x33c953);return _0x41a551[_0x1cc79c(0x104,_0x4d0920._0x1b0b6c)](tool,{'description':_0x1cc79c(_0x4d0920._0x3a4698,_0x4d0920._0x1051b1)+_0x1cc79c(_0x4d0920._0x413a51,_0x4d0920._0x141f77)+',直接进入执行阶段。'+_0x5d66a8(0xd,_0x4d0920._0x574ffd)+'任务。','args':{'task':tool['schema'][_0x1cc79c(_0x4d0920._0xe781ca,0xdf)]()['describe']('任务描述')},async 'execute'(_0x262016){function _0x2320f6(_0x5c556a,_0x5de75b){return _0x5d66a8(_0x5de75b-_0x14ef4f._0x466b45,_0x5c556a);}function _0x594883(_0x5bc6ec,_0x112823){return _0x5d66a8(_0x5bc6ec-0x29c,_0x112823);}try{return await _0x592cca[_0x594883(_0x30091b._0x4aed30,0x2bc)](_0x4211c8,_0x262016[_0x2320f6(0x13e,_0x30091b._0x94443)]);}catch(_0x5e3f0b){return _0x594883(0x25f,0x26f)===_0x41a551[_0x2320f6(0x89,0xbb)]?_0x41a551[_0x2320f6(_0x30091b._0x1ea5ec,_0x30091b._0x1f9ff3)](_0x38328d,_0x550851,_0x2320f6(0xf9,_0x30091b._0x2c476e),'state.json'):_0x594883(_0x30091b._0x45a006,_0x30091b._0x289e29)+(_0x5e3f0b instanceof Error?_0x5e3f0b[_0x594883(_0x30091b._0x2f8a51,0x225)]:String(_0x5e3f0b));}}});}const SpecOpsPlugin=async _0x354408=>{const _0x3f2f66={_0x54dea5:0x162,_0x87ae2e:0x179,_0x502c7d:0x111,_0x336baa:0x52d},_0x3940c9={_0x36edca:0x13};function _0x30da7c(_0x332407,_0x1bc6a8){return _0x21ba(_0x332407- -_0x3940c9._0x36edca,_0x1bc6a8);}const _0x1dd478={'aoSzY':function(_0x5ba934,_0x2d61c9){return _0x5ba934(_0x2d61c9);},'QroKN':function(_0x12d92a,_0x4a187e){return _0x12d92a(_0x4a187e);},'dllRm':function(_0x539d81,_0x2d5d9b){return _0x539d81(_0x2d5d9b);},'ziROF':function(_0x51fad6,_0x57e8da){return _0x51fad6(_0x57e8da);},'lihZO':function(_0x42e9b1,_0x2dabaf){return _0x42e9b1(_0x2dabaf);}},_0x3cfd54=_0x354408[_0x30da7c(_0x3f2f66._0x54dea5,_0x3f2f66._0x87ae2e)];function _0x25d229(_0x2128ad,_0x483016){return _0x21ba(_0x2128ad-0x3bc,_0x483016);}return{'name':'specops','tool':{'specops_status':createStatusTool(_0x3cfd54),'specops_advance':_0x1dd478[_0x30da7c(0x111,_0x3f2f66._0x502c7d)](createAdvanceTool,_0x3cfd54),'specops_new_project':createNewProjectTool(_0x3cfd54),'specops_update_operation':createUpdateOperationTool(_0x3cfd54),'specops_register_agent':_0x1dd478['QroKN'](createRegisterAgentTool,_0x3cfd54),'specops_deregister_agent':_0x1dd478['dllRm'](createDeregisterAgentTool,_0x3cfd54),'specops_progress':createProgressTool(_0x3cfd54),'specops_quick':_0x1dd478[_0x25d229(_0x3f2f66._0x336baa,0x51b)](createQuickTool,_0x3cfd54),'specops_analyze_requirements':_0x1dd478['lihZO'](createAnalyzeRequirementsTool,_0x3cfd54)},'event':async _0x1dca27=>{}};};export default SpecOpsPlugin;