chore: include pre-built dist for github install
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
export * from "./types";
|
||||
export * from "./loader";
|
||||
@@ -0,0 +1,6 @@
|
||||
import type { CommandDefinition } from "./types";
|
||||
export declare function loadUserCommands(): Promise<Record<string, CommandDefinition>>;
|
||||
export declare function loadProjectCommands(directory?: string): Promise<Record<string, CommandDefinition>>;
|
||||
export declare function loadOpencodeGlobalCommands(): Promise<Record<string, CommandDefinition>>;
|
||||
export declare function loadOpencodeProjectCommands(directory?: string): Promise<Record<string, CommandDefinition>>;
|
||||
export declare function loadAllCommands(directory?: string): Promise<Record<string, CommandDefinition>>;
|
||||
@@ -0,0 +1,42 @@
|
||||
export type CommandScope = "user" | "project" | "opencode" | "opencode-project";
|
||||
/**
|
||||
* Handoff definition for command workflows.
|
||||
* Based on speckit's handoff pattern for multi-agent orchestration.
|
||||
* @see https://github.com/github/spec-kit
|
||||
*/
|
||||
export interface HandoffDefinition {
|
||||
/** Human-readable label for the handoff action */
|
||||
label: string;
|
||||
/** Target agent/command identifier (e.g., "speckit.tasks") */
|
||||
agent: string;
|
||||
/** Pre-filled prompt text for the handoff */
|
||||
prompt: string;
|
||||
/** If true, automatically executes after command completion; if false, shows as suggestion */
|
||||
send?: boolean;
|
||||
}
|
||||
export interface CommandDefinition {
|
||||
name: string;
|
||||
description?: string;
|
||||
template: string;
|
||||
agent?: string;
|
||||
model?: string;
|
||||
subtask?: boolean;
|
||||
argumentHint?: string;
|
||||
/** Handoff definitions for workflow transitions */
|
||||
handoffs?: HandoffDefinition[];
|
||||
}
|
||||
export interface CommandFrontmatter {
|
||||
description?: string;
|
||||
"argument-hint"?: string;
|
||||
agent?: string;
|
||||
model?: string;
|
||||
subtask?: boolean;
|
||||
/** Handoff definitions for workflow transitions */
|
||||
handoffs?: HandoffDefinition[];
|
||||
}
|
||||
export interface LoadedCommand {
|
||||
name: string;
|
||||
path: string;
|
||||
definition: CommandDefinition;
|
||||
scope: CommandScope;
|
||||
}
|
||||
Reference in New Issue
Block a user