fix: use opencode skills as source of truth
This commit is contained in:
@@ -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}`, {
|
||||
|
||||
Reference in New Issue
Block a user