peertable 0.8.25 → 0.8.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "peertable",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.26",
|
|
4
4
|
"description": "A round table of peer agents. No orchestrator at the head. Turn Claude Code, Codex, and Grok sessions into a team of equal, long-lived peers.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"peertable-client": "room/client.mjs"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
|
-
"room/server.mjs",
|
|
37
|
-
"room/client.mjs",
|
|
38
|
-
"room/message-bounds.mjs",
|
|
36
|
+
"room/server.mjs",
|
|
37
|
+
"room/client.mjs",
|
|
38
|
+
"room/message-bounds.mjs",
|
|
39
39
|
"room/Dockerfile",
|
|
40
40
|
"skill/",
|
|
41
41
|
"!skill/**/__pycache__/**",
|
package/room/client.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { boundedRecent, boundedUnread } from './message-bounds.mjs'
|
|
|
14
14
|
|
|
15
15
|
// client.mjs 側のハードコード版数。package.json の version と一致していることを
|
|
16
16
|
// diagnostics の version_consistency が見る(2 つの版数源の drift 検出。決定45)
|
|
17
|
-
const MCP_VERSION = '0.8.
|
|
17
|
+
const MCP_VERSION = '0.8.26'
|
|
18
18
|
const PKG_ROOT = join(dirname(fileURLToPath(import.meta.url)), '..')
|
|
19
19
|
|
|
20
20
|
const USAGE = `usage:
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
// python stdout の cp932 は日本語本文を壊す)。
|
|
6
6
|
import { readFileSync, existsSync } from 'node:fs'
|
|
7
7
|
import { resolve } from 'node:path'
|
|
8
|
+
import { resolvePostToken } from './seat-usage.mjs'
|
|
8
9
|
|
|
9
10
|
const args = process.argv.slice(2)
|
|
10
11
|
const buildOnly = args[0] === '--build-only'
|
|
@@ -35,7 +36,7 @@ if (!url || !room) {
|
|
|
35
36
|
process.stderr.write('POST_MESSAGE_TARGET_UNRESOLVED: PEERTABLE_URL/PEERTABLE_ROOM も cwd の .team/setup-state.json も無く、送信先を決められない\n')
|
|
36
37
|
process.exit(1)
|
|
37
38
|
}
|
|
38
|
-
const token = process.env
|
|
39
|
+
const token = resolvePostToken(process.env) || null
|
|
39
40
|
|
|
40
41
|
const headers = { 'content-type': 'application/json' }
|
|
41
42
|
if (token !== null) headers['x-peertable-token'] = token
|
|
@@ -156,3 +156,9 @@ test('room未読は返した位置までだけ進み残りを次回へ保つ', (
|
|
|
156
156
|
assert.ok(first.consumedSeq < 6)
|
|
157
157
|
assert.match(first.text, /read_unreadを再実行/u)
|
|
158
158
|
})
|
|
159
|
+
|
|
160
|
+
test('親post入口は明示envだけでなく共通token解決を使う', () => {
|
|
161
|
+
const source = readFileSync(new URL('./post-message.mjs', import.meta.url), 'utf8')
|
|
162
|
+
assert.ok(source.includes("import { resolvePostToken } from './seat-usage.mjs'"))
|
|
163
|
+
assert.ok(source.includes('resolvePostToken(process.env)'))
|
|
164
|
+
})
|