- Removed Supabase-related SQL schema and configuration options from the init command.
- Updated profile command to reflect changes in storage profile handling.
- Refactored search command to use new profile management.
- Removed SupabaseProvider and related JWT parsing functionality.
- Updated registry management to eliminate legacy Supabase profiles.
- Introduced new profile validation and resolution logic.
- Updated tests to remove Supabase-related cases and added tests for new profile functionality.
- Updated wiki initialization command to use `wiki init` with backend options.
- Introduced `resolvedGitToken` function to prioritize environment variables for GitHub PAT.
- Added `renameCurrentBranchToMain` function to standardize branch naming for GitHub Pages.
- Changed default repository visibility to public for easier GitHub Pages usage.
- Refactored Git provider creation to utilize resolved Git token.
- Modified template generation to include new environment variables and improved styling.
- Added tests for new functionalities including token resolution and branch renaming.
- Introduced `--profile` option for `wiki init` and `wiki profile` commands to manage storage profiles.
- Updated `GitProvider` to support a `wikiDataRoot` for markdown I/O.
- Enhanced `SupabaseProvider` to handle user-specific data isolation using JWTs.
- Merged legacy `supabaseProfiles` into `storageProfiles` in the registry.
- Added functions to validate and resolve storage profiles.
- Implemented tests for new profile management features and Supabase interactions.
- Deleted push, repo, sync, and auth commands as they are no longer needed.
- Updated the use command to handle wiki selection without relying on the picker.
- Refactored GitProvider to handle automatic commits and push logic.
- Simplified GitHub API interactions by removing unnecessary functions and parameters.
- Updated types to reflect changes in configuration and removed unused imports.
- Cleaned up tests related to removed functionalities.
- Introduced a new StorageProvider interface to abstract storage operations.
- Implemented createProvider function to create a filesystem-based storage provider.
- Updated commands to use the new provider for reading, writing, and managing pages.
- Refactored IndexManager and LogManager to work with the StorageProvider.
- Modified resolveWiki function to return a context with the provider.
- Added requireFilesystem utility to enforce filesystem backend requirements in commands.
- Updated tests to validate the new storage provider functionality and ensure compatibility.
- Enhance git.test.ts with tests for commit messages with special characters, log limits, diff outputs, branch retrieval, remote addition, file deletion staging, conflict detection, and file-specific logs.
- Introduce github.test.ts to validate GitHub API functions including repository listing, filtering, error handling, and repository creation with various scenarios.
- Expand index-manager.test.ts to cover entry addition, duplicate handling, reading from missing files, entry removal, and case-insensitive category matching.
- Update links.test.ts to ensure proper link resolution, handling of self-referential links, and multiple links to the same target.
- Add lint.test.ts for frontmatter edge cases, including handling empty frontmatter, invalid YAML, and ensuring parseable output.
- Enhance log-manager.test.ts with tests for empty logs, filtering by type and count, log creation, timestamp format, and preserving entry formats.
- Extend read-write.test.ts to skip certain directories, handle deeply nested paths, and ensure consistent path formatting across platforms.
- Improve search.test.ts to escape regex characters, filter by directory, manage snippet generation, enforce default limits, and handle searches in empty wikis.
Add GitHub integration for backup and multi-device sync:
- wiki auth login/status/logout with PAT-based authentication
- wiki repo list/create/clone/connect for GitHub repo management
- wiki push/pull/sync for remote operations
- GitHub API client and token storage
- 6 new tests (93 total)
All 5 phases complete.
Add wiki health checks and link graph navigation:
- wiki lint with broken links, orphans, frontmatter, index consistency
- wiki links/backlinks for navigating the wikilink graph
- wiki orphans to find unlinked pages
- wiki status with page counts, link stats, recent activity, git info
- Frontmatter parser and wikilink resolution engine
- 19 new tests (87 total)
Add bookkeeping and git operations:
- wiki index show/add/remove with auto-section detection
- wiki log show/append with --last and --type filters
- wiki commit with auto-message from last log entry
- wiki history with per-file support, wiki diff
- IndexManager and LogManager in src/lib/
- 22 new tests (68 total)
Add core page operations and text search:
- wiki read/write/append for page CRUD via stdin/stdout
- wiki list with --tree and --json output
- wiki search with term-frequency scoring, snippets, --all flag
- WikiManager class and search engine in src/lib/
- 23 new tests (46 total)
Implement llmwiki-cli v0.1.0 — a CLI tool for LLM agents to build and
maintain personal knowledge bases via pure filesystem + git operations.
Phase 1 includes:
- wiki init: create wiki with directory structure, SCHEMA.md, git init
- wiki registry: list all registered wikis
- wiki use: switch active wiki
- Global registry at ~/.config/llmwiki/
- Wiki resolution chain (--wiki flag > cwd > walk up > default)
- 23 tests passing
- Published to npm as llmwiki-cli