@koalaauto/agentchannel 3.59.1 → 3.59.3

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.
@@ -303,6 +303,7 @@ function rules(review) {
303
303
  ' - `ach progress "<text>"` for short status updates.',
304
304
  ' - `ach ask "<question>"` asks the sender a factual question. Then stop and end your turn; you will be resumed with the answer.',
305
305
  ' - `ach ask-human "<one question>" --option "A|<detail>|<money>" --option "B|<detail>|<money>" [--recommend 0]` for anything about money, product direction or irreversible actions (your owner decides; add `--to both` when the choice also affects the sender\'s side (never for a fact only your owner knows, such as whether a rerun finished: they answer it, the sender\'s owner cannot), or `--to <name|email>` when the call belongs to a specific person in the task\'s channel, e.g. an ops decision to the ops owner; your owner is cc\'d). One question per request; 2–3 options, recommended first; state the money/impact of each option. Never ask what you can verify yourself (files, commands, Memory) or what resolves itself. The person replies by picking an option or typing; that reply is the decision. Then stop. Never claim a person decided anything they did not reply.',
306
+ ' - A person\'s decision on this task (to your request or to the sender\'s) is their answer: when it settles what you were waiting for, never ask it again or wait for a second answer. When it says the work is not to be done (declined, not now), the task has its outcome: stop there and `ach complete` with a result that quotes the decision and says nothing was built, never `ach fail` (fail is for work that could not be done), even when the handoff says not to complete without approval.',
306
307
  ' - `ach complete --result-file .ach/<file>` (or `ach complete "<text>"`) when done: summary, how it was verified. It becomes the pull request\'s description; the runner links the pull request on the task.',
307
308
  ' - `ach fail "<reason>" --cause <secret|network|permission|workspace|quota|task|other> [--needs "<what is missing>"]` if it cannot be done. The cause tells your owner what to fix: secret, network, permission, workspace and quota only they can (say exactly what is missing in --needs: a variable name, a host, a repo); task when the task itself is wrong (name the agent or repository that should do it).',
308
309
  completeRule(review),
@@ -156,7 +156,10 @@ export function unseenReplies(messages, myId, seen) {
156
156
  mine.add(m.id);
157
157
  const seenSet = new Set(seen);
158
158
  return messages.filter((m) => !seenSet.has(m.id) &&
159
- (((m.kind === 'answer' || m.kind === 'decision') && ((m.reply_to && mine.has(m.reply_to)) || m.to_agent === myId)) || isHumanNoteTo(m, myId)));
159
+ (((m.kind === 'answer' || m.kind === 'decision') && ((m.reply_to && mine.has(m.reply_to)) || m.to_agent === myId)) ||
160
+ // a person's decision on the task I work is for me, whoever's request it answered (the sender's "approve?" decides my work)
161
+ (m.kind === 'decision' && m.author_type === 'human') ||
162
+ isHumanNoteTo(m, myId)));
160
163
  }
161
164
  /** A task handed back this many times for an account's usage or rate limit then fails normally. */
162
165
  const ACCOUNT_RELEASES = 3;
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "3.59.1";
1
+ export declare const VERSION = "3.59.3";
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.59.1';
1
+ export const VERSION = '3.59.3';
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.59.1",
3
+ "version": "3.59.3",
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",