teamai-cli 0.17.1 → 0.17.2

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.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: teamai-recall
3
- description: Search the team knowledge base (skills + learnings + docs + rules + codebase graph) and return a compact, structured summary with doc_ids — instead of dumping full knowledge content into the main conversation. Invoke this BEFORE any task involving code changes, troubleshooting, or design.
3
+ description: Search the team knowledge base (skills + learnings + docs + rules + codebase graph) and return a compact, structured summary with doc_ids — instead of dumping full knowledge content into the main conversation. Invoke when the task may benefit from team knowledge context — skip when the user already provided context, answers are in local files, or the change is trivial.
4
4
  tools: Bash, Read, Grep, Glob
5
5
  ---
6
6
 
package/dist/index.js CHANGED
@@ -1772,10 +1772,17 @@ var init_builtin_rules = __esm({
1772
1772
  ]);
1773
1773
  TEAMAI_RECALL_RULE_CONTENT = `# Team Knowledge Recall (teamai)
1774
1774
 
1775
- ## \u89C4\u5219\uFF1A\u4EFB\u52A1\u5F00\u59CB\u524D\u5FC5\u987B\u68C0\u7D22\u56E2\u961F\u77E5\u8BC6\u5E93
1775
+ ## \u89C4\u5219\uFF1A\u4EFB\u52A1\u5F00\u59CB\u524D\u68C0\u7D22\u56E2\u961F\u77E5\u8BC6\u5E93\uFF08\u63A8\u8350\uFF09
1776
1776
 
1777
- **Before** starting any task that involves code changes, debugging,
1778
- or design decisions, you **MUST** first search the team knowledge base.
1777
+ **Before** starting a task that involves code changes, debugging,
1778
+ or design decisions, you **SHOULD** search the team knowledge base
1779
+ \u2014 unless one of the skip conditions below applies.
1780
+
1781
+ ### \u8DF3\u8FC7\u6761\u4EF6\uFF08\u6EE1\u8DB3\u4EFB\u4E00\u5373\u53EF\u8DF3\u8FC7\u68C0\u7D22\uFF09
1782
+
1783
+ 1. **\u7528\u6237\u5DF2\u63D0\u4F9B\u4E0A\u4E0B\u6587** \u2014 \u7528\u6237\u5728\u6D88\u606F\u4E2D\u660E\u786E\u5F15\u7528\u4E86\u6587\u4EF6\u3001\u7ED9\u51FA\u4E86\u89E3\u51B3\u65B9\u6848\u3001\u6216\u8BF4\u660E"\u7B54\u6848\u5728\u5F53\u524D\u76EE\u5F55/\u8FD9\u4E2A\u6587\u4EF6\u91CC"
1784
+ 2. **\u672C\u5730\u6587\u4EF6\u5DF2\u6709\u7B54\u6848** \u2014 \u4EFB\u52A1\u4FE1\u606F\u53EF\u76F4\u63A5\u4ECE\u5F53\u524D\u5DE5\u4F5C\u533A\u6587\u4EF6\u83B7\u5F97\uFF08\u5982\u4FEE\u590D\u5F53\u524D\u6587\u4EF6\u4E2D\u660E\u663E\u7684 bug\uFF09
1785
+ 3. **\u7B80\u5355/\u5C40\u90E8\u6539\u52A8** \u2014 \u5BF9\u5DF2\u77E5\u6587\u4EF6\u505A\u5C0F\u8303\u56F4\u4FEE\u6539\uFF08\u4FEE typo\u3001\u8C03\u6574\u53C2\u6570\u503C\u3001\u6539\u683C\u5F0F\uFF09\uFF0C\u65E0\u9700\u989D\u5916\u77E5\u8BC6\u80CC\u666F
1779
1786
 
1780
1787
  ### \u65B9\u5F0F\u4E00\uFF1A\u901A\u8FC7 Subagent\uFF08\u63A8\u8350\uFF0C\u9002\u7528\u4E8E\u652F\u6301 Agent tool \u7684\u5DE5\u5177\uFF09
1781
1788
 
@@ -10146,15 +10153,24 @@ function compileRecallRulesBlock() {
10146
10153
  "",
10147
10154
  "## Team Knowledge Recall (teamai)",
10148
10155
  "",
10149
- "**Before** starting any task that involves code changes, debugging,",
10150
- "or design decisions, you **MUST** first invoke the `teamai-recall`",
10156
+ "**Before** starting a task that involves code changes, debugging,",
10157
+ "or design decisions, you **SHOULD** invoke the `teamai-recall`",
10151
10158
  "subagent via the Agent tool with a concise natural-language",
10152
- "description of the task. The subagent will return a compact summary",
10153
- "of relevant team knowledge (skills, learnings, docs, rules) without",
10154
- "polluting this conversation with raw content.",
10159
+ "description of the task \u2014 unless one of these skip conditions applies:",
10160
+ "",
10161
+ "1. **User already provided context** \u2014 the user referenced specific files,",
10162
+ ' gave a solution, or said "the answer is in this directory/file".',
10163
+ "2. **Local files have the answer** \u2014 the task info is directly available",
10164
+ " from the current workspace (e.g. fixing an obvious bug in the current file).",
10165
+ "3. **Trivial/local change** \u2014 small modifications to known files (typo fix,",
10166
+ " parameter tweak, formatting) that need no additional knowledge.",
10167
+ "",
10168
+ "The subagent will return a compact summary of relevant team knowledge",
10169
+ "(skills, learnings, docs, rules) without polluting this conversation",
10170
+ "with raw content.",
10155
10171
  "",
10156
- "**Important constraints on agent sequencing:**",
10157
- "1. Always invoke `teamai-recall` subagent **first and alone** \u2014 never",
10172
+ "**Important constraints on agent sequencing (when recall is invoked):**",
10173
+ "1. Invoke `teamai-recall` subagent **first and alone** \u2014 never",
10158
10174
  " launch it in parallel with Explore or other research agents.",
10159
10175
  "2. After recall returns results, use Read to get full content of the",
10160
10176
  " returned files if you need more detail. Do NOT launch Explore agents",
@@ -15073,12 +15089,13 @@ function buildHintMessage() {
15073
15089
  return [
15074
15090
  "[teamai:todowrite-hint] \u4EFB\u52A1\u5DF2\u89C4\u5212\u3002",
15075
15091
  "",
15076
- "\u8BF7\u786E\u8BA4\u672C\u6B21\u4EFB\u52A1\u5F00\u59CB\u524D\u5DF2\u901A\u8FC7 Agent tool \u8C03\u7528 teamai-recall subagent \u5B8C\u6210\u77E5\u8BC6\u5E93\u68C0\u7D22\uFF1B",
15077
- "\u5982\u672A\u68C0\u7D22\uFF0C\u8BF7\u7ACB\u5373\u8C03\u7528 teamai-recall\uFF08\u4E00\u6B21\u5373\u53EF\uFF09\uFF0C\u5B8C\u6210\u540E\u518D\u7EE7\u7EED\u540E\u7EED Todo\u3002",
15092
+ "\u5982\u672C\u6B21\u4EFB\u52A1\u53EF\u80FD\u53D7\u76CA\u4E8E\u56E2\u961F\u77E5\u8BC6\u5E93\uFF08\u975E\u7B80\u5355\u5C40\u90E8\u6539\u52A8\u3001\u7528\u6237\u672A\u63D0\u4F9B\u76F8\u5173\u4E0A\u4E0B\u6587\uFF09\uFF0C",
15093
+ "\u5EFA\u8BAE\u901A\u8FC7 Agent tool \u8C03\u7528 teamai-recall subagent \u68C0\u7D22\u4E00\u6B21\u3002",
15094
+ "\u82E5\u7528\u6237\u5DF2\u7ED9\u51FA\u5145\u5206\u4E0A\u4E0B\u6587\u6216\u4EC5\u4E3A\u7B80\u5355\u4FEE\u6539\uFF0C\u53EF\u8DF3\u8FC7\u3002",
15078
15095
  "",
15079
- "Task plan detected \u2014 confirm you have already invoked the `teamai-recall`",
15080
- "subagent for relevant team knowledge before executing the todo list.",
15081
- "If not, invoke it once now."
15096
+ "Task plan detected \u2014 if this task may benefit from team knowledge",
15097
+ "(not a trivial local change, user has not provided relevant context),",
15098
+ "consider invoking the `teamai-recall` subagent once before proceeding."
15082
15099
  ].join("\n");
15083
15100
  }
15084
15101
  async function todoWriteHint() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teamai-cli",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "description": "TeamAI — the team harness for AI agents (skill sync + shared knowledge base, powered by Git)",
5
5
  "type": "module",
6
6
  "bin": {