@oh-my-dsh/auto-team 0.1.1 → 0.1.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.
- package/README.md +2 -2
- package/README.zh.md +2 -2
- package/lib/index.js +5 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ dsh plugin --profile <profile> add @oh-my-dsh/auto-team
|
|
|
60
60
|
Or install a locally packed tarball:
|
|
61
61
|
|
|
62
62
|
```sh
|
|
63
|
-
dsh plugin --profile <profile> add ./oh-my-dsh-auto-team-0.1.
|
|
63
|
+
dsh plugin --profile <profile> add ./oh-my-dsh-auto-team-0.1.2.tgz
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
The package name is `@oh-my-dsh/auto-team`, published under the `@oh-my-dsh` scope.
|
|
@@ -104,7 +104,7 @@ When the profile provides the host `commands` service, the plugin registers `aut
|
|
|
104
104
|
|
|
105
105
|
- `/auto-team-reset` clears the frozen score for the current session.
|
|
106
106
|
- It appends a `plugin:auto-team/reset` record, so resuming the session does not restore the cleared score.
|
|
107
|
-
- It
|
|
107
|
+
- It is silent by default. Any text after the command is sent to the Lead as a user message; use `/auto-team-reset call auto_team_score again` when you want the Lead to re-score. The current goal and reporter stay in place.
|
|
108
108
|
- The command is user-triggered; the model cannot invoke it.
|
|
109
109
|
|
|
110
110
|
## Guards and limits
|
package/README.zh.md
CHANGED
|
@@ -60,7 +60,7 @@ dsh plugin --profile <profile> add @oh-my-dsh/auto-team
|
|
|
60
60
|
或者安装本地打包的 tarball:
|
|
61
61
|
|
|
62
62
|
```sh
|
|
63
|
-
dsh plugin --profile <profile> add ./oh-my-dsh-auto-team-0.1.
|
|
63
|
+
dsh plugin --profile <profile> add ./oh-my-dsh-auto-team-0.1.2.tgz
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
包名是 `@oh-my-dsh/auto-team`,发布在 `@oh-my-dsh` scope 下。
|
|
@@ -104,7 +104,7 @@ profile 提供宿主 `commands` 服务时,插件注册 `auto-team-reset`:
|
|
|
104
104
|
|
|
105
105
|
- `/auto-team-reset` 清空当前 session 的冻结分数。
|
|
106
106
|
- 它写入 `plugin:auto-team/reset` 记录,resume 时不会恢复被清掉的分数。
|
|
107
|
-
-
|
|
107
|
+
- 它默认静默,不发送消息;命令后附带的文字会作为用户消息发给 Lead。想让 Lead 重新打分就写 `/auto-team-reset call auto_team_score again`。当前 goal 和汇报 Agent 保留。
|
|
108
108
|
- 命令由用户触发,模型不能调用。
|
|
109
109
|
|
|
110
110
|
## 闸门与限制
|
package/lib/index.js
CHANGED
|
@@ -207,8 +207,6 @@ const autoTeamProjectionDefinition = {
|
|
|
207
207
|
*/
|
|
208
208
|
/** First-round steering text used when the scoring tool has not run yet. */
|
|
209
209
|
const FIRST_ROUND_STEER_TEXT = `Auto Team: the first round has no score yet. Call auto_team_score now with the five difficulty factors and the task's universal-semantic objective; the turn stays open until the decision is recorded.`;
|
|
210
|
-
/** Steering text used after the user resets the frozen score. */
|
|
211
|
-
const RESET_STEER_TEXT = `Auto Team: the user reset the score. Call auto_team_score again with the current task's difficulty factors and objective before continuing.`;
|
|
212
210
|
/** System prompt section that states the Lead's auto-team obligations. */
|
|
213
211
|
function policyText(reportingAgentName, leadDeniedTools) {
|
|
214
212
|
return `Auto Team policy
|
|
@@ -245,25 +243,23 @@ Handle user-facing detail questions sent through the Lead. Record unresolved det
|
|
|
245
243
|
function createResetCommand(autoTeam) {
|
|
246
244
|
return {
|
|
247
245
|
name: "auto-team-reset",
|
|
248
|
-
description: "Clear the frozen Auto Team score for this session
|
|
246
|
+
description: "Clear the frozen Auto Team score for this session.",
|
|
249
247
|
handler: (invocation) => {
|
|
250
248
|
if (autoTeam.decisionOf(invocation.agent) === void 0) return {
|
|
251
249
|
kind: "error",
|
|
252
250
|
text: "No frozen Auto Team score exists in this session."
|
|
253
251
|
};
|
|
254
252
|
autoTeam.reset(invocation.agent);
|
|
255
|
-
invocation.
|
|
253
|
+
const message = invocation.rawInput.trim();
|
|
254
|
+
if (message.length > 0) invocation.agent.steer(createMessage({
|
|
256
255
|
role: "user",
|
|
257
256
|
content: [{
|
|
258
257
|
type: "text",
|
|
259
|
-
text:
|
|
258
|
+
text: message
|
|
260
259
|
}],
|
|
261
260
|
source: { kind: "user" }
|
|
262
261
|
}));
|
|
263
|
-
return {
|
|
264
|
-
kind: "success",
|
|
265
|
-
text: "Auto Team score reset. The Lead will score again."
|
|
266
|
-
};
|
|
262
|
+
return { kind: "success" };
|
|
267
263
|
}
|
|
268
264
|
};
|
|
269
265
|
}
|