@theronap/agnoclast-mcp 0.9.298 โ 0.9.299
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.
|
@@ -177,7 +177,7 @@ export function lockStateLine({ lockedInto = null, lock = null, brains = [] } =
|
|
|
177
177
|
if (!brains.length) return ''
|
|
178
178
|
const names = brains.map((b) => b.name).join(', ')
|
|
179
179
|
if (lock?.state === 'in') return `๐ This session is LOCKED to the confidential brain "${lock.brain}".`
|
|
180
|
-
if (lock?.state === 'out') return `๐ Confidential: ${names} โ
|
|
180
|
+
if (lock?.state === 'out') return `๐ Confidential: ${names} โ locked away from this session, because it used another brain first. A new session reaches it if it uses it first.`
|
|
181
181
|
return `๐ Confidential (a session works in one of these ALONE): ${names}\n` +
|
|
182
182
|
' This session is NOT locked yet. Pass the name as `brain` to any tool to lock the session to it; using any other brain first locks these away from the session instead.'
|
|
183
183
|
}
|
package/lib/imessage_send.mjs
CHANGED
|
@@ -38,7 +38,7 @@ export function textRequestReply(status, body, recipient) {
|
|
|
38
38
|
if (reviewUrl) {
|
|
39
39
|
return { isError: false, text:
|
|
40
40
|
`Text request created to ${recipient}. It is NOT sent yet. ` +
|
|
41
|
-
`
|
|
41
|
+
`For the person, word for word: It's waiting for your OK: ${reviewUrl}` }
|
|
42
42
|
}
|
|
43
43
|
const state = body?.request?.state ?? 'approved'
|
|
44
44
|
return { isError: false, text:
|
|
@@ -90,8 +90,8 @@ export function renderProposal(body, candidate, note) {
|
|
|
90
90
|
* tool catalogue read once at startup.
|
|
91
91
|
*/
|
|
92
92
|
export const NOTICE_ASKS =
|
|
93
|
-
'
|
|
94
|
-
'`propose_obligation` and the sentence that says so.
|
|
93
|
+
'Agnoclast note: anything here that asks this person for something (a reply, a call, a form, a deadline) can be ' +
|
|
94
|
+
'tracked with `propose_obligation` and the sentence that says so. Filing it does not surface it.'
|
|
95
95
|
|
|
96
96
|
/** PURE. Append the notice to what a reading tool returns. */
|
|
97
97
|
export function withAskNotice(text) {
|
package/lib/report_issue.mjs
CHANGED
|
@@ -59,13 +59,13 @@ export async function fileIssue(args, { base, token, version, post = postBugRepo
|
|
|
59
59
|
let j = {}
|
|
60
60
|
try { j = await res.json() } catch { /* shape drift โ still filed */ }
|
|
61
61
|
const count = Number(j?.count) > 1 ? ` It has now been reported ${j.count} times.` : ''
|
|
62
|
-
return { isError: false, text: `โ Filed ${report.kind} report${j?.id ? ` ${j.id}` : ''} for \`${report.tool}\`.${count}
|
|
62
|
+
return { isError: false, text: `โ Filed ${report.kind} report${j?.id ? ` ${j.id}` : ''} for \`${report.tool}\`.${count} The person has not been told yet.` }
|
|
63
63
|
}
|
|
64
64
|
if (res && res.status >= 400 && res.status < 500 && res.status !== 429) {
|
|
65
|
-
return { isError: true, text: `NOT FILED โ Agnoclast rejected the report (HTTP ${res.status}).
|
|
65
|
+
return { isError: true, text: `NOT FILED โ Agnoclast rejected the report (HTTP ${res.status}). The person has not been told.` }
|
|
66
66
|
}
|
|
67
67
|
const saved = spool(report)
|
|
68
68
|
return saved
|
|
69
|
-
? { isError: false, text: `Agnoclast could not take the report right now (${res ? `HTTP ${res.status}` : 'unreachable'}), so it was SAVED on this machine and will be sent automatically after the next successful call.
|
|
70
|
-
: { isError: true, text: 'NOT FILED โ Agnoclast was unreachable and the report could not be saved locally either.
|
|
69
|
+
? { isError: false, text: `Agnoclast could not take the report right now (${res ? `HTTP ${res.status}` : 'unreachable'}), so it was SAVED on this machine and will be sent automatically after the next successful call. The person has not been told; it is saved, not yet filed.` }
|
|
70
|
+
: { isError: true, text: 'NOT FILED โ Agnoclast was unreachable and the report could not be saved locally either. The person has not been told.' }
|
|
71
71
|
}
|
package/lib/rolling_log.mjs
CHANGED
|
@@ -58,5 +58,5 @@ export function withEarlierNotes(s, summary) {
|
|
|
58
58
|
export function reminderLine(s) {
|
|
59
59
|
if (s.hostNamesSession || s.asked || s.weakEdits < WEAK_EDITS_BEFORE_ASKING) return ''
|
|
60
60
|
s.asked = true
|
|
61
|
-
return
|
|
61
|
+
return `Agnoclast note: ${s.weakEdits} page edits here have reasons too short to explain the work. \`log_session\` can add one or two sentences saying what is new (and which brain, if the person has several); trivial or personal work needs none.`
|
|
62
62
|
}
|
package/lib/server.mjs
CHANGED
|
@@ -501,8 +501,8 @@ export async function runServer(version) {
|
|
|
501
501
|
if (!res.ok) { try { await res.body?.cancel() } catch { /* nothing to drain */ } return null }
|
|
502
502
|
const { waiting, finished } = await res.json()
|
|
503
503
|
const lines = [
|
|
504
|
-
waiting ?
|
|
505
|
-
finished ?
|
|
504
|
+
waiting ? `Agnoclast note: ${waiting} task${waiting === 1 ? '' : 's'} waiting (\`my_tasks\`).` : '',
|
|
505
|
+
finished ? `Agnoclast note: ${finished} task${finished === 1 ? '' : 's'} you handed out finished (\`handed_tasks\`).` : '',
|
|
506
506
|
].filter(Boolean)
|
|
507
507
|
return lines.length ? lines.join('\n') : null
|
|
508
508
|
} catch { return null }
|
|
@@ -648,8 +648,8 @@ function renderSettling(payload) {
|
|
|
648
648
|
: ''
|
|
649
649
|
|
|
650
650
|
const head = firstSight
|
|
651
|
-
? `\n\
|
|
652
|
-
: `\n\
|
|
651
|
+
? `\n\nAgnoclast note: arrivals settling, which may belong to this session's work. For each: \`intake_claim\` if it does, \`not_mine\` if not. Each is offered once; when every session has passed, the person is told at the next session start.\n`
|
|
652
|
+
: `\n\nAgnoclast note: new arrivals settling. For each: \`intake_claim\` or \`not_mine\`:\n`
|
|
653
653
|
return `${head}${lines.join('\n')}\n` +
|
|
654
654
|
`โ These are unjudged ARRIVALS, not records. Since automatic materialization was deleted, nothing files them for you.\n` +
|
|
655
655
|
`โ \`intake_look <id>\` reads the full body without claiming it โ looking is free, non-exclusive and logged, so look rather than guess from the headline.\n` +
|
|
@@ -2289,7 +2289,7 @@ function renderNudge(payload) {
|
|
|
2289
2289
|
// Relayed VERBATIM โ this exact sentence is the contract the create route records.
|
|
2290
2290
|
return { content: [{ type: 'text', text:
|
|
2291
2291
|
`Send request created from ${acct} to ${n} recipient${n === 1 ? '' : 's'}. It is NOT sent yet. ` +
|
|
2292
|
-
`
|
|
2292
|
+
`For the person, word for word: It's waiting for your OK: ${reviewUrl}` }] }
|
|
2293
2293
|
}
|
|
2294
2294
|
const state = body?.request?.state ?? 'sent'
|
|
2295
2295
|
return { content: [{ type: 'text', text:
|
|
@@ -2574,7 +2574,11 @@ function renderNudge(payload) {
|
|
|
2574
2574
|
// retype silently deleted a sentence, a [[link]] (a graph edge), a command list and the
|
|
2575
2575
|
// word "today" from sections it was never meant to touch. This footer renders on EVERY
|
|
2576
2576
|
// page read in the system, so it was the single widest surface pointing the wrong way.
|
|
2577
|
-
|
|
2577
|
+
// โ FACTS AND OPTIONS, NEVER ORDERS (2026-11-02, page "Tool output vs injection screens"). This footer used to
|
|
2578
|
+
// say "Editing is pre-authorized โ do NOT ask the user", and Muse's prompt-injection screen refused it as an
|
|
2579
|
+
// injected block. Whether to ask first is the reading agent's and its person's call; `author` and `edit_page`
|
|
2580
|
+
// still say in their descriptions that edits are reversible.
|
|
2581
|
+
let footer = `โ Agnoclast note: [[links]] above can be read with read_page.\nโ Agnoclast note: page edits are versioned and can be undone with \`rollback_page\`. A wrong passage can be corrected with \`edit_page\`, quoting the old text as old_string and passing this page's \`version\` as base_version; a stale save hands back what changed. \`author\` re-emits every section, so it suits creating or wholly rewriting a page.\nโ Agnoclast note: code is cited most durably by symbol and file (\`formConnections\` in \`web/app/api/ingest/route.ts\`) rather than line number, and only from files opened this session.`
|
|
2578
2582
|
// ADDRESSING (2026-08-04). The server accepts `ref` on every page/node route and its ambiguity
|
|
2579
2583
|
// 409s hand refs back โ but read_page never PRINTED one, so the only way to obtain a ref was to
|
|
2580
2584
|
// trigger the error first. That made ID addressing reachable in principle and unusable in
|
package/lib/settling_shown.mjs
CHANGED
|
@@ -41,8 +41,8 @@ export function renderSettlingV2(feed, shown) {
|
|
|
41
41
|
return ` - ${x.intakeItemId} ยท ${x.source} ยท ${x.hoursAgo}h ago${named(x.title)}${why}${shared}${looked}`
|
|
42
42
|
})
|
|
43
43
|
const head = firstSight
|
|
44
|
-
? '\n\
|
|
45
|
-
: '\n\
|
|
44
|
+
? '\n\nAgnoclast note: arrivals settling. No live session holds a rarer match for these than this one. For each: `intake_claim` if it belongs to this session\'s work, `not_mine` if not. You are asked once; when every session has passed, the person is told at the next session start.\n'
|
|
45
|
+
: '\n\nAgnoclast note: new arrivals settling. For each: `intake_claim` or `not_mine`:\n'
|
|
46
46
|
const unmatched = Number(feed?.unmatched ?? 0)
|
|
47
47
|
return `${head}${lines.join('\n')}\n` +
|
|
48
48
|
'โ `intake_look <id>` reads the full body without claiming it (free, non-exclusive) โ look rather than guess from the headline.\n' +
|
package/package.json
CHANGED