peertable 0.8.43 → 0.8.44
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.44",
|
|
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",
|
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.44'
|
|
18
18
|
const PKG_ROOT = join(dirname(fileURLToPath(import.meta.url)), '..')
|
|
19
19
|
|
|
20
20
|
const USAGE = `usage:
|
|
@@ -37,8 +37,8 @@ def main(argv):
|
|
|
37
37
|
lines = [
|
|
38
38
|
f"# 円卓ログ — room `{room}`(全{len(messages)}発言)",
|
|
39
39
|
"",
|
|
40
|
-
"teardown(archive
|
|
41
|
-
"
|
|
40
|
+
"teardown(archive モード)が、解散の区切りを投稿する前までの room ログを書き出した控え。"
|
|
41
|
+
"room と過去ログの原本はサーバー側に残り、次の卓も同じ room で続く。",
|
|
42
42
|
"",
|
|
43
43
|
"---",
|
|
44
44
|
"",
|
|
@@ -198,3 +198,31 @@ test('teardownはalarm-bridgeを停止してから.teamを削除する', () => {
|
|
|
198
198
|
assert.ok(source.includes('miss "alarm-bridge 停止に失敗'))
|
|
199
199
|
assert.ok(source.includes('-X DELETE "$url/api/$room/bridges"'))
|
|
200
200
|
})
|
|
201
|
+
|
|
202
|
+
test('archive room logは解散区切り前の控えであり原本をroomに残すと明記する', () => {
|
|
203
|
+
const dir = mkdtempSync(join(tmpdir(), 'peertable-archive-room-log-'))
|
|
204
|
+
const out = join(dir, 'room-log.md')
|
|
205
|
+
const script = fileURLToPath(new URL('./archive-room-log.py', import.meta.url))
|
|
206
|
+
const fixture = JSON.stringify({
|
|
207
|
+
messages: [{ seq: 1, from: 'bell', to_names: ['all'], ts: '2026-08-30T00:00:00Z', body: '完了' }],
|
|
208
|
+
})
|
|
209
|
+
const python = [
|
|
210
|
+
'import importlib.util, json, sys',
|
|
211
|
+
'spec = importlib.util.spec_from_file_location("archive_room_log", sys.argv[1])',
|
|
212
|
+
'module = importlib.util.module_from_spec(spec)',
|
|
213
|
+
'spec.loader.exec_module(module)',
|
|
214
|
+
'fixture = json.loads(sys.argv[3])',
|
|
215
|
+
'module.fetch = lambda _url, _path: fixture',
|
|
216
|
+
'raise SystemExit(module.main(["https://room.example", "factory", sys.argv[2]]))',
|
|
217
|
+
].join('; ')
|
|
218
|
+
try {
|
|
219
|
+
const result = spawnSync('python3', ['-c', python, script, out, fixture], { encoding: 'utf8' })
|
|
220
|
+
assert.equal(result.status, 0, result.stderr)
|
|
221
|
+
const log = readFileSync(out, 'utf8')
|
|
222
|
+
assert.match(log, /解散の区切りを投稿する前までの room ログを書き出した控え/u)
|
|
223
|
+
assert.match(log, /room と過去ログの原本はサーバー側に残り、次の卓も同じ room で続く/u)
|
|
224
|
+
assert.doesNotMatch(log, /削除済み|唯一の記録/u)
|
|
225
|
+
} finally {
|
|
226
|
+
rmSync(dir, { recursive: true, force: true })
|
|
227
|
+
}
|
|
228
|
+
})
|
|
@@ -461,11 +461,12 @@ export function subtreeCpuSeconds(psRows, rootPid, { includeChild = () => true,
|
|
|
461
461
|
return total
|
|
462
462
|
}
|
|
463
463
|
|
|
464
|
-
// ----
|
|
465
|
-
//
|
|
466
|
-
|
|
464
|
+
// ---- 親番犬の「起こす価値」判定 ----
|
|
465
|
+
// 2026-08-29裁定「番犬が必要な時だけ呼べ」で[待機]DMを沈黙させていたが、
|
|
466
|
+
// 2026-08-30裁定「待機にお前が気付けないのが問題だ。待機宣言は届くようにしろ」で撤回。
|
|
467
|
+
// 親宛DMは待機宣言を含めて全件起こす。room全体発言だけは従来どおり選別する。
|
|
467
468
|
export function parentWatchShouldNotify(message, roomUpdate) {
|
|
468
469
|
const body = String(message?.body ?? '')
|
|
469
470
|
if (roomUpdate) return /全タスク完了|\[オーナー宛/u.test(body)
|
|
470
|
-
return
|
|
471
|
+
return true
|
|
471
472
|
}
|