@theronap/agnoclast-mcp 0.9.321 → 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.
- package/lib/red_link_triage.mjs +6 -0
- package/lib/server.mjs +10 -8
- package/package.json +1 -1
package/lib/red_link_triage.mjs
CHANGED
|
@@ -28,6 +28,12 @@ export function renderTriage(t, name) {
|
|
|
28
28
|
// from yesterday and one from eight months ago warrant different confidence about whether it still
|
|
29
29
|
// holds. Explicitly undated rather than silent when the server predates the field.
|
|
30
30
|
const when = t.updatedAt ? ` on ${String(t.updatedAt).slice(0, 10)}` : ' (retirement date not recorded)'
|
|
31
|
+
// 2026-11-07 — WHERE IT WENT. A page retired by merge_pages (or a person-page merge) has a
|
|
32
|
+
// successor that holds its content. The server names it only when this reader can read it, so
|
|
33
|
+
// the right next step is simply to read that page — not page_history, and never author.
|
|
34
|
+
if (typeof t.successor === 'string' && t.successor.trim()) {
|
|
35
|
+
return `\n\n[[${name}]] was retired${when} and replaced by [[${t.successor}]] — its content now lives there. Read that page instead: \`read_page "${t.successor}"\`.${refs} Do NOT author [[${name}]] again: that would undo a deliberate merge. Its old text is still in \`page_history "${name}"\`.`
|
|
36
|
+
}
|
|
31
37
|
return `\n\n[[${name}]] EXISTS but is marked ${t.validity ?? 'superseded'} — it was authored and then deliberately retired${when}, so read_page (which serves only current pages) will not show it. It is NOT missing.${refs} Do NOT author over it: that would silently overwrite a decision someone made on purpose. Read it with \`page_history "${name}"\` then \`read_page "${name}"\` with a version. If it genuinely should be live again, revive it deliberately with \`set_page_validity\`.`
|
|
32
38
|
}
|
|
33
39
|
if (t.restricted) {
|
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: '
|
|
6555
|
-
description: '
|
|
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
|
|
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