forked from HAL9000/cleveragents-core
e2f90ffcd5
Add 11 deferred physical resource types covering the git object taxonomy (git, git-remote, git-branch, git-tag, git-commit, git-tree, git-tree-entry, git-stash, git-submodule) and filesystem link types (fs-symlink, fs-hardlink). - YAML configs under examples/resource-types/ - Bootstrap registration via _resource_registry_physical.py module - Auto-discovery rules with bounded scan_depth (1-2) for git object graph - fs-directory scan_depth=1 (immediate children only) - git-branch scan_depth=1 (single HEAD), git-tree scan_depth=2 (capped) - Updated fs-directory child_types/parent_types/auto_discovery - Updated git-checkout child_types to include git - Fixed git-tag child_types to include git-commit (DAG consistency) - Behave tests, Robot tests, ASV benchmarks - Documentation in docs/reference/resource_types_builtin.md ISSUES CLOSED: #330
26 lines
652 B
YAML
26 lines
652 B
YAML
schema_version: "1.0"
|
|
name: git-tree
|
|
description: "A tree object — a directory listing at a specific commit"
|
|
resource_kind: physical
|
|
sandbox_strategy: none
|
|
user_addable: false
|
|
built_in: true
|
|
cli_args: []
|
|
parent_types: ["git-commit", "git-tree"]
|
|
child_types: ["git-tree-entry", "git-tree"]
|
|
auto_discovery:
|
|
enabled: true
|
|
scan_depth: 2
|
|
# Capped at 2 -- discovery engine must enforce global max_depth
|
|
rules:
|
|
- type: git-tree-entry
|
|
pattern: "blob *"
|
|
- type: git-tree
|
|
pattern: "tree *"
|
|
capabilities:
|
|
read: true
|
|
write: false
|
|
sandbox: false
|
|
checkpoint: false
|
|
handler: "cleveragents.resource.handlers.git:GitObjectHandler"
|