@paigy/mcp 0.27.0 → 0.28.0

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/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @paigy/mcp
2
2
 
3
+ > **Canonical setup:** `curl -fsSL https://paigy.ai/install | sh` — one command, one
4
+ > QR scan; no pairing codes. Everything below is the manual per-client reference for
5
+ > machines that can't run the harness.
6
+
3
7
  A voice inbox for your AI agents. This MCP server lets an agent **notify a user** and **await their reply** — so a long-running agent can ask a question, hand off, and resume on the answer. It's a thin MCP-tool wrapper over `@paigy/sdk` (`packages/sdk`) — use the SDK directly from any Node process that isn't an MCP client.
4
8
 
5
9
  ## Install
@@ -20,7 +20,7 @@ var TransformSchema = z.enum([
20
20
  "coalesce",
21
21
  // many bundles → one — morning triage (#347), threading-supersede, digest
22
22
  "organize",
23
- // group related bundles onto one thread — threading (`threadId`), parent/clarify links
23
+ // group related bundles onto one thread — threading (`parentId`), parent/clarify links
24
24
  "summarize"
25
25
  // reduce volume, keep decision value — 30-turn cap, spoken briefing
26
26
  ]);
@@ -90,13 +90,19 @@ var NotifyRequestSchema = z.object({
90
90
  repo: z.string().optional(),
91
91
  /** Git branch the agent is on. Local MCP fills this from the checkout — omit unless overriding. */
92
92
  branch: z.string().optional(),
93
- /** Continue an existing conversation; omitted = start a new thread. */
94
- threadId: z.string().uuid().optional(),
93
+ /** Continue an existing conversation — the id of any notification in it (its root
94
+ * is the conversation's identity). Omitted = start a new conversation. Renamed
95
+ * from `parentId` (2026-08-03): one linkage system, the parent; the API edge
96
+ * still accepts the old name from older clients. */
97
+ parentId: z.string().uuid().optional(),
95
98
  urgency: NotifyLevelSchema.default("inbox").describe(
96
99
  "The level you're requesting \u2014 the user's account permissions + session mode can lower it. 'inbox' (default) = sits silently in the inbox for the user to get to. 'push' = a quiet passive push (lands in Notification Center, no sound) \u2014 a gentle heads-up. 'banner' = a time-sensitive banner/lock-screen push with sound (a 'paige') they tap to open \u2014 use when you need them soon-ish but it's not worth ringing them. 'call' = rings the user's phone now (a CallKit voice call) \u2014 use only when you genuinely need them in the moment (blocked and waiting, time-sensitive). context.title is what they see on the banner/ring, so make it specific."
97
100
  ),
98
- /** The request this one was spawned from, for a clarification. */
99
- parentId: z.string().optional(),
101
+ /** The request this one CLARIFIES — spawning a clarification keeps that parent
102
+ * visible and marks it needs_input. Renamed from the old `parentId` (2026-08-03)
103
+ * when `parentId` became the conversation handle: `parentId` says WHERE, this
104
+ * says HOW. */
105
+ clarifies: z.string().optional(),
100
106
  /** E2EE (text lane): when the pairing is E2EE, the sealed replacements for the
101
107
  * plaintext content fields, keyed by field name. FINALIZED wire shape (was
102
108
  * provisional in the storage PR): a per-field map `{ context?, options?,
@@ -216,7 +222,7 @@ var IntentSchema = z.object({
216
222
  // it by two ("detail", "feedback"), and because the settle handler parsed the array
217
223
  // all-or-nothing, ONE feedback act silently dropped EVERY intent on the call,
218
224
  // questions included. Found auditing five calls' stored feedback, 2026-08-01.
219
- kind: z.enum(["defer", "delegate", "channel", "question", "detail", "feedback", "command"]),
225
+ kind: z.enum(["defer", "delegate", "channel", "question", "detail", "feedback", "command", "control"]),
220
226
  detail: z.string(),
221
227
  /** Landed defer (#397): the MCP parses common spoken forms ("in 20 minutes",
222
228
  * "after lunch") against the agent machine's clock — the user's — and attaches
@@ -227,7 +233,7 @@ var IntentSchema = z.object({
227
233
  var AwaitItemSchema = z.discriminatedUnion("type", [
228
234
  z.object({
229
235
  type: z.literal("reply"),
230
- threadId: z.string(),
236
+ parentId: z.string(),
231
237
  notificationId: z.string(),
232
238
  answer: UserAnswerSchema,
233
239
  /** E2EE: present when the answer is sealed. The server relays the opaque answer
@@ -248,7 +254,7 @@ var AwaitItemSchema = z.discriminatedUnion("type", [
248
254
  }),
249
255
  z.object({
250
256
  type: z.literal("remind"),
251
- threadId: z.string(),
257
+ parentId: z.string(),
252
258
  notificationId: z.string(),
253
259
  remindAt: z.string().datetime({ offset: true }),
254
260
  /** Seconds until remindAt, server-computed — pass straight to ScheduleWakeup. */
@@ -260,7 +266,7 @@ var AwaitItemSchema = z.discriminatedUnion("type", [
260
266
  * re-orient via get_thread / check_replies). */
261
267
  z.object({
262
268
  type: z.literal("superseded"),
263
- threadId: z.string(),
269
+ parentId: z.string(),
264
270
  notificationId: z.string()
265
271
  }),
266
272
  /** A LIVE call's turn, streamed as it lands (#783). PROVISIONAL: the user can still
@@ -283,7 +289,7 @@ var AwaitItemSchema = z.discriminatedUnion("type", [
283
289
  ]);
284
290
  var CallbackTriggerSchema = z.enum(["on_done", "on_blocked", "scheduled"]);
285
291
  var ScheduleCallbackSchema = z.object({
286
- threadId: z.string().describe("The thread to call back on (from a prior contact / reply / request)."),
292
+ parentId: z.string().describe("The thread to call back on (from a prior contact / reply / request)."),
287
293
  trigger: CallbackTriggerSchema,
288
294
  dueInSeconds: z.number().int().positive().optional().describe("For 'scheduled' only: how many seconds from now to fire."),
289
295
  note: z.string().optional().describe("What to tell the user when you follow up.")
@@ -291,7 +297,7 @@ var ScheduleCallbackSchema = z.object({
291
297
  var PendingRepliesSchema = z.object({
292
298
  replies: z.array(
293
299
  z.object({
294
- threadId: z.string(),
300
+ parentId: z.string(),
295
301
  notificationId: z.string(),
296
302
  answer: UserAnswerSchema,
297
303
  /** E2EE: the sealed answer (opaque envelope + plaintext `ignored` hint) when the
@@ -308,33 +314,33 @@ var PendingRepliesSchema = z.object({
308
314
  })
309
315
  ),
310
316
  pending: z.array(
311
- z.object({ threadId: z.string(), notificationId: z.string(), createdAt: z.string() })
317
+ z.object({ parentId: z.string(), notificationId: z.string(), createdAt: z.string() })
312
318
  ),
313
319
  /** User-initiated requests addressed to this agent; act on them and reply via
314
- * contact on the same threadId. Keeps reappearing until you call
320
+ * contact on the same parentId. Keeps reappearing until you call
315
321
  * set_task_state on its notificationId. */
316
322
  requests: z.array(
317
323
  z.object({
318
- threadId: z.string(),
324
+ parentId: z.string(),
319
325
  notificationId: z.string(),
320
326
  text: z.string(),
321
327
  createdAt: z.string(),
322
328
  /** The user seeded this request with a past conversation — call get_thread on it
323
329
  * FIRST and treat the transcript as prior context (#57/#251). */
324
- contextThreadId: z.string().optional()
330
+ contextParentId: z.string().optional()
325
331
  })
326
332
  ),
327
333
  /** Callbacks you owe the user that are now DUE (you said you'd follow up when done,
328
334
  * if blocked, or at a time that has passed). Re-surfaced every sweep until you
329
- * fulfill one by calling contact on its threadId. */
335
+ * fulfill one by calling contact on its parentId. */
330
336
  owedCallbacks: z.array(
331
- z.object({ threadId: z.string(), trigger: CallbackTriggerSchema, note: z.string() })
337
+ z.object({ parentId: z.string(), trigger: CallbackTriggerSchema, note: z.string() })
332
338
  ),
333
339
  /** Work (either direction) you reported in_progress a while ago and never reported
334
340
  * completed — likely left half-done by this session or a prior one that crashed or
335
341
  * went idle. Report a real state (set_task_state) or continue the work. */
336
342
  stalled: z.array(
337
- z.object({ threadId: z.string(), notificationId: z.string(), title: z.string().nullable(), startedAt: z.string() })
343
+ z.object({ parentId: z.string(), notificationId: z.string(), title: z.string().nullable(), startedAt: z.string() })
338
344
  ),
339
345
  /** The queue rail (#614, pending/design.md): the same replies + requests, grouped by
340
346
  * thread and ordered oldest-thread-first, so you work ONE thread at a time — fold all of
@@ -345,7 +351,7 @@ var PendingRepliesSchema = z.object({
345
351
  * notificationId). Derived, never stored — a crashed agent recomputes it exactly. */
346
352
  threads: z.array(
347
353
  z.object({
348
- threadId: z.string(),
354
+ parentId: z.string(),
349
355
  busy: z.boolean(),
350
356
  items: z.array(
351
357
  z.object({
@@ -398,13 +404,21 @@ var AgendaTurnSchema = z.object({
398
404
  * caller already answered this claim in an earlier utterance, quoted here VERBATIM —
399
405
  * the bot speaks the turn's short confirmation, posts these words as the claim's
400
406
  * answer, and never re-asks. Grounded at parse time: an invented settle is #796. */
401
- settle: z.string().optional()
407
+ settle: z.string().optional(),
408
+ /** Pacing (#826, owner 2026-08-03: "how fast we move through them ... are parameters"):
409
+ * seconds the floor stays open after this turn speaks. Absent = the bot's defaults
410
+ * (the beat for context, the answer window for asks). Clamped bot-side. */
411
+ pace: z.number().positive().optional(),
412
+ /** Whether the walk WAITS for an answer before moving on. Absent = derived as today
413
+ * (a question blocks, context flows). blocking:false on a question = ask and move
414
+ * on, the claim stays pending; blocking:true on context = hold for a reply. */
415
+ blocking: z.boolean().optional()
402
416
  });
403
417
  var InboxItemSchema = z.object({
404
418
  id: z.string(),
405
419
  /** The conversation thread + connection this item lives on. Present on the replied
406
420
  * detail — they power History's "Continue" / "New session from this" (#57/#251). */
407
- threadId: z.string().optional(),
421
+ parentId: z.string().optional(),
408
422
  tokenId: z.string().optional(),
409
423
  status: NotifyStatusSchema,
410
424
  context: ContextSchema,
@@ -438,7 +452,7 @@ var InboxItemSchema = z.object({
438
452
  * the agent (provider-agnostic; set server-side). Absent = no hard error, though the
439
453
  * client may still flag a stall by age. Drives the inbox error badge + Retry. */
440
454
  error: z.string().optional(),
441
- parentId: z.string().optional(),
455
+ clarifies: z.string().optional(),
442
456
  select: z.enum(["one", "many", "rank", "confirm", "text"]).default("one"),
443
457
  confirmStyle: z.enum(["yesno", "approve"]).default("yesno").describe(
444
458
  "Labels for a select:'confirm' paige \u2014 'yesno' (Yes/No) or 'approve' (Approve/Deny). Ignored unless select is 'confirm'."
@@ -537,7 +551,7 @@ var UserSettingsSchema = z.object({
537
551
  });
538
552
  var HistoryItemSchema = z.object({
539
553
  id: z.string(),
540
- threadId: z.string(),
554
+ parentId: z.string(),
541
555
  /** 'user' = a request you sent; 'agent' = a notification an agent sent you. */
542
556
  initiator: z.enum(["user", "agent"]),
543
557
  title: z.string(),
@@ -564,6 +578,16 @@ var ConnectionSummarySchema = z.object({
564
578
  /** Most recent notification on this connection, either direction. Null = no contact yet.
565
579
  * Drives the agents-page recency grouping (Today / This week / …). */
566
580
  lastContactAt: z.string().datetime().nullable(),
581
+ /** Last presence heartbeat from a running agent process (POST /api/presence) — the
582
+ * desktop app while open. Null = never seen; stale = offline. */
583
+ lastSeenAt: z.string().datetime().nullable().optional(),
584
+ /** What a live desktop can run (companion.md §2.2), advertised on its heartbeat:
585
+ * harness availabilities + granted workspaces — the option set the phone's
586
+ * "new session" sheet offers. Absent for ordinary MCP agents. */
587
+ runtime: z.object({
588
+ harnesses: z.array(z.object({ name: z.string(), label: z.string(), status: z.string() })).optional(),
589
+ workspaces: z.array(z.string()).optional()
590
+ }).optional(),
567
591
  /** True = a provider-managed agent running in the provider's cloud (e.g. Anthropic CMA);
568
592
  * false = a local MCP connection running on the user's computer (Claude Code/Codex/…). */
569
593
  managed: z.boolean()
@@ -575,15 +599,15 @@ var CreateRequestSchema = z.object({
575
599
  text: z.string().min(1),
576
600
  /** Land the request on an existing conversation thread (History → "Continue")
577
601
  * instead of minting a fresh one. Must belong to the requesting user. */
578
- threadId: z.string().optional(),
602
+ parentId: z.string().optional(),
579
603
  /** Point the agent at a past conversation (possibly with a different agent) as
580
604
  * starting context (History → "New session from this"). A reference, not a copy —
581
605
  * the agent reads it via get_thread. Must belong to the requesting user. */
582
- contextThreadId: z.string().optional()
606
+ contextParentId: z.string().optional()
583
607
  });
584
608
  var HandoffSchema = z.object({
585
609
  /** Land the note on an existing thread; omitted mints a fresh one. */
586
- threadId: z.string().uuid().optional(),
610
+ parentId: z.string().uuid().optional(),
587
611
  /** One-line headline of the working context handed off. */
588
612
  title: z.string().min(1),
589
613
  /** The brief — standalone notes the successor reads (what was done, what's left, links). */
@@ -622,7 +646,7 @@ var NoteSchema = z.object({
622
646
  /** Who it was assigned to (a participant ref, 'agent:<tokenId>'); null = unassigned. */
623
647
  assignee: z.string().nullable(),
624
648
  /** The request thread minted at assignment; null until assigned. */
625
- threadId: z.string().nullable(),
649
+ parentId: z.string().nullable(),
626
650
  createdAt: z.string()
627
651
  });
628
652
  var CreateNoteSchema = z.object({
@@ -638,8 +662,17 @@ var RecordDecisionSchema = z.object({
638
662
  answer: z.string().min(1).max(2e3)
639
663
  }).refine((d) => d.decisionId || d.question, { message: "decisionId or question required" });
640
664
  var AssignNoteSchema = z.object({
641
- target: z.string().min(1)
642
- });
665
+ /** An EXISTING agent: token id or nickname. Omit when spawning fresh. */
666
+ target: z.string().min(1).optional(),
667
+ /** Spawn a NEW session for this note (companion.md §2.2): the assignee doesn't
668
+ * exist yet — mint it on a live desktop that advertises the harness+workspace,
669
+ * named after the note. The brief arrives as its opening request. */
670
+ spawn: z.object({
671
+ hostTokenId: z.string().uuid(),
672
+ harness: z.string().min(1),
673
+ workspace: z.string().min(1)
674
+ }).optional()
675
+ }).refine((a) => !!a.target !== !!a.spawn, { message: "exactly one of target or spawn" });
643
676
  var DeliveryModeSchema = z.enum(["poll", "self_hosted"]);
644
677
  var WAKE_EVENT = "wake";
645
678
  var wakeChannel = (tokenId) => `wake:${tokenId}`;
@@ -701,7 +734,7 @@ var DeviceRosterSchema = z.object({
701
734
  var WakeNudgeSchema = z.object({
702
735
  kind: z.enum(["reply", "request", "callback"]),
703
736
  notificationId: z.string().optional(),
704
- threadId: z.string()
737
+ parentId: z.string()
705
738
  });
706
739
  var PairingStatusSchema = z.enum(["pending", "approved", "denied", "expired"]);
707
740
  var PairingRevealSchema = z.object({
@@ -2336,7 +2336,7 @@ var TransformSchema = z.enum([
2336
2336
  "coalesce",
2337
2337
  // many bundles → one — morning triage (#347), threading-supersede, digest
2338
2338
  "organize",
2339
- // group related bundles onto one thread — threading (`threadId`), parent/clarify links
2339
+ // group related bundles onto one thread — threading (`parentId`), parent/clarify links
2340
2340
  "summarize"
2341
2341
  // reduce volume, keep decision value — 30-turn cap, spoken briefing
2342
2342
  ]);
@@ -2406,13 +2406,19 @@ var NotifyRequestSchema = z.object({
2406
2406
  repo: z.string().optional(),
2407
2407
  /** Git branch the agent is on. Local MCP fills this from the checkout — omit unless overriding. */
2408
2408
  branch: z.string().optional(),
2409
- /** Continue an existing conversation; omitted = start a new thread. */
2410
- threadId: z.string().uuid().optional(),
2409
+ /** Continue an existing conversation — the id of any notification in it (its root
2410
+ * is the conversation's identity). Omitted = start a new conversation. Renamed
2411
+ * from `parentId` (2026-08-03): one linkage system, the parent; the API edge
2412
+ * still accepts the old name from older clients. */
2413
+ parentId: z.string().uuid().optional(),
2411
2414
  urgency: NotifyLevelSchema.default("inbox").describe(
2412
2415
  "The level you're requesting \u2014 the user's account permissions + session mode can lower it. 'inbox' (default) = sits silently in the inbox for the user to get to. 'push' = a quiet passive push (lands in Notification Center, no sound) \u2014 a gentle heads-up. 'banner' = a time-sensitive banner/lock-screen push with sound (a 'paige') they tap to open \u2014 use when you need them soon-ish but it's not worth ringing them. 'call' = rings the user's phone now (a CallKit voice call) \u2014 use only when you genuinely need them in the moment (blocked and waiting, time-sensitive). context.title is what they see on the banner/ring, so make it specific."
2413
2416
  ),
2414
- /** The request this one was spawned from, for a clarification. */
2415
- parentId: z.string().optional(),
2417
+ /** The request this one CLARIFIES — spawning a clarification keeps that parent
2418
+ * visible and marks it needs_input. Renamed from the old `parentId` (2026-08-03)
2419
+ * when `parentId` became the conversation handle: `parentId` says WHERE, this
2420
+ * says HOW. */
2421
+ clarifies: z.string().optional(),
2416
2422
  /** E2EE (text lane): when the pairing is E2EE, the sealed replacements for the
2417
2423
  * plaintext content fields, keyed by field name. FINALIZED wire shape (was
2418
2424
  * provisional in the storage PR): a per-field map `{ context?, options?,
@@ -2577,7 +2583,7 @@ var IntentSchema = z.object({
2577
2583
  // it by two ("detail", "feedback"), and because the settle handler parsed the array
2578
2584
  // all-or-nothing, ONE feedback act silently dropped EVERY intent on the call,
2579
2585
  // questions included. Found auditing five calls' stored feedback, 2026-08-01.
2580
- kind: z.enum(["defer", "delegate", "channel", "question", "detail", "feedback", "command"]),
2586
+ kind: z.enum(["defer", "delegate", "channel", "question", "detail", "feedback", "command", "control"]),
2581
2587
  detail: z.string(),
2582
2588
  /** Landed defer (#397): the MCP parses common spoken forms ("in 20 minutes",
2583
2589
  * "after lunch") against the agent machine's clock — the user's — and attaches
@@ -2588,7 +2594,7 @@ var IntentSchema = z.object({
2588
2594
  var AwaitItemSchema = z.discriminatedUnion("type", [
2589
2595
  z.object({
2590
2596
  type: z.literal("reply"),
2591
- threadId: z.string(),
2597
+ parentId: z.string(),
2592
2598
  notificationId: z.string(),
2593
2599
  answer: UserAnswerSchema,
2594
2600
  /** E2EE: present when the answer is sealed. The server relays the opaque answer
@@ -2609,7 +2615,7 @@ var AwaitItemSchema = z.discriminatedUnion("type", [
2609
2615
  }),
2610
2616
  z.object({
2611
2617
  type: z.literal("remind"),
2612
- threadId: z.string(),
2618
+ parentId: z.string(),
2613
2619
  notificationId: z.string(),
2614
2620
  remindAt: z.string().datetime({ offset: true }),
2615
2621
  /** Seconds until remindAt, server-computed — pass straight to ScheduleWakeup. */
@@ -2621,7 +2627,7 @@ var AwaitItemSchema = z.discriminatedUnion("type", [
2621
2627
  * re-orient via get_thread / check_replies). */
2622
2628
  z.object({
2623
2629
  type: z.literal("superseded"),
2624
- threadId: z.string(),
2630
+ parentId: z.string(),
2625
2631
  notificationId: z.string()
2626
2632
  }),
2627
2633
  /** A LIVE call's turn, streamed as it lands (#783). PROVISIONAL: the user can still
@@ -2644,7 +2650,7 @@ var AwaitItemSchema = z.discriminatedUnion("type", [
2644
2650
  ]);
2645
2651
  var CallbackTriggerSchema = z.enum(["on_done", "on_blocked", "scheduled"]);
2646
2652
  var ScheduleCallbackSchema = z.object({
2647
- threadId: z.string().describe("The thread to call back on (from a prior contact / reply / request)."),
2653
+ parentId: z.string().describe("The thread to call back on (from a prior contact / reply / request)."),
2648
2654
  trigger: CallbackTriggerSchema,
2649
2655
  dueInSeconds: z.number().int().positive().optional().describe("For 'scheduled' only: how many seconds from now to fire."),
2650
2656
  note: z.string().optional().describe("What to tell the user when you follow up.")
@@ -2652,7 +2658,7 @@ var ScheduleCallbackSchema = z.object({
2652
2658
  var PendingRepliesSchema = z.object({
2653
2659
  replies: z.array(
2654
2660
  z.object({
2655
- threadId: z.string(),
2661
+ parentId: z.string(),
2656
2662
  notificationId: z.string(),
2657
2663
  answer: UserAnswerSchema,
2658
2664
  /** E2EE: the sealed answer (opaque envelope + plaintext `ignored` hint) when the
@@ -2669,33 +2675,33 @@ var PendingRepliesSchema = z.object({
2669
2675
  })
2670
2676
  ),
2671
2677
  pending: z.array(
2672
- z.object({ threadId: z.string(), notificationId: z.string(), createdAt: z.string() })
2678
+ z.object({ parentId: z.string(), notificationId: z.string(), createdAt: z.string() })
2673
2679
  ),
2674
2680
  /** User-initiated requests addressed to this agent; act on them and reply via
2675
- * contact on the same threadId. Keeps reappearing until you call
2681
+ * contact on the same parentId. Keeps reappearing until you call
2676
2682
  * set_task_state on its notificationId. */
2677
2683
  requests: z.array(
2678
2684
  z.object({
2679
- threadId: z.string(),
2685
+ parentId: z.string(),
2680
2686
  notificationId: z.string(),
2681
2687
  text: z.string(),
2682
2688
  createdAt: z.string(),
2683
2689
  /** The user seeded this request with a past conversation — call get_thread on it
2684
2690
  * FIRST and treat the transcript as prior context (#57/#251). */
2685
- contextThreadId: z.string().optional()
2691
+ contextParentId: z.string().optional()
2686
2692
  })
2687
2693
  ),
2688
2694
  /** Callbacks you owe the user that are now DUE (you said you'd follow up when done,
2689
2695
  * if blocked, or at a time that has passed). Re-surfaced every sweep until you
2690
- * fulfill one by calling contact on its threadId. */
2696
+ * fulfill one by calling contact on its parentId. */
2691
2697
  owedCallbacks: z.array(
2692
- z.object({ threadId: z.string(), trigger: CallbackTriggerSchema, note: z.string() })
2698
+ z.object({ parentId: z.string(), trigger: CallbackTriggerSchema, note: z.string() })
2693
2699
  ),
2694
2700
  /** Work (either direction) you reported in_progress a while ago and never reported
2695
2701
  * completed — likely left half-done by this session or a prior one that crashed or
2696
2702
  * went idle. Report a real state (set_task_state) or continue the work. */
2697
2703
  stalled: z.array(
2698
- z.object({ threadId: z.string(), notificationId: z.string(), title: z.string().nullable(), startedAt: z.string() })
2704
+ z.object({ parentId: z.string(), notificationId: z.string(), title: z.string().nullable(), startedAt: z.string() })
2699
2705
  ),
2700
2706
  /** The queue rail (#614, pending/design.md): the same replies + requests, grouped by
2701
2707
  * thread and ordered oldest-thread-first, so you work ONE thread at a time — fold all of
@@ -2706,7 +2712,7 @@ var PendingRepliesSchema = z.object({
2706
2712
  * notificationId). Derived, never stored — a crashed agent recomputes it exactly. */
2707
2713
  threads: z.array(
2708
2714
  z.object({
2709
- threadId: z.string(),
2715
+ parentId: z.string(),
2710
2716
  busy: z.boolean(),
2711
2717
  items: z.array(
2712
2718
  z.object({
@@ -2759,13 +2765,21 @@ var AgendaTurnSchema = z.object({
2759
2765
  * caller already answered this claim in an earlier utterance, quoted here VERBATIM —
2760
2766
  * the bot speaks the turn's short confirmation, posts these words as the claim's
2761
2767
  * answer, and never re-asks. Grounded at parse time: an invented settle is #796. */
2762
- settle: z.string().optional()
2768
+ settle: z.string().optional(),
2769
+ /** Pacing (#826, owner 2026-08-03: "how fast we move through them ... are parameters"):
2770
+ * seconds the floor stays open after this turn speaks. Absent = the bot's defaults
2771
+ * (the beat for context, the answer window for asks). Clamped bot-side. */
2772
+ pace: z.number().positive().optional(),
2773
+ /** Whether the walk WAITS for an answer before moving on. Absent = derived as today
2774
+ * (a question blocks, context flows). blocking:false on a question = ask and move
2775
+ * on, the claim stays pending; blocking:true on context = hold for a reply. */
2776
+ blocking: z.boolean().optional()
2763
2777
  });
2764
2778
  var InboxItemSchema = z.object({
2765
2779
  id: z.string(),
2766
2780
  /** The conversation thread + connection this item lives on. Present on the replied
2767
2781
  * detail — they power History's "Continue" / "New session from this" (#57/#251). */
2768
- threadId: z.string().optional(),
2782
+ parentId: z.string().optional(),
2769
2783
  tokenId: z.string().optional(),
2770
2784
  status: NotifyStatusSchema,
2771
2785
  context: ContextSchema,
@@ -2799,7 +2813,7 @@ var InboxItemSchema = z.object({
2799
2813
  * the agent (provider-agnostic; set server-side). Absent = no hard error, though the
2800
2814
  * client may still flag a stall by age. Drives the inbox error badge + Retry. */
2801
2815
  error: z.string().optional(),
2802
- parentId: z.string().optional(),
2816
+ clarifies: z.string().optional(),
2803
2817
  select: z.enum(["one", "many", "rank", "confirm", "text"]).default("one"),
2804
2818
  confirmStyle: z.enum(["yesno", "approve"]).default("yesno").describe(
2805
2819
  "Labels for a select:'confirm' paige \u2014 'yesno' (Yes/No) or 'approve' (Approve/Deny). Ignored unless select is 'confirm'."
@@ -2898,7 +2912,7 @@ var UserSettingsSchema = z.object({
2898
2912
  });
2899
2913
  var HistoryItemSchema = z.object({
2900
2914
  id: z.string(),
2901
- threadId: z.string(),
2915
+ parentId: z.string(),
2902
2916
  /** 'user' = a request you sent; 'agent' = a notification an agent sent you. */
2903
2917
  initiator: z.enum(["user", "agent"]),
2904
2918
  title: z.string(),
@@ -2925,6 +2939,16 @@ var ConnectionSummarySchema = z.object({
2925
2939
  /** Most recent notification on this connection, either direction. Null = no contact yet.
2926
2940
  * Drives the agents-page recency grouping (Today / This week / …). */
2927
2941
  lastContactAt: z.string().datetime().nullable(),
2942
+ /** Last presence heartbeat from a running agent process (POST /api/presence) — the
2943
+ * desktop app while open. Null = never seen; stale = offline. */
2944
+ lastSeenAt: z.string().datetime().nullable().optional(),
2945
+ /** What a live desktop can run (companion.md §2.2), advertised on its heartbeat:
2946
+ * harness availabilities + granted workspaces — the option set the phone's
2947
+ * "new session" sheet offers. Absent for ordinary MCP agents. */
2948
+ runtime: z.object({
2949
+ harnesses: z.array(z.object({ name: z.string(), label: z.string(), status: z.string() })).optional(),
2950
+ workspaces: z.array(z.string()).optional()
2951
+ }).optional(),
2928
2952
  /** True = a provider-managed agent running in the provider's cloud (e.g. Anthropic CMA);
2929
2953
  * false = a local MCP connection running on the user's computer (Claude Code/Codex/…). */
2930
2954
  managed: z.boolean()
@@ -2936,15 +2960,15 @@ var CreateRequestSchema = z.object({
2936
2960
  text: z.string().min(1),
2937
2961
  /** Land the request on an existing conversation thread (History → "Continue")
2938
2962
  * instead of minting a fresh one. Must belong to the requesting user. */
2939
- threadId: z.string().optional(),
2963
+ parentId: z.string().optional(),
2940
2964
  /** Point the agent at a past conversation (possibly with a different agent) as
2941
2965
  * starting context (History → "New session from this"). A reference, not a copy —
2942
2966
  * the agent reads it via get_thread. Must belong to the requesting user. */
2943
- contextThreadId: z.string().optional()
2967
+ contextParentId: z.string().optional()
2944
2968
  });
2945
2969
  var HandoffSchema = z.object({
2946
2970
  /** Land the note on an existing thread; omitted mints a fresh one. */
2947
- threadId: z.string().uuid().optional(),
2971
+ parentId: z.string().uuid().optional(),
2948
2972
  /** One-line headline of the working context handed off. */
2949
2973
  title: z.string().min(1),
2950
2974
  /** The brief — standalone notes the successor reads (what was done, what's left, links). */
@@ -2983,7 +3007,7 @@ var NoteSchema = z.object({
2983
3007
  /** Who it was assigned to (a participant ref, 'agent:<tokenId>'); null = unassigned. */
2984
3008
  assignee: z.string().nullable(),
2985
3009
  /** The request thread minted at assignment; null until assigned. */
2986
- threadId: z.string().nullable(),
3010
+ parentId: z.string().nullable(),
2987
3011
  createdAt: z.string()
2988
3012
  });
2989
3013
  var CreateNoteSchema = z.object({
@@ -2999,8 +3023,17 @@ var RecordDecisionSchema = z.object({
2999
3023
  answer: z.string().min(1).max(2e3)
3000
3024
  }).refine((d) => d.decisionId || d.question, { message: "decisionId or question required" });
3001
3025
  var AssignNoteSchema = z.object({
3002
- target: z.string().min(1)
3003
- });
3026
+ /** An EXISTING agent: token id or nickname. Omit when spawning fresh. */
3027
+ target: z.string().min(1).optional(),
3028
+ /** Spawn a NEW session for this note (companion.md §2.2): the assignee doesn't
3029
+ * exist yet — mint it on a live desktop that advertises the harness+workspace,
3030
+ * named after the note. The brief arrives as its opening request. */
3031
+ spawn: z.object({
3032
+ hostTokenId: z.string().uuid(),
3033
+ harness: z.string().min(1),
3034
+ workspace: z.string().min(1)
3035
+ }).optional()
3036
+ }).refine((a) => !!a.target !== !!a.spawn, { message: "exactly one of target or spawn" });
3004
3037
  var DeliveryModeSchema = z.enum(["poll", "self_hosted"]);
3005
3038
  var RegisterDeliverySchema = z.object({ mode: DeliveryModeSchema });
3006
3039
  var OAuthStartSchema = z.object({
@@ -3060,7 +3093,7 @@ var DeviceRosterSchema = z.object({
3060
3093
  var WakeNudgeSchema = z.object({
3061
3094
  kind: z.enum(["reply", "request", "callback"]),
3062
3095
  notificationId: z.string().optional(),
3063
- threadId: z.string()
3096
+ parentId: z.string()
3064
3097
  });
3065
3098
  var PairingStatusSchema = z.enum(["pending", "approved", "denied", "expired"]);
3066
3099
  var PairingRevealSchema = z.object({
@@ -3520,6 +3553,9 @@ function readToken(agent2 = AGENT_NAME) {
3520
3553
  if (process.env.PAIGY_TOKEN) return process.env.PAIGY_TOKEN;
3521
3554
  return readTokenFile()[agent2]?.access_token ?? "";
3522
3555
  }
3556
+ function listSlots() {
3557
+ return Object.keys(readTokenFile());
3558
+ }
3523
3559
  function deleteToken(agent2 = AGENT_NAME) {
3524
3560
  const slots = readTokenFile();
3525
3561
  if (!(agent2 in slots)) return false;
@@ -3725,8 +3761,8 @@ async function sealForE2ee(req, token, deps = {}) {
3725
3761
  const { context: _c, options: _o, visuals: _v, repo: _r, branch: _b, ...meta } = req;
3726
3762
  return { ...meta, envelope };
3727
3763
  }
3728
- async function submitNotification(req) {
3729
- const token = readToken();
3764
+ async function submitNotification(req, opts = {}) {
3765
+ const token = authToken(opts.token) ?? "";
3730
3766
  const body = await sealForE2ee(req, token);
3731
3767
  const res = ensureAuthed(await reach(`${BACKEND_URL}/api/notify`, {
3732
3768
  method: "POST",
@@ -3806,22 +3842,22 @@ function landIntents(intents) {
3806
3842
  return due !== null ? { ...i, dueInSeconds: due } : i;
3807
3843
  });
3808
3844
  }
3809
- async function getThread(threadId) {
3810
- const res = ensureAuthed(await reach(`${BACKEND_URL}/api/thread/${encodeURIComponent(threadId)}`, {
3811
- headers: { authorization: `Bearer ${readToken()}` }
3845
+ async function getThread(parentId) {
3846
+ const res = ensureAuthed(await reach(`${BACKEND_URL}/api/thread/${encodeURIComponent(parentId)}`, {
3847
+ headers: { authorization: `Bearer ${authToken()}` }
3812
3848
  }));
3813
3849
  if (!res.ok) throw new Error(`get_thread failed: ${res.status} ${await res.text()}`);
3814
3850
  return await res.json();
3815
3851
  }
3816
3852
  async function searchThreads(q) {
3817
3853
  const res = ensureAuthed(await reach(`${BACKEND_URL}/api/search?q=${encodeURIComponent(q)}`, {
3818
- headers: { authorization: `Bearer ${readToken()}` }
3854
+ headers: { authorization: `Bearer ${authToken()}` }
3819
3855
  }));
3820
3856
  if (!res.ok) throw new Error(`search_threads failed: ${res.status} ${await res.text()}`);
3821
3857
  return await res.json();
3822
3858
  }
3823
- async function checkReplies() {
3824
- const token = readToken();
3859
+ async function checkReplies(opts = {}) {
3860
+ const token = authToken(opts.token);
3825
3861
  const res = ensureAuthed(await reach(`${BACKEND_URL}/api/pending`, {
3826
3862
  headers: { authorization: `Bearer ${token}` }
3827
3863
  }));
@@ -3840,16 +3876,30 @@ async function checkReplies() {
3840
3876
  async function answerCallerQuestion(notificationId, answer) {
3841
3877
  const res = ensureAuthed(await reach(`${BACKEND_URL}/api/voice/session-answer`, {
3842
3878
  method: "POST",
3843
- headers: { "content-type": "application/json", authorization: `Bearer ${readToken()}` },
3879
+ headers: { "content-type": "application/json", authorization: `Bearer ${authToken()}` },
3844
3880
  body: JSON.stringify({ notificationId, answer })
3845
3881
  }));
3846
3882
  if (!res.ok) throw new Error(`answer_caller_question failed: ${res.status} ${await res.text()}`);
3847
3883
  return await res.json();
3848
3884
  }
3849
- async function setTaskState(notificationId, state) {
3885
+ var tokenOverride = null;
3886
+ function overrideToken(secret) {
3887
+ tokenOverride = secret;
3888
+ }
3889
+ var authToken = (explicit) => explicit ?? tokenOverride ?? readToken();
3890
+ async function hatch(name, voice = null) {
3891
+ const res = ensureAuthed(await reach(`${BACKEND_URL}/api/hatch`, {
3892
+ method: "POST",
3893
+ headers: { "content-type": "application/json", authorization: `Bearer ${authToken()}` },
3894
+ body: JSON.stringify({ name, voice })
3895
+ }));
3896
+ if (!res.ok) throw new Error(`hatch failed: ${res.status} ${await res.text()}`);
3897
+ return await res.json();
3898
+ }
3899
+ async function setTaskState(notificationId, state, opts = {}) {
3850
3900
  const res = ensureAuthed(await reach(`${BACKEND_URL}/api/notify/${notificationId}/state`, {
3851
3901
  method: "PATCH",
3852
- headers: { "content-type": "application/json", authorization: `Bearer ${readToken()}` },
3902
+ headers: { "content-type": "application/json", authorization: `Bearer ${authToken(opts.token)}` },
3853
3903
  body: JSON.stringify({ state })
3854
3904
  }));
3855
3905
  if (!res.ok) throw new Error(`set_task_state failed: ${res.status} ${await res.text()}`);
@@ -3858,7 +3908,7 @@ async function setTaskState(notificationId, state) {
3858
3908
  async function registerDelivery(mode) {
3859
3909
  const res = ensureAuthed(await reach(`${BACKEND_URL}/api/delivery`, {
3860
3910
  method: "POST",
3861
- headers: { "content-type": "application/json", authorization: `Bearer ${readToken()}` },
3911
+ headers: { "content-type": "application/json", authorization: `Bearer ${authToken()}` },
3862
3912
  body: JSON.stringify({ mode })
3863
3913
  }));
3864
3914
  if (!res.ok) throw new Error(`register_delivery failed: ${res.status} ${await res.text()}`);
@@ -3897,6 +3947,7 @@ export {
3897
3947
  saveToken,
3898
3948
  sleep,
3899
3949
  readToken,
3950
+ listSlots,
3900
3951
  deleteToken,
3901
3952
  revokeToken,
3902
3953
  requestCode,
@@ -3915,6 +3966,8 @@ export {
3915
3966
  searchThreads,
3916
3967
  checkReplies,
3917
3968
  answerCallerQuestion,
3969
+ overrideToken,
3970
+ hatch,
3918
3971
  setTaskState,
3919
3972
  registerDelivery,
3920
3973
  scheduleCallback,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AGENT_NAME
3
- } from "./chunk-VCEFF2VA.js";
3
+ } from "./chunk-TE57PAKM.js";
4
4
 
5
5
  // src/clients.ts
6
6
  import { execFile } from "child_process";
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  HandoffSchema
4
- } from "./chunk-47E77CDG.js";
4
+ } from "./chunk-FRYGTKLM.js";
5
5
  import {
6
6
  PAIGY_TOOL_IDS,
7
7
  autoConfigureClients,
8
8
  claudeInstallHint,
9
9
  enablePaigyTools
10
- } from "./chunk-QXPLQKIM.js";
10
+ } from "./chunk-XQVQ4JRT.js";
11
11
  import {
12
12
  clearSurface,
13
13
  writeSurface
@@ -26,7 +26,10 @@ import {
26
26
  finalizeE2ee,
27
27
  getThread,
28
28
  handoff,
29
+ hatch,
29
30
  lintNotify,
31
+ listSlots,
32
+ overrideToken,
30
33
  pairStep,
31
34
  readKeyFile,
32
35
  readToken,
@@ -40,7 +43,7 @@ import {
40
43
  sleep,
41
44
  startE2ee,
42
45
  submitNotification
43
- } from "./chunk-VCEFF2VA.js";
46
+ } from "./chunk-TE57PAKM.js";
44
47
 
45
48
  // src/index.ts
46
49
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
@@ -112,14 +115,14 @@ var CONTACT_SCHEMA = {
112
115
  enum: ["call", "message"],
113
116
  description: "Only if the user explicitly said how to reach them \u2014 'call me' \u2192 'call', 'just message/text me' \u2192 'message'. Omit otherwise; Paigy picks."
114
117
  },
115
- threadId: {
118
+ parentId: {
116
119
  type: "string",
117
- description: "To continue an earlier conversation, pass the threadId a previous contact or reply returned. Omit to start a new one."
120
+ description: "To continue an earlier conversation, pass the parentId a previous contact or reply returned. Omit to start a new one."
118
121
  }
119
122
  },
120
123
  required: ["ask"]
121
124
  };
122
- var CONTACT_DESCRIPTION = "Reach the user through Paigy \u2014 tell them something, or ask and get their answer. State what you need in `ask`, say what happens to your work while you wait in `waiting`, and Paigy handles the rest (channel, phrasing, answer format). If the user explicitly asks you to CALL them, send waiting:'hard' and say so in the ask. Returns { notificationId, threadId } \u2014 pass notificationId to await_reply for the answer, threadId to a later contact to continue the conversation. THREADING REPLACES: a threaded follow-up SUPERSEDES your earlier pending items on that thread \u2014 right for updates to one ask, WRONG for a checklist (send independent to-dos un-threaded). A threaded re-send with IDENTICAL content escalates the pending ask in place. If a reply comes back as {kind:'clarify', chunks:[...]}, the user wants more detail \u2014 contact again on the SAME threadId with an expanded ask.";
125
+ var CONTACT_DESCRIPTION = "Reach the user through Paigy \u2014 tell them something, or ask and get their answer. State what you need in `ask`, say what happens to your work while you wait in `waiting`, and Paigy handles the rest (channel, phrasing, answer format). If the user explicitly asks you to CALL them, send waiting:'hard' and say so in the ask. Returns { notificationId, parentId } \u2014 pass notificationId to await_reply for the answer, parentId to a later contact to continue the conversation. THREADING REPLACES: a threaded follow-up SUPERSEDES your earlier pending items on that thread \u2014 right for updates to one ask, WRONG for a checklist (send independent to-dos un-threaded). A threaded re-send with IDENTICAL content escalates the pending ask in place. If a reply comes back as {kind:'clarify', chunks:[...]}, the user wants more detail \u2014 contact again on the SAME parentId with an expanded ask. ONE ASK, ONE ROW: never restate a still-pending ask's question inside a NEW contact (e.g. weaving it into a briefing) \u2014 the whole answer settles on the new row and the original can never receive it. Keep waiting on the original (a live call reads every pending ask out separately, each answer routes to its own row), and use `needs` for a genuinely multi-part NEW ask.";
123
126
 
124
127
  // src/pairing.ts
125
128
  async function resolvePairing(deviceCode, capMs, pollMs = 2e3) {
@@ -228,10 +231,12 @@ var AwaitReplySchema = z.object({
228
231
  });
229
232
  var JOIN_CAP_MS = 45e3;
230
233
  var PairSchema = z.object({
231
- device_code: z.string().optional().describe("Omit to start pairing (returns an approval link to show the user). Pass the device_code from that first call to finish, once the user has approved.")
234
+ device_code: z.string().optional().describe("Omit to start pairing (returns an approval link to show the user). Pass the device_code from that first call to finish, once the user has approved."),
235
+ name: z.string().min(1).max(60).optional().describe("Hatch path only: the name you choose for this identity. Pick your own \u2014 something you'd introduce yourself as on a call."),
236
+ voice: z.string().optional().describe("Hatch path only: your voice on calls \u2014 one of rachel, george, jessica, brian, lily.")
232
237
  });
233
238
  var GetThreadSchema = z.object({
234
- threadId: z.string().describe("The thread to read \u2014 from a reply, request, or past notification.")
239
+ parentId: z.string().describe("The thread to read \u2014 from a reply, request, or past notification.")
235
240
  });
236
241
  var SearchThreadsSchema = z.object({
237
242
  q: z.string().describe("What to look for \u2014 plain words or a phrase (e.g. 'the livekit timeout', 'deploy to prod').")
@@ -360,7 +365,7 @@ var server = new Server(
360
365
  { name: "paigy", version: "0.0.0" },
361
366
  {
362
367
  capabilities: { tools: {} },
363
- instructions: "On startup, call check_replies once to pick up any replies or pending work you missed while away. A check_replies request whose threadId you don't recognize, or one carrying a contextThreadId, means the user is resuming or seeding a past conversation \u2014 call get_thread on it FIRST and treat the transcript as prior conversation, not new input. To wait for the answer to something you just asked, call await_reply with that notificationId \u2014 it's scoped to that one notification, so it never returns replies meant for other notifications. Use check_replies again only when re-booting or after waiting a long time on something else. Never end a turn that still needs the user without contact + await_reply. When you need a decision or input, MATCH the answer shape to the question \u2014 don't default everything to free text, and don't reflexively make everything yes/no. Pick the best tool for the job: yes/no \u2192 select:'confirm'; approve/deny an action \u2192 select:'confirm' + confirmStyle:'approve'; pick one of several \u2192 options + select:'one'; pick several / a subset \u2192 options + select:'many'; rank or prioritize \u2192 options + select:'rank'. Reserve select:'text' (free-form reply only) for plain updates and answers that genuinely can't be structured (the user can always add free text on top of any shape). On a { kind: 'clarify' } reply, see contact's own description for how to respond. When you send waiting:'hard' (or the user asked you to call), remember the ask may be spoken aloud \u2014 write it short and conversational, and name things instead of using IDs (e.g. 'the pull request about the agents page', not 'PR #235'). When the user asks you to follow up later \u2014 when you're done, if you're blocked, or at a set time \u2014 record it with schedule_callback so you don't drop it if you go idle. If you're about to start a genuinely long-running or blocking piece of work \u2014 one where the user would otherwise sit and wait \u2014 mention ONCE, in passing, that you can reach them when it's done or if you hit a blocker, instead of them needing to babysit the terminal. Don't offer this for quick tasks, and don't repeat the offer if they've already said yes or no earlier in the conversation. NEVER go quietly idle while something might still be pending for you: whenever you end a turn with any Paigy notification unanswered (or any chance the user replied through the app while you worked), schedule your own ~2-minute wake-up (harness ScheduleWakeup or equivalent) and call check_replies when it fires; if still nothing, re-schedule and keep looping until resolved or the user says stop. For legibility, always use this exact wording \u2014 reason: 'Paigy idle check \u2014 waiting on <thing>', wake-up prompt: 'Paigy idle check: call check_replies and engage with anything unacknowledged; if idle, re-schedule (~2min).' \u2014 so the user can recognize every idle check at a glance. This self-polling in your own live session (full context intact) is the PRIMARY mechanism; the plugin's Stop hooks are only the dead-session safety net."
368
+ instructions: "On startup, call check_replies once to pick up any replies or pending work you missed while away. A check_replies request whose parentId you don't recognize, or one carrying a contextParentId, means the user is resuming or seeding a past conversation \u2014 call get_thread on it FIRST and treat the transcript as prior conversation, not new input. To wait for the answer to something you just asked, call await_reply with that notificationId \u2014 it's scoped to that one notification, so it never returns replies meant for other notifications. Use check_replies again only when re-booting or after waiting a long time on something else. Never end a turn that still needs the user without contact + await_reply. When you need a decision or input, MATCH the answer shape to the question \u2014 don't default everything to free text, and don't reflexively make everything yes/no. Pick the best tool for the job: yes/no \u2192 select:'confirm'; approve/deny an action \u2192 select:'confirm' + confirmStyle:'approve'; pick one of several \u2192 options + select:'one'; pick several / a subset \u2192 options + select:'many'; rank or prioritize \u2192 options + select:'rank'. Reserve select:'text' (free-form reply only) for plain updates and answers that genuinely can't be structured (the user can always add free text on top of any shape). On a { kind: 'clarify' } reply, see contact's own description for how to respond. When you send waiting:'hard' (or the user asked you to call), remember the ask may be spoken aloud \u2014 write it short and conversational, and name things instead of using IDs (e.g. 'the pull request about the agents page', not 'PR #235'). When the user asks you to follow up later \u2014 when you're done, if you're blocked, or at a set time \u2014 record it with schedule_callback so you don't drop it if you go idle. If you're about to start a genuinely long-running or blocking piece of work \u2014 one where the user would otherwise sit and wait \u2014 mention ONCE, in passing, that you can reach them when it's done or if you hit a blocker, instead of them needing to babysit the terminal. Don't offer this for quick tasks, and don't repeat the offer if they've already said yes or no earlier in the conversation. NEVER go quietly idle while something might still be pending for you: whenever you end a turn with any Paigy notification unanswered (or any chance the user replied through the app while you worked), schedule your own ~2-minute wake-up (harness ScheduleWakeup or equivalent) and call check_replies when it fires; if still nothing, re-schedule and keep looping until resolved or the user says stop. For legibility, always use this exact wording \u2014 reason: 'Paigy idle check \u2014 waiting on <thing>', wake-up prompt: 'Paigy idle check: call check_replies and engage with anything unacknowledged; if idle, re-schedule (~2min).' \u2014 so the user can recognize every idle check at a glance. This self-polling in your own live session (full context intact) is the PRIMARY mechanism; the plugin's Stop hooks are only the dead-session safety net."
364
369
  }
365
370
  );
366
371
  server.setRequestHandler(ListToolsRequestSchema, async () => {
@@ -375,7 +380,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
375
380
  },
376
381
  {
377
382
  name: "pair",
378
- description: "Pair this agent with the user's Paigy account (one-time) \u2014 required before contact/await_reply work. It does NOT open a browser; the user enters the code in the Paigy app (or scans `qr`). Step 1: call with NO args \u2014 returns { user_code, device_code, qr, user_message } AND starts polling for approval in the background. REQUIRED: You MUST immediately print the `user_message` (the bare code) as a text message to the user, AND in that same turn call step 2 (pair with the device_code). This ensures the user sees the code in chat while the tool blocks/polls in the background for approval. Step 2: call with that device_code to collect the result. Because approval is already being polled in the background, this returns the moment the user approves; on { status:'pending' } just call again to keep waiting; on { status:'awaiting_confirmation' } (E2EE) show the bare `user_message` verify code and call again to finish. The leading text block of every result states the code plainly, so it shows even if you emit no prose. On { status:'paired' } ALWAYS follow the `enable_prompt` \u2014 ask the user to allowlist Paigy's tools so notify/await don't prompt each time.",
383
+ description: "Pair this agent with the user's Paigy account (one-time) \u2014 required before contact/await_reply work. FAST PATH: if this machine already holds a device credential (the user ran the Paigy desktop harness or app), calling pair hatches a fresh identity INSTANTLY \u2014 no code, no approval. Pass { name, voice } to choose who you are (pick your own; voices: rachel, george, jessica, brian, lily). Only when no device credential exists does the code ceremony below run. It does NOT open a browser; the user enters the code in the Paigy app (or scans `qr`). Step 1: call with NO args \u2014 returns { user_code, device_code, qr, user_message } AND starts polling for approval in the background. REQUIRED: You MUST immediately print the `user_message` (the bare code) as a text message to the user, AND in that same turn call step 2 (pair with the device_code). This ensures the user sees the code in chat while the tool blocks/polls in the background for approval. Step 2: call with that device_code to collect the result. Because approval is already being polled in the background, this returns the moment the user approves; on { status:'pending' } just call again to keep waiting; on { status:'awaiting_confirmation' } (E2EE) show the bare `user_message` verify code and call again to finish. The leading text block of every result states the code plainly, so it shows even if you emit no prose. On { status:'paired' } ALWAYS follow the `enable_prompt` \u2014 ask the user to allowlist Paigy's tools so notify/await don't prompt each time.",
379
384
  inputSchema: json(PairSchema)
380
385
  },
381
386
  {
@@ -390,27 +395,27 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
390
395
  },
391
396
  {
392
397
  name: "await_reply",
393
- description: "Wait for the user's reply to a specific notification you sent (pass the notificationId from contact). This is how you wait for your answer in-context. Polls ~45s per call \u2014 deliberately under the 60s cap most hosts put on a single tool call, so it ALWAYS returns you something (raise it with maxWaitSeconds only if you know your host allows longer). Returns { type:'reply', answer } when they respond, { type:'remind', remindInSeconds } on snooze (ScheduleWakeup then await_reply again), or { type:'idle' } (this window ended, no answer yet). While your contact is being handled on a LIVE call, you may receive { type:'partial', inFlight:true, turn } results: what the user said to each turn, as they say it. Use partials to PREPARE \u2014 fetch the data, draft the thing, warm the build \u2014 never to act irreversibly: the user can still revise any of them until the final reply arrives. Partial = intelligence, settled = authorization. If a partial's acts carry a question aimed at you and you know the answer, call contact on the SAME threadId right away \u2014 the caller hears your answer on the same call instead of waiting for a callback. Keep calling await_reply until you get the final reply \u2014 THAT one is the decision. On idle, if this is genuinely still blocking you and you have nothing else useful to do meanwhile, just call await_reply again immediately \u2014 keep looping. This is how you actually deliver on the point of calling: the user steps away for a while and comes back to find you'd already continued the moment they answered, not idle waiting to be checked on. Don't give up after one window. Only stop looping to do other work (and check back later), or after an unreasonably long stretch (tens of minutes to hours) worth telling the user about instead. Scoped to that one notification \u2014 it NEVER returns replies meant for other notifications, so concurrent contact calls don't cross. A CALL answer can come back as {kind:'turns', turns:[{prompt,reply}]} \u2014 the ordered log of that call. Read turns[0].reply as the user's main instruction. Usually that's the only turn; if there are more (e.g. an end-of-call 'call me back when it's done / I have a blocking question'), read each one in order as a further follow-up instruction, not a single combined one. If they asked for a callback, re-engage in the SAME thread (contact with the reply's threadId) when the task is done or you hit a blocker \u2014 waiting:'hard' for a blocker, waiting:'none' for done. Paigy has no scheduler; the callback is yours to send (use ScheduleWakeup/cron for timing). A call-mapped answer may carry `intents` \u2014 next steps the user attached, each { kind, detail } with detail quoting their words. ACT on them, don't just read them: 'defer' (\"call me after lunch\") \u2192 register it NOW with schedule_callback \u2014 when the intent carries `dueInSeconds` (Paigy pre-parsed the spoken time against the user's clock) pass it straight through; otherwise derive it from the detail yourself \u2014 then follow up on the same thread; 'delegate' (\"you pick\") \u2192 make the call yourself and tell them what you chose; 'channel' (\"text me next time\") \u2192 honor it on your next contact (channel:'message'); 'question' (an open question aimed back at you that the call couldn't answer) \u2192 you OWE them the answer \u2014 work it out and follow up on the same thread without being asked, the call deliberately skipped \"should I call you back?\" because the follow-up is implied. `transcript` is the user's raw words behind a shaped answer \u2014 read it for hedges and conditions (\"yes, IF tests pass\") before acting. If your ask declared `points`, the reply carries `covered` \u2014 the points actually addressed. Compare against what you declared: a missing point is STILL unanswered \u2014 re-ask it (contact on the same threadId) or proceed knowingly partial; never treat a partial answer as complete.",
398
+ description: "Wait for the user's reply to a specific notification you sent (pass the notificationId from contact). This is how you wait for your answer in-context. Polls ~45s per call \u2014 deliberately under the 60s cap most hosts put on a single tool call, so it ALWAYS returns you something (raise it with maxWaitSeconds only if you know your host allows longer). Returns { type:'reply', answer } when they respond, { type:'remind', remindInSeconds } on snooze (ScheduleWakeup then await_reply again), or { type:'idle' } (this window ended, no answer yet). While your contact is being handled on a LIVE call, you may receive { type:'partial', inFlight:true, turn } results: what the user said to each turn, as they say it. Use partials to PREPARE \u2014 fetch the data, draft the thing, warm the build \u2014 never to act irreversibly: the user can still revise any of them until the final reply arrives. Partial = intelligence, settled = authorization. If a partial's acts carry a question aimed at you and you know the answer, call contact on the SAME parentId right away \u2014 the caller hears your answer on the same call instead of waiting for a callback. Keep calling await_reply until you get the final reply \u2014 THAT one is the decision. On idle, if this is genuinely still blocking you and you have nothing else useful to do meanwhile, just call await_reply again immediately \u2014 keep looping. This is how you actually deliver on the point of calling: the user steps away for a while and comes back to find you'd already continued the moment they answered, not idle waiting to be checked on. Don't give up after one window. Only stop looping to do other work (and check back later), or after an unreasonably long stretch (tens of minutes to hours) worth telling the user about instead. Scoped to that one notification \u2014 it NEVER returns replies meant for other notifications, so concurrent contact calls don't cross. A CALL answer can come back as {kind:'turns', turns:[{prompt,reply}]} \u2014 the ordered log of that call. Read turns[0].reply as the user's main instruction. Usually that's the only turn; if there are more (e.g. an end-of-call 'call me back when it's done / I have a blocking question'), read each one in order as a further follow-up instruction, not a single combined one. If they asked for a callback, re-engage in the SAME thread (contact with the reply's parentId) when the task is done or you hit a blocker \u2014 waiting:'hard' for a blocker, waiting:'none' for done. Paigy has no scheduler; the callback is yours to send (use ScheduleWakeup/cron for timing). A call-mapped answer may carry `intents` \u2014 next steps the user attached, each { kind, detail } with detail quoting their words. ACT on them, don't just read them: 'defer' (\"call me after lunch\") \u2192 register it NOW with schedule_callback \u2014 when the intent carries `dueInSeconds` (Paigy pre-parsed the spoken time against the user's clock) pass it straight through; otherwise derive it from the detail yourself \u2014 then follow up on the same thread; 'delegate' (\"you pick\") \u2192 make the call yourself and tell them what you chose; 'channel' (\"text me next time\") \u2192 honor it on your next contact (channel:'message'); 'question' (an open question aimed back at you that the call couldn't answer) \u2192 you OWE them the answer \u2014 work it out and follow up on the same thread without being asked, the call deliberately skipped \"should I call you back?\" because the follow-up is implied. `transcript` is the user's raw words behind a shaped answer \u2014 read it for hedges and conditions (\"yes, IF tests pass\") before acting. If your ask declared `points`, the reply carries `covered` \u2014 the points actually addressed. Compare against what you declared: a missing point is STILL unanswered \u2014 re-ask it (contact on the same parentId) or proceed knowingly partial; never treat a partial answer as complete.",
394
399
  inputSchema: json(AwaitReplySchema)
395
400
  },
396
401
  {
397
402
  name: "check_replies",
398
- description: "The catch-up sweep for everything outstanding \u2014 a PURE read, takes no arguments, safe to call as often as you like: nothing here is consumed by reading it. Returns `replies` (answers to notifications you sent), your still-pending notifications, and `requests` \u2014 requests the user started toward you (each { notificationId, threadId, text }). Each keeps reappearing on every call until you actually engage with it: call set_task_state on its notificationId, which is what claims/acknowledges it \u2014 a human-initiated reply or request must never be silently dropped just because you read the list without acting. Also returns `threads` \u2014 the SAME replies + requests grouped by conversation, oldest thread first, each with a `busy` flag and its `items` in arrival order. WORK ONE THREAD AT A TIME: take the oldest thread whose `busy` is false, handle ALL of its items together in a single turn (one set_task_state), then go to the next \u2014 don't interleave threads item-by-item. A `busy` thread already has a turn in progress; leave it and let its new items ride the next turn. Use check_replies when booting up / starting a session, or when you've been waiting a long time on something else. To wait on an answer to a contact call you just made, use await_reply instead. Also returns owedCallbacks: callbacks now due that you promised \u2014 fulfill each with contact on its threadId. Also returns `stalled`: work (either direction) you 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. Replies may carry `intents`/`transcript`/`covered` (call-mapped answers) \u2014 handle intents exactly as await_reply's description says (defer \u2192 schedule_callback now; delegate \u2192 decide and say so; channel \u2192 honor next contact), and treat a `covered` list missing one of your declared points as that part still unanswered.",
403
+ description: "The catch-up sweep for everything outstanding \u2014 a PURE read, takes no arguments, safe to call as often as you like: nothing here is consumed by reading it. Returns `replies` (answers to notifications you sent), your still-pending notifications, and `requests` \u2014 requests the user started toward you (each { notificationId, parentId, text }). Each keeps reappearing on every call until you actually engage with it: call set_task_state on its notificationId, which is what claims/acknowledges it \u2014 a human-initiated reply or request must never be silently dropped just because you read the list without acting. Also returns `threads` \u2014 the SAME replies + requests grouped by conversation, oldest thread first, each with a `busy` flag and its `items` in arrival order. WORK ONE THREAD AT A TIME: take the oldest thread whose `busy` is false, handle ALL of its items together in a single turn (one set_task_state), then go to the next \u2014 don't interleave threads item-by-item. A `busy` thread already has a turn in progress; leave it and let its new items ride the next turn. Use check_replies when booting up / starting a session, or when you've been waiting a long time on something else. To wait on an answer to a contact call you just made, use await_reply instead. Also returns owedCallbacks: callbacks now due that you promised \u2014 fulfill each with contact on its parentId. Also returns `stalled`: work (either direction) you 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. Replies may carry `intents`/`transcript`/`covered` (call-mapped answers) \u2014 handle intents exactly as await_reply's description says (defer \u2192 schedule_callback now; delegate \u2192 decide and say so; channel \u2192 honor next contact), and treat a `covered` list missing one of your declared points as that part still unanswered.",
399
404
  inputSchema: json(z.object({}))
400
405
  },
401
406
  {
402
407
  name: "get_thread",
403
- description: "The chronological transcript of one Paigy conversation thread \u2014 every past ask, answer, and user request on it. Call this to REHYDRATE when you're resuming or being seeded: a check_replies request whose threadId you don't recognize means the user is continuing an old conversation with you, and one carrying a contextThreadId means they want a past conversation (possibly with a DIFFERENT agent) as your starting context \u2014 in both cases call get_thread FIRST and read the turns as prior conversation you were part of, not as new input. Turns: { role:'agent', title, description[], answer }, { role:'user', text }, and context turns { role:'handoff'|'recap', title, description[] } \u2014 a handoff is a predecessor's brief for you; a recap SUMMARIZES everything before it (the transcript starts at the latest recap, so treat it as the base and the turns after it as what happened since). Oldest first, capped at the most recent 30.",
408
+ description: "The chronological transcript of one Paigy conversation thread \u2014 every past ask, answer, and user request on it. Call this to REHYDRATE when you're resuming or being seeded: a check_replies request whose parentId you don't recognize means the user is continuing an old conversation with you, and one carrying a contextParentId means they want a past conversation (possibly with a DIFFERENT agent) as your starting context \u2014 in both cases call get_thread FIRST and read the turns as prior conversation you were part of, not as new input. Turns: { role:'agent', title, description[], answer }, { role:'user', text }, and context turns { role:'handoff'|'recap', title, description[] } \u2014 a handoff is a predecessor's brief for you; a recap SUMMARIZES everything before it (the transcript starts at the latest recap, so treat it as the base and the turns after it as what happened since). Oldest first, capped at the most recent 30.",
404
409
  inputSchema: json(GetThreadSchema)
405
410
  },
406
411
  {
407
412
  name: "search_threads",
408
- description: `Search your PAST conversations before asking \u2014 "have we discussed this before?". Full-text over your own threads (the asks you sent + the user's answers); returns ranked threads with highlighted snippets, NOT rows: { hits: [{ threadId, at, agentLabel, matches: [{ notificationId, role, snippet }] }] }. The loop this exists for: search first \u2192 get_thread the best hit to rehydrate it \u2192 THEN continue or contact, so you answer with receipts ("last week you said ship it") instead of re-asking. Read-only, safe to call anytime; scoped to your own account's threads.`,
413
+ description: `Search your PAST conversations before asking \u2014 "have we discussed this before?". Full-text over your own threads (the asks you sent + the user's answers); returns ranked threads with highlighted snippets, NOT rows: { hits: [{ parentId, at, agentLabel, matches: [{ notificationId, role, snippet }] }] }. The loop this exists for: search first \u2192 get_thread the best hit to rehydrate it \u2192 THEN continue or contact, so you answer with receipts ("last week you said ship it") instead of re-asking. Read-only, safe to call anytime; scoped to your own account's threads.`,
409
414
  inputSchema: json(SearchThreadsSchema)
410
415
  },
411
416
  {
412
417
  name: "set_task_state",
413
- description: "Report progress on the follow-up work behind ANY notification you own \u2014 a user-initiated request (from check_replies), or your OWN contact question once await_reply/check_replies returns its answer and you start acting on it. Pass that notificationId. THIS is what actually claims/acknowledges a reply or request \u2014 check_replies is a pure read that never consumes anything on its own, so call this as soon as you start engaging with something it returned; otherwise that same item just keeps reappearing forever. States: in_progress (you started working), completed (done), or needs_input (you need more from the user \u2014 usually paired with a contact carrying parentId = the same notificationId you're reporting on). Calling this reliably is also 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.",
418
+ description: "Report progress on the follow-up work behind ANY notification you own \u2014 a user-initiated request (from check_replies), or your OWN contact question once await_reply/check_replies returns its answer and you start acting on it. Pass that notificationId. THIS is what actually claims/acknowledges a reply or request \u2014 check_replies is a pure read that never consumes anything on its own, so call this as soon as you start engaging with something it returned; otherwise that same item just keeps reappearing forever. States: in_progress (you started working), completed (done), or needs_input (you need more from the user \u2014 usually paired with a contact carrying clarifies = the same notificationId you're reporting on). Calling this reliably is also 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.",
414
419
  inputSchema: json(SetTaskStateToolSchema)
415
420
  },
416
421
  {
@@ -420,12 +425,12 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
420
425
  },
421
426
  {
422
427
  name: "schedule_callback",
423
- description: "Promise the user a follow-up you'll keep even if you go idle. Use it when they ask you to report back: trigger 'on_done' (when you finish \u2014 fires when you call set_task_state completed), 'on_blocked' (if you hit a blocker \u2014 fires on set_task_state needs_input), or 'scheduled' with dueInSeconds (e.g. 'remind me in 10 min'). Pass the threadId of the conversation and a short note. Fulfill it by calling contact on that threadId; check_replies re-lists due callbacks until you do.",
428
+ description: "Promise the user a follow-up you'll keep even if you go idle. Use it when they ask you to report back: trigger 'on_done' (when you finish \u2014 fires when you call set_task_state completed), 'on_blocked' (if you hit a blocker \u2014 fires on set_task_state needs_input), or 'scheduled' with dueInSeconds (e.g. 'remind me in 10 min'). Pass the parentId of the conversation and a short note. Fulfill it by calling contact on that parentId; check_replies re-lists due callbacks until you do.",
424
429
  inputSchema: json(ScheduleCallbackSchema)
425
430
  },
426
431
  {
427
432
  name: "handoff",
428
- description: "Deposit your working context for a SUCCESSOR agent \u2014 what you did, what's left, links, gotchas \u2014 as one note on a thread ({ title, notes[] }). This does NOT ring the user or enter their inbox: it's context, not a question. The successor reads it back with get_thread. Pass `target` (a sibling connection's token id or agent name, SAME account only) to hand off DIRECTLY to that agent \u2014 the note is dispatched to it as a request it picks up. Omit `target` to leave the thread for the user to hand off to an agent themselves in the app. Pass `threadId` to land the handoff on an existing conversation; omit it to mint a fresh thread. Returns { threadId }. Pass recap:true when the note SUMMARIZES the thread so far (for a successor OR for your own later session): a recap resets the rehydration window \u2014 get_thread returns the latest recap + only the turns after it. Write one whenever a thread has grown long and you're pausing, handing off, or nearing your context limit.",
433
+ description: "Deposit your working context for a SUCCESSOR agent \u2014 what you did, what's left, links, gotchas \u2014 as one note on a thread ({ title, notes[] }). This does NOT ring the user or enter their inbox: it's context, not a question. The successor reads it back with get_thread. Pass `target` (a sibling connection's token id or agent name, SAME account only) to hand off DIRECTLY to that agent \u2014 the note is dispatched to it as a request it picks up. Omit `target` to leave the thread for the user to hand off to an agent themselves in the app. Pass `parentId` to land the handoff on an existing conversation; omit it to mint a fresh thread. Returns { parentId }. Pass recap:true when the note SUMMARIZES the thread so far (for a successor OR for your own later session): a recap resets the rehydration window \u2014 get_thread returns the latest recap + only the turns after it. Write one whenever a thread has grown long and you're pausing, handing off, or nearing your context limit.",
429
434
  inputSchema: json(HandoffSchema)
430
435
  }
431
436
  ];
@@ -461,7 +466,24 @@ function suggestedAgentName() {
461
466
  async function handleTool(request, signal) {
462
467
  switch (request.params.name) {
463
468
  case "pair": {
464
- const { device_code } = PairSchema.parse(request.params.arguments ?? {});
469
+ const { device_code, name, voice } = PairSchema.parse(request.params.arguments ?? {});
470
+ if (!device_code && listSlots().includes("Desktop")) {
471
+ const device = readToken("Desktop");
472
+ overrideToken(device);
473
+ try {
474
+ const minted = await hatch(name ?? suggestedAgentName() ?? "Agent", voice ?? null);
475
+ const dt = { ok: true, access_token: minted.token, name: minted.name, device: null };
476
+ saveToken(dt);
477
+ return pairedResult(
478
+ dt,
479
+ void 0,
480
+ "Hatched instantly under this device's credential \u2014 no code needed. " + (name ? "" : "You were given a default name \u2014 choose your own name and voice and update them via the identity tools or by re-calling pair with { name, voice }.")
481
+ );
482
+ } catch {
483
+ } finally {
484
+ overrideToken(null);
485
+ }
486
+ }
465
487
  if (!device_code) {
466
488
  return pairStartResult(await startPairing(suggestedAgentName()));
467
489
  }
@@ -536,8 +558,8 @@ async function handleTool(request, signal) {
536
558
  return { content: [{ type: "text", text: JSON.stringify(result) }] };
537
559
  }
538
560
  case "get_thread": {
539
- const { threadId } = GetThreadSchema.parse(request.params.arguments);
540
- return { content: [{ type: "text", text: JSON.stringify(await getThread(threadId)) }] };
561
+ const { parentId } = GetThreadSchema.parse(request.params.arguments);
562
+ return { content: [{ type: "text", text: JSON.stringify(await getThread(parentId)) }] };
541
563
  }
542
564
  case "search_threads": {
543
565
  const { q } = SearchThreadsSchema.parse(request.params.arguments);
package/dist/listen.js CHANGED
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  WAKE_EVENT,
4
4
  wakeChannel
5
- } from "./chunk-47E77CDG.js";
5
+ } from "./chunk-FRYGTKLM.js";
6
6
  import {
7
7
  checkReplies,
8
8
  registerDelivery
9
- } from "./chunk-VCEFF2VA.js";
9
+ } from "./chunk-TE57PAKM.js";
10
10
 
11
11
  // src/listen.ts
12
12
  import { createClient } from "@supabase/supabase-js";
@@ -143,21 +143,24 @@ function launchEnv(work, reason) {
143
143
  const reply = lead ? work.replies.find((r) => r.notificationId === lead) : work.replies[0];
144
144
  const request = lead ? work.requests.find((r) => r.notificationId === lead) : work.requests[0];
145
145
  if (reply) {
146
- put("PAIGY_THREAD_ID", reply.threadId);
146
+ put("PAIGY_THREAD_ID", reply.parentId);
147
+ put("PAIGY_PARENT_ID", reply.parentId);
147
148
  put("PAIGY_NOTIFICATION_ID", reply.notificationId);
148
149
  put("PAIGY_TEXT", answerText(reply.answer));
149
150
  return env;
150
151
  }
151
152
  if (request) {
152
- put("PAIGY_THREAD_ID", request.threadId);
153
+ put("PAIGY_THREAD_ID", request.parentId);
154
+ put("PAIGY_PARENT_ID", request.parentId);
153
155
  put("PAIGY_NOTIFICATION_ID", request.notificationId);
154
- put("PAIGY_CONTEXT_THREAD_ID", request.contextThreadId);
156
+ put("PAIGY_CONTEXT_THREAD_ID", request.contextParentId);
155
157
  put("PAIGY_TEXT", request.text);
156
158
  return env;
157
159
  }
158
160
  const callback = work.owedCallbacks[0];
159
161
  if (callback) {
160
- put("PAIGY_THREAD_ID", callback.threadId);
162
+ put("PAIGY_THREAD_ID", callback.parentId);
163
+ put("PAIGY_PARENT_ID", callback.parentId);
161
164
  put("PAIGY_TEXT", callback.note);
162
165
  }
163
166
  return env;
package/dist/onboard.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  autoConfigureClients,
4
4
  claudeInstallHint,
5
5
  openBrowser
6
- } from "./chunk-QXPLQKIM.js";
6
+ } from "./chunk-XQVQ4JRT.js";
7
7
  import {
8
8
  AGENT_NAME,
9
9
  TOKEN_PATH,
@@ -11,7 +11,7 @@ import {
11
11
  requestCode,
12
12
  saveToken,
13
13
  sleep
14
- } from "./chunk-VCEFF2VA.js";
14
+ } from "./chunk-TE57PAKM.js";
15
15
 
16
16
  // src/onboard.ts
17
17
  async function main() {
@@ -6,7 +6,7 @@ import {
6
6
  BACKEND_URL,
7
7
  reach,
8
8
  readToken
9
- } from "./chunk-VCEFF2VA.js";
9
+ } from "./chunk-TE57PAKM.js";
10
10
 
11
11
  // src/statusline.ts
12
12
  import { mkdirSync, readFileSync, realpathSync, writeFileSync } from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paigy/mcp",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
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",
@@ -37,8 +37,8 @@
37
37
  "typescript": "^5.7.2",
38
38
  "vitest": "^2.1.8",
39
39
  "@paigy/crypto": "0.0.0",
40
- "@paigy/sdk": "0.1.0",
41
- "@paigy/schema": "0.0.0"
40
+ "@paigy/schema": "0.0.0",
41
+ "@paigy/sdk": "0.1.0"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsup",