@paigy/mcp 0.40.42 → 0.40.44

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.
@@ -65,7 +65,7 @@ import {
65
65
  viaLine,
66
66
  whoAmI,
67
67
  withCodexEnv
68
- } from "./chunk-W3FK4FD6.js";
68
+ } from "./chunk-5OKHG3FO.js";
69
69
  export {
70
70
  AGENT_TOOLS,
71
71
  AGENT_TOOL_NAMES,
package/dist/enable.js CHANGED
@@ -2,12 +2,13 @@
2
2
  import {
3
3
  PAIGY_TOOL_IDS,
4
4
  enablePaigyTools,
5
+ installPaigySkill,
5
6
  installSessionListening
6
- } from "./chunk-I3WDI2JV.js";
7
+ } from "./chunk-CVQOJB2S.js";
7
8
  import {
8
9
  LISTEN_COMMAND
9
- } from "./chunk-NNB3HQTF.js";
10
- import "./chunk-W3FK4FD6.js";
10
+ } from "./chunk-LRROOCLY.js";
11
+ import "./chunk-5OKHG3FO.js";
11
12
 
12
13
  // src/enable.ts
13
14
  function main() {
@@ -42,23 +43,37 @@ function main() {
42
43
  }
43
44
  }
44
45
  const result = enablePaigyTools(scope);
45
- if (!result.ok) {
46
+ const noClaude = !result.ok && result.reason.startsWith("No ~/.claude");
47
+ if (!result.ok && !noClaude) {
46
48
  console.error(`\u2717 ${result.reason}`);
47
49
  process.exit(1);
48
50
  }
49
- if (result.added.length) {
51
+ if (result.ok && result.added.length) {
50
52
  console.log(`\u2713 allowlisted ${result.added.length} Paigy tool${result.added.length === 1 ? "" : "s"} in ${result.path}`);
51
53
  for (const id of result.added) console.log(` ${id}`);
52
- } else {
54
+ } else if (result.ok) {
53
55
  console.log(`\u2713 already allowlisted in ${result.path} \u2014 nothing to do`);
56
+ } else {
57
+ console.log(` ${result.reason}`);
54
58
  }
55
- if (result.already.length && result.added.length) {
59
+ if (result.ok && result.already.length && result.added.length) {
56
60
  console.log(` (${result.already.length} already present)`);
57
61
  }
58
- for (const hook of installSessionListening()) {
62
+ const hooks = installSessionListening();
63
+ const skills = installPaigySkill();
64
+ for (const s of skills) {
65
+ if (s.ok && !s.already) console.log(`\u2713 Paigy skill for ${s.harness} (${s.path})`);
66
+ else if (s.ok) console.log(`\u2713 Paigy skill for ${s.harness} already current`);
67
+ else console.log(`\u26A0 ${s.path}: ${s.why}`);
68
+ }
69
+ for (const hook of hooks) {
59
70
  if (!hook.ok) console.log(` ! ${hook.harness}: ${hook.why}`);
60
71
  else console.log(`\u2713 ${hook.harness} sessions will be told to listen (${hook.path})${hook.already ? " \u2014 already set" : ""}`);
61
72
  }
73
+ if (!result.ok && !hooks.some((hook) => hook.ok)) {
74
+ console.error(`\u2717 ${result.reason}`);
75
+ process.exit(1);
76
+ }
62
77
  console.log(` To listen in a session already running: ${LISTEN_COMMAND} \u2014 under your harness's Monitor tool.`);
63
78
  }
64
79
  main();
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  resolvePairing,
11
11
  startPairing,
12
12
  suggestedAgentName
13
- } from "./chunk-6V4X3EFA.js";
13
+ } from "./chunk-4US4OJR5.js";
14
14
  import {
15
15
  ConfigureSchema,
16
16
  ENABLE_COMMAND,
@@ -18,7 +18,7 @@ import {
18
18
  SERVER_INSTRUCTIONS,
19
19
  TOOLS,
20
20
  paigyToolsAllowlisted
21
- } from "./chunk-I3WDI2JV.js";
21
+ } from "./chunk-CVQOJB2S.js";
22
22
  import {
23
23
  AGENT_PROMPTS,
24
24
  ReachTeller,
@@ -32,7 +32,7 @@ import {
32
32
  refreshSessionHook,
33
33
  wakeStatusPath,
34
34
  withReach
35
- } from "./chunk-NNB3HQTF.js";
35
+ } from "./chunk-LRROOCLY.js";
36
36
  import {
37
37
  clearSurface,
38
38
  writeSurface
@@ -53,7 +53,7 @@ import {
53
53
  setClient,
54
54
  slotName,
55
55
  whoAmI
56
- } from "./chunk-W3FK4FD6.js";
56
+ } from "./chunk-5OKHG3FO.js";
57
57
 
58
58
  // src/index.ts
59
59
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
package/dist/listen.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  removeListenMark,
12
12
  wakeStatusPath,
13
13
  writeListenMark
14
- } from "./chunk-NNB3HQTF.js";
14
+ } from "./chunk-LRROOCLY.js";
15
15
  import {
16
16
  agentName,
17
17
  decided,
@@ -22,7 +22,7 @@ import {
22
22
  slotName,
23
23
  subscribeWake,
24
24
  viaLine
25
- } from "./chunk-W3FK4FD6.js";
25
+ } from "./chunk-5OKHG3FO.js";
26
26
 
27
27
  // src/listen.ts
28
28
  import { createHash } from "crypto";
package/dist/onboard.js CHANGED
@@ -3,14 +3,14 @@ import {
3
3
  resolvePairing,
4
4
  startPairing,
5
5
  suggestedAgentName
6
- } from "./chunk-6V4X3EFA.js";
6
+ } from "./chunk-4US4OJR5.js";
7
7
  import {
8
8
  autoConfigureClients,
9
9
  claudeInstallHint,
10
10
  openBrowser,
11
11
  removeOldGeminiHooks
12
- } from "./chunk-I3WDI2JV.js";
13
- import "./chunk-NNB3HQTF.js";
12
+ } from "./chunk-CVQOJB2S.js";
13
+ import "./chunk-LRROOCLY.js";
14
14
  import {
15
15
  TOKEN_PATH,
16
16
  agentName,
@@ -21,7 +21,7 @@ import {
21
21
  saveToken,
22
22
  setIdentity,
23
23
  whoAmI
24
- } from "./chunk-W3FK4FD6.js";
24
+ } from "./chunk-5OKHG3FO.js";
25
25
 
26
26
  // src/onboard.ts
27
27
  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-W3FK4FD6.js";
4
+ } from "./chunk-5OKHG3FO.js";
5
5
 
6
6
  // src/slot.ts
7
7
  process.stdout.write(agentName());
package/dist/stalled.js CHANGED
@@ -33,7 +33,7 @@ async function main() {
33
33
  const dir = join(homedir(), ".paigy", "stalled-reminded");
34
34
  const mark = join(dir, `${session || "session"}-${day}`);
35
35
  if (existsSync(mark)) return;
36
- const { receive } = await import("./dist-ZBYGV7QX.js");
36
+ const { receive } = await import("./dist-TJFO3UCZ.js");
37
37
  const reply = stopReply((await receive()).stalled ?? []);
38
38
  if (!reply) return;
39
39
  mkdirSync(dir, { recursive: true });
@@ -7,7 +7,7 @@ import {
7
7
  readToken,
8
8
  sessionSlot,
9
9
  slotName
10
- } from "./chunk-W3FK4FD6.js";
10
+ } from "./chunk-5OKHG3FO.js";
11
11
 
12
12
  // src/statusline.ts
13
13
  import { realpathSync } from "fs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@paigy/mcp",
3
3
  "mcpName": "io.github.paigy-ai/mcp",
4
- "version": "0.40.42",
4
+ "version": "0.40.44",
5
5
  "description": "Paigy MCP server — the AI agent harness that calls you. Lets an agent notify a user and await their reply.",
6
6
  "license": "MIT",
7
7
  "type": "module",