/**
 * 内置可消费资产 — 核心资产（验收模板、检查清单、知识模板、产品画像、
 * 领域规则、审查规则、流程规则、能力知识文档、流水线流程、骨架模板、
 * 全局模式、适配器生成器）。
 */
import { acc, proc, corePattern, domainRule, reviewRule, flowRule, scaffold, globalPattern, checklist, } from "./types.js";
export const BUILTIN_CORE_ASSETS = [
    // ── 验收模板 (20) ──
    acc("原型说明模版", "required", {
        owner: "架构设计",
        consumers: ["source_extraction_prompt", "intent_expander"],
        trigger: "output_artifact.kind=prototype_spec",
        required_tests: [
            "tests/engine/intent_router.test.ts",
            "tests/engine/intent_expander_integration.test.ts",
        ],
        artifact_schema_ref: "prototype_spec",
    }),
    acc("Bug分析模版", "copy_only", { artifact_schema_ref: "root_cause" }),
    acc("POC结论模版"),
    acc("前端页面验收清单"),
    acc("后端API验收清单"),
    acc("安全审计模版"),
    acc("性能分析模版"),
    acc("技术选型验收清单"),
    acc("接口对接方案模版", "copy_only", { artifact_schema_ref: "api_design" }),
    acc("故障复盘模版", "copy_only", { artifact_schema_ref: "incident_review" }),
    acc("数据库变更方案模版"),
    acc("数据库变更验收清单"),
    acc("架构设计模版", "copy_only", { artifact_schema_ref: "design_doc" }),
    acc("数据库设计文档模版", "supporting", { owner_mechanism_id: "mc-design-artifact-pack", artifact_schema_ref: "database_design" }),
    acc("API接口规格文档模版", "supporting", { owner_mechanism_id: "mc-design-artifact-pack", artifact_schema_ref: "api_spec" }),
    acc("设计一致性验收报告模版", "supporting", { owner_mechanism_id: "mc-design-artifact-pack", artifact_schema_ref: "verification_report" }),
    acc("需求原型设计实现追踪矩阵模版", "supporting", { owner_mechanism_id: "mc-design-artifact-pack" }),
    acc("测试计划模版", "copy_only", { artifact_schema_ref: "test_plan" }),
    acc("详细设计模版", "copy_only", { artifact_schema_ref: "detailed_design" }),
    acc("迁移评估模版", "copy_only", { artifact_schema_ref: "migration_plan" }),
    acc("通用质量验收清单", "copy_only", { artifact_schema_ref: "acceptance_checklist" }),
    acc("重构方案模版"),
    acc("需求分析模版", "copy_only", { artifact_schema_ref: "requirement_analysis" }),
    // ── 检查清单 (6) ──
    {
        id: "checklist-会话恢复",
        path: "templates/checklists/会话恢复.md",
        asset_kind: "checklist",
        owner: "task_context",
        consumers: ["resumeTask"],
        trigger: "session:resume",
        consumption_mode: "manual_reference",
        required_tests: ["tests/engine/task_context.test.ts"],
        owner_mechanism_id: "mc-task-context-lifecycle",
    },
    checklist("主链路接入验收清单", "mc-main-path-integration"),
    checklist("工作流验收清单", "mc-workflow-contract"),
    checklist("知识注入验收清单", "mc-knowledge-injection-boundary"),
    checklist("隐私审查清单", "mc-privacy-boundary"),
    checklist("验证验收清单", "mc-verifier"),
    // ── 知识模板 (1) ──
    {
        id: "ktmpl-审查摘要",
        path: "templates/artifacts/shared/审查摘要.md",
        asset_kind: "acceptance_template",
        owner: "code_reviewer",
        consumers: ["reviewCode"],
        trigger: "review:summary",
        consumption_mode: "manual_reference",
        required_tests: ["tests/engine/code_reviewer.test.ts"],
        owner_mechanism_id: "mc-verifier",
    },
    // ── 产品画像 (3) ──
    {
        id: "profile-b2c",
        path: "templates/profiles/b2c.yaml",
        asset_kind: "product_profile",
        owner: "cli_init",
        consumers: ["copyKnowledgeTemplates"],
        trigger: "init:copy",
        consumption_mode: "copy_only",
        required_tests: ["tests/bin/cli_no_config.test.ts"],
        owner_mechanism_id: "mc-intent-router",
    },
    {
        id: "profile-saas",
        path: "templates/profiles/saas.yaml",
        asset_kind: "product_profile",
        owner: "cli_init",
        consumers: ["copyKnowledgeTemplates"],
        trigger: "init:copy",
        consumption_mode: "copy_only",
        required_tests: ["tests/bin/soloforge_init.test.ts"],
        owner_mechanism_id: "mc-intent-router",
    },
    {
        id: "profile-b2b-internal",
        path: "templates/profiles/b2b-internal.yaml",
        asset_kind: "product_profile",
        owner: "cli_init",
        consumers: ["copyKnowledgeTemplates"],
        trigger: "init:copy",
        consumption_mode: "copy_only",
        required_tests: ["tests/bin/soloforge_init.test.ts"],
        owner_mechanism_id: "mc-intent-router",
    },
    // ── 领域规则 (9) ──
    domainRule("工作流引擎"),
    domainRule("报表统计"),
    domainRule("导入导出规则"),
    domainRule("数据权限"),
    domainRule("多租户"),
    domainRule("审计日志"),
    domainRule("通知规则"),
    domainRule("通用机械条款"),
    domainRule("支付规则"),
    // ── 审查规则 (7) ──
    reviewRule("交付完备性审查规则", "mc-delivery-gate"),
    reviewRule("安全审查规则", "mc-privacy-boundary"),
    reviewRule("并发审查规则", "mc-core-engineering-principles"),
    reviewRule("性能审查规则", "mc-core-engineering-principles"),
    reviewRule("接口契约审查规则", "mc-tool-invocation-contract"),
    reviewRule("架构审查规则", "mc-core-engineering-principles"),
    reviewRule("质量审查规则", "mc-verifier"),
    // P1 补充审查规则 (5)
    reviewRule("需求质量审查规则", "mc-intent-router"),
    reviewRule("决策完整性审查规则", "mc-architecture-decision-workshop"),
    reviewRule("编码就绪审查规则", "mc-coding-readiness"),
    reviewRule("验收标准审查规则", "mc-local-acceptance"),
    reviewRule("发布后审查规则", "mc-delivery-gate"),
    // ── 流程规则 (14) ──
    flowRule("命令执行规则", "mc-command-execution"),
    flowRule("工作流契约规则", "mc-workflow-contract"),
    flowRule("工具调用规则", "mc-tool-invocation-contract"),
    flowRule("意图路由规则", "mc-intent-router"),
    flowRule("敏感信息处理规则", "mc-privacy-boundary"),
    flowRule("知识注入边界规则", "mc-knowledge-injection-boundary"),
    flowRule("防孤岛实现规则", "mc-main-path-integration"),
    flowRule("验证契约规则", "mc-verifier"),
    flowRule("验收模版输出契约规则", "mc-standard-asset-contract"),
    flowRule("模版资产可见性规则", "mc-template-asset-visibility"),
    flowRule("机制自治理规则", "mc-mechanism-health"),
    flowRule("配置落盘边界规则", "mc-config-write-boundary"),
    flowRule("知识治理规则", "mc-knowledge-governance"),
    flowRule("日志治理规则", "mc-log-governance"),
    // ── 能力知识文档 (23) ──
    corePattern("Diff归属追踪"),
    corePattern("Java质量门禁"),
    corePattern("LLM预算网关"),
    corePattern("任务上下文生命周期"),
    corePattern("任务管理器"),
    corePattern("作用域与密钥拦截"),
    corePattern("作用域租约"),
    corePattern("冲突门禁"),
    corePattern("决策网关"),
    corePattern("变异审计"),
    corePattern("回归矩阵"),
    corePattern("工作区互斥锁"),
    corePattern("工作区唤醒"),
    corePattern("并发锁"),
    corePattern("开发者宪法"),
    corePattern("敏感信息扫描"),
    corePattern("治理运行时循环"),
    corePattern("流式心跳"),
    corePattern("知识主权"),
    corePattern("语义证据"),
    corePattern("运行安全包"),
    corePattern("零配置初始化"),
    corePattern("验证命令生成"),
    corePattern("产物Schema注册中心"),
    corePattern("分场景过程规则"),
    corePattern("模版Frontmatter解析"),
    corePattern("Hook层产物结构校验"),
    // ── 流水线流程 (28) ──
    proc("Schema变更流水线", "mc-workflow-contract"),
    proc("代码门禁流程", "mc-delivery-gate"),
    proc("任务拆解流程", "mc-intent-router"),
    proc("功能开发流程", "mc-workflow-contract"),
    proc("安全加固流水线", "mc-privacy-boundary"),
    proc("性能流水线", "mc-core-engineering-principles"),
    proc("接口集成流水线", "mc-tool-invocation-contract"),
    proc("数据库迁移流程", "mc-workflow-contract"),
    proc("概念验证流水线", "mc-workflow-contract"),
    proc("源码原型交付流程", "mc-delivery-gate"),
    proc("知识维护流水线", "mc-registry-infrastructure"),
    proc("紧急修复流水线", "mc-workflow-contract"),
    proc("自主选型流程", "mc-knowledge-injection-boundary"),
    proc("详细设计流程", "mc-knowledge-injection-boundary"),
    proc("调试排查流程", "mc-core-engineering-principles"),
    proc("迁移流水线", "mc-workflow-contract"),
    proc("部署发布流程", "mc-delivery-gate"),
    proc("重构流水线", "mc-workflow-contract"),
    proc("集成验证流程", "mc-verifier"),
    proc("需求澄清流程", "mc-intent-router"),
    proc("验收测试规划", "mc-verifier"),
    proc("主链路接入验证流程", "mc-main-path-integration"),
    proc("命令执行流程", "mc-command-execution"),
    proc("工具调用流程", "mc-tool-invocation-contract"),
    proc("意图路由流程", "mc-intent-router"),
    // ── 高频工作流过程模板 (4) ──
    proc("架构设计工作流", "mc-architecture-design"),
    proc("架构决策研讨工作流", "mc-architecture-decision-workshop"),
    proc("设计产物生成与复验工作流", "mc-design-artifact-pack"),
    proc("现有系统差距分析工作流", "mc-existing-system-analysis"),
    proc("测试优先编码工作流", "mc-coding-readiness"),
    proc("本地浏览器验收工作流", "mc-local-acceptance"),
    { ...proc("会话恢复流程", "mc-session-recovery"), id: "ka-procedure-会话恢复流程" },
    // ── Spring Boot 骨架 (10) ──
    scaffold("spring-boot", "ApiContract.md"),
    scaffold("spring-boot", "Controller.java"),
    scaffold("spring-boot", "DTO.java"),
    scaffold("spring-boot", "Entity.java"),
    scaffold("spring-boot", "ErrorCode.java"),
    scaffold("spring-boot", "Mapper.java"),
    scaffold("spring-boot", "Mapper.xml"),
    scaffold("spring-boot", "PageResponse.java"),
    scaffold("spring-boot", "Service.java"),
    scaffold("spring-boot", "ServiceImpl.java"),
    scaffold("spring-boot", "ServiceTest.java"),
    scaffold("spring-boot", "ControllerTest.java"),
    // ── React 骨架 (8) ──
    scaffold("react", "Form.tsx"),
    scaffold("react", "List.tsx"),
    scaffold("react", "Layout.tsx"),
    scaffold("react", "ErrorBoundary.tsx"),
    scaffold("react", "Page.test.tsx"),
    scaffold("react", "Page.tsx"),
    scaffold("react", "README.md"),
    scaffold("react", "service.ts"),
    scaffold("react", "types.ts"),
    scaffold("react", "use{{ModuleName}}.ts"),
    // ── 全局模式 (49) ──
    globalPattern("API设计规范"),
    globalPattern("Docker部署规范"),
    globalPattern("Git操作规范"),
    globalPattern("N加1查询规范"),
    globalPattern("React列表表格规范"),
    globalPattern("React接口集成规范"),
    globalPattern("React状态管理规范"),
    globalPattern("React组件规范"),
    globalPattern("React表单规范"),
    globalPattern("React路由规范"),
    globalPattern("Schema兼容规范"),
    globalPattern("Vue状态管理规范"),
    globalPattern("Vue组件规范"),
    globalPattern("Vue路由规范"),
    globalPattern("事件驱动规范"),
    globalPattern("事务模式规范"),
    globalPattern("优雅停机规范"),
    globalPattern("全栈流程修复"),
    globalPattern("分页查询规范"),
    globalPattern("前端性能规范"),
    globalPattern("命名规范"),
    globalPattern("国际化规范"),
    globalPattern("增删改查规范"),
    globalPattern("外部依赖规范"),
    globalPattern("契约兼容规范"),
    globalPattern("定时任务规范"),
    globalPattern("实时推送规范"),
    globalPattern("工程纪律"),
    globalPattern("并发控制规范"),
    globalPattern("异步导出规范"),
    globalPattern("接口契约规范"),
    globalPattern("搜索模式规范"),
    globalPattern("数据隐私规范"),
    globalPattern("文件上传规范"),
    globalPattern("无障碍规范"),
    globalPattern("日志规范"),
    globalPattern("权限认证规范"),
    globalPattern("架构红线"),
    globalPattern("测试质量规范"),
    globalPattern("熔断降级规范"),
    globalPattern("状态流转规范"),
    globalPattern("约束实现规范"),
    globalPattern("缓存策略规范"),
    globalPattern("编码质量规范"),
    globalPattern("缺陷管理规范"),
    globalPattern("调试方法论"),
    globalPattern("输入校验规范"),
    globalPattern("错误处理规范"),
    globalPattern("错误边界规范"),
    globalPattern("领域驱动设计规范"),
    // ── 适配器生成器 (4) ──
    {
        id: "adapter-workflow-template",
        path: "src/adapters/shared/workflow_template.ts",
        asset_kind: "adapter_workflow_template",
        owner: "adapter_shared",
        consumers: ["generateClaudeMd", "generateCodexAgentsMd", "generateTraeRules"],
        trigger: "adapter:generate",
        consumption_mode: "required",
        required_tests: ["tests/adapters/workflow_rules.test.ts"],
        owner_mechanism_id: "mc-workflow-contract",
    },
    {
        id: "adapter-claude-md",
        path: "src/adapters/claude_code/claude_md.ts",
        asset_kind: "adapter_rules_generator",
        owner: "adapter_claude",
        consumers: ["generateClaudeMd"],
        trigger: "adapter:generate",
        consumption_mode: "required",
        required_tests: ["tests/adapters/workflow_rules.test.ts"],
        owner_mechanism_id: "mc-workflow-contract",
    },
    {
        id: "adapter-codex-rules",
        path: "src/adapters/codex/codex_rules.ts",
        asset_kind: "adapter_rules_generator",
        owner: "adapter_codex",
        consumers: ["generateCodexAgentsMd"],
        trigger: "adapter:generate",
        consumption_mode: "required",
        required_tests: ["tests/adapters/workflow_rules.test.ts"],
        owner_mechanism_id: "mc-workflow-contract",
    },
    {
        id: "adapter-trae-rules",
        path: "src/adapters/trae/trae_rules.ts",
        asset_kind: "adapter_rules_generator",
        owner: "adapter_trae",
        consumers: ["generateTraeRules"],
        trigger: "adapter:generate",
        consumption_mode: "required",
        required_tests: ["tests/adapters/workflow_rules.test.ts"],
        owner_mechanism_id: "mc-workflow-contract",
    },
];
//# sourceMappingURL=builtin_assets_core.js.map