@theronap/agnoclast-mcp 0.9.289 → 0.9.290

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 +3 -3
  2. package/package.json +1 -1
package/lib/server.mjs CHANGED
@@ -6326,13 +6326,13 @@ function renderNudge(payload) {
6326
6326
  'tasks_waiting',
6327
6327
  {
6328
6328
  title: 'How many tasks are waiting',
6329
- description: 'Just the count of open tasks handed to this token, as `waiting: N`. It marks nothing as picked up, so a cheap poller can call it as often as it likes and wake an agent only when N is above zero. To read the tasks, use my_tasks.',
6329
+ description: 'The open tasks handed to this token, as `waiting: N` and `newest: <time>` (when the newest arrived, or `none`). It marks nothing as picked up, so a cheap poller can call it as often as it likes. A poller should wake an agent when `newest` is later than the last one it saw, not when N rises: a task finishing as another arrives leaves N unchanged. To read the tasks, use my_tasks.',
6330
6330
  inputSchema: {},
6331
6331
  },
6332
6332
  async () => {
6333
6333
  try {
6334
- const { waiting } = await tasksCall('?box=count')
6335
- return { content: [{ type: 'text', text: `waiting: ${waiting}` }] }
6334
+ const { waiting, newest } = await tasksCall('?box=count')
6335
+ return { content: [{ type: 'text', text: `waiting: ${waiting}\nnewest: ${newest ?? 'none'}` }] }
6336
6336
  } catch (e) { return toolError(`Could not count your tasks: ${e.message}`) }
6337
6337
  },
6338
6338
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theronap/agnoclast-mcp",
3
- "version": "0.9.289",
3
+ "version": "0.9.290",
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": {