improves block functionality

adds cli compatible prompts/logs
adds logfile function for debug
adds multiselect support
new fieldRename
adds listFieldNames
This commit is contained in:
2025-04-30 01:17:45 -06:00
parent 2634f40f2b
commit 9535222fb7
14 changed files with 623 additions and 70 deletions

View File

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