You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+27-1Lines changed: 27 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,6 +99,32 @@ Runs the engine's local validators against every YAML/MD file in the org without
99
99
- End-of-pull summary with counts per direction
100
100
- A hard gate (`--resolve` flag) on 3-way conflicts before they silently lose data
101
101
102
+
When multiple resources are `both-diverged`, you can mix decisions in one pull:
103
+
104
+
```bash
105
+
# Global mode for every both-diverged resource.
106
+
npm run pull -- <org> --resolve=ours
107
+
npm run pull -- <org> --resolve=theirs
108
+
npm run pull -- <org> --resolve=fail
109
+
110
+
# Per-resource modes in one command.
111
+
npm run pull -- <org> \
112
+
--resolve=assistants/intake=ours \
113
+
--resolve=squads/main=theirs
114
+
115
+
# Path-level override: choose a resource base, then override selected paths.
116
+
# This keeps the git copy of the assistant except for dashboard voice settings.
117
+
npm run pull -- <org> \
118
+
--resolve=assistants/intake=ours \
119
+
--resolve-path=assistants/intake:voice=theirs
120
+
```
121
+
122
+
Path rules use dot paths, with numeric array indexes supported either as
123
+
`members.0.assistantId` or `members[0].assistantId`. Assistant markdown bodies
124
+
map to `model.messages` because pull parses `.md` resources into the same
125
+
object shape used for hashing. A path-level rule requires a per-resource or
126
+
global `ours` / `theirs` base so unspecified paths have an explicit owner.
127
+
102
128
`--force` skips all of this and just overwrites local with dashboard. Use it ONLY when you literally need to nuke local and re-materialize dashboard truth (rare). Plain pull is the DEFAULT for both humans and agents; `--force` is the escape hatch.
103
129
104
130
**Pull-output icon legend.** Distinct semantics in a single pulled-resource line:
@@ -110,6 +136,7 @@ Runs the engine's local validators against every YAML/MD file in the org without
110
136
|`✏️`| Locally modified file detected by git, preserved as-is |
111
137
|`⬆️`|`local-ahead` — local has unpushed edits, needs to flow UP to dashboard (preserved) |
112
138
|`⬇️`|`--resolve=theirs` — overwrote local with dashboard (flowed DOWN) |
139
+
|`🔀`| Mixed path resolution — one resource merged dashboard and git-selected paths |
0 commit comments