Skip to content

Delete command#4

Merged
thrialectics merged 8 commits into
mainfrom
delete-command
Mar 24, 2026
Merged

Delete command#4
thrialectics merged 8 commits into
mainfrom
delete-command

Conversation

@thrialectics
Copy link
Copy Markdown
Owner

No description provided.

  Two functions with the same name returned different paths (meta index vs semantic index).
  Renamed for clarity: storage version → getMetaIndexPath, embeddings → getSemanticIndexPath.
  MCP inline parsing was missing toLowerCase(), causing tags to be stored
  with inconsistent casing vs CLI. Now uses shared parseTags() from core.
  Creates src/core/operations/delete.ts following the established operation
  pattern. Handles validation, existence check, bidirectional related-thread
  reference cleanup (fixes stale references bug), thread file deletion, and
  non-fatal semantic index cleanup. Returns detailed DeleteResult stats.
  Exposes thread deletion as an MCP tool. Calls the deleteThread core
  operation and returns a summary of what was cleaned up (snippets, file
  links, related threads, semantic entries). Description explicitly marks
  the operation as permanent and irreversible.
  Replaces direct storage calls and inline semantic cleanup with a single
  call to deleteThread(). CLI now only handles confirmation prompting and
  output formatting. Gets related-thread cleanup for free from the operation.
@thrialectics thrialectics merged commit cbfbe7d into main Mar 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant