@trainheroic-unofficial/core 2.1.1 → 3.0.1
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/dist/index.mjs +4 -3
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1346,13 +1346,14 @@ function registerReads(server, ctx) {
|
|
|
1346
1346
|
}));
|
|
1347
1347
|
server.registerTool("messaging_read", {
|
|
1348
1348
|
title: "Read messages (live)",
|
|
1349
|
-
description: "
|
|
1349
|
+
description: "Comments in a stream, live from the API. Pass `afterCommentId` to fetch only newer comments upstream; cursor reads return the oldest unseen comments first, bounded by `limit`, so advance with the last returned comment ID to continue without gaps. Without it, the stream is fetched whole, then trimmed to `limit` (default 20). Each comment's `isAuthor` is true when the logged-in user sent it — to answer 'did an athlete message me', look for comments with isAuthor:false. Timestamps are Unix seconds. An empty result means the thread has no messages.",
|
|
1350
1350
|
inputSchema: {
|
|
1351
1351
|
streamId: idParam,
|
|
1352
|
-
limit: z.number().int().positive().max(200).optional()
|
|
1352
|
+
limit: z.number().int().positive().max(200).optional(),
|
|
1353
|
+
afterCommentId: idParam.optional()
|
|
1353
1354
|
},
|
|
1354
1355
|
annotations: READ
|
|
1355
|
-
}, ({ streamId, limit }) => attempt(async () => jsonResult(await readLive(ctx.client, toId(streamId), limit ?? 20))));
|
|
1356
|
+
}, ({ streamId, limit, afterCommentId }) => attempt(async () => jsonResult(await readLive(ctx.client, toId(streamId), limit ?? 20, afterCommentId === void 0 ? void 0 : toId(afterCommentId)))));
|
|
1356
1357
|
server.registerTool("message_draft", {
|
|
1357
1358
|
title: "Draft a message (preview only)",
|
|
1358
1359
|
description: "Preview the exact payload and target WITHOUT sending. Always safe.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trainheroic-unofficial/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"@cfworker/json-schema": "^4.1.1",
|
|
26
26
|
"@modelcontextprotocol/server": "2.0.0",
|
|
27
27
|
"zod": "^4.4.3",
|
|
28
|
-
"@trainheroic-unofficial/
|
|
29
|
-
"@trainheroic-unofficial/
|
|
28
|
+
"@trainheroic-unofficial/dto": "3.0.1",
|
|
29
|
+
"@trainheroic-unofficial/js": "3.0.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@types/node": "^26.2.0",
|