@koalaauto/agentchannel 3.98.1 → 3.98.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.
package/dist/src/mcp.d.ts CHANGED
@@ -73,8 +73,10 @@ export declare const toolHints: (name: string) => {
73
73
  };
74
74
  /**
75
75
  * Ask the person, in their client's own question box (MCP elicitation), whether something waiting on a card goes out
76
- * (docs/specs/mcp-client.md §4.2). Their choice, or null when there is none: the client has no question box, they closed it,
77
- * or it timed out. Null leaves the card where it is, on the Yoda page. Nothing a model writes reaches this answer.
76
+ * (docs/specs/mcp-client.md §4.2). One step: the box has no field, so the client's own two buttons are the answer: accept
77
+ * sends it, decline does not. Null when there is no answer: the client has no question box, they dismissed it (Esc), or it
78
+ * timed out; the card then stays where it is, on the Yoda page. Nothing a model writes reaches this answer.
79
+ * In Chinese when the machine is, or when what is to be sent is written in Chinese.
78
80
  */
79
81
  export declare function askToConfirm(server: McpServer, what: string, env?: NodeJS.ProcessEnv): Promise<'confirm' | 'decline' | null>;
80
82
  /** Which tool settles a waiting item of the person's Inbox (hub: api/person-inbox.ts), in one line; '' when none of ours does. */
package/dist/src/mcp.js CHANGED
@@ -253,23 +253,21 @@ const TASK_ACTS = {
253
253
  const oneLine = (s) => { const t = String(s ?? '').replace(/\s+/g, ' ').trim(); return t.length > 120 ? `${t.slice(0, 120)}…` : t; };
254
254
  /**
255
255
  * Ask the person, in their client's own question box (MCP elicitation), whether something waiting on a card goes out
256
- * (docs/specs/mcp-client.md §4.2). Their choice, or null when there is none: the client has no question box, they closed it,
257
- * or it timed out. Null leaves the card where it is, on the Yoda page. Nothing a model writes reaches this answer.
256
+ * (docs/specs/mcp-client.md §4.2). One step: the box has no field, so the client's own two buttons are the answer: accept
257
+ * sends it, decline does not. Null when there is no answer: the client has no question box, they dismissed it (Esc), or it
258
+ * timed out; the card then stays where it is, on the Yoda page. Nothing a model writes reaches this answer.
259
+ * In Chinese when the machine is, or when what is to be sent is written in Chinese.
258
260
  */
259
261
  export async function askToConfirm(server, what, env = process.env) {
260
262
  if (!server.server.getClientCapabilities()?.elicitation)
261
263
  return null;
262
- const zh = isZh(env);
263
- const [yes, no] = zh ? ['发出', '不发'] : ['Send', 'Do not send'];
264
+ const zh = isZh(env) || /[\u3400-\u9fff]/.test(what);
264
265
  try {
265
266
  const r = await server.server.elicitInput({
266
- message: zh ? `以你的名义发出?\n${what}` : `Send this in your name?\n${what}`,
267
- requestedSchema: { type: 'object', properties: { decision: { type: 'string', title: zh ? '决定' : 'Decision', enum: [yes, no] } }, required: ['decision'] },
267
+ message: zh ? `以你的名义发出?\n${what}\n\n接受:发出。拒绝:不发。` : `Send this in your name?\n${what}\n\nAccept: it is sent. Decline: it is not.`,
268
+ requestedSchema: { type: 'object', properties: {} },
268
269
  }, { timeout: 10 * 60_000 });
269
- if (r.action !== 'accept')
270
- return null;
271
- const d = r.content?.decision;
272
- return d === yes ? 'confirm' : d === no ? 'decline' : null;
270
+ return r.action === 'accept' ? 'confirm' : r.action === 'decline' ? 'decline' : null;
273
271
  }
274
272
  catch {
275
273
  return null;
@@ -143,7 +143,8 @@ export declare class SelfUpdater {
143
143
  /**
144
144
  * The hub names a release on every answer (`x-ach-latest-client`): when it is newer than this one, check now instead of at the
145
145
  * next 6-hourly tick. Once per release, again after five minutes when the release could not be installed yet (npm does not
146
- * serve it the moment the hub names it), and after an hour if this one is still behind for another reason.
146
+ * serve it the moment the hub names it) or the hub's versions did not name it yet (a deploy still rolling out), and after an
147
+ * hour if this one is still behind for another reason.
147
148
  * What a check can never fix by itself (a manual verdict, ACH_AUTO_UPDATE=0) is not asked again for that release.
148
149
  */
149
150
  heardLatest(latest: string): Promise<CheckResult> | undefined;
@@ -222,7 +222,8 @@ export class SelfUpdater {
222
222
  /**
223
223
  * The hub names a release on every answer (`x-ach-latest-client`): when it is newer than this one, check now instead of at the
224
224
  * next 6-hourly tick. Once per release, again after five minutes when the release could not be installed yet (npm does not
225
- * serve it the moment the hub names it), and after an hour if this one is still behind for another reason.
225
+ * serve it the moment the hub names it) or the hub's versions did not name it yet (a deploy still rolling out), and after an
226
+ * hour if this one is still behind for another reason.
226
227
  * What a check can never fix by itself (a manual verdict, ACH_AUTO_UPDATE=0) is not asked again for that release.
227
228
  */
228
229
  heardLatest(latest) {
@@ -240,8 +241,11 @@ export class SelfUpdater {
240
241
  // paused, and waiting the hour for it kept every runner an hour behind each release. A hub that names the release on an
241
242
  // error and then fails the versions read is the same: 2026-11-25 three of twelve pool runners heard 3.95.1 while the hub
242
243
  // was failing, waited the hour, and held their pool (which restarts once every runner has moved) half an hour. Both are
243
- // asked again in five minutes.
244
- this.heardWait.set(latest, r === 'failed' || r === 'unreachable' ? 5 * 60_000 : 3600_000);
244
+ // asked again in five minutes. So is a check that found nothing to do though the hub had just named a newer release: while
245
+ // a deploy rolls out, the answer naming it can come from the new Worker and the versions read from the old one. 2026-11-26
246
+ // one of eleven pool runners heard 3.98.2 that way, judged "none", waited the hour, and held the other ten offline for
247
+ // the pool's half hour.
248
+ this.heardWait.set(latest, r === 'failed' || r === 'unreachable' || r === 'none' ? 5 * 60_000 : 3600_000);
245
249
  return r;
246
250
  });
247
251
  }
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "3.98.1";
1
+ export declare const VERSION = "3.98.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.98.1';
1
+ export const VERSION = '3.98.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.98.1",
3
+ "version": "3.98.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",