feat(resource): add fs-mount and fs-directory types

This commit is contained in:
2026-02-17 09:00:18 +00:00
parent 02d384d209
commit 093204a703
11 changed files with 658 additions and 24 deletions
+9 -2
View File
@@ -10,8 +10,15 @@ cli_args:
type: path
required: true
description: "Path to the directory"
parent_types: ["git-checkout", "fs-directory"]
child_types: ["fs-directory", "fs-file"]
parent_types: ["git-checkout", "fs-directory", "fs-mount"]
child_types: ["fs-directory", "fs-file", "fs-symlink", "fs-hardlink"]
auto_discovery:
enabled: true
rules:
- type: fs-directory
pattern: "*/"
- type: fs-file
pattern: "*"
capabilities:
read: true
write: true
+16
View File
@@ -0,0 +1,16 @@
schema_version: "1.0"
name: fs-file
description: "A regular file on the local filesystem"
resource_kind: physical
sandbox_strategy: copy_on_write
user_addable: false
built_in: true
cli_args: []
parent_types: ["fs-directory"]
child_types: []
capabilities:
read: true
write: true
sandbox: false
checkpoint: false
handler: "cleveragents.resource.handlers.fs_file"
+25
View File
@@ -0,0 +1,25 @@
schema_version: "1.0"
name: fs-mount
description: "A physical mount point on the local system"
resource_kind: physical
sandbox_strategy: copy_on_write
user_addable: true
built_in: true
cli_args:
- name: path
type: path
required: true
description: "Path to the mount point"
parent_types: []
child_types: ["fs-directory"]
auto_discovery:
enabled: true
rules:
- type: fs-directory
pattern: "/"
capabilities:
read: true
write: true
sandbox: true
checkpoint: false
handler: "cleveragents.resource.handlers.fs_mount"
+3 -3
View File
@@ -15,14 +15,14 @@ cli_args:
required: false
description: "Branch to checkout (default: current)"
parent_types: []
child_types: ["fs-directory", "fs-file"]
child_types: ["git", "fs-directory"]
auto_discovery:
enabled: true
rules:
- type: git
pattern: ".git"
- type: fs-directory
pattern: "**/"
- type: fs-file
pattern: "**/*"
capabilities:
read: true
write: true