teamai-cli 0.22.0-beta.5 → 0.23.0-beta.1
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 +49 -20
- package/README.zh-CN.md +49 -20
- package/dist/index.js +2654 -1139
- package/package.json +12 -2
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="assets/teamai-cli-logo.svg" alt="teamai-cli"
|
|
2
|
+
<img src="assets/teamai-cli-logo.svg" alt="teamai-cli">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
# TeamAI —
|
|
5
|
+
# TeamAI — Make Every Team AI Native
|
|
6
6
|
|
|
7
7
|
> [English](README.md) | [简体中文](README.zh-CN.md)
|
|
8
8
|
|
|
@@ -11,9 +11,7 @@
|
|
|
11
11
|
[](https://www.npmjs.com/package/teamai-cli)
|
|
12
12
|
[](LICENSE)
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Git-native management of skills, rules, MCP, env vars, knowledge base, and more — across Claude Code / Codex / CodeBuddy / WorkBuddy / OpenCode and more.
|
|
14
|
+
TeamAI manages your team's skills, rules, MCP, and knowledge across Claude Code, Codex, CodeBuddy, WorkBuddy, OpenCode, Cursor, and other AI agents.
|
|
17
15
|
|
|
18
16
|
## Quick Start
|
|
19
17
|
|
|
@@ -46,15 +44,25 @@ Once initialized, every AI session automatically pulls the latest skills / rules
|
|
|
46
44
|
|
|
47
45
|
> **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.
|
|
48
46
|
|
|
47
|
+
## Product architecture
|
|
48
|
+
|
|
49
|
+
**Team Execution × Team Context × Team Improvement**:
|
|
50
|
+
|
|
51
|
+
| Layer | Job | In this CLI today |
|
|
52
|
+
|-------|-----|-------------------|
|
|
53
|
+
| **Team Execution** | Make every agent work the team's way | `init` / `pull` / `push`, skills, rules, agents, hooks, MCP, env |
|
|
54
|
+
| **Team Context** | Make every agent understand the team | recall, learnings, codebase graph, teamwiki... |
|
|
55
|
+
| **Team Improvement** | Make every execution improve the team | friction-based share-learnings, sessions, digest, dashboard... |
|
|
56
|
+
|
|
49
57
|
## Overview
|
|
50
58
|
|
|
51
59
|
<table>
|
|
52
60
|
<thead>
|
|
53
61
|
<tr>
|
|
54
62
|
<th rowspan="2">Agent</th>
|
|
55
|
-
<th colspan="7">
|
|
56
|
-
<th colspan="3">
|
|
57
|
-
<th colspan="3">
|
|
63
|
+
<th colspan="7">Team Execution</th>
|
|
64
|
+
<th colspan="3">Team Context</th>
|
|
65
|
+
<th colspan="3">Team Improvement</th>
|
|
58
66
|
</tr>
|
|
59
67
|
<tr>
|
|
60
68
|
<th>skills</th><th>rules</th><th>docs</th><th>env</th><th>agents</th><th>hooks</th><th>mcp</th>
|
|
@@ -87,18 +95,9 @@ Team-wide settings an admin configures once and delivers to every member on `tea
|
|
|
87
95
|
| **Tags** | `teamai tags` | Tag skills / rules so members subscribe to just the tags they need. |
|
|
88
96
|
| **Sources** | `teamai source` | Subscribe to additional skill repos — other teams' public repos, or shared/public repos within your own org; subscribed skills sync automatically on pull. |
|
|
89
97
|
|
|
90
|
-
|
|
98
|
+
## Team Execution
|
|
91
99
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
| Capability | Command | What it shows |
|
|
95
|
-
|------------|---------|---------------|
|
|
96
|
-
| **Usage** | `teamai digest` | Weekly team digest — token usage, conversation volume, and intervention rate. |
|
|
97
|
-
| **Sessions** | `teamai session save` | Privacy-scrubbed per-session summaries (tool sequence, prompt turns, interventions) that feed the digest's Session Highlights. |
|
|
98
|
-
| **Dashboard** | `teamai dashboard` | Web dashboard showing team members' live coding-session status, intervention count, and token usage. |
|
|
99
|
-
| **KB Health** | `teamai dashboard` → KB Health | Built-in dashboard page reporting knowledge-base usage & health — coverage by type, top recalled entries, silent entries, recall trend, author contributions, and a maintenance console. |
|
|
100
|
-
|
|
101
|
-
## Harness Management & Distribution
|
|
100
|
+
> One Team. One Harness. Every Agent.
|
|
102
101
|
|
|
103
102
|
TeamAI keeps skills, rules, docs, and hooks in a shared git repo and distributes them to every member's local AI tools through a "push → review & merge → pull" flow — with support for subscribing to other teams' or shared repos' Harness.
|
|
104
103
|
|
|
@@ -163,7 +162,23 @@ teamai source remove other-team
|
|
|
163
162
|
The add/remove change takes effect locally right away, and subscribed skills sync on the next
|
|
164
163
|
`teamai pull`. Run `teamai push` when you want to share the `teamai.yaml` change with teammates.
|
|
165
164
|
|
|
166
|
-
|
|
165
|
+
### Team Packages
|
|
166
|
+
|
|
167
|
+
Share and restore the team's npm packages and Claude Code plugins:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
teamai install typescript
|
|
171
|
+
teamai install typescript@5.9.2 --npm
|
|
172
|
+
teamai install code-review@claude-plugins-official
|
|
173
|
+
teamai push # Share the declarations
|
|
174
|
+
teamai install # Install everything declared by the team
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
See the [Usage Guide](docs/usage-guide.md#team-packages) for the complete workflow and configuration.
|
|
178
|
+
|
|
179
|
+
## Team Context
|
|
180
|
+
|
|
181
|
+
> Every agent understands how the team works.
|
|
167
182
|
|
|
168
183
|
Beyond distributing the Harness, TeamAI organizes accumulated team experience and code structure into a searchable knowledge base that the AI recalls automatically when needed.
|
|
169
184
|
|
|
@@ -223,6 +238,19 @@ Edges come from two tracks that run together, with AST results taking precedence
|
|
|
223
238
|
|
|
224
239
|
The WASM parser is a pure-JavaScript dependency — no native toolchain is required. If it fails to load for any reason, extraction falls back to the heuristic track and records an `AST_UNAVAILABLE` gap. Set `TEAMAI_SKIP_AST=1` to force heuristic-only extraction.
|
|
225
240
|
|
|
241
|
+
## Team Improvement
|
|
242
|
+
|
|
243
|
+
> Every execution makes the entire team smarter.
|
|
244
|
+
|
|
245
|
+
Insight into how the team actually uses its AI tools, and a starting point for turning session friction into shared skills, rules, and knowledge:
|
|
246
|
+
|
|
247
|
+
| Capability | Command | What it shows |
|
|
248
|
+
|------------|---------|---------------|
|
|
249
|
+
| **Usage** | `teamai digest` | Weekly team digest — token usage, conversation volume, and intervention rate. |
|
|
250
|
+
| **Sessions** | `teamai session save` | Privacy-scrubbed per-session summaries (tool sequence, prompt turns, interventions) that feed the digest's Session Highlights. |
|
|
251
|
+
| **Dashboard** | `teamai dashboard` | Web dashboard showing team members' live coding-session status, intervention count, and token usage. |
|
|
252
|
+
| **KB Health** | `teamai dashboard` → KB Health | Built-in dashboard page reporting knowledge-base usage & health — coverage by type, top recalled entries, silent entries, recall trend, author contributions, and a maintenance console. |
|
|
253
|
+
|
|
226
254
|
## Commands
|
|
227
255
|
|
|
228
256
|
| Command | Description |
|
|
@@ -230,6 +258,7 @@ The WASM parser is a pure-JavaScript dependency — no native toolchain is requi
|
|
|
230
258
|
| `teamai init` | Initialize: OAuth login, link repo, register member, inject hooks |
|
|
231
259
|
| `teamai pull` | Pull team resources and inject into local AI tools |
|
|
232
260
|
| `teamai push` | Push local resources to a branch and open a Merge Request |
|
|
261
|
+
| `teamai install [target]` | Install declared npm packages and Claude plugins; with a target, also update `teamai.yaml` |
|
|
233
262
|
| `teamai status` | Show local vs team repo diff |
|
|
234
263
|
| `teamai contribute` | Share session experience to team repo |
|
|
235
264
|
| `teamai recall <query>` | Search the team knowledge base (BM25 + graph-boost) |
|
package/README.zh-CN.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="assets/teamai-cli-logo.svg" alt="teamai-cli"
|
|
2
|
+
<img src="assets/teamai-cli-logo.svg" alt="teamai-cli">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
|
-
# TeamAI —
|
|
5
|
+
# TeamAI — Make Every Team AI Native
|
|
6
6
|
|
|
7
7
|
> [English](README.md) | [简体中文](README.zh-CN.md)
|
|
8
8
|
|
|
@@ -11,9 +11,7 @@
|
|
|
11
11
|
[](https://www.npmjs.com/package/teamai-cli)
|
|
12
12
|
[](LICENSE)
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
通过 Git 统一管理 skills、rules、mcp、环境变量、知识库等 Harness,驾驭 Claude Code / Codex / CodeBuddy / WorkBuddy / OpenCode 等多种 AI 工具。
|
|
14
|
+
TeamAI 统一管理团队的 Skills、Rules、MCP 和知识,驾驭 Claude Code、Codex、CodeBuddy、WorkBuddy、OpenCode、Cursor 等 AI Agents。
|
|
17
15
|
|
|
18
16
|
## 快速开始
|
|
19
17
|
|
|
@@ -46,15 +44,25 @@ teamai init https://github.com/yourorg/yourrepo --scope user
|
|
|
46
44
|
|
|
47
45
|
> **完整使用指南**:[docs/usage-guide.zh-CN.md](docs/usage-guide.zh-CN.md)([English](docs/usage-guide.md))— 涵盖从团队创建到日常使用的全流程。
|
|
48
46
|
|
|
47
|
+
## 产品架构
|
|
48
|
+
|
|
49
|
+
**Team Execution × Team Context × Team Improvement**:
|
|
50
|
+
|
|
51
|
+
| 层 | 要解决的问题 | 当前 CLI 中的体现 |
|
|
52
|
+
|----|--------------|-------------------|
|
|
53
|
+
| **Team Execution** | 让每个 Agent 按团队的方式工作 | `init` / `pull` / `push`,skills、rules、agents、hooks、MCP、env |
|
|
54
|
+
| **Team Context** | 让每个 Agent 理解整个团队 | recall、learnings、代码知识图谱、teamwiki... |
|
|
55
|
+
| **Team Improvement** | 让每一次执行都成为团队能力的积累 | 基于摩擦信号的经验分享、sessions、digest、dashboard... |
|
|
56
|
+
|
|
49
57
|
## 功能概览
|
|
50
58
|
|
|
51
59
|
<table>
|
|
52
60
|
<thead>
|
|
53
61
|
<tr>
|
|
54
62
|
<th rowspan="2">Agent</th>
|
|
55
|
-
<th colspan="7">
|
|
56
|
-
<th colspan="3"
|
|
57
|
-
<th colspan="3"
|
|
63
|
+
<th colspan="7">Team Execution</th>
|
|
64
|
+
<th colspan="3">Team Context</th>
|
|
65
|
+
<th colspan="3">Team Improvement</th>
|
|
58
66
|
</tr>
|
|
59
67
|
<tr>
|
|
60
68
|
<th>skills</th><th>rules</th><th>docs</th><th>env</th><th>agents</th><th>hooks</th><th>mcp</th>
|
|
@@ -87,18 +95,9 @@ teamai init https://github.com/yourorg/yourrepo --scope user
|
|
|
87
95
|
| **标签(Tags)** | `teamai tags` | 给 skills / rules 打标签,成员只订阅自己需要的标签。 |
|
|
88
96
|
| **订阅源(Sources)** | `teamai source` | 订阅额外的 skill 仓库——其他团队的公开仓库,或本团队内的公共/共享仓库;已订阅的 skills 会在 pull 时自动同步。 |
|
|
89
97
|
|
|
90
|
-
|
|
98
|
+
## Team Execution
|
|
91
99
|
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
| 能力 | 命令 | 呈现内容 |
|
|
95
|
-
|------|------|----------|
|
|
96
|
-
| **用量(Usage)** | `teamai digest` | 团队周报——token 用量、会话量、干预率。 |
|
|
97
|
-
| **会话(Sessions)** | `teamai session save` | 脱敏的单会话摘要(工具序列、对话轮次、干预次数),喂给周报的 Session Highlights。 |
|
|
98
|
-
| **看板(Dashboard)** | `teamai dashboard` | Web 看板,实时展示成员的编码会话状态、干预次数和 token 用量。 |
|
|
99
|
-
| **知识库健康(KB Health)** | `teamai dashboard` → KB Health | 内置于看板的报告页面,展示知识库使用情况与健康状态——各类型覆盖率、高频召回条目、沉默条目、召回趋势、作者贡献及维护控制台。 |
|
|
100
|
-
|
|
101
|
-
## Harness 管理和分发
|
|
100
|
+
> One Team. One Harness. Every Agent.
|
|
102
101
|
|
|
103
102
|
TeamAI 把 skills、rules、docs、hooks 统一存放在共享 Git 仓库,通过「push → 评审合并 → pull」的流程分发到每位成员的本地 AI 工具,并支持订阅其他团队或公共仓库的 Harness。
|
|
104
103
|
|
|
@@ -163,7 +162,23 @@ teamai source remove other-team
|
|
|
163
162
|
添加/移除会立即在本机生效,订阅的 skills 会在下一次 `teamai pull` 时同步。需要将
|
|
164
163
|
`teamai.yaml` 的改动分享给团队成员时,再运行 `teamai push`。
|
|
165
164
|
|
|
166
|
-
|
|
165
|
+
### 团队包
|
|
166
|
+
|
|
167
|
+
共享并一键恢复团队的 npm 包和 Claude Code 插件:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
teamai install typescript
|
|
171
|
+
teamai install typescript@5.9.2 --npm
|
|
172
|
+
teamai install code-review@claude-plugins-official
|
|
173
|
+
teamai push # 分享团队声明
|
|
174
|
+
teamai install # 安装团队声明的全部包
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
完整工作流和配置见[使用指南](docs/usage-guide.zh-CN.md#团队包)。
|
|
178
|
+
|
|
179
|
+
## Team Context
|
|
180
|
+
|
|
181
|
+
> Every agent understands how the team works.
|
|
167
182
|
|
|
168
183
|
除了分发 Harness,TeamAI 还把团队沉淀的经验和代码结构组织成可检索的知识库,让 AI 在需要时自动召回。
|
|
169
184
|
|
|
@@ -223,6 +238,19 @@ teamai codebase --lint # 健康检查
|
|
|
223
238
|
|
|
224
239
|
WASM 解析器是纯 JavaScript 依赖,无需任何原生编译工具链。若因任何原因加载失败,提取会降级到启发式轨并记录一条 `AST_UNAVAILABLE` gap。设置 `TEAMAI_SKIP_AST=1` 可强制仅使用启发式提取。
|
|
225
240
|
|
|
241
|
+
## Team Improvement
|
|
242
|
+
|
|
243
|
+
> Every execution makes the entire team smarter.
|
|
244
|
+
|
|
245
|
+
洞察团队实际如何使用 AI 工具,也是把 session 中的摩擦转化为共享 Skill、Rule 和知识的起点:
|
|
246
|
+
|
|
247
|
+
| 能力 | 命令 | 呈现内容 |
|
|
248
|
+
|------|------|----------|
|
|
249
|
+
| **用量(Usage)** | `teamai digest` | 团队周报——token 用量、会话量、干预率。 |
|
|
250
|
+
| **会话(Sessions)** | `teamai session save` | 脱敏的单会话摘要(工具序列、对话轮次、干预次数),喂给周报的 Session Highlights。 |
|
|
251
|
+
| **看板(Dashboard)** | `teamai dashboard` | Web 看板,实时展示成员的编码会话状态、干预次数和 token 用量。 |
|
|
252
|
+
| **知识库健康(KB Health)** | `teamai dashboard` → KB Health | 内置于看板的报告页面,展示知识库使用情况与健康状态——各类型覆盖率、高频召回条目、沉默条目、召回趋势、作者贡献及维护控制台。 |
|
|
253
|
+
|
|
226
254
|
## 命令一览
|
|
227
255
|
|
|
228
256
|
| 命令 | 说明 |
|
|
@@ -230,6 +258,7 @@ WASM 解析器是纯 JavaScript 依赖,无需任何原生编译工具链。若
|
|
|
230
258
|
| `teamai init` | 初始化:OAuth 登录、关联仓库、注册成员、注入 hooks |
|
|
231
259
|
| `teamai pull` | 拉取团队资源并注入到本地 AI 工具 |
|
|
232
260
|
| `teamai push` | 推送本地资源到分支并创建合并请求 |
|
|
261
|
+
| `teamai install [target]` | 安装团队 npm 包和 Claude 插件;带 target 时同步更新声明 |
|
|
233
262
|
| `teamai status` | 显示本地与团队仓库的差异 |
|
|
234
263
|
| `teamai contribute` | 将 session 经验分享到团队仓库 |
|
|
235
264
|
| `teamai recall <query>` | 搜索团队知识库(BM25 + 图谱增强) |
|