@koalaauto/agentchannel 3.19.0 → 3.20.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.
@@ -97,7 +97,9 @@ export declare function achCommand(env?: NodeJS.ProcessEnv, self?: string): stri
97
97
  export declare function shadowHint(env?: NodeJS.ProcessEnv, self?: string, zh?: boolean): string | undefined;
98
98
  /**
99
99
  * `ach admin invite <agent>`: a paragraph the admin sends and the engineer
100
- * pastes into their own Claude Code / Codex, which then does the setup and
101
- * asks before installing the background helper. `line` is joinLine(...).
100
+ * pastes into their own Claude Code / Codex, which then does the whole setup,
101
+ * the background runner included (`--service`): without a runner nobody picks
102
+ * up the tasks sent to this agent. The paragraph says so, so pasting it is the
103
+ * consent. `line` is joinLine(...).
102
104
  */
103
105
  export declare function agentInvitePrompt(line: string, lang?: 'en' | 'zh'): string;
@@ -211,19 +211,21 @@ export function shadowHint(env = process.env, self = thisCliPath(), zh = false)
211
211
  }
212
212
  /**
213
213
  * `ach admin invite <agent>`: a paragraph the admin sends and the engineer
214
- * pastes into their own Claude Code / Codex, which then does the setup and
215
- * asks before installing the background helper. `line` is joinLine(...).
214
+ * pastes into their own Claude Code / Codex, which then does the whole setup,
215
+ * the background runner included (`--service`): without a runner nobody picks
216
+ * up the tasks sent to this agent. The paragraph says so, so pasting it is the
217
+ * consent. `line` is joinLine(...).
216
218
  */
217
219
  export function agentInvitePrompt(line, lang = 'en') {
218
- // the line is the consent: run by an agent it stores the key and connects the agent's own tool, nothing else
219
220
  const spec = /^npx -y (\S+) join /.exec(line)?.[1] ?? npmSpec();
220
221
  const npx = `npx -y ${spec}`;
222
+ const run = / --service(\s|$)/.test(line) ? line : `${line} --service`;
221
223
  if (lang === 'zh') {
222
- return (`请帮我接入团队的 AgentChannel:在这个项目的目录里运行 \`${line}\`。` +
223
- `它会保存这个智能体的密钥,并把 AgentChannel 接入你自己,不会安装别的东西;这行只能用一次。` +
224
- `完成后告诉我收件箱里有什么。如果这行报错,先把报错原文告诉我,再运行 \`${npx} doctor\`,按提示修好再继续。`);
224
+ return (`请帮我接入团队的 AgentChannel:在这个项目的目录里运行 \`${run}\`。` +
225
+ `它会保存这个智能体的密钥,把 AgentChannel 接入你自己,并安装一个后台运行器(登录后自动在这个项目目录里领取并执行派给这个智能体的任务);这行只能用一次。` +
226
+ `完成后告诉我收件箱里有什么,以及后台运行器有没有装好、在不在运行。如果这行报错或某一步失败,先把报错原文告诉我,再运行 \`${npx} doctor\`,按提示修好再继续。`);
225
227
  }
226
- return (`Please connect me to my team's AgentChannel: run \`${line}\` in this project's directory. ` +
227
- `It stores this agent's key and adds AgentChannel to you; it installs nothing else (the line works once). ` +
228
- `Then tell me what is in my inbox. If the line fails, tell me its exact error first, then run \`${npx} doctor\`, fix what it says, and continue.`);
228
+ return (`Please connect me to my team's AgentChannel: run \`${run}\` in this project's directory. ` +
229
+ `It stores this agent's key, adds AgentChannel to you, and installs a background runner (it starts at login and picks up the tasks sent to this agent, working in this project's directory); the line works once. ` +
230
+ `Then tell me what is in my inbox and whether the background runner is installed and running. If the line fails or a step fails, tell me its exact error first, then run \`${npx} doctor\`, fix what it says, and continue.`);
229
231
  }
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "3.19.0";
1
+ export declare const VERSION = "3.20.0";
2
2
  /** The npm package (scripts/release.mjs keeps it and VERSION in step with package.json). */
3
3
  export declare const PKG_NAME = "@koalaauto/agentchannel";
4
4
  /**
@@ -1,4 +1,4 @@
1
- export const VERSION = '3.19.0';
1
+ export const VERSION = '3.20.0';
2
2
  /** The npm package (scripts/release.mjs keeps it and VERSION in step with package.json). */
3
3
  export const PKG_NAME = '@koalaauto/agentchannel';
4
4
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koalaauto/agentchannel",
3
- "version": "3.19.0",
3
+ "version": "3.20.0",
4
4
  "description": "Hand work between your team's agents (Claude Code, Codex) and follow it in one panel: the ach CLI, MCP server and runner for AgentChannel v2",
5
5
  "keywords": [
6
6
  "agentchannel",