[codex] Add room skill settings inventory (#132)
Add read-only room skill settings inventory.\n\nNo production deploy/restart.
This commit is contained in:
@@ -438,6 +438,41 @@ export interface RuntimeInventorySnapshot {
|
||||
};
|
||||
}
|
||||
|
||||
export type RoomSkillScope = 'codex-user' | 'claude-user' | 'runner';
|
||||
|
||||
export interface RoomSkillCatalogItem {
|
||||
id: string;
|
||||
scope: RoomSkillScope;
|
||||
name: string;
|
||||
displayName: string;
|
||||
description: string | null;
|
||||
path: string;
|
||||
agentTypes: Array<'claude-code' | 'codex'>;
|
||||
}
|
||||
|
||||
export interface RoomSkillAgentPolicy {
|
||||
agentType: 'claude-code' | 'codex';
|
||||
mode: 'all-enabled' | 'custom';
|
||||
availableSkillIds: string[];
|
||||
disabledSkillIds: string[];
|
||||
explicitEnabledSkillIds: string[];
|
||||
effectiveEnabledSkillIds: string[];
|
||||
}
|
||||
|
||||
export interface RoomSkillPolicyRoom {
|
||||
jid: string;
|
||||
name: string;
|
||||
folder: string;
|
||||
roomMode?: 'single' | 'tribunal';
|
||||
agents: RoomSkillAgentPolicy[];
|
||||
}
|
||||
|
||||
export interface RoomSkillSettingsSnapshot {
|
||||
generatedAt: string;
|
||||
catalog: RoomSkillCatalogItem[];
|
||||
rooms: RoomSkillPolicyRoom[];
|
||||
}
|
||||
|
||||
export interface MoaReferenceStatus {
|
||||
model: string;
|
||||
checkedAt: string;
|
||||
@@ -596,6 +631,10 @@ export async function fetchRuntimeInventory(): Promise<RuntimeInventorySnapshot>
|
||||
return fetchJson('/api/settings/runtime-inventory');
|
||||
}
|
||||
|
||||
export async function fetchRoomSkillSettings(): Promise<RoomSkillSettingsSnapshot> {
|
||||
return fetchJson('/api/settings/room-skills');
|
||||
}
|
||||
|
||||
export async function updateCodexFeatures(
|
||||
input: Partial<CodexFeatureSnapshot>,
|
||||
): Promise<CodexFeatureSnapshot> {
|
||||
|
||||
Reference in New Issue
Block a user