specops 0.2.5 → 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 +764 -0
- package/.opencode/agent/specops-debugger.md +1246 -0
- package/.opencode/agent/specops-executor.md +475 -0
- package/.opencode/agent/specops-integration-checker.md +443 -0
- package/.opencode/agent/specops-phase-researcher.md +547 -0
- package/.opencode/agent/specops-plan-checker.md +690 -0
- package/.opencode/agent/specops-planner.md +581 -0
- package/.opencode/agent/specops-project-researcher.md +354 -0
- package/.opencode/agent/specops-research-synthesizer.md +242 -0
- package/.opencode/agent/specops-roadmapper.md +642 -0
- package/.opencode/agent/specops-work-verifier.md +573 -0
- package/.opencode/references/checkpoints.md +776 -0
- package/.opencode/references/continuation-format.md +249 -0
- package/.opencode/references/decimal-phase-calculation.md +65 -0
- package/.opencode/references/git-integration.md +248 -0
- package/.opencode/references/git-planning-commit.md +38 -0
- package/.opencode/references/model-profile-resolution.md +34 -0
- package/.opencode/references/model-profiles.md +92 -0
- package/.opencode/references/phase-argument-parsing.md +61 -0
- package/.opencode/references/planning-config.md +196 -0
- package/.opencode/references/questioning.md +145 -0
- package/.opencode/references/tdd.md +263 -0
- package/.opencode/references/ui-brand.md +160 -0
- package/.opencode/references/verification-patterns.md +612 -0
- package/.opencode/templates/DEBUG.md +164 -0
- package/.opencode/templates/UAT.md +180 -0
- package/.opencode/templates/VALIDATION.md +76 -0
- package/.opencode/templates/codebase/architecture.md +255 -0
- package/.opencode/templates/codebase/concerns.md +310 -0
- package/.opencode/templates/codebase/conventions.md +307 -0
- package/.opencode/templates/codebase/integrations.md +280 -0
- package/.opencode/templates/codebase/stack.md +186 -0
- package/.opencode/templates/codebase/structure.md +285 -0
- package/.opencode/templates/codebase/testing.md +480 -0
- package/.opencode/templates/context.md +221 -0
- package/.opencode/templates/continue-here.md +78 -0
- package/.opencode/templates/debug-subagent-prompt.md +91 -0
- package/.opencode/templates/discovery.md +147 -0
- package/.opencode/templates/milestone-archive.md +123 -0
- package/.opencode/templates/milestone.md +115 -0
- package/.opencode/templates/phase-prompt.md +333 -0
- package/.opencode/templates/planner-subagent-prompt.md +117 -0
- package/.opencode/templates/project.md +184 -0
- package/.opencode/templates/requirements.md +130 -0
- package/.opencode/templates/research-project/ARCHITECTURE.md +204 -0
- package/.opencode/templates/research-project/FEATURES.md +147 -0
- package/.opencode/templates/research-project/PITFALLS.md +200 -0
- package/.opencode/templates/research-project/STACK.md +120 -0
- package/.opencode/templates/research-project/SUMMARY.md +170 -0
- package/.opencode/templates/research.md +278 -0
- package/.opencode/templates/retrospective.md +54 -0
- package/.opencode/templates/roadmap.md +202 -0
- package/.opencode/templates/state.md +176 -0
- package/.opencode/templates/summary-complex.md +59 -0
- package/.opencode/templates/summary-minimal.md +41 -0
- package/.opencode/templates/summary-standard.md +48 -0
- package/.opencode/templates/summary.md +248 -0
- package/.opencode/templates/user-setup.md +311 -0
- package/.opencode/templates/verification-report.md +322 -0
- package/.opencode/workflows/add-phase.md +111 -0
- package/.opencode/workflows/add-tests.md +350 -0
- package/.opencode/workflows/add-todo.md +157 -0
- package/.opencode/workflows/audit-milestone.md +297 -0
- package/.opencode/workflows/check-todos.md +176 -0
- package/.opencode/workflows/cleanup.md +152 -0
- package/.opencode/workflows/complete-milestone.md +763 -0
- package/.opencode/workflows/diagnose-issues.md +219 -0
- package/.opencode/workflows/discovery-phase.md +288 -0
- package/.opencode/workflows/discuss-phase.md +542 -0
- package/.opencode/workflows/execute-phase.md +449 -0
- package/.opencode/workflows/execute-plan.md +447 -0
- package/.opencode/workflows/health.md +156 -0
- package/.opencode/workflows/help.md +489 -0
- package/.opencode/workflows/insert-phase.md +129 -0
- package/.opencode/workflows/list-phase-assumptions.md +178 -0
- package/.opencode/workflows/map-codebase.md +315 -0
- package/.opencode/workflows/new-milestone.md +382 -0
- package/.opencode/workflows/new-project.md +1116 -0
- package/.opencode/workflows/pause-work.md +122 -0
- package/.opencode/workflows/plan-milestone-gaps.md +274 -0
- package/.opencode/workflows/plan-phase.md +569 -0
- package/.opencode/workflows/progress.md +381 -0
- package/.opencode/workflows/quick.md +453 -0
- package/.opencode/workflows/remove-phase.md +154 -0
- package/.opencode/workflows/research-phase.md +73 -0
- package/.opencode/workflows/resume-project.md +304 -0
- package/.opencode/workflows/set-profile.md +80 -0
- package/.opencode/workflows/settings.md +213 -0
- package/.opencode/workflows/transition.md +544 -0
- package/.opencode/workflows/update.md +219 -0
- package/.opencode/workflows/verify-phase.md +242 -0
- package/.opencode/workflows/verify-work.md +569 -0
- package/commands/specops/add-phase.md +43 -0
- package/commands/specops/add-tests.md +41 -0
- package/commands/specops/add-todo.md +47 -0
- package/commands/specops/audit-milestone.md +36 -0
- package/commands/specops/check-todos.md +45 -0
- package/commands/specops/cleanup.md +18 -0
- package/commands/specops/complete-milestone.md +136 -0
- package/commands/specops/debug.md +167 -0
- package/commands/specops/discuss-phase.md +83 -0
- package/commands/specops/execute-phase.md +41 -0
- package/commands/specops/health.md +22 -0
- package/commands/specops/help.md +22 -0
- package/commands/specops/insert-phase.md +32 -0
- package/commands/specops/join-discord.md +18 -0
- package/commands/specops/list-phase-assumptions.md +46 -0
- package/commands/specops/map-codebase.md +71 -0
- package/commands/specops/new-milestone.md +44 -0
- package/commands/specops/new-project.md +42 -0
- package/commands/specops/pause-work.md +38 -0
- package/commands/specops/plan-milestone-gaps.md +34 -0
- package/commands/specops/plan-phase.md +45 -0
- package/commands/specops/progress.md +24 -0
- package/commands/specops/quick.md +41 -0
- package/commands/specops/reapply-patches.md +111 -0
- package/commands/specops/remove-phase.md +31 -0
- package/commands/specops/research-phase.md +189 -0
- package/commands/specops/resume-work.md +40 -0
- package/commands/specops/set-profile.md +34 -0
- package/commands/specops/settings.md +36 -0
- package/commands/specops/update.md +37 -0
- package/commands/specops/verify-work.md +38 -0
- 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.d.ts +4 -3
- 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 +4 -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(_0x24e8e9,_0x27965c){const _0x1600cc={_0x1abc70:0x4e6,_0x11bd99:0x539,_0xdb113d:0x85,_0x25c8ac:0x30,_0x69856e:0x4ba,_0x3c9a71:0x35,_0x15e8b2:0x52,_0xaa4c9d:0x78,_0x36f3c4:0x67,_0x5c9ae2:0x7f,_0x59dd7a:0x24},_0x3ed5d2={_0x5c5f0d:0x302},_0x5644fc={_0x4a625e:0x20b};function _0x1104d2(_0x34b5e7,_0x454a50){return _0x20ca(_0x454a50- -_0x5644fc._0x4a625e,_0x34b5e7);}const _0x1b5351=_0x24e8e9();function _0x4d59af(_0x3dc1c9,_0x18b0bc){return _0x20ca(_0x3dc1c9-_0x3ed5d2._0x5c5f0d,_0x18b0bc);}while(!![]){try{const _0x10a8d1=-parseInt(_0x1104d2(-0x7b,-0x6a))/(0x188+-0x9*-0x2c9+-0x4a*0x5c)+parseInt(_0x1104d2(-0x3a,-0x2d))/(-0x2*-0xae7+0x1d06+-0x515*0xa)+-parseInt(_0x4d59af(_0x1600cc._0x1abc70,_0x1600cc._0x11bd99))/(-0x464+0x57*-0x57+0x10fc*0x2)+parseInt(_0x1104d2(-_0x1600cc._0xdb113d,-_0x1600cc._0x25c8ac))/(-0x502*-0x2+0x7*-0x1f3+-0x3a5*-0x1)+-parseInt(_0x4d59af(_0x1600cc._0x69856e,0x4dd))/(0x20d*-0x7+0x2616+0xa*-0x25f)*(parseInt(_0x4d59af(0x4ae,0x48e))/(0x4af+0x460+0x3*-0x303))+parseInt(_0x1104d2(-_0x1600cc._0x3c9a71,-_0x1600cc._0x15e8b2))/(0x956+-0xdc8+-0x5*-0xe5)*(-parseInt(_0x1104d2(-_0x1600cc._0xaa4c9d,-_0x1600cc._0x36f3c4))/(0x101*0x11+0xd*-0x1f9+0x1d*0x4c))+parseInt(_0x1104d2(-_0x1600cc._0x25c8ac,-_0x1600cc._0x5c9ae2))/(-0x11ea*0x1+0x3*-0x315+0xd99*0x2)*(parseInt(_0x1104d2(-_0x1600cc._0x59dd7a,-0x3a))/(-0x1f1c+0x65f*-0x3+0x3243));if(_0x10a8d1===_0x27965c)break;else _0x1b5351['push'](_0x1b5351['shift']());}catch(_0x2d76c6){_0x1b5351['push'](_0x1b5351['shift']());}}}(_0xdaa7,-0x1*0x39e2f+0x1005b1+-0x353f4));import{existsSync,readFileSync,mkdirSync}from'node:fs';import{resolve}from'node:path';import{StateFileManager}from'./persistence/stateFile.js';function _0x313b3d(_0xefc857,_0x2c0f34){const _0x1645ed={_0x124354:0x1a};return _0x20ca(_0xefc857-_0x1645ed._0x124354,_0x2c0f34);}import{PHASES,PIPELINE_PHASES}from'./types/index.js';import{generateAgentId}from'./utils/id.js';const _0x2e511d={};_0x2e511d[_0x29b0ad(0x1fb,0x232)+_0x313b3d(0x1a4,0x15d)]='需求分析',_0x2e511d[_0x29b0ad(0x220,0x257)+_0x29b0ad(0x238,0x255)]=_0x313b3d(0x1da,0x1a7),_0x2e511d[_0x313b3d(0x1bf,0x17c)+_0x29b0ad(0x1df,0x221)]=_0x313b3d(0x1e1,0x1a6),_0x2e511d[_0x313b3d(0x1d4,0x1d8)+_0x313b3d(0x1a3,0x19c)]='技术选型',_0x2e511d[_0x313b3d(0x1d1,0x1ad)]='讨论',_0x2e511d[_0x29b0ad(0x27e,0x27a)]='规划',_0x2e511d['execute']='执行';function _0x29b0ad(_0x820af2,_0x1506e4){const _0x17c372={_0x3ddad3:0x89};return _0x20ca(_0x820af2-_0x17c372._0x3ddad3,_0x1506e4);}_0x2e511d[_0x29b0ad(0x1e5,0x18f)]='验证';const PHASE_NAMES=_0x2e511d,MAX_RETRIES=0x14b*0x1+0x1b0f+-0x1c55;async function readStateFile(_0x71f1b){const _0x5640dc={_0x3ddcd8:0x51a,_0x25de13:0x549},_0x59d2e1={_0x50bc69:0x304},_0x24f705={'gIhzO':function(_0x515d52,_0x47c7e2){return _0x515d52(_0x47c7e2);}};function _0x58a619(_0x441648,_0x12ec0a){return _0x29b0ad(_0x441648-_0x59d2e1._0x50bc69,_0x12ec0a);}function _0x397abc(_0x49a7b0,_0x413000){return _0x313b3d(_0x413000- -0x392,_0x49a7b0);}if(!_0x24f705[_0x58a619(_0x5640dc._0x3ddcd8,_0x5640dc._0x25de13)](existsSync,_0x71f1b))return null;const _0x4cbf48=new StateFileManager(_0x71f1b);return _0x4cbf48[_0x397abc(-0x242,-0x1ed)]();}async function writeStateFile(_0x4b091e,_0x5c6745){const _0x3f58ac={_0x169f97:0x57,_0x1cbe87:0x7e,_0x4ab896:0xf1,_0x3a22e4:0x5b,_0x10cc4d:0x406,_0x4db88e:0x55,_0x12497a:0xaa,_0x2e9af6:0x36e},_0x2ab6d0={_0x10f947:0x1dd},_0x16ed02={'vomve':function(_0x317282,_0x553c89,_0x136b7f){return _0x317282(_0x553c89,_0x136b7f);},'bBVwl':function(_0x2aba60,_0x37f996){return _0x2aba60<_0x37f996;},'GQQOZ':function(_0x32578c,_0x45d884){return _0x32578c!==_0x45d884;},'mIdRT':function(_0xd787a5,_0x3997af){return _0xd787a5 instanceof _0x3997af;}};function _0x3657c2(_0x316212,_0x21cb9e){return _0x29b0ad(_0x21cb9e- -0x2d2,_0x316212);}function _0x1b361f(_0x45e8e6,_0x3c5914){return _0x313b3d(_0x45e8e6-_0x2ab6d0._0x10f947,_0x3c5914);}for(let _0x50d34d=-0x171f*-0x1+-0xf1c*0x2+0x719;_0x16ed02[_0x3657c2(-0x33,-0x8a)](_0x50d34d,MAX_RETRIES);_0x50d34d++){try{const _0x585f54=new StateFileManager(_0x4b091e);await _0x585f54['read'](),await _0x585f54[_0x3657c2(-_0x3f58ac._0x169f97,-_0x3f58ac._0x1cbe87)](_0x5c6745);return;}catch(_0x278826){if(_0x16ed02[_0x3657c2(-0x12a,-_0x3f58ac._0x4ab896)](_0x3657c2(-0xa1,-_0x3f58ac._0x3a22e4),_0x1b361f(0x3de,_0x3f58ac._0x10cc4d))){if(_0x16ed02[_0x3657c2(-_0x3f58ac._0x4db88e,-_0x3f58ac._0x12497a)](_0x278826,Error)&&_0x278826['message']['includes']('乐观锁冲突')&&_0x50d34d<MAX_RETRIES-(0x1ef5*0x1+-0xc9e+-0x92b*0x2)){await new Promise(_0x338e47=>setTimeout(_0x338e47,-0x111+0x1*-0x192b+0x1a6e+Math[_0x3657c2(-0x3b,-0x57)]()*(-0x11*-0x19f+0x1e3d+-0x3968)));continue;}throw _0x278826;}else{const _0x37a39c={};_0x37a39c[_0x3657c2(-0xe5,-0xc7)]=!![],_0x16ed02[_0x1b361f(_0x3f58ac._0x2e9af6,0x354)](_0x36eb5d,_0x3d455a,_0x37a39c);}}}}function computeOverallPhase(_0x399141){const _0x4eaa0a={_0x5c8a10:0x197,_0x35c722:0x3b3,_0x3adcfb:0x408,_0x234125:0x14c,_0x1bf756:0x19a,_0x5aaa2b:0x3b9,_0x5bf5a7:0x3df,_0x3da97e:0x3b7,_0x44b67b:0x40a},_0x3b5113={_0x2db40c:0x1a},_0x43ca89={};_0x43ca89[_0x554e1f(_0x4eaa0a._0x5c8a10,0x17e)]=function(_0x424965,_0x12df7c){return _0x424965!==_0x12df7c;},_0x43ca89[_0x554e1f(0x1e2,0x19a)]='fpPLM';function _0x554e1f(_0x2ad23c,_0x45ce8a){return _0x313b3d(_0x45ce8a-_0x3b5113._0x2db40c,_0x2ad23c);}function _0x4c4fcb(_0x2d8886,_0x2c2479){return _0x313b3d(_0x2d8886-0x22c,_0x2c2479);}const _0x9526ca=_0x43ca89;for(const _0x1c9dcd of Object[_0x4c4fcb(_0x4eaa0a._0x35c722,_0x4eaa0a._0x3adcfb)](_0x399141)){if(_0x9526ca[_0x4c4fcb(0x390,0x37c)](_0x9526ca[_0x554e1f(_0x4eaa0a._0x234125,_0x4eaa0a._0x1bf756)],'fpPLM'))return'⚠️\x20\x20状态文件不存在'+_0x4c4fcb(0x408,_0x4eaa0a._0x5aaa2b)+_0x4c4fcb(0x40e,_0x4eaa0a._0x5bf5a7);else{if(_0x399141[_0x1c9dcd]['phase']!==_0x4c4fcb(_0x4eaa0a._0x3da97e,_0x4eaa0a._0x44b67b))return _0x399141[_0x1c9dcd][_0x554e1f(0x1d0,0x227)];}}return _0x4c4fcb(0x3b7,_0x4eaa0a._0x3da97e);}export async function getStatus(_0x2fcd40){const _0x184aa3={_0x12ca93:0x52f,_0x34060f:0x492,_0x2848ae:0x495,_0x143c56:0x4dc,_0x16b976:0x552,_0x4b0e39:0x51a,_0x49ea2e:0x2b,_0x142a9b:0x5,_0x550444:0x515,_0x1ac4c3:0x4e2,_0x102284:0x4b,_0x5690b6:0xc,_0x502b2c:0x53a,_0x578d80:0x52,_0x5d849f:0x12,_0x246c95:0xb,_0x3a07ff:0x25,_0x243f3a:0xa,_0x2ce404:0x53,_0x2a6d48:0x4ec,_0x4745fc:0x541,_0x360ff5:0x4f6,_0x2f7777:0x9d,_0x413ee3:0x83,_0x39901d:0x532,_0x10a96c:0x486,_0x13a171:0x4a8,_0x5d86ca:0x49e,_0x316729:0x90,_0x1b54c8:0x3b,_0x4ba086:0x73,_0x1211ef:0x491,_0x4dac37:0x4a8,_0x33a16a:0x49f,_0x3af011:0x4f4,_0x348190:0x4bd,_0x2a8e9b:0x4d0,_0x1054c6:0x4fa,_0x5606cb:0x7e,_0x29e4ca:0x519,_0x8f644f:0x50e},_0x26bf3b={_0x5bb406:0x187},_0x24b4ae={'UGmsf':function(_0x29b0da,_0xa20c29){return _0x29b0da(_0xa20c29);},'KkUwD':function(_0x8eee60,_0x2991cc,_0x543c9e){return _0x8eee60(_0x2991cc,_0x543c9e);},'Aukfs':_0x432d99(0x50f,_0x184aa3._0x12ca93),'oXQJl':function(_0x1cbf96,_0x5a2062){return _0x1cbf96===_0x5a2062;},'nkvpl':_0x432d99(_0x184aa3._0x34060f,_0x184aa3._0x2848ae),'XCUzu':_0x1186d2(0x41,0x18),'kuCWv':'\x20\x20\x20Agent\x20I'+'D\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1186d2(0x6d,0x41)+_0x1186d2(-0xf,0x44)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1186d2(0x7d,0x29)+'工具','jlSNL':_0x432d99(_0x184aa3._0x143c56,0x4fa)};if(!_0x24b4ae[_0x432d99(_0x184aa3._0x16b976,_0x184aa3._0x4b0e39)](existsSync,_0x2fcd40))return _0x1186d2(-_0x184aa3._0x49ea2e,0x11)+_0x1186d2(_0x184aa3._0x142a9b,0x55)+_0x432d99(0x504,_0x184aa3._0x550444);const _0x5757ca=_0x24b4ae[_0x432d99(0x537,_0x184aa3._0x1ac4c3)](readFileSync,_0x2fcd40,_0x24b4ae[_0x1186d2(-_0x184aa3._0x102284,_0x184aa3._0x5690b6)]),_0x207746=JSON[_0x432d99(0x580,_0x184aa3._0x502b2c)](_0x5757ca),_0x1616ef=[];_0x1616ef[_0x1186d2(-_0x184aa3._0x578d80,-_0x184aa3._0x5d849f)](_0x1186d2(0x20,-_0x184aa3._0x246c95)+_0x207746[_0x1186d2(-_0x184aa3._0x3a07ff,-_0x184aa3._0x243f3a)]['name']),_0x1616ef['push']('\x20\x20\x20当前阶段:\x20'+(PHASE_NAMES[_0x207746[_0x1186d2(-_0x184aa3._0x2ce404,-0xa)][_0x432d99(_0x184aa3._0x2a6d48,0x541)+'se']]??_0x207746[_0x432d99(0x4bb,0x4b0)][_0x432d99(0x4f5,_0x184aa3._0x4745fc)+'se'])),_0x1616ef[_0x432d99(_0x184aa3._0x360ff5,0x4a8)](_0x1186d2(_0x184aa3._0x2f7777,_0x184aa3._0x413ee3)+_0x207746[_0x432d99(0x4de,_0x184aa3._0x39901d)]),_0x1616ef[_0x432d99(_0x184aa3._0x10a96c,_0x184aa3._0x13a171)](_0x1186d2(0x94,0x3d)+_0x207746[_0x432d99(0x4d9,_0x184aa3._0x5d86ca)]);const _0x141697=_0x207746[_0x1186d2(-_0x184aa3._0x2ce404,-0xc)],_0x47d596=Object[_0x1186d2(0x16,0x0)](_0x141697);if(_0x24b4ae[_0x1186d2(0x44,0x26)](_0x47d596['length'],0x222*0x6+0x21eb+-0x2eb7))return _0x24b4ae[_0x1186d2(_0x184aa3._0x316729,_0x184aa3._0x1b54c8)]===_0x24b4ae[_0x1186d2(0x46,0x62)]?_0x486db7[_0x2f6974]['phase']:(_0x1616ef['push']('\x20\x20\x20暂无\x20Agen'+_0x432d99(0x519,0x519)),_0x1616ef[_0x1186d2(0xab,_0x184aa3._0x4ba086)]('\x0a'));function _0x1186d2(_0x46760f,_0x2d4591){return _0x313b3d(_0x2d4591- -_0x26bf3b._0x5bb406,_0x46760f);}function _0x432d99(_0x8c555d,_0x19d408){return _0x313b3d(_0x19d408-0x333,_0x8c555d);}_0x1616ef[_0x432d99(0x47a,_0x184aa3._0x13a171)](''),_0x1616ef[_0x432d99(_0x184aa3._0x1211ef,_0x184aa3._0x4dac37)](_0x24b4ae['kuCWv']),_0x1616ef['push'](_0x24b4ae['jlSNL']+'-'[_0x432d99(0x470,_0x184aa3._0x33a16a)](-0x1e95*-0x1+0x2231*-0x1+0x3ec));for(const _0x553ebd of _0x47d596){const _0x3c46e8=_0x141697[_0x553ebd],_0x20c396=PHASE_NAMES[_0x3c46e8[_0x432d99(0x58f,0x540)]]??_0x3c46e8[_0x432d99(_0x184aa3._0x3af011,0x540)],_0x2d9a0b=_0x3c46e8[_0x432d99(0x4ec,_0x184aa3._0x348190)+_0x432d99(0x4bb,0x4ce)]||'-',_0x3455b3=_0x3c46e8[_0x1186d2(-0xb,-0xe)+'ll']||'-';_0x1616ef['push'](_0x432d99(_0x184aa3._0x2a8e9b,_0x184aa3._0x1054c6)+_0x553ebd['padEnd'](0x16d8*0x1+-0x130e+0x88*-0x7)+_0x432d99(0x4bd,0x50e)+_0x20c396['padEnd'](0x1ced+-0x136f+-0x970)+_0x432d99(0x4c4,0x50e)+_0x2d9a0b[_0x1186d2(0x5b,_0x184aa3._0x5606cb)](0x5e4*0x2+0x86a+-0x141d*0x1)+_0x432d99(_0x184aa3._0x29e4ca,0x50e)+_0x3455b3);}return _0x1616ef[_0x432d99(_0x184aa3._0x8f644f,0x52d)]('\x0a');}export async function advancePhase(_0x329d58,_0x423e9c){const _0x2856b7={_0x42fff3:0x367,_0x12e744:0x31a,_0x5aeeb2:0x2b0,_0x2abe60:0x31a,_0x4be739:0x311,_0x381795:0x506,_0xa166fb:0x4e0,_0x2f1495:0x544,_0x1a5a56:0x509,_0x5bb8a6:0x56c,_0x1abff5:0x51f,_0x1ea0b7:0x539,_0x326356:0x53a,_0x1d185d:0x316,_0x2bf339:0x31f,_0x504f9e:0x535,_0x3dc3c8:0x370,_0x4f0e54:0x341,_0x2f0ab9:0x54d,_0x18fc51:0x505,_0x12ebf8:0x5d2,_0x53be6f:0x57c,_0x79fd24:0x587,_0x3cf2f6:0x4f5,_0x227dd8:0x55e,_0x87f8bf:0x2ed,_0x70c2:0x515,_0x1076f1:0x4e5,_0x1120b4:0x4f3,_0x1fa548:0x2e0,_0x274165:0x289,_0x4d9e8b:0x4c5,_0xe63e24:0x4f5,_0x1bcdca:0x566,_0x3ca385:0x312,_0x4cacd1:0x53f,_0x5266a7:0x531,_0x43d508:0x33b,_0x1eebc3:0x35d},_0x58b7a3={_0x312dc3:0xf4},_0x49bf57={_0x133ed9:0x30b},_0x30672e={'RtuUD':_0x2e6b1f(0x553,0x512)+',请先运行\x20new-'+'project\x20命令','uaHed':function(_0x17eef4,_0x24d3af){return _0x17eef4===_0x24d3af;},'LsNcU':_0x2160db(_0x2856b7._0x42fff3,0x354)+_0x2160db(0x324,_0x2856b7._0x12e744),'nghft':function(_0x53c8d5,_0xcb923a){return _0x53c8d5(_0xcb923a);},'ZEzlx':function(_0x55523c,_0x32b62f,_0x1d75b9){return _0x55523c(_0x32b62f,_0x1d75b9);}},_0x245fb8=await readStateFile(_0x329d58);if(!_0x245fb8)return _0x30672e['RtuUD'];const _0x25b6fc=_0x423e9c??Object[_0x2160db(0x2ea,0x29c)](_0x245fb8[_0x2160db(0x2de,_0x2856b7._0x5aeeb2)])[_0x2e6b1f(0x541,0x55d)](_0x5c4794=>_0x245fb8[_0x2e6b1f(0x4af,0x4f5)][_0x5c4794][_0x2160db(0x370,0x351)]!==_0x2e6b1f(0x501,0x505));if(!_0x25b6fc){if(_0x30672e[_0x2160db(_0x2856b7._0x2abe60,_0x2856b7._0x4be739)](_0x2e6b1f(_0x2856b7._0x381795,_0x2856b7._0xa166fb),_0x2e6b1f(_0x2856b7._0x2f1495,_0x2856b7._0x1a5a56))){if(!_0x27e6df(_0x1c6bd5))return null;const _0x4c0e8c=new _0x58bdcf(_0x3dba87);return _0x4c0e8c[_0x2e6b1f(_0x2856b7._0x5bb8a6,_0x2856b7._0x1abff5)]();}else return _0x30672e[_0x2e6b1f(_0x2856b7._0x1ea0b7,_0x2856b7._0x326356)];}const _0x5920eb=_0x245fb8['agents'][_0x25b6fc];if(!_0x5920eb)return _0x2160db(_0x2856b7._0x1d185d,_0x2856b7._0x2bf339)+_0x25b6fc+(_0x2e6b1f(_0x2856b7._0x504f9e,0x53d)+'e.json');if(_0x5920eb[_0x2160db(_0x2856b7._0x3dc3c8,_0x2856b7._0x4f0e54)]===_0x2e6b1f(_0x2856b7._0x2f0ab9,_0x2856b7._0x18fc51))return'['+_0x25b6fc+_0x2e6b1f(_0x2856b7._0x12ebf8,_0x2856b7._0x53be6f);const _0x1831c5=_0x30672e['nghft'](computeNextPhase,_0x5920eb[_0x2160db(0x370,0x3b9)]),_0xeac8a1=PHASE_NAMES[_0x5920eb[_0x2160db(_0x2856b7._0x3dc3c8,0x364)]]??_0x5920eb[_0x2e6b1f(0x5dd,_0x2856b7._0x79fd24)];function _0x2e6b1f(_0xd609c,_0x5d8a9b){return _0x29b0ad(_0x5d8a9b-_0x49bf57._0x133ed9,_0xd609c);}const _0x5e8e0c=PHASE_NAMES[_0x1831c5]??_0x1831c5,_0x45d175={..._0x245fb8[_0x2e6b1f(0x4cd,_0x2856b7._0x3cf2f6)]},_0x1cb14c=_0x45d175,_0x512c63={..._0x5920eb};_0x512c63[_0x2e6b1f(_0x2856b7._0x227dd8,0x587)]=_0x1831c5,_0x512c63[_0x2160db(_0x2856b7._0x87f8bf,0x2ee)+_0x2e6b1f(0x556,_0x2856b7._0x70c2)]='',_0x512c63[_0x2e6b1f(_0x2856b7._0x1076f1,_0x2856b7._0x1120b4)+'ll']='',_0x1cb14c[_0x25b6fc]=_0x512c63;function _0x2160db(_0xb71bd2,_0x4eedc7){return _0x29b0ad(_0xb71bd2-_0x58b7a3._0x312dc3,_0x4eedc7);}const _0x3d97f3=computeOverallPhase(_0x1cb14c),_0x1e7eee={..._0x245fb8[_0x2160db(_0x2856b7._0x1fa548,_0x2856b7._0x274165)]};_0x1e7eee['currentPha'+'se']=_0x3d97f3;const _0x5d89cd={};_0x5d89cd['project']=_0x1e7eee,_0x5d89cd[_0x2e6b1f(_0x2856b7._0x4d9e8b,_0x2856b7._0xe63e24)]=_0x1cb14c,_0x5d89cd[_0x2e6b1f(0x5a2,_0x2856b7._0x1bcdca)+'pshot']=_0x245fb8[_0x2160db(0x34f,0x376)+_0x2160db(0x2cb,_0x2856b7._0x3ca385)],await _0x30672e[_0x2160db(0x2ca,0x27a)](writeStateFile,_0x329d58,_0x5d89cd);const _0x251ef=[];return _0x251ef['push']('['+_0x25b6fc+']\x20'+_0xeac8a1+'\x20→\x20'+_0x5e8e0c),_0x30672e[_0x2e6b1f(_0x2856b7._0x4cacd1,_0x2856b7._0x5266a7)](_0x1831c5,'completed')&&_0x251ef['push'](_0x2160db(_0x2856b7._0x43d508,0x2ee)+_0x25b6fc+_0x2e6b1f(0x522,0x53b)),_0x251ef[_0x2160db(_0x2856b7._0x1eebc3,0x309)]('\x0a');}function computeNextPhase(_0x103e2d){const _0x1bda93={_0x4e3533:0x1de,_0x279973:0x1dc,_0x2fc01e:0x4a,_0x42d869:0xb7,_0xf27813:0x6d,_0x35baba:0x13d,_0x515897:0x1c4,_0x40422b:0x19b,_0x4d93fc:0xb8,_0x17fd57:0x178,_0x2587d0:0x1c0,_0x49da38:0x43,_0x13eb93:0x1ea,_0x2dcd6a:0x1ba,_0x1179f1:0x6a,_0x1fabe1:0x1b8,_0x351980:0x188,_0xba17a4:0x17e,_0x507acb:0x4d,_0xaba9cc:0xe,_0x3396e9:0x166,_0x2bfb77:0x202,_0x488eed:0x189},_0x2a84d5={};_0x2a84d5[_0xa7229(-_0x1bda93._0x4e3533,-_0x1bda93._0x279973)]=function(_0x13f5ff,_0x1833f4){return _0x13f5ff<_0x1833f4;},_0x2a84d5['fSyEO']=function(_0x20b591,_0x2dd8e7){return _0x20b591+_0x2dd8e7;};function _0xa7229(_0x2f5441,_0x455600){return _0x29b0ad(_0x2f5441- -0x3bc,_0x455600);}_0x2a84d5['gmGwr']=_0x86d670(_0x1bda93._0x2fc01e,0x56),_0x2a84d5[_0x86d670(_0x1bda93._0x42d869,_0x1bda93._0xf27813)]=_0xa7229(-0x1e3,-0x19e)+_0xa7229(-0x167,-_0x1bda93._0x35baba),_0x2a84d5[_0xa7229(-_0x1bda93._0x515897,-_0x1bda93._0x40422b)]=function(_0x1a6a3f,_0x45d097){return _0x1a6a3f===_0x45d097;};function _0x86d670(_0x2ef894,_0x50e1b9){return _0x313b3d(_0x50e1b9- -0x135,_0x2ef894);}_0x2a84d5['PXRgM']=function(_0xe0f1ac,_0x5ba9ec){return _0xe0f1ac-_0x5ba9ec;},_0x2a84d5[_0x86d670(_0x1bda93._0x4d93fc,0x90)]=function(_0x44c9f1,_0x49e29e){return _0x44c9f1-_0x49e29e;},_0x2a84d5[_0xa7229(-_0x1bda93._0x17fd57,-0x159)]=_0xa7229(-_0x1bda93._0x2587d0,-0x176);const _0x586a8d=_0x2a84d5,_0x5ef39c=PHASES['indexOf'](_0x103e2d);if(_0x5ef39c>=-0x9b*-0x1+-0x22c5+-0x222a*-0x1)return _0x586a8d['JxNMK'](_0x86d670(_0x1bda93._0x49da38,0x3f),_0xa7229(-0x16f,-0x148))?_0x586a8d[_0xa7229(-0x1de,-_0x1bda93._0x13eb93)](_0x3e3fc7,_0x4d748e[_0xa7229(-0x1ce,-_0x1bda93._0x2dcd6a)]-(-0x152f+-0x1462*0x1+0x272*0x11))?_0x44dbec[_0x586a8d['fSyEO'](_0xe44f13,0x844+-0x34*-0x1a+-0xd8b*0x1)]:_0x586a8d[_0x86d670(_0x1bda93._0x1179f1,0x4d)]:_0x5ef39c<_0x586a8d['PXRgM'](PHASES['length'],-0x71*0x14+-0xd1d*0x2+0x230f)?PHASES[_0x586a8d[_0xa7229(-_0x1bda93._0x1fabe1,-0x1a0)](_0x5ef39c,0x1ca1+-0x1d8*0x2+-0x18f0)]:_0x586a8d[_0xa7229(-0x1cb,-0x174)];const _0x16c020=PIPELINE_PHASES['indexOf'](_0x103e2d);if(_0x16c020>=-0x2*-0x98d+0x5f*-0x12+-0xc6c)return _0x16c020<_0x586a8d[_0xa7229(-_0x1bda93._0x351980,-_0x1bda93._0xba17a4)](PIPELINE_PHASES[_0x86d670(0x4a,_0x1bda93._0x2fc01e)],0x4*0x5b1+-0x35*0x4+0x1*-0x15ef)?PIPELINE_PHASES[_0x16c020+(0x3d4*-0x2+0x1*-0x26cf+-0x2*-0x173c)]:_0x586a8d[_0x86d670(0xf,_0x1bda93._0x507acb)];if(_0x103e2d===_0x586a8d['WcmoF'])return _0x86d670(_0x1bda93._0xaba9cc,0x51)!==_0xa7229(-0x150,-_0x1bda93._0x3396e9)?PHASES[-0x1d35+-0x619*-0x3+0xaea]:(_0x5d094b[_0xa7229(-0x1d8,-_0x1bda93._0x2bfb77)](_0x586a8d['PAYyC']),_0x551ef6[_0xa7229(-0x153,-_0x1bda93._0x488eed)]('\x0a'));return _0x586a8d[_0x86d670(0x50,0x4d)];}export async function newProject(_0x5bb219,_0x37b036){const _0x187aae={_0x15dd01:0x18,_0x406273:0x4e7,_0x334b39:0x1d,_0x134440:0x471,_0x1fe4c6:0x27,_0x365304:0x5c,_0x59e98a:0x12,_0x35ca00:0xd,_0x549b3e:0x12,_0x447f96:0x10,_0x3f2078:0x431,_0x22136c:0x4a8,_0xa6ae82:0x500,_0x23b19e:0x16,_0x2287a5:0x4d,_0xa2b530:0x454,_0x4de524:0x68,_0x158cd2:0x15,_0x3dadf7:0x7e,_0x5a85fb:0x4,_0x4a53e5:0x36,_0x3a935a:0x9c,_0x5a23b6:0x468,_0x165dbe:0x4ba,_0x16438f:0x4e4,_0x3841a5:0x468,_0x4445ed:0x473,_0x3d9270:0x0,_0x1d24f7:0x38,_0x2a4176:0x4f8,_0x4f2534:0x58,_0x76bec4:0x1,_0x56363e:0x10},_0x3f6971={_0x1275e8:0x175};function _0x4a6f59(_0x1b91a9,_0x188295){return _0x313b3d(_0x1b91a9- -_0x3f6971._0x1275e8,_0x188295);}const _0x23b0a7={'jznic':function(_0xfcfb2b,_0x48e6d9){return _0xfcfb2b!==_0x48e6d9;},'ohGdG':'completed','muphs':function(_0x1a99d1,_0x355e50,_0x538434){return _0x1a99d1(_0x355e50,_0x538434);},'JMeoo':function(_0x28a034,_0x3bbc07){return _0x28a034(_0x3bbc07);},'xjwbE':function(_0x456a8f,_0x33cfab){return _0x456a8f===_0x33cfab;},'Dnumz':function(_0x557425,_0x24918,_0x433d6a){return _0x557425(_0x24918,_0x433d6a);},'lucLL':_0x4a6f59(_0x187aae._0x15dd01,-0x2c),'kZCOC':function(_0x26125c,_0x4582c6,_0x44d662){return _0x26125c(_0x4582c6,_0x44d662);}},_0x42b3de=_0x23b0a7[_0x4a6f59(0x13,-0x32)](resolve,_0x5bb219,'..');if(!_0x23b0a7['JMeoo'](existsSync,_0x42b3de)){if(_0x23b0a7[_0x30604d(0x531,_0x187aae._0x406273)](_0x4a6f59(0x9,-_0x187aae._0x334b39),_0x30604d(0x480,_0x187aae._0x134440))){const _0x23dc34={};_0x23dc34[_0x4a6f59(_0x187aae._0x1fe4c6,_0x187aae._0x365304)]=!![],_0x23b0a7[_0x4a6f59(-_0x187aae._0x59e98a,_0x187aae._0x35ca00)](mkdirSync,_0x42b3de,_0x23dc34);}else{for(const _0x1191f1 of _0x2f5401[_0x4a6f59(_0x187aae._0x549b3e,_0x187aae._0x447f96)](_0xa6f8a5)){if(_0x23b0a7[_0x30604d(_0x187aae._0x3f2078,0x474)](_0x547c5a[_0x1191f1][_0x30604d(_0x187aae._0x22136c,_0x187aae._0xa6ae82)],_0x4a6f59(_0x187aae._0x23b19e,0x2c)))return _0x2146ac[_0x1191f1]['phase'];}return _0x23b0a7[_0x4a6f59(0x61,_0x187aae._0x2287a5)];}}const _0x476810=generateAgentId(),_0x5cd204={};_0x5cd204['agentId']=_0x476810,_0x5cd204[_0x30604d(_0x187aae._0xa2b530,0x466)]=null,_0x5cd204[_0x4a6f59(_0x187aae._0x4de524,0xaf)]=[],_0x5cd204[_0x30604d(0x4f3,0x500)]=_0x23b0a7['lucLL'],_0x5cd204[_0x4a6f59(_0x187aae._0x158cd2,0xc)+_0x4a6f59(0x26,_0x187aae._0x3dadf7)]='',_0x5cd204[_0x4a6f59(_0x187aae._0x5a85fb,-0x36)+'ll']='';const _0x41387f=_0x5cd204,_0x1a39c7={};_0x1a39c7[_0x476810]=_0x41387f,await _0x23b0a7[_0x4a6f59(_0x187aae._0x4a53e5,0x4a)](writeStateFile,_0x5bb219,{'project':{'name':_0x37b036,'currentPhase':_0x23b0a7[_0x4a6f59(_0x187aae._0x3a935a,0xa7)]},'agents':_0x1a39c7,'machineSnapshot':null});function _0x30604d(_0x1b2228,_0x3c5c0e){return _0x313b3d(_0x3c5c0e-0x2f3,_0x1b2228);}const _0x5ce69e=[];return _0x5ce69e[_0x30604d(0x45a,_0x187aae._0x5a23b6)](_0x4a6f59(0x22,0x30)+_0x37b036),_0x5ce69e['push'](_0x30604d(_0x187aae._0x165dbe,_0x187aae._0x16438f)+_0x42b3de),_0x5ce69e[_0x30604d(0x434,_0x187aae._0x3841a5)](_0x30604d(0x436,0x45c)+_0x30604d(_0x187aae._0x4445ed,0x4a5)+_0x476810),_0x5ce69e[_0x4a6f59(_0x187aae._0x3d9270,_0x187aae._0x1d24f7)](_0x30604d(_0x187aae._0x2a4176,0x4d7)+PIPELINE_PHASES[_0x4a6f59(_0x187aae._0x4f2534,_0x187aae._0x76bec4)](_0x4867ad=>PHASE_NAMES[_0x4867ad]??_0x4867ad)['join'](_0x4a6f59(0x5a,_0x187aae._0x56363e))),_0x5ce69e['join']('\x0a');}function _0xdaa7(){const _0x3785c7=['BLnxy1q','qxvRzNm','Aw5JBhvKzxm','zLn5ru8','Dvflrg0','8j+gLsdPOBNNM67LT7lLIjVLU7O6ia','4PQG77IpicdNIRBMGihMLOFKU7BKUi3LRzJLNkG','icaG6Ag555UUoIa','icaG5lU75yQHoIa','CMf0Aw9U','CMvJDxjZAxzL','icaGicaGicaGia','4PQG77Ipicbbz2vUDca','rLjwDKC','v0z1Euu','C2XPy2u','uefzEum','DgLVBG','BhLZAxm','CMvHza','mtiZmJK5mZDpwg1esvu','z0LOEK8','qwHtyKi','CxvPy2STDgfZAW','jsaO','A1Pdt0m','icaG5O+q56s6oIdLV6VPGj/KU7S','B1HrsMW','icaGqwDLBNq6ia','s2TvD0q','icaGicaGicb8ia','y29TCgv0AxrVCG','DdOG','4P2miefNzw50ia','y2XgEK8','zxHLy3v0zq','wM1Swfe','Dwfizwq','rgPswgu','BuLKuLq','qwviu1G','odi0mJC4zM9brMDc','tuXftMW','icaG5B2t5yMn6zI25Q61oIa','nJGYmZjgAKTSCfG','zMvHDhvYzv9HBG','thnoy1u','iow3SUwUJoAiKowfQoMdQoMyTUAUTq','BMT2CgW','ios4JEwTMowCQos6JIbZDgf0','icaG5PU05PAW5PE26zE0oIa','D3rxwNu','mJCXoti1ne50tNzmuW','icaG','ihWG6zI25Q61icaGica','x2fUywX5C2LZ','zs5QC29U','icaGicaGFcdMK43KVzW','wuHuvgW','BwfW','v09LDhO','iokgKIa','rcaGicaGicaGia','zgLZy3vZCW','nwHZyurOtq','nZa3EuDzwMPd','DgvJAf9ZzwXLyW','v2nTB0y','B2HhzeC','BgjJz3y','cUkCHsbbz2vUDca','yKjwD2W','56UE5zob5yIg5P6q','ihWG','77Ym6k+35ywi6l+q6kgmig5LDY0','y2HPBgrjzhm','rezysKq','xsdMK43KVzZLT7lMM7tMLRa6ia','Bwf4','5yQF6io95yIg5P6q','ChjVAMvJDcdLKB3KU6q','zMLUza','icaG6zI25Q615BQp5yIxoIa','D3jPDgu','DcdORRdLVzu','vuDTC2y','zMLSDgvY','wenvENu','icaG8j+KLIbbz2vUDa','mtbdDK1OruO','BwfJAgLUzvnUyq','CxvPy2S','icaG5A6m5OIq5BQMoIa','BMfTzq','C1HJruW','icaG55UU5B2voIa','r1LWAgW','vLPwC3e','EgP3yKu','mJe2mJq0mhPiCM9bCa','ywDLBNrjza','uhLivwK','mJi4nJy4ogXmr3vNBq','BhncDwe','AM9PBG','5yAmoIa','DxrMltG','uencq28','otyWnJaZuhzeq1Pl','DMvYC2LVBG','5yQH5lIn6lwW5A6m5Pw0ifbPCgu','s2vkww0','xsdLT7lLROZMIjdLHAJPG6JPMlBMRRu','DKvrA04','4PYfioAjGoACIsbbz2vUDa','CgfKrw5K','BK9Mshy','CgfYC2u','DefdBgy','iow3SUwTMowCQo+8JoI3S+I/H+AZQowgJa','icaG54Mi5PYSoIa','BgLUzE+8JoEBToAoPEAjP+IHJa','CMfUzg9T','CgHHC2u','y3vYCMvUDfbOyq','CgXHBG','Dgfiy0i','BhvJteW','q0HWDeq','rg51BxO','tNPHsKu','icaGicaG','sg1YCfu','wKv6BhG','ChnOB3q','icaG5yID5AEliefNzw4','icaG5PQc5PEGiefNzw4','DxbKyxrLzef0','CMvWzwf0','A1nUALa','zw50CMLLCW','ug1mwKW','ywX5C2LZ','8j+tIIdPOBNNM67OV5VLUQy6ia','r1frt1O','CgfYzw50swq','CfjAu2G','ChvZAa','DMvYAwz5','yxfoz2W','uhzZuvu','y3vYCMvUDfnRAq','vxzbq1i','ywDLBNrZ','8j+tIIdPOBNNM67NIRBMGie6ia','ChjVAMvJDa','AgnmrgG','BgvUz3rO','s1LtAxC','ANPUAwm','z21hD3i','ioIVPUAdHtO','6zsaoIa','zeL4B2W','AvPAzuO','A2v5CW','BxvWAhm','sNHotuS','y3vYCMvUDe9Wzq','y29TCgXLDgvK','zgvTyw5Kx2fUyq','AwrSzq','icaG8j+tIcdPMlBMRRxLIiBLUim6','D3nZveK','4PYfiefNzw50iow3SUAZQa','DM9TDMu'];_0xdaa7=function(){return _0x3785c7;};return _0xdaa7();}export async function updateOperation(_0x2c19f7,_0x237cf0,_0x594d84,_0x3f8985){const _0xf07c38={_0x33bd15:0x4e9,_0x4d7e81:0x51f,_0x1750c6:0x50f,_0x5f1422:0x51f,_0x4788ef:0x4af,_0x5666f3:0x481,_0x481930:0x4c0,_0x172d29:0x4cd,_0x464bb5:0x13d,_0x1bad61:0x16a,_0x43b25b:0x4a1,_0x25b02b:0x4e5,_0x14e9ad:0x109,_0x2eaffd:0x1bb,_0x506763:0x1af,_0x292018:0x4b7,_0x5ac075:0x4bf,_0x2ce063:0x168,_0x36fbd1:0x13d,_0x5169d5:0x11b,_0x2f187a:0xd4,_0x273388:0x117,_0x103c7d:0x58a,_0x5cd714:0x53a,_0x415c91:0x173,_0x13269b:0x17d,_0x21492c:0x168,_0x1df317:0x1ce,_0xf21206:0x4cf,_0x33435a:0x497,_0x5ac4eb:0x10f,_0x35efa5:0x165,_0x4e00bd:0x16c,_0x450d10:0x13f,_0x242f9a:0x12c,_0x594395:0x4ae,_0x38b6af:0x49c,_0xa8630c:0x151,_0x2fe96a:0x11d,_0x4e15bd:0x114,_0x807b0d:0x10a,_0x576b70:0x503,_0x107d9a:0x521,_0x2074d3:0x1a8},_0x4d4f3c={'HFHoA':_0x589034(_0xf07c38._0x33bd15,_0xf07c38._0x4d7e81)+_0x47de75(0x151,0x125),'AhSbB':_0x589034(_0xf07c38._0x1750c6,0x4fc),'UvACR':function(_0x2407e8,_0x37e433){return _0x2407e8(_0x37e433);},'aqNgl':_0x589034(_0xf07c38._0x5f1422,0x4ed),'qkrpA':_0x589034(0x4fb,0x4ad),'AeHSX':function(_0x2f6d2b,_0x23813a,_0x2d34c4){return _0x2f6d2b(_0x23813a,_0x2d34c4);}},_0xb559ce=await _0x4d4f3c[_0x589034(0x45c,_0xf07c38._0x4788ef)](readStateFile,_0x2c19f7);if(!_0xb559ce){if(_0x4d4f3c[_0x589034(_0xf07c38._0x5666f3,0x4ac)]!==_0x4d4f3c['qkrpA'])return _0x589034(_0xf07c38._0x481930,_0xf07c38._0x172d29);else{_0x2e52c8[_0x589034(0x4d7,0x4aa)](_0x4d4f3c['HFHoA']),_0x143fb7['push']('\x20\x20\x20Agent\x20I'+_0x589034(0x524,0x505)+_0x47de75(_0xf07c38._0x464bb5,_0xf07c38._0x1bad61)+_0x589034(0x500,0x500)+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x589034(_0xf07c38._0x43b25b,_0xf07c38._0x25b02b)+'工具'),_0x3a398b['push'](_0x4d4f3c[_0x589034(0x4f5,0x4dd)]+'-'[_0x47de75(_0xf07c38._0x14e9ad,0x10e)](-0x1381*0x1+-0x2*-0x3c2+0x2f*0x43));for(const _0x5b36c2 of _0x370c72){const _0xa09926=_0x46f38f[_0x5b36c2],_0x3c6bfe=_0x231dd5[_0xa09926[_0x47de75(_0xf07c38._0x2eaffd,_0xf07c38._0x506763)]]??_0xa09926[_0x47de75(0x1dd,0x1af)],_0x288df8=_0xa09926[_0x589034(_0xf07c38._0x292018,_0xf07c38._0x5ac075)+_0x47de75(_0xf07c38._0x2ce063,_0xf07c38._0x36fbd1)]||'-',_0x65bfb1=_0xa09926[_0x47de75(0x117,_0xf07c38._0x5169d5)+'ll']||'-';_0x583ee1[_0x47de75(_0xf07c38._0x2f187a,_0xf07c38._0x273388)]('\x20\x20\x20'+_0x5b36c2[_0x589034(_0xf07c38._0x103c7d,_0xf07c38._0x5cd714)](0x58+-0x65b*-0x3+0x1357*-0x1)+_0x47de75(_0xf07c38._0x415c91,_0xf07c38._0x13269b)+_0x3c6bfe[_0x47de75(_0xf07c38._0x21492c,0x1a7)](0x1130+-0xc1*-0xf+0x329*-0x9)+'\x20|\x20'+_0x288df8[_0x47de75(_0xf07c38._0x1df317,0x1a7)](-0xd*-0x89+-0x26b1+0xf*0x21f)+_0x589034(_0xf07c38._0xf21206,0x510)+_0x65bfb1);}}}const _0x3fc45e=_0xb559ce['agents'][_0x237cf0];if(!_0x3fc45e)return _0x589034(_0xf07c38._0x33435a,0x4e8)+_0x237cf0+(_0x47de75(_0xf07c38._0x5ac4eb,_0xf07c38._0x35efa5)+_0x47de75(0x11c,_0xf07c38._0x4e00bd));const _0x2e5da4={..._0xb559ce['agents']},_0x1010e4=_0x2e5da4,_0x2621d2={..._0x3fc45e};function _0x47de75(_0x976aa5,_0xad3c){return _0x29b0ad(_0xad3c- -0xcd,_0x976aa5);}_0x2621d2[_0x47de75(_0xf07c38._0x450d10,_0xf07c38._0x242f9a)+_0x589034(0x525,0x4d0)]=_0x594d84,_0x2621d2[_0x589034(0x4b6,_0xf07c38._0x594395)+'ll']=_0x3f8985,_0x1010e4[_0x237cf0]=_0x2621d2;function _0x589034(_0x36f033,_0x5da0e9){return _0x313b3d(_0x5da0e9-0x335,_0x36f033);}const _0x35c5ea={};return _0x35c5ea[_0x589034(_0xf07c38._0x38b6af,0x4b2)]=_0xb559ce['project'],_0x35c5ea[_0x47de75(_0xf07c38._0xa8630c,_0xf07c38._0x2fe96a)]=_0x1010e4,_0x35c5ea[_0x47de75(0x1d2,0x18e)+_0x47de75(_0xf07c38._0x4e15bd,_0xf07c38._0x807b0d)]=_0xb559ce[_0x589034(_0xf07c38._0x576b70,_0xf07c38._0x107d9a)+_0x47de75(0x144,0x10a)],await _0x4d4f3c[_0x589034(0x4b8,0x4ef)](writeStateFile,_0x2c19f7,_0x35c5ea),'✅\x20['+_0x237cf0+_0x47de75(_0xf07c38._0x2074d3,0x181)+_0x594d84+'\x20('+_0x3f8985+')';}export async function registerAgent(_0x466fb8,_0x2959c6,_0x58fa80={}){const _0x9154a9={_0x43f17d:0x1d8,_0x120509:0x22a,_0x101818:0x44,_0x7092b1:0x72,_0x9cf32c:0x1da,_0x1a2fcc:0x20d,_0x6ef96f:0x6c,_0x381b0c:0xb0,_0x140f14:0x41,_0x55a2cd:0xe9,_0x4bb1ce:0x2d3,_0x8a49bd:0x288,_0x28b9eb:0xdb,_0x53af8e:0x71,_0x225ada:0xc4,_0x4673d1:0x20b,_0x3b2b80:0x213,_0x3231b4:0xe8,_0xef1f77:0xe6,_0x1b8fff:0x200,_0x96b5cb:0x106,_0x38dd59:0xd9,_0x2feee4:0x1ef,_0x32bd52:0x207,_0x2921ed:0x2bc,_0x6afd2:0x28c},_0x22df9a={_0xd9a0fb:0x92},_0x1b5209={'kxyab':function(_0x2618d0,_0x5d5b66){return _0x2618d0(_0x5d5b66);},'nOfHv':function(_0x2449d3,_0x53d51e,_0x24f9c5){return _0x2449d3(_0x53d51e,_0x24f9c5);}},_0x1dc07d=await _0x1b5209['kxyab'](readStateFile,_0x466fb8);if(!_0x1dc07d)return _0x19334f(_0x9154a9._0x43f17d,_0x9154a9._0x120509)+_0x389a9a(-_0x9154a9._0x101818,-_0x9154a9._0x7092b1)+_0x389a9a(-0x2f,-0x6c);if(_0x1dc07d[_0x19334f(_0x9154a9._0x9cf32c,_0x9154a9._0x1a2fcc)][_0x2959c6])return _0x389a9a(-_0x9154a9._0x6ef96f,-_0x9154a9._0x381b0c)+_0x2959c6+'\x20已存在,跳过注册';const _0x5b581=_0x58fa80[_0x389a9a(-0x84,-_0x9154a9._0x140f14)]??_0x389a9a(-_0x9154a9._0x55a2cd,-0xc1),_0x29c27b=_0x58fa80[_0x19334f(0x24f,0x205)]??null,_0x23c791={};_0x23c791[_0x19334f(_0x9154a9._0x4bb1ce,_0x9154a9._0x8a49bd)]=_0x2959c6,_0x23c791[_0x389a9a(-0x96,-_0x9154a9._0x28b9eb)]=_0x29c27b,_0x23c791[_0x389a9a(-0x35,-_0x9154a9._0x53af8e)]=[],_0x23c791[_0x19334f(0x279,0x29f)]=_0x5b581,_0x23c791[_0x389a9a(-0xe0,-_0x9154a9._0x225ada)+_0x19334f(0x1f5,0x22d)]='',_0x23c791[_0x19334f(0x212,_0x9154a9._0x4673d1)+'ll']='';const _0x18de16=_0x23c791;function _0x19334f(_0x112c8b,_0x3aa125){return _0x313b3d(_0x3aa125-_0x22df9a._0xd9a0fb,_0x112c8b);}const _0x387748={..._0x1dc07d['agents']};_0x387748[_0x2959c6]=_0x18de16;const _0x1b4916=_0x387748;if(_0x29c27b&&_0x1b4916[_0x29c27b]){const _0x45dfe6=_0x1b4916[_0x29c27b];if(!_0x45dfe6['childIds'][_0x19334f(0x1d2,0x226)](_0x2959c6)){const _0x275fac={..._0x45dfe6};_0x275fac[_0x389a9a(-0x20,-0x71)]=[..._0x45dfe6[_0x389a9a(-0x1e,-_0x9154a9._0x53af8e)],_0x2959c6],_0x1b4916[_0x29c27b]=_0x275fac;}}const _0x3cd192={};_0x3cd192['project']=_0x1dc07d['project'],_0x3cd192[_0x19334f(_0x9154a9._0x3b2b80,0x20d)]=_0x1b4916;function _0x389a9a(_0x1d4ae9,_0x34aef6){return _0x313b3d(_0x34aef6- -0x24e,_0x1d4ae9);}_0x3cd192['machineSna'+'pshot']=_0x1dc07d['machineSna'+_0x389a9a(-_0x9154a9._0x3231b4,-_0x9154a9._0xef1f77)],await _0x1b5209[_0x389a9a(-0x4d,-0x48)](writeStateFile,_0x466fb8,_0x3cd192);const _0x57e713=PHASE_NAMES[_0x5b581]??_0x5b581,_0x10e741=[];_0x10e741[_0x19334f(0x23f,0x207)](_0x19334f(_0x9154a9._0x1b8fff,0x222)+_0x389a9a(-0xa4,-0x53)+_0x2959c6),_0x10e741[_0x389a9a(-_0x9154a9._0x96b5cb,-_0x9154a9._0x38dd59)]('\x20\x20\x20阶段:\x20'+_0x57e713);if(_0x29c27b)_0x10e741[_0x19334f(_0x9154a9._0x2feee4,_0x9154a9._0x32bd52)]('\x20\x20\x20父\x20Agent'+':\x20'+_0x29c27b);return _0x10e741[_0x19334f(_0x9154a9._0x2921ed,_0x9154a9._0x6afd2)]('\x0a');}export async function deregisterAgent(_0x4d041b,_0x46bb08){const _0x5e93b4={_0x433183:0x4f6,_0x11d3b7:0x4d8,_0x2e50f3:0x497,_0x41be13:0x530,_0x1d6cb1:0x53d,_0x1b9ea6:0x7,_0x41a431:0x4c5,_0x1d505a:0x4b4,_0x576ff5:0x1a,_0x5e0a0f:0x41,_0x4e3b68:0x1a,_0x30d829:0x22,_0x5a8e5e:0x8,_0x5d94f0:0x4f5,_0x25e49c:0x56,_0x36732c:0x17,_0x3fa8ce:0x568,_0x157cc2:0xe,_0x30fe89:0x24,_0x348d16:0x4cd,_0x21fafe:0x4a7,_0x143913:0x54e,_0x3855dc:0x5,_0x1cf2b9:0x57,_0x5afaf5:0x2d,_0x573f3c:0x3d,_0x592d01:0x27,_0x49b398:0x11},_0x297074={'MJFxY':function(_0x3d8a74,_0x4a06d0,_0x2069c2){return _0x3d8a74(_0x4a06d0,_0x2069c2);},'dIxol':function(_0x19c974,_0xcf678c,_0x334027){return _0x19c974(_0xcf678c,_0x334027);},'tjDoO':function(_0x4d5876,_0x36cfa5){return _0x4d5876!==_0x36cfa5;},'sXcEL':_0x455eb2(_0x5e93b4._0x433183,0x51c),'VZVsq':_0x455eb2(_0x5e93b4._0x11d3b7,_0x5e93b4._0x2e50f3),'MLENl':function(_0x2e35b7,_0x5884a5,_0x43d3ce){return _0x2e35b7(_0x5884a5,_0x43d3ce);}},_0x3c68f4=await readStateFile(_0x4d041b);if(!_0x3c68f4){if(_0x297074['tjDoO'](_0x5501fc(-0x3,0x19),_0x297074[_0x455eb2(_0x5e93b4._0x41be13,0x4ee)]))return _0x297074[_0x455eb2(0x533,_0x5e93b4._0x1d6cb1)];else{const _0x31a7bc=_0x297074['MJFxY'](_0x1dc8c7,_0x21b4cf,'..');if(!_0x1b5361(_0x31a7bc)){const _0x34e12f={};_0x34e12f[_0x5501fc(_0x5e93b4._0x1b9ea6,-0x3b)]=!![],_0x297074[_0x455eb2(_0x5e93b4._0x41a431,_0x5e93b4._0x1d505a)](_0x24d72c,_0x31a7bc,_0x34e12f);}}}if(!_0x3c68f4[_0x5501fc(-_0x5e93b4._0x576ff5,-_0x5e93b4._0x5e0a0f)][_0x46bb08])return _0x455eb2(0x4de,0x488)+_0x46bb08+'\x20不存在';const _0x42082f=_0x3c68f4['agents'][_0x46bb08],_0x6cebe3={..._0x3c68f4[_0x5501fc(-_0x5e93b4._0x4e3b68,-0x59)]},_0x292abb=_0x6cebe3;function _0x5501fc(_0xb39f27,_0x4c12ae){return _0x313b3d(_0xb39f27- -0x195,_0x4c12ae);}delete _0x292abb[_0x46bb08];function _0x455eb2(_0x250c08,_0x318dfb){return _0x29b0ad(_0x250c08-0x2d1,_0x318dfb);}if(_0x42082f[_0x5501fc(-_0x5e93b4._0x30d829,-_0x5e93b4._0x5a8e5e)]&&_0x292abb[_0x42082f[_0x455eb2(0x4b3,_0x5e93b4._0x5d94f0)]]){const _0xfaf072=_0x292abb[_0x42082f[_0x5501fc(-0x22,-_0x5e93b4._0x25e49c)]];_0x292abb[_0x42082f[_0x5501fc(-0x22,_0x5e93b4._0x36732c)]]={..._0xfaf072,'childIds':_0xfaf072['childIds'][_0x455eb2(0x528,_0x5e93b4._0x3fa8ce)](_0xdfd2a2=>_0xdfd2a2!==_0x46bb08)};}const _0x59bc47=Object[_0x5501fc(-_0x5e93b4._0x157cc2,-_0x5e93b4._0x30fe89)](_0x292abb),_0x512e49=_0x59bc47['length']>0x195a+0x1*0x82+-0x19dc?computeOverallPhase(_0x292abb):_0x455eb2(_0x5e93b4._0x348d16,_0x5e93b4._0x21fafe),_0x4a9921={..._0x3c68f4['project']};_0x4a9921[_0x455eb2(_0x5e93b4._0x143913,0x595)+'se']=_0x512e49;const _0x44a3f9={};return _0x44a3f9['project']=_0x4a9921,_0x44a3f9[_0x5501fc(-0x1a,-_0x5e93b4._0x3855dc)]=_0x292abb,_0x44a3f9['machineSna'+_0x5501fc(-0x2d,-_0x5e93b4._0x3855dc)]=_0x3c68f4[_0x5501fc(_0x5e93b4._0x1cf2b9,0x4)+_0x5501fc(-_0x5e93b4._0x5afaf5,-_0x5e93b4._0x573f3c)],await _0x297074[_0x5501fc(_0x5e93b4._0x592d01,0x5f)](writeStateFile,_0x4d041b,_0x44a3f9),_0x455eb2(0x4d0,0x49b)+_0x5501fc(-_0x5e93b4._0x49b398,0x3b)+_0x46bb08;}function _0x20ca(_0x4bee31,_0x526dbd){_0x4bee31=_0x4bee31-(0x18f4+-0xc1d+0x1*-0xb8f);const _0x4fdbef=_0xdaa7();let _0x317483=_0x4fdbef[_0x4bee31];if(_0x20ca['TGybmG']===undefined){var _0x1a5817=function(_0x1400f3){const _0x53a385='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x16d02c='',_0x16594e='';for(let _0x38c3d7=-0x20ae+-0x23d2+0x4480,_0x1d9c95,_0x4be9c0,_0x1d8194=-0x3*-0x638+0x752+0x19*-0x10a;_0x4be9c0=_0x1400f3['charAt'](_0x1d8194++);~_0x4be9c0&&(_0x1d9c95=_0x38c3d7%(-0x9e2+0x12*-0xb9+0x2dd*0x8)?_0x1d9c95*(0x1e8b+-0x1d6a+-0x9*0x19)+_0x4be9c0:_0x4be9c0,_0x38c3d7++%(0x1e26+0x9fc+-0x281e))?_0x16d02c+=String['fromCharCode'](-0x2262+-0x1*-0x136e+0xff3&_0x1d9c95>>(-(0xea0+-0x1cf0+0xe52)*_0x38c3d7&0x1445*0x1+-0x3a+-0x1405)):0x10*-0x17c+0x121f+0x83*0xb){_0x4be9c0=_0x53a385['indexOf'](_0x4be9c0);}for(let _0x548c91=-0x675+0xdcd+-0x758,_0x48bd6d=_0x16d02c['length'];_0x548c91<_0x48bd6d;_0x548c91++){_0x16594e+='%'+('00'+_0x16d02c['charCodeAt'](_0x548c91)['toString'](0x2292+0x1*-0x8b3+-0x19cf))['slice'](-(-0xed6+0x7*0x1d3+0x213));}return decodeURIComponent(_0x16594e);};_0x20ca['EIIntP']=_0x1a5817,_0x20ca['nFbzPu']={},_0x20ca['TGybmG']=!![];}const _0x433723=_0x4fdbef[0xdeb*0x1+0x463*0x6+0x283d*-0x1],_0x41f0dc=_0x4bee31+_0x433723,_0x5a655d=_0x20ca['nFbzPu'][_0x41f0dc];return!_0x5a655d?(_0x317483=_0x20ca['EIIntP'](_0x317483),_0x20ca['nFbzPu'][_0x41f0dc]=_0x317483):_0x317483=_0x5a655d,_0x317483;}export async function showProgress(_0x1c7138){const _0x2a2eef={_0x3f426f:0x15f,_0x2dd038:0x1a3,_0x36162e:0x159,_0x211cec:0x1e5,_0x10b44e:0x24d,_0x2bda3d:0x184,_0x438b09:0x174,_0xd81ee1:0x149,_0x4e1e1a:0x18c,_0x5be91d:0x245,_0x132752:0x28d,_0x396d47:0x203,_0x41d844:0x215,_0x4be18d:0x1d7,_0x4ba7b5:0x23b,_0x120f47:0x17e,_0x2072bc:0x1ca,_0x29366f:0x1f9,_0x2af364:0x1be,_0xace7ea:0x18e,_0x5b0f46:0x170,_0x115156:0x216,_0x4c8c8f:0x1fc,_0x23a99c:0x13c,_0x4d2b26:0x12d,_0x13ec64:0x289,_0x158ce0:0x2aa,_0x3beaea:0x1c6,_0x49b951:0x23d,_0x1c54df:0xf8,_0x2d0b6f:0x14d,_0x41007a:0x185,_0x4b5ecb:0x2a4,_0x23ab8e:0x17b,_0x5d8352:0x1ce,_0x1ffe89:0x1e1,_0x1dc5d3:0x1eb,_0x51dc02:0x278,_0x5bec:0x25f,_0x2905b3:0x1e4,_0x1252c1:0x25f,_0xff1696:0x271,_0x4f58c5:0x212,_0x5ca6f9:0x21f,_0x15278f:0x1de,_0x1be6d3:0x183,_0x1b1a83:0x1cf,_0x48277f:0x12e,_0x10b056:0x1c6,_0x5191f5:0x1f1,_0x1bee5d:0x25e,_0x272ef9:0x12c,_0x24d2f3:0x284,_0x5817e6:0x114,_0x2cd7dc:0x298,_0x1d32af:0x25a},_0x3361da={};_0x3361da['uQKDm']='⚠️\x20\x20状态文件不存在'+_0x1704cb(-0x160,-_0x2a2eef._0x3f426f)+_0x1704cb(-_0x2a2eef._0x2dd038,-_0x2a2eef._0x36162e),_0x3361da[_0x5c9810(_0x2a2eef._0x211cec,0x21f)]=function(_0x2541cc,_0x6a81bd){return _0x2541cc*_0x6a81bd;},_0x3361da['lsBua']=function(_0x298277,_0x5d93ef){return _0x298277/_0x5d93ef;},_0x3361da[_0x5c9810(0x28d,_0x2a2eef._0x10b44e)]=_0x1704cb(-_0x2a2eef._0x2bda3d,-0x1ad),_0x3361da[_0x1704cb(-0x1f2,-0x1ce)]=function(_0x43ce7b,_0x8b907d){return _0x43ce7b+_0x8b907d;},_0x3361da[_0x1704cb(-_0x2a2eef._0x438b09,-_0x2a2eef._0xd81ee1)]=function(_0x1d1410,_0x32cd4d){return _0x1d1410>_0x32cd4d;},_0x3361da['vEQkN']=_0x1704cb(-_0x2a2eef._0x4e1e1a,-0x151)+_0x5c9810(_0x2a2eef._0x5be91d,0x202),_0x3361da['Acaxs']=function(_0x5d15e2,_0x2b0d24){return _0x5d15e2+_0x2b0d24;};function _0x5c9810(_0x169337,_0x42ce6a){return _0x313b3d(_0x42ce6a-0x7f,_0x169337);}_0x3361da[_0x5c9810(_0x2a2eef._0x132752,0x276)]='\x20\x20\x20';const _0x1564fa=_0x3361da,_0x25073b=await readStateFile(_0x1c7138);if(!_0x25073b)return _0x1564fa[_0x5c9810(_0x2a2eef._0x396d47,_0x2a2eef._0x41d844)];const _0x3fb0bb=_0x25073b[_0x1704cb(-0x1fc,-0x1c0)],_0x2a3e94=Object['keys'](_0x3fb0bb),_0xa127ad=_0x2a3e94[_0x5c9810(_0x2a2eef._0x4be18d,0x1fe)],_0xae201=_0x2a3e94['filter'](_0x3c46e6=>_0x3fb0bb[_0x3c46e6][_0x5c9810(0x277,0x28c)]===_0x5c9810(0x1d7,0x20a))['length'],_0x57805f=_0xa127ad>0x1ac7+-0x22b7+0x7f0?Math['round'](_0x1564fa['WFuyE'](_0x1564fa[_0x1704cb(-0x180,-0x142)](_0xae201,_0xa127ad),-0x182d+0x2f6*0xc+0x7*-0x191)):0x1e08+0x1cce+-0x3ad6,_0x23f3cf={};for(const _0x779662 of _0x2a3e94){const _0x1ed75e=_0x3fb0bb[_0x779662][_0x5c9810(0x23c,0x28c)];_0x23f3cf[_0x1ed75e]=(_0x23f3cf[_0x1ed75e]??0x1c42+0x21a+-0x1e5c)+(-0x1f75+0x11*-0x19f+0x3b05);}const _0x1b7ec1=[];_0x1b7ec1[_0x5c9810(_0x2a2eef._0x4ba7b5,0x1f4)](_0x1704cb(-_0x2a2eef._0x120f47,-_0x2a2eef._0x2072bc)+_0x25073b[_0x1704cb(-_0x2a2eef._0x29366f,-_0x2a2eef._0x2af364)]['name']),_0x1b7ec1['push'](_0x1704cb(-_0x2a2eef._0xace7ea,-0x17e)+(PHASE_NAMES[_0x25073b[_0x1704cb(-_0x2a2eef._0x5b0f46,-0x1be)][_0x5c9810(0x2cd,_0x2a2eef._0x132752)+'se']]??_0x25073b[_0x5c9810(_0x2a2eef._0x115156,_0x2a2eef._0x4c8c8f)][_0x1704cb(-_0x2a2eef._0x23a99c,-_0x2a2eef._0x4d2b26)+'se'])),_0x1b7ec1['push'](_0x5c9810(0x2b5,_0x2a2eef._0x13ec64)+_0x25073b[_0x5c9810(_0x2a2eef._0x158ce0,0x27e)]),_0x1b7ec1[_0x1704cb(-0x201,-_0x2a2eef._0x3beaea)](_0x5c9810(0x1fb,0x243)+_0x25073b[_0x5c9810(0x1f3,0x1ea)]),_0x1b7ec1[_0x5c9810(_0x2a2eef._0x49b951,0x1f4)](_0x1704cb(-_0x2a2eef._0x1c54df,-_0x2a2eef._0x2d0b6f)+_0x57805f+_0x1704cb(-0x164,-0x191)+_0xae201+'/'+_0xa127ad+'\x20Agent)'),_0x1b7ec1[_0x1704cb(-_0x2a2eef._0x41007a,-0x1c6)](''),_0x1b7ec1[_0x1704cb(-0x197,-0x1c6)](_0x1564fa[_0x5c9810(_0x2a2eef._0x4b5ecb,0x24d)]);for(const [_0x29aff5,_0xe368ed]of Object[_0x5c9810(0x210,0x1ed)](_0x23f3cf)){const _0x5b2544=PHASE_NAMES[_0x29aff5]??_0x29aff5,_0xc47242=_0x1564fa[_0x1704cb(-_0x2a2eef._0x23ab8e,-_0x2a2eef._0x5d8352)]('█'['repeat'](_0xe368ed),'░'[_0x5c9810(_0x2a2eef._0x1ffe89,_0x2a2eef._0x1dc5d3)](Math[_0x5c9810(_0x2a2eef._0x51dc02,_0x2a2eef._0x5bec)](0x1eb8+0x11e*0xb+0x89a*-0x5,_0xa127ad-_0xe368ed)));_0x1b7ec1['push'](_0x5c9810(0x1f6,_0x2a2eef._0x2905b3)+_0x5b2544['padEnd'](0x8*0x365+-0x5*-0x692+-0x9fe*0x6)+'\x20'+_0xc47242+'\x20'+_0xe368ed);}function _0x1704cb(_0x58b27a,_0xc1c272){return _0x313b3d(_0xc1c272- -0x33b,_0x58b27a);}_0x1b7ec1['push']('');if(_0x1564fa[_0x5c9810(_0x2a2eef._0x1252c1,_0x2a2eef._0xff1696)](_0x2a3e94['length'],-0x1e2+-0x4*0x99+0x446)){_0x1b7ec1['push'](_0x1564fa[_0x1704cb(-0x123,-0x138)]),_0x1b7ec1['push']('\x20\x20\x20Agent\x20I'+_0x5c9810(_0x2a2eef._0x4f58c5,0x24f)+'\x20|\x20阶段\x20\x20\x20\x20\x20'+_0x5c9810(_0x2a2eef._0x5ca6f9,0x24a)+_0x1704cb(-_0x2a2eef._0x15278f,-0x19e)+_0x1704cb(-_0x2a2eef._0x1be6d3,-0x18b)+'工具'),_0x1b7ec1['push'](_0x1564fa['Acaxs'](_0x1564fa['PyHUi'],'-'[_0x1704cb(-0x1b5,-_0x2a2eef._0x1b1a83)](-0x22b8+0xb75*0x1+-0x1793*-0x1)));for(const _0x18348e of _0x2a3e94){const _0x3ef3b5=_0x3fb0bb[_0x18348e],_0x3b0a65=PHASE_NAMES[_0x3ef3b5[_0x1704cb(-0x17e,-_0x2a2eef._0x48277f)]]??_0x3ef3b5['phase'],_0x143b42=_0x3ef3b5[_0x1704cb(-0x1b7,-0x1b1)+_0x5c9810(_0x2a2eef._0x10b056,0x21a)]||'-',_0xcae6ef=_0x3ef3b5[_0x5c9810(0x212,0x1f8)+'ll']||'-';_0x1b7ec1[_0x1704cb(-_0x2a2eef._0x5191f5,-0x1c6)](_0x5c9810(_0x2a2eef._0x1bee5d,0x246)+_0x18348e['padEnd'](0x1*0x1beb+0x126c+-0x67*0x73)+_0x1704cb(-_0x2a2eef._0x272ef9,-0x160)+_0x3b0a65[_0x5c9810(0x285,_0x2a2eef._0x24d2f3)](0x19a3*-0x1+0xe1*-0x29+0x3dba)+_0x5c9810(0x2a8,0x25a)+_0x143b42[_0x1704cb(-_0x2a2eef._0x5817e6,-0x136)](-0x2*-0x675+-0x18d9+0xc04)+_0x5c9810(_0x2a2eef._0x2cd7dc,_0x2a2eef._0x1d32af)+_0xcae6ef);}}return _0x1b7ec1[_0x5c9810(0x22d,0x279)]('\x0a');}export async function quickTask(_0x2887d8,_0x582b58){const _0x29f509={_0x5f2b92:0x35d,_0x16fbfe:0x180,_0x1e2f81:0x384,_0x235abf:0x30d,_0x2ec813:0x35c,_0x4552cd:0x37a,_0x28025a:0x145,_0x8e3d96:0xd0,_0x48328c:0x2f8,_0x28477b:0x312,_0x536700:0x325,_0x313e16:0x360,_0x4bcc87:0x117,_0x11c381:0x29b,_0xaf1c2d:0x303,_0x5d1e3d:0x97,_0xdb0288:0xd8,_0x19fe1c:0x2d5,_0x201c9e:0x2e6,_0x1afad9:0xfc,_0x18570f:0xe4,_0x4468b6:0x2e5,_0x279f62:0x30b,_0x321a64:0x350,_0x32c806:0x10f,_0x5a27e2:0x11c,_0x51c30f:0x16e,_0x2ac37f:0x15d,_0x38bf69:0x18c},_0x4110b7={_0x489b32:0x9d};function _0x521616(_0x1ee75d,_0x8ff682){return _0x313b3d(_0x8ff682-0x171,_0x1ee75d);}const _0x317500={'lbcgv':function(_0x4e5704,_0xb568e5){return _0x4e5704(_0xb568e5);},'zgviD':function(_0x4bfc9f,_0x403d03,_0x35759d){return _0x4bfc9f(_0x403d03,_0x35759d);},'YHTTl':function(_0x571b5f,_0x443872){return _0x571b5f===_0x443872;},'clFzO':_0x2cae22(0x150,0x10f)},_0x29ef31=await _0x317500[_0x521616(_0x29f509._0x5f2b92,0x348)](readStateFile,_0x2887d8);if(!_0x29ef31){const _0x5ed9d8=_0x317500['zgviD'](resolve,_0x2887d8,'..');if(!existsSync(_0x5ed9d8)){if(_0x317500[_0x2cae22(0x12f,_0x29f509._0x16fbfe)](_0x2cae22(0x173,0x199),_0x521616(_0x29f509._0x1e2f81,0x381))){const _0x5e325b={};_0x5e325b[_0x521616(0x2f9,_0x29f509._0x235abf)]=!![],_0x317500['zgviD'](mkdirSync,_0x5ed9d8,_0x5e325b);}else return _0x521616(_0x29f509._0x2ec813,0x30f)+_0x5dd90a+_0x521616(0x34d,_0x29f509._0x4552cd);}}const _0x37cdaa=_0x29ef31?.[_0x521616(0x2b5,0x2ee)][_0x2cae22(0x152,_0x29f509._0x28025a)]??_0x521616(0x2c9,0x31a),_0x5b1dce=_0x29ef31?Object[_0x521616(0x2bc,0x2f8)](_0x29ef31['agents'])[0x2375+-0x1bad+0x2*-0x3e4]??generateAgentId():generateAgentId(),_0x429b96={'agentId':_0x5b1dce,'parentId':null,'childIds':[],'phase':_0x2cae22(0x118,_0x29f509._0x8e3d96),'currentOperation':_0x582b58[_0x521616(_0x29f509._0x48328c,_0x29f509._0x28477b)](-0x2446*0x1+0x1f73*-0x1+0x43b9,0x1da3+-0x28e+0x1ab1*-0x1),'currentSkill':_0x317500[_0x521616(0x302,_0x29f509._0x536700)]},_0x5c771e={};_0x5c771e[_0x521616(0x35a,_0x29f509._0x313e16)]=_0x37cdaa,_0x5c771e[_0x521616(0x3d3,0x37f)+'se']=_0x317500[_0x2cae22(_0x29f509._0x4bcc87,0x10d)];function _0x2cae22(_0x299732,_0x10b97d){return _0x313b3d(_0x299732- -_0x4110b7._0x489b32,_0x10b97d);}const _0x5daaab={};_0x5daaab[_0x5b1dce]=_0x429b96;const _0x14d56a={};_0x14d56a[_0x521616(_0x29f509._0x11c381,0x2ee)]=_0x5c771e,_0x14d56a[_0x521616(_0x29f509._0xaf1c2d,0x2ec)]=_0x5daaab,_0x14d56a['machineSna'+_0x2cae22(0xcb,_0x29f509._0x5d1e3d)]=null,await writeStateFile(_0x2887d8,_0x14d56a);const _0x26c55f=[];return _0x26c55f[_0x2cae22(_0x29f509._0xdb0288,0x8b)]('⚡\x20快速任务模式'),_0x26c55f[_0x521616(_0x29f509._0x19fe1c,_0x29f509._0x201c9e)](_0x2cae22(_0x29f509._0x1afad9,0x119)+_0x37cdaa),_0x26c55f[_0x2cae22(0xd8,_0x29f509._0x18570f)](_0x521616(_0x29f509._0x4468b6,_0x29f509._0x279f62)+_0x582b58),_0x26c55f['push'](_0x521616(_0x29f509._0x321a64,0x31f)+_0x5b1dce),_0x26c55f[_0x521616(0x30e,_0x29f509._0x201c9e)](_0x2cae22(_0x29f509._0x32c806,0xeb)+_0x2cae22(0x163,_0x29f509._0x5a27e2)+_0x2cae22(_0x29f509._0x51c30f,0x1c1)),_0x26c55f[_0x2cae22(_0x29f509._0x2ac37f,_0x29f509._0x38bf69)]('\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(_0x5ba8b4,_0x4c5814){const _0x317082={_0x218ab2:0x17e,_0x54a3d9:0x163,_0x5c8c05:0x165,_0x4e1178:0x29d,_0x2ededf:0x2d0,_0x12eb7e:0x30e,_0x4c5a67:0x319,_0x150b74:0x328,_0x592d77:0x1ab,_0x2b9e30:0x183},_0x5c3785={_0x59c63b:0x357},_0x1f3f0a={_0x34dc98:0x10d};function _0x95e5b6(_0x416707,_0x56efe8){return _0x6ff7(_0x416707-_0x1f3f0a._0x34dc98,_0x56efe8);}const _0xd56dd4=_0x5ba8b4();function _0x388c8c(_0x51dc2b,_0x3b3609){return _0x6ff7(_0x3b3609- -_0x5c3785._0x59c63b,_0x51dc2b);}while(!![]){try{const _0x373ff7=-parseInt(_0x388c8c(-_0x317082._0x218ab2,-_0x317082._0x54a3d9))/(-0x1619*-0x1+-0x8b*0x2f+0x36d*0x1)*(parseInt(_0x388c8c(-0x136,-0x150))/(0x5*0x2f9+0x1*0x2db+-0x11b6))+parseInt(_0x388c8c(-0x128,-_0x317082._0x5c8c05))/(0x244c+-0x2061+-0x3e8)*(-parseInt(_0x95e5b6(_0x317082._0x4e1178,_0x317082._0x2ededf))/(0xa7d+0xa7c*-0x3+-0x1*-0x14fb))+-parseInt(_0x95e5b6(_0x317082._0x12eb7e,_0x317082._0x4c5a67))/(0x2063+-0x47*-0x49+-0x1*0x349d)*(-parseInt(_0x95e5b6(0x2f5,_0x317082._0x150b74))/(-0x14bf+0x1bd1+-0x70c))+parseInt(_0x95e5b6(0x2a6,0x2cb))/(-0x1975+-0x153a+0x2eb6)+-parseInt(_0x95e5b6(0x307,0x2e8))/(0x76*0x4d+0x972+-0xc*0x3be)+parseInt(_0x388c8c(-_0x317082._0x592d77,-_0x317082._0x2b9e30))/(-0x1a32*-0x1+0x14a4*-0x1+-0x9*0x9d)+-parseInt(_0x388c8c(-0x158,-0x154))/(0x1ae8+0x643+-0x2121);if(_0x373ff7===_0x4c5814)break;else _0xd56dd4['push'](_0xd56dd4['shift']());}catch(_0x503a3c){_0xd56dd4['push'](_0xd56dd4['shift']());}}}(_0x171d,-0x1*0x49f05+0x1a*0x865+-0x649b7*-0x1));function _0x6ff7(_0x8b278c,_0xd1cef1){_0x8b278c=_0x8b278c-(-0x17e0+0xa84+-0xb*-0x15b);const _0x29bf6a=_0x171d();let _0x16b3ac=_0x29bf6a[_0x8b278c];if(_0x6ff7['HZcszg']===undefined){var _0x35c235=function(_0x4cb251){const _0xc23e67='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44acfb='',_0x1e858d='';for(let _0x2bd8f1=0xa9+-0x32a+0x1*0x281,_0x155b84,_0x35b21e,_0x195ecd=-0x2082+0x16bb+0x9c7;_0x35b21e=_0x4cb251['charAt'](_0x195ecd++);~_0x35b21e&&(_0x155b84=_0x2bd8f1%(-0x2211+0x12be+0x15*0xbb)?_0x155b84*(-0x1*0x19fe+-0x3ba+0x3bf*0x8)+_0x35b21e:_0x35b21e,_0x2bd8f1++%(0x23e3*0x1+0xa85*-0x1+0x512*-0x5))?_0x44acfb+=String['fromCharCode'](-0xab*-0x11+-0x8ef+-0x16d*0x1&_0x155b84>>(-(0x220*0xd+0x3d3*-0x8+0x2fa*0x1)*_0x2bd8f1&0x23be+0x2056+-0x440e)):-0x135d*-0x2+0x2*0x6aa+-0x340e){_0x35b21e=_0xc23e67['indexOf'](_0x35b21e);}for(let _0x48e9c3=0x4*0x883+0x5*-0x6f9+0xd1,_0x3dad9d=_0x44acfb['length'];_0x48e9c3<_0x3dad9d;_0x48e9c3++){_0x1e858d+='%'+('00'+_0x44acfb['charCodeAt'](_0x48e9c3)['toString'](-0x925+0x8f3*-0x1+-0x2*-0x914))['slice'](-(0x2683+0x5ff+-0x2c80));}return decodeURIComponent(_0x1e858d);};_0x6ff7['WyIAdP']=_0x35c235,_0x6ff7['EEpCNe']={},_0x6ff7['HZcszg']=!![];}const _0x290c97=_0x29bf6a[-0x15f8+0x7*-0x3f4+0x6*0x846],_0x29654d=_0x8b278c+_0x290c97,_0x489f69=_0x6ff7['EEpCNe'][_0x29654d];return!_0x489f69?(_0x16b3ac=_0x6ff7['WyIAdP'](_0x16b3ac),_0x6ff7['EEpCNe'][_0x29654d]=_0x16b3ac):_0x16b3ac=_0x489f69,_0x16b3ac;}import{tool}from'@opencode-ai/plugin';import{resolve}from'node:path';function _0x171d(){const _0x1becd2=['ieLe77Yi5lIn5OYh5A6A5yIz6iEQ5yQO','C0fmB1C','zMjgvee','6AQm6k+biokgKIbJB21WBa','5RoO5yAm5PAW55QeiefNzw50','qwDLBNq','ioMHUEEBRUw9K+wjJEEkTUAaGEoaGGRMMl4','CxvPy2TuyxnR','mtu1nZi1nw9MBKfjtG','r3rYrue','tvLOqNm','77Yi5y+V6ycj77Yj','5Pw0ifbPCgvSAw5L','54Q25Ocb57o757UF5RoO6zsaiefNzq','A2HKCfC','BMv3uhjVAMvJDa','6kAb5O6O6l+B55QeiefNzw50','t015Au0','ioEkTUAaGEEZU+E7N+oaGGRNLkJKUO7LUBy','5zcn56EW77Yi5AAciMv4CgXV','4P2mioIoT+wpLUEkTUAaGEwKSEI0PtOG','6Ag555UU5zcn56EW','zxnsDhO','Ew5mDLO','rg9XqNq','4P2mioAZQoMuGcbbz2vUDa','56s66Ag555UU5zcn56EW44cb5B2t5yMn6zI25Q61','A3P0A2y','zvH4zeK','44cb5OMa5PYjiefNzw50ia','5lU75yQH44cc','CMvNAxn0zxjbzW','zgvYzwDPC3rLCG','4P2miow/Q+MaN+s7U+wkOEwKSEI0PtOG','BhnduhC','5Q615BQp5yIxoIdORQJORROG4OAsia','55Qe54Q25Ocb6kgO5Qc844cc','6ycj5OUP56YS5lIa5lIQ5PYQ5A6m5OIq55Qe77Yj','5yID5AEl6zI25Q6177Yi6BUy6k6KoIbP','CMvYiU+8Iq','6l+B5yIW5lIl5lIa5lIQ6zI25Q6144cccUMyTG','B2rYuM8','Exr1sMy','6kEe5yIsiokgKIdMIAFOOyWG4OAsia','u25tDvm','zxftwM8','ioEAHow9K+wjJEAtJEs9NoApJ+I/SowsJos9VW','C2nOzw1H','5PE277Ym5Q+p5lIQigfNzw50','Dgf0zs5QC29U77Ym','5P6q6zYa5Rgc5PAh5QgJiU+8Iq','5lUoihnWzwnVChmG','z2v0u3rHDhvZ','s2nXDKe','4P2mioAZQowgJcbbz2vUDa','lNnWzwnVChm','ywDLBNrFAwq','zw50','z3noAei','5O6O6l+BihnWzwnVChm','B3b0Aw9UywW','tNPRwe0','zgvZy3jPyMu','CK9QrLe','yNn0rvC','uwvNru8','zxnwwuq','mJuXmti1mKTbqvLkDq','4P2mioABToAwSoAtJEs9NowKSEI0PtOG','DhboqvC','C3rHDguUANnVBG','DxbKyxrLt3bLCG','wu1mq1i','5B+R6ycF5lU75yQH5QIH5BYp44cc6lEZ6l+h5A6m','BwjJvhe','4P2mioIoT+wpLUI/M+w6PUwKSEI0PtOG','DvvrrNi','De50AgG','uKLxA0W','zxrLza','zw5077Yi5OIw56YS5lIa5lIQ5PYQ5A6m','iowKSEI0PtOG','5yIB5BU65yID5AEliefNzw50','BvzrC3C','y2HPBgrjzhpJGii','zgLYzwn0B3j5','5y+rigfNzw50ioE8LUAoKG','mtCYotm5ofjKA2TKAG','iowiScbZCgvJB3bZ','yxrPB24','ioMyTUAUTEoaGUwWHUAmH+wUMIbbzW','ioMHUEEBRUIVPUE7HUI/M+w6PUoaGGRLJiu','DgfZAW','C3rYAw5N','5PU05PAW5OYh5A6AiefNzw50','BwXHshi','5PI+56s6ihnWzwnVChm','nteZm1DYtuLlua','B3bLCMf0Aw9U','mtLrDM9WA2m','ioAZQowgJoIhQUw3SEEAHoEkTUAaGEoaGG','AgvLswq','BNqG6k6W5B2v77Ym5zcm5PE25PU05PAW','C0vyr3K','vxbYAe0','nJa4mZjbA2j3vhm','u3fRruW','C2TPBgW','C2HVD1bYB2DYzq','zgXL77Yj','su5xzwW','5lU75yQH5O+p6l+W','nwDxvu5otq','CgfYzw50x2LK','mJq5odG2mgTAr2f1yq','77Ym55U05O6L6l+B5ywL5OMN6kgm6zI25Q6144cc','qwDLBNqGsuq','5OIq55QeiefNzw5077Yj5O6O','mJy1nZHxCuL1Bvq','t3j2sw0','C3bLy29WCW','sKrMDfy','BwvZC2fNzq','y1bqzKS','4P2mioAoQoI/M+MyTUAUTEwKSEI0PtOG','sMzOsKG','we9Wqvy','5B2t5yMn5l2/55sO55Qe5BEL5yw3l+AkGoIdVq','54I2iefNzw50ieLe','qKTiELO','mJy4ANrTtu9Z'];_0x171d=function(){return _0x1becd2;};return _0x171d();}import*as _0x12a39d from'./plugin-engine.js';function getStateFilePath(_0x4f77cf){const _0x5e0344={_0x34ed6f:0x176},_0x390537={_0x107e2c:0xc5},_0x1037d0={_0x5c88bb:0x31d},_0x542786={'ApJXS':function(_0x53fad3,_0x15aed4,_0x2baea5,_0x539755){return _0x53fad3(_0x15aed4,_0x2baea5,_0x539755);}};function _0x211a39(_0x262804,_0x198a7f){return _0x6ff7(_0x198a7f- -_0x1037d0._0x5c88bb,_0x262804);}function _0xd9fc5a(_0xd3ab36,_0xbf04e6){return _0x6ff7(_0xd3ab36- -_0x390537._0x107e2c,_0xbf04e6);}return _0x542786['ApJXS'](resolve,_0x4f77cf,_0xd9fc5a(0x103,0xd6),_0x211a39(-_0x5e0344._0x34ed6f,-0x146));}function createStatusTool(_0x149f12){const _0x47a884={_0xf54c46:0xc,_0x54aedc:0x1c,_0x510e40:0x42,_0x423e24:0x69,_0x1c9d82:0x33,_0x5d1ef5:0xc1},_0x6a696d={_0x26eeb5:0x384,_0x4cb2c7:0x316,_0x451196:0x32a,_0x5afeac:0x358,_0x50aeb4:0x342,_0x5dd794:0x36a,_0x507cb0:0xf0,_0x268308:0xd5};function _0x3ad7c5(_0x627998,_0x3ec5cf){return _0x6ff7(_0x3ec5cf- -0x276,_0x627998);}const _0x397c87={'OMyiM':function(_0x12540b,_0x1fb25a,_0x89df64,_0x249ade){return _0x12540b(_0x1fb25a,_0x89df64,_0x249ade);},'MYhBs':_0x1fb0f7(0x80,0x4d),'MOjNQ':function(_0xd3f07d,_0x53cc31){return _0xd3f07d===_0x53cc31;}},_0x105f1e=getStateFilePath(_0x149f12);function _0x1fb0f7(_0x5eb019,_0x458361){return _0x6ff7(_0x458361- -0x17b,_0x5eb019);}return tool({'description':'获取\x20specops'+_0x1fb0f7(_0x47a884._0xf54c46,_0x47a884._0x54aedc)+_0x1fb0f7(_0x47a884._0x510e40,0x30)+_0x1fb0f7(_0x47a884._0x423e24,_0x47a884._0x1c9d82)+_0x3ad7c5(-0xb3,-_0x47a884._0x5d1ef5),'args':{},async 'execute'(){const _0x29d9a0={_0xf15f0f:0x41d},_0x571dae={_0x14e488:0xff};function _0x4786c0(_0x4baa47,_0x12570e){return _0x1fb0f7(_0x4baa47,_0x12570e- -_0x571dae._0x14e488);}function _0x2c6fb2(_0x174352,_0x5eb986){return _0x3ad7c5(_0x174352,_0x5eb986-_0x29d9a0._0xf15f0f);}if(_0x397c87['MOjNQ'](_0x2c6fb2(0x383,_0x6a696d._0x26eeb5),_0x2c6fb2(_0x6a696d._0x4cb2c7,0x336)))return _0x397c87[_0x2c6fb2(_0x6a696d._0x451196,0x349)](_0x80345d,_0x4b6e3d,_0x397c87[_0x2c6fb2(_0x6a696d._0x5afeac,_0x6a696d._0x50aeb4)],'state.json');else try{return await _0x12a39d[_0x2c6fb2(_0x6a696d._0x5dd794,0x36c)](_0x105f1e);}catch(_0x2027d1){return _0x4786c0(-_0x6a696d._0x507cb0,-_0x6a696d._0x268308)+(_0x2027d1 instanceof Error?_0x2027d1['message']:String(_0x2027d1));}}});}function createAdvanceTool(_0x3943ec){const _0xf94fc6={_0x119331:0x1ea,_0x18dee:0x22c,_0x172520:0x237,_0x1798d7:0x200,_0x3d42f1:0x21f,_0x3c5d20:0x25c,_0x5c0cf3:0x1e8,_0x20e7eb:0x16b,_0x4c50e6:0x19d,_0x50c41f:0x17b,_0xf91056:0x1d6,_0x2e97ee:0x14c,_0x4d90c0:0x16d,_0x45a41c:0x201,_0x15479f:0x15c},_0x3384a6={_0x2faef5:0x85,_0x253c39:0xa9,_0x5d661b:0x29,_0x2b7cf5:0x37,_0x45c2a3:0x4f,_0xe9d6c9:0xa,_0x2a54ac:0xa8,_0x491599:0xa2,_0x2280d1:0x8,_0x351ff4:0x26,_0x16d1c7:0x45,_0x9fd5e1:0x4e,_0x17037b:0x8a,_0x4fa672:0x65,_0x1f7219:0x56,_0x303de9:0x25,_0x3e1117:0xba,_0x1d6199:0xae,_0x400122:0x3e,_0x459915:0x96,_0x1e3ff8:0xc9,_0x25f672:0xc4},_0x40c47b={_0x53237d:0xa9},_0x47eaf3={_0x3307f0:0x35b};function _0x43b74d(_0x5e524d,_0x4d4f2c){return _0x6ff7(_0x4d4f2c-0x34,_0x5e524d);}const _0x4f57dc={'esRtz':function(_0x2ecf89,_0xb91876){return _0x2ecf89 instanceof _0xb91876;},'YMLCR':function(_0x22e6ae,_0x537f85){return _0x22e6ae(_0x537f85);},'OrvIm':function(_0x30f542,_0x3bbab5){return _0x30f542(_0x3bbab5);},'GtrEA':function(_0x10cba7,_0x58c848){return _0x10cba7(_0x58c848);},'ynLvZ':function(_0x1ba954,_0x1dbbe6){return _0x1ba954 instanceof _0x1dbbe6;},'ytuJf':function(_0x2c6ab5,_0x3dd539){return _0x2c6ab5!==_0x3dd539;},'fbFTA':'ExGYk','gsNhB':function(_0xb4f206,_0x3f80d9){return _0xb4f206===_0x3f80d9;},'kztkf':_0x4cad66(-0x151,-0x16b),'DoqBt':function(_0x4c0f97,_0x1b1622){return _0x4c0f97(_0x1b1622);},'sEXGy':function(_0x5b41b6,_0x3f26e7){return _0x5b41b6(_0x3f26e7);},'INWel':_0x43b74d(0x1ba,0x1d5)+_0x43b74d(0x196,0x1c5)+_0x43b74d(0x221,_0xf94fc6._0x119331)},_0x4ca4a9=_0x4f57dc['GtrEA'](getStateFilePath,_0x3943ec);function _0x4cad66(_0x4cb499,_0x212125){return _0x6ff7(_0x212125- -_0x47eaf3._0x3307f0,_0x4cb499);}return _0x4f57dc[_0x43b74d(0x1ff,_0xf94fc6._0x18dee)](tool,{'description':_0x43b74d(_0xf94fc6._0x172520,_0xf94fc6._0x1798d7)+_0x43b74d(0x20f,_0xf94fc6._0x3d42f1)+_0x4cad66(-0x1ba,-0x17a)+_0x43b74d(_0xf94fc6._0x3c5d20,0x23a)+_0x4cad66(-0x1df,-0x1a2)+_0x43b74d(0x1b0,_0xf94fc6._0x5c0cf3)+_0x4cad66(-_0xf94fc6._0x20e7eb,-0x19f)+_0x43b74d(0x196,0x1c8)+_0x4cad66(-_0xf94fc6._0x4c50e6,-_0xf94fc6._0x50c41f),'args':{'agent_id':tool[_0x4cad66(-_0xf94fc6._0xf91056,-0x19b)][_0x4cad66(-_0xf94fc6._0x2e97ee,-_0xf94fc6._0x4d90c0)]()[_0x43b74d(0x22d,_0xf94fc6._0x45a41c)]()['describe'](_0x4f57dc[_0x4cad66(-0x17e,-_0xf94fc6._0x15479f)])},async 'execute'(_0x11082d){const _0xd95633={_0x20f3f0:0x297},_0x4ebab6={_0x106c1e:0xff};function _0x4d2b75(_0xd7decd,_0x25b9cf){return _0x4cad66(_0x25b9cf,_0xd7decd-0x19f);}const _0x2c0838={'pjoOh':function(_0x5becaf,_0x2679da){function _0x479563(_0x55851b,_0x1bd3c2){return _0x6ff7(_0x55851b- -_0x4ebab6._0x106c1e,_0x1bd3c2);}return _0x4f57dc[_0x479563(0xa9,_0x40c47b._0x53237d)](_0x5becaf,_0x2679da);},'KcqvA':function(_0x3b984b,_0x4be486){return _0x3b984b(_0x4be486);}};function _0x859324(_0x4658da,_0x21a297){return _0x43b74d(_0x21a297,_0x4658da- -_0xd95633._0x20f3f0);}if(_0x4f57dc[_0x859324(-0xa8,-0x7c)](_0x859324(-_0x3384a6._0x2faef5,-_0x3384a6._0x253c39),'HfGFl'))try{return _0x4f57dc[_0x4d2b75(-_0x3384a6._0x5d661b,-0x44)]===_0x4d2b75(0x16,_0x3384a6._0x2b7cf5)?_0x859324(-0x87,-_0x3384a6._0x2faef5)+(_0x2c0838['pjoOh'](_0x5eb0ff,_0x3701a6)?_0x6cf5d2[_0x4d2b75(_0x3384a6._0x45c2a3,0x86)]:_0x2c0838[_0x4d2b75(_0x3384a6._0xe9d6c9,0x10)](_0x18c10b,_0xa97168)):await _0x12a39d['advancePha'+'se'](_0x4ca4a9,_0x11082d[_0x859324(-0x9a,-0x87)]);}catch(_0x3e9f54){return _0x4f57dc[_0x859324(-0x98,-_0x3384a6._0x2a54ac)](_0x4f57dc[_0x859324(-0xb7,-_0x3384a6._0x491599)],_0x4d2b75(0x1,0x16))?_0x4d2b75(-0x12,-_0x3384a6._0x2280d1)+_0x4d2b75(_0x3384a6._0x351ff4,_0x3384a6._0x16d1c7)+(_0x4f57dc[_0x4d2b75(-0x15,-_0x3384a6._0x9fd5e1)](_0x5dda2f,_0x3585c4)?_0xd73b35[_0x4d2b75(_0x3384a6._0x45c2a3,0x62)]:_0x4f57dc[_0x859324(-_0x3384a6._0x17037b,-_0x3384a6._0x4fa672)](_0x24866b,_0x24c3c1)):_0x859324(-_0x3384a6._0x1f7219,-0x94)+(_0x3e9f54 instanceof Error?_0x3e9f54[_0x859324(-0x58,-_0x3384a6._0x303de9)]:_0x4f57dc[_0x859324(-_0x3384a6._0x3e1117,-_0x3384a6._0x1d6199)](String,_0x3e9f54));}else{const _0x533aed=_0x2bd8f1['directory'];return{'name':_0x859324(-0x5a,-_0x3384a6._0x400122),'tool':{'specops_status':_0x155b84(_0x533aed),'specops_advance':_0x4f57dc[_0x859324(-0x8a,-_0x3384a6._0x459915)](_0x35b21e,_0x533aed),'specops_new_project':_0x195ecd(_0x533aed),'specops_update_operation':_0x48e9c3(_0x533aed),'specops_register_agent':_0x4f57dc[_0x4d2b75(0x4c,0x15)](_0x3dad9d,_0x533aed),'specops_deregister_agent':_0x4f57dc[_0x859324(-_0x3384a6._0x1e3ff8,-_0x3384a6._0x25f672)](_0x5c6443,_0x533aed),'specops_progress':_0x2ed3fd(_0x533aed),'specops_quick':_0x41b12d(_0x533aed)},'event':async _0x18c0e7=>{}};}}});}function createNewProjectTool(_0xae7239){const _0x25ecd1={_0x2aa854:0x2c1,_0x51dbdf:0x2fe,_0x3bc6e4:0x29e,_0x4f22c3:0x27f,_0x195bf5:0x2ad,_0x5128ee:0x272,_0x1ab42b:0x52d},_0x33771f={_0x11a09a:0x4b6},_0x2a7d36=getStateFilePath(_0xae7239);function _0x377d33(_0x54c895,_0x4209b4){return _0x6ff7(_0x54c895-0xde,_0x4209b4);}function _0xeebb10(_0x52af20,_0x64adc3){return _0x6ff7(_0x52af20-0x387,_0x64adc3);}return tool({'description':'创建新的\x20speco'+'ps\x20项目。初始化\x20'+'.specops/s'+_0x377d33(0x2a0,0x273)+_0x377d33(_0x25ecd1._0x2aa854,_0x25ecd1._0x51dbdf)+'。','args':{'project_name':tool[_0x377d33(_0x25ecd1._0x3bc6e4,_0x25ecd1._0x4f22c3)]['string']()[_0x377d33(_0x25ecd1._0x195bf5,_0x25ecd1._0x5128ee)](_0xeebb10(_0x25ecd1._0x1ab42b,0x561))},async 'execute'(_0x413dfc){function _0x348531(_0x27209c,_0x24512d){return _0xeebb10(_0x24512d- -0x71,_0x27209c);}try{return await _0x12a39d[_0x348531(0x4e2,_0x33771f._0x11a09a)](_0x2a7d36,_0x413dfc['project_na'+'me']);}catch(_0x6a2901){return'❌\x20创建项目失败:\x20'+(_0x6a2901 instanceof Error?_0x6a2901['message']:String(_0x6a2901));}}});}function createUpdateOperationTool(_0x3103e7){const _0x4d0623={_0x46bb6d:0x5aa,_0x2b0f2d:0xb0,_0x3aab57:0x5e8,_0x342463:0x164,_0x3edecc:0x590,_0x2a79a2:0x10f,_0x5da31a:0x599,_0x47106c:0x5c7,_0x13e3d1:0x5c8,_0x3eb85e:0x58c,_0x1212c2:0x13e,_0x4a08b9:0x15c,_0x14882c:0x12b,_0x5a65ba:0x113,_0x86281f:0x5cc,_0x180742:0x13e},_0x41ecb3={_0x4c1060:0x194,_0x12ca38:0x1fb,_0x1a3f5f:0x1ff,_0x54e16a:0x1c8,_0x39ea71:0x3e6,_0x28109c:0x3f5,_0x5a8b5d:0x3ef,_0x11bc90:0x1cb,_0x25c8a6:0x3cf,_0xa3713c:0x407},_0x21e091={_0x577c8e:0x2f0},_0x145867={_0x10e5a6:0x2ac},_0x40b218={_0x57cce1:0x3d9};function _0x343891(_0x34a8ea,_0xeddcb9){return _0x6ff7(_0xeddcb9-_0x40b218._0x57cce1,_0x34a8ea);}const _0x1469d7={'JiyGU':function(_0x392ee5,_0x47c577){return _0x392ee5 instanceof _0x47c577;},'cPPfK':_0x343891(0x5dc,_0x4d0623._0x46bb6d),'esVYD':function(_0x35f889,_0x34e48e){return _0x35f889 instanceof _0x34e48e;},'XOpAV':function(_0x1dd5d5,_0x2539bf){return _0x1dd5d5(_0x2539bf);},'lsCPw':'Agent\x20ID','RIWkL':_0x1ef43f(_0x4d0623._0x2b0f2d,0xdd)+_0x343891(0x59f,0x57d)+_0x343891(0x586,0x591)};function _0x1ef43f(_0x105d2e,_0xbde36e){return _0x6ff7(_0xbde36e- -0xb0,_0x105d2e);}const _0x42258d=_0x1469d7[_0x343891(0x5cf,_0x4d0623._0x3aab57)](getStateFilePath,_0x3103e7);return _0x1469d7[_0x1ef43f(_0x4d0623._0x342463,0x15f)](tool,{'description':_0x343891(_0x4d0623._0x3edecc,0x5c8)+_0x1ef43f(0xcf,_0x4d0623._0x2a79a2)+'用的工具/技能。\x0a用'+'于实时追踪\x20Agen'+'t\x20正在做什么。','args':{'agent_id':tool[_0x343891(0x5b5,_0x4d0623._0x5da31a)][_0x343891(0x5a8,_0x4d0623._0x47106c)]()['describe'](_0x1469d7[_0x343891(_0x4d0623._0x13e3d1,_0x4d0623._0x3eb85e)]),'operation':tool[_0x343891(0x5c1,0x599)][_0x1ef43f(0x10d,_0x4d0623._0x1212c2)]()[_0x1ef43f(_0x4d0623._0x4a08b9,0x11f)]('当前操作描述(如\x22分'+_0x1ef43f(_0x4d0623._0x14882c,_0x4d0623._0x5a65ba)),'skill':tool[_0x343891(_0x4d0623._0x86281f,0x599)][_0x1ef43f(0x163,_0x4d0623._0x180742)]()[_0x1ef43f(0x122,0x11f)](_0x1469d7[_0x1ef43f(0xed,0x12f)])},async 'execute'(_0x28d352){const _0x2f517e={'wOGET':function(_0x2b6fb6,_0x342e23){return _0x1469d7['JiyGU'](_0x2b6fb6,_0x342e23);}};function _0x2a64b4(_0x3747d7,_0x4687a5){return _0x1ef43f(_0x3747d7,_0x4687a5-_0x145867._0x10e5a6);}function _0x562be3(_0x26fd1b,_0x2abcc3){return _0x1ef43f(_0x2abcc3,_0x26fd1b- -_0x21e091._0x577c8e);}if(_0x1469d7[_0x562be3(-_0x41ecb3._0x4c1060,-0x165)]!==_0x1469d7['cPPfK'])return _0x562be3(-_0x41ecb3._0x12ca38,-_0x41ecb3._0x1a3f5f)+(_0x2f517e['wOGET'](_0x5a3efa,_0x89b54c)?_0x359d0f[_0x2a64b4(0x40f,0x407)]:_0x415d82(_0xff7124));else try{return await _0x12a39d[_0x562be3(-_0x41ecb3._0x54e16a,-0x1de)+_0x2a64b4(0x3db,_0x41ecb3._0x39ea71)](_0x42258d,_0x28d352[_0x562be3(-0x1d7,-0x1f2)],_0x28d352[_0x2a64b4(_0x41ecb3._0x28109c,_0x41ecb3._0x5a8b5d)],_0x28d352[_0x2a64b4(0x3f2,0x3f8)]);}catch(_0x1e695e){return _0x562be3(-_0x41ecb3._0x11bc90,-0x194)+(_0x1469d7[_0x2a64b4(0x3ba,_0x41ecb3._0x25c8a6)](_0x1e695e,Error)?_0x1e695e[_0x2a64b4(0x422,_0x41ecb3._0xa3713c)]:String(_0x1e695e));}}});}function createRegisterAgentTool(_0xd59e3d){const _0x33fb5c={_0x45349c:0x12a,_0x46099f:0xf8,_0x30c4d1:0xe3,_0x25f5fb:0x158,_0xc5300e:0x134,_0xd9c674:0x112,_0x11e7c4:0xd6,_0xddbba2:0x149,_0x5d50d9:0xd7,_0x39c6c6:0xdb,_0x561860:0x119,_0x1a2522:0x120,_0x890e57:0xec,_0x14cb94:0x124,_0x22be02:0xf3,_0x4f1355:0x14f,_0x476e52:0x139,_0x1e6fa4:0xe2,_0x5643a6:0x103,_0x370902:0xc2,_0x4ebce9:0xda,_0x7c904f:0x181,_0x170c07:0x11a,_0x11de55:0xc5},_0x573c6d={_0x135e5e:0x2d4,_0x333234:0x315,_0x40ef34:0x312,_0x2e6ae8:0x3c3,_0x50c1e7:0x33e},_0xdfde6a={_0x24ed07:0x214},_0x12d027={'SqkEL':function(_0xb07749,_0x27583f){return _0xb07749 instanceof _0x27583f;},'heeId':function(_0x2dbe8e,_0x3430a9){return _0x2dbe8e(_0x3430a9);},'eXxdI':function(_0x2962d2,_0x347fb6){return _0x2962d2(_0x347fb6);},'NzkXM':_0x5e7bea(-_0x33fb5c._0x45349c,-_0x33fb5c._0x46099f)+_0x5e7bea(-_0x33fb5c._0x30c4d1,-0xc9)},_0x31c870=_0x12d027[_0x51e197(0x12a,_0x33fb5c._0x25f5fb)](getStateFilePath,_0xd59e3d);function _0x51e197(_0x7b9d59,_0x5d9f16){return _0x6ff7(_0x7b9d59- -0xcc,_0x5d9f16);}function _0x5e7bea(_0x35d440,_0x3719e7){return _0x6ff7(_0x35d440- -0x2e1,_0x3719e7);}return _0x12d027[_0x5e7bea(-_0x33fb5c._0xc5300e,-_0x33fb5c._0xd9c674)](tool,{'description':_0x51e197(0xc9,_0x33fb5c._0x11e7c4)+_0x51e197(0x11d,_0x33fb5c._0xddbba2)+_0x51e197(_0x33fb5c._0x5d50d9,_0x33fb5c._0x39c6c6)+_0x5e7bea(-0xfa,-_0x33fb5c._0x561860)+_0x5e7bea(-_0x33fb5c._0x1a2522,-0x139)+_0x5e7bea(-_0x33fb5c._0x890e57,-_0x33fb5c._0x14cb94),'args':{'agent_id':tool[_0x5e7bea(-0x121,-_0x33fb5c._0x14cb94)][_0x5e7bea(-_0x33fb5c._0x22be02,-0x121)]()[_0x5e7bea(-_0x33fb5c._0xd9c674,-_0x33fb5c._0x4f1355)](_0x51e197(_0x33fb5c._0x476e52,0x130)),'parent_id':tool[_0x51e197(0xf4,0xe4)][_0x5e7bea(-_0x33fb5c._0x22be02,-_0x33fb5c._0x1e6fa4)]()['optional']()[_0x51e197(_0x33fb5c._0x5643a6,0x10b)](_0x51e197(_0x33fb5c._0x370902,_0x33fb5c._0x4ebce9)+_0x5e7bea(-0x145,-_0x33fb5c._0x7c904f)),'phase':tool['schema'][_0x51e197(0x122,_0x33fb5c._0x170c07)]()[_0x51e197(0x101,_0x33fb5c._0x11de55)]()['describe'](_0x12d027[_0x51e197(0x102,0xff)])},async 'execute'(_0x2286a7){const _0xa0b7be={_0x476b0d:0x2c6};function _0x4d5f22(_0x4d0cbe,_0x29b1d3){return _0x51e197(_0x29b1d3-_0xa0b7be._0x476b0d,_0x4d0cbe);}function _0x399ce5(_0x51f346,_0x13e851){return _0x51e197(_0x13e851-_0xdfde6a._0x24ed07,_0x51f346);}try{return await _0x12a39d[_0x399ce5(_0x573c6d._0x135e5e,0x2f8)+_0x399ce5(_0x573c6d._0x333234,_0x573c6d._0x40ef34)](_0x31c870,_0x2286a7[_0x4d5f22(0x3ed,_0x573c6d._0x2e6ae8)],{'parentId':_0x2286a7[_0x399ce5(0x322,0x34a)],'phase':_0x2286a7['phase']});}catch(_0x2fd339){return _0x4d5f22(0x381,0x3c1)+_0x399ce5(0x34d,0x32a)+(_0x12d027[_0x4d5f22(0x3b5,0x3f5)](_0x2fd339,Error)?_0x2fd339[_0x399ce5(_0x573c6d._0x333234,0x353)]:_0x12d027[_0x399ce5(0x378,_0x573c6d._0x50c1e7)](String,_0x2fd339));}}});}function createDeregisterAgentTool(_0x5455d8){const _0x111be1={_0x33a3e8:0x2d8,_0x3b3df0:0x2f9,_0x13af88:0x292,_0x2629ea:0x26c,_0x96f995:0x23f,_0xc1b978:0x2c5,_0x3443f0:0x2b6,_0x47497d:0x2b3,_0x18dee1:0x218,_0x24b5fb:0x1fd},_0x4752b3={_0x2a98e7:0x3fe,_0x3ecd36:0x40e,_0x3c7e49:0x3e3,_0x28f538:0x3ca,_0x35cf53:0x416,_0x4e7071:0x448,_0x19ccc2:0x5b0,_0x35c1b6:0x5e8,_0x1ff5c2:0x458,_0x39f401:0x45e,_0x1cc33d:0x40b,_0x4e4c5e:0x42b,_0x3e7abe:0x42f,_0x1ad240:0x5e8,_0xd519c:0x615,_0x5c2d65:0x5e5,_0x29b4f9:0x61f},_0x536048={_0x2db374:0x17f},_0x591543={_0x46139d:0x30c},_0x358f66={_0x42401a:0x3b7},_0x5c7a54={_0x4b6863:0xce},_0x124196={'UprhM':function(_0x442b2a,_0x43870d){return _0x442b2a instanceof _0x43870d;},'rOjFQ':function(_0x48dcd1,_0x48d83d){return _0x48dcd1===_0x48d83d;},'JfhJH':function(_0x22b798,_0x5425fa){return _0x22b798 instanceof _0x5425fa;},'JDftV':function(_0x50635f,_0x12ace8){return _0x50635f(_0x12ace8);},'odrRo':'要注销的\x20Agent'+'\x20ID'};function _0x589f1f(_0x105756,_0xc759a7){return _0x6ff7(_0x105756-_0x5c7a54._0x4b6863,_0xc759a7);}const _0x24df4b=_0x124196['JDftV'](getStateFilePath,_0x5455d8);function _0x370991(_0x27e0aa,_0x1fefaa){return _0x6ff7(_0x1fefaa- -_0x358f66._0x42401a,_0x27e0aa);}return _0x124196[_0x589f1f(_0x111be1._0x33a3e8,_0x111be1._0x3b3df0)](tool,{'description':_0x589f1f(_0x111be1._0x13af88,0x294)+_0x589f1f(_0x111be1._0x2629ea,_0x111be1._0x96f995)+'nt。\x0a移除\x20Age'+_0x589f1f(_0x111be1._0xc1b978,_0x111be1._0x3443f0)+'父\x20Agent\x20的\x20'+_0x589f1f(_0x111be1._0x47497d,0x296),'args':{'agent_id':tool[_0x589f1f(0x28e,0x28c)]['string']()['describe'](_0x124196[_0x370991(-_0x111be1._0x18dee1,-_0x111be1._0x24b5fb)])},async 'execute'(_0x19e790){const _0x29944a={_0x2e5ada:0x147};function _0x49e096(_0x585845,_0x43739d){return _0x589f1f(_0x585845-_0x591543._0x46139d,_0x43739d);}function _0x591cab(_0x591892,_0x152855){return _0x589f1f(_0x591892-_0x536048._0x2db374,_0x152855);}const _0x346a9f={'kyhAM':function(_0x444ed4,_0x13778){function _0x3c0628(_0x4956b6,_0x3722cb){return _0x6ff7(_0x3722cb- -0x348,_0x4956b6);}return _0x124196[_0x3c0628(-_0x29944a._0x2e5ada,-0x14f)](_0x444ed4,_0x13778);},'eqSZo':function(_0x855d6a,_0x211825){return _0x855d6a(_0x211825);}};try{return await _0x12a39d[_0x591cab(_0x4752b3._0x2a98e7,_0x4752b3._0x3ecd36)+_0x591cab(_0x4752b3._0x3c7e49,_0x4752b3._0x28f538)](_0x24df4b,_0x19e790[_0x591cab(_0x4752b3._0x35cf53,_0x4752b3._0x4e7071)]);}catch(_0x12b938){return _0x124196[_0x591cab(0x41d,_0x4752b3._0x35cf53)](_0x49e096(_0x4752b3._0x19ccc2,_0x4752b3._0x35c1b6),_0x49e096(0x579,0x555))?_0x591cab(0x45a,0x472)+(_0x346a9f['kyhAM'](_0x525ff9,_0x5b7d97)?_0x22d93a[_0x591cab(_0x4752b3._0x1ff5c2,_0x4752b3._0x39f401)]:_0x346a9f[_0x591cab(_0x4752b3._0x1cc33d,_0x4752b3._0x4e4c5e)](_0x5f459a,_0x5b1bc1)):_0x49e096(0x584,0x551)+_0x591cab(_0x4752b3._0x3e7abe,0x453)+(_0x124196[_0x49e096(_0x4752b3._0x1ad240,_0x4752b3._0xd519c)](_0x12b938,Error)?_0x12b938[_0x49e096(_0x4752b3._0x5c2d65,_0x4752b3._0x29b4f9)]:_0x124196['JDftV'](String,_0x12b938));}}});}function createProgressTool(_0x349893){const _0x1c732a={_0x2ef477:0x18a,_0x41934e:0x1ad,_0x450569:0x1a8},_0x5a4f59={_0x55b64f:0x52c,_0x4b027f:0x4f9,_0x589182:0x139},_0x322564={_0x124a54:0x44},_0x3ab7c7={_0x296eb7:0x79};function _0x41e2a7(_0x1d5166,_0x68268a){return _0x6ff7(_0x68268a- -_0x3ab7c7._0x296eb7,_0x1d5166);}function _0x5ee1a6(_0x4f4b2e,_0x592aa5){return _0x6ff7(_0x592aa5- -_0x322564._0x124a54,_0x4f4b2e);}const _0x3198c2={'urySr':function(_0x15b555,_0x575f78){return _0x15b555 instanceof _0x575f78;},'jbMGa':function(_0x101340,_0x45ba47){return _0x101340(_0x45ba47);}},_0x1dad39=getStateFilePath(_0x349893);return _0x3198c2['jbMGa'](tool,{'description':_0x5ee1a6(_0x1c732a._0x2ef477,_0x1c732a._0x41934e)+_0x5ee1a6(0x1af,_0x1c732a._0x450569)+'含完成度百分比、阶段'+'分布图、Agent\x20'+'详情表格。','args':{},async 'execute'(){const _0x6d57d={_0x3fda19:0x361};function _0x5aad6f(_0x145dc9,_0x571857){return _0x5ee1a6(_0x571857,_0x145dc9- -0x2e5);}function _0x3bd664(_0x15d3c9,_0x4ffa77){return _0x5ee1a6(_0x15d3c9,_0x4ffa77-_0x6d57d._0x3fda19);}try{return await _0x12a39d[_0x5aad6f(-0x12c,-0x103)+'ss'](_0x1dad39);}catch(_0x34dfee){return _0x3bd664(_0x5a4f59._0x55b64f,_0x5a4f59._0x4b027f)+(_0x3198c2['urySr'](_0x34dfee,Error)?_0x34dfee[_0x5aad6f(-0x11e,-_0x5a4f59._0x589182)]:String(_0x34dfee));}}});}function createQuickTool(_0x3f72b4){const _0x412520={_0x2670c4:0x54b,_0xdd2218:0x192,_0x4b2f0a:0x561,_0x252e3d:0x165},_0x10f18a={_0x57c25e:0x1d9,_0xa151d3:0x379,_0x4e25b7:0x1f7,_0x54f931:0x1bf,_0x1f9d17:0x165,_0x5cf708:0x166},_0x1adb8d={'sALoW':function(_0x223245,_0x49c9fa){return _0x223245(_0x49c9fa);}};function _0x1946e3(_0x49a41a,_0x172f63){return _0x6ff7(_0x49a41a- -0x36c,_0x172f63);}const _0x499533=_0x1adb8d[_0x5b6e56(0x556,_0x412520._0x2670c4)](getStateFilePath,_0x3f72b4);function _0x5b6e56(_0x45e3ae,_0x166206){return _0x6ff7(_0x45e3ae-0x3c4,_0x166206);}return tool({'description':_0x1946e3(-_0x412520._0xdd2218,-0x17a)+_0x5b6e56(_0x412520._0x4b2f0a,0x56e)+_0x5b6e56(0x5c8,0x5c1)+'\x0a适用于小型、明确的'+_0x5b6e56(0x573,0x599),'args':{'task':tool['schema'][_0x5b6e56(0x5b2,0x579)]()[_0x1946e3(-0x19d,-_0x412520._0x252e3d)](_0x5b6e56(0x5c4,0x602))},async 'execute'(_0x2e10ff){function _0x10879d(_0x27323c,_0x2d980d){return _0x5b6e56(_0x2d980d- -0x735,_0x27323c);}function _0x3c7181(_0x153b3d,_0x8f76a4){return _0x5b6e56(_0x8f76a4- -0x23f,_0x153b3d);}try{return await _0x12a39d[_0x10879d(-0x1a9,-_0x10f18a._0x57c25e)](_0x499533,_0x2e10ff[_0x3c7181(_0x10f18a._0xa151d3,0x372)]);}catch(_0x19f1e2){return _0x10879d(-_0x10f18a._0x4e25b7,-_0x10f18a._0x54f931)+(_0x19f1e2 instanceof Error?_0x19f1e2[_0x10879d(-_0x10f18a._0x1f9d17,-_0x10f18a._0x5cf708)]:String(_0x19f1e2));}}});}const SpecOpsPlugin=async _0x4a4016=>{const _0x22c42e={_0x3a8217:0xdf,_0x2baa97:0x113,_0x24dc83:0xd4},_0x15161d={_0x3a4810:0x107};function _0x3685ec(_0x441836,_0x4ef8f4){return _0x6ff7(_0x4ef8f4- -0x3e7,_0x441836);}const _0x54edc2={'mVQsw':_0x3685ec(-0x1ac,-0x1de),'mbcTq':function(_0x4a9d4a,_0x3243c5){return _0x4a9d4a(_0x3243c5);}},_0x29b17e=_0x4a4016[_0x4d246e(0xe2,_0x22c42e._0x3a8217)];function _0x4d246e(_0x17f13f,_0x42b631){return _0x6ff7(_0x42b631- -_0x15161d._0x3a4810,_0x17f13f);}return{'name':_0x54edc2[_0x4d246e(_0x22c42e._0x2baa97,0xdd)],'tool':{'specops_status':createStatusTool(_0x29b17e),'specops_advance':createAdvanceTool(_0x29b17e),'specops_new_project':createNewProjectTool(_0x29b17e),'specops_update_operation':createUpdateOperationTool(_0x29b17e),'specops_register_agent':createRegisterAgentTool(_0x29b17e),'specops_deregister_agent':createDeregisterAgentTool(_0x29b17e),'specops_progress':_0x54edc2[_0x4d246e(0x108,_0x22c42e._0x24dc83)](createProgressTool,_0x29b17e),'specops_quick':_0x54edc2['mbcTq'](createQuickTool,_0x29b17e)},'event':async _0x26c1ec=>{}};};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
|
+
}
|