feat(import): AI enrichment, reconciler, domain-grouped wiki index#51
Closed
m0Nst3r873 wants to merge 5 commits into
Closed
feat(import): AI enrichment, reconciler, domain-grouped wiki index#51m0Nst3r873 wants to merge 5 commits into
m0Nst3r873 wants to merge 5 commits into
Conversation
4 tasks
added 5 commits
June 26, 2026 11:36
Vendored from team-wiki by @lurkacai (git.woa.com/lurkacai/team-wiki). Import paths adjusted for teamai-cli project structure. Files copied (all pure deterministic, no AI dependency): - core/graph-index.schema.ts: graph node/edge types, merge, save/load - core/wiki-protocol.ts: wiki category/confidence types, slugify - code-knowledge/code-collector.ts: file collection with git-aware filtering - code-knowledge/code-extractors.ts: multi-language fact extraction dispatch - code-knowledge/code-graph.ts: build CodeGraphIndex from facts - code-knowledge/code-incremental.ts: detect changed files via manifest - code-knowledge/extractors/*: TS/Python/Go/Java/Rust/Config extractors - interface-scanner.ts: HTTP/MQ/RPC endpoint detection (5 languages) - call-chain-tracer.ts: 4-layer call chain tracing - code-graph-overlay.ts: directory-level architecture nodes - doc-graph-extractor.ts: extract API/config/error nodes from docs - manifest-schema.ts: V2 manifest types (entrypoints, responsibilities)
Wire up vendored modules into the teamai extraction flow: - adapters/index.ts: unified export layer for all wiki-engine modules - adapters/templates.ts: router.md + index.md generation templates - codebase-extract.ts: full extraction pipeline collectCode → extractCodeFacts → scanInterfaces → traceCallChains → buildEvidencePages (interfaces.md + call-chains.md) → buildIndexHubOverlay → mergedGraph → graph-index.json → buildModuleSummaries → detectKnowledgeGaps → router/index/hot/gaps - utils/hook-output.ts: multi-tool Stop hook output formatting
- interface-scanner: HTTP/MQ/RPC detection across languages (12 tests) - call-chain-tracer: entry detection, layer classification (8 tests) - code-graph-overlay: buildIndexHubOverlay node/edge generation (5 tests) - doc-graph-extractor: structure + entity extraction (8 tests) - hook-output: formatStopHookOutput multi-tool format (6 tests) All tests use in-memory data, no filesystem/network dependencies.
New modules (vendored/adapted from team-wiki by @lurkacai): - knowledge-reconciler.ts: 9-phase product↔code reconciliation - reconciler-v2-types.ts: NumericConfidence scoring types - manifest-compiler.ts: consume ManifestV2 → wiki pages New teamai modules: - enrich-with-ai.ts: per-module AI responsibility inference + repo-level domain classification via callClaudeParallel - rebuild-wiki-index.ts: generate table-based router.md + stats index.md from _manifest.json + _domains.json + overview.md - utils/git.ts: add autoPushTeamRepo for auto-push after import Updated: - wiki-engine/adapters/index.ts: export reconciler + confidence types - wiki-engine/adapters/templates.ts: DomainGroup router + IndexStats
…ication - import-repo.ts: add reconcile call after extraction, remove entire legacy AI domain classification flow (recommendDomain → domains.yaml) - import-org.ts: add rebuildWikiIndex + autoPush after batch import - codebase-extract.ts: integrate AI enrichment (enrichWithAI + writeManifest + _domains.json), domain-grouped router/index - Tests updated to match new import flow
7d8ceef to
3d5a4fb
Compare
Contributor
Author
|
Closing in favor of restructured PRs with bug fixes. The code has been reorganized into functionally-complete PRs where each PR includes its CLI entry point (no dead code). See the new PR series. |
2 tasks
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
Depends on #50.
12 files, +1213/-386 lines.
Test plan