Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { MessageType, type HistoryItemSkillsList } from '../types.js';
import { t } from '../../i18n/index.js';
import { AsyncFzf } from 'fzf';
import type { SkillConfig } from '@copilot-shell/core';

/** FUTURE: Re-enable once remote registry is available
const cacheClearSubCommand: SlashCommand = {
name: 'clear',
get description() {
Expand Down Expand Up @@ -127,14 +127,15 @@ const remoteSubCommand: SlashCommand = {
}
},
};
*/

export const skillsCommand: SlashCommand = {
name: 'skills',
get description() {
return t('List available skills.');
},
kind: CommandKind.BUILT_IN,
subCommands: [remoteSubCommand, cacheSubCommand],
subCommands: [], // _remoteSubCommand and _cacheSubCommand are disabled (remote registry unavailable)
action: async (context: CommandContext, args?: string) => {
const argParts = (args?.trim() ?? '').split(/\s+/);
const skillName = argParts[0] ?? '';
Expand Down
Loading