feat: Add company mode for organizational knowledge base - #12
Merged
Merged
Conversation
Add first-class company run mode that uses Stratiki home (~/.stratiki) for organization-wide knowledge. Company mode uses the existing book infrastructure and connectors but with a dedicated home directory. - Add 'company' to OpenWikiRunMode type alongside 'personal' and 'code' - Add stratikiHomeDir and stratikiCompanyWikiDir paths in config - Update CLI command parsing to accept company mode via positional or --mode - Update book commands to support --mode company flag - Update getRunModeCwd to return company wiki dir for company mode - Add ensureStratikiHome() function for company mode directory setup - Update README with three-mode table showing company mode - Add tests for company mode parsing and book commands - Update help text to document company mode usage Co-authored-by: divo12 <divo12@users.noreply.github.com>
…st init Convert Stratiki path exports to getter functions to defer homedir() calls until runtime. This prevents test failures when tests mock os.homedir(). Co-authored-by: divo12 <divo12@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a first-class
companyrun mode to Stratiki for queryable organizational knowledge. Company mode uses the existing local-wiki, book, and connector infrastructure but operates from a dedicated Stratiki home (~/.stratiki) instead of~/.openwiki.What's Changed
New company mode
companytoOpenWikiRunModetype alongsidepersonalandcode~/.stratiki/wiki(configurable viaSTRATIKI_HOME)~/.stratiki/book.dbfor the episode storeCLI Updates
stratiki companypositional command--mode companyflag supportbookcommands to accept--mode <code|company>(defaults to code)Implementation
stratikiHomeDir,stratikiCompanyWikiDir,stratikiBookDbPathto configensureStratikiHome()for company mode directory initializationgetRunModeCwd()to return company wiki dir for company moderunBookCommand()to support mode-specific book dir and DB pathsDocumentation
Tests
--mode companyUsage
Initialize company knowledge base:
Query the company wiki:
stratiki book context --mode company "search query"Check company book status:
Design Notes
Summary by cubic
Adds a
companyrun mode for queryable organizational knowledge. Company mode reuses the existing book and connector infrastructure but writes to a dedicated Stratiki home (~/.stratiki, configurable viaSTRATIKI_HOME) instead of~/.openwiki. Code mode stays the default, and existingcodeandpersonalbehavior is unchanged.New Features
stratiki companypositional command and--mode companyflag select the company brain.booksubcommands accept--mode <code|company>;--mode companyroutes wiki and episode-store paths to the Stratiki home.Dependencies
@changesets/clias a dev dependency.Written for commit 26b297a. Summary will update on new commits.