@paigy/mcp 0.40.25 → 0.40.26
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 +13 -6
- package/dist/{chunk-UAVXYNLV.js → chunk-5MQ3J6S3.js} +2 -2
- package/dist/{chunk-GHSB2VP6.js → chunk-7LQKX73K.js} +721 -529
- package/dist/{chunk-2ROD77AW.js → chunk-BLWC44CQ.js} +1 -1
- package/dist/{chunk-EJYXBEWN.js → chunk-OVSAQW3K.js} +872 -632
- package/dist/{dist-NMHU2UNG.js → dist-WGFUXFS4.js} +3 -3
- package/dist/enable.js +3 -3
- package/dist/index.js +16 -8
- package/dist/listen.js +6 -5
- package/dist/onboard.js +4 -4
- package/dist/slot.js +1 -1
- package/dist/stalled.js +2 -2
- package/dist/statusline.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -118,13 +118,20 @@ Then pair: `PAIGY_AGENT=gemini npx -p @paigy/mcp@latest paigy-mcp-onboard`.
|
|
|
118
118
|
|
|
119
119
|
One catalog, on every transport (2026-09-11): the agent tools are `AGENT_TOOLS` in
|
|
120
120
|
`packages/schema/src/tools.ts` — who_is_working, contact, manage_goals, claim_goal,
|
|
121
|
-
get_goal,
|
|
121
|
+
get_goal, search, send_feedback — and both this server and the hosted MCP
|
|
122
122
|
(`apps/api/src/mcp`) publish that list and dispatch it through the SDK's one `runTool`.
|
|
123
123
|
This server adds only onboard, pair and unpair, the tools that mint and delete the token
|
|
124
|
-
file this machine holds. See the [SDK contract](../../packages/sdk/README.md) for the
|
|
125
|
-
|
|
126
|
-
~45-second window here
|
|
127
|
-
contact({
|
|
124
|
+
file this machine holds, and listen. See the [SDK contract](../../packages/sdk/README.md) for the
|
|
125
|
+
contact shape. Sending returns immediately unless it asks to `wait`: `wait: true` holds one
|
|
126
|
+
cancellable ~45-second window here for a response to what was sent (the hosted transport
|
|
127
|
+
returns after one read), and `contact({})` holds one for anything addressed to you; after an
|
|
128
|
+
`expired` window, wait again without sending again. Every Goal a contact names must already
|
|
129
|
+
exist (create it with manage_goals); a question with `workItBlocks` asks for a call; a
|
|
130
|
+
question, an update or an answer is at most 250 characters with its context in `units`; and
|
|
131
|
+
`withdrawQuestionIds` takes back a question of yours. `update_goal` is gone (2026-10-07): progress
|
|
132
|
+
is a contact update (one the person does not need yet is kept as the Goal's progress), a review is
|
|
133
|
+
acknowledged with `ackEventIds`, and a Goal is postponed with manage_goals `defer` (you are woken
|
|
134
|
+
when its time comes). Durable Entries and accepted answers can
|
|
128
135
|
repeat on reads; contact with nothing to send receives what is addressed to you (a request the
|
|
129
136
|
user started toward you, an answer relayed to something you asked, a handoff, a question you owe) without
|
|
130
137
|
consuming any of it until you acknowledge it (`ackEventIds`), and claim_goal is the catch-up for
|
|
@@ -171,7 +178,7 @@ To launch an agent — any agent, not just Claude — when work arrives, set
|
|
|
171
178
|
| `PAIGY_WORK` | everything the wake found, as JSON (`deliveries`, `goal`) |
|
|
172
179
|
| `PAIGY_EVENT` | the wake that caused this run — `boot`, `wake:reply`, `wake:request`… |
|
|
173
180
|
| `PAIGY_PARENT_ID` | the thread to continue on (`PAIGY_THREAD_ID` is the same value, for existing scripts) |
|
|
174
|
-
| `PAIGY_DELIVERY_ID` | the Delivery being acted on
|
|
181
|
+
| `PAIGY_DELIVERY_ID` | the Delivery being acted on (`get_goal` on `PAIGY_GOAL_ID` reads its conversation) |
|
|
175
182
|
| `PAIGY_GOAL_ID` | the Goal it belongs to — `claim_goal` it **first** |
|
|
176
183
|
| `PAIGY_TEXT` | what the person said, in prose |
|
|
177
184
|
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
serverInstructions,
|
|
5
5
|
sessionStartHook,
|
|
6
6
|
withSessionStartHook
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7LQKX73K.js";
|
|
8
8
|
import {
|
|
9
9
|
CODEX_ENV,
|
|
10
10
|
agentName,
|
|
11
11
|
withCodexEnv
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OVSAQW3K.js";
|
|
13
13
|
|
|
14
14
|
// src/toolset.ts
|
|
15
15
|
var ONBOARD_DESCRIPTION = "Get this agent talking to Paigy \u2014 call it FIRST, before contact, and any time you're unsure who you are. One call, and it does whatever the situation needs: NOT SET UP \u2192 hatches an identity instantly if this machine holds a device credential (the user ran the Paigy desktop app or harness), otherwise starts the code ceremony; ALREADY SET UP \u2192 returns your current identity and offers the two things left to decide, renaming it or unpairing; TOKEN NO LONGER VALID \u2192 says so, then re-pairs. Pass { name, voice } to choose who you are when hatching, or to RENAME yourself when already set up (voices: rachel, george, jessica, brian, lily). Safe to call any time: idempotent, and it never writes settings \u2014 the tool-allowlist state it reports is read-only. If it returns a `user_code`, print it to the user immediately and call onboard again with the `device_code`. If it returns `enable_command`, PRINT that command for the user to run \u2014 you cannot apply it yourself (it writes your own permission allowlist, which hosts block as privilege escalation), so print it, don't wait for it, and carry on.";
|