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
+5
View File
@@ -0,0 +1,5 @@
export declare const HOOK_NAME: "auto-slash-command";
export declare const AUTO_SLASH_COMMAND_TAG_OPEN = "<auto-slash-command>";
export declare const AUTO_SLASH_COMMAND_TAG_CLOSE = "</auto-slash-command>";
export declare const SLASH_COMMAND_PATTERN: RegExp;
export declare const EXCLUDED_COMMANDS: Set<string>;
+13
View File
@@ -0,0 +1,13 @@
import type { ParsedSlashCommand } from "./types";
export declare function removeCodeBlocks(text: string): string;
export declare function parseSlashCommand(text: string): ParsedSlashCommand | null;
export declare function isExcludedCommand(command: string): boolean;
export declare function detectSlashCommand(text: string): ParsedSlashCommand | null;
export declare function extractPromptText(parts: Array<{
type: string;
text?: string;
}>): string;
export declare function findSlashCommandPartIndex(parts: Array<{
type: string;
text?: string;
}>): number;
+13
View File
@@ -0,0 +1,13 @@
import { type LoadedSkill } from "../../features/opencode-skill-loader";
import type { ParsedSlashCommand } from "./types";
export interface ExecutorOptions {
skills?: LoadedSkill[];
pluginsEnabled?: boolean;
enabledPluginsOverride?: Record<string, boolean>;
}
export interface ExecuteResult {
success: boolean;
replacementText?: string;
error?: string;
}
export declare function executeSlashCommand(parsed: ParsedSlashCommand, options?: ExecutorOptions): Promise<ExecuteResult>;
+18
View File
@@ -0,0 +1,18 @@
import type { AutoSlashCommandHookInput, AutoSlashCommandHookOutput, CommandExecuteBeforeInput, CommandExecuteBeforeOutput } from "./types";
import type { LoadedSkill } from "../../features/opencode-skill-loader";
export interface AutoSlashCommandHookOptions {
skills?: LoadedSkill[];
pluginsEnabled?: boolean;
enabledPluginsOverride?: Record<string, boolean>;
}
export declare function createAutoSlashCommandHook(options?: AutoSlashCommandHookOptions): {
"chat.message": (input: AutoSlashCommandHookInput, output: AutoSlashCommandHookOutput) => Promise<void>;
"command.execute.before": (input: CommandExecuteBeforeInput, output: CommandExecuteBeforeOutput) => Promise<void>;
event: ({ event, }: {
event: {
type: string;
properties?: unknown;
};
}) => Promise<void>;
dispose: () => void;
};
+6
View File
@@ -0,0 +1,6 @@
export * from "./detector";
export * from "./executor";
export * from "./constants";
export * from "./types";
export { createAutoSlashCommandHook } from "./hook";
export type { AutoSlashCommandHookOptions } from "./hook";
@@ -0,0 +1,7 @@
export interface ProcessedCommandStore {
has(commandKey: string): boolean;
add(commandKey: string): void;
cleanupSession(sessionID: string): void;
clear(): void;
}
export declare function createProcessedCommandStore(): ProcessedCommandStore;
+39
View File
@@ -0,0 +1,39 @@
export interface AutoSlashCommandHookInput {
sessionID: string;
agent?: string;
model?: {
providerID: string;
modelID: string;
};
messageID?: string;
}
export interface AutoSlashCommandHookOutput {
message: Record<string, unknown>;
parts: Array<{
type: string;
text?: string;
[key: string]: unknown;
}>;
}
export interface ParsedSlashCommand {
command: string;
args: string;
raw: string;
}
export interface AutoSlashCommandResult {
detected: boolean;
parsedCommand?: ParsedSlashCommand;
injectedMessage?: string;
}
export interface CommandExecuteBeforeInput {
command: string;
sessionID: string;
arguments: string;
}
export interface CommandExecuteBeforeOutput {
parts: Array<{
type: string;
text?: string;
[key: string]: unknown;
}>;
}