@alexsun-top/opencode-chat-room 0.8.5 → 0.8.6
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/CHANGELOG.md +12 -2
- package/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/cli.ts +19 -0
- package/dist/cli.js +3747 -1443
- package/package.json +6 -1
- package/packages/chat-room-channeld/README.md +13 -8
- package/packages/chat-room-channeld/src/delivery.ts +0 -4
- package/packages/chat-room-channeld/src/host.ts +48 -37
- package/packages/chat-room-channeld/src/pg/database.ts +141 -49
- package/packages/chat-room-channeld/src/pg/worker.mjs +46 -5
- package/packages/chat-room-channeld/src/pg/worker.mts +41 -6
- package/packages/chat-room-channeld/src/state-rows.ts +132 -0
- package/packages/chat-room-channeld/src/state.ts +129 -157
- package/plugin.ts +20 -4
- package/server/app.ts +9 -0
- package/server/assets/base.css +22 -2
- package/server/assets/chat/admin.js +13 -0
- package/server/assets/chat/announcements.js +76 -34
- package/server/assets/chat/confirm-dialog.js +3 -0
- package/server/assets/chat/create-room-dialog.js +7 -0
- package/server/assets/chat/diagram-viewer.js +4 -8
- package/server/assets/chat/doc-preview.js +70 -30
- package/server/assets/chat/editor.js +38 -3
- package/server/assets/chat/events.js +6 -1
- package/server/assets/chat/files.js +28 -26
- package/server/assets/chat/history-loader.js +31 -15
- package/server/assets/chat/integration-editor.js +25 -1
- package/server/assets/chat/integrations.js +107 -15
- package/server/assets/chat/join-requests.js +39 -1
- package/server/assets/chat/locales/de.js +5 -3
- package/server/assets/chat/locales/es.js +5 -3
- package/server/assets/chat/locales/fr.js +5 -3
- package/server/assets/chat/locales/it.js +5 -3
- package/server/assets/chat/locales/ja.js +5 -3
- package/server/assets/chat/locales/ko.js +5 -3
- package/server/assets/chat/markdown-footnotes.js +19 -8
- package/server/assets/chat/markdown.js +0 -7
- package/server/assets/chat/members.js +31 -19
- package/server/assets/chat/message-cache.js +8 -2
- package/server/assets/chat/message-polling.js +8 -2
- package/server/assets/chat/message-window.js +57 -0
- package/server/assets/chat/messages.js +79 -40
- package/server/assets/chat/operator.js +624 -0
- package/server/assets/chat/palette.js +2 -7
- package/server/assets/chat/panels.js +31 -8
- package/server/assets/chat/questions.js +72 -56
- package/server/assets/chat/recall.js +14 -5
- package/server/assets/chat/receipts.js +63 -7
- package/server/assets/chat/refresh-timing.js +6 -0
- package/server/assets/chat/reminders.js +44 -13
- package/server/assets/chat/replies.js +33 -22
- package/server/assets/chat/resource-format.js +4 -1
- package/server/assets/chat/room-list.js +202 -3
- package/server/assets/chat/room-watcher.js +3 -1
- package/server/assets/chat/rooms.js +22 -3
- package/server/assets/chat/settings.js +33 -3
- package/server/assets/chat/state.js +21 -7
- package/server/assets/chat/tasks.js +33 -11
- package/server/assets/chat/window-controls.js +25 -16
- package/server/assets/code-highlight.css +0 -13
- package/server/assets/conversation.css +31 -3
- package/server/assets/doc-preview.css +3 -0
- package/server/assets/files.css +4 -0
- package/server/assets/monaco/integration-rules.js +1 -1
- package/server/assets/responsive.css +12 -2
- package/server/assets/settings.css +3 -1
- package/server/assets/tasks.css +6 -1
- package/server/assets/window-controls.css +3 -1
- package/server/channels.ts +3 -2
- package/server/chat.html +7 -2
- package/server/inbox.ts +3 -1
- package/server/join-requests.ts +8 -1
- package/server/member-routes.ts +16 -2
- package/server/newrooms.ts +2 -13
- package/server/operator-auth.ts +21 -0
- package/server/operator-routes.ts +150 -0
- package/server/operator-state.ts +64 -0
- package/server/operator.css +139 -0
- package/server/room-owner.ts +17 -0
- package/server/routes/inbox.ts +15 -5
- package/server/routes/pages.ts +12 -2
- package/server/routes/room-actions.ts +4 -3
- package/server/system.html +109 -0
- package/server/wake.ts +1 -1
- package/skills/chatroom/SKILL.md +3 -3
- package/src/acp/client.ts +254 -0
- package/src/acp/protocol.ts +300 -0
- package/src/acp/watch.ts +498 -0
- package/src/agent/agent-receipts.ts +87 -5
- package/src/center/center-client.ts +5 -0
- package/src/center/center-inbox.ts +54 -7
- package/src/center/center-wake.ts +57 -3
- package/src/center/forward-client.ts +48 -0
- package/src/center/mentions.ts +16 -3
- package/src/center/notification-delay.ts +139 -0
- package/src/center/queue.ts +3 -0
- package/src/config/file-config.ts +25 -0
- package/src/mcp/server.ts +389 -0
- package/src/protocol/config.ts +7 -0
- package/src/runtime/plugin-notifications.ts +43 -9
- package/src/runtime/v2-plugin.ts +14 -3
- package/src/runtime/v2-receiver.ts +10 -2
- package/src/runtime/watch.ts +5 -1
- package/src/state/pg-database.ts +133 -49
- package/src/state/pg-worker.mjs +46 -5
- package/src/state/pg-worker.mts +41 -6
- package/src/state/receiver-state.ts +47 -0
- package/src/state/sqlite-database.ts +6 -2
- package/src/state/sqlite-members.ts +48 -4
- package/src/state/sqlite-messages.ts +25 -12
- package/src/state/sqlite-schema.ts +4 -1
- package/src/state/sqlite-state.ts +1 -1
- package/src/state/store.ts +10 -4
- package/src/tui/app.mjs +57 -10
- package/src/tui/app.mts +54 -11
- package/src/tui/room-settings-app.mjs +27 -9
- package/src/tui/room-settings-app.mts +26 -9
- package/src/web/integration-rules-editor.ts +25 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
##
|
|
4
|
-
|
|
3
|
+
## 0.8.6 — 2026-12-03
|
|
4
|
+
|
|
5
|
+
- Show confirmed OpenCode V2 notification delivery separately from read receipts. Delivery does not advance the read state or turn the badge green.
|
|
6
|
+
- Add an opt-in `/system` console with a dedicated operator token. List group rooms, restore ownership to an existing human member, and record the reason in the operator audit.
|
|
7
|
+
- Recover the server and bundled Channel D PostgreSQL connections on a later independent operation after a bridge timeout or disconnect. Do not replay a failed write, whose outcome may be unknown.
|
|
8
|
+
- Spread automatic OpenCode notifications that do not name the receiving Agent over a default 0–2 seconds. Configure fixed delay and jitter independently in the plugin environment or client settings. Direct named mentions add no wait.
|
|
9
|
+
- Keep existing rows in place during panel refreshes and show loading feedback for at least 150 ms before applying fast results. Confirm web messages in place instead of rebuilding the bubble, and preserve the reader's scroll position.
|
|
10
|
+
- Reorder rooms locally by dragging, pressing Alt+Shift+Up/Down on a focused room, or tapping the move buttons on touch devices. The announcement panel no longer blocks Alt+Up/Down room switching.
|
|
5
11
|
- When a server stops responding during session restore, show Retry and Settings after the 20-second request deadline instead of spinning indefinitely.
|
|
6
12
|
- Upgrade to TypeScript 7. One root `tsconfig.json` now checks the web client, service worker, and server with the same strict settings. Web assets still build to their existing URLs.
|
|
7
13
|
- Type the terminal client, Codex plugin, PostgreSQL workers, and release tooling. The terminal and workers still run from the same `.mjs` paths, and the compiled Codex plugin still supports Node 20.
|
|
@@ -38,6 +44,10 @@
|
|
|
38
44
|
- Distinguish the conversation surface with a subtle background, rebalance the side gutters, and show avatars once the layout is wide enough.
|
|
39
45
|
- Use a borderless window-controls-overlay layout when an installed PWA exposes it, and keep the normal framed layout everywhere else.
|
|
40
46
|
- Print `message_id=… room_id=…` in send results and `message_id=… chat_id=… sender=…` in inbound relay headers, so IDs can be copied without parsing prose.
|
|
47
|
+
- Add `forward_targets` and `forward` to the `room` tool in the OpenCode V1/V2 plugins and the stdio MCP server: list a room's ready relay targets and queue one already-sent reply to one exact target. The server endpoint, queue, and receipts already existed; the agent had no way to call them.
|
|
48
|
+
- Deliver room messages that arrive while the plugin is running without waiting for an `@` mention, in rooms with a single agent and for messages newer than the plugin start. Restart backlog stays mention-gated.
|
|
49
|
+
- Let the Feishu adapter accept one direct chat alongside allowlisted groups through `FEISHU_INBOUND_DM_CHAT` and `FEISHU_INBOUND_DM_OPEN_ID`, log `chat_id`/`chat_type`/`open_id` for ignored inbound events, and ingest voice messages as a `voice-Ns.opus` attachment with a duration label.
|
|
50
|
+
- Use the same 16px radius on every message bubble corner, and give the code-preview context menu an opaque background in both themes.
|
|
41
51
|
|
|
42
52
|
## 0.8.1 — 2026-11-26
|
|
43
53
|
|
package/README.md
CHANGED
|
@@ -61,7 +61,7 @@ For Docker Compose, PostgreSQL state, S3-compatible storage, and all environment
|
|
|
61
61
|
- **Tasks and reminders:** track tasks in a side pane or modal; schedule one-time or cron reminders.
|
|
62
62
|
- **Search and shortcuts:** Alt+Space or Ctrl+P searches messages; `/` filters commands. More shortcuts are in Settings.
|
|
63
63
|
- **Terminal (Bun 1.3.14+):** run `bunx --bun @alexsun-top/opencode-chat-room@0.8.5 cli` against the same server.
|
|
64
|
-
- **Web app:** installs to a phone home screen and starts offline from cache
|
|
64
|
+
- **Web app:** installs to a phone home screen and starts offline from cache. Recent room history is stored locally in the browser; messages still sending are not saved in that history.
|
|
65
65
|
|
|
66
66
|
## Optional services
|
|
67
67
|
|
package/README.zh-CN.md
CHANGED
|
@@ -61,7 +61,7 @@ Docker Compose、PostgreSQL 状态、S3 兼容存储和全部环境变量见[部
|
|
|
61
61
|
- **任务和提醒:** 在侧栏或弹窗里跟踪任务;设置一次性或 cron 提醒。
|
|
62
62
|
- **搜索和快捷键:** Alt+Space 或 Ctrl+P 搜索消息,`/` 过滤命令;更多快捷键在设置里。
|
|
63
63
|
- **终端(Bun 1.3.14+):** 运行 `bunx --bun @alexsun-top/opencode-chat-room@0.8.5 cli` 连接同一个服务端。
|
|
64
|
-
- **网页应用:**
|
|
64
|
+
- **网页应用:** 可安装到手机主屏,离线时从缓存启动。浏览器会在本地保存最近的房间消息,但不会把发送中的消息存入这份历史记录。
|
|
65
65
|
|
|
66
66
|
## 可选服务
|
|
67
67
|
|
package/cli.ts
CHANGED
|
@@ -17,6 +17,9 @@ Commands:
|
|
|
17
17
|
migrate [--to-postgres] --yes
|
|
18
18
|
Copy the SQLite state database to PostgreSQL
|
|
19
19
|
cli [--name <name>] Open the terminal client
|
|
20
|
+
mcp --session-id <id> Serve central room tools over stdio
|
|
21
|
+
acp check|run|watch [options] -- <agent> [args...]
|
|
22
|
+
Connect to a local ACP v1 agent
|
|
20
23
|
watch run|start|status|stop`;
|
|
21
24
|
|
|
22
25
|
type ValueOption = "host" | "port" | "token";
|
|
@@ -45,6 +48,22 @@ function validatePort(value: string): void {
|
|
|
45
48
|
|
|
46
49
|
const args = process.argv.slice(2);
|
|
47
50
|
|
|
51
|
+
if (args[0] === "mcp" || args[0] === "acp") {
|
|
52
|
+
let status = 0;
|
|
53
|
+
if (args[0] === "acp") {
|
|
54
|
+
const { runAcp } = await import("./src/acp/client.ts");
|
|
55
|
+
status = await runAcp(args.slice(1), fileURLToPath(import.meta.url));
|
|
56
|
+
} else if (args.length === 2 && (args[1] === "--help" || args[1] === "-h")) {
|
|
57
|
+
console.log("Usage: opencode-chat-room mcp --session-id <id>");
|
|
58
|
+
} else {
|
|
59
|
+
const { runMcp } = await import("./src/mcp/server.ts");
|
|
60
|
+
status = await runMcp(args.slice(1));
|
|
61
|
+
}
|
|
62
|
+
await Promise.all([process.stdout, process.stderr].map((stream) =>
|
|
63
|
+
new Promise<void>((resolve) => stream.write("", () => resolve()))));
|
|
64
|
+
process.exit(status);
|
|
65
|
+
}
|
|
66
|
+
|
|
48
67
|
// `bunx package` runs the bin with Node by default, even when Bun is installed.
|
|
49
68
|
// The terminal client needs Bun here, so hand off to a supported Bun when one is
|
|
50
69
|
// available instead of making every user remember the --bun flag.
|