teamai-cli 0.19.0 → 0.20.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -0
- package/README.zh-CN.md +18 -0
- package/dist/index.js +7933 -7090
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,6 +34,8 @@ Create a shared-experience repo on your git host (GitHub, TGit, or CNB), **grant
|
|
|
34
34
|
|
|
35
35
|
> Solo use needs no separate repo setup: `teamai init` checks the target repo and creates it automatically if it doesn't exist.
|
|
36
36
|
|
|
37
|
+
> **No team repo yet?** Start from a template pre-loaded with production-ready skills, rules, and review agents. Browse the [teamai-hub](https://github.com/teamai-hub) org, click **Use this template**, then `teamai init` against your new repo.
|
|
38
|
+
|
|
37
39
|
### Team members
|
|
38
40
|
|
|
39
41
|
```bash
|
|
@@ -52,6 +54,22 @@ teamai init https://github.com/yourorg/project-repo --inherit-user-scope
|
|
|
52
54
|
|
|
53
55
|
Once initialized, every AI session automatically pulls the latest skills / rules and other Harness updates published by admins — no manual sync needed.
|
|
54
56
|
|
|
57
|
+
### Single-repo mode (the business repo *is* the team repo)
|
|
58
|
+
|
|
59
|
+
No separate team repo. Run `teamai init .` inside an existing project and its own git repo becomes the team repo:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
cd /path/to/my-project
|
|
63
|
+
teamai init . # or: teamai init --self
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
- **Knowledge** (skills / rules / docs / learnings) is committed to your repo's **main branch** under `.teamai/`, so a plain `git clone` already carries the whole team setup.
|
|
67
|
+
- **Reports** (member registrations, session summaries, votes, usage stats) go to a separate **`teamai-reports` orphan branch** — they never touch main.
|
|
68
|
+
- **Clone = initialized.** When a teammate clones the repo, the next `teamai` command (or AI session) auto-detects the `mode: self` marker in `.teamai/teamai.yaml` and finishes local setup automatically — no need to re-type repo/role.
|
|
69
|
+
- All of teamai's git operations run in isolated worktrees, so your working tree and current branch are never touched.
|
|
70
|
+
|
|
71
|
+
After `teamai init .`, commit `.teamai/` (skills, rules, docs, learnings, `teamai.yaml`, `.gitignore`) and `.claude/settings.json` to main so teammates get auto-initialized on clone.
|
|
72
|
+
|
|
55
73
|
> **Full usage guide:** [docs/usage-guide.md](docs/usage-guide.md) ([中文版](docs/usage-guide.zh-CN.md)) — covers everything from team creation to day-to-day use.
|
|
56
74
|
|
|
57
75
|
## Harness Management & Distribution
|
package/README.zh-CN.md
CHANGED
|
@@ -34,6 +34,8 @@ npm install -g teamai-cli
|
|
|
34
34
|
|
|
35
35
|
> 个人使用无需单独建仓:`teamai init` 会检查目标仓库,不存在时自动创建。
|
|
36
36
|
|
|
37
|
+
> **还没有团队仓库?** 可以从内置了成套 skills、rules、review agents 的模板起步。浏览 [teamai-hub](https://github.com/teamai-hub) org,点 **Use this template** 生成自己的仓库,再对它执行 `teamai init`。
|
|
38
|
+
|
|
37
39
|
### 团队成员
|
|
38
40
|
|
|
39
41
|
```bash
|
|
@@ -52,6 +54,22 @@ teamai init https://github.com/yourorg/project-repo --inherit-user-scope
|
|
|
52
54
|
|
|
53
55
|
初始化完成后,每次开启 AI 会话时都会自动拉取管理员发布的 skills / rules 等 Harness 更新,无需手动同步。
|
|
54
56
|
|
|
57
|
+
### 单仓模式(业务仓即团队仓)
|
|
58
|
+
|
|
59
|
+
无需单独的团队仓库。在已有项目里运行 `teamai init .`,让它自己的 git 仓库直接充当团队仓:
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
cd /path/to/my-project
|
|
63
|
+
teamai init . # 或:teamai init --self
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
- **知识资产**(skills / rules / docs / learnings)提交到仓库 **main 分支**的 `.teamai/` 目录,因此一次普通 `git clone` 就带上了整套团队配置。
|
|
67
|
+
- **上报数据**(成员注册、会话摘要、投票、使用统计)走独立的 **`teamai-reports` 孤儿分支** —— 永不污染 main。
|
|
68
|
+
- **克隆即初始化。** 团队成员 clone 仓库后,下一条 `teamai` 命令(或 AI 会话)会自动识别 `.teamai/teamai.yaml` 里的 `mode: self` 标记并自动完成本机初始化 —— 无需手抄 repo/role 参数。
|
|
69
|
+
- teamai 的所有 git 操作都在隔离的 worktree 中进行,绝不触碰你的工作区和当前分支。
|
|
70
|
+
|
|
71
|
+
执行 `teamai init .` 后,把 `.teamai/`(skills、rules、docs、learnings、`teamai.yaml`、`.gitignore`)和 `.claude/settings.json` 提交到 main,团队成员 clone 后即可自动初始化。
|
|
72
|
+
|
|
55
73
|
> **完整使用指南**:[docs/usage-guide.zh-CN.md](docs/usage-guide.zh-CN.md)([English](docs/usage-guide.md))— 涵盖从团队创建到日常使用的全流程。
|
|
56
74
|
|
|
57
75
|
## Harness 管理和分发
|