chore: include pre-built dist for github install
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import type { PluginInput } from "@opencode-ai/plugin";
|
||||
import type { PluginConfig } from "../types";
|
||||
import type { ContextCollector } from "../../../features/context-injector";
|
||||
export declare function createChatMessageHandler(ctx: PluginInput, config: PluginConfig, contextCollector?: ContextCollector): (input: {
|
||||
sessionID: string;
|
||||
agent?: string;
|
||||
model?: {
|
||||
providerID: string;
|
||||
modelID: string;
|
||||
};
|
||||
messageID?: string;
|
||||
}, output: {
|
||||
message: Record<string, unknown>;
|
||||
parts: Array<{
|
||||
type: string;
|
||||
text?: string;
|
||||
[key: string]: unknown;
|
||||
}>;
|
||||
}) => Promise<void>;
|
||||
@@ -0,0 +1,7 @@
|
||||
import type { PluginInput } from "@opencode-ai/plugin";
|
||||
import type { PluginConfig } from "../types";
|
||||
export declare function createPreCompactHandler(ctx: PluginInput, config: PluginConfig): (input: {
|
||||
sessionID: string;
|
||||
}, output: {
|
||||
context: string[];
|
||||
}) => Promise<void>;
|
||||
@@ -0,0 +1,8 @@
|
||||
import type { PluginInput } from "@opencode-ai/plugin";
|
||||
import type { PluginConfig } from "../types";
|
||||
export declare function createSessionEventHandler(ctx: PluginInput, config: PluginConfig): (input: {
|
||||
event: {
|
||||
type: string;
|
||||
properties?: unknown;
|
||||
};
|
||||
}) => Promise<void>;
|
||||
@@ -0,0 +1,11 @@
|
||||
import type { PluginInput } from "@opencode-ai/plugin";
|
||||
import type { PluginConfig } from "../types";
|
||||
export declare function createToolExecuteAfterHandler(ctx: PluginInput, config: PluginConfig): (input: {
|
||||
tool: string;
|
||||
sessionID: string;
|
||||
callID: string;
|
||||
}, output: {
|
||||
title: string;
|
||||
output: string;
|
||||
metadata: unknown;
|
||||
} | undefined) => Promise<void>;
|
||||
@@ -0,0 +1,9 @@
|
||||
import type { PluginInput } from "@opencode-ai/plugin";
|
||||
import type { PluginConfig } from "../types";
|
||||
export declare function createToolExecuteBeforeHandler(ctx: PluginInput, config: PluginConfig): (input: {
|
||||
tool: string;
|
||||
sessionID: string;
|
||||
callID: string;
|
||||
}, output: {
|
||||
args: Record<string, unknown>;
|
||||
}) => Promise<void>;
|
||||
Reference in New Issue
Block a user