{
  "description": "PromptX 统一资源协议注册表",
  "version": "0.0.1",
  "protocols": {
    "thought": {
      "description": "思维模式资源协议",
      "location": "thought://{thought_id}",
      "params": {
        "format": "string - 输出格式",
        "cache": "boolean - 是否缓存"
      },
      "registry": {
        "assistant": "@package://prompt/domain/assistant/thought/assistant.thought.md",
        "remember": "@package://prompt/core/thought/remember.thought.md",
        "recall": "@package://prompt/core/thought/recall.thought.md",
        "product-manager": "@package://prompt/domain/product-manager/thought/product-manager.thought.md",
        "java-backend-developer": "@package://prompt/domain/java-backend-developer/thought/java-backend-developer.thought.md"
      }
    },
    "execution": {
      "description": "执行模式资源协议",
      "location": "execution://{execution_id}",
      "params": {
        "format": "string - 输出格式",
        "cache": "boolean - 是否缓存"
      },
      "registry": {
        "assistant": "@package://prompt/domain/assistant/execution/assistant.execution.md",
        "product-manager": "@package://prompt/domain/product-manager/execution/product-manager.execution.md",
        "market-analysis": "@package://prompt/domain/product-manager/execution/market-analysis.execution.md",
        "user-research": "@package://prompt/domain/product-manager/execution/user-research.execution.md",
        "java-backend-developer": "@package://prompt/domain/java-backend-developer/execution/java-backend-developer.execution.md",
        "system-architecture": "@package://prompt/domain/java-backend-developer/execution/system-architecture.execution.md",
        "spring-ecosystem": "@package://prompt/domain/java-backend-developer/execution/spring-ecosystem.execution.md",
        "code-quality": "@package://prompt/domain/java-backend-developer/execution/code-quality.execution.md",
        "database-design": "@package://prompt/domain/java-backend-developer/execution/database-design.execution.md"
      }
    },
    "memory": {
      "description": "项目记忆系统协议",
      "location": "memory://{resource_id}",
      "params": {
        "format": "string - 输出格式",
        "cache": "boolean - 是否缓存"
      },
      "registry": {
        "declarative": "@project://.promptx/memory/declarative.md",
        "procedural": "@project://.promptx/memory/procedural.md",
        "episodic": "@project://.promptx/memory/episodic.md",
        "semantic": "@project://.promptx/memory/semantic.md"
      }
    },
    "role": {
      "description": "AI角色资源协议",
      "location": "role://{role_id}",
      "params": {
        "format": "string - 输出格式",
        "cache": "boolean - 是否缓存"
      },
      "registry": {
        "assistant": {
          "file": "@package://prompt/domain/assistant/assistant.role.md",
          "name": "🙋 智能助手",
          "description": "通用助理角色，提供基础的助理服务和记忆支持"
        },
        "role-designer": {
          "file": "@package://prompt/domain/role-designer/role-designer.role.md",
          "name": "🎭 角色设计师",
          "description": "专业角色设计专家，基于DPML协议创建和优化新的AI角色"
        },
        "product-manager": {
          "file": "@package://prompt/domain/product-manager/product-manager.role.md",
          "name": "📊 产品经理",
          "description": "专业产品管理专家，负责产品策略、用户研究、市场分析和团队协作"
        },
        "java-backend-developer": {
          "file": "@package://prompt/domain/java-backend-developer/java-backend-developer.role.md",
          "name": "☕ Java后端开发者",
          "description": "专业Java后端开发专家，精通Spring生态系统、微服务架构和系统设计"
        },
        "test-role": {
          "file": "@package://prompt/domain/test-role/test-role.role.md",
          "name": "🧪 测试角色",
          "description": "这是一个用于测试动态发现和注册功能的示例角色"
        }
      }
    },
    "prompt": {
      "description": "PromptX内置提示词资源协议",
      "location": "prompt://{resource_id}",
      "params": {
        "merge": "boolean - 是否合并多个文件内容",
        "separator": "string - 文件间分隔符",
        "include_filename": "boolean - 是否包含文件名标题"
      },
      "registry": {
        "protocols": "@package://prompt/protocol/**/*.md",
        "core": "@package://prompt/core/**/*.md",
        "domain": "@package://prompt/domain/**/*.md",
        "resource": "@package://prompt/resource/**/*.md",
        "bootstrap": "@package://bootstrap.md"
      }
    },
    "file": {
      "description": "文件系统资源协议",
      "location": "file://{absolute_or_relative_path}",
      "params": {
        "line": "string - 行范围，如 \"1-10\"",
        "encoding": "string - 文件编码，默认 utf8"
      }
    },
    "package": {
      "description": "包协议 - 智能访问NPM包资源",
      "location": "package://{path}",
      "params": {
        "encoding": "string - 文件编码，默认 utf8"
      }
    },
    "project": {
      "description": "项目协议 - 访问项目根目录资源",
      "location": "project://{path}",
      "params": {
        "from": "string - 指定搜索起始目录",
        "create": "boolean - 如果目录不存在是否创建",
        "exists": "boolean - 仅返回存在的文件/目录",
        "type": "string - 过滤类型 (file|dir|both)"
      }
    },
    "user": {
      "description": "用户协议 - 访问用户目录资源",
      "location": "user://{path}",
      "params": {
        "exists": "boolean - 仅返回存在的文件/目录",
        "type": "string - 过滤类型 (file|dir|both)"
      }
    },
    "http": {
      "description": "HTTP网络资源协议",
      "location": "http://{url}",
      "params": {
        "format": "string - 响应格式，如 json, text",
        "timeout": "number - 超时时间（毫秒）",
        "cache": "boolean - 是否缓存响应"
      }
    },
    "https": {
      "description": "HTTPS网络资源协议",
      "location": "https://{url}",
      "params": {
        "format": "string - 响应格式，如 json, text",
        "timeout": "number - 超时时间（毫秒）",
        "cache": "boolean - 是否缓存响应"
      }
    }
  }
}
