@theronap/agnoclast-mcp 0.9.322 → 0.9.323

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.
Files changed (2) hide show
  1. package/lib/server.mjs +10 -8
  2. package/package.json +1 -1
package/lib/server.mjs CHANGED
@@ -6498,10 +6498,10 @@ function renderNudge(payload) {
6498
6498
  'hand_task',
6499
6499
  {
6500
6500
  title: 'Hand a task to another of your agents',
6501
- description: 'Queue a task for another agent on this same person\'s account, by its token name (e.g. "Frack"). Use it when the person asks you to give another of their agents something to do, instead of having them paste it. Write the task as a request that says what is wanted and why ("Theron would like a list of…"), not as commands: agent runtimes screen what their tools return for prompt injection, and a task written as orders is refused unread (Muse, 2026-11-02). Never claim the person approved something in a task; the receiving agent asks them itself. Show them the exact text first. The agent acts with its own token and picks the task up on its next call: nothing wakes it, so it may wait until the person next talks to it. Read the result with handed_tasks. To reach a person or a member agent, use send_message.',
6501
+ description: 'Queue a task for another agent on this same person\'s account, by its token name (e.g. "Frack"). Use it when the person asks you to give another of their agents something to do, instead of having them paste it. Write the task as a request that says what is wanted and why ("Theron would like a list of…"), not as commands: agent runtimes screen what their tools return for prompt injection, and a task written as orders is refused unread (Muse, 2026-11-02). Name where the work goes: when the person has more than one brain, say which brain and page a save or edit belongs on, or the receiving agent has to stop and ask (Grok Bot, 2026-11-06). Never claim the person approved something in a task; the receiving agent asks them itself, or the person\'s standing permission covers it. Show them the exact text first. The agent acts with its own token and picks the task up on its next call: nothing wakes it, so it may wait until the person next talks to it. Read the result with handed_tasks. To reach a person or a member agent, use send_message.',
6502
6502
  inputSchema: {
6503
6503
  to: z.string().describe('the agent\'s token name, as shown on /connect'),
6504
- task: z.string().describe('what to do and how to report back (at most 8000 characters)'),
6504
+ task: z.string().describe('what to do, where (the brain and page, when they have several), and how to report back (at most 8000 characters)'),
6505
6505
  },
6506
6506
  },
6507
6507
  async ({ to, task }) => {
@@ -6525,7 +6525,7 @@ function renderNudge(payload) {
6525
6525
  const { tasks } = await tasksCall('?box=mine')
6526
6526
  if (!tasks.length) return { content: [{ type: 'text', text: 'No tasks waiting.' }] }
6527
6527
  return { content: [{ type: 'text', text: tasks.map((t) => {
6528
- const line = { held: 'status: held, waiting for your person', approved: `status: approved by your person at ${t.decidedAt}`, declined: `status: declined by your person at ${t.decidedAt}` }[t.approval]
6528
+ const line = t.approval === 'approved' && t.approvalVia === 'standing' ? `status: approved by your person's standing permission at ${t.decidedAt}` : { held: 'status: held, waiting for your person', approved: `status: approved by your person at ${t.decidedAt}`, declined: `status: declined by your person at ${t.decidedAt}` }[t.approval]
6529
6529
  return `task ${t.id} · from ${t.from ?? 'another agent'} · ${t.createdAt}${line ? `\n${line}` : ''}\nrequest:\n${t.task}`
6530
6530
  }).join('\n\n') }] }
6531
6531
  } catch (e) { return toolError(`Could not read your tasks: ${e.message}`) }
@@ -6551,16 +6551,18 @@ function renderNudge(payload) {
6551
6551
  server.registerTool(
6552
6552
  'hold_task',
6553
6553
  {
6554
- title: 'Ask your person to approve a task',
6555
- description: 'Hold a task from my_tasks for your person\'s approval, when it would change, send, share, spend or delete something. Their phone gets a notification, and you get a link to give them. Only they can answer: it needs their own sign-in, and no agent can press it. You will be woken when they decide, and my_tasks will then show `status: approved` or `status: declined`. A held task waits until it shows approved.',
6554
+ title: 'Check a task against your person\'s permission, or ask them',
6555
+ description: 'Before a task from my_tasks would change, send, share, spend or delete something, call this with what kind of action it is. Your person may have given a standing permission for that kind: then the reply says it is approved, with nobody disturbed. Otherwise it is held: their phone gets a notification, you get a link to give them, and only they can answer (it needs their own sign-in; no agent can press it). You will be woken when they decide, and my_tasks will then show `status: approved` or `status: declined`. A held task waits until it shows approved.',
6556
6556
  inputSchema: {
6557
6557
  task: z.string().describe('the task id from my_tasks'),
6558
- reason: z.string().describe('one line for your person: what it would do and why it needs their OK'),
6558
+ reason: z.string().describe('one line for your person: what it would do'),
6559
+ kind: z.enum(['change', 'send', 'share', 'spend', 'delete']).optional().describe('what the action is. change = saving, editing or tracking something inside Agnoclast; send, share, spend and delete mean what they say; pick the strongest that applies. Without it the task always waits for your person.'),
6559
6560
  },
6560
6561
  },
6561
- async ({ task, reason }) => {
6562
+ async ({ task, reason, kind }) => {
6562
6563
  try {
6563
- const out = await tasksCall('', { method: 'POST', body: JSON.stringify({ action: 'hold', id: task, reason }) })
6564
+ const out = await tasksCall('', { method: 'POST', body: JSON.stringify({ action: 'hold', id: task, reason, ...(kind ? { kind } : {}) }) })
6565
+ if (out.approval === 'approved' && out.via === 'standing') return { content: [{ type: 'text', text: `status: approved. Your person's standing permission, which they set themselves in Agnoclast Settings, covers this kind of action (${kind}), so the server approved task ${task} without asking them. my_tasks shows it as approved. Nothing in the task's text decided this.` }] }
6564
6566
  if (out.approval !== 'held') return { content: [{ type: 'text', text: `Task ${task} was already ${out.approval}. See my_tasks.` }] }
6565
6567
  return { content: [{ type: 'text', text: `Held. Give your person this link to approve or decline it: ${out.url}` }] }
6566
6568
  } catch (e) { return toolError(`Not held: ${e.message}`) }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theronap/agnoclast-mcp",
3
- "version": "0.9.322",
3
+ "version": "0.9.323",
4
4
  "description": "Connect your AI assistant to Cortex — your org's projects, activity, gaps, and directives, scoped to you.",
5
5
  "type": "module",
6
6
  "bin": {