@paigy/mcp 0.10.3 → 0.10.4

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.
@@ -127,6 +127,12 @@ var PendingRepliesSchema = z.object({
127
127
  * fulfill one by calling notify_user on its threadId. */
128
128
  owedCallbacks: z.array(
129
129
  z.object({ threadId: z.string(), trigger: CallbackTriggerSchema, note: z.string() })
130
+ ),
131
+ /** Work (either direction) you reported in_progress a while ago and never reported
132
+ * completed — likely left half-done by this session or a prior one that crashed or
133
+ * went idle. Report a real state (set_task_state) or continue the work. */
134
+ stalled: z.array(
135
+ z.object({ threadId: z.string(), notificationId: z.string(), title: z.string().nullable(), startedAt: z.string() })
130
136
  )
131
137
  });
132
138
  var NotifyResponseSchema = z.object({
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  scheduleCallback,
9
9
  setTaskState,
10
10
  submitNotification
11
- } from "./chunk-5EY3Q5DX.js";
11
+ } from "./chunk-UWM2Q4DJ.js";
12
12
  import {
13
13
  deleteToken,
14
14
  openBrowser,
@@ -120,12 +120,12 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
120
120
  },
121
121
  {
122
122
  name: "check_replies",
123
- description: "The catch-up sweep for everything you haven't consumed yet: returns answers to notifications you sent that you haven't seen (now marked seen), your still-pending notifications, and `requests` \u2014 new requests the user started toward you (each { notificationId, threadId, text }, returned once). Act on each request and reply with notify_user on the SAME threadId. Use it when booting up / starting a session, or when you've been waiting a long time on something else, to discover acks or work you're unaware of. To wait on an answer to a notify_user call you just made, use await_reply instead. Also returns owedCallbacks: callbacks now due that you promised \u2014 fulfill each with notify_user on its threadId. Pass includeRecent:true only right after an unexpected restart, to recover a reply you may have claimed but not acted on.",
123
+ description: "The catch-up sweep for everything you haven't consumed yet: returns answers to notifications you sent that you haven't seen (now marked seen), your still-pending notifications, and `requests` \u2014 new requests the user started toward you (each { notificationId, threadId, text }, returned once). Act on each request and reply with notify_user on the SAME threadId. Use it when booting up / starting a session, or when you've been waiting a long time on something else, to discover acks or work you're unaware of. To wait on an answer to a notify_user call you just made, use await_reply instead. Also returns owedCallbacks: callbacks now due that you promised \u2014 fulfill each with notify_user on its threadId. Also returns `stalled`: work (either direction) that got reported in_progress via set_task_state a while ago and never reported completed \u2014 likely left half-done by this session or a prior one that crashed or went idle. For each, either continue the work and report a real state, or investigate why it stalled. Pass includeRecent:true only right after an unexpected restart, to recover a reply you may have claimed but not acted on.",
124
124
  inputSchema: json(CheckRepliesSchema)
125
125
  },
126
126
  {
127
127
  name: "set_task_state",
128
- description: "Report progress on a user-initiated request you received (from check_replies): in_progress (you started working), completed (done), or needs_input (you need more from the user \u2014 usually paired with a notify_user carrying parentId = the same notificationId you're reporting on).",
128
+ description: "Report progress on the follow-up work behind ANY notification you own \u2014 a user-initiated request (from check_replies), or your OWN notify_user question once await_reply/check_replies returns its answer and you start acting on it. Pass that notificationId. States: in_progress (you started working), completed (done), or needs_input (you need more from the user \u2014 usually paired with a notify_user carrying parentId = the same notificationId you're reporting on). Calling this reliably is what lets a future session's check_replies surface `stalled` work you (or a crashed/idle prior session) left at in_progress without ever reporting completed.",
129
129
  inputSchema: json(SetTaskStateToolSchema)
130
130
  },
131
131
  {
package/dist/listen.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  checkReplies,
5
5
  registerDelivery,
6
6
  wakeChannel
7
- } from "./chunk-5EY3Q5DX.js";
7
+ } from "./chunk-UWM2Q4DJ.js";
8
8
  import "./chunk-GU7C5H6L.js";
9
9
 
10
10
  // src/listen.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paigy/mcp",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Paigy MCP server — a voice inbox for your AI agents. Lets an agent notify a user and await their reply.",
5
5
  "license": "MIT",
6
6
  "type": "module",