fix: tighten native image injection (#1098)

Thanks @tyler6204.

Co-authored-by: Tyler Yust <tyler6204@users.noreply.github.com>
This commit is contained in:
Peter Steinberger
2026-01-18 08:06:50 +00:00
parent ddcc05f5f4
commit 8b57f519c3
7 changed files with 81 additions and 119 deletions

View File

@@ -120,6 +120,21 @@ export type ToolPolicyConfig = {
profile?: ToolProfileId;
};
export type ExecToolConfig = {
host?: "sandbox" | "gateway" | "node";
security?: "deny" | "allowlist" | "full";
ask?: "off" | "on-miss" | "always";
node?: string;
backgroundMs?: number;
timeoutSec?: number;
cleanupMs?: number;
notifyOnExit?: boolean;
applyPatch?: {
enabled?: boolean;
allowModels?: string[];
};
};
export type AgentToolsConfig = {
/** Base tool profile applied before allow/deny lists. */
profile?: ToolProfileId;