chore: include pre-built dist for github install
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import type { CommandInfo } from "./types";
|
||||
export interface CommandDiscoveryOptions {
|
||||
pluginsEnabled?: boolean;
|
||||
enabledPluginsOverride?: Record<string, boolean>;
|
||||
}
|
||||
export declare function discoverCommandsSync(directory?: string, options?: CommandDiscoveryOptions): CommandInfo[];
|
||||
@@ -0,0 +1,3 @@
|
||||
import type { CommandInfo } from "./types";
|
||||
export declare function formatLoadedCommand(command: CommandInfo, userMessage?: string): Promise<string>;
|
||||
export declare function formatCommandList(items: CommandInfo[]): string;
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
export * from "./types";
|
||||
export { discoverCommandsSync } from "./command-discovery";
|
||||
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
import type { LazyContentLoader } from "../../features/opencode-skill-loader";
|
||||
export type CommandScope = "builtin" | "config" | "user" | "project" | "opencode" | "opencode-project" | "plugin";
|
||||
export interface CommandMetadata {
|
||||
name: string;
|
||||
description: string;
|
||||
argumentHint?: string;
|
||||
model?: string;
|
||||
agent?: string;
|
||||
subtask?: boolean;
|
||||
}
|
||||
export interface CommandInfo {
|
||||
name: string;
|
||||
path?: string;
|
||||
metadata: CommandMetadata;
|
||||
content?: string;
|
||||
scope: CommandScope;
|
||||
lazyContentLoader?: LazyContentLoader;
|
||||
}
|
||||
Reference in New Issue
Block a user