feat: v0.3.2 — delete_project tool
Closes the project lifecycle (create → start/stop/redeploy → delete). The tool calls SYNO.Docker.Project/delete with the UUID JSON-encoded as the `id` parameter (per DSM convention) and removes only the Container Manager registration — the project folder and compose file remain on the NAS. This mirrors DSM's own "Delete project" behaviour, not a bug; the success message states the folder was preserved so the user is not surprised. Safety: - Project-name validation runs before any I/O. - A `_find_project` pre-flight returns "not found" with a clear message rather than letting DSM reject an unknown UUID. - No automatic stop. If the project is RUNNING and DSM rejects the delete, the response tells the user to `stop_project` first rather than silently halting containers under the guise of a "delete" call. - Requires confirmed=True; preview shows name, UUID, status, full path, and share path so the user can verify before deleting. Tests cover preview-only, not-found, invalid-name, happy path (verifies the UUID is JSON-encoded in the delete call), and the running-project rejection path that surfaces the stop_project hint. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+24
-1
@@ -2,7 +2,30 @@
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
|
||||
## [0.3.1] - 2026-05-18
|
||||
## [0.3.2] - 2026-05-18
|
||||
|
||||
### Added
|
||||
|
||||
- `delete_project` — remove a Container Manager project's
|
||||
registration via `SYNO.Docker.Project/delete` with the UUID
|
||||
JSON-encoded as the `id` parameter (per DSM convention).
|
||||
Mirrors the "Delete project" action in Container Manager: only the
|
||||
registration is removed; the project folder and compose file remain
|
||||
on the NAS. The success message explicitly states the folder was
|
||||
preserved so the user is not surprised. Closes the project
|
||||
lifecycle (create → start/stop/redeploy → delete).
|
||||
Safety:
|
||||
- Project-name validation runs before any I/O.
|
||||
- A `_find_project` pre-flight returns "not found" with a clear
|
||||
message rather than letting DSM reject an unknown UUID.
|
||||
- The tool deliberately does NOT auto-stop a running project. If
|
||||
DSM rejects the delete on a `RUNNING` project, the response tells
|
||||
the user to `stop_project` first rather than silently halting
|
||||
containers under the guise of a "delete" call.
|
||||
- Requires `confirmed=True`; the preview shows name, UUID, status,
|
||||
full path, and share path so the user can verify before deleting.
|
||||
|
||||
|
||||
|
||||
### Added
|
||||
|
||||
|
||||
Reference in New Issue
Block a user