@theronap/agnoclast-mcp 0.9.338 → 0.9.339

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/diagnose.mjs CHANGED
@@ -442,7 +442,10 @@ async function fetchCortexOnce(url, opts = {}, policy = {}) {
442
442
  const { timeoutMs: optTimeout, signal: callerSignal, ...rest } = opts
443
443
  // x-cortex-tool: the tool this request is for (the running one, else the path map) — the server
444
444
  // counts calls per tool for staff usage stats (api_requests). A name only; arguments never travel.
445
- const baseHeaders = { ...(rest.headers ?? {}), 'x-cortex-client': CLIENT_ID, 'x-cortex-tool': toolForUrl(url), ...(AI_ACCOUNT ? { 'x-cortex-ai-account': AI_ACCOUNT } : {}) }
445
+ // x-cortex-host: running inside Claude Code (CLAUDECODE is set in every process it starts). Claude Code's sessions are
446
+ // logged by the close-out, so setup_status leaves out the agent's "Log its own work" step. A hint only: it can only
447
+ // hide a setup step, never grant anything.
448
+ const baseHeaders = { ...(rest.headers ?? {}), 'x-cortex-client': CLIENT_ID, 'x-cortex-tool': toolForUrl(url), ...(AI_ACCOUNT ? { 'x-cortex-ai-account': AI_ACCOUNT } : {}), ...(process.env.CLAUDECODE ? { 'x-cortex-host': 'claude-code' } : {}) }
446
449
  const fetchOpts = SESSION_KEY
447
450
  ? { ...rest, headers: { ...baseHeaders, 'x-cortex-session-key': SESSION_KEY } }
448
451
  : { ...rest, headers: baseHeaders }
package/lib/server.mjs CHANGED
@@ -4551,6 +4551,7 @@ function renderNudge(payload) {
4551
4551
  return { content: [{ type: 'text', text: l.join('\n') }] }
4552
4552
  }
4553
4553
  const lines = [`Captured "${title}" as record ${body.id}.`]
4554
+ if (body.note) lines.push(`Note: ${body.note}`)
4554
4555
  // ⚠ AN UNROUTED RECORD IS REPORTED AS SUCH. It was stored, but nothing will find it — reporting
4555
4556
  // that as a plain success is how a record becomes invisible while looking filed.
4556
4557
  if (body.routed_by?.length) lines.push(`Routes via: ${body.routed_by.join(', ')} — it reaches whatever page claims those.`)
@@ -6757,7 +6758,7 @@ function renderNudge(payload) {
6757
6758
  async () => {
6758
6759
  try {
6759
6760
  const { waiting, newest, hours_changed, arrivals } = await tasksCall('?box=count')
6760
- const hours = hours_changed ? '\nhours: your person changed your working hours. Call setup_status with runs_unattended true to see them.' : ''
6761
+ const hours = hours_changed ? '\nhours: your person set working hours you have not confirmed yet. Call setup_status with runs_unattended true to see them and confirm.' : ''
6761
6762
  const arr = arrivals ? `\narrivals: ${arrivals} (mail on threads you sent; read and file them with your Agnoclast arrivals tools)` : ''
6762
6763
  return { content: [{ type: 'text', text: `waiting: ${waiting}\nnewest: ${newest ?? 'none'}${arr}${hours}` }] }
6763
6764
  } catch (e) { return toolError(`Could not count your tasks: ${e.message}`) }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theronap/agnoclast-mcp",
3
- "version": "0.9.338",
3
+ "version": "0.9.339",
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": {