fix: use opencode skills as source of truth

This commit is contained in:
Bohdan Triapitsyn
2026-05-17 14:51:25 +03:00
parent 8900b8f0f2
commit bbc297202e
20 changed files with 384 additions and 101 deletions
+3 -1
View File
@@ -19,6 +19,7 @@ export interface CommandConfig {
description?: string;
agent?: string | null;
model?: string | null;
source?: string;
template?: string;
scope?: CommandScope;
}
@@ -168,8 +169,9 @@ export const useCommandsStore = create<CommandsStore>()(
() => opencodeClient.listCommandsWithDetails()
);
const configurableCommands = commands.filter((cmd) => cmd.source !== 'skill');
const commandsWithScope = await Promise.all(
commands.map(async (cmd) => {
configurableCommands.map(async (cmd) => {
try {
// Force no-cache
const response = await fetch(`/api/config/commands/${encodeURIComponent(cmd.name)}${queryParams}`, {