fix: 修复InitCommand项目路径识别问题,优化角色发现机制

主要修改:
• 修复InitCommand.js中AI提供路径优先级配置问题
• 重构Luban角色思维模式文件结构,提升代码组织
• 优化工具执行系统,清理技术债务
• 更新package.registry.json反映最新资源结构

影响:解决了technical-product-manager等角色无法发现的关键问题

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
sean
2025-06-28 22:11:17 +08:00
parent 071138ef57
commit ffb5b4adaf
14 changed files with 704 additions and 1603 deletions

View File

@ -86,8 +86,9 @@ class InitCommand extends BasePouchCommand {
startDir: projectPath,
platform: process.platform,
avoidUserHome: true,
// init命令特有优先当前目录,不查找现有.promptx
// init命令特有AI提供的路径优先级最高然后是当前目录
strategies: [
'aiProvidedProjectPath', // 最高优先级AI提供的项目路径
'currentWorkingDirectoryIfHasMarkers',
'currentWorkingDirectory'
]