feat(plugin): gate pages on companion features

This commit is contained in:
npc0-hue
2026-07-29 09:53:39 +08:00
parent 271e1e684f
commit c9494abc48
16 changed files with 300 additions and 61 deletions
+10
View File
@@ -60,8 +60,11 @@ export interface GameClientBridgePageContractResponse {
commandTypes?: string[];
snapshotTypes?: string[];
queryTemplateKeys?: string[];
featureKeys?: string[];
}
export interface GameClientBridgeFeatureDeclarationResponse { key: string; title: string; permission: string; requiredHandlers?: string[]; requiredEventProducers?: string[]; }
export interface GameClientBridgeCompanionDeclarationResponse {
profileKey: string;
configTemplateKey: string;
@@ -85,6 +88,7 @@ export interface GameClientBridgeManifestResponse {
commandRetentionSeconds: number;
maxCommands: number;
pages?: GameClientBridgePageContractResponse[];
features?: GameClientBridgeFeatureDeclarationResponse[];
companion?: GameClientBridgeCompanionDeclarationResponse;
}
@@ -96,14 +100,19 @@ export interface GameClientBridgeProfileDeclarationResponse {
commandTypes: string[];
snapshotTypes: string[];
queryTemplateKeys: string[];
handlerTypes?: string[];
eventProducerTypes?: string[];
}
export interface GameClientBridgeFeatureAvailabilityResponse { key: string; available: boolean; reason?: string; }
export interface GameClientBridgeStatusResponse {
serverInstanceId: string;
pluginId: string;
available: boolean;
reason?: string;
profiles: GameClientBridgeProfileDeclarationResponse[];
features?: GameClientBridgeFeatureAvailabilityResponse[];
}
export interface GameClientBridgeCommandResultResponse {
@@ -224,6 +233,7 @@ export interface GamePluginPageResponse {
bundleIntegritySha256?: string;
permissions: string[];
bridgeActions?: string[];
featureKeys?: string[];
}
export interface RuntimeDiscoveryProbeResponse {