mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2025-12-24 16:54:21 +01:00
feat: add some default commands
This commit is contained in:
@@ -58,6 +58,7 @@ export const CommandCompletion = forwardRef<
|
||||
// メモ化されたコマンドフィルタリング
|
||||
const { shouldShowCompletion, filteredCommands } = useMemo(() => {
|
||||
const allCommands = [
|
||||
...(commandData?.defaultCommands || []),
|
||||
...(commandData?.globalCommands || []),
|
||||
...(commandData?.projectCommands || []),
|
||||
];
|
||||
|
||||
@@ -163,6 +163,7 @@ export const routes = (app: HonoAppType) => {
|
||||
globalCommands.status === "fulfilled" ? globalCommands.value : [],
|
||||
projectCommands:
|
||||
projectCommands.status === "fulfilled" ? projectCommands.value : [],
|
||||
defaultCommands: ["/init", "/compact"],
|
||||
});
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user