specops 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__integration__/fixtures/generator.js +1 -1
- package/dist/__integration__/mocks/server.js +1 -1
- package/dist/__integration__/setup.js +1 -1
- package/dist/acceptance/lazyDetector.js +1 -1
- package/dist/acceptance/reporter.js +1 -1
- package/dist/acceptance/runner.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/context/index.js +1 -1
- package/dist/context/promptTemplate.js +1 -1
- package/dist/context/techContextLoader.js +1 -1
- package/dist/engine.js +1 -1
- package/dist/evolution/distiller.js +1 -1
- package/dist/evolution/index.js +1 -1
- package/dist/evolution/memoryGraph.js +1 -1
- package/dist/evolution/selector.js +1 -1
- package/dist/evolution/signals.js +1 -1
- package/dist/evolution/solidify.js +1 -1
- package/dist/evolution/store.js +1 -1
- package/dist/evolution/types.js +1 -1
- package/dist/init.js +1 -1
- package/dist/machines/agentMachine.js +1 -1
- package/dist/machines/supervisorMachine.js +1 -1
- package/dist/persistence/schema.js +1 -1
- package/dist/persistence/stateFile.js +1 -1
- package/dist/plugin-engine.js +1 -1
- package/dist/plugin.js +1 -1
- package/dist/requirement-analysis/analyzers/repository-parser.js +1 -1
- package/dist/requirement-analysis/generators/prd-generator.js +1 -1
- package/dist/requirement-analysis/integrations/v1-integration.js +1 -1
- package/dist/requirement-analysis/tools/analyze-requirements.js +1 -1
- package/dist/requirement-analysis/utils/error-handler.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/id.js +1 -1
- package/package.json +1 -1
- package/scripts/postinstall.mjs +66 -2
package/dist/plugin-engine.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x36a638,_0x4b46c3){const _0x165ebf={_0x5d0bcd:0x506,_0x235529:0x532,_0x5f44e4:0x236,_0x5acc55:0x27d,_0x10ed25:0x4d3,_0x446b95:0x4a4,_0x597a33:0x497,_0x14b004:0x2e3,_0x1c59ce:0x47a,_0x5e4232:0x498,_0x4c6b7f:0x4ec,_0x1d66c6:0x4a2,_0x6c2f95:0x2b1},_0x35c604={_0x37c7c3:0xf5};function _0x4419c5(_0x536ad1,_0x23b228){return _0x36b0(_0x23b228-_0x35c604._0x37c7c3,_0x536ad1);}const _0x470d80=_0x36a638();function _0x52b9ff(_0x4d92a9,_0x5a5337){return _0x36b0(_0x4d92a9-0x2fd,_0x5a5337);}while(!![]){try{const _0x3dd02d=parseInt(_0x52b9ff(_0x165ebf._0x5d0bcd,_0x165ebf._0x235529))/(0x9b3+-0x1*0x165c+0xcaa)+-parseInt(_0x4419c5(_0x165ebf._0x5f44e4,_0x165ebf._0x5acc55))/(0x1ca2+-0xe4*-0x11+-0x2bc4)*(parseInt(_0x52b9ff(0x4c7,_0x165ebf._0x10ed25))/(0xbe7*-0x3+-0x1bb*-0xa+0x935*0x2))+-parseInt(_0x52b9ff(_0x165ebf._0x446b95,_0x165ebf._0x597a33))/(0x1f58+-0x1c1*0xa+-0xdca)*(parseInt(_0x52b9ff(0x4bf,0x480))/(0x1c2b+-0xb97+-0x9d*0x1b))+parseInt(_0x4419c5(0x30f,_0x165ebf._0x14b004))/(0x1*-0xe6b+-0x7cd*0x1+0x163e)+-parseInt(_0x52b9ff(0x4ac,_0x165ebf._0x1c59ce))/(0x9*0x100+0xf20+-0x1819)*(parseInt(_0x52b9ff(0x4e4,_0x165ebf._0x5e4232))/(0xd2e+0x25c*0x2+0x8ef*-0x2))+-parseInt(_0x52b9ff(0x4fb,0x524))/(-0x16e4+0xdaf+0x5b*0x1a)+-parseInt(_0x52b9ff(_0x165ebf._0x4c6b7f,_0x165ebf._0x1d66c6))/(-0x1*0x527+0x667*-0x1+-0x1a8*-0x7)*(-parseInt(_0x4419c5(_0x165ebf._0x6c2f95,0x273))/(-0x1fe0+-0x462+-0x1*-0x244d));if(_0x3dd02d===_0x4b46c3)break;else _0x470d80['push'](_0x470d80['shift']());}catch(_0x15b720){_0x470d80['push'](_0x470d80['shift']());}}}(_0xbe48,-0x2dd75+0x260c5+-0x13*-0x2351));import{existsSync,readFileSync,mkdirSync}from'node:fs';function _0xbe48(){const _0x5b72ff=['DxrMltG','zeDbCLi','rcaGicaGicaGia','5OQa5PYV6ycj5z6l','yvHKreW','ntzcDMHxuLq','tfnUAxe','zffRtui','AKrjBe4','icaG5PQc5PEGiefNzw4','z25WyNG','zKT6C1e','mJe3nJa4AujbEuXl','mZyWnZb1Bw1WrNi','wvHOBM4','4PQHiow/Q+MaN+s7U+wkOEAOOEw8JW','D3jPDgu','B2TWBNa','AKPbAva','AwrSzq','CMvHza','CMvXDwLYzw1LBG','icaG5yID5AEliefNzw4','ChvZAa','q0vqwNK','zMLSDgvY','uNHNtfu','rLDYEwG','mtm2mZK1zerbueDH','yu9ywfG','ihWG6zI25Q61icaGica','CxvPy2S','56UE5zob5yIg5P6q','DgHez08','4PYfioAjGoACIsbbz2vUDa','icaG6zI25Q61oIa','Cvj5uMu','5yQH5lIn6lwW5A6m5Pw0ifbPCgu','5yQF6io95yIg5P6q','mtKYnJqWwenfCwHN','BMfTzq','y29TCgXLDgvK','Aw5KzxHpzG','BwfW','zgvTyw5Kx2fUyq','AKX6wMi','BuLZALy','AgvuEMe','xsdMK43KVzZLT7lMM7tMLRa6ia','Bg10rfu','zeLUALu','4P2miefNzw50ia','77Ym6k+35ywi6l+q6kgmig5LDY0','icaGicaG','ody5zKT5uwTr','ios4JEwTMowCQos6JIbZDgf0','zMvHDhvYzv9HBG','Aw5JBhvKzxm','BgvUz3rO','y3vYCMvUDe9Wzq','5yAmoIa','qNb6B3y','iow3SUwUJoAiKowfQoMdQoMyTUAUTq','iokgKIa','mMzpqKTYza','v25vrhK','CgfYzw50swq','icaG5PU05PAW5PE26zE0oIa','zwnwwfy','4PYfiefNzw50iow3SUAZQa','qKTQB00','CMf0Aw9U','icaG6zI25Q615BQp5yIxoIa','Eev0CKO','t3LhCKG','ChjVAMvJDa','iow3SUwTMowCQo+8JoI3S+I/H+AZQowgJa','icaGicaGicaGia','tuL5rve','rNjPy2K','y2HPBgrjzhm','ChDzz1y','ioIVPUAdHtO','6zYa5Rgc5yIg5P6q','EwTxBuC','zgLZy3vZCW','AwPzqwG','CMvJDxjZAxzL','icaG54Mi5PYSoIa','icaG5lU75yQHoIa','CxvPy2STDgfZAW','8j+gLsdPOBNNM67LT7lLIjVLU7O6ia','DxvNs2y','B2Llquu','icaGicaGFcdMK43KVzW','mte3mZu2twDYqwvx','jsaO','icaG8j+tIcdPMlBMRRxLIiBLUim6','4PYfifS','CMvWzwf0','icaGicaGicb8ia','4PQG77IpicdNIRBMGihMLOFKU7BKUi3LRzJLNkG','s3LZzKW','mJC1otmZzvrxBhjT','y3vYCMvUDfnRAq','uvP2CLa','zw50CMLLCW','DMvYAwz5','BwfJAgLUzvnUyq','ze90Dvq','iefNzw50kq','xsdLT7lLROZMIjdLHAJPG6JPMlBMRRu','ChjVAMvJDcdLKB3KU6q','DcdORRdLVzu','ywDLBNrZ','DNvOvKG','Df9HBMfSExnPCW','icaG8j+KLIbbz2vUDa','5lMq6kEc6zsb5yAY56Qb','icaGqwDLBNqGsq','icaG5B2t5yMn6zI25Q61oIa','A2v5CW','mtbSrgTdwKi','icaG54I2iefNzw50','ChnOB3q','icaG','DgvJAf9ZzwXLyW','4PQG77Ipicbbz2vUDca','BhLZAxm','DMvYC2LVBG','nZi3mdH2v2z5yu8','zeDNCvi','ihWG','DxbKyxrLzef0','DgLVBG','zxHLy3v0zq','ios4JEwTMowCQa','8j+tIIdPOBNNM67OV5VLUQy6ia','sfDpwMq','AM9PBG','cUkCHsbbz2vUDca','CM91BMq','y29TCgv0AxrVCG','y3vYCMvUDfbOyq','CgfKrw5K','x2fUywX5C2LZ','vfPOvLq','icaGqwDLBNq6ia','CgXHBG','CMfUzg9T','Bwf4','zs5QC29U','CgHHC2u','ywDLBNrjza'];_0xbe48=function(){return _0x5b72ff;};return _0xbe48();}import{resolve}from'node:path';function _0x995840(_0x51eede,_0x3eb8f3){return _0x36b0(_0x51eede-0x384,_0x3eb8f3);}import{StateFileManager}from'./persistence/stateFile.js';import{PHASES,PIPELINE_PHASES}from'./types/index.js';import{generateAgentId}from'./utils/id.js';const _0x1edb20={};_0x1edb20[_0x562d75(0x48f,0x484)+_0x562d75(0x403,0x449)]=_0x995840(0x51f,0x4e2),_0x1edb20[_0x562d75(0x49a,0x49b)+_0x995840(0x54c,0x552)]=_0x562d75(0x3f9,0x428),_0x1edb20[_0x562d75(0x420,0x463)+_0x995840(0x55d,0x5aa)]=_0x995840(0x586,0x56c),_0x1edb20[_0x562d75(0x434,0x40d)+'alysis']=_0x562d75(0x4db,0x495),_0x1edb20[_0x995840(0x54a,0x591)+_0x562d75(0x420,0x45b)]=_0x562d75(0x4aa,0x472),_0x1edb20[_0x562d75(0x412,0x42a)]='讨论',_0x1edb20[_0x562d75(0x48b,0x469)]='规划',_0x1edb20[_0x562d75(0x475,0x45c)]='执行',_0x1edb20[_0x562d75(0x3f6,0x440)]='验证';const PHASE_NAMES=_0x1edb20,MAX_RETRIES=0x1490+-0x9*0x2c6+0x1*0x46b;async function readStateFile(_0x18f40a){const _0x1dedc3={'jLzZb':function(_0x5bad26,_0x198152){return _0x5bad26(_0x198152);}};if(!_0x1dedc3[_0x26d1da(-0x74,-0x6b)](existsSync,_0x18f40a))return null;function _0x26d1da(_0xe64181,_0x3d003f){return _0x995840(_0xe64181- -0x607,_0x3d003f);}function _0xf136ec(_0x246283,_0x1a6fd9){return _0x995840(_0x246283- -0x67a,_0x1a6fd9);}const _0x557334=new StateFileManager(_0x18f40a);return _0x557334[_0xf136ec(-0x100,-0x14d)]();}async function writeStateFile(_0x58aa4f,_0x1ca6a7){const _0x42d100={_0x57575a:0xb8,_0x5d1ee2:0x90,_0x5aa0d5:0xea,_0x5f5b80:0x6a,_0x65a0:0x82,_0x22e2c6:0x2f,_0x56ab03:0x75,_0x1593c4:0x88},_0x5758e7={_0x47f76f:0x490},_0x3fe110={};function _0x7fc6d9(_0x12cf78,_0x527ad7){return _0x995840(_0x12cf78- -0x5ca,_0x527ad7);}function _0x41cd71(_0x198649,_0x444bde){return _0x995840(_0x444bde- -_0x5758e7._0x47f76f,_0x198649);}_0x3fe110[_0x7fc6d9(-_0x42d100._0x57575a,-_0x42d100._0x5d1ee2)]=function(_0x311d9c,_0x97a963){return _0x311d9c instanceof _0x97a963;};const _0x317abd=_0x3fe110;for(let _0x100fc8=-0x1*0x1265+0xb*-0x2b9+0x2*0x182c;_0x100fc8<MAX_RETRIES;_0x100fc8++){try{const _0x489917=new StateFileManager(_0x58aa4f);await _0x489917[_0x41cd71(0xcc,_0x42d100._0x5aa0d5)](),await _0x489917[_0x7fc6d9(-0x54,-0x1e)](_0x1ca6a7);return;}catch(_0x5b2a90){if(_0x317abd[_0x41cd71(_0x42d100._0x5f5b80,_0x42d100._0x65a0)](_0x5b2a90,Error)&&_0x5b2a90['message'][_0x41cd71(_0x42d100._0x22e2c6,_0x42d100._0x56ab03)](_0x7fc6d9(-_0x42d100._0x1593c4,-0xc0))&&_0x100fc8<MAX_RETRIES-(0x4*0x188+-0x2291*0x1+0x1c72)){await new Promise(_0x5a15fa=>setTimeout(_0x5a15fa,-0x53*-0x10+0x11a7*-0x1+0xca9+Math[_0x7fc6d9(-0x69,-0x2e)]()*(-0x1987+-0x4cf*-0x4+-0x1d*-0x3b)));continue;}throw _0x5b2a90;}}}function computeOverallPhase(_0x341c90){const _0x4eed15={_0x14b48b:0x509,_0x4c5561:0x50e,_0x102b17:0x4da,_0x2c41c9:0x4dc,_0x12d277:0xd8,_0x34c7a5:0x103,_0x2f4707:0x4f9,_0x395749:0xe8,_0x179c2d:0x120},_0x4ae071={_0x1aee5b:0x8c},_0x273046={};function _0x40e5e6(_0x419417,_0x11f657){return _0x562d75(_0x11f657,_0x419417- -0x395);}_0x273046[_0x1c6a60(_0x4eed15._0x14b48b,_0x4eed15._0x4c5561)]='completed';const _0xad6cfd=_0x273046;for(const _0xe486e3 of Object[_0x1c6a60(_0x4eed15._0x102b17,_0x4eed15._0x2c41c9)](_0x341c90)){if(_0x341c90[_0xe486e3][_0x40e5e6(_0x4eed15._0x12d277,0x11c)]!==_0x40e5e6(_0x4eed15._0x34c7a5,0xd0))return _0x341c90[_0xe486e3][_0x1c6a60(_0x4eed15._0x2f4707,0x4b8)];}function _0x1c6a60(_0x56d10b,_0x5793d6){return _0x562d75(_0x5793d6,_0x56d10b-_0x4ae071._0x1aee5b);}return _0xad6cfd[_0x40e5e6(_0x4eed15._0x395749,_0x4eed15._0x179c2d)];}export async function getStatus(_0x28c003){const _0x249b20={_0x4b5213:0x366,_0x17b711:0x34e,_0x3c1a98:0x346,_0x47da41:0x301,_0x430a85:0x2fe,_0x28d00f:0x33b,_0x10db17:0x347,_0x2a3e14:0x2f0,_0x6353ce:0xe3,_0x5809e6:0xda,_0x2317bf:0x7b,_0x47ae7b:0x376,_0x203333:0x305,_0x4592f4:0x30b,_0x47caf2:0xe6,_0x1e2365:0xba,_0x345ad3:0xea,_0x59f7b2:0x89,_0x539811:0xa7,_0x118ed5:0xa7,_0x20e781:0xc6,_0x569d30:0x66,_0x2097e1:0x32e,_0x3b9d84:0x55,_0x178216:0x3f,_0x4560e6:0x88,_0x3a42b1:0x100,_0xfb5b74:0xcc,_0x21e6b6:0x70,_0x4e3913:0x88,_0x4973df:0x352,_0x4f1c3e:0xa5,_0x567201:0x8e,_0x57584b:0x8d,_0x2d57f8:0xa8,_0x303ba7:0x90,_0x3167ae:0x83,_0x25640f:0x2e7,_0x2af834:0x2ea,_0x15e761:0xa4,_0x277e09:0x9a,_0x5da921:0x310,_0x6c0412:0x2f4,_0x3e8356:0x66,_0x155679:0x32a,_0x5537a2:0x93,_0x5926e6:0x92,_0x3c220d:0x93,_0x2b27b1:0x33d,_0x336ca5:0x344,_0x377950:0x331,_0x1c37d3:0x55,_0x253efd:0x8c},_0x56542a={_0xf5d153:0x21f},_0x4c720d={};_0x4c720d[_0x15c037(_0x249b20._0x4b5213,_0x249b20._0x17b711)]=_0x15c037(_0x249b20._0x3c1a98,0x350)+_0x15c037(_0x249b20._0x47da41,0x31e),_0x4c720d[_0x15c037(0x2ca,_0x249b20._0x430a85)]=_0x15c037(_0x249b20._0x28d00f,_0x249b20._0x10db17),_0x4c720d[_0x15c037(_0x249b20._0x2a3e14,0x337)]=function(_0x596832,_0x360523){return _0x596832===_0x360523;},_0x4c720d[_0xf7c52e(-_0x249b20._0x6353ce,-_0x249b20._0x5809e6)]='\x20\x20\x20Agent\x20I'+_0xf7c52e(-0x33,-_0x249b20._0x2317bf)+_0x15c037(_0x249b20._0x47ae7b,0x365)+_0x15c037(_0x249b20._0x203333,_0x249b20._0x4592f4)+_0xf7c52e(-_0x249b20._0x47caf2,-0xca)+'\x20\x20\x20\x20\x20\x20\x20\x20|\x20'+'工具';const _0x119d48=_0x4c720d;if(!existsSync(_0x28c003))return _0xf7c52e(-0xac,-_0x249b20._0x1e2365)===_0xf7c52e(-_0x249b20._0x345ad3,-0xe6)?(_0x46647f['push'](_0x119d48[_0xf7c52e(-_0x249b20._0x59f7b2,-0x76)]),_0x282b3f['join']('\x0a')):'⚠️\x20\x20状态文件不存在'+',请先运行\x20new-'+_0xf7c52e(-_0x249b20._0x1e2365,-_0x249b20._0x539811);const _0xfeed59=readFileSync(_0x28c003,_0x119d48[_0xf7c52e(-_0x249b20._0x118ed5,-_0x249b20._0x20e781)]),_0xba2b8c=JSON['parse'](_0xfeed59),_0x1bc5cd=[];_0x1bc5cd[_0xf7c52e(-0x5c,-_0x249b20._0x569d30)]('📊\x20项目状态:\x20'+_0xba2b8c[_0x15c037(_0x249b20._0x2097e1,0x2f8)][_0xf7c52e(-0x41,-_0x249b20._0x3b9d84)]),_0x1bc5cd['push']('\x20\x20\x20当前阶段:\x20'+(PHASE_NAMES[_0xba2b8c['project'][_0xf7c52e(-_0x249b20._0x178216,-_0x249b20._0x4560e6)+'se']]??_0xba2b8c[_0xf7c52e(-_0x249b20._0x3a42b1,-_0x249b20._0xfb5b74)][_0xf7c52e(-_0x249b20._0x21e6b6,-_0x249b20._0x4e3913)+'se'])),_0x1bc5cd[_0xf7c52e(-0x81,-0x66)]('\x20\x20\x20版本:\x20'+_0xba2b8c[_0x15c037(_0x249b20._0x4973df,0x32e)]),_0x1bc5cd['push'](_0x15c037(0x2db,0x2f0)+_0xba2b8c[_0xf7c52e(-0xcd,-0x92)]);const _0x115dcb=_0xba2b8c[_0xf7c52e(-0xde,-_0x249b20._0x4f1c3e)];function _0x15c037(_0x2a2f13,_0x20e4cd){return _0x995840(_0x20e4cd- -_0x56542a._0xf5d153,_0x2a2f13);}const _0x139aa9=Object[_0x15c037(0x366,0x326)](_0x115dcb);if(_0x119d48[_0xf7c52e(-_0x249b20._0x567201,-_0x249b20._0x57584b)](_0x139aa9['length'],0x190b+-0x20d*0x9+0x2*-0x34b))return _0x1bc5cd[_0xf7c52e(-_0x249b20._0x2d57f8,-0x66)](_0x119d48[_0xf7c52e(-0x83,-0x76)]),_0x1bc5cd[_0xf7c52e(-_0x249b20._0x303ba7,-0x8c)]('\x0a');_0x1bc5cd[_0xf7c52e(-_0x249b20._0x3167ae,-0x66)]('');function _0xf7c52e(_0x358a23,_0x1f0378){return _0x995840(_0x1f0378- -0x5e3,_0x358a23);}_0x1bc5cd['push'](_0x119d48[_0x15c037(_0x249b20._0x25640f,_0x249b20._0x2af834)]),_0x1bc5cd[_0xf7c52e(-_0x249b20._0x15e761,-_0x249b20._0x569d30)](_0xf7c52e(-0xc5,-_0x249b20._0x277e09)+'-'[_0x15c037(0x32f,_0x249b20._0x5da921)](0x3*0x12d+0x1bf8+-0x1f2f));for(const _0x29b73f of _0x139aa9){const _0x28ac9d=_0x115dcb[_0x29b73f],_0x274673=PHASE_NAMES[_0x28ac9d['phase']]??_0x28ac9d[_0xf7c52e(-0x9a,-0x7f)],_0x2a85f3=_0x28ac9d['currentOpe'+_0x15c037(0x2a9,_0x249b20._0x6c0412)]||'-',_0x427633=_0x28ac9d['currentSki'+'ll']||'-';_0x1bc5cd[_0xf7c52e(-0x22,-_0x249b20._0x3e8356)](_0x15c037(0x353,_0x249b20._0x155679)+_0x29b73f['padEnd'](0xe65+-0x13e5+0x1f*0x2e)+_0xf7c52e(-0x68,-_0x249b20._0x5537a2)+_0x274673[_0x15c037(0x31f,0x33d)](-0xa*0xae+0x16eb+-0x1011)+_0xf7c52e(-_0x249b20._0x5926e6,-_0x249b20._0x3c220d)+_0x2a85f3[_0x15c037(0x317,_0x249b20._0x2b27b1)](-0xb*-0x246+-0x57d*-0x3+-0x2964)+_0x15c037(_0x249b20._0x336ca5,_0x249b20._0x377950)+_0x427633);}return _0x1bc5cd[_0xf7c52e(-_0x249b20._0x1c37d3,-_0x249b20._0x253efd)]('\x0a');}export async function advancePhase(_0x326265,_0x513c67){const _0x3d32bb={_0x3be0bb:0x356,_0x3e2bd6:0x340,_0x1e394d:0x36d,_0x2d0081:0x3be,_0x42a74c:0x382,_0x4cf30e:0x32d,_0x1f0c05:0x349,_0x4df262:0x391,_0x4c84b8:0x324,_0x214f24:0x3a0,_0x518d47:0x397,_0x318fa5:0x35e,_0xd62bf4:0x393,_0x449aec:0x331,_0x3fb4e7:0x33f,_0x3a49b6:0x397,_0x1c0d92:0x368,_0x2134bd:0x389,_0x113dda:0x32c,_0x588e93:0x341,_0x454827:0x317,_0x4de1a6:0x359,_0x5890bd:0x387,_0x9af0f2:0x342,_0x3ef6f7:0x34c,_0x2aabe0:0x31d,_0x249462:0x36f,_0x5cd5c7:0x381,_0x3fcb2c:0x2ff,_0x505715:0x3c8,_0x2aa838:0x371},_0x11e01b={_0x2ae8c0:0x1db},_0x301af4={'CEPZy':function(_0x4e55ed,_0x4dc0ea){return _0x4e55ed(_0x4dc0ea);},'dOtuT':_0x5b0ce1(_0x3d32bb._0x3be0bb,0x34e)+_0x559f41(0x2ca,0x304)+_0x559f41(0x304,_0x3d32bb._0x3e2bd6),'jDIlN':_0x559f41(_0x3d32bb._0x1e394d,0x38c)+_0x559f41(0x2f4,0x30e),'dInjU':function(_0x3a751c,_0x889d3b){return _0x3a751c===_0x889d3b;},'heTza':_0x559f41(_0x3d32bb._0x2d0081,0x393)};function _0x559f41(_0x1d97db,_0x3a0c6f){return _0x995840(_0x3a0c6f- -0x1fc,_0x1d97db);}const _0x248f6a=await _0x301af4[_0x559f41(0x398,_0x3d32bb._0x42a74c)](readStateFile,_0x326265);if(!_0x248f6a)return _0x301af4[_0x559f41(_0x3d32bb._0x4cf30e,0x33d)];const _0x34a8a0=_0x513c67??Object[_0x559f41(0x381,_0x3d32bb._0x1f0c05)](_0x248f6a['agents'])['find'](_0x441354=>_0x248f6a[_0x559f41(0x37c,0x342)][_0x441354][_0x5b0ce1(0x389,0x386)]!=='completed');if(!_0x34a8a0)return _0x301af4[_0x559f41(_0x3d32bb._0x4df262,0x372)];function _0x5b0ce1(_0x45a731,_0xba9c9c){return _0x995840(_0x45a731- -_0x11e01b._0x2ae8c0,_0xba9c9c);}const _0xa426d5=_0x248f6a[_0x5b0ce1(0x363,_0x3d32bb._0x4c84b8)][_0x34a8a0];if(!_0xa426d5)return'❌\x20Agent\x20'+_0x34a8a0+('\x20不存在于\x20stat'+_0x5b0ce1(0x388,_0x3d32bb._0x214f24));if(_0xa426d5[_0x559f41(_0x3d32bb._0x518d47,0x368)]===_0x559f41(_0x3d32bb._0x318fa5,_0x3d32bb._0xd62bf4))return'['+_0x34a8a0+_0x559f41(_0x3d32bb._0x449aec,_0x3d32bb._0x3fb4e7);const _0x1171f3=computeNextPhase(_0xa426d5[_0x559f41(_0x3d32bb._0x3a49b6,_0x3d32bb._0x1c0d92)]),_0x331c7f=PHASE_NAMES[_0xa426d5[_0x5b0ce1(_0x3d32bb._0x2134bd,0x3b3)]]??_0xa426d5[_0x559f41(0x361,0x368)],_0x6d9b4b=PHASE_NAMES[_0x1171f3]??_0x1171f3,_0x3caa2c={..._0x248f6a['agents']},_0x35ba70=_0x3caa2c,_0x42af0e={..._0xa426d5};_0x42af0e[_0x5b0ce1(_0x3d32bb._0x2134bd,0x358)]=_0x1171f3,_0x42af0e[_0x5b0ce1(_0x3d32bb._0x113dda,0x347)+_0x559f41(_0x3d32bb._0x588e93,_0x3d32bb._0x454827)]='',_0x42af0e[_0x5b0ce1(_0x3d32bb._0x4de1a6,_0x3d32bb._0x454827)+'ll']='',_0x35ba70[_0x34a8a0]=_0x42af0e;const _0x7c832f=computeOverallPhase(_0x35ba70),_0xa65c05={..._0x248f6a[_0x559f41(0x33a,0x31b)]};_0xa65c05[_0x5b0ce1(0x380,_0x3d32bb._0x5890bd)+'se']=_0x7c832f;const _0x48361d={};_0x48361d['project']=_0xa65c05,_0x48361d[_0x559f41(0x370,_0x3d32bb._0x9af0f2)]=_0x35ba70,_0x48361d[_0x559f41(0x327,0x33c)+_0x559f41(0x394,_0x3d32bb._0x3ef6f7)]=_0x248f6a['machineSna'+_0x559f41(_0x3d32bb._0x2aabe0,_0x3d32bb._0x3ef6f7)],await writeStateFile(_0x326265,_0x48361d);const _0x39be68=[];return _0x39be68[_0x559f41(_0x3d32bb._0x249462,_0x3d32bb._0x5cd5c7)]('['+_0x34a8a0+']\x20'+_0x331c7f+'\x20→\x20'+_0x6d9b4b),_0x301af4[_0x5b0ce1(0x323,0x34f)](_0x1171f3,_0x301af4[_0x559f41(0x302,_0x3d32bb._0x3fcb2c)])&&_0x39be68[_0x559f41(0x384,0x381)](_0x5b0ce1(0x37d,_0x3d32bb._0x505715)+_0x34a8a0+_0x5b0ce1(0x32f,_0x3d32bb._0x2aa838)),_0x39be68['join']('\x0a');}function computeNextPhase(_0x24b92c){const _0x1e921a={_0x61233c:0x13,_0x29415d:0x49,_0x286e2d:0x88,_0x299e7b:0x64,_0x29562f:0x49c,_0x2a660f:0x2c,_0x1dd10c:0xf,_0x2f15fa:0x455,_0xfe45a3:0x422,_0x1ec7d4:0x3fd,_0x159471:0x427,_0x28facd:0x412},_0xc6fe82={};_0xc6fe82[_0x1b788a(_0x1e921a._0x61233c,0x25)]=function(_0x30ed69,_0x342d68){return _0x30ed69<_0x342d68;},_0xc6fe82[_0x1b788a(0x1,-0x9)]=_0x331881(0x453,0x49b),_0xc6fe82[_0x331881(0x458,0x427)]=function(_0x4feb47,_0x95802f){return _0x4feb47<_0x95802f;},_0xc6fe82[_0x1b788a(_0x1e921a._0x29415d,_0x1e921a._0x286e2d)]=function(_0x31c5d2,_0x8aebed){return _0x31c5d2-_0x8aebed;},_0xc6fe82['cYaWu']=_0x1b788a(_0x1e921a._0x299e7b,0xa8);const _0x143cfd=_0xc6fe82,_0x3b1456=PHASES[_0x331881(0x4a9,_0x1e921a._0x29562f)](_0x24b92c);if(_0x3b1456>=-0x24a2+0x1252+0x1250)return _0x3b1456<PHASES[_0x331881(0x458,0x412)]-(0x223*-0x1+0x3*0x463+-0xb05)?PHASES[_0x3b1456+(0x18ba+-0x1*-0x2329+0x16d*-0x2a)]:'completed';const _0x2c79b9=PIPELINE_PHASES['indexOf'](_0x24b92c);function _0x331881(_0x429b1a,_0x2e18e6){return _0x995840(_0x2e18e6- -0xf4,_0x429b1a);}function _0x1b788a(_0x5cdf45,_0x1db9f6){return _0x562d75(_0x1db9f6,_0x5cdf45- -0x41e);}if(_0x2c79b9>=0x2*0xdb7+-0xf1*-0x1+-0x1b*0x10d)return'ochtB'!=='ochtB'?_0x143cfd[_0x1b788a(0x13,_0x1e921a._0x2a660f)](_0x53c2ac,_0x1cc2dc[_0x1b788a(-_0x1e921a._0x1dd10c,-0x1f)]-(0x1*-0x9d6+0x165a+0x1*-0xc83))?_0x553a8b[_0x44e94d+(0x897*-0x3+-0x1d0f+0x36d5)]:_0x143cfd[_0x331881(_0x1e921a._0x2f15fa,_0x1e921a._0xfe45a3)]:_0x143cfd[_0x331881(_0x1e921a._0x1ec7d4,_0x1e921a._0x159471)](_0x2c79b9,_0x143cfd[_0x331881(0x480,0x46a)](PIPELINE_PHASES[_0x331881(0x45a,_0x1e921a._0x28facd)],-0x669+-0x1*0xb1e+0x1188))?PIPELINE_PHASES[_0x2c79b9+(0x4e7*-0x1+-0x13fb+0x18e3)]:_0x143cfd[_0x331881(0x414,0x422)];if(_0x24b92c===_0x143cfd['cYaWu'])return PHASES[0x31*-0xb+-0x9aa*0x1+0xbc5];return _0x143cfd['OyGrH'];}export async function newProject(_0x1ee724,_0x389c52){const _0x1385b3={_0x3e7084:0x303,_0x1e428a:0x2dd,_0xd9894a:0x424,_0x2adf37:0x36d,_0x336eae:0x332,_0x297b4c:0x40f,_0x1a8469:0x465,_0x22a7f2:0x355,_0x53e998:0x3d1,_0x507da1:0x408,_0x38f682:0x3aa,_0x4c96e5:0x360,_0x445f6c:0x31b,_0x4f7c56:0x4a4,_0x514af0:0x439,_0x1d20e4:0x30d,_0x6c77c1:0x467,_0x2a552d:0x452,_0x29faad:0x331,_0x5dc5e1:0x41b},_0x257c3c={_0x1474f4:0xff},_0x380d57={_0x2df044:0x137},_0x2cda81={'aSTUS':function(_0x53ce9a,_0x28b7e2,_0x5494ef){return _0x53ce9a(_0x28b7e2,_0x5494ef);},'ijYAh':function(_0xa4ebea,_0xe1f881,_0x196b40){return _0xa4ebea(_0xe1f881,_0x196b40);},'FWryh':function(_0x281752){return _0x281752();},'aOXXX':_0x10bf10(0x353,0x34b),'MIyEQ':_0x10bf10(_0x1385b3._0x3e7084,_0x1385b3._0x1e428a)},_0x3f7885=_0x2cda81['aSTUS'](resolve,_0x1ee724,'..');if(!existsSync(_0x3f7885)){const _0x2cde7a={};_0x2cde7a[_0x333ee9(0x3de,_0x1385b3._0xd9894a)]=!![],_0x2cda81[_0x333ee9(0x434,0x423)](mkdirSync,_0x3f7885,_0x2cde7a);}const _0x2ecdd2=_0x2cda81[_0x10bf10(_0x1385b3._0x2adf37,0x353)](generateAgentId),_0x2f9b86={};_0x2f9b86[_0x10bf10(_0x1385b3._0x336eae,0x337)]=_0x2ecdd2,_0x2f9b86[_0x333ee9(0x412,_0x1385b3._0x297b4c)]=null,_0x2f9b86[_0x10bf10(0x2fc,0x2ee)]=[],_0x2f9b86[_0x333ee9(0x41c,_0x1385b3._0x1a8469)]=_0x2cda81[_0x10bf10(0x36a,_0x1385b3._0x22a7f2)],_0x2f9b86[_0x333ee9(_0x1385b3._0x53e998,_0x1385b3._0x507da1)+_0x333ee9(0x3e0,0x414)]='',_0x2f9b86[_0x333ee9(0x423,0x435)+'ll']='';function _0x10bf10(_0x28553c,_0x1ae588){return _0x562d75(_0x28553c,_0x1ae588- -_0x380d57._0x2df044);}const _0x584553=_0x2f9b86,_0xc5f29d={};_0xc5f29d[_0x10bf10(_0x1385b3._0x38f682,_0x1385b3._0x4c96e5)]=_0x389c52,_0xc5f29d[_0x10bf10(_0x1385b3._0x445f6c,0x32d)+'se']=_0x2cda81[_0x333ee9(_0x1385b3._0x4f7c56,0x484)];const _0x137ba6={};_0x137ba6[_0x2ecdd2]=_0x584553;function _0x333ee9(_0x22a34d,_0x511710){return _0x995840(_0x511710- -_0x257c3c._0x1474f4,_0x22a34d);}const _0x5c0f05={};_0x5c0f05[_0x10bf10(0x2ac,0x2e9)]=_0xc5f29d,_0x5c0f05[_0x333ee9(0x42c,0x43f)]=_0x137ba6,_0x5c0f05[_0x333ee9(0x43c,_0x1385b3._0x514af0)+_0x10bf10(_0x1385b3._0x1d20e4,0x31a)]=null,await writeStateFile(_0x1ee724,_0x5c0f05);const _0x26be67=[];return _0x26be67['push'](_0x333ee9(0x462,0x428)+_0x389c52),_0x26be67['push']('\x20\x20\x20目录:\x20'+_0x3f7885),_0x26be67['push'](_0x333ee9(_0x1385b3._0x6c77c1,0x47d)+'t:\x20'+_0x2ecdd2),_0x26be67['push'](_0x10bf10(0x309,0x2e6)+PIPELINE_PHASES[_0x333ee9(_0x1385b3._0x2a552d,0x492)](_0x140c4f=>PHASE_NAMES[_0x140c4f]??_0x140c4f)[_0x10bf10(_0x1385b3._0x29faad,0x329)](_0x2cda81[_0x333ee9(0x444,_0x1385b3._0x5dc5e1)])),_0x26be67[_0x10bf10(0x334,0x329)]('\x0a');}function _0x562d75(_0xb48ee,_0xcc3bab){return _0x36b0(_0xcc3bab-0x28d,_0xb48ee);}export async function updateOperation(_0x461231,_0x15b7f1,_0x894c4c,_0x2f1a32){const _0x25010e={_0x501a82:0x52c,_0x38b532:0x54e,_0x5535de:0x530,_0x4b6b4e:0x588,_0x14e63f:0x3a9,_0x4e5e30:0x565,_0x4ef646:0x525,_0x4b6e36:0x565,_0x447865:0x595,_0x380c37:0x575,_0x1a6e39:0x55b,_0x5c0382:0x584},_0x2167e0={_0x4e610d:0x182},_0xe7a80c={'dSSMq':function(_0x297a59,_0x55dfa8){return _0x297a59(_0x55dfa8);}},_0x2f3ec8=await _0xe7a80c['dSSMq'](readStateFile,_0x461231);if(!_0x2f3ec8)return'⚠️\x20\x20状态文件不存在';const _0x25391d=_0x2f3ec8[_0x463659(0x3bc,0x3c0)][_0x15b7f1];if(!_0x25391d)return _0x59fa94(_0x25010e._0x501a82,_0x25010e._0x38b532)+_0x15b7f1+(_0x59fa94(_0x25010e._0x5535de,0x55f)+'e.json');const _0xdbcf38={..._0x2f3ec8[_0x59fa94(0x56b,_0x25010e._0x4b6b4e)]},_0x32ca37=_0xdbcf38,_0x5cca3d={..._0x25391d};_0x5cca3d['currentOpe'+'ration']=_0x894c4c;function _0x59fa94(_0x544075,_0x1e5090){return _0x562d75(_0x1e5090,_0x544075-0x124);}_0x5cca3d[_0x59fa94(0x561,0x5ad)+'ll']=_0x2f1a32,_0x32ca37[_0x15b7f1]=_0x5cca3d;const _0x32b96e={};function _0x463659(_0x45a5c1,_0x97f5ae){return _0x995840(_0x45a5c1- -_0x2167e0._0x4e610d,_0x97f5ae);}return _0x32b96e[_0x463659(0x395,_0x25010e._0x14e63f)]=_0x2f3ec8['project'],_0x32b96e['agents']=_0x32ca37,_0x32b96e[_0x59fa94(_0x25010e._0x4e5e30,_0x25010e._0x4ef646)+_0x59fa94(0x575,0x533)]=_0x2f3ec8[_0x59fa94(_0x25010e._0x4b6e36,_0x25010e._0x447865)+_0x59fa94(_0x25010e._0x380c37,0x529)],await writeStateFile(_0x461231,_0x32b96e),_0x59fa94(_0x25010e._0x1a6e39,_0x25010e._0x5c0382)+_0x15b7f1+_0x59fa94(0x529,0x4e2)+_0x894c4c+'\x20('+_0x2f1a32+')';}function _0x36b0(_0x5407b9,_0x1a9828){_0x5407b9=_0x5407b9-(-0x20c6+0x5ba*-0x4+0x3924);const _0x43a8a9=_0xbe48();let _0x17fabf=_0x43a8a9[_0x5407b9];if(_0x36b0['jCCZKA']===undefined){var _0x581cc3=function(_0x56d75d){const _0xc1d8fa='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x32ae91='',_0x972ddb='';for(let _0x220138=0x68d+-0x1db*-0xf+0x1*-0x2262,_0x491114,_0xc3c50e,_0x1416ee=-0xc8c+-0x2*0x293+0x11b2;_0xc3c50e=_0x56d75d['charAt'](_0x1416ee++);~_0xc3c50e&&(_0x491114=_0x220138%(0x167c+0x9*-0x3d3+0xbf3*0x1)?_0x491114*(0x571*-0x5+-0x2221+-0x1*-0x3d96)+_0xc3c50e:_0xc3c50e,_0x220138++%(0x182+-0x1*-0x103f+-0x11bd*0x1))?_0x32ae91+=String['fromCharCode'](0x4*-0x68f+0xd*0x13f+-0x2*-0x584&_0x491114>>(-(0x10b8*0x2+0x8f6+-0x2a64)*_0x220138&-0x26a0+0x976+0x2*0xe98)):-0x266+0x1a62+-0x17fc){_0xc3c50e=_0xc1d8fa['indexOf'](_0xc3c50e);}for(let _0x58303f=0x17e*-0x4+0x3*0x1b1+0x1*0xe5,_0x3ea944=_0x32ae91['length'];_0x58303f<_0x3ea944;_0x58303f++){_0x972ddb+='%'+('00'+_0x32ae91['charCodeAt'](_0x58303f)['toString'](-0x1ee7+-0x4*0x40+0x1ff7))['slice'](-(0x129a+-0x629+-0xc6f));}return decodeURIComponent(_0x972ddb);};_0x36b0['knrzPi']=_0x581cc3,_0x36b0['SqVQCR']={},_0x36b0['jCCZKA']=!![];}const _0x4e8019=_0x43a8a9[-0x2601+-0xf1d+0x351e*0x1],_0x46cede=_0x5407b9+_0x4e8019,_0x4ded70=_0x36b0['SqVQCR'][_0x46cede];return!_0x4ded70?(_0x17fabf=_0x36b0['knrzPi'](_0x17fabf),_0x36b0['SqVQCR'][_0x46cede]=_0x17fabf):_0x17fabf=_0x4ded70,_0x17fabf;}export async function registerAgent(_0x67749e,_0x16198d,_0x97603e={}){const _0x5f5ae1={_0x4590fc:0x2fb,_0x56df50:0x2c7,_0xd364e1:0x2ca,_0x531934:0x316,_0x4fd044:0x37a,_0xe3a2ad:0x315,_0x51fc28:0x329,_0x36e4e2:0x359,_0x4be464:0x317,_0x501c99:0x2d8,_0x3d495c:0x320,_0x57aae7:0x368,_0x1846a7:0x310,_0x1e951f:0x2cf,_0x1a532e:0x2b8,_0x3400e4:0x35a,_0x3e9a0f:0x347,_0x4a7c76:0x322,_0x34c00f:0x303,_0x47b213:0x2d4,_0x48fec5:0x2e6,_0x17b08f:0x308,_0x44cdae:0x2cd,_0x4dd9f6:0x386,_0xfff9b8:0x347,_0x99073:0x37e,_0x53717e:0x392,_0x7a6b4b:0x378,_0x472d6a:0x311,_0x1c34f0:0x358},_0x3ce743={'gnpbx':function(_0x5a8ab5,_0x23f1cc){return _0x5a8ab5(_0x23f1cc);},'eFLdW':_0x3d257f(_0x5f5ae1._0x4590fc,_0x5f5ae1._0x56df50)+_0x3d257f(_0x5f5ae1._0xd364e1,0x311)+_0x3d257f(0x306,0x313),'jJAiP':_0x372029(0x303,_0x5f5ae1._0x531934)},_0x367ffd=await _0x3ce743[_0x3d257f(0x33a,0x334)](readStateFile,_0x67749e);if(!_0x367ffd)return _0x3ce743['eFLdW'];if(_0x367ffd[_0x372029(_0x5f5ae1._0x4fd044,0x347)][_0x16198d])return _0x3d257f(_0x5f5ae1._0xe3a2ad,_0x5f5ae1._0x51fc28)+_0x16198d+'\x20已存在,跳过注册';const _0x338105=_0x97603e['phase']??_0x3d257f(0x343,0x380),_0x302e42=_0x97603e[_0x372029(_0x5f5ae1._0x36e4e2,_0x5f5ae1._0x4be464)]??null,_0x14a0a7={};_0x14a0a7['agentId']=_0x16198d,_0x14a0a7[_0x3d257f(_0x5f5ae1._0x501c99,_0x5f5ae1._0x3d495c)]=_0x302e42;function _0x372029(_0x40e448,_0xae0aea){return _0x995840(_0xae0aea- -0x1f7,_0x40e448);}_0x14a0a7[_0x372029(0x2de,0x325)]=[],_0x14a0a7[_0x372029(_0x5f5ae1._0x57aae7,0x36d)]=_0x338105,_0x14a0a7[_0x372029(0x2e9,_0x5f5ae1._0x1846a7)+'ration']='',_0x14a0a7[_0x3d257f(0x2fe,0x2ca)+'ll']='';const _0x2a43eb=_0x14a0a7,_0x1c4580={..._0x367ffd[_0x372029(0x32b,0x347)]};_0x1c4580[_0x16198d]=_0x2a43eb;const _0x395bd1=_0x1c4580;if(_0x302e42&&_0x395bd1[_0x302e42]){const _0x32ef9c=_0x395bd1[_0x302e42];if(!_0x32ef9c[_0x3d257f(0x2e6,0x2c6)][_0x3d257f(_0x5f5ae1._0x1e951f,_0x5f5ae1._0x1a532e)](_0x16198d)){if(_0x3ce743[_0x372029(_0x5f5ae1._0x3400e4,0x381)]!==_0x3ce743['jJAiP'])_0x972ddb[_0x3d257f(_0x5f5ae1._0x3e9a0f,_0x5f5ae1._0xe3a2ad)](_0x3d257f(_0x5f5ae1._0x4a7c76,_0x5f5ae1._0x34c00f)+_0x220138+_0x3d257f(_0x5f5ae1._0x47b213,0x2c4));else{const _0x2482db={..._0x32ef9c};_0x2482db[_0x372029(0x32e,0x325)]=[..._0x32ef9c[_0x3d257f(_0x5f5ae1._0x48fec5,0x310)],_0x16198d],_0x395bd1[_0x302e42]=_0x2482db;}}}const _0x175493={};_0x175493['project']=_0x367ffd['project'];function _0x3d257f(_0x3ddeee,_0x33d462){return _0x562d75(_0x33d462,_0x3ddeee- -0x13f);}_0x175493[_0x3d257f(_0x5f5ae1._0x17b08f,_0x5f5ae1._0x44cdae)]=_0x395bd1,_0x175493['machineSna'+'pshot']=_0x367ffd[_0x3d257f(0x302,0x2d9)+'pshot'],await writeStateFile(_0x67749e,_0x175493);const _0x294fe9=PHASE_NAMES[_0x338105]??_0x338105,_0x463760=[];_0x463760[_0x372029(0x3cd,_0x5f5ae1._0x4dd9f6)]('✅\x20Agent\x20已注'+_0x3d257f(0x2d2,0x319)+_0x16198d),_0x463760[_0x3d257f(_0x5f5ae1._0xfff9b8,0x30d)](_0x372029(_0x5f5ae1._0x99073,_0x5f5ae1._0x53717e)+_0x294fe9);if(_0x302e42)_0x463760[_0x372029(_0x5f5ae1._0x7a6b4b,0x386)](_0x3d257f(_0x5f5ae1._0x472d6a,_0x5f5ae1._0x1c34f0)+':\x20'+_0x302e42);return _0x463760['join']('\x0a');}export async function deregisterAgent(_0x284495,_0x3feaac){const _0x29f067={_0x4bdd3f:0x3f0,_0x3d7fd7:0x3bf,_0x1a3d35:0xd5,_0x112b25:0xc5,_0x4c8b10:0x90,_0x4cc85e:0xea,_0x29d80e:0x81,_0x2aa930:0x37a,_0x4c2cce:0x343,_0x595bac:0x9c,_0x2e6a6f:0xb7,_0x4eff32:0x3ca,_0x159654:0x6c,_0x41a2a0:0x371,_0x31e2b2:0x38b,_0x32fc3e:0x3a2,_0x53a092:0x393,_0x1b3812:0xa9,_0x2bdb46:0xe6,_0xa26d4e:0x76,_0x3b961a:0x89,_0x4a8492:0x3bc,_0x510ca9:0x9b,_0x34083d:0x6e,_0x291d75:0x40,_0x118aa8:0xad,_0x577774:0x73,_0x1f4925:0x79,_0x4730af:0xb9,_0x1139c5:0x9d,_0x12b1a0:0x353,_0x50b5f8:0x3a0,_0xacab7f:0x3bf,_0x14df92:0x40c,_0x15286b:0x6b},_0x3a62df={'okpnp':'⚠️\x20\x20状态文件不存在','dGArR':function(_0x4e6514,_0xe92bfc){return _0x4e6514===_0xe92bfc;},'yHeBh':_0x4d6f38(0x90,0x66),'vuhVH':function(_0x370500,_0x1564c4){return _0x370500>_0x1564c4;},'ecVXV':function(_0x3d3859,_0x46aab0){return _0x3d3859(_0x46aab0);},'dGgqR':_0x4e0933(_0x29f067._0x4bdd3f,_0x29f067._0x3d7fd7)},_0x5617a6=await readStateFile(_0x284495);if(!_0x5617a6)return _0x3a62df[_0x4d6f38(_0x29f067._0x1a3d35,0x117)];if(!_0x5617a6[_0x4e0933(0x3b5,0x3dd)][_0x3feaac])return _0x3a62df[_0x4d6f38(_0x29f067._0x112b25,0x99)](_0x3a62df['yHeBh'],_0x4d6f38(_0x29f067._0x4c8b10,0x8e))?'⚠️\x20\x20Agent\x20'+_0x3feaac+_0x4d6f38(0xb2,_0x29f067._0x4cc85e):_0x4d6f38(0x5d,_0x29f067._0x29d80e)+_0x46cede+(_0x4e0933(_0x29f067._0x2aa930,_0x29f067._0x4c2cce)+'e.json');const _0x450eb3=_0x5617a6[_0x4d6f38(_0x29f067._0x595bac,_0x29f067._0x2e6a6f)][_0x3feaac],_0x13aab6={..._0x5617a6['agents']};function _0x4d6f38(_0x51db29,_0x453fc8){return _0x995840(_0x51db29- -0x4a2,_0x453fc8);}const _0x5ab645=_0x13aab6;delete _0x5ab645[_0x3feaac];if(_0x450eb3[_0x4e0933(0x385,_0x29f067._0x4eff32)]&&_0x5ab645[_0x450eb3[_0x4d6f38(_0x29f067._0x159654,0x1f)]]){if(_0x4e0933(_0x29f067._0x41a2a0,_0x29f067._0x31e2b2)===_0x4e0933(0x371,_0x29f067._0x32fc3e)){const _0x41d547=_0x5ab645[_0x450eb3[_0x4e0933(0x385,0x3c0)]];_0x5ab645[_0x450eb3['parentId']]={..._0x41d547,'childIds':_0x41d547[_0x4e0933(_0x29f067._0x53a092,0x348)][_0x4d6f38(0xdd,0xb0)](_0x17bc15=>_0x17bc15!==_0x3feaac)};}else return _0x4d6f38(_0x29f067._0x1b3812,_0x29f067._0x2bdb46)+_0x2e4a8a+_0x4d6f38(_0x29f067._0xa26d4e,_0x29f067._0x3b961a);}const _0x2793b1=Object[_0x4e0933(_0x29f067._0x4a8492,0x3c1)](_0x5ab645),_0x22b401=_0x3a62df[_0x4e0933(0x3b6,0x3ba)](_0x2793b1[_0x4d6f38(0x64,_0x29f067._0x510ca9)],0x66b+-0x944*-0x2+-0x3*0x851)?_0x3a62df[_0x4d6f38(_0x29f067._0x34083d,_0x29f067._0x291d75)](computeOverallPhase,_0x5ab645):_0x3a62df[_0x4d6f38(_0x29f067._0x118aa8,_0x29f067._0x577774)],_0x212285={..._0x5617a6[_0x4d6f38(0x75,_0x29f067._0x1f4925)]};_0x212285[_0x4d6f38(_0x29f067._0x4730af,_0x29f067._0x1139c5)+'se']=_0x22b401;const _0x31cd15={};function _0x4e0933(_0x2b3981,_0x63dd9c){return _0x562d75(_0x63dd9c,_0x2b3981- -0x92);}return _0x31cd15[_0x4e0933(0x38e,_0x29f067._0x12b1a0)]=_0x212285,_0x31cd15['agents']=_0x5ab645,_0x31cd15[_0x4e0933(0x3af,_0x29f067._0x50b5f8)+_0x4e0933(_0x29f067._0xacab7f,_0x29f067._0x14df92)]=_0x5617a6['machineSna'+'pshot'],await writeStateFile(_0x284495,_0x31cd15),_0x4d6f38(0x6f,_0x29f067._0x15286b)+'销:\x20'+_0x3feaac;}export async function showProgress(_0x639117){const _0x129066={_0x324a19:0x2f7,_0x2b9e86:0x2c6,_0xe736e4:0x2d5,_0x4db624:0x302,_0x529354:0x2fc,_0x20183e:0x3eb,_0x316aaf:0x42f,_0x33303d:0x385,_0x27c756:0x34d,_0x49f74:0x362,_0x29b82f:0x2cc,_0x5e333c:0x3f3,_0x3020bf:0x31b,_0x133765:0x3c1,_0x4bc2df:0x37c,_0x38f2fd:0x343,_0xfac625:0x30d,_0x609ced:0x2ea,_0x586cc7:0x313,_0x954079:0x337,_0x1a8ed4:0x416,_0x375e70:0x3b9,_0x49f5bc:0x3c5,_0x2421ed:0x300,_0x408067:0x427,_0x1be153:0x43b,_0x83b25:0x2db,_0x1dbb78:0x2eb,_0x12cbef:0x3e0,_0xc01b3a:0x2f2,_0x3a04df:0x3d9,_0x18d6fa:0x422,_0x278405:0x446,_0x57386f:0x2c7,_0x3cd3de:0x44b,_0x10f1f2:0x3e0,_0x73b831:0x450,_0x211f70:0x339,_0x2a9ac4:0x343,_0x2278f8:0x3ed,_0xdedfba:0x456,_0x3d600e:0x34a,_0x5b30bd:0x2f0,_0x399733:0x31e,_0x3908f3:0x3c3,_0xd18cf9:0x3da,_0x2cdf85:0x3ca,_0x315c9e:0x419,_0x55cdac:0x40e,_0x1914ae:0x3ea,_0x125120:0x36d,_0x2c7398:0x3de,_0x5d2ab6:0x3dc,_0x3d8f28:0x2f3,_0x431b37:0x316},_0x58358b={'thDgO':function(_0x2ff251,_0x2d7200){return _0x2ff251(_0x2d7200);},'aXdDL':_0x3b8615(_0x129066._0x324a19,0x2f5)+_0x3b8615(_0x129066._0x2b9e86,_0x129066._0xe736e4)+_0x3b8615(_0x129066._0x4db624,_0x129066._0x529354),'FdVtD':function(_0x5ad636,_0x31cdfe){return _0x5ad636+_0x31cdfe;},'xEtrJ':_0x3b8615(0x2f3,0x314),'LSniq':function(_0xf199ae,_0x38de95){return _0xf199ae+_0x38de95;},'kvYrH':function(_0x5cc8c7,_0x202575){return _0x5cc8c7>_0x202575;},'QZvrP':_0x203746(_0x129066._0x20183e,_0x129066._0x316aaf)+_0x203746(0x3c8,_0x129066._0x33303d),'ykWmG':'\x20\x20\x20'},_0x43b0e1=await _0x58358b[_0x3b8615(_0x129066._0x27c756,0x395)](readStateFile,_0x639117);function _0x203746(_0x2ee165,_0x596688){return _0x995840(_0x2ee165- -0x156,_0x596688);}if(!_0x43b0e1)return _0x58358b[_0x3b8615(0x330,_0x129066._0x49f74)];const _0xa0f51e=_0x43b0e1[_0x3b8615(0x304,0x321)],_0x5096d8=Object['keys'](_0xa0f51e),_0x1b50b1=_0x5096d8[_0x3b8615(_0x129066._0x29b82f,0x2e4)],_0x4033de=_0x5096d8['filter'](_0x5481c5=>_0xa0f51e[_0x5481c5][_0x203746(0x40e,0x3d1)]===_0x203746(0x439,0x43e))[_0x203746(0x3b0,0x3f7)];function _0x3b8615(_0x570307,_0x1c058b){return _0x995840(_0x570307- -0x23a,_0x1c058b);}const _0x4e14cc=_0x1b50b1>-0x2*-0x1145+0x2a*-0x5d+-0x1348?Math[_0x203746(0x403,_0x129066._0x5e333c)](_0x4033de/_0x1b50b1*(0x18c2*0x1+0x1395+0x2bf3*-0x1)):-0x1065+-0x29*-0x5d+0x180,_0x5052f5={};for(const _0xcf1840 of _0x5096d8){const _0x5ab9d8=_0xa0f51e[_0xcf1840][_0x203746(0x40e,0x3fd)];_0x5052f5[_0x5ab9d8]=_0x58358b['FdVtD'](_0x5052f5[_0x5ab9d8]??-0xa46+0xa3c+0xa,0x1296+-0x2*-0xa3+-0x13db);}const _0x302e5a=[];_0x302e5a['push'](_0x3b8615(_0x129066._0x3020bf,0x328)+_0x43b0e1[_0x3b8615(0x2dd,0x299)][_0x3b8615(0x354,0x34b)]),_0x302e5a[_0x3b8615(0x343,0x324)](_0x3b8615(0x30a,0x323)+(PHASE_NAMES[_0x43b0e1['project'][_0x3b8615(0x321,0x36a)+'se']]??_0x43b0e1[_0x203746(_0x129066._0x133765,_0x129066._0x4bc2df)][_0x203746(0x405,0x3d1)+'se'])),_0x302e5a[_0x3b8615(_0x129066._0x38f2fd,_0x129066._0xfac625)](_0x3b8615(_0x129066._0x609ced,0x2a2)+_0x43b0e1[_0x3b8615(_0x129066._0x586cc7,_0x129066._0x954079)]),_0x302e5a[_0x203746(0x427,_0x129066._0x1a8ed4)](_0x203746(_0x129066._0x375e70,_0x129066._0x49f5bc)+_0x43b0e1['updatedAt']),_0x302e5a['push']('\x20\x20\x20完成度:\x20'+_0x4e14cc+_0x3b8615(0x2f2,0x308)+_0x4033de+'/'+_0x1b50b1+_0x3b8615(_0x129066._0x2421ed,0x2dd)),_0x302e5a[_0x203746(_0x129066._0x408067,_0x129066._0x1be153)](''),_0x302e5a[_0x203746(0x427,0x41f)](_0x58358b[_0x3b8615(_0x129066._0x83b25,_0x129066._0x1dbb78)]);for(const [_0x2a54b7,_0x41319b]of Object[_0x203746(_0x129066._0x12cbef,0x3b3)](_0x5052f5)){const _0xb0addc=PHASE_NAMES[_0x2a54b7]??_0x2a54b7,_0x3bef95=_0x58358b[_0x3b8615(0x332,_0x129066._0xc01b3a)]('█'['repeat'](_0x41319b),'░'[_0x203746(_0x129066._0x3a04df,_0x129066._0x18d6fa)](Math[_0x203746(0x40c,0x458)](-0x1f2b+-0x51*0x17+0x2672,_0x1b50b1-_0x41319b)));_0x302e5a[_0x203746(0x427,_0x129066._0x278405)](_0x3b8615(_0x129066._0x57386f,0x2fc)+_0xb0addc[_0x203746(0x406,_0x129066._0x3cd3de)](-0x418+0x11*0x8e+0x152*-0x4)+'\x20'+_0x3bef95+'\x20'+_0x41319b);}_0x302e5a['push']('');if(_0x58358b['kvYrH'](_0x5096d8[_0x203746(0x3b0,_0x129066._0x10f1f2)],0x161f+0x2*0xf28+-0x1f*0x1b1)){_0x302e5a[_0x203746(0x427,_0x129066._0x73b831)](_0x58358b[_0x3b8615(0x2fb,_0x129066._0x211f70)]),_0x302e5a[_0x3b8615(_0x129066._0x2a9ac4,0x322)](_0x203746(_0x129066._0x2278f8,0x3b2)+_0x203746(0x412,_0x129066._0xdedfba)+_0x3b8615(_0x129066._0x3d600e,0x393)+_0x3b8615(_0x129066._0x5b30bd,_0x129066._0x399733)+_0x203746(_0x129066._0x3908f3,0x38f)+_0x203746(_0x129066._0xd18cf9,0x40c)+'工具'),_0x302e5a[_0x3b8615(0x343,0x364)](_0x58358b[_0x3b8615(0x332,0x315)](_0x58358b[_0x203746(_0x129066._0x2cdf85,0x408)],'-'['repeat'](0x1*0xbf6+0x1*-0x19e4+0x2*0x71f)));for(const _0x3bc351 of _0x5096d8){const _0x344739=_0xa0f51e[_0x3bc351],_0x413935=PHASE_NAMES[_0x344739[_0x203746(0x40e,_0x129066._0x315c9e)]]??_0x344739[_0x203746(_0x129066._0x55cdac,_0x129066._0x1914ae)],_0x5810ac=_0x344739[_0x203746(0x3b1,_0x129066._0x125120)+_0x3b8615(0x2d9,0x2f7)]||'-',_0x3ea22a=_0x344739[_0x203746(_0x129066._0x2c7398,0x3fd)+'ll']||'-';_0x302e5a[_0x203746(0x427,0x457)](_0x3b8615(0x30f,_0x129066._0x5b30bd)+_0x3bc351[_0x3b8615(0x322,_0x129066._0x5b30bd)](0x1472+-0x1023+-0x43d*0x1)+_0x203746(0x3fa,0x3b5)+_0x413935[_0x3b8615(0x322,0x313)](0x1c80+0x8d1+-0x2543)+_0x203746(0x3fa,_0x129066._0x5d2ab6)+_0x5810ac[_0x3b8615(0x322,_0x129066._0x3d8f28)](0x23db+0x1*-0x4d6+-0x1ef0)+'\x20|\x20'+_0x3ea22a);}}return _0x302e5a[_0x3b8615(0x31d,_0x129066._0x431b37)]('\x0a');}export async function quickTask(_0x8d4452,_0x171f1a){const _0xb8b09e={_0xd49369:0x126,_0xbf72f8:0x20,_0x43e8d8:0x4d,_0x109086:0x42,_0xe9adff:0x85,_0x502c0a:0x100,_0x43d447:0x13b,_0x3ebcdc:0x5,_0x372c62:0x160,_0x5ca28f:0x183,_0x3eef53:0x180,_0x19175b:0xe8,_0x1aa356:0x128,_0x39cadc:0x77,_0xcd856c:0x5f,_0x257c81:0x59,_0x168e8a:0x51};function _0x1d4c2f(_0x7721a1,_0x39676f){return _0x562d75(_0x7721a1,_0x39676f- -0x306);}const _0x10ba7b={'RxgLU':function(_0x5663d1,_0x1effef,_0x273438){return _0x5663d1(_0x1effef,_0x273438);},'qRyRe':function(_0x413e73){return _0x413e73();},'fKzsQ':'execute'},_0x420103=await readStateFile(_0x8d4452);if(!_0x420103){const _0x5e5d44=_0x10ba7b[_0xe6a1cb(0x7a,0xc0)](resolve,_0x8d4452,'..');if(!existsSync(_0x5e5d44)){const _0x39a4ee={};_0x39a4ee[_0x1d4c2f(0xeb,_0xb8b09e._0xd49369)]=!![],mkdirSync(_0x5e5d44,_0x39a4ee);}}function _0xe6a1cb(_0x2640c0,_0x331b8e){return _0x562d75(_0x331b8e,_0x2640c0- -0x40f);}const _0x3168b6=_0x420103?.[_0xe6a1cb(0x11,-0x4)]['name']??_0xe6a1cb(_0xb8b09e._0xbf72f8,-0x21),_0x5f3505=_0x420103?Object[_0xe6a1cb(0x3f,0x66)](_0x420103['agents'])[0x558+-0xe*-0x203+0x2182*-0x1]??_0x10ba7b[_0xe6a1cb(0x84,_0xb8b09e._0x43e8d8)](generateAgentId):_0x10ba7b['qRyRe'](generateAgentId),_0x3bfb3b={'agentId':_0x5f3505,'parentId':null,'childIds':[],'phase':_0x10ba7b[_0xe6a1cb(0x6b,0x3d)],'currentOperation':_0x171f1a['slice'](-0x42*0x19+0x1*0xdbd+0x74b*-0x1,-0x42d*0x1+0x15be+-0x112d),'currentSkill':'quick'},_0x148772={};_0x148772[_0xe6a1cb(0x88,_0xb8b09e._0x109086)]=_0x3168b6,_0x148772[_0xe6a1cb(0x55,_0xb8b09e._0xe9adff)+'se']=_0x1d4c2f(0x169,0x188);const _0x44d995={};_0x44d995[_0x5f3505]=_0x3bfb3b;const _0x192267={};_0x192267['project']=_0x148772,_0x192267['agents']=_0x44d995,_0x192267[_0x1d4c2f(_0xb8b09e._0x502c0a,_0xb8b09e._0x43d447)+_0xe6a1cb(_0xb8b09e._0x109086,_0xb8b09e._0x3ebcdc)]=null,await _0x10ba7b[_0x1d4c2f(_0xb8b09e._0x372c62,_0xb8b09e._0x5ca28f)](writeStateFile,_0x8d4452,_0x192267);const _0x5f0990=[];return _0x5f0990[_0x1d4c2f(0x133,_0xb8b09e._0x3eef53)](_0xe6a1cb(0x6f,0xa1)),_0x5f0990[_0xe6a1cb(0x77,0x64)]('\x20\x20\x20项目:\x20'+_0x3168b6),_0x5f0990[_0xe6a1cb(0x77,0x5b)](_0x1d4c2f(_0xb8b09e._0x19175b,_0xb8b09e._0x1aa356)+_0x171f1a),_0x5f0990[_0xe6a1cb(_0xb8b09e._0x39cadc,_0xb8b09e._0xcd856c)](_0xe6a1cb(_0xb8b09e._0x257c81,0x8d)+_0x5f3505),_0x5f0990[_0x1d4c2f(0x182,0x180)]('\x20\x20\x20提示:\x20快速任'+_0x1d4c2f(0x1d0,0x18e)+'line,直接执行'),_0x5f0990[_0xe6a1cb(_0xb8b09e._0x168e8a,0x7)]('\x0a');}
|
|
1
|
+
(function(_0x119226,_0xa4249d){const _0x297112={_0x26f47d:0x34a,_0x387b1a:0x309,_0x2663dc:0x57a,_0x3cd2ac:0x527,_0x3c2dd8:0x530,_0x31f678:0x2a3,_0x18866c:0x2c9,_0x20cc55:0x4f0},_0x2d1098={_0xcdb642:0x3e6},_0x4ed010=_0x119226();function _0x420e90(_0x3aa220,_0x55a02a){return _0x5c2b(_0x55a02a-_0x2d1098._0xcdb642,_0x3aa220);}function _0x5be7e3(_0x3c81b3,_0xbd63d0){return _0x5c2b(_0xbd63d0-0x1b6,_0x3c81b3);}while(!![]){try{const _0x462383=-parseInt(_0x420e90(0x55f,0x552))/(0x1415+0x2*-0x59f+0x8d6*-0x1)+-parseInt(_0x5be7e3(_0x297112._0x26f47d,_0x297112._0x387b1a))/(-0x128a+0xefa+0x392)+parseInt(_0x420e90(0x51a,0x531))/(-0x234f*-0x1+0x15a0+-0x1c76*0x2)*(-parseInt(_0x420e90(0x517,0x525))/(-0x100*-0x5+0xa*0x3ad+-0x29be))+parseInt(_0x420e90(_0x297112._0x2663dc,0x580))/(0xdff+0x3be*0x5+-0x10*0x20b)+parseInt(_0x5be7e3(0x30f,0x2f1))/(0x9d*0x3d+-0x9*-0x3dc+0x1*-0x481f)+-parseInt(_0x420e90(0x54c,0x518))/(0x18a4+-0x162e+-0x26f)*(-parseInt(_0x420e90(_0x297112._0x3cd2ac,_0x297112._0x3c2dd8))/(-0x243*-0xd+-0x1b89+-0x5e*0x5))+-parseInt(_0x5be7e3(_0x297112._0x31f678,_0x297112._0x18866c))/(0x9*-0x2ee+0x188a+0x1dd)*(-parseInt(_0x420e90(0x4e1,_0x297112._0x20cc55))/(0x1a*-0xe+-0x2*0x5d4+0xd1e));if(_0x462383===_0xa4249d)break;else _0x4ed010['push'](_0x4ed010['shift']());}catch(_0x3b16ef){_0x4ed010['push'](_0x4ed010['shift']());}}}(_0x5b65,-0xc0ce6*0x1+-0xcf8b1+0x27faa5));import{existsSync,readFileSync,mkdirSync}from'node:fs';import{resolve}from'node:path';function _0x5b65(){const _0x1f3a64=['4PQHiow/Q+MaN+s7U+wkOEAOOEw8JW','CMfUzg9T','icaG5B2t5yMn6zI25Q61oIa','qMroBwC','icaG','4P2miefNzw50ia','iow3SUwUJoAiKowfQoMdQoMyTUAUTq','4PYfifS','DvLMsNm','AMTkDMq','uuDmB1q','EKncsgW','s3vWveW','ios4JEwTMowCQa','zxHLy3v0zq','4PQG77IpicdNIRBMGihMLOFKU7BKUi3LRzJLNkG','z0nMCvi','y3vYCMvUDe9Wzq','icaG5yID5AEliefNzw4','wKDwA3i','EKHQsvK','z0v0Cfu','s1rrwum','BwDwwei','DgLVBG','DxbKyxrLzef0','qwLkD3q','svvJyKS','CgDuy2S','r0PwzLC','mtmWntG5mLDcsMDWzq','Aw5JBhvKzxm','EwPgu2u','5lMq6kEc6zsb5yAY56Qb','AgX6Eue','ChjVAMvJDa','y2HPBgrjzhm','icaGicaG','icaG5A6m5OIq5BQMoIa','mJi1mtG1nefjuLzztq','DxrMltG','vKPIu2e','ywX5C2LZ','mJa0y1nhEgvQ','z0D4BLe','Axriyxq','BvHqCxm','x2fUywX5C2LZ','BeHsCg4','EvHQtKG','CMvXDwLYzw1LBG','jsaO','BgLUzE+8JoEBToAoPEAjP+IHJa','CM91BMq','mJr5sK9JCfy','mta0ndyZu3zoq01X','tLPktLG','AwrSzq','zgvTyw5Kx2fUyq','vKj4ve4','ios4JEwTMowCQos6JIbZDgf0','DffSue4','rcaGicaGicaGia','mty2mdiWDxjXELH3','ihWG','xsdMK43KVzZLT7lMM7tMLRa6ia','suntv3u','rfPXy0y','u0Tcy3e','CMf0Aw9U','ruzcA0y','se9Kr08','z3jUB1m','BgvUz3rO','venWAha','AhHiCKO','Df9HBMfSExnPCW','BhLZAxm','z0fuBvG','y29TCgv0AxrVCG','y3vYCMvUDfnRAq','4PYfioAjGoACIsbbz2vUDa','icaGicaGFcdMK43KVzW','uwDUrfq','y29TCgXLDgvK','CKX1tfK','DeDoC24','CgfYC2u','otGYmdi0sNrVDwju','ChjVAMvJDcdLKB3KU6q','v1nwtg8','icaG5lU75yQHoIa','CgfKrw5K','BwfJAgLUzvnUyq','Bwf4','y3vYCMvUDfbOyq','y3bIC2W','t2TxtK4','5OQa5PYV6ycj5z6l','ywDLBNrjza','C0Ttu28','BuHkshG','CMvWzwf0','icaGqwDLBNqGsq','A2v5CW','q1PXvNm','CMvJDxjZAxzL','8j+tIIdPOBNNM67OV5VLUQy6ia','ihWG6zI25Q61icaGica','iefNzw50kq','tM1mEha','zvLtAum','77Ym6k+35ywi6l+q6kgmig5LDY0','BwPvrvm','tKzvz2m','wgPOyxq','ywDLBNrZ','CNrivum','5yAmoIa','BwfW','ywrMz1e','rhrwrum','rNn5u1u','icaG55UU5B2voIa','BNrLrwq','qMj4y1y','Bxvwy2K','q1fRvvi','icaG8j+KLIbbz2vUDa','Aw5KzxHpzG','4PQG77Ipicbbz2vUDca','CMviDfO','icaGicaGicb8ia','6zsaoIa','ndaZntq3meX0se14uW','CgfYzw50swq','B3voAK4','icaG54Mi5PYSoIa','yKvgqNK','D3jPDgu','suHSDw4','icaG8j+tIcdPMlBMRRxLIiBLUim6','DcdORRdLVzu','ChvZAa','ChnOB3q','BKzsuw0','DMvYC2LVBG','CgHHC2u','zMLSDgvY','5yQF6io95yIg5P6q','Cwf1D3G','cUkCHsbbz2vUDca','icaGqwDLBNq6ia','CMvHza','icaGicaGicaGia','icaG5PQc5PEGiefNzw4','A0DVEfe','u255vg0','swHLBhy','zs5QC29U','6zYa5Rgc5yIg5P6q','v0D4Ae4','BMfTzq','AM9PBG','vfLkr0C','BwvZC2fNzq','4PYfiefNzw50iow3SUAZQa','tK5cwvm','icaG5PU05PAW5PE26zE0oIa','xsdLT7lLROZMIjdLHAJPG6JPMlBMRRu','mti5otqYmhDkEu53rW','zgLZy3vZCW','qvjyu2u','iow3SUwTMowCQo+8JoI3S+I/H+AZQowgJa','DgPHA3u','DdOG','s2jiyxy','sKj2zLG','C2XPy2u','mtq0B3HJuhbq'];_0x5b65=function(){return _0x1f3a64;};return _0x5b65();}import{StateFileManager}from'./persistence/stateFile.js';import{PHASES,PIPELINE_PHASES}from'./types/index.js';function _0x5b782a(_0x50053d,_0x34a78f){const _0x3b8216={_0x1732ce:0x246};return _0x5c2b(_0x50053d- -_0x3b8216._0x1732ce,_0x34a78f);}import{generateAgentId}from'./utils/id.js';const _0x22936f={};_0x22936f[_0x5b782a(-0x100,-0x14f)+_0x5b782a(-0xe6,-0xe5)]=_0x5b782a(-0x146,-0x102),_0x22936f[_0x5b782a(-0xf8,-0x117)+_0x36720f(0x4ac,0x4ad)]=_0x5b782a(-0x146,-0x127),_0x22936f[_0x36720f(0x4ae,0x4cc)+_0x36720f(0x48e,0x479)]='竞品分析',_0x22936f['feature_an'+_0x36720f(0x489,0x46c)]=_0x5b782a(-0x151,-0x111),_0x22936f['tech_selec'+_0x5b782a(-0x11a,-0x162)]=_0x36720f(0x4c1,0x50e),_0x22936f[_0x36720f(0x456,0x413)]='讨论',_0x22936f['plan']='规划',_0x22936f[_0x5b782a(-0x124,-0xe5)]='执行',_0x22936f['verify']='验证';const PHASE_NAMES=_0x22936f,MAX_RETRIES=-0x1*-0xfdd+-0xde9+-0x1ef*0x1;async function readStateFile(_0x49add9){const _0x562799={_0x14f679:0x4d7,_0x4722b7:0x4cc,_0x3ee901:0x471},_0x236cc0={_0x174283:0xc6};function _0x1b5052(_0x4ccf27,_0x482f52){return _0x5b782a(_0x4ccf27-0x5be,_0x482f52);}const _0x858d08={'hxHrJ':function(_0x159fd8,_0x27e615){return _0x159fd8(_0x27e615);}};function _0xfb9752(_0x4bacdc,_0x297eb2){return _0x5b782a(_0x4bacdc-_0x236cc0._0x174283,_0x297eb2);}if(!_0x858d08[_0x1b5052(_0x562799._0x14f679,_0x562799._0x4722b7)](existsSync,_0x49add9))return null;const _0x412913=new StateFileManager(_0x49add9);return _0x412913[_0x1b5052(_0x562799._0x3ee901,0x478)]();}function _0x5c2b(_0x25800d,_0x479a7b){_0x25800d=_0x25800d-(0x538*0x1+-0x29*-0xd5+-0x2663);const _0x24b3b8=_0x5b65();let _0x55e802=_0x24b3b8[_0x25800d];if(_0x5c2b['YSStLl']===undefined){var _0x570e93=function(_0x57b673){const _0x2fbdf3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x76104c='',_0x4491f7='';for(let _0x65663b=0x634+0x23*0xbe+-0x202e,_0x84f310,_0x4acf46,_0x1b0c37=0x229a+-0x76d+0x1*-0x1b2d;_0x4acf46=_0x57b673['charAt'](_0x1b0c37++);~_0x4acf46&&(_0x84f310=_0x65663b%(0x69*0x24+0x1*0x9c7+-0x1887)?_0x84f310*(-0x12e*-0x1+0x1309+-0x13f7)+_0x4acf46:_0x4acf46,_0x65663b++%(0x40*0x94+0xbc+-0x44*0x8e))?_0x76104c+=String['fromCharCode'](-0x3*-0x83d+-0xacb+0x3*-0x44f&_0x84f310>>(-(-0x1*0x1465+-0x2*0x1252+0x390b*0x1)*_0x65663b&0xa*-0x2a0+0xfb8+0xa8e)):-0x5e3+0x13f4+-0xe11){_0x4acf46=_0x2fbdf3['indexOf'](_0x4acf46);}for(let _0x2734bd=0x5ac+0x8f*0x5+-0xc5*0xb,_0x3574cc=_0x76104c['length'];_0x2734bd<_0x3574cc;_0x2734bd++){_0x4491f7+='%'+('00'+_0x76104c['charCodeAt'](_0x2734bd)['toString'](0x5*0x794+0x81*-0x18+-0x19bc))['slice'](-(0x14ae+-0xe7b+0x5*-0x13d));}return decodeURIComponent(_0x4491f7);};_0x5c2b['eJUJLS']=_0x570e93,_0x5c2b['VZNDCO']={},_0x5c2b['YSStLl']=!![];}const _0x33c582=_0x24b3b8[-0xc67+0x6bb*-0x2+0x19dd],_0x3e7d35=_0x25800d+_0x33c582,_0x172c63=_0x5c2b['VZNDCO'][_0x3e7d35];return!_0x172c63?(_0x55e802=_0x5c2b['eJUJLS'](_0x55e802),_0x5c2b['VZNDCO'][_0x3e7d35]=_0x55e802):_0x55e802=_0x172c63,_0x55e802;}async function writeStateFile(_0xfca258,_0x1cafcc){const _0x32f749={_0x925f90:0x31b,_0x3043d7:0x351,_0x305e9c:0x320,_0x2bef6d:0x26a,_0x3a69d4:0x234,_0x2757f7:0x279,_0x4d1383:0x213,_0x391f0a:0x2e1,_0x325839:0x2e8,_0xe4c526:0x332,_0x4be9e4:0x2be,_0x2de029:0x3ae,_0x3f4fdf:0x364,_0x2cf9f0:0x217,_0x15ce2d:0x2f4,_0x50a26a:0x2fa,_0x5246ee:0x25d},_0x3a6519={};function _0x3ad9a6(_0x185dcc,_0x442ab6){return _0x5b782a(_0x442ab6-0x40b,_0x185dcc);}_0x3a6519[_0x8b4f5c(-0x234,-0x260)]=function(_0x28cc79,_0x45b077){return _0x28cc79<_0x45b077;},_0x3a6519['yXjNH']=function(_0x121f68,_0x59d20a){return _0x121f68!==_0x59d20a;},_0x3a6519[_0x3ad9a6(0x2fb,_0x32f749._0x925f90)]=_0x3ad9a6(_0x32f749._0x3043d7,0x347),_0x3a6519[_0x3ad9a6(0x346,0x34c)]=_0x3ad9a6(0x2f6,_0x32f749._0x305e9c);function _0x8b4f5c(_0xcc1009,_0x105653){return _0x5b782a(_0xcc1009- -0x158,_0x105653);}_0x3a6519['IUcbK']=function(_0x576d7d,_0x3cb207){return _0x576d7d instanceof _0x3cb207;},_0x3a6519[_0x8b4f5c(-_0x32f749._0x2bef6d,-0x285)]=function(_0x4d21f2,_0x2cb18c){return _0x4d21f2-_0x2cb18c;};const _0x3ed095=_0x3a6519;for(let _0x5de5f3=0x6aa+-0x1*-0x1769+-0x1e13*0x1;_0x3ed095[_0x8b4f5c(-_0x32f749._0x3a69d4,-_0x32f749._0x2757f7)](_0x5de5f3,MAX_RETRIES);_0x5de5f3++){try{if(_0x3ed095[_0x8b4f5c(-0x259,-0x22f)]('NmLxp',_0x3ed095[_0x8b4f5c(-0x248,-_0x32f749._0x4d1383)]))return _0x3ad9a6(_0x32f749._0x391f0a,_0x32f749._0x325839)+_0x8b4f5c(-0x21a,-0x247)+_0x3ad9a6(0x339,_0x32f749._0xe4c526);else{const _0x343860=new StateFileManager(_0xfca258);await _0x343860[_0x3ad9a6(0x287,_0x32f749._0x4be9e4)](),await _0x343860[_0x3ad9a6(_0x32f749._0x2de029,_0x32f749._0x3f4fdf)](_0x1cafcc);return;}}catch(_0x499b5b){if('HOdGO'===_0x3ed095[_0x8b4f5c(-_0x32f749._0x2cf9f0,-0x230)]){if(_0x3ed095[_0x3ad9a6(0x2d3,_0x32f749._0x15ce2d)](_0x499b5b,Error)&&_0x499b5b[_0x8b4f5c(-0x299,-0x2a2)][_0x3ad9a6(0x32a,0x2f8)](_0x3ad9a6(0x354,_0x32f749._0x50a26a))&&_0x5de5f3<_0x3ed095['yjFSe'](MAX_RETRIES,-0x21b5+0xa7b*-0x1+-0x1*-0x2c31)){await new Promise(_0x5e78ab=>setTimeout(_0x5e78ab,-0xc79+-0x2*-0xefc+-0x114d+Math[_0x8b4f5c(-0x289,-0x2c5)]()*(0x21b4+-0xa63*-0x1+-0x2bb3)));continue;}throw _0x499b5b;}else{const _0x8791f2=_0x4600f4[_0x39a4b8][_0x8b4f5c(-0x2ab,-_0x32f749._0x5246ee)];_0x48eb8f[_0x8791f2]=(_0x396ef2[_0x8791f2]??-0x2*-0xb8+0x5ec+0x2*-0x3ae)+(0x32b+0x3*0x16+-0x36c);}}}}function computeOverallPhase(_0x464878){const _0x52bf2a={_0x4a1c9c:0x1b8,_0x46df91:0x4fd,_0x47101c:0x4c0,_0x4f30ab:0x19f,_0x44c6c4:0x190,_0x332b72:0x518,_0x8d5928:0x1f4,_0x271802:0x4ed,_0x35aeb0:0x4a6,_0x1dffe2:0x18b,_0x41f695:0x182,_0x19b06a:0x4d1,_0x10072a:0x519,_0x3b4fbf:0x5a8,_0x5a4159:0x551,_0x4d9869:0x112,_0x2b490c:0x14e,_0x286eea:0x15d,_0x2b89fa:0x17a,_0x4508f3:0x170,_0x573117:0x19d,_0x469cb6:0x147,_0x3052a2:0x4db,_0x132e10:0x1ec,_0x1a5976:0x1f7};function _0x5f11b4(_0x2af5ee,_0x284cd4){return _0x5b782a(_0x284cd4-0x605,_0x2af5ee);}const _0x51dae9={};_0x51dae9['DtVEC']=function(_0x5a5fc0,_0xb199f1){return _0x5a5fc0+_0xb199f1;},_0x51dae9[_0xf7e232(-_0x52bf2a._0x4a1c9c,-0x1e6)]=function(_0x4a4c54,_0x46b593){return _0x4a4c54-_0x46b593;},_0x51dae9[_0x5f11b4(_0x52bf2a._0x46df91,_0x52bf2a._0x47101c)]=function(_0x1f4e81,_0x106e4b){return _0x1f4e81!==_0x106e4b;},_0x51dae9[_0xf7e232(-_0x52bf2a._0x4f30ab,-_0x52bf2a._0x44c6c4)]=function(_0x3ab08c,_0x1e0083){return _0x3ab08c===_0x1e0083;},_0x51dae9[_0x5f11b4(_0x52bf2a._0x332b72,0x551)]=_0xf7e232(-0x249,-_0x52bf2a._0x8d5928);const _0x548d87=_0x51dae9;for(const _0x305b6b of Object[_0x5f11b4(0x51a,0x53b)](_0x464878)){if(_0x548d87[_0x5f11b4(_0x52bf2a._0x271802,0x4c0)](_0x464878[_0x305b6b][_0x5f11b4(_0x52bf2a._0x35aeb0,0x4b2)],_0xf7e232(-_0x52bf2a._0x1dffe2,-_0x52bf2a._0x41f695))){if(_0x548d87[_0x5f11b4(_0x52bf2a._0x19b06a,_0x52bf2a._0x10072a)](_0x548d87[_0x5f11b4(_0x52bf2a._0x3b4fbf,_0x52bf2a._0x5a4159)],_0xf7e232(-_0x52bf2a._0x4d9869,-_0x52bf2a._0x2b490c))){const _0x44ac07=_0x546f47[_0x3938e2]??_0x523bc3,_0x5c72d0=_0x548d87[_0xf7e232(-0x14c,-_0x52bf2a._0x286eea)]('█'[_0xf7e232(-_0x52bf2a._0x2b89fa,-_0x52bf2a._0x4508f3)](_0x484542),'░'[_0xf7e232(-0x1a9,-_0x52bf2a._0x4508f3)](_0x42f47f[_0xf7e232(-0x136,-0x178)](0x1*-0x1753+-0x5*-0x42d+0x1*0x272,_0x548d87['TYJGG'](_0x27a2ad,_0x362485))));_0x51d941[_0xf7e232(-_0x52bf2a._0x573117,-_0x52bf2a._0x469cb6)](_0x5f11b4(_0x52bf2a._0x3052a2,0x4f8)+_0x44ac07['padEnd'](0x485+-0x12ab+0xe34)+'\x20'+_0x5c72d0+'\x20'+_0xbbfbaa);}else return _0x464878[_0x305b6b][_0xf7e232(-_0x52bf2a._0x132e10,-_0x52bf2a._0x1a5976)];}}function _0xf7e232(_0x2563d1,_0x50a6be){return _0x5b782a(_0x50a6be- -0xa4,_0x2563d1);}return _0xf7e232(-0x1d8,-0x182);}export async function getStatus(_0x58828b){const _0x5eb4dc={_0x2627f2:0x154,_0x76c000:0x16e,_0x18f403:0x3ec,_0x173970:0x41e,_0x2dda40:0x1b0,_0x62bbf5:0x163,_0x5e53a4:0x43e,_0x3af62a:0x43a,_0x2c2ab3:0x102,_0x485f99:0x41b,_0x4c122d:0x3d0,_0x5d37ad:0x3a2,_0x5e6fae:0x453,_0x214a56:0x46f,_0x26fbc4:0x153,_0x4a4af0:0x3dd,_0x502096:0x3fa,_0x4e8d53:0x22c,_0x98dcaf:0x1ee,_0x39898e:0x14c,_0x1d510a:0x452,_0x56d68f:0x47e,_0x5ba116:0x3f9,_0x10c875:0x413,_0x5cc040:0x192,_0x1d6166:0x1cb,_0x3d1456:0x416,_0x26b9ec:0x448,_0x259c95:0x159,_0xa57879:0x13e,_0x29fcc9:0x170,_0x4191c0:0x409,_0x35cd47:0x405,_0x43e6c3:0x414,_0x1b97f4:0x471,_0x2e4f0a:0x375,_0xa62b37:0x1bb,_0x5e7bed:0x404,_0x7ff53c:0x1bb,_0x17eb1b:0x431},_0x29e337={'FsySU':_0x1fdc76(_0x5eb4dc._0x2627f2,_0x5eb4dc._0x76c000)+',请先运行\x20new-'+'project\x20命令','luojk':function(_0x4430cc,_0x12ae8b,_0x5c6a60){return _0x4430cc(_0x12ae8b,_0x5c6a60);},'Ihelv':_0x3bab51(_0x5eb4dc._0x18f403,_0x5eb4dc._0x173970),'pKAia':function(_0x523b98,_0x4a9108){return _0x523b98===_0x4a9108;},'sKSSo':function(_0xededae,_0xbad619){return _0xededae+_0xbad619;},'LYBXR':_0x1fdc76(_0x5eb4dc._0x2dda40,_0x5eb4dc._0x62bbf5)};if(!existsSync(_0x58828b))return _0x29e337[_0x3bab51(_0x5eb4dc._0x5e53a4,_0x5eb4dc._0x3af62a)];const _0x145fad=_0x29e337['luojk'](readFileSync,_0x58828b,_0x29e337[_0x1fdc76(_0x5eb4dc._0x2c2ab3,0x149)]),_0x4524d0=JSON[_0x3bab51(_0x5eb4dc._0x485f99,0x428)](_0x145fad),_0x5828bc=[];_0x5828bc[_0x1fdc76(0x1d9,0x1ee)]('📊\x20项目状态:\x20'+_0x4524d0[_0x3bab51(0x3e7,0x42c)][_0x3bab51(0x3b2,0x3ce)]),_0x5828bc[_0x3bab51(0x453,0x4a4)]('\x20\x20\x20当前阶段:\x20'+(PHASE_NAMES[_0x4524d0[_0x3bab51(0x3e7,_0x5eb4dc._0x4c122d)][_0x1fdc76(0x1d4,0x1be)+'se']]??_0x4524d0['project'][_0x3bab51(0x423,0x423)+'se']));function _0x3bab51(_0x35f72f,_0x574dae){return _0x36720f(_0x35f72f- -0x9b,_0x574dae);}_0x5828bc['push'](_0x3bab51(0x44d,0x3fc)+_0x4524d0[_0x3bab51(_0x5eb4dc._0x5d37ad,0x3f9)]),_0x5828bc[_0x3bab51(_0x5eb4dc._0x5e6fae,_0x5eb4dc._0x214a56)](_0x1fdc76(0x118,_0x5eb4dc._0x26fbc4)+_0x4524d0[_0x3bab51(_0x5eb4dc._0x4a4af0,0x3e8)]);const _0x2f0179=_0x4524d0[_0x3bab51(0x438,_0x5eb4dc._0x502096)];function _0x1fdc76(_0x449911,_0x4ce721){return _0x5b782a(_0x4ce721-0x291,_0x449911);}const _0x16ee7a=Object['keys'](_0x2f0179);if(_0x29e337['pKAia'](_0x16ee7a['length'],0x1824+0x1d9f*0x1+0x1*-0x35c3))return _0x5828bc[_0x1fdc76(_0x5eb4dc._0x4e8d53,_0x5eb4dc._0x98dcaf)](_0x1fdc76(_0x5eb4dc._0x39898e,0x146)+_0x3bab51(_0x5eb4dc._0x1d510a,_0x5eb4dc._0x56d68f)),_0x5828bc[_0x3bab51(0x3b3,0x385)]('\x0a');_0x5828bc[_0x3bab51(_0x5eb4dc._0x5e6fae,_0x5eb4dc._0x5ba116)](''),_0x5828bc[_0x3bab51(_0x5eb4dc._0x5e6fae,_0x5eb4dc._0x10c875)](_0x1fdc76(0x1e4,0x1c6)+'D\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1fdc76(_0x5eb4dc._0x5cc040,_0x5eb4dc._0x1d6166)+_0x3bab51(_0x5eb4dc._0x3d1456,0x453)+_0x3bab51(0x3aa,0x36a)+_0x3bab51(_0x5eb4dc._0x26b9ec,0x49d)+'工具'),_0x5828bc[_0x3bab51(0x453,0x41a)](_0x29e337[_0x1fdc76(0x16b,0x1c3)](_0x29e337['LYBXR'],'-'['repeat'](-0x1*0xa97+0x2cf*-0x6+-0x5*-0x58d)));for(const _0x257f1d of _0x16ee7a){const _0x4e7247=_0x2f0179[_0x257f1d],_0x223923=PHASE_NAMES[_0x4e7247[_0x1fdc76(_0x5eb4dc._0x259c95,_0x5eb4dc._0xa57879)]]??_0x4e7247[_0x3bab51(0x3a3,0x3be)],_0x5064c9=_0x4e7247[_0x1fdc76(0x191,_0x5eb4dc._0x29fcc9)+_0x3bab51(_0x5eb4dc._0x4191c0,_0x5eb4dc._0x35cd47)]||'-',_0x1fc915=_0x4e7247[_0x3bab51(_0x5eb4dc._0x43e6c3,0x444)+'ll']||'-';_0x5828bc[_0x3bab51(0x453,_0x5eb4dc._0x1b97f4)](_0x3bab51(0x3c8,_0x5eb4dc._0x2e4f0a)+_0x257f1d[_0x1fdc76(0x209,_0x5eb4dc._0xa62b37)](0x123*-0x12+0x534*-0x2+0x8*0x3de)+_0x3bab51(_0x5eb4dc._0x5e7bed,0x441)+_0x223923[_0x1fdc76(0x1f4,0x1bb)](0x20b9+-0xdcf+-0x12dc)+_0x1fdc76(0x15f,0x19f)+_0x5064c9[_0x1fdc76(0x1f4,_0x5eb4dc._0x7ff53c)](-0x2512+0x1550+0xfd7)+_0x3bab51(0x404,_0x5eb4dc._0x17eb1b)+_0x1fc915);}return _0x5828bc['join']('\x0a');}export async function advancePhase(_0x502a05,_0x49d090){const _0x5e8173={_0x3786e3:0x17,_0x475673:0x3b,_0x3d12a1:0x42f,_0x121850:0x46a,_0xb1a8db:0x20,_0x146405:0x413,_0x5ddd0c:0x440,_0x3de66a:0x382,_0x1f1abc:0x429,_0x4ec4df:0x3fa,_0x32468e:0x430,_0x102973:0x3e4,_0x18e6c8:0x42a,_0x3b20bd:0x3cc,_0x368110:0x3eb,_0x51e786:0x3aa,_0x4ef515:0x6b,_0x16caf6:0x14,_0x62fe8:0x0,_0x28024c:0x6b,_0x279165:0xb0,_0x57b225:0x6b,_0xafec9c:0x433,_0x391591:0x487,_0x3f080e:0x3fa,_0x49a355:0x73,_0x5f152b:0x27,_0x1e26a1:0x438,_0xc4af70:0x12,_0x26e6c5:0x27,_0x55ec3f:0x3b,_0x595cf2:0x2a,_0x1b1762:0x4f,_0x2fea07:0x45,_0x3ed6c6:0xe,_0x83f537:0x35,_0x1820c8:0x18,_0x2be0e3:0x44,_0x10a2d7:0x4a,_0x2d68a6:0x413,_0x291b92:0x427,_0x2d3454:0x3ae,_0x2ed223:0x3e8},_0x7cb1ef={_0x12a304:0x4f1},_0x2d2911={'DZqcF':function(_0xa1567,_0x8ff93a){return _0xa1567<_0x8ff93a;},'eYSiC':function(_0x289d4e,_0x7a1f58){return _0x289d4e+_0x7a1f58;},'AiJwt':_0xbaa9aa(_0x5e8173._0x3786e3,-_0x5e8173._0x475673)+_0x28e682(_0x5e8173._0x3d12a1,_0x5e8173._0x121850)+'project\x20命令','mjUES':_0xbaa9aa(-_0x5e8173._0xb1a8db,0x35),'sztRB':function(_0x29a64f,_0x4d1cab){return _0x29a64f===_0x4d1cab;},'gATmX':_0x28e682(_0x5e8173._0x146405,_0x5e8173._0x5ddd0c),'mXPqs':function(_0x359a63,_0x1e3f0c){return _0x359a63(_0x1e3f0c);},'gEtpU':_0x28e682(0x3d6,_0x5e8173._0x3de66a)},_0x168f39=await readStateFile(_0x502a05);if(!_0x168f39)return _0x2d2911[_0xbaa9aa(-0x51,-0x30)];const _0x361961=_0x49d090??Object[_0x28e682(0x427,0x44b)](_0x168f39[_0x28e682(0x433,_0x5e8173._0x1f1abc)])['find'](_0x41f637=>_0x168f39[_0x28e682(0x433,0x3f0)][_0x41f637]['phase']!==_0x28e682(0x413,0x44e));if(!_0x361961)return _0x28e682(_0x5e8173._0x4ec4df,0x3d9)!==_0x2d2911[_0x28e682(_0x5e8173._0x32468e,_0x5e8173._0x102973)]?_0xbaa9aa(-0x31,0x7)+'\x20已完成全部阶段':_0x28e682(0x441,_0x5e8173._0x18e6c8)+_0x37480d+_0x28e682(_0x5e8173._0x3b20bd,0x372);const _0x371db1=_0x168f39['agents'][_0x361961];if(!_0x371db1)return _0x2d2911['sztRB']('CacWJ','iqoPx')?_0x1df7fc[-0x1795*-0x1+0x43e+0x11*-0x1a3]:'❌\x20Agent\x20'+_0x361961+(_0x28e682(0x3fb,_0x5e8173._0x368110)+_0x28e682(_0x5e8173._0x51e786,0x39c));if(_0x371db1[_0xbaa9aa(-0x98,-_0x5e8173._0x4ef515)]===_0x2d2911[_0xbaa9aa(-_0x5e8173._0x16caf6,0x4)])return'['+_0x361961+_0xbaa9aa(_0x5e8173._0x62fe8,-0x55);const _0x23e866=_0x2d2911[_0xbaa9aa(-0xf,-0x1c)](computeNextPhase,_0x371db1['phase']),_0x4b7414=PHASE_NAMES[_0x371db1[_0xbaa9aa(-0x29,-_0x5e8173._0x28024c)]]??_0x371db1[_0xbaa9aa(-_0x5e8173._0x279165,-_0x5e8173._0x57b225)],_0x5e01d6=PHASE_NAMES[_0x23e866]??_0x23e866,_0x1398e1={..._0x168f39[_0x28e682(_0x5e8173._0xafec9c,_0x5e8173._0x391591)]},_0x31eadb=_0x1398e1,_0x2b2db0={..._0x371db1};_0x2b2db0[_0xbaa9aa(-0x7d,-_0x5e8173._0x4ef515)]=_0x23e866,_0x2b2db0['currentOpe'+_0x28e682(0x404,0x3b7)]='',_0x2b2db0[_0x28e682(0x40f,_0x5e8173._0x3f080e)+'ll']='',_0x31eadb[_0x361961]=_0x2b2db0;function _0xbaa9aa(_0x1264db,_0x2d1863){return _0x36720f(_0x2d1863- -0x4a9,_0x1264db);}function _0x28e682(_0x4afa94,_0x58506b){return _0x5b782a(_0x4afa94-_0x7cb1ef._0x12a304,_0x58506b);}const _0x1a5c44=computeOverallPhase(_0x31eadb),_0x54f31e={..._0x168f39[_0xbaa9aa(-_0x5e8173._0x49a355,-_0x5e8173._0x5f152b)]};_0x54f31e[_0x28e682(0x41e,_0x5e8173._0x1e26a1)+'se']=_0x1a5c44;const _0x2af2a9={};_0x2af2a9[_0xbaa9aa(_0x5e8173._0xc4af70,-_0x5e8173._0x26e6c5)]=_0x54f31e,_0x2af2a9[_0xbaa9aa(_0x5e8173._0x55ec3f,_0x5e8173._0x595cf2)]=_0x31eadb,_0x2af2a9[_0xbaa9aa(-0x14,0x13)+_0x28e682(0x44f,0x454)]=_0x168f39[_0xbaa9aa(0x22,0x13)+_0x28e682(0x44f,0x47e)],await writeStateFile(_0x502a05,_0x2af2a9);const _0x10ba93=[];_0x10ba93[_0xbaa9aa(_0x5e8173._0x1b1762,_0x5e8173._0x2fea07)]('['+_0x361961+']\x20'+_0x4b7414+'\x20→\x20'+_0x5e01d6);if(_0x23e866===_0x28e682(0x413,0x40d)){if(_0x2d2911[_0xbaa9aa(-_0x5e8173._0x3ed6c6,-_0x5e8173._0x83f537)]===_0x2d2911[_0xbaa9aa(_0x5e8173._0x1820c8,-0x35)])_0x10ba93['push'](_0x28e682(0x3a2,0x3c0)+_0x361961+_0xbaa9aa(-0x74,-_0x5e8173._0x2be0e3));else return _0x2d2911[_0xbaa9aa(-_0x5e8173._0x10a2d7,-0x7)](_0x2938da,_0x5c540a[_0x28e682(0x408,0x3d0)]-(0xc*0x17f+0x2*0x96b+-0x49*0x81))?_0x366f34[_0x2d2911[_0xbaa9aa(0x40,0x25)](_0x532904,0xa27+0x7*0x4f+0x17*-0x89)]:_0x28e682(_0x5e8173._0x2d68a6,_0x5e8173._0x291b92);}return _0x10ba93[_0x28e682(_0x5e8173._0x2d3454,_0x5e8173._0x2ed223)]('\x0a');}function computeNextPhase(_0x10f1d1){const _0xef29c1={_0x23c5dc:0x388,_0x177bb4:0x2fa,_0x430453:0x352,_0x4605cf:0x35b,_0x18eea5:0x331,_0x13b26a:0x145,_0x53a38b:0x136,_0x13594e:0xd9,_0x4670be:0x6b,_0xd4dfa8:0xf6,_0x1c8dfc:0x346,_0x4390c7:0xbe,_0x213447:0x2ec,_0x35889a:0x13b,_0x3190ed:0x30f,_0x118d29:0x2ed,_0x57c941:0x343,_0x3f8974:0x339,_0x430c45:0x306,_0x109fa5:0x12b},_0x3a5af7={};_0x3a5af7[_0x15b745(0x347,_0xef29c1._0x23c5dc)]=function(_0x167875,_0x4f22fb){return _0x167875-_0x4f22fb;},_0x3a5af7[_0x15b745(_0xef29c1._0x177bb4,_0xef29c1._0x430453)]=function(_0x1d12a9,_0x43d092){return _0x1d12a9+_0x43d092;},_0x3a5af7[_0x15b745(_0xef29c1._0x4605cf,_0xef29c1._0x18eea5)]=function(_0x4ecccc,_0x3872cf){return _0x4ecccc===_0x3872cf;},_0x3a5af7[_0x4b9cf2(-_0xef29c1._0x13b26a,-0x120)]='idle';function _0x4b9cf2(_0x1ea67c,_0x525896){return _0x5b782a(_0x1ea67c- -0xd,_0x525896);}_0x3a5af7[_0x4b9cf2(-_0xef29c1._0x53a38b,-0x10c)]=function(_0x1099e4,_0x26390b){return _0x1099e4===_0x26390b;},_0x3a5af7[_0x15b745(0x30f,0x2e2)]=_0x4b9cf2(-0xec,-0xb4),_0x3a5af7[_0x4b9cf2(-0x12b,-_0xef29c1._0x13594e)]='completed';const _0x384b75=_0x3a5af7,_0x23593b=PHASES[_0x4b9cf2(-0xbe,-_0xef29c1._0x4670be)](_0x10f1d1);if(_0x23593b>=0x1052+-0x1a8*-0x4+-0x16f2)return _0x23593b<_0x384b75['rLuLY'](PHASES[_0x4b9cf2(-_0xef29c1._0xd4dfa8,-0x9f)],0x7*0xe1+-0xeef*0x1+0x8c9)?PHASES[_0x23593b+(0x4d*-0x1f+0x10*-0x227+0x2bc4)]:_0x15b745(_0xef29c1._0x1c8dfc,0x337);const _0x5259f2=PIPELINE_PHASES[_0x4b9cf2(-_0xef29c1._0x4390c7,-0x70)](_0x10f1d1);if(_0x5259f2>=0x2*-0x1e2+-0x6*-0x9d+-0x2*-0xb)return _0x5259f2<PIPELINE_PHASES['length']-(0xc47+-0x673*-0x1+0x1*-0x12b9)?PIPELINE_PHASES[_0x384b75['uYfJs'](_0x5259f2,-0x11*-0x190+0x6*-0x5fb+-0x1*-0x953)]:'completed';function _0x15b745(_0x2006db,_0x1cb16f){return _0x36720f(_0x2006db- -0x16d,_0x1cb16f);}if(_0x384b75[_0x15b745(_0xef29c1._0x4605cf,0x31f)](_0x10f1d1,_0x384b75[_0x15b745(_0xef29c1._0x213447,0x294)]))return _0x384b75[_0x4b9cf2(-0x136,-_0xef29c1._0x35889a)](_0x384b75[_0x15b745(_0xef29c1._0x3190ed,_0xef29c1._0x118d29)],_0x384b75['GJVfW'])?PHASES[0x1*0x99f+-0x1118+-0x779*-0x1]:_0x15b745(_0xef29c1._0x57c941,_0xef29c1._0x3f8974)+_0x15b745(0x2f8,_0xef29c1._0x430c45);return _0x384b75[_0x4b9cf2(-_0xef29c1._0x109fa5,-0xe0)];}export async function newProject(_0xf8b5b3,_0x264fca){const _0x3e5962={_0x58aaf9:0x37e,_0x4a3c33:0x39e,_0x1f7b51:0x38f,_0x2d7d51:0x2a0,_0x3fb75d:0x2b9,_0x1a420e:0x243,_0x27945d:0x28b,_0x3cbd4c:0x277,_0x358675:0x36d,_0x4f10f4:0x3a8,_0x159c9f:0x391,_0x3132db:0x35a,_0x5dd0af:0x3c4,_0x5514ee:0x323,_0x2b571f:0x2ad,_0x324883:0x2bb,_0x3e34ab:0x2fa,_0x4cd935:0x32f,_0x32b702:0x3c3,_0x5ccbed:0x3dc,_0x22c642:0x250},_0x5e916f={_0x35011:0x364},_0x493bea={'TCphp':function(_0x2e292a,_0x5ec974,_0x1e2a5f){return _0x2e292a(_0x5ec974,_0x1e2a5f);},'itHat':function(_0x3ad659,_0x36a4dd,_0x392413){return _0x3ad659(_0x36a4dd,_0x392413);},'MLEAL':function(_0x39e7ee){return _0x39e7ee();},'BbxcV':_0x20baf4(0x26b,0x289),'QGLoT':'\x20→\x20'},_0x3342b2=_0x493bea[_0x50aebb(_0x3e5962._0x58aaf9,0x350)](resolve,_0xf8b5b3,'..');if(!existsSync(_0x3342b2)){const _0x464c77={};_0x464c77[_0x50aebb(_0x3e5962._0x4a3c33,_0x3e5962._0x1f7b51)]=!![],_0x493bea['itHat'](mkdirSync,_0x3342b2,_0x464c77);}const _0x3e5061=_0x493bea['MLEAL'](generateAgentId),_0x2ef08d={};_0x2ef08d[_0x20baf4(0x295,_0x3e5962._0x2d7d51)]=_0x3e5061,_0x2ef08d[_0x20baf4(_0x3e5962._0x3fb75d,0x280)]=null,_0x2ef08d['childIds']=[],_0x2ef08d['phase']=_0x493bea[_0x50aebb(0x3b1,0x3f2)],_0x2ef08d[_0x20baf4(_0x3e5962._0x1a420e,_0x3e5962._0x27945d)+_0x20baf4(_0x3e5962._0x3cbd4c,0x2ac)]='',_0x2ef08d['currentSki'+'ll']='';const _0x45a9a0=_0x2ef08d;function _0x20baf4(_0x5ab437,_0x14a7aa){return _0x5b782a(_0x5ab437-_0x5e916f._0x35011,_0x14a7aa);}const _0x4b1b1a={};_0x4b1b1a['name']=_0x264fca,_0x4b1b1a['currentPha'+'se']=_0x50aebb(_0x3e5962._0x358675,0x39c);const _0x3b3f72={};_0x3b3f72[_0x3e5061]=_0x45a9a0;const _0xd6e677={};_0xd6e677[_0x20baf4(0x255,0x29f)]=_0x4b1b1a,_0xd6e677[_0x50aebb(_0x3e5962._0x4f10f4,_0x3e5962._0x58aaf9)]=_0x3b3f72,_0xd6e677[_0x50aebb(_0x3e5962._0x159c9f,_0x3e5962._0x3132db)+_0x50aebb(_0x3e5962._0x5dd0af,0x3eb)]=null,await _0x493bea[_0x50aebb(0x361,_0x3e5962._0x5514ee)](writeStateFile,_0xf8b5b3,_0xd6e677);const _0x3ba8cb=[];_0x3ba8cb[_0x20baf4(0x2c1,0x2f7)]('🆕\x20项目已创建:\x20'+_0x264fca),_0x3ba8cb['push'](_0x20baf4(_0x3e5962._0x2b571f,_0x3e5962._0x324883)+_0x3342b2),_0x3ba8cb[_0x20baf4(0x2c1,_0x3e5962._0x3e34ab)](_0x50aebb(0x346,0x388)+_0x50aebb(_0x3e5962._0x4cd935,0x37f)+_0x3e5061),_0x3ba8cb[_0x50aebb(_0x3e5962._0x32b702,_0x3e5962._0x5ccbed)]('\x20\x20\x20阶段序列:\x20'+PIPELINE_PHASES[_0x20baf4(0x2a9,0x263)](_0x4cd050=>PHASE_NAMES[_0x4cd050]??_0x4cd050)['join'](_0x493bea[_0x20baf4(0x23c,_0x3e5962._0x22c642)]));function _0x50aebb(_0x254e46,_0x42e33a){return _0x36720f(_0x254e46- -0x12b,_0x42e33a);}return _0x3ba8cb[_0x20baf4(0x221,0x267)]('\x0a');}export async function updateOperation(_0x4204a5,_0x656b,_0x1c7c7d,_0x519de3){const _0x2f4fdb={_0x1f3e78:0x487,_0x379244:0x490,_0x446fd9:0x204,_0x28e538:0x22c,_0x5cc160:0x26a,_0x2edb8b:0x4a1,_0x110194:0x1ec,_0x148d88:0x1e5,_0x52e102:0x1d4,_0x295b3b:0x434,_0x14c9a6:0x3f3,_0x28468c:0x46e,_0x433f5e:0x445},_0x4ef475={'WSVLo':'⚠️\x20\x20状态文件不存在','LuLTO':function(_0x425e13,_0x4ff682,_0x5d8997){return _0x425e13(_0x4ff682,_0x5d8997);}},_0x46e163=await readStateFile(_0x4204a5);if(!_0x46e163)return _0x4ef475[_0x5118cb(_0x2f4fdb._0x1f3e78,_0x2f4fdb._0x379244)];const _0x2abba3=_0x46e163[_0x5118cb(0x4a1,0x47b)][_0x656b];if(!_0x2abba3)return _0x1d13ed(-_0x2f4fdb._0x446fd9,-_0x2f4fdb._0x28e538)+_0x656b+('\x20不存在于\x20stat'+_0x1d13ed(-_0x2f4fdb._0x5cc160,-0x246));function _0x5118cb(_0x369c37,_0x5ae6db){return _0x5b782a(_0x369c37-0x55f,_0x5ae6db);}const _0x10127f={..._0x46e163[_0x5118cb(_0x2f4fdb._0x2edb8b,0x4b3)]},_0x352fd7=_0x10127f,_0x5e2fe5={..._0x2abba3};_0x5e2fe5[_0x5118cb(0x43e,0x42c)+_0x1d13ed(-0x1de,-_0x2f4fdb._0x110194)]=_0x1c7c7d,_0x5e2fe5['currentSki'+'ll']=_0x519de3,_0x352fd7[_0x656b]=_0x5e2fe5;const _0x3066c2={};_0x3066c2[_0x1d13ed(-_0x2f4fdb._0x148d88,-0x20e)]=_0x46e163['project'],_0x3066c2[_0x5118cb(0x4a1,0x4d2)]=_0x352fd7,_0x3066c2[_0x5118cb(0x48a,0x487)+'pshot']=_0x46e163[_0x1d13ed(-0x1a1,-_0x2f4fdb._0x52e102)+_0x1d13ed(-0x1e8,-0x1a1)],await _0x4ef475['LuLTO'](writeStateFile,_0x4204a5,_0x3066c2);function _0x1d13ed(_0x477d83,_0x597a60){return _0x5b782a(_0x597a60- -0xff,_0x477d83);}return _0x5118cb(_0x2f4fdb._0x295b3b,_0x2f4fdb._0x14c9a6)+_0x656b+_0x5118cb(_0x2f4fdb._0x28468c,_0x2f4fdb._0x433f5e)+_0x1c7c7d+'\x20('+_0x519de3+')';}export async function registerAgent(_0x32a643,_0xab4f23,_0x3fafde={}){const _0x289b02={_0x11fec7:0x2c1,_0x566e94:0x27c,_0x338dce:0x106,_0x2e6fce:0x25a,_0xe083ea:0x283,_0x432435:0x2a6,_0x3d904a:0x2a2,_0x1e2e69:0x307,_0x375481:0x2b5,_0xbc3e08:0xfe,_0xb834d7:0x75,_0x57f47e:0x9c,_0x26d2f4:0xf6,_0x2398e6:0x24c,_0x51a079:0x113,_0x5bf309:0x336,_0x362027:0x7e,_0x57e37a:0x10f,_0x1fc165:0xf7,_0x198206:0x118,_0x11a085:0x29e,_0xbea4ce:0x266,_0x29c358:0xba,_0x25980d:0x24c,_0x1b6b63:0xa6,_0x41d881:0x2bd,_0x46c16b:0x143,_0x48a260:0x2bb,_0x1b3e0e:0x291,_0x1c1794:0x24d,_0x54d232:0x290,_0x4c190b:0x318,_0x3e921a:0xb7,_0x1f163f:0x286,_0x37bbe7:0x126,_0x4d7271:0x33d,_0x1adfd0:0x2fc,_0x490aa6:0x10c,_0x1f36ce:0x2fc,_0x9013c1:0x2cc,_0x1c3574:0x2fc},_0x1a08f7={_0x1e4560:0x3c9},_0x5a5404={'cpbsl':_0x36350f(0x2e3,_0x289b02._0x11fec7),'NFUgc':_0x36350f(0x268,_0x289b02._0x566e94)+_0x3201e3(0xcd,_0x289b02._0x338dce)+_0x3201e3(0x9a,0xef),'ARXSe':function(_0x349083,_0x4399f5){return _0x349083(_0x4399f5);},'grnoS':function(_0x2bb9c3,_0x31ab70){return _0x2bb9c3===_0x31ab70;},'mHJHx':'exSMO','OkWNN':_0x36350f(_0x289b02._0x2e6fce,_0x289b02._0xe083ea),'ePrXl':_0x36350f(0x2ad,_0x289b02._0x432435),'JkmVA':function(_0x22997e,_0x2fff90){return _0x22997e===_0x2fff90;},'nFRQm':_0x36350f(_0x289b02._0x3d904a,0x260)};function _0x3201e3(_0x3f6894,_0x1b4575){return _0x36720f(_0x1b4575- -_0x1a08f7._0x1e4560,_0x3f6894);}const _0x252139=await _0x5a5404[_0x3201e3(0xae,0x8e)](readStateFile,_0x32a643);if(!_0x252139){if(_0x5a5404[_0x36350f(_0x289b02._0x1e2e69,_0x289b02._0x375481)](_0x5a5404[_0x3201e3(0x13a,0xfb)],_0x36350f(0x2d7,0x2f9))){for(const _0x229be7 of _0x46eb9c[_0x3201e3(0x134,_0x289b02._0xbc3e08)](_0x36ea27)){if(_0x139a6c[_0x229be7][_0x3201e3(0x5b,_0x289b02._0xb834d7)]!==_0x5a5404[_0x3201e3(_0x289b02._0x57f47e,_0x289b02._0x26d2f4)])return _0x3095f3[_0x229be7][_0x36350f(0x28e,_0x289b02._0x2398e6)];}return _0x5a5404[_0x3201e3(_0x289b02._0x51a079,_0x289b02._0x26d2f4)];}else return _0x5a5404[_0x36350f(0x330,0x2df)];}if(_0x252139[_0x36350f(_0x289b02._0x5bf309,0x2e1)][_0xab4f23])return _0x3201e3(0x81,_0x289b02._0x362027)!==_0x5a5404[_0x3201e3(_0x289b02._0x57e37a,_0x289b02._0x1fc165)]?_0x3201e3(0xcd,_0x289b02._0x198206)+_0xab4f23+_0x36350f(_0x289b02._0x11a085,_0x289b02._0xbea4ce):_0x5a5404['NFUgc'];const _0x53081f=_0x3fafde['phase']??_0x5a5404['ePrXl'],_0x21f874=_0x3fafde['parentId']??null,_0x5c77d1={};_0x5c77d1['agentId']=_0xab4f23,_0x5c77d1[_0x3201e3(0x102,0x11d)]=_0x21f874,_0x5c77d1[_0x3201e3(0xf8,_0x289b02._0x29c358)]=[];function _0x36350f(_0x2dc076,_0x317092){return _0x5b782a(_0x317092-0x39f,_0x2dc076);}_0x5c77d1[_0x36350f(0x247,_0x289b02._0x25980d)]=_0x53081f,_0x5c77d1['currentOpe'+_0x3201e3(_0x289b02._0x1b6b63,0xdb)]='',_0x5c77d1[_0x36350f(0x274,_0x289b02._0x41d881)+'ll']='';const _0x448ec6=_0x5c77d1,_0x5d0cd5={..._0x252139[_0x3201e3(_0x289b02._0x46c16b,0x10a)]};_0x5d0cd5[_0xab4f23]=_0x448ec6;const _0x55be02=_0x5d0cd5;if(_0x21f874&&_0x55be02[_0x21f874]){if(_0x5a5404['JkmVA']('imqWk',_0x5a5404[_0x3201e3(_0x289b02._0x338dce,0x127)])){const _0x189657=_0x193cf5[_0x2a1087[_0x36350f(_0x289b02._0x48a260,0x2f4)]];_0x4fc5c9[_0x50d77f[_0x3201e3(0x16e,0x11d)]]={..._0x189657,'childIds':_0x189657[_0x36350f(0x25c,_0x289b02._0x1b3e0e)][_0x36350f(0x217,_0x289b02._0x1c1794)](_0x3f9f1c=>_0x3f9f1c!==_0x239ef4)};}else{const _0x17c677=_0x55be02[_0x21f874];if(!_0x17c677['childIds'][_0x3201e3(0x79,0xb5)](_0xab4f23)){const _0x5aa215={..._0x17c677};_0x5aa215[_0x36350f(0x2c8,_0x289b02._0x1b3e0e)]=[..._0x17c677[_0x3201e3(0x9a,_0x289b02._0x29c358)],_0xab4f23],_0x55be02[_0x21f874]=_0x5aa215;}}}const _0x5aeaac={};_0x5aeaac[_0x36350f(_0x289b02._0x54d232,0x290)]=_0x252139['project'],_0x5aeaac[_0x36350f(_0x289b02._0x4c190b,0x2e1)]=_0x55be02,_0x5aeaac[_0x3201e3(_0x289b02._0x3e921a,0xf3)+_0x3201e3(0x100,0x126)]=_0x252139[_0x36350f(_0x289b02._0x1f163f,0x2ca)+_0x3201e3(0x119,_0x289b02._0x37bbe7)],await writeStateFile(_0x32a643,_0x5aeaac);const _0x1eec83=PHASE_NAMES[_0x53081f]??_0x53081f,_0x5f0219=[];_0x5f0219[_0x36350f(_0x289b02._0x4d7271,_0x289b02._0x1adfd0)](_0x3201e3(0xa6,0x88)+_0x3201e3(0xe6,_0x289b02._0x490aa6)+_0xab4f23),_0x5f0219[_0x36350f(_0x289b02._0x1f36ce,0x2fc)]('\x20\x20\x20阶段:\x20'+_0x1eec83);if(_0x21f874)_0x5f0219[_0x36350f(_0x289b02._0x9013c1,_0x289b02._0x1c3574)]('\x20\x20\x20父\x20Agent'+':\x20'+_0x21f874);return _0x5f0219['join']('\x0a');}export async function deregisterAgent(_0x530f34,_0xb50c8a){const _0x3a89b9={_0x1e330e:0x38,_0x276a0a:0x7f,_0x2583cf:0x3f,_0x5f354e:0xaf,_0x203444:0x3c,_0x1d81c7:0x1e,_0xd108d0:0x35,_0x5b9127:0x4d,_0x5f28cf:0x1f,_0x44c430:0x66,_0x34df1d:0x55,_0x371928:0x39,_0x4f98f0:0xa1,_0x19ebf3:0x1c,_0x4ef723:0x27,_0x1a8bf9:0xa9,_0x4baaba:0x5f,_0x52ad04:0x19},_0x369de3={_0x2c4624:0x4a2},_0x143cbd={_0x49ad57:0x51b};function _0xb1cafc(_0x381dc6,_0x41d23e){return _0x36720f(_0x41d23e- -_0x143cbd._0x49ad57,_0x381dc6);}const _0xb9431={'BdNmg':function(_0x188971,_0x3d055c){return _0x188971(_0x3d055c);},'tQlPN':_0x65f60e(-0x34,-_0x3a89b9._0x1e330e),'GWWUD':function(_0x411012,_0x31f165){return _0x411012>_0x31f165;},'reHtZ':function(_0x8c1a1d,_0x218626){return _0x8c1a1d(_0x218626);}},_0x22541e=await _0xb9431[_0x65f60e(-0x40,-0x2e)](readStateFile,_0x530f34);if(!_0x22541e)return _0xb9431[_0xb1cafc(-0x91,-_0x3a89b9._0x276a0a)];if(!_0x22541e[_0x65f60e(0x31,-0x16)][_0xb50c8a])return _0x65f60e(_0x3a89b9._0x2583cf,0x45)+_0xb50c8a+_0xb1cafc(-0xf9,-_0x3a89b9._0x5f354e);const _0x104836=_0x22541e[_0xb1cafc(-0x77,-0x48)][_0xb50c8a];function _0x65f60e(_0x42db2b,_0x421f87){return _0x36720f(_0x42db2b- -_0x369de3._0x2c4624,_0x421f87);}const _0x31fe78={..._0x22541e[_0x65f60e(0x31,0x7c)]},_0x3d281d=_0x31fe78;delete _0x3d281d[_0xb50c8a];if(_0x104836[_0x65f60e(0x44,_0x3a89b9._0x203444)]&&_0x3d281d[_0x104836[_0xb1cafc(-_0x3a89b9._0x1d81c7,-_0x3a89b9._0xd108d0)]]){const _0x18f849=_0x3d281d[_0x104836['parentId']];_0x3d281d[_0x104836[_0xb1cafc(-_0x3a89b9._0x5b9127,-_0x3a89b9._0xd108d0)]]={..._0x18f849,'childIds':_0x18f849[_0x65f60e(-_0x3a89b9._0x5f28cf,0x20)][_0x65f60e(-0x63,-_0x3a89b9._0x44c430)](_0x117035=>_0x117035!==_0xb50c8a)};}const _0x39b9ba=Object['keys'](_0x3d281d),_0x30f10a=_0xb9431['GWWUD'](_0x39b9ba[_0xb1cafc(-_0x3a89b9._0x34df1d,-0x73)],0x3*0xa2b+-0x3d3*-0x1+-0x2254)?_0xb9431[_0xb1cafc(-0x3f,-_0x3a89b9._0x371928)](computeOverallPhase,_0x3d281d):_0xb1cafc(-_0x3a89b9._0x4f98f0,-0x83),_0x2bf7e9={..._0x22541e[_0xb1cafc(-0x77,-0x99)]};_0x2bf7e9[_0x65f60e(_0x3a89b9._0x19ebf3,-0x26)+'se']=_0x30f10a;const _0x567edf={};return _0x567edf['project']=_0x2bf7e9,_0x567edf[_0xb1cafc(-0x7d,-0x48)]=_0x3d281d,_0x567edf['machineSna'+_0xb1cafc(-_0x3a89b9._0x4ef723,-0x2c)]=_0x22541e[_0xb1cafc(-_0x3a89b9._0x1a8bf9,-_0x3a89b9._0x4baaba)+_0xb1cafc(-0x49,-0x2c)],await writeStateFile(_0x530f34,_0x567edf),'✅\x20Agent\x20已注'+_0x65f60e(0x42,_0x3a89b9._0x52ad04)+_0xb50c8a;}export async function showProgress(_0xd2a10d){const _0x3e1d23={_0x1f4ae4:0x277,_0x351fc1:0x543,_0x4e37ef:0x4e6,_0x50252c:0x4ac,_0x228bfb:0x4a9,_0x32ee07:0x2af,_0x5ee324:0x497,_0x7a3c8b:0x26b,_0x174654:0x286,_0x11c574:0x271,_0x1bfe61:0x4da,_0x5809fb:0x2b7,_0x47ba8f:0x246,_0x3373e7:0x22f,_0x256a56:0x1d5,_0xcc3b16:0x50c,_0x229dee:0x21c,_0x2bf8cb:0x1f4,_0x46b333:0x4f8,_0x522238:0x4e1,_0x5ba0a8:0x424,_0x2f6cc2:0x2a3,_0x11cdf0:0x4e2,_0x26dab3:0x519,_0x334705:0x44e,_0x1f772a:0x4b7,_0x27bc6a:0x268,_0x371b22:0x2b9,_0x3c9b03:0x3fc,_0x31fd00:0x255,_0x4d2943:0x2a9,_0x4551f1:0x4d9,_0x3d02b2:0x2ad,_0x5b7341:0x470,_0x239a10:0x2c2,_0x3647d0:0x2f4,_0xe3674e:0x2cd,_0x1199c0:0x462,_0x4d76eb:0x487,_0x15a2a3:0x4aa,_0x407d17:0x494,_0x227680:0x486,_0x281623:0x469,_0x1d9002:0x277,_0x4e41be:0x222,_0x39aecc:0x299,_0x357f37:0x49f,_0x468c2a:0x304,_0x530a84:0x27c,_0xa1e3d4:0x475,_0x3b0038:0x41a,_0x51bce4:0x474,_0x3106a3:0x4ab,_0x5f530f:0x4ee,_0x24a615:0x4fd,_0x191a26:0x542,_0x4514e8:0x457,_0xbf5fb5:0x455,_0x287768:0x4a1,_0x2b81c5:0x461,_0x42f2b5:0x44a,_0xc8de53:0x49d,_0xbd1198:0x279,_0x32cd9b:0x4be,_0x16618f:0x2c2,_0x43bc16:0x472,_0x89fe66:0x458,_0x3a7bc2:0x273,_0x396cad:0x240,_0x29290c:0x2cd,_0x2062e:0x4c5,_0x3846ea:0x4ae,_0x57f948:0x4a5,_0x2cf330:0x256},_0x346db3={_0x1cef6f:0x365},_0x16eb9b={_0x3df1ff:0xf},_0x4c069f={};_0x4c069f[_0x2e50bc(0x490,0x47c)]=function(_0x5ec4c1,_0x491744){return _0x5ec4c1+_0x491744;},_0x4c069f[_0x55d1af(_0x3e1d23._0x1f4ae4,0x241)]=_0x2e50bc(0x4fb,_0x3e1d23._0x351fc1),_0x4c069f[_0x2e50bc(_0x3e1d23._0x4e37ef,_0x3e1d23._0x50252c)]=function(_0x50d6dc,_0x1dd986){return _0x50d6dc-_0x1dd986;},_0x4c069f[_0x2e50bc(0x49a,_0x3e1d23._0x228bfb)]=function(_0x33f755,_0x4acf53){return _0x33f755>_0x4acf53;};function _0x2e50bc(_0x41ea29,_0xad0afd){return _0x36720f(_0x41ea29-_0x16eb9b._0x3df1ff,_0xad0afd);}_0x4c069f[_0x55d1af(_0x3e1d23._0x32ee07,0x2d1)]=_0x2e50bc(_0x3e1d23._0x5ee324,0x49a),_0x4c069f[_0x55d1af(_0x3e1d23._0x7a3c8b,_0x3e1d23._0x174654)]='\x20\x20\x20Agent\x20I'+_0x55d1af(_0x3e1d23._0x11c574,0x225)+_0x2e50bc(_0x3e1d23._0x1bfe61,0x4de)+'\x20\x20\x20\x20\x20\x20|\x20操作'+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x55d1af(_0x3e1d23._0x5809fb,0x2b2)+'工具',_0x4c069f[_0x55d1af(_0x3e1d23._0x47ba8f,0x240)]=function(_0x52dd25,_0x1b0f60){return _0x52dd25===_0x1b0f60;};function _0x55d1af(_0x24cb8d,_0x4fe57e){return _0x5b782a(_0x24cb8d-_0x346db3._0x1cef6f,_0x4fe57e);}_0x4c069f[_0x55d1af(_0x3e1d23._0x3373e7,_0x3e1d23._0x256a56)]=_0x2e50bc(0x4e3,_0x3e1d23._0xcc3b16),_0x4c069f[_0x55d1af(_0x3e1d23._0x229dee,_0x3e1d23._0x2bf8cb)]=_0x2e50bc(_0x3e1d23._0x46b333,_0x3e1d23._0x522238);const _0x6e0117=_0x4c069f,_0x47a576=await readStateFile(_0xd2a10d);if(!_0x47a576)return _0x2e50bc(0x47d,_0x3e1d23._0x5ba0a8)+_0x55d1af(_0x3e1d23._0x2f6cc2,0x286)+_0x2e50bc(0x4c7,0x495);const _0x5b4841=_0x47a576[_0x2e50bc(_0x3e1d23._0x11cdf0,_0x3e1d23._0x26dab3)],_0x3661c5=Object[_0x2e50bc(0x4d6,0x4a6)](_0x5b4841),_0x263099=_0x3661c5[_0x2e50bc(0x4b7,0x4a9)],_0x5cdac1=_0x3661c5[_0x2e50bc(_0x3e1d23._0x334705,0x42b)](_0x2f80e3=>_0x5b4841[_0x2f80e3]['phase']===_0x55d1af(0x287,0x2d2))[_0x2e50bc(_0x3e1d23._0x1f772a,0x49b)],_0x2533ff=_0x263099>-0x2489+0x1aff+0x4a*0x21?Math[_0x55d1af(_0x3e1d23._0x27bc6a,_0x3e1d23._0x371b22)](_0x5cdac1/_0x263099*(0x18b+0x15b0+0x16d7*-0x1)):0x1986+0x1532*-0x1+-0x115*0x4,_0x318735={};for(const _0x57fb39 of _0x3661c5){const _0x18ee98=_0x5b4841[_0x57fb39][_0x2e50bc(0x44d,_0x3e1d23._0x3c9b03)];_0x318735[_0x18ee98]=_0x6e0117[_0x55d1af(_0x3e1d23._0x31fd00,_0x3e1d23._0x4d2943)](_0x318735[_0x18ee98]??0x1*0x5e8+0x7*0x351+-0x429*0x7,0x1607+-0xb*0x11e+0x2*-0x4de);}const _0x44dc92=[];_0x44dc92[_0x2e50bc(0x4fd,0x4c8)](_0x2e50bc(_0x3e1d23._0x4551f1,0x523)+_0x47a576['project'][_0x2e50bc(0x45c,0x4b2)]),_0x44dc92[_0x55d1af(0x2c2,_0x3e1d23._0x3d02b2)](_0x2e50bc(_0x3e1d23._0x5b7341,0x495)+(PHASE_NAMES[_0x47a576['project']['currentPha'+'se']]??_0x47a576['project']['currentPha'+'se'])),_0x44dc92[_0x55d1af(_0x3e1d23._0x239a10,0x2f7)](_0x55d1af(0x2bc,_0x3e1d23._0x3647d0)+_0x47a576['version']),_0x44dc92[_0x55d1af(_0x3e1d23._0x239a10,_0x3e1d23._0xe3674e)](_0x2e50bc(_0x3e1d23._0x1199c0,0x427)+_0x47a576[_0x2e50bc(_0x3e1d23._0x4d76eb,_0x3e1d23._0x15a2a3)]),_0x44dc92['push'](_0x2e50bc(_0x3e1d23._0x407d17,_0x3e1d23._0x227680)+_0x2533ff+_0x2e50bc(0x4a1,_0x3e1d23._0x281623)+_0x5cdac1+'/'+_0x263099+_0x55d1af(0x2a0,0x28b)),_0x44dc92[_0x55d1af(0x2c2,0x2b1)](''),_0x44dc92['push'](_0x6e0117[_0x55d1af(_0x3e1d23._0x1d9002,_0x3e1d23._0x4e41be)]);for(const [_0x28db54,_0x155522]of Object['entries'](_0x318735)){const _0x368c0c=PHASE_NAMES[_0x28db54]??_0x28db54,_0x2fffe7='█'[_0x55d1af(0x299,_0x3e1d23._0x2f6cc2)](_0x155522)+'░'[_0x55d1af(_0x3e1d23._0x39aecc,0x275)](Math['max'](-0x1f90+-0x1cf*0x1+-0x215f*-0x1,_0x6e0117[_0x2e50bc(_0x3e1d23._0x4e37ef,_0x3e1d23._0x357f37)](_0x263099,_0x155522)));_0x44dc92[_0x55d1af(_0x3e1d23._0x239a10,_0x3e1d23._0x468c2a)](_0x55d1af(0x258,0x255)+_0x368c0c[_0x2e50bc(0x4ca,0x4f0)](-0x2*-0x493+-0xf5f+0x647)+'\x20'+_0x2fffe7+'\x20'+_0x155522);}_0x44dc92['push']('');if(_0x6e0117[_0x2e50bc(0x49a,0x4c7)](_0x3661c5[_0x55d1af(_0x3e1d23._0x530a84,0x229)],-0x1*-0x1089+0x194*-0x14+0xf07)){if(_0x6e0117[_0x55d1af(0x2af,0x2f1)]===_0x2e50bc(0x47e,_0x3e1d23._0xa1e3d4))_0x76104c['push'](_0x2e50bc(0x451,_0x3e1d23._0x3b0038)+_0x4491f7+_0x2e50bc(_0x3e1d23._0x51bce4,_0x3e1d23._0x3106a3));else{_0x44dc92['push'](_0x2e50bc(_0x3e1d23._0x5f530f,0x544)+'\x20详情:'),_0x44dc92[_0x55d1af(_0x3e1d23._0x239a10,0x2b4)](_0x6e0117[_0x2e50bc(0x4a6,0x4da)]),_0x44dc92[_0x2e50bc(_0x3e1d23._0x24a615,_0x3e1d23._0x191a26)](_0x2e50bc(0x472,0x457)+'-'[_0x2e50bc(0x4d4,0x4d7)](0x2*0xc75+0x255+0xc5*-0x23));for(const _0x3fc0e8 of _0x3661c5){if(_0x6e0117['ZGVkr'](_0x6e0117[_0x2e50bc(0x46a,0x474)],_0x6e0117[_0x2e50bc(_0x3e1d23._0x4514e8,_0x3e1d23._0xbf5fb5)]))return _0x2e50bc(0x4f0,_0x3e1d23._0x287768)+_0x4eb415+_0x2e50bc(0x467,_0x3e1d23._0x2b81c5);else{const _0x444f47=_0x5b4841[_0x3fc0e8],_0x59a5f6=PHASE_NAMES[_0x444f47[_0x2e50bc(0x44d,_0x3e1d23._0x42f2b5)]]??_0x444f47[_0x2e50bc(0x44d,_0x3e1d23._0xc8de53)],_0xc0ec89=_0x444f47[_0x2e50bc(0x47f,0x42a)+_0x55d1af(0x278,_0x3e1d23._0xbd1198)]||'-',_0x5a7d39=_0x444f47[_0x2e50bc(0x4be,_0x3e1d23._0x32cd9b)+'ll']||'-';_0x44dc92[_0x55d1af(_0x3e1d23._0x16618f,0x30f)](_0x2e50bc(_0x3e1d23._0x43bc16,_0x3e1d23._0x89fe66)+_0x3fc0e8['padEnd'](0x1134*0x1+0x19b0+-0x2ad2)+_0x55d1af(_0x3e1d23._0x3a7bc2,_0x3e1d23._0x396cad)+_0x59a5f6['padEnd'](-0x1924*0x1+-0x21ea+0x3b1c)+_0x55d1af(0x273,_0x3e1d23._0x29290c)+_0xc0ec89[_0x2e50bc(0x4ca,_0x3e1d23._0x2062e)](0xb3f+0x24f6+-0x3020)+_0x2e50bc(_0x3e1d23._0x3846ea,_0x3e1d23._0x57f948)+_0x5a7d39);}}}}return _0x44dc92[_0x55d1af(0x222,_0x3e1d23._0x2cf330)]('\x0a');}function _0x36720f(_0x4e6fa1,_0x1795e5){const _0x3387e1={_0x3db05f:0x34b};return _0x5c2b(_0x4e6fa1-_0x3387e1._0x3db05f,_0x1795e5);}export async function quickTask(_0x5542fd,_0x5b0ee8){const _0x27ddaa={_0x178134:0x38b,_0x514c32:0x3be,_0x3d80d2:0x3e0,_0x47b5ce:0x43b,_0x23878f:0x37c,_0x3e1553:0x398,_0xe3d2c6:0x399,_0x41a163:0xc4,_0x5c88cc:0x417,_0x53e2bf:0x3ed,_0x1145e2:0x3aa,_0x36ed0a:0x456,_0x4fd3e7:0x41d,_0x22a22a:0x23,_0x41d4ea:0x3d2,_0x3e8ce7:0x7a,_0x45803d:0xce,_0x369634:0xad,_0x3fe34f:0x7e},_0x6ac90e={_0x30b253:0x511};function _0x7a434d(_0x4ab630,_0x517ffb){return _0x36720f(_0x517ffb- -0xd1,_0x4ab630);}const _0x285c41={'lHRpn':function(_0x4f9673,_0x7a1295){return _0x4f9673!==_0x7a1295;},'pgTck':function(_0x519c67,_0xe7b371,_0x1e3a2e){return _0x519c67(_0xe7b371,_0x1e3a2e);},'KupTL':'quick-task','zCBHl':'quick'},_0x29e3d6=await readStateFile(_0x5542fd);if(!_0x29e3d6){if(_0x285c41[_0x7a434d(_0x27ddaa._0x178134,_0x27ddaa._0x514c32)](_0x7a434d(_0x27ddaa._0x3d80d2,0x38b),'SLsOe')){const _0x4c3146=_0x285c41['pgTck'](resolve,_0x5542fd,'..');if(!existsSync(_0x4c3146)){const _0x34ce9b={};_0x34ce9b[_0x7a434d(_0x27ddaa._0x47b5ce,0x3f8)]=!![],mkdirSync(_0x4c3146,_0x34ce9b);}}else return'['+_0x172c63+']\x20已完成全部阶段';}const _0xf2e35c=_0x29e3d6?.['project'][_0x7a434d(_0x27ddaa._0x23878f,0x37c)]??_0x285c41[_0x7a434d(_0x27ddaa._0x3e1553,0x39a)],_0x4cab90=_0x29e3d6?Object['keys'](_0x29e3d6['agents'])[0x1*0x1fc3+0xc99+-0xb17*0x4]??generateAgentId():generateAgentId(),_0x2d94ce={'agentId':_0x4cab90,'parentId':null,'childIds':[],'phase':_0x7a434d(0x366,0x39c),'currentOperation':_0x5b0ee8[_0x7a434d(0x334,0x38c)](-0x30d*-0x2+0x517+-0x23d*0x5,0x18b8+-0x1f02+-0x39*-0x1e),'currentSkill':_0x285c41[_0x7a434d(0x344,_0x27ddaa._0xe3d2c6)]},_0x462a6b={};_0x462a6b[_0x12b657(-0xcc,-_0x27ddaa._0x41a163)]=_0xf2e35c,_0x462a6b[_0x7a434d(_0x27ddaa._0x5c88cc,_0x27ddaa._0x53e2bf)+'se']='quick';const _0x58c001={};_0x58c001[_0x4cab90]=_0x2d94ce;const _0x180ce5={};_0x180ce5[_0x7a434d(0x406,0x3b1)]=_0x462a6b,_0x180ce5[_0x12b657(-0x1c,-0x3e)]=_0x58c001,_0x180ce5['machineSna'+_0x7a434d(0x45e,0x41e)]=null,await _0x285c41[_0x7a434d(0x3ce,_0x27ddaa._0x1145e2)](writeStateFile,_0x5542fd,_0x180ce5);const _0x3466a5=[];_0x3466a5['push'](_0x7a434d(0x370,0x38e));function _0x12b657(_0x160f72,_0x325281){return _0x36720f(_0x325281- -_0x6ac90e._0x30b253,_0x160f72);}return _0x3466a5[_0x7a434d(_0x27ddaa._0x36ed0a,_0x27ddaa._0x4fd3e7)]('\x20\x20\x20项目:\x20'+_0xf2e35c),_0x3466a5[_0x12b657(-0x5d,-_0x27ddaa._0x22a22a)](_0x7a434d(_0x27ddaa._0x41d4ea,0x3e9)+_0x5b0ee8),_0x3466a5[_0x12b657(-_0x27ddaa._0x3e8ce7,-0x23)](_0x12b657(-0x11e,-_0x27ddaa._0x45803d)+_0x4cab90),_0x3466a5['push']('\x20\x20\x20提示:\x20快速任'+'务不走完整\x20Pipe'+_0x12b657(-_0x27ddaa._0x369634,-_0x27ddaa._0x3fe34f)),_0x3466a5[_0x7a434d(0x381,0x37d)]('\x0a');}
|
package/dist/plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x223415,_0x7f90e4){const _0x1f5ac5={_0x4afb3a:0x164,_0x47a519:0x177,_0x447bf4:0x55b,_0x46b202:0x116,_0xa49817:0x15b,_0xa86c8:0x1cf,_0x1fd81b:0x1a1,_0x4a7e99:0x125,_0x1a2503:0x191,_0x3dc9b5:0x1c9,_0x456fdf:0x197,_0x25462f:0x1ac,_0x5310ec:0x1da,_0x4b0728:0x1bf,_0x527f9e:0x1b9,_0x53490e:0x1b5,_0x8a8ce:0x5b1},_0x53e784={_0x2a481f:0x33f},_0xc72262={_0x50762c:0x3a7};function _0x46c6d0(_0x4110ca,_0x180021){return _0x5c96(_0x180021- -_0xc72262._0x50762c,_0x4110ca);}const _0x547583=_0x223415();function _0x3b1a76(_0x27b7dd,_0x19bbef){return _0x5c96(_0x27b7dd-_0x53e784._0x2a481f,_0x19bbef);}while(!![]){try{const _0x22f58c=parseInt(_0x46c6d0(-_0x1f5ac5._0x4afb3a,-_0x1f5ac5._0x47a519))/(-0x1096+-0x38e+0x1425)+-parseInt(_0x3b1a76(_0x1f5ac5._0x447bf4,0x52b))/(-0x2430+-0x2*0xb8d+0xf*0x3f4)*(parseInt(_0x46c6d0(-_0x1f5ac5._0x46b202,-_0x1f5ac5._0xa49817))/(0xa4f+-0x982*0x4+0x163*0x14))+-parseInt(_0x46c6d0(-_0x1f5ac5._0xa86c8,-_0x1f5ac5._0x1fd81b))/(-0xabf+0x5*-0x281+0x1748)+-parseInt(_0x46c6d0(-_0x1f5ac5._0x4a7e99,-0x161))/(0x1656+0x110+-0x1761)*(-parseInt(_0x46c6d0(-0x18a,-_0x1f5ac5._0x1a2503))/(0x217d+0x1*-0x767+0x4*-0x684))+parseInt(_0x46c6d0(-_0x1f5ac5._0x3dc9b5,-_0x1f5ac5._0x456fdf))/(0xef9+-0x176d+0x87b)*(parseInt(_0x46c6d0(-_0x1f5ac5._0x25462f,-_0x1f5ac5._0x5310ec))/(0x1a88+0x425*0x4+-0x2b14))+-parseInt(_0x46c6d0(-0x198,-_0x1f5ac5._0x4b0728))/(-0x1073*0x2+-0x1384+0x3473)*(parseInt(_0x46c6d0(-0x1c7,-_0x1f5ac5._0x527f9e))/(0x1bd7*-0x1+-0xd01*-0x3+-0x1*0xb22))+parseInt(_0x46c6d0(-_0x1f5ac5._0x53490e,-0x1b1))/(-0x1ef2+0x496*0x7+-0x13*0xf)*(parseInt(_0x3b1a76(0x58e,_0x1f5ac5._0x8a8ce))/(0x2*-0xf08+-0x3*-0x7ed+0x1*0x655));if(_0x22f58c===_0x7f90e4)break;else _0x547583['push'](_0x547583['shift']());}catch(_0x46b2a2){_0x547583['push'](_0x547583['shift']());}}}(_0x5988,0xa3*0x112+-0x5282d+0x24*0x36e3));function _0x5988(){const _0x5790db=['C3rYAw5N','54I2iefNzw50ieLe','ndq4mtbiCfDfqNm','s0nOzMW','ioAZQowgJoIhQUw3SEEAHoEkTUAaGEoaGG','CgHHC2u','qwDLBNqGsuq','BwvZC2fNzq','zNfhzfK','iowKSEI0PtOG','mJjjAMP2sKy','DcdMRApLNkJLGzRKU4dKUyJJGii','qvHtyuy','5B2t5yMn5l2/55sO55Qe5BEL5yw3l+AkGoIdVq','zgvYzwDPC3rLCG','55Qe54Q25Ocb6kgO5Qc844cc','77Yi5y+V6ycj77Yj','ywDLBNrFAwq','rNrQBMO','DK9nz2K','wwHrseW','5zcn56EW77Yi5AAciMv4CgXV','vhbcuKC','yuLnt24','5zcR5A6m5OIq5BQM55M+5yIg5Q+u44cb6zI25Q61','AgnuBuC','nda4mdq0wev2AxbM','DxbKyxrLt3bLCG','4P2mioAZQoMuGcbbz2vUDa','CMvNAxn0zxjbzW','BNtJGiik56E76zMKiefNzq','ChmG6Ag555UU44cc5yID5AEl5yYwia','5OIq55QeiefNzw5077Yj5O6O','5yIg5BId5zU+44cbqwDLBNqG','zgvZy3jPyMu','BMDPzuq','mZvgqLj0ANO','AhHmCvu','wen4zu0','uKvTtNu','lNnWzwnVChmVCW','zw5077Yi5OIw56YS5lIa5lIQ5PYQ5A6m','nJzUC3jrvvO','44cb5OMa5PYjiefNzw50ia','wvzhsKO','zgLYzwn0B3j5','C2TPBgW','DKr0A1e','mtqZmZy4Auf2uhHh','u1jhzhi','4P2mioAZQowgJcbbz2vUDa','ieLe77Yi5lIn5OYh5A6A5yIz6iEQ5yQO','y2HPBgrjzhpJGii','BNqG6k6W5B2v77Ym5zcm5PE25PU05PAW','BMv3uhjVAMvJDa','z2v0u3rHDhvZ','ioEkTUAaGEEZU+E7N+oaGGRNLkJKUO7LUBy','qwDLBNq','z3HorNy','77Ym55U05O6L6l+B5ywL5OMN6kgm6zI25Q6144cc','CvjyzxK','5PE277Ym5Q+p5lIQigfNzw50','uvf5rfa','sgXSr00','CKrJseO','B3b0Aw9UywW','5yIB5BU65yID5AEliefNzw50','s0HxqKK','mtCYntu0zNHkthHv','B05erKC','4P2mioAoQoI/M+MyTUAUTEwKSEI0PtOG','6kAb5O6O6l+B55QeiefNzw50','6l+B5yIW5lIl5lIa5lIQ6zI25Q6144cccUMyTG','yxrPB24','lNnWzwnVChm','Dgf0zs5QC29U77Ym','DgfZAW','ugPSD2i','ioEAHow9K+wjJEAtJEs9NoApJ+I/SowsJos9VW','ieLe','ioMyTUAUTEoaGUwWHUAmH+wUMIbbzW','4P2mioIoT+wpLUEkTUAaGEwKSEI0PtOG','ywr2yw5JzvbOyq','y3zJrMO','tNv6Avu','CgfYzw50x2LK','Bu1ysvu','tuHeC1a','u0LrzNe','4P2mioABToAwSoAtJEs9NowKSEI0PtOG','otC0nZboAe9Rz3O','C2HVD1bYB2DYzq','v01WrNK','5lU75yQH44cc','54Q25Ocb57o757UF5RoO6zsaiefNzq','5lU75yQH5O+p6l+W','mtjfyvrOD1m','swPzsue','5lUoihnWzwnVChmG','mZaZntyXnLnmuuf0sG','CK5ovwW','5B+R6ycF5lU75yQH5QIH5BYp44cc6lEZ6l+h5A6m','z3LqB1C','CxvPy2TuyxnR','5PU05PAW5OYh5A6AiefNzw50','CKTLD2O','zw50','mJa3mZeYz09yuLP3','6i635y+wihnWzwnVChm','6kAb5RoO6zsa55QeiefNzw50','D3HtufG','5Pw0ifbPCgvSAw5L','54I2iefNzw50ioEAHca','C2nOzw1H','B052y0y','zxrLza','5y+rigfNzw50ioE8LUAoKG','rhfmwLq','5RoO5yAm5PAW55QeiefNzw50','sgLlAuq','6Ag555UU5zcn56EW','BKjAC00','zunhqw4','cUMaGUEuQos6JUwWJ+wEI+oaGEAyJUEHRUEAHa','C3rHDguUANnVBG','zgXL77Yj','surMCxq','5yIB5BU65PAW55QeihnWzwnV','DKvRs2S','5B2t5yMn5Pon5l2C5O+p6l+W77Yi5AAciUwiHG','5P6q6zYa5Rgc5PAh5QgJiU+8Iq','swnnDLy','B3bLCMf0Aw9U','5yID5AEl6zI25Q6177Yi6BUy6k6KoIbP','odq2sernrezt','C3bLy29WCW','5PI+56s6ihnWzwnVChm','6AQm6k+biokgKIbJB21WBa'];_0x5988=function(){return _0x5790db;};return _0x5988();}import{tool}from'@opencode-ai/plugin';import{resolve}from'node:path';import*as _0x30e2ab from'./plugin-engine.js';import{createAnalyzeRequirementsTool}from'./requirement-analysis/tools/analyze-requirements.js';function getStateFilePath(_0x2c6ff3){const _0x487c1e={_0x5a08ca:0x19e,_0x51c87f:0x1af,_0xb0433d:0x534},_0x15f48f={_0x210a7a:0x2e2};function _0x39359d(_0x1d58e1,_0x3527e0){return _0x5c96(_0x1d58e1- -0xb4,_0x3527e0);}function _0x35c128(_0x2664c6,_0x2d5c37){return _0x5c96(_0x2664c6-_0x15f48f._0x210a7a,_0x2d5c37);}const _0x18757b={};_0x18757b[_0x39359d(_0x487c1e._0x5a08ca,_0x487c1e._0x51c87f)]='.specops';const _0x59a527=_0x18757b;return resolve(_0x2c6ff3,_0x59a527[_0x35c128(_0x487c1e._0xb0433d,0x572)],'state.json');}function createStatusTool(_0x1ab2c6){const _0x5c2bb3={_0x1a6191:0xc,_0x10695c:0x5a,_0x519bb1:0x116},_0x532d1a={_0x22d34c:0x63,_0x1a32bd:0x8a,_0x649a8d:0x182},_0x65ac4c={_0x3af62e:0x19b},_0x33e92c={_0x2593df:0xe5},_0x49c605={'sVtNP':function(_0x5707b8,_0xeed626){return _0x5707b8(_0xeed626);}};function _0x1b59c8(_0x4f0907,_0x468ece){return _0x5c96(_0x468ece- -_0x33e92c._0x2593df,_0x4f0907);}const _0x4b01d1=_0x49c605['sVtNP'](getStateFilePath,_0x1ab2c6);function _0xd36ec6(_0x2841c0,_0x128871){return _0x5c96(_0x128871- -_0x65ac4c._0x3af62e,_0x2841c0);}return tool({'description':_0xd36ec6(-_0x5c2bb3._0x1a6191,0x33)+'\x20项目当前状态。\x0a显'+'示项目名称、当前阶段'+_0xd36ec6(_0x5c2bb3._0x10695c,0x7c)+_0x1b59c8(0x139,_0x5c2bb3._0x519bb1),'args':{},async 'execute'(){function _0x3cbf6d(_0x2cd6be,_0x1bfce3){return _0x1b59c8(_0x2cd6be,_0x1bfce3-0x74);}function _0x50fe94(_0x2ca03d,_0x44a8ed){return _0x1b59c8(_0x2ca03d,_0x44a8ed- -0x1e2);}try{return await _0x30e2ab[_0x50fe94(-_0x532d1a._0x22d34c,-0xa4)](_0x4b01d1);}catch(_0x214f14){return _0x50fe94(-0xa0,-_0x532d1a._0x1a32bd)+(_0x214f14 instanceof Error?_0x214f14[_0x3cbf6d(0x141,_0x532d1a._0x649a8d)]:String(_0x214f14));}}});}function createAdvanceTool(_0x302138){const _0x12e60c={_0x521eca:0x93,_0x4abc2f:0x68,_0x4286b2:0x1d,_0x1f9c80:0xc,_0x43695c:0x3a,_0x494002:0x3,_0x529b21:0x5,_0x5be903:0x2b,_0x44d4d6:0xb0,_0x14640f:0x62,_0xfe044f:0x1d,_0x4ac223:0x6e,_0x303fae:0x1a,_0x3fb84d:0x19},_0xc2a358={_0x51bfbe:0x5af,_0x846ebf:0x622,_0xf7c998:0x371,_0x159f3a:0x3ae,_0x55a29b:0x62e,_0x1c40b6:0x34d,_0x3b2d37:0x5f6,_0x4ea3fe:0x61d,_0x1c212b:0x5dc,_0x40fcff:0x5b7,_0x356ddb:0x5d2},_0x310147={};function _0x7f94cb(_0x100df4,_0x56b0e2){return _0x5c96(_0x100df4- -0x29b,_0x56b0e2);}_0x310147[_0x44b021(-0x39,-0x6c)]=function(_0x58fdcc,_0x29cc18){return _0x58fdcc!==_0x29cc18;},_0x310147[_0x7f94cb(-0x99,-_0x12e60c._0x521eca)]='YhQHL';function _0x44b021(_0x26557f,_0x173a37){return _0x5c96(_0x26557f- -0x209,_0x173a37);}_0x310147['KChfl']=_0x7f94cb(-_0x12e60c._0x4abc2f,-0xa2)+_0x44b021(0x16,-0x26)+'选择第一个未完成的)';const _0x162484=_0x310147,_0x5098c6=getStateFilePath(_0x302138);return tool({'description':'推进\x20specops'+_0x7f94cb(-0x5f,-_0x12e60c._0x4286b2)+_0x44b021(_0x12e60c._0x1f9c80,_0x12e60c._0x43695c)+_0x44b021(_0x12e60c._0x494002,-_0x12e60c._0x529b21)+_0x44b021(_0x12e60c._0x5be903,0xc)+'段序列:\x20讨论\x20→\x20'+'规划\x20→\x20执行\x20→\x20'+_0x7f94cb(-_0x12e60c._0x44d4d6,-0xd6)+_0x44b021(-0x34,-_0x12e60c._0x14640f),'args':{'agent_id':tool['schema'][_0x44b021(-_0x12e60c._0xfe044f,-0xa)]()[_0x7f94cb(-_0x12e60c._0x4ac223,-0x93)]()[_0x7f94cb(-0x8d,-0x9d)](_0x162484[_0x44b021(-_0x12e60c._0x303fae,-_0x12e60c._0x3fb84d)])},async 'execute'(_0x24a62f){const _0x218bbc={_0x2bb43c:0x5e8};function _0x1aa719(_0x13478d,_0x3e6922){return _0x44b021(_0x3e6922-_0x218bbc._0x2bb43c,_0x13478d);}function _0xb4077f(_0x47668e,_0x518a51){return _0x7f94cb(_0x518a51-0x40a,_0x47668e);}const _0x38be39={'cvcFj':function(_0x3c7014,_0x1d97cf,_0x3f2f06,_0x45b81a){return _0x3c7014(_0x1d97cf,_0x3f2f06,_0x45b81a);}};if(_0x162484[_0x1aa719(0x57e,_0xc2a358._0x51bfbe)](_0x1aa719(_0xc2a358._0x846ebf,0x5df),_0x162484[_0xb4077f(0x38c,_0xc2a358._0xf7c998)]))return _0x38be39[_0xb4077f(0x36f,_0xc2a358._0x159f3a)](_0x24f67c,_0x507d76,_0x1aa719(_0xc2a358._0x55a29b,0x615),_0xb4077f(0x347,_0xc2a358._0x1c40b6));else try{return await _0x30e2ab[_0x1aa719(_0xc2a358._0x3b2d37,_0xc2a358._0x4ea3fe)+'se'](_0x5098c6,_0x24a62f[_0x1aa719(0x5f4,_0xc2a358._0x1c212b)]);}catch(_0x1576a9){return _0xb4077f(0x3d2,0x3a1)+(_0x1576a9 instanceof Error?_0x1576a9[_0x1aa719(_0xc2a358._0x40fcff,_0xc2a358._0x356ddb)]:String(_0x1576a9));}}});}function createNewProjectTool(_0x179ee1){const _0x2ed50d={_0x30b05a:0x3b9,_0x188af6:0x34a,_0x434f61:0x592,_0xbe9349:0x5ab,_0x2a5f83:0x380,_0xe68712:0x34c,_0x2dca88:0x604,_0x413daf:0x5b6,_0x1c8066:0x37a,_0x12bb76:0x56b,_0x21cbb7:0x595},_0x19bb5d={_0x390fcb:0x1ef},_0x4aed3a={_0x1a9ef2:0xc2,_0x53e6fb:0xde},_0xd46aad={_0x31accd:0x24c},_0x6ef6fe={_0x4d2b19:0x55},_0xee6ece={'QQyDP':function(_0x1e680f,_0x2802b3){return _0x1e680f(_0x2802b3);},'HiKiD':function(_0x399230,_0x431e62){return _0x399230(_0x431e62);},'Pjlwb':_0x2acc52(_0x2ed50d._0x30b05a,0x3db),'rKewj':_0x2acc52(0x346,_0x2ed50d._0x188af6)};function _0x2acc52(_0x2f8c44,_0x45b0f8){return _0x5c96(_0x2f8c44-0x16c,_0x45b0f8);}function _0x2031c4(_0x3aea65,_0x3739c3){return _0x5c96(_0x3739c3-0x3ca,_0x3aea65);}const _0x46e4f2=getStateFilePath(_0x179ee1);return tool({'description':_0x2031c4(_0x2ed50d._0x434f61,_0x2ed50d._0xbe9349)+_0x2acc52(0x377,0x359)+_0x2acc52(_0x2ed50d._0x2a5f83,_0x2ed50d._0xe68712)+_0x2acc52(0x3a3,0x399)+_0x2031c4(_0x2ed50d._0x2dca88,0x5f8)+'。','args':{'project_name':tool['schema'][_0x2031c4(0x5b6,_0x2ed50d._0x413daf)]()[_0x2acc52(_0x2ed50d._0x1c8066,0x3af)](_0xee6ece[_0x2031c4(_0x2ed50d._0x12bb76,_0x2ed50d._0x21cbb7)])},async 'execute'(_0x397478){function _0x2806e4(_0x2ba34d,_0xb59a00){return _0x2acc52(_0x2ba34d- -_0x6ef6fe._0x4d2b19,_0xb59a00);}const _0x38b6a0={'NtYUn':function(_0x5eba2f,_0x5a8465){function _0x206acb(_0x53ad1a,_0x4b883e){return _0x5c96(_0x4b883e- -0x2cd,_0x53ad1a);}return _0xee6ece[_0x206acb(-0xd9,-0xa3)](_0x5eba2f,_0x5a8465);},'yiEAB':function(_0x1f5b9a,_0x2a4bb4){function _0x16923f(_0x49a626,_0x15f131){return _0x5c96(_0x15f131-0x73,_0x49a626);}return _0xee6ece[_0x16923f(0x21b,_0xd46aad._0x31accd)](_0x1f5b9a,_0x2a4bb4);},'ngieD':function(_0x34a452,_0x1de1a0){return _0xee6ece['HiKiD'](_0x34a452,_0x1de1a0);},'BDmkZ':function(_0x796f53,_0x49f5e3){function _0x55a458(_0x3169dd,_0x3ffbec){return _0x5c96(_0x3169dd- -0x2ec,_0x3ffbec);}return _0xee6ece[_0x55a458(-_0x4aed3a._0x1a9ef2,-_0x4aed3a._0x53e6fb)](_0x796f53,_0x49f5e3);}};function _0x24683c(_0x4416b9,_0x320069){return _0x2acc52(_0x320069- -_0x19bb5d._0x390fcb,_0x4416b9);}try{return await _0x30e2ab[_0x24683c(0x1a2,0x19f)](_0x46e4f2,_0x397478['project_na'+'me']);}catch(_0xca2e3d){if(_0xee6ece[_0x2806e4(0x350,0x37b)]===_0x24683c(0x19a,0x18f)){const _0x1b09b2=_0x544188[_0x2806e4(0x330,0x2f0)];return{'name':_0x24683c(0x141,0x166),'tool':{'specops_status':_0x38b6a0['NtYUn'](_0x523b80,_0x1b09b2),'specops_advance':_0x5c1fdd(_0x1b09b2),'specops_new_project':_0x38b6a0['yiEAB'](_0xfd7fc,_0x1b09b2),'specops_update_operation':_0x38b6a0['yiEAB'](_0xa23809,_0x1b09b2),'specops_register_agent':_0xc3e0ed(_0x1b09b2),'specops_deregister_agent':_0x38b6a0[_0x2806e4(0x326,0x341)](_0x20b4ef,_0x1b09b2),'specops_progress':_0x38b6a0['BDmkZ'](_0x555312,_0x1b09b2),'specops_quick':_0x1b4704(_0x1b09b2),'specops_analyze_requirements':_0x5aa443(_0x1b09b2)},'event':async _0x12e021=>{}};}else return'❌\x20创建项目失败:\x20'+(_0xca2e3d instanceof Error?_0xca2e3d['message']:_0xee6ece['QQyDP'](String,_0xca2e3d));}}});}function _0x5c96(_0x2f3d17,_0x2175ec){_0x2f3d17=_0x2f3d17-(0x220f*0x1+-0x3*0xb69+0x1f7);const _0x4429d8=_0x5988();let _0x337263=_0x4429d8[_0x2f3d17];if(_0x5c96['JObrbg']===undefined){var _0x106dd5=function(_0x5a7ae5){const _0x1d6bd6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xcdc8c3='',_0x439099='';for(let _0x162dde=0xb35+-0x2531+-0x2*-0xcfe,_0x5349b9,_0x3b1a16,_0x544188=0x1ae0+-0x1bc0+-0x1c*-0x8;_0x3b1a16=_0x5a7ae5['charAt'](_0x544188++);~_0x3b1a16&&(_0x5349b9=_0x162dde%(-0xc04+-0xa95+0x169d)?_0x5349b9*(0x162b+0xc4c*-0x1+-0x99f)+_0x3b1a16:_0x3b1a16,_0x162dde++%(0x1af3+-0x1*-0xaa+0x933*-0x3))?_0xcdc8c3+=String['fromCharCode'](0x46*-0x8b+0x5*0xb3+0xa*0x38d&_0x5349b9>>(-(-0x20a6+-0x3*0x1+-0x20ab*-0x1)*_0x162dde&0x97a*0x3+0xc95+-0x28fd)):-0x14f7+-0x1*0x2347+0x2e*0x139){_0x3b1a16=_0x1d6bd6['indexOf'](_0x3b1a16);}for(let _0x523b80=-0x11*0x13d+0x265a+-0x114d,_0x5c1fdd=_0xcdc8c3['length'];_0x523b80<_0x5c1fdd;_0x523b80++){_0x439099+='%'+('00'+_0xcdc8c3['charCodeAt'](_0x523b80)['toString'](0x118f+-0xa*0x52+-0xe4b))['slice'](-(-0x7*0x1bb+0x169e+-0xa7f));}return decodeURIComponent(_0x439099);};_0x5c96['sHDTCP']=_0x106dd5,_0x5c96['NrvPTi']={},_0x5c96['JObrbg']=!![];}const _0x3c434b=_0x4429d8[-0xf3b+0x112a*-0x1+0x2065],_0x2fb4c7=_0x2f3d17+_0x3c434b,_0x239e44=_0x5c96['NrvPTi'][_0x2fb4c7];return!_0x239e44?(_0x337263=_0x5c96['sHDTCP'](_0x337263),_0x5c96['NrvPTi'][_0x2fb4c7]=_0x337263):_0x337263=_0x239e44,_0x337263;}function createUpdateOperationTool(_0x42760e){const _0x216df3={_0x1bb751:0x42,_0x3c6a35:0x10,_0x42974d:0x4df,_0x149c43:0x13,_0x5bb6d2:0x40,_0x31f9c5:0x448,_0x185615:0x36,_0x19da2d:0x2a,_0x489e95:0x48f,_0x1626d6:0x7,_0x2f94f7:0x2c,_0x2f9aab:0x57,_0xbae169:0x4ae,_0x33d63e:0x492,_0xaf8f5d:0x37,_0x21a688:0x48b,_0x3ae436:0x15},_0x3bccf7={_0x512a91:0x335,_0x106144:0x380,_0x407a48:0x36e,_0xbd4885:0x387,_0x5c0b20:0x3c4,_0x4ade3f:0x348,_0x315490:0x38c,_0x5c7875:0x386,_0x3f67db:0x369,_0x80013:0x557,_0x239603:0x540,_0xdccafd:0x574,_0x3f59d8:0x39a,_0x962485:0x354,_0x3ad41f:0x39d,_0x21d518:0x5ad,_0x242ea4:0x348,_0x4f1d0f:0x348,_0x17321a:0x59c,_0x479d95:0x347},_0x38d11e={_0x2b235f:0x14b};function _0x3191a5(_0x3bb061,_0xdaa671){return _0x5c96(_0xdaa671-0x2a0,_0x3bb061);}function _0x2a257a(_0x5ed6be,_0x5d3bb8){return _0x5c96(_0x5d3bb8- -0x223,_0x5ed6be);}const _0x2679d9={'IDfqt':_0x2a257a(-_0x216df3._0x1bb751,-_0x216df3._0x3c6a35),'hxLqU':function(_0x54069c,_0x5cfc41){return _0x54069c===_0x5cfc41;},'oNDFG':_0x3191a5(_0x216df3._0x42974d,0x4e0),'KHWBI':'pqLUK','aCdCz':function(_0xc8aec4,_0x5dc499){return _0xc8aec4(_0x5dc499);},'mIpXB':_0x2a257a(-_0x216df3._0x149c43,-_0x216df3._0x5bb6d2)+_0x3191a5(_0x216df3._0x31f9c5,0x484),'wDtuT':_0x2a257a(-_0x216df3._0x185615,-_0x216df3._0x19da2d)+_0x3191a5(_0x216df3._0x489e95,0x4a1)+'rer\x22)'},_0x33779e=_0x2679d9['aCdCz'](getStateFilePath,_0x42760e);return tool({'description':_0x2a257a(_0x216df3._0x1626d6,0x31)+_0x2a257a(-_0x216df3._0x2f94f7,0x17)+'用的工具/技能。\x0a用'+'于实时追踪\x20Agen'+_0x2a257a(-0x67,-_0x216df3._0x2f94f7),'args':{'agent_id':tool[_0x2a257a(-_0x216df3._0x2f9aab,-0x50)]['string']()[_0x3191a5(0x46d,_0x216df3._0xbae169)](_0x3191a5(0x4cd,_0x216df3._0x33d63e)),'operation':tool[_0x2a257a(-0x77,-0x50)][_0x2a257a(-0xf,-_0x216df3._0xaf8f5d)]()[_0x3191a5(_0x216df3._0x21a688,0x4ae)](_0x2679d9['mIpXB']),'skill':tool[_0x3191a5(0x4b1,0x473)][_0x2a257a(-0x19,-_0x216df3._0xaf8f5d)]()[_0x2a257a(-0x53,-_0x216df3._0x3ae436)](_0x2679d9['wDtuT'])},async 'execute'(_0x1dcf4d){const _0x18b761={'mMXIU':function(_0x37d14c,_0x2ef851){return _0x37d14c(_0x2ef851);}};function _0x3d2c02(_0x9dccbd,_0x560920){return _0x3191a5(_0x560920,_0x9dccbd- -_0x38d11e._0x2b235f);}function _0x15ddf1(_0x1b6374,_0xd760bd){return _0x2a257a(_0xd760bd,_0x1b6374-0x57d);}if(_0x2679d9[_0x3d2c02(_0x3bccf7._0x512a91,0x33e)]===_0x3d2c02(_0x3bccf7._0x106144,_0x3bccf7._0x407a48))return _0x3d2c02(_0x3bccf7._0xbd4885,_0x3bccf7._0x5c0b20)+(_0x5015b5 instanceof _0x5094b2?_0x30801a[_0x3d2c02(_0x3bccf7._0x4ade3f,_0x3bccf7._0x315490)]:_0x18f78d(_0x40d015));else try{return _0x2679d9[_0x3d2c02(0x366,0x347)](_0x2679d9[_0x3d2c02(_0x3bccf7._0x5c7875,_0x3bccf7._0x3f67db)],_0x2679d9['oNDFG'])?await _0x30e2ab[_0x15ddf1(0x561,0x5a0)+_0x3d2c02(0x38a,0x397)](_0x33779e,_0x1dcf4d[_0x15ddf1(_0x3bccf7._0x80013,0x520)],_0x1dcf4d[_0x15ddf1(_0x3bccf7._0x239603,0x524)],_0x1dcf4d[_0x15ddf1(_0x3bccf7._0xdccafd,0x5b1)]):_0x3d2c02(_0x3bccf7._0x3f59d8,0x3ac)+(_0x6b9e07 instanceof _0x39a65f?_0x4d5356[_0x3d2c02(0x348,_0x3bccf7._0x962485)]:_0x526395(_0x3f0b27));}catch(_0x693365){return _0x3d2c02(_0x3bccf7._0x3ad41f,0x3b7)===_0x2679d9[_0x15ddf1(0x589,_0x3bccf7._0x21d518)]?'❌\x20获取进度失败:\x20'+(_0x34dffa instanceof _0x1fe63e?_0x6982eb[_0x3d2c02(_0x3bccf7._0x242ea4,_0x3bccf7._0x4f1d0f)]:_0x18b761[_0x15ddf1(_0x3bccf7._0x17321a,0x562)](_0x5cd6fa,_0x1d1930)):'❌\x20更新操作失败:\x20'+(_0x693365 instanceof Error?_0x693365[_0x3d2c02(0x348,_0x3bccf7._0x479d95)]:String(_0x693365));}}});}function createRegisterAgentTool(_0x59e53b){const _0x54aa29={_0x3d2588:0x45e,_0x280df7:0x21,_0x12c3c3:0x468,_0x5bc787:0x9,_0x14291b:0x29,_0x4add7b:0x4e3,_0x2fffdf:0x45,_0x13ee99:0x482,_0x492550:0x4af,_0x5de77e:0x470,_0x1a3877:0x490,_0x10194c:0x2d,_0x1f7869:0x5,_0x1054a0:0x2e,_0x2be39d:0x3f},_0x278cd1={_0x5ce3f2:0x45d,_0x28dc95:0x440,_0x332072:0x4fb,_0x299bbf:0x4a5},_0x58afee={_0x1f45ba:0x282},_0x527216={'vDtkQ':function(_0x187cf3,_0x55f7b4){return _0x187cf3(_0x55f7b4);},'oNvcF':_0x5b7a6e(0x469,_0x54aa29._0x3d2588)+_0x13f005(_0x54aa29._0x280df7,-0x22)};function _0x5b7a6e(_0x52b7b2,_0x1948f1){return _0x5c96(_0x52b7b2-_0x58afee._0x1f45ba,_0x1948f1);}const _0x3eff34=_0x527216['vDtkQ'](getStateFilePath,_0x59e53b);function _0x13f005(_0x208ae2,_0xc4163c){return _0x5c96(_0xc4163c- -0x201,_0x208ae2);}return _0x527216[_0x5b7a6e(0x49d,_0x54aa29._0x12c3c3)](tool,{'description':_0x13f005(-_0x54aa29._0x5bc787,-_0x54aa29._0x14291b)+'\x20到\x20specops'+_0x5b7a6e(0x4a6,_0x54aa29._0x4add7b)+_0x13f005(-_0x54aa29._0x2fffdf,-0x2b)+_0x5b7a6e(0x4ab,_0x54aa29._0x13ee99)+_0x13f005(-0x31,-0x11),'args':{'agent_id':tool[_0x5b7a6e(0x455,0x488)][_0x5b7a6e(0x46e,0x475)]()['describe'](_0x5b7a6e(0x474,_0x54aa29._0x492550)),'parent_id':tool['schema']['string']()[_0x5b7a6e(0x4af,_0x54aa29._0x5de77e)]()[_0x5b7a6e(_0x54aa29._0x1a3877,0x4ce)](_0x13f005(-0x8,-0x14)+_0x13f005(_0x54aa29._0x10194c,-_0x54aa29._0x1f7869)),'phase':tool[_0x13f005(0x11,-_0x54aa29._0x1054a0)]['string']()['optional']()[_0x13f005(_0x54aa29._0x2be39d,0xd)](_0x527216[_0x13f005(-0xa,-0x2d)])},async 'execute'(_0x1311ce){function _0x5c4e6a(_0x11f97d,_0x528142){return _0x5b7a6e(_0x528142- -0x2e,_0x11f97d);}function _0x173972(_0x13fe64,_0x20a433){return _0x13f005(_0x13fe64,_0x20a433-0x50e);}try{return await _0x30e2ab[_0x5c4e6a(0x45c,_0x278cd1._0x5ce3f2)+_0x5c4e6a(_0x278cd1._0x28dc95,0x420)](_0x3eff34,_0x1311ce[_0x173972(_0x278cd1._0x332072,0x50a)],{'parentId':_0x1311ce[_0x5c4e6a(0x45a,0x495)],'phase':_0x1311ce[_0x173972(0x4c5,0x4fe)]});}catch(_0x52c3bd){return _0x5c4e6a(_0x278cd1._0x299bbf,0x472)+'\x20失败:\x20'+(_0x52c3bd instanceof Error?_0x52c3bd[_0x5c4e6a(0x464,0x447)]:String(_0x52c3bd));}}});}function createDeregisterAgentTool(_0x42296a){const _0x3fdb27={_0x526238:0x1b,_0x194f79:0xe,_0x21e713:0x30,_0x3dfb55:0x5e,_0xfe1171:0x12f,_0x147fa0:0xf0,_0x36b773:0xa2,_0x6a78e1:0x4e,_0x43cc29:0x133,_0x48f1ba:0x138},_0x1c7b67={_0x4227ad:0x135,_0x42da27:0xe4,_0x1e85a0:0xdf,_0xa63d53:0xac,_0xe95455:0x5,_0x4ccae0:0x19,_0x58a092:0xe4,_0x5eac04:0xcf,_0x3c5b4d:0x2f,_0x22daab:0xdd,_0x1b7324:0x1,_0x1509dd:0x3,_0x1bf918:0xca,_0x78caa6:0xda},_0x22be84={_0x382b46:0x30},_0x25c4a4={_0x15cef9:0x302},_0x43dd34={_0x408b12:0x25c},_0x502fe4={'fqGdY':function(_0x265432,_0x4e60ae){return _0x265432 instanceof _0x4e60ae;},'AXSaF':function(_0x48c00f,_0x17181b){return _0x48c00f(_0x17181b);},'aIMOn':function(_0x13fc18,_0x1cd289){return _0x13fc18===_0x1cd289;},'rNNUl':_0x23cdfb(-0x3f,-_0x3fdb27._0x526238),'gxNFv':function(_0x2ba6d2,_0x330aa0){return _0x2ba6d2(_0x330aa0);},'nBZsM':function(_0x527556,_0x2edd95){return _0x527556(_0x2edd95);}};function _0x23cdfb(_0x3cbfbd,_0x4d208c){return _0x5c96(_0x3cbfbd- -_0x43dd34._0x408b12,_0x4d208c);}const _0x4659fd=_0x502fe4[_0x23cdfb(-0x36,-0x6e)](getStateFilePath,_0x42296a);function _0x23676d(_0x4149ef,_0xe2575d){return _0x5c96(_0x4149ef- -_0x25c4a4._0x15cef9,_0xe2575d);}return _0x502fe4[_0x23676d(-0x127,-0x150)](tool,{'description':_0x23cdfb(-_0x3fdb27._0x194f79,0x15)+_0x23cdfb(-0x12,-0x47)+_0x23676d(-0xf8,-0x11f)+_0x23cdfb(-0x3b,-_0x3fdb27._0x21e713)+_0x23cdfb(-0x8a,-0x5f)+_0x23cdfb(-0x3c,-_0x3fdb27._0x3dfb55),'args':{'agent_id':tool[_0x23676d(-_0x3fdb27._0xfe1171,-_0x3fdb27._0x147fa0)][_0x23cdfb(-0x70,-_0x3fdb27._0x36b773)]()[_0x23cdfb(-_0x3fdb27._0x6a78e1,-0x8c)](_0x23676d(-_0x3fdb27._0x43cc29,-_0x3fdb27._0x48f1ba)+_0x23676d(-0xc7,-0x106))},async 'execute'(_0x12d8eb){const _0x2f42da={_0x2fd2a0:0x67};function _0x4a1837(_0x56398b,_0x5268f1){return _0x23cdfb(_0x56398b-_0x2f42da._0x2fd2a0,_0x5268f1);}function _0x24877e(_0x387ec8,_0x1b21b9){return _0x23676d(_0x387ec8-_0x22be84._0x382b46,_0x1b21b9);}try{return _0x24877e(-0xf6,-_0x1c7b67._0x4227ad)!==_0x24877e(-0xf6,-_0x1c7b67._0x42da27)?'❌\x20快速任务失败:\x20'+(_0x2f3d17 instanceof _0x2175ec?_0x4429d8[_0x24877e(-_0x1c7b67._0x1e85a0,-_0x1c7b67._0xa63d53)]:_0x337263(_0x106dd5)):await _0x30e2ab[_0x4a1837(_0x1c7b67._0xe95455,_0x1c7b67._0x4ccae0)+_0x24877e(-0xad,-0xd4)](_0x4659fd,_0x12d8eb[_0x24877e(-0xd5,-_0x1c7b67._0x58a092)]);}catch(_0x49638e){return _0x502fe4[_0x24877e(-_0x1c7b67._0x5eac04,-0x109)](_0x502fe4[_0x4a1837(0x5b,_0x1c7b67._0x3c5b4d)],_0x24877e(-0xba,-0x8f))?'❌\x20注销\x20Agent'+_0x24877e(-_0x1c7b67._0x22daab,-0x110)+(_0x502fe4[_0x4a1837(-_0x1c7b67._0x1b7324,_0x1c7b67._0x3c5b4d)](_0x859a4f,_0x2582ff)?_0x451e4e['message']:_0x502fe4[_0x4a1837(_0x1c7b67._0x1509dd,-_0x1c7b67._0x1b7324)](_0x2bc72d,_0x23065c)):_0x24877e(-_0x1c7b67._0x1bf918,-0xc3)+'\x20失败:\x20'+(_0x49638e instanceof Error?_0x49638e[_0x24877e(-0xdf,-0xe3)]:_0x502fe4[_0x24877e(-_0x1c7b67._0x78caa6,-0xc5)](String,_0x49638e));}}});}function createProgressTool(_0x3fb742){const _0x5adc3f={_0x17639d:0x177,_0x2d0386:0x1fd,_0x4d6a10:0x1c9,_0x695d08:0xb},_0x23b014={_0x25ce6e:0x2ec,_0x5b5bf0:0x269,_0x15603d:0x292,_0x2a5a40:0x2bf,_0x4c6167:0x2a3,_0x560bb9:0x3be},_0x215b0f={_0x26135c:0x3b};function _0x517b9d(_0x32325b,_0x1d69ca){return _0x5c96(_0x1d69ca- -_0x215b0f._0x26135c,_0x32325b);}function _0x35b7e4(_0x2629a2,_0x59d977){return _0x5c96(_0x2629a2- -0x202,_0x59d977);}const _0x3cafec={'vEkKk':function(_0x22a034,_0x344bc0){return _0x22a034 instanceof _0x344bc0;},'IcMvV':function(_0x2f2a85,_0x46b56a){return _0x2f2a85(_0x46b56a);},'hcTmG':function(_0x226a76,_0x407180){return _0x226a76(_0x407180);}},_0x2b453d=_0x3cafec[_0x517b9d(0x1a4,0x1ca)](getStateFilePath,_0x3fb742);return tool({'description':_0x517b9d(_0x5adc3f._0x17639d,0x1af)+'\x20项目详细进度。\x0a包'+_0x517b9d(_0x5adc3f._0x2d0386,_0x5adc3f._0x4d6a10)+_0x35b7e4(_0x5adc3f._0x695d08,0x27)+'详情表格。','args':{},async 'execute'(){const _0x508400={_0x367349:0x41a};function _0x3e8eec(_0x4b88df,_0x263f84){return _0x35b7e4(_0x263f84-0x2b2,_0x4b88df);}function _0x3e9c14(_0x3cd298,_0x82c84){return _0x35b7e4(_0x3cd298-_0x508400._0x367349,_0x82c84);}try{return await _0x30e2ab[_0x3e8eec(_0x23b014._0x25ce6e,0x2f7)+'ss'](_0x2b453d);}catch(_0x2c39b8){return'❌\x20获取进度失败:\x20'+(_0x3cafec[_0x3e8eec(_0x23b014._0x5b5bf0,_0x23b014._0x15603d)](_0x2c39b8,Error)?_0x2c39b8[_0x3e8eec(_0x23b014._0x2a5a40,_0x23b014._0x4c6167)]:_0x3cafec[_0x3e9c14(0x3fd,_0x23b014._0x560bb9)](String,_0x2c39b8));}}});}function createQuickTool(_0x5f526a){const _0x50c121={_0x19e6a2:0x455,_0x2e1573:0x3e,_0x3e3685:0xbe,_0x3d9dcb:0x491,_0x4bfaa4:0x4a0,_0x1b70d5:0xbc,_0x4dfbd8:0x4e4},_0x319b07={_0x341d72:0x184,_0x11a6c9:0x192,_0x354579:0x5a4,_0x25ee67:0x594,_0x1fc1a2:0x58a},_0xb29f30={_0x3d96f1:0x4fd},_0x4291e1={_0x559f70:0x1e9},_0x576a6a={_0xb8aa4a:0x28f},_0x57203e={'SIQfq':function(_0x21aad2,_0x34eb7e){return _0x21aad2 instanceof _0x34eb7e;},'vOMgi':_0x519cdd(_0x50c121._0x19e6a2,0x440),'lPgbL':function(_0x50f42b,_0x401ccc){return _0x50f42b(_0x401ccc);},'NZACB':function(_0x436bb3,_0x5c2897){return _0x436bb3(_0x5c2897);}};function _0x519cdd(_0x2df548,_0x5669c8){return _0x5c96(_0x2df548-0x257,_0x5669c8);}const _0x4890dc=getStateFilePath(_0x5f526a);function _0xa9b030(_0x44cc20,_0xa99193){return _0x5c96(_0x44cc20- -_0x576a6a._0xb8aa4a,_0xa99193);}return _0x57203e['NZACB'](tool,{'description':_0xa9b030(-_0x50c121._0x2e1573,-0x6b)+_0xa9b030(-_0x50c121._0x3e3685,-0xf1)+_0x519cdd(0x47e,_0x50c121._0x3d9dcb)+_0xa9b030(-0xb2,-0xec)+_0x519cdd(0x4a0,_0x50c121._0x4bfaa4),'args':{'task':tool[_0xa9b030(-_0x50c121._0x1b70d5,-0x81)][_0x519cdd(0x443,0x40a)]()['describe'](_0x519cdd(0x4a2,_0x50c121._0x4dfbd8))},async 'execute'(_0x4e6488){const _0x34d537={_0x5951d3:0x2eb};function _0x2e7228(_0x581e4b,_0x235447){return _0xa9b030(_0x235447-_0x4291e1._0x559f70,_0x581e4b);}const _0x3fdb78={'NdUID':function(_0x21d513,_0x425e25){function _0x29ccca(_0x2bfaf9,_0x58eaeb){return _0x5c96(_0x58eaeb-_0x34d537._0x5951d3,_0x2bfaf9);}return _0x57203e[_0x29ccca(_0xb29f30._0x3d96f1,0x52f)](_0x21d513,_0x425e25);}};function _0x51d8c8(_0x2ebb5f,_0x4c5bbe){return _0x519cdd(_0x4c5bbe-0x13e,_0x2ebb5f);}try{return await _0x30e2ab[_0x51d8c8(0x5ce,0x5e8)](_0x4890dc,_0x4e6488[_0x2e7228(_0x319b07._0x341d72,_0x319b07._0x11a6c9)]);}catch(_0x2d2924){return _0x2e7228(0x12a,0x131)===_0x57203e[_0x51d8c8(_0x319b07._0x354579,_0x319b07._0x25ee67)]?_0x2e7228(0x186,0x197)+(_0x3fdb78['NdUID'](_0x21065e,_0x22c602)?_0x3dc1cf['message']:_0x2b18b5(_0x8ae99)):'❌\x20快速任务失败:\x20'+(_0x2d2924 instanceof Error?_0x2d2924[_0x51d8c8(_0x319b07._0x1fc1a2,0x588)]:_0x57203e['lPgbL'](String,_0x2d2924));}}});}const SpecOpsPlugin=async _0x469d32=>{const _0x44263f={_0x1536a0:0x2f6,_0x5c6a9b:0x305,_0x3931ab:0x320},_0x3ef7a6={_0x268f4e:0xdd},_0x11666e={_0x1c1cd4:0x38a},_0x2b2671={'MHDsP':function(_0x2bc544,_0x80afa5){return _0x2bc544(_0x80afa5);},'rDcHJ':function(_0x422bd6,_0x2ab89c){return _0x422bd6(_0x2ab89c);},'qRXey':function(_0x26e126,_0x4483a0){return _0x26e126(_0x4483a0);},'cHnMY':function(_0x231aec,_0x341ded){return _0x231aec(_0x341ded);},'PFBXf':function(_0x1ef153,_0x59acf0){return _0x1ef153(_0x59acf0);}};function _0x5a3118(_0x4a0ce0,_0x5be2a3){return _0x5c96(_0x4a0ce0-_0x11666e._0x1c1cd4,_0x5be2a3);}function _0xaa1416(_0x27ef52,_0x400a18){return _0x5c96(_0x400a18-_0x3ef7a6._0x268f4e,_0x27ef52);}const _0x294e74=_0x469d32[_0xaa1416(0x2eb,_0x44263f._0x1536a0)];return{'name':_0x5a3118(0x573,0x56e),'tool':{'specops_status':_0x2b2671[_0xaa1416(0x330,0x320)](createStatusTool,_0x294e74),'specops_advance':createAdvanceTool(_0x294e74),'specops_new_project':createNewProjectTool(_0x294e74),'specops_update_operation':_0x2b2671[_0x5a3118(0x5b6,0x589)](createUpdateOperationTool,_0x294e74),'specops_register_agent':_0x2b2671[_0xaa1416(0x2ec,_0x44263f._0x5c6a9b)](createRegisterAgentTool,_0x294e74),'specops_deregister_agent':_0x2b2671['cHnMY'](createDeregisterAgentTool,_0x294e74),'specops_progress':_0x2b2671[_0xaa1416(0x33e,_0x44263f._0x3931ab)](createProgressTool,_0x294e74),'specops_quick':createQuickTool(_0x294e74),'specops_analyze_requirements':_0x2b2671['PFBXf'](createAnalyzeRequirementsTool,_0x294e74)},'event':async _0x1bb34a=>{}};};export default SpecOpsPlugin;
|
|
1
|
+
(function(_0xacde17,_0x27ea12){const _0xd90152={_0x51c7f3:0x69,_0x52ccb3:0x24d,_0x124766:0x273,_0x1e6597:0x113,_0x21795:0xb8,_0x56ba86:0xb2,_0x5ab85e:0xd7,_0x4d890a:0x252,_0x299b68:0x24a,_0x333aa2:0x270,_0x2b0f91:0x294,_0x5486f5:0xd0,_0x4888c2:0x9e,_0x278b44:0xa5,_0x45d21d:0x1ef},_0x5bd1b0=_0xacde17();function _0x348e39(_0x268a4a,_0x131d5f){return _0x2f24(_0x268a4a- -0x185,_0x131d5f);}function _0xdb586a(_0x239aa8,_0x32d9b7){return _0x2f24(_0x239aa8- -0x2f7,_0x32d9b7);}while(!![]){try{const _0x55773a=parseInt(_0xdb586a(-0x223,-0x1e8))/(0x12ac+-0x23ec+0x1141)+-parseInt(_0x348e39(-0x85,-_0xd90152._0x51c7f3))/(0x8*0x22a+0x265f+-0x37ad)*(-parseInt(_0xdb586a(-0x1f6,-0x22e))/(-0x23a3+0x785*-0x5+0x493f))+parseInt(_0xdb586a(-_0xd90152._0x52ccb3,-_0xd90152._0x124766))/(0x1506+0x173*-0xe+-0xb8)*(parseInt(_0x348e39(-0xee,-_0xd90152._0x1e6597))/(0x121+0x251*0xb+0x1*-0x1a97))+parseInt(_0x348e39(-_0xd90152._0x21795,-0x86))/(0x3b*-0x86+0x16b9+0x82f)*(parseInt(_0x348e39(-_0xd90152._0x56ba86,-_0xd90152._0x5ab85e))/(0x1993+0xc*0x27+-0x1b60))+-parseInt(_0xdb586a(-_0xd90152._0x4d890a,-_0xd90152._0x299b68))/(-0x7*0x111+-0x758+-0xed7*-0x1)+parseInt(_0xdb586a(-_0xd90152._0x333aa2,-_0xd90152._0x2b0f91))/(0x1b4d+0x46*-0x87+-0x41*-0x26)*(parseInt(_0x348e39(-_0xd90152._0x5486f5,-0xab))/(0xa*-0x2b6+0x3b5*-0x3+-0x61*-0x65))+-parseInt(_0x348e39(-_0xd90152._0x4888c2,-_0xd90152._0x278b44))/(-0x3b*-0x3b+0x18*0x72+-0x183e)*(parseInt(_0xdb586a(-0x21d,-_0xd90152._0x45d21d))/(-0xed1*0x1+0x11c3*0x1+-0x1*0x2e6));if(_0x55773a===_0x27ea12)break;else _0x5bd1b0['push'](_0x5bd1b0['shift']());}catch(_0x28bf3b){_0x5bd1b0['push'](_0x5bd1b0['shift']());}}}(_0x1807,0x17907+0x2*-0x1112c+0x4029a));import{tool}from'@opencode-ai/plugin';function _0x2f24(_0x407a7a,_0x419edd){_0x407a7a=_0x407a7a-(0x1ea4+0x23a1+-0x41ce);const _0x23dfe4=_0x1807();let _0x1fd2f2=_0x23dfe4[_0x407a7a];if(_0x2f24['ATEeLj']===undefined){var _0x366576=function(_0x1e5f34){const _0x224258='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21393c='',_0x3111be='';for(let _0x255e52=-0x13ef+0xb5*-0xd+0x1d20,_0x425326,_0x4ebae4,_0x2fb792=0x10be+0xbaa*0x2+-0x2e*0xdf;_0x4ebae4=_0x1e5f34['charAt'](_0x2fb792++);~_0x4ebae4&&(_0x425326=_0x255e52%(-0x2479*-0x1+0x148*-0x11+-0xead)?_0x425326*(-0xe6a+-0x727*0x2+0x26a*0xc)+_0x4ebae4:_0x4ebae4,_0x255e52++%(0x1291+-0x1cab+0x46*0x25))?_0x21393c+=String['fromCharCode'](-0x3d*0x59+0x26*0x82+-0x7c*-0x6&_0x425326>>(-(0x1f0b*-0x1+-0x1*0x1051+0x5e*0x81)*_0x255e52&0x1*0x3dd+-0x24da*-0x1+0x28b1*-0x1)):-0x4c6+0x55*0x4b+-0x1421*0x1){_0x4ebae4=_0x224258['indexOf'](_0x4ebae4);}for(let _0x1b510e=0x20b4+0x157c+-0x3630,_0x548f32=_0x21393c['length'];_0x1b510e<_0x548f32;_0x1b510e++){_0x3111be+='%'+('00'+_0x21393c['charCodeAt'](_0x1b510e)['toString'](-0x18a3+-0x8a9*-0x2+0x761*0x1))['slice'](-(-0xc2*-0x10+0x201+-0xe1f));}return decodeURIComponent(_0x3111be);};_0x2f24['pAEgvn']=_0x366576,_0x2f24['EvtvvA']={},_0x2f24['ATEeLj']=!![];}const _0x38dbb8=_0x23dfe4[0x734+-0x203b*0x1+0x1907],_0x25bfaa=_0x407a7a+_0x38dbb8,_0x24df73=_0x2f24['EvtvvA'][_0x25bfaa];return!_0x24df73?(_0x1fd2f2=_0x2f24['pAEgvn'](_0x1fd2f2),_0x2f24['EvtvvA'][_0x25bfaa]=_0x1fd2f2):_0x1fd2f2=_0x24df73,_0x1fd2f2;}import{resolve}from'node:path';function _0x1807(){const _0x3179c0=['zgLYzwn0B3j5','C3rYAw5N','r2L1zMO','ioMHUEEBRUIVPUE7HUI/M+w6PUoaGGRLJiu','77Ym55U05O6L6l+B5ywL5OMN6kgm6zI25Q6144cc','sLvgwfy','5yIB5BU65PAW55QeihnWzwnV','6ycj5OUP56YS5lIa5lIQ5PYQ5A6m5OIq55Qe77Yj','DLb3vw0','54I2iefNzw50ieLe','z0zsAeK','5Q615BQp5yIxoIdORQJORROG4OAsia','ioMHUEEBRUw9K+wjJEEkTUAaGEoaGGRMMl4','cUMaGUEuQos6JUwWJ+wEI+oaGEAyJUEHRUEAHa','yK1Huxm','EKX0vNK','zw5077Yi5OIw56YS5lIa5lIQ5PYQ5A6m','qwDLBNq','iowKSEI0PtOG','rvPdENm','AeDrAgy','DfPduuO','nZHNBK9bEwW','A3zdBNq','Dgf0zs5QC29U77Ym','qwDLBNqGsuq','5yIB5BU65yID5AEliefNzw50','5PU05PAW5OYh5A6AiefNzw50','mtC1ntG4B1jbC212','ndeWodC3EgrrsfLZ','6kEe5yIsiokgKIdMIAFOOyWG4OAsia','zgvYzwDPC3rLCG','CKvMyLm','rLvvvuy','z2nOzfO','mZmZntCXmMvgz0vuua','ChjVAMvJDf9Uyq','DKfOAKW','5y+rigfNzw50ioE8LUAoKG','4P2mioAoQoI/M+MyTUAUTEwKSEI0PtOG','CMvYiU+8Iq','BMrMyMK','uuf0CfO','r2fsELq','5lUoihnWzwnVChmG','BwvZC2fNzq','4P2miowiM+w7UUMHUEEBRUwKSEI0PtOG','zfPqwK0','ndrZvhfdzMi','5lU75yQH44cc','ywDLBNrFAwq','B3b0Aw9UywW','4P2mioAZQoMuGcbbz2vUDa','CgfYzw50x2LK','vgTrwha','z3vMzMq','5zcR5A6m5OIq5BQM55M+5yIg5Q+u44cb6zI25Q61','CvPpruy','ioEAHow9K+wjJEAtJEs9NoApJ+I/SowsJos9VW','CvvZA0u','D2nPv3K','4P2mioAZQowgJcbbz2vUDa','zgvZy3jPyMu','lNnWzwnVChm','ChmG6Ag555UU44cc5yID5AEl5yYwia','55Qe54Q25Ocb6kgO5Qc844cc','C3bLy29WCW','5PE277Ym5Q+p5lIQigfNzw50','56s66Ag555UU5zcn56EW44cb5B2t5yMn6zI25Q61','yxrPB24','sLHJqKO','6k+M5Oof6kgO5Qc844cc','qxHMAu0','mKfABxfguW','otCZndqZBNf1yLHf','s21dBLm','ufDlzM0','BfzcB2G','BxDewNe','A3PbDwm','5yIg5BId5zU+44cbqwDLBNqG','C3rHDguUANnVBG','rM1dEvu','CKzpt2C','54I2iefNzw50ioEAHca','4P2mioIoT+wpLUEkTUAaGEwKSEI0PtOG','BNqG6k6W5B2v77Ym5zcm5PE25PU05PAW','CMvNAxn0zxjbzW','5O6O6l+BihnWzwnVChm','C2nOzw1H','5B+R6ycF5lU75yQH5QIH5BYp44cc6lEZ6l+h5A6m','77Yi5y+V6ycj77Yj','C2TPBgW','ndC3D3rzC2j2','4P2miow/Q+MaN+s7U+wkOEwKSEI0PtOG','ieLe','y2HPBgrjzhpJGii','4P2mioABToAwSoAtJEs9NowKSEI0PtOG','ioMyTUAUTEoaGUwWHUAmH+wUMIbbzW','rLj2sfq','v1fkAeC','yK9TBwm','ug5vrhi','6Ag555UU5zcn56EW','ieLe77Yi5lIn5OYh5A6A5yIz6iEQ5yQO','lNnWzwnVChmVCW','yujPwvi','5PI+56s6ihnWzwnVChm','4P2mioIoT+wpLUI/M+w6PUwKSEI0PtOG','mtuYntvSu0z3ug4','svPOsxC','DfjPwe4','r2XVrK0','tNHjr1u','CMXkEey','44cb5OMa5PYjiefNzw50ia','5B2t5yMn5l2/55sO55Qe5BEL5yw3l+AkGoIdVq','v3bPrNu','C2HVD1bYB2DYzq','v0PTEwS','reTwqMC','Bwnpr1a','6kAb5O6O6l+B55QeiefNzw50','mtaYntG5nKrMBLjxrq','wundDwe','yunkDgy','55sO55Qe5BEL5yw3l+AkGoIdVEoaGGRNLkG','Bu94rM0','mZu2tM5nvMPf','qvLPvu0','tNvvww4','zgXL77Yj','iowiScbZCgvJB3bZ','ueH3vKm','DgfZAW','5zcn56EW77Yi5AAciMv4CgXV','zxrLza','6AQm6k+biokgKIbJB21WBa','6kAb5RoO6zsa55QeiefNzw50','mJm4otbiu01kD24','CgHHC2u'];_0x1807=function(){return _0x3179c0;};return _0x1807();}import*as _0x3b70b5 from'./plugin-engine.js';import{createAnalyzeRequirementsTool}from'./requirement-analysis/tools/analyze-requirements.js';function getStateFilePath(_0x563d2d){const _0x10584c={_0x2c546e:0x3b4,_0x24a92b:0x37f,_0xc4dbd:0x61},_0x4efc67={_0x3805e1:0x2be},_0x50b8ce={'gFRhI':function(_0x4a245a,_0x11e898,_0x3eb122,_0x2add68){return _0x4a245a(_0x11e898,_0x3eb122,_0x2add68);},'zLtVy':_0x42e016(0x3a4,_0x10584c._0x2c546e)};function _0x42e016(_0x30129b,_0x3d0949){return _0x2f24(_0x3d0949-_0x4efc67._0x3805e1,_0x30129b);}function _0x516ac4(_0x3b58f2,_0x2bccd3){return _0x2f24(_0x2bccd3- -0xdc,_0x3b58f2);}return _0x50b8ce[_0x42e016(0x36c,_0x10584c._0x24a92b)](resolve,_0x563d2d,_0x50b8ce[_0x516ac4(-0x54,-0x16)],_0x516ac4(-0x65,-_0x10584c._0xc4dbd));}function createStatusTool(_0x3dac04){const _0x163724={_0x4bebe7:0x2d4,_0x2d4649:0x2e0,_0xcbf65c:0x19e,_0x52a71f:0x143,_0x1e1b64:0x16f},_0x4d3445={_0x55c204:0x2c,_0x547d35:0x38,_0x111dbb:0x2cf},_0x3128eb={_0x557645:0x22b},_0x1fc71d={};_0x1fc71d[_0x53612c(-0x15f,-0x16d)]=function(_0x4cc058,_0x492e36){return _0x4cc058 instanceof _0x492e36;};function _0x3b977c(_0x3f966f,_0x66f78f){return _0x2f24(_0x3f966f-_0x3128eb._0x557645,_0x66f78f);}function _0x53612c(_0x356e0d,_0x11ba2b){return _0x2f24(_0x356e0d- -0x23b,_0x11ba2b);}const _0x3a602a=_0x1fc71d,_0x33e1b6=getStateFilePath(_0x3dac04);return tool({'description':'获取\x20specops'+_0x3b977c(0x2ee,_0x163724._0x4bebe7)+_0x3b977c(0x326,_0x163724._0x2d4649)+_0x53612c(-_0x163724._0xcbf65c,-0x15f)+_0x53612c(-_0x163724._0x52a71f,-_0x163724._0x1e1b64),'args':{},async 'execute'(){const _0x522581={_0x33efe8:0x170};function _0x46160d(_0x4cda24,_0x3d598e){return _0x53612c(_0x3d598e- -_0x522581._0x33efe8,_0x4cda24);}function _0x3dd622(_0x1f9221,_0x16fba0){return _0x3b977c(_0x16fba0- -0x272,_0x1f9221);}try{return await _0x3b70b5['getStatus'](_0x33e1b6);}catch(_0x4a3004){return _0x3dd622(_0x4d3445._0x55c204,_0x4d3445._0x547d35)+(_0x3a602a[_0x46160d(-0x302,-_0x4d3445._0x111dbb)](_0x4a3004,Error)?_0x4a3004['message']:String(_0x4a3004));}}});}function createAdvanceTool(_0x31ad6e){const _0x1d02c9={_0x504fd2:0x10b,_0x3747c4:0x1b4,_0x1cff3c:0x143,_0x5e5e04:0x164,_0x190ce1:0x14d,_0x169485:0x1e5,_0x2074e5:0x1e4,_0x8fa4c1:0x1b5,_0x282b11:0x1a7,_0x33536d:0x16d,_0x3a2347:0x140,_0x4c64ca:0x138,_0x111f98:0x231,_0x1c8722:0x159},_0x17a5b7={_0x4144b8:0x173,_0x116047:0x13d,_0x446e46:0x167,_0x4d234d:0xde,_0x3a7cc6:0x142,_0x151a70:0xfc,_0x59e8a2:0xeb,_0x1ee560:0x124,_0x508d68:0x130,_0x48b9d5:0x111,_0x5d9d62:0x136,_0x293ef3:0x116,_0x2b0931:0x193},_0x303ed9={_0x5cc9a7:0x3f6},_0x24cc56={_0x5b4ea2:0x4e},_0x39ceb7={_0xb590cc:0x132},_0x185124={'PCXfk':function(_0x5ce131,_0x217e61){return _0x5ce131 instanceof _0x217e61;},'EZCzs':function(_0x1591de,_0x395e4a){return _0x1591de(_0x395e4a);},'NxIGU':function(_0x3525db,_0xce18df){return _0x3525db(_0xce18df);},'FUUUF':'ZQSca','vPwUm':function(_0x182969,_0x2c1c3f){return _0x182969 instanceof _0x2c1c3f;},'aBiYR':_0x1c2c6c(0x1d6,0x1c0)+_0x1c2c6c(0x1c4,0x18e)+_0x1c87ff(-_0x1d02c9._0x504fd2,-0x132)};function _0x1c2c6c(_0x2521b2,_0x284c6f){return _0x2f24(_0x2521b2-_0x39ceb7._0xb590cc,_0x284c6f);}const _0x406c71=_0x185124[_0x1c2c6c(0x1cd,0x1a5)](getStateFilePath,_0x31ad6e);function _0x1c87ff(_0x556342,_0x2cf94a){return _0x2f24(_0x2cf94a- -0x1f0,_0x556342);}return tool({'description':_0x1c2c6c(_0x1d02c9._0x3747c4,0x1b2)+_0x1c87ff(-_0x1d02c9._0x1cff3c,-_0x1d02c9._0x5e5e04)+_0x1c87ff(-_0x1d02c9._0x190ce1,-0x129)+'成的\x20Agent)推'+'进到下一个阶段。\x0a阶'+_0x1c2c6c(0x1f4,0x20a)+_0x1c87ff(-0x108,-0x11b)+_0x1c2c6c(_0x1d02c9._0x169485,0x1fd)+_0x1c2c6c(_0x1d02c9._0x2074e5,_0x1d02c9._0x8fa4c1),'args':{'agent_id':tool[_0x1c87ff(-_0x1d02c9._0x282b11,-_0x1d02c9._0x33536d)][_0x1c87ff(-_0x1d02c9._0x3a2347,-_0x1d02c9._0x4c64ca)]()[_0x1c2c6c(0x21c,_0x1d02c9._0x111f98)]()['describe'](_0x185124[_0x1c87ff(-_0x1d02c9._0x1c8722,-0x15c)])},async 'execute'(_0x350749){const _0x139c2f={_0x382077:0x97};function _0x1632c4(_0x477607,_0x59d017){return _0x1c87ff(_0x59d017,_0x477607-0x242);}const _0x51e699={'tZCQJ':function(_0x336953,_0x38355e){return _0x336953(_0x38355e);},'tRiXN':function(_0x811794,_0x15be96){function _0x437cd3(_0x595d08,_0x4756b6){return _0x2f24(_0x4756b6- -0x7c,_0x595d08);}return _0x185124[_0x437cd3(0x9,_0x24cc56._0x5b4ea2)](_0x811794,_0x15be96);},'qZOEF':function(_0x21f6a3,_0x4cb918){function _0x21785b(_0x347e6d,_0x5b394){return _0x2f24(_0x5b394-0x35b,_0x347e6d);}return _0x185124[_0x21785b(0x41f,_0x303ed9._0x5cc9a7)](_0x21f6a3,_0x4cb918);}};function _0x47f2d7(_0x422924,_0x36b310){return _0x1c2c6c(_0x36b310- -_0x139c2f._0x382077,_0x422924);}try{if('NSAeG'===_0x185124[_0x47f2d7(0x15d,_0x17a5b7._0x4144b8)]){const _0x13cbf7=_0x3111be['directory'];return{'name':_0x47f2d7(0x17d,0x194),'tool':{'specops_status':_0x255e52(_0x13cbf7),'specops_advance':_0x51e699[_0x47f2d7(_0x17a5b7._0x116047,_0x17a5b7._0x446e46)](_0x425326,_0x13cbf7),'specops_new_project':_0x51e699[_0x1632c4(0x11e,_0x17a5b7._0x4d234d)](_0x4ebae4,_0x13cbf7),'specops_update_operation':_0x2fb792(_0x13cbf7),'specops_register_agent':_0x1b510e(_0x13cbf7),'specops_deregister_agent':_0x51e699[_0x1632c4(0xeb,0x114)](_0x548f32,_0x13cbf7),'specops_progress':_0x51e699[_0x1632c4(_0x17a5b7._0x3a7cc6,_0x17a5b7._0x151a70)](_0x436de8,_0x13cbf7),'specops_quick':_0x17bb49(_0x13cbf7),'specops_analyze_requirements':_0x51e699[_0x1632c4(_0x17a5b7._0x59e8a2,0x130)](_0x1d1694,_0x13cbf7)},'event':async _0x38bec2=>{}};}else return await _0x3b70b5['advancePha'+'se'](_0x406c71,_0x350749[_0x47f2d7(0x197,0x184)]);}catch(_0x3dffd3){return _0x1632c4(0xfd,_0x17a5b7._0x1ee560)!==_0x1632c4(0xf4,0xc5)?_0x1632c4(_0x17a5b7._0x508d68,0x15b)+(_0x185124[_0x1632c4(_0x17a5b7._0x48b9d5,0x107)](_0x3dffd3,Error)?_0x3dffd3[_0x1632c4(_0x17a5b7._0x5d9d62,_0x17a5b7._0x293ef3)]:String(_0x3dffd3)):'❌\x20推进阶段失败:\x20'+(_0x185124['PCXfk'](_0xd007c0,_0x563da5)?_0x5084f7['message']:_0x185124[_0x47f2d7(_0x17a5b7._0x2b0931,0x165)](_0x4658f6,_0xcb2dcf));}}});}function createNewProjectTool(_0x390dab){const _0x3022e6={_0x316177:0x1e7,_0x1c069e:0x49,_0x228e38:0x55,_0x100385:0x6f,_0x559b28:0x4b,_0x295370:0x1f5,_0x22719d:0x259,_0x5450ff:0x263},_0x20f25f={_0x4290e2:0x72,_0x3ebe8d:0x2ae,_0x49197a:0xe9,_0xc03196:0xc5,_0x593c80:0x33a,_0x42a180:0x2f0,_0x3ce087:0x306,_0x249040:0xdf,_0x41a0e3:0xb6,_0x4c85ad:0xd6,_0x2de8bd:0xb1,_0xcf579:0xb8,_0x3bed8a:0xfa,_0x3721b8:0x129},_0x2287f7={_0x1c98ca:0x140},_0x2326b0={_0xb08dba:0x2ea},_0x5b695b={'ndfbi':function(_0x4d1213,_0x2973bf){return _0x4d1213 instanceof _0x2973bf;},'aCJtf':function(_0x250905,_0x4a0c8e){return _0x250905!==_0x4a0c8e;},'vGVjt':function(_0x31d014,_0x1d34a0){return _0x31d014 instanceof _0x1d34a0;},'AxfiM':function(_0x11a6dc,_0x24f6a3){return _0x11a6dc(_0x24f6a3);},'rEfbS':function(_0x1ced4e,_0x20b214){return _0x1ced4e(_0x20b214);}};function _0x4fe79a(_0x22a2db,_0x4ab373){return _0x2f24(_0x22a2db- -_0x2326b0._0xb08dba,_0x4ab373);}const _0x297c50=getStateFilePath(_0x390dab);function _0x1ff55c(_0x1a7d08,_0x3e5ea7){return _0x2f24(_0x1a7d08- -_0x2287f7._0x1c98ca,_0x3e5ea7);}return _0x5b695b[_0x1ff55c(-0x69,-0x4f)](tool,{'description':_0x4fe79a(-0x22d,-_0x3022e6._0x316177)+_0x1ff55c(-_0x3022e6._0x1c069e,-_0x3022e6._0x228e38)+_0x4fe79a(-0x257,-0x29b)+_0x1ff55c(-0x71,-0xa1)+_0x1ff55c(-_0x3022e6._0x100385,-_0x3022e6._0x559b28)+'。','args':{'project_name':tool['schema'][_0x4fe79a(-0x232,-0x1f7)]()[_0x4fe79a(-_0x3022e6._0x295370,-0x1d2)](_0x4fe79a(-_0x3022e6._0x22719d,-_0x3022e6._0x5450ff))},async 'execute'(_0x3f54e7){function _0x2763ff(_0x594381,_0x53d104){return _0x4fe79a(_0x594381- -0xe6,_0x53d104);}function _0x191731(_0x162ca7,_0x54d524){return _0x1ff55c(_0x162ca7-0x13b,_0x54d524);}try{return _0x5b695b[_0x191731(0xa2,_0x20f25f._0x4290e2)](_0x2763ff(-0x2e2,-_0x20f25f._0x3ebe8d),_0x191731(_0x20f25f._0x49197a,_0x20f25f._0xc03196))?_0x2763ff(-_0x20f25f._0x593c80,-0x356)+(_0x5b695b[_0x2763ff(-_0x20f25f._0x42a180,-_0x20f25f._0x3ce087)](_0x3edba7,_0x4d4556)?_0x3e7d57[_0x191731(_0x20f25f._0x249040,_0x20f25f._0x41a0e3)]:_0x3221cf(_0x49b8a7)):await _0x3b70b5['newProject'](_0x297c50,_0x3f54e7[_0x191731(_0x20f25f._0x4c85ad,_0x20f25f._0x2de8bd)+'me']);}catch(_0x51d8d3){return _0x191731(0xe0,_0x20f25f._0xcf579)+(_0x5b695b['vGVjt'](_0x51d8d3,Error)?_0x51d8d3['message']:_0x5b695b[_0x191731(_0x20f25f._0x3bed8a,_0x20f25f._0x3721b8)](String,_0x51d8d3));}}});}function createUpdateOperationTool(_0x141003){const _0x1cf9ff={_0x2cd2ab:0x2c0,_0xe6d5c1:0x2e9,_0x9a5163:0x30c,_0x4cc0be:0x35f,_0x49fdf1:0x34b,_0x430acc:0x36a,_0x2955d6:0x2f3,_0x2828c4:0x2cb,_0x56ba52:0x2fc,_0x1e4c8a:0x30a,_0xcbbd55:0x2dd,_0xdf04e6:0x303,_0x3ee03f:0x342,_0x5c1e35:0x340,_0x9b77e5:0x33c,_0x5b9b21:0x32e},_0x255844={_0x52d346:0x272,_0x1e667c:0x27e,_0x58f570:0x241,_0x21179d:0x27a,_0x58b47a:0x24f,_0x4dc7e3:0x26e,_0x2a832c:0x278,_0x9f942f:0xc8,_0x1db784:0xe4,_0x2c096e:0x2a3,_0x55fa0c:0x261,_0x5e4117:0x241,_0x244c65:0x169,_0x2f073f:0xc0,_0x59fc82:0x147};function _0xbe6126(_0x4ffc85,_0x4e8e2e){return _0x2f24(_0x4e8e2e-0x279,_0x4ffc85);}function _0x4e9356(_0x316723,_0x569521){return _0x2f24(_0x569521-0x24b,_0x316723);}const _0x29470d={'JUFXV':function(_0x3763f5,_0x4a0f84){return _0x3763f5!==_0x4a0f84;},'kzAuc':_0x4e9356(0x353,0x331),'NuUYn':function(_0x5044c8,_0x2235ba){return _0x5044c8(_0x2235ba);},'mOxFm':_0x4e9356(_0x1cf9ff._0x2cd2ab,_0x1cf9ff._0xe6d5c1)+_0x4e9356(0x2d1,0x2fc)+_0x4e9356(_0x1cf9ff._0x9a5163,0x32a)},_0x3c4c6c=_0x29470d['NuUYn'](getStateFilePath,_0x141003);return tool({'description':_0xbe6126(_0x1cf9ff._0x4cc0be,_0x1cf9ff._0x49fdf1)+_0xbe6126(0x37c,_0x1cf9ff._0x430acc)+_0x4e9356(0x2ca,_0x1cf9ff._0x2955d6)+'于实时追踪\x20Agen'+'t\x20正在做什么。','args':{'agent_id':tool[_0xbe6126(_0x1cf9ff._0x2828c4,_0x1cf9ff._0x56ba52)]['string']()[_0xbe6126(0x38b,0x36e)](_0x4e9356(_0x1cf9ff._0x1e4c8a,0x31b)),'operation':tool[_0xbe6126(_0x1cf9ff._0xcbbd55,0x2fc)][_0x4e9356(0x315,_0x1cf9ff._0xdf04e6)]()[_0x4e9356(_0x1cf9ff._0x3ee03f,_0x1cf9ff._0x5c1e35)]('当前操作描述(如\x22分'+'析需求文档\x22)'),'skill':tool[_0x4e9356(0x30e,0x2ce)][_0x4e9356(0x2d9,0x303)]()[_0xbe6126(_0x1cf9ff._0x9b77e5,0x36e)](_0x29470d[_0x4e9356(_0x1cf9ff._0x5b9b21,0x2f4)])},async 'execute'(_0x316666){const _0x1bd848={_0x24bef6:0x575};function _0x15afbd(_0x21520a,_0x591577){return _0x4e9356(_0x591577,_0x21520a- -0x407);}function _0x186ed7(_0x57caab,_0xf95203){return _0x4e9356(_0x57caab,_0xf95203- -_0x1bd848._0x24bef6);}try{return await _0x3b70b5['updateOper'+_0x186ed7(-_0x255844._0x52d346,-0x22e)](_0x3c4c6c,_0x316666[_0x186ed7(-_0x255844._0x1e667c,-_0x255844._0x58f570)],_0x316666['operation'],_0x316666[_0x186ed7(-_0x255844._0x21179d,-0x2a4)]);}catch(_0x4abf5b){return _0x29470d[_0x186ed7(-_0x255844._0x58b47a,-_0x255844._0x4dc7e3)](_0x186ed7(-_0x255844._0x2a832c,-0x244),_0x29470d[_0x15afbd(-0x143,-0x170)])?_0x15afbd(-_0x255844._0x9f942f,-_0x255844._0x1db784)+_0x186ed7(-_0x255844._0x2c096e,-_0x255844._0x55fa0c)+(_0x33e7a3 instanceof _0x3dee8d?_0x5e44e9[_0x186ed7(-_0x255844._0x5e4117,-0x246)]:_0x29dcfb(_0x4e151c)):_0x15afbd(-0x131,-_0x255844._0x244c65)+(_0x4abf5b instanceof Error?_0x4abf5b[_0x15afbd(-0xd8,-_0x255844._0x2f073f)]:_0x29470d[_0x15afbd(-0x110,-_0x255844._0x59fc82)](String,_0x4abf5b));}}});}function createRegisterAgentTool(_0x82835a){const _0x253820={_0x319381:0x18c,_0x2fcccc:0x1bb,_0x221ec8:0x1ac,_0x52adf6:0x2c4,_0x10083f:0x2cc,_0x224b91:0x2f9,_0x52f182:0x2c9,_0x3e1f0f:0x336,_0x100ce0:0x314,_0x5c0996:0x2c7,_0x17f6dc:0x163,_0x4465e9:0x152,_0x5585e6:0x32b,_0x565ee2:0x336,_0x4ac436:0x331},_0x5af73a={_0x3e09d0:0x245,_0x323ed2:0x238,_0x57349c:0x27f,_0x4c39d8:0x85,_0x14333c:0xc1,_0x5726b7:0x296,_0x161b2c:0x297,_0x5bc485:0x253},_0x409299={_0x122ed1:0xde},_0x3eb0e3={'WJmyk':function(_0x2c55e0,_0x36e0bc){return _0x2c55e0 instanceof _0x36e0bc;},'PWKfm':function(_0x19b4a1,_0xc103f){return _0x19b4a1!==_0xc103f;},'PHwVC':function(_0x20b14a,_0x29469a){return _0x20b14a instanceof _0x29469a;},'bMaQs':function(_0x2c00b0,_0x16996b){return _0x2c00b0(_0x16996b);},'AMAdm':function(_0xecfbb5,_0x9567dd){return _0xecfbb5(_0x9567dd);},'WQJhG':'Agent\x20ID'},_0xa7fe00=getStateFilePath(_0x82835a);function _0x1fb7a9(_0x31b212,_0x4e5b20){return _0x2f24(_0x31b212-0x241,_0x4e5b20);}function _0x1a49cd(_0x1de95d,_0x3395d8){return _0x2f24(_0x1de95d-_0x409299._0x122ed1,_0x3395d8);}return _0x3eb0e3['AMAdm'](tool,{'description':'注册新的\x20Agent'+_0x1a49cd(_0x253820._0x319381,0x14e)+'\x20状态系统。\x0a用于并'+_0x1a49cd(_0x253820._0x2fcccc,0x1d2)+_0x1a49cd(0x1d8,_0x253820._0x221ec8)+'\x20注册自己的状态。','args':{'agent_id':tool[_0x1fb7a9(_0x253820._0x52adf6,_0x253820._0x10083f)][_0x1fb7a9(_0x253820._0x224b91,_0x253820._0x52f182)]()[_0x1fb7a9(_0x253820._0x3e1f0f,0x375)](_0x3eb0e3[_0x1a49cd(0x16c,0x17e)]),'parent_id':tool[_0x1fb7a9(0x2c4,0x2c1)][_0x1fb7a9(0x2f9,_0x253820._0x100ce0)]()[_0x1a49cd(0x1c8,0x1bd)]()[_0x1a49cd(0x1d3,0x1e5)](_0x1fb7a9(0x301,_0x253820._0x5c0996)+_0x1a49cd(_0x253820._0x17f6dc,_0x253820._0x4465e9)),'phase':tool[_0x1fb7a9(0x2c4,0x2dc)][_0x1fb7a9(0x2f9,0x301)]()[_0x1fb7a9(_0x253820._0x5585e6,0x2fb)]()[_0x1fb7a9(_0x253820._0x565ee2,_0x253820._0x4ac436)]('初始阶段(默认:\x20i'+_0x1fb7a9(0x2ee,0x32d))},async 'execute'(_0x1912ec){const _0x3ed8={_0x292472:0x22c},_0x415d9b={_0x3223b0:0x576},_0x42a6e0={_0x32be01:0x24f},_0x5cabba={'WpiFu':function(_0x22d288,_0x203156){function _0x4cd4f7(_0x61f645,_0x24185b){return _0x2f24(_0x61f645-_0x42a6e0._0x32be01,_0x24185b);}return _0x3eb0e3[_0x4cd4f7(0x2f0,0x300)](_0x22d288,_0x203156);},'GaRzT':function(_0x8661b5,_0x31bc08){return _0x8661b5(_0x31bc08);}};function _0x5be816(_0x1c54e5,_0x2849d9){return _0x1fb7a9(_0x2849d9- -_0x415d9b._0x3223b0,_0x1c54e5);}function _0x16fb49(_0x4e20ec,_0x3de871){return _0x1a49cd(_0x4e20ec- -_0x3ed8._0x292472,_0x3de871);}if(_0x3eb0e3[_0x5be816(-0x23c,-0x232)](_0x5be816(-_0x5af73a._0x3e09d0,-_0x5af73a._0x323ed2),_0x16fb49(-0x61,-0x5a)))try{return await _0x3b70b5[_0x16fb49(-0xcd,-0xcf)+'ent'](_0xa7fe00,_0x1912ec[_0x16fb49(-0x65,-0x69)],{'parentId':_0x1912ec[_0x16fb49(-0x62,-0x48)],'phase':_0x1912ec[_0x5be816(-0x27c,-_0x5af73a._0x57349c)]});}catch(_0x14d8f7){return'❌\x20注册\x20Agent'+_0x16fb49(-_0x5af73a._0x4c39d8,-0x3f)+(_0x3eb0e3[_0x5be816(-0x273,-0x286)](_0x14d8f7,Error)?_0x14d8f7['message']:_0x3eb0e3[_0x16fb49(-0x89,-_0x5af73a._0x14333c)](String,_0x14d8f7));}else return'❌\x20获取状态失败:\x20'+(_0x5cabba[_0x5be816(-0x284,-_0x5af73a._0x5726b7)](_0x151ab4,_0x47d8b4)?_0x992f10[_0x16fb49(-0x6a,-0xaa)]:_0x5cabba[_0x5be816(-_0x5af73a._0x161b2c,-_0x5af73a._0x5bc485)](_0x4b1a09,_0x524f47));}});}function createDeregisterAgentTool(_0x29aafb){const _0x4d47cd={_0xa541d2:0x261,_0x5551d2:0x28f,_0x1b3b7c:0x27a,_0x41e328:0x264,_0x5751dd:0x27c,_0x58d335:0x2be,_0x4d2fdb:0x325,_0x15ec33:0x265,_0x92b17a:0x2b0},_0x4e4937={_0x2bf302:0x1d2,_0x17c88f:0x1da,_0x3147b1:0x16,_0x706fd0:0x32,_0x59d052:0x13e,_0x70e2fe:0xd,_0x5259f0:0x27,_0x2612e3:0x176,_0x10c0c3:0x225,_0x22eb54:0x1a8,_0x46f9ad:0x175},_0x2035cf={_0x28593c:0x2e3};function _0x407293(_0x6572fe,_0x47a380){return _0x2f24(_0x47a380-0x1db,_0x6572fe);}const _0x382402={'PnUDr':_0x4b567a(-_0x4d47cd._0xa541d2,-0x2a3),'mwDZq':function(_0x1351bd,_0x543084){return _0x1351bd instanceof _0x543084;},'Giufj':function(_0x6bd9a,_0x1155a3){return _0x6bd9a(_0x1155a3);},'rFOOg':_0x407293(0x2a0,_0x4d47cd._0x5551d2)+_0x407293(_0x4d47cd._0x1b3b7c,_0x4d47cd._0x41e328)};function _0x4b567a(_0x595edf,_0x526af6){return _0x2f24(_0x526af6- -0x3a5,_0x595edf);}const _0x2aa1d1=getStateFilePath(_0x29aafb);return tool({'description':_0x407293(_0x4d47cd._0x5751dd,_0x4d47cd._0x58d335)+'状态系统注销\x20Age'+'nt。\x0a移除\x20Age'+_0x4b567a(-0x365,-_0x4d47cd._0x4d2fdb)+_0x4b567a(-0x33d,-0x327)+_0x407293(0x295,_0x4d47cd._0x15ec33),'args':{'agent_id':tool[_0x407293(0x25f,0x25e)]['string']()[_0x4b567a(-0x2d5,-_0x4d47cd._0x92b17a)](_0x382402[_0x4b567a(-0x347,-0x328)])},async 'execute'(_0x321dfa){function _0x434449(_0x41ca1f,_0x2a88ac){return _0x4b567a(_0x2a88ac,_0x41ca1f-0x144);}function _0x5a8c7e(_0xef73a8,_0x34c28d){return _0x4b567a(_0xef73a8,_0x34c28d-_0x2035cf._0x28593c);}if(_0x434449(-_0x4e4937._0x2bf302,-_0x4e4937._0x17c88f)===_0x382402[_0x5a8c7e(-_0x4e4937._0x3147b1,-_0x4e4937._0x706fd0)])return _0x5a8c7e(0xb,-0x3a)+(_0x2f44d8 instanceof _0x5ba384?_0x3d43db[_0x434449(-0x17d,-_0x4e4937._0x59d052)]:_0xce7444(_0x407a7a));else try{return await _0x3b70b5[_0x5a8c7e(0x20,0x14)+_0x5a8c7e(-0x25,0x6)](_0x2aa1d1,_0x321dfa[_0x5a8c7e(_0x4e4937._0x70e2fe,_0x4e4937._0x5259f0)]);}catch(_0x4445d3){return _0x434449(-_0x4e4937._0x2612e3,-0x1b0)+'\x20失败:\x20'+(_0x382402[_0x434449(-0x1e9,-_0x4e4937._0x10c0c3)](_0x4445d3,Error)?_0x4445d3['message']:_0x382402[_0x434449(-_0x4e4937._0x22eb54,-_0x4e4937._0x46f9ad)](String,_0x4445d3));}}});}function createProgressTool(_0x1af1fe){const _0x3b25cb={_0x317420:0x2b6,_0x13c0b0:0x31f,_0x50f95e:0x277},_0x54c81e={_0x24d671:0x284,_0x4aa780:0x31a,_0x427716:0x2f7,_0x5d7bd4:0x263,_0x56c385:0x230,_0x1f3c06:0x30e,_0x24b5ed:0x23b,_0x4dae4b:0x317,_0x354477:0x2ec},_0x27dcb1={_0x3d14f4:0x45},_0x2fbbc2={_0x18313a:0x245},_0x12e71c={'rAfHH':function(_0x4b2b4d,_0xb360){return _0x4b2b4d(_0xb360);},'qUskE':function(_0x54aa8a,_0x29e2bc){return _0x54aa8a!==_0x29e2bc;},'jzgfh':_0x4e7e5a(-0x2dd,-_0x3b25cb._0x317420),'mcOGP':function(_0x1ead4c,_0x5c1b14){return _0x1ead4c instanceof _0x5c1b14;},'kvCnt':function(_0x5a4366,_0x4e0f4c){return _0x5a4366(_0x4e0f4c);}},_0xfa6ab1=getStateFilePath(_0x1af1fe);function _0x47d203(_0x11a9fb,_0x4d3067){return _0x2f24(_0x11a9fb- -_0x2fbbc2._0x18313a,_0x4d3067);}function _0x4e7e5a(_0x8cc88a,_0x32dad3){return _0x2f24(_0x8cc88a- -0x375,_0x32dad3);}return tool({'description':_0x4e7e5a(-0x2e0,-_0x3b25cb._0x13c0b0)+_0x47d203(-0x18b,-0x1b8)+_0x47d203(-0x156,-0x143)+_0x4e7e5a(-0x2fb,-0x2bb)+_0x4e7e5a(-_0x3b25cb._0x50f95e,-0x231),'args':{},async 'execute'(){const _0xf64623={_0x234df9:0x3ea};function _0x54e26a(_0x30f220,_0x58515f){return _0x4e7e5a(_0x30f220- -_0x27dcb1._0x3d14f4,_0x58515f);}function _0x49624f(_0x490727,_0x10908b){return _0x47d203(_0x10908b-_0xf64623._0x234df9,_0x490727);}const _0x3d956f={'gchdZ':function(_0x269fc2,_0xc23e74){return _0x12e71c['rAfHH'](_0x269fc2,_0xc23e74);}};try{return _0x12e71c[_0x54e26a(-0x2c8,-_0x54c81e._0x24d671)]('QIVzJ',_0x12e71c['jzgfh'])?await _0x3b70b5[_0x54e26a(-_0x54c81e._0x4aa780,-_0x54c81e._0x427716)+'ss'](_0xfa6ab1):_0x49624f(_0x54c81e._0x5d7bd4,_0x54c81e._0x56c385)+(_0x5e76c5 instanceof _0x37d973?_0x23c55a[_0x54e26a(-0x2d6,-_0x54c81e._0x1f3c06)]:_0x3d956f[_0x54e26a(-0x2e1,-0x2f9)](_0x5d53d8,_0x44b30a));}catch(_0x2fbac6){return _0x49624f(0x1f6,_0x54c81e._0x24b5ed)+(_0x12e71c[_0x54e26a(-_0x54c81e._0x4dae4b,-0x30f)](_0x2fbac6,Error)?_0x2fbac6[_0x49624f(0x29d,0x289)]:_0x12e71c[_0x54e26a(-_0x54c81e._0x354477,-0x2ff)](String,_0x2fbac6));}}});}function createQuickTool(_0x3d7487){const _0x3fb8dc={_0x1975b4:0x391,_0x171c56:0x377,_0x50875b:0x10a,_0x1caa9:0x372,_0x52f876:0x387,_0x4da183:0x3a4},_0x3595ae={_0xea2080:0x2bb,_0x4c54e2:0x359,_0x447582:0x31b,_0x5a7c57:0x331,_0x407f18:0x350,_0x970188:0x36b,_0x3f4a36:0x21,_0x308b2a:0x2b,_0x4373d4:0x83,_0x55916e:0x77,_0x3e2598:0xc,_0xb8aac7:0x9},_0x4a979b={_0x351c04:0x3bb},_0x456f6e={_0x14ce8d:0x16};function _0x5d64dc(_0x296355,_0x5c7f02){return _0x2f24(_0x5c7f02-_0x456f6e._0x14ce8d,_0x296355);}function _0x37fa0c(_0x43cf99,_0x41abad){return _0x2f24(_0x43cf99-0x2bc,_0x41abad);}const _0xdd11e6={'rlJxF':function(_0x59eaf7,_0xffe152){return _0x59eaf7===_0xffe152;},'FRvHT':_0x37fa0c(0x39d,_0x3fb8dc._0x1975b4),'wciWy':function(_0x4c1cce,_0x39c276){return _0x4c1cce instanceof _0x39c276;},'lVBoh':function(_0x3da30f,_0x22c694){return _0x3da30f(_0x22c694);},'hGQhf':'任务描述'},_0x50a681=_0xdd11e6[_0x5d64dc(0x48,0x8d)](getStateFilePath,_0x3d7487);return tool({'description':_0x37fa0c(0x340,0x36e)+'整\x20Pipeline'+_0x37fa0c(_0x3fb8dc._0x171c56,0x3a4)+_0x5d64dc(0xc7,0xda)+_0x5d64dc(_0x3fb8dc._0x50875b,0xfe),'args':{'task':tool['schema']['string']()[_0x37fa0c(0x3b1,_0x3fb8dc._0x1caa9)](_0xdd11e6[_0x37fa0c(_0x3fb8dc._0x52f876,_0x3fb8dc._0x4da183)])},async 'execute'(_0x1ca980){function _0x26cb22(_0x527ec7,_0x4a004d){return _0x37fa0c(_0x527ec7- -0x51,_0x4a004d);}const _0x4f71e6={'GloFM':function(_0x1cb27c,_0x31afbe){return _0x1cb27c instanceof _0x31afbe;},'FmCyU':function(_0x5f3fe6,_0x225008){return _0x5f3fe6(_0x225008);}};function _0x498b3d(_0x422df9,_0x258bf4){return _0x37fa0c(_0x422df9- -_0x4a979b._0x351c04,_0x258bf4);}try{return _0xdd11e6[_0x26cb22(0x307,0x32c)](_0xdd11e6[_0x26cb22(0x2f8,_0x3595ae._0xea2080)],_0x26cb22(0x34c,_0x3595ae._0x4c54e2))?await _0x3b70b5['quickTask'](_0x50a681,_0x1ca980[_0x26cb22(_0x3595ae._0x447582,_0x3595ae._0x5a7c57)]):_0x26cb22(_0x3595ae._0x407f18,_0x3595ae._0x970188)+(_0x4f71e6[_0x498b3d(-0x65,-_0x3595ae._0x3f4a36)](_0x473d0c,_0x501420)?_0x1e5324[_0x498b3d(-0x1b,-_0x3595ae._0x308b2a)]:_0x4f71e6[_0x498b3d(-_0x3595ae._0x4373d4,-0xbe)](_0x355ec2,_0x41b509));}catch(_0xed53ac){return _0x498b3d(-_0x3595ae._0x55916e,-0x93)+(_0xdd11e6[_0x498b3d(-_0x3595ae._0x3e2598,_0x3595ae._0xb8aac7)](_0xed53ac,Error)?_0xed53ac[_0x26cb22(0x34f,0x360)]:String(_0xed53ac));}}});}const SpecOpsPlugin=async _0x49c124=>{const _0x38ae1b={_0x313e3c:0xc3,_0x15e4ab:0x105,_0x514a24:0x1d7},_0x3818b1={_0x5244e2:0x16e},_0x508a14={_0x52dcac:0x1bc},_0x24981f={'QQIDC':'specops','YCCua':function(_0x3c2884,_0x24c6e5){return _0x3c2884(_0x24c6e5);}};function _0x485761(_0x1bd6a5,_0x2aed8e){return _0x2f24(_0x2aed8e- -_0x508a14._0x52dcac,_0x1bd6a5);}const _0x4da082=_0x49c124[_0x485761(-_0x38ae1b._0x313e3c,-_0x38ae1b._0x15e4ab)];function _0x53c4c0(_0x18043b,_0x544db3){return _0x2f24(_0x544db3-_0x3818b1._0x5244e2,_0x18043b);}return{'name':_0x24981f['QQIDC'],'tool':{'specops_status':createStatusTool(_0x4da082),'specops_advance':createAdvanceTool(_0x4da082),'specops_new_project':createNewProjectTool(_0x4da082),'specops_update_operation':_0x24981f['YCCua'](createUpdateOperationTool,_0x4da082),'specops_register_agent':createRegisterAgentTool(_0x4da082),'specops_deregister_agent':createDeregisterAgentTool(_0x4da082),'specops_progress':createProgressTool(_0x4da082),'specops_quick':createQuickTool(_0x4da082),'specops_analyze_requirements':_0x24981f[_0x53c4c0(_0x38ae1b._0x514a24,0x214)](createAnalyzeRequirementsTool,_0x4da082)},'event':async _0x155874=>{}};};export default SpecOpsPlugin;
|