@koalaauto/agentchannel 3.22.0 → 3.24.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/README.md CHANGED
@@ -165,6 +165,9 @@ hooks or global `AGENTS.md`) and a link to the login file of your Codex home
165
165
  ## Where things are kept
166
166
 
167
167
  - Settings: `~/.config/agentchannel/config.json` (set `AGENTCHANNEL_HOME` to move it).
168
+ - One agent per home. A second agent joined on the same machine (another project) gets its own,
169
+ `~/.config/agentchannel/agents/<name>`, and is added to that project's Claude Code only; its commands
170
+ (`ach run`, the service) run with `AGENTCHANNEL_HOME` set to that folder.
168
171
  - Secrets (agent key, front-door pass, admin session): the OS keychain, or files
169
172
  with mode 0600 in the same folder when no keychain is available.
170
173
 
@@ -56,6 +56,8 @@ export interface FakeAdapterOptions {
56
56
  ach?: AchCall;
57
57
  /** Behave like codex: answer runs return JSON and the runner posts it. */
58
58
  structuredAnswers?: boolean;
59
+ /** Behave like kiro: no `ach` in the run; the runner reports the final text (implies structuredAnswers). */
60
+ remote?: boolean;
59
61
  }
60
62
  /** Default: spawn this package's CLI with node. */
61
63
  export declare const spawnAch: AchCall;
@@ -64,6 +66,7 @@ export declare class FakeAdapter implements RuntimeAdapter {
64
66
  private o;
65
67
  readonly name = "fake";
66
68
  readonly structuredAnswers: boolean;
69
+ readonly remote: boolean;
67
70
  runs: FakeRunInfo[];
68
71
  achCalls: {
69
72
  args: string[];
@@ -30,11 +30,13 @@ export class FakeAdapter {
30
30
  o;
31
31
  name = 'fake';
32
32
  structuredAnswers;
33
+ remote;
33
34
  runs = [];
34
35
  achCalls = [];
35
36
  constructor(o) {
36
37
  this.o = o;
37
- this.structuredAnswers = !!o.structuredAnswers;
38
+ this.structuredAnswers = !!o.structuredAnswers || !!o.remote;
39
+ this.remote = !!o.remote;
38
40
  }
39
41
  async run(opts) {
40
42
  const info = {
@@ -2,10 +2,12 @@ import type { RuntimeAdapter } from './types.js';
2
2
  export * from './types.js';
3
3
  export { ClaudeAdapter } from './claude.js';
4
4
  export { CodexAdapter } from './codex.js';
5
+ export { KiroAdapter } from './kiro.js';
5
6
  export { FakeAdapter } from './fake.js';
6
7
  export * from './paths.js';
7
8
  /** The git common dir of a worktree (readable for git log/diff; never writable, S10). */
8
9
  export declare function gitCommonDir(cwd: string): string[];
9
10
  export declare function makeAdapter(runtime: string, o?: {
10
11
  model?: string;
12
+ env?: Record<string, string | undefined>;
11
13
  }): RuntimeAdapter;
@@ -2,9 +2,11 @@ import { execFileSync } from 'node:child_process';
2
2
  import { resolve } from 'node:path';
3
3
  import { ClaudeAdapter } from './claude.js';
4
4
  import { CodexAdapter } from './codex.js';
5
+ import { KiroAdapter } from './kiro.js';
5
6
  export * from './types.js';
6
7
  export { ClaudeAdapter } from './claude.js';
7
8
  export { CodexAdapter } from './codex.js';
9
+ export { KiroAdapter } from './kiro.js';
8
10
  export { FakeAdapter } from './fake.js';
9
11
  export * from './paths.js';
10
12
  /** The git common dir of a worktree (readable for git log/diff; never writable, S10). */
@@ -22,5 +24,7 @@ export function makeAdapter(runtime, o = {}) {
22
24
  return new ClaudeAdapter({ model: o.model });
23
25
  if (runtime === 'codex')
24
26
  return new CodexAdapter({ model: o.model });
25
- throw new Error(`Unknown runtime "${runtime}" (use claude or codex)`);
27
+ if (runtime === 'kiro')
28
+ return new KiroAdapter({ model: o.model, env: o.env });
29
+ throw new Error(`Unknown runtime "${runtime}" (use claude, codex or kiro)`);
26
30
  }
@@ -0,0 +1,81 @@
1
+ import type { AdapterEvent, AdapterResult, AdapterRunOptions, RuntimeAdapter } from './types.js';
2
+ /**
3
+ * Kiro runtime: each run is a Kiro cloud session started headlessly with
4
+ * `kiro-cli chat --v3 --no-interactive --cloud --repo <owner/name> "<prompt>"` (KIRO_API_KEY).
5
+ *
6
+ * The agent runs in Kiro's sandbox on a fresh clone of the repo, not on this machine: it has no `ach` CLI and no hub
7
+ * credentials (Kiro Secrets are account-wide, so the run token is never handed to it). The runner completes / fails
8
+ * the task and posts answers and mention replies from the final text (remote + structuredAnswers).
9
+ *
10
+ * Verified 2026-11-06 with kiro-cli 2.37.1 (2.31.0 refuses non-interactive --cloud).
11
+ */
12
+ export declare const KIRO_MIN_VERSION = "2.37.1";
13
+ /** "2.37.1" from `kiro-cli --version` output ("kiro-cli 2.37.1"). */
14
+ export declare function parseKiroVersion(out: string): string | undefined;
15
+ /** a >= b for dotted versions. Pure. */
16
+ export declare function versionAtLeast(a: string, b: string): boolean;
17
+ /** "owner/name" from a GitHub remote URL (https or ssh), else undefined. Pure. */
18
+ export declare function githubRepoOf(url: string): string | undefined;
19
+ /** The repo Kiro clones for a run in `cwd`: ACH_KIRO_REPO, else the `origin` remote of cwd. */
20
+ export declare function kiroRepoFor(cwd: string, env: Record<string, string | undefined>, git?: (args: string[], cwd: string) => string): string | undefined;
21
+ export declare function kiroArgs(o: {
22
+ repo: string;
23
+ prompt: string;
24
+ model?: string;
25
+ resume?: string;
26
+ format: 'stream-json' | 'text';
27
+ }): string[];
28
+ /**
29
+ * The environment kiro-cli runs with on this machine: the agent env without the hub's run variables (the cloud agent
30
+ * must never get them), the runner's real HOME (kiro-cli keeps its login there) and KIRO_API_KEY.
31
+ */
32
+ export declare function kiroEnv(agentEnv: Record<string, string>, o: {
33
+ realHome?: string;
34
+ apiKey?: string;
35
+ }): Record<string, string>;
36
+ export declare const stripAnsi: (s: string) => string;
37
+ /** The session id named in a line of text output ("Session ID: ..."), if any. Pure. */
38
+ export declare function sessionInText(line: string): string | undefined;
39
+ /**
40
+ * Turns kiro-cli output into adapter events and the final text. `--output-format stream-json` prints the run's ACP
41
+ * events, one JSON object per line (session/update notifications: agent_message_chunk, agent_thought_chunk, tool_call,
42
+ * tool_call_update); text mode prints a readable transcript. Lines that are not JSON are kept as text, so either format
43
+ * (or a mix) yields a result. The final text is the agent's last message: what it said after its last tool call.
44
+ */
45
+ export declare class KiroOutput {
46
+ private onEvent;
47
+ sessionId?: string;
48
+ credits?: number;
49
+ jsonLines: number;
50
+ private buf;
51
+ private message;
52
+ private messages;
53
+ private text;
54
+ constructor(onEvent: (e: AdapterEvent) => void);
55
+ push(chunk: string): void;
56
+ end(): void;
57
+ /** The agent's last message (stream-json), else the text transcript's tail. */
58
+ finalText(): string;
59
+ private flushMessage;
60
+ private setSession;
61
+ private line;
62
+ }
63
+ export interface KiroAdapterOptions {
64
+ model?: string;
65
+ /** kiro-cli path (default: ACH_KIRO_BIN, else `kiro-cli` on PATH). */
66
+ bin?: string;
67
+ /** KIRO_API_KEY (default: from the runner's environment). */
68
+ apiKey?: string;
69
+ /** The runner's environment (ACH_KIRO_BIN, ACH_KIRO_REPO, KIRO_API_KEY). */
70
+ env?: Record<string, string | undefined>;
71
+ git?: (args: string[], cwd: string) => string;
72
+ }
73
+ export declare class KiroAdapter implements RuntimeAdapter {
74
+ private o;
75
+ readonly name = "kiro";
76
+ readonly structuredAnswers = true;
77
+ readonly remote = true;
78
+ constructor(o?: KiroAdapterOptions);
79
+ run(opts: AdapterRunOptions): Promise<AdapterResult>;
80
+ private runOnce;
81
+ }
@@ -0,0 +1,297 @@
1
+ import { execFileSync } from 'node:child_process';
2
+ import { spawnGroup } from './procgroup.js';
3
+ /**
4
+ * Kiro runtime: each run is a Kiro cloud session started headlessly with
5
+ * `kiro-cli chat --v3 --no-interactive --cloud --repo <owner/name> "<prompt>"` (KIRO_API_KEY).
6
+ *
7
+ * The agent runs in Kiro's sandbox on a fresh clone of the repo, not on this machine: it has no `ach` CLI and no hub
8
+ * credentials (Kiro Secrets are account-wide, so the run token is never handed to it). The runner completes / fails
9
+ * the task and posts answers and mention replies from the final text (remote + structuredAnswers).
10
+ *
11
+ * Verified 2026-11-06 with kiro-cli 2.37.1 (2.31.0 refuses non-interactive --cloud).
12
+ */
13
+ export const KIRO_MIN_VERSION = '2.37.1';
14
+ /** "2.37.1" from `kiro-cli --version` output ("kiro-cli 2.37.1"). */
15
+ export function parseKiroVersion(out) {
16
+ return out.match(/(\d+\.\d+\.\d+)/)?.[1];
17
+ }
18
+ /** a >= b for dotted versions. Pure. */
19
+ export function versionAtLeast(a, b) {
20
+ const x = a.split('.').map(Number);
21
+ const y = b.split('.').map(Number);
22
+ for (let i = 0; i < Math.max(x.length, y.length); i++) {
23
+ const d = (x[i] ?? 0) - (y[i] ?? 0);
24
+ if (d)
25
+ return d > 0;
26
+ }
27
+ return true;
28
+ }
29
+ /** "owner/name" from a GitHub remote URL (https or ssh), else undefined. Pure. */
30
+ export function githubRepoOf(url) {
31
+ const m = url.trim().match(/github\.com[:/]([^/\s]+)\/([^/\s]+?)(?:\.git)?\/?$/i);
32
+ return m ? `${m[1]}/${m[2]}` : undefined;
33
+ }
34
+ /** The repo Kiro clones for a run in `cwd`: ACH_KIRO_REPO, else the `origin` remote of cwd. */
35
+ export function kiroRepoFor(cwd, env, git = gitOut) {
36
+ if (env.ACH_KIRO_REPO?.trim())
37
+ return env.ACH_KIRO_REPO.trim();
38
+ try {
39
+ return githubRepoOf(git(['remote', 'get-url', 'origin'], cwd));
40
+ }
41
+ catch {
42
+ return undefined;
43
+ }
44
+ }
45
+ function gitOut(args, cwd) {
46
+ return execFileSync('git', args, { cwd, encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] });
47
+ }
48
+ export function kiroArgs(o) {
49
+ return [
50
+ 'chat',
51
+ '--v3',
52
+ '--no-interactive',
53
+ '--cloud',
54
+ '--repo',
55
+ o.repo,
56
+ ...(o.format === 'stream-json' ? ['--output-format', 'stream-json'] : []),
57
+ ...(o.model ? ['--model', o.model] : []),
58
+ ...(o.resume ? ['--resume-id', o.resume] : []),
59
+ o.prompt,
60
+ ];
61
+ }
62
+ /**
63
+ * The environment kiro-cli runs with on this machine: the agent env without the hub's run variables (the cloud agent
64
+ * must never get them), the runner's real HOME (kiro-cli keeps its login there) and KIRO_API_KEY.
65
+ */
66
+ export function kiroEnv(agentEnv, o) {
67
+ const env = {};
68
+ for (const [k, v] of Object.entries(agentEnv))
69
+ if (!/^ACH_/.test(k))
70
+ env[k] = v;
71
+ if (o.realHome)
72
+ env.HOME = o.realHome;
73
+ if (o.apiKey)
74
+ env.KIRO_API_KEY = o.apiKey;
75
+ return env;
76
+ }
77
+ const ANSI = /\x1b\[[0-9;?]*[ -/]*[@-~]|\x1b\][^\x07]*(?:\x07|\x1b\\)/g;
78
+ export const stripAnsi = (s) => s.replace(ANSI, '');
79
+ const SESSION_RE = /session(?:[ _-]?id)?\s*[:=]?\s*["']?([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[A-Za-z0-9][A-Za-z0-9_-]{11,})/i;
80
+ /** The session id named in a line of text output ("Session ID: ..."), if any. Pure. */
81
+ export function sessionInText(line) {
82
+ return stripAnsi(line).match(SESSION_RE)?.[1];
83
+ }
84
+ /**
85
+ * Turns kiro-cli output into adapter events and the final text. `--output-format stream-json` prints the run's ACP
86
+ * events, one JSON object per line (session/update notifications: agent_message_chunk, agent_thought_chunk, tool_call,
87
+ * tool_call_update); text mode prints a readable transcript. Lines that are not JSON are kept as text, so either format
88
+ * (or a mix) yields a result. The final text is the agent's last message: what it said after its last tool call.
89
+ */
90
+ export class KiroOutput {
91
+ onEvent;
92
+ sessionId;
93
+ credits;
94
+ jsonLines = 0;
95
+ buf = '';
96
+ message = '';
97
+ messages = [];
98
+ text = [];
99
+ constructor(onEvent) {
100
+ this.onEvent = onEvent;
101
+ }
102
+ push(chunk) {
103
+ this.buf += chunk;
104
+ let i;
105
+ while ((i = this.buf.indexOf('\n')) >= 0) {
106
+ this.line(this.buf.slice(0, i));
107
+ this.buf = this.buf.slice(i + 1);
108
+ }
109
+ }
110
+ end() {
111
+ if (this.buf)
112
+ this.line(this.buf);
113
+ this.buf = '';
114
+ this.flushMessage();
115
+ }
116
+ /** The agent's last message (stream-json), else the text transcript's tail. */
117
+ finalText() {
118
+ const last = [...this.messages].reverse().find((m) => m.trim());
119
+ if (last)
120
+ return last.trim();
121
+ return this.text.join('\n').trim().slice(-8000);
122
+ }
123
+ flushMessage() {
124
+ if (this.message.trim()) {
125
+ this.messages.push(this.message);
126
+ this.onEvent({ type: 'text', data: this.message });
127
+ }
128
+ this.message = '';
129
+ }
130
+ setSession(id) {
131
+ if (typeof id !== 'string' || !id || id === this.sessionId)
132
+ return;
133
+ this.sessionId = id;
134
+ this.onEvent({ type: 'session', data: id });
135
+ }
136
+ line(raw) {
137
+ const line = raw.replace(/\r$/, '');
138
+ if (!line.trim())
139
+ return;
140
+ let j;
141
+ if (line.trimStart().startsWith('{')) {
142
+ try {
143
+ j = JSON.parse(line);
144
+ }
145
+ catch {
146
+ j = undefined;
147
+ }
148
+ }
149
+ if (!j || typeof j !== 'object') {
150
+ const t = stripAnsi(line);
151
+ this.text.push(t);
152
+ if (!this.sessionId)
153
+ this.setSession(sessionInText(t));
154
+ this.onEvent({ type: 'tool', data: { type: 'output' } });
155
+ return;
156
+ }
157
+ this.jsonLines++;
158
+ const p = j.params ?? j;
159
+ this.setSession(p.sessionId ?? p.session_id ?? j.sessionId ?? j.session_id);
160
+ const credits = findCredits(j);
161
+ if (credits !== undefined) {
162
+ this.credits = credits;
163
+ this.onEvent({ type: 'usage', data: { credits } });
164
+ }
165
+ const u = p.update ?? j.update ?? j;
166
+ const kind = String(u.sessionUpdate ?? u.type ?? j.type ?? j.method ?? '');
167
+ switch (kind) {
168
+ case 'agent_message_chunk':
169
+ this.message += contentText(u.content);
170
+ break;
171
+ case 'agent_thought_chunk': {
172
+ const t = contentText(u.content);
173
+ if (t.trim())
174
+ this.onEvent({ type: 'thinking', data: t });
175
+ break;
176
+ }
177
+ case 'tool_call':
178
+ this.flushMessage();
179
+ this.onEvent({ type: 'tool_start', data: { id: String(u.toolCallId ?? u.id ?? ''), name: String(u.title ?? u.kind ?? 'tool'), input: u.rawInput ?? '' } });
180
+ if (u.status === 'completed' || u.status === 'failed')
181
+ this.onEvent({ type: 'tool_end', data: { id: String(u.toolCallId ?? u.id ?? ''), is_error: u.status === 'failed' } });
182
+ break;
183
+ case 'tool_call_update':
184
+ if (u.status === 'completed' || u.status === 'failed') {
185
+ this.onEvent({ type: 'tool_end', data: { id: String(u.toolCallId ?? u.id ?? ''), is_error: u.status === 'failed', output: contentText(u.content) || (u.rawOutput ? JSON.stringify(u.rawOutput) : '') } });
186
+ }
187
+ else
188
+ this.onEvent({ type: 'tool', data: { type: kind } });
189
+ break;
190
+ default:
191
+ if (j.error)
192
+ this.onEvent({ type: 'error', data: typeof j.error === 'string' ? j.error : (j.error.message ?? JSON.stringify(j.error)) });
193
+ else
194
+ this.onEvent({ type: 'tool', data: { type: kind || 'event' } });
195
+ }
196
+ }
197
+ }
198
+ /** Text of an ACP content block (or a list of them). */
199
+ function contentText(c) {
200
+ if (!c)
201
+ return '';
202
+ if (typeof c === 'string')
203
+ return c;
204
+ if (Array.isArray(c))
205
+ return c.map(contentText).join('');
206
+ if (typeof c.text === 'string')
207
+ return c.text;
208
+ if (c.content)
209
+ return contentText(c.content);
210
+ return '';
211
+ }
212
+ /** A credits figure anywhere in an event ("credits", "creditsUsed", "credits_used"), if Kiro reports one. */
213
+ function findCredits(o, depth = 0) {
214
+ if (!o || typeof o !== 'object' || depth > 4)
215
+ return undefined;
216
+ for (const [k, v] of Object.entries(o)) {
217
+ if (/^credits?(_?used)?$/i.test(k) && typeof v === 'number' && Number.isFinite(v))
218
+ return v;
219
+ const inner = findCredits(v, depth + 1);
220
+ if (inner !== undefined)
221
+ return inner;
222
+ }
223
+ return undefined;
224
+ }
225
+ /** The format flag was refused: retry in text mode. */
226
+ const FORMAT_REFUSED = /output[- ]format|stream-json|unexpected argument|not supported/i;
227
+ export class KiroAdapter {
228
+ o;
229
+ name = 'kiro';
230
+ structuredAnswers = true;
231
+ remote = true;
232
+ constructor(o = {}) {
233
+ this.o = o;
234
+ }
235
+ async run(opts) {
236
+ const env = this.o.env ?? process.env;
237
+ const repo = kiroRepoFor(opts.cwd, { ...env, ...opts.env, ACH_KIRO_REPO: env.ACH_KIRO_REPO }, this.o.git);
238
+ if (!repo) {
239
+ const error = `kiro: no GitHub repo for ${opts.cwd} (set ACH_KIRO_REPO=owner/name, or give the directory a github.com origin remote)`;
240
+ opts.onEvent({ type: 'error', data: error });
241
+ return { finalText: '', ok: false, error };
242
+ }
243
+ const first = await this.runOnce(opts, repo, 'stream-json');
244
+ if (!first.result.ok && !first.progressed && !opts.signal.aborted && FORMAT_REFUSED.test(first.result.error ?? '')) {
245
+ opts.onEvent({ type: 'error', data: 'kiro-cli refused --output-format stream-json; running in text mode' });
246
+ return (await this.runOnce(opts, repo, 'text')).result;
247
+ }
248
+ return first.result;
249
+ }
250
+ runOnce(opts, repo, format) {
251
+ const env = this.o.env ?? process.env;
252
+ const bin = this.o.bin ?? env.ACH_KIRO_BIN ?? 'kiro-cli';
253
+ const apiKey = this.o.apiKey ?? env.KIRO_API_KEY;
254
+ let progressed = false;
255
+ let stderr = '';
256
+ const out = new KiroOutput((e) => {
257
+ if (e.type !== 'tool' || e.data?.type !== 'output')
258
+ progressed = true;
259
+ opts.onEvent(e);
260
+ });
261
+ return new Promise((resolve) => {
262
+ let child;
263
+ try {
264
+ child = spawnGroup(bin, kiroArgs({ repo, prompt: opts.prompt, model: this.o.model, resume: opts.resume, format }), {
265
+ cwd: opts.cwd,
266
+ env: kiroEnv(opts.env, { realHome: opts.realHome, apiKey }),
267
+ signal: opts.signal,
268
+ onStderr: (t) => {
269
+ stderr = (stderr + t).slice(-4000);
270
+ opts.onEvent({ type: 'error', data: stripAnsi(t) });
271
+ },
272
+ });
273
+ }
274
+ catch (e) {
275
+ resolve({ result: { finalText: '', ok: false, error: `kiro-cli: ${e?.message ?? e}` }, progressed });
276
+ return;
277
+ }
278
+ child.stdin?.end();
279
+ child.stdout?.setEncoding('utf8');
280
+ child.stdout?.on('data', (d) => out.push(d));
281
+ let done = false;
282
+ const finish = (code, err) => {
283
+ if (done)
284
+ return;
285
+ done = true;
286
+ out.end();
287
+ const finalText = out.finalText();
288
+ const ok = !err && code === 0 && !opts.signal.aborted;
289
+ const error = ok ? undefined : opts.signal.aborted ? 'aborted' : err ?? (stripAnsi(stderr).trim().split('\n').slice(-3).join(' ') || `kiro-cli exited ${code}`);
290
+ // Kiro bills credits, not dollars, and the CLI does not print them (2.37.1): the cost stays unknown, never guessed.
291
+ resolve({ result: { finalText, sessionId: out.sessionId, ok, error, estimated: true }, progressed });
292
+ };
293
+ child.on('error', (e) => finish(null, e?.code === 'ENOENT' ? `kiro-cli not found (${bin}): install it (curl -fsSL https://cli.kiro.dev/install | bash) or set ACH_KIRO_BIN` : String(e?.message ?? e)));
294
+ child.on('close', (code) => finish(code));
295
+ });
296
+ }
297
+ }
@@ -54,5 +54,10 @@ export interface RuntimeAdapter {
54
54
  readonly name: string;
55
55
  /** True when answer runs return JSON (ANSWER_SCHEMA) and the runner posts it (codex). */
56
56
  readonly structuredAnswers?: boolean;
57
+ /**
58
+ * True when the agent runs somewhere else (a Kiro cloud sandbox) with no `ach` CLI and no hub credentials: the prompt
59
+ * says so, and the runner completes or fails the task with the run's final text (it implies structuredAnswers).
60
+ */
61
+ readonly remote?: boolean;
57
62
  run(opts: AdapterRunOptions): Promise<AdapterResult>;
58
63
  }
@@ -10,5 +10,5 @@ export interface Parsed {
10
10
  export declare class UsageError extends Error {
11
11
  }
12
12
  export declare function parseCli(argv: string[]): Parsed;
13
- export declare const HELP = "ach - AgentChannel CLI\n\nSetup: npx -y @koalaauto/agentchannel@3 join <ach2.invite> [--name <n>] [--service] [--yes] [--dry-run] (run it in the\n project directory: a line from the panel's \"Connect an agent\" creates the agent there, named\n \"<your name>-<directory>\" (lowercase) unless --name says otherwise; a line from the panel or\n `ach admin invite <agent>`: stores the agent's key and adds the `ach` MCP server to the agent's own tool\n (Claude Code or Codex). In a terminal it shows the hub and every command first and asks once; --yes skips\n that; run by an agent (no terminal) it just does it. --service also installs the background helper\n (notifications only where there is a desktop). --dry-run prints the plan and uses nothing)\n ach login --hub <url> --key <ach_sk_...> | ach me | ach agents\n ach doctor (hub, front door, key; then this machine: which `ach` runs, claude/codex login and MCP entry)\n ach notify --test (shows a test desktop notification: checks the background helper can reach you)\nTasks: ach send --to <agent> --title <t> --priority P0..P3 --purpose <p> --key-question <q> --money <m> --handoff-file <f>\n [--depends <id>] [--base <branch|commit>] [--repo <name>] [--read-repo <name>[@base] ...] [--attach <file> ...]\n [--review] (the task waits for acceptance when its worker is done: ach accept or ach request-changes)\n ach accept <task> [<note>] | ach request-changes <task> \"<what to change>\" (the sender's side judges work sent with --review)\n ach handoff <taskId> --note <change note> [--file <f>] [--priority P0..P3] [--purpose p] [--money m] [--key-question q] [--attach <file> ...]\n [--channel <name>] (default: the channel named like --repo, else #general)\n ach task <id|TASK-128> (lists attachments with download URLs) | ach inbox [--owner]\n Every task argument also takes the TASK-<seq> number shown in the panel (TASK-128; T-128 still works).\n ach download <taskId> [--out <dir>] (fetches every attachment; default ./ach-files-<taskId>)\nRecurring: ach schedule add --to <agent> --title <t> --money <m> --handoff-file <f> --every day|weekday|week|month --at HH:MM\n [--weekday 1..7] [--day 1..28] [--tz +08:00] [--purpose p] [--priority P0..P3] [--channel <name>]\n (a proposal: it runs only after your owner replies \"approve\"; {date} in the title/handoff becomes the run's date;\n a run is skipped while the previous one is still open)\n ach schedule add ... --on task_completed|task_failed|figure|post --match '<json>' (an event rule instead of a time:\n task: {\"to\":\"puller\",\"title\":\"pull\"} (its own tasks only); figure: {\"topic\":\"ads\",\"metric\":\"Meta daily spend\",\"op\":\">\",\"value\":5000};\n post: {\"channel\":\"ci\",\"contains\":\"failed\"}. {ref} {title} {link} {metric} {value} {unit} {text} fill the title/handoff)\n ach schedules | ach schedule pause <id> | ach schedule rm <id> (resume: your owner, in the panel or with a person's session)\nMessages: ach ask [--task <id>] [--to <agent>] \"<question>\"\n ach answer [--task <id>] --reply-to <msgId> --evidence \"<files/commands>\" \"<answer>\"\n ach decide [--task <id>] <requestId> \"<reply>\" (interactive sessions only, with your agent key: your owner's reply, marked \"via <agent>\")\n ach decide [--task <id>] <requestId> --grant <id> --option <n> (a runner, within an authorization grant)\nAuthorization: ach grant (--agent <name> | --person <who>) (--task <TASK-n> | --channel <name>) --cap <usd> [--until YYYY-MM-DD]\n [--note \"<guidance>\"] [--requester <agent|person>] (your agent key: you, present, grant it; never a run token)\n ach grants | ach revoke <grantId>\n ach ask-human [--task <id>] [--to both|<person name|email>] \"<one question>\" --option \"A|detail|$450\" --option \"B|detail|$0\" [--recommend 0]\n (2\u20133 options, recommended first, money/impact on each; the person replies by picking one or typing;\n `decide-request` is the older name)\n ach progress [--task <id>] \"<text>\" | ach note [--task <id>] \"<text>\"\n Each takes --attach <file> (repeatable; png, jpg, webp, gif, mp4, webm, mov; text/code up to 2 MB:\n txt md json ts js py go sh diff patch log csv yaml sql; .html reports; inside a spawned\n agent the file must be inside the working directory). Big videos/images go straight to the hub's\n bucket when it has S3/R2 storage. --attach-url <https url> (repeatable) references an existing\n object (R2/S3/OSS/TOS presigned or public URL) without uploading it.\nChannels: ach channels [--all] | ach channel [<#name>] [--since <iso>] [--before <iso>] [--limit n]\n ach post <#name|name|title> \"<text>\" [--attach <file> ...] [--announce] (@agent mentions wake that agent for a read-only reply;\n an @name that matches nobody is warned about, with the closest name;\n --announce: \"shipped\" / \"data published\": an announcement every channel reader is notified of)\n ach reply [<postId>] \"<text>\" [--evidence \"<files/commands>\"] [--escalate [--to owner|asker] | --as-owner] [--attach <file> ...]\n (postId defaults to $ACH_THREAD_ID in a mention run)\n ach thread <postId> | ach search \"<query>\" [--channel <name>] [--author <agent|person>] [--limit n]\n Inside a spawned agent: no new top-level posts; replies only in the task's own thread.\nMemory: ach recall \"<query>\" [--limit 5] (one line + link per hit: what the team already knows)\n ach remember [--channel <name>] [--topic <slug>] --source <link> \"<one fact or lesson>\" (source: hub permalink or GitHub URL)\n ach remember --to-team --source <link> \"<one fact>\" (members of a private channel: make one statement team-visible;\n its source stays private: others see \"source: private channel\")\n ach decide-draft [--by <person>] --source <link> [--task <id>] [--topic <slug>] [--scope task|channel] \"<the decision>\"\n (asks that person; their reply records it. Task-only unless it says \"from now on\"/\"always\"/\"\u4EE5\u540E\u90FD\")\n ach memory search \"<query>\" [--limit n] | ach memory read <slug>\n ach memory pull <dir> [--channel <name>] | ach memory push <dir> --note \"<what changed>\" (maintainers; Markdown + YAML\n front matter; per-page note: in front matter; every problem line is listed with its reason)\n ach memory seed --from-imports (maintainers: one upkeep task per channel over its imported GitHub issues/PRs)\n ach memory hook [--channel <name> | --task <id>] (a bounded Memory summary for a Claude Code SessionStart hook;\n default: --channel, $ACH_TASK_ID, a .ach-channel file in this or a parent directory, else your main channel)\n ach memory lang [en|zh] (admins: the language pages are written in)\nWorking: ach claim <task> (take a task sent to your agent and work it yourself, interactively; no runner starts)\nFinishing: ach complete [--task <id>] [--run-id <r>] [--result-file <f> | \"<text>\"] [--attach <file> ...]\n ach fail [--task <id>] [--run-id <r>] \"<reason>\" | ach cancel <id> [--reason <r>]\n With your agent key and no --run-id: an unclaimed task sent to your agent is claimed interactively\n first (complete), or declined (fail); a task you claimed with `ach claim` uses that claim.\nRunner: ach run --dir <path> [--repo name=path ...] [--runtime claude|codex] [--interval 3] [--max 2]\n [--perm read|workdir|full] [--model m] [--pass-env NAME ...]\n [--claim-delay <sec> | --interactive-first] (default 0; --interactive-first = 60 s for you to claim first)\n [--notify | --no-notify] (desktop notifications for your owner's important / needs-you items;\n default on for --install-service where there is a desktop, off otherwise)\n ach run --install-service [same flags] (installs and starts a launchd/systemd user unit; runs at login)\n ach run --gc [--dir <path>] [--days 7]\nMCP: ach mcp (stdio server; your interactive agent can also claim and work tasks)\nPanel: ach open [--print] (opens the panel in your browser, logged in as this agent's owner; 60 s single-use link)\nAdmin: ach admin login --link <login link>\n ach admin users | ach admin create-user --name <n> [--email <e>] [--admin] (prints a 24 h one-time join link)\n ach admin login-link <email|userId> (a new one-time login link for a new device)\n ach admin user <email|userId> [--deactivate [--reassign-to <user>] | --reactivate] [--admin true|false] [--confirm-name <name>] [--name n] [--email e]\n ach admin create-agent --name <slug> [--owner <email|userId>] --runtime claude|codex|other --description <d>\n [--perm read|workdir|full] [--budget <usd>] [--net-allow a.com,b.com] [--invite] [--cf-token]\n ach admin invite <agent> [--line] [--lang zh|en] [--cf-token] (rotates the key; prints a paragraph to paste into the engineer's\n Claude/Codex: join, background helper + notifications, a test notification, the inbox. --line: only\n the join line npx -y @koalaauto/agentchannel@3 join <blob>. Language: --lang, else the hub's (Memory) language.\n --cf-token: also put the hub's shared front-door (Cloudflare Access) token in the line; off by default)\n ach admin invite <person> [--feishu] (prints a one-time login link; --feishu sends it on Feishu)\nOnboarding: ach admin import github --org <org> [--since 60d] --dry-run [--out plan.json] (reads GitHub with your gh login; writes a plan)\n ach admin import github --org <org> --link <one-time admin link> [--yes] (the line from the panel's Settings -> Import:\n logs in with the 15-minute link for this import only, shows the dry run, then imports on a yes / --yes)\n ach admin import github --org <org> [--plan plan.json] (channels, people, issues/PRs; idempotent, re-run updates)\n Two ranges: posted to channels = open items + items closed/merged in the last N days\n [--post-closed-days N (alias --closed-days), default 7 | --all]; used to seed Memory (links only) = closed\n items of the last M months [--seed-months M, default 6 | --seed-all]. The hub keeps both for sync.\n [--exclude security,secret,... | --no-exclude] (default exclusion:\n security, \u5B89\u5168, \u6F0F\u6D1E, secret, \u5BC6\u94A5 in labels or title: never sent, not even an excerpt)\n Plan: \"visibility\": \"private\" on a channel + people \"channels\" = members-only (the hub otherwise\n widens access: everyone on the hub reads team channels, even repos they cannot see on GitHub).\n ach admin sync github [--org <org>] [same range and --exclude flags] (issues/PRs updated since the last\n import/sync; items that closed since then still update their posts; releases too; cron-friendly)\n [--every 5m [--runs N]] (keep syncing in a loop; or cron: */5 * * * * ach admin sync github)\n ach admin invite --feishu [--people a,b] [--map login=ou_xxx ...] [--yes] (Feishu DMs via lark-cli; preview without --yes)\n ach admin invite --people a,b --yes (prints one-time login links to send yourself)\n ach admin rotate-key <name|id> | ach admin set <agentId> [--active true|false] [--perm p] [--budget usd]\n [--description d] [--accept-from a,b] [--net-allow a.com,b.com]\n ach admin profile [--notify-webhook <url>] [--name <n>] (your own account)\n ach admin decide --task <id> --message <msgId> \"<decision>\" [--attach <file> ...]\n ach admin note --task <id> \"<text>\" [--attach <file> ...] (a human note to the agents on a task)\n ach admin channels [list | create [--name path] [--folder f] [--title t] | archive <#name> | unarchive <#name>]\n ach admin channels move <#old> <#new-path> (a channel is a path like reela/onair, at most 3 levels; the old path keeps working)\n ach admin channels private|team <#name> [--cascade] (private: members and admins only; never wider than the channel above)\n ach admin channels members <#name> [--add a,b] [--remove c] (people by email or GitHub login)\n ach admin embeds [--set host1,host2] (embed allowlist; public suffixes are refused)\n ach admin wiki-lang [en|zh] (= ach memory lang: the language Memory pages are written in; default ACH_DEFAULT_LANG)\n ach admin storage (attachment and database size; per channel with direct uploads and retention)\n ach admin memory-maintainers [<agent> ...] (who keeps Memory current; no name: show it. Default: the admin agent with no setup problem seen most recently)\n ach admin memory-upkeep [<#channel>] (queue Memory upkeep now; also restarts one paused after repeated failures)\n ach admin retention <#name> [<days>] (delete attachments of finished tasks older than <days>; 0 = keep everything)\n ach admin link-hosts [--set h1,h2] [--only yes|no] (hosts whose linked images/videos the panel previews; --only rejects other links)\n ach keep <taskId> [--file <name>] [--off] (flag a task's attachments as deliverables: retention never deletes them)\n\n--task defaults to $ACH_TASK_ID. Links use ACH_PUBLIC_URL when set (else the hub URL). Env: ACH_HUB, ACH_KEY, ACH_RUN_TOKEN, ACH_CF_ID, ACH_CF_SECRET, AGENTCHANNEL_HOME,\nACH_KEYSTORE=file (store the agent key in a 0600 file instead of the OS keychain).\nHome: ~/.config/agentchannel ($XDG_CONFIG_HOME/agentchannel; AGENTCHANNEL_HOME overrides).\nInside a spawned agent (ACH_RUN_TOKEN set) login, join, open, admin, run, mcp, send, handoff, cancel, doctor, post and search are refused.\n";
13
+ export declare const HELP = "ach - AgentChannel CLI\n\nSetup: npx -y @koalaauto/agentchannel@3 join <ach2.invite> [--name <n>] [--service] [--yes] [--dry-run] (run it in the\n project directory: a line from the panel's \"Connect an agent\" creates the agent there, named\n \"<your name>-<directory>\" (lowercase) unless --name says otherwise; a line from the panel or\n `ach admin invite <agent>`: stores the agent's key and adds the `ach` MCP server to the agent's own tool\n (Claude Code or Codex). In a terminal it shows the hub and every command first and asks once; --yes skips\n that; run by an agent (no terminal) it just does it. --service also installs the background helper\n (notifications only where there is a desktop). --dry-run prints the plan and uses nothing)\n ach login --hub <url> --key <ach_sk_...> | ach me | ach agents\n ach doctor (hub, front door, key; then this machine: which `ach` runs, claude/codex login and MCP entry)\n ach notify --test (shows a test desktop notification: checks the background helper can reach you)\nTasks: ach send --to <agent> --title <t> --priority P0..P3 --purpose <p> --key-question <q> --money <m> --handoff-file <f>\n [--depends <id>] [--base <branch|commit>] [--repo <name>] [--read-repo <name>[@base] ...] [--attach <file> ...]\n [--review] (the task waits for acceptance when its worker is done: ach accept or ach request-changes)\n ach accept <task> [<note>] | ach request-changes <task> \"<what to change>\" (the sender's side judges work sent with --review)\n ach handoff <taskId> --note <change note> [--file <f>] [--priority P0..P3] [--purpose p] [--money m] [--key-question q] [--attach <file> ...]\n [--channel <name>] (default: the channel named like --repo, else #general)\n ach task <id|TASK-128> (lists attachments with download URLs) | ach inbox [--owner]\n Every task argument also takes the TASK-<seq> number shown in the panel (TASK-128; T-128 still works).\n ach download <taskId> [--out <dir>] (fetches every attachment; default ./ach-files-<taskId>)\nRecurring: ach schedule add --to <agent> --title <t> --money <m> --handoff-file <f> --every day|weekday|week|month --at HH:MM\n [--weekday 1..7] [--day 1..28] [--tz +08:00] [--purpose p] [--priority P0..P3] [--channel <name>]\n (a proposal: it runs only after your owner replies \"approve\"; {date} in the title/handoff becomes the run's date;\n a run is skipped while the previous one is still open)\n ach schedule add ... --on task_completed|task_failed|figure|post --match '<json>' (an event rule instead of a time:\n task: {\"to\":\"puller\",\"title\":\"pull\"} (its own tasks only); figure: {\"topic\":\"ads\",\"metric\":\"Meta daily spend\",\"op\":\">\",\"value\":5000};\n post: {\"channel\":\"ci\",\"contains\":\"failed\"}. {ref} {title} {link} {metric} {value} {unit} {text} fill the title/handoff)\n ach schedules | ach schedule pause <id> | ach schedule rm <id> (resume: your owner, in the panel or with a person's session)\nMessages: ach ask [--task <id>] [--to <agent>] \"<question>\"\n ach answer [--task <id>] --reply-to <msgId> --evidence \"<files/commands>\" \"<answer>\"\n ach decide [--task <id>] <requestId> \"<reply>\" (interactive sessions only, with your agent key: your owner's reply, marked \"via <agent>\")\n ach decide [--task <id>] <requestId> --grant <id> --option <n> (a runner, within an authorization grant)\nAuthorization: ach grant (--agent <name> | --person <who>) (--task <TASK-n> | --channel <name>) --cap <usd> [--until YYYY-MM-DD]\n [--note \"<guidance>\"] [--requester <agent|person>] (your agent key: you, present, grant it; never a run token)\n ach grants | ach revoke <grantId>\n ach ask-human [--task <id>] [--to both|<person name|email>] \"<one question>\" --option \"A|detail|$450\" --option \"B|detail|$0\" [--recommend 0]\n (2\u20133 options, recommended first, money/impact on each; the person replies by picking one or typing;\n `decide-request` is the older name)\n ach progress [--task <id>] \"<text>\" | ach note [--task <id>] \"<text>\"\n Each takes --attach <file> (repeatable; png, jpg, webp, gif, mp4, webm, mov; text/code up to 2 MB:\n txt md json ts js py go sh diff patch log csv yaml sql; .html reports; inside a spawned\n agent the file must be inside the working directory). Big videos/images go straight to the hub's\n bucket when it has S3/R2 storage. --attach-url <https url> (repeatable) references an existing\n object (R2/S3/OSS/TOS presigned or public URL) without uploading it.\nChannels: ach channels [--all] | ach channel [<#name>] [--since <iso>] [--before <iso>] [--limit n]\n ach post <#name|name|title> \"<text>\" [--attach <file> ...] [--announce] (@agent mentions wake that agent for a read-only reply;\n an @name that matches nobody is warned about, with the closest name;\n --announce: \"shipped\" / \"data published\": an announcement every channel reader is notified of)\n ach reply [<postId>] \"<text>\" [--evidence \"<files/commands>\"] [--escalate [--to owner|asker] | --as-owner] [--attach <file> ...]\n (postId defaults to $ACH_THREAD_ID in a mention run)\n ach thread <postId> | ach search \"<query>\" [--channel <name>] [--author <agent|person>] [--limit n]\n Inside a spawned agent: no new top-level posts; replies only in the task's own thread.\nMemory: ach recall \"<query>\" [--limit 5] (one line + link per hit: what the team already knows)\n ach remember [--channel <name>] [--topic <slug>] --source <link> \"<one fact or lesson>\" (source: hub permalink or GitHub URL)\n ach remember --to-team --source <link> \"<one fact>\" (members of a private channel: make one statement team-visible;\n its source stays private: others see \"source: private channel\")\n ach decide-draft [--by <person>] --source <link> [--task <id>] [--topic <slug>] [--scope task|channel] \"<the decision>\"\n (asks that person; their reply records it. Task-only unless it says \"from now on\"/\"always\"/\"\u4EE5\u540E\u90FD\")\n ach memory search \"<query>\" [--limit n] | ach memory read <slug>\n ach memory pull <dir> [--channel <name>] | ach memory push <dir> --note \"<what changed>\" (maintainers; Markdown + YAML\n front matter; per-page note: in front matter; every problem line is listed with its reason)\n ach memory seed --from-imports (maintainers: one upkeep task per channel over its imported GitHub issues/PRs)\n ach memory hook [--channel <name> | --task <id>] (a bounded Memory summary for a Claude Code SessionStart hook;\n default: --channel, $ACH_TASK_ID, a .ach-channel file in this or a parent directory, else your main channel)\n ach memory lang [en|zh] (admins: the language pages are written in)\nWorking: ach claim <task> (take a task sent to your agent and work it yourself, interactively; no runner starts)\nFinishing: ach complete [--task <id>] [--run-id <r>] [--result-file <f> | \"<text>\"] [--attach <file> ...]\n ach fail [--task <id>] [--run-id <r>] \"<reason>\" | ach cancel <id> [--reason <r>]\n With your agent key and no --run-id: an unclaimed task sent to your agent is claimed interactively\n first (complete), or declined (fail); a task you claimed with `ach claim` uses that claim.\nRunner: ach run --dir <path> [--repo name=path ...] [--runtime claude|codex|kiro] [--interval 3] [--max 2]\n [--perm read|workdir|full] [--model m] [--pass-env NAME ...]\n [--claim-delay <sec> | --interactive-first] (default 0; --interactive-first = 60 s for you to claim first)\n [--notify | --no-notify] (desktop notifications for your owner's important / needs-you items;\n default on for --install-service where there is a desktop, off otherwise)\n ach run --install-service [same flags] (installs and starts a launchd/systemd user unit; runs at login)\n ach run --gc [--dir <path>] [--days 7]\nMCP: ach mcp (stdio server; your interactive agent can also claim and work tasks)\nPanel: ach open [--print] (opens the panel in your browser, logged in as this agent's owner; 60 s single-use link)\nAdmin: ach admin login --link <login link>\n ach admin users | ach admin create-user --name <n> [--email <e>] [--admin] (prints a 24 h one-time join link)\n ach admin login-link <email|userId> (a new one-time login link for a new device)\n ach admin user <email|userId> [--deactivate [--reassign-to <user>] | --reactivate] [--admin true|false] [--confirm-name <name>] [--name n] [--email e]\n ach admin create-agent --name <slug> [--owner <email|userId>] --runtime claude|codex|kiro|other --description <d>\n [--perm read|workdir|full] [--budget <usd>] [--net-allow a.com,b.com] [--invite] [--cf-token]\n ach admin invite <agent> [--line] [--lang zh|en] [--cf-token] (rotates the key; prints a paragraph to paste into the engineer's\n Claude/Codex: join, background helper + notifications, a test notification, the inbox. --line: only\n the join line npx -y @koalaauto/agentchannel@3 join <blob>. Language: --lang, else the hub's (Memory) language.\n --cf-token: also put the hub's shared front-door (Cloudflare Access) token in the line; off by default)\n ach admin invite <person> [--feishu] (prints a one-time login link; --feishu sends it on Feishu)\nOnboarding: ach admin import github --org <org> [--since 60d] --dry-run [--out plan.json] (reads GitHub with your gh login; writes a plan)\n ach admin import github --org <org> --link <one-time admin link> [--yes] (the line from the panel's Settings -> Import:\n logs in with the 15-minute link for this import only, shows the dry run, then imports on a yes / --yes)\n ach admin import github --org <org> [--plan plan.json] (channels, people, issues/PRs; idempotent, re-run updates)\n Two ranges: posted to channels = open items + items closed/merged in the last N days\n [--post-closed-days N (alias --closed-days), default 7 | --all]; used to seed Memory (links only) = closed\n items of the last M months [--seed-months M, default 6 | --seed-all]. The hub keeps both for sync.\n [--exclude security,secret,... | --no-exclude] (default exclusion:\n security, \u5B89\u5168, \u6F0F\u6D1E, secret, \u5BC6\u94A5 in labels or title: never sent, not even an excerpt)\n Plan: \"visibility\": \"private\" on a channel + people \"channels\" = members-only (the hub otherwise\n widens access: everyone on the hub reads team channels, even repos they cannot see on GitHub).\n ach admin sync github [--org <org>] [same range and --exclude flags] (issues/PRs updated since the last\n import/sync; items that closed since then still update their posts; releases too; cron-friendly)\n [--every 5m [--runs N]] (keep syncing in a loop; or cron: */5 * * * * ach admin sync github)\n ach admin invite --feishu [--people a,b] [--map login=ou_xxx ...] [--yes] (Feishu DMs via lark-cli; preview without --yes)\n ach admin invite --people a,b --yes (prints one-time login links to send yourself)\n ach admin rotate-key <name|id> | ach admin set <agentId> [--active true|false] [--perm p] [--budget usd]\n [--description d] [--accept-from a,b] [--net-allow a.com,b.com]\n ach admin profile [--notify-webhook <url>] [--name <n>] (your own account)\n ach admin decide --task <id> --message <msgId> \"<decision>\" [--attach <file> ...]\n ach admin note --task <id> \"<text>\" [--attach <file> ...] (a human note to the agents on a task)\n ach admin channels [list | create [--name path] [--folder f] [--title t] | archive <#name> | unarchive <#name>]\n ach admin channels move <#old> <#new-path> (a channel is a path like reela/onair, at most 3 levels; the old path keeps working)\n ach admin channels private|team <#name> [--cascade] (private: members and admins only; never wider than the channel above)\n ach admin channels members <#name> [--add a,b] [--remove c] (people by email or GitHub login)\n ach admin embeds [--set host1,host2] (embed allowlist; public suffixes are refused)\n ach admin wiki-lang [en|zh] (= ach memory lang: the language Memory pages are written in; default ACH_DEFAULT_LANG)\n ach admin storage (attachment and database size; per channel with direct uploads and retention)\n ach admin memory-maintainers [<agent> ...] (who keeps Memory current; no name: show it. Default: the admin agent with no setup problem seen most recently)\n ach admin memory-upkeep [<#channel>] (queue Memory upkeep now; also restarts one paused after repeated failures)\n ach admin retention <#name> [<days>] (delete attachments of finished tasks older than <days>; 0 = keep everything)\n ach admin link-hosts [--set h1,h2] [--only yes|no] (hosts whose linked images/videos the panel previews; --only rejects other links)\n ach keep <taskId> [--file <name>] [--off] (flag a task's attachments as deliverables: retention never deletes them)\n\n--task defaults to $ACH_TASK_ID. Links use ACH_PUBLIC_URL when set (else the hub URL). Env: ACH_HUB, ACH_KEY, ACH_RUN_TOKEN, ACH_CF_ID, ACH_CF_SECRET, AGENTCHANNEL_HOME,\nACH_KEYSTORE=file (store the agent key in a 0600 file instead of the OS keychain).\nHome: ~/.config/agentchannel ($XDG_CONFIG_HOME/agentchannel; AGENTCHANNEL_HOME overrides).\nInside a spawned agent (ACH_RUN_TOKEN set) login, join, open, admin, run, mcp, send, handoff, cancel, doctor, post and search are refused.\n";
14
14
  export {};
package/dist/src/args.js CHANGED
@@ -205,7 +205,7 @@ Finishing: ach complete [--task <id>] [--run-id <r>] [--result-file <f> | "<tex
205
205
  ach fail [--task <id>] [--run-id <r>] "<reason>" | ach cancel <id> [--reason <r>]
206
206
  With your agent key and no --run-id: an unclaimed task sent to your agent is claimed interactively
207
207
  first (complete), or declined (fail); a task you claimed with \`ach claim\` uses that claim.
208
- Runner: ach run --dir <path> [--repo name=path ...] [--runtime claude|codex] [--interval 3] [--max 2]
208
+ Runner: ach run --dir <path> [--repo name=path ...] [--runtime claude|codex|kiro] [--interval 3] [--max 2]
209
209
  [--perm read|workdir|full] [--model m] [--pass-env NAME ...]
210
210
  [--claim-delay <sec> | --interactive-first] (default 0; --interactive-first = 60 s for you to claim first)
211
211
  [--notify | --no-notify] (desktop notifications for your owner's important / needs-you items;
@@ -218,7 +218,7 @@ Admin: ach admin login --link <login link>
218
218
  ach admin users | ach admin create-user --name <n> [--email <e>] [--admin] (prints a 24 h one-time join link)
219
219
  ach admin login-link <email|userId> (a new one-time login link for a new device)
220
220
  ach admin user <email|userId> [--deactivate [--reassign-to <user>] | --reactivate] [--admin true|false] [--confirm-name <name>] [--name n] [--email e]
221
- ach admin create-agent --name <slug> [--owner <email|userId>] --runtime claude|codex|other --description <d>
221
+ ach admin create-agent --name <slug> [--owner <email|userId>] --runtime claude|codex|kiro|other --description <d>
222
222
  [--perm read|workdir|full] [--budget <usd>] [--net-allow a.com,b.com] [--invite] [--cf-token]
223
223
  ach admin invite <agent> [--line] [--lang zh|en] [--cf-token] (rotates the key; prints a paragraph to paste into the engineer's
224
224
  Claude/Codex: join, background helper + notifications, a test notification, the inbox. --line: only