chore: include pre-built dist for github install

This commit is contained in:
Robin Mordasiewicz
2026-03-14 04:56:50 +00:00
parent a7f0a4cf46
commit bce8ff3a75
1011 changed files with 150081 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
export * from "./types";
export * from "./loader";
+6
View File
@@ -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>>;
+42
View File
@@ -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;
}