Willie
081348d39b
refactor(collect): unify skills/agents flow with collectPlan + generics
Replace duplicated runCollectSkills/runCollectAgents (~110 lines of 95%
identical code) with a single runCollectPlan function driven by a
collectPlan struct + toCollectResources[T] generic converter.
Key changes:
- Add collectPlan/collectResources types and runCollectPlan unified flow
- Add toCollectResources[T] generic to bridge typed slices into the
shared pipeline (scan → display → dry-run → confirm → pull → render)
- Replace fragile err.Error() == "already exists in source" string
matching with ErrAlreadyExists sentinel error + errors.Is()
- Move os.MkdirAll from per-agent PullAgent to PullAgents (call once)
- Add FindLocalAgents/PullAgent/PullAgents to match FindLocalSkills API
- Add target selection, --force/--dry-run/--json support for agent collect
- Add integration tests for agent collect (target filter, dry-run, force,
JSON, oplog, project mode)
- Update collect.md, agents.md, ui.md docs for agent collect support
2026-04-09 00:36:39 +08:00
..
2026-04-07 18:27:08 +08:00
2026-04-08 21:31:41 +08:00
2026-04-09 00:36:39 +08:00
2026-04-08 21:31:41 +08:00
2026-04-09 00:36:39 +08:00
2026-04-09 00:36:39 +08:00
2026-04-08 21:31:41 +08:00
2026-03-26 23:47:28 +08:00
2026-04-08 17:43:46 +08:00
2026-02-25 07:02:54 +08:00
2026-04-08 17:43:46 +08:00
2026-03-02 02:23:50 +08:00
2026-02-21 06:07:35 +08:00
2026-02-25 07:02:54 +08:00
2026-02-26 22:27:23 +08:00
2026-04-08 14:28:57 +08:00
2026-02-16 00:08:59 +08:00
2026-03-29 04:59:23 +08:00
2026-02-25 07:02:54 +08:00
2026-03-02 02:23:50 +08:00
2026-04-08 17:43:46 +08:00
2026-03-29 04:59:23 +08:00
2026-03-18 22:35:02 +08:00
2026-04-07 22:05:34 +08:00
2026-04-08 17:43:46 +08:00
2026-02-11 03:40:54 +08:00
2026-02-13 14:21:37 +08:00
2026-02-13 14:21:37 +08:00
2026-03-17 04:48:42 +08:00
2026-03-17 04:48:42 +08:00
2026-04-08 21:31:41 +08:00
2026-02-23 04:18:01 +08:00
2026-02-21 06:07:35 +08:00
2026-04-08 14:28:57 +08:00
2026-04-08 14:28:57 +08:00
2026-02-18 22:23:50 +08:00
2026-03-18 00:19:30 +08:00
2026-04-08 14:28:57 +08:00
2026-04-08 16:35:40 +08:00
2026-02-18 22:23:50 +08:00
2026-04-08 14:28:57 +08:00
2026-04-08 17:43:46 +08:00
2026-04-08 14:28:57 +08:00
2026-02-24 01:47:38 +08:00
2026-02-25 07:02:54 +08:00
2026-02-24 01:47:38 +08:00
2026-04-09 00:36:39 +08:00
2026-04-08 17:43:46 +08:00
2026-04-08 14:28:57 +08:00
2026-02-25 07:02:54 +08:00
2026-04-07 18:05:40 +08:00
2026-02-16 00:08:59 +08:00
2026-02-24 01:47:38 +08:00
2026-03-18 22:35:02 +08:00
2026-02-22 15:13:10 +08:00
2026-02-21 21:12:51 +08:00
2026-03-26 22:44:44 +08:00
2026-03-02 02:23:50 +08:00
2026-04-08 15:00:22 +08:00
2026-03-06 02:15:36 +08:00
2026-02-11 03:40:54 +08:00
2026-03-18 22:35:02 +08:00
2026-02-16 00:08:59 +08:00
2026-03-18 00:19:30 +08:00
2026-04-07 20:22:30 +08:00
2026-03-19 04:16:36 +08:00
2026-02-27 05:39:49 +08:00
2026-04-08 18:35:36 +08:00
2026-04-08 14:28:57 +08:00
2026-02-26 22:27:23 +08:00
2026-04-08 17:43:46 +08:00
2026-04-01 00:32:49 +08:00
2026-02-20 13:45:52 +08:00
2026-04-06 17:28:10 +08:00
2026-02-16 00:08:59 +08:00
2026-02-21 06:07:35 +08:00
2026-03-17 04:48:42 +08:00
2026-03-02 02:23:50 +08:00
2026-03-04 12:16:32 +08:00
2026-02-16 00:08:59 +08:00
2026-03-18 22:35:02 +08:00
2026-04-08 17:43:46 +08:00
2026-04-08 17:43:46 +08:00
2026-04-08 17:43:46 +08:00
2026-02-21 06:07:35 +08:00
2026-02-23 04:18:01 +08:00
2026-04-08 14:28:57 +08:00
2026-04-08 14:28:57 +08:00
2026-04-08 14:28:57 +08:00
2026-03-25 21:14:16 +08:00
2026-02-11 03:40:54 +08:00
2026-02-16 10:41:14 +08:00