ai_co_discuss 0.4.64 → 0.4.66
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/.agents/skills/discuss-host/SKILL.md +1 -1
- package/.agents/skills/discuss-participant/SKILL.md +1 -0
- package/README.md +1 -0
- package/README.zh-CN.md +1 -0
- package/backend/free_room.py +6 -1
- package/backend/schema.sql +2 -2
- package/backend/server.py +1 -1
- package/docs/architecture.md +1 -0
- package/docs/en/architecture.md +1 -0
- package/docs/en/runner.md +35 -1
- package/docs/runner.md +35 -1
- package/frontend/locales/en/core.json +0 -1
- package/frontend/locales/en/external.json +36 -9
- package/frontend/locales/en/room.json +1 -0
- package/package.json +2 -2
- package/runner/adapters/claude.mjs +5 -3
- package/runner/discussion_launch.mjs +3 -1
- package/runner/expert_prompts.mjs +7 -3
- package/runner/external_client.mjs +132 -62
- package/runner/external_gateway.mjs +70 -49
- package/runner/i18n_en.mjs +2 -1
- package/runner/remote_policy.mjs +7 -0
- package/runner/repo_read.mjs +6 -4
- package/runner/scheduler.mjs +3 -2
- package/web/admin.js +1 -1
- package/web/app.js +20 -2
- package/web/i18n.js +1 -1
- package/web/join.html +62 -30
- package/web/modern.css +1 -1
- package/web/modern.js +239 -46
|
@@ -30,6 +30,6 @@ description: "AI CoDiscuss 的主持技能,仅主持人调用,且须同时
|
|
|
30
30
|
|
|
31
31
|
怎么规划由你判断;只在会改变方向的关键歧义处向用户确认。派活写清谁做什么、做到什么程度,怎么拆、按什么步骤做交给成员——他们背后的软件自己会规划。执行性工作(读长文、写汇总、核对证据、跑测试)派给成员,你做判断、裁定与汇总,上下文与额度留给整个房间的推进。用户的倾向、成员意见一致都不等于已验证事实。
|
|
32
32
|
|
|
33
|
-
分派时参考 `room view` 的 `descriptions
|
|
33
|
+
分派时参考 `room view` 的 `descriptions`(用户写的各成员擅长与分工)。成员带 `external` 字段的是外部成员,在另一台电脑上运行:点名后可能要等对方同意才开始,对方拒绝或超时时请求带 `external_outcome` 并被取消;它只能读 `external.directories` 里的目录、提交自己的回答,不能派活。出图、改图优先派给能看图的本机软件成员,它能下载附件自查效果;没有 `image` 字段时请用户在“协作设置”添加生图卡片。
|
|
34
34
|
|
|
35
35
|
任务带 `scheduler_suggestions` 时,那是智能调度说明某条消息或交接为何交给你(附置信度),不是用户指令,也未核实:按其中的 `request_id`、`message_id` 先读原文再决定是否采纳,需要依据时 `state decision ROOM DECISION_ID`。`applied:false` 表示未自动生效,`actual_action:unverified` 表示结果尚未核验;没有记录编号时不假定模型给过建议。
|
|
@@ -34,6 +34,7 @@ description: "AI CoDiscuss 的通用参与技能,所有参与者(包括主
|
|
|
34
34
|
- 用 `codiscuss room …`、`codiscuss message …` 等;任务或用户指定了 CLI 路径就沿用,未安装时用 `python 路径/runner/discuss.py …`。裸 `codiscuss` 会启动服务,不要单独运行。用法查 `codiscuss --help` 或 `codiscuss schema 命令`。
|
|
35
35
|
- 任务凭据已绑定站点、房间、身份与本次执行:命令省略房间、`--as`、`--execution`、`--submission-id`,由 CLI 补齐。任务标明 `access_env: "DISCUSS_ACCESS_FILE"` 时连 `--access-file` 也省略,否则用任务的 `access_file`。下文命令里的 `ROOM`、`--as`、执行编号只在没有绑定凭据时填写。站点、房间和身份以任务或用户指定值为准,不从网页或聊天推测;文件权限以任务的项目与 `cwd` 为准,CLI 所在仓库不是讨论项目。
|
|
36
36
|
- 回答正文写成 UTF-8 草稿文件,用 `message post --body-file 草稿.md` 提交(需要摘要时草稿开头写 `---`、`summary: 摘要`、`---`)。
|
|
37
|
+
- **外部成员**(任务带 `external: true`):房间和项目都在另一台电脑上,本机 `cwd` 不是讨论项目。读项目只用 `codiscuss repo`:先 `repo ls` 看开放目录与序号,再 `repo ls|read|grep … --root 序号`;被拒(排除、超配额)就如实说明,不换路径绕过。房间命令只有读房间、读消息、提交回答,附件不可用;收窄运行时文件参数只能指向草稿目录、不能用标准输入。(对方只开放了这些,读取逐条记录在对方电脑。)
|
|
37
38
|
- 称呼与点名成员用显示名(`room view` 的 `members[].label`),`@`、`--to`、`--expert` 都写它;`name` 是成员 ID,不写进正文。引用他人观点写“显示名 + 编号”(如 `Codex #3262`)。普通成员的 `@` 只是引用,不唤醒、不派活;确实需要主持人处理(超出你的权限或职责)时 `@` 主持人,程序会在房间空闲后唤醒它。
|
|
38
39
|
|
|
39
40
|
## 阅读
|
package/README.md
CHANGED
|
@@ -110,6 +110,7 @@ Details: [Architecture](docs/en/architecture.md) · [Setup](docs/en/runner.md)
|
|
|
110
110
|
- **From a phone or tablet** — after connecting once and saving your usual projects on that computer, pair a phone or tablet with it once by scanning a QR code at the computer, then use the same site to create rooms whose agents that computer wakes. Folder paths stay on the computer. See [From other devices](docs/en/runner.md#from-other-devices).
|
|
111
111
|
- **From an AI chat** — ask a local agent to use the `discuss-host` and `discuss-participant` skills to create and host a room. See [From an AI chat](docs/en/runner.md#from-an-ai-chat).
|
|
112
112
|
- **Model APIs** — configure provider, base URL, protocol and model per member. See [API access](docs/en/runner.md#api-access).
|
|
113
|
+
- **Borrow an AI from another computer** — invite an agent running on someone else's computer (or another of yours) into your room as an external member: it reads only the project folders you open, answers in the room, and you can see every file it read and revoke it at any time. Both computers need CoDiscuss, and your computer must be connected to a hosted site with the relay and stay on. What it reads reaches that computer's model provider. The default trust levels rely on limiting the agent to CoDiscuss commands, supported for Claude Code (tested on version 2.1.325) and model APIs (backed by unit tests); Codex and Antigravity do not support it. See [External members](docs/en/runner.md#external-members-borrowing-an-ai-from-another-computer).
|
|
113
114
|
|
|
114
115
|
## Deployment
|
|
115
116
|
|
package/README.zh-CN.md
CHANGED
|
@@ -104,6 +104,7 @@ flowchart LR
|
|
|
104
104
|
- **手机或平板建房**:在电脑上连接一次并保存常用项目后,在电脑前扫码配对一次手机或平板,之后用同一网站即可新建房间,由那台电脑唤醒 AI,项目路径只留在电脑上。见 [其他设备经已配对电脑建房](docs/runner.md#其他设备经已配对电脑建房)。
|
|
105
105
|
- **从 AI 对话发起**:让本地 AI 使用 `discuss-host` 和 `discuss-participant` 技能建房并主持。见 [从 AI 对话发起](docs/runner.md#从-ai-对话发起)。
|
|
106
106
|
- **模型 API**:按成员配置供应商、Base URL、请求协议与模型。见 [API 接入](docs/runner.md#api-接入)。
|
|
107
|
+
- **借用另一台电脑上的 AI**:邀请别人电脑(或你自己另一台电脑)上的 AI 作为外部成员进入你的房间,它只读你开放的项目目录、在房间里回答,你能看到它读过的每个文件并随时撤销。两台电脑都要安装共议,你的电脑须连接带中转的线上网站并保持开机;它读到的内容会发送给对方的模型服务商。默认的信任等级依赖把对方 AI 限制为只用共议命令,目前支持 Claude Code(已在 2.1.325 版实测)与模型 API(以单元测试为据),Codex 与 Antigravity 不支持。见 [外部成员](docs/runner.md#外部成员借用另一台电脑上的-ai)。
|
|
107
108
|
|
|
108
109
|
## 部署
|
|
109
110
|
|
package/backend/free_room.py
CHANGED
|
@@ -941,7 +941,8 @@ def recent_executions(connection, room_id, span=None):
|
|
|
941
941
|
(SELECT MAX(answer_id) FROM member_requests WHERE execution_id=e.id) AS answer_id,
|
|
942
942
|
(SELECT MIN(message_id) FROM member_requests WHERE execution_id=e.id
|
|
943
943
|
OR id IN (SELECT request_id FROM retried_requests WHERE execution_id=e.id)) AS request_message_id,
|
|
944
|
-
|
|
944
|
+
-- Work on several requests started after the latest of them, so its card shows under the last message it answers.
|
|
945
|
+
(SELECT MAX({LAYOUT_AFTER_SQL}) FROM member_requests r WHERE r.execution_id=e.id
|
|
945
946
|
OR r.id IN (SELECT request_id FROM retried_requests WHERE execution_id=e.id)) AS layout_after,
|
|
946
947
|
EXISTS(SELECT 1 FROM retried_requests WHERE execution_id=e.id) AS retried,
|
|
947
948
|
(SELECT MIN({LAYOUT_AT_SQL}) FROM member_requests r WHERE r.execution_id=e.id) AS layout_at,
|
|
@@ -2669,6 +2670,10 @@ def stop_member_work(connection, member_id, reason, cancel_reason, keep_pending=
|
|
|
2669
2670
|
"""
|
|
2670
2671
|
for row in connection.execute("SELECT id FROM member_executions WHERE member_id=? AND status IN ('dispatched','started')",
|
|
2671
2672
|
(member_id,)).fetchall():
|
|
2673
|
+
# The interrupted turn's card stays under the message it was answering, marked stopped, after its requests move on.
|
|
2674
|
+
if requeue:
|
|
2675
|
+
connection.execute("INSERT OR IGNORE INTO retried_requests (execution_id,request_id) SELECT ?,id FROM member_requests WHERE execution_id=?",
|
|
2676
|
+
(row["id"], row["id"]))
|
|
2672
2677
|
finish_execution(connection, row["id"], "cancelled", reason, "pending" if requeue else "cancelled", "" if requeue else cancel_reason)
|
|
2673
2678
|
if not keep_pending:
|
|
2674
2679
|
record_cancel_reasons(connection, "member_id=? AND status='pending'", (member_id,), cancel_reason)
|
package/backend/schema.sql
CHANGED
|
@@ -350,8 +350,8 @@ CREATE TABLE IF NOT EXISTS execution_failures (
|
|
|
350
350
|
failed_at INTEGER NOT NULL,
|
|
351
351
|
reset_at INTEGER NOT NULL DEFAULT 0
|
|
352
352
|
);
|
|
353
|
-
-- The requests
|
|
354
|
-
-- message
|
|
353
|
+
-- The requests an execution carried before they moved to another: a failed one the owner retried, or a turn the owner
|
|
354
|
+
-- interrupted by sending a message at once. Its card keeps its place under their message. Not part of backups.
|
|
355
355
|
CREATE TABLE IF NOT EXISTS retried_requests (
|
|
356
356
|
execution_id INTEGER NOT NULL REFERENCES member_executions(id) ON DELETE CASCADE,
|
|
357
357
|
request_id INTEGER NOT NULL REFERENCES member_requests(id) ON DELETE CASCADE,
|
package/backend/server.py
CHANGED
|
@@ -213,7 +213,7 @@ LEFT JOIN message_withdrawals AS withdrawn ON withdrawn.message_id=messages.id
|
|
|
213
213
|
LEFT JOIN message_summaries AS summaries ON summaries.message_id=messages.id
|
|
214
214
|
LEFT JOIN message_timings AS timing ON timing.message_id=messages.id
|
|
215
215
|
LEFT JOIN (SELECT r.answer_id, MIN(r.execution_id) AS execution_id, MIN(r.message_id) AS request_message_id,
|
|
216
|
-
|
|
216
|
+
MAX(""" + LAYOUT_AFTER_SQL + """) AS layout_after, MIN(""" + LAYOUT_AT_SQL + """) AS layout_at
|
|
217
217
|
FROM member_requests r WHERE r.answer_id IS NOT NULL AND r.execution_id IS NOT NULL GROUP BY r.answer_id) AS answered
|
|
218
218
|
ON answered.answer_id=messages.id"""
|
|
219
219
|
# Messages the owner took back leave AI reads; the page asks for them with withdrawn=include to keep them in place.
|
package/docs/architecture.md
CHANGED
|
@@ -49,6 +49,7 @@ AI 平台(Codex、Claude、Antigravity(界面显示为 Gemini)、DeepSeek
|
|
|
49
49
|
- CLI 通过纯文本页面 `/r/ROOM_ID` 按需读取,不一次性加载全部历史。
|
|
50
50
|
- 网站目前没有按用户隔离房间数据。独立观点阶段会临时限制匿名及普通成员读取后续观点,并要求完整导出使用房主或主持凭据;这不是整站访问控制,详见 [安全说明](../.github/SECURITY.md)。
|
|
51
51
|
- 本机路径、软件配置、会话绑定与 API 密钥只保存在本机服务目录。
|
|
52
|
+
- 外部成员(另一台电脑上的 AI)有自己的成员凭证和密钥,每条请求都带签名、经中转端到端加密;房间后端只允许它读本房间、领取点名给它的请求、提交自己的回答,读项目由本机服务的只读引擎按开放目录与固定排除执行,每次读取先记录再返回。见 [外部成员](runner.md#外部成员借用另一台电脑上的-ai)。
|
|
52
53
|
|
|
53
54
|
## 技术栈
|
|
54
55
|
|
package/docs/en/architecture.md
CHANGED
|
@@ -47,6 +47,7 @@ An AI platform (Codex, Claude, Antigravity (shown as Gemini), DeepSeek, Qwen, Gr
|
|
|
47
47
|
- The CLI reads through plain-text pages under `/r/ROOM_ID`, on demand rather than loading the full history.
|
|
48
48
|
- Room data is not isolated by user. During independent opinions, anonymous readers and ordinary members temporarily cannot read later opinions; full export requires the owner or host credential. This is not site-wide access control. See the [security policy](../../.github/SECURITY.md).
|
|
49
49
|
- Local paths, tool configuration, session bindings and API keys stay in the local service directory.
|
|
50
|
+
- An external member (an AI on another computer) has its own member credential and key; every request is signed and end-to-end encrypted through the relay. The room backend lets it only read its room, claim requests addressed to it and post its own answers; project reads go through the local service's read-only engine, limited to the opened folders minus fixed exclusions, and each read is recorded before anything is returned. See [External members](runner.md#external-members-borrowing-an-ai-from-another-computer).
|
|
50
51
|
|
|
51
52
|
## Tech Stack
|
|
52
53
|
|
package/docs/en/runner.md
CHANGED
|
@@ -75,11 +75,45 @@ It binds this computer to the site with a one-time token: generated automaticall
|
|
|
75
75
|
|
|
76
76
|
**Pairing** — each phone, tablet or other computer pairs once, in front of this computer; no account or password. On the local page open Settings → Account → Paired devices and choose "Add device" to show a QR code and a 12-character code (valid 2 minutes, single use). Scan the QR code with the new device, or enter the code in the hosted site's settings, then confirm with the device's own face, fingerprint or PIN, which also creates its passkey. The browser keeps a non-exportable device key; the website accepts only devices in the list the computer signs. Devices can be revoked from the computer or another paired device; clearing browser data removes the key and the device must pair again.
|
|
77
77
|
|
|
78
|
-
Once paired, the "协作房间" directory lists the rooms on the computer, the same as on the computer itself: send messages and attachments, manage members, export backups, with live updates. Conversations stay on the computer; the website only passes encrypted content. Project paths and keys never leave the computer.
|
|
78
|
+
Once paired, the "协作房间" directory lists the rooms on the computer, the same as on the computer itself: send messages and attachments, manage members, export backups, with live updates, and issue [external member](#external-members-borrowing-an-ai-from-another-computer) invites. Conversations stay on the computer; the website only passes encrypted content. Project paths and keys never leave the computer.
|
|
79
79
|
|
|
80
80
|
- Nothing is listed while the computer is off or codiscuss is not running; the directory heading says the computer is not connected or offline, and the page connects on its own once the computer is back.
|
|
81
81
|
- When the computer does not answer in time, the page reports the result as unconfirmed and never resends on its own; check the room before retrying.
|
|
82
82
|
|
|
83
|
+
### External Members: Borrowing an AI from Another Computer
|
|
84
|
+
|
|
85
|
+
Invite an AI on another computer into your room: it reads only the project files you open to it and answers in the room, while it keeps running on its own computer. Below, "your computer" holds the room and the project, and "the other computer" sends the AI; it works the same between two of your own computers.
|
|
86
|
+
|
|
87
|
+
**Before you start**: both computers install CoDiscuss and run the local service; your computer is [connected to a hosted site](#from-a-hosted-site) with the relay deployed, and the other side reaches your room through that site's encrypted relay. While your computer is off or codiscuss is not running, the other side gets nothing.
|
|
88
|
+
|
|
89
|
+
**Invite (your computer)**:
|
|
90
|
+
1. In the right panel's "Invite members" dialog, choose "Another computer" on the "External" row, then pick what it may do (discussion only, or can read project), which project folders to open (only folders this room already has), and how long it stays (1 hour, today or 3 days).
|
|
91
|
+
2. Choose "Create invitation" and send the link, QR code or pairing code. An invite works once within 10 minutes and can be revoked from the list below it. Paired phones and tablets can issue invites too.
|
|
92
|
+
3. Whoever redeems it becomes a member right away; **there is no approval step**. A notice in the lower right says someone joined by invite; if it was not your invite, choose "Revoke" in its member menu at once.
|
|
93
|
+
4. `@` it in the room; its answers appear in the conversation as usual. "Read log and access" in the member menu lists every file it read (recorded by your computer) and lets you extend, downgrade to discussion only, or revoke; revoking takes effect immediately.
|
|
94
|
+
|
|
95
|
+
**Join (the other computer)**:
|
|
96
|
+
1. Open the link and choose "Join with CoDiscuss on this computer" to go to the local page; or choose "+" under "Invited rooms" in the left panel and paste the link or pairing code; or run `codiscuss join <link or code> --adapter TOOL`. A pairing code also needs the inviting site's address.
|
|
97
|
+
2. Pick the AI, model and effort, and a trust level:
|
|
98
|
+
|
|
99
|
+
| Trust level | When named | Local AI |
|
|
100
|
+
| --- | --- | --- |
|
|
101
|
+
| Default | Woken only after you approve in the right panel each time; declining, or 15 minutes without an answer, shows "Not accepted by the other side" in the room | Limited to CoDiscuss commands, running in an empty temporary folder |
|
|
102
|
+
| Full loan | Woken directly, within a wake count and time limit (20 wakes and 1 day by default); once used up it goes back to asking each time | Same as above |
|
|
103
|
+
| Trusted computer | Woken directly, no limits; later invites from that computer are accepted at this level | Unrestricted: local files and network tools available |
|
|
104
|
+
|
|
105
|
+
You can change the level and limits later in the invited room's right panel, or pause or leave; `codiscuss invited` offers the same commands. Trusted computer can be set only on the other computer itself; a paired phone or tablet can choose only Default or Full loan. The local service does the waking, so keep codiscuss running.
|
|
106
|
+
|
|
107
|
+
**Supported tools**: Default and Full loan need a tool that can be limited to CoDiscuss commands. Claude Code (background runs) supports it, tested on version 2.1.325 (other versions not individually checked), and so do model APIs, backed by unit tests; Codex and Antigravity do not support it and can serve only at the Trusted computer level; desktop apps cannot join as external members.
|
|
108
|
+
|
|
109
|
+
**What it can read**: files Git tracks in the opened folders (including uncommitted changes, skipping files in `.gitignore`); in a folder without Git, every file except generated folders such as `node_modules`. `.env`-style files, private keys and certificates, credential files, `.git`, and `data/` at the root of an opened folder are never opened; links pointing outside the folder are refused. It can only read: no writing files or running commands, and no private chats, other rooms or local paths. Each read returns at most 128 KiB; by default 4 MiB per hour, 64 MiB in total and 600 reads per hour.
|
|
110
|
+
|
|
111
|
+
**Keep in mind**:
|
|
112
|
+
- What it reads cannot be taken back: it stays in the other AI's session and reaches the other side's model provider; revoking only stops later reads.
|
|
113
|
+
- If someone else uses an invite first within its 10 minutes, they become a member, and only revoking after the notice fixes it. Send invites only to people you trust.
|
|
114
|
+
- A pairing code carries no key fingerprint for your computer, so the other side cannot check it reached you; prefer the link or QR code.
|
|
115
|
+
- At Trusted computer the other AI is unrestricted, and content in your room may lead it to read files on that computer; use it only between your own computers.
|
|
116
|
+
|
|
83
117
|
## API Access
|
|
84
118
|
|
|
85
119
|
API members do their room work in [Pi](https://github.com/earendil-works/pi), which codiscuss installs during setup into its service folder. Its version is the one this codiscuss release was tested with and changes only when codiscuss is upgraded (a new version is used only once it starts correctly). To use your own build, point the `CODISCUSS_PI_CLI` environment variable at its `dist/bundle/cli.js`. Pi gets only the room and file tools codiscuss hands it and ignores your own Pi configuration. Each API member keeps its own session, so it remembers earlier work and its session rewinds with the conversation. Several API members can use models from different providers at the same time. Private chats do not go through Pi.
|
package/docs/runner.md
CHANGED
|
@@ -87,7 +87,7 @@ codiscuss local connect https://你的站点
|
|
|
87
87
|
|
|
88
88
|
### 在其他设备上远程控制
|
|
89
89
|
|
|
90
|
-
手机或平板与电脑配对后,只要这台电脑开机并运行 codiscuss,就能像在电脑上一样操作:建房、邀请与请回成员、翻开卡片设置软件、模型和权限、录入 API
|
|
90
|
+
手机或平板与电脑配对后,只要这台电脑开机并运行 codiscuss,就能像在电脑上一样操作:建房、邀请与请回成员、翻开卡片设置软件、模型和权限、录入 API 密钥、管理常用项目等。这些操作由网站转交给电脑执行,内容端到端加密,网站只经手密文。还可以签发[外部成员](#外部成员借用另一台电脑上的-ai)邀请。
|
|
91
91
|
|
|
92
92
|
其他设备能用的目录由电脑决定:只能选择**常用项目**及其中的文件夹。点项目目录栏末尾的文件夹按钮,可以逐层浏览常用项目中的文件夹(只显示文件夹名)。想让其他设备使用更大的范围,就在电脑上把上级目录加为常用项目。以下设置只能在电脑上修改:软件位置、常用项目范围之外的目录。转交的命令只执行一次,发出 10 分钟后作废,所以手机时间需要大致准确。
|
|
93
93
|
|
|
@@ -111,6 +111,40 @@ codiscuss local connect https://你的站点
|
|
|
111
111
|
- 电脑关机或 codiscuss 未运行时看不到房间,目录标题提示“电脑未连接”或“电脑离线”;电脑上线后页面自动连上。
|
|
112
112
|
- 电脑没有及时答复时,页面提示“结果待确认”,不会自动重发;请先查看房间确认是否已生效。
|
|
113
113
|
|
|
114
|
+
### 外部成员:借用另一台电脑上的 AI
|
|
115
|
+
|
|
116
|
+
请另一台电脑上的 AI 进你的房间帮忙:它只读你开放的项目文件,在房间里回答,自己不在你的电脑上运行。下文称有房间和项目的电脑为“你的电脑”,派出 AI 的电脑为“对方电脑”;自己的两台电脑之间同样适用。
|
|
117
|
+
|
|
118
|
+
**前提**:两台电脑都安装共议并运行本机服务;你的电脑已[连接线上网站](#线上网页连接本机)并部署了中转,对方经这个网站的加密中转访问你的房间。你的电脑关机或 codiscuss 未运行时,对方什么也拿不到。
|
|
119
|
+
|
|
120
|
+
**邀请(你的电脑)**:
|
|
121
|
+
1. 右栏“邀请成员”弹窗的“外部”一行点“另一台电脑”,选择能做什么(只讨论,或可读项目)、开放哪些项目目录(只能选本房间已有的)、有效期(1 小时、今天或 3 天)。
|
|
122
|
+
2. 点“生成邀请”,把链接、二维码或配对码发给对方。邀请 10 分钟内有效、只能用一次,可在下方列表撤销。已配对的手机或平板也能签发邀请。
|
|
123
|
+
3. 对方加入后直接成为成员,**没有批准步骤**:右下角会提示有人经邀请加入,不是你邀请的就立即在成员菜单里撤销授权。
|
|
124
|
+
4. 在房间里 `@` 它,回答照常出现在对话中。成员菜单的“读取记录与权限”列出它读过的每个文件(由你的电脑记录),可延长、降为只讨论或撤销授权,撤销立即生效。
|
|
125
|
+
|
|
126
|
+
**加入(对方电脑)**:
|
|
127
|
+
1. 打开链接,点“用本机共议加入”跳到本机网页;或在左栏“被邀请的房间”点“+”粘贴链接或配对码;命令行为 `codiscuss join <链接或配对码> --adapter 软件`。配对码另需填你的线上站点地址。
|
|
128
|
+
2. 选派哪个 AI、模型与强度,以及信任等级:
|
|
129
|
+
|
|
130
|
+
| 信任等级 | 被点名后 | 本机 AI |
|
|
131
|
+
| --- | --- | --- |
|
|
132
|
+
| 默认 | 每次须你在右栏同意才唤醒;拒绝或 15 分钟未处理,对方看到“对方未同意” | 只能用共议命令,在空的临时目录运行 |
|
|
133
|
+
| 完全借用 | 直接唤醒,受次数与期限上限(默认 20 次、1 天),用完退回每次询问 | 同上 |
|
|
134
|
+
| 信任设备 | 直接唤醒,不设上限;之后这台电脑发来的邀请按此等级直接接受 | 不受限,可用本机文件与联网工具 |
|
|
135
|
+
|
|
136
|
+
等级与上限之后可在被邀请房间的右栏调整,也可暂停或退出;`codiscuss invited` 有同样的命令。“信任设备”只能在对方电脑本机设置,从已配对的手机或平板只能选“默认”或“完全借用”。唤醒由本机服务完成,请保持 codiscuss 运行。
|
|
137
|
+
|
|
138
|
+
**支持的软件**:默认与完全借用要求软件能限制为只用共议命令,目前支持 Claude Code(后台运行,已在 2.1.325 版实测,其他版本未逐一验证)与模型 API(以单元测试为据);Codex、Antigravity 不支持收窄,只能在“信任设备”等级下服务;桌面 App 不能作为外部成员加入。
|
|
139
|
+
|
|
140
|
+
**能读到什么**:开放目录中 Git 管理的文件(含未提交的改动,忽略 `.gitignore` 里的文件),非 Git 目录则是除 `node_modules` 等生成目录外的文件。`.env` 一类文件、私钥与证书、凭据文件、`.git`、开放目录根下的 `data/` 永不开放;指向目录外的链接被拒绝。它只能读,不能写文件或执行命令,也看不到私聊、其他房间和本机路径。每次最多读 128 KiB,默认每小时 4 MiB、总量 64 MiB、每小时 600 次。
|
|
141
|
+
|
|
142
|
+
**须知**:
|
|
143
|
+
- 读出去的内容收不回:它会留在对方 AI 的会话里,并发送给对方的模型服务商;撤销只阻止以后的读取。
|
|
144
|
+
- 邀请若在 10 分钟内被别人抢先使用,对方即成为成员,只能靠你看到提示后撤销。只把邀请发给信任的人。
|
|
145
|
+
- 配对码不含你电脑的密钥指纹,对方核对不了连到的是不是你;能用链接或二维码时优先用。
|
|
146
|
+
- “信任设备”等级下对方的 AI 不受限,你房间里的内容可能诱导它读对方电脑上的文件,只在自己的电脑之间使用。
|
|
147
|
+
|
|
114
148
|
## API 接入
|
|
115
149
|
|
|
116
150
|
API 成员在房间里的工作由 [Pi](https://github.com/earendil-works/pi) 运行,codiscuss 在安装时把它装进服务目录,不用自己安装。Pi 的版本固定为这一版 codiscuss 测试过的版本,随 codiscuss 升级而更新(换版本前先确认新版能正常启动,否则继续用原来的)。要用自己构建的 Pi,用环境变量 `CODISCUSS_PI_CLI` 指向它的 `dist/bundle/cli.js`。Pi 只使用 codiscuss 交给它的房间与文件工具,不读你自己的 Pi 配置;每位 API 成员有自己的会话,记得之前做过的事,回退对话时它的会话同样回退。多位 API 成员可以同时使用不同厂商的模型。私聊不经 Pi。
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"设置": "Settings",
|
|
35
35
|
"查看": "View",
|
|
36
36
|
"撤销": "Undo",
|
|
37
|
-
"关闭提示": "Dismiss",
|
|
38
37
|
"新成员由程序按本机软件配置启动,或由你手动启动。": "New members are started by the local service from your software settings, or by you manually.",
|
|
39
38
|
"已配置 API": "API configured",
|
|
40
39
|
"已配置本机软件": "Local software configured",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"被邀请的房间": "Invited rooms",
|
|
4
4
|
"只讨论": "Discussion only",
|
|
5
5
|
"只看房间里点名给它的请求并回答,不读项目文件": "Sees only the requests that name it and answers them; reads no project files",
|
|
6
|
-
"
|
|
6
|
+
"可读项目": "Can read project",
|
|
7
7
|
"另可列目录、读文件、搜索所选目录;不能写入或执行": "Can also list, read and search the chosen directories; cannot write or run anything",
|
|
8
8
|
"只读项目": "Read-only project",
|
|
9
9
|
"1 小时": "1 hour",
|
|
@@ -51,11 +51,7 @@
|
|
|
51
51
|
"{level} · 成员 {duration} · {left}内兑换": "{level} · member for {duration} · redeem within {left}",
|
|
52
52
|
"立即生效:之后的请求与读取一律被拒,未完成的执行作废。": "Takes effect at once: later requests and reads are refused, and unfinished runs are voided.",
|
|
53
53
|
"已经读出去的内容收不回,会留在对方 AI 的会话里。": "What was already read cannot be taken back; it stays in the other AI's session.",
|
|
54
|
-
"{count} KiB": "{count} KiB",
|
|
55
|
-
"{count} 字节": "{count} bytes",
|
|
56
54
|
"外部成员 · {name}": "External member · {name}",
|
|
57
|
-
"开放目录:{list}": "Open directories: {list}",
|
|
58
|
-
"已读 {used} / {limit},本小时 {hour} / {hour_limit};被拒 {denied} 次": "Read {used} / {limit}, this hour {hour} / {hour_limit}; {denied} refused",
|
|
59
55
|
"调整": "Adjust",
|
|
60
56
|
"延长": "Extend",
|
|
61
57
|
"已延长": "Extended",
|
|
@@ -73,7 +69,6 @@
|
|
|
73
69
|
"{name} 经邀请加入了房间(外部 · {level});不是你邀请的就在成员菜单里撤销": "{name} joined the room by invitation ({level}); if you did not invite it, revoke it from its member menu",
|
|
74
70
|
"邀请另一台电脑上的 AI 只读本房间项目": "Invite an AI on another computer to read this room's project",
|
|
75
71
|
"等你同意": "Waiting for you",
|
|
76
|
-
"已唤醒": "Started",
|
|
77
72
|
"你未同意": "You declined",
|
|
78
73
|
"超时未确认": "Timed out",
|
|
79
74
|
"已达借用上限,改为等你同意": "Loan limit reached; waiting for your approval instead",
|
|
@@ -86,7 +81,9 @@
|
|
|
86
81
|
"对方": "The other side",
|
|
87
82
|
"你的 AI": "Your AI",
|
|
88
83
|
"信任等级已更新": "Trust level updated",
|
|
89
|
-
"已唤醒 {count}{limit} 次": "Started {count}{limit} times",
|
|
84
|
+
"已唤醒 {count} / {limit} 次": "Started {count} of {limit} times",
|
|
85
|
+
"已唤醒 1 次": "Started once",
|
|
86
|
+
"已唤醒 {count} 次": "Started {count} times",
|
|
90
87
|
"在线": "Online",
|
|
91
88
|
"对方电脑不在线": "The other computer is offline",
|
|
92
89
|
"通信出错": "Connection error",
|
|
@@ -119,7 +116,7 @@
|
|
|
119
116
|
"连接本机服务后查看": "Connect the local service to see them",
|
|
120
117
|
"别人邀请你的 AI 加入他的房间后显示在这里": "Rooms you are invited to appear here",
|
|
121
118
|
"只讨论:只看点名给它的请求并回答": "Discussion only: sees only the requests that name it and answers them",
|
|
122
|
-
"
|
|
119
|
+
"可读项目:另可读对方开放的目录,不能写入或执行": "Can read project: can also read the opened directories; cannot write or run anything",
|
|
123
120
|
"加入共议房间 · AI CoDiscuss": "Join a CoDiscuss room · AI CoDiscuss",
|
|
124
121
|
"没有邀请内容": "No invitation here",
|
|
125
122
|
"请打开对方发来的完整链接,或在自己的共议里输入配对码。": "Open the complete link you were sent, or enter the pairing code in your own CoDiscuss.",
|
|
@@ -158,5 +155,35 @@
|
|
|
158
155
|
"托管的已有会话沿用它自己的权限,无法收窄": "a taken-over existing session keeps its own permissions and cannot be narrowed",
|
|
159
156
|
"不能收窄": "cannot be narrowed",
|
|
160
157
|
"这个 AI 软件无法限制为只用共议命令({reason}),只能在“信任设备”等级下服务。": "This AI software cannot be limited to CoDiscuss commands ({reason}), so it can serve only at the \"Trusted computer\" level.",
|
|
161
|
-
"这个软件不能限制为只用共议命令({reason}),只能在“信任设备”等级下服务;其他等级下被点名时不会启动。": "This software cannot be limited to CoDiscuss commands ({reason}), so it can serve only at the \"Trusted computer\" level; at other levels it will not start when named."
|
|
158
|
+
"这个软件不能限制为只用共议命令({reason}),只能在“信任设备”等级下服务;其他等级下被点名时不会启动。": "This software cannot be limited to CoDiscuss commands ({reason}), so it can serve only at the \"Trusted computer\" level; at other levels it will not start when named.",
|
|
159
|
+
"被对方撤销": "revoked by the other side",
|
|
160
|
+
"你已退出": "you left",
|
|
161
|
+
"已结束:{reason}": "Ended: {reason}",
|
|
162
|
+
"撤销邀请": "Revoke",
|
|
163
|
+
"撤销授权": "Revoke",
|
|
164
|
+
"已结束,未回答": "Ended without an answer",
|
|
165
|
+
"这台电脑没有可用的 AI 程序,未启动": "No usable AI program on this computer; not started",
|
|
166
|
+
"成员资格已结束": "Membership ended",
|
|
167
|
+
"这台电脑保留这条记录与历史;要再参加,请对方重新邀请。": "This computer keeps the record and its history; to take part again, ask them for a new invitation.",
|
|
168
|
+
"结束于": "Ended at",
|
|
169
|
+
"恢复唤醒": "Resume",
|
|
170
|
+
"正文在对方房间,已无法读取": "The text is in their room and can no longer be read",
|
|
171
|
+
"只能在这台电脑本机设置": "Can only be set on this computer itself",
|
|
172
|
+
"这台电脑还没有可派出的 AI 软件,请先在设置里配置。": "This computer has no AI software to send yet. Set one up in Settings first.",
|
|
173
|
+
"这个链接已过期,请让对方重新生成邀请。": "This link has expired. Ask them to create a new invitation.",
|
|
174
|
+
"无法读取这个邀请链接": "This invitation link can't be read",
|
|
175
|
+
"链接可能被截断或改动过。请让对方重新复制完整链接发给你。": "The link may have been cut off or changed. Ask them to copy the complete link and send it again.",
|
|
176
|
+
"也可以在自己共议左栏“被邀请的房间”里输入对方给的配对码。": "You can also enter the pairing code they gave you under \"Invited rooms\" in your own CoDiscuss sidebar.",
|
|
177
|
+
"对方用自己电脑上的 AI 加入,只读本房间开放的内容": "They join with the AI on their own computer and only read what this room opens",
|
|
178
|
+
"用量": "Usage",
|
|
179
|
+
"这位外部成员已结束,不能再调整;需要时重新邀请。": "This external member has ended and can no longer be changed; invite again if needed.",
|
|
180
|
+
"正在读取读取记录": "Loading the read log",
|
|
181
|
+
"对方电脑在时限内没有确认唤醒": "Their computer did not confirm the run in time",
|
|
182
|
+
"对方电脑拒绝了这次唤醒": "Their computer declined this run",
|
|
183
|
+
"仅讨论": "Talk only",
|
|
184
|
+
"只读文件": "Read",
|
|
185
|
+
"剩 {count} 天": "{count}d",
|
|
186
|
+
"剩 {count} 小时": "{count}h",
|
|
187
|
+
"剩 {count} 分": "{count}m",
|
|
188
|
+
"{used} / {limit} · 本小时 {hour} / {hour_limit} · 被拒 {denied} 次": "{used} / {limit} · this hour {hour} / {hour_limit} · {denied} refused"
|
|
162
189
|
}
|
|
@@ -247,6 +247,7 @@
|
|
|
247
247
|
"还没有描述": "No description yet",
|
|
248
248
|
"会话自行注册后才算到场。": "The session is present only after it registers itself.",
|
|
249
249
|
"设置": "Settings",
|
|
250
|
+
"网络不稳,第 {value1} 次重试…": "Connection unstable, retry {value1}…",
|
|
250
251
|
"{value1} 启动方式": "How {value1} starts",
|
|
251
252
|
"编辑 {value1} 的名称与描述": "Edit {value1}'s name and description",
|
|
252
253
|
"编辑 {value1} 的专属提示词": "Edit {value1}'s member prompt",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ai_co_discuss",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.66",
|
|
4
4
|
"bin": {
|
|
5
5
|
"codiscuss": "runner/codiscuss.mjs"
|
|
6
6
|
},
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dev": "npm run build && wrangler pages dev --ip 127.0.0.1 --port 8787",
|
|
9
9
|
"db:local": "wrangler d1 execute DB --local --file backend/schema.sql",
|
|
10
10
|
"db:remote": "wrangler d1 execute DB --remote --file backend/schema.sql",
|
|
11
|
-
"check": "node --check backend/worker.mjs && node --check web/app.js && node --check runner/account_space.mjs && node --check runner/admin_account.mjs && node --check runner/admin_panel.mjs && node --check runner/admin_cli.mjs && node --check runner/os_users.mjs && node --check runner/tray.mjs && node --check runner/launcher.mjs && node --check runner/codiscuss.mjs && node --check runner/discussion_api.mjs && node --check runner/discussion_launch.mjs && node --check runner/discussion_local.mjs && node --check runner/discussion_runner.mjs && node --check runner/discussion_service.mjs && node --check runner/discussion_setup.mjs && node --check runner/discussion_sidecar.mjs && node --check runner/discussion_skills.mjs && node --check runner/discussion_tui.mjs && node --check runner/execution_progress.mjs && node --check runner/expert_prompts.mjs && node --check runner/files.mjs && node --check runner/free_runner.mjs && node --check runner/remote_launch.mjs && node --check runner/remote_policy.mjs && node --check runner/device_auth.mjs && node --check runner/webauthn.mjs && node --check runner/scheduler.mjs && node --check runner/session_driver.mjs && node --check runner/workflows.mjs && node --check runner/workflow_flow.mjs && node --check runner/weixin.mjs && node --check runner/adapters/antigravity_app.mjs && node --check runner/adapters/antigravity_cli.mjs && node --check runner/adapters/antigravity_sidecar.mjs && node --check runner/adapters/api.mjs && node --check runner/adapters/claude.mjs && node --check runner/adapters/cli.mjs && node --check runner/adapters/codex_app.mjs && node --check runner/adapters/codex_app_client.mjs && node --check runner/adapters/codex_cli.mjs && node --check runner/adapters/common.mjs && node --check runner/adapters/index.mjs && node --check runner/adapters/profiles.mjs",
|
|
11
|
+
"check": "node --check backend/worker.mjs && node --check web/app.js && node --check runner/account_space.mjs && node --check runner/admin_account.mjs && node --check runner/admin_panel.mjs && node --check runner/admin_cli.mjs && node --check runner/os_users.mjs && node --check runner/tray.mjs && node --check runner/launcher.mjs && node --check runner/codiscuss.mjs && node --check runner/discussion_api.mjs && node --check runner/discussion_launch.mjs && node --check runner/discussion_local.mjs && node --check runner/discussion_runner.mjs && node --check runner/discussion_service.mjs && node --check runner/discussion_setup.mjs && node --check runner/discussion_sidecar.mjs && node --check runner/discussion_skills.mjs && node --check runner/discussion_tui.mjs && node --check runner/execution_progress.mjs && node --check runner/expert_prompts.mjs && node --check runner/files.mjs && node --check runner/free_runner.mjs && node --check runner/remote_launch.mjs && node --check runner/external_client.mjs && node --check runner/external_gateway.mjs && node --check runner/repo_read.mjs && node --check runner/remote_policy.mjs && node --check runner/device_auth.mjs && node --check runner/webauthn.mjs && node --check runner/scheduler.mjs && node --check runner/session_driver.mjs && node --check runner/workflows.mjs && node --check runner/workflow_flow.mjs && node --check runner/weixin.mjs && node --check runner/adapters/antigravity_app.mjs && node --check runner/adapters/antigravity_cli.mjs && node --check runner/adapters/antigravity_sidecar.mjs && node --check runner/adapters/api.mjs && node --check runner/adapters/claude.mjs && node --check runner/adapters/cli.mjs && node --check runner/adapters/codex_app.mjs && node --check runner/adapters/codex_app_client.mjs && node --check runner/adapters/codex_cli.mjs && node --check runner/adapters/common.mjs && node --check runner/adapters/index.mjs && node --check runner/adapters/profiles.mjs",
|
|
12
12
|
"runner": "node runner/discussion_runner.mjs",
|
|
13
13
|
"service": "node runner/discussion_service.mjs",
|
|
14
14
|
"build:ui": "vite build --config frontend/vite.config.mjs --mode i18n && vite build --config frontend/vite.config.mjs --mode markdown &&vite build --config frontend/vite.config.mjs --mode backup && vite build --config frontend/vite.config.mjs --mode office && vite build --config frontend/vite.config.mjs --mode admin && vite build --config frontend/vite.config.mjs",
|
|
@@ -201,13 +201,15 @@ export function claude_permissions(config, task) {
|
|
|
201
201
|
* A task confined to the codiscuss subcommands (`task.tool_lockdown`): only Bash / PowerShell running those commands,
|
|
202
202
|
* Read on the skills, the drafts and this member's own runtime folder, and Edit on the drafts. `--restricted` drops the
|
|
203
203
|
* user's settings and confines the file tools to these working directories, `--safe-mode` leaves out CLAUDE.md, memory,
|
|
204
|
-
* plugins, hooks and MCP, and `dontAsk` refuses anything not listed.
|
|
205
|
-
*
|
|
204
|
+
* plugins, hooks and MCP, and `dontAsk` refuses anything not listed. `--permission-prompts none` refuses whatever would
|
|
205
|
+
* still ask: with CLAUDE_CODE_SUBPROCESS_ENV_SCRUB set, Claude Code 2.1.325 turns `dontAsk` back into `default`. The
|
|
206
|
+
* member's project, the room's other directories and the owner's own allowed tools are ignored. Measured on Claude
|
|
207
|
+
* Code 2.1.325, 2026-11-16 (.dev/plans/远程协作与多人房间/VERIFY_浏览器验收.md, “收窄实测”).
|
|
206
208
|
*/
|
|
207
209
|
export function claude_lockdown(task) {
|
|
208
210
|
const readable = [task.member_directory, task.draft_directory, ...(task.skill_directories || [])].filter(Boolean);
|
|
209
211
|
const commands = TASK_SUBCOMMANDS.flatMap(command => [`Bash(codiscuss ${command} *)`, `PowerShell(codiscuss ${command} *)`]);
|
|
210
|
-
return ['--restricted', '--safe-mode', '--tools', 'Bash,PowerShell,Read,Write,Edit', '--permission-mode', 'dontAsk',
|
|
212
|
+
return ['--restricted', '--safe-mode', '--tools', 'Bash,PowerShell,Read,Write,Edit', '--permission-mode', 'dontAsk', '--permission-prompts', 'none',
|
|
211
213
|
'--strict-mcp-config', '--mcp-config', '{"mcpServers":{}}', '--disable-slash-commands', '--no-chrome', '--add-dir', ...readable,
|
|
212
214
|
'--allowedTools', ...commands, ...readable.map(directory => `Read(${claude_rule_path(directory)}/**)`),
|
|
213
215
|
`Edit(${claude_rule_path(task.draft_directory)}/**)`, '--disallowedTools', 'WebFetch', 'WebSearch'];
|
|
@@ -2437,8 +2437,10 @@ if (process.argv[1] && pathToFileURL(resolve(process.argv[1])).href === import.m
|
|
|
2437
2437
|
launch_main(args.filter(arg => arg !== '--stdin'), stdin).catch(error => {
|
|
2438
2438
|
// A request that needs the page to do something first (pair, renew, confirm writing) says so in a field it can read.
|
|
2439
2439
|
const need = error.need ? { need: error.need, ...(error.room_id ? { room_id: error.room_id } : {}) } : {};
|
|
2440
|
+
// An error the page shows in its own language carries its template and a stable code (runner/external_client.mjs).
|
|
2441
|
+
if (error.error_text) Object.assign(need, { error_text: error.error_text, ...(typeof error.code === 'string' ? { code: error.code } : {}) });
|
|
2440
2442
|
const failure = args.includes('--browser') ? JSON.stringify({ error: error.message, ...need, launch: error.launch || { stage: 'not_started' } })
|
|
2441
|
-
: error.need ? JSON.stringify({ error: error.message, ...need }) : error.message;
|
|
2443
|
+
: error.need || error.error_text ? JSON.stringify({ error: error.message, ...need }) : error.message;
|
|
2442
2444
|
process.stderr.write(`${failure}\n`); process.exitCode = 1;
|
|
2443
2445
|
});
|
|
2444
2446
|
}
|
|
@@ -81,11 +81,15 @@ export const TASK_SUBCOMMANDS = ['room', 'message', 'turn', 'state', 'goal', 'mo
|
|
|
81
81
|
/**
|
|
82
82
|
* The task text for a member woken on this computer for a room on another computer (an external member): the project
|
|
83
83
|
* lives over there and is read only through `repo`; a locked-down run (`lockdown`) may run only codiscuss subcommands and
|
|
84
|
-
* write only in `draft_directory`. `access_file` is the run's external access file.
|
|
84
|
+
* write only in `draft_directory`. `access_file` is the run's external access file. `directories` are what the other
|
|
85
|
+
* side opens now (`[{root, name}]`), empty when it opens no project (only discussion).
|
|
85
86
|
*/
|
|
86
|
-
export function external_task_text({ name, messages, requests = [], cli, access_file, task_path, lockdown, draft_directory }) {
|
|
87
|
+
export function external_task_text({ name, messages, requests = [], cli, access_file, task_path, lockdown, draft_directory, directories = [] }) {
|
|
87
88
|
const access = ` --access-file ${access_file}`;
|
|
88
|
-
const
|
|
89
|
+
const opened = directories.map(item => `${item.root} ${item.name}`).join('、');
|
|
90
|
+
const reading = directories.length
|
|
91
|
+
? `项目在对方电脑上,本机没有它的文件;对方开放的目录(序号 名称):${opened}。用 ${cli} repo ls 目录 --root 序号${access}、${cli} repo read 文件 --root 序号${access}、${cli} repo grep 关键词 --root 序号${access} 只读查看;读不到的(范围外、敏感文件、配额用尽)如实说明,不猜测内容。`
|
|
92
|
+
: '对方这次只请你参与讨论,没有开放项目文件,不要用 repo 读取;需要看代码时在回答里说明。';
|
|
89
93
|
const limits = lockdown ? `本次只能运行 ${cli} 子命令,只能在 ${draft_directory} 写草稿,不能读写其他本机文件或联网。` : '';
|
|
90
94
|
const instructions = `你作为外部成员参加另一台电脑上的房间,只读对方开放的项目,不修改任何文件。命令只用 subcommands 列出的 ${cli} 子命令。${limits}${reading}`;
|
|
91
95
|
const prompt = `${wake_opening(requests, name)}(来自另一台电脑上的房间),对应消息 ${messages}。${instructions}`
|