mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 21:58:26 +00:00
refactor(agents): centralize sandbox media and fs policy helpers
This commit is contained in:
9
src/agents/tool-fs-policy.ts
Normal file
9
src/agents/tool-fs-policy.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export type ToolFsPolicy = {
|
||||
workspaceOnly: boolean;
|
||||
};
|
||||
|
||||
export function createToolFsPolicy(params: { workspaceOnly?: boolean }): ToolFsPolicy {
|
||||
return {
|
||||
workspaceOnly: params.workspaceOnly === true,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user