Repository navigation
fix(import): run reconcile and deep enrich in --dir mode - #362
Merged
Merged
Conversation
The `import --dir` flow extracted code knowledge but stopped short of the reconcile and deep-enrich stages that `--from-repo` runs, so local-directory imports produced only shallow evidence without component design docs, the architecture overview, or the AI graph docs (G5/G6). Add the reconcile -> deep-enrich stages to both --dir sub-paths (--output and the default team-repo push), mirroring the --from-repo pipeline, and factor the shared logic into a `reconcileAndDeepEnrich` helper to avoid duplication. Deep enrich still runs only when AI enrichment produced a _manifest.json and --skip-enrich is not set; both stages remain non-blocking. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Walternater
pushed a commit
to Walternater/teamai-cli
that referenced
this pull request
Nov 2, 2026
The `import --dir` flow extracted code knowledge but stopped short of the reconcile and deep-enrich stages that `--from-repo` runs, so local-directory imports produced only shallow evidence without component design docs, the architecture overview, or the AI graph docs (G5/G6). Add the reconcile -> deep-enrich stages to both --dir sub-paths (--output and the default team-repo push), mirroring the --from-repo pipeline, and factor the shared logic into a `reconcileAndDeepEnrich` helper to avoid duplication. Deep enrich still runs only when AI enrichment produced a _manifest.json and --skip-enrich is not set; both stages remain non-blocking.
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
import --dirextracted code knowledge but stopped short of the reconcile and deep-enrich stages that--from-reporuns. As a result, local-directory imports produced only shallow evidence — no per-component design docs, no architecture overview, and no AI graph docs (G5/G6).This PR adds the
reconcile → deep-enrichstages to both--dirsub-paths, mirroring the--from-repopipeline:--outputsub-path (writes to a target dir, no push) — enriches against the outputteamwiki/.teamwiki/, beforeaggregateGlobalGraph/rebuildWikiIndex/push, so all content lands in one MR.The shared logic is factored into a
reconcileAndDeepEnrichhelper to avoid duplication across the two sub-paths.Behavior guards (unchanged from
--from-repo):_manifest.jsonand--skip-enrichis not set.Test Plan
npx tsc --noEmit— cleannpm run build— successnpx vitest run src/__tests__/import-org.test.ts— passteamai import --dir <sample> --output <tmp>against a multi-service sample codebase — log confirms the orderingAI enrich → reconcile → deep-enrich Phase 1–5 → Deep enrich complete, and the enriched artifacts (docs/architecture.md, per-component design doc, G1/G2/G3/G6 graph docs,_manifest.json) are written underevidence/code/<slug>/.Note:
--dir --outputwas used for e2e so the run stays fully local (no team-repo push).🤖 Generated with Claude Code