feat(codebase): integrate team-wiki knowledge graph engine#46
Open
m0Nst3r873 wants to merge 5 commits into
Open
feat(codebase): integrate team-wiki knowledge graph engine#46m0Nst3r873 wants to merge 5 commits into
m0Nst3r873 wants to merge 5 commits into
Conversation
Replace AI-generated docs/team-codebase/ with structured teamwiki/ knowledge graph. Vendor team-wiki's code-knowledge + core packages (by @lurkacai) as the deterministic extraction engine. New capabilities: - `teamai codebase --extract`: code fact extraction (TS/Python/Go/Rust/Java/TOML/SQL) - `teamai recall`: BM25 + graph-boost codebase retrieval - `teamai codebase --lint`: graph health check - `teamai codebase --upgrade-wiki`: migration from old format - Module summaries with dependency direction and ranked components - Knowledge gaps detection (IMPL_MISSING, LOW_CONNECTIVITY, etc.) - Cross-repo edge detection via PascalCase label + config key matching - AI overview.md generation (non-blocking on timeout) - Pull protection: skip overwrite when local teamwiki/ is newer Architecture: - src/wiki-engine/: vendored core (graph schema, protocol) + code-knowledge (collector, extractors, graph builder, incremental detection) - src/wiki-engine/adapters/: teamai-specific bridge + shared templates - teamwiki/ directory (non-hidden) with router.md, hot.md, index.md, evidence/, .indices/, gaps/, modules/
Document the codebase knowledge graph output format with real data from HAI team (11 repos, 2218 nodes, 852 edges). Explains each file's purpose: router.md, graph-index.json, evidence pages, relation pages, and gaps detection.
- Hide 10 hook-only commands from --help (hook-dispatch, track, auto-recall, contribute-check, etc.) — still functional, just hidden - Hide domains command (replaced by knowledge graph edges) - Simplify import options: show 8 core options, hide 17 advanced ones - Simplify codebase options: show --lint/--fix/--json, hide rest - Streamline README command table: core commands visible, rest in collapsible section (EN + CN)
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
Replace AI-generated docs/team-codebase/ with structured teamwiki/ knowledge graph.
New capabilities
teamai codebase --extract: deterministic code fact extraction (7 languages)teamai recall: BM25 + graph-boost codebase retrievalteamai codebase --lint: graph health checkArchitecture
src/wiki-engine/: vendored from team-wiki (by @lurkacai)teamwiki/directory with router.md, hot.md, index.md, evidence/, .indices/, gaps/Test plan