teamai-cli 0.20.0-beta.7 → 0.21.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 +4 -2
- package/README.zh-CN.md +4 -2
- package/agents/teamai-recall.md +27 -4
- package/dist/index.js +2810 -1707
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
Make every AI coding agent work by the same harness.
|
|
18
18
|
|
|
19
|
-
Git-native management of skills, rules, and docs across Claude Code / Codex / CodeBuddy / WorkBuddy and more.
|
|
19
|
+
Git-native management of skills, rules, and docs across Claude Code / Codex / CodeBuddy / WorkBuddy / OpenCode and more.
|
|
20
20
|
|
|
21
21
|
For you or your whole team.
|
|
22
22
|
|
|
@@ -30,10 +30,12 @@ npm install -g teamai-cli
|
|
|
30
30
|
|
|
31
31
|
### Team admin / solo user
|
|
32
32
|
|
|
33
|
-
Create a shared-experience repo on your git host (GitHub, TGit, or
|
|
33
|
+
Create a shared-experience repo on your git host (GitHub, TGit, CNB, or a self-hosted Git service), **grant write access to team members**, then have them run `teamai init https://github.com/yourorg/yourrepo`.
|
|
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
|
+
> Self-hosted GitLab/Gitea-style services use your HTTPS credential helper or SSH key. Create the repository first; merge requests are created manually for now. See [Git Provider docs](docs/providers.md).
|
|
38
|
+
|
|
37
39
|
> **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
40
|
|
|
39
41
|
### Team members
|
package/README.zh-CN.md
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
面向 AI 智能体的团队 Harness 分发工具。
|
|
18
18
|
|
|
19
|
-
通过 Git 统一管理 skills、rules、docs,驾驭 Claude Code / Codex / CodeBuddy / WorkBuddy 等多种 AI 工具。
|
|
19
|
+
通过 Git 统一管理 skills、rules、docs,驾驭 Claude Code / Codex / CodeBuddy / WorkBuddy / OpenCode 等多种 AI 工具。
|
|
20
20
|
|
|
21
21
|
一个人也能用,团队用更强。
|
|
22
22
|
|
|
@@ -30,10 +30,12 @@ npm install -g teamai-cli
|
|
|
30
30
|
|
|
31
31
|
### 团队管理员 / 个人使用者
|
|
32
32
|
|
|
33
|
-
在 Git 托管平台(GitHub、TGit
|
|
33
|
+
在 Git 托管平台(GitHub、TGit、CNB 或自建 Git 服务)创建共享经验仓库,**授予团队成员写权限**,然后让他们运行 `teamai init https://github.com/yourorg/yourrepo`。
|
|
34
34
|
|
|
35
35
|
> 个人使用无需单独建仓:`teamai init` 会检查目标仓库,不存在时自动创建。
|
|
36
36
|
|
|
37
|
+
> 自建 GitLab/Gitea 等服务支持 HTTPS Credential Helper 或 SSH Key;需预先创建仓库,MR 暂时手动创建。详见 [Git Provider 说明](docs/providers.md)。
|
|
38
|
+
|
|
37
39
|
> **还没有团队仓库?** 可以从内置了成套 skills、rules、review agents 的模板起步。浏览 [teamai-hub](https://github.com/teamai-hub) org,点 **Use this template** 生成自己的仓库,再对它执行 `teamai init`。
|
|
38
40
|
|
|
39
41
|
### 团队成员
|
package/agents/teamai-recall.md
CHANGED
|
@@ -124,7 +124,29 @@ none exists, silently skip.
|
|
|
124
124
|
### Step 2 — Extract keywords from the task description
|
|
125
125
|
|
|
126
126
|
Pick 3–6 high-signal keywords from the user query. Strip filler words
|
|
127
|
-
("the", "how", "please").
|
|
127
|
+
("the", "how", "please").
|
|
128
|
+
|
|
129
|
+
**Always search bilingually (cross-language recall).** The knowledge base
|
|
130
|
+
mixes Chinese and English: a learning may be titled in English while your
|
|
131
|
+
task is described in Chinese, or vice versa. The search is purely lexical
|
|
132
|
+
(BM25 token matching), so a Chinese-only query never matches an
|
|
133
|
+
English-only document. To bridge this, expand every domain term into
|
|
134
|
+
**both languages** and include both in your keyword set:
|
|
135
|
+
|
|
136
|
+
- Chinese task → add the English term for each concept
|
|
137
|
+
(e.g. "重启推理集群" → also add `restart`, `inference`, `cluster`).
|
|
138
|
+
- English task → add the Chinese term for each concept
|
|
139
|
+
(e.g. "restart inference cluster" → also add `重启`, `推理`, `集群`).
|
|
140
|
+
- Only translate terms that genuinely differ across languages. Keep any
|
|
141
|
+
**language-neutral token** as-is — anything that is written the same way
|
|
142
|
+
in both languages, or has no meaningful translation: proper nouns, brand
|
|
143
|
+
and product names, acronyms and initialisms, code identifiers and symbols,
|
|
144
|
+
error codes, version strings, file paths, CLI commands, and API names
|
|
145
|
+
(e.g. `AppID`, `Kubernetes`, `GPU`, `RuntimeError`, `v2.1.3`, `oauth`). Translating
|
|
146
|
+
these only hurts matching.
|
|
147
|
+
|
|
148
|
+
Only translate the meaningful domain terms; do not pad the query with
|
|
149
|
+
low-signal words. Aim for the same 3–6 concepts, each in both languages.
|
|
128
150
|
|
|
129
151
|
**Lead with the terms that pin down *this* task**: proper nouns, customer or
|
|
130
152
|
product names, service IDs, error codes, versions, symbol names
|
|
@@ -208,9 +230,10 @@ Use judgement rather than counting, in both directions:
|
|
|
208
230
|
discriminating term as a lead to verify by opening the file, not as a
|
|
209
231
|
conclusion.
|
|
210
232
|
- **Fewer than 5 results does not mean the corpus is thin.** Results are
|
|
211
|
-
deduplicated when title, date, author and content all
|
|
212
|
-
shared twice appears once
|
|
213
|
-
only matches are also dropped. Both
|
|
233
|
+
deduplicated when type, domain, title, date, author, tags and content all
|
|
234
|
+
match, so a learning shared twice appears once — including when the two copies
|
|
235
|
+
have collected different vote counts. Body-only matches are also dropped. Both
|
|
236
|
+
are intentional.
|
|
214
237
|
|
|
215
238
|
For each hit you keep, read the source file directly (use `Read`) and
|
|
216
239
|
condense each into **one or two sentences**.
|