feat: 建立通用咨询能力契约
This commit is contained in:
1 parent
c6679b9de0
commit
bf62701874
3 files changed
+23
No files matched your search
@@ -57,6 +57,7 @@
|
||||
- [x] 首页标准模块按 `layout.home` 受控显示,未知模块安全隐藏。
|
||||
- [x] 首页通过受控模块分支按 `layout.home` 实际改变模块渲染顺序。
|
||||
- [x] 增加林境建筑画册与极简留白双视觉模板 fixture 验收。
|
||||
- [x] 建立通用咨询 Capability Plugin manifest,明确模块依赖和 API 契约。
|
||||
- [ ] Phase 4:Capability Plugin。
|
||||
- [ ] Phase 5:林境门作与第二行业双模板验证。
|
||||
- [ ] Phase 6:Stitch 到 Manifest 的转换流水线。
|
||||
|
||||
@@ -38,6 +38,18 @@ export const capabilityRegistry = {
|
||||
booking: { key: "booking", version: "1.0.0", workflowKey: "booking.basic" },
|
||||
} as const satisfies Record<CapabilityKey, CapabilityDefinition>;
|
||||
|
||||
export const capabilityPlugins = {
|
||||
inquiry: {
|
||||
key: "inquiry",
|
||||
version: "1.0.0",
|
||||
displayName: "通用咨询",
|
||||
purpose: "inquiry",
|
||||
requiredModules: ["inquiry", "records", "success-summary"],
|
||||
apiContract: "/customer/inquiry-submissions",
|
||||
configSchema: "capability.inquiry.v1",
|
||||
},
|
||||
} as const;
|
||||
|
||||
export type BrandTemplateModuleType = "identity" | "trust" | "offering" | "inquiry" | "contact";
|
||||
|
||||
export interface BrandTemplateModuleDefinition {
|
||||
|
||||
@@ -110,6 +110,16 @@ export interface RuntimeCapability {
|
||||
status: "enabled" | "disabled" | "degraded";
|
||||
}
|
||||
|
||||
export interface CapabilityPluginManifest {
|
||||
key: string;
|
||||
version: string;
|
||||
displayName: string;
|
||||
purpose: "inquiry" | "booking" | "quote-request" | "upload";
|
||||
requiredModules: string[];
|
||||
apiContract: string;
|
||||
configSchema: string;
|
||||
}
|
||||
|
||||
export interface RuntimeWorkspace {
|
||||
schemaVersion: string;
|
||||
brand: Record<string, unknown>;
|
||||
|
||||
Reference in new issue
Block a user