@theronap/agnoclast-mcp 0.9.246 → 0.9.247
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/server.mjs +5 -1
- package/package.json +1 -1
package/lib/server.mjs
CHANGED
|
@@ -6491,7 +6491,11 @@ function renderNudge(payload) {
|
|
|
6491
6491
|
const out = await res.json().catch(() => null)
|
|
6492
6492
|
if (!res.ok) return toolError(`Could not ${action}: ${out?.error ?? res.status}`)
|
|
6493
6493
|
const verb = { granted: 'now has access to', already_granted: 'already had access to', revoked: 'no longer has access to', not_granted: 'had no grant on' }[out.action]
|
|
6494
|
-
|
|
6494
|
+
// Agent oversight (2026-10-20): a confidential page shared with an AI agent is shared with its creator and
|
|
6495
|
+
// manager too. The sharer must be told who else can now read it.
|
|
6496
|
+
const also = Array.isArray(out.alsoGranted) && out.alsoGranted.length
|
|
6497
|
+
? ` Because ${out.grantee} is an AI agent, its overseers can read it too: ${out.alsoGranted.join(', ')}.` : ''
|
|
6498
|
+
return { content: [{ type: 'text', text: `Done — ${out.grantee} ${verb} the ${out.tier} page.${also}` }] }
|
|
6495
6499
|
},
|
|
6496
6500
|
)
|
|
6497
6501
|
|
package/package.json
CHANGED