Commit 1fb356f
feat(evolve-lite): unify sharing into scoped repos list (#217)
Collapse public_repo and subscriptions into a single repos: list where
each entry has scope: read (subscribe only) or scope: write (publish
target, also synced) — closes #217.
Update publish / subscribe / sync / unsubscribe / recall skills for both
Claude and Codex plugins to operate on the unified model. Write-scope
repos double as publish targets and sync sources, so co-writers see
each other's publishes through normal sync.
Add helpers in lib/config.py (normalize_repos, read_repos, write_repos,
set_repos, get_repo, is_valid_repo_name) and broaden tests across
tests/platform_integrations/.
Sync becomes scope-aware: read = fetch + reset --hard (clobber local),
write = fetch + rebase (preserve local unpushed publishes). Symlink
filtering moves from sync to retrieve, since sync no longer mirrors and
just maintains the clone. Publish requires the write-scope clone to
already exist (subscribe/sync own that step) and writes into the
clone's working tree; the SKILL.md drives the commit/push flow,
including conflict-recovery via rebase + push-with-retry. Unsubscribe
warns when removing a write-scope repo (in SKILL.md).
CodeRabbit review pass:
- _coerce_repo strips and warns on unknown scope values
- publish.py uses tz-aware datetime.now(datetime.timezone.utc)
- claude sync.py: --quiet no longer doubles as a session-start gate;
failure branches set any_changes = True so summaries surface
- publish SKILL.md hardens git clone with the -- separator
- publish SKILL.md stages only the published files (git add --
{guideline_paths}), not the whole clone
- codex publish SKILL.md: fix bare git -C {repo} in the conflict-diff
command to use the full clone path
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7364300 commit 1fb356f
31 files changed
Lines changed: 1557 additions & 710 deletions
File tree
- platform-integrations
- claude/plugins/evolve-lite
- lib
- skills
- publish
- scripts
- recall
- scripts
- subscribe
- scripts
- sync
- scripts
- unsubscribe
- scripts
- codex/plugins/evolve-lite
- skills
- publish
- scripts
- recall
- scripts
- subscribe
- scripts
- sync
- scripts
- unsubscribe
- scripts
- tests/platform_integrations
Lines changed: 78 additions & 40 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
64 | | - | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
68 | 72 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
73 | 84 | | |
74 | 85 | | |
75 | 86 | | |
76 | 87 | | |
77 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
78 | 91 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 92 | + | |
| 93 | + | |
86 | 94 | | |
87 | | - | |
| 95 | + | |
88 | 96 | | |
89 | | - | |
90 | | - | |
91 | | - | |
| 97 | + | |
| 98 | + | |
92 | 99 | | |
93 | 100 | | |
94 | 101 | | |
95 | 102 | | |
96 | 103 | | |
| 104 | + | |
97 | 105 | | |
98 | 106 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
103 | 110 | | |
104 | | - | |
| 111 | + | |
105 | 112 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 113 | + | |
| 114 | + | |
110 | 115 | | |
111 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
112 | 122 | | |
113 | | - | |
| 123 | + | |
| 124 | + | |
114 | 125 | | |
115 | | - | |
| 126 | + | |
116 | 127 | | |
117 | | - | |
| 128 | + | |
| 129 | + | |
118 | 130 | | |
119 | 131 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 132 | + | |
| 133 | + | |
124 | 134 | | |
125 | 135 | | |
126 | | - | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
127 | 149 | | |
128 | 150 | | |
129 | 151 | | |
130 | 152 | | |
131 | 153 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 154 | | |
136 | 155 | | |
137 | 156 | | |
138 | 157 | | |
139 | | - | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
140 | 162 | | |
141 | 163 | | |
142 | 164 | | |
| |||
232 | 254 | | |
233 | 255 | | |
234 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
235 | 273 | | |
236 | 274 | | |
237 | 275 | | |
| |||
Lines changed: 134 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
9 | 15 | | |
10 | 16 | | |
11 | 17 | | |
| |||
316 | 322 | | |
317 | 323 | | |
318 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
319 | 433 | | |
320 | 434 | | |
321 | 435 | | |
322 | 436 | | |
323 | 437 | | |
324 | 438 | | |
325 | 439 | | |
326 | | - | |
327 | | - | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
328 | 456 | | |
329 | 457 | | |
330 | 458 | | |
331 | 459 | | |
332 | 460 | | |
333 | 461 | | |
334 | | - | |
335 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
336 | 466 | | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
0 commit comments