baychat 0.57.0 → 0.58.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/.claude-plugin/plugin.json +1 -1
- package/README.md +2 -1
- package/dist/mcp-todos.js +49 -0
- package/dist/mcp.js +5 -5
- package/dist/protocol-content.js +1 -1
- package/dist/relay/autostart-here.js +141 -0
- package/dist/relay/autostart.js +11 -60
- package/dist/relay/commands.js +9 -28
- package/dist/relay/launcher/capabilities.js +8 -1
- package/dist/relay/windows-task-xml.js +67 -0
- package/dist/relay/wsl-keeper.js +278 -0
- package/dist/tool-defs-outputs.js +73 -0
- package/dist/tool-defs.js +8 -18
- package/dist/tool-hints.js +2 -0
- package/package.json +1 -1
package/dist/tool-defs.js
CHANGED
|
@@ -28,6 +28,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
28
28
|
exports.PROTOCOL_RESOURCE = exports.ALL_TOOL_DEFS = exports.AGENT_TOOL_DEFS = exports.CONVERSATION_TOOL_DEFS = exports.SESSION_INSTRUCTIONS = exports.ONE_COMMAND_RULE = exports.SERVER_INSTRUCTIONS = exports.ALWAYS_LOAD_META = exports.MESSAGE_PICKUP_INSTRUCTION = exports.LIBRARY_UNTRUSTED_NOTICE = exports.CONNECTOR_UNTRUSTED_NOTICE = exports.WEB_UNTRUSTED_NOTICE = exports.ASK_CONNECTOR_LIMIT_DEFAULT = exports.ASK_CONNECTOR_LIMIT_MAX = exports.ASK_CONNECTOR_LIMIT_MIN = exports.WEB_FETCH_MAX_CHARS_DEFAULT = exports.WEB_FETCH_MAX_CHARS_MAX = exports.WEB_FETCH_MAX_CHARS_MIN = exports.WEB_SEARCH_LIMIT_DEFAULT = exports.WEB_SEARCH_LIMIT_MAX = exports.WEB_SEARCH_LIMIT_MIN = exports.WEB_SEARCH_QUERY_MAX = void 0;
|
|
29
29
|
const zod_1 = require("zod");
|
|
30
30
|
const tool_defs_notes_1 = require("./tool-defs-notes");
|
|
31
|
+
const tool_defs_outputs_1 = require("./tool-defs-outputs");
|
|
31
32
|
const tool_defs_boards_1 = require("./tool-defs-boards");
|
|
32
33
|
// The MCP annotations (title, read-only, destructive, open-world) are `tool-hints.ts`'s.
|
|
33
34
|
// ─── Argument bounds ────────────────────────────────────────────────────────
|
|
@@ -222,7 +223,7 @@ exports.CONVERSATION_TOOL_DEFS = [
|
|
|
222
223
|
"acknowledgement is a reaction. Short reads best; an @mention reaches a person even when muted, " +
|
|
223
224
|
"so it is for when they are needed. Answering a specific message: replyToMessageId " +
|
|
224
225
|
"quotes it and marks it ✅ for you (a progress update: done=false). To relay a " +
|
|
225
|
-
"calendar event or an email, or to show a chart or a
|
|
226
|
+
"calendar event or an email, or to show a chart, a page, a plan or a board, pass `card`, with `content` as a one-line " +
|
|
226
227
|
"plain-text fallback. Decisions go through request_approval, not here.",
|
|
227
228
|
inputSchema: {
|
|
228
229
|
conversationId: zod_1.z.string().describe(tool_defs_notes_1.CONVERSATION_ID),
|
|
@@ -252,23 +253,9 @@ exports.CONVERSATION_TOOL_DEFS = [
|
|
|
252
253
|
.optional()
|
|
253
254
|
.describe("Ids of files you already uploaded, attached in order."),
|
|
254
255
|
card: zod_1.z
|
|
255
|
-
.object({
|
|
256
|
-
type: zod_1.z.enum(["card.calendar", "card.email", "card.chart", "card.page", "card.app"]),
|
|
257
|
-
payload: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
|
|
258
|
-
})
|
|
256
|
+
.object({ type: zod_1.z.enum(tool_defs_outputs_1.SENDABLE_CARD_TYPES), payload: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()) })
|
|
259
257
|
.optional()
|
|
260
|
-
.describe(
|
|
261
|
-
"[{name,address}], notes. card.email: subject, from {name,address} (display only), " +
|
|
262
|
-
"snippet, body, timestamp. card.chart: title, kind bar|line, labels[2-31], " +
|
|
263
|
-
"series[1-3]{name?, values[] (one per label), highlight?[] (indexes)}, unit?, note?, " +
|
|
264
|
-
"key? (same key again = its next version, v2). Data only: BayChat draws it. " +
|
|
265
|
-
"card.page: title, body (markdown, ≤20,000 chars; no HTML, images show as links), key?. " +
|
|
266
|
-
"card.app: title, description? (≤300), html (ONE self-contained page, ≤500 KB), key?: runs " +
|
|
267
|
-
"sandboxed when someone opens it. No network (no fetch), no forms, no storage; scripts only " +
|
|
268
|
-
"inline or from cdnjs (react, react-dom, Chart.js, d3, three.js, lodash.js, marked). " +
|
|
269
|
-
"All three: changes? (≤200, what this version changed) and answers? (the comment id you answer, " +
|
|
270
|
-
"from your artifact's own thread). " +
|
|
271
|
-
"A card OR attachments, never both."),
|
|
258
|
+
.describe(tool_defs_outputs_1.CARD_DESCRIPTION),
|
|
272
259
|
},
|
|
273
260
|
_meta: exports.ALWAYS_LOAD_META,
|
|
274
261
|
},
|
|
@@ -280,7 +267,7 @@ exports.CONVERSATION_TOOL_DEFS = [
|
|
|
280
267
|
"server. It suits a choice several people own; a decision one person owns is " +
|
|
281
268
|
"request_approval's, which blocks until they answer. A poll blocks nothing; everyone, agents " +
|
|
282
269
|
"included, can vote and every vote is visible. The tally is in get_messages, so a second poll " +
|
|
283
|
-
"on the same question adds nothing.",
|
|
270
|
+
"on the same question adds nothing." + tool_defs_outputs_1.POLL_OUTPUTS_DESCRIPTION,
|
|
284
271
|
inputSchema: {
|
|
285
272
|
conversationId: zod_1.z.string().describe(tool_defs_notes_1.CONVERSATION_ID),
|
|
286
273
|
question: zod_1.z.string().describe("The question."),
|
|
@@ -289,6 +276,7 @@ exports.CONVERSATION_TOOL_DEFS = [
|
|
|
289
276
|
.boolean()
|
|
290
277
|
.optional()
|
|
291
278
|
.describe("Allow several answers per voter (default false)."),
|
|
279
|
+
...tool_defs_outputs_1.POLL_OUTPUT_ARGS,
|
|
292
280
|
},
|
|
293
281
|
},
|
|
294
282
|
{
|
|
@@ -316,6 +304,8 @@ exports.CONVERSATION_TOOL_DEFS = [
|
|
|
316
304
|
pollId: zod_1.z.string().describe("From the poll card's cardPayload.pollId."),
|
|
317
305
|
},
|
|
318
306
|
},
|
|
307
|
+
// To-do lists ticked together (tool-defs-outputs.ts, protocol 2.45).
|
|
308
|
+
...tool_defs_outputs_1.TODO_TOOL_DEFS,
|
|
319
309
|
{
|
|
320
310
|
name: "set_typing",
|
|
321
311
|
access: "write",
|
package/dist/tool-hints.js
CHANGED
|
@@ -34,6 +34,7 @@ exports.TOOL_HINTS = {
|
|
|
34
34
|
// ── Writes that only add ──────────────────────────────────────────────────────────────────────────────────
|
|
35
35
|
send_message: INSIDE,
|
|
36
36
|
create_poll: INSIDE,
|
|
37
|
+
create_todo: INSIDE,
|
|
37
38
|
create_note: INSIDE,
|
|
38
39
|
add_board_card: INSIDE,
|
|
39
40
|
create_board: INSIDE,
|
|
@@ -65,6 +66,7 @@ exports.TOOL_HINTS = {
|
|
|
65
66
|
update_board_card: LOSES, // overwrites fields; a to-do keeps no history
|
|
66
67
|
update_note: LOSES, // replaces the text people read; a NoteVersion keeps the old, but undo is no reason for false (OpenAI, 25 Nov)
|
|
67
68
|
vote_in_poll: LOSES, // changes a vote people see counted; setting it again is undo, which is no reason for false
|
|
69
|
+
tick_todo: LOSES, // unticks what people saw ticked, as a changed vote does
|
|
68
70
|
react_to_message: LOSES, // a mark people see at once; setting it again is undo, which is no reason for false
|
|
69
71
|
close_poll: LOSES, // no more votes, ever
|
|
70
72
|
end_session: LOSES, // the session ends
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "baychat",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.0",
|
|
4
4
|
"description": "BayChat connector CLI — pair an agent session (Claude Code, Codex, Cursor) with BayChat, or have the relay run DeepSeek or the Cursor CLI for you",
|
|
5
5
|
"bin": {
|
|
6
6
|
"baychat": "dist/index.js"
|