peertable 0.2.0 → 0.2.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/package.json +1 -1
- package/room/client.mjs +3 -2
package/package.json
CHANGED
package/room/client.mjs
CHANGED
|
@@ -10,7 +10,7 @@ import { fileURLToPath } from 'node:url'
|
|
|
10
10
|
|
|
11
11
|
// client.mjs 側のハードコード版数。package.json の version と一致していることを
|
|
12
12
|
// diagnostics の version_consistency が見る(2 つの版数源の drift 検出。決定45)
|
|
13
|
-
const MCP_VERSION = '0.2.
|
|
13
|
+
const MCP_VERSION = '0.2.1'
|
|
14
14
|
const PKG_ROOT = join(dirname(fileURLToPath(import.meta.url)), '..')
|
|
15
15
|
|
|
16
16
|
const USAGE = `usage:
|
|
@@ -82,7 +82,8 @@ mcp.setRequestHandler(CallToolRequestSchema, async req => {
|
|
|
82
82
|
const r = await fetch(api('messages'), { method: 'POST', headers, body: JSON.stringify({ from: ME, to: args.to, body: args.message }) })
|
|
83
83
|
const msg = await r.json()
|
|
84
84
|
if (!r.ok) return text(`送信失敗: ${JSON.stringify(msg)}`)
|
|
85
|
-
cursor
|
|
85
|
+
// cursor は触らない。自分の発言は relevant で除外されるので進める必要が無く、
|
|
86
|
+
// ここで進めると post より前に届いた未読を読まないまま既読にしてしまう(0.2.1 で修正)
|
|
86
87
|
return text(`sent [${msg.seq}]`)
|
|
87
88
|
}
|
|
88
89
|
case 'read_unread': {
|