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-05 14:26:09 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-06 00:00:33 +08:00
2026-10-06 11:05:03 +08:00
2026-10-05 14:53:52 +08:00
2026-03-09 12:47:03 +08:00
2026-10-05 14:26:09 +08:00
2026-10-05 14:45:41 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-03 21:43:35 +08:00
2026-10-06 10:46:37 +08:00
2026-10-04 04:14:47 +08:00
2026-10-06 00:00:33 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-07-30 01:34:52 +08:00
2026-10-06 00:00:33 +08:00
2026-10-05 14:45:58 +08:00
2026-10-05 21:24:56 +08:00
2026-10-06 00:00:33 +08:00
2026-10-04 04:32:45 +08:00
2026-10-04 04:32:45 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 14:45:58 +08:00
2026-10-05 14:45:58 +08:00
2026-10-05 14:45:58 +08:00
2026-10-05 14:11:57 +08:00
2026-10-05 14:11:57 +08:00
2026-10-06 16:08:44 +08:00
2026-10-06 16:08:44 +08:00
2026-10-06 16:08:44 +08:00
2026-10-06 16:08:44 +08:00
2026-10-06 16:08:44 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 01:25:44 +08:00
2026-10-03 01:25:44 +08:00
2026-10-05 15:40:19 +08:00
2026-10-05 15:40:19 +08:00
2026-10-03 21:43:35 +08:00
2026-03-02 02:23:50 +08:00
2026-03-02 02:23:50 +08:00
2026-10-06 14:18:20 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-06 14:18:20 +08:00
2026-10-04 22:28:35 +08:00
2026-05-31 22:49:02 +08:00
2026-05-31 20:53:18 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 12:53:45 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 21:56:01 +08:00
2026-10-03 21:43:35 +08:00
2026-10-06 14:18:20 +08:00
2026-10-05 23:12:35 +08:00
2026-09-05 12:07:00 +08:00
2026-05-30 19:23:12 +08:00
2026-05-30 19:23:12 +08:00
2026-10-05 23:12:35 +08:00
2026-10-05 23:12:35 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-05 23:12:35 +08:00
2026-10-04 04:14:47 +08:00
2026-10-06 10:46:37 +08:00
2026-10-04 04:14:47 +08:00
2026-10-03 21:43:35 +08:00
2026-10-04 10:23:47 +08:00
2026-10-05 23:12:35 +08:00
2026-10-05 23:12:35 +08:00
2026-10-05 23:12:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-06-02 18:40:00 +08:00
2026-10-03 21:43:35 +08:00
2026-10-04 03:09:17 +08:00
2026-10-06 10:58:15 +08:00
2026-10-03 21:43:35 +08:00
2026-03-12 16:45:02 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 23:12:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-06 00:00:33 +08:00
2026-10-05 14:26:09 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-06 10:46:37 +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 14:11:57 +08:00
2026-09-05 12:07:00 +08:00
2026-10-06 00:00:33 +08:00
2026-10-03 21:43:35 +08:00
2026-06-10 22:18:55 +08:00
2026-06-23 18:45:43 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 14:42:09 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-02-26 22:27:23 +08:00
2026-06-29 10:30:11 +08:00
2026-10-03 21:43:35 +08:00
2026-10-06 00:00:33 +08:00
2026-06-14 15:54:25 +08:00
2026-06-14 15:54:25 +08:00
2026-04-08 22:42:35 +08:00
2026-04-09 14:18:28 +08:00
2026-10-06 00:02:28 +08:00
2026-10-05 18:26:12 +08:00
2026-07-30 01:34:52 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-05-30 19:23:12 +08:00
2026-05-30 19:23:12 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-06 00:00:33 +08:00
2026-10-03 21:43:35 +08:00
2026-03-02 02:23:50 +08:00
2026-02-26 22:27:23 +08:00
2026-02-10 02:56:59 +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-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-05 23:12:35 +08:00
2026-10-06 16:16:25 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 23:12:35 +08:00
2026-10-04 04:32:45 +08:00
2026-10-01 02:24:24 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-01 02:24:24 +08:00
2026-10-04 04:14:47 +08:00
2026-10-06 16:16:25 +08:00
2026-09-22 11:21:35 +08:00
2026-10-04 04:14:47 +08:00
2026-10-06 16:08:44 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 23:12:35 +08:00
2026-10-05 23:12:35 +08:00
2026-03-18 22:35:02 +08:00
2026-03-18 22:35:02 +08:00
2026-10-04 04:14:47 +08:00
2026-10-05 23:12:35 +08:00
2026-10-05 20:36:39 +08:00
2026-09-19 03:14:03 +08:00
2026-10-04 04:14:47 +08:00
2026-10-05 23:12:35 +08:00
2026-10-03 21:43:35 +08:00
2026-04-08 18:35:36 +08:00
2026-10-05 14:26:09 +08:00
2026-09-21 04:31:22 +08:00
2026-10-03 18:53:08 +08:00
2026-10-04 01:58:30 +08:00
2026-10-04 01:58:30 +08:00
2026-10-05 14:11:57 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-09-28 22:08:16 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 22:03:47 +08:00
2026-02-21 21:12:51 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-05 23:12:35 +08:00
2026-10-05 18:26:12 +08:00
2026-10-05 18:26:12 +08:00
2026-10-04 22:28:35 +08:00
2026-10-04 22:28:35 +08:00
2026-10-06 14:18:20 +08:00
2026-10-03 21:43:35 +08:00
2026-10-06 14:18:20 +08:00
2026-10-03 21:43:35 +08:00
2026-05-11 21:34:38 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-06 10:46:37 +08:00
2026-10-03 21:43:35 +08:00
2026-02-26 22:27:23 +08:00
2026-10-05 14:26:09 +08:00
2026-10-05 15:48:45 +08:00
2026-10-05 15:48:45 +08:00
2026-10-04 04:14:47 +08:00
2026-10-03 21:43:35 +08:00
2026-04-09 03:50:28 +08:00
2026-10-03 21:43:35 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 23:12:35 +08:00
2026-06-11 15:32:28 +08:00
2026-10-05 15:47:30 +08:00
2026-10-05 15:47:30 +08:00
2026-10-05 15:47:30 +08:00
2026-10-05 15:47:30 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-10-04 04:14:47 +08:00
2026-09-30 01:43:07 +08:00
2026-10-04 04:14:47 +08:00
2026-10-03 21:43:35 +08:00
2026-05-24 01:21:06 +08:00
2026-05-24 01:21:06 +08:00
2026-05-24 01:21:06 +08:00
2026-05-24 01:21:06 +08:00
2026-10-05 23:12:35 +08:00
2026-10-07 00:13:47 +08:00
2026-10-07 00:13:47 +08:00
2026-10-07 00:13:47 +08:00
2026-10-05 14:26:09 +08:00
2026-10-07 00:13:47 +08:00
2026-10-03 21:43:35 +08:00
2026-10-03 21:43:35 +08:00
2026-10-05 14:49:31 +08:00
2026-10-06 00:18:06 +08:00
2026-10-05 14:45:41 +08:00
2026-10-06 00:18:06 +08:00
2026-10-05 18:26:12 +08:00
2026-04-08 15:00:22 +08:00
2026-10-06 00:18:06 +08:00
2026-10-02 22:45:32 +08:00
2026-09-28 01:36:42 +08:00
2026-09-27 02:10:00 +08:00
2026-09-27 02:10:00 +08:00
2026-10-04 14:03:46 +08:00