Skip to content

feat: wiki toggle via env var (Approach A)#22

Merged
jeff-r2026 merged 1 commit into
mainfrom
feat/wiki-toggle-env
May 27, 2026
Merged

feat: wiki toggle via env var (Approach A)#22
jeff-r2026 merged 1 commit into
mainfrom
feat/wiki-toggle-env

Conversation

@jeff-r2026
Copy link
Copy Markdown
Collaborator

Summary

Approach A: Environment Variable — The simplest, zero-config approach.

  • Add TEAMAI_WIKI_DISABLED=1 env var to disable the built-in wiki feature
  • Prevents conflicts with third-party team-wiki plugins (e.g. team-wiki)
  • No schema changes, no config file modifications needed

How to disable:

export TEAMAI_WIKI_DISABLED=1
# or
export TEAMAI_WIKI_ENABLED=false

When disabled:

  • Wiki resources skipped during teamai pull / teamai push
  • teamai-wiki builtin skill not deployed
  • teamai status shows wiki disabled hint

Trade-offs:

Pros Cons
Zero config overhead Not persisted across shells (unless in .bashrc)
Works immediately No team-level control
No migration needed Not visible in config files

Test plan

  • isWikiEnabled() returns true by default
  • Returns false with TEAMAI_WIKI_DISABLED=1
  • Returns false with TEAMAI_WIKI_ENABLED=false
  • All 942 existing tests pass
  • TypeScript compiles cleanly

Closes #21

💡 This is 1 of 3 alternative implementations. See also:

  • Approach B: Local config (feat/wiki-toggle-local-config)
  • Approach C: Team config + local override (feat/wiki-toggle-team-config)

Add TEAMAI_WIKI_DISABLED=1 env var to disable the built-in wiki feature,
preventing conflicts with third-party team-wiki plugins.

When disabled:
- Wiki resources are skipped during pull/push
- teamai-wiki builtin skill is not deployed
- Status command shows wiki disabled hint

Default: enabled (backward compatible)

Closes #21
@jeff-r2026 jeff-r2026 merged commit ff09f1a into main May 27, 2026
7 checks passed
@jeff-r2026 jeff-r2026 deleted the feat/wiki-toggle-env branch May 27, 2026 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feat] Wiki 功能开关:避免与第三方 team-wiki 插件命名冲突导致 AI 误识别

1 participant