chore: include pre-built dist for github install
This commit is contained in:
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
export { HOOK_NAME, createStartWorkHook } from "./start-work-hook";
|
||||
export { detectWorktreePath, listWorktrees, parseWorktreeListPorcelain } from "./worktree-detector";
|
||||
export type { ParsedUserRequest } from "./parse-user-request";
|
||||
export { parseUserRequest } from "./parse-user-request";
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface ParsedUserRequest {
|
||||
planName: string | null;
|
||||
explicitWorktreePath: string | null;
|
||||
}
|
||||
export declare function parseUserRequest(promptText: string): ParsedUserRequest;
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
import type { PluginInput } from "@opencode-ai/plugin";
|
||||
export declare const HOOK_NAME: "start-work";
|
||||
interface StartWorkHookInput {
|
||||
sessionID: string;
|
||||
messageID?: string;
|
||||
}
|
||||
interface StartWorkHookOutput {
|
||||
parts: Array<{
|
||||
type: string;
|
||||
text?: string;
|
||||
}>;
|
||||
}
|
||||
export declare function createStartWorkHook(ctx: PluginInput): {
|
||||
"chat.message": (input: StartWorkHookInput, output: StartWorkHookOutput) => Promise<void>;
|
||||
};
|
||||
export {};
|
||||
@@ -0,0 +1,8 @@
|
||||
export type WorktreeEntry = {
|
||||
path: string;
|
||||
branch: string | undefined;
|
||||
bare: boolean;
|
||||
};
|
||||
export declare function parseWorktreeListPorcelain(output: string): WorktreeEntry[];
|
||||
export declare function listWorktrees(directory: string): WorktreeEntry[];
|
||||
export declare function detectWorktreePath(directory: string): string | null;
|
||||
Reference in New Issue
Block a user