feat: 建立通用咨询能力契约
This commit is contained in:
1 parent
c6679b9de0
commit
bf62701874
3 files changed
+23
No files matched your search
@@ -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