v1 ready for publish

This commit is contained in:
2025-05-06 17:53:17 -06:00
parent 03a1e3ed21
commit 6346b28581
11 changed files with 53 additions and 28 deletions

View File

@@ -1,15 +1,13 @@
import type { TerminalBlock } from "./cli/TerminalLayout.ts";
declare global {
type ToolFunc<T extends unknown[]> = (...args: T) => Promise<void>;
interface ITool {
name: string;
description: string;
run: ToolFunc<any[]>;
help?: () => Promise<void> | void;
done?: () => Promise<void> | void;
setBlock?: (block: TerminalBlock) => void;
}
type callback = (...args: any[]) => any;
export type ToolFunc<T extends unknown[]> = (...args: T) => Promise<void>;
export interface ITool {
name: string;
description: string;
run: ToolFunc<any[]>;
help?: () => Promise<void> | void;
done?: () => Promise<void> | void;
setBlock?: (block: TerminalBlock) => void;
}
export type callback = (...args: any[]) => any;