diff --git a/examples/workspaces/team-config/rules.md b/examples/team-config/rules.md similarity index 100% rename from examples/workspaces/team-config/rules.md rename to examples/team-config/rules.md diff --git a/examples/workspaces/file-source-sync/.allagents/workspace.yaml b/examples/workspaces/file-source-sync/.allagents/workspace.yaml index 8a338ab6..8f368bd7 100644 --- a/examples/workspaces/file-source-sync/.allagents/workspace.yaml +++ b/examples/workspaces/file-source-sync/.allagents/workspace.yaml @@ -15,10 +15,10 @@ workspace: - source: config/settings.json dest: settings.json - # File-level source override (sibling directory) + # File-level source override (outside the workspace templates directory) # Paths starting with ../ are resolved from workspace root, not workspace.source - dest: TEAM-RULES.md - source: ../team-config/rules.md + source: ../../team-config/rules.md # GitHub source (always fetched fresh) # - dest: CONTRIB.md diff --git a/examples/workspaces/file-source-sync/README.md b/examples/workspaces/file-source-sync/README.md index b2c651e0..ea703b9e 100644 --- a/examples/workspaces/file-source-sync/README.md +++ b/examples/workspaces/file-source-sync/README.md @@ -5,16 +5,17 @@ This example demonstrates the file-level source sync feature in AllAgents. ## Directory Structure ``` -workspaces/ -├── file-source-sync/ # The workspace -│ ├── .allagents/ -│ │ └── workspace.yaml -│ ├── shared-config/ # Default source (workspace.source) -│ │ ├── AGENTS.md -│ │ └── config/ -│ │ └── settings.json -│ └── README.md -└── team-config/ # Sibling directory for file-level override +examples/ +├── workspaces/ +│ └── file-source-sync/ # The workspace +│ ├── .allagents/ +│ │ └── workspace.yaml +│ ├── shared-config/ # Default source (workspace.source) +│ │ ├── AGENTS.md +│ │ └── config/ +│ │ └── settings.json +│ └── README.md +└── team-config/ # Shared fixture, outside the workspace templates └── rules.md ``` @@ -24,7 +25,7 @@ The `workspace.yaml` demonstrates three source patterns: 1. **String shorthand** - `AGENTS.md` resolves to `shared-config/AGENTS.md` 2. **Relative source** - `source: config/settings.json` resolves to `shared-config/config/settings.json` -3. **File-level override** - `source: ../team-config/rules.md` uses a different directory +3. **File-level override** - `source: ../../team-config/rules.md` uses a shared fixture outside `workspaces/`, resolved from the workspace root ## Running the Example