@paigy/mcp 0.40.32 → 0.40.34

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.
@@ -25,7 +25,7 @@ import {
25
25
  deleteToken,
26
26
  dismissTriage,
27
27
  finishSessionEnd,
28
- getGoal,
28
+ getGoals,
29
29
  getTriage,
30
30
  hatch,
31
31
  heartbeat,
@@ -66,7 +66,7 @@ import {
66
66
  updateSlot,
67
67
  whoAmI,
68
68
  withCodexEnv
69
- } from "./chunk-QJCRISSA.js";
69
+ } from "./chunk-5YTQF6KQ.js";
70
70
  export {
71
71
  AGENT_TOOLS,
72
72
  AGENT_TOOL_NAMES,
@@ -94,7 +94,7 @@ export {
94
94
  deleteToken,
95
95
  dismissTriage,
96
96
  finishSessionEnd,
97
- getGoal,
97
+ getGoals,
98
98
  getTriage,
99
99
  hatch,
100
100
  heartbeat,
package/dist/enable.js CHANGED
@@ -3,9 +3,9 @@ import {
3
3
  PAIGY_TOOL_IDS,
4
4
  enablePaigyTools,
5
5
  installSessionListening
6
- } from "./chunk-5F3ND6WV.js";
7
- import "./chunk-EU6NEQ2W.js";
8
- import "./chunk-QJCRISSA.js";
6
+ } from "./chunk-VVQ4OQOB.js";
7
+ import "./chunk-YIMNBJEF.js";
8
+ import "./chunk-5YTQF6KQ.js";
9
9
 
10
10
  // src/enable.ts
11
11
  function main() {
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  resolvePairing,
10
10
  startPairing,
11
11
  suggestedAgentName
12
- } from "./chunk-4YUPH4JS.js";
12
+ } from "./chunk-7ZM5RGW4.js";
13
13
  import {
14
14
  ConfigureSchema,
15
15
  ENABLE_COMMAND,
@@ -17,14 +17,14 @@ import {
17
17
  SERVER_INSTRUCTIONS,
18
18
  TOOLS,
19
19
  paigyToolsAllowlisted
20
- } from "./chunk-5F3ND6WV.js";
20
+ } from "./chunk-VVQ4OQOB.js";
21
21
  import {
22
22
  decideListen,
23
23
  existingListener,
24
24
  harnessDriven,
25
25
  listenerKey,
26
26
  wakeStatusPath
27
- } from "./chunk-EU6NEQ2W.js";
27
+ } from "./chunk-YIMNBJEF.js";
28
28
  import {
29
29
  clearSurface,
30
30
  writeSurface
@@ -45,7 +45,7 @@ import {
45
45
  setClient,
46
46
  slotName,
47
47
  whoAmI
48
- } from "./chunk-QJCRISSA.js";
48
+ } from "./chunk-5YTQF6KQ.js";
49
49
 
50
50
  // src/index.ts
51
51
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
package/dist/listen.js CHANGED
@@ -11,16 +11,16 @@ import {
11
11
  removeListenMark,
12
12
  wakeStatusPath,
13
13
  writeListenMark
14
- } from "./chunk-EU6NEQ2W.js";
14
+ } from "./chunk-YIMNBJEF.js";
15
15
  import {
16
16
  agentName,
17
- getGoal,
17
+ getGoals,
18
18
  heartbeat,
19
19
  readDelivery,
20
20
  receive,
21
21
  slotName,
22
22
  subscribeWake
23
- } from "./chunk-QJCRISSA.js";
23
+ } from "./chunk-5YTQF6KQ.js";
24
24
 
25
25
  // src/listen.ts
26
26
  import { createHash } from "crypto";
@@ -145,9 +145,9 @@ function brief(waiting, reason, as, goalId) {
145
145
  const stalled = waiting.stalled?.length ? ` \xB7 ${waiting.stalled.length} of your Goals stalled 3+ days: update, finish or cancel each` : "";
146
146
  const review = waiting.review ?? [];
147
147
  const named = (goalId ? review.find((g) => g.goalId === goalId) : void 0) ?? review[0];
148
- const fresh = review.length ? ` \xB7 new on ${review.length === 1 ? "your Goal" : `${review.length} of your Goals`}, first ${named.goalId} ("${named.title}"): get_goal to read it` : "";
148
+ const fresh = review.length ? ` \xB7 new on ${review.length === 1 ? "your Goal" : `${review.length} of your Goals`}, first ${named.goalId} ("${named.title}"): get_goals to read it` : "";
149
149
  const assigned = waiting.assigned ?? [];
150
- const mine = assigned.length ? ` \xB7 assigned to you: ${assigned.length === 1 ? "1 Goal" : `${assigned.length} Goals`}, first ${assigned[0].goalId} ("${assigned[0].title}"): get_goal({goalId}) to read it; your first write starts it` : "";
150
+ const mine = assigned.length ? ` \xB7 assigned to you: ${assigned.length === 1 ? "1 Goal" : `${assigned.length} Goals`}, first ${assigned[0].goalId} ("${assigned[0].title}"): get_goals({goalIds:[goalId]}) to read it; your first write starts it` : "";
151
151
  if (!lead) return `Paigy \xB7 ${reason === "boot" ? `listening as ${as}` : reason}${mine}${fresh || (mine ? "" : " \xB7 nothing waiting")}${stalled}`;
152
152
  const said = saidIn(lead) || ("about" in lead ? lead.about : "");
153
153
  const shown = said.length > 160 ? `${said.slice(0, 160)}\u2026` : said;
@@ -175,7 +175,7 @@ async function sweep(reason, goalId, bridge = new WakeBridge(process.env, wakeSt
175
175
  const full = lead ? await readDelivery(lead.deliveryId).catch(() => null) : null;
176
176
  const deliveries = rows.map((d) => d === lead && full ? full : d);
177
177
  const leadGoalId = lead?.goalIds[0];
178
- const goal = leadGoalId ? await getGoal(leadGoalId).then((g) => ({ goalId: leadGoalId, progress: g.progress })).catch(() => null) : null;
178
+ const goal = leadGoalId ? await getGoals([leadGoalId]).then(([g]) => ({ goalId: leadGoalId, progress: g.progress })).catch(() => null) : null;
179
179
  const waiting = { deliveries, goal, ...stalled?.length ? { stalled } : {}, ...review?.length ? { review } : {}, ...assigned?.length ? { assigned } : {} };
180
180
  if (BRIEF) line(brief(waiting, reason, listeningAs(), goalId));
181
181
  else emit({ type: "sweep", reason, ...goalId ? { about: goalId } : {}, ...waiting });
@@ -183,7 +183,7 @@ async function sweep(reason, goalId, bridge = new WakeBridge(process.env, wakeSt
183
183
  let unreadable = false;
184
184
  const reviews = await Promise.all((review ?? []).map(async ({ goalId: id }) => {
185
185
  try {
186
- const g = await getGoal(id);
186
+ const [g] = await getGoals([id]);
187
187
  return [
188
188
  `review:${id}`,
189
189
  ...(g.entries ?? []).filter((e) => participant ? e.authorParticipant !== participant : e.authorParticipant.startsWith("human:")).map((e) => `entry:${e.entryId}:${e.createdAt}`),
package/dist/onboard.js CHANGED
@@ -3,13 +3,13 @@ import {
3
3
  resolvePairing,
4
4
  startPairing,
5
5
  suggestedAgentName
6
- } from "./chunk-4YUPH4JS.js";
6
+ } from "./chunk-7ZM5RGW4.js";
7
7
  import {
8
8
  autoConfigureClients,
9
9
  claudeInstallHint,
10
10
  openBrowser
11
- } from "./chunk-5F3ND6WV.js";
12
- import "./chunk-EU6NEQ2W.js";
11
+ } from "./chunk-VVQ4OQOB.js";
12
+ import "./chunk-YIMNBJEF.js";
13
13
  import {
14
14
  TOKEN_PATH,
15
15
  agentName,
@@ -20,7 +20,7 @@ import {
20
20
  saveToken,
21
21
  setIdentity,
22
22
  whoAmI
23
- } from "./chunk-QJCRISSA.js";
23
+ } from "./chunk-5YTQF6KQ.js";
24
24
 
25
25
  // src/onboard.ts
26
26
  function reportRegistered() {
package/dist/slot.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  agentName
4
- } from "./chunk-QJCRISSA.js";
4
+ } from "./chunk-5YTQF6KQ.js";
5
5
 
6
6
  // src/slot.ts
7
7
  process.stdout.write(agentName());
package/dist/stalled.js CHANGED
@@ -29,7 +29,7 @@ async function main() {
29
29
  const dir = join(homedir(), ".paigy", "stalled-reminded");
30
30
  const mark = join(dir, `${session || "session"}-${day}`);
31
31
  if (existsSync(mark)) return;
32
- const { receive } = await import("./dist-Z4KVBUBO.js");
32
+ const { receive } = await import("./dist-HRRH3KO4.js");
33
33
  const reply = stopReply((await receive()).stalled ?? [], input.hook_event_name ?? "Stop");
34
34
  if (!reply) return;
35
35
  mkdirSync(dir, { recursive: true });
@@ -7,7 +7,7 @@ import {
7
7
  readToken,
8
8
  sessionSlot,
9
9
  slotName
10
- } from "./chunk-QJCRISSA.js";
10
+ } from "./chunk-5YTQF6KQ.js";
11
11
 
12
12
  // src/statusline.ts
13
13
  import { realpathSync } from "fs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paigy/mcp",
3
- "version": "0.40.32",
3
+ "version": "0.40.34",
4
4
  "description": "Paigy MCP server — the AI agent harness that calls you. Lets an agent notify a user and await their reply.",
5
5
  "license": "MIT",
6
6
  "type": "module",