diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-11 22:45:41 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-11 22:45:41 +0200 |
| commit | 95af492ff0ebcc61c5ffaad978ec2ab2b4510a64 (patch) | |
| tree | 1875b63928c269c95592a09677aa7f9c4dd5e35a /internal/promptstore/store_test.go | |
| parent | 36d7c0b01e9e5a01f079784e4bf9f052c974c91e (diff) | |
feat: add delete_prompt built-in meta-prompt
Adds a third built-in meta-prompt for interactively deleting custom prompts
with confirmation. This completes the prompt management trilogy (save, update,
delete).
Changes:
- Add delete_prompt meta-prompt with prompt_name argument
- Interactive workflow: show prompt → confirm → delete via delete_prompt tool
- Update test to expect 3 built-in prompts (was 2)
- Includes safety notes about built-in prompts and backups
The meta-prompt ensures users see what they're deleting and must explicitly
confirm before the delete_prompt tool is called.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'internal/promptstore/store_test.go')
| -rw-r--r-- | internal/promptstore/store_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/promptstore/store_test.go b/internal/promptstore/store_test.go index 6e74b17..2c95ad7 100644 --- a/internal/promptstore/store_test.go +++ b/internal/promptstore/store_test.go @@ -84,9 +84,9 @@ func TestJSONLStore_List(t *testing.T) { t.Fatalf("List() error = %v", err) } - // Should have all prompts (7 user + 2 built-ins) - if len(prompts) != 9 { - t.Errorf("List() got %d prompts, want 9 (7 user + 2 built-ins)", len(prompts)) + // Should have all prompts (7 user + 3 built-ins) + if len(prompts) != 10 { + t.Errorf("List() got %d prompts, want 10 (7 user + 3 built-ins)", len(prompts)) } // No cursor for full list |
