13 Commits

Author SHA1 Message Date
doum1004
cf0bf05163 Refactor storage backend: Remove Supabase support and related code
- 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.
2026-04-15 15:01:31 -04:00
doum1004
51b4ce6ca7 feat: enhance git integration and improve wiki initialization
- 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.
2026-04-12 23:25:25 -04:00
doum1004
3082a07726 feat: add support for storage profiles in wiki commands and providers
- 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.
2026-04-12 23:01:10 -04:00
doum1004
63de75a13c feat: add GitHub Pages visualization support with scaffolding options for git backend 2026-04-11 01:48:20 -04:00
doum1004
bf2ddb1ca5 refactor: remove deprecated commands and authentication logic
- 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.
2026-04-11 01:10:57 -04:00
doum1004
a346a2f2ed refactor: remove Git backend commands from documentation 2026-04-11 00:42:30 -04:00
doum1004
d0d4f23252 feat: update documentation to reflect StorageProvider abstraction and backend options 2026-04-11 00:37:50 -04:00
doum1004
65d9196f01 feat: add LLM Agent Skill Guide for improved CLI usage reference 2026-04-10 23:29:31 -04:00
doum1004
58a1261610 Phase 5: GitHub Auth + Repo Management
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.
2026-04-10 02:21:04 -04:00
doum1004
6b054472ed Phase 4: Lint + Links + Status
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)
2026-04-10 02:16:38 -04:00
doum1004
b23e8c0b81 Phase 3: Index + Log + Git Commands
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)
2026-04-10 02:05:59 -04:00
doum1004
f9c8d47b31 Phase 2: Read + Write + List + Search
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)
2026-04-10 01:59:46 -04:00
doum1004
6a8b9a5612 Phase 1: Bootstrap + Init + Registry
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
2026-04-10 01:36:17 -04:00