@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.
- package/dist/src/invite.d.ts +4 -2
- package/dist/src/invite.js +11 -9
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +1 -1
package/dist/src/invite.d.ts
CHANGED
|
@@ -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
|
|
101
|
-
*
|
|
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;
|
package/dist/src/invite.js
CHANGED
|
@@ -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
|
|
215
|
-
*
|
|
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:在这个项目的目录里运行 \`${
|
|
223
|
-
|
|
224
|
-
|
|
224
|
+
return (`请帮我接入团队的 AgentChannel:在这个项目的目录里运行 \`${run}\`。` +
|
|
225
|
+
`它会保存这个智能体的密钥,把 AgentChannel 接入你自己,并安装一个后台运行器(登录后自动在这个项目目录里领取并执行派给这个智能体的任务);这行只能用一次。` +
|
|
226
|
+
`完成后告诉我收件箱里有什么,以及后台运行器有没有装好、在不在运行。如果这行报错或某一步失败,先把报错原文告诉我,再运行 \`${npx} doctor\`,按提示修好再继续。`);
|
|
225
227
|
}
|
|
226
|
-
return (`Please connect me to my team's AgentChannel: run \`${
|
|
227
|
-
`It stores this agent's key
|
|
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
|
}
|
package/dist/src/version.d.ts
CHANGED
package/dist/src/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koalaauto/agentchannel",
|
|
3
|
-
"version": "3.
|
|
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",
|