Problem: Virtual paths like qmd://journals/ were rejected as invalid Changes: - Updated parseVirtualPath() regex to make path optional: /^qmd:\/\/([^\/]+)\/?(.*)$/ - Now supports: qmd://name, qmd://name/, qmd://name/path - Empty path represents collection root context - Improved help message with collection root example - Better output message showing "(collection root)" for clarity - Updated CLAUDE.md documentation Test cases verified: ✓ qmd context add qmd://journals/ "..." (with trailing slash) ✓ qmd context add qmd://journals "..." (without trailing slash) ✓ qmd context add qmd://journals/2024 "..." (with specific path) Fixes issue where users couldn't add context to entire collections 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli.test.ts | ||
| context-ops.ts | ||
| formatter.ts | ||
| llm.test.ts | ||
| llm.ts | ||
| mcp.test.ts | ||
| mcp.ts | ||
| qmd.ts | ||
| store.test.ts | ||
| store.ts | ||