Files
PromptX/resource/package.registry.json
sean eea46a8ee1 feat: 优化鲁班角色并完善ToolSandbox工具开发体系
## 鲁班角色优化
- 新增tool-best-practices知识模块:工具设计最佳实践、性能优化、安全防护
- 新增dpml-tool-tagging知识模块:DPML工具标签四组件架构精通
- 增强craftsmanship思维模式:现代工具特征完善
- 资源迁移到包级别:支持跨项目共享

## ToolSandbox架构完善
- 实现ToolSandbox类:支持@tool://协议的三阶段执行流程
- 优化依赖管理:getDependencies()接口标准化
- 完善UserProtocol:支持@user://沙箱目录访问
- 增强工具发现:FilePatternDiscovery支持多种文件模式

## 工具生态建设
- 添加tool.tag.md:DPML工具标签框架完整定义
- 重构ToolInterface:统一getDependencies()接口规范
- 优化ToolExecutor:集成ToolSandbox执行流程
- 更新注册表:29个资源完整注册发现

## 技术架构改进
- pnpm依赖集成:自动化沙箱环境管理
- 协议系统完善:@tool://和@user://协议标准化
- 资源结构统一:包级别和项目级别一致性
- 开发流程标准化:从需求分析到质量保证的完整工作流

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-28 19:42:16 +08:00

461 lines
19 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"version": "2.0.0",
"source": "package",
"metadata": {
"version": "2.0.0",
"description": "package 级资源注册表",
"createdAt": "2025-06-28T11:40:17.935Z",
"updatedAt": "2025-06-28T11:40:17.951Z",
"resourceCount": 29
},
"resources": [
{
"id": "assistant",
"source": "package",
"protocol": "role",
"name": "Assistant 角色",
"description": "专业角色,提供特定领域的专业能力",
"reference": "@package://resource/role/assistant/assistant.role.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.941Z",
"updatedAt": "2025-06-28T11:40:17.941Z",
"scannedAt": "2025-06-28T11:40:17.941Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/assistant/assistant.role.md",
"fileType": "role"
}
},
{
"id": "luban",
"source": "package",
"protocol": "role",
"name": "Luban 角色",
"description": "专业角色,提供特定领域的专业能力",
"reference": "@package://resource/role/luban/luban.role.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.941Z",
"updatedAt": "2025-06-28T11:40:17.941Z",
"scannedAt": "2025-06-28T11:40:17.941Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/luban/luban.role.md",
"fileType": "role"
}
},
{
"id": "noface",
"source": "package",
"protocol": "role",
"name": "Noface 角色",
"description": "专业角色,提供特定领域的专业能力",
"reference": "@package://resource/role/noface/noface.role.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.942Z",
"updatedAt": "2025-06-28T11:40:17.942Z",
"scannedAt": "2025-06-28T11:40:17.942Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/noface/noface.role.md",
"fileType": "role"
}
},
{
"id": "nuwa",
"source": "package",
"protocol": "role",
"name": "Nuwa 角色",
"description": "专业角色,提供特定领域的专业能力",
"reference": "@package://resource/role/nuwa/nuwa.role.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.942Z",
"updatedAt": "2025-06-28T11:40:17.942Z",
"scannedAt": "2025-06-28T11:40:17.942Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/nuwa/nuwa.role.md",
"fileType": "role"
}
},
{
"id": "sean",
"source": "package",
"protocol": "role",
"name": "Sean 角色",
"description": "专业角色,提供特定领域的专业能力",
"reference": "@package://resource/role/sean/sean.role.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.942Z",
"updatedAt": "2025-06-28T11:40:17.942Z",
"scannedAt": "2025-06-28T11:40:17.942Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/sean/sean.role.md",
"fileType": "role"
}
},
{
"id": "recall_v1",
"source": "package",
"protocol": "thought",
"name": "Recall_v1 思维模式",
"description": "思维模式指导AI的思考方式",
"reference": "@package://resource/core/_deprecated/recall_v1.thought.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.943Z",
"updatedAt": "2025-06-28T11:40:17.943Z",
"scannedAt": "2025-06-28T11:40:17.943Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/core/_deprecated/recall_v1.thought.md",
"fileType": "thought"
}
},
{
"id": "remember_v1",
"source": "package",
"protocol": "thought",
"name": "Remember_v1 思维模式",
"description": "思维模式指导AI的思考方式",
"reference": "@package://resource/core/_deprecated/remember_v1.thought.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.943Z",
"updatedAt": "2025-06-28T11:40:17.943Z",
"scannedAt": "2025-06-28T11:40:17.943Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/core/_deprecated/remember_v1.thought.md",
"fileType": "thought"
}
},
{
"id": "remember-xml",
"source": "package",
"protocol": "thought",
"name": "Remember Xml 思维模式",
"description": "思维模式指导AI的思考方式",
"reference": "@package://resource/core/remember-xml.thought.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.944Z",
"updatedAt": "2025-06-28T11:40:17.944Z",
"scannedAt": "2025-06-28T11:40:17.944Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/core/remember-xml.thought.md",
"fileType": "thought"
}
},
{
"id": "remember",
"source": "package",
"protocol": "thought",
"name": "Remember 思维模式",
"description": "思维模式指导AI的思考方式",
"reference": "@package://resource/core/remember.thought.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.944Z",
"updatedAt": "2025-06-28T11:40:17.944Z",
"scannedAt": "2025-06-28T11:40:17.944Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/core/remember.thought.md",
"fileType": "thought"
}
},
{
"id": "assistant",
"source": "package",
"protocol": "thought",
"name": "Assistant 思维模式",
"description": "思维模式指导AI的思考方式",
"reference": "@package://resource/role/assistant/thought/assistant.thought.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.944Z",
"updatedAt": "2025-06-28T11:40:17.944Z",
"scannedAt": "2025-06-28T11:40:17.944Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/assistant/thought/assistant.thought.md",
"fileType": "thought"
}
},
{
"id": "craftsmanship",
"source": "package",
"protocol": "thought",
"name": "Craftsmanship 思维模式",
"description": "思维模式指导AI的思考方式",
"reference": "@package://resource/role/luban/thought/craftsmanship.thought.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.944Z",
"updatedAt": "2025-06-28T11:40:17.944Z",
"scannedAt": "2025-06-28T11:40:17.944Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/luban/thought/craftsmanship.thought.md",
"fileType": "thought"
}
},
{
"id": "role-creation",
"source": "package",
"protocol": "thought",
"name": "Role Creation 思维模式",
"description": "思维模式指导AI的思考方式",
"reference": "@package://resource/role/nuwa/thought/role-creation.thought.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.945Z",
"updatedAt": "2025-06-28T11:40:17.945Z",
"scannedAt": "2025-06-28T11:40:17.945Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/nuwa/thought/role-creation.thought.md",
"fileType": "thought"
}
},
{
"id": "assistant",
"source": "package",
"protocol": "execution",
"name": "Assistant 执行模式",
"description": "执行模式,定义具体的行为模式",
"reference": "@package://resource/role/assistant/execution/assistant.execution.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.946Z",
"updatedAt": "2025-06-28T11:40:17.946Z",
"scannedAt": "2025-06-28T11:40:17.946Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/assistant/execution/assistant.execution.md",
"fileType": "execution"
}
},
{
"id": "tool-development-workflow",
"source": "package",
"protocol": "execution",
"name": "Tool Development Workflow 执行模式",
"description": "执行模式,定义具体的行为模式",
"reference": "@package://resource/role/luban/execution/tool-development-workflow.execution.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.946Z",
"updatedAt": "2025-06-28T11:40:17.946Z",
"scannedAt": "2025-06-28T11:40:17.946Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/luban/execution/tool-development-workflow.execution.md",
"fileType": "execution"
}
},
{
"id": "toolsandbox-mastery",
"source": "package",
"protocol": "execution",
"name": "Toolsandbox Mastery 执行模式",
"description": "执行模式,定义具体的行为模式",
"reference": "@package://resource/role/luban/execution/toolsandbox-mastery.execution.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.946Z",
"updatedAt": "2025-06-28T11:40:17.946Z",
"scannedAt": "2025-06-28T11:40:17.946Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/luban/execution/toolsandbox-mastery.execution.md",
"fileType": "execution"
}
},
{
"id": "adaptive-learning",
"source": "package",
"protocol": "execution",
"name": "Adaptive Learning 执行模式",
"description": "执行模式,定义具体的行为模式",
"reference": "@package://resource/role/noface/execution/adaptive-learning.execution.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.946Z",
"updatedAt": "2025-06-28T11:40:17.946Z",
"scannedAt": "2025-06-28T11:40:17.946Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/noface/execution/adaptive-learning.execution.md",
"fileType": "execution"
}
},
{
"id": "content-preservation",
"source": "package",
"protocol": "execution",
"name": "Content Preservation 执行模式",
"description": "执行模式,定义具体的行为模式",
"reference": "@package://resource/role/noface/execution/content-preservation.execution.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.946Z",
"updatedAt": "2025-06-28T11:40:17.946Z",
"scannedAt": "2025-06-28T11:40:17.946Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/noface/execution/content-preservation.execution.md",
"fileType": "execution"
}
},
{
"id": "dpml-authoring",
"source": "package",
"protocol": "execution",
"name": "Dpml Authoring 执行模式",
"description": "执行模式,定义具体的行为模式",
"reference": "@package://resource/role/nuwa/execution/dpml-authoring.execution.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.947Z",
"updatedAt": "2025-06-28T11:40:17.947Z",
"scannedAt": "2025-06-28T11:40:17.947Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/nuwa/execution/dpml-authoring.execution.md",
"fileType": "execution"
}
},
{
"id": "role-design-patterns",
"source": "package",
"protocol": "execution",
"name": "Role Design Patterns 执行模式",
"description": "执行模式,定义具体的行为模式",
"reference": "@package://resource/role/nuwa/execution/role-design-patterns.execution.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.947Z",
"updatedAt": "2025-06-28T11:40:17.947Z",
"scannedAt": "2025-06-28T11:40:17.947Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/nuwa/execution/role-design-patterns.execution.md",
"fileType": "execution"
}
},
{
"id": "role-generation",
"source": "package",
"protocol": "execution",
"name": "Role Generation 执行模式",
"description": "执行模式,定义具体的行为模式",
"reference": "@package://resource/role/nuwa/execution/role-generation.execution.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.947Z",
"updatedAt": "2025-06-28T11:40:17.947Z",
"scannedAt": "2025-06-28T11:40:17.947Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/nuwa/execution/role-generation.execution.md",
"fileType": "execution"
}
},
{
"id": "visualization-enhancement",
"source": "package",
"protocol": "execution",
"name": "Visualization Enhancement 执行模式",
"description": "执行模式,定义具体的行为模式",
"reference": "@package://resource/role/nuwa/execution/visualization-enhancement.execution.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.947Z",
"updatedAt": "2025-06-28T11:40:17.947Z",
"scannedAt": "2025-06-28T11:40:17.947Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/nuwa/execution/visualization-enhancement.execution.md",
"fileType": "execution"
}
},
{
"id": "template-adherence",
"source": "package",
"protocol": "execution",
"name": "Template Adherence 执行模式",
"description": "执行模式,定义具体的行为模式",
"reference": "@package://resource/role/sean/execution/template-adherence.execution.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.948Z",
"updatedAt": "2025-06-28T11:40:17.948Z",
"scannedAt": "2025-06-28T11:40:17.948Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/sean/execution/template-adherence.execution.md",
"fileType": "execution"
}
},
{
"id": "dpml-tool-tagging",
"source": "package",
"protocol": "knowledge",
"name": "Dpml Tool Tagging 知识库",
"description": "知识库,提供专业知识和信息",
"reference": "@package://resource/role/luban/knowledge/dpml-tool-tagging.knowledge.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.949Z",
"updatedAt": "2025-06-28T11:40:17.949Z",
"scannedAt": "2025-06-28T11:40:17.949Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/luban/knowledge/dpml-tool-tagging.knowledge.md",
"fileType": "knowledge"
}
},
{
"id": "javascript-ecosystem",
"source": "package",
"protocol": "knowledge",
"name": "Javascript Ecosystem 知识库",
"description": "知识库,提供专业知识和信息",
"reference": "@package://resource/role/luban/knowledge/javascript-ecosystem.knowledge.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.949Z",
"updatedAt": "2025-06-28T11:40:17.949Z",
"scannedAt": "2025-06-28T11:40:17.949Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/luban/knowledge/javascript-ecosystem.knowledge.md",
"fileType": "knowledge"
}
},
{
"id": "promptx-tool-architecture",
"source": "package",
"protocol": "knowledge",
"name": "Promptx Tool Architecture 知识库",
"description": "知识库,提供专业知识和信息",
"reference": "@package://resource/role/luban/knowledge/promptx-tool-architecture.knowledge.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.949Z",
"updatedAt": "2025-06-28T11:40:17.949Z",
"scannedAt": "2025-06-28T11:40:17.949Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/luban/knowledge/promptx-tool-architecture.knowledge.md",
"fileType": "knowledge"
}
},
{
"id": "tool-best-practices",
"source": "package",
"protocol": "knowledge",
"name": "Tool Best Practices 知识库",
"description": "知识库,提供专业知识和信息",
"reference": "@package://resource/role/luban/knowledge/tool-best-practices.knowledge.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.949Z",
"updatedAt": "2025-06-28T11:40:17.949Z",
"scannedAt": "2025-06-28T11:40:17.949Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/luban/knowledge/tool-best-practices.knowledge.md",
"fileType": "knowledge"
}
},
{
"id": "contradiction-methodology",
"source": "package",
"protocol": "knowledge",
"name": "Contradiction Methodology 知识库",
"description": "知识库,提供专业知识和信息",
"reference": "@package://resource/role/sean/knowledge/contradiction-methodology.knowledge.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.949Z",
"updatedAt": "2025-06-28T11:40:17.949Z",
"scannedAt": "2025-06-28T11:40:17.949Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/sean/knowledge/contradiction-methodology.knowledge.md",
"fileType": "knowledge"
}
},
{
"id": "product-philosophy",
"source": "package",
"protocol": "knowledge",
"name": "Product Philosophy 知识库",
"description": "知识库,提供专业知识和信息",
"reference": "@package://resource/role/sean/knowledge/product-philosophy.knowledge.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.950Z",
"updatedAt": "2025-06-28T11:40:17.950Z",
"scannedAt": "2025-06-28T11:40:17.950Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/sean/knowledge/product-philosophy.knowledge.md",
"fileType": "knowledge"
}
},
{
"id": "promptx-evolution",
"source": "package",
"protocol": "knowledge",
"name": "Promptx Evolution 知识库",
"description": "知识库,提供专业知识和信息",
"reference": "@package://resource/role/sean/knowledge/promptx-evolution.knowledge.md",
"metadata": {
"createdAt": "2025-06-28T11:40:17.950Z",
"updatedAt": "2025-06-28T11:40:17.950Z",
"scannedAt": "2025-06-28T11:40:17.950Z",
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/sean/knowledge/promptx-evolution.knowledge.md",
"fileType": "knowledge"
}
}
],
"stats": {
"totalResources": 29,
"byProtocol": {
"role": 5,
"thought": 7,
"execution": 10,
"knowledge": 7
},
"bySource": {
"package": 29
}
}
}