refactor: 统一资源文件结构 - 移动package.registry.json到resource目录
将package.registry.json从src/目录移动到resource/目录,实现资源文件的统一管理: 文件变更: - 移动: src/package.registry.json → resource/package.registry.json - 更新: scripts/generate-package-registry.js - 修改输出路径 - 更新: src/lib/core/resource/discovery/PackageDiscovery.js - 更新4处路径引用 * _getRegistryPath() 方法(2处) * _loadPackageRegistry() 方法 * getRegistryData() 方法 架构优化: - 所有资源文件统一集中在resource/目录下 - 简化项目结构,提升语义清晰度 - 保持系统功能完全正常:角色发现、注册表生成、系统初始化 新的统一结构: 📁 resource/ ├── 📄 package.registry.json (新位置) ├── 📁 core/ (核心思维模式) ├── 📁 role/ (角色文件) ├── 📁 tool/ (工具文件) └── 📁 protocol/ (协议定义) 功能验证: ✅ 角色发现正常 (4个核心角色) ✅ 注册表生成正常 (23个资源) ✅ 系统初始化正常 ✅ 路径引用全部更新 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
371
resource/package.registry.json
Normal file
371
resource/package.registry.json
Normal file
@ -0,0 +1,371 @@
|
|||||||
|
{
|
||||||
|
"version": "2.0.0",
|
||||||
|
"source": "package",
|
||||||
|
"metadata": {
|
||||||
|
"version": "2.0.0",
|
||||||
|
"description": "package 级资源注册表",
|
||||||
|
"createdAt": "2025-06-28T08:03:43.222Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.234Z",
|
||||||
|
"resourceCount": 23
|
||||||
|
},
|
||||||
|
"resources": [
|
||||||
|
{
|
||||||
|
"id": "assistant",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "role",
|
||||||
|
"name": "Assistant 角色",
|
||||||
|
"description": "专业角色,提供特定领域的专业能力",
|
||||||
|
"reference": "@package://resource/role/assistant/assistant.role.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.226Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.226Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.226Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/assistant/assistant.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-28T08:03:43.226Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.226Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.226Z",
|
||||||
|
"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-28T08:03:43.226Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.226Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.226Z",
|
||||||
|
"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-28T08:03:43.227Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.227Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.227Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/sean/sean.role.md",
|
||||||
|
"fileType": "role"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "thought:recall_v1",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "thought",
|
||||||
|
"name": "Thought:recall_v1 思维模式",
|
||||||
|
"description": "思维模式,指导AI的思考方式",
|
||||||
|
"reference": "@package://resource/core/_deprecated/recall_v1.thought.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.227Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.227Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.227Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/core/_deprecated/recall_v1.thought.md",
|
||||||
|
"fileType": "thought"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "thought:remember_v1",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "thought",
|
||||||
|
"name": "Thought:remember_v1 思维模式",
|
||||||
|
"description": "思维模式,指导AI的思考方式",
|
||||||
|
"reference": "@package://resource/core/_deprecated/remember_v1.thought.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.228Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.228Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.228Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/core/_deprecated/remember_v1.thought.md",
|
||||||
|
"fileType": "thought"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "thought:remember-xml",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "thought",
|
||||||
|
"name": "Thought:remember Xml 思维模式",
|
||||||
|
"description": "思维模式,指导AI的思考方式",
|
||||||
|
"reference": "@package://resource/core/remember-xml.thought.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.228Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.228Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.228Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/core/remember-xml.thought.md",
|
||||||
|
"fileType": "thought"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "thought:remember",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "thought",
|
||||||
|
"name": "Thought:remember 思维模式",
|
||||||
|
"description": "思维模式,指导AI的思考方式",
|
||||||
|
"reference": "@package://resource/core/remember.thought.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.229Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.229Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.229Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/core/remember.thought.md",
|
||||||
|
"fileType": "thought"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "thought:assistant",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "thought",
|
||||||
|
"name": "Thought:assistant 思维模式",
|
||||||
|
"description": "思维模式,指导AI的思考方式",
|
||||||
|
"reference": "@package://resource/role/assistant/thought/assistant.thought.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.229Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.229Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.229Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/assistant/thought/assistant.thought.md",
|
||||||
|
"fileType": "thought"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "thought:role-creation",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "thought",
|
||||||
|
"name": "Thought:role Creation 思维模式",
|
||||||
|
"description": "思维模式,指导AI的思考方式",
|
||||||
|
"reference": "@package://resource/role/nuwa/thought/role-creation.thought.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.229Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.229Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.229Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/nuwa/thought/role-creation.thought.md",
|
||||||
|
"fileType": "thought"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "execution:assistant",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "execution",
|
||||||
|
"name": "Execution:assistant 执行模式",
|
||||||
|
"description": "执行模式,定义具体的行为模式",
|
||||||
|
"reference": "@package://resource/role/assistant/execution/assistant.execution.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.230Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.230Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.230Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/assistant/execution/assistant.execution.md",
|
||||||
|
"fileType": "execution"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "execution:adaptive-learning",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "execution",
|
||||||
|
"name": "Execution:adaptive Learning 执行模式",
|
||||||
|
"description": "执行模式,定义具体的行为模式",
|
||||||
|
"reference": "@package://resource/role/noface/execution/adaptive-learning.execution.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.230Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.230Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.230Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/noface/execution/adaptive-learning.execution.md",
|
||||||
|
"fileType": "execution"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "execution:content-preservation",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "execution",
|
||||||
|
"name": "Execution:content Preservation 执行模式",
|
||||||
|
"description": "执行模式,定义具体的行为模式",
|
||||||
|
"reference": "@package://resource/role/noface/execution/content-preservation.execution.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.230Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.230Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.230Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/noface/execution/content-preservation.execution.md",
|
||||||
|
"fileType": "execution"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "execution:dpml-authoring",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "execution",
|
||||||
|
"name": "Execution:dpml Authoring 执行模式",
|
||||||
|
"description": "执行模式,定义具体的行为模式",
|
||||||
|
"reference": "@package://resource/role/nuwa/execution/dpml-authoring.execution.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.230Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.230Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.230Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/nuwa/execution/dpml-authoring.execution.md",
|
||||||
|
"fileType": "execution"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "execution:role-design-patterns",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "execution",
|
||||||
|
"name": "Execution:role Design Patterns 执行模式",
|
||||||
|
"description": "执行模式,定义具体的行为模式",
|
||||||
|
"reference": "@package://resource/role/nuwa/execution/role-design-patterns.execution.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.231Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.231Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.231Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/nuwa/execution/role-design-patterns.execution.md",
|
||||||
|
"fileType": "execution"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "execution:role-generation",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "execution",
|
||||||
|
"name": "Execution:role Generation 执行模式",
|
||||||
|
"description": "执行模式,定义具体的行为模式",
|
||||||
|
"reference": "@package://resource/role/nuwa/execution/role-generation.execution.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.231Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.231Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.231Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/nuwa/execution/role-generation.execution.md",
|
||||||
|
"fileType": "execution"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "execution:visualization-enhancement",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "execution",
|
||||||
|
"name": "Execution:visualization Enhancement 执行模式",
|
||||||
|
"description": "执行模式,定义具体的行为模式",
|
||||||
|
"reference": "@package://resource/role/nuwa/execution/visualization-enhancement.execution.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.231Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.231Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.231Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/nuwa/execution/visualization-enhancement.execution.md",
|
||||||
|
"fileType": "execution"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "execution:template-adherence",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "execution",
|
||||||
|
"name": "Execution:template Adherence 执行模式",
|
||||||
|
"description": "执行模式,定义具体的行为模式",
|
||||||
|
"reference": "@package://resource/role/sean/execution/template-adherence.execution.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.231Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.231Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.231Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/sean/execution/template-adherence.execution.md",
|
||||||
|
"fileType": "execution"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "knowledge:contradiction-methodology",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "knowledge",
|
||||||
|
"name": "Knowledge:contradiction Methodology 知识库",
|
||||||
|
"description": "知识库,提供专业知识和信息",
|
||||||
|
"reference": "@package://resource/role/sean/knowledge/contradiction-methodology.knowledge.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.232Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.232Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.232Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/sean/knowledge/contradiction-methodology.knowledge.md",
|
||||||
|
"fileType": "knowledge"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "knowledge:product-philosophy",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "knowledge",
|
||||||
|
"name": "Knowledge:product Philosophy 知识库",
|
||||||
|
"description": "知识库,提供专业知识和信息",
|
||||||
|
"reference": "@package://resource/role/sean/knowledge/product-philosophy.knowledge.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.232Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.232Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.232Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/sean/knowledge/product-philosophy.knowledge.md",
|
||||||
|
"fileType": "knowledge"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "knowledge:promptx-evolution",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "knowledge",
|
||||||
|
"name": "Knowledge:promptx Evolution 知识库",
|
||||||
|
"description": "知识库,提供专业知识和信息",
|
||||||
|
"reference": "@package://resource/role/sean/knowledge/promptx-evolution.knowledge.md",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.232Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.232Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.232Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/role/sean/knowledge/promptx-evolution.knowledge.md",
|
||||||
|
"fileType": "knowledge"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tool:calculator",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "tool",
|
||||||
|
"name": "Tool:calculator tool",
|
||||||
|
"description": "tool类型的资源",
|
||||||
|
"reference": "@package://resource/tool/calculator.tool.js",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.233Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.233Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.233Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/tool/calculator.tool.js",
|
||||||
|
"fileType": "tool"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "tool:send-email",
|
||||||
|
"source": "package",
|
||||||
|
"protocol": "tool",
|
||||||
|
"name": "Tool:send Email tool",
|
||||||
|
"description": "tool类型的资源",
|
||||||
|
"reference": "@package://resource/tool/send-email.tool.js",
|
||||||
|
"metadata": {
|
||||||
|
"createdAt": "2025-06-28T08:03:43.233Z",
|
||||||
|
"updatedAt": "2025-06-28T08:03:43.233Z",
|
||||||
|
"scannedAt": "2025-06-28T08:03:43.233Z",
|
||||||
|
"filePath": "/Users/sean/Management/ContradictionManagement/projects/PromptX/resource/tool/send-email.tool.js",
|
||||||
|
"fileType": "tool"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"stats": {
|
||||||
|
"totalResources": 23,
|
||||||
|
"byProtocol": {
|
||||||
|
"role": 4,
|
||||||
|
"thought": 6,
|
||||||
|
"execution": 8,
|
||||||
|
"knowledge": 3,
|
||||||
|
"tool": 2
|
||||||
|
},
|
||||||
|
"bySource": {
|
||||||
|
"package": 23
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -13,7 +13,7 @@ async function generatePackageRegistry() {
|
|||||||
|
|
||||||
// 创建PackageDiscovery实例并设置注册表路径
|
// 创建PackageDiscovery实例并设置注册表路径
|
||||||
const discovery = new PackageDiscovery();
|
const discovery = new PackageDiscovery();
|
||||||
discovery.registryPath = path.join(projectRoot, 'src', 'package.registry.json');
|
discovery.registryPath = path.join(projectRoot, 'resource', 'package.registry.json');
|
||||||
|
|
||||||
console.log(`📋 注册表路径: ${discovery.registryPath}`);
|
console.log(`📋 注册表路径: ${discovery.registryPath}`);
|
||||||
|
|
||||||
|
|||||||
@ -100,10 +100,10 @@ class PackageDiscovery extends FilePatternDiscovery {
|
|||||||
avoidUserHome: true
|
avoidUserHome: true
|
||||||
}
|
}
|
||||||
const projectRoot = await this.directoryService.getProjectRoot(context)
|
const projectRoot = await this.directoryService.getProjectRoot(context)
|
||||||
this.registryPath = path.join(projectRoot, 'src/package.registry.json')
|
this.registryPath = path.join(projectRoot, 'resource/package.registry.json')
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// 回退到默认路径
|
// 回退到默认路径
|
||||||
this.registryPath = path.join(process.cwd(), 'src/package.registry.json')
|
this.registryPath = path.join(process.cwd(), 'resource/package.registry.json')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return this.registryPath
|
return this.registryPath
|
||||||
@ -208,7 +208,7 @@ class PackageDiscovery extends FilePatternDiscovery {
|
|||||||
try {
|
try {
|
||||||
// 查找package.registry.json文件位置
|
// 查找package.registry.json文件位置
|
||||||
const packageRoot = await this._findPackageRoot()
|
const packageRoot = await this._findPackageRoot()
|
||||||
const registryPath = path.join(packageRoot, 'src', 'package.registry.json')
|
const registryPath = path.join(packageRoot, 'resource', 'package.registry.json')
|
||||||
|
|
||||||
// 使用RegistryData统一管理
|
// 使用RegistryData统一管理
|
||||||
const registryData = await RegistryData.fromFile('package', registryPath)
|
const registryData = await RegistryData.fromFile('package', registryPath)
|
||||||
@ -509,7 +509,7 @@ class PackageDiscovery extends FilePatternDiscovery {
|
|||||||
try {
|
try {
|
||||||
// 查找package.registry.json文件位置
|
// 查找package.registry.json文件位置
|
||||||
const packageRoot = await this._findPackageRoot()
|
const packageRoot = await this._findPackageRoot()
|
||||||
const registryPath = path.join(packageRoot, 'src', 'package.registry.json')
|
const registryPath = path.join(packageRoot, 'resource', 'package.registry.json')
|
||||||
|
|
||||||
// 直接加载RegistryData
|
// 直接加载RegistryData
|
||||||
const registryData = await RegistryData.fromFile('package', registryPath)
|
const registryData = await RegistryData.fromFile('package', registryPath)
|
||||||
|
|||||||
@ -1,819 +0,0 @@
|
|||||||
{
|
|
||||||
"version": "2.0.0",
|
|
||||||
"source": "package",
|
|
||||||
"metadata": {
|
|
||||||
"version": "2.0.0",
|
|
||||||
"description": "package 级资源注册表",
|
|
||||||
"createdAt": "2025-06-28T07:23:26.055Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.066Z",
|
|
||||||
"resourceCount": 61
|
|
||||||
},
|
|
||||||
"resources": [
|
|
||||||
{
|
|
||||||
"id": "assistant",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "role",
|
|
||||||
"name": "Assistant 角色",
|
|
||||||
"description": "专业角色,提供特定领域的专业能力",
|
|
||||||
"reference": "@package://resource/role/assistant/assistant.role.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.060Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "frontend-developer",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "role",
|
|
||||||
"name": "Frontend Developer 角色",
|
|
||||||
"description": "专业角色,提供特定领域的专业能力",
|
|
||||||
"reference": "@package://resource/role/frontend-developer/frontend-developer.role.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.060Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "java-backend-developer",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "role",
|
|
||||||
"name": "Java Backend Developer 角色",
|
|
||||||
"description": "专业角色,提供特定领域的专业能力",
|
|
||||||
"reference": "@package://resource/role/java-backend-developer/java-backend-developer.role.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.060Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "noface",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "role",
|
|
||||||
"name": "Noface 角色",
|
|
||||||
"description": "专业角色,提供特定领域的专业能力",
|
|
||||||
"reference": "@package://resource/role/noface/noface.role.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.060Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "nuwa",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "role",
|
|
||||||
"name": "Nuwa 角色",
|
|
||||||
"description": "专业角色,提供特定领域的专业能力",
|
|
||||||
"reference": "@package://resource/role/nuwa/nuwa.role.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.060Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "product-manager",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "role",
|
|
||||||
"name": "Product Manager 角色",
|
|
||||||
"description": "专业角色,提供特定领域的专业能力",
|
|
||||||
"reference": "@package://resource/role/product-manager/product-manager.role.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.060Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "sean",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "role",
|
|
||||||
"name": "Sean 角色",
|
|
||||||
"description": "专业角色,提供特定领域的专业能力",
|
|
||||||
"reference": "@package://resource/role/sean/sean.role.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.060Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "xiaohongshu-marketer",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "role",
|
|
||||||
"name": "Xiaohongshu Marketer 角色",
|
|
||||||
"description": "专业角色,提供特定领域的专业能力",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/xiaohongshu-marketer.role.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.060Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.060Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "assistant",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Assistant 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/assistant/execution/assistant.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "code-quality",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Code Quality 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/java-backend-developer/execution/code-quality.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "frontend-developer",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Frontend Developer 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/frontend-developer/execution/frontend-developer.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "technical-architecture",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Technical Architecture 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/frontend-developer/execution/technical-architecture.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "user-experience",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "User Experience 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/frontend-developer/execution/user-experience.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "wechat-miniprogram-development",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Wechat Miniprogram Development 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/frontend-developer/execution/wechat-miniprogram-development.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "database-design",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Database Design 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/java-backend-developer/execution/database-design.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "java-backend-developer",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Java Backend Developer 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/java-backend-developer/execution/java-backend-developer.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "spring-ecosystem",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Spring Ecosystem 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/java-backend-developer/execution/spring-ecosystem.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "system-architecture",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "System Architecture 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/java-backend-developer/execution/system-architecture.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "market-analysis",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Market Analysis 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/product-manager/execution/market-analysis.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "product-manager",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Product Manager 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/product-manager/execution/product-manager.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "user-research",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "User Research 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/product-manager/execution/user-research.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "contradiction-analysis",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Contradiction Analysis 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/sean/execution/contradiction-analysis.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "contradiction-management-methodology",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Contradiction Management Methodology 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/sean/execution/contradiction-management-methodology.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "sean-decision-framework",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Sean Decision Framework 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/sean/execution/sean-decision-framework.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "brand-marketing",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Brand Marketing 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/execution/brand-marketing.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "community-building",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Community Building 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/execution/community-building.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "content-creation",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Content Creation 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/execution/content-creation.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "content-optimization",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Content Optimization 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/execution/content-optimization.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "data-analytics",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Data Analytics 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/execution/data-analytics.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "ecommerce-conversion",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Ecommerce Conversion 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/execution/ecommerce-conversion.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "performance-optimization",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Performance Optimization 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/execution/performance-optimization.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "platform-compliance",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Platform Compliance 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/execution/platform-compliance.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "team-collaboration",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Team Collaboration 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/execution/team-collaboration.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "user-operation",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "User Operation 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/execution/user-operation.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "xiaohongshu-marketer",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "execution",
|
|
||||||
"name": "Xiaohongshu Marketer 执行模式",
|
|
||||||
"description": "执行模式,定义具体的行为模式",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/execution/xiaohongshu-marketer.execution.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.061Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.061Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "recall-xml",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "thought",
|
|
||||||
"name": "Recall Xml 思维模式",
|
|
||||||
"description": "思维模式,指导AI的思考方式",
|
|
||||||
"reference": "@package://resource/core/recall-xml.thought.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "recall",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "thought",
|
|
||||||
"name": "Recall 思维模式",
|
|
||||||
"description": "思维模式,指导AI的思考方式",
|
|
||||||
"reference": "@package://resource/core/recall.thought.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "remember-xml",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "thought",
|
|
||||||
"name": "Remember Xml 思维模式",
|
|
||||||
"description": "思维模式,指导AI的思考方式",
|
|
||||||
"reference": "@package://resource/core/remember-xml.thought.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "remember",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "thought",
|
|
||||||
"name": "Remember 思维模式",
|
|
||||||
"description": "思维模式,指导AI的思考方式",
|
|
||||||
"reference": "@package://resource/core/remember.thought.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "assistant",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "thought",
|
|
||||||
"name": "Assistant 思维模式",
|
|
||||||
"description": "思维模式,指导AI的思考方式",
|
|
||||||
"reference": "@package://resource/role/assistant/thought/assistant.thought.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "frontend-developer",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "thought",
|
|
||||||
"name": "Frontend Developer 思维模式",
|
|
||||||
"description": "思维模式,指导AI的思考方式",
|
|
||||||
"reference": "@package://resource/role/frontend-developer/thought/frontend-developer.thought.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "java-backend-developer",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "thought",
|
|
||||||
"name": "Java Backend Developer 思维模式",
|
|
||||||
"description": "思维模式,指导AI的思考方式",
|
|
||||||
"reference": "@package://resource/role/java-backend-developer/thought/java-backend-developer.thought.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "product-manager",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "thought",
|
|
||||||
"name": "Product Manager 思维模式",
|
|
||||||
"description": "思维模式,指导AI的思考方式",
|
|
||||||
"reference": "@package://resource/role/product-manager/thought/product-manager.thought.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "contradiction-methodology",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "thought",
|
|
||||||
"name": "Contradiction Methodology 思维模式",
|
|
||||||
"description": "思维模式,指导AI的思考方式",
|
|
||||||
"reference": "@package://resource/role/sean/thought/contradiction-methodology.thought.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "sean",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "thought",
|
|
||||||
"name": "Sean 思维模式",
|
|
||||||
"description": "思维模式,指导AI的思考方式",
|
|
||||||
"reference": "@package://resource/role/sean/thought/sean.thought.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "xiaohongshu-marketer",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "thought",
|
|
||||||
"name": "Xiaohongshu Marketer 思维模式",
|
|
||||||
"description": "思维模式,指导AI的思考方式",
|
|
||||||
"reference": "@package://resource/role/xiaohongshu-marketer/thought/xiaohongshu-marketer.thought.md",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.062Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.062Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.064Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.064Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.064Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.064Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.064Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.064Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"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-28T07:23:26.064Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.064Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.064Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "calculator",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "tool",
|
|
||||||
"name": "Calculator tool",
|
|
||||||
"description": "tool类型的资源",
|
|
||||||
"reference": "@package://resource/tool/calculator.tool.js",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.064Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.064Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.064Z"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"id": "send-email",
|
|
||||||
"source": "package",
|
|
||||||
"protocol": "tool",
|
|
||||||
"name": "Send Email tool",
|
|
||||||
"description": "tool类型的资源",
|
|
||||||
"reference": "@package://resource/tool/send-email.tool.js",
|
|
||||||
"metadata": {
|
|
||||||
"createdAt": "2025-06-28T07:23:26.065Z",
|
|
||||||
"updatedAt": "2025-06-28T07:23:26.065Z",
|
|
||||||
"scannedAt": "2025-06-28T07:23:26.065Z"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"stats": {
|
|
||||||
"totalResources": 61,
|
|
||||||
"byProtocol": {
|
|
||||||
"role": 8,
|
|
||||||
"execution": 34,
|
|
||||||
"thought": 14,
|
|
||||||
"knowledge": 3,
|
|
||||||
"tool": 2
|
|
||||||
},
|
|
||||||
"bySource": {
|
|
||||||
"package": 61
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user