30 lines
722 B
TypeScript
30 lines
722 B
TypeScript
import type { PluginInput } from "@opencode-ai/plugin";
|
|
export type Client = PluginInput["client"] & {
|
|
session: {
|
|
promptAsync: (opts: {
|
|
path: {
|
|
id: string;
|
|
};
|
|
body: {
|
|
parts: Array<{
|
|
type: string;
|
|
text: string;
|
|
}>;
|
|
};
|
|
query: {
|
|
directory: string;
|
|
};
|
|
}) => Promise<unknown>;
|
|
};
|
|
tui: {
|
|
showToast: (opts: {
|
|
body: {
|
|
title: string;
|
|
message: string;
|
|
variant: string;
|
|
duration: number;
|
|
};
|
|
}) => Promise<unknown>;
|
|
};
|
|
};
|