@koalaauto/agentchannel 3.92.0 → 3.94.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/cli.js CHANGED
@@ -1314,7 +1314,8 @@ export function inboxSummary(r) {
1314
1314
  const task = x.task ?? x;
1315
1315
  const ref = task.ref ?? x.task_ref ?? '';
1316
1316
  const text = x.choices?.question ?? x.text ?? x.body ?? x.post?.body ?? task.title ?? '';
1317
- return ` ${ref ? `${ref} ` : ''}${line1(text)}`;
1317
+ // (what the person's Yoda said about it goes with it)
1318
+ return ` ${ref ? `${ref} ` : ''}${line1(text)}${x.yoda ? `\n Yoda: ${line1(x.yoda)}` : ''}`;
1318
1319
  };
1319
1320
  for (const [k, v] of Object.entries(r)) {
1320
1321
  if (!Array.isArray(v) || !v.length)
package/dist/src/ids.d.ts CHANGED
@@ -52,7 +52,7 @@ export declare const KIND: {
52
52
  readonly yoda_acts: "X";
53
53
  };
54
54
  /** Tables without an `id` column of their own (keyed by the ids of other rows). */
55
- export declare const NO_ID_TABLES: readonly ["ach_fts", "artifact_refs", "artifact_versions", "mechanism_versions", "agent_project_memory", "agent_rule_files", "agent_rule_versions", "name_changes", "push_recalls", "rate_hits", "text_refs", "todos"];
55
+ export declare const NO_ID_TABLES: readonly ["ach_fts", "artifact_refs", "artifact_versions", "mechanism_versions", "agent_project_memory", "yoda_watch", "agent_rule_files", "agent_rule_versions", "name_changes", "push_recalls", "rate_hits", "text_refs", "todos"];
56
56
  export type IdTable = keyof typeof KIND;
57
57
  export type IdKind = (typeof KIND)[IdTable];
58
58
  /** Which format newId makes and normalizeId returns: 'legacy' before the cutover migrated the data (2026-11-24), 'kind' since. */
package/dist/src/ids.js CHANGED
@@ -60,7 +60,7 @@ export const KIND = {
60
60
  yoda_acts: 'X',
61
61
  };
62
62
  /** Tables without an `id` column of their own (keyed by the ids of other rows). */
63
- export const NO_ID_TABLES = ['ach_fts', 'artifact_refs', 'artifact_versions', 'mechanism_versions', 'agent_project_memory', 'agent_rule_files', 'agent_rule_versions', 'name_changes', 'push_recalls', 'rate_hits', 'text_refs', 'todos'];
63
+ export const NO_ID_TABLES = ['ach_fts', 'artifact_refs', 'artifact_versions', 'mechanism_versions', 'agent_project_memory', 'yoda_watch', 'agent_rule_files', 'agent_rule_versions', 'name_changes', 'push_recalls', 'rate_hits', 'text_refs', 'todos'];
64
64
  /** Which format newId makes and normalizeId returns: 'legacy' before the cutover migrated the data (2026-11-24), 'kind' since. */
65
65
  export const ID_FORMAT = 'kind';
66
66
  const LETTERS = 'PMTHUGCDFKRSIX';
package/dist/src/mcp.js CHANGED
@@ -121,7 +121,7 @@ export function personInstructions(name, hand) {
121
121
  'AgentChannel hands work between the agents of one team and lets their people follow it in one panel. Tasks are referred to as TASK-128; channels are team streams named #general, #reela/onair.',
122
122
  'Which tool when:',
123
123
  `- ask_yoda: everything that acts. To send a task, post or reply in a channel, answer or decide something, cancel, schedule, or find who does what: say it to Yoda in your user's words. Yoda does it as ${name}, under ${name}'s own rules: a task to one of ${name}'s own agents goes at once; anything said to others waits on a card on the Yoda page until ${name} confirms it (give them the link). You cannot confirm a card from here.`,
124
- `- owner_inbox: what waits for ${name}. decide: ${name}'s own answer to a decision request addressed to them, when they give it to you here in so many words (never your guess of it). get_task, list_channels, read_channel, search, list_agents: read the team as ${name} sees it. read_doc: a Feishu/Lark document or wiki link.`,
124
+ `- owner_inbox: what waits for ${name}. An item may carry "yoda": what Yoda already said about it (what it is, what it would choose and why); tell ${name} that with the item, as Yoda's word, before they answer. decide: ${name}'s own answer to a decision request addressed to them, when they give it to you here in so many words (never your guess of it). get_task, list_channels, read_channel, search, list_agents: read the team as ${name} sees it. read_doc: a Feishu/Lark document or wiki link.`,
125
125
  '- memory_search (one line + link per hit), memory_read: the team Memory (current state, decisions, lessons, figures). Check it when your user asks how something is done or why something fails.',
126
126
  `- yoda_memory: what Yoda remembers about ${name}; propose one more when you learn how they want something done (it counts once they accept it).`,
127
127
  ...(hand
@@ -168,7 +168,7 @@ export const MCP_INSTRUCTIONS = [
168
168
  'Tasks are referred to as TASK-128 (any tool that takes a task id accepts TASK-128). Channels are team streams named by a folder path (#general, #reela/onair): write the full path, a short name works only when one channel has it.',
169
169
  'Your user is here in this session: when a question is for them, ask them in the conversation first; request_decision and ask are for people and agents who are not.',
170
170
  'When to use which tool:',
171
- '- inbox: what is waiting for you (tasks sent to you, questions, answers, decisions, @mentions). owner_inbox: what waits for your owner (the person): their decisions and escalations.',
171
+ '- inbox: what is waiting for you (tasks sent to you, questions, answers, decisions, @mentions). owner_inbox: what waits for your owner (the person): their decisions and escalations. An item may carry `yoda`: what their Yoda already said about it (what it is, what it would choose and why); give them that with the item, as Yoda\'s word, before they answer.',
172
172
  '- ask_yoda: your owner\'s Yoda, the team half of this session. When your user describes work for someone else without naming an agent ("get the gateway team to..."), or asks what goes on in the team or waits for them, ask Yoda: it knows who does what and what is in progress, and acts as them (what needs their word waits on a card on the Yoda page). It answers only if your owner has a Yoda. yoda_memory: what Yoda remembers about your owner.',
173
173
  '- send_task: hand a piece of work to another agent (title, money impact or "n/a", a markdown handoff). Work for another person goes to the person (`to`: @name): their Yoda picks which of their agents does it. Name an agent for a team agent or one of your owner\'s own.',
174
174
  '- claim_task, then task_progress / complete_task / fail_task: work a task sent to you here, interactively.',
@@ -387,7 +387,7 @@ export function buildMcpServer(client, o = {}) {
387
387
  }));
388
388
  server.registerTool('inbox', { description: 'What needs my attention: tasks sent to me, questions to me, answers and decisions for me, updates on tasks I sent.', inputSchema: {} }, async () => wrap(async () => wrapUntrusted(await client.inbox())));
389
389
  server.registerTool('owner_inbox', {
390
- description: "What waits for MY OWNER (the person): decision requests, escalated questions, tasks to accept, new tasks for my agents. This is the person's panel Inbox, which my own `inbox` does not show. Use it when the owner asks what needs their reply; answer for them only with their say-so (reply with as_owner).",
390
+ description: "What waits for MY OWNER (the person): decision requests, escalated questions, tasks to accept, new tasks for my agents. This is the person's panel Inbox, which my own `inbox` does not show. Use it when the owner asks what needs their reply; answer for them only with their say-so (reply with as_owner). An item's `yoda` is what their Yoda said about it: pass it on with the item.",
391
391
  inputSchema: {},
392
392
  }, async () => wrap(async () => wrapUntrusted(await client.ownerInbox())));
393
393
  server.registerTool('ask', {
@@ -1,4 +1,4 @@
1
- export declare const VERSION = "3.92.0";
1
+ export declare const VERSION = "3.94.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.92.0';
1
+ export const VERSION = '3.94.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.92.0",
3
+ "version": "3.94.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",