Willie
4c6d152abf
refactor(uninstall): run the CLI and dashboard through one operation
...
The uninstall sequence (move-out check, dirty check, move to trash,
.gitignore cleanup, metadata prune) lived in the CLI and in three
dashboard handlers, and the copies had drifted: three different prune
rule sets, no dirty check on DELETE /api/repos, and no metadata prune
at all on DELETE /api/resources, which left the removed skill's entry
and target overrides in .metadata.json.
internal/uninstall now owns the sequence for resolved items. Callers
keep name resolution, prompts, output, HTTP status and oplog.
MetadataStore.RemoveByNames is the single prune rule set: an entry goes
when it is a removed path or lies below one, by key or by Group, plus
the tracked legacy group of a top-level repo.
Behaviour changes, all intended:
- DELETE /api/repos/{name} refuses a dirty tracked repo, or one whose
git status cannot be read, with 409 unless ?force=true.
- DELETE /api/repos/{name} refuses a followed link whose folder is
itself a skill, like every other uninstall path.
- DELETE /api/resources/{name} prunes the skill's metadata.
- Removing top-level "foo" no longer prunes "frontend/foo" (CLI), and
removing repo "_team" no longer prunes the untracked group "team"
(dashboard batch); both dropped metadata of skills still installed.
Refs #442
2026-10-07 00:13:47 +08:00
..
2026-10-03 23:19:34 +08:00
2026-10-04 22:21:00 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-04-08 21:31:41 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 15:40:18 +08:00
2026-10-03 21:43:35 +08:00
2026-02-25 07:02:54 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +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-10-03 21:43:35 +08:00
2026-02-16 00:08:59 +08:00
2026-03-29 04:59:23 +08:00
2026-10-03 21:43:35 +08:00
2026-10-06 14:18:16 +08:00
2026-05-20 18:34:45 +08:00
2026-02-25 07:02:54 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 15:27:42 +08:00
2026-10-02 03:15:44 +08:00
2026-10-05 14:30:41 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-03-18 22:35:02 +08:00
2026-05-30 19:23:12 +08:00
2026-09-28 15:27:02 +08:00
2026-10-03 21:43:35 +08:00
2026-10-04 14:45:38 +08:00
2026-06-02 18:40:00 +08:00
2026-10-03 21:43:35 +08:00
2026-10-02 02:56:54 +08:00
2026-10-04 03:09:17 +08:00
2026-04-08 17:43:46 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 20:36:39 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-06-01 14:42:24 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-04-08 14:28:57 +08:00
2026-10-03 21:43:35 +08:00
2026-09-30 01:46:27 +08:00
2026-10-03 21:43:35 +08:00
2026-09-21 04:31:22 +08:00
2026-02-18 22:23:50 +08:00
2026-04-08 14:28:57 +08:00
2026-10-03 21:43:35 +08:00
2026-10-02 20:30:27 +08:00
2026-09-21 02:26:55 +08:00
2026-10-03 21:43:35 +08:00
2026-02-25 07:02:54 +08:00
2026-02-24 01:47:38 +08:00
2026-10-03 21:43:35 +08:00
2026-09-28 22:12:09 +08:00
2026-07-15 09:42:47 +08:00
2026-10-06 00:02:28 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-09-21 04:31:22 +08:00
2026-02-25 07:02:54 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 20:36:39 +08:00
2026-10-01 02:24:24 +08:00
2026-10-06 16:08:44 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 20:36:39 +08:00
2026-09-19 03:14:03 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 23:12:35 +08:00
2026-02-24 01:47:38 +08:00
2026-10-03 21:43:35 +08:00
2026-10-04 01:13:56 +08:00
2026-09-21 01:52:34 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-03-26 22:44:44 +08:00
2026-03-02 02:23:50 +08:00
2026-09-28 22:08:16 +08:00
2026-04-13 16:00:18 +08:00
2026-04-23 16:46:53 +08:00
2026-04-29 18:47:05 +08:00
2026-10-04 15:15:43 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 15:40:19 +08:00
2026-10-03 21:43:35 +08:00
2026-03-19 04:16:36 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 15:48:45 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 15:40:18 +08:00
2026-09-21 02:55:18 +08:00
2026-05-05 12:11:06 +08:00
2026-09-29 11:45:48 +08:00
2026-10-03 21:43:35 +08:00
2026-10-02 16:24:03 +08:00
2026-02-20 13:45:52 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-09-28 13:56:59 +08:00
2026-06-11 15:32:28 +08:00
2026-10-03 21:43:35 +08:00
2026-03-04 12:16:32 +08:00
2026-02-16 00:08:59 +08:00
2026-09-22 19:08:28 +08:00
2026-10-05 23:46:02 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-07 00:13:47 +08:00
2026-10-03 21:43:35 +08:00
2026-02-21 06:07:35 +08:00
2026-10-05 15:42:01 +08:00
2026-02-23 04:18:01 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-09-05 12:07:00 +08:00
2026-10-03 21:43:35 +08:00