feat(ptc): expose per-program timeout and sandbox approval controls

This commit is contained in:
Tianyi Cui committed 2026-09-12 15:03:02 +08:00
1 parent c5de252f8c
commit a248cc4e64
5 files changed
+234 -5

No files matched your search

@@ -93,6 +93,10 @@ export class NodeCodeRuntime extends CodeRuntime {
override get sandboxMode(): SandboxMode { return this.ctx.sandboxPolicy.defaultMode }
override get timeout(): { defaultMs: number; maxMs: number } {
return { defaultMs: Math.min(this.config.timeoutMs, this.config.maxTimeoutMs), maxMs: this.config.maxTimeoutMs }
}
/**
* Resolve an execution under explicit or deployment policy.
* @param request - Program, bindings, optional cwd/deadline, and resolved authority.