Files
PromptX/resource/package.registry.json
sean 071138ef57 refactor: 完成domain到role目录结构统一和硬编码清理
## 核心变更
1. **女娲角色知识更新**
   - dpml-authoring.execution.md: 更新镜像结构约束为.promptx/resource/role/
   - role-generation.execution.md: 4处domain路径更新为role
   - role-creation.thought.md: 文件组织思维从domain改为role

2. **命令类硬编码清理**
   - InitCommand.js: 移除domain目录创建,改为按需创建
   - RegisterCommand.js: 使用ResourceManager协议查找替代硬编码路径
   - WelcomeCommand.js: 简化loadRoleRegistry()方法,直接使用注册表

3. **包注册表同步**
   - 重新生成package.registry.json确保资源发现一致性

## 技术价值
-  统一目录语义:role比domain更准确描述AI角色
-  清理边角料代码:移除不必要的硬编码路径依赖
-  增强系统架构:基于注册表的资源发现更稳定
-  女娲知识同步:包含最新的role目录结构认知

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-28 19:59:28 +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:53:03.703Z",
"updatedAt": "2025-06-28T11:53:03.717Z",
"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:53:03.708Z",
"updatedAt": "2025-06-28T11:53:03.708Z",
"scannedAt": "2025-06-28T11:53:03.708Z",
"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:53:03.708Z",
"updatedAt": "2025-06-28T11:53:03.708Z",
"scannedAt": "2025-06-28T11:53:03.708Z",
"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:53:03.708Z",
"updatedAt": "2025-06-28T11:53:03.708Z",
"scannedAt": "2025-06-28T11:53:03.708Z",
"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:53:03.709Z",
"updatedAt": "2025-06-28T11:53:03.709Z",
"scannedAt": "2025-06-28T11:53:03.709Z",
"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:53:03.709Z",
"updatedAt": "2025-06-28T11:53:03.709Z",
"scannedAt": "2025-06-28T11:53:03.709Z",
"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:53:03.710Z",
"updatedAt": "2025-06-28T11:53:03.710Z",
"scannedAt": "2025-06-28T11:53:03.710Z",
"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:53:03.710Z",
"updatedAt": "2025-06-28T11:53:03.710Z",
"scannedAt": "2025-06-28T11:53:03.710Z",
"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:53:03.711Z",
"updatedAt": "2025-06-28T11:53:03.711Z",
"scannedAt": "2025-06-28T11:53:03.711Z",
"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:53:03.711Z",
"updatedAt": "2025-06-28T11:53:03.711Z",
"scannedAt": "2025-06-28T11:53:03.711Z",
"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:53:03.711Z",
"updatedAt": "2025-06-28T11:53:03.711Z",
"scannedAt": "2025-06-28T11:53:03.711Z",
"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:53:03.711Z",
"updatedAt": "2025-06-28T11:53:03.711Z",
"scannedAt": "2025-06-28T11:53:03.711Z",
"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:53:03.711Z",
"updatedAt": "2025-06-28T11:53:03.711Z",
"scannedAt": "2025-06-28T11:53:03.711Z",
"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:53:03.712Z",
"updatedAt": "2025-06-28T11:53:03.712Z",
"scannedAt": "2025-06-28T11:53:03.712Z",
"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:53:03.713Z",
"updatedAt": "2025-06-28T11:53:03.713Z",
"scannedAt": "2025-06-28T11:53:03.713Z",
"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:53:03.713Z",
"updatedAt": "2025-06-28T11:53:03.713Z",
"scannedAt": "2025-06-28T11:53:03.713Z",
"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:53:03.713Z",
"updatedAt": "2025-06-28T11:53:03.713Z",
"scannedAt": "2025-06-28T11:53:03.713Z",
"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:53:03.713Z",
"updatedAt": "2025-06-28T11:53:03.713Z",
"scannedAt": "2025-06-28T11:53:03.713Z",
"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:53:03.713Z",
"updatedAt": "2025-06-28T11:53:03.713Z",
"scannedAt": "2025-06-28T11:53:03.713Z",
"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:53:03.713Z",
"updatedAt": "2025-06-28T11:53:03.713Z",
"scannedAt": "2025-06-28T11:53:03.713Z",
"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:53:03.714Z",
"updatedAt": "2025-06-28T11:53:03.714Z",
"scannedAt": "2025-06-28T11:53:03.714Z",
"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:53:03.714Z",
"updatedAt": "2025-06-28T11:53:03.714Z",
"scannedAt": "2025-06-28T11:53:03.714Z",
"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:53:03.714Z",
"updatedAt": "2025-06-28T11:53:03.714Z",
"scannedAt": "2025-06-28T11:53:03.714Z",
"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:53:03.715Z",
"updatedAt": "2025-06-28T11:53:03.715Z",
"scannedAt": "2025-06-28T11:53:03.715Z",
"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:53:03.715Z",
"updatedAt": "2025-06-28T11:53:03.715Z",
"scannedAt": "2025-06-28T11:53:03.715Z",
"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:53:03.715Z",
"updatedAt": "2025-06-28T11:53:03.715Z",
"scannedAt": "2025-06-28T11:53:03.715Z",
"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:53:03.716Z",
"updatedAt": "2025-06-28T11:53:03.716Z",
"scannedAt": "2025-06-28T11:53:03.716Z",
"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:53:03.716Z",
"updatedAt": "2025-06-28T11:53:03.716Z",
"scannedAt": "2025-06-28T11:53:03.716Z",
"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:53:03.716Z",
"updatedAt": "2025-06-28T11:53:03.716Z",
"scannedAt": "2025-06-28T11:53:03.716Z",
"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:53:03.716Z",
"updatedAt": "2025-06-28T11:53:03.716Z",
"scannedAt": "2025-06-28T11:53:03.716Z",
"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
}
}
}