Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
23 changes: 12 additions & 11 deletions examples/workspaces/file-source-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand All @@ -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

Expand Down
Loading