feat: file system access, behind a path policy and an approval (#25)

This commit was merged in pull request #25.
This commit is contained in:
2026-10-07 09:04:05 +00:00
parent 34c4383428
commit 2adc6d74b5
18 changed files with 5481 additions and 38 deletions
+4
View File
@@ -249,6 +249,10 @@ export async function runAgent(options: AgentOptions): Promise<AgentResult> {
now: options.toolContext.now,
signal: options.signal,
sources,
// The policy and the ledger travel with the turn, so a second write to a path
// the user already approved does not ask again, and a new question starts
// asking from the beginning.
files: options.toolContext.files,
});
const record: ToolCallRecord = {