You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the file-upload workspace feature; keep namespace discovery (#14)
The namespace file-workspace was a generic base64 blob store (upload/list/
delete files under a server root) — a redundant ingestion path next to local
`ccg build` and webhook clone/pull, and off the project's purpose (annotation +
graph + search for code context). Drop it, but keep namespace *discovery*.
- delete internal/namespacefs (~500 LOC: upload/list/delete/write machinery)
- remove 5 MCP tools: upload_file, upload_files, list_files, delete_file,
delete_namespace (24 -> ... net 21 with the reworked tool below)
- rework list_namespaces to be graph-backed: distinct namespaces with
per-namespace node counts, paginated, cross-namespace; registered under the
query tool group so callers can scope searches to other namespaces
- relocate the namespace path-safety helpers into internal/mcp/namespace_paths.go
(used by RAG doc reads), rewired onto pathutil.ValidateNamespacePath +
safepath.EnsureNoSymlinkInPath; validation logic is unchanged
- move the namespace-name/path validator to internal/pathutil; wikiserver uses it
- sweep docs, skills, AGENTS.md, and the integration script (drop the file-upload
phases; the MCP build phase relied on upload and is covered by the webhook
clone->build pipeline)
Path-traversal and symlink-escape checks are preserved verbatim (independently
reviewed). Net -2235 lines.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments