specops 0.3.0 → 0.3.2
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/.opencode/agent/specops-codebase-mapper.md +1 -1
- package/.opencode/agent/specops-debugger.md +1 -1
- package/.opencode/agent/specops-executor.md +9 -3
- package/.opencode/agent/specops-integration-checker.md +1 -1
- package/.opencode/agent/specops-phase-researcher.md +1 -1
- package/.opencode/agent/specops-plan-checker.md +1 -1
- package/.opencode/agent/specops-planner.md +9 -3
- package/.opencode/agent/specops-project-researcher.md +1 -1
- package/.opencode/agent/specops-research-synthesizer.md +6 -3
- package/.opencode/agent/specops-roadmapper.md +1 -1
- package/.opencode/agent/specops-work-verifier.md +1 -1
- package/dist/__integration__/fixtures/generator.d.ts +4 -0
- package/dist/__integration__/fixtures/generator.js +1 -0
- package/dist/__integration__/mocks/server.d.ts +7 -0
- package/dist/__integration__/mocks/server.js +1 -0
- package/dist/__integration__/setup.d.ts +6 -0
- package/dist/__integration__/setup.js +1 -0
- 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.d.ts +1 -0
- 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.d.ts +121 -0
- package/dist/requirement-analysis/analyzers/repository-parser.js +1 -0
- package/dist/requirement-analysis/generators/prd-generator.d.ts +90 -0
- package/dist/requirement-analysis/generators/prd-generator.js +1 -0
- package/dist/requirement-analysis/integrations/v1-integration.d.ts +73 -0
- package/dist/requirement-analysis/integrations/v1-integration.js +1 -0
- package/dist/requirement-analysis/tools/analyze-requirements.js +1 -0
- package/dist/requirement-analysis/types/analysis-result.d.ts +326 -0
- package/dist/requirement-analysis/types/analysis-result.js +1 -0
- package/dist/requirement-analysis/types/feature-mapping.d.ts +294 -0
- package/dist/requirement-analysis/types/feature-mapping.js +1 -0
- package/dist/requirement-analysis/types/index.d.ts +171 -0
- package/dist/requirement-analysis/types/index.js +1 -0
- package/dist/requirement-analysis/types/tech-stack.d.ts +213 -0
- package/dist/requirement-analysis/types/tech-stack.js +1 -0
- package/dist/requirement-analysis/utils/error-handler.d.ts +112 -0
- package/dist/requirement-analysis/utils/error-handler.js +1 -0
- package/dist/types/index.d.ts +4 -2
- package/dist/types/index.js +1 -1
- package/dist/utils/id.js +1 -1
- package/package.json +3 -2
- package/skills/competitor-search/SKILL.md +169 -0
- package/skills/demand-analysis/SKILL.md +307 -0
- package/skills/feature-search/SKILL.md +182 -0
- package/skills/requirement-analysis/README.md +464 -0
- package/skills/requirement-analysis/SKILL.md +224 -0
- package/skills/requirement-analysis/templates/feature-mapping-template.json +210 -0
- package/skills/requirement-analysis/templates/prd-template.md +104 -0
- package/skills/tech-selection/SKILL.md +198 -0
- package/dist/__e2e__/01-state-engine.e2e.test.d.ts +0 -10
- package/dist/__e2e__/01-state-engine.e2e.test.js +0 -1
- package/dist/acceptance/lazyDetector.test.d.ts +0 -1
- package/dist/acceptance/lazyDetector.test.js +0 -1
- package/dist/acceptance/reporter.test.d.ts +0 -1
- package/dist/acceptance/reporter.test.js +0 -1
- package/dist/acceptance/runner.test.d.ts +0 -1
- package/dist/acceptance/runner.test.js +0 -1
- package/dist/context/promptTemplate.test.d.ts +0 -1
- package/dist/context/promptTemplate.test.js +0 -1
- package/dist/context/techContextLoader.test.d.ts +0 -1
- package/dist/context/techContextLoader.test.js +0 -1
- package/dist/machines/agentMachine.test.d.ts +0 -1
- package/dist/machines/agentMachine.test.js +0 -1
- package/dist/machines/supervisorMachine.test.d.ts +0 -1
- package/dist/machines/supervisorMachine.test.js +0 -1
- package/dist/persistence/stateFile.test.d.ts +0 -1
- package/dist/persistence/stateFile.test.js +0 -1
package/dist/plugin-engine.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x296930,_0x1cee3e){const _0xd56a47={_0x29f36c:0x11f,_0x2b1609:0x13c,_0x13f29c:0x92,_0x3f91c2:0x53a,_0x4179fb:0x72,_0x59ab9b:0x83,_0xb219d1:0x11c,_0x67affd:0x132,_0x51af3b:0x8c,_0x27c276:0x8b,_0x44e3be:0x161,_0x36f5d7:0x81,_0x2ee491:0xed,_0x3cf533:0x113},_0x9ed7f8={_0x2fd95f:0x20f};function _0x49a768(_0x193c93,_0x44408b){return _0x1af9(_0x193c93- -_0x9ed7f8._0x2fd95f,_0x44408b);}function _0xc9a292(_0x500b65,_0x2329bf){return _0x1af9(_0x2329bf-0x3a1,_0x500b65);}const _0x1108b4=_0x296930();while(!![]){try{const _0x5a3733=parseInt(_0x49a768(-_0xd56a47._0x29f36c,-_0xd56a47._0x2b1609))/(-0x957*0x1+-0x1f6e+0x11*0x266)+-parseInt(_0x49a768(-_0xd56a47._0x13f29c,-0x63))/(-0x2*-0x581+0x14b9+-0x1fb9)*(parseInt(_0xc9a292(_0xd56a47._0x3f91c2,0x4e9))/(0x14fc+-0x2678+0x3*0x5d5))+-parseInt(_0x49a768(-0xa7,-0x94))/(0x26f+-0x16*0x140+-0x1915*-0x1)*(parseInt(_0xc9a292(0x50d,0x522))/(0x1*-0x1393+-0x1*0x69d+-0x1*-0x1a35))+parseInt(_0x49a768(-_0xd56a47._0x4179fb,-_0xd56a47._0x59ab9b))/(0x142d+-0x875+0x2*-0x5d9)*(parseInt(_0x49a768(-_0xd56a47._0xb219d1,-_0xd56a47._0x67affd))/(-0x2008+-0x40f*0x3+0x13*0x254))+-parseInt(_0x49a768(-0x79,-_0xd56a47._0x51af3b))/(-0x4*0x38f+0x1139+-0x2f5*0x1)*(parseInt(_0x49a768(-_0xd56a47._0x59ab9b,-_0xd56a47._0x27c276))/(-0x1*-0xfb6+0x1166*-0x2+0x131f))+-parseInt(_0x49a768(-0x120,-_0xd56a47._0x44e3be))/(-0xbf*0x1d+0x1*0x1505+-0x15*-0x8)*(-parseInt(_0x49a768(-_0xd56a47._0x36f5d7,-0x8b))/(-0x2*0x5bf+0xfb0*0x2+-0x13d7))+parseInt(_0x49a768(-_0xd56a47._0x2ee491,-_0xd56a47._0x3cf533))/(-0x1ad+0x59*-0x1c+0xb75);if(_0x5a3733===_0x1cee3e)break;else _0x1108b4['push'](_0x1108b4['shift']());}catch(_0x2283f9){_0x1108b4['push'](_0x1108b4['shift']());}}}(_0x2389,-0x5d2f7+-0x599c8+0x134ad4));import{existsSync,readFileSync,mkdirSync}from'node:fs';import{resolve}from'node:path';import{StateFileManager}from'./persistence/stateFile.js';import{PHASES,PIPELINE_PHASES}from'./types/index.js';import{generateAgentId}from'./utils/id.js';const _0x6aef43={};_0x6aef43['demand_ana'+'lysis']=_0x165e9e(0x1cb,0x1ea),_0x6aef43['competitor'+_0x5ee92b(0x42,0x8c)]=_0x5ee92b(0x0,-0x36),_0x6aef43[_0x165e9e(0x258,0x1fe)+'alysis']=_0x5ee92b(-0x2,-0x4),_0x6aef43['tech_selec'+'tion']='技术选型';function _0x165e9e(_0xae28fb,_0x32271b){return _0x1af9(_0x32271b-0x98,_0xae28fb);}_0x6aef43[_0x165e9e(0x1e9,0x199)]='讨论',_0x6aef43[_0x5ee92b(0x52,0x80)]='规划',_0x6aef43['execute']='执行',_0x6aef43[_0x165e9e(0x1d1,0x22a)]='验证';const PHASE_NAMES=_0x6aef43,MAX_RETRIES=0x1*0xc9+-0x1a17*-0x1+-0x271*0xb;function _0x5ee92b(_0x487d89,_0x1a2b86){const _0x4029a8={_0x17896d:0x14d};return _0x1af9(_0x487d89- -_0x4029a8._0x17896d,_0x1a2b86);}async function readStateFile(_0x57e67c){const _0x453b63={_0x132671:0x4d,_0x4fd5e4:0x57};if(!existsSync(_0x57e67c))return null;function _0x5df89a(_0x4be28d,_0xf44fcb){return _0x5ee92b(_0x4be28d-0x54,_0xf44fcb);}const _0x65bc17=new StateFileManager(_0x57e67c);return _0x65bc17[_0x5df89a(_0x453b63._0x132671,_0x453b63._0x4fd5e4)]();}async function writeStateFile(_0x2184f0,_0x2c5e26){const _0x15532a={_0x5e08cd:0x331,_0x2d4218:0x32f,_0xfd5b6b:0x102,_0x525283:0x121,_0x495ce8:0x169,_0x38193d:0x187,_0x13661e:0xe0,_0x4a482e:0xf6,_0x1ef781:0x14d,_0x5c9156:0x36d,_0x4bbba4:0x360,_0x20f066:0x102,_0x5430f0:0x2c4,_0x357d58:0x313,_0x2c73b4:0x367,_0x20a639:0xfd,_0x4d5375:0x34f,_0x1a298d:0x353,_0x53701a:0x2fb,_0xb6d99b:0xf7,_0x55213c:0xf1,_0x4d6aca:0x116,_0x5b2465:0x371,_0x47b500:0x136},_0x5f115d={};_0x5f115d[_0x457203(_0x15532a._0x5e08cd,_0x15532a._0x2d4218)]=function(_0x4af671,_0x34a408){return _0x4af671<_0x34a408;},_0x5f115d[_0x420fe1(_0x15532a._0xfd5b6b,_0x15532a._0x525283)]='BlLkt',_0x5f115d[_0x420fe1(_0x15532a._0x495ce8,_0x15532a._0x38193d)]=function(_0x117c5c,_0x24a74f){return _0x117c5c===_0x24a74f;},_0x5f115d[_0x420fe1(_0x15532a._0x13661e,0x99)]=_0x420fe1(_0x15532a._0x4a482e,_0x15532a._0x1ef781),_0x5f115d[_0x457203(_0x15532a._0x5c9156,0x381)]='乐观锁冲突';function _0x420fe1(_0x540f10,_0x26d651){return _0x5ee92b(_0x540f10-0x134,_0x26d651);}_0x5f115d[_0x420fe1(0x136,0xec)]=function(_0x4f02c6,_0x17831e){return _0x4f02c6-_0x17831e;};function _0x457203(_0x43a1d9,_0x3cfd8b){return _0x165e9e(_0x3cfd8b,_0x43a1d9-0x135);}const _0xf9001a=_0x5f115d;for(let _0x5902c2=-0x5*-0x86+0x2045+0xe5*-0x27;_0xf9001a[_0x457203(_0x15532a._0x5e08cd,_0x15532a._0x4bbba4)](_0x5902c2,MAX_RETRIES);_0x5902c2++){try{if(_0xf9001a[_0x420fe1(_0x15532a._0x20f066,0x154)]!==_0x457203(0x302,0x2e5))return _0x19195c[_0x1d953e][_0x457203(_0x15532a._0x5430f0,0x2bb)];else{const _0x1e8402=new StateFileManager(_0x2184f0);await _0x1e8402[_0x457203(_0x15532a._0x357d58,_0x15532a._0x2c73b4)](),await _0x1e8402[_0x420fe1(_0x15532a._0x20a639,0x102)](_0x2c5e26);return;}}catch(_0x4d2a9e){if(_0xf9001a[_0x457203(_0x15532a._0x4d5375,0x31e)](_0x457203(_0x15532a._0x1a298d,0x397),_0xf9001a[_0x457203(0x2c6,_0x15532a._0x53701a)]))return'❌\x20Agent\x20'+_0x2b28c1+(_0x420fe1(0xdc,0x10f)+_0x420fe1(_0x15532a._0xb6d99b,0xba));else{if(_0x4d2a9e instanceof Error&&_0x4d2a9e['message'][_0x420fe1(_0x15532a._0x55213c,_0x15532a._0x4d6aca)](_0xf9001a['yHmMS'])&&_0xf9001a[_0x457203(0x331,_0x15532a._0x5b2465)](_0x5902c2,_0xf9001a[_0x420fe1(_0x15532a._0x47b500,0x18d)](MAX_RETRIES,0xe24+0x24ee+0x11*-0x301))){await new Promise(_0x275092=>setTimeout(_0x275092,-0x2454+0xcf7+0x178f+Math[_0x457203(0x33c,0x33d)]()*(-0xbf3+-0x2650+0x1*0x32a7)));continue;}throw _0x4d2a9e;}}}}function _0x1af9(_0x2e6bea,_0x21efab){_0x2e6bea=_0x2e6bea-(-0x1c67+-0x321+0x2076);const _0x1dd4b7=_0x2389();let _0x3a3ea8=_0x1dd4b7[_0x2e6bea];if(_0x1af9['ObuYpR']===undefined){var _0x20285e=function(_0x57156e){const _0x2b28c1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17e37d='',_0x11c909='';for(let _0x2bc039=-0x20c1+0x1cb2+0x40f*0x1,_0x5c90af,_0x3d315c,_0x45cc32=-0x1*-0x1835+0xfa7+-0x2*0x13ee;_0x3d315c=_0x57156e['charAt'](_0x45cc32++);~_0x3d315c&&(_0x5c90af=_0x2bc039%(-0x1*-0x26e3+-0x2052+0x27*-0x2b)?_0x5c90af*(-0x10b*0x14+0xf13+-0x67*-0xf)+_0x3d315c:_0x3d315c,_0x2bc039++%(0x1*0x23cc+-0x24fd+0x135))?_0x17e37d+=String['fromCharCode'](-0x1cee+-0x243+0x2030&_0x5c90af>>(-(-0x19*-0x2d+-0x10ed+0xc8a)*_0x2bc039&-0x1b*-0x7a+0x1*0x178f+-0x2467*0x1)):0x20e8+-0x5d7+-0x1b11){_0x3d315c=_0x2b28c1['indexOf'](_0x3d315c);}for(let _0x30aeb9=-0x153a+-0x14d+0x1687,_0x434029=_0x17e37d['length'];_0x30aeb9<_0x434029;_0x30aeb9++){_0x11c909+='%'+('00'+_0x17e37d['charCodeAt'](_0x30aeb9)['toString'](-0x1*0x348+-0x8ad+0x11*0xb5))['slice'](-(0x36+0x184f+-0x1883));}return decodeURIComponent(_0x11c909);};_0x1af9['ohZQIx']=_0x20285e,_0x1af9['euKlDK']={},_0x1af9['ObuYpR']=!![];}const _0x417f95=_0x1dd4b7[-0x2*-0x1f7+-0x4*0x4be+0x16*0xaf],_0x794210=_0x2e6bea+_0x417f95,_0x1e4c50=_0x1af9['euKlDK'][_0x794210];return!_0x1e4c50?(_0x3a3ea8=_0x1af9['ohZQIx'](_0x3a3ea8),_0x1af9['euKlDK'][_0x794210]=_0x3a3ea8):_0x3a3ea8=_0x1e4c50,_0x3a3ea8;}function computeOverallPhase(_0x3534a2){const _0x270fdd={_0x137f2a:0x186,_0x47f6c6:0x150,_0x5552f7:0x37c,_0x1512a1:0x146},_0x4c5129={};_0x4c5129[_0x38cc6b(0x382,0x3b2)]=function(_0x2cc4a1,_0x5d6015){return _0x2cc4a1!==_0x5d6015;},_0x4c5129['XnDVZ']=_0x50b938(-0x160,-0x146);function _0x50b938(_0x1df578,_0x141d13){return _0x5ee92b(_0x141d13- -0xf7,_0x1df578);}const _0x391649=_0x4c5129;for(const _0x48d05a of Object[_0x50b938(-_0x270fdd._0x137f2a,-_0x270fdd._0x47f6c6)](_0x3534a2)){if(_0x391649[_0x38cc6b(0x407,0x3b2)](_0x3534a2[_0x48d05a][_0x38cc6b(0x3a3,_0x270fdd._0x5552f7)],_0x391649[_0x50b938(-0xc7,-0x11f)]))return _0x3534a2[_0x48d05a]['phase'];}function _0x38cc6b(_0xcc64b8,_0xc38c5){return _0x165e9e(_0xcc64b8,_0xc38c5-0x1ed);}return _0x50b938(-0x153,-_0x270fdd._0x1512a1);}export async function getStatus(_0x36c205){const _0x4a7ec2={_0x124eb0:0x18f,_0x162e6a:0x9,_0x520cbd:0x2a,_0x4fd57a:0x81,_0x5d6965:0x70,_0x424be5:0x3f,_0xb42b7d:0x212,_0xcaff7e:0x1bf,_0x11ee7d:0x1a,_0x49d3da:0x12,_0x413d73:0x185,_0x41cdcb:0x198,_0x459e58:0x84,_0x2cfeac:0x86,_0x3ddc97:0x7d,_0x140004:0x27,_0x5b3729:0x119,_0x372bf1:0x28,_0x2cbb68:0xf,_0x5101ed:0x175,_0x3d02ed:0x16d,_0x20467d:0xc9,_0x5046dc:0x6f,_0x447195:0x1c0,_0x515441:0x17,_0x4873e2:0x13,_0x4bcfc4:0x1e9,_0x547f08:0x1e5,_0x329735:0x154,_0x275977:0x1a3,_0x2cacca:0x46,_0x182644:0x102,_0x1e4c8e:0x29,_0x45797f:0x28,_0x1bcfdd:0xe,_0x4eab25:0x25,_0x342beb:0x17f,_0x2b8edb:0x191,_0x239f89:0x40,_0xc6102a:0x4e,_0x5e82d2:0x1e,_0x27245f:0x1e6,_0x309924:0x164,_0x595c04:0x1ed,_0x6eec50:0x2a,_0x1a7046:0x179,_0x1ce12e:0x3a,_0x2464e0:0x19b,_0x41f17d:0x20b,_0x412cd5:0x1ee,_0x5ba03d:0x18b,_0x4bdb9a:0xa1,_0x30b137:0x1f5,_0x11acd3:0x221,_0x5205d6:0x198,_0x1a46d5:0x1c3,_0xb0485e:0x1a4,_0x6804b5:0x53,_0x542d55:0x23,_0x1e9d8f:0x1dd,_0x5ac5c8:0x1e1},_0x3dc586={_0x12d52f:0x384},_0x4e3aa9={};_0x4e3aa9[_0x54e526(-0x142,-_0x4a7ec2._0x124eb0)]=function(_0x195fd1,_0x453c06){return _0x195fd1-_0x453c06;},_0x4e3aa9['MIRGI']=function(_0x46d917,_0x48c978){return _0x46d917+_0x48c978;},_0x4e3aa9[_0x368d31(_0x4a7ec2._0x162e6a,_0x4a7ec2._0x520cbd)]=_0x54e526(-0x216,-0x1ee),_0x4e3aa9[_0x368d31(0x6c,_0x4a7ec2._0x4fd57a)]=function(_0x17f8d6,_0x19526c){return _0x17f8d6>=_0x19526c;},_0x4e3aa9[_0x368d31(_0x4a7ec2._0x5d6965,_0x4a7ec2._0x424be5)]=function(_0x2ea1ef,_0x51c424){return _0x2ea1ef-_0x51c424;},_0x4e3aa9['VVlTX']=function(_0x296074,_0x3af92f){return _0x296074+_0x3af92f;},_0x4e3aa9[_0x54e526(-_0x4a7ec2._0xb42b7d,-0x1e8)]=_0x54e526(-_0x4a7ec2._0xcaff7e,-0x19c),_0x4e3aa9[_0x368d31(_0x4a7ec2._0x11ee7d,_0x4a7ec2._0x49d3da)]=_0x54e526(-_0x4a7ec2._0x413d73,-0x1bb),_0x4e3aa9[_0x54e526(-_0x4a7ec2._0x41cdcb,-0x195)]=_0x368d31(_0x4a7ec2._0x459e58,_0x4a7ec2._0x2cfeac)+_0x368d31(-0xc,0x8),_0x4e3aa9[_0x368d31(_0x4a7ec2._0x3ddc97,0x8b)]=_0x368d31(0x7d,_0x4a7ec2._0x140004)+'D\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x54e526(-_0x4a7ec2._0x5b3729,-0x169)+'\x20\x20\x20\x20\x20\x20|\x20操作'+_0x368d31(-_0x4a7ec2._0x372bf1,_0x4a7ec2._0x2cbb68)+_0x54e526(-0x17c,-0x15f)+'工具';const _0x4674b9=_0x4e3aa9;function _0x54e526(_0x40d5a9,_0x4e7bf2){return _0x165e9e(_0x40d5a9,_0x4e7bf2- -_0x3dc586._0x12d52f);}if(!existsSync(_0x36c205))return'⚠️\x20\x20状态文件不存在'+_0x54e526(-0x13a,-_0x4a7ec2._0x5101ed)+_0x54e526(-_0x4a7ec2._0x5b3729,-0x153);const _0x26645b=readFileSync(_0x36c205,_0x54e526(-0x176,-_0x4a7ec2._0x3d02ed)),_0x23f475=JSON[_0x368d31(_0x4a7ec2._0x20467d,_0x4a7ec2._0x5046dc)](_0x26645b),_0x11fd45=[];_0x11fd45[_0x368d31(-0x18,0x17)](_0x54e526(-0x1b4,-_0x4a7ec2._0x447195)+_0x23f475['project']['name']),_0x11fd45['push']('\x20\x20\x20当前阶段:\x20'+(PHASE_NAMES[_0x23f475[_0x368d31(_0x4a7ec2._0x515441,_0x4a7ec2._0x4873e2)][_0x368d31(0x4,0x2d)+'se']]??_0x23f475[_0x54e526(-0x1b4,-_0x4a7ec2._0x4bcfc4)]['currentPha'+'se'])),_0x11fd45[_0x54e526(-0x1d7,-_0x4a7ec2._0x547f08)](_0x368d31(0x2d,0x2e)+_0x23f475[_0x54e526(-_0x4a7ec2._0x329735,-_0x4a7ec2._0x275977)]),_0x11fd45[_0x368d31(_0x4a7ec2._0x2cacca,0x17)](_0x368d31(_0x4a7ec2._0x182644,0xa8)+_0x23f475[_0x368d31(_0x4a7ec2._0x1e4c8e,_0x4a7ec2._0x45797f)]);const _0x5e9cb9=_0x23f475[_0x368d31(-_0x4a7ec2._0x162e6a,0x4d)],_0x2d633f=Object[_0x368d31(-0x1,0x4)](_0x5e9cb9);if(_0x2d633f[_0x54e526(-0x18d,-0x1c1)]===-0xd4d+-0x60f+-0x2*-0x9ae){if(_0x4674b9['ywXpX']===_0x368d31(_0x4a7ec2._0x1bcfdd,_0x4a7ec2._0x4eab25)){const _0x1854c9=_0x520716[_0x54e526(-_0x4a7ec2._0x342beb,-_0x4a7ec2._0x2b8edb)](_0x3331b5);if(_0x1854c9>=0x99f+-0x1*0x12b3+0x914)return _0x1854c9<_0x4674b9[_0x54e526(-_0x4a7ec2._0x3d02ed,-0x18f)](_0x22c57e[_0x368d31(_0x4a7ec2._0x239f89,0x3b)],-0x78b*-0x2+-0xbd2+0x5*-0xa7)?_0x1537e8[_0x4674b9[_0x368d31(_0x4a7ec2._0xc6102a,_0x4a7ec2._0x5e82d2)](_0x1854c9,-0x2548*-0x1+0x1b62+0x40a9*-0x1)]:_0x4674b9['deNBP'];const _0x3379db=_0x4ec5f4[_0x54e526(-_0x4a7ec2._0x27245f,-_0x4a7ec2._0x2b8edb)](_0x5b4ff3);if(_0x4674b9[_0x54e526(-_0x4a7ec2._0x309924,-0x17b)](_0x3379db,-0x15d9+0xa5e+0xb7b*0x1))return _0x3379db<_0x4674b9[_0x54e526(-_0x4a7ec2._0x595c04,-0x1bd)](_0x3176ff[_0x368d31(_0x4a7ec2._0x6eec50,0x3b)],0x399*0x1+-0x1*-0x427+-0x7bf)?_0x104690[_0x4674b9[_0x54e526(-0x19a,-_0x4a7ec2._0x1a7046)](_0x3379db,-0x2708+0x9b4*0x4+0x39)]:_0x368d31(-_0x4a7ec2._0x1ce12e,0xe);if(_0xbf87f5===_0x4674b9[_0x54e526(-_0x4a7ec2._0x2464e0,-0x1e8)])return _0x11b9b4[0x4*-0x882+0x308+0x1f00];return _0x54e526(-_0x4a7ec2._0x41f17d,-_0x4a7ec2._0x412cd5);}else return _0x11fd45['push'](_0x4674b9[_0x54e526(-0x198,-0x195)]),_0x11fd45[_0x368d31(0x86,0x80)]('\x0a');}_0x11fd45[_0x368d31(0x24,_0x4a7ec2._0x515441)](''),_0x11fd45[_0x368d31(-0x1d,0x17)](_0x4674b9[_0x54e526(-_0x4a7ec2._0x5ba03d,-0x171)]);function _0x368d31(_0x47af9d,_0x1008d0){return _0x165e9e(_0x47af9d,_0x1008d0- -0x188);}_0x11fd45['push'](_0x54e526(-0x187,-0x14b)+'-'[_0x368d31(0xde,_0x4a7ec2._0x4bdb9a)](-0x1e75+-0x1e36+0x3cfb));for(const _0x505ba2 of _0x2d633f){const _0x550199=_0x5e9cb9[_0x505ba2],_0x2b0c7d=PHASE_NAMES[_0x550199[_0x54e526(-0x1ab,-_0x4a7ec2._0x30b137)]]??_0x550199[_0x54e526(-_0x4a7ec2._0x11acd3,-0x1f5)],_0x22b04e=_0x550199['currentOpe'+'ration']||'-',_0x1eea60=_0x550199[_0x54e526(-_0x4a7ec2._0x5205d6,-_0x4a7ec2._0x1a46d5)+'ll']||'-';_0x11fd45[_0x54e526(-_0x4a7ec2._0xb0485e,-_0x4a7ec2._0x547f08)]('\x20\x20\x20'+_0x505ba2['padEnd'](0x14ef+0x161b+0x7d*-0x58)+_0x368d31(_0x4a7ec2._0x6804b5,0x1b)+_0x2b0c7d[_0x368d31(-_0x4a7ec2._0x1bcfdd,_0x4a7ec2._0x542d55)](-0x171a+0x2b*-0x10+0x19d8)+_0x54e526(-_0x4a7ec2._0x1e9d8f,-_0x4a7ec2._0x5ac5c8)+_0x22b04e[_0x368d31(0x23,_0x4a7ec2._0x542d55)](0x13e8+-0x1b14+0x1*0x741)+'\x20|\x20'+_0x1eea60);}return _0x11fd45[_0x368d31(0x3d,0x80)]('\x0a');}export async function advancePhase(_0x2bc413,_0x4ceff1){const _0x52c274={_0x29c52d:0x386,_0x4f563a:0x3a8,_0xcf57b4:0x9b,_0x2bee08:0xd0,_0x284bcc:0x119,_0x5e7db3:0xad,_0x1e72ab:0x5b,_0x45b6cb:0x78,_0xecfe8f:0xa5,_0x3ac362:0xcd,_0x3e60c4:0x7d,_0x5173a1:0x90,_0x404512:0xab,_0x5f2133:0x6a,_0x240976:0x373,_0x5225cb:0x56,_0x2e937c:0x3c5,_0x17bdad:0x62,_0x1a49ec:0x2f,_0x419e56:0xd,_0x57dc1f:0x5a,_0x19c307:0x318,_0x3fe607:0x332,_0x115d6d:0x361,_0x4247b0:0x41,_0x2eef54:0x32b,_0x2cb905:0x334,_0x5d78ed:0x92,_0x15c0a1:0x359,_0x2904da:0x35f,_0x21c15a:0x35f,_0x3b08e7:0x27,_0x358800:0x2fb,_0x4583fa:0x31b,_0xb2b01c:0x2dc,_0x45fa9b:0x31b,_0x2f262d:0x6c,_0x572636:0x45,_0x3e60f6:0x78,_0x10db5a:0x312,_0x38d89e:0x327,_0x19260b:0xaf,_0x5a8b63:0xec,_0x56b3bf:0x333,_0x3f1c83:0x363,_0x14cc07:0x3a3,_0x2fd629:0x3d3,_0x74c790:0x399,_0x54b5c3:0x82,_0x4249e7:0x48,_0x4ef0ff:0xbf,_0x735d33:0xaa},_0x3c9193={'aDoNH':function(_0x359936,_0xc82a94){return _0x359936(_0xc82a94);},'cWHAS':function(_0x4fc6dd,_0x3aef84){return _0x4fc6dd!==_0x3aef84;},'gqCqm':'nxINx','lyjUg':_0x403a90(_0x52c274._0x29c52d,_0x52c274._0x4f563a),'Pucdx':function(_0x1ac69f,_0x1529dd){return _0x1ac69f===_0x1529dd;},'tOOiD':function(_0x1e14d5,_0x2e34c9){return _0x1e14d5(_0x2e34c9);},'VsrBr':function(_0x327663,_0x344d68,_0x431348){return _0x327663(_0x344d68,_0x431348);},'vEDaY':_0x403a90(0x347,0x322)},_0x36dc4b=await _0x3c9193[_0x3f47fa(_0x52c274._0xcf57b4,0x4e)](readStateFile,_0x2bc413);if(!_0x36dc4b)return _0x3f47fa(0xc3,_0x52c274._0x2bee08)+',请先运行\x20new-'+_0x3f47fa(0xe8,_0x52c274._0x284bcc);const _0x241b46=_0x4ceff1??Object['keys'](_0x36dc4b['agents'])[_0x3f47fa(0xe6,_0x52c274._0x5e7db3)](_0x5cad11=>_0x36dc4b['agents'][_0x5cad11][_0x3f47fa(0x46,0x5)]!=='completed');if(!_0x241b46){if(_0x3c9193[_0x3f47fa(_0x52c274._0x1e72ab,_0x52c274._0x45b6cb)](_0x3c9193[_0x3f47fa(0xba,_0x52c274._0xecfe8f)],_0x3c9193[_0x3f47fa(_0x52c274._0x3ac362,0x98)]))return _0x3f47fa(_0x52c274._0x3e60c4,_0x52c274._0x5173a1)+_0x403a90(0x3d2,0x3b7);else{const _0x121d8a=_0x1ff22b[_0x30b6b1],_0x1e5024=_0x25e292[_0x121d8a[_0x3f47fa(0x46,0x41)]]??_0x121d8a[_0x403a90(0x2cf,0x31b)],_0x454b6d=_0x121d8a[_0x3f47fa(_0x52c274._0x404512,_0x52c274._0x5f2133)+_0x403a90(_0x52c274._0x240976,0x31a)]||'-',_0x461d3d=_0x121d8a['currentSki'+'ll']||'-';_0x5066db[_0x3f47fa(_0x52c274._0x5225cb,0x92)](_0x403a90(0x400,_0x52c274._0x2e937c)+_0x53c886[_0x3f47fa(_0x52c274._0x17bdad,_0x52c274._0x1a49ec)](-0x1fd3+-0xf3d+-0x7db*-0x6)+_0x3f47fa(0x5a,_0x52c274._0x419e56)+_0x1e5024['padEnd'](0x1da9+-0x5*-0x652+-0x3d35)+_0x3f47fa(_0x52c274._0x57dc1f,0x2e)+_0x454b6d[_0x403a90(_0x52c274._0x19c307,0x337)](-0x1395+-0x170f*0x1+-0x2ab9*-0x1)+_0x403a90(0x34d,0x32f)+_0x461d3d);}}const _0x390b64=_0x36dc4b[_0x403a90(_0x52c274._0x3fe607,_0x52c274._0x115d6d)][_0x241b46];function _0x403a90(_0x29ef7e,_0x39b073){return _0x5ee92b(_0x39b073-0x371,_0x29ef7e);}if(!_0x390b64)return _0x3f47fa(0x4c,0x3e)+_0x241b46+(_0x3f47fa(0x44,_0x52c274._0x4247b0)+_0x403a90(_0x52c274._0x2eef54,_0x52c274._0x2cb905));if(_0x390b64[_0x403a90(0x2e9,0x31b)]===_0x3f47fa(0x4d,0x46))return _0x3c9193[_0x3f47fa(_0x52c274._0x5d78ed,0xd0)](_0x403a90(_0x52c274._0x15c0a1,_0x52c274._0x2904da),_0x403a90(0x3a5,_0x52c274._0x21c15a))?'['+_0x241b46+_0x3f47fa(0x72,_0x52c274._0x3b08e7):_0x403a90(0x3a8,0x3b8)+_0x5107df+_0x403a90(_0x52c274._0x358800,0x32c);const _0x2b6d88=computeNextPhase(_0x390b64['phase']),_0x55e481=PHASE_NAMES[_0x390b64[_0x3f47fa(0x46,0x2e)]]??_0x390b64[_0x403a90(0x359,_0x52c274._0x4583fa)],_0x53345a=PHASE_NAMES[_0x2b6d88]??_0x2b6d88,_0x387155={..._0x36dc4b['agents']},_0x367cd3=_0x387155,_0x52f3c4={..._0x390b64};_0x52f3c4[_0x403a90(_0x52c274._0xb2b01c,_0x52c274._0x45fa9b)]=_0x2b6d88,_0x52f3c4[_0x3f47fa(_0x52c274._0x404512,_0x52c274._0x2f262d)+_0x3f47fa(_0x52c274._0x572636,0x85)]='',_0x52f3c4[_0x3f47fa(_0x52c274._0x3e60f6,0x61)+'ll']='',_0x367cd3[_0x241b46]=_0x52f3c4;const _0x1df5e0=_0x3c9193[_0x403a90(0x2d9,_0x52c274._0x10db5a)](computeOverallPhase,_0x367cd3),_0x180e39={..._0x36dc4b[_0x403a90(0x352,_0x52c274._0x38d89e)]};_0x180e39[_0x3f47fa(0x6c,_0x52c274._0x19260b)+'se']=_0x1df5e0;function _0x3f47fa(_0x348deb,_0xdb7e42){return _0x165e9e(_0xdb7e42,_0x348deb- -0x149);}const _0x557a8e={};_0x557a8e[_0x403a90(0x2de,0x327)]=_0x180e39,_0x557a8e[_0x403a90(0x33a,_0x52c274._0x115d6d)]=_0x367cd3,_0x557a8e['machineSna'+_0x3f47fa(0xea,_0x52c274._0x5a8b63)]=_0x36dc4b[_0x403a90(_0x52c274._0x56b3bf,_0x52c274._0x3f1c83)+_0x403a90(_0x52c274._0x14cc07,0x3bf)],await _0x3c9193[_0x403a90(0x390,0x372)](writeStateFile,_0x2bc413,_0x557a8e);const _0x39754e=[];return _0x39754e['push']('['+_0x241b46+']\x20'+_0x55e481+_0x403a90(_0x52c274._0x2fd629,_0x52c274._0x74c790)+_0x53345a),_0x2b6d88===_0x3c9193[_0x3f47fa(0xd8,0x9b)]&&_0x39754e['push'](_0x3f47fa(_0x52c274._0x54b5c3,_0x52c274._0x4249e7)+_0x241b46+_0x403a90(0x40a,0x3b7)),_0x39754e[_0x3f47fa(_0x52c274._0x4ef0ff,_0x52c274._0x735d33)]('\x0a');}function computeNextPhase(_0x34c98d){const _0x35e458={_0x256298:0x1d4,_0x27e95e:0x1f8,_0x35f896:0x218,_0x1cb93f:0xca,_0x49060b:0x8a,_0x42fa96:0x229,_0x40bc3c:0x39,_0x23f352:0x4c,_0x163b4d:0x1e2,_0x361478:0x91,_0x5105c3:0x28,_0x42ac3d:0x76,_0x5de080:0x99,_0x3aa548:0x32,_0x2fbb79:0x289,_0x500e4c:0x225,_0x590c4b:0x236,_0x368a9f:0xd5,_0x519ad8:0x282,_0x28b14f:0x244,_0x4225ee:0x291,_0x545fc3:0x2bf},_0xfcf5b={};function _0x357b3a(_0x5d19a1,_0x99479a){return _0x5ee92b(_0x99479a- -0x6d,_0x5d19a1);}_0xfcf5b[_0x36eeff(-0x21d,-_0x35e458._0x256298)]=function(_0x844f15,_0x45cd62){return _0x844f15!==_0x45cd62;},_0xfcf5b[_0x36eeff(-_0x35e458._0x27e95e,-0x1f5)]=_0x357b3a(-0x9e,-0xbc),_0xfcf5b[_0x36eeff(-0x23c,-_0x35e458._0x35f896)]=_0x357b3a(-_0x35e458._0x1cb93f,-_0x35e458._0x49060b),_0xfcf5b[_0x36eeff(-0x264,-_0x35e458._0x42fa96)]=function(_0x2e9d58,_0x1b54a2){return _0x2e9d58<_0x1b54a2;},_0xfcf5b['ReOPw']=function(_0x314276,_0xc837bc){return _0x314276+_0xc837bc;},_0xfcf5b[_0x357b3a(-_0x35e458._0x40bc3c,-_0x35e458._0x23f352)]=function(_0x87bd79,_0x29e4f5){return _0x87bd79===_0x29e4f5;},_0xfcf5b['ADWzj']=function(_0x56942f,_0x3d51d0){return _0x56942f<_0x3d51d0;};function _0x36eeff(_0x59f31f,_0x2bc11a){return _0x165e9e(_0x2bc11a,_0x59f31f- -0x418);}_0xfcf5b[_0x36eeff(-_0x35e458._0x163b4d,-0x1d2)]='idle';const _0x24a453=_0xfcf5b,_0x10aa43=PHASES[_0x357b3a(-_0x35e458._0x361478,-0x5f)](_0x34c98d);if(_0x10aa43>=-0x2*0x5ce+-0x25b3+0x314f){if(_0x357b3a(-_0x35e458._0x1cb93f,-0x80)!==_0x24a453[_0x357b3a(-_0x35e458._0x5105c3,-_0x35e458._0x42ac3d)])return _0x24a453['SJMSF'](_0x10aa43,PHASES[_0x357b3a(-0xe5,-0x8f)]-(-0x2703+0x17*-0x53+0x1*0x2e79))?PHASES[_0x24a453['ReOPw'](_0x10aa43,0x3*0x78d+-0x5*-0x2fb+-0x258d)]:_0x357b3a(-_0x35e458._0x5de080,-0xbc);else{if(_0x24a453['oJBRN'](_0x2ced27[_0x1c818d]['phase'],_0x24a453[_0x357b3a(-0x31,-_0x35e458._0x3aa548)]))return _0x350d3f[_0x1b07fb][_0x36eeff(-_0x35e458._0x2fbb79,-0x266)];}}const _0x8f2b31=PIPELINE_PHASES[_0x36eeff(-_0x35e458._0x500e4c,-0x249)](_0x34c98d);if(_0x8f2b31>=0x94d+-0xe6*0xd+0x261){if(_0x24a453['jtrHb'](_0x36eeff(-_0x35e458._0x590c4b,-0x23c),_0x357b3a(-0x69,-0x70)))return _0x24a453[_0x357b3a(-_0x35e458._0x368a9f,-0xb4)](_0x8f2b31,PIPELINE_PHASES['length']-(0x7f*0x43+0x2301+0x287*-0x1b))?PIPELINE_PHASES[_0x8f2b31+(-0x1b07+-0x551+0xd*0x27d)]:_0x36eeff(-_0x35e458._0x519ad8,-0x27a);else{const _0x2c5089=_0x82923d[_0x173cec[_0x36eeff(-0x244,-0x204)]];_0x4bc17a[_0x209dcf[_0x36eeff(-_0x35e458._0x28b14f,-_0x35e458._0x4225ee)]]={..._0x2c5089,'childIds':_0x2c5089[_0x357b3a(-0x6e,-0xc8)][_0x357b3a(-0x85,-0xba)](_0x744a77=>_0x744a77!==_0x5e33d5)};}}if(_0x34c98d===_0x24a453['JqKvy'])return PHASES[0x1659+0x1366+-0x1*0x29bf];return _0x36eeff(-0x282,-_0x35e458._0x545fc3);}export async function newProject(_0x53bca2,_0x1e1213){const _0x1031ec={_0x5112ea:0x1a8,_0x14b583:0x1c8,_0x38ab1c:0x1a3,_0x372609:0x20e,_0x20345d:0x1f8,_0x46db97:0x235,_0xe4afaa:0x1d6,_0x2f85fe:0x1ba,_0x260baf:0x1d3,_0x456c38:0x13d,_0x5d655d:0x193,_0x53d220:0x21d,_0x3815ed:0x1c2,_0x448bad:0x241,_0xaa156d:0x18e,_0x129420:0x1dc,_0x48ecc1:0x1e2,_0x45e602:0x22f},_0x4a232c={_0x791456:0x1cb},_0xe41b07={'chPIe':function(_0x5ca509,_0x5d3f2f){return _0x5ca509(_0x5d3f2f);},'XMdAq':function(_0x114bfd){return _0x114bfd();},'FZHOl':_0x9a560d(-_0x1031ec._0x5112ea,-_0x1031ec._0x14b583),'pszzR':_0x9a560d(-0x1b3,-_0x1031ec._0x38ab1c)},_0x670ada=resolve(_0x53bca2,'..');if(!_0xe41b07[_0x5202c3(_0x1031ec._0x372609,0x1db)](existsSync,_0x670ada)){const _0x40291c={};_0x40291c[_0x9a560d(-0x1e2,-0x1d6)]=!![],mkdirSync(_0x670ada,_0x40291c);}const _0x28c147=_0xe41b07[_0x9a560d(-0x1e2,-_0x1031ec._0x20345d)](generateAgentId),_0xf53a15={};_0xf53a15['agentId']=_0x28c147,_0xf53a15[_0x5202c3(_0x1031ec._0x372609,0x1f1)]=null,_0xf53a15[_0x9a560d(-0x215,-0x226)]=[],_0xf53a15['phase']=_0xe41b07[_0x5202c3(_0x1031ec._0x46db97,0x208)];function _0x5202c3(_0xea3d80,_0x25a204){return _0x5ee92b(_0x25a204-0x202,_0xea3d80);}_0xf53a15[_0x5202c3(0x1f4,0x211)+_0x9a560d(-_0x1031ec._0xe4afaa,-0x222)]='',_0xf53a15[_0x9a560d(-_0x1031ec._0x2f85fe,-0x1ef)+'ll']='';const _0x46690e=_0xf53a15,_0x277d0b={};_0x277d0b['name']=_0x1e1213;function _0x9a560d(_0x390125,_0x158aca){return _0x5ee92b(_0x158aca- -_0x4a232c._0x791456,_0x390125);}_0x277d0b[_0x5202c3(0x20d,0x1d2)+'se']=_0x9a560d(-_0x1031ec._0x260baf,-_0x1031ec._0x14b583);const _0x3b7598={};_0x3b7598[_0x28c147]=_0x46690e;const _0x235480={};_0x235480[_0x9a560d(-0x26c,-0x215)]=_0x277d0b,_0x235480[_0x5202c3(0x1f3,0x1f2)]=_0x3b7598,_0x235480[_0x9a560d(-0x1d3,-0x1d9)+'pshot']=null,await writeStateFile(_0x53bca2,_0x235480);const _0x2bd27d=[];return _0x2bd27d['push'](_0x9a560d(-_0x1031ec._0x456c38,-_0x1031ec._0x5d655d)+_0x1e1213),_0x2bd27d['push']('\x20\x20\x20目录:\x20'+_0x670ada),_0x2bd27d['push'](_0x9a560d(-0x1d4,-_0x1031ec._0x53d220)+_0x5202c3(0x1be,_0x1031ec._0x3815ed)+_0x28c147),_0x2bd27d[_0x9a560d(-_0x1031ec._0x448bad,-0x211)](_0x9a560d(-0x16b,-_0x1031ec._0xaa156d)+PIPELINE_PHASES[_0x5202c3(0x1e1,_0x1031ec._0x129420)](_0x374459=>PHASE_NAMES[_0x374459]??_0x374459)[_0x9a560d(-0x178,-0x1a8)](_0xe41b07[_0x5202c3(_0x1031ec._0x48ecc1,_0x1031ec._0x45e602)])),_0x2bd27d[_0x9a560d(-0x1e2,-0x1a8)]('\x0a');}export async function updateOperation(_0x24e20e,_0x1026e0,_0xc2ecfe,_0x2667f4){const _0x3867d0={_0x2eb48a:0x1e0,_0xff9069:0x1c2,_0x2c2caf:0x29d,_0x5a4892:0x217,_0x1caf14:0x25f,_0x5c7898:0x22e,_0x13006f:0x25a,_0x5417b0:0x217,_0x48e1d3:0x26a,_0x3d8582:0x2a6,_0x34c21e:0x286,_0xdc4d25:0x240,_0x16653c:0x23d,_0x10258b:0x273,_0x4acc9d:0x251,_0x13e980:0x2cc,_0x42a534:0x287,_0x42cf1e:0x215,_0x1bee14:0x23c,_0x530bc4:0x2e5,_0x1e2580:0x244,_0x2fb154:0x1b9,_0x3c51f2:0x178},_0x526c5c={_0x3f629c:0x297},_0x666f9f={};_0x666f9f[_0x527152(0x27c,0x2a2)]=_0x4ec757(-_0x3867d0._0x2eb48a,-_0x3867d0._0xff9069);function _0x4ec757(_0x279d87,_0x1ca28e){return _0x165e9e(_0x1ca28e,_0x279d87- -0x3ec);}const _0x557b5f=_0x666f9f,_0x4c7a91=await readStateFile(_0x24e20e);if(!_0x4c7a91)return _0x557b5f[_0x527152(_0x3867d0._0x2c2caf,0x2a2)];const _0x2091e5=_0x4c7a91[_0x4ec757(-_0x3867d0._0x5a4892,-0x20d)][_0x1026e0];if(!_0x2091e5)return'❌\x20Agent\x20'+_0x1026e0+(_0x4ec757(-_0x3867d0._0x1caf14,-_0x3867d0._0x5c7898)+_0x527152(0x249,_0x3867d0._0x13006f));const _0x2f14fe={..._0x4c7a91[_0x4ec757(-_0x3867d0._0x5417b0,-0x1e6)]},_0x28af1f=_0x2f14fe,_0x5b7fb8={..._0x2091e5};_0x5b7fb8[_0x527152(_0x3867d0._0x48e1d3,_0x3867d0._0x3d8582)+_0x527152(_0x3867d0._0x34c21e,_0x3867d0._0xdc4d25)]=_0xc2ecfe,_0x5b7fb8[_0x527152(_0x3867d0._0x16653c,_0x3867d0._0x10258b)+'ll']=_0x2667f4,_0x28af1f[_0x1026e0]=_0x5b7fb8;const _0x4d7b6e={};_0x4d7b6e[_0x4ec757(-_0x3867d0._0x4acc9d,-0x22a)]=_0x4c7a91['project'],_0x4d7b6e[_0x527152(_0x3867d0._0x13e980,_0x3867d0._0x42a534)]=_0x28af1f;function _0x527152(_0x2f2ebe,_0xadf1f5){return _0x5ee92b(_0xadf1f5-_0x526c5c._0x3f629c,_0x2f2ebe);}return _0x4d7b6e[_0x4ec757(-_0x3867d0._0x42cf1e,-_0x3867d0._0x1bee14)+_0x527152(0x2fc,_0x3867d0._0x530bc4)]=_0x4c7a91[_0x527152(_0x3867d0._0x1e2580,0x289)+_0x4ec757(-_0x3867d0._0x2fb154,-_0x3867d0._0x3c51f2)],await writeStateFile(_0x24e20e,_0x4d7b6e),_0x4ec757(-0x1bf,-0x1fd)+_0x1026e0+_0x4ec757(-0x20d,-0x1c5)+_0xc2ecfe+'\x20('+_0x2667f4+')';}export async function registerAgent(_0x479fd7,_0x246c5a,_0x52527e={}){const _0x1e9904={_0x181672:0x11a,_0x1ff75a:0x334,_0x2441da:0x321,_0x552c2a:0x328,_0x20f47f:0x2e0,_0x57b17b:0x110,_0x2cab55:0x101,_0x4de8c7:0xf7,_0x36a485:0x4f,_0x22a52b:0xc6,_0x5f43b8:0xc8,_0x278492:0x126,_0x13a126:0x2de,_0x3faf85:0x289,_0x32b62d:0x91,_0x3fcfef:0x302,_0x261548:0xb5,_0x517069:0xd5,_0x118880:0x355,_0x1fcf18:0xaa,_0x25ba69:0x9d,_0x294652:0x82,_0x22c809:0x281,_0x447fc4:0xd0,_0x548672:0x9d,_0x447818:0x2bf,_0x1fb5d8:0x27f,_0x3089b8:0x348,_0x4ef7cd:0x378,_0x30d622:0xdf,_0x4c9e1e:0xd2,_0xbad5af:0x2f0,_0xb561a1:0x297,_0x5ae1c7:0x8d,_0x227f82:0x2a6,_0x71d765:0xca,_0x3ccd2e:0x81,_0x16d928:0x10b,_0x5c2629:0xe6,_0x295188:0x80,_0x1ae86b:0x2dd,_0x193c22:0x2ec,_0x2065a2:0x2ea,_0x2929b9:0x2d5,_0x140642:0xc0,_0x357eaf:0x52,_0x445107:0x94,_0x860f24:0xb2,_0x2c3a63:0xa9,_0x4f0cbe:0xa3,_0x24839b:0x32b,_0x3268bf:0x24f,_0x354272:0x28f,_0x401ece:0x2f3,_0x9c5016:0xbf,_0x1341e8:0xc9,_0x14537f:0x34f,_0x2e5861:0x397,_0x435f36:0xbb,_0x47a6da:0xe9,_0x3aa167:0x91,_0x403e94:0x2bb,_0x34cc33:0x308,_0x2d3483:0x2d6},_0x2a0b8b={_0x595ae0:0xd7},_0x3c4268={'eKGow':function(_0x126c1e,_0x27824b){return _0x126c1e!==_0x27824b;},'cYLtu':_0x2dfed7(0x162,_0x1e9904._0x181672),'WPTBv':_0x3588f7(_0x1e9904._0x1ff75a,_0x1e9904._0x2441da),'jZzvL':_0x3588f7(_0x1e9904._0x552c2a,_0x1e9904._0x20f47f)+_0x2dfed7(_0x1e9904._0x57b17b,_0x1e9904._0x2cab55)+_0x2dfed7(0xd9,0x123),'ERKYD':_0x2dfed7(_0x1e9904._0x4de8c7,0xdf),'RQIZl':'idle','WKfoJ':function(_0x3d04c5,_0x216cf5){return _0x3d04c5!==_0x216cf5;},'NIzOr':_0x3588f7(0x2a5,0x255),'hbgzI':function(_0x5c51a2,_0xc1589e,_0x2b159d){return _0x5c51a2(_0xc1589e,_0x2b159d);}};function _0x3588f7(_0x350b2f,_0x19fb45){return _0x5ee92b(_0x350b2f-0x301,_0x19fb45);}const _0x1f5e37=await readStateFile(_0x479fd7);if(!_0x1f5e37){if(_0x3c4268[_0x2dfed7(_0x1e9904._0x36a485,0x8f)](_0x3c4268[_0x2dfed7(_0x1e9904._0x22a52b,_0x1e9904._0x5f43b8)],_0x3c4268[_0x2dfed7(0xf4,_0x1e9904._0x278492)]))return _0x3c4268[_0x3588f7(_0x1e9904._0x13a126,_0x1e9904._0x3faf85)];else _0x3d315c[_0x2dfed7(0x7d,_0x1e9904._0x32b62d)]('\x0a✅\x20Agent\x20'+_0x45cc32+_0x2dfed7(0x10c,0x11d));}if(_0x1f5e37[_0x2dfed7(0x93,0xc7)][_0x246c5a]){if(_0x3c4268['ERKYD']!==_0x3c4268['ERKYD']){const _0x5db97d=_0x3e3245[_0x2e6bea],_0x16d540=_0x21efab[_0x5db97d[_0x3588f7(0x2ab,0x251)]]??_0x5db97d[_0x3588f7(0x2ab,_0x1e9904._0x3fcfef)],_0x591702=_0x5db97d['currentOpe'+_0x2dfed7(_0x1e9904._0x261548,0x80)]||'-',_0x337fb8=_0x5db97d[_0x2dfed7(_0x1e9904._0x517069,0xb3)+'ll']||'-';_0x1dd4b7[_0x3588f7(0x2bb,0x2fe)](_0x3588f7(_0x1e9904._0x118880,0x347)+_0x3a3ea8[_0x2dfed7(_0x1e9904._0x1fcf18,_0x1e9904._0x25ba69)](-0x6d5+0x1*0x1d71+-0x168a)+_0x2dfed7(_0x1e9904._0x294652,0x95)+_0x16d540[_0x3588f7(0x2c7,_0x1e9904._0x22c809)](0x1b61+0x23ea+-0x1*0x3f3d)+'\x20|\x20'+_0x591702[_0x2dfed7(_0x1e9904._0x447fc4,_0x1e9904._0x548672)](0x2dd*0x8+0x191*-0xb+-0x4*0x166)+_0x3588f7(_0x1e9904._0x447818,_0x1e9904._0x1fb5d8)+_0x337fb8);}else return _0x3588f7(_0x1e9904._0x3089b8,_0x1e9904._0x4ef7cd)+_0x246c5a+_0x2dfed7(_0x1e9904._0x30d622,0x92);}const _0x18e8ec=_0x52527e[_0x2dfed7(_0x1e9904._0x4c9e1e,0x81)]??_0x3c4268['RQIZl'];function _0x2dfed7(_0xde7de1,_0x1c42f3){return _0x5ee92b(_0x1c42f3-_0x2a0b8b._0x595ae0,_0xde7de1);}const _0x1238b1=_0x52527e[_0x3588f7(_0x1e9904._0xbad5af,_0x1e9904._0xb561a1)]??null,_0x15d21a={};_0x15d21a['agentId']=_0x246c5a,_0x15d21a[_0x2dfed7(_0x1e9904._0x5ae1c7,0xc6)]=_0x1238b1,_0x15d21a[_0x3588f7(_0x1e9904._0x227f82,0x280)]=[],_0x15d21a[_0x2dfed7(_0x1e9904._0x71d765,_0x1e9904._0x3ccd2e)]=_0x18e8ec,_0x15d21a[_0x2dfed7(_0x1e9904._0x16d928,_0x1e9904._0x5c2629)+_0x2dfed7(0xc1,_0x1e9904._0x295188)]='',_0x15d21a[_0x3588f7(_0x1e9904._0x1ae86b,_0x1e9904._0x193c22)+'ll']='';const _0x259d92=_0x15d21a,_0x567c63={..._0x1f5e37['agents']};_0x567c63[_0x246c5a]=_0x259d92;const _0x364c1c=_0x567c63;if(_0x1238b1&&_0x364c1c[_0x1238b1]){if(_0x3588f7(_0x1e9904._0x2065a2,_0x1e9904._0x2929b9)===_0x2dfed7(0xa6,_0x1e9904._0x140642)){const _0x494633=_0x364c1c[_0x1238b1];if(!_0x494633['childIds'][_0x2dfed7(_0x1e9904._0x357eaf,_0x1e9904._0x445107)](_0x246c5a)){if(_0x3c4268[_0x2dfed7(_0x1e9904._0x860f24,_0x1e9904._0x2c3a63)]('YLiPm',_0x3c4268[_0x2dfed7(0xa9,_0x1e9904._0x4f0cbe)]))return'⚠️\x20\x20状态文件不存在'+_0x3588f7(_0x1e9904._0x24839b,0x2d5)+'project\x20命令';else{const _0x39ab59={..._0x494633};_0x39ab59[_0x3588f7(_0x1e9904._0x227f82,_0x1e9904._0x3268bf)]=[..._0x494633[_0x3588f7(0x2a6,_0x1e9904._0x354272)],_0x246c5a],_0x364c1c[_0x1238b1]=_0x39ab59;}}}else return _0x2d3785[-0xe9*0x17+-0x1017*0x1+0x7*0x54a];}const _0x145066={};_0x145066['project']=_0x1f5e37[_0x2dfed7(0x34,0x8d)],_0x145066['agents']=_0x364c1c,_0x145066[_0x3588f7(_0x1e9904._0x401ece,0x2fe)+_0x2dfed7(0xee,0x125)]=_0x1f5e37[_0x2dfed7(_0x1e9904._0x9c5016,_0x1e9904._0x1341e8)+_0x3588f7(_0x1e9904._0x14537f,_0x1e9904._0x2e5861)],await _0x3c4268['hbgzI'](writeStateFile,_0x479fd7,_0x145066);const _0x4cd1f5=PHASE_NAMES[_0x18e8ec]??_0x18e8ec,_0x3f72d2=[];_0x3f72d2[_0x2dfed7(_0x1e9904._0x435f36,0x91)](_0x2dfed7(_0x1e9904._0x47a6da,0xc1)+_0x3588f7(0x326,0x2d1)+_0x246c5a),_0x3f72d2[_0x2dfed7(0x92,_0x1e9904._0x3aa167)]('\x20\x20\x20阶段:\x20'+_0x4cd1f5);if(_0x1238b1)_0x3f72d2[_0x3588f7(_0x1e9904._0x403e94,0x30d)](_0x3588f7(_0x1e9904._0x34cc33,0x362)+':\x20'+_0x1238b1);return _0x3f72d2[_0x3588f7(0x324,_0x1e9904._0x2d3483)]('\x0a');}export async function deregisterAgent(_0x5af031,_0x30757b){const _0x3ecdc0={_0x3949f5:0xea,_0x351b13:0x90,_0x2fd5f9:0x10a,_0x196ff6:0x7f,_0x4e97ba:0x89,_0x48779b:0xc,_0x188ba2:0x2c,_0x50b40f:0xcb,_0x281607:0x42,_0x119ef8:0xb0,_0x47615b:0xb5,_0xe18d06:0x111,_0x2d1e3a:0xcc,_0x4f8dc9:0x111,_0x5a165e:0x4b,_0x2ff5de:0x26,_0x50561f:0xc1},_0x50d63b={_0x16fc23:0xc3},_0x14c68a={'qRVYC':_0x37d21b(_0x3ecdc0._0x3949f5,_0x3ecdc0._0x351b13),'mEGxa':function(_0x2b66cb,_0x36fef8){return _0x2b66cb(_0x36fef8);},'LbxbX':'idle','kdGUj':function(_0x12b3ef,_0xb68636,_0x3eb719){return _0x12b3ef(_0xb68636,_0x3eb719);}},_0x21ad36=await readStateFile(_0x5af031);if(!_0x21ad36)return _0x14c68a['qRVYC'];if(!_0x21ad36['agents'][_0x30757b])return _0x37d21b(_0x3ecdc0._0x2fd5f9,0x100)+_0x30757b+_0x37d21b(_0x3ecdc0._0x196ff6,0x6b);const _0x276d61=_0x21ad36['agents'][_0x30757b],_0x129a2f={..._0x21ad36['agents']},_0x1dae5c=_0x129a2f;delete _0x1dae5c[_0x30757b];if(_0x276d61[_0x37d21b(0xb2,0xd5)]&&_0x1dae5c[_0x276d61['parentId']]){const _0x121d19=_0x1dae5c[_0x276d61['parentId']];_0x1dae5c[_0x276d61[_0x37d21b(0xb2,_0x3ecdc0._0x4e97ba)]]={..._0x121d19,'childIds':_0x121d19[_0x37d21b(0x68,0xa4)][_0x1ae19b(-0x45,-0x6f)](_0x89720f=>_0x89720f!==_0x30757b)};}function _0x1ae19b(_0x5c8718,_0x5d3dff){return _0x165e9e(_0x5d3dff,_0x5c8718- -0x1dd);}const _0x1bcd2b=Object['keys'](_0x1dae5c);function _0x37d21b(_0xb9e0b1,_0x3b669d){return _0x5ee92b(_0xb9e0b1-_0x50d63b._0x16fc23,_0x3b669d);}const _0x1f5fc3=_0x1bcd2b['length']>0x7b9+0x1*-0x62d+-0x18c?_0x14c68a[_0x1ae19b(-_0x3ecdc0._0x48779b,-_0x3ecdc0._0x188ba2)](computeOverallPhase,_0x1dae5c):_0x14c68a[_0x37d21b(0x97,_0x3ecdc0._0x50b40f)],_0x4409f4={..._0x21ad36[_0x1ae19b(-_0x3ecdc0._0x281607,0x18)]};_0x4409f4[_0x37d21b(0x93,0x82)+'se']=_0x1f5fc3;const _0x148c87={};return _0x148c87[_0x37d21b(0x79,_0x3ecdc0._0x119ef8)]=_0x4409f4,_0x148c87[_0x1ae19b(-0x8,0x52)]=_0x1dae5c,_0x148c87[_0x37d21b(_0x3ecdc0._0x47615b,0xfd)+_0x37d21b(_0x3ecdc0._0xe18d06,0x166)]=_0x21ad36[_0x37d21b(0xb5,_0x3ecdc0._0x2d1e3a)+_0x37d21b(_0x3ecdc0._0x4f8dc9,0x12c)],await _0x14c68a[_0x1ae19b(-_0x3ecdc0._0x5a165e,0xd)](writeStateFile,_0x5af031,_0x148c87),_0x1ae19b(-0xe,_0x3ecdc0._0x2ff5de)+_0x37d21b(0xe0,_0x3ecdc0._0x50561f)+_0x30757b;}export async function showProgress(_0x132d95){const _0x3ce39a={_0x511f47:0x3e4,_0x156622:0x402,_0x2e6483:0x242,_0x41f036:0x302,_0x29fc11:0x41b,_0x4b74bf:0x31c,_0x23b2be:0x43c,_0x23e528:0x418,_0x28c1ab:0x276,_0x2aa754:0x3c8,_0x5a8e04:0x3c7,_0x4e11e1:0x250,_0x3827e4:0x20a,_0x3ab9c2:0x2c9,_0x42863d:0x2e4,_0x1dc0f0:0x2f7,_0x33fc8e:0x2d5,_0x13246f:0x2d4,_0xd3b0ab:0x25f,_0x5799c2:0x247,_0x5379d8:0x2be,_0x58a1b5:0x316,_0x514241:0x292,_0x26e137:0x286,_0x18f894:0x3f1,_0x1373ca:0x3a4,_0x19e957:0x2b3,_0x58354e:0x2cc,_0x32e4d9:0x262,_0x3dd582:0x2b1,_0x344d18:0x36c,_0x802f46:0x392,_0x2142f1:0x369,_0x1d20a3:0x296,_0x51bf39:0x2c8,_0x367475:0x319,_0x58eacd:0x305,_0x50faaf:0x3f8,_0x4a3ee7:0x392,_0x117742:0x26f,_0x3805cd:0x2bc,_0x428675:0x28a,_0x275ebd:0x33f,_0x96d376:0x3dd,_0x2c0852:0x3fa,_0x5bc7f9:0x3f4,_0x59f02e:0x382,_0x59aa1e:0x3c0,_0xfa32bb:0x3e7,_0x127e25:0x381,_0x6740ce:0x361,_0x1bd6e1:0x3de,_0x5151b8:0x396,_0x1cf009:0x39e,_0x2b6451:0x3c6,_0x5512db:0x3cd,_0x3adce2:0x398},_0x4537a8={_0x2289d0:0x1f3},_0x1380d3={'Ozhka':function(_0x1131c4,_0x93a9dc,_0xc899cb){return _0x1131c4(_0x93a9dc,_0xc899cb);},'BuGBN':function(_0x1263fe,_0x57a4d9){return _0x1263fe(_0x57a4d9);},'IRkQb':_0x4616b6(-0x267,-0x29e)+_0x5bfc32(_0x3ce39a._0x511f47,_0x3ce39a._0x156622)+_0x4616b6(-_0x3ce39a._0x2e6483,-0x200),'cKDfB':function(_0xc1e4fb,_0x5c3890){return _0xc1e4fb*_0x5c3890;},'Bhryo':function(_0x1dcffd,_0x3ef5d1){return _0x1dcffd/_0x3ef5d1;},'QGGzn':_0x4616b6(-0x2c4,-_0x3ce39a._0x41f036)+_0x5bfc32(_0x3ce39a._0x29fc11,0x3e4)+_0x4616b6(-0x258,-0x281)+_0x5bfc32(0x406,0x425)+_0x4616b6(-0x2dc,-_0x3ce39a._0x4b74bf)+_0x5bfc32(_0x3ce39a._0x23b2be,_0x3ce39a._0x23e528)+'工具','YyNeE':'\x20\x20\x20'},_0x10ca69=await _0x1380d3['BuGBN'](readStateFile,_0x132d95);if(!_0x10ca69)return _0x1380d3[_0x4616b6(-_0x3ce39a._0x28c1ab,-0x23c)];const _0x33b32a=_0x10ca69[_0x5bfc32(0x3c7,_0x3ce39a._0x2aa754)],_0x308b04=Object[_0x4616b6(-0x2e7,-0x30b)](_0x33b32a),_0x5a29a0=_0x308b04[_0x5bfc32(_0x3ce39a._0x5a8e04,0x3b6)],_0x53b5d0=_0x308b04['filter'](_0x479d2a=>_0x33b32a[_0x479d2a][_0x5bfc32(0x328,0x382)]===_0x5bfc32(0x3b0,0x389))[_0x4616b6(-0x2b0,-0x25f)],_0x3dfeb3=_0x5a29a0>-0xc6f+0x2e*-0x14+-0xb*-0x175?Math[_0x4616b6(-_0x3ce39a._0x4e11e1,-_0x3ce39a._0x3827e4)](_0x1380d3[_0x5bfc32(0x392,0x3cc)](_0x1380d3[_0x4616b6(-_0x3ce39a._0x3ab9c2,-0x2ea)](_0x53b5d0,_0x5a29a0),-0x1be9+-0x2036+0x3c83)):0x597*-0x2+0x14*-0x15a+0x49*0x86,_0x3e4831={};for(const _0x13cdc2 of _0x308b04){const _0x12ac51=_0x33b32a[_0x13cdc2][_0x4616b6(-_0x3ce39a._0x42863d,-0x2ad)];_0x3e4831[_0x12ac51]=(_0x3e4831[_0x12ac51]??0x1790+0x5*-0xd7+-0x1*0x135d)+(-0x19ac+-0x1*0x2632+0x3fdf);}const _0x125e72=[];_0x125e72[_0x4616b6(-0x2d4,-_0x3ce39a._0x1dc0f0)](_0x4616b6(-0x2c7,-_0x3ce39a._0x33fc8e)+_0x10ca69['project']['name']),_0x125e72[_0x4616b6(-_0x3ce39a._0x13246f,-0x28c)](_0x4616b6(-_0x3ce39a._0xd3b0ab,-_0x3ce39a._0x5799c2)+(PHASE_NAMES[_0x10ca69[_0x5bfc32(0x39c,0x38e)][_0x4616b6(-_0x3ce39a._0x5379d8,-0x2cd)+'se']]??_0x10ca69['project'][_0x4616b6(-0x2be,-0x27f)+'se'])),_0x125e72[_0x4616b6(-0x2d4,-_0x3ce39a._0x58a1b5)]('\x20\x20\x20版本:\x20'+_0x10ca69[_0x4616b6(-_0x3ce39a._0x514241,-_0x3ce39a._0x26e137)]);function _0x4616b6(_0x3ed914,_0x10a18c){return _0x5ee92b(_0x3ed914- -0x28e,_0x10a18c);}_0x125e72[_0x5bfc32(0x35b,0x392)]('\x20\x20\x20更新时间:\x20'+_0x10ca69[_0x5bfc32(_0x3ce39a._0x18f894,0x3a3)]),_0x125e72[_0x5bfc32(_0x3ce39a._0x1373ca,0x392)](_0x4616b6(-0x279,-0x2ab)+_0x3dfeb3+_0x4616b6(-_0x3ce39a._0x19e957,-_0x3ce39a._0x58354e)+_0x53b5d0+'/'+_0x5a29a0+_0x4616b6(-_0x3ce39a._0x32e4d9,-_0x3ce39a._0x3dd582)),_0x125e72[_0x4616b6(-0x2d4,-_0x3ce39a._0x1dc0f0)]('');function _0x5bfc32(_0x1facf3,_0x6a30cb){return _0x165e9e(_0x1facf3,_0x6a30cb-_0x4537a8._0x2289d0);}_0x125e72[_0x5bfc32(_0x3ce39a._0x344d18,_0x3ce39a._0x802f46)](_0x5bfc32(_0x3ce39a._0x2142f1,0x387));for(const [_0x495514,_0x53cf73]of Object[_0x5bfc32(0x413,0x3eb)](_0x3e4831)){const _0x2103d0=PHASE_NAMES[_0x495514]??_0x495514,_0x57de75='█'[_0x4616b6(-0x24a,-0x29e)](_0x53cf73)+'░'[_0x4616b6(-0x24a,-_0x3ce39a._0x1d20a3)](Math[_0x5bfc32(0x426,0x3e5)](0x24d+0x1f85+-0x10e9*0x2,_0x5a29a0-_0x53cf73));_0x125e72['push'](_0x5bfc32(0x3cd,0x3e1)+_0x2103d0[_0x4616b6(-_0x3ce39a._0x51bf39,-_0x3ce39a._0x367475)](0x241a*-0x1+-0x2263+0x468b)+'\x20'+_0x57de75+'\x20'+_0x53cf73);}_0x125e72['push']('');if(_0x308b04[_0x4616b6(-0x2b0,-_0x3ce39a._0x58eacd)]>-0xa56+-0x21cf+0x2c25){if(_0x5bfc32(0x3bc,_0x3ce39a._0x50faaf)===_0x5bfc32(0x404,_0x3ce39a._0x50faaf)){_0x125e72[_0x5bfc32(0x354,_0x3ce39a._0x4a3ee7)](_0x4616b6(-_0x3ce39a._0x117742,-_0x3ce39a._0x3805cd)+_0x4616b6(-0x296,-_0x3ce39a._0x428675)),_0x125e72[_0x5bfc32(_0x3ce39a._0x275ebd,_0x3ce39a._0x802f46)](_0x1380d3[_0x5bfc32(_0x3ce39a._0x96d376,0x3f2)]),_0x125e72[_0x4616b6(-0x2d4,-0x2a4)](_0x1380d3[_0x5bfc32(_0x3ce39a._0x2c0852,_0x3ce39a._0x5bc7f9)]+'-'[_0x4616b6(-0x24a,-0x251)](-0x11*0x23b+-0x3b7*0x3+0x3160));for(const _0xdb3814 of _0x308b04){const _0x400d42=_0x33b32a[_0xdb3814],_0x3fded7=PHASE_NAMES[_0x400d42[_0x5bfc32(0x32d,_0x3ce39a._0x59f02e)]]??_0x400d42[_0x5bfc32(0x3bb,_0x3ce39a._0x59f02e)],_0x3a9a79=_0x400d42[_0x5bfc32(_0x3ce39a._0x59aa1e,_0x3ce39a._0xfa32bb)+_0x5bfc32(0x38a,_0x3ce39a._0x127e25)]||'-',_0x49f46=_0x400d42['currentSki'+'ll']||'-';_0x125e72[_0x5bfc32(0x386,0x392)]('\x20\x20\x20'+_0xdb3814['padEnd'](0x26b4+0x2351+-0x49f3)+_0x5bfc32(0x381,0x396)+_0x3fded7[_0x5bfc32(_0x3ce39a._0x6740ce,0x39e)](-0xe5a+-0xa20+0x1888)+_0x5bfc32(_0x3ce39a._0x1bd6e1,_0x3ce39a._0x5151b8)+_0x3a9a79[_0x5bfc32(0x39e,_0x3ce39a._0x1cf009)](-0x14*0x18e+-0x1d03*-0x1+0x22a*0x1)+_0x5bfc32(_0x3ce39a._0x2b6451,0x396)+_0x49f46);}}else{const _0x4376fd={};_0x4376fd[_0x5bfc32(_0x3ce39a._0x18f894,_0x3ce39a._0x5512db)]=!![],_0x1380d3[_0x5bfc32(_0x3ce39a._0x3adce2,0x3bf)](_0x39624b,_0x1601ca,_0x4376fd);}}return _0x125e72['join']('\x0a');}function _0x2389(){const _0x33347d=['CM91BMq','mtHjD1btrM4','icaGicaGicb8ia','mteWshHRwMnL','x2fUywX5C2LZ','tufXwNq','CMvWzwf0','DMvYAwz5','iow3SUwUJoAiKowfQoMdQoMyTUAUTq','4PQG77Ipicbbz2vUDca','4PYfifS','ota0oti4q05mwNnk','zMLUza','icaG5PU05PAW5PE26zE0oIa','ChjVAMvJDcdLKB3KU6q','icaGicaGFcdMK43KVzW','ChnOB3q','v1buqNy','mZbxAKr4vhe','sNflDNK','CgXHBG','EuHTtvm','icaG','De9pAuq','nZGWodiWrePhvxnn','mJq4mZeXAK9mr2zZ','wuXPug0','y2HPBgrjzhm','ntK4odu3t1PWvMX4','A2v5CW','ios4JEwTMowCQos6JIbZDgf0','CMf0Aw9U','CgHHC2u','DcdORRdLVzu','BMPVAM0','A2rhvwO','icaG5yID5AEliefNzw4','icaG8j+tIcdPMlBMRRxLIiBLUim6','4P2miefNzw50ia','y29TCgXLDgvK','icaGicaGicaGia','zMLSDgvY','zgLZy3vZCW','ExDyCfG','ChjVAMvJDa','uLvot0C','zuThB3C','qurxEMO','ChvZAa','iow3SUwTMowCQo+8JoI3S+I/H+AZQowgJa','ios4JEwTMowCQa','Aw5JBhvKzxm','ihWG','y1Diqvm','DdOG','tuLsr0K','zfDkwum','zs5QC29U','r2DlDw0','qMHYEw8','CgfKrw5K','8j+tIIdPOBNNM67OV5VLUQy6ia','Dg16teC','D3jPDgu','icaGqwDLBNqGsq','DxbKyxrLzef0','tKL6t3i','zgvoqLa','B1vPqui','u0Pnu0y','y3vYCMvUDfbOyq','icaG54Mi5PYSoIa','v0TMB0O','we1Kqxe','tgj4yLG','mtK5mJa0ogjRuKfSuG','xsdLT7lLROZMIjdLHAJPG6JPMlBMRRu','icaG5lU75yQHoIa','wg5evLO','y2Hqswu','BwfW','jsaO','y3vYCMvUDfnRAq','ALP6DKW','BgvUz3rO','8j+tIIdPOBNNM67NIRBMGie6ia','AejfrKW','4PYfioAjGoACIsbbz2vUDa','u1PtDNO','q2TTu04','ENv4ruG','4PQHiow/Q+MaN+s7U+wkOEAOOEw8JW','cUkCHsbbz2vUDca','t3POA2e','qMXmA3q','Chj6z2i','4PYfiefNzw50iow3SUAZQa','icaGqwDLBNq6ia','BuvhEge','r1rivfi','verpwxq','CgfYzw50swq','ywDLBNrZ','y1LmDhu','BwfJAgLUzvnUyq','5yQH5lIn6lwW5A6m5Pw0ifbPCgu','y0TezKi','CMvJDxjZAxzL','uhvJzhG','zLnyChy','ioIVPUAdHtO','CMvHza','xsdMK43KVzZLT7lMM7tMLRa6ia','m25xq0zmEa','DMvYC2LVBG','zgnRB0S','5yQF6io95yIg5P6q','yurVtKG','56UE5zob5yIg5P6q','vNnYqNi','sKvcB1C','AwrSzq','CxvPy2S','6zYa5Rgc5yIg5P6q','rLPit2W','icaG54I2iefNzw50','CwXPue0','icaGicaG','BKnlA0i','r1nTAfK','rcaGicaGicaGia','Bwf4','Aw5KzxHpzG','y3vYCMvUDe9Wzq','r2HuEfu','vxrZtNq','CgfYC2u','zw50CMLLCW','BgLUzE+8JoEBToAoPEAjP+IHJa','icaG5A6m5OIq5BQMoIa','B0PcuK4','yuTht0K','svjRuwi','zMvHDhvYzv9HBG','uuDhEM4','mJaYndKZnMrLBe1muW','wxLozuu','6zsaoIa','z3fdCw0','icaG8j+KLIbbz2vUDa','Au5XzMq','ANrYsgi','CMfUzg9T','AM9PBG','A2zmDNm','5yAmoIa','vLzSvfG','4PQG77IpicdNIRBMGihMLOFKU7BKUi3LRzJLNkG','iokgKIa','icaG5PQc5PEGiefNzw4','77Ym6k+35ywi6l+q6kgmig5LDY0','C2XPy2u','iefNzw50kq','Chn6ELi','zM9cuum','icaG5B2t5yMn6zI25Q61oIa','nZq5nJm4BMfZEMzM','BhLQvwC','DxrMltG','tLDese8','nw5fru9PDG','s3bAzeW','ihWG6zI25Q61icaGica','BwDnEhe','8j+gLsdPOBNNM67LT7lLIjVLU7O6ia','EwfZyw4','icaG5O+q56s6oIdLV6VPGj/KU7S','AwrhuMu','DKveyvK','icaG6zI25Q615BQp5yIxoIa'];_0x2389=function(){return _0x33347d;};return _0x2389();}export async function quickTask(_0x1f33c1,_0x5520db){const _0x584e40={_0x2f1a14:0x32e,_0x3a03f4:0x36a,_0x3b74ae:0x454,_0x489203:0x405,_0x3cd313:0x44e,_0x59e5fe:0x31a,_0x4167e1:0x37e,_0x11c355:0x355,_0xe64345:0x42e,_0x48c8cd:0x454,_0x19a73e:0x2e0,_0x5cea69:0x2f2,_0xb5e262:0x450,_0x58a037:0x422,_0x38a14e:0x2e4,_0x2c2c84:0x30f,_0x5ab538:0x2a3,_0x5f1bef:0x435,_0x45354d:0x2e4,_0x379863:0x498,_0x1429d3:0x451,_0x12b719:0x48b},_0x1babdb={_0x2c0046:0x32a},_0x5b5b13={'aOwLl':function(_0x20ef95,_0x5ae60c){return _0x20ef95(_0x5ae60c);},'hpQNS':function(_0x33f3c9){return _0x33f3c9();},'UtsNt':'execute','vXkSk':_0xcae53e(_0x584e40._0x2f1a14,0x338),'GgKum':function(_0x1151e0,_0x24d3f7,_0x55e9cd){return _0x1151e0(_0x24d3f7,_0x55e9cd);}},_0x894182=await _0x5b5b13['aOwLl'](readStateFile,_0x1f33c1);if(!_0x894182){const _0x3c93c2=resolve(_0x1f33c1,'..');if(!existsSync(_0x3c93c2)){const _0x15b606={};_0x15b606[_0xcae53e(0x31f,_0x584e40._0x3a03f4)]=!![],mkdirSync(_0x3c93c2,_0x15b606);}}const _0x5b9c9b=_0x894182?.[_0x3c99bc(0x414,_0x584e40._0x3b74ae)]['name']??'quick-task',_0x48bea9=_0x894182?Object[_0x3c99bc(_0x584e40._0x489203,_0x584e40._0x3cd313)](_0x894182[_0xcae53e(_0x584e40._0x59e5fe,0x340)])[-0x1*0x1045+-0xe7e+0x1ec3]??_0x5b5b13['hpQNS'](generateAgentId):generateAgentId(),_0x126a58={'agentId':_0x48bea9,'parentId':null,'childIds':[],'phase':_0x5b5b13[_0xcae53e(0x33b,_0x584e40._0x4167e1)],'currentOperation':_0x5520db[_0xcae53e(_0x584e40._0x11c355,0x300)](-0x1994+-0x1*-0x36d+0x1627,-0x969+0x60*-0xe+0x1*0xf0d),'currentSkill':_0x5b5b13['vXkSk']},_0x4b2ac5={};_0x4b2ac5['name']=_0x5b9c9b,_0x4b2ac5[_0x3c99bc(_0x584e40._0xe64345,_0x584e40._0x48c8cd)+'se']=_0xcae53e(0x32e,0x2e1);function _0xcae53e(_0x2b92b3,_0x46fe1a){return _0x5ee92b(_0x2b92b3-_0x1babdb._0x2c0046,_0x46fe1a);}const _0x212ff6={};_0x212ff6[_0x48bea9]=_0x126a58;const _0x5aa6d0={};_0x5aa6d0[_0xcae53e(_0x584e40._0x19a73e,_0x584e40._0x5cea69)]=_0x4b2ac5,_0x5aa6d0['agents']=_0x212ff6,_0x5aa6d0[_0x3c99bc(_0x584e40._0xb5e262,0x475)+'pshot']=null,await _0x5b5b13[_0x3c99bc(_0x584e40._0x58a037,0x460)](writeStateFile,_0x1f33c1,_0x5aa6d0);function _0x3c99bc(_0xf558ce,_0x3c0ee4){return _0x165e9e(_0x3c0ee4,_0xf558ce-0x279);}const _0x4ff709=[];return _0x4ff709[_0xcae53e(_0x584e40._0x38a14e,0x30d)](_0xcae53e(_0x584e40._0x2c2c84,0x33c)),_0x4ff709[_0xcae53e(0x2e4,_0x584e40._0x5ab538)]('\x20\x20\x20项目:\x20'+_0x5b9c9b),_0x4ff709[_0xcae53e(_0x584e40._0x38a14e,0x297)](_0x3c99bc(_0x584e40._0x5f1bef,0x3df)+_0x5520db),_0x4ff709['push'](_0x3c99bc(0x449,0x476)+_0x48bea9),_0x4ff709[_0xcae53e(_0x584e40._0x45354d,0x2e7)](_0x3c99bc(_0x584e40._0x379863,0x468)+_0x3c99bc(_0x584e40._0x1429d3,_0x584e40._0x12b719)+_0x3c99bc(0x472,0x496)),_0x4ff709['join']('\x0a');}
|
|
1
|
+
function _0xc6a8d1(_0x1585a1,_0x57f331){const _0x2c3718={_0xb86a26:0x16b};return _0x2b4b(_0x57f331- -_0x2c3718._0xb86a26,_0x1585a1);}(function(_0x27c5e4,_0x35e7a2){const _0x15ed2a={_0x308fb3:0x1ac,_0x350309:0x171,_0x581c79:0x118,_0x34ba9c:0x13e,_0x365ee4:0x128,_0x1ca741:0xd3,_0x34567c:0xe7,_0x18d354:0xe1,_0x493635:0x1f9,_0x51f0a4:0xe8},_0x341fb1={_0x1de441:0xb5},_0x1955d7={_0x57874b:0x3a7};function _0x183f22(_0x18e0eb,_0x1e2d85){return _0x2b4b(_0x18e0eb- -_0x1955d7._0x57874b,_0x1e2d85);}const _0x39e9f2=_0x27c5e4();function _0x516f54(_0x213351,_0x34f11a){return _0x2b4b(_0x34f11a- -_0x341fb1._0x1de441,_0x213351);}while(!![]){try{const _0x214392=parseInt(_0x183f22(-_0x15ed2a._0x308fb3,-0x1cb))/(0x1*0x62d+0x1435*0x1+-0x1a61)*(parseInt(_0x516f54(_0x15ed2a._0x350309,0x125))/(-0x3*-0xbd8+-0xb6a*-0x1+-0x2ef*0x10))+parseInt(_0x183f22(-0x1f5,-0x1fe))/(-0x1*0x2167+-0x1*-0x1583+0x1*0xbe7)*(-parseInt(_0x516f54(_0x15ed2a._0x581c79,0xef))/(-0x1267+-0x125*0x11+0x25e0))+-parseInt(_0x516f54(_0x15ed2a._0x34ba9c,_0x15ed2a._0x365ee4))/(-0x3e*-0x7f+-0x9fd+-0x14c0)+-parseInt(_0x516f54(0x120,_0x15ed2a._0x1ca741))/(-0x18cb+-0x1ae4+-0x1f*-0x1ab)+-parseInt(_0x183f22(-0x21c,-0x216))/(0x1eef+-0x1*-0xabb+0x21*-0x143)*(-parseInt(_0x516f54(_0x15ed2a._0x34567c,_0x15ed2a._0x18d354))/(-0x21f+0x24a7+-0x2280))+-parseInt(_0x183f22(-0x23a,-0x273))/(0x18*0xb1+-0xc94+-0x3fb)*(-parseInt(_0x183f22(-_0x15ed2a._0x493635,-0x1fa))/(-0x2*0x1c9+0x3*-0x649+0x1*0x1677))+parseInt(_0x516f54(0xbf,0xea))/(-0x7*-0x2b1+-0x1d32+-0xa66*-0x1)*(parseInt(_0x516f54(0x122,_0x15ed2a._0x51f0a4))/(-0x18d*0x10+-0x9c0+-0x6ec*-0x5));if(_0x214392===_0x35e7a2)break;else _0x39e9f2['push'](_0x39e9f2['shift']());}catch(_0x8bd874){_0x39e9f2['push'](_0x39e9f2['shift']());}}}(_0x11b2,0x2b86f+0xcc0e3*0x1+-0x149ca));function _0x2b4b(_0x176699,_0x59eb7b){_0x176699=_0x176699-(0x1178+0x1bed+0x1*-0x2bfd);const _0x3b0dfd=_0x11b2();let _0x52c224=_0x3b0dfd[_0x176699];if(_0x2b4b['cuckQN']===undefined){var _0x20dc55=function(_0x525d53){const _0x51227a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x448874='',_0x1dd2ef='';for(let _0x234c9a=0x91b*0x3+0xe9+0xe1d*-0x2,_0x46469f,_0x2c4204,_0x2a2fc0=0x1*-0x1b7b+-0x158*0xb+0x2a43;_0x2c4204=_0x525d53['charAt'](_0x2a2fc0++);~_0x2c4204&&(_0x46469f=_0x234c9a%(0x15d7*0x1+-0xe12*0x2+0x3*0x21b)?_0x46469f*(0xf2a*0x1+0x1b93+-0x2a7d)+_0x2c4204:_0x2c4204,_0x234c9a++%(0xc8+-0x285*-0x6+-0xd6*0x13))?_0x448874+=String['fromCharCode'](0x1*0x21cd+0x2452+0x8a4*-0x8&_0x46469f>>(-(0x7cc+-0x52*-0x79+-0x2e8c)*_0x234c9a&0x1a1b+0x23b5+0x1ee5*-0x2)):0x130b+0x3d6*0x5+-0x5*0x7a5){_0x2c4204=_0x51227a['indexOf'](_0x2c4204);}for(let _0x2294a0=0x1*-0x19ba+0x44e+0x156c,_0x5849aa=_0x448874['length'];_0x2294a0<_0x5849aa;_0x2294a0++){_0x1dd2ef+='%'+('00'+_0x448874['charCodeAt'](_0x2294a0)['toString'](-0x5a4+0x49*-0x7a+0x287e))['slice'](-(0xc54+-0x1f99+0x1347));}return decodeURIComponent(_0x1dd2ef);};_0x2b4b['THOLld']=_0x20dc55,_0x2b4b['SggiTu']={},_0x2b4b['cuckQN']=!![];}const _0x36863f=_0x3b0dfd[0x94+-0x3*-0x295+0x1*-0x853],_0x8ad5b9=_0x176699+_0x36863f,_0x1152eb=_0x2b4b['SggiTu'][_0x8ad5b9];return!_0x1152eb?(_0x52c224=_0x2b4b['THOLld'](_0x52c224),_0x2b4b['SggiTu'][_0x8ad5b9]=_0x52c224):_0x52c224=_0x1152eb,_0x52c224;}import{existsSync,readFileSync,mkdirSync}from'node:fs';import{resolve}from'node:path';import{StateFileManager}from'./persistence/stateFile.js';import{PHASES,PIPELINE_PHASES}from'./types/index.js';import{generateAgentId}from'./utils/id.js';const _0x327361={};_0x327361[_0x3afb4b(0x104,0xec)+'t_analysis']=_0xc6a8d1(-0x27,0x27),_0x327361['demand_ana'+'lysis']=_0xc6a8d1(0x40,0x27),_0x327361[_0x3afb4b(0xfd,0x107)+'_analysis']='竞品分析',_0x327361['feature_an'+_0xc6a8d1(0x9,0x13)]=_0x3afb4b(0x16b,0x1ac),_0x327361[_0x3afb4b(0x127,0xf4)+_0xc6a8d1(0x63,0x4b)]='技术选型',_0x327361['discuss']='讨论',_0x327361[_0x3afb4b(0x141,0x11b)]='规划',_0x327361[_0xc6a8d1(0x18,0x37)]='执行',_0x327361[_0x3afb4b(0x15d,0x125)]='验证';const PHASE_NAMES=_0x327361,MAX_RETRIES=-0xc1*0x23+-0x24c5*-0x1+-0xa5d;async function readStateFile(_0x50022e){const _0x411306={_0x38fb8f:0x3b1};if(!existsSync(_0x50022e))return null;function _0x23ba5b(_0x4c4522,_0x26cc60){return _0x3afb4b(_0x26cc60-0x263,_0x4c4522);}const _0x50d3e5=new StateFileManager(_0x50022e);return _0x50d3e5[_0x23ba5b(0x3b5,_0x411306._0x38fb8f)]();}async function writeStateFile(_0x55364e,_0x4ae6d6){const _0x3629b4={_0x22d8aa:0x100,_0x1c88f3:0xbe,_0x157ad6:0x195,_0x3bbf10:0x14d,_0x4180a7:0x116,_0x33fb69:0x100,_0x2a291d:0x133,_0x49510f:0x146},_0xf4ca8d={_0x1d29aa:0x195},_0x577901={};function _0x48f5d9(_0x30df77,_0x5bb68d){return _0xc6a8d1(_0x5bb68d,_0x30df77- -_0xf4ca8d._0x1d29aa);}_0x577901[_0x48f5d9(-_0x3629b4._0x22d8aa,-0xe8)]=_0x48f5d9(-0xff,-_0x3629b4._0x1c88f3);function _0x3beba2(_0x4e41d0,_0x461ae5){return _0x3afb4b(_0x4e41d0-0x3a,_0x461ae5);}_0x577901['FzmJe']=function(_0x3133d6,_0x104dcf){return _0x3133d6-_0x104dcf;};const _0x4a3103=_0x577901;for(let _0x3e2b39=-0x14b1+0x23c8+-0xf17;_0x3e2b39<MAX_RETRIES;_0x3e2b39++){try{const _0x40c498=new StateFileManager(_0x55364e);await _0x40c498['read'](),await _0x40c498[_0x48f5d9(-_0x3629b4._0x157ad6,-_0x3629b4._0x3bbf10)](_0x4ae6d6);return;}catch(_0x1954f6){if(_0x1954f6 instanceof Error&&_0x1954f6[_0x3beba2(0x163,0x166)][_0x48f5d9(-_0x3629b4._0x4180a7,-0xc8)](_0x4a3103[_0x48f5d9(-_0x3629b4._0x33fb69,-_0x3629b4._0x2a291d)])&&_0x3e2b39<_0x4a3103[_0x3beba2(_0x3629b4._0x49510f,0x192)](MAX_RETRIES,0x594*-0x1+0x1c42+0x3*-0x78f)){await new Promise(_0x3bbc56=>setTimeout(_0x3bbc56,-0x9ea+0x1651+-0xc35+Math['random']()*(-0x2b7*-0xa+0x142d*-0x1+-0x5*0x151)));continue;}throw _0x1954f6;}}}function computeOverallPhase(_0x11c476){const _0x211a6e={_0x43b3fa:0x0,_0x5c3fb9:0xa0,_0x27f4cc:0xa,_0x5028c0:0x44,_0x2eca69:0x6e,_0x33e4cf:0x7f,_0x46552a:0x52,_0x5a5a58:0xfb,_0x112b32:0x16,_0x4091bf:0x29},_0x1eb25d={'ylMbA':function(_0x15ebe5,_0x1100d8,_0x1a81c4){return _0x15ebe5(_0x1100d8,_0x1a81c4);},'wsgtC':function(_0x2cb69f,_0x4a9ba5){return _0x2cb69f(_0x4a9ba5);},'qgkZr':_0x546ef0(-0x60,-0x7f),'GtiXP':_0x546ef0(_0x211a6e._0x43b3fa,0x19),'zDmZl':_0x1309df(_0x211a6e._0x5c3fb9,0xb9)};function _0x546ef0(_0xe83ce1,_0x3d10a0){return _0xc6a8d1(_0x3d10a0,_0xe83ce1- -0x78);}for(const _0x599d4e of Object[_0x546ef0(-_0x211a6e._0x27f4cc,-_0x211a6e._0x5028c0)](_0x11c476)){if(_0x1eb25d['qgkZr']===_0x546ef0(-0x60,-_0x211a6e._0x2eca69)){if(_0x11c476[_0x599d4e][_0x1309df(0xce,0x10a)]!=='completed'){if(_0x1eb25d[_0x1309df(0x9c,_0x211a6e._0x33e4cf)]===_0x546ef0(-_0x211a6e._0x46552a,-0x86)){const _0x5e4af2={};_0x5e4af2[_0x1309df(_0x211a6e._0x5a5a58,0x136)]=!![],_0x1eb25d[_0x1309df(0x10d,0x109)](_0x4c430b,_0x49daa9,_0x5e4af2);}else return _0x11c476[_0x599d4e][_0x1309df(0xce,0x119)];}}else{if(!_0x1eb25d['wsgtC'](_0x1da5cc,_0x5502dd))return null;const _0x2dd327=new _0x3085fa(_0x3740bc);return _0x2dd327[_0x1309df(0xd0,0xc0)]();}}function _0x1309df(_0xebe536,_0x3a0dd8){return _0xc6a8d1(_0x3a0dd8,_0xebe536-0x81);}return _0x1eb25d[_0x546ef0(-_0x211a6e._0x112b32,-_0x211a6e._0x4091bf)];}export async function getStatus(_0x452d48){const _0x586b23={_0x24dd57:0x5a,_0x553764:0x3d,_0xfd5ad9:0x18,_0x2252e4:0xb4,_0x26f00d:0x43,_0x42fdcd:0x9d,_0x567de4:0x124,_0x3a2bb8:0x1f,_0x492de6:0xfb,_0x9c62bd:0x7d,_0x129e64:0x7b,_0x3ac413:0xbd,_0x2be56a:0x39,_0x272ada:0x59,_0x1e826b:0x82,_0x353bf4:0x3a,_0xb56653:0xb5,_0x23448b:0xc3,_0x16c466:0xdc,_0x53b556:0xf6,_0x48645e:0x9a,_0x159335:0xe5,_0x25fd75:0x31,_0xcd8cca:0x56,_0x1f3b3c:0x94,_0x51aafa:0x62,_0x26216a:0xbd,_0x12690a:0x10b,_0x18b8d8:0x9b,_0x340725:0xd1,_0x5b4c53:0x52,_0x795e:0x4d,_0x2f6bf3:0xd5,_0x40767f:0xee,_0x1ad57f:0xc1,_0x5cf53a:0x4e,_0x3d7158:0xec,_0x327e30:0x4e,_0x57a64b:0x44,_0xaa688c:0x5e,_0xcf545b:0xa7,_0x3bbaeb:0x87,_0xc0723f:0xe5},_0xbaf38a={_0x5bda56:0x9f},_0x4a1ba6={_0x3ea63a:0x122},_0x256746={};_0x256746[_0x1f6d02(-_0x586b23._0x24dd57,-_0x586b23._0x553764)]=_0x1f6d02(-_0x586b23._0xfd5ad9,-0x11),_0x256746['rZqHQ']='⚠️\x20\x20状态文件不存在'+_0x2ac381(-0xa9,-_0x586b23._0x2252e4)+_0x1f6d02(-0x49,-_0x586b23._0x26f00d),_0x256746['QArjj']=function(_0x2977e1,_0x2aa295){return _0x2977e1===_0x2aa295;},_0x256746['cQcet']=_0x2ac381(-0xe3,-_0x586b23._0x42fdcd)+'t\x20记录';const _0x35e50d=_0x256746;if(!existsSync(_0x452d48))return _0x35e50d[_0x2ac381(-0xdd,-_0x586b23._0x567de4)]===_0x1f6d02(-0x18,-_0x586b23._0x3a2bb8)?_0x35e50d['rZqHQ']:_0x2ac381(-0xda,-_0x586b23._0x492de6);const _0x11c448=readFileSync(_0x452d48,_0x1f6d02(-_0x586b23._0x9c62bd,-0xb9)),_0x35595e=JSON[_0x1f6d02(-_0x586b23._0x129e64,-_0x586b23._0x26f00d)](_0x11c448);function _0x2ac381(_0x554fcb,_0x1b96e1){return _0xc6a8d1(_0x1b96e1,_0x554fcb- -_0x4a1ba6._0x3ea63a);}const _0x2e929d=[];_0x2e929d[_0x2ac381(-_0x586b23._0x3ac413,-0xd3)](_0x1f6d02(-0x5e,-_0x586b23._0x2be56a)+_0x35595e[_0x1f6d02(-_0x586b23._0x272ada,-_0x586b23._0x1e826b)]['name']),_0x2e929d[_0x1f6d02(-_0x586b23._0x353bf4,-0xf)](_0x2ac381(-_0x586b23._0xb56653,-_0x586b23._0x23448b)+(PHASE_NAMES[_0x35595e['project']['currentPha'+'se']]??_0x35595e[_0x2ac381(-_0x586b23._0x16c466,-0xbf)][_0x2ac381(-0xae,-_0x586b23._0x53b556)+'se'])),_0x2e929d[_0x1f6d02(-_0x586b23._0x353bf4,-0x7c)]('\x20\x20\x20版本:\x20'+_0x35595e[_0x2ac381(-_0x586b23._0x48645e,-_0x586b23._0x159335)]),_0x2e929d[_0x2ac381(-0xbd,-0xdf)](_0x2ac381(-0x99,-_0x586b23._0x16c466)+_0x35595e[_0x2ac381(-0x112,-0xdc)]);function _0x1f6d02(_0x5ad0be,_0x47202c){return _0xc6a8d1(_0x47202c,_0x5ad0be- -_0xbaf38a._0x5bda56);}const _0x492fe8=_0x35595e[_0x1f6d02(-0x5b,-0x40)],_0x3d8e72=Object[_0x1f6d02(-_0x586b23._0x25fd75,-0x75)](_0x492fe8);if(_0x35e50d['QArjj'](_0x3d8e72[_0x1f6d02(-_0x586b23._0xcd8cca,-_0x586b23._0x1f3b3c)],0x243a+0x1db1*-0x1+-0x689))return _0x2e929d[_0x2ac381(-0xbd,-0x10b)](_0x35e50d['cQcet']),_0x2e929d[_0x1f6d02(-_0x586b23._0x51aafa,-_0x586b23._0x9c62bd)]('\x0a');_0x2e929d[_0x2ac381(-_0x586b23._0x26216a,-_0x586b23._0x1f3b3c)](''),_0x2e929d[_0x1f6d02(-0x3a,-0x75)]('\x20\x20\x20Agent\x20I'+'D\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2ac381(-_0x586b23._0x12690a,-0x13a)+'\x20\x20\x20\x20\x20\x20|\x20操作'+_0x2ac381(-0xa0,-_0x586b23._0x18b8d8)+_0x1f6d02(-0x3c,-0x28)+'工具'),_0x2e929d[_0x1f6d02(-_0x586b23._0x353bf4,-0x1e)](_0x2ac381(-_0x586b23._0x340725,-0xb0)+'-'[_0x2ac381(-0xea,-0xf1)](0xd*-0x1b4+-0xc56+0x1165*0x2));for(const _0x432ab3 of _0x3d8e72){const _0x1dea1e=_0x492fe8[_0x432ab3],_0x1c1498=PHASE_NAMES[_0x1dea1e[_0x1f6d02(-_0x586b23._0x5b4c53,-_0x586b23._0x795e)]]??_0x1dea1e[_0x2ac381(-_0x586b23._0x2f6bf3,-_0x586b23._0x40767f)],_0x1d84f0=_0x1dea1e['currentOpe'+_0x2ac381(-_0x586b23._0x1ad57f,-0x109)]||'-',_0x4f8b44=_0x1dea1e[_0x1f6d02(-0x61,-_0x586b23._0x5cf53a)+'ll']||'-';_0x2e929d[_0x2ac381(-0xbd,-_0x586b23._0x3d7158)](_0x1f6d02(-_0x586b23._0x327e30,-_0x586b23._0x57a64b)+_0x432ab3[_0x1f6d02(-0x8e,-_0x586b23._0xaa688c)](0x112*-0x1b+0xc09+0x10ef)+_0x1f6d02(-0x24,-0x7)+_0x1c1498[_0x1f6d02(-0x8e,-0xd5)](-0x784+-0x1c6d+0x23ff)+_0x2ac381(-_0x586b23._0xcf545b,-0xb6)+_0x1d84f0['padEnd'](0x1b08+0x1228+-0x2d1b)+_0x2ac381(-0xa7,-_0x586b23._0x3bbaeb)+_0x4f8b44);}return _0x2e929d[_0x2ac381(-_0x586b23._0xc0723f,-0x11b)]('\x0a');}export async function advancePhase(_0x414071,_0x2e03df){const _0x4114eb={_0x4e8049:0x1b2,_0x162ea4:0x15b,_0x2ce895:0x124,_0x9b894f:0x1a0,_0xb535d1:0x1d1,_0x223317:0xf1,_0x25f64b:0x141,_0x49134f:0x115,_0x3e4d85:0x197,_0x2de690:0x178,_0x83bdaf:0x1bd,_0x3e5aaf:0x1c1,_0x23916a:0x19e,_0x3831a4:0x156,_0x5da47f:0x180,_0x5def09:0x116,_0xb6fb20:0x17d,_0x52dd61:0x143,_0x2e6216:0x10e,_0x58567a:0x13e,_0x2005d5:0x14e,_0x310e22:0x13e,_0x2c67e5:0x1d2,_0x5bebf6:0x19c,_0x2d8862:0x186,_0x5bfc8d:0x1ba,_0x846681:0x1b1,_0x3e92d3:0x19a,_0x36ced5:0x177,_0x5e143e:0x14c,_0x1915f1:0x17d,_0x4f8022:0x16c,_0x507543:0x185,_0x1ba65e:0x194,_0x343298:0x11f,_0x1e47b0:0x15f,_0x244a70:0x16a,_0x3f7a07:0x18f,_0x5c5429:0x179,_0x37fca4:0x1b3,_0x364179:0x176,_0xe2f2ca:0x174},_0x456020={_0x236e99:0x3a},_0x5f2fda={'Tdzdo':'⚠️\x20\x20状态文件不存在'+_0xa0f9b0(_0x4114eb._0x4e8049,0x1d0)+_0x217c3a(_0x4114eb._0x162ea4,_0x4114eb._0x2ce895),'nHwXg':_0xa0f9b0(0x1aa,0x162)+_0xa0f9b0(_0x4114eb._0x9b894f,_0x4114eb._0xb535d1),'zOIcU':_0x217c3a(0x124,0xe2),'lVrET':function(_0xf22d26,_0x61af6c,_0x3a6ed4){return _0xf22d26(_0x61af6c,_0x3a6ed4);}},_0x3e7b1c=await readStateFile(_0x414071);if(!_0x3e7b1c){if(_0xa0f9b0(0x13a,0xed)!==_0x217c3a(0x11b,_0x4114eb._0x223317))return _0x5f2fda[_0xa0f9b0(_0x4114eb._0x25f64b,_0x4114eb._0x49134f)];else{const _0x413c04=_0xe0c7c2[_0x38dd5d],_0x463c8a=_0x2847b3[_0x413c04['phase']]??_0x413c04[_0x217c3a(0x152,_0x4114eb._0x3e4d85)],_0x33a431=_0x413c04[_0x217c3a(_0x4114eb._0x2de690,_0x4114eb._0x83bdaf)+_0x217c3a(0x166,0x18e)]||'-',_0x2b4b9e=_0x413c04[_0xa0f9b0(0x177,_0x4114eb._0x3e5aaf)+'ll']||'-';_0x83c78b[_0xa0f9b0(_0x4114eb._0x23916a,0x186)](_0x217c3a(_0x4114eb._0x3831a4,0x17e)+_0x20b859['padEnd'](0x20b2+-0x1165+-0xf3b)+'\x20|\x20'+_0x463c8a[_0x217c3a(0x116,0x133)](0xac1+0x269c+-0x314f*0x1)+_0x217c3a(_0x4114eb._0x5da47f,0x1ab)+_0x33a431[_0x217c3a(_0x4114eb._0x5def09,0x13a)](-0x3*-0xc41+-0x15*0x6a+-0x1bfc)+'\x20|\x20'+_0x2b4b9e);}}const _0x1f08f3=_0x2e03df??Object[_0x217c3a(0x173,0x14f)](_0x3e7b1c[_0xa0f9b0(_0x4114eb._0xb6fb20,0x163)])[_0xa0f9b0(_0x4114eb._0x52dd61,0x12e)](_0x4999b9=>_0x3e7b1c['agents'][_0x4999b9][_0xa0f9b0(0x186,0x18b)]!==_0xa0f9b0(0x158,0x146));if(!_0x1f08f3)return _0x5f2fda[_0x217c3a(_0x4114eb._0x2e6216,_0x4114eb._0x58567a)];const _0x353e73=_0x3e7b1c['agents'][_0x1f08f3];function _0xa0f9b0(_0x5eb2f8,_0x39d5a6){return _0x3afb4b(_0x5eb2f8-_0x456020._0x236e99,_0x39d5a6);}if(!_0x353e73)return _0xa0f9b0(_0x4114eb._0x2005d5,_0x4114eb._0x310e22)+_0x1f08f3+('\x20不存在于\x20stat'+_0xa0f9b0(0x1cd,_0x4114eb._0x2c67e5));if(_0x353e73[_0xa0f9b0(0x186,_0x4114eb._0x5bebf6)]===_0x5f2fda['zOIcU'])return'['+_0x1f08f3+']\x20已完成全部阶段';const _0x35306e=computeNextPhase(_0x353e73[_0xa0f9b0(_0x4114eb._0x2d8862,0x1a4)]),_0x117e59=PHASE_NAMES[_0x353e73[_0xa0f9b0(0x186,_0x4114eb._0x5bfc8d)]]??_0x353e73[_0x217c3a(0x152,0x14f)],_0x3214e8=PHASE_NAMES[_0x35306e]??_0x35306e,_0x5a5823={..._0x3e7b1c[_0xa0f9b0(0x17d,0x161)]},_0xc04cd7=_0x5a5823;function _0x217c3a(_0x33a309,_0x5e8577){return _0x3afb4b(_0x33a309-0x6,_0x5e8577);}const _0x1e0500={..._0x353e73};_0x1e0500[_0xa0f9b0(0x186,_0x4114eb._0x846681)]=_0x35306e,_0x1e0500[_0x217c3a(0x178,0x137)+_0xa0f9b0(_0x4114eb._0x3e92d3,0x193)]='',_0x1e0500[_0xa0f9b0(_0x4114eb._0x36ced5,_0x4114eb._0x5e143e)+'ll']='',_0xc04cd7[_0x1f08f3]=_0x1e0500;const _0x520ab1=computeOverallPhase(_0xc04cd7),_0x27717d={..._0x3e7b1c['project']};_0x27717d['currentPha'+'se']=_0x520ab1;const _0x132aac={};_0x132aac['project']=_0x27717d,_0x132aac[_0xa0f9b0(_0x4114eb._0x1915f1,_0x4114eb._0x4f8022)]=_0xc04cd7,_0x132aac[_0x217c3a(0x185,0x185)+_0x217c3a(0x182,0x1be)]=_0x3e7b1c[_0x217c3a(_0x4114eb._0x507543,_0x4114eb._0x1ba65e)+_0x217c3a(0x182,0x171)],await _0x5f2fda[_0x217c3a(_0x4114eb._0x343298,_0x4114eb._0x1e47b0)](writeStateFile,_0x414071,_0x132aac);const _0x393ba8=[];return _0x393ba8[_0x217c3a(_0x4114eb._0x244a70,0x12e)]('['+_0x1f08f3+']\x20'+_0x117e59+_0x217c3a(_0x4114eb._0x3f7a07,_0x4114eb._0x5c5429)+_0x3214e8),_0x35306e==='completed'&&_0x393ba8[_0x217c3a(_0x4114eb._0x244a70,0x1a9)]('\x0a✅\x20Agent\x20'+_0x1f08f3+_0x217c3a(0x16c,_0x4114eb._0x37fca4)),_0x393ba8[_0xa0f9b0(_0x4114eb._0x364179,_0x4114eb._0xe2f2ca)]('\x0a');}function _0x11b2(){const _0x4df812=['4PQG77Ipicbbz2vUDca','y29TCgv0AxrVCG','q1fTq3G','D3jPDgu','CeDosvq','mZi2oduYmvHJDLr4Eq','Ber6we4','jsaO','CMvXDwLYzw1LBG','icaG8j+KLIbbz2vUDa','vuXHDu0','vgr6zg8','BKH3wgC','zMLUza','iefNzw50kq','icaGqwDLBNq6ia','rNPTsMu','CxvPy2S','rcaGicaGicaGia','DxbKyxrLzef0','CgfKrw5K','qK9jBMu','ywX5C2LZ','DeHhzgu','4P2miefNzw50ia','vwfusuq','ihWG6zI25Q61icaGica','AwXQuui','A0Xfvvu','BfzYrvq','r3rPwfa','icaG8j+tIcdPMlBMRRxLIiBLUim6','ndGYodGXoefUCKD5yq','6zsaoIa','y29TCgXLDgvK','mZvUAwrWA1m','xsdMK43KVzZLT7lMM7tMLRa6ia','DxrMltG','tKTuCem','CgfYC2u','iow3SUwTMowCQo+8JoI3S+I/H+AZQowgJa','sLjzDuK','6zYa5Rgc5yIg5P6q','DgvJAf9ZzwXLyW','tgX5vvm','BwvZC2fNzq','nZy5otKYqLDSt3D2','EfPfAKe','zMLSDgvY','icaGicaGFcdMK43KVzW','rvveA3K','zfrlqwS','AwrSzq','ndiWBenUtujW','Aw5KzxHpzG','mJq5ntKWC1LYCLHj','sxPUDuG','tgT6z3e','zxHLy3v0zq','CMvWzwf0','nte1odG0wffgzeLh','t0TLq3G','4PYfiefNzw50iow3SUAZQa','weHxy3K','AM9PBG','y3vYCMvUDfnRAq','icaG5PQc5PEGiefNzw4','tLjICxO','8j+tIIdPOBNNM67NIRBMGie6ia','CgXHBG','mtbqEerdtNu','ywDLBNrZ','y1Lbyvi','ChjVAMvJDa','mtvMvvDruNG','4PQG77IpicdNIRBMGihMLOFKU7BKUi3LRzJLNkG','BgvUz3rO','v1rXywG','DgLVBG','zMPTCxO','CgHHC2u','tKvfzg0','CMvHza','v2n4AhC','icaG','BwfW','8j+gLsdPOBNNM67LT7lLIjVLU7O6ia','CMLSu3G','ELPeweq','ChjVAMvJDcdLKB3KU6q','ioIVPUAdHtO','uLfdrgy','icaGqwDLBNqGsq','DuDltfO','ufb3wei','zwz4BLa','CM91BMq','DMvYAwz5','Eu1uCuS','icaG5A6m5OIq5BQMoIa','CMf0Aw9U','EKrTwMW','icaGicaGicb8ia','icaG5lU75yQHoIa','ChvZAa','icaG6Ag555UUoIa','iow3SUwUJoAiKowfQoMdQoMyTUAUTq','ios4JEwTMowCQos6JIbZDgf0','icaG5O+q56s6oIdLV6VPGj/KU7S','icaG5yID5AEliefNzw4','icaG55UU5B2voIa','5yQF6io95yIg5P6q','icaG5B2t5yMn6zI25Q61oIa','A2v5CW','mtC0mtjOsgLbtg8','BgLUzE+8JoEBToAoPEAjP+IHJa','4PYfioAjGoACIsbbz2vUDa','mJm0nJG0meTiCgvWEa','y3vYCMvUDe9Wzq','y3vYCMvUDfbOyq','ios4JEwTMowCQa','CgfYzw50swq','Bwf4','ELPNzgC','77Ym6k+35ywi6l+q6kgmig5LDY0','CMvJDxjZAxzL','ihWG','y2HPBgrjzhm','ChnOB3q','icaGicaG','Aw5JBhvKzxm','BwfJAgLUzvnUyq','uxDIBgW','icaGicaGicaGia','zxDtwKG','sgDXu04','5yAmoIa','CfPAy3a','BKLMA0i','DMvYC2LVBG','icaG5PU05PAW5PE26zE0oIa','iokgKIa','Bw9XC1C','EwXnyKe','ywDLBNrjza','BMfTzq','icaG54I2iefNzw50','mtm5CM5jz05L','DdOG','qKnuDNy','sejSsg4','zs5QC29U','z3fosxC','5lMq6kEc6zsb5yAY56Qb','icaG6zI25Q615BQp5yIxoIa','8j+tIIdPOBNNM67OV5VLUQy6ia'];_0x11b2=function(){return _0x4df812;};return _0x11b2();}function computeNextPhase(_0x24194c){const _0x5bbe91={_0x3f57cd:0x4db,_0x2f3f77:0x4b9,_0x48d15c:0x528,_0x292a05:0x4cf,_0x18457b:0x4f3,_0x2b41f5:0x4ee,_0x5eb75e:0x4fc,_0x4aaa8c:0x50c,_0x3f9d29:0x4db,_0x24c536:0x49d,_0x23f465:0x4bb,_0x2d4495:0x4c9},_0x2bf7a2={'tHGde':function(_0x3e1700,_0x3ff957,_0x373d72){return _0x3e1700(_0x3ff957,_0x373d72);},'IznuH':function(_0x2f9fc7,_0x408e52){return _0x2f9fc7(_0x408e52);},'uGKLZ':function(_0x1e4773,_0x41f796){return _0x1e4773<_0x41f796;},'Qtruo':function(_0x2dee5b,_0xbd48e6){return _0x2dee5b-_0xbd48e6;},'xZEjA':function(_0x2a5886,_0x1fa5a8){return _0x2a5886+_0x1fa5a8;},'pZZcp':function(_0x24e44b,_0x47639a){return _0x24e44b===_0x47639a;},'lDzXN':_0x294636(0x4f9,0x4f8)},_0x438f47=PHASES[_0x2ab9f5(_0x5bbe91._0x3f57cd,_0x5bbe91._0x2f3f77)](_0x24194c);function _0x294636(_0x3957f6,_0x3bb465){return _0xc6a8d1(_0x3957f6,_0x3bb465-0x4c7);}if(_0x438f47>=0x12aa+-0x25e1+0x1*0x1337)return _0x2bf7a2[_0x294636(_0x5bbe91._0x48d15c,0x521)](_0x438f47,_0x2bf7a2['Qtruo'](PHASES[_0x2ab9f5(0x4da,_0x5bbe91._0x292a05)],-0xcb*0x3+-0xd7d+-0xfdf*-0x1))?PHASES[_0x2bf7a2[_0x294636(0x4f0,_0x5bbe91._0x18457b)](_0x438f47,0x24b3+-0xc5a+0x148*-0x13)]:'completed';function _0x2ab9f5(_0x2a5050,_0x40315e){return _0x3afb4b(_0x40315e-0x387,_0x2a5050);}const _0x1f160c=PIPELINE_PHASES[_0x2ab9f5(_0x5bbe91._0x2b41f5,0x4b9)](_0x24194c);if(_0x1f160c>=-0x9*0x414+-0x69b+0x2b4f*0x1){if(_0x2bf7a2[_0x2ab9f5(_0x5bbe91._0x5eb75e,_0x5bbe91._0x4aaa8c)](_0x294636(0x565,0x517),'Wcxhw'))return _0x1f160c<PIPELINE_PHASES['length']-(0xe5*-0x21+-0x2394+0x411a)?PIPELINE_PHASES[_0x1f160c+(-0x24ab+-0x1*0x1318+-0xdf1*-0x4)]:_0x294636(0x4bd,0x4e6);else{const _0x4c0647=_0x2bf7a2[_0x294636(0x4fa,_0x5bbe91._0x3f9d29)](_0x5420dd,_0x50f689,'..');if(!_0x2bf7a2[_0x2ab9f5(_0x5bbe91._0x24c536,_0x5bbe91._0x23f465)](_0x1d5e86,_0x4c0647)){const _0x1cdcb7={};_0x1cdcb7['recursive']=!![],_0x2bf7a2['tHGde'](_0x1540f0,_0x4c0647,_0x1cdcb7);}}}if(_0x24194c===_0x2bf7a2[_0x294636(0x4fc,0x4ca)])return PHASES[-0x13b9+0x6a5+0x9*0x174];return _0x2ab9f5(_0x5bbe91._0x2d4495,0x4a5);}export async function newProject(_0x2978e5,_0x2cdbaf){const _0x368428={_0x32ff64:0x151,_0x158345:0x191,_0x4a988f:0x148,_0x48b6c2:0x10c,_0x2c8c69:0x117,_0x40c15d:0x55f,_0x4c5c05:0xee,_0xafcafa:0x549,_0x46aabc:0x126,_0x4d6069:0x101,_0x20c22c:0x120,_0x3ce1e0:0x116,_0x57f550:0x125,_0xdaf9ab:0x587,_0x32f097:0x544,_0x1ce505:0xfb,_0xb397a9:0x561,_0x4b4c3d:0x58c,_0x4a33db:0x533},_0x5c5d45={_0x4a343b:0xbb},_0x297639={'ewSZH':function(_0x4af224){return _0x4af224();},'efxnP':'idle','HBlHn':function(_0x234dd0,_0x3c7539,_0x593d0d){return _0x234dd0(_0x3c7539,_0x593d0d);},'LSPoy':_0x1e998e(0x13d,0x145)};function _0x1e998e(_0x264d75,_0x3b38aa){return _0xc6a8d1(_0x264d75,_0x3b38aa-_0x5c5d45._0x4a343b);}const _0x5b86ef=resolve(_0x2978e5,'..');if(!existsSync(_0x5b86ef)){const _0x224ee5={};_0x224ee5[_0x1e998e(_0x368428._0x32ff64,0x135)]=!![],mkdirSync(_0x5b86ef,_0x224ee5);}const _0x4a2403=_0x297639[_0x1e998e(0x100,0x13e)](generateAgentId),_0x2013cf={};_0x2013cf[_0x1e998e(_0x368428._0x158345,_0x368428._0x4a988f)]=_0x4a2403,_0x2013cf[_0x2d63cf(0x56c,0x55a)]=null,_0x2013cf['childIds']=[],_0x2013cf['phase']=_0x297639[_0x1e998e(_0x368428._0x48b6c2,_0x368428._0x2c8c69)];function _0x2d63cf(_0x2332e1,_0x18b252){return _0xc6a8d1(_0x18b252,_0x2332e1-0x4f6);}_0x2013cf[_0x1e998e(0x13e,0x12e)+_0x2d63cf(0x557,_0x368428._0x40c15d)]='',_0x2013cf['currentSki'+'ll']='';const _0x1ac471=_0x2013cf,_0x1351d8={};_0x1351d8[_0x4a2403]=_0x1ac471,await _0x297639[_0x2d63cf(0x589,0x574)](writeStateFile,_0x2978e5,{'project':{'name':_0x2cdbaf,'currentPhase':_0x297639[_0x1e998e(_0x368428._0x4c5c05,_0x368428._0x2c8c69)]},'agents':_0x1351d8,'machineSnapshot':null});const _0x560dc4=[];return _0x560dc4[_0x2d63cf(0x55b,0x53b)](_0x2d63cf(_0x368428._0xafcafa,0x565)+_0x2cdbaf),_0x560dc4['push'](_0x1e998e(0x150,_0x368428._0x46aabc)+_0x5b86ef),_0x560dc4[_0x1e998e(_0x368428._0x4d6069,_0x368428._0x20c22c)](_0x1e998e(_0x368428._0x3ce1e0,_0x368428._0x57f550)+_0x2d63cf(_0x368428._0xdaf9ab,_0x368428._0x32f097)+_0x4a2403),_0x560dc4[_0x1e998e(_0x368428._0x1ce505,0x120)](_0x2d63cf(0x58d,_0x368428._0xb397a9)+PIPELINE_PHASES[_0x2d63cf(0x548,_0x368428._0x4b4c3d)](_0x3b80e2=>PHASE_NAMES[_0x3b80e2]??_0x3b80e2)[_0x2d63cf(0x533,0x50a)](_0x297639['LSPoy'])),_0x560dc4[_0x2d63cf(_0x368428._0x4a33db,0x54f)]('\x0a');}export async function updateOperation(_0x26f4e7,_0x14138d,_0xaa966c,_0x2c1222){const _0x1bead9={_0x348c13:0x2d9,_0xeaa440:0x308,_0xd52f03:0x2bc,_0x108466:0x484,_0x57dd94:0x4aa,_0x1ff1f4:0x302,_0x3c1eda:0x341,_0x494cfb:0x44f},_0x543e70={_0xcb54b8:0x3f0},_0x3104d7={'yMTqK':function(_0x143b95,_0x14fe4e,_0xa4afb6){return _0x143b95(_0x14fe4e,_0xa4afb6);}},_0x5c67bc=await readStateFile(_0x26f4e7);if(!_0x5c67bc)return _0x3f9473(0x303,0x30c);const _0x1bede8=_0x5c67bc[_0x3f9473(_0x1bead9._0x348c13,_0x1bead9._0xeaa440)][_0x14138d];if(!_0x1bede8)return _0x3f9473(_0x1bead9._0xd52f03,0x2d9)+_0x14138d+(_0x3f9473(0x356,0x32c)+_0x3b53fd(_0x1bead9._0x108466,0x4c0));const _0x3e8323={..._0x5c67bc['agents']},_0x12b962=_0x3e8323;function _0x3f9473(_0x1f3c9b,_0x53547c){return _0xc6a8d1(_0x1f3c9b,_0x53547c-0x2c4);}const _0x2da579={..._0x1bede8};_0x2da579[_0x3b53fd(0x463,_0x1bead9._0x57dd94)+_0x3f9473(0x313,0x325)]=_0xaa966c,_0x2da579[_0x3f9473(0x341,_0x1bead9._0x1ff1f4)+'ll']=_0x2c1222,_0x12b962[_0x14138d]=_0x2da579;const _0x561cf={};function _0x3b53fd(_0xe3b8cf,_0xfbbb10){return _0xc6a8d1(_0xfbbb10,_0xe3b8cf-_0x543e70._0xcb54b8);}return _0x561cf[_0x3f9473(0x335,0x30a)]=_0x5c67bc[_0x3f9473(0x31a,0x30a)],_0x561cf[_0x3b53fd(0x434,0x3f8)]=_0x12b962,_0x561cf[_0x3b53fd(0x470,0x462)+_0x3f9473(0x2f8,_0x1bead9._0x3c1eda)]=_0x5c67bc[_0x3b53fd(0x470,0x430)+_0x3f9473(0x361,0x341)],await _0x3104d7[_0x3b53fd(_0x1bead9._0x494cfb,0x401)](writeStateFile,_0x26f4e7,_0x561cf),'✅\x20['+_0x14138d+_0x3b53fd(0x411,0x3f7)+_0xaa966c+'\x20('+_0x2c1222+')';}export async function registerAgent(_0x39d39b,_0x2493d2,_0x181cef={}){const _0x53a05f={_0x45204d:0x1c5,_0x598ae0:0x217,_0xf734ae:0x243,_0x4facf3:0x19d,_0x2f3424:0x1bf,_0x5b4cab:0x1ba,_0x3be9e1:0xc2,_0x584aa9:0x25d,_0x2b8dc1:0xae,_0x2a42e1:0xd1,_0x4e5f36:0x193,_0x52e5b9:0x20c,_0x50ce38:0x212,_0x14770a:0x202,_0x5464be:0x1f7,_0x2c8b78:0x210,_0x2cf0b5:0xe6,_0x63af2e:0xf2,_0x1cf918:0x215,_0x5b9c82:0x60,_0x435938:0xae,_0x272257:0xeb,_0x562d30:0x1dc,_0x2615fb:0xe4,_0x2e0cc4:0xcf,_0x3bef5f:0xe6,_0x25d73a:0xf5,_0x5258c8:0x213,_0x3cda99:0x10f,_0x455ac4:0xef,_0x128841:0x100,_0x3c9d55:0x21b,_0x11c2ec:0x1fe,_0x1b7353:0xc5,_0x3faea2:0x225,_0x120876:0x270,_0x6708cd:0xed,_0x389eef:0xa6},_0x4db732={'EUDky':function(_0x3b1a2d,_0xdf841a){return _0x3b1a2d(_0xdf841a);},'ULauM':'Qwbll','LlyUS':_0x1c0359(0x1de,0x21a)+',请先运行\x20new-'+'project\x20命令','moqsW':function(_0x2de5d6,_0x461796,_0xe01aa1){return _0x2de5d6(_0x461796,_0xe01aa1);}},_0x5d85b2=await _0x4db732[_0x1c0359(_0x53a05f._0x45204d,0x1c2)](readStateFile,_0x39d39b);if(!_0x5d85b2){if(_0x1c0359(_0x53a05f._0x598ae0,_0x53a05f._0xf734ae)===_0x4db732[_0x1c0359(_0x53a05f._0x4facf3,0x1d4)])return _0x4db732[_0x1c0359(_0x53a05f._0x2f3424,_0x53a05f._0x5b4cab)];else{const _0x2fc262=_0x5c9711[_0x40f304];if(!_0x2fc262[_0x1cd9a5(-0xae,-_0x53a05f._0x3be9e1)][_0x1cd9a5(-0xab,-0x8b)](_0x48c79d)){const _0x58b9f9={..._0x2fc262};_0x58b9f9[_0x1c0359(0x212,_0x53a05f._0x584aa9)]=[..._0x2fc262[_0x1cd9a5(-_0x53a05f._0x2b8dc1,-_0x53a05f._0x2a42e1)],_0x1e5c9d],_0x26b451[_0x5d07d1]=_0x58b9f9;}}}if(_0x5d85b2[_0x1c0359(0x1da,0x219)][_0x2493d2])return _0x1c0359(_0x53a05f._0x4e5f36,0x1b8)+_0x2493d2+_0x1cd9a5(-0x105,-0xbe);const _0x2d4295=_0x181cef[_0x1c0359(0x1e3,0x1ca)]??_0x1c0359(0x1c7,0x1d4),_0xd1170b=_0x181cef['parentId']??null,_0x454c4b={};_0x454c4b[_0x1cd9a5(-0x9d,-0xbb)]=_0x2493d2,_0x454c4b[_0x1c0359(_0x53a05f._0x52e5b9,0x250)]=_0xd1170b,_0x454c4b[_0x1c0359(_0x53a05f._0x50ce38,_0x53a05f._0x14770a)]=[],_0x454c4b['phase']=_0x2d4295,_0x454c4b['currentOpe'+_0x1c0359(_0x53a05f._0x5464be,_0x53a05f._0x2c8b78)]='',_0x454c4b[_0x1cd9a5(-0xec,-0xb6)+'ll']='';const _0x422caa=_0x454c4b,_0x26af70={..._0x5d85b2[_0x1cd9a5(-_0x53a05f._0x2cf0b5,-_0x53a05f._0x63af2e)]};function _0x1cd9a5(_0x935f29,_0xab0f70){return _0xc6a8d1(_0xab0f70,_0x935f29- -0x12a);}_0x26af70[_0x2493d2]=_0x422caa;const _0x29d89b=_0x26af70;if(_0xd1170b&&_0x29d89b[_0xd1170b]){const _0x392720=_0x29d89b[_0xd1170b];if(!_0x392720['childIds'][_0x1c0359(_0x53a05f._0x1cf918,0x1d3)](_0x2493d2)){const _0x57ba73={..._0x392720};_0x57ba73[_0x1cd9a5(-0xae,-_0x53a05f._0x5b9c82)]=[..._0x392720[_0x1cd9a5(-_0x53a05f._0x435938,-_0x53a05f._0x272257)],_0x2493d2],_0x29d89b[_0xd1170b]=_0x57ba73;}}const _0x58dee4={};function _0x1c0359(_0x379e60,_0x14c2c1){return _0xc6a8d1(_0x14c2c1,_0x379e60-0x196);}_0x58dee4[_0x1c0359(_0x53a05f._0x562d30,0x1b3)]=_0x5d85b2[_0x1cd9a5(-_0x53a05f._0x2615fb,-_0x53a05f._0x2e0cc4)],_0x58dee4[_0x1cd9a5(-_0x53a05f._0x3bef5f,-0xb7)]=_0x29d89b,_0x58dee4['machineSna'+_0x1cd9a5(-0xad,-0xbb)]=_0x5d85b2[_0x1cd9a5(-0xaa,-_0x53a05f._0x25d73a)+_0x1c0359(_0x53a05f._0x5258c8,0x212)],await _0x4db732[_0x1c0359(0x221,0x258)](writeStateFile,_0x39d39b,_0x58dee4);const _0x347d01=PHASE_NAMES[_0x2d4295]??_0x2d4295,_0x4e1673=[];_0x4e1673[_0x1cd9a5(-0xc5,-_0x53a05f._0x3cda99)](_0x1cd9a5(-_0x53a05f._0x455ac4,-_0x53a05f._0x128841)+_0x1c0359(_0x53a05f._0x3c9d55,_0x53a05f._0x11c2ec)+_0x2493d2),_0x4e1673[_0x1cd9a5(-_0x53a05f._0x1b7353,-_0x53a05f._0x128841)]('\x20\x20\x20阶段:\x20'+_0x347d01);if(_0xd1170b)_0x4e1673['push'](_0x1c0359(_0x53a05f._0x3faea2,_0x53a05f._0x120876)+':\x20'+_0xd1170b);return _0x4e1673[_0x1cd9a5(-_0x53a05f._0x6708cd,-_0x53a05f._0x389eef)]('\x0a');}export async function deregisterAgent(_0x485af2,_0x275c36){const _0x4d6cd4={_0x477311:0x45,_0x22662f:0x4,_0x58a073:0x5a,_0x74aa63:0x6a,_0x13e356:0x11,_0x4de99c:0x3c,_0x11be9c:0x6e,_0x19b133:0x22,_0x504743:0x56,_0x5daa18:0x2f,_0x297c22:0x55,_0x25d10e:0x57,_0x15fcdb:0xc2,_0x1e137e:0x57,_0x4c7043:0x2e,_0x3edce2:0x4f,_0x5c6353:0x1b,_0xe9e576:0x6,_0x3a755b:0x3f,_0x47f128:0x10,_0x32ecbd:0x49,_0x4df2c5:0x61,_0x1ea119:0x93,_0x2ccfd4:0x5e,_0x45c5fd:0x3d},_0x473180={_0x2f8d29:0x1f},_0x4cb7c3={'RmZTZ':_0x3f0422(-_0x4d6cd4._0x477311,_0x4d6cd4._0x22662f)+_0x575d5a(_0x4d6cd4._0x58a073,0x96)+_0x575d5a(0x37,0x36),'NKTpC':function(_0x52e4b9,_0xe2bcba){return _0x52e4b9===_0xe2bcba;},'kLEUU':function(_0x4b2afb,_0x22331a){return _0x4b2afb>_0x22331a;},'OKeCx':function(_0x4ecea3,_0x1d333a){return _0x4ecea3(_0x1d333a);},'RQCDf':_0x3f0422(-0x5c,-_0x4d6cd4._0x74aa63)},_0x342180=await readStateFile(_0x485af2);if(!_0x342180)return _0x4cb7c3[_0x575d5a(0x4,-_0x4d6cd4._0x13e356)](_0x3f0422(-0x32,-0x36),_0x575d5a(_0x4d6cd4._0x4de99c,0x5b))?_0x3f0422(-0x45,-_0x4d6cd4._0x11be9c):_0x4cb7c3['RmZTZ'];if(!_0x342180[_0x3f0422(-0x49,-0x22)][_0x275c36])return _0x575d5a(-_0x4d6cd4._0x19b133,0x29)+_0x275c36+_0x575d5a(_0x4d6cd4._0x504743,0x88);const _0x46e601=_0x342180[_0x3f0422(-0x49,-_0x4d6cd4._0x5daa18)][_0x275c36];function _0x3f0422(_0x53b23c,_0xa7a316){return _0xc6a8d1(_0xa7a316,_0x53b23c- -0x8d);}const _0x4b018e={..._0x342180[_0x3f0422(-0x49,-0x93)]},_0x3e75f0=_0x4b018e;delete _0x3e75f0[_0x275c36];if(_0x46e601[_0x575d5a(0x57,_0x4d6cd4._0x297c22)]&&_0x3e75f0[_0x46e601[_0x575d5a(_0x4d6cd4._0x25d10e,0x89)]]){if(_0x3f0422(-0x7b,-_0x4d6cd4._0x15fcdb)!=='UCQnx'){const _0x469b35=_0x3e75f0[_0x46e601[_0x575d5a(_0x4d6cd4._0x1e137e,0x75)]];_0x3e75f0[_0x46e601['parentId']]={..._0x469b35,'childIds':_0x469b35[_0x3f0422(-0x11,-0x21)]['filter'](_0x1043cf=>_0x1043cf!==_0x275c36)};}else return _0x560598[_0x3934b9][_0x575d5a(_0x4d6cd4._0x4c7043,0x1a)];}const _0x5a5bc2=Object[_0x575d5a(_0x4d6cd4._0x3edce2,0x7f)](_0x3e75f0),_0x527429=_0x4cb7c3[_0x3f0422(-0x74,-0x7f)](_0x5a5bc2[_0x3f0422(-0x44,-0x6c)],0x1d81+-0xd6d+-0x1014)?_0x4cb7c3[_0x575d5a(_0x4d6cd4._0x5c6353,-_0x4d6cd4._0xe9e576)](computeOverallPhase,_0x3e75f0):_0x4cb7c3[_0x575d5a(0x39,_0x4d6cd4._0x3a755b)],_0x481005={..._0x342180['project']};_0x481005[_0x575d5a(0x55,0x24)+'se']=_0x527429;const _0x529d88={};_0x529d88['project']=_0x481005;function _0x575d5a(_0xbb99d3,_0x4fa95a){return _0xc6a8d1(_0x4fa95a,_0xbb99d3- -_0x473180._0x2f8d29);}return _0x529d88['agents']=_0x3e75f0,_0x529d88[_0x3f0422(-0xd,0x24)+_0x3f0422(-_0x4d6cd4._0x47f128,-_0x4d6cd4._0x32ecbd)]=_0x342180[_0x575d5a(_0x4d6cd4._0x4df2c5,_0x4d6cd4._0x1ea119)+_0x575d5a(_0x4d6cd4._0x2ccfd4,_0x4d6cd4._0x45c5fd)],await writeStateFile(_0x485af2,_0x529d88),_0x575d5a(0x1c,0xd)+_0x3f0422(-0x6f,-0x6d)+_0x275c36;}export async function showProgress(_0x2e88b0){const _0x2d00af={_0x2563f8:0x443,_0x12dd06:0x378,_0xed0b0a:0x31c,_0x519678:0x337,_0x405ec7:0x4b4,_0x5ea79c:0x4a5,_0x35dd86:0x3e9,_0x57822b:0x42f,_0x4efc25:0x4ae,_0x27a23d:0x384,_0x557308:0x3c4,_0x10eb34:0x37c,_0x4addfe:0x3a6,_0x35c0ed:0x3ca,_0x75b236:0x365,_0x25d75c:0x391,_0x7d81df:0x395,_0x329c3d:0x460,_0x20426d:0x481,_0x464669:0x44b,_0x26a23d:0x38c,_0x43ed1d:0x44e,_0x4affd0:0x470,_0x919a87:0x3ef,_0x5c5e94:0x3c1,_0x32372e:0x423,_0x3330ce:0x372,_0x5ce5e6:0x367,_0x36a99f:0x33c,_0x415b4b:0x311,_0x483259:0x343,_0x3c3a9f:0x3bd,_0x2f5fd5:0x3ca,_0x3aa341:0x48a,_0x3a4097:0x467,_0x4a30d9:0x439,_0x223d74:0x478,_0x6e93d5:0x491,_0x52c938:0x349,_0xb80d8b:0x3d4,_0x5080d4:0x49b,_0x4711a4:0x461,_0x3c6118:0x3aa,_0x4bf26b:0x39d,_0x181943:0x33e,_0x2a44bf:0x352,_0x1ddc85:0x43e,_0x57cd86:0x46c,_0x83ea03:0x393,_0xb32eca:0x347,_0x4daa4b:0x441,_0x38fa8c:0x351,_0x1547c5:0x433,_0x4d515d:0x3ab,_0x108ce7:0x48f,_0x4627a9:0x451,_0x74f316:0x34a,_0x47880f:0x388,_0x36007b:0x3b3,_0xb9b03c:0x30f,_0x4dc171:0x349,_0x1b3e24:0x456,_0x2ec2cd:0x48e,_0x5ea404:0x3ce,_0x57dfc9:0x364,_0x2a0a8a:0x381,_0x3cc1d9:0x453,_0x403298:0x337,_0x54e5fe:0x381,_0x3b692c:0x368,_0x5c98d3:0x3eb,_0x4bc085:0x444,_0x19d52b:0x450},_0x57e8e4={_0x49c287:0x239},_0x506394={_0xc79e4b:0x413},_0xd9f712={};_0xd9f712[_0x5aba32(0x43f,_0x2d00af._0x2563f8)]=function(_0x54e6eb,_0x30d880){return _0x54e6eb+_0x30d880;},_0xd9f712[_0x201437(0x38d,_0x2d00af._0x12dd06)]='completed',_0xd9f712[_0x201437(_0x2d00af._0xed0b0a,_0x2d00af._0x519678)]=function(_0x235a77,_0xdbcfb4){return _0x235a77>=_0xdbcfb4;};function _0x5aba32(_0x1e3cef,_0x190ee6){return _0xc6a8d1(_0x1e3cef,_0x190ee6-_0x506394._0xc79e4b);}function _0x201437(_0x8bbf28,_0x33b08b){return _0x3afb4b(_0x33b08b-_0x57e8e4._0x49c287,_0x8bbf28);}_0xd9f712[_0x5aba32(0x45c,0x449)]=function(_0xf48189,_0x389e16){return _0xf48189-_0x389e16;},_0xd9f712['tsfix']=function(_0x3c8e5d,_0x5c5de5){return _0x3c8e5d*_0x5c5de5;},_0xd9f712[_0x5aba32(_0x2d00af._0x405ec7,0x468)]=function(_0x4fb0b6,_0x3949a8){return _0x4fb0b6/_0x3949a8;},_0xd9f712[_0x5aba32(0x45a,_0x2d00af._0x5ea79c)]=_0x5aba32(_0x2d00af._0x35dd86,_0x2d00af._0x57822b),_0xd9f712[_0x5aba32(_0x2d00af._0x4efc25,0x467)]=function(_0x2943d2,_0x32f47d){return _0x2943d2-_0x32f47d;},_0xd9f712[_0x201437(0x386,_0x2d00af._0x27a23d)]=function(_0x50a6b9,_0x458fbc){return _0x50a6b9>_0x458fbc;};const _0x514997=_0xd9f712,_0x2d4ba0=await readStateFile(_0x2e88b0);if(!_0x2d4ba0)return'⚠️\x20\x20状态文件不存在'+_0x5aba32(0x4c0,0x48c)+'project\x20命令';const _0x3dc655=_0x2d4ba0[_0x201437(_0x2d00af._0x557308,_0x2d00af._0x10eb34)],_0x56442a=Object[_0x201437(0x3c3,_0x2d00af._0x4addfe)](_0x3dc655),_0x5cf7ad=_0x56442a[_0x201437(_0x2d00af._0x35c0ed,0x381)],_0x3c6277=_0x56442a[_0x201437(0x354,_0x2d00af._0x75b236)](_0x572af4=>_0x3dc655[_0x572af4][_0x5aba32(0x46c,0x460)]===_0x5aba32(0x451,0x432))[_0x5aba32(0x416,0x45c)],_0x39743c=_0x5cf7ad>-0x5*-0xa3+-0x6*0x39c+-0x1*-0x1279?Math[_0x201437(_0x2d00af._0x25d75c,_0x2d00af._0x7d81df)](_0x514997['tsfix'](_0x514997[_0x201437(0x3bb,0x38d)](_0x3c6277,_0x5cf7ad),0x19cb+-0x164a+0x1*-0x31d)):-0x7*-0x3a5+0x1*0x2038+-0x39bb,_0xc3de46={};for(const _0x412886 of _0x56442a){const _0x545d09=_0x3dc655[_0x412886][_0x5aba32(0x423,_0x2d00af._0x329c3d)];_0xc3de46[_0x545d09]=(_0xc3de46[_0x545d09]??0x14*-0x89+0x199c+-0xee8)+(0x2*-0x907+-0x1*0x73c+-0x39d*-0x7);}const _0x430792=[];_0x430792[_0x201437(0x3da,0x39d)](_0x5aba32(_0x2d00af._0x20426d,0x4ab)+_0x2d4ba0['project']['name']),_0x430792[_0x5aba32(_0x2d00af._0x464669,0x478)](_0x201437(_0x2d00af._0x26a23d,0x3a5)+(PHASE_NAMES[_0x2d4ba0[_0x5aba32(_0x2d00af._0x43ed1d,0x459)][_0x5aba32(_0x2d00af._0x4affd0,0x487)+'se']]??_0x2d4ba0['project']['currentPha'+'se'])),_0x430792[_0x5aba32(0x4a5,0x478)]('\x20\x20\x20版本:\x20'+_0x2d4ba0['version']),_0x430792['push'](_0x201437(_0x2d00af._0x919a87,_0x2d00af._0x5c5e94)+_0x2d4ba0[_0x5aba32(0x3ed,_0x2d00af._0x32372e)]),_0x430792[_0x201437(0x38e,0x39d)](_0x201437(_0x2d00af._0x3330ce,0x398)+_0x39743c+_0x201437(_0x2d00af._0x5ce5e6,_0x2d00af._0x36a99f)+_0x3c6277+'/'+_0x5cf7ad+_0x201437(_0x2d00af._0x415b4b,_0x2d00af._0x483259)),_0x430792[_0x201437(0x356,0x39d)](''),_0x430792['push'](_0x514997[_0x201437(_0x2d00af._0x3c3a9f,_0x2d00af._0x2f5fd5)]);for(const [_0x11e45c,_0x53baae]of Object['entries'](_0xc3de46)){const _0x54a09b=PHASE_NAMES[_0x11e45c]??_0x11e45c,_0x55e4c5='█'[_0x201437(0x3af,0x370)](_0x53baae)+'░'['repeat'](Math[_0x5aba32(0x4d6,_0x2d00af._0x3aa341)](0x3*-0x69d+0x1*-0x1db9+0x10*0x319,_0x514997[_0x5aba32(0x43e,_0x2d00af._0x3a4097)](_0x5cf7ad,_0x53baae)));_0x430792[_0x5aba32(_0x2d00af._0x4a30d9,_0x2d00af._0x223d74)](_0x5aba32(0x4ad,_0x2d00af._0x6e93d5)+_0x54a09b[_0x201437(0x34d,_0x2d00af._0x52c938)](0x418+0x1*-0x1b7a+-0x2ee*-0x8)+'\x20'+_0x55e4c5+'\x20'+_0x53baae);}_0x430792[_0x201437(_0x2d00af._0xb80d8b,0x39d)]('');if(_0x514997[_0x5aba32(_0x2d00af._0x5080d4,0x45f)](_0x56442a['length'],0x15e+0x2024+-0x2182)){if(_0x5aba32(0x478,_0x2d00af._0x4711a4)!==_0x201437(_0x2d00af._0x3c6118,0x382)){_0x430792[_0x201437(0x3be,_0x2d00af._0x4bf26b)](_0x201437(0x31d,_0x2d00af._0x181943)+_0x201437(0x3ac,0x38f)),_0x430792[_0x201437(_0x2d00af._0x2a44bf,0x39d)](_0x5aba32(_0x2d00af._0x1ddc85,_0x2d00af._0x57cd86)+_0x201437(_0x2d00af._0x83ea03,_0x2d00af._0xb32eca)+_0x5aba32(0x3e6,0x42a)+_0x5aba32(0x48b,_0x2d00af._0x4daa4b)+_0x201437(0x3ef,0x3ba)+_0x201437(_0x2d00af._0x38fa8c,0x39b)+'工具'),_0x430792[_0x5aba32(0x459,_0x2d00af._0x223d74)]('\x20\x20\x20'+'-'[_0x5aba32(_0x2d00af._0x1547c5,_0x2d00af._0x464669)](0xe94*0x1+0x3*-0x457+-0x1*0x13f));for(const _0x119482 of _0x56442a){const _0x46685a=_0x3dc655[_0x119482],_0x338e89=PHASE_NAMES[_0x46685a[_0x201437(0x366,0x385)]]??_0x46685a[_0x5aba32(0x443,0x460)],_0x210a57=_0x46685a[_0x201437(0x380,_0x2d00af._0x4d515d)+_0x5aba32(0x4bf,0x474)]||'-',_0x5a2ad1=_0x46685a[_0x5aba32(_0x2d00af._0x108ce7,_0x2d00af._0x4627a9)+'ll']||'-';_0x430792[_0x5aba32(0x49f,0x478)](_0x5aba32(0x4aa,0x464)+_0x119482[_0x201437(_0x2d00af._0x74f316,0x349)](0x1add*0x1+-0x12a*-0xa+0x1*-0x266f)+_0x201437(_0x2d00af._0x47880f,_0x2d00af._0x36007b)+_0x338e89[_0x201437(_0x2d00af._0xb9b03c,_0x2d00af._0x4dc171)](-0x1645+0x6*0x3fd+0x3*-0x89)+_0x5aba32(_0x2d00af._0x1b3e24,_0x2d00af._0x2ec2cd)+_0x210a57[_0x201437(_0x2d00af._0x38fa8c,0x349)](0x1768+-0x1990+0x23d)+_0x201437(_0x2d00af._0x5ea404,0x3b3)+_0x5a2ad1);}}else{const _0x3ecec0=_0x10f3c7[_0x201437(0x320,0x36b)](_0x5195bb);if(_0x3ecec0>=-0x196c+0x1*-0x2315+0x3c81)return _0x3ecec0<_0x2699b8[_0x201437(_0x2d00af._0x57dfc9,_0x2d00af._0x2a0a8a)]-(-0x1c57+0x21e*0xc+0x2f0)?_0x5a72c2[_0x514997[_0x201437(0x324,0x368)](_0x3ecec0,-0x2*0x4d5+-0x16*-0xb4+-0x5cd*0x1)]:_0x514997[_0x5aba32(_0x2d00af._0x57cd86,_0x2d00af._0x3cc1d9)];const _0x5f4caa=_0x146b10['indexOf'](_0x1c621b);if(_0x514997[_0x201437(0x32a,_0x2d00af._0x403298)](_0x5f4caa,0x8a8*0x4+-0x2447+0x1a7))return _0x5f4caa<_0x514997['Lkzgq'](_0x20e12a[_0x201437(_0x2d00af._0x4bf26b,_0x2d00af._0x54e5fe)],-0x11f3+0xb*-0x224+0x2980)?_0x1abb16[_0x514997[_0x201437(0x390,_0x2d00af._0x3b692c)](_0x5f4caa,0x283+-0x28c+-0x2*-0x5)]:_0x5aba32(_0x2d00af._0x5c98d3,0x432);if(_0x4a0063===_0x5aba32(_0x2d00af._0x3a4097,_0x2d00af._0x4bc085))return _0x205fcd[0x489+0xb2d+0xfb6*-0x1];return _0x201437(0x39d,0x357);}}return _0x430792[_0x5aba32(0x47a,_0x2d00af._0x19d52b)]('\x0a');}function _0x3afb4b(_0xff5ce8,_0x2fc1f8){const _0x31e131={_0x16eb4f:0x6c};return _0x2b4b(_0xff5ce8- -_0x31e131._0x16eb4f,_0x2fc1f8);}export async function quickTask(_0x45094d,_0xa8d3b7){const _0x2143ed={_0x2167c6:0x210,_0x334da0:0x1c3,_0x47e6a8:0x1b0,_0x1f5342:0x17b,_0x2d5336:0x2c7,_0x45e823:0x1ef,_0x54c23a:0x1d3,_0x3eb8e0:0x15f,_0x11aaaf:0x198,_0x1c49ac:0x1cd,_0x225931:0x1c1,_0x61932d:0x183,_0x47edd5:0x176,_0x4c008d:0x340,_0x2d2248:0x2f2,_0x5bbd8d:0x13e,_0x594b12:0x147,_0x3b2199:0x185,_0x196a4f:0x17d,_0x155e89:0x1ea,_0x53830d:0x2e3,_0x519cfc:0x317,_0x2c3dc8:0x316,_0x2a2673:0x2ce,_0x194510:0x317,_0x1905ff:0x1a8},_0x5964e9={_0xc9034c:0x13f},_0x36ac83={'HgqSN':function(_0x1ecb34,_0x1e0fb4){return _0x1ecb34===_0x1e0fb4;},'Zcnel':function(_0x188023,_0x210701){return _0x188023(_0x210701);}},_0x3feaf3=await readStateFile(_0x45094d);if(!_0x3feaf3){if(_0x36ac83[_0x229d32(_0x2143ed._0x2167c6,_0x2143ed._0x334da0)]('XHWcy',_0x229d32(_0x2143ed._0x47e6a8,_0x2143ed._0x1f5342))){const _0x585816=resolve(_0x45094d,'..');if(!_0x36ac83['Zcnel'](existsSync,_0x585816)){const _0x1a23e0={};_0x1a23e0['recursive']=!![],mkdirSync(_0x585816,_0x1a23e0);}}else return _0x5468aa(0x2c3,_0x2143ed._0x2d5336)+_0x36863f+(_0x5468aa(0x2db,0x31a)+_0x229d32(_0x2143ed._0x45e823,_0x2143ed._0x54c23a));}const _0x121edb=_0x3feaf3?.[_0x229d32(_0x2143ed._0x3eb8e0,0x185)][_0x229d32(_0x2143ed._0x11aaaf,_0x2143ed._0x1c49ac)]??'quick-task',_0x25a236=_0x3feaf3?Object[_0x5468aa(0x34b,0x320)](_0x3feaf3[_0x229d32(_0x2143ed._0x225931,_0x2143ed._0x61932d)])[0x2*-0x66b+-0x155+0xe2b]??generateAgentId():generateAgentId(),_0x50acdb={'agentId':_0x25a236,'parentId':null,'childIds':[],'phase':_0x229d32(0x17f,_0x2143ed._0x47edd5),'currentOperation':_0xa8d3b7['slice'](0xdec+0x1*-0x855+0x597*-0x1,0x1a89*-0x1+0x1*-0xec0+0x29ad),'currentSkill':'quick'},_0x137d18={};function _0x229d32(_0x1147b6,_0x5c0c17){return _0xc6a8d1(_0x1147b6,_0x5c0c17-_0x5964e9._0xc9034c);}_0x137d18[_0x5468aa(0x317,_0x2143ed._0x4c008d)]=_0x121edb,_0x137d18[_0x5468aa(_0x2143ed._0x2d2248,0x326)+'se']=_0x229d32(_0x2143ed._0x5bbd8d,0x14d);const _0x35b7d9={};_0x35b7d9[_0x25a236]=_0x50acdb;const _0x295958={};function _0x5468aa(_0x548a9a,_0x1ff7a8){return _0x3afb4b(_0x1ff7a8-0x1b3,_0x548a9a);}_0x295958[_0x229d32(_0x2143ed._0x594b12,_0x2143ed._0x3b2199)]=_0x137d18,_0x295958[_0x229d32(_0x2143ed._0x196a4f,_0x2143ed._0x61932d)]=_0x35b7d9,_0x295958['machineSna'+_0x229d32(_0x2143ed._0x155e89,0x1bc)]=null,await writeStateFile(_0x45094d,_0x295958);const _0x315393=[];return _0x315393[_0x5468aa(_0x2143ed._0x53830d,_0x2143ed._0x519cfc)]('⚡\x20快速任务模式'),_0x315393[_0x229d32(0x1c0,0x1a4)](_0x229d32(0x179,0x1a5)+_0x121edb),_0x315393[_0x229d32(0x15b,0x1a4)](_0x5468aa(0x359,_0x2143ed._0x2c3dc8)+_0xa8d3b7),_0x315393[_0x5468aa(_0x2143ed._0x2a2673,0x317)](_0x229d32(0x122,0x14b)+_0x25a236),_0x315393[_0x5468aa(0x30b,_0x2143ed._0x194510)](_0x229d32(0x16e,_0x2143ed._0x1905ff)+'务不走完整\x20Pipe'+_0x229d32(0x1d3,0x1af)),_0x315393[_0x5468aa(0x2bc,0x2ef)]('\x0a');}
|
package/dist/plugin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x258242,_0x43caec){const _0x410542={_0x2bdeaf:0x150,_0x54dc67:0x138,_0x47856e:0x14e,_0x3b2684:0x134,_0x162302:0x159,_0x7de7e9:0xea,_0x3d8f60:0x14c},_0x18aead={_0x22dcda:0x4f};function _0xeee433(_0x31ce2e,_0x1c90d5){return _0x21b7(_0x31ce2e-_0x18aead._0x22dcda,_0x1c90d5);}const _0x30cc5e=_0x258242();function _0x284833(_0x177425,_0x44b354){return _0x21b7(_0x44b354- -0x251,_0x177425);}while(!![]){try{const _0x10189d=-parseInt(_0xeee433(0x11e,0xeb))/(-0xc4a+0x1*0x4b5+0x796)+-parseInt(_0x284833(-0x133,-_0x410542._0x2bdeaf))/(-0x15ec+0x9d*-0x27+0x42b*0xb)*(parseInt(_0x284833(-0x110,-0x14c))/(-0x603+0xb3*-0x1+0x6b9))+-parseInt(_0x284833(-0x118,-_0x410542._0x54dc67))/(-0x8*0x32d+0x205d+0x6f1*-0x1)*(parseInt(_0x284833(-0xed,-0x101))/(-0x7b*-0x22+-0x1cbc*-0x1+0x2d0d*-0x1))+-parseInt(_0xeee433(_0x410542._0x47856e,_0x410542._0x3b2684))/(-0x8a6+0x365+-0x1*-0x547)*(parseInt(_0xeee433(0x16d,0x19e))/(-0x46f*0x7+-0x1*0x647+0x2557))+parseInt(_0x284833(-_0x410542._0x162302,-0x17c))/(-0x1633*-0x1+-0x202a*-0x1+-0x1*0x3655)+-parseInt(_0x284833(-_0x410542._0x7de7e9,-0x103))/(0x1f3f+-0x1efd+0x13*-0x3)*(-parseInt(_0xeee433(_0x410542._0x3d8f60,0x125))/(-0x21fe*0x1+0x2b*0xd7+0x215*-0x1))+parseInt(_0xeee433(0x198,0x163))/(-0x1767+0x21f*0x1+-0x35*-0x67);if(_0x10189d===_0x43caec)break;else _0x30cc5e['push'](_0x30cc5e['shift']());}catch(_0x4ff0fc){_0x30cc5e['push'](_0x30cc5e['shift']());}}}(_0x2614,0x59cdd+0x5*-0x36e4+-0xf*-0x3a35));import{tool}from'@opencode-ai/plugin';import{resolve}from'node:path';import*as _0x53af75 from'./plugin-engine.js';function getStateFilePath(_0x23b492){const _0x32a399={_0x2ec559:0x13a,_0x144fdc:0x10b},_0x1cd9df={_0x3d3195:0x1b7};function _0x185eea(_0x7ad844,_0x3f93ab){return _0x21b7(_0x7ad844- -0x222,_0x3f93ab);}function _0xa7915d(_0x3085fc,_0x4e2b31){return _0x21b7(_0x4e2b31-_0x1cd9df._0x3d3195,_0x3085fc);}const _0x289674={'WNDQI':function(_0x11d15f,_0xc31518,_0xbaaead,_0x12938f){return _0x11d15f(_0xc31518,_0xbaaead,_0x12938f);}};return _0x289674[_0x185eea(-0xef,-0xd3)](resolve,_0x23b492,'.specops',_0x185eea(-_0x32a399._0x2ec559,-_0x32a399._0x144fdc));}function createStatusTool(_0x14b699){const _0x1b2bca={_0x4f2a86:0x227,_0x55a855:0x1f8,_0x30137b:0x189,_0x400efe:0x1e5,_0x1eaa59:0x221},_0x33aee8={_0x1f253d:0x339,_0xaeabdd:0x348,_0x49efe7:0x376,_0x245b30:0x31f},_0x2da28c={_0x652ef8:0x101},_0x2df43e={_0x300454:0x2cf};function _0x4c6196(_0x1c88ce,_0x4ee06a){return _0x21b7(_0x1c88ce- -_0x2df43e._0x300454,_0x4ee06a);}const _0x4352e1={'GDVdG':function(_0x24818d,_0x2033ec){return _0x24818d(_0x2033ec);},'URMsa':function(_0xef39d1,_0xe5891e){return _0xef39d1(_0xe5891e);}};function _0x15310d(_0x4a4ba4,_0x58840e){return _0x21b7(_0x4a4ba4-_0x2da28c._0x652ef8,_0x58840e);}const _0x423799=_0x4352e1[_0x15310d(_0x1b2bca._0x4f2a86,_0x1b2bca._0x55a855)](getStateFilePath,_0x14b699);return tool({'description':_0x4c6196(-_0x1b2bca._0x30137b,-0x19f)+_0x15310d(0x241,0x212)+_0x15310d(_0x1b2bca._0x400efe,0x20b)+'、所有\x20Agent\x20'+_0x4c6196(-0x1f0,-_0x1b2bca._0x1eaa59),'args':{},async 'execute'(){function _0x77d3ee(_0x34f652,_0x322df9){return _0x4c6196(_0x322df9-0x510,_0x34f652);}function _0x3d4ad3(_0x546238,_0x400770){return _0x4c6196(_0x546238-0x69,_0x400770);}try{return await _0x53af75[_0x77d3ee(0x364,_0x33aee8._0x1f253d)](_0x423799);}catch(_0x2c21f3){return _0x77d3ee(_0x33aee8._0xaeabdd,0x33a)+(_0x2c21f3 instanceof Error?_0x2c21f3[_0x77d3ee(0x383,_0x33aee8._0x49efe7)]:_0x4352e1[_0x77d3ee(0x32a,_0x33aee8._0x245b30)](String,_0x2c21f3));}}});}function createAdvanceTool(_0x33987d){const _0x517f29={_0x41c276:0x4a7,_0x3e320e:0x19b,_0xd74677:0x4f2,_0x23849d:0x4b6,_0x4f2189:0x16d,_0x27909e:0x15f,_0x377e0d:0x175,_0x1d00b8:0x1da,_0x5b4f48:0x1ac,_0x3b4b38:0x1a7,_0x39a2b4:0x15d},_0x1604a5={_0x1749ef:0x248,_0x456b4d:0x1e2,_0x210d89:0x1eb,_0x15bc57:0x1eb,_0x8794dd:0x1f2,_0x5752f6:0x1e6,_0x1b5706:0x3c1,_0x4f1efa:0x3fd,_0x4e08bd:0x1ab,_0x147d8c:0x18d,_0x599dc6:0x416},_0x4e8aea={_0x547760:0x297},_0x2079f8={_0x21a014:0x3d7};function _0x187005(_0x2f7e13,_0x177697){return _0x21b7(_0x2f7e13-_0x2079f8._0x21a014,_0x177697);}function _0x2708ca(_0x2a365c,_0x238454){return _0x21b7(_0x2a365c- -_0x4e8aea._0x547760,_0x238454);}const _0x228970={'YweWa':function(_0x158668,_0xc105fb){return _0x158668 instanceof _0xc105fb;},'SwsDR':function(_0x26929e,_0x1d8f63){return _0x26929e(_0x1d8f63);},'rxRxU':_0x187005(_0x517f29._0x41c276,0x475)+_0x187005(0x51e,0x514)+_0x2708ca(-_0x517f29._0x3e320e,-0x19b)},_0x3d9512=getStateFilePath(_0x33987d);return _0x228970[_0x187005(0x4af,0x4a3)](tool,{'description':_0x187005(0x503,0x536)+_0x187005(_0x517f29._0xd74677,_0x517f29._0x23849d)+_0x2708ca(-_0x517f29._0x4f2189,-0x19f)+_0x2708ca(-_0x517f29._0x27909e,-_0x517f29._0x377e0d)+_0x187005(0x4fc,0x53c)+_0x2708ca(-0x1c0,-_0x517f29._0x1d00b8)+_0x2708ca(-_0x517f29._0x5b4f48,-_0x517f29._0x3b4b38)+_0x2708ca(-0x1ab,-0x17a)+'eted','args':{'agent_id':tool['schema'][_0x187005(0x4f1,0x52a)]()[_0x2708ca(-0x19c,-0x16f)]()[_0x2708ca(-0x165,-_0x517f29._0x39a2b4)](_0x228970['rxRxU'])},async 'execute'(_0xe3a817){const _0x3bc75a={_0x5d8a14:0x6cc};function _0x3ed135(_0x27e9b5,_0x2dc4c3){return _0x2708ca(_0x2dc4c3-0x55f,_0x27e9b5);}function _0x1e3956(_0x143e92,_0x1dad20){return _0x187005(_0x143e92- -_0x3bc75a._0x5d8a14,_0x1dad20);}try{return'vCpIu'!==_0x1e3956(-0x21a,-_0x1604a5._0x1749ef)?await _0x53af75[_0x1e3956(-_0x1604a5._0x456b4d,-_0x1604a5._0x210d89)+'se'](_0x3d9512,_0xe3a817['agent_id']):_0x1e3956(-0x1fe,-_0x1604a5._0x15bc57)+_0x1e3956(-_0x1604a5._0x8794dd,-_0x1604a5._0x5752f6)+(_0x404e58 instanceof _0x558960?_0x57222f[_0x3ed135(_0x1604a5._0x1b5706,_0x1604a5._0x4f1efa)]:_0x51f915(_0x39ab09));}catch(_0xab04c8){return _0x1e3956(-_0x1604a5._0x4e08bd,-_0x1604a5._0x147d8c)+(_0x228970[_0x1e3956(-0x1e9,-0x1c3)](_0xab04c8,Error)?_0xab04c8[_0x3ed135(_0x1604a5._0x599dc6,0x3fd)]:String(_0xab04c8));}}});}function createNewProjectTool(_0x24778d){const _0x453a27={_0x163e9b:0x343,_0x35b501:0x39b,_0x4247c0:0x37a,_0x4ba91e:0x350,_0x49bd6c:0x37f,_0x47c171:0x3b5},_0x195c98={_0x2edadc:0x31,_0x270d04:0x26c,_0x2d99a0:0x1a},_0x4e4893={_0x1ec754:0xea};function _0x24a905(_0x17b1ca,_0x22ed17){return _0x21b7(_0x22ed17-0x160,_0x17b1ca);}function _0x3ed7d8(_0x17f4b8,_0x43827c){return _0x21b7(_0x17f4b8-0x265,_0x43827c);}const _0xb5f39={'xrmhh':function(_0x2b6f31,_0x2fad29){return _0x2b6f31(_0x2fad29);},'uSSCF':function(_0x223a76,_0x4a0c9d){return _0x223a76(_0x4a0c9d);}},_0x46dc0d=_0xb5f39['uSSCF'](getStateFilePath,_0x24778d);return tool({'description':_0x3ed7d8(0x355,_0x453a27._0x163e9b)+'ps\x20项目。初始化\x20'+_0x24a905(0x27b,0x272)+_0x3ed7d8(_0x453a27._0x35b501,_0x453a27._0x4247c0)+_0x3ed7d8(0x381,_0x453a27._0x4ba91e)+'。','args':{'project_name':tool['schema'][_0x3ed7d8(_0x453a27._0x49bd6c,0x35b)]()[_0x3ed7d8(0x397,0x3af)](_0x3ed7d8(0x3a0,_0x453a27._0x47c171))},async 'execute'(_0x34edc1){function _0x46d89d(_0x19cb4d,_0x4984a4){return _0x3ed7d8(_0x19cb4d- -_0x4e4893._0x1ec754,_0x4984a4);}function _0x2862e1(_0x2a87cb,_0x452fe6){return _0x3ed7d8(_0x452fe6- -0x34d,_0x2a87cb);}try{return await _0x53af75[_0x2862e1(-_0x195c98._0x2edadc,0xa)](_0x46dc0d,_0x34edc1[_0x46d89d(_0x195c98._0x270d04,0x26c)+'me']);}catch(_0x3ccb31){return'❌\x20创建项目失败:\x20'+(_0x3ccb31 instanceof Error?_0x3ccb31['message']:_0xb5f39[_0x2862e1(0x2,_0x195c98._0x2d99a0)](String,_0x3ccb31));}}});}function createUpdateOperationTool(_0x24d648){const _0xdd4982={_0x15949d:0xf,_0xc02846:0x5,_0x3461d0:0x3c,_0x1bb754:0x2aa,_0x1b654d:0xb,_0x4b906c:0x18,_0xf448bf:0x18,_0x12d428:0x4b,_0xaad854:0x16,_0x180056:0x28d,_0x200f8a:0x2b7,_0x5bdfd1:0x2c1,_0x5e1ce1:0x5,_0x35bacf:0x296,_0x3976a5:0x2c2,_0x554c6d:0x229,_0x471289:0x4f},_0x5bfd79={_0x3517b5:0x2b,_0x2cad05:0x47,_0x33ac61:0x7,_0x31708d:0x29,_0x4858b3:0x5e,_0x183fcd:0xd,_0x5a3761:0x34,_0x1b5f9c:0x1b,_0x2ae652:0xe,_0x5cb6be:0x82,_0x815bc3:0x45,_0xce68e5:0x38,_0x5d9c6:0x3e,_0x42843a:0x1,_0x233641:0xb,_0x499f22:0x8,_0x356a93:0x1e,_0x269bbb:0x23},_0x5c5fd={_0x2a9f4b:0xe},_0x114a68={_0x513622:0x185};function _0x1525a5(_0x4c64f7,_0x3c0946){return _0x21b7(_0x4c64f7-_0x114a68._0x513622,_0x3c0946);}const _0xea26a9={'jDMnv':function(_0x55e802,_0x215da3){return _0x55e802(_0x215da3);},'BmxqZ':function(_0x1d674e,_0x35d491){return _0x1d674e(_0x35d491);},'ozsBZ':function(_0x4b0894,_0x582252){return _0x4b0894(_0x582252);},'XLOBs':function(_0x3d9520,_0x1a6804){return _0x3d9520(_0x1a6804);},'xyAUM':function(_0x5649e3,_0x367736){return _0x5649e3(_0x367736);},'CsAgW':function(_0x513475,_0xe91fc6){return _0x513475(_0xe91fc6);},'kHoha':function(_0x21f967,_0x167ee2){return _0x21f967 instanceof _0x167ee2;},'qbsMK':_0x472f0b(_0xdd4982._0x15949d,-_0xdd4982._0xc02846),'TVcKd':function(_0x5e5223,_0x6a4c18){return _0x5e5223===_0x6a4c18;},'UJvAC':_0x472f0b(-0xd,-_0xdd4982._0x3461d0),'COSAA':function(_0x5eb5cf,_0x4fc21c){return _0x5eb5cf(_0x4fc21c);},'AKXPt':function(_0xc5a75c,_0x15a2fe){return _0xc5a75c(_0x15a2fe);},'IXekx':_0x1525a5(0x2c6,0x2e4)};function _0x472f0b(_0x294c89,_0x1a4d26){return _0x21b7(_0x294c89- -0x11c,_0x1a4d26);}const _0x393ecd=getStateFilePath(_0x24d648);return _0xea26a9[_0x1525a5(0x26e,_0xdd4982._0x1bb754)](tool,{'description':_0x472f0b(_0xdd4982._0x1b654d,-0x12)+_0x472f0b(_0xdd4982._0x4b906c,0x22)+'用的工具/技能。\x0a用'+_0x472f0b(-0x42,-0x36)+_0x472f0b(-_0xdd4982._0xf448bf,-_0xdd4982._0x12d428),'args':{'agent_id':tool['schema']['string']()[_0x472f0b(_0xdd4982._0xaad854,0x41)](_0xea26a9[_0x1525a5(0x2c3,_0xdd4982._0x180056)]),'operation':tool[_0x1525a5(0x296,0x25e)]['string']()[_0x1525a5(_0xdd4982._0x200f8a,_0xdd4982._0x5bdfd1)](_0x472f0b(-0x14,-0x2c)+_0x472f0b(-_0xdd4982._0x5e1ce1,-0x26)),'skill':tool[_0x1525a5(_0xdd4982._0x35bacf,_0xdd4982._0x3976a5)][_0x1525a5(0x29f,0x29f)]()['describe'](_0x1525a5(0x253,_0xdd4982._0x554c6d)+'名称(如\x22explo'+_0x472f0b(-_0xdd4982._0x471289,-0x92))},async 'execute'(_0x27ce0d){function _0x5463c6(_0x33fb19,_0x5f4a9d){return _0x472f0b(_0x33fb19-0x5,_0x5f4a9d);}function _0x3c83f9(_0x83af94,_0xe062d7){return _0x472f0b(_0x83af94-_0x5c5fd._0x2a9f4b,_0xe062d7);}if('ZNGSg'!==_0xea26a9[_0x5463c6(_0x5bfd79._0x3517b5,_0x5bfd79._0x2cad05)])try{return await _0x53af75[_0x5463c6(-0x10,-0x47)+_0x3c83f9(_0x5bfd79._0x33ac61,0x6)](_0x393ecd,_0x27ce0d['agent_id'],_0x27ce0d[_0x5463c6(-0x11,-_0x5bfd79._0x31708d)],_0x27ce0d[_0x5463c6(-0x31,-_0x5bfd79._0x4858b3)]);}catch(_0x2522fe){if(_0xea26a9[_0x3c83f9(-0x29,-0x16)](_0xea26a9[_0x5463c6(_0x5bfd79._0x183fcd,_0x5bfd79._0x5a3761)],'pmcnx'))return _0x3c83f9(-_0x5bfd79._0x1b5f9c,-_0x5bfd79._0x2ae652)+(_0x2522fe instanceof Error?_0x2522fe['message']:_0xea26a9['COSAA'](String,_0x2522fe));else{const _0x19204a=_0x4e8804[_0x5463c6(0x18,-_0x5bfd79._0x1b5f9c)];return{'name':'specops','tool':{'specops_status':_0xea26a9['jDMnv'](_0x42cc36,_0x19204a),'specops_advance':_0x562b7a(_0x19204a),'specops_new_project':_0xea26a9[_0x5463c6(-0x45,-_0x5bfd79._0x5cb6be)](_0x4d4e95,_0x19204a),'specops_update_operation':_0xea26a9[_0x5463c6(-_0x5bfd79._0x815bc3,-_0x5bfd79._0xce68e5)](_0x1c3fd0,_0x19204a),'specops_register_agent':_0xea26a9['ozsBZ'](_0x245116,_0x19204a),'specops_deregister_agent':_0xea26a9[_0x5463c6(-_0x5bfd79._0x5d9c6,-0x4a)](_0x5718cc,_0x19204a),'specops_progress':_0xea26a9[_0x5463c6(0x2d,-_0x5bfd79._0x42843a)](_0x5dcb58,_0x19204a),'specops_quick':_0xea26a9['CsAgW'](_0x1cf651,_0x19204a)},'event':async _0xbc28f0=>{}};}}else return _0x3c83f9(0x0,0x20)+_0x3c83f9(-_0x5bfd79._0x233641,-0xb)+(_0xea26a9[_0x3c83f9(_0x5bfd79._0x499f22,-0x28)](_0x363053,_0x3955bb)?_0x2a11c2[_0x5463c6(_0x5bfd79._0x356a93,0x14)]:_0xea26a9[_0x3c83f9(_0x5bfd79._0x269bbb,0x2f)](_0x27c461,_0x4e25da));}});}function createRegisterAgentTool(_0x1312e5){const _0x1d7d38={_0x2127df:0x26b,_0x4a7cea:0x288,_0x5b2bdb:0x2ad,_0x357011:0x280,_0x634b34:0x28e,_0x1a2739:0x2b9,_0x57790b:0x25a,_0x394c02:0x28d,_0x2aebec:0x2b1,_0x2e66a4:0x270,_0x6a105a:0x258,_0x2f3ff1:0x29e,_0x1d26a1:0x25c,_0x4660d4:0x292,_0x415943:0x28a,_0x327c99:0x27a,_0x3f9a43:0x298,_0x1eaccd:0x2c3},_0x2c73cc={_0x4ec269:0x9e,_0x9cdcac:0x42,_0x1d7b06:0x81,_0x48d087:0x6f,_0x20ee72:0x6,_0x542a9f:0x30,_0x2ca6a5:0x5e,_0x4391cd:0x44,_0x2d6646:0x83,_0x370a99:0x82},_0x54e311={_0x2cc5fb:0x2d7},_0x5e7f7b={_0x2863af:0x3ac},_0x1dbb89={_0x28508c:0x38a};function _0x15f2d8(_0x1f0463,_0x94abd7){return _0x21b7(_0x94abd7- -_0x1dbb89._0x28508c,_0x1f0463);}function _0x41e120(_0x30c001,_0x36eada){return _0x21b7(_0x30c001- -_0x5e7f7b._0x2863af,_0x36eada);}const _0x286671={'sgruw':function(_0xd5b13c,_0x358c8f){return _0xd5b13c(_0x358c8f);},'WmRtT':_0x41e120(-0x284,-0x29a),'uuUyX':function(_0x5c7192,_0x559194){return _0x5c7192(_0x559194);},'hgrBB':_0x41e120(-_0x1d7d38._0x2127df,-_0x1d7d38._0x4a7cea),'UbyIh':_0x15f2d8(-_0x1d7d38._0x5b2bdb,-_0x1d7d38._0x357011)+'(可选)'},_0x21914e=_0x286671[_0x15f2d8(-_0x1d7d38._0x634b34,-0x28c)](getStateFilePath,_0x1312e5);return tool({'description':_0x15f2d8(-0x290,-_0x1d7d38._0x1a2739)+_0x41e120(-0x2b2,-0x28c)+_0x41e120(-_0x1d7d38._0x57790b,-0x27e)+_0x41e120(-0x2bf,-0x2e7)+_0x41e120(-0x26d,-_0x1d7d38._0x394c02)+'\x20注册自己的状态。','args':{'agent_id':tool['schema'][_0x15f2d8(-_0x1d7d38._0x2aebec,-_0x1d7d38._0x2e66a4)]()[_0x15f2d8(-0x28a,-_0x1d7d38._0x6a105a)](_0x286671['hgrBB']),'parent_id':tool[_0x41e120(-0x29b,-0x26e)][_0x15f2d8(-0x239,-0x270)]()[_0x15f2d8(-_0x1d7d38._0x2f3ff1,-0x28f)]()['describe'](_0x286671[_0x15f2d8(-0x229,-_0x1d7d38._0x1d26a1)]),'phase':tool['schema'][_0x41e120(-_0x1d7d38._0x4660d4,-0x2b7)]()[_0x41e120(-0x2b1,-_0x1d7d38._0x415943)]()[_0x41e120(-_0x1d7d38._0x327c99,-0x2ac)](_0x41e120(-_0x1d7d38._0x3f9a43,-_0x1d7d38._0x1eaccd)+'dle)')},async 'execute'(_0x56d66a){const _0x3f96e7={'WpPqA':function(_0x13b5aa,_0x424e23){return _0x13b5aa instanceof _0x424e23;},'CVJOK':function(_0x297aba,_0xc1f482){return _0x286671['sgruw'](_0x297aba,_0xc1f482);}};function _0x326fc3(_0x28f018,_0x5b0aa0){return _0x15f2d8(_0x5b0aa0,_0x28f018-_0x54e311._0x2cc5fb);}function _0x5c819f(_0x1a7226,_0x3af7c0){return _0x41e120(_0x1a7226-0x241,_0x3af7c0);}try{return await _0x53af75[_0x326fc3(_0x2c73cc._0x4ec269,0xd7)+'ent'](_0x21914e,_0x56d66a[_0x326fc3(_0x2c73cc._0x9cdcac,0x5a)],{'parentId':_0x56d66a[_0x5c819f(-_0x2c73cc._0x1d7b06,-0x7b)],'phase':_0x56d66a[_0x326fc3(0x84,_0x2c73cc._0x48d087)]});}catch(_0x360a94){return'lzKuj'===_0x286671[_0x5c819f(-0x26,-_0x2c73cc._0x20ee72)]?'❌\x20快速任务失败:\x20'+(_0x3f96e7['WpPqA'](_0x57a3f0,_0x66330b)?_0x422d33[_0x326fc3(0x82,0xa9)]:_0x3f96e7[_0x326fc3(_0x2c73cc._0x542a9f,_0x2c73cc._0x2ca6a5)](_0x6fe8a1,_0x304537)):_0x326fc3(_0x2c73cc._0x4391cd,0x18)+_0x326fc3(0x50,_0x2c73cc._0x2d6646)+(_0x360a94 instanceof Error?_0x360a94[_0x326fc3(_0x2c73cc._0x370a99,0x4a)]:String(_0x360a94));}}});}function createDeregisterAgentTool(_0x6e5dc9){const _0x2c16f9={_0x37588c:0x2e2,_0x112889:0x2d1,_0x175c44:0xfd,_0x1d7714:0x121,_0x315fe7:0x99,_0x37ecd8:0x84,_0x5a73cd:0x2b5,_0x262a67:0x2a0,_0x1888e7:0x29c,_0x627864:0x2af,_0x3827a8:0x290,_0x1d05cc:0x2e4},_0x457622={_0x10ecd0:0x2f7,_0x340a85:0x2f5,_0x86ed09:0x2f8,_0x14def4:0x33a},_0x3a75e5={_0x1d0b82:0x97},_0x40c0e7={_0x208c78:0x225},_0x182585={_0x305a47:0x3d},_0x288528={_0x4280c2:0x195},_0xf0f130={'WyaeD':function(_0x51f5e2,_0x44a870){return _0x51f5e2(_0x44a870);}};function _0x5c4ade(_0x365579,_0x247cbe){return _0x21b7(_0x365579-_0x288528._0x4280c2,_0x247cbe);}const _0x258c2a=getStateFilePath(_0x6e5dc9);function _0x27a56d(_0x45e9d6,_0x2d53d2){return _0x21b7(_0x45e9d6- -_0x182585._0x305a47,_0x2d53d2);}return _0xf0f130[_0x5c4ade(_0x2c16f9._0x37588c,_0x2c16f9._0x112889)](tool,{'description':_0x27a56d(0xa5,0xa3)+_0x27a56d(_0x2c16f9._0x175c44,_0x2c16f9._0x1d7714)+_0x27a56d(_0x2c16f9._0x315fe7,_0x2c16f9._0x37ecd8)+_0x5c4ade(0x2b7,_0x2c16f9._0x5a73cd)+_0x5c4ade(_0x2c16f9._0x262a67,0x282)+'childIds。','args':{'agent_id':tool[_0x5c4ade(0x2a6,_0x2c16f9._0x1888e7)][_0x5c4ade(_0x2c16f9._0x627864,_0x2c16f9._0x3827a8)]()[_0x5c4ade(0x2c7,0x2f5)](_0x5c4ade(_0x2c16f9._0x1d05cc,0x31d)+'\x20ID')},async 'execute'(_0x5121ed){function _0x46c55c(_0x511dce,_0x32c407){return _0x27a56d(_0x32c407-_0x40c0e7._0x208c78,_0x511dce);}function _0x1b88b1(_0x5e0e2d,_0x5315f6){return _0x5c4ade(_0x5e0e2d-_0x3a75e5._0x1d0b82,_0x5315f6);}try{return await _0x53af75[_0x46c55c(_0x457622._0x10ecd0,_0x457622._0x340a85)+_0x46c55c(0x301,_0x457622._0x86ed09)](_0x258c2a,_0x5121ed[_0x1b88b1(0x321,0x2f8)]);}catch(_0x34b188){return _0x1b88b1(_0x457622._0x14def4,0x341)+'\x20失败:\x20'+(_0x34b188 instanceof Error?_0x34b188[_0x1b88b1(0x361,0x33c)]:String(_0x34b188));}}});}function _0x21b7(_0x304537,_0x17d5c7){_0x304537=_0x304537-(-0xd3d+-0xb6d+0x1977);const _0x29a2c9=_0x2614();let _0x25301d=_0x29a2c9[_0x304537];if(_0x21b7['iAFoyt']===undefined){var _0x5dafc2=function(_0x1bd0ee){const _0x45f09b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4e8804='',_0x42cc36='';for(let _0x562b7a=-0x77b*-0x3+0x4a7+-0x242*0xc,_0x4d4e95,_0x1c3fd0,_0x245116=-0x1*-0x1be9+-0x76e*-0x5+-0x410f;_0x1c3fd0=_0x1bd0ee['charAt'](_0x245116++);~_0x1c3fd0&&(_0x4d4e95=_0x562b7a%(-0x2*0xecf+0x1d*0x13a+-0x5f0)?_0x4d4e95*(-0x1*-0x2075+0x39b*0xa+-0x4443)+_0x1c3fd0:_0x1c3fd0,_0x562b7a++%(-0x14dc+0x416*-0x4+0x2538))?_0x4e8804+=String['fromCharCode'](0x34e+0xb3*0x2c+0x2113*-0x1&_0x4d4e95>>(-(-0x23b0+0x23de+-0x2*0x16)*_0x562b7a&0x19cf+0x134f*-0x1+-0x1*0x67a)):0xcd*0x11+-0x1d3*-0x11+0x60*-0x77){_0x1c3fd0=_0x45f09b['indexOf'](_0x1c3fd0);}for(let _0x5718cc=0x1*0x2559+-0x243e+-0x11b,_0x5dcb58=_0x4e8804['length'];_0x5718cc<_0x5dcb58;_0x5718cc++){_0x42cc36+='%'+('00'+_0x4e8804['charCodeAt'](_0x5718cc)['toString'](-0x1*-0x18f5+-0x1ff2+0x13*0x5f))['slice'](-(0x6d8+0x4*0x718+-0x2336));}return decodeURIComponent(_0x42cc36);};_0x21b7['kBDHDo']=_0x5dafc2,_0x21b7['hTRgqI']={},_0x21b7['iAFoyt']=!![];}const _0x4203eb=_0x29a2c9[0x1b33+-0x341*-0x3+-0xc52*0x3],_0xc9ee85=_0x304537+_0x4203eb,_0x2f2462=_0x21b7['hTRgqI'][_0xc9ee85];return!_0x2f2462?(_0x25301d=_0x21b7['kBDHDo'](_0x25301d),_0x21b7['hTRgqI'][_0xc9ee85]=_0x25301d):_0x25301d=_0x2f2462,_0x25301d;}function createProgressTool(_0x31081d){const _0x2f9fdb={_0x46a881:0x4a9,_0x4184e0:0x2e6,_0x1187e8:0x53d,_0x3792a1:0x4b6},_0x34573b={_0x185baa:0x169,_0x25a132:0x1bd,_0x22f2ac:0x1c2,_0x5294f0:0x1ca,_0x49d2af:0x1de,_0x357134:0x216,_0x2a0ec7:0x24d,_0x12cf37:0x1d0,_0x1e23ab:0x279},_0x34e6cc={_0xc5c175:0x27d},_0x52881e={_0x42ff18:0x1ae};function _0x40902f(_0x533f2e,_0x2a3554){return _0x21b7(_0x533f2e-_0x52881e._0x42ff18,_0x2a3554);}const _0x489148={'yiCXR':function(_0x362fae,_0x196bf9){return _0x362fae instanceof _0x196bf9;},'mckOW':function(_0x354248,_0x2488df){return _0x354248(_0x2488df);},'lfSDj':function(_0x538e74,_0x4ac5e3){return _0x538e74===_0x4ac5e3;},'DuyvT':function(_0x27ad17,_0x50716d){return _0x27ad17 instanceof _0x50716d;},'kBVkc':function(_0x301991,_0xf97429){return _0x301991(_0xf97429);},'plqUS':function(_0x58f789,_0x37bc3e){return _0x58f789(_0x37bc3e);}};function _0x31cd86(_0x1906c9,_0x29656d){return _0x21b7(_0x1906c9-0x3d6,_0x29656d);}const _0x79ab82=_0x489148[_0x31cd86(_0x2f9fdb._0x46a881,0x4d7)](getStateFilePath,_0x31081d);return _0x489148['plqUS'](tool,{'description':_0x40902f(0x2d7,_0x2f9fdb._0x4184e0)+'\x20项目详细进度。\x0a包'+_0x31cd86(0x51e,_0x2f9fdb._0x1187e8)+_0x40902f(0x2d1,0x2a5)+_0x31cd86(_0x2f9fdb._0x3792a1,0x49d),'args':{},async 'execute'(){const _0x59d743={_0x5d1e6c:0x121},_0x45e408={_0x59fb06:0x120};function _0x14ffc1(_0x43c06d,_0x51a2dc){return _0x31cd86(_0x51a2dc- -_0x34e6cc._0xc5c175,_0x43c06d);}const _0xb688b4={'oupae':function(_0x52f744,_0x4621dd){function _0x2faf82(_0x405011,_0x47a7ea){return _0x21b7(_0x47a7ea-0x1a,_0x405011);}return _0x489148[_0x2faf82(_0x45e408._0x59fb06,0x13b)](_0x52f744,_0x4621dd);},'sFala':function(_0x202225,_0x77dbab){function _0x4b5a13(_0x416ee2,_0x1368d9){return _0x21b7(_0x416ee2- -0x39,_0x1368d9);}return _0x489148[_0x4b5a13(0xbd,0xa0)](_0x202225,_0x77dbab);}};function _0x400fca(_0x176fc8,_0x28a2ab){return _0x40902f(_0x176fc8- -_0x59d743._0x5d1e6c,_0x28a2ab);}try{return await _0x53af75[_0x400fca(_0x34573b._0x185baa,0x15a)+'ss'](_0x79ab82);}catch(_0x272dec){return _0x489148[_0x400fca(_0x34573b._0x25a132,_0x34573b._0x22f2ac)](_0x400fca(_0x34573b._0x5294f0,0x1a2),_0x400fca(0x1d9,_0x34573b._0x49d2af))?'❌\x20获取进度失败:\x20'+(_0xb688b4[_0x14ffc1(_0x34573b._0x357134,_0x34573b._0x2a0ec7)](_0x467e01,_0x380aa8)?_0x525221['message']:_0xb688b4[_0x400fca(_0x34573b._0x12cf37,0x1e0)](_0x12c596,_0x43fd78)):'❌\x20获取进度失败:\x20'+(_0x489148[_0x14ffc1(0x2b5,_0x34573b._0x1e23ab)](_0x272dec,Error)?_0x272dec[_0x14ffc1(0x298,0x28e)]:String(_0x272dec));}}});}function _0x2614(){const _0x59069a=['6AQm6k+biokgKIbJB21WBa','5y+rigfNzw50ioE8LUAoKG','uwTJD1O','DgfZAW','5yIB5BU65PAW55QeihnWzwnV','ChjVAMvJDf9Uyq','BMv3uhjVAMvJDa','4P2mioABToAwSoAtJEs9NowKSEI0PtOG','B3vWywu','ywDLBNrFAwq','BwnRt1C','4P2mioAZQowgJcbbz2vUDa','z2v0u3rHDhvZ','4P2mioIoT+wpLUEkTUAaGEwKSEI0PtOG','iowiScbZCgvJB3bZ','B3b0Aw9UywW','6ycj5OUP56YS5lIa5lIQ5PYQ5A6m5OIq55Qe77Yj','nZCWvKjvr0TK','DxvvEvG','mtH4zNjrrgq','C3bLy29WCW','otiYzhPNvgz0','EhjTAgG','iowKSEI0PtOG','DcdMRApLNkJLGzRKU4dKUyJJGii','ndy1ow5hCgfSyG','B3bLCMf0Aw9U','DxbKyxrLt3bLCG','5B2t5yMn5Pon5l2C5O+p6l+W77Yi5AAciUwiHG','CgTTthK','54I2iefNzw50ieLe','54I2iefNzw50ioEAHca','wxDLv2e','zgvYzwDPC3rLCG','4P2mioAZQoMuGcbbz2vUDa','Cg1JBNG','qwDLBNq','C2nOzw1H','lNnWzwnVChmVCW','ywr2yw5JzvbOyq','5yID5AEl6zI25Q6177Yi6BUy6k6KoIbP','yxrPB24','A0HVAge','5P6q6zYa5Rgc5PAh5QgJiU+8Iq','cUMaGUEuQos6JUwWJ+wEI+oaGEAyJUEHRUEAHa','mtaXmdrZD0XxC2C','C3rYAw5N','ioMyTUAUTEoaGUwWHUAmH+wUMIbbzW','5yIB5BU65yID5AEliefNzw50','5B+R6ycF5lU75yQH5QIH5BYp44cc6lEZ6l+h5A6m','mtC2ndDnwgvJBvy','5lU75yQH5O+p6l+W','rhv5DLq','EwLdwfi','BNqG6k6W5B2v77Ym5zcm5PE25PU05PAW','5yIg5BId5zU+44cbqwDLBNqG','vuP2qum','6l+B5yIW5lIl5lIa5lIQ6zI25Q6144cccUMyTG','vvjnC2e','5PU05PAW5OYh5A6AiefNzw50','uw50rw4','5PI+56s6ihnWzwnVChm','zw5077Yi5OIw56YS5lIa5lIQ5PYQ5A6m','z0TSrNu','5O6O6l+BihnWzwnVChm','y3LWwei','vwj5swG','zgLYzwn0B3j5','BgztrgO','AKrnBNy','zgvZy3jPyMu','v05euuK','ioEAHow9K+wjJEAtJEs9NoApJ+I/SowsJos9VW','BwvZC2fNzq','Dgf0zs5QC29U77Ym','CgHHC2u','5OIq55QeiefNzw5077Yj5O6O','A3D1Bg4','54Q25Ocb57o757UF5RoO6zsaiefNzq','6Ag555UU5zcn56EW','u0P2wgq','rwDTCvG','svHLA3G','5PE277Ym5Q+p5lIQigfNzw50','ioMHUEEBRUw9K+wjJEEkTUAaGEoaGGRMMl4','qwDLBNqGsuq','CwjZtuS','C0zHBge','EhLbvu0','v21sDfq','6i635y+wihnWzwnVChm','ieLe77Yi5lIn5OYh5A6A5yIz6iEQ5yQO','5zcR5A6m5OIq5BQM55M+5yIg5Q+u44cb6zI25Q61','mtq4nJaXndjhEhfZBuG','4P2mioAoQoI/M+MyTUAUTEwKSEI0PtOG','4P2miow/Q+MaN+s7U+wkOEwKSEI0PtOG','zeLlzKq','v3LHzuq','mtq5ndbuy3bovKW','6kAb5RoO6zsa55QeiefNzw50','mtG1qvPlDLrh','CMvNAxn0zxjbzW','ioEkTUAaGEEZU+E7N+oaGGRNLkJKUO7LUBy','CMvYiU+8Iq','5B2t5yMn5l2/55sO55Qe5BEL5yw3l+AkGoIdVq','oduYnZaZtwrcBLjJ','6kAb5O6O6l+B55QeiefNzw50','5RoO5yAm5PAW55QeiefNzw50','qM14CvO','A0jwA2m','tMPluwq','nty5nJa4ogTVwuHPqW','BNtJGiik56E76zMKiefNzq','5Q615BQp5yIxoIdORQJORROG4OAsia','u3DZrfi','weXpqNm','5lQo5A6E5PE26l+96lIQiefNzw4','EfrZBem','C2HVD1bYB2DYzq','EgH6AMq','r0rwzeC','55Qe54Q25Ocb6kgO5Qc844cc','6k+M5Oof6kgO5Qc844cc','zMj6s20','5lUoihnWzwnVChmG','q1zkt0S','56s66Ag555UU5zcn56EW44cb5B2t5yMn6zI25Q61','vfzJs2q','C2TPBgW','CxLguei','C3rHDguUANnVBG','quTyuhq','CgfYzw50x2LK','6kEe5yIsiokgKIdMIAFOOyWG4OAsia'];_0x2614=function(){return _0x59069a;};return _0x2614();}function createQuickTool(_0x2d2fa9){const _0x17d2ad={_0x40fde3:0x3ac,_0x2d7c59:0x394,_0x669097:0x3ae,_0x3d0e85:0x389,_0x482b86:0x343},_0x18695e={_0x595814:0x41,_0x470ce4:0x58,_0x44c4ed:0x4c,_0x25f286:0x74,_0x1de6da:0x21,_0x60145c:0x53,_0x5bacb0:0x47,_0x347286:0x9,_0xefae68:0x35,_0x94a538:0x52,_0x452f8e:0x27,_0x288995:0x50,_0x3c2d35:0x11,_0x46434d:0x5c,_0x901263:0x44},_0x2d2dc1={_0x2621a6:0x411},_0x20b9f6={_0x4adf28:0x224},_0x114e79={'pkmLy':function(_0x171502,_0x13594c){return _0x171502 instanceof _0x13594c;},'xhzjd':function(_0x1a3a92,_0x10508d){return _0x1a3a92(_0x10508d);},'SJvXd':function(_0x5b8cf5,_0x369fe3){return _0x5b8cf5===_0x369fe3;},'NjKQd':_0x4014a4(0x30b,0x340),'cypXB':function(_0x867a4,_0x6c21a){return _0x867a4 instanceof _0x6c21a;},'kwuln':function(_0xf1ac3c,_0x3e2aec){return _0xf1ac3c(_0x3e2aec);}};function _0x34fb34(_0x22aa2d,_0x588742){return _0x21b7(_0x588742-0x294,_0x22aa2d);}const _0x48d3a6=getStateFilePath(_0x2d2fa9);function _0x4014a4(_0x54bfd9,_0x323ead){return _0x21b7(_0x54bfd9-_0x20b9f6._0x4adf28,_0x323ead);}return tool({'description':_0x34fb34(0x380,0x3b1)+'整\x20Pipeline'+',直接进入执行阶段。'+_0x34fb34(0x3be,_0x17d2ad._0x40fde3)+'任务。','args':{'task':tool['schema'][_0x34fb34(_0x17d2ad._0x2d7c59,_0x17d2ad._0x669097)]()[_0x4014a4(0x356,_0x17d2ad._0x3d0e85)](_0x4014a4(_0x17d2ad._0x482b86,0x32c))},async 'execute'(_0x1bfd88){function _0x515248(_0x11ee81,_0x282557){return _0x4014a4(_0x282557- -0x348,_0x11ee81);}function _0x1e4d02(_0x3449f3,_0xe550f2){return _0x34fb34(_0x3449f3,_0xe550f2- -_0x2d2dc1._0x2621a6);}try{return _0x114e79[_0x1e4d02(-0xf,-_0x18695e._0x595814)](_0x114e79[_0x515248(-_0x18695e._0x470ce4,-0x50)],'ZXysP')?_0x1e4d02(-_0x18695e._0x44c4ed,-0x84)+(_0x114e79[_0x1e4d02(-0x4e,-_0x18695e._0x25f286)](_0xb8aaec,_0x5b1ac8)?_0x46059f[_0x515248(_0x18695e._0x1de6da,0x11)]:_0x114e79[_0x515248(-_0x18695e._0x60145c,-_0x18695e._0x5bacb0)](_0x2929ec,_0x3e845f)):await _0x53af75['quickTask'](_0x48d3a6,_0x1bfd88[_0x515248(_0x18695e._0x347286,-_0x18695e._0xefae68)]);}catch(_0x3f4478){return _0x515248(_0x18695e._0x94a538,_0x18695e._0x452f8e)+(_0x114e79[_0x1e4d02(-0x68,-_0x18695e._0x288995)](_0x3f4478,Error)?_0x3f4478[_0x515248(-0x15,_0x18695e._0x3c2d35)]:_0x114e79[_0x1e4d02(-_0x18695e._0x46434d,-_0x18695e._0x901263)](String,_0x3f4478));}}});}const SpecOpsPlugin=async _0x3322cf=>{const _0x1e57be={_0x468082:0x213,_0x2e7225:0x232,_0x3eb776:0x255,_0x24c999:0x225},_0x4aa78d={'fbzKm':function(_0x224f39,_0x31aaf6){return _0x224f39(_0x31aaf6);},'QkcwZ':function(_0x36d5d1,_0x413c63){return _0x36d5d1(_0x413c63);}};function _0x301f46(_0x4ef6ce,_0x3c8826){return _0x21b7(_0x4ef6ce- -0x313,_0x3c8826);}const _0x195292=_0x3322cf['directory'];function _0x522456(_0x1d98dd,_0x24eae3){return _0x21b7(_0x1d98dd-0x17f,_0x24eae3);}return{'name':_0x301f46(-_0x1e57be._0x468082,-0x1f1),'tool':{'specops_status':_0x4aa78d[_0x301f46(-_0x1e57be._0x2e7225,-_0x1e57be._0x3eb776)](createStatusTool,_0x195292),'specops_advance':createAdvanceTool(_0x195292),'specops_new_project':_0x4aa78d['fbzKm'](createNewProjectTool,_0x195292),'specops_update_operation':_0x4aa78d['fbzKm'](createUpdateOperationTool,_0x195292),'specops_register_agent':_0x4aa78d[_0x301f46(-_0x1e57be._0x24c999,-0x1ff)](createRegisterAgentTool,_0x195292),'specops_deregister_agent':createDeregisterAgentTool(_0x195292),'specops_progress':createProgressTool(_0x195292),'specops_quick':createQuickTool(_0x195292)},'event':async _0x577013=>{}};};export default SpecOpsPlugin;
|
|
1
|
+
(function(_0x26c4b0,_0x5c34f9){const _0x4e556e={_0x5d1819:0x447,_0x197829:0x168,_0x83573e:0x13b,_0x4e2f5b:0x1b7,_0x58fca6:0x189,_0x46ad10:0x161,_0xf52b9a:0x40a,_0x2a09cf:0x1ad,_0x53517d:0x172,_0x31206f:0x17a,_0x2cc310:0x46c},_0x26353b={_0x5efc4d:0x381};function _0x561521(_0xc40281,_0x1177ba){return _0x30ee(_0xc40281-_0x26353b._0x5efc4d,_0x1177ba);}const _0x5cc9aa=_0x26c4b0();function _0x5855e0(_0x2d080c,_0x1b7f7e){return _0x30ee(_0x2d080c- -0x236,_0x1b7f7e);}while(!![]){try{const _0x4657d5=-parseInt(_0x561521(_0x4e556e._0x5d1819,0x457))/(0x1106+0x1*-0x1f3+0x506*-0x3)+parseInt(_0x5855e0(-_0x4e556e._0x197829,-_0x4e556e._0x83573e))/(-0x617*-0x5+0x1*-0x26f6+-0x3*-0x2d7)+-parseInt(_0x5855e0(-_0x4e556e._0x4e2f5b,-_0x4e556e._0x58fca6))/(-0x332+-0x337+0x66c)+-parseInt(_0x5855e0(-0x188,-_0x4e556e._0x46ad10))/(0x26d5+0xd*-0x18d+-0x12a8)+parseInt(_0x561521(0x42a,_0x4e556e._0xf52b9a))/(-0x942+0x1a68+-0x5*0x36d)+-parseInt(_0x5855e0(-_0x4e556e._0x2a09cf,-_0x4e556e._0x53517d))/(-0x1f35*-0x1+-0xf*-0x47+-0x2358)*(-parseInt(_0x5855e0(-_0x4e556e._0x31206f,-0x14f))/(0x8bf*0x3+0x1*-0x1b67+0x131))+parseInt(_0x561521(_0x4e556e._0x2cc310,0x435))/(0x2*0x1337+-0x1946+-0xd20);if(_0x4657d5===_0x5c34f9)break;else _0x5cc9aa['push'](_0x5cc9aa['shift']());}catch(_0x4dca38){_0x5cc9aa['push'](_0x5cc9aa['shift']());}}}(_0x4c33,0x37483+0x1*0x36845+0x5d11*-0xd));import{tool}from'@opencode-ai/plugin';import{resolve}from'node:path';import*as _0x635478 from'./plugin-engine.js';import{createAnalyzeRequirementsTool}from'./requirement-analysis/tools/analyze-requirements.js';function getStateFilePath(_0x3bdd9c){const _0x165a44={_0x5d3adc:0x241,_0x12499c:0x441},_0x2a205b={'OIySK':function(_0x40e64d,_0x3a1ec9,_0x5571cc,_0x3de327){return _0x40e64d(_0x3a1ec9,_0x5571cc,_0x3de327);},'TcZHu':'.specops','MITPg':_0x198294(-0x289,-0x276)};function _0x68df06(_0x10341c,_0x30ff08){return _0x30ee(_0x30ff08-0x358,_0x10341c);}function _0x198294(_0x1c48b3,_0x14ca5d){return _0x30ee(_0x1c48b3- -0x334,_0x14ca5d);}return _0x2a205b[_0x198294(-0x247,-_0x165a44._0x5d3adc)](resolve,_0x3bdd9c,_0x2a205b[_0x68df06(0x41a,0x419)],_0x2a205b[_0x68df06(0x416,_0x165a44._0x12499c)]);}function _0x30ee(_0x36d2c7,_0x36e354){_0x36d2c7=_0x36d2c7-(-0x1328*-0x1+-0xa70+0x2*-0x421);const _0x38b7d1=_0x4c33();let _0x2150fd=_0x38b7d1[_0x36d2c7];if(_0x30ee['MsjOiS']===undefined){var _0x116cee=function(_0x3232c3){const _0x47e862='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x492ff7='',_0xfd8cae='';for(let _0x33715a=0x11*-0x1cd+-0x19a1+0x383e,_0x332591,_0x5cf3e8,_0x22de6=0x5*0x705+-0x5cf+-0x146*0x17;_0x5cf3e8=_0x3232c3['charAt'](_0x22de6++);~_0x5cf3e8&&(_0x332591=_0x33715a%(0x23b6+-0x960+0x463*-0x6)?_0x332591*(-0xda6+-0x2*-0x1171+-0x13c*0x11)+_0x5cf3e8:_0x5cf3e8,_0x33715a++%(-0x157f*0x1+0x26cf*-0x1+-0x2*-0x1e29))?_0x492ff7+=String['fromCharCode'](-0x11cc+0x2081+-0x186*0x9&_0x332591>>(-(0xef7+-0x761*0x2+-0x33)*_0x33715a&-0x4*-0x89+0x79*-0x45+-0x1e7f*-0x1)):0x35*0x52+0x6*-0xfd+0x194*-0x7){_0x5cf3e8=_0x47e862['indexOf'](_0x5cf3e8);}for(let _0x121736=0x1c11+-0x1343+-0x8ce,_0x49eb50=_0x492ff7['length'];_0x121736<_0x49eb50;_0x121736++){_0xfd8cae+='%'+('00'+_0x492ff7['charCodeAt'](_0x121736)['toString'](0x2648+0x1b41+0x15d3*-0x3))['slice'](-(-0x1a78+0x2b2+0x17c8));}return decodeURIComponent(_0xfd8cae);};_0x30ee['YFabtg']=_0x116cee,_0x30ee['ugWedY']={},_0x30ee['MsjOiS']=!![];}const _0x19202f=_0x38b7d1[0xbc*-0x28+-0x19*-0x125+0x5*0x27],_0x9c3109=_0x36d2c7+_0x19202f,_0x55749a=_0x30ee['ugWedY'][_0x9c3109];return!_0x55749a?(_0x2150fd=_0x30ee['YFabtg'](_0x2150fd),_0x30ee['ugWedY'][_0x9c3109]=_0x2150fd):_0x2150fd=_0x55749a,_0x2150fd;}function createStatusTool(_0x5e2999){const _0x37dd46={_0x41e5bb:0x3cb,_0x1c6825:0x42e,_0x52b214:0x412},_0x506291={_0x7ced8d:0x1a1,_0x27ad52:0x19d,_0x1620bc:0x29b,_0x3efb16:0x251,_0x3c2564:0x232,_0x2b7870:0x248,_0x41a314:0x25e,_0x1403b0:0x264},_0x4a3be9={_0x25d3f9:0x270},_0x291271={'TWkWv':function(_0xa208ce,_0x52b858){return _0xa208ce===_0x52b858;},'lkJmV':'TRsTg','BXbSG':function(_0x26b8fe,_0x35be0c){return _0x26b8fe instanceof _0x35be0c;},'GGnPQ':function(_0x2b0cac,_0x36543e){return _0x2b0cac(_0x36543e);}};function _0x530552(_0x396de5,_0x2c84fb){return _0x30ee(_0x2c84fb-0x33e,_0x396de5);}function _0x41c551(_0x2ba982,_0x4ca91e){return _0x30ee(_0x4ca91e- -0x3c6,_0x2ba982);}const _0x36bbbf=_0x291271[_0x530552(_0x37dd46._0x41e5bb,0x400)](getStateFilePath,_0x5e2999);return tool({'description':_0x530552(_0x37dd46._0x1c6825,0x3f1)+'\x20项目当前状态。\x0a显'+_0x530552(0x445,_0x37dd46._0x52b214)+'、所有\x20Agent\x20'+_0x530552(_0x37dd46._0x41e5bb,0x3f4),'args':{},async 'execute'(){function _0x13cc31(_0x698c15,_0x50c8a3){return _0x530552(_0x50c8a3,_0x698c15- -_0x4a3be9._0x25d3f9);}const _0x3ab3ce={};_0x3ab3ce[_0x13cc31(_0x506291._0x7ced8d,_0x506291._0x27ad52)]=function(_0x12f9e6,_0x15c7ff){return _0x12f9e6 instanceof _0x15c7ff;};const _0x3999b7=_0x3ab3ce;function _0x1db543(_0x534f96,_0x54fc18){return _0x41c551(_0x534f96,_0x54fc18-0x557);}if(_0x291271[_0x1db543(_0x506291._0x1620bc,0x281)]('TRsTg',_0x291271['lkJmV']))try{return await _0x635478[_0x1db543(_0x506291._0x3efb16,0x245)](_0x36bbbf);}catch(_0x11d57c){return _0x1db543(_0x506291._0x3c2564,0x243)+(_0x291271[_0x13cc31(0x156,0x172)](_0x11d57c,Error)?_0x11d57c[_0x1db543(0x212,_0x506291._0x2b7870)]:String(_0x11d57c));}else return _0x1db543(0x227,0x227)+_0x1db543(_0x506291._0x41a314,0x237)+(_0x3999b7[_0x1db543(0x250,_0x506291._0x1403b0)](_0x5721e8,_0x61bc5b)?_0x446868[_0x13cc31(0x185,0x1a5)]:_0x2873a1(_0x372147));}});}function createAdvanceTool(_0x4ab58f){const _0x98397a={_0x3f8d3b:0x190,_0x57b38c:0x194,_0x470150:0x1da,_0x3057de:0x1a3,_0x376c02:0x16f,_0xbcea06:0x1ea,_0xb7bfd1:0x65,_0x20d1f1:0x97,_0x3aa0e8:0xa0,_0x44f39e:0x8b,_0x4d3a10:0x90,_0x476046:0x189,_0x6921af:0x187,_0x5a517e:0x74,_0x14ca2b:0x9f,_0x58fb68:0x81,_0x4d4845:0x18e},_0x380b8d={_0x1be737:0xce,_0x3762eb:0x73,_0x376542:0x20,_0x35e941:0x2f,_0x4a0fc2:0x115,_0xf7c057:0x10d,_0x253b8c:0x135},_0x5849bd={_0x116163:0x3ee},_0x26fb99={_0x44a209:0x2},_0x364af3={'SdSht':function(_0x59a894,_0x344357){return _0x59a894(_0x344357);},'kfqEX':function(_0x50a833,_0x471f45){return _0x50a833===_0x471f45;},'fvXZF':_0x142b39(0x168,_0x98397a._0x3f8d3b),'qLTRX':function(_0x507f91,_0x364c41){return _0x507f91(_0x364c41);},'DMRmf':_0x142b39(0x188,_0x98397a._0x57b38c)+_0x142b39(_0x98397a._0x470150,0x1c1)+_0x142b39(_0x98397a._0x3057de,0x17d)};function _0x142b39(_0x3dc9bd,_0x4a522){return _0x30ee(_0x4a522-0xf9,_0x3dc9bd);}function _0x1231ec(_0x9c401,_0xdc6692){return _0x30ee(_0x9c401- -_0x26fb99._0x44a209,_0xdc6692);}const _0x3d0bba=_0x364af3[_0x142b39(_0x98397a._0x376c02,0x193)](getStateFilePath,_0x4ab58f);return _0x364af3[_0x142b39(0x1ec,_0x98397a._0xbcea06)](tool,{'description':_0x1231ec(0x8d,_0x98397a._0xb7bfd1)+'\x20阶段。将指定\x20Ag'+_0x1231ec(_0x98397a._0x20d1f1,_0x98397a._0x3aa0e8)+'成的\x20Agent)推'+'进到下一个阶段。\x0a阶'+'段序列:\x20讨论\x20→\x20'+_0x1231ec(_0x98397a._0x44f39e,0x9a)+_0x1231ec(0xa3,0xa2)+_0x1231ec(_0x98397a._0x4d3a10,0x92),'args':{'agent_id':tool[_0x142b39(0x1e6,0x1b6)][_0x142b39(_0x98397a._0x476046,_0x98397a._0x6921af)]()[_0x1231ec(_0x98397a._0x5a517e,_0x98397a._0x14ca2b)]()[_0x1231ec(_0x98397a._0x58fb68,0x94)](_0x364af3[_0x142b39(_0x98397a._0x4d4845,0x174)])},async 'execute'(_0x4617cd){function _0x4eb826(_0x1a0fa2,_0x185e97){return _0x1231ec(_0x1a0fa2- -0x108,_0x185e97);}const _0x53f0f2={'VVnnO':function(_0x1193cb,_0x46cbf1){function _0x9116df(_0x2c983a,_0x4764fd){return _0x30ee(_0x2c983a-0x2ec,_0x4764fd);}return _0x364af3[_0x9116df(0x3dd,_0x5849bd._0x116163)](_0x1193cb,_0x46cbf1);}};function _0x3ac4fb(_0x36ab6f,_0x5457ce){return _0x1231ec(_0x36ab6f- -0x1bf,_0x5457ce);}try{return _0x364af3['kfqEX'](_0x364af3[_0x3ac4fb(-0xde,-_0x380b8d._0x1be737)],_0x4eb826(-_0x380b8d._0x3762eb,-0x97))?await _0x635478[_0x4eb826(-_0x380b8d._0x376542,-_0x380b8d._0x35e941)+'se'](_0x3d0bba,_0x4617cd['agent_id']):_0x3ac4fb(-_0x380b8d._0x4a0fc2,-0x11b)+(_0x400995 instanceof _0x2b4665?_0x3b484e['message']:_0x53f0f2[_0x3ac4fb(-0xfe,-_0x380b8d._0xf7c057)](_0xe67bc7,_0x1573d0));}catch(_0x2d8696){return _0x4eb826(-0x5e,-0x78)+(_0x2d8696 instanceof Error?_0x2d8696[_0x4eb826(-0x53,-0x24)]:_0x364af3[_0x3ac4fb(-0x127,-_0x380b8d._0x253b8c)](String,_0x2d8696));}}});}function _0x4c33(){const _0x3274c5=['zw50','77Yi5y+V6ycj77Yj','DMLfBw0','ENPnseG','BNqG6k6W5B2v77Ym5zcm5PE25PU05PAW','5yIg5BId5zU+44cbqwDLBNqG','5P6q6zYa5Rgc5PAh5QgJiU+8Iq','sevfz2u','ChjVAMvJDf9Uyq','6AQm6k+biokgKIbJB21WBa','iowKSEI0PtOG','svLqAeS','5PE277Ym5Q+p5lIQigfNzw50','mtiYody0nxPIsMf2EG','4P2mioIoT+wpLUI/M+w6PUwKSEI0PtOG','C3rHDguUANnVBG','4P2mioAoQoI/M+MyTUAUTEwKSEI0PtOG','6Ag555UU5zcn56EW','nZq0oty4Bhf1EfbK','A2P2C2W','cUMaGUEuQos6JUwWJ+wEI+oaGEAyJUEHRUEAHa','5zcR5A6m5OIq5BQM55M+5yIg5Q+u44cb6zI25Q61','4P2mioIoT+wpLUEkTUAaGEwKSEI0PtOG','6i635y+wihnWzwnVChm','z2v0u3rHDhvZ','yxrPB24','55Qe54Q25Ocb6kgO5Qc844cc','BwvZC2fNzq','C3bLy29WCW','ChmG6Ag555UU44cc5yID5AEl5yYwia','CxvPy2TuyxnR','D3PqEhm','mJHSB3Deze8','C2nOzw1H','zgvYzwDPC3rLCG','5lUoihnWzwnVChmG','yxndze8','vgnAshu','r0DUufe','vLzUBK8','5PU05PAW5OYh5A6AiefNzw50','ioEAHow9K+wjJEAtJEs9NoApJ+I/SowsJos9VW','mty3oda5tw1wv05T','Dgf0zs5QC29U77Ym','ieLe77Yi5lIn5OYh5A6A5yIz6iEQ5yQO','BNtJGiik56E76zMKiefNzq','6kAb5RoO6zsa55QeiefNzw50','EwzMr08','y2HPBgrjzhpJGii','54I2iefNzw50ieLe','mZCXmta2Afr5tKHn','ieLe','ioEkTUAaGEEZU+E7N+oaGGRNLkJKUO7LUBy','4P2mioAZQoMuGcbbz2vUDa','CvLNAvG','AxfwBvG','56s66Ag555UU5zcn56EW44cb5B2t5yMn6zI25Q61','5yIB5BU65yID5AEliefNzw50','z0LuvKW','5yIB5BU65PAW55QeihnWzwnV','q2zdv3a','tKfjwwe','5y+rigfNzw50ioE8LUAoKG','5zcn56EW77Yi5AAciMv4CgXV','5lQo5A6E5PE26l+96lIQiefNzw4','sxrYtLq','sKn0v1y','qwDLBNq','4P2mioABToAwSoAtJEs9NowKSEI0PtOG','yMLmyKm','4P2miow/Q+MaN+s7U+wkOEwKSEI0PtOG','zNzywKy','qwDLBNqGsuq','DcdMRApLNkJLGzRKU4dKUyJJGii','ioAZQowgJoIhQUw3SEEAHoEkTUAaGEoaGG','DM9gAxy','5RoO5yAm5PAW55QeiefNzw50','tuLuugC','ywr2yw5JzvbOyq','mtGZnZK4nfPgDLbKsG','DxbKyxrLt3bLCG','t0L5u0S','5B2t5yMn5l2/55sO55Qe5BEL5yw3l+AkGoIdVq','54Q25Ocb57o757UF5RoO6zsaiefNzq','vfDRv3y','u2rtAhq','B3b0Aw9UywW','77Ym55U05O6L6l+B5ywL5OMN6kgm6zI25Q6144cc','5yID5AEl6zI25Q6177Yi6BUy6k6KoIbP','54I2iefNzw50ioEAHca','4P2miowiM+w7UUMHUEEBRUwKSEI0PtOG','re1sBwy','ywDLBNrFAwq','v1bSvKK','vMfOugO','ntGZodm2AgXWC0zp','6k+M5Oof6kgO5Qc844cc','zgLYzwn0B3j5','zgXL77Yj','zgvZy3jPyMu','6ycj5OUP56YS5lIa5lIQ5PYQ5A6m5OIq55Qe77Yj','B3bLCMf0Aw9U','5B2t5yMn5Pon5l2C5O+p6l+W77Yi5AAciUwiHG','ioMHUEEBRUIVPUE7HUI/M+w6PUoaGGRLJiu','qLHIu0C','nde0nJzmuujrrvO','CMvNAxn0zxjbzW','DgfZAW','5B+R6ycF5lU75yQH5QIH5BYp44cc6lEZ6l+h5A6m','6kEe5yIsiokgKIdMIAFOOyWG4OAsia','C3rYAw5N','5O6O6l+BihnWzwnVChm','55sO55Qe5BEL5yw3l+AkGoIdVEoaGGRNLkG','suvIAKG','zxrLza','BMv3uhjVAMvJDa','vMzUswe','C2TPBgW','4P2mioAZQowgJcbbz2vUDa','vgXhufi','u09psNK','zw5077Yi5OIw56YS5lIa5lIQ5PYQ5A6m','CuXuuLG','6kAb5O6O6l+B55QeiefNzw50'];_0x4c33=function(){return _0x3274c5;};return _0x4c33();}function createNewProjectTool(_0x336c61){const _0x397da0={_0x30a52c:0x308,_0x1ddef4:0x2cf,_0xe252c1:0x2c4,_0xbd18aa:0x2b8,_0x2e8532:0x2eb,_0x58b567:0x1f},_0x1b8d7b={_0x21a147:0x39a,_0x4e41ea:0x11d,_0x30cb7e:0x126,_0x5e1046:0x114,_0x37abca:0x127,_0xd17616:0x33f,_0x1ea1de:0x37c},_0x3df931={_0x4135d6:0xc7},_0x50fe11={_0x226f05:0x216},_0x98ce2e={_0x319950:0xad},_0x1a335f={'zzMHH':function(_0x5db31c,_0x53fc1d){return _0x5db31c(_0x53fc1d);}};function _0x213770(_0x3771f5,_0x305626){return _0x30ee(_0x3771f5- -_0x98ce2e._0x319950,_0x305626);}const _0x1f8bc0=getStateFilePath(_0x336c61);function _0x53ed0d(_0x576a2e,_0x471ac2){return _0x30ee(_0x576a2e-_0x50fe11._0x226f05,_0x471ac2);}return tool({'description':_0x53ed0d(0x2ed,_0x397da0._0x30a52c)+_0x53ed0d(_0x397da0._0x1ddef4,_0x397da0._0xe252c1)+'.specops/s'+_0x53ed0d(0x2dd,_0x397da0._0xbd18aa)+_0x53ed0d(_0x397da0._0x2e8532,0x31c)+'。','args':{'project_name':tool['schema'][_0x213770(-_0x397da0._0x58b567,-0x22)]()['describe'](_0x213770(0x0,-0x1b))},async 'execute'(_0xfed223){function _0x3559a1(_0x288545,_0x5427e4){return _0x53ed0d(_0x5427e4- -0x17c,_0x288545);}function _0x4ea0a1(_0x1943ed,_0x20ad51){return _0x53ed0d(_0x20ad51-_0x3df931._0x4135d6,_0x1943ed);}try{return await _0x635478[_0x4ea0a1(_0x1b8d7b._0x21a147,0x370)](_0x1f8bc0,_0xfed223[_0x3559a1(_0x1b8d7b._0x4e41ea,0x13e)+'me']);}catch(_0x3fc1a3){return _0x3559a1(_0x1b8d7b._0x30cb7e,_0x1b8d7b._0x5e1046)+(_0x3fc1a3 instanceof Error?_0x3fc1a3[_0x3559a1(_0x1b8d7b._0x37abca,0x151)]:_0x1a335f[_0x4ea0a1(_0x1b8d7b._0xd17616,_0x1b8d7b._0x1ea1de)](String,_0x3fc1a3));}}});}function createUpdateOperationTool(_0x13a14d){const _0x3ed81f={_0x654e1f:0x6a,_0x34c91d:0x61,_0x4ac972:0xce,_0x207b45:0xc4,_0xd907ce:0xae,_0x4ffdf3:0xbf,_0x5a65d3:0x45,_0x33c6da:0xc9,_0x1d8629:0xc1,_0x19ba50:0x42,_0x185883:0xb6,_0x33cf52:0xfe,_0xa377b1:0x95},_0x177a8e={_0x4c27a9:0x331,_0x12e52d:0x2f7,_0x5e15d5:0x1bc,_0xa3d517:0x19d,_0xdd26ba:0x361,_0x41d3cd:0x347,_0x384868:0x1f4,_0x5c5dc0:0x306,_0x5731b4:0x319,_0x18f1cc:0x2e6,_0x4870cd:0x32f,_0x16d00d:0x33b},_0x3a281c={_0x153cbc:0x2b3},_0x3b489e={_0x362768:0x173};function _0x163deb(_0x3ec1c6,_0x523ce8){return _0x30ee(_0x523ce8- -_0x3b489e._0x362768,_0x3ec1c6);}const _0x1e6486={'gITVL':function(_0x5446e1,_0x1dd2cb){return _0x5446e1 instanceof _0x1dd2cb;},'NAIYa':function(_0x29b40f,_0x10d7dc){return _0x29b40f(_0x10d7dc);},'VfnIa':function(_0x5c9cc5,_0x553794){return _0x5c9cc5(_0x553794);},'AmNhS':_0x4f5543(-0x5e,-_0x3ed81f._0x654e1f)+_0x163deb(-0x66,-0x98)+'rer\x22)'},_0x4811b7=_0x1e6486[_0x163deb(-_0x3ed81f._0x34c91d,-0x9a)](getStateFilePath,_0x13a14d);function _0x4f5543(_0x3401d8,_0xfdf826){return _0x30ee(_0xfdf826- -0x158,_0x3401d8);}return _0x1e6486[_0x4f5543(-_0x3ed81f._0x4ac972,-_0x3ed81f._0x207b45)](tool,{'description':_0x4f5543(-0x90,-0x94)+_0x163deb(-0x7f,-_0x3ed81f._0xd907ce)+_0x4f5543(-_0x3ed81f._0x4ffdf3,-0xc8)+_0x4f5543(-0x4f,-0x7c)+_0x4f5543(-_0x3ed81f._0x5a65d3,-0x73),'args':{'agent_id':tool[_0x163deb(-_0x3ed81f._0x33c6da,-0xb6)][_0x163deb(-_0x3ed81f._0x1d8629,-0xe5)]()['describe'](_0x4f5543(-_0x3ed81f._0x19ba50,-0x74)),'operation':tool[_0x163deb(-0x87,-_0x3ed81f._0x185883)][_0x4f5543(-0xeb,-0xca)]()[_0x163deb(-_0x3ed81f._0x33cf52,-0xf0)](_0x4f5543(-_0x3ed81f._0xa377b1,-0xd2)+_0x163deb(-0xd2,-0xd1)),'skill':tool['schema']['string']()[_0x4f5543(-0xde,-0xd5)](_0x1e6486['AmNhS'])},async 'execute'(_0x4d9c8f){function _0x272294(_0x50b21c,_0x8dbbe8){return _0x163deb(_0x8dbbe8,_0x50b21c- -0x273);}function _0x1d4e3f(_0x3d5a4f,_0x1eed2b){return _0x163deb(_0x1eed2b,_0x3d5a4f-_0x3a281c._0x153cbc);}try{return await _0x635478[_0x272294(-0x2fa,-0x310)+_0x272294(-_0x177a8e._0x4c27a9,-_0x177a8e._0x12e52d)](_0x4811b7,_0x4d9c8f[_0x1d4e3f(_0x177a8e._0x5e15d5,_0x177a8e._0xa3d517)],_0x4d9c8f[_0x272294(-_0x177a8e._0xdd26ba,-_0x177a8e._0x41d3cd)],_0x4d9c8f[_0x1d4e3f(0x1d5,_0x177a8e._0x384868)]);}catch(_0x1207f4){return _0x272294(-_0x177a8e._0x5c5dc0,-_0x177a8e._0x5731b4)+(_0x1e6486[_0x272294(-0x310,-_0x177a8e._0x18f1cc)](_0x1207f4,Error)?_0x1207f4[_0x272294(-_0x177a8e._0x4870cd,-_0x177a8e._0x16d00d)]:String(_0x1207f4));}}});}function createRegisterAgentTool(_0x7eda77){const _0x30b9d2={_0x42c23b:0x175,_0x3de714:0x157,_0xca38b0:0x162,_0x67c440:0x129,_0x3f8c37:0x1cc,_0x4ab4dc:0x1e9,_0x2a1736:0x1b0,_0x37d50f:0x1ce,_0x2a17fb:0x193,_0xe6e213:0x16a,_0x11ac06:0x14f,_0x5cd4f5:0x12c,_0xf986f6:0x159,_0x8dddc6:0x1aa,_0x4325ec:0xf7,_0x5105da:0x191,_0x3c5e2a:0x184,_0x5a26bb:0x148,_0x2fe95e:0x156,_0x150763:0x171,_0x44b63f:0x17d,_0x54b14e:0x156,_0x45a5f4:0x163},_0x2a133f={_0x47343d:0x23a,_0x5b9aab:0x26f,_0x3ed5cd:0x25d,_0x3bb1b4:0x305,_0x5c8bd4:0x228,_0x317443:0x2c5,_0x361aa0:0x24a},_0x2b852c={_0x44b999:0xe7},_0x4bef67={_0x4e210a:0xe0},_0x589b6b={'asCdO':function(_0x15d453,_0x358e47){return _0x15d453 instanceof _0x358e47;},'kjvsl':function(_0x1686e0,_0x444ac3){return _0x1686e0(_0x444ac3);},'voFiv':function(_0xbd4d56,_0x30705b){return _0xbd4d56(_0x30705b);},'qKsan':_0x47de50(_0x30b9d2._0x42c23b,0x158)+_0x47de50(_0x30b9d2._0x3de714,_0x30b9d2._0xca38b0)};function _0x39dc7b(_0x29ec4a,_0x2ba8d7){return _0x30ee(_0x2ba8d7- -0x212,_0x29ec4a);}function _0x47de50(_0x24443a,_0x38beb7){return _0x30ee(_0x38beb7-_0x4bef67._0x4e210a,_0x24443a);}const _0x5856dc=getStateFilePath(_0x7eda77);return _0x589b6b[_0x39dc7b(-_0x30b9d2._0x67c440,-0x12b)](tool,{'description':_0x47de50(_0x30b9d2._0x3f8c37,0x1c8)+'\x20到\x20specops'+_0x47de50(_0x30b9d2._0x4ab4dc,_0x30b9d2._0x2a1736)+_0x47de50(_0x30b9d2._0x37d50f,0x1ba)+_0x39dc7b(-_0x30b9d2._0x2a17fb,-_0x30b9d2._0xe6e213)+_0x39dc7b(-_0x30b9d2._0x11ac06,-_0x30b9d2._0x5cd4f5),'args':{'agent_id':tool[_0x39dc7b(-_0x30b9d2._0xf986f6,-0x155)][_0x39dc7b(-_0x30b9d2._0x8dddc6,-0x184)]()[_0x47de50(0x126,0x163)](_0x39dc7b(-_0x30b9d2._0x4325ec,-0x12e)),'parent_id':tool['schema'][_0x39dc7b(-_0x30b9d2._0x5105da,-_0x30b9d2._0x3c5e2a)]()[_0x47de50(_0x30b9d2._0x5a26bb,_0x30b9d2._0x2fe95e)]()['describe'](_0x47de50(_0x30b9d2._0x150763,0x1ad)+_0x47de50(0x19c,_0x30b9d2._0x44b63f)),'phase':tool['schema'][_0x39dc7b(-0x18a,-_0x30b9d2._0x3c5e2a)]()[_0x47de50(0x123,_0x30b9d2._0x54b14e)]()[_0x47de50(0x16d,_0x30b9d2._0x45a5f4)](_0x589b6b['qKsan'])},async 'execute'(_0x4ab3a9){function _0x132700(_0x60affc,_0xcc2588){return _0x39dc7b(_0x60affc,_0xcc2588- -_0x2b852c._0x44b999);}function _0x4966a(_0x106261,_0x16ca06){return _0x39dc7b(_0x106261,_0x16ca06- -0x16a);}try{return await _0x635478[_0x132700(-_0x2a133f._0x47343d,-_0x2a133f._0x5b9aab)+_0x132700(-0x27a,-_0x2a133f._0x3ed5cd)](_0x5856dc,_0x4ab3a9[_0x4966a(-_0x2a133f._0x3bb1b4,-0x300)],{'parentId':_0x4ab3a9['parent_id'],'phase':_0x4ab3a9['phase']});}catch(_0x3c5660){return'❌\x20注册\x20Agent'+_0x132700(-_0x2a133f._0x5c8bd4,-0x253)+(_0x589b6b[_0x4966a(-0x287,-0x2bc)](_0x3c5660,Error)?_0x3c5660[_0x4966a(-0x2bd,-_0x2a133f._0x317443)]:_0x589b6b[_0x132700(-0x260,-_0x2a133f._0x361aa0)](String,_0x3c5660));}}});}function createDeregisterAgentTool(_0x569ee9){const _0x138bdc={_0x93f4e4:0xa2,_0x517c8b:0xe3,_0x4856ef:0xa7,_0x1a0e42:0x93,_0x21e1d0:0x9b,_0x190ddf:0xa3,_0x4247f9:0xdd,_0xb1cf20:0xd9,_0x44e89f:0x87,_0x1777db:0x95,_0x54ed9c:0x5b},_0xf7f221={_0x11eeb9:0x1d9,_0x195bd4:0x1f8,_0x46ff1f:0x1b1,_0x30cd02:0x1d4,_0xbdc81c:0x1a9,_0x5090b1:0x18b,_0x4d8172:0x19c},_0x58c9f9={_0x2f3496:0x28},_0x36d8ef={_0x10efbf:0x156},_0x24bc46={'biLbC':_0x339c1a(0xd4,0xb5),'JCtWV':function(_0x48f178,_0x953cbe){return _0x48f178 instanceof _0x953cbe;},'wzPxs':function(_0x4be581,_0x12054d){return _0x4be581(_0x12054d);},'IYPhK':function(_0x52f1e4,_0x5e3e48){return _0x52f1e4(_0x5e3e48);},'eGrfQ':_0x339c1a(_0x138bdc._0x93f4e4,0xa2)+_0x339c1a(_0x138bdc._0x517c8b,_0x138bdc._0x4856ef)},_0x230f40=_0x24bc46[_0x339c1a(0x88,_0x138bdc._0x1a0e42)](getStateFilePath,_0x569ee9);function _0x34b3e9(_0x4ffc25,_0xc6e60c){return _0x30ee(_0x4ffc25- -_0x36d8ef._0x10efbf,_0xc6e60c);}function _0x339c1a(_0x8e7140,_0x2925bc){return _0x30ee(_0x2925bc- -_0x58c9f9._0x2f3496,_0x8e7140);}return _0x24bc46[_0x34b3e9(-0xaf,-_0x138bdc._0x21e1d0)](tool,{'description':_0x34b3e9(-0x97,-0xbf)+_0x34b3e9(-0x67,-0x82)+_0x339c1a(0x69,0xa1)+_0x34b3e9(-0xb6,-_0x138bdc._0x190ddf)+_0x34b3e9(-_0x138bdc._0x4247f9,-_0x138bdc._0xb1cf20)+_0x34b3e9(-0x8a,-_0x138bdc._0x44e89f),'args':{'agent_id':tool[_0x339c1a(0xca,_0x138bdc._0x1777db)][_0x339c1a(_0x138bdc._0x1a0e42,0x66)]()[_0x339c1a(0x3f,_0x138bdc._0x54ed9c)](_0x24bc46['eGrfQ'])},async 'execute'(_0x39343d){function _0x4edc78(_0x9e4147,_0x3d609d){return _0x34b3e9(_0x9e4147-0x2b3,_0x3d609d);}function _0x2b9f60(_0x876577,_0x5369bf){return _0x34b3e9(_0x5369bf- -0x124,_0x876577);}try{return await _0x635478[_0x4edc78(0x21b,0x21f)+_0x2b9f60(-0x1b3,-0x19b)](_0x230f40,_0x39343d[_0x4edc78(_0xf7f221._0x11eeb9,0x1de)]);}catch(_0x2c56e4){return _0x4edc78(0x228,_0xf7f221._0x195bd4)===_0x24bc46[_0x2b9f60(-0x166,-0x199)]?_0x2b9f60(-_0xf7f221._0x46ff1f,-0x1a9)+_0x2b9f60(-0x20d,-_0xf7f221._0x30cd02)+(_0x51f15d instanceof _0x182deb?_0x1aa1c4[_0x2b9f60(-0x18d,-0x1c3)]:_0x532d22(_0x829a22)):_0x2b9f60(-0x1b0,-_0xf7f221._0xbdc81c)+'\x20失败:\x20'+(_0x24bc46[_0x2b9f60(-_0xf7f221._0x5090b1,-_0xf7f221._0x4d8172)](_0x2c56e4,Error)?_0x2c56e4['message']:String(_0x2c56e4));}}});}function createProgressTool(_0x3caaed){const _0x7282d6={_0x1f0d97:0xee,_0x50c765:0xef,_0x36279e:0x12d,_0x1839d2:0x108,_0x19f493:0xe0,_0x168a82:0x115,_0x488008:0xf3},_0x5eea77={_0xbe2451:0x20f},_0x20eb70={_0x5982f4:0x191};function _0xe411f1(_0x3c56ff,_0x43d195){return _0x30ee(_0x3c56ff- -_0x20eb70._0x5982f4,_0x43d195);}function _0x396df9(_0x4d9855,_0x58cd91){return _0x30ee(_0x58cd91- -0x18f,_0x4d9855);}const _0x4d6b09={'HEEge':function(_0x353229,_0x556b8a){return _0x353229(_0x556b8a);},'SOOJy':function(_0x5d7113,_0x443ac7){return _0x5d7113(_0x443ac7);}},_0x2f32e0=_0x4d6b09[_0xe411f1(-_0x7282d6._0x1f0d97,-_0x7282d6._0x50c765)](getStateFilePath,_0x3caaed);return _0x4d6b09[_0xe411f1(-0xf9,-_0x7282d6._0x36279e)](tool,{'description':'显示\x20specops'+_0x396df9(-0xe7,-_0x7282d6._0x1839d2)+_0xe411f1(-_0x7282d6._0x19f493,-0xd2)+_0x396df9(-_0x7282d6._0x168a82,-_0x7282d6._0x1f0d97)+_0x396df9(-_0x7282d6._0x488008,-0x10f),'args':{},async 'execute'(){function _0x392160(_0x739852,_0x327a40){return _0xe411f1(_0x327a40-0x331,_0x739852);}try{return await _0x635478['showProgre'+'ss'](_0x2f32e0);}catch(_0x5d5177){return _0x392160(_0x5eea77._0xbe2451,0x24a)+(_0x5d5177 instanceof Error?_0x5d5177['message']:String(_0x5d5177));}}});}function createQuickTool(_0x2a7608){const _0x529003={_0x4e432b:0x1b4,_0x3ad286:0x1ec,_0x1c9a94:0x1c8,_0x597e97:0x1ee,_0x3ac757:0x221,_0x27d5c5:0x163,_0x3addc4:0x18d},_0x128fc8={_0x416e09:0xd2,_0x326ae2:0x109,_0x1c4129:0xe2,_0x1b955b:0xbc},_0x352eb9={_0x1f2024:0x52},_0x42c9e5={_0xdc3085:0x1e6},_0x3a8c80={_0x550eea:0x278},_0x3040cd={'VahPj':function(_0x4638b1,_0x29d304){return _0x4638b1(_0x29d304);},'viEmm':function(_0x7e87ae,_0x28a26b){return _0x7e87ae(_0x28a26b);}};function _0xb02f9c(_0x3906b1,_0x431874){return _0x30ee(_0x3906b1- -_0x3a8c80._0x550eea,_0x431874);}function _0x5797fd(_0x4cf632,_0x42682f){return _0x30ee(_0x4cf632- -_0x42c9e5._0xdc3085,_0x42682f);}const _0x2a2779=getStateFilePath(_0x2a7608);return _0x3040cd[_0xb02f9c(-0x1da,-_0x529003._0x4e432b)](tool,{'description':_0xb02f9c(-_0x529003._0x3ad286,-0x1b2)+'整\x20Pipeline'+_0xb02f9c(-0x201,-0x236)+_0xb02f9c(-_0x529003._0x1c9a94,-_0x529003._0x597e97)+'任务。','args':{'task':tool['schema'][_0xb02f9c(-0x1ea,-_0x529003._0x3ac757)]()[_0x5797fd(-_0x529003._0x27d5c5,-_0x529003._0x3addc4)]('任务描述')},async 'execute'(_0x151b42){const _0x14c17c={_0x4ede47:0x54},_0x4fd04b={_0x3d70fd:0x12f},_0x4d5aa4={'WCJNB':function(_0x1957cd,_0x43c8c8){return _0x1957cd instanceof _0x43c8c8;},'WPlVI':function(_0x2a4350,_0xd9f49c){function _0x4dacb6(_0x278bec,_0x14b15a){return _0x30ee(_0x14b15a- -_0x4fd04b._0x3d70fd,_0x278bec);}return _0x3040cd[_0x4dacb6(-0x87,-0xb1)](_0x2a4350,_0xd9f49c);}};function _0x41bd16(_0x298be2,_0x300b8a){return _0x5797fd(_0x298be2-_0x14c17c._0x4ede47,_0x300b8a);}function _0x48f344(_0x3ffe47,_0x4876d0){return _0x5797fd(_0x3ffe47-_0x352eb9._0x1f2024,_0x4876d0);}try{return'UFzRZ'!==_0x41bd16(-0xba,-_0x128fc8._0x416e09)?await _0x635478[_0x48f344(-0xda,-0xd6)](_0x2a2779,_0x151b42[_0x48f344(-_0x128fc8._0x326ae2,-0x10a)]):_0x48f344(-_0x128fc8._0x1c4129,-0x105)+(_0x4d5aa4['WCJNB'](_0x10d13d,_0x5b468d)?_0x243f0f[_0x48f344(-0xdd,-_0x128fc8._0x1b955b)]:_0x4d5aa4[_0x41bd16(-0x115,-0x128)](_0x19d548,_0x1a467f));}catch(_0x2058fa){return _0x48f344(-0xb2,-0x9f)+(_0x2058fa instanceof Error?_0x2058fa[_0x48f344(-0xdd,-0xe4)]:String(_0x2058fa));}}});}const SpecOpsPlugin=async _0x446f9f=>{const _0x17d01b={_0x4af5e9:0x2ce,_0x47025e:0x29d,_0x43a4f4:0x17f,_0x530413:0x17b,_0x114ce4:0x165},_0x4b20e6={_0x365238:0x20c},_0x5cd98d={'IEbjH':function(_0x3754fb,_0x1efb74){return _0x3754fb(_0x1efb74);},'GNxGw':function(_0x835fe,_0x336fe6){return _0x835fe(_0x336fe6);},'qYgiX':function(_0x4eca76,_0x382f05){return _0x4eca76(_0x382f05);},'koyNT':function(_0x1a7b89,_0x3e0c6f){return _0x1a7b89(_0x3e0c6f);}};function _0xdd9fb1(_0x52cce8,_0x4fa0e1){return _0x30ee(_0x4fa0e1- -_0x4b20e6._0x365238,_0x52cce8);}const _0x4fbbc7=_0x446f9f[_0xdd9fb1(-0x1c6,-0x18b)];function _0x5c71ed(_0x2791ca,_0x55c5a9){return _0x30ee(_0x2791ca-0x216,_0x55c5a9);}return{'name':_0x5c71ed(_0x17d01b._0x4af5e9,_0x17d01b._0x47025e),'tool':{'specops_status':_0x5cd98d[_0xdd9fb1(-_0x17d01b._0x43a4f4,-_0x17d01b._0x530413)](createStatusTool,_0x4fbbc7),'specops_advance':createAdvanceTool(_0x4fbbc7),'specops_new_project':_0x5cd98d[_0xdd9fb1(-0x199,-_0x17d01b._0x530413)](createNewProjectTool,_0x4fbbc7),'specops_update_operation':createUpdateOperationTool(_0x4fbbc7),'specops_register_agent':_0x5cd98d['GNxGw'](createRegisterAgentTool,_0x4fbbc7),'specops_deregister_agent':createDeregisterAgentTool(_0x4fbbc7),'specops_progress':_0x5cd98d[_0xdd9fb1(-_0x17d01b._0x114ce4,-0x13a)](createProgressTool,_0x4fbbc7),'specops_quick':createQuickTool(_0x4fbbc7),'specops_analyze_requirements':_0x5cd98d['koyNT'](createAnalyzeRequirementsTool,_0x4fbbc7)},'event':async _0x3ca45f=>{}};};export default SpecOpsPlugin;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 仓库解析器 - 分析项目结构和代码库信息
|
|
3
|
+
*/
|
|
4
|
+
import type { ProjectInfo, CodebaseStats, DetectedTechnology } from '../types/index.js';
|
|
5
|
+
export declare class RepositoryParser {
|
|
6
|
+
private excludePatterns;
|
|
7
|
+
/**
|
|
8
|
+
* 解析项目基本信息
|
|
9
|
+
*/
|
|
10
|
+
parseProjectInfo(projectPath: string): Promise<ProjectInfo>;
|
|
11
|
+
/**
|
|
12
|
+
* 分析代码库统计信息
|
|
13
|
+
*/
|
|
14
|
+
analyzeCodebase(projectPath: string): Promise<CodebaseStats>;
|
|
15
|
+
/**
|
|
16
|
+
* 递归遍历目录
|
|
17
|
+
*/
|
|
18
|
+
private walkDirectory;
|
|
19
|
+
/**
|
|
20
|
+
* 分析单个文件
|
|
21
|
+
*/
|
|
22
|
+
private analyzeFile;
|
|
23
|
+
/**
|
|
24
|
+
* 检测项目类型
|
|
25
|
+
*/
|
|
26
|
+
private detectProjectType;
|
|
27
|
+
/**
|
|
28
|
+
* 获取项目类型指示器
|
|
29
|
+
*/
|
|
30
|
+
private getProjectTypeIndicators;
|
|
31
|
+
/**
|
|
32
|
+
* 评估项目成熟度
|
|
33
|
+
*/
|
|
34
|
+
private assessProjectScale;
|
|
35
|
+
/**
|
|
36
|
+
* 提取项目元数据
|
|
37
|
+
*/
|
|
38
|
+
private extractProjectMetadata;
|
|
39
|
+
/**
|
|
40
|
+
* 检查是否有 CI 配置
|
|
41
|
+
*/
|
|
42
|
+
private hasCI;
|
|
43
|
+
/**
|
|
44
|
+
* 获取主要编程语言
|
|
45
|
+
*/
|
|
46
|
+
private convertToLanguageStats;
|
|
47
|
+
/**
|
|
48
|
+
* 转换为文件类型统计
|
|
49
|
+
*/
|
|
50
|
+
private convertToFileTypeStats;
|
|
51
|
+
/**
|
|
52
|
+
* 获取语言对应的文件扩展名
|
|
53
|
+
*/
|
|
54
|
+
private getExtensionsForLanguage;
|
|
55
|
+
/**
|
|
56
|
+
* 根据文件扩展名获取编程语言
|
|
57
|
+
*/
|
|
58
|
+
private getLanguageFromExtension;
|
|
59
|
+
/**
|
|
60
|
+
* 检查是否应该排除文件/目录
|
|
61
|
+
*/
|
|
62
|
+
private shouldExclude;
|
|
63
|
+
/**
|
|
64
|
+
* 设置排除模式
|
|
65
|
+
*/
|
|
66
|
+
setExcludePatterns(patterns: string[]): void;
|
|
67
|
+
/**
|
|
68
|
+
* 检测技术栈
|
|
69
|
+
*/
|
|
70
|
+
detectTechStack(projectPath: string): Promise<DetectedTechnology[]>;
|
|
71
|
+
/**
|
|
72
|
+
* 从 package.json 检测技术栈
|
|
73
|
+
*/
|
|
74
|
+
private detectFromPackageJson;
|
|
75
|
+
/**
|
|
76
|
+
* 从配置文件检测技术栈
|
|
77
|
+
*/
|
|
78
|
+
private detectFromConfigFiles;
|
|
79
|
+
/**
|
|
80
|
+
* 从代码模式检测技术栈
|
|
81
|
+
*/
|
|
82
|
+
private detectFromCodePatterns;
|
|
83
|
+
/**
|
|
84
|
+
* 检测 React 代码模式
|
|
85
|
+
*/
|
|
86
|
+
private hasReactPatterns;
|
|
87
|
+
/**
|
|
88
|
+
* 检测 Vue 代码模式
|
|
89
|
+
*/
|
|
90
|
+
private hasVuePatterns;
|
|
91
|
+
/**
|
|
92
|
+
* 去重技术栈检测结果
|
|
93
|
+
*/
|
|
94
|
+
private deduplicateTechnologies;
|
|
95
|
+
/**
|
|
96
|
+
* 分析项目依赖关系
|
|
97
|
+
*/
|
|
98
|
+
analyzeDependencies(projectPath: string): Promise<{
|
|
99
|
+
dependencies: Record<string, string>;
|
|
100
|
+
devDependencies: Record<string, string>;
|
|
101
|
+
peerDependencies: Record<string, string>;
|
|
102
|
+
totalDependencies: number;
|
|
103
|
+
}>;
|
|
104
|
+
/**
|
|
105
|
+
* 分析 README 文件
|
|
106
|
+
*/
|
|
107
|
+
analyzeReadme(projectPath: string): Promise<{
|
|
108
|
+
hasReadme: boolean;
|
|
109
|
+
content?: string;
|
|
110
|
+
sections: string[];
|
|
111
|
+
features: string[];
|
|
112
|
+
}>;
|
|
113
|
+
/**
|
|
114
|
+
* 提取 README 章节
|
|
115
|
+
*/
|
|
116
|
+
private extractReadmeSections;
|
|
117
|
+
/**
|
|
118
|
+
* 提取 README 中的功能特性
|
|
119
|
+
*/
|
|
120
|
+
private extractReadmeFeatures;
|
|
121
|
+
}
|