feat(system-prompt): cache dynamic policy context
This commit is contained in:
45 files changed
+722
-374
No files matched your search
@@ -376,6 +376,7 @@ export function apply(ctx: Context, config: Config = {}): void {
|
||||
if (defaultMode !== undefined && sandboxPolicy === undefined) {
|
||||
throw new Error('tool-bash: the mounted bash executor confines but ctx.sandboxPolicy is missing')
|
||||
}
|
||||
if (escalationModes.length > 0) sandboxPolicy?.registerEscalatableFamily('bash')
|
||||
|
||||
/** Resolve the complete standing policy for this call when a confining executor is mounted. */
|
||||
const resolveSandboxPolicy = (exec: ToolExecution): SandboxExecutionPolicy | undefined =>
|
||||
|
||||
Reference in New Issue
Block a user