Skip to content

fix: align wiki path to ~/.teamai/wiki/ for push compatibility#14

Closed
jeff-r2026 wants to merge 8 commits into
mainfrom
worktree-fix-wiki-path
Closed

fix: align wiki path to ~/.teamai/wiki/ for push compatibility#14
jeff-r2026 wants to merge 8 commits into
mainfrom
worktree-fix-wiki-path

Conversation

@jeff-r2026
Copy link
Copy Markdown
Collaborator

Summary

  • Fix wiki skill path resolution: use fixed ~/.teamai/wiki/ instead of fallback chain (~/.claude-internal/wiki/, ~/.claude/wiki/, ./wiki/)
  • This aligns the wiki skill's output path with teamai push's WikiHandler scan path

Fixes #13

Test plan

  • Run /teamai-wiki init and verify wiki is created at ~/.teamai/wiki/
  • Run teamai push --dry-run and verify wiki pages appear in push list

jeff-r2026 added 8 commits May 9, 2026 15:18
Rename README.md → README.zh-CN.md (Chinese)
Rename README.en.md → README.md (English, now default)
Update language switch links in both files.
Separate the two blockquote lines (usage guide / provider notes) with
a blank line so they render as distinct blocks with proper spacing.
Squash merge branch 'fix/e2e-ci-stability' into 'master'
## Summary

- Disable file-level parallelism in vitest E2E config (`fileParallelism: false`) to prevent intermittent "Cannot find module dist/index.js" race conditions on GitHub Actions
- Add `--role common` to init project-scope test (required in non-interactive mode when roles manifest is present)
- Add `GIT_AUTHOR_*`/`GIT_COMMITTER_*` env vars to init test (HOME override hides global .gitconfig)
- Add diagnostic output to init assertion for future debugging

## Test plan

- [x] GitHub Actions E2E passes with these changes
- [x] Local `npx vitest run --config vitest.e2e.config.ts` still passes
Squash merge branch 'feature/wiki-shared-location' into 'master'
## Summary

- Wiki 页面不再复制到各 AI 工具目录(~/.claude/wiki/、~/.cursor/wiki/ 等),改为统一存储在 `~/.teamai/wiki/`(user scope)或 `<projectRoot>/.teamai/wiki/`(project scope)
- 移除了多工具目录遍历和 mtime 竞选逻辑,代码精简约 20 行
- pull/push/remove/tombstone 清理全部指向共享目录

## Why

Wiki 是团队共享知识库,不是工具配置,没必要每个 agent 目录都复制一份。放在 `~/.teamai/wiki/` 更合理。

## Test plan

- [x] 939/939 单元测试全部通过
- [x] TypeScript 类型检查通过
- [x] 手动验证 `teamai pull` wiki 同步到 `~/.teamai/wiki/`
- [x] 手动验证 `teamai push` 从 `~/.teamai/wiki/` 读取
…rge request !187)

Squash merge branch 'fix/push-exclude-git-tgit' into 'master'
## Summary

- When a skill directory is itself a git repository (e.g. user cloned a repo into `.claude/skills/`), `copyDir` would copy the `.git` directory into the team repo
- Git then treats the nested `.git` as a gitlink (mode 160000 / submodule reference), causing `git add` to record only a commit hash instead of actual file content
- The resulting MR appears to contain only `Subproject commit <hash>` — no real files

**Fix:** Add `.git` to the `IGNORED_NAMES` filter in `src/utils/fs.ts`

## Test plan

- [x] Added unit test: `should NOT copy .git directory when skill source is a git repo`
- [x] All 936 existing tests pass
- [x] Type check passes (`tsc --noEmit`)

Fixes #10
@jeff-r2026 jeff-r2026 closed this May 19, 2026
@jeff-r2026 jeff-r2026 deleted the worktree-fix-wiki-path branch May 19, 2026 09:14
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.

[bug] teamai push cannot recognize wiki files

1 participant