@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 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.1.tgz
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 steers the Lead to call `auto_team_score` again. The current goal and reporter stay in place.
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.1.tgz
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
- - 它提示 Lead 重新调用 `auto_team_score`;当前 goal 和汇报 Agent 保留。
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 and ask the Lead to score again.",
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.agent.steer(createMessage({
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: RESET_STEER_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
  }
package/package.json CHANGED
@@ -29,7 +29,7 @@
29
29
  "dsh": ">=0.2.1-rc.2 <0.3.0"
30
30
  },
31
31
  "type": "module",
32
- "version": "0.1.1",
32
+ "version": "0.1.2",
33
33
  "imports": {
34
34
  "#src/*": "./src/*.ts"
35
35
  },