Repository navigation
feat(codebase): expose wiki deep-enrich - #480
Merged
Merged
Conversation
Expose the existing deep-enrich engine as `teamai codebase --deep-enrich`, so the bundled wiki skill can generate deep knowledge without the hidden top-level command or a separate team-wiki CLI. Related to Tencent#360 (slice 3; does not close the full issue).
jeff-r2026
self-requested a review
September 10, 2026 07:29
7 of 11 tasks
Walternater
pushed a commit
to Walternater/teamai-cli
that referenced
this pull request
Nov 2, 2026
…nrich feat(codebase): expose wiki deep-enrich
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
Expose the existing deep-enrich engine as
teamai codebase --deep-enrich, so the bundledteam-wiki-codebaseskill can generate deep knowledge without the hidden top-levelteamai deep-enrichcommand or an externalteam-wikiCLI.The command uses the same teamwiki path rules as
--lint/--reconcile(--outputis the repository root →<repo>/teamwiki), requires--project <slug>, honors the globalteamai --dry-runoption, and writes the deterministic graph docs the engine already emits. Missing teamwiki, missing evidence, empty manifests, and path-escaping slugs fail with a non-zero exit instead of reporting success. English and Chinese CLI documentation are kept in sync.This is slice 3 of #360. Extraction path controls, local-document compilation, and quality evaluation remain separate follow-ups.
Type of Change
Test Plan
npx tsc --noEmit— cleannpx vitest run src/__tests__/codebase-deep-enrich.test.ts src/__tests__/index-codebase-help.test.ts src/__tests__/deep-enrich-graph-preserve.test.ts src/__tests__/team-wiki-codebase-skill.test.ts— 9/9 passed (AI client mocked; no live LLM)npx vitest run— 214 files / 2959 tests passednpm run buildthen built CLI:teamai codebase --helplists--deep-enrichnpx vitest run --config vitest.e2e.config.ts src/__tests__/e2e/codebase-extract-cli.test.ts— 5/5 passed (help + skill command + missing teamwiki exits 1; does not spawn a live enrich)git diff --check— cleanCLI test report
codebase --helplists--deep-enrich`teamai codebase --deep-enrich --project <slug> --output <repo>`_manifest.jsoncomponents writesdocs/graph-g1-relations.md(and G2/G3) when AI is mockedcomplete: true--dry-runpreviews without writingproject: '..'is rejectedRelated Issues
Related to #360 (slice 3 only; does not close the full issue).
Notes for Reviewers
--outputremains the repository root, with knowledge read from<repo>/teamwiki/.--project <slug>is required and selectsteamwiki/evidence/code/<slug>/.teamai --dry-run codebase --deep-enrich ...to preview without calling the engine.teamai deep-enrichcommand is unchanged.